@vitest/browser 3.0.0 → 3.0.1
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 +6 -6
- package/dist/client/__vitest__/assets/index-D9z-wtyx.js +52 -0
- package/dist/client/__vitest__/index.html +1 -1
- package/dist/client/__vitest_browser__/{orchestrator-Cv-bzUFk.js → orchestrator-vOivV83Y.js} +1 -1
- package/dist/client/__vitest_browser__/{tester-B8eJg1-s.js → tester-COSVU_mu.js} +31 -35
- package/dist/client/__vitest_browser__/{utils-CaCTRFti.js → utils-Owv5OOOf.js} +0 -2
- package/dist/client/orchestrator.html +2 -2
- package/dist/client/tester/tester.html +2 -2
- package/dist/client.js +3 -3
- package/dist/context.js +2 -2
- package/dist/{index-Dos_sf7B.js → index--cbQOwRJ.js} +2 -2
- package/dist/index.js +106 -162
- package/dist/locators/index.js +2 -2
- package/dist/locators/playwright.js +2 -2
- package/dist/locators/preview.js +2 -2
- package/dist/locators/webdriverio.js +2 -2
- package/dist/{public-utils-D6S2-5kI.js → public-utils-DldpEzVw.js} +99 -99
- package/dist/utils.js +1 -1
- package/package.json +10 -10
- package/dist/client/__vitest__/assets/index-DnuP8DQO.js +0 -52
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
var i_=Object.defineProperty;var o_=(e,t,r)=>t in e?i_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ds=(e,t,r)=>o_(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
|
|
2
|
-
* @vue/shared v3.5.12
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function mh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},bs=[],qr=()=>{},s_=()=>!1,vu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),yh=e=>e.startsWith("onUpdate:"),en=Object.assign,bh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},l_=Object.prototype.hasOwnProperty,wt=(e,t)=>l_.call(e,t),Fe=Array.isArray,ws=e=>pa(e)==="[object Map]",mu=e=>pa(e)==="[object Set]",gv=e=>pa(e)==="[object Date]",je=e=>typeof e=="function",Rt=e=>typeof e=="string",Tr=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",q0=e=>(St(e)||je(e))&&je(e.then)&&je(e.catch),B0=Object.prototype.toString,pa=e=>B0.call(e),a_=e=>pa(e).slice(8,-1),W0=e=>pa(e)==="[object Object]",wh=e=>Rt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Nl=mh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},c_=/-(\w)/g,er=yu(e=>e.replace(c_,(t,r)=>r?r.toUpperCase():"")),u_=/\B([A-Z])/g,yi=yu(e=>e.replace(u_,"-$1").toLowerCase()),bu=yu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Cc=yu(e=>e?`on${bu(e)}`:""),qn=(e,t)=>!Object.is(e,t),Ec=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},U0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},xd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},V0=e=>{const t=Rt(e)?Number(e):NaN;return isNaN(t)?e:t};let vv;const wu=()=>vv||(vv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qt(e){if(Fe(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=Rt(o)?p_(o):Qt(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Rt(e)||St(e))return e}const f_=/;(?![^(]*\))/g,d_=/:([^]+)/,h_=/\/\*[^]*?\*\//g;function p_(e){const t={};return e.replace(h_,"").split(f_).forEach(r=>{if(r){const o=r.split(d_);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function it(e){let t="";if(Rt(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(St(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function g_(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Rt(t)&&(e.class=it(t)),r&&(e.style=Qt(r)),e}const v_="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",m_=mh(v_);function j0(e){return!!e||e===""}function y_(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=xu(e[o],t[o]);return r}function xu(e,t){if(e===t)return!0;let r=gv(e),o=gv(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Tr(e),o=Tr(t),r||o)return e===t;if(r=Fe(e),o=Fe(t),r||o)return r&&o?y_(e,t):!1;if(r=St(e),o=St(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!xu(e[f],t[f]))return!1}}return String(e)===String(t)}function G0(e,t){return e.findIndex(r=>xu(r,t))}const K0=e=>!!(e&&e.__v_isRef===!0),He=e=>Rt(e)?e:e==null?"":Fe(e)||St(e)&&(e.toString===B0||!je(e.toString))?K0(e)?He(e.value):JSON.stringify(e,X0,2):String(e),X0=(e,t)=>K0(t)?X0(e,t.value):ws(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[Gf(o,c)+" =>"]=s,r),{})}:mu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Gf(r))}:Tr(t)?Gf(t):St(t)&&!Fe(t)&&!W0(t)?String(t):t,Gf=(e,t="")=>{var r;return Tr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.12
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let Cn;class b_{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Cn,!t&&Cn&&(this.index=(Cn.scopes||(Cn.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=Cn;try{return Cn=this,t()}finally{Cn=r}}}on(){Cn=this}off(){Cn=this.parent}stop(t){if(this._active){let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.scopes)for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!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,this._active=!1}}}function Y0(){return Cn}function w_(e,t=!1){Cn&&Cn.cleanups.push(e)}let _t;const Kf=new WeakSet;class Z0{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,Cn&&Cn.active&&Cn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Kf.has(this)&&(Kf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Q0(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,mv(this),ey(this);const t=_t,r=xr;_t=this,xr=!0;try{return this.fn()}finally{ty(this),_t=t,xr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)_h(t);this.deps=this.depsTail=void 0,mv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Kf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Sd(this)&&this.run()}get dirty(){return Sd(this)}}let J0=0,$l,Pl;function Q0(e,t=!1){if(e.flags|=8,t){e.next=Pl,Pl=e;return}e.next=$l,$l=e}function xh(){J0++}function Sh(){if(--J0>0)return;if(Pl){let t=Pl;for(Pl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;$l;){let t=$l;for($l=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 ey(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ty(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),_h(o),x_(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function Sd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ny(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ny(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ul))return;e.globalVersion=Ul;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Sd(e)){e.flags&=-3;return}const r=_t,o=xr;_t=e,xr=!0;try{ey(e);const s=e.fn(e._value);(t.version===0||qn(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{_t=r,xr=o,ty(e),e.flags&=-3}}function _h(e,t=!1){const{dep:r,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let c=r.computed.deps;c;c=c.nextDep)_h(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function x_(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let xr=!0;const ry=[];function io(){ry.push(xr),xr=!1}function oo(){const e=ry.pop();xr=e===void 0?!0:e}function mv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=_t;_t=void 0;try{t()}finally{_t=r}}}let Ul=0;class S_{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Su{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(!_t||!xr||_t===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==_t)r=this.activeLink=new S_(_t,this),_t.deps?(r.prevDep=_t.depsTail,_t.depsTail.nextDep=r,_t.depsTail=r):_t.deps=_t.depsTail=r,iy(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=_t.depsTail,r.nextDep=void 0,_t.depsTail.nextDep=r,_t.depsTail=r,_t.deps===r&&(_t.deps=o)}return r}trigger(t){this.version++,Ul++,this.notify(t)}notify(t){xh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Sh()}}}function iy(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)iy(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Bc=new WeakMap,Lo=Symbol(""),_d=Symbol(""),Vl=Symbol("");function hn(e,t,r){if(xr&&_t){let o=Bc.get(e);o||Bc.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Su),s.map=o,s.key=r),s.track()}}function ui(e,t,r,o,s,c){const f=Bc.get(e);if(!f){Ul++;return}const d=h=>{h&&h.trigger()};if(xh(),t==="clear")f.forEach(d);else{const h=Fe(e),p=h&&wh(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===Vl||!Tr(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(Vl)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Lo)),ws(e)&&d(f.get(_d)));break;case"delete":h||(d(f.get(Lo)),ws(e)&&d(f.get(_d)));break;case"set":ws(e)&&d(f.get(Lo));break}}Sh()}function __(e,t){const r=Bc.get(e);return r&&r.get(t)}function hs(e){const t=ht(e);return t===e?t:(hn(t,"iterate",Vl),sr(e)?t:t.map(pn))}function _u(e){return hn(e=ht(e),"iterate",Vl),e}const k_={__proto__:null,[Symbol.iterator](){return Xf(this,Symbol.iterator,pn)},concat(...e){return hs(this).concat(...e.map(t=>Fe(t)?hs(t):t))},entries(){return Xf(this,"entries",e=>(e[1]=pn(e[1]),e))},every(e,t){return oi(this,"every",e,t,void 0,arguments)},filter(e,t){return oi(this,"filter",e,t,r=>r.map(pn),arguments)},find(e,t){return oi(this,"find",e,t,pn,arguments)},findIndex(e,t){return oi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return oi(this,"findLast",e,t,pn,arguments)},findLastIndex(e,t){return oi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return oi(this,"forEach",e,t,void 0,arguments)},includes(...e){return Yf(this,"includes",e)},indexOf(...e){return Yf(this,"indexOf",e)},join(e){return hs(this).join(e)},lastIndexOf(...e){return Yf(this,"lastIndexOf",e)},map(e,t){return oi(this,"map",e,t,void 0,arguments)},pop(){return wl(this,"pop")},push(...e){return wl(this,"push",e)},reduce(e,...t){return yv(this,"reduce",e,t)},reduceRight(e,...t){return yv(this,"reduceRight",e,t)},shift(){return wl(this,"shift")},some(e,t){return oi(this,"some",e,t,void 0,arguments)},splice(...e){return wl(this,"splice",e)},toReversed(){return hs(this).toReversed()},toSorted(e){return hs(this).toSorted(e)},toSpliced(...e){return hs(this).toSpliced(...e)},unshift(...e){return wl(this,"unshift",e)},values(){return Xf(this,"values",pn)}};function Xf(e,t,r){const o=_u(e),s=o[t]();return o!==e&&!sr(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.value&&(c.value=r(c.value)),c}),s}const T_=Array.prototype;function oi(e,t,r,o,s,c){const f=_u(e),d=f!==e&&!sr(e),h=f[t];if(h!==T_[t]){const m=h.apply(e,c);return d?pn(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,pn(m),b,e)}:r.length>2&&(p=function(m,b){return r.call(this,m,b,e)}));const v=h.call(f,p,o);return d&&s?s(v):v}function yv(e,t,r,o){const s=_u(e);let c=r;return s!==e&&(sr(e)?r.length>3&&(c=function(f,d,h){return r.call(this,f,d,h,e)}):c=function(f,d,h){return r.call(this,f,pn(d),h,e)}),s[t](c,...o)}function Yf(e,t,r){const o=ht(e);hn(o,"iterate",Vl);const s=o[t](...r);return(s===-1||s===!1)&&Eh(r[0])?(r[0]=ht(r[0]),o[t](...r)):s}function wl(e,t,r=[]){io(),xh();const o=ht(e)[t].apply(e,r);return Sh(),oo(),o}const C_=mh("__proto__,__v_isRef,__isVue"),oy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Tr));function E_(e){Tr(e)||(e=String(e));const t=ht(this);return hn(t,"has",e),t.hasOwnProperty(e)}class sy{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?z_:uy:c?cy:ay).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Fe(t);if(!s){let h;if(f&&(h=k_[r]))return h;if(r==="hasOwnProperty")return E_}const d=Reflect.get(t,r,kt(t)?t:o);return(Tr(r)?oy.has(r):C_(r))||(s||hn(t,"get",r),c)?d:kt(d)?f&&wh(r)?d:d.value:St(d)?s?ga(d):Qn(d):d}}class ly extends sy{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=$o(c);if(!sr(o)&&!$o(o)&&(c=ht(c),o=ht(o)),!Fe(t)&&kt(c)&&!kt(o))return h?!1:(c.value=o,!0)}const f=Fe(t)&&wh(r)?Number(r)<t.length:wt(t,r),d=Reflect.set(t,r,o,kt(t)?t:s);return t===ht(s)&&(f?qn(o,c)&&ui(t,"set",r,o):ui(t,"add",r,o)),d}deleteProperty(t,r){const o=wt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&ui(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Tr(r)||!oy.has(r))&&hn(t,"has",r),o}ownKeys(t){return hn(t,"iterate",Fe(t)?"length":Lo),Reflect.ownKeys(t)}}class L_ extends sy{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const A_=new ly,M_=new L_,N_=new ly(!0);const kd=e=>e,ac=e=>Reflect.getPrototypeOf(e);function $_(e,t,r){return function(...o){const s=this.__v_raw,c=ht(s),f=ws(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?kd:t?Td:pn;return!t&&hn(c,"iterate",h?_d:Lo),{next(){const{value:m,done:b}=p.next();return b?{value:m,done:b}:{value:d?[v(m[0]),v(m[1])]:v(m),done:b}},[Symbol.iterator](){return this}}}}function cc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function P_(e,t){const r={get(s){const c=this.__v_raw,f=ht(c),d=ht(s);e||(qn(s,d)&&hn(f,"get",s),hn(f,"get",d));const{has:h}=ac(f),p=t?kd:e?Td:pn;if(h.call(f,s))return p(c.get(s));if(h.call(f,d))return p(c.get(d));c!==f&&c.get(s)},get size(){const s=this.__v_raw;return!e&&hn(ht(s),"iterate",Lo),Reflect.get(s,"size",s)},has(s){const c=this.__v_raw,f=ht(c),d=ht(s);return e||(qn(s,d)&&hn(f,"has",s),hn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=ht(d),p=t?kd:e?Td:pn;return!e&&hn(h,"iterate",Lo),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return en(r,e?{add:cc("add"),set:cc("set"),delete:cc("delete"),clear:cc("clear")}:{add(s){!t&&!sr(s)&&!$o(s)&&(s=ht(s));const c=ht(this);return ac(c).has.call(c,s)||(c.add(s),ui(c,"add",s,s)),this},set(s,c){!t&&!sr(c)&&!$o(c)&&(c=ht(c));const f=ht(this),{has:d,get:h}=ac(f);let p=d.call(f,s);p||(s=ht(s),p=d.call(f,s));const v=h.call(f,s);return f.set(s,c),p?qn(c,v)&&ui(f,"set",s,c):ui(f,"add",s,c),this},delete(s){const c=ht(this),{has:f,get:d}=ac(c);let h=f.call(c,s);h||(s=ht(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&ui(c,"delete",s,void 0),p},clear(){const s=ht(this),c=s.size!==0,f=s.clear();return c&&ui(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=$_(s,e,t)}),r}function kh(e,t){const r=P_(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(wt(r,s)&&s in o?r:o,s,c)}const O_={get:kh(!1,!1)},R_={get:kh(!1,!0)},D_={get:kh(!0,!1)};const ay=new WeakMap,cy=new WeakMap,uy=new WeakMap,z_=new WeakMap;function I_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function F_(e){return e.__v_skip||!Object.isExtensible(e)?0:I_(a_(e))}function Qn(e){return $o(e)?e:Ch(e,!1,A_,O_,ay)}function Th(e){return Ch(e,!1,N_,R_,cy)}function ga(e){return Ch(e,!0,M_,D_,uy)}function Ch(e,t,r,o,s){if(!St(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=s.get(e);if(c)return c;const f=F_(e);if(f===0)return e;const d=new Proxy(e,f===2?o:r);return s.set(e,d),d}function xs(e){return $o(e)?xs(e.__v_raw):!!(e&&e.__v_isReactive)}function $o(e){return!!(e&&e.__v_isReadonly)}function sr(e){return!!(e&&e.__v_isShallow)}function Eh(e){return e?!!e.__v_raw:!1}function ht(e){const t=e&&e.__v_raw;return t?ht(t):e}function Lh(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&U0(e,"__v_skip",!0),e}const pn=e=>St(e)?Qn(e):e,Td=e=>St(e)?ga(e):e;function kt(e){return e?e.__v_isRef===!0:!1}function qe(e){return fy(e,!1)}function Gr(e){return fy(e,!0)}function fy(e,t){return kt(e)?e:new H_(e,t)}class H_{constructor(t,r){this.dep=new Su,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:ht(t),this._value=r?t:pn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||sr(t)||$o(t);t=o?t:ht(t),qn(t,r)&&(this._rawValue=t,this._value=o?t:pn(t),this.dep.trigger())}}function F(e){return kt(e)?e.value:e}function q_(e){return je(e)?e():F(e)}const B_={get:(e,t,r)=>t==="__v_raw"?e:F(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return kt(s)&&!kt(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function dy(e){return xs(e)?e:new Proxy(e,B_)}class W_{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Su,{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 hy(e){return new W_(e)}function U_(e){const t=Fe(e)?new Array(e.length):{};for(const r in e)t[r]=py(e,r);return t}class V_{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 __(ht(this._object),this._key)}}class j_{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 va(e,t,r){return kt(e)?e:je(e)?new j_(e):St(e)&&arguments.length>1?py(e,t,r):qe(e)}function py(e,t,r){const o=e[t];return kt(o)?o:new V_(e,t,r)}class G_{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Su(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ul-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&_t!==this)return Q0(this,!0),!0}get value(){const t=this.dep.track();return ny(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function K_(e,t,r=!1){let o,s;return je(e)?o=e:(o=e.get,s=e.set),new G_(o,s,r)}const uc={},Wc=new WeakMap;let _o;function X_(e,t=!1,r=_o){if(r){let o=Wc.get(r);o||Wc.set(r,o=[]),o.push(e)}}function Y_(e,t,r=vt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=A=>s?A:sr(A)||s===!1||s===0?fi(A,1):fi(A);let v,m,b,w,E=!1,M=!1;if(kt(e)?(m=()=>e.value,E=sr(e)):xs(e)?(m=()=>p(e),E=!0):Fe(e)?(M=!0,E=e.some(A=>xs(A)||sr(A)),m=()=>e.map(A=>{if(kt(A))return A.value;if(xs(A))return p(A);if(je(A))return h?h(A,2):A()})):je(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){io();try{b()}finally{oo()}}const A=_o;_o=v;try{return h?h(e,3,[w]):e(w)}finally{_o=A}}:m=qr,t&&s){const A=m,z=s===!0?1/0:s;m=()=>fi(A(),z)}const L=Y0(),N=()=>{v.stop(),L&&bh(L.effects,v)};if(c&&t){const A=t;t=(...z)=>{A(...z),N()}}let C=M?new Array(e.length).fill(uc):uc;const $=A=>{if(!(!(v.flags&1)||!v.dirty&&!A))if(t){const z=v.run();if(s||E||(M?z.some((G,B)=>qn(G,C[B])):qn(z,C))){b&&b();const G=_o;_o=v;try{const B=[z,C===uc?void 0:M&&C[0]===uc?[]:C,w];h?h(t,3,B):t(...B),C=z}finally{_o=G}}}else v.run()};return d&&d($),v=new Z0(m),v.scheduler=f?()=>f($,!1):$,w=A=>X_(A,!1,v),b=v.onStop=()=>{const A=Wc.get(v);if(A){if(h)h(A,4);else for(const z of A)z();Wc.delete(v)}},t?o?$(!0):C=v.run():f?f($.bind(null,!0),!0):v.run(),N.pause=v.pause.bind(v),N.resume=v.resume.bind(v),N.stop=N,N}function fi(e,t=1/0,r){if(t<=0||!St(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,kt(e))fi(e.value,t,r);else if(Fe(e))for(let o=0;o<e.length;o++)fi(e[o],t,r);else if(mu(e)||ws(e))e.forEach(o=>{fi(o,t,r)});else if(W0(e)){for(const o in e)fi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&fi(e[o],t,r)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.12
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function ma(e,t,r,o){try{return o?e(...o):e()}catch(s){ya(s,t,r)}}function Cr(e,t,r,o){if(je(e)){const s=ma(e,t,r,o);return s&&q0(s)&&s.catch(c=>{ya(c,t,r)}),s}if(Fe(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Cr(e[c],t,r,o));return s}}function ya(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||vt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const v=d.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,h,p)===!1)return}d=d.parent}if(c){io(),ma(c,null,10,[e,h,p]),oo();return}}Z_(e,r,s,o,f)}function Z_(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Ln=[];let Fr=-1;const Ss=[];let Hi=null,ps=0;const gy=Promise.resolve();let Uc=null;function Ot(e){const t=Uc||gy;return e?t.then(this?e.bind(this):e):t}function J_(e){let t=Fr+1,r=Ln.length;for(;t<r;){const o=t+r>>>1,s=Ln[o],c=jl(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function Ah(e){if(!(e.flags&1)){const t=jl(e),r=Ln[Ln.length-1];!r||!(e.flags&2)&&t>=jl(r)?Ln.push(e):Ln.splice(J_(t),0,e),e.flags|=1,vy()}}function vy(){Uc||(Uc=gy.then(yy))}function Cd(e){Fe(e)?Ss.push(...e):Hi&&e.id===-1?Hi.splice(ps+1,0,e):e.flags&1||(Ss.push(e),e.flags|=1),vy()}function bv(e,t,r=Fr+1){for(;r<Ln.length;r++){const o=Ln[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Ln.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function my(e){if(Ss.length){const t=[...new Set(Ss)].sort((r,o)=>jl(r)-jl(o));if(Ss.length=0,Hi){Hi.push(...t);return}for(Hi=t,ps=0;ps<Hi.length;ps++){const r=Hi[ps];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Hi=null,ps=0}}const jl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function yy(e){try{for(Fr=0;Fr<Ln.length;Fr++){const t=Ln[Fr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ma(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Fr<Ln.length;Fr++){const t=Ln[Fr];t&&(t.flags&=-2)}Fr=-1,Ln.length=0,my(),Uc=null,(Ln.length||Ss.length)&&yy()}}let Jt=null,ku=null;function Vc(e){const t=Jt;return Jt=e,ku=e&&e.type.__scopeId||null,t}function by(e){ku=e}function wy(){ku=null}const xy=e=>rt;function rt(e,t=Jt,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Kc(-1);const c=Vc(t);let f;try{f=e(...s)}finally{Vc(c),o._d&&Kc(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function gt(e,t){if(Jt===null)return e;const r=$u(Jt),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=vt]=t[s];c&&(je(c)&&(c={mounted:c,updated:c}),c.deep&&fi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function yo(e,t,r,o){const s=e.dirs,c=t&&t.dirs;for(let f=0;f<s.length;f++){const d=s[f];c&&(d.oldValue=c[f].value);let h=d.dir[o];h&&(io(),Cr(h,r,8,[e.el,d,e,t]),oo())}}const Q_=Symbol("_vte"),Sy=e=>e.__isTeleport,qi=Symbol("_leaveCb"),fc=Symbol("_enterCb");function ek(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Hs(()=>{e.isMounted=!0}),Mh(()=>{e.isUnmounting=!0}),e}const ir=[Function,Array],_y={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ir,onEnter:ir,onAfterEnter:ir,onEnterCancelled:ir,onBeforeLeave:ir,onLeave:ir,onAfterLeave:ir,onLeaveCancelled:ir,onBeforeAppear:ir,onAppear:ir,onAfterAppear:ir,onAppearCancelled:ir},ky=e=>{const t=e.subTree;return t.component?ky(t.component):t},tk={name:"BaseTransition",props:_y,setup(e,{slots:t}){const r=qs(),o=ek();return()=>{const s=t.default&&Ey(t.default(),!0);if(!s||!s.length)return;const c=Ty(s),f=ht(e),{mode:d}=f;if(o.isLeaving)return Zf(c);const h=wv(c);if(!h)return Zf(c);let p=Ed(h,f,o,r,b=>p=b);h.type!==cn&&Gl(h,p);const v=r.subTree,m=v&&wv(v);if(m&&m.type!==cn&&!Hr(h,m)&&ky(r).type!==cn){const b=Ed(m,f,o,r);if(Gl(m,b),d==="out-in"&&h.type!==cn)return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete b.afterLeave},Zf(c);d==="in-out"&&h.type!==cn&&(b.delayLeave=(w,E,M)=>{const L=Cy(o,m);L[String(m.key)]=m,w[qi]=()=>{E(),w[qi]=void 0,delete p.delayedLeave},p.delayedLeave=M})}return c}}};function Ty(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==cn){t=r;break}}return t}const nk=tk;function Cy(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 Ed(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:m,onBeforeLeave:b,onLeave:w,onAfterLeave:E,onLeaveCancelled:M,onBeforeAppear:L,onAppear:N,onAfterAppear:C,onAppearCancelled:$}=t,A=String(e.key),z=Cy(r,e),G=(ee,U)=>{ee&&Cr(ee,o,9,U)},B=(ee,U)=>{const te=U[1];G(ee,U),Fe(ee)?ee.every(J=>J.length<=1)&&te():ee.length<=1&&te()},Z={mode:f,persisted:d,beforeEnter(ee){let U=h;if(!r.isMounted)if(c)U=L||h;else return;ee[qi]&&ee[qi](!0);const te=z[A];te&&Hr(e,te)&&te.el[qi]&&te.el[qi](),G(U,[ee])},enter(ee){let U=p,te=v,J=m;if(!r.isMounted)if(c)U=N||p,te=C||v,J=$||m;else return;let H=!1;const I=ee[fc]=k=>{H||(H=!0,k?G(J,[ee]):G(te,[ee]),Z.delayedLeave&&Z.delayedLeave(),ee[fc]=void 0)};U?B(U,[ee,I]):I()},leave(ee,U){const te=String(e.key);if(ee[fc]&&ee[fc](!0),r.isUnmounting)return U();G(b,[ee]);let J=!1;const H=ee[qi]=I=>{J||(J=!0,U(),I?G(M,[ee]):G(E,[ee]),ee[qi]=void 0,z[te]===e&&delete z[te])};z[te]=e,w?B(w,[ee,H]):H()},clone(ee){const U=Ed(ee,t,r,o,s);return s&&s(U),U}};return Z}function Zf(e){if(Tu(e))return e=Ji(e),e.children=null,e}function wv(e){if(!Tu(e))return Sy(e.type)&&e.children?Ty(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&je(r.default))return r.default()}}function Gl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Gl(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 Ey(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===ct?(f.patchFlag&128&&s++,o=o.concat(Ey(f.children,t,d))):(t||f.type!==cn)&&o.push(d!=null?Ji(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ut(e,t){return je(e)?en({name:e.name},t,{setup:e}):e}function Ly(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ld(e,t,r,o,s=!1){if(Fe(e)){e.forEach((E,M)=>Ld(E,t&&(Fe(t)?t[M]:t),r,o,s));return}if(_s(o)&&!s)return;const c=o.shapeFlag&4?$u(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===vt?d.refs={}:d.refs,m=d.setupState,b=ht(m),w=m===vt?()=>!1:E=>wt(b,E);if(p!=null&&p!==h&&(Rt(p)?(v[p]=null,w(p)&&(m[p]=null)):kt(p)&&(p.value=null)),je(h))ma(h,d,12,[f,v]);else{const E=Rt(h),M=kt(h);if(E||M){const L=()=>{if(e.f){const N=E?w(h)?m[h]:v[h]:h.value;s?Fe(N)&&bh(N,c):Fe(N)?N.includes(c)||N.push(c):E?(v[h]=[c],w(h)&&(m[h]=v[h])):(h.value=[c],e.k&&(v[e.k]=h.value))}else E?(v[h]=f,w(h)&&(m[h]=f)):M&&(h.value=f,e.k&&(v[e.k]=f))};f?(L.id=-1,Xn(L,r)):L()}}}wu().requestIdleCallback;wu().cancelIdleCallback;const _s=e=>!!e.type.__asyncLoader,Tu=e=>e.type.__isKeepAlive;function rk(e,t){Ay(e,"a",t)}function ik(e,t){Ay(e,"da",t)}function Ay(e,t,r=nn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Cu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)Tu(s.parent.vnode)&&ok(o,t,r,s),s=s.parent}}function ok(e,t,r,o){const s=Cu(t,e,o,!0);Eu(()=>{bh(o[t],s)},r)}function Cu(e,t,r=nn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{io();const d=ba(r),h=Cr(t,r,e,f);return d(),oo(),h});return o?s.unshift(c):s.push(c),c}}const bi=e=>(t,r=nn)=>{(!Yl||e==="sp")&&Cu(e,(...o)=>t(...o),r)},sk=bi("bm"),Hs=bi("m"),lk=bi("bu"),ak=bi("u"),Mh=bi("bum"),Eu=bi("um"),ck=bi("sp"),uk=bi("rtg"),fk=bi("rtc");function dk(e,t=nn){Cu("ec",e,t)}const Nh="components",hk="directives";function Po(e,t){return $h(Nh,e,!0,t)||e}const My=Symbol.for("v-ndc");function xv(e){return Rt(e)?$h(Nh,e,!1)||e:e||My}function Kr(e){return $h(hk,e)}function $h(e,t,r=!0,o=!1){const s=Jt||nn;if(s){const c=s.type;if(e===Nh){const d=oT(c,!1);if(d&&(d===t||d===er(t)||d===bu(er(t))))return c}const f=Sv(s[e]||c[e],t)||Sv(s.appContext[e],t);return!f&&o?c:f}}function Sv(e,t){return e&&(e[t]||e[er(t)]||e[bu(er(t))])}function gi(e,t,r,o){let s;const c=r,f=Fe(e);if(f||Rt(e)){const d=f&&xs(e);let h=!1;d&&(h=!sr(e),e=_u(e)),s=new Array(e.length);for(let p=0,v=e.length;p<v;p++)s[p]=t(h?pn(e[p]):e[p],p,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let d=0;d<e;d++)s[d]=t(d+1,d,void 0,c)}else if(St(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const v=d[h];s[h]=t(e[v],v,h,c)}}else s=[];return s}function pk(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 c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function mn(e,t,r={},o,s){if(Jt.ce||Jt.parent&&_s(Jt.parent)&&Jt.parent.ce)return t!=="default"&&(r.name=t),oe(),tt(ct,null,[Pe("slot",r,o&&o())],64);let c=e[t];c&&c._c&&(c._d=!1),oe();const f=c&&Ny(c(r)),d=r.key||f&&f.key,h=tt(ct,{key:(d&&!Tr(d)?d:`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),c&&c._c&&(c._d=!0),h}function Ny(e){return e.some(t=>$s(t)?!(t.type===cn||t.type===ct&&!Ny(t.children)):!0)?e:null}function gk(e,t){const r={};for(const o in e)r[Cc(o)]=e[o];return r}const Ad=e=>e?rb(e)?$u(e):Ad(e.parent):null,Ol=en(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=>Ad(e.parent),$root:e=>Ad(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Py(e),$forceUpdate:e=>e.f||(e.f=()=>{Ah(e.update)}),$nextTick:e=>e.n||(e.n=Ot.bind(e.proxy)),$watch:e=>Fk.bind(e)}),Jf=(e,t)=>e!==vt&&!e.__isScriptSetup&&wt(e,t),vk={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const w=f[t];if(w!==void 0)switch(w){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Jf(o,t))return f[t]=1,o[t];if(s!==vt&&wt(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&wt(p,t))return f[t]=3,c[t];if(r!==vt&&wt(r,t))return f[t]=4,r[t];Md&&(f[t]=0)}}const v=Ol[t];let m,b;if(v)return t==="$attrs"&&hn(e.attrs,"get",""),v(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==vt&&wt(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,wt(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return Jf(s,t)?(s[t]=r,!0):o!==vt&&wt(o,t)?(o[t]=r,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c}},f){let d;return!!r[f]||e!==vt&&wt(e,f)||Jf(t,f)||(d=c[0])&&wt(d,f)||wt(o,f)||wt(Ol,f)||wt(s.config.globalProperties,f)},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 mk(){return yk().attrs}function yk(){const e=qs();return e.setupContext||(e.setupContext=ob(e))}function jc(e){return Fe(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function Kl(e,t){return!e||!t?e||t:Fe(e)&&Fe(t)?e.concat(t):en({},jc(e),jc(t))}let Md=!0;function bk(e){const t=Py(e),r=e.proxy,o=e.ctx;Md=!1,t.beforeCreate&&_v(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:m,mounted:b,beforeUpdate:w,updated:E,activated:M,deactivated:L,beforeDestroy:N,beforeUnmount:C,destroyed:$,unmounted:A,render:z,renderTracked:G,renderTriggered:B,errorCaptured:Z,serverPrefetch:ee,expose:U,inheritAttrs:te,components:J,directives:H,filters:I}=t;if(p&&wk(p,o,null),f)for(const V in f){const ie=f[V];je(ie)&&(o[V]=ie.bind(r))}if(s){const V=s.call(r,r);St(V)&&(e.data=Qn(V))}if(Md=!0,c)for(const V in c){const ie=c[V],ye=je(ie)?ie.bind(r,r):je(ie.get)?ie.get.bind(r,r):qr,Ne=!je(ie)&&je(ie.set)?ie.set.bind(r):qr,We=ke({get:ye,set:Ne});Object.defineProperty(o,V,{enumerable:!0,configurable:!0,get:()=>We.value,set:Ve=>We.value=Ve})}if(d)for(const V in d)$y(d[V],o,r,V);if(h){const V=je(h)?h.call(r):h;Reflect.ownKeys(V).forEach(ie=>{Lc(ie,V[ie])})}v&&_v(v,e,"c");function W(V,ie){Fe(ie)?ie.forEach(ye=>V(ye.bind(r))):ie&&V(ie.bind(r))}if(W(sk,m),W(Hs,b),W(lk,w),W(ak,E),W(rk,M),W(ik,L),W(dk,Z),W(fk,G),W(uk,B),W(Mh,C),W(Eu,A),W(ck,ee),Fe(U))if(U.length){const V=e.exposed||(e.exposed={});U.forEach(ie=>{Object.defineProperty(V,ie,{get:()=>r[ie],set:ye=>r[ie]=ye})})}else e.exposed||(e.exposed={});z&&e.render===qr&&(e.render=z),te!=null&&(e.inheritAttrs=te),J&&(e.components=J),H&&(e.directives=H),ee&&Ly(e)}function wk(e,t,r=qr){Fe(e)&&(e=Nd(e));for(const o in e){const s=e[o];let c;St(s)?"default"in s?c=Br(s.from||o,s.default,!0):c=Br(s.from||o):c=Br(s),kt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function _v(e,t,r){Cr(Fe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function $y(e,t,r,o){let s=o.includes(".")?Gy(r,o):()=>r[o];if(Rt(e)){const c=t[e];je(c)&&Lt(s,c)}else if(je(e))Lt(s,e.bind(r));else if(St(e))if(Fe(e))e.forEach(c=>$y(c,t,r,o));else{const c=je(e.handler)?e.handler.bind(r):t[e.handler];je(c)&&Lt(s,c,e)}}function Py(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>Gc(h,p,f,!0)),Gc(h,t,f)),St(t)&&c.set(t,h),h}function Gc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&Gc(e,c,r,!0),s&&s.forEach(f=>Gc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=xk[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const xk={data:kv,props:Tv,emits:Tv,methods:El,computed:El,beforeCreate:Tn,created:Tn,beforeMount:Tn,mounted:Tn,beforeUpdate:Tn,updated:Tn,beforeDestroy:Tn,beforeUnmount:Tn,destroyed:Tn,unmounted:Tn,activated:Tn,deactivated:Tn,errorCaptured:Tn,serverPrefetch:Tn,components:El,directives:El,watch:_k,provide:kv,inject:Sk};function kv(e,t){return t?e?function(){return en(je(e)?e.call(this,this):e,je(t)?t.call(this,this):t)}:t:e}function Sk(e,t){return El(Nd(e),Nd(t))}function Nd(e){if(Fe(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Tn(e,t){return e?[...new Set([].concat(e,t))]:t}function El(e,t){return e?en(Object.create(null),e,t):t}function Tv(e,t){return e?Fe(e)&&Fe(t)?[...new Set([...e,...t])]:en(Object.create(null),jc(e),jc(t??{})):t}function _k(e,t){if(!e)return t;if(!t)return e;const r=en(Object.create(null),e);for(const o in t)r[o]=Tn(e[o],t[o]);return r}function Oy(){return{app:null,config:{isNativeTag:s_,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 kk=0;function Tk(e,t){return function(o,s=null){je(o)||(o=en({},o)),s!=null&&!St(s)&&(s=null);const c=Oy(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:kk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:lT,get config(){return c.config},set config(v){},use(v,...m){return f.has(v)||(v&&je(v.install)?(f.add(v),v.install(p,...m)):je(v)&&(f.add(v),v(p,...m))),p},mixin(v){return c.mixins.includes(v)||c.mixins.push(v),p},component(v,m){return m?(c.components[v]=m,p):c.components[v]},directive(v,m){return m?(c.directives[v]=m,p):c.directives[v]},mount(v,m,b){if(!h){const w=p._ceVNode||Pe(o,s);return w.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(w,v,b),h=!0,p._container=v,v.__vue_app__=p,$u(w.component)}},onUnmount(v){d.push(v)},unmount(){h&&(Cr(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(v,m){return c.provides[v]=m,p},runWithContext(v){const m=Ao;Ao=p;try{return v()}finally{Ao=m}}};return p}}let Ao=null;function Lc(e,t){if(nn){let r=nn.provides;const o=nn.parent&&nn.parent.provides;o===r&&(r=nn.provides=Object.create(o)),r[e]=t}}function Br(e,t,r=!1){const o=nn||Jt;if(o||Ao){const s=Ao?Ao._context.provides:o?o.parent==null?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&&je(t)?t.call(o&&o.proxy):t}}function Ry(){return!!(nn||Jt||Ao)}const Dy={},zy=()=>Object.create(Dy),Iy=e=>Object.getPrototypeOf(e)===Dy;function Ck(e,t,r,o=!1){const s={},c=zy();e.propsDefaults=Object.create(null),Fy(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:Th(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function Ek(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=ht(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let b=v[m];if(Mu(e.emitsOptions,b))continue;const w=t[b];if(h)if(wt(c,b))w!==c[b]&&(c[b]=w,p=!0);else{const E=er(b);s[E]=$d(h,d,E,w,e,!1)}else w!==c[b]&&(c[b]=w,p=!0)}}}else{Fy(e,t,s,c)&&(p=!0);let v;for(const m in d)(!t||!wt(t,m)&&((v=yi(m))===m||!wt(t,v)))&&(h?r&&(r[m]!==void 0||r[v]!==void 0)&&(s[m]=$d(h,d,m,void 0,e,!0)):delete s[m]);if(c!==d)for(const m in c)(!t||!wt(t,m))&&(delete c[m],p=!0)}p&&ui(e.attrs,"set","")}function Fy(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(Nl(h))continue;const p=t[h];let v;s&&wt(s,v=er(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:Mu(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=ht(r),p=d||vt;for(let v=0;v<c.length;v++){const m=c[v];r[m]=$d(s,h,m,p[m],e,!wt(p,m))}}return f}function $d(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=wt(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&je(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=ba(s);o=p[r]=h.call(null,t),v()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===yi(r))&&(o=!0))}return o}const Lk=new WeakMap;function Hy(e,t,r=!1){const o=r?Lk:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!je(e)){const v=m=>{h=!0;const[b,w]=Hy(m,t,!0);en(f,b),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return St(e)&&o.set(e,bs),bs;if(Fe(c))for(let v=0;v<c.length;v++){const m=er(c[v]);Cv(m)&&(f[m]=vt)}else if(c)for(const v in c){const m=er(v);if(Cv(m)){const b=c[v],w=f[m]=Fe(b)||je(b)?{type:b}:en({},b),E=w.type;let M=!1,L=!0;if(Fe(E))for(let N=0;N<E.length;++N){const C=E[N],$=je(C)&&C.name;if($==="Boolean"){M=!0;break}else $==="String"&&(L=!1)}else M=je(E)&&E.name==="Boolean";w[0]=M,w[1]=L,(M||wt(w,"default"))&&d.push(m)}}const p=[f,d];return St(e)&&o.set(e,p),p}function Cv(e){return e[0]!=="$"&&!Nl(e)}const qy=e=>e[0]==="_"||e==="$stable",Ph=e=>Fe(e)?e.map(br):[br(e)],Ak=(e,t,r)=>{if(t._n)return t;const o=rt((...s)=>Ph(t(...s)),r);return o._c=!1,o},By=(e,t,r)=>{const o=e._ctx;for(const s in e){if(qy(s))continue;const c=e[s];if(je(c))t[s]=Ak(s,c,o);else if(c!=null){const f=Ph(c);t[s]=()=>f}}},Wy=(e,t)=>{const r=Ph(t);e.slots.default=()=>r},Uy=(e,t,r)=>{for(const o in t)(r||o!=="_")&&(e[o]=t[o])},Mk=(e,t,r)=>{const o=e.slots=zy();if(e.vnode.shapeFlag&32){const s=t._;s?(Uy(o,t,r),r&&U0(o,"_",s,!0)):By(t,o)}else t&&Wy(e,t)},Nk=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=vt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:Uy(s,t,r):(c=!t.$stable,By(t,s)),f=t}else t&&(Wy(e,t),f={default:1});if(c)for(const d in s)!qy(d)&&f[d]==null&&delete s[d]},Xn=Yk;function $k(e){return Pk(e)}function Pk(e,t){const r=wu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:m,nextSibling:b,setScopeId:w=qr,insertStaticContent:E}=e,M=(D,q,X,le=null,fe=null,ce=null,Se=void 0,xe=null,de=!!q.dynamicChildren)=>{if(D===q)return;D&&!Hr(D,q)&&(le=Y(D),Ve(D,fe,ce,!0),D=null),q.patchFlag===-2&&(de=!1,q.dynamicChildren=null);const{type:pe,ref:Be,shapeFlag:Ee}=q;switch(pe){case Nu:L(D,q,X,le);break;case cn:N(D,q,X,le);break;case ed:D==null&&C(q,X,le,Se);break;case ct:J(D,q,X,le,fe,ce,Se,xe,de);break;default:Ee&1?z(D,q,X,le,fe,ce,Se,xe,de):Ee&6?H(D,q,X,le,fe,ce,Se,xe,de):(Ee&64||Ee&128)&&pe.process(D,q,X,le,fe,ce,Se,xe,de,$e)}Be!=null&&fe&&Ld(Be,D&&D.ref,ce,q||D,!q)},L=(D,q,X,le)=>{if(D==null)o(q.el=d(q.children),X,le);else{const fe=q.el=D.el;q.children!==D.children&&p(fe,q.children)}},N=(D,q,X,le)=>{D==null?o(q.el=h(q.children||""),X,le):q.el=D.el},C=(D,q,X,le)=>{[D.el,D.anchor]=E(D.children,q,X,le,D.el,D.anchor)},$=({el:D,anchor:q},X,le)=>{let fe;for(;D&&D!==q;)fe=b(D),o(D,X,le),D=fe;o(q,X,le)},A=({el:D,anchor:q})=>{let X;for(;D&&D!==q;)X=b(D),s(D),D=X;s(q)},z=(D,q,X,le,fe,ce,Se,xe,de)=>{q.type==="svg"?Se="svg":q.type==="math"&&(Se="mathml"),D==null?G(q,X,le,fe,ce,Se,xe,de):ee(D,q,fe,ce,Se,xe,de)},G=(D,q,X,le,fe,ce,Se,xe)=>{let de,pe;const{props:Be,shapeFlag:Ee,transition:De,dirs:Ue}=D;if(de=D.el=f(D.type,ce,Be&&Be.is,Be),Ee&8?v(de,D.children):Ee&16&&Z(D.children,de,null,le,fe,Qf(D,ce),Se,xe),Ue&&yo(D,null,le,"created"),B(de,D,D.scopeId,Se,le),Be){for(const ot in Be)ot!=="value"&&!Nl(ot)&&c(de,ot,null,Be[ot],ce,le);"value"in Be&&c(de,"value",null,Be.value,ce),(pe=Be.onVnodeBeforeMount)&&zr(pe,le,D)}Ue&&yo(D,null,le,"beforeMount");const Qe=Ok(fe,De);Qe&&De.beforeEnter(de),o(de,q,X),((pe=Be&&Be.onVnodeMounted)||Qe||Ue)&&Xn(()=>{pe&&zr(pe,le,D),Qe&&De.enter(de),Ue&&yo(D,null,le,"mounted")},fe)},B=(D,q,X,le,fe)=>{if(X&&w(D,X),le)for(let ce=0;ce<le.length;ce++)w(D,le[ce]);if(fe){let ce=fe.subTree;if(q===ce||Yy(ce.type)&&(ce.ssContent===q||ce.ssFallback===q)){const Se=fe.vnode;B(D,Se,Se.scopeId,Se.slotScopeIds,fe.parent)}}},Z=(D,q,X,le,fe,ce,Se,xe,de=0)=>{for(let pe=de;pe<D.length;pe++){const Be=D[pe]=xe?Bi(D[pe]):br(D[pe]);M(null,Be,q,X,le,fe,ce,Se,xe)}},ee=(D,q,X,le,fe,ce,Se)=>{const xe=q.el=D.el;let{patchFlag:de,dynamicChildren:pe,dirs:Be}=q;de|=D.patchFlag&16;const Ee=D.props||vt,De=q.props||vt;let Ue;if(X&&bo(X,!1),(Ue=De.onVnodeBeforeUpdate)&&zr(Ue,X,q,D),Be&&yo(q,D,X,"beforeUpdate"),X&&bo(X,!0),(Ee.innerHTML&&De.innerHTML==null||Ee.textContent&&De.textContent==null)&&v(xe,""),pe?U(D.dynamicChildren,pe,xe,X,le,Qf(q,fe),ce):Se||ie(D,q,xe,null,X,le,Qf(q,fe),ce,!1),de>0){if(de&16)te(xe,Ee,De,X,fe);else if(de&2&&Ee.class!==De.class&&c(xe,"class",null,De.class,fe),de&4&&c(xe,"style",Ee.style,De.style,fe),de&8){const Qe=q.dynamicProps;for(let ot=0;ot<Qe.length;ot++){const lt=Qe[ot],At=Ee[lt],st=De[lt];(st!==At||lt==="value")&&c(xe,lt,At,st,fe,X)}}de&1&&D.children!==q.children&&v(xe,q.children)}else!Se&&pe==null&&te(xe,Ee,De,X,fe);((Ue=De.onVnodeUpdated)||Be)&&Xn(()=>{Ue&&zr(Ue,X,q,D),Be&&yo(q,D,X,"updated")},le)},U=(D,q,X,le,fe,ce,Se)=>{for(let xe=0;xe<q.length;xe++){const de=D[xe],pe=q[xe],Be=de.el&&(de.type===ct||!Hr(de,pe)||de.shapeFlag&70)?m(de.el):X;M(de,pe,Be,null,le,fe,ce,Se,!0)}},te=(D,q,X,le,fe)=>{if(q!==X){if(q!==vt)for(const ce in q)!Nl(ce)&&!(ce in X)&&c(D,ce,q[ce],null,fe,le);for(const ce in X){if(Nl(ce))continue;const Se=X[ce],xe=q[ce];Se!==xe&&ce!=="value"&&c(D,ce,xe,Se,fe,le)}"value"in X&&c(D,"value",q.value,X.value,fe)}},J=(D,q,X,le,fe,ce,Se,xe,de)=>{const pe=q.el=D?D.el:d(""),Be=q.anchor=D?D.anchor:d("");let{patchFlag:Ee,dynamicChildren:De,slotScopeIds:Ue}=q;Ue&&(xe=xe?xe.concat(Ue):Ue),D==null?(o(pe,X,le),o(Be,X,le),Z(q.children||[],X,Be,fe,ce,Se,xe,de)):Ee>0&&Ee&64&&De&&D.dynamicChildren?(U(D.dynamicChildren,De,X,fe,ce,Se,xe),(q.key!=null||fe&&q===fe.subTree)&&Vy(D,q,!0)):ie(D,q,X,Be,fe,ce,Se,xe,de)},H=(D,q,X,le,fe,ce,Se,xe,de)=>{q.slotScopeIds=xe,D==null?q.shapeFlag&512?fe.ctx.activate(q,X,le,Se,de):I(q,X,le,fe,ce,Se,de):k(D,q,de)},I=(D,q,X,le,fe,ce,Se)=>{const xe=D.component=tT(D,le,fe);if(Tu(D)&&(xe.ctx.renderer=$e),nT(xe,!1,Se),xe.asyncDep){if(fe&&fe.registerDep(xe,W,Se),!D.el){const de=xe.subTree=Pe(cn);N(null,de,q,X)}}else W(xe,D,q,X,fe,ce,Se)},k=(D,q,X)=>{const le=q.component=D.component;if(Uk(D,q,X))if(le.asyncDep&&!le.asyncResolved){V(le,q,X);return}else le.next=q,le.update();else q.el=D.el,le.vnode=q},W=(D,q,X,le,fe,ce,Se)=>{const xe=()=>{if(D.isMounted){let{next:Ee,bu:De,u:Ue,parent:Qe,vnode:ot}=D;{const It=jy(D);if(It){Ee&&(Ee.el=ot.el,V(D,Ee,Se)),It.asyncDep.then(()=>{D.isUnmounted||xe()});return}}let lt=Ee,At;bo(D,!1),Ee?(Ee.el=ot.el,V(D,Ee,Se)):Ee=ot,De&&Ec(De),(At=Ee.props&&Ee.props.onVnodeBeforeUpdate)&&zr(At,Qe,Ee,ot),bo(D,!0);const st=Lv(D),Ut=D.subTree;D.subTree=st,M(Ut,st,m(Ut.el),Y(Ut),D,fe,ce),Ee.el=st.el,lt===null&&Rh(D,st.el),Ue&&Xn(Ue,fe),(At=Ee.props&&Ee.props.onVnodeUpdated)&&Xn(()=>zr(At,Qe,Ee,ot),fe)}else{let Ee;const{el:De,props:Ue}=q,{bm:Qe,m:ot,parent:lt,root:At,type:st}=D,Ut=_s(q);bo(D,!1),Qe&&Ec(Qe),!Ut&&(Ee=Ue&&Ue.onVnodeBeforeMount)&&zr(Ee,lt,q),bo(D,!0);{At.ce&&At.ce._injectChildStyle(st);const It=D.subTree=Lv(D);M(null,It,X,le,D,fe,ce),q.el=It.el}if(ot&&Xn(ot,fe),!Ut&&(Ee=Ue&&Ue.onVnodeMounted)){const It=q;Xn(()=>zr(Ee,lt,It),fe)}(q.shapeFlag&256||lt&&_s(lt.vnode)&<.vnode.shapeFlag&256)&&D.a&&Xn(D.a,fe),D.isMounted=!0,q=X=le=null}};D.scope.on();const de=D.effect=new Z0(xe);D.scope.off();const pe=D.update=de.run.bind(de),Be=D.job=de.runIfDirty.bind(de);Be.i=D,Be.id=D.uid,de.scheduler=()=>Ah(Be),bo(D,!0),pe()},V=(D,q,X)=>{q.component=D;const le=D.vnode.props;D.vnode=q,D.next=null,Ek(D,q.props,le,X),Nk(D,q.children,X),io(),bv(D),oo()},ie=(D,q,X,le,fe,ce,Se,xe,de=!1)=>{const pe=D&&D.children,Be=D?D.shapeFlag:0,Ee=q.children,{patchFlag:De,shapeFlag:Ue}=q;if(De>0){if(De&128){Ne(pe,Ee,X,le,fe,ce,Se,xe,de);return}else if(De&256){ye(pe,Ee,X,le,fe,ce,Se,xe,de);return}}Ue&8?(Be&16&&Le(pe,fe,ce),Ee!==pe&&v(X,Ee)):Be&16?Ue&16?Ne(pe,Ee,X,le,fe,ce,Se,xe,de):Le(pe,fe,ce,!0):(Be&8&&v(X,""),Ue&16&&Z(Ee,X,le,fe,ce,Se,xe,de))},ye=(D,q,X,le,fe,ce,Se,xe,de)=>{D=D||bs,q=q||bs;const pe=D.length,Be=q.length,Ee=Math.min(pe,Be);let De;for(De=0;De<Ee;De++){const Ue=q[De]=de?Bi(q[De]):br(q[De]);M(D[De],Ue,X,null,fe,ce,Se,xe,de)}pe>Be?Le(D,fe,ce,!0,!1,Ee):Z(q,X,le,fe,ce,Se,xe,de,Ee)},Ne=(D,q,X,le,fe,ce,Se,xe,de)=>{let pe=0;const Be=q.length;let Ee=D.length-1,De=Be-1;for(;pe<=Ee&&pe<=De;){const Ue=D[pe],Qe=q[pe]=de?Bi(q[pe]):br(q[pe]);if(Hr(Ue,Qe))M(Ue,Qe,X,null,fe,ce,Se,xe,de);else break;pe++}for(;pe<=Ee&&pe<=De;){const Ue=D[Ee],Qe=q[De]=de?Bi(q[De]):br(q[De]);if(Hr(Ue,Qe))M(Ue,Qe,X,null,fe,ce,Se,xe,de);else break;Ee--,De--}if(pe>Ee){if(pe<=De){const Ue=De+1,Qe=Ue<Be?q[Ue].el:le;for(;pe<=De;)M(null,q[pe]=de?Bi(q[pe]):br(q[pe]),X,Qe,fe,ce,Se,xe,de),pe++}}else if(pe>De)for(;pe<=Ee;)Ve(D[pe],fe,ce,!0),pe++;else{const Ue=pe,Qe=pe,ot=new Map;for(pe=Qe;pe<=De;pe++){const Dt=q[pe]=de?Bi(q[pe]):br(q[pe]);Dt.key!=null&&ot.set(Dt.key,pe)}let lt,At=0;const st=De-Qe+1;let Ut=!1,It=0;const Pn=new Array(st);for(pe=0;pe<st;pe++)Pn[pe]=0;for(pe=Ue;pe<=Ee;pe++){const Dt=D[pe];if(At>=st){Ve(Dt,fe,ce,!0);continue}let On;if(Dt.key!=null)On=ot.get(Dt.key);else for(lt=Qe;lt<=De;lt++)if(Pn[lt-Qe]===0&&Hr(Dt,q[lt])){On=lt;break}On===void 0?Ve(Dt,fe,ce,!0):(Pn[On-Qe]=pe+1,On>=It?It=On:Ut=!0,M(Dt,q[On],X,null,fe,ce,Se,xe,de),At++)}const Nr=Ut?Rk(Pn):bs;for(lt=Nr.length-1,pe=st-1;pe>=0;pe--){const Dt=Qe+pe,On=q[Dt],Je=Dt+1<Be?q[Dt+1].el:le;Pn[pe]===0?M(null,On,X,Je,fe,ce,Se,xe,de):Ut&&(lt<0||pe!==Nr[lt]?We(On,X,Je,2):lt--)}}},We=(D,q,X,le,fe=null)=>{const{el:ce,type:Se,transition:xe,children:de,shapeFlag:pe}=D;if(pe&6){We(D.component.subTree,q,X,le);return}if(pe&128){D.suspense.move(q,X,le);return}if(pe&64){Se.move(D,q,X,$e);return}if(Se===ct){o(ce,q,X);for(let Ee=0;Ee<de.length;Ee++)We(de[Ee],q,X,le);o(D.anchor,q,X);return}if(Se===ed){$(D,q,X);return}if(le!==2&&pe&1&&xe)if(le===0)xe.beforeEnter(ce),o(ce,q,X),Xn(()=>xe.enter(ce),fe);else{const{leave:Ee,delayLeave:De,afterLeave:Ue}=xe,Qe=()=>o(ce,q,X),ot=()=>{Ee(ce,()=>{Qe(),Ue&&Ue()})};De?De(ce,Qe,ot):ot()}else o(ce,q,X)},Ve=(D,q,X,le=!1,fe=!1)=>{const{type:ce,props:Se,ref:xe,children:de,dynamicChildren:pe,shapeFlag:Be,patchFlag:Ee,dirs:De,cacheIndex:Ue}=D;if(Ee===-2&&(fe=!1),xe!=null&&Ld(xe,null,X,D,!0),Ue!=null&&(q.renderCache[Ue]=void 0),Be&256){q.ctx.deactivate(D);return}const Qe=Be&1&&De,ot=!_s(D);let lt;if(ot&&(lt=Se&&Se.onVnodeBeforeUnmount)&&zr(lt,q,D),Be&6)Xe(D.component,X,le);else{if(Be&128){D.suspense.unmount(X,le);return}Qe&&yo(D,null,q,"beforeUnmount"),Be&64?D.type.remove(D,q,X,$e,le):pe&&!pe.hasOnce&&(ce!==ct||Ee>0&&Ee&64)?Le(pe,q,X,!1,!0):(ce===ct&&Ee&384||!fe&&Be&16)&&Le(de,q,X),le&&nt(D)}(ot&&(lt=Se&&Se.onVnodeUnmounted)||Qe)&&Xn(()=>{lt&&zr(lt,q,D),Qe&&yo(D,null,q,"unmounted")},X)},nt=D=>{const{type:q,el:X,anchor:le,transition:fe}=D;if(q===ct){et(X,le);return}if(q===ed){A(D);return}const ce=()=>{s(X),fe&&!fe.persisted&&fe.afterLeave&&fe.afterLeave()};if(D.shapeFlag&1&&fe&&!fe.persisted){const{leave:Se,delayLeave:xe}=fe,de=()=>Se(X,ce);xe?xe(D.el,ce,de):de()}else ce()},et=(D,q)=>{let X;for(;D!==q;)X=b(D),s(D),D=X;s(q)},Xe=(D,q,X)=>{const{bum:le,scope:fe,job:ce,subTree:Se,um:xe,m:de,a:pe}=D;Ev(de),Ev(pe),le&&Ec(le),fe.stop(),ce&&(ce.flags|=8,Ve(Se,D,q,X)),xe&&Xn(xe,q),Xn(()=>{D.isUnmounted=!0},q),q&&q.pendingBranch&&!q.isUnmounted&&D.asyncDep&&!D.asyncResolved&&D.suspenseId===q.pendingId&&(q.deps--,q.deps===0&&q.resolve())},Le=(D,q,X,le=!1,fe=!1,ce=0)=>{for(let Se=ce;Se<D.length;Se++)Ve(D[Se],q,X,le,fe)},Y=D=>{if(D.shapeFlag&6)return Y(D.component.subTree);if(D.shapeFlag&128)return D.suspense.next();const q=b(D.anchor||D.el),X=q&&q[Q_];return X?b(X):q};let ae=!1;const he=(D,q,X)=>{D==null?q._vnode&&Ve(q._vnode,null,null,!0):M(q._vnode||null,D,q,null,null,null,X),q._vnode=D,ae||(ae=!0,bv(),my(),ae=!1)},$e={p:M,um:Ve,m:We,r:nt,mt:I,mc:Z,pc:ie,pbc:U,n:Y,o:e};return{render:he,hydrate:void 0,createApp:Tk(he)}}function Qf({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 bo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ok(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vy(e,t,r=!1){const o=e.children,s=t.children;if(Fe(o)&&Fe(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=Bi(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&Vy(f,d)),d.type===Nu&&(d.el=f.el)}}function Rk(e){const t=e.slice(),r=[0];let o,s,c,f,d;const h=e.length;for(o=0;o<h;o++){const p=e[o];if(p!==0){if(s=r[r.length-1],e[s]<p){t[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)d=c+f>>1,e[r[d]]<p?c=d+1:f=d;p<e[r[c]]&&(c>0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function jy(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:jy(t)}function Ev(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Dk=Symbol.for("v-scx"),zk=()=>Br(Dk);function Oh(e,t){return Lu(e,null,t)}function Ik(e,t){return Lu(e,null,{flush:"sync"})}function Lt(e,t,r){return Lu(e,t,r)}function Lu(e,t,r=vt){const{immediate:o,deep:s,flush:c,once:f}=r,d=en({},r),h=t&&o||!t&&c!=="post";let p;if(Yl){if(c==="sync"){const w=zk();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=qr,w.resume=qr,w.pause=qr,w}}const v=nn;d.call=(w,E,M)=>Cr(w,v,E,M);let m=!1;c==="post"?d.scheduler=w=>{Xn(w,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(w,E)=>{E?w():Ah(w)}),d.augmentJob=w=>{t&&(w.flags|=4),m&&(w.flags|=2,v&&(w.id=v.uid,w.i=v))};const b=Y_(e,t,d);return Yl&&(p?p.push(b):h&&b()),b}function Fk(e,t,r){const o=this.proxy,s=Rt(e)?e.includes(".")?Gy(o,e):()=>o[e]:e.bind(o,o);let c;je(t)?c=t:(c=t.handler,r=t);const f=ba(this),d=Lu(s,c.bind(o),r);return f(),d}function Gy(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 Au(e,t,r=vt){const o=qs(),s=er(t),c=yi(t),f=Ky(e,s),d=hy((h,p)=>{let v,m=vt,b;return Ik(()=>{const w=e[s];qn(v,w)&&(v=w,p())}),{get(){return h(),r.get?r.get(v):v},set(w){const E=r.set?r.set(w):w;if(!qn(E,v)&&!(m!==vt&&qn(w,m)))return;const M=o.vnode.props;M&&(t in M||s in M||c in M)&&(`onUpdate:${t}`in M||`onUpdate:${s}`in M||`onUpdate:${c}`in M)||(v=w,p()),o.emit(`update:${t}`,E),qn(w,E)&&qn(w,m)&&!qn(E,b)&&p(),m=w,b=E}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||vt:d,done:!1}:{done:!0}}}},d}const Ky=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${er(t)}Modifiers`]||e[`${yi(t)}Modifiers`];function Hk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||vt;let s=r;const c=t.startsWith("update:"),f=c&&Ky(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>Rt(v)?v.trim():v)),f.number&&(s=r.map(xd)));let d,h=o[d=Cc(t)]||o[d=Cc(er(t))];!h&&c&&(h=o[d=Cc(yi(t))]),h&&Cr(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,Cr(p,e,6,s)}}function Xy(e,t,r=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!je(e)){const h=p=>{const v=Xy(p,t,!0);v&&(d=!0,en(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(St(e)&&o.set(e,null),null):(Fe(c)?c.forEach(h=>f[h]=null):en(f,c),St(e)&&o.set(e,f),f)}function Mu(e,t){return!e||!vu(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,yi(t))||wt(e,t))}function Lv(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:m,data:b,setupState:w,ctx:E,inheritAttrs:M}=e,L=Vc(e);let N,C;try{if(r.shapeFlag&4){const A=s||o,z=A;N=br(p.call(z,A,v,m,w,b,E)),C=d}else{const A=t;N=br(A.length>1?A(m,{attrs:d,slots:f,emit:h}):A(m,null)),C=t.props?d:Bk(d)}}catch(A){Rl.length=0,ya(A,e,1),N=Pe(cn)}let $=N;if(C&&M!==!1){const A=Object.keys(C),{shapeFlag:z}=$;A.length&&z&7&&(c&&A.some(yh)&&(C=Wk(C,c)),$=Ji($,C,!1,!0))}return r.dirs&&($=Ji($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(r.dirs):r.dirs),r.transition&&Gl($,r.transition),N=$,Vc(L),N}function qk(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if($s(s)){if(s.type!==cn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const Bk=e=>{let t;for(const r in e)(r==="class"||r==="style"||vu(r))&&((t||(t={}))[r]=e[r]);return t},Wk=(e,t)=>{const r={};for(const o in e)(!yh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Uk(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?Av(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let m=0;m<v.length;m++){const b=v[m];if(f[b]!==o[b]&&!Mu(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?Av(o,f,p):!0:!!f;return!1}function Av(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(t[c]!==e[c]&&!Mu(r,c))return!0}return!1}function Rh({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 Yy=e=>e.__isSuspense;let Pd=0;const Vk={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)jk(t,r,o,s,c,f,d,h,p);else{if(c&&c.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Gk(e,t,r,o,s,f,d,h,p)}},hydrate:Kk,normalize:Xk},Zy=Vk;function Xl(e,t){const r=e.props&&e.props[t];je(r)&&r()}function jk(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=Jy(e,s,o,t,m,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,m,null,o,b,c,f),b.deps>0?(Xl(e,"onPending"),Xl(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),ks(b,e.ssFallback)):b.resolve(!1,!0)}function Gk(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,w=t.ssFallback,{activeBranch:E,pendingBranch:M,isInFallback:L,isHydrating:N}=m;if(M)m.pendingBranch=b,Hr(b,M)?(h(M,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():L&&(N||(h(E,w,r,o,s,null,c,f,d),ks(m,w)))):(m.pendingId=Pd++,N?(m.isHydrating=!1,m.activeBranch=M):p(M,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),L?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(E,w,r,o,s,null,c,f,d),ks(m,w))):E&&Hr(b,E)?(h(E,b,r,o,s,m,c,f,d),m.resolve(!0)):(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0&&m.resolve()));else if(E&&Hr(b,E))h(E,b,r,o,s,m,c,f,d),ks(m,b);else if(Xl(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=Pd++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:C,pendingId:$}=m;C>0?setTimeout(()=>{m.pendingId===$&&m.fallback(w)},C):C===0&&m.fallback(w)}}function Jy(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:w,n:E,o:{parentNode:M,remove:L}}=p;let N;const C=Zk(e);C&&t&&t.pendingBranch&&(N=t.pendingId,t.deps++);const $=e.props?V0(e.props.timeout):void 0,A=c,z={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Pd++,timeout:typeof $=="number"?$:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(G=!1,B=!1){const{vnode:Z,activeBranch:ee,pendingBranch:U,pendingId:te,effects:J,parentComponent:H,container:I}=z;let k=!1;z.isHydrating?z.isHydrating=!1:G||(k=ee&&U.transition&&U.transition.mode==="out-in",k&&(ee.transition.afterLeave=()=>{te===z.pendingId&&(b(U,I,c===A?E(ee):c,0),Cd(J))}),ee&&(M(ee.el)===I&&(c=E(ee)),w(ee,H,z,!0)),k||b(U,I,c,0)),ks(z,U),z.pendingBranch=null,z.isInFallback=!1;let W=z.parent,V=!1;for(;W;){if(W.pendingBranch){W.effects.push(...J),V=!0;break}W=W.parent}!V&&!k&&Cd(J),z.effects=[],C&&t&&t.pendingBranch&&N===t.pendingId&&(t.deps--,t.deps===0&&!B&&t.resolve()),Xl(Z,"onResolve")},fallback(G){if(!z.pendingBranch)return;const{vnode:B,activeBranch:Z,parentComponent:ee,container:U,namespace:te}=z;Xl(B,"onFallback");const J=E(Z),H=()=>{z.isInFallback&&(m(null,G,U,J,ee,null,te,d,h),ks(z,G))},I=G.transition&&G.transition.mode==="out-in";I&&(Z.transition.afterLeave=H),z.isInFallback=!0,w(Z,ee,null,!0),I||H()},move(G,B,Z){z.activeBranch&&b(z.activeBranch,G,B,Z),z.container=G},next(){return z.activeBranch&&E(z.activeBranch)},registerDep(G,B,Z){const ee=!!z.pendingBranch;ee&&z.deps++;const U=G.vnode.el;G.asyncDep.catch(te=>{ya(te,G,0)}).then(te=>{if(G.isUnmounted||z.isUnmounted||z.pendingId!==G.suspenseId)return;G.asyncResolved=!0;const{vnode:J}=G;Rd(G,te),U&&(J.el=U);const H=!U&&G.subTree.el;B(G,J,M(U||G.subTree.el),U?null:E(G.subTree),z,f,Z),H&&L(H),Rh(G,J.el),ee&&--z.deps===0&&z.resolve()})},unmount(G,B){z.isUnmounted=!0,z.activeBranch&&w(z.activeBranch,r,G,B),z.pendingBranch&&w(z.pendingBranch,r,G,B)}};return z}function Kk(e,t,r,o,s,c,f,d,h){const p=t.suspense=Jy(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),v=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),v}function Xk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=Mv(o?r.default:r),e.ssFallback=o?Mv(r.fallback):Pe(cn)}function Mv(e){let t;if(je(e)){const r=Ns&&e._c;r&&(e._d=!1,oe()),e=e(),r&&(e._d=!0,t=Wn,Qy())}return Fe(e)&&(e=qk(e)),e=br(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Yk(e,t){t&&t.pendingBranch?Fe(e)?t.effects.push(...e):t.effects.push(e):Cd(e)}function ks(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,Rh(o,s))}function Zk(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ct=Symbol.for("v-fgt"),Nu=Symbol.for("v-txt"),cn=Symbol.for("v-cmt"),ed=Symbol.for("v-stc"),Rl=[];let Wn=null;function oe(e=!1){Rl.push(Wn=e?null:[])}function Qy(){Rl.pop(),Wn=Rl[Rl.length-1]||null}let Ns=1;function Kc(e){Ns+=e,e<0&&Wn&&(Wn.hasOnce=!0)}function eb(e){return e.dynamicChildren=Ns>0?Wn||bs:null,Qy(),Ns>0&&Wn&&Wn.push(e),e}function me(e,t,r,o,s,c){return eb(Q(e,t,r,o,s,c,!0))}function tt(e,t,r,o,s){return eb(Pe(e,t,r,o,s,!0))}function $s(e){return e?e.__v_isVNode===!0:!1}function Hr(e,t){return e.type===t.type&&e.key===t.key}const tb=({key:e})=>e??null,Ac=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Rt(e)||kt(e)||je(e)?{i:Jt,r:e,k:t,f:!!r}:e:null);function Q(e,t=null,r=null,o=0,s=null,c=e===ct?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&tb(t),ref:t&&Ac(t),scopeId:ku,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Jt};return d?(Dh(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Rt(r)?8:16),Ns>0&&!f&&Wn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Wn.push(h),h}const Pe=Jk;function Jk(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===My)&&(e=cn),$s(e)){const d=Ji(e,t,!0);return r&&Dh(d,r),Ns>0&&!c&&Wn&&(d.shapeFlag&6?Wn[Wn.indexOf(e)]=d:Wn.push(d)),d.patchFlag=-2,d}if(sT(e)&&(e=e.__vccOpts),t){t=nb(t);let{class:d,style:h}=t;d&&!Rt(d)&&(t.class=it(d)),St(h)&&(Eh(h)&&!Fe(h)&&(h=en({},h)),t.style=Qt(h))}const f=Rt(e)?1:Yy(e)?128:Sy(e)?64:St(e)?4:je(e)?2:0;return Q(e,t,r,o,s,f,c,!0)}function nb(e){return e?Eh(e)||Iy(e)?en({},e):e:null}function Ji(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?hi(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&tb(p),ref:t&&t.ref?r&&c?Fe(c)?c.concat(Ac(t)):[c,Ac(t)]:Ac(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ct?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ji(e.ssContent),ssFallback:e.ssFallback&&Ji(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&Gl(v,h.clone(v)),v}function pt(e=" ",t=0){return Pe(Nu,null,e,t)}function Ke(e="",t=!1){return t?(oe(),tt(cn,null,e)):Pe(cn,null,e)}function br(e){return e==null||typeof e=="boolean"?Pe(cn):Fe(e)?Pe(ct,null,e.slice()):$s(e)?Bi(e):Pe(Nu,null,String(e))}function Bi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ji(e)}function Dh(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),Dh(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Iy(t)?t._ctx=Jt:s===3&&Jt&&(Jt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else je(t)?(t={default:t,_ctx:Jt},r=32):(t=String(t),o&64?(r=16,t=[pt(t)]):r=8);e.children=t,e.shapeFlag|=r}function hi(...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=Qt([t.style,o.style]);else if(vu(s)){const c=t[s],f=o[s];f&&c!==f&&!(Fe(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function zr(e,t,r,o=null){Cr(e,t,7,[r,o])}const Qk=Oy();let eT=0;function tT(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Qk,c={uid:eT++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new b_(!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:Hy(o,s),emitsOptions:Xy(o,s),emit:null,emitted:null,propsDefaults:vt,inheritAttrs:o.inheritAttrs,ctx:vt,data:vt,props:vt,attrs:vt,slots:vt,refs:vt,setupState:vt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=Hk.bind(null,c),e.ce&&e.ce(c),c}let nn=null;const qs=()=>nn||Jt;let Xc,Od;{const e=wu(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};Xc=t("__VUE_INSTANCE_SETTERS__",r=>nn=r),Od=t("__VUE_SSR_SETTERS__",r=>Yl=r)}const ba=e=>{const t=nn;return Xc(e),e.scope.on(),()=>{e.scope.off(),Xc(t)}},Nv=()=>{nn&&nn.scope.off(),Xc(null)};function rb(e){return e.vnode.shapeFlag&4}let Yl=!1;function nT(e,t=!1,r=!1){t&&Od(t);const{props:o,children:s}=e.vnode,c=rb(e);Ck(e,o,c,t),Mk(e,s,r);const f=c?rT(e,t):void 0;return t&&Od(!1),f}function rT(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,vk);const{setup:o}=r;if(o){io();const s=e.setupContext=o.length>1?ob(e):null,c=ba(e),f=ma(o,e,0,[e.props,s]),d=q0(f);if(oo(),c(),(d||e.sp)&&!_s(e)&&Ly(e),d){if(f.then(Nv,Nv),t)return f.then(h=>{Rd(e,h)}).catch(h=>{ya(h,e,0)});e.asyncDep=f}else Rd(e,f)}else ib(e)}function Rd(e,t,r){je(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=dy(t)),ib(e)}function ib(e,t,r){const o=e.type;e.render||(e.render=o.render||qr);{const s=ba(e);io();try{bk(e)}finally{oo(),s()}}}const iT={get(e,t){return hn(e,"get",""),e[t]}};function ob(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,iT),slots:e.slots,emit:e.emit,expose:t}}function $u(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(dy(Lh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ol)return Ol[r](e)},has(t,r){return r in t||r in Ol}})):e.proxy}function oT(e,t=!0){return je(e)?e.displayName||e.name:e.name||t&&e.__name}function sT(e){return je(e)&&"__vccOpts"in e}const ke=(e,t)=>K_(e,t,Yl);function wa(e,t,r){const o=arguments.length;return o===2?St(t)&&!Fe(t)?$s(t)?Pe(e,null,[t]):Pe(e,t):Pe(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&$s(r)&&(r=[r]),Pe(e,t,r))}const lT="3.5.12";/**
|
|
14
|
-
* @vue/runtime-dom v3.5.12
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/let Dd;const $v=typeof window<"u"&&window.trustedTypes;if($v)try{Dd=$v.createPolicy("vue",{createHTML:e=>e})}catch{}const sb=Dd?e=>Dd.createHTML(e):e=>e,aT="http://www.w3.org/2000/svg",cT="http://www.w3.org/1998/Math/MathML",ai=typeof document<"u"?document:null,Pv=ai&&ai.createElement("template"),uT={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"?ai.createElementNS(aT,e):t==="mathml"?ai.createElementNS(cT,e):r?ai.createElement(e,{is:r}):ai.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>ai.createTextNode(e),createComment:e=>ai.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ai.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{Pv.innerHTML=sb(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Pv.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Oi="transition",xl="animation",Zl=Symbol("_vtc"),lb={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},fT=en({},_y,lb),dT=e=>(e.displayName="Transition",e.props=fT,e),hT=dT((e,{slots:t})=>wa(nk,pT(e),t)),wo=(e,t=[])=>{Fe(e)?e.forEach(r=>r(...t)):e&&e(...t)},Ov=e=>e?Fe(e)?e.some(t=>t.length>1):e.length>1:!1;function pT(e){const t={};for(const J in e)J in lb||(t[J]=e[J]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,E=gT(s),M=E&&E[0],L=E&&E[1],{onBeforeEnter:N,onEnter:C,onEnterCancelled:$,onLeave:A,onLeaveCancelled:z,onBeforeAppear:G=N,onAppear:B=C,onAppearCancelled:Z=$}=t,ee=(J,H,I)=>{xo(J,H?v:d),xo(J,H?p:f),I&&I()},U=(J,H)=>{J._isLeaving=!1,xo(J,m),xo(J,w),xo(J,b),H&&H()},te=J=>(H,I)=>{const k=J?B:C,W=()=>ee(H,J,I);wo(k,[H,W]),Rv(()=>{xo(H,J?h:c),Ri(H,J?v:d),Ov(k)||Dv(H,o,M,W)})};return en(t,{onBeforeEnter(J){wo(N,[J]),Ri(J,c),Ri(J,f)},onBeforeAppear(J){wo(G,[J]),Ri(J,h),Ri(J,p)},onEnter:te(!1),onAppear:te(!0),onLeave(J,H){J._isLeaving=!0;const I=()=>U(J,H);Ri(J,m),Ri(J,b),yT(),Rv(()=>{J._isLeaving&&(xo(J,m),Ri(J,w),Ov(A)||Dv(J,o,L,I))}),wo(A,[J,I])},onEnterCancelled(J){ee(J,!1),wo($,[J])},onAppearCancelled(J){ee(J,!0),wo(Z,[J])},onLeaveCancelled(J){U(J),wo(z,[J])}})}function gT(e){if(e==null)return null;if(St(e))return[td(e.enter),td(e.leave)];{const t=td(e);return[t,t]}}function td(e){return V0(e)}function Ri(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Zl]||(e[Zl]=new Set)).add(t)}function xo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Zl];r&&(r.delete(t),r.size||(e[Zl]=void 0))}function Rv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let vT=0;function Dv(e,t,r,o){const s=e._endId=++vT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=mT(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function mT(e,t){const r=window.getComputedStyle(e),o=E=>(r[E]||"").split(", "),s=o(`${Oi}Delay`),c=o(`${Oi}Duration`),f=zv(s,c),d=o(`${xl}Delay`),h=o(`${xl}Duration`),p=zv(d,h);let v=null,m=0,b=0;t===Oi?f>0&&(v=Oi,m=f,b=c.length):t===xl?p>0&&(v=xl,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Oi:xl:null,b=v?v===Oi?c.length:h.length:0);const w=v===Oi&&/\b(transform|all)(,|$)/.test(o(`${Oi}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:w}}function zv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Iv(r)+Iv(e[o])))}function Iv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function yT(){return document.body.offsetHeight}function bT(e,t,r){const o=e[Zl];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Yc=Symbol("_vod"),ab=Symbol("_vsh"),Gi={beforeMount(e,{value:t},{transition:r}){e[Yc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Sl(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),Sl(e,!0),o.enter(e)):o.leave(e,()=>{Sl(e,!1)}):Sl(e,t))},beforeUnmount(e,{value:t}){Sl(e,t)}};function Sl(e,t){e.style.display=t?e[Yc]:"none",e[ab]=!t}const wT=Symbol(""),xT=/(^|;)\s*display\s*:/;function ST(e,t,r){const o=e.style,s=Rt(r);let c=!1;if(r&&!s){if(t)if(Rt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Mc(o,d,"")}else for(const f in t)r[f]==null&&Mc(o,f,"");for(const f in r)f==="display"&&(c=!0),Mc(o,f,r[f])}else if(s){if(t!==r){const f=o[wT];f&&(r+=";"+f),o.cssText=r,c=xT.test(r)}}else t&&e.removeAttribute("style");Yc in e&&(e[Yc]=c?o.display:"",e[ab]&&(o.display="none"))}const Fv=/\s*!important$/;function Mc(e,t,r){if(Fe(r))r.forEach(o=>Mc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=_T(e,t);Fv.test(r)?e.setProperty(yi(o),r.replace(Fv,""),"important"):e[o]=r}}const Hv=["Webkit","Moz","ms"],nd={};function _T(e,t){const r=nd[t];if(r)return r;let o=er(t);if(o!=="filter"&&o in e)return nd[t]=o;o=bu(o);for(let s=0;s<Hv.length;s++){const c=Hv[s]+o;if(c in e)return nd[t]=c}return t}const qv="http://www.w3.org/1999/xlink";function Bv(e,t,r,o,s,c=m_(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(qv,t.slice(6,t.length)):e.setAttributeNS(qv,t,r):r==null||c&&!j0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Tr(r)?String(r):r)}function Wv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?sb(r):r);return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){const d=c==="OPTION"?e.getAttribute("value")||"":e.value,h=r==null?e.type==="checkbox"?"on":"":String(r);(d!==h||!("_value"in e))&&(e.value=h),r==null&&e.removeAttribute(t),e._value=r;return}let f=!1;if(r===""||r==null){const d=typeof e[t];d==="boolean"?r=j0(r):r==null&&d==="string"?(r="",f=!0):d==="number"&&(r=0,f=!0)}try{e[t]=r}catch{}f&&e.removeAttribute(s||t)}function To(e,t,r,o){e.addEventListener(t,r,o)}function kT(e,t,r,o){e.removeEventListener(t,r,o)}const Uv=Symbol("_vei");function TT(e,t,r,o,s=null){const c=e[Uv]||(e[Uv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=CT(t);if(o){const p=c[t]=AT(o,s);To(e,d,p,h)}else f&&(kT(e,d,f,h),c[t]=void 0)}}const Vv=/(?:Once|Passive|Capture)$/;function CT(e){let t;if(Vv.test(e)){t={};let o;for(;o=e.match(Vv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):yi(e.slice(2)),t]}let rd=0;const ET=Promise.resolve(),LT=()=>rd||(ET.then(()=>rd=0),rd=Date.now());function AT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Cr(MT(o,r.value),t,5,[o])};return r.value=e,r.attached=LT(),r}function MT(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 jv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,NT=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?bT(e,o,f):t==="style"?ST(e,r,o):vu(t)?yh(t)||TT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$T(e,t,o,f))?(Wv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Bv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Rt(o))?Wv(e,er(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Bv(e,t,o,f))};function $T(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&jv(t)&&je(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||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 jv(t)&&Rt(r)?!1:t in e}const Zc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Fe(t)?r=>Ec(t,r):t};function PT(e){e.target.composing=!0}function Gv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ts=Symbol("_assign"),OT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Ts]=Zc(s);const c=o||s.props&&s.props.type==="number";To(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=xd(d)),e[Ts](d)}),r&&To(e,"change",()=>{e.value=e.value.trim()}),t||(To(e,"compositionstart",PT),To(e,"compositionend",Gv),To(e,"change",Gv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Ts]=Zc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?xd(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},cb={deep:!0,created(e,t,r){e[Ts]=Zc(r),To(e,"change",()=>{const o=e._modelValue,s=RT(e),c=e.checked,f=e[Ts];if(Fe(o)){const d=G0(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(mu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(ub(e,c))})},mounted:Kv,beforeUpdate(e,t,r){e[Ts]=Zc(r),Kv(e,t,r)}};function Kv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Fe(t))s=G0(t,o.props.value)>-1;else if(mu(t))s=t.has(o.props.value);else{if(t===r)return;s=xu(t,ub(e,!0))}e.checked!==s&&(e.checked=s)}function RT(e){return"_value"in e?e._value:e.value}function ub(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const DT=["ctrl","shift","alt","meta"],zT={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>DT.some(r=>e[`${r}Key`]&&!t.includes(r))},Nc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(s,...c)=>{for(let f=0;f<t.length;f++){const d=zT[t[f]];if(d&&d(s,t))return}return e(s,...c)})},IT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},zd=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=yi(s.key);if(t.some(f=>f===c||IT[f]===c))return e(s)})},FT=en({patchProp:NT},uT);let Xv;function HT(){return Xv||(Xv=$k(FT))}const fb=(...e)=>{const t=HT().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=BT(o);if(!s)return;const c=t._component;!je(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,qT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function qT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function BT(e){return Rt(e)?document.querySelector(e):e}const Xr=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},WT={};function UT(e,t){const r=Po("RouterView");return oe(),tt(r)}const VT=Xr(WT,[["render",UT]]),jT=["top","right","bottom","left"],Yv=["start","end"],Zv=jT.reduce((e,t)=>e.concat(t,t+"-"+Yv[0],t+"-"+Yv[1]),[]),Jl=Math.min,ko=Math.max,GT={left:"right",right:"left",bottom:"top",top:"bottom"},KT={start:"end",end:"start"};function Id(e,t,r){return ko(e,Jl(t,r))}function Io(e,t){return typeof e=="function"?e(t):e}function jr(e){return e.split("-")[0]}function Sr(e){return e.split("-")[1]}function db(e){return e==="x"?"y":"x"}function zh(e){return e==="y"?"height":"width"}function xa(e){return["top","bottom"].includes(jr(e))?"y":"x"}function Ih(e){return db(xa(e))}function hb(e,t,r){r===void 0&&(r=!1);const o=Sr(e),s=Ih(e),c=zh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Qc(f)),[f,Qc(f)]}function XT(e){const t=Qc(e);return[Jc(e),t,Jc(t)]}function Jc(e){return e.replace(/start|end/g,t=>KT[t])}function YT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function ZT(e,t,r,o){const s=Sr(e);let c=YT(jr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Jc)))),c}function Qc(e){return e.replace(/left|right|bottom|top/g,t=>GT[t])}function JT(e){return{top:0,right:0,bottom:0,left:0,...e}}function pb(e){return typeof e!="number"?JT(e):{top:e,right:e,bottom:e,left:e}}function Dl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Jv(e,t,r){let{reference:o,floating:s}=e;const c=xa(t),f=Ih(t),d=zh(f),h=jr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:v,y:o.y-s.height};break;case"bottom":w={x:v,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:m};break;case"left":w={x:o.x-s.width,y:m};break;default:w={x:o.x,y:o.y}}switch(Sr(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const QT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=Jv(p,o,h),b=o,w={},E=0;for(let M=0;M<d.length;M++){const{name:L,fn:N}=d[M],{x:C,y:$,data:A,reset:z}=await N({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});v=C??v,m=$??m,w={...w,[L]:{...w[L],...A}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(b=z.placement),z.rects&&(p=z.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):z.rects),{x:v,y:m}=Jv(p,b,h)),M=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:w}};async function Pu(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:w=0}=Io(t,e),E=pb(w),L=d[b?m==="floating"?"reference":"floating":m],N=Dl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(L)))==null||r?L:L.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),C=m==="floating"?{...f.floating,x:o,y:s}:f.reference,$=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),A=await(c.isElement==null?void 0:c.isElement($))?await(c.getScale==null?void 0:c.getScale($))||{x:1,y:1}:{x:1,y:1},z=Dl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:C,offsetParent:$,strategy:h}):C);return{top:(N.top-z.top+E.top)/A.y,bottom:(z.bottom-N.bottom+E.bottom)/A.y,left:(N.left-z.left+E.left)/A.x,right:(z.right-N.right+E.right)/A.x}}const eC=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=Io(e,t)||{};if(p==null)return{};const m=pb(v),b={x:r,y:o},w=Ih(s),E=zh(w),M=await f.getDimensions(p),L=w==="y",N=L?"top":"left",C=L?"bottom":"right",$=L?"clientHeight":"clientWidth",A=c.reference[E]+c.reference[w]-b[w]-c.floating[E],z=b[w]-c.reference[w],G=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let B=G?G[$]:0;(!B||!await(f.isElement==null?void 0:f.isElement(G)))&&(B=d.floating[$]||c.floating[E]);const Z=A/2-z/2,ee=B/2-M[E]/2-1,U=Jl(m[N],ee),te=Jl(m[C],ee),J=U,H=B-M[E]-te,I=B/2-M[E]/2+Z,k=Id(J,I,H),W=!h.arrow&&Sr(s)!=null&&I!==k&&c.reference[E]/2-(I<J?U:te)-M[E]/2<0,V=W?I<J?I-J:I-H:0;return{[w]:b[w]+V,data:{[w]:k,centerOffset:I-k-V,...W&&{alignmentOffset:V}},reset:W}}});function tC(e,t,r){return(e?[...r.filter(s=>Sr(s)===e),...r.filter(s=>Sr(s)!==e)]:r.filter(s=>jr(s)===s)).filter(s=>e?Sr(s)===e||(t?Jc(s)!==s:!1):!0)}const nC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=Zv,autoAlignment:w=!0,...E}=Io(e,t),M=m!==void 0||b===Zv?tC(m||null,w,b):b,L=await Pu(t,E),N=((r=f.autoPlacement)==null?void 0:r.index)||0,C=M[N];if(C==null)return{};const $=hb(C,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==C)return{reset:{placement:M[0]}};const A=[L[jr(C)],L[$[0]],L[$[1]]],z=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:C,overflows:A}],G=M[N+1];if(G)return{data:{index:N+1,overflows:z},reset:{placement:G}};const B=z.map(U=>{const te=Sr(U.placement);return[U.placement,te&&v?U.overflows.slice(0,2).reduce((J,H)=>J+H,0):U.overflows[0],U.overflows]}).sort((U,te)=>U[1]-te[1]),ee=((s=B.filter(U=>U[2].slice(0,Sr(U[0])?2:3).every(te=>te<=0))[0])==null?void 0:s[0])||B[0][0];return ee!==d?{data:{index:N+1,overflows:z},reset:{placement:ee}}:{}}}},rC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:M=!0,...L}=Io(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const N=jr(s),C=jr(d)===d,$=await(h.isRTL==null?void 0:h.isRTL(p.floating)),A=b||(C||!M?[Qc(d)]:XT(d));!b&&E!=="none"&&A.push(...ZT(d,M,E,$));const z=[d,...A],G=await Pu(t,L),B=[];let Z=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&B.push(G[N]),m){const J=hb(s,f,$);B.push(G[J[0]],G[J[1]])}if(Z=[...Z,{placement:s,overflows:B}],!B.every(J=>J<=0)){var ee,U;const J=(((ee=c.flip)==null?void 0:ee.index)||0)+1,H=z[J];if(H)return{data:{index:J,overflows:Z},reset:{placement:H}};let I=(U=Z.filter(k=>k.overflows[0]<=0).sort((k,W)=>k.overflows[1]-W.overflows[1])[0])==null?void 0:U.placement;if(!I)switch(w){case"bestFit":{var te;const k=(te=Z.map(W=>[W.placement,W.overflows.filter(V=>V>0).reduce((V,ie)=>V+ie,0)]).sort((W,V)=>W[1]-V[1])[0])==null?void 0:te[0];k&&(I=k);break}case"initialPlacement":I=d;break}if(s!==I)return{reset:{placement:I}}}return{}}}};async function iC(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=jr(r),d=Sr(r),h=xa(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=Io(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof E=="number"&&(w=d==="end"?E*-1:E),h?{x:w*v,y:b*p}:{x:b*p,y:w*v}}const oC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await iC(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},sC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:L=>{let{x:N,y:C}=L;return{x:N,y:C}}},...h}=Io(e,t),p={x:r,y:o},v=await Pu(t,h),m=xa(jr(s)),b=db(m);let w=p[b],E=p[m];if(c){const L=b==="y"?"top":"left",N=b==="y"?"bottom":"right",C=w+v[L],$=w-v[N];w=Id(C,w,$)}if(f){const L=m==="y"?"top":"left",N=m==="y"?"bottom":"right",C=E+v[L],$=E-v[N];E=Id(C,E,$)}const M=d.fn({...t,[b]:w,[m]:E});return{...M,data:{x:M.x-r,y:M.y-o}}}}},lC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=Io(e,t),h=await Pu(t,d),p=jr(r),v=Sr(r),m=xa(r)==="y",{width:b,height:w}=o.floating;let E,M;p==="top"||p==="bottom"?(E=p,M=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(M=p,E=v==="end"?"top":"bottom");const L=w-h[E],N=b-h[M],C=!t.middlewareData.shift;let $=L,A=N;if(m){const G=b-h.left-h.right;A=v||C?Jl(N,G):G}else{const G=w-h.top-h.bottom;$=v||C?Jl(L,G):G}if(C&&!v){const G=ko(h.left,0),B=ko(h.right,0),Z=ko(h.top,0),ee=ko(h.bottom,0);m?A=b-2*(G!==0||B!==0?G+B:ko(h.left,h.right)):$=w-2*(Z!==0||ee!==0?Z+ee:ko(h.top,h.bottom))}await f({...t,availableWidth:A,availableHeight:$});const z=await s.getDimensions(c.floating);return b!==z.width||w!==z.height?{reset:{rects:!0}}:{}}}};function or(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wr(e){return or(e).getComputedStyle(e)}const Qv=Math.min,zl=Math.max,eu=Math.round;function gb(e){const t=Wr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=eu(r)!==s||eu(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Qi(e){return mb(e)?(e.nodeName||"").toLowerCase():""}let dc;function vb(){if(dc)return dc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(dc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),dc):navigator.userAgent}function Ur(e){return e instanceof or(e).HTMLElement}function Yi(e){return e instanceof or(e).Element}function mb(e){return e instanceof or(e).Node}function em(e){return typeof ShadowRoot>"u"?!1:e instanceof or(e).ShadowRoot||e instanceof ShadowRoot}function Ou(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Wr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function aC(e){return["table","td","th"].includes(Qi(e))}function Fd(e){const t=/firefox/i.test(vb()),r=Wr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(s=>r.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const c=r.contain;return c!=null&&c.includes(s)})}function yb(){return!/^((?!chrome|android).)*safari/i.test(vb())}function Fh(e){return["html","body","#document"].includes(Qi(e))}function bb(e){return Yi(e)?e:e.contextElement}const wb={x:1,y:1};function Cs(e){const t=bb(e);if(!Ur(t))return wb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=gb(t);let f=(c?eu(r.width):r.width)/o,d=(c?eu(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Ql(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=bb(e);let h=wb;t&&(o?Yi(o)&&(h=Cs(o)):h=Cs(e));const p=d?or(d):window,v=!yb()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,E=f.height/h.y;if(d){const M=or(d),L=o&&Yi(o)?or(o):o;let N=M.frameElement;for(;N&&o&&L!==M;){const C=Cs(N),$=N.getBoundingClientRect(),A=getComputedStyle(N);$.x+=(N.clientLeft+parseFloat(A.paddingLeft))*C.x,$.y+=(N.clientTop+parseFloat(A.paddingTop))*C.y,m*=C.x,b*=C.y,w*=C.x,E*=C.y,m+=$.x,b+=$.y,N=or(N).frameElement}}return{width:w,height:E,top:b,right:m+w,bottom:b+E,left:m,x:m,y:b}}function Zi(e){return((mb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ru(e){return Yi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function xb(e){return Ql(Zi(e)).left+Ru(e).scrollLeft}function ea(e){if(Qi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||em(e)&&e.host||Zi(e);return em(t)?t.host:t}function Sb(e){const t=ea(e);return Fh(t)?t.ownerDocument.body:Ur(t)&&Ou(t)?t:Sb(t)}function tu(e,t){var r;t===void 0&&(t=[]);const o=Sb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=or(o);return s?t.concat(c,c.visualViewport||[],Ou(o)?o:[]):t.concat(o,tu(o))}function tm(e,t,r){return t==="viewport"?Dl(function(o,s){const c=or(o),f=Zi(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=yb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}}(e,r)):Yi(t)?Dl(function(o,s){const c=Ql(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Ur(o)?Cs(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}}(t,r)):Dl(function(o){const s=Zi(o),c=Ru(o),f=o.ownerDocument.body,d=zl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=zl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+xb(o);const v=-c.scrollTop;return Wr(f).direction==="rtl"&&(p+=zl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Zi(e)))}function nm(e){return Ur(e)&&Wr(e).position!=="fixed"?e.offsetParent:null}function rm(e){const t=or(e);let r=nm(e);for(;r&&aC(r)&&Wr(r).position==="static";)r=nm(r);return r&&(Qi(r)==="html"||Qi(r)==="body"&&Wr(r).position==="static"&&!Fd(r))?t:r||function(o){let s=ea(o);for(;Ur(s)&&!Fh(s);){if(Fd(s))return s;s=ea(s)}return null}(e)||t}function cC(e,t,r){const o=Ur(t),s=Zi(t),c=Ql(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((Qi(t)!=="body"||Ou(s))&&(f=Ru(t)),Ur(t)){const h=Ql(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=xb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const uC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const m=v.get(p);if(m)return m;let b=tu(p).filter(L=>Yi(L)&&Qi(L)!=="body"),w=null;const E=Wr(p).position==="fixed";let M=E?ea(p):p;for(;Yi(M)&&!Fh(M);){const L=Wr(M),N=Fd(M);(E?N||w:N||L.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=L:b=b.filter(C=>C!==M),M=ea(M)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const m=tm(t,v,s);return p.top=zl(m.top,p.top),p.right=Qv(m.right,p.right),p.bottom=Qv(m.bottom,p.bottom),p.left=zl(m.left,p.left),p},tm(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=Ur(r),c=Zi(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((Qi(r)!=="body"||Ou(c))&&(f=Ru(r)),Ur(r))){const p=Ql(r);d=Cs(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:Yi,getDimensions:function(e){return Ur(e)?gb(e):e.getBoundingClientRect()},getOffsetParent:rm,getDocumentElement:Zi,getScale:Cs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||rm,c=this.getDimensions;return{reference:cC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Wr(e).direction==="rtl"},fC=(e,t,r)=>{const o=new Map,s={platform:uC,...r},c={...s.platform,_c:o};return QT(e,t,{...s,platform:c})};function _b(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?_b(e[r],t[r]):e[r]=t[r])}const _r={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 ta(e,t){let r=_r.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=_r.themes[r.$extend]||{}:(r=null,o=_r[t]):r=null;while(r);return o}function dC(e){const t=[e];let r=_r.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=_r.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function im(e){const t=[e];let r=_r.themes[e]||{};do r.$extend?(t.push(r.$extend),r=_r.themes[r.$extend]||{}):r=null;while(r);return t}let Ps=!1;if(typeof window<"u"){Ps=!1;try{const e=Object.defineProperty({},"passive",{get(){Ps=!0}});window.addEventListener("test",null,e)}catch{}}let kb=!1;typeof window<"u"&&typeof navigator<"u"&&(kb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Tb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),om={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},sm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function lm(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function id(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Yn=[];let So=null;const am={};function cm(e){let t=am[e];return t||(t=am[e]=[]),t}let Hd=function(){};typeof window<"u"&&(Hd=window.Element);function at(e){return function(t){return ta(t.theme,e)}}const od="__floating-vue__popper",Cb=()=>ut({name:"VPopper",provide(){return{[od]:{parentPopper:this}}},inject:{[od]:{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=>Tb.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,Hd,Boolean],default:at("container")},boundary:{type:[String,Hd],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[od])==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(oC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(nC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(sC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(rC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(eC({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(lC({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 fC(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),So&&this.instantMove&&So.instantMove&&So!==this.parentPopper){So.$_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&&(So=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 id(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...tu(this.$_referenceNode),...tu(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<Yn.length;r++)t=Yn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Yn.push(this),document.body.classList.add("v-popper--some-open");for(const t of im(this.theme))cm(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 id(),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,lm(Yn,this),Yn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of im(this.theme)){const o=cm(r);lm(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}So===this&&(So=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 id(),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,om,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],om,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,sm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],sm,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,Ps?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Il>=e.left&&Il<=e.right&&Fl>=e.top&&Fl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Il-Ii,o=Fl-Fi,s=t.left+t.width/2-Ii+(t.top+t.height/2)-Fi+t.width+t.height,c=Ii+r*s,f=Fi+o*s;return hc(Ii,Fi,c,f,t.left,t.top,t.left,t.bottom)||hc(Ii,Fi,c,f,t.left,t.top,t.right,t.top)||hc(Ii,Fi,c,f,t.right,t.top,t.right,t.bottom)||hc(Ii,Fi,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(kb){const e=Ps?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>um(t,!0),e),document.addEventListener("touchend",t=>fm(t,!0),e)}else window.addEventListener("mousedown",e=>um(e,!1),!0),window.addEventListener("click",e=>fm(e,!1),!0);window.addEventListener("resize",pC)}function um(e,t){if(_r.autoHideOnMousedown)Eb(e,t);else for(let r=0;r<Yn.length;r++){const o=Yn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function fm(e,t){_r.autoHideOnMousedown||Eb(e,t)}function Eb(e,t){const r={};for(let o=Yn.length-1;o>=0;o--){const s=Yn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&dm(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&dm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function dm(e,t,r){return r.closeAllPopover||r.closePopover&&t||hC(e,r)&&!t}function hC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function pC(){for(let e=0;e<Yn.length;e++)Yn[e].$_computePosition()}function hm(){for(let e=0;e<Yn.length;e++)Yn[e].hide()}let Ii=0,Fi=0,Il=0,Fl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Ii=Il,Fi=Fl,Il=e.clientX,Fl=e.clientY},Ps?{passive:!0}:void 0);function hc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const gC={extends:Cb()},Du=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function vC(e,t,r,o,s,c){return oe(),me("div",{ref:"reference",class:it(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[mn(e.$slots,"default",g_(nb(e.slotData)))],2)}const mC=Du(gC,[["render",vC]]);function yC(){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 $c;function qd(){qd.init||(qd.init=!0,$c=yC()!==-1)}var zu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){qd(),Ot(()=>{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",$c&&this.$el.appendChild(e),e.data="about:blank",$c||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&&(!$c&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const bC=xy();by("data-v-b329ee4c");const wC={class:"resize-observer",tabindex:"-1"};wy();const xC=bC((e,t,r,o,s,c)=>(oe(),tt("div",wC)));zu.render=xC;zu.__scopeId="data-v-b329ee4c";zu.__file="src/components/ResizeObserver.vue";const Lb=(e="theme")=>({computed:{themeClass(){return dC(this[e])}}}),SC=ut({name:"VPopperContent",components:{ResizeObserver:zu},mixins:[Lb()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),_C=["id","aria-hidden","tabindex","data-popper-placement"],kC={ref:"inner",class:"v-popper__inner"},TC=Q("div",{class:"v-popper__arrow-outer"},null,-1),CC=Q("div",{class:"v-popper__arrow-inner"},null,-1),EC=[TC,CC];function LC(e,t,r,o,s,c){const f=Po("ResizeObserver");return oe(),me("div",{id:e.popperId,ref:"popover",class:it(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Qt(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]=zd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[Q("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),Q("div",{class:"v-popper__wrapper",style:Qt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Q("div",kC,[e.mounted?(oe(),me(ct,{key:0},[Q("div",null,[mn(e.$slots,"default")]),e.handleResize?(oe(),tt(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ke("",!0)],64)):Ke("",!0)],512),Q("div",{ref:"arrow",class:"v-popper__arrow-container",style:Qt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},EC,4)],4)],46,_C)}const Ab=Du(SC,[["render",LC]]),Mb={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 Bd=function(){};typeof window<"u"&&(Bd=window.Element);const AC=ut({name:"VPopperWrapper",components:{Popper:mC,PopperContent:Ab},mixins:[Mb,Lb("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,Bd,Boolean],default:void 0},boundary:{type:[String,Bd],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 MC(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),tt(d,hi({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:v,skipTransition:m,autoHide:b,show:w,hide:E,handleResize:M,onResize:L,classes:N,result:C})=>[mn(e.$slots,"default",{shown:p,show:w,hide:E}),Pe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":M,classes:N,result:C,onHide:E,onResize:L},{default:rt(()=>[mn(e.$slots,"popper",{shown:p,hide:E})]),_: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 Hh=Du(AC,[["render",MC]]),NC={...Hh,name:"VDropdown",vPopperTheme:"dropdown"},$C={...Hh,name:"VMenu",vPopperTheme:"menu"},Nb={...Hh,name:"VTooltip",vPopperTheme:"tooltip"},PC=ut({name:"VTooltipDirective",components:{Popper:Cb(),PopperContent:Ab},mixins:[Mb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ta(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ta(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}}}),OC=["innerHTML"],RC=["textContent"];function DC(e,t,r,o,s,c){const f=Po("PopperContent"),d=Po("Popper");return oe(),tt(d,hi({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:v,skipTransition:m,autoHide:b,hide:w,handleResize:E,onResize:M,classes:L,result:N})=>[Pe(f,{ref:"popperContent",class:it({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":E,classes:L,result:N,onHide:w,onResize:M},{default:rt(()=>[e.html?(oe(),me("div",{key:0,innerHTML:e.finalContent},null,8,OC)):(oe(),me("div",{key:1,textContent:He(e.finalContent)},null,8,RC))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const zC=Du(PC,[["render",DC]]),$b="v-popper--has-tooltip";function IC(e,t){let r=e.placement;if(!r&&t)for(const o of Tb)t[o]&&(r=o);return r||(r=ta(e.theme||"tooltip","placement")),r}function Pb(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=IC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let sd,na,FC=0;function HC(){if(sd)return;na=qe([]),sd=fb({name:"VTooltipDirectiveApp",setup(){return{directives:na}},render(){return this.directives.map(t=>wa(zC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),sd.mount(e)}function Ob(e,t,r){HC();const o=qe(Pb(e,t,r)),s=qe(!1),c={id:FC++,options:o,shown:s};return na.value.push(c),e.classList&&e.classList.add($b),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function qh(e){if(e.$_popper){const t=na.value.indexOf(e.$_popper.item);t!==-1&&na.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove($b)}function pm(e,{value:t,modifiers:r}){const o=Pb(e,t,r);if(!o.content||ta(o.theme||"tooltip","disabled"))qh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Ob(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Rb={beforeMount:pm,updated:pm,beforeUnmount(e){qh(e)}};function gm(e){e.addEventListener("mousedown",nu),e.addEventListener("click",nu),e.addEventListener("touchstart",Db,Ps?{passive:!0}:!1)}function vm(e){e.removeEventListener("mousedown",nu),e.removeEventListener("click",nu),e.removeEventListener("touchstart",Db),e.removeEventListener("touchend",zb),e.removeEventListener("touchcancel",Ib)}function nu(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Db(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const r=e.changedTouches[0];t.$_vclosepopover_touchPoint=r,t.addEventListener("touchend",zb),t.addEventListener("touchcancel",Ib)}}function zb(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Ib(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const qC={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&gm(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?gm(e):vm(e))},beforeUnmount(e){vm(e)}},BC=Rb,Fb=Nb;function WC(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,_b(_r,t),e.directive("tooltip",Rb),e.directive("close-popper",qC),e.component("VTooltip",Nb),e.component("VDropdown",NC),e.component("VMenu",$C))}const Hb={version:"5.2.2",install:WC,options:_r};function qb(e){return e!=null}function Bh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const UC=/^[A-Za-z]:\//;function VC(e=""){return e&&e.replace(/\\/g,"/").replace(UC,t=>t.toUpperCase())}const jC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,mm=/^\/([A-Za-z]:)?$/;var F0;(F0=globalThis.process)==null||F0.platform;function GC(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const ym=function(...e){e=e.map(o=>VC(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:GC();!s||s.length===0||(t=`${s}/${t}`,r=bm(s))}return t=KC(t,!r),r&&!bm(t)?`/${t}`:t.length>0?t:"."};function KC(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const bm=function(e){return jC.test(e)},XC=function(e,t){const r=ym(e).replace(mm,"$1").split("/"),o=ym(t).replace(mm,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function YC(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 Bb(e,t,r,o){const s=XC(t,e),c={id:ZC(s,r),name:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function ZC(e,t){return YC(`${e}${t||""}`)}function Wb(e){return ra(e)}function ra(e){return e.type==="test"}function Ub(e){const t=[],r=Bh(e);for(const o of r)if(ra(o))t.push(o);else for(const s of o.tasks)if(ra(s))t.push(s);else{const c=Ub(s);for(const f of c)t.push(f)}return t}function Wh(e=[]){return Bh(e).flatMap(t=>ra(t)?[t]:[t,...Wh(t.tasks)])}function JC(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const QC=6e4;function Vb(e){return e}const eE=Vb,{clearTimeout:tE,setTimeout:nE}=globalThis,rE=Math.random.bind(Math);function iE(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=Vb,deserialize:d=eE,resolver:h,bind:p="rpc",timeout:v=QC}=t,m=new Map;let b,w=!1;const E=new Proxy({},{get(N,C){if(C==="$functions")return e;if(C==="$close")return M;if(C==="then"&&!c.includes("then")&&!("then"in e))return;const $=(...z)=>{r(f({m:C,a:z,t:"q"}))};if(c.includes(C))return $.asEvent=$,$;const A=async(...z)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${C}"`);if(b)try{await b}finally{b=void 0}return new Promise((G,B)=>{var U;const Z=sE();let ee;v>=0&&(ee=nE(()=>{var te;try{throw(te=t.onTimeoutError)==null||te.call(t,C,z),new Error(`[birpc] timeout on calling "${C}"`)}catch(J){B(J)}m.delete(Z)},v),typeof ee=="object"&&(ee=(U=ee.unref)==null?void 0:U.call(ee))),m.set(Z,{resolve:G,reject:B,timeoutId:ee,method:C}),r(f({m:C,a:z,i:Z,t:"q"}))})};return A.asEvent=$,A}});function M(){w=!0,m.forEach(({reject:N,method:C})=>{N(new Error(`[birpc] rpc is closed, cannot call "${C}"`))}),m.clear(),s(L)}async function L(N,...C){const $=d(N);if($.t==="q"){const{m:A,a:z}=$;let G,B;const Z=h?h(A,e[A]):e[A];if(!Z)B=new Error(`[birpc] function "${A}" not found`);else try{G=await Z.apply(p==="rpc"?E:e,z)}catch(ee){B=ee}$.i&&(B&&t.onError&&t.onError(B,A,z),r(f({t:"s",i:$.i,r:G,e:B}),...C))}else{const{i:A,r:z,e:G}=$,B=m.get(A);B&&(tE(B.timeoutId),G?B.reject(G):B.resolve(z)),m.delete(A)}}return b=o(L),E}const oE="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function sE(e=21){let t="",r=e;for(;r--;)t+=oE[rE()*64|0];return t}const{parse:jb,stringify:lE}=JSON,{keys:aE}=Object,ia=String,Gb="string",wm={},ru="object",Kb=(e,t)=>t,cE=e=>e instanceof ia?ia(e):e,uE=(e,t)=>typeof t===Gb?new ia(t):t,Xb=(e,t,r,o)=>{const s=[];for(let c=aE(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ia){const v=e[p];typeof v===ru&&!t.has(v)?(t.add(v),r[h]=wm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==wm&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,Xb.apply(null,h))}return r},xm=(e,t,r)=>{const o=ia(t.push(r)-1);return e.set(r,o),o},Wd=(e,t)=>{const r=jb(e,uE).map(cE),o=r[0],s=t||Kb,c=typeof o===ru&&o?Xb(r,new Set,o,s):o;return s.call({"":c},"",c)},Yb=(e,t,r)=>{const o=t&&typeof t===ru?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||Kb,s=new Map,c=[],f=[];let d=+xm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=lE(c[d++],p,r);return"["+f.join(",")+"]";function p(v,m){if(h)return h=!h,m;const b=o.call(this,v,m);switch(typeof b){case ru:if(b===null)return b;case Gb:return s.get(b)||xm(s,c,b)}return b}},fE=e=>jb(Yb(e));class Zb{constructor(){ds(this,"filesMap",new Map);ds(this,"pathsSet",new Set);ds(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Bb(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function Uh(e){return Ub(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 dE(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=C=>C,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Zb,waitForConnection:N,reconnect:M},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onSpecsCollected(C){var $;C==null||C.forEach(([A,z])=>{v.state.clearFiles({config:A},[z])}),($=r.onSpecsCollected)==null||$.call(r,C)},onPathsCollected(C){var $;v.state.collectPaths(C),($=r.onPathsCollected)==null||$.call(r,C)},onCollected(C){var $;v.state.collectFiles(C),($=r.onCollected)==null||$.call(r,C)},onTaskUpdate(C){var $;v.state.updateTasks(C),($=r.onTaskUpdate)==null||$.call(r,C)},onUserConsoleLog(C){var $;v.state.updateUserLog(C),($=r.onUserConsoleLog)==null||$.call(r,C)},onFinished(C,$){var A;(A=r.onFinished)==null||A.call(r,C,$)},onFinishedReportCoverage(){var C;(C=r.onFinishedReportCoverage)==null||C.call(r)}},w={post:C=>v.ws.send(C),on:C=>m=C,serialize:C=>Yb(C,($,A)=>A instanceof Error?{name:A.name,message:A.message,stack:A.stack}:A),deserialize:Wd,onTimeoutError(C){throw new Error(`[vitest-ws-client]: Timeout calling "${C}"`)}};v.rpc=iE(b,w);let E;function M(C=!1){C&&(p=c),v.ws=new h(e),L()}function L(){E=new Promise((C,$)=>{var z,G;const A=(G=(z=setTimeout(()=>{$(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:z.unref)==null?void 0:G.call(z);v.ws.OPEN===v.ws.readyState&&C(),v.ws.addEventListener("open",()=>{p=c,C(),clearTimeout(A)})}),v.ws.addEventListener("message",C=>{m(C.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(M,s)})}L();function N(){return E}return v}function Iu(e){return Y0()?(w_(e),!0):!1}const ld=new WeakMap,hE=(...e)=>{var t;const r=e[0],o=(t=qs())==null?void 0:t.proxy;if(o==null&&!Ry())throw new Error("injectLocal must be called in setup");return o&&ld.has(o)&&r in ld.get(o)?ld.get(o)[r]:Br(...e)};function gn(e){return typeof e=="function"?e():F(e)}const pE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const gE=Object.prototype.toString,vE=e=>gE.call(e)==="[object Object]",oa=()=>{};function Jb(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const Qb=e=>e();function ew(e,t={}){let r,o,s=oa;const c=d=>{clearTimeout(d),s(),s=oa};return d=>{const h=gn(e),p=gn(t.maxWait);return r&&c(r),h<=0||p!==void 0&&p<=0?(o&&(c(o),o=null),Promise.resolve(d())):new Promise((v,m)=>{s=t.rejectOnCancel?m:v,p&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(d())},p)),r=setTimeout(()=>{o&&c(o),o=null,v(d())},h)})}}function mE(e=Qb){const t=qe(!0);function r(){t.value=!1}function o(){t.value=!0}const s=(...c)=>{t.value&&e(...c)};return{isActive:ga(t),pause:r,resume:o,eventFilter:s}}function Sm(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function _m(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function yE(e){return qs()}function bE(...e){if(e.length!==1)return va(...e);const t=e[0];return typeof t=="function"?ga(hy(()=>({get:t,set:oa}))):qe(t)}function pc(e,t=200,r={}){return Jb(ew(t,r),e)}function tw(e,t,r={}){const{eventFilter:o=Qb,...s}=r;return Lt(e,Jb(o,t),s)}function nw(e,t,r={}){const{eventFilter:o,...s}=r,{eventFilter:c,pause:f,resume:d,isActive:h}=mE(o);return{stop:tw(e,t,{...s,eventFilter:c}),pause:f,resume:d,isActive:h}}function Vh(e,t=!0,r){yE()?Hs(e,r):t?e():Ot(e)}function Ud(e,t=!1){function r(m,{flush:b="sync",deep:w=!1,timeout:E,throwOnTimeout:M}={}){let L=null;const C=[new Promise($=>{L=Lt(e,A=>{m(A)!==t&&(L?L():Ot(()=>L==null?void 0:L()),$(A))},{flush:b,deep:w,immediate:!0})})];return E!=null&&C.push(Sm(E,M).then(()=>gn(e)).finally(()=>L==null?void 0:L())),Promise.race(C)}function o(m,b){if(!kt(m))return r(A=>A===m,b);const{flush:w="sync",deep:E=!1,timeout:M,throwOnTimeout:L}=b??{};let N=null;const $=[new Promise(A=>{N=Lt([e,m],([z,G])=>{t!==(z===G)&&(N?N():Ot(()=>N==null?void 0:N()),A(z))},{flush:w,deep:E,immediate:!0})})];return M!=null&&$.push(Sm(M,L).then(()=>gn(e)).finally(()=>(N==null||N(),gn(e)))),Promise.race($)}function s(m){return r(b=>!!b,m)}function c(m){return o(null,m)}function f(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,b){return r(w=>{const E=Array.from(w);return E.includes(m)||E.includes(gn(m))},b)}function p(m){return v(1,m)}function v(m=1,b){let w=-1;return r(()=>(w+=1,w>=m),b)}return Array.isArray(gn(e))?{toMatch:r,toContains:h,changed:p,changedTimes:v,get not(){return Ud(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return Ud(e,!t)}}}function km(e){return Ud(e)}function wE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=kt(e),c=qe(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=gn(r);return c.value=c.value===h?gn(o):h,c.value}}return s?f:[c,f]}function jh(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return tw(e,t,{...c,eventFilter:ew(o,{maxWait:s})})}function xE(e,t,r){const o=Lt(e,(...s)=>(Ot(()=>o()),t(...s)),r);return o}function SE(e,t,r){let o;kt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=oa}=o,h=qe(!s),p=f?Gr(t):qe(t);let v=0;return Oh(async m=>{if(!h.value)return;v++;const b=v;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const E=await e(M=>{m(()=>{c&&(c.value=!1),w||M()})});b===v&&(p.value=E)}catch(E){d(E)}finally{c&&b===v&&(c.value=!1),w=!0}}),s?ke(()=>(h.value=!0,p.value)):p}const Er=pE?window:void 0;function iu(e){var t;const r=gn(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Oo(...e){let t,r,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,o,s]=e,t=Er):[t,r,o,s]=e,!t)return oa;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const c=[],f=()=>{c.forEach(v=>v()),c.length=0},d=(v,m,b,w)=>(v.addEventListener(m,b,w),()=>v.removeEventListener(m,b,w)),h=Lt(()=>[iu(t),gn(s)],([v,m])=>{if(f(),!v)return;const b=vE(m)?{...m}:m;c.push(...r.flatMap(w=>o.map(E=>d(v,w,E,b))))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return Iu(p),p}function _E(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function rw(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Er,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=_E(t);return Oo(s,c,v=>{v.repeat&&gn(d)||h(v)&&r(v)},f)}function kE(){const e=qe(!1),t=qs();return t&&Hs(()=>{e.value=!0},t),e}function iw(e){const t=kE();return ke(()=>(t.value,!!e()))}function TE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Er}=t,c=qe(!1),f=ke(()=>o?1e3/q_(o):null);let d=0,h=null;function p(b){if(!c.value||!s)return;d||(d=b);const w=b-d;if(f.value&&w<f.value){h=s.requestAnimationFrame(p);return}d=b,e({delta:w,timestamp:b}),h=s.requestAnimationFrame(p)}function v(){!c.value&&s&&(c.value=!0,d=0,h=s.requestAnimationFrame(p))}function m(){c.value=!1,h!=null&&s&&(s.cancelAnimationFrame(h),h=null)}return r&&v(),Iu(m),{isActive:ga(c),pause:m,resume:v}}const CE=Symbol("vueuse-ssr-width");function EE(){const e=Ry()?hE(CE,null):null;return typeof e=="number"?e:void 0}function ow(e,t={}){const{window:r=Er,ssrWidth:o=EE()}=t,s=iw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=qe(typeof o=="number");let f;const d=qe(!1),h=m=>{d.value=m.matches},p=()=>{f&&("removeEventListener"in f?f.removeEventListener("change",h):f.removeListener(h))},v=Oh(()=>{if(c.value){c.value=!s.value;const m=gn(e).split(",");d.value=m.some(b=>{const w=b.includes("not all"),E=b.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),M=b.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let L=!!(E||M);return E&&L&&(L=o>=_m(E[1])),M&&L&&(L=o<=_m(M[1])),w?!L:L});return}s.value&&(p(),f=r.matchMedia(gn(e)),"addEventListener"in f?f.addEventListener("change",h):f.addListener(h),d.value=f.matches)});return Iu(()=>{v(),p(),f=void 0}),ke(()=>d.value)}const gc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vc="__vueuse_ssr_handlers__",LE=AE();function AE(){return vc in gc||(gc[vc]=gc[vc]||{}),gc[vc]}function sw(e,t){return LE[e]||t}function ME(e){return ow("(prefers-color-scheme: dark)",e)}function NE(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 $E={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()}},Tm="vueuse-storage";function lw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=Er,eventFilter:b,onError:w=U=>{console.error(U)},initOnMounted:E}=o,M=(v?Gr:qe)(typeof t=="function"?t():t);if(!r)try{r=sw("getDefaultStorage",()=>{var U;return(U=Er)==null?void 0:U.localStorage})()}catch(U){w(U)}if(!r)return M;const L=gn(t),N=NE(L),C=(s=o.serializer)!=null?s:$E[N],{pause:$,resume:A}=nw(M,()=>G(M.value),{flush:c,deep:f,eventFilter:b});m&&d&&Vh(()=>{r instanceof Storage?Oo(m,"storage",Z):Oo(m,Tm,ee),E&&Z()}),E||Z();function z(U,te){if(m){const J={key:e,oldValue:U,newValue:te,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",J):new CustomEvent(Tm,{detail:J}))}}function G(U){try{const te=r.getItem(e);if(U==null)z(te,null),r.removeItem(e);else{const J=C.write(U);te!==J&&(r.setItem(e,J),z(te,J))}}catch(te){w(te)}}function B(U){const te=U?U.newValue:r.getItem(e);if(te==null)return h&&L!=null&&r.setItem(e,C.write(L)),L;if(!U&&p){const J=C.read(te);return typeof p=="function"?p(J,L):N==="object"&&!Array.isArray(J)?{...L,...J}:J}else return typeof te!="string"?te:C.read(te)}function Z(U){if(!(U&&U.storageArea!==r)){if(U&&U.key==null){M.value=L;return}if(!(U&&U.key!==e)){$();try{(U==null?void 0:U.newValue)!==C.write(M.value)&&(M.value=B(U))}catch(te){w(te)}finally{U?Ot(A):A()}}}}function ee(U){Z(U.detail)}return M}const PE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function OE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Er,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=ME({window:s}),w=ke(()=>b.value?"dark":"light"),E=h||(f==null?bE(o):lw(f,o,c,{window:s,listenToStorageChanges:d})),M=ke(()=>E.value==="auto"?w.value:E.value),L=sw("updateHTMLAttrs",(A,z,G)=>{const B=typeof A=="string"?s==null?void 0:s.document.querySelector(A):iu(A);if(!B)return;const Z=new Set,ee=new Set;let U=null;if(z==="class"){const J=G.split(/\s/g);Object.values(m).flatMap(H=>(H||"").split(/\s/g)).filter(Boolean).forEach(H=>{J.includes(H)?Z.add(H):ee.add(H)})}else U={key:z,value:G};if(Z.size===0&&ee.size===0&&U===null)return;let te;v&&(te=s.document.createElement("style"),te.appendChild(document.createTextNode(PE)),s.document.head.appendChild(te));for(const J of Z)B.classList.add(J);for(const J of ee)B.classList.remove(J);U&&B.setAttribute(U.key,U.value),v&&(s.getComputedStyle(te).opacity,document.head.removeChild(te))});function N(A){var z;L(t,r,(z=m[A])!=null?z:A)}function C(A){e.onChanged?e.onChanged(A,N):N(A)}Lt(M,C,{flush:"post",immediate:!0}),Vh(()=>C(M.value));const $=ke({get(){return p?E.value:M.value},set(A){E.value=A}});return Object.assign($,{store:E,system:w,state:M})}function RE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=OE({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=ke(()=>o.system.value);return ke({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function DE(e,t,r={}){const{window:o=Er,...s}=r;let c;const f=iw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=ke(()=>{const m=gn(e);return Array.isArray(m)?m.map(b=>iu(b)):[iu(m)]}),p=Lt(h,m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of m)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Iu(v),{isSupported:f,stop:v}}function Fu(e,t,r={}){const{window:o=Er}=r;return lw(e,t,o==null?void 0:o.localStorage,r)}function zE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Er}=t;if(!d)return Qn(r);const h=Qn({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const C=d.location.hash||"",$=C.indexOf("?");return $>0?C.slice($):""}else return(d.location.hash||"").replace(/^#/,"")}function v(C){const $=C.toString();if(e==="history")return`${$?`?${$}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${$?`#${$}`:""}`;const A=d.location.hash||"#",z=A.indexOf("?");return z>0?`${d.location.search||""}${A.slice(0,z)}${$?`?${$}`:""}`:`${d.location.search||""}${A}${$?`?${$}`:""}`}function m(){return new URLSearchParams(p())}function b(C){const $=new Set(Object.keys(h));for(const A of C.keys()){const z=C.getAll(A);h[A]=z.length>1?z:C.get(A)||"",$.delete(A)}Array.from($).forEach(A=>delete h[A])}const{pause:w,resume:E}=nw(h,()=>{const C=new URLSearchParams("");Object.keys(h).forEach($=>{const A=h[$];Array.isArray(A)?A.forEach(z=>C.append($,z)):o&&A==null||s&&!A?C.delete($):C.set($,A)}),M(C,!1)},{deep:!0});function M(C,$){w(),$&&b(C),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(C)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(C)),E()}function L(){c&&M(m(),!0)}Oo(d,"popstate",L,!1),e!=="history"&&Oo(d,"hashchange",L,!1);const N=m();return N.keys().next().value?b(N):Object.assign(h,r),h}function Gh(e={}){const{window:t=Er,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=qe(r),h=qe(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:v,height:m,scale:b}=t.visualViewport;d.value=Math.round(v*b),h.value=Math.round(m*b)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};if(p(),Vh(p),Oo("resize",p,{passive:!0}),t&&f==="visual"&&t.visualViewport&&Oo(t.visualViewport,"resize",p,{passive:!0}),s){const v=ow("(orientation: portrait)");Lt(v,()=>p())}return{width:d,height:h}}const Vd=Gr([]),Vn=Gr([]),Lr=Fu("vitest-ui_task-tree-opened",[],{shallow:!0}),ou=ke(()=>new Set(Lr.value)),an=Fu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Hn=qe(an.value.search),IE={"&":"&","<":"<",">":">",'"':""","'":"'"};function aw(e){return e.replace(/[&<>"']/g,t=>IE[t])}const FE=ke(()=>{const e=Hn.value.toLowerCase();return e.length?new RegExp(`(${aw(e)})`,"gi"):null}),cw=ke(()=>Hn.value.trim()!==""),Ze=Qn({failed:an.value.failed,success:an.value.success,skipped:an.value.skipped,onlyTests:an.value.onlyTests}),jd=ke(()=>!!(Ze.failed||Ze.success||Ze.skipped)),Hu=Gr([]),Os=qe(!1),Cm=ke(()=>{const e=an.value.expandAll;return Lr.value.length>0?e!==!0:e!==!1}),HE=ke(()=>{const e=cw.value,t=jd.value,r=Ze.onlyTests,o=Ce.summary.filesFailed,s=Ce.summary.filesSuccess,c=Ce.summary.filesSkipped,f=Ce.summary.filesRunning,d=Hu.value;return Ce.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Sa(e){return Object.hasOwnProperty.call(e,"tasks")}function qE(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function uw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["blue","yellow","cyan","green","magenta"];return r[t%r.length]}function BE(e){return e.type==="test"}function WE(e){return e.mode==="run"&&e.type==="test"}function Mn(e){return e.type==="file"}function vi(e){return e.type==="file"||e.type==="suite"}function UE(e=Ce.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function sa(e,t=!1){var o,s,c,f,d;let r=Ce.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:ou.value.size>0&&ou.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((c=e.result)==null?void 0:c.duration)!=null?Math.round((f=e.result)==null?void 0:f.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:uw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Ce.nodes.set(e.id,r),Ce.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)_a(e.id,e.tasks[h],!0)}function fw(e,t){const r=Ce.nodes.get(e);if(!r||!vi(r))return;const o=mt.state.idMap.get(e);if(!(!o||!Sa(o)))return _a(r.parentId,o,t&&o.tasks.length>0),[r,o]}function VE(e){const t=Ce.nodes.get(e);if(!t)return;const r=mt.state.idMap.get(e);!r||!Wb(r)||_a(t.parentId,r,!1)}function _a(e,t,r){var f,d,h,p,v;const o=Ce.nodes.get(e);let s;const c=((f=t.result)==null?void 0:f.duration)!=null?Math.round((d=t.result)==null?void 0:d.duration):void 0;if(o&&(s=Ce.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=c,s.state=(h=t.result)==null?void 0:h.state):(Wb(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:(p=t.result)==null?void 0:p.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:ou.value.size>0&&ou.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Ce.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Sa(t)))for(let m=0;m<t.tasks.length;m++)_a(s.id,t.tasks[m],r)}function jE(e){const t=Ce.nodes.get(e);if(!t||!vi(t))return;const r=new Set(Lr.value);r.delete(t.id);const o=[...KE(t)];Lr.value=Array.from(r),Vn.value=o}function GE(){Gd(Ce.root.tasks);const e=[...Vn.value.filter(Mn)];Gd(e),Lr.value=[],an.value.expandAll=!0,Vn.value=e}function Gd(e){for(const t of e)vi(t)&&(t.expanded=!1,Gd(t.tasks))}function*dw(e,t){if(t&&(yield e.id),vi(e))for(let r=0;r<e.tasks.length;r++)yield*dw(e.tasks[r],!0)}function*KE(e){const t=e.id,r=new Set(dw(e,!1));for(let o=0;o<Vn.value.length;o++){const s=Vn.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 qu=qe("idle"),Ll=ke(()=>qu.value==="idle"),Wi=qe([]);function XE(e,t,r){return e?gw(e,t,r):!1}function Kh(e,t){const r=[...hw(e,t)];Vn.value=r,Hu.value=r.filter(Mn).map(o=>lr(o.id))}function*hw(e,t){for(const r of UE())yield*pw(r,e,t)}function*pw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Kd(e,o,w=>Em(w,t,r)))c.push([m,b]);else{for(const[m,b]of Kd(e,o,w=>Em(w,t,r)))vi(b)?(s.set(b.id,m),Mn(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!Mn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...ZE(c,r.onlyTests,o,d,f)].reverse(),p=Ce.nodes,v=new Set(h.filter(m=>{var b;return Mn(m)||vi(m)&&((b=p.get(m.parentId))==null?void 0:b.expanded)}).map(m=>m.id));yield*h.filter(m=>{var b;return Mn(m)||v.has(m.parentId)&&((b=p.get(m.parentId))==null?void 0:b.expanded)})}function YE(e,t,r,o,s){if(o){if(Mn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&Mn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&Mn(c)&&s.add(c.id),t}}function*ZE(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=vi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ce.nodes.get(d.parentId);for(;p;)r.add(p.id),Mn(p)&&o.add(p.id),p=Ce.nodes.get(p.parentId);yield d;continue}if(h){const p=YE(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ce.nodes.get(d.parentId);p&&Mn(p)&&o.add(p.id),yield d}}}function JE(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 gw(e,t,r){if(t.length===0||qE(e.name,t))if(r.success||r.failed||r.skipped){if(JE(e,r))return!0}else return!0;return!1}function*Kd(e,t,r){const o=r(e);if(o)if(BE(e)){let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}else if(Mn(e))t.add(e.id);else{t.add(e.id);let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}if(yield[o,e],vi(e))for(let s=0;s<e.tasks.length;s++)yield*Kd(e.tasks[s],t,r)}function Em(e,t,r){const o=mt.state.idMap.get(e.id);return o?gw(o,t,r):!1}function QE(e,t,r){const o=fw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)_a(s.id,p,!1);s.expanded=!0;const f=new Set(Lr.value);f.add(s.id);const d=new Set(pw(s,t,r)),h=[...nL(s,d)];Lr.value=Array.from(f),Vn.value=h}function eL(e,t){Xh(Ce.root.tasks,!1);const r=[...hw(e,t)];an.value.expandAll=!1,Lr.value=[],Vn.value=r,Hu.value=r.filter(Mn).map(o=>lr(o.id))}function tL(e,t){if(e.size)for(const r of Vn.value)e.has(r.id)&&(r.expanded=!0);else t&&Xh(Vn.value.filter(Mn),!0)}function Xh(e,t){for(const r of e)vi(r)&&(r.expanded=!0,Xh(r.tasks,!1));t&&(an.value.expandAll=!1,Lr.value=[])}function*nL(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Vn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function rL(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>sa(s,t)),Vd.value=[...Ce.root.tasks],Kh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function iL(e){queueMicrotask(()=>{const t=Ce.pendingTasks,r=mt.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function Lm(e,t,r,o,s){e&&uL(r);const c=!e;queueMicrotask(()=>{t?lL(c):aL(c)}),queueMicrotask(()=>{fL(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Vd.value&&Uh(Vd.value.map(f=>lr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{cL(o,s,t)})}function*oL(){yield*Vn.value.filter(WE)}function sL(){const e=mt.state.idMap;let t;for(const r of oL())t=e.get(r.parentId),t&&Sa(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function lL(e){const t=mt.state.getFiles(),r=Ce.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)sa(o[c],e),su(o[c].tasks);const s=Ce.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=lr(f.id);if(!d)continue;sa(d,e);const h=d.tasks;h!=null&&h.length&&su(d.tasks)}}function aL(e){const t=new Map(Ce.pendingTasks.entries());Ce.pendingTasks.clear();const r=Ce.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>lr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],sa(s,!1),su(s.tasks),t.delete(s.id);const c=mt.state.idMap,f=Ce.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=lr(h.id);if(!p)continue;const v=t.get(p.id);v&&(sa(p,e),su(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function cL(e,t,r=!1){const o=an.value.expandAll,s=o!==!0,c=new Set(Lr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{Am(e,t,r)}),Os.value||queueMicrotask(()=>{(Vn.value.length||r)&&(Os.value=!0)}),f&&(queueMicrotask(()=>{tL(c,r),s&&(an.value.expandAll=!1)}),queueMicrotask(()=>{Am(e,t,r)}))}function Am(e,t,r){Kh(e,t),r&&(sL(),qu.value="idle")}function su(e){let t;for(let r=0;r<e.length;r++)t=e[r],Sa(t)?fw(t.id,!0):VE(t.id)}function uL(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 fL(e){var f,d,h,p,v,m;const t=mt.state.idMap,r=new Map(Ce.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,lr(b.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,filesSnapshotFailed:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1};let c=0;for(const[b,w]of o){if(!w)continue;const E=r.get(b);E&&(E.mode=w.mode,E.setupDuration=w.setupDuration,E.prepareDuration=w.prepareDuration,E.environmentLoad=w.environmentLoad,E.collectDuration=w.collectDuration,E.duration=((f=w.result)==null?void 0:f.duration)!=null?Math.round((d=w.result)==null?void 0:d.duration):void 0,E.state=(h=w.result)==null?void 0:h.state),c+=Math.max(0,w.collectDuration||0),c+=Math.max(0,w.setupDuration||0),c+=Math.max(0,((p=w.result)==null?void 0:p.duration)||0),c+=Math.max(0,w.environmentLoad||0),c+=Math.max(0,w.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((v=w.result)==null?void 0:v.state)==="fail"?s.filesFailed++:((m=w.result)==null?void 0:m.state)==="pass"?s.filesSuccess++:w.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):w.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:M,success:L,skipped:N,total:C,ignored:$,todo:A}=vw(w);s.totalTests+=C,s.testsFailed+=M,s.testsSuccess+=L,s.testsSkipped+=N,s.testsTodo+=A,s.testsIgnore+=$}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 vw(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of mw(e))(!r||XE(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function dL(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>vw(h,s,c)).reduce((h,{failed:p,success:v,ignored:m,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=m,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,m=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=m?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*mw(e){const t=Bh(e);let r;for(let o=0;o<t.length;o++)r=t[o],ra(r)?yield r:yield*mw(r.tasks)}class hL{constructor(t=[],r=!1,o=500,s={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},c=new Map,f=new Map,d=Qn({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})){ds(this,"rafCollector");ds(this,"resumeEndRunId");this.projects=t,this.onTaskUpdateCalled=r,this.resumeEndTimeout=o,this.root=s,this.pendingTasks=c,this.nodes=f,this.summary=d,this.rafCollector=TE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t,r){this.projects.splice(0,this.projects.length,...r),rL(t,!0,Hn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){iL(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(()=>{Lm(t,r,this.summary,Hn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}):Lm(t,r,this.summary,Hn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collectTestsTotal(t,r,o,s){return dL(t,r,o,s,Hn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collapseNode(t){queueMicrotask(()=>{jE(t)})}expandNode(t){queueMicrotask(()=>{QE(t,Hn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{GE()})}expandAllNodes(){queueMicrotask(()=>{eL(Hn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}filterNodes(){queueMicrotask(()=>{Kh(Hn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}}const Ce=new hL,Ir=qe([414,896]),Bu=zE("hash",{initialValue:{file:"",view:null,line:null,test:null}}),eo=va(Bu,"file"),Kn=va(Bu,"view"),yw=va(Bu,"line"),bw=va(Bu,"test"),Rs=qe(),Es=qe(!0),to=qe(!1),lu=qe(!0),vs=ke(()=>{var e;return(e=Vu.value)==null?void 0:e.coverage}),Xd=ke(()=>{var e;return(e=vs.value)==null?void 0:e.enabled}),ms=ke(()=>Xd.value&&!!vs.value.htmlReporter),yr=Fu("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),Mo=Fu("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),vn=Qn({navigation:yr.value[0],details:{size:yr.value[1],browser:Mo.value[0],main:Mo.value[1]}}),Mm=ke(()=>{var e;if(ms.value){const t=vs.value.reportsDirectory.lastIndexOf("/"),r=(e=vs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${vs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${vs.value.reportsDirectory.slice(t+1)}/index.html`}});Lt(qu,e=>{lu.value=e==="running"},{immediate:!0});function pL(){const e=eo.value;if(e&&e.length>0){const t=lr(e);t?(Rs.value=t,Es.value=!1,to.value=!1):xE(()=>mt.state.getFiles(),()=>{Rs.value=lr(e),Es.value=!1,to.value=!1})}return Es}function au(e){Es.value=e,to.value=!1,e&&(Rs.value=void 0,eo.value="")}function ww({file:e,line:t,view:r,test:o}){eo.value=e,yw.value=t,Kn.value=r,bw.value=o,Rs.value=lr(e),au(!1)}function gL(e){ww({file:e.file.id,test:e.type==="test"?e.id:null,line:null,view:null})}function vL(){to.value=!0,Es.value=!1,Rs.value=void 0,eo.value=""}function mL(){vn.details.browser=100,vn.details.main=0,Mo.value=[100,0]}function yL(){vn.details.browser=33,vn.details.main=67,Mo.value=[33,67]}function bL(){vn.navigation=33,vn.details.size=67,yr.value=[33,67]}const wL={setCurrentFileId(e){eo.value=e,Rs.value=lr(e),au(!1)},async setIframeViewport(e,t){Ir.value=[e,t],await new Promise(r=>requestAnimationFrame(r))}},xL=location.port,SL=[location.hostname,xL].filter(Boolean).join(":"),_L=`${location.protocol==="https:"?"wss:":"ws:"}//${SL}/__vitest_api__`,kr=!!window.METADATA_PATH,kL=44,Nm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",TL=new Uint8Array(64),xw=new Uint8Array(128);for(let e=0;e<Nm.length;e++){const t=Nm.charCodeAt(e);TL[e]=t,xw[t]=e}function _l(e,t){let r=0,o=0,s=0;do{const f=e.next();s=xw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function $m(e,t){return e.pos>=t?!1:e.peek()!==kL}class CL{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 EL(e){const{length:t}=e,r=new CL(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let w;s=_l(r,s),s<b&&(m=!1),b=s,$m(r,p)?(c=_l(r,c),f=_l(r,f),d=_l(r,d),$m(r,p)?(h=_l(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],v.push(w),r.pos++}m||LL(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function LL(e){e.sort(AL)}function AL(e,t){return e[0]-t[0]}const ML=/^[\w+.-]+:\/\//,NL=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,$L=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Bt;(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"})(Bt||(Bt={}));function PL(e){return ML.test(e)}function OL(e){return e.startsWith("//")}function Sw(e){return e.startsWith("/")}function RL(e){return e.startsWith("file:")}function Pm(e){return/^[.?#]/.test(e)}function mc(e){const t=NL.exec(e);return _w(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function DL(e){const t=$L.exec(e),r=t[2];return _w("file:","",t[1]||"","",Sw(r)?r:"/"+r,t[3]||"",t[4]||"")}function _w(e,t,r,o,s,c,f){return{scheme:e,user:t,host:r,port:o,path:s,query:c,hash:f,type:Bt.Absolute}}function Om(e){if(OL(e)){const r=mc("http:"+e);return r.scheme="",r.type=Bt.SchemeRelative,r}if(Sw(e)){const r=mc("http://foo.com"+e);return r.scheme="",r.host="",r.type=Bt.AbsolutePath,r}if(RL(e))return DL(e);if(PL(e))return mc(e);const t=mc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?Bt.Query:e.startsWith("#")?Bt.Hash:Bt.RelativePath:Bt.Empty,t}function zL(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function IL(e,t){kw(t,t.type),e.path==="/"?e.path=t.path:e.path=zL(t.path)+e.path}function kw(e,t){const r=t<=Bt.RelativePath,o=e.path.split("/");let s=1,c=0,f=!1;for(let h=1;h<o.length;h++){const p=o[h];if(!p){f=!0;continue}if(f=!1,p!=="."){if(p===".."){c?(f=!0,c--,s--):r&&(o[s++]=p);continue}o[s++]=p,c++}}let d="";for(let h=1;h<s;h++)d+="/"+o[h];(!d||f&&!d.endsWith("/.."))&&(d+="/"),e.path=d}function FL(e,t){if(!e&&!t)return"";const r=Om(e);let o=r.type;if(t&&o!==Bt.Absolute){const c=Om(t),f=c.type;switch(o){case Bt.Empty:r.hash=c.hash;case Bt.Hash:r.query=c.query;case Bt.Query:case Bt.RelativePath:IL(r,c);case Bt.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case Bt.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}kw(r,o);const s=r.query+r.hash;switch(o){case Bt.Hash:case Bt.Query:return s;case Bt.RelativePath:{const c=r.path.slice(1);return c?Pm(t||e)&&!Pm(c)?"./"+c+s:c+s:s||"."}case Bt.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Rm(e,t){return t&&!t.endsWith("/")&&(t+="/"),FL(e,t)}function HL(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const no=0,qL=1,BL=2,WL=3,UL=4;function VL(e,t){const r=Dm(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Dm(e,o+1))e[o]=GL(e[o],t);return e}function Dm(e,t){for(let r=t;r<e.length;r++)if(!jL(e[r]))return r;return e.length}function jL(e){for(let t=1;t<e.length;t++)if(e[t][no]<e[t-1][no])return!1;return!0}function GL(e,t){return t||(e=e.slice()),e.sort(KL)}function KL(e,t){return e[no]-t[no]}let cu=!1;function XL(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][no]-t;if(c===0)return cu=!0,s;c<0?r=s+1:o=s-1}return cu=!1,r-1}function YL(e,t,r){for(let o=r+1;o<e.length&&e[o][no]===t;r=o++);return r}function ZL(e,t,r){for(let o=r-1;o>=0&&e[o][no]===t;r=o--);return r}function JL(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function QL(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return cu=f!==-1&&e[f][no]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=XL(e,t,d,h)}const eA="`line` must be greater than 0 (lines start at line 1)",tA="`column` must be greater than or equal to 0 (columns start at column 0)",zm=-1,nA=1;class rA{constructor(t,r){const o=typeof t=="string";if(!o&&t._decodedMemo)return t;const s=o?JSON.parse(t):t,{version:c,file:f,names:d,sourceRoot:h,sources:p,sourcesContent:v}=s;this.version=c,this.file=f,this.names=d||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=v,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const m=Rm(h||"",HL(r));this.resolvedSources=p.map(w=>Rm(w||"",m));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=VL(b,o)),this._decodedMemo=JL(),this._bySources=void 0,this._bySourceMemos=void 0}}function iA(e){var t;return(t=e)._decoded||(t._decoded=EL(e._encoded))}function oA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(eA);if(o<0)throw new Error(tA);const c=iA(e);if(r>=c.length)return yc(null,null,null,null);const f=c[r],d=sA(f,e._decodedMemo,r,o,s||nA);if(d===-1)return yc(null,null,null,null);const h=f[d];if(h.length===1)return yc(null,null,null,null);const{names:p,resolvedSources:v}=e;return yc(v[h[qL]],h[BL]+1,h[WL],h.length===5?p[h[UL]]:null)}function yc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function sA(e,t,r,o,s){let c=QL(e,o,t,r);return cu?c=(s===zm?YL:ZL)(e,o,c):s===zm&&c++,c===-1||c===e.length?-1:c}const lA=/^[A-Za-z]:\//;function aA(e=""){return e&&e.replace(/\\/g,"/").replace(lA,t=>t.toUpperCase())}const cA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;var H0;(H0=globalThis.process)==null||H0.platform;function uA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const fA=function(...e){e=e.map(o=>aA(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:uA();!s||s.length===0||(t=`${s}/${t}`,r=Im(s))}return t=dA(t,!r),r&&!Im(t)?`/${t}`:t.length>0?t:"."};function dA(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Im=function(e){return cA.test(e)},Tw=/^\s*at .*(?:\S:\d+|\(native\))/m,hA=/^(?:eval@)?(?:\[native code\])?$/,pA=["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 Cw(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:"))&&(o=new URL(o).pathname),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 gA(e){let t=e.trim();if(hA.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,[c,f,d]=Cw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function vA(e){let t=e.trim();if(!Tw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=Cw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=fA(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function mA(e,t={}){const{ignoreStackEntries:r=pA}=t;let o=Tw.test(e)?bA(e):yA(e);return r.length&&(o=o.filter(s=>!r.some(c=>s.file.match(c)))),o.map(s=>{var c;t.getFileName&&(s.file=t.getFileName(s.file));const f=(c=t.getSourceMap)==null?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return s;const d=new rA(f),{line:h,column:p}=oA(d,s);return h!=null&&p!=null?{...s,line:h,column:p}:s})}function yA(e){return e.split(`
|
|
18
|
-
`).map(t=>gA(t)).filter(qb)}function bA(e){return e.split(`
|
|
19
|
-
`).map(t=>vA(t)).filter(qb)}var Ro=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ew(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lw={},pi={};const wA="Á",xA="á",SA="Ă",_A="ă",kA="∾",TA="∿",CA="∾̳",EA="Â",LA="â",AA="´",MA="А",NA="а",$A="Æ",PA="æ",OA="",RA="𝔄",DA="𝔞",zA="À",IA="à",FA="ℵ",HA="ℵ",qA="Α",BA="α",WA="Ā",UA="ā",VA="⨿",jA="&",GA="&",KA="⩕",XA="⩓",YA="∧",ZA="⩜",JA="⩘",QA="⩚",eM="∠",tM="⦤",nM="∠",rM="⦨",iM="⦩",oM="⦪",sM="⦫",lM="⦬",aM="⦭",cM="⦮",uM="⦯",fM="∡",dM="∟",hM="⊾",pM="⦝",gM="∢",vM="Å",mM="⍼",yM="Ą",bM="ą",wM="𝔸",xM="𝕒",SM="⩯",_M="≈",kM="⩰",TM="≊",CM="≋",EM="'",LM="",AM="≈",MM="≊",NM="Å",$M="å",PM="𝒜",OM="𝒶",RM="≔",DM="*",zM="≈",IM="≍",FM="Ã",HM="ã",qM="Ä",BM="ä",WM="∳",UM="⨑",VM="≌",jM="϶",GM="‵",KM="∽",XM="⋍",YM="∖",ZM="⫧",JM="⊽",QM="⌅",eN="⌆",tN="⌅",nN="⎵",rN="⎶",iN="≌",oN="Б",sN="б",lN="„",aN="∵",cN="∵",uN="∵",fN="⦰",dN="϶",hN="ℬ",pN="ℬ",gN="Β",vN="β",mN="ℶ",yN="≬",bN="𝔅",wN="𝔟",xN="⋂",SN="◯",_N="⋃",kN="⨀",TN="⨁",CN="⨂",EN="⨆",LN="★",AN="▽",MN="△",NN="⨄",$N="⋁",PN="⋀",ON="⤍",RN="⧫",DN="▪",zN="▴",IN="▾",FN="◂",HN="▸",qN="␣",BN="▒",WN="░",UN="▓",VN="█",jN="=⃥",GN="≡⃥",KN="⫭",XN="⌐",YN="𝔹",ZN="𝕓",JN="⊥",QN="⊥",e$="⋈",t$="⧉",n$="┐",r$="╕",i$="╖",o$="╗",s$="┌",l$="╒",a$="╓",c$="╔",u$="─",f$="═",d$="┬",h$="╤",p$="╥",g$="╦",v$="┴",m$="╧",y$="╨",b$="╩",w$="⊟",x$="⊞",S$="⊠",_$="┘",k$="╛",T$="╜",C$="╝",E$="└",L$="╘",A$="╙",M$="╚",N$="│",$$="║",P$="┼",O$="╪",R$="╫",D$="╬",z$="┤",I$="╡",F$="╢",H$="╣",q$="├",B$="╞",W$="╟",U$="╠",V$="‵",j$="˘",G$="˘",K$="¦",X$="𝒷",Y$="ℬ",Z$="⁏",J$="∽",Q$="⋍",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="Ç",LP="ç",AP="Ĉ",MP="ĉ",NP="∰",$P="⩌",PP="⩐",OP="Ċ",RP="ċ",DP="¸",zP="¸",IP="⦲",FP="¢",HP="·",qP="·",BP="𝔠",WP="ℭ",UP="Ч",VP="ч",jP="✓",GP="✓",KP="Χ",XP="χ",YP="ˆ",ZP="≗",JP="↺",QP="↻",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="∁",LO="∘",AO="∁",MO="ℂ",NO="≅",$O="⩭",PO="≡",OO="∮",RO="∯",DO="∮",zO="𝕔",IO="ℂ",FO="∐",HO="∐",qO="©",BO="©",WO="℗",UO="∳",VO="↵",jO="✗",GO="⨯",KO="𝒞",XO="𝒸",YO="⫏",ZO="⫑",JO="⫐",QO="⫒",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="∲",LR="∱",AR="⌭",MR="†",NR="‡",$R="ℸ",PR="↓",OR="↡",RR="⇓",DR="‐",zR="⫤",IR="⊣",FR="⤏",HR="˝",qR="Ď",BR="ď",WR="Д",UR="д",VR="‡",jR="⇊",GR="ⅅ",KR="ⅆ",XR="⤑",YR="⩷",ZR="°",JR="∇",QR="Δ",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="ђ",LD="⌞",AD="⌍",MD="$",ND="𝔻",$D="𝕕",PD="¨",OD="˙",RD="⃜",DD="≐",zD="≑",ID="≐",FD="∸",HD="∔",qD="⊡",BD="⌆",WD="∯",UD="¨",VD="⇓",jD="⇐",GD="⇔",KD="⫤",XD="⟸",YD="⟺",ZD="⟹",JD="⇒",QD="⊨",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="ѕ",Lz="⧶",Az="Đ",Mz="đ",Nz="⋱",$z="▿",Pz="▾",Oz="⇵",Rz="⥯",Dz="⦦",zz="Џ",Iz="џ",Fz="⟿",Hz="É",qz="é",Bz="⩮",Wz="Ě",Uz="ě",Vz="Ê",jz="ê",Gz="≖",Kz="≕",Xz="Э",Yz="э",Zz="⩷",Jz="Ė",Qz="ė",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="ŋ",L2=" ",A2="Ę",M2="ę",N2="𝔼",$2="𝕖",P2="⋕",O2="⧣",R2="⩱",D2="ε",z2="Ε",I2="ε",F2="ϵ",H2="≖",q2="≕",B2="≂",W2="⪖",U2="⪕",V2="⩵",j2="=",G2="≂",K2="≟",X2="⇌",Y2="≡",Z2="⩸",J2="⧥",Q2="⥱",eI="≓",tI="ℯ",nI="ℰ",rI="≐",iI="⩳",oI="≂",sI="Η",lI="η",aI="Ð",cI="ð",uI="Ë",fI="ë",dI="€",hI="!",pI="∃",gI="∃",vI="ℰ",mI="ⅇ",yI="ⅇ",bI="≒",wI="Ф",xI="ф",SI="♀",_I="ffi",kI="ff",TI="ffl",CI="𝔉",EI="𝔣",LI="fi",AI="◼",MI="▪",NI="fj",$I="♭",PI="fl",OI="▱",RI="ƒ",DI="𝔽",zI="𝕗",II="∀",FI="∀",HI="⋔",qI="⫙",BI="ℱ",WI="⨍",UI="½",VI="⅓",jI="¼",GI="⅕",KI="⅙",XI="⅛",YI="⅔",ZI="⅖",JI="¾",QI="⅗",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="⋛",LF="≥",AF="≧",MF="⩾",NF="⪩",$F="⩾",PF="⪀",OF="⪂",RF="⪄",DF="⋛︀",zF="⪔",IF="𝔊",FF="𝔤",HF="≫",qF="⋙",BF="⋙",WF="ℷ",UF="Ѓ",VF="ѓ",jF="⪥",GF="≷",KF="⪒",XF="⪤",YF="⪊",ZF="⪊",JF="⪈",QF="≩",eH="⪈",tH="≩",nH="⋧",rH="𝔾",iH="𝕘",oH="`",sH="≥",lH="⋛",aH="≧",cH="⪢",uH="≷",fH="⩾",dH="≳",hH="𝒢",pH="ℊ",gH="≳",vH="⪎",mH="⪐",yH="⪧",bH="⩺",wH=">",xH=">",SH="≫",_H="⋗",kH="⦕",TH="⩼",CH="⪆",EH="⥸",LH="⋗",AH="⋛",MH="⪌",NH="≷",$H="≳",PH="≩︀",OH="≩︀",RH="ˇ",DH=" ",zH="½",IH="ℋ",FH="Ъ",HH="ъ",qH="⥈",BH="↔",WH="⇔",UH="↭",VH="^",jH="ℏ",GH="Ĥ",KH="ĥ",XH="♥",YH="♥",ZH="…",JH="⊹",QH="𝔥",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="и",Lq="İ",Aq="Е",Mq="е",Nq="¡",$q="⇔",Pq="𝔦",Oq="ℑ",Rq="Ì",Dq="ì",zq="ⅈ",Iq="⨌",Fq="∭",Hq="⧜",qq="℩",Bq="IJ",Wq="ij",Uq="Ī",Vq="ī",jq="ℑ",Gq="ⅈ",Kq="ℐ",Xq="ℑ",Yq="ı",Zq="ℑ",Jq="⊷",Qq="Ƶ",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="ℐ",LB="∈",AB="⋵",MB="⋹",NB="⋴",$B="⋳",PB="∈",OB="",RB="Ĩ",DB="ĩ",zB="І",IB="і",FB="Ï",HB="ï",qB="Ĵ",BB="ĵ",WB="Й",UB="й",VB="𝔍",jB="𝔧",GB="ȷ",KB="𝕁",XB="𝕛",YB="𝒥",ZB="𝒿",JB="Ј",QB="ј",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="⟨",L3="⟪",A3="⦑",M3="⟨",N3="⪅",$3="ℒ",P3="«",O3="⇤",R3="⤟",D3="←",z3="↞",I3="⇐",F3="⤝",H3="↩",q3="↫",B3="⤹",W3="⥳",U3="↢",V3="⤙",j3="⤛",G3="⪫",K3="⪭",X3="⪭︀",Y3="⤌",Z3="⤎",J3="❲",Q3="{",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="⌈",L5="⟦",A5="⥡",M5="⥙",N5="⇃",$5="⌊",P5="↽",O5="↼",R5="⇇",D5="↔",z5="↔",I5="⇔",F5="⇆",H5="⇋",q5="↭",B5="⥎",W5="↤",U5="⊣",V5="⥚",j5="⋋",G5="⧏",K5="⊲",X5="⊴",Y5="⥑",Z5="⥠",J5="⥘",Q5="↿",e8="⥒",t8="↼",n8="⪋",r8="⋚",i8="≤",o8="≦",s8="⩽",l8="⪨",a8="⩽",c8="⩿",u8="⪁",f8="⪃",d8="⋚︀",h8="⪓",p8="⪅",g8="⋖",v8="⋚",m8="⪋",y8="⋚",b8="≦",w8="≶",x8="≶",S8="⪡",_8="≲",k8="⩽",T8="≲",C8="⥼",E8="⌊",L8="𝔏",A8="𝔩",M8="≶",N8="⪑",$8="⥢",P8="↽",O8="↼",R8="⥪",D8="▄",z8="Љ",I8="љ",F8="⇇",H8="≪",q8="⋘",B8="⌞",W8="⇚",U8="⥫",V8="◺",j8="Ŀ",G8="ŀ",K8="⎰",X8="⎰",Y8="⪉",Z8="⪉",J8="⪇",Q8="≨",eW="⪇",tW="≨",nW="⋦",rW="⟬",iW="⇽",oW="⟦",sW="⟵",lW="⟵",aW="⟸",cW="⟷",uW="⟷",fW="⟺",dW="⟼",hW="⟶",pW="⟶",gW="⟹",vW="↫",mW="↬",yW="⦅",bW="𝕃",wW="𝕝",xW="⨭",SW="⨴",_W="∗",kW="_",TW="↙",CW="↘",EW="◊",LW="◊",AW="⧫",MW="(",NW="⦓",$W="⇆",PW="⌟",OW="⇋",RW="⥭",DW="",zW="⊿",IW="‹",FW="𝓁",HW="ℒ",qW="↰",BW="↰",WW="≲",UW="⪍",VW="⪏",jW="[",GW="‘",KW="‚",XW="Ł",YW="ł",ZW="⪦",JW="⩹",QW="<",e4="<",t4="≪",n4="⋖",r4="⋋",i4="⋉",o4="⥶",s4="⩻",l4="◃",a4="⊴",c4="◂",u4="⦖",f4="⥊",d4="⥦",h4="≨︀",p4="≨︀",g4="¯",v4="♂",m4="✠",y4="✠",b4="↦",w4="↦",x4="↧",S4="↤",_4="↥",k4="▮",T4="⨩",C4="М",E4="м",L4="—",A4="∺",M4="∡",N4=" ",$4="ℳ",P4="𝔐",O4="𝔪",R4="℧",D4="µ",z4="*",I4="⫰",F4="∣",H4="·",q4="⊟",B4="−",W4="∸",U4="⨪",V4="∓",j4="⫛",G4="…",K4="∓",X4="⊧",Y4="𝕄",Z4="𝕞",J4="∓",Q4="𝓂",eU="ℳ",tU="∾",nU="Μ",rU="μ",iU="⊸",oU="⊸",sU="∇",lU="Ń",aU="ń",cU="∠⃒",uU="≉",fU="⩰̸",dU="≋̸",hU="ʼn",pU="≉",gU="♮",vU="ℕ",mU="♮",yU=" ",bU="≎̸",wU="≏̸",xU="⩃",SU="Ň",_U="ň",kU="Ņ",TU="ņ",CU="≇",EU="⩭̸",LU="⩂",AU="Н",MU="н",NU="–",$U="⤤",PU="↗",OU="⇗",RU="↗",DU="≠",zU="≐̸",IU="",FU="",HU="",qU="",BU="≢",WU="⤨",UU="≂̸",VU="≫",jU="≪",GU=`
|
|
20
|
-
`,KU="∄",XU="∄",YU="𝔑",ZU="𝔫",JU="≧̸",QU="≱",e6="≱",t6="≧̸",n6="⩾̸",r6="⩾̸",i6="⋙̸",o6="≵",s6="≫⃒",l6="≯",a6="≯",c6="≫̸",u6="↮",f6="⇎",d6="⫲",h6="∋",p6="⋼",g6="⋺",v6="∋",m6="Њ",y6="њ",b6="↚",w6="⇍",x6="‥",S6="≦̸",_6="≰",k6="↚",T6="⇍",C6="↮",E6="⇎",L6="≰",A6="≦̸",M6="⩽̸",N6="⩽̸",$6="≮",P6="⋘̸",O6="≴",R6="≪⃒",D6="≮",z6="⋪",I6="⋬",F6="≪̸",H6="∤",q6="",B6=" ",W6="𝕟",U6="ℕ",V6="⫬",j6="¬",G6="≢",K6="≭",X6="∦",Y6="∉",Z6="≠",J6="≂̸",Q6="∄",eV="≯",tV="≱",nV="≧̸",rV="≫̸",iV="≹",oV="⩾̸",sV="≵",lV="≎̸",aV="≏̸",cV="∉",uV="⋵̸",fV="⋹̸",dV="∉",hV="⋷",pV="⋶",gV="⧏̸",vV="⋪",mV="⋬",yV="≮",bV="≰",wV="≸",xV="≪̸",SV="⩽̸",_V="≴",kV="⪢̸",TV="⪡̸",CV="∌",EV="∌",LV="⋾",AV="⋽",MV="⊀",NV="⪯̸",$V="⋠",PV="∌",OV="⧐̸",RV="⋫",DV="⋭",zV="⊏̸",IV="⋢",FV="⊐̸",HV="⋣",qV="⊂⃒",BV="⊈",WV="⊁",UV="⪰̸",VV="⋡",jV="≿̸",GV="⊃⃒",KV="⊉",XV="≁",YV="≄",ZV="≇",JV="≉",QV="∤",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="≄",Lj="∤",Aj="∦",Mj="⋢",Nj="⋣",$j="⊄",Pj="⫅̸",Oj="⊈",Rj="⊂⃒",Dj="⊈",zj="⫅̸",Ij="⊁",Fj="⪰̸",Hj="⊅",qj="⫆̸",Bj="⊉",Wj="⊃⃒",Uj="⊉",Vj="⫆̸",jj="≹",Gj="Ñ",Kj="ñ",Xj="≸",Yj="⋪",Zj="⋬",Jj="⋫",Qj="⋭",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="ó",LG="⊛",AG="Ô",MG="ô",NG="⊚",$G="О",PG="о",OG="⊝",RG="Ő",DG="ő",zG="⨸",IG="⊙",FG="⦼",HG="Œ",qG="œ",BG="⦿",WG="𝔒",UG="𝔬",VG="˛",jG="Ò",GG="ò",KG="⧁",XG="⦵",YG="Ω",ZG="∮",JG="↺",QG="⦾",e9="⦻",t9="‾",n9="⧀",r9="Ō",i9="ō",o9="Ω",s9="ω",l9="Ο",a9="ο",c9="⦶",u9="⊖",f9="𝕆",d9="𝕠",h9="⦷",p9="“",g9="‘",v9="⦹",m9="⊕",y9="↻",b9="⩔",w9="∨",x9="⩝",S9="ℴ",_9="ℴ",k9="ª",T9="º",C9="⊶",E9="⩖",L9="⩗",A9="⩛",M9="Ⓢ",N9="𝒪",$9="ℴ",P9="Ø",O9="ø",R9="⊘",D9="Õ",z9="õ",I9="⨶",F9="⨷",H9="⊗",q9="Ö",B9="ö",W9="⌽",U9="‾",V9="⏞",j9="⎴",G9="⏜",K9="¶",X9="∥",Y9="∥",Z9="⫳",J9="⫽",Q9="∂",e7="∂",t7="П",n7="п",r7="%",i7=".",o7="‰",s7="⊥",l7="‱",a7="𝔓",c7="𝔭",u7="Φ",f7="φ",d7="ϕ",h7="ℳ",p7="☎",g7="Π",v7="π",m7="⋔",y7="ϖ",b7="ℏ",w7="ℎ",x7="ℏ",S7="⨣",_7="⊞",k7="⨢",T7="+",C7="∔",E7="⨥",L7="⩲",A7="±",M7="±",N7="⨦",$7="⨧",P7="±",O7="ℌ",R7="⨕",D7="𝕡",z7="ℙ",I7="£",F7="⪷",H7="⪻",q7="≺",B7="≼",W7="⪷",U7="≺",V7="≼",j7="≺",G7="⪯",K7="≼",X7="≾",Y7="⪯",Z7="⪹",J7="⪵",Q7="⋨",eK="⪯",tK="⪳",nK="≾",rK="′",iK="″",oK="ℙ",sK="⪹",lK="⪵",aK="⋨",cK="∏",uK="∏",fK="⌮",dK="⌒",hK="⌓",pK="∝",gK="∝",vK="∷",mK="∝",yK="≾",bK="⊰",wK="𝒫",xK="𝓅",SK="Ψ",_K="ψ",kK=" ",TK="𝔔",CK="𝔮",EK="⨌",LK="𝕢",AK="ℚ",MK="⁗",NK="𝒬",$K="𝓆",PK="ℍ",OK="⨖",RK="?",DK="≟",zK='"',IK='"',FK="⇛",HK="∽̱",qK="Ŕ",BK="ŕ",WK="√",UK="⦳",VK="⟩",jK="⟫",GK="⦒",KK="⦥",XK="⟩",YK="»",ZK="⥵",JK="⇥",QK="⤠",eX="⤳",tX="→",nX="↠",rX="⇒",iX="⤞",oX="↪",sX="↬",lX="⥅",aX="⥴",cX="⤖",uX="↣",fX="↝",dX="⤚",hX="⤜",pX="∶",gX="ℚ",vX="⤍",mX="⤏",yX="⤐",bX="❳",wX="}",xX="]",SX="⦌",_X="⦎",kX="⦐",TX="Ř",CX="ř",EX="Ŗ",LX="ŗ",AX="⌉",MX="}",NX="Р",$X="р",PX="⤷",OX="⥩",RX="”",DX="”",zX="↳",IX="ℜ",FX="ℛ",HX="ℜ",qX="ℝ",BX="ℜ",WX="▭",UX="®",VX="®",jX="∋",GX="⇋",KX="⥯",XX="⥽",YX="⌋",ZX="𝔯",JX="ℜ",QX="⥤",eY="⇁",tY="⇀",nY="⥬",rY="Ρ",iY="ρ",oY="ϱ",sY="⟩",lY="⇥",aY="→",cY="→",uY="⇒",fY="⇄",dY="↣",hY="⌉",pY="⟧",gY="⥝",vY="⥕",mY="⇂",yY="⌋",bY="⇁",wY="⇀",xY="⇄",SY="⇌",_Y="⇉",kY="↝",TY="↦",CY="⊢",EY="⥛",LY="⋌",AY="⧐",MY="⊳",NY="⊵",$Y="⥏",PY="⥜",OY="⥔",RY="↾",DY="⥓",zY="⇀",IY="˚",FY="≓",HY="⇄",qY="⇌",BY="",WY="⎱",UY="⎱",VY="⫮",jY="⟭",GY="⇾",KY="⟧",XY="⦆",YY="𝕣",ZY="ℝ",JY="⨮",QY="⨵",eZ="⥰",tZ=")",nZ="⦔",rZ="⨒",iZ="⇉",oZ="⇛",sZ="›",lZ="𝓇",aZ="ℛ",cZ="↱",uZ="↱",fZ="]",dZ="’",hZ="’",pZ="⋌",gZ="⋊",vZ="▹",mZ="⊵",yZ="▸",bZ="⧎",wZ="⧴",xZ="⥨",SZ="℞",_Z="Ś",kZ="ś",TZ="‚",CZ="⪸",EZ="Š",LZ="š",AZ="⪼",MZ="≻",NZ="≽",$Z="⪰",PZ="⪴",OZ="Ş",RZ="ş",DZ="Ŝ",zZ="ŝ",IZ="⪺",FZ="⪶",HZ="⋩",qZ="⨓",BZ="≿",WZ="С",UZ="с",VZ="⊡",jZ="⋅",GZ="⩦",KZ="⤥",XZ="↘",YZ="⇘",ZZ="↘",JZ="§",QZ=";",eJ="⤩",tJ="∖",nJ="∖",rJ="✶",iJ="𝔖",oJ="𝔰",sJ="⌢",lJ="♯",aJ="Щ",cJ="щ",uJ="Ш",fJ="ш",dJ="↓",hJ="←",pJ="∣",gJ="∥",vJ="→",mJ="↑",yJ="",bJ="Σ",wJ="σ",xJ="ς",SJ="ς",_J="∼",kJ="⩪",TJ="≃",CJ="≃",EJ="⪞",LJ="⪠",AJ="⪝",MJ="⪟",NJ="≆",$J="⨤",PJ="⥲",OJ="←",RJ="∘",DJ="∖",zJ="⨳",IJ="⧤",FJ="∣",HJ="⌣",qJ="⪪",BJ="⪬",WJ="⪬︀",UJ="Ь",VJ="ь",jJ="⌿",GJ="⧄",KJ="/",XJ="𝕊",YJ="𝕤",ZJ="♠",JJ="♠",QJ="∥",eQ="⊓",tQ="⊓︀",nQ="⊔",rQ="⊔︀",iQ="√",oQ="⊏",sQ="⊑",lQ="⊏",aQ="⊑",cQ="⊐",uQ="⊒",fQ="⊐",dQ="⊒",hQ="□",pQ="□",gQ="⊓",vQ="⊏",mQ="⊑",yQ="⊐",bQ="⊒",wQ="⊔",xQ="▪",SQ="□",_Q="▪",kQ="→",TQ="𝒮",CQ="𝓈",EQ="∖",LQ="⌣",AQ="⋆",MQ="⋆",NQ="☆",$Q="★",PQ="ϵ",OQ="ϕ",RQ="¯",DQ="⊂",zQ="⋐",IQ="⪽",FQ="⫅",HQ="⊆",qQ="⫃",BQ="⫁",WQ="⫋",UQ="⊊",VQ="⪿",jQ="⥹",GQ="⊂",KQ="⋐",XQ="⊆",YQ="⫅",ZQ="⊆",JQ="⊊",QQ="⫋",eee="⫇",tee="⫕",nee="⫓",ree="⪸",iee="≻",oee="≽",see="≻",lee="⪰",aee="≽",cee="≿",uee="⪰",fee="⪺",dee="⪶",hee="⋩",pee="≿",gee="∋",vee="∑",mee="∑",yee="♪",bee="¹",wee="²",xee="³",See="⊃",_ee="⋑",kee="⪾",Tee="⫘",Cee="⫆",Eee="⊇",Lee="⫄",Aee="⊃",Mee="⊇",Nee="⟉",$ee="⫗",Pee="⥻",Oee="⫂",Ree="⫌",Dee="⊋",zee="⫀",Iee="⊃",Fee="⋑",Hee="⊇",qee="⫆",Bee="⊋",Wee="⫌",Uee="⫈",Vee="⫔",jee="⫖",Gee="⤦",Kee="↙",Xee="⇙",Yee="↙",Zee="⤪",Jee="ß",Qee=" ",ete="⌖",tte="Τ",nte="τ",rte="⎴",ite="Ť",ote="ť",ste="Ţ",lte="ţ",ate="Т",cte="т",ute="⃛",fte="⌕",dte="𝔗",hte="𝔱",pte="∴",gte="∴",vte="∴",mte="Θ",yte="θ",bte="ϑ",wte="ϑ",xte="≈",Ste="∼",_te=" ",kte=" ",Tte=" ",Cte="≈",Ete="∼",Lte="Þ",Ate="þ",Mte="˜",Nte="∼",$te="≃",Pte="≅",Ote="≈",Rte="⨱",Dte="⊠",zte="×",Ite="⨰",Fte="∭",Hte="⤨",qte="⌶",Bte="⫱",Wte="⊤",Ute="𝕋",Vte="𝕥",jte="⫚",Gte="⤩",Kte="‴",Xte="™",Yte="™",Zte="▵",Jte="▿",Qte="◃",ene="⊴",tne="≜",nne="▹",rne="⊵",ine="◬",one="≜",sne="⨺",lne="⃛",ane="⨹",cne="⧍",une="⨻",fne="⏢",dne="𝒯",hne="𝓉",pne="Ц",gne="ц",vne="Ћ",mne="ћ",yne="Ŧ",bne="ŧ",wne="≬",xne="↞",Sne="↠",_ne="Ú",kne="ú",Tne="↑",Cne="↟",Ene="⇑",Lne="⥉",Ane="Ў",Mne="ў",Nne="Ŭ",$ne="ŭ",Pne="Û",One="û",Rne="У",Dne="у",zne="⇅",Ine="Ű",Fne="ű",Hne="⥮",qne="⥾",Bne="𝔘",Wne="𝔲",Une="Ù",Vne="ù",jne="⥣",Gne="↿",Kne="↾",Xne="▀",Yne="⌜",Zne="⌜",Jne="⌏",Qne="◸",ere="Ū",tre="ū",nre="¨",rre="_",ire="⏟",ore="⎵",sre="⏝",lre="⋃",are="⊎",cre="Ų",ure="ų",fre="𝕌",dre="𝕦",hre="⤒",pre="↑",gre="↑",vre="⇑",mre="⇅",yre="↕",bre="↕",wre="⇕",xre="⥮",Sre="↿",_re="↾",kre="⊎",Tre="↖",Cre="↗",Ere="υ",Lre="ϒ",Are="ϒ",Mre="Υ",Nre="υ",$re="↥",Pre="⊥",Ore="⇈",Rre="⌝",Dre="⌝",zre="⌎",Ire="Ů",Fre="ů",Hre="◹",qre="𝒰",Bre="𝓊",Wre="⋰",Ure="Ũ",Vre="ũ",jre="▵",Gre="▴",Kre="⇈",Xre="Ü",Yre="ü",Zre="⦧",Jre="⦜",Qre="ϵ",eie="ϰ",tie="∅",nie="ϕ",rie="ϖ",iie="∝",oie="↕",sie="⇕",lie="ϱ",aie="ς",cie="⊊︀",uie="⫋︀",fie="⊋︀",die="⫌︀",hie="ϑ",pie="⊲",gie="⊳",vie="⫨",mie="⫫",yie="⫩",bie="В",wie="в",xie="⊢",Sie="⊨",_ie="⊩",kie="⊫",Tie="⫦",Cie="⊻",Eie="∨",Lie="⋁",Aie="≚",Mie="⋮",Nie="|",$ie="‖",Pie="|",Oie="‖",Rie="∣",Die="|",zie="❘",Iie="≀",Fie=" ",Hie="𝔙",qie="𝔳",Bie="⊲",Wie="⊂⃒",Uie="⊃⃒",Vie="𝕍",jie="𝕧",Gie="∝",Kie="⊳",Xie="𝒱",Yie="𝓋",Zie="⫋︀",Jie="⊊︀",Qie="⫌︀",eoe="⊋︀",toe="⊪",noe="⦚",roe="Ŵ",ioe="ŵ",ooe="⩟",soe="∧",loe="⋀",aoe="≙",coe="℘",uoe="𝔚",foe="𝔴",doe="𝕎",hoe="𝕨",poe="℘",goe="≀",voe="≀",moe="𝒲",yoe="𝓌",boe="⋂",woe="◯",xoe="⋃",Soe="▽",_oe="𝔛",koe="𝔵",Toe="⟷",Coe="⟺",Eoe="Ξ",Loe="ξ",Aoe="⟵",Moe="⟸",Noe="⟼",$oe="⋻",Poe="⨀",Ooe="𝕏",Roe="𝕩",Doe="⨁",zoe="⨂",Ioe="⟶",Foe="⟹",Hoe="𝒳",qoe="𝓍",Boe="⨆",Woe="⨄",Uoe="△",Voe="⋁",joe="⋀",Goe="Ý",Koe="ý",Xoe="Я",Yoe="я",Zoe="Ŷ",Joe="ŷ",Qoe="Ы",ese="ы",tse="¥",nse="𝔜",rse="𝔶",ise="Ї",ose="ї",sse="𝕐",lse="𝕪",ase="𝒴",cse="𝓎",use="Ю",fse="ю",dse="ÿ",hse="Ÿ",pse="Ź",gse="ź",vse="Ž",mse="ž",yse="З",bse="з",wse="Ż",xse="ż",Sse="ℨ",_se="",kse="Ζ",Tse="ζ",Cse="𝔷",Ese="ℨ",Lse="Ж",Ase="ж",Mse="⇝",Nse="𝕫",$se="ℤ",Pse="𝒵",Ose="𝓏",Rse="",Dse="",Aw={Aacute:wA,aacute:xA,Abreve:SA,abreve:_A,ac:kA,acd:TA,acE:CA,Acirc:EA,acirc:LA,acute:AA,Acy:MA,acy:NA,AElig:$A,aelig:PA,af:OA,Afr:RA,afr:DA,Agrave:zA,agrave:IA,alefsym:FA,aleph:HA,Alpha:qA,alpha:BA,Amacr:WA,amacr:UA,amalg:VA,amp:jA,AMP:GA,andand:KA,And:XA,and:YA,andd:ZA,andslope:JA,andv:QA,ang:eM,ange:tM,angle:nM,angmsdaa:rM,angmsdab:iM,angmsdac:oM,angmsdad:sM,angmsdae:lM,angmsdaf:aM,angmsdag:cM,angmsdah:uM,angmsd:fM,angrt:dM,angrtvb:hM,angrtvbd:pM,angsph:gM,angst:vM,angzarr:mM,Aogon:yM,aogon:bM,Aopf:wM,aopf:xM,apacir:SM,ap:_M,apE:kM,ape:TM,apid:CM,apos:EM,ApplyFunction:LM,approx:AM,approxeq:MM,Aring:NM,aring:$M,Ascr:PM,ascr:OM,Assign:RM,ast:DM,asymp:zM,asympeq:IM,Atilde:FM,atilde:HM,Auml:qM,auml:BM,awconint:WM,awint:UM,backcong:VM,backepsilon:jM,backprime:GM,backsim:KM,backsimeq:XM,Backslash:YM,Barv:ZM,barvee:JM,barwed:QM,Barwed:eN,barwedge:tN,bbrk:nN,bbrktbrk:rN,bcong:iN,Bcy:oN,bcy:sN,bdquo:lN,becaus:aN,because:cN,Because:uN,bemptyv:fN,bepsi:dN,bernou:hN,Bernoullis:pN,Beta:gN,beta:vN,beth:mN,between:yN,Bfr:bN,bfr:wN,bigcap:xN,bigcirc:SN,bigcup:_N,bigodot:kN,bigoplus:TN,bigotimes:CN,bigsqcup:EN,bigstar:LN,bigtriangledown:AN,bigtriangleup:MN,biguplus:NN,bigvee:$N,bigwedge:PN,bkarow:ON,blacklozenge:RN,blacksquare:DN,blacktriangle:zN,blacktriangledown:IN,blacktriangleleft:FN,blacktriangleright:HN,blank:qN,blk12:BN,blk14:WN,blk34:UN,block:VN,bne:jN,bnequiv:GN,bNot:KN,bnot:XN,Bopf:YN,bopf:ZN,bot:JN,bottom:QN,bowtie:e$,boxbox:t$,boxdl:n$,boxdL:r$,boxDl:i$,boxDL:o$,boxdr:s$,boxdR:l$,boxDr:a$,boxDR:c$,boxh:u$,boxH:f$,boxhd:d$,boxHd:h$,boxhD:p$,boxHD:g$,boxhu:v$,boxHu:m$,boxhU:y$,boxHU:b$,boxminus:w$,boxplus:x$,boxtimes:S$,boxul:_$,boxuL:k$,boxUl:T$,boxUL:C$,boxur:E$,boxuR:L$,boxUr:A$,boxUR:M$,boxv:N$,boxV:$$,boxvh:P$,boxvH:O$,boxVh:R$,boxVH:D$,boxvl:z$,boxvL:I$,boxVl:F$,boxVL:H$,boxvr:q$,boxvR:B$,boxVr:W$,boxVR:U$,bprime:V$,breve:j$,Breve:G$,brvbar:K$,bscr:X$,Bscr:Y$,bsemi:Z$,bsim:J$,bsime:Q$,bsolb:eP,bsol:tP,bsolhsub:nP,bull:rP,bullet:iP,bump:oP,bumpE:sP,bumpe:lP,Bumpeq:aP,bumpeq:cP,Cacute:uP,cacute:fP,capand:dP,capbrcup:hP,capcap:pP,cap:gP,Cap:vP,capcup:mP,capdot:yP,CapitalDifferentialD:bP,caps:wP,caret:xP,caron:SP,Cayleys:_P,ccaps:kP,Ccaron:TP,ccaron:CP,Ccedil:EP,ccedil:LP,Ccirc:AP,ccirc:MP,Cconint:NP,ccups:$P,ccupssm:PP,Cdot:OP,cdot:RP,cedil:DP,Cedilla:zP,cemptyv:IP,cent:FP,centerdot:HP,CenterDot:qP,cfr:BP,Cfr:WP,CHcy:UP,chcy:VP,check:jP,checkmark:GP,Chi:KP,chi:XP,circ:YP,circeq:ZP,circlearrowleft:JP,circlearrowright:QP,circledast:eO,circledcirc:tO,circleddash:nO,CircleDot:rO,circledR:iO,circledS:oO,CircleMinus:sO,CirclePlus:lO,CircleTimes:aO,cir:cO,cirE:uO,cire:fO,cirfnint:dO,cirmid:hO,cirscir:pO,ClockwiseContourIntegral:gO,CloseCurlyDoubleQuote:vO,CloseCurlyQuote:mO,clubs:yO,clubsuit:bO,colon:wO,Colon:xO,Colone:SO,colone:_O,coloneq:kO,comma:TO,commat:CO,comp:EO,compfn:LO,complement:AO,complexes:MO,cong:NO,congdot:$O,Congruent:PO,conint:OO,Conint:RO,ContourIntegral:DO,copf:zO,Copf:IO,coprod:FO,Coproduct:HO,copy:qO,COPY:BO,copysr:WO,CounterClockwiseContourIntegral:UO,crarr:VO,cross:jO,Cross:GO,Cscr:KO,cscr:XO,csub:YO,csube:ZO,csup:JO,csupe:QO,ctdot:eR,cudarrl:tR,cudarrr:nR,cuepr:rR,cuesc:iR,cularr:oR,cularrp:sR,cupbrcap:lR,cupcap:aR,CupCap:cR,cup:uR,Cup:fR,cupcup:dR,cupdot:hR,cupor:pR,cups:gR,curarr:vR,curarrm:mR,curlyeqprec:yR,curlyeqsucc:bR,curlyvee:wR,curlywedge:xR,curren:SR,curvearrowleft:_R,curvearrowright:kR,cuvee:TR,cuwed:CR,cwconint:ER,cwint:LR,cylcty:AR,dagger:MR,Dagger:NR,daleth:$R,darr:PR,Darr:OR,dArr:RR,dash:DR,Dashv:zR,dashv:IR,dbkarow:FR,dblac:HR,Dcaron:qR,dcaron:BR,Dcy:WR,dcy:UR,ddagger:VR,ddarr:jR,DD:GR,dd:KR,DDotrahd:XR,ddotseq:YR,deg:ZR,Del:JR,Delta:QR,delta:eD,demptyv:tD,dfisht:nD,Dfr:rD,dfr:iD,dHar:oD,dharl:sD,dharr:lD,DiacriticalAcute:aD,DiacriticalDot:cD,DiacriticalDoubleAcute:uD,DiacriticalGrave:fD,DiacriticalTilde:dD,diam:hD,diamond:pD,Diamond:gD,diamondsuit:vD,diams:mD,die:yD,DifferentialD:bD,digamma:wD,disin:xD,div:SD,divide:_D,divideontimes:kD,divonx:TD,DJcy:CD,djcy:ED,dlcorn:LD,dlcrop:AD,dollar:MD,Dopf:ND,dopf:$D,Dot:PD,dot:OD,DotDot:RD,doteq:DD,doteqdot:zD,DotEqual:ID,dotminus:FD,dotplus:HD,dotsquare:qD,doublebarwedge:BD,DoubleContourIntegral:WD,DoubleDot:UD,DoubleDownArrow:VD,DoubleLeftArrow:jD,DoubleLeftRightArrow:GD,DoubleLeftTee:KD,DoubleLongLeftArrow:XD,DoubleLongLeftRightArrow:YD,DoubleLongRightArrow:ZD,DoubleRightArrow:JD,DoubleRightTee:QD,DoubleUpArrow:ez,DoubleUpDownArrow:tz,DoubleVerticalBar:nz,DownArrowBar:rz,downarrow:iz,DownArrow:oz,Downarrow:sz,DownArrowUpArrow:lz,DownBreve:az,downdownarrows:cz,downharpoonleft:uz,downharpoonright:fz,DownLeftRightVector:dz,DownLeftTeeVector:hz,DownLeftVectorBar:pz,DownLeftVector:gz,DownRightTeeVector:vz,DownRightVectorBar:mz,DownRightVector:yz,DownTeeArrow:bz,DownTee:wz,drbkarow:xz,drcorn:Sz,drcrop:_z,Dscr:kz,dscr:Tz,DScy:Cz,dscy:Ez,dsol:Lz,Dstrok:Az,dstrok:Mz,dtdot:Nz,dtri:$z,dtrif:Pz,duarr:Oz,duhar:Rz,dwangle:Dz,DZcy:zz,dzcy:Iz,dzigrarr:Fz,Eacute:Hz,eacute:qz,easter:Bz,Ecaron:Wz,ecaron:Uz,Ecirc:Vz,ecirc:jz,ecir:Gz,ecolon:Kz,Ecy:Xz,ecy:Yz,eDDot:Zz,Edot:Jz,edot:Qz,eDot:e2,ee:t2,efDot:n2,Efr:r2,efr:i2,eg:o2,Egrave:s2,egrave:l2,egs:a2,egsdot:c2,el:u2,Element:f2,elinters:d2,ell:h2,els:p2,elsdot:g2,Emacr:v2,emacr:m2,empty:y2,emptyset:b2,EmptySmallSquare:w2,emptyv:x2,EmptyVerySmallSquare:S2,emsp13:_2,emsp14:k2,emsp:T2,ENG:C2,eng:E2,ensp:L2,Eogon:A2,eogon:M2,Eopf:N2,eopf:$2,epar:P2,eparsl:O2,eplus:R2,epsi:D2,Epsilon:z2,epsilon:I2,epsiv:F2,eqcirc:H2,eqcolon:q2,eqsim:B2,eqslantgtr:W2,eqslantless:U2,Equal:V2,equals:j2,EqualTilde:G2,equest:K2,Equilibrium:X2,equiv:Y2,equivDD:Z2,eqvparsl:J2,erarr:Q2,erDot:eI,escr:tI,Escr:nI,esdot:rI,Esim:iI,esim:oI,Eta:sI,eta:lI,ETH:aI,eth:cI,Euml:uI,euml:fI,euro:dI,excl:hI,exist:pI,Exists:gI,expectation:vI,exponentiale:mI,ExponentialE:yI,fallingdotseq:bI,Fcy:wI,fcy:xI,female:SI,ffilig:_I,fflig:kI,ffllig:TI,Ffr:CI,ffr:EI,filig:LI,FilledSmallSquare:AI,FilledVerySmallSquare:MI,fjlig:NI,flat:$I,fllig:PI,fltns:OI,fnof:RI,Fopf:DI,fopf:zI,forall:II,ForAll:FI,fork:HI,forkv:qI,Fouriertrf:BI,fpartint:WI,frac12:UI,frac13:VI,frac14:jI,frac15:GI,frac16:KI,frac18:XI,frac23:YI,frac25:ZI,frac34:JI,frac35:QI,frac38:eF,frac45:tF,frac56:nF,frac58:rF,frac78:iF,frasl:oF,frown:sF,fscr:lF,Fscr:aF,gacute:cF,Gamma:uF,gamma:fF,Gammad:dF,gammad:hF,gap:pF,Gbreve:gF,gbreve:vF,Gcedil:mF,Gcirc:yF,gcirc:bF,Gcy:wF,gcy:xF,Gdot:SF,gdot:_F,ge:kF,gE:TF,gEl:CF,gel:EF,geq:LF,geqq:AF,geqslant:MF,gescc:NF,ges:$F,gesdot:PF,gesdoto:OF,gesdotol:RF,gesl:DF,gesles:zF,Gfr:IF,gfr:FF,gg:HF,Gg:qF,ggg:BF,gimel:WF,GJcy:UF,gjcy:VF,gla:jF,gl:GF,glE:KF,glj:XF,gnap:YF,gnapprox:ZF,gne:JF,gnE:QF,gneq:eH,gneqq:tH,gnsim:nH,Gopf:rH,gopf:iH,grave:oH,GreaterEqual:sH,GreaterEqualLess:lH,GreaterFullEqual:aH,GreaterGreater:cH,GreaterLess:uH,GreaterSlantEqual:fH,GreaterTilde:dH,Gscr:hH,gscr:pH,gsim:gH,gsime:vH,gsiml:mH,gtcc:yH,gtcir:bH,gt:wH,GT:xH,Gt:SH,gtdot:_H,gtlPar:kH,gtquest:TH,gtrapprox:CH,gtrarr:EH,gtrdot:LH,gtreqless:AH,gtreqqless:MH,gtrless:NH,gtrsim:$H,gvertneqq:PH,gvnE:OH,Hacek:RH,hairsp:DH,half:zH,hamilt:IH,HARDcy:FH,hardcy:HH,harrcir:qH,harr:BH,hArr:WH,harrw:UH,Hat:VH,hbar:jH,Hcirc:GH,hcirc:KH,hearts:XH,heartsuit:YH,hellip:ZH,hercon:JH,hfr:QH,Hfr:eq,HilbertSpace:tq,hksearow:nq,hkswarow:rq,hoarr:iq,homtht:oq,hookleftarrow:sq,hookrightarrow:lq,hopf:aq,Hopf:cq,horbar:uq,HorizontalLine:fq,hscr:dq,Hscr:hq,hslash:pq,Hstrok:gq,hstrok:vq,HumpDownHump:mq,HumpEqual:yq,hybull:bq,hyphen:wq,Iacute:xq,iacute:Sq,ic:_q,Icirc:kq,icirc:Tq,Icy:Cq,icy:Eq,Idot:Lq,IEcy:Aq,iecy:Mq,iexcl:Nq,iff:$q,ifr:Pq,Ifr:Oq,Igrave:Rq,igrave:Dq,ii:zq,iiiint:Iq,iiint:Fq,iinfin:Hq,iiota:qq,IJlig:Bq,ijlig:Wq,Imacr:Uq,imacr:Vq,image:jq,ImaginaryI:Gq,imagline:Kq,imagpart:Xq,imath:Yq,Im:Zq,imof:Jq,imped:Qq,Implies:eB,incare:tB,in:"∈",infin:nB,infintie:rB,inodot:iB,intcal:oB,int:sB,Int:lB,integers:aB,Integral:cB,intercal:uB,Intersection:fB,intlarhk:dB,intprod:hB,InvisibleComma:pB,InvisibleTimes:gB,IOcy:vB,iocy:mB,Iogon:yB,iogon:bB,Iopf:wB,iopf:xB,Iota:SB,iota:_B,iprod:kB,iquest:TB,iscr:CB,Iscr:EB,isin:LB,isindot:AB,isinE:MB,isins:NB,isinsv:$B,isinv:PB,it:OB,Itilde:RB,itilde:DB,Iukcy:zB,iukcy:IB,Iuml:FB,iuml:HB,Jcirc:qB,jcirc:BB,Jcy:WB,jcy:UB,Jfr:VB,jfr:jB,jmath:GB,Jopf:KB,jopf:XB,Jscr:YB,jscr:ZB,Jsercy:JB,jsercy:QB,Jukcy:e3,jukcy:t3,Kappa:n3,kappa:r3,kappav:i3,Kcedil:o3,kcedil:s3,Kcy:l3,kcy:a3,Kfr:c3,kfr:u3,kgreen:f3,KHcy:d3,khcy:h3,KJcy:p3,kjcy:g3,Kopf:v3,kopf:m3,Kscr:y3,kscr:b3,lAarr:w3,Lacute:x3,lacute:S3,laemptyv:_3,lagran:k3,Lambda:T3,lambda:C3,lang:E3,Lang:L3,langd:A3,langle:M3,lap:N3,Laplacetrf:$3,laquo:P3,larrb:O3,larrbfs:R3,larr:D3,Larr:z3,lArr:I3,larrfs:F3,larrhk:H3,larrlp:q3,larrpl:B3,larrsim:W3,larrtl:U3,latail:V3,lAtail:j3,lat:G3,late:K3,lates:X3,lbarr:Y3,lBarr:Z3,lbbrk:J3,lbrace:Q3,lbrack:e5,lbrke:t5,lbrksld:n5,lbrkslu:r5,Lcaron:i5,lcaron:o5,Lcedil:s5,lcedil:l5,lceil:a5,lcub:c5,Lcy:u5,lcy:f5,ldca:d5,ldquo:h5,ldquor:p5,ldrdhar:g5,ldrushar:v5,ldsh:m5,le:y5,lE:b5,LeftAngleBracket:w5,LeftArrowBar:x5,leftarrow:S5,LeftArrow:_5,Leftarrow:k5,LeftArrowRightArrow:T5,leftarrowtail:C5,LeftCeiling:E5,LeftDoubleBracket:L5,LeftDownTeeVector:A5,LeftDownVectorBar:M5,LeftDownVector:N5,LeftFloor:$5,leftharpoondown:P5,leftharpoonup:O5,leftleftarrows:R5,leftrightarrow:D5,LeftRightArrow:z5,Leftrightarrow:I5,leftrightarrows:F5,leftrightharpoons:H5,leftrightsquigarrow:q5,LeftRightVector:B5,LeftTeeArrow:W5,LeftTee:U5,LeftTeeVector:V5,leftthreetimes:j5,LeftTriangleBar:G5,LeftTriangle:K5,LeftTriangleEqual:X5,LeftUpDownVector:Y5,LeftUpTeeVector:Z5,LeftUpVectorBar:J5,LeftUpVector:Q5,LeftVectorBar:e8,LeftVector:t8,lEg:n8,leg:r8,leq:i8,leqq:o8,leqslant:s8,lescc:l8,les:a8,lesdot:c8,lesdoto:u8,lesdotor:f8,lesg:d8,lesges:h8,lessapprox:p8,lessdot:g8,lesseqgtr:v8,lesseqqgtr:m8,LessEqualGreater:y8,LessFullEqual:b8,LessGreater:w8,lessgtr:x8,LessLess:S8,lesssim:_8,LessSlantEqual:k8,LessTilde:T8,lfisht:C8,lfloor:E8,Lfr:L8,lfr:A8,lg:M8,lgE:N8,lHar:$8,lhard:P8,lharu:O8,lharul:R8,lhblk:D8,LJcy:z8,ljcy:I8,llarr:F8,ll:H8,Ll:q8,llcorner:B8,Lleftarrow:W8,llhard:U8,lltri:V8,Lmidot:j8,lmidot:G8,lmoustache:K8,lmoust:X8,lnap:Y8,lnapprox:Z8,lne:J8,lnE:Q8,lneq:eW,lneqq:tW,lnsim:nW,loang:rW,loarr:iW,lobrk:oW,longleftarrow:sW,LongLeftArrow:lW,Longleftarrow:aW,longleftrightarrow:cW,LongLeftRightArrow:uW,Longleftrightarrow:fW,longmapsto:dW,longrightarrow:hW,LongRightArrow:pW,Longrightarrow:gW,looparrowleft:vW,looparrowright:mW,lopar:yW,Lopf:bW,lopf:wW,loplus:xW,lotimes:SW,lowast:_W,lowbar:kW,LowerLeftArrow:TW,LowerRightArrow:CW,loz:EW,lozenge:LW,lozf:AW,lpar:MW,lparlt:NW,lrarr:$W,lrcorner:PW,lrhar:OW,lrhard:RW,lrm:DW,lrtri:zW,lsaquo:IW,lscr:FW,Lscr:HW,lsh:qW,Lsh:BW,lsim:WW,lsime:UW,lsimg:VW,lsqb:jW,lsquo:GW,lsquor:KW,Lstrok:XW,lstrok:YW,ltcc:ZW,ltcir:JW,lt:QW,LT:e4,Lt:t4,ltdot:n4,lthree:r4,ltimes:i4,ltlarr:o4,ltquest:s4,ltri:l4,ltrie:a4,ltrif:c4,ltrPar:u4,lurdshar:f4,luruhar:d4,lvertneqq:h4,lvnE:p4,macr:g4,male:v4,malt:m4,maltese:y4,Map:"⤅",map:b4,mapsto:w4,mapstodown:x4,mapstoleft:S4,mapstoup:_4,marker:k4,mcomma:T4,Mcy:C4,mcy:E4,mdash:L4,mDDot:A4,measuredangle:M4,MediumSpace:N4,Mellintrf:$4,Mfr:P4,mfr:O4,mho:R4,micro:D4,midast:z4,midcir:I4,mid:F4,middot:H4,minusb:q4,minus:B4,minusd:W4,minusdu:U4,MinusPlus:V4,mlcp:j4,mldr:G4,mnplus:K4,models:X4,Mopf:Y4,mopf:Z4,mp:J4,mscr:Q4,Mscr:eU,mstpos:tU,Mu:nU,mu:rU,multimap:iU,mumap:oU,nabla:sU,Nacute:lU,nacute:aU,nang:cU,nap:uU,napE:fU,napid:dU,napos:hU,napprox:pU,natural:gU,naturals:vU,natur:mU,nbsp:yU,nbump:bU,nbumpe:wU,ncap:xU,Ncaron:SU,ncaron:_U,Ncedil:kU,ncedil:TU,ncong:CU,ncongdot:EU,ncup:LU,Ncy:AU,ncy:MU,ndash:NU,nearhk:$U,nearr:PU,neArr:OU,nearrow:RU,ne:DU,nedot:zU,NegativeMediumSpace:IU,NegativeThickSpace:FU,NegativeThinSpace:HU,NegativeVeryThinSpace:qU,nequiv:BU,nesear:WU,nesim:UU,NestedGreaterGreater:VU,NestedLessLess:jU,NewLine:GU,nexist:KU,nexists:XU,Nfr:YU,nfr:ZU,ngE:JU,nge:QU,ngeq:e6,ngeqq:t6,ngeqslant:n6,nges:r6,nGg:i6,ngsim:o6,nGt:s6,ngt:l6,ngtr:a6,nGtv:c6,nharr:u6,nhArr:f6,nhpar:d6,ni:h6,nis:p6,nisd:g6,niv:v6,NJcy:m6,njcy:y6,nlarr:b6,nlArr:w6,nldr:x6,nlE:S6,nle:_6,nleftarrow:k6,nLeftarrow:T6,nleftrightarrow:C6,nLeftrightarrow:E6,nleq:L6,nleqq:A6,nleqslant:M6,nles:N6,nless:$6,nLl:P6,nlsim:O6,nLt:R6,nlt:D6,nltri:z6,nltrie:I6,nLtv:F6,nmid:H6,NoBreak:q6,NonBreakingSpace:B6,nopf:W6,Nopf:U6,Not:V6,not:j6,NotCongruent:G6,NotCupCap:K6,NotDoubleVerticalBar:X6,NotElement:Y6,NotEqual:Z6,NotEqualTilde:J6,NotExists:Q6,NotGreater:eV,NotGreaterEqual:tV,NotGreaterFullEqual:nV,NotGreaterGreater:rV,NotGreaterLess:iV,NotGreaterSlantEqual:oV,NotGreaterTilde:sV,NotHumpDownHump:lV,NotHumpEqual:aV,notin:cV,notindot:uV,notinE:fV,notinva:dV,notinvb:hV,notinvc:pV,NotLeftTriangleBar:gV,NotLeftTriangle:vV,NotLeftTriangleEqual:mV,NotLess:yV,NotLessEqual:bV,NotLessGreater:wV,NotLessLess:xV,NotLessSlantEqual:SV,NotLessTilde:_V,NotNestedGreaterGreater:kV,NotNestedLessLess:TV,notni:CV,notniva:EV,notnivb:LV,notnivc:AV,NotPrecedes:MV,NotPrecedesEqual:NV,NotPrecedesSlantEqual:$V,NotReverseElement:PV,NotRightTriangleBar:OV,NotRightTriangle:RV,NotRightTriangleEqual:DV,NotSquareSubset:zV,NotSquareSubsetEqual:IV,NotSquareSuperset:FV,NotSquareSupersetEqual:HV,NotSubset:qV,NotSubsetEqual:BV,NotSucceeds:WV,NotSucceedsEqual:UV,NotSucceedsSlantEqual:VV,NotSucceedsTilde:jV,NotSuperset:GV,NotSupersetEqual:KV,NotTilde:XV,NotTildeEqual:YV,NotTildeFullEqual:ZV,NotTildeTilde:JV,NotVerticalBar:QV,nparallel:ej,npar:tj,nparsl:nj,npart:rj,npolint:ij,npr:oj,nprcue:sj,nprec:lj,npreceq:aj,npre:cj,nrarrc:uj,nrarr:fj,nrArr:dj,nrarrw:hj,nrightarrow:pj,nRightarrow:gj,nrtri:vj,nrtrie:mj,nsc:yj,nsccue:bj,nsce:wj,Nscr:xj,nscr:Sj,nshortmid:_j,nshortparallel:kj,nsim:Tj,nsime:Cj,nsimeq:Ej,nsmid:Lj,nspar:Aj,nsqsube:Mj,nsqsupe:Nj,nsub:$j,nsubE:Pj,nsube:Oj,nsubset:Rj,nsubseteq:Dj,nsubseteqq:zj,nsucc:Ij,nsucceq:Fj,nsup:Hj,nsupE:qj,nsupe:Bj,nsupset:Wj,nsupseteq:Uj,nsupseteqq:Vj,ntgl:jj,Ntilde:Gj,ntilde:Kj,ntlg:Xj,ntriangleleft:Yj,ntrianglelefteq:Zj,ntriangleright:Jj,ntrianglerighteq:Qj,Nu:eG,nu:tG,num:nG,numero:rG,numsp:iG,nvap:oG,nvdash:sG,nvDash:lG,nVdash:aG,nVDash:cG,nvge:uG,nvgt:fG,nvHarr:dG,nvinfin:hG,nvlArr:pG,nvle:gG,nvlt:vG,nvltrie:mG,nvrArr:yG,nvrtrie:bG,nvsim:wG,nwarhk:xG,nwarr:SG,nwArr:_G,nwarrow:kG,nwnear:TG,Oacute:CG,oacute:EG,oast:LG,Ocirc:AG,ocirc:MG,ocir:NG,Ocy:$G,ocy:PG,odash:OG,Odblac:RG,odblac:DG,odiv:zG,odot:IG,odsold:FG,OElig:HG,oelig:qG,ofcir:BG,Ofr:WG,ofr:UG,ogon:VG,Ograve:jG,ograve:GG,ogt:KG,ohbar:XG,ohm:YG,oint:ZG,olarr:JG,olcir:QG,olcross:e9,oline:t9,olt:n9,Omacr:r9,omacr:i9,Omega:o9,omega:s9,Omicron:l9,omicron:a9,omid:c9,ominus:u9,Oopf:f9,oopf:d9,opar:h9,OpenCurlyDoubleQuote:p9,OpenCurlyQuote:g9,operp:v9,oplus:m9,orarr:y9,Or:b9,or:w9,ord:x9,order:S9,orderof:_9,ordf:k9,ordm:T9,origof:C9,oror:E9,orslope:L9,orv:A9,oS:M9,Oscr:N9,oscr:$9,Oslash:P9,oslash:O9,osol:R9,Otilde:D9,otilde:z9,otimesas:I9,Otimes:F9,otimes:H9,Ouml:q9,ouml:B9,ovbar:W9,OverBar:U9,OverBrace:V9,OverBracket:j9,OverParenthesis:G9,para:K9,parallel:X9,par:Y9,parsim:Z9,parsl:J9,part:Q9,PartialD:e7,Pcy:t7,pcy:n7,percnt:r7,period:i7,permil:o7,perp:s7,pertenk:l7,Pfr:a7,pfr:c7,Phi:u7,phi:f7,phiv:d7,phmmat:h7,phone:p7,Pi:g7,pi:v7,pitchfork:m7,piv:y7,planck:b7,planckh:w7,plankv:x7,plusacir:S7,plusb:_7,pluscir:k7,plus:T7,plusdo:C7,plusdu:E7,pluse:L7,PlusMinus:A7,plusmn:M7,plussim:N7,plustwo:$7,pm:P7,Poincareplane:O7,pointint:R7,popf:D7,Popf:z7,pound:I7,prap:F7,Pr:H7,pr:q7,prcue:B7,precapprox:W7,prec:U7,preccurlyeq:V7,Precedes:j7,PrecedesEqual:G7,PrecedesSlantEqual:K7,PrecedesTilde:X7,preceq:Y7,precnapprox:Z7,precneqq:J7,precnsim:Q7,pre:eK,prE:tK,precsim:nK,prime:rK,Prime:iK,primes:oK,prnap:sK,prnE:lK,prnsim:aK,prod:cK,Product:uK,profalar:fK,profline:dK,profsurf:hK,prop:pK,Proportional:gK,Proportion:vK,propto:mK,prsim:yK,prurel:bK,Pscr:wK,pscr:xK,Psi:SK,psi:_K,puncsp:kK,Qfr:TK,qfr:CK,qint:EK,qopf:LK,Qopf:AK,qprime:MK,Qscr:NK,qscr:$K,quaternions:PK,quatint:OK,quest:RK,questeq:DK,quot:zK,QUOT:IK,rAarr:FK,race:HK,Racute:qK,racute:BK,radic:WK,raemptyv:UK,rang:VK,Rang:jK,rangd:GK,range:KK,rangle:XK,raquo:YK,rarrap:ZK,rarrb:JK,rarrbfs:QK,rarrc:eX,rarr:tX,Rarr:nX,rArr:rX,rarrfs:iX,rarrhk:oX,rarrlp:sX,rarrpl:lX,rarrsim:aX,Rarrtl:cX,rarrtl:uX,rarrw:fX,ratail:dX,rAtail:hX,ratio:pX,rationals:gX,rbarr:vX,rBarr:mX,RBarr:yX,rbbrk:bX,rbrace:wX,rbrack:xX,rbrke:SX,rbrksld:_X,rbrkslu:kX,Rcaron:TX,rcaron:CX,Rcedil:EX,rcedil:LX,rceil:AX,rcub:MX,Rcy:NX,rcy:$X,rdca:PX,rdldhar:OX,rdquo:RX,rdquor:DX,rdsh:zX,real:IX,realine:FX,realpart:HX,reals:qX,Re:BX,rect:WX,reg:UX,REG:VX,ReverseElement:jX,ReverseEquilibrium:GX,ReverseUpEquilibrium:KX,rfisht:XX,rfloor:YX,rfr:ZX,Rfr:JX,rHar:QX,rhard:eY,rharu:tY,rharul:nY,Rho:rY,rho:iY,rhov:oY,RightAngleBracket:sY,RightArrowBar:lY,rightarrow:aY,RightArrow:cY,Rightarrow:uY,RightArrowLeftArrow:fY,rightarrowtail:dY,RightCeiling:hY,RightDoubleBracket:pY,RightDownTeeVector:gY,RightDownVectorBar:vY,RightDownVector:mY,RightFloor:yY,rightharpoondown:bY,rightharpoonup:wY,rightleftarrows:xY,rightleftharpoons:SY,rightrightarrows:_Y,rightsquigarrow:kY,RightTeeArrow:TY,RightTee:CY,RightTeeVector:EY,rightthreetimes:LY,RightTriangleBar:AY,RightTriangle:MY,RightTriangleEqual:NY,RightUpDownVector:$Y,RightUpTeeVector:PY,RightUpVectorBar:OY,RightUpVector:RY,RightVectorBar:DY,RightVector:zY,ring:IY,risingdotseq:FY,rlarr:HY,rlhar:qY,rlm:BY,rmoustache:WY,rmoust:UY,rnmid:VY,roang:jY,roarr:GY,robrk:KY,ropar:XY,ropf:YY,Ropf:ZY,roplus:JY,rotimes:QY,RoundImplies:eZ,rpar:tZ,rpargt:nZ,rppolint:rZ,rrarr:iZ,Rrightarrow:oZ,rsaquo:sZ,rscr:lZ,Rscr:aZ,rsh:cZ,Rsh:uZ,rsqb:fZ,rsquo:dZ,rsquor:hZ,rthree:pZ,rtimes:gZ,rtri:vZ,rtrie:mZ,rtrif:yZ,rtriltri:bZ,RuleDelayed:wZ,ruluhar:xZ,rx:SZ,Sacute:_Z,sacute:kZ,sbquo:TZ,scap:CZ,Scaron:EZ,scaron:LZ,Sc:AZ,sc:MZ,sccue:NZ,sce:$Z,scE:PZ,Scedil:OZ,scedil:RZ,Scirc:DZ,scirc:zZ,scnap:IZ,scnE:FZ,scnsim:HZ,scpolint:qZ,scsim:BZ,Scy:WZ,scy:UZ,sdotb:VZ,sdot:jZ,sdote:GZ,searhk:KZ,searr:XZ,seArr:YZ,searrow:ZZ,sect:JZ,semi:QZ,seswar:eJ,setminus:tJ,setmn:nJ,sext:rJ,Sfr:iJ,sfr:oJ,sfrown:sJ,sharp:lJ,SHCHcy:aJ,shchcy:cJ,SHcy:uJ,shcy:fJ,ShortDownArrow:dJ,ShortLeftArrow:hJ,shortmid:pJ,shortparallel:gJ,ShortRightArrow:vJ,ShortUpArrow:mJ,shy:yJ,Sigma:bJ,sigma:wJ,sigmaf:xJ,sigmav:SJ,sim:_J,simdot:kJ,sime:TJ,simeq:CJ,simg:EJ,simgE:LJ,siml:AJ,simlE:MJ,simne:NJ,simplus:$J,simrarr:PJ,slarr:OJ,SmallCircle:RJ,smallsetminus:DJ,smashp:zJ,smeparsl:IJ,smid:FJ,smile:HJ,smt:qJ,smte:BJ,smtes:WJ,SOFTcy:UJ,softcy:VJ,solbar:jJ,solb:GJ,sol:KJ,Sopf:XJ,sopf:YJ,spades:ZJ,spadesuit:JJ,spar:QJ,sqcap:eQ,sqcaps:tQ,sqcup:nQ,sqcups:rQ,Sqrt:iQ,sqsub:oQ,sqsube:sQ,sqsubset:lQ,sqsubseteq:aQ,sqsup:cQ,sqsupe:uQ,sqsupset:fQ,sqsupseteq:dQ,square:hQ,Square:pQ,SquareIntersection:gQ,SquareSubset:vQ,SquareSubsetEqual:mQ,SquareSuperset:yQ,SquareSupersetEqual:bQ,SquareUnion:wQ,squarf:xQ,squ:SQ,squf:_Q,srarr:kQ,Sscr:TQ,sscr:CQ,ssetmn:EQ,ssmile:LQ,sstarf:AQ,Star:MQ,star:NQ,starf:$Q,straightepsilon:PQ,straightphi:OQ,strns:RQ,sub:DQ,Sub:zQ,subdot:IQ,subE:FQ,sube:HQ,subedot:qQ,submult:BQ,subnE:WQ,subne:UQ,subplus:VQ,subrarr:jQ,subset:GQ,Subset:KQ,subseteq:XQ,subseteqq:YQ,SubsetEqual:ZQ,subsetneq:JQ,subsetneqq:QQ,subsim:eee,subsub:tee,subsup:nee,succapprox:ree,succ:iee,succcurlyeq:oee,Succeeds:see,SucceedsEqual:lee,SucceedsSlantEqual:aee,SucceedsTilde:cee,succeq:uee,succnapprox:fee,succneqq:dee,succnsim:hee,succsim:pee,SuchThat:gee,sum:vee,Sum:mee,sung:yee,sup1:bee,sup2:wee,sup3:xee,sup:See,Sup:_ee,supdot:kee,supdsub:Tee,supE:Cee,supe:Eee,supedot:Lee,Superset:Aee,SupersetEqual:Mee,suphsol:Nee,suphsub:$ee,suplarr:Pee,supmult:Oee,supnE:Ree,supne:Dee,supplus:zee,supset:Iee,Supset:Fee,supseteq:Hee,supseteqq:qee,supsetneq:Bee,supsetneqq:Wee,supsim:Uee,supsub:Vee,supsup:jee,swarhk:Gee,swarr:Kee,swArr:Xee,swarrow:Yee,swnwar:Zee,szlig:Jee,Tab:Qee,target:ete,Tau:tte,tau:nte,tbrk:rte,Tcaron:ite,tcaron:ote,Tcedil:ste,tcedil:lte,Tcy:ate,tcy:cte,tdot:ute,telrec:fte,Tfr:dte,tfr:hte,there4:pte,therefore:gte,Therefore:vte,Theta:mte,theta:yte,thetasym:bte,thetav:wte,thickapprox:xte,thicksim:Ste,ThickSpace:_te,ThinSpace:kte,thinsp:Tte,thkap:Cte,thksim:Ete,THORN:Lte,thorn:Ate,tilde:Mte,Tilde:Nte,TildeEqual:$te,TildeFullEqual:Pte,TildeTilde:Ote,timesbar:Rte,timesb:Dte,times:zte,timesd:Ite,tint:Fte,toea:Hte,topbot:qte,topcir:Bte,top:Wte,Topf:Ute,topf:Vte,topfork:jte,tosa:Gte,tprime:Kte,trade:Xte,TRADE:Yte,triangle:Zte,triangledown:Jte,triangleleft:Qte,trianglelefteq:ene,triangleq:tne,triangleright:nne,trianglerighteq:rne,tridot:ine,trie:one,triminus:sne,TripleDot:lne,triplus:ane,trisb:cne,tritime:une,trpezium:fne,Tscr:dne,tscr:hne,TScy:pne,tscy:gne,TSHcy:vne,tshcy:mne,Tstrok:yne,tstrok:bne,twixt:wne,twoheadleftarrow:xne,twoheadrightarrow:Sne,Uacute:_ne,uacute:kne,uarr:Tne,Uarr:Cne,uArr:Ene,Uarrocir:Lne,Ubrcy:Ane,ubrcy:Mne,Ubreve:Nne,ubreve:$ne,Ucirc:Pne,ucirc:One,Ucy:Rne,ucy:Dne,udarr:zne,Udblac:Ine,udblac:Fne,udhar:Hne,ufisht:qne,Ufr:Bne,ufr:Wne,Ugrave:Une,ugrave:Vne,uHar:jne,uharl:Gne,uharr:Kne,uhblk:Xne,ulcorn:Yne,ulcorner:Zne,ulcrop:Jne,ultri:Qne,Umacr:ere,umacr:tre,uml:nre,UnderBar:rre,UnderBrace:ire,UnderBracket:ore,UnderParenthesis:sre,Union:lre,UnionPlus:are,Uogon:cre,uogon:ure,Uopf:fre,uopf:dre,UpArrowBar:hre,uparrow:pre,UpArrow:gre,Uparrow:vre,UpArrowDownArrow:mre,updownarrow:yre,UpDownArrow:bre,Updownarrow:wre,UpEquilibrium:xre,upharpoonleft:Sre,upharpoonright:_re,uplus:kre,UpperLeftArrow:Tre,UpperRightArrow:Cre,upsi:Ere,Upsi:Lre,upsih:Are,Upsilon:Mre,upsilon:Nre,UpTeeArrow:$re,UpTee:Pre,upuparrows:Ore,urcorn:Rre,urcorner:Dre,urcrop:zre,Uring:Ire,uring:Fre,urtri:Hre,Uscr:qre,uscr:Bre,utdot:Wre,Utilde:Ure,utilde:Vre,utri:jre,utrif:Gre,uuarr:Kre,Uuml:Xre,uuml:Yre,uwangle:Zre,vangrt:Jre,varepsilon:Qre,varkappa:eie,varnothing:tie,varphi:nie,varpi:rie,varpropto:iie,varr:oie,vArr:sie,varrho:lie,varsigma:aie,varsubsetneq:cie,varsubsetneqq:uie,varsupsetneq:fie,varsupsetneqq:die,vartheta:hie,vartriangleleft:pie,vartriangleright:gie,vBar:vie,Vbar:mie,vBarv:yie,Vcy:bie,vcy:wie,vdash:xie,vDash:Sie,Vdash:_ie,VDash:kie,Vdashl:Tie,veebar:Cie,vee:Eie,Vee:Lie,veeeq:Aie,vellip:Mie,verbar:Nie,Verbar:$ie,vert:Pie,Vert:Oie,VerticalBar:Rie,VerticalLine:Die,VerticalSeparator:zie,VerticalTilde:Iie,VeryThinSpace:Fie,Vfr:Hie,vfr:qie,vltri:Bie,vnsub:Wie,vnsup:Uie,Vopf:Vie,vopf:jie,vprop:Gie,vrtri:Kie,Vscr:Xie,vscr:Yie,vsubnE:Zie,vsubne:Jie,vsupnE:Qie,vsupne:eoe,Vvdash:toe,vzigzag:noe,Wcirc:roe,wcirc:ioe,wedbar:ooe,wedge:soe,Wedge:loe,wedgeq:aoe,weierp:coe,Wfr:uoe,wfr:foe,Wopf:doe,wopf:hoe,wp:poe,wr:goe,wreath:voe,Wscr:moe,wscr:yoe,xcap:boe,xcirc:woe,xcup:xoe,xdtri:Soe,Xfr:_oe,xfr:koe,xharr:Toe,xhArr:Coe,Xi:Eoe,xi:Loe,xlarr:Aoe,xlArr:Moe,xmap:Noe,xnis:$oe,xodot:Poe,Xopf:Ooe,xopf:Roe,xoplus:Doe,xotime:zoe,xrarr:Ioe,xrArr:Foe,Xscr:Hoe,xscr:qoe,xsqcup:Boe,xuplus:Woe,xutri:Uoe,xvee:Voe,xwedge:joe,Yacute:Goe,yacute:Koe,YAcy:Xoe,yacy:Yoe,Ycirc:Zoe,ycirc:Joe,Ycy:Qoe,ycy:ese,yen:tse,Yfr:nse,yfr:rse,YIcy:ise,yicy:ose,Yopf:sse,yopf:lse,Yscr:ase,yscr:cse,YUcy:use,yucy:fse,yuml:dse,Yuml:hse,Zacute:pse,zacute:gse,Zcaron:vse,zcaron:mse,Zcy:yse,zcy:bse,Zdot:wse,zdot:xse,zeetrf:Sse,ZeroWidthSpace:_se,Zeta:kse,zeta:Tse,zfr:Cse,Zfr:Ese,ZHcy:Lse,zhcy:Ase,zigrarr:Mse,zopf:Nse,Zopf:$se,Zscr:Pse,zscr:Ose,zwj:Rse,zwnj:Dse},zse="Á",Ise="á",Fse="Â",Hse="â",qse="´",Bse="Æ",Wse="æ",Use="À",Vse="à",jse="&",Gse="&",Kse="Å",Xse="å",Yse="Ã",Zse="ã",Jse="Ä",Qse="ä",ele="¦",tle="Ç",nle="ç",rle="¸",ile="¢",ole="©",sle="©",lle="¤",ale="°",cle="÷",ule="É",fle="é",dle="Ê",hle="ê",ple="È",gle="è",vle="Ð",mle="ð",yle="Ë",ble="ë",wle="½",xle="¼",Sle="¾",_le=">",kle=">",Tle="Í",Cle="í",Ele="Î",Lle="î",Ale="¡",Mle="Ì",Nle="ì",$le="¿",Ple="Ï",Ole="ï",Rle="«",Dle="<",zle="<",Ile="¯",Fle="µ",Hle="·",qle=" ",Ble="¬",Wle="Ñ",Ule="ñ",Vle="Ó",jle="ó",Gle="Ô",Kle="ô",Xle="Ò",Yle="ò",Zle="ª",Jle="º",Qle="Ø",eae="ø",tae="Õ",nae="õ",rae="Ö",iae="ö",oae="¶",sae="±",lae="£",aae='"',cae='"',uae="»",fae="®",dae="®",hae="§",pae="",gae="¹",vae="²",mae="³",yae="ß",bae="Þ",wae="þ",xae="×",Sae="Ú",_ae="ú",kae="Û",Tae="û",Cae="Ù",Eae="ù",Lae="¨",Aae="Ü",Mae="ü",Nae="Ý",$ae="ý",Pae="¥",Oae="ÿ",Rae={Aacute:zse,aacute:Ise,Acirc:Fse,acirc:Hse,acute:qse,AElig:Bse,aelig:Wse,Agrave:Use,agrave:Vse,amp:jse,AMP:Gse,Aring:Kse,aring:Xse,Atilde:Yse,atilde:Zse,Auml:Jse,auml:Qse,brvbar:ele,Ccedil:tle,ccedil:nle,cedil:rle,cent:ile,copy:ole,COPY:sle,curren:lle,deg:ale,divide:cle,Eacute:ule,eacute:fle,Ecirc:dle,ecirc:hle,Egrave:ple,egrave:gle,ETH:vle,eth:mle,Euml:yle,euml:ble,frac12:wle,frac14:xle,frac34:Sle,gt:_le,GT:kle,Iacute:Tle,iacute:Cle,Icirc:Ele,icirc:Lle,iexcl:Ale,Igrave:Mle,igrave:Nle,iquest:$le,Iuml:Ple,iuml:Ole,laquo:Rle,lt:Dle,LT:zle,macr:Ile,micro:Fle,middot:Hle,nbsp:qle,not:Ble,Ntilde:Wle,ntilde:Ule,Oacute:Vle,oacute:jle,Ocirc:Gle,ocirc:Kle,Ograve:Xle,ograve:Yle,ordf:Zle,ordm:Jle,Oslash:Qle,oslash:eae,Otilde:tae,otilde:nae,Ouml:rae,ouml:iae,para:oae,plusmn:sae,pound:lae,quot:aae,QUOT:cae,raquo:uae,reg:fae,REG:dae,sect:hae,shy:pae,sup1:gae,sup2:vae,sup3:mae,szlig:yae,THORN:bae,thorn:wae,times:xae,Uacute:Sae,uacute:_ae,Ucirc:kae,ucirc:Tae,Ugrave:Cae,ugrave:Eae,uml:Lae,Uuml:Aae,uuml:Mae,Yacute:Nae,yacute:$ae,yen:Pae,yuml:Oae},Dae="&",zae="'",Iae=">",Fae="<",Hae='"',Mw={amp:Dae,apos:zae,gt:Iae,lt:Fae,quot:Hae};var Yh={};const qae={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 Bae=Ro&&Ro.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yh,"__esModule",{value:!0});var Fm=Bae(qae),Wae=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Uae(e){return e>=55296&&e<=57343||e>1114111?"�":(e in Fm.default&&(e=Fm.default[e]),Wae(e))}Yh.default=Uae;var Wu=Ro&&Ro.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pi,"__esModule",{value:!0});pi.decodeHTML=pi.decodeHTMLStrict=pi.decodeXML=void 0;var Yd=Wu(Aw),Vae=Wu(Rae),jae=Wu(Mw),Hm=Wu(Yh),Gae=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;pi.decodeXML=Nw(jae.default);pi.decodeHTMLStrict=Nw(Yd.default);function Nw(e){var t=$w(e);return function(r){return String(r).replace(Gae,t)}}var qm=function(e,t){return e<t?1:-1};pi.decodeHTML=function(){for(var e=Object.keys(Vae.default).sort(qm),t=Object.keys(Yd.default).sort(qm),r=0,o=0;r<t.length;r++)e[o]===t[r]?(t[r]+=";?",o++):t[r]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=$w(Yd.default);function f(d){return d.substr(-1)!==";"&&(d+=";"),c(d)}return function(d){return String(d).replace(s,f)}}();function $w(e){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Hm.default(parseInt(r.substr(3),16)):Hm.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}var Zn={},Pw=Ro&&Ro.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zn,"__esModule",{value:!0});Zn.escapeUTF8=Zn.escape=Zn.encodeNonAsciiHTML=Zn.encodeHTML=Zn.encodeXML=void 0;var Kae=Pw(Mw),Ow=Dw(Kae.default),Rw=zw(Ow);Zn.encodeXML=Hw(Ow);var Xae=Pw(Aw),Zh=Dw(Xae.default),Yae=zw(Zh);Zn.encodeHTML=Jae(Zh,Yae);Zn.encodeNonAsciiHTML=Hw(Zh);function Dw(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function zw(e){for(var t=[],r=[],o=0,s=Object.keys(e);o<s.length;o++){var c=s[o];c.length===1?t.push("\\"+c):r.push(c)}t.sort();for(var f=0;f<t.length-1;f++){for(var d=f;d<t.length-1&&t[d].charCodeAt(1)+1===t[d+1].charCodeAt(1);)d+=1;var h=1+d-f;h<3||t.splice(f,h,t[f]+"-"+t[d])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}var Iw=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,Zae=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function Uu(e){return"&#x"+(e.length>1?Zae(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function Jae(e,t){return function(r){return r.replace(t,function(o){return e[o]}).replace(Iw,Uu)}}var Fw=new RegExp(Rw.source+"|"+Iw.source,"g");function Qae(e){return e.replace(Fw,Uu)}Zn.escape=Qae;function ece(e){return e.replace(Rw,Uu)}Zn.escapeUTF8=ece;function Hw(e){return function(t){return t.replace(Fw,function(r){return e[r]||Uu(r)})}}(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=pi,r=Zn;function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=Zn;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=pi;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}})})(Lw);function tce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nce(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 rce(e,t,r){return nce(e.prototype,t),e}function qw(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ice(e))||t){r&&(e=r);var o=0,s=function(){};return{s,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
21
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,f=!1,d;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return c=p.done,p},e:function(p){f=!0,d=p},f:function(){try{!c&&r.return!=null&&r.return()}finally{if(f)throw d}}}}function ice(e,t){if(e){if(typeof e=="string")return Bm(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 Bm(e,t)}}function Bm(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}var oce=Lw,Wm={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:sce()};function sce(){var e={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 bc(0,5).forEach(function(t){bc(0,5).forEach(function(r){bc(0,5).forEach(function(o){return lce(t,r,o,e)})})}),bc(0,23).forEach(function(t){var r=t+232,o=Bw(t*10+8);e[r]="#"+o+o+o}),e}function lce(e,t,r,o){var s=16+e*36+t*6+r,c=e>0?e*40+55:0,f=t>0?t*40+55:0,d=r>0?r*40+55:0;o[s]=ace([c,f,d])}function Bw(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function ace(e){var t=[],r=qw(e),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;t.push(Bw(s))}}catch(c){r.e(c)}finally{r.f()}return"#"+t.join("")}function Um(e,t,r,o){var s;return t==="text"?s=dce(r,o):t==="display"?s=uce(e,r,o):t==="xterm256Foreground"?s=Oc(e,o.colors[r]):t==="xterm256Background"?s=Rc(e,o.colors[r]):t==="rgb"&&(s=cce(e,r)),s}function cce(e,t){t=t.substring(2).slice(0,-1);var r=+t.substr(0,2),o=t.substring(5).split(";"),s=o.map(function(c){return("0"+Number(c).toString(16)).substr(-2)}).join("");return Pc(e,(r===38?"color:#":"background-color:#")+s)}function uce(e,t,r){t=parseInt(t,10);var o={"-1":function(){return"<br/>"},0:function(){return e.length&&Ww(e)},1:function(){return ji(e,"b")},3:function(){return ji(e,"i")},4:function(){return ji(e,"u")},8:function(){return Pc(e,"display:none")},9:function(){return ji(e,"strike")},22:function(){return Pc(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return jm(e,"i")},24:function(){return jm(e,"u")},39:function(){return Oc(e,r.fg)},49:function(){return Rc(e,r.bg)},53:function(){return Pc(e,"text-decoration:overline")}},s;return o[t]?s=o[t]():4<t&&t<7?s=ji(e,"blink"):29<t&&t<38?s=Oc(e,r.colors[t-30]):39<t&&t<48?s=Rc(e,r.colors[t-40]):89<t&&t<98?s=Oc(e,r.colors[8+(t-90)]):99<t&&t<108&&(s=Rc(e,r.colors[8+(t-100)])),s}function Ww(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(r){return"</"+r+">"}).join("")}function bc(e,t){for(var r=[],o=e;o<=t;o++)r.push(o);return r}function fce(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function Vm(e){e=parseInt(e,10);var t=null;return e===0?t="all":e===1?t="bold":2<e&&e<5?t="underline":4<e&&e<7?t="blink":e===8?t="hide":e===9?t="strike":29<e&&e<38||e===39||89<e&&e<98?t="foreground-color":(39<e&&e<48||e===49||99<e&&e<108)&&(t="background-color"),t}function dce(e,t){return t.escapeXML?oce.encodeXML(e):e}function ji(e,t,r){return r||(r=""),e.push(t),"<".concat(t).concat(r?' style="'.concat(r,'"'):"",">")}function Pc(e,t){return ji(e,"span",t)}function Oc(e,t){return ji(e,"span","color:"+t)}function Rc(e,t){return ji(e,"span","background-color:"+t)}function jm(e,t){var r;if(e.slice(-1)[0]===t&&(r=e.pop()),r)return"</"+t+">"}function hce(e,t,r){var o=!1,s=3;function c(){return""}function f(z,G){return r("xterm256Foreground",G),""}function d(z,G){return r("xterm256Background",G),""}function h(z){return t.newline?r("display",-1):r("text",z),""}function p(z,G){o=!0,G.trim().length===0&&(G="0"),G=G.trimRight(";").split(";");var B=qw(G),Z;try{for(B.s();!(Z=B.n()).done;){var ee=Z.value;r("display",ee)}}catch(U){B.e(U)}finally{B.f()}return""}function v(z){return r("text",z),""}function m(z){return r("rgb",z),""}var b=[{pattern:/^\x08+/,sub:c},{pattern:/^\x1b\[[012]?K/,sub:c},{pattern:/^\x1b\[\(B/,sub:c},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:m},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{pattern:/^\x1b\[48;5;(\d+)m/,sub:d},{pattern:/^\n/,sub:h},{pattern:/^\r+\n/,sub:h},{pattern:/^\r/,sub:h},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:p},{pattern:/^\x1b\[\d?J/,sub:c},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:c},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:c},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function w(z,G){G>s&&o||(o=!1,e=e.replace(z.pattern,z.sub))}var E=[],M=e,L=M.length;e:for(;L>0;){for(var N=0,C=0,$=b.length;C<$;N=++C){var A=b[N];if(w(A,N),e.length!==L){L=e.length;continue e}}if(e.length===L)break;E.push(0),L=e.length}return E}function pce(e,t,r){return t!=="text"&&(e=e.filter(fce(Vm(r))),e.push({token:t,data:r,category:Vm(r)})),e}var gce=function(){function e(t){tce(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},Wm.colors,t.colors)),this.options=Object.assign({},Wm,t),this.stack=[],this.stickyStack=[]}return rce(e,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var s=this.stack,c=this.options,f=[];return this.stickyStack.forEach(function(d){var h=Um(s,d.token,d.data,c);h&&f.push(h)}),hce(r.join(""),c,function(d,h){var p=Um(s,d,h,c);p&&f.push(p),c.stream&&(o.stickyStack=pce(o.stickyStack,d,h))}),s.length&&f.push(Ww(s)),f.join("")}}]),e}(),vce=gce;const mce=Ew(vce);function yce(e,t){return t&&e.endsWith(t)}async function Uw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Jh(e){return new mce({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function bce(e){return e===null||typeof e!="function"&&typeof e!="object"}function Vw(e){let t=e;if(bce(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=mA(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}var Jn=Uint8Array,ys=Uint16Array,wce=Int32Array,jw=new Jn([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]),Gw=new Jn([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]),xce=new Jn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Kw=function(e,t){for(var r=new ys(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new wce(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},Xw=Kw(jw,2),Yw=Xw.b,Sce=Xw.r;Yw[28]=258,Sce[258]=28;var _ce=Kw(Gw,0),kce=_ce.b,Zd=new ys(32768);for(var Ct=0;Ct<32768;++Ct){var Di=(Ct&43690)>>1|(Ct&21845)<<1;Di=(Di&52428)>>2|(Di&13107)<<2,Di=(Di&61680)>>4|(Di&3855)<<4,Zd[Ct]=((Di&65280)>>8|(Di&255)<<8)>>1}var Hl=function(e,t,r){for(var o=e.length,s=0,c=new ys(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new ys(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new ys(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],m=f[e[s]-1]++<<v,b=m|(1<<v)-1;m<=b;++m)d[Zd[m]>>h]=p}else for(d=new ys(o),s=0;s<o;++s)e[s]&&(d[s]=Zd[f[e[s]-1]++]>>15-e[s]);return d},ka=new Jn(288);for(var Ct=0;Ct<144;++Ct)ka[Ct]=8;for(var Ct=144;Ct<256;++Ct)ka[Ct]=9;for(var Ct=256;Ct<280;++Ct)ka[Ct]=7;for(var Ct=280;Ct<288;++Ct)ka[Ct]=8;var Zw=new Jn(32);for(var Ct=0;Ct<32;++Ct)Zw[Ct]=5;var Tce=Hl(ka,9,1),Cce=Hl(Zw,5,1),ad=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},mr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},cd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Ece=function(e){return(e+7)/8|0},Jw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Jn(e.subarray(t,r))},Lce=["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"],Fn=function(e,t,r){var o=new Error(t||Lce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Fn),!r)throw o;return o},Qh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new Jn(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new Jn(s*3));var p=function(Ae){var D=r.length;if(Ae>D){var q=new Jn(Math.max(D*2,Ae));q.set(r),r=q}},v=t.f||0,m=t.p||0,b=t.b||0,w=t.l,E=t.d,M=t.m,L=t.n,N=s*8;do{if(!w){v=mr(e,m,1);var C=mr(e,m+1,3);if(m+=3,C)if(C==1)w=Tce,E=Cce,M=9,L=5;else if(C==2){var G=mr(e,m,31)+257,B=mr(e,m+10,15)+4,Z=G+mr(e,m+5,31)+1;m+=14;for(var ee=new Jn(Z),U=new Jn(19),te=0;te<B;++te)U[xce[te]]=mr(e,m+te*3,7);m+=B*3;for(var J=ad(U),H=(1<<J)-1,I=Hl(U,J,1),te=0;te<Z;){var k=I[mr(e,m,H)];m+=k&15;var $=k>>4;if($<16)ee[te++]=$;else{var W=0,V=0;for($==16?(V=3+mr(e,m,3),m+=2,W=ee[te-1]):$==17?(V=3+mr(e,m,7),m+=3):$==18&&(V=11+mr(e,m,127),m+=7);V--;)ee[te++]=W}}var ie=ee.subarray(0,G),ye=ee.subarray(G);M=ad(ie),L=ad(ye),w=Hl(ie,M,1),E=Hl(ye,L,1)}else Fn(1);else{var $=Ece(m)+4,A=e[$-4]|e[$-3]<<8,z=$+A;if(z>s){h&&Fn(0);break}d&&p(b+A),r.set(e.subarray($,z),b),t.b=b+=A,t.p=m=z*8,t.f=v;continue}if(m>N){h&&Fn(0);break}}d&&p(b+131072);for(var Ne=(1<<M)-1,We=(1<<L)-1,Ve=m;;Ve=m){var W=w[cd(e,m)&Ne],nt=W>>4;if(m+=W&15,m>N){h&&Fn(0);break}if(W||Fn(2),nt<256)r[b++]=nt;else if(nt==256){Ve=m,w=null;break}else{var et=nt-254;if(nt>264){var te=nt-257,Xe=jw[te];et=mr(e,m,(1<<Xe)-1)+Yw[te],m+=Xe}var Le=E[cd(e,m)&We],Y=Le>>4;Le||Fn(3),m+=Le&15;var ye=kce[Y];if(Y>3){var Xe=Gw[Y];ye+=cd(e,m)&(1<<Xe)-1,m+=Xe}if(m>N){h&&Fn(0);break}d&&p(b+131072);var ae=b+et;if(b<ye){var he=c-ye,$e=Math.min(ye,ae);for(he+b<0&&Fn(3);b<$e;++b)r[b]=o[he+b]}for(;b<ae;++b)r[b]=r[b-ye]}}t.l=w,t.p=Ve,t.b=b,t.f=v,w&&(v=1,t.m=M,t.d=E,t.n=L)}while(!v);return b!=r.length&&f?Jw(r,0,b):r.subarray(0,b)},Ace=new Jn(0),Mce=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Fn(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)},Nce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},$ce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Fn(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&Fn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Pce(e,t){return Qh(e,{i:2},t,t)}function Oce(e,t){var r=Mce(e);return r+8>e.length&&Fn(6,"invalid gzip data"),Qh(e.subarray(r,-8),{i:2},new Jn(Nce(e)),t)}function Rce(e,t){return Qh(e.subarray($ce(e,t),-4),{i:2},t,t)}function Dce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Oce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Pce(e,t):Rce(e,t)}var Jd=typeof TextDecoder<"u"&&new TextDecoder,zce=0;try{Jd.decode(Ace,{stream:!0}),zce=1}catch{}var Ice=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:Jw(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 Fce(e,t){var r;if(Jd)return Jd.decode(e);var o=Ice(e),s=o.s,r=o.r;return r.length&&Fn(8),s}const ud=()=>{},dn=()=>Promise.resolve();function Hce(){const e=Qn({state:new Zb,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=Qn(e.state.filesMap),e.state.idMap=Qn(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:dn,onDone:ud,onTaskUpdate:ud,writeFile:dn,rerun:dn,rerunTask:dn,updateSnapshot:dn,resolveSnapshotPath:dn,snapshotSaved:dn,onAfterSuiteRun:dn,onCancel:dn,getCountOfFailedTests:()=>0,sendLog:dn,resolveSnapshotRawPath:dn,readSnapshotFile:dn,saveSnapshotFile:dn,readTestFile:async d=>t.sources[d],removeSnapshotFile:dn,onUnhandledError:ud,saveTestFile:dn,getProvidedContext:()=>({}),getTestFiles:dn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const m=new Uint8Array(await d.arrayBuffer()),b=Fce(Dce(m));t=Wd(b)}else t=Wd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const mt=function(){return kr?Hce():dE(_L,{reactive:(t,r)=>r==="state"?Qn(t):Gr(t),handlers:{onTaskUpdate(t){Ce.resumeRun(t),qu.value="running"},onFinished(t,r){Ce.endRun(),Wi.value=(r||[]).map(Vw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Vu=Gr({}),Co=qe("CONNECTING"),Zt=ke(()=>{const e=eo.value;return e?lr(e):void 0}),Qw=ke(()=>Wh(Zt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function lr(e){const t=mt.state.idMap.get(e);return t||void 0}const qce=ke(()=>Co.value==="OPEN"),fd=ke(()=>Co.value==="CONNECTING");ke(()=>Co.value==="CLOSED");function Bce(){return ep(mt.state.getFiles())}function e1(e){delete e.result;const t=Ce.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,Sa(e)))for(const r of e.tasks)e1(r)}function Wce(e){const t=Ce.nodes;e.forEach(r=>{delete r.result,Wh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,Mn(o)&&(o.collectDuration=void 0))})}function ep(e){return Wce(e),Ce.startRun(),mt.rpc.rerun(e.map(t=>t.filepath),!0)}function Uce(e){return e1(e),Ce.startRun(),mt.rpc.rerunTask(e.id)}const Do=window.__vitest_browser_runner__;window.__vitest_ui_api__=wL;Lt(()=>mt.ws,e=>{Co.value=kr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Co.value="OPEN",mt.state.filesMap.clear();let[t,r,o,s]=await Promise.all([mt.rpc.getFiles(),mt.rpc.getConfig(),mt.rpc.getUnhandledErrors(),mt.rpc.getResolvedProjectNames()]);r.standalone&&(t=(await mt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=Bb(h,d,f);return p.mode="skip",p})),Ce.loadFiles(t,s),mt.state.collectFiles(t),Ce.startRun(),Wi.value=(o||[]).map(Vw),Vu.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Co.value==="CONNECTING"&&(Co.value="CLOSED")},1e3)})},{immediate:!0});const Vce={"text-2xl":""},jce={"text-lg":"",op50:""},Gce=ut({__name:"ConnectionOverlay",setup(e){return(t,r)=>F(qce)?Ke("",!0):(oe(),me("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>F(mt).reconnect&&F(mt).reconnect(...o))},[Q("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:it(F(fd)?"animate-pulse":"")},[Q("div",{text:"5xl",class:it(F(fd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Q("div",Vce,He(F(fd)?"Connecting...":"Disconnected"),1),Q("div",jce," Check your terminal or start a new server with `"+He(F(Do)?`vitest --browser=${F(Do).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Kce=["aria-label","opacity","disabled","hover"],wi=ut({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(oe(),me("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}]])},[mn(t.$slots,"default",{},()=>[Q("span",{class:it(t.icon),ma:"",block:""},null,2)])],10,Kce))}}),Xce={h:"full",flex:"~ col"},Yce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Zce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Jce={class:"pointer-events-none","text-sm":""},Qce={key:0},eue={id:"tester-container",relative:""},tue=["data-scale"],Gm=20,nue=100,rue=ut({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return Ir.value[0]===v[0]&&Ir.value[1]===v[1]}async function o(p){Ir.value=t[p]}const{width:s,height:c}=Gh(),f=ke(()=>{const m=s.value*(vn.details.size/100)*(vn.details.browser/100)-Gm,b=c.value-nue;return{width:m,height:b}}),d=ke(()=>{const[p,v]=Ir.value,{width:m,height:b}=f.value,w=m>p?1:m/p,E=b>v?1:b/v;return Math.min(1,w,E)}),h=ke(()=>{const p=f.value.width,v=Ir.value[0];return`${Math.trunc((p+Gm-v)/2)}px`});return(p,v)=>{const m=wi,b=Kr("tooltip");return oe(),me("div",Xce,[Q("div",Yce,[gt(Pe(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=w=>F(bL)())},null,512),[[Gi,F(vn).navigation<=2],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=Q("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=Q("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),gt(Pe(m,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=w=>F(mL)())},null,512),[[Gi,F(vn).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),gt(Pe(m,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=w=>F(yL)())},null,512),[[Gi,F(vn).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),Q("div",Zce,[gt(Pe(m,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=w=>o("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),gt(Pe(m,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=w=>o("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),gt(Pe(m,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=w=>o("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),Q("span",Jce,[pt(He(F(Ir)[0])+"x"+He(F(Ir)[1])+"px ",1),F(d)<1?(oe(),me("span",Qce,"("+He((F(d)*100).toFixed(0))+"%)",1)):Ke("",!0)])]),Q("div",eue,[Q("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":F(d),style:Qt({"--viewport-width":`${F(Ir)[0]}px`,"--viewport-height":`${F(Ir)[1]}px`,"--tester-transform":`scale(${F(d)})`,"--tester-margin-left":F(h)})}," Select a test to run ",12,tue)])])}}}),iue=Xr(rue,[["__scopeId","data-v-65565204"]]),t1=ut({__name:"Modal",props:Kl({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Au(e,"modelValue"),r=ke(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=ke(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(oe(),me("div",{class:it(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Q("div",{class:it(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),Q("div",{class:it(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[F(r)]]),style:Qt(t.value?{}:{transform:F(o)})},[mn(c.$slots,"default")],6)],2))}}),oue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},sue={"p-4":"",relative:"",border:"base b"},lue={op50:"","font-mono":"","text-sm":""},aue={op50:"","font-mono":"","text-sm":""},cue={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},uue=["src","alt"],fue={key:1},due=ut({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return rw("Escape",()=>{r("close")}),(o,s)=>{const c=wi;return oe(),me("div",oue,[Q("div",sue,[s[1]||(s[1]=Q("p",null,"Screenshot error",-1)),Q("p",lue,He(o.file),1),Q("p",aue,He(o.name),1),Pe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),Q("div",cue,[o.url?(oe(),me("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,uue)):(oe(),me("div",fue," Something was wrong, the image cannot be resolved. "))])])}}}),hue=Xr(due,[["__scopeId","data-v-93900314"]]);function ql(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Ta=RE(),pue=wE(Ta),gue={class:"scrolls scrolls-rounded task-error"},vue=["onClickPassive"],mue=["innerHTML"],yue=ut({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const o=ke(()=>Jh(Ta.value)),s=ke(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=ke(()=>t.error.diff?o.value.toHtml(ql(t.error.diff)):void 0);return(f,d)=>{const h=Kr("tooltip");return oe(),me("div",gue,[Q("pre",null,[Q("b",null,He(f.error.name||f.error.nameStr),1),pt(": "+He(f.error.message),1)]),(oe(!0),me(ct,null,gi(f.error.stacks,(p,v)=>(oe(),me("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Q("pre",null," - "+He(r(p.file))+":"+He(p.line)+":"+He(p.column),1),F(yce)(p.file,f.filename)?gt((oe(),me("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=>F(Uw)(p.file,p.line,p.column)},null,40,vue)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ke("",!0)]))),128)),F(s)?(oe(),me("pre",{key:0,"data-testid":"diff",innerHTML:F(c)},null,8,mue)):Ke("",!0)])}}}),bue=Xr(yue,[["__scopeId","data-v-9dd6eaea"]]),wue={"h-full":"",class:"scrolls"},xue=["id"],Sue={flex:"~ gap-2 items-center"},_ue={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},kue=["innerHTML"],Tue={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Cue=ut({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(b,w){var E;return((E=b.result)==null?void 0:E.state)!=="fail"?[]:b.type==="test"?[{...b,level:w}]:[{...b,level:w},...b.tasks.flatMap(M=>r(M,w+1))]}function o(b,w){var L,N,C;let E="";(L=w.message)!=null&&L.includes("\x1B")&&(E=`<b>${w.nameStr||w.name}</b>: ${b.toHtml(ql(w.message))}`);const M=(N=w.stackStr)==null?void 0:N.includes("\x1B");return(M||(C=w.stack)!=null&&C.includes("\x1B"))&&(E.length>0?E+=b.toHtml(ql(M?w.stackStr:w.stack)):E=`<b>${w.nameStr||w.name}</b>: ${w.message}${b.toHtml(ql(M?w.stackStr:w.stack))}`),E.length>0?E:null}function s(b,w){const E=Jh(b);return w.map(M=>{var C;const L=M.result;if(!L)return M;const N=(C=L.errors)==null?void 0:C.map($=>o(E,$)).filter($=>$!=null).join("<br><br>");return N!=null&&N.length&&(L.htmlError=N),M})}const c=ke(()=>{var L,N;const b=t.file,w=((L=b==null?void 0:b.tasks)==null?void 0:L.flatMap(C=>r(C,0)))??[],E=b==null?void 0:b.result;if((N=E==null?void 0:E.errors)==null?void 0:N[0]){const C={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:E};w.unshift(C)}return w.length>0?s(Ta.value,w):w});function f(b){var E;const w=(E=b.meta)==null?void 0:E.failScreenshotPath;w&&fetch(`/__open-in-editor?file=${encodeURIComponent(w)}`)}const d=qe(!1),h=qe(Date.now()),p=qe(),v=ke(()=>{var E;const b=(E=p.value)==null?void 0:E.meta.failScreenshotPath,w=h.value;return b?`/__screenshot-error?file=${encodeURIComponent(b)}&t=${w}`:void 0});function m(b){p.value=b,h.value=Date.now(),d.value=!0}return Lt(()=>[bw.value],([b])=>{if(b!=null){const w=document.querySelector(`[id='${b}'`);w!=null&&Ot(()=>{w.scrollIntoView()})}},{flush:"post"}),(b,w)=>{const E=wi,M=bue,L=hue,N=t1,C=Kr("tooltip");return oe(),me("div",wue,[F(c).length?(oe(!0),me(ct,{key:0},gi(F(c),$=>{var A,z,G,B;return oe(),me("div",{id:$.id,key:$.id},[Q("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Qt({"margin-left":`${(A=$.result)!=null&&A.htmlError?.5:2*$.level+.5}rem`})},[Q("div",Sue,[Q("span",null,He($.name),1),F(Do)&&((z=$.meta)!=null&&z.failScreenshotPath)?(oe(),me(ct,{key:0},[gt(Pe(E,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:Z=>m($)},null,8,["onClick"]),[[C,"View screenshot error",void 0,{bottom:!0}]]),gt(Pe(E,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:Z=>f($)},null,8,["onClick"]),[[C,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ke("",!0)]),(G=$.result)!=null&&G.htmlError?(oe(),me("div",_ue,[Q("pre",{innerHTML:$.result.htmlError},null,8,kue)])):(B=$.result)!=null&&B.errors?(oe(!0),me(ct,{key:1},gi($.result.errors,(Z,ee)=>{var U;return oe(),tt(M,{key:ee,error:Z,filename:(U=b.file)==null?void 0:U.name,root:F(Vu).root},null,8,["error","filename","root"])}),128)):Ke("",!0)],4)],8,xue)}),128)):(oe(),me("div",Tue," All tests passed in this file ")),F(Do)?(oe(),tt(N,{key:2,modelValue:F(d),"onUpdate:modelValue":w[1]||(w[1]=$=>kt(d)?d.value=$:null),direction:"right"},{default:rt(()=>[F(p)?(oe(),tt(Zy,{key:0},{default:rt(()=>[Pe(L,{file:F(p).file.filepath,name:F(p).name,url:F(v),onClose:w[0]||(w[0]=$=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Ke("",!0)]),_:1},8,["modelValue"])):Ke("",!0)])}}}),Eue=Xr(Cue,[["__scopeId","data-v-363718dc"]]),Lue={border:"b base","p-4":""},Aue=["innerHTML"],Mue=ut({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(oe(),me("div",Lue,[Q("div",{"text-xs":"","mb-1":"",class:it(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},He(t(r.time))+" | "+He(r.taskName)+" | "+He(r.type),3),Q("pre",{"data-type":"html",innerHTML:r.content},null,8,Aue)]))}}),Nue={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},$ue={key:1,p6:""},Pue=ut({__name:"ViewConsoleOutput",setup(e){const t=ke(()=>{const o=Qw.value;if(o){const s=Jh(Ta.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(ql(h))}))}});function r(o){const s=o&&mt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?JC(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=Mue;return(f=F(t))!=null&&f.length?(oe(),me("div",Nue,[(oe(!0),me(ct,null,gi(F(t),({taskId:d,type:h,time:p,content:v})=>(oe(),me("div",{key:d,"font-mono":""},[Pe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(oe(),me("p",$ue,s[0]||(s[0]=[pt(" Log something in your test and it would print here. (e.g. "),Q("pre",{inline:""},"console.log(foo)",-1),pt(") ")])))}}});var dd={exports:{}},Km;function Bs(){return Km||(Km=1,function(e,t){(function(r,o){e.exports=o()})(Ro,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],E=/Opera\//.test(r),M=/Apple Computer/.test(navigator.vendor),L=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),N=/PhantomJS/.test(r),C=M&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),$=/Android/.test(r),A=C||$||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),z=C||/Mac/.test(o),G=/\bCrOS\b/.test(r),B=/win/i.test(o),Z=E&&r.match(/Version\/(\d*\.\d*)/);Z&&(Z=Number(Z[1])),Z&&Z>=15&&(E=!1,v=!0);var ee=z&&(m||E&&(Z==null||Z<12.11)),U=s||h&&p>=9;function te(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var J=function(n,i){var a=n.className,l=te(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function H(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function I(n,i){return H(n).appendChild(i)}function k(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function W(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var V;document.createRange?V=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:V=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function ie(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function ye(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Ne(n,i){var a=n.className;te(i).test(a)||(n.className+=(a?" ":"")+i)}function We(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!te(a[l]).test(i)&&(i+=" "+a[l]);return i}var Ve=function(n){n.select()};C?Ve=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(Ve=function(n){try{n.select()}catch{}});function nt(n){return n.display.wrapper.ownerDocument}function et(n){return Xe(n.display.wrapper)}function Xe(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Le(n){return nt(n).defaultView}function Y(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function ae(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function he(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var x=n.indexOf(" ",g);if(x<0||x>=i)return y+(i-g);y+=x-g,y+=a-y%a,g=x+1}}var $e=function(){this.id=null,this.f=null,this.time=0,this.handler=Y(this.onTimeout,this)};$e.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},$e.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function Ae(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var D=50,q={toString:function(){return"CodeMirror.Pass"}},X={scroll:!1},le={origin:"*mouse"},fe={origin:"+move"};function ce(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var Se=[""];function xe(n){for(;Se.length<=n;)Se.push(de(Se)+" ");return Se[n]}function de(n){return n[n.length-1]}function pe(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function Be(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Ee(){}function De(n,i){var a;return Object.create?a=Object.create(n):(Ee.prototype=n,a=new Ee),i&&ae(i,a),a}var Ue=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Qe(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Ue.test(n))}function ot(n,i){return i?i.source.indexOf("\\w")>-1&&Qe(n)?!0:i.test(n):Qe(n)}function lt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var At=/[\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&&At.test(n)}function Ut(n,i,a){for(;(a<0?i>0:i<n.length)&&st(n.charAt(i));)i+=a;return i}function It(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function Pn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var Nr=null;function Dt(n,i,a){var l;Nr=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:Nr=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Nr=u)}return l??Nr}var On=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(_){return _<=247?n.charAt(_):1424<=_&&_<=1524?"R":1536<=_&&_<=1785?i.charAt(_-1536):1774<=_&&_<=2220?"r":8192<=_&&_<=8203?"w":_==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function S(_,P,R){this.level=_,this.from=P,this.to=R}return function(_,P){var R=P=="ltr"?"L":"R";if(_.length==0||P=="ltr"&&!l.test(_))return!1;for(var K=_.length,j=[],re=0;re<K;++re)j.push(a(_.charCodeAt(re)));for(var ue=0,ve=R;ue<K;++ue){var be=j[ue];be=="m"?j[ue]=ve:ve=be}for(var Te=0,we=R;Te<K;++Te){var Me=j[Te];Me=="1"&&we=="r"?j[Te]="n":g.test(Me)&&(we=Me,Me=="r"&&(j[Te]="R"))}for(var Ie=1,Re=j[0];Ie<K-1;++Ie){var Ye=j[Ie];Ye=="+"&&Re=="1"&&j[Ie+1]=="1"?j[Ie]="1":Ye==","&&Re==j[Ie+1]&&(Re=="1"||Re=="n")&&(j[Ie]=Re),Re=Ye}for(var xt=0;xt<K;++xt){var Xt=j[xt];if(Xt==",")j[xt]="N";else if(Xt=="%"){var Et=void 0;for(Et=xt+1;Et<K&&j[Et]=="%";++Et);for(var zn=xt&&j[xt-1]=="!"||Et<K&&j[Et]=="1"?"1":"N",Sn=xt;Sn<Et;++Sn)j[Sn]=zn;xt=Et-1}}for(var Ft=0,_n=R;Ft<K;++Ft){var tn=j[Ft];_n=="L"&&tn=="1"?j[Ft]="L":g.test(tn)&&(_n=tn)}for(var Wt=0;Wt<K;++Wt)if(u.test(j[Wt])){var Ht=void 0;for(Ht=Wt+1;Ht<K&&u.test(j[Ht]);++Ht);for(var Pt=(Wt?j[Wt-1]:R)=="L",kn=(Ht<K?j[Ht]:R)=="L",us=Pt==kn?Pt?"L":"R":R,Pi=Wt;Pi<Ht;++Pi)j[Pi]=us;Wt=Ht-1}for(var ln=[],Dr,Yt=0;Yt<K;)if(y.test(j[Yt])){var Vf=Yt;for(++Yt;Yt<K&&y.test(j[Yt]);++Yt);ln.push(new S(0,Vf,Yt))}else{var ii=Yt,vo=ln.length,mo=P=="rtl"?1:0;for(++Yt;Yt<K&&j[Yt]!="L";++Yt);for(var fn=ii;fn<Yt;)if(x.test(j[fn])){ii<fn&&(ln.splice(vo,0,new S(1,ii,fn)),vo+=mo);var fs=fn;for(++fn;fn<Yt&&x.test(j[fn]);++fn);ln.splice(vo,0,new S(2,fs,fn)),vo+=mo,ii=fn}else++fn;ii<Yt&&ln.splice(vo,0,new S(1,ii,Yt))}return P=="ltr"&&(ln[0].level==1&&(Dr=_.match(/^\s+/))&&(ln[0].from=Dr[0].length,ln.unshift(new S(0,0,Dr[0].length))),de(ln).level==1&&(Dr=_.match(/\s+$/))&&(de(ln).to-=Dr[0].length,ln.push(new S(0,K-Dr[0].length,K)))),P=="rtl"?ln.reverse():ln}}();function Je(n,i){var a=n.order;return a==null&&(a=n.order=On(n.text,i)),a}var Aa=[],ze=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||Aa).concat(a)}};function Zr(n,i){return n._handlers&&n._handlers[i]||Aa}function rn(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=Ae(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Mt(n,i){var a=Zr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Nt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Mt(n,a||i.type,n,i),yn(i)||i.codemirrorIgnore}function nr(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)Ae(a,i[l])==-1&&a.push(i[l])}function Rn(n,i){return Zr(n,i).length>0}function ar(n){n.prototype.on=function(i,a){ze(this,i,a)},n.prototype.off=function(i,a){rn(this,i,a)}}function on(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Fo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function yn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function xi(n){on(n),Fo(n)}function Ws(n){return n.target||n.srcElement}function cr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),z&&n.ctrlKey&&i==1&&(i=3),i}var Zu=function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),Ho;function Ma(n){if(Ho==null){var i=k("span","");I(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Ho=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Ho?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Us;function Si(n){if(Us!=null)return Us;var i=I(n,document.createTextNode("AخA")),a=V(i,0,1).getBoundingClientRect(),l=V(i,1,2).getBoundingClientRect();return H(n),!a||a.left==a.right?!1:Us=l.right-a.right<3}var rr=`
|
|
22
|
-
|
|
23
|
-
b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
|
|
24
|
-
`,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=g.indexOf("\r");y!=-1?(a.push(g.slice(0,y)),i+=y+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},_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},Na=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),ur=null;function Ju(n){if(ur!=null)return ur;var i=I(n,k("span","x")),a=i.getBoundingClientRect(),l=V(i,0,1).getBoundingClientRect();return ur=Math.abs(a.left-l.left)>1}var qo={},fr={};function dr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),qo[n]=i}function so(n,i){fr[n]=i}function Bo(n){if(typeof n=="string"&&fr.hasOwnProperty(n))n=fr[n];else if(n&&typeof n.name=="string"&&fr.hasOwnProperty(n.name)){var i=fr[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 Bo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Bo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Wo(n,i){i=Bo(i);var a=qo[i.name];if(!a)return Wo(n,"text/plain");var l=a(n,i);if(ki.hasOwnProperty(i.name)){var u=ki[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var ki={};function Uo(n,i){var a=ki.hasOwnProperty(n)?ki[n]:ki[n]={};ae(i,a)}function $r(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function Vs(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function Vo(n,i,a){return n.startState?n.startState(i,a):!0}var $t=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$t.prototype.eat=function(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},$t.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},$t.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},$t.prototype.backUp=function(n){this.pos-=n},$t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=he(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return he(this.string,null,this.tabSize)-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},$t.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(y){return a?y.toLowerCase():y},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},$t.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},$t.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Oe(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function Jr(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var y=g.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function js(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function jn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function T(n){if(n.parent==null)return null;for(var i=n.parent,a=Ae(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function O(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var x=n.lines[y],S=x.height;if(i<S)break;i-=S}return a+y}function se(n,i){return i>=n.first&&i<n.first+n.size}function ge(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function ne(n,i,a){if(a===void 0&&(a=null),!(this instanceof ne))return new ne(n,i,a);this.line=n,this.ch=i,this.sticky=a}function _e(n,i){return n.line-i.line||n.ch-i.ch}function ft(n,i){return n.sticky==i.sticky&&_e(n,i)==0}function Vt(n){return ne(n.line,n.ch)}function bn(n,i){return _e(n,i)<0?i:n}function jo(n,i){return _e(n,i)<0?n:i}function vp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ge(n,i){if(i.line<n.first)return ne(n.first,0);var a=n.first+n.size-1;return i.line>a?ne(a,Oe(n,a).text.length):ox(i,Oe(n,i.line).text.length)}function ox(n,i){var a=n.ch;return a==null||a>i?ne(n.line,i):a<0?ne(n.line,0):n}function mp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ge(n,i[l]);return a}var $a=function(n,i){this.state=n,this.lookAhead=i},Pr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Pr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Pr.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}},Pr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pr.fromSaved=function(n,i,a){return i instanceof $a?new Pr(n,$r(n.mode,i.state),a,i.lookAhead):new Pr(n,$r(n.mode,i),a)},Pr.prototype.save=function(n){var i=n!==!1?$r(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new $a(i,this.maxLookAhead):i};function yp(n,i,a,l){var u=[n.state.modeGen],g={};kp(n,i.text,n.doc.mode,a,function(_,P){return u.push(_,P)},g,l);for(var y=a.state,x=function(_){a.baseTokens=u;var P=n.state.overlays[_],R=1,K=0;a.state=!0,kp(n,i.text,P.mode,a,function(j,re){for(var ue=R;K<j;){var ve=u[R];ve>j&&u.splice(R,1,j,u[R+1],ve),R+=2,K=Math.min(j,ve)}if(re)if(P.opaque)u.splice(ue,R-ue,j,"overlay "+re),R=ue+2;else for(;ue<R;ue+=2){var be=u[ue+1];u[ue+1]=(be?be+" ":"")+"overlay "+re}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},S=0;S<n.state.overlays.length;++S)x(S);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function bp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=Gs(n,T(i)),u=i.text.length>n.options.maxHighlightLength&&$r(n.doc.mode,l.state),g=yp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function Gs(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Pr(l,!0,i);var g=sx(n,i,a),y=g>l.first&&Oe(l,g-1).stateAfter,x=y?Pr.fromSaved(l,y,g):new Pr(l,Vo(l.mode),g);return l.iter(g,i,function(S){Qu(n,S.text,x);var _=x.line;S.stateAfter=_==i-1||_%5==0||_>=u.viewFrom&&_<u.viewTo?x.save():null,x.nextLine()}),a&&(l.modeFrontier=x.line),x}function Qu(n,i,a,l){var u=n.doc.mode,g=new $t(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&wp(u,a.state);!g.eol();)ef(u,g,a.state),g.start=g.pos}function wp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Vs(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function ef(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Vs(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var xp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function Sp(n,i,a,l){var u=n.doc,g=u.mode,y;i=Ge(u,i);var x=Oe(u,i.line),S=Gs(n,i.line,a),_=new $t(x.text,n.options.tabSize,S),P;for(l&&(P=[]);(l||_.pos<i.ch)&&!_.eol();)_.start=_.pos,y=ef(g,_,S.state),l&&P.push(new xp(_,y,$r(u.mode,S.state)));return l?P:new xp(_,y,S.state)}function _p(n,i){if(n)for(;;){var a=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;n=n.slice(0,a.index)+n.slice(a.index+a[0].length);var l=a[1]?"bgClass":"textClass";i[l]==null?i[l]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+a[2])}return n}function kp(n,i,a,l,u,g,y){var x=a.flattenSpans;x==null&&(x=n.options.flattenSpans);var S=0,_=null,P=new $t(i,n.options.tabSize,l),R,K=n.options.addModeClass&&[null];for(i==""&&_p(wp(a,l.state),g);!P.eol();){if(P.pos>n.options.maxHighlightLength?(x=!1,y&&Qu(n,i,l,P.pos),P.pos=i.length,R=null):R=_p(ef(a,P,l.state,K),g),K){var j=K[0].name;j&&(R="m-"+(R?j+" "+R:j))}if(!x||_!=R){for(;S<P.start;)S=Math.min(P.start,S+5e3),u(S,_);_=R}P.start=P.pos}for(;S<P.pos;){var re=Math.min(P.pos,S+5e3);u(re,_),S=re}}function sx(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),x=i;x>y;--x){if(x<=g.first)return g.first;var S=Oe(g,x-1),_=S.stateAfter;if(_&&(!a||x+(_ instanceof $a?_.lookAhead:0)<=g.modeFrontier))return x;var P=he(S.text,null,n.options.tabSize);(u==null||l>P)&&(u=x-1,l=P)}return u}function lx(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=Oe(n,l).stateAfter;if(u&&(!(u instanceof $a)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var Tp=!1,Qr=!1;function ax(){Tp=!0}function cx(){Qr=!0}function Pa(n,i,a){this.marker=n,this.from=i,this.to=a}function Ks(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function ux(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function fx(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function dx(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(x||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var S=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Pa(y,g.from,S?null:g.to))}}return l}function hx(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(x||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var S=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Pa(y,S?null:g.from-i,g.to==null?null:g.to-i))}}return l}function tf(n,i){if(i.full)return null;var a=se(n,i.from.line)&&Oe(n,i.from.line).markedSpans,l=se(n,i.to.line)&&Oe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=_e(i.from,i.to)==0,x=dx(a,u,y),S=hx(l,g,y),_=i.text.length==1,P=de(i.text).length+(_?u:0);if(x)for(var R=0;R<x.length;++R){var K=x[R];if(K.to==null){var j=Ks(S,K.marker);j?_&&(K.to=j.to==null?null:j.to+P):K.to=u}}if(S)for(var re=0;re<S.length;++re){var ue=S[re];if(ue.to!=null&&(ue.to+=P),ue.from==null){var ve=Ks(x,ue.marker);ve||(ue.from=P,_&&(x||(x=[])).push(ue))}else ue.from+=P,_&&(x||(x=[])).push(ue)}x&&(x=Cp(x)),S&&S!=x&&(S=Cp(S));var be=[x];if(!_){var Te=i.text.length-2,we;if(Te>0&&x)for(var Me=0;Me<x.length;++Me)x[Me].to==null&&(we||(we=[])).push(new Pa(x[Me].marker,null,null));for(var Ie=0;Ie<Te;++Ie)be.push(we);be.push(S)}return be}function Cp(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function px(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(j){if(j.markedSpans)for(var re=0;re<j.markedSpans.length;++re){var ue=j.markedSpans[re].marker;ue.readOnly&&(!l||Ae(l,ue)==-1)&&(l||(l=[])).push(ue)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],x=y.find(0),S=0;S<u.length;++S){var _=u[S];if(!(_e(_.to,x.from)<0||_e(_.from,x.to)>0)){var P=[S,1],R=_e(_.from,x.from),K=_e(_.to,x.to);(R<0||!y.inclusiveLeft&&!R)&&P.push({from:_.from,to:x.from}),(K>0||!y.inclusiveRight&&!K)&&P.push({from:x.to,to:_.to}),u.splice.apply(u,P),S+=P.length-3}}return u}function Ep(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function Lp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Oa(n){return n.inclusiveLeft?-1:0}function Ra(n){return n.inclusiveRight?1:0}function nf(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=_e(l.from,u.from)||Oa(n)-Oa(i);if(g)return-g;var y=_e(l.to,u.to)||Ra(n)-Ra(i);return y||i.id-n.id}function Ap(n,i){var a=Qr&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||nf(l,u.marker)<0)&&(l=u.marker);return l}function Mp(n){return Ap(n,!0)}function Da(n){return Ap(n,!1)}function gx(n,i){var a=Qr&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||nf(l,g.marker)<0)&&(l=g.marker)}return l}function Np(n,i,a,l,u){var g=Oe(n,i),y=Qr&&g.markedSpans;if(y)for(var x=0;x<y.length;++x){var S=y[x];if(S.marker.collapsed){var _=S.marker.find(0),P=_e(_.from,a)||Oa(S.marker)-Oa(u),R=_e(_.to,l)||Ra(S.marker)-Ra(u);if(!(P>=0&&R<=0||P<=0&&R>=0)&&(P<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?_e(_.to,a)>=0:_e(_.to,a)>0)||P>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?_e(_.from,l)<=0:_e(_.from,l)<0)))return!0}}}function hr(n){for(var i;i=Mp(n);)n=i.find(-1,!0).line;return n}function vx(n){for(var i;i=Da(n);)n=i.find(1,!0).line;return n}function mx(n){for(var i,a;i=Da(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function rf(n,i){var a=Oe(n,i),l=hr(a);return a==l?i:T(l)}function $p(n,i){if(i>n.lastLine())return i;var a=Oe(n,i),l;if(!Ti(n,a))return i;for(;l=Da(a);)a=l.find(1,!0).line;return T(a)+1}function Ti(n,i){var a=Qr&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&of(n,i,l))return!0}}}function of(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return of(n,l.line,Ks(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&of(n,i,u))return!0}function ei(n){n=hr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var y=0;y<g.children.length;++y){var x=g.children[y];if(x==a)break;i+=x.height}return i}function za(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Mp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Da(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function sf(n){var i=n.display,a=n.doc;i.maxLine=Oe(a,a.first),i.maxLineLength=za(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=za(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var Go=function(n,i,a){this.text=n,Lp(this,i),this.height=a?a(this):1};Go.prototype.lineNo=function(){return T(this)},ar(Go);function yx(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Ep(n),Lp(n,a);var u=l?l(n):1;u!=n.height&&jn(n,u)}function bx(n){n.parent=null,Ep(n)}var wx={},xx={};function Pp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?xx:wx;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Op(n,i){var a=W("span",null,null,v?"padding-right: .1px":null),l={pre:W("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=_x,Si(n.display.measure)&&(y=Je(g,n.doc.direction))&&(l.addToken=Tx(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&T(g);Cx(g,l,bp(n,g,x)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=We(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=We(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ma(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var S=l.content.lastChild;(/\bcm-tab\b/.test(S.className)||S.querySelector&&S.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Mt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=We(l.pre.className,l.textClass||"")),l}function Sx(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function _x(n,i,a,l,u,g,y){if(i){var x=n.splitSpaces?kx(i,n.trailingSpace):i,S=n.cm.state.specialChars,_=!1,P;if(!S.test(i))n.col+=i.length,P=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,P),h&&p<9&&(_=!0),n.pos+=i.length;else{P=document.createDocumentFragment();for(var R=0;;){S.lastIndex=R;var K=S.exec(i),j=K?K.index-R:i.length-R;if(j){var re=document.createTextNode(x.slice(R,R+j));h&&p<9?P.appendChild(k("span",[re])):P.appendChild(re),n.map.push(n.pos,n.pos+j,re),n.col+=j,n.pos+=j}if(!K)break;R+=j+1;var ue=void 0;if(K[0]==" "){var ve=n.cm.options.tabSize,be=ve-n.col%ve;ue=P.appendChild(k("span",xe(be),"cm-tab")),ue.setAttribute("role","presentation"),ue.setAttribute("cm-text"," "),n.col+=be}else K[0]=="\r"||K[0]==`
|
|
25
|
-
`?(ue=P.appendChild(k("span",K[0]=="\r"?"␍":"","cm-invalidchar")),ue.setAttribute("cm-text",K[0]),n.col+=1):(ue=n.cm.options.specialCharPlaceholder(K[0]),ue.setAttribute("cm-text",K[0]),h&&p<9?P.appendChild(k("span",[ue])):P.appendChild(ue),n.col+=1);n.map.push(n.pos,n.pos+1,ue),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||_||g||y){var Te=a||"";l&&(Te+=l),u&&(Te+=u);var we=k("span",[P],Te,g);if(y)for(var Me in y)y.hasOwnProperty(Me)&&Me!="style"&&Me!="class"&&we.setAttribute(Me,y[Me]);return n.content.appendChild(we)}n.content.appendChild(P)}}function kx(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var g=n.charAt(u);g==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(g=" "),l+=g,a=g==" "}return l}function Tx(n,i){return function(a,l,u,g,y,x,S){u=u?u+" cm-force-border":"cm-force-border";for(var _=a.pos,P=_+l.length;;){for(var R=void 0,K=0;K<i.length&&(R=i[K],!(R.to>_&&R.from<=_));K++);if(R.to>=P)return n(a,l,u,g,y,x,S);n(a,l.slice(0,R.to-_),u,g,null,x,S),g=null,l=l.slice(R.to-_),_=R.to}}}function Rp(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function Cx(n,i,a){var l=n.markedSpans,u=n.text,g=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(g,g=a[y]),Pp(a[y+1],i.cm.options));return}for(var x=u.length,S=0,_=1,P="",R,K,j=0,re,ue,ve,be,Te;;){if(j==S){re=ue=ve=K="",Te=null,be=null,j=1/0;for(var we=[],Me=void 0,Ie=0;Ie<l.length;++Ie){var Re=l[Ie],Ye=Re.marker;if(Ye.type=="bookmark"&&Re.from==S&&Ye.widgetNode)we.push(Ye);else if(Re.from<=S&&(Re.to==null||Re.to>S||Ye.collapsed&&Re.to==S&&Re.from==S)){if(Re.to!=null&&Re.to!=S&&j>Re.to&&(j=Re.to,ue=""),Ye.className&&(re+=" "+Ye.className),Ye.css&&(K=(K?K+";":"")+Ye.css),Ye.startStyle&&Re.from==S&&(ve+=" "+Ye.startStyle),Ye.endStyle&&Re.to==j&&(Me||(Me=[])).push(Ye.endStyle,Re.to),Ye.title&&((Te||(Te={})).title=Ye.title),Ye.attributes)for(var xt in Ye.attributes)(Te||(Te={}))[xt]=Ye.attributes[xt];Ye.collapsed&&(!be||nf(be.marker,Ye)<0)&&(be=Re)}else Re.from>S&&j>Re.from&&(j=Re.from)}if(Me)for(var Xt=0;Xt<Me.length;Xt+=2)Me[Xt+1]==j&&(ue+=" "+Me[Xt]);if(!be||be.from==S)for(var Et=0;Et<we.length;++Et)Rp(i,0,we[Et]);if(be&&(be.from||0)==S){if(Rp(i,(be.to==null?x+1:be.to)-S,be.marker,be.from==null),be.to==null)return;be.to==S&&(be=!1)}}if(S>=x)break;for(var zn=Math.min(x,j);;){if(P){var Sn=S+P.length;if(!be){var Ft=Sn>zn?P.slice(0,zn-S):P;i.addToken(i,Ft,R?R+re:re,ve,S+Ft.length==j?ue:"",K,Te)}if(Sn>=zn){P=P.slice(zn-S),S=zn;break}S=Sn,ve=""}P=u.slice(g,g=a[_++]),R=Pp(a[_++],i.cm.options)}}}function Dp(n,i,a){this.line=i,this.rest=mx(i),this.size=this.rest?T(de(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Ti(n,i)}function Ia(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new Dp(n.doc,Oe(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Ko=null;function Ex(n){Ko?Ko.ops.push(n):n.ownsGroup=Ko={ops:[n],delayedCallbacks:[]}}function Lx(n){var i=n.delayedCallbacks,a=0;do{for(;a<i.length;a++)i[a].call(null);for(var l=0;l<n.ops.length;l++){var u=n.ops[l];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<i.length)}function Ax(n,i){var a=n.ownsGroup;if(a)try{Lx(a)}finally{Ko=null,i(a)}}var Xs=null;function jt(n,i){var a=Zr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Ko?u=Ko.delayedCallbacks:Xs?u=Xs:(u=Xs=[],setTimeout(Mx,0));for(var g=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function Mx(){var n=Xs;Xs=null;for(var i=0;i<n.length;++i)n[i]()}function zp(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?$x(n,i):g=="gutter"?Fp(n,i,a,l):g=="class"?lf(n,i):g=="widget"&&Px(n,i,l)}i.changes=null}function Ys(n){return n.node==n.text&&(n.node=k("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),h&&p<8&&(n.node.style.zIndex=2)),n.node}function Nx(n,i){var a=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),i.background)a?i.background.className=a:(i.background.parentNode.removeChild(i.background),i.background=null);else if(a){var l=Ys(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Ip(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Op(n,i)}function $x(n,i){var a=i.text.className,l=Ip(n,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,lf(n,i)):a&&(i.text.className=a)}function lf(n,i){Nx(n,i),i.line.wrapClass?Ys(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function Fp(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var u=Ys(i);i.gutterBackground=k("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),u.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(n.options.lineNumbers||g){var y=Ys(i),x=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(x.setAttribute("aria-hidden","true"),n.display.input.setUneditable(x),y.insertBefore(x,i.text),i.line.gutterClass&&(x.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=x.appendChild(k("div",ge(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var S=0;S<n.display.gutterSpecs.length;++S){var _=n.display.gutterSpecs[S].className,P=g.hasOwnProperty(_)&&g[_];P&&x.appendChild(k("div",[P],"CodeMirror-gutter-elt","left: "+l.gutterLeft[_]+"px; width: "+l.gutterWidth[_]+"px"))}}}function Px(n,i,a){i.alignable&&(i.alignable=null);for(var l=te("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Hp(n,i,a)}function Ox(n,i,a,l){var u=Ip(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),lf(n,i),Fp(n,i,a,l),Hp(n,i,l),i.node}function Hp(n,i,a){if(qp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)qp(n,i.rest[l],i,a,!1)}function qp(n,i,a,l,u){if(i.widgets)for(var g=Ys(a),y=0,x=i.widgets;y<x.length;++y){var S=x[y],_=k("div",[S.node],"CodeMirror-linewidget"+(S.className?" "+S.className:""));S.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),Rx(S,_,a,l),n.display.input.setUneditable(_),u&&S.above?g.insertBefore(_,a.gutter||a.text):g.appendChild(_),jt(S,"redraw")}}function Rx(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Zs(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!ie(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),I(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ti(n,i){for(var a=Ws(i);a!=n.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==n.sizer&&a!=n.mover)return!0}function Fa(n){return n.lineSpace.offsetTop}function af(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Bp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=I(n.measure,k("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function Or(n){return D-n.display.nativeBarWidth}function lo(n){return n.display.scroller.clientWidth-Or(n)-n.display.barWidth}function cf(n){return n.display.scroller.clientHeight-Or(n)-n.display.barHeight}function Dx(n,i,a){var l=n.options.lineWrapping,u=l&&lo(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),x=0;x<y.length-1;x++){var S=y[x],_=y[x+1];Math.abs(S.bottom-_.bottom)>2&&g.push((S.bottom+_.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Wp(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var u=0;u<n.rest.length;u++)if(T(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function zx(n,i){i=hr(i);var a=T(i),l=n.display.externalMeasured=new Dp(n.doc,i,a);l.lineN=a;var u=l.built=Op(n,l);return l.text=u.pre,I(n.display.lineMeasure,u.pre),l}function Up(n,i,a,l){return Rr(n,Xo(n,i),a,l)}function uf(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[uo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Xo(n,i){var a=T(i),l=uf(n,a);l&&!l.text?l=null:l&&l.changes&&(zp(n,l,a,gf(n)),n.curOp.forceUpdate=!0),l||(l=zx(n,i));var u=Wp(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Rr(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),y;return i.cache.hasOwnProperty(g)?y=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Dx(n,i.view,i.rect),i.hasHeights=!0),y=Fx(n,i,a,l),y.bogus||(i.cache[g]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var Vp={left:0,right:0,top:0,bottom:0};function jp(n,i,a){for(var l,u,g,y,x,S,_=0;_<n.length;_+=3)if(x=n[_],S=n[_+1],i<x?(u=0,g=1,y="left"):i<S?(u=i-x,g=u+1):(_==n.length-3||i==S&&n[_+3]>i)&&(g=S-x,u=g-1,i>=S&&(y="right")),u!=null){if(l=n[_+2],x==S&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;_&&n[_-2]==n[_-3]&&n[_-1].insertLeft;)l=n[(_-=3)+2],y="left";if(a=="right"&&u==S-x)for(;_<n.length-3&&n[_+3]==n[_+4]&&!n[_+5].insertLeft;)l=n[(_+=3)+2],y="right";break}return{node:l,start:u,end:g,collapse:y,coverStart:x,coverEnd:S}}function Ix(n,i){var a=Vp;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var u=n.length-1;u>=0&&(a=n[u]).left==a.right;u--);return a}function Fx(n,i,a,l){var u=jp(i.map,a,l),g=u.node,y=u.start,x=u.end,S=u.collapse,_;if(g.nodeType==3){for(var P=0;P<4;P++){for(;y&&st(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x<u.coverEnd&&st(i.line.text.charAt(u.coverStart+x));)++x;if(h&&p<9&&y==0&&x==u.coverEnd-u.coverStart?_=g.parentNode.getBoundingClientRect():_=Ix(V(g,y,x).getClientRects(),l),_.left||_.right||y==0)break;x=y,y=y-1,S="right"}h&&p<11&&(_=Hx(n.display.measure,_))}else{y>0&&(S=l="right");var R;n.options.lineWrapping&&(R=g.getClientRects()).length>1?_=R[l=="right"?R.length-1:0]:_=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!_||!_.left&&!_.right)){var K=g.parentNode.getClientRects()[0];K?_={left:K.left,right:K.left+Zo(n.display),top:K.top,bottom:K.bottom}:_=Vp}for(var j=_.top-i.rect.top,re=_.bottom-i.rect.top,ue=(j+re)/2,ve=i.view.measure.heights,be=0;be<ve.length-1&&!(ue<ve[be]);be++);var Te=be?ve[be-1]:0,we=ve[be],Me={left:(S=="right"?_.right:_.left)-i.rect.left,right:(S=="left"?_.left:_.right)-i.rect.left,top:Te,bottom:we};return!_.left&&!_.right&&(Me.bogus=!0),n.options.singleCursorHeightPerLine||(Me.rtop=j,Me.rbottom=re),Me}function Hx(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ju(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*l,bottom:i.bottom*l}}function Gp(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 Kp(n){n.display.externalMeasure=null,H(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Gp(n.display.view[i])}function Js(n){Kp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Xp(n){return b&&$?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Yp(n){return b&&$?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function ff(n){var i=hr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Zs(a[u]));return l}function Ha(n,i,a,l,u){if(!u){var g=ff(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=ei(i);if(l=="local"?y+=Fa(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:Yp(nt(n)));var S=x.left+(l=="window"?0:Xp(nt(n)));a.left+=S,a.right+=S}return a.top+=y,a.bottom+=y,a}function Zp(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Xp(nt(n)),u-=Yp(nt(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function qa(n,i,a,l,u){return l||(l=Oe(n.doc,i.line)),Ha(n,l,Up(n,l,i.ch,u),a)}function pr(n,i,a,l,u,g){l=l||Oe(n.doc,i.line),u||(u=Xo(n,l));function y(re,ue){var ve=Rr(n,u,re,ue?"right":"left",g);return ue?ve.left=ve.right:ve.right=ve.left,Ha(n,l,ve,a)}var x=Je(l,n.doc.direction),S=i.ch,_=i.sticky;if(S>=l.text.length?(S=l.text.length,_="before"):S<=0&&(S=0,_="after"),!x)return y(_=="before"?S-1:S,_=="before");function P(re,ue,ve){var be=x[ue],Te=be.level==1;return y(ve?re-1:re,Te!=ve)}var R=Dt(x,S,_),K=Nr,j=P(S,R,_=="before");return K!=null&&(j.other=P(S,K,_!="before")),j}function Jp(n,i){var a=0;i=Ge(n.doc,i),n.options.lineWrapping||(a=Zo(n.display)*i.ch);var l=Oe(n.doc,i.line),u=ei(l)+Fa(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function df(n,i,a,l,u){var g=ne(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function hf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return df(l.first,0,null,-1,-1);var u=O(l,a),g=l.first+l.size-1;if(u>g)return df(l.first+l.size-1,Oe(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Oe(l,u);;){var x=qx(n,y,u,i,a),S=gx(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!S)return x;var _=S.find(1);if(_.line==u)return _;y=Oe(l,u=_.line)}}function Qp(n,i,a,l){l-=ff(i);var u=i.text.length,g=It(function(y){return Rr(n,a,y-1).bottom<=l},u,0);return u=It(function(y){return Rr(n,a,y).top>l},g,u),{begin:g,end:u}}function eg(n,i,a,l){a||(a=Xo(n,i));var u=Ha(n,i,Rr(n,a,l),"line").top;return Qp(n,i,a,u)}function pf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function qx(n,i,a,l,u){u-=ei(i);var g=Xo(n,i),y=ff(i),x=0,S=i.text.length,_=!0,P=Je(i,n.doc.direction);if(P){var R=(n.options.lineWrapping?Wx:Bx)(n,i,a,g,P,l,u);_=R.level!=1,x=_?R.from:R.to-1,S=_?R.to:R.from-1}var K=null,j=null,re=It(function(Ie){var Re=Rr(n,g,Ie);return Re.top+=y,Re.bottom+=y,pf(Re,l,u,!1)?(Re.top<=u&&Re.left<=l&&(K=Ie,j=Re),!0):!1},x,S),ue,ve,be=!1;if(j){var Te=l-j.left<j.right-l,we=Te==_;re=K+(we?0:1),ve=we?"after":"before",ue=Te?j.left:j.right}else{!_&&(re==S||re==x)&&re++,ve=re==0?"after":re==i.text.length?"before":Rr(n,g,re-(_?1:0)).bottom+y<=u==_?"after":"before";var Me=pr(n,ne(a,re,ve),"line",i,g);ue=Me.left,be=u<Me.top?-1:u>=Me.bottom?1:0}return re=Ut(i.text,re,1),df(a,re,ve,be,l-ue)}function Bx(n,i,a,l,u,g,y){var x=It(function(R){var K=u[R],j=K.level!=1;return pf(pr(n,ne(a,j?K.to:K.from,j?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),S=u[x];if(x>0){var _=S.level!=1,P=pr(n,ne(a,_?S.from:S.to,_?"after":"before"),"line",i,l);pf(P,g,y,!0)&&P.top>y&&(S=u[x-1])}return S}function Wx(n,i,a,l,u,g,y){var x=Qp(n,i,l,y),S=x.begin,_=x.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var P=null,R=null,K=0;K<u.length;K++){var j=u[K];if(!(j.from>=_||j.to<=S)){var re=j.level!=1,ue=Rr(n,l,re?Math.min(_,j.to)-1:Math.max(S,j.from)).right,ve=ue<g?g-ue+1e9:ue-g;(!P||R>ve)&&(P=j,R=ve)}}return P||(P=u[u.length-1]),P.from<S&&(P={from:S,to:P.to,level:P.level}),P.to>_&&(P={from:P.from,to:_,level:P.level}),P}var ao;function Yo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(ao==null){ao=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)ao.appendChild(document.createTextNode("x")),ao.appendChild(k("br"));ao.appendChild(document.createTextNode("x"))}I(n.measure,ao);var a=ao.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),H(n.measure),a||1}function Zo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");I(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function gf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var x=n.display.gutterSpecs[y].className;a[x]=g.offsetLeft+g.clientLeft+u,l[x]=g.clientWidth}return{fixedPos:vf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function vf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function tg(n){var i=Yo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Zo(n.display)-3);return function(u){if(Ti(n.doc,u))return 0;var g=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(g+=u.widgets[y].height);return a?g+(Math.ceil(u.text.length/l)||1)*i:g+i}}function mf(n){var i=n.doc,a=tg(n);i.iter(function(l){var u=a(l);u!=l.height&&jn(l,u)})}function co(n,i,a,l){var u=n.display;if(!a&&Ws(i).getAttribute("cm-not-content")=="true")return null;var g,y,x=u.lineSpace.getBoundingClientRect();try{g=i.clientX-x.left,y=i.clientY-x.top}catch{return null}var S=hf(n,g,y),_;if(l&&S.xRel>0&&(_=Oe(n.doc,S.line).text).length==S.ch){var P=he(_,_.length,n.options.tabSize)-_.length;S=ne(S.line,Math.max(0,Math.round((g-Bp(n.display).left)/Zo(n.display))-P))}return S}function uo(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function wn(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)Qr&&rf(n.doc,i)<u.viewTo&&Ei(n);else if(a<=u.viewFrom)Qr&&$p(n.doc,a+l)>u.viewFrom?Ei(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Ei(n);else if(i<=u.viewFrom){var g=Ba(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):Ei(n)}else if(a>=u.viewTo){var y=Ba(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Ei(n)}else{var x=Ba(n,i,i,-1),S=Ba(n,a,a+l,1);x&&S?(u.view=u.view.slice(0,x.index).concat(Ia(n,x.lineN,S.lineN)).concat(u.view.slice(S.index)),u.viewTo+=l):Ei(n)}var _=u.externalMeasured;_&&(a<_.lineN?_.lineN+=l:i<_.lineN+_.size&&(u.externalMeasured=null))}function Ci(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[uo(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);Ae(y,a)==-1&&y.push(a)}}}function Ei(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Ba(n,i,a,l){var u=uo(n,i),g,y=n.display.view;if(!Qr||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var x=n.display.viewFrom,S=0;S<u;S++)x+=y[S].size;if(x!=i){if(l>0){if(u==y.length-1)return null;g=x+y[u].size-i,u++}else g=x-i;i+=g,a+=g}for(;rf(n.doc,a)!=a;){if(u==(l<0?0:y.length-1))return null;a+=l*y[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function Ux(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Ia(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Ia(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(uo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Ia(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,uo(n,a)))),l.viewTo=a}function ng(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function Qs(n){n.display.input.showSelection(n.display.input.prepareSelection())}function rg(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var x=0;x<a.sel.ranges.length;x++)if(!(!i&&x==a.sel.primIndex)){var S=a.sel.ranges[x];if(!(S.from().line>=n.display.viewTo||S.to().line<n.display.viewFrom)){var _=S.empty();if(y){var P=y(n,S);P&&yf(n,P,u)}else(_||n.options.showCursorWhenSelecting)&&yf(n,S.head,u);_||Vx(n,S,g)}}return l}function yf(n,i,a){var l=pr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(k("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var g=qa(n,i,"div",null,null),y=g.right-g.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var x=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=l.other.left+"px",x.style.top=l.other.top+"px",x.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Wa(n,i){return n.top-i.top||n.left-i.left}function Vx(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=Bp(n.display),x=y.left,S=Math.max(l.sizerWidth,lo(n)-l.sizer.offsetLeft)-y.right,_=u.direction=="ltr";function P(we,Me,Ie,Re){Me<0&&(Me=0),Me=Math.round(Me),Re=Math.round(Re),g.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+we+`px;
|
|
26
|
-
top: `+Me+"px; width: "+(Ie??S-we)+`px;
|
|
27
|
-
height: `+(Re-Me)+"px"))}function R(we,Me,Ie){var Re=Oe(u,we),Ye=Re.text.length,xt,Xt;function Et(Ft,_n){return qa(n,ne(we,Ft),"div",Re,_n)}function zn(Ft,_n,tn){var Wt=eg(n,Re,null,Ft),Ht=_n=="ltr"==(tn=="after")?"left":"right",Pt=tn=="after"?Wt.begin:Wt.end-(/\s/.test(Re.text.charAt(Wt.end-1))?2:1);return Et(Pt,Ht)[Ht]}var Sn=Je(Re,u.direction);return Pn(Sn,Me||0,Ie??Ye,function(Ft,_n,tn,Wt){var Ht=tn=="ltr",Pt=Et(Ft,Ht?"left":"right"),kn=Et(_n-1,Ht?"right":"left"),us=Me==null&&Ft==0,Pi=Ie==null&&_n==Ye,ln=Wt==0,Dr=!Sn||Wt==Sn.length-1;if(kn.top-Pt.top<=3){var Yt=(_?us:Pi)&&ln,Vf=(_?Pi:us)&&Dr,ii=Yt?x:(Ht?Pt:kn).left,vo=Vf?S:(Ht?kn:Pt).right;P(ii,Pt.top,vo-ii,Pt.bottom)}else{var mo,fn,fs,jf;Ht?(mo=_&&us&&ln?x:Pt.left,fn=_?S:zn(Ft,tn,"before"),fs=_?x:zn(_n,tn,"after"),jf=_&&Pi&&Dr?S:kn.right):(mo=_?zn(Ft,tn,"before"):x,fn=!_&&us&&ln?S:Pt.right,fs=!_&&Pi&&Dr?x:kn.left,jf=_?zn(_n,tn,"after"):S),P(mo,Pt.top,fn-mo,Pt.bottom),Pt.bottom<kn.top&&P(x,Pt.bottom,null,kn.top),P(fs,kn.top,jf-fs,kn.bottom)}(!xt||Wa(Pt,xt)<0)&&(xt=Pt),Wa(kn,xt)<0&&(xt=kn),(!Xt||Wa(Pt,Xt)<0)&&(Xt=Pt),Wa(kn,Xt)<0&&(Xt=kn)}),{start:xt,end:Xt}}var K=i.from(),j=i.to();if(K.line==j.line)R(K.line,K.ch,j.ch);else{var re=Oe(u,K.line),ue=Oe(u,j.line),ve=hr(re)==hr(ue),be=R(K.line,K.ch,ve?re.text.length+1:null).end,Te=R(j.line,ve?0:null,j.ch).start;ve&&(be.top<Te.top-2?(P(be.right,be.top,null,be.bottom),P(x,Te.top,Te.left,Te.bottom)):P(be.right,be.top,Te.left-be.right,be.bottom)),be.bottom<Te.top&&P(x,be.bottom,null,Te.top)}a.appendChild(g)}function bf(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||Jo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function ig(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||xf(n))}function wf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Jo(n))},100)}function xf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Mt(n,"focus",n,i),n.state.focused=!0,Ne(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),v&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),bf(n))}function Jo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Mt(n,"blur",n,i),n.state.focused=!1,J(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Ua(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,g=0,y=0;y<i.view.length;y++){var x=i.view[y],S=n.options.lineWrapping,_=void 0,P=0;if(!x.hidden){if(u+=x.line.height,h&&p<8){var R=x.node.offsetTop+x.node.offsetHeight;_=R-a,a=R}else{var K=x.node.getBoundingClientRect();_=K.bottom-K.top,!S&&x.text.firstChild&&(P=x.text.firstChild.getBoundingClientRect().right-K.left-1)}var j=x.line.height-_;if((j>.005||j<-.005)&&(u<l&&(g-=j),jn(x.line,_),og(x.line),x.rest))for(var re=0;re<x.rest.length;re++)og(x.rest[re]);if(P>n.display.sizerWidth){var ue=Math.ceil(P/Zo(n.display));ue>n.display.maxLineLength&&(n.display.maxLineLength=ue,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function og(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],l=a.node.parentNode;l&&(a.height=l.offsetHeight)}}function Va(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Fa(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=O(i,l),y=O(i,u);if(a&&a.ensure){var x=a.ensure.from.line,S=a.ensure.to.line;x<g?(g=x,y=O(i,ei(Oe(i,x))+n.wrapper.clientHeight)):Math.min(S,i.lastLine())>=y&&(g=O(i,ei(Oe(i,S))-n.wrapper.clientHeight),y=S)}return{from:g,to:Math.max(y,g+1)}}function jx(n,i){if(!Nt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!N){var y=k("div","",null,`position: absolute;
|
|
28
|
-
top: `+(i.top-a.viewOffset-Fa(n.display))+`px;
|
|
29
|
-
height: `+(i.bottom-i.top+Or(n)+a.barHeight)+`px;
|
|
30
|
-
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function Gx(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?ne(i.line,i.ch+1,"before"):i,i=i.ch?ne(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,x=pr(n,i),S=!a||a==i?x:pr(n,a);u={left:Math.min(x.left,S.left),top:Math.min(x.top,S.top)-l,right:Math.max(x.left,S.left),bottom:Math.max(x.bottom,S.bottom)+l};var _=Sf(n,u),P=n.doc.scrollTop,R=n.doc.scrollLeft;if(_.scrollTop!=null&&(tl(n,_.scrollTop),Math.abs(n.doc.scrollTop-P)>1&&(y=!0)),_.scrollLeft!=null&&(fo(n,_.scrollLeft),Math.abs(n.doc.scrollLeft-R)>1&&(y=!0)),!y)break}return u}function Kx(n,i){var a=Sf(n,i);a.scrollTop!=null&&tl(n,a.scrollTop),a.scrollLeft!=null&&fo(n,a.scrollLeft)}function Sf(n,i){var a=n.display,l=Yo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=cf(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var x=n.doc.height+af(a),S=i.top<l,_=i.bottom>x-l;if(i.top<u)y.scrollTop=S?0:i.top;else if(i.bottom>u+g){var P=Math.min(i.top,(_?x:i.bottom)-g);P!=u&&(y.scrollTop=P)}var R=n.options.fixedGutter?0:a.gutters.offsetWidth,K=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-R,j=lo(n)-a.gutters.offsetWidth,re=i.right-i.left>j;return re&&(i.right=i.left+j),i.left<10?y.scrollLeft=0:i.left<K?y.scrollLeft=Math.max(0,i.left+R-(re?0:10)):i.right>j+K-3&&(y.scrollLeft=i.right+(re?0:10)-j),y}function _f(n,i){i!=null&&(ja(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Qo(n){ja(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function el(n,i,a){(i!=null||a!=null)&&ja(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Xx(n,i){ja(n),n.curOp.scrollToPos=i}function ja(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Jp(n,i.from),l=Jp(n,i.to);sg(n,a,l,i.margin)}}function sg(n,i,a,l){var u=Sf(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});el(n,u.scrollLeft,u.scrollTop)}function tl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||Tf(n,{top:i}),lg(n,i,!0),s&&Tf(n),il(n,100))}function lg(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function fo(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,dg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function nl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+af(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+Or(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var ho=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),ze(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),ze(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ho.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var g=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},ho.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ho.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ho.prototype.zeroWidthHack=function(){var n=z&&!L?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new $e,this.disableVert=new $e},ho.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),g=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},ho.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var rl=function(){};rl.prototype.update=function(){return{bottom:0,right:0}},rl.prototype.setScrollLeft=function(){},rl.prototype.setScrollTop=function(){},rl.prototype.clear=function(){};function es(n,i){i||(i=nl(n));var a=n.display.barWidth,l=n.display.barHeight;ag(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&Ua(n),ag(n,nl(n)),a=n.display.barWidth,l=n.display.barHeight}function ag(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var cg={native:ho,null:rl};function ug(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&J(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new cg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),ze(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?fo(n,i):tl(n,i)},n),n.display.scrollbars.addClass&&Ne(n.display.wrapper,n.display.scrollbars.addClass)}var Yx=0;function po(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Yx,markArrays:null},Ex(n.curOp)}function go(n){var i=n.curOp;i&&Ax(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Zx(a)})}function Zx(n){for(var i=n.ops,a=0;a<i.length;a++)Jx(i[a]);for(var l=0;l<i.length;l++)Qx(i[l]);for(var u=0;u<i.length;u++)eS(i[u]);for(var g=0;g<i.length;g++)tS(i[g]);for(var y=0;y<i.length;y++)nS(i[y])}function Jx(n){var i=n.cm,a=i.display;iS(i),n.updateMaxLine&&sf(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<a.viewFrom||n.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new Ga(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Qx(n){n.updatedDisplay=n.mustUpdate&&kf(n.cm,n.update)}function eS(n){var i=n.cm,a=i.display;n.updatedDisplay&&Ua(i),n.barMeasure=nl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Up(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+Or(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-lo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function tS(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&fo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ye(et(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&es(i,n.barMeasure),n.updatedDisplay&&Ef(i,n.barMeasure),n.selectionChanged&&bf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&ig(n.cm)}function nS(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&fg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&lg(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&fo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Gx(i,Ge(l,n.scrollToPos.from),Ge(l,n.scrollToPos.to),n.scrollToPos.margin);jx(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var x=0;x<g.length;++x)g[x].lines.length||Mt(g[x],"hide");if(y)for(var S=0;S<y.length;++S)y[S].lines.length&&Mt(y[S],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Mt(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Dn(n,i){if(n.curOp)return i();po(n);try{return i()}finally{go(n)}}function Gt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);po(n);try{return i.apply(n,arguments)}finally{go(n)}}}function un(n){return function(){if(this.curOp)return n.apply(this,arguments);po(this);try{return n.apply(this,arguments)}finally{go(this)}}}function Kt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);po(i);try{return n.apply(this,arguments)}finally{go(i)}}}function il(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,Y(rS,n))}function rS(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=Gs(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var y=g.styles,x=g.text.length>n.options.maxHighlightLength?$r(i.mode,l.state):null,S=yp(n,g,l,!0);x&&(l.state=x),g.styles=S.styles;var _=g.styleClasses,P=S.classes;P?g.styleClasses=P:_&&(g.styleClasses=null);for(var R=!y||y.length!=g.styles.length||_!=P&&(!_||!P||_.bgClass!=P.bgClass||_.textClass!=P.textClass),K=0;!R&&K<y.length;++K)R=y[K]!=g.styles[K];R&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&Qu(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return il(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Dn(n,function(){for(var g=0;g<u.length;g++)Ci(n,u[g],"text")})}}var Ga=function(n,i,a){var l=n.display;this.viewport=i,this.visible=Va(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=lo(n),this.force=a,this.dims=gf(n),this.events=[]};Ga.prototype.signal=function(n,i){Rn(n,i)&&this.events.push(arguments)},Ga.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Mt.apply(null,this.events[n])};function iS(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Or(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Or(n)+"px",i.scrollbarsClipped=!0)}function oS(n){if(n.hasFocus())return null;var i=ye(et(n));if(!i||!ie(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Le(n).getSelection();l.anchorNode&&l.extend&&ie(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function sS(n){if(!(!n||!n.activeElt||n.activeElt==ye(Xe(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&ie(document.body,n.anchorNode)&&ie(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function kf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Ei(n),!1;if(!i.force&&i.visible.from>=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&ng(n)==0)return!1;hg(n)&&(Ei(n),i.dims=gf(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),Qr&&(g=rf(n.doc,g),y=$p(n.doc,y));var x=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;Ux(n,g,y),a.viewOffset=ei(Oe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=ng(n);if(!x&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var _=oS(n);return S>4&&(a.lineDiv.style.display="none"),lS(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,sS(_),H(a.cursorDiv),H(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,il(n,400)),a.updateLineNumbers=null,!0}function fg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==lo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+af(n.display)-cf(n),a.top)}),i.visible=Va(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=Va(n.display,n.doc,a));if(!kf(n,i))break;Ua(n);var u=nl(n);Qs(n),es(n,u),Ef(n,u),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function Tf(n,i){var a=new Ga(n,i);if(kf(n,a)){Ua(n),fg(n,a);var l=nl(n);Qs(n),es(n,l),Ef(n,l),a.finish()}}function lS(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function x(re){var ue=re.nextSibling;return v&&z&&n.display.currentWheelTarget==re?re.style.display="none":re.parentNode.removeChild(re),ue}for(var S=l.view,_=l.viewFrom,P=0;P<S.length;P++){var R=S[P];if(!R.hidden)if(!R.node||R.node.parentNode!=g){var K=Ox(n,R,_,a);g.insertBefore(K,y)}else{for(;y!=R.node;)y=x(y);var j=u&&i!=null&&i<=_&&R.lineNumber;R.changes&&(Ae(R.changes,"gutter")>-1&&(j=!1),zp(n,R,_,a)),j&&(H(R.lineNumber),R.lineNumber.appendChild(document.createTextNode(ge(n.options,_)))),y=R.node.nextSibling}_+=R.size}for(;y;)y=x(y)}function Cf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",jt(n,"gutterChanged",n)}function Ef(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+Or(n)+"px"}function dg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=vf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=g),a[y].gutterBackground&&(a[y].gutterBackground.style.left=g));var x=a[y].alignable;if(x)for(var S=0;S<x.length;S++)x[S].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function hg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=ge(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(k("div",[k("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=u.firstChild.offsetWidth,y=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Cf(n.display),!0}return!1}function Lf(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var g=n[u],y=null;if(typeof g!="string"&&(y=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:g,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function pg(n){var i=n.gutters,a=n.gutterSpecs;H(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,y=u.style,x=i.appendChild(k("div",null,"CodeMirror-gutter "+g));y&&(x.style.cssText=y),g=="CodeMirror-linenumbers"&&(n.lineGutter=x,x.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",Cf(n)}function ol(n){pg(n.display),wn(n),dg(n)}function aS(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=W("div",null,"CodeMirror-code"),u.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=k("div",null,"CodeMirror-cursors"),u.measure=k("div",null,"CodeMirror-measure"),u.lineMeasure=k("div",null,"CodeMirror-measure"),u.lineSpace=W("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=W("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[g],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+D+"px; width: 1px;"),u.gutters=k("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=k("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=k("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&w>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&A)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=Lf(l.gutters,l.lineNumbers),pg(u),a.init(u)}var Ka=0,ni=null;h?ni=-.53:s?ni=15:b?ni=-.7:M&&(ni=-1/3);function gg(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function cS(n){var i=gg(n);return i.x*=ni,i.y*=ni,i}function vg(n,i){b&&w==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=gg(i),l=a.x,u=a.y,g=ni;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,x=y.scroller,S=x.scrollWidth>x.clientWidth,_=x.scrollHeight>x.clientHeight;if(l&&S||u&&_){if(u&&z&&v){e:for(var P=i.target,R=y.view;P!=x;P=P.parentNode)for(var K=0;K<R.length;K++)if(R[K].node==P){n.display.currentWheelTarget=P;break e}}if(l&&!s&&!E&&g!=null){u&&_&&tl(n,Math.max(0,x.scrollTop+u*g)),fo(n,Math.max(0,x.scrollLeft+l*g)),(!u||u&&_)&&on(i),y.wheelStartX=null;return}if(u&&g!=null){var j=u*g,re=n.doc.scrollTop,ue=re+y.wrapper.clientHeight;j<0?re=Math.max(0,re+j-50):ue=Math.min(n.doc.height,ue+j+50),Tf(n,{top:re,bottom:ue})}Ka<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=x.scrollLeft,y.wheelStartY=x.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var ve=x.scrollLeft-y.wheelStartX,be=x.scrollTop-y.wheelStartY,Te=be&&y.wheelDY&&be/y.wheelDY||ve&&y.wheelDX&&ve/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Te&&(ni=(ni*Ka+Te)/(Ka+1),++Ka)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Gn=function(n,i){this.ranges=n,this.primIndex=i};Gn.prototype.primary=function(){return this.ranges[this.primIndex]},Gn.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!ft(a.anchor,l.anchor)||!ft(a.head,l.head))return!1}return!0},Gn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new dt(Vt(this.ranges[i].anchor),Vt(this.ranges[i].head));return new Gn(n,this.primIndex)},Gn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Gn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(_e(i,l.from())>=0&&_e(n,l.to())<=0)return a}return-1};var dt=function(n,i){this.anchor=n,this.head=i};dt.prototype.from=function(){return jo(this.anchor,this.head)},dt.prototype.to=function(){return bn(this.anchor,this.head)},dt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function gr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(K,j){return _e(K.from(),j.from())}),a=Ae(i,u);for(var g=1;g<i.length;g++){var y=i[g],x=i[g-1],S=_e(x.to(),y.from());if(l&&!y.empty()?S>0:S>=0){var _=jo(x.from(),y.from()),P=bn(x.to(),y.to()),R=x.empty()?y.from()==y.head:x.from()==x.head;g<=a&&--a,i.splice(--g,2,new dt(R?P:_,R?_:P))}}return new Gn(i,a)}function Li(n,i){return new Gn([new dt(n,i||n)],0)}function Ai(n){return n.text?ne(n.from.line+n.text.length-1,de(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function mg(n,i){if(_e(n,i.from)<0)return n;if(_e(n,i.to)<=0)return Ai(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=Ai(i).ch-i.to.ch),ne(a,l)}function Af(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new dt(mg(u.anchor,i),mg(u.head,i)))}return gr(n.cm,a,n.sel.primIndex)}function yg(n,i,a){return n.line==i.line?ne(a.line,n.ch-i.ch+a.ch):ne(a.line+(n.line-i.line),n.ch)}function uS(n,i,a){for(var l=[],u=ne(n.first,0),g=u,y=0;y<i.length;y++){var x=i[y],S=yg(x.from,u,g),_=yg(Ai(x),u,g);if(u=x.to,g=_,a=="around"){var P=n.sel.ranges[y],R=_e(P.head,P.anchor)<0;l[y]=new dt(R?_:S,R?S:_)}else l[y]=new dt(S,S)}return new Gn(l,n.sel.primIndex)}function Mf(n){n.doc.mode=Wo(n.options,n.doc.modeOption),sl(n)}function sl(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,il(n,100),n.state.modeGen++,n.curOp&&wn(n)}function bg(n,i){return i.from.ch==0&&i.to.ch==0&&de(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Nf(n,i,a,l){function u(Te){return a?a[Te]:null}function g(Te,we,Me){yx(Te,we,Me,l),jt(Te,"change",Te,i)}function y(Te,we){for(var Me=[],Ie=Te;Ie<we;++Ie)Me.push(new Go(_[Ie],u(Ie),l));return Me}var x=i.from,S=i.to,_=i.text,P=Oe(n,x.line),R=Oe(n,S.line),K=de(_),j=u(_.length-1),re=S.line-x.line;if(i.full)n.insert(0,y(0,_.length)),n.remove(_.length,n.size-_.length);else if(bg(n,i)){var ue=y(0,_.length-1);g(R,R.text,j),re&&n.remove(x.line,re),ue.length&&n.insert(x.line,ue)}else if(P==R)if(_.length==1)g(P,P.text.slice(0,x.ch)+K+P.text.slice(S.ch),j);else{var ve=y(1,_.length-1);ve.push(new Go(K+P.text.slice(S.ch),j,l)),g(P,P.text.slice(0,x.ch)+_[0],u(0)),n.insert(x.line+1,ve)}else if(_.length==1)g(P,P.text.slice(0,x.ch)+_[0]+R.text.slice(S.ch),u(0)),n.remove(x.line+1,re);else{g(P,P.text.slice(0,x.ch)+_[0],u(0)),g(R,K+R.text.slice(S.ch),j);var be=y(1,_.length-1);re>1&&n.remove(x.line+1,re-1),n.insert(x.line+1,be)}jt(n,"change",n,i)}function Mi(n,i,a){function l(u,g,y){if(u.linked)for(var x=0;x<u.linked.length;++x){var S=u.linked[x];if(S.doc!=g){var _=y&&S.sharedHist;a&&!_||(i(S.doc,_),l(S.doc,u,_))}}}l(n,null,!0)}function wg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,mf(n),Mf(n),xg(n),n.options.direction=i.direction,n.options.lineWrapping||sf(n),n.options.mode=i.modeOption,wn(n)}function xg(n){(n.doc.direction=="rtl"?Ne:J)(n.display.lineDiv,"CodeMirror-rtl")}function fS(n){Dn(n,function(){xg(n),wn(n)})}function Xa(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 $f(n,i){var a={from:Vt(i.from),to:Ai(i),text:Jr(n,i.from,i.to)};return kg(n,a,i.from.line,i.to.line+1),Mi(n,function(l){return kg(l,a,i.from.line,i.to.line+1)},!0),a}function Sg(n){for(;n.length;){var i=de(n);if(i.ranges)n.pop();else break}}function dS(n,i){if(i)return Sg(n.done),de(n.done);if(n.done.length&&!de(n.done).ranges)return de(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),de(n.done)}function _g(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,y,x;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=dS(u,u.lastOp==l)))x=de(y.changes),_e(i.from,i.to)==0&&_e(i.from,x.to)==0?x.to=Ai(i):y.changes.push($f(n,i));else{var S=de(u.done);for((!S||!S.ranges)&&Ya(n.sel,u.done),y={changes:[$f(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,x||Mt(n,"historyAdded")}function hS(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function pS(n,i,a,l){var u=n.history,g=l&&l.origin;a==u.lastSelOp||g&&u.lastSelOrigin==g&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==g||hS(n,g,de(u.done),i))?u.done[u.done.length-1]=i:Ya(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&Sg(u.undone)}function Ya(n,i){var a=de(i);a&&a.ranges&&a.equals(n)||i.push(n)}function kg(n,i,a,l){var u=i["spans_"+n.id],g=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[g]=y.markedSpans),++g})}function gS(n){if(!n)return null;for(var i,a=0;a<n.length;++a)n[a].marker.explicitlyCleared?i||(i=n.slice(0,a)):i&&i.push(n[a]);return i?i.length?i:null:n}function vS(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(gS(a[u]));return l}function Tg(n,i){var a=vS(n,i),l=tf(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],y=l[u];if(g&&y)e:for(var x=0;x<y.length;++x){for(var S=y[x],_=0;_<g.length;++_)if(g[_].marker==S.marker)continue e;g.push(S)}else y&&(a[u]=y)}return a}function ts(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Gn.prototype.deepCopy.call(g):g);continue}var y=g.changes,x=[];l.push({changes:x});for(var S=0;S<y.length;++S){var _=y[S],P=void 0;if(x.push({from:_.from,to:_.to,text:_.text}),i)for(var R in _)(P=R.match(/^spans_(\d+)$/))&&Ae(i,Number(P[1]))>-1&&(de(x)[R]=_[R],delete _[R])}}return l}function Pf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=_e(i,u)<0;g!=_e(a,u)<0?(u=i,i=a):g!=_e(i,a)<0&&(i=a)}return new dt(u,i)}else return new dt(a||i,i)}function Za(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),sn(n,new Gn([Pf(n.sel.primary(),i,a,u)],0),l)}function Cg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),g=0;g<n.sel.ranges.length;g++)l[g]=Pf(n.sel.ranges[g],i[g],null,u);var y=gr(n.cm,l,n.sel.primIndex);sn(n,y,a)}function Of(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,sn(n,gr(n.cm,u,n.sel.primIndex),l)}function Eg(n,i,a,l){sn(n,Li(i,a),l)}function mS(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new dt(Ge(n,u[g].anchor),Ge(n,u[g].head))},origin:a&&a.origin};return Mt(n,"beforeSelectionChange",n,l),n.cm&&Mt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?gr(n.cm,l.ranges,l.ranges.length-1):i}function Lg(n,i,a){var l=n.history.done,u=de(l);u&&u.ranges?(l[l.length-1]=i,Ja(n,i,a)):sn(n,i,a)}function sn(n,i,a){Ja(n,i,a),pS(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ja(n,i,a){(Rn(n,"beforeSelectionChange")||n.cm&&Rn(n.cm,"beforeSelectionChange"))&&(i=mS(n,i,a));var l=a&&a.bias||(_e(i.primary().head,n.sel.primary().head)<0?-1:1);Ag(n,Ng(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Qo(n.cm)}function Ag(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,nr(n.cm)),jt(n,"cursorActivity",n))}function Mg(n){Ag(n,Ng(n,n.sel,null,!1))}function Ng(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var y=i.ranges[g],x=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],S=Qa(n,y.anchor,x&&x.anchor,a,l),_=y.head==y.anchor?S:Qa(n,y.head,x&&x.head,a,l);(u||S!=y.anchor||_!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new dt(S,_))}return u?gr(n.cm,u,i.primIndex):i}function ns(n,i,a,l,u){var g=Oe(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var x=g.markedSpans[y],S=x.marker,_="selectLeft"in S?!S.selectLeft:S.inclusiveLeft,P="selectRight"in S?!S.selectRight:S.inclusiveRight;if((x.from==null||(_?x.from<=i.ch:x.from<i.ch))&&(x.to==null||(P?x.to>=i.ch:x.to>i.ch))){if(u&&(Mt(S,"beforeCursorEnter"),S.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!S.atomic)continue;if(a){var R=S.find(l<0?1:-1),K=void 0;if((l<0?P:_)&&(R=$g(n,R,-l,R&&R.line==i.line?g:null)),R&&R.line==i.line&&(K=_e(R,a))&&(l<0?K<0:K>0))return ns(n,R,i,l,u)}var j=S.find(l<0?-1:1);return(l<0?_:P)&&(j=$g(n,j,l,j.line==i.line?g:null)),j?ns(n,j,i,l,u):null}}return i}function Qa(n,i,a,l,u){var g=l||1,y=ns(n,i,a,g,u)||!u&&ns(n,i,a,g,!0)||ns(n,i,a,-g,u)||!u&&ns(n,i,a,-g,!0);return y||(n.cantEdit=!0,ne(n.first,0))}function $g(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ge(n,ne(i.line-1)):null:a>0&&i.ch==(l||Oe(n,i.line)).text.length?i.line<n.first+n.size-1?ne(i.line+1,0):null:new ne(i.line,i.ch+a)}function Pg(n){n.setSelection(ne(n.firstLine(),0),ne(n.lastLine()),X)}function Og(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,g,y,x){u&&(l.from=Ge(n,u)),g&&(l.to=Ge(n,g)),y&&(l.text=y),x!==void 0&&(l.origin=x)}),Mt(n,"beforeChange",n,l),n.cm&&Mt(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function rs(n,i,a){if(n.cm){if(!n.cm.curOp)return Gt(n.cm,rs)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Rn(n,"beforeChange")||n.cm&&Rn(n.cm,"beforeChange"))&&(i=Og(n,i,!0),!i))){var l=Tp&&!a&&px(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Rg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Rg(n,i)}}function Rg(n,i){if(!(i.text.length==1&&i.text[0]==""&&_e(i.from,i.to)==0)){var a=Af(n,i);_g(n,i,a,n.cm?n.cm.curOp.id:NaN),ll(n,i,a,tf(n,i));var l=[];Mi(n,function(u,g){!g&&Ae(l,u.history)==-1&&(Fg(u.history,i),l.push(u.history)),ll(u,i,null,tf(u,i))})}}function ec(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,y=n.sel,x=i=="undo"?u.done:u.undone,S=i=="undo"?u.undone:u.done,_=0;_<x.length&&(g=x[_],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));_++);if(_!=x.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=x.pop(),g.ranges){if(Ya(g,S),a&&!g.equals(n.sel)){sn(n,g,{clearRedo:!1});return}y=g}else if(l){x.push(g);return}else break;var P=[];Ya(y,S),S.push({changes:P,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var R=Rn(n,"beforeChange")||n.cm&&Rn(n.cm,"beforeChange"),K=function(ue){var ve=g.changes[ue];if(ve.origin=i,R&&!Og(n,ve,!1))return x.length=0,{};P.push($f(n,ve));var be=ue?Af(n,ve):de(x);ll(n,ve,be,Tg(n,ve)),!ue&&n.cm&&n.cm.scrollIntoView({from:ve.from,to:Ai(ve)});var Te=[];Mi(n,function(we,Me){!Me&&Ae(Te,we.history)==-1&&(Fg(we.history,ve),Te.push(we.history)),ll(we,ve,null,Tg(we,ve))})},j=g.changes.length-1;j>=0;--j){var re=K(j);if(re)return re.v}}}}function Dg(n,i){if(i!=0&&(n.first+=i,n.sel=new Gn(pe(n.sel.ranges,function(u){return new dt(ne(u.anchor.line+i,u.anchor.ch),ne(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){wn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Ci(n.cm,l,"gutter")}}function ll(n,i,a,l){if(n.cm&&!n.cm.curOp)return Gt(n.cm,ll)(n,i,a,l);if(i.to.line<n.first){Dg(n,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>n.lastLine())){if(i.from.line<n.first){var u=i.text.length-1-(n.first-i.from.line);Dg(n,u),i={from:ne(n.first,0),to:ne(i.to.line+u,i.to.ch),text:[de(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:ne(g,Oe(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Jr(n,i.from,i.to),a||(a=Af(n,i)),n.cm?yS(n.cm,i,l):Nf(n,i,l),Ja(n,a,X),n.cantEdit&&Qa(n,ne(n.firstLine(),0))&&(n.cantEdit=!1)}}function yS(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,x=!1,S=g.line;n.options.lineWrapping||(S=T(hr(Oe(l,g.line))),l.iter(S,y.line+1,function(j){if(j==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&nr(n),Nf(l,i,a,tg(n)),n.options.lineWrapping||(l.iter(S,g.line+i.text.length,function(j){var re=za(j);re>u.maxLineLength&&(u.maxLine=j,u.maxLineLength=re,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),lx(l,g.line),il(n,400);var _=i.text.length-(y.line-g.line)-1;i.full?wn(n):g.line==y.line&&i.text.length==1&&!bg(n.doc,i)?Ci(n,g.line,"text"):wn(n,g.line,y.line+1,_);var P=Rn(n,"changes"),R=Rn(n,"change");if(R||P){var K={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};R&&jt(n,"change",n,K),P&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(K)}n.display.selForContextMenu=null}function is(n,i,a,l,u){var g;l||(l=a),_e(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),rs(n,{from:a,to:l,text:i,origin:u})}function zg(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Ig(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],y=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var x=0;x<g.ranges.length;x++)zg(g.ranges[x].anchor,i,a,l),zg(g.ranges[x].head,i,a,l);continue}for(var S=0;S<g.changes.length;++S){var _=g.changes[S];if(a<_.from.line)_.from=ne(_.from.line+l,_.from.ch),_.to=ne(_.to.line+l,_.to.ch);else if(i<=_.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function Fg(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Ig(n.done,a,l,u),Ig(n.undone,a,l,u)}function al(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Oe(n,vp(n,i)):u=T(i),u==null?null:(l(g,u)&&n.cm&&Ci(n.cm,u,a),g)}function cl(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}cl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,bx(u),jt(u,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,a){this.height+=a,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(n,i,a){for(var l=n+i;n<l;++n)if(a(this.lines[n]))return!0}};function ul(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var u=n[l];i+=u.chunkSize(),a+=u.height,u.parent=this}this.size=i,this.height=a,this.parent=null}ul.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],u=l.chunkSize();if(n<u){var g=Math.min(i,u-n),y=l.height;if(l.removeInner(n,g),this.height-=y-l.height,u==g&&(this.children.splice(a--,1),l.parent=null),(i-=g)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof cl))){var x=[];this.collapse(x),this.children=[new cl(x)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,x=y;x<u.lines.length;){var S=new cl(u.lines.slice(x,x+=25));u.height-=S.height,this.children.splice(++l,0,S),S.parent=this}u.lines=u.lines.slice(0,y),this.maybeSpill()}break}n-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new ul(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=Ae(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new ul(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<g){var y=Math.min(i,g-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=g}}};var fl=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};fl.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=T(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var g=Zs(this);jn(a,Math.max(0,a.height-g)),n&&(Dn(n,function(){Hg(n,a,-g),Ci(n,l,"widget")}),jt(n,"lineWidgetCleared",n,this,l))}},fl.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Zs(this)-i;u&&(Ti(this.doc,l)||jn(l,l.height+u),a&&Dn(a,function(){a.curOp.forceUpdate=!0,Hg(a,l,u),jt(a,"lineWidgetChanged",a,n,T(l))}))},ar(fl);function Hg(n,i,a){ei(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&_f(n,a)}function bS(n,i,a,l){var u=new fl(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),al(n,i,"widget",function(y){var x=y.widgets||(y.widgets=[]);if(u.insertAt==null?x.push(u):x.splice(Math.min(x.length,Math.max(0,u.insertAt)),0,u),u.line=y,g&&!Ti(n,y)){var S=ei(y)<n.scrollTop;jn(y,y.height+Zs(u)),S&&_f(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&jt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:T(i)),u}var qg=0,Ni=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++qg};Ni.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&po(n),Rn(this,"clear")){var a=this.find();a&&jt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var y=this.lines[g],x=Ks(y.markedSpans,this);n&&!this.collapsed?Ci(n,T(y),"text"):n&&(x.to!=null&&(u=T(y)),x.from!=null&&(l=T(y))),y.markedSpans=ux(y.markedSpans,x),x.from==null&&this.collapsed&&!Ti(this.doc,y)&&n&&jn(y,Yo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var S=0;S<this.lines.length;++S){var _=hr(this.lines[S]),P=za(_);P>n.display.maxLineLength&&(n.display.maxLine=_,n.display.maxLineLength=P,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&wn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Mg(n.doc)),n&&jt(n,"markerCleared",n,this,l,u),i&&go(n),this.parent&&this.parent.clear()}},Ni.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var g=this.lines[u],y=Ks(g.markedSpans,this);if(y.from!=null&&(a=ne(i?g:T(g),y.from),n==-1))return a;if(y.to!=null&&(l=ne(i?g:T(g),y.to),n==1))return l}return a&&{from:a,to:l}},Ni.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Dn(l,function(){var u=i.line,g=T(i.line),y=uf(l,g);if(y&&(Gp(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Ti(a.doc,u)&&a.height!=null){var x=a.height;a.height=null;var S=Zs(a)-x;S&&jn(u,u.height+S)}jt(l,"markerChanged",l,n)})},Ni.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ae(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Ni.prototype.detachLine=function(n){if(this.lines.splice(Ae(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},ar(Ni);function os(n,i,a,l,u){if(l&&l.shared)return wS(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Gt(n.cm,os)(n,i,a,l,u);var g=new Ni(n,u),y=_e(i,a);if(l&&ae(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=W("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Np(n,i.line,i,a,g)||i.line!=a.line&&Np(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");cx()}g.addToHistory&&_g(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,S=n.cm,_;if(n.iter(x,a.line+1,function(R){S&&g.collapsed&&!S.options.lineWrapping&&hr(R)==S.display.maxLine&&(_=!0),g.collapsed&&x!=i.line&&jn(R,0),fx(R,new Pa(g,x==i.line?i.ch:null,x==a.line?a.ch:null),n.cm&&n.cm.curOp),++x}),g.collapsed&&n.iter(i.line,a.line+1,function(R){Ti(n,R)&&jn(R,0)}),g.clearOnEnter&&ze(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(ax(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++qg,g.atomic=!0),S){if(_&&(S.curOp.updateMaxLine=!0),g.collapsed)wn(S,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var P=i.line;P<=a.line;P++)Ci(S,P,"text");g.atomic&&Mg(S.doc),jt(S,"markerAdded",S,g)}return g}var dl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};dl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();jt(this,"clear")}},dl.prototype.find=function(n,i){return this.primary.find(n,i)},ar(dl);function wS(n,i,a,l,u){l=ae(l),l.shared=!1;var g=[os(n,i,a,l,u)],y=g[0],x=l.widgetNode;return Mi(n,function(S){x&&(l.widgetNode=x.cloneNode(!0)),g.push(os(S,Ge(S,i),Ge(S,a),l,u));for(var _=0;_<S.linked.length;++_)if(S.linked[_].isParent)return;y=de(g)}),new dl(g,y)}function Bg(n){return n.findMarks(ne(n.first,0),n.clipPos(ne(n.lastLine())),function(i){return i.parent})}function xS(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),y=n.clipPos(u.to);if(_e(g,y)){var x=os(n,g,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function SS(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Mi(u.primary.doc,function(S){return g.push(S)});for(var y=0;y<u.markers.length;y++){var x=u.markers[y];Ae(g,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var _S=0,xn=function(n,i,a,l,u){if(!(this instanceof xn))return new xn(n,i,a,l,u);a==null&&(a=0),ul.call(this,[new cl([new Go("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=ne(a,0);this.sel=Li(g),this.history=new Xa(null),this.id=++_S,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Nf(this,{from:g,to:g,text:n}),sn(this,Li(g),X)};xn.prototype=De(ul.prototype,{constructor:xn,iter:function(n,i,a){a?this.iterN(n-this.first,i-n,a):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var a=0,l=0;l<i.length;++l)a+=i[l].height;this.insertInner(n-this.first,i,a)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=js(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Kt(function(n){var i=ne(this.first,0),a=this.first+this.size-1;rs(this,{from:i,to:ne(a,Oe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&el(this.cm,0,0),sn(this,Li(i),X)}),replaceRange:function(n,i,a,l){i=Ge(this,i),a=a?Ge(this,a):i,is(this,n,i,a,l)},getRange:function(n,i,a){var l=Jr(this,Ge(this,n),Ge(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(se(this,n))return Oe(this,n)},getLineNumber:function(n){return T(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Oe(this,n)),hr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ge(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Kt(function(n,i,a){Eg(this,Ge(this,typeof n=="number"?ne(n,i||0):n),null,a)}),setSelection:Kt(function(n,i,a){Eg(this,Ge(this,n),Ge(this,i||n),a)}),extendSelection:Kt(function(n,i,a){Za(this,Ge(this,n),i&&Ge(this,i),a)}),extendSelections:Kt(function(n,i){Cg(this,mp(this,n),i)}),extendSelectionsBy:Kt(function(n,i){var a=pe(this.sel.ranges,n);Cg(this,mp(this,a),i)}),setSelections:Kt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new dt(Ge(this,n[u].anchor),Ge(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),sn(this,gr(this.cm,l,i),a)}}),addSelection:Kt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new dt(Ge(this,n),Ge(this,i||n))),sn(this,gr(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=Jr(this,i[l].from(),i[l].to());a=a?a.concat(u):u}return n===!1?a:a.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],a=this.sel.ranges,l=0;l<a.length;l++){var u=Jr(this,a[l].from(),a[l].to());n!==!1&&(u=u.join(n||this.lineSeparator())),i[l]=u}return i},replaceSelection:function(n,i,a){for(var l=[],u=0;u<this.sel.ranges.length;u++)l[u]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:Kt(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var y=u.ranges[g];l[g]={from:y.from(),to:y.to(),text:this.splitLines(n[g]),origin:a}}for(var x=i&&i!="end"&&uS(this,l,i),S=l.length-1;S>=0;S--)rs(this,l[S]);x?Lg(this,x):this.cm&&Qo(this.cm)}),undo:Kt(function(){ec(this,"undo")}),redo:Kt(function(){ec(this,"redo")}),undoSelection:Kt(function(){ec(this,"undo",!0)}),redoSelection:Kt(function(){ec(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,l=0;l<n.done.length;l++)n.done[l].ranges||++i;for(var u=0;u<n.undone.length;u++)n.undone[u].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new Xa(this.history),Mi(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:ts(this.history.done),undone:ts(this.history.undone)}},setHistory:function(n){var i=this.history=new Xa(this.history);i.done=ts(n.done.slice(0),null,!0),i.undone=ts(n.undone.slice(0),null,!0)},setGutterMarker:Kt(function(n,i,a){return al(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&<(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Kt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&al(i,a,"gutter",function(){return a.gutterMarkers[n]=null,lt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!se(this,n)||(i=n,n=Oe(this,n),!n))return null}else if(i=T(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Kt(function(n,i,a){return al(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(te(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Kt(function(n,i,a){return al(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var y=g.match(te(a));if(!y)return!1;var x=y.index+y[0].length;l[u]=g.slice(0,y.index)+(!y.index||x==g.length?"":" ")+g.slice(x)||null}else return!1;return!0})}),addLineWidget:Kt(function(n,i,a){return bS(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return os(this,Ge(this,n),Ge(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Ge(this,n),os(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ge(this,n);var i=[],a=Oe(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Ge(this,n),i=Ge(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var y=g.markedSpans;if(y)for(var x=0;x<y.length;x++){var S=y[x];!(S.to!=null&&u==n.line&&n.ch>=S.to||S.from==null&&u!=n.line||S.from!=null&&u==i.line&&S.from>=i.ch)&&(!a||a(S.marker))&&l.push(S.marker.parent||S.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;++l)a[l].from!=null&&n.push(a[l].marker)}),n},posFromIndex:function(n){var i,a=this.first,l=this.lineSeparator().length;return this.iter(function(u){var g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Ge(this,ne(a,i))},indexFromPos:function(n){n=Ge(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new xn(js(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,a=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<a&&(a=n.to);var l=new xn(js(this,i,a),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:n.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],xS(l,Bg(this)),l},unlinkDoc:function(n){if(n instanceof Tt&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),SS(Bg(this));break}}if(n.history==this.history){var l=[n.id];Mi(n,function(u){return l.push(u.id)},!0),n.history=new Xa(null),n.history.done=ts(this.history.done,l),n.history.undone=ts(this.history.undone,l)}},iterLinkedDocs:function(n){Mi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):rr(n)},lineSeparator:function(){return this.lineSep||`
|
|
31
|
-
`},setDirection:Kt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&fS(this.cm))})}),xn.prototype.eachLine=xn.prototype.iter;var Wg=0;function kS(n){var i=this;if(Ug(i),!(Nt(i,n)||ti(i.display,n))){on(n),h&&(Wg=+new Date);var a=co(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),y=0,x=function(){++y==u&&Gt(i,function(){a=Ge(i.doc,a);var j={from:a,to:a,text:i.doc.splitLines(g.filter(function(re){return re!=null}).join(i.doc.lineSeparator())),origin:"paste"};rs(i.doc,j),Lg(i.doc,Li(Ge(i.doc,a),Ge(i.doc,Ai(j))))})()},S=function(j,re){if(i.options.allowDropFileTypes&&Ae(i.options.allowDropFileTypes,j.type)==-1){x();return}var ue=new FileReader;ue.onerror=function(){return x()},ue.onload=function(){var ve=ue.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ve)){x();return}g[re]=ve,x()},ue.readAsText(j)},_=0;_<l.length;_++)S(l[_],_);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var P=n.dataTransfer.getData("Text");if(P){var R;if(i.state.draggingText&&!i.state.draggingText.copy&&(R=i.listSelections()),Ja(i.doc,Li(a,a)),R)for(var K=0;K<R.length;++K)is(i.doc,"",R[K].anchor,R[K].head,"drag");i.replaceSelection(P,"around","paste"),i.display.input.focus()}}catch{}}}}function TS(n,i){if(h&&(!n.state.draggingText||+new Date-Wg<100)){xi(i);return}if(!(Nt(n,i)||ti(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!M)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),E&&a.parentNode.removeChild(a)}}function CS(n,i){var a=co(n,i);if(a){var l=document.createDocumentFragment();yf(n,a,l),n.display.dragCursor||(n.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),I(n.display.dragCursor,l)}}function Ug(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Vg(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var g=0;g<a.length;g++)n(a[g])})}}var jg=!1;function ES(){jg||(LS(),jg=!0)}function LS(){var n;ze(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Vg(AS)},100))}),ze(window,"blur",function(){return Vg(Jo)})}function AS(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var $i={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},hl=0;hl<10;hl++)$i[hl+48]=$i[hl+96]=String(hl);for(var tc=65;tc<=90;tc++)$i[tc]=String.fromCharCode(tc);for(var pl=1;pl<=12;pl++)$i[pl+111]=$i[pl+63235]="F"+pl;var ri={};ri.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"},ri.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"},ri.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"},ri.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"]},ri.default=z?ri.macDefault:ri.pcDefault;function MS(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,y=0;y<i.length-1;y++){var x=i[y];if(/^(cmd|meta|m)$/i.test(x))g=!0;else if(/^a(lt)?$/i.test(x))a=!0;else if(/^(c|ctrl|control)$/i.test(x))l=!0;else if(/^s(hift)?$/i.test(x))u=!0;else throw new Error("Unrecognized modifier name: "+x)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function NS(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var u=pe(a.split(" "),MS),g=0;g<u.length;g++){var y=void 0,x=void 0;g==u.length-1?(x=u.join(" "),y=l):(x=u.slice(0,g+1).join(" "),y="...");var S=i[x];if(!S)i[x]=y;else if(S!=y)throw new Error("Inconsistent bindings for "+x)}delete n[a]}for(var _ in i)n[_]=i[_];return n}function ss(n,i,a,l){i=nc(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return ss(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=ss(n,i.fallthrough[g],a,l);if(y)return y}}}function Gg(n){var i=typeof n=="string"?n:$i[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Kg(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(ee?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(ee?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Xg(n,i){if(E&&n.keyCode==34&&n.char)return!1;var a=$i[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Kg(a,n,i))}function nc(n){return typeof n=="string"?ri[n]:n}function ls(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&_e(g.from,de(l).to)<=0;){var y=l.pop();if(_e(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}Dn(n,function(){for(var x=l.length-1;x>=0;x--)is(n.doc,"",l[x].from,l[x].to,"+delete");Qo(n)})}function Rf(n,i,a){var l=Ut(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Df(n,i,a){var l=Rf(n,i.ch,a);return l==null?null:new ne(i.line,l,a<0?"after":"before")}function zf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=Je(a,i.doc.direction);if(g){var y=u<0?de(g):g[0],x=u<0==(y.level==1),S=x?"after":"before",_;if(y.level>0||i.doc.direction=="rtl"){var P=Xo(i,a);_=u<0?a.text.length-1:0;var R=Rr(i,P,_).top;_=It(function(K){return Rr(i,P,K).top==R},u<0==(y.level==1)?y.from:y.to-1,_),S=="before"&&(_=Rf(a,_,1))}else _=u<0?y.to:y.from;return new ne(l,_,S)}}return new ne(l,u<0?a.text.length:0,u<0?"before":"after")}function $S(n,i,a,l){var u=Je(i,n.doc.direction);if(!u)return Df(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var g=Dt(u,a.ch,a.sticky),y=u[g];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return Df(i,a,l);var x=function(be,Te){return Rf(i,be instanceof ne?be.ch:be,Te)},S,_=function(be){return n.options.lineWrapping?(S=S||Xo(n,i),eg(n,i,S,be)):{begin:0,end:i.text.length}},P=_(a.sticky=="before"?x(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var R=y.level==1==l<0,K=x(a,R?1:-1);if(K!=null&&(R?K<=y.to&&K<=P.end:K>=y.from&&K>=P.begin)){var j=R?"before":"after";return new ne(a.line,K,j)}}var re=function(be,Te,we){for(var Me=function(xt,Xt){return Xt?new ne(a.line,x(xt,1),"before"):new ne(a.line,xt,"after")};be>=0&&be<u.length;be+=Te){var Ie=u[be],Re=Te>0==(Ie.level!=1),Ye=Re?we.begin:x(we.end,-1);if(Ie.from<=Ye&&Ye<Ie.to||(Ye=Re?Ie.from:x(Ie.to,-1),we.begin<=Ye&&Ye<we.end))return Me(Ye,Re)}},ue=re(g+l,l,P);if(ue)return ue;var ve=l>0?P.end:x(P.begin,-1);return ve!=null&&!(l>0&&ve==i.text.length)&&(ue=re(l>0?0:u.length-1,l,_(ve)),ue)?ue:null}var gl={selectAll:Pg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),X)},killLine:function(n){return ls(n,function(i){if(i.empty()){var a=Oe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:ne(i.head.line+1,0)}:{from:i.head,to:ne(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ls(n,function(i){return{from:ne(i.from().line,0),to:Ge(n.doc,ne(i.to().line+1,0))}})},delLineLeft:function(n){return ls(n,function(i){return{from:ne(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ls(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(n){return ls(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(ne(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(ne(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Yg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Zg(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return PS(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},fe)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},fe)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?Zg(n,i.head):l},fe)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var g=a[u].from(),y=he(n.getLine(g.line),g.ch,l);i.push(xe(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Dn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Oe(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new ne(u.line,u.ch-1)),u.ch>0)u=new ne(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),ne(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Oe(n.doc,u.line-1).text;y&&(u=new ne(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),ne(u.line-1,y.length-1),u,"+transpose"))}}a.push(new dt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Dn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);Qo(n)})},openLine:function(n){return n.replaceSelection(`
|
|
32
|
-
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Yg(n,i){var a=Oe(n.doc,i),l=hr(a);return l!=a&&(i=T(l)),zf(!0,n,l,i,1)}function PS(n,i){var a=Oe(n.doc,i),l=vx(a);return l!=a&&(i=T(l)),zf(!0,n,a,i,-1)}function Zg(n,i){var a=Yg(n,i.line),l=Oe(n.doc,a.line),u=Je(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=g&&i.ch;return ne(a.line,y?0:g,a.sticky)}return a}function rc(n,i,a){if(typeof i=="string"&&(i=gl[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=q}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function OS(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=ss(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&ss(i,n.options.extraKeys,a,n)||ss(i,n.options.keyMap,a,n)}var RS=new $e;function vl(n,i,a,l){var u=n.state.keySeq;if(u){if(Gg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:RS.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),Jg(n,u+" "+i,a,l))return!0}return Jg(n,i,a,l)}function Jg(n,i,a,l){var u=OS(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&jt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(on(a),bf(n)),!!u}function Qg(n,i){var a=Xg(i,!0);return a?i.shiftKey&&!n.state.keySeq?vl(n,"Shift-"+a,i,function(l){return rc(n,l,!0)})||vl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return rc(n,l)}):vl(n,a,i,function(l){return rc(n,l)}):!1}function DS(n,i,a){return vl(n,"'"+a+"'",i,function(l){return rc(n,l,!0)})}var If=null;function ev(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ye(et(i)),!Nt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Qg(i,n);E&&(If=l?a:null,!l&&a==88&&!Na&&(z?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!z&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&zS(i)}}function zS(n){var i=n.display.lineDiv;Ne(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(J(i,"CodeMirror-crosshair"),rn(document,"keyup",a),rn(document,"mouseover",a))}ze(document,"keyup",a),ze(document,"mouseover",a)}function tv(n){n.keyCode==16&&(this.doc.sel.shift=!1),Nt(this,n)}function nv(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ti(i.display,n)||Nt(i,n)||n.ctrlKey&&!n.altKey||z&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(E&&a==If){If=null,on(n);return}if(!(E&&(!n.which||n.which<10)&&Qg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(DS(i,n,u)||i.display.input.onKeyPress(n))}}}var IS=400,Ff=function(n,i,a){this.time=n,this.pos=i,this.button=a};Ff.prototype.compare=function(n,i,a){return this.time+IS>n&&_e(i,this.pos)==0&&a==this.button};var ml,yl;function FS(n,i){var a=+new Date;return yl&&yl.compare(a,n,i)?(ml=yl=null,"triple"):ml&&ml.compare(a,n,i)?(yl=new Ff(a,n,i),ml=null,"double"):(ml=new Ff(a,n,i),yl=null,"single")}function rv(n){var i=this,a=i.display;if(!(Nt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,ti(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Hf(i,n)){var l=co(i,n),u=cr(n),g=l?FS(l,u):"single";Le(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&HS(i,u,l,g,n))&&(u==1?l?BS(i,l,g,n):Ws(n)==a.scroller&&on(n):u==2?(l&&Za(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(U?i.display.input.onContextMenu(n):wf(i)))}}}function HS(n,i,a,l,u){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,vl(n,Kg(g,u),u,function(y){if(typeof y=="string"&&(y=gl[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=q}finally{n.state.suppressEdits=!1}return x})}function qS(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=G?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=z?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(z?a.altKey:a.ctrlKey)),u}function BS(n,i,a,l){h?setTimeout(Y(ig,n),0):n.curOp.focus=ye(et(n));var u=qS(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&Zu&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(_e((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(_e(y.to(),i)>0||i.xRel<0)?WS(n,l,i,u):US(n,l,i,u)}function WS(n,i,a,l){var u=n.display,g=!1,y=Gt(n,function(_){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:wf(n)),rn(u.wrapper.ownerDocument,"mouseup",y),rn(u.wrapper.ownerDocument,"mousemove",x),rn(u.scroller,"dragstart",S),rn(u.scroller,"drop",y),g||(on(_),l.addNew||Za(n.doc,a,null,null,l.extend),v&&!M||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),x=function(_){g=g||Math.abs(i.clientX-_.clientX)+Math.abs(i.clientY-_.clientY)>=10},S=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,ze(u.wrapper.ownerDocument,"mouseup",y),ze(u.wrapper.ownerDocument,"mousemove",x),ze(u.scroller,"dragstart",S),ze(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function iv(n,i,a){if(a=="char")return new dt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new dt(ne(i.line,0),Ge(n.doc,ne(i.line+1,0)));var l=a(n,i);return new dt(l.from,l.to)}function US(n,i,a,l){h&&wf(n);var u=n.display,g=n.doc;on(i);var y,x,S=g.sel,_=S.ranges;if(l.addNew&&!l.extend?(x=g.sel.contains(a),x>-1?y=_[x]:y=new dt(a,a)):(y=g.sel.primary(),x=g.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new dt(a,a)),a=co(n,i,!0,!0),x=-1;else{var P=iv(n,a,l.unit);l.extend?y=Pf(y,P.anchor,P.head,l.extend):y=P}l.addNew?x==-1?(x=_.length,sn(g,gr(n,_.concat([y]),x),{scroll:!1,origin:"*mouse"})):_.length>1&&_[x].empty()&&l.unit=="char"&&!l.extend?(sn(g,gr(n,_.slice(0,x).concat(_.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),S=g.sel):Of(g,x,y,le):(x=0,sn(g,new Gn([y],0),le),S=g.sel);var R=a;function K(we){if(_e(R,we)!=0)if(R=we,l.unit=="rectangle"){for(var Me=[],Ie=n.options.tabSize,Re=he(Oe(g,a.line).text,a.ch,Ie),Ye=he(Oe(g,we.line).text,we.ch,Ie),xt=Math.min(Re,Ye),Xt=Math.max(Re,Ye),Et=Math.min(a.line,we.line),zn=Math.min(n.lastLine(),Math.max(a.line,we.line));Et<=zn;Et++){var Sn=Oe(g,Et).text,Ft=ce(Sn,xt,Ie);xt==Xt?Me.push(new dt(ne(Et,Ft),ne(Et,Ft))):Sn.length>Ft&&Me.push(new dt(ne(Et,Ft),ne(Et,ce(Sn,Xt,Ie))))}Me.length||Me.push(new dt(a,a)),sn(g,gr(n,S.ranges.slice(0,x).concat(Me),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(we)}else{var _n=y,tn=iv(n,we,l.unit),Wt=_n.anchor,Ht;_e(tn.anchor,Wt)>0?(Ht=tn.head,Wt=jo(_n.from(),tn.anchor)):(Ht=tn.anchor,Wt=bn(_n.to(),tn.head));var Pt=S.ranges.slice(0);Pt[x]=VS(n,new dt(Ge(g,Wt),Ht)),sn(g,gr(n,Pt,x),le)}}var j=u.wrapper.getBoundingClientRect(),re=0;function ue(we){var Me=++re,Ie=co(n,we,!0,l.unit=="rectangle");if(Ie)if(_e(Ie,R)!=0){n.curOp.focus=ye(et(n)),K(Ie);var Re=Va(u,g);(Ie.line>=Re.to||Ie.line<Re.from)&&setTimeout(Gt(n,function(){re==Me&&ue(we)}),150)}else{var Ye=we.clientY<j.top?-20:we.clientY>j.bottom?20:0;Ye&&setTimeout(Gt(n,function(){re==Me&&(u.scroller.scrollTop+=Ye,ue(we))}),50)}}function ve(we){n.state.selectingText=!1,re=1/0,we&&(on(we),u.input.focus()),rn(u.wrapper.ownerDocument,"mousemove",be),rn(u.wrapper.ownerDocument,"mouseup",Te),g.history.lastSelOrigin=null}var be=Gt(n,function(we){we.buttons===0||!cr(we)?ve(we):ue(we)}),Te=Gt(n,ve);n.state.selectingText=Te,ze(u.wrapper.ownerDocument,"mousemove",be),ze(u.wrapper.ownerDocument,"mouseup",Te)}function VS(n,i){var a=i.anchor,l=i.head,u=Oe(n.doc,a.line);if(_e(a,l)==0&&a.sticky==l.sticky)return i;var g=Je(u);if(!g)return i;var y=Dt(g,a.ch,a.sticky),x=g[y];if(x.from!=a.ch&&x.to!=a.ch)return i;var S=y+(x.from==a.ch==(x.level!=1)?0:1);if(S==0||S==g.length)return i;var _;if(l.line!=a.line)_=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var P=Dt(g,l.ch,l.sticky),R=P-y||(l.ch-a.ch)*(x.level==1?-1:1);P==S-1||P==S?_=R<0:_=R>0}var K=g[S+(_?-1:0)],j=_==(K.level==1),re=j?K.from:K.to,ue=j?"after":"before";return a.ch==re&&a.sticky==ue?i:new dt(new ne(a.line,re,ue),l)}function ov(n,i,a,l){var u,g;if(i.touches)u=i.touches[0].clientX,g=i.touches[0].clientY;else try{u=i.clientX,g=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&on(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(g>x.bottom||!Rn(n,a))return yn(i);g-=x.top-y.viewOffset;for(var S=0;S<n.display.gutterSpecs.length;++S){var _=y.gutters.childNodes[S];if(_&&_.getBoundingClientRect().right>=u){var P=O(n.doc,g),R=n.display.gutterSpecs[S];return Mt(n,a,n,P,R.className,i),yn(i)}}}function Hf(n,i){return ov(n,i,"gutterClick",!0)}function sv(n,i){ti(n.display,i)||jS(n,i)||Nt(n,i,"contextmenu")||U||n.display.input.onContextMenu(i)}function jS(n,i){return Rn(n,"gutterContextMenu")?ov(n,i,"gutterContextMenu",!1):!1}function lv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Js(n)}var as={toString:function(){return"CodeMirror.Init"}},av={},ic={};function GS(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(x,S,_){_!=as&&g(x,S,_)}:g)}n.defineOption=a,n.Init=as,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Mf(l)},!0),a("indentUnit",2,Mf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){sl(l),Js(l),wn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],y=l.doc.first;l.doc.iter(function(S){for(var _=0;;){var P=S.text.indexOf(u,_);if(P==-1)break;_=P+u.length,g.push(ne(y,P))}y++});for(var x=g.length-1;x>=0;x--)is(l.doc,u,g[x],ne(g[x].line,g[x].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=as&&l.refresh()}),a("specialCharPlaceholder",Sx,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",A?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!B),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){lv(l),ol(l)},!0),a("keyMap","default",function(l,u,g){var y=nc(u),x=g!=as&&nc(g);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,XS,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Lf(u,l.options.lineNumbers),ol(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?vf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return es(l)},!0),a("scrollbarStyle","native",function(l){ug(l),es(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=Lf(l.options.gutters,u),ol(l)},!0),a("firstLineNumber",1,ol,!0),a("lineNumberFormatter",function(l){return l},ol,!0),a("showCursorWhenSelecting",!1,Qs,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Jo(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,KS),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Qs,!0),a("singleCursorHeightPerLine",!0,Qs,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,sl,!0),a("addModeClass",!1,sl,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,sl,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function KS(n,i,a){var l=a&&a!=as;if(!i!=!l){var u=n.display.dragFunctions,g=i?ze:rn;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function XS(n){n.options.lineWrapping?(Ne(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(J(n.display.wrapper,"CodeMirror-wrap"),sf(n)),mf(n),wn(n),Js(n),setTimeout(function(){return es(n)},100)}function Tt(n,i){var a=this;if(!(this instanceof Tt))return new Tt(n,i);this.options=i=i?ae(i):{},ae(av,i,!1);var l=i.value;typeof l=="string"?l=new xn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Tt.inputStyles[i.inputStyle](this),g=this.display=new aS(n,l,u,i);g.wrapper.CodeMirror=this,lv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ug(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 $e,keySeq:null,specialChars:null},i.autofocus&&!A&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),YS(this),ES(),po(this),this.curOp.forceUpdate=!0,wg(this,l),i.autofocus&&!A||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&xf(a)},20):Jo(this);for(var y in ic)ic.hasOwnProperty(y)&&ic[y](this,i[y],as);hg(this),i.finishInit&&i.finishInit(this);for(var x=0;x<qf.length;++x)qf[x](this);go(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Tt.defaults=av,Tt.optionHandlers=ic;function YS(n){var i=n.display;ze(i.scroller,"mousedown",Gt(n,rv)),h&&p<11?ze(i.scroller,"dblclick",Gt(n,function(S){if(!Nt(n,S)){var _=co(n,S);if(!(!_||Hf(n,S)||ti(n.display,S))){on(S);var P=n.findWordAt(_);Za(n.doc,P.anchor,P.head)}}})):ze(i.scroller,"dblclick",function(S){return Nt(n,S)||on(S)}),ze(i.scroller,"contextmenu",function(S){return sv(n,S)}),ze(i.input.getField(),"contextmenu",function(S){i.scroller.contains(S.target)||sv(n,S)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(S){if(S.touches.length!=1)return!1;var _=S.touches[0];return _.radiusX<=1&&_.radiusY<=1}function y(S,_){if(_.left==null)return!0;var P=_.left-S.left,R=_.top-S.top;return P*P+R*R>20*20}ze(i.scroller,"touchstart",function(S){if(!Nt(n,S)&&!g(S)&&!Hf(n,S)){i.input.ensurePolled(),clearTimeout(a);var _=+new Date;i.activeTouch={start:_,moved:!1,prev:_-l.end<=300?l:null},S.touches.length==1&&(i.activeTouch.left=S.touches[0].pageX,i.activeTouch.top=S.touches[0].pageY)}}),ze(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ze(i.scroller,"touchend",function(S){var _=i.activeTouch;if(_&&!ti(i,S)&&_.left!=null&&!_.moved&&new Date-_.start<300){var P=n.coordsChar(i.activeTouch,"page"),R;!_.prev||y(_,_.prev)?R=new dt(P,P):!_.prev.prev||y(_,_.prev.prev)?R=n.findWordAt(P):R=new dt(ne(P.line,0),Ge(n.doc,ne(P.line+1,0))),n.setSelection(R.anchor,R.head),n.focus(),on(S)}u()}),ze(i.scroller,"touchcancel",u),ze(i.scroller,"scroll",function(){i.scroller.clientHeight&&(tl(n,i.scroller.scrollTop),fo(n,i.scroller.scrollLeft,!0),Mt(n,"scroll",n))}),ze(i.scroller,"mousewheel",function(S){return vg(n,S)}),ze(i.scroller,"DOMMouseScroll",function(S){return vg(n,S)}),ze(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){Nt(n,S)||xi(S)},over:function(S){Nt(n,S)||(CS(n,S),xi(S))},start:function(S){return TS(n,S)},drop:Gt(n,kS),leave:function(S){Nt(n,S)||Ug(n)}};var x=i.input.getField();ze(x,"keyup",function(S){return tv.call(n,S)}),ze(x,"keydown",Gt(n,ev)),ze(x,"keypress",Gt(n,nv)),ze(x,"focus",function(S){return xf(n,S)}),ze(x,"blur",function(S){return Jo(n,S)})}var qf=[];Tt.defineInitHook=function(n){return qf.push(n)};function bl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=Gs(n,i).state:a="prev");var y=n.options.tabSize,x=Oe(u,i),S=he(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var _=x.text.match(/^\s*/)[0],P;if(!l&&!/\S/.test(x.text))P=0,a="not";else if(a=="smart"&&(P=u.mode.indent(g,x.text.slice(_.length),x.text),P==q||P>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?P=he(Oe(u,i-1).text,null,y):P=0:a=="add"?P=S+n.options.indentUnit:a=="subtract"?P=S-n.options.indentUnit:typeof a=="number"&&(P=S+a),P=Math.max(0,P);var R="",K=0;if(n.options.indentWithTabs)for(var j=Math.floor(P/y);j;--j)K+=y,R+=" ";if(K<P&&(R+=xe(P-K)),R!=_)return is(u,R,ne(i,0),ne(i,_.length),"+input"),x.stateAfter=null,!0;for(var re=0;re<u.sel.ranges.length;re++){var ue=u.sel.ranges[re];if(ue.head.line==i&&ue.head.ch<_.length){var ve=ne(i,_.length);Of(u,re,new dt(ve,ve));break}}}var vr=null;function oc(n){vr=n}function Bf(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var y=+new Date-200,x=u=="paste"||n.state.pasteIncoming>y,S=rr(i),_=null;if(x&&l.ranges.length>1)if(vr&&vr.text.join(`
|
|
33
|
-
`)==i){if(l.ranges.length%vr.text.length==0){_=[];for(var P=0;P<vr.text.length;P++)_.push(g.splitLines(vr.text[P]))}}else S.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(_=pe(S,function(be){return[be]}));for(var R=n.curOp.updateInput,K=l.ranges.length-1;K>=0;K--){var j=l.ranges[K],re=j.from(),ue=j.to();j.empty()&&(a&&a>0?re=ne(re.line,re.ch-a):n.state.overwrite&&!x?ue=ne(ue.line,Math.min(Oe(g,ue.line).text.length,ue.ch+de(S).length)):x&&vr&&vr.lineWise&&vr.text.join(`
|
|
34
|
-
`)==S.join(`
|
|
35
|
-
`)&&(re=ue=ne(re.line,0)));var ve={from:re,to:ue,text:_?_[K%_.length]:S,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};rs(n.doc,ve),jt(n,"inputRead",n,ve)}i&&!x&&uv(n,i),Qo(n),n.curOp.updateInput<2&&(n.curOp.updateInput=R),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function cv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Dn(i,function(){return Bf(i,a,0,null,"paste")}),!0}function uv(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),y=!1;if(g.electricChars){for(var x=0;x<g.electricChars.length;x++)if(i.indexOf(g.electricChars.charAt(x))>-1){y=bl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Oe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=bl(n,u.head.line,"smart"));y&&jt(n,"electricInput",n,u.head.line)}}}function fv(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:ne(u,0),head:ne(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function Wf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function dv(){var n=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),C&&(n.style.border="1px solid black"),i}function ZS(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Le(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,y=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Gt(this,i[l])(this,u,y),Mt(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](nc(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:un(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");Be(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,wn(this)}),removeOverlay:un(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var y=u[g].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(g,1),this.state.modeGen++,wn(this);return}}}),indentLine:un(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),se(this.doc,l)&&bl(this,l,u,g)}),indentSelection:un(function(l){for(var u=this.doc.sel.ranges,g=-1,y=0;y<u.length;y++){var x=u[y];if(x.empty())x.head.line>g&&(bl(this,x.head.line,l,!0),g=x.head.line,y==this.doc.sel.primIndex&&Qo(this));else{var S=x.from(),_=x.to(),P=Math.max(g,S.line);g=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var R=P;R<g;++R)bl(this,R,l);var K=this.doc.sel.ranges;S.ch==0&&u.length==K.length&&K[y].from().ch>0&&Of(this.doc,y,new dt(S,K[y].to()),X)}}}),getTokenAt:function(l,u){return Sp(this,l,u)},getLineTokens:function(l,u){return Sp(this,ne(l),u,!0)},getTokenTypeAt:function(l){l=Ge(this.doc,l);var u=bp(this,Oe(this.doc,l.line)),g=0,y=(u.length-1)/2,x=l.ch,S;if(x==0)S=u[2];else for(;;){var _=g+y>>1;if((_?u[_*2-1]:0)>=x)y=_;else if(u[_*2+1]<x)g=_+1;else{S=u[_*2+2];break}}var P=S?S.indexOf("overlay "):-1;return P<0?S:P==0?null:S.slice(0,P-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var y=a[u],x=this.getModeAt(l);if(typeof x[u]=="string")y[x[u]]&&g.push(y[x[u]]);else if(x[u])for(var S=0;S<x[u].length;S++){var _=y[x[u][S]];_&&g.push(_)}else x.helperType&&y[x.helperType]?g.push(y[x.helperType]):y[x.name]&&g.push(y[x.name]);for(var P=0;P<y._global.length;P++){var R=y._global[P];R.pred(x,this)&&Ae(g,R.val)==-1&&g.push(R.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=vp(g,l??g.first+g.size-1),Gs(this,l+1,u).state},cursorCoords:function(l,u){var g,y=this.doc.sel.primary();return l==null?g=y.head:typeof l=="object"?g=Ge(this.doc,l):g=l?y.from():y.to(),pr(this,g,u||"page")},charCoords:function(l,u){return qa(this,Ge(this.doc,l),u||"page")},coordsChar:function(l,u){return l=Zp(this,l,u||"page"),hf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=Zp(this,{top:l,left:0},u||"page").top,O(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var y=!1,x;if(typeof l=="number"){var S=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>S&&(l=S,y=!0),x=Oe(this.doc,l)}else x=l;return Ha(this,x,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-ei(x):0)},defaultTextHeight:function(){return Yo(this.display)},defaultCharWidth:function(){return Zo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,x){var S=this.display;l=pr(this,Ge(this.doc,l));var _=l.bottom,P=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),S.sizer.appendChild(u),y=="over")_=l.top;else if(y=="above"||y=="near"){var R=Math.max(S.wrapper.clientHeight,this.doc.height),K=Math.max(S.sizer.clientWidth,S.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>R)&&l.top>u.offsetHeight?_=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=R&&(_=l.bottom),P+u.offsetWidth>K&&(P=K-u.offsetWidth)}u.style.top=_+"px",u.style.left=u.style.right="",x=="right"?(P=S.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?P=0:x=="middle"&&(P=(S.sizer.clientWidth-u.offsetWidth)/2),u.style.left=P+"px"),g&&Kx(this,{left:P,top:_,right:P+u.offsetWidth,bottom:_+u.offsetHeight})},triggerOnKeyDown:un(ev),triggerOnKeyPress:un(nv),triggerOnKeyUp:tv,triggerOnMouseDown:un(rv),execCommand:function(l){if(gl.hasOwnProperty(l))return gl[l].call(null,this)},triggerElectric:un(function(l){uv(this,l)}),findPosH:function(l,u,g,y){var x=1;u<0&&(x=-1,u=-u);for(var S=Ge(this.doc,l),_=0;_<u&&(S=Uf(this.doc,S,x,g,y),!S.hitSide);++_);return S},moveH:un(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?Uf(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},fe)}),deleteH:un(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):ls(this,function(x){var S=Uf(y,x.head,l,u,!1);return l<0?{from:S,to:x.head}:{from:x.head,to:S}})}),findPosV:function(l,u,g,y){var x=1,S=y;u<0&&(x=-1,u=-u);for(var _=Ge(this.doc,l),P=0;P<u;++P){var R=pr(this,_,"div");if(S==null?S=R.left:R.left=S,_=hv(this,R,x,g),_.hitSide)break}return _},moveV:un(function(l,u){var g=this,y=this.doc,x=[],S=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(P){if(S)return l<0?P.from():P.to();var R=pr(g,P.head,"div");P.goalColumn!=null&&(R.left=P.goalColumn),x.push(R.left);var K=hv(g,R,l,u);return u=="page"&&P==y.sel.primary()&&_f(g,qa(g,K,"div").top-R.top),K},fe),x.length)for(var _=0;_<y.sel.ranges.length;_++)y.sel.ranges[_].goalColumn=x[_]}),findWordAt:function(l){var u=this.doc,g=Oe(u,l.line).text,y=l.ch,x=l.ch;if(g){var S=this.getHelper(l,"wordChars");(l.sticky=="before"||x==g.length)&&y?--y:++x;for(var _=g.charAt(y),P=ot(_,S)?function(R){return ot(R,S)}:/\s/.test(_)?function(R){return/\s/.test(R)}:function(R){return!/\s/.test(R)&&!ot(R)};y>0&&P(g.charAt(y-1));)--y;for(;x<g.length&&P(g.charAt(x));)++x}return new dt(ne(l.line,y),ne(l.line,x))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ne(this.display.cursorDiv,"CodeMirror-overwrite"):J(this.display.cursorDiv,"CodeMirror-overwrite"),Mt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ye(et(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:un(function(l,u){el(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Or(this)-this.display.barHeight,width:l.scrollWidth-Or(this)-this.display.barWidth,clientHeight:cf(this),clientWidth:lo(this)}},scrollIntoView:un(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:ne(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?Xx(this,l):sg(this,l.from,l.to,l.margin)}),setSize:un(function(l,u){var g=this,y=function(S){return typeof S=="number"||/^\d+$/.test(String(S))?S+"px":S};l!=null&&(this.display.wrapper.style.width=y(l)),u!=null&&(this.display.wrapper.style.height=y(u)),this.options.lineWrapping&&Kp(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(S){if(S.widgets){for(var _=0;_<S.widgets.length;_++)if(S.widgets[_].noHScroll){Ci(g,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Mt(this,"refresh",this)}),operation:function(l){return Dn(this,l)},startOperation:function(){return po(this)},endOperation:function(){return go(this)},refresh:un(function(){var l=this.display.cachedTextHeight;wn(this),this.curOp.forceUpdate=!0,Js(this),el(this,this.doc.scrollLeft,this.doc.scrollTop),Cf(this.display),(l==null||Math.abs(l-Yo(this.display))>.5||this.options.lineWrapping)&&mf(this),Mt(this,"refresh",this)}),swapDoc:un(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),wg(this,l),Js(this),this.display.input.reset(),el(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,jt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ar(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,y){n.registerHelper(l,u,y),a[l]._global.push({pred:g,val:y})}}function Uf(n,i,a,l,u){var g=i,y=a,x=Oe(n,i.line),S=u&&n.direction=="rtl"?-a:a;function _(){var Te=i.line+S;return Te<n.first||Te>=n.first+n.size?!1:(i=new ne(Te,i.ch,i.sticky),x=Oe(n,Te))}function P(Te){var we;if(l=="codepoint"){var Me=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Me))we=null;else{var Ie=a>0?Me>=55296&&Me<56320:Me>=56320&&Me<57343;we=new ne(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(Ie?2:1))),-a)}}else u?we=$S(n.cm,x,i,a):we=Df(x,i,a);if(we==null)if(!Te&&_())i=zf(u,n.cm,x,i.line,S);else return!1;else i=we;return!0}if(l=="char"||l=="codepoint")P();else if(l=="column")P(!0);else if(l=="word"||l=="group")for(var R=null,K=l=="group",j=n.cm&&n.cm.getHelper(i,"wordChars"),re=!0;!(a<0&&!P(!re));re=!1){var ue=x.text.charAt(i.ch)||`
|
|
36
|
-
`,ve=ot(ue,j)?"w":K&&ue==`
|
|
37
|
-
`?"n":!K||/\s/.test(ue)?null:"p";if(K&&!re&&!ve&&(ve="s"),R&&R!=ve){a<0&&(a=1,P(),i.sticky="after");break}if(ve&&(R=ve),a>0&&!P(!re))break}var be=Qa(n,i,g,y,!0);return ft(g,be)&&(be.hitSide=!0),be}function hv(n,i,a,l){var u=n.doc,g=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,Le(n).innerHeight||u(n).documentElement.clientHeight),S=Math.max(x-.5*Yo(n.display),3);y=(a>0?i.bottom:i.top)+a*S}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var _;_=hf(n,g,y),!!_.outside;){if(a<0?y<=0:y>=u.height){_.hitSide=!0;break}y+=a*5}return _}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new $e,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,Wf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(x){for(var S=x.target;S;S=S.parentNode){if(S==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(S.className))break}return!1}ze(u,"paste",function(x){!g(x)||Nt(l,x)||cv(x,l)||p<=11&&setTimeout(Gt(l,function(){return i.updateFromDOM()}),20)}),ze(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),ze(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),ze(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),ze(u,"touchstart",function(){return a.forceCompositionEnd()}),ze(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!g(x)||Nt(l,x))){if(l.somethingSelected())oc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var S=fv(l);oc({lineWise:!0,text:S.text}),x.type=="cut"&&l.operation(function(){l.setSelections(S.ranges,0,X),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var _=vr.text.join(`
|
|
38
|
-
`);if(x.clipboardData.setData("Text",_),x.clipboardData.getData("Text")==_){x.preventDefault();return}}var P=dv(),R=P.firstChild;Wf(R),l.display.lineSpace.insertBefore(P,l.display.lineSpace.firstChild),R.value=vr.text.join(`
|
|
39
|
-
`);var K=ye(Xe(u));Ve(R),setTimeout(function(){l.display.lineSpace.removeChild(P),K.focus(),K==u&&a.showPrimarySelection()},50)}}ze(u,"copy",y),ze(u,"cut",y)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=rg(this.cm,!1);return n.focus=ye(Xe(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=sc(i,n.anchorNode,n.anchorOffset),y=sc(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&_e(jo(g,y),l)==0&&_e(bn(g,y),u)==0)){var x=i.display.view,S=l.line>=i.display.viewFrom&&pv(i,l)||{node:x[0].measure.map[2],offset:0},_=u.line<i.display.viewTo&&pv(i,u);if(!_){var P=x[x.length-1].measure,R=P.maps?P.maps[P.maps.length-1]:P.map;_={node:R[R.length-1],offset:R[R.length-2]-R[R.length-3]}}if(!S||!_){n.removeAllRanges();return}var K=n.rangeCount&&n.getRangeAt(0),j;try{j=V(S.node,S.offset,_.offset,_.node)}catch{}j&&(!s&&i.state.focused?(n.collapse(S.node,S.offset),j.collapsed||(n.removeAllRanges(),n.addRange(j))):(n.removeAllRanges(),n.addRange(j)),K&&n.anchorNode==null?n.addRange(K):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){I(this.cm.display.cursorDiv,n.cursors),I(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return ie(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ye(Xe(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):Dn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if($&&b&&this.cm.display.gutterSpecs.length&&JS(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=sc(i,n.anchorNode,n.anchorOffset),l=sc(i,n.focusNode,n.focusOffset);a&&l&&Dn(i,function(){sn(i.doc,Li(a,l),X),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=ne(l.line-1,Oe(n.doc,l.line-1).length)),u.ch==Oe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=ne(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,x;l.line==i.viewFrom||(g=uo(n,l.line))==0?(y=T(i.view[0].line),x=i.view[0].node):(y=T(i.view[g].line),x=i.view[g-1].node.nextSibling);var S=uo(n,u.line),_,P;if(S==i.view.length-1?(_=i.viewTo-1,P=i.lineDiv.lastChild):(_=T(i.view[S+1].line)-1,P=i.view[S+1].node.previousSibling),!x)return!1;for(var R=n.doc.splitLines(QS(n,x,P,y,_)),K=Jr(n.doc,ne(y,0),ne(_,Oe(n.doc,_).text.length));R.length>1&&K.length>1;)if(de(R)==de(K))R.pop(),K.pop(),_--;else if(R[0]==K[0])R.shift(),K.shift(),y++;else break;for(var j=0,re=0,ue=R[0],ve=K[0],be=Math.min(ue.length,ve.length);j<be&&ue.charCodeAt(j)==ve.charCodeAt(j);)++j;for(var Te=de(R),we=de(K),Me=Math.min(Te.length-(R.length==1?j:0),we.length-(K.length==1?j:0));re<Me&&Te.charCodeAt(Te.length-re-1)==we.charCodeAt(we.length-re-1);)++re;if(R.length==1&&K.length==1&&y==l.line)for(;j&&j>l.ch&&Te.charCodeAt(Te.length-re-1)==we.charCodeAt(we.length-re-1);)j--,re++;R[R.length-1]=Te.slice(0,Te.length-re).replace(/^\u200b+/,""),R[0]=R[0].slice(j).replace(/\u200b+$/,"");var Ie=ne(y,j),Re=ne(_,K.length?de(K).length-re:0);if(R.length>1||R[0]||_e(Ie,Re))return is(n.doc,R,Ie,Re,"+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())&&Dn(this.cm,function(){return wn(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()||Gt(this.cm,Bf)(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 pv(n,i){var a=uf(n,i.line);if(!a||a.hidden)return null;var l=Oe(n.doc,i.line),u=Wp(a,l,i.line),g=Je(l,n.doc.direction),y="left";if(g){var x=Dt(g,i.ch);y=x%2?"right":"left"}var S=jp(u.map,i.ch,y);return S.offset=S.collapse=="right"?S.end:S.start,S}function JS(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function cs(n,i){return i&&(n.bad=!0),n}function QS(n,i,a,l,u){var g="",y=!1,x=n.doc.lineSeparator(),S=!1;function _(j){return function(re){return re.id==j}}function P(){y&&(g+=x,S&&(g+=x),y=S=!1)}function R(j){j&&(P(),g+=j)}function K(j){if(j.nodeType==1){var re=j.getAttribute("cm-text");if(re){R(re);return}var ue=j.getAttribute("cm-marker"),ve;if(ue){var be=n.findMarks(ne(l,0),ne(u+1,0),_(+ue));be.length&&(ve=be[0].find(0))&&R(Jr(n.doc,ve.from,ve.to).join(x));return}if(j.getAttribute("contenteditable")=="false")return;var Te=/^(pre|div|p|li|table|br)$/i.test(j.nodeName);if(!/^br$/i.test(j.nodeName)&&j.textContent.length==0)return;Te&&P();for(var we=0;we<j.childNodes.length;we++)K(j.childNodes[we]);/^(pre|p)$/i.test(j.nodeName)&&(S=!0),Te&&(y=!0)}else j.nodeType==3&&R(j.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;K(i),i!=a;)i=i.nextSibling,S=!1;return g}function sc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return cs(n.clipPos(ne(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return e_(g,i,a)}}function e_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!ie(l,i))return cs(ne(T(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?de(n.rest):n.line;return cs(ne(T(g),g.text.length),u)}var y=i.nodeType==3?i:null,x=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));x.parentNode!=l;)x=x.parentNode;var S=n.measure,_=S.maps;function P(ve,be,Te){for(var we=-1;we<(_?_.length:0);we++)for(var Me=we<0?S.map:_[we],Ie=0;Ie<Me.length;Ie+=3){var Re=Me[Ie+2];if(Re==ve||Re==be){var Ye=T(we<0?n.line:n.rest[we]),xt=Me[Ie]+Te;return(Te<0||Re!=ve)&&(xt=Me[Ie+(Te?1:0)]),ne(Ye,xt)}}}var R=P(y,x,a);if(R)return cs(R,u);for(var K=x.nextSibling,j=y?y.nodeValue.length-a:0;K;K=K.nextSibling){if(R=P(K,K.firstChild,0),R)return cs(ne(R.line,R.ch-j),u);j+=K.textContent.length}for(var re=x.previousSibling,ue=a;re;re=re.previousSibling){if(R=P(re,re.firstChild,-1),R)return cs(ne(R.line,R.ch+ue),u);ue+=re.textContent.length}}var zt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new $e,this.hasSelection=!1,this.composing=null,this.resetting=!1};zt.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),C&&(u.style.width="0px"),ze(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),ze(u,"paste",function(y){Nt(l,y)||cv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Nt(l,y)){if(l.somethingSelected())oc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=fv(l);oc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,X):(a.prevInput="",u.value=x.text.join(`
|
|
40
|
-
`),Ve(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}ze(u,"cut",g),ze(u,"copy",g),ze(n.scroller,"paste",function(y){if(!(ti(n,y)||Nt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var x=new Event("paste");x.clipboardData=y.clipboardData,u.dispatchEvent(x)}}),ze(n.lineSpace,"selectstart",function(y){ti(n,y)||on(y)}),ze(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),ze(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},zt.prototype.createField=function(n){this.wrapper=dv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Wf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},zt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=rg(n);if(n.options.moveInputWithCursor){var u=pr(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-g.left))}return l},zt.prototype.showSelection=function(n){var i=this.cm,a=i.display;I(a.cursorDiv,n.cursors),I(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},zt.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&Ve(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},zt.prototype.getField=function(){return this.textarea},zt.prototype.supportsTouch=function(){return!1},zt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!A||ye(Xe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},zt.prototype.blur=function(){this.textarea.blur()},zt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},zt.prototype.receivedFocus=function(){this.slowPoll()},zt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},zt.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},zt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||_i(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||z&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l=""),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,x=Math.min(l.length,u.length);y<x&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Dn(i,function(){Bf(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
|
|
41
|
-
`)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},zt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},zt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},zt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=co(a,n),y=l.scroller.scrollTop;if(!g||E)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(g)==-1&&Gt(a,sn)(a.doc,Li(g),X);var S=u.style.cssText,_=i.wrapper.style.cssText,P=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
42
|
-
top: `+(n.clientY-P.top-5)+"px; left: "+(n.clientX-P.left-5)+`px;
|
|
43
|
-
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
44
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var R;v&&(R=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,R),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=j,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function K(){if(u.selectionStart!=null){var ue=a.somethingSelected(),ve=""+(ue?u.value:"");u.value="⇚",u.value=ve,i.prevInput=ue?"":"",u.selectionStart=1,u.selectionEnd=ve.length,l.selForContextMenu=a.doc.sel}}function j(){if(i.contextMenuPending==j&&(i.contextMenuPending=!1,i.wrapper.style.cssText=_,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&K();var ue=0,ve=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Gt(a,Pg)(a):ue++<10?l.detectingSelectAll=setTimeout(ve,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ve,200)}}if(h&&p>=9&&K(),U){xi(n);var re=function(){rn(window,"mouseup",re),setTimeout(j,20)};ze(window,"mouseup",re)}else setTimeout(j,50)},zt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},zt.prototype.setUneditable=function(){},zt.prototype.needsContentAttribute=!1;function t_(n,i){if(i=i?ae(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=ye(Xe(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(ze(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var y=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=y}}catch{}}i.finishInit=function(S){S.save=l,S.getTextArea=function(){return n},S.toTextArea=function(){S.toTextArea=isNaN,l(),n.parentNode.removeChild(S.getWrapperElement()),n.style.display="",n.form&&(rn(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=Tt(function(S){return n.parentNode.insertBefore(S,n.nextSibling)},i);return x}function n_(n){n.off=rn,n.on=ze,n.wheelEventPixels=cS,n.Doc=xn,n.splitLines=rr,n.countColumn=he,n.findColumn=ce,n.isWordChar=Qe,n.Pass=q,n.signal=Mt,n.Line=Go,n.changeEnd=Ai,n.scrollbarModel=cg,n.Pos=ne,n.cmpPos=_e,n.modes=qo,n.mimeModes=fr,n.resolveMode=Bo,n.getMode=Wo,n.modeExtensions=ki,n.extendMode=Uo,n.copyState=$r,n.startState=Vo,n.innerMode=Vs,n.commands=gl,n.keyMap=ri,n.keyName=Xg,n.isModifierKey=Gg,n.lookupKey=ss,n.normalizeKeyMap=NS,n.StringStream=$t,n.SharedTextMarker=dl,n.TextMarker=Ni,n.LineWidget=fl,n.e_preventDefault=on,n.e_stopPropagation=Fo,n.e_stop=xi,n.addClass=Ne,n.contains=ie,n.rmClass=J,n.keyNames=$i}GS(Tt),ZS(Tt);var r_="iter insert remove copy getEditor constructor".split(" ");for(var lc in xn.prototype)xn.prototype.hasOwnProperty(lc)&&Ae(r_,lc)<0&&(Tt.prototype[lc]=function(n){return function(){return n.apply(this.doc,arguments)}}(xn.prototype[lc]));return ar(xn),Tt.inputStyles={textarea:zt,contenteditable:yt},Tt.defineMode=function(n){!Tt.defaults.mode&&n!="null"&&(Tt.defaults.mode=n),dr.apply(this,arguments)},Tt.defineMIME=so,Tt.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Tt.defineMIME("text/plain","null"),Tt.defineExtension=function(n,i){Tt.prototype[n]=i},Tt.defineDocExtension=function(n,i){xn.prototype[n]=i},Tt.fromTextArea=t_,n_(Tt),Tt.version="5.65.18",Tt})}(dd)),dd.exports}var Oue=Bs();const Rue=Ew(Oue);var Due={exports:{}};(function(e,t){(function(r){r(Bs())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function T(Vt){return{type:Vt,style:"keyword"}}var O=T("keyword a"),se=T("keyword b"),ge=T("keyword c"),ne=T("keyword d"),_e=T("operator"),ft={type:"atom",style:"atom"};return{if:T("if"),while:O,with:O,else:se,do:se,try:se,finally:se,return:ne,break:ne,continue:ne,new:T("new"),delete:ge,void:ge,throw:ge,debugger:T("debugger"),var:T("var"),const:T("var"),let:T("var"),function:T("function"),catch:T("catch"),for:T("for"),switch:T("switch"),case:T("case"),default:T("default"),in:_e,typeof:_e,instanceof:_e,true:ft,false:ft,null:ft,undefined:ft,NaN:ft,Infinity:ft,this:T("this"),class:T("class"),super:T("atom"),yield:ge,export:T("export"),import:T("import"),extends:ge,await:ge}}(),w=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(T){for(var O=!1,se,ge=!1;(se=T.next())!=null;){if(!O){if(se=="/"&&!ge)return;se=="["?ge=!0:ge&&se=="]"&&(ge=!1)}O=!O&&se=="\\"}}var L,N;function C(T,O,se){return L=T,N=se,O}function $(T,O){var se=T.next();if(se=='"'||se=="'")return O.tokenize=A(se),O.tokenize(T,O);if(se=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(se=="."&&T.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(se))return C(se);if(se=="="&&T.eat(">"))return C("=>","operator");if(se=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(se))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(se=="/")return T.eat("*")?(O.tokenize=z,z(T,O)):T.eat("/")?(T.skipToEnd(),C("comment","comment")):jn(T,O,1)?(M(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(T.eat("="),C("operator","operator",T.current()));if(se=="`")return O.tokenize=G,G(T,O);if(se=="#"&&T.peek()=="!")return T.skipToEnd(),C("meta","meta");if(se=="#"&&T.eatWhile(m))return C("variable","property");if(se=="<"&&T.match("!--")||se=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),C("comment","comment");if(w.test(se))return(se!=">"||!O.lexical||O.lexical.type!=">")&&(T.eat("=")?(se=="!"||se=="=")&&T.eat("="):/[<>*+\-|&?]/.test(se)&&(T.eat(se),se==">"&&T.eat(se))),se=="?"&&T.eat(".")?C("."):C("operator","operator",T.current());if(m.test(se)){T.eatWhile(m);var ge=T.current();if(O.lastType!="."){if(b.propertyIsEnumerable(ge)){var ne=b[ge];return C(ne.type,ne.style,ge)}if(ge=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",ge)}return C("variable","variable",ge)}}function A(T){return function(O,se){var ge=!1,ne;if(d&&O.peek()=="@"&&O.match(E))return se.tokenize=$,C("jsonld-keyword","meta");for(;(ne=O.next())!=null&&!(ne==T&&!ge);)ge=!ge&&ne=="\\";return ge||(se.tokenize=$),C("string","string")}}function z(T,O){for(var se=!1,ge;ge=T.next();){if(ge=="/"&&se){O.tokenize=$;break}se=ge=="*"}return C("comment","comment")}function G(T,O){for(var se=!1,ge;(ge=T.next())!=null;){if(!se&&(ge=="`"||ge=="$"&&T.eat("{"))){O.tokenize=$;break}se=!se&&ge=="\\"}return C("quasi","string-2",T.current())}var B="([{}])";function Z(T,O){O.fatArrowAt&&(O.fatArrowAt=null);var se=T.string.indexOf("=>",T.start);if(!(se<0)){if(v){var ge=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,se));ge&&(se=ge.index)}for(var ne=0,_e=!1,ft=se-1;ft>=0;--ft){var Vt=T.string.charAt(ft),bn=B.indexOf(Vt);if(bn>=0&&bn<3){if(!ne){++ft;break}if(--ne==0){Vt=="("&&(_e=!0);break}}else if(bn>=3&&bn<6)++ne;else if(m.test(Vt))_e=!0;else if(/["'\/`]/.test(Vt))for(;;--ft){if(ft==0)return;var jo=T.string.charAt(ft-1);if(jo==Vt&&T.string.charAt(ft-2)!="\\"){ft--;break}}else if(_e&&!ne){++ft;break}}_e&&!ne&&(O.fatArrowAt=ft)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function U(T,O,se,ge,ne,_e){this.indented=T,this.column=O,this.type=se,this.prev=ne,this.info=_e,ge!=null&&(this.align=ge)}function te(T,O){if(!p)return!1;for(var se=T.localVars;se;se=se.next)if(se.name==O)return!0;for(var ge=T.context;ge;ge=ge.prev)for(var se=ge.vars;se;se=se.next)if(se.name==O)return!0}function J(T,O,se,ge,ne){var _e=T.cc;for(H.state=T,H.stream=ne,H.marked=null,H.cc=_e,H.style=O,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var ft=_e.length?_e.pop():h?Ae:he;if(ft(se,ge)){for(;_e.length&&_e[_e.length-1].lex;)_e.pop()();return H.marked?H.marked:se=="variable"&&te(T,ge)?"variable-2":O}}}var H={state:null,column:null,marked:null,cc:null};function I(){for(var T=arguments.length-1;T>=0;T--)H.cc.push(arguments[T])}function k(){return I.apply(null,arguments),!0}function W(T,O){for(var se=O;se;se=se.next)if(se.name==T)return!0;return!1}function V(T){var O=H.state;if(H.marked="def",!!p){if(O.context){if(O.lexical.info=="var"&&O.context&&O.context.block){var se=ie(T,O.context);if(se!=null){O.context=se;return}}else if(!W(T,O.localVars)){O.localVars=new We(T,O.localVars);return}}s.globalVars&&!W(T,O.globalVars)&&(O.globalVars=new We(T,O.globalVars))}}function ie(T,O){if(O)if(O.block){var se=ie(T,O.prev);return se?se==O.prev?O:new Ne(se,O.vars,!0):null}else return W(T,O.vars)?O:new Ne(O.prev,new We(T,O.vars),!1);else return null}function ye(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function Ne(T,O,se){this.prev=T,this.vars=O,this.block=se}function We(T,O){this.name=T,this.next=O}var Ve=new We("this",new We("arguments",null));function nt(){H.state.context=new Ne(H.state.context,H.state.localVars,!1),H.state.localVars=Ve}function et(){H.state.context=new Ne(H.state.context,H.state.localVars,!0),H.state.localVars=null}nt.lex=et.lex=!0;function Xe(){H.state.localVars=H.state.context.vars,H.state.context=H.state.context.prev}Xe.lex=!0;function Le(T,O){var se=function(){var ge=H.state,ne=ge.indented;if(ge.lexical.type=="stat")ne=ge.lexical.indented;else for(var _e=ge.lexical;_e&&_e.type==")"&&_e.align;_e=_e.prev)ne=_e.indented;ge.lexical=new U(ne,H.stream.column(),T,null,ge.lexical,O)};return se.lex=!0,se}function Y(){var T=H.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}Y.lex=!0;function ae(T){function O(se){return se==T?k():T==";"||se=="}"||se==")"||se=="]"?I():k(O)}return O}function he(T,O){return T=="var"?k(Le("vardef",O),Fo,ae(";"),Y):T=="keyword a"?k(Le("form"),q,he,Y):T=="keyword b"?k(Le("form"),he,Y):T=="keyword d"?H.stream.match(/^\s*$/,!1)?k():k(Le("stat"),le,ae(";"),Y):T=="debugger"?k(ae(";")):T=="{"?k(Le("}"),et,It,Y,Xe):T==";"?k():T=="if"?(H.state.lexical.info=="else"&&H.state.cc[H.state.cc.length-1]==Y&&H.state.cc.pop()(),k(Le("form"),q,he,Y,Ho)):T=="function"?k(rr):T=="for"?k(Le("form"),et,Ma,he,Xe,Y):T=="class"||v&&O=="interface"?(H.marked="keyword",k(Le("form",T=="class"?T:O),qo,Y)):T=="variable"?v&&O=="declare"?(H.marked="keyword",k(he)):v&&(O=="module"||O=="enum"||O=="type")&&H.stream.match(/^\s*\w/,!1)?(H.marked="keyword",O=="enum"?k(Oe):O=="type"?k(Na,ae("operator"),Je,ae(";")):k(Le("form"),yn,ae("{"),Le("}"),It,Y,Y)):v&&O=="namespace"?(H.marked="keyword",k(Le("form"),Ae,he,Y)):v&&O=="abstract"?(H.marked="keyword",k(he)):k(Le("stat"),Ue):T=="switch"?k(Le("form"),q,ae("{"),Le("}","switch"),et,It,Y,Y,Xe):T=="case"?k(Ae,ae(":")):T=="default"?k(ae(":")):T=="catch"?k(Le("form"),nt,$e,he,Y,Xe):T=="export"?k(Le("stat"),Bo,Y):T=="import"?k(Le("stat"),ki,Y):T=="async"?k(he):O=="@"?k(Ae,he):I(Le("stat"),Ae,ae(";"),Y)}function $e(T){if(T=="(")return k(ur,ae(")"))}function Ae(T,O){return X(T,O,!1)}function D(T,O){return X(T,O,!0)}function q(T){return T!="("?I():k(Le(")"),le,ae(")"),Y)}function X(T,O,se){if(H.state.fatArrowAt==H.stream.start){var ge=se?pe:de;if(T=="(")return k(nt,Le(")"),st(ur,")"),Y,ae("=>"),ge,Xe);if(T=="variable")return I(nt,yn,ae("=>"),ge,Xe)}var ne=se?ce:fe;return ee.hasOwnProperty(T)?k(ne):T=="function"?k(rr,ne):T=="class"||v&&O=="interface"?(H.marked="keyword",k(Le("form"),Ju,Y)):T=="keyword c"||T=="async"?k(se?D:Ae):T=="("?k(Le(")"),le,ae(")"),Y,ne):T=="operator"||T=="spread"?k(se?D:Ae):T=="["?k(Le("]"),$t,Y,ne):T=="{"?Ut(ot,"}",null,ne):T=="quasi"?I(Se,ne):T=="new"?k(Be(se)):k()}function le(T){return T.match(/[;\}\)\],]/)?I():I(Ae)}function fe(T,O){return T==","?k(le):ce(T,O,!1)}function ce(T,O,se){var ge=se==!1?fe:ce,ne=se==!1?Ae:D;if(T=="=>")return k(nt,se?pe:de,Xe);if(T=="operator")return/\+\+|--/.test(O)||v&&O=="!"?k(ge):v&&O=="<"&&H.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Le(">"),st(Je,">"),Y,ge):O=="?"?k(Ae,ae(":"),ne):k(ne);if(T=="quasi")return I(Se,ge);if(T!=";"){if(T=="(")return Ut(D,")","call",ge);if(T==".")return k(Qe,ge);if(T=="[")return k(Le("]"),le,ae("]"),Y,ge);if(v&&O=="as")return H.marked="keyword",k(Je,ge);if(T=="regexp")return H.state.lastType=H.marked="operator",H.stream.backUp(H.stream.pos-H.stream.start-1),k(ne)}}function Se(T,O){return T!="quasi"?I():O.slice(O.length-2)!="${"?k(Se):k(le,xe)}function xe(T){if(T=="}")return H.marked="string-2",H.state.tokenize=G,k(Se)}function de(T){return Z(H.stream,H.state),I(T=="{"?he:Ae)}function pe(T){return Z(H.stream,H.state),I(T=="{"?he:D)}function Be(T){return function(O){return O=="."?k(T?De:Ee):O=="variable"&&v?k(Rn,T?ce:fe):I(T?D:Ae)}}function Ee(T,O){if(O=="target")return H.marked="keyword",k(fe)}function De(T,O){if(O=="target")return H.marked="keyword",k(ce)}function Ue(T){return T==":"?k(Y,he):I(fe,ae(";"),Y)}function Qe(T){if(T=="variable")return H.marked="property",k()}function ot(T,O){if(T=="async")return H.marked="property",k(ot);if(T=="variable"||H.style=="keyword"){if(H.marked="property",O=="get"||O=="set")return k(lt);var se;return v&&H.state.fatArrowAt==H.stream.start&&(se=H.stream.match(/^\s*:\s*/,!1))&&(H.state.fatArrowAt=H.stream.pos+se[0].length),k(At)}else{if(T=="number"||T=="string")return H.marked=d?"property":H.style+" property",k(At);if(T=="jsonld-keyword")return k(At);if(v&&ye(O))return H.marked="keyword",k(ot);if(T=="[")return k(Ae,Pn,ae("]"),At);if(T=="spread")return k(D,At);if(O=="*")return H.marked="keyword",k(ot);if(T==":")return I(At)}}function lt(T){return T!="variable"?I(At):(H.marked="property",k(rr))}function At(T){if(T==":")return k(D);if(T=="(")return I(rr)}function st(T,O,se){function ge(ne,_e){if(se?se.indexOf(ne)>-1:ne==","){var ft=H.state.lexical;return ft.info=="call"&&(ft.pos=(ft.pos||0)+1),k(function(Vt,bn){return Vt==O||bn==O?I():I(T)},ge)}return ne==O||_e==O?k():se&&se.indexOf(";")>-1?I(T):k(ae(O))}return function(ne,_e){return ne==O||_e==O?k():I(T,ge)}}function Ut(T,O,se){for(var ge=3;ge<arguments.length;ge++)H.cc.push(arguments[ge]);return k(Le(O,se),st(T,O),Y)}function It(T){return T=="}"?k():I(he,It)}function Pn(T,O){if(v){if(T==":")return k(Je);if(O=="?")return k(Pn)}}function Nr(T,O){if(v&&(T==":"||O=="in"))return k(Je)}function Dt(T){if(v&&T==":")return H.stream.match(/^\s*\w+\s+is\b/,!1)?k(Ae,On,Je):k(Je)}function On(T,O){if(O=="is")return H.marked="keyword",k()}function Je(T,O){if(O=="keyof"||O=="typeof"||O=="infer"||O=="readonly")return H.marked="keyword",k(O=="typeof"?D:Je);if(T=="variable"||O=="void")return H.marked="type",k(nr);if(O=="|"||O=="&")return k(Je);if(T=="string"||T=="number"||T=="atom")return k(nr);if(T=="[")return k(Le("]"),st(Je,"]",","),Y,nr);if(T=="{")return k(Le("}"),ze,Y,nr);if(T=="(")return k(st(Nt,")"),Aa,nr);if(T=="<")return k(st(Je,">"),Je);if(T=="quasi")return I(rn,nr)}function Aa(T){if(T=="=>")return k(Je)}function ze(T){return T.match(/[\}\)\]]/)?k():T==","||T==";"?k(ze):I(Zr,ze)}function Zr(T,O){if(T=="variable"||H.style=="keyword")return H.marked="property",k(Zr);if(O=="?"||T=="number"||T=="string")return k(Zr);if(T==":")return k(Je);if(T=="[")return k(ae("variable"),Nr,ae("]"),Zr);if(T=="(")return I(_i,Zr);if(!T.match(/[;\}\)\],]/))return k()}function rn(T,O){return T!="quasi"?I():O.slice(O.length-2)!="${"?k(rn):k(Je,Mt)}function Mt(T){if(T=="}")return H.marked="string-2",H.state.tokenize=G,k(rn)}function Nt(T,O){return T=="variable"&&H.stream.match(/^\s*[?:]/,!1)||O=="?"?k(Nt):T==":"?k(Je):T=="spread"?k(Nt):I(Je)}function nr(T,O){if(O=="<")return k(Le(">"),st(Je,">"),Y,nr);if(O=="|"||T=="."||O=="&")return k(Je);if(T=="[")return k(Je,ae("]"),nr);if(O=="extends"||O=="implements")return H.marked="keyword",k(Je);if(O=="?")return k(Je,ae(":"),Je)}function Rn(T,O){if(O=="<")return k(Le(">"),st(Je,">"),Y,nr)}function ar(){return I(Je,on)}function on(T,O){if(O=="=")return k(Je)}function Fo(T,O){return O=="enum"?(H.marked="keyword",k(Oe)):I(yn,Pn,cr,Zu)}function yn(T,O){if(v&&ye(O))return H.marked="keyword",k(yn);if(T=="variable")return V(O),k();if(T=="spread")return k(yn);if(T=="[")return Ut(Ws,"]");if(T=="{")return Ut(xi,"}")}function xi(T,O){return T=="variable"&&!H.stream.match(/^\s*:/,!1)?(V(O),k(cr)):(T=="variable"&&(H.marked="property"),T=="spread"?k(yn):T=="}"?I():T=="["?k(Ae,ae("]"),ae(":"),xi):k(ae(":"),yn,cr))}function Ws(){return I(yn,cr)}function cr(T,O){if(O=="=")return k(D)}function Zu(T){if(T==",")return k(Fo)}function Ho(T,O){if(T=="keyword b"&&O=="else")return k(Le("form","else"),he,Y)}function Ma(T,O){if(O=="await")return k(Ma);if(T=="(")return k(Le(")"),Us,Y)}function Us(T){return T=="var"?k(Fo,Si):T=="variable"?k(Si):I(Si)}function Si(T,O){return T==")"?k():T==";"?k(Si):O=="in"||O=="of"?(H.marked="keyword",k(Ae,Si)):I(Ae,Si)}function rr(T,O){if(O=="*")return H.marked="keyword",k(rr);if(T=="variable")return V(O),k(rr);if(T=="(")return k(nt,Le(")"),st(ur,")"),Y,Dt,he,Xe);if(v&&O=="<")return k(Le(">"),st(ar,">"),Y,rr)}function _i(T,O){if(O=="*")return H.marked="keyword",k(_i);if(T=="variable")return V(O),k(_i);if(T=="(")return k(nt,Le(")"),st(ur,")"),Y,Dt,Xe);if(v&&O=="<")return k(Le(">"),st(ar,">"),Y,_i)}function Na(T,O){if(T=="keyword"||T=="variable")return H.marked="type",k(Na);if(O=="<")return k(Le(">"),st(ar,">"),Y)}function ur(T,O){return O=="@"&&k(Ae,ur),T=="spread"?k(ur):v&&ye(O)?(H.marked="keyword",k(ur)):v&&T=="this"?k(Pn,cr):I(yn,Pn,cr)}function Ju(T,O){return T=="variable"?qo(T,O):fr(T,O)}function qo(T,O){if(T=="variable")return V(O),k(fr)}function fr(T,O){if(O=="<")return k(Le(">"),st(ar,">"),Y,fr);if(O=="extends"||O=="implements"||v&&T==",")return O=="implements"&&(H.marked="keyword"),k(v?Je:Ae,fr);if(T=="{")return k(Le("}"),dr,Y)}function dr(T,O){if(T=="async"||T=="variable"&&(O=="static"||O=="get"||O=="set"||v&&ye(O))&&H.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return H.marked="keyword",k(dr);if(T=="variable"||H.style=="keyword")return H.marked="property",k(so,dr);if(T=="number"||T=="string")return k(so,dr);if(T=="[")return k(Ae,Pn,ae("]"),so,dr);if(O=="*")return H.marked="keyword",k(dr);if(v&&T=="(")return I(_i,dr);if(T==";"||T==",")return k(dr);if(T=="}")return k();if(O=="@")return k(Ae,dr)}function so(T,O){if(O=="!"||O=="?")return k(so);if(T==":")return k(Je,cr);if(O=="=")return k(D);var se=H.state.lexical.prev,ge=se&&se.info=="interface";return I(ge?_i:rr)}function Bo(T,O){return O=="*"?(H.marked="keyword",k(Vo,ae(";"))):O=="default"?(H.marked="keyword",k(Ae,ae(";"))):T=="{"?k(st(Wo,"}"),Vo,ae(";")):I(he)}function Wo(T,O){if(O=="as")return H.marked="keyword",k(ae("variable"));if(T=="variable")return I(D,Wo)}function ki(T){return T=="string"?k():T=="("?I(Ae):T=="."?I(fe):I(Uo,$r,Vo)}function Uo(T,O){return T=="{"?Ut(Uo,"}"):(T=="variable"&&V(O),O=="*"&&(H.marked="keyword"),k(Vs))}function $r(T){if(T==",")return k(Uo,$r)}function Vs(T,O){if(O=="as")return H.marked="keyword",k(Uo)}function Vo(T,O){if(O=="from")return H.marked="keyword",k(Ae)}function $t(T){return T=="]"?k():I(st(D,"]"))}function Oe(){return I(Le("form"),yn,ae("{"),Le("}"),st(Jr,"}"),Y,Y)}function Jr(){return I(yn,cr)}function js(T,O){return T.lastType=="operator"||T.lastType==","||w.test(O.charAt(0))||/[,.]/.test(O.charAt(0))}function jn(T,O,se){return O.tokenize==$&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(O.lastType)||O.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(se||0)))}return{startState:function(T){var O={tokenize:$,lastType:"sof",cc:[],lexical:new U((T||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Ne(null,null,!1),indented:T||0};return s.globalVars&&typeof s.globalVars=="object"&&(O.globalVars=s.globalVars),O},token:function(T,O){if(T.sol()&&(O.lexical.hasOwnProperty("align")||(O.lexical.align=!1),O.indented=T.indentation(),Z(T,O)),O.tokenize!=z&&T.eatSpace())return null;var se=O.tokenize(T,O);return L=="comment"?se:(O.lastType=L=="operator"&&(N=="++"||N=="--")?"incdec":L,J(O,se,L,N,T))},indent:function(T,O){if(T.tokenize==z||T.tokenize==G)return r.Pass;if(T.tokenize!=$)return 0;var se=O&&O.charAt(0),ge=T.lexical,ne;if(!/^\s*else\b/.test(O))for(var _e=T.cc.length-1;_e>=0;--_e){var ft=T.cc[_e];if(ft==Y)ge=ge.prev;else if(ft!=Ho&&ft!=Xe)break}for(;(ge.type=="stat"||ge.type=="form")&&(se=="}"||(ne=T.cc[T.cc.length-1])&&(ne==fe||ne==ce)&&!/^[,\.=+\-*:?[\(]/.test(O));)ge=ge.prev;f&&ge.type==")"&&ge.prev.type=="stat"&&(ge=ge.prev);var Vt=ge.type,bn=se==Vt;return Vt=="vardef"?ge.indented+(T.lastType=="operator"||T.lastType==","?ge.info.length+1:0):Vt=="form"&&se=="{"?ge.indented:Vt=="form"?ge.indented+c:Vt=="stat"?ge.indented+(js(T,O)?f||c:0):ge.info=="switch"&&!bn&&s.doubleIndentSwitch!=!1?ge.indented+(/^(?:case|default)\b/.test(O)?c:2*c):ge.align?ge.column+(bn?0:1):ge.indented+(bn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:jn,skipExpression:function(T){J(T,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var zue=Due.exports,Iue={exports:{}};(function(e,t){(function(r){r(Bs())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function w(k,W){function V(Ne){return W.tokenize=Ne,Ne(k,W)}var ie=k.next();if(ie=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?V(L("atom","]]>")):null:k.match("--")?V(L("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),V(N(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),W.tokenize=L("meta","?>"),"meta"):(m=k.eat("/")?"closeTag":"openTag",W.tokenize=E,"tag bracket");if(ie=="&"){var ye;return k.eat("#")?k.eat("x")?ye=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):ye=k.eatWhile(/[\d]/)&&k.eat(";"):ye=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),ye?"atom":"error"}else return k.eatWhile(/[^&<]/),null}w.isInText=!0;function E(k,W){var V=k.next();if(V==">"||V=="/"&&k.eat(">"))return W.tokenize=w,m=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return m="equals",null;if(V=="<"){W.tokenize=w,W.state=G,W.tagName=W.tagStart=null;var ie=W.tokenize(k,W);return ie?ie+" tag error":"tag error"}else return/[\'\"]/.test(V)?(W.tokenize=M(V),W.stringStartCol=k.column(),W.tokenize(k,W)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function M(k){var W=function(V,ie){for(;!V.eol();)if(V.next()==k){ie.tokenize=E;break}return"string"};return W.isInAttribute=!0,W}function L(k,W){return function(V,ie){for(;!V.eol();){if(V.match(W)){ie.tokenize=w;break}V.next()}return k}}function N(k){return function(W,V){for(var ie;(ie=W.next())!=null;){if(ie=="<")return V.tokenize=N(k+1),V.tokenize(W,V);if(ie==">")if(k==1){V.tokenize=w;break}else return V.tokenize=N(k-1),V.tokenize(W,V)}return"meta"}}function C(k){return k&&k.toLowerCase()}function $(k,W,V){this.prev=k.context,this.tagName=W||"",this.indent=k.indented,this.startOfLine=V,(h.doNotIndent.hasOwnProperty(W)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function A(k){k.context&&(k.context=k.context.prev)}function z(k,W){for(var V;;){if(!k.context||(V=k.context.tagName,!h.contextGrabbers.hasOwnProperty(C(V))||!h.contextGrabbers[C(V)].hasOwnProperty(C(W))))return;A(k)}}function G(k,W,V){return k=="openTag"?(V.tagStart=W.column(),B):k=="closeTag"?Z:G}function B(k,W,V){return k=="word"?(V.tagName=W.current(),b="tag",te):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",te(k,W,V)):(b="error",B)}function Z(k,W,V){if(k=="word"){var ie=W.current();return V.context&&V.context.tagName!=ie&&h.implicitlyClosed.hasOwnProperty(C(V.context.tagName))&&A(V),V.context&&V.context.tagName==ie||h.matchClosing===!1?(b="tag",ee):(b="tag error",U)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",ee(k,W,V)):(b="error",U)}function ee(k,W,V){return k!="endTag"?(b="error",ee):(A(V),G)}function U(k,W,V){return b="error",ee(k,W,V)}function te(k,W,V){if(k=="word")return b="attribute",J;if(k=="endTag"||k=="selfcloseTag"){var ie=V.tagName,ye=V.tagStart;return V.tagName=V.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(C(ie))?z(V,ie):(z(V,ie),V.context=new $(V,ie,ye==V.indented)),G}return b="error",te}function J(k,W,V){return k=="equals"?H:(h.allowMissing||(b="error"),te(k,W,V))}function H(k,W,V){return k=="string"?I:k=="word"&&h.allowUnquoted?(b="string",te):(b="error",te(k,W,V))}function I(k,W,V){return k=="string"?I:te(k,W,V)}return{startState:function(k){var W={tokenize:w,state:G,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(W.baseIndent=k),W},token:function(k,W){if(!W.tagName&&k.sol()&&(W.indented=k.indentation()),k.eatSpace())return null;m=null;var V=W.tokenize(k,W);return(V||m)&&V!="comment"&&(b=null,W.state=W.state(m||V,k,W),b&&(V=b=="error"?V+" error":b)),V},indent:function(k,W,V){var ie=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(ie&&ie.noIndent)return r.Pass;if(k.tokenize!=E&&k.tokenize!=w)return V?V.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(W))return 0;var ye=W&&/^<(\/)?([\w_:\.-]*)/.exec(W);if(ye&&ye[1])for(;ie;)if(ie.tagName==ye[2]){ie=ie.prev;break}else if(h.implicitlyClosed.hasOwnProperty(C(ie.tagName)))ie=ie.prev;else break;else if(ye)for(;ie;){var Ne=h.contextGrabbers[C(ie.tagName)];if(Ne&&Ne.hasOwnProperty(C(ye[2])))ie=ie.prev;else break}for(;ie&&ie.prev&&!ie.startOfLine;)ie=ie.prev;return ie?ie.indent+d:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(k){k.state==H&&(k.state=te)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var W=[],V=k.context;V;V=V.prev)W.push(V.tagName);return W.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var Fue=Iue.exports;(function(e,t){(function(r){r(Bs(),Fue,zue)})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(w){var E=w.tagName;w.tagName=null;var M=d.indent(w,"","");return w.tagName=E,M}function v(w,E){return E.context.mode==d?m(w,E,E.context):b(w,E,E.context)}function m(w,E,M){if(M.depth==2)return w.match(/^.*?\*\//)?M.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(M.state);var L=p(M.state),N=M.state.context;if(N&&w.match(/^[^>]*>\s*$/,!1)){for(;N.prev&&!N.startOfLine;)N=N.prev;N.startOfLine?L-=c.indentUnit:M.prev.state.lexical&&(L=M.prev.state.lexical.indented)}else M.depth==1&&(L+=c.indentUnit);return E.context=new o(r.startState(h,L),h,0,E.context),null}if(M.depth==1){if(w.peek()=="<")return d.skipAttribute(M.state),E.context=new o(r.startState(d,p(M.state)),d,0,E.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return M.depth=2,v(w,E)}var C=d.token(w,M.state),$=w.current(),A;return/\btag\b/.test(C)?/>$/.test($)?M.state.context?M.depth=0:E.context=E.context.prev:/^</.test($)&&(M.depth=1):!C&&(A=$.indexOf("{"))>-1&&w.backUp($.length-A),C}function b(w,E,M){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,M.state))return E.context=new o(r.startState(d,h.indent(M.state,"","")),d,0,E.context),h.skipExpression(M.state),null;var L=h.token(w,M.state);if(!L&&M.depth!=null){var N=w.current();N=="{"?M.depth++:N=="}"&&--M.depth==0&&(E.context=E.context.prev)}return L}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:v,indent:function(w,E,M){return w.context.mode.indent(w.context.state,E,M)},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}})})})();(function(e,t){(function(r){r(Bs())})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})();(function(e,t){(function(r){r(Bs())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",w=m[b],E=p.pos;function M(){r.off(document,"mousemove",L),r.off(document,"mouseup",M)}function L(N){if(N.which!=1)return M();p.moveTo(E+(N[b]-w)*(p.total/p.size))}r.on(document,"mousemove",L),r.on(document,"mouseup",M)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=m.clientX<b.left?-1:m.clientX>b.right?1:0:w=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})();const In=Gr();function Hue(e,t,r={}){const o=Rue.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),Lt(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Eu(()=>{In.value=void 0}),Lh(o)}async function que(e){var t;ww({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null})}const n1=ut({__name:"CodeMirrorContainer",props:Kl({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Kl(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Au(e,"modelValue"),s=mk(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=qe();return Hs(async()=>{const d=Hue(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),In.value=d,setTimeout(()=>In.value.refresh(),100)}),(d,h)=>(oe(),me("div",{relative:"","font-mono":"","text-sm":"",class:it(["codemirror-scrolls",d.saving?"codemirror-busy":void 0])},[Q("textarea",{ref_key:"el",ref:f},null,512)],2))}}),Bue=ut({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=qe(""),c=Gr(void 0),f=qe(!1),d=qe(!0),h=qe(!1),p=qe();Lt(()=>r.file,async()=>{var B;if(!h.value){d.value=!0;try{if(!r.file||!((B=r.file)!=null&&B.filepath)){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await mt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(Z){console.error("cannot fetch file",Z)}await Ot(),d.value=!1}},{immediate:!0}),Lt(()=>[d.value,h.value,r.file,yw.value],([B,Z,ee,U])=>{!B&&!Z&&(U!=null?Ot(()=>{var H;const te=p.value,J=te??{line:U??0,ch:0};te?p.value=void 0:((H=In.value)==null||H.scrollIntoView(J,100),Ot(()=>{var I,k;(I=In.value)==null||I.focus(),(k=In.value)==null||k.setCursor(J)}))}):Ot(()=>{var te;(te=In.value)==null||te.focus()}))},{flush:"post"});const v=ke(()=>{var B,Z;return((Z=(B=r.file)==null?void 0:B.filepath)==null?void 0:Z.split(/\./g).pop())||"js"}),m=qe(),b=ke(()=>{var B;return((B=r.file)==null?void 0:B.tasks.filter(Z=>{var ee;return((ee=Z.result)==null?void 0:ee.state)==="fail"}))||[]}),w=[],E=[],M=[],L=qe(!1);function N(){M.forEach(([B,Z,ee])=>{B.removeEventListener("click",Z),ee()}),M.length=0}DE(m,()=>{var B;(B=In.value)==null||B.refresh()});function C(){f.value=c.value!==In.value.getValue()}Lt(f,B=>{o("draft",B)},{immediate:!0});function $(B){const Z=((B==null?void 0:B.stacks)||[]).filter(I=>{var k;return I.file&&I.file===((k=r.file)==null?void 0:k.filepath)}),ee=Z==null?void 0:Z[0];if(!ee)return;const U=document.createElement("div");U.className="op80 flex gap-x-2 items-center";const te=document.createElement("pre");te.className="c-red-600 dark:c-red-400",te.textContent=`${" ".repeat(ee.column)}^ ${(B==null?void 0:B.nameStr)||B.name}: ${(B==null?void 0:B.message)||""}`,U.appendChild(te);const J=document.createElement("span");J.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",J.tabIndex=0,J.ariaLabel="Open in Editor",Ob(J,{content:"Open in Editor",placement:"bottom"},!1);const H=async()=>{await Uw(ee.file,ee.line,ee.column)};J.addEventListener("click",H),U.appendChild(J),M.push([J,H,()=>qh(J)]),E.push(In.value.addLineClass(ee.line-1,"wrap","bg-red-500/10")),w.push(In.value.addLineWidget(ee.line-1,U))}const{pause:A,resume:z}=Lt([In,b,Ll],([B,Z,ee])=>{if(!B){w.length=0,E.length=0,N();return}ee&&(B.off("changes",C),N(),w.forEach(U=>U.clear()),E.forEach(U=>B==null?void 0:B.removeLineClass(U,"wrap")),w.length=0,E.length=0,setTimeout(()=>{Z.forEach(U=>{var te,J;(J=(te=U.result)==null?void 0:te.errors)==null||J.forEach($)}),L.value||B.clearHistory(),B.on("changes",C)},100))},{flush:"post"});jh(()=>[Ll.value,h.value,p.value],([B,Z],ee)=>{var U;B&&!Z&&ee&&ee[2]&&((U=In.value)==null||U.setCursor(ee[2]))},{debounce:100,flush:"post"});async function G(B){if(h.value)return;A(),h.value=!0,await Ot();const Z=In.value;Z&&(Z.setOption("readOnly",!0),await Ot(),Z.refresh()),p.value=Z==null?void 0:Z.getCursor(),Z==null||Z.off("changes",C),N(),w.forEach(ee=>ee.clear()),E.forEach(ee=>Z==null?void 0:Z.removeLineClass(ee,"wrap")),w.length=0,E.length=0;try{L.value=!0,await mt.rpc.saveTestFile(r.file.filepath,B),c.value=B,f.value=!1}catch(ee){console.error("error saving file",ee)}L.value||Z==null||Z.clearHistory();try{await km(Ll).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await km(Ll).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(ee=>{var U,te;(te=(U=ee.result)==null?void 0:U.errors)==null||te.forEach($)}),Z==null||Z.on("changes",C),h.value=!1,await Ot(),Z&&(Z.setOption("readOnly",!1),await Ot(),Z.refresh()),z()}return Mh(N),(B,Z)=>{const ee=n1;return oe(),tt(ee,hi({ref_key:"editor",ref:m,modelValue:F(s),"onUpdate:modelValue":Z[0]||(Z[0]=U=>kt(s)?s.value=U:null),"h-full":""},{lineNumbers:!0,readOnly:F(kr),saving:F(h)},{mode:F(v),"data-testid":"code-mirror",onSave:G}),null,16,["modelValue","mode"])}}}),Wue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Uue={"p-4":"",relative:""},Vue={op50:"","font-mono":"","text-sm":""},jue={key:0,"p-5":""},Gue={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Kue={key:0},Xue={p:"x3 y-1","bg-overlay":"",border:"base b t"},Yue=ut({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=SE(()=>mt.rpc.getTransformResult(r.projectName,r.id,!!Do)),c=ke(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=ke(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=ke(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=ke(()=>{var p,v,m,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(m=s.value)==null?void 0:m.map)==null?void 0:b.version}});return rw("Escape",()=>{o("close")}),(p,v)=>{const m=wi,b=n1;return oe(),me("div",Wue,[Q("div",Uue,[v[1]||(v[1]=Q("p",null,"Module Info",-1)),Q("p",Vue,He(p.id),1),Pe(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=w=>o("close"))})]),F(s)?(oe(),me(ct,{key:1},[Q("div",Gue,[v[2]||(v[2]=Q("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=Q("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Pe(b,hi({"h-full":"","model-value":F(f),"read-only":""},{lineNumbers:!0},{mode:F(c)}),null,16,["model-value","mode"]),Pe(b,hi({"h-full":"","model-value":F(d),"read-only":""},{lineNumbers:!0},{mode:F(c)}),null,16,["model-value","mode"])]),F(h).mappings!==""?(oe(),me("div",Kue,[Q("div",Xue," Source map (v"+He(F(h).version)+") ",1),Pe(b,hi({"model-value":F(h).mappings,"read-only":""},{lineNumbers:!0},{mode:F(c)}),null,16,["model-value","mode"])])):Ke("",!0)],64)):(oe(),me("div",jue," No transform result found for this module. "))])}}});function Zue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Qd="http://www.w3.org/1999/xhtml";const Xm={svg:"http://www.w3.org/2000/svg",xhtml:Qd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ju(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Xm.hasOwnProperty(t)?{space:Xm[t],local:e}:e}function Jue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Qd&&t.documentElement.namespaceURI===Qd?t.createElement(e):t.createElementNS(r,e)}}function Que(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function r1(e){var t=ju(e);return(t.local?Que:Jue)(t)}function efe(){}function tp(e){return e==null?efe:function(){return this.querySelector(e)}}function tfe(e){typeof e!="function"&&(e=tp(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new tr(o,this._parents)}function nfe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function rfe(){return[]}function i1(e){return e==null?rfe:function(){return this.querySelectorAll(e)}}function ife(e){return function(){return nfe(e.apply(this,arguments))}}function ofe(e){typeof e=="function"?e=ife(e):e=i1(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new tr(o,s)}function o1(e){return function(){return this.matches(e)}}function s1(e){return function(t){return t.matches(e)}}var sfe=Array.prototype.find;function lfe(e){return function(){return sfe.call(this.children,e)}}function afe(){return this.firstElementChild}function cfe(e){return this.select(e==null?afe:lfe(typeof e=="function"?e:s1(e)))}var ufe=Array.prototype.filter;function ffe(){return Array.from(this.children)}function dfe(e){return function(){return ufe.call(this.children,e)}}function hfe(e){return this.selectAll(e==null?ffe:dfe(typeof e=="function"?e:s1(e)))}function pfe(e){typeof e!="function"&&(e=o1(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new tr(o,this._parents)}function l1(e){return new Array(e.length)}function gfe(){return new tr(this._enter||this._groups.map(l1),this._parents)}function uu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}uu.prototype={constructor:uu,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 vfe(e){return function(){return e}}function mfe(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new uu(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function yfe(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),w;for(d=0;d<v;++d)(h=t[d])&&(b[d]=w=f.call(h,h.__data__,d,t)+"",p.has(w)?s[d]=h:p.set(w,h));for(d=0;d<m;++d)w=f.call(e,c[d],d,c)+"",(h=p.get(w))?(o[d]=h,h.__data__=c[d],p.delete(w)):r[d]=new uu(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function bfe(e){return e.__data__}function wfe(e,t){if(!arguments.length)return Array.from(this,bfe);var r=t?yfe:mfe,o=this._parents,s=this._groups;typeof e!="function"&&(e=vfe(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,w=xfe(e.call(v,v&&v.__data__,p,o)),E=w.length,M=d[p]=new Array(E),L=f[p]=new Array(E),N=h[p]=new Array(b);r(v,m,M,L,N,w,t);for(var C=0,$=0,A,z;C<E;++C)if(A=M[C]){for(C>=$&&($=C+1);!(z=L[$])&&++$<E;);A._next=z||null}}return f=new tr(f,o),f._enter=d,f._exit=h,f}function xfe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Sfe(){return new tr(this._exit||this._groups.map(l1),this._parents)}function _fe(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function kfe(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),w,E=0;E<m;++E)(w=p[E]||v[E])&&(b[E]=w);for(;h<s;++h)d[h]=r[h];return new tr(d,this._parents)}function Tfe(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function Cfe(e){e||(e=Efe);function t(m,b){return m&&b?e(m.__data__,b.__data__):!m-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new tr(s,this._parents).order()}function Efe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Lfe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Afe(){return Array.from(this)}function Mfe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function Nfe(){let e=0;for(const t of this)++e;return e}function $fe(){return!this.node()}function Pfe(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function Ofe(e){return function(){this.removeAttribute(e)}}function Rfe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Dfe(e,t){return function(){this.setAttribute(e,t)}}function zfe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ife(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Ffe(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 Hfe(e,t){var r=ju(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?Rfe:Ofe:typeof t=="function"?r.local?Ffe:Ife:r.local?zfe:Dfe)(r,t))}function a1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function qfe(e){return function(){this.style.removeProperty(e)}}function Bfe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Wfe(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Ufe(e,t,r){return arguments.length>1?this.each((t==null?qfe:typeof t=="function"?Wfe:Bfe)(e,t,r??"")):Ds(this.node(),e)}function Ds(e,t){return e.style.getPropertyValue(t)||a1(e).getComputedStyle(e,null).getPropertyValue(t)}function Vfe(e){return function(){delete this[e]}}function jfe(e,t){return function(){this[e]=t}}function Gfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Kfe(e,t){return arguments.length>1?this.each((t==null?Vfe:typeof t=="function"?Gfe:jfe)(e,t)):this.node()[e]}function c1(e){return e.trim().split(/^|\s+/)}function np(e){return e.classList||new u1(e)}function u1(e){this._node=e,this._names=c1(e.getAttribute("class")||"")}u1.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 f1(e,t){for(var r=np(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function d1(e,t){for(var r=np(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function Xfe(e){return function(){f1(this,e)}}function Yfe(e){return function(){d1(this,e)}}function Zfe(e,t){return function(){(t.apply(this,arguments)?f1:d1)(this,e)}}function Jfe(e,t){var r=c1(e+"");if(arguments.length<2){for(var o=np(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Zfe:t?Xfe:Yfe)(r,t))}function Qfe(){this.textContent=""}function ede(e){return function(){this.textContent=e}}function tde(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function nde(e){return arguments.length?this.each(e==null?Qfe:(typeof e=="function"?tde:ede)(e)):this.node().textContent}function rde(){this.innerHTML=""}function ide(e){return function(){this.innerHTML=e}}function ode(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function sde(e){return arguments.length?this.each(e==null?rde:(typeof e=="function"?ode:ide)(e)):this.node().innerHTML}function lde(){this.nextSibling&&this.parentNode.appendChild(this)}function ade(){return this.each(lde)}function cde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ude(){return this.each(cde)}function fde(e){var t=typeof e=="function"?e:r1(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function dde(){return null}function hde(e,t){var r=typeof e=="function"?e:r1(e),o=t==null?dde:typeof t=="function"?t:tp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function pde(){var e=this.parentNode;e&&e.removeChild(this)}function gde(){return this.each(pde)}function vde(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function mde(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function yde(e){return this.select(e?mde:vde)}function bde(e){return arguments.length?this.property("__data__",e):this.node().__data__}function wde(e){return function(t){e.call(this,t,this.__data__)}}function xde(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 Sde(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function _de(e,t,r){return function(){var o=this.__on,s,c=wde(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function kde(e,t,r){var o=xde(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?_de:Sde,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function h1(e,t,r){var o=a1(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 Tde(e,t){return function(){return h1(this,e,t)}}function Cde(e,t){return function(){return h1(this,e,t.apply(this,arguments))}}function Ede(e,t){return this.each((typeof t=="function"?Cde:Tde)(e,t))}function*Lde(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var p1=[null];function tr(e,t){this._groups=e,this._parents=t}function Ca(){return new tr([[document.documentElement]],p1)}function Ade(){return this}tr.prototype=Ca.prototype={constructor:tr,select:tfe,selectAll:ofe,selectChild:cfe,selectChildren:hfe,filter:pfe,data:wfe,enter:gfe,exit:Sfe,join:_fe,merge:kfe,selection:Ade,order:Tfe,sort:Cfe,call:Lfe,nodes:Afe,node:Mfe,size:Nfe,empty:$fe,each:Pfe,attr:Hfe,style:Ufe,property:Kfe,classed:Jfe,text:nde,html:sde,raise:ade,lower:ude,append:fde,insert:hde,remove:gde,clone:yde,datum:bde,on:kde,dispatch:Ede,[Symbol.iterator]:Lde};function Bn(e){return typeof e=="string"?new tr([[document.querySelector(e)]],[document.documentElement]):new tr([[e]],p1)}function Mde(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ci(e,t){if(e=Mde(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]}class En{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new En(t,r)}add(t){return new En(this.x+t.x,this.y+t.y)}subtract(t){return new En(this.x-t.x,this.y-t.y)}multiply(t){return new En(this.x*t,this.y*t)}divide(t){return new En(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 En(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 En(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new En(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var Nde={value:()=>{}};function Ea(){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 Dc(r)}function Dc(e){this._=e}function $de(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}})}Dc.prototype=Ea.prototype={constructor:Dc,on:function(e,t){var r=this._,o=$de(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Pde(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=Ym(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Ym(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 Dc(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function Pde(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function Ym(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=Nde,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Ode={passive:!1},la={capture:!0,passive:!1};function hd(e){e.stopImmediatePropagation()}function Ls(e){e.preventDefault(),e.stopImmediatePropagation()}function g1(e){var t=e.document.documentElement,r=Bn(e).on("dragstart.drag",Ls,la);"onselectstart"in t?r.on("selectstart.drag",Ls,la):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function v1(e,t){var r=e.document.documentElement,o=Bn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Ls,la),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 wc=e=>()=>e;function eh(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}eh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Rde(e){return!e.ctrlKey&&!e.button}function Dde(){return this.parentNode}function zde(e,t){return t??{x:e.x,y:e.y}}function Ide(){return navigator.maxTouchPoints||"ontouchstart"in this}function Fde(){var e=Rde,t=Dde,r=zde,o=Ide,s={},c=Ea("start","drag","end"),f=0,d,h,p,v,m=0;function b(A){A.on("mousedown.drag",w).filter(o).on("touchstart.drag",L).on("touchmove.drag",N,Ode).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(A,z){if(!(v||!e.call(this,A,z))){var G=$(this,t.call(this,A,z),A,z,"mouse");G&&(Bn(A.view).on("mousemove.drag",E,la).on("mouseup.drag",M,la),g1(A.view),hd(A),p=!1,d=A.clientX,h=A.clientY,G("start",A))}}function E(A){if(Ls(A),!p){var z=A.clientX-d,G=A.clientY-h;p=z*z+G*G>m}s.mouse("drag",A)}function M(A){Bn(A.view).on("mousemove.drag mouseup.drag",null),v1(A.view,p),Ls(A),s.mouse("end",A)}function L(A,z){if(e.call(this,A,z)){var G=A.changedTouches,B=t.call(this,A,z),Z=G.length,ee,U;for(ee=0;ee<Z;++ee)(U=$(this,B,A,z,G[ee].identifier,G[ee]))&&(hd(A),U("start",A,G[ee]))}}function N(A){var z=A.changedTouches,G=z.length,B,Z;for(B=0;B<G;++B)(Z=s[z[B].identifier])&&(Ls(A),Z("drag",A,z[B]))}function C(A){var z=A.changedTouches,G=z.length,B,Z;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),B=0;B<G;++B)(Z=s[z[B].identifier])&&(hd(A),Z("end",A,z[B]))}function $(A,z,G,B,Z,ee){var U=c.copy(),te=ci(ee||G,z),J,H,I;if((I=r.call(A,new eh("beforestart",{sourceEvent:G,target:b,identifier:Z,active:f,x:te[0],y:te[1],dx:0,dy:0,dispatch:U}),B))!=null)return J=I.x-te[0]||0,H=I.y-te[1]||0,function k(W,V,ie){var ye=te,Ne;switch(W){case"start":s[Z]=k,Ne=f++;break;case"end":delete s[Z],--f;case"drag":te=ci(ie||V,z),Ne=f;break}U.call(W,A,new eh(W,{sourceEvent:V,subject:I,target:b,identifier:Z,active:Ne,x:te[0]+J,y:te[1]+H,dx:te[0]-ye[0],dy:te[1]-ye[1],dispatch:U}),B)}}return b.filter=function(A){return arguments.length?(e=typeof A=="function"?A:wc(!!A),b):e},b.container=function(A){return arguments.length?(t=typeof A=="function"?A:wc(A),b):t},b.subject=function(A){return arguments.length?(r=typeof A=="function"?A:wc(A),b):r},b.touchable=function(A){return arguments.length?(o=typeof A=="function"?A:wc(!!A),b):o},b.on=function(){var A=c.on.apply(c,arguments);return A===c?b:A},b.clickDistance=function(A){return arguments.length?(m=(A=+A)*A,b):Math.sqrt(m)},b}function rp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function m1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function La(){}var aa=.7,fu=1/aa,As="\\s*([+-]?\\d+)\\s*",ca="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hde=/^#([0-9a-f]{3,8})$/,qde=new RegExp(`^rgb\\(${As},${As},${As}\\)$`),Bde=new RegExp(`^rgb\\(${Vr},${Vr},${Vr}\\)$`),Wde=new RegExp(`^rgba\\(${As},${As},${As},${ca}\\)$`),Ude=new RegExp(`^rgba\\(${Vr},${Vr},${Vr},${ca}\\)$`),Vde=new RegExp(`^hsl\\(${ca},${Vr},${Vr}\\)$`),jde=new RegExp(`^hsla\\(${ca},${Vr},${Vr},${ca}\\)$`),Zm={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};rp(La,ua,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Jm,formatHex:Jm,formatHex8:Gde,formatHsl:Kde,formatRgb:Qm,toString:Qm});function Jm(){return this.rgb().formatHex()}function Gde(){return this.rgb().formatHex8()}function Kde(){return y1(this).formatHsl()}function Qm(){return this.rgb().formatRgb()}function ua(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Hde.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?e0(t):r===3?new Un(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?xc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?xc(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=qde.exec(e))?new Un(t[1],t[2],t[3],1):(t=Bde.exec(e))?new Un(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Wde.exec(e))?xc(t[1],t[2],t[3],t[4]):(t=Ude.exec(e))?xc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Vde.exec(e))?r0(t[1],t[2]/100,t[3]/100,1):(t=jde.exec(e))?r0(t[1],t[2]/100,t[3]/100,t[4]):Zm.hasOwnProperty(e)?e0(Zm[e]):e==="transparent"?new Un(NaN,NaN,NaN,0):null}function e0(e){return new Un(e>>16&255,e>>8&255,e&255,1)}function xc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Un(e,t,r,o)}function Xde(e){return e instanceof La||(e=ua(e)),e?(e=e.rgb(),new Un(e.r,e.g,e.b,e.opacity)):new Un}function th(e,t,r,o){return arguments.length===1?Xde(e):new Un(e,t,r,o??1)}function Un(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}rp(Un,th,m1(La,{brighter(e){return e=e==null?fu:Math.pow(fu,e),new Un(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?aa:Math.pow(aa,e),new Un(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Un(No(this.r),No(this.g),No(this.b),du(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:t0,formatHex:t0,formatHex8:Yde,formatRgb:n0,toString:n0}));function t0(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}`}function Yde(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}${Eo((isNaN(this.opacity)?1:this.opacity)*255)}`}function n0(){const e=du(this.opacity);return`${e===1?"rgb(":"rgba("}${No(this.r)}, ${No(this.g)}, ${No(this.b)}${e===1?")":`, ${e})`}`}function du(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function No(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Eo(e){return e=No(e),(e<16?"0":"")+e.toString(16)}function r0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new wr(e,t,r,o)}function y1(e){if(e instanceof wr)return new wr(e.h,e.s,e.l,e.opacity);if(e instanceof La||(e=ua(e)),!e)return new wr;if(e instanceof wr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new wr(f,d,h,e.opacity)}function Zde(e,t,r,o){return arguments.length===1?y1(e):new wr(e,t,r,o??1)}function wr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}rp(wr,Zde,m1(La,{brighter(e){return e=e==null?fu:Math.pow(fu,e),new wr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?aa:Math.pow(aa,e),new wr(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 Un(pd(e>=240?e-240:e+120,s,o),pd(e,s,o),pd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new wr(i0(this.h),Sc(this.s),Sc(this.l),du(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=du(this.opacity);return`${e===1?"hsl(":"hsla("}${i0(this.h)}, ${Sc(this.s)*100}%, ${Sc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function i0(e){return e=(e||0)%360,e<0?e+360:e}function Sc(e){return Math.max(0,Math.min(1,e||0))}function pd(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 b1=e=>()=>e;function Jde(e,t){return function(r){return e+r*t}}function Qde(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 ehe(e){return(e=+e)==1?w1:function(t,r){return r-t?Qde(t,r,e):b1(isNaN(t)?r:t)}}function w1(e,t){var r=t-e;return r?Jde(e,r):b1(isNaN(e)?t:e)}const o0=function e(t){var r=ehe(t);function o(s,c){var f=r((s=th(s)).r,(c=th(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=w1(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function Ui(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var nh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gd=new RegExp(nh.source,"g");function the(e){return function(){return e}}function nhe(e){return function(t){return e(t)+""}}function rhe(e,t){var r=nh.lastIndex=gd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=nh.exec(e))&&(s=gd.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:Ui(o,s)})),r=gd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?nhe(h[0].x):the(t):(t=h.length,function(p){for(var v=0,m;v<t;++v)d[(m=h[v]).i]=m.x(p);return d.join("")})}var s0=180/Math.PI,rh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function x1(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*s0,skewX:Math.atan(h)*s0,scaleX:f,scaleY:d}}var _c;function ihe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?rh:x1(t.a,t.b,t.c,t.d,t.e,t.f)}function ohe(e){return e==null||(_c||(_c=document.createElementNS("http://www.w3.org/2000/svg","g")),_c.setAttribute("transform",e),!(e=_c.transform.baseVal.consolidate()))?rh:(e=e.matrix,x1(e.a,e.b,e.c,e.d,e.e,e.f))}function S1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,w,E){if(p!==m||v!==b){var M=w.push("translate(",null,t,null,r);E.push({i:M-4,x:Ui(p,m)},{i:M-2,x:Ui(v,b)})}else(m||b)&&w.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:Ui(p,v)})):v&&m.push(s(m)+"rotate("+v+o)}function d(p,v,m,b){p!==v?b.push({i:m.push(s(m)+"skewX(",null,o)-2,x:Ui(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,w,E){if(p!==m||v!==b){var M=w.push(s(w)+"scale(",null,",",null,")");E.push({i:M-4,x:Ui(p,m)},{i:M-2,x:Ui(v,b)})}else(m!==1||b!==1)&&w.push(s(w)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(w){for(var E=-1,M=b.length,L;++E<M;)m[(L=b[E]).i]=L.x(w);return m.join("")}}}var she=S1(ihe,"px, ","px)","deg)"),lhe=S1(ohe,", ",")",")"),ahe=1e-12;function l0(e){return((e=Math.exp(e))+1/e)/2}function che(e){return((e=Math.exp(e))-1/e)/2}function uhe(e){return((e=Math.exp(2*e))-1)/(e+1)}const fhe=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],w=v-d,E=m-h,M=w*w+E*E,L,N;if(M<ahe)N=Math.log(b/p)/t,L=function(B){return[d+B*w,h+B*E,p*Math.exp(t*B*N)]};else{var C=Math.sqrt(M),$=(b*b-p*p+o*M)/(2*p*r*C),A=(b*b-p*p-o*M)/(2*b*r*C),z=Math.log(Math.sqrt($*$+1)-$),G=Math.log(Math.sqrt(A*A+1)-A);N=(G-z)/t,L=function(B){var Z=B*N,ee=l0(z),U=p/(r*C)*(ee*uhe(t*Z+z)-che(z));return[d+U*w,h+U*E,p*ee/l0(t*Z+z)]}}return L.duration=N*1e3*t/Math.SQRT2,L}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s}(Math.SQRT2,2,4);var zs=0,Al=0,kl=0,_1=1e3,hu,Ml,pu=0,zo=0,Gu=0,fa=typeof performance=="object"&&performance.now?performance:Date,k1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ip(){return zo||(k1(dhe),zo=fa.now()+Gu)}function dhe(){zo=0}function gu(){this._call=this._time=this._next=null}gu.prototype=op.prototype={constructor:gu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ip():+r)+(t==null?0:+t),!this._next&&Ml!==this&&(Ml?Ml._next=this:hu=this,Ml=this),this._call=e,this._time=r,ih()},stop:function(){this._call&&(this._call=null,this._time=1/0,ih())}};function op(e,t,r){var o=new gu;return o.restart(e,t,r),o}function hhe(){ip(),++zs;for(var e=hu,t;e;)(t=zo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--zs}function a0(){zo=(pu=fa.now())+Gu,zs=Al=0;try{hhe()}finally{zs=0,ghe(),zo=0}}function phe(){var e=fa.now(),t=e-pu;t>_1&&(Gu-=t,pu=e)}function ghe(){for(var e,t=hu,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:hu=r);Ml=e,ih(o)}function ih(e){if(!zs){Al&&(Al=clearTimeout(Al));var t=e-zo;t>24?(e<1/0&&(Al=setTimeout(a0,e-fa.now()-Gu)),kl&&(kl=clearInterval(kl))):(kl||(pu=fa.now(),kl=setInterval(phe,_1)),zs=1,k1(a0))}}function c0(e,t,r){var o=new gu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var vhe=Ea("start","end","cancel","interrupt"),mhe=[],T1=0,u0=1,oh=2,zc=3,f0=4,sh=5,Ic=6;function Ku(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;yhe(e,r,{name:t,index:o,group:s,on:vhe,tween:mhe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:T1})}function sp(e,t){var r=Mr(e,t);if(r.state>T1)throw new Error("too late; already scheduled");return r}function Yr(e,t){var r=Mr(e,t);if(r.state>zc)throw new Error("too late; already running");return r}function Mr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function yhe(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=op(c,0,r.time);function c(p){r.state=u0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,w;if(r.state!==u0)return h();for(v in o)if(w=o[v],w.name===r.name){if(w.state===zc)return c0(f);w.state===f0?(w.state=Ic,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[v]):+v<t&&(w.state=Ic,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[v])}if(c0(function(){r.state===zc&&(r.state=f0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=oh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===oh){for(r.state=zc,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(w=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=w);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=sh,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===sh&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Ic,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Fc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>oh&&o.state<sh,o.state=Ic,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function bhe(e){return this.each(function(){Fc(this,e)})}function whe(e,t){var r,o;return function(){var s=Yr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function xhe(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Yr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function She(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Mr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?whe:xhe)(r,e,t))}function lp(e,t,r){var o=e._id;return e.each(function(){var s=Yr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Mr(s,o).value[t]}}function C1(e,t){var r;return(typeof t=="number"?Ui:t instanceof ua?o0:(r=ua(t))?(t=r,o0):rhe)(e,t)}function _he(e){return function(){this.removeAttribute(e)}}function khe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function The(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function Che(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function Ehe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Lhe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Ahe(e,t){var r=ju(e),o=r==="transform"?lhe:C1;return this.attrTween(e,typeof t=="function"?(r.local?Lhe:Ehe)(r,o,lp(this,"attr."+e,t)):t==null?(r.local?khe:_he)(r):(r.local?Che:The)(r,o,t))}function Mhe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Nhe(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function $he(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Nhe(e,c)),r}return s._value=t,s}function Phe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Mhe(e,c)),r}return s._value=t,s}function Ohe(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=ju(e);return this.tween(r,(o.local?$he:Phe)(o,t))}function Rhe(e,t){return function(){sp(this,e).delay=+t.apply(this,arguments)}}function Dhe(e,t){return t=+t,function(){sp(this,e).delay=t}}function zhe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Rhe:Dhe)(t,e)):Mr(this.node(),t).delay}function Ihe(e,t){return function(){Yr(this,e).duration=+t.apply(this,arguments)}}function Fhe(e,t){return t=+t,function(){Yr(this,e).duration=t}}function Hhe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Ihe:Fhe)(t,e)):Mr(this.node(),t).duration}function qhe(e,t){if(typeof t!="function")throw new Error;return function(){Yr(this,e).ease=t}}function Bhe(e){var t=this._id;return arguments.length?this.each(qhe(t,e)):Mr(this.node(),t).ease}function Whe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Yr(this,e).ease=r}}function Uhe(e){if(typeof e!="function")throw new Error;return this.each(Whe(this._id,e))}function Vhe(e){typeof e!="function"&&(e=o1(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new mi(o,this._parents,this._name,this._id)}function jhe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,w=0;w<v;++w)(b=h[w]||p[w])&&(m[w]=b);for(;d<o;++d)f[d]=t[d];return new mi(f,this._parents,this._name,this._id)}function Ghe(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 Khe(e,t,r){var o,s,c=Ghe(t)?sp:Yr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function Xhe(e,t){var r=this._id;return arguments.length<2?Mr(this.node(),r).on.on(e):this.each(Khe(r,e,t))}function Yhe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Zhe(){return this.on("end.remove",Yhe(this._id))}function Jhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=tp(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,m,b=0;b<h;++b)(v=d[b])&&(m=e.call(v,v.__data__,b,d))&&("__data__"in v&&(m.__data__=v.__data__),p[b]=m,Ku(p[b],t,r,b,p,Mr(v,r)));return new mi(c,this._parents,t,r)}function Qhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=i1(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),w,E=Mr(v,r),M=0,L=b.length;M<L;++M)(w=b[M])&&Ku(w,t,r,M,b,E);c.push(b),f.push(v)}return new mi(c,f,t,r)}var epe=Ca.prototype.constructor;function tpe(){return new epe(this._groups,this._parents)}function npe(e,t){var r,o,s;return function(){var c=Ds(this,e),f=(this.style.removeProperty(e),Ds(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function E1(e){return function(){this.style.removeProperty(e)}}function rpe(e,t,r){var o,s=r+"",c;return function(){var f=Ds(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function ipe(e,t,r){var o,s,c;return function(){var f=Ds(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Ds(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function ope(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Yr(this,e),p=h.on,v=h.value[c]==null?d||(d=E1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function spe(e,t,r){var o=(e+="")=="transform"?she:C1;return t==null?this.styleTween(e,npe(e,o)).on("end.style."+e,E1(e)):typeof t=="function"?this.styleTween(e,ipe(e,o,lp(this,"style."+e,t))).each(ope(this._id,e)):this.styleTween(e,rpe(e,o,t),r).on("end.style."+e,null)}function lpe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function ape(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&lpe(e,f,r)),o}return c._value=t,c}function cpe(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,ape(e,t,r??""))}function upe(e){return function(){this.textContent=e}}function fpe(e){return function(){var t=e(this);this.textContent=t??""}}function dpe(e){return this.tween("text",typeof e=="function"?fpe(lp(this,"text",e)):upe(e==null?"":e+""))}function hpe(e){return function(t){this.textContent=e.call(this,t)}}function ppe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&hpe(s)),t}return o._value=e,o}function gpe(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,ppe(e))}function vpe(){for(var e=this._name,t=this._id,r=L1(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=Mr(h,t);Ku(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new mi(o,this._parents,e,r)}function mpe(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=Yr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var ype=0;function mi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function L1(){return++ype}var si=Ca.prototype;mi.prototype={constructor:mi,select:Jhe,selectAll:Qhe,selectChild:si.selectChild,selectChildren:si.selectChildren,filter:Vhe,merge:jhe,selection:tpe,transition:vpe,call:si.call,nodes:si.nodes,node:si.node,size:si.size,empty:si.empty,each:si.each,on:Xhe,attr:Ahe,attrTween:Ohe,style:spe,styleTween:cpe,text:dpe,textTween:gpe,remove:Zhe,tween:She,delay:zhe,duration:Hhe,ease:Bhe,easeVarying:Uhe,end:mpe,[Symbol.iterator]:si[Symbol.iterator]};function bpe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var wpe={time:null,delay:0,duration:250,ease:bpe};function xpe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function Spe(e){var t,r;e instanceof mi?(t=e._id,e=e._name):(t=L1(),(r=wpe).time=ip(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&Ku(h,e,t,p,f,r||xpe(h,t));return new mi(o,this._parents,e,t)}Ca.prototype.interrupt=bhe;Ca.prototype.transition=Spe;const kc=e=>()=>e;function _pe(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 di(e,t,r){this.k=e,this.x=t,this.y=r}di.prototype={constructor:di,scale:function(e){return e===1?this:new di(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new di(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 ap=new di(1,0,0);di.prototype;function vd(e){e.stopImmediatePropagation()}function Tl(e){e.preventDefault(),e.stopImmediatePropagation()}function kpe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Tpe(){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 d0(){return this.__zoom||ap}function Cpe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Epe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Lpe(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function Ape(){var e=kpe,t=Tpe,r=Lpe,o=Cpe,s=Epe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=fhe,p=Ea("start","zoom","end"),v,m,b,w=500,E=150,M=0,L=10;function N(I){I.property("__zoom",d0).on("wheel.zoom",Z,{passive:!1}).on("mousedown.zoom",ee).on("dblclick.zoom",U).filter(s).on("touchstart.zoom",te).on("touchmove.zoom",J).on("touchend.zoom touchcancel.zoom",H).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}N.transform=function(I,k,W,V){var ie=I.selection?I.selection():I;ie.property("__zoom",d0),I!==ie?z(I,k,W,V):ie.interrupt().each(function(){G(this,arguments).event(V).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},N.scaleBy=function(I,k,W,V){N.scaleTo(I,function(){var ie=this.__zoom.k,ye=typeof k=="function"?k.apply(this,arguments):k;return ie*ye},W,V)},N.scaleTo=function(I,k,W,V){N.transform(I,function(){var ie=t.apply(this,arguments),ye=this.__zoom,Ne=W==null?A(ie):typeof W=="function"?W.apply(this,arguments):W,We=ye.invert(Ne),Ve=typeof k=="function"?k.apply(this,arguments):k;return r($(C(ye,Ve),Ne,We),ie,f)},W,V)},N.translateBy=function(I,k,W,V){N.transform(I,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof W=="function"?W.apply(this,arguments):W),t.apply(this,arguments),f)},null,V)},N.translateTo=function(I,k,W,V,ie){N.transform(I,function(){var ye=t.apply(this,arguments),Ne=this.__zoom,We=V==null?A(ye):typeof V=="function"?V.apply(this,arguments):V;return r(ap.translate(We[0],We[1]).scale(Ne.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof W=="function"?-W.apply(this,arguments):-W),ye,f)},V,ie)};function C(I,k){return k=Math.max(c[0],Math.min(c[1],k)),k===I.k?I:new di(k,I.x,I.y)}function $(I,k,W){var V=k[0]-W[0]*I.k,ie=k[1]-W[1]*I.k;return V===I.x&&ie===I.y?I:new di(I.k,V,ie)}function A(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function z(I,k,W,V){I.on("start.zoom",function(){G(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){G(this,arguments).event(V).end()}).tween("zoom",function(){var ie=this,ye=arguments,Ne=G(ie,ye).event(V),We=t.apply(ie,ye),Ve=W==null?A(We):typeof W=="function"?W.apply(ie,ye):W,nt=Math.max(We[1][0]-We[0][0],We[1][1]-We[0][1]),et=ie.__zoom,Xe=typeof k=="function"?k.apply(ie,ye):k,Le=h(et.invert(Ve).concat(nt/et.k),Xe.invert(Ve).concat(nt/Xe.k));return function(Y){if(Y===1)Y=Xe;else{var ae=Le(Y),he=nt/ae[2];Y=new di(he,Ve[0]-ae[0]*he,Ve[1]-ae[1]*he)}Ne.zoom(null,Y)}})}function G(I,k,W){return!W&&I.__zooming||new B(I,k)}function B(I,k){this.that=I,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(I,k),this.taps=0}B.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,k){return this.mouse&&I!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var k=Bn(this.that).datum();p.call(I,this.that,new _pe(I,{sourceEvent:this.sourceEvent,target:N,type:I,transform:this.that.__zoom,dispatch:p}),k)}};function Z(I,...k){if(!e.apply(this,arguments))return;var W=G(this,k).event(I),V=this.__zoom,ie=Math.max(c[0],Math.min(c[1],V.k*Math.pow(2,o.apply(this,arguments)))),ye=ci(I);if(W.wheel)(W.mouse[0][0]!==ye[0]||W.mouse[0][1]!==ye[1])&&(W.mouse[1]=V.invert(W.mouse[0]=ye)),clearTimeout(W.wheel);else{if(V.k===ie)return;W.mouse=[ye,V.invert(ye)],Fc(this),W.start()}Tl(I),W.wheel=setTimeout(Ne,E),W.zoom("mouse",r($(C(V,ie),W.mouse[0],W.mouse[1]),W.extent,f));function Ne(){W.wheel=null,W.end()}}function ee(I,...k){if(b||!e.apply(this,arguments))return;var W=I.currentTarget,V=G(this,k,!0).event(I),ie=Bn(I.view).on("mousemove.zoom",Ve,!0).on("mouseup.zoom",nt,!0),ye=ci(I,W),Ne=I.clientX,We=I.clientY;g1(I.view),vd(I),V.mouse=[ye,this.__zoom.invert(ye)],Fc(this),V.start();function Ve(et){if(Tl(et),!V.moved){var Xe=et.clientX-Ne,Le=et.clientY-We;V.moved=Xe*Xe+Le*Le>M}V.event(et).zoom("mouse",r($(V.that.__zoom,V.mouse[0]=ci(et,W),V.mouse[1]),V.extent,f))}function nt(et){ie.on("mousemove.zoom mouseup.zoom",null),v1(et.view,V.moved),Tl(et),V.event(et).end()}}function U(I,...k){if(e.apply(this,arguments)){var W=this.__zoom,V=ci(I.changedTouches?I.changedTouches[0]:I,this),ie=W.invert(V),ye=W.k*(I.shiftKey?.5:2),Ne=r($(C(W,ye),V,ie),t.apply(this,k),f);Tl(I),d>0?Bn(this).transition().duration(d).call(z,Ne,V,I):Bn(this).call(N.transform,Ne,V,I)}}function te(I,...k){if(e.apply(this,arguments)){var W=I.touches,V=W.length,ie=G(this,k,I.changedTouches.length===V).event(I),ye,Ne,We,Ve;for(vd(I),Ne=0;Ne<V;++Ne)We=W[Ne],Ve=ci(We,this),Ve=[Ve,this.__zoom.invert(Ve),We.identifier],ie.touch0?!ie.touch1&&ie.touch0[2]!==Ve[2]&&(ie.touch1=Ve,ie.taps=0):(ie.touch0=Ve,ye=!0,ie.taps=1+!!v);v&&(v=clearTimeout(v)),ye&&(ie.taps<2&&(m=Ve[0],v=setTimeout(function(){v=null},w)),Fc(this),ie.start())}}function J(I,...k){if(this.__zooming){var W=G(this,k).event(I),V=I.changedTouches,ie=V.length,ye,Ne,We,Ve;for(Tl(I),ye=0;ye<ie;++ye)Ne=V[ye],We=ci(Ne,this),W.touch0&&W.touch0[2]===Ne.identifier?W.touch0[0]=We:W.touch1&&W.touch1[2]===Ne.identifier&&(W.touch1[0]=We);if(Ne=W.that.__zoom,W.touch1){var nt=W.touch0[0],et=W.touch0[1],Xe=W.touch1[0],Le=W.touch1[1],Y=(Y=Xe[0]-nt[0])*Y+(Y=Xe[1]-nt[1])*Y,ae=(ae=Le[0]-et[0])*ae+(ae=Le[1]-et[1])*ae;Ne=C(Ne,Math.sqrt(Y/ae)),We=[(nt[0]+Xe[0])/2,(nt[1]+Xe[1])/2],Ve=[(et[0]+Le[0])/2,(et[1]+Le[1])/2]}else if(W.touch0)We=W.touch0[0],Ve=W.touch0[1];else return;W.zoom("touch",r($(Ne,We,Ve),W.extent,f))}}function H(I,...k){if(this.__zooming){var W=G(this,k).event(I),V=I.changedTouches,ie=V.length,ye,Ne;for(vd(I),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),ye=0;ye<ie;++ye)Ne=V[ye],W.touch0&&W.touch0[2]===Ne.identifier?delete W.touch0:W.touch1&&W.touch1[2]===Ne.identifier&&delete W.touch1;if(W.touch1&&!W.touch0&&(W.touch0=W.touch1,delete W.touch1),W.touch0)W.touch0[1]=this.__zoom.invert(W.touch0[0]);else if(W.end(),W.taps===2&&(Ne=ci(Ne,this),Math.hypot(m[0]-Ne[0],m[1]-Ne[1])<L)){var We=Bn(this).on("dblclick.zoom");We&&We.apply(this,arguments)}}}return N.wheelDelta=function(I){return arguments.length?(o=typeof I=="function"?I:kc(+I),N):o},N.filter=function(I){return arguments.length?(e=typeof I=="function"?I:kc(!!I),N):e},N.touchable=function(I){return arguments.length?(s=typeof I=="function"?I:kc(!!I),N):s},N.extent=function(I){return arguments.length?(t=typeof I=="function"?I:kc([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),N):t},N.scaleExtent=function(I){return arguments.length?(c[0]=+I[0],c[1]=+I[1],N):[c[0],c[1]]},N.translateExtent=function(I){return arguments.length?(f[0][0]=+I[0][0],f[1][0]=+I[1][0],f[0][1]=+I[0][1],f[1][1]=+I[1][1],N):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},N.constrain=function(I){return arguments.length?(r=I,N):r},N.duration=function(I){return arguments.length?(d=+I,N):d},N.interpolate=function(I){return arguments.length?(h=I,N):h},N.on=function(){var I=p.on.apply(p,arguments);return I===p?N:I},N.clickDistance=function(I){return arguments.length?(M=(I=+I)*I,N):Math.sqrt(M)},N.tapDistance=function(I){return arguments.length?(L=+I,N):L},N}function Mpe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return A1(this.cover(t,r),t,r,e)}function A1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,w,E,M,L,N,C;if(!c)return e._root=f,e;for(;c.length;)if((M=t>=(m=(d+p)/2))?d=m:p=m,(L=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[N=L<<1|M]))return s[N]=f,e;if(w=+e._x.call(null,c.data),E=+e._y.call(null,c.data),t===w&&r===E)return f.next=c,s?s[N]=f:e._root=f,e;do s=s?s[N]=new Array(4):e._root=new Array(4),(M=t>=(m=(d+p)/2))?d=m:p=m,(L=r>=(b=(h+v)/2))?h=b:v=b;while((N=L<<1|M)===(C=(E>=b)<<1|w>=m));return s[C]=c,s[N]=f,e}function Npe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,m=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>m&&(m=c));if(h>v||p>m)return this;for(this.cover(h,p).cover(v,m),r=0;r<o;++r)A1(this,f[r],d[r],e[r]);return this}function $pe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function Ppe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Ope(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 An(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Rpe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],w=this._root,E,M;for(w&&b.push(new An(w,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);E=b.pop();)if(!(!(w=E.node)||(f=E.x0)>v||(d=E.y0)>m||(h=E.x1)<s||(p=E.y1)<c))if(w.length){var L=(f+h)/2,N=(d+p)/2;b.push(new An(w[3],L,N,h,p),new An(w[2],f,N,L,p),new An(w[1],L,d,h,N),new An(w[0],f,d,L,N)),(M=(t>=N)<<1|e>=L)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-M],b[b.length-1-M]=E)}else{var C=e-+this._x.call(null,w.data),$=t-+this._y.call(null,w.data),A=C*C+$*$;if(A<r){var z=Math.sqrt(r=A);s=e-z,c=t-z,v=e+z,m=t+z,o=w.data}}return o}function Dpe(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,w,E,M,L,N;if(!r)return this;if(r.length)for(;;){if((E=v>=(b=(f+h)/2))?f=b:h=b,(M=m>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[L=M<<1|E]))return this;if(!r.length)break;(t[L+1&3]||t[L+2&3]||t[L+3&3])&&(o=t,N=L)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[L]=c:delete t[L],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[N]=r:this._root=r),this):(this._root=c,this)}function zpe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Ipe(){return this._root}function Fpe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Hpe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new An(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new An(s,p,v,d,h)),(s=o[2])&&t.push(new An(s,c,v,p,h)),(s=o[1])&&t.push(new An(s,p,f,d,v)),(s=o[0])&&t.push(new An(s,c,f,p,v))}return this}function qpe(e){var t=[],r=[],o;for(this._root&&t.push(new An(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,m=(d+p)/2;(c=s[0])&&t.push(new An(c,f,d,v,m)),(c=s[1])&&t.push(new An(c,v,d,h,m)),(c=s[2])&&t.push(new An(c,f,m,v,p)),(c=s[3])&&t.push(new An(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Bpe(e){return e[0]}function Wpe(e){return arguments.length?(this._x=e,this):this._x}function Upe(e){return e[1]}function Vpe(e){return arguments.length?(this._y=e,this):this._y}function cp(e,t,r){var o=new up(t??Bpe,r??Upe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function up(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function h0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var $n=cp.prototype=up.prototype;$n.copy=function(){var e=new up(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=h0(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]=h0(o));return e};$n.add=Mpe;$n.addAll=Npe;$n.cover=$pe;$n.data=Ppe;$n.extent=Ope;$n.find=Rpe;$n.remove=Dpe;$n.removeAll=zpe;$n.root=Ipe;$n.size=Fpe;$n.visit=Hpe;$n.visitAfter=qpe;$n.x=Wpe;$n.y=Vpe;function Nn(e){return function(){return e}}function Ki(e){return(e()-.5)*1e-6}function jpe(e){return e.x+e.vx}function Gpe(e){return e.y+e.vy}function Kpe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Nn(e==null?1:+e));function f(){for(var p,v=t.length,m,b,w,E,M,L,N=0;N<c;++N)for(m=cp(t,jpe,Gpe).visitAfter(d),p=0;p<v;++p)b=t[p],M=r[b.index],L=M*M,w=b.x+b.vx,E=b.y+b.vy,m.visit(C);function C($,A,z,G,B){var Z=$.data,ee=$.r,U=M+ee;if(Z){if(Z.index>b.index){var te=w-Z.x-Z.vx,J=E-Z.y-Z.vy,H=te*te+J*J;H<U*U&&(te===0&&(te=Ki(o),H+=te*te),J===0&&(J=Ki(o),H+=J*J),H=(U-(H=Math.sqrt(H)))/H*s,b.vx+=(te*=H)*(U=(ee*=ee)/(L+ee)),b.vy+=(J*=H)*U,Z.vx-=te*(U=1-U),Z.vy-=J*U)}return}return A>w+U||G<w-U||z>E+U||B<E-U}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Nn(+p),h(),f):e},f}function Xpe(e){return e.index}function p0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Ype(e){var t=Xpe,r=m,o,s=Nn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(L){return 1/Math.min(d[L.source.index],d[L.target.index])}function b(L){for(var N=0,C=e.length;N<v;++N)for(var $=0,A,z,G,B,Z,ee,U;$<C;++$)A=e[$],z=A.source,G=A.target,B=G.x+G.vx-z.x-z.vx||Ki(p),Z=G.y+G.vy-z.y-z.vy||Ki(p),ee=Math.sqrt(B*B+Z*Z),ee=(ee-c[$])/ee*L*o[$],B*=ee,Z*=ee,G.vx-=B*(U=h[$]),G.vy-=Z*U,z.vx+=B*(U=1-U),z.vy+=Z*U}function w(){if(f){var L,N=f.length,C=e.length,$=new Map(f.map((z,G)=>[t(z,G,f),z])),A;for(L=0,d=new Array(N);L<C;++L)A=e[L],A.index=L,typeof A.source!="object"&&(A.source=p0($,A.source)),typeof A.target!="object"&&(A.target=p0($,A.target)),d[A.source.index]=(d[A.source.index]||0)+1,d[A.target.index]=(d[A.target.index]||0)+1;for(L=0,h=new Array(C);L<C;++L)A=e[L],h[L]=d[A.source.index]/(d[A.source.index]+d[A.target.index]);o=new Array(C),E(),c=new Array(C),M()}}function E(){if(f)for(var L=0,N=e.length;L<N;++L)o[L]=+r(e[L],L,e)}function M(){if(f)for(var L=0,N=e.length;L<N;++L)c[L]=+s(e[L],L,e)}return b.initialize=function(L,N){f=L,p=N,w()},b.links=function(L){return arguments.length?(e=L,w(),b):e},b.id=function(L){return arguments.length?(t=L,b):t},b.iterations=function(L){return arguments.length?(v=+L,b):v},b.strength=function(L){return arguments.length?(r=typeof L=="function"?L:Nn(+L),E(),b):r},b.distance=function(L){return arguments.length?(s=typeof L=="function"?L:Nn(+L),M(),b):s},b}const Zpe=1664525,Jpe=1013904223,g0=4294967296;function Qpe(){let e=1;return()=>(e=(Zpe*e+Jpe)%g0)/g0}function ege(e){return e.x}function tge(e){return e.y}var nge=10,rge=Math.PI*(3-Math.sqrt(5));function ige(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=op(m),p=Ea("tick","end"),v=Qpe();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(M){var L,N=e.length,C;M===void 0&&(M=1);for(var $=0;$<M;++$)for(r+=(c-r)*s,d.forEach(function(A){A(r)}),L=0;L<N;++L)C=e[L],C.fx==null?C.x+=C.vx*=f:(C.x=C.fx,C.vx=0),C.fy==null?C.y+=C.vy*=f:(C.y=C.fy,C.vy=0);return t}function w(){for(var M=0,L=e.length,N;M<L;++M){if(N=e[M],N.index=M,N.fx!=null&&(N.x=N.fx),N.fy!=null&&(N.y=N.fy),isNaN(N.x)||isNaN(N.y)){var C=nge*Math.sqrt(.5+M),$=M*rge;N.x=C*Math.cos($),N.y=C*Math.sin($)}(isNaN(N.vx)||isNaN(N.vy))&&(N.vx=N.vy=0)}}function E(M){return M.initialize&&M.initialize(e,v),M}return w(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(M){return arguments.length?(e=M,w(),d.forEach(E),t):e},alpha:function(M){return arguments.length?(r=+M,t):r},alphaMin:function(M){return arguments.length?(o=+M,t):o},alphaDecay:function(M){return arguments.length?(s=+M,t):+s},alphaTarget:function(M){return arguments.length?(c=+M,t):c},velocityDecay:function(M){return arguments.length?(f=1-M,t):1-f},randomSource:function(M){return arguments.length?(v=M,d.forEach(E),t):v},force:function(M,L){return arguments.length>1?(L==null?d.delete(M):d.set(M,E(L)),t):d.get(M)},find:function(M,L,N){var C=0,$=e.length,A,z,G,B,Z;for(N==null?N=1/0:N*=N,C=0;C<$;++C)B=e[C],A=M-B.x,z=L-B.y,G=A*A+z*z,G<N&&(Z=B,N=G);return Z},on:function(M,L){return arguments.length>1?(p.on(M,L),t):p.on(M)}}}function oge(){var e,t,r,o,s=Nn(-30),c,f=1,d=1/0,h=.81;function p(w){var E,M=e.length,L=cp(e,ege,tge).visitAfter(m);for(o=w,E=0;E<M;++E)t=e[E],L.visit(b)}function v(){if(e){var w,E=e.length,M;for(c=new Array(E),w=0;w<E;++w)M=e[w],c[M.index]=+s(M,w,e)}}function m(w){var E=0,M,L,N=0,C,$,A;if(w.length){for(C=$=A=0;A<4;++A)(M=w[A])&&(L=Math.abs(M.value))&&(E+=M.value,N+=L,C+=L*M.x,$+=L*M.y);w.x=C/N,w.y=$/N}else{M=w,M.x=M.data.x,M.y=M.data.y;do E+=c[M.data.index];while(M=M.next)}w.value=E}function b(w,E,M,L){if(!w.value)return!0;var N=w.x-t.x,C=w.y-t.y,$=L-E,A=N*N+C*C;if($*$/h<A)return A<d&&(N===0&&(N=Ki(r),A+=N*N),C===0&&(C=Ki(r),A+=C*C),A<f&&(A=Math.sqrt(f*A)),t.vx+=N*w.value*o/A,t.vy+=C*w.value*o/A),!0;if(w.length||A>=d)return;(w.data!==t||w.next)&&(N===0&&(N=Ki(r),A+=N*N),C===0&&(C=Ki(r),A+=C*C),A<f&&(A=Math.sqrt(f*A)));do w.data!==t&&($=c[w.data.index]*o/A,t.vx+=N*$,t.vy+=C*$);while(w=w.next)}return p.initialize=function(w,E){e=w,r=E,v()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Nn(+w),v(),p):s},p.distanceMin=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.distanceMax=function(w){return arguments.length?(d=w*w,p):Math.sqrt(d)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function sge(e){var t=Nn(.1),r,o,s;typeof e!="function"&&(e=Nn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Nn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Nn(+d),f(),c):e},c}function lge(e){var t=Nn(.1),r,o,s;typeof e!="function"&&(e=Nn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Nn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Nn(+d),f(),c):e},c}var age=Object.defineProperty,cge=(e,t,r)=>t in e?age(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qt=(e,t,r)=>cge(e,typeof t!="symbol"?t+"":t,r);function uge(){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 v0(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 Xi(...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]=Xi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:v0(t[o])&&v0(r[o])?t[o]=Xi(t[o],r[o]):t[o]=r[o])}),t},{})}const M1={mergeArrays:!0};Xi.options=M1;Xi.withOptions=(e,...t)=>{Xi.options={mergeArrays:!0,...e};const r=Xi(...t);return Xi.options=M1,r};function fge(){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 dge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function N1(e){e.preventDefault(),e.stopPropagation()}function $1(e){return typeof e=="number"}function ro(e,t){return $1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function hge(e){return`${e.source.id}-${e.target.id}`}function P1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function pge(e){return`url(#${P1(e.color)})`}function gge(e){return{size:e,padding:(t,r)=>ro(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const O1={Arrow:e=>gge(e)},vge=(e,t,r)=>[t/2,r/2],R1=(e,t,r)=>[m0(0,t),m0(0,r)];function m0(e,t){return Math.random()*(t-e)+e}function mge(e){const t=Object.fromEntries(e.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,s)=>{const[c,f]=t[r.id]??[];return!c||!f?R1(r,o,s):[c,f]}}const lh={Centered:vge,Randomized:R1,Stable:mge};function yge(){return{autoResize:!1,callbacks:{},hooks:{},initial:dge(),nodeRadius:16,marker:O1.Arrow(4),modifiers:{},positionInitializer:lh.Centered,simulation:{alphas:uge(),forces:fge()},zoom:{initial:1,min:.1,max:2}}}function bge(e={}){return Xi.withOptions({mergeArrays:!1},yge(),e)}function wge({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>N1(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>s==null?void 0:s(v)).style("cursor","grab");return e&&p.call(h.transform,ap.translate(c,f).scale(d)),p.append("g")}function xge({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function Sge({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=Fde().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),Bn(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),Bn(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(s=(o=e.modifiers).drag)==null||s.call(o,c),c}function _ge({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:kge({nodes:d,links:c},r)}function kge(e,t){const r=[...Tge(e,t),...Cge(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Tge(e,t){return D1(e,t,(r,o)=>r.target.id===o.id)}function Cge(e,t){return D1(e,t,(r,o)=>r.source.id===o.id)}function D1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function ah(e){return e.x??0}function ch(e){return e.y??0}function fp({source:e,target:t}){const r=new En(ah(e),ch(e)),o=new En(ah(t),ch(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function z1({center:e,node:t}){const r=new En(ah(t),ch(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new En(0,1))),{n:r,c:o}}function I1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=fp({config:e,source:t,target:r}),f=o.add(c.multiply(ro(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function Ege(e){const{start:t,end:r}=I1(e);return`M${t.x},${t.y}
|
|
45
|
-
L${r.x},${r.y}`}function Lge(e){const{start:t,end:r}=I1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Age({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=fp({config:e,source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(ro(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(ro(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),m=1.2*c;return`M${p.x},${p.y}
|
|
46
|
-
A${m},${m},0,0,1,${v.x},${v.y}`}function Mge({center:e,config:t,node:r}){const{n:o,c:s}=z1({center:e,config:t,node:r}),c=ro(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),v=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
|
|
47
|
-
A${c},${c},0,1,0,${v.x},${v.y}`}function Nge({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=fp({config:e,source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function $ge({center:e,config:t,node:r}){const{n:o,c:s}=z1({center:e,config:t,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*ro(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Ms={line:{labelTransform:Lge,path:Ege},arc:{labelTransform:Nge,path:Age},reflexive:{labelTransform:$ge,path:Mge}};function Pge(e){return e.append("g").classed("links",!0).selectAll("path")}function Oge({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>hge(c)).join(c=>{var f,d,h,p;const v=c.append("g"),m=v.append("path").classed("link",!0).style("marker-end",w=>pge(w)).style("stroke",w=>w.color);(d=(f=e.modifiers).link)==null||d.call(f,m);const b=v.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,b),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function Rge(e){Dge(e),zge(e)}function Dge({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?Ms.reflexive.path({config:t,node:s.source,center:e}):F1(r,s.source,s.target)?Ms.arc.path({config:t,source:s.source,target:s.target}):Ms.line.path({config:t,source:s.source,target:s.target}))}function zge({config:e,center:t,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Ms.reflexive.labelTransform({config:e,node:s.source,center:t}):F1(r,s.source,s.target)?Ms.arc.labelTransform({config:e,source:s.source,target:s.target}):Ms.line.labelTransform({config:e,source:s.source,target:s.target}))}function F1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Ige(e){return e.append("defs").selectAll("marker")}function Fge({config:e,graph:t,selection:r}){return r==null?void 0:r.data(Hge(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>P1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",qge(e.marker.path)),s})}function Hge(e){return[...new Set(e.links.map(t=>t.color))]}function qge(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function Bge(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Wge({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var p,v,m,b;const w=h.append("g");t!==void 0&&w.call(t);const E=w.append("circle").classed("node",!0).attr("r",L=>ro(e,L)).on("contextmenu",(L,N)=>{N1(L),o(N)}).on("pointerdown",(L,N)=>Vge(L,N,s??o)).style("fill",L=>L.color);(v=(p=e.modifiers).node)==null||v.call(p,E);const M=w.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",L=>L.label?L.label.color:null).style("font-size",L=>L.label?L.label.fontSize:null).style("stroke","none").text(L=>L.label?L.label.text:null);return(b=(m=e.modifiers).nodeLabel)==null||b.call(m,M),w});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const Uge=500;function Vge(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>Uge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function jge(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Gge({center:e,config:t,graph:r,onTick:o}){var s,c;const f=ige(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const m=d.strength;f.force("x",sge(()=>e().x).strength(m)).force("y",lge(()=>e().y).strength(m))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",oge().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",Kpe().radius(m=>p.radiusMultiplier*ro(t,m)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",Ype(r.links).id(m=>m.id).distance(t.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=t.modifiers).simulation)==null||c.call(s,f),f}function Kge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=Ape().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(f=(c=t.modifiers).zoom)==null||f.call(c,d),d}class Xge{constructor(t,r,o){if(qt(this,"nodeTypes"),qt(this,"_nodeTypeFilter"),qt(this,"_includeUnlinked",!0),qt(this,"_linkFilter",()=>!0),qt(this,"_showLinkLabels",!0),qt(this,"_showNodeLabels",!0),qt(this,"filteredGraph"),qt(this,"width",0),qt(this,"height",0),qt(this,"simulation"),qt(this,"canvas"),qt(this,"linkSelection"),qt(this,"nodeSelection"),qt(this,"markerSelection"),qt(this,"zoom"),qt(this,"drag"),qt(this,"xOffset",0),qt(this,"yOffset",0),qt(this,"scale"),qt(this,"focusedNode"),qt(this,"resizeObserver"),this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(Zue(()=>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 En.of([this.width,this.height]).divide(2).subtract(En.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart($1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=Fge({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Oge({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Wge({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=Gge({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=Kge({config:this.config,canvasContainer:()=>Bn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=wge({applyZoom:this.scale!==1,container:Bn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Pge(this.canvas),this.nodeSelection=Bge(this.canvas),this.markerSelection=Ige(this.canvas),this.drag=Sge({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(){jge(this.nodeSelection),Rge({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Bn(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(){xge({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=_ge({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function y0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function Yge(e){return{...e}}function H1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const Zge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Jge={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Qge={flex:"~ gap-1","items-center":"","select-none":""},eve=["id","checked","onChange"],tve=["for"],nve=ut({__name:"ViewModuleGraph",props:Kl({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=Au(e,"modelValue"),{graph:o}=U_(t),s=qe(),c=qe(!1),f=qe(),d=qe();Oh(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),Hs(()=>{v()}),Eu(()=>{var w;(w=d.value)==null||w.shutdown()}),Lt(o,()=>v());function h(w,E){var M;(M=d.value)==null||M.filterNodesByType(E,w)}function p(w){f.value=w,c.value=!0}function v(w=!1){var E;if((E=d.value)==null||E.shutdown(),w&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new Xge(s.value,o.value,bge({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:M,newWidth:L})=>M===0&&L===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:O1.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?lh.Randomized:lh.Centered,zoom:{min:.5,max:2}})))}const m=w=>w.button===0;function b(w){if(kr)return;let E=0,M=0,L=0;w.on("pointerdown",(N,C)=>{C.type!=="external"&&(!C.x||!C.y||!m(N)||(E=C.x,M=C.y,L=Date.now()))}).on("pointerup",(N,C)=>{if(C.type==="external"||!C.x||!C.y||!m(N)||Date.now()-L>500)return;const $=C.x-E,A=C.y-M;$**2+A**2<100&&p(C.id)})}return(w,E)=>{var $;const M=wi,L=Yue,N=t1,C=Kr("tooltip");return oe(),me("div",Zge,[Q("div",null,[Q("div",Jge,[Q("div",Qge,[gt(Q("input",{id:"hide-node-modules","onUpdate:modelValue":E[0]||(E[0]=A=>r.value=A),type:"checkbox"},null,512),[[cb,r.value]]),E[4]||(E[4]=Q("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))]),(oe(!0),me(ct,null,gi(($=F(d))==null?void 0:$.nodeTypes.sort(),A=>{var z;return oe(),me("div",{key:A,flex:"~ gap-1","items-center":"","select-none":""},[Q("input",{id:`type-${A}`,type:"checkbox",checked:(z=F(d))==null?void 0:z.nodeTypeFilter.includes(A),onChange:G=>h(A,G.target.checked)},null,40,eve),Q("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${A}`,"border-b-2":"",style:Qt({"border-color":`var(--color-node-${A})`})},He(A)+" Modules",13,tve)])}),128)),E[5]||(E[5]=Q("div",{"flex-auto":""},null,-1)),Q("div",null,[gt(Pe(M,{icon:"i-carbon-reset",onClick:E[1]||(E[1]=A=>v(!0))},null,512),[[C,"Reset",void 0,{bottom:!0}]])])])]),Q("div",{ref_key:"el",ref:s},null,512),Pe(N,{modelValue:F(c),"onUpdate:modelValue":E[3]||(E[3]=A=>kt(c)?c.value=A:null),direction:"right"},{default:rt(()=>[F(f)?(oe(),tt(Zy,{key:0},{default:rt(()=>[Pe(L,{id:F(f),"project-name":w.projectName,onClose:E[2]||(E[2]=A=>c.value=!1)},null,8,["id","project-name"])]),_:1})):Ke("",!0)]),_:1},8,["modelValue"])])}}}),rve={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},ive={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},ove={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},sve={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},lve={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},ave={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},q1=ut({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Kr("tooltip");return t.state==="pass"?(oe(),me("div",rve)):t.failedSnapshot?gt((oe(),me("div",ive,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(oe(),me("div",ove)):t.mode==="todo"?gt((oe(),me("div",sve,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?gt((oe(),me("div",lve,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(oe(),me("div",ave))}}});function cve(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:m,candidate:b}=c;t.set(m,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function uve(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 fve(e){const t=e.map(o=>uve(o)),r=cve(t);return t.map(({raw:o,id:s})=>H1({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 dve(e,t){return H1({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 hve(e,t){if(!e)return y0({});const r=fve(e.externalized),o=e.inlined.map(d=>dve(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],m=c[p];if(!(v===void 0||m===void 0))return Yge({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return y0({nodes:s,links:f})}const pve={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},gve={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},vve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},mve={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},yve={class:"flex text-lg"},bve={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},wve={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},xve={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Sve={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},_ve=["flex-1"],kve=ut({__name:"FileDetails",setup(e){const t=qe({nodes:[],links:[]}),r=qe(!1),o=qe(!1),s=qe(!1),c=qe(void 0),f=qe(!0),d=ke(()=>{const C=Zt.value;if(!(!C||!C.filepath))return{filepath:C.filepath,projectName:C.file.projectName||""}}),h=ke(()=>Zt.value&&Uh(Zt.value)),p=ke(()=>{var C,$;return!!(($=(C=Zt.value)==null?void 0:C.meta)!=null&&$.typecheck)});function v(){var $;const C=($=Zt.value)==null?void 0:$.filepath;C&&fetch(`/__open-in-editor?file=${encodeURIComponent(C)}`)}function m(C){C==="graph"&&(o.value=!0),Kn.value=C}const b=ke(()=>{var C;return((C=Qw.value)==null?void 0:C.reduce(($,{size:A})=>$+A,0))??0});function w(C){r.value=C}const E=/[/\\]node_modules[/\\]/;async function M(C=!1){var $;if(!(s.value||(($=d.value)==null?void 0:$.filepath)===c.value&&!C)){s.value=!0,await Ot();try{const A=d.value;if(!A){s.value=!1;return}if(C||!c.value||A.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let z=await mt.rpc.getModuleGraph(A.projectName,A.filepath,!!Do);f.value&&(kr&&(z=typeof window.structuredClone<"u"?window.structuredClone(z):fE(z)),z.inlined=z.inlined.filter(G=>!E.test(G)),z.externalized=z.externalized.filter(G=>!E.test(G))),t.value=hve(z,A.filepath),c.value=A.filepath}m("graph")}finally{await new Promise(A=>setTimeout(A,100)),s.value=!1}}}jh(()=>[d.value,Kn.value,f.value],([,C,$],A)=>{C==="graph"&&M(A&&$!==A[2])},{debounce:100,immediate:!0});const L=ke(()=>{var C;return uw((C=Zt.value)==null?void 0:C.file.projectName)}),N=ke(()=>{switch(L.value){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(C,$)=>{var te,J,H,I;const A=q1,z=wi,G=nve,B=Bue,Z=Pue,ee=Eue,U=Kr("tooltip");return F(Zt)?(oe(),me("div",pve,[Q("div",null,[Q("div",gve,[Pe(A,{state:(te=F(Zt).result)==null?void 0:te.state,mode:F(Zt).mode,"failed-snapshot":F(h)},null,8,["state","mode","failed-snapshot"]),F(p)?gt((oe(),me("div",vve,null,512)),[[U,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ke("",!0),(J=F(Zt))!=null&&J.file.projectName?(oe(),me("span",{key:1,class:"rounded-full py-0.5 px-1 text-xs font-light",style:Qt({backgroundColor:F(L),color:F(N)})},He(F(Zt).file.projectName),5)):Ke("",!0),Q("div",mve,He((H=F(Zt))==null?void 0:H.name),1),Q("div",yve,[F(kr)?Ke("",!0):gt((oe(),tt(z,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((I=F(Zt))!=null&&I.filepath),onClick:v},null,8,["disabled"])),[[U,"Open in editor",void 0,{bottom:!0}]])])]),Q("div",bve,[Q("button",{"tab-button":"",class:it(["flex items-center gap-2",{"tab-button-active":F(Kn)==null}]),"data-testid":"btn-report",onClick:$[0]||($[0]=k=>m(null))},$[5]||($[5]=[Q("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),pt(" Report ")]),2),Q("button",{"tab-button":"","data-testid":"btn-graph",class:it(["flex items-center gap-2",{"tab-button-active":F(Kn)==="graph"}]),onClick:$[1]||($[1]=k=>m("graph"))},[F(s)?(oe(),me("span",wve)):(oe(),me("span",xve)),$[6]||($[6]=pt(" Module Graph "))],2),Q("button",{"tab-button":"","data-testid":"btn-code",class:it(["flex items-center gap-2",{"tab-button-active":F(Kn)==="editor"}]),onClick:$[2]||($[2]=k=>m("editor"))},[$[7]||($[7]=Q("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),pt(" "+He(F(r)?"* ":"")+"Code ",1)],2),Q("button",{"tab-button":"","data-testid":"btn-console",class:it(["flex items-center gap-2",{"tab-button-active":F(Kn)==="console",op20:F(Kn)!=="console"&&F(b)===0}]),onClick:$[3]||($[3]=k=>m("console"))},[$[8]||($[8]=Q("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),pt(" Console ("+He(F(b))+") ",1)],2)])]),Q("div",Sve,[F(o)?(oe(),me("div",{key:0,"flex-1":F(Kn)==="graph"&&""},[gt(Pe(G,{modelValue:F(f),"onUpdate:modelValue":$[4]||($[4]=k=>kt(f)?f.value=k:null),graph:F(t),"data-testid":"graph","project-name":F(Zt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Gi,F(Kn)==="graph"&&!F(s)]])],8,_ve)):Ke("",!0),F(Kn)==="editor"?(oe(),tt(B,{key:F(Zt).id,file:F(Zt),"data-testid":"editor",onDraft:w},null,8,["file"])):F(Kn)==="console"?(oe(),tt(Z,{key:2,file:F(Zt),"data-testid":"console"},null,8,["file"])):F(Kn)?Ke("",!0):(oe(),tt(ee,{key:3,file:F(Zt),"data-testid":"report"},null,8,["file"]))])])):Ke("",!0)}}}),Tve={h:"full",flex:"~ col"},Cve={"flex-auto":"","py-1":"","bg-white":""},Eve=["src"],Lve=ut({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(oe(),me("div",Tve,[r[0]||(r[0]=Q("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Q("div",{class:"i-carbon:folder-details-reference"}),Q("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),Q("div",Cve,[Q("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,Eve)])]))}}),Ave={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Mve={"font-bold":""},Nve={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},$ve=["font-bold"],Pve={text:"red500/70"},Ove={key:1,text:"sm","mb-2":""},Rve={"font-bold":""},Dve={key:2,text:"sm","mb-2":""},zve={"font-bold":""},Ive={key:3,text:"sm","font-thin":""},Fve=ut({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return oe(),me(ct,null,[Q("h4",Ave,[Q("span",Mve,[pt(He(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(oe(),me(ct,{key:0},[pt(":")],64)):Ke("",!0)]),pt(" "+He(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(oe(),me("p",Nve,[(oe(!0),me(ct,null,gi(t.error.stacks,(s,c)=>(oe(),me("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[pt("❯ "+He(s.method)+" "+He(s.file)+":",1),Q("span",Pve,He(s.line)+":"+He(s.column),1),r[0]||(r[0]=Q("br",null,null,-1))],8,$ve))),128))])):Ke("",!0),t.error.VITEST_TEST_PATH?(oe(),me("p",Ove,[r[1]||(r[1]=pt(" This error originated in ")),Q("span",Rve,He(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. "))])):Ke("",!0),t.error.VITEST_TEST_NAME?(oe(),me("p",Dve,[r[3]||(r[3]=pt(" The latest test that might've caused the error is ")),Q("span",zve,He(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=pt(". It might mean one of the following:")),r[5]||(r[5]=Q("br",null,null,-1)),r[6]||(r[6]=Q("ul",null,[Q("li",null," The error was thrown, while Vitest was running this test. "),Q("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Ke("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(oe(),me("p",Ive,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:"),Q("br",null,null,-1),Q("ul",null,[Q("li",null," Cancel timeouts using clearTimeout and clearInterval. "),Q("li",null," Wait for promises to resolve using the await keyword. ")],-1)]))):Ke("",!0)],64)}}}),Hve={"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:""},qve={class:"number","data-testid":"num-files"},Bve={class:"number"},Wve={class:"number","text-red5":""},Uve={class:"number","text-red5":""},Vve={class:"number","text-red5":""},jve={class:"number","data-testid":"run-time"},Gve={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Kve={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Xve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Yve=ut({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=Fve;return oe(),me(ct,null,[Q("div",Hve,[r[8]||(r[8]=Q("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=Q("div",null,"Files",-1)),Q("div",qve,He(F(Ce).summary.files),1),F(Ce).summary.filesSuccess?(oe(),me(ct,{key:0},[r[0]||(r[0]=Q("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=Q("div",null,"Pass",-1)),Q("div",Bve,He(F(Ce).summary.filesSuccess),1)],64)):Ke("",!0),F(Ce).summary.filesFailed?(oe(),me(ct,{key:1},[r[2]||(r[2]=Q("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=Q("div",null," Fail ",-1)),Q("div",Wve,He(F(Ce).summary.filesFailed),1)],64)):Ke("",!0),F(Ce).summary.filesSnapshotFailed?(oe(),me(ct,{key:2},[r[4]||(r[4]=Q("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=Q("div",null," Snapshot Fail ",-1)),Q("div",Uve,He(F(Ce).summary.filesSnapshotFailed),1)],64)):Ke("",!0),F(Wi).length?(oe(),me(ct,{key:3},[r[6]||(r[6]=Q("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=Q("div",null," Errors ",-1)),Q("div",Vve,He(F(Wi).length),1)],64)):Ke("",!0),r[10]||(r[10]=Q("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=Q("div",null,"Time",-1)),Q("div",jve,He(F(Ce).summary.time),1)]),F(Wi).length?(oe(),me("div",Gve,[r[15]||(r[15]=Q("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),Q("p",Kve,[pt(" Vitest caught "+He(F(Wi).length)+" error"+He(F(Wi).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=Q("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. "))]),Q("details",Xve,[r[14]||(r[14]=Q("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(oe(!0),me(ct,null,gi(F(Wi),(s,c)=>(oe(),tt(o,{key:c,error:s},null,8,["error"]))),128))])])):Ke("",!0)],64)}}}),Zve=Xr(Yve,[["__scopeId","data-v-0178ddee"]]),Jve={"p-2":"","text-center":"",flex:""},Qve={"text-4xl":"","min-w-2em":""},eme={"text-md":""},tme=ut({__name:"DashboardEntry",setup(e){return(t,r)=>(oe(),me("div",Jve,[Q("div",null,[Q("div",Qve,[mn(t.$slots,"body")]),Q("div",eme,[mn(t.$slots,"header")])])]))}}),nme={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},rme=ut({__name:"TestsEntry",setup(e){return(t,r)=>{const o=tme;return oe(),me("div",nme,[Pe(o,{"text-green5":"","data-testid":"pass-entry"},{header:rt(()=>r[0]||(r[0]=[pt(" Pass ")])),body:rt(()=>[pt(He(F(Ce).summary.testsSuccess),1)]),_:1}),Pe(o,{class:it({"text-red5":F(Ce).summary.testsFailed,op50:!F(Ce).summary.testsFailed}),"data-testid":"fail-entry"},{header:rt(()=>r[1]||(r[1]=[pt(" Fail ")])),body:rt(()=>[pt(He(F(Ce).summary.testsFailed),1)]),_:1},8,["class"]),F(Ce).summary.testsSkipped?(oe(),tt(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:rt(()=>r[2]||(r[2]=[pt(" Skip ")])),body:rt(()=>[pt(He(F(Ce).summary.testsSkipped),1)]),_:1})):Ke("",!0),F(Ce).summary.testsTodo?(oe(),tt(o,{key:1,op50:"","data-testid":"todo-entry"},{header:rt(()=>r[3]||(r[3]=[pt(" Todo ")])),body:rt(()=>[pt(He(F(Ce).summary.testsTodo),1)]),_:1})):Ke("",!0),Pe(o,{tail:!0,"data-testid":"total-entry"},{header:rt(()=>r[4]||(r[4]=[pt(" Total ")])),body:rt(()=>[pt(He(F(Ce).summary.totalTests),1)]),_:1})])}}}),ime={},ome={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},sme={"aria-labelledby":"tests",m:"y-4 x-2"};function lme(e,t){const r=rme,o=Zve;return oe(),me("div",ome,[Q("section",sme,[Pe(r)]),Pe(o)])}const ame=Xr(ime,[["render",lme]]),cme={},ume={h:"full",flex:"~ col"},fme={class:"scrolls","flex-auto":"","py-1":""};function dme(e,t){const r=ame;return oe(),me("div",ume,[t[0]||(t[0]=Q("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Q("div",{class:"i-carbon-dashboard"}),Q("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),Q("div",fme,[Pe(r)])])}const hme=Xr(cme,[["render",dme]]),pme=["open"],gme=ut({__name:"DetailsPanel",props:{color:{}},setup(e){const t=qe(!0);return(r,o)=>(oe(),me("div",{open:F(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[Q("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]=Q("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),mn(r.$slots,"summary",{open:F(t)}),o[2]||(o[2]=Q("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),mn(r.$slots,"default")],40,pme))}}),vme={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},mme={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(oe(),me("button",vme,[Q("span",{block:"",class:it([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},yme=["aria-label","data-current"],bme={key:1,"w-4":""},wme={flex:"","items-end":"","gap-2":"","overflow-hidden":""},xme={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Sme={"text-sm":"",truncate:"","font-light":""},_me=["text","innerHTML"],kme={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Tme={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Cme={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Eme={key:1},Lme=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=ke(()=>mt.state.idMap.get(e.taskId)),r=ke(()=>{if(kr)return!1;const L=t.value;return L&&Uh(L)});function o(){var L;if(!e.expandable){(L=e.onItemClick)==null||L.call(e,t.value);return}e.opened?Ce.collapseNode(e.taskId):Ce.expandNode(e.taskId)}async function s(L){var N;(N=e.onItemClick)==null||N.call(e,L),ms.value&&(lu.value=!0,await Ot()),e.type==="file"?await ep([L.file]):await Uce(L)}function c(L){return mt.rpc.updateSnapshot(L.file)}const f=ke(()=>e.indent<=0?[]:Array.from({length:e.indent},(L,N)=>`${e.taskId}-${N}`)),d=ke(()=>{const L=f.value,N=[];return(e.type==="file"||e.type==="suite")&&N.push("min-content"),N.push("min-content"),e.type==="suite"&&e.typecheck&&N.push("min-content"),N.push("minmax(0, 1fr)"),N.push("min-content"),`grid-template-columns: ${L.map(()=>"1rem").join(" ")} ${N.join(" ")};`}),h=ke(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=ke(()=>aw(e.name)),v=ke(()=>{const L=FE.value,N=p.value;return L?N.replace(L,C=>`<span class="highlight">${C}</span>`):N}),m=ke(()=>e.type!=="file"&&e.disableTaskLocation),b=ke(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=ke(()=>m.value?"color-red5 dark:color-#f43f5e":null);function E(){var N;const L=t.value;e.type==="file"?(N=e.onItemClick)==null||N.call(e,L):que(L)}const M=ke(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(L,N)=>{const C=q1,$=mme,A=wi,z=Kr("tooltip");return F(t)?(oe(),me("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:Qt(F(d)),"aria-label":L.name,"data-current":L.current,onClick:N[2]||(N[2]=G=>o())},[L.indent>0?(oe(!0),me(ct,{key:0},gi(F(f),G=>(oe(),me("div",{key:G,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ke("",!0),L.type==="file"||L.type==="suite"?(oe(),me("div",bme,[Q("div",{class:it(L.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ke("",!0),Pe(C,{state:L.state,mode:F(t).mode,"failed-snapshot":F(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),Q("div",wme,[L.type==="file"&&L.typecheck?gt((oe(),me("div",xme,null,512)),[[z,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ke("",!0),Q("span",Sme,[L.type==="file"&&L.projectName?(oe(),me("span",{key:0,class:"rounded-full py-0.5 px-1 mr-1 text-xs",style:Qt({backgroundColor:L.projectNameColor,color:F(M)})},He(L.projectName),5)):Ke("",!0),Q("span",{text:L.state==="fail"?"red-500":"",innerHTML:F(v)},null,8,_me)]),typeof L.duration=="number"?(oe(),me("span",kme,He(L.duration>0?L.duration:"< 1")+"ms ",1)):Ke("",!0)]),Q("div",Tme,[!F(kr)&&F(r)?gt((oe(),tt($,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:N[0]||(N[0]=Nc(G=>c(F(t)),["prevent","stop"]))},null,512)),[[z,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ke("",!0),Pe(F(Fb),{placement:"bottom",class:it(["w-1.4em h-1.4em op100 rounded flex",F(w)])},{popper:rt(()=>[F(m)?(oe(),me("div",Cme,[N[5]||(N[5]=Q("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),Q("div",null,[pt(He(F(b))+": this feature is not available, you have disabled ",1),N[3]||(N[3]=Q("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),N[4]||(N[4]=pt(" in your configuration file."))]),N[6]||(N[6]=Q("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))])):(oe(),me("div",Eme,He(F(b)),1))]),default:rt(()=>[Pe(A,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Nc(E,["prevent","stop"])})]),_:1},8,["class"]),F(kr)?Ke("",!0):gt((oe(),tt(A,{key:1,"data-testid":"btn-run-test",title:F(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:N[1]||(N[1]=Nc(G=>s(F(t)),["prevent","stop"]))},null,8,["title"])),[[z,F(h),void 0,{bottom:!0}]])])],12,yme)):Ke("",!0)}}}),Ame=Xr(Lme,[["__scopeId","data-v-f7232aed"]]),Mme={"flex-1":"","ms-2":"","select-none":""},Nme=ut({__name:"FilterStatus",props:Kl({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Au(e,"modelValue");return(r,o)=>(oe(),me("label",hi({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]=Nc(s=>t.value=!t.value,["prevent"]))}),[Q("span",{class:it([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),gt(Q("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[cb,t.value]]),Q("span",Mme,He(r.label),1)],16))}});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 Hc;function uh(){uh.init||(uh.init=!0,Hc=$me()!==-1)}var Xu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){uh(),Ot(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Hc&&this.$el.appendChild(e),e.data="about:blank",Hc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Hc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Pme=xy();by("data-v-b329ee4c");const Ome={class:"resize-observer",tabindex:"-1"};wy();const Rme=Pme((e,t,r,o,s,c)=>(oe(),tt("div",Ome)));Xu.render=Rme;Xu.__scopeId="data-v-b329ee4c";Xu.__file="src/components/ResizeObserver.vue";function qc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qc=function(t){return typeof t}:qc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qc(e)}function Dme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zme(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 Ime(e,t,r){return zme(e.prototype,t),e}function b0(e){return Fme(e)||Hme(e)||qme(e)||Bme()}function Fme(e){if(Array.isArray(e))return fh(e)}function Hme(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function qme(e,t){if(e){if(typeof e=="string")return fh(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 fh(e,t)}}function fh(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 Bme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
48
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wme(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Ume(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(b0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(b0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function B1(e,t){if(e===t)return!0;if(qc(e)==="object"){for(var r in e)if(!B1(e[r],t[r]))return!1;return!0}return!1}var Vme=function(){function e(t,r,o){Dme(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return Ime(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Wme(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=Ume(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),Ot(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function W1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new Vme(e,o,r);e._vue_visibilityState=s}}function jme(e,t,r){var o=t.value,s=t.oldValue;if(!B1(o,s)){var c=e._vue_visibilityState;if(!o){U1(e);return}c?c.createObserver(o,r):W1(e,{value:o},r)}}function U1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Gme={beforeMount:W1,updated:jme,unmounted:U1},Kme={itemsLimit:1e3},Xme=/(auto|scroll)/;function V1(e,t){return e.parentNode===null?t:V1(e.parentNode,t.concat([e]))}var md=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},Yme=function(t){return md(t,"overflow")+md(t,"overflow-y")+md(t,"overflow-x")},Zme=function(t){return Xme.test(Yme(t))};function w0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=V1(e.parentNode,[]),r=0;r<t.length;r+=1)if(Zme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function dh(e){"@babel/helpers - typeof";return dh=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},dh(e)}var Jme={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 Qme(){return this.items.length&&dh(this.items[0])!=="object"}var hh=!1;if(typeof window<"u"){hh=!1;try{var e0e=Object.defineProperty({},"passive",{get:function(){hh=!0}});window.addEventListener("test",null,e0e)}catch{}}let t0e=0;var dp={name:"RecycleScroller",components:{ResizeObserver:Xu},directives:{ObserveVisibility:Gme},props:{...Jme,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:Qme,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=Lh({id:t0e++,index:t,used:!0,key:o,type:s}),f=Th({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,w=this.pool,E=this.itemIndexByKey;let M,L,N,C,$;if(!p)M=L=C=$=N=0;else if(this.$_prerender)M=C=0,L=$=Math.min(this.prerender,h.length),N=null;else{const U=this.getScroll();if(t){let H=U.start-this.$_lastUpdateScrollPosition;if(H<0&&(H=-H),r===null&&H<c||H<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=U.start;const te=this.buffer;U.start-=te,U.end+=te;let J=0;if(this.$refs.before&&(J=this.$refs.before.scrollHeight,U.start-=J),this.$refs.after){const H=this.$refs.after.scrollHeight;U.end+=H}if(r===null){let H,I=0,k=p-1,W=~~(p/2),V;do V=W,H=v[W].accumulator,H<U.start?I=W:W<p-1&&v[W+1].accumulator>U.start&&(k=W),W=~~((I+k)/2);while(W!==V);for(W<0&&(W=0),M=W,N=v[p-1].accumulator,L=W;L<p&&v[L].accumulator<U.end;L++);for(L===-1?L=h.length-1:(L++,L>p&&(L=p)),C=M;C<p&&J+v[C].accumulator<U.start;C++);for($=C;$<p&&J+v[$].accumulator<U.end;$++);}else{M=~~(U.start/r*o);const H=M%o;M-=H,L=Math.ceil(U.end/r*o),C=Math.max(0,Math.floor((U.start-J)/r*o)),$=Math.floor((U.end-J)/r*o),M<0&&(M=0),L>p&&(L=p),C<0&&(C=0),$>p&&($=p),N=Math.ceil(p/o)*r}}L-M>Kme.itemsLimit&&this.itemsLimitError(),this.totalSize=N;let A;const z=M<=this.$_endIndex&&L>=this.$_startIndex;if(z)for(let U=0,te=w.length;U<te;U++)A=w[U],A.nr.used&&(e&&(A.nr.index=E[A.item[d]]),(A.nr.index==null||A.nr.index<M||A.nr.index>=L)&&this.unuseView(A));const G=z?null:new Map;let B,Z,ee;for(let U=M;U<L;U++){B=h[U];const te=d?B[d]:B;if(te==null)throw new Error(`Key is ${te} on item (keyField is '${d}')`);if(A=m.get(te),!r&&!v[U].size){A&&this.unuseView(A);continue}Z=B[f];let J=b.get(Z),H=!1;if(!A)z?J&&J.length?A=J.pop():A=this.addView(w,U,B,te,Z):(ee=G.get(Z)||0,(!J||ee>=J.length)&&(A=this.addView(w,U,B,te,Z),this.unuseView(A,!0),J=b.get(Z)),A=J[ee],G.set(Z,ee+1)),m.delete(A.nr.key),A.nr.used=!0,A.nr.index=U,A.nr.key=te,A.nr.type=Z,m.set(te,A),H=!0;else if(!A.nr.used&&(A.nr.used=!0,H=!0,J)){const I=J.indexOf(A);I!==-1&&J.splice(I,1)}A.item=B,H&&(U===h.length-1&&this.$emit("scroll-end"),U===0&&this.$emit("scroll-start")),r===null?(A.position=v[U-1].accumulator,A.offset=0):(A.position=Math.floor(U/o)*r,A.offset=U%o*s)}return this.$_startIndex=M,this.$_endIndex=L,this.emitUpdate&&this.$emit("update",M,L,C,$),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:z}},getListenerTarget(){let e=w0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,hh?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=w0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const n0e={key:0,ref:"before",class:"vue-recycle-scroller__slot"},r0e={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function i0e(e,t,r,o,s,c){const f=Po("ResizeObserver"),d=Kr("observe-visibility");return gt((oe(),me("div",{class:it(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(oe(),me("div",n0e,[mn(e.$slots,"before")],512)):Ke("v-if",!0),(oe(),tt(xv(r.listTag),{ref:"wrapper",style:Qt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:it(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:rt(()=>[(oe(!0),me(ct,null,gi(s.pool,h=>(oe(),tt(xv(r.itemTag),hi({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}]]},gk(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:rt(()=>[mn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),mn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(oe(),me("div",r0e,[mn(e.$slots,"after")],512)):Ke("v-if",!0),Pe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}dp.render=i0e;dp.__file="src/components/RecycleScroller.vue";function o0e(e){const t=ke(()=>jd.value?!1:!Ze.onlyTests),r=ke(()=>Hn.value===""),o=qe(Hn.value);jh(()=>Hn.value,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;Hn.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;Ze.failed=!1,Ze.success=!1,Ze.skipped=!1,Ze.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Os.value&&(an.value.search=(h==null?void 0:h.trim())??"",an.value.failed=p,an.value.success=v,an.value.skipped=m,an.value.onlyTests=b)}return Lt(()=>[o.value,Ze.failed,Ze.success,Ze.skipped,Ze.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ce.filterNodes()},{flush:"post"}),Lt(()=>Lr.value.length,h=>{h&&(an.value.expandAll=void 0)},{flush:"post"}),{initialized:Os,filter:Ze,search:Hn,disableFilter:t,isFiltered:cw,isFilteredByStatus:jd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Hu,testsTotal:HE,uiEntries:Vn}}const s0e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},l0e={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},a0e=["op"],c0e={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},u0e={"text-red5":""},f0e={"text-yellow5":""},d0e={"text-green5":""},h0e={class:"text-purple5:50"},p0e={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},g0e=["disabled"],v0e=["disabled"],m0e={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},y0e=ut({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=ke(()=>Vu.value.includeTaskLocation),s=qe(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:w,clearFilter:E,filteredFiles:M,testsTotal:L,uiEntries:N}=o0e(s),C=qe("grid-cols-2"),$=qe("grid-col-span-2"),A=qe(),{width:z}=Gh();return Lt(()=>z.value*(vn.navigation/100),G=>{G<420?(C.value="grid-cols-2",$.value="grid-col-span-2"):(C.value="grid-cols-4",$.value="grid-col-span-4")}),(G,B)=>{const Z=wi,ee=Nme,U=Ame,te=gme,J=Kr("tooltip");return oe(),me("div",{ref_key:"testExplorerRef",ref:A,h:"full",flex:"~ col"},[Q("div",null,[Q("div",s0e,[mn(G.$slots,"header",{filteredFiles:F(p)||F(v)?F(M):void 0})]),Q("div",l0e,[B[13]||(B[13]=Q("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),gt(Q("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":B[0]||(B[0]=H=>kt(d)?d.value=H:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:F(d).length?"100":"50",onKeydown:[B[1]||(B[1]=zd(H=>F(w)(!1),["esc"])),B[2]||(B[2]=zd(H=>r("run",F(p)||F(v)?F(M):void 0),["enter"]))]},null,40,a0e),[[OT,F(d)]]),gt(Pe(Z,{disabled:F(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:B[3]||(B[3]=H=>F(w)(!0))},null,8,["disabled"]),[[J,"Clear search",void 0,{bottom:!0}]])]),Q("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:it(F(C))},[Q("div",{class:it(F($)),flex:"~ gap-2 items-center"},[B[14]||(B[14]=Q("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),B[15]||(B[15]=Q("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),gt(Pe(Z,{disabled:F(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:B[4]||(B[4]=H=>F(E)(!1))},null,8,["disabled"]),[[J,"Clear Filter",void 0,{bottom:!0}]])],2),Pe(ee,{modelValue:F(f).failed,"onUpdate:modelValue":B[5]||(B[5]=H=>F(f).failed=H),label:"Fail"},null,8,["modelValue"]),Pe(ee,{modelValue:F(f).success,"onUpdate:modelValue":B[6]||(B[6]=H=>F(f).success=H),label:"Pass"},null,8,["modelValue"]),Pe(ee,{modelValue:F(f).skipped,"onUpdate:modelValue":B[7]||(B[7]=H=>F(f).skipped=H),label:"Skip"},null,8,["modelValue"]),Pe(ee,{modelValue:F(f).onlyTests,"onUpdate:modelValue":B[8]||(B[8]=H=>F(f).onlyTests=H),label:"Only Tests"},null,8,["modelValue"])],2)]),Q("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:B[12]||(B[12]=(...H)=>F(hm)&&F(hm)(...H))},[Pe(te,null,pk({default:rt(()=>[(F(p)||F(v))&&F(N).length===0?(oe(),me(ct,{key:0},[F(c)?(oe(),me("div",p0e,[B[18]||(B[18]=Q("div",{op30:""}," No matched test ",-1)),Q("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(F(m)?null:"hover:op100"),disabled:F(m),onClickPassive:B[9]||(B[9]=H=>F(w)(!0))}," Clear Search ",42,g0e),Q("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(F(h)?null:"hover:op100"),disabled:F(h),onClickPassive:B[10]||(B[10]=H=>F(E)(!0))}," Clear Filter ",42,v0e),Q("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:B[11]||(B[11]=(...H)=>F(b)&&F(b)(...H))}," Clear All ",32)])):(oe(),me("div",m0e,B[19]||(B[19]=[Q("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Q("div",{op30:""}," Loading... ",-1)])))],64)):(oe(),tt(F(dp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:F(N),buffer:100},{default:rt(({item:H})=>[Pe(U,{class:it(["h-28px m-0 p-0",F(eo)===H.id?"bg-active":""]),"task-id":H.id,expandable:H.expandable,type:H.type,current:F(eo)===H.id,indent:H.indent,name:H.name,typecheck:H.typecheck===!0,"project-name":H.projectName??"","project-name-color":H.projectNameColor??"",state:H.state,duration:H.duration,opened:H.expanded,"disable-task-location":!F(o),"on-item-click":G.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},[F(c)?{name:"summary",fn:rt(()=>[Q("div",c0e,[Q("span",u0e," FAIL ("+He(F(L).failed)+") ",1),B[16]||(B[16]=Q("span",null,"/",-1)),Q("span",f0e," RUNNING ("+He(F(L).running)+") ",1),Q("span",d0e," PASS ("+He(F(L).success)+") ",1),B[17]||(B[17]=Q("span",null,"/",-1)),Q("span",h0e," SKIP ("+He(F(f).onlyTests?F(L).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),b0e=""+new URL("../favicon.svg",import.meta.url).href,w0e={class:"flex text-lg"},x0e=ut({__name:"Navigation",setup(e){function t(){return mt.rpc.updateSnapshot()}const r=ke(()=>Ta.value?"light":"dark");async function o(f){ms.value&&(lu.value=!0,await Ot(),to.value&&(au(!0),await Ot())),f!=null&&f.length?await ep(f):await Bce()}function s(){Ce.collapseAllNodes()}function c(){Ce.expandAllNodes()}return(f,d)=>{const h=wi,p=y0e,v=Kr("tooltip");return oe(),tt(p,{border:"r base","on-item-click":F(gL),nested:!0,onRun:o},{header:rt(({filteredFiles:m})=>[d[8]||(d[8]=Q("img",{"w-6":"","h-6":"",src:b0e,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=Q("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),Q("div",w0e,[gt(Pe(h,{title:"Collapse tests",disabled:!F(Os),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[Gi,!F(Cm)],[v,"Collapse tests",void 0,{bottom:!0}]]),gt(Pe(h,{disabled:!F(Os),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[Gi,F(Cm)],[v,"Expand tests",void 0,{bottom:!0}]]),gt(Pe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>F(au)(!0))},null,512),[[Gi,F(Xd)&&!F(ms)||!F(Es)],[v,"Dashboard",void 0,{bottom:!0}]]),F(Xd)&&!F(ms)?(oe(),tt(F(Fb),{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]=[Q("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Q("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Q("div",null,"Coverage enabled but missing html reporter."),Q("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])),default:rt(()=>[d[7]||(d[7]=Q("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Ke("",!0),F(ms)?gt((oe(),tt(h,{key:1,disabled:F(lu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>F(vL)())},null,8,["disabled"])),[[Gi,!F(to)],[v,"Coverage",void 0,{bottom:!0}]]):Ke("",!0),F(Ce).summary.failedSnapshot&&!F(kr)?gt((oe(),tt(h,{key:2,icon:"i-carbon:result-old",disabled:!F(Ce).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>F(Ce).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ke("",!0),F(kr)?Ke("",!0):gt((oe(),tt(h,{key:3,disabled:(m==null?void 0:m.length)===0,icon:"i-carbon:play",onClick:b=>o(m)},null,8,["disabled","onClick"])),[[v,m?m.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),gt(Pe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>F(pue)())},null,512),[[v,`Toggle to ${F(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),S0e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},_0e=ut({__name:"ProgressBar",setup(e){const{width:t}=Gh(),r=ke(()=>Ce.summary.files===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":Ll.value?null:"in-progress"),o=ke(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesSuccess/d:0}),s=ke(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesFailed/d:0}),c=ke(()=>Ce.summary.files-Ce.summary.filesFailed-Ce.summary.filesSuccess),f=ke(()=>{const d=Ce.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(oe(),me("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:it(F(r))},[Q("div",S0e,[Q("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:it(F(r)),style:Qt(`width: ${F(s)}px;`)}," ",6),Q("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:it(F(r)),style:Qt(`left: ${F(s)}px; width: ${F(o)}px;`)}," ",6),Q("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:it(F(r)),style:Qt(`left: ${F(o)+F(s)}px; width: ${F(f)}px;`)}," ",6)])],2))}}),k0e=Xr(_0e,[["__scopeId","data-v-54017b6a"]]),x0={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===t?o.max:o.min,s!==t&&(r+=o.min),o)),this.panes[t].size-=r,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:r-t.left,y:o-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(e),s),o);let f=[t,t+1],d=this.panes[f[0]]||null,h=this.panes[f[1]]||null;const p=d.max<100&&c>=d.max+r.prevPanesSize,v=h.max<100&&c<=100-(h.max+this.sumNextPanesSize(t+1));if(p||v){p?(d.size=d.max,h.size=Math.max(100-d.max-r.prevPanesSize-r.nextPanesSize,0)):(d.size=Math.max(100-h.max-r.prevPanesSize-this.sumNextPanesSize(t+1),0),h.size=h.max);return}if(this.pushOtherPanes){const m=this.doPushOtherPanes(r,c);if(!m)return;({sums:r,panesToResize:f}=m),d=this.panes[f[0]]||null,h=this.panes[f[1]]||null}d!==null&&(d.size=Math.min(Math.max(c-r.prevPanesSize-r.prevReachedMinPanes,d.min),d.max)),h!==null&&(h.size=Math.min(Math.max(100-c-r.nextPanesSize-r.nextReachedMinPanes,h.min),h.max))},doPushOtherPanes(e,t){const r=this.touch.activeSplitter,o=[r,r+1];return t<e.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,e.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((s,c)=>{c>o[0]&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,c)=>{c>0&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,e.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,c)=>{c>r&&c<o[1]&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),e.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((s,c)=>{c<this.panesCount-1&&c>=r+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:o}},sumPrevPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o<e?r.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o>e+1?r.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),r=e.classList.contains("splitpanes__splitter");!t&&!r&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,r=!1){const o=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=c=>this.onMouseDown(c,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=c=>this.onMouseDown(c,o)),s.onclick=c=>this.onSplitterClick(c,o+1)),this.dblClickSplitter&&(s.ondblclick=c=>this.onSplitterDblClick(c,o+1)),t.parentNode.insertBefore(s,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let t=0;e.forEach(r=>{r.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,r,!0):t&&this.addSplitter(t,r),t++)})},requestUpdate({target:e,...t}){const r=this.indexedPanes[e._.uid];Object.entries(t).forEach(([o,s])=>r[o]=s)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&t++,s===e.$el));const r=parseFloat(e.minSize),o=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,c)=>s.index=c),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(o=>o.id===e._.uid),r=this.panes.splice(t,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:t}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),t-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),t>.1&&this.readjustSizes(t,r,o)},initialPanesSizing(){let e=100;const t=[],r=[];let o=0;this.panes.forEach(c=>{e-=c.size,c.size!==null&&o++,c.size>=c.max&&t.push(c.id),c.size<=c.min&&r.push(c.id)});let s=100;e>.1&&(this.panes.forEach(c=>{c.size===null&&(c.size=Math.max(Math.min(e/(this.panesCount-o),c.max),c.min)),s-=c.size}),s>.1&&this.readjustSizes(e,t,r))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let r=100/this.panesCount,o=0;const s=[],c=[];e&&e.givenSize!==null&&(r=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{e&&e.givenSize!==null&&e.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),o>.1&&this.readjustSizes(o,s,c))},readjustSizes(e,t,r){let o;e>0?o=e/(this.panesCount-t.length):o=e/(this.panesCount-r.length),this.panes.forEach((s,c)=>{if(e>0&&!t.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,r)=>{t.ondblclick=e?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return wa("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},T0e=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},C0e={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function E0e(e,t,r,o,s,c){return oe(),me("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=f=>c.onPaneClick(f,e._.uid)),style:Qt(e.style)},[mn(e.$slots,"default")],4)}const Tc=T0e(C0e,[["render",E0e]]),L0e={"h-screen":"","w-screen":"",overflow:"hidden"},A0e=ut({__name:"index",setup(e){const t=pL(),r=pc(m=>{p(),h(m)},0),o=pc(m=>{m.forEach((b,w)=>{yr.value[w]=b.size}),d(m)},0),s=pc(m=>{m.forEach((b,w)=>{Mo.value[w]=b.size}),h(m),v()},0),c=pc(m=>{d(m),p()},0);function f(){const m=window.innerWidth,b=Math.min(m/3,300);yr.value[0]=100*b/m,yr.value[1]=100-yr.value[0],d([{size:yr.value[0]},{size:yr.value[1]}])}function d(m){vn.navigation=m[0].size,vn.details.size=m[1].size}function h(m){vn.details.browser=m[0].size,vn.details.main=m[1].size}function p(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="none")}function v(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="")}return(m,b)=>{const w=k0e,E=x0e,M=hme,L=Lve,N=kve,C=iue,$=Gce;return oe(),me(ct,null,[Pe(w),Q("div",L0e,[Pe(F(x0),{class:"pt-4px",onResized:F(o),onResize:F(c),onReady:f},{default:rt(()=>[Pe(F(Tc),{size:F(yr)[0]},{default:rt(()=>[Pe(E)]),_:1},8,["size"]),Pe(F(Tc),{size:F(yr)[1]},{default:rt(()=>[F(Do)?(oe(),tt(F(x0),{id:"details-splitpanes",key:"browser-detail",onResize:F(r),onResized:F(s)},{default:rt(()=>[Pe(F(Tc),{size:F(Mo)[0],"min-size":"10"},{default:rt(()=>[b[0]||(Kc(-1),(b[0]=Pe(C)).cacheIndex=0,Kc(1),b[0])]),_:1},8,["size"]),Pe(F(Tc),{size:F(Mo)[1]},{default:rt(()=>[F(t)?(oe(),tt(M,{key:"summary"})):F(to)?(oe(),tt(L,{key:"coverage",src:F(Mm)},null,8,["src"])):(oe(),tt(N,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(oe(),tt(hT,{key:"ui-detail"},{default:rt(()=>[F(t)?(oe(),tt(M,{key:"summary"})):F(to)?(oe(),tt(L,{key:"coverage",src:F(Mm)},null,8,["src"])):(oe(),tt(N,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Pe($)],64)}}}),M0e=[{name:"index",path:"/",component:A0e,props:!0}];/*!
|
|
49
|
-
* vue-router v4.5.0
|
|
50
|
-
* (c) 2024 Eduardo San Martin Morote
|
|
51
|
-
* @license MIT
|
|
52
|
-
*/const gs=typeof document<"u";function j1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function N0e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&j1(e.default)}const bt=Object.assign;function yd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Ar(s)?s.map(e):e(s)}return r}const Bl=()=>{},Ar=Array.isArray,G1=/#/g,$0e=/&/g,P0e=/\//g,O0e=/=/g,R0e=/\?/g,K1=/\+/g,D0e=/%5B/g,z0e=/%5D/g,X1=/%5E/g,I0e=/%60/g,Y1=/%7B/g,F0e=/%7C/g,Z1=/%7D/g,H0e=/%20/g;function hp(e){return encodeURI(""+e).replace(F0e,"|").replace(D0e,"[").replace(z0e,"]")}function q0e(e){return hp(e).replace(Y1,"{").replace(Z1,"}").replace(X1,"^")}function ph(e){return hp(e).replace(K1,"%2B").replace(H0e,"+").replace(G1,"%23").replace($0e,"%26").replace(I0e,"`").replace(Y1,"{").replace(Z1,"}").replace(X1,"^")}function B0e(e){return ph(e).replace(O0e,"%3D")}function W0e(e){return hp(e).replace(G1,"%23").replace(R0e,"%3F")}function U0e(e){return e==null?"":W0e(e).replace(P0e,"%2F")}function da(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const V0e=/\/$/,j0e=e=>e.replace(V0e,"");function bd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=Y0e(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:da(f)}}function G0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function S0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function K0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&Is(t.matched[o],r.matched[s])&&J1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Is(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function J1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!X0e(e[r],t[r]))return!1;return!0}function X0e(e,t){return Ar(e)?_0(e,t):Ar(t)?_0(t,e):e===t}function _0(e,t){return Ar(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function Y0e(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const zi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ha;(function(e){e.pop="pop",e.push="push"})(ha||(ha={}));var Wl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Wl||(Wl={}));function Z0e(e){if(!e)if(gs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),j0e(e)}const J0e=/^[^#]+#/;function Q0e(e,t){return e.replace(J0e,"#")+t}function eye(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 Yu=()=>({left:window.scrollX,top:window.scrollY});function tye(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=eye(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 k0(e,t){return(history.state?history.state.position-t:-1)+e}const gh=new Map;function nye(e,t){gh.set(e,t)}function rye(e){const t=gh.get(e);return gh.delete(e),t}let iye=()=>location.protocol+"//"+location.host;function Q1(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let d=s.includes(e.slice(c))?e.slice(c).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),S0(h,"")}return S0(r,e)+o+s}function oye(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=Q1(e,location),E=r.value,M=t.value;let L=0;if(b){if(r.value=w,t.value=b,f&&f===E){f=null;return}L=M?b.position-M.position:0}else o(w);s.forEach(N=>{N(r.value,E,{delta:L,type:ha.pop,direction:L?L>0?Wl.forward:Wl.back:Wl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const E=s.indexOf(b);E>-1&&s.splice(E,1)};return c.push(w),w}function v(){const{history:b}=window;b.state&&b.replaceState(bt({},b.state,{scroll:Yu()}),"")}function m(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:m}}function T0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Yu():null}}function sye(e){const{history:t,location:r}=window,o={value:Q1(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const m=e.indexOf("#"),b=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+h:iye()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(w){console.error(w),r[v?"replace":"assign"](b)}}function f(h,p){const v=bt({},t.state,T0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=bt({},s.value,t.state,{forward:h,scroll:Yu()});c(v.current,v,!0);const m=bt({},T0(o.value,h,null),{position:v.position+1},p);c(h,m,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function lye(e){e=Z0e(e);const t=sye(e),r=oye(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:Q0e.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 aye(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),lye(e)}function cye(e){return typeof e=="string"||e&&typeof e=="object"}function ex(e){return typeof e=="string"||typeof e=="symbol"}const tx=Symbol("");var C0;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(C0||(C0={}));function Fs(e,t){return bt(new Error,{type:e,[tx]:!0},t)}function li(e,t){return e instanceof Error&&tx in e&&(t==null||!!(e.type&t))}const E0="[^/]+?",uye={sensitive:!1,strict:!1,start:!0,end:!0},fye=/[.+*?^${}()[\]/\\]/g;function dye(e,t){const r=bt({},uye,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let m=0;m<p.length;m++){const b=p[m];let w=40+(r.sensitive?.25:0);if(b.type===0)m||(s+="/"),s+=b.value.replace(fye,"\\$&"),w+=40;else if(b.type===1){const{value:E,repeatable:M,optional:L,regexp:N}=b;c.push({name:E,repeatable:M,optional:L});const C=N||E0;if(C!==E0){w+=10;try{new RegExp(`(${C})`)}catch(A){throw new Error(`Invalid custom RegExp for param "${E}" (${C}): `+A.message)}}let $=M?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;m||($=L&&p.length<2?`(?:/${$})`:"/"+$),L&&($+="?"),s+=$,w+=20,L&&(w+=-8),M&&(w+=-20),C===".*"&&(w+=-50)}v.push(w)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),m={};if(!v)return null;for(let b=1;b<v.length;b++){const w=v[b]||"",E=c[b-1];m[E.name]=w&&E.repeatable?w.split("/"):w}return m}function h(p){let v="",m=!1;for(const b of e){(!m||!v.endsWith("/"))&&(v+="/"),m=!1;for(const w of b)if(w.type===0)v+=w.value;else if(w.type===1){const{value:E,repeatable:M,optional:L}=w,N=E in p?p[E]:"";if(Ar(N)&&!M)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const C=Ar(N)?N.join("/"):N;if(!C)if(L)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${E}"`);v+=C}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function hye(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 nx(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=hye(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(L0(o))return 1;if(L0(s))return-1}return s.length-o.length}function L0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const pye={type:0,value:""},gye=/[a-zA-Z0-9_]/;function vye(e){if(!e)return[[]];if(e==="/")return[[pye]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function m(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&m(),f()):h===":"?(m(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:gye.test(h)?b():(m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),m(),f(),s}function mye(e,t,r){const o=dye(vye(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 yye(e,t){const r=[],o=new Map;t=$0({strict:!1,end:!0,sensitive:!1},t);function s(m){return o.get(m)}function c(m,b,w){const E=!w,M=M0(m);M.aliasOf=w&&w.record;const L=$0(t,m),N=[M];if("alias"in m){const A=typeof m.alias=="string"?[m.alias]:m.alias;for(const z of A)N.push(M0(bt({},M,{components:w?w.record.components:M.components,path:z,aliasOf:w?w.record:M})))}let C,$;for(const A of N){const{path:z}=A;if(b&&z[0]!=="/"){const G=b.record.path,B=G[G.length-1]==="/"?"":"/";A.path=b.record.path+(z&&B+z)}if(C=mye(A,b,L),w?w.alias.push(C):($=$||C,$!==C&&$.alias.push(C),E&&m.name&&!N0(C)&&f(m.name)),rx(C)&&h(C),M.children){const G=M.children;for(let B=0;B<G.length;B++)c(G[B],C,w&&w.children[B])}w=w||C}return $?()=>{f($)}:Bl}function f(m){if(ex(m)){const b=o.get(m);b&&(o.delete(m),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(m);b>-1&&(r.splice(b,1),m.record.name&&o.delete(m.record.name),m.children.forEach(f),m.alias.forEach(f))}}function d(){return r}function h(m){const b=xye(m,r);r.splice(b,0,m),m.record.name&&!N0(m)&&o.set(m.record.name,m)}function p(m,b){let w,E={},M,L;if("name"in m&&m.name){if(w=o.get(m.name),!w)throw Fs(1,{location:m});L=w.record.name,E=bt(A0(b.params,w.keys.filter($=>!$.optional).concat(w.parent?w.parent.keys.filter($=>$.optional):[]).map($=>$.name)),m.params&&A0(m.params,w.keys.map($=>$.name))),M=w.stringify(E)}else if(m.path!=null)M=m.path,w=r.find($=>$.re.test(M)),w&&(E=w.parse(M),L=w.record.name);else{if(w=b.name?o.get(b.name):r.find($=>$.re.test(b.path)),!w)throw Fs(1,{location:m,currentLocation:b});L=w.record.name,E=bt({},b.params,m.params),M=w.stringify(E)}const N=[];let C=w;for(;C;)N.unshift(C.record),C=C.parent;return{name:L,path:M,params:E,matched:N,meta:wye(N)}}e.forEach(m=>c(m));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function A0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function M0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:bye(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 bye(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 N0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function wye(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function $0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function xye(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;nx(e,t[c])<0?o=c:r=c+1}const s=Sye(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function Sye(e){let t=e;for(;t=t.parent;)if(rx(t)&&nx(e,t)===0)return t}function rx({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function _ye(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace(K1," "),f=c.indexOf("="),d=da(f<0?c:c.slice(0,f)),h=f<0?null:da(c.slice(f+1));if(d in t){let p=t[d];Ar(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function P0(e){let t="";for(let r in e){const o=e[r];if(r=B0e(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Ar(o)?o.map(c=>c&&ph(c)):[o&&ph(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function kye(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Ar(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const Tye=Symbol(""),O0=Symbol(""),pp=Symbol(""),ix=Symbol(""),vh=Symbol("");function Cl(){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 Vi(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(Fs(4,{from:r,to:t})):b instanceof Error?h(b):cye(b)?h(Fs(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let m=Promise.resolve(v);e.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function wd(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(j1(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Vi(v,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const m=N0e(v)?v.default:v;f.mods[d]=v,f.components[d]=m;const w=(m.__vccOpts||m)[t];return w&&Vi(w,r,o,f,d,s)()}))}}return c}function R0(e){const t=Br(pp),r=Br(ix),o=ke(()=>{const h=F(e.to);return t.resolve(h)}),s=ke(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],m=r.matched;if(!v||!m.length)return-1;const b=m.findIndex(Is.bind(null,v));if(b>-1)return b;const w=D0(h[p-2]);return p>1&&D0(v)===w&&m[m.length-1].path!==w?m.findIndex(Is.bind(null,h[p-2])):b}),c=ke(()=>s.value>-1&&Mye(r.params,o.value.params)),f=ke(()=>s.value>-1&&s.value===r.matched.length-1&&J1(r.params,o.value.params));function d(h={}){if(Aye(h)){const p=t[F(e.replace)?"replace":"push"](F(e.to)).catch(Bl);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:ke(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function Cye(e){return e.length===1?e[0]:e}const Eye=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"}},useLink:R0,setup(e,{slots:t}){const r=Qn(R0(e)),{options:o}=Br(pp),s=ke(()=>({[z0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[z0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&Cye(t.default(r));return e.custom?c:wa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),Lye=Eye;function Aye(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 Mye(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(!Ar(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function D0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const z0=(e,t,r)=>e??t??r,Nye=ut({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=Br(vh),s=ke(()=>e.route||o.value),c=Br(O0,0),f=ke(()=>{let p=F(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=ke(()=>s.value.matched[f.value]);Lc(O0,ke(()=>f.value+1)),Lc(Tye,d),Lc(vh,s);const h=qe();return Lt(()=>[h.value,d.value,e.name],([p,v,m],[b,w,E])=>{v&&(v.instances[m]=p,w&&w!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=w.leaveGuards),v.updateGuards.size||(v.updateGuards=w.updateGuards))),p&&v&&(!w||!Is(v,w)||!b)&&(v.enterCallbacks[m]||[]).forEach(M=>M(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return I0(r.default,{Component:b,route:p});const w=m.props[v],E=w?w===!0?p.params:typeof w=="function"?w(p):w:null,L=wa(b,bt({},E,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return I0(r.default,{Component:L,route:p})||L}}});function I0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const $ye=Nye;function Pye(e){const t=yye(e.routes,e),r=e.parseQuery||_ye,o=e.stringifyQuery||P0,s=e.history,c=Cl(),f=Cl(),d=Cl(),h=Gr(zi);let p=zi;gs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=yd.bind(null,Y=>""+Y),m=yd.bind(null,U0e),b=yd.bind(null,da);function w(Y,ae){let he,$e;return ex(Y)?(he=t.getRecordMatcher(Y),$e=ae):$e=Y,t.addRoute($e,he)}function E(Y){const ae=t.getRecordMatcher(Y);ae&&t.removeRoute(ae)}function M(){return t.getRoutes().map(Y=>Y.record)}function L(Y){return!!t.getRecordMatcher(Y)}function N(Y,ae){if(ae=bt({},ae||h.value),typeof Y=="string"){const X=bd(r,Y,ae.path),le=t.resolve({path:X.path},ae),fe=s.createHref(X.fullPath);return bt(X,le,{params:b(le.params),hash:da(X.hash),redirectedFrom:void 0,href:fe})}let he;if(Y.path!=null)he=bt({},Y,{path:bd(r,Y.path,ae.path).path});else{const X=bt({},Y.params);for(const le in X)X[le]==null&&delete X[le];he=bt({},Y,{params:m(X)}),ae.params=m(ae.params)}const $e=t.resolve(he,ae),Ae=Y.hash||"";$e.params=v(b($e.params));const D=G0e(o,bt({},Y,{hash:q0e(Ae),path:$e.path})),q=s.createHref(D);return bt({fullPath:D,hash:Ae,query:o===P0?kye(Y.query):Y.query||{}},$e,{redirectedFrom:void 0,href:q})}function C(Y){return typeof Y=="string"?bd(r,Y,h.value.path):bt({},Y)}function $(Y,ae){if(p!==Y)return Fs(8,{from:ae,to:Y})}function A(Y){return B(Y)}function z(Y){return A(bt(C(Y),{replace:!0}))}function G(Y){const ae=Y.matched[Y.matched.length-1];if(ae&&ae.redirect){const{redirect:he}=ae;let $e=typeof he=="function"?he(Y):he;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=C($e):{path:$e},$e.params={}),bt({query:Y.query,hash:Y.hash,params:$e.path!=null?{}:Y.params},$e)}}function B(Y,ae){const he=p=N(Y),$e=h.value,Ae=Y.state,D=Y.force,q=Y.replace===!0,X=G(he);if(X)return B(bt(C(X),{state:typeof X=="object"?bt({},Ae,X.state):Ae,force:D,replace:q}),ae||he);const le=he;le.redirectedFrom=ae;let fe;return!D&&K0e(o,$e,he)&&(fe=Fs(16,{to:le,from:$e}),We($e,$e,!0,!1)),(fe?Promise.resolve(fe):U(le,$e)).catch(ce=>li(ce)?li(ce,2)?ce:Ne(ce):ie(ce,le,$e)).then(ce=>{if(ce){if(li(ce,2))return B(bt({replace:q},C(ce.to),{state:typeof ce.to=="object"?bt({},Ae,ce.to.state):Ae,force:D}),ae||le)}else ce=J(le,$e,!0,q,Ae);return te(le,$e,ce),ce})}function Z(Y,ae){const he=$(Y,ae);return he?Promise.reject(he):Promise.resolve()}function ee(Y){const ae=et.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(Y):Y()}function U(Y,ae){let he;const[$e,Ae,D]=Oye(Y,ae);he=wd($e.reverse(),"beforeRouteLeave",Y,ae);for(const X of $e)X.leaveGuards.forEach(le=>{he.push(Vi(le,Y,ae))});const q=Z.bind(null,Y,ae);return he.push(q),Le(he).then(()=>{he=[];for(const X of c.list())he.push(Vi(X,Y,ae));return he.push(q),Le(he)}).then(()=>{he=wd(Ae,"beforeRouteUpdate",Y,ae);for(const X of Ae)X.updateGuards.forEach(le=>{he.push(Vi(le,Y,ae))});return he.push(q),Le(he)}).then(()=>{he=[];for(const X of D)if(X.beforeEnter)if(Ar(X.beforeEnter))for(const le of X.beforeEnter)he.push(Vi(le,Y,ae));else he.push(Vi(X.beforeEnter,Y,ae));return he.push(q),Le(he)}).then(()=>(Y.matched.forEach(X=>X.enterCallbacks={}),he=wd(D,"beforeRouteEnter",Y,ae,ee),he.push(q),Le(he))).then(()=>{he=[];for(const X of f.list())he.push(Vi(X,Y,ae));return he.push(q),Le(he)}).catch(X=>li(X,8)?X:Promise.reject(X))}function te(Y,ae,he){d.list().forEach($e=>ee(()=>$e(Y,ae,he)))}function J(Y,ae,he,$e,Ae){const D=$(Y,ae);if(D)return D;const q=ae===zi,X=gs?history.state:{};he&&($e||q?s.replace(Y.fullPath,bt({scroll:q&&X&&X.scroll},Ae)):s.push(Y.fullPath,Ae)),h.value=Y,We(Y,ae,he,q),Ne()}let H;function I(){H||(H=s.listen((Y,ae,he)=>{if(!Xe.listening)return;const $e=N(Y),Ae=G($e);if(Ae){B(bt(Ae,{replace:!0,force:!0}),$e).catch(Bl);return}p=$e;const D=h.value;gs&&nye(k0(D.fullPath,he.delta),Yu()),U($e,D).catch(q=>li(q,12)?q:li(q,2)?(B(bt(C(q.to),{force:!0}),$e).then(X=>{li(X,20)&&!he.delta&&he.type===ha.pop&&s.go(-1,!1)}).catch(Bl),Promise.reject()):(he.delta&&s.go(-he.delta,!1),ie(q,$e,D))).then(q=>{q=q||J($e,D,!1),q&&(he.delta&&!li(q,8)?s.go(-he.delta,!1):he.type===ha.pop&&li(q,20)&&s.go(-1,!1)),te($e,D,q)}).catch(Bl)}))}let k=Cl(),W=Cl(),V;function ie(Y,ae,he){Ne(Y);const $e=W.list();return $e.length?$e.forEach(Ae=>Ae(Y,ae,he)):console.error(Y),Promise.reject(Y)}function ye(){return V&&h.value!==zi?Promise.resolve():new Promise((Y,ae)=>{k.add([Y,ae])})}function Ne(Y){return V||(V=!Y,I(),k.list().forEach(([ae,he])=>Y?he(Y):ae()),k.reset()),Y}function We(Y,ae,he,$e){const{scrollBehavior:Ae}=e;if(!gs||!Ae)return Promise.resolve();const D=!he&&rye(k0(Y.fullPath,0))||($e||!he)&&history.state&&history.state.scroll||null;return Ot().then(()=>Ae(Y,ae,D)).then(q=>q&&tye(q)).catch(q=>ie(q,Y,ae))}const Ve=Y=>s.go(Y);let nt;const et=new Set,Xe={currentRoute:h,listening:!0,addRoute:w,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:L,getRoutes:M,resolve:N,options:e,push:A,replace:z,go:Ve,back:()=>Ve(-1),forward:()=>Ve(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:W.add,isReady:ye,install(Y){const ae=this;Y.component("RouterLink",Lye),Y.component("RouterView",$ye),Y.config.globalProperties.$router=ae,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>F(h)}),gs&&!nt&&h.value===zi&&(nt=!0,A(s.location).catch(Ae=>{}));const he={};for(const Ae in zi)Object.defineProperty(he,Ae,{get:()=>h.value[Ae],enumerable:!0});Y.provide(pp,ae),Y.provide(ix,Th(he)),Y.provide(vh,h);const $e=Y.unmount;et.add(Y),Y.unmount=function(){et.delete(Y),et.size<1&&(p=zi,H&&H(),H=null,h.value=zi,nt=!1,V=!1),$e()}}};function Le(Y){return Y.reduce((ae,he)=>ae.then(()=>ee(he)),Promise.resolve())}return Xe}function Oye(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>Is(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>Is(p,h))||s.push(h))}return[r,o,s]}const Rye={tooltip:BC};Hb.options.instantMove=!0;Hb.options.distance=10;function Dye(){return Pye({history:aye(),routes:M0e})}const zye=[Dye],gp=fb(VT);zye.forEach(e=>{gp.use(e())});Object.entries(Rye).forEach(([e,t])=>{gp.directive(e,t)});gp.mount("#app");
|