@vitest/browser 2.0.0-beta.10 → 2.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/context.d.ts +129 -12
- package/context.js +2 -0
- package/dist/client/.vite/manifest.json +8 -8
- package/dist/client/__vitest__/assets/index-BfnqOMHY.js +51 -0
- package/dist/client/__vitest__/assets/{index-BcFb8Rbc.css → index-qZYZB8Y3.css} +1 -1
- package/dist/client/__vitest__/index.html +16 -11
- package/dist/client/__vitest_browser__/{orchestrator-BCpOi5ot.js → orchestrator-DQ4hbmZ_.js} +141 -104
- package/dist/client/__vitest_browser__/{rpc-CImfI7bO.js → rpc-D6HtJ5Rb.js} +75 -55
- package/dist/client/__vitest_browser__/{tester-e70VCOgC.js → tester-IF8AbWCS.js} +256 -199
- package/dist/client/esm-client-injector.js +19 -18
- package/dist/client/orchestrator.html +2 -2
- package/dist/client/{tester.html → tester/tester.html} +12 -3
- package/dist/context.js +104 -16
- package/dist/index.d.ts +101 -5
- package/dist/index.js +1745 -270
- package/dist/providers.js +10 -6
- package/dist/state.js +1 -0
- package/dist/{webdriver-CXn0ag9T.js → webdriver-BRud6NtS.js} +22 -12
- package/package.json +9 -7
- package/providers/playwright.d.ts +27 -5
- package/dist/client/__vitest__/assets/index-BMAciMM5.js +0 -51
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var Dx=Object.defineProperty;var zx=(t,e,r)=>e in t?Dx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var io=(t,e,r)=>(zx(t,typeof e!="symbol"?e+"":e,r),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.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.4.29
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Eh(t,e){const r=new Set(t.split(","));return o=>r.has(o)}const ye={},rs=[],Un=()=>{},Ix=()=>!1,Bc=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Lh=t=>t.startsWith("onUpdate:"),Re=Object.assign,Ah=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},Fx=Object.prototype.hasOwnProperty,le=(t,e)=>Fx.call(t,e),Ft=Array.isArray,is=t=>Wc(t)==="[object Map]",Um=t=>Wc(t)==="[object Set]",Gt=t=>typeof t=="function",De=t=>typeof t=="string",_o=t=>typeof t=="symbol",be=t=>t!==null&&typeof t=="object",jm=t=>(be(t)||Gt(t))&&Gt(t.then)&&Gt(t.catch),Vm=Object.prototype.toString,Wc=t=>Vm.call(t),Hx=t=>Wc(t).slice(8,-1),Gm=t=>Wc(t)==="[object Object]",Mh=t=>De(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ul=Eh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Uc=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},qx=/-(\w)/g,hr=Uc(t=>t.replace(qx,(e,r)=>r?r.toUpperCase():"")),Bx=/\B([A-Z])/g,qi=Uc(t=>t.replace(Bx,"-$1").toLowerCase()),jc=Uc(t=>t.charAt(0).toUpperCase()+t.slice(1)),uf=Uc(t=>t?`on${jc(t)}`:""),Ar=(t,e)=>!Object.is(t,e),ec=(t,...e)=>{for(let r=0;r<t.length;r++)t[r](...e)},Km=(t,e,r,o=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:o,value:r})},zf=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Xm=t=>{const e=De(t)?Number(t):NaN;return isNaN(e)?t:e};let Tg;const Ym=()=>Tg||(Tg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function an(t){if(Ft(t)){const e={};for(let r=0;r<t.length;r++){const o=t[r],s=De(o)?Vx(o):an(o);if(s)for(const c in s)e[c]=s[c]}return e}else if(De(t)||be(t))return t}const Wx=/;(?![^(]*\))/g,Ux=/:([^]+)/,jx=/\/\*[^]*?\*\//g;function Vx(t){const e={};return t.replace(jx,"").split(Wx).forEach(r=>{if(r){const o=r.split(Ux);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function de(t){let e="";if(De(t))e=t;else if(Ft(t))for(let r=0;r<t.length;r++){const o=de(t[r]);o&&(e+=o+" ")}else if(be(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}function Gx(t){if(!t)return null;let{class:e,style:r}=t;return e&&!De(e)&&(t.class=de(e)),r&&(t.style=an(r)),t}const Kx="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Xx=Eh(Kx);function Zm(t){return!!t||t===""}const Vt=t=>De(t)?t:t==null?"":Ft(t)||be(t)&&(t.toString===Vm||!Gt(t.toString))?JSON.stringify(t,Jm,2):String(t),Jm=(t,e)=>e&&e.__v_isRef?Jm(t,e.value):is(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[o,s],c)=>(r[ff(o,c)+" =>"]=s,r),{})}:Um(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>ff(r))}:_o(e)?ff(e):be(e)&&!Ft(e)&&!Gm(e)?String(e):e,ff=(t,e="")=>{var r;return _o(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};/**
|
|
6
|
+
* @vue/reactivity v3.4.29
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let On;class Yx{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=On,!e&&On&&(this.index=(On.scopes||(On.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=On;try{return On=this,e()}finally{On=r}}}on(){On=this}off(){On=this.parent}stop(e){if(this._active){let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.scopes)for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Zx(t,e=On){e&&e.active&&e.effects.push(t)}function Qm(){return On}function Jx(t){On&&On.cleanups.push(t)}let go;class Nh{constructor(e,r,o,s){this.fn=e,this.trigger=r,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=5,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Zx(this,s)}get dirty(){if(this._dirtyLevel===2)return!1;if(this._dirtyLevel===3||this._dirtyLevel===4){this._dirtyLevel=1,Bi();for(let e=0;e<this._depsLength;e++){const r=this.deps[e];if(r.computed){if(r.computed.effect._dirtyLevel===2)return!0;if(Qx(r.computed),this._dirtyLevel>=5)break}}this._dirtyLevel===1&&(this._dirtyLevel=0),Wi()}return this._dirtyLevel>=5}set dirty(e){this._dirtyLevel=e?5:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ni,r=go;try{return Ni=!0,go=this,this._runnings++,Eg(this),this.fn()}finally{Lg(this),this._runnings--,go=r,Ni=e}}stop(){this.active&&(Eg(this),Lg(this),this.onStop&&this.onStop(),this.active=!1)}}function Qx(t){return t.value}function Eg(t){t._trackId++,t._depsLength=0}function Lg(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)t0(t.deps[e],t);t.deps.length=t._depsLength}}function t0(t,e){const r=t.get(e);r!==void 0&&e._trackId!==r&&(t.delete(e),t.size===0&&t.cleanup())}let Ni=!0,If=0;const e0=[];function Bi(){e0.push(Ni),Ni=!1}function Wi(){const t=e0.pop();Ni=t===void 0?!0:t}function $h(){If++}function Ph(){for(If--;!If&&Ff.length;)Ff.shift()()}function n0(t,e,r){if(e.get(t)!==t._trackId){e.set(t,t._trackId);const o=t.deps[t._depsLength];o!==e?(o&&t0(o,t),t.deps[t._depsLength++]=e):t._depsLength++}}const Ff=[];function r0(t,e,r){$h();for(const o of t.keys()){if(!t.computed&&o.computed&&t.get(o)===o._trackId&&o._runnings>0){o._dirtyLevel=2;continue}let s;o._dirtyLevel<e&&(s??(s=t.get(o)===o._trackId))&&(o._shouldSchedule||(o._shouldSchedule=o._dirtyLevel===0),o.computed&&o._dirtyLevel===2&&(o._shouldSchedule=!0),o._dirtyLevel=e),o._shouldSchedule&&(s??(s=t.get(o)===o._trackId))&&(o.trigger(),(!o._runnings||o.allowRecurse)&&o._dirtyLevel!==3&&(o._shouldSchedule=!1,o.scheduler&&Ff.push(o.scheduler)))}Ph()}const i0=(t,e)=>{const r=new Map;return r.cleanup=t,r.computed=e,r},gc=new WeakMap,vo=Symbol(""),Hf=Symbol("");function Mn(t,e,r){if(Ni&&go){let o=gc.get(t);o||gc.set(t,o=new Map);let s=o.get(r);s||o.set(r,s=i0(()=>o.delete(r))),n0(go,s)}}function Kr(t,e,r,o,s,c){const f=gc.get(t);if(!f)return;let h=[];if(e==="clear")h=[...f.values()];else if(r==="length"&&Ft(t)){const d=Number(o);f.forEach((g,v)=>{(v==="length"||!_o(v)&&v>=d)&&h.push(g)})}else switch(r!==void 0&&h.push(f.get(r)),e){case"add":Ft(t)?Mh(r)&&h.push(f.get("length")):(h.push(f.get(vo)),is(t)&&h.push(f.get(Hf)));break;case"delete":Ft(t)||(h.push(f.get(vo)),is(t)&&h.push(f.get(Hf)));break;case"set":is(t)&&h.push(f.get(vo));break}$h();for(const d of h)d&&r0(d,5);Ph()}function t_(t,e){const r=gc.get(t);return r&&r.get(e)}const e_=Eh("__proto__,__v_isRef,__isVue"),o0=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(_o)),Ag=n_();function n_(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const o=ue(this);for(let c=0,f=this.length;c<f;c++)Mn(o,"get",c+"");const s=o[e](...r);return s===-1||s===!1?o[e](...r.map(ue)):s}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...r){Bi(),$h();const o=ue(this)[e].apply(this,r);return Ph(),Wi(),o}}),t}function r_(t){_o(t)||(t=String(t));const e=ue(this);return Mn(e,"has",t),e.hasOwnProperty(t)}class s0{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,o){const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?v_:u0:c?c0:a0).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(o)?e:void 0;const f=Ft(e);if(!s){if(f&&le(Ag,r))return Reflect.get(Ag,r,o);if(r==="hasOwnProperty")return r_}const h=Reflect.get(e,r,o);return(_o(r)?o0.has(r):e_(r))||(s||Mn(e,"get",r),c)?h:Ae(h)?f&&Mh(r)?h:h.value:be(h)?s?Gc(h):Cr(h):h}}class l0 extends s0{constructor(e=!1){super(!1,e)}set(e,r,o,s){let c=e[r];if(!this._isShallow){const d=Cl(c);if(!vc(o)&&!Cl(o)&&(c=ue(c),o=ue(o)),!Ft(e)&&Ae(c)&&!Ae(o))return d?!1:(c.value=o,!0)}const f=Ft(e)&&Mh(r)?Number(r)<e.length:le(e,r),h=Reflect.set(e,r,o,s);return e===ue(s)&&(f?Ar(o,c)&&Kr(e,"set",r,o):Kr(e,"add",r,o)),h}deleteProperty(e,r){const o=le(e,r);e[r];const s=Reflect.deleteProperty(e,r);return s&&o&&Kr(e,"delete",r,void 0),s}has(e,r){const o=Reflect.has(e,r);return(!_o(r)||!o0.has(r))&&Mn(e,"has",r),o}ownKeys(e){return Mn(e,"iterate",Ft(e)?"length":vo),Reflect.ownKeys(e)}}class i_ extends s0{constructor(e=!1){super(!0,e)}set(e,r){return!0}deleteProperty(e,r){return!0}}const o_=new l0,s_=new i_,l_=new l0(!0);const Oh=t=>t,Vc=t=>Reflect.getPrototypeOf(t);function Ra(t,e,r=!1,o=!1){t=t.__v_raw;const s=ue(t),c=ue(e);r||(Ar(e,c)&&Mn(s,"get",e),Mn(s,"get",c));const{has:f}=Vc(s),h=o?Oh:r?zh:Tl;if(f.call(s,e))return h(t.get(e));if(f.call(s,c))return h(t.get(c));t!==s&&t.get(e)}function Da(t,e=!1){const r=this.__v_raw,o=ue(r),s=ue(t);return e||(Ar(t,s)&&Mn(o,"has",t),Mn(o,"has",s)),t===s?r.has(t):r.has(t)||r.has(s)}function za(t,e=!1){return t=t.__v_raw,!e&&Mn(ue(t),"iterate",vo),Reflect.get(t,"size",t)}function Mg(t){t=ue(t);const e=ue(this);return Vc(e).has.call(e,t)||(e.add(t),Kr(e,"add",t,t)),this}function Ng(t,e){e=ue(e);const r=ue(this),{has:o,get:s}=Vc(r);let c=o.call(r,t);c||(t=ue(t),c=o.call(r,t));const f=s.call(r,t);return r.set(t,e),c?Ar(e,f)&&Kr(r,"set",t,e):Kr(r,"add",t,e),this}function $g(t){const e=ue(this),{has:r,get:o}=Vc(e);let s=r.call(e,t);s||(t=ue(t),s=r.call(e,t)),o&&o.call(e,t);const c=e.delete(t);return s&&Kr(e,"delete",t,void 0),c}function Pg(){const t=ue(this),e=t.size!==0,r=t.clear();return e&&Kr(t,"clear",void 0,void 0),r}function Ia(t,e){return function(o,s){const c=this,f=c.__v_raw,h=ue(f),d=e?Oh:t?zh:Tl;return!t&&Mn(h,"iterate",vo),f.forEach((g,v)=>o.call(s,d(g),d(v),c))}}function Fa(t,e,r){return function(...o){const s=this.__v_raw,c=ue(s),f=is(c),h=t==="entries"||t===Symbol.iterator&&f,d=t==="keys"&&f,g=s[t](...o),v=r?Oh:e?zh:Tl;return!e&&Mn(c,"iterate",d?Hf:vo),{next(){const{value:y,done:w}=g.next();return w?{value:y,done:w}:{value:h?[v(y[0]),v(y[1])]:v(y),done:w}},[Symbol.iterator](){return this}}}}function di(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function a_(){const t={get(c){return Ra(this,c)},get size(){return za(this)},has:Da,add:Mg,set:Ng,delete:$g,clear:Pg,forEach:Ia(!1,!1)},e={get(c){return Ra(this,c,!1,!0)},get size(){return za(this)},has:Da,add:Mg,set:Ng,delete:$g,clear:Pg,forEach:Ia(!1,!0)},r={get(c){return Ra(this,c,!0)},get size(){return za(this,!0)},has(c){return Da.call(this,c,!0)},add:di("add"),set:di("set"),delete:di("delete"),clear:di("clear"),forEach:Ia(!0,!1)},o={get(c){return Ra(this,c,!0,!0)},get size(){return za(this,!0)},has(c){return Da.call(this,c,!0)},add:di("add"),set:di("set"),delete:di("delete"),clear:di("clear"),forEach:Ia(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(c=>{t[c]=Fa(c,!1,!1),r[c]=Fa(c,!0,!1),e[c]=Fa(c,!1,!0),o[c]=Fa(c,!0,!0)}),[t,r,e,o]}const[c_,u_,f_,h_]=a_();function Rh(t,e){const r=e?t?h_:f_:t?u_:c_;return(o,s,c)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?o:Reflect.get(le(r,s)&&s in o?r:o,s,c)}const d_={get:Rh(!1,!1)},p_={get:Rh(!1,!0)},g_={get:Rh(!0,!1)};const a0=new WeakMap,c0=new WeakMap,u0=new WeakMap,v_=new WeakMap;function m_(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function y_(t){return t.__v_skip||!Object.isExtensible(t)?0:m_(Hx(t))}function Cr(t){return Cl(t)?t:Dh(t,!1,o_,d_,a0)}function f0(t){return Dh(t,!1,l_,p_,c0)}function Gc(t){return Dh(t,!0,s_,g_,u0)}function Dh(t,e,r,o,s){if(!be(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const c=s.get(t);if(c)return c;const f=y_(t);if(f===0)return t;const h=new Proxy(t,f===2?o:r);return s.set(t,h),h}function fl(t){return Cl(t)?fl(t.__v_raw):!!(t&&t.__v_isReactive)}function Cl(t){return!!(t&&t.__v_isReadonly)}function vc(t){return!!(t&&t.__v_isShallow)}function h0(t){return t?!!t.__v_raw:!1}function ue(t){const e=t&&t.__v_raw;return e?ue(e):t}function d0(t){return Object.isExtensible(t)&&Km(t,"__v_skip",!0),t}const Tl=t=>be(t)?Cr(t):t,zh=t=>be(t)?Gc(t):t;class p0{constructor(e,r,o,s){this.getter=e,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Nh(()=>e(this._value),()=>hl(this,this.effect._dirtyLevel===3?3:4)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const e=ue(this);return(!e._cacheable||e.effect.dirty)&&Ar(e._value,e._value=e.effect.run())&&hl(e,5),Ih(e),e.effect._dirtyLevel>=2&&hl(e,3),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function b_(t,e,r=!1){let o,s;const c=Gt(t);return c?(o=t,s=Un):(o=t.get,s=t.set),new p0(o,s,c||!s,r)}function Ih(t){var e;Ni&&go&&(t=ue(t),n0(go,(e=t.dep)!=null?e:t.dep=i0(()=>t.dep=void 0,t instanceof p0?t:void 0)))}function hl(t,e=5,r,o){t=ue(t);const s=t.dep;s&&r0(s,e)}function Ae(t){return!!(t&&t.__v_isRef===!0)}function Qt(t){return g0(t,!1)}function ws(t){return g0(t,!0)}function g0(t,e){return Ae(t)?t:new w_(t,e)}class w_{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:ue(e),this._value=r?e:Tl(e)}get value(){return Ih(this),this._value}set value(e){const r=this.__v_isShallow||vc(e)||Cl(e);e=r?e:ue(e),Ar(e,this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=r?e:Tl(e),hl(this,5))}}function B(t){return Ae(t)?t.value:t}const x_={get:(t,e,r)=>B(Reflect.get(t,e,r)),set:(t,e,r,o)=>{const s=t[e];return Ae(s)&&!Ae(r)?(s.value=r,!0):Reflect.set(t,e,r,o)}};function v0(t){return fl(t)?t:new Proxy(t,x_)}class __{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:o}=e(()=>Ih(this),()=>hl(this));this._get=r,this._set=o}get value(){return this._get()}set value(e){this._set(e)}}function m0(t){return new __(t)}function S_(t){const e=Ft(t)?new Array(t.length):{};for(const r in t)e[r]=y0(t,r);return e}class k_{constructor(e,r,o){this._object=e,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return t_(ue(this._object),this._key)}}class C_{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Fh(t,e,r){return Ae(t)?t:Gt(t)?new C_(t):be(t)&&arguments.length>1?y0(t,e,r):Qt(t)}function y0(t,e,r){const o=t[e];return Ae(o)?o:new k_(t,e,r)}/**
|
|
10
|
+
* @vue/runtime-core v3.4.29
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function $i(t,e,r,o){try{return o?t(...o):t()}catch(s){Gl(s,e,r)}}function Gn(t,e,r,o){if(Gt(t)){const s=$i(t,e,r,o);return s&&jm(s)&&s.catch(c=>{Gl(c,e,r)}),s}if(Ft(t)){const s=[];for(let c=0;c<t.length;c++)s.push(Gn(t[c],e,r,o));return s}}function Gl(t,e,r,o=!0){const s=e?e.vnode:null;if(e){let c=e.parent;const f=e.proxy,h=`https://vuejs.org/error-reference/#runtime-${r}`;for(;c;){const g=c.ec;if(g){for(let v=0;v<g.length;v++)if(g[v](t,f,h)===!1)return}c=c.parent}const d=e.appContext.config.errorHandler;if(d){Bi(),$i(d,null,10,[t,f,h]),Wi();return}}T_(t,r,s,o)}function T_(t,e,r,o=!0){console.error(t)}let El=!1,qf=!1;const on=[];let _r=0;const os=[];let wi=null,fo=0;const b0=Promise.resolve();let Hh=null;function Mr(t){const e=Hh||b0;return t?e.then(this?t.bind(this):t):e}function E_(t){let e=_r+1,r=on.length;for(;e<r;){const o=e+r>>>1,s=on[o],c=Ll(s);c<t||c===t&&s.pre?e=o+1:r=o}return e}function qh(t){(!on.length||!on.includes(t,El&&t.allowRecurse?_r+1:_r))&&(t.id==null?on.push(t):on.splice(E_(t.id),0,t),w0())}function w0(){!El&&!qf&&(qf=!0,Hh=b0.then(_0))}function L_(t){const e=on.indexOf(t);e>_r&&on.splice(e,1)}function Bf(t){Ft(t)?os.push(...t):(!wi||!wi.includes(t,t.allowRecurse?fo+1:fo))&&os.push(t),w0()}function Og(t,e,r=El?_r+1:0){for(;r<on.length;r++){const o=on[r];if(o&&o.pre){if(t&&o.id!==t.uid)continue;on.splice(r,1),r--,o()}}}function x0(t){if(os.length){const e=[...new Set(os)].sort((r,o)=>Ll(r)-Ll(o));if(os.length=0,wi){wi.push(...e);return}for(wi=e,fo=0;fo<wi.length;fo++){const r=wi[fo];r.active!==!1&&r()}wi=null,fo=0}}const Ll=t=>t.id==null?1/0:t.id,A_=(t,e)=>{const r=Ll(t)-Ll(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function _0(t){qf=!1,El=!0,on.sort(A_);try{for(_r=0;_r<on.length;_r++){const e=on[_r];e&&e.active!==!1&&$i(e,null,14)}}finally{_r=0,on.length=0,x0(),El=!1,Hh=null,(on.length||os.length)&&_0()}}function M_(t,e,...r){if(t.isUnmounted)return;const o=t.vnode.props||ye;let s=r;const c=e.startsWith("update:"),f=c&&e.slice(7);if(f&&f in o){const v=`${f==="modelValue"?"model":f}Modifiers`,{number:y,trim:w}=o[v]||ye;w&&(s=r.map(_=>De(_)?_.trim():_)),y&&(s=r.map(zf))}let h,d=o[h=uf(e)]||o[h=uf(hr(e))];!d&&c&&(d=o[h=uf(qi(e))]),d&&Gn(d,t,6,s);const g=o[h+"Once"];if(g){if(!t.emitted)t.emitted={};else if(t.emitted[h])return;t.emitted[h]=!0,Gn(g,t,6,s)}}function S0(t,e,r=!1){const o=e.emitsCache,s=o.get(t);if(s!==void 0)return s;const c=t.emits;let f={},h=!1;if(!Gt(t)){const d=g=>{const v=S0(g,e,!0);v&&(h=!0,Re(f,v))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!c&&!h?(be(t)&&o.set(t,null),null):(Ft(c)?c.forEach(d=>f[d]=null):Re(f,c),be(t)&&o.set(t,f),f)}function Kc(t,e){return!t||!Bc(e)?!1:(e=e.slice(2).replace(/Once$/,""),le(t,e[0].toLowerCase()+e.slice(1))||le(t,qi(e))||le(t,e))}let Ve=null,Xc=null;function mc(t){const e=Ve;return Ve=t,Xc=t&&t.type.__scopeId||null,e}function k0(t){Xc=t}function C0(){Xc=null}const N_=t=>oe;function oe(t,e=Ve,r){if(!e||t._n)return t;const o=(...s)=>{o._d&&xc(-1);const c=mc(e);let f;try{f=t(...s)}finally{mc(c),o._d&&xc(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function hf(t){const{type:e,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:h,emit:d,render:g,renderCache:v,props:y,data:w,setupState:_,ctx:L,inheritAttrs:M}=t,A=mc(t);let T,E;try{if(r.shapeFlag&4){const $=s||o,H=$;T=lr(g.call(H,$,v,y,_,w,L)),E=h}else{const $=e;T=lr($.length>1?$(y,{attrs:h,slots:f,emit:d}):$(y,null)),E=e.props?h:P_(h)}}catch($){vl.length=0,Gl($,t,1),T=It(sn)}let P=T;if(E&&M!==!1){const $=Object.keys(E),{shapeFlag:H}=P;$.length&&H&7&&(c&&$.some(Lh)&&(E=O_(E,c)),P=Di(P,E,!1,!0))}return r.dirs&&(P=Di(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(r.dirs):r.dirs),r.transition&&(P.transition=r.transition),T=P,mc(A),T}function $_(t,e=!0){let r;for(let o=0;o<t.length;o++){const s=t[o];if(Ml(s)){if(s.type!==sn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const P_=t=>{let e;for(const r in t)(r==="class"||r==="style"||Bc(r))&&((e||(e={}))[r]=t[r]);return e},O_=(t,e)=>{const r={};for(const o in t)(!Lh(o)||!(o.slice(9)in e))&&(r[o]=t[o]);return r};function R_(t,e,r){const{props:o,children:s,component:c}=t,{props:f,children:h,patchFlag:d}=e,g=c.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return o?Rg(o,f,g):!!f;if(d&8){const v=e.dynamicProps;for(let y=0;y<v.length;y++){const w=v[y];if(f[w]!==o[w]&&!Kc(g,w))return!0}}}else return(s||h)&&(!h||!h.$stable)?!0:o===f?!1:o?f?Rg(o,f,g):!0:!!f;return!1}function Rg(t,e,r){const o=Object.keys(e);if(o.length!==Object.keys(t).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(e[c]!==t[c]&&!Kc(r,c))return!0}return!1}function Bh({vnode:t,parent:e},r){for(;e;){const o=e.subTree;if(o.suspense&&o.suspense.activeBranch===t&&(o.el=t.el),o===t)(t=e.vnode).el=r,e=e.parent;else break}}const T0="components",D_="directives";function yo(t,e){return E0(T0,t,!0,e)||t}const z_=Symbol.for("v-ndc");function Ui(t){return E0(D_,t)}function E0(t,e,r=!0,o=!1){const s=Ve||tn;if(s){const c=s.type;if(t===T0){const h=zS(c,!1);if(h&&(h===e||h===hr(e)||h===jc(hr(e))))return c}const f=Dg(s[t]||c[t],e)||Dg(s.appContext[t],e);return!f&&o?c:f}}function Dg(t,e){return t&&(t[e]||t[hr(e)]||t[jc(hr(e))])}const I_=t=>t.__isSuspense;let Wf=0;const F_={name:"Suspense",__isSuspense:!0,process(t,e,r,o,s,c,f,h,d,g){if(t==null)q_(e,r,o,s,c,f,h,d,g);else{if(c&&c.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}B_(t,e,r,o,s,f,h,d,g)}},hydrate:W_,create:Wh,normalize:U_},H_=F_;function Al(t,e){const r=t.props&&t.props[e];Gt(r)&&r()}function q_(t,e,r,o,s,c,f,h,d){const{p:g,o:{createElement:v}}=d,y=v("div"),w=t.suspense=Wh(t,s,o,e,y,r,c,f,h,d);g(null,w.pendingBranch=t.ssContent,y,null,o,w,c,f),w.deps>0?(Al(t,"onPending"),Al(t,"onFallback"),g(null,t.ssFallback,e,r,o,null,c,f),ss(w,t.ssFallback)):w.resolve(!1,!0)}function B_(t,e,r,o,s,c,f,h,{p:d,um:g,o:{createElement:v}}){const y=e.suspense=t.suspense;y.vnode=e,e.el=t.el;const w=e.ssContent,_=e.ssFallback,{activeBranch:L,pendingBranch:M,isInFallback:A,isHydrating:T}=y;if(M)y.pendingBranch=w,Sr(w,M)?(d(M,w,y.hiddenContainer,null,s,y,c,f,h),y.deps<=0?y.resolve():A&&(T||(d(L,_,r,o,s,null,c,f,h),ss(y,_)))):(y.pendingId=Wf++,T?(y.isHydrating=!1,y.activeBranch=M):g(M,s,y),y.deps=0,y.effects.length=0,y.hiddenContainer=v("div"),A?(d(null,w,y.hiddenContainer,null,s,y,c,f,h),y.deps<=0?y.resolve():(d(L,_,r,o,s,null,c,f,h),ss(y,_))):L&&Sr(w,L)?(d(L,w,r,o,s,y,c,f,h),y.resolve(!0)):(d(null,w,y.hiddenContainer,null,s,y,c,f,h),y.deps<=0&&y.resolve()));else if(L&&Sr(w,L))d(L,w,r,o,s,y,c,f,h),ss(y,w);else if(Al(e,"onPending"),y.pendingBranch=w,w.shapeFlag&512?y.pendingId=w.component.suspenseId:y.pendingId=Wf++,d(null,w,y.hiddenContainer,null,s,y,c,f,h),y.deps<=0)y.resolve();else{const{timeout:E,pendingId:P}=y;E>0?setTimeout(()=>{y.pendingId===P&&y.fallback(_)},E):E===0&&y.fallback(_)}}function Wh(t,e,r,o,s,c,f,h,d,g,v=!1){const{p:y,m:w,um:_,n:L,o:{parentNode:M,remove:A}}=g;let T;const E=V_(t);E&&e&&e.pendingBranch&&(T=e.pendingId,e.deps++);const P=t.props?Xm(t.props.timeout):void 0,$=c,H={vnode:t,parent:e,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:Wf++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(F=!1,ct=!1){const{vnode:ut,activeBranch:st,pendingBranch:X,pendingId:ft,effects:rt,parentComponent:V,container:z}=H;let k=!1;H.isHydrating?H.isHydrating=!1:F||(k=st&&X.transition&&X.transition.mode==="out-in",k&&(st.transition.afterLeave=()=>{ft===H.pendingId&&(w(X,z,c===$?L(st):c,0),Bf(rt))}),st&&(M(st.el)!==H.hiddenContainer&&(c=L(st)),_(st,V,H,!0)),k||w(X,z,c,0)),ss(H,X),H.pendingBranch=null,H.isInFallback=!1;let q=H.parent,U=!1;for(;q;){if(q.pendingBranch){q.effects.push(...rt),U=!0;break}q=q.parent}!U&&!k&&Bf(rt),H.effects=[],E&&e&&e.pendingBranch&&T===e.pendingId&&(e.deps--,e.deps===0&&!ct&&e.resolve()),Al(ut,"onResolve")},fallback(F){if(!H.pendingBranch)return;const{vnode:ct,activeBranch:ut,parentComponent:st,container:X,namespace:ft}=H;Al(ct,"onFallback");const rt=L(ut),V=()=>{H.isInFallback&&(y(null,F,X,rt,st,null,ft,h,d),ss(H,F))},z=F.transition&&F.transition.mode==="out-in";z&&(ut.transition.afterLeave=V),H.isInFallback=!0,_(ut,st,null,!0),z||V()},move(F,ct,ut){H.activeBranch&&w(H.activeBranch,F,ct,ut),H.container=F},next(){return H.activeBranch&&L(H.activeBranch)},registerDep(F,ct,ut){const st=!!H.pendingBranch;st&&H.deps++;const X=F.vnode.el;F.asyncDep.catch(ft=>{Gl(ft,F,0)}).then(ft=>{if(F.isUnmounted||H.isUnmounted||H.pendingId!==F.suspenseId)return;F.asyncResolved=!0;const{vnode:rt}=F;Jf(F,ft,!1),X&&(rt.el=X);const V=!X&&F.subTree.el;ct(F,rt,M(X||F.subTree.el),X?null:L(F.subTree),H,f,ut),V&&A(V),Bh(F,rt.el),st&&--H.deps===0&&H.resolve()})},unmount(F,ct){H.isUnmounted=!0,H.activeBranch&&_(H.activeBranch,r,F,ct),H.pendingBranch&&_(H.pendingBranch,r,F,ct)}};return H}function W_(t,e,r,o,s,c,f,h,d){const g=e.suspense=Wh(e,o,r,t.parentNode,document.createElement("div"),null,s,c,f,h,!0),v=d(t,g.pendingBranch=e.ssContent,r,g,c,f);return g.deps===0&&g.resolve(!1,!0),v}function U_(t){const{shapeFlag:e,children:r}=t,o=e&32;t.ssContent=zg(o?r.default:r),t.ssFallback=o?zg(r.fallback):It(sn)}function zg(t){let e;if(Gt(t)){const r=hs&&t._c;r&&(t._d=!1,tt()),t=t(),r&&(t._d=!0,e=jn,K0())}return Ft(t)&&(t=$_(t)),t=lr(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function j_(t,e){e&&e.pendingBranch?Ft(t)?e.effects.push(...t):e.effects.push(t):Bf(t)}function ss(t,e){t.activeBranch=e;const{vnode:r,parentComponent:o}=t;let s=e.el;for(;!s&&e.component;)e=e.component.subTree,s=e.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,Bh(o,s))}function V_(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}function Yc(t,e,r=tn,o=!1){if(r){const s=r[t]||(r[t]=[]),c=e.__weh||(e.__weh=(...f)=>{Bi();const h=Xl(r),d=Gn(e,r,t,f);return h(),Wi(),d});return o?s.unshift(c):s.push(c),c}}const Qr=t=>(e,r=tn)=>{(!tu||t==="sp")&&Yc(t,(...o)=>e(...o),r)},G_=Qr("bm"),xs=Qr("m"),K_=Qr("bu"),X_=Qr("u"),L0=Qr("bum"),Uh=Qr("um"),Y_=Qr("sp"),Z_=Qr("rtg"),J_=Qr("rtc");function Q_(t,e=tn){Yc("ec",t,e)}function Se(t,e){if(Ve===null)return t;const r=eu(Ve),o=t.dirs||(t.dirs=[]);for(let s=0;s<e.length;s++){let[c,f,h,d=ye]=e[s];c&&(Gt(c)&&(c={mounted:c,updated:c}),c.deep&&Ti(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:h,modifiers:d}))}return t}function oo(t,e,r,o){const s=t.dirs,c=e&&e.dirs;for(let f=0;f<s.length;f++){const h=s[f];c&&(h.oldValue=c[f].value);let d=h.dir[o];d&&(Bi(),Gn(d,r,8,[t.el,h,t,e]),Wi())}}function Rn(t,e,r,o){let s;const c=r;if(Ft(t)||De(t)){s=new Array(t.length);for(let f=0,h=t.length;f<h;f++)s[f]=e(t[f],f,void 0,c)}else if(typeof t=="number"){s=new Array(t);for(let f=0;f<t;f++)s[f]=e(f+1,f,void 0,c)}else if(be(t))if(t[Symbol.iterator])s=Array.from(t,(f,h)=>e(f,h,void 0,c));else{const f=Object.keys(t);s=new Array(f.length);for(let h=0,d=f.length;h<d;h++){const g=f[h];s[h]=e(t[g],g,h,c)}}else s=[];return s}/*! #__NO_SIDE_EFFECTS__ */function fe(t,e){return Gt(t)?Re({name:t.name},e,{setup:t}):t}const dl=t=>!!t.type.__asyncLoader;function Kn(t,e,r={},o,s){if(Ve.isCE||Ve.parent&&dl(Ve.parent)&&Ve.parent.isCE)return e!=="default"&&(r.name=e),It("slot",r,o&&o());let c=t[e];c&&c._c&&(c._d=!1),tt();const f=c&&A0(c(r)),h=Yt(ie,{key:r.key||f&&f.key||`_${e}`},f||(o?o():[]),f&&t._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),c&&c._c&&(c._d=!0),h}function A0(t){return t.some(e=>Ml(e)?!(e.type===sn||e.type===ie&&!A0(e.children)):!0)?t:null}const Uf=t=>t?J0(t)?eu(t):Uf(t.parent):null,pl=Re(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Uf(t.parent),$root:t=>Uf(t.root),$emit:t=>t.emit,$options:t=>jh(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,qh(t.update)}),$nextTick:t=>t.n||(t.n=Mr.bind(t.proxy)),$watch:t=>_S.bind(t)}),df=(t,e)=>t!==ye&&!t.__isScriptSetup&&le(t,e),tS={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:h,appContext:d}=t;let g;if(e[0]!=="$"){const _=f[e];if(_!==void 0)switch(_){case 1:return o[e];case 2:return s[e];case 4:return r[e];case 3:return c[e]}else{if(df(o,e))return f[e]=1,o[e];if(s!==ye&&le(s,e))return f[e]=2,s[e];if((g=t.propsOptions[0])&&le(g,e))return f[e]=3,c[e];if(r!==ye&&le(r,e))return f[e]=4,r[e];Vf&&(f[e]=0)}}const v=pl[e];let y,w;if(v)return e==="$attrs"&&Mn(t.attrs,"get",""),v(t);if((y=h.__cssModules)&&(y=y[e]))return y;if(r!==ye&&le(r,e))return f[e]=4,r[e];if(w=d.config.globalProperties,le(w,e))return w[e]},set({_:t},e,r){const{data:o,setupState:s,ctx:c}=t;return df(s,e)?(s[e]=r,!0):o!==ye&&le(o,e)?(o[e]=r,!0):le(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(c[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:o,appContext:s,propsOptions:c}},f){let h;return!!r[f]||t!==ye&&le(t,f)||df(e,f)||(h=c[0])&&le(h,f)||le(o,f)||le(pl,f)||le(s.config.globalProperties,f)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:le(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function eS(){return nS().attrs}function nS(){const t=Kl();return t.setupContext||(t.setupContext=ty(t))}function yc(t){return Ft(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}function jf(t,e){return!t||!e?t||e:Ft(t)&&Ft(e)?t.concat(e):Re({},yc(t),yc(e))}let Vf=!0;function rS(t){const e=jh(t),r=t.proxy,o=t.ctx;Vf=!1,e.beforeCreate&&Ig(e.beforeCreate,t,"bc");const{data:s,computed:c,methods:f,watch:h,provide:d,inject:g,created:v,beforeMount:y,mounted:w,beforeUpdate:_,updated:L,activated:M,deactivated:A,beforeDestroy:T,beforeUnmount:E,destroyed:P,unmounted:$,render:H,renderTracked:F,renderTriggered:ct,errorCaptured:ut,serverPrefetch:st,expose:X,inheritAttrs:ft,components:rt,directives:V,filters:z}=e;if(g&&iS(g,o,null),f)for(const U in f){const Q=f[U];Gt(Q)&&(o[U]=Q.bind(r))}if(s){const U=s.call(r,r);be(U)&&(t.data=Cr(U))}if(Vf=!0,c)for(const U in c){const Q=c[U],mt=Gt(Q)?Q.bind(r,r):Gt(Q.get)?Q.get.bind(r,r):Un,Mt=!Gt(Q)&&Gt(Q.set)?Q.set.bind(r):Un,Ht=_t({get:mt,set:Mt});Object.defineProperty(o,U,{enumerable:!0,configurable:!0,get:()=>Ht.value,set:Wt=>Ht.value=Wt})}if(h)for(const U in h)M0(h[U],o,r,U);if(d){const U=Gt(d)?d.call(r):d;Reflect.ownKeys(U).forEach(Q=>{nc(Q,U[Q])})}v&&Ig(v,t,"c");function q(U,Q){Ft(Q)?Q.forEach(mt=>U(mt.bind(r))):Q&&U(Q.bind(r))}if(q(G_,y),q(xs,w),q(K_,_),q(X_,L),q(SS,M),q(kS,A),q(Q_,ut),q(J_,F),q(Z_,ct),q(L0,E),q(Uh,$),q(Y_,st),Ft(X))if(X.length){const U=t.exposed||(t.exposed={});X.forEach(Q=>{Object.defineProperty(U,Q,{get:()=>r[Q],set:mt=>r[Q]=mt})})}else t.exposed||(t.exposed={});H&&t.render===Un&&(t.render=H),ft!=null&&(t.inheritAttrs=ft),rt&&(t.components=rt),V&&(t.directives=V)}function iS(t,e,r=Un){Ft(t)&&(t=Gf(t));for(const o in t){const s=t[o];let c;be(s)?"default"in s?c=Xr(s.from||o,s.default,!0):c=Xr(s.from||o):c=Xr(s),Ae(c)?Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):e[o]=c}}function Ig(t,e,r){Gn(Ft(t)?t.map(o=>o.bind(e.proxy)):t.bind(e.proxy),e,r)}function M0(t,e,r,o){const s=o.includes(".")?B0(r,o):()=>r[o];if(De(t)){const c=e[t];Gt(c)&&Ge(s,c)}else if(Gt(t))Ge(s,t.bind(r));else if(be(t))if(Ft(t))t.forEach(c=>M0(c,e,r,o));else{const c=Gt(t.handler)?t.handler.bind(r):e[t.handler];Gt(c)&&Ge(s,c,t)}}function jh(t){const e=t.type,{mixins:r,extends:o}=e,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=t.appContext,h=c.get(e);let d;return h?d=h:!s.length&&!r&&!o?d=e:(d={},s.length&&s.forEach(g=>bc(d,g,f,!0)),bc(d,e,f)),be(e)&&c.set(e,d),d}function bc(t,e,r,o=!1){const{mixins:s,extends:c}=e;c&&bc(t,c,r,!0),s&&s.forEach(f=>bc(t,f,r,!0));for(const f in e)if(!(o&&f==="expose")){const h=oS[f]||r&&r[f];t[f]=h?h(t[f],e[f]):e[f]}return t}const oS={data:Fg,props:Hg,emits:Hg,methods:ll,computed:ll,beforeCreate:vn,created:vn,beforeMount:vn,mounted:vn,beforeUpdate:vn,updated:vn,beforeDestroy:vn,beforeUnmount:vn,destroyed:vn,unmounted:vn,activated:vn,deactivated:vn,errorCaptured:vn,serverPrefetch:vn,components:ll,directives:ll,watch:lS,provide:Fg,inject:sS};function Fg(t,e){return e?t?function(){return Re(Gt(t)?t.call(this,this):t,Gt(e)?e.call(this,this):e)}:e:t}function sS(t,e){return ll(Gf(t),Gf(e))}function Gf(t){if(Ft(t)){const e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function vn(t,e){return t?[...new Set([].concat(t,e))]:e}function ll(t,e){return t?Re(Object.create(null),t,e):e}function Hg(t,e){return t?Ft(t)&&Ft(e)?[...new Set([...t,...e])]:Re(Object.create(null),yc(t),yc(e??{})):e}function lS(t,e){if(!t)return e;if(!e)return t;const r=Re(Object.create(null),t);for(const o in e)r[o]=vn(t[o],e[o]);return r}function N0(){return{app:null,config:{isNativeTag:Ix,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 aS=0;function cS(t,e){return function(o,s=null){Gt(o)||(o=Re({},o)),s!=null&&!be(s)&&(s=null);const c=N0(),f=new WeakSet;let h=!1;const d=c.app={_uid:aS++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:FS,get config(){return c.config},set config(g){},use(g,...v){return f.has(g)||(g&&Gt(g.install)?(f.add(g),g.install(d,...v)):Gt(g)&&(f.add(g),g(d,...v))),d},mixin(g){return c.mixins.includes(g)||c.mixins.push(g),d},component(g,v){return v?(c.components[g]=v,d):c.components[g]},directive(g,v){return v?(c.directives[g]=v,d):c.directives[g]},mount(g,v,y){if(!h){const w=It(o,s);return w.appContext=c,y===!0?y="svg":y===!1&&(y=void 0),v&&e?e(w,g):t(w,g,y),h=!0,d._container=g,g.__vue_app__=d,eu(w.component)}},unmount(){h&&(t(null,d._container),delete d._container.__vue_app__)},provide(g,v){return c.provides[g]=v,d},runWithContext(g){const v=gl;gl=d;try{return g()}finally{gl=v}}};return d}}let gl=null;function nc(t,e){if(tn){let r=tn.provides;const o=tn.parent&&tn.parent.provides;o===r&&(r=tn.provides=Object.create(o)),r[t]=e}}function Xr(t,e,r=!1){const o=tn||Ve;if(o||gl){const s=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:gl._context.provides;if(s&&t in s)return s[t];if(arguments.length>1)return r&&Gt(e)?e.call(o&&o.proxy):e}}const $0={},P0=()=>Object.create($0),O0=t=>Object.getPrototypeOf(t)===$0;function uS(t,e,r,o=!1){const s={},c=P0();t.propsDefaults=Object.create(null),R0(t,e,s,c);for(const f in t.propsOptions[0])f in s||(s[f]=void 0);r?t.props=o?s:f0(s):t.type.props?t.props=s:t.props=c,t.attrs=c}function fS(t,e,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=t,h=ue(s),[d]=t.propsOptions;let g=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=t.vnode.dynamicProps;for(let y=0;y<v.length;y++){let w=v[y];if(Kc(t.emitsOptions,w))continue;const _=e[w];if(d)if(le(c,w))_!==c[w]&&(c[w]=_,g=!0);else{const L=hr(w);s[L]=Kf(d,h,L,_,t,!1)}else _!==c[w]&&(c[w]=_,g=!0)}}}else{R0(t,e,s,c)&&(g=!0);let v;for(const y in h)(!e||!le(e,y)&&((v=qi(y))===y||!le(e,v)))&&(d?r&&(r[y]!==void 0||r[v]!==void 0)&&(s[y]=Kf(d,h,y,void 0,t,!0)):delete s[y]);if(c!==h)for(const y in c)(!e||!le(e,y))&&(delete c[y],g=!0)}g&&Kr(t.attrs,"set","")}function R0(t,e,r,o){const[s,c]=t.propsOptions;let f=!1,h;if(e)for(let d in e){if(ul(d))continue;const g=e[d];let v;s&&le(s,v=hr(d))?!c||!c.includes(v)?r[v]=g:(h||(h={}))[v]=g:Kc(t.emitsOptions,d)||(!(d in o)||g!==o[d])&&(o[d]=g,f=!0)}if(c){const d=ue(r),g=h||ye;for(let v=0;v<c.length;v++){const y=c[v];r[y]=Kf(s,d,y,g[y],t,!le(g,y))}}return f}function Kf(t,e,r,o,s,c){const f=t[r];if(f!=null){const h=le(f,"default");if(h&&o===void 0){const d=f.default;if(f.type!==Function&&!f.skipFactory&&Gt(d)){const{propsDefaults:g}=s;if(r in g)o=g[r];else{const v=Xl(s);o=g[r]=d.call(null,e),v()}}else o=d}f[0]&&(c&&!h?o=!1:f[1]&&(o===""||o===qi(r))&&(o=!0))}return o}function D0(t,e,r=!1){const o=e.propsCache,s=o.get(t);if(s)return s;const c=t.props,f={},h=[];let d=!1;if(!Gt(t)){const v=y=>{d=!0;const[w,_]=D0(y,e,!0);Re(f,w),_&&h.push(..._)};!r&&e.mixins.length&&e.mixins.forEach(v),t.extends&&v(t.extends),t.mixins&&t.mixins.forEach(v)}if(!c&&!d)return be(t)&&o.set(t,rs),rs;if(Ft(c))for(let v=0;v<c.length;v++){const y=hr(c[v]);qg(y)&&(f[y]=ye)}else if(c)for(const v in c){const y=hr(v);if(qg(y)){const w=c[v],_=f[y]=Ft(w)||Gt(w)?{type:w}:Re({},w);if(_){const L=Ug(Boolean,_.type),M=Ug(String,_.type);_[0]=L>-1,_[1]=M<0||L<M,(L>-1||le(_,"default"))&&h.push(y)}}}const g=[f,h];return be(t)&&o.set(t,g),g}function qg(t){return t[0]!=="$"&&!ul(t)}function Bg(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function Wg(t,e){return Bg(t)===Bg(e)}function Ug(t,e){return Ft(e)?e.findIndex(r=>Wg(r,t)):Gt(e)&&Wg(e,t)?0:-1}const z0=t=>t[0]==="_"||t==="$stable",Vh=t=>Ft(t)?t.map(lr):[lr(t)],hS=(t,e,r)=>{if(e._n)return e;const o=oe((...s)=>Vh(e(...s)),r);return o._c=!1,o},I0=(t,e,r)=>{const o=t._ctx;for(const s in t){if(z0(s))continue;const c=t[s];if(Gt(c))e[s]=hS(s,c,o);else if(c!=null){const f=Vh(c);e[s]=()=>f}}},F0=(t,e)=>{const r=Vh(e);t.slots.default=()=>r},dS=(t,e)=>{const r=t.slots=P0();if(t.vnode.shapeFlag&32){const o=e._;o?(Re(r,e),Km(r,"_",o,!0)):I0(e,r)}else e&&F0(t,e)},pS=(t,e,r)=>{const{vnode:o,slots:s}=t;let c=!0,f=ye;if(o.shapeFlag&32){const h=e._;h?r&&h===1?c=!1:(Re(s,e),!r&&h===1&&delete s._):(c=!e.$stable,I0(e,s)),f=e}else e&&(F0(t,e),f={default:1});if(c)for(const h in s)!z0(h)&&f[h]==null&&delete s[h]};function Xf(t,e,r,o,s=!1){if(Ft(t)){t.forEach((w,_)=>Xf(w,e&&(Ft(e)?e[_]:e),r,o,s));return}if(dl(o)&&!s)return;const c=o.shapeFlag&4?eu(o.component):o.el,f=s?null:c,{i:h,r:d}=t,g=e&&e.r,v=h.refs===ye?h.refs={}:h.refs,y=h.setupState;if(g!=null&&g!==d&&(De(g)?(v[g]=null,le(y,g)&&(y[g]=null)):Ae(g)&&(g.value=null)),Gt(d))$i(d,h,12,[f,v]);else{const w=De(d),_=Ae(d);if(w||_){const L=()=>{if(t.f){const M=w?le(y,d)?y[d]:v[d]:d.value;s?Ft(M)&&Ah(M,c):Ft(M)?M.includes(c)||M.push(c):w?(v[d]=[c],le(y,d)&&(y[d]=v[d])):(d.value=[c],t.k&&(v[t.k]=d.value))}else w?(v[d]=f,le(y,d)&&(y[d]=f)):_&&(d.value=f,t.k&&(v[t.k]=f))};f?(L.id=-1,Tn(L,r)):L()}}}const Tn=j_;function gS(t){return vS(t)}function vS(t,e){const r=Ym();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:h,createComment:d,setText:g,setElementText:v,parentNode:y,nextSibling:w,setScopeId:_=Un,insertStaticContent:L}=t,M=(O,I,K,ot=null,nt=null,vt=null,kt=void 0,lt=null,bt=!!I.dynamicChildren)=>{if(O===I)return;O&&!Sr(O,I)&&(ot=G(O),Wt(O,nt,vt,!0),O=null),I.patchFlag===-2&&(bt=!1,I.dynamicChildren=null);const{type:dt,ref:At,shapeFlag:zt}=I;switch(dt){case Qc:A(O,I,K,ot);break;case sn:T(O,I,K,ot);break;case vf:O==null&&E(I,K,ot,kt);break;case ie:rt(O,I,K,ot,nt,vt,kt,lt,bt);break;default:zt&1?H(O,I,K,ot,nt,vt,kt,lt,bt):zt&6?V(O,I,K,ot,nt,vt,kt,lt,bt):(zt&64||zt&128)&&dt.process(O,I,K,ot,nt,vt,kt,lt,bt,Nt)}At!=null&&nt&&Xf(At,O&&O.ref,vt,I||O,!I)},A=(O,I,K,ot)=>{if(O==null)o(I.el=h(I.children),K,ot);else{const nt=I.el=O.el;I.children!==O.children&&g(nt,I.children)}},T=(O,I,K,ot)=>{O==null?o(I.el=d(I.children||""),K,ot):I.el=O.el},E=(O,I,K,ot)=>{[O.el,O.anchor]=L(O.children,I,K,ot,O.el,O.anchor)},P=({el:O,anchor:I},K,ot)=>{let nt;for(;O&&O!==I;)nt=w(O),o(O,K,ot),O=nt;o(I,K,ot)},$=({el:O,anchor:I})=>{let K;for(;O&&O!==I;)K=w(O),s(O),O=K;s(I)},H=(O,I,K,ot,nt,vt,kt,lt,bt)=>{I.type==="svg"?kt="svg":I.type==="math"&&(kt="mathml"),O==null?F(I,K,ot,nt,vt,kt,lt,bt):st(O,I,nt,vt,kt,lt,bt)},F=(O,I,K,ot,nt,vt,kt,lt)=>{let bt,dt;const{props:At,shapeFlag:zt,transition:Ot,dirs:qt}=O;if(bt=O.el=f(O.type,vt,At&&At.is,At),zt&8?v(bt,O.children):zt&16&&ut(O.children,bt,null,ot,nt,pf(O,vt),kt,lt),qt&&oo(O,null,ot,"created"),ct(bt,O,O.scopeId,kt,ot),At){for(const pe in At)pe!=="value"&&!ul(pe)&&c(bt,pe,null,At[pe],vt,O.children,ot,nt,Tt);"value"in At&&c(bt,"value",null,At.value,vt),(dt=At.onVnodeBeforeMount)&&xr(dt,ot,O)}qt&&oo(O,null,ot,"beforeMount");const Ut=mS(nt,Ot);Ut&&Ot.beforeEnter(bt),o(bt,I,K),((dt=At&&At.onVnodeMounted)||Ut||qt)&&Tn(()=>{dt&&xr(dt,ot,O),Ut&&Ot.enter(bt),qt&&oo(O,null,ot,"mounted")},nt)},ct=(O,I,K,ot,nt)=>{if(K&&_(O,K),ot)for(let vt=0;vt<ot.length;vt++)_(O,ot[vt]);if(nt){let vt=nt.subTree;if(I===vt){const kt=nt.vnode;ct(O,kt,kt.scopeId,kt.slotScopeIds,nt.parent)}}},ut=(O,I,K,ot,nt,vt,kt,lt,bt=0)=>{for(let dt=bt;dt<O.length;dt++){const At=O[dt]=lt?_i(O[dt]):lr(O[dt]);M(null,At,I,K,ot,nt,vt,kt,lt)}},st=(O,I,K,ot,nt,vt,kt)=>{const lt=I.el=O.el;let{patchFlag:bt,dynamicChildren:dt,dirs:At}=I;bt|=O.patchFlag&16;const zt=O.props||ye,Ot=I.props||ye;let qt;if(K&&so(K,!1),(qt=Ot.onVnodeBeforeUpdate)&&xr(qt,K,I,O),At&&oo(I,O,K,"beforeUpdate"),K&&so(K,!0),dt?X(O.dynamicChildren,dt,lt,K,ot,pf(I,nt),vt):kt||Q(O,I,lt,null,K,ot,pf(I,nt),vt,!1),bt>0){if(bt&16)ft(lt,I,zt,Ot,K,ot,nt);else if(bt&2&&zt.class!==Ot.class&&c(lt,"class",null,Ot.class,nt),bt&4&&c(lt,"style",zt.style,Ot.style,nt),bt&8){const Ut=I.dynamicProps;for(let pe=0;pe<Ut.length;pe++){const te=Ut[pe],ee=zt[te],ze=Ot[te];(ze!==ee||te==="value")&&c(lt,te,ee,ze,nt,O.children,K,ot,Tt)}}bt&1&&O.children!==I.children&&v(lt,I.children)}else!kt&&dt==null&&ft(lt,I,zt,Ot,K,ot,nt);((qt=Ot.onVnodeUpdated)||At)&&Tn(()=>{qt&&xr(qt,K,I,O),At&&oo(I,O,K,"updated")},ot)},X=(O,I,K,ot,nt,vt,kt)=>{for(let lt=0;lt<I.length;lt++){const bt=O[lt],dt=I[lt],At=bt.el&&(bt.type===ie||!Sr(bt,dt)||bt.shapeFlag&70)?y(bt.el):K;M(bt,dt,At,null,ot,nt,vt,kt,!0)}},ft=(O,I,K,ot,nt,vt,kt)=>{if(K!==ot){if(K!==ye)for(const lt in K)!ul(lt)&&!(lt in ot)&&c(O,lt,K[lt],null,kt,I.children,nt,vt,Tt);for(const lt in ot){if(ul(lt))continue;const bt=ot[lt],dt=K[lt];bt!==dt&<!=="value"&&c(O,lt,dt,bt,kt,I.children,nt,vt,Tt)}"value"in ot&&c(O,"value",K.value,ot.value,kt)}},rt=(O,I,K,ot,nt,vt,kt,lt,bt)=>{const dt=I.el=O?O.el:h(""),At=I.anchor=O?O.anchor:h("");let{patchFlag:zt,dynamicChildren:Ot,slotScopeIds:qt}=I;qt&&(lt=lt?lt.concat(qt):qt),O==null?(o(dt,K,ot),o(At,K,ot),ut(I.children||[],K,At,nt,vt,kt,lt,bt)):zt>0&&zt&64&&Ot&&O.dynamicChildren?(X(O.dynamicChildren,Ot,K,nt,vt,kt,lt),(I.key!=null||nt&&I===nt.subTree)&&H0(O,I,!0)):Q(O,I,K,At,nt,vt,kt,lt,bt)},V=(O,I,K,ot,nt,vt,kt,lt,bt)=>{I.slotScopeIds=lt,O==null?I.shapeFlag&512?nt.ctx.activate(I,K,ot,kt,bt):z(I,K,ot,nt,vt,kt,bt):k(O,I,bt)},z=(O,I,K,ot,nt,vt,kt)=>{const lt=O.component=PS(O,ot,nt);if(Jc(O)&&(lt.ctx.renderer=Nt),OS(lt),lt.asyncDep){if(nt&&nt.registerDep(lt,q,kt),!O.el){const bt=lt.subTree=It(sn);T(null,bt,I,K)}}else q(lt,O,I,K,nt,vt,kt)},k=(O,I,K)=>{const ot=I.component=O.component;if(R_(O,I,K))if(ot.asyncDep&&!ot.asyncResolved){U(ot,I,K);return}else ot.next=I,L_(ot.update),ot.effect.dirty=!0,ot.update();else I.el=O.el,ot.vnode=I},q=(O,I,K,ot,nt,vt,kt)=>{const lt=()=>{if(O.isMounted){let{next:At,bu:zt,u:Ot,parent:qt,vnode:Ut}=O;{const Ke=q0(O);if(Ke){At&&(At.el=Ut.el,U(O,At,kt)),Ke.asyncDep.then(()=>{O.isUnmounted||lt()});return}}let pe=At,te;so(O,!1),At?(At.el=Ut.el,U(O,At,kt)):At=Ut,zt&&ec(zt),(te=At.props&&At.props.onVnodeBeforeUpdate)&&xr(te,qt,At,Ut),so(O,!0);const ee=hf(O),ze=O.subTree;O.subTree=ee,M(ze,ee,y(ze.el),G(ze),O,nt,vt),At.el=ee.el,pe===null&&Bh(O,ee.el),Ot&&Tn(Ot,nt),(te=At.props&&At.props.onVnodeUpdated)&&Tn(()=>xr(te,qt,At,Ut),nt)}else{let At;const{el:zt,props:Ot}=I,{bm:qt,m:Ut,parent:pe}=O,te=dl(I);if(so(O,!1),qt&&ec(qt),!te&&(At=Ot&&Ot.onVnodeBeforeMount)&&xr(At,pe,I),so(O,!0),zt&&Xt){const ee=()=>{O.subTree=hf(O),Xt(zt,O.subTree,O,nt,null)};te?I.type.__asyncLoader().then(()=>!O.isUnmounted&&ee()):ee()}else{const ee=O.subTree=hf(O);M(null,ee,K,ot,O,nt,vt),I.el=ee.el}if(Ut&&Tn(Ut,nt),!te&&(At=Ot&&Ot.onVnodeMounted)){const ee=I;Tn(()=>xr(At,pe,ee),nt)}(I.shapeFlag&256||pe&&dl(pe.vnode)&&pe.vnode.shapeFlag&256)&&O.a&&Tn(O.a,nt),O.isMounted=!0,I=K=ot=null}},bt=O.effect=new Nh(lt,Un,()=>qh(dt),O.scope),dt=O.update=()=>{bt.dirty&&bt.run()};dt.id=O.uid,so(O,!0),dt()},U=(O,I,K)=>{I.component=O;const ot=O.vnode.props;O.vnode=I,O.next=null,fS(O,I.props,ot,K),pS(O,I.children,K),Bi(),Og(O),Wi()},Q=(O,I,K,ot,nt,vt,kt,lt,bt=!1)=>{const dt=O&&O.children,At=O?O.shapeFlag:0,zt=I.children,{patchFlag:Ot,shapeFlag:qt}=I;if(Ot>0){if(Ot&128){Mt(dt,zt,K,ot,nt,vt,kt,lt,bt);return}else if(Ot&256){mt(dt,zt,K,ot,nt,vt,kt,lt,bt);return}}qt&8?(At&16&&Tt(dt,nt,vt),zt!==dt&&v(K,zt)):At&16?qt&16?Mt(dt,zt,K,ot,nt,vt,kt,lt,bt):Tt(dt,nt,vt,!0):(At&8&&v(K,""),qt&16&&ut(zt,K,ot,nt,vt,kt,lt,bt))},mt=(O,I,K,ot,nt,vt,kt,lt,bt)=>{O=O||rs,I=I||rs;const dt=O.length,At=I.length,zt=Math.min(dt,At);let Ot;for(Ot=0;Ot<zt;Ot++){const qt=I[Ot]=bt?_i(I[Ot]):lr(I[Ot]);M(O[Ot],qt,K,null,nt,vt,kt,lt,bt)}dt>At?Tt(O,nt,vt,!0,!1,zt):ut(I,K,ot,nt,vt,kt,lt,bt,zt)},Mt=(O,I,K,ot,nt,vt,kt,lt,bt)=>{let dt=0;const At=I.length;let zt=O.length-1,Ot=At-1;for(;dt<=zt&&dt<=Ot;){const qt=O[dt],Ut=I[dt]=bt?_i(I[dt]):lr(I[dt]);if(Sr(qt,Ut))M(qt,Ut,K,null,nt,vt,kt,lt,bt);else break;dt++}for(;dt<=zt&&dt<=Ot;){const qt=O[zt],Ut=I[Ot]=bt?_i(I[Ot]):lr(I[Ot]);if(Sr(qt,Ut))M(qt,Ut,K,null,nt,vt,kt,lt,bt);else break;zt--,Ot--}if(dt>zt){if(dt<=Ot){const qt=Ot+1,Ut=qt<At?I[qt].el:ot;for(;dt<=Ot;)M(null,I[dt]=bt?_i(I[dt]):lr(I[dt]),K,Ut,nt,vt,kt,lt,bt),dt++}}else if(dt>Ot)for(;dt<=zt;)Wt(O[dt],nt,vt,!0),dt++;else{const qt=dt,Ut=dt,pe=new Map;for(dt=Ut;dt<=Ot;dt++){const Xe=I[dt]=bt?_i(I[dt]):lr(I[dt]);Xe.key!=null&&pe.set(Xe.key,dt)}let te,ee=0;const ze=Ot-Ut+1;let Ke=!1,Xn=0;const Nn=new Array(ze);for(dt=0;dt<ze;dt++)Nn[dt]=0;for(dt=qt;dt<=zt;dt++){const Xe=O[dt];if(ee>=ze){Wt(Xe,nt,vt,!0);continue}let Bt;if(Xe.key!=null)Bt=pe.get(Xe.key);else for(te=Ut;te<=Ot;te++)if(Nn[te-Ut]===0&&Sr(Xe,I[te])){Bt=te;break}Bt===void 0?Wt(Xe,nt,vt,!0):(Nn[Bt-Ut]=dt+1,Bt>=Xn?Xn=Bt:Ke=!0,M(Xe,I[Bt],K,null,nt,vt,kt,lt,bt),ee++)}const Yn=Ke?yS(Nn):rs;for(te=Yn.length-1,dt=ze-1;dt>=0;dt--){const Xe=Ut+dt,Bt=I[Xe],Vi=Xe+1<At?I[Xe+1].el:ot;Nn[dt]===0?M(null,Bt,K,Vi,nt,vt,kt,lt,bt):Ke&&(te<0||dt!==Yn[te]?Ht(Bt,K,Vi,2):te--)}}},Ht=(O,I,K,ot,nt=null)=>{const{el:vt,type:kt,transition:lt,children:bt,shapeFlag:dt}=O;if(dt&6){Ht(O.component.subTree,I,K,ot);return}if(dt&128){O.suspense.move(I,K,ot);return}if(dt&64){kt.move(O,I,K,Nt);return}if(kt===ie){o(vt,I,K);for(let zt=0;zt<bt.length;zt++)Ht(bt[zt],I,K,ot);o(O.anchor,I,K);return}if(kt===vf){P(O,I,K);return}if(ot!==2&&dt&1&<)if(ot===0)lt.beforeEnter(vt),o(vt,I,K),Tn(()=>lt.enter(vt),nt);else{const{leave:zt,delayLeave:Ot,afterLeave:qt}=lt,Ut=()=>o(vt,I,K),pe=()=>{zt(vt,()=>{Ut(),qt&&qt()})};Ot?Ot(vt,Ut,pe):pe()}else o(vt,I,K)},Wt=(O,I,K,ot=!1,nt=!1)=>{const{type:vt,props:kt,ref:lt,children:bt,dynamicChildren:dt,shapeFlag:At,patchFlag:zt,dirs:Ot,memoIndex:qt}=O;if(lt!=null&&Xf(lt,null,K,O,!0),qt!=null&&(I.renderCache[qt]=void 0),At&256){I.ctx.deactivate(O);return}const Ut=At&1&&Ot,pe=!dl(O);let te;if(pe&&(te=kt&&kt.onVnodeBeforeUnmount)&&xr(te,I,O),At&6)Zt(O.component,K,ot);else{if(At&128){O.suspense.unmount(K,ot);return}Ut&&oo(O,null,I,"beforeUnmount"),At&64?O.type.remove(O,I,K,nt,Nt,ot):dt&&(vt!==ie||zt>0&&zt&64)?Tt(dt,I,K,!1,!0):(vt===ie&&zt&384||!nt&&At&16)&&Tt(bt,I,K),ot&&re(O)}(pe&&(te=kt&&kt.onVnodeUnmounted)||Ut)&&Tn(()=>{te&&xr(te,I,O),Ut&&oo(O,null,I,"unmounted")},K)},re=O=>{const{type:I,el:K,anchor:ot,transition:nt}=O;if(I===ie){ne(K,ot);return}if(I===vf){$(O);return}const vt=()=>{s(K),nt&&!nt.persisted&&nt.afterLeave&&nt.afterLeave()};if(O.shapeFlag&1&&nt&&!nt.persisted){const{leave:kt,delayLeave:lt}=nt,bt=()=>kt(K,vt);lt?lt(O.el,vt,bt):bt()}else vt()},ne=(O,I)=>{let K;for(;O!==I;)K=w(O),s(O),O=K;s(I)},Zt=(O,I,K)=>{const{bum:ot,scope:nt,update:vt,subTree:kt,um:lt,m:bt,a:dt}=O;jg(bt),jg(dt),ot&&ec(ot),nt.stop(),vt&&(vt.active=!1,Wt(kt,O,I,K)),lt&&Tn(lt,I),Tn(()=>{O.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},Tt=(O,I,K,ot=!1,nt=!1,vt=0)=>{for(let kt=vt;kt<O.length;kt++)Wt(O[kt],I,K,ot,nt)},G=O=>O.shapeFlag&6?G(O.component.subTree):O.shapeFlag&128?O.suspense.next():w(O.anchor||O.el);let it=!1;const ht=(O,I,K)=>{O==null?I._vnode&&Wt(I._vnode,null,null,!0):M(I._vnode||null,O,I,null,null,null,K),it||(it=!0,Og(),x0(),it=!1),I._vnode=O},Nt={p:M,um:Wt,m:Ht,r:re,mt:z,mc:ut,pc:Q,pbc:X,n:G,o:t};let Et,Xt;return{render:ht,hydrate:Et,createApp:cS(ht,Et)}}function pf({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function so({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function mS(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function H0(t,e,r=!1){const o=t.children,s=e.children;if(Ft(o)&&Ft(s))for(let c=0;c<o.length;c++){const f=o[c];let h=s[c];h.shapeFlag&1&&!h.dynamicChildren&&((h.patchFlag<=0||h.patchFlag===32)&&(h=s[c]=_i(s[c]),h.el=f.el),!r&&h.patchFlag!==-2&&H0(f,h)),h.type===Qc&&(h.el=f.el)}}function yS(t){const e=t.slice(),r=[0];let o,s,c,f,h;const d=t.length;for(o=0;o<d;o++){const g=t[o];if(g!==0){if(s=r[r.length-1],t[s]<g){e[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)h=c+f>>1,t[r[h]]<g?c=h+1:f=h;g<t[r[c]]&&(c>0&&(e[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=e[f];return r}function q0(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:q0(e)}function jg(t){if(t)for(let e=0;e<t.length;e++)t[e].active=!1}const bS=Symbol.for("v-scx"),wS=()=>Xr(bS);function Gh(t,e){return Zc(t,null,e)}function xS(t,e){return Zc(t,null,{flush:"sync"})}const Ha={};function Ge(t,e,r){return Zc(t,e,r)}function Zc(t,e,{immediate:r,deep:o,flush:s,once:c,onTrack:f,onTrigger:h}=ye){if(e&&c){const F=e;e=(...ct)=>{F(...ct),H()}}const d=tn,g=F=>o===!0?F:Ti(F,o===!1?1:void 0);let v,y=!1,w=!1;if(Ae(t)?(v=()=>t.value,y=vc(t)):fl(t)?(v=()=>g(t),y=!0):Ft(t)?(w=!0,y=t.some(F=>fl(F)||vc(F)),v=()=>t.map(F=>{if(Ae(F))return F.value;if(fl(F))return g(F);if(Gt(F))return $i(F,d,2)})):Gt(t)?e?v=()=>$i(t,d,2):v=()=>(_&&_(),Gn(t,d,3,[L])):v=Un,e&&o){const F=v;v=()=>Ti(F())}let _,L=F=>{_=P.onStop=()=>{$i(F,d,4),_=P.onStop=void 0}},M;if(tu)if(L=Un,e?r&&Gn(e,d,3,[v(),w?[]:void 0,L]):v(),s==="sync"){const F=wS();M=F.__watcherHandles||(F.__watcherHandles=[])}else return Un;let A=w?new Array(t.length).fill(Ha):Ha;const T=()=>{if(!(!P.active||!P.dirty))if(e){const F=P.run();(o||y||(w?F.some((ct,ut)=>Ar(ct,A[ut])):Ar(F,A)))&&(_&&_(),Gn(e,d,3,[F,A===Ha?void 0:w&&A[0]===Ha?[]:A,L]),A=F)}else P.run()};T.allowRecurse=!!e;let E;s==="sync"?E=T:s==="post"?E=()=>Tn(T,d&&d.suspense):(T.pre=!0,d&&(T.id=d.uid),E=()=>qh(T));const P=new Nh(v,Un,E),$=Qm(),H=()=>{P.stop(),$&&Ah($.effects,P)};return e?r?T():A=P.run():s==="post"?Tn(P.run.bind(P),d&&d.suspense):P.run(),M&&M.push(H),H}function _S(t,e,r){const o=this.proxy,s=De(t)?t.includes(".")?B0(o,t):()=>o[t]:t.bind(o,o);let c;Gt(e)?c=e:(c=e.handler,r=e);const f=Xl(this),h=Zc(s,c.bind(o),r);return f(),h}function B0(t,e){const r=e.split(".");return()=>{let o=t;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function Ti(t,e=1/0,r){if(e<=0||!be(t)||t.__v_skip||(r=r||new Set,r.has(t)))return t;if(r.add(t),e--,Ae(t))Ti(t.value,e,r);else if(Ft(t))for(let o=0;o<t.length;o++)Ti(t[o],e,r);else if(Um(t)||is(t))t.forEach(o=>{Ti(o,e,r)});else if(Gm(t)){for(const o in t)Ti(t[o],e,r);for(const o of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,o)&&Ti(t[o],e,r)}return t}const Jc=t=>t.type.__isKeepAlive;function SS(t,e){W0(t,"a",e)}function kS(t,e){W0(t,"da",e)}function W0(t,e,r=tn){const o=t.__wdc||(t.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(Yc(e,o,r),r){let s=r.parent;for(;s&&s.parent;)Jc(s.parent.vnode)&&CS(o,e,r,s),s=s.parent}}function CS(t,e,r,o){const s=Yc(e,t,o,!0);Uh(()=>{Ah(o[e],s)},r)}const xi=Symbol("_leaveCb"),qa=Symbol("_enterCb");function TS(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return xs(()=>{t.isMounted=!0}),L0(()=>{t.isUnmounting=!0}),t}const qn=[Function,Array],U0={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qn,onEnter:qn,onAfterEnter:qn,onEnterCancelled:qn,onBeforeLeave:qn,onLeave:qn,onAfterLeave:qn,onLeaveCancelled:qn,onBeforeAppear:qn,onAppear:qn,onAfterAppear:qn,onAppearCancelled:qn},j0=t=>{const e=t.subTree;return e.component?j0(e.component):e},ES={name:"BaseTransition",props:U0,setup(t,{slots:e}){const r=Kl(),o=TS();return()=>{const s=e.default&&G0(e.default(),!0);if(!s||!s.length)return;let c=s[0];if(s.length>1){for(const w of s)if(w.type!==sn){c=w;break}}const f=ue(t),{mode:h}=f;if(o.isLeaving)return gf(c);const d=Vg(c);if(!d)return gf(c);let g=Yf(d,f,o,r,w=>g=w);wc(d,g);const v=r.subTree,y=v&&Vg(v);if(y&&y.type!==sn&&!Sr(d,y)&&j0(r).type!==sn){const w=Yf(y,f,o,r);if(wc(y,w),h==="out-in"&&d.type!==sn)return o.isLeaving=!0,w.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},gf(c);h==="in-out"&&d.type!==sn&&(w.delayLeave=(_,L,M)=>{const A=V0(o,y);A[String(y.key)]=y,_[xi]=()=>{L(),_[xi]=void 0,delete g.delayedLeave},g.delayedLeave=M})}return c}}},LS=ES;function V0(t,e){const{leavingVNodes:r}=t;let o=r.get(e.type);return o||(o=Object.create(null),r.set(e.type,o)),o}function Yf(t,e,r,o,s){const{appear:c,mode:f,persisted:h=!1,onBeforeEnter:d,onEnter:g,onAfterEnter:v,onEnterCancelled:y,onBeforeLeave:w,onLeave:_,onAfterLeave:L,onLeaveCancelled:M,onBeforeAppear:A,onAppear:T,onAfterAppear:E,onAppearCancelled:P}=e,$=String(t.key),H=V0(r,t),F=(st,X)=>{st&&Gn(st,o,9,X)},ct=(st,X)=>{const ft=X[1];F(st,X),Ft(st)?st.every(rt=>rt.length<=1)&&ft():st.length<=1&&ft()},ut={mode:f,persisted:h,beforeEnter(st){let X=d;if(!r.isMounted)if(c)X=A||d;else return;st[xi]&&st[xi](!0);const ft=H[$];ft&&Sr(t,ft)&&ft.el[xi]&&ft.el[xi](),F(X,[st])},enter(st){let X=g,ft=v,rt=y;if(!r.isMounted)if(c)X=T||g,ft=E||v,rt=P||y;else return;let V=!1;const z=st[qa]=k=>{V||(V=!0,k?F(rt,[st]):F(ft,[st]),ut.delayedLeave&&ut.delayedLeave(),st[qa]=void 0)};X?ct(X,[st,z]):z()},leave(st,X){const ft=String(t.key);if(st[qa]&&st[qa](!0),r.isUnmounting)return X();F(w,[st]);let rt=!1;const V=st[xi]=z=>{rt||(rt=!0,X(),z?F(M,[st]):F(L,[st]),st[xi]=void 0,H[ft]===t&&delete H[ft])};H[ft]=t,_?ct(_,[st,V]):V()},clone(st){const X=Yf(st,e,r,o,s);return s&&s(X),X}};return ut}function gf(t){if(Jc(t))return t=Di(t),t.children=null,t}function Vg(t){if(!Jc(t))return t;const{shapeFlag:e,children:r}=t;if(r){if(e&16)return r[0];if(e&32&&Gt(r.default))return r.default()}}function wc(t,e){t.shapeFlag&6&&t.component?wc(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function G0(t,e=!1,r){let o=[],s=0;for(let c=0;c<t.length;c++){let f=t[c];const h=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===ie?(f.patchFlag&128&&s++,o=o.concat(G0(f.children,e,h))):(e||f.type!==sn)&&o.push(h!=null?Di(f,{key:h}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}const AS=t=>t.__isTeleport,ie=Symbol.for("v-fgt"),Qc=Symbol.for("v-txt"),sn=Symbol.for("v-cmt"),vf=Symbol.for("v-stc"),vl=[];let jn=null;function tt(t=!1){vl.push(jn=t?null:[])}function K0(){vl.pop(),jn=vl[vl.length-1]||null}let hs=1;function xc(t){hs+=t}function X0(t){return t.dynamicChildren=hs>0?jn||rs:null,K0(),hs>0&&jn&&jn.push(t),t}function yt(t,e,r,o,s,c){return X0(J(t,e,r,o,s,c,!0))}function Yt(t,e,r,o,s){return X0(It(t,e,r,o,s,!0))}function Ml(t){return t?t.__v_isVNode===!0:!1}function Sr(t,e){return t.type===e.type&&t.key===e.key}const Y0=({key:t})=>t??null,rc=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?De(t)||Ae(t)||Gt(t)?{i:Ve,r:t,k:e,f:!!r}:t:null);function J(t,e=null,r=null,o=0,s=null,c=t===ie?0:1,f=!1,h=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Y0(e),ref:e&&rc(e),scopeId:Xc,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ve};return h?(Kh(d,r),c&128&&t.normalize(d)):r&&(d.shapeFlag|=De(r)?8:16),hs>0&&!f&&jn&&(d.patchFlag>0||c&6)&&d.patchFlag!==32&&jn.push(d),d}const It=MS;function MS(t,e=null,r=null,o=0,s=null,c=!1){if((!t||t===z_)&&(t=sn),Ml(t)){const h=Di(t,e,!0);return r&&Kh(h,r),hs>0&&!c&&jn&&(h.shapeFlag&6?jn[jn.indexOf(t)]=h:jn.push(h)),h.patchFlag=-2,h}if(IS(t)&&(t=t.__vccOpts),e){e=Z0(e);let{class:h,style:d}=e;h&&!De(h)&&(e.class=de(h)),be(d)&&(h0(d)&&!Ft(d)&&(d=Re({},d)),e.style=an(d))}const f=De(t)?1:I_(t)?128:AS(t)?64:be(t)?4:Gt(t)?2:0;return J(t,e,r,o,s,f,c,!0)}function Z0(t){return t?h0(t)||O0(t)?Re({},t):t:null}function Di(t,e,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:h,transition:d}=t,g=e?Pi(s||{},e):s,v={__v_isVNode:!0,__v_skip:!0,type:t.type,props:g,key:g&&Y0(g),ref:e&&e.ref?r&&c?Ft(c)?c.concat(rc(e)):[c,rc(e)]:rc(e):c,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:h,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ie?f===-1?16:f|16:f,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:d,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Di(t.ssContent),ssFallback:t.ssFallback&&Di(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return d&&o&&wc(v,d.clone(v)),v}function he(t=" ",e=0){return It(Qc,null,t,e)}function Kt(t="",e=!1){return e?(tt(),Yt(sn,null,t)):It(sn,null,t)}function lr(t){return t==null||typeof t=="boolean"?It(sn):Ft(t)?It(ie,null,t.slice()):typeof t=="object"?_i(t):It(Qc,null,String(t))}function _i(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Di(t)}function Kh(t,e){let r=0;const{shapeFlag:o}=t;if(e==null)e=null;else if(Ft(e))r=16;else if(typeof e=="object")if(o&65){const s=e.default;s&&(s._c&&(s._d=!1),Kh(t,s()),s._c&&(s._d=!0));return}else{r=32;const s=e._;!s&&!O0(e)?e._ctx=Ve:s===3&&Ve&&(Ve.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Gt(e)?(e={default:e,_ctx:Ve},r=32):(e=String(e),o&64?(r=16,e=[he(e)]):r=8);t.children=e,t.shapeFlag|=r}function Pi(...t){const e={};for(let r=0;r<t.length;r++){const o=t[r];for(const s in o)if(s==="class")e.class!==o.class&&(e.class=de([e.class,o.class]));else if(s==="style")e.style=an([e.style,o.style]);else if(Bc(s)){const c=e[s],f=o[s];f&&c!==f&&!(Ft(c)&&c.includes(f))&&(e[s]=c?[].concat(c,f):f)}else s!==""&&(e[s]=o[s])}return e}function xr(t,e,r,o=null){Gn(t,e,7,[r,o])}const NS=N0();let $S=0;function PS(t,e,r){const o=t.type,s=(e?e.appContext:t.appContext)||NS,c={uid:$S++,vnode:t,type:o,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Yx(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:D0(o,s),emitsOptions:S0(o,s),emit:null,emitted:null,propsDefaults:ye,inheritAttrs:o.inheritAttrs,ctx:ye,data:ye,props:ye,attrs:ye,slots:ye,refs:ye,setupState:ye,setupContext:null,attrsProxy:null,slotsProxy: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=e?e.root:c,c.emit=M_.bind(null,c),t.ce&&t.ce(c),c}let tn=null;const Kl=()=>tn||Ve;let _c,Zf;{const t=Ym(),e=(r,o)=>{let s;return(s=t[r])||(s=t[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};_c=e("__VUE_INSTANCE_SETTERS__",r=>tn=r),Zf=e("__VUE_SSR_SETTERS__",r=>tu=r)}const Xl=t=>{const e=tn;return _c(t),t.scope.on(),()=>{t.scope.off(),_c(e)}},Gg=()=>{tn&&tn.scope.off(),_c(null)};function J0(t){return t.vnode.shapeFlag&4}let tu=!1;function OS(t,e=!1){e&&Zf(e);const{props:r,children:o}=t.vnode,s=J0(t);uS(t,r,s,e),dS(t,o);const c=s?RS(t,e):void 0;return e&&Zf(!1),c}function RS(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,tS);const{setup:o}=r;if(o){const s=t.setupContext=o.length>1?ty(t):null,c=Xl(t);Bi();const f=$i(o,t,0,[t.props,s]);if(Wi(),c(),jm(f)){if(f.then(Gg,Gg),e)return f.then(h=>{Jf(t,h,e)}).catch(h=>{Gl(h,t,0)});t.asyncDep=f}else Jf(t,f,e)}else Q0(t,e)}function Jf(t,e,r){Gt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:be(e)&&(t.setupState=v0(e)),Q0(t,r)}let Kg;function Q0(t,e,r){const o=t.type;if(!t.render){if(!e&&Kg&&!o.render){const s=o.template||jh(t).template;if(s){const{isCustomElement:c,compilerOptions:f}=t.appContext.config,{delimiters:h,compilerOptions:d}=o,g=Re(Re({isCustomElement:c,delimiters:h},f),d);o.render=Kg(s,g)}}t.render=o.render||Un}{const s=Xl(t);Bi();try{rS(t)}finally{Wi(),s()}}}const DS={get(t,e){return Mn(t,"get",""),t[e]}};function ty(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,DS),slots:t.slots,emit:t.emit,expose:e}}function eu(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(v0(d0(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in pl)return pl[r](t)},has(e,r){return r in e||r in pl}})):t.proxy}function zS(t,e=!0){return Gt(t)?t.displayName||t.name:t.name||e&&t.__name}function IS(t){return Gt(t)&&"__vccOpts"in t}const _t=(t,e)=>b_(t,e,tu);function ey(t,e,r=ye){const o=Kl(),s=hr(e),c=qi(e),f=m0((d,g)=>{let v;return xS(()=>{const y=t[e];Ar(v,y)&&(v=y,g())}),{get(){return d(),r.get?r.get(v):v},set(y){const w=o.vnode.props;!(w&&(e in w||s in w||c in w)&&(`onUpdate:${e}`in w||`onUpdate:${s}`in w||`onUpdate:${c}`in w))&&Ar(y,v)&&(v=y,g()),o.emit(`update:${e}`,r.set?r.set(y):y)}}}),h="modelModifiers";return f[Symbol.iterator]=()=>{let d=0;return{next(){return d<2?{value:d++?t[h]||{}:f,done:!1}:{done:!0}}}},f}function Yl(t,e,r){const o=arguments.length;return o===2?be(e)&&!Ft(e)?Ml(e)?It(t,null,[e]):It(t,e):It(t,null,e):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Ml(r)&&(r=[r]),It(t,e,r))}const FS="3.4.29";/**
|
|
14
|
+
* @vue/runtime-dom v3.4.29
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/const HS="http://www.w3.org/2000/svg",qS="http://www.w3.org/1998/Math/MathML",jr=typeof document<"u"?document:null,Xg=jr&&jr.createElement("template"),BS={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,o)=>{const s=e==="svg"?jr.createElementNS(HS,t):e==="mathml"?jr.createElementNS(qS,t):r?jr.createElement(t,{is:r}):jr.createElement(t);return t==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:t=>jr.createTextNode(t),createComment:t=>jr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>jr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,o,s,c){const f=r?r.previousSibling:e.lastChild;if(s&&(s===c||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{Xg.innerHTML=o==="svg"?`<svg>${t}</svg>`:o==="mathml"?`<math>${t}</math>`:t;const h=Xg.content;if(o==="svg"||o==="mathml"){const d=h.firstChild;for(;d.firstChild;)h.appendChild(d.firstChild);h.removeChild(d)}e.insertBefore(h,r)}return[f?f.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},pi="transition",el="animation",Nl=Symbol("_vtc"),Xh=(t,{slots:e})=>Yl(LS,WS(t),e);Xh.displayName="Transition";const ny={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};Xh.props=Re({},U0,ny);const lo=(t,e=[])=>{Ft(t)?t.forEach(r=>r(...e)):t&&t(...e)},Yg=t=>t?Ft(t)?t.some(e=>e.length>1):t.length>1:!1;function WS(t){const e={};for(const rt in t)rt in ny||(e[rt]=t[rt]);if(t.css===!1)return e;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:h=`${r}-enter-to`,appearFromClass:d=c,appearActiveClass:g=f,appearToClass:v=h,leaveFromClass:y=`${r}-leave-from`,leaveActiveClass:w=`${r}-leave-active`,leaveToClass:_=`${r}-leave-to`}=t,L=US(s),M=L&&L[0],A=L&&L[1],{onBeforeEnter:T,onEnter:E,onEnterCancelled:P,onLeave:$,onLeaveCancelled:H,onBeforeAppear:F=T,onAppear:ct=E,onAppearCancelled:ut=P}=e,st=(rt,V,z)=>{ao(rt,V?v:h),ao(rt,V?g:f),z&&z()},X=(rt,V)=>{rt._isLeaving=!1,ao(rt,y),ao(rt,_),ao(rt,w),V&&V()},ft=rt=>(V,z)=>{const k=rt?ct:E,q=()=>st(V,rt,z);lo(k,[V,q]),Zg(()=>{ao(V,rt?d:c),gi(V,rt?v:h),Yg(k)||Jg(V,o,M,q)})};return Re(e,{onBeforeEnter(rt){lo(T,[rt]),gi(rt,c),gi(rt,f)},onBeforeAppear(rt){lo(F,[rt]),gi(rt,d),gi(rt,g)},onEnter:ft(!1),onAppear:ft(!0),onLeave(rt,V){rt._isLeaving=!0;const z=()=>X(rt,V);gi(rt,y),gi(rt,w),GS(),Zg(()=>{rt._isLeaving&&(ao(rt,y),gi(rt,_),Yg($)||Jg(rt,o,A,z))}),lo($,[rt,z])},onEnterCancelled(rt){st(rt,!1),lo(P,[rt])},onAppearCancelled(rt){st(rt,!0),lo(ut,[rt])},onLeaveCancelled(rt){X(rt),lo(H,[rt])}})}function US(t){if(t==null)return null;if(be(t))return[mf(t.enter),mf(t.leave)];{const e=mf(t);return[e,e]}}function mf(t){return Xm(t)}function gi(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[Nl]||(t[Nl]=new Set)).add(e)}function ao(t,e){e.split(/\s+/).forEach(o=>o&&t.classList.remove(o));const r=t[Nl];r&&(r.delete(e),r.size||(t[Nl]=void 0))}function Zg(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let jS=0;function Jg(t,e,r,o){const s=t._endId=++jS,c=()=>{s===t._endId&&o()};if(r)return setTimeout(c,r);const{type:f,timeout:h,propCount:d}=VS(t,e);if(!f)return o();const g=f+"end";let v=0;const y=()=>{t.removeEventListener(g,w),c()},w=_=>{_.target===t&&++v>=d&&y()};setTimeout(()=>{v<d&&y()},h+1),t.addEventListener(g,w)}function VS(t,e){const r=window.getComputedStyle(t),o=L=>(r[L]||"").split(", "),s=o(`${pi}Delay`),c=o(`${pi}Duration`),f=Qg(s,c),h=o(`${el}Delay`),d=o(`${el}Duration`),g=Qg(h,d);let v=null,y=0,w=0;e===pi?f>0&&(v=pi,y=f,w=c.length):e===el?g>0&&(v=el,y=g,w=d.length):(y=Math.max(f,g),v=y>0?f>g?pi:el:null,w=v?v===pi?c.length:d.length:0);const _=v===pi&&/\b(transform|all)(,|$)/.test(o(`${pi}Property`).toString());return{type:v,timeout:y,propCount:w,hasTransform:_}}function Qg(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((r,o)=>tv(r)+tv(t[o])))}function tv(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function GS(){return document.body.offsetHeight}function KS(t,e,r){const o=t[Nl];o&&(e=(e?[e,...o]:[...o]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const Sc=Symbol("_vod"),ry=Symbol("_vsh"),Qo={beforeMount(t,{value:e},{transition:r}){t[Sc]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):nl(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:o}){!e!=!r&&(o?e?(o.beforeEnter(t),nl(t,!0),o.enter(t)):o.leave(t,()=>{nl(t,!1)}):nl(t,e))},beforeUnmount(t,{value:e}){nl(t,e)}};function nl(t,e){t.style.display=e?t[Sc]:"none",t[ry]=!e}const XS=Symbol(""),YS=/(^|;)\s*display\s*:/;function ZS(t,e,r){const o=t.style,s=De(r);let c=!1;if(r&&!s){if(e)if(De(e))for(const f of e.split(";")){const h=f.slice(0,f.indexOf(":")).trim();r[h]==null&&ic(o,h,"")}else for(const f in e)r[f]==null&&ic(o,f,"");for(const f in r)f==="display"&&(c=!0),ic(o,f,r[f])}else if(s){if(e!==r){const f=o[XS];f&&(r+=";"+f),o.cssText=r,c=YS.test(r)}}else e&&t.removeAttribute("style");Sc in t&&(t[Sc]=c?o.display:"",t[ry]&&(o.display="none"))}const ev=/\s*!important$/;function ic(t,e,r){if(Ft(r))r.forEach(o=>ic(t,e,o));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const o=JS(t,e);ev.test(r)?t.setProperty(qi(o),r.replace(ev,""),"important"):t[o]=r}}const nv=["Webkit","Moz","ms"],yf={};function JS(t,e){const r=yf[e];if(r)return r;let o=hr(e);if(o!=="filter"&&o in t)return yf[e]=o;o=jc(o);for(let s=0;s<nv.length;s++){const c=nv[s]+o;if(c in t)return yf[e]=c}return e}const rv="http://www.w3.org/1999/xlink";function iv(t,e,r,o,s,c=Xx(e)){o&&e.startsWith("xlink:")?r==null?t.removeAttributeNS(rv,e.slice(6,e.length)):t.setAttributeNS(rv,e,r):r==null||c&&!Zm(r)?t.removeAttribute(e):t.setAttribute(e,c?"":String(r))}function QS(t,e,r,o,s,c,f){if(e==="innerHTML"||e==="textContent"){o&&f(o,s,c),t[e]=r??"";return}const h=t.tagName;if(e==="value"&&h!=="PROGRESS"&&!h.includes("-")){const g=h==="OPTION"?t.getAttribute("value")||"":t.value,v=r==null?"":String(r);(g!==v||!("_value"in t))&&(t.value=v),r==null&&t.removeAttribute(e),t._value=r;return}let d=!1;if(r===""||r==null){const g=typeof t[e];g==="boolean"?r=Zm(r):r==null&&g==="string"?(r="",d=!0):g==="number"&&(r=0,d=!0)}try{t[e]=r}catch{}d&&t.removeAttribute(e)}function Zo(t,e,r,o){t.addEventListener(e,r,o)}function tk(t,e,r,o){t.removeEventListener(e,r,o)}const ov=Symbol("_vei");function ek(t,e,r,o,s=null){const c=t[ov]||(t[ov]={}),f=c[e];if(o&&f)f.value=o;else{const[h,d]=nk(e);if(o){const g=c[e]=ok(o,s);Zo(t,h,g,d)}else f&&(tk(t,h,f,d),c[e]=void 0)}}const sv=/(?:Once|Passive|Capture)$/;function nk(t){let e;if(sv.test(t)){e={};let o;for(;o=t.match(sv);)t=t.slice(0,t.length-o[0].length),e[o[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):qi(t.slice(2)),e]}let bf=0;const rk=Promise.resolve(),ik=()=>bf||(rk.then(()=>bf=0),bf=Date.now());function ok(t,e){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Gn(sk(o,r.value),e,5,[o])};return r.value=t,r.attached=ik(),r}function sk(t,e){if(Ft(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(o=>s=>!s._stopped&&o&&o(s))}else return e}const lv=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,lk=(t,e,r,o,s,c,f,h,d)=>{const g=s==="svg";e==="class"?KS(t,o,g):e==="style"?ZS(t,r,o):Bc(e)?Lh(e)||ek(t,e,r,o,f):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):ak(t,e,o,g))?(QS(t,e,o,c,f,h,d),(e==="value"||e==="checked"||e==="selected")&&iv(t,e,o,g,f,e!=="value")):(e==="true-value"?t._trueValue=o:e==="false-value"&&(t._falseValue=o),iv(t,e,o,g))};function ak(t,e,r,o){if(o)return!!(e==="innerHTML"||e==="textContent"||e in t&&lv(e)&&Gt(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const s=t.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return lv(e)&&De(r)?!1:e in t}const av=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Ft(e)?r=>ec(e,r):e};function ck(t){t.target.composing=!0}function cv(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const wf=Symbol("_assign"),uk={created(t,{modifiers:{lazy:e,trim:r,number:o}},s){t[wf]=av(s);const c=o||s.props&&s.props.type==="number";Zo(t,e?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),c&&(h=zf(h)),t[wf](h)}),r&&Zo(t,"change",()=>{t.value=t.value.trim()}),e||(Zo(t,"compositionstart",ck),Zo(t,"compositionend",cv),Zo(t,"change",cv))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(t[wf]=av(f),t.composing)return;const h=(c||t.type==="number")&&!/^0\d/.test(t.value)?zf(t.value):t.value,d=e??"";h!==d&&(document.activeElement===t&&t.type!=="range"&&(o&&e===r||s&&t.value.trim()===d)||(t.value=d))}},fk=["ctrl","shift","alt","meta"],hk={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>fk.some(r=>t[`${r}Key`]&&!e.includes(r))},xf=(t,e)=>{const r=t._withMods||(t._withMods={}),o=e.join(".");return r[o]||(r[o]=(s,...c)=>{for(let f=0;f<e.length;f++){const h=hk[e[f]];if(h&&h(s,e))return}return t(s,...c)})},dk={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Qf=(t,e)=>{const r=t._withKeys||(t._withKeys={}),o=e.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=qi(s.key);if(e.some(f=>f===c||dk[f]===c))return t(s)})},pk=Re({patchProp:lk},BS);let uv;function gk(){return uv||(uv=gS(pk))}const iy=(...t)=>{const e=gk().createApp(...t),{mount:r}=e;return e.mount=o=>{const s=mk(o);if(!s)return;const c=e._component;!Gt(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.innerHTML="";const f=r(s,!1,vk(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},e};function vk(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function mk(t){return De(t)?document.querySelector(t):t}const ji=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r},yk={};function bk(t,e){const r=yo("RouterView");return tt(),Yt(r)}const wk=ji(yk,[["render",bk]]);/*!
|
|
18
|
+
* vue-router v4.3.3
|
|
19
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
20
|
+
* @license MIT
|
|
21
|
+
*/const Jo=typeof document<"u";function xk(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const ve=Object.assign;function _f(t,e){const r={};for(const o in e){const s=e[o];r[o]=dr(s)?s.map(t):t(s)}return r}const ml=()=>{},dr=Array.isArray,oy=/#/g,_k=/&/g,Sk=/\//g,kk=/=/g,Ck=/\?/g,sy=/\+/g,Tk=/%5B/g,Ek=/%5D/g,ly=/%5E/g,Lk=/%60/g,ay=/%7B/g,Ak=/%7C/g,cy=/%7D/g,Mk=/%20/g;function Yh(t){return encodeURI(""+t).replace(Ak,"|").replace(Tk,"[").replace(Ek,"]")}function Nk(t){return Yh(t).replace(ay,"{").replace(cy,"}").replace(ly,"^")}function th(t){return Yh(t).replace(sy,"%2B").replace(Mk,"+").replace(oy,"%23").replace(_k,"%26").replace(Lk,"`").replace(ay,"{").replace(cy,"}").replace(ly,"^")}function $k(t){return th(t).replace(kk,"%3D")}function Pk(t){return Yh(t).replace(oy,"%23").replace(Ck,"%3F")}function Ok(t){return t==null?"":Pk(t).replace(Sk,"%2F")}function $l(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const Rk=/\/$/,Dk=t=>t.replace(Rk,"");function Sf(t,e,r="/"){let o,s={},c="",f="";const h=e.indexOf("#");let d=e.indexOf("?");return h<d&&h>=0&&(d=-1),d>-1&&(o=e.slice(0,d),c=e.slice(d+1,h>-1?h:e.length),s=t(c)),h>-1&&(o=o||e.slice(0,h),f=e.slice(h,e.length)),o=Hk(o??e,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:$l(f)}}function zk(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function fv(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function Ik(t,e,r){const o=e.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&ds(e.matched[o],r.matched[s])&&uy(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function ds(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function uy(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!Fk(t[r],e[r]))return!1;return!0}function Fk(t,e){return dr(t)?hv(t,e):dr(e)?hv(e,t):t===e}function hv(t,e){return dr(e)?t.length===e.length&&t.every((r,o)=>r===e[o]):t.length===1&&t[0]===e}function Hk(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),o=t.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,h;for(f=0;f<o.length;f++)if(h=o[f],h!==".")if(h==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}var Pl;(function(t){t.pop="pop",t.push="push"})(Pl||(Pl={}));var yl;(function(t){t.back="back",t.forward="forward",t.unknown=""})(yl||(yl={}));function qk(t){if(!t)if(Jo){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Dk(t)}const Bk=/^[^#]+#/;function Wk(t,e){return t.replace(Bk,"#")+e}function Uk(t,e){const r=document.documentElement.getBoundingClientRect(),o=t.getBoundingClientRect();return{behavior:e.behavior,left:o.left-r.left-(e.left||0),top:o.top-r.top-(e.top||0)}}const nu=()=>({left:window.scrollX,top:window.scrollY});function jk(t){let e;if("el"in t){const r=t.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;e=Uk(s,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function dv(t,e){return(history.state?history.state.position-e:-1)+t}const eh=new Map;function Vk(t,e){eh.set(t,e)}function Gk(t){const e=eh.get(t);return eh.delete(t),e}let Kk=()=>location.protocol+"//"+location.host;function fy(t,e){const{pathname:r,search:o,hash:s}=e,c=t.indexOf("#");if(c>-1){let h=s.includes(t.slice(c))?t.slice(c).length:1,d=s.slice(h);return d[0]!=="/"&&(d="/"+d),fv(d,"")}return fv(r,t)+o+s}function Xk(t,e,r,o){let s=[],c=[],f=null;const h=({state:w})=>{const _=fy(t,location),L=r.value,M=e.value;let A=0;if(w){if(r.value=_,e.value=w,f&&f===L){f=null;return}A=M?w.position-M.position:0}else o(_);s.forEach(T=>{T(r.value,L,{delta:A,type:Pl.pop,direction:A?A>0?yl.forward:yl.back:yl.unknown})})};function d(){f=r.value}function g(w){s.push(w);const _=()=>{const L=s.indexOf(w);L>-1&&s.splice(L,1)};return c.push(_),_}function v(){const{history:w}=window;w.state&&w.replaceState(ve({},w.state,{scroll:nu()}),"")}function y(){for(const w of c)w();c=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:d,listen:g,destroy:y}}function pv(t,e,r,o=!1,s=!1){return{back:t,current:e,forward:r,replaced:o,position:window.history.length,scroll:s?nu():null}}function Yk(t){const{history:e,location:r}=window,o={value:fy(t,r)},s={value:e.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function c(d,g,v){const y=t.indexOf("#"),w=y>-1?(r.host&&document.querySelector("base")?t:t.slice(y))+d:Kk()+t+d;try{e[v?"replaceState":"pushState"](g,"",w),s.value=g}catch(_){console.error(_),r[v?"replace":"assign"](w)}}function f(d,g){const v=ve({},e.state,pv(s.value.back,d,s.value.forward,!0),g,{position:s.value.position});c(d,v,!0),o.value=d}function h(d,g){const v=ve({},s.value,e.state,{forward:d,scroll:nu()});c(v.current,v,!0);const y=ve({},pv(o.value,d,null),{position:v.position+1},g);c(d,y,!1),o.value=d}return{location:o,state:s,push:h,replace:f}}function Zk(t){t=qk(t);const e=Yk(t),r=Xk(t,e.state,e.location,e.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=ve({location:"",base:t,go:o,createHref:Wk.bind(null,t)},e,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function Jk(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),Zk(t)}function Qk(t){return typeof t=="string"||t&&typeof t=="object"}function hy(t){return typeof t=="string"||typeof t=="symbol"}const vi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},dy=Symbol("");var gv;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(gv||(gv={}));function ps(t,e){return ve(new Error,{type:t,[dy]:!0},e)}function Br(t,e){return t instanceof Error&&dy in t&&(e==null||!!(t.type&e))}const vv="[^/]+?",tC={sensitive:!1,strict:!1,start:!0,end:!0},eC=/[.+*?^${}()[\]/\\]/g;function nC(t,e){const r=ve({},tC,e),o=[];let s=r.start?"^":"";const c=[];for(const g of t){const v=g.length?[]:[90];r.strict&&!g.length&&(s+="/");for(let y=0;y<g.length;y++){const w=g[y];let _=40+(r.sensitive?.25:0);if(w.type===0)y||(s+="/"),s+=w.value.replace(eC,"\\$&"),_+=40;else if(w.type===1){const{value:L,repeatable:M,optional:A,regexp:T}=w;c.push({name:L,repeatable:M,optional:A});const E=T||vv;if(E!==vv){_+=10;try{new RegExp(`(${E})`)}catch($){throw new Error(`Invalid custom RegExp for param "${L}" (${E}): `+$.message)}}let P=M?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;y||(P=A&&g.length<2?`(?:/${P})`:"/"+P),A&&(P+="?"),s+=P,_+=20,A&&(_+=-8),M&&(_+=-20),E===".*"&&(_+=-50)}v.push(_)}o.push(v)}if(r.strict&&r.end){const g=o.length-1;o[g][o[g].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function h(g){const v=g.match(f),y={};if(!v)return null;for(let w=1;w<v.length;w++){const _=v[w]||"",L=c[w-1];y[L.name]=_&&L.repeatable?_.split("/"):_}return y}function d(g){let v="",y=!1;for(const w of t){(!y||!v.endsWith("/"))&&(v+="/"),y=!1;for(const _ of w)if(_.type===0)v+=_.value;else if(_.type===1){const{value:L,repeatable:M,optional:A}=_,T=L in g?g[L]:"";if(dr(T)&&!M)throw new Error(`Provided param "${L}" is an array but it is not repeatable (* or + modifiers)`);const E=dr(T)?T.join("/"):T;if(!E)if(A)w.length<2&&(v.endsWith("/")?v=v.slice(0,-1):y=!0);else throw new Error(`Missing required param "${L}"`);v+=E}}return v||"/"}return{re:f,score:o,keys:c,parse:h,stringify:d}}function rC(t,e){let r=0;for(;r<t.length&&r<e.length;){const o=e[r]-t[r];if(o)return o;r++}return t.length<e.length?t.length===1&&t[0]===80?-1:1:t.length>e.length?e.length===1&&e[0]===80?1:-1:0}function py(t,e){let r=0;const o=t.score,s=e.score;for(;r<o.length&&r<s.length;){const c=rC(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(mv(o))return 1;if(mv(s))return-1}return s.length-o.length}function mv(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const iC={type:0,value:""},oC=/[a-zA-Z0-9_]/;function sC(t){if(!t)return[[]];if(t==="/")return[[iC]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(_){throw new Error(`ERR (${r})/"${g}": ${_}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let h=0,d,g="",v="";function y(){g&&(r===0?c.push({type:0,value:g}):r===1||r===2||r===3?(c.length>1&&(d==="*"||d==="+")&&e(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:g,regexp:v,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):e("Invalid state to consume buffer"),g="")}function w(){g+=d}for(;h<t.length;){if(d=t[h++],d==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:d==="/"?(g&&y(),f()):d===":"?(y(),r=1):w();break;case 4:w(),r=o;break;case 1:d==="("?r=2:oC.test(d)?w():(y(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&h--);break;case 2:d===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+d:r=3:v+=d;break;case 3:y(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&h--,v="";break;default:e("Unknown state");break}}return r===2&&e(`Unfinished custom RegExp for param "${g}"`),y(),f(),s}function lC(t,e,r){const o=nC(sC(t.path),r),s=ve(o,{record:t,parent:e,children:[],alias:[]});return e&&!s.record.aliasOf==!e.record.aliasOf&&e.children.push(s),s}function aC(t,e){const r=[],o=new Map;e=wv({strict:!1,end:!0,sensitive:!1},e);function s(v){return o.get(v)}function c(v,y,w){const _=!w,L=cC(v);L.aliasOf=w&&w.record;const M=wv(e,v),A=[L];if("alias"in v){const P=typeof v.alias=="string"?[v.alias]:v.alias;for(const $ of P)A.push(ve({},L,{components:w?w.record.components:L.components,path:$,aliasOf:w?w.record:L}))}let T,E;for(const P of A){const{path:$}=P;if(y&&$[0]!=="/"){const H=y.record.path,F=H[H.length-1]==="/"?"":"/";P.path=y.record.path+($&&F+$)}if(T=lC(P,y,M),w?w.alias.push(T):(E=E||T,E!==T&&E.alias.push(T),_&&v.name&&!bv(T)&&f(v.name)),gy(T)&&d(T),L.children){const H=L.children;for(let F=0;F<H.length;F++)c(H[F],T,w&&w.children[F])}w=w||T}return E?()=>{f(E)}:ml}function f(v){if(hy(v)){const y=o.get(v);y&&(o.delete(v),r.splice(r.indexOf(y),1),y.children.forEach(f),y.alias.forEach(f))}else{const y=r.indexOf(v);y>-1&&(r.splice(y,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function h(){return r}function d(v){const y=hC(v,r);r.splice(y,0,v),v.record.name&&!bv(v)&&o.set(v.record.name,v)}function g(v,y){let w,_={},L,M;if("name"in v&&v.name){if(w=o.get(v.name),!w)throw ps(1,{location:v});M=w.record.name,_=ve(yv(y.params,w.keys.filter(E=>!E.optional).concat(w.parent?w.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),v.params&&yv(v.params,w.keys.map(E=>E.name))),L=w.stringify(_)}else if(v.path!=null)L=v.path,w=r.find(E=>E.re.test(L)),w&&(_=w.parse(L),M=w.record.name);else{if(w=y.name?o.get(y.name):r.find(E=>E.re.test(y.path)),!w)throw ps(1,{location:v,currentLocation:y});M=w.record.name,_=ve({},y.params,v.params),L=w.stringify(_)}const A=[];let T=w;for(;T;)A.unshift(T.record),T=T.parent;return{name:M,path:L,params:_,matched:A,meta:fC(A)}}return t.forEach(v=>c(v)),{addRoute:c,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:s}}function yv(t,e){const r={};for(const o of e)o in t&&(r[o]=t[o]);return r}function cC(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:uC(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function uC(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const o in t.components)e[o]=typeof r=="object"?r[o]:r;return e}function bv(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function fC(t){return t.reduce((e,r)=>ve(e,r.meta),{})}function wv(t,e){const r={};for(const o in t)r[o]=o in e?e[o]:t[o];return r}function hC(t,e){let r=0,o=e.length;for(;r!==o;){const c=r+o>>1;py(t,e[c])<0?o=c:r=c+1}const s=dC(t);return s&&(o=e.lastIndexOf(s,o-1)),o}function dC(t){let e=t;for(;e=e.parent;)if(gy(e)&&py(t,e)===0)return e}function gy({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function pC(t){const e={};if(t===""||t==="?")return e;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace(sy," "),f=c.indexOf("="),h=$l(f<0?c:c.slice(0,f)),d=f<0?null:$l(c.slice(f+1));if(h in e){let g=e[h];dr(g)||(g=e[h]=[g]),g.push(d)}else e[h]=d}return e}function xv(t){let e="";for(let r in t){const o=t[r];if(r=$k(r),o==null){o!==void 0&&(e+=(e.length?"&":"")+r);continue}(dr(o)?o.map(c=>c&&th(c)):[o&&th(o)]).forEach(c=>{c!==void 0&&(e+=(e.length?"&":"")+r,c!=null&&(e+="="+c))})}return e}function gC(t){const e={};for(const r in t){const o=t[r];o!==void 0&&(e[r]=dr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return e}const vC=Symbol(""),_v=Symbol(""),Zh=Symbol(""),vy=Symbol(""),nh=Symbol("");function rl(){let t=[];function e(o){return t.push(o),()=>{const s=t.indexOf(o);s>-1&&t.splice(s,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function Si(t,e,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((h,d)=>{const g=w=>{w===!1?d(ps(4,{from:r,to:e})):w instanceof Error?d(w):Qk(w)?d(ps(2,{from:e,to:w})):(f&&o.enterCallbacks[s]===f&&typeof w=="function"&&f.push(w),h())},v=c(()=>t.call(o&&o.instances[s],e,r,g));let y=Promise.resolve(v);t.length<3&&(y=y.then(g)),y.catch(w=>d(w))})}function kf(t,e,r,o,s=c=>c()){const c=[];for(const f of t)for(const h in f.components){let d=f.components[h];if(!(e!=="beforeRouteEnter"&&!f.instances[h]))if(mC(d)){const v=(d.__vccOpts||d)[e];v&&c.push(Si(v,r,o,f,h,s))}else{let g=d();c.push(()=>g.then(v=>{if(!v)return Promise.reject(new Error(`Couldn't resolve component "${h}" at "${f.path}"`));const y=xk(v)?v.default:v;f.components[h]=y;const _=(y.__vccOpts||y)[e];return _&&Si(_,r,o,f,h,s)()}))}}return c}function mC(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Sv(t){const e=Xr(Zh),r=Xr(vy),o=_t(()=>{const d=B(t.to);return e.resolve(d)}),s=_t(()=>{const{matched:d}=o.value,{length:g}=d,v=d[g-1],y=r.matched;if(!v||!y.length)return-1;const w=y.findIndex(ds.bind(null,v));if(w>-1)return w;const _=kv(d[g-2]);return g>1&&kv(v)===_&&y[y.length-1].path!==_?y.findIndex(ds.bind(null,d[g-2])):w}),c=_t(()=>s.value>-1&&xC(r.params,o.value.params)),f=_t(()=>s.value>-1&&s.value===r.matched.length-1&&uy(r.params,o.value.params));function h(d={}){return wC(d)?e[B(t.replace)?"replace":"push"](B(t.to)).catch(ml):Promise.resolve()}return{route:o,href:_t(()=>o.value.href),isActive:c,isExactActive:f,navigate:h}}const yC=fe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Sv,setup(t,{slots:e}){const r=Cr(Sv(t)),{options:o}=Xr(Zh),s=_t(()=>({[Cv(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[Cv(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=e.default&&e.default(r);return t.custom?c:Yl("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),bC=yC;function wC(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function xC(t,e){for(const r in e){const o=e[r],s=t[r];if(typeof o=="string"){if(o!==s)return!1}else if(!dr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function kv(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Cv=(t,e,r)=>t??e??r,_C=fe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const o=Xr(nh),s=_t(()=>t.route||o.value),c=Xr(_v,0),f=_t(()=>{let g=B(c);const{matched:v}=s.value;let y;for(;(y=v[g])&&!y.components;)g++;return g}),h=_t(()=>s.value.matched[f.value]);nc(_v,_t(()=>f.value+1)),nc(vC,h),nc(nh,s);const d=Qt();return Ge(()=>[d.value,h.value,t.name],([g,v,y],[w,_,L])=>{v&&(v.instances[y]=g,_&&_!==v&&g&&g===w&&(v.leaveGuards.size||(v.leaveGuards=_.leaveGuards),v.updateGuards.size||(v.updateGuards=_.updateGuards))),g&&v&&(!_||!ds(v,_)||!w)&&(v.enterCallbacks[y]||[]).forEach(M=>M(g))},{flush:"post"}),()=>{const g=s.value,v=t.name,y=h.value,w=y&&y.components[v];if(!w)return Tv(r.default,{Component:w,route:g});const _=y.props[v],L=_?_===!0?g.params:typeof _=="function"?_(g):_:null,A=Yl(w,ve({},L,e,{onVnodeUnmounted:T=>{T.component.isUnmounted&&(y.instances[v]=null)},ref:d}));return Tv(r.default,{Component:A,route:g})||A}}});function Tv(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const SC=_C;function kC(t){const e=aC(t.routes,t),r=t.parseQuery||pC,o=t.stringifyQuery||xv,s=t.history,c=rl(),f=rl(),h=rl(),d=ws(vi);let g=vi;Jo&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=_f.bind(null,G=>""+G),y=_f.bind(null,Ok),w=_f.bind(null,$l);function _(G,it){let ht,Nt;return hy(G)?(ht=e.getRecordMatcher(G),Nt=it):Nt=G,e.addRoute(Nt,ht)}function L(G){const it=e.getRecordMatcher(G);it&&e.removeRoute(it)}function M(){return e.getRoutes().map(G=>G.record)}function A(G){return!!e.getRecordMatcher(G)}function T(G,it){if(it=ve({},it||d.value),typeof G=="string"){const I=Sf(r,G,it.path),K=e.resolve({path:I.path},it),ot=s.createHref(I.fullPath);return ve(I,K,{params:w(K.params),hash:$l(I.hash),redirectedFrom:void 0,href:ot})}let ht;if(G.path!=null)ht=ve({},G,{path:Sf(r,G.path,it.path).path});else{const I=ve({},G.params);for(const K in I)I[K]==null&&delete I[K];ht=ve({},G,{params:y(I)}),it.params=y(it.params)}const Nt=e.resolve(ht,it),Et=G.hash||"";Nt.params=v(w(Nt.params));const Xt=zk(o,ve({},G,{hash:Nk(Et),path:Nt.path})),O=s.createHref(Xt);return ve({fullPath:Xt,hash:Et,query:o===xv?gC(G.query):G.query||{}},Nt,{redirectedFrom:void 0,href:O})}function E(G){return typeof G=="string"?Sf(r,G,d.value.path):ve({},G)}function P(G,it){if(g!==G)return ps(8,{from:it,to:G})}function $(G){return ct(G)}function H(G){return $(ve(E(G),{replace:!0}))}function F(G){const it=G.matched[G.matched.length-1];if(it&&it.redirect){const{redirect:ht}=it;let Nt=typeof ht=="function"?ht(G):ht;return typeof Nt=="string"&&(Nt=Nt.includes("?")||Nt.includes("#")?Nt=E(Nt):{path:Nt},Nt.params={}),ve({query:G.query,hash:G.hash,params:Nt.path!=null?{}:G.params},Nt)}}function ct(G,it){const ht=g=T(G),Nt=d.value,Et=G.state,Xt=G.force,O=G.replace===!0,I=F(ht);if(I)return ct(ve(E(I),{state:typeof I=="object"?ve({},Et,I.state):Et,force:Xt,replace:O}),it||ht);const K=ht;K.redirectedFrom=it;let ot;return!Xt&&Ik(o,Nt,ht)&&(ot=ps(16,{to:K,from:Nt}),Ht(Nt,Nt,!0,!1)),(ot?Promise.resolve(ot):X(K,Nt)).catch(nt=>Br(nt)?Br(nt,2)?nt:Mt(nt):Q(nt,K,Nt)).then(nt=>{if(nt){if(Br(nt,2))return ct(ve({replace:O},E(nt.to),{state:typeof nt.to=="object"?ve({},Et,nt.to.state):Et,force:Xt}),it||K)}else nt=rt(K,Nt,!0,O,Et);return ft(K,Nt,nt),nt})}function ut(G,it){const ht=P(G,it);return ht?Promise.reject(ht):Promise.resolve()}function st(G){const it=ne.values().next().value;return it&&typeof it.runWithContext=="function"?it.runWithContext(G):G()}function X(G,it){let ht;const[Nt,Et,Xt]=CC(G,it);ht=kf(Nt.reverse(),"beforeRouteLeave",G,it);for(const I of Nt)I.leaveGuards.forEach(K=>{ht.push(Si(K,G,it))});const O=ut.bind(null,G,it);return ht.push(O),Tt(ht).then(()=>{ht=[];for(const I of c.list())ht.push(Si(I,G,it));return ht.push(O),Tt(ht)}).then(()=>{ht=kf(Et,"beforeRouteUpdate",G,it);for(const I of Et)I.updateGuards.forEach(K=>{ht.push(Si(K,G,it))});return ht.push(O),Tt(ht)}).then(()=>{ht=[];for(const I of Xt)if(I.beforeEnter)if(dr(I.beforeEnter))for(const K of I.beforeEnter)ht.push(Si(K,G,it));else ht.push(Si(I.beforeEnter,G,it));return ht.push(O),Tt(ht)}).then(()=>(G.matched.forEach(I=>I.enterCallbacks={}),ht=kf(Xt,"beforeRouteEnter",G,it,st),ht.push(O),Tt(ht))).then(()=>{ht=[];for(const I of f.list())ht.push(Si(I,G,it));return ht.push(O),Tt(ht)}).catch(I=>Br(I,8)?I:Promise.reject(I))}function ft(G,it,ht){h.list().forEach(Nt=>st(()=>Nt(G,it,ht)))}function rt(G,it,ht,Nt,Et){const Xt=P(G,it);if(Xt)return Xt;const O=it===vi,I=Jo?history.state:{};ht&&(Nt||O?s.replace(G.fullPath,ve({scroll:O&&I&&I.scroll},Et)):s.push(G.fullPath,Et)),d.value=G,Ht(G,it,ht,O),Mt()}let V;function z(){V||(V=s.listen((G,it,ht)=>{if(!Zt.listening)return;const Nt=T(G),Et=F(Nt);if(Et){ct(ve(Et,{replace:!0}),Nt).catch(ml);return}g=Nt;const Xt=d.value;Jo&&Vk(dv(Xt.fullPath,ht.delta),nu()),X(Nt,Xt).catch(O=>Br(O,12)?O:Br(O,2)?(ct(O.to,Nt).then(I=>{Br(I,20)&&!ht.delta&&ht.type===Pl.pop&&s.go(-1,!1)}).catch(ml),Promise.reject()):(ht.delta&&s.go(-ht.delta,!1),Q(O,Nt,Xt))).then(O=>{O=O||rt(Nt,Xt,!1),O&&(ht.delta&&!Br(O,8)?s.go(-ht.delta,!1):ht.type===Pl.pop&&Br(O,20)&&s.go(-1,!1)),ft(Nt,Xt,O)}).catch(ml)}))}let k=rl(),q=rl(),U;function Q(G,it,ht){Mt(G);const Nt=q.list();return Nt.length?Nt.forEach(Et=>Et(G,it,ht)):console.error(G),Promise.reject(G)}function mt(){return U&&d.value!==vi?Promise.resolve():new Promise((G,it)=>{k.add([G,it])})}function Mt(G){return U||(U=!G,z(),k.list().forEach(([it,ht])=>G?ht(G):it()),k.reset()),G}function Ht(G,it,ht,Nt){const{scrollBehavior:Et}=t;if(!Jo||!Et)return Promise.resolve();const Xt=!ht&&Gk(dv(G.fullPath,0))||(Nt||!ht)&&history.state&&history.state.scroll||null;return Mr().then(()=>Et(G,it,Xt)).then(O=>O&&jk(O)).catch(O=>Q(O,G,it))}const Wt=G=>s.go(G);let re;const ne=new Set,Zt={currentRoute:d,listening:!0,addRoute:_,removeRoute:L,hasRoute:A,getRoutes:M,resolve:T,options:t,push:$,replace:H,go:Wt,back:()=>Wt(-1),forward:()=>Wt(1),beforeEach:c.add,beforeResolve:f.add,afterEach:h.add,onError:q.add,isReady:mt,install(G){const it=this;G.component("RouterLink",bC),G.component("RouterView",SC),G.config.globalProperties.$router=it,Object.defineProperty(G.config.globalProperties,"$route",{enumerable:!0,get:()=>B(d)}),Jo&&!re&&d.value===vi&&(re=!0,$(s.location).catch(Et=>{}));const ht={};for(const Et in vi)Object.defineProperty(ht,Et,{get:()=>d.value[Et],enumerable:!0});G.provide(Zh,it),G.provide(vy,f0(ht)),G.provide(nh,d);const Nt=G.unmount;ne.add(G),G.unmount=function(){ne.delete(G),ne.size<1&&(g=vi,V&&V(),V=null,d.value=vi,re=!1,U=!1),Nt()}}};function Tt(G){return G.reduce((it,ht)=>it.then(()=>st(ht)),Promise.resolve())}return Zt}function CC(t,e){const r=[],o=[],s=[],c=Math.max(e.matched.length,t.matched.length);for(let f=0;f<c;f++){const h=e.matched[f];h&&(t.matched.find(g=>ds(g,h))?o.push(h):r.push(h));const d=t.matched[f];d&&(e.matched.find(g=>ds(g,d))||s.push(d))}return[r,o,s]}const TC=["top","right","bottom","left"],Ev=["start","end"],Lv=TC.reduce((t,e)=>t.concat(e,e+"-"+Ev[0],e+"-"+Ev[1]),[]),Ol=Math.min,uo=Math.max,EC={left:"right",right:"left",bottom:"top",top:"bottom"},LC={start:"end",end:"start"};function rh(t,e,r){return uo(t,Ol(e,r))}function So(t,e){return typeof t=="function"?t(e):t}function Nr(t){return t.split("-")[0]}function ur(t){return t.split("-")[1]}function my(t){return t==="x"?"y":"x"}function Jh(t){return t==="y"?"height":"width"}function Zl(t){return["top","bottom"].includes(Nr(t))?"y":"x"}function Qh(t){return my(Zl(t))}function yy(t,e,r){r===void 0&&(r=!1);const o=ur(t),s=Qh(t),c=Jh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[c]>e.floating[c]&&(f=Cc(f)),[f,Cc(f)]}function AC(t){const e=Cc(t);return[kc(t),e,kc(e)]}function kc(t){return t.replace(/start|end/g,e=>LC[e])}function MC(t,e,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(t){case"top":case"bottom":return r?e?s:o:e?o:s;case"left":case"right":return e?c:f;default:return[]}}function NC(t,e,r,o){const s=ur(t);let c=MC(Nr(t),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),e&&(c=c.concat(c.map(kc)))),c}function Cc(t){return t.replace(/left|right|bottom|top/g,e=>EC[e])}function $C(t){return{top:0,right:0,bottom:0,left:0,...t}}function by(t){return typeof t!="number"?$C(t):{top:t,right:t,bottom:t,left:t}}function bl(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Av(t,e,r){let{reference:o,floating:s}=t;const c=Zl(e),f=Qh(e),h=Jh(f),d=Nr(e),g=c==="y",v=o.x+o.width/2-s.width/2,y=o.y+o.height/2-s.height/2,w=o[h]/2-s[h]/2;let _;switch(d){case"top":_={x:v,y:o.y-s.height};break;case"bottom":_={x:v,y:o.y+o.height};break;case"right":_={x:o.x+o.width,y};break;case"left":_={x:o.x-s.width,y};break;default:_={x:o.x,y:o.y}}switch(ur(e)){case"start":_[f]-=w*(r&&g?-1:1);break;case"end":_[f]+=w*(r&&g?-1:1);break}return _}const PC=async(t,e,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,h=c.filter(Boolean),d=await(f.isRTL==null?void 0:f.isRTL(e));let g=await f.getElementRects({reference:t,floating:e,strategy:s}),{x:v,y}=Av(g,o,d),w=o,_={},L=0;for(let M=0;M<h.length;M++){const{name:A,fn:T}=h[M],{x:E,y:P,data:$,reset:H}=await T({x:v,y,initialPlacement:o,placement:w,strategy:s,middlewareData:_,rects:g,platform:f,elements:{reference:t,floating:e}});v=E??v,y=P??y,_={..._,[A]:{..._[A],...$}},H&&L<=50&&(L++,typeof H=="object"&&(H.placement&&(w=H.placement),H.rects&&(g=H.rects===!0?await f.getElementRects({reference:t,floating:e,strategy:s}):H.rects),{x:v,y}=Av(g,w,d)),M=-1)}return{x:v,y,placement:w,strategy:s,middlewareData:_}};async function ru(t,e){var r;e===void 0&&(e={});const{x:o,y:s,platform:c,rects:f,elements:h,strategy:d}=t,{boundary:g="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:w=!1,padding:_=0}=So(e,t),L=by(_),A=h[w?y==="floating"?"reference":"floating":y],T=bl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(A)))==null||r?A:A.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(h.floating)),boundary:g,rootBoundary:v,strategy:d})),E=y==="floating"?{...f.floating,x:o,y:s}:f.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h.floating)),$=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},H=bl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:E,offsetParent:P,strategy:d}):E);return{top:(T.top-H.top+L.top)/$.y,bottom:(H.bottom-T.bottom+L.bottom)/$.y,left:(T.left-H.left+L.left)/$.x,right:(H.right-T.right+L.right)/$.x}}const OC=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:o,placement:s,rects:c,platform:f,elements:h,middlewareData:d}=e,{element:g,padding:v=0}=So(t,e)||{};if(g==null)return{};const y=by(v),w={x:r,y:o},_=Qh(s),L=Jh(_),M=await f.getDimensions(g),A=_==="y",T=A?"top":"left",E=A?"bottom":"right",P=A?"clientHeight":"clientWidth",$=c.reference[L]+c.reference[_]-w[_]-c.floating[L],H=w[_]-c.reference[_],F=await(f.getOffsetParent==null?void 0:f.getOffsetParent(g));let ct=F?F[P]:0;(!ct||!await(f.isElement==null?void 0:f.isElement(F)))&&(ct=h.floating[P]||c.floating[L]);const ut=$/2-H/2,st=ct/2-M[L]/2-1,X=Ol(y[T],st),ft=Ol(y[E],st),rt=X,V=ct-M[L]-ft,z=ct/2-M[L]/2+ut,k=rh(rt,z,V),q=!d.arrow&&ur(s)!=null&&z!==k&&c.reference[L]/2-(z<rt?X:ft)-M[L]/2<0,U=q?z<rt?z-rt:z-V:0;return{[_]:w[_]+U,data:{[_]:k,centerOffset:z-k-U,...q&&{alignmentOffset:U}},reset:q}}});function RC(t,e,r){return(t?[...r.filter(s=>ur(s)===t),...r.filter(s=>ur(s)!==t)]:r.filter(s=>Nr(s)===s)).filter(s=>t?ur(s)===t||(e?kc(s)!==s:!1):!0)}const DC=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,s;const{rects:c,middlewareData:f,placement:h,platform:d,elements:g}=e,{crossAxis:v=!1,alignment:y,allowedPlacements:w=Lv,autoAlignment:_=!0,...L}=So(t,e),M=y!==void 0||w===Lv?RC(y||null,_,w):w,A=await ru(e,L),T=((r=f.autoPlacement)==null?void 0:r.index)||0,E=M[T];if(E==null)return{};const P=yy(E,c,await(d.isRTL==null?void 0:d.isRTL(g.floating)));if(h!==E)return{reset:{placement:M[0]}};const $=[A[Nr(E)],A[P[0]],A[P[1]]],H=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:E,overflows:$}],F=M[T+1];if(F)return{data:{index:T+1,overflows:H},reset:{placement:F}};const ct=H.map(X=>{const ft=ur(X.placement);return[X.placement,ft&&v?X.overflows.slice(0,2).reduce((rt,V)=>rt+V,0):X.overflows[0],X.overflows]}).sort((X,ft)=>X[1]-ft[1]),st=((s=ct.filter(X=>X[2].slice(0,ur(X[0])?2:3).every(ft=>ft<=0))[0])==null?void 0:s[0])||ct[0][0];return st!==h?{data:{index:T+1,overflows:H},reset:{placement:st}}:{}}}},zC=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:h,platform:d,elements:g}=e,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:M=!0,...A}=So(t,e);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const T=Nr(s),E=Nr(h)===h,P=await(d.isRTL==null?void 0:d.isRTL(g.floating)),$=w||(E||!M?[Cc(h)]:AC(h));!w&&L!=="none"&&$.push(...NC(h,M,L,P));const H=[h,...$],F=await ru(e,A),ct=[];let ut=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&ct.push(F[T]),y){const rt=yy(s,f,P);ct.push(F[rt[0]],F[rt[1]])}if(ut=[...ut,{placement:s,overflows:ct}],!ct.every(rt=>rt<=0)){var st,X;const rt=(((st=c.flip)==null?void 0:st.index)||0)+1,V=H[rt];if(V)return{data:{index:rt,overflows:ut},reset:{placement:V}};let z=(X=ut.filter(k=>k.overflows[0]<=0).sort((k,q)=>k.overflows[1]-q.overflows[1])[0])==null?void 0:X.placement;if(!z)switch(_){case"bestFit":{var ft;const k=(ft=ut.map(q=>[q.placement,q.overflows.filter(U=>U>0).reduce((U,Q)=>U+Q,0)]).sort((q,U)=>q[1]-U[1])[0])==null?void 0:ft[0];k&&(z=k);break}case"initialPlacement":z=h;break}if(s!==z)return{reset:{placement:z}}}return{}}}};async function IC(t,e){const{placement:r,platform:o,elements:s}=t,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Nr(r),h=ur(r),d=Zl(r)==="y",g=["left","top"].includes(f)?-1:1,v=c&&d?-1:1,y=So(e,t);let{mainAxis:w,crossAxis:_,alignmentAxis:L}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return h&&typeof L=="number"&&(_=h==="end"?L*-1:L),d?{x:_*v,y:w*g}:{x:w*g,y:_*v}}const FC=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;const{x:s,y:c,placement:f,middlewareData:h}=e,d=await IC(e,t);return f===((r=h.offset)==null?void 0:r.placement)&&(o=h.arrow)!=null&&o.alignmentOffset?{}:{x:s+d.x,y:c+d.y,data:{...d,placement:f}}}}},HC=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:s}=e,{mainAxis:c=!0,crossAxis:f=!1,limiter:h={fn:A=>{let{x:T,y:E}=A;return{x:T,y:E}}},...d}=So(t,e),g={x:r,y:o},v=await ru(e,d),y=Zl(Nr(s)),w=my(y);let _=g[w],L=g[y];if(c){const A=w==="y"?"top":"left",T=w==="y"?"bottom":"right",E=_+v[A],P=_-v[T];_=rh(E,_,P)}if(f){const A=y==="y"?"top":"left",T=y==="y"?"bottom":"right",E=L+v[A],P=L-v[T];L=rh(E,L,P)}const M=h.fn({...e,[w]:_,[y]:L});return{...M,data:{x:M.x-r,y:M.y-o}}}}},qC=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:o,platform:s,elements:c}=e,{apply:f=()=>{},...h}=So(t,e),d=await ru(e,h),g=Nr(r),v=ur(r),y=Zl(r)==="y",{width:w,height:_}=o.floating;let L,M;g==="top"||g==="bottom"?(L=g,M=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(M=g,L=v==="end"?"top":"bottom");const A=_-d[L],T=w-d[M],E=!e.middlewareData.shift;let P=A,$=T;if(y){const F=w-d.left-d.right;$=v||E?Ol(T,F):F}else{const F=_-d.top-d.bottom;P=v||E?Ol(A,F):F}if(E&&!v){const F=uo(d.left,0),ct=uo(d.right,0),ut=uo(d.top,0),st=uo(d.bottom,0);y?$=w-2*(F!==0||ct!==0?F+ct:uo(d.left,d.right)):P=_-2*(ut!==0||st!==0?ut+st:uo(d.top,d.bottom))}await f({...e,availableWidth:$,availableHeight:P});const H=await s.getDimensions(c.floating);return w!==H.width||_!==H.height?{reset:{rects:!0}}:{}}}};function Vn(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Tr(t){return Vn(t).getComputedStyle(t)}const Mv=Math.min,wl=Math.max,Tc=Math.round;function wy(t){const e=Tr(t);let r=parseFloat(e.width),o=parseFloat(e.height);const s=t.offsetWidth,c=t.offsetHeight,f=Tc(r)!==s||Tc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function zi(t){return _y(t)?(t.nodeName||"").toLowerCase():""}let Ba;function xy(){if(Ba)return Ba;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(Ba=t.brands.map(e=>e.brand+"/"+e.version).join(" "),Ba):navigator.userAgent}function Er(t){return t instanceof Vn(t).HTMLElement}function Oi(t){return t instanceof Vn(t).Element}function _y(t){return t instanceof Vn(t).Node}function Nv(t){return typeof ShadowRoot>"u"?!1:t instanceof Vn(t).ShadowRoot||t instanceof ShadowRoot}function iu(t){const{overflow:e,overflowX:r,overflowY:o,display:s}=Tr(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(s)}function BC(t){return["table","td","th"].includes(zi(t))}function ih(t){const e=/firefox/i.test(xy()),r=Tr(t),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||e&&r.willChange==="filter"||e&&!!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 Sy(){return!/^((?!chrome|android).)*safari/i.test(xy())}function td(t){return["html","body","#document"].includes(zi(t))}function ky(t){return Oi(t)?t:t.contextElement}const Cy={x:1,y:1};function ls(t){const e=ky(t);if(!Er(e))return Cy;const r=e.getBoundingClientRect(),{width:o,height:s,fallback:c}=wy(e);let f=(c?Tc(r.width):r.width)/o,h=(c?Tc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),h&&Number.isFinite(h)||(h=1),{x:f,y:h}}function Rl(t,e,r,o){var s,c;e===void 0&&(e=!1),r===void 0&&(r=!1);const f=t.getBoundingClientRect(),h=ky(t);let d=Cy;e&&(o?Oi(o)&&(d=ls(o)):d=ls(t));const g=h?Vn(h):window,v=!Sy()&&r;let y=(f.left+(v&&((s=g.visualViewport)==null?void 0:s.offsetLeft)||0))/d.x,w=(f.top+(v&&((c=g.visualViewport)==null?void 0:c.offsetTop)||0))/d.y,_=f.width/d.x,L=f.height/d.y;if(h){const M=Vn(h),A=o&&Oi(o)?Vn(o):o;let T=M.frameElement;for(;T&&o&&A!==M;){const E=ls(T),P=T.getBoundingClientRect(),$=getComputedStyle(T);P.x+=(T.clientLeft+parseFloat($.paddingLeft))*E.x,P.y+=(T.clientTop+parseFloat($.paddingTop))*E.y,y*=E.x,w*=E.y,_*=E.x,L*=E.y,y+=P.x,w+=P.y,T=Vn(T).frameElement}}return{width:_,height:L,top:w,right:y+_,bottom:w+L,left:y,x:y,y:w}}function Ri(t){return((_y(t)?t.ownerDocument:t.document)||window.document).documentElement}function ou(t){return Oi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ty(t){return Rl(Ri(t)).left+ou(t).scrollLeft}function Dl(t){if(zi(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Nv(t)&&t.host||Ri(t);return Nv(e)?e.host:e}function Ey(t){const e=Dl(t);return td(e)?e.ownerDocument.body:Er(e)&&iu(e)?e:Ey(e)}function Ec(t,e){var r;e===void 0&&(e=[]);const o=Ey(t),s=o===((r=t.ownerDocument)==null?void 0:r.body),c=Vn(o);return s?e.concat(c,c.visualViewport||[],iu(o)?o:[]):e.concat(o,Ec(o))}function $v(t,e,r){return e==="viewport"?bl(function(o,s){const c=Vn(o),f=Ri(o),h=c.visualViewport;let d=f.clientWidth,g=f.clientHeight,v=0,y=0;if(h){d=h.width,g=h.height;const w=Sy();(w||!w&&s==="fixed")&&(v=h.offsetLeft,y=h.offsetTop)}return{width:d,height:g,x:v,y}}(t,r)):Oi(e)?bl(function(o,s){const c=Rl(o,!0,s==="fixed"),f=c.top+o.clientTop,h=c.left+o.clientLeft,d=Er(o)?ls(o):{x:1,y:1};return{width:o.clientWidth*d.x,height:o.clientHeight*d.y,x:h*d.x,y:f*d.y}}(e,r)):bl(function(o){const s=Ri(o),c=ou(o),f=o.ownerDocument.body,h=wl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),d=wl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let g=-c.scrollLeft+Ty(o);const v=-c.scrollTop;return Tr(f).direction==="rtl"&&(g+=wl(s.clientWidth,f.clientWidth)-h),{width:h,height:d,x:g,y:v}}(Ri(t)))}function Pv(t){return Er(t)&&Tr(t).position!=="fixed"?t.offsetParent:null}function Ov(t){const e=Vn(t);let r=Pv(t);for(;r&&BC(r)&&Tr(r).position==="static";)r=Pv(r);return r&&(zi(r)==="html"||zi(r)==="body"&&Tr(r).position==="static"&&!ih(r))?e:r||function(o){let s=Dl(o);for(;Er(s)&&!td(s);){if(ih(s))return s;s=Dl(s)}return null}(t)||e}function WC(t,e,r){const o=Er(e),s=Ri(e),c=Rl(t,!0,r==="fixed",e);let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if((zi(e)!=="body"||iu(s))&&(f=ou(e)),Er(e)){const d=Rl(e,!0);h.x=d.x+e.clientLeft,h.y=d.y+e.clientTop}else s&&(h.x=Ty(s));return{x:c.left+f.scrollLeft-h.x,y:c.top+f.scrollTop-h.y,width:c.width,height:c.height}}const UC={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:o,strategy:s}=t;const c=r==="clippingAncestors"?function(g,v){const y=v.get(g);if(y)return y;let w=Ec(g).filter(A=>Oi(A)&&zi(A)!=="body"),_=null;const L=Tr(g).position==="fixed";let M=L?Dl(g):g;for(;Oi(M)&&!td(M);){const A=Tr(M),T=ih(M);(L?T||_:T||A.position!=="static"||!_||!["absolute","fixed"].includes(_.position))?_=A:w=w.filter(E=>E!==M),M=Dl(M)}return v.set(g,w),w}(e,this._c):[].concat(r),f=[...c,o],h=f[0],d=f.reduce((g,v)=>{const y=$v(e,v,s);return g.top=wl(y.top,g.top),g.right=Mv(y.right,g.right),g.bottom=Mv(y.bottom,g.bottom),g.left=wl(y.left,g.left),g},$v(e,h,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:o}=t;const s=Er(r),c=Ri(r);if(r===c)return e;let f={scrollLeft:0,scrollTop:0},h={x:1,y:1};const d={x:0,y:0};if((s||!s&&o!=="fixed")&&((zi(r)!=="body"||iu(c))&&(f=ou(r)),Er(r))){const g=Rl(r);h=ls(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}return{width:e.width*h.x,height:e.height*h.y,x:e.x*h.x-f.scrollLeft*h.x+d.x,y:e.y*h.y-f.scrollTop*h.y+d.y}},isElement:Oi,getDimensions:function(t){return Er(t)?wy(t):t.getBoundingClientRect()},getOffsetParent:Ov,getDocumentElement:Ri,getScale:ls,async getElementRects(t){let{reference:e,floating:r,strategy:o}=t;const s=this.getOffsetParent||Ov,c=this.getDimensions;return{reference:WC(e,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>Tr(t).direction==="rtl"},jC=(t,e,r)=>{const o=new Map,s={platform:UC,...r},c={...s.platform,_c:o};return PC(t,e,{...s,platform:c})};function Ly(t,e){for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(typeof e[r]=="object"&&t[r]?Ly(t[r],e[r]):t[r]=e[r])}const fr={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:t=>[...t,"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 zl(t,e){let r=fr.themes[t]||{},o;do o=r[e],typeof o>"u"?r.$extend?r=fr.themes[r.$extend]||{}:(r=null,o=fr[e]):r=null;while(r);return o}function VC(t){const e=[t];let r=fr.themes[t]||{};do r.$extend&&!r.$resetCss?(e.push(r.$extend),r=fr.themes[r.$extend]||{}):r=null;while(r);return e.map(o=>`v-popper--theme-${o}`)}function Rv(t){const e=[t];let r=fr.themes[t]||{};do r.$extend?(e.push(r.$extend),r=fr.themes[r.$extend]||{}):r=null;while(r);return e}let gs=!1;if(typeof window<"u"){gs=!1;try{const t=Object.defineProperty({},"passive",{get(){gs=!0}});window.addEventListener("test",null,t)}catch{}}let Ay=!1;typeof window<"u"&&typeof navigator<"u"&&(Ay=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const My=["auto","top","bottom","left","right"].reduce((t,e)=>t.concat([e,`${e}-start`,`${e}-end`]),[]),Dv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},zv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Iv(t,e){const r=t.indexOf(e);r!==-1&&t.splice(r,1)}function Cf(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const ar=[];let co=null;const Fv={};function Hv(t){let e=Fv[t];return e||(e=Fv[t]=[]),e}let oh=function(){};typeof window<"u"&&(oh=window.Element);function se(t){return function(e){return zl(e.theme,t)}}const Tf="__floating-vue__popper",Ny=()=>fe({name:"VPopper",provide(){return{[Tf]:{parentPopper:this}}},inject:{[Tf]:{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:se("disabled")},positioningDisabled:{type:Boolean,default:se("positioningDisabled")},placement:{type:String,default:se("placement"),validator:t=>My.includes(t)},delay:{type:[String,Number,Object],default:se("delay")},distance:{type:[Number,String],default:se("distance")},skidding:{type:[Number,String],default:se("skidding")},triggers:{type:Array,default:se("triggers")},showTriggers:{type:[Array,Function],default:se("showTriggers")},hideTriggers:{type:[Array,Function],default:se("hideTriggers")},popperTriggers:{type:Array,default:se("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:se("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:se("popperHideTriggers")},container:{type:[String,Object,oh,Boolean],default:se("container")},boundary:{type:[String,oh],default:se("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:se("strategy")},autoHide:{type:[Boolean,Function],default:se("autoHide")},handleResize:{type:Boolean,default:se("handleResize")},instantMove:{type:Boolean,default:se("instantMove")},eagerMount:{type:Boolean,default:se("eagerMount")},popperClass:{type:[String,Array,Object],default:se("popperClass")},computeTransformOrigin:{type:Boolean,default:se("computeTransformOrigin")},autoMinSize:{type:Boolean,default:se("autoMinSize")},autoSize:{type:[Boolean,String],default:se("autoSize")},autoMaxSize:{type:Boolean,default:se("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:se("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:se("preventOverflow")},overflowPadding:{type:[Number,String],default:se("overflowPadding")},arrowPadding:{type:[Number,String],default:se("arrowPadding")},arrowOverflow:{type:Boolean,default:se("arrowOverflow")},flip:{type:Boolean,default:se("flip")},shift:{type:Boolean,default:se("shift")},shiftCrossAxis:{type:Boolean,default:se("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:se("noAutoFocus")},disposeTimeout:{type:Number,default:se("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":t=>!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(t=>t.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 t;return(t=this[Tf])==null?void 0:t.parentPopper},hasPopperShowTriggerHover(){var t,e;return((t=this.popperTriggers)==null?void 0:t.includes("hover"))||((e=this.popperShowTriggers)==null?void 0:e.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(t){t?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((t,e)=>(t[e]="$_computePosition",t),{})},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:t=null,skipDelay:e=!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(t,e),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:t=null,skipDelay:e=!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:e}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(t,e),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var t;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((t=this.referenceNode)==null?void 0:t.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.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 t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(FC({mainAxis:this.distance,crossAxis:this.skidding}));const e=this.placement.startsWith("auto");if(e?t.middleware.push(DC({alignment:this.placement.split("-")[1]??""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(HC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!e&&this.flip&&t.middleware.push(zC({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(OC({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:h}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(h)>s.reference.width/2:f=Math.abs(h)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var h;if((h=f.autoSize)!=null&&h.skip)return{};let d,g;return c.startsWith("top")||c.startsWith("bottom")?d=s.reference.width:g=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=d!=null?`${d}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=g!=null?`${g}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(qC({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 jC(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(t,e=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),co&&this.instantMove&&co.instantMove&&co!==this.parentPopper){co.$_applyHide(!0),this.$_applyShow(!0);return}e?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t,e=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(co=this),e?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const e=this.delay;return parseInt(e&&e[t]||e||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await Cf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Ec(this.$_referenceNode),...Ec(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const e=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=e.x+e.width/2-(o.left+r.offsetLeft),c=e.y+e.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 t=this.showGroup;if(t){let e;for(let r=0;r<ar.length;r++)e=ar[r],e.showGroup!==t&&(e.hide(),e.$emit("close-group"))}ar.push(this),document.body.classList.add("v-popper--some-open");for(const e of Rv(this.theme))Hv(e).push(this),document.body.classList.add(`v-popper--some-open--${e}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Cf(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(t=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,Iv(ar,this),ar.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Rv(this.theme)){const o=Hv(r);Iv(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}co===this&&(co=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const e=this.disposeTimeout;e!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},e)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Cf(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,Dv,this.triggers,this.showTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Dv,this.popperTriggers,this.popperShowTriggers,t);const e=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,zv,this.triggers,this.hideTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],zv,this.popperTriggers,this.popperHideTriggers,e)},$_registerEventListeners(t,e,r){this.$_events.push({targetNodes:t,eventType:e,handler:r}),t.forEach(o=>o.addEventListener(e,r,gs?{passive:!0}:void 0))},$_registerTriggerListeners(t,e,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const h=e[f];h&&this.$_registerEventListeners(t,h,s)})},$_removeEventListeners(t){const e=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!t||t===s?o.forEach(f=>f.removeEventListener(s,c)):e.push(r)}),this.$_events=e},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(t,e=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),e&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,e){for(const r of this.$_targetNodes){const o=r.getAttribute(t);o&&(r.removeAttribute(t),r.setAttribute(e,o))}},$_applyAttrsToTarget(t){for(const e of this.$_targetNodes)for(const r in t){const o=t[r];o==null?e.removeAttribute(r):e.setAttribute(r,o)}},$_updateParentShownChildren(t){let e=this.parentPopper;for(;e;)t?e.shownChildren.add(this.randomId):(e.shownChildren.delete(this.randomId),e.pendingHide&&e.hide()),e=e.parentPopper},$_isAimingPopper(){const t=this.$_referenceNode.getBoundingClientRect();if(xl>=t.left&&xl<=t.right&&_l>=t.top&&_l<=t.bottom){const e=this.$_popperNode.getBoundingClientRect(),r=xl-yi,o=_l-bi,s=e.left+e.width/2-yi+(e.top+e.height/2)-bi+e.width+e.height,c=yi+r*s,f=bi+o*s;return Wa(yi,bi,c,f,e.left,e.top,e.left,e.bottom)||Wa(yi,bi,c,f,e.left,e.top,e.right,e.top)||Wa(yi,bi,c,f,e.right,e.top,e.right,e.bottom)||Wa(yi,bi,c,f,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Ay){const t=gs?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",e=>qv(e,!0),t),document.addEventListener("touchend",e=>Bv(e,!0),t)}else window.addEventListener("mousedown",t=>qv(t,!1),!0),window.addEventListener("click",t=>Bv(t,!1),!0);window.addEventListener("resize",KC)}function qv(t,e){if(fr.autoHideOnMousedown)$y(t,e);else for(let r=0;r<ar.length;r++){const o=ar[r];try{o.mouseDownContains=o.popperNode().contains(t.target)}catch{}}}function Bv(t,e){fr.autoHideOnMousedown||$y(t,e)}function $y(t,e){const r={};for(let o=ar.length-1;o>=0;o--){const s=ar[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(t.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Wv(s,c,t)){if(s.$_handleGlobalClose(t,e),!t.closeAllPopover&&t.closePopover&&c){let h=s.parentPopper;for(;h;)r[h.randomId]=!0,h=h.parentPopper;return}let f=s.parentPopper;for(;f&&Wv(f,f.containsGlobalTarget,t);)f.$_handleGlobalClose(t,e),f=f.parentPopper}})}catch{}}}function Wv(t,e,r){return r.closeAllPopover||r.closePopover&&e||GC(t,r)&&!e}function GC(t,e){if(typeof t.autoHide=="function"){const r=t.autoHide(e);return t.lastAutoHide=r,r}return t.autoHide}function KC(){for(let t=0;t<ar.length;t++)ar[t].$_computePosition()}let yi=0,bi=0,xl=0,_l=0;typeof window<"u"&&window.addEventListener("mousemove",t=>{yi=xl,bi=_l,xl=t.clientX,_l=t.clientY},gs?{passive:!0}:void 0);function Wa(t,e,r,o,s,c,f,h){const d=((f-s)*(e-c)-(h-c)*(t-s))/((h-c)*(r-t)-(f-s)*(o-e)),g=((r-t)*(e-c)-(o-e)*(t-s))/((h-c)*(r-t)-(f-s)*(o-e));return d>=0&&d<=1&&g>=0&&g<=1}const XC={extends:Ny()},su=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r};function YC(t,e,r,o,s,c){return tt(),yt("div",{ref:"reference",class:de(["v-popper",{"v-popper--shown":t.slotData.isShown}])},[Kn(t.$slots,"default",Gx(Z0(t.slotData)))],2)}const ZC=su(XC,[["render",YC]]);function JC(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);var r=t.indexOf("Trident/");if(r>0){var o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}var s=t.indexOf("Edge/");return s>0?parseInt(t.substring(s+5,t.indexOf(".",s)),10):-1}let oc;function sh(){sh.init||(sh.init=!0,oc=JC()!==-1)}var lu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){sh(),Mr(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",oc&&this.$el.appendChild(t),t.data="about:blank",oc||this.$el.appendChild(t)},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&&(!oc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const QC=N_();k0("data-v-b329ee4c");const tT={class:"resize-observer",tabindex:"-1"};C0();const eT=QC((t,e,r,o,s,c)=>(tt(),Yt("div",tT)));lu.render=eT;lu.__scopeId="data-v-b329ee4c";lu.__file="src/components/ResizeObserver.vue";const Py=(t="theme")=>({computed:{themeClass(){return VC(this[t])}}}),nT=fe({name:"VPopperContent",components:{ResizeObserver:lu},mixins:[Py()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),rT=["id","aria-hidden","tabindex","data-popper-placement"],iT={ref:"inner",class:"v-popper__inner"},oT=J("div",{class:"v-popper__arrow-outer"},null,-1),sT=J("div",{class:"v-popper__arrow-inner"},null,-1),lT=[oT,sT];function aT(t,e,r,o,s,c){const f=yo("ResizeObserver");return tt(),yt("div",{id:t.popperId,ref:"popover",class:de(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:an(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:e[2]||(e[2]=Qf(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[J("div",{class:"v-popper__backdrop",onClick:e[0]||(e[0]=h=>t.autoHide&&t.$emit("hide"))}),J("div",{class:"v-popper__wrapper",style:an(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[J("div",iT,[t.mounted?(tt(),yt(ie,{key:0},[J("div",null,[Kn(t.$slots,"default")]),t.handleResize?(tt(),Yt(f,{key:0,onNotify:e[1]||(e[1]=h=>t.$emit("resize",h))})):Kt("",!0)],64)):Kt("",!0)],512),J("div",{ref:"arrow",class:"v-popper__arrow-container",style:an(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},lT,4)],4)],46,rT)}const Oy=su(nT,[["render",aT]]),Ry={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}};let lh=function(){};typeof window<"u"&&(lh=window.Element);const cT=fe({name:"VPopperWrapper",components:{Popper:ZC,PopperContent:Oy},mixins:[Ry,Py("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,lh,Boolean],default:void 0},boundary:{type:[String,lh],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":t=>!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(t=>t!==this.$refs.popperContent.$el)}}});function uT(t,e,r,o,s,c){const f=yo("PopperContent"),h=yo("Popper");return tt(),Yt(h,Pi({ref:"popper"},t.$props,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:[t.themeClass],onShow:e[0]||(e[0]=()=>t.$emit("show")),onHide:e[1]||(e[1]=()=>t.$emit("hide")),"onUpdate:shown":e[2]||(e[2]=d=>t.$emit("update:shown",d)),onApplyShow:e[3]||(e[3]=()=>t.$emit("apply-show")),onApplyHide:e[4]||(e[4]=()=>t.$emit("apply-hide")),onCloseGroup:e[5]||(e[5]=()=>t.$emit("close-group")),onCloseDirective:e[6]||(e[6]=()=>t.$emit("close-directive")),onAutoHide:e[7]||(e[7]=()=>t.$emit("auto-hide")),onResize:e[8]||(e[8]=()=>t.$emit("resize"))}),{default:oe(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:y,autoHide:w,show:_,hide:L,handleResize:M,onResize:A,classes:T,result:E})=>[Kn(t.$slots,"default",{shown:g,show:_,hide:L}),It(f,{ref:"popperContent","popper-id":d,theme:t.finalTheme,shown:g,mounted:v,"skip-transition":y,"auto-hide":w,"handle-resize":M,classes:T,result:E,onHide:L,onResize:A},{default:oe(()=>[Kn(t.$slots,"popper",{shown:g,hide:L})]),_: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 ed=su(cT,[["render",uT]]),fT={...ed,name:"VDropdown",vPopperTheme:"dropdown"},hT={...ed,name:"VMenu",vPopperTheme:"menu"},Dy={...ed,name:"VTooltip",vPopperTheme:"tooltip"},dT=fe({name:"VTooltipDirective",components:{Popper:Ny(),PopperContent:Oy},mixins:[Ry],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>zl(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>zl(t.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(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const e=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(e,o)):this.onResult(e,r)}},onResult(t,e){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=e)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),pT=["innerHTML"],gT=["textContent"];function vT(t,e,r,o,s,c){const f=yo("PopperContent"),h=yo("Popper");return tt(),Yt(h,Pi({ref:"popper"},t.$attrs,{theme:t.theme,"target-nodes":t.targetNodes,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:oe(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:y,autoHide:w,hide:_,handleResize:L,onResize:M,classes:A,result:T})=>[It(f,{ref:"popperContent",class:de({"v-popper--tooltip-loading":t.loading}),"popper-id":d,theme:t.theme,shown:g,mounted:v,"skip-transition":y,"auto-hide":w,"handle-resize":L,classes:A,result:T,onHide:_,onResize:M},{default:oe(()=>[t.html?(tt(),yt("div",{key:0,innerHTML:t.finalContent},null,8,pT)):(tt(),yt("div",{key:1,textContent:Vt(t.finalContent)},null,8,gT))]),_: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 mT=su(dT,[["render",vT]]),zy="v-popper--has-tooltip";function yT(t,e){let r=t.placement;if(!r&&e)for(const o of My)e[o]&&(r=o);return r||(r=zl(t.theme||"tooltip","placement")),r}function Iy(t,e,r){let o;const s=typeof e;return s==="string"?o={content:e}:e&&s==="object"?o=e:o={content:!1},o.placement=yT(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let Ef,Il,bT=0;function wT(){if(Ef)return;Il=Qt([]),Ef=iy({name:"VTooltipDirectiveApp",setup(){return{directives:Il}},render(){return this.directives.map(e=>Yl(mT,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),Ef.mount(t)}function Fy(t,e,r){wT();const o=Qt(Iy(t,e,r)),s=Qt(!1),c={id:bT++,options:o,shown:s};return Il.value.push(c),t.classList&&t.classList.add(zy),t.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function nd(t){if(t.$_popper){const e=Il.value.indexOf(t.$_popper.item);e!==-1&&Il.value.splice(e,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(zy)}function Uv(t,{value:e,modifiers:r}){const o=Iy(t,e,r);if(!o.content||zl(o.theme||"tooltip","disabled"))nd(t);else{let s;t.$_popper?(s=t.$_popper,s.options.value=o):s=Fy(t,e,r),typeof e.shown<"u"&&e.shown!==t.$_popperOldShown&&(t.$_popperOldShown=e.shown,e.shown?s.show():s.hide())}}const Hy={beforeMount:Uv,updated:Uv,beforeUnmount(t){nd(t)}};function jv(t){t.addEventListener("mousedown",Lc),t.addEventListener("click",Lc),t.addEventListener("touchstart",qy,gs?{passive:!0}:!1)}function Vv(t){t.removeEventListener("mousedown",Lc),t.removeEventListener("click",Lc),t.removeEventListener("touchstart",qy),t.removeEventListener("touchend",By),t.removeEventListener("touchcancel",Wy)}function Lc(t){const e=t.currentTarget;t.closePopover=!e.$_vclosepopover_touch,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}function qy(t){if(t.changedTouches.length===1){const e=t.currentTarget;e.$_vclosepopover_touch=!0;const r=t.changedTouches[0];e.$_vclosepopover_touchPoint=r,e.addEventListener("touchend",By),e.addEventListener("touchcancel",Wy)}}function By(t){const e=t.currentTarget;if(e.$_vclosepopover_touch=!1,t.changedTouches.length===1){const r=t.changedTouches[0],o=e.$_vclosepopover_touchPoint;t.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}}function Wy(t){const e=t.currentTarget;e.$_vclosepopover_touch=!1}const xT={beforeMount(t,{value:e,modifiers:r}){t.$_closePopoverModifiers=r,(typeof e>"u"||e)&&jv(t)},updated(t,{value:e,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,e!==r&&(typeof e>"u"||e?jv(t):Vv(t))},beforeUnmount(t){Vv(t)}},_T=Hy,ST=Dy;function kT(t,e={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,Ly(fr,e),t.directive("tooltip",Hy),t.directive("close-popper",xT),t.component("VTooltip",Dy),t.component("VDropdown",fT),t.component("VMenu",hT))}const Uy={version:"5.2.2",install:kT,options:fr},CT=6e4;function jy(t){return t}const TT=jy,{clearTimeout:ET,setTimeout:LT}=globalThis,AT=Math.random.bind(Math);function MT(t,e){const{post:r,on:o,eventNames:s=[],serialize:c=jy,deserialize:f=TT,resolver:h,timeout:d=CT}=e,g=new Map;let v;const y=new Proxy({},{get(w,_){if(_==="$functions")return t;if(_==="then"&&!s.includes("then")&&!("then"in t))return;const L=(...A)=>{r(c({m:_,a:A,t:"q"}))};if(s.includes(_))return L.asEvent=L,L;const M=async(...A)=>(await v,new Promise((T,E)=>{var H;const P=$T();let $;d>=0&&($=LT(()=>{var F;try{throw(F=e.onTimeoutError)==null||F.call(e,_,A),new Error(`[birpc] timeout on calling "${_}"`)}catch(ct){E(ct)}g.delete(P)},d),typeof $=="object"&&($=(H=$.unref)==null?void 0:H.call($))),g.set(P,{resolve:T,reject:E,timeoutId:$}),r(c({m:_,a:A,i:P,t:"q"}))}));return M.asEvent=L,M}});return v=o(async(w,..._)=>{const L=f(w);if(L.t==="q"){const{m:M,a:A}=L;let T,E;const P=h?h(M,t[M]):t[M];if(!P)E=new Error(`[birpc] function "${M}" not found`);else try{T=await P.apply(y,A)}catch($){E=$}L.i&&(E&&e.onError&&e.onError(E,M,A),r(c({t:"s",i:L.i,r:T,e:E}),..._))}else{const{i:M,r:A,e:T}=L,E=g.get(M);E&&(ET(E.timeoutId),T?E.reject(T):E.resolve(A)),g.delete(M)}}),y}const NT="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function $T(t=21){let e="",r=t;for(;r--;)e+=NT[AT()*64|0];return e}const{parse:PT,stringify:OT}=JSON,{keys:RT}=Object,Fl=String,Vy="string",Gv={},Ac="object",Gy=(t,e)=>e,DT=t=>t instanceof Fl?Fl(t):t,zT=(t,e)=>typeof e===Vy?new Fl(e):e,Ky=(t,e,r,o)=>{const s=[];for(let c=RT(r),{length:f}=c,h=0;h<f;h++){const d=c[h],g=r[d];if(g instanceof Fl){const v=t[g];typeof v===Ac&&!e.has(v)?(e.add(v),r[d]=Gv,s.push({k:d,a:[t,e,v,o]})):r[d]=o.call(r,d,v)}else r[d]!==Gv&&(r[d]=o.call(r,d,g))}for(let{length:c}=s,f=0;f<c;f++){const{k:h,a:d}=s[f];r[h]=o.call(r,h,Ky.apply(null,d))}return r},Kv=(t,e,r)=>{const o=Fl(e.push(r)-1);return t.set(r,o),o},ah=(t,e)=>{const r=PT(t,zT).map(DT),o=r[0],s=e||Gy,c=typeof o===Ac&&o?Ky(r,new Set,o,s):o;return s.call({"":c},"",c)},IT=(t,e,r)=>{const o=e&&typeof e===Ac?(v,y)=>v===""||-1<e.indexOf(v)?y:void 0:e||Gy,s=new Map,c=[],f=[];let h=+Kv(s,c,o.call({"":t},"",t)),d=!h;for(;h<c.length;)d=!0,f[h]=OT(c[h++],g,r);return"["+f.join(",")+"]";function g(v,y){if(d)return d=!d,y;const w=o.call(this,v,y);switch(typeof w){case Ac:if(w===null)return w;case Vy:return s.get(w)||Kv(s,c,w)}return w}};var bo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xy(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Yy(t){return t!=null}function Zy(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}const FT=/^[A-Za-z]:\//;function HT(t=""){return t&&t.replace(/\\/g,"/").replace(FT,e=>e.toUpperCase())}const qT=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Xv=/^\/([A-Za-z]:)?$/;function BT(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Yv=function(...t){t=t.map(o=>HT(o));let e="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const s=o>=0?t[o]:BT();!s||s.length===0||(e=`${s}/${e}`,r=Zv(s))}return e=WT(e,!r),r&&!Zv(e)?`/${e}`:e.length>0?e:"."};function WT(t,e){let r="",o=0,s=-1,c=0,f=null;for(let h=0;h<=t.length;++h){if(h<t.length)f=t[h];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===h-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 d=r.lastIndexOf("/");d===-1?(r="",o=0):(r=r.slice(0,d),o=r.length-1-r.lastIndexOf("/")),s=h,c=0;continue}else if(r.length>0){r="",o=0,s=h,c=0;continue}}e&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${t.slice(s+1,h)}`:r=t.slice(s+1,h),o=h-s-1;s=h,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Zv=function(t){return qT.test(t)},UT=function(t,e){const r=Yv(t).replace(Xv,"$1").split("/"),o=Yv(e).replace(Xv,"$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 jT(t){let e=0;if(t.length===0)return`${e}`;for(let r=0;r<t.length;r++){const o=t.charCodeAt(r);e=(e<<5)-e+o,e=e&e}return`${e}`}function ch(t,e,r){const o=UT(e,t),s={id:jT(`${o}${r||""}`),name:o,type:"suite",mode:"run",filepath:t,tasks:[],meta:Object.create(null),projectName:r,file:void 0};return s.file=s,s}function uh(t){return t.type==="test"||t.type==="custom"}function Jy(t){const e=[],r=Zy(t);for(const o of r)if(uh(o))e.push(o);else for(const s of o.tasks)if(uh(s))e.push(s);else{const c=Jy(s);for(const f of c)e.push(f)}return e}function rd(t=[]){return Zy(t).flatMap(e=>uh(e)?[e]:[e,...rd(e.tasks)])}function VT(t){const e=[t.name];let r=t;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&e.unshift(r.name);return r!==t.file&&e.unshift(t.file.name),e}function GT(t){return typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t}class Qy{constructor(){io(this,"filesMap",new Map);io(this,"pathsSet",new Set);io(this,"idMap",new Map);io(this,"taskFileMap",new WeakMap);io(this,"errorsSet",new Set);io(this,"processTimeoutCauses",new Set)}catchError(e,r){if(GT(e))return e.errors.forEach(s=>this.catchError(s,r));e===Object(e)?e.type=r:e={type:r,message:e};const o=e;if(o&&typeof o=="object"&&o.code==="VITEST_PENDING"){const s=this.idMap.get(o.taskId);s&&(s.mode="skip",s.result??(s.result={state:"skip"}),s.result.state="skip");return}this.errorsSet.add(e)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}addProcessTimeoutCause(e){this.processTimeoutCauses.add(e)}getProcessTimeoutCauses(){return Array.from(this.processTimeoutCauses.values())}getPaths(){return Array.from(this.pathsSet)}getFiles(e){return e?e.map(r=>this.filesMap.get(r)).filter(Boolean).flat():Array.from(this.filesMap.values()).flat()}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(e=>{var r;return((r=e.result)==null?void 0:r.state)==="fail"}).map(e=>e.filepath)}collectPaths(e=[]){e.forEach(r=>{this.pathsSet.add(r)})}collectFiles(e=[]){e.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName),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(e,r=[]){const o=e;r.forEach(s=>{const c=this.filesMap.get(s),f=ch(s,o.config.root,o.config.name);if(this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const h=c.filter(d=>d.projectName!==o.config.name);h.length?this.filesMap.set(s,[...h,f]):this.filesMap.set(s,[f])})}updateId(e){this.idMap.get(e.id)!==e&&(this.idMap.set(e.id,e),e.type==="suite"&&e.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(e){for(const[r,o,s]of e){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(e){const r=e.taskId&&this.idMap.get(e.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(e))}getCountOfFailedTests(){return Array.from(this.idMap.values()).filter(e=>{var r;return((r=e.result)==null?void 0:r.state)==="fail"}).length}cancelFiles(e,r,o){this.collectFiles(e.map(s=>ch(s,r,o)))}}function Ei(t){return Jy(t).some(e=>{var r,o;return(o=(r=e.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function KT(t,e={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:h=E=>E,WebSocketConstructor:d=globalThis.WebSocket}=e;let g=c;const v=h({ws:new d(t),state:new Qy,waitForConnection:T,reconnect:M},"state");v.state.filesMap=h(v.state.filesMap,"filesMap"),v.state.idMap=h(v.state.idMap,"idMap");let y;const w={onSpecsCollected(E){var P;E==null||E.forEach(([$,H])=>{v.state.clearFiles({config:$},[H])}),(P=r.onSpecsCollected)==null||P.call(r,E)},onPathsCollected(E){var P;v.state.collectPaths(E),(P=r.onPathsCollected)==null||P.call(r,E)},onCollected(E){var P;v.state.collectFiles(E),(P=r.onCollected)==null||P.call(r,E)},onTaskUpdate(E){var P;v.state.updateTasks(E),(P=r.onTaskUpdate)==null||P.call(r,E)},onUserConsoleLog(E){var P;v.state.updateUserLog(E),(P=r.onUserConsoleLog)==null||P.call(r,E)},onFinished(E,P){var $;($=r.onFinished)==null||$.call(r,E,P)},onFinishedReportCoverage(){var E;(E=r.onFinishedReportCoverage)==null||E.call(r)}},_={post:E=>v.ws.send(E),on:E=>y=E,serialize:E=>IT(E,(P,$)=>$ instanceof Error?{name:$.name,message:$.message,stack:$.stack}:$),deserialize:ah,onTimeoutError(E){throw new Error(`[vitest-ws-client]: Timeout calling "${E}"`)}};v.rpc=MT(w,_);let L;function M(E=!1){E&&(g=c),v.ws=new d(t),A()}function A(){L=new Promise((E,P)=>{var H,F;const $=(F=(H=setTimeout(()=>{P(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:H.unref)==null?void 0:F.call(H);v.ws.OPEN===v.ws.readyState&&E(),v.ws.addEventListener("open",()=>{g=c,E(),clearTimeout($)})}),v.ws.addEventListener("message",E=>{y(E.data)}),v.ws.addEventListener("close",()=>{g-=1,o&&g>0&&setTimeout(M,s)})}A();function T(){return L}return v}const XT=location.port,YT=[location.hostname,XT].filter(Boolean).join(":"),ZT=`${location.protocol==="https:"?"wss:":"ws:"}//${YT}/__vitest_api__`,Zr=!!window.METADATA_PATH;var tb={},Yr={};const JT="Á",QT="á",tE="Ă",eE="ă",nE="∾",rE="∿",iE="∾̳",oE="Â",sE="â",lE="´",aE="А",cE="а",uE="Æ",fE="æ",hE="",dE="𝔄",pE="𝔞",gE="À",vE="à",mE="ℵ",yE="ℵ",bE="Α",wE="α",xE="Ā",_E="ā",SE="⨿",kE="&",CE="&",TE="⩕",EE="⩓",LE="∧",AE="⩜",ME="⩘",NE="⩚",$E="∠",PE="⦤",OE="∠",RE="⦨",DE="⦩",zE="⦪",IE="⦫",FE="⦬",HE="⦭",qE="⦮",BE="⦯",WE="∡",UE="∟",jE="⊾",VE="⦝",GE="∢",KE="Å",XE="⍼",YE="Ą",ZE="ą",JE="𝔸",QE="𝕒",tL="⩯",eL="≈",nL="⩰",rL="≊",iL="≋",oL="'",sL="",lL="≈",aL="≊",cL="Å",uL="å",fL="𝒜",hL="𝒶",dL="≔",pL="*",gL="≈",vL="≍",mL="Ã",yL="ã",bL="Ä",wL="ä",xL="∳",_L="⨑",SL="≌",kL="϶",CL="‵",TL="∽",EL="⋍",LL="∖",AL="⫧",ML="⊽",NL="⌅",$L="⌆",PL="⌅",OL="⎵",RL="⎶",DL="≌",zL="Б",IL="б",FL="„",HL="∵",qL="∵",BL="∵",WL="⦰",UL="϶",jL="ℬ",VL="ℬ",GL="Β",KL="β",XL="ℶ",YL="≬",ZL="𝔅",JL="𝔟",QL="⋂",tA="◯",eA="⋃",nA="⨀",rA="⨁",iA="⨂",oA="⨆",sA="★",lA="▽",aA="△",cA="⨄",uA="⋁",fA="⋀",hA="⤍",dA="⧫",pA="▪",gA="▴",vA="▾",mA="◂",yA="▸",bA="␣",wA="▒",xA="░",_A="▓",SA="█",kA="=⃥",CA="≡⃥",TA="⫭",EA="⌐",LA="𝔹",AA="𝕓",MA="⊥",NA="⊥",$A="⋈",PA="⧉",OA="┐",RA="╕",DA="╖",zA="╗",IA="┌",FA="╒",HA="╓",qA="╔",BA="─",WA="═",UA="┬",jA="╤",VA="╥",GA="╦",KA="┴",XA="╧",YA="╨",ZA="╩",JA="⊟",QA="⊞",tM="⊠",eM="┘",nM="╛",rM="╜",iM="╝",oM="└",sM="╘",lM="╙",aM="╚",cM="│",uM="║",fM="┼",hM="╪",dM="╫",pM="╬",gM="┤",vM="╡",mM="╢",yM="╣",bM="├",wM="╞",xM="╟",_M="╠",SM="‵",kM="˘",CM="˘",TM="¦",EM="𝒷",LM="ℬ",AM="⁏",MM="∽",NM="⋍",$M="⧅",PM="\\",OM="⟈",RM="•",DM="•",zM="≎",IM="⪮",FM="≏",HM="≎",qM="≏",BM="Ć",WM="ć",UM="⩄",jM="⩉",VM="⩋",GM="∩",KM="⋒",XM="⩇",YM="⩀",ZM="ⅅ",JM="∩︀",QM="⁁",tN="ˇ",eN="ℭ",nN="⩍",rN="Č",iN="č",oN="Ç",sN="ç",lN="Ĉ",aN="ĉ",cN="∰",uN="⩌",fN="⩐",hN="Ċ",dN="ċ",pN="¸",gN="¸",vN="⦲",mN="¢",yN="·",bN="·",wN="𝔠",xN="ℭ",_N="Ч",SN="ч",kN="✓",CN="✓",TN="Χ",EN="χ",LN="ˆ",AN="≗",MN="↺",NN="↻",$N="⊛",PN="⊚",ON="⊝",RN="⊙",DN="®",zN="Ⓢ",IN="⊖",FN="⊕",HN="⊗",qN="○",BN="⧃",WN="≗",UN="⨐",jN="⫯",VN="⧂",GN="∲",KN="”",XN="’",YN="♣",ZN="♣",JN=":",QN="∷",t$="⩴",e$="≔",n$="≔",r$=",",i$="@",o$="∁",s$="∘",l$="∁",a$="ℂ",c$="≅",u$="⩭",f$="≡",h$="∮",d$="∯",p$="∮",g$="𝕔",v$="ℂ",m$="∐",y$="∐",b$="©",w$="©",x$="℗",_$="∳",S$="↵",k$="✗",C$="⨯",T$="𝒞",E$="𝒸",L$="⫏",A$="⫑",M$="⫐",N$="⫒",$$="⋯",P$="⤸",O$="⤵",R$="⋞",D$="⋟",z$="↶",I$="⤽",F$="⩈",H$="⩆",q$="≍",B$="∪",W$="⋓",U$="⩊",j$="⊍",V$="⩅",G$="∪︀",K$="↷",X$="⤼",Y$="⋞",Z$="⋟",J$="⋎",Q$="⋏",tP="¤",eP="↶",nP="↷",rP="⋎",iP="⋏",oP="∲",sP="∱",lP="⌭",aP="†",cP="‡",uP="ℸ",fP="↓",hP="↡",dP="⇓",pP="‐",gP="⫤",vP="⊣",mP="⤏",yP="˝",bP="Ď",wP="ď",xP="Д",_P="д",SP="‡",kP="⇊",CP="ⅅ",TP="ⅆ",EP="⤑",LP="⩷",AP="°",MP="∇",NP="Δ",$P="δ",PP="⦱",OP="⥿",RP="𝔇",DP="𝔡",zP="⥥",IP="⇃",FP="⇂",HP="´",qP="˙",BP="˝",WP="`",UP="˜",jP="⋄",VP="⋄",GP="⋄",KP="♦",XP="♦",YP="¨",ZP="ⅆ",JP="ϝ",QP="⋲",tO="÷",eO="÷",nO="⋇",rO="⋇",iO="Ђ",oO="ђ",sO="⌞",lO="⌍",aO="$",cO="𝔻",uO="𝕕",fO="¨",hO="˙",dO="⃜",pO="≐",gO="≑",vO="≐",mO="∸",yO="∔",bO="⊡",wO="⌆",xO="∯",_O="¨",SO="⇓",kO="⇐",CO="⇔",TO="⫤",EO="⟸",LO="⟺",AO="⟹",MO="⇒",NO="⊨",$O="⇑",PO="⇕",OO="∥",RO="⤓",DO="↓",zO="↓",IO="⇓",FO="⇵",HO="̑",qO="⇊",BO="⇃",WO="⇂",UO="⥐",jO="⥞",VO="⥖",GO="↽",KO="⥟",XO="⥗",YO="⇁",ZO="↧",JO="⊤",QO="⤐",tR="⌟",eR="⌌",nR="𝒟",rR="𝒹",iR="Ѕ",oR="ѕ",sR="⧶",lR="Đ",aR="đ",cR="⋱",uR="▿",fR="▾",hR="⇵",dR="⥯",pR="⦦",gR="Џ",vR="џ",mR="⟿",yR="É",bR="é",wR="⩮",xR="Ě",_R="ě",SR="Ê",kR="ê",CR="≖",TR="≕",ER="Э",LR="э",AR="⩷",MR="Ė",NR="ė",$R="≑",PR="ⅇ",OR="≒",RR="𝔈",DR="𝔢",zR="⪚",IR="È",FR="è",HR="⪖",qR="⪘",BR="⪙",WR="∈",UR="⏧",jR="ℓ",VR="⪕",GR="⪗",KR="Ē",XR="ē",YR="∅",ZR="∅",JR="◻",QR="∅",tD="▫",eD=" ",nD=" ",rD=" ",iD="Ŋ",oD="ŋ",sD=" ",lD="Ę",aD="ę",cD="𝔼",uD="𝕖",fD="⋕",hD="⧣",dD="⩱",pD="ε",gD="Ε",vD="ε",mD="ϵ",yD="≖",bD="≕",wD="≂",xD="⪖",_D="⪕",SD="⩵",kD="=",CD="≂",TD="≟",ED="⇌",LD="≡",AD="⩸",MD="⧥",ND="⥱",$D="≓",PD="ℯ",OD="ℰ",RD="≐",DD="⩳",zD="≂",ID="Η",FD="η",HD="Ð",qD="ð",BD="Ë",WD="ë",UD="€",jD="!",VD="∃",GD="∃",KD="ℰ",XD="ⅇ",YD="ⅇ",ZD="≒",JD="Ф",QD="ф",t2="♀",e2="ffi",n2="ff",r2="ffl",i2="𝔉",o2="𝔣",s2="fi",l2="◼",a2="▪",c2="fj",u2="♭",f2="fl",h2="▱",d2="ƒ",p2="𝔽",g2="𝕗",v2="∀",m2="∀",y2="⋔",b2="⫙",w2="ℱ",x2="⨍",_2="½",S2="⅓",k2="¼",C2="⅕",T2="⅙",E2="⅛",L2="⅔",A2="⅖",M2="¾",N2="⅗",$2="⅜",P2="⅘",O2="⅚",R2="⅝",D2="⅞",z2="⁄",I2="⌢",F2="𝒻",H2="ℱ",q2="ǵ",B2="Γ",W2="γ",U2="Ϝ",j2="ϝ",V2="⪆",G2="Ğ",K2="ğ",X2="Ģ",Y2="Ĝ",Z2="ĝ",J2="Г",Q2="г",tz="Ġ",ez="ġ",nz="≥",rz="≧",iz="⪌",oz="⋛",sz="≥",lz="≧",az="⩾",cz="⪩",uz="⩾",fz="⪀",hz="⪂",dz="⪄",pz="⋛︀",gz="⪔",vz="𝔊",mz="𝔤",yz="≫",bz="⋙",wz="⋙",xz="ℷ",_z="Ѓ",Sz="ѓ",kz="⪥",Cz="≷",Tz="⪒",Ez="⪤",Lz="⪊",Az="⪊",Mz="⪈",Nz="≩",$z="⪈",Pz="≩",Oz="⋧",Rz="𝔾",Dz="𝕘",zz="`",Iz="≥",Fz="⋛",Hz="≧",qz="⪢",Bz="≷",Wz="⩾",Uz="≳",jz="𝒢",Vz="ℊ",Gz="≳",Kz="⪎",Xz="⪐",Yz="⪧",Zz="⩺",Jz=">",Qz=">",tI="≫",eI="⋗",nI="⦕",rI="⩼",iI="⪆",oI="⥸",sI="⋗",lI="⋛",aI="⪌",cI="≷",uI="≳",fI="≩︀",hI="≩︀",dI="ˇ",pI=" ",gI="½",vI="ℋ",mI="Ъ",yI="ъ",bI="⥈",wI="↔",xI="⇔",_I="↭",SI="^",kI="ℏ",CI="Ĥ",TI="ĥ",EI="♥",LI="♥",AI="…",MI="⊹",NI="𝔥",$I="ℌ",PI="ℋ",OI="⤥",RI="⤦",DI="⇿",zI="∻",II="↩",FI="↪",HI="𝕙",qI="ℍ",BI="―",WI="─",UI="𝒽",jI="ℋ",VI="ℏ",GI="Ħ",KI="ħ",XI="≎",YI="≏",ZI="⁃",JI="‐",QI="Í",tF="í",eF="",nF="Î",rF="î",iF="И",oF="и",sF="İ",lF="Е",aF="е",cF="¡",uF="⇔",fF="𝔦",hF="ℑ",dF="Ì",pF="ì",gF="ⅈ",vF="⨌",mF="∭",yF="⧜",bF="℩",wF="IJ",xF="ij",_F="Ī",SF="ī",kF="ℑ",CF="ⅈ",TF="ℐ",EF="ℑ",LF="ı",AF="ℑ",MF="⊷",NF="Ƶ",$F="⇒",PF="℅",OF="∞",RF="⧝",DF="ı",zF="⊺",IF="∫",FF="∬",HF="ℤ",qF="∫",BF="⊺",WF="⋂",UF="⨗",jF="⨼",VF="",GF="",KF="Ё",XF="ё",YF="Į",ZF="į",JF="𝕀",QF="𝕚",tH="Ι",eH="ι",nH="⨼",rH="¿",iH="𝒾",oH="ℐ",sH="∈",lH="⋵",aH="⋹",cH="⋴",uH="⋳",fH="∈",hH="",dH="Ĩ",pH="ĩ",gH="І",vH="і",mH="Ï",yH="ï",bH="Ĵ",wH="ĵ",xH="Й",_H="й",SH="𝔍",kH="𝔧",CH="ȷ",TH="𝕁",EH="𝕛",LH="𝒥",AH="𝒿",MH="Ј",NH="ј",$H="Є",PH="є",OH="Κ",RH="κ",DH="ϰ",zH="Ķ",IH="ķ",FH="К",HH="к",qH="𝔎",BH="𝔨",WH="ĸ",UH="Х",jH="х",VH="Ќ",GH="ќ",KH="𝕂",XH="𝕜",YH="𝒦",ZH="𝓀",JH="⇚",QH="Ĺ",tq="ĺ",eq="⦴",nq="ℒ",rq="Λ",iq="λ",oq="⟨",sq="⟪",lq="⦑",aq="⟨",cq="⪅",uq="ℒ",fq="«",hq="⇤",dq="⤟",pq="←",gq="↞",vq="⇐",mq="⤝",yq="↩",bq="↫",wq="⤹",xq="⥳",_q="↢",Sq="⤙",kq="⤛",Cq="⪫",Tq="⪭",Eq="⪭︀",Lq="⤌",Aq="⤎",Mq="❲",Nq="{",$q="[",Pq="⦋",Oq="⦏",Rq="⦍",Dq="Ľ",zq="ľ",Iq="Ļ",Fq="ļ",Hq="⌈",qq="{",Bq="Л",Wq="л",Uq="⤶",jq="“",Vq="„",Gq="⥧",Kq="⥋",Xq="↲",Yq="≤",Zq="≦",Jq="⟨",Qq="⇤",tB="←",eB="←",nB="⇐",rB="⇆",iB="↢",oB="⌈",sB="⟦",lB="⥡",aB="⥙",cB="⇃",uB="⌊",fB="↽",hB="↼",dB="⇇",pB="↔",gB="↔",vB="⇔",mB="⇆",yB="⇋",bB="↭",wB="⥎",xB="↤",_B="⊣",SB="⥚",kB="⋋",CB="⧏",TB="⊲",EB="⊴",LB="⥑",AB="⥠",MB="⥘",NB="↿",$B="⥒",PB="↼",OB="⪋",RB="⋚",DB="≤",zB="≦",IB="⩽",FB="⪨",HB="⩽",qB="⩿",BB="⪁",WB="⪃",UB="⋚︀",jB="⪓",VB="⪅",GB="⋖",KB="⋚",XB="⪋",YB="⋚",ZB="≦",JB="≶",QB="≶",t3="⪡",e3="≲",n3="⩽",r3="≲",i3="⥼",o3="⌊",s3="𝔏",l3="𝔩",a3="≶",c3="⪑",u3="⥢",f3="↽",h3="↼",d3="⥪",p3="▄",g3="Љ",v3="љ",m3="⇇",y3="≪",b3="⋘",w3="⌞",x3="⇚",_3="⥫",S3="◺",k3="Ŀ",C3="ŀ",T3="⎰",E3="⎰",L3="⪉",A3="⪉",M3="⪇",N3="≨",$3="⪇",P3="≨",O3="⋦",R3="⟬",D3="⇽",z3="⟦",I3="⟵",F3="⟵",H3="⟸",q3="⟷",B3="⟷",W3="⟺",U3="⟼",j3="⟶",V3="⟶",G3="⟹",K3="↫",X3="↬",Y3="⦅",Z3="𝕃",J3="𝕝",Q3="⨭",t5="⨴",e5="∗",n5="_",r5="↙",i5="↘",o5="◊",s5="◊",l5="⧫",a5="(",c5="⦓",u5="⇆",f5="⌟",h5="⇋",d5="⥭",p5="",g5="⊿",v5="‹",m5="𝓁",y5="ℒ",b5="↰",w5="↰",x5="≲",_5="⪍",S5="⪏",k5="[",C5="‘",T5="‚",E5="Ł",L5="ł",A5="⪦",M5="⩹",N5="<",$5="<",P5="≪",O5="⋖",R5="⋋",D5="⋉",z5="⥶",I5="⩻",F5="◃",H5="⊴",q5="◂",B5="⦖",W5="⥊",U5="⥦",j5="≨︀",V5="≨︀",G5="¯",K5="♂",X5="✠",Y5="✠",Z5="↦",J5="↦",Q5="↧",t8="↤",e8="↥",n8="▮",r8="⨩",i8="М",o8="м",s8="—",l8="∺",a8="∡",c8=" ",u8="ℳ",f8="𝔐",h8="𝔪",d8="℧",p8="µ",g8="*",v8="⫰",m8="∣",y8="·",b8="⊟",w8="−",x8="∸",_8="⨪",S8="∓",k8="⫛",C8="…",T8="∓",E8="⊧",L8="𝕄",A8="𝕞",M8="∓",N8="𝓂",$8="ℳ",P8="∾",O8="Μ",R8="μ",D8="⊸",z8="⊸",I8="∇",F8="Ń",H8="ń",q8="∠⃒",B8="≉",W8="⩰̸",U8="≋̸",j8="ʼn",V8="≉",G8="♮",K8="ℕ",X8="♮",Y8=" ",Z8="≎̸",J8="≏̸",Q8="⩃",tW="Ň",eW="ň",nW="Ņ",rW="ņ",iW="≇",oW="⩭̸",sW="⩂",lW="Н",aW="н",cW="–",uW="⤤",fW="↗",hW="⇗",dW="↗",pW="≠",gW="≐̸",vW="",mW="",yW="",bW="",wW="≢",xW="⤨",_W="≂̸",SW="≫",kW="≪",CW=`
|
|
22
|
+
`,TW="∄",EW="∄",LW="𝔑",AW="𝔫",MW="≧̸",NW="≱",$W="≱",PW="≧̸",OW="⩾̸",RW="⩾̸",DW="⋙̸",zW="≵",IW="≫⃒",FW="≯",HW="≯",qW="≫̸",BW="↮",WW="⇎",UW="⫲",jW="∋",VW="⋼",GW="⋺",KW="∋",XW="Њ",YW="њ",ZW="↚",JW="⇍",QW="‥",t4="≦̸",e4="≰",n4="↚",r4="⇍",i4="↮",o4="⇎",s4="≰",l4="≦̸",a4="⩽̸",c4="⩽̸",u4="≮",f4="⋘̸",h4="≴",d4="≪⃒",p4="≮",g4="⋪",v4="⋬",m4="≪̸",y4="∤",b4="",w4=" ",x4="𝕟",_4="ℕ",S4="⫬",k4="¬",C4="≢",T4="≭",E4="∦",L4="∉",A4="≠",M4="≂̸",N4="∄",$4="≯",P4="≱",O4="≧̸",R4="≫̸",D4="≹",z4="⩾̸",I4="≵",F4="≎̸",H4="≏̸",q4="∉",B4="⋵̸",W4="⋹̸",U4="∉",j4="⋷",V4="⋶",G4="⧏̸",K4="⋪",X4="⋬",Y4="≮",Z4="≰",J4="≸",Q4="≪̸",tU="⩽̸",eU="≴",nU="⪢̸",rU="⪡̸",iU="∌",oU="∌",sU="⋾",lU="⋽",aU="⊀",cU="⪯̸",uU="⋠",fU="∌",hU="⧐̸",dU="⋫",pU="⋭",gU="⊏̸",vU="⋢",mU="⊐̸",yU="⋣",bU="⊂⃒",wU="⊈",xU="⊁",_U="⪰̸",SU="⋡",kU="≿̸",CU="⊃⃒",TU="⊉",EU="≁",LU="≄",AU="≇",MU="≉",NU="∤",$U="∦",PU="∦",OU="⫽⃥",RU="∂̸",DU="⨔",zU="⊀",IU="⋠",FU="⊀",HU="⪯̸",qU="⪯̸",BU="⤳̸",WU="↛",UU="⇏",jU="↝̸",VU="↛",GU="⇏",KU="⋫",XU="⋭",YU="⊁",ZU="⋡",JU="⪰̸",QU="𝒩",t6="𝓃",e6="∤",n6="∦",r6="≁",i6="≄",o6="≄",s6="∤",l6="∦",a6="⋢",c6="⋣",u6="⊄",f6="⫅̸",h6="⊈",d6="⊂⃒",p6="⊈",g6="⫅̸",v6="⊁",m6="⪰̸",y6="⊅",b6="⫆̸",w6="⊉",x6="⊃⃒",_6="⊉",S6="⫆̸",k6="≹",C6="Ñ",T6="ñ",E6="≸",L6="⋪",A6="⋬",M6="⋫",N6="⋭",$6="Ν",P6="ν",O6="#",R6="№",D6=" ",z6="≍⃒",I6="⊬",F6="⊭",H6="⊮",q6="⊯",B6="≥⃒",W6=">⃒",U6="⤄",j6="⧞",V6="⤂",G6="≤⃒",K6="<⃒",X6="⊴⃒",Y6="⤃",Z6="⊵⃒",J6="∼⃒",Q6="⤣",tj="↖",ej="⇖",nj="↖",rj="⤧",ij="Ó",oj="ó",sj="⊛",lj="Ô",aj="ô",cj="⊚",uj="О",fj="о",hj="⊝",dj="Ő",pj="ő",gj="⨸",vj="⊙",mj="⦼",yj="Œ",bj="œ",wj="⦿",xj="𝔒",_j="𝔬",Sj="˛",kj="Ò",Cj="ò",Tj="⧁",Ej="⦵",Lj="Ω",Aj="∮",Mj="↺",Nj="⦾",$j="⦻",Pj="‾",Oj="⧀",Rj="Ō",Dj="ō",zj="Ω",Ij="ω",Fj="Ο",Hj="ο",qj="⦶",Bj="⊖",Wj="𝕆",Uj="𝕠",jj="⦷",Vj="“",Gj="‘",Kj="⦹",Xj="⊕",Yj="↻",Zj="⩔",Jj="∨",Qj="⩝",tV="ℴ",eV="ℴ",nV="ª",rV="º",iV="⊶",oV="⩖",sV="⩗",lV="⩛",aV="Ⓢ",cV="𝒪",uV="ℴ",fV="Ø",hV="ø",dV="⊘",pV="Õ",gV="õ",vV="⨶",mV="⨷",yV="⊗",bV="Ö",wV="ö",xV="⌽",_V="‾",SV="⏞",kV="⎴",CV="⏜",TV="¶",EV="∥",LV="∥",AV="⫳",MV="⫽",NV="∂",$V="∂",PV="П",OV="п",RV="%",DV=".",zV="‰",IV="⊥",FV="‱",HV="𝔓",qV="𝔭",BV="Φ",WV="φ",UV="ϕ",jV="ℳ",VV="☎",GV="Π",KV="π",XV="⋔",YV="ϖ",ZV="ℏ",JV="ℎ",QV="ℏ",tG="⨣",eG="⊞",nG="⨢",rG="+",iG="∔",oG="⨥",sG="⩲",lG="±",aG="±",cG="⨦",uG="⨧",fG="±",hG="ℌ",dG="⨕",pG="𝕡",gG="ℙ",vG="£",mG="⪷",yG="⪻",bG="≺",wG="≼",xG="⪷",_G="≺",SG="≼",kG="≺",CG="⪯",TG="≼",EG="≾",LG="⪯",AG="⪹",MG="⪵",NG="⋨",$G="⪯",PG="⪳",OG="≾",RG="′",DG="″",zG="ℙ",IG="⪹",FG="⪵",HG="⋨",qG="∏",BG="∏",WG="⌮",UG="⌒",jG="⌓",VG="∝",GG="∝",KG="∷",XG="∝",YG="≾",ZG="⊰",JG="𝒫",QG="𝓅",t9="Ψ",e9="ψ",n9=" ",r9="𝔔",i9="𝔮",o9="⨌",s9="𝕢",l9="ℚ",a9="⁗",c9="𝒬",u9="𝓆",f9="ℍ",h9="⨖",d9="?",p9="≟",g9='"',v9='"',m9="⇛",y9="∽̱",b9="Ŕ",w9="ŕ",x9="√",_9="⦳",S9="⟩",k9="⟫",C9="⦒",T9="⦥",E9="⟩",L9="»",A9="⥵",M9="⇥",N9="⤠",$9="⤳",P9="→",O9="↠",R9="⇒",D9="⤞",z9="↪",I9="↬",F9="⥅",H9="⥴",q9="⤖",B9="↣",W9="↝",U9="⤚",j9="⤜",V9="∶",G9="ℚ",K9="⤍",X9="⤏",Y9="⤐",Z9="❳",J9="}",Q9="]",t7="⦌",e7="⦎",n7="⦐",r7="Ř",i7="ř",o7="Ŗ",s7="ŗ",l7="⌉",a7="}",c7="Р",u7="р",f7="⤷",h7="⥩",d7="”",p7="”",g7="↳",v7="ℜ",m7="ℛ",y7="ℜ",b7="ℝ",w7="ℜ",x7="▭",_7="®",S7="®",k7="∋",C7="⇋",T7="⥯",E7="⥽",L7="⌋",A7="𝔯",M7="ℜ",N7="⥤",$7="⇁",P7="⇀",O7="⥬",R7="Ρ",D7="ρ",z7="ϱ",I7="⟩",F7="⇥",H7="→",q7="→",B7="⇒",W7="⇄",U7="↣",j7="⌉",V7="⟧",G7="⥝",K7="⥕",X7="⇂",Y7="⌋",Z7="⇁",J7="⇀",Q7="⇄",tK="⇌",eK="⇉",nK="↝",rK="↦",iK="⊢",oK="⥛",sK="⋌",lK="⧐",aK="⊳",cK="⊵",uK="⥏",fK="⥜",hK="⥔",dK="↾",pK="⥓",gK="⇀",vK="˚",mK="≓",yK="⇄",bK="⇌",wK="",xK="⎱",_K="⎱",SK="⫮",kK="⟭",CK="⇾",TK="⟧",EK="⦆",LK="𝕣",AK="ℝ",MK="⨮",NK="⨵",$K="⥰",PK=")",OK="⦔",RK="⨒",DK="⇉",zK="⇛",IK="›",FK="𝓇",HK="ℛ",qK="↱",BK="↱",WK="]",UK="’",jK="’",VK="⋌",GK="⋊",KK="▹",XK="⊵",YK="▸",ZK="⧎",JK="⧴",QK="⥨",tX="℞",eX="Ś",nX="ś",rX="‚",iX="⪸",oX="Š",sX="š",lX="⪼",aX="≻",cX="≽",uX="⪰",fX="⪴",hX="Ş",dX="ş",pX="Ŝ",gX="ŝ",vX="⪺",mX="⪶",yX="⋩",bX="⨓",wX="≿",xX="С",_X="с",SX="⊡",kX="⋅",CX="⩦",TX="⤥",EX="↘",LX="⇘",AX="↘",MX="§",NX=";",$X="⤩",PX="∖",OX="∖",RX="✶",DX="𝔖",zX="𝔰",IX="⌢",FX="♯",HX="Щ",qX="щ",BX="Ш",WX="ш",UX="↓",jX="←",VX="∣",GX="∥",KX="→",XX="↑",YX="",ZX="Σ",JX="σ",QX="ς",tY="ς",eY="∼",nY="⩪",rY="≃",iY="≃",oY="⪞",sY="⪠",lY="⪝",aY="⪟",cY="≆",uY="⨤",fY="⥲",hY="←",dY="∘",pY="∖",gY="⨳",vY="⧤",mY="∣",yY="⌣",bY="⪪",wY="⪬",xY="⪬︀",_Y="Ь",SY="ь",kY="⌿",CY="⧄",TY="/",EY="𝕊",LY="𝕤",AY="♠",MY="♠",NY="∥",$Y="⊓",PY="⊓︀",OY="⊔",RY="⊔︀",DY="√",zY="⊏",IY="⊑",FY="⊏",HY="⊑",qY="⊐",BY="⊒",WY="⊐",UY="⊒",jY="□",VY="□",GY="⊓",KY="⊏",XY="⊑",YY="⊐",ZY="⊒",JY="⊔",QY="▪",tZ="□",eZ="▪",nZ="→",rZ="𝒮",iZ="𝓈",oZ="∖",sZ="⌣",lZ="⋆",aZ="⋆",cZ="☆",uZ="★",fZ="ϵ",hZ="ϕ",dZ="¯",pZ="⊂",gZ="⋐",vZ="⪽",mZ="⫅",yZ="⊆",bZ="⫃",wZ="⫁",xZ="⫋",_Z="⊊",SZ="⪿",kZ="⥹",CZ="⊂",TZ="⋐",EZ="⊆",LZ="⫅",AZ="⊆",MZ="⊊",NZ="⫋",$Z="⫇",PZ="⫕",OZ="⫓",RZ="⪸",DZ="≻",zZ="≽",IZ="≻",FZ="⪰",HZ="≽",qZ="≿",BZ="⪰",WZ="⪺",UZ="⪶",jZ="⋩",VZ="≿",GZ="∋",KZ="∑",XZ="∑",YZ="♪",ZZ="¹",JZ="²",QZ="³",tJ="⊃",eJ="⋑",nJ="⪾",rJ="⫘",iJ="⫆",oJ="⊇",sJ="⫄",lJ="⊃",aJ="⊇",cJ="⟉",uJ="⫗",fJ="⥻",hJ="⫂",dJ="⫌",pJ="⊋",gJ="⫀",vJ="⊃",mJ="⋑",yJ="⊇",bJ="⫆",wJ="⊋",xJ="⫌",_J="⫈",SJ="⫔",kJ="⫖",CJ="⤦",TJ="↙",EJ="⇙",LJ="↙",AJ="⤪",MJ="ß",NJ=" ",$J="⌖",PJ="Τ",OJ="τ",RJ="⎴",DJ="Ť",zJ="ť",IJ="Ţ",FJ="ţ",HJ="Т",qJ="т",BJ="⃛",WJ="⌕",UJ="𝔗",jJ="𝔱",VJ="∴",GJ="∴",KJ="∴",XJ="Θ",YJ="θ",ZJ="ϑ",JJ="ϑ",QJ="≈",tQ="∼",eQ=" ",nQ=" ",rQ=" ",iQ="≈",oQ="∼",sQ="Þ",lQ="þ",aQ="˜",cQ="∼",uQ="≃",fQ="≅",hQ="≈",dQ="⨱",pQ="⊠",gQ="×",vQ="⨰",mQ="∭",yQ="⤨",bQ="⌶",wQ="⫱",xQ="⊤",_Q="𝕋",SQ="𝕥",kQ="⫚",CQ="⤩",TQ="‴",EQ="™",LQ="™",AQ="▵",MQ="▿",NQ="◃",$Q="⊴",PQ="≜",OQ="▹",RQ="⊵",DQ="◬",zQ="≜",IQ="⨺",FQ="⃛",HQ="⨹",qQ="⧍",BQ="⨻",WQ="⏢",UQ="𝒯",jQ="𝓉",VQ="Ц",GQ="ц",KQ="Ћ",XQ="ћ",YQ="Ŧ",ZQ="ŧ",JQ="≬",QQ="↞",ttt="↠",ett="Ú",ntt="ú",rtt="↑",itt="↟",ott="⇑",stt="⥉",ltt="Ў",att="ў",ctt="Ŭ",utt="ŭ",ftt="Û",htt="û",dtt="У",ptt="у",gtt="⇅",vtt="Ű",mtt="ű",ytt="⥮",btt="⥾",wtt="𝔘",xtt="𝔲",_tt="Ù",Stt="ù",ktt="⥣",Ctt="↿",Ttt="↾",Ett="▀",Ltt="⌜",Att="⌜",Mtt="⌏",Ntt="◸",$tt="Ū",Ptt="ū",Ott="¨",Rtt="_",Dtt="⏟",ztt="⎵",Itt="⏝",Ftt="⋃",Htt="⊎",qtt="Ų",Btt="ų",Wtt="𝕌",Utt="𝕦",jtt="⤒",Vtt="↑",Gtt="↑",Ktt="⇑",Xtt="⇅",Ytt="↕",Ztt="↕",Jtt="⇕",Qtt="⥮",tet="↿",eet="↾",net="⊎",ret="↖",iet="↗",oet="υ",set="ϒ",aet="ϒ",cet="Υ",uet="υ",fet="↥",het="⊥",det="⇈",pet="⌝",get="⌝",vet="⌎",met="Ů",yet="ů",bet="◹",wet="𝒰",xet="𝓊",_et="⋰",ket="Ũ",Cet="ũ",Tet="▵",Eet="▴",Let="⇈",Aet="Ü",Met="ü",Net="⦧",$et="⦜",Pet="ϵ",Oet="ϰ",Ret="∅",Det="ϕ",zet="ϖ",Iet="∝",Fet="↕",Het="⇕",qet="ϱ",Bet="ς",Wet="⊊︀",Uet="⫋︀",jet="⊋︀",Vet="⫌︀",Get="ϑ",Ket="⊲",Xet="⊳",Yet="⫨",Zet="⫫",Jet="⫩",Qet="В",tnt="в",ent="⊢",nnt="⊨",rnt="⊩",int="⊫",ont="⫦",snt="⊻",lnt="∨",ant="⋁",cnt="≚",unt="⋮",fnt="|",hnt="‖",dnt="|",pnt="‖",gnt="∣",vnt="|",mnt="❘",ynt="≀",bnt=" ",wnt="𝔙",xnt="𝔳",_nt="⊲",Snt="⊂⃒",knt="⊃⃒",Cnt="𝕍",Tnt="𝕧",Ent="∝",Lnt="⊳",Ant="𝒱",Mnt="𝓋",Nnt="⫋︀",$nt="⊊︀",Pnt="⫌︀",Ont="⊋︀",Rnt="⊪",Dnt="⦚",znt="Ŵ",Int="ŵ",Fnt="⩟",Hnt="∧",qnt="⋀",Bnt="≙",Wnt="℘",Unt="𝔚",jnt="𝔴",Vnt="𝕎",Gnt="𝕨",Knt="℘",Xnt="≀",Ynt="≀",Znt="𝒲",Jnt="𝓌",Qnt="⋂",trt="◯",ert="⋃",nrt="▽",rrt="𝔛",irt="𝔵",ort="⟷",srt="⟺",lrt="Ξ",art="ξ",crt="⟵",urt="⟸",frt="⟼",hrt="⋻",drt="⨀",prt="𝕏",grt="𝕩",vrt="⨁",mrt="⨂",yrt="⟶",brt="⟹",wrt="𝒳",xrt="𝓍",_rt="⨆",Srt="⨄",krt="△",Crt="⋁",Trt="⋀",Ert="Ý",Lrt="ý",Art="Я",Mrt="я",Nrt="Ŷ",$rt="ŷ",Prt="Ы",Ort="ы",Rrt="¥",Drt="𝔜",zrt="𝔶",Irt="Ї",Frt="ї",Hrt="𝕐",qrt="𝕪",Brt="𝒴",Wrt="𝓎",Urt="Ю",jrt="ю",Vrt="ÿ",Grt="Ÿ",Krt="Ź",Xrt="ź",Yrt="Ž",Zrt="ž",Jrt="З",Qrt="з",tit="Ż",eit="ż",nit="ℨ",rit="",iit="Ζ",oit="ζ",sit="𝔷",lit="ℨ",ait="Ж",cit="ж",uit="⇝",fit="𝕫",hit="ℤ",dit="𝒵",pit="𝓏",git="",vit="",eb={Aacute:JT,aacute:QT,Abreve:tE,abreve:eE,ac:nE,acd:rE,acE:iE,Acirc:oE,acirc:sE,acute:lE,Acy:aE,acy:cE,AElig:uE,aelig:fE,af:hE,Afr:dE,afr:pE,Agrave:gE,agrave:vE,alefsym:mE,aleph:yE,Alpha:bE,alpha:wE,Amacr:xE,amacr:_E,amalg:SE,amp:kE,AMP:CE,andand:TE,And:EE,and:LE,andd:AE,andslope:ME,andv:NE,ang:$E,ange:PE,angle:OE,angmsdaa:RE,angmsdab:DE,angmsdac:zE,angmsdad:IE,angmsdae:FE,angmsdaf:HE,angmsdag:qE,angmsdah:BE,angmsd:WE,angrt:UE,angrtvb:jE,angrtvbd:VE,angsph:GE,angst:KE,angzarr:XE,Aogon:YE,aogon:ZE,Aopf:JE,aopf:QE,apacir:tL,ap:eL,apE:nL,ape:rL,apid:iL,apos:oL,ApplyFunction:sL,approx:lL,approxeq:aL,Aring:cL,aring:uL,Ascr:fL,ascr:hL,Assign:dL,ast:pL,asymp:gL,asympeq:vL,Atilde:mL,atilde:yL,Auml:bL,auml:wL,awconint:xL,awint:_L,backcong:SL,backepsilon:kL,backprime:CL,backsim:TL,backsimeq:EL,Backslash:LL,Barv:AL,barvee:ML,barwed:NL,Barwed:$L,barwedge:PL,bbrk:OL,bbrktbrk:RL,bcong:DL,Bcy:zL,bcy:IL,bdquo:FL,becaus:HL,because:qL,Because:BL,bemptyv:WL,bepsi:UL,bernou:jL,Bernoullis:VL,Beta:GL,beta:KL,beth:XL,between:YL,Bfr:ZL,bfr:JL,bigcap:QL,bigcirc:tA,bigcup:eA,bigodot:nA,bigoplus:rA,bigotimes:iA,bigsqcup:oA,bigstar:sA,bigtriangledown:lA,bigtriangleup:aA,biguplus:cA,bigvee:uA,bigwedge:fA,bkarow:hA,blacklozenge:dA,blacksquare:pA,blacktriangle:gA,blacktriangledown:vA,blacktriangleleft:mA,blacktriangleright:yA,blank:bA,blk12:wA,blk14:xA,blk34:_A,block:SA,bne:kA,bnequiv:CA,bNot:TA,bnot:EA,Bopf:LA,bopf:AA,bot:MA,bottom:NA,bowtie:$A,boxbox:PA,boxdl:OA,boxdL:RA,boxDl:DA,boxDL:zA,boxdr:IA,boxdR:FA,boxDr:HA,boxDR:qA,boxh:BA,boxH:WA,boxhd:UA,boxHd:jA,boxhD:VA,boxHD:GA,boxhu:KA,boxHu:XA,boxhU:YA,boxHU:ZA,boxminus:JA,boxplus:QA,boxtimes:tM,boxul:eM,boxuL:nM,boxUl:rM,boxUL:iM,boxur:oM,boxuR:sM,boxUr:lM,boxUR:aM,boxv:cM,boxV:uM,boxvh:fM,boxvH:hM,boxVh:dM,boxVH:pM,boxvl:gM,boxvL:vM,boxVl:mM,boxVL:yM,boxvr:bM,boxvR:wM,boxVr:xM,boxVR:_M,bprime:SM,breve:kM,Breve:CM,brvbar:TM,bscr:EM,Bscr:LM,bsemi:AM,bsim:MM,bsime:NM,bsolb:$M,bsol:PM,bsolhsub:OM,bull:RM,bullet:DM,bump:zM,bumpE:IM,bumpe:FM,Bumpeq:HM,bumpeq:qM,Cacute:BM,cacute:WM,capand:UM,capbrcup:jM,capcap:VM,cap:GM,Cap:KM,capcup:XM,capdot:YM,CapitalDifferentialD:ZM,caps:JM,caret:QM,caron:tN,Cayleys:eN,ccaps:nN,Ccaron:rN,ccaron:iN,Ccedil:oN,ccedil:sN,Ccirc:lN,ccirc:aN,Cconint:cN,ccups:uN,ccupssm:fN,Cdot:hN,cdot:dN,cedil:pN,Cedilla:gN,cemptyv:vN,cent:mN,centerdot:yN,CenterDot:bN,cfr:wN,Cfr:xN,CHcy:_N,chcy:SN,check:kN,checkmark:CN,Chi:TN,chi:EN,circ:LN,circeq:AN,circlearrowleft:MN,circlearrowright:NN,circledast:$N,circledcirc:PN,circleddash:ON,CircleDot:RN,circledR:DN,circledS:zN,CircleMinus:IN,CirclePlus:FN,CircleTimes:HN,cir:qN,cirE:BN,cire:WN,cirfnint:UN,cirmid:jN,cirscir:VN,ClockwiseContourIntegral:GN,CloseCurlyDoubleQuote:KN,CloseCurlyQuote:XN,clubs:YN,clubsuit:ZN,colon:JN,Colon:QN,Colone:t$,colone:e$,coloneq:n$,comma:r$,commat:i$,comp:o$,compfn:s$,complement:l$,complexes:a$,cong:c$,congdot:u$,Congruent:f$,conint:h$,Conint:d$,ContourIntegral:p$,copf:g$,Copf:v$,coprod:m$,Coproduct:y$,copy:b$,COPY:w$,copysr:x$,CounterClockwiseContourIntegral:_$,crarr:S$,cross:k$,Cross:C$,Cscr:T$,cscr:E$,csub:L$,csube:A$,csup:M$,csupe:N$,ctdot:$$,cudarrl:P$,cudarrr:O$,cuepr:R$,cuesc:D$,cularr:z$,cularrp:I$,cupbrcap:F$,cupcap:H$,CupCap:q$,cup:B$,Cup:W$,cupcup:U$,cupdot:j$,cupor:V$,cups:G$,curarr:K$,curarrm:X$,curlyeqprec:Y$,curlyeqsucc:Z$,curlyvee:J$,curlywedge:Q$,curren:tP,curvearrowleft:eP,curvearrowright:nP,cuvee:rP,cuwed:iP,cwconint:oP,cwint:sP,cylcty:lP,dagger:aP,Dagger:cP,daleth:uP,darr:fP,Darr:hP,dArr:dP,dash:pP,Dashv:gP,dashv:vP,dbkarow:mP,dblac:yP,Dcaron:bP,dcaron:wP,Dcy:xP,dcy:_P,ddagger:SP,ddarr:kP,DD:CP,dd:TP,DDotrahd:EP,ddotseq:LP,deg:AP,Del:MP,Delta:NP,delta:$P,demptyv:PP,dfisht:OP,Dfr:RP,dfr:DP,dHar:zP,dharl:IP,dharr:FP,DiacriticalAcute:HP,DiacriticalDot:qP,DiacriticalDoubleAcute:BP,DiacriticalGrave:WP,DiacriticalTilde:UP,diam:jP,diamond:VP,Diamond:GP,diamondsuit:KP,diams:XP,die:YP,DifferentialD:ZP,digamma:JP,disin:QP,div:tO,divide:eO,divideontimes:nO,divonx:rO,DJcy:iO,djcy:oO,dlcorn:sO,dlcrop:lO,dollar:aO,Dopf:cO,dopf:uO,Dot:fO,dot:hO,DotDot:dO,doteq:pO,doteqdot:gO,DotEqual:vO,dotminus:mO,dotplus:yO,dotsquare:bO,doublebarwedge:wO,DoubleContourIntegral:xO,DoubleDot:_O,DoubleDownArrow:SO,DoubleLeftArrow:kO,DoubleLeftRightArrow:CO,DoubleLeftTee:TO,DoubleLongLeftArrow:EO,DoubleLongLeftRightArrow:LO,DoubleLongRightArrow:AO,DoubleRightArrow:MO,DoubleRightTee:NO,DoubleUpArrow:$O,DoubleUpDownArrow:PO,DoubleVerticalBar:OO,DownArrowBar:RO,downarrow:DO,DownArrow:zO,Downarrow:IO,DownArrowUpArrow:FO,DownBreve:HO,downdownarrows:qO,downharpoonleft:BO,downharpoonright:WO,DownLeftRightVector:UO,DownLeftTeeVector:jO,DownLeftVectorBar:VO,DownLeftVector:GO,DownRightTeeVector:KO,DownRightVectorBar:XO,DownRightVector:YO,DownTeeArrow:ZO,DownTee:JO,drbkarow:QO,drcorn:tR,drcrop:eR,Dscr:nR,dscr:rR,DScy:iR,dscy:oR,dsol:sR,Dstrok:lR,dstrok:aR,dtdot:cR,dtri:uR,dtrif:fR,duarr:hR,duhar:dR,dwangle:pR,DZcy:gR,dzcy:vR,dzigrarr:mR,Eacute:yR,eacute:bR,easter:wR,Ecaron:xR,ecaron:_R,Ecirc:SR,ecirc:kR,ecir:CR,ecolon:TR,Ecy:ER,ecy:LR,eDDot:AR,Edot:MR,edot:NR,eDot:$R,ee:PR,efDot:OR,Efr:RR,efr:DR,eg:zR,Egrave:IR,egrave:FR,egs:HR,egsdot:qR,el:BR,Element:WR,elinters:UR,ell:jR,els:VR,elsdot:GR,Emacr:KR,emacr:XR,empty:YR,emptyset:ZR,EmptySmallSquare:JR,emptyv:QR,EmptyVerySmallSquare:tD,emsp13:eD,emsp14:nD,emsp:rD,ENG:iD,eng:oD,ensp:sD,Eogon:lD,eogon:aD,Eopf:cD,eopf:uD,epar:fD,eparsl:hD,eplus:dD,epsi:pD,Epsilon:gD,epsilon:vD,epsiv:mD,eqcirc:yD,eqcolon:bD,eqsim:wD,eqslantgtr:xD,eqslantless:_D,Equal:SD,equals:kD,EqualTilde:CD,equest:TD,Equilibrium:ED,equiv:LD,equivDD:AD,eqvparsl:MD,erarr:ND,erDot:$D,escr:PD,Escr:OD,esdot:RD,Esim:DD,esim:zD,Eta:ID,eta:FD,ETH:HD,eth:qD,Euml:BD,euml:WD,euro:UD,excl:jD,exist:VD,Exists:GD,expectation:KD,exponentiale:XD,ExponentialE:YD,fallingdotseq:ZD,Fcy:JD,fcy:QD,female:t2,ffilig:e2,fflig:n2,ffllig:r2,Ffr:i2,ffr:o2,filig:s2,FilledSmallSquare:l2,FilledVerySmallSquare:a2,fjlig:c2,flat:u2,fllig:f2,fltns:h2,fnof:d2,Fopf:p2,fopf:g2,forall:v2,ForAll:m2,fork:y2,forkv:b2,Fouriertrf:w2,fpartint:x2,frac12:_2,frac13:S2,frac14:k2,frac15:C2,frac16:T2,frac18:E2,frac23:L2,frac25:A2,frac34:M2,frac35:N2,frac38:$2,frac45:P2,frac56:O2,frac58:R2,frac78:D2,frasl:z2,frown:I2,fscr:F2,Fscr:H2,gacute:q2,Gamma:B2,gamma:W2,Gammad:U2,gammad:j2,gap:V2,Gbreve:G2,gbreve:K2,Gcedil:X2,Gcirc:Y2,gcirc:Z2,Gcy:J2,gcy:Q2,Gdot:tz,gdot:ez,ge:nz,gE:rz,gEl:iz,gel:oz,geq:sz,geqq:lz,geqslant:az,gescc:cz,ges:uz,gesdot:fz,gesdoto:hz,gesdotol:dz,gesl:pz,gesles:gz,Gfr:vz,gfr:mz,gg:yz,Gg:bz,ggg:wz,gimel:xz,GJcy:_z,gjcy:Sz,gla:kz,gl:Cz,glE:Tz,glj:Ez,gnap:Lz,gnapprox:Az,gne:Mz,gnE:Nz,gneq:$z,gneqq:Pz,gnsim:Oz,Gopf:Rz,gopf:Dz,grave:zz,GreaterEqual:Iz,GreaterEqualLess:Fz,GreaterFullEqual:Hz,GreaterGreater:qz,GreaterLess:Bz,GreaterSlantEqual:Wz,GreaterTilde:Uz,Gscr:jz,gscr:Vz,gsim:Gz,gsime:Kz,gsiml:Xz,gtcc:Yz,gtcir:Zz,gt:Jz,GT:Qz,Gt:tI,gtdot:eI,gtlPar:nI,gtquest:rI,gtrapprox:iI,gtrarr:oI,gtrdot:sI,gtreqless:lI,gtreqqless:aI,gtrless:cI,gtrsim:uI,gvertneqq:fI,gvnE:hI,Hacek:dI,hairsp:pI,half:gI,hamilt:vI,HARDcy:mI,hardcy:yI,harrcir:bI,harr:wI,hArr:xI,harrw:_I,Hat:SI,hbar:kI,Hcirc:CI,hcirc:TI,hearts:EI,heartsuit:LI,hellip:AI,hercon:MI,hfr:NI,Hfr:$I,HilbertSpace:PI,hksearow:OI,hkswarow:RI,hoarr:DI,homtht:zI,hookleftarrow:II,hookrightarrow:FI,hopf:HI,Hopf:qI,horbar:BI,HorizontalLine:WI,hscr:UI,Hscr:jI,hslash:VI,Hstrok:GI,hstrok:KI,HumpDownHump:XI,HumpEqual:YI,hybull:ZI,hyphen:JI,Iacute:QI,iacute:tF,ic:eF,Icirc:nF,icirc:rF,Icy:iF,icy:oF,Idot:sF,IEcy:lF,iecy:aF,iexcl:cF,iff:uF,ifr:fF,Ifr:hF,Igrave:dF,igrave:pF,ii:gF,iiiint:vF,iiint:mF,iinfin:yF,iiota:bF,IJlig:wF,ijlig:xF,Imacr:_F,imacr:SF,image:kF,ImaginaryI:CF,imagline:TF,imagpart:EF,imath:LF,Im:AF,imof:MF,imped:NF,Implies:$F,incare:PF,in:"∈",infin:OF,infintie:RF,inodot:DF,intcal:zF,int:IF,Int:FF,integers:HF,Integral:qF,intercal:BF,Intersection:WF,intlarhk:UF,intprod:jF,InvisibleComma:VF,InvisibleTimes:GF,IOcy:KF,iocy:XF,Iogon:YF,iogon:ZF,Iopf:JF,iopf:QF,Iota:tH,iota:eH,iprod:nH,iquest:rH,iscr:iH,Iscr:oH,isin:sH,isindot:lH,isinE:aH,isins:cH,isinsv:uH,isinv:fH,it:hH,Itilde:dH,itilde:pH,Iukcy:gH,iukcy:vH,Iuml:mH,iuml:yH,Jcirc:bH,jcirc:wH,Jcy:xH,jcy:_H,Jfr:SH,jfr:kH,jmath:CH,Jopf:TH,jopf:EH,Jscr:LH,jscr:AH,Jsercy:MH,jsercy:NH,Jukcy:$H,jukcy:PH,Kappa:OH,kappa:RH,kappav:DH,Kcedil:zH,kcedil:IH,Kcy:FH,kcy:HH,Kfr:qH,kfr:BH,kgreen:WH,KHcy:UH,khcy:jH,KJcy:VH,kjcy:GH,Kopf:KH,kopf:XH,Kscr:YH,kscr:ZH,lAarr:JH,Lacute:QH,lacute:tq,laemptyv:eq,lagran:nq,Lambda:rq,lambda:iq,lang:oq,Lang:sq,langd:lq,langle:aq,lap:cq,Laplacetrf:uq,laquo:fq,larrb:hq,larrbfs:dq,larr:pq,Larr:gq,lArr:vq,larrfs:mq,larrhk:yq,larrlp:bq,larrpl:wq,larrsim:xq,larrtl:_q,latail:Sq,lAtail:kq,lat:Cq,late:Tq,lates:Eq,lbarr:Lq,lBarr:Aq,lbbrk:Mq,lbrace:Nq,lbrack:$q,lbrke:Pq,lbrksld:Oq,lbrkslu:Rq,Lcaron:Dq,lcaron:zq,Lcedil:Iq,lcedil:Fq,lceil:Hq,lcub:qq,Lcy:Bq,lcy:Wq,ldca:Uq,ldquo:jq,ldquor:Vq,ldrdhar:Gq,ldrushar:Kq,ldsh:Xq,le:Yq,lE:Zq,LeftAngleBracket:Jq,LeftArrowBar:Qq,leftarrow:tB,LeftArrow:eB,Leftarrow:nB,LeftArrowRightArrow:rB,leftarrowtail:iB,LeftCeiling:oB,LeftDoubleBracket:sB,LeftDownTeeVector:lB,LeftDownVectorBar:aB,LeftDownVector:cB,LeftFloor:uB,leftharpoondown:fB,leftharpoonup:hB,leftleftarrows:dB,leftrightarrow:pB,LeftRightArrow:gB,Leftrightarrow:vB,leftrightarrows:mB,leftrightharpoons:yB,leftrightsquigarrow:bB,LeftRightVector:wB,LeftTeeArrow:xB,LeftTee:_B,LeftTeeVector:SB,leftthreetimes:kB,LeftTriangleBar:CB,LeftTriangle:TB,LeftTriangleEqual:EB,LeftUpDownVector:LB,LeftUpTeeVector:AB,LeftUpVectorBar:MB,LeftUpVector:NB,LeftVectorBar:$B,LeftVector:PB,lEg:OB,leg:RB,leq:DB,leqq:zB,leqslant:IB,lescc:FB,les:HB,lesdot:qB,lesdoto:BB,lesdotor:WB,lesg:UB,lesges:jB,lessapprox:VB,lessdot:GB,lesseqgtr:KB,lesseqqgtr:XB,LessEqualGreater:YB,LessFullEqual:ZB,LessGreater:JB,lessgtr:QB,LessLess:t3,lesssim:e3,LessSlantEqual:n3,LessTilde:r3,lfisht:i3,lfloor:o3,Lfr:s3,lfr:l3,lg:a3,lgE:c3,lHar:u3,lhard:f3,lharu:h3,lharul:d3,lhblk:p3,LJcy:g3,ljcy:v3,llarr:m3,ll:y3,Ll:b3,llcorner:w3,Lleftarrow:x3,llhard:_3,lltri:S3,Lmidot:k3,lmidot:C3,lmoustache:T3,lmoust:E3,lnap:L3,lnapprox:A3,lne:M3,lnE:N3,lneq:$3,lneqq:P3,lnsim:O3,loang:R3,loarr:D3,lobrk:z3,longleftarrow:I3,LongLeftArrow:F3,Longleftarrow:H3,longleftrightarrow:q3,LongLeftRightArrow:B3,Longleftrightarrow:W3,longmapsto:U3,longrightarrow:j3,LongRightArrow:V3,Longrightarrow:G3,looparrowleft:K3,looparrowright:X3,lopar:Y3,Lopf:Z3,lopf:J3,loplus:Q3,lotimes:t5,lowast:e5,lowbar:n5,LowerLeftArrow:r5,LowerRightArrow:i5,loz:o5,lozenge:s5,lozf:l5,lpar:a5,lparlt:c5,lrarr:u5,lrcorner:f5,lrhar:h5,lrhard:d5,lrm:p5,lrtri:g5,lsaquo:v5,lscr:m5,Lscr:y5,lsh:b5,Lsh:w5,lsim:x5,lsime:_5,lsimg:S5,lsqb:k5,lsquo:C5,lsquor:T5,Lstrok:E5,lstrok:L5,ltcc:A5,ltcir:M5,lt:N5,LT:$5,Lt:P5,ltdot:O5,lthree:R5,ltimes:D5,ltlarr:z5,ltquest:I5,ltri:F5,ltrie:H5,ltrif:q5,ltrPar:B5,lurdshar:W5,luruhar:U5,lvertneqq:j5,lvnE:V5,macr:G5,male:K5,malt:X5,maltese:Y5,Map:"⤅",map:Z5,mapsto:J5,mapstodown:Q5,mapstoleft:t8,mapstoup:e8,marker:n8,mcomma:r8,Mcy:i8,mcy:o8,mdash:s8,mDDot:l8,measuredangle:a8,MediumSpace:c8,Mellintrf:u8,Mfr:f8,mfr:h8,mho:d8,micro:p8,midast:g8,midcir:v8,mid:m8,middot:y8,minusb:b8,minus:w8,minusd:x8,minusdu:_8,MinusPlus:S8,mlcp:k8,mldr:C8,mnplus:T8,models:E8,Mopf:L8,mopf:A8,mp:M8,mscr:N8,Mscr:$8,mstpos:P8,Mu:O8,mu:R8,multimap:D8,mumap:z8,nabla:I8,Nacute:F8,nacute:H8,nang:q8,nap:B8,napE:W8,napid:U8,napos:j8,napprox:V8,natural:G8,naturals:K8,natur:X8,nbsp:Y8,nbump:Z8,nbumpe:J8,ncap:Q8,Ncaron:tW,ncaron:eW,Ncedil:nW,ncedil:rW,ncong:iW,ncongdot:oW,ncup:sW,Ncy:lW,ncy:aW,ndash:cW,nearhk:uW,nearr:fW,neArr:hW,nearrow:dW,ne:pW,nedot:gW,NegativeMediumSpace:vW,NegativeThickSpace:mW,NegativeThinSpace:yW,NegativeVeryThinSpace:bW,nequiv:wW,nesear:xW,nesim:_W,NestedGreaterGreater:SW,NestedLessLess:kW,NewLine:CW,nexist:TW,nexists:EW,Nfr:LW,nfr:AW,ngE:MW,nge:NW,ngeq:$W,ngeqq:PW,ngeqslant:OW,nges:RW,nGg:DW,ngsim:zW,nGt:IW,ngt:FW,ngtr:HW,nGtv:qW,nharr:BW,nhArr:WW,nhpar:UW,ni:jW,nis:VW,nisd:GW,niv:KW,NJcy:XW,njcy:YW,nlarr:ZW,nlArr:JW,nldr:QW,nlE:t4,nle:e4,nleftarrow:n4,nLeftarrow:r4,nleftrightarrow:i4,nLeftrightarrow:o4,nleq:s4,nleqq:l4,nleqslant:a4,nles:c4,nless:u4,nLl:f4,nlsim:h4,nLt:d4,nlt:p4,nltri:g4,nltrie:v4,nLtv:m4,nmid:y4,NoBreak:b4,NonBreakingSpace:w4,nopf:x4,Nopf:_4,Not:S4,not:k4,NotCongruent:C4,NotCupCap:T4,NotDoubleVerticalBar:E4,NotElement:L4,NotEqual:A4,NotEqualTilde:M4,NotExists:N4,NotGreater:$4,NotGreaterEqual:P4,NotGreaterFullEqual:O4,NotGreaterGreater:R4,NotGreaterLess:D4,NotGreaterSlantEqual:z4,NotGreaterTilde:I4,NotHumpDownHump:F4,NotHumpEqual:H4,notin:q4,notindot:B4,notinE:W4,notinva:U4,notinvb:j4,notinvc:V4,NotLeftTriangleBar:G4,NotLeftTriangle:K4,NotLeftTriangleEqual:X4,NotLess:Y4,NotLessEqual:Z4,NotLessGreater:J4,NotLessLess:Q4,NotLessSlantEqual:tU,NotLessTilde:eU,NotNestedGreaterGreater:nU,NotNestedLessLess:rU,notni:iU,notniva:oU,notnivb:sU,notnivc:lU,NotPrecedes:aU,NotPrecedesEqual:cU,NotPrecedesSlantEqual:uU,NotReverseElement:fU,NotRightTriangleBar:hU,NotRightTriangle:dU,NotRightTriangleEqual:pU,NotSquareSubset:gU,NotSquareSubsetEqual:vU,NotSquareSuperset:mU,NotSquareSupersetEqual:yU,NotSubset:bU,NotSubsetEqual:wU,NotSucceeds:xU,NotSucceedsEqual:_U,NotSucceedsSlantEqual:SU,NotSucceedsTilde:kU,NotSuperset:CU,NotSupersetEqual:TU,NotTilde:EU,NotTildeEqual:LU,NotTildeFullEqual:AU,NotTildeTilde:MU,NotVerticalBar:NU,nparallel:$U,npar:PU,nparsl:OU,npart:RU,npolint:DU,npr:zU,nprcue:IU,nprec:FU,npreceq:HU,npre:qU,nrarrc:BU,nrarr:WU,nrArr:UU,nrarrw:jU,nrightarrow:VU,nRightarrow:GU,nrtri:KU,nrtrie:XU,nsc:YU,nsccue:ZU,nsce:JU,Nscr:QU,nscr:t6,nshortmid:e6,nshortparallel:n6,nsim:r6,nsime:i6,nsimeq:o6,nsmid:s6,nspar:l6,nsqsube:a6,nsqsupe:c6,nsub:u6,nsubE:f6,nsube:h6,nsubset:d6,nsubseteq:p6,nsubseteqq:g6,nsucc:v6,nsucceq:m6,nsup:y6,nsupE:b6,nsupe:w6,nsupset:x6,nsupseteq:_6,nsupseteqq:S6,ntgl:k6,Ntilde:C6,ntilde:T6,ntlg:E6,ntriangleleft:L6,ntrianglelefteq:A6,ntriangleright:M6,ntrianglerighteq:N6,Nu:$6,nu:P6,num:O6,numero:R6,numsp:D6,nvap:z6,nvdash:I6,nvDash:F6,nVdash:H6,nVDash:q6,nvge:B6,nvgt:W6,nvHarr:U6,nvinfin:j6,nvlArr:V6,nvle:G6,nvlt:K6,nvltrie:X6,nvrArr:Y6,nvrtrie:Z6,nvsim:J6,nwarhk:Q6,nwarr:tj,nwArr:ej,nwarrow:nj,nwnear:rj,Oacute:ij,oacute:oj,oast:sj,Ocirc:lj,ocirc:aj,ocir:cj,Ocy:uj,ocy:fj,odash:hj,Odblac:dj,odblac:pj,odiv:gj,odot:vj,odsold:mj,OElig:yj,oelig:bj,ofcir:wj,Ofr:xj,ofr:_j,ogon:Sj,Ograve:kj,ograve:Cj,ogt:Tj,ohbar:Ej,ohm:Lj,oint:Aj,olarr:Mj,olcir:Nj,olcross:$j,oline:Pj,olt:Oj,Omacr:Rj,omacr:Dj,Omega:zj,omega:Ij,Omicron:Fj,omicron:Hj,omid:qj,ominus:Bj,Oopf:Wj,oopf:Uj,opar:jj,OpenCurlyDoubleQuote:Vj,OpenCurlyQuote:Gj,operp:Kj,oplus:Xj,orarr:Yj,Or:Zj,or:Jj,ord:Qj,order:tV,orderof:eV,ordf:nV,ordm:rV,origof:iV,oror:oV,orslope:sV,orv:lV,oS:aV,Oscr:cV,oscr:uV,Oslash:fV,oslash:hV,osol:dV,Otilde:pV,otilde:gV,otimesas:vV,Otimes:mV,otimes:yV,Ouml:bV,ouml:wV,ovbar:xV,OverBar:_V,OverBrace:SV,OverBracket:kV,OverParenthesis:CV,para:TV,parallel:EV,par:LV,parsim:AV,parsl:MV,part:NV,PartialD:$V,Pcy:PV,pcy:OV,percnt:RV,period:DV,permil:zV,perp:IV,pertenk:FV,Pfr:HV,pfr:qV,Phi:BV,phi:WV,phiv:UV,phmmat:jV,phone:VV,Pi:GV,pi:KV,pitchfork:XV,piv:YV,planck:ZV,planckh:JV,plankv:QV,plusacir:tG,plusb:eG,pluscir:nG,plus:rG,plusdo:iG,plusdu:oG,pluse:sG,PlusMinus:lG,plusmn:aG,plussim:cG,plustwo:uG,pm:fG,Poincareplane:hG,pointint:dG,popf:pG,Popf:gG,pound:vG,prap:mG,Pr:yG,pr:bG,prcue:wG,precapprox:xG,prec:_G,preccurlyeq:SG,Precedes:kG,PrecedesEqual:CG,PrecedesSlantEqual:TG,PrecedesTilde:EG,preceq:LG,precnapprox:AG,precneqq:MG,precnsim:NG,pre:$G,prE:PG,precsim:OG,prime:RG,Prime:DG,primes:zG,prnap:IG,prnE:FG,prnsim:HG,prod:qG,Product:BG,profalar:WG,profline:UG,profsurf:jG,prop:VG,Proportional:GG,Proportion:KG,propto:XG,prsim:YG,prurel:ZG,Pscr:JG,pscr:QG,Psi:t9,psi:e9,puncsp:n9,Qfr:r9,qfr:i9,qint:o9,qopf:s9,Qopf:l9,qprime:a9,Qscr:c9,qscr:u9,quaternions:f9,quatint:h9,quest:d9,questeq:p9,quot:g9,QUOT:v9,rAarr:m9,race:y9,Racute:b9,racute:w9,radic:x9,raemptyv:_9,rang:S9,Rang:k9,rangd:C9,range:T9,rangle:E9,raquo:L9,rarrap:A9,rarrb:M9,rarrbfs:N9,rarrc:$9,rarr:P9,Rarr:O9,rArr:R9,rarrfs:D9,rarrhk:z9,rarrlp:I9,rarrpl:F9,rarrsim:H9,Rarrtl:q9,rarrtl:B9,rarrw:W9,ratail:U9,rAtail:j9,ratio:V9,rationals:G9,rbarr:K9,rBarr:X9,RBarr:Y9,rbbrk:Z9,rbrace:J9,rbrack:Q9,rbrke:t7,rbrksld:e7,rbrkslu:n7,Rcaron:r7,rcaron:i7,Rcedil:o7,rcedil:s7,rceil:l7,rcub:a7,Rcy:c7,rcy:u7,rdca:f7,rdldhar:h7,rdquo:d7,rdquor:p7,rdsh:g7,real:v7,realine:m7,realpart:y7,reals:b7,Re:w7,rect:x7,reg:_7,REG:S7,ReverseElement:k7,ReverseEquilibrium:C7,ReverseUpEquilibrium:T7,rfisht:E7,rfloor:L7,rfr:A7,Rfr:M7,rHar:N7,rhard:$7,rharu:P7,rharul:O7,Rho:R7,rho:D7,rhov:z7,RightAngleBracket:I7,RightArrowBar:F7,rightarrow:H7,RightArrow:q7,Rightarrow:B7,RightArrowLeftArrow:W7,rightarrowtail:U7,RightCeiling:j7,RightDoubleBracket:V7,RightDownTeeVector:G7,RightDownVectorBar:K7,RightDownVector:X7,RightFloor:Y7,rightharpoondown:Z7,rightharpoonup:J7,rightleftarrows:Q7,rightleftharpoons:tK,rightrightarrows:eK,rightsquigarrow:nK,RightTeeArrow:rK,RightTee:iK,RightTeeVector:oK,rightthreetimes:sK,RightTriangleBar:lK,RightTriangle:aK,RightTriangleEqual:cK,RightUpDownVector:uK,RightUpTeeVector:fK,RightUpVectorBar:hK,RightUpVector:dK,RightVectorBar:pK,RightVector:gK,ring:vK,risingdotseq:mK,rlarr:yK,rlhar:bK,rlm:wK,rmoustache:xK,rmoust:_K,rnmid:SK,roang:kK,roarr:CK,robrk:TK,ropar:EK,ropf:LK,Ropf:AK,roplus:MK,rotimes:NK,RoundImplies:$K,rpar:PK,rpargt:OK,rppolint:RK,rrarr:DK,Rrightarrow:zK,rsaquo:IK,rscr:FK,Rscr:HK,rsh:qK,Rsh:BK,rsqb:WK,rsquo:UK,rsquor:jK,rthree:VK,rtimes:GK,rtri:KK,rtrie:XK,rtrif:YK,rtriltri:ZK,RuleDelayed:JK,ruluhar:QK,rx:tX,Sacute:eX,sacute:nX,sbquo:rX,scap:iX,Scaron:oX,scaron:sX,Sc:lX,sc:aX,sccue:cX,sce:uX,scE:fX,Scedil:hX,scedil:dX,Scirc:pX,scirc:gX,scnap:vX,scnE:mX,scnsim:yX,scpolint:bX,scsim:wX,Scy:xX,scy:_X,sdotb:SX,sdot:kX,sdote:CX,searhk:TX,searr:EX,seArr:LX,searrow:AX,sect:MX,semi:NX,seswar:$X,setminus:PX,setmn:OX,sext:RX,Sfr:DX,sfr:zX,sfrown:IX,sharp:FX,SHCHcy:HX,shchcy:qX,SHcy:BX,shcy:WX,ShortDownArrow:UX,ShortLeftArrow:jX,shortmid:VX,shortparallel:GX,ShortRightArrow:KX,ShortUpArrow:XX,shy:YX,Sigma:ZX,sigma:JX,sigmaf:QX,sigmav:tY,sim:eY,simdot:nY,sime:rY,simeq:iY,simg:oY,simgE:sY,siml:lY,simlE:aY,simne:cY,simplus:uY,simrarr:fY,slarr:hY,SmallCircle:dY,smallsetminus:pY,smashp:gY,smeparsl:vY,smid:mY,smile:yY,smt:bY,smte:wY,smtes:xY,SOFTcy:_Y,softcy:SY,solbar:kY,solb:CY,sol:TY,Sopf:EY,sopf:LY,spades:AY,spadesuit:MY,spar:NY,sqcap:$Y,sqcaps:PY,sqcup:OY,sqcups:RY,Sqrt:DY,sqsub:zY,sqsube:IY,sqsubset:FY,sqsubseteq:HY,sqsup:qY,sqsupe:BY,sqsupset:WY,sqsupseteq:UY,square:jY,Square:VY,SquareIntersection:GY,SquareSubset:KY,SquareSubsetEqual:XY,SquareSuperset:YY,SquareSupersetEqual:ZY,SquareUnion:JY,squarf:QY,squ:tZ,squf:eZ,srarr:nZ,Sscr:rZ,sscr:iZ,ssetmn:oZ,ssmile:sZ,sstarf:lZ,Star:aZ,star:cZ,starf:uZ,straightepsilon:fZ,straightphi:hZ,strns:dZ,sub:pZ,Sub:gZ,subdot:vZ,subE:mZ,sube:yZ,subedot:bZ,submult:wZ,subnE:xZ,subne:_Z,subplus:SZ,subrarr:kZ,subset:CZ,Subset:TZ,subseteq:EZ,subseteqq:LZ,SubsetEqual:AZ,subsetneq:MZ,subsetneqq:NZ,subsim:$Z,subsub:PZ,subsup:OZ,succapprox:RZ,succ:DZ,succcurlyeq:zZ,Succeeds:IZ,SucceedsEqual:FZ,SucceedsSlantEqual:HZ,SucceedsTilde:qZ,succeq:BZ,succnapprox:WZ,succneqq:UZ,succnsim:jZ,succsim:VZ,SuchThat:GZ,sum:KZ,Sum:XZ,sung:YZ,sup1:ZZ,sup2:JZ,sup3:QZ,sup:tJ,Sup:eJ,supdot:nJ,supdsub:rJ,supE:iJ,supe:oJ,supedot:sJ,Superset:lJ,SupersetEqual:aJ,suphsol:cJ,suphsub:uJ,suplarr:fJ,supmult:hJ,supnE:dJ,supne:pJ,supplus:gJ,supset:vJ,Supset:mJ,supseteq:yJ,supseteqq:bJ,supsetneq:wJ,supsetneqq:xJ,supsim:_J,supsub:SJ,supsup:kJ,swarhk:CJ,swarr:TJ,swArr:EJ,swarrow:LJ,swnwar:AJ,szlig:MJ,Tab:NJ,target:$J,Tau:PJ,tau:OJ,tbrk:RJ,Tcaron:DJ,tcaron:zJ,Tcedil:IJ,tcedil:FJ,Tcy:HJ,tcy:qJ,tdot:BJ,telrec:WJ,Tfr:UJ,tfr:jJ,there4:VJ,therefore:GJ,Therefore:KJ,Theta:XJ,theta:YJ,thetasym:ZJ,thetav:JJ,thickapprox:QJ,thicksim:tQ,ThickSpace:eQ,ThinSpace:nQ,thinsp:rQ,thkap:iQ,thksim:oQ,THORN:sQ,thorn:lQ,tilde:aQ,Tilde:cQ,TildeEqual:uQ,TildeFullEqual:fQ,TildeTilde:hQ,timesbar:dQ,timesb:pQ,times:gQ,timesd:vQ,tint:mQ,toea:yQ,topbot:bQ,topcir:wQ,top:xQ,Topf:_Q,topf:SQ,topfork:kQ,tosa:CQ,tprime:TQ,trade:EQ,TRADE:LQ,triangle:AQ,triangledown:MQ,triangleleft:NQ,trianglelefteq:$Q,triangleq:PQ,triangleright:OQ,trianglerighteq:RQ,tridot:DQ,trie:zQ,triminus:IQ,TripleDot:FQ,triplus:HQ,trisb:qQ,tritime:BQ,trpezium:WQ,Tscr:UQ,tscr:jQ,TScy:VQ,tscy:GQ,TSHcy:KQ,tshcy:XQ,Tstrok:YQ,tstrok:ZQ,twixt:JQ,twoheadleftarrow:QQ,twoheadrightarrow:ttt,Uacute:ett,uacute:ntt,uarr:rtt,Uarr:itt,uArr:ott,Uarrocir:stt,Ubrcy:ltt,ubrcy:att,Ubreve:ctt,ubreve:utt,Ucirc:ftt,ucirc:htt,Ucy:dtt,ucy:ptt,udarr:gtt,Udblac:vtt,udblac:mtt,udhar:ytt,ufisht:btt,Ufr:wtt,ufr:xtt,Ugrave:_tt,ugrave:Stt,uHar:ktt,uharl:Ctt,uharr:Ttt,uhblk:Ett,ulcorn:Ltt,ulcorner:Att,ulcrop:Mtt,ultri:Ntt,Umacr:$tt,umacr:Ptt,uml:Ott,UnderBar:Rtt,UnderBrace:Dtt,UnderBracket:ztt,UnderParenthesis:Itt,Union:Ftt,UnionPlus:Htt,Uogon:qtt,uogon:Btt,Uopf:Wtt,uopf:Utt,UpArrowBar:jtt,uparrow:Vtt,UpArrow:Gtt,Uparrow:Ktt,UpArrowDownArrow:Xtt,updownarrow:Ytt,UpDownArrow:Ztt,Updownarrow:Jtt,UpEquilibrium:Qtt,upharpoonleft:tet,upharpoonright:eet,uplus:net,UpperLeftArrow:ret,UpperRightArrow:iet,upsi:oet,Upsi:set,upsih:aet,Upsilon:cet,upsilon:uet,UpTeeArrow:fet,UpTee:het,upuparrows:det,urcorn:pet,urcorner:get,urcrop:vet,Uring:met,uring:yet,urtri:bet,Uscr:wet,uscr:xet,utdot:_et,Utilde:ket,utilde:Cet,utri:Tet,utrif:Eet,uuarr:Let,Uuml:Aet,uuml:Met,uwangle:Net,vangrt:$et,varepsilon:Pet,varkappa:Oet,varnothing:Ret,varphi:Det,varpi:zet,varpropto:Iet,varr:Fet,vArr:Het,varrho:qet,varsigma:Bet,varsubsetneq:Wet,varsubsetneqq:Uet,varsupsetneq:jet,varsupsetneqq:Vet,vartheta:Get,vartriangleleft:Ket,vartriangleright:Xet,vBar:Yet,Vbar:Zet,vBarv:Jet,Vcy:Qet,vcy:tnt,vdash:ent,vDash:nnt,Vdash:rnt,VDash:int,Vdashl:ont,veebar:snt,vee:lnt,Vee:ant,veeeq:cnt,vellip:unt,verbar:fnt,Verbar:hnt,vert:dnt,Vert:pnt,VerticalBar:gnt,VerticalLine:vnt,VerticalSeparator:mnt,VerticalTilde:ynt,VeryThinSpace:bnt,Vfr:wnt,vfr:xnt,vltri:_nt,vnsub:Snt,vnsup:knt,Vopf:Cnt,vopf:Tnt,vprop:Ent,vrtri:Lnt,Vscr:Ant,vscr:Mnt,vsubnE:Nnt,vsubne:$nt,vsupnE:Pnt,vsupne:Ont,Vvdash:Rnt,vzigzag:Dnt,Wcirc:znt,wcirc:Int,wedbar:Fnt,wedge:Hnt,Wedge:qnt,wedgeq:Bnt,weierp:Wnt,Wfr:Unt,wfr:jnt,Wopf:Vnt,wopf:Gnt,wp:Knt,wr:Xnt,wreath:Ynt,Wscr:Znt,wscr:Jnt,xcap:Qnt,xcirc:trt,xcup:ert,xdtri:nrt,Xfr:rrt,xfr:irt,xharr:ort,xhArr:srt,Xi:lrt,xi:art,xlarr:crt,xlArr:urt,xmap:frt,xnis:hrt,xodot:drt,Xopf:prt,xopf:grt,xoplus:vrt,xotime:mrt,xrarr:yrt,xrArr:brt,Xscr:wrt,xscr:xrt,xsqcup:_rt,xuplus:Srt,xutri:krt,xvee:Crt,xwedge:Trt,Yacute:Ert,yacute:Lrt,YAcy:Art,yacy:Mrt,Ycirc:Nrt,ycirc:$rt,Ycy:Prt,ycy:Ort,yen:Rrt,Yfr:Drt,yfr:zrt,YIcy:Irt,yicy:Frt,Yopf:Hrt,yopf:qrt,Yscr:Brt,yscr:Wrt,YUcy:Urt,yucy:jrt,yuml:Vrt,Yuml:Grt,Zacute:Krt,zacute:Xrt,Zcaron:Yrt,zcaron:Zrt,Zcy:Jrt,zcy:Qrt,Zdot:tit,zdot:eit,zeetrf:nit,ZeroWidthSpace:rit,Zeta:iit,zeta:oit,zfr:sit,Zfr:lit,ZHcy:ait,zhcy:cit,zigrarr:uit,zopf:fit,Zopf:hit,Zscr:dit,zscr:pit,zwj:git,zwnj:vit},mit="Á",yit="á",bit="Â",wit="â",xit="´",_it="Æ",Sit="æ",kit="À",Cit="à",Tit="&",Eit="&",Lit="Å",Ait="å",Mit="Ã",Nit="ã",$it="Ä",Pit="ä",Oit="¦",Rit="Ç",Dit="ç",zit="¸",Iit="¢",Fit="©",Hit="©",qit="¤",Bit="°",Wit="÷",Uit="É",jit="é",Vit="Ê",Git="ê",Kit="È",Xit="è",Yit="Ð",Zit="ð",Jit="Ë",Qit="ë",tot="½",eot="¼",not="¾",rot=">",iot=">",oot="Í",sot="í",lot="Î",aot="î",cot="¡",uot="Ì",fot="ì",hot="¿",dot="Ï",pot="ï",got="«",vot="<",mot="<",yot="¯",bot="µ",wot="·",xot=" ",_ot="¬",Sot="Ñ",kot="ñ",Cot="Ó",Tot="ó",Eot="Ô",Lot="ô",Aot="Ò",Mot="ò",Not="ª",$ot="º",Pot="Ø",Oot="ø",Rot="Õ",Dot="õ",zot="Ö",Iot="ö",Fot="¶",Hot="±",qot="£",Bot='"',Wot='"',Uot="»",jot="®",Vot="®",Got="§",Kot="",Xot="¹",Yot="²",Zot="³",Jot="ß",Qot="Þ",tst="þ",est="×",nst="Ú",rst="ú",ist="Û",ost="û",sst="Ù",lst="ù",ast="¨",cst="Ü",ust="ü",fst="Ý",hst="ý",dst="¥",pst="ÿ",gst={Aacute:mit,aacute:yit,Acirc:bit,acirc:wit,acute:xit,AElig:_it,aelig:Sit,Agrave:kit,agrave:Cit,amp:Tit,AMP:Eit,Aring:Lit,aring:Ait,Atilde:Mit,atilde:Nit,Auml:$it,auml:Pit,brvbar:Oit,Ccedil:Rit,ccedil:Dit,cedil:zit,cent:Iit,copy:Fit,COPY:Hit,curren:qit,deg:Bit,divide:Wit,Eacute:Uit,eacute:jit,Ecirc:Vit,ecirc:Git,Egrave:Kit,egrave:Xit,ETH:Yit,eth:Zit,Euml:Jit,euml:Qit,frac12:tot,frac14:eot,frac34:not,gt:rot,GT:iot,Iacute:oot,iacute:sot,Icirc:lot,icirc:aot,iexcl:cot,Igrave:uot,igrave:fot,iquest:hot,Iuml:dot,iuml:pot,laquo:got,lt:vot,LT:mot,macr:yot,micro:bot,middot:wot,nbsp:xot,not:_ot,Ntilde:Sot,ntilde:kot,Oacute:Cot,oacute:Tot,Ocirc:Eot,ocirc:Lot,Ograve:Aot,ograve:Mot,ordf:Not,ordm:$ot,Oslash:Pot,oslash:Oot,Otilde:Rot,otilde:Dot,Ouml:zot,ouml:Iot,para:Fot,plusmn:Hot,pound:qot,quot:Bot,QUOT:Wot,raquo:Uot,reg:jot,REG:Vot,sect:Got,shy:Kot,sup1:Xot,sup2:Yot,sup3:Zot,szlig:Jot,THORN:Qot,thorn:tst,times:est,Uacute:nst,uacute:rst,Ucirc:ist,ucirc:ost,Ugrave:sst,ugrave:lst,uml:ast,Uuml:cst,uuml:ust,Yacute:fst,yacute:hst,yen:dst,yuml:pst},vst="&",mst="'",yst=">",bst="<",wst='"',nb={amp:vst,apos:mst,gt:yst,lt:bst,quot:wst};var id={};const xst={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 _st=bo&&bo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(id,"__esModule",{value:!0});var Jv=_st(xst),Sst=String.fromCodePoint||function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function kst(t){return t>=55296&&t<=57343||t>1114111?"�":(t in Jv.default&&(t=Jv.default[t]),Sst(t))}id.default=kst;var au=bo&&bo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.decodeHTML=Yr.decodeHTMLStrict=Yr.decodeXML=void 0;var fh=au(eb),Cst=au(gst),Tst=au(nb),Qv=au(id),Est=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Yr.decodeXML=rb(Tst.default);Yr.decodeHTMLStrict=rb(fh.default);function rb(t){var e=ib(t);return function(r){return String(r).replace(Est,e)}}var tm=function(t,e){return t<e?1:-1};Yr.decodeHTML=function(){for(var t=Object.keys(Cst.default).sort(tm),e=Object.keys(fh.default).sort(tm),r=0,o=0;r<e.length;r++)t[o]===e[r]?(e[r]+=";?",o++):e[r]+=";";var s=new RegExp("&(?:"+e.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=ib(fh.default);function f(h){return h.substr(-1)!==";"&&(h+=";"),c(h)}return function(h){return String(h).replace(s,f)}}();function ib(t){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Qv.default(parseInt(r.substr(3),16)):Qv.default(parseInt(r.substr(2),10))}return t[r.slice(1,-1)]||r}}var Dn={},ob=bo&&bo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.escapeUTF8=Dn.escape=Dn.encodeNonAsciiHTML=Dn.encodeHTML=Dn.encodeXML=void 0;var Lst=ob(nb),sb=ab(Lst.default),lb=cb(sb);Dn.encodeXML=hb(sb);var Ast=ob(eb),od=ab(Ast.default),Mst=cb(od);Dn.encodeHTML=$st(od,Mst);Dn.encodeNonAsciiHTML=hb(od);function ab(t){return Object.keys(t).sort().reduce(function(e,r){return e[t[r]]="&"+r+";",e},{})}function cb(t){for(var e=[],r=[],o=0,s=Object.keys(t);o<s.length;o++){var c=s[o];c.length===1?e.push("\\"+c):r.push(c)}e.sort();for(var f=0;f<e.length-1;f++){for(var h=f;h<e.length-1&&e[h].charCodeAt(1)+1===e[h+1].charCodeAt(1);)h+=1;var d=1+h-f;d<3||e.splice(f,d,e[f]+"-"+e[h])}return r.unshift("["+e.join("")+"]"),new RegExp(r.join("|"),"g")}var ub=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,Nst=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function cu(t){return"&#x"+(t.length>1?Nst(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function $st(t,e){return function(r){return r.replace(e,function(o){return t[o]}).replace(ub,cu)}}var fb=new RegExp(lb.source+"|"+ub.source,"g");function Pst(t){return t.replace(fb,cu)}Dn.escape=Pst;function Ost(t){return t.replace(lb,cu)}Dn.escapeUTF8=Ost;function hb(t){return function(e){return e.replace(fb,function(r){return t[r]||cu(r)})}}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var e=Yr,r=Dn;function o(d,g){return(!g||g<=0?e.decodeXML:e.decodeHTML)(d)}t.decode=o;function s(d,g){return(!g||g<=0?e.decodeXML:e.decodeHTMLStrict)(d)}t.decodeStrict=s;function c(d,g){return(!g||g<=0?r.encodeXML:r.encodeHTML)(d)}t.encode=c;var f=Dn;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var h=Yr;Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(tb);function Rst(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dst(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function zst(t,e,r){return e&&Dst(t.prototype,e),t}function db(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Ist(t))||e){r&&(t=r);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(g){throw g},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
23
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,f=!1,h;return{s:function(){r=r.call(t)},n:function(){var g=r.next();return c=g.done,g},e:function(g){f=!0,h=g},f:function(){try{!c&&r.return!=null&&r.return()}finally{if(f)throw h}}}}function Ist(t,e){if(t){if(typeof t=="string")return em(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return em(t,e)}}function em(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var Fst=tb,nm={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:Hst()};function Hst(){var t={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 Ua(0,5).forEach(function(e){Ua(0,5).forEach(function(r){Ua(0,5).forEach(function(o){return qst(e,r,o,t)})})}),Ua(0,23).forEach(function(e){var r=e+232,o=pb(e*10+8);t[r]="#"+o+o+o}),t}function qst(t,e,r,o){var s=16+t*36+e*6+r,c=t>0?t*40+55:0,f=e>0?e*40+55:0,h=r>0?r*40+55:0;o[s]=Bst([c,f,h])}function pb(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e}function Bst(t){var e=[],r=db(t),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;e.push(pb(s))}}catch(c){r.e(c)}finally{r.f()}return"#"+e.join("")}function rm(t,e,r,o){var s;return e==="text"?s=Vst(r,o):e==="display"?s=Ust(t,r,o):e==="xterm256Foreground"?s=lc(t,o.colors[r]):e==="xterm256Background"?s=ac(t,o.colors[r]):e==="rgb"&&(s=Wst(t,r)),s}function Wst(t,e){e=e.substring(2).slice(0,-1);var r=+e.substr(0,2),o=e.substring(5).split(";"),s=o.map(function(c){return("0"+Number(c).toString(16)).substr(-2)}).join("");return sc(t,(r===38?"color:#":"background-color:#")+s)}function Ust(t,e,r){e=parseInt(e,10);var o={"-1":function(){return"<br/>"},0:function(){return t.length&&gb(t)},1:function(){return Li(t,"b")},3:function(){return Li(t,"i")},4:function(){return Li(t,"u")},8:function(){return sc(t,"display:none")},9:function(){return Li(t,"strike")},22:function(){return sc(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return om(t,"i")},24:function(){return om(t,"u")},39:function(){return lc(t,r.fg)},49:function(){return ac(t,r.bg)},53:function(){return sc(t,"text-decoration:overline")}},s;return o[e]?s=o[e]():4<e&&e<7?s=Li(t,"blink"):29<e&&e<38?s=lc(t,r.colors[e-30]):39<e&&e<48?s=ac(t,r.colors[e-40]):89<e&&e<98?s=lc(t,r.colors[8+(e-90)]):99<e&&e<108&&(s=ac(t,r.colors[8+(e-100)])),s}function gb(t){var e=t.slice(0);return t.length=0,e.reverse().map(function(r){return"</"+r+">"}).join("")}function Ua(t,e){for(var r=[],o=t;o<=e;o++)r.push(o);return r}function jst(t){return function(e){return(t===null||e.category!==t)&&t!=="all"}}function im(t){t=parseInt(t,10);var e=null;return t===0?e="all":t===1?e="bold":2<t&&t<5?e="underline":4<t&&t<7?e="blink":t===8?e="hide":t===9?e="strike":29<t&&t<38||t===39||89<t&&t<98?e="foreground-color":(39<t&&t<48||t===49||99<t&&t<108)&&(e="background-color"),e}function Vst(t,e){return e.escapeXML?Fst.encodeXML(t):t}function Li(t,e,r){return r||(r=""),t.push(e),"<".concat(e).concat(r?' style="'.concat(r,'"'):"",">")}function sc(t,e){return Li(t,"span",e)}function lc(t,e){return Li(t,"span","color:"+e)}function ac(t,e){return Li(t,"span","background-color:"+e)}function om(t,e){var r;if(t.slice(-1)[0]===e&&(r=t.pop()),r)return"</"+e+">"}function Gst(t,e,r){var o=!1,s=3;function c(){return""}function f(H,F){return r("xterm256Foreground",F),""}function h(H,F){return r("xterm256Background",F),""}function d(H){return e.newline?r("display",-1):r("text",H),""}function g(H,F){o=!0,F.trim().length===0&&(F="0"),F=F.trimRight(";").split(";");var ct=db(F),ut;try{for(ct.s();!(ut=ct.n()).done;){var st=ut.value;r("display",st)}}catch(X){ct.e(X)}finally{ct.f()}return""}function v(H){return r("text",H),""}function y(H){return r("rgb",H),""}var w=[{pattern:/^\x08+/,sub:c},{pattern:/^\x1b\[[012]?K/,sub:c},{pattern:/^\x1b\[\(B/,sub:c},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:y},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{pattern:/^\x1b\[48;5;(\d+)m/,sub:h},{pattern:/^\n/,sub:d},{pattern:/^\r+\n/,sub:d},{pattern:/^\r/,sub:d},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:g},{pattern:/^\x1b\[\d?J/,sub:c},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:c},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:c},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function _(H,F){F>s&&o||(o=!1,t=t.replace(H.pattern,H.sub))}var L=[],M=t,A=M.length;t:for(;A>0;){for(var T=0,E=0,P=w.length;E<P;T=++E){var $=w[T];if(_($,T),t.length!==A){A=t.length;continue t}}if(t.length===A)break;L.push(0),A=t.length}return L}function Kst(t,e,r){return e!=="text"&&(t=t.filter(jst(im(r))),t.push({token:e,data:r,category:im(r)})),t}var Xst=function(){function t(e){Rst(this,t),e=e||{},e.colors&&(e.colors=Object.assign({},nm.colors,e.colors)),this.options=Object.assign({},nm,e),this.stack=[],this.stickyStack=[]}return zst(t,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var s=this.stack,c=this.options,f=[];return this.stickyStack.forEach(function(h){var d=rm(s,h.token,h.data,c);d&&f.push(d)}),Gst(r.join(""),c,function(h,d){var g=rm(s,h,d,c);g&&f.push(g),c.stream&&(o.stickyStack=Kst(o.stickyStack,h,d))}),s.length&&f.push(gb(s)),f.join("")}}]),t}(),Yst=Xst;const Zst=Xy(Yst),Jst=/^[A-Za-z]:\//;function Qst(t=""){return t&&t.replace(/\\/g,"/").replace(Jst,e=>e.toUpperCase())}const tlt=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function elt(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const nlt=function(...t){t=t.map(o=>Qst(o));let e="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const s=o>=0?t[o]:elt();!s||s.length===0||(e=`${s}/${e}`,r=sm(s))}return e=rlt(e,!r),r&&!sm(e)?`/${e}`:e.length>0?e:"."};function rlt(t,e){let r="",o=0,s=-1,c=0,f=null;for(let h=0;h<=t.length;++h){if(h<t.length)f=t[h];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===h-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 d=r.lastIndexOf("/");d===-1?(r="",o=0):(r=r.slice(0,d),o=r.length-1-r.lastIndexOf("/")),s=h,c=0;continue}else if(r.length>0){r="",o=0,s=h,c=0;continue}}e&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${t.slice(s+1,h)}`:r=t.slice(s+1,h),o=h-s-1;s=h,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const sm=function(t){return tlt.test(t)},ilt=44,lm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",olt=new Uint8Array(64),vb=new Uint8Array(128);for(let t=0;t<lm.length;t++){const e=lm.charCodeAt(t);olt[t]=e,vb[e]=t}function slt(t){const e=new Int32Array(5),r=[];let o=0;do{const s=llt(t,o),c=[];let f=!0,h=0;e[0]=0;for(let d=o;d<s;d++){let g;d=il(t,d,e,0);const v=e[0];v<h&&(f=!1),h=v,am(t,d,s)?(d=il(t,d,e,1),d=il(t,d,e,2),d=il(t,d,e,3),am(t,d,s)?(d=il(t,d,e,4),g=[v,e[1],e[2],e[3],e[4]]):g=[v,e[1],e[2],e[3]]):g=[v],c.push(g)}f||alt(c),r.push(c),o=s+1}while(o<=t.length);return r}function llt(t,e){const r=t.indexOf(";",e);return r===-1?t.length:r}function il(t,e,r,o){let s=0,c=0,f=0;do{const d=t.charCodeAt(e++);f=vb[d],s|=(f&31)<<c,c+=5}while(f&32);const h=s&1;return s>>>=1,h&&(s=-2147483648|-s),r[o]+=s,e}function am(t,e,r){return e>=r?!1:t.charCodeAt(e)!==ilt}function alt(t){t.sort(clt)}function clt(t,e){return t[0]-e[0]}const ult=/^[\w+.-]+:\/\//,flt=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,hlt=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Pe;(function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"})(Pe||(Pe={}));function dlt(t){return ult.test(t)}function plt(t){return t.startsWith("//")}function mb(t){return t.startsWith("/")}function glt(t){return t.startsWith("file:")}function cm(t){return/^[.?#]/.test(t)}function ja(t){const e=flt.exec(t);return yb(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function vlt(t){const e=hlt.exec(t),r=e[2];return yb("file:","",e[1]||"","",mb(r)?r:"/"+r,e[3]||"",e[4]||"")}function yb(t,e,r,o,s,c,f){return{scheme:t,user:e,host:r,port:o,path:s,query:c,hash:f,type:Pe.Absolute}}function um(t){if(plt(t)){const r=ja("http:"+t);return r.scheme="",r.type=Pe.SchemeRelative,r}if(mb(t)){const r=ja("http://foo.com"+t);return r.scheme="",r.host="",r.type=Pe.AbsolutePath,r}if(glt(t))return vlt(t);if(dlt(t))return ja(t);const e=ja("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?Pe.Query:t.startsWith("#")?Pe.Hash:Pe.RelativePath:Pe.Empty,e}function mlt(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}function ylt(t,e){bb(e,e.type),t.path==="/"?t.path=e.path:t.path=mlt(e.path)+t.path}function bb(t,e){const r=e<=Pe.RelativePath,o=t.path.split("/");let s=1,c=0,f=!1;for(let d=1;d<o.length;d++){const g=o[d];if(!g){f=!0;continue}if(f=!1,g!=="."){if(g===".."){c?(f=!0,c--,s--):r&&(o[s++]=g);continue}o[s++]=g,c++}}let h="";for(let d=1;d<s;d++)h+="/"+o[d];(!h||f&&!h.endsWith("/.."))&&(h+="/"),t.path=h}function blt(t,e){if(!t&&!e)return"";const r=um(t);let o=r.type;if(e&&o!==Pe.Absolute){const c=um(e),f=c.type;switch(o){case Pe.Empty:r.hash=c.hash;case Pe.Hash:r.query=c.query;case Pe.Query:case Pe.RelativePath:ylt(r,c);case Pe.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case Pe.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}bb(r,o);const s=r.query+r.hash;switch(o){case Pe.Hash:case Pe.Query:return s;case Pe.RelativePath:{const c=r.path.slice(1);return c?cm(e||t)&&!cm(c)?"./"+c+s:c+s:s||"."}case Pe.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function fm(t,e){return e&&!e.endsWith("/")&&(e+="/"),blt(t,e)}function wlt(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}const Ii=0,xlt=1,_lt=2,Slt=3,klt=4;function Clt(t,e){const r=hm(t,0);if(r===t.length)return t;e||(t=t.slice());for(let o=r;o<t.length;o=hm(t,o+1))t[o]=Elt(t[o],e);return t}function hm(t,e){for(let r=e;r<t.length;r++)if(!Tlt(t[r]))return r;return t.length}function Tlt(t){for(let e=1;e<t.length;e++)if(t[e][Ii]<t[e-1][Ii])return!1;return!0}function Elt(t,e){return e||(t=t.slice()),t.sort(Llt)}function Llt(t,e){return t[Ii]-e[Ii]}let Mc=!1;function Alt(t,e,r,o){for(;r<=o;){const s=r+(o-r>>1),c=t[s][Ii]-e;if(c===0)return Mc=!0,s;c<0?r=s+1:o=s-1}return Mc=!1,r-1}function Mlt(t,e,r){for(let o=r+1;o<t.length&&t[o][Ii]===e;r=o++);return r}function Nlt(t,e,r){for(let o=r-1;o>=0&&t[o][Ii]===e;r=o--);return r}function $lt(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Plt(t,e,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let h=0,d=t.length-1;if(o===s){if(e===c)return Mc=f!==-1&&t[f][Ii]===e,f;e>=c?h=f===-1?0:f:d=f}return r.lastKey=o,r.lastNeedle=e,r.lastIndex=Alt(t,e,h,d)}const Olt="`line` must be greater than 0 (lines start at line 1)",Rlt="`column` must be greater than or equal to 0 (columns start at column 0)",dm=-1,Dlt=1;class zlt{constructor(e,r){const o=typeof e=="string";if(!o&&e._decodedMemo)return e;const s=o?JSON.parse(e):e,{version:c,file:f,names:h,sourceRoot:d,sources:g,sourcesContent:v}=s;this.version=c,this.file=f,this.names=h||[],this.sourceRoot=d,this.sources=g,this.sourcesContent=v,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const y=fm(d||"",wlt(r));this.resolvedSources=g.map(_=>fm(_||"",y));const{mappings:w}=s;typeof w=="string"?(this._encoded=w,this._decoded=void 0):(this._encoded=void 0,this._decoded=Clt(w,o)),this._decodedMemo=$lt(),this._bySources=void 0,this._bySourceMemos=void 0}}function Ilt(t){var e;return(e=t)._decoded||(e._decoded=slt(t._encoded))}function Flt(t,e){let{line:r,column:o,bias:s}=e;if(r--,r<0)throw new Error(Olt);if(o<0)throw new Error(Rlt);const c=Ilt(t);if(r>=c.length)return Va(null,null,null,null);const f=c[r],h=Hlt(f,t._decodedMemo,r,o,s||Dlt);if(h===-1)return Va(null,null,null,null);const d=f[h];if(d.length===1)return Va(null,null,null,null);const{names:g,resolvedSources:v}=t;return Va(v[d[xlt]],d[_lt]+1,d[Slt],d.length===5?g[d[klt]]:null)}function Va(t,e,r,o){return{source:t,line:e,column:r,name:o}}function Hlt(t,e,r,o,s){let c=Plt(t,o,e,r);return Mc?c=(s===dm?Mlt:Nlt)(t,o,c):s===dm&&c++,c===-1||c===t.length?-1:c}const wb=/^\s*at .*(?:\S:\d+|\(native\))/m,qlt=/^(?:eval@)?(?:\[native code\])?$/,Blt=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function xb(t){if(!t.includes(":"))return[t];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!r)return[t];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),(o.startsWith("http:")||o.startsWith("https:"))&&(o=new URL(o).pathname),o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function Wlt(t){let e=t.trim();if(qlt.test(e)||(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=e.match(r),s=o&&o[1]?o[1]:void 0,[c,f,h]=xb(e.replace(r,""));return!c||!f||!h?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(h)}}function Ult(t){let e=t.trim();if(!wb.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=xb(o?o[1]:r);let h=o&&r||"",d=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!d||!c||!f?null:(h.startsWith("async ")&&(h=h.slice(6)),d.startsWith("file://")&&(d=d.slice(7)),d=nlt(d),h&&(h=h.replace(/__vite_ssr_import_\d+__\./g,"")),{method:h,file:d,line:Number.parseInt(c),column:Number.parseInt(f)})}function jlt(t,e={}){const{ignoreStackEntries:r=Blt}=e;let o=wb.test(t)?Glt(t):Vlt(t);return r.length&&(o=o.filter(s=>!r.some(c=>s.file.match(c)))),o.map(s=>{var c;const f=(c=e.getSourceMap)==null?void 0:c.call(e,s.file);if(!f||typeof f!="object"||!f.version)return s;const h=new zlt(f),{line:d,column:g}=Flt(h,s);return d!=null&&g!=null?{...s,line:d,column:g}:s})}function Vlt(t){return t.split(`
|
|
24
|
+
`).map(e=>Wlt(e)).filter(Yy)}function Glt(t){return t.split(`
|
|
25
|
+
`).map(e=>Ult(e)).filter(Yy)}function Klt(t,e){return e&&t.endsWith(e)}async function _b(t,e,r){const o=encodeURI(`${t}:${e}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function sd(t){return new Zst({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}function Xlt(t){return t===null||typeof t!="function"&&typeof t!="object"}function Sb(t){let e=t;if(Xlt(t)&&(e={message:String(e).split(/\n/g)[0],stack:String(e),name:""}),!t){const r=new Error("unknown error");e={message:r.message,stack:r.stack,name:""}}return e.stacks=jlt(e.stack||e.stackStr||"",{ignoreStackEntries:[]}),e}function ld(t){return Qm()?(Jx(t),!0):!1}function $r(t){return typeof t=="function"?t():B(t)}const Ylt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Zlt=Object.prototype.toString,Jlt=t=>Zlt.call(t)==="[object Object]",wo=()=>{};function ad(t,e){function r(...o){return new Promise((s,c)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(s).catch(c)})}return r}const kb=t=>t();function Cb(t,e={}){let r,o,s=wo;const c=h=>{clearTimeout(h),s(),s=wo};return h=>{const d=$r(t),g=$r(e.maxWait);return r&&c(r),d<=0||g!==void 0&&g<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((v,y)=>{s=e.rejectOnCancel?y:v,g&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(h())},g)),r=setTimeout(()=>{o&&c(o),o=null,v(h())},d)})}}function Qlt(...t){let e=0,r,o=!0,s=wo,c,f,h,d,g;!Ae(t[0])&&typeof t[0]=="object"?{delay:f,trailing:h=!0,leading:d=!0,rejectOnCancel:g=!1}=t[0]:[f,h=!0,d=!0,g=!1]=t;const v=()=>{r&&(clearTimeout(r),r=void 0,s(),s=wo)};return w=>{const _=$r(f),L=Date.now()-e,M=()=>c=w();return v(),_<=0?(e=Date.now(),M()):(L>_&&(d||!o)?(e=Date.now(),M()):h&&(c=new Promise((A,T)=>{s=g?T:A,r=setTimeout(()=>{e=Date.now(),o=!0,A(M()),v()},Math.max(0,_-L))})),!d&&!r&&(r=setTimeout(()=>o=!0,_)),o=!1,c)}}function tat(t=kb){const e=Qt(!0);function r(){e.value=!1}function o(){e.value=!0}const s=(...c)=>{e.value&&t(...c)};return{isActive:Gc(e),pause:r,resume:o,eventFilter:s}}function eat(t){return Kl()}function nat(...t){if(t.length!==1)return Fh(...t);const e=t[0];return typeof e=="function"?Gc(m0(()=>({get:e,set:wo}))):Qt(e)}function pm(t,e=200,r={}){return ad(Cb(e,r),t)}function rat(t,e=200,r=!1,o=!0,s=!1){return ad(Qlt(e,r,o,s),t)}function iat(t,e=200,r=!0,o=!0){if(e<=0)return t;const s=Qt(t.value),c=rat(()=>{s.value=t.value},e,r,o);return Ge(t,()=>c()),s}function Tb(t,e,r={}){const{eventFilter:o=kb,...s}=r;return Ge(t,ad(o,e),s)}function Eb(t,e,r={}){const{eventFilter:o,...s}=r,{eventFilter:c,pause:f,resume:h,isActive:d}=tat(o);return{stop:Tb(t,e,{...s,eventFilter:c}),pause:f,resume:h,isActive:d}}function cd(t,e=!0,r){eat()?xs(t,r):e?t():Mr(t)}function oat(t=!1,e={}){const{truthyValue:r=!0,falsyValue:o=!1}=e,s=Ae(t),c=Qt(t);function f(h){if(arguments.length)return c.value=h,c.value;{const d=$r(r);return c.value=c.value===d?$r(o):d,c.value}}return s?f:[c,f]}function sat(t,e,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Tb(t,e,{...c,eventFilter:Cb(o,{maxWait:s})})}function lat(t,e,r){const o=Ge(t,(...s)=>(Mr(()=>o()),e(...s)),r);return o}function aat(t,e,r){let o;Ae(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:h=wo}=o,d=Qt(!s),g=f?ws(e):Qt(e);let v=0;return Gh(async y=>{if(!d.value)return;v++;const w=v;let _=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const L=await t(M=>{y(()=>{c&&(c.value=!1),_||M()})});w===v&&(g.value=L)}catch(L){h(L)}finally{c&&w===v&&(c.value=!1),_=!0}}),s?_t(()=>(d.value=!0,g.value)):g}function Nc(t){var e;const r=$r(t);return(e=r==null?void 0:r.$el)!=null?e:r}const pr=Ylt?window:void 0;function vs(...t){let e,r,o,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,s]=t,e=pr):[e,r,o,s]=t,!e)return wo;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const c=[],f=()=>{c.forEach(v=>v()),c.length=0},h=(v,y,w,_)=>(v.addEventListener(y,w,_),()=>v.removeEventListener(y,w,_)),d=Ge(()=>[Nc(e),$r(s)],([v,y])=>{if(f(),!v)return;const w=Jlt(y)?{...y}:y;c.push(...r.flatMap(_=>o.map(L=>h(v,_,L,w))))},{immediate:!0,flush:"post"}),g=()=>{d(),f()};return ld(g),g}function cat(t){return typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>!0}function uat(...t){let e,r,o={};t.length===3?(e=t[0],r=t[1],o=t[2]):t.length===2?typeof t[1]=="object"?(e=!0,r=t[0],o=t[1]):(e=t[0],r=t[1]):(e=!0,r=t[0]);const{target:s=pr,eventName:c="keydown",passive:f=!1,dedupe:h=!1}=o,d=cat(e);return vs(s,c,v=>{v.repeat&&$r(h)||d(v)&&r(v)},f)}function fat(){const t=Qt(!1),e=Kl();return e&&xs(()=>{t.value=!0},e),t}function Lb(t){const e=fat();return _t(()=>(e.value,!!t()))}function Ab(t,e={}){const{window:r=pr}=e,o=Lb(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const c=Qt(!1),f=g=>{c.value=g.matches},h=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},d=Gh(()=>{o.value&&(h(),s=r.matchMedia($r(t)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),c.value=s.matches)});return ld(()=>{d(),h(),s=void 0}),c}const Ga=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ka="__vueuse_ssr_handlers__",hat=dat();function dat(){return Ka in Ga||(Ga[Ka]=Ga[Ka]||{}),Ga[Ka]}function Mb(t,e){return hat[t]||e}function pat(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const gat={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},gm="vueuse-storage";function Nb(t,e,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:h=!0,writeDefaults:d=!0,mergeDefaults:g=!1,shallow:v,window:y=pr,eventFilter:w,onError:_=X=>{console.error(X)},initOnMounted:L}=o,M=(v?ws:Qt)(typeof e=="function"?e():e);if(!r)try{r=Mb("getDefaultStorage",()=>{var X;return(X=pr)==null?void 0:X.localStorage})()}catch(X){_(X)}if(!r)return M;const A=$r(e),T=pat(A),E=(s=o.serializer)!=null?s:gat[T],{pause:P,resume:$}=Eb(M,()=>F(M.value),{flush:c,deep:f,eventFilter:w});y&&h&&cd(()=>{vs(y,"storage",ut),vs(y,gm,st),L&&ut()}),L||ut();function H(X,ft){y&&y.dispatchEvent(new CustomEvent(gm,{detail:{key:t,oldValue:X,newValue:ft,storageArea:r}}))}function F(X){try{const ft=r.getItem(t);if(X==null)H(ft,null),r.removeItem(t);else{const rt=E.write(X);ft!==rt&&(r.setItem(t,rt),H(ft,rt))}}catch(ft){_(ft)}}function ct(X){const ft=X?X.newValue:r.getItem(t);if(ft==null)return d&&A!=null&&r.setItem(t,E.write(A)),A;if(!X&&g){const rt=E.read(ft);return typeof g=="function"?g(rt,A):T==="object"&&!Array.isArray(rt)?{...A,...rt}:rt}else return typeof ft!="string"?ft:E.read(ft)}function ut(X){if(!(X&&X.storageArea!==r)){if(X&&X.key==null){M.value=A;return}if(!(X&&X.key!==t)){P();try{(X==null?void 0:X.newValue)!==E.write(M.value)&&(M.value=ct(X))}catch(ft){_(ft)}finally{X?Mr($):$()}}}}function st(X){ut(X.detail)}return M}function $b(t){return Ab("(prefers-color-scheme: dark)",t)}function vat(t={}){const{selector:e="html",attribute:r="class",initialValue:o="auto",window:s=pr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:d,emitAuto:g,disableTransition:v=!0}=t,y={auto:"",light:"light",dark:"dark",...t.modes||{}},w=$b({window:s}),_=_t(()=>w.value?"dark":"light"),L=d||(f==null?nat(o):Nb(f,o,c,{window:s,listenToStorageChanges:h})),M=_t(()=>L.value==="auto"?_.value:L.value),A=Mb("updateHTMLAttrs",($,H,F)=>{const ct=typeof $=="string"?s==null?void 0:s.document.querySelector($):Nc($);if(!ct)return;let ut;if(v&&(ut=s.document.createElement("style"),ut.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),s.document.head.appendChild(ut)),H==="class"){const st=F.split(/\s/g);Object.values(y).flatMap(X=>(X||"").split(/\s/g)).filter(Boolean).forEach(X=>{st.includes(X)?ct.classList.add(X):ct.classList.remove(X)})}else ct.setAttribute(H,F);v&&(s.getComputedStyle(ut).opacity,document.head.removeChild(ut))});function T($){var H;A(e,r,(H=y[$])!=null?H:$)}function E($){t.onChanged?t.onChanged($,T):T($)}Ge(M,E,{flush:"post",immediate:!0}),cd(()=>E(M.value));const P=_t({get(){return g?L.value:M.value},set($){L.value=$}});try{return Object.assign(P,{store:L,system:_,state:M})}catch{return P}}function mat(t={}){const{valueDark:e="dark",valueLight:r="",window:o=pr}=t,s=vat({...t,onChanged:(h,d)=>{var g;t.onChanged?(g=t.onChanged)==null||g.call(t,h==="dark",d,h):d(h)},modes:{dark:e,light:r}}),c=_t(()=>s.system?s.system.value:$b({window:o}).value?"dark":"light");return _t({get(){return s.value==="dark"},set(h){const d=h?"dark":"light";c.value===d?s.value="auto":s.value=d}})}function yat(t,e,r={}){const{window:o=pr,...s}=r;let c;const f=Lb(()=>o&&"ResizeObserver"in o),h=()=>{c&&(c.disconnect(),c=void 0)},d=_t(()=>Array.isArray(t)?t.map(y=>Nc(y)):[Nc(t)]),g=Ge(d,y=>{if(h(),f.value&&o){c=new ResizeObserver(e);for(const w of y)w&&c.observe(w,s)}},{immediate:!0,flush:"post"}),v=()=>{h(),g()};return ld(v),{isSupported:f,stop:v}}function ud(t,e,r={}){const{window:o=pr}=r;return Nb(t,e,o==null?void 0:o.localStorage,r)}function bat(t="history",e={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,window:f=pr}=e;if(!f)return Cr(r);const h=Cr({});function d(){if(t==="history")return f.location.search||"";if(t==="hash"){const T=f.location.hash||"",E=T.indexOf("?");return E>0?T.slice(E):""}else return(f.location.hash||"").replace(/^#/,"")}function g(T){const E=T.toString();if(t==="history")return`${E?`?${E}`:""}${f.location.hash||""}`;if(t==="hash-params")return`${f.location.search||""}${E?`#${E}`:""}`;const P=f.location.hash||"#",$=P.indexOf("?");return $>0?`${P.slice(0,$)}${E?`?${E}`:""}`:`${P}${E?`?${E}`:""}`}function v(){return new URLSearchParams(d())}function y(T){const E=new Set(Object.keys(h));for(const P of T.keys()){const $=T.getAll(P);h[P]=$.length>1?$:T.get(P)||"",E.delete(P)}Array.from(E).forEach(P=>delete h[P])}const{pause:w,resume:_}=Eb(h,()=>{const T=new URLSearchParams("");Object.keys(h).forEach(E=>{const P=h[E];Array.isArray(P)?P.forEach($=>T.append(E,$)):o&&P==null||s&&!P?T.delete(E):T.set(E,P)}),L(T)},{deep:!0});function L(T,E){w(),E&&y(T),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(T)),_()}function M(){c&&L(v(),!0)}vs(f,"popstate",M,!1),t!=="history"&&vs(f,"hashchange",M,!1);const A=v();return A.keys().next().value?y(A):Object.assign(h,r),h}function wat(t={}){const{window:e=pr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0}=t,f=Qt(r),h=Qt(o),d=()=>{e&&(c?(f.value=e.innerWidth,h.value=e.innerHeight):(f.value=e.document.documentElement.clientWidth,h.value=e.document.documentElement.clientHeight))};if(d(),cd(d),vs("resize",d,{passive:!0}),s){const g=Ab("(orientation: portrait)");Ge(g,()=>d())}return{width:f,height:h}}const Pb=bat("hash",{initialValue:{file:"",view:null}}),Wn=Fh(Pb,"file"),Bn=Fh(Pb,"view");var zn=Uint8Array,ts=Uint16Array,xat=Int32Array,Ob=new zn([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]),Rb=new zn([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]),_at=new zn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Db=function(t,e){for(var r=new ts(31),o=0;o<31;++o)r[o]=e+=1<<t[o-1];for(var s=new xat(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}},zb=Db(Ob,2),Ib=zb.b,Sat=zb.r;Ib[28]=258,Sat[258]=28;var kat=Db(Rb,0),Cat=kat.b,hh=new ts(32768);for(var xe=0;xe<32768;++xe){var mi=(xe&43690)>>1|(xe&21845)<<1;mi=(mi&52428)>>2|(mi&13107)<<2,mi=(mi&61680)>>4|(mi&3855)<<4,hh[xe]=((mi&65280)>>8|(mi&255)<<8)>>1}var Sl=function(t,e,r){for(var o=t.length,s=0,c=new ts(e);s<o;++s)t[s]&&++c[t[s]-1];var f=new ts(e);for(s=1;s<e;++s)f[s]=f[s-1]+c[s-1]<<1;var h;if(r){h=new ts(1<<e);var d=15-e;for(s=0;s<o;++s)if(t[s])for(var g=s<<4|t[s],v=e-t[s],y=f[t[s]-1]++<<v,w=y|(1<<v)-1;y<=w;++y)h[hh[y]>>d]=g}else for(h=new ts(o),s=0;s<o;++s)t[s]&&(h[s]=hh[f[t[s]-1]++]>>15-t[s]);return h},Jl=new zn(288);for(var xe=0;xe<144;++xe)Jl[xe]=8;for(var xe=144;xe<256;++xe)Jl[xe]=9;for(var xe=256;xe<280;++xe)Jl[xe]=7;for(var xe=280;xe<288;++xe)Jl[xe]=8;var Fb=new zn(32);for(var xe=0;xe<32;++xe)Fb[xe]=5;var Tat=Sl(Jl,9,1),Eat=Sl(Fb,5,1),Lf=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},sr=function(t,e,r){var o=e/8|0;return(t[o]|t[o+1]<<8)>>(e&7)&r},Af=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(e&7)},Lat=function(t){return(t+7)/8|0},Hb=function(t,e,r){return(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length),new zn(t.subarray(e,r))},Aat=["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"],En=function(t,e,r){var o=new Error(e||Aat[t]);if(o.code=t,Error.captureStackTrace&&Error.captureStackTrace(o,En),!r)throw o;return o},fd=function(t,e,r,o){var s=t.length,c=0;if(!s||e.f&&!e.l)return r||new zn(0);var f=!r,h=f||e.i!=2,d=e.i;f&&(r=new zn(s*3));var g=function(Et){var Xt=r.length;if(Et>Xt){var O=new zn(Math.max(Xt*2,Et));O.set(r),r=O}},v=e.f||0,y=e.p||0,w=e.b||0,_=e.l,L=e.d,M=e.m,A=e.n,T=s*8;do{if(!_){v=sr(t,y,1);var E=sr(t,y+1,3);if(y+=3,E)if(E==1)_=Tat,L=Eat,M=9,A=5;else if(E==2){var F=sr(t,y,31)+257,ct=sr(t,y+10,15)+4,ut=F+sr(t,y+5,31)+1;y+=14;for(var st=new zn(ut),X=new zn(19),ft=0;ft<ct;++ft)X[_at[ft]]=sr(t,y+ft*3,7);y+=ct*3;for(var rt=Lf(X),V=(1<<rt)-1,z=Sl(X,rt,1),ft=0;ft<ut;){var k=z[sr(t,y,V)];y+=k&15;var P=k>>4;if(P<16)st[ft++]=P;else{var q=0,U=0;for(P==16?(U=3+sr(t,y,3),y+=2,q=st[ft-1]):P==17?(U=3+sr(t,y,7),y+=3):P==18&&(U=11+sr(t,y,127),y+=7);U--;)st[ft++]=q}}var Q=st.subarray(0,F),mt=st.subarray(F);M=Lf(Q),A=Lf(mt),_=Sl(Q,M,1),L=Sl(mt,A,1)}else En(1);else{var P=Lat(y)+4,$=t[P-4]|t[P-3]<<8,H=P+$;if(H>s){d&&En(0);break}h&&g(w+$),r.set(t.subarray(P,H),w),e.b=w+=$,e.p=y=H*8,e.f=v;continue}if(y>T){d&&En(0);break}}h&&g(w+131072);for(var Mt=(1<<M)-1,Ht=(1<<A)-1,Wt=y;;Wt=y){var q=_[Af(t,y)&Mt],re=q>>4;if(y+=q&15,y>T){d&&En(0);break}if(q||En(2),re<256)r[w++]=re;else if(re==256){Wt=y,_=null;break}else{var ne=re-254;if(re>264){var ft=re-257,Zt=Ob[ft];ne=sr(t,y,(1<<Zt)-1)+Ib[ft],y+=Zt}var Tt=L[Af(t,y)&Ht],G=Tt>>4;Tt||En(3),y+=Tt&15;var mt=Cat[G];if(G>3){var Zt=Rb[G];mt+=Af(t,y)&(1<<Zt)-1,y+=Zt}if(y>T){d&&En(0);break}h&&g(w+131072);var it=w+ne;if(w<mt){var ht=c-mt,Nt=Math.min(mt,it);for(ht+w<0&&En(3);w<Nt;++w)r[w]=o[ht+w]}for(;w<it;++w)r[w]=r[w-mt]}}e.l=_,e.p=Wt,e.b=w,e.f=v,_&&(v=1,e.m=M,e.d=L,e.n=A)}while(!v);return w!=r.length&&f?Hb(r,0,w):r.subarray(0,w)},Mat=new zn(0),Nat=function(t){(t[0]!=31||t[1]!=139||t[2]!=8)&&En(6,"invalid gzip data");var e=t[3],r=10;e&4&&(r+=(t[10]|t[11]<<8)+2);for(var o=(e>>3&1)+(e>>4&1);o>0;o-=!t[r++]);return r+(e&2)},$at=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},Pat=function(t,e){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&En(6,"invalid zlib data"),(t[1]>>5&1)==+!e&&En(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function Oat(t,e){return fd(t,{i:2},e,e)}function Rat(t,e){var r=Nat(t);return r+8>t.length&&En(6,"invalid gzip data"),fd(t.subarray(r,-8),{i:2},new zn($at(t)),e)}function Dat(t,e){return fd(t.subarray(Pat(t,e),-4),{i:2},e,e)}function zat(t,e){return t[0]==31&&t[1]==139&&t[2]==8?Rat(t,e):(t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?Oat(t,e):Dat(t,e)}var dh=typeof TextDecoder<"u"&&new TextDecoder,Iat=0;try{dh.decode(Mat,{stream:!0}),Iat=1}catch{}var Fat=function(t){for(var e="",r=0;;){var o=t[r++],s=(o>127)+(o>223)+(o>239);if(r+s>t.length)return{s:e,r:Hb(t,r-1)};s?s==3?(o=((o&15)<<18|(t[r++]&63)<<12|(t[r++]&63)<<6|t[r++]&63)-65536,e+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?e+=String.fromCharCode((o&31)<<6|t[r++]&63):e+=String.fromCharCode((o&15)<<12|(t[r++]&63)<<6|t[r++]&63):e+=String.fromCharCode(o)}};function Hat(t,e){var r;if(dh)return dh.decode(t);var o=Fat(t),s=o.s,r=o.r;return r.length&&En(8),s}const Mf=()=>{},rn=()=>Promise.resolve();function qat(){const t=Cr({state:new Qy,waitForConnection:f,reconnect:s,ws:new EventTarget});t.state.filesMap=Cr(t.state.filesMap),t.state.idMap=Cr(t.state.idMap);let e;const r={getFiles:()=>e.files,getPaths:()=>e.paths,getConfig:()=>e.config,getModuleGraph:async(h,d)=>{var g;return(g=e.moduleGraph[h])==null?void 0:g[d]},getUnhandledErrors:()=>e.unhandledErrors,getTransformResult:async h=>({code:h,source:"",map:null}),onDone:Mf,onCollected:rn,onTaskUpdate:Mf,writeFile:rn,rerun:rn,updateSnapshot:rn,resolveSnapshotPath:rn,snapshotSaved:rn,onAfterSuiteRun:rn,onCancel:rn,getCountOfFailedTests:()=>0,sendLog:rn,resolveSnapshotRawPath:rn,readSnapshotFile:rn,saveSnapshotFile:rn,readTestFile:rn,removeSnapshotFile:rn,onUnhandledError:Mf,saveTestFile:rn,getProvidedContext:()=>({}),getTestFiles:rn};t.rpc=r;let o;function s(){c()}async function c(){var v;const h=await fetch(window.METADATA_PATH),d=((v=h.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(d.includes("application/gzip")||d.includes("application/x-gzip")){const y=new Uint8Array(await h.arrayBuffer()),w=Hat(zat(y));e=ah(w)}else e=ah(await h.text());const g=new Event("open");t.ws.dispatchEvent(g)}c();function f(){return o}return t}const $c=Qt("idle"),ki=Qt([]),Oe=function(){return Zr?qat():KT(ZT,{reactive:Cr,handlers:{onTaskUpdate(){$c.value="running"},onFinished(e,r){$c.value="idle",ki.value=(r||[]).map(Sb)},onFinishedReportCoverage(){const e=document.querySelector("iframe#vitest-ui-coverage");e instanceof HTMLIFrameElement&&e.contentWindow&&e.contentWindow.location.reload()}}})}();function Bat(t,e){return t.name.localeCompare(e.name)}const hd=ws({}),ho=Qt("CONNECTING"),ln=_t(()=>Oe.state.getFiles().sort(Bat)),mn=_t(()=>ln.value.find(t=>t.id===Wn.value)),qb=_t(()=>rd(mn.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]);function Hl(t){return ln.value.find(e=>e.id===t)}const Wat=_t(()=>ho.value==="OPEN"),Nf=_t(()=>ho.value==="CONNECTING");_t(()=>ho.value==="CLOSED");function Uat(t=Oe.state.getFiles()){return Bb(t)}function Bb(t){return t.forEach(e=>{delete e.result,rd(e).forEach(r=>delete r.result)}),Oe.rpc.rerun(t.map(e=>e.filepath))}const ql=window.__vitest_browser_runner__;Ge(()=>Oe.ws,t=>{ho.value=Zr?"OPEN":"CONNECTING",t.addEventListener("open",async()=>{ho.value="OPEN",Oe.state.filesMap.clear();const[e,r,o]=await Promise.all([Oe.rpc.getFiles(),Oe.rpc.getConfig(),Oe.rpc.getUnhandledErrors()]);if(r.standalone){const c=(await Oe.rpc.getTestFiles()).map(([{name:f,root:h},d])=>ch(d,h,f));Oe.state.collectFiles(c)}else Oe.state.collectFiles(e);ki.value=(o||[]).map(Sb),hd.value=r}),t.addEventListener("close",()=>{setTimeout(()=>{ho.value==="CONNECTING"&&(ho.value="CLOSED")},1e3)})},{immediate:!0});const jat={"text-2xl":""},Vat={"text-lg":"",op50:""},Gat=fe({__name:"ConnectionOverlay",setup(t){return(e,r)=>B(Wat)?Kt("",!0):(tt(),yt("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>B(Oe).reconnect&&B(Oe).reconnect(...o))},[J("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:de(B(Nf)?"animate-pulse":"")},[J("div",{text:"5xl",class:de(B(Nf)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),J("div",jat,Vt(B(Nf)?"Connecting...":"Disconnected"),1),J("div",Vat," Check your terminal or start a new server with `"+Vt(B(ql)?`vitest --browser=${B(ql).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Kat=["aria-label","opacity","disabled","hover"],_s=fe({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(t){return(e,r)=>(tt(),yt("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:de(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Kn(e.$slots,"default",{},()=>[J("div",{class:de(e.icon),ma:""},null,2)])],10,Kat))}}),Ur=Qt("full"),ph=Qt();function $f(t){const e=document.querySelector("#tester-ui");e&&(e.style.pointerEvents=t?"none":"")}const ms=Qt(),as=Qt(!0),Fi=Qt(!1),Pc=Qt(!0),es=_t(()=>{var t;return(t=hd.value)==null?void 0:t.coverage}),gh=_t(()=>{var t;return(t=es.value)==null?void 0:t.enabled}),ns=_t(()=>gh.value&&es.value.reporter.map(([t])=>t).includes("html")),cc=ud("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),kr=ud("vitest-ui_task-tree-opened",[]),vm=_t(()=>{if(ns.value){const t=es.value.reportsDirectory.lastIndexOf("/"),e=es.value.reporter.find(r=>{if(r[0]==="html")return r});return e&&"subdir"in e[1]?`/${es.value.reportsDirectory.slice(t+1)}/${e[1].subdir}/index.html`:`/${es.value.reportsDirectory.slice(t+1)}/index.html`}});Ge($c,t=>{Pc.value=t==="running"},{immediate:!0});function Xat(){const t=Wn.value;if(t&&t.length>0){const e=Hl(t);e?(ms.value=e,as.value=!1,Fi.value=!1):lat(()=>Oe.state.getFiles(),()=>{ms.value=Hl(t),as.value=!1,Fi.value=!1})}return as}function uc(t){as.value=t,Fi.value=!1,t&&(ms.value=void 0,Wn.value="")}function Yat(){Fi.value=!0,as.value=!1,ms.value=void 0,Wn.value=""}const Zat={setCurrentFileId(t){Wn.value=t,ms.value=Hl(t),uc(!1)},async setIframeViewport(t,e){Ur.value="custom",ph.value=[t,e],await Wb(t,e)}};window.__vitest_ui_api__=Zat;function Jat(){const t=dd(),r=document.querySelector("#details-splitpanes").clientWidth,o=t.clientWidth,s=Math.min(o/r*100,95),c=100-s;cc.value=[s,c]}function dd(){return document.querySelector("#tester-ui iframe[data-vitest]")}async function Wb(t,e){const r=dd();r.style.width=typeof t=="string"?t:`${t}px`,r.style.height=typeof e=="string"?e:`${e}px`,await new Promise(o=>requestAnimationFrame(o)),Jat()}const Qat={h:"full",flex:"~ col"},tct=J("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[J("div",{class:"i-carbon-content-delivery-network"}),J("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI")],-1),ect={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},nct=J("div",{"flex-auto":"",class:"scrolls"},[J("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70",style:{overflow:"auto",width:"100%",height:"100%"}}," Select a test to run ")],-1),rct=fe({__name:"BrowserIframe",setup(t){const e={"small-mobile":["320px","568px"],"large-mobile":["414px","896px"],tablet:["834px","1112px"],full:["100%","100%"],custom:null};async function r(o){if(Ur.value===o?Ur.value=ph.value?"custom":"full":Ur.value=o,!dd()){console.warn("Iframe not found");return}const[c,f]=e[Ur.value]||ph.value||e.full;await Wb(c,f)}return(o,s)=>{const c=_s,f=Ui("tooltip");return tt(),yt("div",Qat,[tct,J("div",ect,[Se(It(c,{title:"Flexible",icon:"i-carbon:fit-to-screen",active:B(Ur)==="full",onClick:s[0]||(s[0]=h=>r("full"))},null,8,["active"]),[[f,"Flexible",void 0,{bottom:!0}]]),Se(It(c,{title:"Small mobile",icon:"i-carbon:mobile",active:B(Ur)==="small-mobile",onClick:s[1]||(s[1]=h=>r("small-mobile"))},null,8,["active"]),[[f,"Small mobile",void 0,{bottom:!0}]]),Se(It(c,{title:"Large mobile",icon:"i-carbon:mobile-add",active:B(Ur)==="large-mobile",onClick:s[2]||(s[2]=h=>r("large-mobile"))},null,8,["active"]),[[f,"Large mobile",void 0,{bottom:!0}]]),Se(It(c,{title:"Tablet",icon:"i-carbon:tablet",active:B(Ur)==="tablet",onClick:s[3]||(s[3]=h=>r("tablet"))},null,8,["active"]),[[f,"Tablet",void 0,{bottom:!0}]])]),nct])}}});function kl(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Ql=mat(),ict=oat(Ql),oct={class:"scrolls scrolls-rounded task-error"},sct=["onClickPassive"],lct=["innerHTML"],act=fe({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(t){const e=t;function r(f){return f.startsWith(e.root)?f.slice(e.root.length):f}const o=_t(()=>sd(Ql.value)),s=_t(()=>{var f;return!!((f=e.error)!=null&&f.diff)}),c=_t(()=>e.error.diff?o.value.toHtml(kl(e.error.diff)):void 0);return(f,h)=>{const d=Ui("tooltip");return tt(),yt("div",oct,[J("pre",null,[J("b",null,Vt(f.error.name||f.error.nameStr),1),he(": "+Vt(f.error.message),1)]),(tt(!0),yt(ie,null,Rn(f.error.stacks,(g,v)=>(tt(),yt("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[J("pre",null," - "+Vt(r(g.file))+":"+Vt(g.line)+":"+Vt(g.column),1),B(Klt)(g.file,f.filename)?Se((tt(),yt("div",{key:0,class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:y=>B(_b)(g.file,g.line,g.column)},null,40,sct)),[[d,"Open in Editor",void 0,{bottom:!0}]]):Kt("",!0)]))),128)),B(s)?(tt(),yt("pre",{key:0,"data-testid":"diff",innerHTML:B(c)},null,8,lct)):Kt("",!0)])}}}),cct=ji(act,[["__scopeId","data-v-9dd6eaea"]]),uct={"h-full":"",class:"scrolls"},fct={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},hct=["innerHTML"],dct={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},pct=fe({__name:"ViewReport",props:{file:{}},setup(t){const e=t;function r(f,h){var d;return((d=f.result)==null?void 0:d.state)!=="fail"?[]:f.type==="test"||f.type==="custom"?[{...f,level:h}]:[{...f,level:h},...f.tasks.flatMap(g=>r(g,h+1))]}function o(f,h){var v,y,w;let d="";(v=h.message)!=null&&v.includes("\x1B")&&(d=`<b>${h.nameStr||h.name}</b>: ${f.toHtml(kl(h.message))}`);const g=(y=h.stackStr)==null?void 0:y.includes("\x1B");return(g||(w=h.stack)!=null&&w.includes("\x1B"))&&(d.length>0?d+=f.toHtml(kl(g?h.stackStr:h.stack)):d=`<b>${h.nameStr||h.name}</b>: ${h.message}${f.toHtml(kl(g?h.stackStr:h.stack))}`),d.length>0?d:null}function s(f,h){const d=sd(f);return h.map(g=>{var w;const v=g.result;if(!v)return g;const y=(w=v.errors)==null?void 0:w.map(_=>o(d,_)).filter(_=>_!=null).join("<br><br>");return y!=null&&y.length&&(v.htmlError=y),g})}const c=_t(()=>{var v,y;const f=e.file,h=((v=f==null?void 0:f.tasks)==null?void 0:v.flatMap(w=>r(w,0)))??[],d=f==null?void 0:f.result;if((y=d==null?void 0:d.errors)==null?void 0:y[0]){const w={id:f.id,file:f,name:f.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:d};h.unshift(w)}return h.length>0?s(Ql.value,h):h});return(f,h)=>(tt(),yt("div",uct,[B(c).length?(tt(!0),yt(ie,{key:0},Rn(B(c),d=>{var g,v,y;return tt(),yt("div",{key:d.id},[J("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:an({"margin-left":`${(g=d.result)!=null&&g.htmlError?.5:2*d.level+.5}rem`})},[he(Vt(d.name)+" ",1),(v=d.result)!=null&&v.htmlError?(tt(),yt("div",fct,[J("pre",{innerHTML:d.result.htmlError},null,8,hct)])):(y=d.result)!=null&&y.errors?(tt(!0),yt(ie,{key:1},Rn(d.result.errors,(w,_)=>{var L;return tt(),Yt(cct,{key:_,error:w,filename:(L=f.file)==null?void 0:L.name,root:B(hd).root},null,8,["error","filename","root"])}),128)):Kt("",!0)],4)])}),128)):(tt(),yt("div",dct," All tests passed in this file "))]))}}),gct=ji(pct,[["__scopeId","data-v-ec7ccf98"]]),vct={border:"b base","p-4":""},mct=["innerHTML"],yct=fe({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(t){function e(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(tt(),yt("div",vct,[J("div",{"text-xs":"","mb-1":"",class:de(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Vt(e(r.time))+" | "+Vt(r.taskName)+" | "+Vt(r.type),3),J("pre",{"data-type":"html",innerHTML:r.content},null,8,mct)]))}}),Oc=_t(()=>ln.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),Rc=_t(()=>ln.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),pd=_t(()=>ln.value.filter(t=>t.mode==="skip"||t.mode==="todo"));_t(()=>ln.value.filter(t=>!Oc.value.includes(t)&&!Rc.value.includes(t)&&!pd.value.includes(t)));_t(()=>pd.value.filter(t=>t.mode==="skip"));const mm=_t(()=>ln.value.filter(Ei));_t(()=>pd.value.filter(t=>t.mode==="todo"));const bct=_t(()=>$c.value==="idle"),uu=_t(()=>Gb(ln.value)),Ub=_t(()=>uu.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="fail"})),jb=_t(()=>uu.value.filter(t=>{var e;return((e=t.result)==null?void 0:e.state)==="pass"})),Vb=_t(()=>uu.value.filter(t=>t.mode==="skip"||t.mode==="todo")),wct=_t(()=>Vb.value.filter(t=>t.mode==="skip")),xct=_t(()=>Vb.value.filter(t=>t.mode==="todo"));_t(()=>Ub.value.length+jb.value.length);const _ct=_t(()=>{const t=ln.value.reduce((e,r)=>{var o;return e+=Math.max(0,r.collectDuration||0),e+=Math.max(0,r.setupDuration||0),e+=Math.max(0,((o=r.result)==null?void 0:o.duration)||0),e+=Math.max(0,r.environmentLoad||0),e+=Math.max(0,r.prepareDuration||0),e},0);return t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`});function Sct(t){return t=t||[],Array.isArray(t)?t:[t]}function ym(t){return t.type==="test"||t.type==="custom"}function Gb(t){const e=[],r=Sct(t);for(const o of r)if(ym(o))e.push(o);else for(const s of o.tasks)if(ym(s))e.push(s);else{const c=Gb(s);for(const f of c)e.push(f)}return e}const kct={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Cct={key:1,p6:""},Tct=J("pre",{inline:""},"console.log(foo)",-1),Ect=fe({__name:"ViewConsoleOutput",setup(t){const e=_t(()=>{const o=qb.value;if(o){const s=sd(Ql.value);return o.map(({taskId:c,type:f,time:h,content:d})=>({taskId:c,type:f,time:h,content:s.toHtml(kl(d))}))}});function r(o){const s=o&&Oe.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?VT(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=yct;return(f=B(e))!=null&&f.length?(tt(),yt("div",kct,[(tt(!0),yt(ie,null,Rn(B(e),({taskId:h,type:d,time:g,content:v})=>(tt(),yt("div",{key:h,"font-mono":""},[It(c,{"task-name":r(h),type:d,time:g,content:v},null,8,["task-name","type","time","content"])]))),128))])):(tt(),yt("p",Cct,[he(" Log something in your test and it would print here. (e.g. "),Tct,he(") ")]))}}});var Kb={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(bo,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),h=/Edge\/(\d+)/.exec(r),d=c||f||h,g=d&&(c?document.documentMode||6:+(h||f)[1]),v=!h&&/WebKit\//.test(r),y=v&&/Qt\/\d+\.\d+/.test(r),w=!h&&/Chrome\/(\d+)/.exec(r),_=w&&+w[1],L=/Opera\//.test(r),M=/Apple Computer/.test(navigator.vendor),A=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),T=/PhantomJS/.test(r),E=M&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),P=/Android/.test(r),$=E||P||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),H=E||/Mac/.test(o),F=/\bCrOS\b/.test(r),ct=/win/i.test(o),ut=L&&r.match(/Version\/(\d*\.\d*)/);ut&&(ut=Number(ut[1])),ut&&ut>=15&&(L=!1,v=!0);var st=H&&(y||L&&(ut==null||ut<12.11)),X=s||d&&g>=9;function ft(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var rt=function(n,i){var a=n.className,l=ft(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 V(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function z(n,i){return V(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 p=0;p<i.length;++p)u.appendChild(i[p]);return u}function q(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var U;document.createRange?U=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}: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 Q(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 mt(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 Mt(n,i){var a=n.className;ft(i).test(a)||(n.className+=(a?" ":"")+i)}function Ht(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!ft(a[l]).test(i)&&(i+=" "+a[l]);return i}var Wt=function(n){n.select()};E?Wt=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:d&&(Wt=function(n){try{n.select()}catch{}});function re(n){return n.display.wrapper.ownerDocument}function ne(n){return Zt(n.display.wrapper)}function Zt(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Tt(n){return re(n).defaultView}function G(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function it(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 ht(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var p=l||0,m=u||0;;){var b=n.indexOf(" ",p);if(b<0||b>=i)return m+(i-p);m+=b-p,m+=a-m%a,p=b+1}}var Nt=function(){this.id=null,this.f=null,this.time=0,this.handler=G(this.onTimeout,this)};Nt.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},Nt.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 Et(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var Xt=50,O={toString:function(){return"CodeMirror.Pass"}},I={scroll:!1},K={origin:"*mouse"},ot={origin:"+move"};function nt(n,i,a){for(var l=0,u=0;;){var p=n.indexOf(" ",l);p==-1&&(p=n.length);var m=p-l;if(p==n.length||u+m>=i)return l+Math.min(m,i-u);if(u+=p-l,u+=a-u%a,l=p+1,u>=i)return l}}var vt=[""];function kt(n){for(;vt.length<=n;)vt.push(lt(vt)+" ");return vt[n]}function lt(n){return n[n.length-1]}function bt(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function dt(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function At(){}function zt(n,i){var a;return Object.create?a=Object.create(n):(At.prototype=n,a=new At),i&&it(i,a),a}var Ot=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function qt(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Ot.test(n))}function Ut(n,i){return i?i.source.indexOf("\\w")>-1&&qt(n)?!0:i.test(n):qt(n)}function pe(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var te=/[\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 ee(n){return n.charCodeAt(0)>=768&&te.test(n)}function ze(n,i,a){for(;(a<0?i>0:i<n.length)&&ee(n.charAt(i));)i+=a;return i}function Ke(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,p=l<0?Math.ceil(u):Math.floor(u);if(p==i)return n(p)?i:a;n(p)?a=p:i=p+l}}function Xn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,p=0;p<n.length;++p){var m=n[p];(m.from<a&&m.to>i||i==a&&m.to==i)&&(l(Math.max(m.from,i),Math.min(m.to,a),m.level==1?"rtl":"ltr",p),u=!0)}u||l(i,a,"ltr")}var Nn=null;function Yn(n,i,a){var l;Nn=null;for(var u=0;u<n.length;++u){var p=n[u];if(p.from<i&&p.to>i)return u;p.to==i&&(p.from!=p.to&&a=="before"?l=u:Nn=u),p.from==i&&(p.from!=p.to&&a!="before"?l=u:Nn=u)}return l??Nn}var Xe=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(S){return S<=247?n.charAt(S):1424<=S&&S<=1524?"R":1536<=S&&S<=1785?i.charAt(S-1536):1774<=S&&S<=2220?"r":8192<=S&&S<=8203?"w":S==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,p=/[LRr]/,m=/[Lb1n]/,b=/[1n]/;function x(S,N,D){this.level=S,this.from=N,this.to=D}return function(S,N){var D=N=="ltr"?"L":"R";if(S.length==0||N=="ltr"&&!l.test(S))return!1;for(var j=S.length,W=[],Z=0;Z<j;++Z)W.push(a(S.charCodeAt(Z)));for(var at=0,gt=D;at<j;++at){var wt=W[at];wt=="m"?W[at]=gt:gt=wt}for(var Ct=0,xt=D;Ct<j;++Ct){var Lt=W[Ct];Lt=="1"&&xt=="r"?W[Ct]="n":p.test(Lt)&&(xt=Lt,Lt=="r"&&(W[Ct]="R"))}for(var Dt=1,Pt=W[0];Dt<j-1;++Dt){var Jt=W[Dt];Jt=="+"&&Pt=="1"&&W[Dt+1]=="1"?W[Dt]="1":Jt==","&&Pt==W[Dt+1]&&(Pt=="1"||Pt=="n")&&(W[Dt]=Pt),Pt=Jt}for(var me=0;me<j;++me){var We=W[me];if(We==",")W[me]="N";else if(We=="%"){var _e=void 0;for(_e=me+1;_e<j&&W[_e]=="%";++_e);for(var Cn=me&&W[me-1]=="!"||_e<j&&W[_e]=="1"?"1":"N",dn=me;dn<_e;++dn)W[dn]=Cn;me=_e-1}}for(var Me=0,pn=D;Me<j;++Me){var je=W[Me];pn=="L"&&je=="1"?W[Me]="L":p.test(je)&&(pn=je)}for(var Ie=0;Ie<j;++Ie)if(u.test(W[Ie])){var Ne=void 0;for(Ne=Ie+1;Ne<j&&u.test(W[Ne]);++Ne);for(var Ee=(Ie?W[Ie-1]:D)=="L",gn=(Ne<j?W[Ne]:D)=="L",Xo=Ee==gn?Ee?"L":"R":D,hi=Ie;hi<Ne;++hi)W[hi]=Xo;Ie=Ne-1}for(var Qe=[],wr,Ue=0;Ue<j;)if(m.test(W[Ue])){var af=Ue;for(++Ue;Ue<j&&m.test(W[Ue]);++Ue);Qe.push(new x(0,af,Ue))}else{var qr=Ue,no=Qe.length,ro=N=="rtl"?1:0;for(++Ue;Ue<j&&W[Ue]!="L";++Ue);for(var nn=qr;nn<Ue;)if(b.test(W[nn])){qr<nn&&(Qe.splice(no,0,new x(1,qr,nn)),no+=ro);var Yo=nn;for(++nn;nn<Ue&&b.test(W[nn]);++nn);Qe.splice(no,0,new x(2,Yo,nn)),no+=ro,qr=nn}else++nn;qr<Ue&&Qe.splice(no,0,new x(1,qr,Ue))}return N=="ltr"&&(Qe[0].level==1&&(wr=S.match(/^\s+/))&&(Qe[0].from=wr[0].length,Qe.unshift(new x(0,0,wr[0].length))),lt(Qe).level==1&&(wr=S.match(/\s+$/))&&(lt(Qe).to-=wr[0].length,Qe.push(new x(0,j-wr[0].length,j)))),N=="rtl"?Qe.reverse():Qe}}();function Bt(n,i){var a=n.order;return a==null&&(a=n.order=Xe(n.text,i)),a}var Vi=[],Rt=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]||Vi).concat(a)}};function Or(n,i){return n._handlers&&n._handlers[i]||Vi}function Ye(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 p=Et(u,a);p>-1&&(l[i]=u.slice(0,p).concat(u.slice(p+1)))}}}function ke(n,i){var a=Or(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 Ce(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),ke(n,a||i.type,n,i),cn(i)||i.codemirrorIgnore}function Fn(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)Et(a,i[l])==-1&&a.push(i[l])}function Sn(n,i){return Or(n,i).length>0}function Zn(n){n.prototype.on=function(i,a){Rt(this,i,a)},n.prototype.off=function(i,a){Ye(this,i,a)}}function Ze(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function ko(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function cn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function ti(n){Ze(n),ko(n)}function ks(n){return n.target||n.srcElement}function Jn(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),H&&n.ctrlKey&&i==1&&(i=3),i}var pu=function(){if(d&&g<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),Co;function ra(n){if(Co==null){var i=k("span","");z(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Co=i.offsetWidth<=1&&i.offsetHeight>2&&!(d&&g<8))}var a=Co?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Cs;function ei(n){if(Cs!=null)return Cs;var i=z(n,document.createTextNode("AخA")),a=U(i,0,1).getBoundingClientRect(),l=U(i,1,2).getBoundingClientRect();return V(n),!a||a.left==a.right?!1:Cs=l.right-a.right<3}var Hn=`
|
|
26
|
+
|
|
27
|
+
b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
|
|
28
|
+
`,i);u==-1&&(u=n.length);var p=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),m=p.indexOf("\r");m!=-1?(a.push(p.slice(0,m)),i+=m+1):(a.push(p),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},ni=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},ia=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),Qn=null;function gu(n){if(Qn!=null)return Qn;var i=z(n,k("span","x")),a=i.getBoundingClientRect(),l=U(i,0,1).getBoundingClientRect();return Qn=Math.abs(a.left-l.left)>1}var To={},tr={};function er(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),To[n]=i}function Gi(n,i){tr[n]=i}function Eo(n){if(typeof n=="string"&&tr.hasOwnProperty(n))n=tr[n];else if(n&&typeof n.name=="string"&&tr.hasOwnProperty(n.name)){var i=tr[n.name];typeof i=="string"&&(i={name:i}),n=zt(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Eo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Eo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Lo(n,i){i=Eo(i);var a=To[i.name];if(!a)return Lo(n,"text/plain");var l=a(n,i);if(ri.hasOwnProperty(i.name)){var u=ri[i.name];for(var p in u)u.hasOwnProperty(p)&&(l.hasOwnProperty(p)&&(l["_"+p]=l[p]),l[p]=u[p])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var m in i.modeProps)l[m]=i.modeProps[m];return l}var ri={};function Ao(n,i){var a=ri.hasOwnProperty(n)?ri[n]:ri[n]={};it(i,a)}function vr(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 Ts(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 Mo(n,i,a){return n.startState?n.startState(i,a):!0}var Te=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};Te.prototype.eol=function(){return this.pos>=this.string.length},Te.prototype.sol=function(){return this.pos==this.lineStart},Te.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Te.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Te.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},Te.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},Te.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},Te.prototype.skipToEnd=function(){this.pos=this.string.length},Te.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},Te.prototype.backUp=function(n){this.pos-=n},Te.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ht(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ht(this.string,this.lineStart,this.tabSize):0)},Te.prototype.indentation=function(){return ht(this.string,null,this.tabSize)-(this.lineStart?ht(this.string,this.lineStart,this.tabSize):0)},Te.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(m){return a?m.toLowerCase():m},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var p=this.string.slice(this.pos).match(n);return p&&p.index>0?null:(p&&i!==!1&&(this.pos+=p[0].length),p)}},Te.prototype.current=function(){return this.string.slice(this.start,this.pos)},Te.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},Te.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},Te.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function $t(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],p=u.chunkSize();if(i<p){a=u;break}i-=p}return a.lines[i]}function Rr(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(p){var m=p.text;u==a.line&&(m=m.slice(0,a.ch)),u==i.line&&(m=m.slice(i.ch)),l.push(m),++u}),l}function Es(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function $n(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function C(n){if(n.parent==null)return null;for(var i=n.parent,a=Et(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 R(n,i){var a=n.first;t:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],p=u.height;if(i<p){n=u;continue t}i-=p,a+=u.chunkSize()}return a}while(!n.lines);for(var m=0;m<n.lines.length;++m){var b=n.lines[m],x=b.height;if(i<x)break;i-=x}return a+m}function et(n,i){return i>=n.first&&i<n.first+n.size}function pt(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function Y(n,i,a){if(a===void 0&&(a=null),!(this instanceof Y))return new Y(n,i,a);this.line=n,this.ch=i,this.sticky=a}function St(n,i){return n.line-i.line||n.ch-i.ch}function ae(n,i){return n.sticky==i.sticky&&St(n,i)==0}function Fe(n){return Y(n.line,n.ch)}function un(n,i){return St(n,i)<0?i:n}function No(n,i){return St(n,i)<0?n:i}function Ed(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function jt(n,i){if(i.line<n.first)return Y(n.first,0);var a=n.first+n.size-1;return i.line>a?Y(a,$t(n,a).text.length):zw(i,$t(n,i.line).text.length)}function zw(n,i){var a=n.ch;return a==null||a>i?Y(n.line,i):a<0?Y(n.line,0):n}function Ld(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=jt(n,i[l]);return a}var oa=function(n,i){this.state=n,this.lookAhead=i},mr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};mr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},mr.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}},mr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mr.fromSaved=function(n,i,a){return i instanceof oa?new mr(n,vr(n.mode,i.state),a,i.lookAhead):new mr(n,vr(n.mode,i),a)},mr.prototype.save=function(n){var i=n!==!1?vr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new oa(i,this.maxLookAhead):i};function Ad(n,i,a,l){var u=[n.state.modeGen],p={};Rd(n,i.text,n.doc.mode,a,function(S,N){return u.push(S,N)},p,l);for(var m=a.state,b=function(S){a.baseTokens=u;var N=n.state.overlays[S],D=1,j=0;a.state=!0,Rd(n,i.text,N.mode,a,function(W,Z){for(var at=D;j<W;){var gt=u[D];gt>W&&u.splice(D,1,W,u[D+1],gt),D+=2,j=Math.min(W,gt)}if(Z)if(N.opaque)u.splice(at,D-at,W,"overlay "+Z),D=at+2;else for(;at<D;at+=2){var wt=u[at+1];u[at+1]=(wt?wt+" ":"")+"overlay "+Z}},p),a.state=m,a.baseTokens=null,a.baseTokenPos=1},x=0;x<n.state.overlays.length;++x)b(x);return{styles:u,classes:p.bgClass||p.textClass?p:null}}function Md(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=Ls(n,C(i)),u=i.text.length>n.options.maxHighlightLength&&vr(n.doc.mode,l.state),p=Ad(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=p.styles,p.classes?i.styleClasses=p.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 Ls(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new mr(l,!0,i);var p=Iw(n,i,a),m=p>l.first&&$t(l,p-1).stateAfter,b=m?mr.fromSaved(l,m,p):new mr(l,Mo(l.mode),p);return l.iter(p,i,function(x){vu(n,x.text,b);var S=b.line;x.stateAfter=S==i-1||S%5==0||S>=u.viewFrom&&S<u.viewTo?b.save():null,b.nextLine()}),a&&(l.modeFrontier=b.line),b}function vu(n,i,a,l){var u=n.doc.mode,p=new Te(i,n.options.tabSize,a);for(p.start=p.pos=l||0,i==""&&Nd(u,a.state);!p.eol();)mu(u,p,a.state),p.start=p.pos}function Nd(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Ts(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function mu(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Ts(n,a).mode);var p=n.token(i,a);if(i.pos>i.start)return p}throw new Error("Mode "+n.name+" failed to advance stream.")}var $d=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function Pd(n,i,a,l){var u=n.doc,p=u.mode,m;i=jt(u,i);var b=$t(u,i.line),x=Ls(n,i.line,a),S=new Te(b.text,n.options.tabSize,x),N;for(l&&(N=[]);(l||S.pos<i.ch)&&!S.eol();)S.start=S.pos,m=mu(p,S,x.state),l&&N.push(new $d(S,m,vr(u.mode,x.state)));return l?N:new $d(S,m,x.state)}function Od(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 Rd(n,i,a,l,u,p,m){var b=a.flattenSpans;b==null&&(b=n.options.flattenSpans);var x=0,S=null,N=new Te(i,n.options.tabSize,l),D,j=n.options.addModeClass&&[null];for(i==""&&Od(Nd(a,l.state),p);!N.eol();){if(N.pos>n.options.maxHighlightLength?(b=!1,m&&vu(n,i,l,N.pos),N.pos=i.length,D=null):D=Od(mu(a,N,l.state,j),p),j){var W=j[0].name;W&&(D="m-"+(D?W+" "+D:W))}if(!b||S!=D){for(;x<N.start;)x=Math.min(N.start,x+5e3),u(x,S);S=D}N.start=N.pos}for(;x<N.pos;){var Z=Math.min(N.pos,x+5e3);u(Z,S),x=Z}}function Iw(n,i,a){for(var l,u,p=n.doc,m=a?-1:i-(n.doc.mode.innerMode?1e3:100),b=i;b>m;--b){if(b<=p.first)return p.first;var x=$t(p,b-1),S=x.stateAfter;if(S&&(!a||b+(S instanceof oa?S.lookAhead:0)<=p.modeFrontier))return b;var N=ht(x.text,null,n.options.tabSize);(u==null||l>N)&&(u=b-1,l=N)}return u}function Fw(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=$t(n,l).stateAfter;if(u&&(!(u instanceof oa)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var Dd=!1,Dr=!1;function Hw(){Dd=!0}function qw(){Dr=!0}function sa(n,i,a){this.marker=n,this.from=i,this.to=a}function As(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function Bw(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function Ww(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 Uw(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var p=n[u],m=p.marker,b=p.from==null||(m.inclusiveLeft?p.from<=i:p.from<i);if(b||p.from==i&&m.type=="bookmark"&&(!a||!p.marker.insertLeft)){var x=p.to==null||(m.inclusiveRight?p.to>=i:p.to>i);(l||(l=[])).push(new sa(m,p.from,x?null:p.to))}}return l}function jw(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var p=n[u],m=p.marker,b=p.to==null||(m.inclusiveRight?p.to>=i:p.to>i);if(b||p.from==i&&m.type=="bookmark"&&(!a||p.marker.insertLeft)){var x=p.from==null||(m.inclusiveLeft?p.from<=i:p.from<i);(l||(l=[])).push(new sa(m,x?null:p.from-i,p.to==null?null:p.to-i))}}return l}function yu(n,i){if(i.full)return null;var a=et(n,i.from.line)&&$t(n,i.from.line).markedSpans,l=et(n,i.to.line)&&$t(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,p=i.to.ch,m=St(i.from,i.to)==0,b=Uw(a,u,m),x=jw(l,p,m),S=i.text.length==1,N=lt(i.text).length+(S?u:0);if(b)for(var D=0;D<b.length;++D){var j=b[D];if(j.to==null){var W=As(x,j.marker);W?S&&(j.to=W.to==null?null:W.to+N):j.to=u}}if(x)for(var Z=0;Z<x.length;++Z){var at=x[Z];if(at.to!=null&&(at.to+=N),at.from==null){var gt=As(b,at.marker);gt||(at.from=N,S&&(b||(b=[])).push(at))}else at.from+=N,S&&(b||(b=[])).push(at)}b&&(b=zd(b)),x&&x!=b&&(x=zd(x));var wt=[b];if(!S){var Ct=i.text.length-2,xt;if(Ct>0&&b)for(var Lt=0;Lt<b.length;++Lt)b[Lt].to==null&&(xt||(xt=[])).push(new sa(b[Lt].marker,null,null));for(var Dt=0;Dt<Ct;++Dt)wt.push(xt);wt.push(x)}return wt}function zd(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 Vw(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(W){if(W.markedSpans)for(var Z=0;Z<W.markedSpans.length;++Z){var at=W.markedSpans[Z].marker;at.readOnly&&(!l||Et(l,at)==-1)&&(l||(l=[])).push(at)}}),!l)return null;for(var u=[{from:i,to:a}],p=0;p<l.length;++p)for(var m=l[p],b=m.find(0),x=0;x<u.length;++x){var S=u[x];if(!(St(S.to,b.from)<0||St(S.from,b.to)>0)){var N=[x,1],D=St(S.from,b.from),j=St(S.to,b.to);(D<0||!m.inclusiveLeft&&!D)&&N.push({from:S.from,to:b.from}),(j>0||!m.inclusiveRight&&!j)&&N.push({from:b.to,to:S.to}),u.splice.apply(u,N),x+=N.length-3}}return u}function Id(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function Fd(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function la(n){return n.inclusiveLeft?-1:0}function aa(n){return n.inclusiveRight?1:0}function bu(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),p=St(l.from,u.from)||la(n)-la(i);if(p)return-p;var m=St(l.to,u.to)||aa(n)-aa(i);return m||i.id-n.id}function Hd(n,i){var a=Dr&&n.markedSpans,l;if(a)for(var u=void 0,p=0;p<a.length;++p)u=a[p],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||bu(l,u.marker)<0)&&(l=u.marker);return l}function qd(n){return Hd(n,!0)}function ca(n){return Hd(n,!1)}function Gw(n,i){var a=Dr&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var p=a[u];p.marker.collapsed&&(p.from==null||p.from<i)&&(p.to==null||p.to>i)&&(!l||bu(l,p.marker)<0)&&(l=p.marker)}return l}function Bd(n,i,a,l,u){var p=$t(n,i),m=Dr&&p.markedSpans;if(m)for(var b=0;b<m.length;++b){var x=m[b];if(x.marker.collapsed){var S=x.marker.find(0),N=St(S.from,a)||la(x.marker)-la(u),D=St(S.to,l)||aa(x.marker)-aa(u);if(!(N>=0&&D<=0||N<=0&&D>=0)&&(N<=0&&(x.marker.inclusiveRight&&u.inclusiveLeft?St(S.to,a)>=0:St(S.to,a)>0)||N>=0&&(x.marker.inclusiveRight&&u.inclusiveLeft?St(S.from,l)<=0:St(S.from,l)<0)))return!0}}}function nr(n){for(var i;i=qd(n);)n=i.find(-1,!0).line;return n}function Kw(n){for(var i;i=ca(n);)n=i.find(1,!0).line;return n}function Xw(n){for(var i,a;i=ca(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function wu(n,i){var a=$t(n,i),l=nr(a);return a==l?i:C(l)}function Wd(n,i){if(i>n.lastLine())return i;var a=$t(n,i),l;if(!ii(n,a))return i;for(;l=ca(a);)a=l.find(1,!0).line;return C(a)+1}function ii(n,i){var a=Dr&&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&&xu(n,i,l))return!0}}}function xu(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return xu(n,l.line,As(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,p=0;p<i.markedSpans.length;++p)if(u=i.markedSpans[p],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&xu(n,i,u))return!0}function zr(n){n=nr(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 p=a.parent;p;a=p,p=a.parent)for(var m=0;m<p.children.length;++m){var b=p.children[m];if(b==a)break;i+=b.height}return i}function ua(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=qd(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=ca(l);){var p=a.find(0,!0);i-=l.text.length-p.from.ch,l=p.to.line,i+=l.text.length-p.to.ch}return i}function _u(n){var i=n.display,a=n.doc;i.maxLine=$t(a,a.first),i.maxLineLength=ua(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=ua(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var $o=function(n,i,a){this.text=n,Fd(this,i),this.height=a?a(this):1};$o.prototype.lineNo=function(){return C(this)},Zn($o);function Yw(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Id(n),Fd(n,a);var u=l?l(n):1;u!=n.height&&$n(n,u)}function Zw(n){n.parent=null,Id(n)}var Jw={},Qw={};function Ud(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?Qw:Jw;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function jd(n,i){var a=q("span",null,null,v?"padding-right: .1px":null),l={pre:q("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 p=u?i.rest[u-1]:i.line,m=void 0;l.pos=0,l.addToken=e1,ei(n.display.measure)&&(m=Bt(p,n.doc.direction))&&(l.addToken=r1(l.addToken,m)),l.map=[];var b=i!=n.display.externalMeasured&&C(p);i1(p,l,Md(n,p,b)),p.styleClasses&&(p.styleClasses.bgClass&&(l.bgClass=Ht(p.styleClasses.bgClass,l.bgClass||"")),p.styleClasses.textClass&&(l.textClass=Ht(p.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(ra(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var x=l.content.lastChild;(/\bcm-tab\b/.test(x.className)||x.querySelector&&x.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return ke(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Ht(l.pre.className,l.textClass||"")),l}function t1(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function e1(n,i,a,l,u,p,m){if(i){var b=n.splitSpaces?n1(i,n.trailingSpace):i,x=n.cm.state.specialChars,S=!1,N;if(!x.test(i))n.col+=i.length,N=document.createTextNode(b),n.map.push(n.pos,n.pos+i.length,N),d&&g<9&&(S=!0),n.pos+=i.length;else{N=document.createDocumentFragment();for(var D=0;;){x.lastIndex=D;var j=x.exec(i),W=j?j.index-D:i.length-D;if(W){var Z=document.createTextNode(b.slice(D,D+W));d&&g<9?N.appendChild(k("span",[Z])):N.appendChild(Z),n.map.push(n.pos,n.pos+W,Z),n.col+=W,n.pos+=W}if(!j)break;D+=W+1;var at=void 0;if(j[0]==" "){var gt=n.cm.options.tabSize,wt=gt-n.col%gt;at=N.appendChild(k("span",kt(wt),"cm-tab")),at.setAttribute("role","presentation"),at.setAttribute("cm-text"," "),n.col+=wt}else j[0]=="\r"||j[0]==`
|
|
29
|
+
`?(at=N.appendChild(k("span",j[0]=="\r"?"␍":"","cm-invalidchar")),at.setAttribute("cm-text",j[0]),n.col+=1):(at=n.cm.options.specialCharPlaceholder(j[0]),at.setAttribute("cm-text",j[0]),d&&g<9?N.appendChild(k("span",[at])):N.appendChild(at),n.col+=1);n.map.push(n.pos,n.pos+1,at),n.pos++}}if(n.trailingSpace=b.charCodeAt(i.length-1)==32,a||l||u||S||p||m){var Ct=a||"";l&&(Ct+=l),u&&(Ct+=u);var xt=k("span",[N],Ct,p);if(m)for(var Lt in m)m.hasOwnProperty(Lt)&&Lt!="style"&&Lt!="class"&&xt.setAttribute(Lt,m[Lt]);return n.content.appendChild(xt)}n.content.appendChild(N)}}function n1(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var p=n.charAt(u);p==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(p=" "),l+=p,a=p==" "}return l}function r1(n,i){return function(a,l,u,p,m,b,x){u=u?u+" cm-force-border":"cm-force-border";for(var S=a.pos,N=S+l.length;;){for(var D=void 0,j=0;j<i.length&&(D=i[j],!(D.to>S&&D.from<=S));j++);if(D.to>=N)return n(a,l,u,p,m,b,x);n(a,l.slice(0,D.to-S),u,p,null,b,x),p=null,l=l.slice(D.to-S),S=D.to}}}function Vd(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 i1(n,i,a){var l=n.markedSpans,u=n.text,p=0;if(!l){for(var m=1;m<a.length;m+=2)i.addToken(i,u.slice(p,p=a[m]),Ud(a[m+1],i.cm.options));return}for(var b=u.length,x=0,S=1,N="",D,j,W=0,Z,at,gt,wt,Ct;;){if(W==x){Z=at=gt=j="",Ct=null,wt=null,W=1/0;for(var xt=[],Lt=void 0,Dt=0;Dt<l.length;++Dt){var Pt=l[Dt],Jt=Pt.marker;if(Jt.type=="bookmark"&&Pt.from==x&&Jt.widgetNode)xt.push(Jt);else if(Pt.from<=x&&(Pt.to==null||Pt.to>x||Jt.collapsed&&Pt.to==x&&Pt.from==x)){if(Pt.to!=null&&Pt.to!=x&&W>Pt.to&&(W=Pt.to,at=""),Jt.className&&(Z+=" "+Jt.className),Jt.css&&(j=(j?j+";":"")+Jt.css),Jt.startStyle&&Pt.from==x&&(gt+=" "+Jt.startStyle),Jt.endStyle&&Pt.to==W&&(Lt||(Lt=[])).push(Jt.endStyle,Pt.to),Jt.title&&((Ct||(Ct={})).title=Jt.title),Jt.attributes)for(var me in Jt.attributes)(Ct||(Ct={}))[me]=Jt.attributes[me];Jt.collapsed&&(!wt||bu(wt.marker,Jt)<0)&&(wt=Pt)}else Pt.from>x&&W>Pt.from&&(W=Pt.from)}if(Lt)for(var We=0;We<Lt.length;We+=2)Lt[We+1]==W&&(at+=" "+Lt[We]);if(!wt||wt.from==x)for(var _e=0;_e<xt.length;++_e)Vd(i,0,xt[_e]);if(wt&&(wt.from||0)==x){if(Vd(i,(wt.to==null?b+1:wt.to)-x,wt.marker,wt.from==null),wt.to==null)return;wt.to==x&&(wt=!1)}}if(x>=b)break;for(var Cn=Math.min(b,W);;){if(N){var dn=x+N.length;if(!wt){var Me=dn>Cn?N.slice(0,Cn-x):N;i.addToken(i,Me,D?D+Z:Z,gt,x+Me.length==W?at:"",j,Ct)}if(dn>=Cn){N=N.slice(Cn-x),x=Cn;break}x=dn,gt=""}N=u.slice(p,p=a[S++]),D=Ud(a[S++],i.cm.options)}}}function Gd(n,i,a){this.line=i,this.rest=Xw(i),this.size=this.rest?C(lt(this.rest))-a+1:1,this.node=this.text=null,this.hidden=ii(n,i)}function fa(n,i,a){for(var l=[],u,p=i;p<a;p=u){var m=new Gd(n.doc,$t(n.doc,p),p);u=p+m.size,l.push(m)}return l}var Po=null;function o1(n){Po?Po.ops.push(n):n.ownsGroup=Po={ops:[n],delayedCallbacks:[]}}function s1(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 l1(n,i){var a=n.ownsGroup;if(a)try{s1(a)}finally{Po=null,i(a)}}var Ms=null;function He(n,i){var a=Or(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Po?u=Po.delayedCallbacks:Ms?u=Ms:(u=Ms=[],setTimeout(a1,0));for(var p=function(b){u.push(function(){return a[b].apply(null,l)})},m=0;m<a.length;++m)p(m)}}function a1(){var n=Ms;Ms=null;for(var i=0;i<n.length;++i)n[i]()}function Kd(n,i,a,l){for(var u=0;u<i.changes.length;u++){var p=i.changes[u];p=="text"?u1(n,i):p=="gutter"?Yd(n,i,a,l):p=="class"?Su(n,i):p=="widget"&&f1(n,i,l)}i.changes=null}function Ns(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),d&&g<8&&(n.node.style.zIndex=2)),n.node}function c1(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=Ns(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Xd(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):jd(n,i)}function u1(n,i){var a=i.text.className,l=Xd(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,Su(n,i)):a&&(i.text.className=a)}function Su(n,i){c1(n,i),i.line.wrapClass?Ns(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 Yd(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=Ns(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 p=i.line.gutterMarkers;if(n.options.lineNumbers||p){var m=Ns(i),b=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(b.setAttribute("aria-hidden","true"),n.display.input.setUneditable(b),m.insertBefore(b,i.text),i.line.gutterClass&&(b.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!p||!p["CodeMirror-linenumbers"])&&(i.lineNumber=b.appendChild(k("div",pt(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),p)for(var x=0;x<n.display.gutterSpecs.length;++x){var S=n.display.gutterSpecs[x].className,N=p.hasOwnProperty(S)&&p[S];N&&b.appendChild(k("div",[N],"CodeMirror-gutter-elt","left: "+l.gutterLeft[S]+"px; width: "+l.gutterWidth[S]+"px"))}}}function f1(n,i,a){i.alignable&&(i.alignable=null);for(var l=ft("CodeMirror-linewidget"),u=i.node.firstChild,p=void 0;u;u=p)p=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Zd(n,i,a)}function h1(n,i,a,l){var u=Xd(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),Su(n,i),Yd(n,i,a,l),Zd(n,i,l),i.node}function Zd(n,i,a){if(Jd(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Jd(n,i.rest[l],i,a,!1)}function Jd(n,i,a,l,u){if(i.widgets)for(var p=Ns(a),m=0,b=i.widgets;m<b.length;++m){var x=b[m],S=k("div",[x.node],"CodeMirror-linewidget"+(x.className?" "+x.className:""));x.handleMouseEvents||S.setAttribute("cm-ignore-events","true"),d1(x,S,a,l),n.display.input.setUneditable(S),u&&x.above?p.insertBefore(S,a.gutter||a.text):p.appendChild(S),He(x,"redraw")}}function d1(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 $s(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!Q(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;"),z(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function Ir(n,i){for(var a=ks(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 ha(n){return n.lineSpace.offsetTop}function ku(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Qd(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=z(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 yr(n){return Xt-n.display.nativeBarWidth}function Ki(n){return n.display.scroller.clientWidth-yr(n)-n.display.barWidth}function Cu(n){return n.display.scroller.clientHeight-yr(n)-n.display.barHeight}function p1(n,i,a){var l=n.options.lineWrapping,u=l&&Ki(n);if(!i.measure.heights||l&&i.measure.width!=u){var p=i.measure.heights=[];if(l){i.measure.width=u;for(var m=i.text.firstChild.getClientRects(),b=0;b<m.length-1;b++){var x=m[b],S=m[b+1];Math.abs(x.bottom-S.bottom)>2&&p.push((x.bottom+S.top)/2-a.top)}}p.push(a.bottom-a.top)}}function tp(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var u=0;u<n.rest.length;u++)if(C(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function g1(n,i){i=nr(i);var a=C(i),l=n.display.externalMeasured=new Gd(n.doc,i,a);l.lineN=a;var u=l.built=jd(n,l);return l.text=u.pre,z(n.display.lineMeasure,u.pre),l}function ep(n,i,a,l){return br(n,Oo(n,i),a,l)}function Tu(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[Zi(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Oo(n,i){var a=C(i),l=Tu(n,a);l&&!l.text?l=null:l&&l.changes&&(Kd(n,l,a,Nu(n)),n.curOp.forceUpdate=!0),l||(l=g1(n,i));var u=tp(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function br(n,i,a,l,u){i.before&&(a=-1);var p=a+(l||""),m;return i.cache.hasOwnProperty(p)?m=i.cache[p]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(p1(n,i.view,i.rect),i.hasHeights=!0),m=m1(n,i,a,l),m.bogus||(i.cache[p]=m)),{left:m.left,right:m.right,top:u?m.rtop:m.top,bottom:u?m.rbottom:m.bottom}}var np={left:0,right:0,top:0,bottom:0};function rp(n,i,a){for(var l,u,p,m,b,x,S=0;S<n.length;S+=3)if(b=n[S],x=n[S+1],i<b?(u=0,p=1,m="left"):i<x?(u=i-b,p=u+1):(S==n.length-3||i==x&&n[S+3]>i)&&(p=x-b,u=p-1,i>=x&&(m="right")),u!=null){if(l=n[S+2],b==x&&a==(l.insertLeft?"left":"right")&&(m=a),a=="left"&&u==0)for(;S&&n[S-2]==n[S-3]&&n[S-1].insertLeft;)l=n[(S-=3)+2],m="left";if(a=="right"&&u==x-b)for(;S<n.length-3&&n[S+3]==n[S+4]&&!n[S+5].insertLeft;)l=n[(S+=3)+2],m="right";break}return{node:l,start:u,end:p,collapse:m,coverStart:b,coverEnd:x}}function v1(n,i){var a=np;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 m1(n,i,a,l){var u=rp(i.map,a,l),p=u.node,m=u.start,b=u.end,x=u.collapse,S;if(p.nodeType==3){for(var N=0;N<4;N++){for(;m&&ee(i.line.text.charAt(u.coverStart+m));)--m;for(;u.coverStart+b<u.coverEnd&&ee(i.line.text.charAt(u.coverStart+b));)++b;if(d&&g<9&&m==0&&b==u.coverEnd-u.coverStart?S=p.parentNode.getBoundingClientRect():S=v1(U(p,m,b).getClientRects(),l),S.left||S.right||m==0)break;b=m,m=m-1,x="right"}d&&g<11&&(S=y1(n.display.measure,S))}else{m>0&&(x=l="right");var D;n.options.lineWrapping&&(D=p.getClientRects()).length>1?S=D[l=="right"?D.length-1:0]:S=p.getBoundingClientRect()}if(d&&g<9&&!m&&(!S||!S.left&&!S.right)){var j=p.parentNode.getClientRects()[0];j?S={left:j.left,right:j.left+Do(n.display),top:j.top,bottom:j.bottom}:S=np}for(var W=S.top-i.rect.top,Z=S.bottom-i.rect.top,at=(W+Z)/2,gt=i.view.measure.heights,wt=0;wt<gt.length-1&&!(at<gt[wt]);wt++);var Ct=wt?gt[wt-1]:0,xt=gt[wt],Lt={left:(x=="right"?S.right:S.left)-i.rect.left,right:(x=="left"?S.left:S.right)-i.rect.left,top:Ct,bottom:xt};return!S.left&&!S.right&&(Lt.bogus=!0),n.options.singleCursorHeightPerLine||(Lt.rtop=W,Lt.rbottom=Z),Lt}function y1(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!gu(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 ip(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 op(n){n.display.externalMeasure=null,V(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)ip(n.display.view[i])}function Ps(n){op(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function sp(n){return w&&P?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function lp(n){return w&&P?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function Eu(n){var i=nr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=$s(a[u]));return l}function da(n,i,a,l,u){if(!u){var p=Eu(i);a.top+=p,a.bottom+=p}if(l=="line")return a;l||(l="local");var m=zr(i);if(l=="local"?m+=ha(n.display):m-=n.display.viewOffset,l=="page"||l=="window"){var b=n.display.lineSpace.getBoundingClientRect();m+=b.top+(l=="window"?0:lp(re(n)));var x=b.left+(l=="window"?0:sp(re(n)));a.left+=x,a.right+=x}return a.top+=m,a.bottom+=m,a}function ap(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=sp(re(n)),u-=lp(re(n));else if(a=="local"||!a){var p=n.display.sizer.getBoundingClientRect();l+=p.left,u+=p.top}var m=n.display.lineSpace.getBoundingClientRect();return{left:l-m.left,top:u-m.top}}function pa(n,i,a,l,u){return l||(l=$t(n.doc,i.line)),da(n,l,ep(n,l,i.ch,u),a)}function rr(n,i,a,l,u,p){l=l||$t(n.doc,i.line),u||(u=Oo(n,l));function m(Z,at){var gt=br(n,u,Z,at?"right":"left",p);return at?gt.left=gt.right:gt.right=gt.left,da(n,l,gt,a)}var b=Bt(l,n.doc.direction),x=i.ch,S=i.sticky;if(x>=l.text.length?(x=l.text.length,S="before"):x<=0&&(x=0,S="after"),!b)return m(S=="before"?x-1:x,S=="before");function N(Z,at,gt){var wt=b[at],Ct=wt.level==1;return m(gt?Z-1:Z,Ct!=gt)}var D=Yn(b,x,S),j=Nn,W=N(x,D,S=="before");return j!=null&&(W.other=N(x,j,S!="before")),W}function cp(n,i){var a=0;i=jt(n.doc,i),n.options.lineWrapping||(a=Do(n.display)*i.ch);var l=$t(n.doc,i.line),u=zr(l)+ha(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function Lu(n,i,a,l,u){var p=Y(n,i,a);return p.xRel=u,l&&(p.outside=l),p}function Au(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return Lu(l.first,0,null,-1,-1);var u=R(l,a),p=l.first+l.size-1;if(u>p)return Lu(l.first+l.size-1,$t(l,p).text.length,null,1,1);i<0&&(i=0);for(var m=$t(l,u);;){var b=b1(n,m,u,i,a),x=Gw(m,b.ch+(b.xRel>0||b.outside>0?1:0));if(!x)return b;var S=x.find(1);if(S.line==u)return S;m=$t(l,u=S.line)}}function up(n,i,a,l){l-=Eu(i);var u=i.text.length,p=Ke(function(m){return br(n,a,m-1).bottom<=l},u,0);return u=Ke(function(m){return br(n,a,m).top>l},p,u),{begin:p,end:u}}function fp(n,i,a,l){a||(a=Oo(n,i));var u=da(n,i,br(n,a,l),"line").top;return up(n,i,a,u)}function Mu(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function b1(n,i,a,l,u){u-=zr(i);var p=Oo(n,i),m=Eu(i),b=0,x=i.text.length,S=!0,N=Bt(i,n.doc.direction);if(N){var D=(n.options.lineWrapping?x1:w1)(n,i,a,p,N,l,u);S=D.level!=1,b=S?D.from:D.to-1,x=S?D.to:D.from-1}var j=null,W=null,Z=Ke(function(Dt){var Pt=br(n,p,Dt);return Pt.top+=m,Pt.bottom+=m,Mu(Pt,l,u,!1)?(Pt.top<=u&&Pt.left<=l&&(j=Dt,W=Pt),!0):!1},b,x),at,gt,wt=!1;if(W){var Ct=l-W.left<W.right-l,xt=Ct==S;Z=j+(xt?0:1),gt=xt?"after":"before",at=Ct?W.left:W.right}else{!S&&(Z==x||Z==b)&&Z++,gt=Z==0?"after":Z==i.text.length?"before":br(n,p,Z-(S?1:0)).bottom+m<=u==S?"after":"before";var Lt=rr(n,Y(a,Z,gt),"line",i,p);at=Lt.left,wt=u<Lt.top?-1:u>=Lt.bottom?1:0}return Z=ze(i.text,Z,1),Lu(a,Z,gt,wt,l-at)}function w1(n,i,a,l,u,p,m){var b=Ke(function(D){var j=u[D],W=j.level!=1;return Mu(rr(n,Y(a,W?j.to:j.from,W?"before":"after"),"line",i,l),p,m,!0)},0,u.length-1),x=u[b];if(b>0){var S=x.level!=1,N=rr(n,Y(a,S?x.from:x.to,S?"after":"before"),"line",i,l);Mu(N,p,m,!0)&&N.top>m&&(x=u[b-1])}return x}function x1(n,i,a,l,u,p,m){var b=up(n,i,l,m),x=b.begin,S=b.end;/\s/.test(i.text.charAt(S-1))&&S--;for(var N=null,D=null,j=0;j<u.length;j++){var W=u[j];if(!(W.from>=S||W.to<=x)){var Z=W.level!=1,at=br(n,l,Z?Math.min(S,W.to)-1:Math.max(x,W.from)).right,gt=at<p?p-at+1e9:at-p;(!N||D>gt)&&(N=W,D=gt)}}return N||(N=u[u.length-1]),N.from<x&&(N={from:x,to:N.to,level:N.level}),N.to>S&&(N={from:N.from,to:S,level:N.level}),N}var Xi;function Ro(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(Xi==null){Xi=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Xi.appendChild(document.createTextNode("x")),Xi.appendChild(k("br"));Xi.appendChild(document.createTextNode("x"))}z(n.measure,Xi);var a=Xi.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),V(n.measure),a||1}function Do(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");z(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function Nu(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,p=i.gutters.firstChild,m=0;p;p=p.nextSibling,++m){var b=n.display.gutterSpecs[m].className;a[b]=p.offsetLeft+p.clientLeft+u,l[b]=p.clientWidth}return{fixedPos:$u(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function $u(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function hp(n){var i=Ro(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Do(n.display)-3);return function(u){if(ii(n.doc,u))return 0;var p=0;if(u.widgets)for(var m=0;m<u.widgets.length;m++)u.widgets[m].height&&(p+=u.widgets[m].height);return a?p+(Math.ceil(u.text.length/l)||1)*i:p+i}}function Pu(n){var i=n.doc,a=hp(n);i.iter(function(l){var u=a(l);u!=l.height&&$n(l,u)})}function Yi(n,i,a,l){var u=n.display;if(!a&&ks(i).getAttribute("cm-not-content")=="true")return null;var p,m,b=u.lineSpace.getBoundingClientRect();try{p=i.clientX-b.left,m=i.clientY-b.top}catch{return null}var x=Au(n,p,m),S;if(l&&x.xRel>0&&(S=$t(n.doc,x.line).text).length==x.ch){var N=ht(S,S.length,n.options.tabSize)-S.length;x=Y(x.line,Math.max(0,Math.round((p-Qd(n.display).left)/Do(n.display))-N))}return x}function Zi(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 fn(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)Dr&&wu(n.doc,i)<u.viewTo&&si(n);else if(a<=u.viewFrom)Dr&&Wd(n.doc,a+l)>u.viewFrom?si(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)si(n);else if(i<=u.viewFrom){var p=ga(n,a,a+l,1);p?(u.view=u.view.slice(p.index),u.viewFrom=p.lineN,u.viewTo+=l):si(n)}else if(a>=u.viewTo){var m=ga(n,i,i,-1);m?(u.view=u.view.slice(0,m.index),u.viewTo=m.lineN):si(n)}else{var b=ga(n,i,i,-1),x=ga(n,a,a+l,1);b&&x?(u.view=u.view.slice(0,b.index).concat(fa(n,b.lineN,x.lineN)).concat(u.view.slice(x.index)),u.viewTo+=l):si(n)}var S=u.externalMeasured;S&&(a<S.lineN?S.lineN+=l:i<S.lineN+S.size&&(u.externalMeasured=null))}function oi(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 p=l.view[Zi(n,i)];if(p.node!=null){var m=p.changes||(p.changes=[]);Et(m,a)==-1&&m.push(a)}}}function si(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function ga(n,i,a,l){var u=Zi(n,i),p,m=n.display.view;if(!Dr||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var b=n.display.viewFrom,x=0;x<u;x++)b+=m[x].size;if(b!=i){if(l>0){if(u==m.length-1)return null;p=b+m[u].size-i,u++}else p=b-i;i+=p,a+=p}for(;wu(n.doc,a)!=a;){if(u==(l<0?0:m.length-1))return null;a+=l*m[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function _1(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=fa(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=fa(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Zi(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(fa(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,Zi(n,a)))),l.viewTo=a}function dp(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 Os(n){n.display.input.showSelection(n.display.input.prepareSelection())}function pp(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),p=l.selection=document.createDocumentFragment(),m=n.options.$customCursor;m&&(i=!0);for(var b=0;b<a.sel.ranges.length;b++)if(!(!i&&b==a.sel.primIndex)){var x=a.sel.ranges[b];if(!(x.from().line>=n.display.viewTo||x.to().line<n.display.viewFrom)){var S=x.empty();if(m){var N=m(n,x);N&&Ou(n,N,u)}else(S||n.options.showCursorWhenSelecting)&&Ou(n,x.head,u);S||S1(n,x,p)}}return l}function Ou(n,i,a){var l=rr(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 p=pa(n,i,"div",null,null),m=p.right-p.left;u.style.width=(m>0?m:n.defaultCharWidth())+"px"}if(l.other){var b=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));b.style.display="",b.style.left=l.other.left+"px",b.style.top=l.other.top+"px",b.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function va(n,i){return n.top-i.top||n.left-i.left}function S1(n,i,a){var l=n.display,u=n.doc,p=document.createDocumentFragment(),m=Qd(n.display),b=m.left,x=Math.max(l.sizerWidth,Ki(n)-l.sizer.offsetLeft)-m.right,S=u.direction=="ltr";function N(xt,Lt,Dt,Pt){Lt<0&&(Lt=0),Lt=Math.round(Lt),Pt=Math.round(Pt),p.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+xt+`px;
|
|
30
|
+
top: `+Lt+"px; width: "+(Dt??x-xt)+`px;
|
|
31
|
+
height: `+(Pt-Lt)+"px"))}function D(xt,Lt,Dt){var Pt=$t(u,xt),Jt=Pt.text.length,me,We;function _e(Me,pn){return pa(n,Y(xt,Me),"div",Pt,pn)}function Cn(Me,pn,je){var Ie=fp(n,Pt,null,Me),Ne=pn=="ltr"==(je=="after")?"left":"right",Ee=je=="after"?Ie.begin:Ie.end-(/\s/.test(Pt.text.charAt(Ie.end-1))?2:1);return _e(Ee,Ne)[Ne]}var dn=Bt(Pt,u.direction);return Xn(dn,Lt||0,Dt??Jt,function(Me,pn,je,Ie){var Ne=je=="ltr",Ee=_e(Me,Ne?"left":"right"),gn=_e(pn-1,Ne?"right":"left"),Xo=Lt==null&&Me==0,hi=Dt==null&&pn==Jt,Qe=Ie==0,wr=!dn||Ie==dn.length-1;if(gn.top-Ee.top<=3){var Ue=(S?Xo:hi)&&Qe,af=(S?hi:Xo)&&wr,qr=Ue?b:(Ne?Ee:gn).left,no=af?x:(Ne?gn:Ee).right;N(qr,Ee.top,no-qr,Ee.bottom)}else{var ro,nn,Yo,cf;Ne?(ro=S&&Xo&&Qe?b:Ee.left,nn=S?x:Cn(Me,je,"before"),Yo=S?b:Cn(pn,je,"after"),cf=S&&hi&&wr?x:gn.right):(ro=S?Cn(Me,je,"before"):b,nn=!S&&Xo&&Qe?x:Ee.right,Yo=!S&&hi&&wr?b:gn.left,cf=S?Cn(pn,je,"after"):x),N(ro,Ee.top,nn-ro,Ee.bottom),Ee.bottom<gn.top&&N(b,Ee.bottom,null,gn.top),N(Yo,gn.top,cf-Yo,gn.bottom)}(!me||va(Ee,me)<0)&&(me=Ee),va(gn,me)<0&&(me=gn),(!We||va(Ee,We)<0)&&(We=Ee),va(gn,We)<0&&(We=gn)}),{start:me,end:We}}var j=i.from(),W=i.to();if(j.line==W.line)D(j.line,j.ch,W.ch);else{var Z=$t(u,j.line),at=$t(u,W.line),gt=nr(Z)==nr(at),wt=D(j.line,j.ch,gt?Z.text.length+1:null).end,Ct=D(W.line,gt?0:null,W.ch).start;gt&&(wt.top<Ct.top-2?(N(wt.right,wt.top,null,wt.bottom),N(b,Ct.top,Ct.left,Ct.bottom)):N(wt.right,wt.top,Ct.left-wt.right,wt.bottom)),wt.bottom<Ct.top&&N(b,wt.bottom,null,Ct.top)}a.appendChild(p)}function Ru(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()||zo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function gp(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||zu(n))}function Du(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&zo(n))},100)}function zu(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(ke(n,"focus",n,i),n.state.focused=!0,Mt(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),v&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),Ru(n))}function zo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(ke(n,"blur",n,i),n.state.focused=!1,rt(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function ma(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,p=0,m=0;m<i.view.length;m++){var b=i.view[m],x=n.options.lineWrapping,S=void 0,N=0;if(!b.hidden){if(u+=b.line.height,d&&g<8){var D=b.node.offsetTop+b.node.offsetHeight;S=D-a,a=D}else{var j=b.node.getBoundingClientRect();S=j.bottom-j.top,!x&&b.text.firstChild&&(N=b.text.firstChild.getBoundingClientRect().right-j.left-1)}var W=b.line.height-S;if((W>.005||W<-.005)&&(u<l&&(p-=W),$n(b.line,S),vp(b.line),b.rest))for(var Z=0;Z<b.rest.length;Z++)vp(b.rest[Z]);if(N>n.display.sizerWidth){var at=Math.ceil(N/Do(n.display));at>n.display.maxLineLength&&(n.display.maxLineLength=at,n.display.maxLine=b.line,n.display.maxLineChanged=!0)}}}Math.abs(p)>2&&(i.scroller.scrollTop+=p)}function vp(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 ya(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-ha(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,p=R(i,l),m=R(i,u);if(a&&a.ensure){var b=a.ensure.from.line,x=a.ensure.to.line;b<p?(p=b,m=R(i,zr($t(i,b))+n.wrapper.clientHeight)):Math.min(x,i.lastLine())>=m&&(p=R(i,zr($t(i,x))-n.wrapper.clientHeight),m=x)}return{from:p,to:Math.max(m,p+1)}}function k1(n,i){if(!Ce(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,p=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(p.defaultView.innerHeight||p.documentElement.clientHeight)&&(u=!1),u!=null&&!T){var m=k("div","",null,`position: absolute;
|
|
32
|
+
top: `+(i.top-a.viewOffset-ha(n.display))+`px;
|
|
33
|
+
height: `+(i.bottom-i.top+yr(n)+a.barHeight)+`px;
|
|
34
|
+
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(m),m.scrollIntoView(u),n.display.lineSpace.removeChild(m)}}}function C1(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?Y(i.line,i.ch+1,"before"):i,i=i.ch?Y(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var p=0;p<5;p++){var m=!1,b=rr(n,i),x=!a||a==i?b:rr(n,a);u={left:Math.min(b.left,x.left),top:Math.min(b.top,x.top)-l,right:Math.max(b.left,x.left),bottom:Math.max(b.bottom,x.bottom)+l};var S=Iu(n,u),N=n.doc.scrollTop,D=n.doc.scrollLeft;if(S.scrollTop!=null&&(Ds(n,S.scrollTop),Math.abs(n.doc.scrollTop-N)>1&&(m=!0)),S.scrollLeft!=null&&(Ji(n,S.scrollLeft),Math.abs(n.doc.scrollLeft-D)>1&&(m=!0)),!m)break}return u}function T1(n,i){var a=Iu(n,i);a.scrollTop!=null&&Ds(n,a.scrollTop),a.scrollLeft!=null&&Ji(n,a.scrollLeft)}function Iu(n,i){var a=n.display,l=Ro(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,p=Cu(n),m={};i.bottom-i.top>p&&(i.bottom=i.top+p);var b=n.doc.height+ku(a),x=i.top<l,S=i.bottom>b-l;if(i.top<u)m.scrollTop=x?0:i.top;else if(i.bottom>u+p){var N=Math.min(i.top,(S?b:i.bottom)-p);N!=u&&(m.scrollTop=N)}var D=n.options.fixedGutter?0:a.gutters.offsetWidth,j=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-D,W=Ki(n)-a.gutters.offsetWidth,Z=i.right-i.left>W;return Z&&(i.right=i.left+W),i.left<10?m.scrollLeft=0:i.left<j?m.scrollLeft=Math.max(0,i.left+D-(Z?0:10)):i.right>W+j-3&&(m.scrollLeft=i.right+(Z?0:10)-W),m}function Fu(n,i){i!=null&&(ba(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Io(n){ba(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function Rs(n,i,a){(i!=null||a!=null)&&ba(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function E1(n,i){ba(n),n.curOp.scrollToPos=i}function ba(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=cp(n,i.from),l=cp(n,i.to);mp(n,a,l,i.margin)}}function mp(n,i,a,l){var u=Iu(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});Rs(n,u.scrollLeft,u.scrollTop)}function Ds(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||qu(n,{top:i}),yp(n,i,!0),s&&qu(n),Fs(n,100))}function yp(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 Ji(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,Sp(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function zs(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+ku(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+yr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var Qi=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),Rt(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Rt(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Qi.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 p=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+p)+"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}},Qi.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Qi.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Qi.prototype.zeroWidthHack=function(){var n=H&&!A?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Nt,this.disableVert=new Nt},Qi.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),p=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);p!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},Qi.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var Is=function(){};Is.prototype.update=function(){return{bottom:0,right:0}},Is.prototype.setScrollLeft=function(){},Is.prototype.setScrollTop=function(){},Is.prototype.clear=function(){};function Fo(n,i){i||(i=zs(n));var a=n.display.barWidth,l=n.display.barHeight;bp(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&ma(n),bp(n,zs(n)),a=n.display.barWidth,l=n.display.barHeight}function bp(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 wp={native:Qi,null:Is};function xp(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&rt(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new wp[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Rt(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"?Ji(n,i):Ds(n,i)},n),n.display.scrollbars.addClass&&Mt(n.display.wrapper,n.display.scrollbars.addClass)}var L1=0;function to(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:++L1,markArrays:null},o1(n.curOp)}function eo(n){var i=n.curOp;i&&l1(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;A1(a)})}function A1(n){for(var i=n.ops,a=0;a<i.length;a++)M1(i[a]);for(var l=0;l<i.length;l++)N1(i[l]);for(var u=0;u<i.length;u++)$1(i[u]);for(var p=0;p<i.length;p++)P1(i[p]);for(var m=0;m<i.length;m++)O1(i[m])}function M1(n){var i=n.cm,a=i.display;D1(i),n.updateMaxLine&&_u(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 wa(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function N1(n){n.updatedDisplay=n.mustUpdate&&Hu(n.cm,n.update)}function $1(n){var i=n.cm,a=i.display;n.updatedDisplay&&ma(i),n.barMeasure=zs(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=ep(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+yr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-Ki(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function P1(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&Ji(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==mt(ne(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&Fo(i,n.barMeasure),n.updatedDisplay&&Wu(i,n.barMeasure),n.selectionChanged&&Ru(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&gp(n.cm)}function O1(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&_p(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&yp(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&Ji(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=C1(i,jt(l,n.scrollToPos.from),jt(l,n.scrollToPos.to),n.scrollToPos.margin);k1(i,u)}var p=n.maybeHiddenMarkers,m=n.maybeUnhiddenMarkers;if(p)for(var b=0;b<p.length;++b)p[b].lines.length||ke(p[b],"hide");if(m)for(var x=0;x<m.length;++x)m[x].lines.length&&ke(m[x],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&ke(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function kn(n,i){if(n.curOp)return i();to(n);try{return i()}finally{eo(n)}}function qe(n,i){return function(){if(n.curOp)return i.apply(n,arguments);to(n);try{return i.apply(n,arguments)}finally{eo(n)}}}function en(n){return function(){if(this.curOp)return n.apply(this,arguments);to(this);try{return n.apply(this,arguments)}finally{eo(this)}}}function Be(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);to(i);try{return n.apply(this,arguments)}finally{eo(i)}}}function Fs(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,G(R1,n))}function R1(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=Ls(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(p){if(l.line>=n.display.viewFrom){var m=p.styles,b=p.text.length>n.options.maxHighlightLength?vr(i.mode,l.state):null,x=Ad(n,p,l,!0);b&&(l.state=b),p.styles=x.styles;var S=p.styleClasses,N=x.classes;N?p.styleClasses=N:S&&(p.styleClasses=null);for(var D=!m||m.length!=p.styles.length||S!=N&&(!S||!N||S.bgClass!=N.bgClass||S.textClass!=N.textClass),j=0;!D&&j<m.length;++j)D=m[j]!=p.styles[j];D&&u.push(l.line),p.stateAfter=l.save(),l.nextLine()}else p.text.length<=n.options.maxHighlightLength&&vu(n,p.text,l),p.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return Fs(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&kn(n,function(){for(var p=0;p<u.length;p++)oi(n,u[p],"text")})}}var wa=function(n,i,a){var l=n.display;this.viewport=i,this.visible=ya(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Ki(n),this.force=a,this.dims=Nu(n),this.events=[]};wa.prototype.signal=function(n,i){Sn(n,i)&&this.events.push(arguments)},wa.prototype.finish=function(){for(var n=0;n<this.events.length;n++)ke.apply(null,this.events[n])};function D1(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=yr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=yr(n)+"px",i.scrollbarsClipped=!0)}function z1(n){if(n.hasFocus())return null;var i=mt(ne(n));if(!i||!Q(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Tt(n).getSelection();l.anchorNode&&l.extend&&Q(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function I1(n){if(!(!n||!n.activeElt||n.activeElt==mt(Zt(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&Q(document.body,n.anchorNode)&&Q(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 Hu(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return si(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&&dp(n)==0)return!1;kp(n)&&(si(n),i.dims=Nu(n));var u=l.first+l.size,p=Math.max(i.visible.from-n.options.viewportMargin,l.first),m=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<p&&p-a.viewFrom<20&&(p=Math.max(l.first,a.viewFrom)),a.viewTo>m&&a.viewTo-m<20&&(m=Math.min(u,a.viewTo)),Dr&&(p=wu(n.doc,p),m=Wd(n.doc,m));var b=p!=a.viewFrom||m!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;_1(n,p,m),a.viewOffset=zr($t(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var x=dp(n);if(!b&&x==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var S=z1(n);return x>4&&(a.lineDiv.style.display="none"),F1(n,a.updateLineNumbers,i.dims),x>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,I1(S),V(a.cursorDiv),V(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,b&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,Fs(n,400)),a.updateLineNumbers=null,!0}function _p(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==Ki(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+ku(n.display)-Cu(n),a.top)}),i.visible=ya(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=ya(n.display,n.doc,a));if(!Hu(n,i))break;ma(n);var u=zs(n);Os(n),Fo(n,u),Wu(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 qu(n,i){var a=new wa(n,i);if(Hu(n,a)){ma(n),_p(n,a);var l=zs(n);Os(n),Fo(n,l),Wu(n,l),a.finish()}}function F1(n,i,a){var l=n.display,u=n.options.lineNumbers,p=l.lineDiv,m=p.firstChild;function b(Z){var at=Z.nextSibling;return v&&H&&n.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),at}for(var x=l.view,S=l.viewFrom,N=0;N<x.length;N++){var D=x[N];if(!D.hidden)if(!D.node||D.node.parentNode!=p){var j=h1(n,D,S,a);p.insertBefore(j,m)}else{for(;m!=D.node;)m=b(m);var W=u&&i!=null&&i<=S&&D.lineNumber;D.changes&&(Et(D.changes,"gutter")>-1&&(W=!1),Kd(n,D,S,a)),W&&(V(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(pt(n.options,S)))),m=D.node.nextSibling}S+=D.size}for(;m;)m=b(m)}function Bu(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",He(n,"gutterChanged",n)}function Wu(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+yr(n)+"px"}function Sp(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=$u(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,p=l+"px",m=0;m<a.length;m++)if(!a[m].hidden){n.options.fixedGutter&&(a[m].gutter&&(a[m].gutter.style.left=p),a[m].gutterBackground&&(a[m].gutterBackground.style.left=p));var b=a[m].alignable;if(b)for(var x=0;x<b.length;x++)b[x].style.left=p}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function kp(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=pt(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")),p=u.firstChild.offsetWidth,m=u.offsetWidth-p;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(p,l.lineGutter.offsetWidth-m)+1,l.lineNumWidth=l.lineNumInnerWidth+m,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Bu(n.display),!0}return!1}function Uu(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var p=n[u],m=null;if(typeof p!="string"&&(m=p.style,p=p.className),p=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:p,style:m})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function Cp(n){var i=n.gutters,a=n.gutterSpecs;V(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],p=u.className,m=u.style,b=i.appendChild(k("div",null,"CodeMirror-gutter "+p));m&&(b.style.cssText=m),p=="CodeMirror-linenumbers"&&(n.lineGutter=b,b.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",Bu(n)}function Hs(n){Cp(n.display),fn(n),Sp(n)}function H1(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=q("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=q("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var p=q("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[p],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+Xt+"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"),w&&_>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),d&&g<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&$)&&(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=Uu(l.gutters,l.lineNumbers),Cp(u),a.init(u)}var xa=0,Fr=null;d?Fr=-.53:s?Fr=15:w?Fr=-.7:M&&(Fr=-1/3);function Tp(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 q1(n){var i=Tp(n);return i.x*=Fr,i.y*=Fr,i}function Ep(n,i){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=Tp(i),l=a.x,u=a.y,p=Fr;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,p=1);var m=n.display,b=m.scroller,x=b.scrollWidth>b.clientWidth,S=b.scrollHeight>b.clientHeight;if(l&&x||u&&S){if(u&&H&&v){t:for(var N=i.target,D=m.view;N!=b;N=N.parentNode)for(var j=0;j<D.length;j++)if(D[j].node==N){n.display.currentWheelTarget=N;break t}}if(l&&!s&&!L&&p!=null){u&&S&&Ds(n,Math.max(0,b.scrollTop+u*p)),Ji(n,Math.max(0,b.scrollLeft+l*p)),(!u||u&&S)&&Ze(i),m.wheelStartX=null;return}if(u&&p!=null){var W=u*p,Z=n.doc.scrollTop,at=Z+m.wrapper.clientHeight;W<0?Z=Math.max(0,Z+W-50):at=Math.min(n.doc.height,at+W+50),qu(n,{top:Z,bottom:at})}xa<20&&i.deltaMode!==0&&(m.wheelStartX==null?(m.wheelStartX=b.scrollLeft,m.wheelStartY=b.scrollTop,m.wheelDX=l,m.wheelDY=u,setTimeout(function(){if(m.wheelStartX!=null){var gt=b.scrollLeft-m.wheelStartX,wt=b.scrollTop-m.wheelStartY,Ct=wt&&m.wheelDY&&wt/m.wheelDY||gt&&m.wheelDX&>/m.wheelDX;m.wheelStartX=m.wheelStartY=null,Ct&&(Fr=(Fr*xa+Ct)/(xa+1),++xa)}},200)):(m.wheelDX+=l,m.wheelDY+=u))}}var Pn=function(n,i){this.ranges=n,this.primIndex=i};Pn.prototype.primary=function(){return this.ranges[this.primIndex]},Pn.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(!ae(a.anchor,l.anchor)||!ae(a.head,l.head))return!1}return!0},Pn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new ce(Fe(this.ranges[i].anchor),Fe(this.ranges[i].head));return new Pn(n,this.primIndex)},Pn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Pn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(St(i,l.from())>=0&&St(n,l.to())<=0)return a}return-1};var ce=function(n,i){this.anchor=n,this.head=i};ce.prototype.from=function(){return No(this.anchor,this.head)},ce.prototype.to=function(){return un(this.anchor,this.head)},ce.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ir(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(j,W){return St(j.from(),W.from())}),a=Et(i,u);for(var p=1;p<i.length;p++){var m=i[p],b=i[p-1],x=St(b.to(),m.from());if(l&&!m.empty()?x>0:x>=0){var S=No(b.from(),m.from()),N=un(b.to(),m.to()),D=b.empty()?m.from()==m.head:b.from()==b.head;p<=a&&--a,i.splice(--p,2,new ce(D?N:S,D?S:N))}}return new Pn(i,a)}function li(n,i){return new Pn([new ce(n,i||n)],0)}function ai(n){return n.text?Y(n.from.line+n.text.length-1,lt(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function Lp(n,i){if(St(n,i.from)<0)return n;if(St(n,i.to)<=0)return ai(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=ai(i).ch-i.to.ch),Y(a,l)}function ju(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new ce(Lp(u.anchor,i),Lp(u.head,i)))}return ir(n.cm,a,n.sel.primIndex)}function Ap(n,i,a){return n.line==i.line?Y(a.line,n.ch-i.ch+a.ch):Y(a.line+(n.line-i.line),n.ch)}function B1(n,i,a){for(var l=[],u=Y(n.first,0),p=u,m=0;m<i.length;m++){var b=i[m],x=Ap(b.from,u,p),S=Ap(ai(b),u,p);if(u=b.to,p=S,a=="around"){var N=n.sel.ranges[m],D=St(N.head,N.anchor)<0;l[m]=new ce(D?S:x,D?x:S)}else l[m]=new ce(x,x)}return new Pn(l,n.sel.primIndex)}function Vu(n){n.doc.mode=Lo(n.options,n.doc.modeOption),qs(n)}function qs(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,Fs(n,100),n.state.modeGen++,n.curOp&&fn(n)}function Mp(n,i){return i.from.ch==0&&i.to.ch==0&<(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Gu(n,i,a,l){function u(Ct){return a?a[Ct]:null}function p(Ct,xt,Lt){Yw(Ct,xt,Lt,l),He(Ct,"change",Ct,i)}function m(Ct,xt){for(var Lt=[],Dt=Ct;Dt<xt;++Dt)Lt.push(new $o(S[Dt],u(Dt),l));return Lt}var b=i.from,x=i.to,S=i.text,N=$t(n,b.line),D=$t(n,x.line),j=lt(S),W=u(S.length-1),Z=x.line-b.line;if(i.full)n.insert(0,m(0,S.length)),n.remove(S.length,n.size-S.length);else if(Mp(n,i)){var at=m(0,S.length-1);p(D,D.text,W),Z&&n.remove(b.line,Z),at.length&&n.insert(b.line,at)}else if(N==D)if(S.length==1)p(N,N.text.slice(0,b.ch)+j+N.text.slice(x.ch),W);else{var gt=m(1,S.length-1);gt.push(new $o(j+N.text.slice(x.ch),W,l)),p(N,N.text.slice(0,b.ch)+S[0],u(0)),n.insert(b.line+1,gt)}else if(S.length==1)p(N,N.text.slice(0,b.ch)+S[0]+D.text.slice(x.ch),u(0)),n.remove(b.line+1,Z);else{p(N,N.text.slice(0,b.ch)+S[0],u(0)),p(D,j+D.text.slice(x.ch),W);var wt=m(1,S.length-1);Z>1&&n.remove(b.line+1,Z-1),n.insert(b.line+1,wt)}He(n,"change",n,i)}function ci(n,i,a){function l(u,p,m){if(u.linked)for(var b=0;b<u.linked.length;++b){var x=u.linked[b];if(x.doc!=p){var S=m&&x.sharedHist;a&&!S||(i(x.doc,S),l(x.doc,u,S))}}}l(n,null,!0)}function Np(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,Pu(n),Vu(n),$p(n),n.options.direction=i.direction,n.options.lineWrapping||_u(n),n.options.mode=i.modeOption,fn(n)}function $p(n){(n.doc.direction=="rtl"?Mt:rt)(n.display.lineDiv,"CodeMirror-rtl")}function W1(n){kn(n,function(){$p(n),fn(n)})}function _a(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 Ku(n,i){var a={from:Fe(i.from),to:ai(i),text:Rr(n,i.from,i.to)};return Rp(n,a,i.from.line,i.to.line+1),ci(n,function(l){return Rp(l,a,i.from.line,i.to.line+1)},!0),a}function Pp(n){for(;n.length;){var i=lt(n);if(i.ranges)n.pop();else break}}function U1(n,i){if(i)return Pp(n.done),lt(n.done);if(n.done.length&&!lt(n.done).ranges)return lt(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),lt(n.done)}function Op(n,i,a,l){var u=n.history;u.undone.length=0;var p=+new Date,m,b;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>p-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(m=U1(u,u.lastOp==l)))b=lt(m.changes),St(i.from,i.to)==0&&St(i.from,b.to)==0?b.to=ai(i):m.changes.push(Ku(n,i));else{var x=lt(u.done);for((!x||!x.ranges)&&Sa(n.sel,u.done),m={changes:[Ku(n,i)],generation:u.generation},u.done.push(m);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=p,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,b||ke(n,"historyAdded")}function j1(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 V1(n,i,a,l){var u=n.history,p=l&&l.origin;a==u.lastSelOp||p&&u.lastSelOrigin==p&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==p||j1(n,p,lt(u.done),i))?u.done[u.done.length-1]=i:Sa(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=p,u.lastSelOp=a,l&&l.clearRedo!==!1&&Pp(u.undone)}function Sa(n,i){var a=lt(i);a&&a.ranges&&a.equals(n)||i.push(n)}function Rp(n,i,a,l){var u=i["spans_"+n.id],p=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(m){m.markedSpans&&((u||(u=i["spans_"+n.id]={}))[p]=m.markedSpans),++p})}function G1(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 K1(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(G1(a[u]));return l}function Dp(n,i){var a=K1(n,i),l=yu(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var p=a[u],m=l[u];if(p&&m)t:for(var b=0;b<m.length;++b){for(var x=m[b],S=0;S<p.length;++S)if(p[S].marker==x.marker)continue t;p.push(x)}else m&&(a[u]=m)}return a}function Ho(n,i,a){for(var l=[],u=0;u<n.length;++u){var p=n[u];if(p.ranges){l.push(a?Pn.prototype.deepCopy.call(p):p);continue}var m=p.changes,b=[];l.push({changes:b});for(var x=0;x<m.length;++x){var S=m[x],N=void 0;if(b.push({from:S.from,to:S.to,text:S.text}),i)for(var D in S)(N=D.match(/^spans_(\d+)$/))&&Et(i,Number(N[1]))>-1&&(lt(b)[D]=S[D],delete S[D])}}return l}function Xu(n,i,a,l){if(l){var u=n.anchor;if(a){var p=St(i,u)<0;p!=St(a,u)<0?(u=i,i=a):p!=St(i,a)<0&&(i=a)}return new ce(u,i)}else return new ce(a||i,i)}function ka(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),Je(n,new Pn([Xu(n.sel.primary(),i,a,u)],0),l)}function zp(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),p=0;p<n.sel.ranges.length;p++)l[p]=Xu(n.sel.ranges[p],i[p],null,u);var m=ir(n.cm,l,n.sel.primIndex);Je(n,m,a)}function Yu(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,Je(n,ir(n.cm,u,n.sel.primIndex),l)}function Ip(n,i,a,l){Je(n,li(i,a),l)}function X1(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var p=0;p<u.length;p++)this.ranges[p]=new ce(jt(n,u[p].anchor),jt(n,u[p].head))},origin:a&&a.origin};return ke(n,"beforeSelectionChange",n,l),n.cm&&ke(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?ir(n.cm,l.ranges,l.ranges.length-1):i}function Fp(n,i,a){var l=n.history.done,u=lt(l);u&&u.ranges?(l[l.length-1]=i,Ca(n,i,a)):Je(n,i,a)}function Je(n,i,a){Ca(n,i,a),V1(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ca(n,i,a){(Sn(n,"beforeSelectionChange")||n.cm&&Sn(n.cm,"beforeSelectionChange"))&&(i=X1(n,i,a));var l=a&&a.bias||(St(i.primary().head,n.sel.primary().head)<0?-1:1);Hp(n,Bp(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Io(n.cm)}function Hp(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,Fn(n.cm)),He(n,"cursorActivity",n))}function qp(n){Hp(n,Bp(n,n.sel,null,!1))}function Bp(n,i,a,l){for(var u,p=0;p<i.ranges.length;p++){var m=i.ranges[p],b=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[p],x=Ta(n,m.anchor,b&&b.anchor,a,l),S=m.head==m.anchor?x:Ta(n,m.head,b&&b.head,a,l);(u||x!=m.anchor||S!=m.head)&&(u||(u=i.ranges.slice(0,p)),u[p]=new ce(x,S))}return u?ir(n.cm,u,i.primIndex):i}function qo(n,i,a,l,u){var p=$t(n,i.line);if(p.markedSpans)for(var m=0;m<p.markedSpans.length;++m){var b=p.markedSpans[m],x=b.marker,S="selectLeft"in x?!x.selectLeft:x.inclusiveLeft,N="selectRight"in x?!x.selectRight:x.inclusiveRight;if((b.from==null||(S?b.from<=i.ch:b.from<i.ch))&&(b.to==null||(N?b.to>=i.ch:b.to>i.ch))){if(u&&(ke(x,"beforeCursorEnter"),x.explicitlyCleared))if(p.markedSpans){--m;continue}else break;if(!x.atomic)continue;if(a){var D=x.find(l<0?1:-1),j=void 0;if((l<0?N:S)&&(D=Wp(n,D,-l,D&&D.line==i.line?p:null)),D&&D.line==i.line&&(j=St(D,a))&&(l<0?j<0:j>0))return qo(n,D,i,l,u)}var W=x.find(l<0?-1:1);return(l<0?S:N)&&(W=Wp(n,W,l,W.line==i.line?p:null)),W?qo(n,W,i,l,u):null}}return i}function Ta(n,i,a,l,u){var p=l||1,m=qo(n,i,a,p,u)||!u&&qo(n,i,a,p,!0)||qo(n,i,a,-p,u)||!u&&qo(n,i,a,-p,!0);return m||(n.cantEdit=!0,Y(n.first,0))}function Wp(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?jt(n,Y(i.line-1)):null:a>0&&i.ch==(l||$t(n,i.line)).text.length?i.line<n.first+n.size-1?Y(i.line+1,0):null:new Y(i.line,i.ch+a)}function Up(n){n.setSelection(Y(n.firstLine(),0),Y(n.lastLine()),I)}function jp(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,p,m,b){u&&(l.from=jt(n,u)),p&&(l.to=jt(n,p)),m&&(l.text=m),b!==void 0&&(l.origin=b)}),ke(n,"beforeChange",n,l),n.cm&&ke(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 Bo(n,i,a){if(n.cm){if(!n.cm.curOp)return qe(n.cm,Bo)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Sn(n,"beforeChange")||n.cm&&Sn(n.cm,"beforeChange"))&&(i=jp(n,i,!0),!i))){var l=Dd&&!a&&Vw(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Vp(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Vp(n,i)}}function Vp(n,i){if(!(i.text.length==1&&i.text[0]==""&&St(i.from,i.to)==0)){var a=ju(n,i);Op(n,i,a,n.cm?n.cm.curOp.id:NaN),Bs(n,i,a,yu(n,i));var l=[];ci(n,function(u,p){!p&&Et(l,u.history)==-1&&(Yp(u.history,i),l.push(u.history)),Bs(u,i,null,yu(u,i))})}}function Ea(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,p,m=n.sel,b=i=="undo"?u.done:u.undone,x=i=="undo"?u.undone:u.done,S=0;S<b.length&&(p=b[S],!(a?p.ranges&&!p.equals(n.sel):!p.ranges));S++);if(S!=b.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(p=b.pop(),p.ranges){if(Sa(p,x),a&&!p.equals(n.sel)){Je(n,p,{clearRedo:!1});return}m=p}else if(l){b.push(p);return}else break;var N=[];Sa(m,x),x.push({changes:N,generation:u.generation}),u.generation=p.generation||++u.maxGeneration;for(var D=Sn(n,"beforeChange")||n.cm&&Sn(n.cm,"beforeChange"),j=function(at){var gt=p.changes[at];if(gt.origin=i,D&&!jp(n,gt,!1))return b.length=0,{};N.push(Ku(n,gt));var wt=at?ju(n,gt):lt(b);Bs(n,gt,wt,Dp(n,gt)),!at&&n.cm&&n.cm.scrollIntoView({from:gt.from,to:ai(gt)});var Ct=[];ci(n,function(xt,Lt){!Lt&&Et(Ct,xt.history)==-1&&(Yp(xt.history,gt),Ct.push(xt.history)),Bs(xt,gt,null,Dp(xt,gt))})},W=p.changes.length-1;W>=0;--W){var Z=j(W);if(Z)return Z.v}}}}function Gp(n,i){if(i!=0&&(n.first+=i,n.sel=new Pn(bt(n.sel.ranges,function(u){return new ce(Y(u.anchor.line+i,u.anchor.ch),Y(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){fn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)oi(n.cm,l,"gutter")}}function Bs(n,i,a,l){if(n.cm&&!n.cm.curOp)return qe(n.cm,Bs)(n,i,a,l);if(i.to.line<n.first){Gp(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);Gp(n,u),i={from:Y(n.first,0),to:Y(i.to.line+u,i.to.ch),text:[lt(i.text)],origin:i.origin}}var p=n.lastLine();i.to.line>p&&(i={from:i.from,to:Y(p,$t(n,p).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Rr(n,i.from,i.to),a||(a=ju(n,i)),n.cm?Y1(n.cm,i,l):Gu(n,i,l),Ca(n,a,I),n.cantEdit&&Ta(n,Y(n.firstLine(),0))&&(n.cantEdit=!1)}}function Y1(n,i,a){var l=n.doc,u=n.display,p=i.from,m=i.to,b=!1,x=p.line;n.options.lineWrapping||(x=C(nr($t(l,p.line))),l.iter(x,m.line+1,function(W){if(W==u.maxLine)return b=!0,!0})),l.sel.contains(i.from,i.to)>-1&&Fn(n),Gu(l,i,a,hp(n)),n.options.lineWrapping||(l.iter(x,p.line+i.text.length,function(W){var Z=ua(W);Z>u.maxLineLength&&(u.maxLine=W,u.maxLineLength=Z,u.maxLineChanged=!0,b=!1)}),b&&(n.curOp.updateMaxLine=!0)),Fw(l,p.line),Fs(n,400);var S=i.text.length-(m.line-p.line)-1;i.full?fn(n):p.line==m.line&&i.text.length==1&&!Mp(n.doc,i)?oi(n,p.line,"text"):fn(n,p.line,m.line+1,S);var N=Sn(n,"changes"),D=Sn(n,"change");if(D||N){var j={from:p,to:m,text:i.text,removed:i.removed,origin:i.origin};D&&He(n,"change",n,j),N&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(j)}n.display.selForContextMenu=null}function Wo(n,i,a,l,u){var p;l||(l=a),St(l,a)<0&&(p=[l,a],a=p[0],l=p[1]),typeof i=="string"&&(i=n.splitLines(i)),Bo(n,{from:a,to:l,text:i,origin:u})}function Kp(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Xp(n,i,a,l){for(var u=0;u<n.length;++u){var p=n[u],m=!0;if(p.ranges){p.copied||(p=n[u]=p.deepCopy(),p.copied=!0);for(var b=0;b<p.ranges.length;b++)Kp(p.ranges[b].anchor,i,a,l),Kp(p.ranges[b].head,i,a,l);continue}for(var x=0;x<p.changes.length;++x){var S=p.changes[x];if(a<S.from.line)S.from=Y(S.from.line+l,S.from.ch),S.to=Y(S.to.line+l,S.to.ch);else if(i<=S.to.line){m=!1;break}}m||(n.splice(0,u+1),u=0)}}function Yp(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Xp(n.done,a,l,u),Xp(n.undone,a,l,u)}function Ws(n,i,a,l){var u=i,p=i;return typeof i=="number"?p=$t(n,Ed(n,i)):u=C(i),u==null?null:(l(p,u)&&n.cm&&oi(n.cm,u,a),p)}function Us(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}Us.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,Zw(u),He(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 js(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}js.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 p=Math.min(i,u-n),m=l.height;if(l.removeInner(n,p),this.height-=m-l.height,u==p&&(this.children.splice(a--,1),l.parent=null),(i-=p)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Us))){var b=[];this.collapse(b),this.children=[new Us(b)],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],p=u.chunkSize();if(n<=p){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var m=u.lines.length%25+25,b=m;b<u.lines.length;){var x=new Us(u.lines.slice(b,b+=25));u.height-=x.height,this.children.splice(++l,0,x),x.parent=this}u.lines=u.lines.slice(0,m),this.maybeSpill()}break}n-=p}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new js(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=Et(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new js(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],p=u.chunkSize();if(n<p){var m=Math.min(i,p-n);if(u.iterN(n,m,a))return!0;if((i-=m)==0)break;n=0}else n-=p}}};var Vs=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};Vs.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=C(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var p=$s(this);$n(a,Math.max(0,a.height-p)),n&&(kn(n,function(){Zp(n,a,-p),oi(n,l,"widget")}),He(n,"lineWidgetCleared",n,this,l))}},Vs.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=$s(this)-i;u&&(ii(this.doc,l)||$n(l,l.height+u),a&&kn(a,function(){a.curOp.forceUpdate=!0,Zp(a,l,u),He(a,"lineWidgetChanged",a,n,C(l))}))},Zn(Vs);function Zp(n,i,a){zr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Fu(n,a)}function Z1(n,i,a,l){var u=new Vs(n,a,l),p=n.cm;return p&&u.noHScroll&&(p.display.alignWidgets=!0),Ws(n,i,"widget",function(m){var b=m.widgets||(m.widgets=[]);if(u.insertAt==null?b.push(u):b.splice(Math.min(b.length,Math.max(0,u.insertAt)),0,u),u.line=m,p&&!ii(n,m)){var x=zr(m)<n.scrollTop;$n(m,m.height+$s(u)),x&&Fu(p,u.height),p.curOp.forceUpdate=!0}return!0}),p&&He(p,"lineWidgetAdded",p,u,typeof i=="number"?i:C(i)),u}var Jp=0,ui=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Jp};ui.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&to(n),Sn(this,"clear")){var a=this.find();a&&He(this,"clear",a.from,a.to)}for(var l=null,u=null,p=0;p<this.lines.length;++p){var m=this.lines[p],b=As(m.markedSpans,this);n&&!this.collapsed?oi(n,C(m),"text"):n&&(b.to!=null&&(u=C(m)),b.from!=null&&(l=C(m))),m.markedSpans=Bw(m.markedSpans,b),b.from==null&&this.collapsed&&!ii(this.doc,m)&&n&&$n(m,Ro(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var x=0;x<this.lines.length;++x){var S=nr(this.lines[x]),N=ua(S);N>n.display.maxLineLength&&(n.display.maxLine=S,n.display.maxLineLength=N,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&fn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&qp(n.doc)),n&&He(n,"markerCleared",n,this,l,u),i&&eo(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 p=this.lines[u],m=As(p.markedSpans,this);if(m.from!=null&&(a=Y(i?p:C(p),m.from),n==-1))return a;if(m.to!=null&&(l=Y(i?p:C(p),m.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||kn(l,function(){var u=i.line,p=C(i.line),m=Tu(l,p);if(m&&(ip(m),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!ii(a.doc,u)&&a.height!=null){var b=a.height;a.height=null;var x=$s(a)-b;x&&$n(u,u.height+x)}He(l,"markerChanged",l,n)})},ui.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Et(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},ui.prototype.detachLine=function(n){if(this.lines.splice(Et(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},Zn(ui);function Uo(n,i,a,l,u){if(l&&l.shared)return J1(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return qe(n.cm,Uo)(n,i,a,l,u);var p=new ui(n,u),m=St(i,a);if(l&&it(l,p,!1),m>0||m==0&&p.clearWhenEmpty!==!1)return p;if(p.replacedWith&&(p.collapsed=!0,p.widgetNode=q("span",[p.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||p.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(p.widgetNode.insertLeft=!0)),p.collapsed){if(Bd(n,i.line,i,a,p)||i.line!=a.line&&Bd(n,a.line,i,a,p))throw new Error("Inserting collapsed marker partially overlapping an existing one");qw()}p.addToHistory&&Op(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var b=i.line,x=n.cm,S;if(n.iter(b,a.line+1,function(D){x&&p.collapsed&&!x.options.lineWrapping&&nr(D)==x.display.maxLine&&(S=!0),p.collapsed&&b!=i.line&&$n(D,0),Ww(D,new sa(p,b==i.line?i.ch:null,b==a.line?a.ch:null),n.cm&&n.cm.curOp),++b}),p.collapsed&&n.iter(i.line,a.line+1,function(D){ii(n,D)&&$n(D,0)}),p.clearOnEnter&&Rt(p,"beforeCursorEnter",function(){return p.clear()}),p.readOnly&&(Hw(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),p.collapsed&&(p.id=++Jp,p.atomic=!0),x){if(S&&(x.curOp.updateMaxLine=!0),p.collapsed)fn(x,i.line,a.line+1);else if(p.className||p.startStyle||p.endStyle||p.css||p.attributes||p.title)for(var N=i.line;N<=a.line;N++)oi(x,N,"text");p.atomic&&qp(x.doc),He(x,"markerAdded",x,p)}return p}var Gs=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};Gs.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();He(this,"clear")}},Gs.prototype.find=function(n,i){return this.primary.find(n,i)},Zn(Gs);function J1(n,i,a,l,u){l=it(l),l.shared=!1;var p=[Uo(n,i,a,l,u)],m=p[0],b=l.widgetNode;return ci(n,function(x){b&&(l.widgetNode=b.cloneNode(!0)),p.push(Uo(x,jt(x,i),jt(x,a),l,u));for(var S=0;S<x.linked.length;++S)if(x.linked[S].isParent)return;m=lt(p)}),new Gs(p,m)}function Qp(n){return n.findMarks(Y(n.first,0),n.clipPos(Y(n.lastLine())),function(i){return i.parent})}function Q1(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),p=n.clipPos(u.from),m=n.clipPos(u.to);if(St(p,m)){var b=Uo(n,p,m,l.primary,l.primary.type);l.markers.push(b),b.parent=l}}}function tx(n){for(var i=function(l){var u=n[l],p=[u.primary.doc];ci(u.primary.doc,function(x){return p.push(x)});for(var m=0;m<u.markers.length;m++){var b=u.markers[m];Et(p,b.doc)==-1&&(b.parent=null,u.markers.splice(m--,1))}},a=0;a<n.length;a++)i(a)}var ex=0,hn=function(n,i,a,l,u){if(!(this instanceof hn))return new hn(n,i,a,l,u);a==null&&(a=0),js.call(this,[new Us([new $o("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var p=Y(a,0);this.sel=li(p),this.history=new _a(null),this.id=++ex,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Gu(this,{from:p,to:p,text:n}),Je(this,li(p),I)};hn.prototype=zt(js.prototype,{constructor:hn,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=Es(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Be(function(n){var i=Y(this.first,0),a=this.first+this.size-1;Bo(this,{from:i,to:Y(a,$t(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&Rs(this.cm,0,0),Je(this,li(i),I)}),replaceRange:function(n,i,a,l){i=jt(this,i),a=a?jt(this,a):i,Wo(this,n,i,a,l)},getRange:function(n,i,a){var l=Rr(this,jt(this,n),jt(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(et(this,n))return $t(this,n)},getLineNumber:function(n){return C(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=$t(this,n)),nr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return jt(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:Be(function(n,i,a){Ip(this,jt(this,typeof n=="number"?Y(n,i||0):n),null,a)}),setSelection:Be(function(n,i,a){Ip(this,jt(this,n),jt(this,i||n),a)}),extendSelection:Be(function(n,i,a){ka(this,jt(this,n),i&&jt(this,i),a)}),extendSelections:Be(function(n,i){zp(this,Ld(this,n),i)}),extendSelectionsBy:Be(function(n,i){var a=bt(this.sel.ranges,n);zp(this,Ld(this,a),i)}),setSelections:Be(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new ce(jt(this,n[u].anchor),jt(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),Je(this,ir(this.cm,l,i),a)}}),addSelection:Be(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new ce(jt(this,n),jt(this,i||n))),Je(this,ir(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=Rr(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=Rr(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:Be(function(n,i,a){for(var l=[],u=this.sel,p=0;p<u.ranges.length;p++){var m=u.ranges[p];l[p]={from:m.from(),to:m.to(),text:this.splitLines(n[p]),origin:a}}for(var b=i&&i!="end"&&B1(this,l,i),x=l.length-1;x>=0;x--)Bo(this,l[x]);b?Fp(this,b):this.cm&&Io(this.cm)}),undo:Be(function(){Ea(this,"undo")}),redo:Be(function(){Ea(this,"redo")}),undoSelection:Be(function(){Ea(this,"undo",!0)}),redoSelection:Be(function(){Ea(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 _a(this.history),ci(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:Ho(this.history.done),undone:Ho(this.history.undone)}},setHistory:function(n){var i=this.history=new _a(this.history);i.done=Ho(n.done.slice(0),null,!0),i.undone=Ho(n.undone.slice(0),null,!0)},setGutterMarker:Be(function(n,i,a){return Ws(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&pe(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Be(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&Ws(i,a,"gutter",function(){return a.gutterMarkers[n]=null,pe(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!et(this,n)||(i=n,n=$t(this,n),!n))return null}else if(i=C(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Be(function(n,i,a){return Ws(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(ft(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Be(function(n,i,a){return Ws(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",p=l[u];if(p)if(a==null)l[u]=null;else{var m=p.match(ft(a));if(!m)return!1;var b=m.index+m[0].length;l[u]=p.slice(0,m.index)+(!m.index||b==p.length?"":" ")+p.slice(b)||null}else return!1;return!0})}),addLineWidget:Be(function(n,i,a){return Z1(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return Uo(this,jt(this,n),jt(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=jt(this,n),Uo(this,n,n,a,"bookmark")},findMarksAt:function(n){n=jt(this,n);var i=[],a=$t(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=jt(this,n),i=jt(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(p){var m=p.markedSpans;if(m)for(var b=0;b<m.length;b++){var x=m[b];!(x.to!=null&&u==n.line&&n.ch>=x.to||x.from==null&&u!=n.line||x.from!=null&&u==i.line&&x.from>=i.ch)&&(!a||a(x.marker))&&l.push(x.marker.parent||x.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 p=u.text.length+l;if(p>n)return i=n,!0;n-=p,++a}),jt(this,Y(a,i))},indexFromPos:function(n){n=jt(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 hn(Es(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 hn(Es(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}],Q1(l,Qp(this)),l},unlinkDoc:function(n){if(n instanceof we&&(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),tx(Qp(this));break}}if(n.history==this.history){var l=[n.id];ci(n,function(u){return l.push(u.id)},!0),n.history=new _a(null),n.history.done=Ho(this.history.done,l),n.history.undone=Ho(this.history.undone,l)}},iterLinkedDocs:function(n){ci(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):Hn(n)},lineSeparator:function(){return this.lineSep||`
|
|
35
|
+
`},setDirection:Be(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&W1(this.cm))})}),hn.prototype.eachLine=hn.prototype.iter;var tg=0;function nx(n){var i=this;if(eg(i),!(Ce(i,n)||Ir(i.display,n))){Ze(n),d&&(tg=+new Date);var a=Yi(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,p=Array(u),m=0,b=function(){++m==u&&qe(i,function(){a=jt(i.doc,a);var W={from:a,to:a,text:i.doc.splitLines(p.filter(function(Z){return Z!=null}).join(i.doc.lineSeparator())),origin:"paste"};Bo(i.doc,W),Fp(i.doc,li(jt(i.doc,a),jt(i.doc,ai(W))))})()},x=function(W,Z){if(i.options.allowDropFileTypes&&Et(i.options.allowDropFileTypes,W.type)==-1){b();return}var at=new FileReader;at.onerror=function(){return b()},at.onload=function(){var gt=at.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(gt)){b();return}p[Z]=gt,b()},at.readAsText(W)},S=0;S<l.length;S++)x(l[S],S);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 N=n.dataTransfer.getData("Text");if(N){var D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),Ca(i.doc,li(a,a)),D)for(var j=0;j<D.length;++j)Wo(i.doc,"",D[j].anchor,D[j].head,"drag");i.replaceSelection(N,"around","paste"),i.display.input.focus()}}catch{}}}}function rx(n,i){if(d&&(!n.state.draggingText||+new Date-tg<100)){ti(i);return}if(!(Ce(n,i)||Ir(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!M)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",L&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),L&&a.parentNode.removeChild(a)}}function ix(n,i){var a=Yi(n,i);if(a){var l=document.createDocumentFragment();Ou(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)),z(n.display.dragCursor,l)}}function eg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function ng(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 p=0;p<a.length;p++)n(a[p])})}}var rg=!1;function ox(){rg||(sx(),rg=!0)}function sx(){var n;Rt(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,ng(lx)},100))}),Rt(window,"blur",function(){return ng(zo)})}function lx(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var fi={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"},Ks=0;Ks<10;Ks++)fi[Ks+48]=fi[Ks+96]=String(Ks);for(var La=65;La<=90;La++)fi[La]=String.fromCharCode(La);for(var Xs=1;Xs<=12;Xs++)fi[Xs+111]=fi[Xs+63235]="F"+Xs;var Hr={};Hr.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"},Hr.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"},Hr.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"},Hr.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"]},Hr.default=H?Hr.macDefault:Hr.pcDefault;function ax(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,p,m=0;m<i.length-1;m++){var b=i[m];if(/^(cmd|meta|m)$/i.test(b))p=!0;else if(/^a(lt)?$/i.test(b))a=!0;else if(/^(c|ctrl|control)$/i.test(b))l=!0;else if(/^s(hift)?$/i.test(b))u=!0;else throw new Error("Unrecognized modifier name: "+b)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),p&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function cx(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=bt(a.split(" "),ax),p=0;p<u.length;p++){var m=void 0,b=void 0;p==u.length-1?(b=u.join(" "),m=l):(b=u.slice(0,p+1).join(" "),m="...");var x=i[b];if(!x)i[b]=m;else if(x!=m)throw new Error("Inconsistent bindings for "+b)}delete n[a]}for(var S in i)n[S]=i[S];return n}function jo(n,i,a,l){i=Aa(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 jo(n,i.fallthrough,a,l);for(var p=0;p<i.fallthrough.length;p++){var m=jo(n,i.fallthrough[p],a,l);if(m)return m}}}function ig(n){var i=typeof n=="string"?n:fi[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function og(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(st?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(st?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function sg(n,i){if(L&&n.keyCode==34&&n.char)return!1;var a=fi[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),og(a,n,i))}function Aa(n){return typeof n=="string"?Hr[n]:n}function Vo(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var p=i(a[u]);l.length&&St(p.from,lt(l).to)<=0;){var m=l.pop();if(St(m.from,p.from)<0){p.from=m.from;break}}l.push(p)}kn(n,function(){for(var b=l.length-1;b>=0;b--)Wo(n.doc,"",l[b].from,l[b].to,"+delete");Io(n)})}function Zu(n,i,a){var l=ze(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Ju(n,i,a){var l=Zu(n,i.ch,a);return l==null?null:new Y(i.line,l,a<0?"after":"before")}function Qu(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var p=Bt(a,i.doc.direction);if(p){var m=u<0?lt(p):p[0],b=u<0==(m.level==1),x=b?"after":"before",S;if(m.level>0||i.doc.direction=="rtl"){var N=Oo(i,a);S=u<0?a.text.length-1:0;var D=br(i,N,S).top;S=Ke(function(j){return br(i,N,j).top==D},u<0==(m.level==1)?m.from:m.to-1,S),x=="before"&&(S=Zu(a,S,1))}else S=u<0?m.to:m.from;return new Y(l,S,x)}}return new Y(l,u<0?a.text.length:0,u<0?"before":"after")}function ux(n,i,a,l){var u=Bt(i,n.doc.direction);if(!u)return Ju(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 p=Yn(u,a.ch,a.sticky),m=u[p];if(n.doc.direction=="ltr"&&m.level%2==0&&(l>0?m.to>a.ch:m.from<a.ch))return Ju(i,a,l);var b=function(wt,Ct){return Zu(i,wt instanceof Y?wt.ch:wt,Ct)},x,S=function(wt){return n.options.lineWrapping?(x=x||Oo(n,i),fp(n,i,x,wt)):{begin:0,end:i.text.length}},N=S(a.sticky=="before"?b(a,-1):a.ch);if(n.doc.direction=="rtl"||m.level==1){var D=m.level==1==l<0,j=b(a,D?1:-1);if(j!=null&&(D?j<=m.to&&j<=N.end:j>=m.from&&j>=N.begin)){var W=D?"before":"after";return new Y(a.line,j,W)}}var Z=function(wt,Ct,xt){for(var Lt=function(me,We){return We?new Y(a.line,b(me,1),"before"):new Y(a.line,me,"after")};wt>=0&&wt<u.length;wt+=Ct){var Dt=u[wt],Pt=Ct>0==(Dt.level!=1),Jt=Pt?xt.begin:b(xt.end,-1);if(Dt.from<=Jt&&Jt<Dt.to||(Jt=Pt?Dt.from:b(Dt.to,-1),xt.begin<=Jt&&Jt<xt.end))return Lt(Jt,Pt)}},at=Z(p+l,l,N);if(at)return at;var gt=l>0?N.end:b(N.begin,-1);return gt!=null&&!(l>0&>==i.text.length)&&(at=Z(l>0?0:u.length-1,l,S(gt)),at)?at:null}var Ys={selectAll:Up,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),I)},killLine:function(n){return Vo(n,function(i){if(i.empty()){var a=$t(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:Y(i.head.line+1,0)}:{from:i.head,to:Y(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return Vo(n,function(i){return{from:Y(i.from().line,0),to:jt(n.doc,Y(i.to().line+1,0))}})},delLineLeft:function(n){return Vo(n,function(i){return{from:Y(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return Vo(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 Vo(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(Y(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(Y(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return lg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return ag(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return fx(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")},ot)},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")},ot)},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/)?ag(n,i.head):l},ot)},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 p=a[u].from(),m=ht(n.getLine(p.line),p.ch,l);i.push(kt(l-m%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return kn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,p=$t(n.doc,u.line).text;if(p){if(u.ch==p.length&&(u=new Y(u.line,u.ch-1)),u.ch>0)u=new Y(u.line,u.ch+1),n.replaceRange(p.charAt(u.ch-1)+p.charAt(u.ch-2),Y(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var m=$t(n.doc,u.line-1).text;m&&(u=new Y(u.line,1),n.replaceRange(p.charAt(0)+n.doc.lineSeparator()+m.charAt(m.length-1),Y(u.line-1,m.length-1),u,"+transpose"))}}a.push(new ce(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return kn(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);Io(n)})},openLine:function(n){return n.replaceSelection(`
|
|
36
|
+
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function lg(n,i){var a=$t(n.doc,i),l=nr(a);return l!=a&&(i=C(l)),Qu(!0,n,l,i,1)}function fx(n,i){var a=$t(n.doc,i),l=Kw(a);return l!=a&&(i=C(l)),Qu(!0,n,a,i,-1)}function ag(n,i){var a=lg(n,i.line),l=$t(n.doc,a.line),u=Bt(l,n.doc.direction);if(!u||u[0].level==0){var p=Math.max(a.ch,l.text.search(/\S/)),m=i.line==a.line&&i.ch<=p&&i.ch;return Y(a.line,m?0:p,a.sticky)}return a}function Ma(n,i,a){if(typeof i=="string"&&(i=Ys[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)!=O}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function hx(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=jo(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&jo(i,n.options.extraKeys,a,n)||jo(i,n.options.keyMap,a,n)}var dx=new Nt;function Zs(n,i,a,l){var u=n.state.keySeq;if(u){if(ig(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:dx.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),cg(n,u+" "+i,a,l))return!0}return cg(n,i,a,l)}function cg(n,i,a,l){var u=hx(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&He(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(Ze(a),Ru(n)),!!u}function ug(n,i){var a=sg(i,!0);return a?i.shiftKey&&!n.state.keySeq?Zs(n,"Shift-"+a,i,function(l){return Ma(n,l,!0)})||Zs(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Ma(n,l)}):Zs(n,a,i,function(l){return Ma(n,l)}):!1}function px(n,i,a){return Zs(n,"'"+a+"'",i,function(l){return Ma(n,l,!0)})}var tf=null;function fg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=mt(ne(i)),!Ce(i,n))){d&&g<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=ug(i,n);L&&(tf=l?a:null,!l&&a==88&&!ia&&(H?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!H&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&gx(i)}}function gx(n){var i=n.display.lineDiv;Mt(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(rt(i,"CodeMirror-crosshair"),Ye(document,"keyup",a),Ye(document,"mouseover",a))}Rt(document,"keyup",a),Rt(document,"mouseover",a)}function hg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Ce(this,n)}function dg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(Ir(i.display,n)||Ce(i,n)||n.ctrlKey&&!n.altKey||H&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(L&&a==tf){tf=null,Ze(n);return}if(!(L&&(!n.which||n.which<10)&&ug(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(px(i,n,u)||i.display.input.onKeyPress(n))}}}var vx=400,ef=function(n,i,a){this.time=n,this.pos=i,this.button=a};ef.prototype.compare=function(n,i,a){return this.time+vx>n&&St(i,this.pos)==0&&a==this.button};var Js,Qs;function mx(n,i){var a=+new Date;return Qs&&Qs.compare(a,n,i)?(Js=Qs=null,"triple"):Js&&Js.compare(a,n,i)?(Qs=new ef(a,n,i),Js=null,"double"):(Js=new ef(a,n,i),Qs=null,"single")}function pg(n){var i=this,a=i.display;if(!(Ce(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,Ir(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!nf(i,n)){var l=Yi(i,n),u=Jn(n),p=l?mx(l,u):"single";Tt(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&yx(i,u,l,p,n))&&(u==1?l?wx(i,l,p,n):ks(n)==a.scroller&&Ze(n):u==2?(l&&ka(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(X?i.display.input.onContextMenu(n):Du(i)))}}}function yx(n,i,a,l,u){var p="Click";return l=="double"?p="Double"+p:l=="triple"&&(p="Triple"+p),p=(i==1?"Left":i==2?"Middle":"Right")+p,Zs(n,og(p,u),u,function(m){if(typeof m=="string"&&(m=Ys[m]),!m)return!1;var b=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),b=m(n,a)!=O}finally{n.state.suppressEdits=!1}return b})}function bx(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var p=F?a.shiftKey&&a.metaKey:a.altKey;u.unit=p?"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=H?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(H?a.altKey:a.ctrlKey)),u}function wx(n,i,a,l){d?setTimeout(G(gp,n),0):n.curOp.focus=mt(ne(n));var u=bx(n,a,l),p=n.doc.sel,m;n.options.dragDrop&&pu&&!n.isReadOnly()&&a=="single"&&(m=p.contains(i))>-1&&(St((m=p.ranges[m]).from(),i)<0||i.xRel>0)&&(St(m.to(),i)>0||i.xRel<0)?xx(n,l,i,u):_x(n,l,i,u)}function xx(n,i,a,l){var u=n.display,p=!1,m=qe(n,function(S){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:Du(n)),Ye(u.wrapper.ownerDocument,"mouseup",m),Ye(u.wrapper.ownerDocument,"mousemove",b),Ye(u.scroller,"dragstart",x),Ye(u.scroller,"drop",m),p||(Ze(S),l.addNew||ka(n.doc,a,null,null,l.extend),v&&!M||d&&g==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),b=function(S){p=p||Math.abs(i.clientX-S.clientX)+Math.abs(i.clientY-S.clientY)>=10},x=function(){return p=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=m,m.copy=!l.moveOnDrag,Rt(u.wrapper.ownerDocument,"mouseup",m),Rt(u.wrapper.ownerDocument,"mousemove",b),Rt(u.scroller,"dragstart",x),Rt(u.scroller,"drop",m),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function gg(n,i,a){if(a=="char")return new ce(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new ce(Y(i.line,0),jt(n.doc,Y(i.line+1,0)));var l=a(n,i);return new ce(l.from,l.to)}function _x(n,i,a,l){d&&Du(n);var u=n.display,p=n.doc;Ze(i);var m,b,x=p.sel,S=x.ranges;if(l.addNew&&!l.extend?(b=p.sel.contains(a),b>-1?m=S[b]:m=new ce(a,a)):(m=p.sel.primary(),b=p.sel.primIndex),l.unit=="rectangle")l.addNew||(m=new ce(a,a)),a=Yi(n,i,!0,!0),b=-1;else{var N=gg(n,a,l.unit);l.extend?m=Xu(m,N.anchor,N.head,l.extend):m=N}l.addNew?b==-1?(b=S.length,Je(p,ir(n,S.concat([m]),b),{scroll:!1,origin:"*mouse"})):S.length>1&&S[b].empty()&&l.unit=="char"&&!l.extend?(Je(p,ir(n,S.slice(0,b).concat(S.slice(b+1)),0),{scroll:!1,origin:"*mouse"}),x=p.sel):Yu(p,b,m,K):(b=0,Je(p,new Pn([m],0),K),x=p.sel);var D=a;function j(xt){if(St(D,xt)!=0)if(D=xt,l.unit=="rectangle"){for(var Lt=[],Dt=n.options.tabSize,Pt=ht($t(p,a.line).text,a.ch,Dt),Jt=ht($t(p,xt.line).text,xt.ch,Dt),me=Math.min(Pt,Jt),We=Math.max(Pt,Jt),_e=Math.min(a.line,xt.line),Cn=Math.min(n.lastLine(),Math.max(a.line,xt.line));_e<=Cn;_e++){var dn=$t(p,_e).text,Me=nt(dn,me,Dt);me==We?Lt.push(new ce(Y(_e,Me),Y(_e,Me))):dn.length>Me&&Lt.push(new ce(Y(_e,Me),Y(_e,nt(dn,We,Dt))))}Lt.length||Lt.push(new ce(a,a)),Je(p,ir(n,x.ranges.slice(0,b).concat(Lt),b),{origin:"*mouse",scroll:!1}),n.scrollIntoView(xt)}else{var pn=m,je=gg(n,xt,l.unit),Ie=pn.anchor,Ne;St(je.anchor,Ie)>0?(Ne=je.head,Ie=No(pn.from(),je.anchor)):(Ne=je.anchor,Ie=un(pn.to(),je.head));var Ee=x.ranges.slice(0);Ee[b]=Sx(n,new ce(jt(p,Ie),Ne)),Je(p,ir(n,Ee,b),K)}}var W=u.wrapper.getBoundingClientRect(),Z=0;function at(xt){var Lt=++Z,Dt=Yi(n,xt,!0,l.unit=="rectangle");if(Dt)if(St(Dt,D)!=0){n.curOp.focus=mt(ne(n)),j(Dt);var Pt=ya(u,p);(Dt.line>=Pt.to||Dt.line<Pt.from)&&setTimeout(qe(n,function(){Z==Lt&&at(xt)}),150)}else{var Jt=xt.clientY<W.top?-20:xt.clientY>W.bottom?20:0;Jt&&setTimeout(qe(n,function(){Z==Lt&&(u.scroller.scrollTop+=Jt,at(xt))}),50)}}function gt(xt){n.state.selectingText=!1,Z=1/0,xt&&(Ze(xt),u.input.focus()),Ye(u.wrapper.ownerDocument,"mousemove",wt),Ye(u.wrapper.ownerDocument,"mouseup",Ct),p.history.lastSelOrigin=null}var wt=qe(n,function(xt){xt.buttons===0||!Jn(xt)?gt(xt):at(xt)}),Ct=qe(n,gt);n.state.selectingText=Ct,Rt(u.wrapper.ownerDocument,"mousemove",wt),Rt(u.wrapper.ownerDocument,"mouseup",Ct)}function Sx(n,i){var a=i.anchor,l=i.head,u=$t(n.doc,a.line);if(St(a,l)==0&&a.sticky==l.sticky)return i;var p=Bt(u);if(!p)return i;var m=Yn(p,a.ch,a.sticky),b=p[m];if(b.from!=a.ch&&b.to!=a.ch)return i;var x=m+(b.from==a.ch==(b.level!=1)?0:1);if(x==0||x==p.length)return i;var S;if(l.line!=a.line)S=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var N=Yn(p,l.ch,l.sticky),D=N-m||(l.ch-a.ch)*(b.level==1?-1:1);N==x-1||N==x?S=D<0:S=D>0}var j=p[x+(S?-1:0)],W=S==(j.level==1),Z=W?j.from:j.to,at=W?"after":"before";return a.ch==Z&&a.sticky==at?i:new ce(new Y(a.line,Z,at),l)}function vg(n,i,a,l){var u,p;if(i.touches)u=i.touches[0].clientX,p=i.touches[0].clientY;else try{u=i.clientX,p=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&Ze(i);var m=n.display,b=m.lineDiv.getBoundingClientRect();if(p>b.bottom||!Sn(n,a))return cn(i);p-=b.top-m.viewOffset;for(var x=0;x<n.display.gutterSpecs.length;++x){var S=m.gutters.childNodes[x];if(S&&S.getBoundingClientRect().right>=u){var N=R(n.doc,p),D=n.display.gutterSpecs[x];return ke(n,a,n,N,D.className,i),cn(i)}}}function nf(n,i){return vg(n,i,"gutterClick",!0)}function mg(n,i){Ir(n.display,i)||kx(n,i)||Ce(n,i,"contextmenu")||X||n.display.input.onContextMenu(i)}function kx(n,i){return Sn(n,"gutterContextMenu")?vg(n,i,"gutterContextMenu",!1):!1}function yg(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ps(n)}var Go={toString:function(){return"CodeMirror.Init"}},bg={},Na={};function Cx(n){var i=n.optionHandlers;function a(l,u,p,m){n.defaults[l]=u,p&&(i[l]=m?function(b,x,S){S!=Go&&p(b,x,S)}:p)}n.defineOption=a,n.Init=Go,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Vu(l)},!0),a("indentUnit",2,Vu,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){qs(l),Ps(l),fn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var p=[],m=l.doc.first;l.doc.iter(function(x){for(var S=0;;){var N=x.text.indexOf(u,S);if(N==-1)break;S=N+u.length,p.push(Y(m,N))}m++});for(var b=p.length-1;b>=0;b--)Wo(l.doc,u,p[b],Y(p[b].line,p[b].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,p){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),p!=Go&&l.refresh()}),a("specialCharPlaceholder",t1,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",$?"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",!ct),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){yg(l),Hs(l)},!0),a("keyMap","default",function(l,u,p){var m=Aa(u),b=p!=Go&&Aa(p);b&&b.detach&&b.detach(l,m),m.attach&&m.attach(l,b||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,Ex,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Uu(u,l.options.lineNumbers),Hs(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?$u(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return Fo(l)},!0),a("scrollbarStyle","native",function(l){xp(l),Fo(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=Uu(l.options.gutters,u),Hs(l)},!0),a("firstLineNumber",1,Hs,!0),a("lineNumberFormatter",function(l){return l},Hs,!0),a("showCursorWhenSelecting",!1,Os,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(zo(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,Tx),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Os,!0),a("singleCursorHeightPerLine",!0,Os,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,qs,!0),a("addModeClass",!1,qs,!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,qs,!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 Tx(n,i,a){var l=a&&a!=Go;if(!i!=!l){var u=n.display.dragFunctions,p=i?Rt:Ye;p(n.display.scroller,"dragstart",u.start),p(n.display.scroller,"dragenter",u.enter),p(n.display.scroller,"dragover",u.over),p(n.display.scroller,"dragleave",u.leave),p(n.display.scroller,"drop",u.drop)}}function Ex(n){n.options.lineWrapping?(Mt(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(rt(n.display.wrapper,"CodeMirror-wrap"),_u(n)),Pu(n),fn(n),Ps(n),setTimeout(function(){return Fo(n)},100)}function we(n,i){var a=this;if(!(this instanceof we))return new we(n,i);this.options=i=i?it(i):{},it(bg,i,!1);var l=i.value;typeof l=="string"?l=new hn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new we.inputStyles[i.inputStyle](this),p=this.display=new H1(n,l,u,i);p.wrapper.CodeMirror=this,yg(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xp(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 Nt,keySeq:null,specialChars:null},i.autofocus&&!$&&p.input.focus(),d&&g<11&&setTimeout(function(){return a.display.input.reset(!0)},20),Lx(this),ox(),to(this),this.curOp.forceUpdate=!0,Np(this,l),i.autofocus&&!$||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&zu(a)},20):zo(this);for(var m in Na)Na.hasOwnProperty(m)&&Na[m](this,i[m],Go);kp(this),i.finishInit&&i.finishInit(this);for(var b=0;b<rf.length;++b)rf[b](this);eo(this),v&&i.lineWrapping&&getComputedStyle(p.lineDiv).textRendering=="optimizelegibility"&&(p.lineDiv.style.textRendering="auto")}we.defaults=bg,we.optionHandlers=Na;function Lx(n){var i=n.display;Rt(i.scroller,"mousedown",qe(n,pg)),d&&g<11?Rt(i.scroller,"dblclick",qe(n,function(x){if(!Ce(n,x)){var S=Yi(n,x);if(!(!S||nf(n,x)||Ir(n.display,x))){Ze(x);var N=n.findWordAt(S);ka(n.doc,N.anchor,N.head)}}})):Rt(i.scroller,"dblclick",function(x){return Ce(n,x)||Ze(x)}),Rt(i.scroller,"contextmenu",function(x){return mg(n,x)}),Rt(i.input.getField(),"contextmenu",function(x){i.scroller.contains(x.target)||mg(n,x)});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 p(x){if(x.touches.length!=1)return!1;var S=x.touches[0];return S.radiusX<=1&&S.radiusY<=1}function m(x,S){if(S.left==null)return!0;var N=S.left-x.left,D=S.top-x.top;return N*N+D*D>20*20}Rt(i.scroller,"touchstart",function(x){if(!Ce(n,x)&&!p(x)&&!nf(n,x)){i.input.ensurePolled(),clearTimeout(a);var S=+new Date;i.activeTouch={start:S,moved:!1,prev:S-l.end<=300?l:null},x.touches.length==1&&(i.activeTouch.left=x.touches[0].pageX,i.activeTouch.top=x.touches[0].pageY)}}),Rt(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Rt(i.scroller,"touchend",function(x){var S=i.activeTouch;if(S&&!Ir(i,x)&&S.left!=null&&!S.moved&&new Date-S.start<300){var N=n.coordsChar(i.activeTouch,"page"),D;!S.prev||m(S,S.prev)?D=new ce(N,N):!S.prev.prev||m(S,S.prev.prev)?D=n.findWordAt(N):D=new ce(Y(N.line,0),jt(n.doc,Y(N.line+1,0))),n.setSelection(D.anchor,D.head),n.focus(),Ze(x)}u()}),Rt(i.scroller,"touchcancel",u),Rt(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Ds(n,i.scroller.scrollTop),Ji(n,i.scroller.scrollLeft,!0),ke(n,"scroll",n))}),Rt(i.scroller,"mousewheel",function(x){return Ep(n,x)}),Rt(i.scroller,"DOMMouseScroll",function(x){return Ep(n,x)}),Rt(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(x){Ce(n,x)||ti(x)},over:function(x){Ce(n,x)||(ix(n,x),ti(x))},start:function(x){return rx(n,x)},drop:qe(n,nx),leave:function(x){Ce(n,x)||eg(n)}};var b=i.input.getField();Rt(b,"keyup",function(x){return hg.call(n,x)}),Rt(b,"keydown",qe(n,fg)),Rt(b,"keypress",qe(n,dg)),Rt(b,"focus",function(x){return zu(n,x)}),Rt(b,"blur",function(x){return zo(n,x)})}var rf=[];we.defineInitHook=function(n){return rf.push(n)};function tl(n,i,a,l){var u=n.doc,p;a==null&&(a="add"),a=="smart"&&(u.mode.indent?p=Ls(n,i).state:a="prev");var m=n.options.tabSize,b=$t(u,i),x=ht(b.text,null,m);b.stateAfter&&(b.stateAfter=null);var S=b.text.match(/^\s*/)[0],N;if(!l&&!/\S/.test(b.text))N=0,a="not";else if(a=="smart"&&(N=u.mode.indent(p,b.text.slice(S.length),b.text),N==O||N>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?N=ht($t(u,i-1).text,null,m):N=0:a=="add"?N=x+n.options.indentUnit:a=="subtract"?N=x-n.options.indentUnit:typeof a=="number"&&(N=x+a),N=Math.max(0,N);var D="",j=0;if(n.options.indentWithTabs)for(var W=Math.floor(N/m);W;--W)j+=m,D+=" ";if(j<N&&(D+=kt(N-j)),D!=S)return Wo(u,D,Y(i,0),Y(i,S.length),"+input"),b.stateAfter=null,!0;for(var Z=0;Z<u.sel.ranges.length;Z++){var at=u.sel.ranges[Z];if(at.head.line==i&&at.head.ch<S.length){var gt=Y(i,S.length);Yu(u,Z,new ce(gt,gt));break}}}var or=null;function $a(n){or=n}function of(n,i,a,l,u){var p=n.doc;n.display.shift=!1,l||(l=p.sel);var m=+new Date-200,b=u=="paste"||n.state.pasteIncoming>m,x=Hn(i),S=null;if(b&&l.ranges.length>1)if(or&&or.text.join(`
|
|
37
|
+
`)==i){if(l.ranges.length%or.text.length==0){S=[];for(var N=0;N<or.text.length;N++)S.push(p.splitLines(or.text[N]))}}else x.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(S=bt(x,function(wt){return[wt]}));for(var D=n.curOp.updateInput,j=l.ranges.length-1;j>=0;j--){var W=l.ranges[j],Z=W.from(),at=W.to();W.empty()&&(a&&a>0?Z=Y(Z.line,Z.ch-a):n.state.overwrite&&!b?at=Y(at.line,Math.min($t(p,at.line).text.length,at.ch+lt(x).length)):b&&or&&or.lineWise&&or.text.join(`
|
|
38
|
+
`)==x.join(`
|
|
39
|
+
`)&&(Z=at=Y(Z.line,0)));var gt={from:Z,to:at,text:S?S[j%S.length]:x,origin:u||(b?"paste":n.state.cutIncoming>m?"cut":"+input")};Bo(n.doc,gt),He(n,"inputRead",n,gt)}i&&!b&&xg(n,i),Io(n),n.curOp.updateInput<2&&(n.curOp.updateInput=D),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function wg(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&kn(i,function(){return of(i,a,0,null,"paste")}),!0}function xg(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 p=n.getModeAt(u.head),m=!1;if(p.electricChars){for(var b=0;b<p.electricChars.length;b++)if(i.indexOf(p.electricChars.charAt(b))>-1){m=tl(n,u.head.line,"smart");break}}else p.electricInput&&p.electricInput.test($t(n.doc,u.head.line).text.slice(0,u.head.ch))&&(m=tl(n,u.head.line,"smart"));m&&He(n,"electricInput",n,u.head.line)}}}function _g(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,p={anchor:Y(u,0),head:Y(u+1,0)};a.push(p),i.push(n.getRange(p.anchor,p.head))}return{text:i,ranges:a}}function sf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function Sg(){var n=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),E&&(n.style.border="1px solid black"),i}function Ax(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Tt(this).focus(),this.display.input.focus()},setOption:function(l,u){var p=this.options,m=p[l];p[l]==u&&l!="mode"||(p[l]=u,i.hasOwnProperty(l)&&qe(this,i[l])(this,u,m),ke(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"](Aa(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,p=0;p<u.length;++p)if(u[p]==l||u[p].name==l)return u.splice(p,1),!0},addOverlay:en(function(l,u){var p=l.token?l:n.getMode(this.options,l);if(p.startState)throw new Error("Overlays may not be stateful.");dt(this.state.overlays,{mode:p,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(m){return m.priority}),this.state.modeGen++,fn(this)}),removeOverlay:en(function(l){for(var u=this.state.overlays,p=0;p<u.length;++p){var m=u[p].modeSpec;if(m==l||typeof l=="string"&&m.name==l){u.splice(p,1),this.state.modeGen++,fn(this);return}}}),indentLine:en(function(l,u,p){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),et(this.doc,l)&&tl(this,l,u,p)}),indentSelection:en(function(l){for(var u=this.doc.sel.ranges,p=-1,m=0;m<u.length;m++){var b=u[m];if(b.empty())b.head.line>p&&(tl(this,b.head.line,l,!0),p=b.head.line,m==this.doc.sel.primIndex&&Io(this));else{var x=b.from(),S=b.to(),N=Math.max(p,x.line);p=Math.min(this.lastLine(),S.line-(S.ch?0:1))+1;for(var D=N;D<p;++D)tl(this,D,l);var j=this.doc.sel.ranges;x.ch==0&&u.length==j.length&&j[m].from().ch>0&&Yu(this.doc,m,new ce(x,j[m].to()),I)}}}),getTokenAt:function(l,u){return Pd(this,l,u)},getLineTokens:function(l,u){return Pd(this,Y(l),u,!0)},getTokenTypeAt:function(l){l=jt(this.doc,l);var u=Md(this,$t(this.doc,l.line)),p=0,m=(u.length-1)/2,b=l.ch,x;if(b==0)x=u[2];else for(;;){var S=p+m>>1;if((S?u[S*2-1]:0)>=b)m=S;else if(u[S*2+1]<b)p=S+1;else{x=u[S*2+2];break}}var N=x?x.indexOf("overlay "):-1;return N<0?x:N==0?null:x.slice(0,N-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 p=[];if(!a.hasOwnProperty(u))return p;var m=a[u],b=this.getModeAt(l);if(typeof b[u]=="string")m[b[u]]&&p.push(m[b[u]]);else if(b[u])for(var x=0;x<b[u].length;x++){var S=m[b[u][x]];S&&p.push(S)}else b.helperType&&m[b.helperType]?p.push(m[b.helperType]):m[b.name]&&p.push(m[b.name]);for(var N=0;N<m._global.length;N++){var D=m._global[N];D.pred(b,this)&&Et(p,D.val)==-1&&p.push(D.val)}return p},getStateAfter:function(l,u){var p=this.doc;return l=Ed(p,l??p.first+p.size-1),Ls(this,l+1,u).state},cursorCoords:function(l,u){var p,m=this.doc.sel.primary();return l==null?p=m.head:typeof l=="object"?p=jt(this.doc,l):p=l?m.from():m.to(),rr(this,p,u||"page")},charCoords:function(l,u){return pa(this,jt(this.doc,l),u||"page")},coordsChar:function(l,u){return l=ap(this,l,u||"page"),Au(this,l.left,l.top)},lineAtHeight:function(l,u){return l=ap(this,{top:l,left:0},u||"page").top,R(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,p){var m=!1,b;if(typeof l=="number"){var x=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>x&&(l=x,m=!0),b=$t(this.doc,l)}else b=l;return da(this,b,{top:0,left:0},u||"page",p||m).top+(m?this.doc.height-zr(b):0)},defaultTextHeight:function(){return Ro(this.display)},defaultCharWidth:function(){return Do(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,p,m,b){var x=this.display;l=rr(this,jt(this.doc,l));var S=l.bottom,N=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),x.sizer.appendChild(u),m=="over")S=l.top;else if(m=="above"||m=="near"){var D=Math.max(x.wrapper.clientHeight,this.doc.height),j=Math.max(x.sizer.clientWidth,x.lineSpace.clientWidth);(m=="above"||l.bottom+u.offsetHeight>D)&&l.top>u.offsetHeight?S=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=D&&(S=l.bottom),N+u.offsetWidth>j&&(N=j-u.offsetWidth)}u.style.top=S+"px",u.style.left=u.style.right="",b=="right"?(N=x.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(b=="left"?N=0:b=="middle"&&(N=(x.sizer.clientWidth-u.offsetWidth)/2),u.style.left=N+"px"),p&&T1(this,{left:N,top:S,right:N+u.offsetWidth,bottom:S+u.offsetHeight})},triggerOnKeyDown:en(fg),triggerOnKeyPress:en(dg),triggerOnKeyUp:hg,triggerOnMouseDown:en(pg),execCommand:function(l){if(Ys.hasOwnProperty(l))return Ys[l].call(null,this)},triggerElectric:en(function(l){xg(this,l)}),findPosH:function(l,u,p,m){var b=1;u<0&&(b=-1,u=-u);for(var x=jt(this.doc,l),S=0;S<u&&(x=lf(this.doc,x,b,p,m),!x.hitSide);++S);return x},moveH:en(function(l,u){var p=this;this.extendSelectionsBy(function(m){return p.display.shift||p.doc.extend||m.empty()?lf(p.doc,m.head,l,u,p.options.rtlMoveVisually):l<0?m.from():m.to()},ot)}),deleteH:en(function(l,u){var p=this.doc.sel,m=this.doc;p.somethingSelected()?m.replaceSelection("",null,"+delete"):Vo(this,function(b){var x=lf(m,b.head,l,u,!1);return l<0?{from:x,to:b.head}:{from:b.head,to:x}})}),findPosV:function(l,u,p,m){var b=1,x=m;u<0&&(b=-1,u=-u);for(var S=jt(this.doc,l),N=0;N<u;++N){var D=rr(this,S,"div");if(x==null?x=D.left:D.left=x,S=kg(this,D,b,p),S.hitSide)break}return S},moveV:en(function(l,u){var p=this,m=this.doc,b=[],x=!this.display.shift&&!m.extend&&m.sel.somethingSelected();if(m.extendSelectionsBy(function(N){if(x)return l<0?N.from():N.to();var D=rr(p,N.head,"div");N.goalColumn!=null&&(D.left=N.goalColumn),b.push(D.left);var j=kg(p,D,l,u);return u=="page"&&N==m.sel.primary()&&Fu(p,pa(p,j,"div").top-D.top),j},ot),b.length)for(var S=0;S<m.sel.ranges.length;S++)m.sel.ranges[S].goalColumn=b[S]}),findWordAt:function(l){var u=this.doc,p=$t(u,l.line).text,m=l.ch,b=l.ch;if(p){var x=this.getHelper(l,"wordChars");(l.sticky=="before"||b==p.length)&&m?--m:++b;for(var S=p.charAt(m),N=Ut(S,x)?function(D){return Ut(D,x)}:/\s/.test(S)?function(D){return/\s/.test(D)}:function(D){return!/\s/.test(D)&&!Ut(D)};m>0&&N(p.charAt(m-1));)--m;for(;b<p.length&&N(p.charAt(b));)++b}return new ce(Y(l.line,m),Y(l.line,b))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Mt(this.display.cursorDiv,"CodeMirror-overwrite"):rt(this.display.cursorDiv,"CodeMirror-overwrite"),ke(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==mt(ne(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:en(function(l,u){Rs(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-yr(this)-this.display.barHeight,width:l.scrollWidth-yr(this)-this.display.barWidth,clientHeight:Cu(this),clientWidth:Ki(this)}},scrollIntoView:en(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:Y(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?E1(this,l):mp(this,l.from,l.to,l.margin)}),setSize:en(function(l,u){var p=this,m=function(x){return typeof x=="number"||/^\d+$/.test(String(x))?x+"px":x};l!=null&&(this.display.wrapper.style.width=m(l)),u!=null&&(this.display.wrapper.style.height=m(u)),this.options.lineWrapping&&op(this);var b=this.display.viewFrom;this.doc.iter(b,this.display.viewTo,function(x){if(x.widgets){for(var S=0;S<x.widgets.length;S++)if(x.widgets[S].noHScroll){oi(p,b,"widget");break}}++b}),this.curOp.forceUpdate=!0,ke(this,"refresh",this)}),operation:function(l){return kn(this,l)},startOperation:function(){return to(this)},endOperation:function(){return eo(this)},refresh:en(function(){var l=this.display.cachedTextHeight;fn(this),this.curOp.forceUpdate=!0,Ps(this),Rs(this,this.doc.scrollLeft,this.doc.scrollTop),Bu(this.display),(l==null||Math.abs(l-Ro(this.display))>.5||this.options.lineWrapping)&&Pu(this),ke(this,"refresh",this)}),swapDoc:en(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Np(this,l),Ps(this),this.display.input.reset(),Rs(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,He(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}},Zn(n),n.registerHelper=function(l,u,p){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=p},n.registerGlobalHelper=function(l,u,p,m){n.registerHelper(l,u,m),a[l]._global.push({pred:p,val:m})}}function lf(n,i,a,l,u){var p=i,m=a,b=$t(n,i.line),x=u&&n.direction=="rtl"?-a:a;function S(){var Ct=i.line+x;return Ct<n.first||Ct>=n.first+n.size?!1:(i=new Y(Ct,i.ch,i.sticky),b=$t(n,Ct))}function N(Ct){var xt;if(l=="codepoint"){var Lt=b.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Lt))xt=null;else{var Dt=a>0?Lt>=55296&&Lt<56320:Lt>=56320&&Lt<57343;xt=new Y(i.line,Math.max(0,Math.min(b.text.length,i.ch+a*(Dt?2:1))),-a)}}else u?xt=ux(n.cm,b,i,a):xt=Ju(b,i,a);if(xt==null)if(!Ct&&S())i=Qu(u,n.cm,b,i.line,x);else return!1;else i=xt;return!0}if(l=="char"||l=="codepoint")N();else if(l=="column")N(!0);else if(l=="word"||l=="group")for(var D=null,j=l=="group",W=n.cm&&n.cm.getHelper(i,"wordChars"),Z=!0;!(a<0&&!N(!Z));Z=!1){var at=b.text.charAt(i.ch)||`
|
|
40
|
+
`,gt=Ut(at,W)?"w":j&&at==`
|
|
41
|
+
`?"n":!j||/\s/.test(at)?null:"p";if(j&&!Z&&!gt&&(gt="s"),D&&D!=gt){a<0&&(a=1,N(),i.sticky="after");break}if(gt&&(D=gt),a>0&&!N(!Z))break}var wt=Ta(n,i,p,m,!0);return ae(p,wt)&&(wt.hitSide=!0),wt}function kg(n,i,a,l){var u=n.doc,p=i.left,m;if(l=="page"){var b=Math.min(n.display.wrapper.clientHeight,Tt(n).innerHeight||u(n).documentElement.clientHeight),x=Math.max(b-.5*Ro(n.display),3);m=(a>0?i.bottom:i.top)+a*x}else l=="line"&&(m=a>0?i.bottom+3:i.top-3);for(var S;S=Au(n,p,m),!!S.outside;){if(a<0?m<=0:m>=u.height){S.hitSide=!0;break}m+=a*5}return S}var ge=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Nt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ge.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,sf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function p(b){for(var x=b.target;x;x=x.parentNode){if(x==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(x.className))break}return!1}Rt(u,"paste",function(b){!p(b)||Ce(l,b)||wg(b,l)||g<=11&&setTimeout(qe(l,function(){return i.updateFromDOM()}),20)}),Rt(u,"compositionstart",function(b){i.composing={data:b.data,done:!1}}),Rt(u,"compositionupdate",function(b){i.composing||(i.composing={data:b.data,done:!1})}),Rt(u,"compositionend",function(b){i.composing&&(b.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Rt(u,"touchstart",function(){return a.forceCompositionEnd()}),Rt(u,"input",function(){i.composing||i.readFromDOMSoon()});function m(b){if(!(!p(b)||Ce(l,b))){if(l.somethingSelected())$a({lineWise:!1,text:l.getSelections()}),b.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var x=_g(l);$a({lineWise:!0,text:x.text}),b.type=="cut"&&l.operation(function(){l.setSelections(x.ranges,0,I),l.replaceSelection("",null,"cut")})}else return;if(b.clipboardData){b.clipboardData.clearData();var S=or.text.join(`
|
|
42
|
+
`);if(b.clipboardData.setData("Text",S),b.clipboardData.getData("Text")==S){b.preventDefault();return}}var N=Sg(),D=N.firstChild;sf(D),l.display.lineSpace.insertBefore(N,l.display.lineSpace.firstChild),D.value=or.text.join(`
|
|
43
|
+
`);var j=mt(Zt(u));Wt(D),setTimeout(function(){l.display.lineSpace.removeChild(N),j.focus(),j==u&&a.showPrimarySelection()},50)}}Rt(u,"copy",m),Rt(u,"cut",m)},ge.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},ge.prototype.prepareSelection=function(){var n=pp(this.cm,!1);return n.focus=mt(Zt(this.div))==this.div,n},ge.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},ge.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ge.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 p=Pa(i,n.anchorNode,n.anchorOffset),m=Pa(i,n.focusNode,n.focusOffset);if(!(p&&!p.bad&&m&&!m.bad&&St(No(p,m),l)==0&&St(un(p,m),u)==0)){var b=i.display.view,x=l.line>=i.display.viewFrom&&Cg(i,l)||{node:b[0].measure.map[2],offset:0},S=u.line<i.display.viewTo&&Cg(i,u);if(!S){var N=b[b.length-1].measure,D=N.maps?N.maps[N.maps.length-1]:N.map;S={node:D[D.length-1],offset:D[D.length-2]-D[D.length-3]}}if(!x||!S){n.removeAllRanges();return}var j=n.rangeCount&&n.getRangeAt(0),W;try{W=U(x.node,x.offset,S.offset,S.node)}catch{}W&&(!s&&i.state.focused?(n.collapse(x.node,x.offset),W.collapsed||(n.removeAllRanges(),n.addRange(W))):(n.removeAllRanges(),n.addRange(W)),j&&n.anchorNode==null?n.addRange(j):s&&this.startGracePeriod()),this.rememberSelection()}},ge.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)},ge.prototype.showMultipleSelections=function(n){z(this.cm.display.cursorDiv,n.cursors),z(this.cm.display.selectionDiv,n.selection)},ge.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},ge.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return Q(this.div,i)},ge.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||mt(Zt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ge.prototype.blur=function(){this.div.blur()},ge.prototype.getField=function(){return this.div},ge.prototype.supportsTouch=function(){return!0},ge.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):kn(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)},ge.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},ge.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(P&&w&&this.cm.display.gutterSpecs.length&&Mx(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Pa(i,n.anchorNode,n.anchorOffset),l=Pa(i,n.focusNode,n.focusOffset);a&&l&&kn(i,function(){Je(i.doc,li(a,l),I),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},ge.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=Y(l.line-1,$t(n.doc,l.line-1).length)),u.ch==$t(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=Y(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var p,m,b;l.line==i.viewFrom||(p=Zi(n,l.line))==0?(m=C(i.view[0].line),b=i.view[0].node):(m=C(i.view[p].line),b=i.view[p-1].node.nextSibling);var x=Zi(n,u.line),S,N;if(x==i.view.length-1?(S=i.viewTo-1,N=i.lineDiv.lastChild):(S=C(i.view[x+1].line)-1,N=i.view[x+1].node.previousSibling),!b)return!1;for(var D=n.doc.splitLines(Nx(n,b,N,m,S)),j=Rr(n.doc,Y(m,0),Y(S,$t(n.doc,S).text.length));D.length>1&&j.length>1;)if(lt(D)==lt(j))D.pop(),j.pop(),S--;else if(D[0]==j[0])D.shift(),j.shift(),m++;else break;for(var W=0,Z=0,at=D[0],gt=j[0],wt=Math.min(at.length,gt.length);W<wt&&at.charCodeAt(W)==gt.charCodeAt(W);)++W;for(var Ct=lt(D),xt=lt(j),Lt=Math.min(Ct.length-(D.length==1?W:0),xt.length-(j.length==1?W:0));Z<Lt&&Ct.charCodeAt(Ct.length-Z-1)==xt.charCodeAt(xt.length-Z-1);)++Z;if(D.length==1&&j.length==1&&m==l.line)for(;W&&W>l.ch&&Ct.charCodeAt(Ct.length-Z-1)==xt.charCodeAt(xt.length-Z-1);)W--,Z++;D[D.length-1]=Ct.slice(0,Ct.length-Z).replace(/^\u200b+/,""),D[0]=D[0].slice(W).replace(/\u200b+$/,"");var Dt=Y(m,W),Pt=Y(S,j.length?lt(j).length-Z:0);if(D.length>1||D[0]||St(Dt,Pt))return Wo(n.doc,D,Dt,Pt,"+input"),!0},ge.prototype.ensurePolled=function(){this.forceCompositionEnd()},ge.prototype.reset=function(){this.forceCompositionEnd()},ge.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ge.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))},ge.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&kn(this.cm,function(){return fn(n.cm)})},ge.prototype.setUneditable=function(n){n.contentEditable="false"},ge.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||qe(this.cm,of)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},ge.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},ge.prototype.onContextMenu=function(){},ge.prototype.resetPosition=function(){},ge.prototype.needsContentAttribute=!0;function Cg(n,i){var a=Tu(n,i.line);if(!a||a.hidden)return null;var l=$t(n.doc,i.line),u=tp(a,l,i.line),p=Bt(l,n.doc.direction),m="left";if(p){var b=Yn(p,i.ch);m=b%2?"right":"left"}var x=rp(u.map,i.ch,m);return x.offset=x.collapse=="right"?x.end:x.start,x}function Mx(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function Ko(n,i){return i&&(n.bad=!0),n}function Nx(n,i,a,l,u){var p="",m=!1,b=n.doc.lineSeparator(),x=!1;function S(W){return function(Z){return Z.id==W}}function N(){m&&(p+=b,x&&(p+=b),m=x=!1)}function D(W){W&&(N(),p+=W)}function j(W){if(W.nodeType==1){var Z=W.getAttribute("cm-text");if(Z){D(Z);return}var at=W.getAttribute("cm-marker"),gt;if(at){var wt=n.findMarks(Y(l,0),Y(u+1,0),S(+at));wt.length&&(gt=wt[0].find(0))&&D(Rr(n.doc,gt.from,gt.to).join(b));return}if(W.getAttribute("contenteditable")=="false")return;var Ct=/^(pre|div|p|li|table|br)$/i.test(W.nodeName);if(!/^br$/i.test(W.nodeName)&&W.textContent.length==0)return;Ct&&N();for(var xt=0;xt<W.childNodes.length;xt++)j(W.childNodes[xt]);/^(pre|p)$/i.test(W.nodeName)&&(x=!0),Ct&&(m=!0)}else W.nodeType==3&&D(W.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;j(i),i!=a;)i=i.nextSibling,x=!1;return p}function Pa(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return Ko(n.clipPos(Y(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 p=n.display.view[u];if(p.node==l)return $x(p,i,a)}}function $x(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!Q(l,i))return Ko(Y(C(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var p=n.rest?lt(n.rest):n.line;return Ko(Y(C(p),p.text.length),u)}var m=i.nodeType==3?i:null,b=i;for(!m&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(m=i.firstChild,a&&(a=m.nodeValue.length));b.parentNode!=l;)b=b.parentNode;var x=n.measure,S=x.maps;function N(gt,wt,Ct){for(var xt=-1;xt<(S?S.length:0);xt++)for(var Lt=xt<0?x.map:S[xt],Dt=0;Dt<Lt.length;Dt+=3){var Pt=Lt[Dt+2];if(Pt==gt||Pt==wt){var Jt=C(xt<0?n.line:n.rest[xt]),me=Lt[Dt]+Ct;return(Ct<0||Pt!=gt)&&(me=Lt[Dt+(Ct?1:0)]),Y(Jt,me)}}}var D=N(m,b,a);if(D)return Ko(D,u);for(var j=b.nextSibling,W=m?m.nodeValue.length-a:0;j;j=j.nextSibling){if(D=N(j,j.firstChild,0),D)return Ko(Y(D.line,D.ch-W),u);W+=j.textContent.length}for(var Z=b.previousSibling,at=a;Z;Z=Z.previousSibling){if(D=N(Z,Z.firstChild,-1),D)return Ko(Y(D.line,D.ch+at),u);at+=Z.textContent.length}}var Le=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new Nt,this.hasSelection=!1,this.composing=null,this.resetting=!1};Le.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),E&&(u.style.width="0px"),Rt(u,"input",function(){d&&g>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Rt(u,"paste",function(m){Ce(l,m)||wg(m,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function p(m){if(!Ce(l,m)){if(l.somethingSelected())$a({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var b=_g(l);$a({lineWise:!0,text:b.text}),m.type=="cut"?l.setSelections(b.ranges,null,I):(a.prevInput="",u.value=b.text.join(`
|
|
44
|
+
`),Wt(u))}else return;m.type=="cut"&&(l.state.cutIncoming=+new Date)}}Rt(u,"cut",p),Rt(u,"copy",p),Rt(n.scroller,"paste",function(m){if(!(Ir(n,m)||Ce(l,m))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var b=new Event("paste");b.clipboardData=m.clipboardData,u.dispatchEvent(b)}}),Rt(n.lineSpace,"selectstart",function(m){Ir(n,m)||Ze(m)}),Rt(u,"compositionstart",function(){var m=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:m,range:l.markText(m,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Rt(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Le.prototype.createField=function(n){this.wrapper=Sg(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;sf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Le.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Le.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=pp(n);if(n.options.moveInputWithCursor){var u=rr(n,a.sel.primary().head,"div"),p=i.wrapper.getBoundingClientRect(),m=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+m.top-p.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+m.left-p.left))}return l},Le.prototype.showSelection=function(n){var i=this.cm,a=i.display;z(a.cursorDiv,n.cursors),z(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Le.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&&Wt(this.textarea),d&&g>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",d&&g>=9&&(this.hasSelection=null));this.resetting=!1}},Le.prototype.getField=function(){return this.textarea},Le.prototype.supportsTouch=function(){return!1},Le.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!$||mt(Zt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Le.prototype.blur=function(){this.textarea.blur()},Le.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Le.prototype.receivedFocus=function(){this.slowPoll()},Le.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Le.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)},Le.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||ni(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(d&&g>=9&&this.hasSelection===u||H&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var p=u.charCodeAt(0);if(p==8203&&!l&&(l=""),p==8666)return this.reset(),this.cm.execCommand("undo")}for(var m=0,b=Math.min(l.length,u.length);m<b&&l.charCodeAt(m)==u.charCodeAt(m);)++m;return kn(i,function(){of(i,u.slice(m),l.length-m,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
|
|
45
|
+
`)>-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},Le.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Le.prototype.onKeyPress=function(){d&&g>=9&&(this.hasSelection=null),this.fastPoll()},Le.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var p=Yi(a,n),m=l.scroller.scrollTop;if(!p||L)return;var b=a.options.resetSelectionOnContextMenu;b&&a.doc.sel.contains(p)==-1&&qe(a,Je)(a.doc,li(p),I);var x=u.style.cssText,S=i.wrapper.style.cssText,N=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
46
|
+
top: `+(n.clientY-N.top-5)+"px; left: "+(n.clientX-N.left-5)+`px;
|
|
47
|
+
z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
48
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var D;v&&(D=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,D),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=W,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function j(){if(u.selectionStart!=null){var at=a.somethingSelected(),gt=""+(at?u.value:"");u.value="⇚",u.value=gt,i.prevInput=at?"":"",u.selectionStart=1,u.selectionEnd=gt.length,l.selForContextMenu=a.doc.sel}}function W(){if(i.contextMenuPending==W&&(i.contextMenuPending=!1,i.wrapper.style.cssText=S,u.style.cssText=x,d&&g<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=m),u.selectionStart!=null)){(!d||d&&g<9)&&j();var at=0,gt=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?qe(a,Up)(a):at++<10?l.detectingSelectAll=setTimeout(gt,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(gt,200)}}if(d&&g>=9&&j(),X){ti(n);var Z=function(){Ye(window,"mouseup",Z),setTimeout(W,20)};Rt(window,"mouseup",Z)}else setTimeout(W,50)},Le.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Le.prototype.setUneditable=function(){},Le.prototype.needsContentAttribute=!1;function Px(n,i){if(i=i?it(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=mt(Zt(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=b.getValue()}var u;if(n.form&&(Rt(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var p=n.form;u=p.submit;try{var m=p.submit=function(){l(),p.submit=u,p.submit(),p.submit=m}}catch{}}i.finishInit=function(x){x.save=l,x.getTextArea=function(){return n},x.toTextArea=function(){x.toTextArea=isNaN,l(),n.parentNode.removeChild(x.getWrapperElement()),n.style.display="",n.form&&(Ye(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var b=we(function(x){return n.parentNode.insertBefore(x,n.nextSibling)},i);return b}function Ox(n){n.off=Ye,n.on=Rt,n.wheelEventPixels=q1,n.Doc=hn,n.splitLines=Hn,n.countColumn=ht,n.findColumn=nt,n.isWordChar=qt,n.Pass=O,n.signal=ke,n.Line=$o,n.changeEnd=ai,n.scrollbarModel=wp,n.Pos=Y,n.cmpPos=St,n.modes=To,n.mimeModes=tr,n.resolveMode=Eo,n.getMode=Lo,n.modeExtensions=ri,n.extendMode=Ao,n.copyState=vr,n.startState=Mo,n.innerMode=Ts,n.commands=Ys,n.keyMap=Hr,n.keyName=sg,n.isModifierKey=ig,n.lookupKey=jo,n.normalizeKeyMap=cx,n.StringStream=Te,n.SharedTextMarker=Gs,n.TextMarker=ui,n.LineWidget=Vs,n.e_preventDefault=Ze,n.e_stopPropagation=ko,n.e_stop=ti,n.addClass=Mt,n.contains=Q,n.rmClass=rt,n.keyNames=fi}Cx(we),Ax(we);var Rx="iter insert remove copy getEditor constructor".split(" ");for(var Oa in hn.prototype)hn.prototype.hasOwnProperty(Oa)&&Et(Rx,Oa)<0&&(we.prototype[Oa]=function(n){return function(){return n.apply(this.doc,arguments)}}(hn.prototype[Oa]));return Zn(hn),we.inputStyles={textarea:Le,contenteditable:ge},we.defineMode=function(n){!we.defaults.mode&&n!="null"&&(we.defaults.mode=n),er.apply(this,arguments)},we.defineMIME=Gi,we.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),we.defineMIME("text/plain","null"),we.defineExtension=function(n,i){we.prototype[n]=i},we.defineDocExtension=function(n,i){hn.prototype[n]=i},we.fromTextArea=Px,Ox(we),we.version="5.65.16",we})})(Kb);var Ss=Kb.exports;const Lct=Xy(Ss);var Act={exports:{}};(function(t,e){(function(r){r(Ss)})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,h=s.jsonld,d=s.json||h,g=s.trackScope!==!1,v=s.typescript,y=s.wordCharacters||/[\w$\xa1-\uffff]/,w=function(){function C(Fe){return{type:Fe,style:"keyword"}}var R=C("keyword a"),et=C("keyword b"),pt=C("keyword c"),Y=C("keyword d"),St=C("operator"),ae={type:"atom",style:"atom"};return{if:C("if"),while:R,with:R,else:et,do:et,try:et,finally:et,return:Y,break:Y,continue:Y,new:C("new"),delete:pt,void:pt,throw:pt,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:St,typeof:St,instanceof:St,true:ae,false:ae,null:ae,undefined:ae,NaN:ae,Infinity:ae,this:C("this"),class:C("class"),super:C("atom"),yield:pt,export:C("export"),import:C("import"),extends:pt,await:pt}}(),_=/[+\-*&%=<>!?|~^@]/,L=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(C){for(var R=!1,et,pt=!1;(et=C.next())!=null;){if(!R){if(et=="/"&&!pt)return;et=="["?pt=!0:pt&&et=="]"&&(pt=!1)}R=!R&&et=="\\"}}var A,T;function E(C,R,et){return A=C,T=et,R}function P(C,R){var et=C.next();if(et=='"'||et=="'")return R.tokenize=$(et),R.tokenize(C,R);if(et=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return E("number","number");if(et=="."&&C.match(".."))return E("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(et))return E(et);if(et=="="&&C.eat(">"))return E("=>","operator");if(et=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return E("number","number");if(/\d/.test(et))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),E("number","number");if(et=="/")return C.eat("*")?(R.tokenize=H,H(C,R)):C.eat("/")?(C.skipToEnd(),E("comment","comment")):$n(C,R,1)?(M(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),E("regexp","string-2")):(C.eat("="),E("operator","operator",C.current()));if(et=="`")return R.tokenize=F,F(C,R);if(et=="#"&&C.peek()=="!")return C.skipToEnd(),E("meta","meta");if(et=="#"&&C.eatWhile(y))return E("variable","property");if(et=="<"&&C.match("!--")||et=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),E("comment","comment");if(_.test(et))return(et!=">"||!R.lexical||R.lexical.type!=">")&&(C.eat("=")?(et=="!"||et=="=")&&C.eat("="):/[<>*+\-|&?]/.test(et)&&(C.eat(et),et==">"&&C.eat(et))),et=="?"&&C.eat(".")?E("."):E("operator","operator",C.current());if(y.test(et)){C.eatWhile(y);var pt=C.current();if(R.lastType!="."){if(w.propertyIsEnumerable(pt)){var Y=w[pt];return E(Y.type,Y.style,pt)}if(pt=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return E("async","keyword",pt)}return E("variable","variable",pt)}}function $(C){return function(R,et){var pt=!1,Y;if(h&&R.peek()=="@"&&R.match(L))return et.tokenize=P,E("jsonld-keyword","meta");for(;(Y=R.next())!=null&&!(Y==C&&!pt);)pt=!pt&&Y=="\\";return pt||(et.tokenize=P),E("string","string")}}function H(C,R){for(var et=!1,pt;pt=C.next();){if(pt=="/"&&et){R.tokenize=P;break}et=pt=="*"}return E("comment","comment")}function F(C,R){for(var et=!1,pt;(pt=C.next())!=null;){if(!et&&(pt=="`"||pt=="$"&&C.eat("{"))){R.tokenize=P;break}et=!et&&pt=="\\"}return E("quasi","string-2",C.current())}var ct="([{}])";function ut(C,R){R.fatArrowAt&&(R.fatArrowAt=null);var et=C.string.indexOf("=>",C.start);if(!(et<0)){if(v){var pt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,et));pt&&(et=pt.index)}for(var Y=0,St=!1,ae=et-1;ae>=0;--ae){var Fe=C.string.charAt(ae),un=ct.indexOf(Fe);if(un>=0&&un<3){if(!Y){++ae;break}if(--Y==0){Fe=="("&&(St=!0);break}}else if(un>=3&&un<6)++Y;else if(y.test(Fe))St=!0;else if(/["'\/`]/.test(Fe))for(;;--ae){if(ae==0)return;var No=C.string.charAt(ae-1);if(No==Fe&&C.string.charAt(ae-2)!="\\"){ae--;break}}else if(St&&!Y){++ae;break}}St&&!Y&&(R.fatArrowAt=ae)}}var st={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function X(C,R,et,pt,Y,St){this.indented=C,this.column=R,this.type=et,this.prev=Y,this.info=St,pt!=null&&(this.align=pt)}function ft(C,R){if(!g)return!1;for(var et=C.localVars;et;et=et.next)if(et.name==R)return!0;for(var pt=C.context;pt;pt=pt.prev)for(var et=pt.vars;et;et=et.next)if(et.name==R)return!0}function rt(C,R,et,pt,Y){var St=C.cc;for(V.state=C,V.stream=Y,V.marked=null,V.cc=St,V.style=R,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var ae=St.length?St.pop():d?Et:ht;if(ae(et,pt)){for(;St.length&&St[St.length-1].lex;)St.pop()();return V.marked?V.marked:et=="variable"&&ft(C,pt)?"variable-2":R}}}var V={state:null,column:null,marked:null,cc:null};function z(){for(var C=arguments.length-1;C>=0;C--)V.cc.push(arguments[C])}function k(){return z.apply(null,arguments),!0}function q(C,R){for(var et=R;et;et=et.next)if(et.name==C)return!0;return!1}function U(C){var R=V.state;if(V.marked="def",!!g){if(R.context){if(R.lexical.info=="var"&&R.context&&R.context.block){var et=Q(C,R.context);if(et!=null){R.context=et;return}}else if(!q(C,R.localVars)){R.localVars=new Ht(C,R.localVars);return}}s.globalVars&&!q(C,R.globalVars)&&(R.globalVars=new Ht(C,R.globalVars))}}function Q(C,R){if(R)if(R.block){var et=Q(C,R.prev);return et?et==R.prev?R:new Mt(et,R.vars,!0):null}else return q(C,R.vars)?R:new Mt(R.prev,new Ht(C,R.vars),!1);else return null}function mt(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Mt(C,R,et){this.prev=C,this.vars=R,this.block=et}function Ht(C,R){this.name=C,this.next=R}var Wt=new Ht("this",new Ht("arguments",null));function re(){V.state.context=new Mt(V.state.context,V.state.localVars,!1),V.state.localVars=Wt}function ne(){V.state.context=new Mt(V.state.context,V.state.localVars,!0),V.state.localVars=null}re.lex=ne.lex=!0;function Zt(){V.state.localVars=V.state.context.vars,V.state.context=V.state.context.prev}Zt.lex=!0;function Tt(C,R){var et=function(){var pt=V.state,Y=pt.indented;if(pt.lexical.type=="stat")Y=pt.lexical.indented;else for(var St=pt.lexical;St&&St.type==")"&&St.align;St=St.prev)Y=St.indented;pt.lexical=new X(Y,V.stream.column(),C,null,pt.lexical,R)};return et.lex=!0,et}function G(){var C=V.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}G.lex=!0;function it(C){function R(et){return et==C?k():C==";"||et=="}"||et==")"||et=="]"?z():k(R)}return R}function ht(C,R){return C=="var"?k(Tt("vardef",R),ko,it(";"),G):C=="keyword a"?k(Tt("form"),O,ht,G):C=="keyword b"?k(Tt("form"),ht,G):C=="keyword d"?V.stream.match(/^\s*$/,!1)?k():k(Tt("stat"),K,it(";"),G):C=="debugger"?k(it(";")):C=="{"?k(Tt("}"),ne,Ke,G,Zt):C==";"?k():C=="if"?(V.state.lexical.info=="else"&&V.state.cc[V.state.cc.length-1]==G&&V.state.cc.pop()(),k(Tt("form"),O,ht,G,Co)):C=="function"?k(Hn):C=="for"?k(Tt("form"),ne,ra,ht,Zt,G):C=="class"||v&&R=="interface"?(V.marked="keyword",k(Tt("form",C=="class"?C:R),To,G)):C=="variable"?v&&R=="declare"?(V.marked="keyword",k(ht)):v&&(R=="module"||R=="enum"||R=="type")&&V.stream.match(/^\s*\w/,!1)?(V.marked="keyword",R=="enum"?k($t):R=="type"?k(ia,it("operator"),Bt,it(";")):k(Tt("form"),cn,it("{"),Tt("}"),Ke,G,G)):v&&R=="namespace"?(V.marked="keyword",k(Tt("form"),Et,ht,G)):v&&R=="abstract"?(V.marked="keyword",k(ht)):k(Tt("stat"),Ot):C=="switch"?k(Tt("form"),O,it("{"),Tt("}","switch"),ne,Ke,G,G,Zt):C=="case"?k(Et,it(":")):C=="default"?k(it(":")):C=="catch"?k(Tt("form"),re,Nt,ht,G,Zt):C=="export"?k(Tt("stat"),Eo,G):C=="import"?k(Tt("stat"),ri,G):C=="async"?k(ht):R=="@"?k(Et,ht):z(Tt("stat"),Et,it(";"),G)}function Nt(C){if(C=="(")return k(Qn,it(")"))}function Et(C,R){return I(C,R,!1)}function Xt(C,R){return I(C,R,!0)}function O(C){return C!="("?z():k(Tt(")"),K,it(")"),G)}function I(C,R,et){if(V.state.fatArrowAt==V.stream.start){var pt=et?bt:lt;if(C=="(")return k(re,Tt(")"),ee(Qn,")"),G,it("=>"),pt,Zt);if(C=="variable")return z(re,cn,it("=>"),pt,Zt)}var Y=et?nt:ot;return st.hasOwnProperty(C)?k(Y):C=="function"?k(Hn,Y):C=="class"||v&&R=="interface"?(V.marked="keyword",k(Tt("form"),gu,G)):C=="keyword c"||C=="async"?k(et?Xt:Et):C=="("?k(Tt(")"),K,it(")"),G,Y):C=="operator"||C=="spread"?k(et?Xt:Et):C=="["?k(Tt("]"),Te,G,Y):C=="{"?ze(Ut,"}",null,Y):C=="quasi"?z(vt,Y):C=="new"?k(dt(et)):k()}function K(C){return C.match(/[;\}\)\],]/)?z():z(Et)}function ot(C,R){return C==","?k(K):nt(C,R,!1)}function nt(C,R,et){var pt=et==!1?ot:nt,Y=et==!1?Et:Xt;if(C=="=>")return k(re,et?bt:lt,Zt);if(C=="operator")return/\+\+|--/.test(R)||v&&R=="!"?k(pt):v&&R=="<"&&V.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Tt(">"),ee(Bt,">"),G,pt):R=="?"?k(Et,it(":"),Y):k(Y);if(C=="quasi")return z(vt,pt);if(C!=";"){if(C=="(")return ze(Xt,")","call",pt);if(C==".")return k(qt,pt);if(C=="[")return k(Tt("]"),K,it("]"),G,pt);if(v&&R=="as")return V.marked="keyword",k(Bt,pt);if(C=="regexp")return V.state.lastType=V.marked="operator",V.stream.backUp(V.stream.pos-V.stream.start-1),k(Y)}}function vt(C,R){return C!="quasi"?z():R.slice(R.length-2)!="${"?k(vt):k(K,kt)}function kt(C){if(C=="}")return V.marked="string-2",V.state.tokenize=F,k(vt)}function lt(C){return ut(V.stream,V.state),z(C=="{"?ht:Et)}function bt(C){return ut(V.stream,V.state),z(C=="{"?ht:Xt)}function dt(C){return function(R){return R=="."?k(C?zt:At):R=="variable"&&v?k(Sn,C?nt:ot):z(C?Xt:Et)}}function At(C,R){if(R=="target")return V.marked="keyword",k(ot)}function zt(C,R){if(R=="target")return V.marked="keyword",k(nt)}function Ot(C){return C==":"?k(G,ht):z(ot,it(";"),G)}function qt(C){if(C=="variable")return V.marked="property",k()}function Ut(C,R){if(C=="async")return V.marked="property",k(Ut);if(C=="variable"||V.style=="keyword"){if(V.marked="property",R=="get"||R=="set")return k(pe);var et;return v&&V.state.fatArrowAt==V.stream.start&&(et=V.stream.match(/^\s*:\s*/,!1))&&(V.state.fatArrowAt=V.stream.pos+et[0].length),k(te)}else{if(C=="number"||C=="string")return V.marked=h?"property":V.style+" property",k(te);if(C=="jsonld-keyword")return k(te);if(v&&mt(R))return V.marked="keyword",k(Ut);if(C=="[")return k(Et,Xn,it("]"),te);if(C=="spread")return k(Xt,te);if(R=="*")return V.marked="keyword",k(Ut);if(C==":")return z(te)}}function pe(C){return C!="variable"?z(te):(V.marked="property",k(Hn))}function te(C){if(C==":")return k(Xt);if(C=="(")return z(Hn)}function ee(C,R,et){function pt(Y,St){if(et?et.indexOf(Y)>-1:Y==","){var ae=V.state.lexical;return ae.info=="call"&&(ae.pos=(ae.pos||0)+1),k(function(Fe,un){return Fe==R||un==R?z():z(C)},pt)}return Y==R||St==R?k():et&&et.indexOf(";")>-1?z(C):k(it(R))}return function(Y,St){return Y==R||St==R?k():z(C,pt)}}function ze(C,R,et){for(var pt=3;pt<arguments.length;pt++)V.cc.push(arguments[pt]);return k(Tt(R,et),ee(C,R),G)}function Ke(C){return C=="}"?k():z(ht,Ke)}function Xn(C,R){if(v){if(C==":")return k(Bt);if(R=="?")return k(Xn)}}function Nn(C,R){if(v&&(C==":"||R=="in"))return k(Bt)}function Yn(C){if(v&&C==":")return V.stream.match(/^\s*\w+\s+is\b/,!1)?k(Et,Xe,Bt):k(Bt)}function Xe(C,R){if(R=="is")return V.marked="keyword",k()}function Bt(C,R){if(R=="keyof"||R=="typeof"||R=="infer"||R=="readonly")return V.marked="keyword",k(R=="typeof"?Xt:Bt);if(C=="variable"||R=="void")return V.marked="type",k(Fn);if(R=="|"||R=="&")return k(Bt);if(C=="string"||C=="number"||C=="atom")return k(Fn);if(C=="[")return k(Tt("]"),ee(Bt,"]",","),G,Fn);if(C=="{")return k(Tt("}"),Rt,G,Fn);if(C=="(")return k(ee(Ce,")"),Vi,Fn);if(C=="<")return k(ee(Bt,">"),Bt);if(C=="quasi")return z(Ye,Fn)}function Vi(C){if(C=="=>")return k(Bt)}function Rt(C){return C.match(/[\}\)\]]/)?k():C==","||C==";"?k(Rt):z(Or,Rt)}function Or(C,R){if(C=="variable"||V.style=="keyword")return V.marked="property",k(Or);if(R=="?"||C=="number"||C=="string")return k(Or);if(C==":")return k(Bt);if(C=="[")return k(it("variable"),Nn,it("]"),Or);if(C=="(")return z(ni,Or);if(!C.match(/[;\}\)\],]/))return k()}function Ye(C,R){return C!="quasi"?z():R.slice(R.length-2)!="${"?k(Ye):k(Bt,ke)}function ke(C){if(C=="}")return V.marked="string-2",V.state.tokenize=F,k(Ye)}function Ce(C,R){return C=="variable"&&V.stream.match(/^\s*[?:]/,!1)||R=="?"?k(Ce):C==":"?k(Bt):C=="spread"?k(Ce):z(Bt)}function Fn(C,R){if(R=="<")return k(Tt(">"),ee(Bt,">"),G,Fn);if(R=="|"||C=="."||R=="&")return k(Bt);if(C=="[")return k(Bt,it("]"),Fn);if(R=="extends"||R=="implements")return V.marked="keyword",k(Bt);if(R=="?")return k(Bt,it(":"),Bt)}function Sn(C,R){if(R=="<")return k(Tt(">"),ee(Bt,">"),G,Fn)}function Zn(){return z(Bt,Ze)}function Ze(C,R){if(R=="=")return k(Bt)}function ko(C,R){return R=="enum"?(V.marked="keyword",k($t)):z(cn,Xn,Jn,pu)}function cn(C,R){if(v&&mt(R))return V.marked="keyword",k(cn);if(C=="variable")return U(R),k();if(C=="spread")return k(cn);if(C=="[")return ze(ks,"]");if(C=="{")return ze(ti,"}")}function ti(C,R){return C=="variable"&&!V.stream.match(/^\s*:/,!1)?(U(R),k(Jn)):(C=="variable"&&(V.marked="property"),C=="spread"?k(cn):C=="}"?z():C=="["?k(Et,it("]"),it(":"),ti):k(it(":"),cn,Jn))}function ks(){return z(cn,Jn)}function Jn(C,R){if(R=="=")return k(Xt)}function pu(C){if(C==",")return k(ko)}function Co(C,R){if(C=="keyword b"&&R=="else")return k(Tt("form","else"),ht,G)}function ra(C,R){if(R=="await")return k(ra);if(C=="(")return k(Tt(")"),Cs,G)}function Cs(C){return C=="var"?k(ko,ei):C=="variable"?k(ei):z(ei)}function ei(C,R){return C==")"?k():C==";"?k(ei):R=="in"||R=="of"?(V.marked="keyword",k(Et,ei)):z(Et,ei)}function Hn(C,R){if(R=="*")return V.marked="keyword",k(Hn);if(C=="variable")return U(R),k(Hn);if(C=="(")return k(re,Tt(")"),ee(Qn,")"),G,Yn,ht,Zt);if(v&&R=="<")return k(Tt(">"),ee(Zn,">"),G,Hn)}function ni(C,R){if(R=="*")return V.marked="keyword",k(ni);if(C=="variable")return U(R),k(ni);if(C=="(")return k(re,Tt(")"),ee(Qn,")"),G,Yn,Zt);if(v&&R=="<")return k(Tt(">"),ee(Zn,">"),G,ni)}function ia(C,R){if(C=="keyword"||C=="variable")return V.marked="type",k(ia);if(R=="<")return k(Tt(">"),ee(Zn,">"),G)}function Qn(C,R){return R=="@"&&k(Et,Qn),C=="spread"?k(Qn):v&&mt(R)?(V.marked="keyword",k(Qn)):v&&C=="this"?k(Xn,Jn):z(cn,Xn,Jn)}function gu(C,R){return C=="variable"?To(C,R):tr(C,R)}function To(C,R){if(C=="variable")return U(R),k(tr)}function tr(C,R){if(R=="<")return k(Tt(">"),ee(Zn,">"),G,tr);if(R=="extends"||R=="implements"||v&&C==",")return R=="implements"&&(V.marked="keyword"),k(v?Bt:Et,tr);if(C=="{")return k(Tt("}"),er,G)}function er(C,R){if(C=="async"||C=="variable"&&(R=="static"||R=="get"||R=="set"||v&&mt(R))&&V.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return V.marked="keyword",k(er);if(C=="variable"||V.style=="keyword")return V.marked="property",k(Gi,er);if(C=="number"||C=="string")return k(Gi,er);if(C=="[")return k(Et,Xn,it("]"),Gi,er);if(R=="*")return V.marked="keyword",k(er);if(v&&C=="(")return z(ni,er);if(C==";"||C==",")return k(er);if(C=="}")return k();if(R=="@")return k(Et,er)}function Gi(C,R){if(R=="!"||R=="?")return k(Gi);if(C==":")return k(Bt,Jn);if(R=="=")return k(Xt);var et=V.state.lexical.prev,pt=et&&et.info=="interface";return z(pt?ni:Hn)}function Eo(C,R){return R=="*"?(V.marked="keyword",k(Mo,it(";"))):R=="default"?(V.marked="keyword",k(Et,it(";"))):C=="{"?k(ee(Lo,"}"),Mo,it(";")):z(ht)}function Lo(C,R){if(R=="as")return V.marked="keyword",k(it("variable"));if(C=="variable")return z(Xt,Lo)}function ri(C){return C=="string"?k():C=="("?z(Et):C=="."?z(ot):z(Ao,vr,Mo)}function Ao(C,R){return C=="{"?ze(Ao,"}"):(C=="variable"&&U(R),R=="*"&&(V.marked="keyword"),k(Ts))}function vr(C){if(C==",")return k(Ao,vr)}function Ts(C,R){if(R=="as")return V.marked="keyword",k(Ao)}function Mo(C,R){if(R=="from")return V.marked="keyword",k(Et)}function Te(C){return C=="]"?k():z(ee(Xt,"]"))}function $t(){return z(Tt("form"),cn,it("{"),Tt("}"),ee(Rr,"}"),G,G)}function Rr(){return z(cn,Jn)}function Es(C,R){return C.lastType=="operator"||C.lastType==","||_.test(R.charAt(0))||/[,.]/.test(R.charAt(0))}function $n(C,R,et){return R.tokenize==P&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(R.lastType)||R.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(et||0)))}return{startState:function(C){var R={tokenize:P,lastType:"sof",cc:[],lexical:new X((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Mt(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(R.globalVars=s.globalVars),R},token:function(C,R){if(C.sol()&&(R.lexical.hasOwnProperty("align")||(R.lexical.align=!1),R.indented=C.indentation(),ut(C,R)),R.tokenize!=H&&C.eatSpace())return null;var et=R.tokenize(C,R);return A=="comment"?et:(R.lastType=A=="operator"&&(T=="++"||T=="--")?"incdec":A,rt(R,et,A,T,C))},indent:function(C,R){if(C.tokenize==H||C.tokenize==F)return r.Pass;if(C.tokenize!=P)return 0;var et=R&&R.charAt(0),pt=C.lexical,Y;if(!/^\s*else\b/.test(R))for(var St=C.cc.length-1;St>=0;--St){var ae=C.cc[St];if(ae==G)pt=pt.prev;else if(ae!=Co&&ae!=Zt)break}for(;(pt.type=="stat"||pt.type=="form")&&(et=="}"||(Y=C.cc[C.cc.length-1])&&(Y==ot||Y==nt)&&!/^[,\.=+\-*:?[\(]/.test(R));)pt=pt.prev;f&&pt.type==")"&&pt.prev.type=="stat"&&(pt=pt.prev);var Fe=pt.type,un=et==Fe;return Fe=="vardef"?pt.indented+(C.lastType=="operator"||C.lastType==","?pt.info.length+1:0):Fe=="form"&&et=="{"?pt.indented:Fe=="form"?pt.indented+c:Fe=="stat"?pt.indented+(Es(C,R)?f||c:0):pt.info=="switch"&&!un&&s.doubleIndentSwitch!=!1?pt.indented+(/^(?:case|default)\b/.test(R)?c:2*c):pt.align?pt.column+(un?0:1):pt.indented+(un?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:h,jsonMode:d,expressionAllowed:$n,skipExpression:function(C){rt(C,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var Mct=Act.exports,Nct={exports:{}};(function(t,e){(function(r){r(Ss)})(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 h=c.indentUnit,d={},g=f.htmlMode?o:s;for(var v in g)d[v]=g[v];for(var v in f)d[v]=f[v];var y,w;function _(k,q){function U(Mt){return q.tokenize=Mt,Mt(k,q)}var Q=k.next();if(Q=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?U(A("atom","]]>")):null:k.match("--")?U(A("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),U(T(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),q.tokenize=A("meta","?>"),"meta"):(y=k.eat("/")?"closeTag":"openTag",q.tokenize=L,"tag bracket");if(Q=="&"){var mt;return k.eat("#")?k.eat("x")?mt=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):mt=k.eatWhile(/[\d]/)&&k.eat(";"):mt=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),mt?"atom":"error"}else return k.eatWhile(/[^&<]/),null}_.isInText=!0;function L(k,q){var U=k.next();if(U==">"||U=="/"&&k.eat(">"))return q.tokenize=_,y=U==">"?"endTag":"selfcloseTag","tag bracket";if(U=="=")return y="equals",null;if(U=="<"){q.tokenize=_,q.state=F,q.tagName=q.tagStart=null;var Q=q.tokenize(k,q);return Q?Q+" tag error":"tag error"}else return/[\'\"]/.test(U)?(q.tokenize=M(U),q.stringStartCol=k.column(),q.tokenize(k,q)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function M(k){var q=function(U,Q){for(;!U.eol();)if(U.next()==k){Q.tokenize=L;break}return"string"};return q.isInAttribute=!0,q}function A(k,q){return function(U,Q){for(;!U.eol();){if(U.match(q)){Q.tokenize=_;break}U.next()}return k}}function T(k){return function(q,U){for(var Q;(Q=q.next())!=null;){if(Q=="<")return U.tokenize=T(k+1),U.tokenize(q,U);if(Q==">")if(k==1){U.tokenize=_;break}else return U.tokenize=T(k-1),U.tokenize(q,U)}return"meta"}}function E(k){return k&&k.toLowerCase()}function P(k,q,U){this.prev=k.context,this.tagName=q||"",this.indent=k.indented,this.startOfLine=U,(d.doNotIndent.hasOwnProperty(q)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function $(k){k.context&&(k.context=k.context.prev)}function H(k,q){for(var U;;){if(!k.context||(U=k.context.tagName,!d.contextGrabbers.hasOwnProperty(E(U))||!d.contextGrabbers[E(U)].hasOwnProperty(E(q))))return;$(k)}}function F(k,q,U){return k=="openTag"?(U.tagStart=q.column(),ct):k=="closeTag"?ut:F}function ct(k,q,U){return k=="word"?(U.tagName=q.current(),w="tag",ft):d.allowMissingTagName&&k=="endTag"?(w="tag bracket",ft(k,q,U)):(w="error",ct)}function ut(k,q,U){if(k=="word"){var Q=q.current();return U.context&&U.context.tagName!=Q&&d.implicitlyClosed.hasOwnProperty(E(U.context.tagName))&&$(U),U.context&&U.context.tagName==Q||d.matchClosing===!1?(w="tag",st):(w="tag error",X)}else return d.allowMissingTagName&&k=="endTag"?(w="tag bracket",st(k,q,U)):(w="error",X)}function st(k,q,U){return k!="endTag"?(w="error",st):($(U),F)}function X(k,q,U){return w="error",st(k,q,U)}function ft(k,q,U){if(k=="word")return w="attribute",rt;if(k=="endTag"||k=="selfcloseTag"){var Q=U.tagName,mt=U.tagStart;return U.tagName=U.tagStart=null,k=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(E(Q))?H(U,Q):(H(U,Q),U.context=new P(U,Q,mt==U.indented)),F}return w="error",ft}function rt(k,q,U){return k=="equals"?V:(d.allowMissing||(w="error"),ft(k,q,U))}function V(k,q,U){return k=="string"?z:k=="word"&&d.allowUnquoted?(w="string",ft):(w="error",ft(k,q,U))}function z(k,q,U){return k=="string"?z:ft(k,q,U)}return{startState:function(k){var q={tokenize:_,state:F,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(q.baseIndent=k),q},token:function(k,q){if(!q.tagName&&k.sol()&&(q.indented=k.indentation()),k.eatSpace())return null;y=null;var U=q.tokenize(k,q);return(U||y)&&U!="comment"&&(w=null,q.state=q.state(y||U,k,q),w&&(U=w=="error"?U+" error":w)),U},indent:function(k,q,U){var Q=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+h;if(Q&&Q.noIndent)return r.Pass;if(k.tokenize!=L&&k.tokenize!=_)return U?U.match(/^(\s*)/)[0].length:0;if(k.tagName)return d.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+h*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(q))return 0;var mt=q&&/^<(\/)?([\w_:\.-]*)/.exec(q);if(mt&&mt[1])for(;Q;)if(Q.tagName==mt[2]){Q=Q.prev;break}else if(d.implicitlyClosed.hasOwnProperty(E(Q.tagName)))Q=Q.prev;else break;else if(mt)for(;Q;){var Mt=d.contextGrabbers[E(Q.tagName)];if(Mt&&Mt.hasOwnProperty(E(mt[2])))Q=Q.prev;else break}for(;Q&&Q.prev&&!Q.startOfLine;)Q=Q.prev;return Q?Q.indent+h:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(k){k.state==V&&(k.state=ft)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var q=[],U=k.context;U;U=U.prev)q.push(U.tagName);return q.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var $ct=Nct.exports;(function(t,e){(function(r){r(Ss,$ct,Mct)})(function(r){function o(c,f,h,d){this.state=c,this.mode=f,this.depth=h,this.prev=d}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 h=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),d=r.getMode(c,f&&f.base||"javascript");function g(_){var L=_.tagName;_.tagName=null;var M=h.indent(_,"","");return _.tagName=L,M}function v(_,L){return L.context.mode==h?y(_,L,L.context):w(_,L,L.context)}function y(_,L,M){if(M.depth==2)return _.match(/^.*?\*\//)?M.depth=1:_.skipToEnd(),"comment";if(_.peek()=="{"){h.skipAttribute(M.state);var A=g(M.state),T=M.state.context;if(T&&_.match(/^[^>]*>\s*$/,!1)){for(;T.prev&&!T.startOfLine;)T=T.prev;T.startOfLine?A-=c.indentUnit:M.prev.state.lexical&&(A=M.prev.state.lexical.indented)}else M.depth==1&&(A+=c.indentUnit);return L.context=new o(r.startState(d,A),d,0,L.context),null}if(M.depth==1){if(_.peek()=="<")return h.skipAttribute(M.state),L.context=new o(r.startState(h,g(M.state)),h,0,L.context),null;if(_.match("//"))return _.skipToEnd(),"comment";if(_.match("/*"))return M.depth=2,v(_,L)}var E=h.token(_,M.state),P=_.current(),$;return/\btag\b/.test(E)?/>$/.test(P)?M.state.context?M.depth=0:L.context=L.context.prev:/^</.test(P)&&(M.depth=1):!E&&($=P.indexOf("{"))>-1&&_.backUp(P.length-$),E}function w(_,L,M){if(_.peek()=="<"&&!_.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&d.expressionAllowed(_,M.state))return L.context=new o(r.startState(h,d.indent(M.state,"","")),h,0,L.context),d.skipExpression(M.state),null;var A=d.token(_,M.state);if(!A&&M.depth!=null){var T=_.current();T=="{"?M.depth++:T=="}"&&--M.depth==0&&(L.context=L.context.prev)}return A}return{startState:function(){return{context:new o(r.startState(d),d)}},copyState:function(_){return{context:s(_.context)}},token:v,indent:function(_,L,M){return _.context.mode.indent(_.context.state,L,M)},innerMode:function(_){return _.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(t,e){(function(r){r(Ss)})(function(r){r.defineOption("placeholder","",function(g,v,y){var w=y&&y!=r.Init;if(v&&!w)g.on("blur",f),g.on("change",h),g.on("swapDoc",h),r.on(g.getInputField(),"compositionupdate",g.state.placeholderCompose=function(){c(g)}),h(g);else if(!v&&w){g.off("blur",f),g.off("change",h),g.off("swapDoc",h),r.off(g.getInputField(),"compositionupdate",g.state.placeholderCompose),o(g);var _=g.getWrapperElement();_.className=_.className.replace(" CodeMirror-empty","")}v&&!g.hasFocus()&&f(g)});function o(g){g.state.placeholder&&(g.state.placeholder.parentNode.removeChild(g.state.placeholder),g.state.placeholder=null)}function s(g){o(g);var v=g.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=g.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var y=g.getOption("placeholder");typeof y=="string"&&(y=document.createTextNode(y)),v.appendChild(y),g.display.lineSpace.insertBefore(v,g.display.lineSpace.firstChild)}function c(g){setTimeout(function(){var v=!1;if(g.lineCount()==1){var y=g.getInputField();v=y.nodeName=="TEXTAREA"?!g.getLine(0).length:!/[^\u200b]/.test(y.querySelector(".CodeMirror-line").textContent)}v?s(g):o(g)},20)}function f(g){d(g)&&s(g)}function h(g){var v=g.getWrapperElement(),y=d(g);v.className=v.className.replace(" CodeMirror-empty","")+(y?" CodeMirror-empty":""),y?s(g):o(g)}function d(g){return g.lineCount()===1&&g.getLine(0)===""}})})();(function(t,e){(function(r){r(Ss)})(function(r){function o(f,h,d){this.orientation=h,this.scroll=d,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+h,this.inner=this.node.appendChild(document.createElement("div"));var g=this;r.on(this.inner,"mousedown",function(y){if(y.which!=1)return;r.e_preventDefault(y);var w=g.orientation=="horizontal"?"pageX":"pageY",_=y[w],L=g.pos;function M(){r.off(document,"mousemove",A),r.off(document,"mouseup",M)}function A(T){if(T.which!=1)return M();g.moveTo(L+(T[w]-_)*(g.total/g.size))}r.on(document,"mousemove",A),r.on(document,"mouseup",M)}),r.on(this.node,"click",function(y){r.e_preventDefault(y);var w=g.inner.getBoundingClientRect(),_;g.orientation=="horizontal"?_=y.clientX<w.left?-1:y.clientX>w.right?1:0:_=y.clientY<w.top?-1:y.clientY>w.bottom?1:0,g.moveTo(g.pos+_*g.screen)});function v(y){var w=r.wheelEventPixels(y)[g.orientation=="horizontal"?"x":"y"],_=g.pos;g.moveTo(g.pos+w),g.pos!=_&&r.e_preventDefault(y)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,h){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!h&&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,h,d){var g=this.screen!=h||this.total!=f||this.size!=d;g&&(this.screen=h,this.total=f,this.size=d);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,g)};function c(f,h,d){this.addClass=f,this.horiz=new o(f,"horizontal",d),h(this.horiz.node),this.vert=new o(f,"vertical",d),h(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var h=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;h&&(this.width=parseInt(h.height))}var d=this.width||0,g=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=g?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(g?d:0)),this.vert.node.style.bottom=g?d+"px":"0"),g&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?d:0)-f.barLeft),this.horiz.node.style.right=v?d+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?d:0,bottom:g?d: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,h){return new c("CodeMirror-simplescroll",f,h)},r.scrollbarModel.overlay=function(f,h){return new c("CodeMirror-overlayscroll",f,h)}})})();function Pct(t,e,r={}){const o=Lct.fromTextArea(t.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}e.value=o.getValue()}),Ge(e,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}),d0(o)}const Oct={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Xb=fe({__name:"CodeMirror",props:jf({mode:{},readOnly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:jf(["save"],["update:modelValue"]),setup(t,{expose:e,emit:r}){const o=r,s=ey(t,"modelValue"),c=eS(),f={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}},h=Qt(),d=ws();return e({cm:d}),xs(async()=>{d.value=Pct(h,s,{...c,mode:f[t.mode||""]||t.mode,readOnly:t.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(g){o("save",g.getValue())},"Ctrl-S":function(g){o("save",g.getValue())}}}),d.value.setSize("100%","100%"),d.value.clearHistory(),setTimeout(()=>d.value.refresh(),100)}),(g,v)=>(tt(),yt("div",Oct,[J("textarea",{ref_key:"el",ref:h},null,512)]))}}),Rct=fe({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(t,{emit:e}){const r=t,o=e,s=Qt(""),c=ws(void 0),f=Qt(!1);Ge(()=>r.file,async()=>{var P;if(!r.file||!((P=r.file)!=null&&P.filepath)){s.value="",c.value=s.value,f.value=!1;return}s.value=await Oe.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1},{immediate:!0});const h=_t(()=>{var P,$;return(($=(P=r.file)==null?void 0:P.filepath)==null?void 0:$.split(/\./g).pop())||"js"}),d=Qt(),g=_t(()=>{var P;return(P=d.value)==null?void 0:P.cm}),v=_t(()=>{var P;return((P=r.file)==null?void 0:P.tasks.filter($=>{var H;return((H=$.result)==null?void 0:H.state)==="fail"}))||[]}),y=[],w=[],_=[],L=Qt(!1);function M(){_.forEach(([P,$,H])=>{P.removeEventListener("click",$),H()}),_.length=0}yat(d,()=>{var P;(P=g.value)==null||P.refresh()});function A(){f.value=c.value!==g.value.getValue()}Ge(f,P=>{o("draft",P)},{immediate:!0});function T(P){const $=((P==null?void 0:P.stacks)||[]).filter(X=>{var ft;return X.file&&X.file===((ft=r.file)==null?void 0:ft.filepath)}),H=$==null?void 0:$[0];if(!H)return;const F=document.createElement("div");F.className="op80 flex gap-x-2 items-center";const ct=document.createElement("pre");ct.className="c-red-600 dark:c-red-400",ct.textContent=`${" ".repeat(H.column)}^ ${(P==null?void 0:P.nameStr)||P.name}: ${(P==null?void 0:P.message)||""}`,F.appendChild(ct);const ut=document.createElement("span");ut.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",ut.tabIndex=0,ut.ariaLabel="Open in Editor",Fy(ut,{content:"Open in Editor",placement:"bottom"},!1);const st=async()=>{await _b(H.file,H.line,H.column)};F.appendChild(ut),_.push([ut,st,()=>nd(ut)]),w.push(g.value.addLineClass(H.line-1,"wrap","bg-red-500/10")),y.push(g.value.addLineWidget(H.line-1,F))}Ge([g,v],([P])=>{if(!P){M();return}setTimeout(()=>{M(),y.forEach($=>$.clear()),w.forEach($=>{var H;return(H=g.value)==null?void 0:H.removeLineClass($,"wrap")}),y.length=0,w.length=0,P.on("changes",A),v.value.forEach($=>{var H,F;(F=(H=$.result)==null?void 0:H.errors)==null||F.forEach(T)}),L.value||P.clearHistory()},100)},{flush:"post"});async function E(P){L.value=!0,await Oe.rpc.saveTestFile(r.file.filepath,P),c.value=P,f.value=!1}return(P,$)=>{const H=Xb;return tt(),Yt(H,Pi({ref_key:"editor",ref:d,modelValue:B(s),"onUpdate:modelValue":$[0]||($[0]=F=>Ae(s)?s.value=F:null),"h-full":""},{lineNumbers:!0},{mode:B(h),"data-testid":"code-mirror",onSave:E}),null,16,["modelValue","mode"])}}}),Dct=fe({__name:"Modal",props:jf({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=ey(t,"modelValue"),r=_t(()=>{switch(t.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=_t(()=>{switch(t.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>e.value=!1;return(c,f)=>(tt(),yt("div",{class:de(["fixed inset-0 z-40",e.value?"":"pointer-events-none"])},[J("div",{class:de(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",e.value?"opacity-50":"opacity-0"]),onClick:s},null,2),J("div",{class:de(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[B(r)]]),style:an(e.value?{}:{transform:B(o)})},[Kn(c.$slots,"default")],6)],2))}}),zct={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Ict={"p-4":"",relative:""},Fct=J("p",null,"Module Info",-1),Hct={op50:"","font-mono":"","text-sm":""},qct={key:0,"p-5":""},Bct={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Wct=J("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Uct=J("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),jct={key:0},Vct={p:"x3 y-1","bg-overlay":"",border:"base b t"},Gct=fe({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(t,{emit:e}){const r=t,o=e,s=aat(()=>Oe.rpc.getTransformResult(r.projectName,r.id,!!ql)),c=_t(()=>{var g;return((g=r.id)==null?void 0:g.split(/\./g).pop())||"js"}),f=_t(()=>{var g,v;return((v=(g=s.value)==null?void 0:g.source)==null?void 0:v.trim())||""}),h=_t(()=>{var g,v;return((v=(g=s.value)==null?void 0:g.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),d=_t(()=>{var g,v,y,w;return{mappings:((v=(g=s.value)==null?void 0:g.map)==null?void 0:v.mappings)??"",version:(w=(y=s.value)==null?void 0:y.map)==null?void 0:w.version}});return uat("Escape",()=>{o("close")}),(g,v)=>{const y=_s,w=Xb;return tt(),yt("div",zct,[J("div",Ict,[Fct,J("p",Hct,Vt(g.id),1),It(y,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=_=>o("close"))})]),B(s)?(tt(),yt(ie,{key:1},[J("div",Bct,[Wct,Uct,It(w,Pi({"h-full":"","model-value":B(f),"read-only":""},{lineNumbers:!0},{mode:B(c)}),null,16,["model-value","mode"]),It(w,Pi({"h-full":"","model-value":B(h),"read-only":""},{lineNumbers:!0},{mode:B(c)}),null,16,["model-value","mode"])]),B(d).mappings!==""?(tt(),yt("div",jct,[J("div",Vct," Source map (v"+Vt(B(d).version)+") ",1),It(w,Pi({"model-value":B(d).mappings,"read-only":""},{lineNumbers:!0},{mode:B(c)}),null,16,["model-value","mode"])])):Kt("",!0)],64)):(tt(),yt("div",qct," No transform result found for this module. "))])}}});function Kct(t,e){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(...o),e)}}var vh="http://www.w3.org/1999/xhtml";const bm={svg:"http://www.w3.org/2000/svg",xhtml:vh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function fu(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),bm.hasOwnProperty(e)?{space:bm[e],local:t}:t}function Xct(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===vh&&e.documentElement.namespaceURI===vh?e.createElement(t):e.createElementNS(r,t)}}function Yct(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Yb(t){var e=fu(t);return(e.local?Yct:Xct)(e)}function Zct(){}function gd(t){return t==null?Zct:function(){return this.querySelector(t)}}function Jct(t){typeof t!="function"&&(t=gd(t));for(var e=this._groups,r=e.length,o=new Array(r),s=0;s<r;++s)for(var c=e[s],f=c.length,h=o[s]=new Array(f),d,g,v=0;v<f;++v)(d=c[v])&&(g=t.call(d,d.__data__,v,c))&&("__data__"in d&&(g.__data__=d.__data__),h[v]=g);return new In(o,this._parents)}function Qct(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function tut(){return[]}function Zb(t){return t==null?tut:function(){return this.querySelectorAll(t)}}function eut(t){return function(){return Qct(t.apply(this,arguments))}}function nut(t){typeof t=="function"?t=eut(t):t=Zb(t);for(var e=this._groups,r=e.length,o=[],s=[],c=0;c<r;++c)for(var f=e[c],h=f.length,d,g=0;g<h;++g)(d=f[g])&&(o.push(t.call(d,d.__data__,g,f)),s.push(d));return new In(o,s)}function Jb(t){return function(){return this.matches(t)}}function Qb(t){return function(e){return e.matches(t)}}var rut=Array.prototype.find;function iut(t){return function(){return rut.call(this.children,t)}}function out(){return this.firstElementChild}function sut(t){return this.select(t==null?out:iut(typeof t=="function"?t:Qb(t)))}var lut=Array.prototype.filter;function aut(){return Array.from(this.children)}function cut(t){return function(){return lut.call(this.children,t)}}function uut(t){return this.selectAll(t==null?aut:cut(typeof t=="function"?t:Qb(t)))}function fut(t){typeof t!="function"&&(t=Jb(t));for(var e=this._groups,r=e.length,o=new Array(r),s=0;s<r;++s)for(var c=e[s],f=c.length,h=o[s]=[],d,g=0;g<f;++g)(d=c[g])&&t.call(d,d.__data__,g,c)&&h.push(d);return new In(o,this._parents)}function tw(t){return new Array(t.length)}function hut(){return new In(this._enter||this._groups.map(tw),this._parents)}function Dc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Dc.prototype={constructor:Dc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function dut(t){return function(){return t}}function put(t,e,r,o,s,c){for(var f=0,h,d=e.length,g=c.length;f<g;++f)(h=e[f])?(h.__data__=c[f],o[f]=h):r[f]=new Dc(t,c[f]);for(;f<d;++f)(h=e[f])&&(s[f]=h)}function gut(t,e,r,o,s,c,f){var h,d,g=new Map,v=e.length,y=c.length,w=new Array(v),_;for(h=0;h<v;++h)(d=e[h])&&(w[h]=_=f.call(d,d.__data__,h,e)+"",g.has(_)?s[h]=d:g.set(_,d));for(h=0;h<y;++h)_=f.call(t,c[h],h,c)+"",(d=g.get(_))?(o[h]=d,d.__data__=c[h],g.delete(_)):r[h]=new Dc(t,c[h]);for(h=0;h<v;++h)(d=e[h])&&g.get(w[h])===d&&(s[h]=d)}function vut(t){return t.__data__}function mut(t,e){if(!arguments.length)return Array.from(this,vut);var r=e?gut:put,o=this._parents,s=this._groups;typeof t!="function"&&(t=dut(t));for(var c=s.length,f=new Array(c),h=new Array(c),d=new Array(c),g=0;g<c;++g){var v=o[g],y=s[g],w=y.length,_=yut(t.call(v,v&&v.__data__,g,o)),L=_.length,M=h[g]=new Array(L),A=f[g]=new Array(L),T=d[g]=new Array(w);r(v,y,M,A,T,_,e);for(var E=0,P=0,$,H;E<L;++E)if($=M[E]){for(E>=P&&(P=E+1);!(H=A[P])&&++P<L;);$._next=H||null}}return f=new In(f,o),f._enter=h,f._exit=d,f}function yut(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function but(){return new In(this._exit||this._groups.map(tw),this._parents)}function wut(t,e,r){var o=this.enter(),s=this,c=this.exit();return typeof t=="function"?(o=t(o),o&&(o=o.selection())):o=o.append(t+""),e!=null&&(s=e(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function xut(t){for(var e=t.selection?t.selection():t,r=this._groups,o=e._groups,s=r.length,c=o.length,f=Math.min(s,c),h=new Array(s),d=0;d<f;++d)for(var g=r[d],v=o[d],y=g.length,w=h[d]=new Array(y),_,L=0;L<y;++L)(_=g[L]||v[L])&&(w[L]=_);for(;d<s;++d)h[d]=r[d];return new In(h,this._parents)}function _ut(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var o=t[e],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 Sut(t){t||(t=kut);function e(y,w){return y&&w?t(y.__data__,w.__data__):!y-!w}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],h=f.length,d=s[c]=new Array(h),g,v=0;v<h;++v)(g=f[v])&&(d[v]=g);d.sort(e)}return new In(s,this._parents).order()}function kut(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Cut(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Tut(){return Array.from(this)}function Eut(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function Lut(){let t=0;for(const e of this)++t;return t}function Aut(){return!this.node()}function Mut(t){for(var e=this._groups,r=0,o=e.length;r<o;++r)for(var s=e[r],c=0,f=s.length,h;c<f;++c)(h=s[c])&&t.call(h,h.__data__,c,s);return this}function Nut(t){return function(){this.removeAttribute(t)}}function $ut(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Put(t,e){return function(){this.setAttribute(t,e)}}function Out(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Rut(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Dut(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function zut(t,e){var r=fu(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((e==null?r.local?$ut:Nut:typeof e=="function"?r.local?Dut:Rut:r.local?Out:Put)(r,e))}function ew(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Iut(t){return function(){this.style.removeProperty(t)}}function Fut(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Hut(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function qut(t,e,r){return arguments.length>1?this.each((e==null?Iut:typeof e=="function"?Hut:Fut)(t,e,r??"")):ys(this.node(),t)}function ys(t,e){return t.style.getPropertyValue(e)||ew(t).getComputedStyle(t,null).getPropertyValue(e)}function But(t){return function(){delete this[t]}}function Wut(t,e){return function(){this[t]=e}}function Uut(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function jut(t,e){return arguments.length>1?this.each((e==null?But:typeof e=="function"?Uut:Wut)(t,e)):this.node()[t]}function nw(t){return t.trim().split(/^|\s+/)}function vd(t){return t.classList||new rw(t)}function rw(t){this._node=t,this._names=nw(t.getAttribute("class")||"")}rw.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function iw(t,e){for(var r=vd(t),o=-1,s=e.length;++o<s;)r.add(e[o])}function ow(t,e){for(var r=vd(t),o=-1,s=e.length;++o<s;)r.remove(e[o])}function Vut(t){return function(){iw(this,t)}}function Gut(t){return function(){ow(this,t)}}function Kut(t,e){return function(){(e.apply(this,arguments)?iw:ow)(this,t)}}function Xut(t,e){var r=nw(t+"");if(arguments.length<2){for(var o=vd(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof e=="function"?Kut:e?Vut:Gut)(r,e))}function Yut(){this.textContent=""}function Zut(t){return function(){this.textContent=t}}function Jut(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Qut(t){return arguments.length?this.each(t==null?Yut:(typeof t=="function"?Jut:Zut)(t)):this.node().textContent}function tft(){this.innerHTML=""}function eft(t){return function(){this.innerHTML=t}}function nft(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function rft(t){return arguments.length?this.each(t==null?tft:(typeof t=="function"?nft:eft)(t)):this.node().innerHTML}function ift(){this.nextSibling&&this.parentNode.appendChild(this)}function oft(){return this.each(ift)}function sft(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function lft(){return this.each(sft)}function aft(t){var e=typeof t=="function"?t:Yb(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function cft(){return null}function uft(t,e){var r=typeof t=="function"?t:Yb(t),o=e==null?cft:typeof e=="function"?e:gd(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function fft(){var t=this.parentNode;t&&t.removeChild(this)}function hft(){return this.each(fft)}function dft(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function pft(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function gft(t){return this.select(t?pft:dft)}function vft(t){return arguments.length?this.property("__data__",t):this.node().__data__}function mft(t){return function(e){t.call(this,e,this.__data__)}}function yft(t){return t.trim().split(/^|\s+/).map(function(e){var r="",o=e.indexOf(".");return o>=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}})}function bft(t){return function(){var e=this.__on;if(e){for(var r=0,o=-1,s=e.length,c;r<s;++r)c=e[r],(!t.type||c.type===t.type)&&c.name===t.name?this.removeEventListener(c.type,c.listener,c.options):e[++o]=c;++o?e.length=o:delete this.__on}}}function wft(t,e,r){return function(){var o=this.__on,s,c=mft(e);if(o){for(var f=0,h=o.length;f<h;++f)if((s=o[f]).type===t.type&&s.name===t.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=e;return}}this.addEventListener(t.type,c,r),s={type:t.type,name:t.name,value:e,listener:c,options:r},o?o.push(s):this.__on=[s]}}function xft(t,e,r){var o=yft(t+""),s,c=o.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var d=0,g=h.length,v;d<g;++d)for(s=0,v=h[d];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(h=e?wft:bft,s=0;s<c;++s)this.each(h(o[s],e,r));return this}function sw(t,e,r){var o=ew(t),s=o.CustomEvent;typeof s=="function"?s=new s(e,r):(s=o.document.createEvent("Event"),r?(s.initEvent(e,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(e,!1,!1)),t.dispatchEvent(s)}function _ft(t,e){return function(){return sw(this,t,e)}}function Sft(t,e){return function(){return sw(this,t,e.apply(this,arguments))}}function kft(t,e){return this.each((typeof e=="function"?Sft:_ft)(t,e))}function*Cft(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var o=t[e],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var lw=[null];function In(t,e){this._groups=t,this._parents=e}function ta(){return new In([[document.documentElement]],lw)}function Tft(){return this}In.prototype=ta.prototype={constructor:In,select:Jct,selectAll:nut,selectChild:sut,selectChildren:uut,filter:fut,data:mut,enter:hut,exit:but,join:wut,merge:xut,selection:Tft,order:_ut,sort:Sut,call:Cut,nodes:Tut,node:Eut,size:Lut,empty:Aut,each:Mut,attr:zut,style:qut,property:jut,classed:Xut,text:Qut,html:rft,raise:oft,lower:lft,append:aft,insert:uft,remove:hft,clone:gft,datum:vft,on:xft,dispatch:kft,[Symbol.iterator]:Cft};function Ln(t){return typeof t=="string"?new In([[document.querySelector(t)]],[document.documentElement]):new In([[t]],lw)}function Eft(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Vr(t,e){if(t=Eft(t),e===void 0&&(e=t.currentTarget),e){var r=e.ownerSVGElement||e;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=t.clientX,o.y=t.clientY,o=o.matrixTransform(e.getScreenCTM().inverse()),[o.x,o.y]}if(e.getBoundingClientRect){var s=e.getBoundingClientRect();return[t.clientX-s.left-e.clientLeft,t.clientY-s.top-e.clientTop]}}return[t.pageX,t.pageY]}class yn{constructor(e,r){this.x=e,this.y=r}static of([e,r]){return new yn(e,r)}add(e){return new yn(this.x+e.x,this.y+e.y)}subtract(e){return new yn(this.x-e.x,this.y-e.y)}multiply(e){return new yn(this.x*e,this.y*e)}divide(e){return new yn(this.x/e,this.y/e)}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-e.x*this.y}hadamard(e){return new yn(this.x*e.x,this.y*e.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const e=this.length();return new yn(this.x/e,this.y/e)}rotateByRadians(e){const r=Math.cos(e),o=Math.sin(e);return new yn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(e){return this.rotateByRadians(e*Math.PI/180)}}var Lft={value:()=>{}};function ea(){for(var t=0,e=arguments.length,r={},o;t<e;++t){if(!(o=arguments[t]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new fc(r)}function fc(t){this._=t}function Aft(t,e){return t.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&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}fc.prototype=ea.prototype={constructor:fc,on:function(t,e){var r=this._,o=Aft(t+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(t=o[c]).type)&&(s=Mft(r[s],t.name)))return s;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++c<f;)if(s=(t=o[c]).type)r[s]=wm(r[s],t.name,e);else if(e==null)for(s in r)r[s]=wm(r[s],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new fc(t)},call:function(t,e){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(t))throw new Error("unknown type: "+t);for(c=this._[t],o=0,s=c.length;o<s;++o)c[o].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],s=0,c=o.length;s<c;++s)o[s].value.apply(e,r)}};function Mft(t,e){for(var r=0,o=t.length,s;r<o;++r)if((s=t[r]).name===e)return s.value}function wm(t,e,r){for(var o=0,s=t.length;o<s;++o)if(t[o].name===e){t[o]=Lft,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:e,value:r}),t}const Nft={passive:!1},Bl={capture:!0,passive:!1};function Pf(t){t.stopImmediatePropagation()}function cs(t){t.preventDefault(),t.stopImmediatePropagation()}function aw(t){var e=t.document.documentElement,r=Ln(t).on("dragstart.drag",cs,Bl);"onselectstart"in e?r.on("selectstart.drag",cs,Bl):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function cw(t,e){var r=t.document.documentElement,o=Ln(t).on("dragstart.drag",null);e&&(o.on("click.drag",cs,Bl),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 Xa=t=>()=>t;function mh(t,{sourceEvent:e,subject:r,target:o,identifier:s,active:c,x:f,y:h,dx:d,dy:g,dispatch:v}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,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:h,enumerable:!0,configurable:!0},dx:{value:d,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:v}})}mh.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function $ft(t){return!t.ctrlKey&&!t.button}function Pft(){return this.parentNode}function Oft(t,e){return e??{x:t.x,y:t.y}}function Rft(){return navigator.maxTouchPoints||"ontouchstart"in this}function Dft(){var t=$ft,e=Pft,r=Oft,o=Rft,s={},c=ea("start","drag","end"),f=0,h,d,g,v,y=0;function w($){$.on("mousedown.drag",_).filter(o).on("touchstart.drag",A).on("touchmove.drag",T,Nft).on("touchend.drag touchcancel.drag",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function _($,H){if(!(v||!t.call(this,$,H))){var F=P(this,e.call(this,$,H),$,H,"mouse");F&&(Ln($.view).on("mousemove.drag",L,Bl).on("mouseup.drag",M,Bl),aw($.view),Pf($),g=!1,h=$.clientX,d=$.clientY,F("start",$))}}function L($){if(cs($),!g){var H=$.clientX-h,F=$.clientY-d;g=H*H+F*F>y}s.mouse("drag",$)}function M($){Ln($.view).on("mousemove.drag mouseup.drag",null),cw($.view,g),cs($),s.mouse("end",$)}function A($,H){if(t.call(this,$,H)){var F=$.changedTouches,ct=e.call(this,$,H),ut=F.length,st,X;for(st=0;st<ut;++st)(X=P(this,ct,$,H,F[st].identifier,F[st]))&&(Pf($),X("start",$,F[st]))}}function T($){var H=$.changedTouches,F=H.length,ct,ut;for(ct=0;ct<F;++ct)(ut=s[H[ct].identifier])&&(cs($),ut("drag",$,H[ct]))}function E($){var H=$.changedTouches,F=H.length,ct,ut;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),ct=0;ct<F;++ct)(ut=s[H[ct].identifier])&&(Pf($),ut("end",$,H[ct]))}function P($,H,F,ct,ut,st){var X=c.copy(),ft=Vr(st||F,H),rt,V,z;if((z=r.call($,new mh("beforestart",{sourceEvent:F,target:w,identifier:ut,active:f,x:ft[0],y:ft[1],dx:0,dy:0,dispatch:X}),ct))!=null)return rt=z.x-ft[0]||0,V=z.y-ft[1]||0,function k(q,U,Q){var mt=ft,Mt;switch(q){case"start":s[ut]=k,Mt=f++;break;case"end":delete s[ut],--f;case"drag":ft=Vr(Q||U,H),Mt=f;break}X.call(q,$,new mh(q,{sourceEvent:U,subject:z,target:w,identifier:ut,active:Mt,x:ft[0]+rt,y:ft[1]+V,dx:ft[0]-mt[0],dy:ft[1]-mt[1],dispatch:X}),ct)}}return w.filter=function($){return arguments.length?(t=typeof $=="function"?$:Xa(!!$),w):t},w.container=function($){return arguments.length?(e=typeof $=="function"?$:Xa($),w):e},w.subject=function($){return arguments.length?(r=typeof $=="function"?$:Xa($),w):r},w.touchable=function($){return arguments.length?(o=typeof $=="function"?$:Xa(!!$),w):o},w.on=function(){var $=c.on.apply(c,arguments);return $===c?w:$},w.clickDistance=function($){return arguments.length?(y=($=+$)*$,w):Math.sqrt(y)},w}function md(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function uw(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}function na(){}var Wl=.7,zc=1/Wl,us="\\s*([+-]?\\d+)\\s*",Ul="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Lr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zft=/^#([0-9a-f]{3,8})$/,Ift=new RegExp(`^rgb\\(${us},${us},${us}\\)$`),Fft=new RegExp(`^rgb\\(${Lr},${Lr},${Lr}\\)$`),Hft=new RegExp(`^rgba\\(${us},${us},${us},${Ul}\\)$`),qft=new RegExp(`^rgba\\(${Lr},${Lr},${Lr},${Ul}\\)$`),Bft=new RegExp(`^hsl\\(${Ul},${Lr},${Lr}\\)$`),Wft=new RegExp(`^hsla\\(${Ul},${Lr},${Lr},${Ul}\\)$`),xm={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};md(na,jl,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:_m,formatHex:_m,formatHex8:Uft,formatHsl:jft,formatRgb:Sm,toString:Sm});function _m(){return this.rgb().formatHex()}function Uft(){return this.rgb().formatHex8()}function jft(){return fw(this).formatHsl()}function Sm(){return this.rgb().formatRgb()}function jl(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=zft.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?km(e):r===3?new An(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Ya(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Ya(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Ift.exec(t))?new An(e[1],e[2],e[3],1):(e=Fft.exec(t))?new An(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Hft.exec(t))?Ya(e[1],e[2],e[3],e[4]):(e=qft.exec(t))?Ya(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Bft.exec(t))?Em(e[1],e[2]/100,e[3]/100,1):(e=Wft.exec(t))?Em(e[1],e[2]/100,e[3]/100,e[4]):xm.hasOwnProperty(t)?km(xm[t]):t==="transparent"?new An(NaN,NaN,NaN,0):null}function km(t){return new An(t>>16&255,t>>8&255,t&255,1)}function Ya(t,e,r,o){return o<=0&&(t=e=r=NaN),new An(t,e,r,o)}function Vft(t){return t instanceof na||(t=jl(t)),t?(t=t.rgb(),new An(t.r,t.g,t.b,t.opacity)):new An}function yh(t,e,r,o){return arguments.length===1?Vft(t):new An(t,e,r,o??1)}function An(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}md(An,yh,uw(na,{brighter(t){return t=t==null?zc:Math.pow(zc,t),new An(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Wl:Math.pow(Wl,t),new An(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new An(mo(this.r),mo(this.g),mo(this.b),Ic(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:Cm,formatHex:Cm,formatHex8:Gft,formatRgb:Tm,toString:Tm}));function Cm(){return`#${po(this.r)}${po(this.g)}${po(this.b)}`}function Gft(){return`#${po(this.r)}${po(this.g)}${po(this.b)}${po((isNaN(this.opacity)?1:this.opacity)*255)}`}function Tm(){const t=Ic(this.opacity);return`${t===1?"rgb(":"rgba("}${mo(this.r)}, ${mo(this.g)}, ${mo(this.b)}${t===1?")":`, ${t})`}`}function Ic(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function mo(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function po(t){return t=mo(t),(t<16?"0":"")+t.toString(16)}function Em(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new cr(t,e,r,o)}function fw(t){if(t instanceof cr)return new cr(t.h,t.s,t.l,t.opacity);if(t instanceof na||(t=jl(t)),!t)return new cr;if(t instanceof cr)return t;t=t.rgb();var e=t.r/255,r=t.g/255,o=t.b/255,s=Math.min(e,r,o),c=Math.max(e,r,o),f=NaN,h=c-s,d=(c+s)/2;return h?(e===c?f=(r-o)/h+(r<o)*6:r===c?f=(o-e)/h+2:f=(e-r)/h+4,h/=d<.5?c+s:2-c-s,f*=60):h=d>0&&d<1?0:f,new cr(f,h,d,t.opacity)}function Kft(t,e,r,o){return arguments.length===1?fw(t):new cr(t,e,r,o??1)}function cr(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}md(cr,Kft,uw(na,{brighter(t){return t=t==null?zc:Math.pow(zc,t),new cr(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Wl:Math.pow(Wl,t),new cr(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*e,s=2*r-o;return new An(Of(t>=240?t-240:t+120,s,o),Of(t,s,o),Of(t<120?t+240:t-120,s,o),this.opacity)},clamp(){return new cr(Lm(this.h),Za(this.s),Za(this.l),Ic(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 t=Ic(this.opacity);return`${t===1?"hsl(":"hsla("}${Lm(this.h)}, ${Za(this.s)*100}%, ${Za(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Lm(t){return t=(t||0)%360,t<0?t+360:t}function Za(t){return Math.max(0,Math.min(1,t||0))}function Of(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const hw=t=>()=>t;function Xft(t,e){return function(r){return t+r*e}}function Yft(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(o){return Math.pow(t+o*e,r)}}function Zft(t){return(t=+t)==1?dw:function(e,r){return r-e?Yft(e,r,t):hw(isNaN(e)?r:e)}}function dw(t,e){var r=e-t;return r?Xft(t,r):hw(isNaN(t)?e:t)}const Am=function t(e){var r=Zft(e);function o(s,c){var f=r((s=yh(s)).r,(c=yh(c)).r),h=r(s.g,c.g),d=r(s.b,c.b),g=dw(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=h(v),s.b=d(v),s.opacity=g(v),s+""}}return o.gamma=t,o}(1);function Ci(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var bh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Rf=new RegExp(bh.source,"g");function Jft(t){return function(){return t}}function Qft(t){return function(e){return t(e)+""}}function tht(t,e){var r=bh.lastIndex=Rf.lastIndex=0,o,s,c,f=-1,h=[],d=[];for(t=t+"",e=e+"";(o=bh.exec(t))&&(s=Rf.exec(e));)(c=s.index)>r&&(c=e.slice(r,c),h[f]?h[f]+=c:h[++f]=c),(o=o[0])===(s=s[0])?h[f]?h[f]+=s:h[++f]=s:(h[++f]=null,d.push({i:f,x:Ci(o,s)})),r=Rf.lastIndex;return r<e.length&&(c=e.slice(r),h[f]?h[f]+=c:h[++f]=c),h.length<2?d[0]?Qft(d[0].x):Jft(e):(e=d.length,function(g){for(var v=0,y;v<e;++v)h[(y=d[v]).i]=y.x(g);return h.join("")})}var Mm=180/Math.PI,wh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function pw(t,e,r,o,s,c){var f,h,d;return(f=Math.sqrt(t*t+e*e))&&(t/=f,e/=f),(d=t*r+e*o)&&(r-=t*d,o-=e*d),(h=Math.sqrt(r*r+o*o))&&(r/=h,o/=h,d/=h),t*o<e*r&&(t=-t,e=-e,d=-d,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(e,t)*Mm,skewX:Math.atan(d)*Mm,scaleX:f,scaleY:h}}var Ja;function eht(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?wh:pw(e.a,e.b,e.c,e.d,e.e,e.f)}function nht(t){return t==null||(Ja||(Ja=document.createElementNS("http://www.w3.org/2000/svg","g")),Ja.setAttribute("transform",t),!(t=Ja.transform.baseVal.consolidate()))?wh:(t=t.matrix,pw(t.a,t.b,t.c,t.d,t.e,t.f))}function gw(t,e,r,o){function s(g){return g.length?g.pop()+" ":""}function c(g,v,y,w,_,L){if(g!==y||v!==w){var M=_.push("translate(",null,e,null,r);L.push({i:M-4,x:Ci(g,y)},{i:M-2,x:Ci(v,w)})}else(y||w)&&_.push("translate("+y+e+w+r)}function f(g,v,y,w){g!==v?(g-v>180?v+=360:v-g>180&&(g+=360),w.push({i:y.push(s(y)+"rotate(",null,o)-2,x:Ci(g,v)})):v&&y.push(s(y)+"rotate("+v+o)}function h(g,v,y,w){g!==v?w.push({i:y.push(s(y)+"skewX(",null,o)-2,x:Ci(g,v)}):v&&y.push(s(y)+"skewX("+v+o)}function d(g,v,y,w,_,L){if(g!==y||v!==w){var M=_.push(s(_)+"scale(",null,",",null,")");L.push({i:M-4,x:Ci(g,y)},{i:M-2,x:Ci(v,w)})}else(y!==1||w!==1)&&_.push(s(_)+"scale("+y+","+w+")")}return function(g,v){var y=[],w=[];return g=t(g),v=t(v),c(g.translateX,g.translateY,v.translateX,v.translateY,y,w),f(g.rotate,v.rotate,y,w),h(g.skewX,v.skewX,y,w),d(g.scaleX,g.scaleY,v.scaleX,v.scaleY,y,w),g=v=null,function(_){for(var L=-1,M=w.length,A;++L<M;)y[(A=w[L]).i]=A.x(_);return y.join("")}}}var rht=gw(eht,"px, ","px)","deg)"),iht=gw(nht,", ",")",")"),oht=1e-12;function Nm(t){return((t=Math.exp(t))+1/t)/2}function sht(t){return((t=Math.exp(t))-1/t)/2}function lht(t){return((t=Math.exp(2*t))-1)/(t+1)}const aht=function t(e,r,o){function s(c,f){var h=c[0],d=c[1],g=c[2],v=f[0],y=f[1],w=f[2],_=v-h,L=y-d,M=_*_+L*L,A,T;if(M<oht)T=Math.log(w/g)/e,A=function(ct){return[h+ct*_,d+ct*L,g*Math.exp(e*ct*T)]};else{var E=Math.sqrt(M),P=(w*w-g*g+o*M)/(2*g*r*E),$=(w*w-g*g-o*M)/(2*w*r*E),H=Math.log(Math.sqrt(P*P+1)-P),F=Math.log(Math.sqrt($*$+1)-$);T=(F-H)/e,A=function(ct){var ut=ct*T,st=Nm(H),X=g/(r*E)*(st*lht(e*ut+H)-sht(H));return[h+X*_,d+X*L,g*st/Nm(e*ut+H)]}}return A.duration=T*1e3*e/Math.SQRT2,A}return s.rho=function(c){var f=Math.max(.001,+c),h=f*f,d=h*h;return t(f,h,d)},s}(Math.SQRT2,2,4);var bs=0,al=0,ol=0,vw=1e3,Fc,cl,Hc=0,xo=0,hu=0,Vl=typeof performance=="object"&&performance.now?performance:Date,mw=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function yd(){return xo||(mw(cht),xo=Vl.now()+hu)}function cht(){xo=0}function qc(){this._call=this._time=this._next=null}qc.prototype=bd.prototype={constructor:qc,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?yd():+r)+(e==null?0:+e),!this._next&&cl!==this&&(cl?cl._next=this:Fc=this,cl=this),this._call=t,this._time=r,xh()},stop:function(){this._call&&(this._call=null,this._time=1/0,xh())}};function bd(t,e,r){var o=new qc;return o.restart(t,e,r),o}function uht(){yd(),++bs;for(var t=Fc,e;t;)(e=xo-t._time)>=0&&t._call.call(void 0,e),t=t._next;--bs}function $m(){xo=(Hc=Vl.now())+hu,bs=al=0;try{uht()}finally{bs=0,hht(),xo=0}}function fht(){var t=Vl.now(),e=t-Hc;e>vw&&(hu-=e,Hc=t)}function hht(){for(var t,e=Fc,r,o=1/0;e;)e._call?(o>e._time&&(o=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Fc=r);cl=t,xh(o)}function xh(t){if(!bs){al&&(al=clearTimeout(al));var e=t-xo;e>24?(t<1/0&&(al=setTimeout($m,t-Vl.now()-hu)),ol&&(ol=clearInterval(ol))):(ol||(Hc=Vl.now(),ol=setInterval(fht,vw)),bs=1,mw($m))}}function Pm(t,e,r){var o=new qc;return e=e==null?0:+e,o.restart(s=>{o.stop(),t(s+e)},e,r),o}var dht=ea("start","end","cancel","interrupt"),pht=[],yw=0,Om=1,_h=2,hc=3,Rm=4,Sh=5,dc=6;function du(t,e,r,o,s,c){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;ght(t,r,{name:e,index:o,group:s,on:dht,tween:pht,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:yw})}function wd(t,e){var r=gr(t,e);if(r.state>yw)throw new Error("too late; already scheduled");return r}function Pr(t,e){var r=gr(t,e);if(r.state>hc)throw new Error("too late; already running");return r}function gr(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function ght(t,e,r){var o=t.__transition,s;o[e]=r,r.timer=bd(c,0,r.time);function c(g){r.state=Om,r.timer.restart(f,r.delay,r.time),r.delay<=g&&f(g-r.delay)}function f(g){var v,y,w,_;if(r.state!==Om)return d();for(v in o)if(_=o[v],_.name===r.name){if(_.state===hc)return Pm(f);_.state===Rm?(_.state=dc,_.timer.stop(),_.on.call("interrupt",t,t.__data__,_.index,_.group),delete o[v]):+v<e&&(_.state=dc,_.timer.stop(),_.on.call("cancel",t,t.__data__,_.index,_.group),delete o[v])}if(Pm(function(){r.state===hc&&(r.state=Rm,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=_h,r.on.call("start",t,t.__data__,r.index,r.group),r.state===_h){for(r.state=hc,s=new Array(w=r.tween.length),v=0,y=-1;v<w;++v)(_=r.tween[v].value.call(t,t.__data__,r.index,r.group))&&(s[++y]=_);s.length=y+1}}function h(g){for(var v=g<r.duration?r.ease.call(null,g/r.duration):(r.timer.restart(d),r.state=Sh,1),y=-1,w=s.length;++y<w;)s[y].call(t,v);r.state===Sh&&(r.on.call("end",t,t.__data__,r.index,r.group),d())}function d(){r.state=dc,r.timer.stop(),delete o[e];for(var g in o)return;delete t.__transition}}function pc(t,e){var r=t.__transition,o,s,c=!0,f;if(r){e=e==null?null:e+"";for(f in r){if((o=r[f]).name!==e){c=!1;continue}s=o.state>_h&&o.state<Sh,o.state=dc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[f]}c&&delete t.__transition}}function vht(t){return this.each(function(){pc(this,t)})}function mht(t,e){var r,o;return function(){var s=Pr(this,t),c=s.tween;if(c!==r){o=r=c;for(var f=0,h=o.length;f<h;++f)if(o[f].name===e){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function yht(t,e,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Pr(this,t),f=c.tween;if(f!==o){s=(o=f).slice();for(var h={name:e,value:r},d=0,g=s.length;d<g;++d)if(s[d].name===e){s[d]=h;break}d===g&&s.push(h)}c.tween=s}}function bht(t,e){var r=this._id;if(t+="",arguments.length<2){for(var o=gr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===t)return f.value;return null}return this.each((e==null?mht:yht)(r,t,e))}function xd(t,e,r){var o=t._id;return t.each(function(){var s=Pr(this,o);(s.value||(s.value={}))[e]=r.apply(this,arguments)}),function(s){return gr(s,o).value[e]}}function bw(t,e){var r;return(typeof e=="number"?Ci:e instanceof jl?Am:(r=jl(e))?(e=r,Am):tht)(t,e)}function wht(t){return function(){this.removeAttribute(t)}}function xht(t){return function(){this.removeAttributeNS(t.space,t.local)}}function _ht(t,e,r){var o,s=r+"",c;return function(){var f=this.getAttribute(t);return f===s?null:f===o?c:c=e(o=f,r)}}function Sht(t,e,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(t.space,t.local);return f===s?null:f===o?c:c=e(o=f,r)}}function kht(t,e,r){var o,s,c;return function(){var f,h=r(this),d;return h==null?void this.removeAttribute(t):(f=this.getAttribute(t),d=h+"",f===d?null:f===o&&d===s?c:(s=d,c=e(o=f,h)))}}function Cht(t,e,r){var o,s,c;return function(){var f,h=r(this),d;return h==null?void this.removeAttributeNS(t.space,t.local):(f=this.getAttributeNS(t.space,t.local),d=h+"",f===d?null:f===o&&d===s?c:(s=d,c=e(o=f,h)))}}function Tht(t,e){var r=fu(t),o=r==="transform"?iht:bw;return this.attrTween(t,typeof e=="function"?(r.local?Cht:kht)(r,o,xd(this,"attr."+t,e)):e==null?(r.local?xht:wht)(r):(r.local?Sht:_ht)(r,o,e))}function Eht(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function Lht(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function Aht(t,e){var r,o;function s(){var c=e.apply(this,arguments);return c!==o&&(r=(o=c)&&Lht(t,c)),r}return s._value=e,s}function Mht(t,e){var r,o;function s(){var c=e.apply(this,arguments);return c!==o&&(r=(o=c)&&Eht(t,c)),r}return s._value=e,s}function Nht(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var o=fu(t);return this.tween(r,(o.local?Aht:Mht)(o,e))}function $ht(t,e){return function(){wd(this,t).delay=+e.apply(this,arguments)}}function Pht(t,e){return e=+e,function(){wd(this,t).delay=e}}function Oht(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?$ht:Pht)(e,t)):gr(this.node(),e).delay}function Rht(t,e){return function(){Pr(this,t).duration=+e.apply(this,arguments)}}function Dht(t,e){return e=+e,function(){Pr(this,t).duration=e}}function zht(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Rht:Dht)(e,t)):gr(this.node(),e).duration}function Iht(t,e){if(typeof e!="function")throw new Error;return function(){Pr(this,t).ease=e}}function Fht(t){var e=this._id;return arguments.length?this.each(Iht(e,t)):gr(this.node(),e).ease}function Hht(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;Pr(this,t).ease=r}}function qht(t){if(typeof t!="function")throw new Error;return this.each(Hht(this._id,t))}function Bht(t){typeof t!="function"&&(t=Jb(t));for(var e=this._groups,r=e.length,o=new Array(r),s=0;s<r;++s)for(var c=e[s],f=c.length,h=o[s]=[],d,g=0;g<f;++g)(d=c[g])&&t.call(d,d.__data__,g,c)&&h.push(d);return new Jr(o,this._parents,this._name,this._id)}function Wht(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,o=e.length,s=r.length,c=Math.min(o,s),f=new Array(o),h=0;h<c;++h)for(var d=e[h],g=r[h],v=d.length,y=f[h]=new Array(v),w,_=0;_<v;++_)(w=d[_]||g[_])&&(y[_]=w);for(;h<o;++h)f[h]=e[h];return new Jr(f,this._parents,this._name,this._id)}function Uht(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function jht(t,e,r){var o,s,c=Uht(e)?wd:Pr;return function(){var f=c(this,t),h=f.on;h!==o&&(s=(o=h).copy()).on(e,r),f.on=s}}function Vht(t,e){var r=this._id;return arguments.length<2?gr(this.node(),r).on.on(t):this.each(jht(r,t,e))}function Ght(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Kht(){return this.on("end.remove",Ght(this._id))}function Xht(t){var e=this._name,r=this._id;typeof t!="function"&&(t=gd(t));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var h=o[f],d=h.length,g=c[f]=new Array(d),v,y,w=0;w<d;++w)(v=h[w])&&(y=t.call(v,v.__data__,w,h))&&("__data__"in v&&(y.__data__=v.__data__),g[w]=y,du(g[w],e,r,w,g,gr(v,r)));return new Jr(c,this._parents,e,r)}function Yht(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Zb(t));for(var o=this._groups,s=o.length,c=[],f=[],h=0;h<s;++h)for(var d=o[h],g=d.length,v,y=0;y<g;++y)if(v=d[y]){for(var w=t.call(v,v.__data__,y,d),_,L=gr(v,r),M=0,A=w.length;M<A;++M)(_=w[M])&&du(_,e,r,M,w,L);c.push(w),f.push(v)}return new Jr(c,f,e,r)}var Zht=ta.prototype.constructor;function Jht(){return new Zht(this._groups,this._parents)}function Qht(t,e){var r,o,s;return function(){var c=ys(this,t),f=(this.style.removeProperty(t),ys(this,t));return c===f?null:c===r&&f===o?s:s=e(r=c,o=f)}}function ww(t){return function(){this.style.removeProperty(t)}}function tdt(t,e,r){var o,s=r+"",c;return function(){var f=ys(this,t);return f===s?null:f===o?c:c=e(o=f,r)}}function edt(t,e,r){var o,s,c;return function(){var f=ys(this,t),h=r(this),d=h+"";return h==null&&(d=h=(this.style.removeProperty(t),ys(this,t))),f===d?null:f===o&&d===s?c:(s=d,c=e(o=f,h))}}function ndt(t,e){var r,o,s,c="style."+e,f="end."+c,h;return function(){var d=Pr(this,t),g=d.on,v=d.value[c]==null?h||(h=ww(e)):void 0;(g!==r||s!==v)&&(o=(r=g).copy()).on(f,s=v),d.on=o}}function rdt(t,e,r){var o=(t+="")=="transform"?rht:bw;return e==null?this.styleTween(t,Qht(t,o)).on("end.style."+t,ww(t)):typeof e=="function"?this.styleTween(t,edt(t,o,xd(this,"style."+t,e))).each(ndt(this._id,t)):this.styleTween(t,tdt(t,o,e),r).on("end.style."+t,null)}function idt(t,e,r){return function(o){this.style.setProperty(t,e.call(this,o),r)}}function odt(t,e,r){var o,s;function c(){var f=e.apply(this,arguments);return f!==s&&(o=(s=f)&&idt(t,f,r)),o}return c._value=e,c}function sdt(t,e,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(e==null)return this.tween(o,null);if(typeof e!="function")throw new Error;return this.tween(o,odt(t,e,r??""))}function ldt(t){return function(){this.textContent=t}}function adt(t){return function(){var e=t(this);this.textContent=e??""}}function cdt(t){return this.tween("text",typeof t=="function"?adt(xd(this,"text",t)):ldt(t==null?"":t+""))}function udt(t){return function(e){this.textContent=t.call(this,e)}}function fdt(t){var e,r;function o(){var s=t.apply(this,arguments);return s!==r&&(e=(r=s)&&udt(s)),e}return o._value=t,o}function hdt(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,fdt(t))}function ddt(){for(var t=this._name,e=this._id,r=xw(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],h=f.length,d,g=0;g<h;++g)if(d=f[g]){var v=gr(d,e);du(d,t,r,g,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Jr(o,this._parents,t,r)}function pdt(){var t,e,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var h={value:f},d={value:function(){--s===0&&c()}};r.each(function(){var g=Pr(this,o),v=g.on;v!==t&&(e=(t=v).copy(),e._.cancel.push(h),e._.interrupt.push(h),e._.end.push(d)),g.on=e}),s===0&&c()})}var gdt=0;function Jr(t,e,r,o){this._groups=t,this._parents=e,this._name=r,this._id=o}function xw(){return++gdt}var Wr=ta.prototype;Jr.prototype={constructor:Jr,select:Xht,selectAll:Yht,selectChild:Wr.selectChild,selectChildren:Wr.selectChildren,filter:Bht,merge:Wht,selection:Jht,transition:ddt,call:Wr.call,nodes:Wr.nodes,node:Wr.node,size:Wr.size,empty:Wr.empty,each:Wr.each,on:Vht,attr:Tht,attrTween:Nht,style:rdt,styleTween:sdt,text:cdt,textTween:hdt,remove:Kht,tween:bht,delay:Oht,duration:zht,ease:Fht,easeVarying:qht,end:pdt,[Symbol.iterator]:Wr[Symbol.iterator]};function vdt(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var mdt={time:null,delay:0,duration:250,ease:vdt};function ydt(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function bdt(t){var e,r;t instanceof Jr?(e=t._id,t=t._name):(e=xw(),(r=mdt).time=yd(),t=t==null?null:t+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],h=f.length,d,g=0;g<h;++g)(d=f[g])&&du(d,t,e,g,f,r||ydt(d,e));return new Jr(o,this._parents,t,e)}ta.prototype.interrupt=vht;ta.prototype.transition=bdt;const Qa=t=>()=>t;function wdt(t,{sourceEvent:e,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function Gr(t,e,r){this.k=t,this.x=e,this.y=r}Gr.prototype={constructor:Gr,scale:function(t){return t===1?this:new Gr(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Gr(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var _d=new Gr(1,0,0);Gr.prototype;function Df(t){t.stopImmediatePropagation()}function sl(t){t.preventDefault(),t.stopImmediatePropagation()}function xdt(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function _dt(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Dm(){return this.__zoom||_d}function Sdt(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function kdt(){return navigator.maxTouchPoints||"ontouchstart"in this}function Cdt(t,e,r){var o=t.invertX(e[0][0])-r[0][0],s=t.invertX(e[1][0])-r[1][0],c=t.invertY(e[0][1])-r[0][1],f=t.invertY(e[1][1])-r[1][1];return t.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 Tdt(){var t=xdt,e=_dt,r=Cdt,o=Sdt,s=kdt,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,d=aht,g=ea("start","zoom","end"),v,y,w,_=500,L=150,M=0,A=10;function T(z){z.property("__zoom",Dm).on("wheel.zoom",ut,{passive:!1}).on("mousedown.zoom",st).on("dblclick.zoom",X).filter(s).on("touchstart.zoom",ft).on("touchmove.zoom",rt).on("touchend.zoom touchcancel.zoom",V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}T.transform=function(z,k,q,U){var Q=z.selection?z.selection():z;Q.property("__zoom",Dm),z!==Q?H(z,k,q,U):Q.interrupt().each(function(){F(this,arguments).event(U).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},T.scaleBy=function(z,k,q,U){T.scaleTo(z,function(){var Q=this.__zoom.k,mt=typeof k=="function"?k.apply(this,arguments):k;return Q*mt},q,U)},T.scaleTo=function(z,k,q,U){T.transform(z,function(){var Q=e.apply(this,arguments),mt=this.__zoom,Mt=q==null?$(Q):typeof q=="function"?q.apply(this,arguments):q,Ht=mt.invert(Mt),Wt=typeof k=="function"?k.apply(this,arguments):k;return r(P(E(mt,Wt),Mt,Ht),Q,f)},q,U)},T.translateBy=function(z,k,q,U){T.transform(z,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof q=="function"?q.apply(this,arguments):q),e.apply(this,arguments),f)},null,U)},T.translateTo=function(z,k,q,U,Q){T.transform(z,function(){var mt=e.apply(this,arguments),Mt=this.__zoom,Ht=U==null?$(mt):typeof U=="function"?U.apply(this,arguments):U;return r(_d.translate(Ht[0],Ht[1]).scale(Mt.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof q=="function"?-q.apply(this,arguments):-q),mt,f)},U,Q)};function E(z,k){return k=Math.max(c[0],Math.min(c[1],k)),k===z.k?z:new Gr(k,z.x,z.y)}function P(z,k,q){var U=k[0]-q[0]*z.k,Q=k[1]-q[1]*z.k;return U===z.x&&Q===z.y?z:new Gr(z.k,U,Q)}function $(z){return[(+z[0][0]+ +z[1][0])/2,(+z[0][1]+ +z[1][1])/2]}function H(z,k,q,U){z.on("start.zoom",function(){F(this,arguments).event(U).start()}).on("interrupt.zoom end.zoom",function(){F(this,arguments).event(U).end()}).tween("zoom",function(){var Q=this,mt=arguments,Mt=F(Q,mt).event(U),Ht=e.apply(Q,mt),Wt=q==null?$(Ht):typeof q=="function"?q.apply(Q,mt):q,re=Math.max(Ht[1][0]-Ht[0][0],Ht[1][1]-Ht[0][1]),ne=Q.__zoom,Zt=typeof k=="function"?k.apply(Q,mt):k,Tt=d(ne.invert(Wt).concat(re/ne.k),Zt.invert(Wt).concat(re/Zt.k));return function(G){if(G===1)G=Zt;else{var it=Tt(G),ht=re/it[2];G=new Gr(ht,Wt[0]-it[0]*ht,Wt[1]-it[1]*ht)}Mt.zoom(null,G)}})}function F(z,k,q){return!q&&z.__zooming||new ct(z,k)}function ct(z,k){this.that=z,this.args=k,this.active=0,this.sourceEvent=null,this.extent=e.apply(z,k),this.taps=0}ct.prototype={event:function(z){return z&&(this.sourceEvent=z),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(z,k){return this.mouse&&z!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&z!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&z!=="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(z){var k=Ln(this.that).datum();g.call(z,this.that,new wdt(z,{sourceEvent:this.sourceEvent,target:T,type:z,transform:this.that.__zoom,dispatch:g}),k)}};function ut(z,...k){if(!t.apply(this,arguments))return;var q=F(this,k).event(z),U=this.__zoom,Q=Math.max(c[0],Math.min(c[1],U.k*Math.pow(2,o.apply(this,arguments)))),mt=Vr(z);if(q.wheel)(q.mouse[0][0]!==mt[0]||q.mouse[0][1]!==mt[1])&&(q.mouse[1]=U.invert(q.mouse[0]=mt)),clearTimeout(q.wheel);else{if(U.k===Q)return;q.mouse=[mt,U.invert(mt)],pc(this),q.start()}sl(z),q.wheel=setTimeout(Mt,L),q.zoom("mouse",r(P(E(U,Q),q.mouse[0],q.mouse[1]),q.extent,f));function Mt(){q.wheel=null,q.end()}}function st(z,...k){if(w||!t.apply(this,arguments))return;var q=z.currentTarget,U=F(this,k,!0).event(z),Q=Ln(z.view).on("mousemove.zoom",Wt,!0).on("mouseup.zoom",re,!0),mt=Vr(z,q),Mt=z.clientX,Ht=z.clientY;aw(z.view),Df(z),U.mouse=[mt,this.__zoom.invert(mt)],pc(this),U.start();function Wt(ne){if(sl(ne),!U.moved){var Zt=ne.clientX-Mt,Tt=ne.clientY-Ht;U.moved=Zt*Zt+Tt*Tt>M}U.event(ne).zoom("mouse",r(P(U.that.__zoom,U.mouse[0]=Vr(ne,q),U.mouse[1]),U.extent,f))}function re(ne){Q.on("mousemove.zoom mouseup.zoom",null),cw(ne.view,U.moved),sl(ne),U.event(ne).end()}}function X(z,...k){if(t.apply(this,arguments)){var q=this.__zoom,U=Vr(z.changedTouches?z.changedTouches[0]:z,this),Q=q.invert(U),mt=q.k*(z.shiftKey?.5:2),Mt=r(P(E(q,mt),U,Q),e.apply(this,k),f);sl(z),h>0?Ln(this).transition().duration(h).call(H,Mt,U,z):Ln(this).call(T.transform,Mt,U,z)}}function ft(z,...k){if(t.apply(this,arguments)){var q=z.touches,U=q.length,Q=F(this,k,z.changedTouches.length===U).event(z),mt,Mt,Ht,Wt;for(Df(z),Mt=0;Mt<U;++Mt)Ht=q[Mt],Wt=Vr(Ht,this),Wt=[Wt,this.__zoom.invert(Wt),Ht.identifier],Q.touch0?!Q.touch1&&Q.touch0[2]!==Wt[2]&&(Q.touch1=Wt,Q.taps=0):(Q.touch0=Wt,mt=!0,Q.taps=1+!!v);v&&(v=clearTimeout(v)),mt&&(Q.taps<2&&(y=Wt[0],v=setTimeout(function(){v=null},_)),pc(this),Q.start())}}function rt(z,...k){if(this.__zooming){var q=F(this,k).event(z),U=z.changedTouches,Q=U.length,mt,Mt,Ht,Wt;for(sl(z),mt=0;mt<Q;++mt)Mt=U[mt],Ht=Vr(Mt,this),q.touch0&&q.touch0[2]===Mt.identifier?q.touch0[0]=Ht:q.touch1&&q.touch1[2]===Mt.identifier&&(q.touch1[0]=Ht);if(Mt=q.that.__zoom,q.touch1){var re=q.touch0[0],ne=q.touch0[1],Zt=q.touch1[0],Tt=q.touch1[1],G=(G=Zt[0]-re[0])*G+(G=Zt[1]-re[1])*G,it=(it=Tt[0]-ne[0])*it+(it=Tt[1]-ne[1])*it;Mt=E(Mt,Math.sqrt(G/it)),Ht=[(re[0]+Zt[0])/2,(re[1]+Zt[1])/2],Wt=[(ne[0]+Tt[0])/2,(ne[1]+Tt[1])/2]}else if(q.touch0)Ht=q.touch0[0],Wt=q.touch0[1];else return;q.zoom("touch",r(P(Mt,Ht,Wt),q.extent,f))}}function V(z,...k){if(this.__zooming){var q=F(this,k).event(z),U=z.changedTouches,Q=U.length,mt,Mt;for(Df(z),w&&clearTimeout(w),w=setTimeout(function(){w=null},_),mt=0;mt<Q;++mt)Mt=U[mt],q.touch0&&q.touch0[2]===Mt.identifier?delete q.touch0:q.touch1&&q.touch1[2]===Mt.identifier&&delete q.touch1;if(q.touch1&&!q.touch0&&(q.touch0=q.touch1,delete q.touch1),q.touch0)q.touch0[1]=this.__zoom.invert(q.touch0[0]);else if(q.end(),q.taps===2&&(Mt=Vr(Mt,this),Math.hypot(y[0]-Mt[0],y[1]-Mt[1])<A)){var Ht=Ln(this).on("dblclick.zoom");Ht&&Ht.apply(this,arguments)}}}return T.wheelDelta=function(z){return arguments.length?(o=typeof z=="function"?z:Qa(+z),T):o},T.filter=function(z){return arguments.length?(t=typeof z=="function"?z:Qa(!!z),T):t},T.touchable=function(z){return arguments.length?(s=typeof z=="function"?z:Qa(!!z),T):s},T.extent=function(z){return arguments.length?(e=typeof z=="function"?z:Qa([[+z[0][0],+z[0][1]],[+z[1][0],+z[1][1]]]),T):e},T.scaleExtent=function(z){return arguments.length?(c[0]=+z[0],c[1]=+z[1],T):[c[0],c[1]]},T.translateExtent=function(z){return arguments.length?(f[0][0]=+z[0][0],f[1][0]=+z[1][0],f[0][1]=+z[0][1],f[1][1]=+z[1][1],T):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},T.constrain=function(z){return arguments.length?(r=z,T):r},T.duration=function(z){return arguments.length?(h=+z,T):h},T.interpolate=function(z){return arguments.length?(d=z,T):d},T.on=function(){var z=g.on.apply(g,arguments);return z===g?T:z},T.clickDistance=function(z){return arguments.length?(M=(z=+z)*z,T):Math.sqrt(M)},T.tapDistance=function(z){return arguments.length?(A=+z,T):A},T}function Edt(t){const e=+this._x.call(null,t),r=+this._y.call(null,t);return _w(this.cover(e,r),e,r,t)}function _w(t,e,r,o){if(isNaN(e)||isNaN(r))return t;var s,c=t._root,f={data:o},h=t._x0,d=t._y0,g=t._x1,v=t._y1,y,w,_,L,M,A,T,E;if(!c)return t._root=f,t;for(;c.length;)if((M=e>=(y=(h+g)/2))?h=y:g=y,(A=r>=(w=(d+v)/2))?d=w:v=w,s=c,!(c=c[T=A<<1|M]))return s[T]=f,t;if(_=+t._x.call(null,c.data),L=+t._y.call(null,c.data),e===_&&r===L)return f.next=c,s?s[T]=f:t._root=f,t;do s=s?s[T]=new Array(4):t._root=new Array(4),(M=e>=(y=(h+g)/2))?h=y:g=y,(A=r>=(w=(d+v)/2))?d=w:v=w;while((T=A<<1|M)===(E=(L>=w)<<1|_>=y));return s[E]=c,s[T]=f,t}function Ldt(t){var e,r,o=t.length,s,c,f=new Array(o),h=new Array(o),d=1/0,g=1/0,v=-1/0,y=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,e=t[r]))||isNaN(c=+this._y.call(null,e))||(f[r]=s,h[r]=c,s<d&&(d=s),s>v&&(v=s),c<g&&(g=c),c>y&&(y=c));if(d>v||g>y)return this;for(this.cover(d,g).cover(v,y),r=0;r<o;++r)_w(this,f[r],h[r],t[r]);return this}function Adt(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(t))+1,c=(o=Math.floor(e))+1;else{for(var f=s-r||1,h=this._root,d,g;r>t||t>=s||o>e||e>=c;)switch(g=(e<o)<<1|t<r,d=new Array(4),d[g]=h,h=d,f*=2,g){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=h)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function Mdt(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function Ndt(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function bn(t,e,r,o,s){this.node=t,this.x0=e,this.y0=r,this.x1=o,this.y1=s}function $dt(t,e,r){var o,s=this._x0,c=this._y0,f,h,d,g,v=this._x1,y=this._y1,w=[],_=this._root,L,M;for(_&&w.push(new bn(_,s,c,v,y)),r==null?r=1/0:(s=t-r,c=e-r,v=t+r,y=e+r,r*=r);L=w.pop();)if(!(!(_=L.node)||(f=L.x0)>v||(h=L.y0)>y||(d=L.x1)<s||(g=L.y1)<c))if(_.length){var A=(f+d)/2,T=(h+g)/2;w.push(new bn(_[3],A,T,d,g),new bn(_[2],f,T,A,g),new bn(_[1],A,h,d,T),new bn(_[0],f,h,A,T)),(M=(e>=T)<<1|t>=A)&&(L=w[w.length-1],w[w.length-1]=w[w.length-1-M],w[w.length-1-M]=L)}else{var E=t-+this._x.call(null,_.data),P=e-+this._y.call(null,_.data),$=E*E+P*P;if($<r){var H=Math.sqrt(r=$);s=t-H,c=e-H,v=t+H,y=e+H,o=_.data}}return o}function Pdt(t){if(isNaN(v=+this._x.call(null,t))||isNaN(y=+this._y.call(null,t)))return this;var e,r=this._root,o,s,c,f=this._x0,h=this._y0,d=this._x1,g=this._y1,v,y,w,_,L,M,A,T;if(!r)return this;if(r.length)for(;;){if((L=v>=(w=(f+d)/2))?f=w:d=w,(M=y>=(_=(h+g)/2))?h=_:g=_,e=r,!(r=r[A=M<<1|L]))return this;if(!r.length)break;(e[A+1&3]||e[A+2&3]||e[A+3&3])&&(o=e,T=A)}for(;r.data!==t;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):e?(c?e[A]=c:delete e[A],(r=e[0]||e[1]||e[2]||e[3])&&r===(e[3]||e[2]||e[1]||e[0])&&!r.length&&(o?o[T]=r:this._root=r),this):(this._root=c,this)}function Odt(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this}function Rdt(){return this._root}function Ddt(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function zdt(t){var e=[],r,o=this._root,s,c,f,h,d;for(o&&e.push(new bn(o,this._x0,this._y0,this._x1,this._y1));r=e.pop();)if(!t(o=r.node,c=r.x0,f=r.y0,h=r.x1,d=r.y1)&&o.length){var g=(c+h)/2,v=(f+d)/2;(s=o[3])&&e.push(new bn(s,g,v,h,d)),(s=o[2])&&e.push(new bn(s,c,v,g,d)),(s=o[1])&&e.push(new bn(s,g,f,h,v)),(s=o[0])&&e.push(new bn(s,c,f,g,v))}return this}function Idt(t){var e=[],r=[],o;for(this._root&&e.push(new bn(this._root,this._x0,this._y0,this._x1,this._y1));o=e.pop();){var s=o.node;if(s.length){var c,f=o.x0,h=o.y0,d=o.x1,g=o.y1,v=(f+d)/2,y=(h+g)/2;(c=s[0])&&e.push(new bn(c,f,h,v,y)),(c=s[1])&&e.push(new bn(c,v,h,d,y)),(c=s[2])&&e.push(new bn(c,f,y,v,g)),(c=s[3])&&e.push(new bn(c,v,y,d,g))}r.push(o)}for(;o=r.pop();)t(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Fdt(t){return t[0]}function Hdt(t){return arguments.length?(this._x=t,this):this._x}function qdt(t){return t[1]}function Bdt(t){return arguments.length?(this._y=t,this):this._y}function Sd(t,e,r){var o=new kd(e??Fdt,r??qdt,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function kd(t,e,r,o,s,c){this._x=t,this._y=e,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function zm(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var xn=Sd.prototype=kd.prototype;xn.copy=function(){var t=new kd(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,r,o;if(!e)return t;if(!e.length)return t._root=zm(e),t;for(r=[{source:e,target:t._root=new Array(4)}];e=r.pop();)for(var s=0;s<4;++s)(o=e.source[s])&&(o.length?r.push({source:o,target:e.target[s]=new Array(4)}):e.target[s]=zm(o));return t};xn.add=Edt;xn.addAll=Ldt;xn.cover=Adt;xn.data=Mdt;xn.extent=Ndt;xn.find=$dt;xn.remove=Pdt;xn.removeAll=Odt;xn.root=Rdt;xn.size=Ddt;xn.visit=zdt;xn.visitAfter=Idt;xn.x=Hdt;xn.y=Bdt;function wn(t){return function(){return t}}function Ai(t){return(t()-.5)*1e-6}function Wdt(t){return t.x+t.vx}function Udt(t){return t.y+t.vy}function jdt(t){var e,r,o,s=1,c=1;typeof t!="function"&&(t=wn(t==null?1:+t));function f(){for(var g,v=e.length,y,w,_,L,M,A,T=0;T<c;++T)for(y=Sd(e,Wdt,Udt).visitAfter(h),g=0;g<v;++g)w=e[g],M=r[w.index],A=M*M,_=w.x+w.vx,L=w.y+w.vy,y.visit(E);function E(P,$,H,F,ct){var ut=P.data,st=P.r,X=M+st;if(ut){if(ut.index>w.index){var ft=_-ut.x-ut.vx,rt=L-ut.y-ut.vy,V=ft*ft+rt*rt;V<X*X&&(ft===0&&(ft=Ai(o),V+=ft*ft),rt===0&&(rt=Ai(o),V+=rt*rt),V=(X-(V=Math.sqrt(V)))/V*s,w.vx+=(ft*=V)*(X=(st*=st)/(A+st)),w.vy+=(rt*=V)*X,ut.vx-=ft*(X=1-X),ut.vy-=rt*X)}return}return $>_+X||F<_-X||H>L+X||ct<L-X}}function h(g){if(g.data)return g.r=r[g.data.index];for(var v=g.r=0;v<4;++v)g[v]&&g[v].r>g.r&&(g.r=g[v].r)}function d(){if(e){var g,v=e.length,y;for(r=new Array(v),g=0;g<v;++g)y=e[g],r[y.index]=+t(y,g,e)}}return f.initialize=function(g,v){e=g,o=v,d()},f.iterations=function(g){return arguments.length?(c=+g,f):c},f.strength=function(g){return arguments.length?(s=+g,f):s},f.radius=function(g){return arguments.length?(t=typeof g=="function"?g:wn(+g),d(),f):t},f}function Vdt(t){return t.index}function Im(t,e){var r=t.get(e);if(!r)throw new Error("node not found: "+e);return r}function Gdt(t){var e=Vdt,r=y,o,s=wn(30),c,f,h,d,g,v=1;t==null&&(t=[]);function y(A){return 1/Math.min(h[A.source.index],h[A.target.index])}function w(A){for(var T=0,E=t.length;T<v;++T)for(var P=0,$,H,F,ct,ut,st,X;P<E;++P)$=t[P],H=$.source,F=$.target,ct=F.x+F.vx-H.x-H.vx||Ai(g),ut=F.y+F.vy-H.y-H.vy||Ai(g),st=Math.sqrt(ct*ct+ut*ut),st=(st-c[P])/st*A*o[P],ct*=st,ut*=st,F.vx-=ct*(X=d[P]),F.vy-=ut*X,H.vx+=ct*(X=1-X),H.vy+=ut*X}function _(){if(f){var A,T=f.length,E=t.length,P=new Map(f.map((H,F)=>[e(H,F,f),H])),$;for(A=0,h=new Array(T);A<E;++A)$=t[A],$.index=A,typeof $.source!="object"&&($.source=Im(P,$.source)),typeof $.target!="object"&&($.target=Im(P,$.target)),h[$.source.index]=(h[$.source.index]||0)+1,h[$.target.index]=(h[$.target.index]||0)+1;for(A=0,d=new Array(E);A<E;++A)$=t[A],d[A]=h[$.source.index]/(h[$.source.index]+h[$.target.index]);o=new Array(E),L(),c=new Array(E),M()}}function L(){if(f)for(var A=0,T=t.length;A<T;++A)o[A]=+r(t[A],A,t)}function M(){if(f)for(var A=0,T=t.length;A<T;++A)c[A]=+s(t[A],A,t)}return w.initialize=function(A,T){f=A,g=T,_()},w.links=function(A){return arguments.length?(t=A,_(),w):t},w.id=function(A){return arguments.length?(e=A,w):e},w.iterations=function(A){return arguments.length?(v=+A,w):v},w.strength=function(A){return arguments.length?(r=typeof A=="function"?A:wn(+A),L(),w):r},w.distance=function(A){return arguments.length?(s=typeof A=="function"?A:wn(+A),M(),w):s},w}const Kdt=1664525,Xdt=1013904223,Fm=4294967296;function Ydt(){let t=1;return()=>(t=(Kdt*t+Xdt)%Fm)/Fm}function Zdt(t){return t.x}function Jdt(t){return t.y}var Qdt=10,tpt=Math.PI*(3-Math.sqrt(5));function ept(t){var e,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,h=new Map,d=bd(y),g=ea("tick","end"),v=Ydt();t==null&&(t=[]);function y(){w(),g.call("tick",e),r<o&&(d.stop(),g.call("end",e))}function w(M){var A,T=t.length,E;M===void 0&&(M=1);for(var P=0;P<M;++P)for(r+=(c-r)*s,h.forEach(function($){$(r)}),A=0;A<T;++A)E=t[A],E.fx==null?E.x+=E.vx*=f:(E.x=E.fx,E.vx=0),E.fy==null?E.y+=E.vy*=f:(E.y=E.fy,E.vy=0);return e}function _(){for(var M=0,A=t.length,T;M<A;++M){if(T=t[M],T.index=M,T.fx!=null&&(T.x=T.fx),T.fy!=null&&(T.y=T.fy),isNaN(T.x)||isNaN(T.y)){var E=Qdt*Math.sqrt(.5+M),P=M*tpt;T.x=E*Math.cos(P),T.y=E*Math.sin(P)}(isNaN(T.vx)||isNaN(T.vy))&&(T.vx=T.vy=0)}}function L(M){return M.initialize&&M.initialize(t,v),M}return _(),e={tick:w,restart:function(){return d.restart(y),e},stop:function(){return d.stop(),e},nodes:function(M){return arguments.length?(t=M,_(),h.forEach(L),e):t},alpha:function(M){return arguments.length?(r=+M,e):r},alphaMin:function(M){return arguments.length?(o=+M,e):o},alphaDecay:function(M){return arguments.length?(s=+M,e):+s},alphaTarget:function(M){return arguments.length?(c=+M,e):c},velocityDecay:function(M){return arguments.length?(f=1-M,e):1-f},randomSource:function(M){return arguments.length?(v=M,h.forEach(L),e):v},force:function(M,A){return arguments.length>1?(A==null?h.delete(M):h.set(M,L(A)),e):h.get(M)},find:function(M,A,T){var E=0,P=t.length,$,H,F,ct,ut;for(T==null?T=1/0:T*=T,E=0;E<P;++E)ct=t[E],$=M-ct.x,H=A-ct.y,F=$*$+H*H,F<T&&(ut=ct,T=F);return ut},on:function(M,A){return arguments.length>1?(g.on(M,A),e):g.on(M)}}}function npt(){var t,e,r,o,s=wn(-30),c,f=1,h=1/0,d=.81;function g(_){var L,M=t.length,A=Sd(t,Zdt,Jdt).visitAfter(y);for(o=_,L=0;L<M;++L)e=t[L],A.visit(w)}function v(){if(t){var _,L=t.length,M;for(c=new Array(L),_=0;_<L;++_)M=t[_],c[M.index]=+s(M,_,t)}}function y(_){var L=0,M,A,T=0,E,P,$;if(_.length){for(E=P=$=0;$<4;++$)(M=_[$])&&(A=Math.abs(M.value))&&(L+=M.value,T+=A,E+=A*M.x,P+=A*M.y);_.x=E/T,_.y=P/T}else{M=_,M.x=M.data.x,M.y=M.data.y;do L+=c[M.data.index];while(M=M.next)}_.value=L}function w(_,L,M,A){if(!_.value)return!0;var T=_.x-e.x,E=_.y-e.y,P=A-L,$=T*T+E*E;if(P*P/d<$)return $<h&&(T===0&&(T=Ai(r),$+=T*T),E===0&&(E=Ai(r),$+=E*E),$<f&&($=Math.sqrt(f*$)),e.vx+=T*_.value*o/$,e.vy+=E*_.value*o/$),!0;if(_.length||$>=h)return;(_.data!==e||_.next)&&(T===0&&(T=Ai(r),$+=T*T),E===0&&(E=Ai(r),$+=E*E),$<f&&($=Math.sqrt(f*$)));do _.data!==e&&(P=c[_.data.index]*o/$,e.vx+=T*P,e.vy+=E*P);while(_=_.next)}return g.initialize=function(_,L){t=_,r=L,v()},g.strength=function(_){return arguments.length?(s=typeof _=="function"?_:wn(+_),v(),g):s},g.distanceMin=function(_){return arguments.length?(f=_*_,g):Math.sqrt(f)},g.distanceMax=function(_){return arguments.length?(h=_*_,g):Math.sqrt(h)},g.theta=function(_){return arguments.length?(d=_*_,g):Math.sqrt(d)},g}function rpt(t){var e=wn(.1),r,o,s;typeof t!="function"&&(t=wn(t==null?0:+t));function c(h){for(var d=0,g=r.length,v;d<g;++d)v=r[d],v.vx+=(s[d]-v.x)*o[d]*h}function f(){if(r){var h,d=r.length;for(o=new Array(d),s=new Array(d),h=0;h<d;++h)o[h]=isNaN(s[h]=+t(r[h],h,r))?0:+e(r[h],h,r)}}return c.initialize=function(h){r=h,f()},c.strength=function(h){return arguments.length?(e=typeof h=="function"?h:wn(+h),f(),c):e},c.x=function(h){return arguments.length?(t=typeof h=="function"?h:wn(+h),f(),c):t},c}function ipt(t){var e=wn(.1),r,o,s;typeof t!="function"&&(t=wn(t==null?0:+t));function c(h){for(var d=0,g=r.length,v;d<g;++d)v=r[d],v.vy+=(s[d]-v.y)*o[d]*h}function f(){if(r){var h,d=r.length;for(o=new Array(d),s=new Array(d),h=0;h<d;++h)o[h]=isNaN(s[h]=+t(r[h],h,r))?0:+e(r[h],h,r)}}return c.initialize=function(h){r=h,f()},c.strength=function(h){return arguments.length?(e=typeof h=="function"?h:wn(+h),f(),c):e},c.y=function(h){return arguments.length?(t=typeof h=="function"?h:wn(+h),f(),c):t},c}var opt=Object.defineProperty,spt=(t,e,r)=>e in t?opt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$e=(t,e,r)=>(spt(t,typeof e!="symbol"?e+"":e,r),r);function lpt(){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 Hm(t){if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){const e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1}function Mi(...t){return t.reduce((e,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(e[o])&&Array.isArray(r[o])?e[o]=Mi.options.mergeArrays?Array.from(new Set(e[o].concat(r[o]))):r[o]:Hm(e[o])&&Hm(r[o])?e[o]=Mi(e[o],r[o]):e[o]=r[o])}),e},{})}const Sw={mergeArrays:!0};Mi.options=Sw;Mi.withOptions=(t,...e)=>{Mi.options={mergeArrays:!0,...t};const r=Mi(...e);return Mi.options=Sw,r};function apt(){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 cpt(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function kw(t){t.preventDefault(),t.stopPropagation()}function Cw(t){return typeof t=="number"}function Hi(t,e){return Cw(t.nodeRadius)?t.nodeRadius:t.nodeRadius(e)}function upt(t){return`${t.source.id}-${t.target.id}`}function Tw(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function fpt(t){return`url(#${Tw(t.color)})`}function hpt(t){return{size:t,padding:(e,r)=>Hi(r,e)+2*t,ref:[t/2,t/2],path:[[0,0],[0,t],[t,t/2]],viewBox:[0,0,t,t].join(",")}}const Ew={Arrow:t=>hpt(t)},dpt=(t,e,r)=>[e/2,r/2],Lw=(t,e,r)=>[qm(0,e),qm(0,r)];function qm(t,e){return Math.random()*(e-t)+t}function ppt(t){const e=Object.fromEntries(t.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,s)=>{const[c,f]=e[r.id]??[];return!c||!f?Lw(r,o,s):[c,f]}}const kh={Centered:dpt,Randomized:Lw,Stable:ppt};function gpt(){return{autoResize:!1,callbacks:{},hooks:{},initial:cpt(),nodeRadius:16,marker:Ew.Arrow(4),modifiers:{},positionInitializer:kh.Centered,simulation:{alphas:lpt(),forces:apt()},zoom:{initial:1,min:.1,max:2}}}function vpt(t={}){return Mi.withOptions({mergeArrays:!1},gpt(),t)}function mpt({applyZoom:t,container:e,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:h,zoom:d}){const g=e.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(d).on("contextmenu",v=>kw(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>s==null?void 0:s(v)).style("cursor","grab");return t&&g.call(d.transform,_d.translate(c,f).scale(h)),g.append("g")}function ypt({canvas:t,scale:e,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${e})`)}function bpt({config:t,onDragStart:e,onDragEnd:r}){var o,s;const c=Dft().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,h)=>{f.active===0&&e(f,h),Ln(f.sourceEvent.target).classed("grabbed",!0),h.fx=h.x,h.fy=h.y}).on("drag",(f,h)=>{h.fx=f.x,h.fy=f.y}).on("end",(f,h)=>{f.active===0&&r(f,h),Ln(f.sourceEvent.target).classed("grabbed",!1),h.fx=void 0,h.fy=void 0});return(s=(o=t.modifiers).drag)==null||s.call(o,c),c}function wpt({graph:t,filter:e,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=t.links.filter(d=>e.includes(d.source.type)&&e.includes(d.target.type)&&s(d)),f=d=>c.find(g=>g.source.id===d.id||g.target.id===d.id)!==void 0,h=t.nodes.filter(d=>e.includes(d.type)&&(o||f(d)));return r===void 0||!e.includes(r.type)?{nodes:h,links:c}:xpt({nodes:h,links:c},r)}function xpt(t,e){const r=[..._pt(t,e),...Spt(t,e)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,e])],links:[...new Set(r)]}}function _pt(t,e){return Aw(t,e,(r,o)=>r.target.id===o.id)}function Spt(t,e){return Aw(t,e,(r,o)=>r.source.id===o.id)}function Aw(t,e,r){const o=new Set(t.links),s=new Set([e]),c=[];for(;o.size>0;){const f=[...o].filter(h=>[...s].some(d=>r(h,d)));if(f.length===0)return c;f.forEach(h=>{s.add(h.source),s.add(h.target),c.push(h),o.delete(h)})}return c}function Ch(t){return t.x??0}function Th(t){return t.y??0}function Cd({source:t,target:e}){const r=new yn(Ch(t),Th(t)),o=new yn(Ch(e),Th(e)),s=o.subtract(r),c=s.length(),f=s.normalize(),h=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:h}}function Mw({center:t,node:e}){const r=new yn(Ch(e),Th(e));let o=t;return r.x===o.x&&r.y===o.y&&(o=o.add(new yn(0,1))),{n:r,c:o}}function Nw({config:t,source:e,target:r}){const{s:o,t:s,norm:c}=Cd({config:t,source:e,target:r}),f=o.add(c.multiply(Hi(t,e)-1)),h=s.subtract(c.multiply(t.marker.padding(r,t)));return{start:f,end:h}}function kpt(t){const{start:e,end:r}=Nw(t);return`M${e.x},${e.y}
|
|
49
|
+
L${r.x},${r.y}`}function Cpt(t){const{start:e,end:r}=Nw(t),o=r.subtract(e).multiply(.5),s=e.add(o);return`translate(${s.x-8},${s.y-4})`}function Tpt({config:t,source:e,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:h}=Cd({config:t,source:e,target:r}),d=10,g=f.rotateByDegrees(-d).multiply(Hi(t,e)-1).add(o),v=h.rotateByDegrees(d).multiply(Hi(t,r)).add(s).add(h.rotateByDegrees(d).multiply(2*t.marker.size)),y=1.2*c;return`M${g.x},${g.y}
|
|
50
|
+
A${y},${y},0,0,1,${v.x},${v.y}`}function Ept({center:t,config:e,node:r}){const{n:o,c:s}=Mw({center:t,config:e,node:r}),c=Hi(e,r),f=o.subtract(s),h=f.multiply(1/f.length()),d=40,g=h.rotateByDegrees(d).multiply(c-1).add(o),v=h.rotateByDegrees(-d).multiply(c).add(o).add(h.rotateByDegrees(-d).multiply(2*e.marker.size));return`M${g.x},${g.y}
|
|
51
|
+
A${c},${c},0,1,0,${v.x},${v.y}`}function Lpt({config:t,source:e,target:r}){const{t:o,dist:s,endNorm:c}=Cd({config:t,source:e,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Apt({center:t,config:e,node:r}){const{n:o,c:s}=Mw({center:t,config:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*Hi(e,r)+8).add(o);return`translate(${f.x},${f.y})`}const fs={line:{labelTransform:Cpt,path:kpt},arc:{labelTransform:Lpt,path:Tpt},reflexive:{labelTransform:Apt,path:Ept}};function Mpt(t){return t.append("g").classed("links",!0).selectAll("path")}function Npt({config:t,graph:e,selection:r,showLabels:o}){const s=r==null?void 0:r.data(e.links,c=>upt(c)).join(c=>{var f,h,d,g;const v=c.append("g"),y=v.append("path").classed("link",!0).style("marker-end",_=>fpt(_)).style("stroke",_=>_.color);(h=(f=t.modifiers).link)==null||h.call(f,y);const w=v.append("text").classed("link__label",!0).style("fill",_=>_.label?_.label.color:null).style("font-size",_=>_.label?_.label.fontSize:null).text(_=>_.label?_.label.text:null);return(g=(d=t.modifiers).linkLabel)==null||g.call(d,w),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function $pt(t){Ppt(t),Opt(t)}function Ppt({center:t,config:e,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?fs.reflexive.path({config:e,node:s.source,center:t}):$w(r,s.source,s.target)?fs.arc.path({config:e,source:s.source,target:s.target}):fs.line.path({config:e,source:s.source,target:s.target}))}function Opt({config:t,center:e,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?fs.reflexive.labelTransform({config:t,node:s.source,center:e}):$w(r,s.source,s.target)?fs.arc.labelTransform({config:t,source:s.source,target:s.target}):fs.line.labelTransform({config:t,source:s.source,target:s.target}))}function $w(t,e,r){return e.id!==r.id&&t.links.some(o=>o.target.id===e.id&&o.source.id===r.id)&&t.links.some(o=>o.target.id===r.id&&o.source.id===e.id)}function Rpt(t){return t.append("defs").selectAll("marker")}function Dpt({config:t,graph:e,selection:r}){return r==null?void 0:r.data(zpt(e),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>Tw(c)).attr("markerHeight",4*t.marker.size).attr("markerWidth",4*t.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",t.marker.ref[0]).attr("refY",t.marker.ref[1]).attr("viewBox",t.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",Ipt(t.marker.path)),s})}function zpt(t){return[...new Set(t.links.map(e=>e.color))]}function Ipt(t){const[e,...r]=t;if(!e)return"M0,0";const[o,s]=e;return r.reduce((c,[f,h])=>`${c}L${f},${h}`,`M${o},${s}`)}function Fpt(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function Hpt({config:t,drag:e,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const h=c==null?void 0:c.data(r.nodes,d=>d.id).join(d=>{var g,v,y,w;const _=d.append("g");e!==void 0&&_.call(e);const L=_.append("circle").classed("node",!0).attr("r",A=>Hi(t,A)).on("contextmenu",(A,T)=>{kw(A),o(T)}).on("pointerdown",(A,T)=>Bpt(A,T,s??o)).style("fill",A=>A.color);(v=(g=t.modifiers).node)==null||v.call(g,L);const M=_.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",A=>A.label?A.label.color:null).style("font-size",A=>A.label?A.label.fontSize:null).style("stroke","none").text(A=>A.label?A.label.text:null);return(w=(y=t.modifiers).nodeLabel)==null||w.call(y,M),_});return h==null||h.select(".node").classed("focused",d=>d.isFocused),h==null||h.select(".node__label").attr("opacity",f?1:0),h}const qpt=500;function Bpt(t,e,r){if(t.button!==void 0&&t.button!==0)return;const o=e.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>qpt){e.lastInteractionTimestamp=s;return}e.lastInteractionTimestamp=void 0,r(e)}function Wpt(t){t==null||t.attr("transform",e=>`translate(${e.x??0},${e.y??0})`)}function Upt({center:t,config:e,graph:r,onTick:o}){var s,c;const f=ept(r.nodes),h=e.simulation.forces.centering;if(h&&h.enabled){const y=h.strength;f.force("x",rpt(()=>t().x).strength(y)).force("y",ipt(()=>t().y).strength(y))}const d=e.simulation.forces.charge;d&&d.enabled&&f.force("charge",npt().strength(d.strength));const g=e.simulation.forces.collision;g&&g.enabled&&f.force("collision",jdt().radius(y=>g.radiusMultiplier*Hi(e,y)));const v=e.simulation.forces.link;return v&&v.enabled&&f.force("link",Gdt(r.links).id(y=>y.id).distance(e.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=e.modifiers).simulation)==null||c.call(s,f),f}function jpt({canvasContainer:t,config:e,min:r,max:o,onZoom:s}){var c,f;const h=Tdt().scaleExtent([r,o]).filter(d=>{var g;return d.button===0||((g=d.touches)==null?void 0:g.length)>=2}).on("start",()=>t().classed("grabbed",!0)).on("zoom",d=>s(d)).on("end",()=>t().classed("grabbed",!1));return(f=(c=e.modifiers).zoom)==null||f.call(c,h),h}class Vpt{constructor(e,r,o){if($e(this,"nodeTypes"),$e(this,"_nodeTypeFilter"),$e(this,"_includeUnlinked",!0),$e(this,"_linkFilter",()=>!0),$e(this,"_showLinkLabels",!0),$e(this,"_showNodeLabels",!0),$e(this,"filteredGraph"),$e(this,"width",0),$e(this,"height",0),$e(this,"simulation"),$e(this,"canvas"),$e(this,"linkSelection"),$e(this,"nodeSelection"),$e(this,"markerSelection"),$e(this,"zoom"),$e(this,"drag"),$e(this,"xOffset",0),$e(this,"yOffset",0),$e(this,"scale"),$e(this,"focusedNode"),$e(this,"resizeObserver"),this.container=e,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:h,showNodeLabels:d}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=h??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(Kct(()=>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:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=e?r:o;this.restart(s)}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:r,show:o}=this.config.simulation.alphas.labels.nodes,s=e?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=e?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return yn.of([this.width,this.height]).divide(2).subtract(yn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=e.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const h=this.config.simulation.alphas.resize;this.restart(Cw(h)?h:h({oldWidth:e,oldHeight:r,newWidth:o,newHeight:s}))}restart(e){var r;this.markerSelection=Dpt({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Npt({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Hpt({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=Upt({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,r){e?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var e,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(e=this.resizeObserver)==null||e.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=jpt({config:this.config,canvasContainer:()=>Ln(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=mpt({applyZoom:this.scale!==1,container:Ln(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Mpt(this.canvas),this.nodeSelection=Fpt(this.canvas),this.markerSelection=Rpt(this.canvas),this.drag=bpt({config:this.config,onDragStart:()=>{var e;return(e=this.simulation)==null?void 0:e.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var e;return(e=this.simulation)==null?void 0:e.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){Wpt(this.nodeSelection),$pt({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var e;(e=this.simulation)==null||e.stop(),Ln(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){var r,o,s;this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){ypt({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=wpt({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function Bm({nodes:t,links:e}){return{nodes:t??[],links:e??[]}}function Gpt(t){return{...t}}function Pw(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const Kpt={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Xpt={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Ypt=["id","checked","onChange"],Zpt=["for"],Jpt=J("div",{"flex-auto":""},null,-1),Qpt=fe({__name:"ViewModuleGraph",props:{graph:{},projectName:{}},setup(t){const e=t,{graph:r}=S_(e),o=Qt(),s=Qt(!1),c=Qt(),f=Qt();Gh(()=>{s.value===!1&&setTimeout(()=>c.value=void 0,300)},{flush:"post"}),xs(()=>{g()}),Uh(()=>{var y;(y=f.value)==null||y.shutdown()}),Ge(r,g);function h(y,w){var _;(_=f.value)==null||_.filterNodesByType(w,y)}function d(y){c.value=y,s.value=!0}function g(){var y;(y=f.value)==null||y.shutdown(),!(!r.value||!o.value)&&(f.value=new Vpt(o.value,r.value,vpt({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:w,newWidth:_})=>w===0&&_===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:Ew.Arrow(2),modifiers:{node:v},positionInitializer:r.value.nodes.length>1?kh.Randomized:kh.Centered,zoom:{min:.5,max:2}})))}function v(y){if(Zr)return;const w=A=>A.button===0;let _=0,L=0,M=0;y.on("pointerdown",(A,T)=>{T.type!=="external"&&(!T.x||!T.y||!w(A)||(_=T.x,L=T.y,M=Date.now()))}).on("pointerup",(A,T)=>{if(T.type==="external"||!T.x||!T.y||!w(A)||Date.now()-M>500)return;const E=T.x-_,P=T.y-L;E**2+P**2<100&&d(T.id)})}return(y,w)=>{var T;const _=_s,L=Gct,M=Dct,A=Ui("tooltip");return tt(),yt("div",Kpt,[J("div",null,[J("div",Xpt,[(tt(!0),yt(ie,null,Rn((T=B(f))==null?void 0:T.nodeTypes.sort(),E=>{var P;return tt(),yt("div",{key:E,flex:"~ gap-1","items-center":"","select-none":""},[J("input",{id:`type-${E}`,type:"checkbox",checked:(P=B(f))==null?void 0:P.nodeTypeFilter.includes(E),onChange:$=>h(E,$.target.checked)},null,40,Ypt),J("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${E}`,"border-b-2":"",style:an({"border-color":`var(--color-node-${E})`})},Vt(E)+" Modules",13,Zpt)])}),128)),Jpt,J("div",null,[Se(It(_,{icon:"i-carbon-reset",onClick:g},null,512),[[A,"Reset",void 0,{bottom:!0}]])])])]),J("div",{ref_key:"el",ref:o},null,512),It(M,{modelValue:B(s),"onUpdate:modelValue":w[1]||(w[1]=E=>Ae(s)?s.value=E:null),direction:"right"},{default:oe(()=>[B(c)?(tt(),Yt(H_,{key:0},{default:oe(()=>[It(L,{id:B(c),"project-name":y.projectName,onClose:w[0]||(w[0]=E=>s.value=!1)},null,8,["id","project-name"])]),_:1})):Kt("",!0)]),_:1},8,["modelValue"])])}}}),tgt={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},egt={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},ngt={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},rgt={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},igt={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},ogt={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Ow=fe({__name:"StatusIcon",props:{task:{}},setup(t){return(e,r)=>{var s,c,f;const o=Ui("tooltip");return((s=e.task.result)==null?void 0:s.state)==="pass"?(tt(),yt("div",tgt)):B(Ei)(e.task)?Se((tt(),yt("div",egt,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((c=e.task.result)==null?void 0:c.state)==="fail"?(tt(),yt("div",ngt)):e.task.mode==="todo"?Se((tt(),yt("div",rgt,null,512)),[[o,"Todo",void 0,{right:!0}]]):e.task.mode==="skip"||((f=e.task.result)==null?void 0:f.state)==="skip"?Se((tt(),yt("div",igt,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(tt(),yt("div",ogt))}}});function sgt(t){const e=new Map,r=new Map,o=[];for(;;){let s=0;if(t.forEach((c,f)=>{var v;const{splits:h,finished:d}=c;if(d){s++;const{raw:y,candidate:w}=c;e.set(y,w);return}if(h.length===0){c.finished=!0;return}const g=h[0];r.has(g)?(c.candidate+=c.candidate===""?g:`/${g}`,(v=r.get(g))==null||v.push(f),h.shift()):(r.set(g,[f]),o.push(f))}),o.forEach(c=>{const f=t[c],h=f.splits.shift();f.candidate+=f.candidate===""?h:`/${h}`}),r.forEach(c=>{if(c.length===1){const f=c[0];t[f].finished=!0}}),r.clear(),o.length=0,s===t.length)break}return e}function lgt(t){let e=t;e.includes("/node_modules/")&&(e=t.split(/\/node_modules\//g).pop());const r=e.split(/\//g);return{raw:e,splits:r,candidate:"",finished:!1,id:t}}function agt(t){const e=t.map(o=>lgt(o)),r=sgt(e);return e.map(({raw:o,id:s})=>Pw({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function cgt(t,e){return Pw({color:e?"var(--color-node-root)":"var(--color-node-inline)",label:{color:e?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:t.split(/\//g).pop()},isFocused:!1,id:t,type:"inline"})}function ugt(t,e){if(!t)return Bm({});const r=agt(t.externalized),o=t.inlined.map(h=>cgt(h,h===e))??[],s=[...r,...o],c=Object.fromEntries(s.map(h=>[h.id,h])),f=Object.entries(t.graph).flatMap(([h,d])=>d.map(g=>{const v=c[h],y=c[g];if(!(v===void 0||y===void 0))return Gpt({source:v,target:y,color:"var(--color-link)",label:!1})}).filter(g=>g!==void 0));return Bm({nodes:s,links:f})}function fgt(t){return Object.hasOwnProperty.call(t,"tasks")}function Rw(t,e){return typeof t!="string"||typeof e!="string"?!1:t.toLowerCase().includes(e.toLowerCase())}function Dw(t){if(!t)return"";const e=t.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["blue","yellow","cyan","green","magenta"];return r[e%r.length]}const hgt={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},dgt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},pgt={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},ggt={class:"flex text-lg"},vgt={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},mgt=J("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),ygt={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},bgt={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},wgt=J("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1),xgt=J("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1),_gt={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Sgt=["flex-1"],kgt=fe({__name:"FileDetails",setup(t){const e=Qt({nodes:[],links:[]}),r=Qt(!1),o=Qt(!1),s=Qt(!1),c=Qt(void 0),f=_t(()=>{const w=mn.value;if(!(!w||!w.filepath))return{filepath:w.filepath,projectName:w.file.projectName||""}});function h(){var _;const w=(_=mn.value)==null?void 0:_.filepath;w&&fetch(`/__open-in-editor?file=${encodeURIComponent(w)}`)}function d(w){w==="graph"&&(o.value=!0),Bn.value=w}const g=_t(()=>{var w;return((w=qb.value)==null?void 0:w.reduce((_,{size:L})=>_+L,0))??0});function v(w){r.value=w}async function y(){var w;if(!(s.value||((w=f.value)==null?void 0:w.filepath)===c.value)){s.value=!0,await Mr();try{const _=f.value;if(!_)return;(!c.value||_.filepath!==c.value||!e.value.nodes.length&&!e.value.links.length)&&(e.value=ugt(await Oe.rpc.getModuleGraph(_.projectName,_.filepath,!!ql),_.filepath),c.value=_.filepath),d("graph")}finally{await new Promise(_=>setTimeout(_,100)),s.value=!1}}}return sat(()=>[f.value,Bn.value],([,w])=>{w==="graph"&&y()},{debounce:100,immediate:!0}),(w,_)=>{var H,F,ct,ut,st;const L=Ow,M=_s,A=Qpt,T=Rct,E=Ect,P=gct,$=Ui("tooltip");return B(mn)?(tt(),yt("div",hgt,[J("div",null,[J("div",dgt,[It(L,{task:B(mn)},null,8,["task"]),(H=B(mn))!=null&&H.file.projectName?(tt(),yt("div",{key:0,"font-light":"","op-50":"","text-sm":"",style:an({color:B(Dw)((F=B(mn))==null?void 0:F.file.projectName)})}," ["+Vt(((ct=B(mn))==null?void 0:ct.file.projectName)||"")+"] ",5)):Kt("",!0),J("div",pgt,Vt((ut=B(mn))==null?void 0:ut.name),1),J("div",ggt,[B(Zr)?Kt("",!0):Se((tt(),Yt(M,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((st=B(mn))!=null&&st.filepath),onClick:h},null,8,["disabled"])),[[$,"Open in editor",void 0,{bottom:!0}]])])]),J("div",vgt,[J("button",{"tab-button":"",class:de(["flex items-center gap-2",{"tab-button-active":B(Bn)==null}]),"data-testid":"btn-report",onClick:_[0]||(_[0]=X=>d(null))},[mgt,he(" Report ")],2),J("button",{"tab-button":"","data-testid":"btn-graph",class:de(["flex items-center gap-2",{"tab-button-active":B(Bn)==="graph"}]),onClick:_[1]||(_[1]=X=>d("graph"))},[B(s)?(tt(),yt("span",ygt)):(tt(),yt("span",bgt)),he(" Module Graph ")],2),B(Zr)?Kt("",!0):(tt(),yt("button",{key:0,"tab-button":"","data-testid":"btn-code",class:de(["flex items-center gap-2",{"tab-button-active":B(Bn)==="editor"}]),onClick:_[2]||(_[2]=X=>d("editor"))},[wgt,he(" "+Vt(B(r)?"* ":"")+"Code ",1)],2)),J("button",{"tab-button":"","data-testid":"btn-console",class:de(["flex items-center gap-2",{"tab-button-active":B(Bn)==="console",op20:B(Bn)!=="console"&&B(g)===0}]),onClick:_[3]||(_[3]=X=>d("console"))},[xgt,he(" Console ("+Vt(B(g))+") ",1)],2)])]),J("div",_gt,[B(o)?(tt(),yt("div",{key:0,"flex-1":B(Bn)==="graph"&&""},[Se(It(A,{graph:B(e),"data-testid":"graph","project-name":B(mn).file.projectName||""},null,8,["graph","project-name"]),[[Qo,B(Bn)==="graph"&&!B(s)]])],8,Sgt)):Kt("",!0),B(Bn)==="editor"?(tt(),Yt(T,{key:B(mn).filepath,file:B(mn),"data-testid":"editor",onDraft:v},null,8,["file"])):B(Bn)==="console"?(tt(),Yt(E,{key:2,file:B(mn),"data-testid":"console"},null,8,["file"])):B(Bn)?Kt("",!0):(tt(),Yt(P,{key:3,file:B(mn),"data-testid":"report"},null,8,["file"]))])])):Kt("",!0)}}}),Cgt={h:"full",flex:"~ col"},Tgt=J("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[J("div",{class:"i-carbon:folder-details-reference"}),J("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1),Egt={"flex-auto":"","py-1":"","bg-white":""},Lgt=["src"],Agt=fe({__name:"Coverage",props:{src:{}},setup(t){return(e,r)=>(tt(),yt("div",Cgt,[Tgt,J("div",Egt,[J("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,Lgt)])]))}}),Mgt={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Ngt={"font-bold":""},$gt={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Pgt=["font-bold"],Ogt={text:"red500/70"},Rgt=J("br",null,null,-1),Dgt={key:1,text:"sm","mb-2":""},zgt={"font-bold":""},Igt={key:2,text:"sm","mb-2":""},Fgt={"font-bold":""},Hgt=J("br",null,null,-1),qgt=J("ul",null,[J("li",null," The error was thrown, while Vitest was running this test. "),J("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1),Bgt={key:3,text:"sm","font-thin":""},Wgt=J("br",null,null,-1),Ugt=J("ul",null,[J("li",null," Cancel timeouts using clearTimeout and clearInterval. "),J("li",null," Wait for promises to resolve using the await keyword. ")],-1),jgt=fe({__name:"ErrorEntry",props:{error:{}},setup(t){return(e,r)=>{var o;return tt(),yt(ie,null,[J("h4",Mgt,[J("span",Ngt,[he(Vt(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(tt(),yt(ie,{key:0},[he(":")],64)):Kt("",!0)]),he(" "+Vt(e.error.message),1)]),(o=e.error.stacks)!=null&&o.length?(tt(),yt("p",$gt,[(tt(!0),yt(ie,null,Rn(e.error.stacks,(s,c)=>(tt(),yt("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[he("❯ "+Vt(s.method)+" "+Vt(s.file)+":",1),J("span",Ogt,Vt(s.line)+":"+Vt(s.column),1),Rgt],8,Pgt))),128))])):Kt("",!0),e.error.VITEST_TEST_PATH?(tt(),yt("p",Dgt,[he(" This error originated in "),J("span",zgt,Vt(e.error.VITEST_TEST_PATH),1),he(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ")])):Kt("",!0),e.error.VITEST_TEST_NAME?(tt(),yt("p",Igt,[he(" The latest test that might've caused the error is "),J("span",Fgt,Vt(e.error.VITEST_TEST_NAME),1),he(". It might mean one of the following:"),Hgt,qgt])):Kt("",!0),e.error.VITEST_AFTER_ENV_TEARDOWN?(tt(),yt("p",Bgt,[he(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),Wgt,Ugt])):Kt("",!0)],64)}}}),_n=t=>(k0("data-v-f8421ae4"),t=t(),C0(),t),Vgt={"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:""},Ggt=_n(()=>J("div",{"i-carbon-document":""},null,-1)),Kgt=_n(()=>J("div",null,"Files",-1)),Xgt={class:"number","data-testid":"num-files"},Ygt=_n(()=>J("div",{"i-carbon-checkmark":""},null,-1)),Zgt=_n(()=>J("div",null,"Pass",-1)),Jgt={class:"number"},Qgt=_n(()=>J("div",{"i-carbon-close":""},null,-1)),tvt=_n(()=>J("div",null,"Fail",-1)),evt={class:"number","text-red5":""},nvt=_n(()=>J("div",{"i-carbon-compare":""},null,-1)),rvt=_n(()=>J("div",null,"Snapshot Fail",-1)),ivt={class:"number","text-red5":""},ovt=_n(()=>J("div",{"i-carbon-checkmark-outline-error":""},null,-1)),svt=_n(()=>J("div",null,"Errors",-1)),lvt={class:"number","text-red5":""},avt=_n(()=>J("div",{"i-carbon-timer":""},null,-1)),cvt=_n(()=>J("div",null,"Time",-1)),uvt={class:"number","data-testid":"run-time"},fvt={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},hvt=_n(()=>J("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),dvt={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},pvt=_n(()=>J("br",null,null,-1)),gvt={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},vvt=_n(()=>J("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),mvt=fe({__name:"TestFilesEntry",setup(t){return(e,r)=>{const o=jgt;return tt(),yt(ie,null,[J("div",Vgt,[Ggt,Kgt,J("div",Xgt,Vt(B(ln).length),1),B(Rc).length?(tt(),yt(ie,{key:0},[Ygt,Zgt,J("div",Jgt,Vt(B(Rc).length),1)],64)):Kt("",!0),B(Oc).length?(tt(),yt(ie,{key:1},[Qgt,tvt,J("div",evt,Vt(B(Oc).length),1)],64)):Kt("",!0),B(mm).length?(tt(),yt(ie,{key:2},[nvt,rvt,J("div",ivt,Vt(B(mm).length),1)],64)):Kt("",!0),B(ki).length?(tt(),yt(ie,{key:3},[ovt,svt,J("div",lvt,Vt(B(ki).length),1)],64)):Kt("",!0),avt,cvt,J("div",uvt,Vt(B(_ct)),1)]),B(ki).length?(tt(),yt("div",fvt,[hvt,J("p",dvt,[he(" Vitest caught "+Vt(B(ki).length)+" error"+Vt(B(ki).length>1?"s":"")+" during the test run.",1),pvt,he(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ")]),J("details",gvt,[vvt,(tt(!0),yt(ie,null,Rn(B(ki),(s,c)=>(tt(),Yt(o,{key:c,error:s},null,8,["error"]))),128))])])):Kt("",!0)],64)}}}),yvt=ji(mvt,[["__scopeId","data-v-f8421ae4"]]),bvt={"p-2":"","text-center":"",flex:""},wvt={"text-4xl":"","min-w-2em":""},xvt={"text-md":""},_vt=fe({__name:"DashboardEntry",setup(t){return(e,r)=>(tt(),yt("div",bvt,[J("div",null,[J("div",wvt,[Kn(e.$slots,"body")]),J("div",xvt,[Kn(e.$slots,"header")])])]))}}),Svt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},kvt=fe({__name:"TestsEntry",setup(t){const e=_t(()=>uu.value.length),r=_t(()=>jb.value.length),o=_t(()=>Ub.value.length),s=_t(()=>wct.value.length),c=_t(()=>xct.value.length);return(f,h)=>{const d=_vt;return tt(),yt("div",Svt,[It(d,{"text-green5":"","data-testid":"pass-entry"},{header:oe(()=>[he(" Pass ")]),body:oe(()=>[he(Vt(B(r)),1)]),_:1}),It(d,{class:de({"text-red5":B(o),op50:!B(o)}),"data-testid":"fail-entry"},{header:oe(()=>[he(" Fail ")]),body:oe(()=>[he(Vt(B(o)),1)]),_:1},8,["class"]),B(s)?(tt(),Yt(d,{key:0,op50:"","data-testid":"skipped-entry"},{header:oe(()=>[he(" Skip ")]),body:oe(()=>[he(Vt(B(s)),1)]),_:1})):Kt("",!0),B(c)?(tt(),Yt(d,{key:1,op50:"","data-testid":"todo-entry"},{header:oe(()=>[he(" Todo ")]),body:oe(()=>[he(Vt(B(c)),1)]),_:1})):Kt("",!0),It(d,{tail:!0,"data-testid":"total-entry"},{header:oe(()=>[he(" Total ")]),body:oe(()=>[he(Vt(B(e)),1)]),_:1})])}}}),Cvt={},Tvt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Evt={"aria-labelledby":"tests",m:"y-4 x-2"};function Lvt(t,e){const r=kvt,o=yvt;return tt(),yt("div",Tvt,[J("section",Evt,[It(r)]),It(o)])}const Avt=ji(Cvt,[["render",Lvt]]),Mvt={},Nvt={h:"full",flex:"~ col"},$vt=J("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[J("div",{class:"i-carbon-dashboard"}),J("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),Pvt={class:"scrolls","flex-auto":"","py-1":""};function Ovt(t,e){const r=Avt;return tt(),yt("div",Nvt,[$vt,J("div",Pvt,[It(r)])])}const Rvt=ji(Mvt,[["render",Ovt]]),Dvt=["open"],zvt=J("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Ivt=J("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Fvt=fe({__name:"DetailsPanel",props:{color:{}},setup(t){const e=Qt(!0);return(r,o)=>(tt(),yt("div",{open:B(e),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>e.value=s.target.open)},[J("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:de(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[zvt,Kn(r.$slots,"summary",{open:B(e)}),Ivt],2),Kn(r.$slots,"default")],40,Dvt))}}),Hvt={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},qvt={__name:"IconAction",props:{icon:String},setup(t){return(e,r)=>(tt(),yt("button",Hvt,[J("span",{block:"",class:de([t.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},Bvt=["aria-label","data-current"],Wvt={key:0,"pr-1":""},Uvt={key:0,"i-carbon-chevron-down":"",op20:""},jvt={key:1,"i-carbon-chevron-right":"",op20:""},Vvt={key:1,"i-logos:typescript-icon":"","flex-shrink-0":"","mr-2":""},Gvt=["text"],Kvt={"text-sm":"",truncate:"","font-light":""},Xvt={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},Yvt={key:2,"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Zvt=fe({__name:"TaskItem",props:{task:{},opened:{type:Boolean},failedSnapshot:{type:Boolean}},emits:["run","preview","fixSnapshot"],setup(t,{emit:e}){const r=t,o=e,s=_t(()=>{const{result:c}=r.task;return c&&Math.round(c.duration||0)});return(c,f)=>{var v,y;const h=Ow,d=qvt,g=Ui("tooltip");return c.task?(tt(),yt("div",{key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active",class:"item-wrapper","aria-label":c.task.name,"data-current":B(Wn)===c.task.id},[c.task.type==="suite"?(tt(),yt("div",Wvt,[c.opened?(tt(),yt("div",Uvt)):(tt(),yt("div",jvt))])):Kt("",!0),It(h,{task:c.task,"mr-2":""},null,8,["task"]),c.task.type==="suite"&&c.task.meta.typecheck?(tt(),yt("div",Vvt)):Kt("",!0),J("div",{flex:"","items-end":"","gap-2":"",text:((y=(v=c.task)==null?void 0:v.result)==null?void 0:y.state)==="fail"?"red-500":"","overflow-hidden":""},[J("span",Kvt,["filepath"in c.task&&c.task.projectName?(tt(),yt("span",{key:0,style:an({color:B(Dw)(c.task.file.projectName)})}," ["+Vt(c.task.file.projectName)+"] ",5)):Kt("",!0),he(" "+Vt(c.task.name),1)]),typeof B(s)=="number"?(tt(),yt("span",Xvt,Vt(B(s)>0?B(s):"< 1")+"ms ",1)):Kt("",!0)],8,Gvt),c.task.type==="suite"&&"filepath"in c.task?(tt(),yt("div",Yvt,[!B(Zr)&&c.failedSnapshot?Se((tt(),Yt(d,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon-result-old",onClick:f[0]||(f[0]=xf(w=>o("fixSnapshot"),["prevent","stop"]))},null,512)),[[g,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Kt("",!0),Se(It(d,{"data-testid":"btn-open-details",title:"Open test details",icon:"i-carbon-intrusion-prevention",onClick:f[1]||(f[1]=xf(w=>o("preview"),["prevent","stop"]))},null,512),[[g,"Open test details",void 0,{bottom:!0}]]),B(Zr)?Kt("",!0):Se((tt(),Yt(d,{key:1,"data-testid":"btn-run-test",title:"Run current test",icon:"i-carbon:play-filled-alt","text-green5":"",onClick:f[2]||(f[2]=xf(w=>o("run"),["prevent","stop"]))},null,512)),[[g,"Run current test",void 0,{bottom:!0}]])])):Kt("",!0)],8,Bvt)):Kt("",!0)}}}),Jvt=ji(Zvt,[["__scopeId","data-v-78244a0d"]]),Qvt={key:1},tmt=fe({inheritAttrs:!1,__name:"TaskTree",props:{task:{},failedSnapshot:{type:Boolean},indent:{default:0},opened:{type:Boolean,default:!1},nested:{type:Boolean,default:!1},search:{},onItemClick:{type:Function}},setup(t){const e=_t(()=>t.opened||kr.value.includes(t.task.id));function r(){if(e.value){const c="tasks"in t.task?t.task.tasks.map(f=>f.id):[];kr.value=kr.value.filter(f=>f!==t.task.id&&!c.includes(f))}else kr.value=[...kr.value,t.task.id]}async function o(){var c;(c=t.onItemClick)==null||c.call(t,t.task),ns.value&&(Pc.value=!0,await Mr()),await Bb([t.task.file])}function s(){return Oe.rpc.updateSnapshot(t.task.file)}return(c,f)=>{const h=Jvt,d=yo("TaskTree",!0);return tt(),yt(ie,null,[c.opened||!c.nested||!c.search||B(Rw)(c.task.name,c.search)?(tt(),Yt(h,Pi({key:0},c.$attrs,{task:c.task,style:{paddingLeft:c.indent?`${c.indent*.75+(c.task.type==="suite"?.5:1.75)}rem`:"1rem"},opened:B(e)&&c.task.type==="suite"&&c.task.tasks.length,"failed-snapshot":c.failedSnapshot,onClick:f[0]||(f[0]=g=>r()),onRun:f[1]||(f[1]=g=>o()),onFixSnapshot:f[2]||(f[2]=g=>s()),onPreview:f[3]||(f[3]=g=>{var v;return(v=c.onItemClick)==null?void 0:v.call(c,c.task)})}),null,16,["task","style","opened","failed-snapshot"])):Kt("",!0),c.nested&&c.task.type==="suite"&&c.task.tasks.length?Se((tt(),yt("div",Qvt,[(tt(!0),yt(ie,null,Rn(c.task.tasks,g=>(tt(),Yt(d,{key:g.id,"failed-snapshot":!1,task:g,nested:c.nested,indent:c.indent+1,search:c.search,"on-item-click":c.onItemClick},null,8,["task","nested","indent","search","on-item-click"]))),128))],512)),[[Qo,B(e)]]):Kt("",!0)],64)}}}),emt={h:"full",flex:"~ col"},nmt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},rmt={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},imt=J("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),omt=["op"],smt={class:"scrolls","flex-auto":"","py-1":""},lmt={"text-red5":""},amt={"text-yellow5":""},cmt={"text-green5":""},umt={class:"text-purple5:50"},fmt={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},hmt=J("div",{op30:""}," No matched test ",-1),dmt=fe({inheritAttrs:!1,__name:"TasksList",props:{tasks:{},indent:{},nested:{type:Boolean,default:!1},groupByType:{type:Boolean,default:!1},onItemClick:{type:Function}},emits:["run"],setup(t,{emit:e}){const r=e,o=Qt(""),s=Qt(),c=_t(()=>o.value.trim()!==""),f=_t(()=>o.value.trim()?t.tasks.filter(A=>M([A],o.value)):t.tasks),h=_t(()=>c.value?f.value.map(A=>Hl(A.id)).filter(Boolean):[]),d=_t(()=>f.value.filter(A=>{var T;return((T=A.result)==null?void 0:T.state)==="fail"})),g=_t(()=>f.value.filter(A=>{var T;return((T=A.result)==null?void 0:T.state)==="pass"})),v=_t(()=>f.value.filter(A=>A.mode==="skip"||A.mode==="todo")),y=_t(()=>f.value.filter(A=>!d.value.includes(A)&&!g.value.includes(A)&&!v.value.includes(A))),w=_t(()=>o.value===""),_=iat(y,250);function L(A){var T;o.value="",A&&((T=s.value)==null||T.focus())}function M(A,T){let E=!1;for(let P=0;P<A.length;P++){const $=A[P];if(Rw($.name,T)){E=!0;break}if(fgt($)&&$.tasks&&(E=M($.tasks,T),E))break}return E}return(A,T)=>{const E=_s,P=tmt,$=Fvt,H=Ui("tooltip");return tt(),yt("div",emt,[J("div",null,[J("div",nmt,[Kn(A.$slots,"header",{filteredTests:B(c)?B(h):void 0})]),J("div",rmt,[imt,Se(J("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":T[0]||(T[0]=F=>Ae(o)?o.value=F:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:B(o).length?"100":"50",onKeydown:[T[1]||(T[1]=Qf(F=>L(!1),["esc"])),T[2]||(T[2]=Qf(F=>r("run",B(c)?B(h):void 0),["enter"]))]},null,40,omt),[[uk,B(o)]]),Se(It(E,{disabled:B(w),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:T[3]||(T[3]=F=>L(!0))},null,8,["disabled"]),[[H,"Clear search",void 0,{bottom:!0}]])])]),J("div",smt,[A.groupByType?(tt(),yt(ie,{key:0},[B(d).length?(tt(),Yt($,{key:0},{summary:oe(()=>[J("div",lmt," FAIL ("+Vt(B(d).length)+") ",1)]),default:oe(()=>[(tt(!0),yt(ie,null,Rn(B(d),F=>(tt(),Yt(P,{key:F.id,task:F,nested:A.nested,search:B(o),opened:B(c),"failed-snapshot":B(Ei)(F),class:de(B(Wn)===F.id?"bg-active":""),"on-item-click":A.onItemClick},null,8,["task","nested","search","opened","failed-snapshot","class","on-item-click"]))),128))]),_:1})):Kt("",!0),B(_).length?(tt(),Yt($,{key:1},{summary:oe(()=>[J("div",amt," RUNNING ("+Vt(B(_).length)+") ",1)]),default:oe(()=>[(tt(!0),yt(ie,null,Rn(B(_),F=>(tt(),Yt(P,{key:F.id,task:F,nested:A.nested,search:B(o),opened:B(c),"failed-snapshot":B(Ei)(F),class:de(B(Wn)===F.id?"bg-active":""),"on-item-click":A.onItemClick},null,8,["task","nested","search","opened","failed-snapshot","class","on-item-click"]))),128))]),_:1})):Kt("",!0),B(g).length?(tt(),Yt($,{key:2},{summary:oe(()=>[J("div",cmt," PASS ("+Vt(B(g).length)+") ",1)]),default:oe(()=>[(tt(!0),yt(ie,null,Rn(B(g),F=>(tt(),Yt(P,{key:F.id,task:F,nested:A.nested,opened:B(c),"failed-snapshot":B(Ei)(F),search:B(o),class:de(B(Wn)===F.id?"bg-active":""),"on-item-click":A.onItemClick},null,8,["task","nested","opened","failed-snapshot","search","class","on-item-click"]))),128))]),_:1})):Kt("",!0),B(v).length?(tt(),Yt($,{key:3},{summary:oe(()=>[J("div",umt," SKIP ("+Vt(B(v).length)+") ",1)]),default:oe(()=>[(tt(!0),yt(ie,null,Rn(B(v),F=>(tt(),Yt(P,{key:F.id,task:F,opened:B(c),nested:A.nested,"failed-snapshot":B(Ei)(F),search:B(o),class:de(B(Wn)===F.id?"bg-active":""),"on-item-click":A.onItemClick},null,8,["task","opened","nested","failed-snapshot","search","class","on-item-click"]))),128))]),_:1})):Kt("",!0)],64)):(tt(!0),yt(ie,{key:1},Rn(B(f),F=>(tt(),Yt(P,{key:F.id,task:F,nested:A.nested,opened:B(c),"failed-snapshot":B(Ei)(F),search:B(o),class:de(B(Wn)===F.id?"bg-active":""),"on-item-click":A.onItemClick},null,8,["task","nested","opened","failed-snapshot","search","class","on-item-click"]))),128)),B(c)&&B(f).length===0?(tt(),yt("div",fmt,[hmt,J("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:T[4]||(T[4]=F=>L(!0))}," Clear ",32)])):Kt("",!0)])])}}}),pmt=""+new URL("../favicon.svg",import.meta.url).href,gmt=J("img",{"w-6":"","h-6":"",src:pmt,alt:"Vitest logo"},null,-1),vmt=J("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),mmt={class:"flex text-lg"},ymt=J("div",{class:"i-carbon:folder-off ma"},null,-1),bmt=J("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[J("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),J("div",null,"Coverage enabled but missing html reporter."),J("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1),wmt=fe({__name:"Navigation",setup(t){const e=_t(()=>ln.value&&Ei(ln.value));function r(){return Oe.rpc.updateSnapshot()}const o=_t(()=>Ql.value?"light":"dark");function s(d){Wn.value=d.file.id,ms.value=Hl(d.file.id),uc(!1)}async function c(d){ns.value&&(Pc.value=!0,await Mr(),Fi.value&&(uc(!0),await Mr())),await Uat(d)}function f(){kr.value=[]}function h(){ln.value.forEach(d=>{kr.value.includes(d.id)||kr.value.push(d.id)})}return(d,g)=>{const v=_s,y=dmt,w=Ui("tooltip");return tt(),Yt(y,{border:"r base",tasks:B(ln),"on-item-click":s,"group-by-type":!0,nested:!0,onRun:c},{header:oe(({filteredTests:_})=>[gmt,vmt,J("div",mmt,[Se(It(v,{title:"Collapse tests",icon:"i-carbon:collapse-all",onClick:g[0]||(g[0]=L=>f())},null,512),[[Qo,B(kr).length>0],[w,"Collapse tests",void 0,{bottom:!0}]]),Se(It(v,{title:"Expand tests",icon:"i-carbon:expand-all",onClick:g[1]||(g[1]=L=>h())},null,512),[[Qo,B(kr).length===0],[w,"Expand tests",void 0,{bottom:!0}]]),Se(It(v,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:g[2]||(g[2]=L=>B(uc)(!0))},null,512),[[Qo,B(gh)&&!B(ns)||!B(as)],[w,"Dashboard",void 0,{bottom:!0}]]),B(gh)&&!B(ns)?(tt(),Yt(B(ST),{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:oe(()=>[bmt]),default:oe(()=>[ymt]),_:1})):Kt("",!0),B(ns)?Se((tt(),Yt(v,{key:1,disabled:B(Pc),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:g[3]||(g[3]=L=>B(Yat)())},null,8,["disabled"])),[[Qo,!B(Fi)],[w,"Coverage",void 0,{bottom:!0}]]):Kt("",!0),B(e)&&!B(Zr)?Se((tt(),Yt(v,{key:2,icon:"i-carbon:result-old",onClick:g[4]||(g[4]=L=>r())},null,512)),[[w,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Kt("",!0),B(Zr)?Kt("",!0):Se((tt(),Yt(v,{key:3,disabled:(_==null?void 0:_.length)===0,icon:"i-carbon:play",onClick:L=>c(_)},null,8,["disabled","onClick"])),[[w,_?_.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),Se(It(v,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:g[5]||(g[5]=L=>B(ict)())},null,512),[[w,`Toggle to ${B(o)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks"])}}}),xmt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},_mt=fe({__name:"ProgressBar",setup(t){const{width:e}=wat(),r=_t(()=>ln.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":bct.value?null:"in-progress"),o=_t(()=>ln.value.length),s=_t(()=>Rc.value.length),c=_t(()=>Oc.value.length),f=_t(()=>{const v=B(o);return v>0?e.value*s.value/v:0}),h=_t(()=>{const v=B(o);return v>0?e.value*c.value/v:0}),d=_t(()=>B(o)-c.value-s.value),g=_t(()=>{const v=B(o);return v>0?e.value*d.value/v:0});return(v,y)=>(tt(),yt("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:de(B(r))},[J("div",xmt,[J("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:de(B(r)),style:an(`width: ${B(h)}px;`)}," ",6),J("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:de(B(r)),style:an(`left: ${B(h)}px; width: ${B(f)}px;`)}," ",6),J("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:de(B(r)),style:an(`left: ${B(f)+B(h)}px; width: ${B(g)}px;`)}," ",6)])],2))}}),Smt=ji(_mt,[["__scopeId","data-v-51314246"]]),Wm={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===e?o.max:o.min,s!==e&&(r+=o.min),o)),this.panes[e].size-=r,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:r-e.left,y:o-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(t),s),o);let f=[e,e+1],h=this.panes[f[0]]||null,d=this.panes[f[1]]||null;const g=h.max<100&&c>=h.max+r.prevPanesSize,v=d.max<100&&c<=100-(d.max+this.sumNextPanesSize(e+1));if(g||v){g?(h.size=h.max,d.size=Math.max(100-h.max-r.prevPanesSize-r.nextPanesSize,0)):(h.size=Math.max(100-d.max-r.prevPanesSize-this.sumNextPanesSize(e+1),0),d.size=d.max);return}if(this.pushOtherPanes){const y=this.doPushOtherPanes(r,c);if(!y)return;({sums:r,panesToResize:f}=y),h=this.panes[f[0]]||null,d=this.panes[f[1]]||null}h!==null&&(h.size=Math.min(Math.max(c-r.prevPanesSize-r.prevReachedMinPanes,h.min),h.max)),d!==null&&(d.size=Math.min(Math.max(100-c-r.nextPanesSize-r.nextReachedMinPanes,d.min),d.max))},doPushOtherPanes(t,e){const r=this.touch.activeSplitter,o=[r,r+1];return e<t.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,t.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((s,c)=>{c>o[0]&&c<=r&&(s.size=s.min,t.prevReachedMinPanes+=s.min)}),t.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,c)=>{c>0&&c<=r&&(s.size=s.min,t.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,t.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,c)=>{c>r&&c<o[1]&&(s.size=s.min,t.nextReachedMinPanes+=s.min)}),t.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((s,c)=>{c<this.panesCount-1&&c>=r+1&&(s.size=s.min,t.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:o}},sumPrevPanesSize(t){return this.panes.reduce((e,r,o)=>e+(o<t?r.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((e,r,o)=>e+(o>t+1?r.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.index<t&&e.size>e.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),r=t.classList.contains("splitpanes__splitter");!e&&!r&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(t,e,r=!1){const o=t-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=c=>this.onMouseDown(c,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=c=>this.onMouseDown(c,o)),s.onclick=c=>this.onSplitterClick(c,o+1)),this.dblClickSplitter&&(s.ondblclick=c=>this.onSplitterDblClick(c,o+1)),e.parentNode.insertBefore(s,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let e=0;t.forEach(r=>{r.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,r,!0):e&&this.addSplitter(e,r),e++)})},requestUpdate({target:t,...e}){const r=this.indexedPanes[t._.uid];Object.entries(e).forEach(([o,s])=>r[o]=s)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&e++,s===t.$el));const r=parseFloat(t.minSize),o=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._.uid,index:e,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((s,c)=>s.index=c),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(o=>o.id===t._.uid),r=this.panes.splice(e,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:e}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(t,s.max),s.min),e-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),e>.1&&this.readjustSizes(e,r,o)},initialPanesSizing(){let t=100;const e=[],r=[];let o=0;this.panes.forEach(c=>{t-=c.size,c.size!==null&&o++,c.size>=c.max&&e.push(c.id),c.size<=c.min&&r.push(c.id)});let s=100;t>.1&&(this.panes.forEach(c=>{c.size===null&&(c.size=Math.max(Math.min(t/(this.panesCount-o),c.max),c.min)),s-=c.size}),s>.1&&this.readjustSizes(t,e,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let r=100/this.panesCount,o=0;const s=[],c=[];t&&t.givenSize!==null&&(r=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{t&&t.givenSize!==null&&t.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),o>.1&&this.readjustSizes(o,s,c))},readjustSizes(t,e,r){let o;t>0?o=t/(this.panesCount-e.length):o=t/(this.panesCount-r.length),this.panes.forEach((s,c)=>{if(t>0&&!e.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),h=f-s.size;t-=h,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),h=f-s.size;t-=h,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,r)=>{e.ondblclick=t?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Yl("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},kmt=(t,e)=>{const r=t.__vccOpts||t;for(const[o,s]of e)r[o]=s;return r},Cmt={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function Tmt(t,e,r,o,s,c){return tt(),yt("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=f=>c.onPaneClick(f,t._.uid)),style:an(t.style)},[Kn(t.$slots,"default")],4)}const tc=kmt(Cmt,[["render",Tmt]]),Emt={"h-screen":"","w-screen":"",overflow:"hidden"},Lmt=fe({__name:"index",setup(t){const e=Xat(),r=ud("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),o=pm(f=>{f.forEach((h,d)=>{r.value[d]=h.size})},0),s=pm(f=>{f.forEach((h,d)=>{cc.value[d]=h.size}),$f(!1)},0);function c(){const f=window.innerWidth,h=Math.min(f/3,300);r.value[0]=100*h/f,r.value[1]=100-r.value[0]}return(f,h)=>{const d=Smt,g=wmt,v=Rvt,y=Agt,w=kgt,_=rct,L=Gat;return tt(),yt(ie,null,[It(d),J("div",Emt,[It(B(Wm),{class:"pt-4px",onResized:B(o),onResize:h[2]||(h[2]=M=>B($f)(!0)),onReady:c},{default:oe(()=>[It(B(tc),{size:B(r)[0]},{default:oe(()=>[It(g)]),_:1},8,["size"]),It(B(tc),{size:B(r)[1]},{default:oe(()=>[B(ql)?(tt(),Yt(B(Wm),{id:"details-splitpanes",key:"browser-detail",onResize:h[1]||(h[1]=M=>B($f)(!0)),onResized:B(s)},{default:oe(()=>[It(B(tc),{size:B(cc)[0],"min-size":"10"},{default:oe(()=>[h[0]||(xc(-1),h[0]=It(_),xc(1),h[0])]),_:1},8,["size"]),It(B(tc),{size:B(cc)[1],"min-size":"5"},{default:oe(()=>[B(e)?(tt(),Yt(v,{key:"summary"})):B(Fi)?(tt(),Yt(y,{key:"coverage",src:B(vm)},null,8,["src"])):(tt(),Yt(w,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResized"])):(tt(),Yt(Xh,{key:"ui-detail"},{default:oe(()=>[B(e)?(tt(),Yt(v,{key:"summary"})):B(Fi)?(tt(),Yt(y,{key:"coverage",src:B(vm)},null,8,["src"])):(tt(),Yt(w,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized"])]),It(L)],64)}}}),Amt=[{name:"index",path:"/",component:Lmt,props:!0}],Mmt={tooltip:_T};Uy.options.instantMove=!0;Uy.options.distance=10;function Nmt(){return kC({history:Jk(),routes:Amt})}const $mt=[Nmt],Td=iy(wk);$mt.forEach(t=>{Td.use(t())});Object.entries(Mmt).forEach(([t,e])=>{Td.directive(t,e)});Td.mount("#app");
|