@vitest/browser 4.1.0-beta.2 → 4.1.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/context.d.ts +1 -2
- package/dist/client/.vite/manifest.json +6 -6
- package/dist/client/__vitest__/assets/index-C71EXv4T.css +1 -0
- package/dist/client/__vitest__/assets/index-CPanfHPD.js +63 -0
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/__vitest_browser__/{orchestrator-S_3e_uzt.js → orchestrator-CXs6qrFe.js} +70 -28
- package/dist/client/__vitest_browser__/{tester-C47xeQbT.js → tester-CgiVtoKi.js} +20 -10
- package/dist/client/__vitest_browser__/{utils-uxqdqUz8.js → utils-C2ISqq1C.js} +2 -2
- package/dist/client/orchestrator.html +2 -2
- package/dist/client/tester/tester.html +2 -2
- package/dist/client.js +1 -1
- package/dist/context.js +0 -3
- package/dist/expect-element.js +1 -1
- package/dist/{index-5ZLDAkrH.js → index-Dlkb5vw8.js} +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +45 -79
- package/dist/locators.js +1 -1
- package/package.json +7 -7
- package/dist/client/__vitest__/assets/index-CR4OJGrW.js +0 -59
- package/dist/client/__vitest__/assets/index-Dyh_kUYQ.css +0 -1
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
|
|
2
|
-
* @vue/shared v3.5.26
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/function Xh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},qs=[],Yr=()=>{},V0=()=>!1,qu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Yh=e=>e.startsWith("onUpdate:"),sn=Object.assign,Zh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},r_=Object.prototype.hasOwnProperty,wt=(e,t)=>r_.call(e,t),Xe=Array.isArray,Us=e=>Ba(e)==="[object Map]",pl=e=>Ba(e)==="[object Set]",Qm=e=>Ba(e)==="[object Date]",tt=e=>typeof e=="function",Ht=e=>typeof e=="string",Rr=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",G0=e=>(St(e)||tt(e))&&tt(e.then)&&tt(e.catch),K0=Object.prototype.toString,Ba=e=>K0.call(e),i_=e=>Ba(e).slice(8,-1),X0=e=>Ba(e)==="[object Object]",Uu=e=>Ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ra=Xh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vu=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},o_=/-\w/g,sr=Vu(e=>e.replace(o_,t=>t.slice(1).toUpperCase())),s_=/\B([A-Z])/g,Ni=Vu(e=>e.replace(s_,"-$1").toLowerCase()),Gu=Vu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Jc=Vu(e=>e?`on${Gu(e)}`:""),Gn=(e,t)=>!Object.is(e,t),Qc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},Y0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},Ku=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Z0=e=>{const t=Ht(e)?Number(e):NaN;return isNaN(t)?e:t};let ev;const Xu=()=>ev||(ev=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Rt(e){if(Xe(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=Ht(o)?u_(o):Rt(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Ht(e)||St(e))return e}const l_=/;(?![^(]*\))/g,a_=/:([^]+)/,c_=/\/\*[^]*?\*\//g;function u_(e){const t={};return e.replace(c_,"").split(l_).forEach(r=>{if(r){const o=r.split(a_);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function st(e){let t="";if(Ht(e))t=e;else if(Xe(e))for(let r=0;r<e.length;r++){const o=st(e[r]);o&&(t+=o+" ")}else if(St(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function f_(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Ht(t)&&(e.class=st(t)),r&&(e.style=Rt(r)),e}const d_="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",h_=Xh(d_);function J0(e){return!!e||e===""}function p_(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=ja(e[o],t[o]);return r}function ja(e,t){if(e===t)return!0;let r=Qm(e),o=Qm(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Rr(e),o=Rr(t),r||o)return e===t;if(r=Xe(e),o=Xe(t),r||o)return r&&o?p_(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||!ja(e[f],t[f]))return!1}}return String(e)===String(t)}function Jh(e,t){return e.findIndex(r=>ja(r,t))}const Q0=e=>!!(e&&e.__v_isRef===!0),Me=e=>Ht(e)?e:e==null?"":Xe(e)||St(e)&&(e.toString===K0||!tt(e.toString))?Q0(e)?Me(e.value):JSON.stringify(e,eb,2):String(e),eb=(e,t)=>Q0(t)?eb(e,t.value):Us(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[bd(o,c)+" =>"]=s,r),{})}:pl(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>bd(r))}:Rr(t)?bd(t):St(t)&&!Xe(t)&&!X0(t)?String(t):t,bd=(e,t="")=>{var r;return Rr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.26
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let wn;class g_{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=wn,!t&&wn&&(this.index=(wn.scopes||(wn.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=wn;try{return wn=this,t()}finally{wn=r}}}on(){++this._on===1&&(this.prevScope=wn,wn=this)}off(){this._on>0&&--this._on===0&&(wn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(this.effects.length=0,r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function tb(){return wn}function m_(e,t=!1){wn&&wn.cleanups.push(e)}let Ct;const wd=new WeakSet;class nb{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,wn&&wn.active&&wn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,wd.has(this)&&(wd.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ib(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,tv(this),ob(this);const t=Ct,r=Or;Ct=this,Or=!0;try{return this.fn()}finally{sb(this),Ct=t,Or=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)tp(t);this.deps=this.depsTail=void 0,tv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?wd.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Jd(this)&&this.run()}get dirty(){return Jd(this)}}let rb=0,ia,oa;function ib(e,t=!1){if(e.flags|=8,t){e.next=oa,oa=e;return}e.next=ia,ia=e}function Qh(){rb++}function ep(){if(--rb>0)return;if(oa){let t=oa;for(oa=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;ia;){let t=ia;for(ia=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=r}}if(e)throw e}function ob(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function sb(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),tp(o),v_(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function Jd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(lb(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function lb(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ma)||(e.globalVersion=ma,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Jd(e))))return;e.flags|=2;const t=e.dep,r=Ct,o=Or;Ct=e,Or=!0;try{ob(e);const s=e.fn(e._value);(t.version===0||Gn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ct=r,Or=o,sb(e),e.flags&=-3}}function tp(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)tp(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function v_(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Or=!0;const ab=[];function Ci(){ab.push(Or),Or=!1}function Ei(){const e=ab.pop();Or=e===void 0?!0:e}function tv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Ct;Ct=void 0;try{t()}finally{Ct=r}}}let ma=0;class y_{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 Yu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ct||!Or||Ct===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Ct)r=this.activeLink=new y_(Ct,this),Ct.deps?(r.prevDep=Ct.depsTail,Ct.depsTail.nextDep=r,Ct.depsTail=r):Ct.deps=Ct.depsTail=r,cb(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=Ct.depsTail,r.nextDep=void 0,Ct.depsTail.nextDep=r,Ct.depsTail=r,Ct.deps===r&&(Ct.deps=o)}return r}trigger(t){this.version++,ma++,this.notify(t)}notify(t){Qh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{ep()}}}function cb(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)cb(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const pu=new WeakMap,Yo=Symbol(""),Qd=Symbol(""),va=Symbol("");function xn(e,t,r){if(Or&&Ct){let o=pu.get(e);o||pu.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Yu),s.map=o,s.key=r),s.track()}}function bi(e,t,r,o,s,c){const f=pu.get(e);if(!f){ma++;return}const d=h=>{h&&h.trigger()};if(Qh(),t==="clear")f.forEach(d);else{const h=Xe(e),p=h&&Uu(r);if(h&&r==="length"){const g=Number(o);f.forEach((v,b)=>{(b==="length"||b===va||!Rr(b)&&b>=g)&&d(v)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(va)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Yo)),Us(e)&&d(f.get(Qd)));break;case"delete":h||(d(f.get(Yo)),Us(e)&&d(f.get(Qd)));break;case"set":Us(e)&&d(f.get(Yo));break}}ep()}function b_(e,t){const r=pu.get(e);return r&&r.get(t)}function Os(e){const t=mt(e);return t===e?t:(xn(t,"iterate",va),or(e)?t:t.map($r))}function Zu(e){return xn(e=mt(e),"iterate",va),e}function eo(e,t){return Ai(e)?Zo(e)?nl($r(t)):nl(t):$r(t)}const w_={__proto__:null,[Symbol.iterator](){return xd(this,Symbol.iterator,e=>eo(this,e))},concat(...e){return Os(this).concat(...e.map(t=>Xe(t)?Os(t):t))},entries(){return xd(this,"entries",e=>(e[1]=eo(this,e[1]),e))},every(e,t){return fi(this,"every",e,t,void 0,arguments)},filter(e,t){return fi(this,"filter",e,t,r=>r.map(o=>eo(this,o)),arguments)},find(e,t){return fi(this,"find",e,t,r=>eo(this,r),arguments)},findIndex(e,t){return fi(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return fi(this,"findLast",e,t,r=>eo(this,r),arguments)},findLastIndex(e,t){return fi(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return fi(this,"forEach",e,t,void 0,arguments)},includes(...e){return kd(this,"includes",e)},indexOf(...e){return kd(this,"indexOf",e)},join(e){return Os(this).join(e)},lastIndexOf(...e){return kd(this,"lastIndexOf",e)},map(e,t){return fi(this,"map",e,t,void 0,arguments)},pop(){return Vl(this,"pop")},push(...e){return Vl(this,"push",e)},reduce(e,...t){return nv(this,"reduce",e,t)},reduceRight(e,...t){return nv(this,"reduceRight",e,t)},shift(){return Vl(this,"shift")},some(e,t){return fi(this,"some",e,t,void 0,arguments)},splice(...e){return Vl(this,"splice",e)},toReversed(){return Os(this).toReversed()},toSorted(e){return Os(this).toSorted(e)},toSpliced(...e){return Os(this).toSpliced(...e)},unshift(...e){return Vl(this,"unshift",e)},values(){return xd(this,"values",e=>eo(this,e))}};function xd(e,t,r){const o=Zu(e),s=o[t]();return o!==e&&!or(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.done||(c.value=r(c.value)),c}),s}const x_=Array.prototype;function fi(e,t,r,o,s,c){const f=Zu(e),d=f!==e&&!or(e),h=f[t];if(h!==x_[t]){const v=h.apply(e,c);return d?$r(v):v}let p=r;f!==e&&(d?p=function(v,b){return r.call(this,eo(e,v),b,e)}:r.length>2&&(p=function(v,b){return r.call(this,v,b,e)}));const g=h.call(f,p,o);return d&&s?s(g):g}function nv(e,t,r,o){const s=Zu(e);let c=r;return s!==e&&(or(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,eo(e,d),h,e)}),s[t](c,...o)}function kd(e,t,r){const o=mt(e);xn(o,"iterate",va);const s=o[t](...r);return(s===-1||s===!1)&&Ju(r[0])?(r[0]=mt(r[0]),o[t](...r)):s}function Vl(e,t,r=[]){Ci(),Qh();const o=mt(e)[t].apply(e,r);return ep(),Ei(),o}const k_=Xh("__proto__,__v_isRef,__isVue"),ub=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rr));function S_(e){Rr(e)||(e=String(e));const t=mt(this);return xn(t,"has",e),t.hasOwnProperty(e)}class fb{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){if(r==="__v_skip")return t.__v_skip;const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?P_:gb:c?pb:hb).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Xe(t);if(!s){let h;if(f&&(h=w_[r]))return h;if(r==="hasOwnProperty")return S_}const d=Reflect.get(t,r,Tt(t)?t:o);if((Rr(r)?ub.has(r):k_(r))||(s||xn(t,"get",r),c))return d;if(Tt(d)){const h=f&&Uu(r)?d:d.value;return s&&St(h)?tl(h):h}return St(d)?s?tl(d):ir(d):d}}class db extends fb{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];const f=Xe(t)&&Uu(r);if(!this._isShallow){const p=Ai(c);if(!or(o)&&!Ai(o)&&(c=mt(c),o=mt(o)),!f&&Tt(c)&&!Tt(o))return p||(c.value=o),!0}const d=f?Number(r)<t.length:wt(t,r),h=Reflect.set(t,r,o,Tt(t)?t:s);return t===mt(s)&&(d?Gn(o,c)&&bi(t,"set",r,o):bi(t,"add",r,o)),h}deleteProperty(t,r){const o=wt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&bi(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Rr(r)||!ub.has(r))&&xn(t,"has",r),o}ownKeys(t){return xn(t,"iterate",Xe(t)?"length":Yo),Reflect.ownKeys(t)}}class __ extends fb{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const T_=new db,C_=new __,E_=new db(!0);const eh=e=>e,Rc=e=>Reflect.getPrototypeOf(e);function A_(e,t,r){return function(...o){const s=this.__v_raw,c=mt(s),f=Us(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),g=r?eh:t?nl:$r;return!t&&xn(c,"iterate",h?Qd:Yo),{next(){const{value:v,done:b}=p.next();return b?{value:v,done:b}:{value:d?[g(v[0]),g(v[1])]:g(v),done:b}},[Symbol.iterator](){return this}}}}function $c(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function L_(e,t){const r={get(s){const c=this.__v_raw,f=mt(c),d=mt(s);e||(Gn(s,d)&&xn(f,"get",s),xn(f,"get",d));const{has:h}=Rc(f),p=t?eh:e?nl:$r;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&&xn(mt(s),"iterate",Yo),s.size},has(s){const c=this.__v_raw,f=mt(c),d=mt(s);return e||(Gn(s,d)&&xn(f,"has",s),xn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=mt(d),p=t?eh:e?nl:$r;return!e&&xn(h,"iterate",Yo),d.forEach((g,v)=>s.call(c,p(g),p(v),f))}};return sn(r,e?{add:$c("add"),set:$c("set"),delete:$c("delete"),clear:$c("clear")}:{add(s){!t&&!or(s)&&!Ai(s)&&(s=mt(s));const c=mt(this);return Rc(c).has.call(c,s)||(c.add(s),bi(c,"add",s,s)),this},set(s,c){!t&&!or(c)&&!Ai(c)&&(c=mt(c));const f=mt(this),{has:d,get:h}=Rc(f);let p=d.call(f,s);p||(s=mt(s),p=d.call(f,s));const g=h.call(f,s);return f.set(s,c),p?Gn(c,g)&&bi(f,"set",s,c):bi(f,"add",s,c),this},delete(s){const c=mt(this),{has:f,get:d}=Rc(c);let h=f.call(c,s);h||(s=mt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&bi(c,"delete",s,void 0),p},clear(){const s=mt(this),c=s.size!==0,f=s.clear();return c&&bi(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=A_(s,e,t)}),r}function np(e,t){const r=L_(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 M_={get:np(!1,!1)},N_={get:np(!1,!0)},O_={get:np(!0,!1)};const hb=new WeakMap,pb=new WeakMap,gb=new WeakMap,P_=new WeakMap;function R_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $_(e){return e.__v_skip||!Object.isExtensible(e)?0:R_(i_(e))}function ir(e){return Ai(e)?e:ip(e,!1,T_,M_,hb)}function rp(e){return ip(e,!1,E_,N_,pb)}function tl(e){return ip(e,!0,C_,O_,gb)}function ip(e,t,r,o,s){if(!St(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=$_(e);if(c===0)return e;const f=s.get(e);if(f)return f;const d=new Proxy(e,c===2?o:r);return s.set(e,d),d}function Zo(e){return Ai(e)?Zo(e.__v_raw):!!(e&&e.__v_isReactive)}function Ai(e){return!!(e&&e.__v_isReadonly)}function or(e){return!!(e&&e.__v_isShallow)}function Ju(e){return e?!!e.__v_raw:!1}function mt(e){const t=e&&e.__v_raw;return t?mt(t):e}function Qu(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&Y0(e,"__v_skip",!0),e}const $r=e=>St(e)?ir(e):e,nl=e=>St(e)?tl(e):e;function Tt(e){return e?e.__v_isRef===!0:!1}function Ue(e){return mb(e,!1)}function Nt(e){return mb(e,!0)}function mb(e,t){return Tt(e)?e:new I_(e,t)}class I_{constructor(t,r){this.dep=new Yu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:mt(t),this._value=r?t:$r(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||or(t)||Ai(t);t=o?t:mt(t),Gn(t,r)&&(this._rawValue=t,this._value=o?t:$r(t),this.dep.trigger())}}function K(e){return Tt(e)?e.value:e}function Yt(e){return tt(e)?e():K(e)}const D_={get:(e,t,r)=>t==="__v_raw"?e:K(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Tt(s)&&!Tt(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function vb(e){return Zo(e)?e:new Proxy(e,D_)}class z_{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Yu,{get:o,set:s}=t(r.track.bind(r),r.trigger.bind(r));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function yb(e){return new z_(e)}function F_(e){const t=Xe(e)?new Array(e.length):{};for(const r in e)t[r]=bb(e,r);return t}class H_{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._raw=mt(t);let s=!0,c=t;if(!Xe(t)||!Uu(String(r)))do s=!Ju(c)||or(c);while(s&&(c=c.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=K(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Tt(this._raw[this._key])){const r=this._object[this._key];if(Tt(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return b_(this._raw,this._key)}}class B_{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 j_(e,t,r){return Tt(e)?e:tt(e)?new B_(e):St(e)&&arguments.length>1?bb(e,t,r):Ue(e)}function bb(e,t,r){return new H_(e,t,r)}class W_{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Yu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ma-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Ct!==this)return ib(this,!0),!0}get value(){const t=this.dep.track();return lb(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function q_(e,t,r=!1){let o,s;return tt(e)?o=e:(o=e.get,s=e.set),new W_(o,s,r)}const Ic={},gu=new WeakMap;let jo;function U_(e,t=!1,r=jo){if(r){let o=gu.get(r);o||gu.set(r,o=[]),o.push(e)}}function V_(e,t,r=vt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=E=>s?E:or(E)||s===!1||s===0?wi(E,1):wi(E);let g,v,b,w,T=!1,L=!1;if(Tt(e)?(v=()=>e.value,T=or(e)):Zo(e)?(v=()=>p(e),T=!0):Xe(e)?(L=!0,T=e.some(E=>Zo(E)||or(E)),v=()=>e.map(E=>{if(Tt(E))return E.value;if(Zo(E))return p(E);if(tt(E))return h?h(E,2):E()})):tt(e)?t?v=h?()=>h(e,2):e:v=()=>{if(b){Ci();try{b()}finally{Ei()}}const E=jo;jo=g;try{return h?h(e,3,[w]):e(w)}finally{jo=E}}:v=Yr,t&&s){const E=v,D=s===!0?1/0:s;v=()=>wi(E(),D)}const P=tb(),M=()=>{g.stop(),P&&P.active&&Zh(P.effects,g)};if(c&&t){const E=t;t=(...D)=>{E(...D),M()}}let R=L?new Array(e.length).fill(Ic):Ic;const I=E=>{if(!(!(g.flags&1)||!g.dirty&&!E))if(t){const D=g.run();if(s||T||(L?D.some((V,ee)=>Gn(V,R[ee])):Gn(D,R))){b&&b();const V=jo;jo=g;try{const ee=[D,R===Ic?void 0:L&&R[0]===Ic?[]:R,w];R=D,h?h(t,3,ee):t(...ee)}finally{jo=V}}}else g.run()};return d&&d(I),g=new nb(v),g.scheduler=f?()=>f(I,!1):I,w=E=>U_(E,!1,g),b=g.onStop=()=>{const E=gu.get(g);if(E){if(h)h(E,4);else for(const D of E)D();gu.delete(g)}},t?o?I(!0):R=g.run():f?f(I.bind(null,!0),!0):g.run(),M.pause=g.pause.bind(g),M.resume=g.resume.bind(g),M.stop=M,M}function wi(e,t=1/0,r){if(t<=0||!St(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Tt(e))wi(e.value,t,r);else if(Xe(e))for(let o=0;o<e.length;o++)wi(e[o],t,r);else if(pl(e)||Us(e))e.forEach(o=>{wi(o,t,r)});else if(X0(e)){for(const o in e)wi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&wi(e[o],t,r)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.26
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function Wa(e,t,r,o){try{return o?e(...o):e()}catch(s){qa(s,t,r)}}function Ir(e,t,r,o){if(tt(e)){const s=Wa(e,t,r,o);return s&&G0(s)&&s.catch(c=>{qa(c,t,r)}),s}if(Xe(e)){const s=[];for(let c=0;c<e.length;c++)s.push(Ir(e[c],t,r,o));return s}}function qa(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 g=d.ec;if(g){for(let v=0;v<g.length;v++)if(g[v](e,h,p)===!1)return}d=d.parent}if(c){Ci(),Wa(c,null,10,[e,h,p]),Ei();return}}G_(e,r,s,o,f)}function G_(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Rn=[];let Kr=-1;const Vs=[];let to=null,Is=0;const wb=Promise.resolve();let mu=null;function Et(e){const t=mu||wb;return e?t.then(this?e.bind(this):e):t}function K_(e){let t=Kr+1,r=Rn.length;for(;t<r;){const o=t+r>>>1,s=Rn[o],c=ya(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function op(e){if(!(e.flags&1)){const t=ya(e),r=Rn[Rn.length-1];!r||!(e.flags&2)&&t>=ya(r)?Rn.push(e):Rn.splice(K_(t),0,e),e.flags|=1,xb()}}function xb(){mu||(mu=wb.then(Sb))}function th(e){Xe(e)?Vs.push(...e):to&&e.id===-1?to.splice(Is+1,0,e):e.flags&1||(Vs.push(e),e.flags|=1),xb()}function rv(e,t,r=Kr+1){for(;r<Rn.length;r++){const o=Rn[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Rn.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function kb(e){if(Vs.length){const t=[...new Set(Vs)].sort((r,o)=>ya(r)-ya(o));if(Vs.length=0,to){to.push(...t);return}for(to=t,Is=0;Is<to.length;Is++){const r=to[Is];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}to=null,Is=0}}const ya=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Sb(e){try{for(Kr=0;Kr<Rn.length;Kr++){const t=Rn[Kr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Wa(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Kr<Rn.length;Kr++){const t=Rn[Kr];t&&(t.flags&=-2)}Kr=-1,Rn.length=0,kb(),mu=null,(Rn.length||Vs.length)&&Sb()}}let mn=null,ef=null;function vu(e){const t=mn;return mn=e,ef=e&&e.type.__scopeId||null,t}function _b(e){ef=e}function Tb(){ef=null}const Cb=e=>Be;function Be(e,t=mn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&il(-1);const c=vu(t);let f;try{f=e(...s)}finally{vu(c),o._d&&il(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function ot(e,t){if(mn===null)return e;const r=af(mn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=vt]=t[s];c&&(tt(c)&&(c={mounted:c,updated:c}),c.deep&&wi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function Do(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&&(Ci(),Ir(h,r,8,[e.el,d,e,t]),Ei())}}function dr(e,t){if(kn){let r=kn.provides;const o=kn.parent&&kn.parent.provides;o===r&&(r=kn.provides=Object.create(o)),r[e]=t}}function gn(e,t,r=!1){const o=ti();if(o||Jo){let s=Jo?Jo._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&tt(t)?t.call(o&&o.proxy):t}}function Eb(){return!!(ti()||Jo)}const X_=Symbol.for("v-scx"),Y_=()=>gn(X_);function Ab(e,t){return tf(e,null,t)}function Z_(e,t){return tf(e,null,{flush:"sync"})}function kt(e,t,r){return tf(e,t,r)}function tf(e,t,r=vt){const{immediate:o,deep:s,flush:c,once:f}=r,d=sn({},r),h=t&&o||!t&&c!=="post";let p;if(ka){if(c==="sync"){const w=Y_();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!h){const w=()=>{};return w.stop=Yr,w.resume=Yr,w.pause=Yr,w}}const g=kn;d.call=(w,T,L)=>Ir(w,g,T,L);let v=!1;c==="post"?d.scheduler=w=>{Un(w,g&&g.suspense)}:c!=="sync"&&(v=!0,d.scheduler=(w,T)=>{T?w():op(w)}),d.augmentJob=w=>{t&&(w.flags|=4),v&&(w.flags|=2,g&&(w.id=g.uid,w.i=g))};const b=V_(e,t,d);return ka&&(p?p.push(b):h&&b()),b}function J_(e,t,r){const o=this.proxy,s=Ht(e)?e.includes(".")?Lb(o,e):()=>o[e]:e.bind(o,o);let c;tt(t)?c=t:(c=t.handler,r=t);const f=Ga(this),d=tf(s,c.bind(o),r);return f(),d}function Lb(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}const Q_=Symbol("_vte"),Mb=e=>e.__isTeleport,yi=Symbol("_leaveCb"),Dc=Symbol("_enterCb");function eT(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Pi(()=>{e.isMounted=!0}),Ua(()=>{e.isUnmounting=!0}),e}const ur=[Function,Array],Nb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ur,onEnter:ur,onAfterEnter:ur,onEnterCancelled:ur,onBeforeLeave:ur,onLeave:ur,onAfterLeave:ur,onLeaveCancelled:ur,onBeforeAppear:ur,onAppear:ur,onAfterAppear:ur,onAppearCancelled:ur},Ob=e=>{const t=e.subTree;return t.component?Ob(t.component):t},tT={name:"BaseTransition",props:Nb,setup(e,{slots:t}){const r=ti(),o=eT();return()=>{const s=t.default&&$b(t.default(),!0);if(!s||!s.length)return;const c=Pb(s),f=mt(e),{mode:d}=f;if(o.isLeaving)return Sd(c);const h=iv(c);if(!h)return Sd(c);let p=nh(h,f,o,r,v=>p=v);h.type!==an&&ba(h,p);let g=r.subTree&&iv(r.subTree);if(g&&g.type!==an&&!Xr(g,h)&&Ob(r).type!==an){let v=nh(g,f,o,r);if(ba(g,v),d==="out-in"&&h.type!==an)return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete v.afterLeave,g=void 0},Sd(c);d==="in-out"&&h.type!==an?v.delayLeave=(b,w,T)=>{const L=Rb(o,g);L[String(g.key)]=g,b[yi]=()=>{w(),b[yi]=void 0,delete p.delayedLeave,g=void 0},p.delayedLeave=()=>{T(),delete p.delayedLeave,g=void 0}}:g=void 0}else g&&(g=void 0);return c}}};function Pb(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==an){t=r;break}}return t}const nT=tT;function Rb(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 nh(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:b,onLeave:w,onAfterLeave:T,onLeaveCancelled:L,onBeforeAppear:P,onAppear:M,onAfterAppear:R,onAppearCancelled:I}=t,E=String(e.key),D=Rb(r,e),V=(Y,G)=>{Y&&Ir(Y,o,9,G)},ee=(Y,G)=>{const j=G[1];V(Y,G),Xe(Y)?Y.every(O=>O.length<=1)&&j():Y.length<=1&&j()},ie={mode:f,persisted:d,beforeEnter(Y){let G=h;if(!r.isMounted)if(c)G=P||h;else return;Y[yi]&&Y[yi](!0);const j=D[E];j&&Xr(e,j)&&j.el[yi]&&j.el[yi](),V(G,[Y])},enter(Y){let G=p,j=g,O=v;if(!r.isMounted)if(c)G=M||p,j=R||g,O=I||v;else return;let N=!1;const C=Y[Dc]=k=>{N||(N=!0,k?V(O,[Y]):V(j,[Y]),ie.delayedLeave&&ie.delayedLeave(),Y[Dc]=void 0)};G?ee(G,[Y,C]):C()},leave(Y,G){const j=String(e.key);if(Y[Dc]&&Y[Dc](!0),r.isUnmounting)return G();V(b,[Y]);let O=!1;const N=Y[yi]=C=>{O||(O=!0,G(),C?V(L,[Y]):V(T,[Y]),Y[yi]=void 0,D[j]===e&&delete D[j])};D[j]=e,w?ee(w,[Y,N]):N()},clone(Y){const G=nh(Y,t,r,o,s);return s&&s(G),G}};return ie}function Sd(e){if(nf(e))return e=vo(e),e.children=null,e}function iv(e){if(!nf(e))return Mb(e.type)&&e.children?Pb(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&tt(r.default))return r.default()}}function ba(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ba(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 $b(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===et?(f.patchFlag&128&&s++,o=o.concat($b(f.children,t,d))):(t||f.type!==an)&&o.push(d!=null?vo(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}function rt(e,t){return tt(e)?sn({name:e.name},t,{setup:e}):e}function sp(){const e=ti();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Ib(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const yu=new WeakMap;function sa(e,t,r,o,s=!1){if(Xe(e)){e.forEach((T,L)=>sa(T,t&&(Xe(t)?t[L]:t),r,o,s));return}if(Gs(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&sa(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?af(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,g=d.refs===vt?d.refs={}:d.refs,v=d.setupState,b=mt(v),w=v===vt?V0:T=>wt(b,T);if(p!=null&&p!==h){if(ov(t),Ht(p))g[p]=null,w(p)&&(v[p]=null);else if(Tt(p)){p.value=null;const T=t;T.k&&(g[T.k]=null)}}if(tt(h))Wa(h,d,12,[f,g]);else{const T=Ht(h),L=Tt(h);if(T||L){const P=()=>{if(e.f){const M=T?w(h)?v[h]:g[h]:h.value;if(s)Xe(M)&&Zh(M,c);else if(Xe(M))M.includes(c)||M.push(c);else if(T)g[h]=[c],w(h)&&(v[h]=g[h]);else{const R=[c];h.value=R,e.k&&(g[e.k]=R)}}else T?(g[h]=f,w(h)&&(v[h]=f)):L&&(h.value=f,e.k&&(g[e.k]=f))};if(f){const M=()=>{P(),yu.delete(e)};M.id=-1,yu.set(e,M),Un(M,r)}else ov(e),P()}}}function ov(e){const t=yu.get(e);t&&(t.flags|=8,yu.delete(e))}Xu().requestIdleCallback;Xu().cancelIdleCallback;const Gs=e=>!!e.type.__asyncLoader,nf=e=>e.type.__isKeepAlive;function rT(e,t){Db(e,"a",t)}function iT(e,t){Db(e,"da",t)}function Db(e,t,r=kn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(rf(t,o,r),r){let s=r.parent;for(;s&&s.parent;)nf(s.parent.vnode)&&oT(o,t,r,s),s=s.parent}}function oT(e,t,r,o){const s=rf(t,e,o,!0);Va(()=>{Zh(o[t],s)},r)}function rf(e,t,r=kn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{Ci();const d=Ga(r),h=Ir(t,r,e,f);return d(),Ei(),h});return o?s.unshift(c):s.push(c),c}}const Oi=e=>(t,r=kn)=>{(!ka||e==="sp")&&rf(e,(...o)=>t(...o),r)},sT=Oi("bm"),Pi=Oi("m"),lT=Oi("bu"),aT=Oi("u"),Ua=Oi("bum"),Va=Oi("um"),cT=Oi("sp"),uT=Oi("rtg"),fT=Oi("rtc");function dT(e,t=kn){rf("ec",e,t)}const lp="components",hT="directives";function es(e,t){return ap(lp,e,!0,t)||e}const zb=Symbol.for("v-ndc");function rh(e){return Ht(e)?ap(lp,e,!1)||e:e||zb}function vr(e){return ap(hT,e)}function ap(e,t,r=!0,o=!1){const s=mn||kn;if(s){const c=s.type;if(e===lp){const d=tC(c,!1);if(d&&(d===t||d===sr(t)||d===Gu(sr(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[sr(t)]||e[Gu(sr(t))])}function vn(e,t,r,o){let s;const c=r,f=Xe(e);if(f||Ht(e)){const d=f&&Zo(e);let h=!1,p=!1;d&&(h=!or(e),p=Ai(e),e=Zu(e)),s=new Array(e.length);for(let g=0,v=e.length;g<v;g++)s[g]=t(h?p?nl($r(e[g])):$r(e[g]):e[g],g,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 g=d[h];s[h]=t(e[g],g,h,c)}}else s=[];return s}function pT(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Xe(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function Ft(e,t,r={},o,s){if(mn.ce||mn.parent&&Gs(mn.parent)&&mn.parent.ce){const p=Object.keys(r).length>0;return t!=="default"&&(r.name=t),ne(),Ve(et,null,[Ne("slot",r,o&&o())],p?-2:64)}let c=e[t];c&&c._c&&(c._d=!1),ne();const f=c&&Fb(c(r)),d=r.key||f&&f.key,h=Ve(et,{key:(d&&!Rr(d)?d:`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),c&&c._c&&(c._d=!0),h}function Fb(e){return e.some(t=>ol(t)?!(t.type===an||t.type===et&&!Fb(t.children)):!0)?e:null}function gT(e,t){const r={};for(const o in e)r[Jc(o)]=e[o];return r}const ih=e=>e?uw(e)?af(e):ih(e.parent):null,la=sn(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=>ih(e.parent),$root:e=>ih(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Wb(e),$forceUpdate:e=>e.f||(e.f=()=>{op(e.update)}),$nextTick:e=>e.n||(e.n=Et.bind(e.proxy)),$watch:e=>J_.bind(e)}),_d=(e,t)=>e!==vt&&!e.__isScriptSetup&&wt(e,t),mT={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;if(t[0]!=="$"){const b=f[t];if(b!==void 0)switch(b){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(_d(o,t))return f[t]=1,o[t];if(s!==vt&&wt(s,t))return f[t]=2,s[t];if(wt(c,t))return f[t]=3,c[t];if(r!==vt&&wt(r,t))return f[t]=4,r[t];oh&&(f[t]=0)}}const p=la[t];let g,v;if(p)return t==="$attrs"&&xn(e.attrs,"get",""),p(e);if((g=d.__cssModules)&&(g=g[t]))return g;if(r!==vt&&wt(r,t))return f[t]=4,r[t];if(v=h.config.globalProperties,wt(v,t))return v[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return _d(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,props:c,type:f}},d){let h;return!!(r[d]||e!==vt&&d[0]!=="$"&&wt(e,d)||_d(t,d)||wt(c,d)||wt(o,d)||wt(la,d)||wt(s.config.globalProperties,d)||(h=f.__cssModules)&&h[d])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Hb(){return Bb().slots}function vT(){return Bb().attrs}function Bb(e){const t=ti();return t.setupContext||(t.setupContext=dw(t))}function bu(e){return Xe(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function wa(e,t){return!e||!t?e||t:Xe(e)&&Xe(t)?e.concat(t):sn({},bu(e),bu(t))}let oh=!0;function yT(e){const t=Wb(e),r=e.proxy,o=e.ctx;oh=!1,t.beforeCreate&&lv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:g,beforeMount:v,mounted:b,beforeUpdate:w,updated:T,activated:L,deactivated:P,beforeDestroy:M,beforeUnmount:R,destroyed:I,unmounted:E,render:D,renderTracked:V,renderTriggered:ee,errorCaptured:ie,serverPrefetch:Y,expose:G,inheritAttrs:j,components:O,directives:N,filters:C}=t;if(p&&bT(p,o,null),f)for(const $ in f){const ae=f[$];tt(ae)&&(o[$]=ae.bind(r))}if(s){const $=s.call(r,r);St($)&&(e.data=ir($))}if(oh=!0,c)for(const $ in c){const ae=c[$],ce=tt(ae)?ae.bind(r,r):tt(ae.get)?ae.get.bind(r,r):Yr,Se=!tt(ae)&&tt(ae.set)?ae.set.bind(r):Yr,je=xe({get:ce,set:Se});Object.defineProperty(o,$,{enumerable:!0,configurable:!0,get:()=>je.value,set:Ae=>je.value=Ae})}if(d)for(const $ in d)jb(d[$],o,r,$);if(h){const $=tt(h)?h.call(r):h;Reflect.ownKeys($).forEach(ae=>{dr(ae,$[ae])})}g&&lv(g,e,"c");function F($,ae){Xe(ae)?ae.forEach(ce=>$(ce.bind(r))):ae&&$(ae.bind(r))}if(F(sT,v),F(Pi,b),F(lT,w),F(aT,T),F(rT,L),F(iT,P),F(dT,ie),F(fT,V),F(uT,ee),F(Ua,R),F(Va,E),F(cT,Y),Xe(G))if(G.length){const $=e.exposed||(e.exposed={});G.forEach(ae=>{Object.defineProperty($,ae,{get:()=>r[ae],set:ce=>r[ae]=ce,enumerable:!0})})}else e.exposed||(e.exposed={});D&&e.render===Yr&&(e.render=D),j!=null&&(e.inheritAttrs=j),O&&(e.components=O),N&&(e.directives=N),Y&&Ib(e)}function bT(e,t,r=Yr){Xe(e)&&(e=sh(e));for(const o in e){const s=e[o];let c;St(s)?"default"in s?c=gn(s.from||o,s.default,!0):c=gn(s.from||o):c=gn(s),Tt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function lv(e,t,r){Ir(Xe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function jb(e,t,r,o){let s=o.includes(".")?Lb(r,o):()=>r[o];if(Ht(e)){const c=t[e];tt(c)&&kt(s,c)}else if(tt(e))kt(s,e.bind(r));else if(St(e))if(Xe(e))e.forEach(c=>jb(c,t,r,o));else{const c=tt(e.handler)?e.handler.bind(r):t[e.handler];tt(c)&&kt(s,c,e)}}function Wb(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>wu(h,p,f,!0)),wu(h,t,f)),St(t)&&c.set(t,h),h}function wu(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&wu(e,c,r,!0),s&&s.forEach(f=>wu(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=wT[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const wT={data:av,props:cv,emits:cv,methods:Ql,computed:Ql,beforeCreate:Nn,created:Nn,beforeMount:Nn,mounted:Nn,beforeUpdate:Nn,updated:Nn,beforeDestroy:Nn,beforeUnmount:Nn,destroyed:Nn,unmounted:Nn,activated:Nn,deactivated:Nn,errorCaptured:Nn,serverPrefetch:Nn,components:Ql,directives:Ql,watch:kT,provide:av,inject:xT};function av(e,t){return t?e?function(){return sn(tt(e)?e.call(this,this):e,tt(t)?t.call(this,this):t)}:t:e}function xT(e,t){return Ql(sh(e),sh(t))}function sh(e){if(Xe(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Nn(e,t){return e?[...new Set([].concat(e,t))]:t}function Ql(e,t){return e?sn(Object.create(null),e,t):t}function cv(e,t){return e?Xe(e)&&Xe(t)?[...new Set([...e,...t])]:sn(Object.create(null),bu(e),bu(t??{})):t}function kT(e,t){if(!e)return t;if(!t)return e;const r=sn(Object.create(null),e);for(const o in t)r[o]=Nn(e[o],t[o]);return r}function qb(){return{app:null,config:{isNativeTag:V0,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ST=0;function _T(e,t){return function(o,s=null){tt(o)||(o=sn({},o)),s!=null&&!St(s)&&(s=null);const c=qb(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:ST++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:rC,get config(){return c.config},set config(g){},use(g,...v){return f.has(g)||(g&&tt(g.install)?(f.add(g),g.install(p,...v)):tt(g)&&(f.add(g),g(p,...v))),p},mixin(g){return c.mixins.includes(g)||c.mixins.push(g),p},component(g,v){return v?(c.components[g]=v,p):c.components[g]},directive(g,v){return v?(c.directives[g]=v,p):c.directives[g]},mount(g,v,b){if(!h){const w=p._ceVNode||Ne(o,s);return w.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(w,g,b),h=!0,p._container=g,g.__vue_app__=p,af(w.component)}},onUnmount(g){d.push(g)},unmount(){h&&(Ir(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(g,v){return c.provides[g]=v,p},runWithContext(g){const v=Jo;Jo=p;try{return g()}finally{Jo=v}}};return p}}let Jo=null;function of(e,t,r=vt){const o=ti(),s=sr(t),c=Ni(t),f=Ub(e,s),d=yb((h,p)=>{let g,v=vt,b;return Z_(()=>{const w=e[s];Gn(g,w)&&(g=w,p())}),{get(){return h(),r.get?r.get(g):g},set(w){const T=r.set?r.set(w):w;if(!Gn(T,g)&&!(v!==vt&&Gn(w,v)))return;const L=o.vnode.props;L&&(t in L||s in L||c in L)&&(`onUpdate:${t}`in L||`onUpdate:${s}`in L||`onUpdate:${c}`in L)||(g=w,p()),o.emit(`update:${t}`,T),Gn(w,T)&&Gn(w,v)&&!Gn(T,b)&&p(),v=w,b=T}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||vt:d,done:!1}:{done:!0}}}},d}const Ub=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${sr(t)}Modifiers`]||e[`${Ni(t)}Modifiers`];function TT(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||vt;let s=r;const c=t.startsWith("update:"),f=c&&Ub(o,t.slice(7));f&&(f.trim&&(s=r.map(g=>Ht(g)?g.trim():g)),f.number&&(s=r.map(Ku)));let d,h=o[d=Jc(t)]||o[d=Jc(sr(t))];!h&&c&&(h=o[d=Jc(Ni(t))]),h&&Ir(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,Ir(p,e,6,s)}}const CT=new WeakMap;function Vb(e,t,r=!1){const o=r?CT:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!tt(e)){const h=p=>{const g=Vb(p,t,!0);g&&(d=!0,sn(f,g))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(St(e)&&o.set(e,null),null):(Xe(c)?c.forEach(h=>f[h]=null):sn(f,c),St(e)&&o.set(e,f),f)}function sf(e,t){return!e||!qu(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,Ni(t))||wt(e,t))}function uv(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:g,props:v,data:b,setupState:w,ctx:T,inheritAttrs:L}=e,P=vu(e);let M,R;try{if(r.shapeFlag&4){const E=s||o,D=E;M=Lr(p.call(D,E,g,v,w,b,T)),R=d}else{const E=t;M=Lr(E.length>1?E(v,{attrs:d,slots:f,emit:h}):E(v,null)),R=t.props?d:AT(d)}}catch(E){aa.length=0,qa(E,e,1),M=Ne(an)}let I=M;if(R&&L!==!1){const E=Object.keys(R),{shapeFlag:D}=I;E.length&&D&7&&(c&&E.some(Yh)&&(R=LT(R,c)),I=vo(I,R,!1,!0))}return r.dirs&&(I=vo(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(r.dirs):r.dirs),r.transition&&ba(I,r.transition),M=I,vu(P),M}function ET(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(ol(s)){if(s.type!==an||s.children==="v-if"){if(r)return;r=s}}else return}return r}const AT=e=>{let t;for(const r in e)(r==="class"||r==="style"||qu(r))&&((t||(t={}))[r]=e[r]);return t},LT=(e,t)=>{const r={};for(const o in e)(!Yh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function MT(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?fv(o,f,p):!!f;if(h&8){const g=t.dynamicProps;for(let v=0;v<g.length;v++){const b=g[v];if(f[b]!==o[b]&&!sf(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?fv(o,f,p):!0:!!f;return!1}function fv(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]&&!sf(r,c))return!0}return!1}function cp({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=r,t=t.parent;else break}}const Gb={},Kb=()=>Object.create(Gb),Xb=e=>Object.getPrototypeOf(e)===Gb;function NT(e,t,r,o=!1){const s={},c=Kb();e.propsDefaults=Object.create(null),Yb(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:rp(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function OT(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=mt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const g=e.vnode.dynamicProps;for(let v=0;v<g.length;v++){let b=g[v];if(sf(e.emitsOptions,b))continue;const w=t[b];if(h)if(wt(c,b))w!==c[b]&&(c[b]=w,p=!0);else{const T=sr(b);s[T]=lh(h,d,T,w,e,!1)}else w!==c[b]&&(c[b]=w,p=!0)}}}else{Yb(e,t,s,c)&&(p=!0);let g;for(const v in d)(!t||!wt(t,v)&&((g=Ni(v))===v||!wt(t,g)))&&(h?r&&(r[v]!==void 0||r[g]!==void 0)&&(s[v]=lh(h,d,v,void 0,e,!0)):delete s[v]);if(c!==d)for(const v in c)(!t||!wt(t,v))&&(delete c[v],p=!0)}p&&bi(e.attrs,"set","")}function Yb(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(ra(h))continue;const p=t[h];let g;s&&wt(s,g=sr(h))?!c||!c.includes(g)?r[g]=p:(d||(d={}))[g]=p:sf(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=mt(r),p=d||vt;for(let g=0;g<c.length;g++){const v=c[g];r[v]=lh(s,h,v,p[v],e,!wt(p,v))}}return f}function lh(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&&tt(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const g=Ga(s);o=p[r]=h.call(null,t),g()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===Ni(r))&&(o=!0))}return o}const PT=new WeakMap;function Zb(e,t,r=!1){const o=r?PT:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!tt(e)){const g=v=>{h=!0;const[b,w]=Zb(v,t,!0);sn(f,b),w&&d.push(...w)};!r&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!c&&!h)return St(e)&&o.set(e,qs),qs;if(Xe(c))for(let g=0;g<c.length;g++){const v=sr(c[g]);dv(v)&&(f[v]=vt)}else if(c)for(const g in c){const v=sr(g);if(dv(v)){const b=c[g],w=f[v]=Xe(b)||tt(b)?{type:b}:sn({},b),T=w.type;let L=!1,P=!0;if(Xe(T))for(let M=0;M<T.length;++M){const R=T[M],I=tt(R)&&R.name;if(I==="Boolean"){L=!0;break}else I==="String"&&(P=!1)}else L=tt(T)&&T.name==="Boolean";w[0]=L,w[1]=P,(L||wt(w,"default"))&&d.push(v)}}const p=[f,d];return St(e)&&o.set(e,p),p}function dv(e){return e[0]!=="$"&&!ra(e)}const up=e=>e==="_"||e==="_ctx"||e==="$stable",fp=e=>Xe(e)?e.map(Lr):[Lr(e)],RT=(e,t,r)=>{if(t._n)return t;const o=Be((...s)=>fp(t(...s)),r);return o._c=!1,o},Jb=(e,t,r)=>{const o=e._ctx;for(const s in e){if(up(s))continue;const c=e[s];if(tt(c))t[s]=RT(s,c,o);else if(c!=null){const f=fp(c);t[s]=()=>f}}},Qb=(e,t)=>{const r=fp(t);e.slots.default=()=>r},ew=(e,t,r)=>{for(const o in t)(r||!up(o))&&(e[o]=t[o])},$T=(e,t,r)=>{const o=e.slots=Kb();if(e.vnode.shapeFlag&32){const s=t._;s?(ew(o,t,r),r&&Y0(o,"_",s,!0)):Jb(t,o)}else t&&Qb(e,t)},IT=(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:ew(s,t,r):(c=!t.$stable,Jb(t,s)),f=t}else t&&(Qb(e,t),f={default:1});if(c)for(const d in s)!up(d)&&f[d]==null&&delete s[d]},Un=VT;function DT(e){return zT(e)}function zT(e,t){const r=Xu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:g,parentNode:v,nextSibling:b,setScopeId:w=Yr,insertStaticContent:T}=e,L=(z,W,Q,he=null,pe=null,me=null,Ce=void 0,Ee=null,ke=!!W.dynamicChildren)=>{if(z===W)return;z&&!Xr(z,W)&&(he=H(z),Ae(z,pe,me,!0),z=null),W.patchFlag===-2&&(ke=!1,W.dynamicChildren=null);const{type:be,ref:J,shapeFlag:fe}=W;switch(be){case lf:P(z,W,Q,he);break;case an:M(z,W,Q,he);break;case Cd:z==null&&R(W,Q,he,Ce);break;case et:O(z,W,Q,he,pe,me,Ce,Ee,ke);break;default:fe&1?D(z,W,Q,he,pe,me,Ce,Ee,ke):fe&6?N(z,W,Q,he,pe,me,Ce,Ee,ke):(fe&64||fe&128)&&be.process(z,W,Q,he,pe,me,Ce,Ee,ke,le)}J!=null&&pe?sa(J,z&&z.ref,me,W||z,!W):J==null&&z&&z.ref!=null&&sa(z.ref,null,me,z,!0)},P=(z,W,Q,he)=>{if(z==null)o(W.el=d(W.children),Q,he);else{const pe=W.el=z.el;W.children!==z.children&&p(pe,W.children)}},M=(z,W,Q,he)=>{z==null?o(W.el=h(W.children||""),Q,he):W.el=z.el},R=(z,W,Q,he)=>{[z.el,z.anchor]=T(z.children,W,Q,he,z.el,z.anchor)},I=({el:z,anchor:W},Q,he)=>{let pe;for(;z&&z!==W;)pe=b(z),o(z,Q,he),z=pe;o(W,Q,he)},E=({el:z,anchor:W})=>{let Q;for(;z&&z!==W;)Q=b(z),s(z),z=Q;s(W)},D=(z,W,Q,he,pe,me,Ce,Ee,ke)=>{if(W.type==="svg"?Ce="svg":W.type==="math"&&(Ce="mathml"),z==null)V(W,Q,he,pe,me,Ce,Ee,ke);else{const be=z.el&&z.el._isVueCE?z.el:null;try{be&&be._beginPatch(),Y(z,W,pe,me,Ce,Ee,ke)}finally{be&&be._endPatch()}}},V=(z,W,Q,he,pe,me,Ce,Ee)=>{let ke,be;const{props:J,shapeFlag:fe,transition:oe,dirs:$e}=z;if(ke=z.el=f(z.type,me,J&&J.is,J),fe&8?g(ke,z.children):fe&16&&ie(z.children,ke,null,he,pe,Td(z,me),Ce,Ee),$e&&Do(z,null,he,"created"),ee(ke,z,z.scopeId,Ce,he),J){for(const ct in J)ct!=="value"&&!ra(ct)&&c(ke,ct,null,J[ct],me,he);"value"in J&&c(ke,"value",null,J.value,me),(be=J.onVnodeBeforeMount)&&Gr(be,he,z)}$e&&Do(z,null,he,"beforeMount");const Qe=FT(pe,oe);Qe&&oe.beforeEnter(ke),o(ke,W,Q),((be=J&&J.onVnodeMounted)||Qe||$e)&&Un(()=>{be&&Gr(be,he,z),Qe&&oe.enter(ke),$e&&Do(z,null,he,"mounted")},pe)},ee=(z,W,Q,he,pe)=>{if(Q&&w(z,Q),he)for(let me=0;me<he.length;me++)w(z,he[me]);if(pe){let me=pe.subTree;if(W===me||iw(me.type)&&(me.ssContent===W||me.ssFallback===W)){const Ce=pe.vnode;ee(z,Ce,Ce.scopeId,Ce.slotScopeIds,pe.parent)}}},ie=(z,W,Q,he,pe,me,Ce,Ee,ke=0)=>{for(let be=ke;be<z.length;be++){const J=z[be]=Ee?no(z[be]):Lr(z[be]);L(null,J,W,Q,he,pe,me,Ce,Ee)}},Y=(z,W,Q,he,pe,me,Ce)=>{const Ee=W.el=z.el;let{patchFlag:ke,dynamicChildren:be,dirs:J}=W;ke|=z.patchFlag&16;const fe=z.props||vt,oe=W.props||vt;let $e;if(Q&&zo(Q,!1),($e=oe.onVnodeBeforeUpdate)&&Gr($e,Q,W,z),J&&Do(W,z,Q,"beforeUpdate"),Q&&zo(Q,!0),(fe.innerHTML&&oe.innerHTML==null||fe.textContent&&oe.textContent==null)&&g(Ee,""),be?G(z.dynamicChildren,be,Ee,Q,he,Td(W,pe),me):Ce||ae(z,W,Ee,null,Q,he,Td(W,pe),me,!1),ke>0){if(ke&16)j(Ee,fe,oe,Q,pe);else if(ke&2&&fe.class!==oe.class&&c(Ee,"class",null,oe.class,pe),ke&4&&c(Ee,"style",fe.style,oe.style,pe),ke&8){const Qe=W.dynamicProps;for(let ct=0;ct<Qe.length;ct++){const dt=Qe[ct],Ot=fe[dt],ut=oe[dt];(ut!==Ot||dt==="value")&&c(Ee,dt,Ot,ut,pe,Q)}}ke&1&&z.children!==W.children&&g(Ee,W.children)}else!Ce&&be==null&&j(Ee,fe,oe,Q,pe);(($e=oe.onVnodeUpdated)||J)&&Un(()=>{$e&&Gr($e,Q,W,z),J&&Do(W,z,Q,"updated")},he)},G=(z,W,Q,he,pe,me,Ce)=>{for(let Ee=0;Ee<W.length;Ee++){const ke=z[Ee],be=W[Ee],J=ke.el&&(ke.type===et||!Xr(ke,be)||ke.shapeFlag&198)?v(ke.el):Q;L(ke,be,J,null,he,pe,me,Ce,!0)}},j=(z,W,Q,he,pe)=>{if(W!==Q){if(W!==vt)for(const me in W)!ra(me)&&!(me in Q)&&c(z,me,W[me],null,pe,he);for(const me in Q){if(ra(me))continue;const Ce=Q[me],Ee=W[me];Ce!==Ee&&me!=="value"&&c(z,me,Ee,Ce,pe,he)}"value"in Q&&c(z,"value",W.value,Q.value,pe)}},O=(z,W,Q,he,pe,me,Ce,Ee,ke)=>{const be=W.el=z?z.el:d(""),J=W.anchor=z?z.anchor:d("");let{patchFlag:fe,dynamicChildren:oe,slotScopeIds:$e}=W;$e&&(Ee=Ee?Ee.concat($e):$e),z==null?(o(be,Q,he),o(J,Q,he),ie(W.children||[],Q,J,pe,me,Ce,Ee,ke)):fe>0&&fe&64&&oe&&z.dynamicChildren&&z.dynamicChildren.length===oe.length?(G(z.dynamicChildren,oe,Q,pe,me,Ce,Ee),(W.key!=null||pe&&W===pe.subTree)&&tw(z,W,!0)):ae(z,W,Q,J,pe,me,Ce,Ee,ke)},N=(z,W,Q,he,pe,me,Ce,Ee,ke)=>{W.slotScopeIds=Ee,z==null?W.shapeFlag&512?pe.ctx.activate(W,Q,he,Ce,ke):C(W,Q,he,pe,me,Ce,ke):k(z,W,ke)},C=(z,W,Q,he,pe,me,Ce)=>{const Ee=z.component=ZT(z,he,pe);if(nf(z)&&(Ee.ctx.renderer=le),JT(Ee,!1,Ce),Ee.asyncDep){if(pe&&pe.registerDep(Ee,F,Ce),!z.el){const ke=Ee.subTree=Ne(an);M(null,ke,W,Q),z.placeholder=ke.el}}else F(Ee,z,W,Q,pe,me,Ce)},k=(z,W,Q)=>{const he=W.component=z.component;if(MT(z,W,Q))if(he.asyncDep&&!he.asyncResolved){$(he,W,Q);return}else he.next=W,he.update();else W.el=z.el,he.vnode=W},F=(z,W,Q,he,pe,me,Ce)=>{const Ee=()=>{if(z.isMounted){let{next:fe,bu:oe,u:$e,parent:Qe,vnode:ct}=z;{const qt=nw(z);if(qt){fe&&(fe.el=ct.el,$(z,fe,Ce)),qt.asyncDep.then(()=>{z.isUnmounted||Ee()});return}}let dt=fe,Ot;zo(z,!1),fe?(fe.el=ct.el,$(z,fe,Ce)):fe=ct,oe&&Qc(oe),(Ot=fe.props&&fe.props.onVnodeBeforeUpdate)&&Gr(Ot,Qe,fe,ct),zo(z,!0);const ut=uv(z),Zt=z.subTree;z.subTree=ut,L(Zt,ut,v(Zt.el),H(Zt),z,pe,me),fe.el=ut.el,dt===null&&cp(z,ut.el),$e&&Un($e,pe),(Ot=fe.props&&fe.props.onVnodeUpdated)&&Un(()=>Gr(Ot,Qe,fe,ct),pe)}else{let fe;const{el:oe,props:$e}=W,{bm:Qe,m:ct,parent:dt,root:Ot,type:ut}=z,Zt=Gs(W);zo(z,!1),Qe&&Qc(Qe),!Zt&&(fe=$e&&$e.onVnodeBeforeMount)&&Gr(fe,dt,W),zo(z,!0);{Ot.ce&&Ot.ce._def.shadowRoot!==!1&&Ot.ce._injectChildStyle(ut);const qt=z.subTree=uv(z);L(null,qt,Q,he,z,pe,me),W.el=qt.el}if(ct&&Un(ct,pe),!Zt&&(fe=$e&&$e.onVnodeMounted)){const qt=W;Un(()=>Gr(fe,dt,qt),pe)}(W.shapeFlag&256||dt&&Gs(dt.vnode)&&dt.vnode.shapeFlag&256)&&z.a&&Un(z.a,pe),z.isMounted=!0,W=Q=he=null}};z.scope.on();const ke=z.effect=new nb(Ee);z.scope.off();const be=z.update=ke.run.bind(ke),J=z.job=ke.runIfDirty.bind(ke);J.i=z,J.id=z.uid,ke.scheduler=()=>op(J),zo(z,!0),be()},$=(z,W,Q)=>{W.component=z;const he=z.vnode.props;z.vnode=W,z.next=null,OT(z,W.props,he,Q),IT(z,W.children,Q),Ci(),rv(z),Ei()},ae=(z,W,Q,he,pe,me,Ce,Ee,ke=!1)=>{const be=z&&z.children,J=z?z.shapeFlag:0,fe=W.children,{patchFlag:oe,shapeFlag:$e}=W;if(oe>0){if(oe&128){Se(be,fe,Q,he,pe,me,Ce,Ee,ke);return}else if(oe&256){ce(be,fe,Q,he,pe,me,Ce,Ee,ke);return}}$e&8?(J&16&&Re(be,pe,me),fe!==be&&g(Q,fe)):J&16?$e&16?Se(be,fe,Q,he,pe,me,Ce,Ee,ke):Re(be,pe,me,!0):(J&8&&g(Q,""),$e&16&&ie(fe,Q,he,pe,me,Ce,Ee,ke))},ce=(z,W,Q,he,pe,me,Ce,Ee,ke)=>{z=z||qs,W=W||qs;const be=z.length,J=W.length,fe=Math.min(be,J);let oe;for(oe=0;oe<fe;oe++){const $e=W[oe]=ke?no(W[oe]):Lr(W[oe]);L(z[oe],$e,Q,null,pe,me,Ce,Ee,ke)}be>J?Re(z,pe,me,!0,!1,fe):ie(W,Q,he,pe,me,Ce,Ee,ke,fe)},Se=(z,W,Q,he,pe,me,Ce,Ee,ke)=>{let be=0;const J=W.length;let fe=z.length-1,oe=J-1;for(;be<=fe&&be<=oe;){const $e=z[be],Qe=W[be]=ke?no(W[be]):Lr(W[be]);if(Xr($e,Qe))L($e,Qe,Q,null,pe,me,Ce,Ee,ke);else break;be++}for(;be<=fe&&be<=oe;){const $e=z[fe],Qe=W[oe]=ke?no(W[oe]):Lr(W[oe]);if(Xr($e,Qe))L($e,Qe,Q,null,pe,me,Ce,Ee,ke);else break;fe--,oe--}if(be>fe){if(be<=oe){const $e=oe+1,Qe=$e<J?W[$e].el:he;for(;be<=oe;)L(null,W[be]=ke?no(W[be]):Lr(W[be]),Q,Qe,pe,me,Ce,Ee,ke),be++}}else if(be>oe)for(;be<=fe;)Ae(z[be],pe,me,!0),be++;else{const $e=be,Qe=be,ct=new Map;for(be=Qe;be<=oe;be++){const Bt=W[be]=ke?no(W[be]):Lr(W[be]);Bt.key!=null&&ct.set(Bt.key,be)}let dt,Ot=0;const ut=oe-Qe+1;let Zt=!1,qt=0;const Hn=new Array(ut);for(be=0;be<ut;be++)Hn[be]=0;for(be=$e;be<=fe;be++){const Bt=z[be];if(Ot>=ut){Ae(Bt,pe,me,!0);continue}let Bn;if(Bt.key!=null)Bn=ct.get(Bt.key);else for(dt=Qe;dt<=oe;dt++)if(Hn[dt-Qe]===0&&Xr(Bt,W[dt])){Bn=dt;break}Bn===void 0?Ae(Bt,pe,me,!0):(Hn[Bn-Qe]=be+1,Bn>=qt?qt=Bn:Zt=!0,L(Bt,W[Bn],Q,null,pe,me,Ce,Ee,ke),Ot++)}const Br=Zt?HT(Hn):qs;for(dt=Br.length-1,be=ut-1;be>=0;be--){const Bt=Qe+be,Bn=W[Bt],at=W[Bt+1],To=Bt+1<J?at.el||rw(at):he;Hn[be]===0?L(null,Bn,Q,To,pe,me,Ce,Ee,ke):Zt&&(dt<0||be!==Br[dt]?je(Bn,Q,To,2):dt--)}}},je=(z,W,Q,he,pe=null)=>{const{el:me,type:Ce,transition:Ee,children:ke,shapeFlag:be}=z;if(be&6){je(z.component.subTree,W,Q,he);return}if(be&128){z.suspense.move(W,Q,he);return}if(be&64){Ce.move(z,W,Q,le);return}if(Ce===et){o(me,W,Q);for(let fe=0;fe<ke.length;fe++)je(ke[fe],W,Q,he);o(z.anchor,W,Q);return}if(Ce===Cd){I(z,W,Q);return}if(he!==2&&be&1&&Ee)if(he===0)Ee.beforeEnter(me),o(me,W,Q),Un(()=>Ee.enter(me),pe);else{const{leave:fe,delayLeave:oe,afterLeave:$e}=Ee,Qe=()=>{z.ctx.isUnmounted?s(me):o(me,W,Q)},ct=()=>{me._isLeaving&&me[yi](!0),fe(me,()=>{Qe(),$e&&$e()})};oe?oe(me,Qe,ct):ct()}else o(me,W,Q)},Ae=(z,W,Q,he=!1,pe=!1)=>{const{type:me,props:Ce,ref:Ee,children:ke,dynamicChildren:be,shapeFlag:J,patchFlag:fe,dirs:oe,cacheIndex:$e}=z;if(fe===-2&&(pe=!1),Ee!=null&&(Ci(),sa(Ee,null,Q,z,!0),Ei()),$e!=null&&(W.renderCache[$e]=void 0),J&256){W.ctx.deactivate(z);return}const Qe=J&1&&oe,ct=!Gs(z);let dt;if(ct&&(dt=Ce&&Ce.onVnodeBeforeUnmount)&&Gr(dt,W,z),J&6)Fe(z.component,Q,he);else{if(J&128){z.suspense.unmount(Q,he);return}Qe&&Do(z,null,W,"beforeUnmount"),J&64?z.type.remove(z,W,Q,le,he):be&&!be.hasOnce&&(me!==et||fe>0&&fe&64)?Re(be,W,Q,!1,!0):(me===et&&fe&384||!pe&&J&16)&&Re(ke,W,Q),he&&Ke(z)}(ct&&(dt=Ce&&Ce.onVnodeUnmounted)||Qe)&&Un(()=>{dt&&Gr(dt,W,z),Qe&&Do(z,null,W,"unmounted")},Q)},Ke=z=>{const{type:W,el:Q,anchor:he,transition:pe}=z;if(W===et){qe(Q,he);return}if(W===Cd){E(z);return}const me=()=>{s(Q),pe&&!pe.persisted&&pe.afterLeave&&pe.afterLeave()};if(z.shapeFlag&1&&pe&&!pe.persisted){const{leave:Ce,delayLeave:Ee}=pe,ke=()=>Ce(Q,me);Ee?Ee(z.el,me,ke):ke()}else me()},qe=(z,W)=>{let Q;for(;z!==W;)Q=b(z),s(z),z=Q;s(W)},Fe=(z,W,Q)=>{const{bum:he,scope:pe,job:me,subTree:Ce,um:Ee,m:ke,a:be}=z;hv(ke),hv(be),he&&Qc(he),pe.stop(),me&&(me.flags|=8,Ae(Ce,z,W,Q)),Ee&&Un(Ee,W),Un(()=>{z.isUnmounted=!0},W)},Re=(z,W,Q,he=!1,pe=!1,me=0)=>{for(let Ce=me;Ce<z.length;Ce++)Ae(z[Ce],W,Q,he,pe)},H=z=>{if(z.shapeFlag&6)return H(z.component.subTree);if(z.shapeFlag&128)return z.suspense.next();const W=b(z.anchor||z.el),Q=W&&W[Q_];return Q?b(Q):W};let Z=!1;const re=(z,W,Q)=>{let he;z==null?W._vnode&&(Ae(W._vnode,null,null,!0),he=W._vnode.component):L(W._vnode||null,z,W,null,null,null,Q),W._vnode=z,Z||(Z=!0,rv(he),kb(),Z=!1)},le={p:L,um:Ae,m:je,r:Ke,mt:C,mc:ie,pc:ae,pbc:G,n:H,o:e};return{render:re,hydrate:void 0,createApp:_T(re)}}function Td({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 zo({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function FT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function tw(e,t,r=!1){const o=e.children,s=t.children;if(Xe(o)&&Xe(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=no(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&tw(f,d)),d.type===lf&&(d.patchFlag!==-1?d.el=f.el:d.__elIndex=c+(e.type===et?1:0)),d.type===an&&!d.el&&(d.el=f.el)}}function HT(e){const t=e.slice(),r=[0];let o,s,c,f,d;const h=e.length;for(o=0;o<h;o++){const p=e[o];if(p!==0){if(s=r[r.length-1],e[s]<p){t[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)d=c+f>>1,e[r[d]]<p?c=d+1:f=d;p<e[r[c]]&&(c>0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function nw(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:nw(t)}function hv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function rw(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?rw(t.subTree):null}const iw=e=>e.__isSuspense;let ah=0;const BT={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)jT(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}WT(e,t,r,o,s,f,d,h,p)}},hydrate:qT,normalize:UT},dp=BT;function xa(e,t){const r=e.props&&e.props[t];tt(r)&&r()}function jT(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:g}}=h,v=g("div"),b=e.suspense=ow(e,s,o,t,v,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,v,null,o,b,c,f),b.deps>0?(xa(e,"onPending"),xa(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Ks(b,e.ssFallback)):b.resolve(!1,!0)}function WT(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:g}}){const v=t.suspense=e.suspense;v.vnode=t,t.el=e.el;const b=t.ssContent,w=t.ssFallback,{activeBranch:T,pendingBranch:L,isInFallback:P,isHydrating:M}=v;if(L)v.pendingBranch=b,Xr(L,b)?(h(L,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():P&&(M||(h(T,w,r,o,s,null,c,f,d),Ks(v,w)))):(v.pendingId=ah++,M?(v.isHydrating=!1,v.activeBranch=L):p(L,s,v),v.deps=0,v.effects.length=0,v.hiddenContainer=g("div"),P?(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0?v.resolve():(h(T,w,r,o,s,null,c,f,d),Ks(v,w))):T&&Xr(T,b)?(h(T,b,r,o,s,v,c,f,d),v.resolve(!0)):(h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0&&v.resolve()));else if(T&&Xr(T,b))h(T,b,r,o,s,v,c,f,d),Ks(v,b);else if(xa(t,"onPending"),v.pendingBranch=b,b.shapeFlag&512?v.pendingId=b.component.suspenseId:v.pendingId=ah++,h(null,b,v.hiddenContainer,null,s,v,c,f,d),v.deps<=0)v.resolve();else{const{timeout:R,pendingId:I}=v;R>0?setTimeout(()=>{v.pendingId===I&&v.fallback(w)},R):R===0&&v.fallback(w)}}function ow(e,t,r,o,s,c,f,d,h,p,g=!1){const{p:v,m:b,um:w,n:T,o:{parentNode:L,remove:P}}=p;let M;const R=GT(e);R&&t&&t.pendingBranch&&(M=t.pendingId,t.deps++);const I=e.props?Z0(e.props.timeout):void 0,E=c,D={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:ah++,timeout:typeof I=="number"?I:-1,activeBranch:null,pendingBranch:null,isInFallback:!g,isHydrating:g,isUnmounted:!1,effects:[],resolve(V=!1,ee=!1){const{vnode:ie,activeBranch:Y,pendingBranch:G,pendingId:j,effects:O,parentComponent:N,container:C,isInFallback:k}=D;let F=!1;D.isHydrating?D.isHydrating=!1:V||(F=Y&&G.transition&&G.transition.mode==="out-in",F&&(Y.transition.afterLeave=()=>{j===D.pendingId&&(b(G,C,c===E?T(Y):c,0),th(O),k&&ie.ssFallback&&(ie.ssFallback.el=null))}),Y&&(L(Y.el)===C&&(c=T(Y)),w(Y,N,D,!0),!F&&k&&ie.ssFallback&&Un(()=>ie.ssFallback.el=null,D)),F||b(G,C,c,0)),Ks(D,G),D.pendingBranch=null,D.isInFallback=!1;let $=D.parent,ae=!1;for(;$;){if($.pendingBranch){$.effects.push(...O),ae=!0;break}$=$.parent}!ae&&!F&&th(O),D.effects=[],R&&t&&t.pendingBranch&&M===t.pendingId&&(t.deps--,t.deps===0&&!ee&&t.resolve()),xa(ie,"onResolve")},fallback(V){if(!D.pendingBranch)return;const{vnode:ee,activeBranch:ie,parentComponent:Y,container:G,namespace:j}=D;xa(ee,"onFallback");const O=T(ie),N=()=>{D.isInFallback&&(v(null,V,G,O,Y,null,j,d,h),Ks(D,V))},C=V.transition&&V.transition.mode==="out-in";C&&(ie.transition.afterLeave=N),D.isInFallback=!0,w(ie,Y,null,!0),C||N()},move(V,ee,ie){D.activeBranch&&b(D.activeBranch,V,ee,ie),D.container=V},next(){return D.activeBranch&&T(D.activeBranch)},registerDep(V,ee,ie){const Y=!!D.pendingBranch;Y&&D.deps++;const G=V.vnode.el;V.asyncDep.catch(j=>{qa(j,V,0)}).then(j=>{if(V.isUnmounted||D.isUnmounted||D.pendingId!==V.suspenseId)return;V.asyncResolved=!0;const{vnode:O}=V;uh(V,j),G&&(O.el=G);const N=!G&&V.subTree.el;ee(V,O,L(G||V.subTree.el),G?null:T(V.subTree),D,f,ie),N&&(O.placeholder=null,P(N)),cp(V,O.el),Y&&--D.deps===0&&D.resolve()})},unmount(V,ee){D.isUnmounted=!0,D.activeBranch&&w(D.activeBranch,r,V,ee),D.pendingBranch&&w(D.pendingBranch,r,V,ee)}};return D}function qT(e,t,r,o,s,c,f,d,h){const p=t.suspense=ow(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),g=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),g}function UT(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=pv(o?r.default:r),e.ssFallback=o?pv(r.fallback):Ne(an)}function pv(e){let t;if(tt(e)){const r=rl&&e._c;r&&(e._d=!1,ne()),e=e(),r&&(e._d=!0,t=Xn,sw())}return Xe(e)&&(e=ET(e)),e=Lr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function VT(e,t){t&&t.pendingBranch?Xe(e)?t.effects.push(...e):t.effects.push(e):th(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,cp(o,s))}function GT(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const et=Symbol.for("v-fgt"),lf=Symbol.for("v-txt"),an=Symbol.for("v-cmt"),Cd=Symbol.for("v-stc"),aa=[];let Xn=null;function ne(e=!1){aa.push(Xn=e?null:[])}function sw(){aa.pop(),Xn=aa[aa.length-1]||null}let rl=1;function il(e,t=!1){rl+=e,e<0&&Xn&&t&&(Xn.hasOnce=!0)}function lw(e){return e.dynamicChildren=rl>0?Xn||qs:null,sw(),rl>0&&Xn&&Xn.push(e),e}function ve(e,t,r,o,s,c){return lw(X(e,t,r,o,s,c,!0))}function Ve(e,t,r,o,s){return lw(Ne(e,t,r,o,s,!0))}function ol(e){return e?e.__v_isVNode===!0:!1}function Xr(e,t){return e.type===t.type&&e.key===t.key}const aw=({key:e})=>e??null,eu=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ht(e)||Tt(e)||tt(e)?{i:mn,r:e,k:t,f:!!r}:e:null);function X(e,t=null,r=null,o=0,s=null,c=e===et?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&aw(t),ref:t&&eu(t),scopeId:ef,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:mn};return d?(hp(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=Ht(r)?8:16),rl>0&&!f&&Xn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Xn.push(h),h}const Ne=KT;function KT(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===zb)&&(e=an),ol(e)){const d=vo(e,t,!0);return r&&hp(d,r),rl>0&&!c&&Xn&&(d.shapeFlag&6?Xn[Xn.indexOf(e)]=d:Xn.push(d)),d.patchFlag=-2,d}if(nC(e)&&(e=e.__vccOpts),t){t=cw(t);let{class:d,style:h}=t;d&&!Ht(d)&&(t.class=st(d)),St(h)&&(Ju(h)&&!Xe(h)&&(h=sn({},h)),t.style=Rt(h))}const f=Ht(e)?1:iw(e)?128:Mb(e)?64:St(e)?4:tt(e)?2:0;return X(e,t,r,o,s,f,c,!0)}function cw(e){return e?Ju(e)||Xb(e)?sn({},e):e:null}function vo(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?_i(s||{},t):s,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&aw(p),ref:t&&t.ref?r&&c?Xe(c)?c.concat(eu(t)):[c,eu(t)]:eu(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!==et?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&&vo(e.ssContent),ssFallback:e.ssFallback&&vo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&ba(g,h.clone(g)),g}function Je(e=" ",t=0){return Ne(lf,null,e,t)}function He(e="",t=!1){return t?(ne(),Ve(an,null,e)):Ne(an,null,e)}function Lr(e){return e==null||typeof e=="boolean"?Ne(an):Xe(e)?Ne(et,null,e.slice()):ol(e)?no(e):Ne(lf,null,String(e))}function no(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vo(e)}function hp(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Xe(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),hp(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Xb(t)?t._ctx=mn:s===3&&mn&&(mn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else tt(t)?(t={default:t,_ctx:mn},r=32):(t=String(t),o&64?(r=16,t=[Je(t)]):r=8);e.children=t,e.shapeFlag|=r}function _i(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=st([t.class,o.class]));else if(s==="style")t.style=Rt([t.style,o.style]);else if(qu(s)){const c=t[s],f=o[s];f&&c!==f&&!(Xe(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Gr(e,t,r,o=null){Ir(e,t,7,[r,o])}const XT=qb();let YT=0;function ZT(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||XT,c={uid:YT++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new g_(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Zb(o,s),emitsOptions:Vb(o,s),emit:null,emitted:null,propsDefaults: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=TT.bind(null,c),e.ce&&e.ce(c),c}let kn=null;const ti=()=>kn||mn;let xu,ch;{const e=Xu(),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)}};xu=t("__VUE_INSTANCE_SETTERS__",r=>kn=r),ch=t("__VUE_SSR_SETTERS__",r=>ka=r)}const Ga=e=>{const t=kn;return xu(e),e.scope.on(),()=>{e.scope.off(),xu(t)}},gv=()=>{kn&&kn.scope.off(),xu(null)};function uw(e){return e.vnode.shapeFlag&4}let ka=!1;function JT(e,t=!1,r=!1){t&&ch(t);const{props:o,children:s}=e.vnode,c=uw(e);NT(e,o,c,t),$T(e,s,r||t);const f=c?QT(e,t):void 0;return t&&ch(!1),f}function QT(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,mT);const{setup:o}=r;if(o){Ci();const s=e.setupContext=o.length>1?dw(e):null,c=Ga(e),f=Wa(o,e,0,[e.props,s]),d=G0(f);if(Ei(),c(),(d||e.sp)&&!Gs(e)&&Ib(e),d){if(f.then(gv,gv),t)return f.then(h=>{uh(e,h)}).catch(h=>{qa(h,e,0)});e.asyncDep=f}else uh(e,f)}else fw(e)}function uh(e,t,r){tt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=vb(t)),fw(e)}function fw(e,t,r){const o=e.type;e.render||(e.render=o.render||Yr);{const s=Ga(e);Ci();try{yT(e)}finally{Ei(),s()}}}const eC={get(e,t){return xn(e,"get",""),e[t]}};function dw(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,eC),slots:e.slots,emit:e.emit,expose:t}}function af(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vb(Qu(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in la)return la[r](e)},has(t,r){return r in t||r in la}})):e.proxy}function tC(e,t=!0){return tt(e)?e.displayName||e.name:e.name||t&&e.__name}function nC(e){return tt(e)&&"__vccOpts"in e}const xe=(e,t)=>q_(e,t,ka);function Ka(e,t,r){try{il(-1);const o=arguments.length;return o===2?St(t)&&!Xe(t)?ol(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&ol(r)&&(r=[r]),Ne(e,t,r))}finally{il(1)}}const rC="3.5.26";/**
|
|
14
|
-
* @vue/runtime-dom v3.5.26
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/let fh;const mv=typeof window<"u"&&window.trustedTypes;if(mv)try{fh=mv.createPolicy("vue",{createHTML:e=>e})}catch{}const hw=fh?e=>fh.createHTML(e):e=>e,iC="http://www.w3.org/2000/svg",oC="http://www.w3.org/1998/Math/MathML",mi=typeof document<"u"?document:null,vv=mi&&mi.createElement("template"),sC={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"?mi.createElementNS(iC,e):t==="mathml"?mi.createElementNS(oC,e):r?mi.createElement(e,{is:r}):mi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>mi.createTextNode(e),createComment:e=>mi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mi.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{vv.innerHTML=hw(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=vv.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]}},Ki="transition",Gl="animation",Sa=Symbol("_vtc"),pw={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},lC=sn({},Nb,pw),aC=e=>(e.displayName="Transition",e.props=lC,e),cC=aC((e,{slots:t})=>Ka(nT,uC(e),t)),Fo=(e,t=[])=>{Xe(e)?e.forEach(r=>r(...t)):e&&e(...t)},yv=e=>e?Xe(e)?e.some(t=>t.length>1):e.length>1:!1;function uC(e){const t={};for(const O in e)O in pw||(t[O]=e[O]);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:g=d,leaveFromClass:v=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,T=fC(s),L=T&&T[0],P=T&&T[1],{onBeforeEnter:M,onEnter:R,onEnterCancelled:I,onLeave:E,onLeaveCancelled:D,onBeforeAppear:V=M,onAppear:ee=R,onAppearCancelled:ie=I}=t,Y=(O,N,C,k)=>{O._enterCancelled=k,Ho(O,N?g:d),Ho(O,N?p:f),C&&C()},G=(O,N)=>{O._isLeaving=!1,Ho(O,v),Ho(O,w),Ho(O,b),N&&N()},j=O=>(N,C)=>{const k=O?ee:R,F=()=>Y(N,O,C);Fo(k,[N,F]),bv(()=>{Ho(N,O?h:c),di(N,O?g:d),yv(k)||wv(N,o,L,F)})};return sn(t,{onBeforeEnter(O){Fo(M,[O]),di(O,c),di(O,f)},onBeforeAppear(O){Fo(V,[O]),di(O,h),di(O,p)},onEnter:j(!1),onAppear:j(!0),onLeave(O,N){O._isLeaving=!0;const C=()=>G(O,N);di(O,v),O._enterCancelled?(di(O,b),Sv(O)):(Sv(O),di(O,b)),bv(()=>{O._isLeaving&&(Ho(O,v),di(O,w),yv(E)||wv(O,o,P,C))}),Fo(E,[O,C])},onEnterCancelled(O){Y(O,!1,void 0,!0),Fo(I,[O])},onAppearCancelled(O){Y(O,!0,void 0,!0),Fo(ie,[O])},onLeaveCancelled(O){G(O),Fo(D,[O])}})}function fC(e){if(e==null)return null;if(St(e))return[Ed(e.enter),Ed(e.leave)];{const t=Ed(e);return[t,t]}}function Ed(e){return Z0(e)}function di(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Sa]||(e[Sa]=new Set)).add(t)}function Ho(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Sa];r&&(r.delete(t),r.size||(e[Sa]=void 0))}function bv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let dC=0;function wv(e,t,r,o){const s=e._endId=++dC,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=hC(e,t);if(!f)return o();const p=f+"end";let g=0;const v=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++g>=h&&v()};setTimeout(()=>{g<h&&v()},d+1),e.addEventListener(p,b)}function hC(e,t){const r=window.getComputedStyle(e),o=T=>(r[T]||"").split(", "),s=o(`${Ki}Delay`),c=o(`${Ki}Duration`),f=xv(s,c),d=o(`${Gl}Delay`),h=o(`${Gl}Duration`),p=xv(d,h);let g=null,v=0,b=0;t===Ki?f>0&&(g=Ki,v=f,b=c.length):t===Gl?p>0&&(g=Gl,v=p,b=h.length):(v=Math.max(f,p),g=v>0?f>p?Ki:Gl:null,b=g?g===Ki?c.length:h.length:0);const w=g===Ki&&/\b(?:transform|all)(?:,|$)/.test(o(`${Ki}Property`).toString());return{type:g,timeout:v,propCount:b,hasTransform:w}}function xv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>kv(r)+kv(e[o])))}function kv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sv(e){return(e?e.ownerDocument:document).body.offsetHeight}function pC(e,t,r){const o=e[Sa];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const ku=Symbol("_vod"),gw=Symbol("_vsh"),ao={name:"show",beforeMount(e,{value:t},{transition:r}){e[ku]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Kl(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),Kl(e,!0),o.enter(e)):o.leave(e,()=>{Kl(e,!1)}):Kl(e,t))},beforeUnmount(e,{value:t}){Kl(e,t)}};function Kl(e,t){e.style.display=t?e[ku]:"none",e[gw]=!t}const gC=Symbol(""),mC=/(?:^|;)\s*display\s*:/;function vC(e,t,r){const o=e.style,s=Ht(r);let c=!1;if(r&&!s){if(t)if(Ht(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&tu(o,d,"")}else for(const f in t)r[f]==null&&tu(o,f,"");for(const f in r)f==="display"&&(c=!0),tu(o,f,r[f])}else if(s){if(t!==r){const f=o[gC];f&&(r+=";"+f),o.cssText=r,c=mC.test(r)}}else t&&e.removeAttribute("style");ku in e&&(e[ku]=c?o.display:"",e[gw]&&(o.display="none"))}const _v=/\s*!important$/;function tu(e,t,r){if(Xe(r))r.forEach(o=>tu(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=yC(e,t);_v.test(r)?e.setProperty(Ni(o),r.replace(_v,""),"important"):e[o]=r}}const Tv=["Webkit","Moz","ms"],Ad={};function yC(e,t){const r=Ad[t];if(r)return r;let o=sr(t);if(o!=="filter"&&o in e)return Ad[t]=o;o=Gu(o);for(let s=0;s<Tv.length;s++){const c=Tv[s]+o;if(c in e)return Ad[t]=c}return t}const Cv="http://www.w3.org/1999/xlink";function Ev(e,t,r,o,s,c=h_(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Cv,t.slice(6,t.length)):e.setAttributeNS(Cv,t,r):r==null||c&&!J0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Rr(r)?String(r):r)}function Av(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?hw(r):r);return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){const d=c==="OPTION"?e.getAttribute("value")||"":e.value,h=r==null?e.type==="checkbox"?"on":"":String(r);(d!==h||!("_value"in e))&&(e.value=h),r==null&&e.removeAttribute(t),e._value=r;return}let f=!1;if(r===""||r==null){const d=typeof e[t];d==="boolean"?r=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 lo(e,t,r,o){e.addEventListener(t,r,o)}function bC(e,t,r,o){e.removeEventListener(t,r,o)}const Lv=Symbol("_vei");function wC(e,t,r,o,s=null){const c=e[Lv]||(e[Lv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=xC(t);if(o){const p=c[t]=_C(o,s);lo(e,d,p,h)}else f&&(bC(e,d,f,h),c[t]=void 0)}}const Mv=/(?:Once|Passive|Capture)$/;function xC(e){let t;if(Mv.test(e)){t={};let o;for(;o=e.match(Mv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ni(e.slice(2)),t]}let Ld=0;const kC=Promise.resolve(),SC=()=>Ld||(kC.then(()=>Ld=0),Ld=Date.now());function _C(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Ir(TC(o,r.value),t,5,[o])};return r.value=e,r.attached=SC(),r}function TC(e,t){if(Xe(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Nv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,CC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?pC(e,o,f):t==="style"?vC(e,r,o):qu(t)?Yh(t)||wC(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):EC(e,t,o,f))?(Av(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ev(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ht(o))?Av(e,sr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Ev(e,t,o,f))};function EC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Nv(t)&&tt(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Nv(t)&&Ht(r)?!1:t in e}const sl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Xe(t)?r=>Qc(t,r):t};function AC(e){e.target.composing=!0}function Ov(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ti=Symbol("_assign");function Pv(e,t,r){return t&&(e=e.trim()),r&&(e=Ku(e)),e}const mw={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Ti]=sl(s);const c=o||s.props&&s.props.type==="number";lo(e,t?"change":"input",f=>{f.target.composing||e[Ti](Pv(e.value,r,c))}),(r||c)&&lo(e,"change",()=>{e.value=Pv(e.value,r,c)}),t||(lo(e,"compositionstart",AC),lo(e,"compositionend",Ov),lo(e,"change",Ov))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Ti]=sl(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Ku(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},vw={deep:!0,created(e,t,r){e[Ti]=sl(r),lo(e,"change",()=>{const o=e._modelValue,s=_a(e),c=e.checked,f=e[Ti];if(Xe(o)){const d=Jh(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(pl(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(yw(e,c))})},mounted:Rv,beforeUpdate(e,t,r){e[Ti]=sl(r),Rv(e,t,r)}};function Rv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Xe(t))s=Jh(t,o.props.value)>-1;else if(pl(t))s=t.has(o.props.value);else{if(t===r)return;s=ja(t,yw(e,!0))}e.checked!==s&&(e.checked=s)}const $v={deep:!0,created(e,{value:t,modifiers:{number:r}},o){const s=pl(t);lo(e,"change",()=>{const c=Array.prototype.filter.call(e.options,f=>f.selected).map(f=>r?Ku(_a(f)):_a(f));e[Ti](e.multiple?s?new Set(c):c:c[0]),e._assigning=!0,Et(()=>{e._assigning=!1})}),e[Ti]=sl(o)},mounted(e,{value:t}){Iv(e,t)},beforeUpdate(e,t,r){e[Ti]=sl(r)},updated(e,{value:t}){e._assigning||Iv(e,t)}};function Iv(e,t){const r=e.multiple,o=Xe(t);if(!(r&&!o&&!pl(t))){for(let s=0,c=e.options.length;s<c;s++){const f=e.options[s],d=_a(f);if(r)if(o){const h=typeof d;h==="string"||h==="number"?f.selected=t.some(p=>String(p)===String(d)):f.selected=Jh(t,d)>-1}else f.selected=t.has(d);else if(ja(_a(f),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function _a(e){return"_value"in e?e._value:e.value}function yw(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const LC=["ctrl","shift","alt","meta"],MC={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)=>LC.some(r=>e[`${r}Key`]&&!t.includes(r))},nu=(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=MC[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},NC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},dh=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=Ni(s.key);if(t.some(f=>f===c||NC[f]===c))return e(s)}))},OC=sn({patchProp:CC},sC);let Dv;function PC(){return Dv||(Dv=DT(OC))}const bw=((...e)=>{const t=PC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=$C(o);if(!s)return;const c=t._component;!tt(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,RC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function RC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function $C(e){return Ht(e)?document.querySelector(e):e}const Ri=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},IC={};function DC(e,t){const r=es("RouterView");return ne(),Ve(r)}const zC=Ri(IC,[["render",DC]]),FC=["top","right","bottom","left"],zv=["start","end"],Fv=FC.reduce((e,t)=>e.concat(t,t+"-"+zv[0],t+"-"+zv[1]),[]),Ta=Math.min,Wo=Math.max,HC={left:"right",right:"left",bottom:"top",top:"bottom"},BC={start:"end",end:"start"};function hh(e,t,r){return Wo(e,Ta(t,r))}function rs(e,t){return typeof e=="function"?e(t):e}function ei(e){return e.split("-")[0]}function Pr(e){return e.split("-")[1]}function ww(e){return e==="x"?"y":"x"}function pp(e){return e==="y"?"height":"width"}const jC=new Set(["top","bottom"]);function xi(e){return jC.has(ei(e))?"y":"x"}function gp(e){return ww(xi(e))}function xw(e,t,r){r===void 0&&(r=!1);const o=Pr(e),s=gp(e),c=pp(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=_u(f)),[f,_u(f)]}function WC(e){const t=_u(e);return[Su(e),t,Su(t)]}function Su(e){return e.replace(/start|end/g,t=>BC[t])}const Hv=["left","right"],Bv=["right","left"],qC=["top","bottom"],UC=["bottom","top"];function VC(e,t,r){switch(e){case"top":case"bottom":return r?t?Bv:Hv:t?Hv:Bv;case"left":case"right":return t?qC:UC;default:return[]}}function GC(e,t,r,o){const s=Pr(e);let c=VC(ei(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Su)))),c}function _u(e){return e.replace(/left|right|bottom|top/g,t=>HC[t])}function KC(e){return{top:0,right:0,bottom:0,left:0,...e}}function kw(e){return typeof e!="number"?KC(e):{top:e,right:e,bottom:e,left:e}}function ca(e){const{x:t,y:r,width:o,height:s}=e;return{width:o,height:s,top:r,left:t,right:t+o,bottom:r+s,x:t,y:r}}function jv(e,t,r){let{reference:o,floating:s}=e;const c=xi(t),f=gp(t),d=pp(f),h=ei(t),p=c==="y",g=o.x+o.width/2-s.width/2,v=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:g,y:o.y-s.height};break;case"bottom":w={x:g,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:v};break;case"left":w={x:o.x-s.width,y:v};break;default:w={x:o.x,y:o.y}}switch(Pr(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const XC=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:g,y:v}=jv(p,o,h),b=o,w={},T=0;for(let L=0;L<d.length;L++){const{name:P,fn:M}=d[L],{x:R,y:I,data:E,reset:D}=await M({x:g,y:v,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});g=R??g,v=I??v,w={...w,[P]:{...w[P],...E}},D&&T<=50&&(T++,typeof D=="object"&&(D.placement&&(b=D.placement),D.rects&&(p=D.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):D.rects),{x:g,y:v}=jv(p,b,h)),L=-1)}return{x:g,y:v,placement:b,strategy:s,middlewareData:w}};async function cf(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:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:w=0}=rs(t,e),T=kw(w),P=d[b?v==="floating"?"reference":"floating":v],M=ca(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(P)))==null||r?P:P.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:g,strategy:h})),R=v==="floating"?{x:o,y:s,width:f.floating.width,height:f.floating.height}:f.reference,I=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),E=await(c.isElement==null?void 0:c.isElement(I))?await(c.getScale==null?void 0:c.getScale(I))||{x:1,y:1}:{x:1,y:1},D=ca(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:R,offsetParent:I,strategy:h}):R);return{top:(M.top-D.top+T.top)/E.y,bottom:(D.bottom-M.bottom+T.bottom)/E.y,left:(M.left-D.left+T.left)/E.x,right:(D.right-M.right+T.right)/E.x}}const YC=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:g=0}=rs(e,t)||{};if(p==null)return{};const v=kw(g),b={x:r,y:o},w=gp(s),T=pp(w),L=await f.getDimensions(p),P=w==="y",M=P?"top":"left",R=P?"bottom":"right",I=P?"clientHeight":"clientWidth",E=c.reference[T]+c.reference[w]-b[w]-c.floating[T],D=b[w]-c.reference[w],V=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let ee=V?V[I]:0;(!ee||!await(f.isElement==null?void 0:f.isElement(V)))&&(ee=d.floating[I]||c.floating[T]);const ie=E/2-D/2,Y=ee/2-L[T]/2-1,G=Ta(v[M],Y),j=Ta(v[R],Y),O=G,N=ee-L[T]-j,C=ee/2-L[T]/2+ie,k=hh(O,C,N),F=!h.arrow&&Pr(s)!=null&&C!==k&&c.reference[T]/2-(C<O?G:j)-L[T]/2<0,$=F?C<O?C-O:C-N:0;return{[w]:b[w]+$,data:{[w]:k,centerOffset:C-k-$,...F&&{alignmentOffset:$}},reset:F}}});function ZC(e,t,r){return(e?[...r.filter(s=>Pr(s)===e),...r.filter(s=>Pr(s)!==e)]:r.filter(s=>ei(s)===s)).filter(s=>e?Pr(s)===e||(t?Su(s)!==s:!1):!0)}const JC=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:g=!1,alignment:v,allowedPlacements:b=Fv,autoAlignment:w=!0,...T}=rs(e,t),L=v!==void 0||b===Fv?ZC(v||null,w,b):b,P=await cf(t,T),M=((r=f.autoPlacement)==null?void 0:r.index)||0,R=L[M];if(R==null)return{};const I=xw(R,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==R)return{reset:{placement:L[0]}};const E=[P[ei(R)],P[I[0]],P[I[1]]],D=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:R,overflows:E}],V=L[M+1];if(V)return{data:{index:M+1,overflows:D},reset:{placement:V}};const ee=D.map(G=>{const j=Pr(G.placement);return[G.placement,j&&g?G.overflows.slice(0,2).reduce((O,N)=>O+N,0):G.overflows[0],G.overflows]}).sort((G,j)=>G[1]-j[1]),Y=((s=ee.filter(G=>G[2].slice(0,Pr(G[0])?2:3).every(j=>j<=0))[0])==null?void 0:s[0])||ee[0][0];return Y!==d?{data:{index:M+1,overflows:D},reset:{placement:Y}}:{}}}},QC=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:g=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:L=!0,...P}=rs(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=ei(s),R=xi(d),I=ei(d)===d,E=await(h.isRTL==null?void 0:h.isRTL(p.floating)),D=b||(I||!L?[_u(d)]:WC(d)),V=T!=="none";!b&&V&&D.push(...GC(d,L,T,E));const ee=[d,...D],ie=await cf(t,P),Y=[];let G=((o=c.flip)==null?void 0:o.overflows)||[];if(g&&Y.push(ie[M]),v){const C=xw(s,f,E);Y.push(ie[C[0]],ie[C[1]])}if(G=[...G,{placement:s,overflows:Y}],!Y.every(C=>C<=0)){var j,O;const C=(((j=c.flip)==null?void 0:j.index)||0)+1,k=ee[C];if(k&&(!(v==="alignment"?R!==xi(k):!1)||G.every(ae=>xi(ae.placement)===R?ae.overflows[0]>0:!0)))return{data:{index:C,overflows:G},reset:{placement:k}};let F=(O=G.filter($=>$.overflows[0]<=0).sort(($,ae)=>$.overflows[1]-ae.overflows[1])[0])==null?void 0:O.placement;if(!F)switch(w){case"bestFit":{var N;const $=(N=G.filter(ae=>{if(V){const ce=xi(ae.placement);return ce===R||ce==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(ce=>ce>0).reduce((ce,Se)=>ce+Se,0)]).sort((ae,ce)=>ae[1]-ce[1])[0])==null?void 0:N[0];$&&(F=$);break}case"initialPlacement":F=d;break}if(s!==F)return{reset:{placement:F}}}return{}}}},eE=new Set(["left","top"]);async function tE(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=ei(r),d=Pr(r),h=xi(r)==="y",p=eE.has(f)?-1:1,g=c&&h?-1:1,v=rs(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:T}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return d&&typeof T=="number"&&(w=d==="end"?T*-1:T),h?{x:w*g,y:b*p}:{x:b*p,y:w*g}}const nE=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 tE(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}}}}},rE=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:P=>{let{x:M,y:R}=P;return{x:M,y:R}}},...h}=rs(e,t),p={x:r,y:o},g=await cf(t,h),v=xi(ei(s)),b=ww(v);let w=p[b],T=p[v];if(c){const P=b==="y"?"top":"left",M=b==="y"?"bottom":"right",R=w+g[P],I=w-g[M];w=hh(R,w,I)}if(f){const P=v==="y"?"top":"left",M=v==="y"?"bottom":"right",R=T+g[P],I=T-g[M];T=hh(R,T,I)}const L=d.fn({...t,[b]:w,[v]:T});return{...L,data:{x:L.x-r,y:L.y-o,enabled:{[b]:c,[v]:f}}}}}},iE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:s,rects:c,platform:f,elements:d}=t,{apply:h=()=>{},...p}=rs(e,t),g=await cf(t,p),v=ei(s),b=Pr(s),w=xi(s)==="y",{width:T,height:L}=c.floating;let P,M;v==="top"||v==="bottom"?(P=v,M=b===(await(f.isRTL==null?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(M=v,P=b==="end"?"top":"bottom");const R=L-g.top-g.bottom,I=T-g.left-g.right,E=Ta(L-g[P],R),D=Ta(T-g[M],I),V=!t.middlewareData.shift;let ee=E,ie=D;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(ie=I),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(ee=R),V&&!b){const G=Wo(g.left,0),j=Wo(g.right,0),O=Wo(g.top,0),N=Wo(g.bottom,0);w?ie=T-2*(G!==0||j!==0?G+j:Wo(g.left,g.right)):ee=L-2*(O!==0||N!==0?O+N:Wo(g.top,g.bottom))}await h({...t,availableWidth:ie,availableHeight:ee});const Y=await f.getDimensions(d.floating);return T!==Y.width||L!==Y.height?{reset:{rects:!0}}:{}}}};function hr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zr(e){return hr(e).getComputedStyle(e)}const Wv=Math.min,ua=Math.max,Tu=Math.round;function Sw(e){const t=Zr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Tu(r)!==s||Tu(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function yo(e){return Tw(e)?(e.nodeName||"").toLowerCase():""}let zc;function _w(){if(zc)return zc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(zc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),zc):navigator.userAgent}function Jr(e){return e instanceof hr(e).HTMLElement}function ho(e){return e instanceof hr(e).Element}function Tw(e){return e instanceof hr(e).Node}function qv(e){return typeof ShadowRoot>"u"?!1:e instanceof hr(e).ShadowRoot||e instanceof ShadowRoot}function uf(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Zr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function oE(e){return["table","td","th"].includes(yo(e))}function ph(e){const t=/firefox/i.test(_w()),r=Zr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((s=>r.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const c=r.contain;return c!=null&&c.includes(s)}))}function Cw(){return!/^((?!chrome|android).)*safari/i.test(_w())}function mp(e){return["html","body","#document"].includes(yo(e))}function Ew(e){return ho(e)?e:e.contextElement}const Aw={x:1,y:1};function Xs(e){const t=Ew(e);if(!Jr(t))return Aw;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=Sw(t);let f=(c?Tu(r.width):r.width)/o,d=(c?Tu(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Ca(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=Ew(e);let h=Aw;t&&(o?ho(o)&&(h=Xs(o)):h=Xs(e));const p=d?hr(d):window,g=!Cw()&&r;let v=(f.left+(g&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(g&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,T=f.height/h.y;if(d){const L=hr(d),P=o&&ho(o)?hr(o):o;let M=L.frameElement;for(;M&&o&&P!==L;){const R=Xs(M),I=M.getBoundingClientRect(),E=getComputedStyle(M);I.x+=(M.clientLeft+parseFloat(E.paddingLeft))*R.x,I.y+=(M.clientTop+parseFloat(E.paddingTop))*R.y,v*=R.x,b*=R.y,w*=R.x,T*=R.y,v+=I.x,b+=I.y,M=hr(M).frameElement}}return{width:w,height:T,top:b,right:v+w,bottom:b+T,left:v,x:v,y:b}}function po(e){return((Tw(e)?e.ownerDocument:e.document)||window.document).documentElement}function ff(e){return ho(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Lw(e){return Ca(po(e)).left+ff(e).scrollLeft}function Ea(e){if(yo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qv(e)&&e.host||po(e);return qv(t)?t.host:t}function Mw(e){const t=Ea(e);return mp(t)?t.ownerDocument.body:Jr(t)&&uf(t)?t:Mw(t)}function Cu(e,t){var r;t===void 0&&(t=[]);const o=Mw(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=hr(o);return s?t.concat(c,c.visualViewport||[],uf(o)?o:[]):t.concat(o,Cu(o))}function Uv(e,t,r){return t==="viewport"?ca((function(o,s){const c=hr(o),f=po(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,g=0,v=0;if(d){h=d.width,p=d.height;const b=Cw();(b||!b&&s==="fixed")&&(g=d.offsetLeft,v=d.offsetTop)}return{width:h,height:p,x:g,y:v}})(e,r)):ho(t)?ca((function(o,s){const c=Ca(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Jr(o)?Xs(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)):ca((function(o){const s=po(o),c=ff(o),f=o.ownerDocument.body,d=ua(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=ua(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+Lw(o);const g=-c.scrollTop;return Zr(f).direction==="rtl"&&(p+=ua(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:g}})(po(e)))}function Vv(e){return Jr(e)&&Zr(e).position!=="fixed"?e.offsetParent:null}function Gv(e){const t=hr(e);let r=Vv(e);for(;r&&oE(r)&&Zr(r).position==="static";)r=Vv(r);return r&&(yo(r)==="html"||yo(r)==="body"&&Zr(r).position==="static"&&!ph(r))?t:r||(function(o){let s=Ea(o);for(;Jr(s)&&!mp(s);){if(ph(s))return s;s=Ea(s)}return null})(e)||t}function sE(e,t,r){const o=Jr(t),s=po(t),c=Ca(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((yo(t)!=="body"||uf(s))&&(f=ff(t)),Jr(t)){const h=Ca(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=Lw(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const lE={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?(function(p,g){const v=g.get(p);if(v)return v;let b=Cu(p).filter((P=>ho(P)&&yo(P)!=="body")),w=null;const T=Zr(p).position==="fixed";let L=T?Ea(p):p;for(;ho(L)&&!mp(L);){const P=Zr(L),M=ph(L);(T?M||w:M||P.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=P:b=b.filter((R=>R!==L)),L=Ea(L)}return g.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,g)=>{const v=Uv(t,g,s);return p.top=ua(v.top,p.top),p.right=Wv(v.right,p.right),p.bottom=Wv(v.bottom,p.bottom),p.left=ua(v.left,p.left),p}),Uv(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=Jr(r),c=po(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")&&((yo(r)!=="body"||uf(c))&&(f=ff(r)),Jr(r))){const p=Ca(r);d=Xs(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:ho,getDimensions:function(e){return Jr(e)?Sw(e):e.getBoundingClientRect()},getOffsetParent:Gv,getDocumentElement:po,getScale:Xs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Gv,c=this.getDimensions;return{reference:sE(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Zr(e).direction==="rtl"},aE=(e,t,r)=>{const o=new Map,s={platform:lE,...r},c={...s.platform,_c:o};return XC(e,t,{...s,platform:c})},go={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 Aa(e,t){let r=go.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=go.themes[r.$extend]||{}:(r=null,o=go[t]):r=null;while(r);return o}function cE(e){const t=[e];let r=go.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=go.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Kv(e){const t=[e];let r=go.themes[e]||{};do r.$extend?(t.push(r.$extend),r=go.themes[r.$extend]||{}):r=null;while(r);return t}let La=!1;if(typeof window<"u"){La=!1;try{const e=Object.defineProperty({},"passive",{get(){La=!0}});window.addEventListener("test",null,e)}catch{}}let Nw=!1;typeof window<"u"&&typeof navigator<"u"&&(Nw=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Ow=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Xv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Yv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Zv(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Md(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const nr=[];let Bo=null;const Jv={};function Qv(e){let t=Jv[e];return t||(t=Jv[e]=[]),t}let gh=function(){};typeof window<"u"&&(gh=window.Element);function ht(e){return function(t){return Aa(t.theme,e)}}const Nd="__floating-vue__popper",Pw=()=>rt({name:"VPopper",provide(){return{[Nd]:{parentPopper:this}}},inject:{[Nd]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ht("disabled")},positioningDisabled:{type:Boolean,default:ht("positioningDisabled")},placement:{type:String,default:ht("placement"),validator:e=>Ow.includes(e)},delay:{type:[String,Number,Object],default:ht("delay")},distance:{type:[Number,String],default:ht("distance")},skidding:{type:[Number,String],default:ht("skidding")},triggers:{type:Array,default:ht("triggers")},showTriggers:{type:[Array,Function],default:ht("showTriggers")},hideTriggers:{type:[Array,Function],default:ht("hideTriggers")},popperTriggers:{type:Array,default:ht("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ht("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ht("popperHideTriggers")},container:{type:[String,Object,gh,Boolean],default:ht("container")},boundary:{type:[String,gh],default:ht("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ht("strategy")},autoHide:{type:[Boolean,Function],default:ht("autoHide")},handleResize:{type:Boolean,default:ht("handleResize")},instantMove:{type:Boolean,default:ht("instantMove")},eagerMount:{type:Boolean,default:ht("eagerMount")},popperClass:{type:[String,Array,Object],default:ht("popperClass")},computeTransformOrigin:{type:Boolean,default:ht("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ht("autoMinSize")},autoSize:{type:[Boolean,String],default:ht("autoSize")},autoMaxSize:{type:Boolean,default:ht("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ht("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ht("preventOverflow")},overflowPadding:{type:[Number,String],default:ht("overflowPadding")},arrowPadding:{type:[Number,String],default:ht("arrowPadding")},arrowOverflow:{type:Boolean,default:ht("arrowOverflow")},flip:{type:Boolean,default:ht("flip")},shift:{type:Boolean,default:ht("shift")},shiftCrossAxis:{type:Boolean,default:ht("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ht("noAutoFocus")},disposeTimeout:{type:Number,default:ht("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Nd])==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(nE({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(JC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(rE({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(QC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(YC({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(iE({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 aE(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),Bo&&this.instantMove&&Bo.instantMove&&Bo!==this.parentPopper){Bo.$_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&&(Bo=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 Md(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Cu(this.$_referenceNode),...Cu(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<nr.length;r++)t=nr[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}nr.push(this),document.body.classList.add("v-popper--some-open");for(const t of Kv(this.theme))Qv(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 Md(),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,Zv(nr,this),nr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Kv(this.theme)){const o=Qv(r);Zv(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Bo===this&&(Bo=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 Md(),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,Xv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Xv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Yv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Yv,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,La?{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(fa>=e.left&&fa<=e.right&&da>=e.top&&da<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=fa-Zi,o=da-Ji,s=t.left+t.width/2-Zi+(t.top+t.height/2)-Ji+t.width+t.height,c=Zi+r*s,f=Ji+o*s;return Fc(Zi,Ji,c,f,t.left,t.top,t.left,t.bottom)||Fc(Zi,Ji,c,f,t.left,t.top,t.right,t.top)||Fc(Zi,Ji,c,f,t.right,t.top,t.right,t.bottom)||Fc(Zi,Ji,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Nw){const e=La?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>ey(t),e),document.addEventListener("touchend",t=>ty(t,!0),e)}else window.addEventListener("mousedown",e=>ey(e),!0),window.addEventListener("click",e=>ty(e,!1),!0);window.addEventListener("resize",dE)}function ey(e,t){for(let r=0;r<nr.length;r++){const o=nr[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function ty(e,t){uE(e,t)}function uE(e,t){const r={};for(let o=nr.length-1;o>=0;o--){const s=nr[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&ny(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&&ny(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function ny(e,t,r){return r.closeAllPopover||r.closePopover&&t||fE(e,r)&&!t}function fE(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function dE(){for(let e=0;e<nr.length;e++)nr[e].$_computePosition()}function ry(){for(let e=0;e<nr.length;e++)nr[e].hide()}let Zi=0,Ji=0,fa=0,da=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Zi=fa,Ji=da,fa=e.clientX,da=e.clientY},La?{passive:!0}:void 0);function Fc(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 hE={extends:Pw()},df=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function pE(e,t,r,o,s,c){return ne(),ve("div",{ref:"reference",class:st(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Ft(e.$slots,"default",f_(cw(e.slotData)))],2)}const gE=df(hE,[["render",pE]]);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 ru;function mh(){mh.init||(mh.init=!0,ru=mE()!==-1)}var hf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){mh(),Et(()=>{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",ru&&this.$el.appendChild(e),e.data="about:blank",ru||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&&(!ru&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const vE=Cb();_b("data-v-b329ee4c");const yE={class:"resize-observer",tabindex:"-1"};Tb();const bE=vE((e,t,r,o,s,c)=>(ne(),Ve("div",yE)));hf.render=bE;hf.__scopeId="data-v-b329ee4c";hf.__file="src/components/ResizeObserver.vue";const Rw=(e="theme")=>({computed:{themeClass(){return cE(this[e])}}}),wE=rt({name:"VPopperContent",components:{ResizeObserver:hf},mixins:[Rw()],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}}}),xE=["id","aria-hidden","tabindex","data-popper-placement"],kE={ref:"inner",class:"v-popper__inner"},SE=X("div",{class:"v-popper__arrow-outer"},null,-1),_E=X("div",{class:"v-popper__arrow-inner"},null,-1),TE=[SE,_E];function CE(e,t,r,o,s,c){const f=es("ResizeObserver");return ne(),ve("div",{id:e.popperId,ref:"popover",class:st(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Rt(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]=dh(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[X("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),X("div",{class:"v-popper__wrapper",style:Rt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[X("div",kE,[e.mounted?(ne(),ve(et,{key:0},[X("div",null,[Ft(e.$slots,"default")]),e.handleResize?(ne(),Ve(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):He("",!0)],64)):He("",!0)],512),X("div",{ref:"arrow",class:"v-popper__arrow-container",style:Rt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},TE,4)],4)],46,xE)}const $w=df(wE,[["render",CE]]),Iw={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let vh=function(){};typeof window<"u"&&(vh=window.Element);const EE=rt({name:"VPopperWrapper",components:{Popper:gE,PopperContent:$w},mixins:[Iw,Rw("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,vh,Boolean],default:void 0},boundary:{type:[String,vh],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 AE(e,t,r,o,s,c){const f=es("PopperContent"),d=es("Popper");return ne(),Ve(d,_i({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:Be(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,show:w,hide:T,handleResize:L,onResize:P,classes:M,result:R})=>[Ft(e.$slots,"default",{shown:p,show:w,hide:T}),Ne(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":L,classes:M,result:R,onHide:T,onResize:P},{default:Be(()=>[Ft(e.$slots,"popper",{shown:p,hide:T})]),_: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 vp=df(EE,[["render",AE]]);({...vp});({...vp});const LE={...vp,name:"VTooltip",vPopperTheme:"tooltip"},ME=rt({name:"VTooltipDirective",components:{Popper:Pw(),PopperContent:$w},mixins:[Iw],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Aa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Aa(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),NE=["innerHTML"],OE=["textContent"];function PE(e,t,r,o,s,c){const f=es("PopperContent"),d=es("Popper");return ne(),Ve(d,_i({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:Be(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,hide:w,handleResize:T,onResize:L,classes:P,result:M})=>[Ne(f,{ref:"popperContent",class:st({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":T,classes:P,result:M,onHide:w,onResize:L},{default:Be(()=>[e.html?(ne(),ve("div",{key:0,innerHTML:e.finalContent},null,8,NE)):(ne(),ve("div",{key:1,textContent:Me(e.finalContent)},null,8,OE))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const RE=df(ME,[["render",PE]]),Dw="v-popper--has-tooltip";function $E(e,t){let r=e.placement;if(!r&&t)for(const o of Ow)t[o]&&(r=o);return r||(r=Aa(e.theme||"tooltip","placement")),r}function zw(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=$E(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Od,Ma,IE=0;function DE(){if(Od)return;Ma=Ue([]),Od=bw({name:"VTooltipDirectiveApp",setup(){return{directives:Ma}},render(){return this.directives.map(t=>Ka(RE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Od.mount(e)}function Fw(e,t,r){DE();const o=Ue(zw(e,t,r)),s=Ue(!1),c={id:IE++,options:o,shown:s};return Ma.value.push(c),e.classList&&e.classList.add(Dw),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function yp(e){if(e.$_popper){const t=Ma.value.indexOf(e.$_popper.item);t!==-1&&Ma.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Dw)}function iy(e,{value:t,modifiers:r}){const o=zw(e,t,r);if(!o.content||Aa(o.theme||"tooltip","disabled"))yp(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Fw(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const zE={beforeMount:iy,updated:iy,beforeUnmount(e){yp(e)}},FE=zE,ro=LE,Hw={options:go};function bp(e){return tb()?(m_(e),!0):!1}const Pd=new WeakMap,HE=(...e)=>{var t;const r=e[0],o=(t=ti())==null?void 0:t.proxy;if(o==null&&!Eb())throw new Error("injectLocal must be called in setup");return o&&Pd.has(o)&&r in Pd.get(o)?Pd.get(o)[r]:gn(...e)},BE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const jE=Object.prototype.toString,WE=e=>jE.call(e)==="[object Object]",qE=()=>+Date.now(),Eu=()=>{};function wp(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 xp=e=>e();function Bw(e,t={}){let r,o,s=Eu;const c=h=>{clearTimeout(h),s(),s=Eu};let f;return h=>{const p=Yt(e),g=Yt(t.maxWait);return r&&c(r),p<=0||g!==void 0&&g<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((v,b)=>{s=t.rejectOnCancel?b:v,f=h,g&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(f())},g)),r=setTimeout(()=>{o&&c(o),o=null,v(h())},p)})}}function jw(e=xp,t={}){const{initialState:r="active"}=t,o=is(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:tl(o),pause:s,resume:c,eventFilter:f}}function oy(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function sy(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function UE(e){return ti()}function Rd(e){return Array.isArray(e)?e:[e]}function is(...e){if(e.length!==1)return j_(...e);const t=e[0];return typeof t=="function"?tl(yb(()=>({get:t,set:Eu}))):Ue(t)}function Hc(e,t=200,r={}){return wp(Bw(t,r),e)}function Ww(e,t,r={}){const{eventFilter:o=xp,...s}=r;return kt(e,wp(o,t),s)}function qw(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=jw(o,{initialState:s});return{stop:Ww(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function kp(e,t=!0,r){UE()?Pi(e,r):t?e():Et(e)}function yh(e,t=!1){function r(v,{flush:b="sync",deep:w=!1,timeout:T,throwOnTimeout:L}={}){let P=null;const R=[new Promise(I=>{P=kt(e,E=>{v(E)!==t&&(P?P():Et(()=>P?.()),I(E))},{flush:b,deep:w,immediate:!0})})];return T!=null&&R.push(oy(T,L).then(()=>Yt(e)).finally(()=>P?.())),Promise.race(R)}function o(v,b){if(!Tt(v))return r(E=>E===v,b);const{flush:w="sync",deep:T=!1,timeout:L,throwOnTimeout:P}=b??{};let M=null;const I=[new Promise(E=>{M=kt([e,v],([D,V])=>{t!==(D===V)&&(M?M():Et(()=>M?.()),E(D))},{flush:w,deep:T,immediate:!0})})];return L!=null&&I.push(oy(L,P).then(()=>Yt(e)).finally(()=>(M?.(),Yt(e)))),Promise.race(I)}function s(v){return r(b=>!!b,v)}function c(v){return o(null,v)}function f(v){return o(void 0,v)}function d(v){return r(Number.isNaN,v)}function h(v,b){return r(w=>{const T=Array.from(w);return T.includes(v)||T.includes(Yt(v))},b)}function p(v){return g(1,v)}function g(v=1,b){let w=-1;return r(()=>(w+=1,w>=v),b)}return Array.isArray(Yt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:g,get not(){return yh(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:g,get not(){return yh(e,!t)}}}function ly(e){return yh(e)}function VE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Tt(e),c=Nt(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Yt(r);return c.value=c.value===h?Yt(o):h,c.value}}return s?f:[c,f]}function Sp(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Ww(e,t,{...c,eventFilter:Bw(o,{maxWait:s})})}function GE(e,t,r={}){const{eventFilter:o=xp,...s}=r,c=wp(o,t);let f,d,h;if(s.flush==="sync"){const p=Nt(!1);d=()=>{},f=g=>{p.value=!0,g(),p.value=!1},h=kt(e,(...g)=>{p.value||c(...g)},s)}else{const p=[],g=Nt(0),v=Nt(0);d=()=>{g.value=v.value},p.push(kt(e,()=>{v.value++},{...s,flush:"sync"})),f=b=>{const w=v.value;b(),g.value+=v.value-w},p.push(kt(e,(...b)=>{const w=g.value>0&&g.value===v.value;g.value=0,v.value=0,!w&&c(...b)},s)),h=()=>{p.forEach(b=>b())}}return{stop:h,ignoreUpdates:f,ignorePrevAsyncUpdates:d}}function KE(e,t,r){return kt(e,t,{...r,immediate:!0})}function XE(e,t,r){const o=kt(e,(...s)=>(Et(()=>o()),t(...s)),r);return o}function YE(e,t,r){let o;Tt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=Eu}=o,h=Nt(!s),p=f?Nt(t):Ue(t);let g=0;return Ab(async v=>{if(!h.value)return;g++;const b=g;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const T=await e(L=>{v(()=>{c&&(c.value=!1),w||L()})});b===g&&(p.value=T)}catch(T){d(T)}finally{c&&b===g&&(c.value=!1),w=!0}}),s?xe(()=>(h.value=!0,p.value)):p}const Dr=BE?window:void 0;function Au(e){var t;const r=Yt(e);return(t=r?.$el)!=null?t:r}function bo(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,g)=>(d.addEventListener(h,p,g),()=>d.removeEventListener(h,p,g)),s=xe(()=>{const d=Rd(Yt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=KE(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>Au(p)))!=null?h:[Dr].filter(p=>p!=null),Rd(Yt(s.value?e[1]:e[0])),Rd(K(s.value?e[2]:e[1])),Yt(s.value?e[3]:e[2])]},([d,h,p,g])=>{if(r(),!d?.length||!h?.length||!p?.length)return;const v=WE(g)?{...g}:g;t.push(...d.flatMap(b=>h.flatMap(w=>p.map(T=>o(b,w,T,v)))))},{flush:"post"}),f=()=>{c(),r()};return bp(r),f}function ZE(){const e=Nt(!1),t=ti();return t&&Pi(()=>{e.value=!0},t),e}function Uw(e){const t=ZE();return xe(()=>(t.value,!!e()))}function JE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Vw(...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=Dr,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=JE(t);return bo(s,c,g=>{g.repeat&&Yt(d)||h(g)&&r(g)},f)}function QE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Dr,once:c=!1}=t,f=Nt(!1),d=xe(()=>o?1e3/Yt(o):null);let h=0,p=null;function g(w){if(!f.value||!s)return;h||(h=w);const T=w-h;if(d.value&&T<d.value){p=s.requestAnimationFrame(g);return}if(h=w,e({delta:T,timestamp:w}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(g)}function v(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(g))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&v(),bp(b),{isActive:tl(f),pause:b,resume:v}}const eA=Symbol("vueuse-ssr-width");function tA(){const e=Eb()?HE(eA,null):null;return typeof e=="number"?e:void 0}function Gw(e,t={}){const{window:r=Dr,ssrWidth:o=tA()}=t,s=Uw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=Nt(typeof o=="number"),f=Nt(),d=Nt(!1),h=p=>{d.value=p.matches};return Ab(()=>{if(c.value){c.value=!s.value;const p=Yt(e).split(",");d.value=p.some(g=>{const v=g.includes("not all"),b=g.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=g.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let T=!!(b||w);return b&&T&&(T=o>=sy(b[1])),w&&T&&(T=o<=sy(w[1])),v?!T:T});return}s.value&&(f.value=r.matchMedia(Yt(e)),d.value=f.value.matches)}),bo(f,"change",h,{passive:!0}),xe(()=>d.value)}function Kw(e){return JSON.parse(JSON.stringify(e))}const Bc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},jc="__vueuse_ssr_handlers__",nA=rA();function rA(){return jc in Bc||(Bc[jc]=Bc[jc]||{}),Bc[jc]}function Xw(e,t){return nA[e]||t}function iA(e){return Gw("(prefers-color-scheme: dark)",e)}function oA(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 sA={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()}},ay="vueuse-storage";function Yw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:g,window:v=Dr,eventFilter:b,onError:w=j=>{console.error(j)},initOnMounted:T}=o,L=(g?Nt:Ue)(typeof t=="function"?t():t),P=xe(()=>Yt(e));if(!r)try{r=Xw("getDefaultStorage",()=>{var j;return(j=Dr)==null?void 0:j.localStorage})()}catch(j){w(j)}if(!r)return L;const M=Yt(t),R=oA(M),I=(s=o.serializer)!=null?s:sA[R],{pause:E,resume:D}=qw(L,()=>ee(L.value),{flush:c,deep:f,eventFilter:b});kt(P,()=>Y(),{flush:c}),v&&d&&kp(()=>{r instanceof Storage?bo(v,"storage",Y,{passive:!0}):bo(v,ay,G),T&&Y()}),T||Y();function V(j,O){if(v){const N={key:P.value,oldValue:j,newValue:O,storageArea:r};v.dispatchEvent(r instanceof Storage?new StorageEvent("storage",N):new CustomEvent(ay,{detail:N}))}}function ee(j){try{const O=r.getItem(P.value);if(j==null)V(O,null),r.removeItem(P.value);else{const N=I.write(j);O!==N&&(r.setItem(P.value,N),V(O,N))}}catch(O){w(O)}}function ie(j){const O=j?j.newValue:r.getItem(P.value);if(O==null)return h&&M!=null&&r.setItem(P.value,I.write(M)),M;if(!j&&p){const N=I.read(O);return typeof p=="function"?p(N,M):R==="object"&&!Array.isArray(N)?{...M,...N}:N}else return typeof O!="string"?O:I.read(O)}function Y(j){if(!(j&&j.storageArea!==r)){if(j&&j.key==null){L.value=M;return}if(!(j&&j.key!==P.value)){E();try{j?.newValue!==I.write(L.value)&&(L.value=ie(j))}catch(O){w(O)}finally{j?Et(D):D()}}}}function G(j){Y(j.detail)}return L}const lA="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function aA(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Dr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},b=iA({window:s}),w=xe(()=>b.value?"dark":"light"),T=h||(f==null?is(o):Yw(f,o,c,{window:s,listenToStorageChanges:d})),L=xe(()=>T.value==="auto"?w.value:T.value),P=Xw("updateHTMLAttrs",(E,D,V)=>{const ee=typeof E=="string"?s?.document.querySelector(E):Au(E);if(!ee)return;const ie=new Set,Y=new Set;let G=null;if(D==="class"){const O=V.split(/\s/g);Object.values(v).flatMap(N=>(N||"").split(/\s/g)).filter(Boolean).forEach(N=>{O.includes(N)?ie.add(N):Y.add(N)})}else G={key:D,value:V};if(ie.size===0&&Y.size===0&&G===null)return;let j;g&&(j=s.document.createElement("style"),j.appendChild(document.createTextNode(lA)),s.document.head.appendChild(j));for(const O of ie)ee.classList.add(O);for(const O of Y)ee.classList.remove(O);G&&ee.setAttribute(G.key,G.value),g&&(s.getComputedStyle(j).opacity,document.head.removeChild(j))});function M(E){var D;P(t,r,(D=v[E])!=null?D:E)}function R(E){e.onChanged?e.onChanged(E,M):M(E)}kt(L,R,{flush:"post",immediate:!0}),kp(()=>R(L.value));const I=xe({get(){return p?T.value:L.value},set(E){T.value=E}});return Object.assign(I,{store:T,system:w,state:L})}function cA(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=aA({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=xe(()=>o.system.value);return xe({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function Zw(e){return e}function uA(e,t){return e.value=t}function fA(e){return e?typeof e=="function"?e:Kw:Zw}function dA(e){return e?typeof e=="function"?e:Kw:Zw}function hA(e,t={}){const{clone:r=!1,dump:o=fA(r),parse:s=dA(r),setSource:c=uA}=t;function f(){return Qu({snapshot:o(e.value),timestamp:qE()})}const d=Ue(f()),h=Ue([]),p=Ue([]),g=I=>{c(e,s(I.snapshot)),d.value=I},v=()=>{h.value.unshift(d.value),d.value=f(),t.capacity&&h.value.length>t.capacity&&h.value.splice(t.capacity,Number.POSITIVE_INFINITY),p.value.length&&p.value.splice(0,p.value.length)},b=()=>{h.value.splice(0,h.value.length),p.value.splice(0,p.value.length)},w=()=>{const I=h.value.shift();I&&(p.value.unshift(d.value),g(I))},T=()=>{const I=p.value.shift();I&&(h.value.unshift(d.value),g(I))},L=()=>{g(d.value)},P=xe(()=>[d.value,...h.value]),M=xe(()=>h.value.length>0),R=xe(()=>p.value.length>0);return{source:e,undoStack:h,redoStack:p,last:d,history:P,canUndo:M,canRedo:R,clear:b,commit:v,reset:L,undo:w,redo:T}}function pA(e,t={}){const{deep:r=!1,flush:o="pre",eventFilter:s}=t,{eventFilter:c,pause:f,resume:d,isActive:h}=jw(s),{ignoreUpdates:p,ignorePrevAsyncUpdates:g,stop:v}=GE(e,P,{deep:r,flush:o,eventFilter:c});function b(E,D){g(),p(()=>{E.value=D})}const w=hA(e,{...t,clone:t.clone||r,setSource:b}),{clear:T,commit:L}=w;function P(){g(),L()}function M(E){d(),E&&P()}function R(E){let D=!1;const V=()=>D=!0;p(()=>{E(V)}),D||P()}function I(){v(),T()}return{...w,isTracking:h,pause:f,resume:M,commit:P,batch:R,dispose:I}}function Jw(e,t,r={}){const{window:o=Dr,...s}=r;let c;const f=Uw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=xe(()=>{const v=Yt(e);return Array.isArray(v)?v.map(b=>Au(b)):[Au(v)]}),p=kt(h,v=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of v)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),g=()=>{d(),p()};return bp(g),{isSupported:f,stop:g}}function pf(e,t,r={}){const{window:o=Dr}=r;return Yw(e,t,o?.localStorage,r)}function gA(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Dr}=t;if(!d)return ir(r);const h=ir({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const I=d.location.hash||"",E=I.indexOf("?");return E>0?I.slice(E):""}else return(d.location.hash||"").replace(/^#/,"")}function g(I){const E=I.toString();if(e==="history")return`${E?`?${E}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${E?`#${E}`:""}`;const D=d.location.hash||"#",V=D.indexOf("?");return V>0?`${d.location.search||""}${D.slice(0,V)}${E?`?${E}`:""}`:`${d.location.search||""}${D}${E?`?${E}`:""}`}function v(){return new URLSearchParams(p())}function b(I){const E=new Set(Object.keys(h));for(const D of I.keys()){const V=I.getAll(D);h[D]=V.length>1?V:I.get(D)||"",E.delete(D)}Array.from(E).forEach(D=>delete h[D])}const{pause:w,resume:T}=qw(h,()=>{const I=new URLSearchParams("");Object.keys(h).forEach(E=>{const D=h[E];Array.isArray(D)?D.forEach(V=>I.append(E,V)):o&&D==null||s&&!D?I.delete(E):I.set(E,D)}),L(I,!1)},{deep:!0});function L(I,E){w(),E&&b(I),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+g(I)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+g(I)),T()}function P(){c&&L(v(),!0)}const M={passive:!0};bo(d,"popstate",P,M),e!=="history"&&bo(d,"hashchange",P,M);const R=v();return R.keys().next().value?b(R):Object.assign(h,r),h}function Qw(e={}){const{window:t=Dr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=Nt(r),h=Nt(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:v,height:b,scale:w}=t.visualViewport;d.value=Math.round(v*w),h.value=Math.round(b*w)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),kp(p);const g={passive:!0};if(bo("resize",p,g),t&&f==="visual"&&t.visualViewport&&bo(t.visualViewport,"resize",p,g),s){const v=Gw("(orientation: portrait)");kt(v,()=>p())}return{width:d,height:h}}const cy={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const r=t,o=e,s=Hb(),c=Ue([]),f=xe(()=>c.value.reduce((H,Z)=>(H[~~Z.id]=Z)&&H,{})),d=xe(()=>c.value.length),h=Ue(null),p=Ue(!1),g=Ue({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),v=Ue({splitter:null,timeoutId:null}),b=xe(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":g.value.dragging})),w=()=>{document.addEventListener("mousemove",P,{passive:!1}),document.addEventListener("mouseup",M),"ontouchstart"in window&&(document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",M))},T=()=>{document.removeEventListener("mousemove",P,{passive:!1}),document.removeEventListener("mouseup",M),"ontouchstart"in window&&(document.removeEventListener("touchmove",P,{passive:!1}),document.removeEventListener("touchend",M))},L=(H,Z)=>{const re=H.target.closest(".splitpanes__splitter");if(re){const{left:le,top:ue}=re.getBoundingClientRect(),{clientX:z,clientY:W}="ontouchstart"in window&&H.touches?H.touches[0]:H;g.value.cursorOffset=o.horizontal?W-ue:z-le}w(),g.value.mouseDown=!0,g.value.activeSplitter=Z},P=H=>{g.value.mouseDown&&(H.preventDefault(),g.value.dragging=!0,requestAnimationFrame(()=>{ee(D(H)),Fe("resize",{event:H},!0)}))},M=H=>{g.value.dragging&&(window.getSelection().removeAllRanges(),Fe("resized",{event:H},!0)),g.value.mouseDown=!1,g.value.activeSplitter=null,setTimeout(()=>{g.value.dragging=!1,T()},100)},R=(H,Z)=>{"ontouchstart"in window&&(H.preventDefault(),v.value.splitter===Z?(clearTimeout(v.value.timeoutId),v.value.timeoutId=null,I(H,Z),v.value.splitter=null):(v.value.splitter=Z,v.value.timeoutId=setTimeout(()=>v.value.splitter=null,500))),g.value.dragging||Fe("splitter-click",{event:H,index:Z},!0)},I=(H,Z)=>{if(Fe("splitter-dblclick",{event:H,index:Z},!0),o.maximizePanes){let re=0;c.value=c.value.map((le,ue)=>(le.size=ue===Z?le.max:le.min,ue!==Z&&(re+=le.min),le)),c.value[Z].size-=re,Fe("pane-maximize",{event:H,index:Z,pane:c.value[Z]}),Fe("resized",{event:H,index:Z},!0)}},E=(H,Z)=>{Fe("pane-click",{event:H,index:f.value[Z].index,pane:f.value[Z]})},D=H=>{const Z=h.value.getBoundingClientRect(),{clientX:re,clientY:le}="ontouchstart"in window&&H.touches?H.touches[0]:H;return{x:re-(o.horizontal?0:g.value.cursorOffset)-Z.left,y:le-(o.horizontal?g.value.cursorOffset:0)-Z.top}},V=H=>{H=H[o.horizontal?"y":"x"];const Z=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(H=Z-H),H*100/Z},ee=H=>{const Z=g.value.activeSplitter;let re={prevPanesSize:Y(Z),nextPanesSize:G(Z),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(o.pushOtherPanes?0:re.prevPanesSize),ue=100-(o.pushOtherPanes?0:re.nextPanesSize),z=Math.max(Math.min(V(H),ue),le);let W=[Z,Z+1],Q=c.value[W[0]]||null,he=c.value[W[1]]||null;const pe=Q.max<100&&z>=Q.max+re.prevPanesSize,me=he.max<100&&z<=100-(he.max+G(Z+1));if(pe||me){pe?(Q.size=Q.max,he.size=Math.max(100-Q.max-re.prevPanesSize-re.nextPanesSize,0)):(Q.size=Math.max(100-he.max-re.prevPanesSize-G(Z+1),0),he.size=he.max);return}if(o.pushOtherPanes){const Ce=ie(re,z);if(!Ce)return;({sums:re,panesToResize:W}=Ce),Q=c.value[W[0]]||null,he=c.value[W[1]]||null}Q!==null&&(Q.size=Math.min(Math.max(z-re.prevPanesSize-re.prevReachedMinPanes,Q.min),Q.max)),he!==null&&(he.size=Math.min(Math.max(100-z-re.nextPanesSize-re.nextReachedMinPanes,he.min),he.max))},ie=(H,Z)=>{const re=g.value.activeSplitter,le=[re,re+1];return Z<H.prevPanesSize+c.value[le[0]].min&&(le[0]=j(re).index,H.prevReachedMinPanes=0,le[0]<re&&c.value.forEach((ue,z)=>{z>le[0]&&z<=re&&(ue.size=ue.min,H.prevReachedMinPanes+=ue.min)}),H.prevPanesSize=Y(le[0]),le[0]===void 0)?(H.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ue,z)=>{z>0&&z<=re&&(ue.size=ue.min,H.prevReachedMinPanes+=ue.min)}),c.value[le[1]].size=100-H.prevReachedMinPanes-c.value[0].min-H.prevPanesSize-H.nextPanesSize,null):Z>100-H.nextPanesSize-c.value[le[1]].min&&(le[1]=O(re).index,H.nextReachedMinPanes=0,le[1]>re+1&&c.value.forEach((ue,z)=>{z>re&&z<le[1]&&(ue.size=ue.min,H.nextReachedMinPanes+=ue.min)}),H.nextPanesSize=G(le[1]-1),le[1]===void 0)?(H.nextReachedMinPanes=0,c.value.forEach((ue,z)=>{z<d.value-1&&z>=re+1&&(ue.size=ue.min,H.nextReachedMinPanes+=ue.min)}),c.value[le[0]].size=100-H.prevPanesSize-G(le[0]-1),null):{sums:H,panesToResize:le}},Y=H=>c.value.reduce((Z,re,le)=>Z+(le<H?re.size:0),0),G=H=>c.value.reduce((Z,re,le)=>Z+(le>H+1?re.size:0),0),j=H=>[...c.value].reverse().find(Z=>Z.index<H&&Z.size>Z.min)||{},O=H=>c.value.find(Z=>Z.index>H+1&&Z.size>Z.min)||{},N=()=>{var H;const Z=Array.from(((H=h.value)==null?void 0:H.children)||[]);for(const re of Z){const le=re.classList.contains("splitpanes__pane"),ue=re.classList.contains("splitpanes__splitter");!le&&!ue&&(re.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},C=(H,Z,re=!1)=>{const le=H-1,ue=document.createElement("div");ue.classList.add("splitpanes__splitter"),re||(ue.onmousedown=z=>L(z,le),typeof window<"u"&&"ontouchstart"in window&&(ue.ontouchstart=z=>L(z,le)),ue.onclick=z=>R(z,le+1)),ue.ondblclick=z=>I(z,le+1),Z.parentNode.insertBefore(ue,Z)},k=H=>{H.onmousedown=void 0,H.onclick=void 0,H.ondblclick=void 0,H.remove()},F=()=>{var H;const Z=Array.from(((H=h.value)==null?void 0:H.children)||[]);for(const le of Z)le.className.includes("splitpanes__splitter")&&k(le);let re=0;for(const le of Z)le.className.includes("splitpanes__pane")&&(!re&&o.firstSplitter?C(re,le,!0):re&&C(re,le),re++)},$=({uid:H,...Z})=>{const re=f.value[H];for(const[le,ue]of Object.entries(Z))re[le]=ue},ae=H=>{var Z;let re=-1;Array.from(((Z=h.value)==null?void 0:Z.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&re++,le.isSameNode(H.el))),c.value.splice(re,0,{...H,index:re}),c.value.forEach((le,ue)=>le.index=ue),p.value&&Et(()=>{F(),Se({addedPane:c.value[re]}),Fe("pane-add",{pane:c.value[re]})})},ce=H=>{const Z=c.value.findIndex(le=>le.id===H);c.value[Z].el=null;const re=c.value.splice(Z,1)[0];c.value.forEach((le,ue)=>le.index=ue),Et(()=>{F(),Fe("pane-remove",{pane:re}),Se({removedPane:{...re}})})},Se=(H={})=>{!H.addedPane&&!H.removedPane?Ae():c.value.some(Z=>Z.givenSize!==null||Z.min||Z.max<100)?Ke(H):je(),p.value&&Fe("resized")},je=()=>{const H=100/d.value;let Z=0;const re=[],le=[];for(const ue of c.value)ue.size=Math.max(Math.min(H,ue.max),ue.min),Z-=ue.size,ue.size>=ue.max&&re.push(ue.id),ue.size<=ue.min&&le.push(ue.id);Z>.1&&qe(Z,re,le)},Ae=()=>{let H=100;const Z=[],re=[];let le=0;for(const z of c.value)H-=z.size,z.givenSize!==null&&le++,z.size>=z.max&&Z.push(z.id),z.size<=z.min&&re.push(z.id);let ue=100;if(H>.1){for(const z of c.value)z.givenSize===null&&(z.size=Math.max(Math.min(H/(d.value-le),z.max),z.min)),ue-=z.size;ue>.1&&qe(ue,Z,re)}},Ke=({addedPane:H,removedPane:Z}={})=>{let re=100/d.value,le=0;const ue=[],z=[];(H?.givenSize??null)!==null&&(re=(100-H.givenSize)/(d.value-1));for(const W of c.value)le-=W.size,W.size>=W.max&&ue.push(W.id),W.size<=W.min&&z.push(W.id);if(!(Math.abs(le)<.1)){for(const W of c.value)H?.givenSize!==null&&H?.id===W.id||(W.size=Math.max(Math.min(re,W.max),W.min)),le-=W.size,W.size>=W.max&&ue.push(W.id),W.size<=W.min&&z.push(W.id);le>.1&&qe(le,ue,z)}},qe=(H,Z,re)=>{let le;H>0?le=H/(d.value-Z.length):le=H/(d.value-re.length),c.value.forEach((ue,z)=>{if(H>0&&!Z.includes(ue.id)){const W=Math.max(Math.min(ue.size+le,ue.max),ue.min),Q=W-ue.size;H-=Q,ue.size=W}else if(!re.includes(ue.id)){const W=Math.max(Math.min(ue.size+le,ue.max),ue.min),Q=W-ue.size;H-=Q,ue.size=W}}),Math.abs(H)>.1&&Et(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Fe=(H,Z=void 0,re=!1)=>{const le=Z?.index??g.value.activeSplitter??null;r(H,{...Z,...le!==null&&{index:le},...re&&le!==null&&{prevPane:c.value[le-(o.firstSplitter?1:0)],nextPane:c.value[le+(o.firstSplitter?0:1)]},panes:c.value.map(ue=>({min:ue.min,max:ue.max,size:ue.size}))})};kt(()=>o.firstSplitter,()=>F()),Pi(()=>{N(),F(),Se(),Fe("ready"),p.value=!0}),Ua(()=>p.value=!1);const Re=()=>{var H;return Ka("div",{ref:h,class:b.value},(H=s.default)==null?void 0:H.call(s))};return dr("panes",c),dr("indexedPanes",f),dr("horizontal",xe(()=>o.horizontal)),dr("requestUpdate",$),dr("onPaneAdd",ae),dr("onPaneRemove",ce),dr("onPaneClick",E),(H,Z)=>(ne(),Ve(rh(Re)))}},Wc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=gn("requestUpdate"),s=gn("onPaneAdd"),c=gn("horizontal"),f=gn("onPaneRemove"),d=gn("onPaneClick"),h=(t=ti())==null?void 0:t.uid,p=gn("indexedPanes"),g=xe(()=>p.value[h]),v=Ue(null),b=xe(()=>{const P=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(P,T.value),w.value)}),w=xe(()=>{const P=parseFloat(r.minSize);return isNaN(P)?0:P}),T=xe(()=>{const P=parseFloat(r.maxSize);return isNaN(P)?100:P}),L=xe(()=>{var P;return`${c.value?"height":"width"}: ${(P=g.value)==null?void 0:P.size}%`});return kt(()=>b.value,P=>o({uid:h,size:P})),kt(()=>w.value,P=>o({uid:h,min:P})),kt(()=>T.value,P=>o({uid:h,max:P})),Pi(()=>{s({id:h,el:v.value,min:w.value,max:T.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),Ua(()=>f(h)),(P,M)=>(ne(),ve("div",{ref_key:"paneEl",ref:v,class:"splitpanes__pane",onClick:M[0]||(M[0]=R=>K(d)(R,P._.uid)),style:Rt(L.value)},[Ft(P.$slots,"default")],4))}},tr=Ue([414,896]);function ex(e){return e!=null}function _p(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const mA=/^[A-Za-z]:\//;function vA(e=""){return e&&e.replace(/\\/g,"/").replace(mA,t=>t.toUpperCase())}const yA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function bA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const tx=function(...e){e=e.map(o=>vA(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:bA();!s||s.length===0||(t=`${s}/${t}`,r=uy(s))}return t=wA(t,!r),r&&!uy(t)?`/${t}`:t.length>0?t:"."};function wA(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 uy=function(e){return yA.test(e)};var xA=44,fy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kA=new Uint8Array(64),nx=new Uint8Array(128);for(let e=0;e<fy.length;e++){const t=fy.charCodeAt(e);kA[e]=t,nx[t]=e}function Xl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=nx[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function dy(e,t){return e.pos>=t?!1:e.peek()!==xA}var SA=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,o=t.indexOf(e,r);return o===-1?t.length:o}};function _A(e){const{length:t}=e,r=new SA(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),g=[];let v=!0,b=0;for(s=0;r.pos<p;){let w;s=Xl(r,s),s<b&&(v=!1),b=s,dy(r,p)?(c=Xl(r,c),f=Xl(r,f),d=Xl(r,d),dy(r,p)?(h=Xl(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],g.push(w),r.pos++}v||TA(g),o.push(g),r.pos=p+1}while(r.pos<=t);return o}function TA(e){e.sort(CA)}function CA(e,t){return e[0]-t[0]}var gf=0,EA=1,AA=2,LA=3,MA=4,Lu=!1;function NA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][gf]-t;if(c===0)return Lu=!0,s;c<0?r=s+1:o=s-1}return Lu=!1,r-1}function OA(e,t,r){for(let o=r+1;o<e.length&&e[o][gf]===t;r=o++);return r}function PA(e,t,r){for(let o=r-1;o>=0&&e[o][gf]===t;r=o--);return r}function RA(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 Lu=f!==-1&&e[f][gf]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=NA(e,t,d,h)}var $A="`line` must be greater than 0 (lines start at line 1)",IA="`column` must be greater than or equal to 0 (columns start at column 0)",hy=-1,DA=1;function zA(e){var t;return(t=e)._decoded||(t._decoded=_A(e._encoded))}function FA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error($A);if(o<0)throw new Error(IA);const c=zA(e);if(r>=c.length)return qc(null,null,null,null);const f=c[r],d=HA(f,e._decodedMemo,r,o,s||DA);if(d===-1)return qc(null,null,null,null);const h=f[d];if(h.length===1)return qc(null,null,null,null);const{names:p,resolvedSources:g}=e;return qc(g[h[EA]],h[AA]+1,h[LA],h.length===5?p[h[MA]]:null)}function qc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function HA(e,t,r,o,s){let c=RA(e,o,t,r);return Lu?c=(s===hy?OA:PA)(e,o,c):s===hy&&c++,c===-1||c===e.length?-1:c}const rx=/^\s*at .*(?:\S:\d+|\(native\))/m,BA=/^(?:eval@)?(?:\[native code\])?$/,jA=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/],WA=Date.now().toString().length,qA=new RegExp(`vitest=\\d{${WA}}`);function ix(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return o.includes("vitest=")&&(o=o.replace(qA,"").replace(/[?&]$/,"")),[o,r[2]||void 0,r[3]||void 0]}function UA(e){let t=e.trim();if(BA.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let r=-1,o="",s;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){r=h,o=p,s=h>0?t.slice(0,h):void 0;break}}if(r===-1||!o.includes(":")||o.length<3)return null;const[c,f,d]=ix(o);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(!rx.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]=ix(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:tx(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function GA(e,t={}){const{ignoreStackEntries:r=jA}=t;return(rx.test(e)?XA(e):KA(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return py(r,s.file)?null:s;const d=new YA(f,s.file),h=JA(d,s);if(!h)return s;const{line:p,column:g,source:v,name:b}=h;let w=v||s.file;return w.match(/\/\w:\//)&&(w=w.slice(1)),py(r,w)?null:p!=null&&g!=null?{line:p,column:g,file:w,method:b||s.method}:s}).filter(s=>s!=null)}function py(e,t){return e.some(r=>t.match(r))}function KA(e){return e.split(`
|
|
18
|
-
`).map(t=>UA(t)).filter(ex)}function XA(e){return e.split(`
|
|
19
|
-
`).map(t=>VA(t)).filter(ex)}class YA{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,r){this.map=t;const{mappings:o,names:s,sources:c}=t;this.version=t.version,this.names=s||[],this._encoded=o||"",this._decodedMemo=ZA(),this.url=r,this.resolvedSources=(c||[]).map(f=>tx(f||"",r))}}function ZA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function JA(e,t){const r=FA(e,t);return r.column==null?null:r}const QA=/^[A-Za-z]:\//;function ox(e=""){return e&&e.replace(/\\/g,"/").replace(QA,t=>t.toUpperCase())}const eL=/^[/\\]{2}/,tL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,nL=/^[A-Za-z]:$/,gy=/^\/([A-Za-z]:)?$/,rL=function(e){if(e.length===0)return".";e=ox(e);const t=e.match(eL),r=Mu(e),o=e[e.length-1]==="/";return e=sx(e,!r),e.length===0?r?"/":o?"./":".":(o&&(e+="/"),nL.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!Mu(e)?`/${e}`:e)},iL=function(...e){let t="";for(const r of e)if(r)if(t.length>0){const o=t[t.length-1]==="/",s=r[0]==="/";o&&s?t+=r.slice(1):t+=o||s?r:`/${r}`}else t+=r;return rL(t)};function oL(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const my=function(...e){e=e.map(o=>ox(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:oL();!s||s.length===0||(t=`${s}/${t}`,r=Mu(s))}return t=sx(t,!r),r&&!Mu(t)?`/${t}`:t.length>0?t:"."};function sx(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 Mu=function(e){return tL.test(e)},mf=function(e,t){const r=my(e).replace(gy,"$1").split("/"),o=my(t).replace(gy,"$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 sL(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 lx(e,t,r,o,s){const c=mf(t,e),f={id:lL(c,r),name:c,fullName:c,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o,viteEnvironment:s};return f.file=f,f}function lL(e,t){return sL(`${e}${t||""}`)}function vy(e,t,r="tag"){throw e.length?new Error(`The ${r} "${t}" is not defined in the configuration. Available tags are:
|
|
20
|
-
${e.map(o=>`- ${o.name}${o.description?`: ${o.description}`:""}`).join(`
|
|
21
|
-
`)}`):new Error(`The Vitest config does't define any "tags", cannot apply "${t}" ${r} for this test. See: https://vitest.dev/guide/test-tags`)}function aL(e,t){const r=e.map(o=>cL(o,t));return o=>r.every(s=>s(o))}function cL(e,t){const r=uL(e),o=new fL(r,e),s=cx(o,t);if(o.peek().type!=="EOF")throw new Error(`Invalid tags expression: unexpected "${bh(o.peek())}" in "${e}"`);return c=>Ds(s,c)}function bh(e){switch(e.type){case"TAG":return e.value;default:return ax(e.type)}}function uL(e){const t=[];let r=0;for(;r<e.length;){if(e[r]===" "||e[r]===" "){r++;continue}if(e[r]==="("){t.push({type:"LPAREN"}),r++;continue}if(e[r]===")"){t.push({type:"RPAREN"}),r++;continue}if(e[r]==="!"){t.push({type:"NOT"}),r++;continue}if(e.slice(r,r+2)==="&&"){t.push({type:"AND"}),r+=2;continue}if(e.slice(r,r+2)==="||"){t.push({type:"OR"}),r+=2;continue}if(/^and(?:\s|\)|$)/i.test(e.slice(r))){t.push({type:"AND"}),r+=3;continue}if(/^or(?:\s|\)|$)/i.test(e.slice(r))){t.push({type:"OR"}),r+=2;continue}if(/^not\s/i.test(e.slice(r))){t.push({type:"NOT"}),r+=3;continue}let o="";for(;r<e.length&&e[r]!==" "&&e[r]!==" "&&e[r]!=="("&&e[r]!==")"&&e[r]!=="!"&&e[r]!=="&"&&e[r]!=="|";){const s=e.slice(r);if(o===""&&(/^and(?:\s|\)|$)/i.test(s)||/^or(?:\s|\)|$)/i.test(s)||/^not\s/i.test(s)))break;o+=e[r],r++}o&&t.push({type:"TAG",value:o})}return t.push({type:"EOF"}),t}class fL{pos=0;constructor(t,r){this.tokens=t,this.expr=r}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}expect(t){const r=this.next();if(r.type!==t)throw t==="RPAREN"&&r.type==="EOF"?new Error(`Invalid tags expression: missing closing ")" in "${this.expr}"`):new Error(`Invalid tags expression: expected "${ax(t)}" but got "${bh(r)}" in "${this.expr}"`);return r}unexpectedToken(){const t=this.peek();throw t.type==="EOF"?new Error(`Invalid tags expression: unexpected end of expression in "${this.expr}"`):new Error(`Invalid tags expression: unexpected "${bh(t)}" in "${this.expr}"`)}}function ax(e){switch(e){case"TAG":return"tag";case"AND":return"and";case"OR":return"or";case"NOT":return"not";case"LPAREN":return"(";case"RPAREN":return")";case"EOF":return"end of expression"}}function cx(e,t){let r=yy(e,t);for(;e.peek().type==="OR";){e.next();const o=yy(e,t);r={type:"or",left:r,right:o}}return r}function yy(e,t){let r=wh(e,t);for(;e.peek().type==="AND";){e.next();const o=wh(e,t);r={type:"and",left:r,right:o}}return r}function wh(e,t){return e.peek().type==="NOT"?(e.next(),{type:"not",operand:wh(e,t)}):dL(e,t)}function dL(e,t){const r=e.peek();if(r.type==="LPAREN"){e.next();const o=cx(e,t);return e.expect("RPAREN"),o}if(r.type==="TAG"){e.next();const o=r.value,s=pL(o,t);return{type:"tag",value:o,pattern:s}}e.unexpectedToken()}function hL(e){return new RegExp(`^${e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*")}$`)}function pL(e,t){if(e.includes("*")){const r=hL(e);if(!t.some(s=>r.test(s.name)))throw vy(t,e,"tag pattern");return r}if(!t.length||!t.some(r=>r.name===e))throw vy(t,e,"tag pattern");return null}function Ds(e,t){switch(e.type){case"tag":return e.pattern?t.some(r=>e.pattern.test(r)):t.includes(e.value);case"not":return!Ds(e.operand,t);case"and":return Ds(e.left,t)&&Ds(e.right,t);case"or":return Ds(e.left,t)||Ds(e.right,t)}}function ll(e){return e.type==="test"}function ux(e){const t=[],r=_p(e);for(const o of r)if(ll(o))t.push(o);else for(const s of o.tasks)if(ll(s))t.push(s);else{const c=ux(s);for(const f of c)t.push(f)}return t}function Tp(e=[]){return _p(e).flatMap(t=>ll(t)?[t]:[t,...Tp(t.tasks)])}function gL(e){const t=[e.name];let r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const by="q",wy="s";function mL(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}const vL=Math.random.bind(Math),yL="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function bL(e=21){let t="",r=e;for(;r--;)t+=yL[vL()*64|0];return t}const wL=6e4,fx=e=>e,xL=fx,{clearTimeout:xy,setTimeout:kL}=globalThis;function SL(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=fx,deserialize:d=xL,resolver:h,bind:p="rpc",timeout:g=wL,proxify:v=!0}=t;let b=!1;const w=new Map;let T,L;async function P(D,V,ee,ie){if(b)throw new Error(`[birpc] rpc is closed, cannot call "${D}"`);const Y={m:D,a:V,t:by};ie&&(Y.o=!0);const G=async $=>r(f($));if(ee){await G(Y);return}if(T)try{await T}finally{T=void 0}let{promise:j,resolve:O,reject:N}=mL();const C=bL();Y.i=C;let k;async function F($=Y){return g>=0&&(k=kL(()=>{try{if(t.onTimeoutError?.call(L,D,V)!==!0)throw new Error(`[birpc] timeout on calling "${D}"`)}catch(ae){N(ae)}w.delete(C)},g),typeof k=="object"&&(k=k.unref?.())),w.set(C,{resolve:O,reject:N,timeoutId:k,method:D}),await G($),j}try{t.onRequest?await t.onRequest.call(L,Y,F,O):await F()}catch($){if(t.onGeneralError?.call(L,$)!==!0)throw $;return}finally{xy(k),w.delete(C)}return j}const M={$call:(D,...V)=>P(D,V,!1),$callOptional:(D,...V)=>P(D,V,!1,!0),$callEvent:(D,...V)=>P(D,V,!0),$callRaw:D=>P(D.method,D.args,D.event,D.optional),$rejectPendingCalls:I,get $closed(){return b},get $meta(){return t.meta},$close:R,$functions:e};v?L=new Proxy({},{get(D,V){if(Object.prototype.hasOwnProperty.call(M,V))return M[V];if(V==="then"&&!c.includes("then")&&!("then"in e))return;const ee=(...Y)=>P(V,Y,!0);if(c.includes(V))return ee.asEvent=ee,ee;const ie=(...Y)=>P(V,Y,!1);return ie.asEvent=ee,ie}}):L=M;function R(D){b=!0,w.forEach(({reject:V,method:ee})=>{const ie=new Error(`[birpc] rpc is closed, cannot call "${ee}"`);if(D)return D.cause??=ie,V(D);V(ie)}),w.clear(),s(E)}function I(D){const V=Array.from(w.values()).map(({method:ee,reject:ie})=>D?D({method:ee,reject:ie}):ie(new Error(`[birpc]: rejected pending call "${ee}".`)));return w.clear(),V}async function E(D,...V){let ee;try{ee=d(D)}catch(ie){if(t.onGeneralError?.call(L,ie)!==!0)throw ie;return}if(ee.t===by){const{m:ie,a:Y,o:G}=ee;let j,O,N=await(h?h.call(L,ie,e[ie]):e[ie]);if(G&&(N||=()=>{}),!N)O=new Error(`[birpc] function "${ie}" not found`);else try{j=await N.apply(p==="rpc"?L:e,Y)}catch(C){O=C}if(ee.i){if(O&&t.onFunctionError&&t.onFunctionError.call(L,O,ie,Y)===!0)return;if(!O)try{await r(f({t:wy,i:ee.i,r:j}),...V);return}catch(C){if(O=C,t.onGeneralError?.call(L,C,ie,Y)!==!0)throw C}try{await r(f({t:wy,i:ee.i,e:O}),...V)}catch(C){if(t.onGeneralError?.call(L,C,ie,Y)!==!0)throw C}}}else{const{i:ie,r:Y,e:G}=ee,j=w.get(ie);j&&(xy(j.timeoutId),G?j.reject(G):j.resolve(Y)),w.delete(ie)}}return T=o(E),L}const{parse:dx,stringify:_L}=JSON,{keys:TL}=Object,Na=String,hx="string",ky={},Nu="object",px=(e,t)=>t,CL=e=>e instanceof Na?Na(e):e,EL=(e,t)=>typeof t===hx?new Na(t):t,gx=(e,t,r,o)=>{const s=[];for(let c=TL(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof Na){const g=e[p];typeof g===Nu&&!t.has(g)?(t.add(g),r[h]=ky,s.push({k:h,a:[e,t,g,o]})):r[h]=o.call(r,h,g)}else r[h]!==ky&&(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,gx.apply(null,h))}return r},Sy=(e,t,r)=>{const o=Na(t.push(r)-1);return e.set(r,o),o},xh=(e,t)=>{const r=dx(e,EL).map(CL),o=r[0],s=t||px,c=typeof o===Nu&&o?gx(r,new Set,o,s):o;return s.call({"":c},"",c)},mx=(e,t,r)=>{const o=t&&typeof t===Nu?(g,v)=>g===""||-1<t.indexOf(g)?v:void 0:t||px,s=new Map,c=[],f=[];let d=+Sy(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=_L(c[d++],p,r);return"["+f.join(",")+"]";function p(g,v){if(h)return h=!h,v;const b=o.call(this,g,v);switch(typeof b){case Nu:if(b===null)return b;case hx:return s.get(b)||Sy(s,c,b)}return b}},AL=e=>dx(mx(e));class vx{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>t.result?.state==="fail").map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=lx(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,o?.state==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function LL(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=R=>R,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const g=d({ws:new h(e),state:new vx,waitForConnection:M,reconnect:L},"state");g.state.filesMap=d(g.state.filesMap,"filesMap"),g.state.idMap=d(g.state.idMap,"idMap");let v;const b={onTestAnnotate(R,I){r.onTestAnnotate?.(R,I)},onTestArtifactRecord(R,I){r.onTestArtifactRecord?.(R,I)},onSpecsCollected(R,I){R?.forEach(([E,D])=>{g.state.clearFiles({config:E},[D])}),r.onSpecsCollected?.(R,I)},onPathsCollected(R){g.state.collectPaths(R),r.onPathsCollected?.(R)},onCollected(R){g.state.collectFiles(R),r.onCollected?.(R)},onTaskUpdate(R,I){g.state.updateTasks(R),r.onTaskUpdate?.(R,I)},onUserConsoleLog(R){g.state.updateUserLog(R),r.onUserConsoleLog?.(R)},onFinished(R,I,E,D){r.onFinished?.(R,I,E,D)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},w={post:R=>g.ws.send(R),on:R=>v=R,serialize:R=>mx(R,(I,E)=>E instanceof Error?{name:E.name,message:E.message,stack:E.stack}:E),deserialize:xh,timeout:-1};g.rpc=SL(b,w);let T;function L(R=!1){R&&(p=c),g.ws=new h(e),P()}function P(){T=new Promise((R,I)=>{const E=setTimeout(()=>{I(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();g.ws.OPEN===g.ws.readyState&&R(),g.ws.addEventListener("open",()=>{p=c,R(),clearTimeout(E)})}),g.ws.addEventListener("message",R=>{v(R.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(L,s)})}P();function M(){return T}return g}const wo=cA(),ML=VE(wo);function Xa(e){return Object.hasOwn(e,"tasks")}function NL(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Uo(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function $d(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function OL(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{const{splits:d,finished:h}=c;if(h){s++;const{raw:g,candidate:v}=c;t.set(g,v);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,r.get(p)?.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function yx(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,splitted:[...r],candidate:"",finished:!1,id:e}}function PL(e){return yx(e).raw}function iu(e){if(e>=500)return"danger";if(e>=100)return"warning"}function Ou(e){const t=iu(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function ou(e,t=!1){if(!e)return"";const r=e.split("").reduce((c,f,d)=>c+f.charCodeAt(0)+d,0),o=wo.value?["yellow","cyan","#006800","magenta"]:["#ff5400","#02a4a4","green","magenta"],s=wo.value?["#ffff0091","#0ff6","#5dbb5dc9","#ff00ff80"]:["#ff540091","#00828266","#5dbb5dc9","#ff00ff80"];return(t?s:o)[r%o.length]}function bx(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}const kh=Nt([]),Jn=Nt([]),zr=pf("vitest-ui_task-tree-opened",[],{shallow:!0}),ts="__vitest_ui_all_projects__",Pu=xe(()=>new Set(zr.value)),Kt=pf("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:"",project:ts,projectSort:void 0}),co=Ue(Kt.value.projectSort||"default"),Vo=Nt(Kt.value?.project||ts),wx=xe(()=>$p.value.length>1),RL=xe(()=>Vo.value===ts),Cp=xe(()=>!wx.value||Vo.value===ts?void 0:Vo.value),Mr=Ue(Kt.value.search),_y=new Map,Qi=xe(()=>{if(Mr.value.startsWith("tag:")){if(!zn.value.tags)return{matcher:()=>!0};const e=Mr.value.slice(4).trim();let t=_y.get(e);return t||(t=$L(e),_y.set(e,t)),{matcher:r=>t.matcher(r.tags||[]),error:t.error}}return{matcher:e=>Mr.value===""||NL(e.name,Mr.value)}});function $L(e){if(!e)return{matcher:()=>!0};try{return{matcher:aL([e],zn.value.tags)}}catch(t){return{matcher:()=>!1,error:t.message}}}const IL={"&":"&","<":"<",">":">",'"':""","'":"'"};function xx(e){return e.replace(/[&<>"']/g,t=>IL[t])}const DL=xe(()=>{const e=Mr.value.toLowerCase();return e.length?new RegExp(`(${xx(e)})`,"gi"):null}),kx=xe(()=>Mr.value.trim()!==""),it=ir({failed:Kt.value.failed,success:Kt.value.success,skipped:Kt.value.skipped,onlyTests:Kt.value.onlyTests}),Sh=xe(()=>!!(it.failed||it.success||it.skipped)),vf=Nt([]),al=Ue(!1),Ty=xe(()=>{const e=Kt.value.expandAll;return zr.value.length>0?e!==!0:e!==!1}),zL=xe(()=>{const e=kx.value,t=Sh.value,r=Cp.value,o=it.onlyTests,s=Le.summary.filesFailed,c=Le.summary.filesSuccess,f=Le.summary.filesSkipped,d=Le.summary.filesRunning,h=vf.value;return Le.collectTestsTotal(e||t||!!r,o,h,{failed:s,success:c,skipped:f,running:d})});function FL(e){return e.type==="test"}function HL(e){return e.mode==="run"&&e.type==="test"}function In(e){return e.type==="file"}function Li(e){return e.type==="file"||e.type==="suite"}function BL(e,t=Le.root.tasks){const r=[...t];return r.sort((o,s)=>{if(e==="asc"||e==="desc"){const c=o.projectName||"",f=s.projectName||"";if(c!==f)return e==="asc"?c.localeCompare(f):f.localeCompare(c)}return`${o.filepath}:${o.projectName}`.localeCompare(`${s.filepath}:${s.projectName}`)}),r}function Oa(e,t=!1){let r=Le.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=e.result?.state,r.mode=e.mode,r.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:Pu.value.size>0&&Pu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Le.colors.get(e.projectName||"")||ou(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Le.nodes.set(e.id,r),Le.root.tasks.push(r)),t)for(let o=0;o<e.tasks.length;o++)Ya(e.id,e.tasks[o],!0)}function Sx(e,t){const r=Le.nodes.get(e);if(!r||!Li(r))return;const o=ft.state.idMap.get(e);if(!(!o||!Xa(o)))return Ya(r.parentId,o,t&&o.tasks.length>0),[r,o]}function jL(e){const t=Le.nodes.get(e);if(!t)return;const r=ft.state.idMap.get(e);!r||!ll(r)||Ya(t.parentId,r,!1)}function Ya(e,t,r){const o=Le.nodes.get(e);let s;const c=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(o&&(s=Le.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=t.result?.state):(ll(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:t.result?.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:Pu.value.size>0&&Pu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Le.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Xa(t)))for(let f=0;f<t.tasks.length;f++)Ya(s.id,t.tasks[f],r)}function WL(e){const t=Le.nodes.get(e);if(!t||!Li(t))return;const r=new Set(zr.value);r.delete(t.id);const o=[...UL(t)];zr.value=Array.from(r),Jn.value=o}function qL(){_h(Le.root.tasks);const e=[...Jn.value.filter(In)];_h(e),zr.value=[],Kt.value.expandAll=!0,Jn.value=e}function _h(e){for(const t of e)Li(t)&&(t.expanded=!1,_h(t.tasks))}function*_x(e,t){if(t&&(yield e.id),Li(e))for(let r=0;r<e.tasks.length;r++)yield*_x(e.tasks[r],!0)}function*UL(e){const t=e.id,r=new Set(_x(e,!1));for(let o=0;o<Jn.value.length;o++){const s=Jn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const yf=Ue("idle"),Hs=xe(()=>yf.value==="idle"),io=Ue([]),VL=xe(()=>(zn.value.tags||[]).reduce((t,r)=>(t[r.name]=r,t),{}));function GL(e,t,r){return e?Ex(e,t,r):!1}function Ep(e,t){const r=[...Tx(e,t)];Jn.value=r,vf.value=r.filter(In).map(o=>mr(o.id))}function*Tx(e,t){const r=Cp.value,o=BL(co.value);for(const s of o)r&&s.projectName!==r||(yield*Cx(s,e,t))}function*Cx(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[v,b]of Th(e,o,w=>Cy(w,t,r)))c.push([v,b]);else{for(const[v,b]of Th(e,o,w=>Cy(w,t,r)))Li(b)?(s.set(b.id,v),In(b)?(v&&(f=b.id),c.push([v,b])):c.push([v||s.get(b.parentId)===!0,b])):c.push([v||s.get(b.parentId)===!0,b]);!f&&!In(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...XL(c,r.onlyTests,o,d,f)].reverse(),p=Le.nodes;for(const v of o){const b=p.get(v);b&&"expanded"in b&&(b.expanded=!0)}const g=new Set(h.filter(v=>In(v)||Li(v)&&p.get(v.parentId)?.expanded).map(v=>v.id));yield*h.filter(v=>In(v)||g.has(v.parentId)&&p.get(v.parentId)?.expanded)}function KL(e,t,r,o,s){if(o){if(In(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Le.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Le.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}function*XL(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=Li(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Le.nodes.get(d.parentId);for(;p;)r.add(p.id),In(p)&&o.add(p.id),p=Le.nodes.get(p.parentId);yield d;continue}if(h){const p=KL(f,d,r,t,o);p&&(yield p)}else if(f){const p=Le.nodes.get(d.parentId);p&&In(p)&&o.add(p.id),yield d}}}function YL(e,t){return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Ex(e,t,r){if(t(e))if(r.success||r.failed||r.skipped){if(YL(e,r))return!0}else return!0;return!1}function*Th(e,t,r){const o=r(e);if(o)if(FL(e)){let s=Le.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Le.nodes.get(s.parentId)}else if(In(e))t.add(e.id);else{t.add(e.id);let s=Le.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Le.nodes.get(s.parentId)}if(yield[o,e],Li(e))for(let s=0;s<e.tasks.length;s++)yield*Th(e.tasks[s],t,r)}function Cy(e,t,r){const o=ft.state.idMap.get(e.id);return o?Ex(o,t,r):!1}function ZL(e,t,r){const o=Sx(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Ya(s.id,p,!1);s.expanded=!0;const f=new Set(zr.value);f.add(s.id);const d=new Set(Cx(s,t,r)),h=[...eM(s,d)];zr.value=Array.from(f),Jn.value=h}function JL(e,t){Ap(Le.root.tasks,!1);const r=[...Tx(e,t)];Kt.value.expandAll=!1,zr.value=[],Jn.value=r,vf.value=r.filter(In).map(o=>mr(o.id))}function QL(e,t){if(e.size)for(const r of Jn.value)e.has(r.id)&&(r.expanded=!0);else t&&Ap(Jn.value.filter(In),!0)}function Ap(e,t){for(const r of e)Li(r)&&(r.expanded=!0,Ap(r.tasks,!1));t&&(Kt.value.expandAll=!1,zr.value=[])}function*eM(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Jn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function Lp(e){return ux(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function tM(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>Oa(s,t)),kh.value=[...Le.root.tasks],Ep(r,{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function nM(e){queueMicrotask(()=>{const t=Le.pendingTasks,r=ft.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function rM(e,t){const r=Le.pendingTasks,s=ft.state.idMap.get(e);if(s?.type==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),t.type==="internal:annotation"?s.annotations.push(t.annotation):s.artifacts.push(t)}}function Ey(e,t,r,o,s,c){e&&cM(r);const f=!e;queueMicrotask(()=>{t?sM(f):lM(f)}),queueMicrotask(()=>{uM(r,c)}),queueMicrotask(()=>{t&&(r.failedSnapshot=kh.value&&Lp(kh.value.map(d=>mr(d.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{aM(o,s,t)})}function*iM(){yield*Jn.value.filter(HL)}function oM(){const e=ft.state.idMap;let t;for(const r of iM())t=e.get(r.parentId),t&&Xa(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function sM(e){const t=ft.state.getFiles(),r=Le.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)Oa(o[c],e),Ru(o[c].tasks);const s=Le.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=mr(f.id);!d||(Oa(d,e),!d.tasks?.length)||Ru(d.tasks)}}function lM(e){const t=new Map(Le.pendingTasks.entries());Le.pendingTasks.clear();const r=Le.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>mr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],Oa(s,!1),Ru(s.tasks),t.delete(s.id);const c=ft.state.idMap,f=Le.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=mr(h.id);if(!p)continue;const g=t.get(p.id);g&&(Oa(p,e),Ru(Array.from(g,v=>c.get(v)).filter(Boolean)))}}function aM(e,t,r=!1){const o=Kt.value.expandAll,s=o!==!0,c=new Set(zr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{Ay(e,t,r)}),al.value||queueMicrotask(()=>{(Jn.value.length||r)&&(al.value=!0)}),f&&(queueMicrotask(()=>{QL(c,r),s&&(Kt.value.expandAll=!1)}),queueMicrotask(()=>{Ay(e,t,r)}))}function Ay(e,t,r){Ep(e,t),r&&(oM(),yf.value="idle")}function Ru(e){let t;for(let r=0;r<e.length;r++)t=e[r],Xa(t)?Sx(t.id,!0):jL(t.id)}function cM(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.testsExpectedFail=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function uM(e,t){const r=ft.state.idMap,o=new Map(Le.root.tasks.filter(f=>r.has(f.id)).map(f=>[f.id,f])),s=Array.from(o.values(),f=>[f.id,mr(f.id)]),c={files:o.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,totalTests:0};for(const[f,d]of s){if(!d)continue;d.result?.state==="fail"?c.filesFailed++:d.result?.state==="pass"?c.filesSuccess++:d.mode==="skip"?(c.filesIgnore++,c.filesSkipped++):d.mode==="todo"?(c.filesIgnore++,c.filesTodo++):c.filesRunning++;const{failed:h,success:p,skipped:g,total:v,ignored:b,todo:w,expectedFail:T}=Ax(d);c.totalTests+=v,c.testsFailed+=h,c.testsSuccess+=p,c.testsSkipped+=g,c.testsTodo+=w,c.testsExpectedFail+=T,c.testsIgnore+=b}e.files=c.files,e.time=c.time,e.filesFailed=c.filesFailed,e.filesSuccess=c.filesSuccess,e.filesIgnore=c.filesIgnore,e.filesRunning=c.filesRunning,e.filesSkipped=c.filesSkipped,e.filesTodo=c.filesTodo,e.testsFailed=c.testsFailed,e.testsSuccess=c.testsSuccess,e.testsTodo=c.testsTodo,e.testsExpectedFail=c.testsExpectedFail,e.testsIgnore=c.testsIgnore,e.testsSkipped=c.testsSkipped,e.totalTests=c.totalTests}function Ax(e,t=()=>!0,r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0,expectedFail:0};for(const s of Lx(e))(!r||GL(s,t,r))&&(o.total++,s.result?.state==="fail"?o.failed++:s.result?.state==="pass"?s.fails?o.expectedFail++:o.success++:s.mode==="skip"?(o.ignored++,o.skipped++):s.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored-o.expectedFail,o}function fM(e,t,r,o,s,c){if(t)return r.map(f=>Ax(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:g})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=g,f),{failed:0,success:0,skipped:0,running:0});if(e){const f={failed:0,success:0,skipped:0,running:0},d=!c.success&&!c.failed,h=c.failed||d,p=c.success||d;for(const g of r)g.result?.state==="fail"?f.failed+=h?1:0:g.result?.state==="pass"?f.success+=p?1:0:g.mode==="skip"||g.mode==="todo"||f.running++;return f}return o}function*Lx(e){const t=_p(e);let r;for(let o=0;o<t.length;o++)r=t[o],ll(r)?yield r:yield*Lx(r.tasks)}class dM{constructor(t=[],r=new Map,o=!1,s=500,c={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},f=new Map,d=new Map,h=ir({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=r,this.onTaskUpdateCalled=o,this.resumeEndTimeout=s,this.root=c,this.pendingTasks=f,this.nodes=d,this.summary=h,this.rafCollector=QE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;startTime=0;executionTime=0;loadFiles(t,r){this.projects.splice(0,this.projects.length,...r.map(o=>o.name)),this.colors=new Map(r.map(o=>[o.name,o.color])),tM(t,!0,Qi.value.matcher,{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,r){rM(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){nM(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{Ey(t,r,this.summary,Qi.value.matcher,{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests},r?this.executionTime:performance.now()-this.startTime)}):Ey(t,r,this.summary,Qi.value.matcher,{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests},r?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,r,o,s){return fM(t,r,o,s,Qi.value.matcher,{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})}collapseNode(t){queueMicrotask(()=>{WL(t)})}expandNode(t){queueMicrotask(()=>{ZL(t,Qi.value.matcher,{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{qL()})}expandAllNodes(){queueMicrotask(()=>{JL(Qi.value.matcher,{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}filterNodes(){queueMicrotask(()=>{Ep(Qi.value.matcher,{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}}const Le=new dM;function Mx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var su={exports:{}},hM=su.exports,Ly;function _o(){return Ly||(Ly=1,(function(e,t){(function(r,o){e.exports=o()})(hM,(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]),g=!d&&/WebKit\//.test(r),v=g&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],T=/Opera\//.test(r),L=/Apple Computer/.test(navigator.vendor),P=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),M=/PhantomJS/.test(r),R=L&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),I=/Android/.test(r),E=R||I||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),D=R||/Mac/.test(o),V=/\bCrOS\b/.test(r),ee=/win/i.test(o),ie=T&&r.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&(T=!1,g=!0);var Y=D&&(v||T&&(ie==null||ie<12.11)),G=s||h&&p>=9;function j(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var O=function(n,i){var a=n.className,l=j(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function N(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function C(n,i){return N(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 m=0;m<i.length;++m)u.appendChild(i[m]);return u}function F(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var $;document.createRange?$=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:$=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 ae(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 ce(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Se(n,i){var a=n.className;j(i).test(a)||(n.className+=(a?" ":"")+i)}function je(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!j(a[l]).test(i)&&(i+=" "+a[l]);return i}var Ae=function(n){n.select()};R?Ae=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(Ae=function(n){try{n.select()}catch{}});function Ke(n){return n.display.wrapper.ownerDocument}function qe(n){return Fe(n.display.wrapper)}function Fe(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Re(n){return Ke(n).defaultView}function H(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function Z(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 re(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var m=l||0,y=u||0;;){var x=n.indexOf(" ",m);if(x<0||x>=i)return y+(i-m);y+=x-m,y+=a-y%a,m=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=H(this.onTimeout,this)};le.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},le.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function ue(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var z=50,W={toString:function(){return"CodeMirror.Pass"}},Q={scroll:!1},he={origin:"*mouse"},pe={origin:"+move"};function me(n,i,a){for(var l=0,u=0;;){var m=n.indexOf(" ",l);m==-1&&(m=n.length);var y=m-l;if(m==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=m-l,u+=a-u%a,l=m+1,u>=i)return l}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(ke(Ce)+" ");return Ce[n]}function ke(n){return n[n.length-1]}function be(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function J(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function fe(){}function oe(n,i){var a;return Object.create?a=Object.create(n):(fe.prototype=n,a=new fe),i&&Z(i,a),a}var $e=/[\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()||$e.test(n))}function ct(n,i){return i?i.source.indexOf("\\w")>-1&&Qe(n)?!0:i.test(n):Qe(n)}function dt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Ot=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ut(n){return n.charCodeAt(0)>=768&&Ot.test(n)}function Zt(n,i,a){for(;(a<0?i>0:i<n.length)&&ut(n.charAt(i));)i+=a;return i}function qt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,m=l<0?Math.ceil(u):Math.floor(u);if(m==i)return n(m)?i:a;n(m)?a=m:i=m+l}}function Hn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,m=0;m<n.length;++m){var y=n[m];(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",m),u=!0)}u||l(i,a,"ltr")}var Br=null;function Bt(n,i,a){var l;Br=null;for(var u=0;u<n.length;++u){var m=n[u];if(m.from<i&&m.to>i)return u;m.to==i&&(m.from!=m.to&&a=="before"?l=u:Br=u),m.from==i&&(m.from!=m.to&&a!="before"?l=u:Br=u)}return l??Br}var Bn=(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]/,m=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function S(_,B,U){this.level=_,this.from=B,this.to=U}return function(_,B){var U=B=="ltr"?"L":"R";if(_.length==0||B=="ltr"&&!l.test(_))return!1;for(var se=_.length,te=[],ge=0;ge<se;++ge)te.push(a(_.charCodeAt(ge)));for(var we=0,Te=U;we<se;++we){var Oe=te[we];Oe=="m"?te[we]=Te:Te=Oe}for(var De=0,Pe=U;De<se;++De){var ze=te[De];ze=="1"&&Pe=="r"?te[De]="n":m.test(ze)&&(Pe=ze,ze=="r"&&(te[De]="R"))}for(var Ze=1,Ge=te[0];Ze<se-1;++Ze){var lt=te[Ze];lt=="+"&&Ge=="1"&&te[Ze+1]=="1"?te[Ze]="1":lt==","&&Ge==te[Ze+1]&&(Ge=="1"||Ge=="n")&&(te[Ze]=Ge),Ge=lt}for(var _t=0;_t<se;++_t){var nn=te[_t];if(nn==",")te[_t]="N";else if(nn=="%"){var Pt=void 0;for(Pt=_t+1;Pt<se&&te[Pt]=="%";++Pt);for(var qn=_t&&te[_t-1]=="!"||Pt<se&&te[Pt]=="1"?"1":"N",En=_t;En<Pt;++En)te[En]=qn;_t=Pt-1}}for(var Ut=0,An=U;Ut<se;++Ut){var ln=te[Ut];An=="L"&&ln=="1"?te[Ut]="L":m.test(ln)&&(An=ln)}for(var Xt=0;Xt<se;++Xt)if(u.test(te[Xt])){var Vt=void 0;for(Vt=Xt+1;Vt<se&&u.test(te[Vt]);++Vt);for(var zt=(Xt?te[Xt-1]:U)=="L",Ln=(Vt<se?te[Vt]:U)=="L",Ms=zt==Ln?zt?"L":"R":U,Gi=Xt;Gi<Vt;++Gi)te[Gi]=Ms;Xt=Vt-1}for(var dn=[],Vr,rn=0;rn<se;)if(y.test(te[rn])){var vd=rn;for(++rn;rn<se&&y.test(te[rn]);++rn);dn.push(new S(0,vd,rn))}else{var ui=rn,$o=dn.length,Io=B=="rtl"?1:0;for(++rn;rn<se&&te[rn]!="L";++rn);for(var bn=ui;bn<rn;)if(x.test(te[bn])){ui<bn&&(dn.splice($o,0,new S(1,ui,bn)),$o+=Io);var Ns=bn;for(++bn;bn<rn&&x.test(te[bn]);++bn);dn.splice($o,0,new S(2,Ns,bn)),$o+=Io,ui=bn}else++bn;ui<rn&&dn.splice($o,0,new S(1,ui,rn))}return B=="ltr"&&(dn[0].level==1&&(Vr=_.match(/^\s+/))&&(dn[0].from=Vr[0].length,dn.unshift(new S(0,0,Vr[0].length))),ke(dn).level==1&&(Vr=_.match(/\s+$/))&&(ke(dn).to-=Vr[0].length,dn.push(new S(0,se-Vr[0].length,se)))),B=="rtl"?dn.reverse():dn}})();function at(n,i){var a=n.order;return a==null&&(a=n.order=Bn(n.text,i)),a}var To=[],Ye=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||To).concat(a)}};function ri(n,i){return n._handlers&&n._handlers[i]||To}function cn(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 m=ue(u,a);m>-1&&(l[i]=u.slice(0,m).concat(u.slice(m+1)))}}}function $t(n,i){var a=ri(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 It(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),$t(n,a||i.type,n,i),Sn(i)||i.codemirrorIgnore}function ar(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)ue(a,i[l])==-1&&a.push(i[l])}function jn(n,i){return ri(n,i).length>0}function yr(n){n.prototype.on=function(i,a){Ye(this,i,a)},n.prototype.off=function(i,a){cn(this,i,a)}}function un(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function os(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function Sn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function $i(n){un(n),os(n)}function gl(n){return n.target||n.srcElement}function br(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),D&&n.ctrlKey&&i==1&&(i=3),i}var _f=(function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n})(),ss;function nc(n){if(ss==null){var i=k("span","");C(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(ss=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=ss?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var ml;function Ii(n){if(ml!=null)return ml;var i=C(n,document.createTextNode("AخA")),a=$(i,0,1).getBoundingClientRect(),l=$(i,1,2).getBoundingClientRect();return N(n),!a||a.left==a.right?!1:ml=l.right-a.right<3}var cr=`
|
|
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 m=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=m.indexOf("\r");y!=-1?(a.push(m.slice(0,y)),i+=y+1):(a.push(m),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Di=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},rc=(function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),wr=null;function Tf(n){if(wr!=null)return wr;var i=C(n,k("span","x")),a=i.getBoundingClientRect(),l=$(i,0,1).getBoundingClientRect();return wr=Math.abs(a.left-l.left)>1}var ls={},xr={};function kr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),ls[n]=i}function Co(n,i){xr[n]=i}function as(n){if(typeof n=="string"&&xr.hasOwnProperty(n))n=xr[n];else if(n&&typeof n.name=="string"&&xr.hasOwnProperty(n.name)){var i=xr[n.name];typeof i=="string"&&(i={name:i}),n=oe(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return as("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return as("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function cs(n,i){i=as(i);var a=ls[i.name];if(!a)return cs(n,"text/plain");var l=a(n,i);if(zi.hasOwnProperty(i.name)){var u=zi[i.name];for(var m in u)u.hasOwnProperty(m)&&(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=u[m])}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 zi={};function us(n,i){var a=zi.hasOwnProperty(n)?zi[n]:zi[n]={};Z(i,a)}function jr(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 vl(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 fs(n,i,a){return n.startState?n.startState(i,a):!0}var Dt=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};Dt.prototype.eol=function(){return this.pos>=this.string.length},Dt.prototype.sol=function(){return this.pos==this.lineStart},Dt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Dt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Dt.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},Dt.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},Dt.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},Dt.prototype.skipToEnd=function(){this.pos=this.string.length},Dt.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},Dt.prototype.backUp=function(n){this.pos-=n},Dt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=re(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},Dt.prototype.indentation=function(){return re(this.string,null,this.tabSize)-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},Dt.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 m=this.string.slice(this.pos).match(n);return m&&m.index>0?null:(m&&i!==!1&&(this.pos+=m[0].length),m)}},Dt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Dt.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},Dt.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},Dt.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function We(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],m=u.chunkSize();if(i<m){a=u;break}i-=m}return a.lines[i]}function ii(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(m){var y=m.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function yl(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Qn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function A(n){if(n.parent==null)return null;for(var i=n.parent,a=ue(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function q(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],m=u.height;if(i<m){n=u;continue e}i-=m,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 ye(n,i){return i>=n.first&&i<n.first+n.size}function _e(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function de(n,i,a){if(a===void 0&&(a=null),!(this instanceof de))return new de(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ie(n,i){return n.line-i.line||n.ch-i.ch}function pt(n,i){return n.sticky==i.sticky&&Ie(n,i)==0}function Jt(n){return de(n.line,n.ch)}function _n(n,i){return Ie(n,i)<0?i:n}function ds(n,i){return Ie(n,i)<0?n:i}function eg(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function nt(n,i){if(i.line<n.first)return de(n.first,0);var a=n.first+n.size-1;return i.line>a?de(a,We(n,a).text.length):ik(i,We(n,i.line).text.length)}function ik(n,i){var a=n.ch;return a==null||a>i?de(n.line,i):a<0?de(n.line,0):n}function tg(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=nt(n,i[l]);return a}var ic=function(n,i){this.state=n,this.lookAhead=i},Wr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Wr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Wr.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}},Wr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Wr.fromSaved=function(n,i,a){return i instanceof ic?new Wr(n,jr(n.mode,i.state),a,i.lookAhead):new Wr(n,jr(n.mode,i),a)},Wr.prototype.save=function(n){var i=n!==!1?jr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ic(i,this.maxLookAhead):i};function ng(n,i,a,l){var u=[n.state.modeGen],m={};ag(n,i.text,n.doc.mode,a,function(_,B){return u.push(_,B)},m,l);for(var y=a.state,x=function(_){a.baseTokens=u;var B=n.state.overlays[_],U=1,se=0;a.state=!0,ag(n,i.text,B.mode,a,function(te,ge){for(var we=U;se<te;){var Te=u[U];Te>te&&u.splice(U,1,te,u[U+1],Te),U+=2,se=Math.min(te,Te)}if(ge)if(B.opaque)u.splice(we,U-we,te,"overlay "+ge),U=we+2;else for(;we<U;we+=2){var Oe=u[we+1];u[we+1]=(Oe?Oe+" ":"")+"overlay "+ge}},m),a.state=y,a.baseTokens=null,a.baseTokenPos=1},S=0;S<n.state.overlays.length;++S)x(S);return{styles:u,classes:m.bgClass||m.textClass?m:null}}function rg(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=bl(n,A(i)),u=i.text.length>n.options.maxHighlightLength&&jr(n.doc.mode,l.state),m=ng(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=m.styles,m.classes?i.styleClasses=m.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 bl(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Wr(l,!0,i);var m=ok(n,i,a),y=m>l.first&&We(l,m-1).stateAfter,x=y?Wr.fromSaved(l,y,m):new Wr(l,fs(l.mode),m);return l.iter(m,i,function(S){Cf(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 Cf(n,i,a,l){var u=n.doc.mode,m=new Dt(i,n.options.tabSize,a);for(m.start=m.pos=l||0,i==""&&ig(u,a.state);!m.eol();)Ef(u,m,a.state),m.start=m.pos}function ig(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=vl(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]=vl(n,a).mode);var m=n.token(i,a);if(i.pos>i.start)return m}throw new Error("Mode "+n.name+" failed to advance stream.")}var og=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function sg(n,i,a,l){var u=n.doc,m=u.mode,y;i=nt(u,i);var x=We(u,i.line),S=bl(n,i.line,a),_=new Dt(x.text,n.options.tabSize,S),B;for(l&&(B=[]);(l||_.pos<i.ch)&&!_.eol();)_.start=_.pos,y=Ef(m,_,S.state),l&&B.push(new og(_,y,jr(u.mode,S.state)));return l?B:new og(_,y,S.state)}function lg(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 ag(n,i,a,l,u,m,y){var x=a.flattenSpans;x==null&&(x=n.options.flattenSpans);var S=0,_=null,B=new Dt(i,n.options.tabSize,l),U,se=n.options.addModeClass&&[null];for(i==""&&lg(ig(a,l.state),m);!B.eol();){if(B.pos>n.options.maxHighlightLength?(x=!1,y&&Cf(n,i,l,B.pos),B.pos=i.length,U=null):U=lg(Ef(a,B,l.state,se),m),se){var te=se[0].name;te&&(U="m-"+(U?te+" "+U:te))}if(!x||_!=U){for(;S<B.start;)S=Math.min(B.start,S+5e3),u(S,_);_=U}B.start=B.pos}for(;S<B.pos;){var ge=Math.min(B.pos,S+5e3);u(ge,_),S=ge}}function ok(n,i,a){for(var l,u,m=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),x=i;x>y;--x){if(x<=m.first)return m.first;var S=We(m,x-1),_=S.stateAfter;if(_&&(!a||x+(_ instanceof ic?_.lookAhead:0)<=m.modeFrontier))return x;var B=re(S.text,null,n.options.tabSize);(u==null||l>B)&&(u=x-1,l=B)}return u}function sk(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=We(n,l).stateAfter;if(u&&(!(u instanceof ic)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var cg=!1,oi=!1;function lk(){cg=!0}function ak(){oi=!0}function oc(n,i,a){this.marker=n,this.from=i,this.to=a}function wl(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function ck(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function uk(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 fk(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var m=n[u],y=m.marker,x=m.from==null||(y.inclusiveLeft?m.from<=i:m.from<i);if(x||m.from==i&&y.type=="bookmark"&&(!a||!m.marker.insertLeft)){var S=m.to==null||(y.inclusiveRight?m.to>=i:m.to>i);(l||(l=[])).push(new oc(y,m.from,S?null:m.to))}}return l}function dk(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var m=n[u],y=m.marker,x=m.to==null||(y.inclusiveRight?m.to>=i:m.to>i);if(x||m.from==i&&y.type=="bookmark"&&(!a||m.marker.insertLeft)){var S=m.from==null||(y.inclusiveLeft?m.from<=i:m.from<i);(l||(l=[])).push(new oc(y,S?null:m.from-i,m.to==null?null:m.to-i))}}return l}function Af(n,i){if(i.full)return null;var a=ye(n,i.from.line)&&We(n,i.from.line).markedSpans,l=ye(n,i.to.line)&&We(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,m=i.to.ch,y=Ie(i.from,i.to)==0,x=fk(a,u,y),S=dk(l,m,y),_=i.text.length==1,B=ke(i.text).length+(_?u:0);if(x)for(var U=0;U<x.length;++U){var se=x[U];if(se.to==null){var te=wl(S,se.marker);te?_&&(se.to=te.to==null?null:te.to+B):se.to=u}}if(S)for(var ge=0;ge<S.length;++ge){var we=S[ge];if(we.to!=null&&(we.to+=B),we.from==null){var Te=wl(x,we.marker);Te||(we.from=B,_&&(x||(x=[])).push(we))}else we.from+=B,_&&(x||(x=[])).push(we)}x&&(x=ug(x)),S&&S!=x&&(S=ug(S));var Oe=[x];if(!_){var De=i.text.length-2,Pe;if(De>0&&x)for(var ze=0;ze<x.length;++ze)x[ze].to==null&&(Pe||(Pe=[])).push(new oc(x[ze].marker,null,null));for(var Ze=0;Ze<De;++Ze)Oe.push(Pe);Oe.push(S)}return Oe}function ug(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 hk(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(te){if(te.markedSpans)for(var ge=0;ge<te.markedSpans.length;++ge){var we=te.markedSpans[ge].marker;we.readOnly&&(!l||ue(l,we)==-1)&&(l||(l=[])).push(we)}}),!l)return null;for(var u=[{from:i,to:a}],m=0;m<l.length;++m)for(var y=l[m],x=y.find(0),S=0;S<u.length;++S){var _=u[S];if(!(Ie(_.to,x.from)<0||Ie(_.from,x.to)>0)){var B=[S,1],U=Ie(_.from,x.from),se=Ie(_.to,x.to);(U<0||!y.inclusiveLeft&&!U)&&B.push({from:_.from,to:x.from}),(se>0||!y.inclusiveRight&&!se)&&B.push({from:x.to,to:_.to}),u.splice.apply(u,B),S+=B.length-3}}return u}function fg(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function dg(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function sc(n){return n.inclusiveLeft?-1:0}function lc(n){return n.inclusiveRight?1:0}function Lf(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),m=Ie(l.from,u.from)||sc(n)-sc(i);if(m)return-m;var y=Ie(l.to,u.to)||lc(n)-lc(i);return y||i.id-n.id}function hg(n,i){var a=oi&&n.markedSpans,l;if(a)for(var u=void 0,m=0;m<a.length;++m)u=a[m],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||Lf(l,u.marker)<0)&&(l=u.marker);return l}function pg(n){return hg(n,!0)}function ac(n){return hg(n,!1)}function pk(n,i){var a=oi&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var m=a[u];m.marker.collapsed&&(m.from==null||m.from<i)&&(m.to==null||m.to>i)&&(!l||Lf(l,m.marker)<0)&&(l=m.marker)}return l}function gg(n,i,a,l,u){var m=We(n,i),y=oi&&m.markedSpans;if(y)for(var x=0;x<y.length;++x){var S=y[x];if(S.marker.collapsed){var _=S.marker.find(0),B=Ie(_.from,a)||sc(S.marker)-sc(u),U=Ie(_.to,l)||lc(S.marker)-lc(u);if(!(B>=0&&U<=0||B<=0&&U>=0)&&(B<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ie(_.to,a)>=0:Ie(_.to,a)>0)||B>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ie(_.from,l)<=0:Ie(_.from,l)<0)))return!0}}}function Sr(n){for(var i;i=pg(n);)n=i.find(-1,!0).line;return n}function gk(n){for(var i;i=ac(n);)n=i.find(1,!0).line;return n}function mk(n){for(var i,a;i=ac(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Mf(n,i){var a=We(n,i),l=Sr(a);return a==l?i:A(l)}function mg(n,i){if(i>n.lastLine())return i;var a=We(n,i),l;if(!Fi(n,a))return i;for(;l=ac(a);)a=l.find(1,!0).line;return A(a)+1}function Fi(n,i){var a=oi&&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&&Nf(n,i,l))return!0}}}function Nf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Nf(n,l.line,wl(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,m=0;m<i.markedSpans.length;++m)if(u=i.markedSpans[m],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&Nf(n,i,u))return!0}function si(n){n=Sr(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 m=a.parent;m;a=m,m=a.parent)for(var y=0;y<m.children.length;++y){var x=m.children[y];if(x==a)break;i+=x.height}return i}function cc(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=pg(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=ac(l);){var m=a.find(0,!0);i-=l.text.length-m.from.ch,l=m.to.line,i+=l.text.length-m.to.ch}return i}function Of(n){var i=n.display,a=n.doc;i.maxLine=We(a,a.first),i.maxLineLength=cc(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=cc(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var hs=function(n,i,a){this.text=n,dg(this,i),this.height=a?a(this):1};hs.prototype.lineNo=function(){return A(this)},yr(hs);function vk(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),fg(n),dg(n,a);var u=l?l(n):1;u!=n.height&&Qn(n,u)}function yk(n){n.parent=null,fg(n)}var bk={},wk={};function vg(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?wk:bk;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function yg(n,i){var a=F("span",null,null,g?"padding-right: .1px":null),l={pre:F("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 m=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=kk,Ii(n.display.measure)&&(y=at(m,n.doc.direction))&&(l.addToken=_k(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&A(m);Tk(m,l,rg(n,m,x)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=je(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=je(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(nc(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(g){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 $t(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=je(l.pre.className,l.textClass||"")),l}function xk(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function kk(n,i,a,l,u,m,y){if(i){var x=n.splitSpaces?Sk(i,n.trailingSpace):i,S=n.cm.state.specialChars,_=!1,B;if(!S.test(i))n.col+=i.length,B=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,B),h&&p<9&&(_=!0),n.pos+=i.length;else{B=document.createDocumentFragment();for(var U=0;;){S.lastIndex=U;var se=S.exec(i),te=se?se.index-U:i.length-U;if(te){var ge=document.createTextNode(x.slice(U,U+te));h&&p<9?B.appendChild(k("span",[ge])):B.appendChild(ge),n.map.push(n.pos,n.pos+te,ge),n.col+=te,n.pos+=te}if(!se)break;U+=te+1;var we=void 0;if(se[0]==" "){var Te=n.cm.options.tabSize,Oe=Te-n.col%Te;we=B.appendChild(k("span",Ee(Oe),"cm-tab")),we.setAttribute("role","presentation"),we.setAttribute("cm-text"," "),n.col+=Oe}else se[0]=="\r"||se[0]==`
|
|
25
|
-
`?(we=B.appendChild(k("span",se[0]=="\r"?"␍":"","cm-invalidchar")),we.setAttribute("cm-text",se[0]),n.col+=1):(we=n.cm.options.specialCharPlaceholder(se[0]),we.setAttribute("cm-text",se[0]),h&&p<9?B.appendChild(k("span",[we])):B.appendChild(we),n.col+=1);n.map.push(n.pos,n.pos+1,we),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||_||m||y){var De=a||"";l&&(De+=l),u&&(De+=u);var Pe=k("span",[B],De,m);if(y)for(var ze in y)y.hasOwnProperty(ze)&&ze!="style"&&ze!="class"&&Pe.setAttribute(ze,y[ze]);return n.content.appendChild(Pe)}n.content.appendChild(B)}}function Sk(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var m=n.charAt(u);m==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(m=" "),l+=m,a=m==" "}return l}function _k(n,i){return function(a,l,u,m,y,x,S){u=u?u+" cm-force-border":"cm-force-border";for(var _=a.pos,B=_+l.length;;){for(var U=void 0,se=0;se<i.length&&(U=i[se],!(U.to>_&&U.from<=_));se++);if(U.to>=B)return n(a,l,u,m,y,x,S);n(a,l.slice(0,U.to-_),u,m,null,x,S),m=null,l=l.slice(U.to-_),_=U.to}}}function bg(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 Tk(n,i,a){var l=n.markedSpans,u=n.text,m=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(m,m=a[y]),vg(a[y+1],i.cm.options));return}for(var x=u.length,S=0,_=1,B="",U,se,te=0,ge,we,Te,Oe,De;;){if(te==S){ge=we=Te=se="",De=null,Oe=null,te=1/0;for(var Pe=[],ze=void 0,Ze=0;Ze<l.length;++Ze){var Ge=l[Ze],lt=Ge.marker;if(lt.type=="bookmark"&&Ge.from==S&<.widgetNode)Pe.push(lt);else if(Ge.from<=S&&(Ge.to==null||Ge.to>S||lt.collapsed&&Ge.to==S&&Ge.from==S)){if(Ge.to!=null&&Ge.to!=S&&te>Ge.to&&(te=Ge.to,we=""),lt.className&&(ge+=" "+lt.className),lt.css&&(se=(se?se+";":"")+lt.css),lt.startStyle&&Ge.from==S&&(Te+=" "+lt.startStyle),lt.endStyle&&Ge.to==te&&(ze||(ze=[])).push(lt.endStyle,Ge.to),lt.title&&((De||(De={})).title=lt.title),lt.attributes)for(var _t in lt.attributes)(De||(De={}))[_t]=lt.attributes[_t];lt.collapsed&&(!Oe||Lf(Oe.marker,lt)<0)&&(Oe=Ge)}else Ge.from>S&&te>Ge.from&&(te=Ge.from)}if(ze)for(var nn=0;nn<ze.length;nn+=2)ze[nn+1]==te&&(we+=" "+ze[nn]);if(!Oe||Oe.from==S)for(var Pt=0;Pt<Pe.length;++Pt)bg(i,0,Pe[Pt]);if(Oe&&(Oe.from||0)==S){if(bg(i,(Oe.to==null?x+1:Oe.to)-S,Oe.marker,Oe.from==null),Oe.to==null)return;Oe.to==S&&(Oe=!1)}}if(S>=x)break;for(var qn=Math.min(x,te);;){if(B){var En=S+B.length;if(!Oe){var Ut=En>qn?B.slice(0,qn-S):B;i.addToken(i,Ut,U?U+ge:ge,Te,S+Ut.length==te?we:"",se,De)}if(En>=qn){B=B.slice(qn-S),S=qn;break}S=En,Te=""}B=u.slice(m,m=a[_++]),U=vg(a[_++],i.cm.options)}}}function wg(n,i,a){this.line=i,this.rest=mk(i),this.size=this.rest?A(ke(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Fi(n,i)}function uc(n,i,a){for(var l=[],u,m=i;m<a;m=u){var y=new wg(n.doc,We(n.doc,m),m);u=m+y.size,l.push(y)}return l}var ps=null;function Ck(n){ps?ps.ops.push(n):n.ownsGroup=ps={ops:[n],delayedCallbacks:[]}}function Ek(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 Ak(n,i){var a=n.ownsGroup;if(a)try{Ek(a)}finally{ps=null,i(a)}}var xl=null;function Qt(n,i){var a=ri(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;ps?u=ps.delayedCallbacks:xl?u=xl:(u=xl=[],setTimeout(Lk,0));for(var m=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)m(y)}}function Lk(){var n=xl;xl=null;for(var i=0;i<n.length;++i)n[i]()}function xg(n,i,a,l){for(var u=0;u<i.changes.length;u++){var m=i.changes[u];m=="text"?Nk(n,i):m=="gutter"?Sg(n,i,a,l):m=="class"?Pf(n,i):m=="widget"&&Ok(n,i,l)}i.changes=null}function kl(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 Mk(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=kl(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function kg(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):yg(n,i)}function Nk(n,i){var a=i.text.className,l=kg(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,Pf(n,i)):a&&(i.text.className=a)}function Pf(n,i){Mk(n,i),i.line.wrapClass?kl(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function Sg(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var u=kl(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 m=i.line.gutterMarkers;if(n.options.lineNumbers||m){var y=kl(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&&(!m||!m["CodeMirror-linenumbers"])&&(i.lineNumber=x.appendChild(k("div",_e(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),m)for(var S=0;S<n.display.gutterSpecs.length;++S){var _=n.display.gutterSpecs[S].className,B=m.hasOwnProperty(_)&&m[_];B&&x.appendChild(k("div",[B],"CodeMirror-gutter-elt","left: "+l.gutterLeft[_]+"px; width: "+l.gutterWidth[_]+"px"))}}}function Ok(n,i,a){i.alignable&&(i.alignable=null);for(var l=j("CodeMirror-linewidget"),u=i.node.firstChild,m=void 0;u;u=m)m=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);_g(n,i,a)}function Pk(n,i,a,l){var u=kg(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),Pf(n,i),Sg(n,i,a,l),_g(n,i,l),i.node}function _g(n,i,a){if(Tg(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Tg(n,i.rest[l],i,a,!1)}function Tg(n,i,a,l,u){if(i.widgets)for(var m=kl(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"),Rk(S,_,a,l),n.display.input.setUneditable(_),u&&S.above?m.insertBefore(_,a.gutter||a.text):m.appendChild(_),Qt(S,"redraw")}}function Rk(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Sl(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!ae(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;"),C(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function li(n,i){for(var a=gl(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 fc(n){return n.lineSpace.offsetTop}function Rf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Cg(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=C(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 qr(n){return z-n.display.nativeBarWidth}function Eo(n){return n.display.scroller.clientWidth-qr(n)-n.display.barWidth}function $f(n){return n.display.scroller.clientHeight-qr(n)-n.display.barHeight}function $k(n,i,a){var l=n.options.lineWrapping,u=l&&Eo(n);if(!i.measure.heights||l&&i.measure.width!=u){var m=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&&m.push((S.bottom+_.top)/2-a.top)}}m.push(a.bottom-a.top)}}function Eg(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(A(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function Ik(n,i){i=Sr(i);var a=A(i),l=n.display.externalMeasured=new wg(n.doc,i,a);l.lineN=a;var u=l.built=yg(n,l);return l.text=u.pre,C(n.display.lineMeasure,u.pre),l}function Ag(n,i,a,l){return Ur(n,gs(n,i),a,l)}function If(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[Mo(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function gs(n,i){var a=A(i),l=If(n,a);l&&!l.text?l=null:l&&l.changes&&(xg(n,l,a,Bf(n)),n.curOp.forceUpdate=!0),l||(l=Ik(n,i));var u=Eg(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Ur(n,i,a,l,u){i.before&&(a=-1);var m=a+(l||""),y;return i.cache.hasOwnProperty(m)?y=i.cache[m]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||($k(n,i.view,i.rect),i.hasHeights=!0),y=zk(n,i,a,l),y.bogus||(i.cache[m]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var Lg={left:0,right:0,top:0,bottom:0};function Mg(n,i,a){for(var l,u,m,y,x,S,_=0;_<n.length;_+=3)if(x=n[_],S=n[_+1],i<x?(u=0,m=1,y="left"):i<S?(u=i-x,m=u+1):(_==n.length-3||i==S&&n[_+3]>i)&&(m=S-x,u=m-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:m,collapse:y,coverStart:x,coverEnd:S}}function Dk(n,i){var a=Lg;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 zk(n,i,a,l){var u=Mg(i.map,a,l),m=u.node,y=u.start,x=u.end,S=u.collapse,_;if(m.nodeType==3){for(var B=0;B<4;B++){for(;y&&ut(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x<u.coverEnd&&ut(i.line.text.charAt(u.coverStart+x));)++x;if(h&&p<9&&y==0&&x==u.coverEnd-u.coverStart?_=m.parentNode.getBoundingClientRect():_=Dk($(m,y,x).getClientRects(),l),_.left||_.right||y==0)break;x=y,y=y-1,S="right"}h&&p<11&&(_=Fk(n.display.measure,_))}else{y>0&&(S=l="right");var U;n.options.lineWrapping&&(U=m.getClientRects()).length>1?_=U[l=="right"?U.length-1:0]:_=m.getBoundingClientRect()}if(h&&p<9&&!y&&(!_||!_.left&&!_.right)){var se=m.parentNode.getClientRects()[0];se?_={left:se.left,right:se.left+vs(n.display),top:se.top,bottom:se.bottom}:_=Lg}for(var te=_.top-i.rect.top,ge=_.bottom-i.rect.top,we=(te+ge)/2,Te=i.view.measure.heights,Oe=0;Oe<Te.length-1&&!(we<Te[Oe]);Oe++);var De=Oe?Te[Oe-1]:0,Pe=Te[Oe],ze={left:(S=="right"?_.right:_.left)-i.rect.left,right:(S=="left"?_.left:_.right)-i.rect.left,top:De,bottom:Pe};return!_.left&&!_.right&&(ze.bogus=!0),n.options.singleCursorHeightPerLine||(ze.rtop=te,ze.rbottom=ge),ze}function Fk(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Tf(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*l,bottom:i.bottom*l}}function Ng(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var i=0;i<n.rest.length;i++)n.measure.caches[i]={}}function Og(n){n.display.externalMeasure=null,N(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Ng(n.display.view[i])}function _l(n){Og(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Pg(n){return b&&I?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Rg(n){return b&&I?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function Df(n){var i=Sr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=Sl(a[u]));return l}function dc(n,i,a,l,u){if(!u){var m=Df(i);a.top+=m,a.bottom+=m}if(l=="line")return a;l||(l="local");var y=si(i);if(l=="local"?y+=fc(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:Rg(Ke(n)));var S=x.left+(l=="window"?0:Pg(Ke(n)));a.left+=S,a.right+=S}return a.top+=y,a.bottom+=y,a}function $g(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Pg(Ke(n)),u-=Rg(Ke(n));else if(a=="local"||!a){var m=n.display.sizer.getBoundingClientRect();l+=m.left,u+=m.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function hc(n,i,a,l,u){return l||(l=We(n.doc,i.line)),dc(n,l,Ag(n,l,i.ch,u),a)}function _r(n,i,a,l,u,m){l=l||We(n.doc,i.line),u||(u=gs(n,l));function y(ge,we){var Te=Ur(n,u,ge,we?"right":"left",m);return we?Te.left=Te.right:Te.right=Te.left,dc(n,l,Te,a)}var x=at(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 B(ge,we,Te){var Oe=x[we],De=Oe.level==1;return y(Te?ge-1:ge,De!=Te)}var U=Bt(x,S,_),se=Br,te=B(S,U,_=="before");return se!=null&&(te.other=B(S,se,_!="before")),te}function Ig(n,i){var a=0;i=nt(n.doc,i),n.options.lineWrapping||(a=vs(n.display)*i.ch);var l=We(n.doc,i.line),u=si(l)+fc(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function zf(n,i,a,l,u){var m=de(n,i,a);return m.xRel=u,l&&(m.outside=l),m}function Ff(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return zf(l.first,0,null,-1,-1);var u=q(l,a),m=l.first+l.size-1;if(u>m)return zf(l.first+l.size-1,We(l,m).text.length,null,1,1);i<0&&(i=0);for(var y=We(l,u);;){var x=Hk(n,y,u,i,a),S=pk(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!S)return x;var _=S.find(1);if(_.line==u)return _;y=We(l,u=_.line)}}function Dg(n,i,a,l){l-=Df(i);var u=i.text.length,m=qt(function(y){return Ur(n,a,y-1).bottom<=l},u,0);return u=qt(function(y){return Ur(n,a,y).top>l},m,u),{begin:m,end:u}}function zg(n,i,a,l){a||(a=gs(n,i));var u=dc(n,i,Ur(n,a,l),"line").top;return Dg(n,i,a,u)}function Hf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function Hk(n,i,a,l,u){u-=si(i);var m=gs(n,i),y=Df(i),x=0,S=i.text.length,_=!0,B=at(i,n.doc.direction);if(B){var U=(n.options.lineWrapping?jk:Bk)(n,i,a,m,B,l,u);_=U.level!=1,x=_?U.from:U.to-1,S=_?U.to:U.from-1}var se=null,te=null,ge=qt(function(Ze){var Ge=Ur(n,m,Ze);return Ge.top+=y,Ge.bottom+=y,Hf(Ge,l,u,!1)?(Ge.top<=u&&Ge.left<=l&&(se=Ze,te=Ge),!0):!1},x,S),we,Te,Oe=!1;if(te){var De=l-te.left<te.right-l,Pe=De==_;ge=se+(Pe?0:1),Te=Pe?"after":"before",we=De?te.left:te.right}else{!_&&(ge==S||ge==x)&&ge++,Te=ge==0?"after":ge==i.text.length?"before":Ur(n,m,ge-(_?1:0)).bottom+y<=u==_?"after":"before";var ze=_r(n,de(a,ge,Te),"line",i,m);we=ze.left,Oe=u<ze.top?-1:u>=ze.bottom?1:0}return ge=Zt(i.text,ge,1),zf(a,ge,Te,Oe,l-we)}function Bk(n,i,a,l,u,m,y){var x=qt(function(U){var se=u[U],te=se.level!=1;return Hf(_r(n,de(a,te?se.to:se.from,te?"before":"after"),"line",i,l),m,y,!0)},0,u.length-1),S=u[x];if(x>0){var _=S.level!=1,B=_r(n,de(a,_?S.from:S.to,_?"after":"before"),"line",i,l);Hf(B,m,y,!0)&&B.top>y&&(S=u[x-1])}return S}function jk(n,i,a,l,u,m,y){var x=Dg(n,i,l,y),S=x.begin,_=x.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var B=null,U=null,se=0;se<u.length;se++){var te=u[se];if(!(te.from>=_||te.to<=S)){var ge=te.level!=1,we=Ur(n,l,ge?Math.min(_,te.to)-1:Math.max(S,te.from)).right,Te=we<m?m-we+1e9:we-m;(!B||U>Te)&&(B=te,U=Te)}}return B||(B=u[u.length-1]),B.from<S&&(B={from:S,to:B.to,level:B.level}),B.to>_&&(B={from:B.from,to:_,level:B.level}),B}var Ao;function ms(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"))}C(n.measure,Ao);var a=Ao.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),N(n.measure),a||1}function vs(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");C(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function Bf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,m=i.gutters.firstChild,y=0;m;m=m.nextSibling,++y){var x=n.display.gutterSpecs[y].className;a[x]=m.offsetLeft+m.clientLeft+u,l[x]=m.clientWidth}return{fixedPos:jf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function jf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Fg(n){var i=ms(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/vs(n.display)-3);return function(u){if(Fi(n.doc,u))return 0;var m=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(m+=u.widgets[y].height);return a?m+(Math.ceil(u.text.length/l)||1)*i:m+i}}function Wf(n){var i=n.doc,a=Fg(n);i.iter(function(l){var u=a(l);u!=l.height&&Qn(l,u)})}function Lo(n,i,a,l){var u=n.display;if(!a&&gl(i).getAttribute("cm-not-content")=="true")return null;var m,y,x=u.lineSpace.getBoundingClientRect();try{m=i.clientX-x.left,y=i.clientY-x.top}catch{return null}var S=Ff(n,m,y),_;if(l&&S.xRel>0&&(_=We(n.doc,S.line).text).length==S.ch){var B=re(_,_.length,n.options.tabSize)-_.length;S=de(S.line,Math.max(0,Math.round((m-Cg(n.display).left)/vs(n.display))-B))}return S}function Mo(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function Tn(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)oi&&Mf(n.doc,i)<u.viewTo&&Bi(n);else if(a<=u.viewFrom)oi&&mg(n.doc,a+l)>u.viewFrom?Bi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)Bi(n);else if(i<=u.viewFrom){var m=pc(n,a,a+l,1);m?(u.view=u.view.slice(m.index),u.viewFrom=m.lineN,u.viewTo+=l):Bi(n)}else if(a>=u.viewTo){var y=pc(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):Bi(n)}else{var x=pc(n,i,i,-1),S=pc(n,a,a+l,1);x&&S?(u.view=u.view.slice(0,x.index).concat(uc(n,x.lineN,S.lineN)).concat(u.view.slice(S.index)),u.viewTo+=l):Bi(n)}var _=u.externalMeasured;_&&(a<_.lineN?_.lineN+=l:i<_.lineN+_.size&&(u.externalMeasured=null))}function Hi(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 m=l.view[Mo(n,i)];if(m.node!=null){var y=m.changes||(m.changes=[]);ue(y,a)==-1&&y.push(a)}}}function Bi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function pc(n,i,a,l){var u=Mo(n,i),m,y=n.display.view;if(!oi||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;m=x+y[u].size-i,u++}else m=x-i;i+=m,a+=m}for(;Mf(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 Wk(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=uc(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=uc(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Mo(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(uc(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,Mo(n,a)))),l.viewTo=a}function Hg(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 Tl(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Bg(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),m=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 B=y(n,S);B&&qf(n,B,u)}else(_||n.options.showCursorWhenSelecting)&&qf(n,S.head,u);_||qk(n,S,m)}}return l}function qf(n,i,a){var l=_r(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 m=hc(n,i,"div",null,null),y=m.right-m.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 gc(n,i){return n.top-i.top||n.left-i.left}function qk(n,i,a){var l=n.display,u=n.doc,m=document.createDocumentFragment(),y=Cg(n.display),x=y.left,S=Math.max(l.sizerWidth,Eo(n)-l.sizer.offsetLeft)-y.right,_=u.direction=="ltr";function B(Pe,ze,Ze,Ge){ze<0&&(ze=0),ze=Math.round(ze),Ge=Math.round(Ge),m.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+Pe+`px;
|
|
26
|
-
top: `+ze+"px; width: "+(Ze??S-Pe)+`px;
|
|
27
|
-
height: `+(Ge-ze)+"px"))}function U(Pe,ze,Ze){var Ge=We(u,Pe),lt=Ge.text.length,_t,nn;function Pt(Ut,An){return hc(n,de(Pe,Ut),"div",Ge,An)}function qn(Ut,An,ln){var Xt=zg(n,Ge,null,Ut),Vt=An=="ltr"==(ln=="after")?"left":"right",zt=ln=="after"?Xt.begin:Xt.end-(/\s/.test(Ge.text.charAt(Xt.end-1))?2:1);return Pt(zt,Vt)[Vt]}var En=at(Ge,u.direction);return Hn(En,ze||0,Ze??lt,function(Ut,An,ln,Xt){var Vt=ln=="ltr",zt=Pt(Ut,Vt?"left":"right"),Ln=Pt(An-1,Vt?"right":"left"),Ms=ze==null&&Ut==0,Gi=Ze==null&&An==lt,dn=Xt==0,Vr=!En||Xt==En.length-1;if(Ln.top-zt.top<=3){var rn=(_?Ms:Gi)&&dn,vd=(_?Gi:Ms)&&Vr,ui=rn?x:(Vt?zt:Ln).left,$o=vd?S:(Vt?Ln:zt).right;B(ui,zt.top,$o-ui,zt.bottom)}else{var Io,bn,Ns,yd;Vt?(Io=_&&Ms&&dn?x:zt.left,bn=_?S:qn(Ut,ln,"before"),Ns=_?x:qn(An,ln,"after"),yd=_&&Gi&&Vr?S:Ln.right):(Io=_?qn(Ut,ln,"before"):x,bn=!_&&Ms&&dn?S:zt.right,Ns=!_&&Gi&&Vr?x:Ln.left,yd=_?qn(An,ln,"after"):S),B(Io,zt.top,bn-Io,zt.bottom),zt.bottom<Ln.top&&B(x,zt.bottom,null,Ln.top),B(Ns,Ln.top,yd-Ns,Ln.bottom)}(!_t||gc(zt,_t)<0)&&(_t=zt),gc(Ln,_t)<0&&(_t=Ln),(!nn||gc(zt,nn)<0)&&(nn=zt),gc(Ln,nn)<0&&(nn=Ln)}),{start:_t,end:nn}}var se=i.from(),te=i.to();if(se.line==te.line)U(se.line,se.ch,te.ch);else{var ge=We(u,se.line),we=We(u,te.line),Te=Sr(ge)==Sr(we),Oe=U(se.line,se.ch,Te?ge.text.length+1:null).end,De=U(te.line,Te?0:null,te.ch).start;Te&&(Oe.top<De.top-2?(B(Oe.right,Oe.top,null,Oe.bottom),B(x,De.top,De.left,De.bottom)):B(Oe.right,Oe.top,De.left-Oe.right,Oe.bottom)),Oe.bottom<De.top&&B(x,Oe.bottom,null,De.top)}a.appendChild(m)}function Uf(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()||ys(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function jg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Gf(n))}function Vf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&ys(n))},100)}function Gf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||($t(n,"focus",n,i),n.state.focused=!0,Se(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),g&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),Uf(n))}function ys(n,i){n.state.delayingBlurEvent||(n.state.focused&&($t(n,"blur",n,i),n.state.focused=!1,O(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function mc(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,m=0,y=0;y<i.view.length;y++){var x=i.view[y],S=n.options.lineWrapping,_=void 0,B=0;if(!x.hidden){if(u+=x.line.height,h&&p<8){var U=x.node.offsetTop+x.node.offsetHeight;_=U-a,a=U}else{var se=x.node.getBoundingClientRect();_=se.bottom-se.top,!S&&x.text.firstChild&&(B=x.text.firstChild.getBoundingClientRect().right-se.left-1)}var te=x.line.height-_;if((te>.005||te<-.005)&&(u<l&&(m-=te),Qn(x.line,_),Wg(x.line),x.rest))for(var ge=0;ge<x.rest.length;ge++)Wg(x.rest[ge]);if(B>n.display.sizerWidth){var we=Math.ceil(B/vs(n.display));we>n.display.maxLineLength&&(n.display.maxLineLength=we,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(i.scroller.scrollTop+=m)}function Wg(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 vc(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-fc(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,m=q(i,l),y=q(i,u);if(a&&a.ensure){var x=a.ensure.from.line,S=a.ensure.to.line;x<m?(m=x,y=q(i,si(We(i,x))+n.wrapper.clientHeight)):Math.min(S,i.lastLine())>=y&&(m=q(i,si(We(i,S))-n.wrapper.clientHeight),y=S)}return{from:m,to:Math.max(y,m+1)}}function Uk(n,i){if(!It(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,m=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(u=!1),u!=null&&!M){var y=k("div","",null,`position: absolute;
|
|
28
|
-
top: `+(i.top-a.viewOffset-fc(n.display))+`px;
|
|
29
|
-
height: `+(i.bottom-i.top+qr(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 Vk(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?de(i.line,i.ch+1,"before"):i,i=i.ch?de(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var m=0;m<5;m++){var y=!1,x=_r(n,i),S=!a||a==i?x:_r(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 _=Kf(n,u),B=n.doc.scrollTop,U=n.doc.scrollLeft;if(_.scrollTop!=null&&(El(n,_.scrollTop),Math.abs(n.doc.scrollTop-B)>1&&(y=!0)),_.scrollLeft!=null&&(No(n,_.scrollLeft),Math.abs(n.doc.scrollLeft-U)>1&&(y=!0)),!y)break}return u}function Gk(n,i){var a=Kf(n,i);a.scrollTop!=null&&El(n,a.scrollTop),a.scrollLeft!=null&&No(n,a.scrollLeft)}function Kf(n,i){var a=n.display,l=ms(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,m=$f(n),y={};i.bottom-i.top>m&&(i.bottom=i.top+m);var x=n.doc.height+Rf(a),S=i.top<l,_=i.bottom>x-l;if(i.top<u)y.scrollTop=S?0:i.top;else if(i.bottom>u+m){var B=Math.min(i.top,(_?x:i.bottom)-m);B!=u&&(y.scrollTop=B)}var U=n.options.fixedGutter?0:a.gutters.offsetWidth,se=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-U,te=Eo(n)-a.gutters.offsetWidth,ge=i.right-i.left>te;return ge&&(i.right=i.left+te),i.left<10?y.scrollLeft=0:i.left<se?y.scrollLeft=Math.max(0,i.left+U-(ge?0:10)):i.right>te+se-3&&(y.scrollLeft=i.right+(ge?0:10)-te),y}function Xf(n,i){i!=null&&(yc(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function bs(n){yc(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function Cl(n,i,a){(i!=null||a!=null)&&yc(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Kk(n,i){yc(n),n.curOp.scrollToPos=i}function yc(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Ig(n,i.from),l=Ig(n,i.to);qg(n,a,l,i.margin)}}function qg(n,i,a,l){var u=Kf(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});Cl(n,u.scrollLeft,u.scrollTop)}function El(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||Zf(n,{top:i}),Ug(n,i,!0),s&&Zf(n),Ml(n,100))}function Ug(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 No(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,Yg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function Al(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+Rf(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+qr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var Oo=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Ye(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Ye(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Oo.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var m=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},Oo.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Oo.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Oo.prototype.zeroWidthHack=function(){var n=D&&!P?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},Oo.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),m=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);m!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},Oo.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var Ll=function(){};Ll.prototype.update=function(){return{bottom:0,right:0}},Ll.prototype.setScrollLeft=function(){},Ll.prototype.setScrollTop=function(){},Ll.prototype.clear=function(){};function ws(n,i){i||(i=Al(n));var a=n.display.barWidth,l=n.display.barHeight;Vg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&mc(n),Vg(n,Al(n)),a=n.display.barWidth,l=n.display.barHeight}function Vg(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 Gg={native:Oo,null:Ll};function Kg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&O(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new Gg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Ye(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?No(n,i):El(n,i)},n),n.display.scrollbars.addClass&&Se(n.display.wrapper,n.display.scrollbars.addClass)}var Xk=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:++Xk,markArrays:null},Ck(n.curOp)}function Ro(n){var i=n.curOp;i&&Ak(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Yk(a)})}function Yk(n){for(var i=n.ops,a=0;a<i.length;a++)Zk(i[a]);for(var l=0;l<i.length;l++)Jk(i[l]);for(var u=0;u<i.length;u++)Qk(i[u]);for(var m=0;m<i.length;m++)eS(i[m]);for(var y=0;y<i.length;y++)tS(i[y])}function Zk(n){var i=n.cm,a=i.display;rS(i),n.updateMaxLine&&Of(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 bc(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Jk(n){n.updatedDisplay=n.mustUpdate&&Yf(n.cm,n.update)}function Qk(n){var i=n.cm,a=i.display;n.updatedDisplay&&mc(i),n.barMeasure=Al(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Ag(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+qr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-Eo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function eS(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&No(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ce(qe(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&ws(i,n.barMeasure),n.updatedDisplay&&Qf(i,n.barMeasure),n.selectionChanged&&Uf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&jg(n.cm)}function tS(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&Xg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&Ug(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&No(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Vk(i,nt(l,n.scrollToPos.from),nt(l,n.scrollToPos.to),n.scrollToPos.margin);Uk(i,u)}var m=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(m)for(var x=0;x<m.length;++x)m[x].lines.length||$t(m[x],"hide");if(y)for(var S=0;S<y.length;++S)y[S].lines.length&&$t(y[S],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&$t(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Wn(n,i){if(n.curOp)return i();Po(n);try{return i()}finally{Ro(n)}}function en(n,i){return function(){if(n.curOp)return i.apply(n,arguments);Po(n);try{return i.apply(n,arguments)}finally{Ro(n)}}}function yn(n){return function(){if(this.curOp)return n.apply(this,arguments);Po(this);try{return n.apply(this,arguments)}finally{Ro(this)}}}function tn(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);Po(i);try{return n.apply(this,arguments)}finally{Ro(i)}}}function Ml(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,H(nS,n))}function nS(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=bl(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(m){if(l.line>=n.display.viewFrom){var y=m.styles,x=m.text.length>n.options.maxHighlightLength?jr(i.mode,l.state):null,S=ng(n,m,l,!0);x&&(l.state=x),m.styles=S.styles;var _=m.styleClasses,B=S.classes;B?m.styleClasses=B:_&&(m.styleClasses=null);for(var U=!y||y.length!=m.styles.length||_!=B&&(!_||!B||_.bgClass!=B.bgClass||_.textClass!=B.textClass),se=0;!U&&se<y.length;++se)U=y[se]!=m.styles[se];U&&u.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=n.options.maxHighlightLength&&Cf(n,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return Ml(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Wn(n,function(){for(var m=0;m<u.length;m++)Hi(n,u[m],"text")})}}var bc=function(n,i,a){var l=n.display;this.viewport=i,this.visible=vc(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Eo(n),this.force=a,this.dims=Bf(n),this.events=[]};bc.prototype.signal=function(n,i){jn(n,i)&&this.events.push(arguments)},bc.prototype.finish=function(){for(var n=0;n<this.events.length;n++)$t.apply(null,this.events[n])};function rS(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=qr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=qr(n)+"px",i.scrollbarsClipped=!0)}function iS(n){if(n.hasFocus())return null;var i=ce(qe(n));if(!i||!ae(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Re(n).getSelection();l.anchorNode&&l.extend&&ae(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function oS(n){if(!(!n||!n.activeElt||n.activeElt==ce(Fe(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&ae(document.body,n.anchorNode)&&ae(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 Yf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return Bi(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&&Hg(n)==0)return!1;Zg(n)&&(Bi(n),i.dims=Bf(n));var u=l.first+l.size,m=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<m&&m-a.viewFrom<20&&(m=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),oi&&(m=Mf(n.doc,m),y=mg(n.doc,y));var x=m!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;Wk(n,m,y),a.viewOffset=si(We(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=Hg(n);if(!x&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var _=iS(n);return S>4&&(a.lineDiv.style.display="none"),sS(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,oS(_),N(a.cursorDiv),N(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,Ml(n,400)),a.updateLineNumbers=null,!0}function Xg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==Eo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+Rf(n.display)-$f(n),a.top)}),i.visible=vc(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=vc(n.display,n.doc,a));if(!Yf(n,i))break;mc(n);var u=Al(n);Tl(n),ws(n,u),Qf(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 Zf(n,i){var a=new bc(n,i);if(Yf(n,a)){mc(n),Xg(n,a);var l=Al(n);Tl(n),ws(n,l),Qf(n,l),a.finish()}}function sS(n,i,a){var l=n.display,u=n.options.lineNumbers,m=l.lineDiv,y=m.firstChild;function x(ge){var we=ge.nextSibling;return g&&D&&n.display.currentWheelTarget==ge?ge.style.display="none":ge.parentNode.removeChild(ge),we}for(var S=l.view,_=l.viewFrom,B=0;B<S.length;B++){var U=S[B];if(!U.hidden)if(!U.node||U.node.parentNode!=m){var se=Pk(n,U,_,a);m.insertBefore(se,y)}else{for(;y!=U.node;)y=x(y);var te=u&&i!=null&&i<=_&&U.lineNumber;U.changes&&(ue(U.changes,"gutter")>-1&&(te=!1),xg(n,U,_,a)),te&&(N(U.lineNumber),U.lineNumber.appendChild(document.createTextNode(_e(n.options,_)))),y=U.node.nextSibling}_+=U.size}for(;y;)y=x(y)}function Jf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Qt(n,"gutterChanged",n)}function Qf(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+qr(n)+"px"}function Yg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=jf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,m=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=m),a[y].gutterBackground&&(a[y].gutterBackground.style.left=m));var x=a[y].alignable;if(x)for(var S=0;S<x.length;S++)x[S].style.left=m}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function Zg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=_e(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")),m=u.firstChild.offsetWidth,y=u.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Jf(n.display),!0}return!1}function ed(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var m=n[u],y=null;if(typeof m!="string"&&(y=m.style,m=m.className),m=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:m,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function Jg(n){var i=n.gutters,a=n.gutterSpecs;N(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],m=u.className,y=u.style,x=i.appendChild(k("div",null,"CodeMirror-gutter "+m));y&&(x.style.cssText=y),m=="CodeMirror-linenumbers"&&(n.lineGutter=x,x.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",Jf(n)}function Nl(n){Jg(n.display),Tn(n),Yg(n)}function lS(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=F("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=F("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var m=F("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[m],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+z+"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),!g&&!(s&&E)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=ed(l.gutters,l.lineNumbers),Jg(u),a.init(u)}var wc=0,ai=null;h?ai=-.53:s?ai=15:b?ai=-.7:L&&(ai=-1/3);function Qg(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 aS(n){var i=Qg(n);return i.x*=ai,i.y*=ai,i}function em(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=Qg(i),l=a.x,u=a.y,m=ai;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,m=1);var y=n.display,x=y.scroller,S=x.scrollWidth>x.clientWidth,_=x.scrollHeight>x.clientHeight;if(l&&S||u&&_){if(u&&D&&g){e:for(var B=i.target,U=y.view;B!=x;B=B.parentNode)for(var se=0;se<U.length;se++)if(U[se].node==B){n.display.currentWheelTarget=B;break e}}if(l&&!s&&!T&&m!=null){u&&_&&El(n,Math.max(0,x.scrollTop+u*m)),No(n,Math.max(0,x.scrollLeft+l*m)),(!u||u&&_)&&un(i),y.wheelStartX=null;return}if(u&&m!=null){var te=u*m,ge=n.doc.scrollTop,we=ge+y.wrapper.clientHeight;te<0?ge=Math.max(0,ge+te-50):we=Math.min(n.doc.height,we+te+50),Zf(n,{top:ge,bottom:we})}wc<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=x.scrollLeft,y.wheelStartY=x.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var Te=x.scrollLeft-y.wheelStartX,Oe=x.scrollTop-y.wheelStartY,De=Oe&&y.wheelDY&&Oe/y.wheelDY||Te&&y.wheelDX&&Te/y.wheelDX;y.wheelStartX=y.wheelStartY=null,De&&(ai=(ai*wc+De)/(wc+1),++wc)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var er=function(n,i){this.ranges=n,this.primIndex=i};er.prototype.primary=function(){return this.ranges[this.primIndex]},er.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!pt(a.anchor,l.anchor)||!pt(a.head,l.head))return!1}return!0},er.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new gt(Jt(this.ranges[i].anchor),Jt(this.ranges[i].head));return new er(n,this.primIndex)},er.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},er.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Ie(i,l.from())>=0&&Ie(n,l.to())<=0)return a}return-1};var gt=function(n,i){this.anchor=n,this.head=i};gt.prototype.from=function(){return ds(this.anchor,this.head)},gt.prototype.to=function(){return _n(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Tr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(se,te){return Ie(se.from(),te.from())}),a=ue(i,u);for(var m=1;m<i.length;m++){var y=i[m],x=i[m-1],S=Ie(x.to(),y.from());if(l&&!y.empty()?S>0:S>=0){var _=ds(x.from(),y.from()),B=_n(x.to(),y.to()),U=x.empty()?y.from()==y.head:x.from()==x.head;m<=a&&--a,i.splice(--m,2,new gt(U?B:_,U?_:B))}}return new er(i,a)}function ji(n,i){return new er([new gt(n,i||n)],0)}function Wi(n){return n.text?de(n.from.line+n.text.length-1,ke(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function tm(n,i){if(Ie(n,i.from)<0)return n;if(Ie(n,i.to)<=0)return Wi(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+=Wi(i).ch-i.to.ch),de(a,l)}function td(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new gt(tm(u.anchor,i),tm(u.head,i)))}return Tr(n.cm,a,n.sel.primIndex)}function nm(n,i,a){return n.line==i.line?de(a.line,n.ch-i.ch+a.ch):de(a.line+(n.line-i.line),n.ch)}function cS(n,i,a){for(var l=[],u=de(n.first,0),m=u,y=0;y<i.length;y++){var x=i[y],S=nm(x.from,u,m),_=nm(Wi(x),u,m);if(u=x.to,m=_,a=="around"){var B=n.sel.ranges[y],U=Ie(B.head,B.anchor)<0;l[y]=new gt(U?_:S,U?S:_)}else l[y]=new gt(S,S)}return new er(l,n.sel.primIndex)}function nd(n){n.doc.mode=cs(n.options,n.doc.modeOption),Ol(n)}function Ol(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,Ml(n,100),n.state.modeGen++,n.curOp&&Tn(n)}function rm(n,i){return i.from.ch==0&&i.to.ch==0&&ke(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function rd(n,i,a,l){function u(De){return a?a[De]:null}function m(De,Pe,ze){vk(De,Pe,ze,l),Qt(De,"change",De,i)}function y(De,Pe){for(var ze=[],Ze=De;Ze<Pe;++Ze)ze.push(new hs(_[Ze],u(Ze),l));return ze}var x=i.from,S=i.to,_=i.text,B=We(n,x.line),U=We(n,S.line),se=ke(_),te=u(_.length-1),ge=S.line-x.line;if(i.full)n.insert(0,y(0,_.length)),n.remove(_.length,n.size-_.length);else if(rm(n,i)){var we=y(0,_.length-1);m(U,U.text,te),ge&&n.remove(x.line,ge),we.length&&n.insert(x.line,we)}else if(B==U)if(_.length==1)m(B,B.text.slice(0,x.ch)+se+B.text.slice(S.ch),te);else{var Te=y(1,_.length-1);Te.push(new hs(se+B.text.slice(S.ch),te,l)),m(B,B.text.slice(0,x.ch)+_[0],u(0)),n.insert(x.line+1,Te)}else if(_.length==1)m(B,B.text.slice(0,x.ch)+_[0]+U.text.slice(S.ch),u(0)),n.remove(x.line+1,ge);else{m(B,B.text.slice(0,x.ch)+_[0],u(0)),m(U,se+U.text.slice(S.ch),te);var Oe=y(1,_.length-1);ge>1&&n.remove(x.line+1,ge-1),n.insert(x.line+1,Oe)}Qt(n,"change",n,i)}function qi(n,i,a){function l(u,m,y){if(u.linked)for(var x=0;x<u.linked.length;++x){var S=u.linked[x];if(S.doc!=m){var _=y&&S.sharedHist;a&&!_||(i(S.doc,_),l(S.doc,u,_))}}}l(n,null,!0)}function im(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,Wf(n),nd(n),om(n),n.options.direction=i.direction,n.options.lineWrapping||Of(n),n.options.mode=i.modeOption,Tn(n)}function om(n){(n.doc.direction=="rtl"?Se:O)(n.display.lineDiv,"CodeMirror-rtl")}function uS(n){Wn(n,function(){om(n),Tn(n)})}function xc(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 id(n,i){var a={from:Jt(i.from),to:Wi(i),text:ii(n,i.from,i.to)};return am(n,a,i.from.line,i.to.line+1),qi(n,function(l){return am(l,a,i.from.line,i.to.line+1)},!0),a}function sm(n){for(;n.length;){var i=ke(n);if(i.ranges)n.pop();else break}}function fS(n,i){if(i)return sm(n.done),ke(n.done);if(n.done.length&&!ke(n.done).ranges)return ke(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ke(n.done)}function lm(n,i,a,l){var u=n.history;u.undone.length=0;var m=+new Date,y,x;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>m-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=fS(u,u.lastOp==l)))x=ke(y.changes),Ie(i.from,i.to)==0&&Ie(i.from,x.to)==0?x.to=Wi(i):y.changes.push(id(n,i));else{var S=ke(u.done);for((!S||!S.ranges)&&kc(n.sel,u.done),y={changes:[id(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=m,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,x||$t(n,"historyAdded")}function dS(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 hS(n,i,a,l){var u=n.history,m=l&&l.origin;a==u.lastSelOp||m&&u.lastSelOrigin==m&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==m||dS(n,m,ke(u.done),i))?u.done[u.done.length-1]=i:kc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=m,u.lastSelOp=a,l&&l.clearRedo!==!1&&sm(u.undone)}function kc(n,i){var a=ke(i);a&&a.ranges&&a.equals(n)||i.push(n)}function am(n,i,a,l){var u=i["spans_"+n.id],m=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]={}))[m]=y.markedSpans),++m})}function pS(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 gS(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(pS(a[u]));return l}function cm(n,i){var a=gS(n,i),l=Af(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var m=a[u],y=l[u];if(m&&y)e:for(var x=0;x<y.length;++x){for(var S=y[x],_=0;_<m.length;++_)if(m[_].marker==S.marker)continue e;m.push(S)}else y&&(a[u]=y)}return a}function xs(n,i,a){for(var l=[],u=0;u<n.length;++u){var m=n[u];if(m.ranges){l.push(a?er.prototype.deepCopy.call(m):m);continue}var y=m.changes,x=[];l.push({changes:x});for(var S=0;S<y.length;++S){var _=y[S],B=void 0;if(x.push({from:_.from,to:_.to,text:_.text}),i)for(var U in _)(B=U.match(/^spans_(\d+)$/))&&ue(i,Number(B[1]))>-1&&(ke(x)[U]=_[U],delete _[U])}}return l}function od(n,i,a,l){if(l){var u=n.anchor;if(a){var m=Ie(i,u)<0;m!=Ie(a,u)<0?(u=i,i=a):m!=Ie(i,a)<0&&(i=a)}return new gt(u,i)}else return new gt(a||i,i)}function Sc(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),fn(n,new er([od(n.sel.primary(),i,a,u)],0),l)}function um(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),m=0;m<n.sel.ranges.length;m++)l[m]=od(n.sel.ranges[m],i[m],null,u);var y=Tr(n.cm,l,n.sel.primIndex);fn(n,y,a)}function sd(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,fn(n,Tr(n.cm,u,n.sel.primIndex),l)}function fm(n,i,a,l){fn(n,ji(i,a),l)}function mS(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var m=0;m<u.length;m++)this.ranges[m]=new gt(nt(n,u[m].anchor),nt(n,u[m].head))},origin:a&&a.origin};return $t(n,"beforeSelectionChange",n,l),n.cm&&$t(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?Tr(n.cm,l.ranges,l.ranges.length-1):i}function dm(n,i,a){var l=n.history.done,u=ke(l);u&&u.ranges?(l[l.length-1]=i,_c(n,i,a)):fn(n,i,a)}function fn(n,i,a){_c(n,i,a),hS(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function _c(n,i,a){(jn(n,"beforeSelectionChange")||n.cm&&jn(n.cm,"beforeSelectionChange"))&&(i=mS(n,i,a));var l=a&&a.bias||(Ie(i.primary().head,n.sel.primary().head)<0?-1:1);hm(n,gm(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&bs(n.cm)}function hm(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,ar(n.cm)),Qt(n,"cursorActivity",n))}function pm(n){hm(n,gm(n,n.sel,null,!1))}function gm(n,i,a,l){for(var u,m=0;m<i.ranges.length;m++){var y=i.ranges[m],x=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[m],S=Tc(n,y.anchor,x&&x.anchor,a,l),_=y.head==y.anchor?S:Tc(n,y.head,x&&x.head,a,l);(u||S!=y.anchor||_!=y.head)&&(u||(u=i.ranges.slice(0,m)),u[m]=new gt(S,_))}return u?Tr(n.cm,u,i.primIndex):i}function ks(n,i,a,l,u){var m=We(n,i.line);if(m.markedSpans)for(var y=0;y<m.markedSpans.length;++y){var x=m.markedSpans[y],S=x.marker,_="selectLeft"in S?!S.selectLeft:S.inclusiveLeft,B="selectRight"in S?!S.selectRight:S.inclusiveRight;if((x.from==null||(_?x.from<=i.ch:x.from<i.ch))&&(x.to==null||(B?x.to>=i.ch:x.to>i.ch))){if(u&&($t(S,"beforeCursorEnter"),S.explicitlyCleared))if(m.markedSpans){--y;continue}else break;if(!S.atomic)continue;if(a){var U=S.find(l<0?1:-1),se=void 0;if((l<0?B:_)&&(U=mm(n,U,-l,U&&U.line==i.line?m:null)),U&&U.line==i.line&&(se=Ie(U,a))&&(l<0?se<0:se>0))return ks(n,U,i,l,u)}var te=S.find(l<0?-1:1);return(l<0?_:B)&&(te=mm(n,te,l,te.line==i.line?m:null)),te?ks(n,te,i,l,u):null}}return i}function Tc(n,i,a,l,u){var m=l||1,y=ks(n,i,a,m,u)||!u&&ks(n,i,a,m,!0)||ks(n,i,a,-m,u)||!u&&ks(n,i,a,-m,!0);return y||(n.cantEdit=!0,de(n.first,0))}function mm(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?nt(n,de(i.line-1)):null:a>0&&i.ch==(l||We(n,i.line)).text.length?i.line<n.first+n.size-1?de(i.line+1,0):null:new de(i.line,i.ch+a)}function vm(n){n.setSelection(de(n.firstLine(),0),de(n.lastLine()),Q)}function ym(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,m,y,x){u&&(l.from=nt(n,u)),m&&(l.to=nt(n,m)),y&&(l.text=y),x!==void 0&&(l.origin=x)}),$t(n,"beforeChange",n,l),n.cm&&$t(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function Ss(n,i,a){if(n.cm){if(!n.cm.curOp)return en(n.cm,Ss)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((jn(n,"beforeChange")||n.cm&&jn(n.cm,"beforeChange"))&&(i=ym(n,i,!0),!i))){var l=cg&&!a&&hk(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)bm(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else bm(n,i)}}function bm(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ie(i.from,i.to)==0)){var a=td(n,i);lm(n,i,a,n.cm?n.cm.curOp.id:NaN),Pl(n,i,a,Af(n,i));var l=[];qi(n,function(u,m){!m&&ue(l,u.history)==-1&&(Sm(u.history,i),l.push(u.history)),Pl(u,i,null,Af(u,i))})}}function Cc(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,m,y=n.sel,x=i=="undo"?u.done:u.undone,S=i=="undo"?u.undone:u.done,_=0;_<x.length&&(m=x[_],!(a?m.ranges&&!m.equals(n.sel):!m.ranges));_++);if(_!=x.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(m=x.pop(),m.ranges){if(kc(m,S),a&&!m.equals(n.sel)){fn(n,m,{clearRedo:!1});return}y=m}else if(l){x.push(m);return}else break;var B=[];kc(y,S),S.push({changes:B,generation:u.generation}),u.generation=m.generation||++u.maxGeneration;for(var U=jn(n,"beforeChange")||n.cm&&jn(n.cm,"beforeChange"),se=function(we){var Te=m.changes[we];if(Te.origin=i,U&&!ym(n,Te,!1))return x.length=0,{};B.push(id(n,Te));var Oe=we?td(n,Te):ke(x);Pl(n,Te,Oe,cm(n,Te)),!we&&n.cm&&n.cm.scrollIntoView({from:Te.from,to:Wi(Te)});var De=[];qi(n,function(Pe,ze){!ze&&ue(De,Pe.history)==-1&&(Sm(Pe.history,Te),De.push(Pe.history)),Pl(Pe,Te,null,cm(Pe,Te))})},te=m.changes.length-1;te>=0;--te){var ge=se(te);if(ge)return ge.v}}}}function wm(n,i){if(i!=0&&(n.first+=i,n.sel=new er(be(n.sel.ranges,function(u){return new gt(de(u.anchor.line+i,u.anchor.ch),de(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){Tn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Hi(n.cm,l,"gutter")}}function Pl(n,i,a,l){if(n.cm&&!n.cm.curOp)return en(n.cm,Pl)(n,i,a,l);if(i.to.line<n.first){wm(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);wm(n,u),i={from:de(n.first,0),to:de(i.to.line+u,i.to.ch),text:[ke(i.text)],origin:i.origin}}var m=n.lastLine();i.to.line>m&&(i={from:i.from,to:de(m,We(n,m).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ii(n,i.from,i.to),a||(a=td(n,i)),n.cm?vS(n.cm,i,l):rd(n,i,l),_c(n,a,Q),n.cantEdit&&Tc(n,de(n.firstLine(),0))&&(n.cantEdit=!1)}}function vS(n,i,a){var l=n.doc,u=n.display,m=i.from,y=i.to,x=!1,S=m.line;n.options.lineWrapping||(S=A(Sr(We(l,m.line))),l.iter(S,y.line+1,function(te){if(te==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&ar(n),rd(l,i,a,Fg(n)),n.options.lineWrapping||(l.iter(S,m.line+i.text.length,function(te){var ge=cc(te);ge>u.maxLineLength&&(u.maxLine=te,u.maxLineLength=ge,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),sk(l,m.line),Ml(n,400);var _=i.text.length-(y.line-m.line)-1;i.full?Tn(n):m.line==y.line&&i.text.length==1&&!rm(n.doc,i)?Hi(n,m.line,"text"):Tn(n,m.line,y.line+1,_);var B=jn(n,"changes"),U=jn(n,"change");if(U||B){var se={from:m,to:y,text:i.text,removed:i.removed,origin:i.origin};U&&Qt(n,"change",n,se),B&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(se)}n.display.selForContextMenu=null}function _s(n,i,a,l,u){var m;l||(l=a),Ie(l,a)<0&&(m=[l,a],a=m[0],l=m[1]),typeof i=="string"&&(i=n.splitLines(i)),Ss(n,{from:a,to:l,text:i,origin:u})}function xm(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function km(n,i,a,l){for(var u=0;u<n.length;++u){var m=n[u],y=!0;if(m.ranges){m.copied||(m=n[u]=m.deepCopy(),m.copied=!0);for(var x=0;x<m.ranges.length;x++)xm(m.ranges[x].anchor,i,a,l),xm(m.ranges[x].head,i,a,l);continue}for(var S=0;S<m.changes.length;++S){var _=m.changes[S];if(a<_.from.line)_.from=de(_.from.line+l,_.from.ch),_.to=de(_.to.line+l,_.to.ch);else if(i<=_.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function Sm(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;km(n.done,a,l,u),km(n.undone,a,l,u)}function Rl(n,i,a,l){var u=i,m=i;return typeof i=="number"?m=We(n,eg(n,i)):u=A(i),u==null?null:(l(m,u)&&n.cm&&Hi(n.cm,u,a),m)}function $l(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}$l.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,yk(u),Qt(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 Il(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}Il.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 m=Math.min(i,u-n),y=l.height;if(l.removeInner(n,m),this.height-=y-l.height,u==m&&(this.children.splice(a--,1),l.parent=null),(i-=m)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof $l))){var x=[];this.collapse(x),this.children=[new $l(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],m=u.chunkSize();if(n<=m){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 $l(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-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new Il(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=ue(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new Il(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],m=u.chunkSize();if(n<m){var y=Math.min(i,m-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=m}}};var Dl=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};Dl.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=A(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 m=Sl(this);Qn(a,Math.max(0,a.height-m)),n&&(Wn(n,function(){_m(n,a,-m),Hi(n,l,"widget")}),Qt(n,"lineWidgetCleared",n,this,l))}},Dl.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=Sl(this)-i;u&&(Fi(this.doc,l)||Qn(l,l.height+u),a&&Wn(a,function(){a.curOp.forceUpdate=!0,_m(a,l,u),Qt(a,"lineWidgetChanged",a,n,A(l))}))},yr(Dl);function _m(n,i,a){si(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Xf(n,a)}function yS(n,i,a,l){var u=new Dl(n,a,l),m=n.cm;return m&&u.noHScroll&&(m.display.alignWidgets=!0),Rl(n,i,"widget",function(y){var x=y.widgets||(y.widgets=[]);if(u.insertAt==null?x.push(u):x.splice(Math.min(x.length,Math.max(0,u.insertAt)),0,u),u.line=y,m&&!Fi(n,y)){var S=si(y)<n.scrollTop;Qn(y,y.height+Sl(u)),S&&Xf(m,u.height),m.curOp.forceUpdate=!0}return!0}),m&&Qt(m,"lineWidgetAdded",m,u,typeof i=="number"?i:A(i)),u}var Tm=0,Ui=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Tm};Ui.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&Po(n),jn(this,"clear")){var a=this.find();a&&Qt(this,"clear",a.from,a.to)}for(var l=null,u=null,m=0;m<this.lines.length;++m){var y=this.lines[m],x=wl(y.markedSpans,this);n&&!this.collapsed?Hi(n,A(y),"text"):n&&(x.to!=null&&(u=A(y)),x.from!=null&&(l=A(y))),y.markedSpans=ck(y.markedSpans,x),x.from==null&&this.collapsed&&!Fi(this.doc,y)&&n&&Qn(y,ms(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var S=0;S<this.lines.length;++S){var _=Sr(this.lines[S]),B=cc(_);B>n.display.maxLineLength&&(n.display.maxLine=_,n.display.maxLineLength=B,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&Tn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&pm(n.doc)),n&&Qt(n,"markerCleared",n,this,l,u),i&&Ro(n),this.parent&&this.parent.clear()}},Ui.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var m=this.lines[u],y=wl(m.markedSpans,this);if(y.from!=null&&(a=de(i?m:A(m),y.from),n==-1))return a;if(y.to!=null&&(l=de(i?m:A(m),y.to),n==1))return l}return a&&{from:a,to:l}},Ui.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Wn(l,function(){var u=i.line,m=A(i.line),y=If(l,m);if(y&&(Ng(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Fi(a.doc,u)&&a.height!=null){var x=a.height;a.height=null;var S=Sl(a)-x;S&&Qn(u,u.height+S)}Qt(l,"markerChanged",l,n)})},Ui.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||ue(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Ui.prototype.detachLine=function(n){if(this.lines.splice(ue(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},yr(Ui);function Ts(n,i,a,l,u){if(l&&l.shared)return bS(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return en(n.cm,Ts)(n,i,a,l,u);var m=new Ui(n,u),y=Ie(i,a);if(l&&Z(l,m,!1),y>0||y==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=F("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(gg(n,i.line,i,a,m)||i.line!=a.line&&gg(n,a.line,i,a,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");ak()}m.addToHistory&&lm(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(U){S&&m.collapsed&&!S.options.lineWrapping&&Sr(U)==S.display.maxLine&&(_=!0),m.collapsed&&x!=i.line&&Qn(U,0),uk(U,new oc(m,x==i.line?i.ch:null,x==a.line?a.ch:null),n.cm&&n.cm.curOp),++x}),m.collapsed&&n.iter(i.line,a.line+1,function(U){Fi(n,U)&&Qn(U,0)}),m.clearOnEnter&&Ye(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(lk(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),m.collapsed&&(m.id=++Tm,m.atomic=!0),S){if(_&&(S.curOp.updateMaxLine=!0),m.collapsed)Tn(S,i.line,a.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var B=i.line;B<=a.line;B++)Hi(S,B,"text");m.atomic&&pm(S.doc),Qt(S,"markerAdded",S,m)}return m}var zl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};zl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Qt(this,"clear")}},zl.prototype.find=function(n,i){return this.primary.find(n,i)},yr(zl);function bS(n,i,a,l,u){l=Z(l),l.shared=!1;var m=[Ts(n,i,a,l,u)],y=m[0],x=l.widgetNode;return qi(n,function(S){x&&(l.widgetNode=x.cloneNode(!0)),m.push(Ts(S,nt(S,i),nt(S,a),l,u));for(var _=0;_<S.linked.length;++_)if(S.linked[_].isParent)return;y=ke(m)}),new zl(m,y)}function Cm(n){return n.findMarks(de(n.first,0),n.clipPos(de(n.lastLine())),function(i){return i.parent})}function wS(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),m=n.clipPos(u.from),y=n.clipPos(u.to);if(Ie(m,y)){var x=Ts(n,m,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function xS(n){for(var i=function(l){var u=n[l],m=[u.primary.doc];qi(u.primary.doc,function(S){return m.push(S)});for(var y=0;y<u.markers.length;y++){var x=u.markers[y];ue(m,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var kS=0,Cn=function(n,i,a,l,u){if(!(this instanceof Cn))return new Cn(n,i,a,l,u);a==null&&(a=0),Il.call(this,[new $l([new hs("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var m=de(a,0);this.sel=ji(m),this.history=new xc(null),this.id=++kS,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),rd(this,{from:m,to:m,text:n}),fn(this,ji(m),Q)};Cn.prototype=oe(Il.prototype,{constructor:Cn,iter:function(n,i,a){a?this.iterN(n-this.first,i-n,a):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var a=0,l=0;l<i.length;++l)a+=i[l].height;this.insertInner(n-this.first,i,a)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=yl(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:tn(function(n){var i=de(this.first,0),a=this.first+this.size-1;Ss(this,{from:i,to:de(a,We(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&Cl(this.cm,0,0),fn(this,ji(i),Q)}),replaceRange:function(n,i,a,l){i=nt(this,i),a=a?nt(this,a):i,_s(this,n,i,a,l)},getRange:function(n,i,a){var l=ii(this,nt(this,n),nt(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(ye(this,n))return We(this,n)},getLineNumber:function(n){return A(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=We(this,n)),Sr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return nt(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:tn(function(n,i,a){fm(this,nt(this,typeof n=="number"?de(n,i||0):n),null,a)}),setSelection:tn(function(n,i,a){fm(this,nt(this,n),nt(this,i||n),a)}),extendSelection:tn(function(n,i,a){Sc(this,nt(this,n),i&&nt(this,i),a)}),extendSelections:tn(function(n,i){um(this,tg(this,n),i)}),extendSelectionsBy:tn(function(n,i){var a=be(this.sel.ranges,n);um(this,tg(this,a),i)}),setSelections:tn(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new gt(nt(this,n[u].anchor),nt(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),fn(this,Tr(this.cm,l,i),a)}}),addSelection:tn(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new gt(nt(this,n),nt(this,i||n))),fn(this,Tr(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=ii(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=ii(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:tn(function(n,i,a){for(var l=[],u=this.sel,m=0;m<u.ranges.length;m++){var y=u.ranges[m];l[m]={from:y.from(),to:y.to(),text:this.splitLines(n[m]),origin:a}}for(var x=i&&i!="end"&&cS(this,l,i),S=l.length-1;S>=0;S--)Ss(this,l[S]);x?dm(this,x):this.cm&&bs(this.cm)}),undo:tn(function(){Cc(this,"undo")}),redo:tn(function(){Cc(this,"redo")}),undoSelection:tn(function(){Cc(this,"undo",!0)}),redoSelection:tn(function(){Cc(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 xc(this.history),qi(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:xs(this.history.done),undone:xs(this.history.undone)}},setHistory:function(n){var i=this.history=new xc(this.history);i.done=xs(n.done.slice(0),null,!0),i.undone=xs(n.undone.slice(0),null,!0)},setGutterMarker:tn(function(n,i,a){return Rl(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&dt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:tn(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&Rl(i,a,"gutter",function(){return a.gutterMarkers[n]=null,dt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!ye(this,n)||(i=n,n=We(this,n),!n))return null}else if(i=A(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:tn(function(n,i,a){return Rl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(j(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:tn(function(n,i,a){return Rl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",m=l[u];if(m)if(a==null)l[u]=null;else{var y=m.match(j(a));if(!y)return!1;var x=y.index+y[0].length;l[u]=m.slice(0,y.index)+(!y.index||x==m.length?"":" ")+m.slice(x)||null}else return!1;return!0})}),addLineWidget:tn(function(n,i,a){return yS(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return Ts(this,nt(this,n),nt(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=nt(this,n),Ts(this,n,n,a,"bookmark")},findMarksAt:function(n){n=nt(this,n);var i=[],a=We(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=nt(this,n),i=nt(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(m){var y=m.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 m=u.text.length+l;if(m>n)return i=n,!0;n-=m,++a}),nt(this,de(a,i))},indexFromPos:function(n){n=nt(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new Cn(yl(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,a=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<a&&(a=n.to);var l=new Cn(yl(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}],wS(l,Cm(this)),l},unlinkDoc:function(n){if(n instanceof At&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),xS(Cm(this));break}}if(n.history==this.history){var l=[n.id];qi(n,function(u){return l.push(u.id)},!0),n.history=new xc(null),n.history.done=xs(this.history.done,l),n.history.undone=xs(this.history.undone,l)}},iterLinkedDocs:function(n){qi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):cr(n)},lineSeparator:function(){return this.lineSep||`
|
|
31
|
-
`},setDirection:tn(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&uS(this.cm))})}),Cn.prototype.eachLine=Cn.prototype.iter;var Em=0;function SS(n){var i=this;if(Am(i),!(It(i,n)||li(i.display,n))){un(n),h&&(Em=+new Date);var a=Lo(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,m=Array(u),y=0,x=function(){++y==u&&en(i,function(){a=nt(i.doc,a);var te={from:a,to:a,text:i.doc.splitLines(m.filter(function(ge){return ge!=null}).join(i.doc.lineSeparator())),origin:"paste"};Ss(i.doc,te),dm(i.doc,ji(nt(i.doc,a),nt(i.doc,Wi(te))))})()},S=function(te,ge){if(i.options.allowDropFileTypes&&ue(i.options.allowDropFileTypes,te.type)==-1){x();return}var we=new FileReader;we.onerror=function(){return x()},we.onload=function(){var Te=we.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Te)){x();return}m[ge]=Te,x()},we.readAsText(te)},_=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 B=n.dataTransfer.getData("Text");if(B){var U;if(i.state.draggingText&&!i.state.draggingText.copy&&(U=i.listSelections()),_c(i.doc,ji(a,a)),U)for(var se=0;se<U.length;++se)_s(i.doc,"",U[se].anchor,U[se].head,"drag");i.replaceSelection(B,"around","paste"),i.display.input.focus()}}catch{}}}}function _S(n,i){if(h&&(!n.state.draggingText||+new Date-Em<100)){$i(i);return}if(!(It(n,i)||li(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!L)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",T&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),T&&a.parentNode.removeChild(a)}}function TS(n,i){var a=Lo(n,i);if(a){var l=document.createDocumentFragment();qf(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)),C(n.display.dragCursor,l)}}function Am(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Lm(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 m=0;m<a.length;m++)n(a[m])})}}var Mm=!1;function CS(){Mm||(ES(),Mm=!0)}function ES(){var n;Ye(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Lm(AS)},100))}),Ye(window,"blur",function(){return Lm(ys)})}function AS(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Vi={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"},Fl=0;Fl<10;Fl++)Vi[Fl+48]=Vi[Fl+96]=String(Fl);for(var Ec=65;Ec<=90;Ec++)Vi[Ec]=String.fromCharCode(Ec);for(var Hl=1;Hl<=12;Hl++)Vi[Hl+111]=Vi[Hl+63235]="F"+Hl;var ci={};ci.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"},ci.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"},ci.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"},ci.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"]},ci.default=D?ci.macDefault:ci.pcDefault;function LS(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,m,y=0;y<i.length-1;y++){var x=i[y];if(/^(cmd|meta|m)$/i.test(x))m=!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),m&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function MS(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var u=be(a.split(" "),LS),m=0;m<u.length;m++){var y=void 0,x=void 0;m==u.length-1?(x=u.join(" "),y=l):(x=u.slice(0,m+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 Cs(n,i,a,l){i=Ac(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return Cs(n,i.fallthrough,a,l);for(var m=0;m<i.fallthrough.length;m++){var y=Cs(n,i.fallthrough[m],a,l);if(y)return y}}}function Nm(n){var i=typeof n=="string"?n:Vi[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Om(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(Y?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(Y?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Pm(n,i){if(T&&n.keyCode==34&&n.char)return!1;var a=Vi[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Om(a,n,i))}function Ac(n){return typeof n=="string"?ci[n]:n}function Es(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var m=i(a[u]);l.length&&Ie(m.from,ke(l).to)<=0;){var y=l.pop();if(Ie(y.from,m.from)<0){m.from=y.from;break}}l.push(m)}Wn(n,function(){for(var x=l.length-1;x>=0;x--)_s(n.doc,"",l[x].from,l[x].to,"+delete");bs(n)})}function ld(n,i,a){var l=Zt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function ad(n,i,a){var l=ld(n,i.ch,a);return l==null?null:new de(i.line,l,a<0?"after":"before")}function cd(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var m=at(a,i.doc.direction);if(m){var y=u<0?ke(m):m[0],x=u<0==(y.level==1),S=x?"after":"before",_;if(y.level>0||i.doc.direction=="rtl"){var B=gs(i,a);_=u<0?a.text.length-1:0;var U=Ur(i,B,_).top;_=qt(function(se){return Ur(i,B,se).top==U},u<0==(y.level==1)?y.from:y.to-1,_),S=="before"&&(_=ld(a,_,1))}else _=u<0?y.to:y.from;return new de(l,_,S)}}return new de(l,u<0?a.text.length:0,u<0?"before":"after")}function NS(n,i,a,l){var u=at(i,n.doc.direction);if(!u)return ad(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 m=Bt(u,a.ch,a.sticky),y=u[m];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return ad(i,a,l);var x=function(Oe,De){return ld(i,Oe instanceof de?Oe.ch:Oe,De)},S,_=function(Oe){return n.options.lineWrapping?(S=S||gs(n,i),zg(n,i,S,Oe)):{begin:0,end:i.text.length}},B=_(a.sticky=="before"?x(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var U=y.level==1==l<0,se=x(a,U?1:-1);if(se!=null&&(U?se<=y.to&&se<=B.end:se>=y.from&&se>=B.begin)){var te=U?"before":"after";return new de(a.line,se,te)}}var ge=function(Oe,De,Pe){for(var ze=function(_t,nn){return nn?new de(a.line,x(_t,1),"before"):new de(a.line,_t,"after")};Oe>=0&&Oe<u.length;Oe+=De){var Ze=u[Oe],Ge=De>0==(Ze.level!=1),lt=Ge?Pe.begin:x(Pe.end,-1);if(Ze.from<=lt&<<Ze.to||(lt=Ge?Ze.from:x(Ze.to,-1),Pe.begin<=lt&<<Pe.end))return ze(lt,Ge)}},we=ge(m+l,l,B);if(we)return we;var Te=l>0?B.end:x(B.begin,-1);return Te!=null&&!(l>0&&Te==i.text.length)&&(we=ge(l>0?0:u.length-1,l,_(Te)),we)?we:null}var Bl={selectAll:vm,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),Q)},killLine:function(n){return Es(n,function(i){if(i.empty()){var a=We(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:de(i.head.line+1,0)}:{from:i.head,to:de(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return Es(n,function(i){return{from:de(i.from().line,0),to:nt(n.doc,de(i.to().line+1,0))}})},delLineLeft:function(n){return Es(n,function(i){return{from:de(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return Es(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 Es(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(de(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(de(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Rm(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return $m(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return OS(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")},pe)},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")},pe)},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/)?$m(n,i.head):l},pe)},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 m=a[u].from(),y=re(n.getLine(m.line),m.ch,l);i.push(Ee(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Wn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,m=We(n.doc,u.line).text;if(m){if(u.ch==m.length&&(u=new de(u.line,u.ch-1)),u.ch>0)u=new de(u.line,u.ch+1),n.replaceRange(m.charAt(u.ch-1)+m.charAt(u.ch-2),de(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=We(n.doc,u.line-1).text;y&&(u=new de(u.line,1),n.replaceRange(m.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),de(u.line-1,y.length-1),u,"+transpose"))}}a.push(new gt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Wn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);bs(n)})},openLine:function(n){return n.replaceSelection(`
|
|
32
|
-
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Rm(n,i){var a=We(n.doc,i),l=Sr(a);return l!=a&&(i=A(l)),cd(!0,n,l,i,1)}function OS(n,i){var a=We(n.doc,i),l=gk(a);return l!=a&&(i=A(l)),cd(!0,n,a,i,-1)}function $m(n,i){var a=Rm(n,i.line),l=We(n.doc,a.line),u=at(l,n.doc.direction);if(!u||u[0].level==0){var m=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=m&&i.ch;return de(a.line,y?0:m,a.sticky)}return a}function Lc(n,i,a){if(typeof i=="string"&&(i=Bl[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)!=W}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function PS(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=Cs(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&Cs(i,n.options.extraKeys,a,n)||Cs(i,n.options.keyMap,a,n)}var RS=new le;function jl(n,i,a,l){var u=n.state.keySeq;if(u){if(Nm(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())}),Im(n,u+" "+i,a,l))return!0}return Im(n,i,a,l)}function Im(n,i,a,l){var u=PS(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Qt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(un(a),Uf(n)),!!u}function Dm(n,i){var a=Pm(i,!0);return a?i.shiftKey&&!n.state.keySeq?jl(n,"Shift-"+a,i,function(l){return Lc(n,l,!0)})||jl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Lc(n,l)}):jl(n,a,i,function(l){return Lc(n,l)}):!1}function $S(n,i,a){return jl(n,"'"+a+"'",i,function(l){return Lc(n,l,!0)})}var ud=null;function zm(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ce(qe(i)),!It(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Dm(i,n);T&&(ud=l?a:null,!l&&a==88&&!rc&&(D?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!D&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&IS(i)}}function IS(n){var i=n.display.lineDiv;Se(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(O(i,"CodeMirror-crosshair"),cn(document,"keyup",a),cn(document,"mouseover",a))}Ye(document,"keyup",a),Ye(document,"mouseover",a)}function Fm(n){n.keyCode==16&&(this.doc.sel.shift=!1),It(this,n)}function Hm(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(li(i.display,n)||It(i,n)||n.ctrlKey&&!n.altKey||D&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(T&&a==ud){ud=null,un(n);return}if(!(T&&(!n.which||n.which<10)&&Dm(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&($S(i,n,u)||i.display.input.onKeyPress(n))}}}var DS=400,fd=function(n,i,a){this.time=n,this.pos=i,this.button=a};fd.prototype.compare=function(n,i,a){return this.time+DS>n&&Ie(i,this.pos)==0&&a==this.button};var Wl,ql;function zS(n,i){var a=+new Date;return ql&&ql.compare(a,n,i)?(Wl=ql=null,"triple"):Wl&&Wl.compare(a,n,i)?(ql=new fd(a,n,i),Wl=null,"double"):(Wl=new fd(a,n,i),ql=null,"single")}function Bm(n){var i=this,a=i.display;if(!(It(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,li(a,n)){g||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!dd(i,n)){var l=Lo(i,n),u=br(n),m=l?zS(l,u):"single";Re(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&FS(i,u,l,m,n))&&(u==1?l?BS(i,l,m,n):gl(n)==a.scroller&&un(n):u==2?(l&&Sc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):Vf(i)))}}}function FS(n,i,a,l,u){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(i==1?"Left":i==2?"Middle":"Right")+m,jl(n,Om(m,u),u,function(y){if(typeof y=="string"&&(y=Bl[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=W}finally{n.state.suppressEdits=!1}return x})}function HS(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var m=V?a.shiftKey&&a.metaKey:a.altKey;u.unit=m?"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=D?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(D?a.altKey:a.ctrlKey)),u}function BS(n,i,a,l){h?setTimeout(H(jg,n),0):n.curOp.focus=ce(qe(n));var u=HS(n,a,l),m=n.doc.sel,y;n.options.dragDrop&&_f&&!n.isReadOnly()&&a=="single"&&(y=m.contains(i))>-1&&(Ie((y=m.ranges[y]).from(),i)<0||i.xRel>0)&&(Ie(y.to(),i)>0||i.xRel<0)?jS(n,l,i,u):WS(n,l,i,u)}function jS(n,i,a,l){var u=n.display,m=!1,y=en(n,function(_){g&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:Vf(n)),cn(u.wrapper.ownerDocument,"mouseup",y),cn(u.wrapper.ownerDocument,"mousemove",x),cn(u.scroller,"dragstart",S),cn(u.scroller,"drop",y),m||(un(_),l.addNew||Sc(n.doc,a,null,null,l.extend),g&&!L||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),x=function(_){m=m||Math.abs(i.clientX-_.clientX)+Math.abs(i.clientY-_.clientY)>=10},S=function(){return m=!0};g&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Ye(u.wrapper.ownerDocument,"mouseup",y),Ye(u.wrapper.ownerDocument,"mousemove",x),Ye(u.scroller,"dragstart",S),Ye(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function jm(n,i,a){if(a=="char")return new gt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new gt(de(i.line,0),nt(n.doc,de(i.line+1,0)));var l=a(n,i);return new gt(l.from,l.to)}function WS(n,i,a,l){h&&Vf(n);var u=n.display,m=n.doc;un(i);var y,x,S=m.sel,_=S.ranges;if(l.addNew&&!l.extend?(x=m.sel.contains(a),x>-1?y=_[x]:y=new gt(a,a)):(y=m.sel.primary(),x=m.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new gt(a,a)),a=Lo(n,i,!0,!0),x=-1;else{var B=jm(n,a,l.unit);l.extend?y=od(y,B.anchor,B.head,l.extend):y=B}l.addNew?x==-1?(x=_.length,fn(m,Tr(n,_.concat([y]),x),{scroll:!1,origin:"*mouse"})):_.length>1&&_[x].empty()&&l.unit=="char"&&!l.extend?(fn(m,Tr(n,_.slice(0,x).concat(_.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),S=m.sel):sd(m,x,y,he):(x=0,fn(m,new er([y],0),he),S=m.sel);var U=a;function se(Pe){if(Ie(U,Pe)!=0)if(U=Pe,l.unit=="rectangle"){for(var ze=[],Ze=n.options.tabSize,Ge=re(We(m,a.line).text,a.ch,Ze),lt=re(We(m,Pe.line).text,Pe.ch,Ze),_t=Math.min(Ge,lt),nn=Math.max(Ge,lt),Pt=Math.min(a.line,Pe.line),qn=Math.min(n.lastLine(),Math.max(a.line,Pe.line));Pt<=qn;Pt++){var En=We(m,Pt).text,Ut=me(En,_t,Ze);_t==nn?ze.push(new gt(de(Pt,Ut),de(Pt,Ut))):En.length>Ut&&ze.push(new gt(de(Pt,Ut),de(Pt,me(En,nn,Ze))))}ze.length||ze.push(new gt(a,a)),fn(m,Tr(n,S.ranges.slice(0,x).concat(ze),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Pe)}else{var An=y,ln=jm(n,Pe,l.unit),Xt=An.anchor,Vt;Ie(ln.anchor,Xt)>0?(Vt=ln.head,Xt=ds(An.from(),ln.anchor)):(Vt=ln.anchor,Xt=_n(An.to(),ln.head));var zt=S.ranges.slice(0);zt[x]=qS(n,new gt(nt(m,Xt),Vt)),fn(m,Tr(n,zt,x),he)}}var te=u.wrapper.getBoundingClientRect(),ge=0;function we(Pe){var ze=++ge,Ze=Lo(n,Pe,!0,l.unit=="rectangle");if(Ze)if(Ie(Ze,U)!=0){n.curOp.focus=ce(qe(n)),se(Ze);var Ge=vc(u,m);(Ze.line>=Ge.to||Ze.line<Ge.from)&&setTimeout(en(n,function(){ge==ze&&we(Pe)}),150)}else{var lt=Pe.clientY<te.top?-20:Pe.clientY>te.bottom?20:0;lt&&setTimeout(en(n,function(){ge==ze&&(u.scroller.scrollTop+=lt,we(Pe))}),50)}}function Te(Pe){n.state.selectingText=!1,ge=1/0,Pe&&(un(Pe),u.input.focus()),cn(u.wrapper.ownerDocument,"mousemove",Oe),cn(u.wrapper.ownerDocument,"mouseup",De),m.history.lastSelOrigin=null}var Oe=en(n,function(Pe){Pe.buttons===0||!br(Pe)?Te(Pe):we(Pe)}),De=en(n,Te);n.state.selectingText=De,Ye(u.wrapper.ownerDocument,"mousemove",Oe),Ye(u.wrapper.ownerDocument,"mouseup",De)}function qS(n,i){var a=i.anchor,l=i.head,u=We(n.doc,a.line);if(Ie(a,l)==0&&a.sticky==l.sticky)return i;var m=at(u);if(!m)return i;var y=Bt(m,a.ch,a.sticky),x=m[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==m.length)return i;var _;if(l.line!=a.line)_=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var B=Bt(m,l.ch,l.sticky),U=B-y||(l.ch-a.ch)*(x.level==1?-1:1);B==S-1||B==S?_=U<0:_=U>0}var se=m[S+(_?-1:0)],te=_==(se.level==1),ge=te?se.from:se.to,we=te?"after":"before";return a.ch==ge&&a.sticky==we?i:new gt(new de(a.line,ge,we),l)}function Wm(n,i,a,l){var u,m;if(i.touches)u=i.touches[0].clientX,m=i.touches[0].clientY;else try{u=i.clientX,m=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&un(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(m>x.bottom||!jn(n,a))return Sn(i);m-=x.top-y.viewOffset;for(var S=0;S<n.display.gutterSpecs.length;++S){var _=y.gutters.childNodes[S];if(_&&_.getBoundingClientRect().right>=u){var B=q(n.doc,m),U=n.display.gutterSpecs[S];return $t(n,a,n,B,U.className,i),Sn(i)}}}function dd(n,i){return Wm(n,i,"gutterClick",!0)}function qm(n,i){li(n.display,i)||US(n,i)||It(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function US(n,i){return jn(n,"gutterContextMenu")?Wm(n,i,"gutterContextMenu",!1):!1}function Um(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),_l(n)}var As={toString:function(){return"CodeMirror.Init"}},Vm={},Mc={};function VS(n){var i=n.optionHandlers;function a(l,u,m,y){n.defaults[l]=u,m&&(i[l]=y?function(x,S,_){_!=As&&m(x,S,_)}:m)}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,nd(l)},!0),a("indentUnit",2,nd,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){Ol(l),_l(l),Tn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var m=[],y=l.doc.first;l.doc.iter(function(S){for(var _=0;;){var B=S.text.indexOf(u,_);if(B==-1)break;_=B+u.length,m.push(de(y,B))}y++});for(var x=m.length-1;x>=0;x--)_s(l.doc,u,m[x],de(m[x].line,m[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,m){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),m!=As&&l.refresh()}),a("specialCharPlaceholder",xk,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",E?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!ee),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){Um(l),Nl(l)},!0),a("keyMap","default",function(l,u,m){var y=Ac(u),x=m!=As&&Ac(m);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,KS,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=ed(u,l.options.lineNumbers),Nl(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?jf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return ws(l)},!0),a("scrollbarStyle","native",function(l){Kg(l),ws(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=ed(l.options.gutters,u),Nl(l)},!0),a("firstLineNumber",1,Nl,!0),a("lineNumberFormatter",function(l){return l},Nl,!0),a("showCursorWhenSelecting",!1,Tl,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(ys(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,GS),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Tl,!0),a("singleCursorHeightPerLine",!0,Tl,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Ol,!0),a("addModeClass",!1,Ol,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,Ol,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function GS(n,i,a){var l=a&&a!=As;if(!i!=!l){var u=n.display.dragFunctions,m=i?Ye:cn;m(n.display.scroller,"dragstart",u.start),m(n.display.scroller,"dragenter",u.enter),m(n.display.scroller,"dragover",u.over),m(n.display.scroller,"dragleave",u.leave),m(n.display.scroller,"drop",u.drop)}}function KS(n){n.options.lineWrapping?(Se(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(O(n.display.wrapper,"CodeMirror-wrap"),Of(n)),Wf(n),Tn(n),_l(n),setTimeout(function(){return ws(n)},100)}function At(n,i){var a=this;if(!(this instanceof At))return new At(n,i);this.options=i=i?Z(i):{},Z(Vm,i,!1);var l=i.value;typeof l=="string"?l=new Cn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new At.inputStyles[i.inputStyle](this),m=this.display=new lS(n,l,u,i);m.wrapper.CodeMirror=this,Um(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kg(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},i.autofocus&&!E&&m.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),XS(this),CS(),Po(this),this.curOp.forceUpdate=!0,im(this,l),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Gf(a)},20):ys(this);for(var y in Mc)Mc.hasOwnProperty(y)&&Mc[y](this,i[y],As);Zg(this),i.finishInit&&i.finishInit(this);for(var x=0;x<hd.length;++x)hd[x](this);Ro(this),g&&i.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}At.defaults=Vm,At.optionHandlers=Mc;function XS(n){var i=n.display;Ye(i.scroller,"mousedown",en(n,Bm)),h&&p<11?Ye(i.scroller,"dblclick",en(n,function(S){if(!It(n,S)){var _=Lo(n,S);if(!(!_||dd(n,S)||li(n.display,S))){un(S);var B=n.findWordAt(_);Sc(n.doc,B.anchor,B.head)}}})):Ye(i.scroller,"dblclick",function(S){return It(n,S)||un(S)}),Ye(i.scroller,"contextmenu",function(S){return qm(n,S)}),Ye(i.input.getField(),"contextmenu",function(S){i.scroller.contains(S.target)||qm(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 m(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 B=_.left-S.left,U=_.top-S.top;return B*B+U*U>400}Ye(i.scroller,"touchstart",function(S){if(!It(n,S)&&!m(S)&&!dd(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)}}),Ye(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Ye(i.scroller,"touchend",function(S){var _=i.activeTouch;if(_&&!li(i,S)&&_.left!=null&&!_.moved&&new Date-_.start<300){var B=n.coordsChar(i.activeTouch,"page"),U;!_.prev||y(_,_.prev)?U=new gt(B,B):!_.prev.prev||y(_,_.prev.prev)?U=n.findWordAt(B):U=new gt(de(B.line,0),nt(n.doc,de(B.line+1,0))),n.setSelection(U.anchor,U.head),n.focus(),un(S)}u()}),Ye(i.scroller,"touchcancel",u),Ye(i.scroller,"scroll",function(){i.scroller.clientHeight&&(El(n,i.scroller.scrollTop),No(n,i.scroller.scrollLeft,!0),$t(n,"scroll",n))}),Ye(i.scroller,"mousewheel",function(S){return em(n,S)}),Ye(i.scroller,"DOMMouseScroll",function(S){return em(n,S)}),Ye(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){It(n,S)||$i(S)},over:function(S){It(n,S)||(TS(n,S),$i(S))},start:function(S){return _S(n,S)},drop:en(n,SS),leave:function(S){It(n,S)||Am(n)}};var x=i.input.getField();Ye(x,"keyup",function(S){return Fm.call(n,S)}),Ye(x,"keydown",en(n,zm)),Ye(x,"keypress",en(n,Hm)),Ye(x,"focus",function(S){return Gf(n,S)}),Ye(x,"blur",function(S){return ys(n,S)})}var hd=[];At.defineInitHook=function(n){return hd.push(n)};function Ul(n,i,a,l){var u=n.doc,m;a==null&&(a="add"),a=="smart"&&(u.mode.indent?m=bl(n,i).state:a="prev");var y=n.options.tabSize,x=We(u,i),S=re(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var _=x.text.match(/^\s*/)[0],B;if(!l&&!/\S/.test(x.text))B=0,a="not";else if(a=="smart"&&(B=u.mode.indent(m,x.text.slice(_.length),x.text),B==W||B>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?B=re(We(u,i-1).text,null,y):B=0:a=="add"?B=S+n.options.indentUnit:a=="subtract"?B=S-n.options.indentUnit:typeof a=="number"&&(B=S+a),B=Math.max(0,B);var U="",se=0;if(n.options.indentWithTabs)for(var te=Math.floor(B/y);te;--te)se+=y,U+=" ";if(se<B&&(U+=Ee(B-se)),U!=_)return _s(u,U,de(i,0),de(i,_.length),"+input"),x.stateAfter=null,!0;for(var ge=0;ge<u.sel.ranges.length;ge++){var we=u.sel.ranges[ge];if(we.head.line==i&&we.head.ch<_.length){var Te=de(i,_.length);sd(u,ge,new gt(Te,Te));break}}}var Cr=null;function Nc(n){Cr=n}function pd(n,i,a,l,u){var m=n.doc;n.display.shift=!1,l||(l=m.sel);var y=+new Date-200,x=u=="paste"||n.state.pasteIncoming>y,S=cr(i),_=null;if(x&&l.ranges.length>1)if(Cr&&Cr.text.join(`
|
|
33
|
-
`)==i){if(l.ranges.length%Cr.text.length==0){_=[];for(var B=0;B<Cr.text.length;B++)_.push(m.splitLines(Cr.text[B]))}}else S.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(_=be(S,function(Oe){return[Oe]}));for(var U=n.curOp.updateInput,se=l.ranges.length-1;se>=0;se--){var te=l.ranges[se],ge=te.from(),we=te.to();te.empty()&&(a&&a>0?ge=de(ge.line,ge.ch-a):n.state.overwrite&&!x?we=de(we.line,Math.min(We(m,we.line).text.length,we.ch+ke(S).length)):x&&Cr&&Cr.lineWise&&Cr.text.join(`
|
|
34
|
-
`)==S.join(`
|
|
35
|
-
`)&&(ge=we=de(ge.line,0)));var Te={from:ge,to:we,text:_?_[se%_.length]:S,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};Ss(n.doc,Te),Qt(n,"inputRead",n,Te)}i&&!x&&Km(n,i),bs(n),n.curOp.updateInput<2&&(n.curOp.updateInput=U),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function Gm(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Wn(i,function(){return pd(i,a,0,null,"paste")}),!0}function Km(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 m=n.getModeAt(u.head),y=!1;if(m.electricChars){for(var x=0;x<m.electricChars.length;x++)if(i.indexOf(m.electricChars.charAt(x))>-1){y=Ul(n,u.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(We(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=Ul(n,u.head.line,"smart"));y&&Qt(n,"electricInput",n,u.head.line)}}}function Xm(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,m={anchor:de(u,0),head:de(u+1,0)};a.push(m),i.push(n.getRange(m.anchor,m.head))}return{text:i,ranges:a}}function gd(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function Ym(){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 g?n.style.width="1000px":n.setAttribute("wrap","off"),R&&(n.style.border="1px solid black"),i}function YS(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Re(this).focus(),this.display.input.focus()},setOption:function(l,u){var m=this.options,y=m[l];m[l]==u&&l!="mode"||(m[l]=u,i.hasOwnProperty(l)&&en(this,i[l])(this,u,y),$t(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"](Ac(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,m=0;m<u.length;++m)if(u[m]==l||u[m].name==l)return u.splice(m,1),!0},addOverlay:yn(function(l,u){var m=l.token?l:n.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");J(this.state.overlays,{mode:m,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,Tn(this)}),removeOverlay:yn(function(l){for(var u=this.state.overlays,m=0;m<u.length;++m){var y=u[m].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(m,1),this.state.modeGen++,Tn(this);return}}}),indentLine:yn(function(l,u,m){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),ye(this.doc,l)&&Ul(this,l,u,m)}),indentSelection:yn(function(l){for(var u=this.doc.sel.ranges,m=-1,y=0;y<u.length;y++){var x=u[y];if(x.empty())x.head.line>m&&(Ul(this,x.head.line,l,!0),m=x.head.line,y==this.doc.sel.primIndex&&bs(this));else{var S=x.from(),_=x.to(),B=Math.max(m,S.line);m=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var U=B;U<m;++U)Ul(this,U,l);var se=this.doc.sel.ranges;S.ch==0&&u.length==se.length&&se[y].from().ch>0&&sd(this.doc,y,new gt(S,se[y].to()),Q)}}}),getTokenAt:function(l,u){return sg(this,l,u)},getLineTokens:function(l,u){return sg(this,de(l),u,!0)},getTokenTypeAt:function(l){l=nt(this.doc,l);var u=rg(this,We(this.doc,l.line)),m=0,y=(u.length-1)/2,x=l.ch,S;if(x==0)S=u[2];else for(;;){var _=m+y>>1;if((_?u[_*2-1]:0)>=x)y=_;else if(u[_*2+1]<x)m=_+1;else{S=u[_*2+2];break}}var B=S?S.indexOf("overlay "):-1;return B<0?S:B==0?null:S.slice(0,B-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 m=[];if(!a.hasOwnProperty(u))return m;var y=a[u],x=this.getModeAt(l);if(typeof x[u]=="string")y[x[u]]&&m.push(y[x[u]]);else if(x[u])for(var S=0;S<x[u].length;S++){var _=y[x[u][S]];_&&m.push(_)}else x.helperType&&y[x.helperType]?m.push(y[x.helperType]):y[x.name]&&m.push(y[x.name]);for(var B=0;B<y._global.length;B++){var U=y._global[B];U.pred(x,this)&&ue(m,U.val)==-1&&m.push(U.val)}return m},getStateAfter:function(l,u){var m=this.doc;return l=eg(m,l??m.first+m.size-1),bl(this,l+1,u).state},cursorCoords:function(l,u){var m,y=this.doc.sel.primary();return l==null?m=y.head:typeof l=="object"?m=nt(this.doc,l):m=l?y.from():y.to(),_r(this,m,u||"page")},charCoords:function(l,u){return hc(this,nt(this.doc,l),u||"page")},coordsChar:function(l,u){return l=$g(this,l,u||"page"),Ff(this,l.left,l.top)},lineAtHeight:function(l,u){return l=$g(this,{top:l,left:0},u||"page").top,q(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,m){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=We(this.doc,l)}else x=l;return dc(this,x,{top:0,left:0},u||"page",m||y).top+(y?this.doc.height-si(x):0)},defaultTextHeight:function(){return ms(this.display)},defaultCharWidth:function(){return vs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,m,y,x){var S=this.display;l=_r(this,nt(this.doc,l));var _=l.bottom,B=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 U=Math.max(S.wrapper.clientHeight,this.doc.height),se=Math.max(S.sizer.clientWidth,S.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>U)&&l.top>u.offsetHeight?_=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=U&&(_=l.bottom),B+u.offsetWidth>se&&(B=se-u.offsetWidth)}u.style.top=_+"px",u.style.left=u.style.right="",x=="right"?(B=S.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?B=0:x=="middle"&&(B=(S.sizer.clientWidth-u.offsetWidth)/2),u.style.left=B+"px"),m&&Gk(this,{left:B,top:_,right:B+u.offsetWidth,bottom:_+u.offsetHeight})},triggerOnKeyDown:yn(zm),triggerOnKeyPress:yn(Hm),triggerOnKeyUp:Fm,triggerOnMouseDown:yn(Bm),execCommand:function(l){if(Bl.hasOwnProperty(l))return Bl[l].call(null,this)},triggerElectric:yn(function(l){Km(this,l)}),findPosH:function(l,u,m,y){var x=1;u<0&&(x=-1,u=-u);for(var S=nt(this.doc,l),_=0;_<u&&(S=md(this.doc,S,x,m,y),!S.hitSide);++_);return S},moveH:yn(function(l,u){var m=this;this.extendSelectionsBy(function(y){return m.display.shift||m.doc.extend||y.empty()?md(m.doc,y.head,l,u,m.options.rtlMoveVisually):l<0?y.from():y.to()},pe)}),deleteH:yn(function(l,u){var m=this.doc.sel,y=this.doc;m.somethingSelected()?y.replaceSelection("",null,"+delete"):Es(this,function(x){var S=md(y,x.head,l,u,!1);return l<0?{from:S,to:x.head}:{from:x.head,to:S}})}),findPosV:function(l,u,m,y){var x=1,S=y;u<0&&(x=-1,u=-u);for(var _=nt(this.doc,l),B=0;B<u;++B){var U=_r(this,_,"div");if(S==null?S=U.left:U.left=S,_=Zm(this,U,x,m),_.hitSide)break}return _},moveV:yn(function(l,u){var m=this,y=this.doc,x=[],S=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(B){if(S)return l<0?B.from():B.to();var U=_r(m,B.head,"div");B.goalColumn!=null&&(U.left=B.goalColumn),x.push(U.left);var se=Zm(m,U,l,u);return u=="page"&&B==y.sel.primary()&&Xf(m,hc(m,se,"div").top-U.top),se},pe),x.length)for(var _=0;_<y.sel.ranges.length;_++)y.sel.ranges[_].goalColumn=x[_]}),findWordAt:function(l){var u=this.doc,m=We(u,l.line).text,y=l.ch,x=l.ch;if(m){var S=this.getHelper(l,"wordChars");(l.sticky=="before"||x==m.length)&&y?--y:++x;for(var _=m.charAt(y),B=ct(_,S)?function(U){return ct(U,S)}:/\s/.test(_)?function(U){return/\s/.test(U)}:function(U){return!/\s/.test(U)&&!ct(U)};y>0&&B(m.charAt(y-1));)--y;for(;x<m.length&&B(m.charAt(x));)++x}return new gt(de(l.line,y),de(l.line,x))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Se(this.display.cursorDiv,"CodeMirror-overwrite"):O(this.display.cursorDiv,"CodeMirror-overwrite"),$t(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ce(qe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:yn(function(l,u){Cl(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-qr(this)-this.display.barHeight,width:l.scrollWidth-qr(this)-this.display.barWidth,clientHeight:$f(this),clientWidth:Eo(this)}},scrollIntoView:yn(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:de(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?Kk(this,l):qg(this,l.from,l.to,l.margin)}),setSize:yn(function(l,u){var m=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&&Og(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){Hi(m,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,$t(this,"refresh",this)}),operation:function(l){return Wn(this,l)},startOperation:function(){return Po(this)},endOperation:function(){return Ro(this)},refresh:yn(function(){var l=this.display.cachedTextHeight;Tn(this),this.curOp.forceUpdate=!0,_l(this),Cl(this,this.doc.scrollLeft,this.doc.scrollTop),Jf(this.display),(l==null||Math.abs(l-ms(this.display))>.5||this.options.lineWrapping)&&Wf(this),$t(this,"refresh",this)}),swapDoc:yn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),im(this,l),_l(this),this.display.input.reset(),Cl(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Qt(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}},yr(n),n.registerHelper=function(l,u,m){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=m},n.registerGlobalHelper=function(l,u,m,y){n.registerHelper(l,u,y),a[l]._global.push({pred:m,val:y})}}function md(n,i,a,l,u){var m=i,y=a,x=We(n,i.line),S=u&&n.direction=="rtl"?-a:a;function _(){var De=i.line+S;return De<n.first||De>=n.first+n.size?!1:(i=new de(De,i.ch,i.sticky),x=We(n,De))}function B(De){var Pe;if(l=="codepoint"){var ze=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(ze))Pe=null;else{var Ze=a>0?ze>=55296&&ze<56320:ze>=56320&&ze<57343;Pe=new de(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(Ze?2:1))),-a)}}else u?Pe=NS(n.cm,x,i,a):Pe=ad(x,i,a);if(Pe==null)if(!De&&_())i=cd(u,n.cm,x,i.line,S);else return!1;else i=Pe;return!0}if(l=="char"||l=="codepoint")B();else if(l=="column")B(!0);else if(l=="word"||l=="group")for(var U=null,se=l=="group",te=n.cm&&n.cm.getHelper(i,"wordChars"),ge=!0;!(a<0&&!B(!ge));ge=!1){var we=x.text.charAt(i.ch)||`
|
|
36
|
-
`,Te=ct(we,te)?"w":se&&we==`
|
|
37
|
-
`?"n":!se||/\s/.test(we)?null:"p";if(se&&!ge&&!Te&&(Te="s"),U&&U!=Te){a<0&&(a=1,B(),i.sticky="after");break}if(Te&&(U=Te),a>0&&!B(!ge))break}var Oe=Tc(n,i,m,y,!0);return pt(m,Oe)&&(Oe.hitSide=!0),Oe}function Zm(n,i,a,l){var u=n.doc,m=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,Re(n).innerHeight||u(n).documentElement.clientHeight),S=Math.max(x-.5*ms(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 _;_=Ff(n,m,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 le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,gd(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(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}Ye(u,"paste",function(x){!m(x)||It(l,x)||Gm(x,l)||p<=11&&setTimeout(en(l,function(){return i.updateFromDOM()}),20)}),Ye(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),Ye(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),Ye(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Ye(u,"touchstart",function(){return a.forceCompositionEnd()}),Ye(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!m(x)||It(l,x))){if(l.somethingSelected())Nc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var S=Xm(l);Nc({lineWise:!0,text:S.text}),x.type=="cut"&&l.operation(function(){l.setSelections(S.ranges,0,Q),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var _=Cr.text.join(`
|
|
38
|
-
`);if(x.clipboardData.setData("Text",_),x.clipboardData.getData("Text")==_){x.preventDefault();return}}var B=Ym(),U=B.firstChild;gd(U),l.display.lineSpace.insertBefore(B,l.display.lineSpace.firstChild),U.value=Cr.text.join(`
|
|
39
|
-
`);var se=ce(Fe(u));Ae(U),setTimeout(function(){l.display.lineSpace.removeChild(B),se.focus(),se==u&&a.showPrimarySelection()},50)}}Ye(u,"copy",y),Ye(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=Bg(this.cm,!1);return n.focus=ce(Fe(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 m=Oc(i,n.anchorNode,n.anchorOffset),y=Oc(i,n.focusNode,n.focusOffset);if(!(m&&!m.bad&&y&&!y.bad&&Ie(ds(m,y),l)==0&&Ie(_n(m,y),u)==0)){var x=i.display.view,S=l.line>=i.display.viewFrom&&Jm(i,l)||{node:x[0].measure.map[2],offset:0},_=u.line<i.display.viewTo&&Jm(i,u);if(!_){var B=x[x.length-1].measure,U=B.maps?B.maps[B.maps.length-1]:B.map;_={node:U[U.length-1],offset:U[U.length-2]-U[U.length-3]}}if(!S||!_){n.removeAllRanges();return}var se=n.rangeCount&&n.getRangeAt(0),te;try{te=$(S.node,S.offset,_.offset,_.node)}catch{}te&&(!s&&i.state.focused?(n.collapse(S.node,S.offset),te.collapsed||(n.removeAllRanges(),n.addRange(te))):(n.removeAllRanges(),n.addRange(te)),se&&n.anchorNode==null?n.addRange(se):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){C(this.cm.display.cursorDiv,n.cursors),C(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 ae(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ce(Fe(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Wn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(I&&b&&this.cm.display.gutterSpecs.length&&ZS(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Oc(i,n.anchorNode,n.anchorOffset),l=Oc(i,n.focusNode,n.focusOffset);a&&l&&Wn(i,function(){fn(i.doc,ji(a,l),Q),(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=de(l.line-1,We(n.doc,l.line-1).length)),u.ch==We(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=de(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var m,y,x;l.line==i.viewFrom||(m=Mo(n,l.line))==0?(y=A(i.view[0].line),x=i.view[0].node):(y=A(i.view[m].line),x=i.view[m-1].node.nextSibling);var S=Mo(n,u.line),_,B;if(S==i.view.length-1?(_=i.viewTo-1,B=i.lineDiv.lastChild):(_=A(i.view[S+1].line)-1,B=i.view[S+1].node.previousSibling),!x)return!1;for(var U=n.doc.splitLines(JS(n,x,B,y,_)),se=ii(n.doc,de(y,0),de(_,We(n.doc,_).text.length));U.length>1&&se.length>1;)if(ke(U)==ke(se))U.pop(),se.pop(),_--;else if(U[0]==se[0])U.shift(),se.shift(),y++;else break;for(var te=0,ge=0,we=U[0],Te=se[0],Oe=Math.min(we.length,Te.length);te<Oe&&we.charCodeAt(te)==Te.charCodeAt(te);)++te;for(var De=ke(U),Pe=ke(se),ze=Math.min(De.length-(U.length==1?te:0),Pe.length-(se.length==1?te:0));ge<ze&&De.charCodeAt(De.length-ge-1)==Pe.charCodeAt(Pe.length-ge-1);)++ge;if(U.length==1&&se.length==1&&y==l.line)for(;te&&te>l.ch&&De.charCodeAt(De.length-ge-1)==Pe.charCodeAt(Pe.length-ge-1);)te--,ge++;U[U.length-1]=De.slice(0,De.length-ge).replace(/^\u200b+/,""),U[0]=U[0].slice(te).replace(/\u200b+$/,"");var Ze=de(y,te),Ge=de(_,se.length?ke(se).length-ge:0);if(U.length>1||U[0]||Ie(Ze,Ge))return _s(n.doc,U,Ze,Ge,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Wn(this.cm,function(){return Tn(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||en(this.cm,pd)(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 Jm(n,i){var a=If(n,i.line);if(!a||a.hidden)return null;var l=We(n.doc,i.line),u=Eg(a,l,i.line),m=at(l,n.doc.direction),y="left";if(m){var x=Bt(m,i.ch);y=x%2?"right":"left"}var S=Mg(u.map,i.ch,y);return S.offset=S.collapse=="right"?S.end:S.start,S}function ZS(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function Ls(n,i){return i&&(n.bad=!0),n}function JS(n,i,a,l,u){var m="",y=!1,x=n.doc.lineSeparator(),S=!1;function _(te){return function(ge){return ge.id==te}}function B(){y&&(m+=x,S&&(m+=x),y=S=!1)}function U(te){te&&(B(),m+=te)}function se(te){if(te.nodeType==1){var ge=te.getAttribute("cm-text");if(ge){U(ge);return}var we=te.getAttribute("cm-marker"),Te;if(we){var Oe=n.findMarks(de(l,0),de(u+1,0),_(+we));Oe.length&&(Te=Oe[0].find(0))&&U(ii(n.doc,Te.from,Te.to).join(x));return}if(te.getAttribute("contenteditable")=="false")return;var De=/^(pre|div|p|li|table|br)$/i.test(te.nodeName);if(!/^br$/i.test(te.nodeName)&&te.textContent.length==0)return;De&&B();for(var Pe=0;Pe<te.childNodes.length;Pe++)se(te.childNodes[Pe]);/^(pre|p)$/i.test(te.nodeName)&&(S=!0),De&&(y=!0)}else te.nodeType==3&&U(te.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;se(i),i!=a;)i=i.nextSibling,S=!1;return m}function Oc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return Ls(n.clipPos(de(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 m=n.display.view[u];if(m.node==l)return QS(m,i,a)}}function QS(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!ae(l,i))return Ls(de(A(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var m=n.rest?ke(n.rest):n.line;return Ls(de(A(m),m.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 B(Te,Oe,De){for(var Pe=-1;Pe<(_?_.length:0);Pe++)for(var ze=Pe<0?S.map:_[Pe],Ze=0;Ze<ze.length;Ze+=3){var Ge=ze[Ze+2];if(Ge==Te||Ge==Oe){var lt=A(Pe<0?n.line:n.rest[Pe]),_t=ze[Ze]+De;return(De<0||Ge!=Te)&&(_t=ze[Ze+(De?1:0)]),de(lt,_t)}}}var U=B(y,x,a);if(U)return Ls(U,u);for(var se=x.nextSibling,te=y?y.nodeValue.length-a:0;se;se=se.nextSibling){if(U=B(se,se.firstChild,0),U)return Ls(de(U.line,U.ch-te),u);te+=se.textContent.length}for(var ge=x.previousSibling,we=a;ge;ge=ge.previousSibling){if(U=B(ge,ge.firstChild,-1),U)return Ls(de(U.line,U.ch+we),u);we+=ge.textContent.length}}var jt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};jt.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),R&&(u.style.width="0px"),Ye(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Ye(u,"paste",function(y){It(l,y)||Gm(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function m(y){if(!It(l,y)){if(l.somethingSelected())Nc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=Xm(l);Nc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,Q):(a.prevInput="",u.value=x.text.join(`
|
|
40
|
-
`),Ae(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Ye(u,"cut",m),Ye(u,"copy",m),Ye(n.scroller,"paste",function(y){if(!(li(n,y)||It(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var x=new Event("paste");x.clipboardData=y.clipboardData,u.dispatchEvent(x)}}),Ye(n.lineSpace,"selectstart",function(y){li(n,y)||un(y)}),Ye(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Ye(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},jt.prototype.createField=function(n){this.wrapper=Ym(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;gd(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},jt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},jt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Bg(n);if(n.options.moveInputWithCursor){var u=_r(n,a.sel.primary().head,"div"),m=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-m.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-m.left))}return l},jt.prototype.showSelection=function(n){var i=this.cm,a=i.display;C(a.cursorDiv,n.cursors),C(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},jt.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&Ae(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},jt.prototype.getField=function(){return this.textarea},jt.prototype.supportsTouch=function(){return!1},jt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||ce(Fe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},jt.prototype.blur=function(){this.textarea.blur()},jt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},jt.prototype.receivedFocus=function(){this.slowPoll()},jt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},jt.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)},jt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Di(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||D&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var m=u.charCodeAt(0);if(m==8203&&!l&&(l=""),m==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 Wn(i,function(){pd(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},jt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},jt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},jt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var m=Lo(a,n),y=l.scroller.scrollTop;if(!m||T)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(m)==-1&&en(a,fn)(a.doc,ji(m),Q);var S=u.style.cssText,_=i.wrapper.style.cssText,B=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
42
|
-
top: `+(n.clientY-B.top-5)+"px; left: "+(n.clientX-B.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 U;g&&(U=u.ownerDocument.defaultView.scrollY),l.input.focus(),g&&u.ownerDocument.defaultView.scrollTo(null,U),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=te,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function se(){if(u.selectionStart!=null){var we=a.somethingSelected(),Te=""+(we?u.value:"");u.value="⇚",u.value=Te,i.prevInput=we?"":"",u.selectionStart=1,u.selectionEnd=Te.length,l.selForContextMenu=a.doc.sel}}function te(){if(i.contextMenuPending==te&&(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)&&se();var we=0,Te=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?en(a,vm)(a):we++<10?l.detectingSelectAll=setTimeout(Te,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(Te,200)}}if(h&&p>=9&&se(),G){$i(n);var ge=function(){cn(window,"mouseup",ge),setTimeout(te,20)};Ye(window,"mouseup",ge)}else setTimeout(te,50)},jt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},jt.prototype.setUneditable=function(){},jt.prototype.needsContentAttribute=!1;function e_(n,i){if(i=i?Z(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=ce(Fe(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(Ye(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var m=n.form;u=m.submit;try{var y=m.submit=function(){l(),m.submit=u,m.submit(),m.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&&(cn(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=At(function(S){return n.parentNode.insertBefore(S,n.nextSibling)},i);return x}function t_(n){n.off=cn,n.on=Ye,n.wheelEventPixels=aS,n.Doc=Cn,n.splitLines=cr,n.countColumn=re,n.findColumn=me,n.isWordChar=Qe,n.Pass=W,n.signal=$t,n.Line=hs,n.changeEnd=Wi,n.scrollbarModel=Gg,n.Pos=de,n.cmpPos=Ie,n.modes=ls,n.mimeModes=xr,n.resolveMode=as,n.getMode=cs,n.modeExtensions=zi,n.extendMode=us,n.copyState=jr,n.startState=fs,n.innerMode=vl,n.commands=Bl,n.keyMap=ci,n.keyName=Pm,n.isModifierKey=Nm,n.lookupKey=Cs,n.normalizeKeyMap=MS,n.StringStream=Dt,n.SharedTextMarker=zl,n.TextMarker=Ui,n.LineWidget=Dl,n.e_preventDefault=un,n.e_stopPropagation=os,n.e_stop=$i,n.addClass=Se,n.contains=ae,n.rmClass=O,n.keyNames=Vi}VS(At),YS(At);var n_="iter insert remove copy getEditor constructor".split(" ");for(var Pc in Cn.prototype)Cn.prototype.hasOwnProperty(Pc)&&ue(n_,Pc)<0&&(At.prototype[Pc]=(function(n){return function(){return n.apply(this.doc,arguments)}})(Cn.prototype[Pc]));return yr(Cn),At.inputStyles={textarea:jt,contenteditable:yt},At.defineMode=function(n){!At.defaults.mode&&n!="null"&&(At.defaults.mode=n),kr.apply(this,arguments)},At.defineMIME=Co,At.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),At.defineMIME("text/plain","null"),At.defineExtension=function(n,i){At.prototype[n]=i},At.defineDocExtension=function(n,i){Cn.prototype[n]=i},At.fromTextArea=e_,t_(At),At.version="5.65.18",At}))})(su)),su.exports}var pM=_o();const gM=Mx(pM);var Id={},Er={};const mM="Á",vM="á",yM="Ă",bM="ă",wM="∾",xM="∿",kM="∾̳",SM="Â",_M="â",TM="´",CM="А",EM="а",AM="Æ",LM="æ",MM="",NM="𝔄",OM="𝔞",PM="À",RM="à",$M="ℵ",IM="ℵ",DM="Α",zM="α",FM="Ā",HM="ā",BM="⨿",jM="&",WM="&",qM="⩕",UM="⩓",VM="∧",GM="⩜",KM="⩘",XM="⩚",YM="∠",ZM="⦤",JM="∠",QM="⦨",eN="⦩",tN="⦪",nN="⦫",rN="⦬",iN="⦭",oN="⦮",sN="⦯",lN="∡",aN="∟",cN="⊾",uN="⦝",fN="∢",dN="Å",hN="⍼",pN="Ą",gN="ą",mN="𝔸",vN="𝕒",yN="⩯",bN="≈",wN="⩰",xN="≊",kN="≋",SN="'",_N="",TN="≈",CN="≊",EN="Å",AN="å",LN="𝒜",MN="𝒶",NN="≔",ON="*",PN="≈",RN="≍",$N="Ã",IN="ã",DN="Ä",zN="ä",FN="∳",HN="⨑",BN="≌",jN="϶",WN="‵",qN="∽",UN="⋍",VN="∖",GN="⫧",KN="⊽",XN="⌅",YN="⌆",ZN="⌅",JN="⎵",QN="⎶",e2="≌",t2="Б",n2="б",r2="„",i2="∵",o2="∵",s2="∵",l2="⦰",a2="϶",c2="ℬ",u2="ℬ",f2="Β",d2="β",h2="ℶ",p2="≬",g2="𝔅",m2="𝔟",v2="⋂",y2="◯",b2="⋃",w2="⨀",x2="⨁",k2="⨂",S2="⨆",_2="★",T2="▽",C2="△",E2="⨄",A2="⋁",L2="⋀",M2="⤍",N2="⧫",O2="▪",P2="▴",R2="▾",$2="◂",I2="▸",D2="␣",z2="▒",F2="░",H2="▓",B2="█",j2="=⃥",W2="≡⃥",q2="⫭",U2="⌐",V2="𝔹",G2="𝕓",K2="⊥",X2="⊥",Y2="⋈",Z2="⧉",J2="┐",Q2="╕",eO="╖",tO="╗",nO="┌",rO="╒",iO="╓",oO="╔",sO="─",lO="═",aO="┬",cO="╤",uO="╥",fO="╦",dO="┴",hO="╧",pO="╨",gO="╩",mO="⊟",vO="⊞",yO="⊠",bO="┘",wO="╛",xO="╜",kO="╝",SO="└",_O="╘",TO="╙",CO="╚",EO="│",AO="║",LO="┼",MO="╪",NO="╫",OO="╬",PO="┤",RO="╡",$O="╢",IO="╣",DO="├",zO="╞",FO="╟",HO="╠",BO="‵",jO="˘",WO="˘",qO="¦",UO="𝒷",VO="ℬ",GO="⁏",KO="∽",XO="⋍",YO="⧅",ZO="\\",JO="⟈",QO="•",eP="•",tP="≎",nP="⪮",rP="≏",iP="≎",oP="≏",sP="Ć",lP="ć",aP="⩄",cP="⩉",uP="⩋",fP="∩",dP="⋒",hP="⩇",pP="⩀",gP="ⅅ",mP="∩︀",vP="⁁",yP="ˇ",bP="ℭ",wP="⩍",xP="Č",kP="č",SP="Ç",_P="ç",TP="Ĉ",CP="ĉ",EP="∰",AP="⩌",LP="⩐",MP="Ċ",NP="ċ",OP="¸",PP="¸",RP="⦲",$P="¢",IP="·",DP="·",zP="𝔠",FP="ℭ",HP="Ч",BP="ч",jP="✓",WP="✓",qP="Χ",UP="χ",VP="ˆ",GP="≗",KP="↺",XP="↻",YP="⊛",ZP="⊚",JP="⊝",QP="⊙",eR="®",tR="Ⓢ",nR="⊖",rR="⊕",iR="⊗",oR="○",sR="⧃",lR="≗",aR="⨐",cR="⫯",uR="⧂",fR="∲",dR="”",hR="’",pR="♣",gR="♣",mR=":",vR="∷",yR="⩴",bR="≔",wR="≔",xR=",",kR="@",SR="∁",_R="∘",TR="∁",CR="ℂ",ER="≅",AR="⩭",LR="≡",MR="∮",NR="∯",OR="∮",PR="𝕔",RR="ℂ",$R="∐",IR="∐",DR="©",zR="©",FR="℗",HR="∳",BR="↵",jR="✗",WR="⨯",qR="𝒞",UR="𝒸",VR="⫏",GR="⫑",KR="⫐",XR="⫒",YR="⋯",ZR="⤸",JR="⤵",QR="⋞",e$="⋟",t$="↶",n$="⤽",r$="⩈",i$="⩆",o$="≍",s$="∪",l$="⋓",a$="⩊",c$="⊍",u$="⩅",f$="∪︀",d$="↷",h$="⤼",p$="⋞",g$="⋟",m$="⋎",v$="⋏",y$="¤",b$="↶",w$="↷",x$="⋎",k$="⋏",S$="∲",_$="∱",T$="⌭",C$="†",E$="‡",A$="ℸ",L$="↓",M$="↡",N$="⇓",O$="‐",P$="⫤",R$="⊣",$$="⤏",I$="˝",D$="Ď",z$="ď",F$="Д",H$="д",B$="‡",j$="⇊",W$="ⅅ",q$="ⅆ",U$="⤑",V$="⩷",G$="°",K$="∇",X$="Δ",Y$="δ",Z$="⦱",J$="⥿",Q$="𝔇",eI="𝔡",tI="⥥",nI="⇃",rI="⇂",iI="´",oI="˙",sI="˝",lI="`",aI="˜",cI="⋄",uI="⋄",fI="⋄",dI="♦",hI="♦",pI="¨",gI="ⅆ",mI="ϝ",vI="⋲",yI="÷",bI="÷",wI="⋇",xI="⋇",kI="Ђ",SI="ђ",_I="⌞",TI="⌍",CI="$",EI="𝔻",AI="𝕕",LI="¨",MI="˙",NI="⃜",OI="≐",PI="≑",RI="≐",$I="∸",II="∔",DI="⊡",zI="⌆",FI="∯",HI="¨",BI="⇓",jI="⇐",WI="⇔",qI="⫤",UI="⟸",VI="⟺",GI="⟹",KI="⇒",XI="⊨",YI="⇑",ZI="⇕",JI="∥",QI="⤓",eD="↓",tD="↓",nD="⇓",rD="⇵",iD="̑",oD="⇊",sD="⇃",lD="⇂",aD="⥐",cD="⥞",uD="⥖",fD="↽",dD="⥟",hD="⥗",pD="⇁",gD="↧",mD="⊤",vD="⤐",yD="⌟",bD="⌌",wD="𝒟",xD="𝒹",kD="Ѕ",SD="ѕ",_D="⧶",TD="Đ",CD="đ",ED="⋱",AD="▿",LD="▾",MD="⇵",ND="⥯",OD="⦦",PD="Џ",RD="џ",$D="⟿",ID="É",DD="é",zD="⩮",FD="Ě",HD="ě",BD="Ê",jD="ê",WD="≖",qD="≕",UD="Э",VD="э",GD="⩷",KD="Ė",XD="ė",YD="≑",ZD="ⅇ",JD="≒",QD="𝔈",ez="𝔢",tz="⪚",nz="È",rz="è",iz="⪖",oz="⪘",sz="⪙",lz="∈",az="⏧",cz="ℓ",uz="⪕",fz="⪗",dz="Ē",hz="ē",pz="∅",gz="∅",mz="◻",vz="∅",yz="▫",bz=" ",wz=" ",xz=" ",kz="Ŋ",Sz="ŋ",_z=" ",Tz="Ę",Cz="ę",Ez="𝔼",Az="𝕖",Lz="⋕",Mz="⧣",Nz="⩱",Oz="ε",Pz="Ε",Rz="ε",$z="ϵ",Iz="≖",Dz="≕",zz="≂",Fz="⪖",Hz="⪕",Bz="⩵",jz="=",Wz="≂",qz="≟",Uz="⇌",Vz="≡",Gz="⩸",Kz="⧥",Xz="⥱",Yz="≓",Zz="ℯ",Jz="ℰ",Qz="≐",eF="⩳",tF="≂",nF="Η",rF="η",iF="Ð",oF="ð",sF="Ë",lF="ë",aF="€",cF="!",uF="∃",fF="∃",dF="ℰ",hF="ⅇ",pF="ⅇ",gF="≒",mF="Ф",vF="ф",yF="♀",bF="ffi",wF="ff",xF="ffl",kF="𝔉",SF="𝔣",_F="fi",TF="◼",CF="▪",EF="fj",AF="♭",LF="fl",MF="▱",NF="ƒ",OF="𝔽",PF="𝕗",RF="∀",$F="∀",IF="⋔",DF="⫙",zF="ℱ",FF="⨍",HF="½",BF="⅓",jF="¼",WF="⅕",qF="⅙",UF="⅛",VF="⅔",GF="⅖",KF="¾",XF="⅗",YF="⅜",ZF="⅘",JF="⅚",QF="⅝",eH="⅞",tH="⁄",nH="⌢",rH="𝒻",iH="ℱ",oH="ǵ",sH="Γ",lH="γ",aH="Ϝ",cH="ϝ",uH="⪆",fH="Ğ",dH="ğ",hH="Ģ",pH="Ĝ",gH="ĝ",mH="Г",vH="г",yH="Ġ",bH="ġ",wH="≥",xH="≧",kH="⪌",SH="⋛",_H="≥",TH="≧",CH="⩾",EH="⪩",AH="⩾",LH="⪀",MH="⪂",NH="⪄",OH="⋛︀",PH="⪔",RH="𝔊",$H="𝔤",IH="≫",DH="⋙",zH="⋙",FH="ℷ",HH="Ѓ",BH="ѓ",jH="⪥",WH="≷",qH="⪒",UH="⪤",VH="⪊",GH="⪊",KH="⪈",XH="≩",YH="⪈",ZH="≩",JH="⋧",QH="𝔾",e3="𝕘",t3="`",n3="≥",r3="⋛",i3="≧",o3="⪢",s3="≷",l3="⩾",a3="≳",c3="𝒢",u3="ℊ",f3="≳",d3="⪎",h3="⪐",p3="⪧",g3="⩺",m3=">",v3=">",y3="≫",b3="⋗",w3="⦕",x3="⩼",k3="⪆",S3="⥸",_3="⋗",T3="⋛",C3="⪌",E3="≷",A3="≳",L3="≩︀",M3="≩︀",N3="ˇ",O3=" ",P3="½",R3="ℋ",$3="Ъ",I3="ъ",D3="⥈",z3="↔",F3="⇔",H3="↭",B3="^",j3="ℏ",W3="Ĥ",q3="ĥ",U3="♥",V3="♥",G3="…",K3="⊹",X3="𝔥",Y3="ℌ",Z3="ℋ",J3="⤥",Q3="⤦",eB="⇿",tB="∻",nB="↩",rB="↪",iB="𝕙",oB="ℍ",sB="―",lB="─",aB="𝒽",cB="ℋ",uB="ℏ",fB="Ħ",dB="ħ",hB="≎",pB="≏",gB="⁃",mB="‐",vB="Í",yB="í",bB="",wB="Î",xB="î",kB="И",SB="и",_B="İ",TB="Е",CB="е",EB="¡",AB="⇔",LB="𝔦",MB="ℑ",NB="Ì",OB="ì",PB="ⅈ",RB="⨌",$B="∭",IB="⧜",DB="℩",zB="IJ",FB="ij",HB="Ī",BB="ī",jB="ℑ",WB="ⅈ",qB="ℐ",UB="ℑ",VB="ı",GB="ℑ",KB="⊷",XB="Ƶ",YB="⇒",ZB="℅",JB="∞",QB="⧝",e5="ı",t5="⊺",n5="∫",r5="∬",i5="ℤ",o5="∫",s5="⊺",l5="⋂",a5="⨗",c5="⨼",u5="",f5="",d5="Ё",h5="ё",p5="Į",g5="į",m5="𝕀",v5="𝕚",y5="Ι",b5="ι",w5="⨼",x5="¿",k5="𝒾",S5="ℐ",_5="∈",T5="⋵",C5="⋹",E5="⋴",A5="⋳",L5="∈",M5="",N5="Ĩ",O5="ĩ",P5="І",R5="і",$5="Ï",I5="ï",D5="Ĵ",z5="ĵ",F5="Й",H5="й",B5="𝔍",j5="𝔧",W5="ȷ",q5="𝕁",U5="𝕛",V5="𝒥",G5="𝒿",K5="Ј",X5="ј",Y5="Є",Z5="є",J5="Κ",Q5="κ",e8="ϰ",t8="Ķ",n8="ķ",r8="К",i8="к",o8="𝔎",s8="𝔨",l8="ĸ",a8="Х",c8="х",u8="Ќ",f8="ќ",d8="𝕂",h8="𝕜",p8="𝒦",g8="𝓀",m8="⇚",v8="Ĺ",y8="ĺ",b8="⦴",w8="ℒ",x8="Λ",k8="λ",S8="⟨",_8="⟪",T8="⦑",C8="⟨",E8="⪅",A8="ℒ",L8="«",M8="⇤",N8="⤟",O8="←",P8="↞",R8="⇐",$8="⤝",I8="↩",D8="↫",z8="⤹",F8="⥳",H8="↢",B8="⤙",j8="⤛",W8="⪫",q8="⪭",U8="⪭︀",V8="⤌",G8="⤎",K8="❲",X8="{",Y8="[",Z8="⦋",J8="⦏",Q8="⦍",ej="Ľ",tj="ľ",nj="Ļ",rj="ļ",ij="⌈",oj="{",sj="Л",lj="л",aj="⤶",cj="“",uj="„",fj="⥧",dj="⥋",hj="↲",pj="≤",gj="≦",mj="⟨",vj="⇤",yj="←",bj="←",wj="⇐",xj="⇆",kj="↢",Sj="⌈",_j="⟦",Tj="⥡",Cj="⥙",Ej="⇃",Aj="⌊",Lj="↽",Mj="↼",Nj="⇇",Oj="↔",Pj="↔",Rj="⇔",$j="⇆",Ij="⇋",Dj="↭",zj="⥎",Fj="↤",Hj="⊣",Bj="⥚",jj="⋋",Wj="⧏",qj="⊲",Uj="⊴",Vj="⥑",Gj="⥠",Kj="⥘",Xj="↿",Yj="⥒",Zj="↼",Jj="⪋",Qj="⋚",eW="≤",tW="≦",nW="⩽",rW="⪨",iW="⩽",oW="⩿",sW="⪁",lW="⪃",aW="⋚︀",cW="⪓",uW="⪅",fW="⋖",dW="⋚",hW="⪋",pW="⋚",gW="≦",mW="≶",vW="≶",yW="⪡",bW="≲",wW="⩽",xW="≲",kW="⥼",SW="⌊",_W="𝔏",TW="𝔩",CW="≶",EW="⪑",AW="⥢",LW="↽",MW="↼",NW="⥪",OW="▄",PW="Љ",RW="љ",$W="⇇",IW="≪",DW="⋘",zW="⌞",FW="⇚",HW="⥫",BW="◺",jW="Ŀ",WW="ŀ",qW="⎰",UW="⎰",VW="⪉",GW="⪉",KW="⪇",XW="≨",YW="⪇",ZW="≨",JW="⋦",QW="⟬",e4="⇽",t4="⟦",n4="⟵",r4="⟵",i4="⟸",o4="⟷",s4="⟷",l4="⟺",a4="⟼",c4="⟶",u4="⟶",f4="⟹",d4="↫",h4="↬",p4="⦅",g4="𝕃",m4="𝕝",v4="⨭",y4="⨴",b4="∗",w4="_",x4="↙",k4="↘",S4="◊",_4="◊",T4="⧫",C4="(",E4="⦓",A4="⇆",L4="⌟",M4="⇋",N4="⥭",O4="",P4="⊿",R4="‹",$4="𝓁",I4="ℒ",D4="↰",z4="↰",F4="≲",H4="⪍",B4="⪏",j4="[",W4="‘",q4="‚",U4="Ł",V4="ł",G4="⪦",K4="⩹",X4="<",Y4="<",Z4="≪",J4="⋖",Q4="⋋",eq="⋉",tq="⥶",nq="⩻",rq="◃",iq="⊴",oq="◂",sq="⦖",lq="⥊",aq="⥦",cq="≨︀",uq="≨︀",fq="¯",dq="♂",hq="✠",pq="✠",gq="↦",mq="↦",vq="↧",yq="↤",bq="↥",wq="▮",xq="⨩",kq="М",Sq="м",_q="—",Tq="∺",Cq="∡",Eq=" ",Aq="ℳ",Lq="𝔐",Mq="𝔪",Nq="℧",Oq="µ",Pq="*",Rq="⫰",$q="∣",Iq="·",Dq="⊟",zq="−",Fq="∸",Hq="⨪",Bq="∓",jq="⫛",Wq="…",qq="∓",Uq="⊧",Vq="𝕄",Gq="𝕞",Kq="∓",Xq="𝓂",Yq="ℳ",Zq="∾",Jq="Μ",Qq="μ",e6="⊸",t6="⊸",n6="∇",r6="Ń",i6="ń",o6="∠⃒",s6="≉",l6="⩰̸",a6="≋̸",c6="ʼn",u6="≉",f6="♮",d6="ℕ",h6="♮",p6=" ",g6="≎̸",m6="≏̸",v6="⩃",y6="Ň",b6="ň",w6="Ņ",x6="ņ",k6="≇",S6="⩭̸",_6="⩂",T6="Н",C6="н",E6="–",A6="⤤",L6="↗",M6="⇗",N6="↗",O6="≠",P6="≐̸",R6="",$6="",I6="",D6="",z6="≢",F6="⤨",H6="≂̸",B6="≫",j6="≪",W6=`
|
|
45
|
-
`,q6="∄",U6="∄",V6="𝔑",G6="𝔫",K6="≧̸",X6="≱",Y6="≱",Z6="≧̸",J6="⩾̸",Q6="⩾̸",eU="⋙̸",tU="≵",nU="≫⃒",rU="≯",iU="≯",oU="≫̸",sU="↮",lU="⇎",aU="⫲",cU="∋",uU="⋼",fU="⋺",dU="∋",hU="Њ",pU="њ",gU="↚",mU="⇍",vU="‥",yU="≦̸",bU="≰",wU="↚",xU="⇍",kU="↮",SU="⇎",_U="≰",TU="≦̸",CU="⩽̸",EU="⩽̸",AU="≮",LU="⋘̸",MU="≴",NU="≪⃒",OU="≮",PU="⋪",RU="⋬",$U="≪̸",IU="∤",DU="",zU=" ",FU="𝕟",HU="ℕ",BU="⫬",jU="¬",WU="≢",qU="≭",UU="∦",VU="∉",GU="≠",KU="≂̸",XU="∄",YU="≯",ZU="≱",JU="≧̸",QU="≫̸",eV="≹",tV="⩾̸",nV="≵",rV="≎̸",iV="≏̸",oV="∉",sV="⋵̸",lV="⋹̸",aV="∉",cV="⋷",uV="⋶",fV="⧏̸",dV="⋪",hV="⋬",pV="≮",gV="≰",mV="≸",vV="≪̸",yV="⩽̸",bV="≴",wV="⪢̸",xV="⪡̸",kV="∌",SV="∌",_V="⋾",TV="⋽",CV="⊀",EV="⪯̸",AV="⋠",LV="∌",MV="⧐̸",NV="⋫",OV="⋭",PV="⊏̸",RV="⋢",$V="⊐̸",IV="⋣",DV="⊂⃒",zV="⊈",FV="⊁",HV="⪰̸",BV="⋡",jV="≿̸",WV="⊃⃒",qV="⊉",UV="≁",VV="≄",GV="≇",KV="≉",XV="∤",YV="∦",ZV="∦",JV="⫽⃥",QV="∂̸",eG="⨔",tG="⊀",nG="⋠",rG="⊀",iG="⪯̸",oG="⪯̸",sG="⤳̸",lG="↛",aG="⇏",cG="↝̸",uG="↛",fG="⇏",dG="⋫",hG="⋭",pG="⊁",gG="⋡",mG="⪰̸",vG="𝒩",yG="𝓃",bG="∤",wG="∦",xG="≁",kG="≄",SG="≄",_G="∤",TG="∦",CG="⋢",EG="⋣",AG="⊄",LG="⫅̸",MG="⊈",NG="⊂⃒",OG="⊈",PG="⫅̸",RG="⊁",$G="⪰̸",IG="⊅",DG="⫆̸",zG="⊉",FG="⊃⃒",HG="⊉",BG="⫆̸",jG="≹",WG="Ñ",qG="ñ",UG="≸",VG="⋪",GG="⋬",KG="⋫",XG="⋭",YG="Ν",ZG="ν",JG="#",QG="№",e9=" ",t9="≍⃒",n9="⊬",r9="⊭",i9="⊮",o9="⊯",s9="≥⃒",l9=">⃒",a9="⤄",c9="⧞",u9="⤂",f9="≤⃒",d9="<⃒",h9="⊴⃒",p9="⤃",g9="⊵⃒",m9="∼⃒",v9="⤣",y9="↖",b9="⇖",w9="↖",x9="⤧",k9="Ó",S9="ó",_9="⊛",T9="Ô",C9="ô",E9="⊚",A9="О",L9="о",M9="⊝",N9="Ő",O9="ő",P9="⨸",R9="⊙",$9="⦼",I9="Œ",D9="œ",z9="⦿",F9="𝔒",H9="𝔬",B9="˛",j9="Ò",W9="ò",q9="⧁",U9="⦵",V9="Ω",G9="∮",K9="↺",X9="⦾",Y9="⦻",Z9="‾",J9="⧀",Q9="Ō",eK="ō",tK="Ω",nK="ω",rK="Ο",iK="ο",oK="⦶",sK="⊖",lK="𝕆",aK="𝕠",cK="⦷",uK="“",fK="‘",dK="⦹",hK="⊕",pK="↻",gK="⩔",mK="∨",vK="⩝",yK="ℴ",bK="ℴ",wK="ª",xK="º",kK="⊶",SK="⩖",_K="⩗",TK="⩛",CK="Ⓢ",EK="𝒪",AK="ℴ",LK="Ø",MK="ø",NK="⊘",OK="Õ",PK="õ",RK="⨶",$K="⨷",IK="⊗",DK="Ö",zK="ö",FK="⌽",HK="‾",BK="⏞",jK="⎴",WK="⏜",qK="¶",UK="∥",VK="∥",GK="⫳",KK="⫽",XK="∂",YK="∂",ZK="П",JK="п",QK="%",e7=".",t7="‰",n7="⊥",r7="‱",i7="𝔓",o7="𝔭",s7="Φ",l7="φ",a7="ϕ",c7="ℳ",u7="☎",f7="Π",d7="π",h7="⋔",p7="ϖ",g7="ℏ",m7="ℎ",v7="ℏ",y7="⨣",b7="⊞",w7="⨢",x7="+",k7="∔",S7="⨥",_7="⩲",T7="±",C7="±",E7="⨦",A7="⨧",L7="±",M7="ℌ",N7="⨕",O7="𝕡",P7="ℙ",R7="£",$7="⪷",I7="⪻",D7="≺",z7="≼",F7="⪷",H7="≺",B7="≼",j7="≺",W7="⪯",q7="≼",U7="≾",V7="⪯",G7="⪹",K7="⪵",X7="⋨",Y7="⪯",Z7="⪳",J7="≾",Q7="′",eX="″",tX="ℙ",nX="⪹",rX="⪵",iX="⋨",oX="∏",sX="∏",lX="⌮",aX="⌒",cX="⌓",uX="∝",fX="∝",dX="∷",hX="∝",pX="≾",gX="⊰",mX="𝒫",vX="𝓅",yX="Ψ",bX="ψ",wX=" ",xX="𝔔",kX="𝔮",SX="⨌",_X="𝕢",TX="ℚ",CX="⁗",EX="𝒬",AX="𝓆",LX="ℍ",MX="⨖",NX="?",OX="≟",PX='"',RX='"',$X="⇛",IX="∽̱",DX="Ŕ",zX="ŕ",FX="√",HX="⦳",BX="⟩",jX="⟫",WX="⦒",qX="⦥",UX="⟩",VX="»",GX="⥵",KX="⇥",XX="⤠",YX="⤳",ZX="→",JX="↠",QX="⇒",eY="⤞",tY="↪",nY="↬",rY="⥅",iY="⥴",oY="⤖",sY="↣",lY="↝",aY="⤚",cY="⤜",uY="∶",fY="ℚ",dY="⤍",hY="⤏",pY="⤐",gY="❳",mY="}",vY="]",yY="⦌",bY="⦎",wY="⦐",xY="Ř",kY="ř",SY="Ŗ",_Y="ŗ",TY="⌉",CY="}",EY="Р",AY="р",LY="⤷",MY="⥩",NY="”",OY="”",PY="↳",RY="ℜ",$Y="ℛ",IY="ℜ",DY="ℝ",zY="ℜ",FY="▭",HY="®",BY="®",jY="∋",WY="⇋",qY="⥯",UY="⥽",VY="⌋",GY="𝔯",KY="ℜ",XY="⥤",YY="⇁",ZY="⇀",JY="⥬",QY="Ρ",eZ="ρ",tZ="ϱ",nZ="⟩",rZ="⇥",iZ="→",oZ="→",sZ="⇒",lZ="⇄",aZ="↣",cZ="⌉",uZ="⟧",fZ="⥝",dZ="⥕",hZ="⇂",pZ="⌋",gZ="⇁",mZ="⇀",vZ="⇄",yZ="⇌",bZ="⇉",wZ="↝",xZ="↦",kZ="⊢",SZ="⥛",_Z="⋌",TZ="⧐",CZ="⊳",EZ="⊵",AZ="⥏",LZ="⥜",MZ="⥔",NZ="↾",OZ="⥓",PZ="⇀",RZ="˚",$Z="≓",IZ="⇄",DZ="⇌",zZ="",FZ="⎱",HZ="⎱",BZ="⫮",jZ="⟭",WZ="⇾",qZ="⟧",UZ="⦆",VZ="𝕣",GZ="ℝ",KZ="⨮",XZ="⨵",YZ="⥰",ZZ=")",JZ="⦔",QZ="⨒",eJ="⇉",tJ="⇛",nJ="›",rJ="𝓇",iJ="ℛ",oJ="↱",sJ="↱",lJ="]",aJ="’",cJ="’",uJ="⋌",fJ="⋊",dJ="▹",hJ="⊵",pJ="▸",gJ="⧎",mJ="⧴",vJ="⥨",yJ="℞",bJ="Ś",wJ="ś",xJ="‚",kJ="⪸",SJ="Š",_J="š",TJ="⪼",CJ="≻",EJ="≽",AJ="⪰",LJ="⪴",MJ="Ş",NJ="ş",OJ="Ŝ",PJ="ŝ",RJ="⪺",$J="⪶",IJ="⋩",DJ="⨓",zJ="≿",FJ="С",HJ="с",BJ="⊡",jJ="⋅",WJ="⩦",qJ="⤥",UJ="↘",VJ="⇘",GJ="↘",KJ="§",XJ=";",YJ="⤩",ZJ="∖",JJ="∖",QJ="✶",eQ="𝔖",tQ="𝔰",nQ="⌢",rQ="♯",iQ="Щ",oQ="щ",sQ="Ш",lQ="ш",aQ="↓",cQ="←",uQ="∣",fQ="∥",dQ="→",hQ="↑",pQ="",gQ="Σ",mQ="σ",vQ="ς",yQ="ς",bQ="∼",wQ="⩪",xQ="≃",kQ="≃",SQ="⪞",_Q="⪠",TQ="⪝",CQ="⪟",EQ="≆",AQ="⨤",LQ="⥲",MQ="←",NQ="∘",OQ="∖",PQ="⨳",RQ="⧤",$Q="∣",IQ="⌣",DQ="⪪",zQ="⪬",FQ="⪬︀",HQ="Ь",BQ="ь",jQ="⌿",WQ="⧄",qQ="/",UQ="𝕊",VQ="𝕤",GQ="♠",KQ="♠",XQ="∥",YQ="⊓",ZQ="⊓︀",JQ="⊔",QQ="⊔︀",eee="√",tee="⊏",nee="⊑",ree="⊏",iee="⊑",oee="⊐",see="⊒",lee="⊐",aee="⊒",cee="□",uee="□",fee="⊓",dee="⊏",hee="⊑",pee="⊐",gee="⊒",mee="⊔",vee="▪",yee="□",bee="▪",wee="→",xee="𝒮",kee="𝓈",See="∖",_ee="⌣",Tee="⋆",Cee="⋆",Eee="☆",Aee="★",Lee="ϵ",Mee="ϕ",Nee="¯",Oee="⊂",Pee="⋐",Ree="⪽",$ee="⫅",Iee="⊆",Dee="⫃",zee="⫁",Fee="⫋",Hee="⊊",Bee="⪿",jee="⥹",Wee="⊂",qee="⋐",Uee="⊆",Vee="⫅",Gee="⊆",Kee="⊊",Xee="⫋",Yee="⫇",Zee="⫕",Jee="⫓",Qee="⪸",ete="≻",tte="≽",nte="≻",rte="⪰",ite="≽",ote="≿",ste="⪰",lte="⪺",ate="⪶",cte="⋩",ute="≿",fte="∋",dte="∑",hte="∑",pte="♪",gte="¹",mte="²",vte="³",yte="⊃",bte="⋑",wte="⪾",xte="⫘",kte="⫆",Ste="⊇",_te="⫄",Tte="⊃",Cte="⊇",Ete="⟉",Ate="⫗",Lte="⥻",Mte="⫂",Nte="⫌",Ote="⊋",Pte="⫀",Rte="⊃",$te="⋑",Ite="⊇",Dte="⫆",zte="⊋",Fte="⫌",Hte="⫈",Bte="⫔",jte="⫖",Wte="⤦",qte="↙",Ute="⇙",Vte="↙",Gte="⤪",Kte="ß",Xte=" ",Yte="⌖",Zte="Τ",Jte="τ",Qte="⎴",ene="Ť",tne="ť",nne="Ţ",rne="ţ",ine="Т",one="т",sne="⃛",lne="⌕",ane="𝔗",cne="𝔱",une="∴",fne="∴",dne="∴",hne="Θ",pne="θ",gne="ϑ",mne="ϑ",vne="≈",yne="∼",bne=" ",wne=" ",xne=" ",kne="≈",Sne="∼",_ne="Þ",Tne="þ",Cne="˜",Ene="∼",Ane="≃",Lne="≅",Mne="≈",Nne="⨱",One="⊠",Pne="×",Rne="⨰",$ne="∭",Ine="⤨",Dne="⌶",zne="⫱",Fne="⊤",Hne="𝕋",Bne="𝕥",jne="⫚",Wne="⤩",qne="‴",Une="™",Vne="™",Gne="▵",Kne="▿",Xne="◃",Yne="⊴",Zne="≜",Jne="▹",Qne="⊵",ere="◬",tre="≜",nre="⨺",rre="⃛",ire="⨹",ore="⧍",sre="⨻",lre="⏢",are="𝒯",cre="𝓉",ure="Ц",fre="ц",dre="Ћ",hre="ћ",pre="Ŧ",gre="ŧ",mre="≬",vre="↞",yre="↠",bre="Ú",wre="ú",xre="↑",kre="↟",Sre="⇑",_re="⥉",Tre="Ў",Cre="ў",Ere="Ŭ",Are="ŭ",Lre="Û",Mre="û",Nre="У",Ore="у",Pre="⇅",Rre="Ű",$re="ű",Ire="⥮",Dre="⥾",zre="𝔘",Fre="𝔲",Hre="Ù",Bre="ù",jre="⥣",Wre="↿",qre="↾",Ure="▀",Vre="⌜",Gre="⌜",Kre="⌏",Xre="◸",Yre="Ū",Zre="ū",Jre="¨",Qre="_",eie="⏟",tie="⎵",nie="⏝",rie="⋃",iie="⊎",oie="Ų",sie="ų",lie="𝕌",aie="𝕦",cie="⤒",uie="↑",fie="↑",die="⇑",hie="⇅",pie="↕",gie="↕",mie="⇕",vie="⥮",yie="↿",bie="↾",wie="⊎",xie="↖",kie="↗",Sie="υ",_ie="ϒ",Tie="ϒ",Cie="Υ",Eie="υ",Aie="↥",Lie="⊥",Mie="⇈",Nie="⌝",Oie="⌝",Pie="⌎",Rie="Ů",$ie="ů",Iie="◹",Die="𝒰",zie="𝓊",Fie="⋰",Hie="Ũ",Bie="ũ",jie="▵",Wie="▴",qie="⇈",Uie="Ü",Vie="ü",Gie="⦧",Kie="⦜",Xie="ϵ",Yie="ϰ",Zie="∅",Jie="ϕ",Qie="ϖ",eoe="∝",toe="↕",noe="⇕",roe="ϱ",ioe="ς",ooe="⊊︀",soe="⫋︀",loe="⊋︀",aoe="⫌︀",coe="ϑ",uoe="⊲",foe="⊳",doe="⫨",hoe="⫫",poe="⫩",goe="В",moe="в",voe="⊢",yoe="⊨",boe="⊩",woe="⊫",xoe="⫦",koe="⊻",Soe="∨",_oe="⋁",Toe="≚",Coe="⋮",Eoe="|",Aoe="‖",Loe="|",Moe="‖",Noe="∣",Ooe="|",Poe="❘",Roe="≀",$oe=" ",Ioe="𝔙",Doe="𝔳",zoe="⊲",Foe="⊂⃒",Hoe="⊃⃒",Boe="𝕍",joe="𝕧",Woe="∝",qoe="⊳",Uoe="𝒱",Voe="𝓋",Goe="⫋︀",Koe="⊊︀",Xoe="⫌︀",Yoe="⊋︀",Zoe="⊪",Joe="⦚",Qoe="Ŵ",ese="ŵ",tse="⩟",nse="∧",rse="⋀",ise="≙",ose="℘",sse="𝔚",lse="𝔴",ase="𝕎",cse="𝕨",use="℘",fse="≀",dse="≀",hse="𝒲",pse="𝓌",gse="⋂",mse="◯",vse="⋃",yse="▽",bse="𝔛",wse="𝔵",xse="⟷",kse="⟺",Sse="Ξ",_se="ξ",Tse="⟵",Cse="⟸",Ese="⟼",Ase="⋻",Lse="⨀",Mse="𝕏",Nse="𝕩",Ose="⨁",Pse="⨂",Rse="⟶",$se="⟹",Ise="𝒳",Dse="𝓍",zse="⨆",Fse="⨄",Hse="△",Bse="⋁",jse="⋀",Wse="Ý",qse="ý",Use="Я",Vse="я",Gse="Ŷ",Kse="ŷ",Xse="Ы",Yse="ы",Zse="¥",Jse="𝔜",Qse="𝔶",ele="Ї",tle="ї",nle="𝕐",rle="𝕪",ile="𝒴",ole="𝓎",sle="Ю",lle="ю",ale="ÿ",cle="Ÿ",ule="Ź",fle="ź",dle="Ž",hle="ž",ple="З",gle="з",mle="Ż",vle="ż",yle="ℨ",ble="",wle="Ζ",xle="ζ",kle="𝔷",Sle="ℨ",_le="Ж",Tle="ж",Cle="⇝",Ele="𝕫",Ale="ℤ",Lle="𝒵",Mle="𝓏",Nle="",Ole="",Nx={Aacute:mM,aacute:vM,Abreve:yM,abreve:bM,ac:wM,acd:xM,acE:kM,Acirc:SM,acirc:_M,acute:TM,Acy:CM,acy:EM,AElig:AM,aelig:LM,af:MM,Afr:NM,afr:OM,Agrave:PM,agrave:RM,alefsym:$M,aleph:IM,Alpha:DM,alpha:zM,Amacr:FM,amacr:HM,amalg:BM,amp:jM,AMP:WM,andand:qM,And:UM,and:VM,andd:GM,andslope:KM,andv:XM,ang:YM,ange:ZM,angle:JM,angmsdaa:QM,angmsdab:eN,angmsdac:tN,angmsdad:nN,angmsdae:rN,angmsdaf:iN,angmsdag:oN,angmsdah:sN,angmsd:lN,angrt:aN,angrtvb:cN,angrtvbd:uN,angsph:fN,angst:dN,angzarr:hN,Aogon:pN,aogon:gN,Aopf:mN,aopf:vN,apacir:yN,ap:bN,apE:wN,ape:xN,apid:kN,apos:SN,ApplyFunction:_N,approx:TN,approxeq:CN,Aring:EN,aring:AN,Ascr:LN,ascr:MN,Assign:NN,ast:ON,asymp:PN,asympeq:RN,Atilde:$N,atilde:IN,Auml:DN,auml:zN,awconint:FN,awint:HN,backcong:BN,backepsilon:jN,backprime:WN,backsim:qN,backsimeq:UN,Backslash:VN,Barv:GN,barvee:KN,barwed:XN,Barwed:YN,barwedge:ZN,bbrk:JN,bbrktbrk:QN,bcong:e2,Bcy:t2,bcy:n2,bdquo:r2,becaus:i2,because:o2,Because:s2,bemptyv:l2,bepsi:a2,bernou:c2,Bernoullis:u2,Beta:f2,beta:d2,beth:h2,between:p2,Bfr:g2,bfr:m2,bigcap:v2,bigcirc:y2,bigcup:b2,bigodot:w2,bigoplus:x2,bigotimes:k2,bigsqcup:S2,bigstar:_2,bigtriangledown:T2,bigtriangleup:C2,biguplus:E2,bigvee:A2,bigwedge:L2,bkarow:M2,blacklozenge:N2,blacksquare:O2,blacktriangle:P2,blacktriangledown:R2,blacktriangleleft:$2,blacktriangleright:I2,blank:D2,blk12:z2,blk14:F2,blk34:H2,block:B2,bne:j2,bnequiv:W2,bNot:q2,bnot:U2,Bopf:V2,bopf:G2,bot:K2,bottom:X2,bowtie:Y2,boxbox:Z2,boxdl:J2,boxdL:Q2,boxDl:eO,boxDL:tO,boxdr:nO,boxdR:rO,boxDr:iO,boxDR:oO,boxh:sO,boxH:lO,boxhd:aO,boxHd:cO,boxhD:uO,boxHD:fO,boxhu:dO,boxHu:hO,boxhU:pO,boxHU:gO,boxminus:mO,boxplus:vO,boxtimes:yO,boxul:bO,boxuL:wO,boxUl:xO,boxUL:kO,boxur:SO,boxuR:_O,boxUr:TO,boxUR:CO,boxv:EO,boxV:AO,boxvh:LO,boxvH:MO,boxVh:NO,boxVH:OO,boxvl:PO,boxvL:RO,boxVl:$O,boxVL:IO,boxvr:DO,boxvR:zO,boxVr:FO,boxVR:HO,bprime:BO,breve:jO,Breve:WO,brvbar:qO,bscr:UO,Bscr:VO,bsemi:GO,bsim:KO,bsime:XO,bsolb:YO,bsol:ZO,bsolhsub:JO,bull:QO,bullet:eP,bump:tP,bumpE:nP,bumpe:rP,Bumpeq:iP,bumpeq:oP,Cacute:sP,cacute:lP,capand:aP,capbrcup:cP,capcap:uP,cap:fP,Cap:dP,capcup:hP,capdot:pP,CapitalDifferentialD:gP,caps:mP,caret:vP,caron:yP,Cayleys:bP,ccaps:wP,Ccaron:xP,ccaron:kP,Ccedil:SP,ccedil:_P,Ccirc:TP,ccirc:CP,Cconint:EP,ccups:AP,ccupssm:LP,Cdot:MP,cdot:NP,cedil:OP,Cedilla:PP,cemptyv:RP,cent:$P,centerdot:IP,CenterDot:DP,cfr:zP,Cfr:FP,CHcy:HP,chcy:BP,check:jP,checkmark:WP,Chi:qP,chi:UP,circ:VP,circeq:GP,circlearrowleft:KP,circlearrowright:XP,circledast:YP,circledcirc:ZP,circleddash:JP,CircleDot:QP,circledR:eR,circledS:tR,CircleMinus:nR,CirclePlus:rR,CircleTimes:iR,cir:oR,cirE:sR,cire:lR,cirfnint:aR,cirmid:cR,cirscir:uR,ClockwiseContourIntegral:fR,CloseCurlyDoubleQuote:dR,CloseCurlyQuote:hR,clubs:pR,clubsuit:gR,colon:mR,Colon:vR,Colone:yR,colone:bR,coloneq:wR,comma:xR,commat:kR,comp:SR,compfn:_R,complement:TR,complexes:CR,cong:ER,congdot:AR,Congruent:LR,conint:MR,Conint:NR,ContourIntegral:OR,copf:PR,Copf:RR,coprod:$R,Coproduct:IR,copy:DR,COPY:zR,copysr:FR,CounterClockwiseContourIntegral:HR,crarr:BR,cross:jR,Cross:WR,Cscr:qR,cscr:UR,csub:VR,csube:GR,csup:KR,csupe:XR,ctdot:YR,cudarrl:ZR,cudarrr:JR,cuepr:QR,cuesc:e$,cularr:t$,cularrp:n$,cupbrcap:r$,cupcap:i$,CupCap:o$,cup:s$,Cup:l$,cupcup:a$,cupdot:c$,cupor:u$,cups:f$,curarr:d$,curarrm:h$,curlyeqprec:p$,curlyeqsucc:g$,curlyvee:m$,curlywedge:v$,curren:y$,curvearrowleft:b$,curvearrowright:w$,cuvee:x$,cuwed:k$,cwconint:S$,cwint:_$,cylcty:T$,dagger:C$,Dagger:E$,daleth:A$,darr:L$,Darr:M$,dArr:N$,dash:O$,Dashv:P$,dashv:R$,dbkarow:$$,dblac:I$,Dcaron:D$,dcaron:z$,Dcy:F$,dcy:H$,ddagger:B$,ddarr:j$,DD:W$,dd:q$,DDotrahd:U$,ddotseq:V$,deg:G$,Del:K$,Delta:X$,delta:Y$,demptyv:Z$,dfisht:J$,Dfr:Q$,dfr:eI,dHar:tI,dharl:nI,dharr:rI,DiacriticalAcute:iI,DiacriticalDot:oI,DiacriticalDoubleAcute:sI,DiacriticalGrave:lI,DiacriticalTilde:aI,diam:cI,diamond:uI,Diamond:fI,diamondsuit:dI,diams:hI,die:pI,DifferentialD:gI,digamma:mI,disin:vI,div:yI,divide:bI,divideontimes:wI,divonx:xI,DJcy:kI,djcy:SI,dlcorn:_I,dlcrop:TI,dollar:CI,Dopf:EI,dopf:AI,Dot:LI,dot:MI,DotDot:NI,doteq:OI,doteqdot:PI,DotEqual:RI,dotminus:$I,dotplus:II,dotsquare:DI,doublebarwedge:zI,DoubleContourIntegral:FI,DoubleDot:HI,DoubleDownArrow:BI,DoubleLeftArrow:jI,DoubleLeftRightArrow:WI,DoubleLeftTee:qI,DoubleLongLeftArrow:UI,DoubleLongLeftRightArrow:VI,DoubleLongRightArrow:GI,DoubleRightArrow:KI,DoubleRightTee:XI,DoubleUpArrow:YI,DoubleUpDownArrow:ZI,DoubleVerticalBar:JI,DownArrowBar:QI,downarrow:eD,DownArrow:tD,Downarrow:nD,DownArrowUpArrow:rD,DownBreve:iD,downdownarrows:oD,downharpoonleft:sD,downharpoonright:lD,DownLeftRightVector:aD,DownLeftTeeVector:cD,DownLeftVectorBar:uD,DownLeftVector:fD,DownRightTeeVector:dD,DownRightVectorBar:hD,DownRightVector:pD,DownTeeArrow:gD,DownTee:mD,drbkarow:vD,drcorn:yD,drcrop:bD,Dscr:wD,dscr:xD,DScy:kD,dscy:SD,dsol:_D,Dstrok:TD,dstrok:CD,dtdot:ED,dtri:AD,dtrif:LD,duarr:MD,duhar:ND,dwangle:OD,DZcy:PD,dzcy:RD,dzigrarr:$D,Eacute:ID,eacute:DD,easter:zD,Ecaron:FD,ecaron:HD,Ecirc:BD,ecirc:jD,ecir:WD,ecolon:qD,Ecy:UD,ecy:VD,eDDot:GD,Edot:KD,edot:XD,eDot:YD,ee:ZD,efDot:JD,Efr:QD,efr:ez,eg:tz,Egrave:nz,egrave:rz,egs:iz,egsdot:oz,el:sz,Element:lz,elinters:az,ell:cz,els:uz,elsdot:fz,Emacr:dz,emacr:hz,empty:pz,emptyset:gz,EmptySmallSquare:mz,emptyv:vz,EmptyVerySmallSquare:yz,emsp13:bz,emsp14:wz,emsp:xz,ENG:kz,eng:Sz,ensp:_z,Eogon:Tz,eogon:Cz,Eopf:Ez,eopf:Az,epar:Lz,eparsl:Mz,eplus:Nz,epsi:Oz,Epsilon:Pz,epsilon:Rz,epsiv:$z,eqcirc:Iz,eqcolon:Dz,eqsim:zz,eqslantgtr:Fz,eqslantless:Hz,Equal:Bz,equals:jz,EqualTilde:Wz,equest:qz,Equilibrium:Uz,equiv:Vz,equivDD:Gz,eqvparsl:Kz,erarr:Xz,erDot:Yz,escr:Zz,Escr:Jz,esdot:Qz,Esim:eF,esim:tF,Eta:nF,eta:rF,ETH:iF,eth:oF,Euml:sF,euml:lF,euro:aF,excl:cF,exist:uF,Exists:fF,expectation:dF,exponentiale:hF,ExponentialE:pF,fallingdotseq:gF,Fcy:mF,fcy:vF,female:yF,ffilig:bF,fflig:wF,ffllig:xF,Ffr:kF,ffr:SF,filig:_F,FilledSmallSquare:TF,FilledVerySmallSquare:CF,fjlig:EF,flat:AF,fllig:LF,fltns:MF,fnof:NF,Fopf:OF,fopf:PF,forall:RF,ForAll:$F,fork:IF,forkv:DF,Fouriertrf:zF,fpartint:FF,frac12:HF,frac13:BF,frac14:jF,frac15:WF,frac16:qF,frac18:UF,frac23:VF,frac25:GF,frac34:KF,frac35:XF,frac38:YF,frac45:ZF,frac56:JF,frac58:QF,frac78:eH,frasl:tH,frown:nH,fscr:rH,Fscr:iH,gacute:oH,Gamma:sH,gamma:lH,Gammad:aH,gammad:cH,gap:uH,Gbreve:fH,gbreve:dH,Gcedil:hH,Gcirc:pH,gcirc:gH,Gcy:mH,gcy:vH,Gdot:yH,gdot:bH,ge:wH,gE:xH,gEl:kH,gel:SH,geq:_H,geqq:TH,geqslant:CH,gescc:EH,ges:AH,gesdot:LH,gesdoto:MH,gesdotol:NH,gesl:OH,gesles:PH,Gfr:RH,gfr:$H,gg:IH,Gg:DH,ggg:zH,gimel:FH,GJcy:HH,gjcy:BH,gla:jH,gl:WH,glE:qH,glj:UH,gnap:VH,gnapprox:GH,gne:KH,gnE:XH,gneq:YH,gneqq:ZH,gnsim:JH,Gopf:QH,gopf:e3,grave:t3,GreaterEqual:n3,GreaterEqualLess:r3,GreaterFullEqual:i3,GreaterGreater:o3,GreaterLess:s3,GreaterSlantEqual:l3,GreaterTilde:a3,Gscr:c3,gscr:u3,gsim:f3,gsime:d3,gsiml:h3,gtcc:p3,gtcir:g3,gt:m3,GT:v3,Gt:y3,gtdot:b3,gtlPar:w3,gtquest:x3,gtrapprox:k3,gtrarr:S3,gtrdot:_3,gtreqless:T3,gtreqqless:C3,gtrless:E3,gtrsim:A3,gvertneqq:L3,gvnE:M3,Hacek:N3,hairsp:O3,half:P3,hamilt:R3,HARDcy:$3,hardcy:I3,harrcir:D3,harr:z3,hArr:F3,harrw:H3,Hat:B3,hbar:j3,Hcirc:W3,hcirc:q3,hearts:U3,heartsuit:V3,hellip:G3,hercon:K3,hfr:X3,Hfr:Y3,HilbertSpace:Z3,hksearow:J3,hkswarow:Q3,hoarr:eB,homtht:tB,hookleftarrow:nB,hookrightarrow:rB,hopf:iB,Hopf:oB,horbar:sB,HorizontalLine:lB,hscr:aB,Hscr:cB,hslash:uB,Hstrok:fB,hstrok:dB,HumpDownHump:hB,HumpEqual:pB,hybull:gB,hyphen:mB,Iacute:vB,iacute:yB,ic:bB,Icirc:wB,icirc:xB,Icy:kB,icy:SB,Idot:_B,IEcy:TB,iecy:CB,iexcl:EB,iff:AB,ifr:LB,Ifr:MB,Igrave:NB,igrave:OB,ii:PB,iiiint:RB,iiint:$B,iinfin:IB,iiota:DB,IJlig:zB,ijlig:FB,Imacr:HB,imacr:BB,image:jB,ImaginaryI:WB,imagline:qB,imagpart:UB,imath:VB,Im:GB,imof:KB,imped:XB,Implies:YB,incare:ZB,in:"∈",infin:JB,infintie:QB,inodot:e5,intcal:t5,int:n5,Int:r5,integers:i5,Integral:o5,intercal:s5,Intersection:l5,intlarhk:a5,intprod:c5,InvisibleComma:u5,InvisibleTimes:f5,IOcy:d5,iocy:h5,Iogon:p5,iogon:g5,Iopf:m5,iopf:v5,Iota:y5,iota:b5,iprod:w5,iquest:x5,iscr:k5,Iscr:S5,isin:_5,isindot:T5,isinE:C5,isins:E5,isinsv:A5,isinv:L5,it:M5,Itilde:N5,itilde:O5,Iukcy:P5,iukcy:R5,Iuml:$5,iuml:I5,Jcirc:D5,jcirc:z5,Jcy:F5,jcy:H5,Jfr:B5,jfr:j5,jmath:W5,Jopf:q5,jopf:U5,Jscr:V5,jscr:G5,Jsercy:K5,jsercy:X5,Jukcy:Y5,jukcy:Z5,Kappa:J5,kappa:Q5,kappav:e8,Kcedil:t8,kcedil:n8,Kcy:r8,kcy:i8,Kfr:o8,kfr:s8,kgreen:l8,KHcy:a8,khcy:c8,KJcy:u8,kjcy:f8,Kopf:d8,kopf:h8,Kscr:p8,kscr:g8,lAarr:m8,Lacute:v8,lacute:y8,laemptyv:b8,lagran:w8,Lambda:x8,lambda:k8,lang:S8,Lang:_8,langd:T8,langle:C8,lap:E8,Laplacetrf:A8,laquo:L8,larrb:M8,larrbfs:N8,larr:O8,Larr:P8,lArr:R8,larrfs:$8,larrhk:I8,larrlp:D8,larrpl:z8,larrsim:F8,larrtl:H8,latail:B8,lAtail:j8,lat:W8,late:q8,lates:U8,lbarr:V8,lBarr:G8,lbbrk:K8,lbrace:X8,lbrack:Y8,lbrke:Z8,lbrksld:J8,lbrkslu:Q8,Lcaron:ej,lcaron:tj,Lcedil:nj,lcedil:rj,lceil:ij,lcub:oj,Lcy:sj,lcy:lj,ldca:aj,ldquo:cj,ldquor:uj,ldrdhar:fj,ldrushar:dj,ldsh:hj,le:pj,lE:gj,LeftAngleBracket:mj,LeftArrowBar:vj,leftarrow:yj,LeftArrow:bj,Leftarrow:wj,LeftArrowRightArrow:xj,leftarrowtail:kj,LeftCeiling:Sj,LeftDoubleBracket:_j,LeftDownTeeVector:Tj,LeftDownVectorBar:Cj,LeftDownVector:Ej,LeftFloor:Aj,leftharpoondown:Lj,leftharpoonup:Mj,leftleftarrows:Nj,leftrightarrow:Oj,LeftRightArrow:Pj,Leftrightarrow:Rj,leftrightarrows:$j,leftrightharpoons:Ij,leftrightsquigarrow:Dj,LeftRightVector:zj,LeftTeeArrow:Fj,LeftTee:Hj,LeftTeeVector:Bj,leftthreetimes:jj,LeftTriangleBar:Wj,LeftTriangle:qj,LeftTriangleEqual:Uj,LeftUpDownVector:Vj,LeftUpTeeVector:Gj,LeftUpVectorBar:Kj,LeftUpVector:Xj,LeftVectorBar:Yj,LeftVector:Zj,lEg:Jj,leg:Qj,leq:eW,leqq:tW,leqslant:nW,lescc:rW,les:iW,lesdot:oW,lesdoto:sW,lesdotor:lW,lesg:aW,lesges:cW,lessapprox:uW,lessdot:fW,lesseqgtr:dW,lesseqqgtr:hW,LessEqualGreater:pW,LessFullEqual:gW,LessGreater:mW,lessgtr:vW,LessLess:yW,lesssim:bW,LessSlantEqual:wW,LessTilde:xW,lfisht:kW,lfloor:SW,Lfr:_W,lfr:TW,lg:CW,lgE:EW,lHar:AW,lhard:LW,lharu:MW,lharul:NW,lhblk:OW,LJcy:PW,ljcy:RW,llarr:$W,ll:IW,Ll:DW,llcorner:zW,Lleftarrow:FW,llhard:HW,lltri:BW,Lmidot:jW,lmidot:WW,lmoustache:qW,lmoust:UW,lnap:VW,lnapprox:GW,lne:KW,lnE:XW,lneq:YW,lneqq:ZW,lnsim:JW,loang:QW,loarr:e4,lobrk:t4,longleftarrow:n4,LongLeftArrow:r4,Longleftarrow:i4,longleftrightarrow:o4,LongLeftRightArrow:s4,Longleftrightarrow:l4,longmapsto:a4,longrightarrow:c4,LongRightArrow:u4,Longrightarrow:f4,looparrowleft:d4,looparrowright:h4,lopar:p4,Lopf:g4,lopf:m4,loplus:v4,lotimes:y4,lowast:b4,lowbar:w4,LowerLeftArrow:x4,LowerRightArrow:k4,loz:S4,lozenge:_4,lozf:T4,lpar:C4,lparlt:E4,lrarr:A4,lrcorner:L4,lrhar:M4,lrhard:N4,lrm:O4,lrtri:P4,lsaquo:R4,lscr:$4,Lscr:I4,lsh:D4,Lsh:z4,lsim:F4,lsime:H4,lsimg:B4,lsqb:j4,lsquo:W4,lsquor:q4,Lstrok:U4,lstrok:V4,ltcc:G4,ltcir:K4,lt:X4,LT:Y4,Lt:Z4,ltdot:J4,lthree:Q4,ltimes:eq,ltlarr:tq,ltquest:nq,ltri:rq,ltrie:iq,ltrif:oq,ltrPar:sq,lurdshar:lq,luruhar:aq,lvertneqq:cq,lvnE:uq,macr:fq,male:dq,malt:hq,maltese:pq,Map:"⤅",map:gq,mapsto:mq,mapstodown:vq,mapstoleft:yq,mapstoup:bq,marker:wq,mcomma:xq,Mcy:kq,mcy:Sq,mdash:_q,mDDot:Tq,measuredangle:Cq,MediumSpace:Eq,Mellintrf:Aq,Mfr:Lq,mfr:Mq,mho:Nq,micro:Oq,midast:Pq,midcir:Rq,mid:$q,middot:Iq,minusb:Dq,minus:zq,minusd:Fq,minusdu:Hq,MinusPlus:Bq,mlcp:jq,mldr:Wq,mnplus:qq,models:Uq,Mopf:Vq,mopf:Gq,mp:Kq,mscr:Xq,Mscr:Yq,mstpos:Zq,Mu:Jq,mu:Qq,multimap:e6,mumap:t6,nabla:n6,Nacute:r6,nacute:i6,nang:o6,nap:s6,napE:l6,napid:a6,napos:c6,napprox:u6,natural:f6,naturals:d6,natur:h6,nbsp:p6,nbump:g6,nbumpe:m6,ncap:v6,Ncaron:y6,ncaron:b6,Ncedil:w6,ncedil:x6,ncong:k6,ncongdot:S6,ncup:_6,Ncy:T6,ncy:C6,ndash:E6,nearhk:A6,nearr:L6,neArr:M6,nearrow:N6,ne:O6,nedot:P6,NegativeMediumSpace:R6,NegativeThickSpace:$6,NegativeThinSpace:I6,NegativeVeryThinSpace:D6,nequiv:z6,nesear:F6,nesim:H6,NestedGreaterGreater:B6,NestedLessLess:j6,NewLine:W6,nexist:q6,nexists:U6,Nfr:V6,nfr:G6,ngE:K6,nge:X6,ngeq:Y6,ngeqq:Z6,ngeqslant:J6,nges:Q6,nGg:eU,ngsim:tU,nGt:nU,ngt:rU,ngtr:iU,nGtv:oU,nharr:sU,nhArr:lU,nhpar:aU,ni:cU,nis:uU,nisd:fU,niv:dU,NJcy:hU,njcy:pU,nlarr:gU,nlArr:mU,nldr:vU,nlE:yU,nle:bU,nleftarrow:wU,nLeftarrow:xU,nleftrightarrow:kU,nLeftrightarrow:SU,nleq:_U,nleqq:TU,nleqslant:CU,nles:EU,nless:AU,nLl:LU,nlsim:MU,nLt:NU,nlt:OU,nltri:PU,nltrie:RU,nLtv:$U,nmid:IU,NoBreak:DU,NonBreakingSpace:zU,nopf:FU,Nopf:HU,Not:BU,not:jU,NotCongruent:WU,NotCupCap:qU,NotDoubleVerticalBar:UU,NotElement:VU,NotEqual:GU,NotEqualTilde:KU,NotExists:XU,NotGreater:YU,NotGreaterEqual:ZU,NotGreaterFullEqual:JU,NotGreaterGreater:QU,NotGreaterLess:eV,NotGreaterSlantEqual:tV,NotGreaterTilde:nV,NotHumpDownHump:rV,NotHumpEqual:iV,notin:oV,notindot:sV,notinE:lV,notinva:aV,notinvb:cV,notinvc:uV,NotLeftTriangleBar:fV,NotLeftTriangle:dV,NotLeftTriangleEqual:hV,NotLess:pV,NotLessEqual:gV,NotLessGreater:mV,NotLessLess:vV,NotLessSlantEqual:yV,NotLessTilde:bV,NotNestedGreaterGreater:wV,NotNestedLessLess:xV,notni:kV,notniva:SV,notnivb:_V,notnivc:TV,NotPrecedes:CV,NotPrecedesEqual:EV,NotPrecedesSlantEqual:AV,NotReverseElement:LV,NotRightTriangleBar:MV,NotRightTriangle:NV,NotRightTriangleEqual:OV,NotSquareSubset:PV,NotSquareSubsetEqual:RV,NotSquareSuperset:$V,NotSquareSupersetEqual:IV,NotSubset:DV,NotSubsetEqual:zV,NotSucceeds:FV,NotSucceedsEqual:HV,NotSucceedsSlantEqual:BV,NotSucceedsTilde:jV,NotSuperset:WV,NotSupersetEqual:qV,NotTilde:UV,NotTildeEqual:VV,NotTildeFullEqual:GV,NotTildeTilde:KV,NotVerticalBar:XV,nparallel:YV,npar:ZV,nparsl:JV,npart:QV,npolint:eG,npr:tG,nprcue:nG,nprec:rG,npreceq:iG,npre:oG,nrarrc:sG,nrarr:lG,nrArr:aG,nrarrw:cG,nrightarrow:uG,nRightarrow:fG,nrtri:dG,nrtrie:hG,nsc:pG,nsccue:gG,nsce:mG,Nscr:vG,nscr:yG,nshortmid:bG,nshortparallel:wG,nsim:xG,nsime:kG,nsimeq:SG,nsmid:_G,nspar:TG,nsqsube:CG,nsqsupe:EG,nsub:AG,nsubE:LG,nsube:MG,nsubset:NG,nsubseteq:OG,nsubseteqq:PG,nsucc:RG,nsucceq:$G,nsup:IG,nsupE:DG,nsupe:zG,nsupset:FG,nsupseteq:HG,nsupseteqq:BG,ntgl:jG,Ntilde:WG,ntilde:qG,ntlg:UG,ntriangleleft:VG,ntrianglelefteq:GG,ntriangleright:KG,ntrianglerighteq:XG,Nu:YG,nu:ZG,num:JG,numero:QG,numsp:e9,nvap:t9,nvdash:n9,nvDash:r9,nVdash:i9,nVDash:o9,nvge:s9,nvgt:l9,nvHarr:a9,nvinfin:c9,nvlArr:u9,nvle:f9,nvlt:d9,nvltrie:h9,nvrArr:p9,nvrtrie:g9,nvsim:m9,nwarhk:v9,nwarr:y9,nwArr:b9,nwarrow:w9,nwnear:x9,Oacute:k9,oacute:S9,oast:_9,Ocirc:T9,ocirc:C9,ocir:E9,Ocy:A9,ocy:L9,odash:M9,Odblac:N9,odblac:O9,odiv:P9,odot:R9,odsold:$9,OElig:I9,oelig:D9,ofcir:z9,Ofr:F9,ofr:H9,ogon:B9,Ograve:j9,ograve:W9,ogt:q9,ohbar:U9,ohm:V9,oint:G9,olarr:K9,olcir:X9,olcross:Y9,oline:Z9,olt:J9,Omacr:Q9,omacr:eK,Omega:tK,omega:nK,Omicron:rK,omicron:iK,omid:oK,ominus:sK,Oopf:lK,oopf:aK,opar:cK,OpenCurlyDoubleQuote:uK,OpenCurlyQuote:fK,operp:dK,oplus:hK,orarr:pK,Or:gK,or:mK,ord:vK,order:yK,orderof:bK,ordf:wK,ordm:xK,origof:kK,oror:SK,orslope:_K,orv:TK,oS:CK,Oscr:EK,oscr:AK,Oslash:LK,oslash:MK,osol:NK,Otilde:OK,otilde:PK,otimesas:RK,Otimes:$K,otimes:IK,Ouml:DK,ouml:zK,ovbar:FK,OverBar:HK,OverBrace:BK,OverBracket:jK,OverParenthesis:WK,para:qK,parallel:UK,par:VK,parsim:GK,parsl:KK,part:XK,PartialD:YK,Pcy:ZK,pcy:JK,percnt:QK,period:e7,permil:t7,perp:n7,pertenk:r7,Pfr:i7,pfr:o7,Phi:s7,phi:l7,phiv:a7,phmmat:c7,phone:u7,Pi:f7,pi:d7,pitchfork:h7,piv:p7,planck:g7,planckh:m7,plankv:v7,plusacir:y7,plusb:b7,pluscir:w7,plus:x7,plusdo:k7,plusdu:S7,pluse:_7,PlusMinus:T7,plusmn:C7,plussim:E7,plustwo:A7,pm:L7,Poincareplane:M7,pointint:N7,popf:O7,Popf:P7,pound:R7,prap:$7,Pr:I7,pr:D7,prcue:z7,precapprox:F7,prec:H7,preccurlyeq:B7,Precedes:j7,PrecedesEqual:W7,PrecedesSlantEqual:q7,PrecedesTilde:U7,preceq:V7,precnapprox:G7,precneqq:K7,precnsim:X7,pre:Y7,prE:Z7,precsim:J7,prime:Q7,Prime:eX,primes:tX,prnap:nX,prnE:rX,prnsim:iX,prod:oX,Product:sX,profalar:lX,profline:aX,profsurf:cX,prop:uX,Proportional:fX,Proportion:dX,propto:hX,prsim:pX,prurel:gX,Pscr:mX,pscr:vX,Psi:yX,psi:bX,puncsp:wX,Qfr:xX,qfr:kX,qint:SX,qopf:_X,Qopf:TX,qprime:CX,Qscr:EX,qscr:AX,quaternions:LX,quatint:MX,quest:NX,questeq:OX,quot:PX,QUOT:RX,rAarr:$X,race:IX,Racute:DX,racute:zX,radic:FX,raemptyv:HX,rang:BX,Rang:jX,rangd:WX,range:qX,rangle:UX,raquo:VX,rarrap:GX,rarrb:KX,rarrbfs:XX,rarrc:YX,rarr:ZX,Rarr:JX,rArr:QX,rarrfs:eY,rarrhk:tY,rarrlp:nY,rarrpl:rY,rarrsim:iY,Rarrtl:oY,rarrtl:sY,rarrw:lY,ratail:aY,rAtail:cY,ratio:uY,rationals:fY,rbarr:dY,rBarr:hY,RBarr:pY,rbbrk:gY,rbrace:mY,rbrack:vY,rbrke:yY,rbrksld:bY,rbrkslu:wY,Rcaron:xY,rcaron:kY,Rcedil:SY,rcedil:_Y,rceil:TY,rcub:CY,Rcy:EY,rcy:AY,rdca:LY,rdldhar:MY,rdquo:NY,rdquor:OY,rdsh:PY,real:RY,realine:$Y,realpart:IY,reals:DY,Re:zY,rect:FY,reg:HY,REG:BY,ReverseElement:jY,ReverseEquilibrium:WY,ReverseUpEquilibrium:qY,rfisht:UY,rfloor:VY,rfr:GY,Rfr:KY,rHar:XY,rhard:YY,rharu:ZY,rharul:JY,Rho:QY,rho:eZ,rhov:tZ,RightAngleBracket:nZ,RightArrowBar:rZ,rightarrow:iZ,RightArrow:oZ,Rightarrow:sZ,RightArrowLeftArrow:lZ,rightarrowtail:aZ,RightCeiling:cZ,RightDoubleBracket:uZ,RightDownTeeVector:fZ,RightDownVectorBar:dZ,RightDownVector:hZ,RightFloor:pZ,rightharpoondown:gZ,rightharpoonup:mZ,rightleftarrows:vZ,rightleftharpoons:yZ,rightrightarrows:bZ,rightsquigarrow:wZ,RightTeeArrow:xZ,RightTee:kZ,RightTeeVector:SZ,rightthreetimes:_Z,RightTriangleBar:TZ,RightTriangle:CZ,RightTriangleEqual:EZ,RightUpDownVector:AZ,RightUpTeeVector:LZ,RightUpVectorBar:MZ,RightUpVector:NZ,RightVectorBar:OZ,RightVector:PZ,ring:RZ,risingdotseq:$Z,rlarr:IZ,rlhar:DZ,rlm:zZ,rmoustache:FZ,rmoust:HZ,rnmid:BZ,roang:jZ,roarr:WZ,robrk:qZ,ropar:UZ,ropf:VZ,Ropf:GZ,roplus:KZ,rotimes:XZ,RoundImplies:YZ,rpar:ZZ,rpargt:JZ,rppolint:QZ,rrarr:eJ,Rrightarrow:tJ,rsaquo:nJ,rscr:rJ,Rscr:iJ,rsh:oJ,Rsh:sJ,rsqb:lJ,rsquo:aJ,rsquor:cJ,rthree:uJ,rtimes:fJ,rtri:dJ,rtrie:hJ,rtrif:pJ,rtriltri:gJ,RuleDelayed:mJ,ruluhar:vJ,rx:yJ,Sacute:bJ,sacute:wJ,sbquo:xJ,scap:kJ,Scaron:SJ,scaron:_J,Sc:TJ,sc:CJ,sccue:EJ,sce:AJ,scE:LJ,Scedil:MJ,scedil:NJ,Scirc:OJ,scirc:PJ,scnap:RJ,scnE:$J,scnsim:IJ,scpolint:DJ,scsim:zJ,Scy:FJ,scy:HJ,sdotb:BJ,sdot:jJ,sdote:WJ,searhk:qJ,searr:UJ,seArr:VJ,searrow:GJ,sect:KJ,semi:XJ,seswar:YJ,setminus:ZJ,setmn:JJ,sext:QJ,Sfr:eQ,sfr:tQ,sfrown:nQ,sharp:rQ,SHCHcy:iQ,shchcy:oQ,SHcy:sQ,shcy:lQ,ShortDownArrow:aQ,ShortLeftArrow:cQ,shortmid:uQ,shortparallel:fQ,ShortRightArrow:dQ,ShortUpArrow:hQ,shy:pQ,Sigma:gQ,sigma:mQ,sigmaf:vQ,sigmav:yQ,sim:bQ,simdot:wQ,sime:xQ,simeq:kQ,simg:SQ,simgE:_Q,siml:TQ,simlE:CQ,simne:EQ,simplus:AQ,simrarr:LQ,slarr:MQ,SmallCircle:NQ,smallsetminus:OQ,smashp:PQ,smeparsl:RQ,smid:$Q,smile:IQ,smt:DQ,smte:zQ,smtes:FQ,SOFTcy:HQ,softcy:BQ,solbar:jQ,solb:WQ,sol:qQ,Sopf:UQ,sopf:VQ,spades:GQ,spadesuit:KQ,spar:XQ,sqcap:YQ,sqcaps:ZQ,sqcup:JQ,sqcups:QQ,Sqrt:eee,sqsub:tee,sqsube:nee,sqsubset:ree,sqsubseteq:iee,sqsup:oee,sqsupe:see,sqsupset:lee,sqsupseteq:aee,square:cee,Square:uee,SquareIntersection:fee,SquareSubset:dee,SquareSubsetEqual:hee,SquareSuperset:pee,SquareSupersetEqual:gee,SquareUnion:mee,squarf:vee,squ:yee,squf:bee,srarr:wee,Sscr:xee,sscr:kee,ssetmn:See,ssmile:_ee,sstarf:Tee,Star:Cee,star:Eee,starf:Aee,straightepsilon:Lee,straightphi:Mee,strns:Nee,sub:Oee,Sub:Pee,subdot:Ree,subE:$ee,sube:Iee,subedot:Dee,submult:zee,subnE:Fee,subne:Hee,subplus:Bee,subrarr:jee,subset:Wee,Subset:qee,subseteq:Uee,subseteqq:Vee,SubsetEqual:Gee,subsetneq:Kee,subsetneqq:Xee,subsim:Yee,subsub:Zee,subsup:Jee,succapprox:Qee,succ:ete,succcurlyeq:tte,Succeeds:nte,SucceedsEqual:rte,SucceedsSlantEqual:ite,SucceedsTilde:ote,succeq:ste,succnapprox:lte,succneqq:ate,succnsim:cte,succsim:ute,SuchThat:fte,sum:dte,Sum:hte,sung:pte,sup1:gte,sup2:mte,sup3:vte,sup:yte,Sup:bte,supdot:wte,supdsub:xte,supE:kte,supe:Ste,supedot:_te,Superset:Tte,SupersetEqual:Cte,suphsol:Ete,suphsub:Ate,suplarr:Lte,supmult:Mte,supnE:Nte,supne:Ote,supplus:Pte,supset:Rte,Supset:$te,supseteq:Ite,supseteqq:Dte,supsetneq:zte,supsetneqq:Fte,supsim:Hte,supsub:Bte,supsup:jte,swarhk:Wte,swarr:qte,swArr:Ute,swarrow:Vte,swnwar:Gte,szlig:Kte,Tab:Xte,target:Yte,Tau:Zte,tau:Jte,tbrk:Qte,Tcaron:ene,tcaron:tne,Tcedil:nne,tcedil:rne,Tcy:ine,tcy:one,tdot:sne,telrec:lne,Tfr:ane,tfr:cne,there4:une,therefore:fne,Therefore:dne,Theta:hne,theta:pne,thetasym:gne,thetav:mne,thickapprox:vne,thicksim:yne,ThickSpace:bne,ThinSpace:wne,thinsp:xne,thkap:kne,thksim:Sne,THORN:_ne,thorn:Tne,tilde:Cne,Tilde:Ene,TildeEqual:Ane,TildeFullEqual:Lne,TildeTilde:Mne,timesbar:Nne,timesb:One,times:Pne,timesd:Rne,tint:$ne,toea:Ine,topbot:Dne,topcir:zne,top:Fne,Topf:Hne,topf:Bne,topfork:jne,tosa:Wne,tprime:qne,trade:Une,TRADE:Vne,triangle:Gne,triangledown:Kne,triangleleft:Xne,trianglelefteq:Yne,triangleq:Zne,triangleright:Jne,trianglerighteq:Qne,tridot:ere,trie:tre,triminus:nre,TripleDot:rre,triplus:ire,trisb:ore,tritime:sre,trpezium:lre,Tscr:are,tscr:cre,TScy:ure,tscy:fre,TSHcy:dre,tshcy:hre,Tstrok:pre,tstrok:gre,twixt:mre,twoheadleftarrow:vre,twoheadrightarrow:yre,Uacute:bre,uacute:wre,uarr:xre,Uarr:kre,uArr:Sre,Uarrocir:_re,Ubrcy:Tre,ubrcy:Cre,Ubreve:Ere,ubreve:Are,Ucirc:Lre,ucirc:Mre,Ucy:Nre,ucy:Ore,udarr:Pre,Udblac:Rre,udblac:$re,udhar:Ire,ufisht:Dre,Ufr:zre,ufr:Fre,Ugrave:Hre,ugrave:Bre,uHar:jre,uharl:Wre,uharr:qre,uhblk:Ure,ulcorn:Vre,ulcorner:Gre,ulcrop:Kre,ultri:Xre,Umacr:Yre,umacr:Zre,uml:Jre,UnderBar:Qre,UnderBrace:eie,UnderBracket:tie,UnderParenthesis:nie,Union:rie,UnionPlus:iie,Uogon:oie,uogon:sie,Uopf:lie,uopf:aie,UpArrowBar:cie,uparrow:uie,UpArrow:fie,Uparrow:die,UpArrowDownArrow:hie,updownarrow:pie,UpDownArrow:gie,Updownarrow:mie,UpEquilibrium:vie,upharpoonleft:yie,upharpoonright:bie,uplus:wie,UpperLeftArrow:xie,UpperRightArrow:kie,upsi:Sie,Upsi:_ie,upsih:Tie,Upsilon:Cie,upsilon:Eie,UpTeeArrow:Aie,UpTee:Lie,upuparrows:Mie,urcorn:Nie,urcorner:Oie,urcrop:Pie,Uring:Rie,uring:$ie,urtri:Iie,Uscr:Die,uscr:zie,utdot:Fie,Utilde:Hie,utilde:Bie,utri:jie,utrif:Wie,uuarr:qie,Uuml:Uie,uuml:Vie,uwangle:Gie,vangrt:Kie,varepsilon:Xie,varkappa:Yie,varnothing:Zie,varphi:Jie,varpi:Qie,varpropto:eoe,varr:toe,vArr:noe,varrho:roe,varsigma:ioe,varsubsetneq:ooe,varsubsetneqq:soe,varsupsetneq:loe,varsupsetneqq:aoe,vartheta:coe,vartriangleleft:uoe,vartriangleright:foe,vBar:doe,Vbar:hoe,vBarv:poe,Vcy:goe,vcy:moe,vdash:voe,vDash:yoe,Vdash:boe,VDash:woe,Vdashl:xoe,veebar:koe,vee:Soe,Vee:_oe,veeeq:Toe,vellip:Coe,verbar:Eoe,Verbar:Aoe,vert:Loe,Vert:Moe,VerticalBar:Noe,VerticalLine:Ooe,VerticalSeparator:Poe,VerticalTilde:Roe,VeryThinSpace:$oe,Vfr:Ioe,vfr:Doe,vltri:zoe,vnsub:Foe,vnsup:Hoe,Vopf:Boe,vopf:joe,vprop:Woe,vrtri:qoe,Vscr:Uoe,vscr:Voe,vsubnE:Goe,vsubne:Koe,vsupnE:Xoe,vsupne:Yoe,Vvdash:Zoe,vzigzag:Joe,Wcirc:Qoe,wcirc:ese,wedbar:tse,wedge:nse,Wedge:rse,wedgeq:ise,weierp:ose,Wfr:sse,wfr:lse,Wopf:ase,wopf:cse,wp:use,wr:fse,wreath:dse,Wscr:hse,wscr:pse,xcap:gse,xcirc:mse,xcup:vse,xdtri:yse,Xfr:bse,xfr:wse,xharr:xse,xhArr:kse,Xi:Sse,xi:_se,xlarr:Tse,xlArr:Cse,xmap:Ese,xnis:Ase,xodot:Lse,Xopf:Mse,xopf:Nse,xoplus:Ose,xotime:Pse,xrarr:Rse,xrArr:$se,Xscr:Ise,xscr:Dse,xsqcup:zse,xuplus:Fse,xutri:Hse,xvee:Bse,xwedge:jse,Yacute:Wse,yacute:qse,YAcy:Use,yacy:Vse,Ycirc:Gse,ycirc:Kse,Ycy:Xse,ycy:Yse,yen:Zse,Yfr:Jse,yfr:Qse,YIcy:ele,yicy:tle,Yopf:nle,yopf:rle,Yscr:ile,yscr:ole,YUcy:sle,yucy:lle,yuml:ale,Yuml:cle,Zacute:ule,zacute:fle,Zcaron:dle,zcaron:hle,Zcy:ple,zcy:gle,Zdot:mle,zdot:vle,zeetrf:yle,ZeroWidthSpace:ble,Zeta:wle,zeta:xle,zfr:kle,Zfr:Sle,ZHcy:_le,zhcy:Tle,zigrarr:Cle,zopf:Ele,Zopf:Ale,Zscr:Lle,zscr:Mle,zwj:Nle,zwnj:Ole},Ple="Á",Rle="á",$le="Â",Ile="â",Dle="´",zle="Æ",Fle="æ",Hle="À",Ble="à",jle="&",Wle="&",qle="Å",Ule="å",Vle="Ã",Gle="ã",Kle="Ä",Xle="ä",Yle="¦",Zle="Ç",Jle="ç",Qle="¸",eae="¢",tae="©",nae="©",rae="¤",iae="°",oae="÷",sae="É",lae="é",aae="Ê",cae="ê",uae="È",fae="è",dae="Ð",hae="ð",pae="Ë",gae="ë",mae="½",vae="¼",yae="¾",bae=">",wae=">",xae="Í",kae="í",Sae="Î",_ae="î",Tae="¡",Cae="Ì",Eae="ì",Aae="¿",Lae="Ï",Mae="ï",Nae="«",Oae="<",Pae="<",Rae="¯",$ae="µ",Iae="·",Dae=" ",zae="¬",Fae="Ñ",Hae="ñ",Bae="Ó",jae="ó",Wae="Ô",qae="ô",Uae="Ò",Vae="ò",Gae="ª",Kae="º",Xae="Ø",Yae="ø",Zae="Õ",Jae="õ",Qae="Ö",ece="ö",tce="¶",nce="±",rce="£",ice='"',oce='"',sce="»",lce="®",ace="®",cce="§",uce="",fce="¹",dce="²",hce="³",pce="ß",gce="Þ",mce="þ",vce="×",yce="Ú",bce="ú",wce="Û",xce="û",kce="Ù",Sce="ù",_ce="¨",Tce="Ü",Cce="ü",Ece="Ý",Ace="ý",Lce="¥",Mce="ÿ",Nce={Aacute:Ple,aacute:Rle,Acirc:$le,acirc:Ile,acute:Dle,AElig:zle,aelig:Fle,Agrave:Hle,agrave:Ble,amp:jle,AMP:Wle,Aring:qle,aring:Ule,Atilde:Vle,atilde:Gle,Auml:Kle,auml:Xle,brvbar:Yle,Ccedil:Zle,ccedil:Jle,cedil:Qle,cent:eae,copy:tae,COPY:nae,curren:rae,deg:iae,divide:oae,Eacute:sae,eacute:lae,Ecirc:aae,ecirc:cae,Egrave:uae,egrave:fae,ETH:dae,eth:hae,Euml:pae,euml:gae,frac12:mae,frac14:vae,frac34:yae,gt:bae,GT:wae,Iacute:xae,iacute:kae,Icirc:Sae,icirc:_ae,iexcl:Tae,Igrave:Cae,igrave:Eae,iquest:Aae,Iuml:Lae,iuml:Mae,laquo:Nae,lt:Oae,LT:Pae,macr:Rae,micro:$ae,middot:Iae,nbsp:Dae,not:zae,Ntilde:Fae,ntilde:Hae,Oacute:Bae,oacute:jae,Ocirc:Wae,ocirc:qae,Ograve:Uae,ograve:Vae,ordf:Gae,ordm:Kae,Oslash:Xae,oslash:Yae,Otilde:Zae,otilde:Jae,Ouml:Qae,ouml:ece,para:tce,plusmn:nce,pound:rce,quot:ice,QUOT:oce,raquo:sce,reg:lce,REG:ace,sect:cce,shy:uce,sup1:fce,sup2:dce,sup3:hce,szlig:pce,THORN:gce,thorn:mce,times:vce,Uacute:yce,uacute:bce,Ucirc:wce,ucirc:xce,Ugrave:kce,ugrave:Sce,uml:_ce,Uuml:Tce,uuml:Cce,Yacute:Ece,yacute:Ace,yen:Lce,yuml:Mce},Oce="&",Pce="'",Rce=">",$ce="<",Ice='"',Ox={amp:Oce,apos:Pce,gt:Rce,lt:$ce,quot:Ice};var Ps={};const Dce={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 My;function zce(){if(My)return Ps;My=1;var e=Ps&&Ps.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Ps,"__esModule",{value:!0});var t=e(Dce),r=String.fromCodePoint||function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),r(s))}return Ps.default=o,Ps}var Ny;function Oy(){if(Ny)return Er;Ny=1;var e=Er&&Er.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Er,"__esModule",{value:!0}),Er.decodeHTML=Er.decodeHTMLStrict=Er.decodeXML=void 0;var t=e(Nx),r=e(Nce),o=e(Ox),s=e(zce()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Er.decodeXML=f(o.default),Er.decodeHTMLStrict=f(t.default);function f(p){var g=h(p);return function(v){return String(v).replace(c,g)}}var d=function(p,g){return p<g?1:-1};Er.decodeHTML=(function(){for(var p=Object.keys(r.default).sort(d),g=Object.keys(t.default).sort(d),v=0,b=0;v<g.length;v++)p[b]===g[v]?(g[v]+=";?",b++):g[v]+=";";var w=new RegExp("&(?:"+g.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),T=h(t.default);function L(P){return P.substr(-1)!==";"&&(P+=";"),T(P)}return function(P){return String(P).replace(w,L)}})();function h(p){return function(v){if(v.charAt(1)==="#"){var b=v.charAt(2);return b==="X"||b==="x"?s.default(parseInt(v.substr(3),16)):s.default(parseInt(v.substr(2),10))}return p[v.slice(1,-1)]||v}}return Er}var Mn={},Py;function Ry(){if(Py)return Mn;Py=1;var e=Mn&&Mn.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.escapeUTF8=Mn.escape=Mn.encodeNonAsciiHTML=Mn.encodeHTML=Mn.encodeXML=void 0;var t=e(Ox),r=d(t.default),o=h(r);Mn.encodeXML=P(r);var s=e(Nx),c=d(s.default),f=h(c);Mn.encodeHTML=b(c,f),Mn.encodeNonAsciiHTML=P(c);function d(M){return Object.keys(M).sort().reduce(function(R,I){return R[M[I]]="&"+I+";",R},{})}function h(M){for(var R=[],I=[],E=0,D=Object.keys(M);E<D.length;E++){var V=D[E];V.length===1?R.push("\\"+V):I.push(V)}R.sort();for(var ee=0;ee<R.length-1;ee++){for(var ie=ee;ie<R.length-1&&R[ie].charCodeAt(1)+1===R[ie+1].charCodeAt(1);)ie+=1;var Y=1+ie-ee;Y<3||R.splice(ee,Y,R[ee]+"-"+R[ie])}return I.unshift("["+R.join("")+"]"),new RegExp(I.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,g=String.prototype.codePointAt!=null?function(M){return M.codePointAt(0)}:function(M){return(M.charCodeAt(0)-55296)*1024+M.charCodeAt(1)-56320+65536};function v(M){return"&#x"+(M.length>1?g(M):M.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(M,R){return function(I){return I.replace(R,function(E){return M[E]}).replace(p,v)}}var w=new RegExp(o.source+"|"+p.source,"g");function T(M){return M.replace(w,v)}Mn.escape=T;function L(M){return M.replace(o,v)}Mn.escapeUTF8=L;function P(M){return function(R){return R.replace(w,function(I){return M[I]||v(I)})}}return Mn}var $y;function Fce(){return $y||($y=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Oy(),r=Ry();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=Ry();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=Oy();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}})})(Id)),Id}var Dd,Iy;function Hce(){if(Iy)return Dd;Iy=1;function e(O,N){if(!(O instanceof N))throw new TypeError("Cannot call a class as a function")}function t(O,N){for(var C=0;C<N.length;C++){var k=N[C];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(O,k.key,k)}}function r(O,N,C){return N&&t(O.prototype,N),O}function o(O,N){var C=typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(!C){if(Array.isArray(O)||(C=s(O))||N){C&&(O=C);var k=0,F=function(){};return{s:F,n:function(){return k>=O.length?{done:!0}:{done:!1,value:O[k++]}},e:function(je){throw je},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
46
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var $=!0,ae=!1,ce;return{s:function(){C=C.call(O)},n:function(){var je=C.next();return $=je.done,je},e:function(je){ae=!0,ce=je},f:function(){try{!$&&C.return!=null&&C.return()}finally{if(ae)throw ce}}}}function s(O,N){if(O){if(typeof O=="string")return c(O,N);var C=Object.prototype.toString.call(O).slice(8,-1);if(C==="Object"&&O.constructor&&(C=O.constructor.name),C==="Map"||C==="Set")return Array.from(O);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return c(O,N)}}function c(O,N){(N==null||N>O.length)&&(N=O.length);for(var C=0,k=new Array(N);C<N;C++)k[C]=O[C];return k}var f=Fce(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var O={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 P(0,5).forEach(function(N){P(0,5).forEach(function(C){P(0,5).forEach(function(k){return p(N,C,k,O)})})}),P(0,23).forEach(function(N){var C=N+232,k=g(N*10+8);O[C]="#"+k+k+k}),O}function p(O,N,C,k){var F=16+O*36+N*6+C,$=O>0?O*40+55:0,ae=N>0?N*40+55:0,ce=C>0?C*40+55:0;k[F]=v([$,ae,ce])}function g(O){for(var N=O.toString(16);N.length<2;)N="0"+N;return N}function v(O){var N=[],C=o(O),k;try{for(C.s();!(k=C.n()).done;){var F=k.value;N.push(g(F))}}catch($){C.e($)}finally{C.f()}return"#"+N.join("")}function b(O,N,C,k){var F;return N==="text"?F=I(C,k):N==="display"?F=T(O,C,k):N==="xterm256Foreground"?F=V(O,k.colors[C]):N==="xterm256Background"?F=ee(O,k.colors[C]):N==="rgb"&&(F=w(O,C)),F}function w(O,N){N=N.substring(2).slice(0,-1);var C=+N.substr(0,2),k=N.substring(5).split(";"),F=k.map(function($){return("0"+Number($).toString(16)).substr(-2)}).join("");return D(O,(C===38?"color:#":"background-color:#")+F)}function T(O,N,C){N=parseInt(N,10);var k={"-1":function(){return"<br/>"},0:function(){return O.length&&L(O)},1:function(){return E(O,"b")},3:function(){return E(O,"i")},4:function(){return E(O,"u")},8:function(){return D(O,"display:none")},9:function(){return E(O,"strike")},22:function(){return D(O,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ie(O,"i")},24:function(){return ie(O,"u")},39:function(){return V(O,C.fg)},49:function(){return ee(O,C.bg)},53:function(){return D(O,"text-decoration:overline")}},F;return k[N]?F=k[N]():4<N&&N<7?F=E(O,"blink"):29<N&&N<38?F=V(O,C.colors[N-30]):39<N&&N<48?F=ee(O,C.colors[N-40]):89<N&&N<98?F=V(O,C.colors[8+(N-90)]):99<N&&N<108&&(F=ee(O,C.colors[8+(N-100)])),F}function L(O){var N=O.slice(0);return O.length=0,N.reverse().map(function(C){return"</"+C+">"}).join("")}function P(O,N){for(var C=[],k=O;k<=N;k++)C.push(k);return C}function M(O){return function(N){return(O===null||N.category!==O)&&O!=="all"}}function R(O){O=parseInt(O,10);var N=null;return O===0?N="all":O===1?N="bold":2<O&&O<5?N="underline":4<O&&O<7?N="blink":O===8?N="hide":O===9?N="strike":29<O&&O<38||O===39||89<O&&O<98?N="foreground-color":(39<O&&O<48||O===49||99<O&&O<108)&&(N="background-color"),N}function I(O,N){return N.escapeXML?f.encodeXML(O):O}function E(O,N,C){return C||(C=""),O.push(N),"<".concat(N).concat(C?' style="'.concat(C,'"'):"",">")}function D(O,N){return E(O,"span",N)}function V(O,N){return E(O,"span","color:"+N)}function ee(O,N){return E(O,"span","background-color:"+N)}function ie(O,N){var C;if(O.slice(-1)[0]===N&&(C=O.pop()),C)return"</"+N+">"}function Y(O,N,C){var k=!1,F=3;function $(){return""}function ae(W,Q){return C("xterm256Foreground",Q),""}function ce(W,Q){return C("xterm256Background",Q),""}function Se(W){return N.newline?C("display",-1):C("text",W),""}function je(W,Q){k=!0,Q.trim().length===0&&(Q="0"),Q=Q.trimRight(";").split(";");var he=o(Q),pe;try{for(he.s();!(pe=he.n()).done;){var me=pe.value;C("display",me)}}catch(Ce){he.e(Ce)}finally{he.f()}return""}function Ae(W){return C("text",W),""}function Ke(W){return C("rgb",W),""}var qe=[{pattern:/^\x08+/,sub:$},{pattern:/^\x1b\[[012]?K/,sub:$},{pattern:/^\x1b\[\(B/,sub:$},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ke},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ae},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ce},{pattern:/^\n/,sub:Se},{pattern:/^\r+\n/,sub:Se},{pattern:/^\r/,sub:Se},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:je},{pattern:/^\x1b\[\d?J/,sub:$},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:$},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:$},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ae}];function Fe(W,Q){Q>F&&k||(k=!1,O=O.replace(W.pattern,W.sub))}var Re=[],H=O,Z=H.length;e:for(;Z>0;){for(var re=0,le=0,ue=qe.length;le<ue;re=++le){var z=qe[re];if(Fe(z,re),O.length!==Z){Z=O.length;continue e}}if(O.length===Z)break;Re.push(0),Z=O.length}return Re}function G(O,N,C){return N!=="text"&&(O=O.filter(M(R(C))),O.push({token:N,data:C,category:R(C)})),O}var j=(function(){function O(N){e(this,O),N=N||{},N.colors&&(N.colors=Object.assign({},d.colors,N.colors)),this.options=Object.assign({},d,N),this.stack=[],this.stickyStack=[]}return r(O,[{key:"toHtml",value:function(C){var k=this;C=typeof C=="string"?[C]:C;var F=this.stack,$=this.options,ae=[];return this.stickyStack.forEach(function(ce){var Se=b(F,ce.token,ce.data,$);Se&&ae.push(Se)}),Y(C.join(""),$,function(ce,Se){var je=b(F,ce,Se,$);je&&ae.push(je),$.stream&&(k.stickyStack=G(k.stickyStack,ce,Se))}),F.length&&ae.push(L(F)),ae.join("")}}]),O})();return Dd=j,Dd}var Bce=Hce();const jce=Mx(Bce);function ha(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Wce(e,t){return t&&e.endsWith(t)}async function Mp(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Np(e){return new jce({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function qce(e){return e===null||typeof e!="function"&&typeof e!="object"}function Px(e){let t=e;if(qce(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:"",stacks:[]}}return t.stacks=GA(t.stack||"",{ignoreStackEntries:[]}),t}function Uce(e,t){let r="";return t.message?.includes("\x1B")&&(r=`<b>${t.name}</b>: ${e.toHtml(ha(t.message))}`),t.stack?.includes("\x1B")&&(r.length>0?r+=e.toHtml(ha(t.stack)):r=`<b>${t.name}</b>: ${t.message}${e.toHtml(ha(t.stack))}`),r.length>0?r:null}function Rx(e,t){const r=Np(e);return t.map(o=>{const s=o.result;if(!s||s.htmlError)return o;const c=s.errors?.map(f=>Uce(r,f)).filter(f=>f!=null).join("<br><br>");return c?.length&&(s.htmlError=c),o})}const Za=gA("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),xo=is(Za,"file"),pn=is(Za,"view"),$x=is(Za,"line"),Ix=is(Za,"column"),ki=is(Za,"test");var Dy={exports:{}},zy;function Op(){return zy||(zy=1,(function(e,t){(function(r){r(_o())})(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,g=s.typescript,v=s.wordCharacters||/[\w$\xa1-\uffff]/,b=(function(){function A(Jt){return{type:Jt,style:"keyword"}}var q=A("keyword a"),ye=A("keyword b"),_e=A("keyword c"),de=A("keyword d"),Ie=A("operator"),pt={type:"atom",style:"atom"};return{if:A("if"),while:q,with:q,else:ye,do:ye,try:ye,finally:ye,return:de,break:de,continue:de,new:A("new"),delete:_e,void:_e,throw:_e,debugger:A("debugger"),var:A("var"),const:A("var"),let:A("var"),function:A("function"),catch:A("catch"),for:A("for"),switch:A("switch"),case:A("case"),default:A("default"),in:Ie,typeof:Ie,instanceof:Ie,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:A("this"),class:A("class"),super:A("atom"),yield:_e,export:A("export"),import:A("import"),extends:_e,await:_e}})(),w=/[+\-*&%=<>!?|~^@]/,T=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function L(A){for(var q=!1,ye,_e=!1;(ye=A.next())!=null;){if(!q){if(ye=="/"&&!_e)return;ye=="["?_e=!0:_e&&ye=="]"&&(_e=!1)}q=!q&&ye=="\\"}}var P,M;function R(A,q,ye){return P=A,M=ye,q}function I(A,q){var ye=A.next();if(ye=='"'||ye=="'")return q.tokenize=E(ye),q.tokenize(A,q);if(ye=="."&&A.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return R("number","number");if(ye=="."&&A.match(".."))return R("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ye))return R(ye);if(ye=="="&&A.eat(">"))return R("=>","operator");if(ye=="0"&&A.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return R("number","number");if(/\d/.test(ye))return A.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),R("number","number");if(ye=="/")return A.eat("*")?(q.tokenize=D,D(A,q)):A.eat("/")?(A.skipToEnd(),R("comment","comment")):Qn(A,q,1)?(L(A),A.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),R("regexp","string-2")):(A.eat("="),R("operator","operator",A.current()));if(ye=="`")return q.tokenize=V,V(A,q);if(ye=="#"&&A.peek()=="!")return A.skipToEnd(),R("meta","meta");if(ye=="#"&&A.eatWhile(v))return R("variable","property");if(ye=="<"&&A.match("!--")||ye=="-"&&A.match("->")&&!/\S/.test(A.string.slice(0,A.start)))return A.skipToEnd(),R("comment","comment");if(w.test(ye))return(ye!=">"||!q.lexical||q.lexical.type!=">")&&(A.eat("=")?(ye=="!"||ye=="=")&&A.eat("="):/[<>*+\-|&?]/.test(ye)&&(A.eat(ye),ye==">"&&A.eat(ye))),ye=="?"&&A.eat(".")?R("."):R("operator","operator",A.current());if(v.test(ye)){A.eatWhile(v);var _e=A.current();if(q.lastType!="."){if(b.propertyIsEnumerable(_e)){var de=b[_e];return R(de.type,de.style,_e)}if(_e=="async"&&A.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return R("async","keyword",_e)}return R("variable","variable",_e)}}function E(A){return function(q,ye){var _e=!1,de;if(d&&q.peek()=="@"&&q.match(T))return ye.tokenize=I,R("jsonld-keyword","meta");for(;(de=q.next())!=null&&!(de==A&&!_e);)_e=!_e&&de=="\\";return _e||(ye.tokenize=I),R("string","string")}}function D(A,q){for(var ye=!1,_e;_e=A.next();){if(_e=="/"&&ye){q.tokenize=I;break}ye=_e=="*"}return R("comment","comment")}function V(A,q){for(var ye=!1,_e;(_e=A.next())!=null;){if(!ye&&(_e=="`"||_e=="$"&&A.eat("{"))){q.tokenize=I;break}ye=!ye&&_e=="\\"}return R("quasi","string-2",A.current())}var ee="([{}])";function ie(A,q){q.fatArrowAt&&(q.fatArrowAt=null);var ye=A.string.indexOf("=>",A.start);if(!(ye<0)){if(g){var _e=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(A.string.slice(A.start,ye));_e&&(ye=_e.index)}for(var de=0,Ie=!1,pt=ye-1;pt>=0;--pt){var Jt=A.string.charAt(pt),_n=ee.indexOf(Jt);if(_n>=0&&_n<3){if(!de){++pt;break}if(--de==0){Jt=="("&&(Ie=!0);break}}else if(_n>=3&&_n<6)++de;else if(v.test(Jt))Ie=!0;else if(/["'\/`]/.test(Jt))for(;;--pt){if(pt==0)return;var ds=A.string.charAt(pt-1);if(ds==Jt&&A.string.charAt(pt-2)!="\\"){pt--;break}}else if(Ie&&!de){++pt;break}}Ie&&!de&&(q.fatArrowAt=pt)}}var Y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function G(A,q,ye,_e,de,Ie){this.indented=A,this.column=q,this.type=ye,this.prev=de,this.info=Ie,_e!=null&&(this.align=_e)}function j(A,q){if(!p)return!1;for(var ye=A.localVars;ye;ye=ye.next)if(ye.name==q)return!0;for(var _e=A.context;_e;_e=_e.prev)for(var ye=_e.vars;ye;ye=ye.next)if(ye.name==q)return!0}function O(A,q,ye,_e,de){var Ie=A.cc;for(N.state=A,N.stream=de,N.marked=null,N.cc=Ie,N.style=q,A.lexical.hasOwnProperty("align")||(A.lexical.align=!0);;){var pt=Ie.length?Ie.pop():h?ue:re;if(pt(ye,_e)){for(;Ie.length&&Ie[Ie.length-1].lex;)Ie.pop()();return N.marked?N.marked:ye=="variable"&&j(A,_e)?"variable-2":q}}}var N={state:null,marked:null,cc:null};function C(){for(var A=arguments.length-1;A>=0;A--)N.cc.push(arguments[A])}function k(){return C.apply(null,arguments),!0}function F(A,q){for(var ye=q;ye;ye=ye.next)if(ye.name==A)return!0;return!1}function $(A){var q=N.state;if(N.marked="def",!!p){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var ye=ae(A,q.context);if(ye!=null){q.context=ye;return}}else if(!F(A,q.localVars)){q.localVars=new je(A,q.localVars);return}}s.globalVars&&!F(A,q.globalVars)&&(q.globalVars=new je(A,q.globalVars))}}function ae(A,q){if(q)if(q.block){var ye=ae(A,q.prev);return ye?ye==q.prev?q:new Se(ye,q.vars,!0):null}else return F(A,q.vars)?q:new Se(q.prev,new je(A,q.vars),!1);else return null}function ce(A){return A=="public"||A=="private"||A=="protected"||A=="abstract"||A=="readonly"}function Se(A,q,ye){this.prev=A,this.vars=q,this.block=ye}function je(A,q){this.name=A,this.next=q}var Ae=new je("this",new je("arguments",null));function Ke(){N.state.context=new Se(N.state.context,N.state.localVars,!1),N.state.localVars=Ae}function qe(){N.state.context=new Se(N.state.context,N.state.localVars,!0),N.state.localVars=null}Ke.lex=qe.lex=!0;function Fe(){N.state.localVars=N.state.context.vars,N.state.context=N.state.context.prev}Fe.lex=!0;function Re(A,q){var ye=function(){var _e=N.state,de=_e.indented;if(_e.lexical.type=="stat")de=_e.lexical.indented;else for(var Ie=_e.lexical;Ie&&Ie.type==")"&&Ie.align;Ie=Ie.prev)de=Ie.indented;_e.lexical=new G(de,N.stream.column(),A,null,_e.lexical,q)};return ye.lex=!0,ye}function H(){var A=N.state;A.lexical.prev&&(A.lexical.type==")"&&(A.indented=A.lexical.indented),A.lexical=A.lexical.prev)}H.lex=!0;function Z(A){function q(ye){return ye==A?k():A==";"||ye=="}"||ye==")"||ye=="]"?C():k(q)}return q}function re(A,q){return A=="var"?k(Re("vardef",q),os,Z(";"),H):A=="keyword a"?k(Re("form"),W,re,H):A=="keyword b"?k(Re("form"),re,H):A=="keyword d"?N.stream.match(/^\s*$/,!1)?k():k(Re("stat"),he,Z(";"),H):A=="debugger"?k(Z(";")):A=="{"?k(Re("}"),qe,qt,H,Fe):A==";"?k():A=="if"?(N.state.lexical.info=="else"&&N.state.cc[N.state.cc.length-1]==H&&N.state.cc.pop()(),k(Re("form"),W,re,H,ss)):A=="function"?k(cr):A=="for"?k(Re("form"),qe,nc,re,Fe,H):A=="class"||g&&q=="interface"?(N.marked="keyword",k(Re("form",A=="class"?A:q),ls,H)):A=="variable"?g&&q=="declare"?(N.marked="keyword",k(re)):g&&(q=="module"||q=="enum"||q=="type")&&N.stream.match(/^\s*\w/,!1)?(N.marked="keyword",q=="enum"?k(We):q=="type"?k(rc,Z("operator"),at,Z(";")):k(Re("form"),Sn,Z("{"),Re("}"),qt,H,H)):g&&q=="namespace"?(N.marked="keyword",k(Re("form"),ue,re,H)):g&&q=="abstract"?(N.marked="keyword",k(re)):k(Re("stat"),$e):A=="switch"?k(Re("form"),W,Z("{"),Re("}","switch"),qe,qt,H,H,Fe):A=="case"?k(ue,Z(":")):A=="default"?k(Z(":")):A=="catch"?k(Re("form"),Ke,le,re,H,Fe):A=="export"?k(Re("stat"),as,H):A=="import"?k(Re("stat"),zi,H):A=="async"?k(re):q=="@"?k(ue,re):C(Re("stat"),ue,Z(";"),H)}function le(A){if(A=="(")return k(wr,Z(")"))}function ue(A,q){return Q(A,q,!1)}function z(A,q){return Q(A,q,!0)}function W(A){return A!="("?C():k(Re(")"),he,Z(")"),H)}function Q(A,q,ye){if(N.state.fatArrowAt==N.stream.start){var _e=ye?be:ke;if(A=="(")return k(Ke,Re(")"),ut(wr,")"),H,Z("=>"),_e,Fe);if(A=="variable")return C(Ke,Sn,Z("=>"),_e,Fe)}var de=ye?me:pe;return Y.hasOwnProperty(A)?k(de):A=="function"?k(cr,de):A=="class"||g&&q=="interface"?(N.marked="keyword",k(Re("form"),Tf,H)):A=="keyword c"||A=="async"?k(ye?z:ue):A=="("?k(Re(")"),he,Z(")"),H,de):A=="operator"||A=="spread"?k(ye?z:ue):A=="["?k(Re("]"),Dt,H,de):A=="{"?Zt(ct,"}",null,de):A=="quasi"?C(Ce,de):A=="new"?k(J(ye)):k()}function he(A){return A.match(/[;\}\)\],]/)?C():C(ue)}function pe(A,q){return A==","?k(he):me(A,q,!1)}function me(A,q,ye){var _e=ye==!1?pe:me,de=ye==!1?ue:z;if(A=="=>")return k(Ke,ye?be:ke,Fe);if(A=="operator")return/\+\+|--/.test(q)||g&&q=="!"?k(_e):g&&q=="<"&&N.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Re(">"),ut(at,">"),H,_e):q=="?"?k(ue,Z(":"),de):k(de);if(A=="quasi")return C(Ce,_e);if(A!=";"){if(A=="(")return Zt(z,")","call",_e);if(A==".")return k(Qe,_e);if(A=="[")return k(Re("]"),he,Z("]"),H,_e);if(g&&q=="as")return N.marked="keyword",k(at,_e);if(A=="regexp")return N.state.lastType=N.marked="operator",N.stream.backUp(N.stream.pos-N.stream.start-1),k(de)}}function Ce(A,q){return A!="quasi"?C():q.slice(q.length-2)!="${"?k(Ce):k(he,Ee)}function Ee(A){if(A=="}")return N.marked="string-2",N.state.tokenize=V,k(Ce)}function ke(A){return ie(N.stream,N.state),C(A=="{"?re:ue)}function be(A){return ie(N.stream,N.state),C(A=="{"?re:z)}function J(A){return function(q){return q=="."?k(A?oe:fe):q=="variable"&&g?k(jn,A?me:pe):C(A?z:ue)}}function fe(A,q){if(q=="target")return N.marked="keyword",k(pe)}function oe(A,q){if(q=="target")return N.marked="keyword",k(me)}function $e(A){return A==":"?k(H,re):C(pe,Z(";"),H)}function Qe(A){if(A=="variable")return N.marked="property",k()}function ct(A,q){if(A=="async")return N.marked="property",k(ct);if(A=="variable"||N.style=="keyword"){if(N.marked="property",q=="get"||q=="set")return k(dt);var ye;return g&&N.state.fatArrowAt==N.stream.start&&(ye=N.stream.match(/^\s*:\s*/,!1))&&(N.state.fatArrowAt=N.stream.pos+ye[0].length),k(Ot)}else{if(A=="number"||A=="string")return N.marked=d?"property":N.style+" property",k(Ot);if(A=="jsonld-keyword")return k(Ot);if(g&&ce(q))return N.marked="keyword",k(ct);if(A=="[")return k(ue,Hn,Z("]"),Ot);if(A=="spread")return k(z,Ot);if(q=="*")return N.marked="keyword",k(ct);if(A==":")return C(Ot)}}function dt(A){return A!="variable"?C(Ot):(N.marked="property",k(cr))}function Ot(A){if(A==":")return k(z);if(A=="(")return C(cr)}function ut(A,q,ye){function _e(de,Ie){if(ye?ye.indexOf(de)>-1:de==","){var pt=N.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),k(function(Jt,_n){return Jt==q||_n==q?C():C(A)},_e)}return de==q||Ie==q?k():ye&&ye.indexOf(";")>-1?C(A):k(Z(q))}return function(de,Ie){return de==q||Ie==q?k():C(A,_e)}}function Zt(A,q,ye){for(var _e=3;_e<arguments.length;_e++)N.cc.push(arguments[_e]);return k(Re(q,ye),ut(A,q),H)}function qt(A){return A=="}"?k():C(re,qt)}function Hn(A,q){if(g){if(A==":")return k(at);if(q=="?")return k(Hn)}}function Br(A,q){if(g&&(A==":"||q=="in"))return k(at)}function Bt(A){if(g&&A==":")return N.stream.match(/^\s*\w+\s+is\b/,!1)?k(ue,Bn,at):k(at)}function Bn(A,q){if(q=="is")return N.marked="keyword",k()}function at(A,q){if(q=="keyof"||q=="typeof"||q=="infer"||q=="readonly")return N.marked="keyword",k(q=="typeof"?z:at);if(A=="variable"||q=="void")return N.marked="type",k(ar);if(q=="|"||q=="&")return k(at);if(A=="string"||A=="number"||A=="atom")return k(ar);if(A=="[")return k(Re("]"),ut(at,"]",","),H,ar);if(A=="{")return k(Re("}"),Ye,H,ar);if(A=="(")return k(ut(It,")"),To,ar);if(A=="<")return k(ut(at,">"),at);if(A=="quasi")return C(cn,ar)}function To(A){if(A=="=>")return k(at)}function Ye(A){return A.match(/[\}\)\]]/)?k():A==","||A==";"?k(Ye):C(ri,Ye)}function ri(A,q){if(A=="variable"||N.style=="keyword")return N.marked="property",k(ri);if(q=="?"||A=="number"||A=="string")return k(ri);if(A==":")return k(at);if(A=="[")return k(Z("variable"),Br,Z("]"),ri);if(A=="(")return C(Di,ri);if(!A.match(/[;\}\)\],]/))return k()}function cn(A,q){return A!="quasi"?C():q.slice(q.length-2)!="${"?k(cn):k(at,$t)}function $t(A){if(A=="}")return N.marked="string-2",N.state.tokenize=V,k(cn)}function It(A,q){return A=="variable"&&N.stream.match(/^\s*[?:]/,!1)||q=="?"?k(It):A==":"?k(at):A=="spread"?k(It):C(at)}function ar(A,q){if(q=="<")return k(Re(">"),ut(at,">"),H,ar);if(q=="|"||A=="."||q=="&")return k(at);if(A=="[")return k(at,Z("]"),ar);if(q=="extends"||q=="implements")return N.marked="keyword",k(at);if(q=="?")return k(at,Z(":"),at)}function jn(A,q){if(q=="<")return k(Re(">"),ut(at,">"),H,ar)}function yr(){return C(at,un)}function un(A,q){if(q=="=")return k(at)}function os(A,q){return q=="enum"?(N.marked="keyword",k(We)):C(Sn,Hn,br,_f)}function Sn(A,q){if(g&&ce(q))return N.marked="keyword",k(Sn);if(A=="variable")return $(q),k();if(A=="spread")return k(Sn);if(A=="[")return Zt(gl,"]");if(A=="{")return Zt($i,"}")}function $i(A,q){return A=="variable"&&!N.stream.match(/^\s*:/,!1)?($(q),k(br)):(A=="variable"&&(N.marked="property"),A=="spread"?k(Sn):A=="}"?C():A=="["?k(ue,Z("]"),Z(":"),$i):k(Z(":"),Sn,br))}function gl(){return C(Sn,br)}function br(A,q){if(q=="=")return k(z)}function _f(A){if(A==",")return k(os)}function ss(A,q){if(A=="keyword b"&&q=="else")return k(Re("form","else"),re,H)}function nc(A,q){if(q=="await")return k(nc);if(A=="(")return k(Re(")"),ml,H)}function ml(A){return A=="var"?k(os,Ii):A=="variable"?k(Ii):C(Ii)}function Ii(A,q){return A==")"?k():A==";"?k(Ii):q=="in"||q=="of"?(N.marked="keyword",k(ue,Ii)):C(ue,Ii)}function cr(A,q){if(q=="*")return N.marked="keyword",k(cr);if(A=="variable")return $(q),k(cr);if(A=="(")return k(Ke,Re(")"),ut(wr,")"),H,Bt,re,Fe);if(g&&q=="<")return k(Re(">"),ut(yr,">"),H,cr)}function Di(A,q){if(q=="*")return N.marked="keyword",k(Di);if(A=="variable")return $(q),k(Di);if(A=="(")return k(Ke,Re(")"),ut(wr,")"),H,Bt,Fe);if(g&&q=="<")return k(Re(">"),ut(yr,">"),H,Di)}function rc(A,q){if(A=="keyword"||A=="variable")return N.marked="type",k(rc);if(q=="<")return k(Re(">"),ut(yr,">"),H)}function wr(A,q){return q=="@"&&k(ue,wr),A=="spread"?k(wr):g&&ce(q)?(N.marked="keyword",k(wr)):g&&A=="this"?k(Hn,br):C(Sn,Hn,br)}function Tf(A,q){return A=="variable"?ls(A,q):xr(A,q)}function ls(A,q){if(A=="variable")return $(q),k(xr)}function xr(A,q){if(q=="<")return k(Re(">"),ut(yr,">"),H,xr);if(q=="extends"||q=="implements"||g&&A==",")return q=="implements"&&(N.marked="keyword"),k(g?at:ue,xr);if(A=="{")return k(Re("}"),kr,H)}function kr(A,q){if(A=="async"||A=="variable"&&(q=="static"||q=="get"||q=="set"||g&&ce(q))&&N.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return N.marked="keyword",k(kr);if(A=="variable"||N.style=="keyword")return N.marked="property",k(Co,kr);if(A=="number"||A=="string")return k(Co,kr);if(A=="[")return k(ue,Hn,Z("]"),Co,kr);if(q=="*")return N.marked="keyword",k(kr);if(g&&A=="(")return C(Di,kr);if(A==";"||A==",")return k(kr);if(A=="}")return k();if(q=="@")return k(ue,kr)}function Co(A,q){if(q=="!"||q=="?")return k(Co);if(A==":")return k(at,br);if(q=="=")return k(z);var ye=N.state.lexical.prev,_e=ye&&ye.info=="interface";return C(_e?Di:cr)}function as(A,q){return q=="*"?(N.marked="keyword",k(fs,Z(";"))):q=="default"?(N.marked="keyword",k(ue,Z(";"))):A=="{"?k(ut(cs,"}"),fs,Z(";")):C(re)}function cs(A,q){if(q=="as")return N.marked="keyword",k(Z("variable"));if(A=="variable")return C(z,cs)}function zi(A){return A=="string"?k():A=="("?C(ue):A=="."?C(pe):C(us,jr,fs)}function us(A,q){return A=="{"?Zt(us,"}"):(A=="variable"&&$(q),q=="*"&&(N.marked="keyword"),k(vl))}function jr(A){if(A==",")return k(us,jr)}function vl(A,q){if(q=="as")return N.marked="keyword",k(us)}function fs(A,q){if(q=="from")return N.marked="keyword",k(ue)}function Dt(A){return A=="]"?k():C(ut(z,"]"))}function We(){return C(Re("form"),Sn,Z("{"),Re("}"),ut(ii,"}"),H,H)}function ii(){return C(Sn,br)}function yl(A,q){return A.lastType=="operator"||A.lastType==","||w.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function Qn(A,q,ye){return q.tokenize==I&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(A.string.slice(0,A.pos-(ye||0)))}return{startState:function(A){var q={tokenize:I,lastType:"sof",cc:[],lexical:new G((A||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Se(null,null,!1),indented:A||0};return s.globalVars&&typeof s.globalVars=="object"&&(q.globalVars=s.globalVars),q},token:function(A,q){if(A.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=A.indentation(),ie(A,q)),q.tokenize!=D&&A.eatSpace())return null;var ye=q.tokenize(A,q);return P=="comment"?ye:(q.lastType=P=="operator"&&(M=="++"||M=="--")?"incdec":P,O(q,ye,P,M,A))},indent:function(A,q){if(A.tokenize==D||A.tokenize==V)return r.Pass;if(A.tokenize!=I)return 0;var ye=q&&q.charAt(0),_e=A.lexical,de;if(!/^\s*else\b/.test(q))for(var Ie=A.cc.length-1;Ie>=0;--Ie){var pt=A.cc[Ie];if(pt==H)_e=_e.prev;else if(pt!=ss&&pt!=Fe)break}for(;(_e.type=="stat"||_e.type=="form")&&(ye=="}"||(de=A.cc[A.cc.length-1])&&(de==pe||de==me)&&!/^[,\.=+\-*:?[\(]/.test(q));)_e=_e.prev;f&&_e.type==")"&&_e.prev.type=="stat"&&(_e=_e.prev);var Jt=_e.type,_n=ye==Jt;return Jt=="vardef"?_e.indented+(A.lastType=="operator"||A.lastType==","?_e.info.length+1:0):Jt=="form"&&ye=="{"?_e.indented:Jt=="form"?_e.indented+c:Jt=="stat"?_e.indented+(yl(A,q)?f||c:0):_e.info=="switch"&&!_n&&s.doubleIndentSwitch!=!1?_e.indented+(/^(?:case|default)\b/.test(q)?c:2*c):_e.align?_e.column+(_n?0:1):_e.indented+(_n?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:Qn,skipExpression:function(A){O(A,"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})})})()),Dy.exports}Op();var Fy={exports:{}},Hy;function Pp(){return Hy||(Hy=1,(function(e,t){(function(r){r(_o())})(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 g in p)h[g]=p[g];for(var g in f)h[g]=f[g];var v,b;function w(k,F){function $(Se){return F.tokenize=Se,Se(k,F)}var ae=k.next();if(ae=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?$(P("atom","]]>")):null:k.match("--")?$(P("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),$(M(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),F.tokenize=P("meta","?>"),"meta"):(v=k.eat("/")?"closeTag":"openTag",F.tokenize=T,"tag bracket");if(ae=="&"){var ce;return k.eat("#")?k.eat("x")?ce=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):ce=k.eatWhile(/[\d]/)&&k.eat(";"):ce=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),ce?"atom":"error"}else return k.eatWhile(/[^&<]/),null}w.isInText=!0;function T(k,F){var $=k.next();if($==">"||$=="/"&&k.eat(">"))return F.tokenize=w,v=$==">"?"endTag":"selfcloseTag","tag bracket";if($=="=")return v="equals",null;if($=="<"){F.tokenize=w,F.state=V,F.tagName=F.tagStart=null;var ae=F.tokenize(k,F);return ae?ae+" tag error":"tag error"}else return/[\'\"]/.test($)?(F.tokenize=L($),F.stringStartCol=k.column(),F.tokenize(k,F)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function L(k){var F=function($,ae){for(;!$.eol();)if($.next()==k){ae.tokenize=T;break}return"string"};return F.isInAttribute=!0,F}function P(k,F){return function($,ae){for(;!$.eol();){if($.match(F)){ae.tokenize=w;break}$.next()}return k}}function M(k){return function(F,$){for(var ae;(ae=F.next())!=null;){if(ae=="<")return $.tokenize=M(k+1),$.tokenize(F,$);if(ae==">")if(k==1){$.tokenize=w;break}else return $.tokenize=M(k-1),$.tokenize(F,$)}return"meta"}}function R(k){return k&&k.toLowerCase()}function I(k,F,$){this.prev=k.context,this.tagName=F||"",this.indent=k.indented,this.startOfLine=$,(h.doNotIndent.hasOwnProperty(F)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function E(k){k.context&&(k.context=k.context.prev)}function D(k,F){for(var $;;){if(!k.context||($=k.context.tagName,!h.contextGrabbers.hasOwnProperty(R($))||!h.contextGrabbers[R($)].hasOwnProperty(R(F))))return;E(k)}}function V(k,F,$){return k=="openTag"?($.tagStart=F.column(),ee):k=="closeTag"?ie:V}function ee(k,F,$){return k=="word"?($.tagName=F.current(),b="tag",j):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",j(k,F,$)):(b="error",ee)}function ie(k,F,$){if(k=="word"){var ae=F.current();return $.context&&$.context.tagName!=ae&&h.implicitlyClosed.hasOwnProperty(R($.context.tagName))&&E($),$.context&&$.context.tagName==ae||h.matchClosing===!1?(b="tag",Y):(b="tag error",G)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",Y(k,F,$)):(b="error",G)}function Y(k,F,$){return k!="endTag"?(b="error",Y):(E($),V)}function G(k,F,$){return b="error",Y(k,F,$)}function j(k,F,$){if(k=="word")return b="attribute",O;if(k=="endTag"||k=="selfcloseTag"){var ae=$.tagName,ce=$.tagStart;return $.tagName=$.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(R(ae))?D($,ae):(D($,ae),$.context=new I($,ae,ce==$.indented)),V}return b="error",j}function O(k,F,$){return k=="equals"?N:(h.allowMissing||(b="error"),j(k,F,$))}function N(k,F,$){return k=="string"?C:k=="word"&&h.allowUnquoted?(b="string",j):(b="error",j(k,F,$))}function C(k,F,$){return k=="string"?C:j(k,F,$)}return{startState:function(k){var F={tokenize:w,state:V,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(F.baseIndent=k),F},token:function(k,F){if(!F.tagName&&k.sol()&&(F.indented=k.indentation()),k.eatSpace())return null;v=null;var $=F.tokenize(k,F);return($||v)&&$!="comment"&&(b=null,F.state=F.state(v||$,k,F),b&&($=b=="error"?$+" error":b)),$},indent:function(k,F,$){var ae=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(ae&&ae.noIndent)return r.Pass;if(k.tokenize!=T&&k.tokenize!=w)return $?$.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(F))return 0;var ce=F&&/^<(\/)?([\w_:\.-]*)/.exec(F);if(ce&&ce[1])for(;ae;)if(ae.tagName==ce[2]){ae=ae.prev;break}else if(h.implicitlyClosed.hasOwnProperty(R(ae.tagName)))ae=ae.prev;else break;else if(ce)for(;ae;){var Se=h.contextGrabbers[R(ae.tagName)];if(Se&&Se.hasOwnProperty(R(ce[2])))ae=ae.prev;else break}for(;ae&&ae.prev&&!ae.startOfLine;)ae=ae.prev;return ae?ae.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==N&&(k.state=j)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var F=[],$=k.context;$;$=$.prev)F.push($.tagName);return F.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),Fy.exports}Pp();var By={exports:{}},jy={exports:{}},Wy;function Vce(){return Wy||(Wy=1,(function(e,t){(function(r){r(_o())})(function(r){r.defineMode("css",function(G,j){var O=j.inline;j.propertyKeywords||(j=r.resolveMode("text/css"));var N=G.indentUnit,C=j.tokenHooks,k=j.documentTypes||{},F=j.mediaTypes||{},$=j.mediaFeatures||{},ae=j.mediaValueKeywords||{},ce=j.propertyKeywords||{},Se=j.nonStandardPropertyKeywords||{},je=j.fontProperties||{},Ae=j.counterDescriptors||{},Ke=j.colorKeywords||{},qe=j.valueKeywords||{},Fe=j.allowNested,Re=j.lineComment,H=j.supportsAtComponent===!0,Z=G.highlightNonStandardPropertyKeywords!==!1,re,le;function ue(J,fe){return re=fe,J}function z(J,fe){var oe=J.next();if(C[oe]){var $e=C[oe](J,fe);if($e!==!1)return $e}if(oe=="@")return J.eatWhile(/[\w\\\-]/),ue("def",J.current());if(oe=="="||(oe=="~"||oe=="|")&&J.eat("="))return ue(null,"compare");if(oe=='"'||oe=="'")return fe.tokenize=W(oe),fe.tokenize(J,fe);if(oe=="#")return J.eatWhile(/[\w\\\-]/),ue("atom","hash");if(oe=="!")return J.match(/^\s*\w*/),ue("keyword","important");if(/\d/.test(oe)||oe=="."&&J.eat(/\d/))return J.eatWhile(/[\w.%]/),ue("number","unit");if(oe==="-"){if(/[\d.]/.test(J.peek()))return J.eatWhile(/[\w.%]/),ue("number","unit");if(J.match(/^-[\w\\\-]*/))return J.eatWhile(/[\w\\\-]/),J.match(/^\s*:/,!1)?ue("variable-2","variable-definition"):ue("variable-2","variable");if(J.match(/^\w+-/))return ue("meta","meta")}else return/[,+>*\/]/.test(oe)?ue(null,"select-op"):oe=="."&&J.match(/^-?[_a-z][_a-z0-9-]*/i)?ue("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(oe)?ue(null,oe):J.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(J.current())&&(fe.tokenize=Q),ue("variable callee","variable")):/[\w\\\-]/.test(oe)?(J.eatWhile(/[\w\\\-]/),ue("property","word")):ue(null,null)}function W(J){return function(fe,oe){for(var $e=!1,Qe;(Qe=fe.next())!=null;){if(Qe==J&&!$e){J==")"&&fe.backUp(1);break}$e=!$e&&Qe=="\\"}return(Qe==J||!$e&&J!=")")&&(oe.tokenize=null),ue("string","string")}}function Q(J,fe){return J.next(),J.match(/^\s*[\"\')]/,!1)?fe.tokenize=null:fe.tokenize=W(")"),ue(null,"(")}function he(J,fe,oe){this.type=J,this.indent=fe,this.prev=oe}function pe(J,fe,oe,$e){return J.context=new he(oe,fe.indentation()+($e===!1?0:N),J.context),oe}function me(J){return J.context.prev&&(J.context=J.context.prev),J.context.type}function Ce(J,fe,oe){return be[oe.context.type](J,fe,oe)}function Ee(J,fe,oe,$e){for(var Qe=$e||1;Qe>0;Qe--)oe.context=oe.context.prev;return Ce(J,fe,oe)}function ke(J){var fe=J.current().toLowerCase();qe.hasOwnProperty(fe)?le="atom":Ke.hasOwnProperty(fe)?le="keyword":le="variable"}var be={};return be.top=function(J,fe,oe){if(J=="{")return pe(oe,fe,"block");if(J=="}"&&oe.context.prev)return me(oe);if(H&&/@component/i.test(J))return pe(oe,fe,"atComponentBlock");if(/^@(-moz-)?document$/i.test(J))return pe(oe,fe,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(J))return pe(oe,fe,"atBlock");if(/^@(font-face|counter-style)/i.test(J))return oe.stateArg=J,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(J))return"keyframes";if(J&&J.charAt(0)=="@")return pe(oe,fe,"at");if(J=="hash")le="builtin";else if(J=="word")le="tag";else{if(J=="variable-definition")return"maybeprop";if(J=="interpolation")return pe(oe,fe,"interpolation");if(J==":")return"pseudo";if(Fe&&J=="(")return pe(oe,fe,"parens")}return oe.context.type},be.block=function(J,fe,oe){if(J=="word"){var $e=fe.current().toLowerCase();return ce.hasOwnProperty($e)?(le="property","maybeprop"):Se.hasOwnProperty($e)?(le=Z?"string-2":"property","maybeprop"):Fe?(le=fe.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(le+=" error","maybeprop")}else return J=="meta"?"block":!Fe&&(J=="hash"||J=="qualifier")?(le="error","block"):be.top(J,fe,oe)},be.maybeprop=function(J,fe,oe){return J==":"?pe(oe,fe,"prop"):Ce(J,fe,oe)},be.prop=function(J,fe,oe){if(J==";")return me(oe);if(J=="{"&&Fe)return pe(oe,fe,"propBlock");if(J=="}"||J=="{")return Ee(J,fe,oe);if(J=="(")return pe(oe,fe,"parens");if(J=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(fe.current()))le+=" error";else if(J=="word")ke(fe);else if(J=="interpolation")return pe(oe,fe,"interpolation");return"prop"},be.propBlock=function(J,fe,oe){return J=="}"?me(oe):J=="word"?(le="property","maybeprop"):oe.context.type},be.parens=function(J,fe,oe){return J=="{"||J=="}"?Ee(J,fe,oe):J==")"?me(oe):J=="("?pe(oe,fe,"parens"):J=="interpolation"?pe(oe,fe,"interpolation"):(J=="word"&&ke(fe),"parens")},be.pseudo=function(J,fe,oe){return J=="meta"?"pseudo":J=="word"?(le="variable-3",oe.context.type):Ce(J,fe,oe)},be.documentTypes=function(J,fe,oe){return J=="word"&&k.hasOwnProperty(fe.current())?(le="tag",oe.context.type):be.atBlock(J,fe,oe)},be.atBlock=function(J,fe,oe){if(J=="(")return pe(oe,fe,"atBlock_parens");if(J=="}"||J==";")return Ee(J,fe,oe);if(J=="{")return me(oe)&&pe(oe,fe,Fe?"block":"top");if(J=="interpolation")return pe(oe,fe,"interpolation");if(J=="word"){var $e=fe.current().toLowerCase();$e=="only"||$e=="not"||$e=="and"||$e=="or"?le="keyword":F.hasOwnProperty($e)?le="attribute":$.hasOwnProperty($e)?le="property":ae.hasOwnProperty($e)?le="keyword":ce.hasOwnProperty($e)?le="property":Se.hasOwnProperty($e)?le=Z?"string-2":"property":qe.hasOwnProperty($e)?le="atom":Ke.hasOwnProperty($e)?le="keyword":le="error"}return oe.context.type},be.atComponentBlock=function(J,fe,oe){return J=="}"?Ee(J,fe,oe):J=="{"?me(oe)&&pe(oe,fe,Fe?"block":"top",!1):(J=="word"&&(le="error"),oe.context.type)},be.atBlock_parens=function(J,fe,oe){return J==")"?me(oe):J=="{"||J=="}"?Ee(J,fe,oe,2):be.atBlock(J,fe,oe)},be.restricted_atBlock_before=function(J,fe,oe){return J=="{"?pe(oe,fe,"restricted_atBlock"):J=="word"&&oe.stateArg=="@counter-style"?(le="variable","restricted_atBlock_before"):Ce(J,fe,oe)},be.restricted_atBlock=function(J,fe,oe){return J=="}"?(oe.stateArg=null,me(oe)):J=="word"?(oe.stateArg=="@font-face"&&!je.hasOwnProperty(fe.current().toLowerCase())||oe.stateArg=="@counter-style"&&!Ae.hasOwnProperty(fe.current().toLowerCase())?le="error":le="property","maybeprop"):"restricted_atBlock"},be.keyframes=function(J,fe,oe){return J=="word"?(le="variable","keyframes"):J=="{"?pe(oe,fe,"top"):Ce(J,fe,oe)},be.at=function(J,fe,oe){return J==";"?me(oe):J=="{"||J=="}"?Ee(J,fe,oe):(J=="word"?le="tag":J=="hash"&&(le="builtin"),"at")},be.interpolation=function(J,fe,oe){return J=="}"?me(oe):J=="{"||J==";"?Ee(J,fe,oe):(J=="word"?le="variable":J!="variable"&&J!="("&&J!=")"&&(le="error"),"interpolation")},{startState:function(J){return{tokenize:null,state:O?"block":"top",stateArg:null,context:new he(O?"block":"top",J||0,null)}},token:function(J,fe){if(!fe.tokenize&&J.eatSpace())return null;var oe=(fe.tokenize||z)(J,fe);return oe&&typeof oe=="object"&&(re=oe[1],oe=oe[0]),le=oe,re!="comment"&&(fe.state=be[fe.state](re,J,fe)),le},indent:function(J,fe){var oe=J.context,$e=fe&&fe.charAt(0),Qe=oe.indent;return oe.type=="prop"&&($e=="}"||$e==")")&&(oe=oe.prev),oe.prev&&($e=="}"&&(oe.type=="block"||oe.type=="top"||oe.type=="interpolation"||oe.type=="restricted_atBlock")?(oe=oe.prev,Qe=oe.indent):($e==")"&&(oe.type=="parens"||oe.type=="atBlock_parens")||$e=="{"&&(oe.type=="at"||oe.type=="atBlock"))&&(Qe=Math.max(0,oe.indent-N))),Qe},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Re,fold:"brace"}});function o(G){for(var j={},O=0;O<G.length;++O)j[G[O].toLowerCase()]=!0;return j}var s=["domain","regexp","url","url-prefix"],c=o(s),f=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],d=o(f),h=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],p=o(h),g=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],v=o(g),b=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],w=o(b),T=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],L=o(T),P=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],M=o(P),R=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],I=o(R),E=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],D=o(E),V=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],ee=o(V),ie=s.concat(f).concat(h).concat(g).concat(b).concat(T).concat(E).concat(V);r.registerHelper("hintWords","css",ie);function Y(G,j){for(var O=!1,N;(N=G.next())!=null;){if(O&&N=="/"){j.tokenize=null;break}O=N=="*"}return["comment","comment"]}r.defineMIME("text/css",{documentTypes:c,mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:L,fontProperties:M,counterDescriptors:I,colorKeywords:D,valueKeywords:ee,tokenHooks:{"/":function(G,j){return G.eat("*")?(j.tokenize=Y,Y(G,j)):!1}},name:"css"}),r.defineMIME("text/x-scss",{mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:L,colorKeywords:D,valueKeywords:ee,fontProperties:M,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(G,j){return G.eat("/")?(G.skipToEnd(),["comment","comment"]):G.eat("*")?(j.tokenize=Y,Y(G,j)):["operator","operator"]},":":function(G){return G.match(/^\s*\{/,!1)?[null,null]:!1},$:function(G){return G.match(/^[\w-]+/),G.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(G){return G.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),r.defineMIME("text/x-less",{mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:L,colorKeywords:D,valueKeywords:ee,fontProperties:M,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(G,j){return G.eat("/")?(G.skipToEnd(),["comment","comment"]):G.eat("*")?(j.tokenize=Y,Y(G,j)):["operator","operator"]},"@":function(G){return G.eat("{")?[null,"interpolation"]:G.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(G.eatWhile(/[\w\\\-]/),G.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),r.defineMIME("text/x-gss",{documentTypes:c,mediaTypes:d,mediaFeatures:p,propertyKeywords:w,nonStandardPropertyKeywords:L,fontProperties:M,counterDescriptors:I,colorKeywords:D,valueKeywords:ee,supportsAtComponent:!0,tokenHooks:{"/":function(G,j){return G.eat("*")?(j.tokenize=Y,Y(G,j)):!1}},name:"css",helperType:"gss"})})})()),jy.exports}var qy;function Gce(){return qy||(qy=1,(function(e,t){(function(r){r(_o(),Pp(),Op(),Vce())})(function(r){var o={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function s(v,b,w){var T=v.current(),L=T.search(b);return L>-1?v.backUp(T.length-L):T.match(/<\/?$/)&&(v.backUp(T.length),v.match(b,!1)||v.match(T)),w}var c={};function f(v){var b=c[v];return b||(c[v]=new RegExp("\\s+"+v+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function d(v,b){var w=v.match(f(b));return w?/^\s*(.*?)\s*$/.exec(w[2])[1]:""}function h(v,b){return new RegExp((b?"^":"")+"</\\s*"+v+"\\s*>","i")}function p(v,b){for(var w in v)for(var T=b[w]||(b[w]=[]),L=v[w],P=L.length-1;P>=0;P--)T.unshift(L[P])}function g(v,b){for(var w=0;w<v.length;w++){var T=v[w];if(!T[0]||T[1].test(d(b,T[0])))return T[2]}}r.defineMode("htmlmixed",function(v,b){var w=r.getMode(v,{name:"xml",htmlMode:!0,multilineTagIndentFactor:b.multilineTagIndentFactor,multilineTagIndentPastTag:b.multilineTagIndentPastTag,allowMissingTagName:b.allowMissingTagName}),T={},L=b&&b.tags,P=b&&b.scriptTypes;if(p(o,T),L&&p(L,T),P)for(var M=P.length-1;M>=0;M--)T.script.unshift(["type",P[M].matches,P[M].mode]);function R(I,E){var D=w.token(I,E.htmlState),V=/\btag\b/.test(D),ee;if(V&&!/[<>\s\/]/.test(I.current())&&(ee=E.htmlState.tagName&&E.htmlState.tagName.toLowerCase())&&T.hasOwnProperty(ee))E.inTag=ee+" ";else if(E.inTag&&V&&/>$/.test(I.current())){var ie=/^([\S]+) (.*)/.exec(E.inTag);E.inTag=null;var Y=I.current()==">"&&g(T[ie[1]],ie[2]),G=r.getMode(v,Y),j=h(ie[1],!0),O=h(ie[1],!1);E.token=function(N,C){return N.match(j,!1)?(C.token=R,C.localState=C.localMode=null,null):s(N,O,C.localMode.token(N,C.localState))},E.localMode=G,E.localState=r.startState(G,w.indent(E.htmlState,"",""))}else E.inTag&&(E.inTag+=I.current(),I.eol()&&(E.inTag+=" "));return D}return{startState:function(){var I=r.startState(w);return{token:R,inTag:null,localMode:null,localState:null,htmlState:I}},copyState:function(I){var E;return I.localState&&(E=r.copyState(I.localMode,I.localState)),{token:I.token,inTag:I.inTag,localMode:I.localMode,localState:E,htmlState:r.copyState(w,I.htmlState)}},token:function(I,E){return E.token(I,E)},indent:function(I,E,D){return!I.localMode||/^\s*<\//.test(E)?w.indent(I.htmlState,E,D):I.localMode.indent?I.localMode.indent(I.localState,E,D):r.Pass},innerMode:function(I){return{state:I.localState||I.htmlState,mode:I.localMode||w}}}},"xml","javascript","css"),r.defineMIME("text/html","htmlmixed")})})()),By.exports}Gce();var Uy={exports:{}},Vy;function Kce(){return Vy||(Vy=1,(function(e,t){(function(r){r(_o(),Pp(),Op())})(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 T=w.tagName;w.tagName=null;var L=d.indent(w,"","");return w.tagName=T,L}function g(w,T){return T.context.mode==d?v(w,T,T.context):b(w,T,T.context)}function v(w,T,L){if(L.depth==2)return w.match(/^.*?\*\//)?L.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(L.state);var P=p(L.state),M=L.state.context;if(M&&w.match(/^[^>]*>\s*$/,!1)){for(;M.prev&&!M.startOfLine;)M=M.prev;M.startOfLine?P-=c.indentUnit:L.prev.state.lexical&&(P=L.prev.state.lexical.indented)}else L.depth==1&&(P+=c.indentUnit);return T.context=new o(r.startState(h,P),h,0,T.context),null}if(L.depth==1){if(w.peek()=="<")return d.skipAttribute(L.state),T.context=new o(r.startState(d,p(L.state)),d,0,T.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return L.depth=2,g(w,T)}var R=d.token(w,L.state),I=w.current(),E;return/\btag\b/.test(R)?/>$/.test(I)?L.state.context?L.depth=0:T.context=T.context.prev:/^</.test(I)&&(L.depth=1):!R&&(E=I.indexOf("{"))>-1&&w.backUp(I.length-E),R}function b(w,T,L){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,L.state))return T.context=new o(r.startState(d,h.indent(L.state,"","")),d,0,T.context),h.skipExpression(L.state),null;var P=h.token(w,L.state);if(!P&&L.depth!=null){var M=w.current();M=="{"?L.depth++:M=="}"&&--L.depth==0&&(T.context=T.context.prev)}return P}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:g,indent:function(w,T,L){return w.context.mode.indent(w.context.state,T,L)},innerMode:function(w){return w.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),Uy.exports}Kce();var Gy={exports:{}},Ky;function Xce(){return Ky||(Ky=1,(function(e,t){(function(r){r(_o())})(function(r){r.defineOption("placeholder","",function(p,g,v){var b=v&&v!=r.Init;if(g&&!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(!g&&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","")}g&&!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 g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),g.appendChild(v),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var v=p.getInputField();g=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}g?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),Gy.exports}Xce();var Xy={exports:{}},Yy;function Yce(){return Yy||(Yy=1,(function(e,t){(function(r){r(_o())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(v){if(v.which!=1)return;r.e_preventDefault(v);var b=p.orientation=="horizontal"?"pageX":"pageY",w=v[b],T=p.pos;function L(){r.off(document,"mousemove",P),r.off(document,"mouseup",L)}function P(M){if(M.which!=1)return L();p.moveTo(T+(M[b]-w)*(p.total/p.size))}r.on(document,"mousemove",P),r.on(document,"mouseup",L)}),r.on(this.node,"click",function(v){r.e_preventDefault(v);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=v.clientX<b.left?-1:v.clientX>b.right?1:0:w=v.clientY<b.top?-1:v.clientY>b.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function g(v){var b=r.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(v)}r.on(this.node,"mousewheel",g),r.on(this.node,"DOMMouseScroll",g)}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 g=this.screen*(this.size/this.total);g<s&&(this.size-=s-g,g=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=g+"px",this.setPos(this.pos,p)};function 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,g=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(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-(g?h:0)-f.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:g?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)}})})()),Xy.exports}Yce();const On=Nt();function Zce(e,t,r={}){const o=gM.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),kt(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}),Va(()=>{On.value=void 0}),Qu(o)}async function Dx(e){Pa({file:e.file.id,line:e.location?.line??1,view:"editor",test:e.id,column:null})}function Jce(e,t){Pa({file:e,column:t.column-1,line:t.line,view:"editor",test:ki.value})}function Qce(e,t){if(!t)return;const{line:r,column:o,file:s}=t;if(e.file.filepath!==s)return Mp(s,r,o);Pa({file:e.file.id,column:o-1,line:r,view:"editor",test:ki.value})}const pr=Ue(),Ys=Ue(!0),ko=Ue(!1),$u=Ue(!0),Bs=xe(()=>zn.value?.coverage),Ch=xe(()=>Bs.value?.enabled),js=xe(()=>Ch.value&&!!Bs.value.htmlReporter),Zs=pf("vitest-ui_splitpanes-mainSizes",[33,67]),mo=pf("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?tr.value[0]/window.outerWidth*100:33,67]),Lt=ir({navigation:Zs.value[0],details:{size:Zs.value[1],browser:mo.value[0],main:mo.value[1]}}),Zy=xe(()=>{if(js.value){const e=Bs.value.reportsDirectory.lastIndexOf("/"),t=Bs.value.htmlReporter?.subdir;return t?`/${Bs.value.reportsDirectory.slice(e+1)}/${t}/index.html`:`/${Bs.value.reportsDirectory.slice(e+1)}/index.html`}});kt(yf,e=>{$u.value=e==="running"},{immediate:!0});function eue(){const e=xo.value;if(e&&e.length>0){const t=mr(e);t?(pr.value=t,Ys.value=!1,ko.value=!1):XE(()=>ft.state.getFiles(),()=>{pr.value=mr(e),Ys.value=!1,ko.value=!1})}return Ys}function Iu(e){Ys.value=e,ko.value=!1,e&&(pr.value=void 0,xo.value="")}function Pa({file:e,line:t,view:r,test:o,column:s}){xo.value=e,$x.value=t,Ix.value=s,pn.value=r,ki.value=o,pr.value=mr(e),Iu(!1)}function tue(e){e.type==="test"?pn.value==="editor"?Dx(e):Pa({file:e.file.id,line:null,column:null,view:pn.value,test:e.id}):Pa({file:e.file.id,test:null,line:null,view:pn.value,column:null})}function nue(){ko.value=!0,Ys.value=!1,pr.value=void 0,xo.value=""}function rue(){Lt.details.browser=100,Lt.details.main=0,mo.value=[100,0]}function zx(){if(Zn?.provider==="webdriverio"){const e=window.outerWidth*(Lt.details.size/100);return(tr.value[0]+20)/e*100}return 33}function iue(){Lt.details.browser=zx(),Lt.details.main=100-Lt.details.browser,mo.value=[Lt.details.browser,Lt.details.main]}function oue(){Lt.navigation=33,Lt.details.size=67,Zs.value=[33,67]}function Fx(){Lt.details.main!==0&&(Lt.details.browser=zx(),Lt.details.main=100-Lt.details.browser,mo.value=[Lt.details.browser,Lt.details.main])}const sue={setCurrentFileId(e){xo.value=e,pr.value=mr(e),Iu(!1)},async setIframeViewport(e,t){tr.value=[e,t],Zn?.provider==="webdriverio"&&Fx(),await new Promise(r=>requestAnimationFrame(r))}},lue=location.port,aue=[location.hostname,lue].filter(Boolean).join(":"),cue=`${location.protocol==="https:"?"wss:":"ws:"}//${aue}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,gr=!!window.METADATA_PATH;var rr=Uint8Array,Ws=Uint16Array,uue=Int32Array,Hx=new rr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Bx=new rr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),fue=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),jx=function(e,t){for(var r=new Ws(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new uue(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}},Wx=jx(Hx,2),qx=Wx.b,due=Wx.r;qx[28]=258,due[258]=28;var hue=jx(Bx,0),pue=hue.b,Eh=new Ws(32768);for(var Mt=0;Mt<32768;++Mt){var Xi=(Mt&43690)>>1|(Mt&21845)<<1;Xi=(Xi&52428)>>2|(Xi&13107)<<2,Xi=(Xi&61680)>>4|(Xi&3855)<<4,Eh[Mt]=((Xi&65280)>>8|(Xi&255)<<8)>>1}var pa=(function(e,t,r){for(var o=e.length,s=0,c=new Ws(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new Ws(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new Ws(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],g=t-e[s],v=f[e[s]-1]++<<g,b=v|(1<<g)-1;v<=b;++v)d[Eh[v]>>h]=p}else for(d=new Ws(o),s=0;s<o;++s)e[s]&&(d[s]=Eh[f[e[s]-1]++]>>15-e[s]);return d}),Ja=new rr(288);for(var Mt=0;Mt<144;++Mt)Ja[Mt]=8;for(var Mt=144;Mt<256;++Mt)Ja[Mt]=9;for(var Mt=256;Mt<280;++Mt)Ja[Mt]=7;for(var Mt=280;Mt<288;++Mt)Ja[Mt]=8;var Ux=new rr(32);for(var Mt=0;Mt<32;++Mt)Ux[Mt]=5;var gue=pa(Ja,9,1),mue=pa(Ux,5,1),zd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Ar=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},Fd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},vue=function(e){return(e+7)/8|0},Vx=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new rr(e.subarray(t,r))},yue=["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"],Vn=function(e,t,r){var o=new Error(t||yue[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Vn),!r)throw o;return o},Rp=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new rr(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new rr(s*3));var p=function(ue){var z=r.length;if(ue>z){var W=new rr(Math.max(z*2,ue));W.set(r),r=W}},g=t.f||0,v=t.p||0,b=t.b||0,w=t.l,T=t.d,L=t.m,P=t.n,M=s*8;do{if(!w){g=Ar(e,v,1);var R=Ar(e,v+1,3);if(v+=3,R)if(R==1)w=gue,T=mue,L=9,P=5;else if(R==2){var V=Ar(e,v,31)+257,ee=Ar(e,v+10,15)+4,ie=V+Ar(e,v+5,31)+1;v+=14;for(var Y=new rr(ie),G=new rr(19),j=0;j<ee;++j)G[fue[j]]=Ar(e,v+j*3,7);v+=ee*3;for(var O=zd(G),N=(1<<O)-1,C=pa(G,O,1),j=0;j<ie;){var k=C[Ar(e,v,N)];v+=k&15;var I=k>>4;if(I<16)Y[j++]=I;else{var F=0,$=0;for(I==16?($=3+Ar(e,v,3),v+=2,F=Y[j-1]):I==17?($=3+Ar(e,v,7),v+=3):I==18&&($=11+Ar(e,v,127),v+=7);$--;)Y[j++]=F}}var ae=Y.subarray(0,V),ce=Y.subarray(V);L=zd(ae),P=zd(ce),w=pa(ae,L,1),T=pa(ce,P,1)}else Vn(1);else{var I=vue(v)+4,E=e[I-4]|e[I-3]<<8,D=I+E;if(D>s){h&&Vn(0);break}d&&p(b+E),r.set(e.subarray(I,D),b),t.b=b+=E,t.p=v=D*8,t.f=g;continue}if(v>M){h&&Vn(0);break}}d&&p(b+131072);for(var Se=(1<<L)-1,je=(1<<P)-1,Ae=v;;Ae=v){var F=w[Fd(e,v)&Se],Ke=F>>4;if(v+=F&15,v>M){h&&Vn(0);break}if(F||Vn(2),Ke<256)r[b++]=Ke;else if(Ke==256){Ae=v,w=null;break}else{var qe=Ke-254;if(Ke>264){var j=Ke-257,Fe=Hx[j];qe=Ar(e,v,(1<<Fe)-1)+qx[j],v+=Fe}var Re=T[Fd(e,v)&je],H=Re>>4;Re||Vn(3),v+=Re&15;var ce=pue[H];if(H>3){var Fe=Bx[H];ce+=Fd(e,v)&(1<<Fe)-1,v+=Fe}if(v>M){h&&Vn(0);break}d&&p(b+131072);var Z=b+qe;if(b<ce){var re=c-ce,le=Math.min(ce,Z);for(re+b<0&&Vn(3);b<le;++b)r[b]=o[re+b]}for(;b<Z;++b)r[b]=r[b-ce]}}t.l=w,t.p=Ae,t.b=b,t.f=g,w&&(g=1,t.m=L,t.d=T,t.n=P)}while(!g);return b!=r.length&&f?Vx(r,0,b):r.subarray(0,b)},bue=new rr(0),wue=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Vn(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)},xue=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},kue=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Vn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Vn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Sue(e,t){return Rp(e,{i:2},t,t)}function _ue(e,t){var r=wue(e);return r+8>e.length&&Vn(6,"invalid gzip data"),Rp(e.subarray(r,-8),{i:2},new rr(xue(e)),t)}function Tue(e,t){return Rp(e.subarray(kue(e),-4),{i:2},t,t)}function Cue(e,t){return e[0]==31&&e[1]==139&&e[2]==8?_ue(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Sue(e,t):Tue(e,t)}var Ah=typeof TextDecoder<"u"&&new TextDecoder,Eue=0;try{Ah.decode(bue,{stream:!0}),Eue=1}catch{}var Aue=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:Vx(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 Jy(e,t){var r;if(Ah)return Ah.decode(e);var o=Aue(e),s=o.s,r=o.r;return r.length&&Vn(8),s}const Hd=()=>{},hn=()=>Promise.resolve();function Lue(){const e=ir({state:new vx,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=ir(e.state.filesMap),e.state.idMap=ir(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(d,h)=>t.moduleGraph[d]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getExternalResult:hn,getTransformResult:hn,onDone:Hd,onTaskUpdate:Hd,writeFile:hn,rerun:hn,rerunTask:hn,updateSnapshot:hn,resolveSnapshotPath:hn,snapshotSaved:hn,onAfterSuiteRun:hn,onCancel:hn,getCountOfFailedTests:()=>0,sendLog:hn,resolveSnapshotRawPath:hn,readSnapshotFile:hn,saveSnapshotFile:hn,readTestFile:async d=>t.sources[d],removeSnapshotFile:hn,onUnhandledError:Hd,saveTestFile:hn,getProvidedContext:()=>({}),getTestFiles:hn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){const d=await fetch(window.METADATA_PATH),h=new Uint8Array(await d.arrayBuffer());if(h.length>=2&&h[0]===31&&h[1]===139){const g=Jy(Cue(h));t=xh(g)}else t=xh(Jy(h));const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const ft=(function(){return gr?Lue():LL(cue,{reactive:(t,r)=>r==="state"?ir(t):Nt(t),handlers:{onTestAnnotate(t,r){Le.recordTestArtifact(t,{type:"internal:annotation",annotation:r,location:r.location})},onTestArtifactRecord(t,r){Le.recordTestArtifact(t,r)},onTaskUpdate(t,r){Le.resumeRun(t,r),yf.value="running"},onSpecsCollected(t,r){Le.startTime=r||performance.now()},onFinished(t,r,o,s){Le.endRun(s),io.value=(r||[]).map(Px)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),zn=Nt({}),Go=Ue("CONNECTING"),$p=Nt([]),Gt=xe(()=>{const e=xo.value;return e?mr(e):void 0}),Gx=xe(()=>Tp(Gt.value).map(e=>e?.logs||[]).flat()||[]);function mr(e){const t=ft.state.idMap.get(e);return t||void 0}const Mue=xe(()=>Go.value==="OPEN"),Bd=xe(()=>Go.value==="CONNECTING");xe(()=>Go.value==="CLOSED");function Nue(){return Ip(ft.state.getFiles())}function Kx(e){delete e.result;const t=Le.nodes.get(e.id);if(t&&(t.state=void 0,e.mode="run",t.duration=void 0,Xa(e)))for(const r of e.tasks)Kx(r)}function Oue(e){const t=Le.nodes;e.forEach(r=>{delete r.result,Tp(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.mode="run",c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.mode="run",o.duration=void 0,In(o)&&(o.collectDuration=void 0))})}function Ip(e){return Oue(e),Le.startRun(),ft.rpc.rerun(e.map(t=>t.filepath),!0)}function Pue(e){return Kx(e),Le.startRun(),ft.rpc.rerunTask(e.id)}const Zn=window.__vitest_browser_runner__;window.__vitest_ui_api__=sue;kt(()=>ft.ws,e=>{Go.value=gr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Go.value="OPEN",ft.state.filesMap.clear();let[t,r,o,s]=await Promise.all([ft.rpc.getFiles(),ft.rpc.getConfig(),ft.rpc.getUnhandledErrors(),ft.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await ft.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=lx(h,d,f);return p.mode="skip",p})),$p.value=s.map(c=>c.name),Le.loadFiles(t,s),ft.state.collectFiles(t),Le.startRun(),io.value=(o||[]).map(Px),zn.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Go.value==="CONNECTING"&&(Go.value="CLOSED")},1e3)})},{immediate:!0});const Rue=["aria-label","opacity","disabled","hover"],xt=rt({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(ne(),ve("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:st(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Ft(t.$slots,"default",{},()=>[X("span",{class:st(e.icon),ma:"",block:""},null,2)])],10,Rue))}}),$ue={h:"full",flex:"~ col"},Iue={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Due={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},zue={class:"pointer-events-none","text-sm":""},Fue={key:0},Hue={id:"tester-container",relative:""},Bue=["data-scale"],Qy=20,jue=100,Wue=rt({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const g=t[p];return tr.value[0]===g[0]&&tr.value[1]===g[1]}const{width:o,height:s}=Qw();async function c(p){tr.value=t[p],Zn?.provider==="webdriverio"&&Fx()}const f=xe(()=>{if(Zn?.provider==="webdriverio"){const[w,T]=tr.value;return{width:w,height:T}}const v=o.value*(Lt.details.size/100)*(Lt.details.browser/100)-Qy,b=s.value-jue;return{width:v,height:b}}),d=xe(()=>{if(Zn?.provider==="webdriverio")return 1;const[p,g]=tr.value,{width:v,height:b}=f.value,w=v>p?1:v/p,T=b>g?1:b/g;return Math.min(1,w,T)}),h=xe(()=>{const p=f.value.width,g=tr.value[0];return`${Math.trunc((p+Qy-g)/2)}px`});return(p,g)=>{const v=vr("tooltip");return ne(),ve("div",$ue,[X("div",Iue,[ot(Ne(xt,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=b=>K(oue)())},null,512),[[ao,K(Lt).navigation<=15],[v,"Show Navigation Panel",void 0,{bottom:!0}]]),g[6]||(g[6]=X("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[7]||(g[7]=X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),ot(Ne(xt,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:g[1]||(g[1]=b=>K(rue)())},null,512),[[ao,K(Lt).details.main>0],[v,"Hide Right Panel",void 0,{bottom:!0}]]),ot(Ne(xt,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:g[2]||(g[2]=b=>K(iue)())},null,512),[[ao,K(Lt).details.main===0],[v,"Show Right Panel",void 0,{bottom:!0}]])]),X("div",Due,[ot(Ne(xt,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:g[3]||(g[3]=b=>c("small-mobile"))},null,8,["active"]),[[v,"Small mobile",void 0,{bottom:!0}]]),ot(Ne(xt,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:g[4]||(g[4]=b=>c("large-mobile"))},null,8,["active"]),[[v,"Large mobile",void 0,{bottom:!0}]]),ot(Ne(xt,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:g[5]||(g[5]=b=>c("tablet"))},null,8,["active"]),[[v,"Tablet",void 0,{bottom:!0}]]),X("span",zue,[Je(Me(K(tr)[0])+"x"+Me(K(tr)[1])+"px ",1),d.value<1?(ne(),ve("span",Fue,"("+Me((d.value*100).toFixed(0))+"%)",1)):He("",!0)])]),X("div",Hue,[X("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":d.value,style:Rt({"--viewport-width":`${K(tr)[0]}px`,"--viewport-height":`${K(tr)[1]}px`,"--tester-transform":`scale(${d.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,Bue)])])}}}),que=Ri(Wue,[["__scopeId","data-v-2e86b8c3"]]),Uue={"text-2xl":""},Vue={"text-lg":"",op50:""},Gue=rt({__name:"ConnectionOverlay",setup(e){return(t,r)=>K(Mue)?He("",!0):(ne(),ve("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)=>K(ft).reconnect&&K(ft).reconnect(...o))},[X("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:st(K(Bd)?"animate-pulse":"")},[X("div",{text:"5xl",class:st(K(Bd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),X("div",Uue,Me(K(Bd)?"Connecting...":"Disconnected"),1),X("div",Vue," Check your terminal or start a new server with `"+Me(K(Zn)?`vitest --browser=${K(Zn).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Kue={h:"full",flex:"~ col"},Xue={"flex-auto":"","py-1":"","bg-white":""},Yue=["src"],e0=rt({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(ne(),ve("div",Kue,[r[0]||(r[0]=X("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[X("div",{class:"i-carbon:folder-details-reference"}),X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),X("div",Xue,[X("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,Yue)])]))}}),Zue={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Jue={"font-bold":""},Que={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},efe=["font-bold"],tfe={text:"red500/70"},nfe={key:1,text:"sm","mb-2":""},rfe={"font-bold":""},ife={key:2,text:"sm","mb-2":""},ofe={"font-bold":""},sfe=rt({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>(ne(),ve(et,null,[X("h4",Zue,[X("span",Jue,[Je(Me(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(ne(),ve(et,{key:0},[Je(":")],64)):He("",!0)]),Je(" "+Me(e.error.message),1)]),e.error.stacks?.length?(ne(),ve("p",Que,[(ne(!0),ve(et,null,vn(e.error.stacks,(o,s)=>(ne(),ve("span",{key:s,"whitespace-pre":"","font-bold":s===0?"":null},[Je("❯ "+Me(o.method)+" "+Me(o.file)+":",1),X("span",tfe,Me(o.line)+":"+Me(o.column),1),r[0]||(r[0]=X("br",null,null,-1))],8,efe))),128))])):He("",!0),e.error.VITEST_TEST_PATH?(ne(),ve("p",nfe,[r[1]||(r[1]=Je(" This error originated in ",-1)),X("span",rfe,Me(e.error.VITEST_TEST_PATH),1),r[2]||(r[2]=Je(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):He("",!0),e.error.VITEST_TEST_NAME?(ne(),ve("div",ife,[r[3]||(r[3]=Je(" The latest test that might've caused the error is ",-1)),X("span",ofe,Me(e.error.VITEST_TEST_NAME),1),r[4]||(r[4]=Je(". It might mean one of the following:",-1)),r[5]||(r[5]=X("br",null,null,-1)),r[6]||(r[6]=X("ul",null,[X("li",null," The error was thrown, while Vitest was running this test. "),X("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):He("",!0)],64))}}),lfe={"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:""},afe={class:"number","data-testid":"num-files"},cfe={class:"number"},ufe={class:"number","text-red5":""},ffe={class:"number","text-red5":""},dfe={class:"number","text-red5":""},hfe={class:"number","data-testid":"run-time"},pfe={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},gfe={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},mfe={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},vfe=rt({__name:"TestFilesEntry",setup(e){return(t,r)=>(ne(),ve(et,null,[X("div",lfe,[r[8]||(r[8]=X("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=X("div",null,"Files",-1)),X("div",afe,Me(K(Le).summary.files),1),K(Le).summary.filesSuccess?(ne(),ve(et,{key:0},[r[0]||(r[0]=X("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=X("div",null,"Pass",-1)),X("div",cfe,Me(K(Le).summary.filesSuccess),1)],64)):He("",!0),K(Le).summary.filesFailed?(ne(),ve(et,{key:1},[r[2]||(r[2]=X("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=X("div",null," Fail ",-1)),X("div",ufe,Me(K(Le).summary.filesFailed),1)],64)):He("",!0),K(Le).summary.filesSnapshotFailed?(ne(),ve(et,{key:2},[r[4]||(r[4]=X("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=X("div",null," Snapshot Fail ",-1)),X("div",ffe,Me(K(Le).summary.filesSnapshotFailed),1)],64)):He("",!0),K(io).length?(ne(),ve(et,{key:3},[r[6]||(r[6]=X("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=X("div",null," Errors ",-1)),X("div",dfe,Me(K(io).length),1)],64)):He("",!0),r[10]||(r[10]=X("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=X("div",null,"Time",-1)),X("div",hfe,Me(K(Le).summary.time),1)]),K(io).length?(ne(),ve("div",pfe,[r[15]||(r[15]=X("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),X("p",gfe,[Je(" Vitest caught "+Me(K(io).length)+" error"+Me(K(io).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=X("br",null,null,-1)),r[13]||(r[13]=Je(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),X("details",mfe,[r[14]||(r[14]=X("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(ne(!0),ve(et,null,vn(K(io),(o,s)=>(ne(),Ve(sfe,{key:s,error:o},null,8,["error"]))),128))])])):He("",!0)],64))}}),yfe=Ri(vfe,[["__scopeId","data-v-1bd0f2ea"]]),bfe={"p-2":"","text-center":"",flex:""},wfe={"text-4xl":"","min-w-2em":""},xfe={"text-md":""},Rs=rt({__name:"DashboardEntry",setup(e){return(t,r)=>(ne(),ve("div",bfe,[X("div",null,[X("div",wfe,[Ft(t.$slots,"body")]),X("div",xfe,[Ft(t.$slots,"header")])])]))}}),kfe={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Sfe=rt({__name:"TestsEntry",setup(e){function t(r){it.success=!1,it.failed=!1,it.skipped=!1,r!=="total"&&(it[r]=!0)}return(r,o)=>(ne(),ve("div",kfe,[Ne(Rs,{"text-green5":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=s=>t("success"))},{header:Be(()=>[...o[4]||(o[4]=[Je(" Pass ",-1)])]),body:Be(()=>[Je(Me(K(Le).summary.testsSuccess),1)]),_:1}),Ne(Rs,{class:st({"text-red5":K(Le).summary.testsFailed,op50:!K(Le).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=s=>t("failed"))},{header:Be(()=>[...o[5]||(o[5]=[Je(" Fail ",-1)])]),body:Be(()=>[Je(Me(K(Le).summary.testsFailed),1)]),_:1},8,["class"]),K(Le).summary.testsExpectedFail?(ne(),Ve(Rs,{key:0,"text-cyan5":"","data-testid":"expected-fail-entry"},{header:Be(()=>[...o[6]||(o[6]=[Je(" Expected Fail ",-1)])]),body:Be(()=>[Je(Me(K(Le).summary.testsExpectedFail),1)]),_:1})):He("",!0),K(Le).summary.testsSkipped?(ne(),Ve(Rs,{key:1,op50:"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=s=>t("skipped"))},{header:Be(()=>[...o[7]||(o[7]=[Je(" Skip ",-1)])]),body:Be(()=>[Je(Me(K(Le).summary.testsSkipped),1)]),_:1})):He("",!0),K(Le).summary.testsTodo?(ne(),Ve(Rs,{key:2,op50:"","data-testid":"todo-entry"},{header:Be(()=>[...o[8]||(o[8]=[Je(" Todo ",-1)])]),body:Be(()=>[Je(Me(K(Le).summary.testsTodo),1)]),_:1})):He("",!0),Ne(Rs,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=s=>t("total"))},{header:Be(()=>[...o[9]||(o[9]=[Je(" Total ",-1)])]),body:Be(()=>[Je(Me(K(Le).summary.totalTests),1)]),_:1})]))}}),_fe={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Tfe={key:0,class:"text-gray-5"},Cfe={"aria-labelledby":"tests",m:"y-4 x-2"},Efe=rt({__name:"TestsFilesContainer",setup(e){return(t,r)=>(ne(),ve("div",_fe,[K(Le).summary.files===0&&K(Hs)?(ne(),ve("div",Tfe," No tests found ")):He("",!0),X("section",Cfe,[Ne(Sfe)]),Ne(yfe)]))}}),Afe={h:"full",flex:"~ col"},Lfe={class:"scrolls","flex-auto":"","py-1":""},t0=rt({__name:"Dashboard",setup(e){return(t,r)=>(ne(),ve("div",Afe,[r[0]||(r[0]=X("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[X("div",{class:"i-carbon-dashboard"}),X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),X("div",Lfe,[Ne(Efe)])]))}});function Mfe(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Lh="http://www.w3.org/1999/xhtml";const n0={svg:"http://www.w3.org/2000/svg",xhtml:Lh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function bf(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),n0.hasOwnProperty(t)?{space:n0[t],local:e}:e}function Nfe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Lh&&t.documentElement.namespaceURI===Lh?t.createElement(e):t.createElementNS(r,e)}}function Ofe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Xx(e){var t=bf(e);return(t.local?Ofe:Nfe)(t)}function Pfe(){}function Dp(e){return e==null?Pfe:function(){return this.querySelector(e)}}function Rfe(e){typeof e!="function"&&(e=Dp(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,g=0;g<f;++g)(h=c[g])&&(p=e.call(h,h.__data__,g,c))&&("__data__"in h&&(p.__data__=h.__data__),d[g]=p);return new lr(o,this._parents)}function $fe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ife(){return[]}function Yx(e){return e==null?Ife:function(){return this.querySelectorAll(e)}}function Dfe(e){return function(){return $fe(e.apply(this,arguments))}}function zfe(e){typeof e=="function"?e=Dfe(e):e=Yx(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 lr(o,s)}function Zx(e){return function(){return this.matches(e)}}function Jx(e){return function(t){return t.matches(e)}}var Ffe=Array.prototype.find;function Hfe(e){return function(){return Ffe.call(this.children,e)}}function Bfe(){return this.firstElementChild}function jfe(e){return this.select(e==null?Bfe:Hfe(typeof e=="function"?e:Jx(e)))}var Wfe=Array.prototype.filter;function qfe(){return Array.from(this.children)}function Ufe(e){return function(){return Wfe.call(this.children,e)}}function Vfe(e){return this.selectAll(e==null?qfe:Ufe(typeof e=="function"?e:Jx(e)))}function Gfe(e){typeof e!="function"&&(e=Zx(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 lr(o,this._parents)}function Qx(e){return new Array(e.length)}function Kfe(){return new lr(this._enter||this._groups.map(Qx),this._parents)}function Du(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Du.prototype={constructor:Du,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 Xfe(e){return function(){return e}}function Yfe(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 Du(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function Zfe(e,t,r,o,s,c,f){var d,h,p=new Map,g=t.length,v=c.length,b=new Array(g),w;for(d=0;d<g;++d)(h=t[d])&&(b[d]=w=f.call(h,h.__data__,d,t)+"",p.has(w)?s[d]=h:p.set(w,h));for(d=0;d<v;++d)w=f.call(e,c[d],d,c)+"",(h=p.get(w))?(o[d]=h,h.__data__=c[d],p.delete(w)):r[d]=new Du(e,c[d]);for(d=0;d<g;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Jfe(e){return e.__data__}function Qfe(e,t){if(!arguments.length)return Array.from(this,Jfe);var r=t?Zfe:Yfe,o=this._parents,s=this._groups;typeof e!="function"&&(e=Xfe(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var g=o[p],v=s[p],b=v.length,w=ede(e.call(g,g&&g.__data__,p,o)),T=w.length,L=d[p]=new Array(T),P=f[p]=new Array(T),M=h[p]=new Array(b);r(g,v,L,P,M,w,t);for(var R=0,I=0,E,D;R<T;++R)if(E=L[R]){for(R>=I&&(I=R+1);!(D=P[I])&&++I<T;);E._next=D||null}}return f=new lr(f,o),f._enter=d,f._exit=h,f}function ede(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function tde(){return new lr(this._exit||this._groups.map(Qx),this._parents)}function nde(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 rde(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],g=o[h],v=p.length,b=d[h]=new Array(v),w,T=0;T<v;++T)(w=p[T]||g[T])&&(b[T]=w);for(;h<s;++h)d[h]=r[h];return new lr(d,this._parents)}function ide(){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 ode(e){e||(e=sde);function t(v,b){return v&&b?e(v.__data__,b.__data__):!v-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,g=0;g<d;++g)(p=f[g])&&(h[g]=p);h.sort(t)}return new lr(s,this._parents).order()}function sde(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function lde(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function ade(){return Array.from(this)}function cde(){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 ude(){let e=0;for(const t of this)++e;return e}function fde(){return!this.node()}function dde(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 hde(e){return function(){this.removeAttribute(e)}}function pde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function gde(e,t){return function(){this.setAttribute(e,t)}}function mde(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function vde(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function yde(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 bde(e,t){var r=bf(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?pde:hde:typeof t=="function"?r.local?yde:vde:r.local?mde:gde)(r,t))}function e1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function wde(e){return function(){this.style.removeProperty(e)}}function xde(e,t,r){return function(){this.style.setProperty(e,t,r)}}function kde(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Sde(e,t,r){return arguments.length>1?this.each((t==null?wde:typeof t=="function"?kde:xde)(e,t,r??"")):cl(this.node(),e)}function cl(e,t){return e.style.getPropertyValue(t)||e1(e).getComputedStyle(e,null).getPropertyValue(t)}function _de(e){return function(){delete this[e]}}function Tde(e,t){return function(){this[e]=t}}function Cde(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Ede(e,t){return arguments.length>1?this.each((t==null?_de:typeof t=="function"?Cde:Tde)(e,t)):this.node()[e]}function t1(e){return e.trim().split(/^|\s+/)}function zp(e){return e.classList||new n1(e)}function n1(e){this._node=e,this._names=t1(e.getAttribute("class")||"")}n1.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 r1(e,t){for(var r=zp(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function i1(e,t){for(var r=zp(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function Ade(e){return function(){r1(this,e)}}function Lde(e){return function(){i1(this,e)}}function Mde(e,t){return function(){(t.apply(this,arguments)?r1:i1)(this,e)}}function Nde(e,t){var r=t1(e+"");if(arguments.length<2){for(var o=zp(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Mde:t?Ade:Lde)(r,t))}function Ode(){this.textContent=""}function Pde(e){return function(){this.textContent=e}}function Rde(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function $de(e){return arguments.length?this.each(e==null?Ode:(typeof e=="function"?Rde:Pde)(e)):this.node().textContent}function Ide(){this.innerHTML=""}function Dde(e){return function(){this.innerHTML=e}}function zde(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Fde(e){return arguments.length?this.each(e==null?Ide:(typeof e=="function"?zde:Dde)(e)):this.node().innerHTML}function Hde(){this.nextSibling&&this.parentNode.appendChild(this)}function Bde(){return this.each(Hde)}function jde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Wde(){return this.each(jde)}function qde(e){var t=typeof e=="function"?e:Xx(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Ude(){return null}function Vde(e,t){var r=typeof e=="function"?e:Xx(e),o=t==null?Ude:typeof t=="function"?t:Dp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function Gde(){var e=this.parentNode;e&&e.removeChild(this)}function Kde(){return this.each(Gde)}function Xde(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Yde(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Zde(e){return this.select(e?Yde:Xde)}function Jde(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Qde(e){return function(t){e.call(this,t,this.__data__)}}function ehe(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 the(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 nhe(e,t,r){return function(){var o=this.__on,s,c=Qde(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 rhe(e,t,r){var o=ehe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,g;h<p;++h)for(s=0,g=d[h];s<c;++s)if((f=o[s]).type===g.type&&f.name===g.name)return g.value}return}for(d=t?nhe:the,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function o1(e,t,r){var o=e1(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 ihe(e,t){return function(){return o1(this,e,t)}}function ohe(e,t){return function(){return o1(this,e,t.apply(this,arguments))}}function she(e,t){return this.each((typeof t=="function"?ohe:ihe)(e,t))}function*lhe(){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 s1=[null];function lr(e,t){this._groups=e,this._parents=t}function Qa(){return new lr([[document.documentElement]],s1)}function ahe(){return this}lr.prototype=Qa.prototype={constructor:lr,select:Rfe,selectAll:zfe,selectChild:jfe,selectChildren:Vfe,filter:Gfe,data:Qfe,enter:Kfe,exit:tde,join:nde,merge:rde,selection:ahe,order:ide,sort:ode,call:lde,nodes:ade,node:cde,size:ude,empty:fde,each:dde,attr:bde,style:Sde,property:Ede,classed:Nde,text:$de,html:Fde,raise:Bde,lower:Wde,append:qde,insert:Vde,remove:Kde,clone:Zde,datum:Jde,on:rhe,dispatch:she,[Symbol.iterator]:lhe};function Kn(e){return typeof e=="string"?new lr([[document.querySelector(e)]],[document.documentElement]):new lr([[e]],s1)}function che(e){let t;for(;t=e.sourceEvent;)e=t;return e}function vi(e,t){if(e=che(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}var ul=class gi{x;y;static of([t,r]){return new gi(t,r)}constructor(t,r){this.x=t,this.y=r}add(t){return new gi(this.x+t.x,this.y+t.y)}subtract(t){return new gi(this.x-t.x,this.y-t.y)}multiply(t){return new gi(this.x*t,this.y*t)}divide(t){return new gi(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 gi(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 gi(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new gi(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},uhe={value:()=>{}};function ec(){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 lu(r)}function lu(e){this._=e}function fhe(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}})}lu.prototype=ec.prototype={constructor:lu,on:function(e,t){var r=this._,o=fhe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=dhe(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]=r0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=r0(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 lu(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 dhe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function r0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=uhe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const hhe={passive:!1},Ra={capture:!0,passive:!1};function jd(e){e.stopImmediatePropagation()}function Js(e){e.preventDefault(),e.stopImmediatePropagation()}function l1(e){var t=e.document.documentElement,r=Kn(e).on("dragstart.drag",Js,Ra);"onselectstart"in t?r.on("selectstart.drag",Js,Ra):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function a1(e,t){var r=e.document.documentElement,o=Kn(e).on("dragstart.drag",null);t&&(o.on("click.drag",Js,Ra),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 Uc=e=>()=>e;function Mh(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:g}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value: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:g}})}Mh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function phe(e){return!e.ctrlKey&&!e.button}function ghe(){return this.parentNode}function mhe(e,t){return t??{x:e.x,y:e.y}}function vhe(){return navigator.maxTouchPoints||"ontouchstart"in this}function yhe(){var e=phe,t=ghe,r=mhe,o=vhe,s={},c=ec("start","drag","end"),f=0,d,h,p,g,v=0;function b(E){E.on("mousedown.drag",w).filter(o).on("touchstart.drag",P).on("touchmove.drag",M,hhe).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(E,D){if(!(g||!e.call(this,E,D))){var V=I(this,t.call(this,E,D),E,D,"mouse");V&&(Kn(E.view).on("mousemove.drag",T,Ra).on("mouseup.drag",L,Ra),l1(E.view),jd(E),p=!1,d=E.clientX,h=E.clientY,V("start",E))}}function T(E){if(Js(E),!p){var D=E.clientX-d,V=E.clientY-h;p=D*D+V*V>v}s.mouse("drag",E)}function L(E){Kn(E.view).on("mousemove.drag mouseup.drag",null),a1(E.view,p),Js(E),s.mouse("end",E)}function P(E,D){if(e.call(this,E,D)){var V=E.changedTouches,ee=t.call(this,E,D),ie=V.length,Y,G;for(Y=0;Y<ie;++Y)(G=I(this,ee,E,D,V[Y].identifier,V[Y]))&&(jd(E),G("start",E,V[Y]))}}function M(E){var D=E.changedTouches,V=D.length,ee,ie;for(ee=0;ee<V;++ee)(ie=s[D[ee].identifier])&&(Js(E),ie("drag",E,D[ee]))}function R(E){var D=E.changedTouches,V=D.length,ee,ie;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),ee=0;ee<V;++ee)(ie=s[D[ee].identifier])&&(jd(E),ie("end",E,D[ee]))}function I(E,D,V,ee,ie,Y){var G=c.copy(),j=vi(Y||V,D),O,N,C;if((C=r.call(E,new Mh("beforestart",{sourceEvent:V,target:b,identifier:ie,active:f,x:j[0],y:j[1],dx:0,dy:0,dispatch:G}),ee))!=null)return O=C.x-j[0]||0,N=C.y-j[1]||0,function k(F,$,ae){var ce=j,Se;switch(F){case"start":s[ie]=k,Se=f++;break;case"end":delete s[ie],--f;case"drag":j=vi(ae||$,D),Se=f;break}G.call(F,E,new Mh(F,{sourceEvent:$,subject:C,target:b,identifier:ie,active:Se,x:j[0]+O,y:j[1]+N,dx:j[0]-ce[0],dy:j[1]-ce[1],dispatch:G}),ee)}}return b.filter=function(E){return arguments.length?(e=typeof E=="function"?E:Uc(!!E),b):e},b.container=function(E){return arguments.length?(t=typeof E=="function"?E:Uc(E),b):t},b.subject=function(E){return arguments.length?(r=typeof E=="function"?E:Uc(E),b):r},b.touchable=function(E){return arguments.length?(o=typeof E=="function"?E:Uc(!!E),b):o},b.on=function(){var E=c.on.apply(c,arguments);return E===c?b:E},b.clickDistance=function(E){return arguments.length?(v=(E=+E)*E,b):Math.sqrt(v)},b}function Fp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function c1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function tc(){}var $a=.7,zu=1/$a,Qs="\\s*([+-]?\\d+)\\s*",Ia="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bhe=/^#([0-9a-f]{3,8})$/,whe=new RegExp(`^rgb\\(${Qs},${Qs},${Qs}\\)$`),xhe=new RegExp(`^rgb\\(${Qr},${Qr},${Qr}\\)$`),khe=new RegExp(`^rgba\\(${Qs},${Qs},${Qs},${Ia}\\)$`),She=new RegExp(`^rgba\\(${Qr},${Qr},${Qr},${Ia}\\)$`),_he=new RegExp(`^hsl\\(${Ia},${Qr},${Qr}\\)$`),The=new RegExp(`^hsla\\(${Ia},${Qr},${Qr},${Ia}\\)$`),i0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Fp(tc,Da,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:o0,formatHex:o0,formatHex8:Che,formatHsl:Ehe,formatRgb:s0,toString:s0});function o0(){return this.rgb().formatHex()}function Che(){return this.rgb().formatHex8()}function Ehe(){return u1(this).formatHsl()}function s0(){return this.rgb().formatRgb()}function Da(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=bhe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?l0(t):r===3?new Yn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Vc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Vc(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=whe.exec(e))?new Yn(t[1],t[2],t[3],1):(t=xhe.exec(e))?new Yn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=khe.exec(e))?Vc(t[1],t[2],t[3],t[4]):(t=She.exec(e))?Vc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=_he.exec(e))?u0(t[1],t[2]/100,t[3]/100,1):(t=The.exec(e))?u0(t[1],t[2]/100,t[3]/100,t[4]):i0.hasOwnProperty(e)?l0(i0[e]):e==="transparent"?new Yn(NaN,NaN,NaN,0):null}function l0(e){return new Yn(e>>16&255,e>>8&255,e&255,1)}function Vc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Yn(e,t,r,o)}function Ahe(e){return e instanceof tc||(e=Da(e)),e?(e=e.rgb(),new Yn(e.r,e.g,e.b,e.opacity)):new Yn}function Nh(e,t,r,o){return arguments.length===1?Ahe(e):new Yn(e,t,r,o??1)}function Yn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Fp(Yn,Nh,c1(tc,{brighter(e){return e=e==null?zu:Math.pow(zu,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?$a:Math.pow($a,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yn(Qo(this.r),Qo(this.g),Qo(this.b),Fu(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:a0,formatHex:a0,formatHex8:Lhe,formatRgb:c0,toString:c0}));function a0(){return`#${Ko(this.r)}${Ko(this.g)}${Ko(this.b)}`}function Lhe(){return`#${Ko(this.r)}${Ko(this.g)}${Ko(this.b)}${Ko((isNaN(this.opacity)?1:this.opacity)*255)}`}function c0(){const e=Fu(this.opacity);return`${e===1?"rgb(":"rgba("}${Qo(this.r)}, ${Qo(this.g)}, ${Qo(this.b)}${e===1?")":`, ${e})`}`}function Fu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ko(e){return e=Qo(e),(e<16?"0":"")+e.toString(16)}function u0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Nr(e,t,r,o)}function u1(e){if(e instanceof Nr)return new Nr(e.h,e.s,e.l,e.opacity);if(e instanceof tc||(e=Da(e)),!e)return new Nr;if(e instanceof Nr)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 Nr(f,d,h,e.opacity)}function Mhe(e,t,r,o){return arguments.length===1?u1(e):new Nr(e,t,r,o??1)}function Nr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Fp(Nr,Mhe,c1(tc,{brighter(e){return e=e==null?zu:Math.pow(zu,e),new Nr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?$a:Math.pow($a,e),new Nr(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 Yn(Wd(e>=240?e-240:e+120,s,o),Wd(e,s,o),Wd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Nr(f0(this.h),Gc(this.s),Gc(this.l),Fu(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=Fu(this.opacity);return`${e===1?"hsl(":"hsla("}${f0(this.h)}, ${Gc(this.s)*100}%, ${Gc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function f0(e){return e=(e||0)%360,e<0?e+360:e}function Gc(e){return Math.max(0,Math.min(1,e||0))}function Wd(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 f1=e=>()=>e;function Nhe(e,t){return function(r){return e+r*t}}function Ohe(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 Phe(e){return(e=+e)==1?d1:function(t,r){return r-t?Ohe(t,r,e):f1(isNaN(t)?r:t)}}function d1(e,t){var r=t-e;return r?Nhe(e,r):f1(isNaN(e)?t:e)}const d0=(function e(t){var r=Phe(t);function o(s,c){var f=r((s=Nh(s)).r,(c=Nh(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=d1(s.opacity,c.opacity);return function(g){return s.r=f(g),s.g=d(g),s.b=h(g),s.opacity=p(g),s+""}}return o.gamma=e,o})(1);function oo(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Oh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qd=new RegExp(Oh.source,"g");function Rhe(e){return function(){return e}}function $he(e){return function(t){return e(t)+""}}function Ihe(e,t){var r=Oh.lastIndex=qd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Oh.exec(e))&&(s=qd.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:oo(o,s)})),r=qd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?$he(h[0].x):Rhe(t):(t=h.length,function(p){for(var g=0,v;g<t;++g)d[(v=h[g]).i]=v.x(p);return d.join("")})}var h0=180/Math.PI,Ph={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function h1(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)*h0,skewX:Math.atan(h)*h0,scaleX:f,scaleY:d}}var Kc;function Dhe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ph:h1(t.a,t.b,t.c,t.d,t.e,t.f)}function zhe(e){return e==null||(Kc||(Kc=document.createElementNS("http://www.w3.org/2000/svg","g")),Kc.setAttribute("transform",e),!(e=Kc.transform.baseVal.consolidate()))?Ph:(e=e.matrix,h1(e.a,e.b,e.c,e.d,e.e,e.f))}function p1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,g,v,b,w,T){if(p!==v||g!==b){var L=w.push("translate(",null,t,null,r);T.push({i:L-4,x:oo(p,v)},{i:L-2,x:oo(g,b)})}else(v||b)&&w.push("translate("+v+t+b+r)}function f(p,g,v,b){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),b.push({i:v.push(s(v)+"rotate(",null,o)-2,x:oo(p,g)})):g&&v.push(s(v)+"rotate("+g+o)}function d(p,g,v,b){p!==g?b.push({i:v.push(s(v)+"skewX(",null,o)-2,x:oo(p,g)}):g&&v.push(s(v)+"skewX("+g+o)}function h(p,g,v,b,w,T){if(p!==v||g!==b){var L=w.push(s(w)+"scale(",null,",",null,")");T.push({i:L-4,x:oo(p,v)},{i:L-2,x:oo(g,b)})}else(v!==1||b!==1)&&w.push(s(w)+"scale("+v+","+b+")")}return function(p,g){var v=[],b=[];return p=e(p),g=e(g),c(p.translateX,p.translateY,g.translateX,g.translateY,v,b),f(p.rotate,g.rotate,v,b),d(p.skewX,g.skewX,v,b),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,v,b),p=g=null,function(w){for(var T=-1,L=b.length,P;++T<L;)v[(P=b[T]).i]=P.x(w);return v.join("")}}}var Fhe=p1(Dhe,"px, ","px)","deg)"),Hhe=p1(zhe,", ",")",")"),Bhe=1e-12;function p0(e){return((e=Math.exp(e))+1/e)/2}function jhe(e){return((e=Math.exp(e))-1/e)/2}function Whe(e){return((e=Math.exp(2*e))-1)/(e+1)}const qhe=(function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],g=f[0],v=f[1],b=f[2],w=g-d,T=v-h,L=w*w+T*T,P,M;if(L<Bhe)M=Math.log(b/p)/t,P=function(ee){return[d+ee*w,h+ee*T,p*Math.exp(t*ee*M)]};else{var R=Math.sqrt(L),I=(b*b-p*p+o*L)/(2*p*r*R),E=(b*b-p*p-o*L)/(2*b*r*R),D=Math.log(Math.sqrt(I*I+1)-I),V=Math.log(Math.sqrt(E*E+1)-E);M=(V-D)/t,P=function(ee){var ie=ee*M,Y=p0(D),G=p/(r*R)*(Y*Whe(t*ie+D)-jhe(D));return[d+G*w,h+G*T,p*Y/p0(t*ie+D)]}}return P.duration=M*1e3*t/Math.SQRT2,P}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 fl=0,ea=0,Yl=0,g1=1e3,Hu,ta,Bu=0,ns=0,wf=0,za=typeof performance=="object"&&performance.now?performance:Date,m1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Hp(){return ns||(m1(Uhe),ns=za.now()+wf)}function Uhe(){ns=0}function ju(){this._call=this._time=this._next=null}ju.prototype=Bp.prototype={constructor:ju,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Hp():+r)+(t==null?0:+t),!this._next&&ta!==this&&(ta?ta._next=this:Hu=this,ta=this),this._call=e,this._time=r,Rh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Rh())}};function Bp(e,t,r){var o=new ju;return o.restart(e,t,r),o}function Vhe(){Hp(),++fl;for(var e=Hu,t;e;)(t=ns-e._time)>=0&&e._call.call(void 0,t),e=e._next;--fl}function g0(){ns=(Bu=za.now())+wf,fl=ea=0;try{Vhe()}finally{fl=0,Khe(),ns=0}}function Ghe(){var e=za.now(),t=e-Bu;t>g1&&(wf-=t,Bu=e)}function Khe(){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);ta=e,Rh(o)}function Rh(e){if(!fl){ea&&(ea=clearTimeout(ea));var t=e-ns;t>24?(e<1/0&&(ea=setTimeout(g0,e-za.now()-wf)),Yl&&(Yl=clearInterval(Yl))):(Yl||(Bu=za.now(),Yl=setInterval(Ghe,g1)),fl=1,m1(g0))}}function m0(e,t,r){var o=new ju;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Xhe=ec("start","end","cancel","interrupt"),Yhe=[],v1=0,v0=1,$h=2,au=3,y0=4,Ih=5,cu=6;function xf(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;Zhe(e,r,{name:t,index:o,group:s,on:Xhe,tween:Yhe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:v1})}function jp(e,t){var r=Hr(e,t);if(r.state>v1)throw new Error("too late; already scheduled");return r}function ni(e,t){var r=Hr(e,t);if(r.state>au)throw new Error("too late; already running");return r}function Hr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Zhe(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Bp(c,0,r.time);function c(p){r.state=v0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var g,v,b,w;if(r.state!==v0)return h();for(g in o)if(w=o[g],w.name===r.name){if(w.state===au)return m0(f);w.state===y0?(w.state=cu,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[g]):+g<t&&(w.state=cu,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[g])}if(m0(function(){r.state===au&&(r.state=y0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=$h,r.on.call("start",e,e.__data__,r.index,r.group),r.state===$h){for(r.state=au,s=new Array(b=r.tween.length),g=0,v=-1;g<b;++g)(w=r.tween[g].value.call(e,e.__data__,r.index,r.group))&&(s[++v]=w);s.length=v+1}}function d(p){for(var g=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=Ih,1),v=-1,b=s.length;++v<b;)s[v].call(e,g);r.state===Ih&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=cu,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function uu(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>$h&&o.state<Ih,o.state=cu,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Jhe(e){return this.each(function(){uu(this,e)})}function Qhe(e,t){var r,o;return function(){var s=ni(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 epe(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=ni(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 tpe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Hr(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?Qhe:epe)(r,e,t))}function Wp(e,t,r){var o=e._id;return e.each(function(){var s=ni(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Hr(s,o).value[t]}}function y1(e,t){var r;return(typeof t=="number"?oo:t instanceof Da?d0:(r=Da(t))?(t=r,d0):Ihe)(e,t)}function npe(e){return function(){this.removeAttribute(e)}}function rpe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ipe(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 ope(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 spe(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 lpe(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 ape(e,t){var r=bf(e),o=r==="transform"?Hhe:y1;return this.attrTween(e,typeof t=="function"?(r.local?lpe:spe)(r,o,Wp(this,"attr."+e,t)):t==null?(r.local?rpe:npe)(r):(r.local?ope:ipe)(r,o,t))}function cpe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function upe(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function fpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&upe(e,c)),r}return s._value=t,s}function dpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&cpe(e,c)),r}return s._value=t,s}function hpe(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=bf(e);return this.tween(r,(o.local?fpe:dpe)(o,t))}function ppe(e,t){return function(){jp(this,e).delay=+t.apply(this,arguments)}}function gpe(e,t){return t=+t,function(){jp(this,e).delay=t}}function mpe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ppe:gpe)(t,e)):Hr(this.node(),t).delay}function vpe(e,t){return function(){ni(this,e).duration=+t.apply(this,arguments)}}function ype(e,t){return t=+t,function(){ni(this,e).duration=t}}function bpe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?vpe:ype)(t,e)):Hr(this.node(),t).duration}function wpe(e,t){if(typeof t!="function")throw new Error;return function(){ni(this,e).ease=t}}function xpe(e){var t=this._id;return arguments.length?this.each(wpe(t,e)):Hr(this.node(),t).ease}function kpe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;ni(this,e).ease=r}}function Spe(e){if(typeof e!="function")throw new Error;return this.each(kpe(this._id,e))}function _pe(e){typeof e!="function"&&(e=Zx(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 Tpe(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],g=h.length,v=f[d]=new Array(g),b,w=0;w<g;++w)(b=h[w]||p[w])&&(v[w]=b);for(;d<o;++d)f[d]=t[d];return new Mi(f,this._parents,this._name,this._id)}function Cpe(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 Epe(e,t,r){var o,s,c=Cpe(t)?jp:ni;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function Ape(e,t){var r=this._id;return arguments.length<2?Hr(this.node(),r).on.on(e):this.each(Epe(r,e,t))}function Lpe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Mpe(){return this.on("end.remove",Lpe(this._id))}function Npe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Dp(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),g,v,b=0;b<h;++b)(g=d[b])&&(v=e.call(g,g.__data__,b,d))&&("__data__"in g&&(v.__data__=g.__data__),p[b]=v,xf(p[b],t,r,b,p,Hr(g,r)));return new Mi(c,this._parents,t,r)}function Ope(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Yx(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,g,v=0;v<p;++v)if(g=h[v]){for(var b=e.call(g,g.__data__,v,h),w,T=Hr(g,r),L=0,P=b.length;L<P;++L)(w=b[L])&&xf(w,t,r,L,b,T);c.push(b),f.push(g)}return new Mi(c,f,t,r)}var Ppe=Qa.prototype.constructor;function Rpe(){return new Ppe(this._groups,this._parents)}function $pe(e,t){var r,o,s;return function(){var c=cl(this,e),f=(this.style.removeProperty(e),cl(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function b1(e){return function(){this.style.removeProperty(e)}}function Ipe(e,t,r){var o,s=r+"",c;return function(){var f=cl(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function Dpe(e,t,r){var o,s,c;return function(){var f=cl(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),cl(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function zpe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=ni(this,e),p=h.on,g=h.value[c]==null?d||(d=b1(t)):void 0;(p!==r||s!==g)&&(o=(r=p).copy()).on(f,s=g),h.on=o}}function Fpe(e,t,r){var o=(e+="")=="transform"?Fhe:y1;return t==null?this.styleTween(e,$pe(e,o)).on("end.style."+e,b1(e)):typeof t=="function"?this.styleTween(e,Dpe(e,o,Wp(this,"style."+e,t))).each(zpe(this._id,e)):this.styleTween(e,Ipe(e,o,t),r).on("end.style."+e,null)}function Hpe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Bpe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&Hpe(e,f,r)),o}return c._value=t,c}function jpe(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,Bpe(e,t,r??""))}function Wpe(e){return function(){this.textContent=e}}function qpe(e){return function(){var t=e(this);this.textContent=t??""}}function Upe(e){return this.tween("text",typeof e=="function"?qpe(Wp(this,"text",e)):Wpe(e==null?"":e+""))}function Vpe(e){return function(t){this.textContent=e.call(this,t)}}function Gpe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&Vpe(s)),t}return o._value=e,o}function Kpe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Gpe(e))}function Xpe(){for(var e=this._name,t=this._id,r=w1(),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 g=Hr(h,t);xf(h,e,r,p,f,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Mi(o,this._parents,e,r)}function Ype(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=ni(this,o),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var Zpe=0;function Mi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function w1(){return++Zpe}var hi=Qa.prototype;Mi.prototype={constructor:Mi,select:Npe,selectAll:Ope,selectChild:hi.selectChild,selectChildren:hi.selectChildren,filter:_pe,merge:Tpe,selection:Rpe,transition:Xpe,call:hi.call,nodes:hi.nodes,node:hi.node,size:hi.size,empty:hi.empty,each:hi.each,on:Ape,attr:ape,attrTween:hpe,style:Fpe,styleTween:jpe,text:Upe,textTween:Kpe,remove:Mpe,tween:tpe,delay:mpe,duration:bpe,ease:xpe,easeVarying:Spe,end:Ype,[Symbol.iterator]:hi[Symbol.iterator]};function Jpe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Qpe={time:null,delay:0,duration:250,ease:Jpe};function ege(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 tge(e){var t,r;e instanceof Mi?(t=e._id,e=e._name):(t=w1(),(r=Qpe).time=Hp(),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])&&xf(h,e,t,p,f,r||ege(h,t));return new Mi(o,this._parents,e,t)}Qa.prototype.interrupt=Jhe;Qa.prototype.transition=tge;const Xc=e=>()=>e;function nge(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 Si(e,t,r){this.k=e,this.x=t,this.y=r}Si.prototype={constructor:Si,scale:function(e){return e===1?this:new Si(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Si(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 qp=new Si(1,0,0);Si.prototype;function Ud(e){e.stopImmediatePropagation()}function Zl(e){e.preventDefault(),e.stopImmediatePropagation()}function rge(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function ige(){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 b0(){return this.__zoom||qp}function oge(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function sge(){return navigator.maxTouchPoints||"ontouchstart"in this}function lge(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 age(){var e=rge,t=ige,r=lge,o=oge,s=sge,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=qhe,p=ec("start","zoom","end"),g,v,b,w=500,T=150,L=0,P=10;function M(C){C.property("__zoom",b0).on("wheel.zoom",ie,{passive:!1}).on("mousedown.zoom",Y).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",j).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",N).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(C,k,F,$){var ae=C.selection?C.selection():C;ae.property("__zoom",b0),C!==ae?D(C,k,F,$):ae.interrupt().each(function(){V(this,arguments).event($).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},M.scaleBy=function(C,k,F,$){M.scaleTo(C,function(){var ae=this.__zoom.k,ce=typeof k=="function"?k.apply(this,arguments):k;return ae*ce},F,$)},M.scaleTo=function(C,k,F,$){M.transform(C,function(){var ae=t.apply(this,arguments),ce=this.__zoom,Se=F==null?E(ae):typeof F=="function"?F.apply(this,arguments):F,je=ce.invert(Se),Ae=typeof k=="function"?k.apply(this,arguments):k;return r(I(R(ce,Ae),Se,je),ae,f)},F,$)},M.translateBy=function(C,k,F,$){M.transform(C,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof F=="function"?F.apply(this,arguments):F),t.apply(this,arguments),f)},null,$)},M.translateTo=function(C,k,F,$,ae){M.transform(C,function(){var ce=t.apply(this,arguments),Se=this.__zoom,je=$==null?E(ce):typeof $=="function"?$.apply(this,arguments):$;return r(qp.translate(je[0],je[1]).scale(Se.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof F=="function"?-F.apply(this,arguments):-F),ce,f)},$,ae)};function R(C,k){return k=Math.max(c[0],Math.min(c[1],k)),k===C.k?C:new Si(k,C.x,C.y)}function I(C,k,F){var $=k[0]-F[0]*C.k,ae=k[1]-F[1]*C.k;return $===C.x&&ae===C.y?C:new Si(C.k,$,ae)}function E(C){return[(+C[0][0]+ +C[1][0])/2,(+C[0][1]+ +C[1][1])/2]}function D(C,k,F,$){C.on("start.zoom",function(){V(this,arguments).event($).start()}).on("interrupt.zoom end.zoom",function(){V(this,arguments).event($).end()}).tween("zoom",function(){var ae=this,ce=arguments,Se=V(ae,ce).event($),je=t.apply(ae,ce),Ae=F==null?E(je):typeof F=="function"?F.apply(ae,ce):F,Ke=Math.max(je[1][0]-je[0][0],je[1][1]-je[0][1]),qe=ae.__zoom,Fe=typeof k=="function"?k.apply(ae,ce):k,Re=h(qe.invert(Ae).concat(Ke/qe.k),Fe.invert(Ae).concat(Ke/Fe.k));return function(H){if(H===1)H=Fe;else{var Z=Re(H),re=Ke/Z[2];H=new Si(re,Ae[0]-Z[0]*re,Ae[1]-Z[1]*re)}Se.zoom(null,H)}})}function V(C,k,F){return!F&&C.__zooming||new ee(C,k)}function ee(C,k){this.that=C,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(C,k),this.taps=0}ee.prototype={event:function(C){return C&&(this.sourceEvent=C),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(C,k){return this.mouse&&C!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&C!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&C!=="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(C){var k=Kn(this.that).datum();p.call(C,this.that,new nge(C,{sourceEvent:this.sourceEvent,target:M,transform:this.that.__zoom,dispatch:p}),k)}};function ie(C,...k){if(!e.apply(this,arguments))return;var F=V(this,k).event(C),$=this.__zoom,ae=Math.max(c[0],Math.min(c[1],$.k*Math.pow(2,o.apply(this,arguments)))),ce=vi(C);if(F.wheel)(F.mouse[0][0]!==ce[0]||F.mouse[0][1]!==ce[1])&&(F.mouse[1]=$.invert(F.mouse[0]=ce)),clearTimeout(F.wheel);else{if($.k===ae)return;F.mouse=[ce,$.invert(ce)],uu(this),F.start()}Zl(C),F.wheel=setTimeout(Se,T),F.zoom("mouse",r(I(R($,ae),F.mouse[0],F.mouse[1]),F.extent,f));function Se(){F.wheel=null,F.end()}}function Y(C,...k){if(b||!e.apply(this,arguments))return;var F=C.currentTarget,$=V(this,k,!0).event(C),ae=Kn(C.view).on("mousemove.zoom",Ae,!0).on("mouseup.zoom",Ke,!0),ce=vi(C,F),Se=C.clientX,je=C.clientY;l1(C.view),Ud(C),$.mouse=[ce,this.__zoom.invert(ce)],uu(this),$.start();function Ae(qe){if(Zl(qe),!$.moved){var Fe=qe.clientX-Se,Re=qe.clientY-je;$.moved=Fe*Fe+Re*Re>L}$.event(qe).zoom("mouse",r(I($.that.__zoom,$.mouse[0]=vi(qe,F),$.mouse[1]),$.extent,f))}function Ke(qe){ae.on("mousemove.zoom mouseup.zoom",null),a1(qe.view,$.moved),Zl(qe),$.event(qe).end()}}function G(C,...k){if(e.apply(this,arguments)){var F=this.__zoom,$=vi(C.changedTouches?C.changedTouches[0]:C,this),ae=F.invert($),ce=F.k*(C.shiftKey?.5:2),Se=r(I(R(F,ce),$,ae),t.apply(this,k),f);Zl(C),d>0?Kn(this).transition().duration(d).call(D,Se,$,C):Kn(this).call(M.transform,Se,$,C)}}function j(C,...k){if(e.apply(this,arguments)){var F=C.touches,$=F.length,ae=V(this,k,C.changedTouches.length===$).event(C),ce,Se,je,Ae;for(Ud(C),Se=0;Se<$;++Se)je=F[Se],Ae=vi(je,this),Ae=[Ae,this.__zoom.invert(Ae),je.identifier],ae.touch0?!ae.touch1&&ae.touch0[2]!==Ae[2]&&(ae.touch1=Ae,ae.taps=0):(ae.touch0=Ae,ce=!0,ae.taps=1+!!g);g&&(g=clearTimeout(g)),ce&&(ae.taps<2&&(v=Ae[0],g=setTimeout(function(){g=null},w)),uu(this),ae.start())}}function O(C,...k){if(this.__zooming){var F=V(this,k).event(C),$=C.changedTouches,ae=$.length,ce,Se,je,Ae;for(Zl(C),ce=0;ce<ae;++ce)Se=$[ce],je=vi(Se,this),F.touch0&&F.touch0[2]===Se.identifier?F.touch0[0]=je:F.touch1&&F.touch1[2]===Se.identifier&&(F.touch1[0]=je);if(Se=F.that.__zoom,F.touch1){var Ke=F.touch0[0],qe=F.touch0[1],Fe=F.touch1[0],Re=F.touch1[1],H=(H=Fe[0]-Ke[0])*H+(H=Fe[1]-Ke[1])*H,Z=(Z=Re[0]-qe[0])*Z+(Z=Re[1]-qe[1])*Z;Se=R(Se,Math.sqrt(H/Z)),je=[(Ke[0]+Fe[0])/2,(Ke[1]+Fe[1])/2],Ae=[(qe[0]+Re[0])/2,(qe[1]+Re[1])/2]}else if(F.touch0)je=F.touch0[0],Ae=F.touch0[1];else return;F.zoom("touch",r(I(Se,je,Ae),F.extent,f))}}function N(C,...k){if(this.__zooming){var F=V(this,k).event(C),$=C.changedTouches,ae=$.length,ce,Se;for(Ud(C),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),ce=0;ce<ae;++ce)Se=$[ce],F.touch0&&F.touch0[2]===Se.identifier?delete F.touch0:F.touch1&&F.touch1[2]===Se.identifier&&delete F.touch1;if(F.touch1&&!F.touch0&&(F.touch0=F.touch1,delete F.touch1),F.touch0)F.touch0[1]=this.__zoom.invert(F.touch0[0]);else if(F.end(),F.taps===2&&(Se=vi(Se,this),Math.hypot(v[0]-Se[0],v[1]-Se[1])<P)){var je=Kn(this).on("dblclick.zoom");je&&je.apply(this,arguments)}}}return M.wheelDelta=function(C){return arguments.length?(o=typeof C=="function"?C:Xc(+C),M):o},M.filter=function(C){return arguments.length?(e=typeof C=="function"?C:Xc(!!C),M):e},M.touchable=function(C){return arguments.length?(s=typeof C=="function"?C:Xc(!!C),M):s},M.extent=function(C){return arguments.length?(t=typeof C=="function"?C:Xc([[+C[0][0],+C[0][1]],[+C[1][0],+C[1][1]]]),M):t},M.scaleExtent=function(C){return arguments.length?(c[0]=+C[0],c[1]=+C[1],M):[c[0],c[1]]},M.translateExtent=function(C){return arguments.length?(f[0][0]=+C[0][0],f[1][0]=+C[1][0],f[0][1]=+C[0][1],f[1][1]=+C[1][1],M):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},M.constrain=function(C){return arguments.length?(r=C,M):r},M.duration=function(C){return arguments.length?(d=+C,M):d},M.interpolate=function(C){return arguments.length?(h=C,M):h},M.on=function(){var C=p.on.apply(p,arguments);return C===p?M:C},M.clickDistance=function(C){return arguments.length?(L=(C=+C)*C,M):Math.sqrt(L)},M.tapDistance=function(C){return arguments.length?(P=+C,M):P},M}function cge(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return x1(this.cover(t,r),t,r,e)}function x1(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,g=e._y1,v,b,w,T,L,P,M,R;if(!c)return e._root=f,e;for(;c.length;)if((L=t>=(v=(d+p)/2))?d=v:p=v,(P=r>=(b=(h+g)/2))?h=b:g=b,s=c,!(c=c[M=P<<1|L]))return s[M]=f,e;if(w=+e._x.call(null,c.data),T=+e._y.call(null,c.data),t===w&&r===T)return f.next=c,s?s[M]=f:e._root=f,e;do s=s?s[M]=new Array(4):e._root=new Array(4),(L=t>=(v=(d+p)/2))?d=v:p=v,(P=r>=(b=(h+g)/2))?h=b:g=b;while((M=P<<1|L)===(R=(T>=b)<<1|w>=v));return s[R]=c,s[M]=f,e}function uge(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,g=-1/0,v=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>g&&(g=s),c<p&&(p=c),c>v&&(v=c));if(h>g||p>v)return this;for(this.cover(h,p).cover(g,v),r=0;r<o;++r)x1(this,f[r],d[r],e[r]);return this}function fge(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 dge(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function hge(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function $n(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function pge(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,g=this._x1,v=this._y1,b=[],w=this._root,T,L;for(w&&b.push(new $n(w,s,c,g,v)),r==null?r=1/0:(s=e-r,c=t-r,g=e+r,v=t+r,r*=r);T=b.pop();)if(!(!(w=T.node)||(f=T.x0)>g||(d=T.y0)>v||(h=T.x1)<s||(p=T.y1)<c))if(w.length){var P=(f+h)/2,M=(d+p)/2;b.push(new $n(w[3],P,M,h,p),new $n(w[2],f,M,P,p),new $n(w[1],P,d,h,M),new $n(w[0],f,d,P,M)),(L=(t>=M)<<1|e>=P)&&(T=b[b.length-1],b[b.length-1]=b[b.length-1-L],b[b.length-1-L]=T)}else{var R=e-+this._x.call(null,w.data),I=t-+this._y.call(null,w.data),E=R*R+I*I;if(E<r){var D=Math.sqrt(r=E);s=e-D,c=t-D,g=e+D,v=t+D,o=w.data}}return o}function gge(e){if(isNaN(g=+this._x.call(null,e))||isNaN(v=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,g,v,b,w,T,L,P,M;if(!r)return this;if(r.length)for(;;){if((T=g>=(b=(f+h)/2))?f=b:h=b,(L=v>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[P=L<<1|T]))return this;if(!r.length)break;(t[P+1&3]||t[P+2&3]||t[P+3&3])&&(o=t,M=P)}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[P]=c:delete t[P],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[M]=r:this._root=r),this):(this._root=c,this)}function mge(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function vge(){return this._root}function yge(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function bge(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new $n(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,g=(f+h)/2;(s=o[3])&&t.push(new $n(s,p,g,d,h)),(s=o[2])&&t.push(new $n(s,c,g,p,h)),(s=o[1])&&t.push(new $n(s,p,f,d,g)),(s=o[0])&&t.push(new $n(s,c,f,p,g))}return this}function wge(e){var t=[],r=[],o;for(this._root&&t.push(new $n(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,g=(f+h)/2,v=(d+p)/2;(c=s[0])&&t.push(new $n(c,f,d,g,v)),(c=s[1])&&t.push(new $n(c,g,d,h,v)),(c=s[2])&&t.push(new $n(c,f,v,g,p)),(c=s[3])&&t.push(new $n(c,g,v,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function xge(e){return e[0]}function kge(e){return arguments.length?(this._x=e,this):this._x}function Sge(e){return e[1]}function _ge(e){return arguments.length?(this._y=e,this):this._y}function Up(e,t,r){var o=new Vp(t??xge,r??Sge,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function Vp(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 w0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var Fn=Up.prototype=Vp.prototype;Fn.copy=function(){var e=new Vp(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=w0(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]=w0(o));return e};Fn.add=cge;Fn.addAll=uge;Fn.cover=fge;Fn.data=dge;Fn.extent=hge;Fn.find=pge;Fn.remove=gge;Fn.removeAll=mge;Fn.root=vge;Fn.size=yge;Fn.visit=bge;Fn.visitAfter=wge;Fn.x=kge;Fn.y=_ge;function Dn(e){return function(){return e}}function uo(e){return(e()-.5)*1e-6}function Tge(e){return e.x+e.vx}function Cge(e){return e.y+e.vy}function Ege(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Dn(e==null?1:+e));function f(){for(var p,g=t.length,v,b,w,T,L,P,M=0;M<c;++M)for(v=Up(t,Tge,Cge).visitAfter(d),p=0;p<g;++p)b=t[p],L=r[b.index],P=L*L,w=b.x+b.vx,T=b.y+b.vy,v.visit(R);function R(I,E,D,V,ee){var ie=I.data,Y=I.r,G=L+Y;if(ie){if(ie.index>b.index){var j=w-ie.x-ie.vx,O=T-ie.y-ie.vy,N=j*j+O*O;N<G*G&&(j===0&&(j=uo(o),N+=j*j),O===0&&(O=uo(o),N+=O*O),N=(G-(N=Math.sqrt(N)))/N*s,b.vx+=(j*=N)*(G=(Y*=Y)/(P+Y)),b.vy+=(O*=N)*G,ie.vx-=j*(G=1-G),ie.vy-=O*G)}return}return E>w+G||V<w-G||D>T+G||ee<T-G}}function d(p){if(p.data)return p.r=r[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,v;for(r=new Array(g),p=0;p<g;++p)v=t[p],r[v.index]=+e(v,p,t)}}return f.initialize=function(p,g){t=p,o=g,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Dn(+p),h(),f):e},f}function Age(e){return e.index}function x0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Lge(e){var t=Age,r=v,o,s=Dn(30),c,f,d,h,p,g=1;e==null&&(e=[]);function v(P){return 1/Math.min(d[P.source.index],d[P.target.index])}function b(P){for(var M=0,R=e.length;M<g;++M)for(var I=0,E,D,V,ee,ie,Y,G;I<R;++I)E=e[I],D=E.source,V=E.target,ee=V.x+V.vx-D.x-D.vx||uo(p),ie=V.y+V.vy-D.y-D.vy||uo(p),Y=Math.sqrt(ee*ee+ie*ie),Y=(Y-c[I])/Y*P*o[I],ee*=Y,ie*=Y,V.vx-=ee*(G=h[I]),V.vy-=ie*G,D.vx+=ee*(G=1-G),D.vy+=ie*G}function w(){if(f){var P,M=f.length,R=e.length,I=new Map(f.map((D,V)=>[t(D,V,f),D])),E;for(P=0,d=new Array(M);P<R;++P)E=e[P],E.index=P,typeof E.source!="object"&&(E.source=x0(I,E.source)),typeof E.target!="object"&&(E.target=x0(I,E.target)),d[E.source.index]=(d[E.source.index]||0)+1,d[E.target.index]=(d[E.target.index]||0)+1;for(P=0,h=new Array(R);P<R;++P)E=e[P],h[P]=d[E.source.index]/(d[E.source.index]+d[E.target.index]);o=new Array(R),T(),c=new Array(R),L()}}function T(){if(f)for(var P=0,M=e.length;P<M;++P)o[P]=+r(e[P],P,e)}function L(){if(f)for(var P=0,M=e.length;P<M;++P)c[P]=+s(e[P],P,e)}return b.initialize=function(P,M){f=P,p=M,w()},b.links=function(P){return arguments.length?(e=P,w(),b):e},b.id=function(P){return arguments.length?(t=P,b):t},b.iterations=function(P){return arguments.length?(g=+P,b):g},b.strength=function(P){return arguments.length?(r=typeof P=="function"?P:Dn(+P),T(),b):r},b.distance=function(P){return arguments.length?(s=typeof P=="function"?P:Dn(+P),L(),b):s},b}const Mge=1664525,Nge=1013904223,k0=4294967296;function Oge(){let e=1;return()=>(e=(Mge*e+Nge)%k0)/k0}function Pge(e){return e.x}function Rge(e){return e.y}var $ge=10,Ige=Math.PI*(3-Math.sqrt(5));function Dge(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=Bp(v),p=ec("tick","end"),g=Oge();e==null&&(e=[]);function v(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(L){var P,M=e.length,R;L===void 0&&(L=1);for(var I=0;I<L;++I)for(r+=(c-r)*s,d.forEach(function(E){E(r)}),P=0;P<M;++P)R=e[P],R.fx==null?R.x+=R.vx*=f:(R.x=R.fx,R.vx=0),R.fy==null?R.y+=R.vy*=f:(R.y=R.fy,R.vy=0);return t}function w(){for(var L=0,P=e.length,M;L<P;++L){if(M=e[L],M.index=L,M.fx!=null&&(M.x=M.fx),M.fy!=null&&(M.y=M.fy),isNaN(M.x)||isNaN(M.y)){var R=$ge*Math.sqrt(.5+L),I=L*Ige;M.x=R*Math.cos(I),M.y=R*Math.sin(I)}(isNaN(M.vx)||isNaN(M.vy))&&(M.vx=M.vy=0)}}function T(L){return L.initialize&&L.initialize(e,g),L}return w(),t={tick:b,restart:function(){return h.restart(v),t},stop:function(){return h.stop(),t},nodes:function(L){return arguments.length?(e=L,w(),d.forEach(T),t):e},alpha:function(L){return arguments.length?(r=+L,t):r},alphaMin:function(L){return arguments.length?(o=+L,t):o},alphaDecay:function(L){return arguments.length?(s=+L,t):+s},alphaTarget:function(L){return arguments.length?(c=+L,t):c},velocityDecay:function(L){return arguments.length?(f=1-L,t):1-f},randomSource:function(L){return arguments.length?(g=L,d.forEach(T),t):g},force:function(L,P){return arguments.length>1?(P==null?d.delete(L):d.set(L,T(P)),t):d.get(L)},find:function(L,P,M){var R=0,I=e.length,E,D,V,ee,ie;for(M==null?M=1/0:M*=M,R=0;R<I;++R)ee=e[R],E=L-ee.x,D=P-ee.y,V=E*E+D*D,V<M&&(ie=ee,M=V);return ie},on:function(L,P){return arguments.length>1?(p.on(L,P),t):p.on(L)}}}function zge(){var e,t,r,o,s=Dn(-30),c,f=1,d=1/0,h=.81;function p(w){var T,L=e.length,P=Up(e,Pge,Rge).visitAfter(v);for(o=w,T=0;T<L;++T)t=e[T],P.visit(b)}function g(){if(e){var w,T=e.length,L;for(c=new Array(T),w=0;w<T;++w)L=e[w],c[L.index]=+s(L,w,e)}}function v(w){var T=0,L,P,M=0,R,I,E;if(w.length){for(R=I=E=0;E<4;++E)(L=w[E])&&(P=Math.abs(L.value))&&(T+=L.value,M+=P,R+=P*L.x,I+=P*L.y);w.x=R/M,w.y=I/M}else{L=w,L.x=L.data.x,L.y=L.data.y;do T+=c[L.data.index];while(L=L.next)}w.value=T}function b(w,T,L,P){if(!w.value)return!0;var M=w.x-t.x,R=w.y-t.y,I=P-T,E=M*M+R*R;if(I*I/h<E)return E<d&&(M===0&&(M=uo(r),E+=M*M),R===0&&(R=uo(r),E+=R*R),E<f&&(E=Math.sqrt(f*E)),t.vx+=M*w.value*o/E,t.vy+=R*w.value*o/E),!0;if(w.length||E>=d)return;(w.data!==t||w.next)&&(M===0&&(M=uo(r),E+=M*M),R===0&&(R=uo(r),E+=R*R),E<f&&(E=Math.sqrt(f*E)));do w.data!==t&&(I=c[w.data.index]*o/E,t.vx+=M*I,t.vy+=R*I);while(w=w.next)}return p.initialize=function(w,T){e=w,r=T,g()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Dn(+w),g(),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 Fge(e){var t=Dn(.1),r,o,s;typeof e!="function"&&(e=Dn(e==null?0:+e));function c(d){for(var h=0,p=r.length,g;h<p;++h)g=r[h],g.vx+=(s[h]-g.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Dn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Dn(+d),f(),c):e},c}function Hge(e){var t=Dn(.1),r,o,s;typeof e!="function"&&(e=Dn(e==null?0:+e));function c(d){for(var h=0,p=r.length,g;h<p;++h)g=r[h],g.vy+=(s[h]-g.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Dn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Dn(+d),f(),c):e},c}function Bge(){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 S0(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 fo(...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]=fo.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:S0(t[o])&&S0(r[o])?t[o]=fo(t[o],r[o]):t[o]=r[o])}),t},{})}const k1={mergeArrays:!0};fo.options=k1;fo.withOptions=(e,...t)=>{fo.options={mergeArrays:!0,...e};const r=fo(...t);return fo.options=k1,r};var jge=fo;function Wge(){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 qge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function S1(e){e.preventDefault(),e.stopPropagation()}function _1(e){return typeof e=="number"}function So(e,t){return _1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Uge(e){return`${e.source.id}-${e.target.id}`}function T1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Vge(e){return`url(#${T1(e.color)})`}function Gge(e){return{size:e,padding:(t,r)=>So(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const C1={Arrow:e=>Gge(e)},Kge=(e,t,r)=>[t/2,r/2],Xge=(e,t,r)=>[_0(0,t),_0(0,r)];function _0(e,t){return Math.random()*(t-e)+e}const Dh={Centered:Kge,Randomized:Xge};function Yge(){return{autoResize:!1,callbacks:{},hooks:{},initial:qge(),nodeRadius:16,marker:C1.Arrow(4),modifiers:{},positionInitializer:Dh.Centered,simulation:{alphas:Bge(),forces:Wge()},zoom:{initial:1,min:.1,max:2}}}function Zge(e={}){return jge.withOptions({mergeArrays:!1},Yge(),e)}function Jge({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",g=>S1(g)).on("dblclick",g=>r?.(g)).on("dblclick.zoom",null).on("pointermove",g=>o?.(g)).on("pointerup",g=>s?.(g)).style("cursor","grab");return e&&p.call(h.transform,qp.translate(c,f).scale(d)),p.append("g")}function Qge({canvas:e,scale:t,xOffset:r,yOffset:o}){e?.attr("transform",`translate(${r},${o})scale(${t})`)}function eme({config:e,onDragStart:t,onDragEnd:r}){const o=yhe().filter(s=>s.type==="mousedown"?s.button===0:s.type==="touchstart"?s.touches.length===1:!1).on("start",(s,c)=>{s.active===0&&t(s,c),Kn(s.sourceEvent.target).classed("grabbed",!0),c.fx=c.x,c.fy=c.y}).on("drag",(s,c)=>{c.fx=s.x,c.fy=s.y}).on("end",(s,c)=>{s.active===0&&r(s,c),Kn(s.sourceEvent.target).classed("grabbed",!1),c.fx=void 0,c.fy=void 0});return e.modifiers.drag?.(o),o}function tme({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}:nme({links:c},r)}function nme(e,t){const r=[...rme(e,t),...ime(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function rme(e,t){return E1(e,t,(r,o)=>r.target.id===o.id)}function ime(e,t){return E1(e,t,(r,o)=>r.source.id===o.id)}function E1(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 zh(e){return e.x??0}function Fh(e){return e.y??0}function Gp({source:e,target:t}){const r=new ul(zh(e),Fh(e)),o=new ul(zh(t),Fh(t)),s=o.subtract(r),c=s.length(),f=s.normalize();return{s:r,t:o,dist:c,norm:f,endNorm:f.multiply(-1)}}function A1({center:e,node:t}){const r=new ul(zh(t),Fh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new ul(0,1))),{n:r,c:o}}function L1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=Gp({source:t,target:r});return{start:o.add(c.multiply(So(e,t)-1)),end:s.subtract(c.multiply(e.marker.padding(r,e)))}}function ome(e){const{start:t,end:r}=L1(e);return`M${t.x},${t.y}
|
|
47
|
-
L${r.x},${r.y}`}function sme(e){const{start:t,end:r}=L1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function lme({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=Gp({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(So(e,t)-1).add(o),g=d.rotateByDegrees(h).multiply(So(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*c;return`M${p.x},${p.y}
|
|
48
|
-
A${v},${v},0,0,1,${g.x},${g.y}`}function ame({center:e,config:t,node:r}){const{n:o,c:s}=A1({center:e,node:r}),c=So(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),g=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
|
|
49
|
-
A${c},${c},0,1,0,${g.x},${g.y}`}function cme({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=Gp({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function ume({center:e,config:t,node:r}){const{n:o,c:s}=A1({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*So(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const el={line:{labelTransform:sme,path:ome},arc:{labelTransform:cme,path:lme},reflexive:{labelTransform:ume,path:ame}};function fme(e){return e.append("g").classed("links",!0).selectAll("path")}function dme({config:e,graph:t,selection:r,showLabels:o}){const s=r?.data(t.links,c=>Uge(c)).join(c=>{const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",p=>Vge(p)).style("stroke",p=>p.color);e.modifiers.link?.(d);const h=f.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),f});return s?.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function hme(e){pme(e),gme(e)}function pme({center:e,config:t,graph:r,selection:o}){o?.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?el.reflexive.path({config:t,node:s.source,center:e}):M1(r,s.source,s.target)?el.arc.path({config:t,source:s.source,target:s.target}):el.line.path({config:t,source:s.source,target:s.target}))}function gme({config:e,center:t,graph:r,selection:o}){o?.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?el.reflexive.labelTransform({config:e,node:s.source,center:t}):M1(r,s.source,s.target)?el.arc.labelTransform({config:e,source:s.source,target:s.target}):el.line.labelTransform({config:e,source:s.source,target:s.target}))}function M1(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 mme(e){return e.append("defs").selectAll("marker")}function vme({config:e,graph:t,selection:r}){return r?.data(yme(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>T1(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",bme(e.marker.path)),s})}function yme(e){return[...new Set(e.links.map(t=>t.color))]}function bme(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 wme(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function xme({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c?.data(r.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const g=p.append("circle").classed("node",!0).attr("r",b=>So(e,b)).on("contextmenu",(b,w)=>{S1(b),o(w)}).on("pointerdown",(b,w)=>Sme(b,w,s??o)).style("fill",b=>b.color);e.modifiers.node?.(g);const v=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",b=>b.label?b.label.color:null).style("font-size",b=>b.label?b.label.fontSize:null).style("stroke","none").text(b=>b.label?b.label.text:null);return e.modifiers.nodeLabel?.(v),p});return d?.select(".node").classed("focused",h=>h.isFocused),d?.select(".node__label").attr("opacity",f?1:0),d}const kme=500;function Sme(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>kme){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function _me(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Tme({center:e,config:t,graph:r,onTick:o}){const s=Dge(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const p=c.strength;s.force("x",Fge(()=>e().x).strength(p)).force("y",Hge(()=>e().y).strength(p))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",zge().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",Ege().radius(p=>d.radiusMultiplier*So(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",Lge(r.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(h.strength)),s.on("tick",()=>o()),t.modifiers.simulation?.(s),s}function Cme({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){const c=age().scaleExtent([r,o]).filter(f=>f.button===0||f.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",f=>s(f)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(c),c}var Eme=class{nodeTypes;_nodeTypeFilter;_includeUnlinked=!0;_linkFilter=()=>!0;_showLinkLabels=!0;_showNodeLabels=!0;filteredGraph;width=0;height=0;simulation;canvas;linkSelection;nodeSelection;markerSelection;zoom;drag;xOffset=0;yOffset=0;scale;focusedNode=void 0;resizeObserver;container;graph;config;constructor(e,t,r){if(this.container=e,this.graph=t,this.config=r,this.scale=r.zoom.initial,this.resetView(),this.graph.nodes.forEach(o=>{const[s,c]=r.positionInitializer(o,this.effectiveWidth,this.effectiveHeight);o.x=o.x??s,o.y=o.y??c}),this.nodeTypes=[...new Set(t.nodes.map(o=>o.type))],this._nodeTypeFilter=[...this.nodeTypes],r.initial){const{includeUnlinked:o,nodeTypeFilter:s,linkFilter:c,showLinkLabels:f,showNodeLabels:d}=r.initial;this._includeUnlinked=o??this._includeUnlinked,this._showLinkLabels=f??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=s??this._nodeTypeFilter,this._linkFilter=c??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(r.simulation.alphas.initialize),r.autoResize&&(this.resizeObserver=new ResizeObserver(Mfe(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:t,exclude:r}=this.config.simulation.alphas.filter.unlinked,o=e?t:r;this.restart(o)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.nodes,o=e?r:t;this.restart(o)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:t,show:r}=this.config.simulation.alphas.labels.links,o=e?r:t;this.restart(o)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return ul.of([this.width,this.height]).divide(2).subtract(ul.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,t=this.height,r=this.container.getBoundingClientRect().width,o=this.container.getBoundingClientRect().height,s=e.toFixed()!==r.toFixed(),c=t.toFixed()!==o.toFixed();if(!s&&!c)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const f=this.config.simulation.alphas.resize;this.restart(_1(f)?f:f({oldWidth:e,oldHeight:t,newWidth:r,newHeight:o}))}restart(e){this.markerSelection=vme({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=dme({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=xme({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:t=>this.toggleNodeFocus(t),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=Tme({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,t){e?this._nodeTypeFilter.push(t):this._nodeTypeFilter=this._nodeTypeFilter.filter(r=>r!==t),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=Cme({config:this.config,canvasContainer:()=>Kn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=Jge({applyZoom:this.scale!==1,container:Kn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=fme(this.canvas),this.nodeSelection=wme(this.canvas),this.markerSelection=mme(this.canvas),this.drag=eme({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){_me(this.nodeSelection),hme({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),Kn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){Qge({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=tme({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function T0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function Ame(e){return{...e}}function Kp(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function C0(e){const t=e.map(o=>yx(o)),r=OL(t);return t.map(({raw:o,id:s,splitted:c})=>Kp({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:s.includes("node_modules")?r.get(o)??o:c[c.length-1]},isFocused:!1,id:s,type:"external"}))}function Lme(e,t){return Kp({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 Mme(e,t){if(!e)return T0({});const r=zn.value.experimental.viteModuleRunner?C0(e.externalized):C0([...e.inlined,...e.externalized]),o=zn.value.experimental.viteModuleRunner?e.inlined.map(d=>Lme(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 g=c[d],v=c[p];if(!(g===void 0||v===void 0))return Ame({source:g,target:v,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return T0({nodes:s,links:f})}const Nme={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Ome={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Pme={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Rme={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},$me={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Ime={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},N1=rt({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=vr("tooltip");return e.state==="pass"?(ne(),ve("div",Nme)):e.failedSnapshot?ot((ne(),ve("div",Ome,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(ne(),ve("div",Pme)):e.mode==="todo"?ot((ne(),ve("div",Rme,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?ot((ne(),ve("div",$me,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ne(),ve("div",Ime))}}}),Dme={border:"b base","p-4":""},zme=["innerHTML"],Fme=rt({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(ne(),ve("div",Dme,[X("div",{"text-xs":"","mb-1":"",class:st(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Me(t(e.time))+" | "+Me(e.taskName)+" | "+Me(e.type),3),X("pre",{"data-type":"html",innerHTML:e.content},null,8,zme)]))}}),Hme={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Bme={key:1,p6:""},jme=rt({__name:"ViewConsoleOutput",setup(e){const t=xe(()=>{const o=Gx.value;if(o){const s=Np(wo.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(ha(h))}))}});function r(o){const s=o&&ft.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?gL(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>t.value?.length?(ne(),ve("div",Hme,[(ne(!0),ve(et,null,vn(t.value,({taskId:c,type:f,time:d,content:h})=>(ne(),ve("div",{key:c,"font-mono":""},[Ne(Fme,{"task-name":r(c),type:f,time:d,content:h},null,8,["task-name","type","time","content"])]))),128))])):(ne(),ve("div",Bme,[...s[0]||(s[0]=[Je(" Log something in your test and it would print here. (e.g. ",-1),X("pre",{inline:""},"console.log(foo)",-1),Je(") ",-1)])]))}}),O1={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(O1);var fr=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},zs,na,qo;class Wme{constructor(...t){zs.set(this,new Map),na.set(this,new Map),qo.set(this,new Map);for(const r of t)this.define(r)}define(t,r=!1){for(let[o,s]of Object.entries(t)){o=o.toLowerCase(),s=s.map(d=>d.toLowerCase()),fr(this,qo,"f").has(o)||fr(this,qo,"f").set(o,new Set);const c=fr(this,qo,"f").get(o);let f=!0;for(let d of s){const h=d.startsWith("*");if(d=h?d.slice(1):d,c?.add(d),f&&fr(this,na,"f").set(o,d),f=!1,h)continue;const p=fr(this,zs,"f").get(d);if(p&&p!=o&&!r)throw new Error(`"${o} -> ${d}" conflicts with "${p} -> ${d}". Pass \`force=true\` to override this definition.`);fr(this,zs,"f").set(d,o)}}return this}getType(t){if(typeof t!="string")return null;const r=t.replace(/^.*[/\\]/s,"").toLowerCase(),o=r.replace(/^.*\./s,"").toLowerCase(),s=r.length<t.length;return!(o.length<r.length-1)&&s?null:fr(this,zs,"f").get(o)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&fr(this,na,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:fr(this,qo,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of fr(this,qo,"f").values())Object.freeze(t);return this}_getTestState(){return{types:fr(this,zs,"f"),extensions:fr(this,na,"f")}}}zs=new WeakMap,na=new WeakMap,qo=new WeakMap;const qme=new Wme(O1)._freeze();function Fa(e){if(gr)return`/data/${e.path}`;const t=e.contentType??"application/octet-stream";return e.path?`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function P1(e,t){const r=t?qme.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function R1(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}function Hh(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))?t:Fa(e)}const fu=rt({__name:"CodeMirrorContainer",props:wa({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:wa(["save","codemirror"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=of(e,"modelValue"),s=vT(),c={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Ue();return Pi(async()=>{const d=Zce(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.on("refresh",()=>{r("codemirror",d)}),d.on("change",()=>{r("codemirror",d)}),d.setSize("100%","100%"),d.clearHistory(),On.value=d,setTimeout(()=>On.value?.refresh(),100)}),(d,h)=>(ne(),ve("div",{relative:"","font-mono":"","text-sm":"",class:st(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[X("textarea",{ref_key:"el",ref:f},null,512)],2))}}),Ume=rt({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ue(""),c=Nt(void 0),f=Ue(!1),d=Ue(!0),h=Ue(!1),p=Ue();kt(()=>r.file,async()=>{if(!h.value){d.value=!0;try{if(!r.file||!r.file?.filepath){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await ft.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(Y){console.error("cannot fetch file",Y)}await Et(),d.value=!1}},{immediate:!0}),kt(()=>[d.value,h.value,r.file,$x.value,Ix.value],([Y,G,j,O,N])=>{!Y&&!G&&(O!=null?Et(()=>{const C=p.value,k=C??{line:(O??1)-1,ch:N??0};C?p.value=void 0:(On.value?.scrollIntoView(k,100),Et(()=>{On.value?.focus(),On.value?.setCursor(k)}))}):Et(()=>{On.value?.focus()}))},{flush:"post"});const g=xe(()=>r.file?.filepath?.split(/\./g).pop()||"js"),v=Ue(),b=xe(()=>{const Y=[];function G(j){j.result?.errors&&Y.push(...j.result.errors),j.type==="suite"&&j.tasks.forEach(G)}return r.file?.tasks.forEach(G),Y}),w=xe(()=>{const Y=[];function G(j){j.type==="test"&&Y.push(...j.annotations),j.type==="suite"&&j.tasks.forEach(G)}return r.file?.tasks.forEach(G),Y}),T=[],L=[],P=[],M=Ue(!1);function R(){P.forEach(([Y,G,j])=>{Y.removeEventListener("click",G),j()}),P.length=0}Jw(v,()=>{On.value?.refresh()});function I(){f.value=c.value!==On.value.getValue()}kt(f,Y=>{o("draft",Y)},{immediate:!0});function E(Y){const j=(Y?.stacks||[]).filter(F=>F.file&&F.file===r.file?.filepath)?.[0];if(!j)return;const O=document.createElement("div");O.className="op80 flex gap-x-2 items-center";const N=document.createElement("pre");N.className="c-red-600 dark:c-red-400",N.textContent=`${" ".repeat(j.column)}^ ${Y.name}: ${Y?.message||""}`,O.appendChild(N);const C=document.createElement("span");C.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",C.tabIndex=0,C.ariaLabel="Open in Editor",Fw(C,{content:"Open in Editor",placement:"bottom"},!1);const k=async()=>{await Mp(j.file,j.line,j.column)};C.addEventListener("click",k),O.appendChild(C),P.push([C,k,()=>yp(C)]),L.push(On.value.addLineClass(j.line-1,"wrap","bg-red-500/10")),T.push(On.value.addLineWidget(j.line-1,O))}function D(Y){if(!Y.location)return;const{line:G,file:j}=Y.location;if(j!==r.file?.filepath)return;const O=document.createElement("div");O.classList.add("wrap","bg-active","py-3","px-6","my-1"),O.role="note";const N=document.createElement("div");N.classList.add("block","text-black","dark:text-white");const C=document.createElement("span");C.textContent=`${Y.type}: `,C.classList.add("font-bold");const k=document.createElement("span");k.classList.add("whitespace-pre"),k.textContent=Y.message.replace(/[^\r]\n/,`\r
|
|
50
|
-
`),N.append(C,k),O.append(N);const F=Y.attachment;if(F?.path||F?.body)if(F.contentType?.startsWith("image/")){const $=document.createElement("a"),ae=document.createElement("img");$.classList.add("inline-block","mt-3"),$.style.maxWidth="50vw";const ce=F.path||F.body;typeof ce=="string"&&(ce.startsWith("http://")||ce.startsWith("https://"))?(ae.setAttribute("src",ce),$.referrerPolicy="no-referrer"):ae.setAttribute("src",Fa(F)),$.target="_blank",$.href=ae.src,$.append(ae),O.append($)}else{const $=document.createElement("a");$.href=Fa(F),$.download=P1(Y.message,F.contentType),$.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ae=document.createElement("div");ae.classList.add("i-carbon:download","block");const ce=document.createElement("span");ce.textContent="Download",$.append(ae,ce),O.append($)}T.push(On.value.addLineWidget(G-1,O))}const{pause:V,resume:ee}=kt([On,b,w,Hs],([Y,G,j,O])=>{if(!Y){T.length=0,L.length=0,R();return}O&&(Y.off("changes",I),R(),T.forEach(N=>N.clear()),L.forEach(N=>Y?.removeLineClass(N,"wrap")),T.length=0,L.length=0,setTimeout(()=>{G.forEach(E),j.forEach(D),M.value||Y.clearHistory(),Y.on("changes",I)},100))},{flush:"post"});Sp(()=>[Hs.value,h.value,p.value],([Y,G],j)=>{Y&&!G&&j&&j[2]&&On.value?.setCursor(j[2])},{debounce:100,flush:"post"});async function ie(Y){if(h.value)return;V(),h.value=!0,await Et();const G=On.value;G&&(G.setOption("readOnly",!0),await Et(),G.refresh()),p.value=G?.getCursor(),G?.off("changes",I),R(),T.forEach(j=>j.clear()),L.forEach(j=>G?.removeLineClass(j,"wrap")),T.length=0,L.length=0;try{M.value=!0,await ft.rpc.saveTestFile(r.file.filepath,Y),c.value=Y,f.value=!1}catch(j){console.error("error saving file",j)}M.value||G?.clearHistory();try{await ly(Hs).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await ly(Hs).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(E),w.value.forEach(D),G?.on("changes",I),h.value=!1,await Et(),G&&(G.setOption("readOnly",!1),await Et(),G.refresh()),ee()}return Ua(R),(Y,G)=>(ne(),Ve(fu,_i({ref_key:"editor",ref:v,modelValue:s.value,"onUpdate:modelValue":G[0]||(G[0]=j=>s.value=j),"h-full":""},{lineNumbers:!0,readOnly:K(gr),saving:h.value},{mode:g.value,"data-testid":"code-mirror",onSave:ie}),null,16,["modelValue","mode"]))}}),Xp=rt({__name:"Modal",props:wa({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=of(e,"modelValue"),r=xe(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=xe(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(ne(),ve("div",{class:st(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[X("div",{class:st(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),X("div",{class:st(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[r.value]]),style:Rt(t.value?{}:{transform:o.value})},[Ft(c.$slots,"default")],6)],2))}}),Vme={class:"overflow-auto max-h-120"},Gme={"my-2":"","mx-4":""},Kme={"op-70":""},Xme={"my-2":"","mx-4":"","text-sm":"","font-light":"","op-90":""},Yme=["onClick"],Zme=rt({__name:"ModuleGraphImportBreakdown",emits:["select"],setup(e,{emit:t}){const r=t,o=Ue(10),s=xe(()=>{const h=pr.value?.importDurations;if(!h)return[];const p=zn.value.root,g=[];for(const b in h){const w=h[b],T=w.external?PL(b):mf(p,b);g.push({importedFile:b,relativeFile:f(T),selfTime:w.selfTime,totalTime:w.totalTime,formattedSelfTime:Uo(w.selfTime),formattedTotalTime:Uo(w.totalTime),selfTimeClass:Ou(w.selfTime),totalTimeClass:Ou(w.totalTime),external:w.external})}return g.sort((b,w)=>w.totalTime-b.totalTime)}),c=xe(()=>s.value.slice(0,o.value));function f(d){return d.length<=45?d:`...${d.slice(-45)}`}return(d,h)=>(ne(),ve("div",Vme,[X("h1",Gme,[h[1]||(h[1]=Je(" Import Duration Breakdown ",-1)),X("span",Kme,"(ordered by Total Time) (Top "+Me(Math.min(o.value,c.value.length))+")",1)]),X("table",Xme,[h[2]||(h[2]=X("thead",null,[X("tr",null,[X("th",null," Module "),X("th",null," Self "),X("th",null," Total "),X("th",null," % ")])],-1)),X("tbody",null,[(ne(!0),ve(et,null,vn(c.value,p=>(ne(),ve("tr",{key:p.importedFile},[X("td",{class:"cursor-pointer pr-2",style:Rt({color:p.external?"var(--color-node-external)":void 0}),onClick:g=>r("select",p.importedFile,p.external?"external":"inline")},Me(p.relativeFile),13,Yme),X("td",{"pr-2":"",class:st(p.selfTimeClass)},Me(p.formattedSelfTime),3),X("td",{"pr-2":"",class:st(p.totalTimeClass)},Me(p.formattedTotalTime),3),X("td",{"pr-2":"",class:st(p.totalTimeClass)},Me(Math.round(p.totalTime/s.value[0].totalTime*100))+"% ",3)]))),128))])]),o.value<s.value.length?(ne(),ve("button",{key:0,class:"flex w-full justify-center h-8 text-sm z-10 relative font-light",onClick:h[0]||(h[0]=p=>o.value+=5)}," Show more ")):He("",!0)]))}}),$s=rt({__name:"Badge",props:{type:{default:"info"}},setup(e){return(t,r)=>(ne(),ve("span",{class:st(["rounded-full py-0.5 px-2 text-xs text-white select-none",{"bg-red":e.type==="danger","bg-orange":e.type==="warning","bg-gray":e.type==="info","bg-indigo/60":e.type==="tip"}])},[Ft(t.$slots,"default")],2))}}),Jme={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Qme={"p-4":"",relative:""},eve={flex:"","justify-between":""},tve={"mr-8":"",flex:"","gap-2":"","items-center":""},nve={op50:"","font-mono":"","text-sm":""},rve={key:0,"p-5":""},ive={key:0,p:"x3 y-1","bg-overlay":"",border:"base b t"},ove={key:0},sve={p:"x3 y-1","bg-overlay":"",border:"base b t"},lve=rt({__name:"ModuleTransformResultView",props:{id:{},projectName:{},type:{},canUndo:{type:Boolean}},emits:["close","select","back"],setup(e,{emit:t}){const r=e,o=t,s=YE(()=>{if(pr.value?.id){if(r.type==="inline")return ft.rpc.getTransformResult(r.projectName,r.id,pr.value.id,!!Zn);if(r.type==="external")return ft.rpc.getExternalResult(r.id,pr.value.id)}}),c=xe(()=>{const I=pr.value?.importDurations||{};return I[r.id]||I[iL("/@fs/",r.id)]||{}}),f=xe(()=>r.id?.split(/\./g).pop()||"js"),d=xe(()=>s.value?.source?.trim()||""),h=xe(()=>!s.value||!("code"in s.value)||!zn.value.experimental?.fsModuleCache?void 0:s.value.code.lastIndexOf("vitestCache=")!==-1),p=xe(()=>!s.value||!("code"in s.value)?null:s.value.code.replace(/\/\/# sourceMappingURL=.*\n/,"").replace(/\/\/# sourceMappingSource=.*\n/,"").replace(/\/\/# vitestCache=.*\n?/,"").trim()||""),g=xe(()=>!s.value||!("map"in s.value)?{mappings:""}:{mappings:s.value?.map?.mappings??"",version:s.value?.map?.version}),v=[],b=[],w=[];function T(I,E){const D=I.coordsChar({left:E.clientX,top:E.clientY}),V=I.findMarksAt(D);if(V.length!==1)return;const ee=V[0].title;if(ee){const ie=V[0].attributes?.["data-external"]==="true"?"external":"inline";o("select",ee,ie)}}function L(I){const E=document.createElement("div");return E.classList.add("mb-5"),I.forEach(({resolvedId:D,totalTime:V,external:ee})=>{const ie=document.createElement("div");ie.append(document.createTextNode("import "));const Y=document.createElement("span"),G=mf(zn.value.root,D);Y.textContent=`"/${G}"`,Y.className="hover:underline decoration-gray cursor-pointer select-none",ie.append(Y),Y.addEventListener("click",()=>{o("select",D,ee?"external":"inline")});const j=document.createElement("span");j.textContent=` ${Uo(V)}`;const O=Ou(V);O&&j.classList.add(O),ie.append(j),E.append(ie)}),E}function P(I){const E=document.createElement("div");E.className="flex ml-2",E.textContent=Uo(I);const D=Ou(I);return D&&E.classList.add(D),E}function M(I){if(w.forEach(E=>E.clear()),w.length=0,v.forEach(E=>E.remove()),v.length=0,b.forEach(E=>E.clear()),b.length=0,s.value&&"modules"in s.value){I.off("mousedown",T),I.on("mousedown",T);const E=s.value.untrackedModules;if(E?.length){const D=L(E);v.push(D),w.push(I.addLineWidget(0,D,{above:!0}))}s.value.modules?.forEach(D=>{const V={line:D.start.line-1,ch:D.start.column},ee={line:D.end.line-1,ch:D.end.column},ie=I.markText(V,ee,{title:D.resolvedId,attributes:{"data-external":String(D.external===!0)},className:"hover:underline decoration-red cursor-pointer select-none"});b.push(ie);const Y=P(D.totalTime+(D.transformTime||0));E?.length||Y.classList.add("-mt-5"),v.push(Y),I.addWidget({line:D.end.line-1,ch:D.end.column+1},Y,!1)})}}function R(){o("back")}return Vw("Escape",()=>{o("close")}),(I,E)=>{const D=vr("tooltip");return ne(),ve("div",Jme,[X("div",Qme,[X("div",eve,[X("p",null,[e.canUndo?ot((ne(),Ve(xt,{key:0,icon:"i-carbon-arrow-left",class:"flex-inline",onClick:E[0]||(E[0]=V=>R())},null,512)),[[D,"Go Back",void 0,{bottom:!0}]]):He("",!0),E[7]||(E[7]=Je(" Module Info ",-1)),Ne(K(ro),{class:"inline","cursor-help":""},{popper:Be(()=>[Je(" This is module is "+Me(e.type==="external"?"externalized":"inlined")+". ",1),e.type==="external"?(ne(),ve(et,{key:0},[Je(" It means that the module was not processed by Vite plugins, but instead was directly imported by the environment. ")],64)):(ne(),ve(et,{key:1},[Je(" It means that the module was processed by Vite plugins. ")],64))]),default:Be(()=>[Ne($s,{type:"custom","ml-1":"",style:Rt({backgroundColor:`var(--color-node-${e.type})`})},{default:Be(()=>[Je(Me(e.type),1)]),_:1},8,["style"])]),_:1}),h.value===!0?(ne(),Ve(K(ro),{key:1,class:"inline","cursor-help":""},{popper:Be(()=>[...E[4]||(E[4]=[Je(' This module is cached on the file system under `experimental.fsModuleCachePath` ("node_modules/.exprtimental-vitest-cache" by default). ',-1)])]),default:Be(()=>[Ne($s,{type:"tip","ml-2":""},{default:Be(()=>[...E[3]||(E[3]=[Je(" cached ",-1)])]),_:1})]),_:1})):He("",!0),h.value===!1?(ne(),Ve(K(ro),{key:2,class:"inline","cursor-help":""},{popper:Be(()=>[...E[6]||(E[6]=[X("p",null,"This module is not cached on the file system. It might be the first test run after cache invalidation or",-1),X("p",null,"it was excluded manually via `experimental_defineCacheKeyGenerator`, or it cannot be cached (modules with `import.meta.glob`, for example).",-1)])]),default:Be(()=>[Ne($s,{type:"warning","ml-2":""},{default:Be(()=>[...E[5]||(E[5]=[Je(" not cached ",-1)])]),_:1})]),_:1})):He("",!0)]),X("div",tve,[c.value.selfTime!=null&&c.value.external!==!0?(ne(),Ve(K(ro),{key:0,class:"inline","cursor-help":""},{popper:Be(()=>[Je(" It took "+Me(K($d)(c.value.selfTime))+" to import this module, excluding static imports. ",1)]),default:Be(()=>[Ne($s,{type:K(iu)(c.value.selfTime)},{default:Be(()=>[Je(" self: "+Me(K(Uo)(c.value.selfTime)),1)]),_:1},8,["type"])]),_:1})):He("",!0),c.value.totalTime!=null?(ne(),Ve(K(ro),{key:1,class:"inline","cursor-help":""},{popper:Be(()=>[Je(" It took "+Me(K($d)(c.value.totalTime))+" to import the whole module, including static imports. ",1)]),default:Be(()=>[Ne($s,{type:K(iu)(c.value.totalTime)},{default:Be(()=>[Je(" total: "+Me(K(Uo)(c.value.totalTime)),1)]),_:1},8,["type"])]),_:1})):He("",!0),K(s)&&"transformTime"in K(s)&&K(s).transformTime?(ne(),Ve(K(ro),{key:2,class:"inline","cursor-help":""},{popper:Be(()=>[Je(" It took "+Me(K($d)(K(s).transformTime))+" to transform this module by Vite plugins. ",1)]),default:Be(()=>[Ne($s,{type:K(iu)(K(s).transformTime)},{default:Be(()=>[Je(" transform: "+Me(K(Uo)(K(s).transformTime)),1)]),_:1},8,["type"])]),_:1})):He("",!0)])]),X("p",nve,Me(e.id),1),Ne(xt,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:E[1]||(E[1]=V=>o("close"))})]),K(s)?(ne(),ve(et,{key:1},[X("div",{grid:"~ rows-[min-content_auto]","overflow-hidden":"","flex-auto":"",class:st({"cols-2":p.value!=null})},[E[8]||(E[8]=X("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),p.value!=null?(ne(),ve("div",ive," Transformed ")):He("",!0),(ne(),Ve(fu,_i({key:e.id,"h-full":"","model-value":d.value,"read-only":""},{lineNumbers:!0},{mode:f.value,onCodemirror:E[2]||(E[2]=V=>M(V))}),null,16,["model-value","mode"])),p.value!=null?(ne(),Ve(fu,_i({key:1,"h-full":"","model-value":p.value,"read-only":""},{lineNumbers:!0},{mode:"js"}),null,16,["model-value"])):He("",!0)],2),g.value.mappings!==""?(ne(),ve("div",ove,[X("div",sve," Source map (v"+Me(g.value.version)+") ",1),Ne(fu,_i({"model-value":g.value.mappings,"read-only":""},{lineNumbers:!0}),null,16,["model-value"])])):He("",!0)],64)):(ne(),ve("div",rve," No transform result found for this module. "))])}}}),ave={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},cve={flex:"","items-center":"","gap-2":"","px-3":"","py-2":""},uve={flex:"~ gap-1","items-center":"","select-none":""},fve={class:"pr-2"},dve=["id","checked","onChange"],hve=["for"],pve={key:0,class:"absolute bg-[#eee] dark:bg-[#222] border-base right-0 mr-2 rounded-xl mt-2"},gve=rt({__name:"ViewModuleGraph",props:wa({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=of(e,"modelValue"),{graph:o}=F_(t),s=Ue(),c=Ue(!1),f=Ue(),d=pA(f),h=Ue(),p=Ue(null),g=Nt(o.value),v=xe(()=>{let j="";const O=pr.value?.importDurations||{};for(const N in O){const{totalTime:C}=O[N];if(C>=500){j="text-red";break}else C>=100&&(j="text-orange")}return j}),b=Ue(zn.value?.experimental?.printImportBreakdown??v.value==="text-red");Pi(()=>{g.value=L(o.value,null,2),ee()}),Va(()=>{h.value?.shutdown()}),kt(o,()=>{g.value=L(o.value,p.value,2),ee()});function w(){g.value=o.value,ee()}function T(){b.value=!b.value}function L(j,O,N=2){if(!j.nodes.length||j.nodes.length<=50)return j;const C=new Map;j.nodes.forEach(Ae=>C.set(Ae.id,new Set)),j.links.forEach(Ae=>{const Ke=typeof Ae.source=="object"?Ae.source.id:String(Ae.source),qe=typeof Ae.target=="object"?Ae.target.id:String(Ae.target);C.get(Ke)?.add(qe),C.get(qe)?.add(Ke)});let k;if(O)k=[O];else{const Ae=new Set(j.links.map(qe=>typeof qe.target=="object"?qe.target.id:String(qe.target))),Ke=j.nodes.filter(qe=>qe.type==="inline"&&!Ae.has(qe.id));k=Ke.length>0?[Ke[0].id]:[j.nodes[0].id]}const F=new Set,$=k.map(Ae=>({id:Ae,level:0}));for(;$.length>0;){const{id:Ae,level:Ke}=$.shift();F.has(Ae)||Ke>N||(F.add(Ae),Ke<N&&(C.get(Ae)||new Set).forEach(Fe=>{F.has(Fe)||$.push({id:Fe,level:Ke+1})}))}const ae=new Map(j.nodes.map(Ae=>[Ae.id,Ae])),ce=Array.from(F).map(Ae=>ae.get(Ae)).filter(Ae=>Ae!==void 0),Se=new Map(ce.map(Ae=>[Ae.id,Ae])),je=j.links.map(Ae=>{const Ke=typeof Ae.source=="object"?Ae.source.id:String(Ae.source),qe=typeof Ae.target=="object"?Ae.target.id:String(Ae.target);if(F.has(Ke)&&F.has(qe)){const Fe=Se.get(Ke),Re=Se.get(qe);if(Fe&&Re)return{...Ae,source:Fe,target:Re}}return null}).filter(Ae=>Ae!==null);return{nodes:ce,links:je}}function P(j,O){h.value?.filterNodesByType(O,j)}function M(j,O){f.value={id:j,type:O},c.value=!0}function R(){d.undo()}function I(){c.value=!1,d.clear()}function E(j){p.value=j,g.value=L(o.value,j,2),V(),ee()}function D(){p.value=null,g.value=L(o.value,null,2),V(),ee()}function V(){const j=g.value.nodes.map(C=>{let k,F;return C.id===p.value?(k="var(--color-node-focused)",F="var(--color-node-focused)"):C.type==="inline"?(k=C.color==="var(--color-node-root)"?"var(--color-node-root)":"var(--color-node-inline)",F=k):(k="var(--color-node-external)",F="var(--color-node-external)"),Kp({...C,color:k,label:C.label?{...C.label,color:F}:C.label})}),O=new Map(j.map(C=>[C.id,C])),N=g.value.links.map(C=>{const k=typeof C.source=="object"?C.source.id:String(C.source),F=typeof C.target=="object"?C.target.id:String(C.target);return{...C,source:O.get(k),target:O.get(F)}});g.value={nodes:j,links:N}}function ee(j=!1){if(h.value?.shutdown(),j&&!r.value){r.value=!0;return}if(!g.value||!s.value)return;const O=g.value.nodes.length;let N=1,C=.5;O>300?(N=.3,C=.2):O>200?(N=.4,C=.3):O>100?(N=.5,C=.3):O>50&&(N=.7,N=.4),h.value=new Eme(s.value,g.value,Zge({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:k,newWidth:F})=>k===0&&F===0?0:.05},forces:{collision:{radiusMultiplier:10},link:{length:140}}},marker:C1.Arrow(2),modifiers:{node:G},positionInitializer:o.value.nodes.length===1?Dh.Centered:Dh.Randomized,zoom:{initial:N,min:C,max:1.5}}))}const ie=j=>j.button===0,Y=j=>j.button===2;function G(j){if(gr)return;let O=0,N=0,C=0,k=!1;j.on("pointerdown",(F,$)=>{!$.x||!$.y||(k=Y(F),!(!ie(F)&&!k)&&(O=$.x,N=$.y,C=Date.now()))}).on("pointerup",(F,$)=>{if(!$.x||!$.y)return;const ae=Y(F);if(!ie(F)&&!ae||Date.now()-C>500)return;const ce=$.x-O,Se=$.y-N;ce**2+Se**2<100&&(!ae&&!F.shiftKey?M($.id,$.type):(ae||F.shiftKey)&&(F.preventDefault(),$.type==="inline"&&E($.id)))}).on("contextmenu",F=>{F.preventDefault()})}return(j,O)=>{const N=vr("tooltip");return ne(),ve("div",ave,[X("div",null,[X("div",cve,[X("div",uve,[X("div",fve,Me(g.value.nodes.length)+"/"+Me(K(o).nodes.length)+" "+Me(g.value.nodes.length===1?"module":"modules"),1),ot(X("input",{id:"hide-node-modules","onUpdate:modelValue":O[0]||(O[0]=C=>r.value=C),type:"checkbox"},null,512),[[vw,r.value]]),O[9]||(O[9]=X("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(ne(!0),ve(et,null,vn(h.value?.nodeTypes.sort(),C=>(ne(),ve("div",{key:C,flex:"~ gap-1","items-center":"","select-none":""},[X("input",{id:`type-${C}`,type:"checkbox",checked:h.value?.nodeTypeFilter.includes(C),onChange:k=>P(C,k.target.checked)},null,40,dve),X("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${C}`,"border-b-2":"",style:Rt({"border-color":`var(--color-node-${C})`})},Me(C)+" Modules",13,hve)]))),128)),O[10]||(O[10]=X("div",{"flex-auto":""},null,-1)),O[11]||(O[11]=X("div",{flex:"~ gap-2","items-center":"","text-xs":"","opacity-60":""},[X("span",null,"Click on node: details • Right-click/Shift: expand graph")],-1)),X("div",null,[ot(Ne(xt,{icon:"i-carbon-notebook",class:st(v.value),onClick:O[1]||(O[1]=C=>T())},null,8,["class"]),[[N,`${b.value?"Hide":"Show"} Import Breakdown`,void 0,{bottom:!0}]])]),X("div",null,[ot(Ne(xt,{icon:"i-carbon-ibm-cloud-direct-link-2-connect",onClick:O[2]||(O[2]=C=>w())},null,512),[[N,"Show Full Graph",void 0,{bottom:!0}]])]),X("div",null,[ot(Ne(xt,{icon:"i-carbon-reset",onClick:O[3]||(O[3]=C=>D())},null,512),[[N,"Reset",void 0,{bottom:!0}]])])])]),b.value?(ne(),ve("div",pve,[Ne(Zme,{onSelect:O[4]||(O[4]=(C,k)=>M(C,k))})])):He("",!0),X("div",{ref_key:"el",ref:s},null,512),Ne(Xp,{modelValue:c.value,"onUpdate:modelValue":O[8]||(O[8]=C=>c.value=C),direction:"right"},{default:Be(()=>[f.value?(ne(),Ve(dp,{key:0},{default:Be(()=>[Ne(lve,{id:f.value.id,"project-name":e.projectName,type:f.value.type,"can-undo":K(d).undoStack.value.length>1,onClose:O[5]||(O[5]=C=>I()),onSelect:O[6]||(O[6]=(C,k)=>M(C,k)),onBack:O[7]||(O[7]=C=>R())},null,8,["id","project-name","type","can-undo"])]),_:1})):He("",!0)]),_:1},8,["modelValue"])])}}});function $1(e){const t=e.meta?.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function I1(){const e=Ue(!1),t=Ue(Date.now()),r=Ue(),o=xe(()=>{const c=r.value?.id,f=t.value;return c?`/__screenshot-error?id=${encodeURIComponent(c)}&t=${f}`:void 0});function s(c){r.value=c,t.value=Date.now(),e.value=!0}return{currentTask:r,showScreenshot:e,currentScreenshotUrl:o,showScreenshotModal:s}}const mve={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},vve={"p-4":"",relative:"",border:"base b"},yve={op50:"","font-mono":"","text-sm":""},bve={op50:"","font-mono":"","text-sm":""},wve={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},xve=["src","alt"],kve={key:1},Sve=rt({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Vw("Escape",()=>{r("close")}),(o,s)=>(ne(),ve("div",mve,[X("div",vve,[s[1]||(s[1]=X("p",null,"Screenshot error",-1)),X("p",yve,Me(e.file),1),X("p",bve,Me(e.name),1),Ne(xt,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=c=>r("close"))})]),X("div",wve,[e.url?(ne(),ve("img",{key:0,src:e.url,alt:`Screenshot error for '${e.name}' test in file '${e.file}'`,border:"base t r b l dotted red-500"},null,8,xve)):(ne(),ve("div",kve," Something was wrong, the image cannot be resolved. "))])]))}}),D1=Ri(Sve,[["__scopeId","data-v-08ce44b7"]]),_ve={class:"scrolls scrolls-rounded task-error"},Tve=["onClickPassive"],Cve=["innerHTML"],Eve=rt({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function r(d){return d.startsWith(t.root)?d.slice(t.root.length):d}const o=xe(()=>Np(wo.value)),s=xe(()=>!!t.error?.diff),c=xe(()=>t.error.diff?o.value.toHtml(ha(t.error.diff)):void 0);function f(d){return Wce(d.file,t.filename)?Jce(t.fileId,d):Mp(d.file,d.line,d.column)}return(d,h)=>{const p=vr("tooltip");return ne(),ve("div",_ve,[X("pre",null,[X("b",null,Me(e.error.name),1),Je(": "+Me(e.error.message),1)]),(ne(!0),ve(et,null,vn(e.error.stacks,(g,v)=>(ne(),ve("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[X("pre",null," - "+Me(r(g.file))+":"+Me(g.line)+":"+Me(g.column),1),ot(X("div",{class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:b=>f(g)},null,40,Tve),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),s.value?(ne(),ve("pre",{key:0,"data-testid":"diff",innerHTML:c.value},null,8,Cve)):He("",!0)])}}}),z1=Ri(Eve,[["__scopeId","data-v-1fcfe7a4"]]),Ave={"h-full":"",class:"scrolls"},Lve=["id"],Mve={flex:"~ gap-2 items-center"},Nve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Ove=["innerHTML"],Pve={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Rve=rt({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(h,p){return h.result?.state!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(g=>r(g,p+1))]}const o=xe(()=>{const h=t.file,p=h.tasks?.flatMap(b=>r(b,0))??[],g=h.result;if(g?.errors?.[0]){const b={id:h.id,file:h,name:h.name,fullName:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:g};p.unshift(b)}return p.length>0?Rx(wo.value,p):p}),{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=I1();return(h,p)=>{const g=vr("tooltip");return ne(),ve("div",Ave,[o.value.length?(ne(!0),ve(et,{key:0},vn(o.value,v=>(ne(),ve("div",{id:v.id,key:v.id},[X("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Rt({"margin-left":`${v.result?.htmlError?.5:2*v.level+.5}rem`})},[X("div",Mve,[X("span",null,Me(v.name),1),K(Zn)&&v.meta?.failScreenshotPath?(ne(),ve(et,{key:0},[ot(Ne(xt,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b=>K(f)(v)},null,8,["onClick"]),[[g,"View screenshot error",void 0,{bottom:!0}]]),ot(Ne(xt,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b=>K($1)(v)},null,8,["onClick"]),[[g,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):He("",!0)]),v.result?.htmlError?(ne(),ve("div",Nve,[X("pre",{innerHTML:v.result.htmlError},null,8,Ove)])):v.result?.errors?(ne(!0),ve(et,{key:1},vn(v.result.errors,(b,w)=>(ne(),Ve(z1,{key:w,error:b,filename:e.file.name,root:K(zn).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):He("",!0)],4)],8,Lve))),128)):(ne(),ve("div",Pve," All tests passed in this file ")),K(Zn)?(ne(),Ve(Xp,{key:2,modelValue:K(c),"onUpdate:modelValue":p[1]||(p[1]=v=>Tt(c)?c.value=v:null),direction:"right"},{default:Be(()=>[K(s)?(ne(),Ve(dp,{key:0},{default:Be(()=>[Ne(D1,{file:K(s).file.filepath,name:K(s).name,url:K(d),onClose:p[0]||(p[0]=v=>c.value=!1)},null,8,["file","name","url"])]),_:1})):He("",!0)]),_:1},8,["modelValue"])):He("",!0)])}}}),$ve=Ri(Rve,[["__scopeId","data-v-9d875d6e"]]),Ive=["href","referrerPolicy"],Dve=["src"],zve=rt({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=xe(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:Fa(o)});return(o,s)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(ne(),ve("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:r.value,referrerPolicy:K(R1)(e.annotation.attachment)?"no-referrer":void 0},[X("img",{src:r.value},null,8,Dve)],8,Ive)):He("",!0)}}),Fve={class:"flex flex-col gap-4"},Hve={key:0},Bve=rt({__name:"ArtifactTemplate",setup(e){const t=Hb();return(r,o)=>(ne(),ve("article",Fve,[X("h1",null,[Ft(r.$slots,"title")]),K(t).message?(ne(),ve("p",Hve,[Ft(r.$slots,"message")])):He("",!0),Ft(r.$slots,"default")]))}}),F1=Symbol("tabContext"),Wu={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},jve={class:"flex flex-col items-center gap-6"},Wve={role:"tablist","aria-orientation":"horizontal",class:"flex gap-4"},qve=["id","aria-selected","aria-controls","onClick"],Uve=rt({__name:"SmallTabs",setup(e){const t=Ue(null),r=Ue([]),o=sp();return dr(F1,{id:o,activeTab:t,registerTab:s=>{r.value.some(({id:c})=>c===s.id)||r.value.push(s),r.value.length===1&&(t.value=s.id)},unregisterTab:s=>{const c=r.value.findIndex(({id:f})=>f===s.id);c>-1&&r.value.splice(c,1),t.value===s.id&&(t.value=r.value[0]?.id??null)}}),(s,c)=>(ne(),ve("div",jve,[X("div",Wve,[(ne(!0),ve(et,null,vn(r.value,f=>(ne(),ve("button",{id:K(Wu).tab(f.id,K(o)),key:f.id,role:"tab","aria-selected":t.value===f.id,"aria-controls":K(Wu).tabpanel(f.id,K(o)),type:"button",class:"aria-[selected=true]:underline underline-offset-4",onClick:d=>t.value=f.id},Me(f.title),9,qve))),128))]),Ft(s.$slots,"default")]))}}),Vve=["id","aria-labelledby","hidden"],Yc=rt({__name:"SmallTabsPane",props:{title:{}},setup(e){const t=e,r=gn(F1);if(!r)throw new Error("TabPane must be used within Tabs");const o=sp(),s=xe(()=>r.activeTab.value===o);return Pi(()=>{r.registerTab({...t,id:o})}),Va(()=>{r.unregisterTab({...t,id:o})}),(c,f)=>(ne(),ve("div",{id:K(Wu).tabpanel(K(o),K(r).id),role:"tabpanel","aria-labelledby":K(Wu).tab(K(o),K(r).id),hidden:!s.value,class:"max-w-full"},[Ft(c.$slots,"default")],8,Vve))}}),H1=rt({__name:"VisualRegressionImageContainer",setup(e){const t=`url("${CSS.escape('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path d="M1 2V0h1v1H0v1z" fill-opacity=".05"/></svg>')}")`;return(r,o)=>(ne(),ve("div",{class:"max-w-full w-fit mx-auto bg-[size:16px_16px] bg-[#fafafa] dark:bg-[#3a3a3a] bg-center p-4 rounded user-select-none outline-0 outline-black dark:outline-white outline-offset-4 outline-solid focus-within:has-focus-visible:outline-2",style:Rt({backgroundImage:t})},[Ft(r.$slots,"default")],4))}}),Gve=["href","referrerPolicy"],Kve=["src"],Vd=rt({__name:"VisualRegressionImage",props:{attachment:{}},setup(e){const t=xe(()=>Hh(e.attachment));return(r,o)=>(ne(),Ve(H1,null,{default:Be(()=>[X("a",{target:"_blank",href:t.value,referrerPolicy:K(R1)(e.attachment)?"no-referrer":void 0},[X("img",{src:t.value},null,8,Kve)],8,Gve)]),_:1}))}}),Xve={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(0%_0%,var(--split)_0%,var(--split)_100%,0%_100%)]","aria-hidden":"true",role:"presentation"},Yve=["src"],Zve={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(var(--split)_0%,100%_0%,100%_100%,var(--split)_100%)]","aria-hidden":"true",role:"presentation"},Jve=["src"],Qve=["id"],eye=["for"],tye=rt({__name:"VisualRegressionSlider",props:{reference:{},actual:{}},setup(e){const t=xe(()=>Hh(e.reference)),r=xe(()=>Hh(e.actual)),o=xe(()=>Math.max(e.reference.width,e.actual.width)),s=xe(()=>Math.max(e.reference.height,e.actual.height)),c=Ue(50),f=sp();return(d,h)=>(ne(),Ve(H1,null,{default:Be(()=>[X("div",{"aria-label":"Image comparison slider showing reference and actual screenshots",class:"relative max-w-full h-full overflow-hidden",style:Rt({"--split":`${c.value}%`,aspectRatio:`${o.value} / ${s.value}`,width:`${o.value}px`})},[X("div",Xve,[X("img",{src:t.value},null,8,Yve)]),X("div",Zve,[X("img",{src:r.value},null,8,Jve)]),h[1]||(h[1]=X("div",{class:"absolute left-[--split] h-full w-[2px] -translate-x-1/2 bg-white shadow-[0_0_3px_rgb(0_0_0/.2),0_0_10px_rgb(0_0_0/.5)] before:content-[''] before:absolute before:top-1/2 before:size-[16px] before:bg-white before:border-[2px] before:border-black before:rounded-full before:-translate-y-1/2 before:translate-x-[calc(-50%+1px)]","aria-hidden":"true",role:"presentation"},null,-1)),ot(X("input",{id:K(f),"onUpdate:modelValue":h[0]||(h[0]=p=>c.value=p),type:"range",min:"0",max:"100",step:"0.1","aria-label":"Adjust slider to compare reference and actual images",class:"absolute inset-0 opacity-0 cursor-col-resize"},null,8,Qve),[[mw,c.value]]),X("output",{for:K(f),class:"sr-only"}," Showing "+Me(c.value)+"% reference, "+Me(100-c.value)+"% actual ",9,eye)],4)]),_:1}))}}),nye=rt({__name:"VisualRegression",props:{regression:{}},setup(e){const t=xe(()=>({diff:e.regression.attachments.find(r=>r.name==="diff"),reference:e.regression.attachments.find(r=>r.name==="reference"),actual:e.regression.attachments.find(r=>r.name==="actual")}));return(r,o)=>(ne(),Ve(Bve,null,{title:Be(()=>[...o[0]||(o[0]=[Je(" Visual Regression ",-1)])]),message:Be(()=>[Je(Me(e.regression.message),1)]),default:Be(()=>[Ne(Uve,null,{default:Be(()=>[t.value.diff?(ne(),Ve(Yc,{key:t.value.diff.path,title:"Diff"},{default:Be(()=>[Ne(Vd,{attachment:t.value.diff},null,8,["attachment"])]),_:1})):He("",!0),t.value.reference?(ne(),Ve(Yc,{key:t.value.reference.path,title:"Reference"},{default:Be(()=>[Ne(Vd,{attachment:t.value.reference},null,8,["attachment"])]),_:1})):He("",!0),t.value.actual?(ne(),Ve(Yc,{key:t.value.actual.path,title:"Actual"},{default:Be(()=>[Ne(Vd,{attachment:t.value.actual},null,8,["attachment"])]),_:1})):He("",!0),t.value.reference&&t.value.actual?(ne(),Ve(Yc,{key:(t.value.reference.path??"")+(t.value.actual.path??""),title:"Slider"},{default:Be(()=>[Ne(tye,{actual:t.value.actual,reference:t.value.reference},null,8,["actual","reference"])]),_:1})):He("",!0)]),_:1})]),_:1}))}}),rye={"h-full":"",class:"scrolls"},iye={key:0},oye={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},sye={flex:"~ gap-2 items-center"},lye={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},aye=["innerHTML"],cye={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},uye={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},fye={class:"flex gap-2","overflow-hidden":""},dye={class:"font-bold","ws-nowrap":"",truncate:""},hye=["href","download"],pye=["onClick"],gye={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},mye={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},vye={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},yye=["onClick"],bye={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},wye={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},xye={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},kye={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},Sye=rt({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=xe(()=>!t.test.result||!t.test.result.errors?.length?null:Rx(wo.value,[t.test])[0]);function o(v){return Qce(t.test,v)}const{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=I1();function h(v){return`${mf(zn.value.root,v.file)}:${v.line}:${v.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),g=xe(()=>Object.entries(t.test.meta).filter(([v])=>!p.has(v)));return(v,b)=>{const w=vr("tooltip");return ne(),ve("div",rye,[r.value?(ne(),ve("div",iye,[X("div",oye,[X("div",sye,[K(Zn)&&e.test.meta?.failScreenshotPath?(ne(),ve(et,{key:0},[ot(Ne(xt,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b[0]||(b[0]=T=>K(f)(e.test))},null,512),[[w,"View screenshot error",void 0,{bottom:!0}]]),ot(Ne(xt,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b[1]||(b[1]=T=>K($1)(e.test))},null,512),[[w,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):He("",!0)]),e.test.result?.htmlError?(ne(),ve("div",lye,[X("pre",{innerHTML:e.test.result.htmlError},null,8,aye)])):e.test.result?.errors?(ne(!0),ve(et,{key:1},vn(e.test.result.errors,(T,L)=>(ne(),Ve(z1,{key:L,"file-id":e.test.file.id,error:T,filename:e.test.file.name,root:K(zn).root},null,8,["file-id","error","filename","root"]))),128)):He("",!0)])])):(ne(),ve("div",cye," The test has passed without any errors ")),e.test.annotations.length?(ne(),ve(et,{key:2},[b[5]||(b[5]=X("h1",{"m-2":""}," Test Annotations ",-1)),(ne(!0),ve(et,null,vn(e.test.annotations,T=>(ne(),ve("div",{key:T.type+T.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",uye,[X("div",fye,[X("span",dye,Me(T.type),1),T.attachment&&!T.attachment.contentType?.startsWith("image/")?(ne(),ve("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:K(Fa)(T.attachment),download:K(P1)(T.message,T.attachment.contentType)},[...b[4]||(b[4]=[X("span",{class:"i-carbon:download block"},null,-1),Je(" Download ",-1)])],8,hye)):He("",!0)]),X("div",null,[T.location&&T.location.file===e.test.file.filepath?ot((ne(),ve("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:L=>o(T.location)},[Je(Me(h(T.location)),1)],8,pye)),[[w,"Open in Editor",void 0,{bottom:!0}]]):T.location&&T.location.file!==e.test.file.filepath?(ne(),ve("span",gye,Me(h(T.location)),1)):He("",!0)])]),X("div",mye,Me(T.message),1),Ne(zve,{annotation:T},null,8,["annotation"])]))),128))],64)):He("",!0),e.test.artifacts.length?(ne(),ve(et,{key:3},[b[6]||(b[6]=X("h1",{"m-2":""}," Test Artifacts ",-1)),(ne(!0),ve(et,null,vn(e.test.artifacts,(T,L)=>(ne(),ve("div",{key:T.type+L,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[X("div",vye,[X("div",null,[T.location&&T.location.file===e.test.file.filepath?ot((ne(),ve("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:P=>o(T.location)},[Je(Me(h(T.location)),1)],8,yye)),[[w,"Open in Editor",void 0,{bottom:!0}]]):T.location&&T.location.file!==e.test.file.filepath?(ne(),ve("span",bye,Me(h(T.location)),1)):He("",!0)])]),T.type==="internal:toMatchScreenshot"&&T.kind==="visual-regression"?(ne(),Ve(nye,{key:0,regression:T},null,8,["regression"])):He("",!0)]))),128))],64)):He("",!0),g.value.length?(ne(),ve(et,{key:4},[b[7]||(b[7]=X("h1",{"m-2":""}," Test Meta ",-1)),X("div",wye,[(ne(!0),ve(et,null,vn(g.value,([T,L])=>(ne(),ve(et,{key:T},[X("div",xye,Me(T),1),X("pre",kye,Me(L),1)],64))),128))])],64)):He("",!0),K(Zn)?(ne(),Ve(Xp,{key:5,modelValue:K(c),"onUpdate:modelValue":b[3]||(b[3]=T=>Tt(c)?c.value=T:null),direction:"right"},{default:Be(()=>[K(s)?(ne(),Ve(dp,{key:0},{default:Be(()=>[Ne(D1,{file:K(s).file.filepath,name:K(s).name,url:K(d),onClose:b[2]||(b[2]=T=>c.value=!1)},null,8,["file","name","url"])]),_:1})):He("",!0)]),_:1},8,["modelValue"])):He("",!0)])}}}),_ye=Ri(Sye,[["__scopeId","data-v-61d59618"]]),Tye={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Cye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Eye={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Aye={"flex-1":"","font-light":"","overflow-hidden":"","text-sm":"",flex:""},Lye={"op-50":"",truncate:""},Mye=["title"],Nye={class:"flex text-lg"},Oye={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Pye={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Rye={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},$ye={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Iye=["flex-1"],E0=rt({__name:"FileDetails",setup(e){const t=Ue({nodes:[],links:[]}),r=Ue(!1),o=Ue(!1),s=Ue(!1),c=Ue(void 0),f=Ue(!0),d=xe(()=>ki.value?ft.state.idMap.get(ki.value):void 0),h=xe(()=>{const D=Gt.value;if(!(!D||!D.filepath))return{filepath:D.filepath,projectName:D.file.projectName||""}}),p=xe(()=>Gt.value&&Lp(Gt.value)),g=xe(()=>!!Gt.value?.meta?.typecheck);function v(){const D=Gt.value?.filepath;D&&fetch(`/__open-in-editor?file=${encodeURIComponent(D)}`)}function b(D){D==="graph"&&(o.value=!0),pn.value=D}const w=xe(()=>Gx.value?.reduce((D,{size:V})=>D+V,0)??0);function T(D){r.value=D}const L=/[/\\]node_modules[/\\]/;async function P(D=!1){if(!(s.value||h.value?.filepath===c.value&&!D)){s.value=!0,await Et();try{const V=h.value;if(!V){s.value=!1;return}if(D||!c.value||V.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let ee=await ft.rpc.getModuleGraph(V.projectName,V.filepath,!!Zn);f.value&&(gr&&(ee=typeof window.structuredClone<"u"?window.structuredClone(ee):AL(ee)),ee.inlined=ee.inlined.filter(ie=>!L.test(ie)),ee.externalized=ee.externalized.filter(ie=>!L.test(ie))),t.value=Mme(ee,V.filepath),c.value=V.filepath}b("graph")}finally{await new Promise(V=>setTimeout(V,100)),s.value=!1}}}Sp(()=>[h.value,pn.value,f.value],([,D,V],ee)=>{D==="graph"&&P(ee&&V!==ee[2])},{debounce:100,immediate:!0});const M=xe(()=>{const D=Gt.value?.file.projectName||"";return Le.colors.get(D)||ou(Gt.value?.file.projectName)}),R=xe(()=>bx(M.value)),I=xe(()=>{const D=ki.value;if(!D)return Gt.value?.name;const V=[];let ee=ft.state.idMap.get(D);for(;ee;)V.push(ee.name),ee=ee.suite;return V.reverse().join(" > ")}),E=xe(()=>{const D=ki.value;return D?(ft.state.idMap.get(D)?.tags||[]).map(ee=>({name:ee,description:VL.value[ee]?.description,bg:ou(ee,!0),border:ou(ee),text:"white"})):[]});return(D,V)=>{const ee=vr("tooltip");return K(Gt)?(ne(),ve("div",Tye,[X("div",null,[X("div",Cye,[Ne(N1,{state:K(Gt).result?.state,mode:K(Gt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),g.value?ot((ne(),ve("div",Eye,null,512)),[[ee,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):He("",!0),K(Gt)?.file.projectName?(ne(),ve("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:Rt({backgroundColor:M.value,color:R.value}),"cursor-default":""},Me(K(Gt).file.projectName),5)):He("",!0),X("div",Aye,[X("span",Lye,Me(I.value),1),(ne(!0),ve(et,null,vn(E.value,ie=>ot((ne(),ve("span",{key:ie.name,class:"rounded-full ml-2 px-2 text-xs font-light",style:Rt({backgroundColor:ie.bg,color:ie.text,border:`1px solid ${ie.border}`}),title:ie.description,"cursor-default":"",flex:"","items-center":""},[Je(Me(ie.name),1)],12,Mye)),[[ee,ie.description,void 0,{bottom:!0}]])),128))]),X("div",Nye,[K(gr)?He("",!0):ot((ne(),Ve(xt,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!K(Gt)?.filepath,onClick:v},null,8,["disabled"])),[[ee,"Open in editor",void 0,{bottom:!0}]])])]),X("div",Oye,[X("button",{"tab-button":"",class:st(["flex items-center gap-2",{"tab-button-active":K(pn)==null}]),"data-testid":"btn-report",onClick:V[0]||(V[0]=ie=>b(null))},[...V[5]||(V[5]=[X("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Je(" Report ",-1)])],2),X("button",{"tab-button":"","data-testid":"btn-graph",class:st(["flex items-center gap-2",{"tab-button-active":K(pn)==="graph"}]),onClick:V[1]||(V[1]=ie=>b("graph"))},[s.value?(ne(),ve("span",Pye)):(ne(),ve("span",Rye)),V[6]||(V[6]=Je(" Module Graph ",-1))],2),X("button",{"tab-button":"","data-testid":"btn-code",class:st(["flex items-center gap-2",{"tab-button-active":K(pn)==="editor"}]),onClick:V[2]||(V[2]=ie=>b("editor"))},[V[7]||(V[7]=X("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),Je(" "+Me(r.value?"* ":"")+"Code ",1)],2),X("button",{"tab-button":"","data-testid":"btn-console",class:st(["flex items-center gap-2",{"tab-button-active":K(pn)==="console",op20:K(pn)!=="console"&&w.value===0}]),onClick:V[3]||(V[3]=ie=>b("console"))},[V[8]||(V[8]=X("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),Je(" Console ("+Me(w.value)+") ",1)],2)])]),X("div",$ye,[o.value?(ne(),ve("div",{key:0,"flex-1":K(pn)==="graph"&&""},[ot(Ne(gve,{modelValue:f.value,"onUpdate:modelValue":V[4]||(V[4]=ie=>f.value=ie),graph:t.value,"data-testid":"graph","project-name":K(Gt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[ao,K(pn)==="graph"&&!s.value]])],8,Iye)):He("",!0),K(pn)==="editor"?(ne(),Ve(Ume,{key:K(Gt).id,file:K(Gt),"data-testid":"editor",onDraft:T},null,8,["file"])):K(pn)==="console"?(ne(),Ve(jme,{key:2,file:K(Gt),"data-testid":"console"},null,8,["file"])):!K(pn)&&!d.value&&K(Gt)?(ne(),Ve($ve,{key:3,file:K(Gt),"data-testid":"report"},null,8,["file"])):!K(pn)&&d.value?(ne(),Ve(_ye,{key:4,test:d.value,"data-testid":"report"},null,8,["test"])):He("",!0)])])):He("",!0)}}}),Dye=""+new URL("../favicon.svg",import.meta.url).href;function zye(){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 du;function Bh(){Bh.init||(Bh.init=!0,du=zye()!==-1)}var kf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Bh(),Et(()=>{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",du&&this.$el.appendChild(e),e.data="about:blank",du||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&&(!du&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Fye=Cb();_b("data-v-b329ee4c");const Hye={class:"resize-observer",tabindex:"-1"};Tb();const Bye=Fye((e,t,r,o,s,c)=>(ne(),Ve("div",Hye)));kf.render=Bye;kf.__scopeId="data-v-b329ee4c";kf.__file="src/components/ResizeObserver.vue";function hu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hu=function(t){return typeof t}:hu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hu(e)}function jye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wye(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function qye(e,t,r){return t&&Wye(e.prototype,t),e}function A0(e){return Uye(e)||Vye(e)||Gye(e)||Kye()}function Uye(e){if(Array.isArray(e))return jh(e)}function Vye(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Gye(e,t){if(e){if(typeof e=="string")return jh(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 jh(e,t)}}function jh(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 Kye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
51
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xye(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Yye(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v<p;v++)g[v-1]=arguments[v];if(c=g,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(A0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(A0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function B1(e,t){if(e===t)return!0;if(hu(e)==="object"){for(var r in e)if(!B1(e[r],t[r]))return!1;return!0}return!1}var Zye=(function(){function e(t,r,o){jye(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return qye(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Xye(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=Yye(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(v){return v.isIntersecting});p&&(h=p)}if(s.callback){var g=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(g===s.oldResult)return;s.oldResult=g,s.callback(g,h)}},this.options.intersection),Et(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 j1(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 Zye(e,o,r);e._vue_visibilityState=s}}function Jye(e,t,r){var o=t.value,s=t.oldValue;if(!B1(o,s)){var c=e._vue_visibilityState;if(!o){W1(e);return}c?c.createObserver(o,r):j1(e,{value:o},r)}}function W1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Qye={beforeMount:j1,updated:Jye,unmounted:W1},e0e={itemsLimit:1e3},t0e=/(auto|scroll)/;function q1(e,t){return e.parentNode===null?t:q1(e.parentNode,t.concat([e]))}var Gd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},n0e=function(t){return Gd(t,"overflow")+Gd(t,"overflow-y")+Gd(t,"overflow-x")},r0e=function(t){return t0e.test(n0e(t))};function L0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=q1(e.parentNode,[]),r=0;r<t.length;r+=1)if(r0e(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function Wh(e){"@babel/helpers - typeof";return Wh=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},Wh(e)}var i0e={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 o0e(){return this.items.length&&Wh(this.items[0])!=="object"}var qh=!1;if(typeof window<"u"){qh=!1;try{var s0e=Object.defineProperty({},"passive",{get:function(){qh=!0}});window.addEventListener("test",null,s0e)}catch{}}let l0e=0;var Yp={name:"RecycleScroller",components:{ResizeObserver:kf},directives:{ObserveVisibility:Qye},props:{...i0e,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:o0e,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=Qu({id:l0e++,index:t,used:!0,key:o,type:s}),f=rp({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,g=this.sizes,v=this.$_views,b=this.$_unusedViews,w=this.pool,T=this.itemIndexByKey;let L,P,M,R,I;if(!p)L=P=R=I=M=0;else if(this.$_prerender)L=R=0,P=I=Math.min(this.prerender,h.length),M=null;else{const G=this.getScroll();if(t){let N=G.start-this.$_lastUpdateScrollPosition;if(N<0&&(N=-N),r===null&&N<c||N<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=G.start;const j=this.buffer;G.start-=j,G.end+=j;let O=0;if(this.$refs.before&&(O=this.$refs.before.scrollHeight,G.start-=O),this.$refs.after){const N=this.$refs.after.scrollHeight;G.end+=N}if(r===null){let N,C=0,k=p-1,F=~~(p/2),$;do $=F,N=g[F].accumulator,N<G.start?C=F:F<p-1&&g[F+1].accumulator>G.start&&(k=F),F=~~((C+k)/2);while(F!==$);for(F<0&&(F=0),L=F,M=g[p-1].accumulator,P=F;P<p&&g[P].accumulator<G.end;P++);for(P===-1?P=h.length-1:(P++,P>p&&(P=p)),R=L;R<p&&O+g[R].accumulator<G.start;R++);for(I=R;I<p&&O+g[I].accumulator<G.end;I++);}else{L=~~(G.start/r*o);const N=L%o;L-=N,P=Math.ceil(G.end/r*o),R=Math.max(0,Math.floor((G.start-O)/r*o)),I=Math.floor((G.end-O)/r*o),L<0&&(L=0),P>p&&(P=p),R<0&&(R=0),I>p&&(I=p),M=Math.ceil(p/o)*r}}P-L>e0e.itemsLimit&&this.itemsLimitError(),this.totalSize=M;let E;const D=L<=this.$_endIndex&&P>=this.$_startIndex;if(D)for(let G=0,j=w.length;G<j;G++)E=w[G],E.nr.used&&(e&&(E.nr.index=T[E.item[d]]),(E.nr.index==null||E.nr.index<L||E.nr.index>=P)&&this.unuseView(E));const V=D?null:new Map;let ee,ie,Y;for(let G=L;G<P;G++){ee=h[G];const j=d?ee[d]:ee;if(j==null)throw new Error(`Key is ${j} on item (keyField is '${d}')`);if(E=v.get(j),!r&&!g[G].size){E&&this.unuseView(E);continue}ie=ee[f];let O=b.get(ie),N=!1;if(!E)D?O&&O.length?E=O.pop():E=this.addView(w,G,ee,j,ie):(Y=V.get(ie)||0,(!O||Y>=O.length)&&(E=this.addView(w,G,ee,j,ie),this.unuseView(E,!0),O=b.get(ie)),E=O[Y],V.set(ie,Y+1)),v.delete(E.nr.key),E.nr.used=!0,E.nr.index=G,E.nr.key=j,E.nr.type=ie,v.set(j,E),N=!0;else if(!E.nr.used&&(E.nr.used=!0,N=!0,O)){const C=O.indexOf(E);C!==-1&&O.splice(C,1)}E.item=ee,N&&(G===h.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),r===null?(E.position=g[G-1].accumulator,E.offset=0):(E.position=Math.floor(G/o)*r,E.offset=G%o*s)}return this.$_startIndex=L,this.$_endIndex=P,this.emitUpdate&&this.$emit("update",L,P,R,I),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:D}},getListenerTarget(){let e=L0(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,qh?{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=L0(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 a0e={key:0,ref:"before",class:"vue-recycle-scroller__slot"},c0e={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function u0e(e,t,r,o,s,c){const f=es("ResizeObserver"),d=vr("observe-visibility");return ot((ne(),ve("div",{class:st(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(ne(),ve("div",a0e,[Ft(e.$slots,"before")],512)):He("v-if",!0),(ne(),Ve(rh(r.listTag),{ref:"wrapper",style:Rt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:st(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:Be(()=>[(ne(!0),ve(et,null,vn(s.pool,h=>(ne(),Ve(rh(r.itemTag),_i({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}]]},gT(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:Be(()=>[Ft(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),Ft(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(ne(),ve("div",c0e,[Ft(e.$slots,"after")],512)):He("v-if",!0),Ne(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}Yp.render=u0e;Yp.__file="src/components/RecycleScroller.vue";function f0e(e,t,r){const o=xe(()=>Sh.value?!1:!it.onlyTests),s=xe(()=>Mr.value===""),c=Ue(Mr.value),f=xe(()=>Vo.value!==ts),d=xe(()=>f.value||co.value==="default");Sp(()=>Mr.value,T=>{c.value=T?.trim()??""},{debounce:256});function h(T){Mr.value="",T&&e.value?.focus()}function p(T){it.failed=!1,it.success=!1,it.skipped=!1,it.onlyTests=!1,T&&e.value?.focus()}function g(T){Vo.value=ts,T&&t.value?.focus()}function v(T){co.value="default",T&&r.value?.focus()}function b(){p(!1),h(!0),g(!1),v(!1)}function w(T,L,P,M,R,I,E){al.value&&(Kt.value.search=T?.trim()??"",Kt.value.failed=L,Kt.value.success=P,Kt.value.skipped=M,Kt.value.onlyTests=R,Kt.value.project=I,Kt.value.projectSort=E==="default"?void 0:E)}return kt(()=>[c.value,it.failed,it.success,it.skipped,it.onlyTests,Vo.value,co.value],([T,L,P,M,R,I,E])=>{w(T,L,P,M,R,I,E),Le.filterNodes()},{flush:"post"}),kt(()=>zr.value.length,T=>{T&&(Kt.value.expandAll=void 0)},{flush:"post"}),{initialized:al,filter:it,search:Mr,disableFilter:o,isFiltered:kx,isFilteredByStatus:Sh,disableClearSearch:s,clearAll:b,clearSearch:h,clearFilter:p,filteredFiles:vf,testsTotal:zL,uiEntries:Jn,searchMatcher:Qi,enableProjects:wx,disableClearProjects:RL,currentProject:Vo,currentProjectName:Cp,clearProject:g,projectSort:co,disableProjectSort:f,clearProjectSort:v,disableClearProjectSort:d}}const d0e=["open"],h0e=rt({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ue(!0);return(r,o)=>(ne(),ve("div",{open:t.value,class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[X("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:st(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Ft(r.$slots,"summary",{open:t.value}),o[2]||(o[2]=X("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Ft(r.$slots,"default")],40,d0e))}}),p0e=["disabled"],g0e={"flex-1":"","ms-2":"","select-none":""},Zc=rt({__name:"FilterStatus",props:wa({label:{},disabled:{type:Boolean,default:!1}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=of(e,"modelValue");function r(){e.disabled||(t.value=!t.value)}return(o,s)=>(ne(),ve("label",_i({class:["font-light text-sm checkbox flex items-center py-1 text-sm w-full gap-y-1 mb-1px",e.disabled?"cursor-not-allowed op50":"cursor-pointer"]},o.$attrs,{onClick:nu(r,["prevent"])}),[X("span",{class:st([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),ot(X("input",{"onUpdate:modelValue":s[0]||(s[0]=c=>t.value=c),type:"checkbox",disabled:e.disabled,"sr-only":""},null,8,p0e),[[vw,t.value]]),X("span",g0e,Me(e.label),1)],16))}}),m0e={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},v0e=rt({__name:"IconAction",props:{icon:{}},setup(e){return(t,r)=>(ne(),ve("button",m0e,[X("span",{block:"",class:st([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),y0e=["aria-label","data-current"],b0e={key:1,"w-4":""},w0e={flex:"","items-end":"","gap-2":"","overflow-hidden":""},x0e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},k0e={"text-sm":"",truncate:"","font-light":""},S0e=["text","innerHTML"],_0e={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},T0e={"gap-1":"","justify-end":"","items-center":"","flex-grow-1":"","pl-1":"",class:"test-actions"},C0e={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},E0e={key:1},A0e=rt({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=xe(()=>ft.state.idMap.get(e.taskId)),r=xe(()=>{if(gr)return!1;const P=t.value;return P&&Lp(P)});function o(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?Le.collapseNode(e.taskId):Le.expandNode(e.taskId)}async function s(P){e.onItemClick?.(P),js.value&&($u.value=!0,await Et()),e.type==="file"?await Ip([P.file]):await Pue(P)}function c(P){return ft.rpc.updateSnapshot(P.file)}const f=xe(()=>e.indent<=0?[]:Array.from({length:e.indent},(P,M)=>`${e.taskId}-${M}`)),d=xe(()=>{const P=f.value,M=[];return(e.type==="file"||e.type==="suite")&&M.push("min-content"),M.push("min-content"),e.type==="suite"&&e.typecheck&&M.push("min-content"),M.push("minmax(0, 1fr)"),M.push("min-content"),`grid-template-columns: ${P.map(()=>"1rem").join(" ")} ${M.join(" ")};`}),h=xe(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=xe(()=>xx(e.name)),g=xe(()=>{const P=DL.value,M=p.value;return P?M.replace(P,R=>`<span class="highlight">${R}</span>`):M}),v=xe(()=>e.type!=="file"&&e.disableTaskLocation),b=xe(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=xe(()=>v.value?"color-red5 dark:color-#f43f5e":null);function T(){const P=t.value;e.type==="file"?e.onItemClick?.(P):Dx(P)}const L=xe(()=>bx(e.projectNameColor));return(P,M)=>{const R=vr("tooltip");return t.value?(ne(),ve("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:Rt(d.value),"aria-label":e.name,"data-current":e.current,"data-testid":"explorer-item",onClick:M[2]||(M[2]=I=>o())},[e.indent>0?(ne(!0),ve(et,{key:0},vn(f.value,I=>(ne(),ve("div",{key:I,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):He("",!0),e.type==="file"||e.type==="suite"?(ne(),ve("div",b0e,[X("div",{class:st(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):He("",!0),Ne(N1,{state:e.state,mode:t.value.mode,"failed-snapshot":r.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),X("div",w0e,[e.type==="file"&&e.typecheck?ot((ne(),ve("div",x0e,null,512)),[[R,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):He("",!0),X("span",k0e,[e.type==="file"&&e.projectName?(ne(),ve("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:Rt({backgroundColor:e.projectNameColor,color:L.value})},Me(e.projectName),5)):He("",!0),X("span",{text:e.state==="fail"?"red-500":"",innerHTML:g.value},null,8,S0e)]),typeof e.duration=="number"?(ne(),ve("span",_0e,Me(e.duration>0?e.duration:"< 1")+"ms ",1)):He("",!0)]),X("div",T0e,[!K(gr)&&r.value?ot((ne(),Ve(v0e,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:M[0]||(M[0]=nu(I=>c(t.value),["prevent","stop"]))},null,512)),[[R,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):He("",!0),Ne(K(ro),{placement:"bottom",class:st(["w-1.4em h-1.4em op100 rounded flex",w.value])},{popper:Be(()=>[v.value?(ne(),ve("div",C0e,[M[5]||(M[5]=X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),X("div",null,[Je(Me(b.value)+": this feature is not available, you have disabled ",1),M[3]||(M[3]=X("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),M[4]||(M[4]=Je(" in your configuration file.",-1))]),M[6]||(M[6]=X("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(ne(),ve("div",E0e,Me(b.value),1))]),default:Be(()=>[Ne(xt,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:nu(T,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),K(gr)?He("",!0):ot((ne(),Ve(xt,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green5":"",onClick:M[1]||(M[1]=nu(I=>s(t.value),["prevent","stop"]))},null,8,["title"])),[[R,h.value,void 0,{bottom:!0}]])])],12,y0e)):He("",!0)}}}),L0e=Ri(A0e,[["__scopeId","data-v-877c9c07"]]),M0e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},N0e={key:0,p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2 gap-y-1","items-center":""},O0e={class:"relative flex-1"},P0e=["value"],R0e=["value"],$0e=["disabled"],I0e={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},D0e=["op"],z0e={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},F0e={"text-red5":""},H0e={"text-yellow5":""},B0e={"text-green5":""},j0e={class:"text-purple5:50"},W0e={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},q0e={key:0,"text-red":"","text-center":""},U0e={key:1,op30:""},V0e=["disabled"],G0e=["disabled"],K0e={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},X0e=rt({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=xe(()=>zn.value.includeTaskLocation),s=Ue(),c=Ue(),f=Ue(),{initialized:d,filter:h,search:p,disableFilter:g,isFiltered:v,isFilteredByStatus:b,disableClearSearch:w,clearAll:T,clearSearch:L,clearFilter:P,filteredFiles:M,testsTotal:R,uiEntries:I,enableProjects:E,disableClearProjects:D,currentProject:V,currentProjectName:ee,clearProject:ie,disableProjectSort:Y,clearProjectSort:G,disableClearProjectSort:j,searchMatcher:O}=f0e(s,c,f),N=Ue("grid-cols-2"),C=Ue("grid-col-span-2"),k=Ue();return Jw(()=>k.value,([{contentRect:F}])=>{F.width<420?(N.value="grid-cols-2",C.value="grid-col-span-2"):(N.value="grid-cols-4",C.value="grid-col-span-4")}),(F,$)=>{const ae=vr("tooltip");return ne(),ve("div",{ref_key:"testExplorerRef",ref:k,h:"full",flex:"~ col"},[X("div",null,[X("div",M0e,[Ft(F.$slots,"header",{filteredFiles:K(v)||K(b)?K(M):void 0})]),K(E)?(ne(),ve("div",N0e,[$[20]||($[20]=X("div",{class:"i-carbon:workspace","flex-shrink-0":""},null,-1)),$[21]||($[21]=X("label",{for:"project-select","text-sm":""}," Projects ",-1)),X("div",O0e,[ot(X("select",{id:"project-select",ref_key:"selectProjectRef",ref:c,"onUpdate:modelValue":$[0]||($[0]=ce=>Tt(V)?V.value=ce:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[X("option",{value:K(ts),class:"text-base bg-base"}," All Projects ",8,P0e),(ne(!0),ve(et,null,vn(K($p),ce=>(ne(),ve("option",{key:ce,value:ce,class:"text-base bg-base"},Me(ce),9,R0e))),128))],512),[[$v,K(V)]]),$[17]||($[17]=X("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),ot(Ne(xt,{disabled:K(D),title:"Clear project filter",icon:"i-carbon:filter-remove",onClickPassive:$[1]||($[1]=ce=>K(ie)(!0))},null,8,["disabled"]),[[ae,"Clear project filter",void 0,{bottom:!0}]]),$[22]||($[22]=X("div",{class:"i-carbon:arrows-vertical","flex-shrink-0":""},null,-1)),$[23]||($[23]=X("label",{for:"project-sort","text-sm":""}," Sort by ",-1)),X("div",{class:st(["relative flex-1",{"op-50 cursor-not-allowed":K(Y)}])},[ot(X("select",{id:"project-sort",ref_key:"sortProjectRef",ref:f,"onUpdate:modelValue":$[2]||($[2]=ce=>Tt(co)?co.value=ce:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none",disabled:K(Y)},[...$[18]||($[18]=[X("option",{value:"default",class:"text-base bg-base"}," Default ",-1),X("option",{value:"asc",class:"text-base bg-base"}," Project A-Z ",-1),X("option",{value:"desc",class:"text-base bg-base"}," Project Z-A ",-1)])],8,$0e),[[$v,K(co)]]),$[19]||($[19]=X("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))],2),ot(Ne(xt,{disabled:K(j),title:"Reset sort",icon:"i-carbon:filter-reset",onClickPassive:$[3]||($[3]=ce=>K(G)(!0))},null,8,["disabled"]),[[ae,"Reset sort",void 0,{bottom:!0}]])])):He("",!0),X("div",I0e,[$[24]||($[24]=X("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),ot(X("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":$[4]||($[4]=ce=>Tt(p)?p.value=ce:null),placeholder:"Search... (e.g. test name, tag:expression)",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:K(p).length?"100":"50",onKeydown:[$[5]||($[5]=dh(ce=>K(L)(!1),["esc"])),$[6]||($[6]=dh(ce=>r("run",K(v)||K(b)?K(M):void 0),["enter"]))]},null,40,D0e),[[mw,K(p)]]),ot(Ne(xt,{disabled:K(w),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:$[7]||($[7]=ce=>K(L)(!0))},null,8,["disabled"]),[[ae,"Clear search",void 0,{bottom:!0}]])]),X("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:st(N.value)},[X("div",{class:st(C.value),flex:"~ gap-2 items-center"},[$[25]||($[25]=X("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),$[26]||($[26]=X("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),ot(Ne(xt,{disabled:K(g),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:$[8]||($[8]=ce=>K(P)(!1))},null,8,["disabled"]),[[ae,"Clear Filter",void 0,{bottom:!0}]])],2),Ne(Zc,{modelValue:K(h).failed,"onUpdate:modelValue":$[9]||($[9]=ce=>K(h).failed=ce),label:"Fail"},null,8,["modelValue"]),Ne(Zc,{modelValue:K(h).success,"onUpdate:modelValue":$[10]||($[10]=ce=>K(h).success=ce),label:"Pass"},null,8,["modelValue"]),Ne(Zc,{modelValue:K(h).skipped,"onUpdate:modelValue":$[11]||($[11]=ce=>K(h).skipped=ce),label:"Skip"},null,8,["modelValue"]),Ne(Zc,{modelValue:K(h).onlyTests,"onUpdate:modelValue":$[12]||($[12]=ce=>K(h).onlyTests=ce),label:"Only Tests"},null,8,["modelValue"])],2)]),X("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:$[16]||($[16]=(...ce)=>K(ry)&&K(ry)(...ce))},[Ne(h0e,null,pT({default:Be(()=>[(K(v)||K(b)||K(ee))&&K(I).length===0?(ne(),ve(et,{key:0},[K(d)?(ne(),ve("div",W0e,[K(O).error?(ne(),ve("div",q0e,Me(K(O).error),1)):(ne(),ve("div",U0e," No matched test ")),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(K(w)?null:"hover:op100"),disabled:K(w),onClickPassive:$[13]||($[13]=ce=>K(L)(!0))}," Clear Search ",42,V0e),X("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(K(g)?null:"hover:op100"),disabled:K(g),onClickPassive:$[14]||($[14]=ce=>K(P)(!0))}," Clear Filter ",42,G0e),X("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:$[15]||($[15]=(...ce)=>K(T)&&K(T)(...ce))}," Clear All ",32)])):(ne(),ve("div",K0e,[...$[29]||($[29]=[X("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),X("div",{op30:""}," Loading... ",-1)])]))],64)):(ne(),Ve(K(Yp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:K(I),buffer:100},{default:Be(({item:ce})=>[Ne(L0e,{class:st(["h-28px m-0 p-0",K(ki)===ce.id||!K(ki)&&K(xo)===ce.id?"bg-active":""]),"task-id":ce.id,expandable:ce.expandable,type:ce.type,current:K(xo)===ce.id,indent:ce.indent,name:ce.name,typecheck:ce.typecheck===!0,"project-name":ce.projectName??"","project-name-color":ce.projectNameColor??"",state:ce.state,duration:ce.duration,opened:ce.expanded,"disable-task-location":!o.value,"on-item-click":e.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[K(d)?{name:"summary",fn:Be(()=>[X("div",z0e,[X("span",F0e," FAIL ("+Me(K(R).failed)+") ",1),$[27]||($[27]=X("span",null,"/",-1)),X("span",H0e," RUNNING ("+Me(K(R).running)+") ",1),X("span",B0e," PASS ("+Me(K(R).success)+") ",1),$[28]||($[28]=X("span",null,"/",-1)),X("span",j0e," SKIP ("+Me(K(h).onlyTests?K(R).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Y0e={class:"flex text-lg"},Z0e=rt({__name:"Navigation",setup(e){function t(){return ft.rpc.updateSnapshot()}const r=xe(()=>wo.value?"light":"dark");async function o(f){js.value&&($u.value=!0,await Et(),ko.value&&(Iu(!0),await Et())),f?.length?await Ip(f):await Nue()}function s(){Le.collapseAllNodes()}function c(){Le.expandAllNodes()}return(f,d)=>{const h=vr("tooltip");return ne(),Ve(X0e,{border:"r base","on-item-click":K(tue),nested:!0,onRun:o},{header:Be(({filteredFiles:p})=>[d[8]||(d[8]=X("img",{"w-6":"","h-6":"",src:Dye,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=X("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),X("div",Y0e,[ot(Ne(xt,{title:"Collapse tests",disabled:!K(al),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=g=>s())},null,8,["disabled"]),[[ao,!K(Ty)],[h,"Collapse tests",void 0,{bottom:!0}]]),ot(Ne(xt,{disabled:!K(al),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=g=>c())},null,8,["disabled"]),[[ao,K(Ty)],[h,"Expand tests",void 0,{bottom:!0}]]),ot(Ne(xt,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=g=>K(Iu)(!0))},null,512),[[ao,K(Ch)&&!K(js)||!K(Ys)],[h,"Dashboard",void 0,{bottom:!0}]]),K(Ch)&&!K(js)?(ne(),Ve(K(ro),{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:Be(()=>[...d[6]||(d[6]=[X("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[X("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),X("div",null,"Coverage enabled but missing html reporter."),X("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:Be(()=>[d[7]||(d[7]=X("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):He("",!0),K(js)?ot((ne(),Ve(xt,{key:1,disabled:K($u),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=g=>K(nue)())},null,8,["disabled"])),[[ao,!K(ko)],[h,"Coverage",void 0,{bottom:!0}]]):He("",!0),K(Le).summary.failedSnapshot&&!K(gr)?ot((ne(),Ve(xt,{key:2,icon:"i-carbon:result-old",disabled:!K(Le).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=g=>K(Le).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[h,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):He("",!0),K(gr)?He("",!0):ot((ne(),Ve(xt,{key:3,disabled:p?.length===0,icon:"i-carbon:play",onClick:g=>o(p)},null,8,["disabled","onClick"])),[[h,p?p.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),ot(Ne(xt,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=g=>K(ML)())},null,512),[[h,`Toggle to ${r.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),J0e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Q0e=rt({__name:"ProgressBar",setup(e){const{width:t}=Qw(),r=xe(()=>[Le.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!Hs.value&&"in-progress"].filter(Boolean).join(" ")),o=xe(()=>{const d=Le.summary.files;return d>0?t.value*Le.summary.filesSuccess/d:0}),s=xe(()=>{const d=Le.summary.files;return d>0?t.value*Le.summary.filesFailed/d:0}),c=xe(()=>Le.summary.files-Le.summary.filesFailed-Le.summary.filesSuccess),f=xe(()=>{const d=Le.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(ne(),ve("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:st(r.value)},[X("div",J0e,[X("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:st(r.value),style:Rt(`width: ${s.value}px;`)}," ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:st(r.value),style:Rt(`left: ${s.value}px; width: ${o.value}px;`)}," ",6),X("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:st(r.value),style:Rt(`left: ${o.value+s.value}px; width: ${f.value}px;`)}," ",6)])],2))}}),ebe=Ri(Q0e,[["__scopeId","data-v-5320005b"]]),tbe={"h-screen":"","w-screen":"",overflow:"hidden"},nbe=rt({__name:"index",setup(e){const t=eue(),r=Hc(({panes:g})=>{h(),d(g)},0),o=Hc(({panes:g})=>{g.forEach((v,b)=>{Zs.value[b]=v.size}),f(g),p()},0),s=Hc(({panes:g})=>{g.forEach((v,b)=>{mo.value[b]=v.size}),d(g),p()},0),c=Hc(({panes:g})=>{f(g),h()},0);function f(g){Lt.navigation=g[0].size,Lt.details.size=g[1].size}function d(g){Lt.details.browser=g[0].size,Lt.details.main=g[1].size}function h(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="none")}function p(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="")}return(g,v)=>(ne(),ve(et,null,[Ne(ebe),X("div",tbe,[Ne(K(cy),{class:"pt-4px",onResized:K(o),onResize:K(c)},{default:Be(()=>[Ne(K(Wc),{size:K(Zs)[0]},{default:Be(()=>[Ne(Z0e)]),_:1},8,["size"]),Ne(K(Wc),{size:K(Zs)[1]},{default:Be(()=>[K(Zn)?(ne(),Ve(K(cy),{id:"details-splitpanes",key:"browser-detail",onResize:K(r),onResized:K(s)},{default:Be(()=>[Ne(K(Wc),{size:K(mo)[0],"min-size":"10"},{default:Be(()=>[v[0]||(il(-1,!0),(v[0]=Ne(que)).cacheIndex=0,il(1),v[0])]),_:1},8,["size"]),Ne(K(Wc),{size:K(mo)[1]},{default:Be(()=>[K(t)?(ne(),Ve(t0,{key:"summary"})):K(ko)?(ne(),Ve(e0,{key:"coverage",src:K(Zy)},null,8,["src"])):(ne(),Ve(E0,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(ne(),Ve(cC,{key:"ui-detail"},{default:Be(()=>[K(t)?(ne(),Ve(t0,{key:"summary"})):K(ko)?(ne(),Ve(e0,{key:"coverage",src:K(Zy)},null,8,["src"])):(ne(),Ve(E0,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Ne(Gue)],64))}}),rbe=[{name:"index",path:"/",component:nbe,props:!0}];/*!
|
|
52
|
-
* vue-router v4.6.4
|
|
53
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
54
|
-
* @license MIT
|
|
55
|
-
*/const Fs=typeof document<"u";function U1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ibe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&U1(e.default)}const bt=Object.assign;function Kd(e,t){const r={};for(const o in t){const s=t[o];r[o]=Fr(s)?s.map(e):e(s)}return r}const ga=()=>{},Fr=Array.isArray;function M0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}const V1=/#/g,obe=/&/g,sbe=/\//g,lbe=/=/g,abe=/\?/g,G1=/\+/g,cbe=/%5B/g,ube=/%5D/g,K1=/%5E/g,fbe=/%60/g,X1=/%7B/g,dbe=/%7C/g,Y1=/%7D/g,hbe=/%20/g;function Zp(e){return e==null?"":encodeURI(""+e).replace(dbe,"|").replace(cbe,"[").replace(ube,"]")}function pbe(e){return Zp(e).replace(X1,"{").replace(Y1,"}").replace(K1,"^")}function Uh(e){return Zp(e).replace(G1,"%2B").replace(hbe,"+").replace(V1,"%23").replace(obe,"%26").replace(fbe,"`").replace(X1,"{").replace(Y1,"}").replace(K1,"^")}function gbe(e){return Uh(e).replace(lbe,"%3D")}function mbe(e){return Zp(e).replace(V1,"%23").replace(abe,"%3F")}function vbe(e){return mbe(e).replace(sbe,"%2F")}function Ha(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const ybe=/\/$/,bbe=e=>e.replace(ybe,"");function Xd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return h=d>=0&&h>d?-1:h,h>=0&&(o=t.slice(0,h),c=t.slice(h,d>0?d:t.length),s=e(c.slice(1))),d>=0&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=Sbe(o??t,r),{fullPath:o+c+f,path:o,query:s,hash:Ha(f)}}function wbe(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function N0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function xbe(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&dl(t.matched[o],r.matched[s])&&Z1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function dl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Z1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!kbe(e[r],t[r]))return!1;return!0}function kbe(e,t){return Fr(e)?O0(e,t):Fr(t)?O0(t,e):e?.valueOf()===t?.valueOf()}function O0(e,t){return Fr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function Sbe(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 Yi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Vh=(function(e){return e.pop="pop",e.push="push",e})({}),Yd=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function _be(e){if(!e)if(Fs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),bbe(e)}const Tbe=/^[^#]+#/;function Cbe(e,t){return e.replace(Tbe,"#")+t}function Ebe(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 Sf=()=>({left:window.scrollX,top:window.scrollY});function Abe(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=Ebe(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 P0(e,t){return(history.state?history.state.position-t:-1)+e}const Gh=new Map;function Lbe(e,t){Gh.set(e,t)}function Mbe(e){const t=Gh.get(e);return Gh.delete(e),t}function Nbe(e){return typeof e=="string"||e&&typeof e=="object"}function J1(e){return typeof e=="string"||typeof e=="symbol"}let Wt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Q1=Symbol("");Wt.MATCHER_NOT_FOUND+"",Wt.NAVIGATION_GUARD_REDIRECT+"",Wt.NAVIGATION_ABORTED+"",Wt.NAVIGATION_CANCELLED+"",Wt.NAVIGATION_DUPLICATED+"";function hl(e,t){return bt(new Error,{type:e,[Q1]:!0},t)}function pi(e,t){return e instanceof Error&&Q1 in e&&(t==null||!!(e.type&t))}const Obe=["params","query","hash"];function Pbe(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of Obe)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}function Rbe(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const s=r[o].replace(G1," "),c=s.indexOf("="),f=Ha(c<0?s:s.slice(0,c)),d=c<0?null:Ha(s.slice(c+1));if(f in t){let h=t[f];Fr(h)||(h=t[f]=[h]),h.push(d)}else t[f]=d}return t}function R0(e){let t="";for(let r in e){const o=e[r];if(r=gbe(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Fr(o)?o.map(s=>s&&Uh(s)):[o&&Uh(o)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+r,s!=null&&(t+="="+s))})}return t}function $be(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Fr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const Ibe=Symbol(""),$0=Symbol(""),Jp=Symbol(""),ek=Symbol(""),Kh=Symbol("");function Jl(){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 so(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(hl(Wt.NAVIGATION_ABORTED,{from:r,to:t})):b instanceof Error?h(b):Nbe(b)?h(hl(Wt.NAVIGATION_GUARD_REDIRECT,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},g=c(()=>e.call(o&&o.instances[s],t,r,p));let v=Promise.resolve(g);e.length<3&&(v=v.then(p)),v.catch(b=>h(b))})}function Zd(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(U1(h)){const p=(h.__vccOpts||h)[t];p&&c.push(so(p,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const v=ibe(g)?g.default:g;f.mods[d]=g,f.components[d]=v;const b=(v.__vccOpts||v)[t];return b&&so(b,r,o,f,d,s)()}))}}return c}function Dbe(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=>dl(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>dl(p,h))||s.push(h))}return[r,o,s]}/*!
|
|
56
|
-
* vue-router v4.6.4
|
|
57
|
-
* (c) 2025 Eduardo San Martin Morote
|
|
58
|
-
* @license MIT
|
|
59
|
-
*/let zbe=()=>location.protocol+"//"+location.host;function tk(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let f=s.includes(e.slice(c))?e.slice(c).length:1,d=s.slice(f);return d[0]!=="/"&&(d="/"+d),N0(d,"")}return N0(r,e)+o+s}function Fbe(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=tk(e,location),T=r.value,L=t.value;let P=0;if(b){if(r.value=w,t.value=b,f&&f===T){f=null;return}P=L?b.position-L.position:0}else o(w);s.forEach(M=>{M(r.value,T,{delta:P,type:Vh.pop,direction:P?P>0?Yd.forward:Yd.back:Yd.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const T=s.indexOf(b);T>-1&&s.splice(T,1)};return c.push(w),w}function g(){if(document.visibilityState==="hidden"){const{history:b}=window;if(!b.state)return;b.replaceState(bt({},b.state,{scroll:Sf()}),"")}}function v(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:h,listen:p,destroy:v}}function I0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Sf():null}}function Hbe(e){const{history:t,location:r}=window,o={value:tk(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,g){const v=e.indexOf("#"),b=v>-1?(r.host&&document.querySelector("base")?e:e.slice(v))+h:zbe()+e+h;try{t[g?"replaceState":"pushState"](p,"",b),s.value=p}catch(w){console.error(w),r[g?"replace":"assign"](b)}}function f(h,p){c(h,bt({},t.state,I0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position}),!0),o.value=h}function d(h,p){const g=bt({},s.value,t.state,{forward:h,scroll:Sf()});c(g.current,g,!0),c(h,bt({},I0(o.value,h,null),{position:g.position+1},p),!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function Bbe(e){e=_be(e);const t=Hbe(e),r=Fbe(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:Cbe.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 jbe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Bbe(e)}let Xo=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var on=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(on||{});const Wbe={type:Xo.Static,value:""},qbe=/[a-zA-Z0-9_]/;function Ube(e){if(!e)return[[]];if(e==="/")return[[Wbe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=on.Static,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",g="";function v(){p&&(r===on.Static?c.push({type:Xo.Static,value:p}):r===on.Param||r===on.ParamRegExp||r===on.ParamRegExpEnd?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:Xo.Param,value:p,regexp:g,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!==on.ParamRegExp){o=r,r=on.EscapeNext;continue}switch(r){case on.Static:h==="/"?(p&&v(),f()):h===":"?(v(),r=on.Param):b();break;case on.EscapeNext:b(),r=o;break;case on.Param:h==="("?r=on.ParamRegExp:qbe.test(h)?b():(v(),r=on.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case on.ParamRegExp:h===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+h:r=on.ParamRegExpEnd:g+=h;break;case on.ParamRegExpEnd:v(),r=on.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--,g="";break;default:t("Unknown state");break}}return r===on.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),v(),f(),s}const D0="[^/]+?",Vbe={sensitive:!1,strict:!1,start:!0,end:!0};var Pn=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Pn||{});const Gbe=/[.+*?^${}()[\]/\\]/g;function Kbe(e,t){const r=bt({},Vbe,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const g=p.length?[]:[Pn.Root];r.strict&&!p.length&&(s+="/");for(let v=0;v<p.length;v++){const b=p[v];let w=Pn.Segment+(r.sensitive?Pn.BonusCaseSensitive:0);if(b.type===Xo.Static)v||(s+="/"),s+=b.value.replace(Gbe,"\\$&"),w+=Pn.Static;else if(b.type===Xo.Param){const{value:T,repeatable:L,optional:P,regexp:M}=b;c.push({name:T,repeatable:L,optional:P});const R=M||D0;if(R!==D0){w+=Pn.BonusCustomRegExp;try{`${R}`}catch(E){throw new Error(`Invalid custom RegExp for param "${T}" (${R}): `+E.message)}}let I=L?`((?:${R})(?:/(?:${R}))*)`:`(${R})`;v||(I=P&&p.length<2?`(?:/${I})`:"/"+I),P&&(I+="?"),s+=I,w+=Pn.Dynamic,P&&(w+=Pn.BonusOptional),L&&(w+=Pn.BonusRepeatable),R===".*"&&(w+=Pn.BonusWildcard)}g.push(w)}o.push(g)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=Pn.BonusStrict}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const g=p.match(f),v={};if(!g)return null;for(let b=1;b<g.length;b++){const w=g[b]||"",T=c[b-1];v[T.name]=w&&T.repeatable?w.split("/"):w}return v}function h(p){let g="",v=!1;for(const b of e){(!v||!g.endsWith("/"))&&(g+="/"),v=!1;for(const w of b)if(w.type===Xo.Static)g+=w.value;else if(w.type===Xo.Param){const{value:T,repeatable:L,optional:P}=w,M=T in p?p[T]:"";if(Fr(M)&&!L)throw new Error(`Provided param "${T}" is an array but it is not repeatable (* or + modifiers)`);const R=Fr(M)?M.join("/"):M;if(!R)if(P)b.length<2&&(g.endsWith("/")?g=g.slice(0,-1):v=!0);else throw new Error(`Missing required param "${T}"`);g+=R}}return g||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function Xbe(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]===Pn.Static+Pn.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Pn.Static+Pn.Segment?1:-1:0}function nk(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=Xbe(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(z0(o))return 1;if(z0(s))return-1}return s.length-o.length}function z0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ybe={strict:!1,end:!0,sensitive:!1};function Zbe(e,t,r){const o=Kbe(Ube(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 Jbe(e,t){const r=[],o=new Map;t=M0(Ybe,t);function s(v){return o.get(v)}function c(v,b,w){const T=!w,L=H0(v);L.aliasOf=w&&w.record;const P=M0(t,v),M=[L];if("alias"in v){const E=typeof v.alias=="string"?[v.alias]:v.alias;for(const D of E)M.push(H0(bt({},L,{components:w?w.record.components:L.components,path:D,aliasOf:w?w.record:L})))}let R,I;for(const E of M){const{path:D}=E;if(b&&D[0]!=="/"){const V=b.record.path,ee=V[V.length-1]==="/"?"":"/";E.path=b.record.path+(D&&ee+D)}if(R=Zbe(E,b,P),w?w.alias.push(R):(I=I||R,I!==R&&I.alias.push(R),T&&v.name&&!B0(R)&&f(v.name)),rk(R)&&h(R),L.children){const V=L.children;for(let ee=0;ee<V.length;ee++)c(V[ee],R,w&&w.children[ee])}w=w||R}return I?()=>{f(I)}:ga}function f(v){if(J1(v)){const b=o.get(v);b&&(o.delete(v),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(v);b>-1&&(r.splice(b,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function d(){return r}function h(v){const b=twe(v,r);r.splice(b,0,v),v.record.name&&!B0(v)&&o.set(v.record.name,v)}function p(v,b){let w,T={},L,P;if("name"in v&&v.name){if(w=o.get(v.name),!w)throw hl(Wt.MATCHER_NOT_FOUND,{location:v});P=w.record.name,T=bt(F0(b.params,w.keys.filter(I=>!I.optional).concat(w.parent?w.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),v.params&&F0(v.params,w.keys.map(I=>I.name))),L=w.stringify(T)}else if(v.path!=null)L=v.path,w=r.find(I=>I.re.test(L)),w&&(T=w.parse(L),P=w.record.name);else{if(w=b.name?o.get(b.name):r.find(I=>I.re.test(b.path)),!w)throw hl(Wt.MATCHER_NOT_FOUND,{location:v,currentLocation:b});P=w.record.name,T=bt({},b.params,v.params),L=w.stringify(T)}const M=[];let R=w;for(;R;)M.unshift(R.record),R=R.parent;return{name:P,path:L,params:T,matched:M,meta:ewe(M)}}e.forEach(v=>c(v));function g(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:g,getRoutes:d,getRecordMatcher:s}}function F0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function H0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Qbe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Qbe(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function B0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ewe(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function twe(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;nk(e,t[c])<0?o=c:r=c+1}const s=nwe(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function nwe(e){let t=e;for(;t=t.parent;)if(rk(t)&&nk(e,t)===0)return t}function rk({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function j0(e){const t=gn(Jp),r=gn(ek),o=xe(()=>{const h=K(e.to);return t.resolve(h)}),s=xe(()=>{const{matched:h}=o.value,{length:p}=h,g=h[p-1],v=r.matched;if(!g||!v.length)return-1;const b=v.findIndex(dl.bind(null,g));if(b>-1)return b;const w=W0(h[p-2]);return p>1&&W0(g)===w&&v[v.length-1].path!==w?v.findIndex(dl.bind(null,h[p-2])):b}),c=xe(()=>s.value>-1&&lwe(r.params,o.value.params)),f=xe(()=>s.value>-1&&s.value===r.matched.length-1&&Z1(r.params,o.value.params));function d(h={}){if(swe(h)){const p=t[K(e.replace)?"replace":"push"](K(e.to)).catch(ga);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:xe(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function rwe(e){return e.length===1?e[0]:e}const iwe=rt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:j0,setup(e,{slots:t}){const r=ir(j0(e)),{options:o}=gn(Jp),s=xe(()=>({[q0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[q0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&rwe(t.default(r));return e.custom?c:Ka("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),owe=iwe;function swe(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 lwe(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(!Fr(s)||s.length!==o.length||o.some((c,f)=>c.valueOf()!==s[f].valueOf()))return!1}return!0}function W0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const q0=(e,t,r)=>e??t??r,awe=rt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=gn(Kh),s=xe(()=>e.route||o.value),c=gn($0,0),f=xe(()=>{let p=K(c);const{matched:g}=s.value;let v;for(;(v=g[p])&&!v.components;)p++;return p}),d=xe(()=>s.value.matched[f.value]);dr($0,xe(()=>f.value+1)),dr(Ibe,d),dr(Kh,s);const h=Ue();return kt(()=>[h.value,d.value,e.name],([p,g,v],[b,w,T])=>{g&&(g.instances[v]=p,w&&w!==g&&p&&p===b&&(g.leaveGuards.size||(g.leaveGuards=w.leaveGuards),g.updateGuards.size||(g.updateGuards=w.updateGuards))),p&&g&&(!w||!dl(g,w)||!b)&&(g.enterCallbacks[v]||[]).forEach(L=>L(p))},{flush:"post"}),()=>{const p=s.value,g=e.name,v=d.value,b=v&&v.components[g];if(!b)return U0(r.default,{Component:b,route:p});const w=v.props[g],T=w?w===!0?p.params:typeof w=="function"?w(p):w:null,P=Ka(b,bt({},T,t,{onVnodeUnmounted:M=>{M.component.isUnmounted&&(v.instances[g]=null)},ref:h}));return U0(r.default,{Component:P,route:p})||P}}});function U0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const cwe=awe;function uwe(e){const t=Jbe(e.routes,e),r=e.parseQuery||Rbe,o=e.stringifyQuery||R0,s=e.history,c=Jl(),f=Jl(),d=Jl(),h=Nt(Yi);let p=Yi;Fs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Kd.bind(null,H=>""+H),v=Kd.bind(null,vbe),b=Kd.bind(null,Ha);function w(H,Z){let re,le;return J1(H)?(re=t.getRecordMatcher(H),le=Z):le=H,t.addRoute(le,re)}function T(H){const Z=t.getRecordMatcher(H);Z&&t.removeRoute(Z)}function L(){return t.getRoutes().map(H=>H.record)}function P(H){return!!t.getRecordMatcher(H)}function M(H,Z){if(Z=bt({},Z||h.value),typeof H=="string"){const Q=Xd(r,H,Z.path),he=t.resolve({path:Q.path},Z),pe=s.createHref(Q.fullPath);return bt(Q,he,{params:b(he.params),hash:Ha(Q.hash),redirectedFrom:void 0,href:pe})}let re;if(H.path!=null)re=bt({},H,{path:Xd(r,H.path,Z.path).path});else{const Q=bt({},H.params);for(const he in Q)Q[he]==null&&delete Q[he];re=bt({},H,{params:v(Q)}),Z.params=v(Z.params)}const le=t.resolve(re,Z),ue=H.hash||"";le.params=g(b(le.params));const z=wbe(o,bt({},H,{hash:pbe(ue),path:le.path})),W=s.createHref(z);return bt({fullPath:z,hash:ue,query:o===R0?$be(H.query):H.query||{}},le,{redirectedFrom:void 0,href:W})}function R(H){return typeof H=="string"?Xd(r,H,h.value.path):bt({},H)}function I(H,Z){if(p!==H)return hl(Wt.NAVIGATION_CANCELLED,{from:Z,to:H})}function E(H){return ee(H)}function D(H){return E(bt(R(H),{replace:!0}))}function V(H,Z){const re=H.matched[H.matched.length-1];if(re&&re.redirect){const{redirect:le}=re;let ue=typeof le=="function"?le(H,Z):le;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=R(ue):{path:ue},ue.params={}),bt({query:H.query,hash:H.hash,params:ue.path!=null?{}:H.params},ue)}}function ee(H,Z){const re=p=M(H),le=h.value,ue=H.state,z=H.force,W=H.replace===!0,Q=V(re,le);if(Q)return ee(bt(R(Q),{state:typeof Q=="object"?bt({},ue,Q.state):ue,force:z,replace:W}),Z||re);const he=re;he.redirectedFrom=Z;let pe;return!z&&xbe(o,le,re)&&(pe=hl(Wt.NAVIGATION_DUPLICATED,{to:he,from:le}),je(le,le,!0,!1)),(pe?Promise.resolve(pe):G(he,le)).catch(me=>pi(me)?pi(me,Wt.NAVIGATION_GUARD_REDIRECT)?me:Se(me):ae(me,he,le)).then(me=>{if(me){if(pi(me,Wt.NAVIGATION_GUARD_REDIRECT))return ee(bt({replace:W},R(me.to),{state:typeof me.to=="object"?bt({},ue,me.to.state):ue,force:z}),Z||he)}else me=O(he,le,!0,W,ue);return j(he,le,me),me})}function ie(H,Z){const re=I(H,Z);return re?Promise.reject(re):Promise.resolve()}function Y(H){const Z=qe.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(H):H()}function G(H,Z){let re;const[le,ue,z]=Dbe(H,Z);re=Zd(le.reverse(),"beforeRouteLeave",H,Z);for(const Q of le)Q.leaveGuards.forEach(he=>{re.push(so(he,H,Z))});const W=ie.bind(null,H,Z);return re.push(W),Re(re).then(()=>{re=[];for(const Q of c.list())re.push(so(Q,H,Z));return re.push(W),Re(re)}).then(()=>{re=Zd(ue,"beforeRouteUpdate",H,Z);for(const Q of ue)Q.updateGuards.forEach(he=>{re.push(so(he,H,Z))});return re.push(W),Re(re)}).then(()=>{re=[];for(const Q of z)if(Q.beforeEnter)if(Fr(Q.beforeEnter))for(const he of Q.beforeEnter)re.push(so(he,H,Z));else re.push(so(Q.beforeEnter,H,Z));return re.push(W),Re(re)}).then(()=>(H.matched.forEach(Q=>Q.enterCallbacks={}),re=Zd(z,"beforeRouteEnter",H,Z,Y),re.push(W),Re(re))).then(()=>{re=[];for(const Q of f.list())re.push(so(Q,H,Z));return re.push(W),Re(re)}).catch(Q=>pi(Q,Wt.NAVIGATION_CANCELLED)?Q:Promise.reject(Q))}function j(H,Z,re){d.list().forEach(le=>Y(()=>le(H,Z,re)))}function O(H,Z,re,le,ue){const z=I(H,Z);if(z)return z;const W=Z===Yi,Q=Fs?history.state:{};re&&(le||W?s.replace(H.fullPath,bt({scroll:W&&Q&&Q.scroll},ue)):s.push(H.fullPath,ue)),h.value=H,je(H,Z,re,W),Se()}let N;function C(){N||(N=s.listen((H,Z,re)=>{if(!Fe.listening)return;const le=M(H),ue=V(le,Fe.currentRoute.value);if(ue){ee(bt(ue,{replace:!0,force:!0}),le).catch(ga);return}p=le;const z=h.value;Fs&&Lbe(P0(z.fullPath,re.delta),Sf()),G(le,z).catch(W=>pi(W,Wt.NAVIGATION_ABORTED|Wt.NAVIGATION_CANCELLED)?W:pi(W,Wt.NAVIGATION_GUARD_REDIRECT)?(ee(bt(R(W.to),{force:!0}),le).then(Q=>{pi(Q,Wt.NAVIGATION_ABORTED|Wt.NAVIGATION_DUPLICATED)&&!re.delta&&re.type===Vh.pop&&s.go(-1,!1)}).catch(ga),Promise.reject()):(re.delta&&s.go(-re.delta,!1),ae(W,le,z))).then(W=>{W=W||O(le,z,!1),W&&(re.delta&&!pi(W,Wt.NAVIGATION_CANCELLED)?s.go(-re.delta,!1):re.type===Vh.pop&&pi(W,Wt.NAVIGATION_ABORTED|Wt.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),j(le,z,W)}).catch(ga)}))}let k=Jl(),F=Jl(),$;function ae(H,Z,re){Se(H);const le=F.list();return le.length?le.forEach(ue=>ue(H,Z,re)):console.error(H),Promise.reject(H)}function ce(){return $&&h.value!==Yi?Promise.resolve():new Promise((H,Z)=>{k.add([H,Z])})}function Se(H){return $||($=!H,C(),k.list().forEach(([Z,re])=>H?re(H):Z()),k.reset()),H}function je(H,Z,re,le){const{scrollBehavior:ue}=e;if(!Fs||!ue)return Promise.resolve();const z=!re&&Mbe(P0(H.fullPath,0))||(le||!re)&&history.state&&history.state.scroll||null;return Et().then(()=>ue(H,Z,z)).then(W=>W&&Abe(W)).catch(W=>ae(W,H,Z))}const Ae=H=>s.go(H);let Ke;const qe=new Set,Fe={currentRoute:h,listening:!0,addRoute:w,removeRoute:T,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:L,resolve:M,options:e,push:E,replace:D,go:Ae,back:()=>Ae(-1),forward:()=>Ae(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:F.add,isReady:ce,install(H){H.component("RouterLink",owe),H.component("RouterView",cwe),H.config.globalProperties.$router=Fe,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>K(h)}),Fs&&!Ke&&h.value===Yi&&(Ke=!0,E(s.location).catch(le=>{}));const Z={};for(const le in Yi)Object.defineProperty(Z,le,{get:()=>h.value[le],enumerable:!0});H.provide(Jp,Fe),H.provide(ek,rp(Z)),H.provide(Kh,h);const re=H.unmount;qe.add(H),H.unmount=function(){qe.delete(H),qe.size<1&&(p=Yi,N&&N(),N=null,h.value=Yi,Ke=!1,$=!1),re()}}};function Re(H){return H.reduce((Z,re)=>Z.then(()=>Y(re)),Promise.resolve())}return Fe}const fwe={tooltip:FE};Hw.options.instantMove=!0;Hw.options.distance=10;function dwe(){return uwe({history:jbe(),routes:rbe})}const hwe=[dwe],Qp=bw(zC);hwe.forEach(e=>{Qp.use(e())});Object.entries(fwe).forEach(([e,t])=>{Qp.directive(e,t)});Qp.mount("#app");
|