@vitest/browser 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/.vite/manifest.json +2 -2
- package/dist/client/__vitest__/assets/index--tE7Z8jQ.js +52 -0
- package/dist/client/__vitest__/assets/index-C0SwoDYm.css +1 -0
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/__vitest_browser__/{orchestrator-BO1kzf5D.js → orchestrator-CNOAigTE.js} +16 -0
- package/dist/client/__vitest_browser__/{tester-DoK-7PCe.js → tester-BSSDPE9E.js} +3 -2
- package/dist/client/orchestrator.html +1 -1
- package/dist/client/tester/tester.html +1 -1
- package/dist/index.js +56 -18
- package/package.json +13 -13
- package/dist/client/__vitest__/assets/index-Cj9T8Z4J.js +0 -52
- package/dist/client/__vitest__/assets/index-Ct7j6Tgf.css +0 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var I_=Object.defineProperty;var F_=(e,t,r)=>t in e?I_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Yr=(e,t,r)=>F_(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
|
|
2
|
+
* @vue/shared v3.4.31
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function sh(e,t){const r=new Set(e.split(","));return o=>r.has(o)}const St={},fs=[],Zn=()=>{},H_=()=>!1,cu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),lh=e=>e.startsWith("onUpdate:"),It=Object.assign,ah=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},q_=Object.prototype.hasOwnProperty,ct=(e,t)=>q_.call(e,t),ze=Array.isArray,ds=e=>ra(e)==="[object Map]",uu=e=>ra(e)==="[object Set]",uv=e=>ra(e)==="[object Date]",Xe=e=>typeof e=="function",$t=e=>typeof e=="string",Dr=e=>typeof e=="symbol",xt=e=>e!==null&&typeof e=="object",R0=e=>(xt(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),D0=Object.prototype.toString,ra=e=>D0.call(e),B_=e=>ra(e).slice(8,-1),z0=e=>ra(e)==="[object Object]",ch=e=>$t(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,wl=sh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fu=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},W_=/-(\w)/g,wr=fu(e=>e.replace(W_,(t,r)=>r?r.toUpperCase():"")),U_=/\B([A-Z])/g,eo=fu(e=>e.replace(U_,"-$1").toLowerCase()),du=fu(e=>e.charAt(0).toUpperCase()+e.slice(1)),vc=fu(e=>e?`on${du(e)}`:""),zr=(e,t)=>!Object.is(e,t),mc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},I0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},cd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},F0=e=>{const t=$t(e)?Number(e):NaN;return isNaN(t)?e:t};let fv;const H0=()=>fv||(fv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Zt(e){if(ze(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=$t(o)?K_(o):Zt(o);if(s)for(const c in s)t[c]=s[c]}return t}else if($t(e)||xt(e))return e}const V_=/;(?![^(]*\))/g,j_=/:([^]+)/,G_=/\/\*[^]*?\*\//g;function K_(e){const t={};return e.replace(G_,"").split(V_).forEach(r=>{if(r){const o=r.split(j_);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function lt(e){let t="";if($t(e))t=e;else if(ze(e))for(let r=0;r<e.length;r++){const o=lt(e[r]);o&&(t+=o+" ")}else if(xt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function X_(e){if(!e)return null;let{class:t,style:r}=e;return t&&!$t(t)&&(e.class=lt(t)),r&&(e.style=Zt(r)),e}const Y_="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Z_=sh(Y_);function q0(e){return!!e||e===""}function J_(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=hu(e[o],t[o]);return r}function hu(e,t){if(e===t)return!0;let r=uv(e),o=uv(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Dr(e),o=Dr(t),r||o)return e===t;if(r=ze(e),o=ze(t),r||o)return r&&o?J_(e,t):!1;if(r=xt(e),o=xt(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!hu(e[f],t[f]))return!1}}return String(e)===String(t)}function B0(e,t){return e.findIndex(r=>hu(r,t))}const W0=e=>!!(e&&e.__v_isRef===!0),qe=e=>$t(e)?e:e==null?"":ze(e)||xt(e)&&(e.toString===D0||!Xe(e.toString))?W0(e)?qe(e.value):JSON.stringify(e,U0,2):String(e),U0=(e,t)=>W0(t)?U0(e,t.value):ds(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[If(o,c)+" =>"]=s,r),{})}:uu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>If(r))}:Dr(t)?If(t):xt(t)&&!ze(t)&&!z0(t)?String(t):t,If=(e,t="")=>{var r;return Dr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.4.31
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let Bn;class Q_{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Bn,!t&&Bn&&(this.index=(Bn.scopes||(Bn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Bn;try{return Bn=this,t()}finally{Bn=r}}}on(){Bn=this}off(){Bn=this.parent}stop(t){if(this._active){let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.scopes)for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function eS(e,t=Bn){t&&t.active&&t.effects.push(e)}function V0(){return Bn}function tS(e){Bn&&Bn.cleanups.push(e)}let Co;class uh{constructor(t,r,o,s){this.fn=t,this.trigger=r,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,eS(this,s)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,to();for(let t=0;t<this._depsLength;t++){const r=this.deps[t];if(r.computed&&(nS(r.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),no()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ui,r=Co;try{return Ui=!0,Co=this,this._runnings++,dv(this),this.fn()}finally{hv(this),this._runnings--,Co=r,Ui=t}}stop(){this.active&&(dv(this),hv(this),this.onStop&&this.onStop(),this.active=!1)}}function nS(e){return e.value}function dv(e){e._trackId++,e._depsLength=0}function hv(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)j0(e.deps[t],e);e.deps.length=e._depsLength}}function j0(e,t){const r=e.get(t);r!==void 0&&t._trackId!==r&&(e.delete(t),e.size===0&&e.cleanup())}let Ui=!0,ud=0;const G0=[];function to(){G0.push(Ui),Ui=!1}function no(){const e=G0.pop();Ui=e===void 0?!0:e}function fh(){ud++}function dh(){for(ud--;!ud&&fd.length;)fd.shift()()}function K0(e,t,r){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&j0(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const fd=[];function X0(e,t,r){fh();for(const o of e.keys()){let s;o._dirtyLevel<t&&(s??(s=e.get(o)===o._trackId))&&(o._shouldSchedule||(o._shouldSchedule=o._dirtyLevel===0),o._dirtyLevel=t),o._shouldSchedule&&(s??(s=e.get(o)===o._trackId))&&(o.trigger(),(!o._runnings||o.allowRecurse)&&o._dirtyLevel!==2&&(o._shouldSchedule=!1,o.scheduler&&fd.push(o.scheduler)))}dh()}const Y0=(e,t)=>{const r=new Map;return r.cleanup=e,r.computed=t,r},Oc=new WeakMap,Eo=Symbol(""),dd=Symbol("");function Dn(e,t,r){if(Ui&&Co){let o=Oc.get(e);o||Oc.set(e,o=new Map);let s=o.get(r);s||o.set(r,s=Y0(()=>o.delete(r))),K0(Co,s)}}function ri(e,t,r,o,s,c){const f=Oc.get(e);if(!f)return;let d=[];if(t==="clear")d=[...f.values()];else if(r==="length"&&ze(e)){const h=Number(o);f.forEach((p,v)=>{(v==="length"||!Dr(v)&&v>=h)&&d.push(p)})}else switch(r!==void 0&&d.push(f.get(r)),t){case"add":ze(e)?ch(r)&&d.push(f.get("length")):(d.push(f.get(Eo)),ds(e)&&d.push(f.get(dd)));break;case"delete":ze(e)||(d.push(f.get(Eo)),ds(e)&&d.push(f.get(dd)));break;case"set":ds(e)&&d.push(f.get(Eo));break}fh();for(const h of d)h&&X0(h,4);dh()}function rS(e,t){const r=Oc.get(e);return r&&r.get(t)}const iS=sh("__proto__,__v_isRef,__isVue"),Z0=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dr)),pv=oS();function oS(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const o=pt(this);for(let c=0,f=this.length;c<f;c++)Dn(o,"get",c+"");const s=o[t](...r);return s===-1||s===!1?o[t](...r.map(pt)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){to(),fh();const o=pt(this)[t].apply(this,r);return dh(),no(),o}}),e}function sS(e){Dr(e)||(e=String(e));const t=pt(this);return Dn(t,"has",e),t.hasOwnProperty(e)}class J0{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?bS:ny:c?ty:ey).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=ze(t);if(!s){if(f&&ct(pv,r))return Reflect.get(pv,r,o);if(r==="hasOwnProperty")return sS}const d=Reflect.get(t,r,o);return(Dr(r)?Z0.has(r):iS(r))||(s||Dn(t,"get",r),c)?d:Ot(d)?f&&ch(r)?d:d.value:xt(d)?s?ia(d):er(d):d}}class Q0 extends J0{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=Rl(c);if(!Pc(o)&&!Rl(o)&&(c=pt(c),o=pt(o)),!ze(t)&&Ot(c)&&!Ot(o))return h?!1:(c.value=o,!0)}const f=ze(t)&&ch(r)?Number(r)<t.length:ct(t,r),d=Reflect.set(t,r,o,s);return t===pt(s)&&(f?zr(o,c)&&ri(t,"set",r,o):ri(t,"add",r,o)),d}deleteProperty(t,r){const o=ct(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&ri(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Dr(r)||!Z0.has(r))&&Dn(t,"has",r),o}ownKeys(t){return Dn(t,"iterate",ze(t)?"length":Eo),Reflect.ownKeys(t)}}class lS extends J0{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const aS=new Q0,cS=new lS,uS=new Q0(!0);const hh=e=>e,pu=e=>Reflect.getPrototypeOf(e);function Ya(e,t,r=!1,o=!1){e=e.__v_raw;const s=pt(e),c=pt(t);r||(zr(t,c)&&Dn(s,"get",t),Dn(s,"get",c));const{has:f}=pu(s),d=o?hh:r?yh:Dl;if(f.call(s,t))return d(e.get(t));if(f.call(s,c))return d(e.get(c));e!==s&&e.get(t)}function Za(e,t=!1){const r=this.__v_raw,o=pt(r),s=pt(e);return t||(zr(e,s)&&Dn(o,"has",e),Dn(o,"has",s)),e===s?r.has(e):r.has(e)||r.has(s)}function Ja(e,t=!1){return e=e.__v_raw,!t&&Dn(pt(e),"iterate",Eo),Reflect.get(e,"size",e)}function gv(e){e=pt(e);const t=pt(this);return pu(t).has.call(t,e)||(t.add(e),ri(t,"add",e,e)),this}function vv(e,t){t=pt(t);const r=pt(this),{has:o,get:s}=pu(r);let c=o.call(r,e);c||(e=pt(e),c=o.call(r,e));const f=s.call(r,e);return r.set(e,t),c?zr(t,f)&&ri(r,"set",e,t):ri(r,"add",e,t),this}function mv(e){const t=pt(this),{has:r,get:o}=pu(t);let s=r.call(t,e);s||(e=pt(e),s=r.call(t,e)),o&&o.call(t,e);const c=t.delete(e);return s&&ri(t,"delete",e,void 0),c}function yv(){const e=pt(this),t=e.size!==0,r=e.clear();return t&&ri(e,"clear",void 0,void 0),r}function Qa(e,t){return function(o,s){const c=this,f=c.__v_raw,d=pt(f),h=t?hh:e?yh:Dl;return!e&&Dn(d,"iterate",Eo),f.forEach((p,v)=>o.call(s,h(p),h(v),c))}}function ec(e,t,r){return function(...o){const s=this.__v_raw,c=pt(s),f=ds(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?hh:t?yh:Dl;return!t&&Dn(c,"iterate",h?dd:Eo),{next(){const{value:y,done:b}=p.next();return b?{value:y,done:b}:{value:d?[v(y[0]),v(y[1])]:v(y),done:b}},[Symbol.iterator](){return this}}}}function Ei(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function fS(){const e={get(c){return Ya(this,c)},get size(){return Ja(this)},has:Za,add:gv,set:vv,delete:mv,clear:yv,forEach:Qa(!1,!1)},t={get(c){return Ya(this,c,!1,!0)},get size(){return Ja(this)},has:Za,add:gv,set:vv,delete:mv,clear:yv,forEach:Qa(!1,!0)},r={get(c){return Ya(this,c,!0)},get size(){return Ja(this,!0)},has(c){return Za.call(this,c,!0)},add:Ei("add"),set:Ei("set"),delete:Ei("delete"),clear:Ei("clear"),forEach:Qa(!0,!1)},o={get(c){return Ya(this,c,!0,!0)},get size(){return Ja(this,!0)},has(c){return Za.call(this,c,!0)},add:Ei("add"),set:Ei("set"),delete:Ei("delete"),clear:Ei("clear"),forEach:Qa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(c=>{e[c]=ec(c,!1,!1),r[c]=ec(c,!0,!1),t[c]=ec(c,!1,!0),o[c]=ec(c,!0,!0)}),[e,r,t,o]}const[dS,hS,pS,gS]=fS();function ph(e,t){const r=t?e?gS:pS:e?hS:dS;return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(ct(r,s)&&s in o?r:o,s,c)}const vS={get:ph(!1,!1)},mS={get:ph(!1,!0)},yS={get:ph(!0,!1)};const ey=new WeakMap,ty=new WeakMap,ny=new WeakMap,bS=new WeakMap;function wS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xS(e){return e.__v_skip||!Object.isExtensible(e)?0:wS(B_(e))}function er(e){return Rl(e)?e:vh(e,!1,aS,vS,ey)}function gh(e){return vh(e,!1,uS,mS,ty)}function ia(e){return vh(e,!0,cS,yS,ny)}function vh(e,t,r,o,s){if(!xt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=s.get(e);if(c)return c;const f=xS(e);if(f===0)return e;const d=new Proxy(e,f===2?o:r);return s.set(e,d),d}function xl(e){return Rl(e)?xl(e.__v_raw):!!(e&&e.__v_isReactive)}function Rl(e){return!!(e&&e.__v_isReadonly)}function Pc(e){return!!(e&&e.__v_isShallow)}function ry(e){return e?!!e.__v_raw:!1}function pt(e){const t=e&&e.__v_raw;return t?pt(t):e}function mh(e){return Object.isExtensible(e)&&I0(e,"__v_skip",!0),e}const Dl=e=>xt(e)?er(e):e,yh=e=>xt(e)?ia(e):e;class iy{constructor(t,r,o,s){this.getter=t,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new uh(()=>t(this._value),()=>_l(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const t=pt(this);return(!t._cacheable||t.effect.dirty)&&zr(t._value,t._value=t.effect.run())&&_l(t,4),bh(t),t.effect._dirtyLevel>=2&&_l(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function _S(e,t,r=!1){let o,s;const c=Xe(e);return c?(o=e,s=Zn):(o=e.get,s=e.set),new iy(o,s,c||!s,r)}function bh(e){var t;Ui&&Co&&(e=pt(e),K0(Co,(t=e.dep)!=null?t:e.dep=Y0(()=>e.dep=void 0,e instanceof iy?e:void 0)))}function _l(e,t=4,r,o){e=pt(e);const s=e.dep;s&&X0(s,t)}function Ot(e){return!!(e&&e.__v_isRef===!0)}function Be(e){return oy(e,!1)}function Fr(e){return oy(e,!0)}function oy(e,t){return Ot(e)?e:new SS(e,t)}class SS{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:pt(t),this._value=r?t:Dl(t)}get value(){return bh(this),this._value}set value(t){const r=this.__v_isShallow||Pc(t)||Rl(t);t=r?t:pt(t),zr(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=r?t:Dl(t),_l(this,4))}}function q(e){return Ot(e)?e.value:e}const kS={get:(e,t,r)=>q(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Ot(s)&&!Ot(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function sy(e){return xl(e)?e:new Proxy(e,kS)}class TS{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:o}=t(()=>bh(this),()=>_l(this));this._get=r,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function ly(e){return new TS(e)}function CS(e){const t=ze(e)?new Array(e.length):{};for(const r in e)t[r]=ay(e,r);return t}class ES{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return rS(pt(this._object),this._key)}}class LS{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function gu(e,t,r){return Ot(e)?e:Xe(e)?new LS(e):xt(e)&&arguments.length>1?ay(e,t,r):Be(e)}function ay(e,t,r){const o=e[t];return Ot(o)?o:new ES(e,t,r)}/**
|
|
10
|
+
* @vue/runtime-core v3.4.31
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function Vi(e,t,r,o){try{return o?e(...o):e()}catch(s){oa(s,t,r)}}function tr(e,t,r,o){if(Xe(e)){const s=Vi(e,t,r,o);return s&&R0(s)&&s.catch(c=>{oa(c,t,r)}),s}if(ze(e)){const s=[];for(let c=0;c<e.length;c++)s.push(tr(e[c],t,r,o));return s}}function oa(e,t,r,o=!0){const s=t?t.vnode:null;if(t){let c=t.parent;const f=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${r}`;for(;c;){const p=c.ec;if(p){for(let v=0;v<p.length;v++)if(p[v](e,f,d)===!1)return}c=c.parent}const h=t.appContext.config.errorHandler;if(h){to(),Vi(h,null,10,[e,f,d]),no();return}}AS(e,r,s,o)}function AS(e,t,r,o=!0){console.error(e)}let zl=!1,hd=!1;const fn=[];let Mr=0;const hs=[];let Pi=null,_o=0;const cy=Promise.resolve();let wh=null;function ln(e){const t=wh||cy;return e?t.then(this?e.bind(this):e):t}function MS(e){let t=Mr+1,r=fn.length;for(;t<r;){const o=t+r>>>1,s=fn[o],c=Il(s);c<e||c===e&&s.pre?t=o+1:r=o}return t}function xh(e){(!fn.length||!fn.includes(e,zl&&e.allowRecurse?Mr+1:Mr))&&(e.id==null?fn.push(e):fn.splice(MS(e.id),0,e),uy())}function uy(){!zl&&!hd&&(hd=!0,wh=cy.then(dy))}function NS(e){const t=fn.indexOf(e);t>Mr&&fn.splice(t,1)}function pd(e){ze(e)?hs.push(...e):(!Pi||!Pi.includes(e,e.allowRecurse?_o+1:_o))&&hs.push(e),uy()}function bv(e,t,r=zl?Mr+1:0){for(;r<fn.length;r++){const o=fn[r];if(o&&o.pre){if(e&&o.id!==e.uid)continue;fn.splice(r,1),r--,o()}}}function fy(e){if(hs.length){const t=[...new Set(hs)].sort((r,o)=>Il(r)-Il(o));if(hs.length=0,Pi){Pi.push(...t);return}for(Pi=t,_o=0;_o<Pi.length;_o++){const r=Pi[_o];r.active!==!1&&r()}Pi=null,_o=0}}const Il=e=>e.id==null?1/0:e.id,$S=(e,t)=>{const r=Il(e)-Il(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function dy(e){hd=!1,zl=!0,fn.sort($S);try{for(Mr=0;Mr<fn.length;Mr++){const t=fn[Mr];t&&t.active!==!1&&Vi(t,null,14)}}finally{Mr=0,fn.length=0,fy(),zl=!1,wh=null,(fn.length||hs.length)&&dy()}}function OS(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||St;let s=r;const c=t.startsWith("update:"),f=c&&t.slice(7);if(f&&f in o){const v=`${f==="modelValue"?"model":f}Modifiers`,{number:y,trim:b}=o[v]||St;b&&(s=r.map(x=>$t(x)?x.trim():x)),y&&(s=r.map(cd))}let d,h=o[d=vc(t)]||o[d=vc(wr(t))];!h&&c&&(h=o[d=vc(eo(t))]),h&&tr(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,tr(p,e,6,s)}}function hy(e,t,r=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Xe(e)){const h=p=>{const v=hy(p,t,!0);v&&(d=!0,It(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(xt(e)&&o.set(e,null),null):(ze(c)?c.forEach(h=>f[h]=null):It(f,c),xt(e)&&o.set(e,f),f)}function vu(e,t){return!e||!cu(t)?!1:(t=t.slice(2).replace(/Once$/,""),ct(e,t[0].toLowerCase()+t.slice(1))||ct(e,eo(t))||ct(e,t))}let Yt=null,mu=null;function Rc(e){const t=Yt;return Yt=e,mu=e&&e.type.__scopeId||null,t}function sa(e){mu=e}function la(){mu=null}const py=e=>st;function st(e,t=Yt,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Hc(-1);const c=Rc(t);let f;try{f=e(...s)}finally{Rc(c),o._d&&Hc(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function Ff(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:y,data:b,setupState:x,ctx:C,inheritAttrs:E}=e,M=Rc(e);let N,L;try{if(r.shapeFlag&4){const A=s||o,H=A;N=vr(p.call(H,A,v,y,x,b,C)),L=d}else{const A=t;N=vr(A.length>1?A(y,{attrs:d,slots:f,emit:h}):A(y,null)),L=t.props?d:RS(d)}}catch(A){Cl.length=0,oa(A,e,1),N=Oe(dn)}let O=N;if(L&&E!==!1){const A=Object.keys(L),{shapeFlag:H}=O;A.length&&H&7&&(c&&A.some(lh)&&(L=DS(L,c)),O=Ki(O,L,!1,!0))}return r.dirs&&(O=Ki(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(r.dirs):r.dirs),r.transition&&(O.transition=r.transition),N=O,Rc(M),N}function PS(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(Hl(s)){if(s.type!==dn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const RS=e=>{let t;for(const r in e)(r==="class"||r==="style"||cu(r))&&((t||(t={}))[r]=e[r]);return t},DS=(e,t)=>{const r={};for(const o in e)(!lh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function zS(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?wv(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let y=0;y<v.length;y++){const b=v[y];if(f[b]!==o[b]&&!vu(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?wv(o,f,p):!0:!!f;return!1}function wv(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(t[c]!==e[c]&&!vu(r,c))return!0}return!1}function _h({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=r,t=t.parent;else break}}const Sh="components",IS="directives";function Ao(e,t){return kh(Sh,e,!0,t)||e}const gy=Symbol.for("v-ndc");function xv(e){return $t(e)?kh(Sh,e,!1)||e:e||gy}function Hr(e){return kh(IS,e)}function kh(e,t,r=!0,o=!1){const s=Yt||sn;if(s){const c=s.type;if(e===Sh){const d=Fk(c,!1);if(d&&(d===t||d===wr(t)||d===du(wr(t))))return c}const f=_v(s[e]||c[e],t)||_v(s.appContext[e],t);return!f&&o?c:f}}function _v(e,t){return e&&(e[t]||e[wr(t)]||e[du(wr(t))])}const FS=e=>e.__isSuspense;let gd=0;const HS={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)qS(t,r,o,s,c,f,d,h,p);else{if(c&&c.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}BS(e,t,r,o,s,f,d,h,p)}},hydrate:WS,normalize:US},vy=HS;function Fl(e,t){const r=e.props&&e.props[t];Xe(r)&&r()}function qS(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,y=v("div"),b=e.suspense=my(e,s,o,t,y,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,y,null,o,b,c,f),b.deps>0?(Fl(e,"onPending"),Fl(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),ps(b,e.ssFallback)):b.resolve(!1,!0)}function BS(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const y=t.suspense=e.suspense;y.vnode=t,t.el=e.el;const b=t.ssContent,x=t.ssFallback,{activeBranch:C,pendingBranch:E,isInFallback:M,isHydrating:N}=y;if(E)y.pendingBranch=b,Nr(b,E)?(h(E,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0?y.resolve():M&&(N||(h(C,x,r,o,s,null,c,f,d),ps(y,x)))):(y.pendingId=gd++,N?(y.isHydrating=!1,y.activeBranch=E):p(E,s,y),y.deps=0,y.effects.length=0,y.hiddenContainer=v("div"),M?(h(null,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0?y.resolve():(h(C,x,r,o,s,null,c,f,d),ps(y,x))):C&&Nr(b,C)?(h(C,b,r,o,s,y,c,f,d),y.resolve(!0)):(h(null,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0&&y.resolve()));else if(C&&Nr(b,C))h(C,b,r,o,s,y,c,f,d),ps(y,b);else if(Fl(t,"onPending"),y.pendingBranch=b,b.shapeFlag&512?y.pendingId=b.component.suspenseId:y.pendingId=gd++,h(null,b,y.hiddenContainer,null,s,y,c,f,d),y.deps<=0)y.resolve();else{const{timeout:L,pendingId:O}=y;L>0?setTimeout(()=>{y.pendingId===O&&y.fallback(x)},L):L===0&&y.fallback(x)}}function my(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:y,m:b,um:x,n:C,o:{parentNode:E,remove:M}}=p;let N;const L=jS(e);L&&t&&t.pendingBranch&&(N=t.pendingId,t.deps++);const O=e.props?F0(e.props.timeout):void 0,A=c,H={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:gd++,timeout:typeof O=="number"?O:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(z=!1,J=!1){const{vnode:re,activeBranch:te,pendingBranch:j,pendingId:ne,effects:K,parentComponent:V,container:I}=H;let k=!1;H.isHydrating?H.isHydrating=!1:z||(k=te&&j.transition&&j.transition.mode==="out-in",k&&(te.transition.afterLeave=()=>{ne===H.pendingId&&(b(j,I,c===A?C(te):c,0),pd(K))}),te&&(E(te.el)!==H.hiddenContainer&&(c=C(te)),x(te,V,H,!0)),k||b(j,I,c,0)),ps(H,j),H.pendingBranch=null,H.isInFallback=!1;let B=H.parent,W=!1;for(;B;){if(B.pendingBranch){B.effects.push(...K),W=!0;break}B=B.parent}!W&&!k&&pd(K),H.effects=[],L&&t&&t.pendingBranch&&N===t.pendingId&&(t.deps--,t.deps===0&&!J&&t.resolve()),Fl(re,"onResolve")},fallback(z){if(!H.pendingBranch)return;const{vnode:J,activeBranch:re,parentComponent:te,container:j,namespace:ne}=H;Fl(J,"onFallback");const K=C(re),V=()=>{H.isInFallback&&(y(null,z,j,K,te,null,ne,d,h),ps(H,z))},I=z.transition&&z.transition.mode==="out-in";I&&(re.transition.afterLeave=V),H.isInFallback=!0,x(re,te,null,!0),I||V()},move(z,J,re){H.activeBranch&&b(H.activeBranch,z,J,re),H.container=z},next(){return H.activeBranch&&C(H.activeBranch)},registerDep(z,J,re){const te=!!H.pendingBranch;te&&H.deps++;const j=z.vnode.el;z.asyncDep.catch(ne=>{oa(ne,z,0)}).then(ne=>{if(z.isUnmounted||H.isUnmounted||H.pendingId!==z.suspenseId)return;z.asyncResolved=!0;const{vnode:K}=z;Sd(z,ne,!1),j&&(K.el=j);const V=!j&&z.subTree.el;J(z,K,E(j||z.subTree.el),j?null:C(z.subTree),H,f,re),V&&M(V),_h(z,K.el),te&&--H.deps===0&&H.resolve()})},unmount(z,J){H.isUnmounted=!0,H.activeBranch&&x(H.activeBranch,r,z,J),H.pendingBranch&&x(H.pendingBranch,r,z,J)}};return H}function WS(e,t,r,o,s,c,f,d,h){const p=t.suspense=my(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),v=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),v}function US(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=Sv(o?r.default:r),e.ssFallback=o?Sv(r.fallback):Oe(dn)}function Sv(e){let t;if(Xe(e)){const r=xs&&e._c;r&&(e._d=!1,oe()),e=e(),r&&(e._d=!0,t=Jn,Iy())}return ze(e)&&(e=PS(e)),e=vr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function VS(e,t){t&&t.pendingBranch?ze(e)?t.effects.push(...e):t.effects.push(e):pd(e)}function ps(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,_h(o,s))}function jS(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}function yu(e,t,r=sn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{to();const d=ca(r),h=tr(t,r,e,f);return d(),no(),h});return o?s.unshift(c):s.push(c),c}}const fi=e=>(t,r=sn)=>{(!Su||e==="sp")&&yu(e,(...o)=>t(...o),r)},GS=fi("bm"),Ns=fi("m"),KS=fi("bu"),XS=fi("u"),yy=fi("bum"),bu=fi("um"),YS=fi("sp"),ZS=fi("rtg"),JS=fi("rtc");function QS(e,t=sn){yu("ec",e,t)}function _t(e,t){if(Yt===null)return e;const r=ku(Yt),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=St]=t[s];c&&(Xe(c)&&(c={mounted:c,updated:c}),c.deep&&Hi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function vo(e,t,r,o){const s=e.dirs,c=t&&t.dirs;for(let f=0;f<s.length;f++){const d=s[f];c&&(d.oldValue=c[f].value);let h=d.dir[o];h&&(to(),tr(h,r,8,[e.el,d,e,t]),no())}}function li(e,t,r,o){let s;const c=r;if(ze(e)||$t(e)){s=new Array(e.length);for(let f=0,d=e.length;f<d;f++)s[f]=t(e[f],f,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let f=0;f<e;f++)s[f]=t(f+1,f,void 0,c)}else if(xt(e))if(e[Symbol.iterator])s=Array.from(e,(f,d)=>t(f,d,void 0,c));else{const f=Object.keys(e);s=new Array(f.length);for(let d=0,h=f.length;d<h;d++){const p=f[d];s[d]=t(e[p],p,d,c)}}else s=[];return s}function ek(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(ze(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}/*! #__NO_SIDE_EFFECTS__ */function ft(e,t){return Xe(e)?It({name:e.name},t,{setup:e}):e}const Sl=e=>!!e.type.__asyncLoader;function hn(e,t,r={},o,s){if(Yt.isCE||Yt.parent&&Sl(Yt.parent)&&Yt.parent.isCE)return t!=="default"&&(r.name=t),Oe("slot",r,o&&o());let c=e[t];c&&c._c&&(c._d=!1),oe();const f=c&&by(c(r)),d=ot(ut,{key:r.key||f&&f.key||`_${t}`},f||(o?o():[]),f&&e._===1?64:-2);return d.scopeId&&(d.slotScopeIds=[d.scopeId+"-s"]),c&&c._c&&(c._d=!0),d}function by(e){return e.some(t=>Hl(t)?!(t.type===dn||t.type===ut&&!by(t.children)):!0)?e:null}function tk(e,t){const r={};for(const o in e)r[vc(o)]=e[o];return r}const vd=e=>e?By(e)?ku(e):vd(e.parent):null,kl=It(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>vd(e.parent),$root:e=>vd(e.root),$emit:e=>e.emit,$options:e=>Th(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,xh(e.update)}),$nextTick:e=>e.n||(e.n=ln.bind(e.proxy)),$watch:e=>kk.bind(e)}),Hf=(e,t)=>e!==St&&!e.__isScriptSetup&&ct(e,t),nk={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const x=f[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(Hf(o,t))return f[t]=1,o[t];if(s!==St&&ct(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&ct(p,t))return f[t]=3,c[t];if(r!==St&&ct(r,t))return f[t]=4,r[t];md&&(f[t]=0)}}const v=kl[t];let y,b;if(v)return t==="$attrs"&&Dn(e.attrs,"get",""),v(e);if((y=d.__cssModules)&&(y=y[t]))return y;if(r!==St&&ct(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,ct(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return Hf(s,t)?(s[t]=r,!0):o!==St&&ct(o,t)?(o[t]=r,!0):ct(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c}},f){let d;return!!r[f]||e!==St&&ct(e,f)||Hf(t,f)||(d=c[0])&&ct(d,f)||ct(o,f)||ct(kl,f)||ct(s.config.globalProperties,f)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ct(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function rk(){return ik().attrs}function ik(){const e=aa();return e.setupContext||(e.setupContext=Uy(e))}function Dc(e){return ze(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function zc(e,t){return!e||!t?e||t:ze(e)&&ze(t)?e.concat(t):It({},Dc(e),Dc(t))}let md=!0;function ok(e){const t=Th(e),r=e.proxy,o=e.ctx;md=!1,t.beforeCreate&&kv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:y,mounted:b,beforeUpdate:x,updated:C,activated:E,deactivated:M,beforeDestroy:N,beforeUnmount:L,destroyed:O,unmounted:A,render:H,renderTracked:z,renderTriggered:J,errorCaptured:re,serverPrefetch:te,expose:j,inheritAttrs:ne,components:K,directives:V,filters:I}=t;if(p&&sk(p,o,null),f)for(const W in f){const ie=f[W];Xe(ie)&&(o[W]=ie.bind(r))}if(s){const W=s.call(r,r);xt(W)&&(e.data=er(W))}if(md=!0,c)for(const W in c){const ie=c[W],ye=Xe(ie)?ie.bind(r,r):Xe(ie.get)?ie.get.bind(r,r):Zn,Ne=!Xe(ie)&&Xe(ie.set)?ie.set.bind(r):Zn,We=Me({get:ye,set:Ne});Object.defineProperty(o,W,{enumerable:!0,configurable:!0,get:()=>We.value,set:je=>We.value=je})}if(d)for(const W in d)wy(d[W],o,r,W);if(h){const W=Xe(h)?h.call(r):h;Reflect.ownKeys(W).forEach(ie=>{yc(ie,W[ie])})}v&&kv(v,e,"c");function B(W,ie){ze(ie)?ie.forEach(ye=>W(ye.bind(r))):ie&&W(ie.bind(r))}if(B(GS,y),B(Ns,b),B(KS,x),B(XS,C),B(Tk,E),B(Ck,M),B(QS,re),B(JS,z),B(ZS,J),B(yy,L),B(bu,A),B(YS,te),ze(j))if(j.length){const W=e.exposed||(e.exposed={});j.forEach(ie=>{Object.defineProperty(W,ie,{get:()=>r[ie],set:ye=>r[ie]=ye})})}else e.exposed||(e.exposed={});H&&e.render===Zn&&(e.render=H),ne!=null&&(e.inheritAttrs=ne),K&&(e.components=K),V&&(e.directives=V)}function sk(e,t,r=Zn){ze(e)&&(e=yd(e));for(const o in e){const s=e[o];let c;xt(s)?"default"in s?c=ii(s.from||o,s.default,!0):c=ii(s.from||o):c=ii(s),Ot(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function kv(e,t,r){tr(ze(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function wy(e,t,r,o){const s=o.includes(".")?$y(r,o):()=>r[o];if($t(e)){const c=t[e];Xe(c)&&qt(s,c)}else if(Xe(e))qt(s,e.bind(r));else if(xt(e))if(ze(e))e.forEach(c=>wy(c,t,r,o));else{const c=Xe(e.handler)?e.handler.bind(r):t[e.handler];Xe(c)&&qt(s,c,e)}}function Th(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>Ic(h,p,f,!0)),Ic(h,t,f)),xt(t)&&c.set(t,h),h}function Ic(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&Ic(e,c,r,!0),s&&s.forEach(f=>Ic(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=lk[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const lk={data:Tv,props:Cv,emits:Cv,methods:vl,computed:vl,beforeCreate:xn,created:xn,beforeMount:xn,mounted:xn,beforeUpdate:xn,updated:xn,beforeDestroy:xn,beforeUnmount:xn,destroyed:xn,unmounted:xn,activated:xn,deactivated:xn,errorCaptured:xn,serverPrefetch:xn,components:vl,directives:vl,watch:ck,provide:Tv,inject:ak};function Tv(e,t){return t?e?function(){return It(Xe(e)?e.call(this,this):e,Xe(t)?t.call(this,this):t)}:t:e}function ak(e,t){return vl(yd(e),yd(t))}function yd(e){if(ze(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function xn(e,t){return e?[...new Set([].concat(e,t))]:t}function vl(e,t){return e?It(Object.create(null),e,t):t}function Cv(e,t){return e?ze(e)&&ze(t)?[...new Set([...e,...t])]:It(Object.create(null),Dc(e),Dc(t??{})):t}function ck(e,t){if(!e)return t;if(!t)return e;const r=It(Object.create(null),e);for(const o in t)r[o]=xn(e[o],t[o]);return r}function xy(){return{app:null,config:{isNativeTag:H_,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 uk=0;function fk(e,t){return function(o,s=null){Xe(o)||(o=It({},o)),s!=null&&!xt(s)&&(s=null);const c=xy(),f=new WeakSet;let d=!1;const h=c.app={_uid:uk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:qk,get config(){return c.config},set config(p){},use(p,...v){return f.has(p)||(p&&Xe(p.install)?(f.add(p),p.install(h,...v)):Xe(p)&&(f.add(p),p(h,...v))),h},mixin(p){return c.mixins.includes(p)||c.mixins.push(p),h},component(p,v){return v?(c.components[p]=v,h):c.components[p]},directive(p,v){return v?(c.directives[p]=v,h):c.directives[p]},mount(p,v,y){if(!d){const b=Oe(o,s);return b.appContext=c,y===!0?y="svg":y===!1&&(y=void 0),v&&t?t(b,p):e(b,p,y),d=!0,h._container=p,p.__vue_app__=h,ku(b.component)}},unmount(){d&&(e(null,h._container),delete h._container.__vue_app__)},provide(p,v){return c.provides[p]=v,h},runWithContext(p){const v=Tl;Tl=h;try{return p()}finally{Tl=v}}};return h}}let Tl=null;function yc(e,t){if(sn){let r=sn.provides;const o=sn.parent&&sn.parent.provides;o===r&&(r=sn.provides=Object.create(o)),r[e]=t}}function ii(e,t,r=!1){const o=sn||Yt;if(o||Tl){const s=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Tl._context.provides;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Xe(t)?t.call(o&&o.proxy):t}}const _y={},Sy=()=>Object.create(_y),ky=e=>Object.getPrototypeOf(e)===_y;function dk(e,t,r,o=!1){const s={},c=Sy();e.propsDefaults=Object.create(null),Ty(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:gh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function hk(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=pt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let y=0;y<v.length;y++){let b=v[y];if(vu(e.emitsOptions,b))continue;const x=t[b];if(h)if(ct(c,b))x!==c[b]&&(c[b]=x,p=!0);else{const C=wr(b);s[C]=bd(h,d,C,x,e,!1)}else x!==c[b]&&(c[b]=x,p=!0)}}}else{Ty(e,t,s,c)&&(p=!0);let v;for(const y in d)(!t||!ct(t,y)&&((v=eo(y))===y||!ct(t,v)))&&(h?r&&(r[y]!==void 0||r[v]!==void 0)&&(s[y]=bd(h,d,y,void 0,e,!0)):delete s[y]);if(c!==d)for(const y in c)(!t||!ct(t,y))&&(delete c[y],p=!0)}p&&ri(e.attrs,"set","")}function Ty(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(wl(h))continue;const p=t[h];let v;s&&ct(s,v=wr(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:vu(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=pt(r),p=d||St;for(let v=0;v<c.length;v++){const y=c[v];r[y]=bd(s,h,y,p[y],e,!ct(p,y))}}return f}function bd(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=ct(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&Xe(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=ca(s);o=p[r]=h.call(null,t),v()}}else o=h}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===eo(r))&&(o=!0))}return o}function Cy(e,t,r=!1){const o=t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Xe(e)){const v=y=>{h=!0;const[b,x]=Cy(y,t,!0);It(f,b),x&&d.push(...x)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return xt(e)&&o.set(e,fs),fs;if(ze(c))for(let v=0;v<c.length;v++){const y=wr(c[v]);Ev(y)&&(f[y]=St)}else if(c)for(const v in c){const y=wr(v);if(Ev(y)){const b=c[v],x=f[y]=ze(b)||Xe(b)?{type:b}:It({},b);if(x){const C=Mv(Boolean,x.type),E=Mv(String,x.type);x[0]=C>-1,x[1]=E<0||C<E,(C>-1||ct(x,"default"))&&d.push(y)}}}const p=[f,d];return xt(e)&&o.set(e,p),p}function Ev(e){return e[0]!=="$"&&!wl(e)}function Lv(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Av(e,t){return Lv(e)===Lv(t)}function Mv(e,t){return ze(t)?t.findIndex(r=>Av(r,e)):Xe(t)&&Av(t,e)?0:-1}const Ey=e=>e[0]==="_"||e==="$stable",Ch=e=>ze(e)?e.map(vr):[vr(e)],pk=(e,t,r)=>{if(t._n)return t;const o=st((...s)=>Ch(t(...s)),r);return o._c=!1,o},Ly=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Ey(s))continue;const c=e[s];if(Xe(c))t[s]=pk(s,c,o);else if(c!=null){const f=Ch(c);t[s]=()=>f}}},Ay=(e,t)=>{const r=Ch(t);e.slots.default=()=>r},gk=(e,t)=>{const r=e.slots=Sy();if(e.vnode.shapeFlag&32){const o=t._;o?(It(r,t),I0(r,"_",o,!0)):Ly(t,r)}else t&&Ay(e,t)},vk=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=St;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:(It(s,t),!r&&d===1&&delete s._):(c=!t.$stable,Ly(t,s)),f=t}else t&&(Ay(e,t),f={default:1});if(c)for(const d in s)!Ey(d)&&f[d]==null&&delete s[d]};function wd(e,t,r,o,s=!1){if(ze(e)){e.forEach((b,x)=>wd(b,t&&(ze(t)?t[x]:t),r,o,s));return}if(Sl(o)&&!s)return;const c=o.shapeFlag&4?ku(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===St?d.refs={}:d.refs,y=d.setupState;if(p!=null&&p!==h&&($t(p)?(v[p]=null,ct(y,p)&&(y[p]=null)):Ot(p)&&(p.value=null)),Xe(h))Vi(h,d,12,[f,v]);else{const b=$t(h),x=Ot(h);if(b||x){const C=()=>{if(e.f){const E=b?ct(y,h)?y[h]:v[h]:h.value;s?ze(E)&&ah(E,c):ze(E)?E.includes(c)||E.push(c):b?(v[h]=[c],ct(y,h)&&(y[h]=v[h])):(h.value=[c],e.k&&(v[e.k]=h.value))}else b?(v[h]=f,ct(y,h)&&(y[h]=f)):x&&(h.value=f,e.k&&(v[e.k]=f))};f?(C.id=-1,Nn(C,r)):C()}}}const Nn=VS;function mk(e){return yk(e)}function yk(e,t){const r=H0();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:y,nextSibling:b,setScopeId:x=Zn,insertStaticContent:C}=e,E=(P,F,Z,ce=null,le=null,ve=null,Se=void 0,ue=null,be=!!F.dynamicChildren)=>{if(P===F)return;P&&!Nr(P,F)&&(ce=X(P),je(P,le,ve,!0),P=null),F.patchFlag===-2&&(be=!1,F.dynamicChildren=null);const{type:he,ref:Ae,shapeFlag:Ie}=F;switch(he){case _u:M(P,F,Z,ce);break;case dn:N(P,F,Z,ce);break;case Wf:P==null&&L(F,Z,ce,Se);break;case ut:K(P,F,Z,ce,le,ve,Se,ue,be);break;default:Ie&1?H(P,F,Z,ce,le,ve,Se,ue,be):Ie&6?V(P,F,Z,ce,le,ve,Se,ue,be):(Ie&64||Ie&128)&&he.process(P,F,Z,ce,le,ve,Se,ue,be,$e)}Ae!=null&&le&&wd(Ae,P&&P.ref,ve,F||P,!F)},M=(P,F,Z,ce)=>{if(P==null)o(F.el=d(F.children),Z,ce);else{const le=F.el=P.el;F.children!==P.children&&p(le,F.children)}},N=(P,F,Z,ce)=>{P==null?o(F.el=h(F.children||""),Z,ce):F.el=P.el},L=(P,F,Z,ce)=>{[P.el,P.anchor]=C(P.children,F,Z,ce,P.el,P.anchor)},O=({el:P,anchor:F},Z,ce)=>{let le;for(;P&&P!==F;)le=b(P),o(P,Z,ce),P=le;o(F,Z,ce)},A=({el:P,anchor:F})=>{let Z;for(;P&&P!==F;)Z=b(P),s(P),P=Z;s(F)},H=(P,F,Z,ce,le,ve,Se,ue,be)=>{F.type==="svg"?Se="svg":F.type==="math"&&(Se="mathml"),P==null?z(F,Z,ce,le,ve,Se,ue,be):te(P,F,le,ve,Se,ue,be)},z=(P,F,Z,ce,le,ve,Se,ue)=>{let be,he;const{props:Ae,shapeFlag:Ie,transition:De,dirs:Ue}=P;if(be=P.el=f(P.type,ve,Ae&&Ae.is,Ae),Ie&8?v(be,P.children):Ie&16&&re(P.children,be,null,ce,le,qf(P,ve),Se,ue),Ue&&vo(P,null,ce,"created"),J(be,P,P.scopeId,Se,ce),Ae){for(const vt in Ae)vt!=="value"&&!wl(vt)&&c(be,vt,null,Ae[vt],ve,P.children,ce,le,Te);"value"in Ae&&c(be,"value",null,Ae.value,ve),(he=Ae.onVnodeBeforeMount)&&Ar(he,ce,P)}Ue&&vo(P,null,ce,"beforeMount");const Ge=bk(le,De);Ge&&De.beforeEnter(be),o(be,F,Z),((he=Ae&&Ae.onVnodeMounted)||Ge||Ue)&&Nn(()=>{he&&Ar(he,ce,P),Ge&&De.enter(be),Ue&&vo(P,null,ce,"mounted")},le)},J=(P,F,Z,ce,le)=>{if(Z&&x(P,Z),ce)for(let ve=0;ve<ce.length;ve++)x(P,ce[ve]);if(le){let ve=le.subTree;if(F===ve){const Se=le.vnode;J(P,Se,Se.scopeId,Se.slotScopeIds,le.parent)}}},re=(P,F,Z,ce,le,ve,Se,ue,be=0)=>{for(let he=be;he<P.length;he++){const Ae=P[he]=ue?Di(P[he]):vr(P[he]);E(null,Ae,F,Z,ce,le,ve,Se,ue)}},te=(P,F,Z,ce,le,ve,Se)=>{const ue=F.el=P.el;let{patchFlag:be,dynamicChildren:he,dirs:Ae}=F;be|=P.patchFlag&16;const Ie=P.props||St,De=F.props||St;let Ue;if(Z&&mo(Z,!1),(Ue=De.onVnodeBeforeUpdate)&&Ar(Ue,Z,F,P),Ae&&vo(F,P,Z,"beforeUpdate"),Z&&mo(Z,!0),he?j(P.dynamicChildren,he,ue,Z,ce,qf(F,le),ve):Se||ie(P,F,ue,null,Z,ce,qf(F,le),ve,!1),be>0){if(be&16)ne(ue,F,Ie,De,Z,ce,le);else if(be&2&&Ie.class!==De.class&&c(ue,"class",null,De.class,le),be&4&&c(ue,"style",Ie.style,De.style,le),be&8){const Ge=F.dynamicProps;for(let vt=0;vt<Ge.length;vt++){const tt=Ge[vt],nt=Ie[tt],Ft=De[tt];(Ft!==nt||tt==="value")&&c(ue,tt,nt,Ft,le,P.children,Z,ce,Te)}}be&1&&P.children!==F.children&&v(ue,F.children)}else!Se&&he==null&&ne(ue,F,Ie,De,Z,ce,le);((Ue=De.onVnodeUpdated)||Ae)&&Nn(()=>{Ue&&Ar(Ue,Z,F,P),Ae&&vo(F,P,Z,"updated")},ce)},j=(P,F,Z,ce,le,ve,Se)=>{for(let ue=0;ue<F.length;ue++){const be=P[ue],he=F[ue],Ae=be.el&&(be.type===ut||!Nr(be,he)||be.shapeFlag&70)?y(be.el):Z;E(be,he,Ae,null,ce,le,ve,Se,!0)}},ne=(P,F,Z,ce,le,ve,Se)=>{if(Z!==ce){if(Z!==St)for(const ue in Z)!wl(ue)&&!(ue in ce)&&c(P,ue,Z[ue],null,Se,F.children,le,ve,Te);for(const ue in ce){if(wl(ue))continue;const be=ce[ue],he=Z[ue];be!==he&&ue!=="value"&&c(P,ue,he,be,Se,F.children,le,ve,Te)}"value"in ce&&c(P,"value",Z.value,ce.value,Se)}},K=(P,F,Z,ce,le,ve,Se,ue,be)=>{const he=F.el=P?P.el:d(""),Ae=F.anchor=P?P.anchor:d("");let{patchFlag:Ie,dynamicChildren:De,slotScopeIds:Ue}=F;Ue&&(ue=ue?ue.concat(Ue):Ue),P==null?(o(he,Z,ce),o(Ae,Z,ce),re(F.children||[],Z,Ae,le,ve,Se,ue,be)):Ie>0&&Ie&64&&De&&P.dynamicChildren?(j(P.dynamicChildren,De,Z,le,ve,Se,ue),(F.key!=null||le&&F===le.subTree)&&My(P,F,!0)):ie(P,F,Z,Ae,le,ve,Se,ue,be)},V=(P,F,Z,ce,le,ve,Se,ue,be)=>{F.slotScopeIds=ue,P==null?F.shapeFlag&512?le.ctx.activate(F,Z,ce,Se,be):I(F,Z,ce,le,ve,Se,be):k(P,F,be)},I=(P,F,Z,ce,le,ve,Se)=>{const ue=P.component=Rk(P,ce,le);if(xu(P)&&(ue.ctx.renderer=$e),Dk(ue),ue.asyncDep){if(le&&le.registerDep(ue,B,Se),!P.el){const be=ue.subTree=Oe(dn);N(null,be,F,Z)}}else B(ue,P,F,Z,le,ve,Se)},k=(P,F,Z)=>{const ce=F.component=P.component;if(zS(P,F,Z))if(ce.asyncDep&&!ce.asyncResolved){W(ce,F,Z);return}else ce.next=F,NS(ce.update),ce.effect.dirty=!0,ce.update();else F.el=P.el,ce.vnode=F},B=(P,F,Z,ce,le,ve,Se)=>{const ue=()=>{if(P.isMounted){let{next:Ae,bu:Ie,u:De,parent:Ue,vnode:Ge}=P;{const Jt=Ny(P);if(Jt){Ae&&(Ae.el=Ge.el,W(P,Ae,Se)),Jt.asyncDep.then(()=>{P.isUnmounted||ue()});return}}let vt=Ae,tt;mo(P,!1),Ae?(Ae.el=Ge.el,W(P,Ae,Se)):Ae=Ge,Ie&&mc(Ie),(tt=Ae.props&&Ae.props.onVnodeBeforeUpdate)&&Ar(tt,Ue,Ae,Ge),mo(P,!0);const nt=Ff(P),Ft=P.subTree;P.subTree=nt,E(Ft,nt,y(Ft.el),X(Ft),P,le,ve),Ae.el=nt.el,vt===null&&_h(P,nt.el),De&&Nn(De,le),(tt=Ae.props&&Ae.props.onVnodeUpdated)&&Nn(()=>Ar(tt,Ue,Ae,Ge),le)}else{let Ae;const{el:Ie,props:De}=F,{bm:Ue,m:Ge,parent:vt}=P,tt=Sl(F);if(mo(P,!1),Ue&&mc(Ue),!tt&&(Ae=De&&De.onVnodeBeforeMount)&&Ar(Ae,vt,F),mo(P,!0),Ie&&Ye){const nt=()=>{P.subTree=Ff(P),Ye(Ie,P.subTree,P,le,null)};tt?F.type.__asyncLoader().then(()=>!P.isUnmounted&&nt()):nt()}else{const nt=P.subTree=Ff(P);E(null,nt,Z,ce,P,le,ve),F.el=nt.el}if(Ge&&Nn(Ge,le),!tt&&(Ae=De&&De.onVnodeMounted)){const nt=F;Nn(()=>Ar(Ae,vt,nt),le)}(F.shapeFlag&256||vt&&Sl(vt.vnode)&&vt.vnode.shapeFlag&256)&&P.a&&Nn(P.a,le),P.isMounted=!0,F=Z=ce=null}},be=P.effect=new uh(ue,Zn,()=>xh(he),P.scope),he=P.update=()=>{be.dirty&&be.run()};he.id=P.uid,mo(P,!0),he()},W=(P,F,Z)=>{F.component=P;const ce=P.vnode.props;P.vnode=F,P.next=null,hk(P,F.props,ce,Z),vk(P,F.children,Z),to(),bv(P),no()},ie=(P,F,Z,ce,le,ve,Se,ue,be=!1)=>{const he=P&&P.children,Ae=P?P.shapeFlag:0,Ie=F.children,{patchFlag:De,shapeFlag:Ue}=F;if(De>0){if(De&128){Ne(he,Ie,Z,ce,le,ve,Se,ue,be);return}else if(De&256){ye(he,Ie,Z,ce,le,ve,Se,ue,be);return}}Ue&8?(Ae&16&&Te(he,le,ve),Ie!==he&&v(Z,Ie)):Ae&16?Ue&16?Ne(he,Ie,Z,ce,le,ve,Se,ue,be):Te(he,le,ve,!0):(Ae&8&&v(Z,""),Ue&16&&re(Ie,Z,ce,le,ve,Se,ue,be))},ye=(P,F,Z,ce,le,ve,Se,ue,be)=>{P=P||fs,F=F||fs;const he=P.length,Ae=F.length,Ie=Math.min(he,Ae);let De;for(De=0;De<Ie;De++){const Ue=F[De]=be?Di(F[De]):vr(F[De]);E(P[De],Ue,Z,null,le,ve,Se,ue,be)}he>Ae?Te(P,le,ve,!0,!1,Ie):re(F,Z,ce,le,ve,Se,ue,be,Ie)},Ne=(P,F,Z,ce,le,ve,Se,ue,be)=>{let he=0;const Ae=F.length;let Ie=P.length-1,De=Ae-1;for(;he<=Ie&&he<=De;){const Ue=P[he],Ge=F[he]=be?Di(F[he]):vr(F[he]);if(Nr(Ue,Ge))E(Ue,Ge,Z,null,le,ve,Se,ue,be);else break;he++}for(;he<=Ie&&he<=De;){const Ue=P[Ie],Ge=F[De]=be?Di(F[De]):vr(F[De]);if(Nr(Ue,Ge))E(Ue,Ge,Z,null,le,ve,Se,ue,be);else break;Ie--,De--}if(he>Ie){if(he<=De){const Ue=De+1,Ge=Ue<Ae?F[Ue].el:ce;for(;he<=De;)E(null,F[he]=be?Di(F[he]):vr(F[he]),Z,Ge,le,ve,Se,ue,be),he++}}else if(he>De)for(;he<=Ie;)je(P[he],le,ve,!0),he++;else{const Ue=he,Ge=he,vt=new Map;for(he=Ge;he<=De;he++){const Qt=F[he]=be?Di(F[he]):vr(F[he]);Qt.key!=null&&vt.set(Qt.key,he)}let tt,nt=0;const Ft=De-Ge+1;let Jt=!1,ir=0;const In=new Array(Ft);for(he=0;he<Ft;he++)In[he]=0;for(he=Ue;he<=Ie;he++){const Qt=P[he];if(nt>=Ft){je(Qt,le,ve,!0);continue}let Ve;if(Qt.key!=null)Ve=vt.get(Qt.key);else for(tt=Ge;tt<=De;tt++)if(In[tt-Ge]===0&&Nr(Qt,F[tt])){Ve=tt;break}Ve===void 0?je(Qt,le,ve,!0):(In[Ve-Ge]=he+1,Ve>=ir?ir=Ve:Jt=!0,E(Qt,F[Ve],Z,null,le,ve,Se,ue,be),nt++)}const or=Jt?wk(In):fs;for(tt=or.length-1,he=Ft-1;he>=0;he--){const Qt=Ge+he,Ve=F[Qt],ro=Qt+1<Ae?F[Qt+1].el:ce;In[he]===0?E(null,Ve,Z,ro,le,ve,Se,ue,be):Jt&&(tt<0||he!==or[tt]?We(Ve,Z,ro,2):tt--)}}},We=(P,F,Z,ce,le=null)=>{const{el:ve,type:Se,transition:ue,children:be,shapeFlag:he}=P;if(he&6){We(P.component.subTree,F,Z,ce);return}if(he&128){P.suspense.move(F,Z,ce);return}if(he&64){Se.move(P,F,Z,$e);return}if(Se===ut){o(ve,F,Z);for(let Ie=0;Ie<be.length;Ie++)We(be[Ie],F,Z,ce);o(P.anchor,F,Z);return}if(Se===Wf){O(P,F,Z);return}if(ce!==2&&he&1&&ue)if(ce===0)ue.beforeEnter(ve),o(ve,F,Z),Nn(()=>ue.enter(ve),le);else{const{leave:Ie,delayLeave:De,afterLeave:Ue}=ue,Ge=()=>o(ve,F,Z),vt=()=>{Ie(ve,()=>{Ge(),Ue&&Ue()})};De?De(ve,Ge,vt):vt()}else o(ve,F,Z)},je=(P,F,Z,ce=!1,le=!1)=>{const{type:ve,props:Se,ref:ue,children:be,dynamicChildren:he,shapeFlag:Ae,patchFlag:Ie,dirs:De,memoIndex:Ue}=P;if(Ie===-2&&(le=!1),ue!=null&&wd(ue,null,Z,P,!0),Ue!=null&&(F.renderCache[Ue]=void 0),Ae&256){F.ctx.deactivate(P);return}const Ge=Ae&1&&De,vt=!Sl(P);let tt;if(vt&&(tt=Se&&Se.onVnodeBeforeUnmount)&&Ar(tt,F,P),Ae&6)Ze(P.component,Z,ce);else{if(Ae&128){P.suspense.unmount(Z,ce);return}Ge&&vo(P,null,F,"beforeUnmount"),Ae&64?P.type.remove(P,F,Z,$e,ce):he&&(ve!==ut||Ie>0&&Ie&64)?Te(he,F,Z,!1,!0):(ve===ut&&Ie&384||!le&&Ae&16)&&Te(be,F,Z),ce&&it(P)}(vt&&(tt=Se&&Se.onVnodeUnmounted)||Ge)&&Nn(()=>{tt&&Ar(tt,F,P),Ge&&vo(P,null,F,"unmounted")},Z)},it=P=>{const{type:F,el:Z,anchor:ce,transition:le}=P;if(F===ut){rt(Z,ce);return}if(F===Wf){A(P);return}const ve=()=>{s(Z),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(P.shapeFlag&1&&le&&!le.persisted){const{leave:Se,delayLeave:ue}=le,be=()=>Se(Z,ve);ue?ue(P.el,ve,be):be()}else ve()},rt=(P,F)=>{let Z;for(;P!==F;)Z=b(P),s(P),P=Z;s(F)},Ze=(P,F,Z)=>{const{bum:ce,scope:le,update:ve,subTree:Se,um:ue,m:be,a:he}=P;Nv(be),Nv(he),ce&&mc(ce),le.stop(),ve&&(ve.active=!1,je(Se,P,F,Z)),ue&&Nn(ue,F),Nn(()=>{P.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve())},Te=(P,F,Z,ce=!1,le=!1,ve=0)=>{for(let Se=ve;Se<P.length;Se++)je(P[Se],F,Z,ce,le)},X=P=>P.shapeFlag&6?X(P.component.subTree):P.shapeFlag&128?P.suspense.next():b(P.anchor||P.el);let ae=!1;const de=(P,F,Z)=>{P==null?F._vnode&&je(F._vnode,null,null,!0):E(F._vnode||null,P,F,null,null,null,Z),ae||(ae=!0,bv(),fy(),ae=!1),F._vnode=P},$e={p:E,um:je,m:We,r:it,mt:I,mc:re,pc:ie,pbc:j,n:X,o:e};let Ee,Ye;return{render:de,hydrate:Ee,createApp:fk(de,Ee)}}function qf({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function mo({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function bk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function My(e,t,r=!1){const o=e.children,s=t.children;if(ze(o)&&ze(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=Di(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&My(f,d)),d.type===_u&&(d.el=f.el)}}function wk(e){const t=e.slice(),r=[0];let o,s,c,f,d;const h=e.length;for(o=0;o<h;o++){const p=e[o];if(p!==0){if(s=r[r.length-1],e[s]<p){t[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)d=c+f>>1,e[r[d]]<p?c=d+1:f=d;p<e[r[c]]&&(c>0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function Ny(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ny(t)}function Nv(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const xk=Symbol.for("v-scx"),_k=()=>ii(xk);function Eh(e,t){return wu(e,null,t)}function Sk(e,t){return wu(e,null,{flush:"sync"})}const tc={};function qt(e,t,r){return wu(e,t,r)}function wu(e,t,{immediate:r,deep:o,flush:s,once:c,onTrack:f,onTrigger:d}=St){if(t&&c){const z=t;t=(...J)=>{z(...J),H()}}const h=sn,p=z=>o===!0?z:Hi(z,o===!1?1:void 0);let v,y=!1,b=!1;if(Ot(e)?(v=()=>e.value,y=Pc(e)):xl(e)?(v=()=>p(e),y=!0):ze(e)?(b=!0,y=e.some(z=>xl(z)||Pc(z)),v=()=>e.map(z=>{if(Ot(z))return z.value;if(xl(z))return p(z);if(Xe(z))return Vi(z,h,2)})):Xe(e)?t?v=()=>Vi(e,h,2):v=()=>(x&&x(),tr(e,h,3,[C])):v=Zn,t&&o){const z=v;v=()=>Hi(z())}let x,C=z=>{x=O.onStop=()=>{Vi(z,h,4),x=O.onStop=void 0}},E;if(Su)if(C=Zn,t?r&&tr(t,h,3,[v(),b?[]:void 0,C]):v(),s==="sync"){const z=_k();E=z.__watcherHandles||(z.__watcherHandles=[])}else return Zn;let M=b?new Array(e.length).fill(tc):tc;const N=()=>{if(!(!O.active||!O.dirty))if(t){const z=O.run();(o||y||(b?z.some((J,re)=>zr(J,M[re])):zr(z,M)))&&(x&&x(),tr(t,h,3,[z,M===tc?void 0:b&&M[0]===tc?[]:M,C]),M=z)}else O.run()};N.allowRecurse=!!t;let L;s==="sync"?L=N:s==="post"?L=()=>Nn(N,h&&h.suspense):(N.pre=!0,h&&(N.id=h.uid),L=()=>xh(N));const O=new uh(v,Zn,L),A=V0(),H=()=>{O.stop(),A&&ah(A.effects,O)};return t?r?N():M=O.run():s==="post"?Nn(O.run.bind(O),h&&h.suspense):O.run(),E&&E.push(H),H}function kk(e,t,r){const o=this.proxy,s=$t(e)?e.includes(".")?$y(o,e):()=>o[e]:e.bind(o,o);let c;Xe(t)?c=t:(c=t.handler,r=t);const f=ca(this),d=wu(s,c.bind(o),r);return f(),d}function $y(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function Hi(e,t=1/0,r){if(t<=0||!xt(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,Ot(e))Hi(e.value,t,r);else if(ze(e))for(let o=0;o<e.length;o++)Hi(e[o],t,r);else if(uu(e)||ds(e))e.forEach(o=>{Hi(o,t,r)});else if(z0(e)){for(const o in e)Hi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Hi(e[o],t,r)}return e}const xu=e=>e.type.__isKeepAlive;function Tk(e,t){Oy(e,"a",t)}function Ck(e,t){Oy(e,"da",t)}function Oy(e,t,r=sn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(yu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)xu(s.parent.vnode)&&Ek(o,t,r,s),s=s.parent}}function Ek(e,t,r,o){const s=yu(t,e,o,!0);bu(()=>{ah(o[t],s)},r)}const Ri=Symbol("_leaveCb"),nc=Symbol("_enterCb");function Lk(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ns(()=>{e.isMounted=!0}),yy(()=>{e.isUnmounting=!0}),e}const Xn=[Function,Array],Py={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Xn,onEnter:Xn,onAfterEnter:Xn,onEnterCancelled:Xn,onBeforeLeave:Xn,onLeave:Xn,onAfterLeave:Xn,onLeaveCancelled:Xn,onBeforeAppear:Xn,onAppear:Xn,onAfterAppear:Xn,onAppearCancelled:Xn},Ry=e=>{const t=e.subTree;return t.component?Ry(t.component):t},Ak={name:"BaseTransition",props:Py,setup(e,{slots:t}){const r=aa(),o=Lk();return()=>{const s=t.default&&zy(t.default(),!0);if(!s||!s.length)return;let c=s[0];if(s.length>1){for(const b of s)if(b.type!==dn){c=b;break}}const f=pt(e),{mode:d}=f;if(o.isLeaving)return Bf(c);const h=$v(c);if(!h)return Bf(c);let p=xd(h,f,o,r,b=>p=b);Fc(h,p);const v=r.subTree,y=v&&$v(v);if(y&&y.type!==dn&&!Nr(h,y)&&Ry(r).type!==dn){const b=xd(y,f,o,r);if(Fc(y,b),d==="out-in"&&h.type!==dn)return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Bf(c);d==="in-out"&&h.type!==dn&&(b.delayLeave=(x,C,E)=>{const M=Dy(o,y);M[String(y.key)]=y,x[Ri]=()=>{C(),x[Ri]=void 0,delete p.delayedLeave},p.delayedLeave=E})}return c}}},Mk=Ak;function Dy(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function xd(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:y,onBeforeLeave:b,onLeave:x,onAfterLeave:C,onLeaveCancelled:E,onBeforeAppear:M,onAppear:N,onAfterAppear:L,onAppearCancelled:O}=t,A=String(e.key),H=Dy(r,e),z=(te,j)=>{te&&tr(te,o,9,j)},J=(te,j)=>{const ne=j[1];z(te,j),ze(te)?te.every(K=>K.length<=1)&&ne():te.length<=1&&ne()},re={mode:f,persisted:d,beforeEnter(te){let j=h;if(!r.isMounted)if(c)j=M||h;else return;te[Ri]&&te[Ri](!0);const ne=H[A];ne&&Nr(e,ne)&&ne.el[Ri]&&ne.el[Ri](),z(j,[te])},enter(te){let j=p,ne=v,K=y;if(!r.isMounted)if(c)j=N||p,ne=L||v,K=O||y;else return;let V=!1;const I=te[nc]=k=>{V||(V=!0,k?z(K,[te]):z(ne,[te]),re.delayedLeave&&re.delayedLeave(),te[nc]=void 0)};j?J(j,[te,I]):I()},leave(te,j){const ne=String(e.key);if(te[nc]&&te[nc](!0),r.isUnmounting)return j();z(b,[te]);let K=!1;const V=te[Ri]=I=>{K||(K=!0,j(),I?z(E,[te]):z(C,[te]),te[Ri]=void 0,H[ne]===e&&delete H[ne])};H[ne]=e,x?J(x,[te,V]):V()},clone(te){const j=xd(te,t,r,o,s);return s&&s(j),j}};return re}function Bf(e){if(xu(e))return e=Ki(e),e.children=null,e}function $v(e){if(!xu(e))return e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Xe(r.default))return r.default()}}function Fc(e,t){e.shapeFlag&6&&e.component?Fc(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function zy(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===ut?(f.patchFlag&128&&s++,o=o.concat(zy(f.children,t,d))):(t||f.type!==dn)&&o.push(d!=null?Ki(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}const Nk=e=>e.__isTeleport,ut=Symbol.for("v-fgt"),_u=Symbol.for("v-txt"),dn=Symbol.for("v-cmt"),Wf=Symbol.for("v-stc"),Cl=[];let Jn=null;function oe(e=!1){Cl.push(Jn=e?null:[])}function Iy(){Cl.pop(),Jn=Cl[Cl.length-1]||null}let xs=1;function Hc(e){xs+=e}function Fy(e){return e.dynamicChildren=xs>0?Jn||fs:null,Iy(),xs>0&&Jn&&Jn.push(e),e}function me(e,t,r,o,s,c){return Fy(Y(e,t,r,o,s,c,!0))}function ot(e,t,r,o,s){return Fy(Oe(e,t,r,o,s,!0))}function Hl(e){return e?e.__v_isVNode===!0:!1}function Nr(e,t){return e.type===t.type&&e.key===t.key}const Hy=({key:e})=>e??null,bc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?$t(e)||Ot(e)||Xe(e)?{i:Yt,r:e,k:t,f:!!r}:e:null);function Y(e,t=null,r=null,o=0,s=null,c=e===ut?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Hy(t),ref:t&&bc(t),scopeId:mu,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:Yt};return d?(Lh(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=$t(r)?8:16),xs>0&&!f&&Jn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Jn.push(h),h}const Oe=$k;function $k(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===gy)&&(e=dn),Hl(e)){const d=Ki(e,t,!0);return r&&Lh(d,r),xs>0&&!c&&Jn&&(d.shapeFlag&6?Jn[Jn.indexOf(e)]=d:Jn.push(d)),d.patchFlag=-2,d}if(Hk(e)&&(e=e.__vccOpts),t){t=qy(t);let{class:d,style:h}=t;d&&!$t(d)&&(t.class=lt(d)),xt(h)&&(ry(h)&&!ze(h)&&(h=It({},h)),t.style=Zt(h))}const f=$t(e)?1:FS(e)?128:Nk(e)?64:xt(e)?4:Xe(e)?2:0;return Y(e,t,r,o,s,f,c,!0)}function qy(e){return e?ry(e)||ky(e)?It({},e):e:null}function Ki(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?oi(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Hy(p),ref:t&&t.ref?r&&c?ze(c)?c.concat(bc(t)):[c,bc(t)]:bc(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ut?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ki(e.ssContent),ssFallback:e.ssFallback&&Ki(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&Fc(v,h.clone(v)),v}function gt(e=" ",t=0){return Oe(_u,null,e,t)}function et(e="",t=!1){return t?(oe(),ot(dn,null,e)):Oe(dn,null,e)}function vr(e){return e==null||typeof e=="boolean"?Oe(dn):ze(e)?Oe(ut,null,e.slice()):typeof e=="object"?Di(e):Oe(_u,null,String(e))}function Di(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ki(e)}function Lh(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ze(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Lh(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!ky(t)?t._ctx=Yt:s===3&&Yt&&(Yt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Xe(t)?(t={default:t,_ctx:Yt},r=32):(t=String(t),o&64?(r=16,t=[gt(t)]):r=8);e.children=t,e.shapeFlag|=r}function oi(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=lt([t.class,o.class]));else if(s==="style")t.style=Zt([t.style,o.style]);else if(cu(s)){const c=t[s],f=o[s];f&&c!==f&&!(ze(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function Ar(e,t,r,o=null){tr(e,t,7,[r,o])}const Ok=xy();let Pk=0;function Rk(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Ok,c={uid:Pk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Q_(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Cy(o,s),emitsOptions:hy(o,s),emit:null,emitted:null,propsDefaults:St,inheritAttrs:o.inheritAttrs,ctx:St,data:St,props:St,attrs:St,slots:St,refs:St,setupState:St,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=t?t.root:c,c.emit=OS.bind(null,c),e.ce&&e.ce(c),c}let sn=null;const aa=()=>sn||Yt;let qc,_d;{const e=H0(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};qc=t("__VUE_INSTANCE_SETTERS__",r=>sn=r),_d=t("__VUE_SSR_SETTERS__",r=>Su=r)}const ca=e=>{const t=sn;return qc(e),e.scope.on(),()=>{e.scope.off(),qc(t)}},Ov=()=>{sn&&sn.scope.off(),qc(null)};function By(e){return e.vnode.shapeFlag&4}let Su=!1;function Dk(e,t=!1){t&&_d(t);const{props:r,children:o}=e.vnode,s=By(e);dk(e,r,s,t),gk(e,o);const c=s?zk(e,t):void 0;return t&&_d(!1),c}function zk(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nk);const{setup:o}=r;if(o){const s=e.setupContext=o.length>1?Uy(e):null,c=ca(e);to();const f=Vi(o,e,0,[e.props,s]);if(no(),c(),R0(f)){if(f.then(Ov,Ov),t)return f.then(d=>{Sd(e,d,t)}).catch(d=>{oa(d,e,0)});e.asyncDep=f}else Sd(e,f,t)}else Wy(e,t)}function Sd(e,t,r){Xe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:xt(t)&&(e.setupState=sy(t)),Wy(e,r)}let Pv;function Wy(e,t,r){const o=e.type;if(!e.render){if(!t&&Pv&&!o.render){const s=o.template||Th(e).template;if(s){const{isCustomElement:c,compilerOptions:f}=e.appContext.config,{delimiters:d,compilerOptions:h}=o,p=It(It({isCustomElement:c,delimiters:d},f),h);o.render=Pv(s,p)}}e.render=o.render||Zn}{const s=ca(e);to();try{ok(e)}finally{no(),s()}}}const Ik={get(e,t){return Dn(e,"get",""),e[t]}};function Uy(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Ik),slots:e.slots,emit:e.emit,expose:t}}function ku(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(sy(mh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in kl)return kl[r](e)},has(t,r){return r in t||r in kl}})):e.proxy}function Fk(e,t=!0){return Xe(e)?e.displayName||e.name:e.name||t&&e.__name}function Hk(e){return Xe(e)&&"__vccOpts"in e}const Me=(e,t)=>_S(e,t,Su);function Ah(e,t,r=St){const o=aa(),s=wr(t),c=eo(t),f=ly((h,p)=>{let v;return Sk(()=>{const y=e[t];zr(v,y)&&(v=y,p())}),{get(){return h(),r.get?r.get(v):v},set(y){const b=o.vnode.props;!(b&&(t in b||s in b||c in b)&&(`onUpdate:${t}`in b||`onUpdate:${s}`in b||`onUpdate:${c}`in b))&&zr(y,v)&&(v=y,p()),o.emit(`update:${t}`,r.set?r.set(y):y)}}}),d="modelModifiers";return f[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?e[d]||{}:f,done:!1}:{done:!0}}}},f}function ua(e,t,r){const o=arguments.length;return o===2?xt(t)&&!ze(t)?Hl(t)?Oe(e,null,[t]):Oe(e,t):Oe(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Hl(r)&&(r=[r]),Oe(e,t,r))}const qk="3.4.31";/**
|
|
14
|
+
* @vue/runtime-dom v3.4.31
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/const Bk="http://www.w3.org/2000/svg",Wk="http://www.w3.org/1998/Math/MathML",ei=typeof document<"u"?document:null,Rv=ei&&ei.createElement("template"),Uk={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?ei.createElementNS(Bk,e):t==="mathml"?ei.createElementNS(Wk,e):r?ei.createElement(e,{is:r}):ei.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>ei.createTextNode(e),createComment:e=>ei.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ei.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{Rv.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const d=Rv.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Li="transition",ul="animation",ql=Symbol("_vtc"),Mh=(e,{slots:t})=>ua(Mk,Vk(e),t);Mh.displayName="Transition";const Vy={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};Mh.props=It({},Py,Vy);const yo=(e,t=[])=>{ze(e)?e.forEach(r=>r(...t)):e&&e(...t)},Dv=e=>e?ze(e)?e.some(t=>t.length>1):e.length>1:!1;function Vk(e){const t={};for(const K in e)K in Vy||(t[K]=e[K]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:y=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,C=jk(s),E=C&&C[0],M=C&&C[1],{onBeforeEnter:N,onEnter:L,onEnterCancelled:O,onLeave:A,onLeaveCancelled:H,onBeforeAppear:z=N,onAppear:J=L,onAppearCancelled:re=O}=t,te=(K,V,I)=>{bo(K,V?v:d),bo(K,V?p:f),I&&I()},j=(K,V)=>{K._isLeaving=!1,bo(K,y),bo(K,x),bo(K,b),V&&V()},ne=K=>(V,I)=>{const k=K?J:L,B=()=>te(V,K,I);yo(k,[V,B]),zv(()=>{bo(V,K?h:c),Ai(V,K?v:d),Dv(k)||Iv(V,o,E,B)})};return It(t,{onBeforeEnter(K){yo(N,[K]),Ai(K,c),Ai(K,f)},onBeforeAppear(K){yo(z,[K]),Ai(K,h),Ai(K,p)},onEnter:ne(!1),onAppear:ne(!0),onLeave(K,V){K._isLeaving=!0;const I=()=>j(K,V);Ai(K,y),Ai(K,b),Xk(),zv(()=>{K._isLeaving&&(bo(K,y),Ai(K,x),Dv(A)||Iv(K,o,M,I))}),yo(A,[K,I])},onEnterCancelled(K){te(K,!1),yo(O,[K])},onAppearCancelled(K){te(K,!0),yo(re,[K])},onLeaveCancelled(K){j(K),yo(H,[K])}})}function jk(e){if(e==null)return null;if(xt(e))return[Uf(e.enter),Uf(e.leave)];{const t=Uf(e);return[t,t]}}function Uf(e){return F0(e)}function Ai(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ql]||(e[ql]=new Set)).add(t)}function bo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[ql];r&&(r.delete(t),r.size||(e[ql]=void 0))}function zv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Gk=0;function Iv(e,t,r,o){const s=e._endId=++Gk,c=()=>{s===e._endId&&o()};if(r)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=Kk(e,t);if(!f)return o();const p=f+"end";let v=0;const y=()=>{e.removeEventListener(p,b),c()},b=x=>{x.target===e&&++v>=h&&y()};setTimeout(()=>{v<h&&y()},d+1),e.addEventListener(p,b)}function Kk(e,t){const r=window.getComputedStyle(e),o=C=>(r[C]||"").split(", "),s=o(`${Li}Delay`),c=o(`${Li}Duration`),f=Fv(s,c),d=o(`${ul}Delay`),h=o(`${ul}Duration`),p=Fv(d,h);let v=null,y=0,b=0;t===Li?f>0&&(v=Li,y=f,b=c.length):t===ul?p>0&&(v=ul,y=p,b=h.length):(y=Math.max(f,p),v=y>0?f>p?Li:ul:null,b=v?v===Li?c.length:h.length:0);const x=v===Li&&/\b(transform|all)(,|$)/.test(o(`${Li}Property`).toString());return{type:v,timeout:y,propCount:b,hasTransform:x}}function Fv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Hv(r)+Hv(e[o])))}function Hv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Xk(){return document.body.offsetHeight}function Yk(e,t,r){const o=e[ql];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Bc=Symbol("_vod"),jy=Symbol("_vsh"),ml={beforeMount(e,{value:t},{transition:r}){e[Bc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):fl(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),fl(e,!0),o.enter(e)):o.leave(e,()=>{fl(e,!1)}):fl(e,t))},beforeUnmount(e,{value:t}){fl(e,t)}};function fl(e,t){e.style.display=t?e[Bc]:"none",e[jy]=!t}const Zk=Symbol(""),Jk=/(^|;)\s*display\s*:/;function Qk(e,t,r){const o=e.style,s=$t(r);let c=!1;if(r&&!s){if(t)if($t(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&wc(o,d,"")}else for(const f in t)r[f]==null&&wc(o,f,"");for(const f in r)f==="display"&&(c=!0),wc(o,f,r[f])}else if(s){if(t!==r){const f=o[Zk];f&&(r+=";"+f),o.cssText=r,c=Jk.test(r)}}else t&&e.removeAttribute("style");Bc in e&&(e[Bc]=c?o.display:"",e[jy]&&(o.display="none"))}const qv=/\s*!important$/;function wc(e,t,r){if(ze(r))r.forEach(o=>wc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=eT(e,t);qv.test(r)?e.setProperty(eo(o),r.replace(qv,""),"important"):e[o]=r}}const Bv=["Webkit","Moz","ms"],Vf={};function eT(e,t){const r=Vf[t];if(r)return r;let o=wr(t);if(o!=="filter"&&o in e)return Vf[t]=o;o=du(o);for(let s=0;s<Bv.length;s++){const c=Bv[s]+o;if(c in e)return Vf[t]=c}return t}const Wv="http://www.w3.org/1999/xlink";function Uv(e,t,r,o,s,c=Z_(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Wv,t.slice(6,t.length)):e.setAttributeNS(Wv,t,r):r==null||c&&!q0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Dr(r)?String(r):r)}function tT(e,t,r,o,s,c,f){if(t==="innerHTML"||t==="textContent"){o&&f(o,s,c),e[t]=r??"";return}const d=e.tagName;if(t==="value"&&d!=="PROGRESS"&&!d.includes("-")){const p=d==="OPTION"?e.getAttribute("value")||"":e.value,v=r==null?"":String(r);(p!==v||!("_value"in e))&&(e.value=v),r==null&&e.removeAttribute(t),e._value=r;return}let h=!1;if(r===""||r==null){const p=typeof e[t];p==="boolean"?r=q0(r):r==null&&p==="string"?(r="",h=!0):p==="number"&&(r=0,h=!0)}try{e[t]=r}catch{}h&&e.removeAttribute(t)}function So(e,t,r,o){e.addEventListener(t,r,o)}function nT(e,t,r,o){e.removeEventListener(t,r,o)}const Vv=Symbol("_vei");function rT(e,t,r,o,s=null){const c=e[Vv]||(e[Vv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=iT(t);if(o){const p=c[t]=lT(o,s);So(e,d,p,h)}else f&&(nT(e,d,f,h),c[t]=void 0)}}const jv=/(?:Once|Passive|Capture)$/;function iT(e){let t;if(jv.test(e)){t={};let o;for(;o=e.match(jv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):eo(e.slice(2)),t]}let jf=0;const oT=Promise.resolve(),sT=()=>jf||(oT.then(()=>jf=0),jf=Date.now());function lT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;tr(aT(o,r.value),t,5,[o])};return r.value=e,r.attached=sT(),r}function aT(e,t){if(ze(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Gv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,cT=(e,t,r,o,s,c,f,d,h)=>{const p=s==="svg";t==="class"?Yk(e,o,p):t==="style"?Qk(e,r,o):cu(t)?lh(t)||rT(e,t,r,o,f):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uT(e,t,o,p))?(tT(e,t,o,c,f,d,h),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Uv(e,t,o,p,f,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Uv(e,t,o,p))};function uT(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Gv(t)&&Xe(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Gv(t)&&$t(r)?!1:t in e}const Wc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ze(t)?r=>mc(t,r):t};function fT(e){e.target.composing=!0}function Kv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const gs=Symbol("_assign"),dT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[gs]=Wc(s);const c=o||s.props&&s.props.type==="number";So(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=cd(d)),e[gs](d)}),r&&So(e,"change",()=>{e.value=e.value.trim()}),t||(So(e,"compositionstart",fT),So(e,"compositionend",Kv),So(e,"change",Kv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[gs]=Wc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?cd(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},hT={deep:!0,created(e,t,r){e[gs]=Wc(r),So(e,"change",()=>{const o=e._modelValue,s=pT(e),c=e.checked,f=e[gs];if(ze(o)){const d=B0(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(uu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(Gy(e,c))})},mounted:Xv,beforeUpdate(e,t,r){e[gs]=Wc(r),Xv(e,t,r)}};function Xv(e,{value:t,oldValue:r},o){e._modelValue=t,ze(t)?e.checked=B0(t,o.props.value)>-1:uu(t)?e.checked=t.has(o.props.value):t!==r&&(e.checked=hu(t,Gy(e,!0)))}function pT(e){return"_value"in e?e._value:e.value}function Gy(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const gT=["ctrl","shift","alt","meta"],vT={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>gT.some(r=>e[`${r}Key`]&&!t.includes(r))},xc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(s,...c)=>{for(let f=0;f<t.length;f++){const d=vT[t[f]];if(d&&d(s,t))return}return e(s,...c)})},mT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},kd=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=eo(s.key);if(t.some(f=>f===c||mT[f]===c))return e(s)})},yT=It({patchProp:cT},Uk);let Yv;function bT(){return Yv||(Yv=mk(yT))}const Ky=(...e)=>{const t=bT().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=xT(o);if(!s)return;const c=t._component;!Xe(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.innerHTML="";const f=r(s,!1,wT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function wT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function xT(e){return $t(e)?document.querySelector(e):e}const di=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},_T={};function ST(e,t){const r=Ao("RouterView");return oe(),ot(r)}const kT=di(_T,[["render",ST]]);/*!
|
|
18
|
+
* vue-router v4.4.0
|
|
19
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
20
|
+
* @license MIT
|
|
21
|
+
*/const ls=typeof document<"u";function TT(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const bt=Object.assign;function Gf(e,t){const r={};for(const o in t){const s=t[o];r[o]=xr(s)?s.map(e):e(s)}return r}const El=()=>{},xr=Array.isArray,Xy=/#/g,CT=/&/g,ET=/\//g,LT=/=/g,AT=/\?/g,Yy=/\+/g,MT=/%5B/g,NT=/%5D/g,Zy=/%5E/g,$T=/%60/g,Jy=/%7B/g,OT=/%7C/g,Qy=/%7D/g,PT=/%20/g;function Nh(e){return encodeURI(""+e).replace(OT,"|").replace(MT,"[").replace(NT,"]")}function RT(e){return Nh(e).replace(Jy,"{").replace(Qy,"}").replace(Zy,"^")}function Td(e){return Nh(e).replace(Yy,"%2B").replace(PT,"+").replace(Xy,"%23").replace(CT,"%26").replace($T,"`").replace(Jy,"{").replace(Qy,"}").replace(Zy,"^")}function DT(e){return Td(e).replace(LT,"%3D")}function zT(e){return Nh(e).replace(Xy,"%23").replace(AT,"%3F")}function IT(e){return e==null?"":zT(e).replace(ET,"%2F")}function Bl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const FT=/\/$/,HT=e=>e.replace(FT,"");function Kf(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=UT(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:Bl(f)}}function qT(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Zv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function BT(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&_s(t.matched[o],r.matched[s])&&eb(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function _s(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function eb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!WT(e[r],t[r]))return!1;return!0}function WT(e,t){return xr(e)?Jv(e,t):xr(t)?Jv(t,e):e===t}function Jv(e,t){return xr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function UT(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const Mi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Wl;(function(e){e.pop="pop",e.push="push"})(Wl||(Wl={}));var Ll;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ll||(Ll={}));function VT(e){if(!e)if(ls){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),HT(e)}const jT=/^[^#]+#/;function GT(e,t){return e.replace(jT,"#")+t}function KT(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const Tu=()=>({left:window.scrollX,top:window.scrollY});function XT(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=KT(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Qv(e,t){return(history.state?history.state.position-t:-1)+e}const Cd=new Map;function YT(e,t){Cd.set(e,t)}function ZT(e){const t=Cd.get(e);return Cd.delete(e),t}let JT=()=>location.protocol+"//"+location.host;function tb(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let d=s.includes(e.slice(c))?e.slice(c).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),Zv(h,"")}return Zv(r,e)+o+s}function QT(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const x=tb(e,location),C=r.value,E=t.value;let M=0;if(b){if(r.value=x,t.value=b,f&&f===C){f=null;return}M=E?b.position-E.position:0}else o(x);s.forEach(N=>{N(r.value,C,{delta:M,type:Wl.pop,direction:M?M>0?Ll.forward:Ll.back:Ll.unknown})})};function h(){f=r.value}function p(b){s.push(b);const x=()=>{const C=s.indexOf(b);C>-1&&s.splice(C,1)};return c.push(x),x}function v(){const{history:b}=window;b.state&&b.replaceState(bt({},b.state,{scroll:Tu()}),"")}function y(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:y}}function em(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Tu():null}}function eC(e){const{history:t,location:r}=window,o={value:tb(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const y=e.indexOf("#"),b=y>-1?(r.host&&document.querySelector("base")?e:e.slice(y))+h:JT()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(x){console.error(x),r[v?"replace":"assign"](b)}}function f(h,p){const v=bt({},t.state,em(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=bt({},s.value,t.state,{forward:h,scroll:Tu()});c(v.current,v,!0);const y=bt({},em(o.value,h,null),{position:v.position+1},p);c(h,y,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function tC(e){e=VT(e);const t=eC(e),r=QT(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:GT.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function nC(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),tC(e)}function rC(e){return typeof e=="string"||e&&typeof e=="object"}function nb(e){return typeof e=="string"||typeof e=="symbol"}const rb=Symbol("");var tm;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(tm||(tm={}));function Ss(e,t){return bt(new Error,{type:e,[rb]:!0},t)}function Zr(e,t){return e instanceof Error&&rb in e&&(t==null||!!(e.type&t))}const nm="[^/]+?",iC={sensitive:!1,strict:!1,start:!0,end:!0},oC=/[.+*?^${}()[\]/\\]/g;function sC(e,t){const r=bt({},iC,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let y=0;y<p.length;y++){const b=p[y];let x=40+(r.sensitive?.25:0);if(b.type===0)y||(s+="/"),s+=b.value.replace(oC,"\\$&"),x+=40;else if(b.type===1){const{value:C,repeatable:E,optional:M,regexp:N}=b;c.push({name:C,repeatable:E,optional:M});const L=N||nm;if(L!==nm){x+=10;try{new RegExp(`(${L})`)}catch(A){throw new Error(`Invalid custom RegExp for param "${C}" (${L}): `+A.message)}}let O=E?`((?:${L})(?:/(?:${L}))*)`:`(${L})`;y||(O=M&&p.length<2?`(?:/${O})`:"/"+O),M&&(O+="?"),s+=O,x+=20,M&&(x+=-8),E&&(x+=-20),L===".*"&&(x+=-50)}v.push(x)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),y={};if(!v)return null;for(let b=1;b<v.length;b++){const x=v[b]||"",C=c[b-1];y[C.name]=x&&C.repeatable?x.split("/"):x}return y}function h(p){let v="",y=!1;for(const b of e){(!y||!v.endsWith("/"))&&(v+="/"),y=!1;for(const x of b)if(x.type===0)v+=x.value;else if(x.type===1){const{value:C,repeatable:E,optional:M}=x,N=C in p?p[C]:"";if(xr(N)&&!E)throw new Error(`Provided param "${C}" is an array but it is not repeatable (* or + modifiers)`);const L=xr(N)?N.join("/"):N;if(!L)if(M)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):y=!0);else throw new Error(`Missing required param "${C}"`);v+=L}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function lC(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function ib(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=lC(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(rm(o))return 1;if(rm(s))return-1}return s.length-o.length}function rm(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const aC={type:0,value:""},cC=/[a-zA-Z0-9_]/;function uC(e){if(!e)return[[]];if(e==="/")return[[aC]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${p}": ${x}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function y(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&y(),f()):h===":"?(y(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:cC.test(h)?b():(y(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:y(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),y(),f(),s}function fC(e,t,r){const o=sC(uC(e.path),r),s=bt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function dC(e,t){const r=[],o=new Map;t=sm({strict:!1,end:!0,sensitive:!1},t);function s(y){return o.get(y)}function c(y,b,x){const C=!x,E=hC(y);E.aliasOf=x&&x.record;const M=sm(t,y),N=[E];if("alias"in y){const A=typeof y.alias=="string"?[y.alias]:y.alias;for(const H of A)N.push(bt({},E,{components:x?x.record.components:E.components,path:H,aliasOf:x?x.record:E}))}let L,O;for(const A of N){const{path:H}=A;if(b&&H[0]!=="/"){const z=b.record.path,J=z[z.length-1]==="/"?"":"/";A.path=b.record.path+(H&&J+H)}if(L=fC(A,b,M),x?x.alias.push(L):(O=O||L,O!==L&&O.alias.push(L),C&&y.name&&!om(L)&&f(y.name)),ob(L)&&h(L),E.children){const z=E.children;for(let J=0;J<z.length;J++)c(z[J],L,x&&x.children[J])}x=x||L}return O?()=>{f(O)}:El}function f(y){if(nb(y)){const b=o.get(y);b&&(o.delete(y),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(y);b>-1&&(r.splice(b,1),y.record.name&&o.delete(y.record.name),y.children.forEach(f),y.alias.forEach(f))}}function d(){return r}function h(y){const b=vC(y,r);r.splice(b,0,y),y.record.name&&!om(y)&&o.set(y.record.name,y)}function p(y,b){let x,C={},E,M;if("name"in y&&y.name){if(x=o.get(y.name),!x)throw Ss(1,{location:y});M=x.record.name,C=bt(im(b.params,x.keys.filter(O=>!O.optional).concat(x.parent?x.parent.keys.filter(O=>O.optional):[]).map(O=>O.name)),y.params&&im(y.params,x.keys.map(O=>O.name))),E=x.stringify(C)}else if(y.path!=null)E=y.path,x=r.find(O=>O.re.test(E)),x&&(C=x.parse(E),M=x.record.name);else{if(x=b.name?o.get(b.name):r.find(O=>O.re.test(b.path)),!x)throw Ss(1,{location:y,currentLocation:b});M=x.record.name,C=bt({},b.params,y.params),E=x.stringify(C)}const N=[];let L=x;for(;L;)N.unshift(L.record),L=L.parent;return{name:M,path:E,params:C,matched:N,meta:gC(N)}}e.forEach(y=>c(y));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function im(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function hC(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:pC(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function pC(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function om(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gC(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function sm(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function vC(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;ib(e,t[c])<0?o=c:r=c+1}const s=mC(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function mC(e){let t=e;for(;t=t.parent;)if(ob(t)&&ib(e,t)===0)return t}function ob({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function yC(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace(Yy," "),f=c.indexOf("="),d=Bl(f<0?c:c.slice(0,f)),h=f<0?null:Bl(c.slice(f+1));if(d in t){let p=t[d];xr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function lm(e){let t="";for(let r in e){const o=e[r];if(r=DT(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(xr(o)?o.map(c=>c&&Td(c)):[o&&Td(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function bC(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=xr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const wC=Symbol(""),am=Symbol(""),$h=Symbol(""),sb=Symbol(""),Ed=Symbol("");function dl(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function zi(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(Ss(4,{from:r,to:t})):b instanceof Error?h(b):rC(b)?h(Ss(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let y=Promise.resolve(v);e.length<3&&(y=y.then(p)),y.catch(b=>h(b))})}function Xf(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(xC(h)){const v=(h.__vccOpts||h)[t];v&&c.push(zi(v,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${f.path}"`));const y=TT(v)?v.default:v;f.components[d]=y;const x=(y.__vccOpts||y)[t];return x&&zi(x,r,o,f,d,s)()}))}}return c}function xC(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function cm(e){const t=ii($h),r=ii(sb),o=Me(()=>{const h=q(e.to);return t.resolve(h)}),s=Me(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],y=r.matched;if(!v||!y.length)return-1;const b=y.findIndex(_s.bind(null,v));if(b>-1)return b;const x=um(h[p-2]);return p>1&&um(v)===x&&y[y.length-1].path!==x?y.findIndex(_s.bind(null,h[p-2])):b}),c=Me(()=>s.value>-1&&TC(r.params,o.value.params)),f=Me(()=>s.value>-1&&s.value===r.matched.length-1&&eb(r.params,o.value.params));function d(h={}){return kC(h)?t[q(e.replace)?"replace":"push"](q(e.to)).catch(El):Promise.resolve()}return{route:o,href:Me(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}const _C=ft({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:cm,setup(e,{slots:t}){const r=er(cm(e)),{options:o}=ii($h),s=Me(()=>({[fm(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[fm(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&t.default(r);return e.custom?c:ua("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),SC=_C;function kC(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function TC(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!xr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function um(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const fm=(e,t,r)=>e??t??r,CC=ft({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=ii(Ed),s=Me(()=>e.route||o.value),c=ii(am,0),f=Me(()=>{let p=q(c);const{matched:v}=s.value;let y;for(;(y=v[p])&&!y.components;)p++;return p}),d=Me(()=>s.value.matched[f.value]);yc(am,Me(()=>f.value+1)),yc(wC,d),yc(Ed,s);const h=Be();return qt(()=>[h.value,d.value,e.name],([p,v,y],[b,x,C])=>{v&&(v.instances[y]=p,x&&x!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=x.leaveGuards),v.updateGuards.size||(v.updateGuards=x.updateGuards))),p&&v&&(!x||!_s(v,x)||!b)&&(v.enterCallbacks[y]||[]).forEach(E=>E(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,y=d.value,b=y&&y.components[v];if(!b)return dm(r.default,{Component:b,route:p});const x=y.props[v],C=x?x===!0?p.params:typeof x=="function"?x(p):x:null,M=ua(b,bt({},C,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(y.instances[v]=null)},ref:h}));return dm(r.default,{Component:M,route:p})||M}}});function dm(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const EC=CC;function LC(e){const t=dC(e.routes,e),r=e.parseQuery||yC,o=e.stringifyQuery||lm,s=e.history,c=dl(),f=dl(),d=dl(),h=Fr(Mi);let p=Mi;ls&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Gf.bind(null,X=>""+X),y=Gf.bind(null,IT),b=Gf.bind(null,Bl);function x(X,ae){let de,$e;return nb(X)?(de=t.getRecordMatcher(X),$e=ae):$e=X,t.addRoute($e,de)}function C(X){const ae=t.getRecordMatcher(X);ae&&t.removeRoute(ae)}function E(){return t.getRoutes().map(X=>X.record)}function M(X){return!!t.getRecordMatcher(X)}function N(X,ae){if(ae=bt({},ae||h.value),typeof X=="string"){const F=Kf(r,X,ae.path),Z=t.resolve({path:F.path},ae),ce=s.createHref(F.fullPath);return bt(F,Z,{params:b(Z.params),hash:Bl(F.hash),redirectedFrom:void 0,href:ce})}let de;if(X.path!=null)de=bt({},X,{path:Kf(r,X.path,ae.path).path});else{const F=bt({},X.params);for(const Z in F)F[Z]==null&&delete F[Z];de=bt({},X,{params:y(F)}),ae.params=y(ae.params)}const $e=t.resolve(de,ae),Ee=X.hash||"";$e.params=v(b($e.params));const Ye=qT(o,bt({},X,{hash:RT(Ee),path:$e.path})),P=s.createHref(Ye);return bt({fullPath:Ye,hash:Ee,query:o===lm?bC(X.query):X.query||{}},$e,{redirectedFrom:void 0,href:P})}function L(X){return typeof X=="string"?Kf(r,X,h.value.path):bt({},X)}function O(X,ae){if(p!==X)return Ss(8,{from:ae,to:X})}function A(X){return J(X)}function H(X){return A(bt(L(X),{replace:!0}))}function z(X){const ae=X.matched[X.matched.length-1];if(ae&&ae.redirect){const{redirect:de}=ae;let $e=typeof de=="function"?de(X):de;return typeof $e=="string"&&($e=$e.includes("?")||$e.includes("#")?$e=L($e):{path:$e},$e.params={}),bt({query:X.query,hash:X.hash,params:$e.path!=null?{}:X.params},$e)}}function J(X,ae){const de=p=N(X),$e=h.value,Ee=X.state,Ye=X.force,P=X.replace===!0,F=z(de);if(F)return J(bt(L(F),{state:typeof F=="object"?bt({},Ee,F.state):Ee,force:Ye,replace:P}),ae||de);const Z=de;Z.redirectedFrom=ae;let ce;return!Ye&&BT(o,$e,de)&&(ce=Ss(16,{to:Z,from:$e}),We($e,$e,!0,!1)),(ce?Promise.resolve(ce):j(Z,$e)).catch(le=>Zr(le)?Zr(le,2)?le:Ne(le):ie(le,Z,$e)).then(le=>{if(le){if(Zr(le,2))return J(bt({replace:P},L(le.to),{state:typeof le.to=="object"?bt({},Ee,le.to.state):Ee,force:Ye}),ae||Z)}else le=K(Z,$e,!0,P,Ee);return ne(Z,$e,le),le})}function re(X,ae){const de=O(X,ae);return de?Promise.reject(de):Promise.resolve()}function te(X){const ae=rt.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(X):X()}function j(X,ae){let de;const[$e,Ee,Ye]=AC(X,ae);de=Xf($e.reverse(),"beforeRouteLeave",X,ae);for(const F of $e)F.leaveGuards.forEach(Z=>{de.push(zi(Z,X,ae))});const P=re.bind(null,X,ae);return de.push(P),Te(de).then(()=>{de=[];for(const F of c.list())de.push(zi(F,X,ae));return de.push(P),Te(de)}).then(()=>{de=Xf(Ee,"beforeRouteUpdate",X,ae);for(const F of Ee)F.updateGuards.forEach(Z=>{de.push(zi(Z,X,ae))});return de.push(P),Te(de)}).then(()=>{de=[];for(const F of Ye)if(F.beforeEnter)if(xr(F.beforeEnter))for(const Z of F.beforeEnter)de.push(zi(Z,X,ae));else de.push(zi(F.beforeEnter,X,ae));return de.push(P),Te(de)}).then(()=>(X.matched.forEach(F=>F.enterCallbacks={}),de=Xf(Ye,"beforeRouteEnter",X,ae,te),de.push(P),Te(de))).then(()=>{de=[];for(const F of f.list())de.push(zi(F,X,ae));return de.push(P),Te(de)}).catch(F=>Zr(F,8)?F:Promise.reject(F))}function ne(X,ae,de){d.list().forEach($e=>te(()=>$e(X,ae,de)))}function K(X,ae,de,$e,Ee){const Ye=O(X,ae);if(Ye)return Ye;const P=ae===Mi,F=ls?history.state:{};de&&($e||P?s.replace(X.fullPath,bt({scroll:P&&F&&F.scroll},Ee)):s.push(X.fullPath,Ee)),h.value=X,We(X,ae,de,P),Ne()}let V;function I(){V||(V=s.listen((X,ae,de)=>{if(!Ze.listening)return;const $e=N(X),Ee=z($e);if(Ee){J(bt(Ee,{replace:!0}),$e).catch(El);return}p=$e;const Ye=h.value;ls&&YT(Qv(Ye.fullPath,de.delta),Tu()),j($e,Ye).catch(P=>Zr(P,12)?P:Zr(P,2)?(J(P.to,$e).then(F=>{Zr(F,20)&&!de.delta&&de.type===Wl.pop&&s.go(-1,!1)}).catch(El),Promise.reject()):(de.delta&&s.go(-de.delta,!1),ie(P,$e,Ye))).then(P=>{P=P||K($e,Ye,!1),P&&(de.delta&&!Zr(P,8)?s.go(-de.delta,!1):de.type===Wl.pop&&Zr(P,20)&&s.go(-1,!1)),ne($e,Ye,P)}).catch(El)}))}let k=dl(),B=dl(),W;function ie(X,ae,de){Ne(X);const $e=B.list();return $e.length?$e.forEach(Ee=>Ee(X,ae,de)):console.error(X),Promise.reject(X)}function ye(){return W&&h.value!==Mi?Promise.resolve():new Promise((X,ae)=>{k.add([X,ae])})}function Ne(X){return W||(W=!X,I(),k.list().forEach(([ae,de])=>X?de(X):ae()),k.reset()),X}function We(X,ae,de,$e){const{scrollBehavior:Ee}=e;if(!ls||!Ee)return Promise.resolve();const Ye=!de&&ZT(Qv(X.fullPath,0))||($e||!de)&&history.state&&history.state.scroll||null;return ln().then(()=>Ee(X,ae,Ye)).then(P=>P&&XT(P)).catch(P=>ie(P,X,ae))}const je=X=>s.go(X);let it;const rt=new Set,Ze={currentRoute:h,listening:!0,addRoute:x,removeRoute:C,clearRoutes:t.clearRoutes,hasRoute:M,getRoutes:E,resolve:N,options:e,push:A,replace:H,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:B.add,isReady:ye,install(X){const ae=this;X.component("RouterLink",SC),X.component("RouterView",EC),X.config.globalProperties.$router=ae,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>q(h)}),ls&&!it&&h.value===Mi&&(it=!0,A(s.location).catch(Ee=>{}));const de={};for(const Ee in Mi)Object.defineProperty(de,Ee,{get:()=>h.value[Ee],enumerable:!0});X.provide($h,ae),X.provide(sb,gh(de)),X.provide(Ed,h);const $e=X.unmount;rt.add(X),X.unmount=function(){rt.delete(X),rt.size<1&&(p=Mi,V&&V(),V=null,h.value=Mi,it=!1,W=!1),$e()}}};function Te(X){return X.reduce((ae,de)=>ae.then(()=>te(de)),Promise.resolve())}return Ze}function AC(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>_s(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>_s(p,h))||s.push(h))}return[r,o,s]}const MC=["top","right","bottom","left"],hm=["start","end"],pm=MC.reduce((e,t)=>e.concat(t,t+"-"+hm[0],t+"-"+hm[1]),[]),Ul=Math.min,xo=Math.max,NC={left:"right",right:"left",bottom:"top",top:"bottom"},$C={start:"end",end:"start"};function Ld(e,t,r){return xo(e,Ul(t,r))}function Oo(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function yr(e){return e.split("-")[1]}function lb(e){return e==="x"?"y":"x"}function Oh(e){return e==="y"?"height":"width"}function fa(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Ph(e){return lb(fa(e))}function ab(e,t,r){r===void 0&&(r=!1);const o=yr(e),s=Ph(e),c=Oh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Vc(f)),[f,Vc(f)]}function OC(e){const t=Vc(e);return[Uc(e),t,Uc(t)]}function Uc(e){return e.replace(/start|end/g,t=>$C[t])}function PC(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function RC(e,t,r,o){const s=yr(e);let c=PC(Ir(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Uc)))),c}function Vc(e){return e.replace(/left|right|bottom|top/g,t=>NC[t])}function DC(e){return{top:0,right:0,bottom:0,left:0,...e}}function cb(e){return typeof e!="number"?DC(e):{top:e,right:e,bottom:e,left:e}}function Al(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function gm(e,t,r){let{reference:o,floating:s}=e;const c=fa(t),f=Ph(t),d=Oh(f),h=Ir(t),p=c==="y",v=o.x+o.width/2-s.width/2,y=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y};break;case"left":x={x:o.x-s.width,y};break;default:x={x:o.x,y:o.y}}switch(yr(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const zC=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y}=gm(p,o,h),b=o,x={},C=0;for(let E=0;E<d.length;E++){const{name:M,fn:N}=d[E],{x:L,y:O,data:A,reset:H}=await N({x:v,y,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=L??v,y=O??y,x={...x,[M]:{...x[M],...A}},H&&C<=50&&(C++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(p=H.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):H.rects),{x:v,y}=gm(p,b,h)),E=-1)}return{x:v,y,placement:b,strategy:s,middlewareData:x}};async function Cu(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:b=!1,padding:x=0}=Oo(t,e),C=cb(x),M=d[b?y==="floating"?"reference":"floating":y],N=Al(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(M)))==null||r?M:M.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),L=y==="floating"?{...f.floating,x:o,y:s}:f.reference,O=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),A=await(c.isElement==null?void 0:c.isElement(O))?await(c.getScale==null?void 0:c.getScale(O))||{x:1,y:1}:{x:1,y:1},H=Al(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:L,offsetParent:O,strategy:h}):L);return{top:(N.top-H.top+C.top)/A.y,bottom:(H.bottom-N.bottom+C.bottom)/A.y,left:(N.left-H.left+C.left)/A.x,right:(H.right-N.right+C.right)/A.x}}const IC=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=Oo(e,t)||{};if(p==null)return{};const y=cb(v),b={x:r,y:o},x=Ph(s),C=Oh(x),E=await f.getDimensions(p),M=x==="y",N=M?"top":"left",L=M?"bottom":"right",O=M?"clientHeight":"clientWidth",A=c.reference[C]+c.reference[x]-b[x]-c.floating[C],H=b[x]-c.reference[x],z=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let J=z?z[O]:0;(!J||!await(f.isElement==null?void 0:f.isElement(z)))&&(J=d.floating[O]||c.floating[C]);const re=A/2-H/2,te=J/2-E[C]/2-1,j=Ul(y[N],te),ne=Ul(y[L],te),K=j,V=J-E[C]-ne,I=J/2-E[C]/2+re,k=Ld(K,I,V),B=!h.arrow&&yr(s)!=null&&I!==k&&c.reference[C]/2-(I<K?j:ne)-E[C]/2<0,W=B?I<K?I-K:I-V:0;return{[x]:b[x]+W,data:{[x]:k,centerOffset:I-k-W,...B&&{alignmentOffset:W}},reset:B}}});function FC(e,t,r){return(e?[...r.filter(s=>yr(s)===e),...r.filter(s=>yr(s)!==e)]:r.filter(s=>Ir(s)===s)).filter(s=>e?yr(s)===e||(t?Uc(s)!==s:!1):!0)}const HC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:y,allowedPlacements:b=pm,autoAlignment:x=!0,...C}=Oo(e,t),E=y!==void 0||b===pm?FC(y||null,x,b):b,M=await Cu(t,C),N=((r=f.autoPlacement)==null?void 0:r.index)||0,L=E[N];if(L==null)return{};const O=ab(L,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==L)return{reset:{placement:E[0]}};const A=[M[Ir(L)],M[O[0]],M[O[1]]],H=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:L,overflows:A}],z=E[N+1];if(z)return{data:{index:N+1,overflows:H},reset:{placement:z}};const J=H.map(j=>{const ne=yr(j.placement);return[j.placement,ne&&v?j.overflows.slice(0,2).reduce((K,V)=>K+V,0):j.overflows[0],j.overflows]}).sort((j,ne)=>j[1]-ne[1]),te=((s=J.filter(j=>j[2].slice(0,yr(j[0])?2:3).every(ne=>ne<=0))[0])==null?void 0:s[0])||J[0][0];return te!==d?{data:{index:N+1,overflows:H},reset:{placement:te}}:{}}}},qC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:E=!0,...M}=Oo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const N=Ir(s),L=Ir(d)===d,O=await(h.isRTL==null?void 0:h.isRTL(p.floating)),A=b||(L||!E?[Vc(d)]:OC(d));!b&&C!=="none"&&A.push(...RC(d,E,C,O));const H=[d,...A],z=await Cu(t,M),J=[];let re=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&J.push(z[N]),y){const K=ab(s,f,O);J.push(z[K[0]],z[K[1]])}if(re=[...re,{placement:s,overflows:J}],!J.every(K=>K<=0)){var te,j;const K=(((te=c.flip)==null?void 0:te.index)||0)+1,V=H[K];if(V)return{data:{index:K,overflows:re},reset:{placement:V}};let I=(j=re.filter(k=>k.overflows[0]<=0).sort((k,B)=>k.overflows[1]-B.overflows[1])[0])==null?void 0:j.placement;if(!I)switch(x){case"bestFit":{var ne;const k=(ne=re.map(B=>[B.placement,B.overflows.filter(W=>W>0).reduce((W,ie)=>W+ie,0)]).sort((B,W)=>B[1]-W[1])[0])==null?void 0:ne[0];k&&(I=k);break}case"initialPlacement":I=d;break}if(s!==I)return{reset:{placement:I}}}return{}}}};async function BC(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Ir(r),d=yr(r),h=fa(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,y=Oo(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:C}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...y};return d&&typeof C=="number"&&(x=d==="end"?C*-1:C),h?{x:x*v,y:b*p}:{x:b*p,y:x*v}}const WC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await BC(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},UC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:M=>{let{x:N,y:L}=M;return{x:N,y:L}}},...h}=Oo(e,t),p={x:r,y:o},v=await Cu(t,h),y=fa(Ir(s)),b=lb(y);let x=p[b],C=p[y];if(c){const M=b==="y"?"top":"left",N=b==="y"?"bottom":"right",L=x+v[M],O=x-v[N];x=Ld(L,x,O)}if(f){const M=y==="y"?"top":"left",N=y==="y"?"bottom":"right",L=C+v[M],O=C-v[N];C=Ld(L,C,O)}const E=d.fn({...t,[b]:x,[y]:C});return{...E,data:{x:E.x-r,y:E.y-o}}}}},VC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=Oo(e,t),h=await Cu(t,d),p=Ir(r),v=yr(r),y=fa(r)==="y",{width:b,height:x}=o.floating;let C,E;p==="top"||p==="bottom"?(C=p,E=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(E=p,C=v==="end"?"top":"bottom");const M=x-h[C],N=b-h[E],L=!t.middlewareData.shift;let O=M,A=N;if(y){const z=b-h.left-h.right;A=v||L?Ul(N,z):z}else{const z=x-h.top-h.bottom;O=v||L?Ul(M,z):z}if(L&&!v){const z=xo(h.left,0),J=xo(h.right,0),re=xo(h.top,0),te=xo(h.bottom,0);y?A=b-2*(z!==0||J!==0?z+J:xo(h.left,h.right)):O=x-2*(re!==0||te!==0?re+te:xo(h.top,h.bottom))}await f({...t,availableWidth:A,availableHeight:O});const H=await s.getDimensions(c.floating);return b!==H.width||x!==H.height?{reset:{rects:!0}}:{}}}};function Qn(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $r(e){return Qn(e).getComputedStyle(e)}const vm=Math.min,Ml=Math.max,jc=Math.round;function ub(e){const t=$r(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=jc(r)!==s||jc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Xi(e){return db(e)?(e.nodeName||"").toLowerCase():""}let rc;function fb(){if(rc)return rc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(rc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),rc):navigator.userAgent}function Or(e){return e instanceof Qn(e).HTMLElement}function ji(e){return e instanceof Qn(e).Element}function db(e){return e instanceof Qn(e).Node}function mm(e){return typeof ShadowRoot>"u"?!1:e instanceof Qn(e).ShadowRoot||e instanceof ShadowRoot}function Eu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=$r(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function jC(e){return["table","td","th"].includes(Xi(e))}function Ad(e){const t=/firefox/i.test(fb()),r=$r(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(s=>r.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const c=r.contain;return c!=null&&c.includes(s)})}function hb(){return!/^((?!chrome|android).)*safari/i.test(fb())}function Rh(e){return["html","body","#document"].includes(Xi(e))}function pb(e){return ji(e)?e:e.contextElement}const gb={x:1,y:1};function vs(e){const t=pb(e);if(!Or(t))return gb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=ub(t);let f=(c?jc(r.width):r.width)/o,d=(c?jc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Vl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=pb(e);let h=gb;t&&(o?ji(o)&&(h=vs(o)):h=vs(e));const p=d?Qn(d):window,v=!hb()&&r;let y=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,C=f.height/h.y;if(d){const E=Qn(d),M=o&&ji(o)?Qn(o):o;let N=E.frameElement;for(;N&&o&&M!==E;){const L=vs(N),O=N.getBoundingClientRect(),A=getComputedStyle(N);O.x+=(N.clientLeft+parseFloat(A.paddingLeft))*L.x,O.y+=(N.clientTop+parseFloat(A.paddingTop))*L.y,y*=L.x,b*=L.y,x*=L.x,C*=L.y,y+=O.x,b+=O.y,N=Qn(N).frameElement}}return{width:x,height:C,top:b,right:y+x,bottom:b+C,left:y,x:y,y:b}}function Gi(e){return((db(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lu(e){return ji(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function vb(e){return Vl(Gi(e)).left+Lu(e).scrollLeft}function jl(e){if(Xi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mm(e)&&e.host||Gi(e);return mm(t)?t.host:t}function mb(e){const t=jl(e);return Rh(t)?t.ownerDocument.body:Or(t)&&Eu(t)?t:mb(t)}function Gc(e,t){var r;t===void 0&&(t=[]);const o=mb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=Qn(o);return s?t.concat(c,c.visualViewport||[],Eu(o)?o:[]):t.concat(o,Gc(o))}function ym(e,t,r){return t==="viewport"?Al(function(o,s){const c=Qn(o),f=Gi(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,y=0;if(d){h=d.width,p=d.height;const b=hb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,y=d.offsetTop)}return{width:h,height:p,x:v,y}}(e,r)):ji(t)?Al(function(o,s){const c=Vl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Or(o)?vs(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}}(t,r)):Al(function(o){const s=Gi(o),c=Lu(o),f=o.ownerDocument.body,d=Ml(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Ml(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+vb(o);const v=-c.scrollTop;return $r(f).direction==="rtl"&&(p+=Ml(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Gi(e)))}function bm(e){return Or(e)&&$r(e).position!=="fixed"?e.offsetParent:null}function wm(e){const t=Qn(e);let r=bm(e);for(;r&&jC(r)&&$r(r).position==="static";)r=bm(r);return r&&(Xi(r)==="html"||Xi(r)==="body"&&$r(r).position==="static"&&!Ad(r))?t:r||function(o){let s=jl(o);for(;Or(s)&&!Rh(s);){if(Ad(s))return s;s=jl(s)}return null}(e)||t}function GC(e,t,r){const o=Or(t),s=Gi(t),c=Vl(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((Xi(t)!=="body"||Eu(s))&&(f=Lu(t)),Or(t)){const h=Vl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=vb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const KC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const y=v.get(p);if(y)return y;let b=Gc(p).filter(M=>ji(M)&&Xi(M)!=="body"),x=null;const C=$r(p).position==="fixed";let E=C?jl(p):p;for(;ji(E)&&!Rh(E);){const M=$r(E),N=Ad(E);(C?N||x:N||M.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=M:b=b.filter(L=>L!==E),E=jl(E)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const y=ym(t,v,s);return p.top=Ml(y.top,p.top),p.right=vm(y.right,p.right),p.bottom=vm(y.bottom,p.bottom),p.left=Ml(y.left,p.left),p},ym(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Or(r),c=Gi(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((Xi(r)!=="body"||Eu(c))&&(f=Lu(r)),Or(r))){const p=Vl(r);d=vs(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:ji,getDimensions:function(e){return Or(e)?ub(e):e.getBoundingClientRect()},getOffsetParent:wm,getDocumentElement:Gi,getScale:vs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||wm,c=this.getDimensions;return{reference:GC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>$r(e).direction==="rtl"},XC=(e,t,r)=>{const o=new Map,s={platform:KC,...r},c={...s.platform,_c:o};return zC(e,t,{...s,platform:c})};function yb(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?yb(e[r],t[r]):e[r]=t[r])}const br={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function Gl(e,t){let r=br.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=br.themes[r.$extend]||{}:(r=null,o=br[t]):r=null;while(r);return o}function YC(e){const t=[e];let r=br.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=br.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function xm(e){const t=[e];let r=br.themes[e]||{};do r.$extend?(t.push(r.$extend),r=br.themes[r.$extend]||{}):r=null;while(r);return t}let ks=!1;if(typeof window<"u"){ks=!1;try{const e=Object.defineProperty({},"passive",{get(){ks=!0}});window.addEventListener("test",null,e)}catch{}}let bb=!1;typeof window<"u"&&typeof navigator<"u"&&(bb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const wb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),_m={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Sm={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function km(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Yf(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Wn=[];let wo=null;const Tm={};function Cm(e){let t=Tm[e];return t||(t=Tm[e]=[]),t}let Md=function(){};typeof window<"u"&&(Md=window.Element);function at(e){return function(t){return Gl(t.theme,e)}}const Zf="__floating-vue__popper",xb=()=>ft({name:"VPopper",provide(){return{[Zf]:{parentPopper:this}}},inject:{[Zf]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:at("disabled")},positioningDisabled:{type:Boolean,default:at("positioningDisabled")},placement:{type:String,default:at("placement"),validator:e=>wb.includes(e)},delay:{type:[String,Number,Object],default:at("delay")},distance:{type:[Number,String],default:at("distance")},skidding:{type:[Number,String],default:at("skidding")},triggers:{type:Array,default:at("triggers")},showTriggers:{type:[Array,Function],default:at("showTriggers")},hideTriggers:{type:[Array,Function],default:at("hideTriggers")},popperTriggers:{type:Array,default:at("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:at("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:at("popperHideTriggers")},container:{type:[String,Object,Md,Boolean],default:at("container")},boundary:{type:[String,Md],default:at("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:at("strategy")},autoHide:{type:[Boolean,Function],default:at("autoHide")},handleResize:{type:Boolean,default:at("handleResize")},instantMove:{type:Boolean,default:at("instantMove")},eagerMount:{type:Boolean,default:at("eagerMount")},popperClass:{type:[String,Array,Object],default:at("popperClass")},computeTransformOrigin:{type:Boolean,default:at("computeTransformOrigin")},autoMinSize:{type:Boolean,default:at("autoMinSize")},autoSize:{type:[Boolean,String],default:at("autoSize")},autoMaxSize:{type:Boolean,default:at("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:at("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:at("preventOverflow")},overflowPadding:{type:[Number,String],default:at("overflowPadding")},arrowPadding:{type:[Number,String],default:at("arrowPadding")},arrowOverflow:{type:Boolean,default:at("arrowOverflow")},flip:{type:Boolean,default:at("flip")},shift:{type:Boolean,default:at("shift")},shiftCrossAxis:{type:Boolean,default:at("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:at("noAutoFocus")},disposeTimeout:{type:Number,default:at("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Zf])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(WC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(HC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(UC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(qC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(IC({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(VC({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 XC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),wo&&this.instantMove&&wo.instantMove&&wo!==this.parentPopper){wo.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(wo=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Yf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Gc(this.$_referenceNode),...Gc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<Wn.length;r++)t=Wn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Wn.push(this),document.body.classList.add("v-popper--some-open");for(const t of xm(this.theme))Cm(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Yf(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,km(Wn,this),Wn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of xm(this.theme)){const o=Cm(r);km(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}wo===this&&(wo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Yf(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,_m,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],_m,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Sm,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Sm,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,ks?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Nl>=e.left&&Nl<=e.right&&$l>=e.top&&$l<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Nl-$i,o=$l-Oi,s=t.left+t.width/2-$i+(t.top+t.height/2)-Oi+t.width+t.height,c=$i+r*s,f=Oi+o*s;return ic($i,Oi,c,f,t.left,t.top,t.left,t.bottom)||ic($i,Oi,c,f,t.left,t.top,t.right,t.top)||ic($i,Oi,c,f,t.right,t.top,t.right,t.bottom)||ic($i,Oi,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(bb){const e=ks?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Em(t,!0),e),document.addEventListener("touchend",t=>Lm(t,!0),e)}else window.addEventListener("mousedown",e=>Em(e,!1),!0),window.addEventListener("click",e=>Lm(e,!1),!0);window.addEventListener("resize",JC)}function Em(e,t){if(br.autoHideOnMousedown)_b(e,t);else for(let r=0;r<Wn.length;r++){const o=Wn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Lm(e,t){br.autoHideOnMousedown||_b(e,t)}function _b(e,t){const r={};for(let o=Wn.length-1;o>=0;o--){const s=Wn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Am(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&Am(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Am(e,t,r){return r.closeAllPopover||r.closePopover&&t||ZC(e,r)&&!t}function ZC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function JC(){for(let e=0;e<Wn.length;e++)Wn[e].$_computePosition()}function Mm(){for(let e=0;e<Wn.length;e++)Wn[e].hide()}let $i=0,Oi=0,Nl=0,$l=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{$i=Nl,Oi=$l,Nl=e.clientX,$l=e.clientY},ks?{passive:!0}:void 0);function ic(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const QC={extends:xb()},Au=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function eE(e,t,r,o,s,c){return oe(),me("div",{ref:"reference",class:lt(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[hn(e.$slots,"default",X_(qy(e.slotData)))],2)}const tE=Au(QC,[["render",eE]]);function nE(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let _c;function Nd(){Nd.init||(Nd.init=!0,_c=nE()!==-1)}var Mu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Nd(),ln(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",_c&&this.$el.appendChild(e),e.data="about:blank",_c||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!_c&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const rE=py();sa("data-v-b329ee4c");const iE={class:"resize-observer",tabindex:"-1"};la();const oE=rE((e,t,r,o,s,c)=>(oe(),ot("div",iE)));Mu.render=oE;Mu.__scopeId="data-v-b329ee4c";Mu.__file="src/components/ResizeObserver.vue";const Sb=(e="theme")=>({computed:{themeClass(){return YC(this[e])}}}),sE=ft({name:"VPopperContent",components:{ResizeObserver:Mu},mixins:[Sb()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),lE=["id","aria-hidden","tabindex","data-popper-placement"],aE={ref:"inner",class:"v-popper__inner"},cE=Y("div",{class:"v-popper__arrow-outer"},null,-1),uE=Y("div",{class:"v-popper__arrow-inner"},null,-1),fE=[cE,uE];function dE(e,t,r,o,s,c){const f=Ao("ResizeObserver");return oe(),me("div",{id:e.popperId,ref:"popover",class:lt(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Zt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=kd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[Y("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),Y("div",{class:"v-popper__wrapper",style:Zt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Y("div",aE,[e.mounted?(oe(),me(ut,{key:0},[Y("div",null,[hn(e.$slots,"default")]),e.handleResize?(oe(),ot(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):et("",!0)],64)):et("",!0)],512),Y("div",{ref:"arrow",class:"v-popper__arrow-container",style:Zt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},fE,4)],4)],46,lE)}const kb=Au(sE,[["render",dE]]),Tb={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let $d=function(){};typeof window<"u"&&($d=window.Element);const hE=ft({name:"VPopperWrapper",components:{Popper:tE,PopperContent:kb},mixins:[Tb,Sb("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,$d,Boolean],default:void 0},boundary:{type:[String,$d],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function pE(e,t,r,o,s,c){const f=Ao("PopperContent"),d=Ao("Popper");return oe(),ot(d,oi({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:st(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:y,autoHide:b,show:x,hide:C,handleResize:E,onResize:M,classes:N,result:L})=>[hn(e.$slots,"default",{shown:p,show:x,hide:C}),Oe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":y,"auto-hide":b,"handle-resize":E,classes:N,result:L,onHide:C,onResize:M},{default:st(()=>[hn(e.$slots,"popper",{shown:p,hide:C})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Dh=Au(hE,[["render",pE]]),gE={...Dh,name:"VDropdown",vPopperTheme:"dropdown"},vE={...Dh,name:"VMenu",vPopperTheme:"menu"},Cb={...Dh,name:"VTooltip",vPopperTheme:"tooltip"},mE=ft({name:"VTooltipDirective",components:{Popper:xb(),PopperContent:kb},mixins:[Tb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Gl(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Gl(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),yE=["innerHTML"],bE=["textContent"];function wE(e,t,r,o,s,c){const f=Ao("PopperContent"),d=Ao("Popper");return oe(),ot(d,oi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:st(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:y,autoHide:b,hide:x,handleResize:C,onResize:E,classes:M,result:N})=>[Oe(f,{ref:"popperContent",class:lt({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":y,"auto-hide":b,"handle-resize":C,classes:M,result:N,onHide:x,onResize:E},{default:st(()=>[e.html?(oe(),me("div",{key:0,innerHTML:e.finalContent},null,8,yE)):(oe(),me("div",{key:1,textContent:qe(e.finalContent)},null,8,bE))]),_: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 xE=Au(mE,[["render",wE]]),Eb="v-popper--has-tooltip";function _E(e,t){let r=e.placement;if(!r&&t)for(const o of wb)t[o]&&(r=o);return r||(r=Gl(e.theme||"tooltip","placement")),r}function Lb(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=_E(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Jf,Kl,SE=0;function kE(){if(Jf)return;Kl=Be([]),Jf=Ky({name:"VTooltipDirectiveApp",setup(){return{directives:Kl}},render(){return this.directives.map(t=>ua(xE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Jf.mount(e)}function Ab(e,t,r){kE();const o=Be(Lb(e,t,r)),s=Be(!1),c={id:SE++,options:o,shown:s};return Kl.value.push(c),e.classList&&e.classList.add(Eb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function zh(e){if(e.$_popper){const t=Kl.value.indexOf(e.$_popper.item);t!==-1&&Kl.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Eb)}function Nm(e,{value:t,modifiers:r}){const o=Lb(e,t,r);if(!o.content||Gl(o.theme||"tooltip","disabled"))zh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Ab(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Mb={beforeMount:Nm,updated:Nm,beforeUnmount(e){zh(e)}};function $m(e){e.addEventListener("mousedown",Kc),e.addEventListener("click",Kc),e.addEventListener("touchstart",Nb,ks?{passive:!0}:!1)}function Om(e){e.removeEventListener("mousedown",Kc),e.removeEventListener("click",Kc),e.removeEventListener("touchstart",Nb),e.removeEventListener("touchend",$b),e.removeEventListener("touchcancel",Ob)}function Kc(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Nb(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const r=e.changedTouches[0];t.$_vclosepopover_touchPoint=r,t.addEventListener("touchend",$b),t.addEventListener("touchcancel",Ob)}}function $b(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Ob(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const TE={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&$m(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?$m(e):Om(e))},beforeUnmount(e){Om(e)}},CE=Mb,Pb=Cb;function EE(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,yb(br,t),e.directive("tooltip",Mb),e.directive("close-popper",TE),e.component("VTooltip",Cb),e.component("VDropdown",gE),e.component("VMenu",vE))}const Rb={version:"5.2.2",install:EE,options:br},LE=6e4;function Db(e){return e}const AE=Db,{clearTimeout:ME,setTimeout:NE}=globalThis,$E=Math.random.bind(Math);function OE(e,t){const{post:r,on:o,eventNames:s=[],serialize:c=Db,deserialize:f=AE,resolver:d,timeout:h=LE}=t,p=new Map;let v;const y=new Proxy({},{get(b,x){if(x==="$functions")return e;if(x==="then"&&!s.includes("then")&&!("then"in e))return;const C=(...M)=>{r(c({m:x,a:M,t:"q"}))};if(s.includes(x))return C.asEvent=C,C;const E=async(...M)=>(await v,new Promise((N,L)=>{var H;const O=RE();let A;h>=0&&(A=NE(()=>{var z;try{throw(z=t.onTimeoutError)==null||z.call(t,x,M),new Error(`[birpc] timeout on calling "${x}"`)}catch(J){L(J)}p.delete(O)},h),typeof A=="object"&&(A=(H=A.unref)==null?void 0:H.call(A))),p.set(O,{resolve:N,reject:L,timeoutId:A}),r(c({m:x,a:M,i:O,t:"q"}))}));return E.asEvent=C,E}});return v=o(async(b,...x)=>{const C=f(b);if(C.t==="q"){const{m:E,a:M}=C;let N,L;const O=d?d(E,e[E]):e[E];if(!O)L=new Error(`[birpc] function "${E}" not found`);else try{N=await O.apply(y,M)}catch(A){L=A}C.i&&(L&&t.onError&&t.onError(L,E,M),r(c({t:"s",i:C.i,r:N,e:L}),...x))}else{const{i:E,r:M,e:N}=C,L=p.get(E);L&&(ME(L.timeoutId),N?L.reject(N):L.resolve(M)),p.delete(E)}}),y}const PE="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function RE(e=21){let t="",r=e;for(;r--;)t+=PE[$E()*64|0];return t}const{parse:DE,stringify:zE}=JSON,{keys:IE}=Object,Xl=String,zb="string",Pm={},Xc="object",Ib=(e,t)=>t,FE=e=>e instanceof Xl?Xl(e):e,HE=(e,t)=>typeof t===zb?new Xl(t):t,Fb=(e,t,r,o)=>{const s=[];for(let c=IE(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof Xl){const v=e[p];typeof v===Xc&&!t.has(v)?(t.add(v),r[h]=Pm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Pm&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,Fb.apply(null,h))}return r},Rm=(e,t,r)=>{const o=Xl(t.push(r)-1);return e.set(r,o),o},Od=(e,t)=>{const r=DE(e,HE).map(FE),o=r[0],s=t||Ib,c=typeof o===Xc&&o?Fb(r,new Set,o,s):o;return s.call({"":c},"",c)},qE=(e,t,r)=>{const o=t&&typeof t===Xc?(v,y)=>v===""||-1<t.indexOf(v)?y:void 0:t||Ib,s=new Map,c=[],f=[];let d=+Rm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=zE(c[d++],p,r);return"["+f.join(",")+"]";function p(v,y){if(h)return h=!h,y;const b=o.call(this,v,y);switch(typeof b){case Xc:if(b===null)return b;case zb:return s.get(b)||Rm(s,c,b)}return b}};function Hb(e){return e!=null}function Ih(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const BE=/^[A-Za-z]:\//;function WE(e=""){return e&&e.replace(/\\/g,"/").replace(BE,t=>t.toUpperCase())}const UE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Dm=/^\/([A-Za-z]:)?$/;function VE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const zm=function(...e){e=e.map(o=>WE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:VE();!s||s.length===0||(t=`${s}/${t}`,r=Im(s))}return t=jE(t,!r),r&&!Im(t)?`/${t}`:t.length>0?t:"."};function jE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Im=function(e){return UE.test(e)},GE=function(e,t){const r=zm(e).replace(Dm,"$1").split("/"),o=zm(t).replace(Dm,"$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 KE(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function Pd(e,t,r,o){const s=GE(t,e),c={id:KE(`${s}${r||""}`),name:s,type:"suite",mode:"run",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function Ts(e){return e.type==="test"||e.type==="custom"}function qb(e){const t=[],r=Ih(e);for(const o of r)if(Ts(o))t.push(o);else for(const s of o.tasks)if(Ts(s))t.push(s);else{const c=qb(s);for(const f of c)t.push(f)}return t}function Fh(e=[]){return Ih(e).flatMap(t=>Ts(t)?[t]:[t,...Fh(t.tasks)])}function XE(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}function YE(e){return typeof AggregateError<"u"&&e instanceof AggregateError?!0:e instanceof Error&&"errors"in e}class Bb{constructor(){Yr(this,"filesMap",new Map);Yr(this,"pathsSet",new Set);Yr(this,"idMap",new Map);Yr(this,"taskFileMap",new WeakMap);Yr(this,"errorsSet",new Set);Yr(this,"processTimeoutCauses",new Set)}catchError(t,r){if(YE(t))return t.errors.forEach(s=>this.catchError(s,r));t===Object(t)?t.type=r:t={type:r,message:t};const o=t;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(t)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}addProcessTimeoutCause(t){this.processTimeoutCauses.add(t)}getProcessTimeoutCauses(){return Array.from(this.processTimeoutCauses.values())}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Pd(s,o.config.root,o.config.name);if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}getCountOfFailedTests(){return Array.from(this.idMap.values()).filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).length}cancelFiles(t,r,o){this.collectFiles(t.map(s=>Pd(s,r,o)))}}function Hh(e){return qb(e).some(t=>{var r,o;return(o=(r=t.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function ZE(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=L=>L,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Bb,waitForConnection:N,reconnect:E},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let y;const b={onSpecsCollected(L){var O;L==null||L.forEach(([A,H])=>{v.state.clearFiles({config:A},[H])}),(O=r.onSpecsCollected)==null||O.call(r,L)},onPathsCollected(L){var O;v.state.collectPaths(L),(O=r.onPathsCollected)==null||O.call(r,L)},onCollected(L){var O;v.state.collectFiles(L),(O=r.onCollected)==null||O.call(r,L)},onTaskUpdate(L){var O;v.state.updateTasks(L),(O=r.onTaskUpdate)==null||O.call(r,L)},onUserConsoleLog(L){var O;v.state.updateUserLog(L),(O=r.onUserConsoleLog)==null||O.call(r,L)},onFinished(L,O){var A;(A=r.onFinished)==null||A.call(r,L,O)},onFinishedReportCoverage(){var L;(L=r.onFinishedReportCoverage)==null||L.call(r)}},x={post:L=>v.ws.send(L),on:L=>y=L,serialize:L=>qE(L,(O,A)=>A instanceof Error?{name:A.name,message:A.message,stack:A.stack}:A),deserialize:Od,onTimeoutError(L){throw new Error(`[vitest-ws-client]: Timeout calling "${L}"`)}};v.rpc=OE(b,x);let C;function E(L=!1){L&&(p=c),v.ws=new h(e),M()}function M(){C=new Promise((L,O)=>{var H,z;const A=(z=(H=setTimeout(()=>{O(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:H.unref)==null?void 0:z.call(H);v.ws.OPEN===v.ws.readyState&&L(),v.ws.addEventListener("open",()=>{p=c,L(),clearTimeout(A)})}),v.ws.addEventListener("message",L=>{y(L.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(E,s)})}M();function N(){return C}return v}const JE=location.port,QE=[location.hostname,JE].filter(Boolean).join(":"),eL=`${location.protocol==="https:"?"wss:":"ws:"}//${QE}/__vitest_api__`,Pr=!!window.METADATA_PATH;var Mo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ub={},si={};const tL="Á",nL="á",rL="Ă",iL="ă",oL="∾",sL="∿",lL="∾̳",aL="Â",cL="â",uL="´",fL="А",dL="а",hL="Æ",pL="æ",gL="",vL="𝔄",mL="𝔞",yL="À",bL="à",wL="ℵ",xL="ℵ",_L="Α",SL="α",kL="Ā",TL="ā",CL="⨿",EL="&",LL="&",AL="⩕",ML="⩓",NL="∧",$L="⩜",OL="⩘",PL="⩚",RL="∠",DL="⦤",zL="∠",IL="⦨",FL="⦩",HL="⦪",qL="⦫",BL="⦬",WL="⦭",UL="⦮",VL="⦯",jL="∡",GL="∟",KL="⊾",XL="⦝",YL="∢",ZL="Å",JL="⍼",QL="Ą",eA="ą",tA="𝔸",nA="𝕒",rA="⩯",iA="≈",oA="⩰",sA="≊",lA="≋",aA="'",cA="",uA="≈",fA="≊",dA="Å",hA="å",pA="𝒜",gA="𝒶",vA="≔",mA="*",yA="≈",bA="≍",wA="Ã",xA="ã",_A="Ä",SA="ä",kA="∳",TA="⨑",CA="≌",EA="϶",LA="‵",AA="∽",MA="⋍",NA="∖",$A="⫧",OA="⊽",PA="⌅",RA="⌆",DA="⌅",zA="⎵",IA="⎶",FA="≌",HA="Б",qA="б",BA="„",WA="∵",UA="∵",VA="∵",jA="⦰",GA="϶",KA="ℬ",XA="ℬ",YA="Β",ZA="β",JA="ℶ",QA="≬",eM="𝔅",tM="𝔟",nM="⋂",rM="◯",iM="⋃",oM="⨀",sM="⨁",lM="⨂",aM="⨆",cM="★",uM="▽",fM="△",dM="⨄",hM="⋁",pM="⋀",gM="⤍",vM="⧫",mM="▪",yM="▴",bM="▾",wM="◂",xM="▸",_M="␣",SM="▒",kM="░",TM="▓",CM="█",EM="=⃥",LM="≡⃥",AM="⫭",MM="⌐",NM="𝔹",$M="𝕓",OM="⊥",PM="⊥",RM="⋈",DM="⧉",zM="┐",IM="╕",FM="╖",HM="╗",qM="┌",BM="╒",WM="╓",UM="╔",VM="─",jM="═",GM="┬",KM="╤",XM="╥",YM="╦",ZM="┴",JM="╧",QM="╨",eN="╩",tN="⊟",nN="⊞",rN="⊠",iN="┘",oN="╛",sN="╜",lN="╝",aN="└",cN="╘",uN="╙",fN="╚",dN="│",hN="║",pN="┼",gN="╪",vN="╫",mN="╬",yN="┤",bN="╡",wN="╢",xN="╣",_N="├",SN="╞",kN="╟",TN="╠",CN="‵",EN="˘",LN="˘",AN="¦",MN="𝒷",NN="ℬ",$N="⁏",ON="∽",PN="⋍",RN="⧅",DN="\\",zN="⟈",IN="•",FN="•",HN="≎",qN="⪮",BN="≏",WN="≎",UN="≏",VN="Ć",jN="ć",GN="⩄",KN="⩉",XN="⩋",YN="∩",ZN="⋒",JN="⩇",QN="⩀",e$="ⅅ",t$="∩︀",n$="⁁",r$="ˇ",i$="ℭ",o$="⩍",s$="Č",l$="č",a$="Ç",c$="ç",u$="Ĉ",f$="ĉ",d$="∰",h$="⩌",p$="⩐",g$="Ċ",v$="ċ",m$="¸",y$="¸",b$="⦲",w$="¢",x$="·",_$="·",S$="𝔠",k$="ℭ",T$="Ч",C$="ч",E$="✓",L$="✓",A$="Χ",M$="χ",N$="ˆ",$$="≗",O$="↺",P$="↻",R$="⊛",D$="⊚",z$="⊝",I$="⊙",F$="®",H$="Ⓢ",q$="⊖",B$="⊕",W$="⊗",U$="○",V$="⧃",j$="≗",G$="⨐",K$="⫯",X$="⧂",Y$="∲",Z$="”",J$="’",Q$="♣",eO="♣",tO=":",nO="∷",rO="⩴",iO="≔",oO="≔",sO=",",lO="@",aO="∁",cO="∘",uO="∁",fO="ℂ",dO="≅",hO="⩭",pO="≡",gO="∮",vO="∯",mO="∮",yO="𝕔",bO="ℂ",wO="∐",xO="∐",_O="©",SO="©",kO="℗",TO="∳",CO="↵",EO="✗",LO="⨯",AO="𝒞",MO="𝒸",NO="⫏",$O="⫑",OO="⫐",PO="⫒",RO="⋯",DO="⤸",zO="⤵",IO="⋞",FO="⋟",HO="↶",qO="⤽",BO="⩈",WO="⩆",UO="≍",VO="∪",jO="⋓",GO="⩊",KO="⊍",XO="⩅",YO="∪︀",ZO="↷",JO="⤼",QO="⋞",eP="⋟",tP="⋎",nP="⋏",rP="¤",iP="↶",oP="↷",sP="⋎",lP="⋏",aP="∲",cP="∱",uP="⌭",fP="†",dP="‡",hP="ℸ",pP="↓",gP="↡",vP="⇓",mP="‐",yP="⫤",bP="⊣",wP="⤏",xP="˝",_P="Ď",SP="ď",kP="Д",TP="д",CP="‡",EP="⇊",LP="ⅅ",AP="ⅆ",MP="⤑",NP="⩷",$P="°",OP="∇",PP="Δ",RP="δ",DP="⦱",zP="⥿",IP="𝔇",FP="𝔡",HP="⥥",qP="⇃",BP="⇂",WP="´",UP="˙",VP="˝",jP="`",GP="˜",KP="⋄",XP="⋄",YP="⋄",ZP="♦",JP="♦",QP="¨",eR="ⅆ",tR="ϝ",nR="⋲",rR="÷",iR="÷",oR="⋇",sR="⋇",lR="Ђ",aR="ђ",cR="⌞",uR="⌍",fR="$",dR="𝔻",hR="𝕕",pR="¨",gR="˙",vR="⃜",mR="≐",yR="≑",bR="≐",wR="∸",xR="∔",_R="⊡",SR="⌆",kR="∯",TR="¨",CR="⇓",ER="⇐",LR="⇔",AR="⫤",MR="⟸",NR="⟺",$R="⟹",OR="⇒",PR="⊨",RR="⇑",DR="⇕",zR="∥",IR="⤓",FR="↓",HR="↓",qR="⇓",BR="⇵",WR="̑",UR="⇊",VR="⇃",jR="⇂",GR="⥐",KR="⥞",XR="⥖",YR="↽",ZR="⥟",JR="⥗",QR="⇁",eD="↧",tD="⊤",nD="⤐",rD="⌟",iD="⌌",oD="𝒟",sD="𝒹",lD="Ѕ",aD="ѕ",cD="⧶",uD="Đ",fD="đ",dD="⋱",hD="▿",pD="▾",gD="⇵",vD="⥯",mD="⦦",yD="Џ",bD="џ",wD="⟿",xD="É",_D="é",SD="⩮",kD="Ě",TD="ě",CD="Ê",ED="ê",LD="≖",AD="≕",MD="Э",ND="э",$D="⩷",OD="Ė",PD="ė",RD="≑",DD="ⅇ",zD="≒",ID="𝔈",FD="𝔢",HD="⪚",qD="È",BD="è",WD="⪖",UD="⪘",VD="⪙",jD="∈",GD="⏧",KD="ℓ",XD="⪕",YD="⪗",ZD="Ē",JD="ē",QD="∅",e2="∅",t2="◻",n2="∅",r2="▫",i2=" ",o2=" ",s2=" ",l2="Ŋ",a2="ŋ",c2=" ",u2="Ę",f2="ę",d2="𝔼",h2="𝕖",p2="⋕",g2="⧣",v2="⩱",m2="ε",y2="Ε",b2="ε",w2="ϵ",x2="≖",_2="≕",S2="≂",k2="⪖",T2="⪕",C2="⩵",E2="=",L2="≂",A2="≟",M2="⇌",N2="≡",$2="⩸",O2="⧥",P2="⥱",R2="≓",D2="ℯ",z2="ℰ",I2="≐",F2="⩳",H2="≂",q2="Η",B2="η",W2="Ð",U2="ð",V2="Ë",j2="ë",G2="€",K2="!",X2="∃",Y2="∃",Z2="ℰ",J2="ⅇ",Q2="ⅇ",ez="≒",tz="Ф",nz="ф",rz="♀",iz="ffi",oz="ff",sz="ffl",lz="𝔉",az="𝔣",cz="fi",uz="◼",fz="▪",dz="fj",hz="♭",pz="fl",gz="▱",vz="ƒ",mz="𝔽",yz="𝕗",bz="∀",wz="∀",xz="⋔",_z="⫙",Sz="ℱ",kz="⨍",Tz="½",Cz="⅓",Ez="¼",Lz="⅕",Az="⅙",Mz="⅛",Nz="⅔",$z="⅖",Oz="¾",Pz="⅗",Rz="⅜",Dz="⅘",zz="⅚",Iz="⅝",Fz="⅞",Hz="⁄",qz="⌢",Bz="𝒻",Wz="ℱ",Uz="ǵ",Vz="Γ",jz="γ",Gz="Ϝ",Kz="ϝ",Xz="⪆",Yz="Ğ",Zz="ğ",Jz="Ģ",Qz="Ĝ",eI="ĝ",tI="Г",nI="г",rI="Ġ",iI="ġ",oI="≥",sI="≧",lI="⪌",aI="⋛",cI="≥",uI="≧",fI="⩾",dI="⪩",hI="⩾",pI="⪀",gI="⪂",vI="⪄",mI="⋛︀",yI="⪔",bI="𝔊",wI="𝔤",xI="≫",_I="⋙",SI="⋙",kI="ℷ",TI="Ѓ",CI="ѓ",EI="⪥",LI="≷",AI="⪒",MI="⪤",NI="⪊",$I="⪊",OI="⪈",PI="≩",RI="⪈",DI="≩",zI="⋧",II="𝔾",FI="𝕘",HI="`",qI="≥",BI="⋛",WI="≧",UI="⪢",VI="≷",jI="⩾",GI="≳",KI="𝒢",XI="ℊ",YI="≳",ZI="⪎",JI="⪐",QI="⪧",eF="⩺",tF=">",nF=">",rF="≫",iF="⋗",oF="⦕",sF="⩼",lF="⪆",aF="⥸",cF="⋗",uF="⋛",fF="⪌",dF="≷",hF="≳",pF="≩︀",gF="≩︀",vF="ˇ",mF=" ",yF="½",bF="ℋ",wF="Ъ",xF="ъ",_F="⥈",SF="↔",kF="⇔",TF="↭",CF="^",EF="ℏ",LF="Ĥ",AF="ĥ",MF="♥",NF="♥",$F="…",OF="⊹",PF="𝔥",RF="ℌ",DF="ℋ",zF="⤥",IF="⤦",FF="⇿",HF="∻",qF="↩",BF="↪",WF="𝕙",UF="ℍ",VF="―",jF="─",GF="𝒽",KF="ℋ",XF="ℏ",YF="Ħ",ZF="ħ",JF="≎",QF="≏",eH="⁃",tH="‐",nH="Í",rH="í",iH="",oH="Î",sH="î",lH="И",aH="и",cH="İ",uH="Е",fH="е",dH="¡",hH="⇔",pH="𝔦",gH="ℑ",vH="Ì",mH="ì",yH="ⅈ",bH="⨌",wH="∭",xH="⧜",_H="℩",SH="IJ",kH="ij",TH="Ī",CH="ī",EH="ℑ",LH="ⅈ",AH="ℐ",MH="ℑ",NH="ı",$H="ℑ",OH="⊷",PH="Ƶ",RH="⇒",DH="℅",zH="∞",IH="⧝",FH="ı",HH="⊺",qH="∫",BH="∬",WH="ℤ",UH="∫",VH="⊺",jH="⋂",GH="⨗",KH="⨼",XH="",YH="",ZH="Ё",JH="ё",QH="Į",eq="į",tq="𝕀",nq="𝕚",rq="Ι",iq="ι",oq="⨼",sq="¿",lq="𝒾",aq="ℐ",cq="∈",uq="⋵",fq="⋹",dq="⋴",hq="⋳",pq="∈",gq="",vq="Ĩ",mq="ĩ",yq="І",bq="і",wq="Ï",xq="ï",_q="Ĵ",Sq="ĵ",kq="Й",Tq="й",Cq="𝔍",Eq="𝔧",Lq="ȷ",Aq="𝕁",Mq="𝕛",Nq="𝒥",$q="𝒿",Oq="Ј",Pq="ј",Rq="Є",Dq="є",zq="Κ",Iq="κ",Fq="ϰ",Hq="Ķ",qq="ķ",Bq="К",Wq="к",Uq="𝔎",Vq="𝔨",jq="ĸ",Gq="Х",Kq="х",Xq="Ќ",Yq="ќ",Zq="𝕂",Jq="𝕜",Qq="𝒦",eB="𝓀",tB="⇚",nB="Ĺ",rB="ĺ",iB="⦴",oB="ℒ",sB="Λ",lB="λ",aB="⟨",cB="⟪",uB="⦑",fB="⟨",dB="⪅",hB="ℒ",pB="«",gB="⇤",vB="⤟",mB="←",yB="↞",bB="⇐",wB="⤝",xB="↩",_B="↫",SB="⤹",kB="⥳",TB="↢",CB="⤙",EB="⤛",LB="⪫",AB="⪭",MB="⪭︀",NB="⤌",$B="⤎",OB="❲",PB="{",RB="[",DB="⦋",zB="⦏",IB="⦍",FB="Ľ",HB="ľ",qB="Ļ",BB="ļ",WB="⌈",UB="{",VB="Л",jB="л",GB="⤶",KB="“",XB="„",YB="⥧",ZB="⥋",JB="↲",QB="≤",e3="≦",t3="⟨",n3="⇤",r3="←",i3="←",o3="⇐",s3="⇆",l3="↢",a3="⌈",c3="⟦",u3="⥡",f3="⥙",d3="⇃",h3="⌊",p3="↽",g3="↼",v3="⇇",m3="↔",y3="↔",b3="⇔",w3="⇆",x3="⇋",_3="↭",S3="⥎",k3="↤",T3="⊣",C3="⥚",E3="⋋",L3="⧏",A3="⊲",M3="⊴",N3="⥑",$3="⥠",O3="⥘",P3="↿",R3="⥒",D3="↼",z3="⪋",I3="⋚",F3="≤",H3="≦",q3="⩽",B3="⪨",W3="⩽",U3="⩿",V3="⪁",j3="⪃",G3="⋚︀",K3="⪓",X3="⪅",Y3="⋖",Z3="⋚",J3="⪋",Q3="⋚",e5="≦",t5="≶",n5="≶",r5="⪡",i5="≲",o5="⩽",s5="≲",l5="⥼",a5="⌊",c5="𝔏",u5="𝔩",f5="≶",d5="⪑",h5="⥢",p5="↽",g5="↼",v5="⥪",m5="▄",y5="Љ",b5="љ",w5="⇇",x5="≪",_5="⋘",S5="⌞",k5="⇚",T5="⥫",C5="◺",E5="Ŀ",L5="ŀ",A5="⎰",M5="⎰",N5="⪉",$5="⪉",O5="⪇",P5="≨",R5="⪇",D5="≨",z5="⋦",I5="⟬",F5="⇽",H5="⟦",q5="⟵",B5="⟵",W5="⟸",U5="⟷",V5="⟷",j5="⟺",G5="⟼",K5="⟶",X5="⟶",Y5="⟹",Z5="↫",J5="↬",Q5="⦅",e8="𝕃",t8="𝕝",n8="⨭",r8="⨴",i8="∗",o8="_",s8="↙",l8="↘",a8="◊",c8="◊",u8="⧫",f8="(",d8="⦓",h8="⇆",p8="⌟",g8="⇋",v8="⥭",m8="",y8="⊿",b8="‹",w8="𝓁",x8="ℒ",_8="↰",S8="↰",k8="≲",T8="⪍",C8="⪏",E8="[",L8="‘",A8="‚",M8="Ł",N8="ł",$8="⪦",O8="⩹",P8="<",R8="<",D8="≪",z8="⋖",I8="⋋",F8="⋉",H8="⥶",q8="⩻",B8="◃",W8="⊴",U8="◂",V8="⦖",j8="⥊",G8="⥦",K8="≨︀",X8="≨︀",Y8="¯",Z8="♂",J8="✠",Q8="✠",e4="↦",t4="↦",n4="↧",r4="↤",i4="↥",o4="▮",s4="⨩",l4="М",a4="м",c4="—",u4="∺",f4="∡",d4=" ",h4="ℳ",p4="𝔐",g4="𝔪",v4="℧",m4="µ",y4="*",b4="⫰",w4="∣",x4="·",_4="⊟",S4="−",k4="∸",T4="⨪",C4="∓",E4="⫛",L4="…",A4="∓",M4="⊧",N4="𝕄",$4="𝕞",O4="∓",P4="𝓂",R4="ℳ",D4="∾",z4="Μ",I4="μ",F4="⊸",H4="⊸",q4="∇",B4="Ń",W4="ń",U4="∠⃒",V4="≉",j4="⩰̸",G4="≋̸",K4="ʼn",X4="≉",Y4="♮",Z4="ℕ",J4="♮",Q4=" ",eW="≎̸",tW="≏̸",nW="⩃",rW="Ň",iW="ň",oW="Ņ",sW="ņ",lW="≇",aW="⩭̸",cW="⩂",uW="Н",fW="н",dW="–",hW="⤤",pW="↗",gW="⇗",vW="↗",mW="≠",yW="≐̸",bW="",wW="",xW="",_W="",SW="≢",kW="⤨",TW="≂̸",CW="≫",EW="≪",LW=`
|
|
22
|
+
`,AW="∄",MW="∄",NW="𝔑",$W="𝔫",OW="≧̸",PW="≱",RW="≱",DW="≧̸",zW="⩾̸",IW="⩾̸",FW="⋙̸",HW="≵",qW="≫⃒",BW="≯",WW="≯",UW="≫̸",VW="↮",jW="⇎",GW="⫲",KW="∋",XW="⋼",YW="⋺",ZW="∋",JW="Њ",QW="њ",eU="↚",tU="⇍",nU="‥",rU="≦̸",iU="≰",oU="↚",sU="⇍",lU="↮",aU="⇎",cU="≰",uU="≦̸",fU="⩽̸",dU="⩽̸",hU="≮",pU="⋘̸",gU="≴",vU="≪⃒",mU="≮",yU="⋪",bU="⋬",wU="≪̸",xU="∤",_U="",SU=" ",kU="𝕟",TU="ℕ",CU="⫬",EU="¬",LU="≢",AU="≭",MU="∦",NU="∉",$U="≠",OU="≂̸",PU="∄",RU="≯",DU="≱",zU="≧̸",IU="≫̸",FU="≹",HU="⩾̸",qU="≵",BU="≎̸",WU="≏̸",UU="∉",VU="⋵̸",jU="⋹̸",GU="∉",KU="⋷",XU="⋶",YU="⧏̸",ZU="⋪",JU="⋬",QU="≮",e6="≰",t6="≸",n6="≪̸",r6="⩽̸",i6="≴",o6="⪢̸",s6="⪡̸",l6="∌",a6="∌",c6="⋾",u6="⋽",f6="⊀",d6="⪯̸",h6="⋠",p6="∌",g6="⧐̸",v6="⋫",m6="⋭",y6="⊏̸",b6="⋢",w6="⊐̸",x6="⋣",_6="⊂⃒",S6="⊈",k6="⊁",T6="⪰̸",C6="⋡",E6="≿̸",L6="⊃⃒",A6="⊉",M6="≁",N6="≄",$6="≇",O6="≉",P6="∤",R6="∦",D6="∦",z6="⫽⃥",I6="∂̸",F6="⨔",H6="⊀",q6="⋠",B6="⊀",W6="⪯̸",U6="⪯̸",V6="⤳̸",j6="↛",G6="⇏",K6="↝̸",X6="↛",Y6="⇏",Z6="⋫",J6="⋭",Q6="⊁",eV="⋡",tV="⪰̸",nV="𝒩",rV="𝓃",iV="∤",oV="∦",sV="≁",lV="≄",aV="≄",cV="∤",uV="∦",fV="⋢",dV="⋣",hV="⊄",pV="⫅̸",gV="⊈",vV="⊂⃒",mV="⊈",yV="⫅̸",bV="⊁",wV="⪰̸",xV="⊅",_V="⫆̸",SV="⊉",kV="⊃⃒",TV="⊉",CV="⫆̸",EV="≹",LV="Ñ",AV="ñ",MV="≸",NV="⋪",$V="⋬",OV="⋫",PV="⋭",RV="Ν",DV="ν",zV="#",IV="№",FV=" ",HV="≍⃒",qV="⊬",BV="⊭",WV="⊮",UV="⊯",VV="≥⃒",jV=">⃒",GV="⤄",KV="⧞",XV="⤂",YV="≤⃒",ZV="<⃒",JV="⊴⃒",QV="⤃",ej="⊵⃒",tj="∼⃒",nj="⤣",rj="↖",ij="⇖",oj="↖",sj="⤧",lj="Ó",aj="ó",cj="⊛",uj="Ô",fj="ô",dj="⊚",hj="О",pj="о",gj="⊝",vj="Ő",mj="ő",yj="⨸",bj="⊙",wj="⦼",xj="Œ",_j="œ",Sj="⦿",kj="𝔒",Tj="𝔬",Cj="˛",Ej="Ò",Lj="ò",Aj="⧁",Mj="⦵",Nj="Ω",$j="∮",Oj="↺",Pj="⦾",Rj="⦻",Dj="‾",zj="⧀",Ij="Ō",Fj="ō",Hj="Ω",qj="ω",Bj="Ο",Wj="ο",Uj="⦶",Vj="⊖",jj="𝕆",Gj="𝕠",Kj="⦷",Xj="“",Yj="‘",Zj="⦹",Jj="⊕",Qj="↻",eG="⩔",tG="∨",nG="⩝",rG="ℴ",iG="ℴ",oG="ª",sG="º",lG="⊶",aG="⩖",cG="⩗",uG="⩛",fG="Ⓢ",dG="𝒪",hG="ℴ",pG="Ø",gG="ø",vG="⊘",mG="Õ",yG="õ",bG="⨶",wG="⨷",xG="⊗",_G="Ö",SG="ö",kG="⌽",TG="‾",CG="⏞",EG="⎴",LG="⏜",AG="¶",MG="∥",NG="∥",$G="⫳",OG="⫽",PG="∂",RG="∂",DG="П",zG="п",IG="%",FG=".",HG="‰",qG="⊥",BG="‱",WG="𝔓",UG="𝔭",VG="Φ",jG="φ",GG="ϕ",KG="ℳ",XG="☎",YG="Π",ZG="π",JG="⋔",QG="ϖ",e9="ℏ",t9="ℎ",n9="ℏ",r9="⨣",i9="⊞",o9="⨢",s9="+",l9="∔",a9="⨥",c9="⩲",u9="±",f9="±",d9="⨦",h9="⨧",p9="±",g9="ℌ",v9="⨕",m9="𝕡",y9="ℙ",b9="£",w9="⪷",x9="⪻",_9="≺",S9="≼",k9="⪷",T9="≺",C9="≼",E9="≺",L9="⪯",A9="≼",M9="≾",N9="⪯",$9="⪹",O9="⪵",P9="⋨",R9="⪯",D9="⪳",z9="≾",I9="′",F9="″",H9="ℙ",q9="⪹",B9="⪵",W9="⋨",U9="∏",V9="∏",j9="⌮",G9="⌒",K9="⌓",X9="∝",Y9="∝",Z9="∷",J9="∝",Q9="≾",e7="⊰",t7="𝒫",n7="𝓅",r7="Ψ",i7="ψ",o7=" ",s7="𝔔",l7="𝔮",a7="⨌",c7="𝕢",u7="ℚ",f7="⁗",d7="𝒬",h7="𝓆",p7="ℍ",g7="⨖",v7="?",m7="≟",y7='"',b7='"',w7="⇛",x7="∽̱",_7="Ŕ",S7="ŕ",k7="√",T7="⦳",C7="⟩",E7="⟫",L7="⦒",A7="⦥",M7="⟩",N7="»",$7="⥵",O7="⇥",P7="⤠",R7="⤳",D7="→",z7="↠",I7="⇒",F7="⤞",H7="↪",q7="↬",B7="⥅",W7="⥴",U7="⤖",V7="↣",j7="↝",G7="⤚",K7="⤜",X7="∶",Y7="ℚ",Z7="⤍",J7="⤏",Q7="⤐",eK="❳",tK="}",nK="]",rK="⦌",iK="⦎",oK="⦐",sK="Ř",lK="ř",aK="Ŗ",cK="ŗ",uK="⌉",fK="}",dK="Р",hK="р",pK="⤷",gK="⥩",vK="”",mK="”",yK="↳",bK="ℜ",wK="ℛ",xK="ℜ",_K="ℝ",SK="ℜ",kK="▭",TK="®",CK="®",EK="∋",LK="⇋",AK="⥯",MK="⥽",NK="⌋",$K="𝔯",OK="ℜ",PK="⥤",RK="⇁",DK="⇀",zK="⥬",IK="Ρ",FK="ρ",HK="ϱ",qK="⟩",BK="⇥",WK="→",UK="→",VK="⇒",jK="⇄",GK="↣",KK="⌉",XK="⟧",YK="⥝",ZK="⥕",JK="⇂",QK="⌋",eX="⇁",tX="⇀",nX="⇄",rX="⇌",iX="⇉",oX="↝",sX="↦",lX="⊢",aX="⥛",cX="⋌",uX="⧐",fX="⊳",dX="⊵",hX="⥏",pX="⥜",gX="⥔",vX="↾",mX="⥓",yX="⇀",bX="˚",wX="≓",xX="⇄",_X="⇌",SX="",kX="⎱",TX="⎱",CX="⫮",EX="⟭",LX="⇾",AX="⟧",MX="⦆",NX="𝕣",$X="ℝ",OX="⨮",PX="⨵",RX="⥰",DX=")",zX="⦔",IX="⨒",FX="⇉",HX="⇛",qX="›",BX="𝓇",WX="ℛ",UX="↱",VX="↱",jX="]",GX="’",KX="’",XX="⋌",YX="⋊",ZX="▹",JX="⊵",QX="▸",eY="⧎",tY="⧴",nY="⥨",rY="℞",iY="Ś",oY="ś",sY="‚",lY="⪸",aY="Š",cY="š",uY="⪼",fY="≻",dY="≽",hY="⪰",pY="⪴",gY="Ş",vY="ş",mY="Ŝ",yY="ŝ",bY="⪺",wY="⪶",xY="⋩",_Y="⨓",SY="≿",kY="С",TY="с",CY="⊡",EY="⋅",LY="⩦",AY="⤥",MY="↘",NY="⇘",$Y="↘",OY="§",PY=";",RY="⤩",DY="∖",zY="∖",IY="✶",FY="𝔖",HY="𝔰",qY="⌢",BY="♯",WY="Щ",UY="щ",VY="Ш",jY="ш",GY="↓",KY="←",XY="∣",YY="∥",ZY="→",JY="↑",QY="",eZ="Σ",tZ="σ",nZ="ς",rZ="ς",iZ="∼",oZ="⩪",sZ="≃",lZ="≃",aZ="⪞",cZ="⪠",uZ="⪝",fZ="⪟",dZ="≆",hZ="⨤",pZ="⥲",gZ="←",vZ="∘",mZ="∖",yZ="⨳",bZ="⧤",wZ="∣",xZ="⌣",_Z="⪪",SZ="⪬",kZ="⪬︀",TZ="Ь",CZ="ь",EZ="⌿",LZ="⧄",AZ="/",MZ="𝕊",NZ="𝕤",$Z="♠",OZ="♠",PZ="∥",RZ="⊓",DZ="⊓︀",zZ="⊔",IZ="⊔︀",FZ="√",HZ="⊏",qZ="⊑",BZ="⊏",WZ="⊑",UZ="⊐",VZ="⊒",jZ="⊐",GZ="⊒",KZ="□",XZ="□",YZ="⊓",ZZ="⊏",JZ="⊑",QZ="⊐",eJ="⊒",tJ="⊔",nJ="▪",rJ="□",iJ="▪",oJ="→",sJ="𝒮",lJ="𝓈",aJ="∖",cJ="⌣",uJ="⋆",fJ="⋆",dJ="☆",hJ="★",pJ="ϵ",gJ="ϕ",vJ="¯",mJ="⊂",yJ="⋐",bJ="⪽",wJ="⫅",xJ="⊆",_J="⫃",SJ="⫁",kJ="⫋",TJ="⊊",CJ="⪿",EJ="⥹",LJ="⊂",AJ="⋐",MJ="⊆",NJ="⫅",$J="⊆",OJ="⊊",PJ="⫋",RJ="⫇",DJ="⫕",zJ="⫓",IJ="⪸",FJ="≻",HJ="≽",qJ="≻",BJ="⪰",WJ="≽",UJ="≿",VJ="⪰",jJ="⪺",GJ="⪶",KJ="⋩",XJ="≿",YJ="∋",ZJ="∑",JJ="∑",QJ="♪",eQ="¹",tQ="²",nQ="³",rQ="⊃",iQ="⋑",oQ="⪾",sQ="⫘",lQ="⫆",aQ="⊇",cQ="⫄",uQ="⊃",fQ="⊇",dQ="⟉",hQ="⫗",pQ="⥻",gQ="⫂",vQ="⫌",mQ="⊋",yQ="⫀",bQ="⊃",wQ="⋑",xQ="⊇",_Q="⫆",SQ="⊋",kQ="⫌",TQ="⫈",CQ="⫔",EQ="⫖",LQ="⤦",AQ="↙",MQ="⇙",NQ="↙",$Q="⤪",OQ="ß",PQ=" ",RQ="⌖",DQ="Τ",zQ="τ",IQ="⎴",FQ="Ť",HQ="ť",qQ="Ţ",BQ="ţ",WQ="Т",UQ="т",VQ="⃛",jQ="⌕",GQ="𝔗",KQ="𝔱",XQ="∴",YQ="∴",ZQ="∴",JQ="Θ",QQ="θ",eee="ϑ",tee="ϑ",nee="≈",ree="∼",iee=" ",oee=" ",see=" ",lee="≈",aee="∼",cee="Þ",uee="þ",fee="˜",dee="∼",hee="≃",pee="≅",gee="≈",vee="⨱",mee="⊠",yee="×",bee="⨰",wee="∭",xee="⤨",_ee="⌶",See="⫱",kee="⊤",Tee="𝕋",Cee="𝕥",Eee="⫚",Lee="⤩",Aee="‴",Mee="™",Nee="™",$ee="▵",Oee="▿",Pee="◃",Ree="⊴",Dee="≜",zee="▹",Iee="⊵",Fee="◬",Hee="≜",qee="⨺",Bee="⃛",Wee="⨹",Uee="⧍",Vee="⨻",jee="⏢",Gee="𝒯",Kee="𝓉",Xee="Ц",Yee="ц",Zee="Ћ",Jee="ћ",Qee="Ŧ",ete="ŧ",tte="≬",nte="↞",rte="↠",ite="Ú",ote="ú",ste="↑",lte="↟",ate="⇑",cte="⥉",ute="Ў",fte="ў",dte="Ŭ",hte="ŭ",pte="Û",gte="û",vte="У",mte="у",yte="⇅",bte="Ű",wte="ű",xte="⥮",_te="⥾",Ste="𝔘",kte="𝔲",Tte="Ù",Cte="ù",Ete="⥣",Lte="↿",Ate="↾",Mte="▀",Nte="⌜",$te="⌜",Ote="⌏",Pte="◸",Rte="Ū",Dte="ū",zte="¨",Ite="_",Fte="⏟",Hte="⎵",qte="⏝",Bte="⋃",Wte="⊎",Ute="Ų",Vte="ų",jte="𝕌",Gte="𝕦",Kte="⤒",Xte="↑",Yte="↑",Zte="⇑",Jte="⇅",Qte="↕",ene="↕",tne="⇕",nne="⥮",rne="↿",ine="↾",one="⊎",sne="↖",lne="↗",ane="υ",cne="ϒ",une="ϒ",fne="Υ",dne="υ",hne="↥",pne="⊥",gne="⇈",vne="⌝",mne="⌝",yne="⌎",bne="Ů",wne="ů",xne="◹",_ne="𝒰",Sne="𝓊",kne="⋰",Tne="Ũ",Cne="ũ",Ene="▵",Lne="▴",Ane="⇈",Mne="Ü",Nne="ü",$ne="⦧",One="⦜",Pne="ϵ",Rne="ϰ",Dne="∅",zne="ϕ",Ine="ϖ",Fne="∝",Hne="↕",qne="⇕",Bne="ϱ",Wne="ς",Une="⊊︀",Vne="⫋︀",jne="⊋︀",Gne="⫌︀",Kne="ϑ",Xne="⊲",Yne="⊳",Zne="⫨",Jne="⫫",Qne="⫩",ere="В",tre="в",nre="⊢",rre="⊨",ire="⊩",ore="⊫",sre="⫦",lre="⊻",are="∨",cre="⋁",ure="≚",fre="⋮",dre="|",hre="‖",pre="|",gre="‖",vre="∣",mre="|",yre="❘",bre="≀",wre=" ",xre="𝔙",_re="𝔳",Sre="⊲",kre="⊂⃒",Tre="⊃⃒",Cre="𝕍",Ere="𝕧",Lre="∝",Are="⊳",Mre="𝒱",Nre="𝓋",$re="⫋︀",Ore="⊊︀",Pre="⫌︀",Rre="⊋︀",Dre="⊪",zre="⦚",Ire="Ŵ",Fre="ŵ",Hre="⩟",qre="∧",Bre="⋀",Wre="≙",Ure="℘",Vre="𝔚",jre="𝔴",Gre="𝕎",Kre="𝕨",Xre="℘",Yre="≀",Zre="≀",Jre="𝒲",Qre="𝓌",eie="⋂",tie="◯",nie="⋃",rie="▽",iie="𝔛",oie="𝔵",sie="⟷",lie="⟺",aie="Ξ",cie="ξ",uie="⟵",fie="⟸",die="⟼",hie="⋻",pie="⨀",gie="𝕏",vie="𝕩",mie="⨁",yie="⨂",bie="⟶",wie="⟹",xie="𝒳",_ie="𝓍",Sie="⨆",kie="⨄",Tie="△",Cie="⋁",Eie="⋀",Lie="Ý",Aie="ý",Mie="Я",Nie="я",$ie="Ŷ",Oie="ŷ",Pie="Ы",Rie="ы",Die="¥",zie="𝔜",Iie="𝔶",Fie="Ї",Hie="ї",qie="𝕐",Bie="𝕪",Wie="𝒴",Uie="𝓎",Vie="Ю",jie="ю",Gie="ÿ",Kie="Ÿ",Xie="Ź",Yie="ź",Zie="Ž",Jie="ž",Qie="З",eoe="з",toe="Ż",noe="ż",roe="ℨ",ioe="",ooe="Ζ",soe="ζ",loe="𝔷",aoe="ℨ",coe="Ж",uoe="ж",foe="⇝",doe="𝕫",hoe="ℤ",poe="𝒵",goe="𝓏",voe="",moe="",Vb={Aacute:tL,aacute:nL,Abreve:rL,abreve:iL,ac:oL,acd:sL,acE:lL,Acirc:aL,acirc:cL,acute:uL,Acy:fL,acy:dL,AElig:hL,aelig:pL,af:gL,Afr:vL,afr:mL,Agrave:yL,agrave:bL,alefsym:wL,aleph:xL,Alpha:_L,alpha:SL,Amacr:kL,amacr:TL,amalg:CL,amp:EL,AMP:LL,andand:AL,And:ML,and:NL,andd:$L,andslope:OL,andv:PL,ang:RL,ange:DL,angle:zL,angmsdaa:IL,angmsdab:FL,angmsdac:HL,angmsdad:qL,angmsdae:BL,angmsdaf:WL,angmsdag:UL,angmsdah:VL,angmsd:jL,angrt:GL,angrtvb:KL,angrtvbd:XL,angsph:YL,angst:ZL,angzarr:JL,Aogon:QL,aogon:eA,Aopf:tA,aopf:nA,apacir:rA,ap:iA,apE:oA,ape:sA,apid:lA,apos:aA,ApplyFunction:cA,approx:uA,approxeq:fA,Aring:dA,aring:hA,Ascr:pA,ascr:gA,Assign:vA,ast:mA,asymp:yA,asympeq:bA,Atilde:wA,atilde:xA,Auml:_A,auml:SA,awconint:kA,awint:TA,backcong:CA,backepsilon:EA,backprime:LA,backsim:AA,backsimeq:MA,Backslash:NA,Barv:$A,barvee:OA,barwed:PA,Barwed:RA,barwedge:DA,bbrk:zA,bbrktbrk:IA,bcong:FA,Bcy:HA,bcy:qA,bdquo:BA,becaus:WA,because:UA,Because:VA,bemptyv:jA,bepsi:GA,bernou:KA,Bernoullis:XA,Beta:YA,beta:ZA,beth:JA,between:QA,Bfr:eM,bfr:tM,bigcap:nM,bigcirc:rM,bigcup:iM,bigodot:oM,bigoplus:sM,bigotimes:lM,bigsqcup:aM,bigstar:cM,bigtriangledown:uM,bigtriangleup:fM,biguplus:dM,bigvee:hM,bigwedge:pM,bkarow:gM,blacklozenge:vM,blacksquare:mM,blacktriangle:yM,blacktriangledown:bM,blacktriangleleft:wM,blacktriangleright:xM,blank:_M,blk12:SM,blk14:kM,blk34:TM,block:CM,bne:EM,bnequiv:LM,bNot:AM,bnot:MM,Bopf:NM,bopf:$M,bot:OM,bottom:PM,bowtie:RM,boxbox:DM,boxdl:zM,boxdL:IM,boxDl:FM,boxDL:HM,boxdr:qM,boxdR:BM,boxDr:WM,boxDR:UM,boxh:VM,boxH:jM,boxhd:GM,boxHd:KM,boxhD:XM,boxHD:YM,boxhu:ZM,boxHu:JM,boxhU:QM,boxHU:eN,boxminus:tN,boxplus:nN,boxtimes:rN,boxul:iN,boxuL:oN,boxUl:sN,boxUL:lN,boxur:aN,boxuR:cN,boxUr:uN,boxUR:fN,boxv:dN,boxV:hN,boxvh:pN,boxvH:gN,boxVh:vN,boxVH:mN,boxvl:yN,boxvL:bN,boxVl:wN,boxVL:xN,boxvr:_N,boxvR:SN,boxVr:kN,boxVR:TN,bprime:CN,breve:EN,Breve:LN,brvbar:AN,bscr:MN,Bscr:NN,bsemi:$N,bsim:ON,bsime:PN,bsolb:RN,bsol:DN,bsolhsub:zN,bull:IN,bullet:FN,bump:HN,bumpE:qN,bumpe:BN,Bumpeq:WN,bumpeq:UN,Cacute:VN,cacute:jN,capand:GN,capbrcup:KN,capcap:XN,cap:YN,Cap:ZN,capcup:JN,capdot:QN,CapitalDifferentialD:e$,caps:t$,caret:n$,caron:r$,Cayleys:i$,ccaps:o$,Ccaron:s$,ccaron:l$,Ccedil:a$,ccedil:c$,Ccirc:u$,ccirc:f$,Cconint:d$,ccups:h$,ccupssm:p$,Cdot:g$,cdot:v$,cedil:m$,Cedilla:y$,cemptyv:b$,cent:w$,centerdot:x$,CenterDot:_$,cfr:S$,Cfr:k$,CHcy:T$,chcy:C$,check:E$,checkmark:L$,Chi:A$,chi:M$,circ:N$,circeq:$$,circlearrowleft:O$,circlearrowright:P$,circledast:R$,circledcirc:D$,circleddash:z$,CircleDot:I$,circledR:F$,circledS:H$,CircleMinus:q$,CirclePlus:B$,CircleTimes:W$,cir:U$,cirE:V$,cire:j$,cirfnint:G$,cirmid:K$,cirscir:X$,ClockwiseContourIntegral:Y$,CloseCurlyDoubleQuote:Z$,CloseCurlyQuote:J$,clubs:Q$,clubsuit:eO,colon:tO,Colon:nO,Colone:rO,colone:iO,coloneq:oO,comma:sO,commat:lO,comp:aO,compfn:cO,complement:uO,complexes:fO,cong:dO,congdot:hO,Congruent:pO,conint:gO,Conint:vO,ContourIntegral:mO,copf:yO,Copf:bO,coprod:wO,Coproduct:xO,copy:_O,COPY:SO,copysr:kO,CounterClockwiseContourIntegral:TO,crarr:CO,cross:EO,Cross:LO,Cscr:AO,cscr:MO,csub:NO,csube:$O,csup:OO,csupe:PO,ctdot:RO,cudarrl:DO,cudarrr:zO,cuepr:IO,cuesc:FO,cularr:HO,cularrp:qO,cupbrcap:BO,cupcap:WO,CupCap:UO,cup:VO,Cup:jO,cupcup:GO,cupdot:KO,cupor:XO,cups:YO,curarr:ZO,curarrm:JO,curlyeqprec:QO,curlyeqsucc:eP,curlyvee:tP,curlywedge:nP,curren:rP,curvearrowleft:iP,curvearrowright:oP,cuvee:sP,cuwed:lP,cwconint:aP,cwint:cP,cylcty:uP,dagger:fP,Dagger:dP,daleth:hP,darr:pP,Darr:gP,dArr:vP,dash:mP,Dashv:yP,dashv:bP,dbkarow:wP,dblac:xP,Dcaron:_P,dcaron:SP,Dcy:kP,dcy:TP,ddagger:CP,ddarr:EP,DD:LP,dd:AP,DDotrahd:MP,ddotseq:NP,deg:$P,Del:OP,Delta:PP,delta:RP,demptyv:DP,dfisht:zP,Dfr:IP,dfr:FP,dHar:HP,dharl:qP,dharr:BP,DiacriticalAcute:WP,DiacriticalDot:UP,DiacriticalDoubleAcute:VP,DiacriticalGrave:jP,DiacriticalTilde:GP,diam:KP,diamond:XP,Diamond:YP,diamondsuit:ZP,diams:JP,die:QP,DifferentialD:eR,digamma:tR,disin:nR,div:rR,divide:iR,divideontimes:oR,divonx:sR,DJcy:lR,djcy:aR,dlcorn:cR,dlcrop:uR,dollar:fR,Dopf:dR,dopf:hR,Dot:pR,dot:gR,DotDot:vR,doteq:mR,doteqdot:yR,DotEqual:bR,dotminus:wR,dotplus:xR,dotsquare:_R,doublebarwedge:SR,DoubleContourIntegral:kR,DoubleDot:TR,DoubleDownArrow:CR,DoubleLeftArrow:ER,DoubleLeftRightArrow:LR,DoubleLeftTee:AR,DoubleLongLeftArrow:MR,DoubleLongLeftRightArrow:NR,DoubleLongRightArrow:$R,DoubleRightArrow:OR,DoubleRightTee:PR,DoubleUpArrow:RR,DoubleUpDownArrow:DR,DoubleVerticalBar:zR,DownArrowBar:IR,downarrow:FR,DownArrow:HR,Downarrow:qR,DownArrowUpArrow:BR,DownBreve:WR,downdownarrows:UR,downharpoonleft:VR,downharpoonright:jR,DownLeftRightVector:GR,DownLeftTeeVector:KR,DownLeftVectorBar:XR,DownLeftVector:YR,DownRightTeeVector:ZR,DownRightVectorBar:JR,DownRightVector:QR,DownTeeArrow:eD,DownTee:tD,drbkarow:nD,drcorn:rD,drcrop:iD,Dscr:oD,dscr:sD,DScy:lD,dscy:aD,dsol:cD,Dstrok:uD,dstrok:fD,dtdot:dD,dtri:hD,dtrif:pD,duarr:gD,duhar:vD,dwangle:mD,DZcy:yD,dzcy:bD,dzigrarr:wD,Eacute:xD,eacute:_D,easter:SD,Ecaron:kD,ecaron:TD,Ecirc:CD,ecirc:ED,ecir:LD,ecolon:AD,Ecy:MD,ecy:ND,eDDot:$D,Edot:OD,edot:PD,eDot:RD,ee:DD,efDot:zD,Efr:ID,efr:FD,eg:HD,Egrave:qD,egrave:BD,egs:WD,egsdot:UD,el:VD,Element:jD,elinters:GD,ell:KD,els:XD,elsdot:YD,Emacr:ZD,emacr:JD,empty:QD,emptyset:e2,EmptySmallSquare:t2,emptyv:n2,EmptyVerySmallSquare:r2,emsp13:i2,emsp14:o2,emsp:s2,ENG:l2,eng:a2,ensp:c2,Eogon:u2,eogon:f2,Eopf:d2,eopf:h2,epar:p2,eparsl:g2,eplus:v2,epsi:m2,Epsilon:y2,epsilon:b2,epsiv:w2,eqcirc:x2,eqcolon:_2,eqsim:S2,eqslantgtr:k2,eqslantless:T2,Equal:C2,equals:E2,EqualTilde:L2,equest:A2,Equilibrium:M2,equiv:N2,equivDD:$2,eqvparsl:O2,erarr:P2,erDot:R2,escr:D2,Escr:z2,esdot:I2,Esim:F2,esim:H2,Eta:q2,eta:B2,ETH:W2,eth:U2,Euml:V2,euml:j2,euro:G2,excl:K2,exist:X2,Exists:Y2,expectation:Z2,exponentiale:J2,ExponentialE:Q2,fallingdotseq:ez,Fcy:tz,fcy:nz,female:rz,ffilig:iz,fflig:oz,ffllig:sz,Ffr:lz,ffr:az,filig:cz,FilledSmallSquare:uz,FilledVerySmallSquare:fz,fjlig:dz,flat:hz,fllig:pz,fltns:gz,fnof:vz,Fopf:mz,fopf:yz,forall:bz,ForAll:wz,fork:xz,forkv:_z,Fouriertrf:Sz,fpartint:kz,frac12:Tz,frac13:Cz,frac14:Ez,frac15:Lz,frac16:Az,frac18:Mz,frac23:Nz,frac25:$z,frac34:Oz,frac35:Pz,frac38:Rz,frac45:Dz,frac56:zz,frac58:Iz,frac78:Fz,frasl:Hz,frown:qz,fscr:Bz,Fscr:Wz,gacute:Uz,Gamma:Vz,gamma:jz,Gammad:Gz,gammad:Kz,gap:Xz,Gbreve:Yz,gbreve:Zz,Gcedil:Jz,Gcirc:Qz,gcirc:eI,Gcy:tI,gcy:nI,Gdot:rI,gdot:iI,ge:oI,gE:sI,gEl:lI,gel:aI,geq:cI,geqq:uI,geqslant:fI,gescc:dI,ges:hI,gesdot:pI,gesdoto:gI,gesdotol:vI,gesl:mI,gesles:yI,Gfr:bI,gfr:wI,gg:xI,Gg:_I,ggg:SI,gimel:kI,GJcy:TI,gjcy:CI,gla:EI,gl:LI,glE:AI,glj:MI,gnap:NI,gnapprox:$I,gne:OI,gnE:PI,gneq:RI,gneqq:DI,gnsim:zI,Gopf:II,gopf:FI,grave:HI,GreaterEqual:qI,GreaterEqualLess:BI,GreaterFullEqual:WI,GreaterGreater:UI,GreaterLess:VI,GreaterSlantEqual:jI,GreaterTilde:GI,Gscr:KI,gscr:XI,gsim:YI,gsime:ZI,gsiml:JI,gtcc:QI,gtcir:eF,gt:tF,GT:nF,Gt:rF,gtdot:iF,gtlPar:oF,gtquest:sF,gtrapprox:lF,gtrarr:aF,gtrdot:cF,gtreqless:uF,gtreqqless:fF,gtrless:dF,gtrsim:hF,gvertneqq:pF,gvnE:gF,Hacek:vF,hairsp:mF,half:yF,hamilt:bF,HARDcy:wF,hardcy:xF,harrcir:_F,harr:SF,hArr:kF,harrw:TF,Hat:CF,hbar:EF,Hcirc:LF,hcirc:AF,hearts:MF,heartsuit:NF,hellip:$F,hercon:OF,hfr:PF,Hfr:RF,HilbertSpace:DF,hksearow:zF,hkswarow:IF,hoarr:FF,homtht:HF,hookleftarrow:qF,hookrightarrow:BF,hopf:WF,Hopf:UF,horbar:VF,HorizontalLine:jF,hscr:GF,Hscr:KF,hslash:XF,Hstrok:YF,hstrok:ZF,HumpDownHump:JF,HumpEqual:QF,hybull:eH,hyphen:tH,Iacute:nH,iacute:rH,ic:iH,Icirc:oH,icirc:sH,Icy:lH,icy:aH,Idot:cH,IEcy:uH,iecy:fH,iexcl:dH,iff:hH,ifr:pH,Ifr:gH,Igrave:vH,igrave:mH,ii:yH,iiiint:bH,iiint:wH,iinfin:xH,iiota:_H,IJlig:SH,ijlig:kH,Imacr:TH,imacr:CH,image:EH,ImaginaryI:LH,imagline:AH,imagpart:MH,imath:NH,Im:$H,imof:OH,imped:PH,Implies:RH,incare:DH,in:"∈",infin:zH,infintie:IH,inodot:FH,intcal:HH,int:qH,Int:BH,integers:WH,Integral:UH,intercal:VH,Intersection:jH,intlarhk:GH,intprod:KH,InvisibleComma:XH,InvisibleTimes:YH,IOcy:ZH,iocy:JH,Iogon:QH,iogon:eq,Iopf:tq,iopf:nq,Iota:rq,iota:iq,iprod:oq,iquest:sq,iscr:lq,Iscr:aq,isin:cq,isindot:uq,isinE:fq,isins:dq,isinsv:hq,isinv:pq,it:gq,Itilde:vq,itilde:mq,Iukcy:yq,iukcy:bq,Iuml:wq,iuml:xq,Jcirc:_q,jcirc:Sq,Jcy:kq,jcy:Tq,Jfr:Cq,jfr:Eq,jmath:Lq,Jopf:Aq,jopf:Mq,Jscr:Nq,jscr:$q,Jsercy:Oq,jsercy:Pq,Jukcy:Rq,jukcy:Dq,Kappa:zq,kappa:Iq,kappav:Fq,Kcedil:Hq,kcedil:qq,Kcy:Bq,kcy:Wq,Kfr:Uq,kfr:Vq,kgreen:jq,KHcy:Gq,khcy:Kq,KJcy:Xq,kjcy:Yq,Kopf:Zq,kopf:Jq,Kscr:Qq,kscr:eB,lAarr:tB,Lacute:nB,lacute:rB,laemptyv:iB,lagran:oB,Lambda:sB,lambda:lB,lang:aB,Lang:cB,langd:uB,langle:fB,lap:dB,Laplacetrf:hB,laquo:pB,larrb:gB,larrbfs:vB,larr:mB,Larr:yB,lArr:bB,larrfs:wB,larrhk:xB,larrlp:_B,larrpl:SB,larrsim:kB,larrtl:TB,latail:CB,lAtail:EB,lat:LB,late:AB,lates:MB,lbarr:NB,lBarr:$B,lbbrk:OB,lbrace:PB,lbrack:RB,lbrke:DB,lbrksld:zB,lbrkslu:IB,Lcaron:FB,lcaron:HB,Lcedil:qB,lcedil:BB,lceil:WB,lcub:UB,Lcy:VB,lcy:jB,ldca:GB,ldquo:KB,ldquor:XB,ldrdhar:YB,ldrushar:ZB,ldsh:JB,le:QB,lE:e3,LeftAngleBracket:t3,LeftArrowBar:n3,leftarrow:r3,LeftArrow:i3,Leftarrow:o3,LeftArrowRightArrow:s3,leftarrowtail:l3,LeftCeiling:a3,LeftDoubleBracket:c3,LeftDownTeeVector:u3,LeftDownVectorBar:f3,LeftDownVector:d3,LeftFloor:h3,leftharpoondown:p3,leftharpoonup:g3,leftleftarrows:v3,leftrightarrow:m3,LeftRightArrow:y3,Leftrightarrow:b3,leftrightarrows:w3,leftrightharpoons:x3,leftrightsquigarrow:_3,LeftRightVector:S3,LeftTeeArrow:k3,LeftTee:T3,LeftTeeVector:C3,leftthreetimes:E3,LeftTriangleBar:L3,LeftTriangle:A3,LeftTriangleEqual:M3,LeftUpDownVector:N3,LeftUpTeeVector:$3,LeftUpVectorBar:O3,LeftUpVector:P3,LeftVectorBar:R3,LeftVector:D3,lEg:z3,leg:I3,leq:F3,leqq:H3,leqslant:q3,lescc:B3,les:W3,lesdot:U3,lesdoto:V3,lesdotor:j3,lesg:G3,lesges:K3,lessapprox:X3,lessdot:Y3,lesseqgtr:Z3,lesseqqgtr:J3,LessEqualGreater:Q3,LessFullEqual:e5,LessGreater:t5,lessgtr:n5,LessLess:r5,lesssim:i5,LessSlantEqual:o5,LessTilde:s5,lfisht:l5,lfloor:a5,Lfr:c5,lfr:u5,lg:f5,lgE:d5,lHar:h5,lhard:p5,lharu:g5,lharul:v5,lhblk:m5,LJcy:y5,ljcy:b5,llarr:w5,ll:x5,Ll:_5,llcorner:S5,Lleftarrow:k5,llhard:T5,lltri:C5,Lmidot:E5,lmidot:L5,lmoustache:A5,lmoust:M5,lnap:N5,lnapprox:$5,lne:O5,lnE:P5,lneq:R5,lneqq:D5,lnsim:z5,loang:I5,loarr:F5,lobrk:H5,longleftarrow:q5,LongLeftArrow:B5,Longleftarrow:W5,longleftrightarrow:U5,LongLeftRightArrow:V5,Longleftrightarrow:j5,longmapsto:G5,longrightarrow:K5,LongRightArrow:X5,Longrightarrow:Y5,looparrowleft:Z5,looparrowright:J5,lopar:Q5,Lopf:e8,lopf:t8,loplus:n8,lotimes:r8,lowast:i8,lowbar:o8,LowerLeftArrow:s8,LowerRightArrow:l8,loz:a8,lozenge:c8,lozf:u8,lpar:f8,lparlt:d8,lrarr:h8,lrcorner:p8,lrhar:g8,lrhard:v8,lrm:m8,lrtri:y8,lsaquo:b8,lscr:w8,Lscr:x8,lsh:_8,Lsh:S8,lsim:k8,lsime:T8,lsimg:C8,lsqb:E8,lsquo:L8,lsquor:A8,Lstrok:M8,lstrok:N8,ltcc:$8,ltcir:O8,lt:P8,LT:R8,Lt:D8,ltdot:z8,lthree:I8,ltimes:F8,ltlarr:H8,ltquest:q8,ltri:B8,ltrie:W8,ltrif:U8,ltrPar:V8,lurdshar:j8,luruhar:G8,lvertneqq:K8,lvnE:X8,macr:Y8,male:Z8,malt:J8,maltese:Q8,Map:"⤅",map:e4,mapsto:t4,mapstodown:n4,mapstoleft:r4,mapstoup:i4,marker:o4,mcomma:s4,Mcy:l4,mcy:a4,mdash:c4,mDDot:u4,measuredangle:f4,MediumSpace:d4,Mellintrf:h4,Mfr:p4,mfr:g4,mho:v4,micro:m4,midast:y4,midcir:b4,mid:w4,middot:x4,minusb:_4,minus:S4,minusd:k4,minusdu:T4,MinusPlus:C4,mlcp:E4,mldr:L4,mnplus:A4,models:M4,Mopf:N4,mopf:$4,mp:O4,mscr:P4,Mscr:R4,mstpos:D4,Mu:z4,mu:I4,multimap:F4,mumap:H4,nabla:q4,Nacute:B4,nacute:W4,nang:U4,nap:V4,napE:j4,napid:G4,napos:K4,napprox:X4,natural:Y4,naturals:Z4,natur:J4,nbsp:Q4,nbump:eW,nbumpe:tW,ncap:nW,Ncaron:rW,ncaron:iW,Ncedil:oW,ncedil:sW,ncong:lW,ncongdot:aW,ncup:cW,Ncy:uW,ncy:fW,ndash:dW,nearhk:hW,nearr:pW,neArr:gW,nearrow:vW,ne:mW,nedot:yW,NegativeMediumSpace:bW,NegativeThickSpace:wW,NegativeThinSpace:xW,NegativeVeryThinSpace:_W,nequiv:SW,nesear:kW,nesim:TW,NestedGreaterGreater:CW,NestedLessLess:EW,NewLine:LW,nexist:AW,nexists:MW,Nfr:NW,nfr:$W,ngE:OW,nge:PW,ngeq:RW,ngeqq:DW,ngeqslant:zW,nges:IW,nGg:FW,ngsim:HW,nGt:qW,ngt:BW,ngtr:WW,nGtv:UW,nharr:VW,nhArr:jW,nhpar:GW,ni:KW,nis:XW,nisd:YW,niv:ZW,NJcy:JW,njcy:QW,nlarr:eU,nlArr:tU,nldr:nU,nlE:rU,nle:iU,nleftarrow:oU,nLeftarrow:sU,nleftrightarrow:lU,nLeftrightarrow:aU,nleq:cU,nleqq:uU,nleqslant:fU,nles:dU,nless:hU,nLl:pU,nlsim:gU,nLt:vU,nlt:mU,nltri:yU,nltrie:bU,nLtv:wU,nmid:xU,NoBreak:_U,NonBreakingSpace:SU,nopf:kU,Nopf:TU,Not:CU,not:EU,NotCongruent:LU,NotCupCap:AU,NotDoubleVerticalBar:MU,NotElement:NU,NotEqual:$U,NotEqualTilde:OU,NotExists:PU,NotGreater:RU,NotGreaterEqual:DU,NotGreaterFullEqual:zU,NotGreaterGreater:IU,NotGreaterLess:FU,NotGreaterSlantEqual:HU,NotGreaterTilde:qU,NotHumpDownHump:BU,NotHumpEqual:WU,notin:UU,notindot:VU,notinE:jU,notinva:GU,notinvb:KU,notinvc:XU,NotLeftTriangleBar:YU,NotLeftTriangle:ZU,NotLeftTriangleEqual:JU,NotLess:QU,NotLessEqual:e6,NotLessGreater:t6,NotLessLess:n6,NotLessSlantEqual:r6,NotLessTilde:i6,NotNestedGreaterGreater:o6,NotNestedLessLess:s6,notni:l6,notniva:a6,notnivb:c6,notnivc:u6,NotPrecedes:f6,NotPrecedesEqual:d6,NotPrecedesSlantEqual:h6,NotReverseElement:p6,NotRightTriangleBar:g6,NotRightTriangle:v6,NotRightTriangleEqual:m6,NotSquareSubset:y6,NotSquareSubsetEqual:b6,NotSquareSuperset:w6,NotSquareSupersetEqual:x6,NotSubset:_6,NotSubsetEqual:S6,NotSucceeds:k6,NotSucceedsEqual:T6,NotSucceedsSlantEqual:C6,NotSucceedsTilde:E6,NotSuperset:L6,NotSupersetEqual:A6,NotTilde:M6,NotTildeEqual:N6,NotTildeFullEqual:$6,NotTildeTilde:O6,NotVerticalBar:P6,nparallel:R6,npar:D6,nparsl:z6,npart:I6,npolint:F6,npr:H6,nprcue:q6,nprec:B6,npreceq:W6,npre:U6,nrarrc:V6,nrarr:j6,nrArr:G6,nrarrw:K6,nrightarrow:X6,nRightarrow:Y6,nrtri:Z6,nrtrie:J6,nsc:Q6,nsccue:eV,nsce:tV,Nscr:nV,nscr:rV,nshortmid:iV,nshortparallel:oV,nsim:sV,nsime:lV,nsimeq:aV,nsmid:cV,nspar:uV,nsqsube:fV,nsqsupe:dV,nsub:hV,nsubE:pV,nsube:gV,nsubset:vV,nsubseteq:mV,nsubseteqq:yV,nsucc:bV,nsucceq:wV,nsup:xV,nsupE:_V,nsupe:SV,nsupset:kV,nsupseteq:TV,nsupseteqq:CV,ntgl:EV,Ntilde:LV,ntilde:AV,ntlg:MV,ntriangleleft:NV,ntrianglelefteq:$V,ntriangleright:OV,ntrianglerighteq:PV,Nu:RV,nu:DV,num:zV,numero:IV,numsp:FV,nvap:HV,nvdash:qV,nvDash:BV,nVdash:WV,nVDash:UV,nvge:VV,nvgt:jV,nvHarr:GV,nvinfin:KV,nvlArr:XV,nvle:YV,nvlt:ZV,nvltrie:JV,nvrArr:QV,nvrtrie:ej,nvsim:tj,nwarhk:nj,nwarr:rj,nwArr:ij,nwarrow:oj,nwnear:sj,Oacute:lj,oacute:aj,oast:cj,Ocirc:uj,ocirc:fj,ocir:dj,Ocy:hj,ocy:pj,odash:gj,Odblac:vj,odblac:mj,odiv:yj,odot:bj,odsold:wj,OElig:xj,oelig:_j,ofcir:Sj,Ofr:kj,ofr:Tj,ogon:Cj,Ograve:Ej,ograve:Lj,ogt:Aj,ohbar:Mj,ohm:Nj,oint:$j,olarr:Oj,olcir:Pj,olcross:Rj,oline:Dj,olt:zj,Omacr:Ij,omacr:Fj,Omega:Hj,omega:qj,Omicron:Bj,omicron:Wj,omid:Uj,ominus:Vj,Oopf:jj,oopf:Gj,opar:Kj,OpenCurlyDoubleQuote:Xj,OpenCurlyQuote:Yj,operp:Zj,oplus:Jj,orarr:Qj,Or:eG,or:tG,ord:nG,order:rG,orderof:iG,ordf:oG,ordm:sG,origof:lG,oror:aG,orslope:cG,orv:uG,oS:fG,Oscr:dG,oscr:hG,Oslash:pG,oslash:gG,osol:vG,Otilde:mG,otilde:yG,otimesas:bG,Otimes:wG,otimes:xG,Ouml:_G,ouml:SG,ovbar:kG,OverBar:TG,OverBrace:CG,OverBracket:EG,OverParenthesis:LG,para:AG,parallel:MG,par:NG,parsim:$G,parsl:OG,part:PG,PartialD:RG,Pcy:DG,pcy:zG,percnt:IG,period:FG,permil:HG,perp:qG,pertenk:BG,Pfr:WG,pfr:UG,Phi:VG,phi:jG,phiv:GG,phmmat:KG,phone:XG,Pi:YG,pi:ZG,pitchfork:JG,piv:QG,planck:e9,planckh:t9,plankv:n9,plusacir:r9,plusb:i9,pluscir:o9,plus:s9,plusdo:l9,plusdu:a9,pluse:c9,PlusMinus:u9,plusmn:f9,plussim:d9,plustwo:h9,pm:p9,Poincareplane:g9,pointint:v9,popf:m9,Popf:y9,pound:b9,prap:w9,Pr:x9,pr:_9,prcue:S9,precapprox:k9,prec:T9,preccurlyeq:C9,Precedes:E9,PrecedesEqual:L9,PrecedesSlantEqual:A9,PrecedesTilde:M9,preceq:N9,precnapprox:$9,precneqq:O9,precnsim:P9,pre:R9,prE:D9,precsim:z9,prime:I9,Prime:F9,primes:H9,prnap:q9,prnE:B9,prnsim:W9,prod:U9,Product:V9,profalar:j9,profline:G9,profsurf:K9,prop:X9,Proportional:Y9,Proportion:Z9,propto:J9,prsim:Q9,prurel:e7,Pscr:t7,pscr:n7,Psi:r7,psi:i7,puncsp:o7,Qfr:s7,qfr:l7,qint:a7,qopf:c7,Qopf:u7,qprime:f7,Qscr:d7,qscr:h7,quaternions:p7,quatint:g7,quest:v7,questeq:m7,quot:y7,QUOT:b7,rAarr:w7,race:x7,Racute:_7,racute:S7,radic:k7,raemptyv:T7,rang:C7,Rang:E7,rangd:L7,range:A7,rangle:M7,raquo:N7,rarrap:$7,rarrb:O7,rarrbfs:P7,rarrc:R7,rarr:D7,Rarr:z7,rArr:I7,rarrfs:F7,rarrhk:H7,rarrlp:q7,rarrpl:B7,rarrsim:W7,Rarrtl:U7,rarrtl:V7,rarrw:j7,ratail:G7,rAtail:K7,ratio:X7,rationals:Y7,rbarr:Z7,rBarr:J7,RBarr:Q7,rbbrk:eK,rbrace:tK,rbrack:nK,rbrke:rK,rbrksld:iK,rbrkslu:oK,Rcaron:sK,rcaron:lK,Rcedil:aK,rcedil:cK,rceil:uK,rcub:fK,Rcy:dK,rcy:hK,rdca:pK,rdldhar:gK,rdquo:vK,rdquor:mK,rdsh:yK,real:bK,realine:wK,realpart:xK,reals:_K,Re:SK,rect:kK,reg:TK,REG:CK,ReverseElement:EK,ReverseEquilibrium:LK,ReverseUpEquilibrium:AK,rfisht:MK,rfloor:NK,rfr:$K,Rfr:OK,rHar:PK,rhard:RK,rharu:DK,rharul:zK,Rho:IK,rho:FK,rhov:HK,RightAngleBracket:qK,RightArrowBar:BK,rightarrow:WK,RightArrow:UK,Rightarrow:VK,RightArrowLeftArrow:jK,rightarrowtail:GK,RightCeiling:KK,RightDoubleBracket:XK,RightDownTeeVector:YK,RightDownVectorBar:ZK,RightDownVector:JK,RightFloor:QK,rightharpoondown:eX,rightharpoonup:tX,rightleftarrows:nX,rightleftharpoons:rX,rightrightarrows:iX,rightsquigarrow:oX,RightTeeArrow:sX,RightTee:lX,RightTeeVector:aX,rightthreetimes:cX,RightTriangleBar:uX,RightTriangle:fX,RightTriangleEqual:dX,RightUpDownVector:hX,RightUpTeeVector:pX,RightUpVectorBar:gX,RightUpVector:vX,RightVectorBar:mX,RightVector:yX,ring:bX,risingdotseq:wX,rlarr:xX,rlhar:_X,rlm:SX,rmoustache:kX,rmoust:TX,rnmid:CX,roang:EX,roarr:LX,robrk:AX,ropar:MX,ropf:NX,Ropf:$X,roplus:OX,rotimes:PX,RoundImplies:RX,rpar:DX,rpargt:zX,rppolint:IX,rrarr:FX,Rrightarrow:HX,rsaquo:qX,rscr:BX,Rscr:WX,rsh:UX,Rsh:VX,rsqb:jX,rsquo:GX,rsquor:KX,rthree:XX,rtimes:YX,rtri:ZX,rtrie:JX,rtrif:QX,rtriltri:eY,RuleDelayed:tY,ruluhar:nY,rx:rY,Sacute:iY,sacute:oY,sbquo:sY,scap:lY,Scaron:aY,scaron:cY,Sc:uY,sc:fY,sccue:dY,sce:hY,scE:pY,Scedil:gY,scedil:vY,Scirc:mY,scirc:yY,scnap:bY,scnE:wY,scnsim:xY,scpolint:_Y,scsim:SY,Scy:kY,scy:TY,sdotb:CY,sdot:EY,sdote:LY,searhk:AY,searr:MY,seArr:NY,searrow:$Y,sect:OY,semi:PY,seswar:RY,setminus:DY,setmn:zY,sext:IY,Sfr:FY,sfr:HY,sfrown:qY,sharp:BY,SHCHcy:WY,shchcy:UY,SHcy:VY,shcy:jY,ShortDownArrow:GY,ShortLeftArrow:KY,shortmid:XY,shortparallel:YY,ShortRightArrow:ZY,ShortUpArrow:JY,shy:QY,Sigma:eZ,sigma:tZ,sigmaf:nZ,sigmav:rZ,sim:iZ,simdot:oZ,sime:sZ,simeq:lZ,simg:aZ,simgE:cZ,siml:uZ,simlE:fZ,simne:dZ,simplus:hZ,simrarr:pZ,slarr:gZ,SmallCircle:vZ,smallsetminus:mZ,smashp:yZ,smeparsl:bZ,smid:wZ,smile:xZ,smt:_Z,smte:SZ,smtes:kZ,SOFTcy:TZ,softcy:CZ,solbar:EZ,solb:LZ,sol:AZ,Sopf:MZ,sopf:NZ,spades:$Z,spadesuit:OZ,spar:PZ,sqcap:RZ,sqcaps:DZ,sqcup:zZ,sqcups:IZ,Sqrt:FZ,sqsub:HZ,sqsube:qZ,sqsubset:BZ,sqsubseteq:WZ,sqsup:UZ,sqsupe:VZ,sqsupset:jZ,sqsupseteq:GZ,square:KZ,Square:XZ,SquareIntersection:YZ,SquareSubset:ZZ,SquareSubsetEqual:JZ,SquareSuperset:QZ,SquareSupersetEqual:eJ,SquareUnion:tJ,squarf:nJ,squ:rJ,squf:iJ,srarr:oJ,Sscr:sJ,sscr:lJ,ssetmn:aJ,ssmile:cJ,sstarf:uJ,Star:fJ,star:dJ,starf:hJ,straightepsilon:pJ,straightphi:gJ,strns:vJ,sub:mJ,Sub:yJ,subdot:bJ,subE:wJ,sube:xJ,subedot:_J,submult:SJ,subnE:kJ,subne:TJ,subplus:CJ,subrarr:EJ,subset:LJ,Subset:AJ,subseteq:MJ,subseteqq:NJ,SubsetEqual:$J,subsetneq:OJ,subsetneqq:PJ,subsim:RJ,subsub:DJ,subsup:zJ,succapprox:IJ,succ:FJ,succcurlyeq:HJ,Succeeds:qJ,SucceedsEqual:BJ,SucceedsSlantEqual:WJ,SucceedsTilde:UJ,succeq:VJ,succnapprox:jJ,succneqq:GJ,succnsim:KJ,succsim:XJ,SuchThat:YJ,sum:ZJ,Sum:JJ,sung:QJ,sup1:eQ,sup2:tQ,sup3:nQ,sup:rQ,Sup:iQ,supdot:oQ,supdsub:sQ,supE:lQ,supe:aQ,supedot:cQ,Superset:uQ,SupersetEqual:fQ,suphsol:dQ,suphsub:hQ,suplarr:pQ,supmult:gQ,supnE:vQ,supne:mQ,supplus:yQ,supset:bQ,Supset:wQ,supseteq:xQ,supseteqq:_Q,supsetneq:SQ,supsetneqq:kQ,supsim:TQ,supsub:CQ,supsup:EQ,swarhk:LQ,swarr:AQ,swArr:MQ,swarrow:NQ,swnwar:$Q,szlig:OQ,Tab:PQ,target:RQ,Tau:DQ,tau:zQ,tbrk:IQ,Tcaron:FQ,tcaron:HQ,Tcedil:qQ,tcedil:BQ,Tcy:WQ,tcy:UQ,tdot:VQ,telrec:jQ,Tfr:GQ,tfr:KQ,there4:XQ,therefore:YQ,Therefore:ZQ,Theta:JQ,theta:QQ,thetasym:eee,thetav:tee,thickapprox:nee,thicksim:ree,ThickSpace:iee,ThinSpace:oee,thinsp:see,thkap:lee,thksim:aee,THORN:cee,thorn:uee,tilde:fee,Tilde:dee,TildeEqual:hee,TildeFullEqual:pee,TildeTilde:gee,timesbar:vee,timesb:mee,times:yee,timesd:bee,tint:wee,toea:xee,topbot:_ee,topcir:See,top:kee,Topf:Tee,topf:Cee,topfork:Eee,tosa:Lee,tprime:Aee,trade:Mee,TRADE:Nee,triangle:$ee,triangledown:Oee,triangleleft:Pee,trianglelefteq:Ree,triangleq:Dee,triangleright:zee,trianglerighteq:Iee,tridot:Fee,trie:Hee,triminus:qee,TripleDot:Bee,triplus:Wee,trisb:Uee,tritime:Vee,trpezium:jee,Tscr:Gee,tscr:Kee,TScy:Xee,tscy:Yee,TSHcy:Zee,tshcy:Jee,Tstrok:Qee,tstrok:ete,twixt:tte,twoheadleftarrow:nte,twoheadrightarrow:rte,Uacute:ite,uacute:ote,uarr:ste,Uarr:lte,uArr:ate,Uarrocir:cte,Ubrcy:ute,ubrcy:fte,Ubreve:dte,ubreve:hte,Ucirc:pte,ucirc:gte,Ucy:vte,ucy:mte,udarr:yte,Udblac:bte,udblac:wte,udhar:xte,ufisht:_te,Ufr:Ste,ufr:kte,Ugrave:Tte,ugrave:Cte,uHar:Ete,uharl:Lte,uharr:Ate,uhblk:Mte,ulcorn:Nte,ulcorner:$te,ulcrop:Ote,ultri:Pte,Umacr:Rte,umacr:Dte,uml:zte,UnderBar:Ite,UnderBrace:Fte,UnderBracket:Hte,UnderParenthesis:qte,Union:Bte,UnionPlus:Wte,Uogon:Ute,uogon:Vte,Uopf:jte,uopf:Gte,UpArrowBar:Kte,uparrow:Xte,UpArrow:Yte,Uparrow:Zte,UpArrowDownArrow:Jte,updownarrow:Qte,UpDownArrow:ene,Updownarrow:tne,UpEquilibrium:nne,upharpoonleft:rne,upharpoonright:ine,uplus:one,UpperLeftArrow:sne,UpperRightArrow:lne,upsi:ane,Upsi:cne,upsih:une,Upsilon:fne,upsilon:dne,UpTeeArrow:hne,UpTee:pne,upuparrows:gne,urcorn:vne,urcorner:mne,urcrop:yne,Uring:bne,uring:wne,urtri:xne,Uscr:_ne,uscr:Sne,utdot:kne,Utilde:Tne,utilde:Cne,utri:Ene,utrif:Lne,uuarr:Ane,Uuml:Mne,uuml:Nne,uwangle:$ne,vangrt:One,varepsilon:Pne,varkappa:Rne,varnothing:Dne,varphi:zne,varpi:Ine,varpropto:Fne,varr:Hne,vArr:qne,varrho:Bne,varsigma:Wne,varsubsetneq:Une,varsubsetneqq:Vne,varsupsetneq:jne,varsupsetneqq:Gne,vartheta:Kne,vartriangleleft:Xne,vartriangleright:Yne,vBar:Zne,Vbar:Jne,vBarv:Qne,Vcy:ere,vcy:tre,vdash:nre,vDash:rre,Vdash:ire,VDash:ore,Vdashl:sre,veebar:lre,vee:are,Vee:cre,veeeq:ure,vellip:fre,verbar:dre,Verbar:hre,vert:pre,Vert:gre,VerticalBar:vre,VerticalLine:mre,VerticalSeparator:yre,VerticalTilde:bre,VeryThinSpace:wre,Vfr:xre,vfr:_re,vltri:Sre,vnsub:kre,vnsup:Tre,Vopf:Cre,vopf:Ere,vprop:Lre,vrtri:Are,Vscr:Mre,vscr:Nre,vsubnE:$re,vsubne:Ore,vsupnE:Pre,vsupne:Rre,Vvdash:Dre,vzigzag:zre,Wcirc:Ire,wcirc:Fre,wedbar:Hre,wedge:qre,Wedge:Bre,wedgeq:Wre,weierp:Ure,Wfr:Vre,wfr:jre,Wopf:Gre,wopf:Kre,wp:Xre,wr:Yre,wreath:Zre,Wscr:Jre,wscr:Qre,xcap:eie,xcirc:tie,xcup:nie,xdtri:rie,Xfr:iie,xfr:oie,xharr:sie,xhArr:lie,Xi:aie,xi:cie,xlarr:uie,xlArr:fie,xmap:die,xnis:hie,xodot:pie,Xopf:gie,xopf:vie,xoplus:mie,xotime:yie,xrarr:bie,xrArr:wie,Xscr:xie,xscr:_ie,xsqcup:Sie,xuplus:kie,xutri:Tie,xvee:Cie,xwedge:Eie,Yacute:Lie,yacute:Aie,YAcy:Mie,yacy:Nie,Ycirc:$ie,ycirc:Oie,Ycy:Pie,ycy:Rie,yen:Die,Yfr:zie,yfr:Iie,YIcy:Fie,yicy:Hie,Yopf:qie,yopf:Bie,Yscr:Wie,yscr:Uie,YUcy:Vie,yucy:jie,yuml:Gie,Yuml:Kie,Zacute:Xie,zacute:Yie,Zcaron:Zie,zcaron:Jie,Zcy:Qie,zcy:eoe,Zdot:toe,zdot:noe,zeetrf:roe,ZeroWidthSpace:ioe,Zeta:ooe,zeta:soe,zfr:loe,Zfr:aoe,ZHcy:coe,zhcy:uoe,zigrarr:foe,zopf:doe,Zopf:hoe,Zscr:poe,zscr:goe,zwj:voe,zwnj:moe},yoe="Á",boe="á",woe="Â",xoe="â",_oe="´",Soe="Æ",koe="æ",Toe="À",Coe="à",Eoe="&",Loe="&",Aoe="Å",Moe="å",Noe="Ã",$oe="ã",Ooe="Ä",Poe="ä",Roe="¦",Doe="Ç",zoe="ç",Ioe="¸",Foe="¢",Hoe="©",qoe="©",Boe="¤",Woe="°",Uoe="÷",Voe="É",joe="é",Goe="Ê",Koe="ê",Xoe="È",Yoe="è",Zoe="Ð",Joe="ð",Qoe="Ë",ese="ë",tse="½",nse="¼",rse="¾",ise=">",ose=">",sse="Í",lse="í",ase="Î",cse="î",use="¡",fse="Ì",dse="ì",hse="¿",pse="Ï",gse="ï",vse="«",mse="<",yse="<",bse="¯",wse="µ",xse="·",_se=" ",Sse="¬",kse="Ñ",Tse="ñ",Cse="Ó",Ese="ó",Lse="Ô",Ase="ô",Mse="Ò",Nse="ò",$se="ª",Ose="º",Pse="Ø",Rse="ø",Dse="Õ",zse="õ",Ise="Ö",Fse="ö",Hse="¶",qse="±",Bse="£",Wse='"',Use='"',Vse="»",jse="®",Gse="®",Kse="§",Xse="",Yse="¹",Zse="²",Jse="³",Qse="ß",ele="Þ",tle="þ",nle="×",rle="Ú",ile="ú",ole="Û",sle="û",lle="Ù",ale="ù",cle="¨",ule="Ü",fle="ü",dle="Ý",hle="ý",ple="¥",gle="ÿ",vle={Aacute:yoe,aacute:boe,Acirc:woe,acirc:xoe,acute:_oe,AElig:Soe,aelig:koe,Agrave:Toe,agrave:Coe,amp:Eoe,AMP:Loe,Aring:Aoe,aring:Moe,Atilde:Noe,atilde:$oe,Auml:Ooe,auml:Poe,brvbar:Roe,Ccedil:Doe,ccedil:zoe,cedil:Ioe,cent:Foe,copy:Hoe,COPY:qoe,curren:Boe,deg:Woe,divide:Uoe,Eacute:Voe,eacute:joe,Ecirc:Goe,ecirc:Koe,Egrave:Xoe,egrave:Yoe,ETH:Zoe,eth:Joe,Euml:Qoe,euml:ese,frac12:tse,frac14:nse,frac34:rse,gt:ise,GT:ose,Iacute:sse,iacute:lse,Icirc:ase,icirc:cse,iexcl:use,Igrave:fse,igrave:dse,iquest:hse,Iuml:pse,iuml:gse,laquo:vse,lt:mse,LT:yse,macr:bse,micro:wse,middot:xse,nbsp:_se,not:Sse,Ntilde:kse,ntilde:Tse,Oacute:Cse,oacute:Ese,Ocirc:Lse,ocirc:Ase,Ograve:Mse,ograve:Nse,ordf:$se,ordm:Ose,Oslash:Pse,oslash:Rse,Otilde:Dse,otilde:zse,Ouml:Ise,ouml:Fse,para:Hse,plusmn:qse,pound:Bse,quot:Wse,QUOT:Use,raquo:Vse,reg:jse,REG:Gse,sect:Kse,shy:Xse,sup1:Yse,sup2:Zse,sup3:Jse,szlig:Qse,THORN:ele,thorn:tle,times:nle,Uacute:rle,uacute:ile,Ucirc:ole,ucirc:sle,Ugrave:lle,ugrave:ale,uml:cle,Uuml:ule,uuml:fle,Yacute:dle,yacute:hle,yen:ple,yuml:gle},mle="&",yle="'",ble=">",wle="<",xle='"',jb={amp:mle,apos:yle,gt:ble,lt:wle,quot:xle};var qh={};const _le={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 Sle=Mo&&Mo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qh,"__esModule",{value:!0});var Fm=Sle(_le),kle=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Tle(e){return e>=55296&&e<=57343||e>1114111?"�":(e in Fm.default&&(e=Fm.default[e]),kle(e))}qh.default=Tle;var Nu=Mo&&Mo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(si,"__esModule",{value:!0});si.decodeHTML=si.decodeHTMLStrict=si.decodeXML=void 0;var Rd=Nu(Vb),Cle=Nu(vle),Ele=Nu(jb),Hm=Nu(qh),Lle=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;si.decodeXML=Gb(Ele.default);si.decodeHTMLStrict=Gb(Rd.default);function Gb(e){var t=Kb(e);return function(r){return String(r).replace(Lle,t)}}var qm=function(e,t){return e<t?1:-1};si.decodeHTML=function(){for(var e=Object.keys(Cle.default).sort(qm),t=Object.keys(Rd.default).sort(qm),r=0,o=0;r<t.length;r++)e[o]===t[r]?(t[r]+=";?",o++):t[r]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=Kb(Rd.default);function f(d){return d.substr(-1)!==";"&&(d+=";"),c(d)}return function(d){return String(d).replace(s,f)}}();function Kb(e){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Hm.default(parseInt(r.substr(3),16)):Hm.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}var Un={},Xb=Mo&&Mo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Un,"__esModule",{value:!0});Un.escapeUTF8=Un.escape=Un.encodeNonAsciiHTML=Un.encodeHTML=Un.encodeXML=void 0;var Ale=Xb(jb),Yb=Jb(Ale.default),Zb=Qb(Yb);Un.encodeXML=nw(Yb);var Mle=Xb(Vb),Bh=Jb(Mle.default),Nle=Qb(Bh);Un.encodeHTML=Ole(Bh,Nle);Un.encodeNonAsciiHTML=nw(Bh);function Jb(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function Qb(e){for(var t=[],r=[],o=0,s=Object.keys(e);o<s.length;o++){var c=s[o];c.length===1?t.push("\\"+c):r.push(c)}t.sort();for(var f=0;f<t.length-1;f++){for(var d=f;d<t.length-1&&t[d].charCodeAt(1)+1===t[d+1].charCodeAt(1);)d+=1;var h=1+d-f;h<3||t.splice(f,h,t[f]+"-"+t[d])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}var ew=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,$le=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function $u(e){return"&#x"+(e.length>1?$le(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function Ole(e,t){return function(r){return r.replace(t,function(o){return e[o]}).replace(ew,$u)}}var tw=new RegExp(Zb.source+"|"+ew.source,"g");function Ple(e){return e.replace(tw,$u)}Un.escape=Ple;function Rle(e){return e.replace(Zb,$u)}Un.escapeUTF8=Rle;function nw(e){return function(t){return t.replace(tw,function(r){return e[r]||$u(r)})}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=si,r=Un;function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=Un;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=si;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})})(Ub);function Dle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zle(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ile(e,t,r){return t&&zle(e.prototype,t),e}function rw(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Fle(e))||t){r&&(e=r);var o=0,s=function(){};return{s,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
23
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,f=!1,d;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return c=p.done,p},e:function(p){f=!0,d=p},f:function(){try{!c&&r.return!=null&&r.return()}finally{if(f)throw d}}}}function Fle(e,t){if(e){if(typeof e=="string")return Bm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bm(e,t)}}function Bm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var Hle=Ub,Wm={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:qle()};function qle(){var e={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return oc(0,5).forEach(function(t){oc(0,5).forEach(function(r){oc(0,5).forEach(function(o){return Ble(t,r,o,e)})})}),oc(0,23).forEach(function(t){var r=t+232,o=iw(t*10+8);e[r]="#"+o+o+o}),e}function Ble(e,t,r,o){var s=16+e*36+t*6+r,c=e>0?e*40+55:0,f=t>0?t*40+55:0,d=r>0?r*40+55:0;o[s]=Wle([c,f,d])}function iw(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function Wle(e){var t=[],r=rw(e),o;try{for(r.s();!(o=r.n()).done;){var s=o.value;t.push(iw(s))}}catch(c){r.e(c)}finally{r.f()}return"#"+t.join("")}function Um(e,t,r,o){var s;return t==="text"?s=Gle(r,o):t==="display"?s=Vle(e,r,o):t==="xterm256Foreground"?s=kc(e,o.colors[r]):t==="xterm256Background"?s=Tc(e,o.colors[r]):t==="rgb"&&(s=Ule(e,r)),s}function Ule(e,t){t=t.substring(2).slice(0,-1);var r=+t.substr(0,2),o=t.substring(5).split(";"),s=o.map(function(c){return("0"+Number(c).toString(16)).substr(-2)}).join("");return Sc(e,(r===38?"color:#":"background-color:#")+s)}function Vle(e,t,r){t=parseInt(t,10);var o={"-1":function(){return"<br/>"},0:function(){return e.length&&ow(e)},1:function(){return qi(e,"b")},3:function(){return qi(e,"i")},4:function(){return qi(e,"u")},8:function(){return Sc(e,"display:none")},9:function(){return qi(e,"strike")},22:function(){return Sc(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return jm(e,"i")},24:function(){return jm(e,"u")},39:function(){return kc(e,r.fg)},49:function(){return Tc(e,r.bg)},53:function(){return Sc(e,"text-decoration:overline")}},s;return o[t]?s=o[t]():4<t&&t<7?s=qi(e,"blink"):29<t&&t<38?s=kc(e,r.colors[t-30]):39<t&&t<48?s=Tc(e,r.colors[t-40]):89<t&&t<98?s=kc(e,r.colors[8+(t-90)]):99<t&&t<108&&(s=Tc(e,r.colors[8+(t-100)])),s}function ow(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(r){return"</"+r+">"}).join("")}function oc(e,t){for(var r=[],o=e;o<=t;o++)r.push(o);return r}function jle(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function Vm(e){e=parseInt(e,10);var t=null;return e===0?t="all":e===1?t="bold":2<e&&e<5?t="underline":4<e&&e<7?t="blink":e===8?t="hide":e===9?t="strike":29<e&&e<38||e===39||89<e&&e<98?t="foreground-color":(39<e&&e<48||e===49||99<e&&e<108)&&(t="background-color"),t}function Gle(e,t){return t.escapeXML?Hle.encodeXML(e):e}function qi(e,t,r){return r||(r=""),e.push(t),"<".concat(t).concat(r?' style="'.concat(r,'"'):"",">")}function Sc(e,t){return qi(e,"span",t)}function kc(e,t){return qi(e,"span","color:"+t)}function Tc(e,t){return qi(e,"span","background-color:"+t)}function jm(e,t){var r;if(e.slice(-1)[0]===t&&(r=e.pop()),r)return"</"+t+">"}function Kle(e,t,r){var o=!1,s=3;function c(){return""}function f(H,z){return r("xterm256Foreground",z),""}function d(H,z){return r("xterm256Background",z),""}function h(H){return t.newline?r("display",-1):r("text",H),""}function p(H,z){o=!0,z.trim().length===0&&(z="0"),z=z.trimRight(";").split(";");var J=rw(z),re;try{for(J.s();!(re=J.n()).done;){var te=re.value;r("display",te)}}catch(j){J.e(j)}finally{J.f()}return""}function v(H){return r("text",H),""}function y(H){return r("rgb",H),""}var b=[{pattern:/^\x08+/,sub:c},{pattern:/^\x1b\[[012]?K/,sub:c},{pattern:/^\x1b\[\(B/,sub:c},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:y},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{pattern:/^\x1b\[48;5;(\d+)m/,sub:d},{pattern:/^\n/,sub:h},{pattern:/^\r+\n/,sub:h},{pattern:/^\r/,sub:h},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:p},{pattern:/^\x1b\[\d?J/,sub:c},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:c},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:c},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function x(H,z){z>s&&o||(o=!1,e=e.replace(H.pattern,H.sub))}var C=[],E=e,M=E.length;e:for(;M>0;){for(var N=0,L=0,O=b.length;L<O;N=++L){var A=b[N];if(x(A,N),e.length!==M){M=e.length;continue e}}if(e.length===M)break;C.push(0),M=e.length}return C}function Xle(e,t,r){return t!=="text"&&(e=e.filter(jle(Vm(r))),e.push({token:t,data:r,category:Vm(r)})),e}var Yle=function(){function e(t){Dle(this,e),t=t||{},t.colors&&(t.colors=Object.assign({},Wm.colors,t.colors)),this.options=Object.assign({},Wm,t),this.stack=[],this.stickyStack=[]}return Ile(e,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var s=this.stack,c=this.options,f=[];return this.stickyStack.forEach(function(d){var h=Um(s,d.token,d.data,c);h&&f.push(h)}),Kle(r.join(""),c,function(d,h){var p=Um(s,d,h,c);p&&f.push(p),c.stream&&(o.stickyStack=Xle(o.stickyStack,d,h))}),s.length&&f.push(ow(s)),f.join("")}}]),e}(),Zle=Yle;const Jle=Wb(Zle),Qle=/^[A-Za-z]:\//;function eae(e=""){return e&&e.replace(/\\/g,"/").replace(Qle,t=>t.toUpperCase())}const tae=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function nae(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const rae=function(...e){e=e.map(o=>eae(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:nae();!s||s.length===0||(t=`${s}/${t}`,r=Gm(s))}return t=iae(t,!r),r&&!Gm(t)?`/${t}`:t.length>0?t:"."};function iae(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Gm=function(e){return tae.test(e)},oae=44,Km="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sae=new Uint8Array(64),sw=new Uint8Array(128);for(let e=0;e<Km.length;e++){const t=Km.charCodeAt(e);sae[e]=t,sw[t]=e}function lae(e){const t=new Int32Array(5),r=[];let o=0;do{const s=aae(e,o),c=[];let f=!0,d=0;t[0]=0;for(let h=o;h<s;h++){let p;h=hl(e,h,t,0);const v=t[0];v<d&&(f=!1),d=v,Xm(e,h,s)?(h=hl(e,h,t,1),h=hl(e,h,t,2),h=hl(e,h,t,3),Xm(e,h,s)?(h=hl(e,h,t,4),p=[v,t[1],t[2],t[3],t[4]]):p=[v,t[1],t[2],t[3]]):p=[v],c.push(p)}f||cae(c),r.push(c),o=s+1}while(o<=e.length);return r}function aae(e,t){const r=e.indexOf(";",t);return r===-1?e.length:r}function hl(e,t,r,o){let s=0,c=0,f=0;do{const h=e.charCodeAt(t++);f=sw[h],s|=(f&31)<<c,c+=5}while(f&32);const d=s&1;return s>>>=1,d&&(s=-2147483648|-s),r[o]+=s,t}function Xm(e,t,r){return t>=r?!1:e.charCodeAt(t)!==oae}function cae(e){e.sort(uae)}function uae(e,t){return e[0]-t[0]}const fae=/^[\w+.-]+:\/\//,dae=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,hae=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var zt;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(zt||(zt={}));function pae(e){return fae.test(e)}function gae(e){return e.startsWith("//")}function lw(e){return e.startsWith("/")}function vae(e){return e.startsWith("file:")}function Ym(e){return/^[.?#]/.test(e)}function sc(e){const t=dae.exec(e);return aw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function mae(e){const t=hae.exec(e),r=t[2];return aw("file:","",t[1]||"","",lw(r)?r:"/"+r,t[3]||"",t[4]||"")}function aw(e,t,r,o,s,c,f){return{scheme:e,user:t,host:r,port:o,path:s,query:c,hash:f,type:zt.Absolute}}function Zm(e){if(gae(e)){const r=sc("http:"+e);return r.scheme="",r.type=zt.SchemeRelative,r}if(lw(e)){const r=sc("http://foo.com"+e);return r.scheme="",r.host="",r.type=zt.AbsolutePath,r}if(vae(e))return mae(e);if(pae(e))return sc(e);const t=sc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?zt.Query:e.startsWith("#")?zt.Hash:zt.RelativePath:zt.Empty,t}function yae(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function bae(e,t){cw(t,t.type),e.path==="/"?e.path=t.path:e.path=yae(t.path)+e.path}function cw(e,t){const r=t<=zt.RelativePath,o=e.path.split("/");let s=1,c=0,f=!1;for(let h=1;h<o.length;h++){const p=o[h];if(!p){f=!0;continue}if(f=!1,p!=="."){if(p===".."){c?(f=!0,c--,s--):r&&(o[s++]=p);continue}o[s++]=p,c++}}let d="";for(let h=1;h<s;h++)d+="/"+o[h];(!d||f&&!d.endsWith("/.."))&&(d+="/"),e.path=d}function wae(e,t){if(!e&&!t)return"";const r=Zm(e);let o=r.type;if(t&&o!==zt.Absolute){const c=Zm(t),f=c.type;switch(o){case zt.Empty:r.hash=c.hash;case zt.Hash:r.query=c.query;case zt.Query:case zt.RelativePath:bae(r,c);case zt.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case zt.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}cw(r,o);const s=r.query+r.hash;switch(o){case zt.Hash:case zt.Query:return s;case zt.RelativePath:{const c=r.path.slice(1);return c?Ym(t||e)&&!Ym(c)?"./"+c+s:c+s:s||"."}case zt.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Jm(e,t){return t&&!t.endsWith("/")&&(t+="/"),wae(e,t)}function xae(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const Yi=0,_ae=1,Sae=2,kae=3,Tae=4;function Cae(e,t){const r=Qm(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Qm(e,o+1))e[o]=Lae(e[o],t);return e}function Qm(e,t){for(let r=t;r<e.length;r++)if(!Eae(e[r]))return r;return e.length}function Eae(e){for(let t=1;t<e.length;t++)if(e[t][Yi]<e[t-1][Yi])return!1;return!0}function Lae(e,t){return t||(e=e.slice()),e.sort(Aae)}function Aae(e,t){return e[Yi]-t[Yi]}let Yc=!1;function Mae(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][Yi]-t;if(c===0)return Yc=!0,s;c<0?r=s+1:o=s-1}return Yc=!1,r-1}function Nae(e,t,r){for(let o=r+1;o<e.length&&e[o][Yi]===t;r=o++);return r}function $ae(e,t,r){for(let o=r-1;o>=0&&e[o][Yi]===t;r=o--);return r}function Oae(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Pae(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return Yc=f!==-1&&e[f][Yi]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=Mae(e,t,d,h)}const Rae="`line` must be greater than 0 (lines start at line 1)",Dae="`column` must be greater than or equal to 0 (columns start at column 0)",e0=-1,zae=1;class Iae{constructor(t,r){const o=typeof t=="string";if(!o&&t._decodedMemo)return t;const s=o?JSON.parse(t):t,{version:c,file:f,names:d,sourceRoot:h,sources:p,sourcesContent:v}=s;this.version=c,this.file=f,this.names=d||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=v,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const y=Jm(h||"",xae(r));this.resolvedSources=p.map(x=>Jm(x||"",y));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=Cae(b,o)),this._decodedMemo=Oae(),this._bySources=void 0,this._bySourceMemos=void 0}}function Fae(e){var t;return(t=e)._decoded||(t._decoded=lae(e._encoded))}function Hae(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(Rae);if(o<0)throw new Error(Dae);const c=Fae(e);if(r>=c.length)return lc(null,null,null,null);const f=c[r],d=qae(f,e._decodedMemo,r,o,s||zae);if(d===-1)return lc(null,null,null,null);const h=f[d];if(h.length===1)return lc(null,null,null,null);const{names:p,resolvedSources:v}=e;return lc(v[h[_ae]],h[Sae]+1,h[kae],h.length===5?p[h[Tae]]:null)}function lc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function qae(e,t,r,o,s){let c=Pae(e,o,t,r);return Yc?c=(s===e0?Nae:$ae)(e,o,c):s===e0&&c++,c===-1||c===e.length?-1:c}const uw=/^\s*at .*(?:\S:\d+|\(native\))/m,Bae=/^(?:eval@)?(?:\[native code\])?$/,Wae=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function fw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),(o.startsWith("http:")||o.startsWith("https:"))&&(o=new URL(o).pathname),o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function Uae(e){let t=e.trim();if(Bae.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,[c,f,d]=fw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function Vae(e){let t=e.trim();if(!uw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=fw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=rae(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function jae(e,t={}){const{ignoreStackEntries:r=Wae}=t;let o=uw.test(e)?Kae(e):Gae(e);return r.length&&(o=o.filter(s=>!r.some(c=>s.file.match(c)))),o.map(s=>{var c;t.getFileName&&(s.file=t.getFileName(s.file));const f=(c=t.getSourceMap)==null?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return s;const d=new Iae(f),{line:h,column:p}=Hae(d,s);return h!=null&&p!=null?{...s,line:h,column:p}:s})}function Gae(e){return e.split(`
|
|
24
|
+
`).map(t=>Uae(t)).filter(Hb)}function Kae(e){return e.split(`
|
|
25
|
+
`).map(t=>Vae(t)).filter(Hb)}function Xae(e,t){return t&&e.endsWith(t)}async function dw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Wh(e){return new Jle({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Yae(e){return e===null||typeof e!="function"&&typeof e!="object"}function hw(e){let t=e;if(Yae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:""}}return t.stacks=jae(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}function Ou(e){return V0()?(tS(e),!0):!1}function ai(e){return typeof e=="function"?e():q(e)}const Zae=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Jae=Object.prototype.toString,Qae=e=>Jae.call(e)==="[object Object]",Yl=()=>{};function pw(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const gw=e=>e();function vw(e,t={}){let r,o,s=Yl;const c=d=>{clearTimeout(d),s(),s=Yl};return d=>{const h=ai(e),p=ai(t.maxWait);return r&&c(r),h<=0||p!==void 0&&p<=0?(o&&(c(o),o=null),Promise.resolve(d())):new Promise((v,y)=>{s=t.rejectOnCancel?y:v,p&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(d())},p)),r=setTimeout(()=>{o&&c(o),o=null,v(d())},h)})}}function ece(e=gw){const t=Be(!0);function r(){t.value=!1}function o(){t.value=!0}const s=(...c)=>{t.value&&e(...c)};return{isActive:ia(t),pause:r,resume:o,eventFilter:s}}function tce(e){return aa()}function nce(...e){if(e.length!==1)return gu(...e);const t=e[0];return typeof t=="function"?ia(ly(()=>({get:t,set:Yl}))):Be(t)}function t0(e,t=200,r={}){return pw(vw(t,r),e)}function mw(e,t,r={}){const{eventFilter:o=gw,...s}=r;return qt(e,pw(o,t),s)}function yw(e,t,r={}){const{eventFilter:o,...s}=r,{eventFilter:c,pause:f,resume:d,isActive:h}=ece(o);return{stop:mw(e,t,{...s,eventFilter:c}),pause:f,resume:d,isActive:h}}function Uh(e,t=!0,r){tce()?Ns(e,r):t?e():ln(e)}function rce(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Ot(e),c=Be(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=ai(r);return c.value=c.value===h?ai(o):h,c.value}}return s?f:[c,f]}function bw(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return mw(e,t,{...c,eventFilter:vw(o,{maxWait:s})})}function ice(e,t,r){const o=qt(e,(...s)=>(ln(()=>o()),t(...s)),r);return o}function oce(e,t,r){let o;Ot(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=Yl}=o,h=Be(!s),p=f?Fr(t):Be(t);let v=0;return Eh(async y=>{if(!h.value)return;v++;const b=v;let x=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const C=await e(E=>{y(()=>{c&&(c.value=!1),x||E()})});b===v&&(p.value=C)}catch(C){d(C)}finally{c&&b===v&&(c.value=!1),x=!0}}),s?Me(()=>(h.value=!0,p.value)):p}function Zc(e){var t;const r=ai(e);return(t=r==null?void 0:r.$el)!=null?t:r}const nr=Zae?window:void 0;function Cs(...e){let t,r,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,o,s]=e,t=nr):[t,r,o,s]=e,!t)return Yl;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const c=[],f=()=>{c.forEach(v=>v()),c.length=0},d=(v,y,b,x)=>(v.addEventListener(y,b,x),()=>v.removeEventListener(y,b,x)),h=qt(()=>[Zc(t),ai(s)],([v,y])=>{if(f(),!v)return;const b=Qae(y)?{...y}:y;c.push(...r.flatMap(x=>o.map(C=>d(v,x,C,b))))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return Ou(p),p}function sce(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ww(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=nr,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=sce(t);return Cs(s,c,v=>{v.repeat&&ai(d)||h(v)&&r(v)},f)}function lce(){const e=Be(!1),t=aa();return t&&Ns(()=>{e.value=!0},t),e}function xw(e){const t=lce();return Me(()=>(t.value,!!e()))}function ace(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=nr}=t,c=Be(!1),f=o?1e3/o:null;let d=0,h=null;function p(b){if(!c.value||!s)return;d||(d=b);const x=b-d;if(f&&x<f){h=s.requestAnimationFrame(p);return}d=b,e({delta:x,timestamp:b}),h=s.requestAnimationFrame(p)}function v(){!c.value&&s&&(c.value=!0,d=0,h=s.requestAnimationFrame(p))}function y(){c.value=!1,h!=null&&s&&(s.cancelAnimationFrame(h),h=null)}return r&&v(),Ou(y),{isActive:ia(c),pause:y,resume:v}}function _w(e,t={}){const{window:r=nr}=t,o=xw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let s;const c=Be(!1),f=p=>{c.value=p.matches},d=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",f):s.removeListener(f))},h=Eh(()=>{o.value&&(d(),s=r.matchMedia(ai(e)),"addEventListener"in s?s.addEventListener("change",f):s.addListener(f),c.value=s.matches)});return Ou(()=>{h(),d(),s=void 0}),c}const ac=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},cc="__vueuse_ssr_handlers__",cce=uce();function uce(){return cc in ac||(ac[cc]=ac[cc]||{}),ac[cc]}function Sw(e,t){return cce[e]||t}function fce(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const dce={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},n0="vueuse-storage";function kw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:y=nr,eventFilter:b,onError:x=j=>{console.error(j)},initOnMounted:C}=o,E=(v?Fr:Be)(typeof t=="function"?t():t);if(!r)try{r=Sw("getDefaultStorage",()=>{var j;return(j=nr)==null?void 0:j.localStorage})()}catch(j){x(j)}if(!r)return E;const M=ai(t),N=fce(M),L=(s=o.serializer)!=null?s:dce[N],{pause:O,resume:A}=yw(E,()=>z(E.value),{flush:c,deep:f,eventFilter:b});y&&d&&Uh(()=>{Cs(y,"storage",re),Cs(y,n0,te),C&&re()}),C||re();function H(j,ne){y&&y.dispatchEvent(new CustomEvent(n0,{detail:{key:e,oldValue:j,newValue:ne,storageArea:r}}))}function z(j){try{const ne=r.getItem(e);if(j==null)H(ne,null),r.removeItem(e);else{const K=L.write(j);ne!==K&&(r.setItem(e,K),H(ne,K))}}catch(ne){x(ne)}}function J(j){const ne=j?j.newValue:r.getItem(e);if(ne==null)return h&&M!=null&&r.setItem(e,L.write(M)),M;if(!j&&p){const K=L.read(ne);return typeof p=="function"?p(K,M):N==="object"&&!Array.isArray(K)?{...M,...K}:K}else return typeof ne!="string"?ne:L.read(ne)}function re(j){if(!(j&&j.storageArea!==r)){if(j&&j.key==null){E.value=M;return}if(!(j&&j.key!==e)){O();try{(j==null?void 0:j.newValue)!==L.write(E.value)&&(E.value=J(j))}catch(ne){x(ne)}finally{j?ln(A):A()}}}}function te(j){re(j.detail)}return E}function Tw(e){return _w("(prefers-color-scheme: dark)",e)}function hce(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=nr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,y={auto:"",light:"light",dark:"dark",...e.modes||{}},b=Tw({window:s}),x=Me(()=>b.value?"dark":"light"),C=h||(f==null?nce(o):kw(f,o,c,{window:s,listenToStorageChanges:d})),E=Me(()=>C.value==="auto"?x.value:C.value),M=Sw("updateHTMLAttrs",(A,H,z)=>{const J=typeof A=="string"?s==null?void 0:s.document.querySelector(A):Zc(A);if(!J)return;let re;if(v&&(re=s.document.createElement("style"),re.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(re)),H==="class"){const te=z.split(/\s/g);Object.values(y).flatMap(j=>(j||"").split(/\s/g)).filter(Boolean).forEach(j=>{te.includes(j)?J.classList.add(j):J.classList.remove(j)})}else J.setAttribute(H,z);v&&(s.getComputedStyle(re).opacity,document.head.removeChild(re))});function N(A){var H;M(t,r,(H=y[A])!=null?H:A)}function L(A){e.onChanged?e.onChanged(A,N):N(A)}qt(E,L,{flush:"post",immediate:!0}),Uh(()=>L(E.value));const O=Me({get(){return p?C.value:E.value},set(A){C.value=A}});try{return Object.assign(O,{store:C,system:x,state:E})}catch{return O}}function pce(e={}){const{valueDark:t="dark",valueLight:r="",window:o=nr}=e,s=hce({...e,onChanged:(d,h)=>{var p;e.onChanged?(p=e.onChanged)==null||p.call(e,d==="dark",h,d):h(d)},modes:{dark:t,light:r}}),c=Me(()=>s.system?s.system.value:Tw({window:o}).value?"dark":"light");return Me({get(){return s.value==="dark"},set(d){const h=d?"dark":"light";c.value===h?s.value="auto":s.value=h}})}function Cw(e,t,r={}){const{window:o=nr,...s}=r;let c;const f=xw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=Me(()=>Array.isArray(e)?e.map(y=>Zc(y)):[Zc(e)]),p=qt(h,y=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of y)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Ou(v),{isSupported:f,stop:v}}function Pu(e,t,r={}){const{window:o=nr}=r;return kw(e,t,o==null?void 0:o.localStorage,r)}function gce(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,window:f=nr}=t;if(!f)return er(r);const d=er({});function h(){if(e==="history")return f.location.search||"";if(e==="hash"){const N=f.location.hash||"",L=N.indexOf("?");return L>0?N.slice(L):""}else return(f.location.hash||"").replace(/^#/,"")}function p(N){const L=N.toString();if(e==="history")return`${L?`?${L}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${L?`#${L}`:""}`;const O=f.location.hash||"#",A=O.indexOf("?");return A>0?`${O.slice(0,A)}${L?`?${L}`:""}`:`${O}${L?`?${L}`:""}`}function v(){return new URLSearchParams(h())}function y(N){const L=new Set(Object.keys(d));for(const O of N.keys()){const A=N.getAll(O);d[O]=A.length>1?A:N.get(O)||"",L.delete(O)}Array.from(L).forEach(O=>delete d[O])}const{pause:b,resume:x}=yw(d,()=>{const N=new URLSearchParams("");Object.keys(d).forEach(L=>{const O=d[L];Array.isArray(O)?O.forEach(A=>N.append(L,A)):o&&O==null||s&&!O?N.delete(L):N.set(L,O)}),C(N)},{deep:!0});function C(N,L){b(),L&&y(N),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+p(N)),x()}function E(){c&&C(v(),!0)}Cs(f,"popstate",E,!1),e!=="history"&&Cs(f,"hashchange",E,!1);const M=v();return M.keys().next().value?y(M):Object.assign(d,r),d}function vce(e={}){const{window:t=nr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0}=e,f=Be(r),d=Be(o),h=()=>{t&&(c?(f.value=t.innerWidth,d.value=t.innerHeight):(f.value=t.document.documentElement.clientWidth,d.value=t.document.documentElement.clientHeight))};if(h(),Uh(h),Cs("resize",h,{passive:!0}),s){const p=_w("(orientation: portrait)");qt(p,()=>h())}return{width:f,height:d}}const Vh=gce("hash",{initialValue:{file:"",view:null,line:null}}),Zi=gu(Vh,"file"),qn=gu(Vh,"view"),Dd=gu(Vh,"line");var Vn=Uint8Array,as=Uint16Array,mce=Int32Array,Ew=new Vn([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]),Lw=new Vn([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]),yce=new Vn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Aw=function(e,t){for(var r=new as(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new mce(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}},Mw=Aw(Ew,2),Nw=Mw.b,bce=Mw.r;Nw[28]=258,bce[258]=28;var wce=Aw(Lw,0),xce=wce.b,zd=new as(32768);for(var Tt=0;Tt<32768;++Tt){var Ni=(Tt&43690)>>1|(Tt&21845)<<1;Ni=(Ni&52428)>>2|(Ni&13107)<<2,Ni=(Ni&61680)>>4|(Ni&3855)<<4,zd[Tt]=((Ni&65280)>>8|(Ni&255)<<8)>>1}var Ol=function(e,t,r){for(var o=e.length,s=0,c=new as(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new as(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new as(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],y=f[e[s]-1]++<<v,b=y|(1<<v)-1;y<=b;++y)d[zd[y]>>h]=p}else for(d=new as(o),s=0;s<o;++s)e[s]&&(d[s]=zd[f[e[s]-1]++]>>15-e[s]);return d},da=new Vn(288);for(var Tt=0;Tt<144;++Tt)da[Tt]=8;for(var Tt=144;Tt<256;++Tt)da[Tt]=9;for(var Tt=256;Tt<280;++Tt)da[Tt]=7;for(var Tt=280;Tt<288;++Tt)da[Tt]=8;var $w=new Vn(32);for(var Tt=0;Tt<32;++Tt)$w[Tt]=5;var _ce=Ol(da,9,1),Sce=Ol($w,5,1),Qf=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},gr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},ed=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},kce=function(e){return(e+7)/8|0},Ow=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Vn(e.subarray(t,r))},Tce=["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"],$n=function(e,t,r){var o=new Error(t||Tce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,$n),!r)throw o;return o},jh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new Vn(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new Vn(s*3));var p=function(Ee){var Ye=r.length;if(Ee>Ye){var P=new Vn(Math.max(Ye*2,Ee));P.set(r),r=P}},v=t.f||0,y=t.p||0,b=t.b||0,x=t.l,C=t.d,E=t.m,M=t.n,N=s*8;do{if(!x){v=gr(e,y,1);var L=gr(e,y+1,3);if(y+=3,L)if(L==1)x=_ce,C=Sce,E=9,M=5;else if(L==2){var z=gr(e,y,31)+257,J=gr(e,y+10,15)+4,re=z+gr(e,y+5,31)+1;y+=14;for(var te=new Vn(re),j=new Vn(19),ne=0;ne<J;++ne)j[yce[ne]]=gr(e,y+ne*3,7);y+=J*3;for(var K=Qf(j),V=(1<<K)-1,I=Ol(j,K,1),ne=0;ne<re;){var k=I[gr(e,y,V)];y+=k&15;var O=k>>4;if(O<16)te[ne++]=O;else{var B=0,W=0;for(O==16?(W=3+gr(e,y,3),y+=2,B=te[ne-1]):O==17?(W=3+gr(e,y,7),y+=3):O==18&&(W=11+gr(e,y,127),y+=7);W--;)te[ne++]=B}}var ie=te.subarray(0,z),ye=te.subarray(z);E=Qf(ie),M=Qf(ye),x=Ol(ie,E,1),C=Ol(ye,M,1)}else $n(1);else{var O=kce(y)+4,A=e[O-4]|e[O-3]<<8,H=O+A;if(H>s){h&&$n(0);break}d&&p(b+A),r.set(e.subarray(O,H),b),t.b=b+=A,t.p=y=H*8,t.f=v;continue}if(y>N){h&&$n(0);break}}d&&p(b+131072);for(var Ne=(1<<E)-1,We=(1<<M)-1,je=y;;je=y){var B=x[ed(e,y)&Ne],it=B>>4;if(y+=B&15,y>N){h&&$n(0);break}if(B||$n(2),it<256)r[b++]=it;else if(it==256){je=y,x=null;break}else{var rt=it-254;if(it>264){var ne=it-257,Ze=Ew[ne];rt=gr(e,y,(1<<Ze)-1)+Nw[ne],y+=Ze}var Te=C[ed(e,y)&We],X=Te>>4;Te||$n(3),y+=Te&15;var ye=xce[X];if(X>3){var Ze=Lw[X];ye+=ed(e,y)&(1<<Ze)-1,y+=Ze}if(y>N){h&&$n(0);break}d&&p(b+131072);var ae=b+rt;if(b<ye){var de=c-ye,$e=Math.min(ye,ae);for(de+b<0&&$n(3);b<$e;++b)r[b]=o[de+b]}for(;b<ae;++b)r[b]=r[b-ye]}}t.l=x,t.p=je,t.b=b,t.f=v,x&&(v=1,t.m=E,t.d=C,t.n=M)}while(!v);return b!=r.length&&f?Ow(r,0,b):r.subarray(0,b)},Cce=new Vn(0),Ece=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&$n(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Lce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Ace=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&$n(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&$n(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Mce(e,t){return jh(e,{i:2},t,t)}function Nce(e,t){var r=Ece(e);return r+8>e.length&&$n(6,"invalid gzip data"),jh(e.subarray(r,-8),{i:2},new Vn(Lce(e)),t)}function $ce(e,t){return jh(e.subarray(Ace(e,t),-4),{i:2},t,t)}function Oce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Nce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Mce(e,t):$ce(e,t)}var Id=typeof TextDecoder<"u"&&new TextDecoder,Pce=0;try{Id.decode(Cce,{stream:!0}),Pce=1}catch{}var Rce=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:Ow(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function Dce(e,t){var r;if(Id)return Id.decode(e);var o=Rce(e),s=o.s,r=o.r;return r.length&&$n(8),s}const td=()=>{},un=()=>Promise.resolve();function zce(){const e=er({state:new Bb,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=er(e.state.filesMap),e.state.idMap=er(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:un,onDone:td,onCollected:un,onTaskUpdate:td,writeFile:un,rerun:un,updateSnapshot:un,resolveSnapshotPath:un,snapshotSaved:un,onAfterSuiteRun:un,onCancel:un,getCountOfFailedTests:()=>0,sendLog:un,resolveSnapshotRawPath:un,readSnapshotFile:un,saveSnapshotFile:un,readTestFile:async d=>t.sources[d],removeSnapshotFile:un,onUnhandledError:td,saveTestFile:un,getProvidedContext:()=>({}),getTestFiles:un};e.rpc=r;let o;function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const y=new Uint8Array(await d.arrayBuffer()),b=Dce(Oce(y));t=Od(b)}else t=Od(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const Jc=Be("idle"),Ice=Me(()=>Jc.value==="idle"),Ii=Be([]),Fd=Fr([]),zn=Fr([]),_r=Pu("vitest-ui_task-tree-opened",[],{shallow:!0}),Qc=Me(()=>new Set(_r.value)),on=Pu("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),On=Be(on.value.search),Fce={"&":"&","<":"<",">":">",'"':""","'":"'"};function Pw(e){return e.replace(/[&<>"']/g,t=>Fce[t])}const Hce=Me(()=>{const e=On.value.toLowerCase();return e.length?new RegExp(`(${Pw(e)})`,"gi"):null}),Rw=Me(()=>On.value.trim()!==""),Qe=er({failed:on.value.failed,success:on.value.success,skipped:on.value.skipped,onlyTests:on.value.onlyTests}),Hd=Me(()=>!!(Qe.failed||Qe.success||Qe.skipped)),Ru=Fr([]),Es=Be(!1),r0=Me(()=>{const e=on.value.expandAll;return _r.value.length>0?e!==!0:e!==!1}),qce=Me(()=>{const e=Rw.value,t=Hd.value,r=Qe.onlyTests,o=Ce.summary.filesFailed,s=Ce.summary.filesSuccess,c=Ce.summary.filesSkipped,f=Ce.summary.filesRunning,d=Ru.value;return Ce.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Du(e){return Object.hasOwnProperty.call(e,"tasks")}function Bce(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Dw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["blue","yellow","cyan","green","magenta"];return r[t%r.length]}function Wce(e){return e.type==="test"||e.type==="custom"}function Uce(e){return e.mode==="run"&&(e.type==="test"||e.type==="custom")}function kn(e){return e.type==="file"}function Vce(e){return e.type==="suite"}function ci(e){return e.type==="file"||e.type==="suite"}function jce(e=Ce.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function Zl(e,t=!1){var o,s,c,f;let r=Ce.nodes.get(e.id);if(r?(r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:Qc.value.size>0&&Qc.value.has(e.id),type:"file",children:new Set,tasks:[],indent:0,duration:(c=e.result)==null?void 0:c.duration,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Dw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(f=e.result)==null?void 0:f.state},Ce.nodes.set(e.id,r),Ce.root.tasks.push(r)),t)for(let d=0;d<e.tasks.length;d++)ha(e.id,e.tasks[d],!0)}function zw(e,t){const r=Ce.nodes.get(e);if(!r||!ci(r))return;const o=yt.state.idMap.get(e);if(!(!o||!Du(o)))return ha(r.parentId,o,t&&o.tasks.length>0),[r,o]}function Gce(e){const t=Ce.nodes.get(e);if(!t)return;const r=yt.state.idMap.get(e);!r||!Ts(r)||ha(t.parentId,r,!1)}function ha(e,t,r){var c,f,d,h,p,v;const o=Ce.nodes.get(e);let s;if(o&&(s=Ce.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.mode=t.mode,s.duration=(c=t.result)==null?void 0:c.duration,s.state=(f=t.result)==null?void 0:f.state,Vce(s)&&(s.typecheck=!!t.meta&&"typecheck"in t.meta)):(Ts(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:(d=t.result)==null?void 0:d.duration,state:(h=t.result)==null?void 0:h.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,typecheck:!!t.meta&&"typecheck"in t.meta,type:"suite",expandable:!0,expanded:Qc.value.size>0&&Qc.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:(p=t.result)==null?void 0:p.duration,state:(v=t.result)==null?void 0:v.state},Ce.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Du(t)))for(let y=0;y<t.tasks.length;y++)ha(s.id,t.tasks[y],r)}function Kce(e,t,r){return e?Hw(e,t,r):!1}function Gh(e,t){const r=[...Iw(e,t)];zn.value=r,Ru.value=r.filter(kn).map(o=>rr(o.id))}function*Iw(e,t){for(const r of jce())yield*Fw(r,e,t)}function*Fw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[y,b]of qd(e,o,x=>i0(x,t,r)))c.push([y,b]);else{for(const[y,b]of qd(e,o,x=>i0(x,t,r)))ci(b)?(s.set(b.id,y),kn(b)?(y&&(f=b.id),c.push([y,b])):c.push([y||s.get(b.parentId)===!0,b])):c.push([y||s.get(b.parentId)===!0,b]);!f&&!kn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...Yce(c,r.onlyTests,o,d,f)].reverse(),p=Ce.nodes,v=new Set(h.filter(y=>{var b;return kn(y)||ci(y)&&((b=p.get(y.parentId))==null?void 0:b.expanded)}).map(y=>y.id));yield*h.filter(y=>{var b;return kn(y)||v.has(y.parentId)&&((b=p.get(y.parentId))==null?void 0:b.expanded)})}function Xce(e,t,r,o,s){if(o){if(kn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&kn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ce.nodes.get(t.parentId);return c&&kn(c)&&s.add(c.id),t}}function*Yce(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=ci(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ce.nodes.get(d.parentId);for(;p;)r.add(p.id),kn(p)&&o.add(p.id),p=Ce.nodes.get(p.parentId);yield d;continue}if(h){const p=Xce(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ce.nodes.get(d.parentId);p&&kn(p)&&o.add(p.id),yield d}}}function Zce(e,t){var r,o;return(t.success||t.failed)&&"result"in e&&(t.success&&((r=e.result)==null?void 0:r.state)==="pass"||t.failed&&((o=e.result)==null?void 0:o.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Hw(e,t,r){if(t.length===0||Bce(e.name,t))if(r.success||r.failed||r.skipped){if(Zce(e,r))return!0}else return!0;return!1}function*qd(e,t,r){const o=r(e);if(o)if(Wce(e)){let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}else if(kn(e))t.add(e.id);else{t.add(e.id);let s=Ce.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ce.nodes.get(s.parentId)}if(yield[o,e],ci(e))for(let s=0;s<e.tasks.length;s++)yield*qd(e.tasks[s],t,r)}function i0(e,t,r){const o=yt.state.idMap.get(e.id);return o?Hw(o,t,r):!1}function Jce(e,t,r){const o=zw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)ha(s.id,p,!1);s.expanded=!0;const f=new Set(_r.value);f.add(s.id);const d=new Set(Fw(s,t,r)),h=[...tue(s,d)];_r.value=Array.from(f),zn.value=h}function Qce(e,t){Kh(Ce.root.tasks,!1);const r=[...Iw(e,t)];on.value.expandAll=!1,_r.value=[],zn.value=r,Ru.value=r.filter(kn).map(o=>rr(o.id))}function eue(e,t){if(e.size)for(const r of zn.value)e.has(r.id)&&(r.expanded=!0);else t&&Kh(zn.value.filter(kn),!0)}function Kh(e,t){for(const r of e)ci(r)&&(r.expanded=!0,Kh(r.tasks,!1));t&&(on.value.expandAll=!1,_r.value=[])}function*tue(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of zn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function nue(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>Zl(s,t)),Fd.value=[...Ce.root.tasks],Gh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function rue(e){queueMicrotask(()=>{const t=Ce.pendingTasks,r=yt.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function o0(e,t,r,o,s){e&&cue(r);const c=!e;queueMicrotask(()=>{t?sue(c):lue(c)}),queueMicrotask(()=>{uue(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Fd.value&&Hh(Fd.value.map(f=>rr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{aue(o,s,t)})}function*iue(){yield*zn.value.filter(Uce)}function oue(){const e=yt.state.idMap;let t;for(const r of iue())t=e.get(r.parentId),t&&Du(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function sue(e){const t=yt.state.getFiles(),r=Ce.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)Zl(o[c],e),eu(o[c].tasks);const s=Ce.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=rr(f.id);if(!d)continue;Zl(d,e);const h=d.tasks;h!=null&&h.length&&eu(d.tasks)}}function lue(e){const t=new Map(Ce.pendingTasks.entries());Ce.pendingTasks.clear();const r=Ce.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>rr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],Zl(s,!1),eu(s.tasks),t.delete(s.id);const c=yt.state.idMap,f=Ce.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=rr(h.id);if(!p)continue;const v=t.get(p.id);v&&(Zl(p,e),eu(Array.from(v).map(y=>c.get(y)).filter(Boolean)))}}function aue(e,t,r=!1){const o=on.value.expandAll,s=o!==!0,c=new Set(_r.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{s0(e,t,r)}),Es.value||queueMicrotask(()=>{(zn.value.length||r)&&(Es.value=!0)}),f&&(queueMicrotask(()=>{eue(c,r),s&&(on.value.expandAll=!1)}),queueMicrotask(()=>{s0(e,t,r)}))}function s0(e,t,r){Gh(e,t),r&&oue()}function eu(e){let t;for(let r=0;r<e.length;r++)t=e[r],Du(t)?zw(t.id,!0):Gce(t.id)}function cue(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function uue(e){var f,d,h,p,v;const t=yt.state.idMap,r=new Map(Ce.root.tasks.filter(y=>t.has(y.id)).map(y=>[y.id,y])),o=Array.from(r.values()).map(y=>[y.id,rr(y.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,filesSnapshotFailed:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1};let c=0;for(const[y,b]of o){if(!b)continue;const x=r.get(y);x&&(x.mode=b.mode,x.setupDuration=b.setupDuration,x.prepareDuration=b.prepareDuration,x.environmentLoad=b.environmentLoad,x.collectDuration=b.collectDuration,x.duration=(f=b.result)==null?void 0:f.duration,x.state=(d=b.result)==null?void 0:d.state),c+=Math.max(0,b.collectDuration||0),c+=Math.max(0,b.setupDuration||0),c+=Math.max(0,((h=b.result)==null?void 0:h.duration)||0),c+=Math.max(0,b.environmentLoad||0),c+=Math.max(0,b.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((p=b.result)==null?void 0:p.state)==="fail"?s.filesFailed++:((v=b.result)==null?void 0:v.state)==="pass"?s.filesSuccess++:b.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):b.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:C,success:E,skipped:M,total:N,ignored:L,todo:O}=qw(b);s.totalTests+=N,s.testsFailed+=C,s.testsSuccess+=E,s.testsSkipped+=M,s.testsTodo+=O,s.testsIgnore+=L}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function qw(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of Bw(e))(!r||Kce(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function fue(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>qw(h,s,c)).reduce((h,{failed:p,success:v,ignored:y,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=y,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,y=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=y?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*Bw(e){const t=Ih(e);let r;for(let o=0;o<t.length;o++)r=t[o],Ts(r)?yield r:yield*Bw(r.tasks)}function due(e){const t=Ce.nodes.get(e);if(!t||!ci(t))return;const r=new Set(_r.value);r.delete(t.id);const o=[...pue(t)];_r.value=Array.from(r),zn.value=o}function hue(){Bd(Ce.root.tasks);const e=[...zn.value.filter(kn)];Bd(e),_r.value=[],on.value.expandAll=!0,zn.value=e}function Bd(e){for(const t of e)ci(t)&&(t.expanded=!1,Bd(t.tasks))}function*Ww(e,t){if(t&&(yield e.id),ci(e))for(let r=0;r<e.tasks.length;r++)yield*Ww(e.tasks[r],!0)}function*pue(e){const t=e.id,r=new Set(Ww(e,!1));for(let o=0;o<zn.value.length;o++){const s=zn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}class gue{constructor(t=!1,r=500,o={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},s=new Map,c=new Map,f=er({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){Yr(this,"rafCollector");Yr(this,"resumeEndRunId");this.onTaskUpdateCalled=t,this.resumeEndTimeout=r,this.root=o,this.pendingTasks=s,this.nodes=c,this.summary=f,this.rafCollector=ace(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t){nue(t,!0,On.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){rue(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{o0(t,r,this.summary,On.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}):o0(t,r,this.summary,On.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}collectTestsTotal(t,r,o,s){return fue(t,r,o,s,On.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})}collapseNode(t){queueMicrotask(()=>{due(t)})}expandNode(t){queueMicrotask(()=>{Jce(t,On.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{hue()})}expandAllNodes(){queueMicrotask(()=>{Qce(On.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}filterNodes(){queueMicrotask(()=>{Gh(On.value.trim(),{failed:Qe.failed,success:Qe.success,skipped:Qe.skipped,onlyTests:Qe.onlyTests})})}}const Ce=new gue,yt=function(){return Pr?zce():ZE(eL,{reactive:(t,r)=>r==="state"?er(t):Fr(t),handlers:{onTaskUpdate(t){Ce.resumeRun(t),Jc.value="running"},onFinished(t,r){Ce.endRun(),Jc.value="idle",Ii.value=(r||[]).map(hw)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),zu=Fr({}),ko=Be("CONNECTING"),Xt=Me(()=>{const e=Zi.value;return e?rr(e):void 0}),Uw=Me(()=>Fh(Xt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function rr(e){const t=yt.state.idMap.get(e);return t||void 0}const vue=Me(()=>ko.value==="OPEN"),nd=Me(()=>ko.value==="CONNECTING");Me(()=>ko.value==="CLOSED");function mue(){return Xh(yt.state.getFiles())}function yue(e){const t=Ce.nodes;e.forEach(r=>{delete r.result,Fh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,kn(o)&&(o.collectDuration=void 0))})}function Xh(e){return yue(e),Ce.startRun(),yt.rpc.rerun(e.map(t=>t.filepath))}const No=window.__vitest_browser_runner__;qt(()=>yt.ws,e=>{ko.value=Pr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{ko.value="OPEN",yt.state.filesMap.clear();const[t,r,o]=await Promise.all([yt.rpc.getFiles(),yt.rpc.getConfig(),yt.rpc.getUnhandledErrors()]);if(r.standalone){const c=(await yt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>Pd(h,d,f));yt.state.collectFiles(c)}else Ce.loadFiles(t),yt.state.collectFiles(t),Ce.startRun();Ii.value=(o||[]).map(hw),zu.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{ko.value==="CONNECTING"&&(ko.value="CLOSED")},1e3)})},{immediate:!0});const bue={"text-2xl":""},wue={"text-lg":"",op50:""},xue=ft({__name:"ConnectionOverlay",setup(e){return(t,r)=>q(vue)?et("",!0):(oe(),me("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>q(yt).reconnect&&q(yt).reconnect(...o))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:lt(q(nd)?"animate-pulse":"")},[Y("div",{text:"5xl",class:lt(q(nd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",bue,qe(q(nd)?"Connecting...":"Disconnected"),1),Y("div",wue," Check your terminal or start a new server with `"+qe(q(No)?`vitest --browser=${q(No).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),_ue=["aria-label","opacity","disabled","hover"],hi=ft({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(oe(),me("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:lt(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[hn(t.$slots,"default",{},()=>[Y("span",{class:lt(t.icon),ma:"",block:""},null,2)])],10,_ue))}}),Qr=Be("full"),Wd=Be();function rd(e){const t=document.querySelector("#tester-ui");t&&(t.style.pointerEvents=e?"none":"")}const Ls=Be(),ms=Be(!0),Ji=Be(!1),tu=Be(!0),cs=Me(()=>{var e;return(e=zu.value)==null?void 0:e.coverage}),Ud=Me(()=>{var e;return(e=cs.value)==null?void 0:e.enabled}),us=Me(()=>Ud.value&&cs.value.reporter.map(([e])=>e).includes("html")),Cc=Pu("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),l0=Me(()=>{if(us.value){const e=cs.value.reportsDirectory.lastIndexOf("/"),t=cs.value.reporter.find(r=>{if(r[0]==="html")return r});return t&&"subdir"in t[1]?`/${cs.value.reportsDirectory.slice(e+1)}/${t[1].subdir}/index.html`:`/${cs.value.reportsDirectory.slice(e+1)}/index.html`}});qt(Jc,e=>{tu.value=e==="running"},{immediate:!0});function Sue(){const e=Zi.value;if(e&&e.length>0){const t=rr(e);t?(Ls.value=t,ms.value=!1,Ji.value=!1):ice(()=>yt.state.getFiles(),()=>{Ls.value=rr(e),ms.value=!1,Ji.value=!1})}return ms}function nu(e){ms.value=e,Ji.value=!1,e&&(Ls.value=void 0,Zi.value="")}function Vw(e,t=null){Zi.value=e.file.id,Dd.value=null,t!=null&&(ln(()=>{Dd.value=t}),qn.value="editor"),Ls.value=rr(e.file.id),nu(!1)}function kue(){Ji.value=!0,ms.value=!1,Ls.value=void 0,Zi.value=""}const Tue={setCurrentFileId(e){Zi.value=e,Ls.value=rr(e),nu(!1)},async setIframeViewport(e,t){Qr.value="custom",Wd.value=[e,t],await jw(e,t)}};window.__vitest_ui_api__=Tue;function Cue(){const e=Yh(),r=document.querySelector("#details-splitpanes").clientWidth,o=e.clientWidth,s=Math.min(o/r*100,95),c=100-s;Cc.value=[s,c]}function Yh(){return document.querySelector("#tester-ui iframe[data-vitest]")}async function jw(e,t){const r=Yh();r.style.width=typeof e=="string"?e:`${e}px`,r.style.height=typeof t=="string"?t:`${t}px`,await new Promise(o=>requestAnimationFrame(o)),Cue()}const Eue={h:"full",flex:"~ col"},Lue=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon-content-delivery-network"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI")],-1),Aue={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Mue=Y("div",{"flex-auto":"",class:"scrolls"},[Y("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),Nue=ft({__name:"BrowserIframe",setup(e){const t={"small-mobile":["320px","568px"],"large-mobile":["414px","896px"],tablet:["834px","1112px"],full:["100%","100%"],custom:null};async function r(o){if(Qr.value===o?Qr.value=Wd.value?"custom":"full":Qr.value=o,!Yh()){console.warn("Iframe not found");return}const[c,f]=t[Qr.value]||Wd.value||t.full;await jw(c,f)}return(o,s)=>{const c=hi,f=Hr("tooltip");return oe(),me("div",Eue,[Lue,Y("div",Aue,[_t(Oe(c,{title:"Flexible",icon:"i-carbon:fit-to-screen",active:q(Qr)==="full",onClick:s[0]||(s[0]=d=>r("full"))},null,8,["active"]),[[f,"Flexible",void 0,{bottom:!0}]]),_t(Oe(c,{title:"Small mobile",icon:"i-carbon:mobile",active:q(Qr)==="small-mobile",onClick:s[1]||(s[1]=d=>r("small-mobile"))},null,8,["active"]),[[f,"Small mobile",void 0,{bottom:!0}]]),_t(Oe(c,{title:"Large mobile",icon:"i-carbon:mobile-add",active:q(Qr)==="large-mobile",onClick:s[2]||(s[2]=d=>r("large-mobile"))},null,8,["active"]),[[f,"Large mobile",void 0,{bottom:!0}]]),_t(Oe(c,{title:"Tablet",icon:"i-carbon:tablet",active:q(Qr)==="tablet",onClick:s[3]||(s[3]=d=>r("tablet"))},null,8,["active"]),[[f,"Tablet",void 0,{bottom:!0}]])]),Mue])}}}),Gw=ft({__name:"Modal",props:zc({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Ah(e,"modelValue"),r=Me(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=Me(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(oe(),me("div",{class:lt(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Y("div",{class:lt(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),Y("div",{class:lt(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[q(r)]]),style:Zt(t.value?{}:{transform:q(o)})},[hn(c.$slots,"default")],6)],2))}}),$ue=e=>(sa("data-v-93900314"),e=e(),la(),e),Oue={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Pue={"p-4":"",relative:"",border:"base b"},Rue=$ue(()=>Y("p",null,"Screenshot error",-1)),Due={op50:"","font-mono":"","text-sm":""},zue={op50:"","font-mono":"","text-sm":""},Iue={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Fue=["src","alt"],Hue={key:1},que=ft({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return ww("Escape",()=>{r("close")}),(o,s)=>{const c=hi;return oe(),me("div",Oue,[Y("div",Pue,[Rue,Y("p",Due,qe(o.file),1),Y("p",zue,qe(o.name),1),Oe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),Y("div",Iue,[o.url?(oe(),me("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,Fue)):(oe(),me("div",Hue," Something was wrong, the image cannot be resolved. "))])])}}}),Bue=di(que,[["__scopeId","data-v-93900314"]]);function Pl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const pa=pce(),Wue=rce(pa),Uue={class:"scrolls scrolls-rounded task-error"},Vue=["onClickPassive"],jue=["innerHTML"],Gue=ft({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const o=Me(()=>Wh(pa.value)),s=Me(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=Me(()=>t.error.diff?o.value.toHtml(Pl(t.error.diff)):void 0);return(f,d)=>{const h=Hr("tooltip");return oe(),me("div",Uue,[Y("pre",null,[Y("b",null,qe(f.error.name||f.error.nameStr),1),gt(": "+qe(f.error.message),1)]),(oe(!0),me(ut,null,li(f.error.stacks,(p,v)=>(oe(),me("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+qe(r(p.file))+":"+qe(p.line)+":"+qe(p.column),1),q(Xae)(p.file,f.filename)?_t((oe(),me("div",{key:0,class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:y=>q(dw)(p.file,p.line,p.column)},null,40,Vue)),[[h,"Open in Editor",void 0,{bottom:!0}]]):et("",!0)]))),128)),q(s)?(oe(),me("pre",{key:0,"data-testid":"diff",innerHTML:q(c)},null,8,jue)):et("",!0)])}}}),Kue=di(Gue,[["__scopeId","data-v-9dd6eaea"]]),Xue={"h-full":"",class:"scrolls"},Yue={flex:"~ gap-2 items-center"},Zue={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Jue=["innerHTML"],Que={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},efe=ft({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(b,x){var C;return((C=b.result)==null?void 0:C.state)!=="fail"?[]:b.type==="test"||b.type==="custom"?[{...b,level:x}]:[{...b,level:x},...b.tasks.flatMap(E=>r(E,x+1))]}function o(b,x){var M,N,L;let C="";(M=x.message)!=null&&M.includes("\x1B")&&(C=`<b>${x.nameStr||x.name}</b>: ${b.toHtml(Pl(x.message))}`);const E=(N=x.stackStr)==null?void 0:N.includes("\x1B");return(E||(L=x.stack)!=null&&L.includes("\x1B"))&&(C.length>0?C+=b.toHtml(Pl(E?x.stackStr:x.stack)):C=`<b>${x.nameStr||x.name}</b>: ${x.message}${b.toHtml(Pl(E?x.stackStr:x.stack))}`),C.length>0?C:null}function s(b,x){const C=Wh(b);return x.map(E=>{var L;const M=E.result;if(!M)return E;const N=(L=M.errors)==null?void 0:L.map(O=>o(C,O)).filter(O=>O!=null).join("<br><br>");return N!=null&&N.length&&(M.htmlError=N),E})}const c=Me(()=>{var M,N;const b=t.file,x=((M=b==null?void 0:b.tasks)==null?void 0:M.flatMap(L=>r(L,0)))??[],C=b==null?void 0:b.result;if((N=C==null?void 0:C.errors)==null?void 0:N[0]){const L={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:C};x.unshift(L)}return x.length>0?s(pa.value,x):x});function f(b){var C;const x=(C=b.meta)==null?void 0:C.failScreenshotPath;x&&fetch(`/__open-in-editor?file=${encodeURIComponent(x)}`)}const d=Be(!1),h=Be(Date.now()),p=Be(),v=Me(()=>{var C;const b=(C=p.value)==null?void 0:C.meta.failScreenshotPath,x=h.value;return b?`/__screenshot-error?file=${encodeURIComponent(b)}&t=${x}`:void 0});function y(b){p.value=b,h.value=Date.now(),d.value=!0}return(b,x)=>{const C=hi,E=Kue,M=Bue,N=Gw,L=Hr("tooltip");return oe(),me("div",Xue,[q(c).length?(oe(!0),me(ut,{key:0},li(q(c),O=>{var A,H,z,J;return oe(),me("div",{key:O.id},[Y("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Zt({"margin-left":`${(A=O.result)!=null&&A.htmlError?.5:2*O.level+.5}rem`})},[Y("div",Yue,[Y("span",null,qe(O.name),1),q(No)&&((H=O.meta)!=null&&H.failScreenshotPath)?(oe(),me(ut,{key:0},[_t(Oe(C,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:re=>y(O)},null,8,["onClick"]),[[L,"View screenshot error",void 0,{bottom:!0}]]),_t(Oe(C,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:re=>f(O)},null,8,["onClick"]),[[L,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):et("",!0)]),(z=O.result)!=null&&z.htmlError?(oe(),me("div",Zue,[Y("pre",{innerHTML:O.result.htmlError},null,8,Jue)])):(J=O.result)!=null&&J.errors?(oe(!0),me(ut,{key:1},li(O.result.errors,(re,te)=>{var j;return oe(),ot(E,{key:te,error:re,filename:(j=b.file)==null?void 0:j.name,root:q(zu).root},null,8,["error","filename","root"])}),128)):et("",!0)],4)])}),128)):(oe(),me("div",Que," All tests passed in this file ")),q(No)?(oe(),ot(N,{key:2,modelValue:q(d),"onUpdate:modelValue":x[1]||(x[1]=O=>Ot(d)?d.value=O:null),direction:"right"},{default:st(()=>[q(p)?(oe(),ot(vy,{key:0},{default:st(()=>[Oe(M,{file:q(p).file.filepath,name:q(p).name,url:q(v),onClose:x[0]||(x[0]=O=>d.value=!1)},null,8,["file","name","url"])]),_:1})):et("",!0)]),_:1},8,["modelValue"])):et("",!0)])}}}),tfe=di(efe,[["__scopeId","data-v-8f3dbcaa"]]),nfe={border:"b base","p-4":""},rfe=["innerHTML"],ife=ft({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(oe(),me("div",nfe,[Y("div",{"text-xs":"","mb-1":"",class:lt(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},qe(t(r.time))+" | "+qe(r.taskName)+" | "+qe(r.type),3),Y("pre",{"data-type":"html",innerHTML:r.content},null,8,rfe)]))}}),ofe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},sfe={key:1,p6:""},lfe=Y("pre",{inline:""},"console.log(foo)",-1),afe=ft({__name:"ViewConsoleOutput",setup(e){const t=Me(()=>{const o=Uw.value;if(o){const s=Wh(pa.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(Pl(h))}))}});function r(o){const s=o&&yt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?XE(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=ife;return(f=q(t))!=null&&f.length?(oe(),me("div",ofe,[(oe(!0),me(ut,null,li(q(t),({taskId:d,type:h,time:p,content:v})=>(oe(),me("div",{key:d,"font-mono":""},[Oe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(oe(),me("p",sfe,[gt(" Log something in your test and it would print here. (e.g. "),lfe,gt(") ")]))}}});var Kw={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Mo,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),y=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),x=b&&+b[1],C=/Opera\//.test(r),E=/Apple Computer/.test(navigator.vendor),M=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),N=/PhantomJS/.test(r),L=E&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),O=/Android/.test(r),A=L||O||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),H=L||/Mac/.test(o),z=/\bCrOS\b/.test(r),J=/win/i.test(o),re=C&&r.match(/Version\/(\d*\.\d*)/);re&&(re=Number(re[1])),re&&re>=15&&(C=!1,v=!0);var te=H&&(y||C&&(re==null||re<12.11)),j=s||h&&p>=9;function ne(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var K=function(n,i){var a=n.className,l=ne(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 I(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 g=0;g<i.length;++g)u.appendChild(i[g]);return u}function B(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var W;document.createRange?W=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:W=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function ie(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function ye(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Ne(n,i){var a=n.className;ne(i).test(a)||(n.className+=(a?" ":"")+i)}function We(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!ne(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};L?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function it(n){return n.display.wrapper.ownerDocument}function rt(n){return Ze(n.display.wrapper)}function Ze(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Te(n){return it(n).defaultView}function X(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function ae(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function de(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,m=u||0;;){var w=n.indexOf(" ",g);if(w<0||w>=i)return m+(i-g);m+=w-g,m+=a-m%a,g=w+1}}var $e=function(){this.id=null,this.f=null,this.time=0,this.handler=X(this.onTimeout,this)};$e.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},$e.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function Ee(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var Ye=50,P={toString:function(){return"CodeMirror.Pass"}},F={scroll:!1},Z={origin:"*mouse"},ce={origin:"+move"};function le(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var m=g-l;if(g==n.length||u+m>=i)return l+Math.min(m,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var ve=[""];function Se(n){for(;ve.length<=n;)ve.push(ue(ve)+" ");return ve[n]}function ue(n){return n[n.length-1]}function be(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function he(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Ae(){}function Ie(n,i){var a;return Object.create?a=Object.create(n):(Ae.prototype=n,a=new Ae),i&&ae(i,a),a}var De=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ue(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||De.test(n))}function Ge(n,i){return i?i.source.indexOf("\\w")>-1&&Ue(n)?!0:i.test(n):Ue(n)}function vt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var tt=/[\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 nt(n){return n.charCodeAt(0)>=768&&tt.test(n)}function Ft(n,i,a){for(;(a<0?i>0:i<n.length)&&nt(n.charAt(i));)i+=a;return i}function Jt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function ir(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var m=n[g];(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",g),u=!0)}u||l(i,a,"ltr")}var In=null;function or(n,i,a){var l;In=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:In=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:In=u)}return l??In}var Qt=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]/,g=/[LRr]/,m=/[Lb1n]/,w=/[1n]/;function _(S,$,D){this.level=S,this.from=$,this.to=D}return function(S,$){var D=$=="ltr"?"L":"R";if(S.length==0||$=="ltr"&&!l.test(S))return!1;for(var G=S.length,U=[],ee=0;ee<G;++ee)U.push(a(S.charCodeAt(ee)));for(var fe=0,ge=D;fe<G;++fe){var we=U[fe];we=="m"?U[fe]=ge:ge=we}for(var ke=0,xe=D;ke<G;++ke){var Le=U[ke];Le=="1"&&xe=="r"?U[ke]="n":g.test(Le)&&(xe=Le,Le=="r"&&(U[ke]="R"))}for(var He=1,Re=U[0];He<G-1;++He){var Je=U[He];Je=="+"&&Re=="1"&&U[He+1]=="1"?U[He]="1":Je==","&&Re==U[He+1]&&(Re=="1"||Re=="n")&&(U[He]=Re),Re=Je}for(var wt=0;wt<G;++wt){var jt=U[wt];if(jt==",")U[wt]="N";else if(jt=="%"){var Ct=void 0;for(Ct=wt+1;Ct<G&&U[Ct]=="%";++Ct);for(var Mn=wt&&U[wt-1]=="!"||Ct<G&&U[Ct]=="1"?"1":"N",yn=wt;yn<Ct;++yn)U[yn]=Mn;wt=Ct-1}}for(var Pt=0,bn=D;Pt<G;++Pt){var Kt=U[Pt];bn=="L"&&Kt=="1"?U[Pt]="L":g.test(Kt)&&(bn=Kt)}for(var Ht=0;Ht<G;++Ht)if(u.test(U[Ht])){var Rt=void 0;for(Rt=Ht+1;Rt<G&&u.test(U[Rt]);++Rt);for(var Mt=(Ht?U[Ht-1]:D)=="L",wn=(Rt<G?U[Rt]:D)=="L",os=Mt==wn?Mt?"L":"R":D,Ci=Ht;Ci<Rt;++Ci)U[Ci]=os;Ht=Rt-1}for(var rn=[],Lr,Gt=0;Gt<G;)if(m.test(U[Gt])){var Df=Gt;for(++Gt;Gt<G&&m.test(U[Gt]);++Gt);rn.push(new _(0,Df,Gt))}else{var Xr=Gt,po=rn.length,go=$=="rtl"?1:0;for(++Gt;Gt<G&&U[Gt]!="L";++Gt);for(var cn=Xr;cn<Gt;)if(w.test(U[cn])){Xr<cn&&(rn.splice(po,0,new _(1,Xr,cn)),po+=go);var ss=cn;for(++cn;cn<Gt&&w.test(U[cn]);++cn);rn.splice(po,0,new _(2,ss,cn)),po+=go,Xr=cn}else++cn;Xr<Gt&&rn.splice(po,0,new _(1,Xr,Gt))}return $=="ltr"&&(rn[0].level==1&&(Lr=S.match(/^\s+/))&&(rn[0].from=Lr[0].length,rn.unshift(new _(0,0,Lr[0].length))),ue(rn).level==1&&(Lr=S.match(/\s+$/))&&(ue(rn).to-=Lr[0].length,rn.push(new _(0,G-Lr[0].length,G)))),$=="rtl"?rn.reverse():rn}}();function Ve(n,i){var a=n.order;return a==null&&(a=n.order=Qt(n.text,i)),a}var ro=[],Fe=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||ro).concat(a)}};function Br(n,i){return n._handlers&&n._handlers[i]||ro}function en(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=Ee(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Et(n,i){var a=Br(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 Lt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Et(n,a||i.type,n,i),pn(i)||i.codemirrorIgnore}function Gn(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)Ee(a,i[l])==-1&&a.push(i[l])}function Ln(n,i){return Br(n,i).length>0}function sr(n){n.prototype.on=function(i,a){Fe(this,i,a)},n.prototype.off=function(i,a){en(this,i,a)}}function tn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Po(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function pn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function pi(n){tn(n),Po(n)}function Os(n){return n.target||n.srcElement}function lr(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 Bu=function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n}(),Ro;function ya(n){if(Ro==null){var i=k("span","");I(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Ro=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Ro?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Ps;function gi(n){if(Ps!=null)return Ps;var i=I(n,document.createTextNode("AخA")),a=W(i,0,1).getBoundingClientRect(),l=W(i,1,2).getBoundingClientRect();return V(n),!a||a.left==a.right?!1:Ps=l.right-a.right<3}var Kn=`
|
|
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 g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),m=g.indexOf("\r");m!=-1?(a.push(g.slice(0,m)),i+=m+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},vi=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},ba=function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),ar=null;function Wu(n){if(ar!=null)return ar;var i=I(n,k("span","x")),a=i.getBoundingClientRect(),l=W(i,0,1).getBoundingClientRect();return ar=Math.abs(a.left-l.left)>1}var Do={},cr={};function ur(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Do[n]=i}function io(n,i){cr[n]=i}function zo(n){if(typeof n=="string"&&cr.hasOwnProperty(n))n=cr[n];else if(n&&typeof n.name=="string"&&cr.hasOwnProperty(n.name)){var i=cr[n.name];typeof i=="string"&&(i={name:i}),n=Ie(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return zo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return zo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Io(n,i){i=zo(i);var a=Do[i.name];if(!a)return Io(n,"text/plain");var l=a(n,i);if(mi.hasOwnProperty(i.name)){var u=mi[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var m in i.modeProps)l[m]=i.modeProps[m];return l}var mi={};function Fo(n,i){var a=mi.hasOwnProperty(n)?mi[n]:mi[n]={};ae(i,a)}function kr(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 Rs(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 Ho(n,i,a){return n.startState?n.startState(i,a):!0}var At=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};At.prototype.eol=function(){return this.pos>=this.string.length},At.prototype.sol=function(){return this.pos==this.lineStart},At.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},At.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},At.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},At.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},At.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},At.prototype.skipToEnd=function(){this.pos=this.string.length},At.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},At.prototype.backUp=function(n){this.pos-=n},At.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=de(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},At.prototype.indentation=function(){return de(this.string,null,this.tabSize)-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},At.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 g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},At.prototype.current=function(){return this.string.slice(this.start,this.pos)},At.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},At.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},At.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Pe(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function Wr(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var m=g.text;u==a.line&&(m=m.slice(0,a.ch)),u==i.line&&(m=m.slice(i.ch)),l.push(m),++u}),l}function Ds(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Fn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function T(n){if(n.parent==null)return null;for(var i=n.parent,a=Ee(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;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var m=0;m<n.lines.length;++m){var w=n.lines[m],_=w.height;if(i<_)break;i-=_}return a+m}function se(n,i){return i>=n.first&&i<n.first+n.size}function pe(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function Q(n,i,a){if(a===void 0&&(a=null),!(this instanceof Q))return new Q(n,i,a);this.line=n,this.ch=i,this.sticky=a}function _e(n,i){return n.line-i.line||n.ch-i.ch}function dt(n,i){return n.sticky==i.sticky&&_e(n,i)==0}function Bt(n){return Q(n.line,n.ch)}function gn(n,i){return _e(n,i)<0?i:n}function qo(n,i){return _e(n,i)<0?n:i}function fp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ke(n,i){if(i.line<n.first)return Q(n.first,0);var a=n.first+n.size-1;return i.line>a?Q(a,Pe(n,a).text.length):F1(i,Pe(n,i.line).text.length)}function F1(n,i){var a=n.ch;return a==null||a>i?Q(n.line,i):a<0?Q(n.line,0):n}function dp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ke(n,i[l]);return a}var wa=function(n,i){this.state=n,this.lookAhead=i},Tr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Tr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Tr.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}},Tr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tr.fromSaved=function(n,i,a){return i instanceof wa?new Tr(n,kr(n.mode,i.state),a,i.lookAhead):new Tr(n,kr(n.mode,i),a)},Tr.prototype.save=function(n){var i=n!==!1?kr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new wa(i,this.maxLookAhead):i};function hp(n,i,a,l){var u=[n.state.modeGen],g={};bp(n,i.text,n.doc.mode,a,function(S,$){return u.push(S,$)},g,l);for(var m=a.state,w=function(S){a.baseTokens=u;var $=n.state.overlays[S],D=1,G=0;a.state=!0,bp(n,i.text,$.mode,a,function(U,ee){for(var fe=D;G<U;){var ge=u[D];ge>U&&u.splice(D,1,U,u[D+1],ge),D+=2,G=Math.min(U,ge)}if(ee)if($.opaque)u.splice(fe,D-fe,U,"overlay "+ee),D=fe+2;else for(;fe<D;fe+=2){var we=u[fe+1];u[fe+1]=(we?we+" ":"")+"overlay "+ee}},g),a.state=m,a.baseTokens=null,a.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)w(_);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function pp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=zs(n,T(i)),u=i.text.length>n.options.maxHighlightLength&&kr(n.doc.mode,l.state),g=hp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function zs(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Tr(l,!0,i);var g=H1(n,i,a),m=g>l.first&&Pe(l,g-1).stateAfter,w=m?Tr.fromSaved(l,m,g):new Tr(l,Ho(l.mode),g);return l.iter(g,i,function(_){Uu(n,_.text,w);var S=w.line;_.stateAfter=S==i-1||S%5==0||S>=u.viewFrom&&S<u.viewTo?w.save():null,w.nextLine()}),a&&(l.modeFrontier=w.line),w}function Uu(n,i,a,l){var u=n.doc.mode,g=new At(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&gp(u,a.state);!g.eol();)Vu(u,g,a.state),g.start=g.pos}function gp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Rs(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Vu(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Rs(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var vp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function mp(n,i,a,l){var u=n.doc,g=u.mode,m;i=Ke(u,i);var w=Pe(u,i.line),_=zs(n,i.line,a),S=new At(w.text,n.options.tabSize,_),$;for(l&&($=[]);(l||S.pos<i.ch)&&!S.eol();)S.start=S.pos,m=Vu(g,S,_.state),l&&$.push(new vp(S,m,kr(u.mode,_.state)));return l?$:new vp(S,m,_.state)}function yp(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 bp(n,i,a,l,u,g,m){var w=a.flattenSpans;w==null&&(w=n.options.flattenSpans);var _=0,S=null,$=new At(i,n.options.tabSize,l),D,G=n.options.addModeClass&&[null];for(i==""&&yp(gp(a,l.state),g);!$.eol();){if($.pos>n.options.maxHighlightLength?(w=!1,m&&Uu(n,i,l,$.pos),$.pos=i.length,D=null):D=yp(Vu(a,$,l.state,G),g),G){var U=G[0].name;U&&(D="m-"+(D?U+" "+D:U))}if(!w||S!=D){for(;_<$.start;)_=Math.min($.start,_+5e3),u(_,S);S=D}$.start=$.pos}for(;_<$.pos;){var ee=Math.min($.pos,_+5e3);u(ee,S),_=ee}}function H1(n,i,a){for(var l,u,g=n.doc,m=a?-1:i-(n.doc.mode.innerMode?1e3:100),w=i;w>m;--w){if(w<=g.first)return g.first;var _=Pe(g,w-1),S=_.stateAfter;if(S&&(!a||w+(S instanceof wa?S.lookAhead:0)<=g.modeFrontier))return w;var $=de(_.text,null,n.options.tabSize);(u==null||l>$)&&(u=w-1,l=$)}return u}function q1(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=Pe(n,l).stateAfter;if(u&&(!(u instanceof wa)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var wp=!1,Ur=!1;function B1(){wp=!0}function W1(){Ur=!0}function xa(n,i,a){this.marker=n,this.from=i,this.to=a}function Is(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function U1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function V1(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 j1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],m=g.marker,w=g.from==null||(m.inclusiveLeft?g.from<=i:g.from<i);if(w||g.from==i&&m.type=="bookmark"&&(!a||!g.marker.insertLeft)){var _=g.to==null||(m.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new xa(m,g.from,_?null:g.to))}}return l}function G1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],m=g.marker,w=g.to==null||(m.inclusiveRight?g.to>=i:g.to>i);if(w||g.from==i&&m.type=="bookmark"&&(!a||g.marker.insertLeft)){var _=g.from==null||(m.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new xa(m,_?null:g.from-i,g.to==null?null:g.to-i))}}return l}function ju(n,i){if(i.full)return null;var a=se(n,i.from.line)&&Pe(n,i.from.line).markedSpans,l=se(n,i.to.line)&&Pe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,m=_e(i.from,i.to)==0,w=j1(a,u,m),_=G1(l,g,m),S=i.text.length==1,$=ue(i.text).length+(S?u:0);if(w)for(var D=0;D<w.length;++D){var G=w[D];if(G.to==null){var U=Is(_,G.marker);U?S&&(G.to=U.to==null?null:U.to+$):G.to=u}}if(_)for(var ee=0;ee<_.length;++ee){var fe=_[ee];if(fe.to!=null&&(fe.to+=$),fe.from==null){var ge=Is(w,fe.marker);ge||(fe.from=$,S&&(w||(w=[])).push(fe))}else fe.from+=$,S&&(w||(w=[])).push(fe)}w&&(w=xp(w)),_&&_!=w&&(_=xp(_));var we=[w];if(!S){var ke=i.text.length-2,xe;if(ke>0&&w)for(var Le=0;Le<w.length;++Le)w[Le].to==null&&(xe||(xe=[])).push(new xa(w[Le].marker,null,null));for(var He=0;He<ke;++He)we.push(xe);we.push(_)}return we}function xp(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 K1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(U){if(U.markedSpans)for(var ee=0;ee<U.markedSpans.length;++ee){var fe=U.markedSpans[ee].marker;fe.readOnly&&(!l||Ee(l,fe)==-1)&&(l||(l=[])).push(fe)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var m=l[g],w=m.find(0),_=0;_<u.length;++_){var S=u[_];if(!(_e(S.to,w.from)<0||_e(S.from,w.to)>0)){var $=[_,1],D=_e(S.from,w.from),G=_e(S.to,w.to);(D<0||!m.inclusiveLeft&&!D)&&$.push({from:S.from,to:w.from}),(G>0||!m.inclusiveRight&&!G)&&$.push({from:w.to,to:S.to}),u.splice.apply(u,$),_+=$.length-3}}return u}function _p(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function Sp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function _a(n){return n.inclusiveLeft?-1:0}function Sa(n){return n.inclusiveRight?1:0}function Gu(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=_e(l.from,u.from)||_a(n)-_a(i);if(g)return-g;var m=_e(l.to,u.to)||Sa(n)-Sa(i);return m||i.id-n.id}function kp(n,i){var a=Ur&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||Gu(l,u.marker)<0)&&(l=u.marker);return l}function Tp(n){return kp(n,!0)}function ka(n){return kp(n,!1)}function X1(n,i){var a=Ur&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||Gu(l,g.marker)<0)&&(l=g.marker)}return l}function Cp(n,i,a,l,u){var g=Pe(n,i),m=Ur&&g.markedSpans;if(m)for(var w=0;w<m.length;++w){var _=m[w];if(_.marker.collapsed){var S=_.marker.find(0),$=_e(S.from,a)||_a(_.marker)-_a(u),D=_e(S.to,l)||Sa(_.marker)-Sa(u);if(!($>=0&&D<=0||$<=0&&D>=0)&&($<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?_e(S.to,a)>=0:_e(S.to,a)>0)||$>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?_e(S.from,l)<=0:_e(S.from,l)<0)))return!0}}}function fr(n){for(var i;i=Tp(n);)n=i.find(-1,!0).line;return n}function Y1(n){for(var i;i=ka(n);)n=i.find(1,!0).line;return n}function Z1(n){for(var i,a;i=ka(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Ku(n,i){var a=Pe(n,i),l=fr(a);return a==l?i:T(l)}function Ep(n,i){if(i>n.lastLine())return i;var a=Pe(n,i),l;if(!yi(n,a))return i;for(;l=ka(a);)a=l.find(1,!0).line;return T(a)+1}function yi(n,i){var a=Ur&&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,Is(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&Xu(n,i,u))return!0}function Vr(n){n=fr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var m=0;m<g.children.length;++m){var w=g.children[m];if(w==a)break;i+=w.height}return i}function Ta(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Tp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=ka(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function Yu(n){var i=n.display,a=n.doc;i.maxLine=Pe(a,a.first),i.maxLineLength=Ta(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Ta(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var Bo=function(n,i,a){this.text=n,Sp(this,i),this.height=a?a(this):1};Bo.prototype.lineNo=function(){return T(this)},sr(Bo);function J1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),_p(n),Sp(n,a);var u=l?l(n):1;u!=n.height&&Fn(n,u)}function Q1(n){n.parent=null,_p(n)}var ex={},tx={};function Lp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?tx:ex;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Ap(n,i){var a=B("span",null,null,v?"padding-right: .1px":null),l={pre:B("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,m=void 0;l.pos=0,l.addToken=rx,gi(n.display.measure)&&(m=Ve(g,n.doc.direction))&&(l.addToken=ox(l.addToken,m)),l.map=[];var w=i!=n.display.externalMeasured&&T(g);sx(g,l,pp(n,g,w)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=We(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=We(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(ya(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var _=l.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Et(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=We(l.pre.className,l.textClass||"")),l}function nx(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function rx(n,i,a,l,u,g,m){if(i){var w=n.splitSpaces?ix(i,n.trailingSpace):i,_=n.cm.state.specialChars,S=!1,$;if(!_.test(i))n.col+=i.length,$=document.createTextNode(w),n.map.push(n.pos,n.pos+i.length,$),h&&p<9&&(S=!0),n.pos+=i.length;else{$=document.createDocumentFragment();for(var D=0;;){_.lastIndex=D;var G=_.exec(i),U=G?G.index-D:i.length-D;if(U){var ee=document.createTextNode(w.slice(D,D+U));h&&p<9?$.appendChild(k("span",[ee])):$.appendChild(ee),n.map.push(n.pos,n.pos+U,ee),n.col+=U,n.pos+=U}if(!G)break;D+=U+1;var fe=void 0;if(G[0]==" "){var ge=n.cm.options.tabSize,we=ge-n.col%ge;fe=$.appendChild(k("span",Se(we),"cm-tab")),fe.setAttribute("role","presentation"),fe.setAttribute("cm-text"," "),n.col+=we}else G[0]=="\r"||G[0]==`
|
|
29
|
+
`?(fe=$.appendChild(k("span",G[0]=="\r"?"␍":"","cm-invalidchar")),fe.setAttribute("cm-text",G[0]),n.col+=1):(fe=n.cm.options.specialCharPlaceholder(G[0]),fe.setAttribute("cm-text",G[0]),h&&p<9?$.appendChild(k("span",[fe])):$.appendChild(fe),n.col+=1);n.map.push(n.pos,n.pos+1,fe),n.pos++}}if(n.trailingSpace=w.charCodeAt(i.length-1)==32,a||l||u||S||g||m){var ke=a||"";l&&(ke+=l),u&&(ke+=u);var xe=k("span",[$],ke,g);if(m)for(var Le in m)m.hasOwnProperty(Le)&&Le!="style"&&Le!="class"&&xe.setAttribute(Le,m[Le]);return n.content.appendChild(xe)}n.content.appendChild($)}}function ix(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var g=n.charAt(u);g==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(g=" "),l+=g,a=g==" "}return l}function ox(n,i){return function(a,l,u,g,m,w,_){u=u?u+" cm-force-border":"cm-force-border";for(var S=a.pos,$=S+l.length;;){for(var D=void 0,G=0;G<i.length&&(D=i[G],!(D.to>S&&D.from<=S));G++);if(D.to>=$)return n(a,l,u,g,m,w,_);n(a,l.slice(0,D.to-S),u,g,null,w,_),g=null,l=l.slice(D.to-S),S=D.to}}}function Mp(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 sx(n,i,a){var l=n.markedSpans,u=n.text,g=0;if(!l){for(var m=1;m<a.length;m+=2)i.addToken(i,u.slice(g,g=a[m]),Lp(a[m+1],i.cm.options));return}for(var w=u.length,_=0,S=1,$="",D,G,U=0,ee,fe,ge,we,ke;;){if(U==_){ee=fe=ge=G="",ke=null,we=null,U=1/0;for(var xe=[],Le=void 0,He=0;He<l.length;++He){var Re=l[He],Je=Re.marker;if(Je.type=="bookmark"&&Re.from==_&&Je.widgetNode)xe.push(Je);else if(Re.from<=_&&(Re.to==null||Re.to>_||Je.collapsed&&Re.to==_&&Re.from==_)){if(Re.to!=null&&Re.to!=_&&U>Re.to&&(U=Re.to,fe=""),Je.className&&(ee+=" "+Je.className),Je.css&&(G=(G?G+";":"")+Je.css),Je.startStyle&&Re.from==_&&(ge+=" "+Je.startStyle),Je.endStyle&&Re.to==U&&(Le||(Le=[])).push(Je.endStyle,Re.to),Je.title&&((ke||(ke={})).title=Je.title),Je.attributes)for(var wt in Je.attributes)(ke||(ke={}))[wt]=Je.attributes[wt];Je.collapsed&&(!we||Gu(we.marker,Je)<0)&&(we=Re)}else Re.from>_&&U>Re.from&&(U=Re.from)}if(Le)for(var jt=0;jt<Le.length;jt+=2)Le[jt+1]==U&&(fe+=" "+Le[jt]);if(!we||we.from==_)for(var Ct=0;Ct<xe.length;++Ct)Mp(i,0,xe[Ct]);if(we&&(we.from||0)==_){if(Mp(i,(we.to==null?w+1:we.to)-_,we.marker,we.from==null),we.to==null)return;we.to==_&&(we=!1)}}if(_>=w)break;for(var Mn=Math.min(w,U);;){if($){var yn=_+$.length;if(!we){var Pt=yn>Mn?$.slice(0,Mn-_):$;i.addToken(i,Pt,D?D+ee:ee,ge,_+Pt.length==U?fe:"",G,ke)}if(yn>=Mn){$=$.slice(Mn-_),_=Mn;break}_=yn,ge=""}$=u.slice(g,g=a[S++]),D=Lp(a[S++],i.cm.options)}}}function Np(n,i,a){this.line=i,this.rest=Z1(i),this.size=this.rest?T(ue(this.rest))-a+1:1,this.node=this.text=null,this.hidden=yi(n,i)}function Ca(n,i,a){for(var l=[],u,g=i;g<a;g=u){var m=new Np(n.doc,Pe(n.doc,g),g);u=g+m.size,l.push(m)}return l}var Wo=null;function lx(n){Wo?Wo.ops.push(n):n.ownsGroup=Wo={ops:[n],delayedCallbacks:[]}}function ax(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 cx(n,i){var a=n.ownsGroup;if(a)try{ax(a)}finally{Wo=null,i(a)}}var Fs=null;function Wt(n,i){var a=Br(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Wo?u=Wo.delayedCallbacks:Fs?u=Fs:(u=Fs=[],setTimeout(ux,0));for(var g=function(w){u.push(function(){return a[w].apply(null,l)})},m=0;m<a.length;++m)g(m)}}function ux(){var n=Fs;Fs=null;for(var i=0;i<n.length;++i)n[i]()}function $p(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?dx(n,i):g=="gutter"?Pp(n,i,a,l):g=="class"?Zu(n,i):g=="widget"&&hx(n,i,l)}i.changes=null}function Hs(n){return n.node==n.text&&(n.node=k("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),h&&p<8&&(n.node.style.zIndex=2)),n.node}function fx(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=Hs(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Op(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Ap(n,i)}function dx(n,i){var a=i.text.className,l=Op(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,Zu(n,i)):a&&(i.text.className=a)}function Zu(n,i){fx(n,i),i.line.wrapClass?Hs(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 Pp(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=Hs(i);i.gutterBackground=k("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),u.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(n.options.lineNumbers||g){var m=Hs(i),w=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(w.setAttribute("aria-hidden","true"),n.display.input.setUneditable(w),m.insertBefore(w,i.text),i.line.gutterClass&&(w.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=w.appendChild(k("div",pe(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var _=0;_<n.display.gutterSpecs.length;++_){var S=n.display.gutterSpecs[_].className,$=g.hasOwnProperty(S)&&g[S];$&&w.appendChild(k("div",[$],"CodeMirror-gutter-elt","left: "+l.gutterLeft[S]+"px; width: "+l.gutterWidth[S]+"px"))}}}function hx(n,i,a){i.alignable&&(i.alignable=null);for(var l=ne("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);Rp(n,i,a)}function px(n,i,a,l){var u=Op(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),Zu(n,i),Pp(n,i,a,l),Rp(n,i,l),i.node}function Rp(n,i,a){if(Dp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)Dp(n,i.rest[l],i,a,!1)}function Dp(n,i,a,l,u){if(i.widgets)for(var g=Hs(a),m=0,w=i.widgets;m<w.length;++m){var _=w[m],S=k("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||S.setAttribute("cm-ignore-events","true"),gx(_,S,a,l),n.display.input.setUneditable(S),u&&_.above?g.insertBefore(S,a.gutter||a.text):g.appendChild(S),Wt(_,"redraw")}}function gx(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 qs(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!ie(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),I(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function jr(n,i){for(var a=Os(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 Ea(n){return n.lineSpace.offsetTop}function Ju(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function zp(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=I(n.measure,k("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function Cr(n){return Ye-n.display.nativeBarWidth}function oo(n){return n.display.scroller.clientWidth-Cr(n)-n.display.barWidth}function Qu(n){return n.display.scroller.clientHeight-Cr(n)-n.display.barHeight}function vx(n,i,a){var l=n.options.lineWrapping,u=l&&oo(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var m=i.text.firstChild.getClientRects(),w=0;w<m.length-1;w++){var _=m[w],S=m[w+1];Math.abs(_.bottom-S.bottom)>2&&g.push((_.bottom+S.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Ip(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var u=0;u<n.rest.length;u++)if(T(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function mx(n,i){i=fr(i);var a=T(i),l=n.display.externalMeasured=new Np(n.doc,i,a);l.lineN=a;var u=l.built=Ap(n,l);return l.text=u.pre,I(n.display.lineMeasure,u.pre),l}function Fp(n,i,a,l){return Er(n,Uo(n,i),a,l)}function ef(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[ao(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Uo(n,i){var a=T(i),l=ef(n,a);l&&!l.text?l=null:l&&l.changes&&($p(n,l,a,sf(n)),n.curOp.forceUpdate=!0),l||(l=mx(n,i));var u=Ip(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Er(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),m;return i.cache.hasOwnProperty(g)?m=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(vx(n,i.view,i.rect),i.hasHeights=!0),m=bx(n,i,a,l),m.bogus||(i.cache[g]=m)),{left:m.left,right:m.right,top:u?m.rtop:m.top,bottom:u?m.rbottom:m.bottom}}var Hp={left:0,right:0,top:0,bottom:0};function qp(n,i,a){for(var l,u,g,m,w,_,S=0;S<n.length;S+=3)if(w=n[S],_=n[S+1],i<w?(u=0,g=1,m="left"):i<_?(u=i-w,g=u+1):(S==n.length-3||i==_&&n[S+3]>i)&&(g=_-w,u=g-1,i>=_&&(m="right")),u!=null){if(l=n[S+2],w==_&&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==_-w)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:g,collapse:m,coverStart:w,coverEnd:_}}function yx(n,i){var a=Hp;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 bx(n,i,a,l){var u=qp(i.map,a,l),g=u.node,m=u.start,w=u.end,_=u.collapse,S;if(g.nodeType==3){for(var $=0;$<4;$++){for(;m&&nt(i.line.text.charAt(u.coverStart+m));)--m;for(;u.coverStart+w<u.coverEnd&&nt(i.line.text.charAt(u.coverStart+w));)++w;if(h&&p<9&&m==0&&w==u.coverEnd-u.coverStart?S=g.parentNode.getBoundingClientRect():S=yx(W(g,m,w).getClientRects(),l),S.left||S.right||m==0)break;w=m,m=m-1,_="right"}h&&p<11&&(S=wx(n.display.measure,S))}else{m>0&&(_=l="right");var D;n.options.lineWrapping&&(D=g.getClientRects()).length>1?S=D[l=="right"?D.length-1:0]:S=g.getBoundingClientRect()}if(h&&p<9&&!m&&(!S||!S.left&&!S.right)){var G=g.parentNode.getClientRects()[0];G?S={left:G.left,right:G.left+jo(n.display),top:G.top,bottom:G.bottom}:S=Hp}for(var U=S.top-i.rect.top,ee=S.bottom-i.rect.top,fe=(U+ee)/2,ge=i.view.measure.heights,we=0;we<ge.length-1&&!(fe<ge[we]);we++);var ke=we?ge[we-1]:0,xe=ge[we],Le={left:(_=="right"?S.right:S.left)-i.rect.left,right:(_=="left"?S.left:S.right)-i.rect.left,top:ke,bottom:xe};return!S.left&&!S.right&&(Le.bogus=!0),n.options.singleCursorHeightPerLine||(Le.rtop=U,Le.rbottom=ee),Le}function wx(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Wu(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 Bp(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 Wp(n){n.display.externalMeasure=null,V(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Bp(n.display.view[i])}function Bs(n){Wp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Up(n){return b&&O?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Vp(n){return b&&O?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function tf(n){var i=fr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=qs(a[u]));return l}function La(n,i,a,l,u){if(!u){var g=tf(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var m=Vr(i);if(l=="local"?m+=Ea(n.display):m-=n.display.viewOffset,l=="page"||l=="window"){var w=n.display.lineSpace.getBoundingClientRect();m+=w.top+(l=="window"?0:Vp(it(n)));var _=w.left+(l=="window"?0:Up(it(n)));a.left+=_,a.right+=_}return a.top+=m,a.bottom+=m,a}function jp(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Up(it(n)),u-=Vp(it(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var m=n.display.lineSpace.getBoundingClientRect();return{left:l-m.left,top:u-m.top}}function Aa(n,i,a,l,u){return l||(l=Pe(n.doc,i.line)),La(n,l,Fp(n,l,i.ch,u),a)}function dr(n,i,a,l,u,g){l=l||Pe(n.doc,i.line),u||(u=Uo(n,l));function m(ee,fe){var ge=Er(n,u,ee,fe?"right":"left",g);return fe?ge.left=ge.right:ge.right=ge.left,La(n,l,ge,a)}var w=Ve(l,n.doc.direction),_=i.ch,S=i.sticky;if(_>=l.text.length?(_=l.text.length,S="before"):_<=0&&(_=0,S="after"),!w)return m(S=="before"?_-1:_,S=="before");function $(ee,fe,ge){var we=w[fe],ke=we.level==1;return m(ge?ee-1:ee,ke!=ge)}var D=or(w,_,S),G=In,U=$(_,D,S=="before");return G!=null&&(U.other=$(_,G,S!="before")),U}function Gp(n,i){var a=0;i=Ke(n.doc,i),n.options.lineWrapping||(a=jo(n.display)*i.ch);var l=Pe(n.doc,i.line),u=Vr(l)+Ea(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function nf(n,i,a,l,u){var g=Q(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function rf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return nf(l.first,0,null,-1,-1);var u=R(l,a),g=l.first+l.size-1;if(u>g)return nf(l.first+l.size-1,Pe(l,g).text.length,null,1,1);i<0&&(i=0);for(var m=Pe(l,u);;){var w=xx(n,m,u,i,a),_=X1(m,w.ch+(w.xRel>0||w.outside>0?1:0));if(!_)return w;var S=_.find(1);if(S.line==u)return S;m=Pe(l,u=S.line)}}function Kp(n,i,a,l){l-=tf(i);var u=i.text.length,g=Jt(function(m){return Er(n,a,m-1).bottom<=l},u,0);return u=Jt(function(m){return Er(n,a,m).top>l},g,u),{begin:g,end:u}}function Xp(n,i,a,l){a||(a=Uo(n,i));var u=La(n,i,Er(n,a,l),"line").top;return Kp(n,i,a,u)}function of(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function xx(n,i,a,l,u){u-=Vr(i);var g=Uo(n,i),m=tf(i),w=0,_=i.text.length,S=!0,$=Ve(i,n.doc.direction);if($){var D=(n.options.lineWrapping?Sx:_x)(n,i,a,g,$,l,u);S=D.level!=1,w=S?D.from:D.to-1,_=S?D.to:D.from-1}var G=null,U=null,ee=Jt(function(He){var Re=Er(n,g,He);return Re.top+=m,Re.bottom+=m,of(Re,l,u,!1)?(Re.top<=u&&Re.left<=l&&(G=He,U=Re),!0):!1},w,_),fe,ge,we=!1;if(U){var ke=l-U.left<U.right-l,xe=ke==S;ee=G+(xe?0:1),ge=xe?"after":"before",fe=ke?U.left:U.right}else{!S&&(ee==_||ee==w)&&ee++,ge=ee==0?"after":ee==i.text.length?"before":Er(n,g,ee-(S?1:0)).bottom+m<=u==S?"after":"before";var Le=dr(n,Q(a,ee,ge),"line",i,g);fe=Le.left,we=u<Le.top?-1:u>=Le.bottom?1:0}return ee=Ft(i.text,ee,1),nf(a,ee,ge,we,l-fe)}function _x(n,i,a,l,u,g,m){var w=Jt(function(D){var G=u[D],U=G.level!=1;return of(dr(n,Q(a,U?G.to:G.from,U?"before":"after"),"line",i,l),g,m,!0)},0,u.length-1),_=u[w];if(w>0){var S=_.level!=1,$=dr(n,Q(a,S?_.from:_.to,S?"after":"before"),"line",i,l);of($,g,m,!0)&&$.top>m&&(_=u[w-1])}return _}function Sx(n,i,a,l,u,g,m){var w=Kp(n,i,l,m),_=w.begin,S=w.end;/\s/.test(i.text.charAt(S-1))&&S--;for(var $=null,D=null,G=0;G<u.length;G++){var U=u[G];if(!(U.from>=S||U.to<=_)){var ee=U.level!=1,fe=Er(n,l,ee?Math.min(S,U.to)-1:Math.max(_,U.from)).right,ge=fe<g?g-fe+1e9:fe-g;(!$||D>ge)&&($=U,D=ge)}}return $||($=u[u.length-1]),$.from<_&&($={from:_,to:$.to,level:$.level}),$.to>S&&($={from:$.from,to:S,level:$.level}),$}var so;function Vo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(so==null){so=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)so.appendChild(document.createTextNode("x")),so.appendChild(k("br"));so.appendChild(document.createTextNode("x"))}I(n.measure,so);var a=so.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),V(n.measure),a||1}function jo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");I(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function sf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,m=0;g;g=g.nextSibling,++m){var w=n.display.gutterSpecs[m].className;a[w]=g.offsetLeft+g.clientLeft+u,l[w]=g.clientWidth}return{fixedPos:lf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function lf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Yp(n){var i=Vo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/jo(n.display)-3);return function(u){if(yi(n.doc,u))return 0;var g=0;if(u.widgets)for(var m=0;m<u.widgets.length;m++)u.widgets[m].height&&(g+=u.widgets[m].height);return a?g+(Math.ceil(u.text.length/l)||1)*i:g+i}}function af(n){var i=n.doc,a=Yp(n);i.iter(function(l){var u=a(l);u!=l.height&&Fn(l,u)})}function lo(n,i,a,l){var u=n.display;if(!a&&Os(i).getAttribute("cm-not-content")=="true")return null;var g,m,w=u.lineSpace.getBoundingClientRect();try{g=i.clientX-w.left,m=i.clientY-w.top}catch{return null}var _=rf(n,g,m),S;if(l&&_.xRel>0&&(S=Pe(n.doc,_.line).text).length==_.ch){var $=de(S,S.length,n.options.tabSize)-S.length;_=Q(_.line,Math.max(0,Math.round((g-zp(n.display).left)/jo(n.display))-$))}return _}function ao(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 vn(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)Ur&&Ku(n.doc,i)<u.viewTo&&wi(n);else if(a<=u.viewFrom)Ur&&Ep(n.doc,a+l)>u.viewFrom?wi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)wi(n);else if(i<=u.viewFrom){var g=Ma(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):wi(n)}else if(a>=u.viewTo){var m=Ma(n,i,i,-1);m?(u.view=u.view.slice(0,m.index),u.viewTo=m.lineN):wi(n)}else{var w=Ma(n,i,i,-1),_=Ma(n,a,a+l,1);w&&_?(u.view=u.view.slice(0,w.index).concat(Ca(n,w.lineN,_.lineN)).concat(u.view.slice(_.index)),u.viewTo+=l):wi(n)}var S=u.externalMeasured;S&&(a<S.lineN?S.lineN+=l:i<S.lineN+S.size&&(u.externalMeasured=null))}function bi(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[ao(n,i)];if(g.node!=null){var m=g.changes||(g.changes=[]);Ee(m,a)==-1&&m.push(a)}}}function wi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Ma(n,i,a,l){var u=ao(n,i),g,m=n.display.view;if(!Ur||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var w=n.display.viewFrom,_=0;_<u;_++)w+=m[_].size;if(w!=i){if(l>0){if(u==m.length-1)return null;g=w+m[u].size-i,u++}else g=w-i;i+=g,a+=g}for(;Ku(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 kx(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Ca(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Ca(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(ao(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Ca(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,ao(n,a)))),l.viewTo=a}function Zp(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 Ws(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Jp(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),m=n.options.$customCursor;m&&(i=!0);for(var w=0;w<a.sel.ranges.length;w++)if(!(!i&&w==a.sel.primIndex)){var _=a.sel.ranges[w];if(!(_.from().line>=n.display.viewTo||_.to().line<n.display.viewFrom)){var S=_.empty();if(m){var $=m(n,_);$&&cf(n,$,u)}else(S||n.options.showCursorWhenSelecting)&&cf(n,_.head,u);S||Tx(n,_,g)}}return l}function cf(n,i,a){var l=dr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(k("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var g=Aa(n,i,"div",null,null),m=g.right-g.left;u.style.width=(m>0?m:n.defaultCharWidth())+"px"}if(l.other){var w=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));w.style.display="",w.style.left=l.other.left+"px",w.style.top=l.other.top+"px",w.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Na(n,i){return n.top-i.top||n.left-i.left}function Tx(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),m=zp(n.display),w=m.left,_=Math.max(l.sizerWidth,oo(n)-l.sizer.offsetLeft)-m.right,S=u.direction=="ltr";function $(xe,Le,He,Re){Le<0&&(Le=0),Le=Math.round(Le),Re=Math.round(Re),g.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+xe+`px;
|
|
30
|
+
top: `+Le+"px; width: "+(He??_-xe)+`px;
|
|
31
|
+
height: `+(Re-Le)+"px"))}function D(xe,Le,He){var Re=Pe(u,xe),Je=Re.text.length,wt,jt;function Ct(Pt,bn){return Aa(n,Q(xe,Pt),"div",Re,bn)}function Mn(Pt,bn,Kt){var Ht=Xp(n,Re,null,Pt),Rt=bn=="ltr"==(Kt=="after")?"left":"right",Mt=Kt=="after"?Ht.begin:Ht.end-(/\s/.test(Re.text.charAt(Ht.end-1))?2:1);return Ct(Mt,Rt)[Rt]}var yn=Ve(Re,u.direction);return ir(yn,Le||0,He??Je,function(Pt,bn,Kt,Ht){var Rt=Kt=="ltr",Mt=Ct(Pt,Rt?"left":"right"),wn=Ct(bn-1,Rt?"right":"left"),os=Le==null&&Pt==0,Ci=He==null&&bn==Je,rn=Ht==0,Lr=!yn||Ht==yn.length-1;if(wn.top-Mt.top<=3){var Gt=(S?os:Ci)&&rn,Df=(S?Ci:os)&&Lr,Xr=Gt?w:(Rt?Mt:wn).left,po=Df?_:(Rt?wn:Mt).right;$(Xr,Mt.top,po-Xr,Mt.bottom)}else{var go,cn,ss,zf;Rt?(go=S&&os&&rn?w:Mt.left,cn=S?_:Mn(Pt,Kt,"before"),ss=S?w:Mn(bn,Kt,"after"),zf=S&&Ci&&Lr?_:wn.right):(go=S?Mn(Pt,Kt,"before"):w,cn=!S&&os&&rn?_:Mt.right,ss=!S&&Ci&&Lr?w:wn.left,zf=S?Mn(bn,Kt,"after"):_),$(go,Mt.top,cn-go,Mt.bottom),Mt.bottom<wn.top&&$(w,Mt.bottom,null,wn.top),$(ss,wn.top,zf-ss,wn.bottom)}(!wt||Na(Mt,wt)<0)&&(wt=Mt),Na(wn,wt)<0&&(wt=wn),(!jt||Na(Mt,jt)<0)&&(jt=Mt),Na(wn,jt)<0&&(jt=wn)}),{start:wt,end:jt}}var G=i.from(),U=i.to();if(G.line==U.line)D(G.line,G.ch,U.ch);else{var ee=Pe(u,G.line),fe=Pe(u,U.line),ge=fr(ee)==fr(fe),we=D(G.line,G.ch,ge?ee.text.length+1:null).end,ke=D(U.line,ge?0:null,U.ch).start;ge&&(we.top<ke.top-2?($(we.right,we.top,null,we.bottom),$(w,ke.top,ke.left,ke.bottom)):$(we.right,we.top,ke.left-we.right,we.bottom)),we.bottom<ke.top&&$(w,we.bottom,null,ke.top)}a.appendChild(g)}function uf(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||Go(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Qp(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||df(n))}function ff(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Go(n))},100)}function df(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Et(n,"focus",n,i),n.state.focused=!0,Ne(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),v&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),uf(n))}function Go(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Et(n,"blur",n,i),n.state.focused=!1,K(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function $a(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,g=0,m=0;m<i.view.length;m++){var w=i.view[m],_=n.options.lineWrapping,S=void 0,$=0;if(!w.hidden){if(u+=w.line.height,h&&p<8){var D=w.node.offsetTop+w.node.offsetHeight;S=D-a,a=D}else{var G=w.node.getBoundingClientRect();S=G.bottom-G.top,!_&&w.text.firstChild&&($=w.text.firstChild.getBoundingClientRect().right-G.left-1)}var U=w.line.height-S;if((U>.005||U<-.005)&&(u<l&&(g-=U),Fn(w.line,S),eg(w.line),w.rest))for(var ee=0;ee<w.rest.length;ee++)eg(w.rest[ee]);if($>n.display.sizerWidth){var fe=Math.ceil($/jo(n.display));fe>n.display.maxLineLength&&(n.display.maxLineLength=fe,n.display.maxLine=w.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function eg(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 Oa(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Ea(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=R(i,l),m=R(i,u);if(a&&a.ensure){var w=a.ensure.from.line,_=a.ensure.to.line;w<g?(g=w,m=R(i,Vr(Pe(i,w))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=m&&(g=R(i,Vr(Pe(i,_))-n.wrapper.clientHeight),m=_)}return{from:g,to:Math.max(m,g+1)}}function Cx(n,i){if(!Lt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!N){var m=k("div","",null,`position: absolute;
|
|
32
|
+
top: `+(i.top-a.viewOffset-Ea(n.display))+`px;
|
|
33
|
+
height: `+(i.bottom-i.top+Cr(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 Ex(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?Q(i.line,i.ch+1,"before"):i,i=i.ch?Q(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var m=!1,w=dr(n,i),_=!a||a==i?w:dr(n,a);u={left:Math.min(w.left,_.left),top:Math.min(w.top,_.top)-l,right:Math.max(w.left,_.left),bottom:Math.max(w.bottom,_.bottom)+l};var S=hf(n,u),$=n.doc.scrollTop,D=n.doc.scrollLeft;if(S.scrollTop!=null&&(Vs(n,S.scrollTop),Math.abs(n.doc.scrollTop-$)>1&&(m=!0)),S.scrollLeft!=null&&(co(n,S.scrollLeft),Math.abs(n.doc.scrollLeft-D)>1&&(m=!0)),!m)break}return u}function Lx(n,i){var a=hf(n,i);a.scrollTop!=null&&Vs(n,a.scrollTop),a.scrollLeft!=null&&co(n,a.scrollLeft)}function hf(n,i){var a=n.display,l=Vo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=Qu(n),m={};i.bottom-i.top>g&&(i.bottom=i.top+g);var w=n.doc.height+Ju(a),_=i.top<l,S=i.bottom>w-l;if(i.top<u)m.scrollTop=_?0:i.top;else if(i.bottom>u+g){var $=Math.min(i.top,(S?w:i.bottom)-g);$!=u&&(m.scrollTop=$)}var D=n.options.fixedGutter?0:a.gutters.offsetWidth,G=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-D,U=oo(n)-a.gutters.offsetWidth,ee=i.right-i.left>U;return ee&&(i.right=i.left+U),i.left<10?m.scrollLeft=0:i.left<G?m.scrollLeft=Math.max(0,i.left+D-(ee?0:10)):i.right>U+G-3&&(m.scrollLeft=i.right+(ee?0:10)-U),m}function pf(n,i){i!=null&&(Pa(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function Ko(n){Pa(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function Us(n,i,a){(i!=null||a!=null)&&Pa(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Ax(n,i){Pa(n),n.curOp.scrollToPos=i}function Pa(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=Gp(n,i.from),l=Gp(n,i.to);tg(n,a,l,i.margin)}}function tg(n,i,a,l){var u=hf(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});Us(n,u.scrollLeft,u.scrollTop)}function Vs(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||vf(n,{top:i}),ng(n,i,!0),s&&vf(n),Ks(n,100))}function ng(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 co(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,lg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function js(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+Ju(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+Cr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var uo=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),Fe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Fe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};uo.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var g=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},uo.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},uo.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},uo.prototype.zeroWidthHack=function(){var n=H&&!M?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new $e,this.disableVert=new $e},uo.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),g=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},uo.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var Gs=function(){};Gs.prototype.update=function(){return{bottom:0,right:0}},Gs.prototype.setScrollLeft=function(){},Gs.prototype.setScrollTop=function(){},Gs.prototype.clear=function(){};function Xo(n,i){i||(i=js(n));var a=n.display.barWidth,l=n.display.barHeight;rg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&$a(n),rg(n,js(n)),a=n.display.barWidth,l=n.display.barHeight}function rg(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 ig={native:uo,null:Gs};function og(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&K(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new ig[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Fe(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?co(n,i):Vs(n,i)},n),n.display.scrollbars.addClass&&Ne(n.display.wrapper,n.display.scrollbars.addClass)}var Mx=0;function fo(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:++Mx,markArrays:null},lx(n.curOp)}function ho(n){var i=n.curOp;i&&cx(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Nx(a)})}function Nx(n){for(var i=n.ops,a=0;a<i.length;a++)$x(i[a]);for(var l=0;l<i.length;l++)Ox(i[l]);for(var u=0;u<i.length;u++)Px(i[u]);for(var g=0;g<i.length;g++)Rx(i[g]);for(var m=0;m<i.length;m++)Dx(i[m])}function $x(n){var i=n.cm,a=i.display;Ix(i),n.updateMaxLine&&Yu(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 Ra(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Ox(n){n.updatedDisplay=n.mustUpdate&&gf(n.cm,n.update)}function Px(n){var i=n.cm,a=i.display;n.updatedDisplay&&$a(i),n.barMeasure=js(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Fp(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+Cr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-oo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Rx(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&co(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==ye(rt(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&Xo(i,n.barMeasure),n.updatedDisplay&&yf(i,n.barMeasure),n.selectionChanged&&uf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Qp(n.cm)}function Dx(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&sg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&ng(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&co(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=Ex(i,Ke(l,n.scrollToPos.from),Ke(l,n.scrollToPos.to),n.scrollToPos.margin);Cx(i,u)}var g=n.maybeHiddenMarkers,m=n.maybeUnhiddenMarkers;if(g)for(var w=0;w<g.length;++w)g[w].lines.length||Et(g[w],"hide");if(m)for(var _=0;_<m.length;++_)m[_].lines.length&&Et(m[_],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Et(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function An(n,i){if(n.curOp)return i();fo(n);try{return i()}finally{ho(n)}}function Ut(n,i){return function(){if(n.curOp)return i.apply(n,arguments);fo(n);try{return i.apply(n,arguments)}finally{ho(n)}}}function an(n){return function(){if(this.curOp)return n.apply(this,arguments);fo(this);try{return n.apply(this,arguments)}finally{ho(this)}}}function Vt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);fo(i);try{return n.apply(this,arguments)}finally{ho(i)}}}function Ks(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,X(zx,n))}function zx(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=zs(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var m=g.styles,w=g.text.length>n.options.maxHighlightLength?kr(i.mode,l.state):null,_=hp(n,g,l,!0);w&&(l.state=w),g.styles=_.styles;var S=g.styleClasses,$=_.classes;$?g.styleClasses=$:S&&(g.styleClasses=null);for(var D=!m||m.length!=g.styles.length||S!=$&&(!S||!$||S.bgClass!=$.bgClass||S.textClass!=$.textClass),G=0;!D&&G<m.length;++G)D=m[G]!=g.styles[G];D&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&Uu(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return Ks(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&An(n,function(){for(var g=0;g<u.length;g++)bi(n,u[g],"text")})}}var Ra=function(n,i,a){var l=n.display;this.viewport=i,this.visible=Oa(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=oo(n),this.force=a,this.dims=sf(n),this.events=[]};Ra.prototype.signal=function(n,i){Ln(n,i)&&this.events.push(arguments)},Ra.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Et.apply(null,this.events[n])};function Ix(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Cr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Cr(n)+"px",i.scrollbarsClipped=!0)}function Fx(n){if(n.hasFocus())return null;var i=ye(rt(n));if(!i||!ie(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Te(n).getSelection();l.anchorNode&&l.extend&&ie(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Hx(n){if(!(!n||!n.activeElt||n.activeElt==ye(Ze(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&ie(document.body,n.anchorNode)&&ie(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function gf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return wi(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&&Zp(n)==0)return!1;ag(n)&&(wi(n),i.dims=sf(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),m=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>m&&a.viewTo-m<20&&(m=Math.min(u,a.viewTo)),Ur&&(g=Ku(n.doc,g),m=Ep(n.doc,m));var w=g!=a.viewFrom||m!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;kx(n,g,m),a.viewOffset=Vr(Pe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var _=Zp(n);if(!w&&_==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var S=Fx(n);return _>4&&(a.lineDiv.style.display="none"),qx(n,a.updateLineNumbers,i.dims),_>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Hx(S),V(a.cursorDiv),V(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,w&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,Ks(n,400)),a.updateLineNumbers=null,!0}function sg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==oo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+Ju(n.display)-Qu(n),a.top)}),i.visible=Oa(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=Oa(n.display,n.doc,a));if(!gf(n,i))break;$a(n);var u=js(n);Ws(n),Xo(n,u),yf(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 vf(n,i){var a=new Ra(n,i);if(gf(n,a)){$a(n),sg(n,a);var l=js(n);Ws(n),Xo(n,l),yf(n,l),a.finish()}}function qx(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,m=g.firstChild;function w(ee){var fe=ee.nextSibling;return v&&H&&n.display.currentWheelTarget==ee?ee.style.display="none":ee.parentNode.removeChild(ee),fe}for(var _=l.view,S=l.viewFrom,$=0;$<_.length;$++){var D=_[$];if(!D.hidden)if(!D.node||D.node.parentNode!=g){var G=px(n,D,S,a);g.insertBefore(G,m)}else{for(;m!=D.node;)m=w(m);var U=u&&i!=null&&i<=S&&D.lineNumber;D.changes&&(Ee(D.changes,"gutter")>-1&&(U=!1),$p(n,D,S,a)),U&&(V(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(pe(n.options,S)))),m=D.node.nextSibling}S+=D.size}for(;m;)m=w(m)}function mf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Wt(n,"gutterChanged",n)}function yf(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+Cr(n)+"px"}function lg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=lf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",m=0;m<a.length;m++)if(!a[m].hidden){n.options.fixedGutter&&(a[m].gutter&&(a[m].gutter.style.left=g),a[m].gutterBackground&&(a[m].gutterBackground.style.left=g));var w=a[m].alignable;if(w)for(var _=0;_<w.length;_++)w[_].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function ag(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=pe(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(k("div",[k("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=u.firstChild.offsetWidth,m=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-m)+1,l.lineNumWidth=l.lineNumInnerWidth+m,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",mf(n.display),!0}return!1}function bf(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var g=n[u],m=null;if(typeof g!="string"&&(m=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:g,style:m})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function cg(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],g=u.className,m=u.style,w=i.appendChild(k("div",null,"CodeMirror-gutter "+g));m&&(w.style.cssText=m),g=="CodeMirror-linenumbers"&&(n.lineGutter=w,w.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",mf(n)}function Xs(n){cg(n.display),vn(n),lg(n)}function Bx(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=B("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=B("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=B("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[g],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+Ye+"px; width: 1px;"),u.gutters=k("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=k("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=k("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&x>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&A)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=bf(l.gutters,l.lineNumbers),cg(u),a.init(u)}var Da=0,Gr=null;h?Gr=-.53:s?Gr=15:b?Gr=-.7:E&&(Gr=-1/3);function ug(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 Wx(n){var i=ug(n);return i.x*=Gr,i.y*=Gr,i}function fg(n,i){b&&x==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=ug(i),l=a.x,u=a.y,g=Gr;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var m=n.display,w=m.scroller,_=w.scrollWidth>w.clientWidth,S=w.scrollHeight>w.clientHeight;if(l&&_||u&&S){if(u&&H&&v){e:for(var $=i.target,D=m.view;$!=w;$=$.parentNode)for(var G=0;G<D.length;G++)if(D[G].node==$){n.display.currentWheelTarget=$;break e}}if(l&&!s&&!C&&g!=null){u&&S&&Vs(n,Math.max(0,w.scrollTop+u*g)),co(n,Math.max(0,w.scrollLeft+l*g)),(!u||u&&S)&&tn(i),m.wheelStartX=null;return}if(u&&g!=null){var U=u*g,ee=n.doc.scrollTop,fe=ee+m.wrapper.clientHeight;U<0?ee=Math.max(0,ee+U-50):fe=Math.min(n.doc.height,fe+U+50),vf(n,{top:ee,bottom:fe})}Da<20&&i.deltaMode!==0&&(m.wheelStartX==null?(m.wheelStartX=w.scrollLeft,m.wheelStartY=w.scrollTop,m.wheelDX=l,m.wheelDY=u,setTimeout(function(){if(m.wheelStartX!=null){var ge=w.scrollLeft-m.wheelStartX,we=w.scrollTop-m.wheelStartY,ke=we&&m.wheelDY&&we/m.wheelDY||ge&&m.wheelDX&&ge/m.wheelDX;m.wheelStartX=m.wheelStartY=null,ke&&(Gr=(Gr*Da+ke)/(Da+1),++Da)}},200)):(m.wheelDX+=l,m.wheelDY+=u))}}var Hn=function(n,i){this.ranges=n,this.primIndex=i};Hn.prototype.primary=function(){return this.ranges[this.primIndex]},Hn.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(!dt(a.anchor,l.anchor)||!dt(a.head,l.head))return!1}return!0},Hn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new ht(Bt(this.ranges[i].anchor),Bt(this.ranges[i].head));return new Hn(n,this.primIndex)},Hn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Hn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(_e(i,l.from())>=0&&_e(n,l.to())<=0)return a}return-1};var ht=function(n,i){this.anchor=n,this.head=i};ht.prototype.from=function(){return qo(this.anchor,this.head)},ht.prototype.to=function(){return gn(this.anchor,this.head)},ht.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function hr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(G,U){return _e(G.from(),U.from())}),a=Ee(i,u);for(var g=1;g<i.length;g++){var m=i[g],w=i[g-1],_=_e(w.to(),m.from());if(l&&!m.empty()?_>0:_>=0){var S=qo(w.from(),m.from()),$=gn(w.to(),m.to()),D=w.empty()?m.from()==m.head:w.from()==w.head;g<=a&&--a,i.splice(--g,2,new ht(D?$:S,D?S:$))}}return new Hn(i,a)}function xi(n,i){return new Hn([new ht(n,i||n)],0)}function _i(n){return n.text?Q(n.from.line+n.text.length-1,ue(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function dg(n,i){if(_e(n,i.from)<0)return n;if(_e(n,i.to)<=0)return _i(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+=_i(i).ch-i.to.ch),Q(a,l)}function wf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new ht(dg(u.anchor,i),dg(u.head,i)))}return hr(n.cm,a,n.sel.primIndex)}function hg(n,i,a){return n.line==i.line?Q(a.line,n.ch-i.ch+a.ch):Q(a.line+(n.line-i.line),n.ch)}function Ux(n,i,a){for(var l=[],u=Q(n.first,0),g=u,m=0;m<i.length;m++){var w=i[m],_=hg(w.from,u,g),S=hg(_i(w),u,g);if(u=w.to,g=S,a=="around"){var $=n.sel.ranges[m],D=_e($.head,$.anchor)<0;l[m]=new ht(D?S:_,D?_:S)}else l[m]=new ht(_,_)}return new Hn(l,n.sel.primIndex)}function xf(n){n.doc.mode=Io(n.options,n.doc.modeOption),Ys(n)}function Ys(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,Ks(n,100),n.state.modeGen++,n.curOp&&vn(n)}function pg(n,i){return i.from.ch==0&&i.to.ch==0&&ue(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function _f(n,i,a,l){function u(ke){return a?a[ke]:null}function g(ke,xe,Le){J1(ke,xe,Le,l),Wt(ke,"change",ke,i)}function m(ke,xe){for(var Le=[],He=ke;He<xe;++He)Le.push(new Bo(S[He],u(He),l));return Le}var w=i.from,_=i.to,S=i.text,$=Pe(n,w.line),D=Pe(n,_.line),G=ue(S),U=u(S.length-1),ee=_.line-w.line;if(i.full)n.insert(0,m(0,S.length)),n.remove(S.length,n.size-S.length);else if(pg(n,i)){var fe=m(0,S.length-1);g(D,D.text,U),ee&&n.remove(w.line,ee),fe.length&&n.insert(w.line,fe)}else if($==D)if(S.length==1)g($,$.text.slice(0,w.ch)+G+$.text.slice(_.ch),U);else{var ge=m(1,S.length-1);ge.push(new Bo(G+$.text.slice(_.ch),U,l)),g($,$.text.slice(0,w.ch)+S[0],u(0)),n.insert(w.line+1,ge)}else if(S.length==1)g($,$.text.slice(0,w.ch)+S[0]+D.text.slice(_.ch),u(0)),n.remove(w.line+1,ee);else{g($,$.text.slice(0,w.ch)+S[0],u(0)),g(D,G+D.text.slice(_.ch),U);var we=m(1,S.length-1);ee>1&&n.remove(w.line+1,ee-1),n.insert(w.line+1,we)}Wt(n,"change",n,i)}function Si(n,i,a){function l(u,g,m){if(u.linked)for(var w=0;w<u.linked.length;++w){var _=u.linked[w];if(_.doc!=g){var S=m&&_.sharedHist;a&&!S||(i(_.doc,S),l(_.doc,u,S))}}}l(n,null,!0)}function gg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,af(n),xf(n),vg(n),n.options.direction=i.direction,n.options.lineWrapping||Yu(n),n.options.mode=i.modeOption,vn(n)}function vg(n){(n.doc.direction=="rtl"?Ne:K)(n.display.lineDiv,"CodeMirror-rtl")}function Vx(n){An(n,function(){vg(n),vn(n)})}function za(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 Sf(n,i){var a={from:Bt(i.from),to:_i(i),text:Wr(n,i.from,i.to)};return bg(n,a,i.from.line,i.to.line+1),Si(n,function(l){return bg(l,a,i.from.line,i.to.line+1)},!0),a}function mg(n){for(;n.length;){var i=ue(n);if(i.ranges)n.pop();else break}}function jx(n,i){if(i)return mg(n.done),ue(n.done);if(n.done.length&&!ue(n.done).ranges)return ue(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ue(n.done)}function yg(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,m,w;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(m=jx(u,u.lastOp==l)))w=ue(m.changes),_e(i.from,i.to)==0&&_e(i.from,w.to)==0?w.to=_i(i):m.changes.push(Sf(n,i));else{var _=ue(u.done);for((!_||!_.ranges)&&Ia(n.sel,u.done),m={changes:[Sf(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=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,w||Et(n,"historyAdded")}function Gx(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 Kx(n,i,a,l){var u=n.history,g=l&&l.origin;a==u.lastSelOp||g&&u.lastSelOrigin==g&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==g||Gx(n,g,ue(u.done),i))?u.done[u.done.length-1]=i:Ia(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&mg(u.undone)}function Ia(n,i){var a=ue(i);a&&a.ranges&&a.equals(n)||i.push(n)}function bg(n,i,a,l){var u=i["spans_"+n.id],g=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(m){m.markedSpans&&((u||(u=i["spans_"+n.id]={}))[g]=m.markedSpans),++g})}function Xx(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 Yx(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(Xx(a[u]));return l}function wg(n,i){var a=Yx(n,i),l=ju(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],m=l[u];if(g&&m)e:for(var w=0;w<m.length;++w){for(var _=m[w],S=0;S<g.length;++S)if(g[S].marker==_.marker)continue e;g.push(_)}else m&&(a[u]=m)}return a}function Yo(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Hn.prototype.deepCopy.call(g):g);continue}var m=g.changes,w=[];l.push({changes:w});for(var _=0;_<m.length;++_){var S=m[_],$=void 0;if(w.push({from:S.from,to:S.to,text:S.text}),i)for(var D in S)($=D.match(/^spans_(\d+)$/))&&Ee(i,Number($[1]))>-1&&(ue(w)[D]=S[D],delete S[D])}}return l}function kf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=_e(i,u)<0;g!=_e(a,u)<0?(u=i,i=a):g!=_e(i,a)<0&&(i=a)}return new ht(u,i)}else return new ht(a||i,i)}function Fa(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),nn(n,new Hn([kf(n.sel.primary(),i,a,u)],0),l)}function xg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),g=0;g<n.sel.ranges.length;g++)l[g]=kf(n.sel.ranges[g],i[g],null,u);var m=hr(n.cm,l,n.sel.primIndex);nn(n,m,a)}function Tf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,nn(n,hr(n.cm,u,n.sel.primIndex),l)}function _g(n,i,a,l){nn(n,xi(i,a),l)}function Zx(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new ht(Ke(n,u[g].anchor),Ke(n,u[g].head))},origin:a&&a.origin};return Et(n,"beforeSelectionChange",n,l),n.cm&&Et(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?hr(n.cm,l.ranges,l.ranges.length-1):i}function Sg(n,i,a){var l=n.history.done,u=ue(l);u&&u.ranges?(l[l.length-1]=i,Ha(n,i,a)):nn(n,i,a)}function nn(n,i,a){Ha(n,i,a),Kx(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function Ha(n,i,a){(Ln(n,"beforeSelectionChange")||n.cm&&Ln(n.cm,"beforeSelectionChange"))&&(i=Zx(n,i,a));var l=a&&a.bias||(_e(i.primary().head,n.sel.primary().head)<0?-1:1);kg(n,Cg(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&Ko(n.cm)}function kg(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,Gn(n.cm)),Wt(n,"cursorActivity",n))}function Tg(n){kg(n,Cg(n,n.sel,null,!1))}function Cg(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var m=i.ranges[g],w=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],_=qa(n,m.anchor,w&&w.anchor,a,l),S=m.head==m.anchor?_:qa(n,m.head,w&&w.head,a,l);(u||_!=m.anchor||S!=m.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new ht(_,S))}return u?hr(n.cm,u,i.primIndex):i}function Zo(n,i,a,l,u){var g=Pe(n,i.line);if(g.markedSpans)for(var m=0;m<g.markedSpans.length;++m){var w=g.markedSpans[m],_=w.marker,S="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,$="selectRight"in _?!_.selectRight:_.inclusiveRight;if((w.from==null||(S?w.from<=i.ch:w.from<i.ch))&&(w.to==null||($?w.to>=i.ch:w.to>i.ch))){if(u&&(Et(_,"beforeCursorEnter"),_.explicitlyCleared))if(g.markedSpans){--m;continue}else break;if(!_.atomic)continue;if(a){var D=_.find(l<0?1:-1),G=void 0;if((l<0?$:S)&&(D=Eg(n,D,-l,D&&D.line==i.line?g:null)),D&&D.line==i.line&&(G=_e(D,a))&&(l<0?G<0:G>0))return Zo(n,D,i,l,u)}var U=_.find(l<0?-1:1);return(l<0?S:$)&&(U=Eg(n,U,l,U.line==i.line?g:null)),U?Zo(n,U,i,l,u):null}}return i}function qa(n,i,a,l,u){var g=l||1,m=Zo(n,i,a,g,u)||!u&&Zo(n,i,a,g,!0)||Zo(n,i,a,-g,u)||!u&&Zo(n,i,a,-g,!0);return m||(n.cantEdit=!0,Q(n.first,0))}function Eg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ke(n,Q(i.line-1)):null:a>0&&i.ch==(l||Pe(n,i.line)).text.length?i.line<n.first+n.size-1?Q(i.line+1,0):null:new Q(i.line,i.ch+a)}function Lg(n){n.setSelection(Q(n.firstLine(),0),Q(n.lastLine()),F)}function Ag(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,g,m,w){u&&(l.from=Ke(n,u)),g&&(l.to=Ke(n,g)),m&&(l.text=m),w!==void 0&&(l.origin=w)}),Et(n,"beforeChange",n,l),n.cm&&Et(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 Jo(n,i,a){if(n.cm){if(!n.cm.curOp)return Ut(n.cm,Jo)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Ln(n,"beforeChange")||n.cm&&Ln(n.cm,"beforeChange"))&&(i=Ag(n,i,!0),!i))){var l=wp&&!a&&K1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Mg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Mg(n,i)}}function Mg(n,i){if(!(i.text.length==1&&i.text[0]==""&&_e(i.from,i.to)==0)){var a=wf(n,i);yg(n,i,a,n.cm?n.cm.curOp.id:NaN),Zs(n,i,a,ju(n,i));var l=[];Si(n,function(u,g){!g&&Ee(l,u.history)==-1&&(Pg(u.history,i),l.push(u.history)),Zs(u,i,null,ju(u,i))})}}function Ba(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,m=n.sel,w=i=="undo"?u.done:u.undone,_=i=="undo"?u.undone:u.done,S=0;S<w.length&&(g=w[S],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));S++);if(S!=w.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=w.pop(),g.ranges){if(Ia(g,_),a&&!g.equals(n.sel)){nn(n,g,{clearRedo:!1});return}m=g}else if(l){w.push(g);return}else break;var $=[];Ia(m,_),_.push({changes:$,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var D=Ln(n,"beforeChange")||n.cm&&Ln(n.cm,"beforeChange"),G=function(fe){var ge=g.changes[fe];if(ge.origin=i,D&&!Ag(n,ge,!1))return w.length=0,{};$.push(Sf(n,ge));var we=fe?wf(n,ge):ue(w);Zs(n,ge,we,wg(n,ge)),!fe&&n.cm&&n.cm.scrollIntoView({from:ge.from,to:_i(ge)});var ke=[];Si(n,function(xe,Le){!Le&&Ee(ke,xe.history)==-1&&(Pg(xe.history,ge),ke.push(xe.history)),Zs(xe,ge,null,wg(xe,ge))})},U=g.changes.length-1;U>=0;--U){var ee=G(U);if(ee)return ee.v}}}}function Ng(n,i){if(i!=0&&(n.first+=i,n.sel=new Hn(be(n.sel.ranges,function(u){return new ht(Q(u.anchor.line+i,u.anchor.ch),Q(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){vn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)bi(n.cm,l,"gutter")}}function Zs(n,i,a,l){if(n.cm&&!n.cm.curOp)return Ut(n.cm,Zs)(n,i,a,l);if(i.to.line<n.first){Ng(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);Ng(n,u),i={from:Q(n.first,0),to:Q(i.to.line+u,i.to.ch),text:[ue(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:Q(g,Pe(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Wr(n,i.from,i.to),a||(a=wf(n,i)),n.cm?Jx(n.cm,i,l):_f(n,i,l),Ha(n,a,F),n.cantEdit&&qa(n,Q(n.firstLine(),0))&&(n.cantEdit=!1)}}function Jx(n,i,a){var l=n.doc,u=n.display,g=i.from,m=i.to,w=!1,_=g.line;n.options.lineWrapping||(_=T(fr(Pe(l,g.line))),l.iter(_,m.line+1,function(U){if(U==u.maxLine)return w=!0,!0})),l.sel.contains(i.from,i.to)>-1&&Gn(n),_f(l,i,a,Yp(n)),n.options.lineWrapping||(l.iter(_,g.line+i.text.length,function(U){var ee=Ta(U);ee>u.maxLineLength&&(u.maxLine=U,u.maxLineLength=ee,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),q1(l,g.line),Ks(n,400);var S=i.text.length-(m.line-g.line)-1;i.full?vn(n):g.line==m.line&&i.text.length==1&&!pg(n.doc,i)?bi(n,g.line,"text"):vn(n,g.line,m.line+1,S);var $=Ln(n,"changes"),D=Ln(n,"change");if(D||$){var G={from:g,to:m,text:i.text,removed:i.removed,origin:i.origin};D&&Wt(n,"change",n,G),$&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(G)}n.display.selForContextMenu=null}function Qo(n,i,a,l,u){var g;l||(l=a),_e(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),Jo(n,{from:a,to:l,text:i,origin:u})}function $g(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Og(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],m=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var w=0;w<g.ranges.length;w++)$g(g.ranges[w].anchor,i,a,l),$g(g.ranges[w].head,i,a,l);continue}for(var _=0;_<g.changes.length;++_){var S=g.changes[_];if(a<S.from.line)S.from=Q(S.from.line+l,S.from.ch),S.to=Q(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 Pg(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Og(n.done,a,l,u),Og(n.undone,a,l,u)}function Js(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Pe(n,fp(n,i)):u=T(i),u==null?null:(l(g,u)&&n.cm&&bi(n.cm,u,a),g)}function Qs(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}Qs.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,Q1(u),Wt(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 el(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}el.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],u=l.chunkSize();if(n<u){var g=Math.min(i,u-n),m=l.height;if(l.removeInner(n,g),this.height-=m-l.height,u==g&&(this.children.splice(a--,1),l.parent=null),(i-=g)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Qs))){var w=[];this.collapse(w),this.children=[new Qs(w)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var m=u.lines.length%25+25,w=m;w<u.lines.length;){var _=new Qs(u.lines.slice(w,w+=25));u.height-=_.height,this.children.splice(++l,0,_),_.parent=this}u.lines=u.lines.slice(0,m),this.maybeSpill()}break}n-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new el(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=Ee(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new el(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<g){var m=Math.min(i,g-n);if(u.iterN(n,m,a))return!0;if((i-=m)==0)break;n=0}else n-=g}}};var tl=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};tl.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=T(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var g=qs(this);Fn(a,Math.max(0,a.height-g)),n&&(An(n,function(){Rg(n,a,-g),bi(n,l,"widget")}),Wt(n,"lineWidgetCleared",n,this,l))}},tl.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=qs(this)-i;u&&(yi(this.doc,l)||Fn(l,l.height+u),a&&An(a,function(){a.curOp.forceUpdate=!0,Rg(a,l,u),Wt(a,"lineWidgetChanged",a,n,T(l))}))},sr(tl);function Rg(n,i,a){Vr(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&pf(n,a)}function Qx(n,i,a,l){var u=new tl(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),Js(n,i,"widget",function(m){var w=m.widgets||(m.widgets=[]);if(u.insertAt==null?w.push(u):w.splice(Math.min(w.length,Math.max(0,u.insertAt)),0,u),u.line=m,g&&!yi(n,m)){var _=Vr(m)<n.scrollTop;Fn(m,m.height+qs(u)),_&&pf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Wt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:T(i)),u}var Dg=0,ki=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++Dg};ki.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&fo(n),Ln(this,"clear")){var a=this.find();a&&Wt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var m=this.lines[g],w=Is(m.markedSpans,this);n&&!this.collapsed?bi(n,T(m),"text"):n&&(w.to!=null&&(u=T(m)),w.from!=null&&(l=T(m))),m.markedSpans=U1(m.markedSpans,w),w.from==null&&this.collapsed&&!yi(this.doc,m)&&n&&Fn(m,Vo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var S=fr(this.lines[_]),$=Ta(S);$>n.display.maxLineLength&&(n.display.maxLine=S,n.display.maxLineLength=$,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&vn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Tg(n.doc)),n&&Wt(n,"markerCleared",n,this,l,u),i&&ho(n),this.parent&&this.parent.clear()}},ki.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var g=this.lines[u],m=Is(g.markedSpans,this);if(m.from!=null&&(a=Q(i?g:T(g),m.from),n==-1))return a;if(m.to!=null&&(l=Q(i?g:T(g),m.to),n==1))return l}return a&&{from:a,to:l}},ki.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||An(l,function(){var u=i.line,g=T(i.line),m=ef(l,g);if(m&&(Bp(m),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!yi(a.doc,u)&&a.height!=null){var w=a.height;a.height=null;var _=qs(a)-w;_&&Fn(u,u.height+_)}Wt(l,"markerChanged",l,n)})},ki.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ee(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},ki.prototype.detachLine=function(n){if(this.lines.splice(Ee(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},sr(ki);function es(n,i,a,l,u){if(l&&l.shared)return e_(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Ut(n.cm,es)(n,i,a,l,u);var g=new ki(n,u),m=_e(i,a);if(l&&ae(l,g,!1),m>0||m==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=B("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Cp(n,i.line,i,a,g)||i.line!=a.line&&Cp(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");W1()}g.addToHistory&&yg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var w=i.line,_=n.cm,S;if(n.iter(w,a.line+1,function(D){_&&g.collapsed&&!_.options.lineWrapping&&fr(D)==_.display.maxLine&&(S=!0),g.collapsed&&w!=i.line&&Fn(D,0),V1(D,new xa(g,w==i.line?i.ch:null,w==a.line?a.ch:null),n.cm&&n.cm.curOp),++w}),g.collapsed&&n.iter(i.line,a.line+1,function(D){yi(n,D)&&Fn(D,0)}),g.clearOnEnter&&Fe(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(B1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++Dg,g.atomic=!0),_){if(S&&(_.curOp.updateMaxLine=!0),g.collapsed)vn(_,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var $=i.line;$<=a.line;$++)bi(_,$,"text");g.atomic&&Tg(_.doc),Wt(_,"markerAdded",_,g)}return g}var nl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};nl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Wt(this,"clear")}},nl.prototype.find=function(n,i){return this.primary.find(n,i)},sr(nl);function e_(n,i,a,l,u){l=ae(l),l.shared=!1;var g=[es(n,i,a,l,u)],m=g[0],w=l.widgetNode;return Si(n,function(_){w&&(l.widgetNode=w.cloneNode(!0)),g.push(es(_,Ke(_,i),Ke(_,a),l,u));for(var S=0;S<_.linked.length;++S)if(_.linked[S].isParent)return;m=ue(g)}),new nl(g,m)}function zg(n){return n.findMarks(Q(n.first,0),n.clipPos(Q(n.lastLine())),function(i){return i.parent})}function t_(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),m=n.clipPos(u.to);if(_e(g,m)){var w=es(n,g,m,l.primary,l.primary.type);l.markers.push(w),w.parent=l}}}function n_(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Si(u.primary.doc,function(_){return g.push(_)});for(var m=0;m<u.markers.length;m++){var w=u.markers[m];Ee(g,w.doc)==-1&&(w.parent=null,u.markers.splice(m--,1))}},a=0;a<n.length;a++)i(a)}var r_=0,mn=function(n,i,a,l,u){if(!(this instanceof mn))return new mn(n,i,a,l,u);a==null&&(a=0),el.call(this,[new Qs([new Bo("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=Q(a,0);this.sel=xi(g),this.history=new za(null),this.id=++r_,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),_f(this,{from:g,to:g,text:n}),nn(this,xi(g),F)};mn.prototype=Ie(el.prototype,{constructor:mn,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=Ds(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Vt(function(n){var i=Q(this.first,0),a=this.first+this.size-1;Jo(this,{from:i,to:Q(a,Pe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&Us(this.cm,0,0),nn(this,xi(i),F)}),replaceRange:function(n,i,a,l){i=Ke(this,i),a=a?Ke(this,a):i,Qo(this,n,i,a,l)},getRange:function(n,i,a){var l=Wr(this,Ke(this,n),Ke(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(se(this,n))return Pe(this,n)},getLineNumber:function(n){return T(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Pe(this,n)),fr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ke(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Vt(function(n,i,a){_g(this,Ke(this,typeof n=="number"?Q(n,i||0):n),null,a)}),setSelection:Vt(function(n,i,a){_g(this,Ke(this,n),Ke(this,i||n),a)}),extendSelection:Vt(function(n,i,a){Fa(this,Ke(this,n),i&&Ke(this,i),a)}),extendSelections:Vt(function(n,i){xg(this,dp(this,n),i)}),extendSelectionsBy:Vt(function(n,i){var a=be(this.sel.ranges,n);xg(this,dp(this,a),i)}),setSelections:Vt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new ht(Ke(this,n[u].anchor),Ke(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),nn(this,hr(this.cm,l,i),a)}}),addSelection:Vt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new ht(Ke(this,n),Ke(this,i||n))),nn(this,hr(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=Wr(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=Wr(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:Vt(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var m=u.ranges[g];l[g]={from:m.from(),to:m.to(),text:this.splitLines(n[g]),origin:a}}for(var w=i&&i!="end"&&Ux(this,l,i),_=l.length-1;_>=0;_--)Jo(this,l[_]);w?Sg(this,w):this.cm&&Ko(this.cm)}),undo:Vt(function(){Ba(this,"undo")}),redo:Vt(function(){Ba(this,"redo")}),undoSelection:Vt(function(){Ba(this,"undo",!0)}),redoSelection:Vt(function(){Ba(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 za(this.history),Si(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:Yo(this.history.done),undone:Yo(this.history.undone)}},setHistory:function(n){var i=this.history=new za(this.history);i.done=Yo(n.done.slice(0),null,!0),i.undone=Yo(n.undone.slice(0),null,!0)},setGutterMarker:Vt(function(n,i,a){return Js(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&vt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Vt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&Js(i,a,"gutter",function(){return a.gutterMarkers[n]=null,vt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!se(this,n)||(i=n,n=Pe(this,n),!n))return null}else if(i=T(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Vt(function(n,i,a){return Js(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(ne(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Vt(function(n,i,a){return Js(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var m=g.match(ne(a));if(!m)return!1;var w=m.index+m[0].length;l[u]=g.slice(0,m.index)+(!m.index||w==g.length?"":" ")+g.slice(w)||null}else return!1;return!0})}),addLineWidget:Vt(function(n,i,a){return Qx(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return es(this,Ke(this,n),Ke(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Ke(this,n),es(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ke(this,n);var i=[],a=Pe(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Ke(this,n),i=Ke(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var m=g.markedSpans;if(m)for(var w=0;w<m.length;w++){var _=m[w];!(_.to!=null&&u==n.line&&n.ch>=_.to||_.from==null&&u!=n.line||_.from!=null&&u==i.line&&_.from>=i.ch)&&(!a||a(_.marker))&&l.push(_.marker.parent||_.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;++l)a[l].from!=null&&n.push(a[l].marker)}),n},posFromIndex:function(n){var i,a=this.first,l=this.lineSeparator().length;return this.iter(function(u){var g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Ke(this,Q(a,i))},indexFromPos:function(n){n=Ke(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new mn(Ds(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 mn(Ds(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}],t_(l,zg(this)),l},unlinkDoc:function(n){if(n instanceof kt&&(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),n_(zg(this));break}}if(n.history==this.history){var l=[n.id];Si(n,function(u){return l.push(u.id)},!0),n.history=new za(null),n.history.done=Yo(this.history.done,l),n.history.undone=Yo(this.history.undone,l)}},iterLinkedDocs:function(n){Si(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):Kn(n)},lineSeparator:function(){return this.lineSep||`
|
|
35
|
+
`},setDirection:Vt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Vx(this.cm))})}),mn.prototype.eachLine=mn.prototype.iter;var Ig=0;function i_(n){var i=this;if(Fg(i),!(Lt(i,n)||jr(i.display,n))){tn(n),h&&(Ig=+new Date);var a=lo(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),m=0,w=function(){++m==u&&Ut(i,function(){a=Ke(i.doc,a);var U={from:a,to:a,text:i.doc.splitLines(g.filter(function(ee){return ee!=null}).join(i.doc.lineSeparator())),origin:"paste"};Jo(i.doc,U),Sg(i.doc,xi(Ke(i.doc,a),Ke(i.doc,_i(U))))})()},_=function(U,ee){if(i.options.allowDropFileTypes&&Ee(i.options.allowDropFileTypes,U.type)==-1){w();return}var fe=new FileReader;fe.onerror=function(){return w()},fe.onload=function(){var ge=fe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ge)){w();return}g[ee]=ge,w()},fe.readAsText(U)},S=0;S<l.length;S++)_(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.dataTransfer.getData("Text");if($){var D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),Ha(i.doc,xi(a,a)),D)for(var G=0;G<D.length;++G)Qo(i.doc,"",D[G].anchor,D[G].head,"drag");i.replaceSelection($,"around","paste"),i.display.input.focus()}}catch{}}}}function o_(n,i){if(h&&(!n.state.draggingText||+new Date-Ig<100)){pi(i);return}if(!(Lt(n,i)||jr(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!E)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",C&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),C&&a.parentNode.removeChild(a)}}function s_(n,i){var a=lo(n,i);if(a){var l=document.createDocumentFragment();cf(n,a,l),n.display.dragCursor||(n.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),I(n.display.dragCursor,l)}}function Fg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Hg(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var g=0;g<a.length;g++)n(a[g])})}}var qg=!1;function l_(){qg||(a_(),qg=!0)}function a_(){var n;Fe(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Hg(c_)},100))}),Fe(window,"blur",function(){return Hg(Go)})}function c_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var Ti={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"},rl=0;rl<10;rl++)Ti[rl+48]=Ti[rl+96]=String(rl);for(var Wa=65;Wa<=90;Wa++)Ti[Wa]=String.fromCharCode(Wa);for(var il=1;il<=12;il++)Ti[il+111]=Ti[il+63235]="F"+il;var Kr={};Kr.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"},Kr.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"},Kr.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"},Kr.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"]},Kr.default=H?Kr.macDefault:Kr.pcDefault;function u_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,m=0;m<i.length-1;m++){var w=i[m];if(/^(cmd|meta|m)$/i.test(w))g=!0;else if(/^a(lt)?$/i.test(w))a=!0;else if(/^(c|ctrl|control)$/i.test(w))l=!0;else if(/^s(hift)?$/i.test(w))u=!0;else throw new Error("Unrecognized modifier name: "+w)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function f_(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var u=be(a.split(" "),u_),g=0;g<u.length;g++){var m=void 0,w=void 0;g==u.length-1?(w=u.join(" "),m=l):(w=u.slice(0,g+1).join(" "),m="...");var _=i[w];if(!_)i[w]=m;else if(_!=m)throw new Error("Inconsistent bindings for "+w)}delete n[a]}for(var S in i)n[S]=i[S];return n}function ts(n,i,a,l){i=Ua(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 ts(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var m=ts(n,i.fallthrough[g],a,l);if(m)return m}}}function Bg(n){var i=typeof n=="string"?n:Ti[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Wg(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(te?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(te?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Ug(n,i){if(C&&n.keyCode==34&&n.char)return!1;var a=Ti[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Wg(a,n,i))}function Ua(n){return typeof n=="string"?Kr[n]:n}function ns(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&_e(g.from,ue(l).to)<=0;){var m=l.pop();if(_e(m.from,g.from)<0){g.from=m.from;break}}l.push(g)}An(n,function(){for(var w=l.length-1;w>=0;w--)Qo(n.doc,"",l[w].from,l[w].to,"+delete");Ko(n)})}function Cf(n,i,a){var l=Ft(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Ef(n,i,a){var l=Cf(n,i.ch,a);return l==null?null:new Q(i.line,l,a<0?"after":"before")}function Lf(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=Ve(a,i.doc.direction);if(g){var m=u<0?ue(g):g[0],w=u<0==(m.level==1),_=w?"after":"before",S;if(m.level>0||i.doc.direction=="rtl"){var $=Uo(i,a);S=u<0?a.text.length-1:0;var D=Er(i,$,S).top;S=Jt(function(G){return Er(i,$,G).top==D},u<0==(m.level==1)?m.from:m.to-1,S),_=="before"&&(S=Cf(a,S,1))}else S=u<0?m.to:m.from;return new Q(l,S,_)}}return new Q(l,u<0?a.text.length:0,u<0?"before":"after")}function d_(n,i,a,l){var u=Ve(i,n.doc.direction);if(!u)return Ef(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var g=or(u,a.ch,a.sticky),m=u[g];if(n.doc.direction=="ltr"&&m.level%2==0&&(l>0?m.to>a.ch:m.from<a.ch))return Ef(i,a,l);var w=function(we,ke){return Cf(i,we instanceof Q?we.ch:we,ke)},_,S=function(we){return n.options.lineWrapping?(_=_||Uo(n,i),Xp(n,i,_,we)):{begin:0,end:i.text.length}},$=S(a.sticky=="before"?w(a,-1):a.ch);if(n.doc.direction=="rtl"||m.level==1){var D=m.level==1==l<0,G=w(a,D?1:-1);if(G!=null&&(D?G<=m.to&&G<=$.end:G>=m.from&&G>=$.begin)){var U=D?"before":"after";return new Q(a.line,G,U)}}var ee=function(we,ke,xe){for(var Le=function(wt,jt){return jt?new Q(a.line,w(wt,1),"before"):new Q(a.line,wt,"after")};we>=0&&we<u.length;we+=ke){var He=u[we],Re=ke>0==(He.level!=1),Je=Re?xe.begin:w(xe.end,-1);if(He.from<=Je&&Je<He.to||(Je=Re?He.from:w(He.to,-1),xe.begin<=Je&&Je<xe.end))return Le(Je,Re)}},fe=ee(g+l,l,$);if(fe)return fe;var ge=l>0?$.end:w($.begin,-1);return ge!=null&&!(l>0&&ge==i.text.length)&&(fe=ee(l>0?0:u.length-1,l,S(ge)),fe)?fe:null}var ol={selectAll:Lg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),F)},killLine:function(n){return ns(n,function(i){if(i.empty()){var a=Pe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:Q(i.head.line+1,0)}:{from:i.head,to:Q(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return ns(n,function(i){return{from:Q(i.from().line,0),to:Ke(n.doc,Q(i.to().line+1,0))}})},delLineLeft:function(n){return ns(n,function(i){return{from:Q(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return ns(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 ns(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(Q(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(Q(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Vg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return jg(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return h_(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")},ce)},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")},ce)},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/)?jg(n,i.head):l},ce)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var g=a[u].from(),m=de(n.getLine(g.line),g.ch,l);i.push(Se(l-m%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return An(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Pe(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new Q(u.line,u.ch-1)),u.ch>0)u=new Q(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),Q(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var m=Pe(n.doc,u.line-1).text;m&&(u=new Q(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+m.charAt(m.length-1),Q(u.line-1,m.length-1),u,"+transpose"))}}a.push(new ht(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return An(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);Ko(n)})},openLine:function(n){return n.replaceSelection(`
|
|
36
|
+
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Vg(n,i){var a=Pe(n.doc,i),l=fr(a);return l!=a&&(i=T(l)),Lf(!0,n,l,i,1)}function h_(n,i){var a=Pe(n.doc,i),l=Y1(a);return l!=a&&(i=T(l)),Lf(!0,n,a,i,-1)}function jg(n,i){var a=Vg(n,i.line),l=Pe(n.doc,a.line),u=Ve(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),m=i.line==a.line&&i.ch<=g&&i.ch;return Q(a.line,m?0:g,a.sticky)}return a}function Va(n,i,a){if(typeof i=="string"&&(i=ol[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)!=P}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function p_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=ts(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&ts(i,n.options.extraKeys,a,n)||ts(i,n.options.keyMap,a,n)}var g_=new $e;function sl(n,i,a,l){var u=n.state.keySeq;if(u){if(Bg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:g_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),Gg(n,u+" "+i,a,l))return!0}return Gg(n,i,a,l)}function Gg(n,i,a,l){var u=p_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Wt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(tn(a),uf(n)),!!u}function Kg(n,i){var a=Ug(i,!0);return a?i.shiftKey&&!n.state.keySeq?sl(n,"Shift-"+a,i,function(l){return Va(n,l,!0)})||sl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Va(n,l)}):sl(n,a,i,function(l){return Va(n,l)}):!1}function v_(n,i,a){return sl(n,"'"+a+"'",i,function(l){return Va(n,l,!0)})}var Af=null;function Xg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=ye(rt(i)),!Lt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Kg(i,n);C&&(Af=l?a:null,!l&&a==88&&!ba&&(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)&&m_(i)}}function m_(n){var i=n.display.lineDiv;Ne(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(K(i,"CodeMirror-crosshair"),en(document,"keyup",a),en(document,"mouseover",a))}Fe(document,"keyup",a),Fe(document,"mouseover",a)}function Yg(n){n.keyCode==16&&(this.doc.sel.shift=!1),Lt(this,n)}function Zg(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(jr(i.display,n)||Lt(i,n)||n.ctrlKey&&!n.altKey||H&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(C&&a==Af){Af=null,tn(n);return}if(!(C&&(!n.which||n.which<10)&&Kg(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(v_(i,n,u)||i.display.input.onKeyPress(n))}}}var y_=400,Mf=function(n,i,a){this.time=n,this.pos=i,this.button=a};Mf.prototype.compare=function(n,i,a){return this.time+y_>n&&_e(i,this.pos)==0&&a==this.button};var ll,al;function b_(n,i){var a=+new Date;return al&&al.compare(a,n,i)?(ll=al=null,"triple"):ll&&ll.compare(a,n,i)?(al=new Mf(a,n,i),ll=null,"double"):(ll=new Mf(a,n,i),al=null,"single")}function Jg(n){var i=this,a=i.display;if(!(Lt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,jr(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Nf(i,n)){var l=lo(i,n),u=lr(n),g=l?b_(l,u):"single";Te(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&w_(i,u,l,g,n))&&(u==1?l?__(i,l,g,n):Os(n)==a.scroller&&tn(n):u==2?(l&&Fa(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(j?i.display.input.onContextMenu(n):ff(i)))}}}function w_(n,i,a,l,u){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,sl(n,Wg(g,u),u,function(m){if(typeof m=="string"&&(m=ol[m]),!m)return!1;var w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=m(n,a)!=P}finally{n.state.suppressEdits=!1}return w})}function x_(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=z?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=H?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(H?a.altKey:a.ctrlKey)),u}function __(n,i,a,l){h?setTimeout(X(Qp,n),0):n.curOp.focus=ye(rt(n));var u=x_(n,a,l),g=n.doc.sel,m;n.options.dragDrop&&Bu&&!n.isReadOnly()&&a=="single"&&(m=g.contains(i))>-1&&(_e((m=g.ranges[m]).from(),i)<0||i.xRel>0)&&(_e(m.to(),i)>0||i.xRel<0)?S_(n,l,i,u):k_(n,l,i,u)}function S_(n,i,a,l){var u=n.display,g=!1,m=Ut(n,function(S){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:ff(n)),en(u.wrapper.ownerDocument,"mouseup",m),en(u.wrapper.ownerDocument,"mousemove",w),en(u.scroller,"dragstart",_),en(u.scroller,"drop",m),g||(tn(S),l.addNew||Fa(n.doc,a,null,null,l.extend),v&&!E||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(S){g=g||Math.abs(i.clientX-S.clientX)+Math.abs(i.clientY-S.clientY)>=10},_=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=m,m.copy=!l.moveOnDrag,Fe(u.wrapper.ownerDocument,"mouseup",m),Fe(u.wrapper.ownerDocument,"mousemove",w),Fe(u.scroller,"dragstart",_),Fe(u.scroller,"drop",m),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Qg(n,i,a){if(a=="char")return new ht(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new ht(Q(i.line,0),Ke(n.doc,Q(i.line+1,0)));var l=a(n,i);return new ht(l.from,l.to)}function k_(n,i,a,l){h&&ff(n);var u=n.display,g=n.doc;tn(i);var m,w,_=g.sel,S=_.ranges;if(l.addNew&&!l.extend?(w=g.sel.contains(a),w>-1?m=S[w]:m=new ht(a,a)):(m=g.sel.primary(),w=g.sel.primIndex),l.unit=="rectangle")l.addNew||(m=new ht(a,a)),a=lo(n,i,!0,!0),w=-1;else{var $=Qg(n,a,l.unit);l.extend?m=kf(m,$.anchor,$.head,l.extend):m=$}l.addNew?w==-1?(w=S.length,nn(g,hr(n,S.concat([m]),w),{scroll:!1,origin:"*mouse"})):S.length>1&&S[w].empty()&&l.unit=="char"&&!l.extend?(nn(g,hr(n,S.slice(0,w).concat(S.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),_=g.sel):Tf(g,w,m,Z):(w=0,nn(g,new Hn([m],0),Z),_=g.sel);var D=a;function G(xe){if(_e(D,xe)!=0)if(D=xe,l.unit=="rectangle"){for(var Le=[],He=n.options.tabSize,Re=de(Pe(g,a.line).text,a.ch,He),Je=de(Pe(g,xe.line).text,xe.ch,He),wt=Math.min(Re,Je),jt=Math.max(Re,Je),Ct=Math.min(a.line,xe.line),Mn=Math.min(n.lastLine(),Math.max(a.line,xe.line));Ct<=Mn;Ct++){var yn=Pe(g,Ct).text,Pt=le(yn,wt,He);wt==jt?Le.push(new ht(Q(Ct,Pt),Q(Ct,Pt))):yn.length>Pt&&Le.push(new ht(Q(Ct,Pt),Q(Ct,le(yn,jt,He))))}Le.length||Le.push(new ht(a,a)),nn(g,hr(n,_.ranges.slice(0,w).concat(Le),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(xe)}else{var bn=m,Kt=Qg(n,xe,l.unit),Ht=bn.anchor,Rt;_e(Kt.anchor,Ht)>0?(Rt=Kt.head,Ht=qo(bn.from(),Kt.anchor)):(Rt=Kt.anchor,Ht=gn(bn.to(),Kt.head));var Mt=_.ranges.slice(0);Mt[w]=T_(n,new ht(Ke(g,Ht),Rt)),nn(g,hr(n,Mt,w),Z)}}var U=u.wrapper.getBoundingClientRect(),ee=0;function fe(xe){var Le=++ee,He=lo(n,xe,!0,l.unit=="rectangle");if(He)if(_e(He,D)!=0){n.curOp.focus=ye(rt(n)),G(He);var Re=Oa(u,g);(He.line>=Re.to||He.line<Re.from)&&setTimeout(Ut(n,function(){ee==Le&&fe(xe)}),150)}else{var Je=xe.clientY<U.top?-20:xe.clientY>U.bottom?20:0;Je&&setTimeout(Ut(n,function(){ee==Le&&(u.scroller.scrollTop+=Je,fe(xe))}),50)}}function ge(xe){n.state.selectingText=!1,ee=1/0,xe&&(tn(xe),u.input.focus()),en(u.wrapper.ownerDocument,"mousemove",we),en(u.wrapper.ownerDocument,"mouseup",ke),g.history.lastSelOrigin=null}var we=Ut(n,function(xe){xe.buttons===0||!lr(xe)?ge(xe):fe(xe)}),ke=Ut(n,ge);n.state.selectingText=ke,Fe(u.wrapper.ownerDocument,"mousemove",we),Fe(u.wrapper.ownerDocument,"mouseup",ke)}function T_(n,i){var a=i.anchor,l=i.head,u=Pe(n.doc,a.line);if(_e(a,l)==0&&a.sticky==l.sticky)return i;var g=Ve(u);if(!g)return i;var m=or(g,a.ch,a.sticky),w=g[m];if(w.from!=a.ch&&w.to!=a.ch)return i;var _=m+(w.from==a.ch==(w.level!=1)?0:1);if(_==0||_==g.length)return i;var S;if(l.line!=a.line)S=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var $=or(g,l.ch,l.sticky),D=$-m||(l.ch-a.ch)*(w.level==1?-1:1);$==_-1||$==_?S=D<0:S=D>0}var G=g[_+(S?-1:0)],U=S==(G.level==1),ee=U?G.from:G.to,fe=U?"after":"before";return a.ch==ee&&a.sticky==fe?i:new ht(new Q(a.line,ee,fe),l)}function ev(n,i,a,l){var u,g;if(i.touches)u=i.touches[0].clientX,g=i.touches[0].clientY;else try{u=i.clientX,g=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&tn(i);var m=n.display,w=m.lineDiv.getBoundingClientRect();if(g>w.bottom||!Ln(n,a))return pn(i);g-=w.top-m.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var S=m.gutters.childNodes[_];if(S&&S.getBoundingClientRect().right>=u){var $=R(n.doc,g),D=n.display.gutterSpecs[_];return Et(n,a,n,$,D.className,i),pn(i)}}}function Nf(n,i){return ev(n,i,"gutterClick",!0)}function tv(n,i){jr(n.display,i)||C_(n,i)||Lt(n,i,"contextmenu")||j||n.display.input.onContextMenu(i)}function C_(n,i){return Ln(n,"gutterContextMenu")?ev(n,i,"gutterContextMenu",!1):!1}function nv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Bs(n)}var rs={toString:function(){return"CodeMirror.Init"}},rv={},ja={};function E_(n){var i=n.optionHandlers;function a(l,u,g,m){n.defaults[l]=u,g&&(i[l]=m?function(w,_,S){S!=rs&&g(w,_,S)}:g)}n.defineOption=a,n.Init=rs,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,xf(l)},!0),a("indentUnit",2,xf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){Ys(l),Bs(l),vn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],m=l.doc.first;l.doc.iter(function(_){for(var S=0;;){var $=_.text.indexOf(u,S);if($==-1)break;S=$+u.length,g.push(Q(m,$))}m++});for(var w=g.length-1;w>=0;w--)Qo(l.doc,u,g[w],Q(g[w].line,g[w].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=rs&&l.refresh()}),a("specialCharPlaceholder",nx,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",A?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!J),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){nv(l),Xs(l)},!0),a("keyMap","default",function(l,u,g){var m=Ua(u),w=g!=rs&&Ua(g);w&&w.detach&&w.detach(l,m),m.attach&&m.attach(l,w||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,A_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=bf(u,l.options.lineNumbers),Xs(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?lf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return Xo(l)},!0),a("scrollbarStyle","native",function(l){og(l),Xo(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=bf(l.options.gutters,u),Xs(l)},!0),a("firstLineNumber",1,Xs,!0),a("lineNumberFormatter",function(l){return l},Xs,!0),a("showCursorWhenSelecting",!1,Ws,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Go(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,L_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Ws,!0),a("singleCursorHeightPerLine",!0,Ws,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Ys,!0),a("addModeClass",!1,Ys,!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,Ys,!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 L_(n,i,a){var l=a&&a!=rs;if(!i!=!l){var u=n.display.dragFunctions,g=i?Fe:en;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function A_(n){n.options.lineWrapping?(Ne(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(K(n.display.wrapper,"CodeMirror-wrap"),Yu(n)),af(n),vn(n),Bs(n),setTimeout(function(){return Xo(n)},100)}function kt(n,i){var a=this;if(!(this instanceof kt))return new kt(n,i);this.options=i=i?ae(i):{},ae(rv,i,!1);var l=i.value;typeof l=="string"?l=new mn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new kt.inputStyles[i.inputStyle](this),g=this.display=new Bx(n,l,u,i);g.wrapper.CodeMirror=this,nv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),og(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new $e,keySeq:null,specialChars:null},i.autofocus&&!A&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),M_(this),l_(),fo(this),this.curOp.forceUpdate=!0,gg(this,l),i.autofocus&&!A||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&df(a)},20):Go(this);for(var m in ja)ja.hasOwnProperty(m)&&ja[m](this,i[m],rs);ag(this),i.finishInit&&i.finishInit(this);for(var w=0;w<$f.length;++w)$f[w](this);ho(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}kt.defaults=rv,kt.optionHandlers=ja;function M_(n){var i=n.display;Fe(i.scroller,"mousedown",Ut(n,Jg)),h&&p<11?Fe(i.scroller,"dblclick",Ut(n,function(_){if(!Lt(n,_)){var S=lo(n,_);if(!(!S||Nf(n,_)||jr(n.display,_))){tn(_);var $=n.findWordAt(S);Fa(n.doc,$.anchor,$.head)}}})):Fe(i.scroller,"dblclick",function(_){return Lt(n,_)||tn(_)}),Fe(i.scroller,"contextmenu",function(_){return tv(n,_)}),Fe(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||tv(n,_)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(_){if(_.touches.length!=1)return!1;var S=_.touches[0];return S.radiusX<=1&&S.radiusY<=1}function m(_,S){if(S.left==null)return!0;var $=S.left-_.left,D=S.top-_.top;return $*$+D*D>20*20}Fe(i.scroller,"touchstart",function(_){if(!Lt(n,_)&&!g(_)&&!Nf(n,_)){i.input.ensurePolled(),clearTimeout(a);var S=+new Date;i.activeTouch={start:S,moved:!1,prev:S-l.end<=300?l:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),Fe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Fe(i.scroller,"touchend",function(_){var S=i.activeTouch;if(S&&!jr(i,_)&&S.left!=null&&!S.moved&&new Date-S.start<300){var $=n.coordsChar(i.activeTouch,"page"),D;!S.prev||m(S,S.prev)?D=new ht($,$):!S.prev.prev||m(S,S.prev.prev)?D=n.findWordAt($):D=new ht(Q($.line,0),Ke(n.doc,Q($.line+1,0))),n.setSelection(D.anchor,D.head),n.focus(),tn(_)}u()}),Fe(i.scroller,"touchcancel",u),Fe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Vs(n,i.scroller.scrollTop),co(n,i.scroller.scrollLeft,!0),Et(n,"scroll",n))}),Fe(i.scroller,"mousewheel",function(_){return fg(n,_)}),Fe(i.scroller,"DOMMouseScroll",function(_){return fg(n,_)}),Fe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){Lt(n,_)||pi(_)},over:function(_){Lt(n,_)||(s_(n,_),pi(_))},start:function(_){return o_(n,_)},drop:Ut(n,i_),leave:function(_){Lt(n,_)||Fg(n)}};var w=i.input.getField();Fe(w,"keyup",function(_){return Yg.call(n,_)}),Fe(w,"keydown",Ut(n,Xg)),Fe(w,"keypress",Ut(n,Zg)),Fe(w,"focus",function(_){return df(n,_)}),Fe(w,"blur",function(_){return Go(n,_)})}var $f=[];kt.defineInitHook=function(n){return $f.push(n)};function cl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=zs(n,i).state:a="prev");var m=n.options.tabSize,w=Pe(u,i),_=de(w.text,null,m);w.stateAfter&&(w.stateAfter=null);var S=w.text.match(/^\s*/)[0],$;if(!l&&!/\S/.test(w.text))$=0,a="not";else if(a=="smart"&&($=u.mode.indent(g,w.text.slice(S.length),w.text),$==P||$>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?$=de(Pe(u,i-1).text,null,m):$=0:a=="add"?$=_+n.options.indentUnit:a=="subtract"?$=_-n.options.indentUnit:typeof a=="number"&&($=_+a),$=Math.max(0,$);var D="",G=0;if(n.options.indentWithTabs)for(var U=Math.floor($/m);U;--U)G+=m,D+=" ";if(G<$&&(D+=Se($-G)),D!=S)return Qo(u,D,Q(i,0),Q(i,S.length),"+input"),w.stateAfter=null,!0;for(var ee=0;ee<u.sel.ranges.length;ee++){var fe=u.sel.ranges[ee];if(fe.head.line==i&&fe.head.ch<S.length){var ge=Q(i,S.length);Tf(u,ee,new ht(ge,ge));break}}}var pr=null;function Ga(n){pr=n}function Of(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var m=+new Date-200,w=u=="paste"||n.state.pasteIncoming>m,_=Kn(i),S=null;if(w&&l.ranges.length>1)if(pr&&pr.text.join(`
|
|
37
|
+
`)==i){if(l.ranges.length%pr.text.length==0){S=[];for(var $=0;$<pr.text.length;$++)S.push(g.splitLines(pr.text[$]))}}else _.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(S=be(_,function(we){return[we]}));for(var D=n.curOp.updateInput,G=l.ranges.length-1;G>=0;G--){var U=l.ranges[G],ee=U.from(),fe=U.to();U.empty()&&(a&&a>0?ee=Q(ee.line,ee.ch-a):n.state.overwrite&&!w?fe=Q(fe.line,Math.min(Pe(g,fe.line).text.length,fe.ch+ue(_).length)):w&&pr&&pr.lineWise&&pr.text.join(`
|
|
38
|
+
`)==_.join(`
|
|
39
|
+
`)&&(ee=fe=Q(ee.line,0)));var ge={from:ee,to:fe,text:S?S[G%S.length]:_,origin:u||(w?"paste":n.state.cutIncoming>m?"cut":"+input")};Jo(n.doc,ge),Wt(n,"inputRead",n,ge)}i&&!w&&ov(n,i),Ko(n),n.curOp.updateInput<2&&(n.curOp.updateInput=D),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function iv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&An(i,function(){return Of(i,a,0,null,"paste")}),!0}function ov(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),m=!1;if(g.electricChars){for(var w=0;w<g.electricChars.length;w++)if(i.indexOf(g.electricChars.charAt(w))>-1){m=cl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Pe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(m=cl(n,u.head.line,"smart"));m&&Wt(n,"electricInput",n,u.head.line)}}}function sv(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:Q(u,0),head:Q(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function Pf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function lv(){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"),L&&(n.style.border="1px solid black"),i}function N_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Te(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,m=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Ut(this,i[l])(this,u,m),Et(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"](Ua(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:an(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");he(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(m){return m.priority}),this.state.modeGen++,vn(this)}),removeOverlay:an(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var m=u[g].modeSpec;if(m==l||typeof l=="string"&&m.name==l){u.splice(g,1),this.state.modeGen++,vn(this);return}}}),indentLine:an(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),se(this.doc,l)&&cl(this,l,u,g)}),indentSelection:an(function(l){for(var u=this.doc.sel.ranges,g=-1,m=0;m<u.length;m++){var w=u[m];if(w.empty())w.head.line>g&&(cl(this,w.head.line,l,!0),g=w.head.line,m==this.doc.sel.primIndex&&Ko(this));else{var _=w.from(),S=w.to(),$=Math.max(g,_.line);g=Math.min(this.lastLine(),S.line-(S.ch?0:1))+1;for(var D=$;D<g;++D)cl(this,D,l);var G=this.doc.sel.ranges;_.ch==0&&u.length==G.length&&G[m].from().ch>0&&Tf(this.doc,m,new ht(_,G[m].to()),F)}}}),getTokenAt:function(l,u){return mp(this,l,u)},getLineTokens:function(l,u){return mp(this,Q(l),u,!0)},getTokenTypeAt:function(l){l=Ke(this.doc,l);var u=pp(this,Pe(this.doc,l.line)),g=0,m=(u.length-1)/2,w=l.ch,_;if(w==0)_=u[2];else for(;;){var S=g+m>>1;if((S?u[S*2-1]:0)>=w)m=S;else if(u[S*2+1]<w)g=S+1;else{_=u[S*2+2];break}}var $=_?_.indexOf("overlay "):-1;return $<0?_:$==0?null:_.slice(0,$-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var m=a[u],w=this.getModeAt(l);if(typeof w[u]=="string")m[w[u]]&&g.push(m[w[u]]);else if(w[u])for(var _=0;_<w[u].length;_++){var S=m[w[u][_]];S&&g.push(S)}else w.helperType&&m[w.helperType]?g.push(m[w.helperType]):m[w.name]&&g.push(m[w.name]);for(var $=0;$<m._global.length;$++){var D=m._global[$];D.pred(w,this)&&Ee(g,D.val)==-1&&g.push(D.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=fp(g,l??g.first+g.size-1),zs(this,l+1,u).state},cursorCoords:function(l,u){var g,m=this.doc.sel.primary();return l==null?g=m.head:typeof l=="object"?g=Ke(this.doc,l):g=l?m.from():m.to(),dr(this,g,u||"page")},charCoords:function(l,u){return Aa(this,Ke(this.doc,l),u||"page")},coordsChar:function(l,u){return l=jp(this,l,u||"page"),rf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=jp(this,{top:l,left:0},u||"page").top,R(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var m=!1,w;if(typeof l=="number"){var _=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>_&&(l=_,m=!0),w=Pe(this.doc,l)}else w=l;return La(this,w,{top:0,left:0},u||"page",g||m).top+(m?this.doc.height-Vr(w):0)},defaultTextHeight:function(){return Vo(this.display)},defaultCharWidth:function(){return jo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,m,w){var _=this.display;l=dr(this,Ke(this.doc,l));var S=l.bottom,$=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),_.sizer.appendChild(u),m=="over")S=l.top;else if(m=="above"||m=="near"){var D=Math.max(_.wrapper.clientHeight,this.doc.height),G=Math.max(_.sizer.clientWidth,_.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),$+u.offsetWidth>G&&($=G-u.offsetWidth)}u.style.top=S+"px",u.style.left=u.style.right="",w=="right"?($=_.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?$=0:w=="middle"&&($=(_.sizer.clientWidth-u.offsetWidth)/2),u.style.left=$+"px"),g&&Lx(this,{left:$,top:S,right:$+u.offsetWidth,bottom:S+u.offsetHeight})},triggerOnKeyDown:an(Xg),triggerOnKeyPress:an(Zg),triggerOnKeyUp:Yg,triggerOnMouseDown:an(Jg),execCommand:function(l){if(ol.hasOwnProperty(l))return ol[l].call(null,this)},triggerElectric:an(function(l){ov(this,l)}),findPosH:function(l,u,g,m){var w=1;u<0&&(w=-1,u=-u);for(var _=Ke(this.doc,l),S=0;S<u&&(_=Rf(this.doc,_,w,g,m),!_.hitSide);++S);return _},moveH:an(function(l,u){var g=this;this.extendSelectionsBy(function(m){return g.display.shift||g.doc.extend||m.empty()?Rf(g.doc,m.head,l,u,g.options.rtlMoveVisually):l<0?m.from():m.to()},ce)}),deleteH:an(function(l,u){var g=this.doc.sel,m=this.doc;g.somethingSelected()?m.replaceSelection("",null,"+delete"):ns(this,function(w){var _=Rf(m,w.head,l,u,!1);return l<0?{from:_,to:w.head}:{from:w.head,to:_}})}),findPosV:function(l,u,g,m){var w=1,_=m;u<0&&(w=-1,u=-u);for(var S=Ke(this.doc,l),$=0;$<u;++$){var D=dr(this,S,"div");if(_==null?_=D.left:D.left=_,S=av(this,D,w,g),S.hitSide)break}return S},moveV:an(function(l,u){var g=this,m=this.doc,w=[],_=!this.display.shift&&!m.extend&&m.sel.somethingSelected();if(m.extendSelectionsBy(function($){if(_)return l<0?$.from():$.to();var D=dr(g,$.head,"div");$.goalColumn!=null&&(D.left=$.goalColumn),w.push(D.left);var G=av(g,D,l,u);return u=="page"&&$==m.sel.primary()&&pf(g,Aa(g,G,"div").top-D.top),G},ce),w.length)for(var S=0;S<m.sel.ranges.length;S++)m.sel.ranges[S].goalColumn=w[S]}),findWordAt:function(l){var u=this.doc,g=Pe(u,l.line).text,m=l.ch,w=l.ch;if(g){var _=this.getHelper(l,"wordChars");(l.sticky=="before"||w==g.length)&&m?--m:++w;for(var S=g.charAt(m),$=Ge(S,_)?function(D){return Ge(D,_)}:/\s/.test(S)?function(D){return/\s/.test(D)}:function(D){return!/\s/.test(D)&&!Ge(D)};m>0&&$(g.charAt(m-1));)--m;for(;w<g.length&&$(g.charAt(w));)++w}return new ht(Q(l.line,m),Q(l.line,w))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ne(this.display.cursorDiv,"CodeMirror-overwrite"):K(this.display.cursorDiv,"CodeMirror-overwrite"),Et(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ye(rt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:an(function(l,u){Us(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Cr(this)-this.display.barHeight,width:l.scrollWidth-Cr(this)-this.display.barWidth,clientHeight:Qu(this),clientWidth:oo(this)}},scrollIntoView:an(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:Q(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?Ax(this,l):tg(this,l.from,l.to,l.margin)}),setSize:an(function(l,u){var g=this,m=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};l!=null&&(this.display.wrapper.style.width=m(l)),u!=null&&(this.display.wrapper.style.height=m(u)),this.options.lineWrapping&&Wp(this);var w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,function(_){if(_.widgets){for(var S=0;S<_.widgets.length;S++)if(_.widgets[S].noHScroll){bi(g,w,"widget");break}}++w}),this.curOp.forceUpdate=!0,Et(this,"refresh",this)}),operation:function(l){return An(this,l)},startOperation:function(){return fo(this)},endOperation:function(){return ho(this)},refresh:an(function(){var l=this.display.cachedTextHeight;vn(this),this.curOp.forceUpdate=!0,Bs(this),Us(this,this.doc.scrollLeft,this.doc.scrollTop),mf(this.display),(l==null||Math.abs(l-Vo(this.display))>.5||this.options.lineWrapping)&&af(this),Et(this,"refresh",this)}),swapDoc:an(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),gg(this,l),Bs(this),this.display.input.reset(),Us(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Wt(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}},sr(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,m){n.registerHelper(l,u,m),a[l]._global.push({pred:g,val:m})}}function Rf(n,i,a,l,u){var g=i,m=a,w=Pe(n,i.line),_=u&&n.direction=="rtl"?-a:a;function S(){var ke=i.line+_;return ke<n.first||ke>=n.first+n.size?!1:(i=new Q(ke,i.ch,i.sticky),w=Pe(n,ke))}function $(ke){var xe;if(l=="codepoint"){var Le=w.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Le))xe=null;else{var He=a>0?Le>=55296&&Le<56320:Le>=56320&&Le<57343;xe=new Q(i.line,Math.max(0,Math.min(w.text.length,i.ch+a*(He?2:1))),-a)}}else u?xe=d_(n.cm,w,i,a):xe=Ef(w,i,a);if(xe==null)if(!ke&&S())i=Lf(u,n.cm,w,i.line,_);else return!1;else i=xe;return!0}if(l=="char"||l=="codepoint")$();else if(l=="column")$(!0);else if(l=="word"||l=="group")for(var D=null,G=l=="group",U=n.cm&&n.cm.getHelper(i,"wordChars"),ee=!0;!(a<0&&!$(!ee));ee=!1){var fe=w.text.charAt(i.ch)||`
|
|
40
|
+
`,ge=Ge(fe,U)?"w":G&&fe==`
|
|
41
|
+
`?"n":!G||/\s/.test(fe)?null:"p";if(G&&!ee&&!ge&&(ge="s"),D&&D!=ge){a<0&&(a=1,$(),i.sticky="after");break}if(ge&&(D=ge),a>0&&!$(!ee))break}var we=qa(n,i,g,m,!0);return dt(g,we)&&(we.hitSide=!0),we}function av(n,i,a,l){var u=n.doc,g=i.left,m;if(l=="page"){var w=Math.min(n.display.wrapper.clientHeight,Te(n).innerHeight||u(n).documentElement.clientHeight),_=Math.max(w-.5*Vo(n.display),3);m=(a>0?i.bottom:i.top)+a*_}else l=="line"&&(m=a>0?i.bottom+3:i.top-3);for(var S;S=rf(n,g,m),!!S.outside;){if(a<0?m<=0:m>=u.height){S.hitSide=!0;break}m+=a*5}return S}var mt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new $e,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};mt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,Pf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(w){for(var _=w.target;_;_=_.parentNode){if(_==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}Fe(u,"paste",function(w){!g(w)||Lt(l,w)||iv(w,l)||p<=11&&setTimeout(Ut(l,function(){return i.updateFromDOM()}),20)}),Fe(u,"compositionstart",function(w){i.composing={data:w.data,done:!1}}),Fe(u,"compositionupdate",function(w){i.composing||(i.composing={data:w.data,done:!1})}),Fe(u,"compositionend",function(w){i.composing&&(w.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Fe(u,"touchstart",function(){return a.forceCompositionEnd()}),Fe(u,"input",function(){i.composing||i.readFromDOMSoon()});function m(w){if(!(!g(w)||Lt(l,w))){if(l.somethingSelected())Ga({lineWise:!1,text:l.getSelections()}),w.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var _=sv(l);Ga({lineWise:!0,text:_.text}),w.type=="cut"&&l.operation(function(){l.setSelections(_.ranges,0,F),l.replaceSelection("",null,"cut")})}else return;if(w.clipboardData){w.clipboardData.clearData();var S=pr.text.join(`
|
|
42
|
+
`);if(w.clipboardData.setData("Text",S),w.clipboardData.getData("Text")==S){w.preventDefault();return}}var $=lv(),D=$.firstChild;Pf(D),l.display.lineSpace.insertBefore($,l.display.lineSpace.firstChild),D.value=pr.text.join(`
|
|
43
|
+
`);var G=ye(Ze(u));je(D),setTimeout(function(){l.display.lineSpace.removeChild($),G.focus(),G==u&&a.showPrimarySelection()},50)}}Fe(u,"copy",m),Fe(u,"cut",m)},mt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},mt.prototype.prepareSelection=function(){var n=Jp(this.cm,!1);return n.focus=ye(Ze(this.div))==this.div,n},mt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},mt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},mt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=Ka(i,n.anchorNode,n.anchorOffset),m=Ka(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&m&&!m.bad&&_e(qo(g,m),l)==0&&_e(gn(g,m),u)==0)){var w=i.display.view,_=l.line>=i.display.viewFrom&&cv(i,l)||{node:w[0].measure.map[2],offset:0},S=u.line<i.display.viewTo&&cv(i,u);if(!S){var $=w[w.length-1].measure,D=$.maps?$.maps[$.maps.length-1]:$.map;S={node:D[D.length-1],offset:D[D.length-2]-D[D.length-3]}}if(!_||!S){n.removeAllRanges();return}var G=n.rangeCount&&n.getRangeAt(0),U;try{U=W(_.node,_.offset,S.offset,S.node)}catch{}U&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),U.collapsed||(n.removeAllRanges(),n.addRange(U))):(n.removeAllRanges(),n.addRange(U)),G&&n.anchorNode==null?n.addRange(G):s&&this.startGracePeriod()),this.rememberSelection()}},mt.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)},mt.prototype.showMultipleSelections=function(n){I(this.cm.display.cursorDiv,n.cursors),I(this.cm.display.selectionDiv,n.selection)},mt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},mt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return ie(this.div,i)},mt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ye(Ze(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},mt.prototype.blur=function(){this.div.blur()},mt.prototype.getField=function(){return this.div},mt.prototype.supportsTouch=function(){return!0},mt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):An(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)},mt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},mt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(O&&b&&this.cm.display.gutterSpecs.length&&$_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Ka(i,n.anchorNode,n.anchorOffset),l=Ka(i,n.focusNode,n.focusOffset);a&&l&&An(i,function(){nn(i.doc,xi(a,l),F),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},mt.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=Q(l.line-1,Pe(n.doc,l.line-1).length)),u.ch==Pe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=Q(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,m,w;l.line==i.viewFrom||(g=ao(n,l.line))==0?(m=T(i.view[0].line),w=i.view[0].node):(m=T(i.view[g].line),w=i.view[g-1].node.nextSibling);var _=ao(n,u.line),S,$;if(_==i.view.length-1?(S=i.viewTo-1,$=i.lineDiv.lastChild):(S=T(i.view[_+1].line)-1,$=i.view[_+1].node.previousSibling),!w)return!1;for(var D=n.doc.splitLines(O_(n,w,$,m,S)),G=Wr(n.doc,Q(m,0),Q(S,Pe(n.doc,S).text.length));D.length>1&&G.length>1;)if(ue(D)==ue(G))D.pop(),G.pop(),S--;else if(D[0]==G[0])D.shift(),G.shift(),m++;else break;for(var U=0,ee=0,fe=D[0],ge=G[0],we=Math.min(fe.length,ge.length);U<we&&fe.charCodeAt(U)==ge.charCodeAt(U);)++U;for(var ke=ue(D),xe=ue(G),Le=Math.min(ke.length-(D.length==1?U:0),xe.length-(G.length==1?U:0));ee<Le&&ke.charCodeAt(ke.length-ee-1)==xe.charCodeAt(xe.length-ee-1);)++ee;if(D.length==1&&G.length==1&&m==l.line)for(;U&&U>l.ch&&ke.charCodeAt(ke.length-ee-1)==xe.charCodeAt(xe.length-ee-1);)U--,ee++;D[D.length-1]=ke.slice(0,ke.length-ee).replace(/^\u200b+/,""),D[0]=D[0].slice(U).replace(/\u200b+$/,"");var He=Q(m,U),Re=Q(S,G.length?ue(G).length-ee:0);if(D.length>1||D[0]||_e(He,Re))return Qo(n.doc,D,He,Re,"+input"),!0},mt.prototype.ensurePolled=function(){this.forceCompositionEnd()},mt.prototype.reset=function(){this.forceCompositionEnd()},mt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},mt.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))},mt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&An(this.cm,function(){return vn(n.cm)})},mt.prototype.setUneditable=function(n){n.contentEditable="false"},mt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Ut(this.cm,Of)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},mt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},mt.prototype.onContextMenu=function(){},mt.prototype.resetPosition=function(){},mt.prototype.needsContentAttribute=!0;function cv(n,i){var a=ef(n,i.line);if(!a||a.hidden)return null;var l=Pe(n.doc,i.line),u=Ip(a,l,i.line),g=Ve(l,n.doc.direction),m="left";if(g){var w=or(g,i.ch);m=w%2?"right":"left"}var _=qp(u.map,i.ch,m);return _.offset=_.collapse=="right"?_.end:_.start,_}function $_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function is(n,i){return i&&(n.bad=!0),n}function O_(n,i,a,l,u){var g="",m=!1,w=n.doc.lineSeparator(),_=!1;function S(U){return function(ee){return ee.id==U}}function $(){m&&(g+=w,_&&(g+=w),m=_=!1)}function D(U){U&&($(),g+=U)}function G(U){if(U.nodeType==1){var ee=U.getAttribute("cm-text");if(ee){D(ee);return}var fe=U.getAttribute("cm-marker"),ge;if(fe){var we=n.findMarks(Q(l,0),Q(u+1,0),S(+fe));we.length&&(ge=we[0].find(0))&&D(Wr(n.doc,ge.from,ge.to).join(w));return}if(U.getAttribute("contenteditable")=="false")return;var ke=/^(pre|div|p|li|table|br)$/i.test(U.nodeName);if(!/^br$/i.test(U.nodeName)&&U.textContent.length==0)return;ke&&$();for(var xe=0;xe<U.childNodes.length;xe++)G(U.childNodes[xe]);/^(pre|p)$/i.test(U.nodeName)&&(_=!0),ke&&(m=!0)}else U.nodeType==3&&D(U.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;G(i),i!=a;)i=i.nextSibling,_=!1;return g}function Ka(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return is(n.clipPos(Q(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return P_(g,i,a)}}function P_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!ie(l,i))return is(Q(T(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?ue(n.rest):n.line;return is(Q(T(g),g.text.length),u)}var m=i.nodeType==3?i:null,w=i;for(!m&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(m=i.firstChild,a&&(a=m.nodeValue.length));w.parentNode!=l;)w=w.parentNode;var _=n.measure,S=_.maps;function $(ge,we,ke){for(var xe=-1;xe<(S?S.length:0);xe++)for(var Le=xe<0?_.map:S[xe],He=0;He<Le.length;He+=3){var Re=Le[He+2];if(Re==ge||Re==we){var Je=T(xe<0?n.line:n.rest[xe]),wt=Le[He]+ke;return(ke<0||Re!=ge)&&(wt=Le[He+(ke?1:0)]),Q(Je,wt)}}}var D=$(m,w,a);if(D)return is(D,u);for(var G=w.nextSibling,U=m?m.nodeValue.length-a:0;G;G=G.nextSibling){if(D=$(G,G.firstChild,0),D)return is(Q(D.line,D.ch-U),u);U+=G.textContent.length}for(var ee=w.previousSibling,fe=a;ee;ee=ee.previousSibling){if(D=$(ee,ee.firstChild,-1),D)return is(Q(D.line,D.ch+fe),u);fe+=ee.textContent.length}}var Nt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new $e,this.hasSelection=!1,this.composing=null,this.resetting=!1};Nt.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),L&&(u.style.width="0px"),Fe(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Fe(u,"paste",function(m){Lt(l,m)||iv(m,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(m){if(!Lt(l,m)){if(l.somethingSelected())Ga({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var w=sv(l);Ga({lineWise:!0,text:w.text}),m.type=="cut"?l.setSelections(w.ranges,null,F):(a.prevInput="",u.value=w.text.join(`
|
|
44
|
+
`),je(u))}else return;m.type=="cut"&&(l.state.cutIncoming=+new Date)}}Fe(u,"cut",g),Fe(u,"copy",g),Fe(n.scroller,"paste",function(m){if(!(jr(n,m)||Lt(l,m))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var w=new Event("paste");w.clipboardData=m.clipboardData,u.dispatchEvent(w)}}),Fe(n.lineSpace,"selectstart",function(m){jr(n,m)||tn(m)}),Fe(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"})}}),Fe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Nt.prototype.createField=function(n){this.wrapper=lv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Pf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Nt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Nt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Jp(n);if(n.options.moveInputWithCursor){var u=dr(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),m=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+m.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+m.left-g.left))}return l},Nt.prototype.showSelection=function(n){var i=this.cm,a=i.display;I(a.cursorDiv,n.cursors),I(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Nt.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&je(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Nt.prototype.getField=function(){return this.textarea},Nt.prototype.supportsTouch=function(){return!1},Nt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!A||ye(Ze(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Nt.prototype.blur=function(){this.textarea.blur()},Nt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Nt.prototype.receivedFocus=function(){this.slowPoll()},Nt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Nt.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)},Nt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||vi(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||H&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l=""),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var m=0,w=Math.min(l.length,u.length);m<w&&l.charCodeAt(m)==u.charCodeAt(m);)++m;return An(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},Nt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Nt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Nt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=lo(a,n),m=l.scroller.scrollTop;if(!g||C)return;var w=a.options.resetSelectionOnContextMenu;w&&a.doc.sel.contains(g)==-1&&Ut(a,nn)(a.doc,xi(g),F);var _=u.style.cssText,S=i.wrapper.style.cssText,$=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
46
|
+
top: `+(n.clientY-$.top-5)+"px; left: "+(n.clientX-$.left-5)+`px;
|
|
47
|
+
z-index: 1000; background: `+(h?"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=U,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function G(){if(u.selectionStart!=null){var fe=a.somethingSelected(),ge=""+(fe?u.value:"");u.value="⇚",u.value=ge,i.prevInput=fe?"":"",u.selectionStart=1,u.selectionEnd=ge.length,l.selForContextMenu=a.doc.sel}}function U(){if(i.contextMenuPending==U&&(i.contextMenuPending=!1,i.wrapper.style.cssText=S,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=m),u.selectionStart!=null)){(!h||h&&p<9)&&G();var fe=0,ge=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Ut(a,Lg)(a):fe++<10?l.detectingSelectAll=setTimeout(ge,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ge,200)}}if(h&&p>=9&&G(),j){pi(n);var ee=function(){en(window,"mouseup",ee),setTimeout(U,20)};Fe(window,"mouseup",ee)}else setTimeout(U,50)},Nt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Nt.prototype.setUneditable=function(){},Nt.prototype.needsContentAttribute=!1;function R_(n,i){if(i=i?ae(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=ye(Ze(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=w.getValue()}var u;if(n.form&&(Fe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var m=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=m}}catch{}}i.finishInit=function(_){_.save=l,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,l(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(en(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var w=kt(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return w}function D_(n){n.off=en,n.on=Fe,n.wheelEventPixels=Wx,n.Doc=mn,n.splitLines=Kn,n.countColumn=de,n.findColumn=le,n.isWordChar=Ue,n.Pass=P,n.signal=Et,n.Line=Bo,n.changeEnd=_i,n.scrollbarModel=ig,n.Pos=Q,n.cmpPos=_e,n.modes=Do,n.mimeModes=cr,n.resolveMode=zo,n.getMode=Io,n.modeExtensions=mi,n.extendMode=Fo,n.copyState=kr,n.startState=Ho,n.innerMode=Rs,n.commands=ol,n.keyMap=Kr,n.keyName=Ug,n.isModifierKey=Bg,n.lookupKey=ts,n.normalizeKeyMap=f_,n.StringStream=At,n.SharedTextMarker=nl,n.TextMarker=ki,n.LineWidget=tl,n.e_preventDefault=tn,n.e_stopPropagation=Po,n.e_stop=pi,n.addClass=Ne,n.contains=ie,n.rmClass=K,n.keyNames=Ti}E_(kt),N_(kt);var z_="iter insert remove copy getEditor constructor".split(" ");for(var Xa in mn.prototype)mn.prototype.hasOwnProperty(Xa)&&Ee(z_,Xa)<0&&(kt.prototype[Xa]=function(n){return function(){return n.apply(this.doc,arguments)}}(mn.prototype[Xa]));return sr(mn),kt.inputStyles={textarea:Nt,contenteditable:mt},kt.defineMode=function(n){!kt.defaults.mode&&n!="null"&&(kt.defaults.mode=n),ur.apply(this,arguments)},kt.defineMIME=io,kt.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),kt.defineMIME("text/plain","null"),kt.defineExtension=function(n,i){kt.prototype[n]=i},kt.defineDocExtension=function(n,i){mn.prototype[n]=i},kt.fromTextArea=R_,D_(kt),kt.version="5.65.16",kt})})(Kw);var $s=Kw.exports;const cfe=Wb($s);var ufe={exports:{}};(function(e,t){(function(r){r($s)})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,y=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function T(Bt){return{type:Bt,style:"keyword"}}var R=T("keyword a"),se=T("keyword b"),pe=T("keyword c"),Q=T("keyword d"),_e=T("operator"),dt={type:"atom",style:"atom"};return{if:T("if"),while:R,with:R,else:se,do:se,try:se,finally:se,return:Q,break:Q,continue:Q,new:T("new"),delete:pe,void:pe,throw:pe,debugger:T("debugger"),var:T("var"),const:T("var"),let:T("var"),function:T("function"),catch:T("catch"),for:T("for"),switch:T("switch"),case:T("case"),default:T("default"),in:_e,typeof:_e,instanceof:_e,true:dt,false:dt,null:dt,undefined:dt,NaN:dt,Infinity:dt,this:T("this"),class:T("class"),super:T("atom"),yield:pe,export:T("export"),import:T("import"),extends:pe,await:pe}}(),x=/[+\-*&%=<>!?|~^@]/,C=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function E(T){for(var R=!1,se,pe=!1;(se=T.next())!=null;){if(!R){if(se=="/"&&!pe)return;se=="["?pe=!0:pe&&se=="]"&&(pe=!1)}R=!R&&se=="\\"}}var M,N;function L(T,R,se){return M=T,N=se,R}function O(T,R){var se=T.next();if(se=='"'||se=="'")return R.tokenize=A(se),R.tokenize(T,R);if(se=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return L("number","number");if(se=="."&&T.match(".."))return L("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(se))return L(se);if(se=="="&&T.eat(">"))return L("=>","operator");if(se=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return L("number","number");if(/\d/.test(se))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),L("number","number");if(se=="/")return T.eat("*")?(R.tokenize=H,H(T,R)):T.eat("/")?(T.skipToEnd(),L("comment","comment")):Fn(T,R,1)?(E(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),L("regexp","string-2")):(T.eat("="),L("operator","operator",T.current()));if(se=="`")return R.tokenize=z,z(T,R);if(se=="#"&&T.peek()=="!")return T.skipToEnd(),L("meta","meta");if(se=="#"&&T.eatWhile(y))return L("variable","property");if(se=="<"&&T.match("!--")||se=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),L("comment","comment");if(x.test(se))return(se!=">"||!R.lexical||R.lexical.type!=">")&&(T.eat("=")?(se=="!"||se=="=")&&T.eat("="):/[<>*+\-|&?]/.test(se)&&(T.eat(se),se==">"&&T.eat(se))),se=="?"&&T.eat(".")?L("."):L("operator","operator",T.current());if(y.test(se)){T.eatWhile(y);var pe=T.current();if(R.lastType!="."){if(b.propertyIsEnumerable(pe)){var Q=b[pe];return L(Q.type,Q.style,pe)}if(pe=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return L("async","keyword",pe)}return L("variable","variable",pe)}}function A(T){return function(R,se){var pe=!1,Q;if(d&&R.peek()=="@"&&R.match(C))return se.tokenize=O,L("jsonld-keyword","meta");for(;(Q=R.next())!=null&&!(Q==T&&!pe);)pe=!pe&&Q=="\\";return pe||(se.tokenize=O),L("string","string")}}function H(T,R){for(var se=!1,pe;pe=T.next();){if(pe=="/"&&se){R.tokenize=O;break}se=pe=="*"}return L("comment","comment")}function z(T,R){for(var se=!1,pe;(pe=T.next())!=null;){if(!se&&(pe=="`"||pe=="$"&&T.eat("{"))){R.tokenize=O;break}se=!se&&pe=="\\"}return L("quasi","string-2",T.current())}var J="([{}])";function re(T,R){R.fatArrowAt&&(R.fatArrowAt=null);var se=T.string.indexOf("=>",T.start);if(!(se<0)){if(v){var pe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,se));pe&&(se=pe.index)}for(var Q=0,_e=!1,dt=se-1;dt>=0;--dt){var Bt=T.string.charAt(dt),gn=J.indexOf(Bt);if(gn>=0&&gn<3){if(!Q){++dt;break}if(--Q==0){Bt=="("&&(_e=!0);break}}else if(gn>=3&&gn<6)++Q;else if(y.test(Bt))_e=!0;else if(/["'\/`]/.test(Bt))for(;;--dt){if(dt==0)return;var qo=T.string.charAt(dt-1);if(qo==Bt&&T.string.charAt(dt-2)!="\\"){dt--;break}}else if(_e&&!Q){++dt;break}}_e&&!Q&&(R.fatArrowAt=dt)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function j(T,R,se,pe,Q,_e){this.indented=T,this.column=R,this.type=se,this.prev=Q,this.info=_e,pe!=null&&(this.align=pe)}function ne(T,R){if(!p)return!1;for(var se=T.localVars;se;se=se.next)if(se.name==R)return!0;for(var pe=T.context;pe;pe=pe.prev)for(var se=pe.vars;se;se=se.next)if(se.name==R)return!0}function K(T,R,se,pe,Q){var _e=T.cc;for(V.state=T,V.stream=Q,V.marked=null,V.cc=_e,V.style=R,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var dt=_e.length?_e.pop():h?Ee:de;if(dt(se,pe)){for(;_e.length&&_e[_e.length-1].lex;)_e.pop()();return V.marked?V.marked:se=="variable"&&ne(T,pe)?"variable-2":R}}}var V={state:null,column:null,marked:null,cc:null};function I(){for(var T=arguments.length-1;T>=0;T--)V.cc.push(arguments[T])}function k(){return I.apply(null,arguments),!0}function B(T,R){for(var se=R;se;se=se.next)if(se.name==T)return!0;return!1}function W(T){var R=V.state;if(V.marked="def",!!p){if(R.context){if(R.lexical.info=="var"&&R.context&&R.context.block){var se=ie(T,R.context);if(se!=null){R.context=se;return}}else if(!B(T,R.localVars)){R.localVars=new We(T,R.localVars);return}}s.globalVars&&!B(T,R.globalVars)&&(R.globalVars=new We(T,R.globalVars))}}function ie(T,R){if(R)if(R.block){var se=ie(T,R.prev);return se?se==R.prev?R:new Ne(se,R.vars,!0):null}else return B(T,R.vars)?R:new Ne(R.prev,new We(T,R.vars),!1);else return null}function ye(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function Ne(T,R,se){this.prev=T,this.vars=R,this.block=se}function We(T,R){this.name=T,this.next=R}var je=new We("this",new We("arguments",null));function it(){V.state.context=new Ne(V.state.context,V.state.localVars,!1),V.state.localVars=je}function rt(){V.state.context=new Ne(V.state.context,V.state.localVars,!0),V.state.localVars=null}it.lex=rt.lex=!0;function Ze(){V.state.localVars=V.state.context.vars,V.state.context=V.state.context.prev}Ze.lex=!0;function Te(T,R){var se=function(){var pe=V.state,Q=pe.indented;if(pe.lexical.type=="stat")Q=pe.lexical.indented;else for(var _e=pe.lexical;_e&&_e.type==")"&&_e.align;_e=_e.prev)Q=_e.indented;pe.lexical=new j(Q,V.stream.column(),T,null,pe.lexical,R)};return se.lex=!0,se}function X(){var T=V.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}X.lex=!0;function ae(T){function R(se){return se==T?k():T==";"||se=="}"||se==")"||se=="]"?I():k(R)}return R}function de(T,R){return T=="var"?k(Te("vardef",R),Po,ae(";"),X):T=="keyword a"?k(Te("form"),P,de,X):T=="keyword b"?k(Te("form"),de,X):T=="keyword d"?V.stream.match(/^\s*$/,!1)?k():k(Te("stat"),Z,ae(";"),X):T=="debugger"?k(ae(";")):T=="{"?k(Te("}"),rt,Jt,X,Ze):T==";"?k():T=="if"?(V.state.lexical.info=="else"&&V.state.cc[V.state.cc.length-1]==X&&V.state.cc.pop()(),k(Te("form"),P,de,X,Ro)):T=="function"?k(Kn):T=="for"?k(Te("form"),rt,ya,de,Ze,X):T=="class"||v&&R=="interface"?(V.marked="keyword",k(Te("form",T=="class"?T:R),Do,X)):T=="variable"?v&&R=="declare"?(V.marked="keyword",k(de)):v&&(R=="module"||R=="enum"||R=="type")&&V.stream.match(/^\s*\w/,!1)?(V.marked="keyword",R=="enum"?k(Pe):R=="type"?k(ba,ae("operator"),Ve,ae(";")):k(Te("form"),pn,ae("{"),Te("}"),Jt,X,X)):v&&R=="namespace"?(V.marked="keyword",k(Te("form"),Ee,de,X)):v&&R=="abstract"?(V.marked="keyword",k(de)):k(Te("stat"),De):T=="switch"?k(Te("form"),P,ae("{"),Te("}","switch"),rt,Jt,X,X,Ze):T=="case"?k(Ee,ae(":")):T=="default"?k(ae(":")):T=="catch"?k(Te("form"),it,$e,de,X,Ze):T=="export"?k(Te("stat"),zo,X):T=="import"?k(Te("stat"),mi,X):T=="async"?k(de):R=="@"?k(Ee,de):I(Te("stat"),Ee,ae(";"),X)}function $e(T){if(T=="(")return k(ar,ae(")"))}function Ee(T,R){return F(T,R,!1)}function Ye(T,R){return F(T,R,!0)}function P(T){return T!="("?I():k(Te(")"),Z,ae(")"),X)}function F(T,R,se){if(V.state.fatArrowAt==V.stream.start){var pe=se?be:ue;if(T=="(")return k(it,Te(")"),nt(ar,")"),X,ae("=>"),pe,Ze);if(T=="variable")return I(it,pn,ae("=>"),pe,Ze)}var Q=se?le:ce;return te.hasOwnProperty(T)?k(Q):T=="function"?k(Kn,Q):T=="class"||v&&R=="interface"?(V.marked="keyword",k(Te("form"),Wu,X)):T=="keyword c"||T=="async"?k(se?Ye:Ee):T=="("?k(Te(")"),Z,ae(")"),X,Q):T=="operator"||T=="spread"?k(se?Ye:Ee):T=="["?k(Te("]"),At,X,Q):T=="{"?Ft(Ge,"}",null,Q):T=="quasi"?I(ve,Q):T=="new"?k(he(se)):k()}function Z(T){return T.match(/[;\}\)\],]/)?I():I(Ee)}function ce(T,R){return T==","?k(Z):le(T,R,!1)}function le(T,R,se){var pe=se==!1?ce:le,Q=se==!1?Ee:Ye;if(T=="=>")return k(it,se?be:ue,Ze);if(T=="operator")return/\+\+|--/.test(R)||v&&R=="!"?k(pe):v&&R=="<"&&V.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Te(">"),nt(Ve,">"),X,pe):R=="?"?k(Ee,ae(":"),Q):k(Q);if(T=="quasi")return I(ve,pe);if(T!=";"){if(T=="(")return Ft(Ye,")","call",pe);if(T==".")return k(Ue,pe);if(T=="[")return k(Te("]"),Z,ae("]"),X,pe);if(v&&R=="as")return V.marked="keyword",k(Ve,pe);if(T=="regexp")return V.state.lastType=V.marked="operator",V.stream.backUp(V.stream.pos-V.stream.start-1),k(Q)}}function ve(T,R){return T!="quasi"?I():R.slice(R.length-2)!="${"?k(ve):k(Z,Se)}function Se(T){if(T=="}")return V.marked="string-2",V.state.tokenize=z,k(ve)}function ue(T){return re(V.stream,V.state),I(T=="{"?de:Ee)}function be(T){return re(V.stream,V.state),I(T=="{"?de:Ye)}function he(T){return function(R){return R=="."?k(T?Ie:Ae):R=="variable"&&v?k(Ln,T?le:ce):I(T?Ye:Ee)}}function Ae(T,R){if(R=="target")return V.marked="keyword",k(ce)}function Ie(T,R){if(R=="target")return V.marked="keyword",k(le)}function De(T){return T==":"?k(X,de):I(ce,ae(";"),X)}function Ue(T){if(T=="variable")return V.marked="property",k()}function Ge(T,R){if(T=="async")return V.marked="property",k(Ge);if(T=="variable"||V.style=="keyword"){if(V.marked="property",R=="get"||R=="set")return k(vt);var se;return v&&V.state.fatArrowAt==V.stream.start&&(se=V.stream.match(/^\s*:\s*/,!1))&&(V.state.fatArrowAt=V.stream.pos+se[0].length),k(tt)}else{if(T=="number"||T=="string")return V.marked=d?"property":V.style+" property",k(tt);if(T=="jsonld-keyword")return k(tt);if(v&&ye(R))return V.marked="keyword",k(Ge);if(T=="[")return k(Ee,ir,ae("]"),tt);if(T=="spread")return k(Ye,tt);if(R=="*")return V.marked="keyword",k(Ge);if(T==":")return I(tt)}}function vt(T){return T!="variable"?I(tt):(V.marked="property",k(Kn))}function tt(T){if(T==":")return k(Ye);if(T=="(")return I(Kn)}function nt(T,R,se){function pe(Q,_e){if(se?se.indexOf(Q)>-1:Q==","){var dt=V.state.lexical;return dt.info=="call"&&(dt.pos=(dt.pos||0)+1),k(function(Bt,gn){return Bt==R||gn==R?I():I(T)},pe)}return Q==R||_e==R?k():se&&se.indexOf(";")>-1?I(T):k(ae(R))}return function(Q,_e){return Q==R||_e==R?k():I(T,pe)}}function Ft(T,R,se){for(var pe=3;pe<arguments.length;pe++)V.cc.push(arguments[pe]);return k(Te(R,se),nt(T,R),X)}function Jt(T){return T=="}"?k():I(de,Jt)}function ir(T,R){if(v){if(T==":")return k(Ve);if(R=="?")return k(ir)}}function In(T,R){if(v&&(T==":"||R=="in"))return k(Ve)}function or(T){if(v&&T==":")return V.stream.match(/^\s*\w+\s+is\b/,!1)?k(Ee,Qt,Ve):k(Ve)}function Qt(T,R){if(R=="is")return V.marked="keyword",k()}function Ve(T,R){if(R=="keyof"||R=="typeof"||R=="infer"||R=="readonly")return V.marked="keyword",k(R=="typeof"?Ye:Ve);if(T=="variable"||R=="void")return V.marked="type",k(Gn);if(R=="|"||R=="&")return k(Ve);if(T=="string"||T=="number"||T=="atom")return k(Gn);if(T=="[")return k(Te("]"),nt(Ve,"]",","),X,Gn);if(T=="{")return k(Te("}"),Fe,X,Gn);if(T=="(")return k(nt(Lt,")"),ro,Gn);if(T=="<")return k(nt(Ve,">"),Ve);if(T=="quasi")return I(en,Gn)}function ro(T){if(T=="=>")return k(Ve)}function Fe(T){return T.match(/[\}\)\]]/)?k():T==","||T==";"?k(Fe):I(Br,Fe)}function Br(T,R){if(T=="variable"||V.style=="keyword")return V.marked="property",k(Br);if(R=="?"||T=="number"||T=="string")return k(Br);if(T==":")return k(Ve);if(T=="[")return k(ae("variable"),In,ae("]"),Br);if(T=="(")return I(vi,Br);if(!T.match(/[;\}\)\],]/))return k()}function en(T,R){return T!="quasi"?I():R.slice(R.length-2)!="${"?k(en):k(Ve,Et)}function Et(T){if(T=="}")return V.marked="string-2",V.state.tokenize=z,k(en)}function Lt(T,R){return T=="variable"&&V.stream.match(/^\s*[?:]/,!1)||R=="?"?k(Lt):T==":"?k(Ve):T=="spread"?k(Lt):I(Ve)}function Gn(T,R){if(R=="<")return k(Te(">"),nt(Ve,">"),X,Gn);if(R=="|"||T=="."||R=="&")return k(Ve);if(T=="[")return k(Ve,ae("]"),Gn);if(R=="extends"||R=="implements")return V.marked="keyword",k(Ve);if(R=="?")return k(Ve,ae(":"),Ve)}function Ln(T,R){if(R=="<")return k(Te(">"),nt(Ve,">"),X,Gn)}function sr(){return I(Ve,tn)}function tn(T,R){if(R=="=")return k(Ve)}function Po(T,R){return R=="enum"?(V.marked="keyword",k(Pe)):I(pn,ir,lr,Bu)}function pn(T,R){if(v&&ye(R))return V.marked="keyword",k(pn);if(T=="variable")return W(R),k();if(T=="spread")return k(pn);if(T=="[")return Ft(Os,"]");if(T=="{")return Ft(pi,"}")}function pi(T,R){return T=="variable"&&!V.stream.match(/^\s*:/,!1)?(W(R),k(lr)):(T=="variable"&&(V.marked="property"),T=="spread"?k(pn):T=="}"?I():T=="["?k(Ee,ae("]"),ae(":"),pi):k(ae(":"),pn,lr))}function Os(){return I(pn,lr)}function lr(T,R){if(R=="=")return k(Ye)}function Bu(T){if(T==",")return k(Po)}function Ro(T,R){if(T=="keyword b"&&R=="else")return k(Te("form","else"),de,X)}function ya(T,R){if(R=="await")return k(ya);if(T=="(")return k(Te(")"),Ps,X)}function Ps(T){return T=="var"?k(Po,gi):T=="variable"?k(gi):I(gi)}function gi(T,R){return T==")"?k():T==";"?k(gi):R=="in"||R=="of"?(V.marked="keyword",k(Ee,gi)):I(Ee,gi)}function Kn(T,R){if(R=="*")return V.marked="keyword",k(Kn);if(T=="variable")return W(R),k(Kn);if(T=="(")return k(it,Te(")"),nt(ar,")"),X,or,de,Ze);if(v&&R=="<")return k(Te(">"),nt(sr,">"),X,Kn)}function vi(T,R){if(R=="*")return V.marked="keyword",k(vi);if(T=="variable")return W(R),k(vi);if(T=="(")return k(it,Te(")"),nt(ar,")"),X,or,Ze);if(v&&R=="<")return k(Te(">"),nt(sr,">"),X,vi)}function ba(T,R){if(T=="keyword"||T=="variable")return V.marked="type",k(ba);if(R=="<")return k(Te(">"),nt(sr,">"),X)}function ar(T,R){return R=="@"&&k(Ee,ar),T=="spread"?k(ar):v&&ye(R)?(V.marked="keyword",k(ar)):v&&T=="this"?k(ir,lr):I(pn,ir,lr)}function Wu(T,R){return T=="variable"?Do(T,R):cr(T,R)}function Do(T,R){if(T=="variable")return W(R),k(cr)}function cr(T,R){if(R=="<")return k(Te(">"),nt(sr,">"),X,cr);if(R=="extends"||R=="implements"||v&&T==",")return R=="implements"&&(V.marked="keyword"),k(v?Ve:Ee,cr);if(T=="{")return k(Te("}"),ur,X)}function ur(T,R){if(T=="async"||T=="variable"&&(R=="static"||R=="get"||R=="set"||v&&ye(R))&&V.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return V.marked="keyword",k(ur);if(T=="variable"||V.style=="keyword")return V.marked="property",k(io,ur);if(T=="number"||T=="string")return k(io,ur);if(T=="[")return k(Ee,ir,ae("]"),io,ur);if(R=="*")return V.marked="keyword",k(ur);if(v&&T=="(")return I(vi,ur);if(T==";"||T==",")return k(ur);if(T=="}")return k();if(R=="@")return k(Ee,ur)}function io(T,R){if(R=="!"||R=="?")return k(io);if(T==":")return k(Ve,lr);if(R=="=")return k(Ye);var se=V.state.lexical.prev,pe=se&&se.info=="interface";return I(pe?vi:Kn)}function zo(T,R){return R=="*"?(V.marked="keyword",k(Ho,ae(";"))):R=="default"?(V.marked="keyword",k(Ee,ae(";"))):T=="{"?k(nt(Io,"}"),Ho,ae(";")):I(de)}function Io(T,R){if(R=="as")return V.marked="keyword",k(ae("variable"));if(T=="variable")return I(Ye,Io)}function mi(T){return T=="string"?k():T=="("?I(Ee):T=="."?I(ce):I(Fo,kr,Ho)}function Fo(T,R){return T=="{"?Ft(Fo,"}"):(T=="variable"&&W(R),R=="*"&&(V.marked="keyword"),k(Rs))}function kr(T){if(T==",")return k(Fo,kr)}function Rs(T,R){if(R=="as")return V.marked="keyword",k(Fo)}function Ho(T,R){if(R=="from")return V.marked="keyword",k(Ee)}function At(T){return T=="]"?k():I(nt(Ye,"]"))}function Pe(){return I(Te("form"),pn,ae("{"),Te("}"),nt(Wr,"}"),X,X)}function Wr(){return I(pn,lr)}function Ds(T,R){return T.lastType=="operator"||T.lastType==","||x.test(R.charAt(0))||/[,.]/.test(R.charAt(0))}function Fn(T,R,se){return R.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(R.lastType)||R.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(se||0)))}return{startState:function(T){var R={tokenize:O,lastType:"sof",cc:[],lexical:new j((T||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Ne(null,null,!1),indented:T||0};return s.globalVars&&typeof s.globalVars=="object"&&(R.globalVars=s.globalVars),R},token:function(T,R){if(T.sol()&&(R.lexical.hasOwnProperty("align")||(R.lexical.align=!1),R.indented=T.indentation(),re(T,R)),R.tokenize!=H&&T.eatSpace())return null;var se=R.tokenize(T,R);return M=="comment"?se:(R.lastType=M=="operator"&&(N=="++"||N=="--")?"incdec":M,K(R,se,M,N,T))},indent:function(T,R){if(T.tokenize==H||T.tokenize==z)return r.Pass;if(T.tokenize!=O)return 0;var se=R&&R.charAt(0),pe=T.lexical,Q;if(!/^\s*else\b/.test(R))for(var _e=T.cc.length-1;_e>=0;--_e){var dt=T.cc[_e];if(dt==X)pe=pe.prev;else if(dt!=Ro&&dt!=Ze)break}for(;(pe.type=="stat"||pe.type=="form")&&(se=="}"||(Q=T.cc[T.cc.length-1])&&(Q==ce||Q==le)&&!/^[,\.=+\-*:?[\(]/.test(R));)pe=pe.prev;f&&pe.type==")"&&pe.prev.type=="stat"&&(pe=pe.prev);var Bt=pe.type,gn=se==Bt;return Bt=="vardef"?pe.indented+(T.lastType=="operator"||T.lastType==","?pe.info.length+1:0):Bt=="form"&&se=="{"?pe.indented:Bt=="form"?pe.indented+c:Bt=="stat"?pe.indented+(Ds(T,R)?f||c:0):pe.info=="switch"&&!gn&&s.doubleIndentSwitch!=!1?pe.indented+(/^(?:case|default)\b/.test(R)?c:2*c):pe.align?pe.column+(gn?0:1):pe.indented+(gn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Fn,skipExpression:function(T){K(T,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var ffe=ufe.exports,dfe={exports:{}};(function(e,t){(function(r){r($s)})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var y,b;function x(k,B){function W(Ne){return B.tokenize=Ne,Ne(k,B)}var ie=k.next();if(ie=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?W(M("atom","]]>")):null:k.match("--")?W(M("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),W(N(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),B.tokenize=M("meta","?>"),"meta"):(y=k.eat("/")?"closeTag":"openTag",B.tokenize=C,"tag bracket");if(ie=="&"){var ye;return k.eat("#")?k.eat("x")?ye=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):ye=k.eatWhile(/[\d]/)&&k.eat(";"):ye=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),ye?"atom":"error"}else return k.eatWhile(/[^&<]/),null}x.isInText=!0;function C(k,B){var W=k.next();if(W==">"||W=="/"&&k.eat(">"))return B.tokenize=x,y=W==">"?"endTag":"selfcloseTag","tag bracket";if(W=="=")return y="equals",null;if(W=="<"){B.tokenize=x,B.state=z,B.tagName=B.tagStart=null;var ie=B.tokenize(k,B);return ie?ie+" tag error":"tag error"}else return/[\'\"]/.test(W)?(B.tokenize=E(W),B.stringStartCol=k.column(),B.tokenize(k,B)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function E(k){var B=function(W,ie){for(;!W.eol();)if(W.next()==k){ie.tokenize=C;break}return"string"};return B.isInAttribute=!0,B}function M(k,B){return function(W,ie){for(;!W.eol();){if(W.match(B)){ie.tokenize=x;break}W.next()}return k}}function N(k){return function(B,W){for(var ie;(ie=B.next())!=null;){if(ie=="<")return W.tokenize=N(k+1),W.tokenize(B,W);if(ie==">")if(k==1){W.tokenize=x;break}else return W.tokenize=N(k-1),W.tokenize(B,W)}return"meta"}}function L(k){return k&&k.toLowerCase()}function O(k,B,W){this.prev=k.context,this.tagName=B||"",this.indent=k.indented,this.startOfLine=W,(h.doNotIndent.hasOwnProperty(B)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function A(k){k.context&&(k.context=k.context.prev)}function H(k,B){for(var W;;){if(!k.context||(W=k.context.tagName,!h.contextGrabbers.hasOwnProperty(L(W))||!h.contextGrabbers[L(W)].hasOwnProperty(L(B))))return;A(k)}}function z(k,B,W){return k=="openTag"?(W.tagStart=B.column(),J):k=="closeTag"?re:z}function J(k,B,W){return k=="word"?(W.tagName=B.current(),b="tag",ne):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",ne(k,B,W)):(b="error",J)}function re(k,B,W){if(k=="word"){var ie=B.current();return W.context&&W.context.tagName!=ie&&h.implicitlyClosed.hasOwnProperty(L(W.context.tagName))&&A(W),W.context&&W.context.tagName==ie||h.matchClosing===!1?(b="tag",te):(b="tag error",j)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",te(k,B,W)):(b="error",j)}function te(k,B,W){return k!="endTag"?(b="error",te):(A(W),z)}function j(k,B,W){return b="error",te(k,B,W)}function ne(k,B,W){if(k=="word")return b="attribute",K;if(k=="endTag"||k=="selfcloseTag"){var ie=W.tagName,ye=W.tagStart;return W.tagName=W.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(L(ie))?H(W,ie):(H(W,ie),W.context=new O(W,ie,ye==W.indented)),z}return b="error",ne}function K(k,B,W){return k=="equals"?V:(h.allowMissing||(b="error"),ne(k,B,W))}function V(k,B,W){return k=="string"?I:k=="word"&&h.allowUnquoted?(b="string",ne):(b="error",ne(k,B,W))}function I(k,B,W){return k=="string"?I:ne(k,B,W)}return{startState:function(k){var B={tokenize:x,state:z,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(B.baseIndent=k),B},token:function(k,B){if(!B.tagName&&k.sol()&&(B.indented=k.indentation()),k.eatSpace())return null;y=null;var W=B.tokenize(k,B);return(W||y)&&W!="comment"&&(b=null,B.state=B.state(y||W,k,B),b&&(W=b=="error"?W+" error":b)),W},indent:function(k,B,W){var ie=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(ie&&ie.noIndent)return r.Pass;if(k.tokenize!=C&&k.tokenize!=x)return W?W.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(B))return 0;var ye=B&&/^<(\/)?([\w_:\.-]*)/.exec(B);if(ye&&ye[1])for(;ie;)if(ie.tagName==ye[2]){ie=ie.prev;break}else if(h.implicitlyClosed.hasOwnProperty(L(ie.tagName)))ie=ie.prev;else break;else if(ye)for(;ie;){var Ne=h.contextGrabbers[L(ie.tagName)];if(Ne&&Ne.hasOwnProperty(L(ye[2])))ie=ie.prev;else break}for(;ie&&ie.prev&&!ie.startOfLine;)ie=ie.prev;return ie?ie.indent+d:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(k){k.state==V&&(k.state=ne)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var B=[],W=k.context;W;W=W.prev)B.push(W.tagName);return B.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 hfe=dfe.exports;(function(e,t){(function(r){r($s,hfe,ffe)})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(x){var C=x.tagName;x.tagName=null;var E=d.indent(x,"","");return x.tagName=C,E}function v(x,C){return C.context.mode==d?y(x,C,C.context):b(x,C,C.context)}function y(x,C,E){if(E.depth==2)return x.match(/^.*?\*\//)?E.depth=1:x.skipToEnd(),"comment";if(x.peek()=="{"){d.skipAttribute(E.state);var M=p(E.state),N=E.state.context;if(N&&x.match(/^[^>]*>\s*$/,!1)){for(;N.prev&&!N.startOfLine;)N=N.prev;N.startOfLine?M-=c.indentUnit:E.prev.state.lexical&&(M=E.prev.state.lexical.indented)}else E.depth==1&&(M+=c.indentUnit);return C.context=new o(r.startState(h,M),h,0,C.context),null}if(E.depth==1){if(x.peek()=="<")return d.skipAttribute(E.state),C.context=new o(r.startState(d,p(E.state)),d,0,C.context),null;if(x.match("//"))return x.skipToEnd(),"comment";if(x.match("/*"))return E.depth=2,v(x,C)}var L=d.token(x,E.state),O=x.current(),A;return/\btag\b/.test(L)?/>$/.test(O)?E.state.context?E.depth=0:C.context=C.context.prev:/^</.test(O)&&(E.depth=1):!L&&(A=O.indexOf("{"))>-1&&x.backUp(O.length-A),L}function b(x,C,E){if(x.peek()=="<"&&!x.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(x,E.state))return C.context=new o(r.startState(d,h.indent(E.state,"","")),d,0,C.context),h.skipExpression(E.state),null;var M=h.token(x,E.state);if(!M&&E.depth!=null){var N=x.current();N=="{"?E.depth++:N=="}"&&--E.depth==0&&(C.context=C.context.prev)}return M}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(x){return{context:s(x.context)}},token:v,indent:function(x,C,E){return x.context.mode.indent(x.context.state,C,E)},innerMode:function(x){return x.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(e,t){(function(r){r($s)})(function(r){r.defineOption("placeholder","",function(p,v,y){var b=y&&y!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var x=p.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var y=p.getOption("placeholder");typeof y=="string"&&(y=document.createTextNode(y)),v.appendChild(y),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var y=p.getInputField();v=y.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(y.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),y=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(y?" CodeMirror-empty":""),y?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})();(function(e,t){(function(r){r($s)})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(y){if(y.which!=1)return;r.e_preventDefault(y);var b=p.orientation=="horizontal"?"pageX":"pageY",x=y[b],C=p.pos;function E(){r.off(document,"mousemove",M),r.off(document,"mouseup",E)}function M(N){if(N.which!=1)return E();p.moveTo(C+(N[b]-x)*(p.total/p.size))}r.on(document,"mousemove",M),r.on(document,"mouseup",E)}),r.on(this.node,"click",function(y){r.e_preventDefault(y);var b=p.inner.getBoundingClientRect(),x;p.orientation=="horizontal"?x=y.clientX<b.left?-1:y.clientX>b.right?1:0:x=y.clientY<b.top?-1:y.clientY>b.bottom?1:0,p.moveTo(p.pos+x*p.screen)});function v(y){var b=r.wheelEventPixels(y)[p.orientation=="horizontal"?"x":"y"],x=p.pos;p.moveTo(p.pos+b),p.pos!=x&&r.e_preventDefault(y)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})();const Yn=Fr();function pfe(e,t,r={}){const o=cfe.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),qt(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),bu(()=>{Yn.value=void 0}),mh(o)}async function gfe(e){var t;Vw(e,((t=e.location)==null?void 0:t.line)??0)}const vfe={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Xw=ft({__name:"CodeMirrorContainer",props:zc({mode:{},readOnly:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:zc(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Ah(e,"modelValue"),s=rk(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Be();return Ns(async()=>{const d=pfe(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){r("save",h.getValue())},"Ctrl-S":function(h){r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),Yn.value=d,setTimeout(()=>Yn.value.refresh(),100)}),(d,h)=>(oe(),me("div",vfe,[Y("textarea",{ref_key:"el",ref:f},null,512)]))}}),mfe=ft({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Be(""),c=Fr(void 0),f=Be(!1),d=Be(!0);qt(()=>r.file,async()=>{var A;d.value=!0;try{if(!r.file||!((A=r.file)!=null&&A.filepath)){s.value="",c.value=s.value,f.value=!1;return}s.value=await yt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}finally{ln(()=>d.value=!1)}},{immediate:!0}),qt(()=>[d.value,r.file,Dd.value],([A,H,z])=>{A||(z!=null?ln(()=>{var re;const J={line:z??0,ch:0};(re=Yn.value)==null||re.scrollIntoView(J,100),ln(()=>{var te,j;(te=Yn.value)==null||te.focus(),(j=Yn.value)==null||j.setCursor(J)})}):ln(()=>{var J;(J=Yn.value)==null||J.focus()}))},{flush:"post"});const h=Me(()=>{var A,H;return((H=(A=r.file)==null?void 0:A.filepath)==null?void 0:H.split(/\./g).pop())||"js"}),p=Be(),v=Me(()=>{var A;return(A=p.value)==null?void 0:A.cm}),y=Me(()=>{var A;return((A=r.file)==null?void 0:A.tasks.filter(H=>{var z;return((z=H.result)==null?void 0:z.state)==="fail"}))||[]}),b=[],x=[],C=[],E=Be(!1);function M(){C.forEach(([A,H,z])=>{A.removeEventListener("click",H),z()}),C.length=0}Cw(p,()=>{var A;(A=Yn.value)==null||A.refresh()});function N(){f.value=c.value!==Yn.value.getValue()}qt(f,A=>{o("draft",A)},{immediate:!0});function L(A){const H=((A==null?void 0:A.stacks)||[]).filter(ne=>{var K;return ne.file&&ne.file===((K=r.file)==null?void 0:K.filepath)}),z=H==null?void 0:H[0];if(!z)return;const J=document.createElement("div");J.className="op80 flex gap-x-2 items-center";const re=document.createElement("pre");re.className="c-red-600 dark:c-red-400",re.textContent=`${" ".repeat(z.column)}^ ${(A==null?void 0:A.nameStr)||A.name}: ${(A==null?void 0:A.message)||""}`,J.appendChild(re);const te=document.createElement("span");te.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",te.tabIndex=0,te.ariaLabel="Open in Editor",Ab(te,{content:"Open in Editor",placement:"bottom"},!1);const j=async()=>{await dw(z.file,z.line,z.column)};J.appendChild(te),C.push([te,j,()=>zh(te)]),x.push(Yn.value.addLineClass(z.line-1,"wrap","bg-red-500/10")),b.push(Yn.value.addLineWidget(z.line-1,J))}qt([v,y],([A])=>{if(!A){M();return}setTimeout(()=>{M(),b.forEach(H=>H.clear()),x.forEach(H=>{var z;return(z=Yn.value)==null?void 0:z.removeLineClass(H,"wrap")}),b.length=0,x.length=0,A.on("changes",N),y.value.forEach(H=>{var z,J;(J=(z=H.result)==null?void 0:z.errors)==null||J.forEach(L)}),E.value||A.clearHistory()},100)},{flush:"post"});async function O(A){E.value=!0,await yt.rpc.saveTestFile(r.file.filepath,A),c.value=A,f.value=!1}return(A,H)=>{const z=Xw;return oe(),ot(z,oi({ref_key:"editor",ref:p,modelValue:q(s),"onUpdate:modelValue":H[0]||(H[0]=J=>Ot(s)?s.value=J:null),"h-full":""},{lineNumbers:!0,readOnly:q(Pr)},{mode:q(h),"data-testid":"code-mirror",onSave:O}),null,16,["modelValue","mode"])}}}),yfe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},bfe={"p-4":"",relative:""},wfe=Y("p",null,"Module Info",-1),xfe={op50:"","font-mono":"","text-sm":""},_fe={key:0,"p-5":""},Sfe={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},kfe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Tfe=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),Cfe={key:0},Efe={p:"x3 y-1","bg-overlay":"",border:"base b t"},Lfe=ft({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=oce(()=>yt.rpc.getTransformResult(r.projectName,r.id,!!No)),c=Me(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=Me(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=Me(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=Me(()=>{var p,v,y,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(y=s.value)==null?void 0:y.map)==null?void 0:b.version}});return ww("Escape",()=>{o("close")}),(p,v)=>{const y=hi,b=Xw;return oe(),me("div",yfe,[Y("div",bfe,[wfe,Y("p",xfe,qe(p.id),1),Oe(y,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=x=>o("close"))})]),q(s)?(oe(),me(ut,{key:1},[Y("div",Sfe,[kfe,Tfe,Oe(b,oi({"h-full":"","model-value":q(f),"read-only":""},{lineNumbers:!0},{mode:q(c)}),null,16,["model-value","mode"]),Oe(b,oi({"h-full":"","model-value":q(d),"read-only":""},{lineNumbers:!0},{mode:q(c)}),null,16,["model-value","mode"])]),q(h).mappings!==""?(oe(),me("div",Cfe,[Y("div",Efe," Source map (v"+qe(q(h).version)+") ",1),Oe(b,oi({"model-value":q(h).mappings,"read-only":""},{lineNumbers:!0},{mode:q(c)}),null,16,["model-value","mode"])])):et("",!0)],64)):(oe(),me("div",_fe," No transform result found for this module. "))])}}});function Afe(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Vd="http://www.w3.org/1999/xhtml";const a0={svg:"http://www.w3.org/2000/svg",xhtml:Vd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Iu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),a0.hasOwnProperty(t)?{space:a0[t],local:e}:e}function Mfe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Vd&&t.documentElement.namespaceURI===Vd?t.createElement(e):t.createElementNS(r,e)}}function Nfe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Yw(e){var t=Iu(e);return(t.local?Nfe:Mfe)(t)}function $fe(){}function Zh(e){return e==null?$fe:function(){return this.querySelector(e)}}function Ofe(e){typeof e!="function"&&(e=Zh(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new jn(o,this._parents)}function Pfe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Rfe(){return[]}function Zw(e){return e==null?Rfe:function(){return this.querySelectorAll(e)}}function Dfe(e){return function(){return Pfe(e.apply(this,arguments))}}function zfe(e){typeof e=="function"?e=Dfe(e):e=Zw(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new jn(o,s)}function Jw(e){return function(){return this.matches(e)}}function Qw(e){return function(t){return t.matches(e)}}var Ife=Array.prototype.find;function Ffe(e){return function(){return Ife.call(this.children,e)}}function Hfe(){return this.firstElementChild}function qfe(e){return this.select(e==null?Hfe:Ffe(typeof e=="function"?e:Qw(e)))}var Bfe=Array.prototype.filter;function Wfe(){return Array.from(this.children)}function Ufe(e){return function(){return Bfe.call(this.children,e)}}function Vfe(e){return this.selectAll(e==null?Wfe:Ufe(typeof e=="function"?e:Qw(e)))}function jfe(e){typeof e!="function"&&(e=Jw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new jn(o,this._parents)}function e1(e){return new Array(e.length)}function Gfe(){return new jn(this._enter||this._groups.map(e1),this._parents)}function ru(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ru.prototype={constructor:ru,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Kfe(e){return function(){return e}}function Xfe(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new ru(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function Yfe(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,y=c.length,b=new Array(v),x;for(d=0;d<v;++d)(h=t[d])&&(b[d]=x=f.call(h,h.__data__,d,t)+"",p.has(x)?s[d]=h:p.set(x,h));for(d=0;d<y;++d)x=f.call(e,c[d],d,c)+"",(h=p.get(x))?(o[d]=h,h.__data__=c[d],p.delete(x)):r[d]=new ru(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Zfe(e){return e.__data__}function Jfe(e,t){if(!arguments.length)return Array.from(this,Zfe);var r=t?Yfe:Xfe,o=this._parents,s=this._groups;typeof e!="function"&&(e=Kfe(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],y=s[p],b=y.length,x=Qfe(e.call(v,v&&v.__data__,p,o)),C=x.length,E=d[p]=new Array(C),M=f[p]=new Array(C),N=h[p]=new Array(b);r(v,y,E,M,N,x,t);for(var L=0,O=0,A,H;L<C;++L)if(A=E[L]){for(L>=O&&(O=L+1);!(H=M[O])&&++O<C;);A._next=H||null}}return f=new jn(f,o),f._enter=d,f._exit=h,f}function Qfe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ede(){return new jn(this._exit||this._groups.map(e1),this._parents)}function tde(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function nde(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],y=p.length,b=d[h]=new Array(y),x,C=0;C<y;++C)(x=p[C]||v[C])&&(b[C]=x);for(;h<s;++h)d[h]=r[h];return new jn(d,this._parents)}function rde(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function ide(e){e||(e=ode);function t(y,b){return y&&b?e(y.__data__,b.__data__):!y-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new jn(s,this._parents).order()}function ode(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function sde(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function lde(){return Array.from(this)}function ade(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function cde(){let e=0;for(const t of this)++e;return e}function ude(){return!this.node()}function fde(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function dde(e){return function(){this.removeAttribute(e)}}function hde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function pde(e,t){return function(){this.setAttribute(e,t)}}function gde(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function vde(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function mde(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function yde(e,t){var r=Iu(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?hde:dde:typeof t=="function"?r.local?mde:vde:r.local?gde:pde)(r,t))}function t1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function bde(e){return function(){this.style.removeProperty(e)}}function wde(e,t,r){return function(){this.style.setProperty(e,t,r)}}function xde(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function _de(e,t,r){return arguments.length>1?this.each((t==null?bde:typeof t=="function"?xde:wde)(e,t,r??"")):As(this.node(),e)}function As(e,t){return e.style.getPropertyValue(t)||t1(e).getComputedStyle(e,null).getPropertyValue(t)}function Sde(e){return function(){delete this[e]}}function kde(e,t){return function(){this[e]=t}}function Tde(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Cde(e,t){return arguments.length>1?this.each((t==null?Sde:typeof t=="function"?Tde:kde)(e,t)):this.node()[e]}function n1(e){return e.trim().split(/^|\s+/)}function Jh(e){return e.classList||new r1(e)}function r1(e){this._node=e,this._names=n1(e.getAttribute("class")||"")}r1.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function i1(e,t){for(var r=Jh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function o1(e,t){for(var r=Jh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function Ede(e){return function(){i1(this,e)}}function Lde(e){return function(){o1(this,e)}}function Ade(e,t){return function(){(t.apply(this,arguments)?i1:o1)(this,e)}}function Mde(e,t){var r=n1(e+"");if(arguments.length<2){for(var o=Jh(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Ade:t?Ede:Lde)(r,t))}function Nde(){this.textContent=""}function $de(e){return function(){this.textContent=e}}function Ode(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Pde(e){return arguments.length?this.each(e==null?Nde:(typeof e=="function"?Ode:$de)(e)):this.node().textContent}function Rde(){this.innerHTML=""}function Dde(e){return function(){this.innerHTML=e}}function zde(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Ide(e){return arguments.length?this.each(e==null?Rde:(typeof e=="function"?zde:Dde)(e)):this.node().innerHTML}function Fde(){this.nextSibling&&this.parentNode.appendChild(this)}function Hde(){return this.each(Fde)}function qde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Bde(){return this.each(qde)}function Wde(e){var t=typeof e=="function"?e:Yw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Ude(){return null}function Vde(e,t){var r=typeof e=="function"?e:Yw(e),o=t==null?Ude:typeof t=="function"?t:Zh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function jde(){var e=this.parentNode;e&&e.removeChild(this)}function Gde(){return this.each(jde)}function Kde(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Xde(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Yde(e){return this.select(e?Xde:Kde)}function Zde(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Jde(e){return function(t){e.call(this,t,this.__data__)}}function Qde(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function ehe(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function the(e,t,r){return function(){var o=this.__on,s,c=Jde(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function nhe(e,t,r){var o=Qde(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?the:ehe,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function s1(e,t,r){var o=t1(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function rhe(e,t){return function(){return s1(this,e,t)}}function ihe(e,t){return function(){return s1(this,e,t.apply(this,arguments))}}function ohe(e,t){return this.each((typeof t=="function"?ihe:rhe)(e,t))}function*she(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var l1=[null];function jn(e,t){this._groups=e,this._parents=t}function ga(){return new jn([[document.documentElement]],l1)}function lhe(){return this}jn.prototype=ga.prototype={constructor:jn,select:Ofe,selectAll:zfe,selectChild:qfe,selectChildren:Vfe,filter:jfe,data:Jfe,enter:Gfe,exit:ede,join:tde,merge:nde,selection:lhe,order:rde,sort:ide,call:sde,nodes:lde,node:ade,size:cde,empty:ude,each:fde,attr:yde,style:_de,property:Cde,classed:Mde,text:Pde,html:Ide,raise:Hde,lower:Bde,append:Wde,insert:Vde,remove:Gde,clone:Yde,datum:Zde,on:nhe,dispatch:ohe,[Symbol.iterator]:she};function Pn(e){return typeof e=="string"?new jn([[document.querySelector(e)]],[document.documentElement]):new jn([[e]],l1)}function ahe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ti(e,t){if(e=ahe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}class _n{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new _n(t,r)}add(t){return new _n(this.x+t.x,this.y+t.y)}subtract(t){return new _n(this.x-t.x,this.y-t.y)}multiply(t){return new _n(this.x*t,this.y*t)}divide(t){return new _n(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new _n(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new _n(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new _n(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var che={value:()=>{}};function va(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Ec(r)}function Ec(e){this._=e}function uhe(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Ec.prototype=va.prototype={constructor:Ec,on:function(e,t){var r=this._,o=uhe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=fhe(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=c0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=c0(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Ec(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function fhe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function c0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=che,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const dhe={passive:!1},Jl={capture:!0,passive:!1};function id(e){e.stopImmediatePropagation()}function ys(e){e.preventDefault(),e.stopImmediatePropagation()}function a1(e){var t=e.document.documentElement,r=Pn(e).on("dragstart.drag",ys,Jl);"onselectstart"in t?r.on("selectstart.drag",ys,Jl):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function c1(e,t){var r=e.document.documentElement,o=Pn(e).on("dragstart.drag",null);t&&(o.on("click.drag",ys,Jl),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const uc=e=>()=>e;function jd(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}jd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function hhe(e){return!e.ctrlKey&&!e.button}function phe(){return this.parentNode}function ghe(e,t){return t??{x:e.x,y:e.y}}function vhe(){return navigator.maxTouchPoints||"ontouchstart"in this}function mhe(){var e=hhe,t=phe,r=ghe,o=vhe,s={},c=va("start","drag","end"),f=0,d,h,p,v,y=0;function b(A){A.on("mousedown.drag",x).filter(o).on("touchstart.drag",M).on("touchmove.drag",N,dhe).on("touchend.drag touchcancel.drag",L).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(A,H){if(!(v||!e.call(this,A,H))){var z=O(this,t.call(this,A,H),A,H,"mouse");z&&(Pn(A.view).on("mousemove.drag",C,Jl).on("mouseup.drag",E,Jl),a1(A.view),id(A),p=!1,d=A.clientX,h=A.clientY,z("start",A))}}function C(A){if(ys(A),!p){var H=A.clientX-d,z=A.clientY-h;p=H*H+z*z>y}s.mouse("drag",A)}function E(A){Pn(A.view).on("mousemove.drag mouseup.drag",null),c1(A.view,p),ys(A),s.mouse("end",A)}function M(A,H){if(e.call(this,A,H)){var z=A.changedTouches,J=t.call(this,A,H),re=z.length,te,j;for(te=0;te<re;++te)(j=O(this,J,A,H,z[te].identifier,z[te]))&&(id(A),j("start",A,z[te]))}}function N(A){var H=A.changedTouches,z=H.length,J,re;for(J=0;J<z;++J)(re=s[H[J].identifier])&&(ys(A),re("drag",A,H[J]))}function L(A){var H=A.changedTouches,z=H.length,J,re;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),J=0;J<z;++J)(re=s[H[J].identifier])&&(id(A),re("end",A,H[J]))}function O(A,H,z,J,re,te){var j=c.copy(),ne=ti(te||z,H),K,V,I;if((I=r.call(A,new jd("beforestart",{sourceEvent:z,target:b,identifier:re,active:f,x:ne[0],y:ne[1],dx:0,dy:0,dispatch:j}),J))!=null)return K=I.x-ne[0]||0,V=I.y-ne[1]||0,function k(B,W,ie){var ye=ne,Ne;switch(B){case"start":s[re]=k,Ne=f++;break;case"end":delete s[re],--f;case"drag":ne=ti(ie||W,H),Ne=f;break}j.call(B,A,new jd(B,{sourceEvent:W,subject:I,target:b,identifier:re,active:Ne,x:ne[0]+K,y:ne[1]+V,dx:ne[0]-ye[0],dy:ne[1]-ye[1],dispatch:j}),J)}}return b.filter=function(A){return arguments.length?(e=typeof A=="function"?A:uc(!!A),b):e},b.container=function(A){return arguments.length?(t=typeof A=="function"?A:uc(A),b):t},b.subject=function(A){return arguments.length?(r=typeof A=="function"?A:uc(A),b):r},b.touchable=function(A){return arguments.length?(o=typeof A=="function"?A:uc(!!A),b):o},b.on=function(){var A=c.on.apply(c,arguments);return A===c?b:A},b.clickDistance=function(A){return arguments.length?(y=(A=+A)*A,b):Math.sqrt(y)},b}function Qh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function u1(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function ma(){}var Ql=.7,iu=1/Ql,bs="\\s*([+-]?\\d+)\\s*",ea="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Rr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yhe=/^#([0-9a-f]{3,8})$/,bhe=new RegExp(`^rgb\\(${bs},${bs},${bs}\\)$`),whe=new RegExp(`^rgb\\(${Rr},${Rr},${Rr}\\)$`),xhe=new RegExp(`^rgba\\(${bs},${bs},${bs},${ea}\\)$`),_he=new RegExp(`^rgba\\(${Rr},${Rr},${Rr},${ea}\\)$`),She=new RegExp(`^hsl\\(${ea},${Rr},${Rr}\\)$`),khe=new RegExp(`^hsla\\(${ea},${Rr},${Rr},${ea}\\)$`),u0={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};Qh(ma,ta,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:f0,formatHex:f0,formatHex8:The,formatHsl:Che,formatRgb:d0,toString:d0});function f0(){return this.rgb().formatHex()}function The(){return this.rgb().formatHex8()}function Che(){return f1(this).formatHsl()}function d0(){return this.rgb().formatRgb()}function ta(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=yhe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?h0(t):r===3?new Rn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?fc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?fc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=bhe.exec(e))?new Rn(t[1],t[2],t[3],1):(t=whe.exec(e))?new Rn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=xhe.exec(e))?fc(t[1],t[2],t[3],t[4]):(t=_he.exec(e))?fc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=She.exec(e))?v0(t[1],t[2]/100,t[3]/100,1):(t=khe.exec(e))?v0(t[1],t[2]/100,t[3]/100,t[4]):u0.hasOwnProperty(e)?h0(u0[e]):e==="transparent"?new Rn(NaN,NaN,NaN,0):null}function h0(e){return new Rn(e>>16&255,e>>8&255,e&255,1)}function fc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Rn(e,t,r,o)}function Ehe(e){return e instanceof ma||(e=ta(e)),e?(e=e.rgb(),new Rn(e.r,e.g,e.b,e.opacity)):new Rn}function Gd(e,t,r,o){return arguments.length===1?Ehe(e):new Rn(e,t,r,o??1)}function Rn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Qh(Rn,Gd,u1(ma,{brighter(e){return e=e==null?iu:Math.pow(iu,e),new Rn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ql:Math.pow(Ql,e),new Rn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rn(Lo(this.r),Lo(this.g),Lo(this.b),ou(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:p0,formatHex:p0,formatHex8:Lhe,formatRgb:g0,toString:g0}));function p0(){return`#${To(this.r)}${To(this.g)}${To(this.b)}`}function Lhe(){return`#${To(this.r)}${To(this.g)}${To(this.b)}${To((isNaN(this.opacity)?1:this.opacity)*255)}`}function g0(){const e=ou(this.opacity);return`${e===1?"rgb(":"rgba("}${Lo(this.r)}, ${Lo(this.g)}, ${Lo(this.b)}${e===1?")":`, ${e})`}`}function ou(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Lo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function To(e){return e=Lo(e),(e<16?"0":"")+e.toString(16)}function v0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new mr(e,t,r,o)}function f1(e){if(e instanceof mr)return new mr(e.h,e.s,e.l,e.opacity);if(e instanceof ma||(e=ta(e)),!e)return new mr;if(e instanceof mr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new mr(f,d,h,e.opacity)}function Ahe(e,t,r,o){return arguments.length===1?f1(e):new mr(e,t,r,o??1)}function mr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Qh(mr,Ahe,u1(ma,{brighter(e){return e=e==null?iu:Math.pow(iu,e),new mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ql:Math.pow(Ql,e),new mr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Rn(od(e>=240?e-240:e+120,s,o),od(e,s,o),od(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new mr(m0(this.h),dc(this.s),dc(this.l),ou(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ou(this.opacity);return`${e===1?"hsl(":"hsla("}${m0(this.h)}, ${dc(this.s)*100}%, ${dc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function m0(e){return e=(e||0)%360,e<0?e+360:e}function dc(e){return Math.max(0,Math.min(1,e||0))}function od(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const d1=e=>()=>e;function Mhe(e,t){return function(r){return e+r*t}}function Nhe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function $he(e){return(e=+e)==1?h1:function(t,r){return r-t?Nhe(t,r,e):d1(isNaN(t)?r:t)}}function h1(e,t){var r=t-e;return r?Mhe(e,r):d1(isNaN(e)?t:e)}const y0=function e(t){var r=$he(t);function o(s,c){var f=r((s=Gd(s)).r,(c=Gd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=h1(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function Fi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Kd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,sd=new RegExp(Kd.source,"g");function Ohe(e){return function(){return e}}function Phe(e){return function(t){return e(t)+""}}function Rhe(e,t){var r=Kd.lastIndex=sd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Kd.exec(e))&&(s=sd.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:Fi(o,s)})),r=sd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?Phe(h[0].x):Ohe(t):(t=h.length,function(p){for(var v=0,y;v<t;++v)d[(y=h[v]).i]=y.x(p);return d.join("")})}var b0=180/Math.PI,Xd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function p1(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*b0,skewX:Math.atan(h)*b0,scaleX:f,scaleY:d}}var hc;function Dhe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Xd:p1(t.a,t.b,t.c,t.d,t.e,t.f)}function zhe(e){return e==null||(hc||(hc=document.createElementNS("http://www.w3.org/2000/svg","g")),hc.setAttribute("transform",e),!(e=hc.transform.baseVal.consolidate()))?Xd:(e=e.matrix,p1(e.a,e.b,e.c,e.d,e.e,e.f))}function g1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,y,b,x,C){if(p!==y||v!==b){var E=x.push("translate(",null,t,null,r);C.push({i:E-4,x:Fi(p,y)},{i:E-2,x:Fi(v,b)})}else(y||b)&&x.push("translate("+y+t+b+r)}function f(p,v,y,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:y.push(s(y)+"rotate(",null,o)-2,x:Fi(p,v)})):v&&y.push(s(y)+"rotate("+v+o)}function d(p,v,y,b){p!==v?b.push({i:y.push(s(y)+"skewX(",null,o)-2,x:Fi(p,v)}):v&&y.push(s(y)+"skewX("+v+o)}function h(p,v,y,b,x,C){if(p!==y||v!==b){var E=x.push(s(x)+"scale(",null,",",null,")");C.push({i:E-4,x:Fi(p,y)},{i:E-2,x:Fi(v,b)})}else(y!==1||b!==1)&&x.push(s(x)+"scale("+y+","+b+")")}return function(p,v){var y=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,y,b),f(p.rotate,v.rotate,y,b),d(p.skewX,v.skewX,y,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,y,b),p=v=null,function(x){for(var C=-1,E=b.length,M;++C<E;)y[(M=b[C]).i]=M.x(x);return y.join("")}}}var Ihe=g1(Dhe,"px, ","px)","deg)"),Fhe=g1(zhe,", ",")",")"),Hhe=1e-12;function w0(e){return((e=Math.exp(e))+1/e)/2}function qhe(e){return((e=Math.exp(e))-1/e)/2}function Bhe(e){return((e=Math.exp(2*e))-1)/(e+1)}const Whe=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],y=f[1],b=f[2],x=v-d,C=y-h,E=x*x+C*C,M,N;if(E<Hhe)N=Math.log(b/p)/t,M=function(J){return[d+J*x,h+J*C,p*Math.exp(t*J*N)]};else{var L=Math.sqrt(E),O=(b*b-p*p+o*E)/(2*p*r*L),A=(b*b-p*p-o*E)/(2*b*r*L),H=Math.log(Math.sqrt(O*O+1)-O),z=Math.log(Math.sqrt(A*A+1)-A);N=(z-H)/t,M=function(J){var re=J*N,te=w0(H),j=p/(r*L)*(te*Bhe(t*re+H)-qhe(H));return[d+j*x,h+j*C,p*te/w0(t*re+H)]}}return M.duration=N*1e3*t/Math.SQRT2,M}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s}(Math.SQRT2,2,4);var Ms=0,yl=0,pl=0,v1=1e3,su,bl,lu=0,$o=0,Fu=0,na=typeof performance=="object"&&performance.now?performance:Date,m1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ep(){return $o||(m1(Uhe),$o=na.now()+Fu)}function Uhe(){$o=0}function au(){this._call=this._time=this._next=null}au.prototype=tp.prototype={constructor:au,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ep():+r)+(t==null?0:+t),!this._next&&bl!==this&&(bl?bl._next=this:su=this,bl=this),this._call=e,this._time=r,Yd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yd())}};function tp(e,t,r){var o=new au;return o.restart(e,t,r),o}function Vhe(){ep(),++Ms;for(var e=su,t;e;)(t=$o-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ms}function x0(){$o=(lu=na.now())+Fu,Ms=yl=0;try{Vhe()}finally{Ms=0,Ghe(),$o=0}}function jhe(){var e=na.now(),t=e-lu;t>v1&&(Fu-=t,lu=e)}function Ghe(){for(var e,t=su,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:su=r);bl=e,Yd(o)}function Yd(e){if(!Ms){yl&&(yl=clearTimeout(yl));var t=e-$o;t>24?(e<1/0&&(yl=setTimeout(x0,e-na.now()-Fu)),pl&&(pl=clearInterval(pl))):(pl||(lu=na.now(),pl=setInterval(jhe,v1)),Ms=1,m1(x0))}}function _0(e,t,r){var o=new au;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Khe=va("start","end","cancel","interrupt"),Xhe=[],y1=0,S0=1,Zd=2,Lc=3,k0=4,Jd=5,Ac=6;function Hu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;Yhe(e,r,{name:t,index:o,group:s,on:Khe,tween:Xhe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:y1})}function np(e,t){var r=Sr(e,t);if(r.state>y1)throw new Error("too late; already scheduled");return r}function qr(e,t){var r=Sr(e,t);if(r.state>Lc)throw new Error("too late; already running");return r}function Sr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Yhe(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=tp(c,0,r.time);function c(p){r.state=S0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,y,b,x;if(r.state!==S0)return h();for(v in o)if(x=o[v],x.name===r.name){if(x.state===Lc)return _0(f);x.state===k0?(x.state=Ac,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete o[v]):+v<t&&(x.state=Ac,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete o[v])}if(_0(function(){r.state===Lc&&(r.state=k0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Zd,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Zd){for(r.state=Lc,s=new Array(b=r.tween.length),v=0,y=-1;v<b;++v)(x=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++y]=x);s.length=y+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=Jd,1),y=-1,b=s.length;++y<b;)s[y].call(e,v);r.state===Jd&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Ac,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Mc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>Zd&&o.state<Jd,o.state=Ac,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Zhe(e){return this.each(function(){Mc(this,e)})}function Jhe(e,t){var r,o;return function(){var s=qr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function Qhe(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=qr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function epe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Sr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?Jhe:Qhe)(r,e,t))}function rp(e,t,r){var o=e._id;return e.each(function(){var s=qr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Sr(s,o).value[t]}}function b1(e,t){var r;return(typeof t=="number"?Fi:t instanceof ta?y0:(r=ta(t))?(t=r,y0):Rhe)(e,t)}function tpe(e){return function(){this.removeAttribute(e)}}function npe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function rpe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function ipe(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function ope(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function spe(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function lpe(e,t){var r=Iu(e),o=r==="transform"?Fhe:b1;return this.attrTween(e,typeof t=="function"?(r.local?spe:ope)(r,o,rp(this,"attr."+e,t)):t==null?(r.local?npe:tpe)(r):(r.local?ipe:rpe)(r,o,t))}function ape(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function cpe(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function upe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&cpe(e,c)),r}return s._value=t,s}function fpe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&ape(e,c)),r}return s._value=t,s}function dpe(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=Iu(e);return this.tween(r,(o.local?upe:fpe)(o,t))}function hpe(e,t){return function(){np(this,e).delay=+t.apply(this,arguments)}}function ppe(e,t){return t=+t,function(){np(this,e).delay=t}}function gpe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?hpe:ppe)(t,e)):Sr(this.node(),t).delay}function vpe(e,t){return function(){qr(this,e).duration=+t.apply(this,arguments)}}function mpe(e,t){return t=+t,function(){qr(this,e).duration=t}}function ype(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?vpe:mpe)(t,e)):Sr(this.node(),t).duration}function bpe(e,t){if(typeof t!="function")throw new Error;return function(){qr(this,e).ease=t}}function wpe(e){var t=this._id;return arguments.length?this.each(bpe(t,e)):Sr(this.node(),t).ease}function xpe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;qr(this,e).ease=r}}function _pe(e){if(typeof e!="function")throw new Error;return this.each(xpe(this._id,e))}function Spe(e){typeof e!="function"&&(e=Jw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new ui(o,this._parents,this._name,this._id)}function kpe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,y=f[d]=new Array(v),b,x=0;x<v;++x)(b=h[x]||p[x])&&(y[x]=b);for(;d<o;++d)f[d]=t[d];return new ui(f,this._parents,this._name,this._id)}function Tpe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Cpe(e,t,r){var o,s,c=Tpe(t)?np:qr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function Epe(e,t){var r=this._id;return arguments.length<2?Sr(this.node(),r).on.on(e):this.each(Cpe(r,e,t))}function Lpe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Ape(){return this.on("end.remove",Lpe(this._id))}function Mpe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Zh(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,y,b=0;b<h;++b)(v=d[b])&&(y=e.call(v,v.__data__,b,d))&&("__data__"in v&&(y.__data__=v.__data__),p[b]=y,Hu(p[b],t,r,b,p,Sr(v,r)));return new ui(c,this._parents,t,r)}function Npe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Zw(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,y=0;y<p;++y)if(v=h[y]){for(var b=e.call(v,v.__data__,y,h),x,C=Sr(v,r),E=0,M=b.length;E<M;++E)(x=b[E])&&Hu(x,t,r,E,b,C);c.push(b),f.push(v)}return new ui(c,f,t,r)}var $pe=ga.prototype.constructor;function Ope(){return new $pe(this._groups,this._parents)}function Ppe(e,t){var r,o,s;return function(){var c=As(this,e),f=(this.style.removeProperty(e),As(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function w1(e){return function(){this.style.removeProperty(e)}}function Rpe(e,t,r){var o,s=r+"",c;return function(){var f=As(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function Dpe(e,t,r){var o,s,c;return function(){var f=As(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),As(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function zpe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=qr(this,e),p=h.on,v=h.value[c]==null?d||(d=w1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function Ipe(e,t,r){var o=(e+="")=="transform"?Ihe:b1;return t==null?this.styleTween(e,Ppe(e,o)).on("end.style."+e,w1(e)):typeof t=="function"?this.styleTween(e,Dpe(e,o,rp(this,"style."+e,t))).each(zpe(this._id,e)):this.styleTween(e,Rpe(e,o,t),r).on("end.style."+e,null)}function Fpe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function Hpe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&Fpe(e,f,r)),o}return c._value=t,c}function qpe(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,Hpe(e,t,r??""))}function Bpe(e){return function(){this.textContent=e}}function Wpe(e){return function(){var t=e(this);this.textContent=t??""}}function Upe(e){return this.tween("text",typeof e=="function"?Wpe(rp(this,"text",e)):Bpe(e==null?"":e+""))}function Vpe(e){return function(t){this.textContent=e.call(this,t)}}function jpe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&Vpe(s)),t}return o._value=e,o}function Gpe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,jpe(e))}function Kpe(){for(var e=this._name,t=this._id,r=x1(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=Sr(h,t);Hu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new ui(o,this._parents,e,r)}function Xpe(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=qr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var Ype=0;function ui(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function x1(){return++Ype}var Jr=ga.prototype;ui.prototype={constructor:ui,select:Mpe,selectAll:Npe,selectChild:Jr.selectChild,selectChildren:Jr.selectChildren,filter:Spe,merge:kpe,selection:Ope,transition:Kpe,call:Jr.call,nodes:Jr.nodes,node:Jr.node,size:Jr.size,empty:Jr.empty,each:Jr.each,on:Epe,attr:lpe,attrTween:dpe,style:Ipe,styleTween:qpe,text:Upe,textTween:Gpe,remove:Ape,tween:epe,delay:gpe,duration:ype,ease:wpe,easeVarying:_pe,end:Xpe,[Symbol.iterator]:Jr[Symbol.iterator]};function Zpe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Jpe={time:null,delay:0,duration:250,ease:Zpe};function Qpe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function ege(e){var t,r;e instanceof ui?(t=e._id,e=e._name):(t=x1(),(r=Jpe).time=ep(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&Hu(h,e,t,p,f,r||Qpe(h,t));return new ui(o,this._parents,e,t)}ga.prototype.interrupt=Zhe;ga.prototype.transition=ege;const pc=e=>()=>e;function tge(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function ni(e,t,r){this.k=e,this.x=t,this.y=r}ni.prototype={constructor:ni,scale:function(e){return e===1?this:new ni(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ni(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ip=new ni(1,0,0);ni.prototype;function ld(e){e.stopImmediatePropagation()}function gl(e){e.preventDefault(),e.stopImmediatePropagation()}function nge(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function rge(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function T0(){return this.__zoom||ip}function ige(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function oge(){return navigator.maxTouchPoints||"ontouchstart"in this}function sge(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function lge(){var e=nge,t=rge,r=sge,o=ige,s=oge,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Whe,p=va("start","zoom","end"),v,y,b,x=500,C=150,E=0,M=10;function N(I){I.property("__zoom",T0).on("wheel.zoom",re,{passive:!1}).on("mousedown.zoom",te).on("dblclick.zoom",j).filter(s).on("touchstart.zoom",ne).on("touchmove.zoom",K).on("touchend.zoom touchcancel.zoom",V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}N.transform=function(I,k,B,W){var ie=I.selection?I.selection():I;ie.property("__zoom",T0),I!==ie?H(I,k,B,W):ie.interrupt().each(function(){z(this,arguments).event(W).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},N.scaleBy=function(I,k,B,W){N.scaleTo(I,function(){var ie=this.__zoom.k,ye=typeof k=="function"?k.apply(this,arguments):k;return ie*ye},B,W)},N.scaleTo=function(I,k,B,W){N.transform(I,function(){var ie=t.apply(this,arguments),ye=this.__zoom,Ne=B==null?A(ie):typeof B=="function"?B.apply(this,arguments):B,We=ye.invert(Ne),je=typeof k=="function"?k.apply(this,arguments):k;return r(O(L(ye,je),Ne,We),ie,f)},B,W)},N.translateBy=function(I,k,B,W){N.transform(I,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof B=="function"?B.apply(this,arguments):B),t.apply(this,arguments),f)},null,W)},N.translateTo=function(I,k,B,W,ie){N.transform(I,function(){var ye=t.apply(this,arguments),Ne=this.__zoom,We=W==null?A(ye):typeof W=="function"?W.apply(this,arguments):W;return r(ip.translate(We[0],We[1]).scale(Ne.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof B=="function"?-B.apply(this,arguments):-B),ye,f)},W,ie)};function L(I,k){return k=Math.max(c[0],Math.min(c[1],k)),k===I.k?I:new ni(k,I.x,I.y)}function O(I,k,B){var W=k[0]-B[0]*I.k,ie=k[1]-B[1]*I.k;return W===I.x&&ie===I.y?I:new ni(I.k,W,ie)}function A(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function H(I,k,B,W){I.on("start.zoom",function(){z(this,arguments).event(W).start()}).on("interrupt.zoom end.zoom",function(){z(this,arguments).event(W).end()}).tween("zoom",function(){var ie=this,ye=arguments,Ne=z(ie,ye).event(W),We=t.apply(ie,ye),je=B==null?A(We):typeof B=="function"?B.apply(ie,ye):B,it=Math.max(We[1][0]-We[0][0],We[1][1]-We[0][1]),rt=ie.__zoom,Ze=typeof k=="function"?k.apply(ie,ye):k,Te=h(rt.invert(je).concat(it/rt.k),Ze.invert(je).concat(it/Ze.k));return function(X){if(X===1)X=Ze;else{var ae=Te(X),de=it/ae[2];X=new ni(de,je[0]-ae[0]*de,je[1]-ae[1]*de)}Ne.zoom(null,X)}})}function z(I,k,B){return!B&&I.__zooming||new J(I,k)}function J(I,k){this.that=I,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(I,k),this.taps=0}J.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,k){return this.mouse&&I!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var k=Pn(this.that).datum();p.call(I,this.that,new tge(I,{sourceEvent:this.sourceEvent,target:N,type:I,transform:this.that.__zoom,dispatch:p}),k)}};function re(I,...k){if(!e.apply(this,arguments))return;var B=z(this,k).event(I),W=this.__zoom,ie=Math.max(c[0],Math.min(c[1],W.k*Math.pow(2,o.apply(this,arguments)))),ye=ti(I);if(B.wheel)(B.mouse[0][0]!==ye[0]||B.mouse[0][1]!==ye[1])&&(B.mouse[1]=W.invert(B.mouse[0]=ye)),clearTimeout(B.wheel);else{if(W.k===ie)return;B.mouse=[ye,W.invert(ye)],Mc(this),B.start()}gl(I),B.wheel=setTimeout(Ne,C),B.zoom("mouse",r(O(L(W,ie),B.mouse[0],B.mouse[1]),B.extent,f));function Ne(){B.wheel=null,B.end()}}function te(I,...k){if(b||!e.apply(this,arguments))return;var B=I.currentTarget,W=z(this,k,!0).event(I),ie=Pn(I.view).on("mousemove.zoom",je,!0).on("mouseup.zoom",it,!0),ye=ti(I,B),Ne=I.clientX,We=I.clientY;a1(I.view),ld(I),W.mouse=[ye,this.__zoom.invert(ye)],Mc(this),W.start();function je(rt){if(gl(rt),!W.moved){var Ze=rt.clientX-Ne,Te=rt.clientY-We;W.moved=Ze*Ze+Te*Te>E}W.event(rt).zoom("mouse",r(O(W.that.__zoom,W.mouse[0]=ti(rt,B),W.mouse[1]),W.extent,f))}function it(rt){ie.on("mousemove.zoom mouseup.zoom",null),c1(rt.view,W.moved),gl(rt),W.event(rt).end()}}function j(I,...k){if(e.apply(this,arguments)){var B=this.__zoom,W=ti(I.changedTouches?I.changedTouches[0]:I,this),ie=B.invert(W),ye=B.k*(I.shiftKey?.5:2),Ne=r(O(L(B,ye),W,ie),t.apply(this,k),f);gl(I),d>0?Pn(this).transition().duration(d).call(H,Ne,W,I):Pn(this).call(N.transform,Ne,W,I)}}function ne(I,...k){if(e.apply(this,arguments)){var B=I.touches,W=B.length,ie=z(this,k,I.changedTouches.length===W).event(I),ye,Ne,We,je;for(ld(I),Ne=0;Ne<W;++Ne)We=B[Ne],je=ti(We,this),je=[je,this.__zoom.invert(je),We.identifier],ie.touch0?!ie.touch1&&ie.touch0[2]!==je[2]&&(ie.touch1=je,ie.taps=0):(ie.touch0=je,ye=!0,ie.taps=1+!!v);v&&(v=clearTimeout(v)),ye&&(ie.taps<2&&(y=je[0],v=setTimeout(function(){v=null},x)),Mc(this),ie.start())}}function K(I,...k){if(this.__zooming){var B=z(this,k).event(I),W=I.changedTouches,ie=W.length,ye,Ne,We,je;for(gl(I),ye=0;ye<ie;++ye)Ne=W[ye],We=ti(Ne,this),B.touch0&&B.touch0[2]===Ne.identifier?B.touch0[0]=We:B.touch1&&B.touch1[2]===Ne.identifier&&(B.touch1[0]=We);if(Ne=B.that.__zoom,B.touch1){var it=B.touch0[0],rt=B.touch0[1],Ze=B.touch1[0],Te=B.touch1[1],X=(X=Ze[0]-it[0])*X+(X=Ze[1]-it[1])*X,ae=(ae=Te[0]-rt[0])*ae+(ae=Te[1]-rt[1])*ae;Ne=L(Ne,Math.sqrt(X/ae)),We=[(it[0]+Ze[0])/2,(it[1]+Ze[1])/2],je=[(rt[0]+Te[0])/2,(rt[1]+Te[1])/2]}else if(B.touch0)We=B.touch0[0],je=B.touch0[1];else return;B.zoom("touch",r(O(Ne,We,je),B.extent,f))}}function V(I,...k){if(this.__zooming){var B=z(this,k).event(I),W=I.changedTouches,ie=W.length,ye,Ne;for(ld(I),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),ye=0;ye<ie;++ye)Ne=W[ye],B.touch0&&B.touch0[2]===Ne.identifier?delete B.touch0:B.touch1&&B.touch1[2]===Ne.identifier&&delete B.touch1;if(B.touch1&&!B.touch0&&(B.touch0=B.touch1,delete B.touch1),B.touch0)B.touch0[1]=this.__zoom.invert(B.touch0[0]);else if(B.end(),B.taps===2&&(Ne=ti(Ne,this),Math.hypot(y[0]-Ne[0],y[1]-Ne[1])<M)){var We=Pn(this).on("dblclick.zoom");We&&We.apply(this,arguments)}}}return N.wheelDelta=function(I){return arguments.length?(o=typeof I=="function"?I:pc(+I),N):o},N.filter=function(I){return arguments.length?(e=typeof I=="function"?I:pc(!!I),N):e},N.touchable=function(I){return arguments.length?(s=typeof I=="function"?I:pc(!!I),N):s},N.extent=function(I){return arguments.length?(t=typeof I=="function"?I:pc([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),N):t},N.scaleExtent=function(I){return arguments.length?(c[0]=+I[0],c[1]=+I[1],N):[c[0],c[1]]},N.translateExtent=function(I){return arguments.length?(f[0][0]=+I[0][0],f[1][0]=+I[1][0],f[0][1]=+I[0][1],f[1][1]=+I[1][1],N):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},N.constrain=function(I){return arguments.length?(r=I,N):r},N.duration=function(I){return arguments.length?(d=+I,N):d},N.interpolate=function(I){return arguments.length?(h=I,N):h},N.on=function(){var I=p.on.apply(p,arguments);return I===p?N:I},N.clickDistance=function(I){return arguments.length?(E=(I=+I)*I,N):Math.sqrt(E)},N.tapDistance=function(I){return arguments.length?(M=+I,N):M},N}function age(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return _1(this.cover(t,r),t,r,e)}function _1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,y,b,x,C,E,M,N,L;if(!c)return e._root=f,e;for(;c.length;)if((E=t>=(y=(d+p)/2))?d=y:p=y,(M=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[N=M<<1|E]))return s[N]=f,e;if(x=+e._x.call(null,c.data),C=+e._y.call(null,c.data),t===x&&r===C)return f.next=c,s?s[N]=f:e._root=f,e;do s=s?s[N]=new Array(4):e._root=new Array(4),(E=t>=(y=(d+p)/2))?d=y:p=y,(M=r>=(b=(h+v)/2))?h=b:v=b;while((N=M<<1|E)===(L=(C>=b)<<1|x>=y));return s[L]=c,s[N]=f,e}function cge(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,y=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>y&&(y=c));if(h>v||p>y)return this;for(this.cover(h,p).cover(v,y),r=0;r<o;++r)_1(this,f[r],d[r],e[r]);return this}function uge(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function fge(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function dge(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Sn(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function hge(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,y=this._y1,b=[],x=this._root,C,E;for(x&&b.push(new Sn(x,s,c,v,y)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,y=t+r,r*=r);C=b.pop();)if(!(!(x=C.node)||(f=C.x0)>v||(d=C.y0)>y||(h=C.x1)<s||(p=C.y1)<c))if(x.length){var M=(f+h)/2,N=(d+p)/2;b.push(new Sn(x[3],M,N,h,p),new Sn(x[2],f,N,M,p),new Sn(x[1],M,d,h,N),new Sn(x[0],f,d,M,N)),(E=(t>=N)<<1|e>=M)&&(C=b[b.length-1],b[b.length-1]=b[b.length-1-E],b[b.length-1-E]=C)}else{var L=e-+this._x.call(null,x.data),O=t-+this._y.call(null,x.data),A=L*L+O*O;if(A<r){var H=Math.sqrt(r=A);s=e-H,c=t-H,v=e+H,y=t+H,o=x.data}}return o}function pge(e){if(isNaN(v=+this._x.call(null,e))||isNaN(y=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,y,b,x,C,E,M,N;if(!r)return this;if(r.length)for(;;){if((C=v>=(b=(f+h)/2))?f=b:h=b,(E=y>=(x=(d+p)/2))?d=x:p=x,t=r,!(r=r[M=E<<1|C]))return this;if(!r.length)break;(t[M+1&3]||t[M+2&3]||t[M+3&3])&&(o=t,N=M)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[M]=c:delete t[M],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[N]=r:this._root=r),this):(this._root=c,this)}function gge(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function vge(){return this._root}function mge(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function yge(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new Sn(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new Sn(s,p,v,d,h)),(s=o[2])&&t.push(new Sn(s,c,v,p,h)),(s=o[1])&&t.push(new Sn(s,p,f,d,v)),(s=o[0])&&t.push(new Sn(s,c,f,p,v))}return this}function bge(e){var t=[],r=[],o;for(this._root&&t.push(new Sn(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,y=(d+p)/2;(c=s[0])&&t.push(new Sn(c,f,d,v,y)),(c=s[1])&&t.push(new Sn(c,v,d,h,y)),(c=s[2])&&t.push(new Sn(c,f,y,v,p)),(c=s[3])&&t.push(new Sn(c,v,y,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function wge(e){return e[0]}function xge(e){return arguments.length?(this._x=e,this):this._x}function _ge(e){return e[1]}function Sge(e){return arguments.length?(this._y=e,this):this._y}function op(e,t,r){var o=new sp(t??wge,r??_ge,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function sp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function C0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var Cn=op.prototype=sp.prototype;Cn.copy=function(){var e=new sp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=C0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=C0(o));return e};Cn.add=age;Cn.addAll=cge;Cn.cover=uge;Cn.data=fge;Cn.extent=dge;Cn.find=hge;Cn.remove=pge;Cn.removeAll=gge;Cn.root=vge;Cn.size=mge;Cn.visit=yge;Cn.visitAfter=bge;Cn.x=xge;Cn.y=Sge;function Tn(e){return function(){return e}}function Bi(e){return(e()-.5)*1e-6}function kge(e){return e.x+e.vx}function Tge(e){return e.y+e.vy}function Cge(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Tn(e==null?1:+e));function f(){for(var p,v=t.length,y,b,x,C,E,M,N=0;N<c;++N)for(y=op(t,kge,Tge).visitAfter(d),p=0;p<v;++p)b=t[p],E=r[b.index],M=E*E,x=b.x+b.vx,C=b.y+b.vy,y.visit(L);function L(O,A,H,z,J){var re=O.data,te=O.r,j=E+te;if(re){if(re.index>b.index){var ne=x-re.x-re.vx,K=C-re.y-re.vy,V=ne*ne+K*K;V<j*j&&(ne===0&&(ne=Bi(o),V+=ne*ne),K===0&&(K=Bi(o),V+=K*K),V=(j-(V=Math.sqrt(V)))/V*s,b.vx+=(ne*=V)*(j=(te*=te)/(M+te)),b.vy+=(K*=V)*j,re.vx-=ne*(j=1-j),re.vy-=K*j)}return}return A>x+j||z<x-j||H>C+j||J<C-j}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,y;for(r=new Array(v),p=0;p<v;++p)y=t[p],r[y.index]=+e(y,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Tn(+p),h(),f):e},f}function Ege(e){return e.index}function E0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Lge(e){var t=Ege,r=y,o,s=Tn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function y(M){return 1/Math.min(d[M.source.index],d[M.target.index])}function b(M){for(var N=0,L=e.length;N<v;++N)for(var O=0,A,H,z,J,re,te,j;O<L;++O)A=e[O],H=A.source,z=A.target,J=z.x+z.vx-H.x-H.vx||Bi(p),re=z.y+z.vy-H.y-H.vy||Bi(p),te=Math.sqrt(J*J+re*re),te=(te-c[O])/te*M*o[O],J*=te,re*=te,z.vx-=J*(j=h[O]),z.vy-=re*j,H.vx+=J*(j=1-j),H.vy+=re*j}function x(){if(f){var M,N=f.length,L=e.length,O=new Map(f.map((H,z)=>[t(H,z,f),H])),A;for(M=0,d=new Array(N);M<L;++M)A=e[M],A.index=M,typeof A.source!="object"&&(A.source=E0(O,A.source)),typeof A.target!="object"&&(A.target=E0(O,A.target)),d[A.source.index]=(d[A.source.index]||0)+1,d[A.target.index]=(d[A.target.index]||0)+1;for(M=0,h=new Array(L);M<L;++M)A=e[M],h[M]=d[A.source.index]/(d[A.source.index]+d[A.target.index]);o=new Array(L),C(),c=new Array(L),E()}}function C(){if(f)for(var M=0,N=e.length;M<N;++M)o[M]=+r(e[M],M,e)}function E(){if(f)for(var M=0,N=e.length;M<N;++M)c[M]=+s(e[M],M,e)}return b.initialize=function(M,N){f=M,p=N,x()},b.links=function(M){return arguments.length?(e=M,x(),b):e},b.id=function(M){return arguments.length?(t=M,b):t},b.iterations=function(M){return arguments.length?(v=+M,b):v},b.strength=function(M){return arguments.length?(r=typeof M=="function"?M:Tn(+M),C(),b):r},b.distance=function(M){return arguments.length?(s=typeof M=="function"?M:Tn(+M),E(),b):s},b}const Age=1664525,Mge=1013904223,L0=4294967296;function Nge(){let e=1;return()=>(e=(Age*e+Mge)%L0)/L0}function $ge(e){return e.x}function Oge(e){return e.y}var Pge=10,Rge=Math.PI*(3-Math.sqrt(5));function Dge(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=tp(y),p=va("tick","end"),v=Nge();e==null&&(e=[]);function y(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(E){var M,N=e.length,L;E===void 0&&(E=1);for(var O=0;O<E;++O)for(r+=(c-r)*s,d.forEach(function(A){A(r)}),M=0;M<N;++M)L=e[M],L.fx==null?L.x+=L.vx*=f:(L.x=L.fx,L.vx=0),L.fy==null?L.y+=L.vy*=f:(L.y=L.fy,L.vy=0);return t}function x(){for(var E=0,M=e.length,N;E<M;++E){if(N=e[E],N.index=E,N.fx!=null&&(N.x=N.fx),N.fy!=null&&(N.y=N.fy),isNaN(N.x)||isNaN(N.y)){var L=Pge*Math.sqrt(.5+E),O=E*Rge;N.x=L*Math.cos(O),N.y=L*Math.sin(O)}(isNaN(N.vx)||isNaN(N.vy))&&(N.vx=N.vy=0)}}function C(E){return E.initialize&&E.initialize(e,v),E}return x(),t={tick:b,restart:function(){return h.restart(y),t},stop:function(){return h.stop(),t},nodes:function(E){return arguments.length?(e=E,x(),d.forEach(C),t):e},alpha:function(E){return arguments.length?(r=+E,t):r},alphaMin:function(E){return arguments.length?(o=+E,t):o},alphaDecay:function(E){return arguments.length?(s=+E,t):+s},alphaTarget:function(E){return arguments.length?(c=+E,t):c},velocityDecay:function(E){return arguments.length?(f=1-E,t):1-f},randomSource:function(E){return arguments.length?(v=E,d.forEach(C),t):v},force:function(E,M){return arguments.length>1?(M==null?d.delete(E):d.set(E,C(M)),t):d.get(E)},find:function(E,M,N){var L=0,O=e.length,A,H,z,J,re;for(N==null?N=1/0:N*=N,L=0;L<O;++L)J=e[L],A=E-J.x,H=M-J.y,z=A*A+H*H,z<N&&(re=J,N=z);return re},on:function(E,M){return arguments.length>1?(p.on(E,M),t):p.on(E)}}}function zge(){var e,t,r,o,s=Tn(-30),c,f=1,d=1/0,h=.81;function p(x){var C,E=e.length,M=op(e,$ge,Oge).visitAfter(y);for(o=x,C=0;C<E;++C)t=e[C],M.visit(b)}function v(){if(e){var x,C=e.length,E;for(c=new Array(C),x=0;x<C;++x)E=e[x],c[E.index]=+s(E,x,e)}}function y(x){var C=0,E,M,N=0,L,O,A;if(x.length){for(L=O=A=0;A<4;++A)(E=x[A])&&(M=Math.abs(E.value))&&(C+=E.value,N+=M,L+=M*E.x,O+=M*E.y);x.x=L/N,x.y=O/N}else{E=x,E.x=E.data.x,E.y=E.data.y;do C+=c[E.data.index];while(E=E.next)}x.value=C}function b(x,C,E,M){if(!x.value)return!0;var N=x.x-t.x,L=x.y-t.y,O=M-C,A=N*N+L*L;if(O*O/h<A)return A<d&&(N===0&&(N=Bi(r),A+=N*N),L===0&&(L=Bi(r),A+=L*L),A<f&&(A=Math.sqrt(f*A)),t.vx+=N*x.value*o/A,t.vy+=L*x.value*o/A),!0;if(x.length||A>=d)return;(x.data!==t||x.next)&&(N===0&&(N=Bi(r),A+=N*N),L===0&&(L=Bi(r),A+=L*L),A<f&&(A=Math.sqrt(f*A)));do x.data!==t&&(O=c[x.data.index]*o/A,t.vx+=N*O,t.vy+=L*O);while(x=x.next)}return p.initialize=function(x,C){e=x,r=C,v()},p.strength=function(x){return arguments.length?(s=typeof x=="function"?x:Tn(+x),v(),p):s},p.distanceMin=function(x){return arguments.length?(f=x*x,p):Math.sqrt(f)},p.distanceMax=function(x){return arguments.length?(d=x*x,p):Math.sqrt(d)},p.theta=function(x){return arguments.length?(h=x*x,p):Math.sqrt(h)},p}function Ige(e){var t=Tn(.1),r,o,s;typeof e!="function"&&(e=Tn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Tn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Tn(+d),f(),c):e},c}function Fge(e){var t=Tn(.1),r,o,s;typeof e!="function"&&(e=Tn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Tn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Tn(+d),f(),c):e},c}var Hge=Object.defineProperty,qge=(e,t,r)=>t in e?Hge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dt=(e,t,r)=>qge(e,typeof t!="symbol"?t+"":t,r);function Bge(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function A0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function Wi(...e){return e.reduce((t,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(t[o])&&Array.isArray(r[o])?t[o]=Wi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:A0(t[o])&&A0(r[o])?t[o]=Wi(t[o],r[o]):t[o]=r[o])}),t},{})}const S1={mergeArrays:!0};Wi.options=S1;Wi.withOptions=(e,...t)=>{Wi.options={mergeArrays:!0,...e};const r=Wi(...t);return Wi.options=S1,r};function Wge(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function Uge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function k1(e){e.preventDefault(),e.stopPropagation()}function T1(e){return typeof e=="number"}function Qi(e,t){return T1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Vge(e){return`${e.source.id}-${e.target.id}`}function C1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function jge(e){return`url(#${C1(e.color)})`}function Gge(e){return{size:e,padding:(t,r)=>Qi(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const E1={Arrow:e=>Gge(e)},Kge=(e,t,r)=>[t/2,r/2],L1=(e,t,r)=>[M0(0,t),M0(0,r)];function M0(e,t){return Math.random()*(t-e)+e}function Xge(e){const t=Object.fromEntries(e.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,s)=>{const[c,f]=t[r.id]??[];return!c||!f?L1(r,o,s):[c,f]}}const Qd={Centered:Kge,Randomized:L1,Stable:Xge};function Yge(){return{autoResize:!1,callbacks:{},hooks:{},initial:Uge(),nodeRadius:16,marker:E1.Arrow(4),modifiers:{},positionInitializer:Qd.Centered,simulation:{alphas:Bge(),forces:Wge()},zoom:{initial:1,min:.1,max:2}}}function Zge(e={}){return Wi.withOptions({mergeArrays:!1},Yge(),e)}function Jge({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>k1(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>s==null?void 0:s(v)).style("cursor","grab");return e&&p.call(h.transform,ip.translate(c,f).scale(d)),p.append("g")}function Qge({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function eve({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=mhe().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),Pn(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),Pn(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(s=(o=e.modifiers).drag)==null||s.call(o,c),c}function tve({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:nve({nodes:d,links:c},r)}function nve(e,t){const r=[...rve(e,t),...ive(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function rve(e,t){return A1(e,t,(r,o)=>r.target.id===o.id)}function ive(e,t){return A1(e,t,(r,o)=>r.source.id===o.id)}function A1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function eh(e){return e.x??0}function th(e){return e.y??0}function lp({source:e,target:t}){const r=new _n(eh(e),th(e)),o=new _n(eh(t),th(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function M1({center:e,node:t}){const r=new _n(eh(t),th(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new _n(0,1))),{n:r,c:o}}function N1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=lp({config:e,source:t,target:r}),f=o.add(c.multiply(Qi(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function ove(e){const{start:t,end:r}=N1(e);return`M${t.x},${t.y}
|
|
49
|
+
L${r.x},${r.y}`}function sve(e){const{start:t,end:r}=N1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function lve({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=lp({config:e,source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(Qi(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(Qi(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),y=1.2*c;return`M${p.x},${p.y}
|
|
50
|
+
A${y},${y},0,0,1,${v.x},${v.y}`}function ave({center:e,config:t,node:r}){const{n:o,c:s}=M1({center:e,config:t,node:r}),c=Qi(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),v=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
|
|
51
|
+
A${c},${c},0,1,0,${v.x},${v.y}`}function cve({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=lp({config:e,source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function uve({center:e,config:t,node:r}){const{n:o,c:s}=M1({center:e,config:t,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*Qi(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const ws={line:{labelTransform:sve,path:ove},arc:{labelTransform:cve,path:lve},reflexive:{labelTransform:uve,path:ave}};function fve(e){return e.append("g").classed("links",!0).selectAll("path")}function dve({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>Vge(c)).join(c=>{var f,d,h,p;const v=c.append("g"),y=v.append("path").classed("link",!0).style("marker-end",x=>jge(x)).style("stroke",x=>x.color);(d=(f=e.modifiers).link)==null||d.call(f,y);const b=v.append("text").classed("link__label",!0).style("fill",x=>x.label?x.label.color:null).style("font-size",x=>x.label?x.label.fontSize:null).text(x=>x.label?x.label.text:null);return(p=(h=e.modifiers).linkLabel)==null||p.call(h,b),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function hve(e){pve(e),gve(e)}function pve({center:e,config:t,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?ws.reflexive.path({config:t,node:s.source,center:e}):$1(r,s.source,s.target)?ws.arc.path({config:t,source:s.source,target:s.target}):ws.line.path({config:t,source:s.source,target:s.target}))}function gve({config:e,center:t,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?ws.reflexive.labelTransform({config:e,node:s.source,center:t}):$1(r,s.source,s.target)?ws.arc.labelTransform({config:e,source:s.source,target:s.target}):ws.line.labelTransform({config:e,source:s.source,target:s.target}))}function $1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function vve(e){return e.append("defs").selectAll("marker")}function mve({config:e,graph:t,selection:r}){return r==null?void 0:r.data(yve(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>C1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",bve(e.marker.path)),s})}function yve(e){return[...new Set(e.links.map(t=>t.color))]}function bve(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function wve(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function xve({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var p,v,y,b;const x=h.append("g");t!==void 0&&x.call(t);const C=x.append("circle").classed("node",!0).attr("r",M=>Qi(e,M)).on("contextmenu",(M,N)=>{k1(M),o(N)}).on("pointerdown",(M,N)=>Sve(M,N,s??o)).style("fill",M=>M.color);(v=(p=e.modifiers).node)==null||v.call(p,C);const E=x.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",M=>M.label?M.label.color:null).style("font-size",M=>M.label?M.label.fontSize:null).style("stroke","none").text(M=>M.label?M.label.text:null);return(b=(y=e.modifiers).nodeLabel)==null||b.call(y,E),x});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const _ve=500;function Sve(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>_ve){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function kve(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Tve({center:e,config:t,graph:r,onTick:o}){var s,c;const f=Dge(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const y=d.strength;f.force("x",Ige(()=>e().x).strength(y)).force("y",Fge(()=>e().y).strength(y))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",zge().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",Cge().radius(y=>p.radiusMultiplier*Qi(t,y)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",Lge(r.links).id(y=>y.id).distance(t.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=t.modifiers).simulation)==null||c.call(s,f),f}function Cve({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=lge().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(f=(c=t.modifiers).zoom)==null||f.call(c,d),d}class Eve{constructor(t,r,o){if(Dt(this,"nodeTypes"),Dt(this,"_nodeTypeFilter"),Dt(this,"_includeUnlinked",!0),Dt(this,"_linkFilter",()=>!0),Dt(this,"_showLinkLabels",!0),Dt(this,"_showNodeLabels",!0),Dt(this,"filteredGraph"),Dt(this,"width",0),Dt(this,"height",0),Dt(this,"simulation"),Dt(this,"canvas"),Dt(this,"linkSelection"),Dt(this,"nodeSelection"),Dt(this,"markerSelection"),Dt(this,"zoom"),Dt(this,"drag"),Dt(this,"xOffset",0),Dt(this,"yOffset",0),Dt(this,"scale"),Dt(this,"focusedNode"),Dt(this,"resizeObserver"),this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(Afe(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return _n.of([this.width,this.height]).divide(2).subtract(_n.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(T1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=mve({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=dve({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=xve({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=Tve({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=Cve({config:this.config,canvasContainer:()=>Pn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=Jge({applyZoom:this.scale!==1,container:Pn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=fve(this.canvas),this.nodeSelection=wve(this.canvas),this.markerSelection=vve(this.canvas),this.drag=eve({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){kve(this.nodeSelection),hve({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Pn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){var r,o,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){Qge({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=tve({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function N0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function Lve(e){return{...e}}function O1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const Ave={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Mve={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Nve=["id","checked","onChange"],$ve=["for"],Ove=Y("div",{"flex-auto":""},null,-1),Pve=ft({__name:"ViewModuleGraph",props:{graph:{},projectName:{}},setup(e){const t=e,{graph:r}=CS(t),o=Be(),s=Be(!1),c=Be(),f=Be();Eh(()=>{s.value===!1&&setTimeout(()=>c.value=void 0,300)},{flush:"post"}),Ns(()=>{p()}),bu(()=>{var y;(y=f.value)==null||y.shutdown()}),qt(r,p);function d(y,b){var x;(x=f.value)==null||x.filterNodesByType(b,y)}function h(y){c.value=y,s.value=!0}function p(){var y;(y=f.value)==null||y.shutdown(),!(!r.value||!o.value)&&(f.value=new Eve(o.value,r.value,Zge({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:b,newWidth:x})=>b===0&&x===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:E1.Arrow(2),modifiers:{node:v},positionInitializer:r.value.nodes.length>1?Qd.Randomized:Qd.Centered,zoom:{min:.5,max:2}})))}function v(y){if(Pr)return;const b=M=>M.button===0;let x=0,C=0,E=0;y.on("pointerdown",(M,N)=>{N.type!=="external"&&(!N.x||!N.y||!b(M)||(x=N.x,C=N.y,E=Date.now()))}).on("pointerup",(M,N)=>{if(N.type==="external"||!N.x||!N.y||!b(M)||Date.now()-E>500)return;const L=N.x-x,O=N.y-C;L**2+O**2<100&&h(N.id)})}return(y,b)=>{var N;const x=hi,C=Lfe,E=Gw,M=Hr("tooltip");return oe(),me("div",Ave,[Y("div",null,[Y("div",Mve,[(oe(!0),me(ut,null,li((N=q(f))==null?void 0:N.nodeTypes.sort(),L=>{var O;return oe(),me("div",{key:L,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${L}`,type:"checkbox",checked:(O=q(f))==null?void 0:O.nodeTypeFilter.includes(L),onChange:A=>d(L,A.target.checked)},null,40,Nve),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${L}`,"border-b-2":"",style:Zt({"border-color":`var(--color-node-${L})`})},qe(L)+" Modules",13,$ve)])}),128)),Ove,Y("div",null,[_t(Oe(x,{icon:"i-carbon-reset",onClick:p},null,512),[[M,"Reset",void 0,{bottom:!0}]])])])]),Y("div",{ref_key:"el",ref:o},null,512),Oe(E,{modelValue:q(s),"onUpdate:modelValue":b[1]||(b[1]=L=>Ot(s)?s.value=L:null),direction:"right"},{default:st(()=>[q(c)?(oe(),ot(vy,{key:0},{default:st(()=>[Oe(C,{id:q(c),"project-name":y.projectName,onClose:b[0]||(b[0]=L=>s.value=!1)},null,8,["id","project-name"])]),_:1})):et("",!0)]),_:1},8,["modelValue"])])}}}),Rve={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Dve={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},zve={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Ive={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Fve={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Hve={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},P1=ft({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Hr("tooltip");return t.state==="pass"?(oe(),me("div",Rve)):t.failedSnapshot?_t((oe(),me("div",Dve,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(oe(),me("div",zve)):t.mode==="todo"?_t((oe(),me("div",Ive,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?_t((oe(),me("div",Fve,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(oe(),me("div",Hve))}}});function qve(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:y,candidate:b}=c;t.set(y,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function Bve(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function Wve(e){const t=e.map(o=>Bve(o)),r=qve(t);return t.map(({raw:o,id:s})=>O1({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 Uve(e,t){return O1({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function Vve(e,t){if(!e)return N0({});const r=Wve(e.externalized),o=e.inlined.map(d=>Uve(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],y=c[p];if(!(v===void 0||y===void 0))return Lve({source:v,target:y,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return N0({nodes:s,links:f})}const jve={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},Gve={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Kve={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Xve={class:"flex text-lg"},Yve={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Zve=Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Jve={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Qve={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},eme=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1),tme=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1),nme={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},rme=["flex-1"],ime=ft({__name:"FileDetails",setup(e){const t=Be({nodes:[],links:[]}),r=Be(!1),o=Be(!1),s=Be(!1),c=Be(void 0),f=Me(()=>{const x=Xt.value;if(!(!x||!x.filepath))return{filepath:x.filepath,projectName:x.file.projectName||""}}),d=Me(()=>Xt.value&&Hh(Xt.value));function h(){var C;const x=(C=Xt.value)==null?void 0:C.filepath;x&&fetch(`/__open-in-editor?file=${encodeURIComponent(x)}`)}function p(x){x==="graph"&&(o.value=!0),qn.value=x}const v=Me(()=>{var x;return((x=Uw.value)==null?void 0:x.reduce((C,{size:E})=>C+E,0))??0});function y(x){r.value=x}async function b(){var x;if(!(s.value||((x=f.value)==null?void 0:x.filepath)===c.value)){s.value=!0,await ln();try{const C=f.value;if(!C)return;(!c.value||C.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length)&&(t.value=Vve(await yt.rpc.getModuleGraph(C.projectName,C.filepath,!!No),C.filepath),c.value=C.filepath),p("graph")}finally{await new Promise(C=>setTimeout(C,100)),s.value=!1}}}return bw(()=>[f.value,qn.value],([,x])=>{x==="graph"&&b()},{debounce:100,immediate:!0}),(x,C)=>{var z,J,re,te,j,ne;const E=P1,M=hi,N=Pve,L=mfe,O=afe,A=tfe,H=Hr("tooltip");return q(Xt)?(oe(),me("div",jve,[Y("div",null,[Y("div",Gve,[Oe(E,{state:(z=q(Xt).result)==null?void 0:z.state,mode:q(Xt).mode,"failed-snapshot":q(d)},null,8,["state","mode","failed-snapshot"]),(J=q(Xt))!=null&&J.file.projectName?(oe(),me("div",{key:0,"font-light":"","op-50":"","text-sm":"",style:Zt({color:q(Dw)((re=q(Xt))==null?void 0:re.file.projectName)})}," ["+qe(((te=q(Xt))==null?void 0:te.file.projectName)||"")+"] ",5)):et("",!0),Y("div",Kve,qe((j=q(Xt))==null?void 0:j.name),1),Y("div",Xve,[q(Pr)?et("",!0):_t((oe(),ot(M,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((ne=q(Xt))!=null&&ne.filepath),onClick:h},null,8,["disabled"])),[[H,"Open in editor",void 0,{bottom:!0}]])])]),Y("div",Yve,[Y("button",{"tab-button":"",class:lt(["flex items-center gap-2",{"tab-button-active":q(qn)==null}]),"data-testid":"btn-report",onClick:C[0]||(C[0]=K=>p(null))},[Zve,gt(" Report ")],2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:lt(["flex items-center gap-2",{"tab-button-active":q(qn)==="graph"}]),onClick:C[1]||(C[1]=K=>p("graph"))},[q(s)?(oe(),me("span",Jve)):(oe(),me("span",Qve)),gt(" Module Graph ")],2),Y("button",{"tab-button":"","data-testid":"btn-code",class:lt(["flex items-center gap-2",{"tab-button-active":q(qn)==="editor"}]),onClick:C[2]||(C[2]=K=>p("editor"))},[eme,gt(" "+qe(q(r)?"* ":"")+"Code ",1)],2),Y("button",{"tab-button":"","data-testid":"btn-console",class:lt(["flex items-center gap-2",{"tab-button-active":q(qn)==="console",op20:q(qn)!=="console"&&q(v)===0}]),onClick:C[3]||(C[3]=K=>p("console"))},[tme,gt(" Console ("+qe(q(v))+") ",1)],2)])]),Y("div",nme,[q(o)?(oe(),me("div",{key:0,"flex-1":q(qn)==="graph"&&""},[_t(Oe(N,{graph:q(t),"data-testid":"graph","project-name":q(Xt).file.projectName||""},null,8,["graph","project-name"]),[[ml,q(qn)==="graph"&&!q(s)]])],8,rme)):et("",!0),q(qn)==="editor"?(oe(),ot(L,{key:q(Xt).filepath,file:q(Xt),"data-testid":"editor",onDraft:y},null,8,["file"])):q(qn)==="console"?(oe(),ot(O,{key:2,file:q(Xt),"data-testid":"console"},null,8,["file"])):q(qn)?et("",!0):(oe(),ot(A,{key:3,file:q(Xt),"data-testid":"report"},null,8,["file"]))])])):et("",!0)}}}),ome={h:"full",flex:"~ col"},sme=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon:folder-details-reference"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1),lme={"flex-auto":"","py-1":"","bg-white":""},ame=["src"],cme=ft({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(oe(),me("div",ome,[sme,Y("div",lme,[Y("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,ame)])]))}}),ume={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},fme={"font-bold":""},dme={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},hme=["font-bold"],pme={text:"red500/70"},gme=Y("br",null,null,-1),vme={key:1,text:"sm","mb-2":""},mme={"font-bold":""},yme={key:2,text:"sm","mb-2":""},bme={"font-bold":""},wme=Y("br",null,null,-1),xme=Y("ul",null,[Y("li",null," The error was thrown, while Vitest was running this test. "),Y("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1),_me={key:3,text:"sm","font-thin":""},Sme=Y("br",null,null,-1),kme=Y("ul",null,[Y("li",null," Cancel timeouts using clearTimeout and clearInterval. "),Y("li",null," Wait for promises to resolve using the await keyword. ")],-1),Tme=ft({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return oe(),me(ut,null,[Y("h4",ume,[Y("span",fme,[gt(qe(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(oe(),me(ut,{key:0},[gt(":")],64)):et("",!0)]),gt(" "+qe(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(oe(),me("p",dme,[(oe(!0),me(ut,null,li(t.error.stacks,(s,c)=>(oe(),me("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[gt("❯ "+qe(s.method)+" "+qe(s.file)+":",1),Y("span",pme,qe(s.line)+":"+qe(s.column),1),gme],8,hme))),128))])):et("",!0),t.error.VITEST_TEST_PATH?(oe(),me("p",vme,[gt(" This error originated in "),Y("span",mme,qe(t.error.VITEST_TEST_PATH),1),gt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ")])):et("",!0),t.error.VITEST_TEST_NAME?(oe(),me("p",yme,[gt(" The latest test that might've caused the error is "),Y("span",bme,qe(t.error.VITEST_TEST_NAME),1),gt(". It might mean one of the following:"),wme,xme])):et("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(oe(),me("p",_me,[gt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),Sme,kme])):et("",!0)],64)}}}),En=e=>(sa("data-v-0178ddee"),e=e(),la(),e),Cme={"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:""},Eme=En(()=>Y("div",{"i-carbon-document":""},null,-1)),Lme=En(()=>Y("div",null,"Files",-1)),Ame={class:"number","data-testid":"num-files"},Mme=En(()=>Y("div",{"i-carbon-checkmark":""},null,-1)),Nme=En(()=>Y("div",null,"Pass",-1)),$me={class:"number"},Ome=En(()=>Y("div",{"i-carbon-close":""},null,-1)),Pme=En(()=>Y("div",null," Fail ",-1)),Rme={class:"number","text-red5":""},Dme=En(()=>Y("div",{"i-carbon-compare":""},null,-1)),zme=En(()=>Y("div",null," Snapshot Fail ",-1)),Ime={class:"number","text-red5":""},Fme=En(()=>Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),Hme=En(()=>Y("div",null," Errors ",-1)),qme={class:"number","text-red5":""},Bme=En(()=>Y("div",{"i-carbon-timer":""},null,-1)),Wme=En(()=>Y("div",null,"Time",-1)),Ume={class:"number","data-testid":"run-time"},Vme={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},jme=En(()=>Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),Gme={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Kme=En(()=>Y("br",null,null,-1)),Xme={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Yme=En(()=>Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),Zme=ft({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=Tme;return oe(),me(ut,null,[Y("div",Cme,[Eme,Lme,Y("div",Ame,qe(q(Ce).summary.files),1),q(Ce).summary.filesSuccess?(oe(),me(ut,{key:0},[Mme,Nme,Y("div",$me,qe(q(Ce).summary.filesSuccess),1)],64)):et("",!0),q(Ce).summary.filesFailed?(oe(),me(ut,{key:1},[Ome,Pme,Y("div",Rme,qe(q(Ce).summary.filesFailed),1)],64)):et("",!0),q(Ce).summary.filesSnapshotFailed?(oe(),me(ut,{key:2},[Dme,zme,Y("div",Ime,qe(q(Ce).summary.filesSnapshotFailed),1)],64)):et("",!0),q(Ii).length?(oe(),me(ut,{key:3},[Fme,Hme,Y("div",qme,qe(q(Ii).length),1)],64)):et("",!0),Bme,Wme,Y("div",Ume,qe(q(Ce).summary.time),1)]),q(Ii).length?(oe(),me("div",Vme,[jme,Y("p",Gme,[gt(" Vitest caught "+qe(q(Ii).length)+" error"+qe(q(Ii).length>1?"s":"")+" during the test run.",1),Kme,gt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ")]),Y("details",Xme,[Yme,(oe(!0),me(ut,null,li(q(Ii),(s,c)=>(oe(),ot(o,{key:c,error:s},null,8,["error"]))),128))])])):et("",!0)],64)}}}),Jme=di(Zme,[["__scopeId","data-v-0178ddee"]]),Qme={"p-2":"","text-center":"",flex:""},e0e={"text-4xl":"","min-w-2em":""},t0e={"text-md":""},n0e=ft({__name:"DashboardEntry",setup(e){return(t,r)=>(oe(),me("div",Qme,[Y("div",null,[Y("div",e0e,[hn(t.$slots,"body")]),Y("div",t0e,[hn(t.$slots,"header")])])]))}}),r0e={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},i0e=ft({__name:"TestsEntry",setup(e){return(t,r)=>{const o=n0e;return oe(),me("div",r0e,[Oe(o,{"text-green5":"","data-testid":"pass-entry"},{header:st(()=>[gt(" Pass ")]),body:st(()=>[gt(qe(q(Ce).summary.testsSuccess),1)]),_:1}),Oe(o,{class:lt({"text-red5":q(Ce).summary.testsFailed,op50:!q(Ce).summary.testsFailed}),"data-testid":"fail-entry"},{header:st(()=>[gt(" Fail ")]),body:st(()=>[gt(qe(q(Ce).summary.testsFailed),1)]),_:1},8,["class"]),q(Ce).summary.testsSkipped?(oe(),ot(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:st(()=>[gt(" Skip ")]),body:st(()=>[gt(qe(q(Ce).summary.testsSkipped),1)]),_:1})):et("",!0),q(Ce).summary.testsTodo?(oe(),ot(o,{key:1,op50:"","data-testid":"todo-entry"},{header:st(()=>[gt(" Todo ")]),body:st(()=>[gt(qe(q(Ce).summary.testsTodo),1)]),_:1})):et("",!0),Oe(o,{tail:!0,"data-testid":"total-entry"},{header:st(()=>[gt(" Total ")]),body:st(()=>[gt(qe(q(Ce).summary.totalTests),1)]),_:1})])}}}),o0e={},s0e={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},l0e={"aria-labelledby":"tests",m:"y-4 x-2"};function a0e(e,t){const r=i0e,o=Jme;return oe(),me("div",s0e,[Y("section",l0e,[Oe(r)]),Oe(o)])}const c0e=di(o0e,[["render",a0e]]),u0e={},f0e={h:"full",flex:"~ col"},d0e=Y("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Y("div",{class:"i-carbon-dashboard"}),Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),h0e={class:"scrolls","flex-auto":"","py-1":""};function p0e(e,t){const r=c0e;return oe(),me("div",f0e,[d0e,Y("div",h0e,[Oe(r)])])}const g0e=di(u0e,[["render",p0e]]),v0e=["open"],m0e=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),y0e=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),b0e=ft({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Be(!0);return(r,o)=>(oe(),me("div",{open:q(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[Y("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:lt(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[m0e,hn(r.$slots,"summary",{open:q(t)}),y0e],2),hn(r.$slots,"default")],40,v0e))}}),w0e={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},x0e={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(oe(),me("button",w0e,[Y("span",{block:"",class:lt([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},ap=e=>(sa("data-v-96b36737"),e=e(),la(),e),_0e=["aria-label","data-current"],S0e={key:1,"w-4":""},k0e={key:2,class:"i-logos:typescript-icon","flex-shrink-0":"","mr-2":""},T0e=["text"],C0e={"text-sm":"",truncate:"","font-light":""},E0e=["innerHTML"],L0e={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},A0e={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},M0e={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},N0e=ap(()=>Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),$0e=ap(()=>Y("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),O0e=ap(()=>Y("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1)),P0e={key:1},R0e=ft({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Me(()=>yt.state.idMap.get(e.taskId)),r=Me(()=>{if(Pr)return!1;const C=t.value;return C&&Hh(C)});function o(){e.expandable&&(e.opened?Ce.collapseNode(e.taskId):Ce.expandNode(e.taskId))}async function s(C){var E;(E=e.onItemClick)==null||E.call(e,C),us.value&&(tu.value=!0,await ln()),await Xh([C.file])}function c(C){return yt.rpc.updateSnapshot(C.file)}const f=Me(()=>e.indent<=0?[]:Array.from({length:e.indent},(C,E)=>`${e.taskId}-${E}`)),d=Me(()=>{const C=f.value,E=[];return(e.type==="file"||e.type==="suite")&&E.push("min-content"),E.push("min-content"),e.type==="suite"&&e.typecheck&&E.push("min-content"),E.push("minmax(0, 1fr)"),E.push("min-content"),`grid-template-columns: ${C.map(()=>"1rem").join(" ")} ${E.join(" ")};`}),h=Me(()=>Pw(e.name)),p=Me(()=>{const C=Hce.value,E=h.value;return C?E.replace(C,M=>`<span class="highlight">${M}</span>`):E}),v=Me(()=>e.type!=="file"&&e.disableTaskLocation),y=Me(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),b=Me(()=>v.value?"color-red5 dark:color-#f43f5e":null);function x(){var E;const C=t.value;e.type==="file"?(E=e.onItemClick)==null||E.call(e,C):gfe(C)}return(C,E)=>{const M=P1,N=x0e,L=hi,O=Hr("tooltip");return q(t)?(oe(),me("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:Zt(q(d)),"aria-label":C.name,"data-current":C.current,onClick:E[2]||(E[2]=A=>o())},[C.indent>0?(oe(!0),me(ut,{key:0},li(q(f),A=>(oe(),me("div",{key:A,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):et("",!0),C.type==="file"||C.type==="suite"?(oe(),me("div",S0e,[Y("div",{class:lt(C.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):et("",!0),Oe(M,{state:C.state,mode:q(t).mode,"failed-snapshot":q(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),C.type==="suite"&&C.typecheck?(oe(),me("div",k0e)):et("",!0),Y("div",{flex:"","items-end":"","gap-2":"",text:C.state==="fail"?"red-500":"","overflow-hidden":""},[Y("span",C0e,[C.type==="file"&&C.projectName?(oe(),me("span",{key:0,style:Zt({color:C.projectNameColor})}," ["+qe(C.projectName)+"] ",5)):et("",!0),Y("span",{innerHTML:q(p)},null,8,E0e)]),typeof C.duration=="number"?(oe(),me("span",L0e,qe(C.duration>0?C.duration:"< 1")+"ms ",1)):et("",!0)],8,T0e),Y("div",A0e,[!q(Pr)&&q(r)?_t((oe(),ot(N,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:E[0]||(E[0]=xc(A=>c(q(t)),["prevent","stop"]))},null,512)),[[O,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):et("",!0),Oe(q(Pb),{placement:"bottom",class:lt(["w-1.4em h-1.4em op100 rounded flex",q(b)])},{popper:st(()=>[q(v)?(oe(),me("div",M0e,[N0e,Y("div",null,[gt(qe(q(y))+": this feature is not available, you have disabled ",1),$0e,gt(" in your configuration file.")]),O0e])):(oe(),me("div",P0e,qe(q(y)),1))]),default:st(()=>[Oe(L,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:xc(x,["prevent","stop"])})]),_:1},8,["class"]),q(Pr)?et("",!0):_t((oe(),ot(L,{key:1,"data-testid":"btn-run-test",title:"Run current test",icon:"i-carbon:play-filled-alt","text-green5":"",disabled:C.type!=="file",onClick:E[1]||(E[1]=xc(A=>s(q(t)),["prevent","stop"]))},null,8,["disabled"])),[[O,"Run current test",void 0,{bottom:!0}]])])],12,_0e)):et("",!0)}}}),D0e=di(R0e,[["__scopeId","data-v-96b36737"]]),z0e={"flex-1":"","ms-2":"","select-none":""},I0e=ft({__name:"FilterStatus",props:zc({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Ah(e,"modelValue");return(r,o)=>(oe(),me("label",oi({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=xc(s=>t.value=!t.value,["prevent"]))}),[Y("span",{class:lt([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),_t(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[hT,t.value]]),Y("span",z0e,qe(r.label),1)],16))}});function F0e(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Nc;function nh(){nh.init||(nh.init=!0,Nc=F0e()!==-1)}var qu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){nh(),ln(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Nc&&this.$el.appendChild(e),e.data="about:blank",Nc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Nc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const H0e=py();sa("data-v-b329ee4c");const q0e={class:"resize-observer",tabindex:"-1"};la();const B0e=H0e((e,t,r,o,s,c)=>(oe(),ot("div",q0e)));qu.render=B0e;qu.__scopeId="data-v-b329ee4c";qu.__file="src/components/ResizeObserver.vue";function $c(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$c=function(t){return typeof t}:$c=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$c(e)}function W0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U0e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function V0e(e,t,r){return t&&U0e(e.prototype,t),e}function $0(e){return j0e(e)||G0e(e)||K0e(e)||X0e()}function j0e(e){if(Array.isArray(e))return rh(e)}function G0e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function K0e(e,t){if(e){if(typeof e=="string")return rh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rh(e,t)}}function rh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function X0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
52
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y0e(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Z0e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),y=1;y<p;y++)v[y-1]=arguments[y];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat($0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat($0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function R1(e,t){if(e===t)return!0;if($c(e)==="object"){for(var r in e)if(!R1(e[r],t[r]))return!1;return!0}return!1}var J0e=function(){function e(t,r,o){W0e(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return V0e(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Y0e(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=Z0e(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(y){return y.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),ln(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function D1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new J0e(e,o,r);e._vue_visibilityState=s}}function Q0e(e,t,r){var o=t.value,s=t.oldValue;if(!R1(o,s)){var c=e._vue_visibilityState;if(!o){z1(e);return}c?c.createObserver(o,r):D1(e,{value:o},r)}}function z1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var eye={beforeMount:D1,updated:Q0e,unmounted:z1},tye={itemsLimit:1e3},nye=/(auto|scroll)/;function I1(e,t){return e.parentNode===null?t:I1(e.parentNode,t.concat([e]))}var ad=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},rye=function(t){return ad(t,"overflow")+ad(t,"overflow-y")+ad(t,"overflow-x")},iye=function(t){return nye.test(rye(t))};function O0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=I1(e.parentNode,[]),r=0;r<t.length;r+=1)if(iye(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function ih(e){"@babel/helpers - typeof";return ih=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ih(e)}var oye={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function sye(){return this.items.length&&ih(this.items[0])!=="object"}var oh=!1;if(typeof window<"u"){oh=!1;try{var lye=Object.defineProperty({},"passive",{get:function(){oh=!0}});window.addEventListener("test",null,lye)}catch{}}let aye=0;var cp={name:"RecycleScroller",components:{ResizeObserver:qu},directives:{ObserveVisibility:eye},props:{...oye,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:sye,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=mh({id:aye++,index:t,used:!0,key:o,type:s}),f=gh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,y=this.$_views,b=this.$_unusedViews,x=this.pool,C=this.itemIndexByKey;let E,M,N,L,O;if(!p)E=M=L=O=N=0;else if(this.$_prerender)E=L=0,M=O=Math.min(this.prerender,h.length),N=null;else{const j=this.getScroll();if(t){let V=j.start-this.$_lastUpdateScrollPosition;if(V<0&&(V=-V),r===null&&V<c||V<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=j.start;const ne=this.buffer;j.start-=ne,j.end+=ne;let K=0;if(this.$refs.before&&(K=this.$refs.before.scrollHeight,j.start-=K),this.$refs.after){const V=this.$refs.after.scrollHeight;j.end+=V}if(r===null){let V,I=0,k=p-1,B=~~(p/2),W;do W=B,V=v[B].accumulator,V<j.start?I=B:B<p-1&&v[B+1].accumulator>j.start&&(k=B),B=~~((I+k)/2);while(B!==W);for(B<0&&(B=0),E=B,N=v[p-1].accumulator,M=B;M<p&&v[M].accumulator<j.end;M++);for(M===-1?M=h.length-1:(M++,M>p&&(M=p)),L=E;L<p&&K+v[L].accumulator<j.start;L++);for(O=L;O<p&&K+v[O].accumulator<j.end;O++);}else{E=~~(j.start/r*o);const V=E%o;E-=V,M=Math.ceil(j.end/r*o),L=Math.max(0,Math.floor((j.start-K)/r*o)),O=Math.floor((j.end-K)/r*o),E<0&&(E=0),M>p&&(M=p),L<0&&(L=0),O>p&&(O=p),N=Math.ceil(p/o)*r}}M-E>tye.itemsLimit&&this.itemsLimitError(),this.totalSize=N;let A;const H=E<=this.$_endIndex&&M>=this.$_startIndex;if(H)for(let j=0,ne=x.length;j<ne;j++)A=x[j],A.nr.used&&(e&&(A.nr.index=C[A.item[d]]),(A.nr.index==null||A.nr.index<E||A.nr.index>=M)&&this.unuseView(A));const z=H?null:new Map;let J,re,te;for(let j=E;j<M;j++){J=h[j];const ne=d?J[d]:J;if(ne==null)throw new Error(`Key is ${ne} on item (keyField is '${d}')`);if(A=y.get(ne),!r&&!v[j].size){A&&this.unuseView(A);continue}re=J[f];let K=b.get(re),V=!1;if(!A)H?K&&K.length?A=K.pop():A=this.addView(x,j,J,ne,re):(te=z.get(re)||0,(!K||te>=K.length)&&(A=this.addView(x,j,J,ne,re),this.unuseView(A,!0),K=b.get(re)),A=K[te],z.set(re,te+1)),y.delete(A.nr.key),A.nr.used=!0,A.nr.index=j,A.nr.key=ne,A.nr.type=re,y.set(ne,A),V=!0;else if(!A.nr.used&&(A.nr.used=!0,V=!0,K)){const I=K.indexOf(A);I!==-1&&K.splice(I,1)}A.item=J,V&&(j===h.length-1&&this.$emit("scroll-end"),j===0&&this.$emit("scroll-start")),r===null?(A.position=v[j-1].accumulator,A.offset=0):(A.position=Math.floor(j/o)*r,A.offset=j%o*s)}return this.$_startIndex=E,this.$_endIndex=M,this.emitUpdate&&this.$emit("update",E,M,L,O),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:H}},getListenerTarget(){let e=O0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,oh?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=O0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const cye={key:0,ref:"before",class:"vue-recycle-scroller__slot"},uye={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function fye(e,t,r,o,s,c){const f=Ao("ResizeObserver"),d=Hr("observe-visibility");return _t((oe(),me("div",{class:lt(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(oe(),me("div",cye,[hn(e.$slots,"before")],512)):et("v-if",!0),(oe(),ot(xv(r.listTag),{ref:"wrapper",style:Zt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:lt(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:st(()=>[(oe(!0),me(ut,null,li(s.pool,h=>(oe(),ot(xv(r.itemTag),oi({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},tk(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:st(()=>[hn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),hn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(oe(),me("div",uye,[hn(e.$slots,"after")],512)):et("v-if",!0),Oe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}cp.render=fye;cp.__file="src/components/RecycleScroller.vue";function dye(e){const t=Me(()=>Hd.value?!1:!Qe.onlyTests),r=Me(()=>On.value===""),o=Be(On.value);bw(On,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;On.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;Qe.failed=!1,Qe.success=!1,Qe.skipped=!1,Qe.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,y,b){Es.value&&(on.value.search=(h==null?void 0:h.trim())??"",on.value.failed=p,on.value.success=v,on.value.skipped=y,on.value.onlyTests=b)}return qt(()=>[o.value,Qe.failed,Qe.success,Qe.skipped,Qe.onlyTests],([h,p,v,y,b])=>{d(h,p,v,y,b),Ce.filterNodes()},{flush:"post"}),qt(()=>_r.value.length,h=>{h&&(on.value.expandAll=void 0)},{flush:"post"}),{initialized:Es,filter:Qe,search:On,disableFilter:t,isFiltered:Rw,isFilteredByStatus:Hd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Ru,testsTotal:qce,uiEntries:zn}}const hye={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},pye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},gye=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),vye=["op"],mye=Y("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1),yye=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1),bye={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},wye={"text-red5":""},xye=Y("span",null,"/",-1),_ye={"text-yellow5":""},Sye={"text-green5":""},kye=Y("span",null,"/",-1),Tye={class:"text-purple5:50"},Cye={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Eye=Y("div",{op30:""}," No matched test ",-1),Lye=["disabled"],Aye=["disabled"],Mye={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Nye=Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),$ye=Y("div",{op30:""}," Loading... ",-1),Oye=[Nye,$ye],Pye=ft({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=Me(()=>zu.value.includeTaskLocation),s=Be(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:y,clearAll:b,clearSearch:x,clearFilter:C,filteredFiles:E,testsTotal:M,uiEntries:N}=dye(s),L=Be("grid-cols-2"),O=Be("grid-col-span-2"),A=Be();return Cw(A,H=>{const{width:z}=H[0].contentRect;z<420?(L.value="grid-cols-2",O.value="grid-col-span-2"):(L.value="grid-cols-4",O.value="grid-col-span-4")}),(H,z)=>{const J=hi,re=I0e,te=D0e,j=b0e,ne=Hr("tooltip");return oe(),me("div",{ref_key:"testExplorerRef",ref:A,h:"full",flex:"~ col"},[Y("div",null,[Y("div",hye,[hn(H.$slots,"header",{filteredFiles:q(p)||q(v)?q(E):void 0})]),Y("div",pye,[gye,_t(Y("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":z[0]||(z[0]=K=>Ot(d)?d.value=K:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:q(d).length?"100":"50",onKeydown:[z[1]||(z[1]=kd(K=>q(x)(!1),["esc"])),z[2]||(z[2]=kd(K=>r("run",q(p)||q(v)?q(E):void 0),["enter"]))]},null,40,vye),[[dT,q(d)]]),_t(Oe(J,{disabled:q(y),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:z[3]||(z[3]=K=>q(x)(!0))},null,8,["disabled"]),[[ne,"Clear search",void 0,{bottom:!0}]])]),Y("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:lt(q(L))},[Y("div",{class:lt(q(O)),flex:"~ gap-2 items-center"},[mye,yye,_t(Oe(J,{disabled:q(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:z[4]||(z[4]=K=>q(C)(!1))},null,8,["disabled"]),[[ne,"Clear Filter",void 0,{bottom:!0}]])],2),Oe(re,{modelValue:q(f).failed,"onUpdate:modelValue":z[5]||(z[5]=K=>q(f).failed=K),label:"Fail"},null,8,["modelValue"]),Oe(re,{modelValue:q(f).success,"onUpdate:modelValue":z[6]||(z[6]=K=>q(f).success=K),label:"Pass"},null,8,["modelValue"]),Oe(re,{modelValue:q(f).skipped,"onUpdate:modelValue":z[7]||(z[7]=K=>q(f).skipped=K),label:"Skip"},null,8,["modelValue"]),Oe(re,{modelValue:q(f).onlyTests,"onUpdate:modelValue":z[8]||(z[8]=K=>q(f).onlyTests=K),label:"Only Tests"},null,8,["modelValue"])],2)]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:z[12]||(z[12]=(...K)=>q(Mm)&&q(Mm)(...K))},[Oe(j,null,ek({default:st(()=>[(q(p)||q(v))&&q(N).length===0?(oe(),me(ut,{key:0},[q(c)?(oe(),me("div",Cye,[Eye,Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:lt(q(y)?null:"hover:op100"),disabled:q(y),onClickPassive:z[9]||(z[9]=K=>q(x)(!0))}," Clear Search ",42,Lye),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:lt(q(h)?null:"hover:op100"),disabled:q(h),onClickPassive:z[10]||(z[10]=K=>q(C)(!0))}," Clear Filter ",42,Aye),Y("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:z[11]||(z[11]=(...K)=>q(b)&&q(b)(...K))}," Clear All ",32)])):(oe(),me("div",Mye,Oye))],64)):(oe(),ot(q(cp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:q(N),buffer:100},{default:st(({item:K})=>[Oe(te,{class:lt(["h-28px m-0 p-0",q(Zi)===K.id?"bg-active":""]),"task-id":K.id,expandable:K.expandable,type:K.type,current:q(Zi)===K.id,indent:K.indent,name:K.name,typecheck:K.typecheck===!0,"project-name":K.projectName??"","project-name-color":K.projectNameColor??"",state:K.state,duration:K.duration,opened:K.expanded,"disable-task-location":!q(o),"on-item-click":H.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[q(c)?{name:"summary",fn:st(()=>[Y("div",bye,[Y("span",wye," FAIL ("+qe(q(M).failed)+") ",1),xye,Y("span",_ye," RUNNING ("+qe(q(M).running)+") ",1),Y("span",Sye," PASS ("+qe(q(M).success)+") ",1),kye,Y("span",Tye," SKIP ("+qe(q(f).onlyTests?q(M).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Rye=""+new URL("../favicon.svg",import.meta.url).href,Dye=Y("img",{"w-6":"","h-6":"",src:Rye,alt:"Vitest logo"},null,-1),zye=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Iye={class:"flex text-lg"},Fye=Y("div",{class:"i-carbon:folder-off ma"},null,-1),Hye=Y("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Y("div",null,"Coverage enabled but missing html reporter."),Y("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1),qye=ft({__name:"Navigation",setup(e){function t(){return yt.rpc.updateSnapshot()}const r=Me(()=>pa.value?"light":"dark");async function o(f){us.value&&(tu.value=!0,await ln(),Ji.value&&(nu(!0),await ln())),f!=null&&f.length?await Xh(f):await mue()}function s(){Ce.collapseAllNodes()}function c(){Ce.expandAllNodes()}return(f,d)=>{const h=hi,p=Pye,v=Hr("tooltip");return oe(),ot(p,{border:"r base","on-item-click":q(Vw),nested:!0,onRun:o},{header:st(({filteredFiles:y})=>[Dye,zye,Y("div",Iye,[_t(Oe(h,{title:"Collapse tests",disabled:!q(Es),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[ml,!q(r0)],[v,"Collapse tests",void 0,{bottom:!0}]]),_t(Oe(h,{disabled:!q(Es),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[ml,q(r0)],[v,"Expand tests",void 0,{bottom:!0}]]),_t(Oe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>q(nu)(!0))},null,512),[[ml,q(Ud)&&!q(us)||!q(ms)],[v,"Dashboard",void 0,{bottom:!0}]]),q(Ud)&&!q(us)?(oe(),ot(q(Pb),{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:st(()=>[Hye]),default:st(()=>[Fye]),_:1})):et("",!0),q(us)?_t((oe(),ot(h,{key:1,disabled:q(tu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>q(kue)())},null,8,["disabled"])),[[ml,!q(Ji)],[v,"Coverage",void 0,{bottom:!0}]]):et("",!0),q(Ce).summary.failedSnapshot&&!q(Pr)?_t((oe(),ot(h,{key:2,icon:"i-carbon:result-old",disabled:!q(Ce).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>q(Ce).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):et("",!0),q(Pr)?et("",!0):_t((oe(),ot(h,{key:3,disabled:(y==null?void 0:y.length)===0,icon:"i-carbon:play",onClick:b=>o(y)},null,8,["disabled","onClick"])),[[v,y?y.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),_t(Oe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>q(Wue)())},null,512),[[v,`Toggle to ${q(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Bye={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Wye=ft({__name:"ProgressBar",setup(e){const{width:t}=vce(),r=Me(()=>Ce.summary.files===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":Ice.value?null:"in-progress"),o=Me(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesSuccess/d:0}),s=Me(()=>{const d=Ce.summary.files;return d>0?t.value*Ce.summary.filesFailed/d:0}),c=Me(()=>Ce.summary.files-Ce.summary.filesFailed-Ce.summary.filesSuccess),f=Me(()=>{const d=Ce.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(oe(),me("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:lt(q(r))},[Y("div",Bye,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:lt(q(r)),style:Zt(`width: ${q(s)}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:lt(q(r)),style:Zt(`left: ${q(s)}px; width: ${q(o)}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:lt(q(r)),style:Zt(`left: ${q(o)+q(s)}px; width: ${q(f)}px;`)}," ",6)])],2))}}),Uye=di(Wye,[["__scopeId","data-v-38451300"]]),P0={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===t?o.max:o.min,s!==t&&(r+=o.min),o)),this.panes[t].size-=r,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:r-t.left,y:o-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(e),s),o);let f=[t,t+1],d=this.panes[f[0]]||null,h=this.panes[f[1]]||null;const p=d.max<100&&c>=d.max+r.prevPanesSize,v=h.max<100&&c<=100-(h.max+this.sumNextPanesSize(t+1));if(p||v){p?(d.size=d.max,h.size=Math.max(100-d.max-r.prevPanesSize-r.nextPanesSize,0)):(d.size=Math.max(100-h.max-r.prevPanesSize-this.sumNextPanesSize(t+1),0),h.size=h.max);return}if(this.pushOtherPanes){const y=this.doPushOtherPanes(r,c);if(!y)return;({sums:r,panesToResize:f}=y),d=this.panes[f[0]]||null,h=this.panes[f[1]]||null}d!==null&&(d.size=Math.min(Math.max(c-r.prevPanesSize-r.prevReachedMinPanes,d.min),d.max)),h!==null&&(h.size=Math.min(Math.max(100-c-r.nextPanesSize-r.nextReachedMinPanes,h.min),h.max))},doPushOtherPanes(e,t){const r=this.touch.activeSplitter,o=[r,r+1];return t<e.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,e.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((s,c)=>{c>o[0]&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,c)=>{c>0&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,e.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,c)=>{c>r&&c<o[1]&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),e.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((s,c)=>{c<this.panesCount-1&&c>=r+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:o}},sumPrevPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o<e?r.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o>e+1?r.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),r=e.classList.contains("splitpanes__splitter");!t&&!r&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,r=!1){const o=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=c=>this.onMouseDown(c,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=c=>this.onMouseDown(c,o)),s.onclick=c=>this.onSplitterClick(c,o+1)),this.dblClickSplitter&&(s.ondblclick=c=>this.onSplitterDblClick(c,o+1)),t.parentNode.insertBefore(s,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let t=0;e.forEach(r=>{r.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,r,!0):t&&this.addSplitter(t,r),t++)})},requestUpdate({target:e,...t}){const r=this.indexedPanes[e._.uid];Object.entries(t).forEach(([o,s])=>r[o]=s)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&t++,s===e.$el));const r=parseFloat(e.minSize),o=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,c)=>s.index=c),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(o=>o.id===e._.uid),r=this.panes.splice(t,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:t}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),t-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),t>.1&&this.readjustSizes(t,r,o)},initialPanesSizing(){let e=100;const t=[],r=[];let o=0;this.panes.forEach(c=>{e-=c.size,c.size!==null&&o++,c.size>=c.max&&t.push(c.id),c.size<=c.min&&r.push(c.id)});let s=100;e>.1&&(this.panes.forEach(c=>{c.size===null&&(c.size=Math.max(Math.min(e/(this.panesCount-o),c.max),c.min)),s-=c.size}),s>.1&&this.readjustSizes(e,t,r))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let r=100/this.panesCount,o=0;const s=[],c=[];e&&e.givenSize!==null&&(r=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{e&&e.givenSize!==null&&e.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),o>.1&&this.readjustSizes(o,s,c))},readjustSizes(e,t,r){let o;e>0?o=e/(this.panesCount-t.length):o=e/(this.panesCount-r.length),this.panes.forEach((s,c)=>{if(e>0&&!t.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,r)=>{t.ondblclick=e?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return ua("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Vye=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},jye={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function Gye(e,t,r,o,s,c){return oe(),me("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=f=>c.onPaneClick(f,e._.uid)),style:Zt(e.style)},[hn(e.$slots,"default")],4)}const gc=Vye(jye,[["render",Gye]]),Kye={"h-screen":"","w-screen":"",overflow:"hidden"},Xye=ft({__name:"index",setup(e){const t=Sue(),r=Pu("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),o=t0(f=>{f.forEach((d,h)=>{r.value[h]=d.size})},0),s=t0(f=>{f.forEach((d,h)=>{Cc.value[h]=d.size}),rd(!1)},0);function c(){const f=window.innerWidth,d=Math.min(f/3,300);r.value[0]=100*d/f,r.value[1]=100-r.value[0]}return(f,d)=>{const h=Uye,p=qye,v=g0e,y=cme,b=ime,x=Nue,C=xue;return oe(),me(ut,null,[Oe(h),Y("div",Kye,[Oe(q(P0),{class:"pt-4px",onResized:q(o),onResize:d[2]||(d[2]=E=>q(rd)(!0)),onReady:c},{default:st(()=>[Oe(q(gc),{size:q(r)[0]},{default:st(()=>[Oe(p)]),_:1},8,["size"]),Oe(q(gc),{size:q(r)[1]},{default:st(()=>[q(No)?(oe(),ot(q(P0),{id:"details-splitpanes",key:"browser-detail",onResize:d[1]||(d[1]=E=>q(rd)(!0)),onResized:q(s)},{default:st(()=>[Oe(q(gc),{size:q(Cc)[0],"min-size":"10"},{default:st(()=>[d[0]||(Hc(-1),d[0]=Oe(x),Hc(1),d[0])]),_:1},8,["size"]),Oe(q(gc),{size:q(Cc)[1],"min-size":"5"},{default:st(()=>[q(t)?(oe(),ot(v,{key:"summary"})):q(Ji)?(oe(),ot(y,{key:"coverage",src:q(l0)},null,8,["src"])):(oe(),ot(b,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResized"])):(oe(),ot(Mh,{key:"ui-detail"},{default:st(()=>[q(t)?(oe(),ot(v,{key:"summary"})):q(Ji)?(oe(),ot(y,{key:"coverage",src:q(l0)},null,8,["src"])):(oe(),ot(b,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized"])]),Oe(C)],64)}}}),Yye=[{name:"index",path:"/",component:Xye,props:!0}],Zye={tooltip:CE};Rb.options.instantMove=!0;Rb.options.distance=10;function Jye(){return LC({history:nC(),routes:Yye})}const Qye=[Jye],up=Ky(kT);Qye.forEach(e=>{up.use(e())});Object.entries(Zye).forEach(([e,t])=>{up.directive(e,t)});up.mount("#app");
|