@vitest/browser 5.0.0-beta.2 → 5.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/context.d.ts +8 -0
- package/dist/client/.vite/manifest.json +8 -8
- package/dist/client/__vitest__/assets/index-BlLo6Q_D.css +1 -0
- package/dist/client/__vitest__/assets/index-O8gheoYf.js +89 -0
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/__vitest_browser__/defineProperty-C3k2g8Sk.js +267 -0
- package/dist/client/__vitest_browser__/orchestrator-B44yH1M4.js +343 -0
- package/dist/client/__vitest_browser__/rrweb-snapshot-iZCFA2to.js +4388 -0
- package/dist/client/__vitest_browser__/tester-Byk-s_d6.js +5088 -0
- package/dist/client/orchestrator.html +2 -2
- package/dist/client/tester/tester.html +2 -2
- package/dist/client/tester/trace.d.ts +9 -6
- package/dist/client.js +10 -1
- package/dist/context.js +53 -23
- package/dist/expect-element.js +30 -30
- package/dist/index.js +92 -23
- package/dist/locators-DUkyvRhY.js +5 -0
- package/dist/locators.js +1 -1
- package/dist/shared/screenshotMatcher/types.d.ts +2 -1
- package/dist/state.js +64 -14
- package/dist/types.d.ts +2 -0
- package/jest-dom.d.ts +1 -0
- package/matchers.d.ts +2 -1
- package/package.json +6 -6
- package/dist/client/__vitest__/assets/index-Cd6On2Pm.js +0 -136
- package/dist/client/__vitest__/assets/index-Dw9P28Qt.css +0 -1
- package/dist/client/__vitest_browser__/orchestrator-BfoS0x4w.js +0 -411
- package/dist/client/__vitest_browser__/rrweb-snapshot-xhvrgOHx.js +0 -5476
- package/dist/client/__vitest_browser__/tester-BJtW9QqZ.js +0 -5588
- package/dist/client/__vitest_browser__/utils-Nd8hqrhP.js +0 -189
- package/dist/locators-CesZ2RSY.js +0 -5
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const a of l.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();/**
|
|
2
|
-
* @vue/shared v3.5.29
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/function eg(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const bt={},ml=[],vi=()=>{},f1=()=>!1,hd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),tg=e=>e.startsWith("onUpdate:"),rn=Object.assign,ng=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},XA=Object.prototype.hasOwnProperty,Tt=(e,t)=>XA.call(e,t),Ye=Array.isArray,gl=e=>Rc(e)==="[object Map]",Gl=e=>Rc(e)==="[object Set]",A0=e=>Rc(e)==="[object Date]",it=e=>typeof e=="function",Vt=e=>typeof e=="string",Yr=e=>typeof e=="symbol",xt=e=>e!==null&&typeof e=="object",d1=e=>(xt(e)||it(e))&&it(e.then)&&it(e.catch),h1=Object.prototype.toString,Rc=e=>h1.call(e),JA=e=>Rc(e).slice(8,-1),p1=e=>Rc(e)==="[object Object]",pd=e=>Vt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,qa=eg(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),md=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ZA=/-\w/g,xr=md(e=>e.replace(ZA,t=>t.slice(1).toUpperCase())),QA=/\B([A-Z])/g,eo=md(e=>e.replace(QA,"-$1").toLowerCase()),gd=md(e=>e.charAt(0).toUpperCase()+e.slice(1)),of=md(e=>e?`on${gd(e)}`:""),or=(e,t)=>!Object.is(e,t),sf=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},m1=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},vd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},g1=e=>{const t=Vt(e)?Number(e):NaN;return isNaN(t)?e:t};let M0;const yd=()=>M0||(M0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ut(e){if(Ye(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Vt(r)?rM(r):Ut(r);if(o)for(const l in o)t[l]=o[l]}return t}else if(Vt(e)||xt(e))return e}const eM=/;(?![^(]*\))/g,tM=/:([^]+)/,nM=/\/\*[^]*?\*\//g;function rM(e){const t={};return e.replace(nM,"").split(eM).forEach(n=>{if(n){const r=n.split(tM);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function rt(e){let t="";if(Vt(e))t=e;else if(Ye(e))for(let n=0;n<e.length;n++){const r=rt(e[n]);r&&(t+=r+" ")}else if(xt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function iM(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Vt(t)&&(e.class=rt(t)),n&&(e.style=Ut(n)),e}const oM="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",sM=eg(oM);function v1(e){return!!e||e===""}function lM(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Kl(e[r],t[r]);return n}function Kl(e,t){if(e===t)return!0;let n=A0(e),r=A0(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Yr(e),r=Yr(t),n||r)return e===t;if(n=Ye(e),r=Ye(t),n||r)return n&&r?lM(e,t):!1;if(n=xt(e),r=xt(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,l=Object.keys(t).length;if(o!==l)return!1;for(const a in e){const f=e.hasOwnProperty(a),d=t.hasOwnProperty(a);if(f&&!d||!f&&d||!Kl(e[a],t[a]))return!1}}return String(e)===String(t)}function rg(e,t){return e.findIndex(n=>Kl(n,t))}const y1=e=>!!(e&&e.__v_isRef===!0),Ee=e=>Vt(e)?e:e==null?"":Ye(e)||xt(e)&&(e.toString===h1||!it(e.toString))?y1(e)?Ee(e.value):JSON.stringify(e,b1,2):String(e),b1=(e,t)=>y1(t)?b1(e,t.value):gl(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],l)=>(n[Yh(r,l)+" =>"]=o,n),{})}:Gl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Yh(n))}:Yr(t)?Yh(t):xt(t)&&!Ye(t)&&!p1(t)?String(t):t,Yh=(e,t="")=>{var n;return Yr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.29
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let An;class aM{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=An,!t&&An&&(this.index=(An.scopes||(An.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=An;try{return An=this,t()}finally{An=n}}}on(){++this._on===1&&(this.prevScope=An,An=this)}off(){this._on>0&&--this._on===0&&(An=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function ig(){return An}function cM(e,t=!1){An&&An.cleanups.push(e)}let $t;const Xh=new WeakSet;class w1{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,An&&An.active&&An.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Xh.has(this)&&(Xh.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||S1(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,$0(this),_1(this);const t=$t,n=Gr;$t=this,Gr=!0;try{return this.fn()}finally{k1(this),$t=t,Gr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)lg(t);this.deps=this.depsTail=void 0,$0(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Xh.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Fp(this)&&this.run()}get dirty(){return Fp(this)}}let x1=0,Va,Ga;function S1(e,t=!1){if(e.flags|=8,t){e.next=Ga,Ga=e;return}e.next=Va,Va=e}function og(){x1++}function sg(){if(--x1>0)return;if(Ga){let t=Ga;for(Ga=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Va;){let t=Va;for(Va=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function _1(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function k1(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),lg(r),uM(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Fp(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(T1(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function T1(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ic)||(e.globalVersion=ic,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Fp(e))))return;e.flags|=2;const t=e.dep,n=$t,r=Gr;$t=e,Gr=!0;try{_1(e);const o=e.fn(e._value);(t.version===0||or(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{$t=n,Gr=r,k1(e),e.flags&=-3}}function lg(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)lg(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function uM(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Gr=!0;const C1=[];function Ki(){C1.push(Gr),Gr=!1}function Yi(){const e=C1.pop();Gr=e===void 0?!0:e}function $0(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=$t;$t=void 0;try{t()}finally{$t=n}}}let ic=0;class fM{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class bd{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!$t||!Gr||$t===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$t)n=this.activeLink=new fM($t,this),$t.deps?(n.prevDep=$t.depsTail,$t.depsTail.nextDep=n,$t.depsTail=n):$t.deps=$t.depsTail=n,E1(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=$t.depsTail,n.nextDep=void 0,$t.depsTail.nextDep=n,$t.depsTail=n,$t.deps===n&&($t.deps=r)}return n}trigger(t){this.version++,ic++,this.notify(t)}notify(t){og();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{sg()}}}function E1(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)E1(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Cf=new WeakMap,bs=Symbol(""),zp=Symbol(""),oc=Symbol("");function Mn(e,t,n){if(Gr&&$t){let r=Cf.get(e);r||Cf.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new bd),o.map=r,o.key=n),o.track()}}function ji(e,t,n,r,o,l){const a=Cf.get(e);if(!a){ic++;return}const f=d=>{d&&d.trigger()};if(og(),t==="clear")a.forEach(f);else{const d=Ye(e),p=d&&pd(n);if(d&&n==="length"){const m=Number(r);a.forEach((g,y)=>{(y==="length"||y===oc||!Yr(y)&&y>=m)&&f(g)})}else switch((n!==void 0||a.has(void 0))&&f(a.get(n)),p&&f(a.get(oc)),t){case"add":d?p&&f(a.get("length")):(f(a.get(bs)),gl(e)&&f(a.get(zp)));break;case"delete":d||(f(a.get(bs)),gl(e)&&f(a.get(zp)));break;case"set":gl(e)&&f(a.get(bs));break}}sg()}function dM(e,t){const n=Cf.get(e);return n&&n.get(t)}function ol(e){const t=yt(e);return t===e?t:(Mn(t,"iterate",oc),br(e)?t:t.map(Xr))}function wd(e){return Mn(e=yt(e),"iterate",oc),e}function ko(e,t){return Xi(e)?$l(ws(e)?Xr(t):t):Xr(t)}const hM={__proto__:null,[Symbol.iterator](){return Jh(this,Symbol.iterator,e=>ko(this,e))},concat(...e){return ol(this).concat(...e.map(t=>Ye(t)?ol(t):t))},entries(){return Jh(this,"entries",e=>(e[1]=ko(this,e[1]),e))},every(e,t){return Ri(this,"every",e,t,void 0,arguments)},filter(e,t){return Ri(this,"filter",e,t,n=>n.map(r=>ko(this,r)),arguments)},find(e,t){return Ri(this,"find",e,t,n=>ko(this,n),arguments)},findIndex(e,t){return Ri(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ri(this,"findLast",e,t,n=>ko(this,n),arguments)},findLastIndex(e,t){return Ri(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ri(this,"forEach",e,t,void 0,arguments)},includes(...e){return Zh(this,"includes",e)},indexOf(...e){return Zh(this,"indexOf",e)},join(e){return ol(this).join(e)},lastIndexOf(...e){return Zh(this,"lastIndexOf",e)},map(e,t){return Ri(this,"map",e,t,void 0,arguments)},pop(){return Ma(this,"pop")},push(...e){return Ma(this,"push",e)},reduce(e,...t){return N0(this,"reduce",e,t)},reduceRight(e,...t){return N0(this,"reduceRight",e,t)},shift(){return Ma(this,"shift")},some(e,t){return Ri(this,"some",e,t,void 0,arguments)},splice(...e){return Ma(this,"splice",e)},toReversed(){return ol(this).toReversed()},toSorted(e){return ol(this).toSorted(e)},toSpliced(...e){return ol(this).toSpliced(...e)},unshift(...e){return Ma(this,"unshift",e)},values(){return Jh(this,"values",e=>ko(this,e))}};function Jh(e,t,n){const r=wd(e),o=r[t]();return r!==e&&!br(e)&&(o._next=o.next,o.next=()=>{const l=o._next();return l.done||(l.value=n(l.value)),l}),o}const pM=Array.prototype;function Ri(e,t,n,r,o,l){const a=wd(e),f=a!==e&&!br(e),d=a[t];if(d!==pM[t]){const g=d.apply(e,l);return f?Xr(g):g}let p=n;a!==e&&(f?p=function(g,y){return n.call(this,ko(e,g),y,e)}:n.length>2&&(p=function(g,y){return n.call(this,g,y,e)}));const m=d.call(a,p,r);return f&&o?o(m):m}function N0(e,t,n,r){const o=wd(e);let l=n;return o!==e&&(br(e)?n.length>3&&(l=function(a,f,d){return n.call(this,a,f,d,e)}):l=function(a,f,d){return n.call(this,a,ko(e,f),d,e)}),o[t](l,...r)}function Zh(e,t,n){const r=yt(e);Mn(r,"iterate",oc);const o=r[t](...n);return(o===-1||o===!1)&&xd(n[0])?(n[0]=yt(n[0]),r[t](...n)):o}function Ma(e,t,n=[]){Ki(),og();const r=yt(e)[t].apply(e,n);return sg(),Yi(),r}const mM=eg("__proto__,__v_isRef,__isVue"),A1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Yr));function gM(e){Yr(e)||(e=String(e));const t=yt(this);return Mn(t,"has",e),t.hasOwnProperty(e)}class M1{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return l;if(n==="__v_raw")return r===(o?l?CM:L1:l?O1:N1).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Ye(t);if(!o){let d;if(a&&(d=hM[n]))return d;if(n==="hasOwnProperty")return gM}const f=Reflect.get(t,n,Rt(t)?t:r);if((Yr(n)?A1.has(n):mM(n))||(o||Mn(t,"get",n),l))return f;if(Rt(f)){const d=a&&pd(n)?f:f.value;return o&&xt(d)?Ml(d):d}return xt(f)?o?Ml(f):yr(f):f}}class $1 extends M1{constructor(t=!1){super(!1,t)}set(t,n,r,o){let l=t[n];const a=Ye(t)&&pd(n);if(!this._isShallow){const p=Xi(l);if(!br(r)&&!Xi(r)&&(l=yt(l),r=yt(r)),!a&&Rt(l)&&!Rt(r))return p||(l.value=r),!0}const f=a?Number(n)<t.length:Tt(t,n),d=Reflect.set(t,n,r,Rt(t)?t:o);return t===yt(o)&&(f?or(r,l)&&ji(t,"set",n,r):ji(t,"add",n,r)),d}deleteProperty(t,n){const r=Tt(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&ji(t,"delete",n,void 0),o}has(t,n){const r=Reflect.has(t,n);return(!Yr(n)||!A1.has(n))&&Mn(t,"has",n),r}ownKeys(t){return Mn(t,"iterate",Ye(t)?"length":bs),Reflect.ownKeys(t)}}class vM extends M1{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const yM=new $1,bM=new vM,wM=new $1(!0);const Bp=e=>e,Mu=e=>Reflect.getPrototypeOf(e);function xM(e,t,n){return function(...r){const o=this.__v_raw,l=yt(o),a=gl(l),f=e==="entries"||e===Symbol.iterator&&a,d=e==="keys"&&a,p=o[e](...r),m=n?Bp:t?$l:Xr;return!t&&Mn(l,"iterate",d?zp:bs),rn(Object.create(p),{next(){const{value:g,done:y}=p.next();return y?{value:g,done:y}:{value:f?[m(g[0]),m(g[1])]:m(g),done:y}}})}}function $u(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function SM(e,t){const n={get(o){const l=this.__v_raw,a=yt(l),f=yt(o);e||(or(o,f)&&Mn(a,"get",o),Mn(a,"get",f));const{has:d}=Mu(a),p=t?Bp:e?$l:Xr;if(d.call(a,o))return p(l.get(o));if(d.call(a,f))return p(l.get(f));l!==a&&l.get(o)},get size(){const o=this.__v_raw;return!e&&Mn(yt(o),"iterate",bs),o.size},has(o){const l=this.__v_raw,a=yt(l),f=yt(o);return e||(or(o,f)&&Mn(a,"has",o),Mn(a,"has",f)),o===f?l.has(o):l.has(o)||l.has(f)},forEach(o,l){const a=this,f=a.__v_raw,d=yt(f),p=t?Bp:e?$l:Xr;return!e&&Mn(d,"iterate",bs),f.forEach((m,g)=>o.call(l,p(m),p(g),a))}};return rn(n,e?{add:$u("add"),set:$u("set"),delete:$u("delete"),clear:$u("clear")}:{add(o){!t&&!br(o)&&!Xi(o)&&(o=yt(o));const l=yt(this);return Mu(l).has.call(l,o)||(l.add(o),ji(l,"add",o,o)),this},set(o,l){!t&&!br(l)&&!Xi(l)&&(l=yt(l));const a=yt(this),{has:f,get:d}=Mu(a);let p=f.call(a,o);p||(o=yt(o),p=f.call(a,o));const m=d.call(a,o);return a.set(o,l),p?or(l,m)&&ji(a,"set",o,l):ji(a,"add",o,l),this},delete(o){const l=yt(this),{has:a,get:f}=Mu(l);let d=a.call(l,o);d||(o=yt(o),d=a.call(l,o)),f&&f.call(l,o);const p=l.delete(o);return d&&ji(l,"delete",o,void 0),p},clear(){const o=yt(this),l=o.size!==0,a=o.clear();return l&&ji(o,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=xM(o,e,t)}),n}function ag(e,t){const n=SM(e,t);return(r,o,l)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Tt(n,o)&&o in r?n:r,o,l)}const _M={get:ag(!1,!1)},kM={get:ag(!1,!0)},TM={get:ag(!0,!1)};const N1=new WeakMap,O1=new WeakMap,L1=new WeakMap,CM=new WeakMap;function EM(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function AM(e){return e.__v_skip||!Object.isExtensible(e)?0:EM(JA(e))}function yr(e){return Xi(e)?e:ug(e,!1,yM,_M,N1)}function cg(e){return ug(e,!1,wM,kM,O1)}function Ml(e){return ug(e,!0,bM,TM,L1)}function ug(e,t,n,r,o){if(!xt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=AM(e);if(l===0)return e;const a=o.get(e);if(a)return a;const f=new Proxy(e,l===2?r:n);return o.set(e,f),f}function ws(e){return Xi(e)?ws(e.__v_raw):!!(e&&e.__v_isReactive)}function Xi(e){return!!(e&&e.__v_isReadonly)}function br(e){return!!(e&&e.__v_isShallow)}function xd(e){return e?!!e.__v_raw:!1}function yt(e){const t=e&&e.__v_raw;return t?yt(t):e}function Sd(e){return!Tt(e,"__v_skip")&&Object.isExtensible(e)&&m1(e,"__v_skip",!0),e}const Xr=e=>xt(e)?yr(e):e,$l=e=>xt(e)?Ml(e):e;function Rt(e){return e?e.__v_isRef===!0:!1}function Ve(e){return R1(e,!1)}function qt(e){return R1(e,!0)}function R1(e,t){return Rt(e)?e:new MM(e,t)}class MM{constructor(t,n){this.dep=new bd,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:yt(t),this._value=n?t:Xr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||br(t)||Xi(t);t=r?t:yt(t),or(t,n)&&(this._rawValue=t,this._value=r?t:Xr(t),this.dep.trigger())}}function j(e){return Rt(e)?e.value:e}function nn(e){return it(e)?e():j(e)}const $M={get:(e,t,n)=>t==="__v_raw"?e:j(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Rt(o)&&!Rt(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function P1(e){return ws(e)?e:new Proxy(e,$M)}class NM{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new bd,{get:r,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function I1(e){return new NM(e)}function OM(e){const t=Ye(e)?new Array(e.length):{};for(const n in e)t[n]=D1(e,n);return t}class LM{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=yt(t);let o=!0,l=t;if(!Ye(t)||!pd(String(n)))do o=!xd(l)||br(l);while(o&&(l=l.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=j(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Rt(this._raw[this._key])){const n=this._object[this._key];if(Rt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return dM(this._raw,this._key)}}class RM{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function PM(e,t,n){return Rt(e)?e:it(e)?new RM(e):xt(e)&&arguments.length>1?D1(e,t,n):Ve(e)}function D1(e,t,n){return new LM(e,t,n)}class IM{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new bd(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ic-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&$t!==this)return S1(this,!0),!0}get value(){const t=this.dep.track();return T1(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function DM(e,t,n=!1){let r,o;return it(e)?r=e:(r=e.get,o=e.set),new IM(r,o,n)}const Nu={},Ef=new WeakMap;let fs;function FM(e,t=!1,n=fs){if(n){let r=Ef.get(n);r||Ef.set(n,r=[]),r.push(e)}}function zM(e,t,n=bt){const{immediate:r,deep:o,once:l,scheduler:a,augmentJob:f,call:d}=n,p=$=>o?$:br($)||o===!1||o===0?Wi($,1):Wi($);let m,g,y,w,E=!1,_=!1;if(Rt(e)?(g=()=>e.value,E=br(e)):ws(e)?(g=()=>p(e),E=!0):Ye(e)?(_=!0,E=e.some($=>ws($)||br($)),g=()=>e.map($=>{if(Rt($))return $.value;if(ws($))return p($);if(it($))return d?d($,2):$()})):it(e)?t?g=d?()=>d(e,2):e:g=()=>{if(y){Ki();try{y()}finally{Yi()}}const $=fs;fs=m;try{return d?d(e,3,[w]):e(w)}finally{fs=$}}:g=vi,t&&o){const $=g,D=o===!0?1/0:o;g=()=>Wi($(),D)}const k=ig(),A=()=>{m.stop(),k&&k.active&&ng(k.effects,m)};if(l&&t){const $=t;t=(...D)=>{$(...D),A()}}let N=_?new Array(e.length).fill(Nu):Nu;const I=$=>{if(!(!(m.flags&1)||!m.dirty&&!$))if(t){const D=m.run();if(o||E||(_?D.some((U,J)=>or(U,N[J])):or(D,N))){y&&y();const U=fs;fs=m;try{const J=[D,N===Nu?void 0:_&&N[0]===Nu?[]:N,w];N=D,d?d(t,3,J):t(...J)}finally{fs=U}}}else m.run()};return f&&f(I),m=new w1(g),m.scheduler=a?()=>a(I,!1):I,w=$=>FM($,!1,m),y=m.onStop=()=>{const $=Ef.get(m);if($){if(d)d($,4);else for(const D of $)D();Ef.delete(m)}},t?r?I(!0):N=m.run():a?a(I.bind(null,!0),!0):m.run(),A.pause=m.pause.bind(m),A.resume=m.resume.bind(m),A.stop=A,A}function Wi(e,t=1/0,n){if(t<=0||!xt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Rt(e))Wi(e.value,t,n);else if(Ye(e))for(let r=0;r<e.length;r++)Wi(e[r],t,n);else if(Gl(e)||gl(e))e.forEach(r=>{Wi(r,t,n)});else if(p1(e)){for(const r in e)Wi(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Wi(e[r],t,n)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.29
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function Pc(e,t,n,r){try{return r?e(...r):e()}catch(o){Ic(o,t,n)}}function Jr(e,t,n,r){if(it(e)){const o=Pc(e,t,n,r);return o&&d1(o)&&o.catch(l=>{Ic(l,t,n)}),o}if(Ye(e)){const o=[];for(let l=0;l<e.length;l++)o.push(Jr(e[l],t,n,r));return o}}function Ic(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:l,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||bt;if(t){let f=t.parent;const d=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${n}`;for(;f;){const m=f.ec;if(m){for(let g=0;g<m.length;g++)if(m[g](e,d,p)===!1)return}f=f.parent}if(l){Ki(),Pc(l,null,10,[e,d,p]),Yi();return}}BM(e,n,o,r,a)}function BM(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const Vn=[];let fi=-1;const vl=[];let To=null,al=0;const F1=Promise.resolve();let Af=null;function Mt(e){const t=Af||F1;return e?t.then(this?e.bind(this):e):t}function HM(e){let t=fi+1,n=Vn.length;for(;t<n;){const r=t+n>>>1,o=Vn[r],l=sc(o);l<e||l===e&&o.flags&2?t=r+1:n=r}return t}function fg(e){if(!(e.flags&1)){const t=sc(e),n=Vn[Vn.length-1];!n||!(e.flags&2)&&t>=sc(n)?Vn.push(e):Vn.splice(HM(t),0,e),e.flags|=1,z1()}}function z1(){Af||(Af=F1.then(H1))}function Hp(e){Ye(e)?vl.push(...e):To&&e.id===-1?To.splice(al+1,0,e):e.flags&1||(vl.push(e),e.flags|=1),z1()}function O0(e,t,n=fi+1){for(;n<Vn.length;n++){const r=Vn[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Vn.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function B1(e){if(vl.length){const t=[...new Set(vl)].sort((n,r)=>sc(n)-sc(r));if(vl.length=0,To){To.push(...t);return}for(To=t,al=0;al<To.length;al++){const n=To[al];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}To=null,al=0}}const sc=e=>e.id==null?e.flags&2?-1:1/0:e.id;function H1(e){try{for(fi=0;fi<Vn.length;fi++){const t=Vn[fi];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Pc(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;fi<Vn.length;fi++){const t=Vn[fi];t&&(t.flags&=-2)}fi=-1,Vn.length=0,B1(),Af=null,(Vn.length||vl.length)&&H1()}}let Tn=null,_d=null;function Mf(e){const t=Tn;return Tn=e,_d=e&&e.type.__scopeId||null,t}function j1(e){_d=e}function W1(){_d=null}const U1=e=>ze;function ze(e,t=Tn,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Ol(-1);const l=Mf(t);let a;try{a=e(...o)}finally{Mf(l),r._d&&Ol(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function st(e,t){if(Tn===null)return e;const n=$d(Tn),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[l,a,f,d=bt]=t[o];l&&(it(l)&&(l={mounted:l,updated:l}),l.deep&&Wi(a),r.push({dir:l,instance:n,value:a,oldValue:void 0,arg:f,modifiers:d}))}return e}function os(e,t,n,r){const o=e.dirs,l=t&&t.dirs;for(let a=0;a<o.length;a++){const f=o[a];l&&(f.oldValue=l[a].value);let d=f.dir[r];d&&(Ki(),Jr(d,n,8,[e.el,f,e,t]),Yi())}}function Er(e,t){if(Nn){let n=Nn.provides;const r=Nn.parent&&Nn.parent.provides;r===n&&(n=Nn.provides=Object.create(r)),n[e]=t}}function kn(e,t,n=!1){const r=ei();if(r||xs){let o=xs?xs._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&it(t)?t.call(r&&r.proxy):t}}function q1(){return!!(ei()||xs)}const jM=Symbol.for("v-scx"),WM=()=>kn(jM);function V1(e,t){return kd(e,null,t)}function UM(e,t){return kd(e,null,{flush:"sync"})}function ct(e,t,n){return kd(e,t,n)}function kd(e,t,n=bt){const{immediate:r,deep:o,flush:l,once:a}=n,f=rn({},n),d=t&&r||!t&&l!=="post";let p;if(uc){if(l==="sync"){const w=WM();p=w.__watcherHandles||(w.__watcherHandles=[])}else if(!d){const w=()=>{};return w.stop=vi,w.resume=vi,w.pause=vi,w}}const m=Nn;f.call=(w,E,_)=>Jr(w,m,E,_);let g=!1;l==="post"?f.scheduler=w=>{Hn(w,m&&m.suspense)}:l!=="sync"&&(g=!0,f.scheduler=(w,E)=>{E?w():fg(w)}),f.augmentJob=w=>{t&&(w.flags|=4),g&&(w.flags|=2,m&&(w.id=m.uid,w.i=m))};const y=zM(e,t,f);return uc&&(p?p.push(y):d&&y()),y}function qM(e,t,n){const r=this.proxy,o=Vt(e)?e.includes(".")?G1(r,e):()=>r[e]:e.bind(r,r);let l;it(t)?l=t:(l=t.handler,n=t);const a=Fc(this),f=kd(o,l.bind(r),n);return a(),f}function G1(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const VM=Symbol("_vte"),K1=e=>e.__isTeleport,di=Symbol("_leaveCb"),$a=Symbol("_enterCb");function GM(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ki(()=>{e.isMounted=!0}),Dc(()=>{e.isUnmounting=!0}),e}const Tr=[Function,Array],Y1={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Tr,onEnter:Tr,onAfterEnter:Tr,onEnterCancelled:Tr,onBeforeLeave:Tr,onLeave:Tr,onAfterLeave:Tr,onLeaveCancelled:Tr,onBeforeAppear:Tr,onAppear:Tr,onAfterAppear:Tr,onAppearCancelled:Tr},X1=e=>{const t=e.subTree;return t.component?X1(t.component):t},KM={name:"BaseTransition",props:Y1,setup(e,{slots:t}){const n=ei(),r=GM();return()=>{const o=t.default&&Q1(t.default(),!0);if(!o||!o.length)return;const l=J1(o),a=yt(e),{mode:f}=a;if(r.isLeaving)return Qh(l);const d=L0(l);if(!d)return Qh(l);let p=jp(d,a,r,n,g=>p=g);d.type!==gn&&lc(d,p);let m=n.subTree&&L0(n.subTree);if(m&&m.type!==gn&&!hi(m,d)&&X1(n).type!==gn){let g=jp(m,a,r,n);if(lc(m,g),f==="out-in"&&d.type!==gn)return r.isLeaving=!0,g.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete g.afterLeave,m=void 0},Qh(l);f==="in-out"&&d.type!==gn?g.delayLeave=(y,w,E)=>{const _=Z1(r,m);_[String(m.key)]=m,y[di]=()=>{w(),y[di]=void 0,delete p.delayedLeave,m=void 0},p.delayedLeave=()=>{E(),delete p.delayedLeave,m=void 0}}:m=void 0}else m&&(m=void 0);return l}}};function J1(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==gn){t=n;break}}return t}const YM=KM;function Z1(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function jp(e,t,n,r,o){const{appear:l,mode:a,persisted:f=!1,onBeforeEnter:d,onEnter:p,onAfterEnter:m,onEnterCancelled:g,onBeforeLeave:y,onLeave:w,onAfterLeave:E,onLeaveCancelled:_,onBeforeAppear:k,onAppear:A,onAfterAppear:N,onAppearCancelled:I}=t,$=String(e.key),D=Z1(n,e),U=(X,V)=>{X&&Jr(X,r,9,V)},J=(X,V)=>{const q=V[1];U(X,V),Ye(X)?X.every(P=>P.length<=1)&&q():X.length<=1&&q()},ee={mode:a,persisted:f,beforeEnter(X){let V=d;if(!n.isMounted)if(l)V=k||d;else return;X[di]&&X[di](!0);const q=D[$];q&&hi(e,q)&&q.el[di]&&q.el[di](),U(V,[X])},enter(X){if(D[$]===e)return;let V=p,q=m,P=g;if(!n.isMounted)if(l)V=A||p,q=N||m,P=I||g;else return;let L=!1;X[$a]=S=>{L||(L=!0,S?U(P,[X]):U(q,[X]),ee.delayedLeave&&ee.delayedLeave(),X[$a]=void 0)};const T=X[$a].bind(null,!1);V?J(V,[X,T]):T()},leave(X,V){const q=String(e.key);if(X[$a]&&X[$a](!0),n.isUnmounting)return V();U(y,[X]);let P=!1;X[di]=T=>{P||(P=!0,V(),T?U(_,[X]):U(E,[X]),X[di]=void 0,D[q]===e&&delete D[q])};const L=X[di].bind(null,!1);D[q]=e,w?J(w,[X,L]):L()},clone(X){const V=jp(X,t,n,r,o);return o&&o(V),V}};return ee}function Qh(e){if(Td(e))return e=zo(e),e.children=null,e}function L0(e){if(!Td(e))return K1(e.type)&&e.children?J1(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&it(n.default))return n.default()}}function lc(e,t){e.shapeFlag&6&&e.component?(e.transition=t,lc(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 Q1(e,t=!1,n){let r=[],o=0;for(let l=0;l<e.length;l++){let a=e[l];const f=n==null?a.key:String(n)+String(a.key!=null?a.key:l);a.type===nt?(a.patchFlag&128&&o++,r=r.concat(Q1(a.children,t,f))):(t||a.type!==gn)&&r.push(f!=null?zo(a,{key:f}):a)}if(o>1)for(let l=0;l<r.length;l++)r[l].patchFlag=-2;return r}function et(e,t){return it(e)?rn({name:e.name},t,{setup:e}):e}function dg(){const e=ei();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function eS(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function XM(e){const t=ei(),n=qt(null);if(t){const o=t.refs===bt?t.refs={}:t.refs;Object.defineProperty(o,e,{enumerable:!0,get:()=>n.value,set:l=>n.value=l})}return n}function R0(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const $f=new WeakMap;function Ka(e,t,n,r,o=!1){if(Ye(e)){e.forEach((_,k)=>Ka(_,t&&(Ye(t)?t[k]:t),n,r,o));return}if(yl(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ka(e,t,n,r.component.subTree);return}const l=r.shapeFlag&4?$d(r.component):r.el,a=o?null:l,{i:f,r:d}=e,p=t&&t.r,m=f.refs===bt?f.refs={}:f.refs,g=f.setupState,y=yt(g),w=g===bt?f1:_=>R0(m,_)?!1:Tt(y,_),E=(_,k)=>!(k&&R0(m,k));if(p!=null&&p!==d){if(P0(t),Vt(p))m[p]=null,w(p)&&(g[p]=null);else if(Rt(p)){const _=t;E(p,_.k)&&(p.value=null),_.k&&(m[_.k]=null)}}if(it(d))Pc(d,f,12,[a,m]);else{const _=Vt(d),k=Rt(d);if(_||k){const A=()=>{if(e.f){const N=_?w(d)?g[d]:m[d]:E()||!e.k?d.value:m[e.k];if(o)Ye(N)&&ng(N,l);else if(Ye(N))N.includes(l)||N.push(l);else if(_)m[d]=[l],w(d)&&(g[d]=m[d]);else{const I=[l];E(d,e.k)&&(d.value=I),e.k&&(m[e.k]=I)}}else _?(m[d]=a,w(d)&&(g[d]=a)):k&&(E(d,e.k)&&(d.value=a),e.k&&(m[e.k]=a))};if(a){const N=()=>{A(),$f.delete(e)};N.id=-1,$f.set(e,N),Hn(N,n)}else P0(e),A()}}}function P0(e){const t=$f.get(e);t&&(t.flags|=8,$f.delete(e))}yd().requestIdleCallback;yd().cancelIdleCallback;const yl=e=>!!e.type.__asyncLoader,Td=e=>e.type.__isKeepAlive;function JM(e,t){tS(e,"a",t)}function ZM(e,t){tS(e,"da",t)}function tS(e,t,n=Nn){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Cd(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Td(o.parent.vnode)&&QM(r,t,n,o),o=o.parent}}function QM(e,t,n,r){const o=Cd(t,e,r,!0);Yl(()=>{ng(r[t],o)},n)}function Cd(e,t,n=Nn,r=!1){if(n){const o=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...a)=>{Ki();const f=Fc(n),d=Jr(t,n,e,a);return f(),Yi(),d});return r?o.unshift(l):o.push(l),l}}const to=e=>(t,n=Nn)=>{(!uc||e==="sp")&&Cd(e,(...r)=>t(...r),n)},e$=to("bm"),ki=to("m"),t$=to("bu"),n$=to("u"),Dc=to("bum"),Yl=to("um"),r$=to("sp"),i$=to("rtg"),o$=to("rtc");function s$(e,t=Nn){Cd("ec",e,t)}const hg="components",l$="directives";function ks(e,t){return pg(hg,e,!0,t)||e}const nS=Symbol.for("v-ndc");function Nf(e){return Vt(e)?pg(hg,e,!1)||e:e||nS}function Xn(e){return pg(l$,e)}function pg(e,t,n=!0,r=!1){const o=Tn||Nn;if(o){const l=o.type;if(e===hg){const f=X$(l,!1);if(f&&(f===t||f===xr(t)||f===gd(xr(t))))return l}const a=I0(o[e]||l[e],t)||I0(o.appContext[e],t);return!a&&r?l:a}}function I0(e,t){return e&&(e[t]||e[xr(t)]||e[gd(xr(t))])}function vn(e,t,n,r){let o;const l=n,a=Ye(e);if(a||Vt(e)){const f=a&&ws(e);let d=!1,p=!1;f&&(d=!br(e),p=Xi(e),e=wd(e)),o=new Array(e.length);for(let m=0,g=e.length;m<g;m++)o[m]=t(d?p?$l(Xr(e[m])):Xr(e[m]):e[m],m,void 0,l)}else if(typeof e=="number"){o=new Array(e);for(let f=0;f<e;f++)o[f]=t(f+1,f,void 0,l)}else if(xt(e))if(e[Symbol.iterator])o=Array.from(e,(f,d)=>t(f,d,void 0,l));else{const f=Object.keys(e);o=new Array(f.length);for(let d=0,p=f.length;d<p;d++){const m=f[d];o[d]=t(e[m],m,d,l)}}else o=[];return o}function a$(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Ye(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const l=r.fn(...o);return l&&(l.key=r.key),l}:r.fn)}return e}function Wt(e,t,n={},r,o){if(Tn.ce||Tn.parent&&yl(Tn.parent)&&Tn.parent.ce){const p=Object.keys(n).length>0;return t!=="default"&&(n.name=t),Z(),We(nt,null,[Ce("slot",n,r&&r())],p?-2:64)}let l=e[t];l&&l._c&&(l._d=!1),Z();const a=l&&rS(l(n)),f=n.key||a&&a.key,d=We(nt,{key:(f&&!Yr(f)?f:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return d.scopeId&&(d.slotScopeIds=[d.scopeId+"-s"]),l&&l._c&&(l._d=!0),d}function rS(e){return e.some(t=>Ll(t)?!(t.type===gn||t.type===nt&&!rS(t.children)):!0)?e:null}function c$(e,t){const n={};for(const r in e)n[of(r)]=e[r];return n}const Wp=e=>e?MS(e)?$d(e):Wp(e.parent):null,Ya=rn(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=>Wp(e.parent),$root:e=>Wp(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>lS(e),$forceUpdate:e=>e.f||(e.f=()=>{fg(e.update)}),$nextTick:e=>e.n||(e.n=Mt.bind(e.proxy)),$watch:e=>qM.bind(e)}),ep=(e,t)=>e!==bt&&!e.__isScriptSetup&&Tt(e,t),u$={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:l,accessCache:a,type:f,appContext:d}=e;if(t[0]!=="$"){const y=a[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return l[t]}else{if(ep(r,t))return a[t]=1,r[t];if(o!==bt&&Tt(o,t))return a[t]=2,o[t];if(Tt(l,t))return a[t]=3,l[t];if(n!==bt&&Tt(n,t))return a[t]=4,n[t];Up&&(a[t]=0)}}const p=Ya[t];let m,g;if(p)return t==="$attrs"&&Mn(e.attrs,"get",""),p(e);if((m=f.__cssModules)&&(m=m[t]))return m;if(n!==bt&&Tt(n,t))return a[t]=4,n[t];if(g=d.config.globalProperties,Tt(g,t))return g[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:l}=e;return ep(o,t)?(o[t]=n,!0):r!==bt&&Tt(r,t)?(r[t]=n,!0):Tt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,props:l,type:a}},f){let d;return!!(n[f]||e!==bt&&f[0]!=="$"&&Tt(e,f)||ep(t,f)||Tt(l,f)||Tt(r,f)||Tt(Ya,f)||Tt(o.config.globalProperties,f)||(d=a.__cssModules)&&d[f])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Tt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function iS(){return oS().slots}function f$(){return oS().attrs}function oS(e){const t=ei();return t.setupContext||(t.setupContext=NS(t))}function Of(e){return Ye(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function ac(e,t){return!e||!t?e||t:Ye(e)&&Ye(t)?e.concat(t):rn({},Of(e),Of(t))}let Up=!0;function d$(e){const t=lS(e),n=e.proxy,r=e.ctx;Up=!1,t.beforeCreate&&D0(t.beforeCreate,e,"bc");const{data:o,computed:l,methods:a,watch:f,provide:d,inject:p,created:m,beforeMount:g,mounted:y,beforeUpdate:w,updated:E,activated:_,deactivated:k,beforeDestroy:A,beforeUnmount:N,destroyed:I,unmounted:$,render:D,renderTracked:U,renderTriggered:J,errorCaptured:ee,serverPrefetch:X,expose:V,inheritAttrs:q,components:P,directives:L,filters:T}=t;if(p&&h$(p,r,null),a)for(const z in a){const ae=a[z];it(ae)&&(r[z]=ae.bind(n))}if(o){const z=o.call(n,n);xt(z)&&(e.data=yr(z))}if(Up=!0,l)for(const z in l){const ae=l[z],ve=it(ae)?ae.bind(n,n):it(ae.get)?ae.get.bind(n,n):vi,_e=!it(ae)&&it(ae.set)?ae.set.bind(n):vi,je=we({get:ve,set:_e});Object.defineProperty(r,z,{enumerable:!0,configurable:!0,get:()=>je.value,set:Me=>je.value=Me})}if(f)for(const z in f)sS(f[z],r,n,z);if(d){const z=it(d)?d.call(n):d;Reflect.ownKeys(z).forEach(ae=>{Er(ae,z[ae])})}m&&D0(m,e,"c");function R(z,ae){Ye(ae)?ae.forEach(ve=>z(ve.bind(n))):ae&&z(ae.bind(n))}if(R(e$,g),R(ki,y),R(t$,w),R(n$,E),R(JM,_),R(ZM,k),R(s$,ee),R(o$,U),R(i$,J),R(Dc,N),R(Yl,$),R(r$,X),Ye(V))if(V.length){const z=e.exposed||(e.exposed={});V.forEach(ae=>{Object.defineProperty(z,ae,{get:()=>n[ae],set:ve=>n[ae]=ve,enumerable:!0})})}else e.exposed||(e.exposed={});D&&e.render===vi&&(e.render=D),q!=null&&(e.inheritAttrs=q),P&&(e.components=P),L&&(e.directives=L),X&&eS(e)}function h$(e,t,n=vi){Ye(e)&&(e=qp(e));for(const r in e){const o=e[r];let l;xt(o)?"default"in o?l=kn(o.from||r,o.default,!0):l=kn(o.from||r):l=kn(o),Rt(l)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:a=>l.value=a}):t[r]=l}}function D0(e,t,n){Jr(Ye(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function sS(e,t,n,r){let o=r.includes(".")?G1(n,r):()=>n[r];if(Vt(e)){const l=t[e];it(l)&&ct(o,l)}else if(it(e))ct(o,e.bind(n));else if(xt(e))if(Ye(e))e.forEach(l=>sS(l,t,n,r));else{const l=it(e.handler)?e.handler.bind(n):t[e.handler];it(l)&&ct(o,l,e)}}function lS(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:a}}=e.appContext,f=l.get(t);let d;return f?d=f:!o.length&&!n&&!r?d=t:(d={},o.length&&o.forEach(p=>Lf(d,p,a,!0)),Lf(d,t,a)),xt(t)&&l.set(t,d),d}function Lf(e,t,n,r=!1){const{mixins:o,extends:l}=t;l&&Lf(e,l,n,!0),o&&o.forEach(a=>Lf(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const f=p$[a]||n&&n[a];e[a]=f?f(e[a],t[a]):t[a]}return e}const p$={data:F0,props:z0,emits:z0,methods:Ba,computed:Ba,beforeCreate:Bn,created:Bn,beforeMount:Bn,mounted:Bn,beforeUpdate:Bn,updated:Bn,beforeDestroy:Bn,beforeUnmount:Bn,destroyed:Bn,unmounted:Bn,activated:Bn,deactivated:Bn,errorCaptured:Bn,serverPrefetch:Bn,components:Ba,directives:Ba,watch:g$,provide:F0,inject:m$};function F0(e,t){return t?e?function(){return rn(it(e)?e.call(this,this):e,it(t)?t.call(this,this):t)}:t:e}function m$(e,t){return Ba(qp(e),qp(t))}function qp(e){if(Ye(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Bn(e,t){return e?[...new Set([].concat(e,t))]:t}function Ba(e,t){return e?rn(Object.create(null),e,t):t}function z0(e,t){return e?Ye(e)&&Ye(t)?[...new Set([...e,...t])]:rn(Object.create(null),Of(e),Of(t??{})):t}function g$(e,t){if(!e)return t;if(!t)return e;const n=rn(Object.create(null),e);for(const r in t)n[r]=Bn(e[r],t[r]);return n}function aS(){return{app:null,config:{isNativeTag:f1,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 v$=0;function y$(e,t){return function(r,o=null){it(r)||(r=rn({},r)),o!=null&&!xt(o)&&(o=null);const l=aS(),a=new WeakSet,f=[];let d=!1;const p=l.app={_uid:v$++,_component:r,_props:o,_container:null,_context:l,_instance:null,version:Z$,get config(){return l.config},set config(m){},use(m,...g){return a.has(m)||(m&&it(m.install)?(a.add(m),m.install(p,...g)):it(m)&&(a.add(m),m(p,...g))),p},mixin(m){return l.mixins.includes(m)||l.mixins.push(m),p},component(m,g){return g?(l.components[m]=g,p):l.components[m]},directive(m,g){return g?(l.directives[m]=g,p):l.directives[m]},mount(m,g,y){if(!d){const w=p._ceVNode||Ce(r,o);return w.appContext=l,y===!0?y="svg":y===!1&&(y=void 0),e(w,m,y),d=!0,p._container=m,m.__vue_app__=p,$d(w.component)}},onUnmount(m){f.push(m)},unmount(){d&&(Jr(f,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(m,g){return l.provides[m]=g,p},runWithContext(m){const g=xs;xs=p;try{return m()}finally{xs=g}}};return p}}let xs=null;function Ed(e,t,n=bt){const r=ei(),o=xr(t),l=eo(t),a=cS(e,o),f=I1((d,p)=>{let m,g=bt,y;return UM(()=>{const w=e[o];or(m,w)&&(m=w,p())}),{get(){return d(),n.get?n.get(m):m},set(w){const E=n.set?n.set(w):w;if(!or(E,m)&&!(g!==bt&&or(w,g)))return;const _=r.vnode.props;_&&(t in _||o in _||l in _)&&(`onUpdate:${t}`in _||`onUpdate:${o}`in _||`onUpdate:${l}`in _)||(m=w,p()),r.emit(`update:${t}`,E),or(w,E)&&or(w,g)&&!or(E,y)&&p(),g=w,y=E}}});return f[Symbol.iterator]=()=>{let d=0;return{next(){return d<2?{value:d++?a||bt:f,done:!1}:{done:!0}}}},f}const cS=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${xr(t)}Modifiers`]||e[`${eo(t)}Modifiers`];function b$(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||bt;let o=n;const l=t.startsWith("update:"),a=l&&cS(r,t.slice(7));a&&(a.trim&&(o=n.map(m=>Vt(m)?m.trim():m)),a.number&&(o=n.map(vd)));let f,d=r[f=of(t)]||r[f=of(xr(t))];!d&&l&&(d=r[f=of(eo(t))]),d&&Jr(d,e,6,o);const p=r[f+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,Jr(p,e,6,o)}}const w$=new WeakMap;function uS(e,t,n=!1){const r=n?w$:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const l=e.emits;let a={},f=!1;if(!it(e)){const d=p=>{const m=uS(p,t,!0);m&&(f=!0,rn(a,m))};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!l&&!f?(xt(e)&&r.set(e,null),null):(Ye(l)?l.forEach(d=>a[d]=null):rn(a,l),xt(e)&&r.set(e,a),a)}function Ad(e,t){return!e||!hd(t)?!1:(t=t.slice(2).replace(/Once$/,""),Tt(e,t[0].toLowerCase()+t.slice(1))||Tt(e,eo(t))||Tt(e,t))}function B0(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[l],slots:a,attrs:f,emit:d,render:p,renderCache:m,props:g,data:y,setupState:w,ctx:E,inheritAttrs:_}=e,k=Mf(e);let A,N;try{if(n.shapeFlag&4){const $=o||r,D=$;A=Wr(p.call(D,$,m,g,w,y,E)),N=f}else{const $=t;A=Wr($.length>1?$(g,{attrs:f,slots:a,emit:d}):$(g,null)),N=t.props?f:S$(f)}}catch($){Xa.length=0,Ic($,e,1),A=Ce(gn)}let I=A;if(N&&_!==!1){const $=Object.keys(N),{shapeFlag:D}=I;$.length&&D&7&&(l&&$.some(tg)&&(N=_$(N,l)),I=zo(I,N,!1,!0))}return n.dirs&&(I=zo(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition&&lc(I,n.transition),A=I,Mf(k),A}function x$(e,t=!0){let n;for(let r=0;r<e.length;r++){const o=e[r];if(Ll(o)){if(o.type!==gn||o.children==="v-if"){if(n)return;n=o}}else return}return n}const S$=e=>{let t;for(const n in e)(n==="class"||n==="style"||hd(n))&&((t||(t={}))[n]=e[n]);return t},_$=(e,t)=>{const n={};for(const r in e)(!tg(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function k$(e,t,n){const{props:r,children:o,component:l}=e,{props:a,children:f,patchFlag:d}=t,p=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&d>=0){if(d&1024)return!0;if(d&16)return r?H0(r,a,p):!!a;if(d&8){const m=t.dynamicProps;for(let g=0;g<m.length;g++){const y=m[g];if(fS(a,r,y)&&!Ad(p,y))return!0}}}else return(o||f)&&(!f||!f.$stable)?!0:r===a?!1:r?a?H0(r,a,p):!0:!!a;return!1}function H0(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const l=r[o];if(fS(t,e,l)&&!Ad(n,l))return!0}return!1}function fS(e,t,n){const r=e[n],o=t[n];return n==="style"&&xt(r)&&xt(o)?!Kl(r,o):r!==o}function mg({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const dS={},hS=()=>Object.create(dS),pS=e=>Object.getPrototypeOf(e)===dS;function T$(e,t,n,r=!1){const o={},l=hS();e.propsDefaults=Object.create(null),mS(e,t,o,l);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:cg(o):e.type.props?e.props=o:e.props=l,e.attrs=l}function C$(e,t,n,r){const{props:o,attrs:l,vnode:{patchFlag:a}}=e,f=yt(o),[d]=e.propsOptions;let p=!1;if((r||a>0)&&!(a&16)){if(a&8){const m=e.vnode.dynamicProps;for(let g=0;g<m.length;g++){let y=m[g];if(Ad(e.emitsOptions,y))continue;const w=t[y];if(d)if(Tt(l,y))w!==l[y]&&(l[y]=w,p=!0);else{const E=xr(y);o[E]=Vp(d,f,E,w,e,!1)}else w!==l[y]&&(l[y]=w,p=!0)}}}else{mS(e,t,o,l)&&(p=!0);let m;for(const g in f)(!t||!Tt(t,g)&&((m=eo(g))===g||!Tt(t,m)))&&(d?n&&(n[g]!==void 0||n[m]!==void 0)&&(o[g]=Vp(d,f,g,void 0,e,!0)):delete o[g]);if(l!==f)for(const g in l)(!t||!Tt(t,g))&&(delete l[g],p=!0)}p&&ji(e.attrs,"set","")}function mS(e,t,n,r){const[o,l]=e.propsOptions;let a=!1,f;if(t)for(let d in t){if(qa(d))continue;const p=t[d];let m;o&&Tt(o,m=xr(d))?!l||!l.includes(m)?n[m]=p:(f||(f={}))[m]=p:Ad(e.emitsOptions,d)||(!(d in r)||p!==r[d])&&(r[d]=p,a=!0)}if(l){const d=yt(n),p=f||bt;for(let m=0;m<l.length;m++){const g=l[m];n[g]=Vp(o,d,g,p[g],e,!Tt(p,g))}}return a}function Vp(e,t,n,r,o,l){const a=e[n];if(a!=null){const f=Tt(a,"default");if(f&&r===void 0){const d=a.default;if(a.type!==Function&&!a.skipFactory&&it(d)){const{propsDefaults:p}=o;if(n in p)r=p[n];else{const m=Fc(o);r=p[n]=d.call(null,t),m()}}else r=d;o.ce&&o.ce._setProp(n,r)}a[0]&&(l&&!f?r=!1:a[1]&&(r===""||r===eo(n))&&(r=!0))}return r}const E$=new WeakMap;function gS(e,t,n=!1){const r=n?E$:t.propsCache,o=r.get(e);if(o)return o;const l=e.props,a={},f=[];let d=!1;if(!it(e)){const m=g=>{d=!0;const[y,w]=gS(g,t,!0);rn(a,y),w&&f.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}if(!l&&!d)return xt(e)&&r.set(e,ml),ml;if(Ye(l))for(let m=0;m<l.length;m++){const g=xr(l[m]);j0(g)&&(a[g]=bt)}else if(l)for(const m in l){const g=xr(m);if(j0(g)){const y=l[m],w=a[g]=Ye(y)||it(y)?{type:y}:rn({},y),E=w.type;let _=!1,k=!0;if(Ye(E))for(let A=0;A<E.length;++A){const N=E[A],I=it(N)&&N.name;if(I==="Boolean"){_=!0;break}else I==="String"&&(k=!1)}else _=it(E)&&E.name==="Boolean";w[0]=_,w[1]=k,(_||Tt(w,"default"))&&f.push(g)}}const p=[a,f];return xt(e)&&r.set(e,p),p}function j0(e){return e[0]!=="$"&&!qa(e)}const gg=e=>e==="_"||e==="_ctx"||e==="$stable",vg=e=>Ye(e)?e.map(Wr):[Wr(e)],A$=(e,t,n)=>{if(t._n)return t;const r=ze((...o)=>vg(t(...o)),n);return r._c=!1,r},vS=(e,t,n)=>{const r=e._ctx;for(const o in e){if(gg(o))continue;const l=e[o];if(it(l))t[o]=A$(o,l,r);else if(l!=null){const a=vg(l);t[o]=()=>a}}},yS=(e,t)=>{const n=vg(t);e.slots.default=()=>n},bS=(e,t,n)=>{for(const r in t)(n||!gg(r))&&(e[r]=t[r])},M$=(e,t,n)=>{const r=e.slots=hS();if(e.vnode.shapeFlag&32){const o=t._;o?(bS(r,t,n),n&&m1(r,"_",o,!0)):vS(t,r)}else t&&yS(e,t)},$$=(e,t,n)=>{const{vnode:r,slots:o}=e;let l=!0,a=bt;if(r.shapeFlag&32){const f=t._;f?n&&f===1?l=!1:bS(o,t,n):(l=!t.$stable,vS(t,o)),a=t}else t&&(yS(e,t),a={default:1});if(l)for(const f in o)!gg(f)&&a[f]==null&&delete o[f]},Hn=H$;function N$(e){return O$(e)}function O$(e,t){const n=yd();n.__VUE__=!0;const{insert:r,remove:o,patchProp:l,createElement:a,createText:f,createComment:d,setText:p,setElementText:m,parentNode:g,nextSibling:y,setScopeId:w=vi,insertStaticContent:E}=e,_=(F,W,ne,he=null,pe=null,ge=null,Ae=void 0,$e=null,Se=!!W.dynamicChildren)=>{if(F===W)return;F&&!hi(F,W)&&(he=B(F),Me(F,pe,ge,!0),F=null),W.patchFlag===-2&&(Se=!1,W.dynamicChildren=null);const{type:be,ref:te,shapeFlag:ue}=W;switch(be){case Md:k(F,W,ne,he);break;case gn:A(F,W,ne,he);break;case np:F==null&&N(W,ne,he,Ae);break;case nt:P(F,W,ne,he,pe,ge,Ae,$e,Se);break;default:ue&1?D(F,W,ne,he,pe,ge,Ae,$e,Se):ue&6?L(F,W,ne,he,pe,ge,Ae,$e,Se):(ue&64||ue&128)&&be.process(F,W,ne,he,pe,ge,Ae,$e,Se,le)}te!=null&&pe?Ka(te,F&&F.ref,ge,W||F,!W):te==null&&F&&F.ref!=null&&Ka(F.ref,null,ge,F,!0)},k=(F,W,ne,he)=>{if(F==null)r(W.el=f(W.children),ne,he);else{const pe=W.el=F.el;W.children!==F.children&&p(pe,W.children)}},A=(F,W,ne,he)=>{F==null?r(W.el=d(W.children||""),ne,he):W.el=F.el},N=(F,W,ne,he)=>{[F.el,F.anchor]=E(F.children,W,ne,he,F.el,F.anchor)},I=({el:F,anchor:W},ne,he)=>{let pe;for(;F&&F!==W;)pe=y(F),r(F,ne,he),F=pe;r(W,ne,he)},$=({el:F,anchor:W})=>{let ne;for(;F&&F!==W;)ne=y(F),o(F),F=ne;o(W)},D=(F,W,ne,he,pe,ge,Ae,$e,Se)=>{if(W.type==="svg"?Ae="svg":W.type==="math"&&(Ae="mathml"),F==null)U(W,ne,he,pe,ge,Ae,$e,Se);else{const be=F.el&&F.el._isVueCE?F.el:null;try{be&&be._beginPatch(),X(F,W,pe,ge,Ae,$e,Se)}finally{be&&be._endPatch()}}},U=(F,W,ne,he,pe,ge,Ae,$e)=>{let Se,be;const{props:te,shapeFlag:ue,transition:oe,dirs:Ie}=F;if(Se=F.el=a(F.type,ge,te&&te.is,te),ue&8?m(Se,F.children):ue&16&&ee(F.children,Se,null,he,pe,tp(F,ge),Ae,$e),Ie&&os(F,null,he,"created"),J(Se,F,F.scopeId,Ae,he),te){for(const ut in te)ut!=="value"&&!qa(ut)&&l(Se,ut,null,te[ut],ge,he);"value"in te&&l(Se,"value",null,te.value,ge),(be=te.onVnodeBeforeMount)&&ci(be,he,F)}Ie&&os(F,null,he,"beforeMount");const tt=L$(pe,oe);tt&&oe.beforeEnter(Se),r(Se,W,ne),((be=te&&te.onVnodeMounted)||tt||Ie)&&Hn(()=>{be&&ci(be,he,F),tt&&oe.enter(Se),Ie&&os(F,null,he,"mounted")},pe)},J=(F,W,ne,he,pe)=>{if(ne&&w(F,ne),he)for(let ge=0;ge<he.length;ge++)w(F,he[ge]);if(pe){let ge=pe.subTree;if(W===ge||_S(ge.type)&&(ge.ssContent===W||ge.ssFallback===W)){const Ae=pe.vnode;J(F,Ae,Ae.scopeId,Ae.slotScopeIds,pe.parent)}}},ee=(F,W,ne,he,pe,ge,Ae,$e,Se=0)=>{for(let be=Se;be<F.length;be++){const te=F[be]=$e?Hi(F[be]):Wr(F[be]);_(null,te,W,ne,he,pe,ge,Ae,$e)}},X=(F,W,ne,he,pe,ge,Ae)=>{const $e=W.el=F.el;let{patchFlag:Se,dynamicChildren:be,dirs:te}=W;Se|=F.patchFlag&16;const ue=F.props||bt,oe=W.props||bt;let Ie;if(ne&&ss(ne,!1),(Ie=oe.onVnodeBeforeUpdate)&&ci(Ie,ne,W,F),te&&os(W,F,ne,"beforeUpdate"),ne&&ss(ne,!0),(ue.innerHTML&&oe.innerHTML==null||ue.textContent&&oe.textContent==null)&&m($e,""),be?V(F.dynamicChildren,be,$e,ne,he,tp(W,pe),ge):Ae||ae(F,W,$e,null,ne,he,tp(W,pe),ge,!1),Se>0){if(Se&16)q($e,ue,oe,ne,pe);else if(Se&2&&ue.class!==oe.class&&l($e,"class",null,oe.class,pe),Se&4&&l($e,"style",ue.style,oe.style,pe),Se&8){const tt=W.dynamicProps;for(let ut=0;ut<tt.length;ut++){const pt=tt[ut],It=ue[pt],ft=oe[pt];(ft!==It||pt==="value")&&l($e,pt,It,ft,pe,ne)}}Se&1&&F.children!==W.children&&m($e,W.children)}else!Ae&&be==null&&q($e,ue,oe,ne,pe);((Ie=oe.onVnodeUpdated)||te)&&Hn(()=>{Ie&&ci(Ie,ne,W,F),te&&os(W,F,ne,"updated")},he)},V=(F,W,ne,he,pe,ge,Ae)=>{for(let $e=0;$e<W.length;$e++){const Se=F[$e],be=W[$e],te=Se.el&&(Se.type===nt||!hi(Se,be)||Se.shapeFlag&198)?g(Se.el):ne;_(Se,be,te,null,he,pe,ge,Ae,!0)}},q=(F,W,ne,he,pe)=>{if(W!==ne){if(W!==bt)for(const ge in W)!qa(ge)&&!(ge in ne)&&l(F,ge,W[ge],null,pe,he);for(const ge in ne){if(qa(ge))continue;const Ae=ne[ge],$e=W[ge];Ae!==$e&&ge!=="value"&&l(F,ge,$e,Ae,pe,he)}"value"in ne&&l(F,"value",W.value,ne.value,pe)}},P=(F,W,ne,he,pe,ge,Ae,$e,Se)=>{const be=W.el=F?F.el:f(""),te=W.anchor=F?F.anchor:f("");let{patchFlag:ue,dynamicChildren:oe,slotScopeIds:Ie}=W;Ie&&($e=$e?$e.concat(Ie):Ie),F==null?(r(be,ne,he),r(te,ne,he),ee(W.children||[],ne,te,pe,ge,Ae,$e,Se)):ue>0&&ue&64&&oe&&F.dynamicChildren&&F.dynamicChildren.length===oe.length?(V(F.dynamicChildren,oe,ne,pe,ge,Ae,$e),(W.key!=null||pe&&W===pe.subTree)&&wS(F,W,!0)):ae(F,W,ne,te,pe,ge,Ae,$e,Se)},L=(F,W,ne,he,pe,ge,Ae,$e,Se)=>{W.slotScopeIds=$e,F==null?W.shapeFlag&512?pe.ctx.activate(W,ne,he,Ae,Se):T(W,ne,he,pe,ge,Ae,Se):S(F,W,Se)},T=(F,W,ne,he,pe,ge,Ae)=>{const $e=F.component=V$(F,he,pe);if(Td(F)&&($e.ctx.renderer=le),G$($e,!1,Ae),$e.asyncDep){if(pe&&pe.registerDep($e,R,Ae),!F.el){const Se=$e.subTree=Ce(gn);A(null,Se,W,ne),F.placeholder=Se.el}}else R($e,F,W,ne,pe,ge,Ae)},S=(F,W,ne)=>{const he=W.component=F.component;if(k$(F,W,ne))if(he.asyncDep&&!he.asyncResolved){z(he,W,ne);return}else he.next=W,he.update();else W.el=F.el,he.vnode=W},R=(F,W,ne,he,pe,ge,Ae)=>{const $e=()=>{if(F.isMounted){let{next:ue,bu:oe,u:Ie,parent:tt,vnode:ut}=F;{const Zt=xS(F);if(Zt){ue&&(ue.el=ut.el,z(F,ue,Ae)),Zt.asyncDep.then(()=>{Hn(()=>{F.isUnmounted||be()},pe)});return}}let pt=ue,It;ss(F,!1),ue?(ue.el=ut.el,z(F,ue,Ae)):ue=ut,oe&&sf(oe),(It=ue.props&&ue.props.onVnodeBeforeUpdate)&&ci(It,tt,ue,ut),ss(F,!0);const ft=B0(F),on=F.subTree;F.subTree=ft,_(on,ft,g(on.el),B(on),F,pe,ge),ue.el=ft.el,pt===null&&mg(F,ft.el),Ie&&Hn(Ie,pe),(It=ue.props&&ue.props.onVnodeUpdated)&&Hn(()=>ci(It,tt,ue,ut),pe)}else{let ue;const{el:oe,props:Ie}=W,{bm:tt,m:ut,parent:pt,root:It,type:ft}=F,on=yl(W);ss(F,!1),tt&&sf(tt),!on&&(ue=Ie&&Ie.onVnodeBeforeMount)&&ci(ue,pt,W),ss(F,!0);{It.ce&&It.ce._hasShadowRoot()&&It.ce._injectChildStyle(ft);const Zt=F.subTree=B0(F);_(null,Zt,ne,he,F,pe,ge),W.el=Zt.el}if(ut&&Hn(ut,pe),!on&&(ue=Ie&&Ie.onVnodeMounted)){const Zt=W;Hn(()=>ci(ue,pt,Zt),pe)}(W.shapeFlag&256||pt&&yl(pt.vnode)&&pt.vnode.shapeFlag&256)&&F.a&&Hn(F.a,pe),F.isMounted=!0,W=ne=he=null}};F.scope.on();const Se=F.effect=new w1($e);F.scope.off();const be=F.update=Se.run.bind(Se),te=F.job=Se.runIfDirty.bind(Se);te.i=F,te.id=F.uid,Se.scheduler=()=>fg(te),ss(F,!0),be()},z=(F,W,ne)=>{W.component=F;const he=F.vnode.props;F.vnode=W,F.next=null,C$(F,W.props,he,ne),$$(F,W.children,ne),Ki(),O0(F),Yi()},ae=(F,W,ne,he,pe,ge,Ae,$e,Se=!1)=>{const be=F&&F.children,te=F?F.shapeFlag:0,ue=W.children,{patchFlag:oe,shapeFlag:Ie}=W;if(oe>0){if(oe&128){_e(be,ue,ne,he,pe,ge,Ae,$e,Se);return}else if(oe&256){ve(be,ue,ne,he,pe,ge,Ae,$e,Se);return}}Ie&8?(te&16&&Re(be,pe,ge),ue!==be&&m(ne,ue)):te&16?Ie&16?_e(be,ue,ne,he,pe,ge,Ae,$e,Se):Re(be,pe,ge,!0):(te&8&&m(ne,""),Ie&16&&ee(ue,ne,he,pe,ge,Ae,$e,Se))},ve=(F,W,ne,he,pe,ge,Ae,$e,Se)=>{F=F||ml,W=W||ml;const be=F.length,te=W.length,ue=Math.min(be,te);let oe;for(oe=0;oe<ue;oe++){const Ie=W[oe]=Se?Hi(W[oe]):Wr(W[oe]);_(F[oe],Ie,ne,null,pe,ge,Ae,$e,Se)}be>te?Re(F,pe,ge,!0,!1,ue):ee(W,ne,he,pe,ge,Ae,$e,Se,ue)},_e=(F,W,ne,he,pe,ge,Ae,$e,Se)=>{let be=0;const te=W.length;let ue=F.length-1,oe=te-1;for(;be<=ue&&be<=oe;){const Ie=F[be],tt=W[be]=Se?Hi(W[be]):Wr(W[be]);if(hi(Ie,tt))_(Ie,tt,ne,null,pe,ge,Ae,$e,Se);else break;be++}for(;be<=ue&&be<=oe;){const Ie=F[ue],tt=W[oe]=Se?Hi(W[oe]):Wr(W[oe]);if(hi(Ie,tt))_(Ie,tt,ne,null,pe,ge,Ae,$e,Se);else break;ue--,oe--}if(be>ue){if(be<=oe){const Ie=oe+1,tt=Ie<te?W[Ie].el:he;for(;be<=oe;)_(null,W[be]=Se?Hi(W[be]):Wr(W[be]),ne,tt,pe,ge,Ae,$e,Se),be++}}else if(be>oe)for(;be<=ue;)Me(F[be],pe,ge,!0),be++;else{const Ie=be,tt=be,ut=new Map;for(be=tt;be<=oe;be++){const Gt=W[be]=Se?Hi(W[be]):Wr(W[be]);Gt.key!=null&&ut.set(Gt.key,be)}let pt,It=0;const ft=oe-tt+1;let on=!1,Zt=0;const Zn=new Array(ft);for(be=0;be<ft;be++)Zn[be]=0;for(be=Ie;be<=ue;be++){const Gt=F[be];if(It>=ft){Me(Gt,pe,ge,!0);continue}let Qn;if(Gt.key!=null)Qn=ut.get(Gt.key);else for(pt=tt;pt<=oe;pt++)if(Zn[pt-tt]===0&&hi(Gt,W[pt])){Qn=pt;break}Qn===void 0?Me(Gt,pe,ge,!0):(Zn[Qn-tt]=be+1,Qn>=Zt?Zt=Qn:on=!0,_(Gt,W[Qn],ne,null,pe,ge,Ae,$e,Se),It++)}const ri=on?R$(Zn):ml;for(pt=ri.length-1,be=ft-1;be>=0;be--){const Gt=tt+be,Qn=W[Gt],at=W[Gt+1],Go=Gt+1<te?at.el||SS(at):he;Zn[be]===0?_(null,Qn,ne,Go,pe,ge,Ae,$e,Se):on&&(pt<0||be!==ri[pt]?je(Qn,ne,Go,2):pt--)}}},je=(F,W,ne,he,pe=null)=>{const{el:ge,type:Ae,transition:$e,children:Se,shapeFlag:be}=F;if(be&6){je(F.component.subTree,W,ne,he);return}if(be&128){F.suspense.move(W,ne,he);return}if(be&64){Ae.move(F,W,ne,le);return}if(Ae===nt){r(ge,W,ne);for(let ue=0;ue<Se.length;ue++)je(Se[ue],W,ne,he);r(F.anchor,W,ne);return}if(Ae===np){I(F,W,ne);return}if(he!==2&&be&1&&$e)if(he===0)$e.beforeEnter(ge),r(ge,W,ne),Hn(()=>$e.enter(ge),pe);else{const{leave:ue,delayLeave:oe,afterLeave:Ie}=$e,tt=()=>{F.ctx.isUnmounted?o(ge):r(ge,W,ne)},ut=()=>{ge._isLeaving&&ge[di](!0),ue(ge,()=>{tt(),Ie&&Ie()})};oe?oe(ge,tt,ut):ut()}else r(ge,W,ne)},Me=(F,W,ne,he=!1,pe=!1)=>{const{type:ge,props:Ae,ref:$e,children:Se,dynamicChildren:be,shapeFlag:te,patchFlag:ue,dirs:oe,cacheIndex:Ie}=F;if(ue===-2&&(pe=!1),$e!=null&&(Ki(),Ka($e,null,ne,F,!0),Yi()),Ie!=null&&(W.renderCache[Ie]=void 0),te&256){W.ctx.deactivate(F);return}const tt=te&1&&oe,ut=!yl(F);let pt;if(ut&&(pt=Ae&&Ae.onVnodeBeforeUnmount)&&ci(pt,W,F),te&6)He(F.component,ne,he);else{if(te&128){F.suspense.unmount(ne,he);return}tt&&os(F,null,W,"beforeUnmount"),te&64?F.type.remove(F,W,ne,le,he):be&&!be.hasOnce&&(ge!==nt||ue>0&&ue&64)?Re(be,W,ne,!1,!0):(ge===nt&&ue&384||!pe&&te&16)&&Re(Se,W,ne),he&&Ke(F)}(ut&&(pt=Ae&&Ae.onVnodeUnmounted)||tt)&&Hn(()=>{pt&&ci(pt,W,F),tt&&os(F,null,W,"unmounted")},ne)},Ke=F=>{const{type:W,el:ne,anchor:he,transition:pe}=F;if(W===nt){qe(ne,he);return}if(W===np){$(F);return}const ge=()=>{o(ne),pe&&!pe.persisted&&pe.afterLeave&&pe.afterLeave()};if(F.shapeFlag&1&&pe&&!pe.persisted){const{leave:Ae,delayLeave:$e}=pe,Se=()=>Ae(ne,ge);$e?$e(F.el,ge,Se):Se()}else ge()},qe=(F,W)=>{let ne;for(;F!==W;)ne=y(F),o(F),F=ne;o(W)},He=(F,W,ne)=>{const{bum:he,scope:pe,job:ge,subTree:Ae,um:$e,m:Se,a:be}=F;W0(Se),W0(be),he&&sf(he),pe.stop(),ge&&(ge.flags|=8,Me(Ae,F,W,ne)),$e&&Hn($e,W),Hn(()=>{F.isUnmounted=!0},W)},Re=(F,W,ne,he=!1,pe=!1,ge=0)=>{for(let Ae=ge;Ae<F.length;Ae++)Me(F[Ae],W,ne,he,pe)},B=F=>{if(F.shapeFlag&6)return B(F.component.subTree);if(F.shapeFlag&128)return F.suspense.next();const W=y(F.anchor||F.el),ne=W&&W[VM];return ne?y(ne):W};let Q=!1;const ie=(F,W,ne)=>{let he;F==null?W._vnode&&(Me(W._vnode,null,null,!0),he=W._vnode.component):_(W._vnode||null,F,W,null,null,null,ne),W._vnode=F,Q||(Q=!0,O0(he),B1(),Q=!1)},le={p:_,um:Me,m:je,r:Ke,mt:T,mc:ee,pc:ae,pbc:V,n:B,o:e};return{render:ie,hydrate:void 0,createApp:y$(ie)}}function tp({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ss({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function L$(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function wS(e,t,n=!1){const r=e.children,o=t.children;if(Ye(r)&&Ye(o))for(let l=0;l<r.length;l++){const a=r[l];let f=o[l];f.shapeFlag&1&&!f.dynamicChildren&&((f.patchFlag<=0||f.patchFlag===32)&&(f=o[l]=Hi(o[l]),f.el=a.el),!n&&f.patchFlag!==-2&&wS(a,f)),f.type===Md&&(f.patchFlag===-1&&(f=o[l]=Hi(f)),f.el=a.el),f.type===gn&&!f.el&&(f.el=a.el)}}function R$(e){const t=e.slice(),n=[0];let r,o,l,a,f;const d=e.length;for(r=0;r<d;r++){const p=e[r];if(p!==0){if(o=n[n.length-1],e[o]<p){t[r]=o,n.push(r);continue}for(l=0,a=n.length-1;l<a;)f=l+a>>1,e[n[f]]<p?l=f+1:a=f;p<e[n[l]]&&(l>0&&(t[r]=n[l-1]),n[l]=r)}}for(l=n.length,a=n[l-1];l-- >0;)n[l]=a,a=t[a];return n}function xS(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:xS(t)}function W0(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function SS(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?SS(t.subTree):null}const _S=e=>e.__isSuspense;let Gp=0;const P$={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,l,a,f,d,p){if(e==null)D$(t,n,r,o,l,a,f,d,p);else{if(l&&l.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}F$(e,t,n,r,o,a,f,d,p)}},hydrate:z$,normalize:B$},I$=P$;function cc(e,t){const n=e.props&&e.props[t];it(n)&&n()}function D$(e,t,n,r,o,l,a,f,d){const{p,o:{createElement:m}}=d,g=m("div"),y=e.suspense=kS(e,o,r,t,g,n,l,a,f,d);p(null,y.pendingBranch=e.ssContent,g,null,r,y,l,a),y.deps>0?(cc(e,"onPending"),cc(e,"onFallback"),p(null,e.ssFallback,t,n,r,null,l,a),bl(y,e.ssFallback)):y.resolve(!1,!0)}function F$(e,t,n,r,o,l,a,f,{p:d,um:p,o:{createElement:m}}){const g=t.suspense=e.suspense;g.vnode=t,t.el=e.el;const y=t.ssContent,w=t.ssFallback,{activeBranch:E,pendingBranch:_,isInFallback:k,isHydrating:A}=g;if(_)g.pendingBranch=y,hi(_,y)?(d(_,y,g.hiddenContainer,null,o,g,l,a,f),g.deps<=0?g.resolve():k&&(A||(d(E,w,n,r,o,null,l,a,f),bl(g,w)))):(g.pendingId=Gp++,A?(g.isHydrating=!1,g.activeBranch=_):p(_,o,g),g.deps=0,g.effects.length=0,g.hiddenContainer=m("div"),k?(d(null,y,g.hiddenContainer,null,o,g,l,a,f),g.deps<=0?g.resolve():(d(E,w,n,r,o,null,l,a,f),bl(g,w))):E&&hi(E,y)?(d(E,y,n,r,o,g,l,a,f),g.resolve(!0)):(d(null,y,g.hiddenContainer,null,o,g,l,a,f),g.deps<=0&&g.resolve()));else if(E&&hi(E,y))d(E,y,n,r,o,g,l,a,f),bl(g,y);else if(cc(t,"onPending"),g.pendingBranch=y,y.shapeFlag&512?g.pendingId=y.component.suspenseId:g.pendingId=Gp++,d(null,y,g.hiddenContainer,null,o,g,l,a,f),g.deps<=0)g.resolve();else{const{timeout:N,pendingId:I}=g;N>0?setTimeout(()=>{g.pendingId===I&&g.fallback(w)},N):N===0&&g.fallback(w)}}function kS(e,t,n,r,o,l,a,f,d,p,m=!1){const{p:g,m:y,um:w,n:E,o:{parentNode:_,remove:k}}=p;let A;const N=j$(e);N&&t&&t.pendingBranch&&(A=t.pendingId,t.deps++);const I=e.props?g1(e.props.timeout):void 0,$=l,D={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:o,deps:0,pendingId:Gp++,timeout:typeof I=="number"?I:-1,activeBranch:null,pendingBranch:null,isInFallback:!m,isHydrating:m,isUnmounted:!1,effects:[],resolve(U=!1,J=!1){const{vnode:ee,activeBranch:X,pendingBranch:V,pendingId:q,effects:P,parentComponent:L,container:T,isInFallback:S}=D;let R=!1;D.isHydrating?D.isHydrating=!1:U||(R=X&&V.transition&&V.transition.mode==="out-in",R&&(X.transition.afterLeave=()=>{q===D.pendingId&&(y(V,T,l===$?E(X):l,0),Hp(P),S&&ee.ssFallback&&(ee.ssFallback.el=null))}),X&&(_(X.el)===T&&(l=E(X)),w(X,L,D,!0),!R&&S&&ee.ssFallback&&Hn(()=>ee.ssFallback.el=null,D)),R||y(V,T,l,0)),bl(D,V),D.pendingBranch=null,D.isInFallback=!1;let z=D.parent,ae=!1;for(;z;){if(z.pendingBranch){z.effects.push(...P),ae=!0;break}z=z.parent}!ae&&!R&&Hp(P),D.effects=[],N&&t&&t.pendingBranch&&A===t.pendingId&&(t.deps--,t.deps===0&&!J&&t.resolve()),cc(ee,"onResolve")},fallback(U){if(!D.pendingBranch)return;const{vnode:J,activeBranch:ee,parentComponent:X,container:V,namespace:q}=D;cc(J,"onFallback");const P=E(ee),L=()=>{D.isInFallback&&(g(null,U,V,P,X,null,q,f,d),bl(D,U))},T=U.transition&&U.transition.mode==="out-in";T&&(ee.transition.afterLeave=L),D.isInFallback=!0,w(ee,X,null,!0),T||L()},move(U,J,ee){D.activeBranch&&y(D.activeBranch,U,J,ee),D.container=U},next(){return D.activeBranch&&E(D.activeBranch)},registerDep(U,J,ee){const X=!!D.pendingBranch;X&&D.deps++;const V=U.vnode.el;U.asyncDep.catch(q=>{Ic(q,U,0)}).then(q=>{if(U.isUnmounted||D.isUnmounted||D.pendingId!==U.suspenseId)return;U.asyncResolved=!0;const{vnode:P}=U;Yp(U,q),V&&(P.el=V);const L=!V&&U.subTree.el;J(U,P,_(V||U.subTree.el),V?null:E(U.subTree),D,a,ee),L&&(P.placeholder=null,k(L)),mg(U,P.el),X&&--D.deps===0&&D.resolve()})},unmount(U,J){D.isUnmounted=!0,D.activeBranch&&w(D.activeBranch,n,U,J),D.pendingBranch&&w(D.pendingBranch,n,U,J)}};return D}function z$(e,t,n,r,o,l,a,f,d){const p=t.suspense=kS(t,r,n,e.parentNode,document.createElement("div"),null,o,l,a,f,!0),m=d(e,p.pendingBranch=t.ssContent,n,p,l,a);return p.deps===0&&p.resolve(!1,!0),m}function B$(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=U0(r?n.default:n),e.ssFallback=r?U0(n.fallback):Ce(gn)}function U0(e){let t;if(it(e)){const n=Nl&&e._c;n&&(e._d=!1,Z()),e=e(),n&&(e._d=!0,t=lr,TS())}return Ye(e)&&(e=x$(e)),e=Wr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function H$(e,t){t&&t.pendingBranch?Ye(e)?t.effects.push(...e):t.effects.push(e):Hp(e)}function bl(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,mg(r,o))}function j$(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const nt=Symbol.for("v-fgt"),Md=Symbol.for("v-txt"),gn=Symbol.for("v-cmt"),np=Symbol.for("v-stc"),Xa=[];let lr=null;function Z(e=!1){Xa.push(lr=e?null:[])}function TS(){Xa.pop(),lr=Xa[Xa.length-1]||null}let Nl=1;function Ol(e,t=!1){Nl+=e,e<0&&lr&&t&&(lr.hasOnce=!0)}function CS(e){return e.dynamicChildren=Nl>0?lr||ml:null,TS(),Nl>0&&lr&&lr.push(e),e}function fe(e,t,n,r,o,l){return CS(Y(e,t,n,r,o,l,!0))}function We(e,t,n,r,o){return CS(Ce(e,t,n,r,o,!0))}function Ll(e){return e?e.__v_isVNode===!0:!1}function hi(e,t){return e.type===t.type&&e.key===t.key}const ES=({key:e})=>e??null,lf=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Vt(e)||Rt(e)||it(e)?{i:Tn,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,r=0,o=null,l=e===nt?0:1,a=!1,f=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ES(t),ref:t&&lf(t),scopeId:_d,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Tn};return f?(yg(d,n),l&128&&e.normalize(d)):n&&(d.shapeFlag|=Vt(n)?8:16),Nl>0&&!a&&lr&&(d.patchFlag>0||l&6)&&d.patchFlag!==32&&lr.push(d),d}const Ce=W$;function W$(e,t=null,n=null,r=0,o=null,l=!1){if((!e||e===nS)&&(e=gn),Ll(e)){const f=zo(e,t,!0);return n&&yg(f,n),Nl>0&&!l&&lr&&(f.shapeFlag&6?lr[lr.indexOf(e)]=f:lr.push(f)),f.patchFlag=-2,f}if(J$(e)&&(e=e.__vccOpts),t){t=AS(t);let{class:f,style:d}=t;f&&!Vt(f)&&(t.class=rt(f)),xt(d)&&(xd(d)&&!Ye(d)&&(d=rn({},d)),t.style=Ut(d))}const a=Vt(e)?1:_S(e)?128:K1(e)?64:xt(e)?4:it(e)?2:0;return Y(e,t,n,r,o,a,l,!0)}function AS(e){return e?xd(e)||pS(e)?rn({},e):e:null}function zo(e,t,n=!1,r=!1){const{props:o,ref:l,patchFlag:a,children:f,transition:d}=e,p=t?yi(o||{},t):o,m={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&ES(p),ref:t&&t.ref?n&&l?Ye(l)?l.concat(lf(t)):[l,lf(t)]:lf(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==nt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:d,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zo(e.ssContent),ssFallback:e.ssFallback&&zo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return d&&r&&lc(m,d.clone(m)),m}function Qe(e=" ",t=0){return Ce(Md,null,e,t)}function Pe(e="",t=!1){return t?(Z(),We(gn,null,e)):Ce(gn,null,e)}function Wr(e){return e==null||typeof e=="boolean"?Ce(gn):Ye(e)?Ce(nt,null,e.slice()):Ll(e)?Hi(e):Ce(Md,null,String(e))}function Hi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:zo(e)}function yg(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ye(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),yg(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!pS(t)?t._ctx=Tn:o===3&&Tn&&(Tn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else it(t)?(t={default:t,_ctx:Tn},n=32):(t=String(t),r&64?(n=16,t=[Qe(t)]):n=8);e.children=t,e.shapeFlag|=n}function yi(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=rt([t.class,r.class]));else if(o==="style")t.style=Ut([t.style,r.style]);else if(hd(o)){const l=t[o],a=r[o];a&&l!==a&&!(Ye(l)&&l.includes(a))&&(t[o]=l?[].concat(l,a):a)}else o!==""&&(t[o]=r[o])}return t}function ci(e,t,n,r=null){Jr(e,t,7,[n,r])}const U$=aS();let q$=0;function V$(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||U$,l={uid:q$++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new aM(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:gS(r,o),emitsOptions:uS(r,o),emit:null,emitted:null,propsDefaults:bt,inheritAttrs:r.inheritAttrs,ctx:bt,data:bt,props:bt,attrs:bt,slots:bt,refs:bt,setupState:bt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return l.ctx={_:l},l.root=t?t.root:l,l.emit=b$.bind(null,l),e.ce&&e.ce(l),l}let Nn=null;const ei=()=>Nn||Tn;let Rf,Kp;{const e=yd(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),l=>{o.length>1?o.forEach(a=>a(l)):o[0](l)}};Rf=t("__VUE_INSTANCE_SETTERS__",n=>Nn=n),Kp=t("__VUE_SSR_SETTERS__",n=>uc=n)}const Fc=e=>{const t=Nn;return Rf(e),e.scope.on(),()=>{e.scope.off(),Rf(t)}},q0=()=>{Nn&&Nn.scope.off(),Rf(null)};function MS(e){return e.vnode.shapeFlag&4}let uc=!1;function G$(e,t=!1,n=!1){t&&Kp(t);const{props:r,children:o}=e.vnode,l=MS(e);T$(e,r,l,t),M$(e,o,n||t);const a=l?K$(e,t):void 0;return t&&Kp(!1),a}function K$(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,u$);const{setup:r}=n;if(r){Ki();const o=e.setupContext=r.length>1?NS(e):null,l=Fc(e),a=Pc(r,e,0,[e.props,o]),f=d1(a);if(Yi(),l(),(f||e.sp)&&!yl(e)&&eS(e),f){if(a.then(q0,q0),t)return a.then(d=>{Yp(e,d)}).catch(d=>{Ic(d,e,0)});e.asyncDep=a}else Yp(e,a)}else $S(e)}function Yp(e,t,n){it(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:xt(t)&&(e.setupState=P1(t)),$S(e)}function $S(e,t,n){const r=e.type;e.render||(e.render=r.render||vi);{const o=Fc(e);Ki();try{d$(e)}finally{Yi(),o()}}}const Y$={get(e,t){return Mn(e,"get",""),e[t]}};function NS(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Y$),slots:e.slots,emit:e.emit,expose:t}}function $d(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(P1(Sd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ya)return Ya[n](e)},has(t,n){return n in t||n in Ya}})):e.proxy}function X$(e,t=!0){return it(e)?e.displayName||e.name:e.name||t&&e.__name}function J$(e){return it(e)&&"__vccOpts"in e}const we=(e,t)=>DM(e,t,uc);function zc(e,t,n){try{Ol(-1);const r=arguments.length;return r===2?xt(t)&&!Ye(t)?Ll(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ll(n)&&(n=[n]),Ce(e,t,n))}finally{Ol(1)}}const Z$="3.5.29";/**
|
|
14
|
-
* @vue/runtime-dom v3.5.29
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/let Xp;const V0=typeof window<"u"&&window.trustedTypes;if(V0)try{Xp=V0.createPolicy("vue",{createHTML:e=>e})}catch{}const OS=Xp?e=>Xp.createHTML(e):e=>e,Q$="http://www.w3.org/2000/svg",eN="http://www.w3.org/1998/Math/MathML",zi=typeof document<"u"?document:null,G0=zi&&zi.createElement("template"),tN={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?zi.createElementNS(Q$,e):t==="mathml"?zi.createElementNS(eN,e):n?zi.createElement(e,{is:n}):zi.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>zi.createTextNode(e),createComment:e=>zi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,l){const a=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===l||!(o=o.nextSibling)););else{G0.innerHTML=OS(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const f=G0.content;if(r==="svg"||r==="mathml"){const d=f.firstChild;for(;d.firstChild;)f.appendChild(d.firstChild);f.removeChild(d)}t.insertBefore(f,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},vo="transition",Na="animation",fc=Symbol("_vtc"),LS={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},nN=rn({},Y1,LS),rN=e=>(e.displayName="Transition",e.props=nN,e),iN=rN((e,{slots:t})=>zc(YM,oN(e),t)),ls=(e,t=[])=>{Ye(e)?e.forEach(n=>n(...t)):e&&e(...t)},K0=e=>e?Ye(e)?e.some(t=>t.length>1):e.length>1:!1;function oN(e){const t={};for(const P in e)P in LS||(t[P]=e[P]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:l=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:f=`${n}-enter-to`,appearFromClass:d=l,appearActiveClass:p=a,appearToClass:m=f,leaveFromClass:g=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,E=sN(o),_=E&&E[0],k=E&&E[1],{onBeforeEnter:A,onEnter:N,onEnterCancelled:I,onLeave:$,onLeaveCancelled:D,onBeforeAppear:U=A,onAppear:J=N,onAppearCancelled:ee=I}=t,X=(P,L,T,S)=>{P._enterCancelled=S,as(P,L?m:f),as(P,L?p:a),T&&T()},V=(P,L)=>{P._isLeaving=!1,as(P,g),as(P,w),as(P,y),L&&L()},q=P=>(L,T)=>{const S=P?J:N,R=()=>X(L,P,T);ls(S,[L,R]),Y0(()=>{as(L,P?d:l),Pi(L,P?m:f),K0(S)||X0(L,r,_,R)})};return rn(t,{onBeforeEnter(P){ls(A,[P]),Pi(P,l),Pi(P,a)},onBeforeAppear(P){ls(U,[P]),Pi(P,d),Pi(P,p)},onEnter:q(!1),onAppear:q(!0),onLeave(P,L){P._isLeaving=!0;const T=()=>V(P,L);Pi(P,g),P._enterCancelled?(Pi(P,y),Q0(P)):(Q0(P),Pi(P,y)),Y0(()=>{P._isLeaving&&(as(P,g),Pi(P,w),K0($)||X0(P,r,k,T))}),ls($,[P,T])},onEnterCancelled(P){X(P,!1,void 0,!0),ls(I,[P])},onAppearCancelled(P){X(P,!0,void 0,!0),ls(ee,[P])},onLeaveCancelled(P){V(P),ls(D,[P])}})}function sN(e){if(e==null)return null;if(xt(e))return[rp(e.enter),rp(e.leave)];{const t=rp(e);return[t,t]}}function rp(e){return g1(e)}function Pi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[fc]||(e[fc]=new Set)).add(t)}function as(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[fc];n&&(n.delete(t),n.size||(e[fc]=void 0))}function Y0(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let lN=0;function X0(e,t,n,r){const o=e._endId=++lN,l=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(l,n);const{type:a,timeout:f,propCount:d}=aN(e,t);if(!a)return r();const p=a+"end";let m=0;const g=()=>{e.removeEventListener(p,y),l()},y=w=>{w.target===e&&++m>=d&&g()};setTimeout(()=>{m<d&&g()},f+1),e.addEventListener(p,y)}function aN(e,t){const n=window.getComputedStyle(e),r=E=>(n[E]||"").split(", "),o=r(`${vo}Delay`),l=r(`${vo}Duration`),a=J0(o,l),f=r(`${Na}Delay`),d=r(`${Na}Duration`),p=J0(f,d);let m=null,g=0,y=0;t===vo?a>0&&(m=vo,g=a,y=l.length):t===Na?p>0&&(m=Na,g=p,y=d.length):(g=Math.max(a,p),m=g>0?a>p?vo:Na:null,y=m?m===vo?l.length:d.length:0);const w=m===vo&&/\b(?:transform|all)(?:,|$)/.test(r(`${vo}Property`).toString());return{type:m,timeout:g,propCount:y,hasTransform:w}}function J0(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Z0(n)+Z0(e[r])))}function Z0(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Q0(e){return(e?e.ownerDocument:document).body.offsetHeight}function cN(e,t,n){const r=e[fc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Pf=Symbol("_vod"),RS=Symbol("_vsh"),Lo={name:"show",beforeMount(e,{value:t},{transition:n}){e[Pf]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Oa(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Oa(e,!0),r.enter(e)):r.leave(e,()=>{Oa(e,!1)}):Oa(e,t))},beforeUnmount(e,{value:t}){Oa(e,t)}};function Oa(e,t){e.style.display=t?e[Pf]:"none",e[RS]=!t}const uN=Symbol(""),fN=/(?:^|;)\s*display\s*:/;function dN(e,t,n){const r=e.style,o=Vt(n);let l=!1;if(n&&!o){if(t)if(Vt(t))for(const a of t.split(";")){const f=a.slice(0,a.indexOf(":")).trim();n[f]==null&&af(r,f,"")}else for(const a in t)n[a]==null&&af(r,a,"");for(const a in n)a==="display"&&(l=!0),af(r,a,n[a])}else if(o){if(t!==n){const a=r[uN];a&&(n+=";"+a),r.cssText=n,l=fN.test(n)}}else t&&e.removeAttribute("style");Pf in e&&(e[Pf]=l?r.display:"",e[RS]&&(r.display="none"))}const eb=/\s*!important$/;function af(e,t,n){if(Ye(n))n.forEach(r=>af(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=hN(e,t);eb.test(n)?e.setProperty(eo(r),n.replace(eb,""),"important"):e[r]=n}}const tb=["Webkit","Moz","ms"],ip={};function hN(e,t){const n=ip[t];if(n)return n;let r=xr(t);if(r!=="filter"&&r in e)return ip[t]=r;r=gd(r);for(let o=0;o<tb.length;o++){const l=tb[o]+r;if(l in e)return ip[t]=l}return t}const nb="http://www.w3.org/1999/xlink";function rb(e,t,n,r,o,l=sM(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(nb,t.slice(6,t.length)):e.setAttributeNS(nb,t,n):n==null||l&&!v1(n)?e.removeAttribute(t):e.setAttribute(t,l?"":Yr(n)?String(n):n)}function ib(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?OS(n):n);return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const f=l==="OPTION"?e.getAttribute("value")||"":e.value,d=n==null?e.type==="checkbox"?"on":"":String(n);(f!==d||!("_value"in e))&&(e.value=d),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=v1(n):n==null&&f==="string"?(n="",a=!0):f==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(o||t)}function Oo(e,t,n,r){e.addEventListener(t,n,r)}function pN(e,t,n,r){e.removeEventListener(t,n,r)}const ob=Symbol("_vei");function mN(e,t,n,r,o=null){const l=e[ob]||(e[ob]={}),a=l[t];if(r&&a)a.value=r;else{const[f,d]=gN(t);if(r){const p=l[t]=bN(r,o);Oo(e,f,p,d)}else a&&(pN(e,f,a,d),l[t]=void 0)}}const sb=/(?:Once|Passive|Capture)$/;function gN(e){let t;if(sb.test(e)){t={};let r;for(;r=e.match(sb);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):eo(e.slice(2)),t]}let op=0;const vN=Promise.resolve(),yN=()=>op||(vN.then(()=>op=0),op=Date.now());function bN(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Jr(wN(r,n.value),t,5,[r])};return n.value=e,n.attached=yN(),n}function wN(e,t){if(Ye(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const lb=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,xN=(e,t,n,r,o,l)=>{const a=o==="svg";t==="class"?cN(e,r,a):t==="style"?dN(e,n,r):hd(t)?tg(t)||mN(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):SN(e,t,r,a))?(ib(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rb(e,t,r,a,l,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Vt(r))?ib(e,xr(t),r,l,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),rb(e,t,r,a))};function SN(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&lb(t)&&it(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return lb(t)&&Vt(n)?!1:t in e}const Rl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ye(t)?n=>sf(t,n):t};function _N(e){e.target.composing=!0}function ab(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Vi=Symbol("_assign");function cb(e,t,n){return t&&(e=e.trim()),n&&(e=vd(e)),e}const PS={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Vi]=Rl(o);const l=r||o.props&&o.props.type==="number";Oo(e,t?"change":"input",a=>{a.target.composing||e[Vi](cb(e.value,n,l))}),(n||l)&&Oo(e,"change",()=>{e.value=cb(e.value,n,l)}),t||(Oo(e,"compositionstart",_N),Oo(e,"compositionend",ab),Oo(e,"change",ab))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:l}},a){if(e[Vi]=Rl(a),e.composing)return;const f=(l||e.type==="number")&&!/^0\d/.test(e.value)?vd(e.value):e.value,d=t??"";f!==d&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===d)||(e.value=d))}},IS={deep:!0,created(e,t,n){e[Vi]=Rl(n),Oo(e,"change",()=>{const r=e._modelValue,o=dc(e),l=e.checked,a=e[Vi];if(Ye(r)){const f=rg(r,o),d=f!==-1;if(l&&!d)a(r.concat(o));else if(!l&&d){const p=[...r];p.splice(f,1),a(p)}}else if(Gl(r)){const f=new Set(r);l?f.add(o):f.delete(o),a(f)}else a(DS(e,l))})},mounted:ub,beforeUpdate(e,t,n){e[Vi]=Rl(n),ub(e,t,n)}};function ub(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(Ye(t))o=rg(t,r.props.value)>-1;else if(Gl(t))o=t.has(r.props.value);else{if(t===n)return;o=Kl(t,DS(e,!0))}e.checked!==o&&(e.checked=o)}const fb={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Gl(t);Oo(e,"change",()=>{const l=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?vd(dc(a)):dc(a));e[Vi](e.multiple?o?new Set(l):l:l[0]),e._assigning=!0,Mt(()=>{e._assigning=!1})}),e[Vi]=Rl(r)},mounted(e,{value:t}){db(e,t)},beforeUpdate(e,t,n){e[Vi]=Rl(n)},updated(e,{value:t}){e._assigning||db(e,t)}};function db(e,t){const n=e.multiple,r=Ye(t);if(!(n&&!r&&!Gl(t))){for(let o=0,l=e.options.length;o<l;o++){const a=e.options[o],f=dc(a);if(n)if(r){const d=typeof f;d==="string"||d==="number"?a.selected=t.some(p=>String(p)===String(f)):a.selected=rg(t,f)>-1}else a.selected=t.has(f);else if(Kl(dc(a),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function dc(e){return"_value"in e?e._value:e.value}function DS(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const kN=["ctrl","shift","alt","meta"],TN={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)=>kN.some(n=>e[`${n}Key`]&&!t.includes(n))},cf=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((o,...l)=>{for(let a=0;a<t.length;a++){const f=TN[t[a]];if(f&&f(o,t))return}return e(o,...l)}))},CN={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Jp=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(o=>{if(!("key"in o))return;const l=eo(o.key);if(t.some(a=>a===l||CN[a]===l))return e(o)}))},EN=rn({patchProp:xN},tN);let hb;function AN(){return hb||(hb=N$(EN))}const FS=((...e)=>{const t=AN().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=$N(r);if(!o)return;const l=t._component;!it(l)&&!l.render&&!l.template&&(l.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const a=n(o,!1,MN(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t});function MN(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function $N(e){return Vt(e)?document.querySelector(e):e}const no=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},NN={};function ON(e,t){const n=ks("RouterView");return Z(),We(n)}const LN=no(NN,[["render",ON]]),RN=["top","right","bottom","left"],pb=["start","end"],mb=RN.reduce((e,t)=>e.concat(t,t+"-"+pb[0],t+"-"+pb[1]),[]),hc=Math.min,ds=Math.max,PN={left:"right",right:"left",bottom:"top",top:"bottom"},IN={start:"end",end:"start"};function Zp(e,t,n){return ds(e,hc(t,n))}function Ms(e,t){return typeof e=="function"?e(t):e}function Si(e){return e.split("-")[0]}function Kr(e){return e.split("-")[1]}function zS(e){return e==="x"?"y":"x"}function bg(e){return e==="y"?"height":"width"}const DN=new Set(["top","bottom"]);function Ui(e){return DN.has(Si(e))?"y":"x"}function wg(e){return zS(Ui(e))}function BS(e,t,n){n===void 0&&(n=!1);const r=Kr(e),o=wg(e),l=bg(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(a=Df(a)),[a,Df(a)]}function FN(e){const t=Df(e);return[If(e),t,If(t)]}function If(e){return e.replace(/start|end/g,t=>IN[t])}const gb=["left","right"],vb=["right","left"],zN=["top","bottom"],BN=["bottom","top"];function HN(e,t,n){switch(e){case"top":case"bottom":return n?t?vb:gb:t?gb:vb;case"left":case"right":return t?zN:BN;default:return[]}}function jN(e,t,n,r){const o=Kr(e);let l=HN(Si(e),n==="start",r);return o&&(l=l.map(a=>a+"-"+o),t&&(l=l.concat(l.map(If)))),l}function Df(e){return e.replace(/left|right|bottom|top/g,t=>PN[t])}function WN(e){return{top:0,right:0,bottom:0,left:0,...e}}function HS(e){return typeof e!="number"?WN(e):{top:e,right:e,bottom:e,left:e}}function Ja(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function yb(e,t,n){let{reference:r,floating:o}=e;const l=Ui(t),a=wg(t),f=bg(a),d=Si(t),p=l==="y",m=r.x+r.width/2-o.width/2,g=r.y+r.height/2-o.height/2,y=r[f]/2-o[f]/2;let w;switch(d){case"top":w={x:m,y:r.y-o.height};break;case"bottom":w={x:m,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:g};break;case"left":w={x:r.x-o.width,y:g};break;default:w={x:r.x,y:r.y}}switch(Kr(t)){case"start":w[a]-=y*(n&&p?-1:1);break;case"end":w[a]+=y*(n&&p?-1:1);break}return w}const UN=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:l=[],platform:a}=n,f=l.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(t));let p=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:g}=yb(p,r,d),y=r,w={},E=0;for(let _=0;_<f.length;_++){const{name:k,fn:A}=f[_],{x:N,y:I,data:$,reset:D}=await A({x:m,y:g,initialPlacement:r,placement:y,strategy:o,middlewareData:w,rects:p,platform:a,elements:{reference:e,floating:t}});m=N??m,g=I??g,w={...w,[k]:{...w[k],...$}},D&&E<=50&&(E++,typeof D=="object"&&(D.placement&&(y=D.placement),D.rects&&(p=D.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):D.rects),{x:m,y:g}=yb(p,y,d)),_=-1)}return{x:m,y:g,placement:y,strategy:o,middlewareData:w}};async function Nd(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:l,rects:a,elements:f,strategy:d}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:y=!1,padding:w=0}=Ms(t,e),E=HS(w),k=f[y?g==="floating"?"reference":"floating":g],A=Ja(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(k)))==null||n?k:k.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:p,rootBoundary:m,strategy:d})),N=g==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,I=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),$=await(l.isElement==null?void 0:l.isElement(I))?await(l.getScale==null?void 0:l.getScale(I))||{x:1,y:1}:{x:1,y:1},D=Ja(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:N,offsetParent:I,strategy:d}):N);return{top:(A.top-D.top+E.top)/$.y,bottom:(D.bottom-A.bottom+E.bottom)/$.y,left:(A.left-D.left+E.left)/$.x,right:(D.right-A.right+E.right)/$.x}}const qN=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:l,platform:a,elements:f,middlewareData:d}=t,{element:p,padding:m=0}=Ms(e,t)||{};if(p==null)return{};const g=HS(m),y={x:n,y:r},w=wg(o),E=bg(w),_=await a.getDimensions(p),k=w==="y",A=k?"top":"left",N=k?"bottom":"right",I=k?"clientHeight":"clientWidth",$=l.reference[E]+l.reference[w]-y[w]-l.floating[E],D=y[w]-l.reference[w],U=await(a.getOffsetParent==null?void 0:a.getOffsetParent(p));let J=U?U[I]:0;(!J||!await(a.isElement==null?void 0:a.isElement(U)))&&(J=f.floating[I]||l.floating[E]);const ee=$/2-D/2,X=J/2-_[E]/2-1,V=hc(g[A],X),q=hc(g[N],X),P=V,L=J-_[E]-q,T=J/2-_[E]/2+ee,S=Zp(P,T,L),R=!d.arrow&&Kr(o)!=null&&T!==S&&l.reference[E]/2-(T<P?V:q)-_[E]/2<0,z=R?T<P?T-P:T-L:0;return{[w]:y[w]+z,data:{[w]:S,centerOffset:T-S-z,...R&&{alignmentOffset:z}},reset:R}}});function VN(e,t,n){return(e?[...n.filter(o=>Kr(o)===e),...n.filter(o=>Kr(o)!==e)]:n.filter(o=>Si(o)===o)).filter(o=>e?Kr(o)===e||(t?If(o)!==o:!1):!0)}const GN=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:l,middlewareData:a,placement:f,platform:d,elements:p}=t,{crossAxis:m=!1,alignment:g,allowedPlacements:y=mb,autoAlignment:w=!0,...E}=Ms(e,t),_=g!==void 0||y===mb?VN(g||null,w,y):y,k=await Nd(t,E),A=((n=a.autoPlacement)==null?void 0:n.index)||0,N=_[A];if(N==null)return{};const I=BS(N,l,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(f!==N)return{reset:{placement:_[0]}};const $=[k[Si(N)],k[I[0]],k[I[1]]],D=[...((r=a.autoPlacement)==null?void 0:r.overflows)||[],{placement:N,overflows:$}],U=_[A+1];if(U)return{data:{index:A+1,overflows:D},reset:{placement:U}};const J=D.map(V=>{const q=Kr(V.placement);return[V.placement,q&&m?V.overflows.slice(0,2).reduce((P,L)=>P+L,0):V.overflows[0],V.overflows]}).sort((V,q)=>V[1]-q[1]),X=((o=J.filter(V=>V[2].slice(0,Kr(V[0])?2:3).every(q=>q<=0))[0])==null?void 0:o[0])||J[0][0];return X!==f?{data:{index:A+1,overflows:D},reset:{placement:X}}:{}}}},KN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:l,rects:a,initialPlacement:f,platform:d,elements:p}=t,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:_=!0,...k}=Ms(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const A=Si(o),N=Ui(f),I=Si(f)===f,$=await(d.isRTL==null?void 0:d.isRTL(p.floating)),D=y||(I||!_?[Df(f)]:FN(f)),U=E!=="none";!y&&U&&D.push(...jN(f,_,E,$));const J=[f,...D],ee=await Nd(t,k),X=[];let V=((r=l.flip)==null?void 0:r.overflows)||[];if(m&&X.push(ee[A]),g){const T=BS(o,a,$);X.push(ee[T[0]],ee[T[1]])}if(V=[...V,{placement:o,overflows:X}],!X.every(T=>T<=0)){var q,P;const T=(((q=l.flip)==null?void 0:q.index)||0)+1,S=J[T];if(S&&(!(g==="alignment"?N!==Ui(S):!1)||V.every(ae=>Ui(ae.placement)===N?ae.overflows[0]>0:!0)))return{data:{index:T,overflows:V},reset:{placement:S}};let R=(P=V.filter(z=>z.overflows[0]<=0).sort((z,ae)=>z.overflows[1]-ae.overflows[1])[0])==null?void 0:P.placement;if(!R)switch(w){case"bestFit":{var L;const z=(L=V.filter(ae=>{if(U){const ve=Ui(ae.placement);return ve===N||ve==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(ve=>ve>0).reduce((ve,_e)=>ve+_e,0)]).sort((ae,ve)=>ae[1]-ve[1])[0])==null?void 0:L[0];z&&(R=z);break}case"initialPlacement":R=f;break}if(o!==R)return{reset:{placement:R}}}return{}}}},YN=new Set(["left","top"]);async function XN(e,t){const{placement:n,platform:r,elements:o}=e,l=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Si(n),f=Kr(n),d=Ui(n)==="y",p=YN.has(a)?-1:1,m=l&&d?-1:1,g=Ms(t,e);let{mainAxis:y,crossAxis:w,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof E=="number"&&(w=f==="end"?E*-1:E),d?{x:w*m,y:y*p}:{x:y*p,y:w*m}}const JN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:l,placement:a,middlewareData:f}=t,d=await XN(t,e);return a===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:l+d.y,data:{...d,placement:a}}}}},ZN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:f={fn:k=>{let{x:A,y:N}=k;return{x:A,y:N}}},...d}=Ms(e,t),p={x:n,y:r},m=await Nd(t,d),g=Ui(Si(o)),y=zS(g);let w=p[y],E=p[g];if(l){const k=y==="y"?"top":"left",A=y==="y"?"bottom":"right",N=w+m[k],I=w-m[A];w=Zp(N,w,I)}if(a){const k=g==="y"?"top":"left",A=g==="y"?"bottom":"right",N=E+m[k],I=E-m[A];E=Zp(N,E,I)}const _=f.fn({...t,[y]:w,[g]:E});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[y]:l,[g]:a}}}}}},QN=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:l,platform:a,elements:f}=t,{apply:d=()=>{},...p}=Ms(e,t),m=await Nd(t,p),g=Si(o),y=Kr(o),w=Ui(o)==="y",{width:E,height:_}=l.floating;let k,A;g==="top"||g==="bottom"?(k=g,A=y===(await(a.isRTL==null?void 0:a.isRTL(f.floating))?"start":"end")?"left":"right"):(A=g,k=y==="end"?"top":"bottom");const N=_-m.top-m.bottom,I=E-m.left-m.right,$=hc(_-m[k],N),D=hc(E-m[A],I),U=!t.middlewareData.shift;let J=$,ee=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ee=I),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(J=N),U&&!y){const V=ds(m.left,0),q=ds(m.right,0),P=ds(m.top,0),L=ds(m.bottom,0);w?ee=E-2*(V!==0||q!==0?V+q:ds(m.left,m.right)):J=_-2*(P!==0||L!==0?P+L:ds(m.top,m.bottom))}await d({...t,availableWidth:ee,availableHeight:J});const X=await a.getDimensions(f.floating);return E!==X.width||_!==X.height?{reset:{rects:!0}}:{}}}};function Ar(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bi(e){return Ar(e).getComputedStyle(e)}const bb=Math.min,Za=Math.max,Ff=Math.round;function jS(e){const t=bi(e);let n=parseFloat(t.width),r=parseFloat(t.height);const o=e.offsetWidth,l=e.offsetHeight,a=Ff(n)!==o||Ff(r)!==l;return a&&(n=o,r=l),{width:n,height:r,fallback:a}}function Bo(e){return US(e)?(e.nodeName||"").toLowerCase():""}let Ou;function WS(){if(Ou)return Ou;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Ou=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Ou):navigator.userAgent}function wi(e){return e instanceof Ar(e).HTMLElement}function Po(e){return e instanceof Ar(e).Element}function US(e){return e instanceof Ar(e).Node}function wb(e){return typeof ShadowRoot>"u"?!1:e instanceof Ar(e).ShadowRoot||e instanceof ShadowRoot}function Od(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=bi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function eO(e){return["table","td","th"].includes(Bo(e))}function Qp(e){const t=/firefox/i.test(WS()),n=bi(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!r&&r!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((o=>n.willChange.includes(o)))||["paint","layout","strict","content"].some((o=>{const l=n.contain;return l!=null&&l.includes(o)}))}function qS(){return!/^((?!chrome|android).)*safari/i.test(WS())}function xg(e){return["html","body","#document"].includes(Bo(e))}function VS(e){return Po(e)?e:e.contextElement}const GS={x:1,y:1};function wl(e){const t=VS(e);if(!wi(t))return GS;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:l}=jS(t);let a=(l?Ff(n.width):n.width)/r,f=(l?Ff(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),f&&Number.isFinite(f)||(f=1),{x:a,y:f}}function pc(e,t,n,r){var o,l;t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),f=VS(e);let d=GS;t&&(r?Po(r)&&(d=wl(r)):d=wl(e));const p=f?Ar(f):window,m=!qS()&&n;let g=(a.left+(m&&((o=p.visualViewport)==null?void 0:o.offsetLeft)||0))/d.x,y=(a.top+(m&&((l=p.visualViewport)==null?void 0:l.offsetTop)||0))/d.y,w=a.width/d.x,E=a.height/d.y;if(f){const _=Ar(f),k=r&&Po(r)?Ar(r):r;let A=_.frameElement;for(;A&&r&&k!==_;){const N=wl(A),I=A.getBoundingClientRect(),$=getComputedStyle(A);I.x+=(A.clientLeft+parseFloat($.paddingLeft))*N.x,I.y+=(A.clientTop+parseFloat($.paddingTop))*N.y,g*=N.x,y*=N.y,w*=N.x,E*=N.y,g+=I.x,y+=I.y,A=Ar(A).frameElement}}return{width:w,height:E,top:y,right:g+w,bottom:y+E,left:g,x:g,y}}function Io(e){return((US(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ld(e){return Po(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function KS(e){return pc(Io(e)).left+Ld(e).scrollLeft}function mc(e){if(Bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wb(e)&&e.host||Io(e);return wb(t)?t.host:t}function YS(e){const t=mc(e);return xg(t)?t.ownerDocument.body:wi(t)&&Od(t)?t:YS(t)}function zf(e,t){var n;t===void 0&&(t=[]);const r=YS(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),l=Ar(r);return o?t.concat(l,l.visualViewport||[],Od(r)?r:[]):t.concat(r,zf(r))}function xb(e,t,n){return t==="viewport"?Ja((function(r,o){const l=Ar(r),a=Io(r),f=l.visualViewport;let d=a.clientWidth,p=a.clientHeight,m=0,g=0;if(f){d=f.width,p=f.height;const y=qS();(y||!y&&o==="fixed")&&(m=f.offsetLeft,g=f.offsetTop)}return{width:d,height:p,x:m,y:g}})(e,n)):Po(t)?Ja((function(r,o){const l=pc(r,!0,o==="fixed"),a=l.top+r.clientTop,f=l.left+r.clientLeft,d=wi(r)?wl(r):{x:1,y:1};return{width:r.clientWidth*d.x,height:r.clientHeight*d.y,x:f*d.x,y:a*d.y}})(t,n)):Ja((function(r){const o=Io(r),l=Ld(r),a=r.ownerDocument.body,f=Za(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),d=Za(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight);let p=-l.scrollLeft+KS(r);const m=-l.scrollTop;return bi(a).direction==="rtl"&&(p+=Za(o.clientWidth,a.clientWidth)-f),{width:f,height:d,x:p,y:m}})(Io(e)))}function Sb(e){return wi(e)&&bi(e).position!=="fixed"?e.offsetParent:null}function _b(e){const t=Ar(e);let n=Sb(e);for(;n&&eO(n)&&bi(n).position==="static";)n=Sb(n);return n&&(Bo(n)==="html"||Bo(n)==="body"&&bi(n).position==="static"&&!Qp(n))?t:n||(function(r){let o=mc(r);for(;wi(o)&&!xg(o);){if(Qp(o))return o;o=mc(o)}return null})(e)||t}function tO(e,t,n){const r=wi(t),o=Io(t),l=pc(e,!0,n==="fixed",t);let a={scrollLeft:0,scrollTop:0};const f={x:0,y:0};if(r||!r&&n!=="fixed")if((Bo(t)!=="body"||Od(o))&&(a=Ld(t)),wi(t)){const d=pc(t,!0);f.x=d.x+t.clientLeft,f.y=d.y+t.clientTop}else o&&(f.x=KS(o));return{x:l.left+a.scrollLeft-f.x,y:l.top+a.scrollTop-f.y,width:l.width,height:l.height}}const nO={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=n==="clippingAncestors"?(function(p,m){const g=m.get(p);if(g)return g;let y=zf(p).filter((k=>Po(k)&&Bo(k)!=="body")),w=null;const E=bi(p).position==="fixed";let _=E?mc(p):p;for(;Po(_)&&!xg(_);){const k=bi(_),A=Qp(_);(E?A||w:A||k.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=k:y=y.filter((N=>N!==_)),_=mc(_)}return m.set(p,y),y})(t,this._c):[].concat(n),a=[...l,r],f=a[0],d=a.reduce(((p,m)=>{const g=xb(t,m,o);return p.top=Za(g.top,p.top),p.right=bb(g.right,p.right),p.bottom=bb(g.bottom,p.bottom),p.left=Za(g.left,p.left),p}),xb(t,f,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=wi(n),l=Io(n);if(n===l)return t;let a={scrollLeft:0,scrollTop:0},f={x:1,y:1};const d={x:0,y:0};if((o||!o&&r!=="fixed")&&((Bo(n)!=="body"||Od(l))&&(a=Ld(n)),wi(n))){const p=pc(n);f=wl(n),d.x=p.x+n.clientLeft,d.y=p.y+n.clientTop}return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-a.scrollLeft*f.x+d.x,y:t.y*f.y-a.scrollTop*f.y+d.y}},isElement:Po,getDimensions:function(e){return wi(e)?jS(e):e.getBoundingClientRect()},getOffsetParent:_b,getDocumentElement:Io,getScale:wl,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||_b,l=this.getDimensions;return{reference:tO(t,await o(n),r),floating:{x:0,y:0,...await l(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>bi(e).direction==="rtl"},rO=(e,t,n)=>{const r=new Map,o={platform:nO,...n},l={...o.platform,_c:r};return UN(e,t,{...o,platform:l})},Do={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 gc(e,t){let n=Do.themes[e]||{},r;do r=n[t],typeof r>"u"?n.$extend?n=Do.themes[n.$extend]||{}:(n=null,r=Do[t]):n=null;while(n);return r}function iO(e){const t=[e];let n=Do.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Do.themes[n.$extend]||{}):n=null;while(n);return t.map(r=>`v-popper--theme-${r}`)}function kb(e){const t=[e];let n=Do.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Do.themes[n.$extend]||{}):n=null;while(n);return t}let vc=!1;if(typeof window<"u"){vc=!1;try{const e=Object.defineProperty({},"passive",{get(){vc=!0}});window.addEventListener("test",null,e)}catch{}}let XS=!1;typeof window<"u"&&typeof navigator<"u"&&(XS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const JS=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Tb={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Cb={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Eb(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function sp(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const mr=[];let cs=null;const Ab={};function Mb(e){let t=Ab[e];return t||(t=Ab[e]=[]),t}let em=function(){};typeof window<"u"&&(em=window.Element);function mt(e){return function(t){return gc(t.theme,e)}}const lp="__floating-vue__popper",ZS=()=>et({name:"VPopper",provide(){return{[lp]:{parentPopper:this}}},inject:{[lp]:{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:mt("disabled")},positioningDisabled:{type:Boolean,default:mt("positioningDisabled")},placement:{type:String,default:mt("placement"),validator:e=>JS.includes(e)},delay:{type:[String,Number,Object],default:mt("delay")},distance:{type:[Number,String],default:mt("distance")},skidding:{type:[Number,String],default:mt("skidding")},triggers:{type:Array,default:mt("triggers")},showTriggers:{type:[Array,Function],default:mt("showTriggers")},hideTriggers:{type:[Array,Function],default:mt("hideTriggers")},popperTriggers:{type:Array,default:mt("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:mt("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:mt("popperHideTriggers")},container:{type:[String,Object,em,Boolean],default:mt("container")},boundary:{type:[String,em],default:mt("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:mt("strategy")},autoHide:{type:[Boolean,Function],default:mt("autoHide")},handleResize:{type:Boolean,default:mt("handleResize")},instantMove:{type:Boolean,default:mt("instantMove")},eagerMount:{type:Boolean,default:mt("eagerMount")},popperClass:{type:[String,Array,Object],default:mt("popperClass")},computeTransformOrigin:{type:Boolean,default:mt("computeTransformOrigin")},autoMinSize:{type:Boolean,default:mt("autoMinSize")},autoSize:{type:[Boolean,String],default:mt("autoSize")},autoMaxSize:{type:Boolean,default:mt("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:mt("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:mt("preventOverflow")},overflowPadding:{type:[Number,String],default:mt("overflowPadding")},arrowPadding:{type:[Number,String],default:mt("arrowPadding")},arrowOverflow:{type:Boolean,default:mt("arrowOverflow")},flip:{type:Boolean,default:mt("flip")},shift:{type:Boolean,default:mt("shift")},shiftCrossAxis:{type:Boolean,default:mt("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:mt("noAutoFocus")},disposeTimeout:{type:Number,default:mt("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[lp])==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:n=!1}={}){var r,o;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((o=this.parentPopper)==null?void 0:o.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 n;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}((n=this.parentPopper)==null?void 0:n.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(JN({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(GN({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(ZN({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(KN({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(qN({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:r,rects:o,middlewareData:l})=>{let a;const{centerOffset:f}=l.arrow;return r.startsWith("top")||r.startsWith("bottom")?a=Math.abs(f)>o.reference.width/2:a=Math.abs(f)>o.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const r=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:o,placement:l,middlewareData:a})=>{var f;if((f=a.autoSize)!=null&&f.skip)return{};let d,p;return l.startsWith("top")||l.startsWith("bottom")?d=o.reference.width:p=o.reference.height,this.$_innerNode.style[r==="min"?"minWidth":r==="max"?"maxWidth":"width"]=d!=null?`${d}px`:null,this.$_innerNode.style[r==="min"?"minHeight":r==="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(QN({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:r,availableHeight:o})=>{this.$_innerNode.style.maxWidth=r!=null?`${r}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null}})));const n=await rO(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),cs&&this.instantMove&&cs.instantMove&&cs!==this.parentPopper){cs.$_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&&(cs=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 sp(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...zf(this.$_referenceNode),...zf(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),r=n.parentNode.getBoundingClientRect(),o=t.x+t.width/2-(r.left+n.offsetLeft),l=t.y+t.height/2-(r.top+n.offsetTop);this.result.transformOrigin=`${o}px ${l}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<mr.length;n++)t=mr[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}mr.push(this),document.body.classList.add("v-popper--some-open");for(const t of kb(this.theme))Mb(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 sp(),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,Eb(mr,this),mr.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of kb(this.theme)){const r=Mb(n);Eb(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}cs===this&&(cs=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 sp(),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=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,Tb,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Tb,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Cb,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Cb,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(r=>r.addEventListener(t,n,vc?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,o){let l=n;r!=null&&(l=typeof r=="function"?r(l):r),l.forEach(a=>{const f=t[a];f&&this.$_registerEventListeners(e,f,o)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:r,eventType:o,handler:l}=n;!e||e===o?r.forEach(a=>a.removeEventListener(o,l)):t.push(n)}),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 n of this.$_targetNodes){const r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_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(Qa>=e.left&&Qa<=e.right&&ec>=e.top&&ec<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Qa-wo,r=ec-xo,o=t.left+t.width/2-wo+(t.top+t.height/2)-xo+t.width+t.height,l=wo+n*o,a=xo+r*o;return Lu(wo,xo,l,a,t.left,t.top,t.left,t.bottom)||Lu(wo,xo,l,a,t.left,t.top,t.right,t.top)||Lu(wo,xo,l,a,t.right,t.top,t.right,t.bottom)||Lu(wo,xo,l,a,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(XS){const e=vc?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>$b(t),e),document.addEventListener("touchend",t=>Nb(t,!0),e)}else window.addEventListener("mousedown",e=>$b(e),!0),window.addEventListener("click",e=>Nb(e,!1),!0);window.addEventListener("resize",lO)}function $b(e,t){for(let n=0;n<mr.length;n++){const r=mr[n];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function Nb(e,t){oO(e,t)}function oO(e,t){const n={};for(let r=mr.length-1;r>=0;r--){const o=mr[r];try{const l=o.containsGlobalTarget=o.mouseDownContains||o.popperNode().contains(e.target);o.pendingHide=!1,requestAnimationFrame(()=>{if(o.pendingHide=!1,!n[o.randomId]&&Ob(o,l,e)){if(o.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let f=o.parentPopper;for(;f;)n[f.randomId]=!0,f=f.parentPopper;return}let a=o.parentPopper;for(;a&&Ob(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function Ob(e,t,n){return n.closeAllPopover||n.closePopover&&t||sO(e,n)&&!t}function sO(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function lO(){for(let e=0;e<mr.length;e++)mr[e].$_computePosition()}function Lb(){for(let e=0;e<mr.length;e++)mr[e].hide()}let wo=0,xo=0,Qa=0,ec=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{wo=Qa,xo=ec,Qa=e.clientX,ec=e.clientY},vc?{passive:!0}:void 0);function Lu(e,t,n,r,o,l,a,f){const d=((a-o)*(t-l)-(f-l)*(e-o))/((f-l)*(n-e)-(a-o)*(r-t)),p=((n-e)*(t-l)-(r-t)*(e-o))/((f-l)*(n-e)-(a-o)*(r-t));return d>=0&&d<=1&&p>=0&&p<=1}const aO={extends:ZS()},Rd=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};function cO(e,t,n,r,o,l){return Z(),fe("div",{ref:"reference",class:rt(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Wt(e.$slots,"default",iM(AS(e.slotData)))],2)}const uO=Rd(aO,[["render",cO]]);function fO(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let uf;function tm(){tm.init||(tm.init=!0,uf=fO()!==-1)}var Pd={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){tm(),Mt(()=>{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",uf&&this.$el.appendChild(e),e.data="about:blank",uf||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&&(!uf&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const dO=U1();j1("data-v-b329ee4c");const hO={class:"resize-observer",tabindex:"-1"};W1();const pO=dO((e,t,n,r,o,l)=>(Z(),We("div",hO)));Pd.render=pO;Pd.__scopeId="data-v-b329ee4c";Pd.__file="src/components/ResizeObserver.vue";const QS=(e="theme")=>({computed:{themeClass(){return iO(this[e])}}}),mO=et({name:"VPopperContent",components:{ResizeObserver:Pd},mixins:[QS()],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}}}),gO=["id","aria-hidden","tabindex","data-popper-placement"],vO={ref:"inner",class:"v-popper__inner"},yO=Y("div",{class:"v-popper__arrow-outer"},null,-1),bO=Y("div",{class:"v-popper__arrow-inner"},null,-1),wO=[yO,bO];function xO(e,t,n,r,o,l){const a=ks("ResizeObserver");return Z(),fe("div",{id:e.popperId,ref:"popover",class:rt(["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:Ut(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]=Jp(f=>e.autoHide&&e.$emit("hide"),["esc"]))},[Y("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=f=>e.autoHide&&e.$emit("hide"))}),Y("div",{class:"v-popper__wrapper",style:Ut(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Y("div",vO,[e.mounted?(Z(),fe(nt,{key:0},[Y("div",null,[Wt(e.$slots,"default")]),e.handleResize?(Z(),We(a,{key:0,onNotify:t[1]||(t[1]=f=>e.$emit("resize",f))})):Pe("",!0)],64)):Pe("",!0)],512),Y("div",{ref:"arrow",class:"v-popper__arrow-container",style:Ut(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},wO,4)],4)],46,gO)}const e_=Rd(mO,[["render",xO]]),t_={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 nm=function(){};typeof window<"u"&&(nm=window.Element);const SO=et({name:"VPopperWrapper",components:{Popper:uO,PopperContent:e_},mixins:[t_,QS("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,nm,Boolean],default:void 0},boundary:{type:[String,nm],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 _O(e,t,n,r,o,l){const a=ks("PopperContent"),f=ks("Popper");return Z(),We(f,yi({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]=d=>e.$emit("update:shown",d)),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:ze(({popperId:d,isShown:p,shouldMountContent:m,skipTransition:g,autoHide:y,show:w,hide:E,handleResize:_,onResize:k,classes:A,result:N})=>[Wt(e.$slots,"default",{shown:p,show:w,hide:E}),Ce(a,{ref:"popperContent","popper-id":d,theme:e.finalTheme,shown:p,mounted:m,"skip-transition":g,"auto-hide":y,"handle-resize":_,classes:A,result:N,onHide:E,onResize:k},{default:ze(()=>[Wt(e.$slots,"popper",{shown:p,hide:E})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Sg=Rd(SO,[["render",_O]]);({...Sg});({...Sg});const kO={...Sg,name:"VTooltip",vPopperTheme:"tooltip"},TO=et({name:"VTooltipDirective",components:{Popper:ZS(),PopperContent:e_},mixins:[t_],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>gc(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>gc(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,n=this.content(this);n.then?n.then(r=>this.onResult(t,r)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),CO=["innerHTML"],EO=["textContent"];function AO(e,t,n,r,o,l){const a=ks("PopperContent"),f=ks("Popper");return Z(),We(f,yi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:ze(({popperId:d,isShown:p,shouldMountContent:m,skipTransition:g,autoHide:y,hide:w,handleResize:E,onResize:_,classes:k,result:A})=>[Ce(a,{ref:"popperContent",class:rt({"v-popper--tooltip-loading":e.loading}),"popper-id":d,theme:e.theme,shown:p,mounted:m,"skip-transition":g,"auto-hide":y,"handle-resize":E,classes:k,result:A,onHide:w,onResize:_},{default:ze(()=>[e.html?(Z(),fe("div",{key:0,innerHTML:e.finalContent},null,8,CO)):(Z(),fe("div",{key:1,textContent:Ee(e.finalContent)},null,8,EO))]),_: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 MO=Rd(TO,[["render",AO]]),n_="v-popper--has-tooltip";function $O(e,t){let n=e.placement;if(!n&&t)for(const r of JS)t[r]&&(n=r);return n||(n=gc(e.theme||"tooltip","placement")),n}function r_(e,t,n){let r;const o=typeof t;return o==="string"?r={content:t}:t&&o==="object"?r=t:r={content:!1},r.placement=$O(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let ap,yc,NO=0;function OO(){if(ap)return;yc=Ve([]),ap=FS({name:"VTooltipDirectiveApp",setup(){return{directives:yc}},render(){return this.directives.map(t=>zc(MO,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),ap.mount(e)}function i_(e,t,n){OO();const r=Ve(r_(e,t,n)),o=Ve(!1),l={id:NO++,options:r,shown:o};return yc.value.push(l),e.classList&&e.classList.add(n_),e.$_popper={options:r,item:l,show(){o.value=!0},hide(){o.value=!1}}}function _g(e){if(e.$_popper){const t=yc.value.indexOf(e.$_popper.item);t!==-1&&yc.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(n_)}function Rb(e,{value:t,modifiers:n}){const r=r_(e,t,n);if(!r.content||gc(r.theme||"tooltip","disabled"))_g(e);else{let o;e.$_popper?(o=e.$_popper,o.options.value=r):o=i_(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?o.show():o.hide())}}const LO={beforeMount:Rb,updated:Rb,beforeUnmount(e){_g(e)}},RO=LO,Co=kO,o_={options:Do};function s_(e,t){return ig()?(cM(e,t),!0):!1}const cp=new WeakMap,PO=(...e)=>{var t;const n=e[0],r=(t=ei())===null||t===void 0?void 0:t.proxy,o=r??ig();if(o==null&&!q1())throw new Error("injectLocal must be called in setup");return o&&cp.has(o)&&n in cp.get(o)?cp.get(o)[n]:kn(...e)},IO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const DO=Object.prototype.toString,FO=e=>DO.call(e)==="[object Object]",zO=()=>+Date.now(),Bf=()=>{};function $s(...e){if(e.length!==1)return PM(...e);const t=e[0];return typeof t=="function"?Ml(I1(()=>({get:t,set:Bf}))):Ve(t)}function kg(e,t){function n(...r){return new Promise((o,l)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(l)})}return n}const Tg=e=>e();function l_(e,t={}){let n,r,o=Bf;const l=d=>{clearTimeout(d),o(),o=Bf};let a;return d=>{const p=nn(e),m=nn(t.maxWait);return n&&l(n),p<=0||m!==void 0&&m<=0?(r&&(l(r),r=void 0),Promise.resolve(d())):new Promise((g,y)=>{o=t.rejectOnCancel?y:g,a=d,m&&!r&&(r=setTimeout(()=>{n&&l(n),r=void 0,g(a())},m)),n=setTimeout(()=>{r&&l(r),r=void 0,g(d())},p)})}}function a_(e=Tg,t={}){const{initialState:n="active"}=t,r=$s(n==="active");function o(){r.value=!1}function l(){r.value=!0}return{isActive:Ml(r),pause:o,resume:l,eventFilter:(...f)=>{r.value&&e(...f)}}}function Pb(e,t=!1,n="Timeout"){return new Promise((r,o)=>{setTimeout(t?()=>o(n):r,e)})}function Ib(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function up(e){return Array.isArray(e)?e:[e]}function BO(e){return ei()}function Ru(e,t=200,n={}){return kg(l_(t,n),e)}function c_(e,t,n={}){const{eventFilter:r=Tg,...o}=n;return ct(e,kg(r,t),o)}function u_(e,t,n={}){const{eventFilter:r,initialState:o="active",...l}=n,{eventFilter:a,pause:f,resume:d,isActive:p}=a_(r,{initialState:o});return{stop:c_(e,t,{...l,eventFilter:a}),pause:f,resume:d,isActive:p}}function Cg(e,t=!0,n){BO()?ki(e,n):t?e():Mt(e)}function rm(e,t=!1){function n(g,{flush:y="sync",deep:w=!1,timeout:E,throwOnTimeout:_}={}){let k=null;const A=[new Promise(N=>{k=ct(e,I=>{g(I)!==t&&(k?k():Mt(()=>k?.()),N(I))},{flush:y,deep:w,immediate:!0})})];return E!=null&&A.push(Pb(E,_).then(()=>nn(e)).finally(()=>k?.())),Promise.race(A)}function r(g,y){if(!Rt(g))return n(I=>I===g,y);const{flush:w="sync",deep:E=!1,timeout:_,throwOnTimeout:k}=y??{};let A=null;const N=[new Promise(I=>{A=ct([e,g],([$,D])=>{t!==($===D)&&(A?A():Mt(()=>A?.()),I($))},{flush:w,deep:E,immediate:!0})})];return _!=null&&N.push(Pb(_,k).then(()=>nn(e)).finally(()=>(A?.(),nn(e)))),Promise.race(N)}function o(g){return n(y=>!!y,g)}function l(g){return r(null,g)}function a(g){return r(void 0,g)}function f(g){return n(Number.isNaN,g)}function d(g,y){return n(w=>{const E=Array.from(w);return E.includes(g)||E.includes(nn(g))},y)}function p(g){return m(1,g)}function m(g=1,y){let w=-1;return n(()=>(w+=1,w>=g),y)}return Array.isArray(nn(e))?{toMatch:n,toContains:d,changed:p,changedTimes:m,get not(){return rm(e,!t)}}:{toMatch:n,toBe:r,toBeTruthy:o,toBeNull:l,toBeNaN:f,toBeUndefined:a,changed:p,changedTimes:m,get not(){return rm(e,!t)}}}function Db(e){return rm(e)}function HO(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,o=Rt(e),l=qt(e);function a(f){if(arguments.length)return l.value=f,l.value;{const d=nn(n);return l.value=l.value===d?nn(r):d,l.value}}return o?a:[l,a]}function f_(e,t,n={}){const{debounce:r=0,maxWait:o=void 0,...l}=n;return c_(e,t,{...l,eventFilter:l_(r,{maxWait:o})})}const d_=f_;function jO(e,t,n={}){const{eventFilter:r=Tg,...o}=n,l=kg(r,t);let a,f,d;if(o.flush==="sync"){let p=!1;f=()=>{},a=m=>{p=!0,m(),p=!1},d=ct(e,(...m)=>{p||l(...m)},o)}else{const p=[];let m=0,g=0;f=()=>{m=g},p.push(ct(e,()=>{g++},{...o,flush:"sync"})),a=y=>{const w=g;y(),m+=g-w},p.push(ct(e,(...y)=>{const w=m>0&&m===g;m=0,g=0,!w&&l(...y)},o)),d=()=>{p.forEach(y=>y())}}return{stop:d,ignoreUpdates:a,ignorePrevAsyncUpdates:f}}function WO(e,t,n){return ct(e,t,{...n,immediate:!0})}function UO(e,t,n){return ct(e,t,{...n,once:!0})}function qO(e,t,n){var r;let o;Rt(n)?o={evaluating:n}:o=n||{};const{lazy:l=!1,flush:a="sync",evaluating:f=void 0,shallow:d=!0,onError:p=(r=globalThis.reportError)!==null&&r!==void 0?r:Bf}=o,m=qt(!l),g=d?qt(t):Ve(t);let y=0;return V1(async w=>{if(!m.value)return;y++;const E=y;let _=!1;f&&Promise.resolve().then(()=>{f.value=!0});try{const k=await e(A=>{w(()=>{f&&(f.value=!1),_||A()})});E===y&&(g.value=k)}catch(k){p(k)}finally{f&&E===y&&(f.value=!1),_=!0}},{flush:a}),l?we(()=>(m.value=!0,g.value)):g}const VO=qO,vr=IO?window:void 0;function Hf(e){var t;const n=nn(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Ho(...e){const t=(r,o,l,a)=>(r.addEventListener(o,l,a),()=>r.removeEventListener(o,l,a)),n=we(()=>{const r=up(nn(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return WO(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(l=>Hf(l)))!==null&&r!==void 0?r:[vr].filter(l=>l!=null),up(nn(n.value?e[1]:e[0])),up(j(n.value?e[2]:e[1])),nn(n.value?e[3]:e[2])]},([r,o,l,a],f,d)=>{if(!r?.length||!o?.length||!l?.length)return;const p=FO(a)?{...a}:a,m=r.flatMap(g=>o.flatMap(y=>l.map(w=>t(g,y,w,p))));d(()=>{m.forEach(g=>g())})},{flush:"post"})}function GO(){const e=qt(!1),t=ei();return t&&ki(()=>{e.value=!0},t),e}function h_(e){const t=GO();return we(()=>(t.value,!!e()))}function KO(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function p_(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=vr,eventName:l="keydown",passive:a=!1,dedupe:f=!1}=r,d=KO(t);return Ho(o,l,m=>{m.repeat&&nn(f)||d(m)&&n(m)},a)}function YO(e,t={}){const{immediate:n=!0,fpsLimit:r=null,window:o=vr,once:l=!1}=t,a=qt(!1),f=we(()=>{const w=nn(r);return w?1e3/w:null});let d=0,p=null;function m(w){if(!a.value||!o)return;d||(d=w);const E=w-d;if(f.value&&E<f.value){p=o.requestAnimationFrame(m);return}if(d=w,e({delta:E,timestamp:w}),l){a.value=!1,p=null;return}p=o.requestAnimationFrame(m)}function g(){!a.value&&o&&(a.value=!0,d=0,p=o.requestAnimationFrame(m))}function y(){a.value=!1,p!=null&&o&&(o.cancelAnimationFrame(p),p=null)}return n&&g(),s_(y),{isActive:Ml(a),pause:y,resume:g}}const XO=Symbol("vueuse-ssr-width");function JO(){const e=q1()?PO(XO,null):null;return typeof e=="number"?e:void 0}function m_(e,t={}){const{window:n=vr,ssrWidth:r=JO()}=t,o=h_(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),l=qt(typeof r=="number"),a=qt(),f=qt(!1),d=p=>{f.value=p.matches};return V1(()=>{if(l.value){l.value=!o.value,f.value=nn(e).split(",").some(p=>{const m=p.includes("not all"),g=p.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),y=p.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let w=!!(g||y);return g&&w&&(w=r>=Ib(g[1])),y&&w&&(w=r<=Ib(y[1])),m?!w:w});return}o.value&&(a.value=n.matchMedia(nn(e)),f.value=a.value.matches)}),Ho(a,"change",d,{passive:!0}),we(()=>f.value)}function g_(e){return JSON.parse(JSON.stringify(e))}const Pu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Iu="__vueuse_ssr_handlers__",ZO=QO();function QO(){return Iu in Pu||(Pu[Iu]=Pu[Iu]||{}),Pu[Iu]}function v_(e,t){return ZO[e]||t}function eL(e){return m_("(prefers-color-scheme: dark)",e)}function tL(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 nL={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()}},Fb="vueuse-storage";function y_(e,t,n,r={}){var o;const{flush:l="pre",deep:a=!0,listenToStorageChanges:f=!0,writeDefaults:d=!0,mergeDefaults:p=!1,shallow:m,window:g=vr,eventFilter:y,onError:w=T=>{console.error(T)},initOnMounted:E}=r,_=(m?qt:Ve)(typeof t=="function"?t():t),k=we(()=>nn(e));if(!n)try{n=v_("getDefaultStorage",()=>vr?.localStorage)()}catch(T){w(T)}if(!n)return _;const A=nn(t),N=tL(A),I=(o=r.serializer)!==null&&o!==void 0?o:nL[N],{pause:$,resume:D}=u_(_,T=>V(T),{flush:l,deep:a,eventFilter:y});ct(k,()=>P(),{flush:l});let U=!1;const J=T=>{E&&!U||P(T)},ee=T=>{E&&!U||L(T)};g&&f&&(n instanceof Storage?Ho(g,"storage",J,{passive:!0}):Ho(g,Fb,ee)),E?Cg(()=>{U=!0,P()}):P();function X(T,S){if(g){const R={key:k.value,oldValue:T,newValue:S,storageArea:n};g.dispatchEvent(n instanceof Storage?new StorageEvent("storage",R):new CustomEvent(Fb,{detail:R}))}}function V(T){try{const S=n.getItem(k.value);if(T==null)X(S,null),n.removeItem(k.value);else{const R=I.write(T);S!==R&&(n.setItem(k.value,R),X(S,R))}}catch(S){w(S)}}function q(T){const S=T?T.newValue:n.getItem(k.value);if(S==null)return d&&A!=null&&n.setItem(k.value,I.write(A)),A;if(!T&&p){const R=I.read(S);return typeof p=="function"?p(R,A):N==="object"&&!Array.isArray(R)?{...A,...R}:R}else return typeof S!="string"?S:I.read(S)}function P(T){if(!(T&&T.storageArea!==n)){if(T&&T.key==null){_.value=A;return}if(!(T&&T.key!==k.value)){$();try{const S=I.write(_.value);(T===void 0||T?.newValue!==S)&&(_.value=q(T))}catch(S){w(S)}finally{T?Mt(D):D()}}}}function L(T){P(T.detail)}return _}const rL="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function iL(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=vr,storage:l,storageKey:a="vueuse-color-scheme",listenToStorageChanges:f=!0,storageRef:d,emitAuto:p,disableTransition:m=!0}=e,g={auto:"",light:"light",dark:"dark",...e.modes||{}},y=eL({window:o}),w=we(()=>y.value?"dark":"light"),E=d||(a==null?$s(r):y_(a,r,l,{window:o,listenToStorageChanges:f})),_=we(()=>E.value==="auto"?w.value:E.value),k=v_("updateHTMLAttrs",($,D,U)=>{const J=typeof $=="string"?o?.document.querySelector($):Hf($);if(!J)return;const ee=new Set,X=new Set;let V=null;if(D==="class"){const P=U.split(/\s/g);Object.values(g).flatMap(L=>(L||"").split(/\s/g)).filter(Boolean).forEach(L=>{P.includes(L)?ee.add(L):X.add(L)})}else V={key:D,value:U};if(ee.size===0&&X.size===0&&V===null)return;let q;m&&(q=o.document.createElement("style"),q.appendChild(document.createTextNode(rL)),o.document.head.appendChild(q));for(const P of ee)J.classList.add(P);for(const P of X)J.classList.remove(P);V&&J.setAttribute(V.key,V.value),m&&(o.getComputedStyle(q).opacity,document.head.removeChild(q))});function A($){var D;k(t,n,(D=g[$])!==null&&D!==void 0?D:$)}function N($){e.onChanged?e.onChanged($,A):A($)}ct(_,N,{flush:"post",immediate:!0}),Cg(()=>N(_.value));const I=we({get(){return p?E.value:_.value},set($){E.value=$}});return Object.assign(I,{store:E,system:w,state:_})}function oL(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=iL({...e,onChanged:(l,a)=>{var f;e.onChanged?(f=e.onChanged)===null||f===void 0||f.call(e,l==="dark",a,l):a(l)},modes:{dark:t,light:n}}),o=we(()=>r.system.value);return we({get(){return r.value==="dark"},set(l){const a=l?"dark":"light";o.value===a?r.value="auto":r.value=a}})}function b_(e){return e}function sL(e,t){return e.value=t}function lL(e){return e?typeof e=="function"?e:g_:b_}function aL(e){return e?typeof e=="function"?e:g_:b_}function cL(e,t={}){const{clone:n=!1,dump:r=lL(n),parse:o=aL(n),setSource:l=sL}=t;function a(){return Sd({snapshot:r(e.value),timestamp:zO()})}const f=Ve(a()),d=Ve([]),p=Ve([]),m=k=>{l(e,o(k.snapshot)),f.value=k},g=()=>{d.value.unshift(f.value),f.value=a(),t.capacity&&d.value.length>t.capacity&&d.value.splice(t.capacity,Number.POSITIVE_INFINITY),p.value.length&&p.value.splice(0,p.value.length)},y=()=>{d.value.splice(0,d.value.length),p.value.splice(0,p.value.length)},w=()=>{const k=d.value.shift();k&&(p.value.unshift(f.value),m(k))},E=()=>{const k=p.value.shift();k&&(d.value.unshift(f.value),m(k))},_=()=>{m(f.value)};return{source:e,undoStack:d,redoStack:p,last:f,history:we(()=>[f.value,...d.value]),canUndo:we(()=>d.value.length>0),canRedo:we(()=>p.value.length>0),clear:y,commit:g,reset:_,undo:w,redo:E}}function uL(e,t={}){const{deep:n=!1,flush:r="pre",eventFilter:o,shouldCommit:l=()=>!0}=t,{eventFilter:a,pause:f,resume:d,isActive:p}=a_(o);let m=e.value;const{ignoreUpdates:g,ignorePrevAsyncUpdates:y,stop:w}=jO(e,N,{deep:n,flush:r,eventFilter:a});function E(U,J){y(),g(()=>{U.value=J,m=J})}const _=cL(e,{...t,clone:t.clone||n,setSource:E}),{clear:k,commit:A}=_;function N(){y(),l(m,e.value)&&(m=e.value,A())}function I(U){d(),U&&N()}function $(U){let J=!1;const ee=()=>J=!0;g(()=>{U(ee)}),J||N()}function D(){w(),k()}return{..._,isTracking:p,pause:f,resume:I,commit:N,batch:$,dispose:D}}function fL(e,t,n={}){const{window:r=vr,...o}=n;let l;const a=h_(()=>r&&"ResizeObserver"in r),f=()=>{l&&(l.disconnect(),l=void 0)},d=ct(we(()=>{const m=nn(e);return Array.isArray(m)?m.map(g=>Hf(g)):[Hf(m)]}),m=>{if(f(),a.value&&r){l=new ResizeObserver(t);for(const g of m)g&&l.observe(g,o)}},{immediate:!0,flush:"post"}),p=()=>{f(),d()};return s_(p),{isSupported:a,stop:p}}function Bc(e,t,n={}){const{window:r=vr}=n;return y_(e,t,r?.localStorage,n)}function dL(e="history",t={}){const{initialValue:n={},removeNullishValues:r=!0,removeFalsyValues:o=!1,write:l=!0,writeMode:a="replace",window:f=vr,stringify:d=$=>$.toString()}=t;if(!f)return yr(n);const p=yr({});function m(){if(e==="history")return f.location.search||"";if(e==="hash"){const $=f.location.hash||"",D=$.indexOf("?");return D>0?$.slice(D):""}else return(f.location.hash||"").replace(/^#/,"")}function g($){const D=d($);if(e==="history")return`${D?`?${D}`:""}${f.location.hash||""}`;if(e==="hash-params")return`${f.location.search||""}${D?`#${D}`:""}`;const U=f.location.hash||"#",J=U.indexOf("?");return J>0?`${f.location.search||""}${U.slice(0,J)}${D?`?${D}`:""}`:`${f.location.search||""}${U}${D?`?${D}`:""}`}function y(){return new URLSearchParams(m())}function w($){const D=new Set(Object.keys(p));for(const U of $.keys()){const J=$.getAll(U);p[U]=J.length>1?J:$.get(U)||"",D.delete(U)}Array.from(D).forEach(U=>delete p[U])}const{pause:E,resume:_}=u_(p,()=>{const $=new URLSearchParams("");Object.keys(p).forEach(D=>{const U=p[D];Array.isArray(U)?U.forEach(J=>$.append(D,J)):r&&U==null||o&&!U?$.delete(D):$.set(D,U)}),k($,!1)},{deep:!0});function k($,D,U=!0){E(),D&&w($),a==="replace"?f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g($)):U&&f.history.pushState(f.history.state,f.document.title,f.location.pathname+g($)),Mt(()=>_())}function A(){l&&k(y(),!0,!1)}const N={passive:!0};Ho(f,"popstate",A,N),e!=="history"&&Ho(f,"hashchange",A,N);const I=y();return I.keys().next().value?w(I):Object.assign(p,n),p}function hL(e={}){const{window:t=vr,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:l=!0,type:a="inner"}=e,f=qt(n),d=qt(r),p=()=>{if(t)if(a==="outer")f.value=t.outerWidth,d.value=t.outerHeight;else if(a==="visual"&&t.visualViewport){const{width:g,height:y,scale:w}=t.visualViewport;f.value=Math.round(g*w),d.value=Math.round(y*w)}else l?(f.value=t.innerWidth,d.value=t.innerHeight):(f.value=t.document.documentElement.clientWidth,d.value=t.document.documentElement.clientHeight)};p(),Cg(p);const m={passive:!0};return Ho("resize",p,m),t&&a==="visual"&&t.visualViewport&&Ho(t.visualViewport,"resize",p,m),o&&ct(m_("(orientation: portrait)"),()=>p()),{width:f,height:d}}const ff={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const n=t,r=e,o=iS(),l=Ve([]),a=we(()=>l.value.reduce((B,Q)=>(B[~~Q.id]=Q)&&B,{})),f=we(()=>l.value.length),d=Ve(null),p=Ve(!1),m=Ve({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),g=Ve({splitter:null,timeoutId:null}),y=we(()=>({[`splitpanes splitpanes--${r.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":m.value.dragging})),w=()=>{document.addEventListener("mousemove",k,{passive:!1}),document.addEventListener("mouseup",A),"ontouchstart"in window&&(document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",A))},E=()=>{document.removeEventListener("mousemove",k,{passive:!1}),document.removeEventListener("mouseup",A),"ontouchstart"in window&&(document.removeEventListener("touchmove",k,{passive:!1}),document.removeEventListener("touchend",A))},_=(B,Q)=>{const ie=B.target.closest(".splitpanes__splitter");if(ie){const{left:le,top:ce}=ie.getBoundingClientRect(),{clientX:F,clientY:W}="ontouchstart"in window&&B.touches?B.touches[0]:B;m.value.cursorOffset=r.horizontal?W-ce:F-le}w(),m.value.mouseDown=!0,m.value.activeSplitter=Q},k=B=>{m.value.mouseDown&&(B.preventDefault(),m.value.dragging=!0,requestAnimationFrame(()=>{J(D(B)),He("resize",{event:B},!0)}))},A=B=>{m.value.dragging&&(window.getSelection().removeAllRanges(),He("resized",{event:B},!0)),m.value.mouseDown=!1,m.value.activeSplitter=null,setTimeout(()=>{m.value.dragging=!1,E()},100)},N=(B,Q)=>{"ontouchstart"in window&&(B.preventDefault(),g.value.splitter===Q?(clearTimeout(g.value.timeoutId),g.value.timeoutId=null,I(B,Q),g.value.splitter=null):(g.value.splitter=Q,g.value.timeoutId=setTimeout(()=>g.value.splitter=null,500))),m.value.dragging||He("splitter-click",{event:B,index:Q},!0)},I=(B,Q)=>{if(He("splitter-dblclick",{event:B,index:Q},!0),r.maximizePanes){let ie=0;l.value=l.value.map((le,ce)=>(le.size=ce===Q?le.max:le.min,ce!==Q&&(ie+=le.min),le)),l.value[Q].size-=ie,He("pane-maximize",{event:B,index:Q,pane:l.value[Q]}),He("resized",{event:B,index:Q},!0)}},$=(B,Q)=>{He("pane-click",{event:B,index:a.value[Q].index,pane:a.value[Q]})},D=B=>{const Q=d.value.getBoundingClientRect(),{clientX:ie,clientY:le}="ontouchstart"in window&&B.touches?B.touches[0]:B;return{x:ie-(r.horizontal?0:m.value.cursorOffset)-Q.left,y:le-(r.horizontal?m.value.cursorOffset:0)-Q.top}},U=B=>{B=B[r.horizontal?"y":"x"];const Q=d.value[r.horizontal?"clientHeight":"clientWidth"];return r.rtl&&!r.horizontal&&(B=Q-B),B*100/Q},J=B=>{const Q=m.value.activeSplitter;let ie={prevPanesSize:X(Q),nextPanesSize:V(Q),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(r.pushOtherPanes?0:ie.prevPanesSize),ce=100-(r.pushOtherPanes?0:ie.nextPanesSize),F=Math.max(Math.min(U(B),ce),le);let W=[Q,Q+1],ne=l.value[W[0]]||null,he=l.value[W[1]]||null;const pe=ne.max<100&&F>=ne.max+ie.prevPanesSize,ge=he.max<100&&F<=100-(he.max+V(Q+1));if(pe||ge){pe?(ne.size=ne.max,he.size=Math.max(100-ne.max-ie.prevPanesSize-ie.nextPanesSize,0)):(ne.size=Math.max(100-he.max-ie.prevPanesSize-V(Q+1),0),he.size=he.max);return}if(r.pushOtherPanes){const Ae=ee(ie,F);if(!Ae)return;({sums:ie,panesToResize:W}=Ae),ne=l.value[W[0]]||null,he=l.value[W[1]]||null}ne!==null&&(ne.size=Math.min(Math.max(F-ie.prevPanesSize-ie.prevReachedMinPanes,ne.min),ne.max)),he!==null&&(he.size=Math.min(Math.max(100-F-ie.nextPanesSize-ie.nextReachedMinPanes,he.min),he.max))},ee=(B,Q)=>{const ie=m.value.activeSplitter,le=[ie,ie+1];return Q<B.prevPanesSize+l.value[le[0]].min&&(le[0]=q(ie).index,B.prevReachedMinPanes=0,le[0]<ie&&l.value.forEach((ce,F)=>{F>le[0]&&F<=ie&&(ce.size=ce.min,B.prevReachedMinPanes+=ce.min)}),B.prevPanesSize=X(le[0]),le[0]===void 0)?(B.prevReachedMinPanes=0,l.value[0].size=l.value[0].min,l.value.forEach((ce,F)=>{F>0&&F<=ie&&(ce.size=ce.min,B.prevReachedMinPanes+=ce.min)}),l.value[le[1]].size=100-B.prevReachedMinPanes-l.value[0].min-B.prevPanesSize-B.nextPanesSize,null):Q>100-B.nextPanesSize-l.value[le[1]].min&&(le[1]=P(ie).index,B.nextReachedMinPanes=0,le[1]>ie+1&&l.value.forEach((ce,F)=>{F>ie&&F<le[1]&&(ce.size=ce.min,B.nextReachedMinPanes+=ce.min)}),B.nextPanesSize=V(le[1]-1),le[1]===void 0)?(B.nextReachedMinPanes=0,l.value.forEach((ce,F)=>{F<f.value-1&&F>=ie+1&&(ce.size=ce.min,B.nextReachedMinPanes+=ce.min)}),l.value[le[0]].size=100-B.prevPanesSize-V(le[0]-1),null):{sums:B,panesToResize:le}},X=B=>l.value.reduce((Q,ie,le)=>Q+(le<B?ie.size:0),0),V=B=>l.value.reduce((Q,ie,le)=>Q+(le>B+1?ie.size:0),0),q=B=>[...l.value].reverse().find(Q=>Q.index<B&&Q.size>Q.min)||{},P=B=>l.value.find(Q=>Q.index>B+1&&Q.size>Q.min)||{},L=()=>{var B;const Q=Array.from(((B=d.value)==null?void 0:B.children)||[]);for(const ie of Q){const le=ie.classList.contains("splitpanes__pane"),ce=ie.classList.contains("splitpanes__splitter");!le&&!ce&&(ie.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},T=(B,Q,ie=!1)=>{const le=B-1,ce=document.createElement("div");ce.classList.add("splitpanes__splitter"),ie||(ce.onmousedown=F=>_(F,le),typeof window<"u"&&"ontouchstart"in window&&(ce.ontouchstart=F=>_(F,le)),ce.onclick=F=>N(F,le+1)),ce.ondblclick=F=>I(F,le+1),Q.parentNode.insertBefore(ce,Q)},S=B=>{B.onmousedown=void 0,B.onclick=void 0,B.ondblclick=void 0,B.remove()},R=()=>{var B;const Q=Array.from(((B=d.value)==null?void 0:B.children)||[]);for(const le of Q)le.className.includes("splitpanes__splitter")&&S(le);let ie=0;for(const le of Q)le.className.includes("splitpanes__pane")&&(!ie&&r.firstSplitter?T(ie,le,!0):ie&&T(ie,le),ie++)},z=({uid:B,...Q})=>{const ie=a.value[B];for(const[le,ce]of Object.entries(Q))ie[le]=ce},ae=B=>{var Q;let ie=-1;Array.from(((Q=d.value)==null?void 0:Q.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&ie++,le.isSameNode(B.el))),l.value.splice(ie,0,{...B,index:ie}),l.value.forEach((le,ce)=>le.index=ce),p.value&&Mt(()=>{R(),_e({addedPane:l.value[ie]}),He("pane-add",{pane:l.value[ie]})})},ve=B=>{const Q=l.value.findIndex(le=>le.id===B);l.value[Q].el=null;const ie=l.value.splice(Q,1)[0];l.value.forEach((le,ce)=>le.index=ce),Mt(()=>{R(),He("pane-remove",{pane:ie}),_e({removedPane:{...ie}})})},_e=(B={})=>{!B.addedPane&&!B.removedPane?Me():l.value.some(Q=>Q.givenSize!==null||Q.min||Q.max<100)?Ke(B):je(),p.value&&He("resized")},je=()=>{const B=100/f.value;let Q=0;const ie=[],le=[];for(const ce of l.value)ce.size=Math.max(Math.min(B,ce.max),ce.min),Q-=ce.size,ce.size>=ce.max&&ie.push(ce.id),ce.size<=ce.min&&le.push(ce.id);Q>.1&&qe(Q,ie,le)},Me=()=>{let B=100;const Q=[],ie=[];let le=0;for(const F of l.value)B-=F.size,F.givenSize!==null&&le++,F.size>=F.max&&Q.push(F.id),F.size<=F.min&&ie.push(F.id);let ce=100;if(B>.1){for(const F of l.value)F.givenSize===null&&(F.size=Math.max(Math.min(B/(f.value-le),F.max),F.min)),ce-=F.size;ce>.1&&qe(ce,Q,ie)}},Ke=({addedPane:B,removedPane:Q}={})=>{let ie=100/f.value,le=0;const ce=[],F=[];(B?.givenSize??null)!==null&&(ie=(100-B.givenSize)/(f.value-1));for(const W of l.value)le-=W.size,W.size>=W.max&&ce.push(W.id),W.size<=W.min&&F.push(W.id);if(!(Math.abs(le)<.1)){for(const W of l.value)B?.givenSize!==null&&B?.id===W.id||(W.size=Math.max(Math.min(ie,W.max),W.min)),le-=W.size,W.size>=W.max&&ce.push(W.id),W.size<=W.min&&F.push(W.id);le>.1&&qe(le,ce,F)}},qe=(B,Q,ie)=>{let le;B>0?le=B/(f.value-Q.length):le=B/(f.value-ie.length),l.value.forEach((ce,F)=>{if(B>0&&!Q.includes(ce.id)){const W=Math.max(Math.min(ce.size+le,ce.max),ce.min),ne=W-ce.size;B-=ne,ce.size=W}else if(!ie.includes(ce.id)){const W=Math.max(Math.min(ce.size+le,ce.max),ce.min),ne=W-ce.size;B-=ne,ce.size=W}}),Math.abs(B)>.1&&Mt(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},He=(B,Q=void 0,ie=!1)=>{const le=Q?.index??m.value.activeSplitter??null;n(B,{...Q,...le!==null&&{index:le},...ie&&le!==null&&{prevPane:l.value[le-(r.firstSplitter?1:0)],nextPane:l.value[le+(r.firstSplitter?0:1)]},panes:l.value.map(ce=>({min:ce.min,max:ce.max,size:ce.size}))})};ct(()=>r.firstSplitter,()=>R()),ki(()=>{L(),R(),_e(),He("ready"),p.value=!0}),Dc(()=>p.value=!1);const Re=()=>{var B;return zc("div",{ref:d,class:y.value},(B=o.default)==null?void 0:B.call(o))};return Er("panes",l),Er("indexedPanes",a),Er("horizontal",we(()=>r.horizontal)),Er("requestUpdate",z),Er("onPaneAdd",ae),Er("onPaneRemove",ve),Er("onPaneClick",$),(B,Q)=>(Z(),We(Nf(Re)))}},Eo={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const n=e,r=kn("requestUpdate"),o=kn("onPaneAdd"),l=kn("horizontal"),a=kn("onPaneRemove"),f=kn("onPaneClick"),d=(t=ei())==null?void 0:t.uid,p=kn("indexedPanes"),m=we(()=>p.value[d]),g=Ve(null),y=we(()=>{const k=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(k,E.value),w.value)}),w=we(()=>{const k=parseFloat(n.minSize);return isNaN(k)?0:k}),E=we(()=>{const k=parseFloat(n.maxSize);return isNaN(k)?100:k}),_=we(()=>{var k;return`${l.value?"height":"width"}: ${(k=m.value)==null?void 0:k.size}%`});return ct(()=>y.value,k=>r({uid:d,size:k})),ct(()=>w.value,k=>r({uid:d,min:k})),ct(()=>E.value,k=>r({uid:d,max:k})),ki(()=>{o({id:d,el:g.value,min:w.value,max:E.value,givenSize:n.size===void 0?null:y.value,size:y.value})}),Dc(()=>a(d)),(k,A)=>(Z(),fe("div",{ref_key:"paneEl",ref:g,class:"splitpanes__pane",onClick:A[0]||(A[0]=N=>j(f)(N,k._.uid)),style:Ut(_.value)},[Wt(k.$slots,"default")],4))}},pr=Ve([414,896]);ct([pr],()=>{document.body.style.setProperty("--viewport-width",`${pr.value[0]}px`),document.body.style.setProperty("--viewport-height",`${pr.value[1]}px`)},{immediate:!0,flush:"sync"});var zb={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]};function Eg(e){return String(e)}Eg.open="";Eg.close="";function pL(){let e=typeof process<"u"?process:void 0,t=e?.env||{},n=t.FORCE_TTY!=="false",r=e?.argv||[];return!("NO_COLOR"in t||r.includes("--no-color"))&&("FORCE_COLOR"in t||r.includes("--color")||e?.platform==="win32"||n&&t.TERM!=="dumb"||"CI"in t)||typeof window<"u"&&!!window.chrome}function mL({force:e}={}){let t=e||pL(),n=(a,f,d,p)=>{let m="",g=0;do m+=a.substring(g,p)+d,g=p+f.length,p=a.indexOf(f,g);while(~p);return m+a.substring(g)},r=(a,f,d=a)=>{let p=m=>{let g=String(m),y=g.indexOf(f,a.length);return~y?a+n(g,f,d,y)+f:a+g+f};return p.open=a,p.close=f,p},o={isColorSupported:t},l=a=>`\x1B[${a}m`;for(let a in zb){let f=zb[a];o[a]=t?r(l(f[0]),l(f[1]),f[2]):Eg}return o}var gL=mL(),vL=gL;function w_(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}function yL(e,t){const n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(const o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&r.push(o);return r}function Id(e,t,n,r,o,l,a=": ",f){let d="",p=0,m=e.next();if(!m.done){d+=t.spacingOuter;const g=n+t.indent;for(;!m.done;){if(d+=g,p++===t.maxWidth){d+=typeof f=="number"?`…(${f-p+1})`:"…";break}const y=l(m.value[0],t,g,r,o),w=l(m.value[1],t,g,r,o);d+=y+a+w,m=e.next(),m.done?t.min||(d+=","):d+=`,${t.spacingInner}`}d+=t.spacingOuter+n}return d}function Ag(e,t,n,r,o,l,a){let f="",d=0,p=e.next();if(!p.done){f+=t.spacingOuter;const m=n+t.indent;for(;!p.done;){if(f+=m,d++===t.maxWidth){f+=typeof a=="number"?`…(${a-d+1})`:"…";break}f+=l(p.value,t,m,r,o),p=e.next(),p.done?t.min||(f+=","):f+=`,${t.spacingInner}`}f+=t.spacingOuter+n}return f}function jf(e,t,n,r,o,l){let a="";e=e instanceof ArrayBuffer?new DataView(e):e;const f=p=>p instanceof DataView,d=f(e)?e.byteLength:e.length;if(d>0){a+=t.spacingOuter;const p=n+t.indent;for(let m=0;m<d;m++){if(a+=p,m===t.maxWidth){a+=`…(${d-m})`;break}(f(e)||m in e)&&(a+=l(f(e)?e.getInt8(m):e[m],t,p,r,o)),m<d-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+n}return a}function Mg(e,t,n,r,o,l,a=t.compareKeys){let f="";const d=yL(e,a);if(d.length>0){f+=t.spacingOuter;const p=n+t.indent;for(let m=0;m<d.length;m++){if(f+=p,m===t.maxWidth){f+=`…(${d.length-m})`;break}const g=d[m],y=!t.quoteKeys&&wL(g)?g:l(g,t,p,r,o),w=l(e[g],t,p,r,o);f+=`${y}: ${w}`,m<d.length-1?f+=`,${t.spacingInner}`:t.min||(f+=",")}f+=t.spacingOuter+n}return f}const bL=/^[a-z_]\w*$/i;function wL(e){return typeof e=="string"&&e!=="__proto__"&&bL.test(e)}const xL=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Du=" ",SL=(e,t,n,r,o,l)=>{const a=e.toString();if(a==="ArrayContaining"||a==="ArrayNotContaining")return++r>t.maxDepth?`[${a}]`:`${a+Du}[${jf(e.sample,t,n,r,o,l)}]`;if(a==="ObjectContaining"||a==="ObjectNotContaining")return++r>t.maxDepth?`[${a}]`:`${a+Du}{${Mg(e.sample,t,n,r,o,l)}}`;if(a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining")return a+Du+l(e.sample,t,n,r,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},_L=e=>e&&e.$$typeof===xL,kL={serialize:SL,test:_L},TL=" ",x_=new Set(["DOMStringMap","NamedNodeMap"]),CL=/^(?:HTML\w*Collection|NodeList)$/;function EL(e){return x_.has(e)||CL.test(e)}const AL=e=>e&&e.constructor&&!!e.constructor.name&&EL(e.constructor.name);function ML(e){return e.constructor.name==="NamedNodeMap"}const $L=(e,t,n,r,o,l)=>{const a=e.constructor.name;return++r>t.maxDepth?`[${a}]`:(t.min?"":a+TL)+(x_.has(a)?`{${Mg(ML(e)?[...e].reduce((f,d)=>(f[d.name]=d.value,f),{}):{...e},t,n,r,o,l)}}`:`[${jf([...e],t,n,r,o,l)}]`)},NL={serialize:$L,test:AL};function S_(e){return e.replaceAll("<","<").replaceAll(">",">")}function $g(e,t,n,r,o,l,a){const f=r+n.indent,d=n.colors;return e.map(p=>{const m=t[p];if(typeof m=="string"&&m[0]==="_"&&m.startsWith("__vitest_")&&m.match(/__vitest_\d+__/))return"";let g=a(m,n,f,o,l);return typeof m!="string"&&(g.includes(`
|
|
18
|
-
`)&&(g=n.spacingOuter+f+g+n.spacingOuter+r),g=`{${g}}`),`${n.spacingInner+r+d.prop.open+p+d.prop.close}=${d.value.open}${g}${d.value.close}`}).join("")}function Dd(e,t,n,r,o,l){return e.map(a=>t.spacingOuter+n+(typeof a=="string"?__(a,t):l(a,t,n,r,o))).join("")}function OL(e,t,n,r,o,l){return t.printShadowRoot===!1?"":[`${t.spacingOuter+n}#shadow-root`,Dd(e,t,n+t.indent,r,o,l)].join("")}function __(e,t){const n=t.colors.content;return n.open+S_(e)+n.close}function LL(e,t){const n=t.colors.comment;return`${n.open}<!--${S_(e)}-->${n.close}`}function Ng(e,t,n,r,o){const l=r.colors.tag;return`${l.open}<${e}${t&&l.close+t+r.spacingOuter+o+l.open}${n?`>${l.close}${n}${r.spacingOuter}${o}${l.open}</${e}`:`${t&&!r.min?"":" "}/`}>${l.close}`}function Og(e,t){const n=t.colors.tag;return`${n.open}<${e}${n.close} …${n.open} />${n.close}`}const RL=1,Lg=3,k_=8,T_=11,PL=/^(?:(?:HTML|SVG)\w*)?Element$/;function IL(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function DL(e){const t=e.constructor.name,{nodeType:n,tagName:r}=e,o=typeof r=="string"&&r.includes("-")||IL(e);return n===RL&&(PL.test(t)||o)||n===Lg&&t==="Text"||n===k_&&t==="Comment"||n===T_&&t==="DocumentFragment"}const C_=e=>e?.constructor?.name&&DL(e);function FL(e){return e.nodeType===Lg}function zL(e){return e.nodeType===k_}function Fu(e){return e.nodeType===T_}function Bb(e,t){let n=e.filter(r=>r.nodeType===Lg?(r.data||"").trim().length>0:!0);return t&&(n=n.filter(t)),n}function E_(e,t,n,r,o,l,a){if(FL(e))return __(e.data,t);if(zL(e))return LL(e.data,t);const f=Fu(e)?"DocumentFragment":e.tagName.toLowerCase();if(++r>t.maxDepth)return Og(f,t);const d=Array.prototype.slice.call(e.childNodes||e.children),p=Fu(e)||!e.shadowRoot?[]:Array.prototype.slice.call(e.shadowRoot.children),m=a?Bb(d,a):d,g=a?Bb(p,a):p;return Ng(f,$g(Fu(e)?[]:Array.from(e.attributes,y=>y.name).sort(),Fu(e)?{}:[...e.attributes].reduce((y,w)=>(y[w.name]=w.value,y),{}),t,n+t.indent,r,o,l),(g.length>0?OL(g,t,n+t.indent,r,o,l):"")+Dd(m,t,n+t.indent,r,o,l),t,n)}const BL=(e,t,n,r,o,l)=>E_(e,t,n,r,o,l);function HL(e){return{test:C_,serialize:(t,n,r,o,l,a)=>E_(t,n,r,o,l,a,e)}}const jL={serialize:BL,test:C_},WL="@@__IMMUTABLE_ITERABLE__@@",UL="@@__IMMUTABLE_LIST__@@",qL="@@__IMMUTABLE_KEYED__@@",VL="@@__IMMUTABLE_MAP__@@",Hb="@@__IMMUTABLE_ORDERED__@@",GL="@@__IMMUTABLE_RECORD__@@",KL="@@__IMMUTABLE_SEQ__@@",YL="@@__IMMUTABLE_SET__@@",XL="@@__IMMUTABLE_STACK__@@",Pl=e=>`Immutable.${e}`,Fd=e=>`[${e}]`,bc=" ",jb="…";function JL(e,t,n,r,o,l,a){return++r>t.maxDepth?Fd(Pl(a)):`${Pl(a)+bc}{${Id(e.entries(),t,n,r,o,l)}}`}function ZL(e){let t=0;return{next(){if(t<e._keys.length){const n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function QL(e,t,n,r,o,l){const a=Pl(e._name||"Record");return++r>t.maxDepth?Fd(a):`${a+bc}{${Id(ZL(e),t,n,r,o,l)}}`}function eR(e,t,n,r,o,l){const a=Pl("Seq");return++r>t.maxDepth?Fd(a):e[qL]?`${a+bc}{${e._iter||e._object?Id(e.entries(),t,n,r,o,l):jb}}`:`${a+bc}[${e._iter||e._array||e._collection||e._iterable?Ag(e.values(),t,n,r,o,l):jb}]`}function fp(e,t,n,r,o,l,a){return++r>t.maxDepth?Fd(Pl(a)):`${Pl(a)+bc}[${Ag(e.values(),t,n,r,o,l)}]`}const tR=(e,t,n,r,o,l)=>e[VL]?JL(e,t,n,r,o,l,e[Hb]?"OrderedMap":"Map"):e[UL]?fp(e,t,n,r,o,l,"List"):e[YL]?fp(e,t,n,r,o,l,e[Hb]?"OrderedSet":"Set"):e[XL]?fp(e,t,n,r,o,l,"Stack"):e[KL]?eR(e,t,n,r,o,l):QL(e,t,n,r,o,l),nR=e=>e&&(e[WL]===!0||e[GL]===!0),rR={serialize:tR,test:nR};function A_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dp={exports:{}},At={};/**
|
|
19
|
-
* @license React
|
|
20
|
-
* react-is.production.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var Wb;function iR(){if(Wb)return At;Wb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),a=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function E(_){if(typeof _=="object"&&_!==null){var k=_.$$typeof;switch(k){case e:switch(_=_.type,_){case n:case o:case r:case d:case p:case y:return _;default:switch(_=_&&_.$$typeof,_){case a:case f:case g:case m:return _;case l:return _;default:return k}}case t:return k}}}return At.ContextConsumer=l,At.ContextProvider=a,At.Element=e,At.ForwardRef=f,At.Fragment=n,At.Lazy=g,At.Memo=m,At.Portal=t,At.Profiler=o,At.StrictMode=r,At.Suspense=d,At.SuspenseList=p,At.isContextConsumer=function(_){return E(_)===l},At.isContextProvider=function(_){return E(_)===a},At.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===e},At.isForwardRef=function(_){return E(_)===f},At.isFragment=function(_){return E(_)===n},At.isLazy=function(_){return E(_)===g},At.isMemo=function(_){return E(_)===m},At.isPortal=function(_){return E(_)===t},At.isProfiler=function(_){return E(_)===o},At.isStrictMode=function(_){return E(_)===r},At.isSuspense=function(_){return E(_)===d},At.isSuspenseList=function(_){return E(_)===p},At.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===o||_===r||_===d||_===p||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===m||_.$$typeof===a||_.$$typeof===l||_.$$typeof===f||_.$$typeof===w||_.getModuleId!==void 0)},At.typeOf=E,At}var Ub;function oR(){return Ub||(Ub=1,dp.exports=iR()),dp.exports}var M_=oR(),sR=A_(M_),lR=w_({__proto__:null,default:sR},[M_]),hp={exports:{}},_t={};/**
|
|
27
|
-
* @license React
|
|
28
|
-
* react-is.production.min.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var qb;function aR(){if(qb)return _t;qb=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),a=Symbol.for("react.context"),f=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function _(k){if(typeof k=="object"&&k!==null){var A=k.$$typeof;switch(A){case e:switch(k=k.type,k){case n:case o:case r:case p:case m:return k;default:switch(k=k&&k.$$typeof,k){case f:case a:case d:case y:case g:case l:return k;default:return A}}case t:return A}}}return _t.ContextConsumer=a,_t.ContextProvider=l,_t.Element=e,_t.ForwardRef=d,_t.Fragment=n,_t.Lazy=y,_t.Memo=g,_t.Portal=t,_t.Profiler=o,_t.StrictMode=r,_t.Suspense=p,_t.SuspenseList=m,_t.isAsyncMode=function(){return!1},_t.isConcurrentMode=function(){return!1},_t.isContextConsumer=function(k){return _(k)===a},_t.isContextProvider=function(k){return _(k)===l},_t.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===e},_t.isForwardRef=function(k){return _(k)===d},_t.isFragment=function(k){return _(k)===n},_t.isLazy=function(k){return _(k)===y},_t.isMemo=function(k){return _(k)===g},_t.isPortal=function(k){return _(k)===t},_t.isProfiler=function(k){return _(k)===o},_t.isStrictMode=function(k){return _(k)===r},_t.isSuspense=function(k){return _(k)===p},_t.isSuspenseList=function(k){return _(k)===m},_t.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===n||k===o||k===r||k===p||k===m||k===w||typeof k=="object"&&k!==null&&(k.$$typeof===y||k.$$typeof===g||k.$$typeof===l||k.$$typeof===a||k.$$typeof===d||k.$$typeof===E||k.getModuleId!==void 0)},_t.typeOf=_,_t}var Vb;function cR(){return Vb||(Vb=1,hp.exports=aR()),hp.exports}var $_=cR(),uR=A_($_),fR=w_({__proto__:null,default:uR},[$_]);const dR=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],hs=Object.fromEntries(dR.map(e=>[e,t=>fR[e](t)||lR[e](t)]));function N_(e,t=[]){if(Array.isArray(e))for(const n of e)N_(n,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function Gb(e){const t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(hs.isFragment(e))return"React.Fragment";if(hs.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(hs.isContextProvider(e))return"Context.Provider";if(hs.isContextConsumer(e))return"Context.Consumer";if(hs.isForwardRef(e)){if(t.displayName)return t.displayName;const n=t.render.displayName||t.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if(hs.isMemo(e)){const n=t.displayName||t.type.displayName||t.type.name||"";return n===""?"Memo":`Memo(${n})`}}return"UNDEFINED"}function hR(e){const{props:t}=e;return Object.keys(t).filter(n=>n!=="children"&&t[n]!==void 0).sort()}const pR=(e,t,n,r,o,l)=>++r>t.maxDepth?Og(Gb(e),t):Ng(Gb(e),$g(hR(e),e.props,t,n+t.indent,r,o,l),Dd(N_(e.props.children),t,n+t.indent,r,o,l),t,n),mR=e=>e!=null&&hs.isElement(e),gR={serialize:pR,test:mR},vR=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function yR(e){const{props:t}=e;return t?Object.keys(t).filter(n=>t[n]!==void 0).sort():[]}const bR=(e,t,n,r,o,l)=>++r>t.maxDepth?Og(e.type,t):Ng(e.type,e.props?$g(yR(e),e.props,t,n+t.indent,r,o,l):"",e.children?Dd(e.children,t,n+t.indent,r,o,l):"",t,n),wR=e=>e&&e.$$typeof===vR,xR={serialize:bR,test:wR},O_=Object.prototype.toString,SR=Date.prototype.toISOString,_R=Error.prototype.toString,Kb=RegExp.prototype.toString;function pp(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function kR(e){return typeof window<"u"&&e===window}const TR=/^Symbol\((.*)\)(.*)$/,CR=/\n/g;class L_ extends Error{constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name}}function ER(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function AR(e){return Object.is(e,-0)?"-0":String(e)}function MR(e){return`${e}n`}function Yb(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Xb(e){return String(e).replace(TR,"Symbol($1)")}function Jb(e){return`[${_R.call(e)}]`}function R_(e,t,n,r,o){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";const l=typeof e;if(l==="number")return AR(e);if(l==="bigint")return MR(e);if(l==="string"){const f=o?"'":'"';if(r){const d=o?/['\\]/g:/["\\]/g;return`${f}${e.replaceAll(d,"\\$&")}${f}`}return`${f}${e}${f}`}if(l==="function")return Yb(e,t);if(l==="symbol")return Xb(e);const a=O_.call(e);return a==="[object WeakMap]"?"WeakMap {}":a==="[object WeakSet]"?"WeakSet {}":a==="[object Function]"||a==="[object GeneratorFunction]"?Yb(e,t):a==="[object Symbol]"?Xb(e):a==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":SR.call(e):a==="[object Error]"?Jb(e):a==="[object RegExp]"?n?Kb.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Kb.call(e):e instanceof Error?Jb(e):null}function P_(e,t,n,r,o,l){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);const a=++r>t.maxDepth,f=t.min;if(t.callToJSON&&!a&&e.toJSON&&typeof e.toJSON=="function"&&!l)return Ao(e.toJSON(),t,n,r,o,!0);const d=O_.call(e);return d==="[object Arguments]"?a?"[Arguments]":`${f?"":"Arguments "}[${jf(e,t,n,r,o,Ao)}]`:ER(d)?a?`[${e.constructor.name}]`:`${!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${jf(e,t,n,r,o,Ao)}]`:d==="[object Map]"?a?"[Map]":`Map {${Id(e.entries(),t,n,r,o,Ao," => ",e.size)}}`:d==="[object Set]"?a?"[Set]":`Set {${Ag(e.values(),t,n,r,o,Ao,e.size)}}`:a||kR(e)?`[${pp(e)}]`:`${!t.printBasicPrototype&&pp(e)==="Object"?"":`${pp(e)} `}{${Mg(e,t,n,r,o,Ao)}}`}function $R(e){return e.serialize!=null}function I_(e,t,n,r,o,l){let a;try{a=$R(e)?e.serialize(t,n,r,o,l,Ao):e.print(t,f=>Ao(f,n,r,o,l),f=>{const d=r+n.indent;return d+f.replaceAll(CR,`
|
|
35
|
-
${d}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(f){throw new L_(f.message,f.stack)}if(typeof a!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof a}".`);return a}function D_(e,t){for(const n of e)try{if(n.test(t))return n}catch(r){throw new L_(r.message,r.stack)}return null}function Ao(e,t,n,r,o,l){let a;const f=D_(t.plugins,e);if(f!==null)a=I_(f,e,t,n,r,o);else{const d=R_(e,t.printFunctionName,t.escapeRegex,t.escapeString,t.singleQuote);d!==null?a=d:a=P_(e,t,n,r,o,l)}return t._outputLengthPerDepth[r]??=0,t._outputLengthPerDepth[r]+=a.length,t._outputLengthPerDepth[r]>t.maxOutputLength&&(t.maxDepth=0),a}const Rg={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},F_=Object.keys(Rg),rr={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxOutputLength:1e6,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,printShadowRoot:!0,theme:Rg,singleQuote:!1,quoteKeys:!0,spacingInner:`
|
|
36
|
-
`,spacingOuter:`
|
|
37
|
-
`};function NR(e){for(const t of Object.keys(e))if(!Object.hasOwn(rr,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function OR(){return F_.reduce((e,t)=>{const n=Rg[t],r=n&&vL[n];if(r&&typeof r.close=="string"&&typeof r.open=="string")e[t]=r;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function LR(){return F_.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function RR(e){return e?.printFunctionName??rr.printFunctionName}function PR(e){return e?.escapeRegex??rr.escapeRegex}function IR(e){return e?.escapeString??rr.escapeString}function DR(e){return{callToJSON:e?.callToJSON??rr.callToJSON,colors:e?.highlight?OR():LR(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:rr.compareKeys,escapeRegex:PR(e),escapeString:IR(e),indent:e?.min?"":FR(e?.indent??rr.indent),maxDepth:e?.maxDepth??rr.maxDepth,maxWidth:e?.maxWidth??rr.maxWidth,min:e?.min??rr.min,plugins:e?.plugins??rr.plugins,printBasicPrototype:e?.printBasicPrototype??!e?.min,printFunctionName:RR(e),printShadowRoot:e?.printShadowRoot??!0,spacingInner:e?.spacingInner??(e?.min?" ":`
|
|
38
|
-
`),spacingOuter:e?.spacingOuter??(e?.min?"":`
|
|
39
|
-
`),singleQuote:e?.singleQuote??rr.singleQuote,quoteKeys:e?.quoteKeys??rr.quoteKeys,maxOutputLength:e?.maxOutputLength??rr.maxOutputLength,_outputLengthPerDepth:[]}}function FR(e){return Array.from({length:e+1}).join(" ")}function Zb(e,t){t&&NR(t);const n=DR(t),r=D_(n.plugins,e);if(r!==null)return I_(r,e,n,"",0,[]);const o=R_(e,n.printFunctionName,n.escapeRegex,n.escapeString,n.singleQuote);return o!==null?o:P_(e,n,"",0,[])}const zR={AsymmetricMatcher:kL,DOMCollection:NL,DOMElement:jL,Immutable:rR,ReactElement:gR,ReactTestComponent:xR},{AsymmetricMatcher:z_,DOMCollection:B_,DOMElement:BR,Immutable:H_,ReactElement:j_,ReactTestComponent:W_}=zR,HR=[W_,j_,BR,B_,H_,z_];function Wf(e,t=10,{maxLength:n,filterNode:r,...o}={}){const l=n??1e4;let a;const f=typeof r=="string"?jR(r):r,d=f?[W_,j_,HL(f),B_,H_,z_]:HR;try{a=Zb(e,{maxDepth:t,escapeString:!1,plugins:d,...o})}catch{a=Zb(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:d,...o})}return a.length>=l&&t>1?Wf(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,filterNode:r,...o}):a}function jR(e){return r=>{if(r.nodeType===8)return!1;if(r.nodeType===1&&r.matches)try{return!r.matches(e)}catch{return!0}return!0}}const U_=/%[sdjifoOc%]/g;function WR(e,t={}){const n=f=>q_(f,t);if(typeof e[0]!="string"){const f=[];for(let d=0;d<e.length;d++)f.push(n(e[d]));return f.join(" ")}const r=e.length;let o=1;const l=e[0];let a=String(l).replace(U_,f=>{if(f==="%%")return"%";if(o>=r)return f;switch(f){case"%s":{const d=e[o++];return typeof d=="bigint"?`${d.toString()}n`:typeof d=="number"&&d===0&&1/d<0?"-0":typeof d=="object"&&d!==null?typeof d.toString=="function"&&d.toString!==Object.prototype.toString?d.toString():n(d):String(d)}case"%d":{const d=e[o++];return typeof d=="bigint"?`${d.toString()}n`:typeof d=="symbol"?"NaN":Number(d).toString()}case"%i":{const d=e[o++];return typeof d=="bigint"?`${d.toString()}n`:Number.parseInt(String(d)).toString()}case"%f":return Number.parseFloat(String(e[o++])).toString();case"%o":case"%O":return n(e[o++]);case"%c":return o++,"";case"%j":try{return JSON.stringify(e[o++])}catch(d){const p=d.message;if(p.includes("circular structure")||p.includes("cyclic structures")||p.includes("cyclic object"))return"[Circular]";throw d}default:return f}});for(let f=e[o];o<r;f=e[++o])f===null||typeof f!="object"?a+=` ${typeof f=="symbol"?f.toString():f}`:a+=` ${n(f)}`;return a}function q_(e,t){const{truncate:n,multiline:r,...o}=t??{},l={singleQuote:!0,quoteKeys:!1,min:!0,spacingInner:" ",spacingOuter:" ",printBasicPrototype:!1,compareKeys:null,...r?{min:!1,spacingInner:void 0,spacingOuter:void 0}:{}},a=n??0,f=Wf(e,void 0,{...l,...o,maxLength:a||void 0});if(a===0||f.length<=a)return f;const d=Object.prototype.toString.call(e);if(typeof e=="string"){let p=a-1;return p>0&&V_(f[p-1])&&(p=p-1),`'${f.slice(1,p)}…'`}return d==="[object Array]"||d==="[object Object]"||d==="[object Set]"||d==="[object Map]"?qR(e,a,{...l,...o,maxDepth:1}):Wf(e,void 0,{...l,...o,maxDepth:0})}function UR(e,t){if(e.length<=t)return e;let n=t-1;return V_(e[n-1])&&(n=n-1),`${e.slice(0,n)}…`}function qR(e,t,n){function r(l){return Wf(e,void 0,{...n,maxWidth:l})}const o=VR(0,t,l=>r(l).length<=t);return r(o)}function VR(e,t,n){for(;e+1<t;){const r=Math.floor((e+t)/2);n(r)?e=r:t=r}return e}function V_(e){return e>="\uD800"&&e<="\uDBFF"}function G_(e){return e!=null}function Xl(e,t,n){const r=typeof e;if(!n.includes(r))throw new TypeError(`${t} value must be ${n.join(" or ")}, received "${r}"`)}function GR(e){const t=[];let n="none";for(let r=0;r<e.length;++r)n==="singleline"?e[r]===`
|
|
40
|
-
`&&(n="none"):n==="multiline"?e[r-1]==="*"&&e[r]==="/"&&(n="none"):n==="none"&&(e[r]==="/"&&e[r+1]==="/"?n="singleline":e[r]==="/"&&e[r+1]==="*"?(n="multiline",r+=2):t.push(e[r]));return t.join("")}function Ts(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}function K_(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function Qb(e,t,n=void 0){const r=t.replace(/\[(\d+)\]/g,".$1").split(".");let o=e;for(const l of r)if(o=new Object(o)[l],o===void 0)return n;return o}function ew(){let e=null,t=null;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function KR(e){if(!Number.isNaN(e))return!1;const t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}function tw(e){const t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}function nw(e){return Array.from(new Set(e))}const rw=Symbol("vitest:SAFE_TIMERS");function Y_(){const{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:l,queueMicrotask:a}=globalThis[rw]||globalThis,{nextTick:f}=globalThis[rw]||globalThis.process||{};return{nextTick:f,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:l,queueMicrotask:a}}const YR=/^[A-Za-z]:\//;function XR(e=""){return e&&e.replace(/\\/g,"/").replace(YR,t=>t.toUpperCase())}const JR=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function ZR(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const X_=function(...e){e=e.map(r=>XR(r));let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:ZR();!o||o.length===0||(t=`${o}/${t}`,n=iw(o))}return t=QR(t,!n),n&&!iw(t)?`/${t}`:t.length>0?t:"."};function QR(e,t){let n="",r=0,o=-1,l=0,a=null;for(let f=0;f<=e.length;++f){if(f<e.length)a=e[f];else{if(a==="/")break;a="/"}if(a==="/"){if(!(o===f-1||l===1))if(l===2){if(n.length<2||r!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const d=n.lastIndexOf("/");d===-1?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),o=f,l=0;continue}else if(n.length>0){n="",r=0,o=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",r=2)}else n.length>0?n+=`/${e.slice(o+1,f)}`:n=e.slice(o+1,f),r=f-o-1;o=f,l=0}else a==="."&&l!==-1?++l:l=-1}return n}const iw=function(e){return JR.test(e)};var eP=44,ow="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tP=new Uint8Array(64),J_=new Uint8Array(128);for(let e=0;e<ow.length;e++){const t=ow.charCodeAt(e);tP[e]=t,J_[t]=e}function La(e,t){let n=0,r=0,o=0;do{const a=e.next();o=J_[a],n|=(o&31)<<r,r+=5}while(o&32);const l=n&1;return n>>>=1,l&&(n=-2147483648|-n),t+n}function sw(e,t){return e.pos>=t?!1:e.peek()!==eP}var nP=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function rP(e){const{length:t}=e,n=new nP(e),r=[];let o=0,l=0,a=0,f=0,d=0;do{const p=n.indexOf(";"),m=[];let g=!0,y=0;for(o=0;n.pos<p;){let w;o=La(n,o),o<y&&(g=!1),y=o,sw(n,p)?(l=La(n,l),a=La(n,a),f=La(n,f),sw(n,p)?(d=La(n,d),w=[o,l,a,f,d]):w=[o,l,a,f]):w=[o],m.push(w),n.pos++}g||iP(m),r.push(m),n.pos=p+1}while(n.pos<=t);return r}function iP(e){e.sort(oP)}function oP(e,t){return e[0]-t[0]}var zd=0,sP=1,lP=2,aP=3,cP=4,Uf=!1;function uP(e,t,n,r){for(;n<=r;){const o=n+(r-n>>1),l=e[o][zd]-t;if(l===0)return Uf=!0,o;l<0?n=o+1:r=o-1}return Uf=!1,n-1}function fP(e,t,n){for(let r=n+1;r<e.length&&e[r][zd]===t;n=r++);return n}function dP(e,t,n){for(let r=n-1;r>=0&&e[r][zd]===t;n=r--);return n}function hP(e,t,n,r){const{lastKey:o,lastNeedle:l,lastIndex:a}=n;let f=0,d=e.length-1;if(r===o){if(t===l)return Uf=a!==-1&&e[a][zd]===t,a;t>=l?f=a===-1?0:a:d=a}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=uP(e,t,f,d)}var pP="`line` must be greater than 0 (lines start at line 1)",mP="`column` must be greater than or equal to 0 (columns start at column 0)",lw=-1,gP=1;function vP(e){var t;return(t=e)._decoded||(t._decoded=rP(e._encoded))}function yP(e,t){let{line:n,column:r,bias:o}=t;if(n--,n<0)throw new Error(pP);if(r<0)throw new Error(mP);const l=vP(e);if(n>=l.length)return zu(null,null,null,null);const a=l[n],f=bP(a,e._decodedMemo,n,r,o||gP);if(f===-1)return zu(null,null,null,null);const d=a[f];if(d.length===1)return zu(null,null,null,null);const{names:p,resolvedSources:m}=e;return zu(m[d[sP]],d[lP]+1,d[aP],d.length===5?p[d[cP]]:null)}function zu(e,t,n,r){return{source:e,line:t,column:n,name:r}}function bP(e,t,n,r,o){let l=hP(e,r,t,n);return Uf?l=(o===lw?fP:dP)(e,r,l):o===lw&&l++,l===-1||l===e.length?-1:l}const Pg=/^\s*at .*(?:\S:\d+|\(native\))/m,wP=/^(?:eval@)?(?:\[native code\])?$/,xP=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,"/@id/__x00__vitest/browser",/\/deps\/vitest_/],SP=Date.now().toString().length,_P=new RegExp(`vitest=\\d{${SP}}`);function Z_(e){if(!e.includes(":"))return[e];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return[e];let r=n[1];if(r.startsWith("async ")&&(r=r.slice(6)),r.startsWith("http:")||r.startsWith("https:")){const o=new URL(r);o.searchParams.delete("import"),o.searchParams.delete("browserv"),r=o.pathname+o.hash+o.search}if(r.startsWith("/@fs/")){const o=/^\/@fs\/[a-zA-Z]:\//.test(r);r=r.slice(o?5:4)}return r.includes("vitest=")&&(r=r.replace(_P,"").replace(/[?&]$/,"")),[r,n[2]||void 0,n[3]||void 0]}function Q_(e){let t=e.trim();if(wP.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let n=-1,r="",o;for(let d=0;d<t.length;d++)if(t[d]==="@"){const p=t.slice(d+1);if(p.includes(":")&&p.length>=3){n=d,r=p,o=d>0?t.slice(0,d):void 0;break}}if(n===-1||!r.includes(":")||r.length<3)return null;const[l,a,f]=Z_(r);return!l||!a||!f?null:{file:l,method:o||"",line:Number.parseInt(a),column:Number.parseInt(f)}}function kP(e){const t=e.trim();return Pg.test(t)?ek(t):Q_(t)}function ek(e){let t=e.trim();if(!Pg.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;const[o,l,a]=Z_(r?r[1]:n);let f=r&&n||"",d=o&&["eval","<anonymous>"].includes(o)?void 0:o;return!d||!l||!a?null:(f.startsWith("async ")&&(f=f.slice(6)),d.startsWith("file://")&&(d=d.slice(7)),d=d.startsWith("node:")||d.startsWith("internal:")?d:X_(d),f&&(f=f.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,"$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:f,file:d,line:Number.parseInt(l),column:Number.parseInt(a)})}function TP(e,t={}){const{ignoreStackEntries:n=xP}=t;let r=Pg.test(e)?EP(e):CP(e);const o=r.findLastIndex(l=>l.method.includes("__VITEST_HELPER__"));return o>=0&&(r=r.slice(o+1)),r.map(l=>{t.getUrlId&&(l.file=t.getUrlId(l.file));const a=t.getSourceMap?.(l.file);if(!a||typeof a!="object"||!a.version)return aw(n,l.file)?null:l;const f=new AP(a,l.file),d=$P(f,l);if(!d)return l;const{line:p,column:m,source:g,name:y}=d;let w=g||l.file;return w.match(/\/\w:\//)&&(w=w.slice(1)),aw(n,w)?null:p!=null&&m!=null?{line:p,column:m,file:w,method:y||l.method}:l}).filter(l=>l!=null)}function aw(e,t){return e.some(n=>t.match(n))}function CP(e){return e.split(`
|
|
41
|
-
`).map(t=>Q_(t)).filter(G_)}function EP(e){return e.split(`
|
|
42
|
-
`).map(t=>ek(t)).filter(G_)}class AP{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,n){this.map=t;const{mappings:r,names:o,sources:l}=t;this.version=t.version,this.names=o||[],this._encoded=r||"",this._decodedMemo=MP(),this.url=n,this.resolvedSources=(l||[]).map(a=>X_(n,"..",a||""))}}function MP(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function $P(e,t){const n=yP(e,t);return n.column==null?null:n}const NP=/^[A-Za-z]:\//;function Ig(e=""){return e&&e.replace(/\\/g,"/").replace(NP,t=>t.toUpperCase())}const OP=/^[/\\]{2}/,LP=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,RP=/^[A-Za-z]:$/,cw=/^\/([A-Za-z]:)?$/,PP=function(e){if(e.length===0)return".";e=Ig(e);const t=e.match(OP),n=qf(e),r=e[e.length-1]==="/";return e=tk(e,!n),e.length===0?n?"/":r?"./":".":(r&&(e+="/"),RP.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!qf(e)?`/${e}`:e)},IP=function(...e){let t="";for(const n of e)if(n)if(t.length>0){const r=t[t.length-1]==="/",o=n[0]==="/";r&&o?t+=n.slice(1):t+=r||o?n:`/${n}`}else t+=n;return PP(t)};function DP(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const uw=function(...e){e=e.map(r=>Ig(r));let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:DP();!o||o.length===0||(t=`${o}/${t}`,n=qf(o))}return t=tk(t,!n),n&&!qf(t)?`/${t}`:t.length>0?t:"."};function tk(e,t){let n="",r=0,o=-1,l=0,a=null;for(let f=0;f<=e.length;++f){if(f<e.length)a=e[f];else{if(a==="/")break;a="/"}if(a==="/"){if(!(o===f-1||l===1))if(l===2){if(n.length<2||r!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const d=n.lastIndexOf("/");d===-1?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),o=f,l=0;continue}else if(n.length>0){n="",r=0,o=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",r=2)}else n.length>0?n+=`/${e.slice(o+1,f)}`:n=e.slice(o+1,f),r=f-o-1;o=f,l=0}else a==="."&&l!==-1?++l:l=-1}return n}const qf=function(e){return LP.test(e)},Bd=function(e,t){const n=uw(e).replace(cw,"$1").split("/"),r=uw(t).replace(cw,"$1").split("/");if(r[0][1]===":"&&n[0][1]===":"&&n[0]!==r[0])return r.join("/");const o=[...n];for(const l of o){if(r[0]!==l)break;n.shift(),r.shift()}return[...n.map(()=>".."),...r].join("/")},FP=function(e,t){const n=Ig(e).split("/");let r="";for(let o=n.length-1;o>=0;o--){const l=n[o];if(l){r=l;break}}return t&&r.endsWith(t)?r.slice(0,-t.length):r};class zP extends Error{code="VITEST_PENDING";taskId;constructor(t,n,r){super(t),this.message=t,this.note=r,this.taskId=n.id}}class So extends Error{name="FixtureDependencyError"}class BP extends Error{name="FixtureAccessError"}class fw extends Error{name="FixtureParseError"}const HP=new WeakMap,nk=new WeakMap,rk=new WeakMap;function jP(e,t){HP.set(e,t)}function WP(e,t){nk.set(e,t)}function UP(e){return nk.get(e)}function qP(e,t){rk.set(e,t)}function VP(e){return rk.get(e)}const df=Symbol.for("VITEST_FIXTURE_STACK_TRACE");class pn{_suiteContexts;_overrides=new WeakMap;_registrations;static _definitions=[];static _builtinFixtures=["task","signal","onTestFailed","onTestFinished","skip","annotate"];static _fixtureOptionKeys=["auto","injected","scope"];static _fixtureScopes=["test","file","worker"];static _workerContextSuite={type:"worker"};static clearDefinitions(){pn._definitions.length=0}static getWorkerContexts(){return pn._definitions.map(t=>t.getWorkerContext())}static getFileContexts(t){return pn._definitions.map(n=>n.getFileContext(t))}static isFixtureOptions(t){return K_(t)&&Object.keys(t).some(n=>pn._fixtureOptionKeys.includes(n))}constructor(t){this._registrations=t??new Map,this._suiteContexts=new WeakMap,pn._definitions.push(this)}extend(t,n){const{suite:r}=_i(),o=!r||r.file===r,l=this.parseUserFixtures(t,n,o);return new pn(l)}get(t){let n=t;for(;n;){const r=this._overrides.get(n);if(r)return r;if(n===n.file)break;n=n.suite||n.file}return this._registrations}override(t,n){const{suite:r,file:o}=_i(),l=r||o,a=!r||r.file===r,f=new Map(this.get(l)),d=this.parseUserFixtures(t,n,a,f);a?this._registrations=d:this._overrides.set(l,d)}getFileContext(t){return this._suiteContexts.has(t)||this._suiteContexts.set(t,Object.create(null)),this._suiteContexts.get(t)}getWorkerContext(){return this._suiteContexts.has(pn._workerContextSuite)||this._suiteContexts.set(pn._workerContextSuite,Object.create(null)),this._suiteContexts.get(pn._workerContextSuite)}parseUserFixtures(t,n,r,o=new Map(this._registrations)){const l=[];Object.entries(n).forEach(([a,f])=>{let d,p,m;Array.isArray(f)&&f.length>=2&&pn.isFixtureOptions(f[1])?(m=f[1],d={auto:m.auto??!1,scope:m.scope??"test",injected:m.injected??!1},p=d.injected?t.injectValue?.(a)??f[0]:f[0]):p=f;const g=o.get(a);g&&d?(g.scope!==d.scope&&l.push(new So(`The "${a}" fixture was already registered with a "${d.scope}" scope.`)),g.auto!==d.auto&&l.push(new So(`The "${a}" fixture was already registered as { auto: ${d.auto} }.`))):g?d={auto:g.auto,scope:g.scope,injected:g.injected}:d||(d={auto:!1,injected:!1,scope:"test"}),d.scope&&!pn._fixtureScopes.includes(d.scope)&&l.push(new So(`The "${a}" fixture has unknown scope "${d.scope}".`)),!r&&d.scope!=="test"&&l.push(new So(`The "${a}" fixture cannot be defined with a ${d.scope} scope${!m?.scope&&g?.scope?" (inherited from the base fixture)":""} inside the describe block. Define it at the top level of the file instead.`));const y=wc(p)?Dg(p):new Set,w={name:a,value:p,auto:d.auto??!1,injected:d.injected??!1,scope:d.scope??"test",deps:y,parent:g};wc(p)&&Object.assign(p,{[df]:new Error("STACK_TRACE_ERROR")}),o.set(a,w),w.scope==="worker"&&(t.pool==="vmThreads"||t.pool==="vmForks")&&(w.scope="file")});for(const a of o.values())for(const f of a.deps){if(pn._builtinFixtures.includes(f))continue;const d=o.get(f);if(!d){l.push(new So(`The "${a.name}" fixture depends on unknown fixture "${f}".`));continue}if(f===a.name&&!a.parent){l.push(new So(`The "${a.name}" fixture depends on itself, but does not have a base implementation.`));continue}if(pn._fixtureScopes.indexOf(a.scope)>pn._fixtureScopes.indexOf(d.scope)){l.push(new So(`The ${a.scope} "${a.name}" fixture cannot depend on a ${d.scope} fixture "${d.name}".`));continue}}if(l.length===1)throw l[0];if(l.length>1)throw new AggregateError(l,"Cannot resolve user fixtures. See errors for more information.");return o}}const xl=new WeakMap,mp=new WeakMap;function Hc(e,t){const n=_i(),r=t?.suite||n.suite||n.file;return async o=>{const l=o||t?.context;if(!l)return t?.suiteHook&&XP(e,t.suiteHook,t.stackTraceError),e({});const a=t?.fixtures||UP(l);if(!a)return e(l);const f=a.get(r);if(!f.size)return e(l);const d=[],p=Dg(e);for(const w of f.values())(GP(w,t)||p.has(w.name))&&d.push(w);if(!d.length)return e(l);xl.has(l)||xl.set(l,[]);const m=xl.get(l),g=ok(d,f);if(!g.length)return e(l);if(t?.suiteHook){const w=g.filter(E=>E.scope==="test");if(w.length>0){const E=w.map(A=>`"${A.name}"`).join(", "),_={aroundAll:"aroundEach",beforeAll:"beforeEach",afterAll:"afterEach"},k=new So(`Test-scoped fixtures cannot be used inside ${t.suiteHook} hook. The following fixtures are test-scoped: ${E}. Use { scope: 'file' } or { scope: 'worker' } fixtures instead, or move the logic to ${_[t.suiteHook]} hook.`);throw t.stackTraceError?.stack&&(k.stack=k.message+t.stackTraceError.stack.replace(t.stackTraceError.message,"")),k}}mp.has(l)||mp.set(l,new WeakSet);const y=mp.get(l);for(const w of g)if(w.scope==="test"){if(y.has(w))continue;y.add(w);const E=await KP(w,l,m);l[w.name]=E,m.push(()=>{y.delete(w)})}else{const E=await YP(a,r,w);l[w.name]=E}return e(l)}}function GP(e,t){return!(!e.auto||t?.suiteHook&&e.scope==="test")}function wc(e){return typeof e=="function"}function KP(e,t,n){return wc(e.value)?ik(e.value,e.name,t,n):e.value}const Bu=new WeakMap;async function YP(e,t,n){const r=e.getWorkerContext(),o=e.getFileContext(t.file),l=n.scope==="worker"?r:o;if(!wc(n.value))return l[n.name]=n.value,n.value;if(n.name in l)return l[n.name];if(Bu.has(n))return Bu.get(n);xl.has(l)||xl.set(l,[]);const a=xl.get(l),f=ik(n.value,n.name,n.scope==="file"?{...r,...o}:l,a).then(d=>(l[n.name]=d,Bu.delete(n),d));return Bu.set(n,f),f}async function ik(e,t,n,r){const o=ew(),l=df in e&&e[df]instanceof Error?e[df]:void 0;let a=!1;const f=e(n,async d=>{a=!0,o.resolve(d);const p=ew();r.push(async()=>{p.resolve(),await f}),await p}).then(()=>{if(!a){const d=new Error(`Fixture "${t}" returned without calling "use". Make sure to call "use" in every code path of the fixture function.`);l?.stack&&(d.stack=d.message+l.stack.replace(l.message,"")),o.reject(d)}}).catch(d=>{if(!a){o.reject(d);return}throw d});return o}function ok(e,t,n=new Set,r=[]){return e.forEach(o=>{if(!r.includes(o)){if(!wc(o.value)||!o.deps){r.push(o);return}if(n.has(o))if(o.parent)o=o.parent;else throw new Error(`Circular fixture dependency detected: ${o.name} <- ${[...n].reverse().map(l=>l.name).join(" <- ")}`);n.add(o),ok([...o.deps].map(l=>l===o.name?o.parent:t.get(l)).filter(l=>!!l),t,n,r),r.push(o),n.clear()}}),r}function XP(e,t,n){const r=Dg(e,{sourceError:n,suiteHook:t});if(r.size){const o=new BP(`The ${t} hook uses fixtures "${[...r].join('", "')}", but has no access to context. Did you forget to call it as "test.${t}()" instead of "${t}()"?
|
|
43
|
-
If you used internal "suite" task as the first argument previously, access it in the second argument instead. See https://vitest.dev/guide/test-context#suite-level-hooks`);throw n&&(o.stack=n.stack?.replace(n.message,o.message)),o}}const im=Symbol("$vitest:fixture-props"),om=Symbol("$vitest:fixture-prop-names");function Vf(e,t){Object.defineProperty(e,im,{value:t,enumerable:!1})}function Hu(e,t){return e[om]=t,t}function Dg(e,{sourceError:t,suiteHook:n}={}){if(om in e)return e[om];const{index:r=0,original:o=e}=im in e?e[im]:{};let l=GR(o.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(l)&&(l=l.split(/__async\((?:this|null),/)[1]);const a=l.match(/[^(]*\(([^)]*)/);if(!a)return Hu(e,new Set);const f=dw(a[1]);if(!f.length)return Hu(e,new Set);const d=f[r];if(!d)return Hu(e,new Set);if(!(d[0]==="{"&&d.endsWith("}"))){const y=tw(r+1),w=new fw(`The ${y} argument inside a fixture must use object destructuring pattern, e.g. ({ task } => {}). Instead, received "${d}".${n?` If you used internal "suite" task as the ${y} argument previously, access it in the ${tw(r+2)} argument instead.`:""}`);throw t&&(w.stack=t.stack?.replace(t.message,w.message)),w}const p=d.slice(1,-1).replace(/\s/g,""),m=dw(p).map(y=>y.replace(/:.*|=.*/g,"")),g=m.at(-1);if(g&&g.startsWith("...")){const y=new fw(`Rest parameters are not supported in fixtures, received "${g}".`);throw t&&(y.stack=t.stack?.replace(t.message,y.message)),y}return Hu(e,new Set(m))}function dw(e){const t=[],n=[];let r=0;for(let l=0;l<e.length;l++)if(e[l]==="{"||e[l]==="[")n.push(e[l]==="{"?"}":"]");else if(e[l]===n.at(-1))n.pop();else if(!n.length&&e[l]===","){const a=e.substring(r,l).trim();a&&t.push(a),r=l+1}const o=e.substring(r).trim();return o&&t.push(o),t}const sk=Symbol("kChainableContext");function pi(e){return e?.[sk]}function lk(e,t,n){function r(l){const a=function(...f){return t.apply(l,f)};Object.assign(a,t),Object.defineProperty(a,sk,{value:{withContext:()=>a.bind(l),getFixtures:()=>l.fixtures,setContext:(f,d)=>{l[f]=d},mergeContext:f=>{Object.assign(l,f)}},enumerable:!1});for(const f of e)Object.defineProperty(a,f,{get(){return r({...l,[f]:!0})}});return a}const o=r(n??{});return Object.defineProperty(o,"fn",{value:t,enumerable:!1}),o}function Cs(){return Bg().config.hookTimeout}const ak=Symbol.for("VITEST_CLEANUP_TIMEOUT"),ck=Symbol.for("VITEST_CLEANUP_STACK_TRACE"),uk=Symbol.for("VITEST_AROUND_TIMEOUT"),fk=Symbol.for("VITEST_AROUND_STACK_TRACE");function JP(e,t=Cs()){Xl(e,'"beforeAll" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),r=pi(this);return _i().on("beforeAll",Object.assign(Es(Fg("beforeAll",e,r,n),t,!0,n),{[ak]:t,[ck]:n}))}function ZP(e,t){Xl(e,'"afterAll" callback',["function"]);const n=pi(this),r=new Error("STACK_TRACE_ERROR");return _i().on("afterAll",Es(Fg("afterAll",e,n,r),t??Cs(),!0,r))}function QP(e,t=Cs()){Xl(e,'"beforeEach" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),r=(o,l)=>Hc(e,{suite:l})(o);return _i().on("beforeEach",Object.assign(Es(r,t??Cs(),!0,n,jg),{[ak]:t,[ck]:n}))}function eI(e,t){Xl(e,'"afterEach" callback',["function"]);const n=(r,o)=>Hc(e,{suite:o})(r);return _i().on("afterEach",Es(n,t??Cs(),!0,new Error("STACK_TRACE_ERROR"),jg))}function tI(e,t){Xl(e,'"aroundAll" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),r=t??Cs(),o=pi(this);return _i().on("aroundAll",Object.assign(Fg("aroundAll",e,o,n,1),{[uk]:r,[fk]:n}))}function nI(e,t){Xl(e,'"aroundEach" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),r=t??Cs(),o=(l,a,f)=>{const d=m=>e(l,m,f);return Vf(d,{index:1,original:e}),Hc(d,{suite:f})(a)};return _i().on("aroundEach",Object.assign(o,{[uk]:r,[fk]:n}))}function Fg(e,t,n,r,o=0){return(...l)=>{const a=l.at(-1),f=l.slice(0,-1),d=y=>t(...f,y,a);Vf(d,{index:o,original:t});const p=n?.getFixtures(),m=p?.getFileContext(a.file);return Hc(d,{suiteHook:e,fixtures:p,context:m,stackTraceError:r})()}}function rI(e){let t=0;if(e.length===0)return`${t}`;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t=t&t}return`${t}`}function dk(e,t,n,r,o,l){const a=Bd(t,e),f={id:iI(a,n),name:a,fullName:a,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.assign(Object.create(null),l),projectName:n,file:void 0,pool:r,viteEnvironment:o};return f.file=f,f}function iI(e,t,n){const r=[e,t||"","",""].join("\0");return rI(r)}function hk(e,t){const n=t.split(`
|
|
44
|
-
`).slice(1);for(const r of n){const o=kP(r);if(o&&o.file===e)return o}}function oI(e,t){if(!e.strictTags)return;const n=new Set(e.tags.map(r=>r.name));for(const r of t)if(!n.has(r))throw Gf(e.tags,r)}function Gf(e,t,n="tag"){throw e.length?new Error(`The ${n} "${t}" is not defined in the configuration. Available tags are:
|
|
45
|
-
${e.map(r=>`- ${r.name}${r.description?`: ${r.description}`:""}`).join(`
|
|
46
|
-
`)}`):new Error(`The Vitest config does't define any "tags", cannot apply "${t}" ${n} for this test. See: https://vitest.dev/guide/test-tags`)}function sI(e,t){const n=e.map(r=>lI(r,t));return r=>n.every(o=>o(r))}function lI(e,t){const n=aI(e),r=new cI(n,e),o=mk(r,t);if(r.peek().type!=="EOF")throw new Error(`Invalid tags expression: unexpected "${sm(r.peek())}" in "${e}"`);return l=>cl(o,l)}function sm(e){switch(e.type){case"TAG":return e.value;default:return pk(e.type)}}function aI(e){const t=[];let n=0;for(;n<e.length;){if(e[n]===" "||e[n]===" "){n++;continue}if(e[n]==="("){t.push({type:"LPAREN"}),n++;continue}if(e[n]===")"){t.push({type:"RPAREN"}),n++;continue}if(e[n]==="!"){t.push({type:"NOT"}),n++;continue}if(e.slice(n,n+2)==="&&"){t.push({type:"AND"}),n+=2;continue}if(e.slice(n,n+2)==="||"){t.push({type:"OR"}),n+=2;continue}if(/^and(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:"AND"}),n+=3;continue}if(/^or(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:"OR"}),n+=2;continue}if(/^not\s/i.test(e.slice(n))){t.push({type:"NOT"}),n+=3;continue}let r="";for(;n<e.length&&e[n]!==" "&&e[n]!==" "&&e[n]!=="("&&e[n]!==")"&&e[n]!=="!"&&e[n]!=="&"&&e[n]!=="|";){const o=e.slice(n);if(r===""&&(/^and(?:\s|\)|$)/i.test(o)||/^or(?:\s|\)|$)/i.test(o)||/^not\s/i.test(o)))break;r+=e[n],n++}r&&t.push({type:"TAG",value:r})}return t.push({type:"EOF"}),t}class cI{pos=0;constructor(t,n){this.tokens=t,this.expr=n}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}expect(t){const n=this.next();if(n.type!==t)throw t==="RPAREN"&&n.type==="EOF"?new Error(`Invalid tags expression: missing closing ")" in "${this.expr}"`):new Error(`Invalid tags expression: expected "${pk(t)}" but got "${sm(n)}" in "${this.expr}"`);return n}unexpectedToken(){const t=this.peek();throw t.type==="EOF"?new Error(`Invalid tags expression: unexpected end of expression in "${this.expr}"`):new Error(`Invalid tags expression: unexpected "${sm(t)}" in "${this.expr}"`)}}function pk(e){switch(e){case"TAG":return"tag";case"AND":return"and";case"OR":return"or";case"NOT":return"not";case"LPAREN":return"(";case"RPAREN":return")";case"EOF":return"end of expression"}}function mk(e,t){let n=hw(e,t);for(;e.peek().type==="OR";){e.next();const r=hw(e,t);n={type:"or",left:n,right:r}}return n}function hw(e,t){let n=lm(e,t);for(;e.peek().type==="AND";){e.next();const r=lm(e,t);n={type:"and",left:n,right:r}}return n}function lm(e,t){return e.peek().type==="NOT"?(e.next(),{type:"not",operand:lm(e,t)}):uI(e,t)}function uI(e,t){const n=e.peek();if(n.type==="LPAREN"){e.next();const r=mk(e,t);return e.expect("RPAREN"),r}if(n.type==="TAG"){e.next();const r=n.value,o=dI(r,t);return{type:"tag",value:r,pattern:o}}e.unexpectedToken()}function fI(e){return new RegExp(`^${e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*")}$`)}function dI(e,t){if(e.includes("*")){const n=fI(e);if(!t.some(o=>n.test(o.name)))throw Gf(t,e,"tag pattern");return n}if(!t.length||!t.some(n=>n.name===e))throw Gf(t,e,"tag pattern");return null}function cl(e,t){switch(e.type){case"tag":return e.pattern?t.some(n=>e.pattern.test(n)):t.includes(e.value);case"not":return!cl(e.operand,t);case"and":return cl(e.left,t)&&cl(e.right,t);case"or":return cl(e.left,t)||cl(e.right,t)}}function Il(e){return e.type==="test"}function gk(e){const t=[],n=Ts(e);for(const r of n)if(Il(r))t.push(r);else for(const o of r.tasks)if(Il(o))t.push(o);else{const l=gk(o);for(const a of l)t.push(a)}return t}function zg(e=[]){return Ts(e).flatMap(t=>Il(t)?[t]:[t,...zg(t.tasks)])}function hI(e){const t=[e.name];let n=e;for(;n?.suite;)n=n.suite,n?.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}function ju(e,t=" > "){return e.filter(n=>n!==void 0).join(t)}const dl=yI();Hg(function(e,t,n){_i().test.fn.call(this,Fo(e),t,n)});let Un,vk,pI;function yk(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. One of the following is possible:
|
|
47
|
-
- "vitest" is imported directly without running "vitest" command
|
|
48
|
-
- "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
|
|
49
|
-
- "vitest" is imported inside Vite / Vitest config file
|
|
50
|
-
- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
|
|
51
|
-
`)}function Bg(){return yk(Un,"the runner"),Un}function _i(){const e=qn.currentSuite||vk;return yk(e,"the current suite"),e}function mI(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[],aroundEach:[],aroundAll:[]}}const pw=Number.POSITIVE_INFINITY;function Sl(e,t){if(t!=null&&typeof t=="object")throw new TypeError('Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead.');let n={},r;if(typeof t=="number"?n={timeout:t}:typeof e=="object"&&(n=e),typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");r=e}else typeof t=="function"&&(r=t);return{options:n,handler:r}}function gI(e,t=()=>{},n,r,o){const l=[];let a;g();const f=function(E="",_={}){const k=qn.currentSuite?.suite,N=(k??qn.currentSuite?.file)?.tags||[],I=nw([...N,...Ts(_.tags)]),$=I.map(R=>{const z=Un.config.tags?.find(ae=>ae.name===R);if(!z&&Un.config.strictTags)throw Gf(Un.config.tags,R);return z}).filter(R=>R!=null).sort((R,z)=>(z.priority??pw)-(R.priority??pw)).reduce((R,z)=>{const{name:ae,description:ve,priority:_e,meta:je,...Me}=z;return Object.assign(R,Me),je&&(R.meta=Object.assign(R.meta??Object.create(null),je)),R},{}),D=_.meta;_={...qn.currentSuite?.options,...$,..._};const J=_.timeout??Un.config.testTimeout,ee=k?.meta,X=$.meta,V=Object.create(null);X&&Object.assign(V,X),ee&&Object.assign(V,ee),D&&Object.assign(V,D);const q={id:"",name:E,fullName:ju([k?.fullName??qn.currentSuite?.file?.fullName,E]),fullTestName:ju([k?.fullTestName,E]),suite:k,each:_.each,fails:_.fails,context:void 0,type:"test",file:k?.file??qn.currentSuite?.file,timeout:J,retry:_.retry??Un.config.retry,repeats:_.repeats,mode:_.only?"only":_.skip?"skip":_.todo?"todo":"run",meta:V,annotations:[],artifacts:[],tags:I},P=_.handler;q.mode==="run"&&!P&&(q.mode="todo"),(_.concurrent??Un.config.sequence.concurrent)&&(q.concurrent=!0),q.shuffle=o?.shuffle;const L=TI(q,Un);Object.defineProperty(q,"context",{value:L,enumerable:!1}),WP(L,_.fixtures??new pn);const T=Error.stackTraceLimit;Error.stackTraceLimit=10;const S=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=T,P&&jP(q,Es(_I(vI(Hc(P,{context:L}),q),q.context.signal),J,!1,S,(R,z)=>jg([L],z))),Un.config.includeTaskLocation){const R=S.stack,z=hk(pI,R);z&&(q.location={line:z.line,column:z.column})}return l.push(q),q},d=Hg(function(E,_,k){const{options:A,handler:N}=Sl(_,k),I=this.concurrent??A?.concurrent;I!=null&&(A.concurrent=I);const $=f(Fo(E),{...this,...A,handler:N});$.type="test"}),p={type:"collector",name:e,mode:n,suite:a,options:o,test:d,file:a.file,tasks:l,collect:w,task:f,clear:y,on:m};function m(E,..._){VP(a)[E].push(..._)}function g(E){typeof o=="number"&&(o={timeout:o});const _=qn.currentSuite?.suite,k=_??qn.currentSuite?.file,A=Ts(o?.tags);oI(Un.config,A),a={id:"",type:"suite",name:e,fullName:ju([_?.fullName??qn.currentSuite?.file?.fullName,e]),fullTestName:ju([_?.fullTestName,e]),suite:_,mode:n,each:r,file:_?.file??qn.currentSuite?.file,shuffle:o?.shuffle,tasks:[],meta:o?.meta??Object.create(null),concurrent:o?.concurrent,tags:nw([...k?.tags||[],...A])},qP(a,mI())}function y(){l.length=0,g()}async function w(E){if(!E)throw new TypeError("File is required to collect tasks.");t&&await SI(p,()=>t(d));const _=[];for(const k of l)_.push(k.type==="collector"?await k.collect(E):k);return a.tasks=_,a}return xI(p),p}function vI(e,t){return(async(...n)=>{const r=await e(...n);if(t.promises){const l=(await Promise.allSettled(t.promises)).map(a=>a.status==="rejected"?a.reason:void 0).filter(Boolean);if(l.length)throw l}return r})}function yI(){function e(t,n,r){const o=qn.currentSuite||vk;let{options:l,handler:a}=Sl(n,r);const{meta:f,...d}=o?.options||{};l={...d,...l};const p=this.shuffle??l.shuffle??o?.options?.shuffle??Un?.config.sequence.shuffle;p!=null&&(l.shuffle=p);let m=this.only??l.only?"only":this.skip??l.skip?"skip":this.todo??l.todo?"todo":"run";m==="run"&&!a&&(m="todo");const g=this.concurrent??l.concurrent;return g!=null&&(l.concurrent=g),f&&(l.meta=Object.assign(Object.create(null),f,l.meta)),gI(Fo(t),a,m,this.each,l)}return e.each=function(t,...n){const r=pi(this),o=r.withContext();return r.setContext("each",!0),Array.isArray(t)&&n.length&&(t=Kf(t,n)),(l,a,f)=>{const d=Fo(l),p=t.every(Array.isArray),{options:m,handler:g}=Sl(a,f),y=typeof a=="function";t.forEach((w,E)=>{const _=Array.isArray(w)?w:[w];y?p?o(mi(d,_,E),g?()=>g(..._):void 0,m.timeout):o(mi(d,_,E),g?()=>g(w):void 0,m.timeout):p?o(mi(d,_,E),m,g?()=>g(..._):void 0):o(mi(d,_,E),m,g?()=>g(w):void 0)}),r.setContext("each",void 0)}},e.for=function(t,...n){const o=pi(this).withContext();return Array.isArray(t)&&n.length&&(t=Kf(t,n)),(l,a,f)=>{const d=Fo(l),{options:p,handler:m}=Sl(a,f);t.forEach((g,y)=>{o(mi(d,Ts(g),y),p,m?()=>m(g):void 0)})}},e.skipIf=t=>t?dl.skip:dl,e.runIf=t=>t?dl:dl.skip,lk(["concurrent","shuffle","skip","only","todo"],e)}function bI(e){const t=e;t.each=function(o,...l){const a=pi(this),f=a.withContext();return a.setContext("each",!0),Array.isArray(o)&&l.length&&(o=Kf(o,l)),(d,p,m)=>{const g=Fo(d),y=o.every(Array.isArray),{options:w,handler:E}=Sl(p,m),_=typeof p=="function";o.forEach((k,A)=>{const N=Array.isArray(k)?k:[k];_?y?f(mi(g,N,A),E?()=>E(...N):void 0,w.timeout):f(mi(g,N,A),E?()=>E(k):void 0,w.timeout):y?f(mi(g,N,A),w,E?()=>E(...N):void 0):f(mi(g,N,A),w,E?()=>E(k):void 0)}),a.setContext("each",void 0)}},t.for=function(o,...l){const f=pi(this).withContext();return Array.isArray(o)&&l.length&&(o=Kf(o,l)),(d,p,m)=>{const g=Fo(d),{options:y,handler:w}=Sl(p,m);o.forEach((E,_)=>{const k=w?A=>w(E,A):void 0;k&&Vf(k,{index:1,original:w}),f(mi(g,Ts(E),_),y,k)})}},t.skipIf=function(o){return o?this.skip:this},t.runIf=function(o){return o?this:this.skip};function n(o,l,a){if(typeof o!="string")return o;const f=o;let d,p;if(a!==void 0?(d=l,p=a):l!==null&&typeof l=="object"&&!Array.isArray(l)&&pn.isFixtureOptions(l)?(d=l,p={}):(d=void 0,p=l),typeof p=="function"){const m=p,g=async(y,w)=>{let E;const k=await m(y,{onCleanup:A=>{if(E!==void 0)throw new Error("onCleanup can only be called once per fixture. Define separate fixtures if you need multiple cleanup functions.");E=A}});await w(k),E&&await E()};return Vf(g,{original:m}),d?{[f]:[g,d]}:{[f]:g}}return d?{[f]:[p,d]}:{[f]:p}}return t.override=function(o,l,a){const f=n(o,l,a);return pi(this).getFixtures().override(Un,f),this},t.scoped=function(o){return console.warn("test.scoped() is deprecated and will be removed in future versions. Please use test.override() instead."),this.override(o)},t.extend=function(o,l,a){const f=n(o,l,a),d=pi(this).getFixtures().extend(Un,f),p=Hg(function(m,g,y){e.call(this,Fo(m),g,y)});return pi(p).mergeContext({fixtures:d}),p},t.describe=dl,t.suite=dl,t.beforeEach=QP,t.afterEach=eI,t.beforeAll=JP,t.afterAll=ZP,t.aroundEach=nI,t.aroundAll=tI,lk(["concurrent","skip","only","todo","fails"],t,{fixtures:new pn})}function Hg(e){return bI(e)}function Fo(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}function mi(e,t,n){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,"%%"));const r=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((m,g)=>{if(KR(t[g])||Object.is(t[g],-0)){let y=0;e=e.replace(/%f/g,w=>(y++,y===g+1?"-%f":w))}});const o={truncate:Un.config.taskTitleValueFormatTruncate},l=K_(t[0]);function a(p){return p.replace(/\$([$\w.]+)/g,(m,g)=>{const y=/^\d+$/.test(g);if(!l&&!y)return`$${g}`;const w=y?Qb(t,g):void 0,E=l?Qb(t[0],g,w):w;return typeof E=="string"?UR(E,o.truncate):q_(E,o)})}let f="",d=0;return wI(e,U_,p=>{d<r?f+=WR([p[0],t[d++]],o):f+=p[0]},p=>{f+=a(p)}),f}function wI(e,t,n,r){let o=0;for(const l of e.matchAll(t))o<l.index&&r(e.slice(o,l.index)),n(l),o=l.index+l[0].length;o<e.length&&r(e.slice(o))}function Kf(e,t){const n=e.join("").trim().replace(/ /g,"").split(`
|
|
52
|
-
`).map(o=>o.split("|"))[0],r=[];for(let o=0;o<Math.floor(t.length/n.length);o++){const l={};for(let a=0;a<n.length;a++)l[n[a]]=t[o*n.length+a];r.push(l)}return r}const mw=globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,qn={currentSuite:null};function xI(e){qn.currentSuite?.tasks.push(e)}async function SI(e,t){const n=qn.currentSuite;qn.currentSuite=e,await t(),qn.currentSuite=n}function Es(e,t,n=!1,r,o){if(t<=0||t===Number.POSITIVE_INFINITY)return e;const{setTimeout:l,clearTimeout:a}=Y_();return(function(...d){const p=mw(),m=Bg();return m._currentTaskStartTime=p,m._currentTaskTimeout=t,new Promise((g,y)=>{const w=l(()=>{a(w),E()},t);w.unref?.();function E(){const A=CI(n,t,r);o?.(d,A),y(A)}function _(A){if(m._currentTaskStartTime=void 0,m._currentTaskTimeout=void 0,a(w),mw()-p>=t){E();return}g(A)}function k(A){m._currentTaskStartTime=void 0,m._currentTaskTimeout=void 0,a(w),y(A)}try{const A=e(...d);typeof A=="object"&&A!=null&&typeof A.then=="function"?A.then(_,k):_(A)}catch(A){k(A)}})})}function _I(e,t){return(function(...r){return new Promise((o,l)=>{t.addEventListener("abort",()=>l(t.reason));try{const a=e(...r);typeof a=="object"&&a!=null&&typeof a.then=="function"?a.then(o,l):o(a)}catch(a){l(a)}})})}const am=new WeakMap;function jg([e],t){e&&kI(e,t)}function kI(e,t){am.get(e)?.abort(t)}function TI(e,t){const n=function(){throw new Error("done() callback is deprecated, use promise instead")};let r=am.get(n);return r||(r=new AbortController,am.set(n,r)),n.signal=r.signal,n.task=e,n.skip=(o,l)=>{if(o!==!1)throw e.result??={state:"skip"},e.result.pending=!0,new zP("test is skipped; abort execution",e,typeof o=="string"?o:l)},n.annotate=((o,l,a)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);const f={message:o,type:typeof l=="object"||l===void 0?"notice":l},d=typeof l=="object"?l:a;return d&&(f.attachment=d,wk(f.attachment)),$I(e,AI(e,{type:"internal:annotation",annotation:f}).then(async({annotation:p})=>{if(!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await bk(t);const m=await t.onTestAnnotate(e,p);return e.annotations.push(m),m}))}),n.onTestFailed=(o,l)=>{e.onFailed||=[],e.onFailed.push(Es(o,l??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(a,f)=>r.abort(f)))},n.onTestFinished=(o,l)=>{e.onFinished||=[],e.onFinished.push(Es(o,l??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(a,f)=>r.abort(f)))},t.extendTaskContext?.(n)||n}function CI(e,t,n){const r=`${e?"Hook":"Test"} timed out in ${t}ms.
|
|
53
|
-
If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,o=new Error(r);return n?.stack&&(o.stack=n.stack.replace(o.message,n.message)),o}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;Y_();const gp=new Map,gw=[],hf=[];function EI(e){if(gp.size){const t=Array.from(gp).map(([r,o])=>[r,o[0],o[1]]),n=e.onTaskUpdate?.(t,gw);n&&(hf.push(n),n.then(()=>hf.splice(hf.indexOf(n),1),()=>{})),gw.length=0,gp.clear()}}async function bk(e){EI(e),await Promise.all(hf)}async function AI(e,t){const n=Bg(),r=hk(e.file.filepath,new Error("STACK_TRACE").stack);if(r&&(t.location={file:r.file,line:r.line,column:r.column},t.type==="internal:annotation"&&(t.annotation.location=t.location)),Array.isArray(t.attachments))for(const l of t.attachments)wk(l);if(t.type==="internal:annotation")return t;if(!n.onTestArtifactRecord)throw new Error("Test runner doesn't support test artifacts.");await bk(n);const o=await n.onTestArtifactRecord(e,t);return e.artifacts.push(o),o}const hr=[];for(let e=65;e<91;e++)hr.push(String.fromCharCode(e));for(let e=97;e<123;e++)hr.push(String.fromCharCode(e));for(let e=0;e<10;e++)hr.push(e.toString(10));hr.push("+","/");function MI(e){let t="";const n=e.byteLength;for(let r=0;r<n;r+=3)if(n===r+1){const o=(e[r]&252)>>2,l=(e[r]&3)<<4;t+=hr[o],t+=hr[l],t+="=="}else if(n===r+2){const o=(e[r]&252)>>2,l=(e[r]&3)<<4|(e[r+1]&240)>>4,a=(e[r+1]&15)<<2;t+=hr[o],t+=hr[l],t+=hr[a],t+="="}else{const o=(e[r]&252)>>2,l=(e[r]&3)<<4|(e[r+1]&240)>>4,a=(e[r+1]&15)<<2|(e[r+2]&192)>>6,f=e[r+2]&63;t+=hr[o],t+=hr[l],t+=hr[a],t+=hr[f]}return t}function $I(e,t){return t=t.finally(()=>{if(!e.promises)return;const n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1)}),e.promises||(e.promises=[]),e.promises.push(t),t}function wk(e){if(e.body==null&&!e.path)throw new TypeError('Test attachment requires "body" or "path" to be set. Both are missing.');if(e.body&&e.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');if(e.path&&e.bodyEncoding)throw new TypeError('Test attachment with "path" should not have "bodyEncoding" specified.');e.body instanceof Uint8Array&&(e.body=MI(e.body)),e.body!=null&&(e.bodyEncoding??="base64")}const jo=oL(),NI=HO(jo);function jc(e){return Object.hasOwn(e,"tasks")}function OI(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function ms(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function vp(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function LI(e){const t=new Map,n=new Map,r=[];for(;;){let o=0;if(e.forEach((l,a)=>{const{splits:f,finished:d}=l;if(d){o++;const{raw:m,candidate:g}=l;t.set(m,g);return}if(f.length===0){l.finished=!0;return}const p=f[0];n.has(p)?(l.candidate+=l.candidate===""?p:`/${p}`,n.get(p)?.push(a),f.shift()):(n.set(p,[a]),r.push(a))}),r.forEach(l=>{const a=e[l],f=a.splits.shift();a.candidate+=a.candidate===""?f:`/${f}`}),n.forEach(l=>{if(l.length===1){const a=l[0];e[a].finished=!0}}),n.clear(),r.length=0,o===e.length)break}return t}function xk(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const n=t.split(/\//g);return{raw:t,splits:n,splitsCopy:[...n],candidate:"",finished:!1,id:e}}function RI(e){return xk(e).raw}function pf(e){if(e>=500)return"danger";if(e>=100)return"warning"}function Yf(e){const t=pf(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function mf(e,t=!1){if(!e)return"";const n=e.split("").reduce((l,a,f)=>l+a.charCodeAt(0)+f,0),r=jo.value?["yellow","cyan","#006800","magenta"]:["#ff5400","#02a4a4","green","magenta"],o=jo.value?["#ffff0091","#0ff6","#5dbb5dc9","#ff00ff80"]:["#ff540091","#00828266","#5dbb5dc9","#ff00ff80"];return(t?o:r)[n%r.length]}function Sk(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}const cm=qt([]),ur=qt([]),Zr=Bc("vitest-ui_task-tree-opened",[],{shallow:!0}),Jl="__vitest_ui_all_projects__",Xf=we(()=>new Set(Zr.value)),jt=Bc("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,slow:!1,onlyTests:!1,search:"",project:Jl,projectSort:void 0}),jr=Ve(jt.value.projectSort||"default"),_l=qt(jt.value?.project||Jl),um=we(()=>Qg.value.length>1),PI=we(()=>_l.value===Jl),Wg=we(()=>!um.value||_l.value===Jl?void 0:_l.value),Ur=Ve(jt.value.search),vw=new Map,_o=we(()=>{if(Ur.value.startsWith("tag:")){if(!ht.value.tags)return{matcher:()=>!0};const e=Ur.value.slice(4).trim();let t=vw.get(e);return t||(t=II(e),vw.set(e,t)),{matcher:n=>t.matcher(n.tags||[]),error:t.error}}return{matcher:e=>Ur.value===""||OI(e.name,Ur.value)}});function II(e){if(!e)return{matcher:()=>!0};try{return{matcher:sI([e],ht.value.tags||[])}}catch(t){return{matcher:()=>!1,error:t.message}}}const DI={"&":"&","<":"<",">":">",'"':""","'":"'"};function _k(e){return e.replace(/[&<>"']/g,t=>DI[t])}const FI=we(()=>{const e=Ur.value.toLowerCase();return e.length?new RegExp(`(${_k(e)})`,"gi"):null}),kk=we(()=>Ur.value.trim()!==""),Ze=yr({failed:jt.value.failed,success:jt.value.success,skipped:jt.value.skipped,slow:jt.value.slow,onlyTests:jt.value.onlyTests}),fm=we(()=>!!(Ze.failed||Ze.success||Ze.skipped||Ze.slow)),Hd=qt([]),Dl=Ve(!1),yw=we(()=>{const e=jt.value.expandAll;return Zr.value.length>0?e!==!0:e!==!1}),zI=we(()=>{const e=kk.value,t=fm.value,n=Wg.value,r=Ze.onlyTests,o=Ne.summary.filesFailed,l=Ne.summary.filesSuccess,a=Ne.summary.filesSkipped,f=Ne.summary.filesRunning,d=Hd.value;return Ne.collectTestsTotal(e||t||!!n,r,d,{failed:o,success:l,skipped:a,running:f})});function BI(e){return e.type==="test"}function HI(e){return e.mode==="run"&&e.type==="test"}function Kn(e){return e.type==="file"}function Ji(e){return e.type==="file"||e.type==="suite"}function dm(e){if(e.type!=="test")return!1;const t=e.result?.duration;if(typeof t!="number")return!1;const n=ht.value.slowTestThreshold;return typeof n=="number"&&t>n}function jI(e,t=Ne.root.tasks){const n=[...t];return n.sort((r,o)=>{if(e==="duration-desc"||e==="duration-asc"){const l=r.duration??0,a=o.duration??0;if(l!==a)return e==="duration-desc"?a-l:l-a}else if(e==="asc"||e==="desc"){const l=r.projectName||"",a=o.projectName||"";if(l!==a)return e==="asc"?l.localeCompare(a):a.localeCompare(l)}return`${r.filepath}:${r.projectName}`.localeCompare(`${o.filepath}:${o.projectName}`)}),n}function xc(e,t=!1){let n=Ne.nodes.get(e.id);if(n?(n.typecheck=!!e.meta&&"typecheck"in e.meta,n.label=e.meta?.__vitest_label__,n.state=e.result?.state,n.mode=e.mode,n.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,n.slow=!1,n.collectDuration=e.collectDuration,n.setupDuration=e.setupDuration,n.environmentLoad=e.environmentLoad,n.prepareDuration=e.prepareDuration):(n={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:Xf.value.size>0&&Xf.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,label:e.meta?.__vitest_label__,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,slow:!1,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Ne.colors.get(e.projectName||"")||mf(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Ne.nodes.set(e.id,n),Ne.root.tasks.push(n)),t)for(let r=0;r<e.tasks.length;r++)Wc(e.id,e.tasks[r],!0)}function Tk(e,t){const n=Ne.nodes.get(e);if(!n||!Ji(n))return;const r=dt.state.idMap.get(e);if(!(!r||!jc(r)))return Wc(n.parentId,r,t&&r.tasks.length>0),[n,r]}function WI(e){const t=Ne.nodes.get(e);if(!t)return;const n=dt.state.idMap.get(e);!n||!Il(n)||Wc(t.parentId,n,!1)}function Wc(e,t,n){const r=Ne.nodes.get(e);let o;const l=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(r&&(o=Ne.nodes.get(t.id),o?(r.children.has(t.id)||(r.tasks.push(o),r.children.add(t.id)),o.name=t.name,o.mode=t.mode,o.duration=l,o.slow=dm(t),o.state=t.result?.state):(Il(t)?o={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:r.indent+1,duration:l,slow:dm(t),state:t.result?.state}:o={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:Xf.value.size>0&&Xf.value.has(t.id),children:new Set,tasks:[],indent:r.indent+1,duration:l,slow:!1,state:t.result?.state},Ne.nodes.set(t.id,o),r.tasks.push(o),r.children.add(t.id)),o&&n&&jc(t)))for(let a=0;a<t.tasks.length;a++)Wc(o.id,t.tasks[a],n)}function UI(e){const t=Ne.nodes.get(e);if(!t||!Ji(t))return;const n=new Set(Zr.value);n.delete(t.id);const r=[...VI(t)];Zr.value=Array.from(n),ur.value=r}function qI(){hm(Ne.root.tasks);const e=[...ur.value.filter(Kn)];hm(e),Zr.value=[],jt.value.expandAll=!0,ur.value=e}function hm(e){for(const t of e)Ji(t)&&(t.expanded=!1,hm(t.tasks))}function*Ck(e,t){if(t&&(yield e.id),Ji(e))for(let n=0;n<e.tasks.length;n++)yield*Ck(e.tasks[n],!0)}function*VI(e){const t=e.id,n=new Set(Ck(e,!1));for(let r=0;r<ur.value.length;r++){const o=ur.value[r];if(o.id===t){o.expanded=!1,yield o;continue}if(n.has(o.id)){n.delete(o.id);continue}yield o}}const jd=Ve("idle"),gs=we(()=>jd.value==="idle"),Mo=Ve([]),GI=we(()=>(ht.value.tags||[]).reduce((t,n)=>(t[n.name]=n,t),{}));class Ek{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(n=>this.filesMap.get(n)).flat().filter(n=>n&&!n.local):Array.from(this.filesMap.values()).flat().filter(n=>!n.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>t.result?.state==="fail").map(t=>t.filepath)}collectPaths(t=[]){t.forEach(n=>{this.pathsSet.add(n)})}collectFiles(t=[]){t.forEach(n=>{const r=this.filesMap.get(n.filepath)||[],o=r.filter(a=>a.projectName!==n.projectName||a.meta.typecheck!==n.meta.typecheck),l=r.find(a=>a.projectName===n.projectName);l&&(n.logs=l.logs),o.push(n),this.filesMap.set(n.filepath,o),this.updateId(n)})}clearFiles(t,n=[]){const r=t;n.forEach(o=>{const l=this.filesMap.get(o),a=dk(o,r.config.root,r.config.name||"");if(a.local=!0,this.idMap.set(a.id,a),!l){this.filesMap.set(o,[a]);return}const f=l.filter(d=>d.projectName!==r.config.name);f.length?this.filesMap.set(o,[...f,a]):this.filesMap.set(o,[a])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(n=>{this.updateId(n)}))}updateTasks(t){for(const[n,r,o]of t){const l=this.idMap.get(n);l&&(l.result=r,l.meta=o,r?.state==="skip"&&(l.mode="skip"))}}updateUserLog(t){const n=t.taskId&&this.idMap.get(t.taskId);n&&(n.logs||(n.logs=[]),n.logs.push(t))}}function KI(e,t,n){return e?$k(e,t,n):!1}function Ug(e,t){const n=[...Ak(e,t)];ur.value=n,Hd.value=n.filter(Kn).map(r=>$r(r.id))}function*Ak(e,t){const n=Wg.value,r=jI(jr.value);for(const o of r)n&&o.projectName!==n||(yield*Mk(o,e,t))}function*Mk(e,t,n){const r=new Set,o=new Map,l=[];let a;if(n.onlyTests)for(const[g,y]of pm(e,r,w=>bw(w,t,n)))l.push([g,y]);else{for(const[g,y]of pm(e,r,w=>bw(w,t,n)))Ji(y)?(o.set(y.id,g),Kn(y)?(g&&(a=y.id),l.push([g,y])):l.push([g||o.get(y.parentId)===!0,y])):l.push([g||o.get(y.parentId)===!0,y]);!a&&!Kn(e)&&"fileId"in e&&(a=e.fileId)}const f=new Set,d=[...XI(l,n.onlyTests,r,f,a)].reverse(),p=Ne.nodes;for(const g of r){const y=p.get(g);y&&"expanded"in y&&(y.expanded=!0)}const m=new Set(d.filter(g=>Kn(g)||Ji(g)&&p.get(g.parentId)?.expanded).map(g=>g.id));yield*d.filter(g=>Kn(g)||m.has(g.parentId)&&p.get(g.parentId)?.expanded)}function YI(e,t,n,r,o){if(r){if(Kn(t))return o.has(t.id)?t:void 0;if(n.has(t.id)){const l=Ne.nodes.get(t.parentId);return l&&Kn(l)&&o.add(l.id),t}}else if(e||n.has(t.id)||o.has(t.id)){const l=Ne.nodes.get(t.parentId);return l&&Kn(l)&&o.add(l.id),t}}function*XI(e,t,n,r,o){for(let l=e.length-1;l>=0;l--){const[a,f]=e[l],d=Ji(f);if(!t&&o&&n.has(o)&&"fileId"in f&&f.fileId===o){d&&n.add(f.id);let p=Ne.nodes.get(f.parentId);for(;p;)n.add(p.id),Kn(p)&&r.add(p.id),p=Ne.nodes.get(p.parentId);yield f;continue}if(d){const p=YI(a,f,n,t,r);p&&(yield p)}else if(a){const p=Ne.nodes.get(f.parentId);p&&Kn(p)&&r.add(p.id),yield f}}}function JI(e,t){if(t.slow&&e.type==="test"){const n=ht.value.slowTestThreshold;if(typeof n=="number"&&typeof e.result?.duration=="number"&&e.result.duration>n)return!0}return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function $k(e,t,n){if(t(e))if(n.success||n.failed||n.skipped||n.slow){if(JI(e,n))return!0}else return!0;return!1}function*pm(e,t,n){const r=n(e);if(r)if(BI(e)){let o=Ne.nodes.get(e.parentId);for(;o;)t.add(o.id),o=Ne.nodes.get(o.parentId)}else if(Kn(e))t.add(e.id);else{t.add(e.id);let o=Ne.nodes.get(e.parentId);for(;o;)t.add(o.id),o=Ne.nodes.get(o.parentId)}if(yield[r,e],Ji(e))for(let o=0;o<e.tasks.length;o++)yield*pm(e.tasks[o],t,n)}function bw(e,t,n){const r=dt.state.idMap.get(e.id);return r?$k(r,t,n):!1}function ZI(e,t,n){const r=Tk(e,!1);if(!r)return;const[o,l]=r;for(const p of l.tasks)Wc(o.id,p,!1);o.expanded=!0;const a=new Set(Zr.value);a.add(o.id);const f=new Set(Mk(o,t,n)),d=[...t2(o,f)];Zr.value=Array.from(a),ur.value=d}function QI(e,t){qg(Ne.root.tasks,!1);const n=[...Ak(e,t)];jt.value.expandAll=!1,Zr.value=[],ur.value=n,Hd.value=n.filter(Kn).map(r=>$r(r.id))}function e2(e,t){if(e.size)for(const n of ur.value)e.has(n.id)&&(n.expanded=!0);else t&&qg(ur.value.filter(Kn),!0)}function qg(e,t){for(const n of e)Ji(n)&&(n.expanded=!0,qg(n.tasks,!1));t&&(jt.value.expandAll=!1,Zr.value=[])}function*t2(e,t){const n=e.id,r=new Set(Array.from(t).map(o=>o.id));for(const o of ur.value)o.id===n?(o.expanded=!0,r.has(o.id)||(yield e),yield*t):r.has(o.id)||(yield o)}function Vg(e){return gk(e).some(t=>t.result?.errors?.some(n=>typeof n?.message=="string"&&n.message.match(/Snapshot .* mismatched/)))}function n2(e,t,n,r){e.map(o=>[`${o.filepath}:${o.projectName||""}`,o]).sort(([o],[l])=>o.localeCompare(l)).map(([,o])=>xc(o,t)),cm.value=[...Ne.root.tasks],Ug(n,{failed:r.failed,success:r.success,skipped:r.skipped,slow:r.slow,onlyTests:r.onlyTests})}function r2(e){queueMicrotask(()=>{const t=Ne.pendingTasks,n=dt.state.idMap;for(const r of e)if(r[1]){const l=n.get(r[0]);if(l){let a=t.get(l.file.id);a||(a=new Set,t.set(l.file.id,a)),a.add(l.id)}}})}function i2(e,t){const n=Ne.pendingTasks,o=dt.state.idMap.get(e);if(o?.type==="test"){let l=n.get(o.file.id);l||(l=new Set,n.set(o.file.id,l)),l.add(o.id),t.type==="internal:annotation"?o.annotations.push(t.annotation):o.artifacts.push(t)}}function ww(e,t,n,r,o,l){e&&u2(n);const a=!e;queueMicrotask(()=>{t?l2(a):a2(a)}),queueMicrotask(()=>{f2(n,l)}),queueMicrotask(()=>{t&&(n.failedSnapshot=cm.value&&Vg(cm.value.map(f=>$r(f.id))),n.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{c2(r,o,t)})}function*o2(){yield*ur.value.filter(HI)}function s2(){const e=dt.state.idMap;let t;for(const n of o2())t=e.get(n.parentId),t&&jc(t)&&t.mode==="todo"&&(t=e.get(n.id),t&&(t.mode="todo"))}function l2(e){const t=dt.state.getFiles(),n=Ne.nodes,r=t.filter(l=>!n.has(l.id));for(let l=0;l<r.length;l++)xc(r[l],e),Jf(r[l].tasks);const o=Ne.root.tasks;for(let l=0;l<o.length;l++){const a=o[l],f=$r(a.id);!f||(xc(f,e),!f.tasks?.length)||Jf(f.tasks)}}function a2(e){const t=new Map(Ne.pendingTasks.entries());Ne.pendingTasks.clear();const n=Ne.nodes,r=Array.from(t.keys()).filter(f=>!n.has(f)).map(f=>$r(f)).filter(Boolean);let o;for(let f=0;f<r.length;f++)o=r[f],xc(o,!1),Jf(o.tasks),t.delete(o.id);const l=dt.state.idMap,a=Ne.root.tasks;for(let f=0;f<a.length;f++){const d=a[f],p=$r(d.id);if(!p)continue;const m=t.get(p.id);m&&(xc(p,e),Jf(Array.from(m,g=>l.get(g)).filter(Boolean)))}}function c2(e,t,n=!1){const r=jt.value.expandAll,o=r!==!0,l=new Set(Zr.value),a=l.size>0&&r===!1||o;queueMicrotask(()=>{xw(e,t,n)}),Dl.value||queueMicrotask(()=>{(ur.value.length||n)&&(Dl.value=!0)}),a&&(queueMicrotask(()=>{e2(l,n),o&&(jt.value.expandAll=!1)}),queueMicrotask(()=>{xw(e,t,n)}))}function xw(e,t,n){Ug(e,t),n&&(s2(),jd.value="idle")}function Jf(e){let t;for(let n=0;n<e.length;n++)t=e[n],jc(t)?Tk(t.id,!0):WI(t.id)}function u2(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.testsExpectedFail=0,e.testsSlow=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function f2(e,t){const n=dt.state.idMap,r=new Map(Ne.root.tasks.filter(a=>n.has(a.id)).map(a=>[a.id,a])),o=Array.from(r.values(),a=>[a.id,$r(a.id)]),l={files:r.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,testsSlow:0,totalTests:0};for(const[a,f]of o){if(!f)continue;f.result?.state==="fail"?l.filesFailed++:f.result?.state==="pass"?l.filesSuccess++:f.mode==="skip"?(l.filesIgnore++,l.filesSkipped++):f.mode==="todo"?(l.filesIgnore++,l.filesTodo++):l.filesRunning++;const{failed:d,success:p,skipped:m,total:g,ignored:y,todo:w,expectedFail:E,slow:_}=Nk(f);l.totalTests+=g,l.testsFailed+=d,l.testsSuccess+=p,l.testsSkipped+=m,l.testsTodo+=w,l.testsExpectedFail+=E,l.testsSlow+=_,l.testsIgnore+=y}e.files=l.files,e.time=l.time,e.filesFailed=l.filesFailed,e.filesSuccess=l.filesSuccess,e.filesIgnore=l.filesIgnore,e.filesRunning=l.filesRunning,e.filesSkipped=l.filesSkipped,e.filesTodo=l.filesTodo,e.testsFailed=l.testsFailed,e.testsSuccess=l.testsSuccess,e.testsTodo=l.testsTodo,e.testsExpectedFail=l.testsExpectedFail,e.testsSlow=l.testsSlow,e.testsIgnore=l.testsIgnore,e.testsSkipped=l.testsSkipped,e.totalTests=l.totalTests}function Nk(e,t=()=>!0,n){const r={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0,expectedFail:0,slow:0};for(const o of Ok(e))(!n||KI(o,t,n))&&(r.total++,dm(o)&&r.slow++,o.result?.state==="fail"?r.failed++:o.result?.state==="pass"?o.fails?r.expectedFail++:r.success++:o.mode==="skip"?(r.ignored++,r.skipped++):o.mode==="todo"&&(r.ignored++,r.todo++));return r.running=r.total-r.failed-r.success-r.ignored-r.expectedFail,r}function d2(e,t,n,r,o,l){if(t)return n.map(a=>Nk(a,o,l)).reduce((a,{failed:f,success:d,ignored:p,running:m})=>(a.failed+=f,a.success+=d,a.skipped+=p,a.running+=m,a),{failed:0,success:0,skipped:0,running:0});if(e){const a={failed:0,success:0,skipped:0,running:0},f=!l.success&&!l.failed,d=l.failed||f,p=l.success||f;for(const m of n)m.result?.state==="fail"?a.failed+=d?1:0:m.result?.state==="pass"?a.success+=p?1:0:m.mode==="skip"||m.mode==="todo"||a.running++;return a}return r}function*Ok(e){const t=Ts(e);let n;for(let r=0;r<t.length;r++)n=t[r],Il(n)?yield n:yield*Ok(n.tasks)}class h2{constructor(t=[],n=new Map,r=!1,o=500,l={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},a=new Map,f=new Map,d=yr({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,testsSlow:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=n,this.onTaskUpdateCalled=r,this.resumeEndTimeout=o,this.root=l,this.pendingTasks=a,this.nodes=f,this.summary=d,this.rafCollector=YO(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;startTime=0;executionTime=0;loadFiles(t,n){this.projects.splice(0,this.projects.length,...n.map(r=>r.name)),this.colors=new Map(n.map(r=>[r.name,r.color])),n2(t,!0,_o.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,n){i2(t,n),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,n){r2(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,n,r=!0){r?queueMicrotask(()=>{ww(t,n,this.summary,_o.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests},n?this.executionTime:performance.now()-this.startTime)}):ww(t,n,this.summary,_o.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests},n?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,n,r,o){return d2(t,n,r,o,_o.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})}collapseNode(t){queueMicrotask(()=>{UI(t)})}expandNode(t){queueMicrotask(()=>{ZI(t,_o.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{qI()})}expandAllNodes(){queueMicrotask(()=>{QI(_o.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}filterNodes(){queueMicrotask(()=>{Ug(_o.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}}const Ne=new h2;function Gg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gf={exports:{}},p2=gf.exports,Sw;function Vo(){return Sw||(Sw=1,(function(e,t){(function(n,r){e.exports=r()})(p2,(function(){var n=navigator.userAgent,r=navigator.platform,o=/gecko\/\d/i.test(n),l=/MSIE \d/.test(n),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),f=/Edge\/(\d+)/.exec(n),d=l||a||f,p=d&&(l?document.documentMode||6:+(f||a)[1]),m=!f&&/WebKit\//.test(n),g=m&&/Qt\/\d+\.\d+/.test(n),y=!f&&/Chrome\/(\d+)/.exec(n),w=y&&+y[1],E=/Opera\//.test(n),_=/Apple Computer/.test(navigator.vendor),k=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),A=/PhantomJS/.test(n),N=_&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),I=/Android/.test(n),$=N||I||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),D=N||/Mac/.test(r),U=/\bCrOS\b/.test(n),J=/win/i.test(r),ee=E&&n.match(/Version\/(\d*\.\d*)/);ee&&(ee=Number(ee[1])),ee&&ee>=15&&(E=!1,m=!0);var X=D&&(g||E&&(ee==null||ee<12.11)),V=o||d&&p>=9;function q(i){return new RegExp("(^|\\s)"+i+"(?:$|\\s)\\s*")}var P=function(i,s){var u=i.className,c=q(s).exec(u);if(c){var h=u.slice(c.index+c[0].length);i.className=u.slice(0,c.index)+(h?c[1]+h:"")}};function L(i){for(var s=i.childNodes.length;s>0;--s)i.removeChild(i.firstChild);return i}function T(i,s){return L(i).appendChild(s)}function S(i,s,u,c){var h=document.createElement(i);if(u&&(h.className=u),c&&(h.style.cssText=c),typeof s=="string")h.appendChild(document.createTextNode(s));else if(s)for(var v=0;v<s.length;++v)h.appendChild(s[v]);return h}function R(i,s,u,c){var h=S(i,s,u,c);return h.setAttribute("role","presentation"),h}var z;document.createRange?z=function(i,s,u,c){var h=document.createRange();return h.setEnd(c||i,u),h.setStart(i,s),h}:z=function(i,s,u){var c=document.body.createTextRange();try{c.moveToElementText(i.parentNode)}catch{return c}return c.collapse(!0),c.moveEnd("character",u),c.moveStart("character",s),c};function ae(i,s){if(s.nodeType==3&&(s=s.parentNode),i.contains)return i.contains(s);do if(s.nodeType==11&&(s=s.host),s==i)return!0;while(s=s.parentNode)}function ve(i){var s=i.ownerDocument||i,u;try{u=i.activeElement}catch{u=s.body||null}for(;u&&u.shadowRoot&&u.shadowRoot.activeElement;)u=u.shadowRoot.activeElement;return u}function _e(i,s){var u=i.className;q(s).test(u)||(i.className+=(u?" ":"")+s)}function je(i,s){for(var u=i.split(" "),c=0;c<u.length;c++)u[c]&&!q(u[c]).test(s)&&(s+=" "+u[c]);return s}var Me=function(i){i.select()};N?Me=function(i){i.selectionStart=0,i.selectionEnd=i.value.length}:d&&(Me=function(i){try{i.select()}catch{}});function Ke(i){return i.display.wrapper.ownerDocument}function qe(i){return He(i.display.wrapper)}function He(i){return i.getRootNode?i.getRootNode():i.ownerDocument}function Re(i){return Ke(i).defaultView}function B(i){var s=Array.prototype.slice.call(arguments,1);return function(){return i.apply(null,s)}}function Q(i,s,u){s||(s={});for(var c in i)i.hasOwnProperty(c)&&(u!==!1||!s.hasOwnProperty(c))&&(s[c]=i[c]);return s}function ie(i,s,u,c,h){s==null&&(s=i.search(/[^\s\u00a0]/),s==-1&&(s=i.length));for(var v=c||0,b=h||0;;){var x=i.indexOf(" ",v);if(x<0||x>=s)return b+(s-v);b+=x-v,b+=u-b%u,v=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};le.prototype.onTimeout=function(i){i.id=0,i.time<=+new Date?i.f():setTimeout(i.handler,i.time-+new Date)},le.prototype.set=function(i,s){this.f=s;var u=+new Date+i;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,i),this.time=u)};function ce(i,s){for(var u=0;u<i.length;++u)if(i[u]==s)return u;return-1}var F=50,W={toString:function(){return"CodeMirror.Pass"}},ne={scroll:!1},he={origin:"*mouse"},pe={origin:"+move"};function ge(i,s,u){for(var c=0,h=0;;){var v=i.indexOf(" ",c);v==-1&&(v=i.length);var b=v-c;if(v==i.length||h+b>=s)return c+Math.min(b,s-h);if(h+=v-c,h+=u-h%u,c=v+1,h>=s)return c}}var Ae=[""];function $e(i){for(;Ae.length<=i;)Ae.push(Se(Ae)+" ");return Ae[i]}function Se(i){return i[i.length-1]}function be(i,s){for(var u=[],c=0;c<i.length;c++)u[c]=s(i[c],c);return u}function te(i,s,u){for(var c=0,h=u(s);c<i.length&&u(i[c])<=h;)c++;i.splice(c,0,s)}function ue(){}function oe(i,s){var u;return Object.create?u=Object.create(i):(ue.prototype=i,u=new ue),s&&Q(s,u),u}var Ie=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(i){return/\w/.test(i)||i>""&&(i.toUpperCase()!=i.toLowerCase()||Ie.test(i))}function ut(i,s){return s?s.source.indexOf("\\w")>-1&&tt(i)?!0:s.test(i):tt(i)}function pt(i){for(var s in i)if(i.hasOwnProperty(s)&&i[s])return!1;return!0}var It=/[\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 ft(i){return i.charCodeAt(0)>=768&&It.test(i)}function on(i,s,u){for(;(u<0?s>0:s<i.length)&&ft(i.charAt(s));)s+=u;return s}function Zt(i,s,u){for(var c=s>u?-1:1;;){if(s==u)return s;var h=(s+u)/2,v=c<0?Math.ceil(h):Math.floor(h);if(v==s)return i(v)?s:u;i(v)?u=v:s=v+c}}function Zn(i,s,u,c){if(!i)return c(s,u,"ltr",0);for(var h=!1,v=0;v<i.length;++v){var b=i[v];(b.from<u&&b.to>s||s==u&&b.to==s)&&(c(Math.max(b.from,s),Math.min(b.to,u),b.level==1?"rtl":"ltr",v),h=!0)}h||c(s,u,"ltr")}var ri=null;function Gt(i,s,u){var c;ri=null;for(var h=0;h<i.length;++h){var v=i[h];if(v.from<s&&v.to>s)return h;v.to==s&&(v.from!=v.to&&u=="before"?c=h:ri=h),v.from==s&&(v.from!=v.to&&u!="before"?c=h:ri=h)}return c??ri}var Qn=(function(){var i="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(M){return M<=247?i.charAt(M):1424<=M&&M<=1524?"R":1536<=M&&M<=1785?s.charAt(M-1536):1774<=M&&M<=2220?"r":8192<=M&&M<=8203?"w":M==8204?"b":"L"}var c=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,h=/[stwN]/,v=/[LRr]/,b=/[Lb1n]/,x=/[1n]/;function C(M,H,K){this.level=M,this.from=H,this.to=K}return function(M,H){var K=H=="ltr"?"L":"R";if(M.length==0||H=="ltr"&&!c.test(M))return!1;for(var se=M.length,re=[],me=0;me<se;++me)re.push(u(M.charCodeAt(me)));for(var xe=0,Te=K;xe<se;++xe){var Oe=re[xe];Oe=="m"?re[xe]=Te:Te=Oe}for(var Fe=0,Le=K;Fe<se;++Fe){var Be=re[Fe];Be=="1"&&Le=="r"?re[Fe]="n":v.test(Be)&&(Le=Be,Be=="r"&&(re[Fe]="R"))}for(var Je=1,Ge=re[0];Je<se-1;++Je){var lt=re[Je];lt=="+"&&Ge=="1"&&re[Je+1]=="1"?re[Je]="1":lt==","&&Ge==re[Je+1]&&(Ge=="1"||Ge=="n")&&(re[Je]=Ge),Ge=lt}for(var Et=0;Et<se;++Et){var un=re[Et];if(un==",")re[Et]="N";else if(un=="%"){var Dt=void 0;for(Dt=Et+1;Dt<se&&re[Dt]=="%";++Dt);for(var nr=Et&&re[Et-1]=="!"||Dt<se&&re[Dt]=="1"?"1":"N",In=Et;In<Dt;++In)re[In]=nr;Et=Dt-1}}for(var Qt=0,Dn=K;Qt<se;++Qt){var hn=re[Qt];Dn=="L"&&hn=="1"?re[Qt]="L":v.test(hn)&&(Dn=hn)}for(var tn=0;tn<se;++tn)if(h.test(re[tn])){var en=void 0;for(en=tn+1;en<se&&h.test(re[en]);++en);for(var Ht=(tn?re[tn-1]:K)=="L",Fn=(en<se?re[en]:K)=="L",rl=Ht==Fn?Ht?"L":"R":K,go=tn;go<en;++go)re[go]=rl;tn=en-1}for(var xn=[],ai,fn=0;fn<se;)if(b.test(re[fn])){var Gh=fn;for(++fn;fn<se&&b.test(re[fn]);++fn);xn.push(new C(0,Gh,fn))}else{var Li=fn,rs=xn.length,is=H=="rtl"?1:0;for(++fn;fn<se&&re[fn]!="L";++fn);for(var En=Li;En<fn;)if(x.test(re[En])){Li<En&&(xn.splice(rs,0,new C(1,Li,En)),rs+=is);var il=En;for(++En;En<fn&&x.test(re[En]);++En);xn.splice(rs,0,new C(2,il,En)),rs+=is,Li=En}else++En;Li<fn&&xn.splice(rs,0,new C(1,Li,fn))}return H=="ltr"&&(xn[0].level==1&&(ai=M.match(/^\s+/))&&(xn[0].from=ai[0].length,xn.unshift(new C(0,0,ai[0].length))),Se(xn).level==1&&(ai=M.match(/\s+$/))&&(Se(xn).to-=ai[0].length,xn.push(new C(0,se-ai[0].length,se)))),H=="rtl"?xn.reverse():xn}})();function at(i,s){var u=i.order;return u==null&&(u=i.order=Qn(i.text,s)),u}var Go=[],Xe=function(i,s,u){if(i.addEventListener)i.addEventListener(s,u,!1);else if(i.attachEvent)i.attachEvent("on"+s,u);else{var c=i._handlers||(i._handlers={});c[s]=(c[s]||Go).concat(u)}};function Ci(i,s){return i._handlers&&i._handlers[s]||Go}function yn(i,s,u){if(i.removeEventListener)i.removeEventListener(s,u,!1);else if(i.detachEvent)i.detachEvent("on"+s,u);else{var c=i._handlers,h=c&&c[s];if(h){var v=ce(h,u);v>-1&&(c[s]=h.slice(0,v).concat(h.slice(v+1)))}}}function Ft(i,s){var u=Ci(i,s);if(u.length)for(var c=Array.prototype.slice.call(arguments,2),h=0;h<u.length;++h)u[h].apply(null,c)}function zt(i,s,u){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),Ft(i,u||s.type,i,s),On(s)||s.codemirrorIgnore}function _r(i){var s=i._handlers&&i._handlers.cursorActivity;if(s)for(var u=i.curOp.cursorActivityHandlers||(i.curOp.cursorActivityHandlers=[]),c=0;c<s.length;++c)ce(u,s[c])==-1&&u.push(s[c])}function er(i,s){return Ci(i,s).length>0}function Nr(i){i.prototype.on=function(s,u){Xe(this,s,u)},i.prototype.off=function(s,u){yn(this,s,u)}}function bn(i){i.preventDefault?i.preventDefault():i.returnValue=!1}function Os(i){i.stopPropagation?i.stopPropagation():i.cancelBubble=!0}function On(i){return i.defaultPrevented!=null?i.defaultPrevented:i.returnValue==!1}function ro(i){bn(i),Os(i)}function Zl(i){return i.target||i.srcElement}function Or(i){var s=i.which;return s==null&&(i.button&1?s=1:i.button&2?s=3:i.button&4&&(s=2)),D&&i.ctrlKey&&s==1&&(s=3),s}var eh=(function(){if(d&&p<9)return!1;var i=S("div");return"draggable"in i||"dragDrop"in i})(),Ls;function Jc(i){if(Ls==null){var s=S("span","");T(i,S("span",[s,document.createTextNode("x")])),i.firstChild.offsetHeight!=0&&(Ls=s.offsetWidth<=1&&s.offsetHeight>2&&!(d&&p<8))}var u=Ls?S("span",""):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var Ql;function io(i){if(Ql!=null)return Ql;var s=T(i,document.createTextNode("AخA")),u=z(s,0,1).getBoundingClientRect(),c=z(s,1,2).getBoundingClientRect();return L(i),!u||u.left==u.right?!1:Ql=c.right-u.right<3}var kr=`
|
|
54
|
-
|
|
55
|
-
b`.split(/\n/).length!=3?function(i){for(var s=0,u=[],c=i.length;s<=c;){var h=i.indexOf(`
|
|
56
|
-
`,s);h==-1&&(h=i.length);var v=i.slice(s,i.charAt(h-1)=="\r"?h-1:h),b=v.indexOf("\r");b!=-1?(u.push(v.slice(0,b)),s+=b+1):(u.push(v),s=h+1)}return u}:function(i){return i.split(/\r\n?|\n/)},oo=window.getSelection?function(i){try{return i.selectionStart!=i.selectionEnd}catch{return!1}}:function(i){var s;try{s=i.ownerDocument.selection.createRange()}catch{}return!s||s.parentElement()!=i?!1:s.compareEndPoints("StartToEnd",s)!=0},Zc=(function(){var i=S("div");return"oncopy"in i?!0:(i.setAttribute("oncopy","return;"),typeof i.oncopy=="function")})(),Lr=null;function th(i){if(Lr!=null)return Lr;var s=T(i,S("span","x")),u=s.getBoundingClientRect(),c=z(s,0,1).getBoundingClientRect();return Lr=Math.abs(u.left-c.left)>1}var Rs={},Rr={};function Pr(i,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),Rs[i]=s}function Ko(i,s){Rr[i]=s}function Ps(i){if(typeof i=="string"&&Rr.hasOwnProperty(i))i=Rr[i];else if(i&&typeof i.name=="string"&&Rr.hasOwnProperty(i.name)){var s=Rr[i.name];typeof s=="string"&&(s={name:s}),i=oe(s,i),i.name=s.name}else{if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(i))return Ps("application/xml");if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(i))return Ps("application/json")}return typeof i=="string"?{name:i}:i||{name:"null"}}function Is(i,s){s=Ps(s);var u=Rs[s.name];if(!u)return Is(i,"text/plain");var c=u(i,s);if(so.hasOwnProperty(s.name)){var h=so[s.name];for(var v in h)h.hasOwnProperty(v)&&(c.hasOwnProperty(v)&&(c["_"+v]=c[v]),c[v]=h[v])}if(c.name=s.name,s.helperType&&(c.helperType=s.helperType),s.modeProps)for(var b in s.modeProps)c[b]=s.modeProps[b];return c}var so={};function Ds(i,s){var u=so.hasOwnProperty(i)?so[i]:so[i]={};Q(s,u)}function ii(i,s){if(s===!0)return s;if(i.copyState)return i.copyState(s);var u={};for(var c in s){var h=s[c];h instanceof Array&&(h=h.concat([])),u[c]=h}return u}function ea(i,s){for(var u;i.innerMode&&(u=i.innerMode(s),!(!u||u.mode==i));)s=u.state,i=u.mode;return u||{mode:i,state:s}}function Fs(i,s,u){return i.startState?i.startState(s,u):!0}var Bt=function(i,s,u){this.pos=this.start=0,this.string=i,this.tabSize=s||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};Bt.prototype.eol=function(){return this.pos>=this.string.length},Bt.prototype.sol=function(){return this.pos==this.lineStart},Bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bt.prototype.eat=function(i){var s=this.string.charAt(this.pos),u;if(typeof i=="string"?u=s==i:u=s&&(i.test?i.test(s):i(s)),u)return++this.pos,s},Bt.prototype.eatWhile=function(i){for(var s=this.pos;this.eat(i););return this.pos>s},Bt.prototype.eatSpace=function(){for(var i=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>i},Bt.prototype.skipToEnd=function(){this.pos=this.string.length},Bt.prototype.skipTo=function(i){var s=this.string.indexOf(i,this.pos);if(s>-1)return this.pos=s,!0},Bt.prototype.backUp=function(i){this.pos-=i},Bt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ie(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ie(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.indentation=function(){return ie(this.string,null,this.tabSize)-(this.lineStart?ie(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.match=function(i,s,u){if(typeof i=="string"){var c=function(b){return u?b.toLowerCase():b},h=this.string.substr(this.pos,i.length);if(c(h)==c(i))return s!==!1&&(this.pos+=i.length),!0}else{var v=this.string.slice(this.pos).match(i);return v&&v.index>0?null:(v&&s!==!1&&(this.pos+=v[0].length),v)}},Bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bt.prototype.hideFirstChars=function(i,s){this.lineStart+=i;try{return s()}finally{this.lineStart-=i}},Bt.prototype.lookAhead=function(i){var s=this.lineOracle;return s&&s.lookAhead(i)},Bt.prototype.baseToken=function(){var i=this.lineOracle;return i&&i.baseToken(this.pos)};function Ue(i,s){if(s-=i.first,s<0||s>=i.size)throw new Error("There is no line "+(s+i.first)+" in the document.");for(var u=i;!u.lines;)for(var c=0;;++c){var h=u.children[c],v=h.chunkSize();if(s<v){u=h;break}s-=v}return u.lines[s]}function Ei(i,s,u){var c=[],h=s.line;return i.iter(s.line,u.line+1,function(v){var b=v.text;h==u.line&&(b=b.slice(0,u.ch)),h==s.line&&(b=b.slice(s.ch)),c.push(b),++h}),c}function ta(i,s,u){var c=[];return i.iter(s,u,function(h){c.push(h.text)}),c}function fr(i,s){var u=s-i.height;if(u)for(var c=i;c;c=c.parent)c.height+=u}function O(i){if(i.parent==null)return null;for(var s=i.parent,u=ce(s.lines,i),c=s.parent;c;s=c,c=c.parent)for(var h=0;c.children[h]!=s;++h)u+=c.children[h].chunkSize();return u+s.first}function G(i,s){var u=i.first;e:do{for(var c=0;c<i.children.length;++c){var h=i.children[c],v=h.height;if(s<v){i=h;continue e}s-=v,u+=h.chunkSize()}return u}while(!i.lines);for(var b=0;b<i.lines.length;++b){var x=i.lines[b],C=x.height;if(s<C)break;s-=C}return u+b}function ye(i,s){return s>=i.first&&s<i.first+i.size}function ke(i,s){return String(i.lineNumberFormatter(s+i.firstLineNumber))}function de(i,s,u){if(u===void 0&&(u=null),!(this instanceof de))return new de(i,s,u);this.line=i,this.ch=s,this.sticky=u}function De(i,s){return i.line-s.line||i.ch-s.ch}function gt(i,s){return i.sticky==s.sticky&&De(i,s)==0}function sn(i){return de(i.line,i.ch)}function Ln(i,s){return De(i,s)<0?s:i}function zs(i,s){return De(i,s)<0?i:s}function Mv(i,s){return Math.max(i.first,Math.min(s,i.first+i.size-1))}function ot(i,s){if(s.line<i.first)return de(i.first,0);var u=i.first+i.size-1;return s.line>u?de(u,Ue(i,u).text.length):JC(s,Ue(i,s.line).text.length)}function JC(i,s){var u=i.ch;return u==null||u>s?de(i.line,s):u<0?de(i.line,0):i}function $v(i,s){for(var u=[],c=0;c<s.length;c++)u[c]=ot(i,s[c]);return u}var Qc=function(i,s){this.state=i,this.lookAhead=s},oi=function(i,s,u,c){this.state=s,this.doc=i,this.line=u,this.maxLookAhead=c||0,this.baseTokens=null,this.baseTokenPos=1};oi.prototype.lookAhead=function(i){var s=this.doc.getLine(this.line+i);return s!=null&&i>this.maxLookAhead&&(this.maxLookAhead=i),s},oi.prototype.baseToken=function(i){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=i;)this.baseTokenPos+=2;var s=this.baseTokens[this.baseTokenPos+1];return{type:s&&s.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-i}},oi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},oi.fromSaved=function(i,s,u){return s instanceof Qc?new oi(i,ii(i.mode,s.state),u,s.lookAhead):new oi(i,ii(i.mode,s),u)},oi.prototype.save=function(i){var s=i!==!1?ii(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Qc(s,this.maxLookAhead):s};function Nv(i,s,u,c){var h=[i.state.modeGen],v={};Dv(i,s.text,i.doc.mode,u,function(M,H){return h.push(M,H)},v,c);for(var b=u.state,x=function(M){u.baseTokens=h;var H=i.state.overlays[M],K=1,se=0;u.state=!0,Dv(i,s.text,H.mode,u,function(re,me){for(var xe=K;se<re;){var Te=h[K];Te>re&&h.splice(K,1,re,h[K+1],Te),K+=2,se=Math.min(re,Te)}if(me)if(H.opaque)h.splice(xe,K-xe,re,"overlay "+me),K=xe+2;else for(;xe<K;xe+=2){var Oe=h[xe+1];h[xe+1]=(Oe?Oe+" ":"")+"overlay "+me}},v),u.state=b,u.baseTokens=null,u.baseTokenPos=1},C=0;C<i.state.overlays.length;++C)x(C);return{styles:h,classes:v.bgClass||v.textClass?v:null}}function Ov(i,s,u){if(!s.styles||s.styles[0]!=i.state.modeGen){var c=na(i,O(s)),h=s.text.length>i.options.maxHighlightLength&&ii(i.doc.mode,c.state),v=Nv(i,s,c);h&&(c.state=h),s.stateAfter=c.save(!h),s.styles=v.styles,v.classes?s.styleClasses=v.classes:s.styleClasses&&(s.styleClasses=null),u===i.doc.highlightFrontier&&(i.doc.modeFrontier=Math.max(i.doc.modeFrontier,++i.doc.highlightFrontier))}return s.styles}function na(i,s,u){var c=i.doc,h=i.display;if(!c.mode.startState)return new oi(c,!0,s);var v=ZC(i,s,u),b=v>c.first&&Ue(c,v-1).stateAfter,x=b?oi.fromSaved(c,b,v):new oi(c,Fs(c.mode),v);return c.iter(v,s,function(C){nh(i,C.text,x);var M=x.line;C.stateAfter=M==s-1||M%5==0||M>=h.viewFrom&&M<h.viewTo?x.save():null,x.nextLine()}),u&&(c.modeFrontier=x.line),x}function nh(i,s,u,c){var h=i.doc.mode,v=new Bt(s,i.options.tabSize,u);for(v.start=v.pos=c||0,s==""&&Lv(h,u.state);!v.eol();)rh(h,v,u.state),v.start=v.pos}function Lv(i,s){if(i.blankLine)return i.blankLine(s);if(i.innerMode){var u=ea(i,s);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function rh(i,s,u,c){for(var h=0;h<10;h++){c&&(c[0]=ea(i,u).mode);var v=i.token(s,u);if(s.pos>s.start)return v}throw new Error("Mode "+i.name+" failed to advance stream.")}var Rv=function(i,s,u){this.start=i.start,this.end=i.pos,this.string=i.current(),this.type=s||null,this.state=u};function Pv(i,s,u,c){var h=i.doc,v=h.mode,b;s=ot(h,s);var x=Ue(h,s.line),C=na(i,s.line,u),M=new Bt(x.text,i.options.tabSize,C),H;for(c&&(H=[]);(c||M.pos<s.ch)&&!M.eol();)M.start=M.pos,b=rh(v,M,C.state),c&&H.push(new Rv(M,b,ii(h.mode,C.state)));return c?H:new Rv(M,b,C.state)}function Iv(i,s){if(i)for(;;){var u=i.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;i=i.slice(0,u.index)+i.slice(u.index+u[0].length);var c=u[1]?"bgClass":"textClass";s[c]==null?s[c]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(s[c])||(s[c]+=" "+u[2])}return i}function Dv(i,s,u,c,h,v,b){var x=u.flattenSpans;x==null&&(x=i.options.flattenSpans);var C=0,M=null,H=new Bt(s,i.options.tabSize,c),K,se=i.options.addModeClass&&[null];for(s==""&&Iv(Lv(u,c.state),v);!H.eol();){if(H.pos>i.options.maxHighlightLength?(x=!1,b&&nh(i,s,c,H.pos),H.pos=s.length,K=null):K=Iv(rh(u,H,c.state,se),v),se){var re=se[0].name;re&&(K="m-"+(K?re+" "+K:re))}if(!x||M!=K){for(;C<H.start;)C=Math.min(H.start,C+5e3),h(C,M);M=K}H.start=H.pos}for(;C<H.pos;){var me=Math.min(H.pos,C+5e3);h(me,M),C=me}}function ZC(i,s,u){for(var c,h,v=i.doc,b=u?-1:s-(i.doc.mode.innerMode?1e3:100),x=s;x>b;--x){if(x<=v.first)return v.first;var C=Ue(v,x-1),M=C.stateAfter;if(M&&(!u||x+(M instanceof Qc?M.lookAhead:0)<=v.modeFrontier))return x;var H=ie(C.text,null,i.options.tabSize);(h==null||c>H)&&(h=x-1,c=H)}return h}function QC(i,s){if(i.modeFrontier=Math.min(i.modeFrontier,s),!(i.highlightFrontier<s-10)){for(var u=i.first,c=s-1;c>u;c--){var h=Ue(i,c).stateAfter;if(h&&(!(h instanceof Qc)||c+h.lookAhead<s)){u=c+1;break}}i.highlightFrontier=Math.min(i.highlightFrontier,u)}}var Fv=!1,Ai=!1;function eE(){Fv=!0}function tE(){Ai=!0}function eu(i,s,u){this.marker=i,this.from=s,this.to=u}function ra(i,s){if(i)for(var u=0;u<i.length;++u){var c=i[u];if(c.marker==s)return c}}function nE(i,s){for(var u,c=0;c<i.length;++c)i[c]!=s&&(u||(u=[])).push(i[c]);return u}function rE(i,s,u){var c=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));c&&i.markedSpans&&c.has(i.markedSpans)?i.markedSpans.push(s):(i.markedSpans=i.markedSpans?i.markedSpans.concat([s]):[s],c&&c.add(i.markedSpans)),s.marker.attachLine(i)}function iE(i,s,u){var c;if(i)for(var h=0;h<i.length;++h){var v=i[h],b=v.marker,x=v.from==null||(b.inclusiveLeft?v.from<=s:v.from<s);if(x||v.from==s&&b.type=="bookmark"&&(!u||!v.marker.insertLeft)){var C=v.to==null||(b.inclusiveRight?v.to>=s:v.to>s);(c||(c=[])).push(new eu(b,v.from,C?null:v.to))}}return c}function oE(i,s,u){var c;if(i)for(var h=0;h<i.length;++h){var v=i[h],b=v.marker,x=v.to==null||(b.inclusiveRight?v.to>=s:v.to>s);if(x||v.from==s&&b.type=="bookmark"&&(!u||v.marker.insertLeft)){var C=v.from==null||(b.inclusiveLeft?v.from<=s:v.from<s);(c||(c=[])).push(new eu(b,C?null:v.from-s,v.to==null?null:v.to-s))}}return c}function ih(i,s){if(s.full)return null;var u=ye(i,s.from.line)&&Ue(i,s.from.line).markedSpans,c=ye(i,s.to.line)&&Ue(i,s.to.line).markedSpans;if(!u&&!c)return null;var h=s.from.ch,v=s.to.ch,b=De(s.from,s.to)==0,x=iE(u,h,b),C=oE(c,v,b),M=s.text.length==1,H=Se(s.text).length+(M?h:0);if(x)for(var K=0;K<x.length;++K){var se=x[K];if(se.to==null){var re=ra(C,se.marker);re?M&&(se.to=re.to==null?null:re.to+H):se.to=h}}if(C)for(var me=0;me<C.length;++me){var xe=C[me];if(xe.to!=null&&(xe.to+=H),xe.from==null){var Te=ra(x,xe.marker);Te||(xe.from=H,M&&(x||(x=[])).push(xe))}else xe.from+=H,M&&(x||(x=[])).push(xe)}x&&(x=zv(x)),C&&C!=x&&(C=zv(C));var Oe=[x];if(!M){var Fe=s.text.length-2,Le;if(Fe>0&&x)for(var Be=0;Be<x.length;++Be)x[Be].to==null&&(Le||(Le=[])).push(new eu(x[Be].marker,null,null));for(var Je=0;Je<Fe;++Je)Oe.push(Le);Oe.push(C)}return Oe}function zv(i){for(var s=0;s<i.length;++s){var u=i[s];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&i.splice(s--,1)}return i.length?i:null}function sE(i,s,u){var c=null;if(i.iter(s.line,u.line+1,function(re){if(re.markedSpans)for(var me=0;me<re.markedSpans.length;++me){var xe=re.markedSpans[me].marker;xe.readOnly&&(!c||ce(c,xe)==-1)&&(c||(c=[])).push(xe)}}),!c)return null;for(var h=[{from:s,to:u}],v=0;v<c.length;++v)for(var b=c[v],x=b.find(0),C=0;C<h.length;++C){var M=h[C];if(!(De(M.to,x.from)<0||De(M.from,x.to)>0)){var H=[C,1],K=De(M.from,x.from),se=De(M.to,x.to);(K<0||!b.inclusiveLeft&&!K)&&H.push({from:M.from,to:x.from}),(se>0||!b.inclusiveRight&&!se)&&H.push({from:x.to,to:M.to}),h.splice.apply(h,H),C+=H.length-3}}return h}function Bv(i){var s=i.markedSpans;if(s){for(var u=0;u<s.length;++u)s[u].marker.detachLine(i);i.markedSpans=null}}function Hv(i,s){if(s){for(var u=0;u<s.length;++u)s[u].marker.attachLine(i);i.markedSpans=s}}function tu(i){return i.inclusiveLeft?-1:0}function nu(i){return i.inclusiveRight?1:0}function oh(i,s){var u=i.lines.length-s.lines.length;if(u!=0)return u;var c=i.find(),h=s.find(),v=De(c.from,h.from)||tu(i)-tu(s);if(v)return-v;var b=De(c.to,h.to)||nu(i)-nu(s);return b||s.id-i.id}function jv(i,s){var u=Ai&&i.markedSpans,c;if(u)for(var h=void 0,v=0;v<u.length;++v)h=u[v],h.marker.collapsed&&(s?h.from:h.to)==null&&(!c||oh(c,h.marker)<0)&&(c=h.marker);return c}function Wv(i){return jv(i,!0)}function ru(i){return jv(i,!1)}function lE(i,s){var u=Ai&&i.markedSpans,c;if(u)for(var h=0;h<u.length;++h){var v=u[h];v.marker.collapsed&&(v.from==null||v.from<s)&&(v.to==null||v.to>s)&&(!c||oh(c,v.marker)<0)&&(c=v.marker)}return c}function Uv(i,s,u,c,h){var v=Ue(i,s),b=Ai&&v.markedSpans;if(b)for(var x=0;x<b.length;++x){var C=b[x];if(C.marker.collapsed){var M=C.marker.find(0),H=De(M.from,u)||tu(C.marker)-tu(h),K=De(M.to,c)||nu(C.marker)-nu(h);if(!(H>=0&&K<=0||H<=0&&K>=0)&&(H<=0&&(C.marker.inclusiveRight&&h.inclusiveLeft?De(M.to,u)>=0:De(M.to,u)>0)||H>=0&&(C.marker.inclusiveRight&&h.inclusiveLeft?De(M.from,c)<=0:De(M.from,c)<0)))return!0}}}function Ir(i){for(var s;s=Wv(i);)i=s.find(-1,!0).line;return i}function aE(i){for(var s;s=ru(i);)i=s.find(1,!0).line;return i}function cE(i){for(var s,u;s=ru(i);)i=s.find(1,!0).line,(u||(u=[])).push(i);return u}function sh(i,s){var u=Ue(i,s),c=Ir(u);return u==c?s:O(c)}function qv(i,s){if(s>i.lastLine())return s;var u=Ue(i,s),c;if(!lo(i,u))return s;for(;c=ru(u);)u=c.find(1,!0).line;return O(u)+1}function lo(i,s){var u=Ai&&s.markedSpans;if(u){for(var c=void 0,h=0;h<u.length;++h)if(c=u[h],!!c.marker.collapsed){if(c.from==null)return!0;if(!c.marker.widgetNode&&c.from==0&&c.marker.inclusiveLeft&&lh(i,s,c))return!0}}}function lh(i,s,u){if(u.to==null){var c=u.marker.find(1,!0);return lh(i,c.line,ra(c.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==s.text.length)return!0;for(var h=void 0,v=0;v<s.markedSpans.length;++v)if(h=s.markedSpans[v],h.marker.collapsed&&!h.marker.widgetNode&&h.from==u.to&&(h.to==null||h.to!=u.from)&&(h.marker.inclusiveLeft||u.marker.inclusiveRight)&&lh(i,s,h))return!0}function Mi(i){i=Ir(i);for(var s=0,u=i.parent,c=0;c<u.lines.length;++c){var h=u.lines[c];if(h==i)break;s+=h.height}for(var v=u.parent;v;u=v,v=u.parent)for(var b=0;b<v.children.length;++b){var x=v.children[b];if(x==u)break;s+=x.height}return s}function iu(i){if(i.height==0)return 0;for(var s=i.text.length,u,c=i;u=Wv(c);){var h=u.find(0,!0);c=h.from.line,s+=h.from.ch-h.to.ch}for(c=i;u=ru(c);){var v=u.find(0,!0);s-=c.text.length-v.from.ch,c=v.to.line,s+=c.text.length-v.to.ch}return s}function ah(i){var s=i.display,u=i.doc;s.maxLine=Ue(u,u.first),s.maxLineLength=iu(s.maxLine),s.maxLineChanged=!0,u.iter(function(c){var h=iu(c);h>s.maxLineLength&&(s.maxLineLength=h,s.maxLine=c)})}var Bs=function(i,s,u){this.text=i,Hv(this,s),this.height=u?u(this):1};Bs.prototype.lineNo=function(){return O(this)},Nr(Bs);function uE(i,s,u,c){i.text=s,i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null),i.order!=null&&(i.order=null),Bv(i),Hv(i,u);var h=c?c(i):1;h!=i.height&&fr(i,h)}function fE(i){i.parent=null,Bv(i)}var dE={},hE={};function Vv(i,s){if(!i||/^\s*$/.test(i))return null;var u=s.addModeClass?hE:dE;return u[i]||(u[i]=i.replace(/\S+/g,"cm-$&"))}function Gv(i,s){var u=R("span",null,null,m?"padding-right: .1px":null),c={pre:R("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:i,trailingSpace:!1,splitSpaces:i.getOption("lineWrapping")};s.measure={};for(var h=0;h<=(s.rest?s.rest.length:0);h++){var v=h?s.rest[h-1]:s.line,b=void 0;c.pos=0,c.addToken=mE,io(i.display.measure)&&(b=at(v,i.doc.direction))&&(c.addToken=vE(c.addToken,b)),c.map=[];var x=s!=i.display.externalMeasured&&O(v);yE(v,c,Ov(i,v,x)),v.styleClasses&&(v.styleClasses.bgClass&&(c.bgClass=je(v.styleClasses.bgClass,c.bgClass||"")),v.styleClasses.textClass&&(c.textClass=je(v.styleClasses.textClass,c.textClass||""))),c.map.length==0&&c.map.push(0,0,c.content.appendChild(Jc(i.display.measure))),h==0?(s.measure.map=c.map,s.measure.cache={}):((s.measure.maps||(s.measure.maps=[])).push(c.map),(s.measure.caches||(s.measure.caches=[])).push({}))}if(m){var C=c.content.lastChild;(/\bcm-tab\b/.test(C.className)||C.querySelector&&C.querySelector(".cm-tab"))&&(c.content.className="cm-tab-wrap-hack")}return Ft(i,"renderLine",i,s.line,c.pre),c.pre.className&&(c.textClass=je(c.pre.className,c.textClass||"")),c}function pE(i){var s=S("span","•","cm-invalidchar");return s.title="\\u"+i.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function mE(i,s,u,c,h,v,b){if(s){var x=i.splitSpaces?gE(s,i.trailingSpace):s,C=i.cm.state.specialChars,M=!1,H;if(!C.test(s))i.col+=s.length,H=document.createTextNode(x),i.map.push(i.pos,i.pos+s.length,H),d&&p<9&&(M=!0),i.pos+=s.length;else{H=document.createDocumentFragment();for(var K=0;;){C.lastIndex=K;var se=C.exec(s),re=se?se.index-K:s.length-K;if(re){var me=document.createTextNode(x.slice(K,K+re));d&&p<9?H.appendChild(S("span",[me])):H.appendChild(me),i.map.push(i.pos,i.pos+re,me),i.col+=re,i.pos+=re}if(!se)break;K+=re+1;var xe=void 0;if(se[0]==" "){var Te=i.cm.options.tabSize,Oe=Te-i.col%Te;xe=H.appendChild(S("span",$e(Oe),"cm-tab")),xe.setAttribute("role","presentation"),xe.setAttribute("cm-text"," "),i.col+=Oe}else se[0]=="\r"||se[0]==`
|
|
57
|
-
`?(xe=H.appendChild(S("span",se[0]=="\r"?"␍":"","cm-invalidchar")),xe.setAttribute("cm-text",se[0]),i.col+=1):(xe=i.cm.options.specialCharPlaceholder(se[0]),xe.setAttribute("cm-text",se[0]),d&&p<9?H.appendChild(S("span",[xe])):H.appendChild(xe),i.col+=1);i.map.push(i.pos,i.pos+1,xe),i.pos++}}if(i.trailingSpace=x.charCodeAt(s.length-1)==32,u||c||h||M||v||b){var Fe=u||"";c&&(Fe+=c),h&&(Fe+=h);var Le=S("span",[H],Fe,v);if(b)for(var Be in b)b.hasOwnProperty(Be)&&Be!="style"&&Be!="class"&&Le.setAttribute(Be,b[Be]);return i.content.appendChild(Le)}i.content.appendChild(H)}}function gE(i,s){if(i.length>1&&!/ /.test(i))return i;for(var u=s,c="",h=0;h<i.length;h++){var v=i.charAt(h);v==" "&&u&&(h==i.length-1||i.charCodeAt(h+1)==32)&&(v=" "),c+=v,u=v==" "}return c}function vE(i,s){return function(u,c,h,v,b,x,C){h=h?h+" cm-force-border":"cm-force-border";for(var M=u.pos,H=M+c.length;;){for(var K=void 0,se=0;se<s.length&&(K=s[se],!(K.to>M&&K.from<=M));se++);if(K.to>=H)return i(u,c,h,v,b,x,C);i(u,c.slice(0,K.to-M),h,v,null,x,C),v=null,c=c.slice(K.to-M),M=K.to}}}function Kv(i,s,u,c){var h=!c&&u.widgetNode;h&&i.map.push(i.pos,i.pos+s,h),!c&&i.cm.display.input.needsContentAttribute&&(h||(h=i.content.appendChild(document.createElement("span"))),h.setAttribute("cm-marker",u.id)),h&&(i.cm.display.input.setUneditable(h),i.content.appendChild(h)),i.pos+=s,i.trailingSpace=!1}function yE(i,s,u){var c=i.markedSpans,h=i.text,v=0;if(!c){for(var b=1;b<u.length;b+=2)s.addToken(s,h.slice(v,v=u[b]),Vv(u[b+1],s.cm.options));return}for(var x=h.length,C=0,M=1,H="",K,se,re=0,me,xe,Te,Oe,Fe;;){if(re==C){me=xe=Te=se="",Fe=null,Oe=null,re=1/0;for(var Le=[],Be=void 0,Je=0;Je<c.length;++Je){var Ge=c[Je],lt=Ge.marker;if(lt.type=="bookmark"&&Ge.from==C&<.widgetNode)Le.push(lt);else if(Ge.from<=C&&(Ge.to==null||Ge.to>C||lt.collapsed&&Ge.to==C&&Ge.from==C)){if(Ge.to!=null&&Ge.to!=C&&re>Ge.to&&(re=Ge.to,xe=""),lt.className&&(me+=" "+lt.className),lt.css&&(se=(se?se+";":"")+lt.css),lt.startStyle&&Ge.from==C&&(Te+=" "+lt.startStyle),lt.endStyle&&Ge.to==re&&(Be||(Be=[])).push(lt.endStyle,Ge.to),lt.title&&((Fe||(Fe={})).title=lt.title),lt.attributes)for(var Et in lt.attributes)(Fe||(Fe={}))[Et]=lt.attributes[Et];lt.collapsed&&(!Oe||oh(Oe.marker,lt)<0)&&(Oe=Ge)}else Ge.from>C&&re>Ge.from&&(re=Ge.from)}if(Be)for(var un=0;un<Be.length;un+=2)Be[un+1]==re&&(xe+=" "+Be[un]);if(!Oe||Oe.from==C)for(var Dt=0;Dt<Le.length;++Dt)Kv(s,0,Le[Dt]);if(Oe&&(Oe.from||0)==C){if(Kv(s,(Oe.to==null?x+1:Oe.to)-C,Oe.marker,Oe.from==null),Oe.to==null)return;Oe.to==C&&(Oe=!1)}}if(C>=x)break;for(var nr=Math.min(x,re);;){if(H){var In=C+H.length;if(!Oe){var Qt=In>nr?H.slice(0,nr-C):H;s.addToken(s,Qt,K?K+me:me,Te,C+Qt.length==re?xe:"",se,Fe)}if(In>=nr){H=H.slice(nr-C),C=nr;break}C=In,Te=""}H=h.slice(v,v=u[M++]),K=Vv(u[M++],s.cm.options)}}}function Yv(i,s,u){this.line=s,this.rest=cE(s),this.size=this.rest?O(Se(this.rest))-u+1:1,this.node=this.text=null,this.hidden=lo(i,s)}function ou(i,s,u){for(var c=[],h,v=s;v<u;v=h){var b=new Yv(i.doc,Ue(i.doc,v),v);h=v+b.size,c.push(b)}return c}var Hs=null;function bE(i){Hs?Hs.ops.push(i):i.ownsGroup=Hs={ops:[i],delayedCallbacks:[]}}function wE(i){var s=i.delayedCallbacks,u=0;do{for(;u<s.length;u++)s[u].call(null);for(var c=0;c<i.ops.length;c++){var h=i.ops[c];if(h.cursorActivityHandlers)for(;h.cursorActivityCalled<h.cursorActivityHandlers.length;)h.cursorActivityHandlers[h.cursorActivityCalled++].call(null,h.cm)}}while(u<s.length)}function xE(i,s){var u=i.ownsGroup;if(u)try{wE(u)}finally{Hs=null,s(u)}}var ia=null;function ln(i,s){var u=Ci(i,s);if(u.length){var c=Array.prototype.slice.call(arguments,2),h;Hs?h=Hs.delayedCallbacks:ia?h=ia:(h=ia=[],setTimeout(SE,0));for(var v=function(x){h.push(function(){return u[x].apply(null,c)})},b=0;b<u.length;++b)v(b)}}function SE(){var i=ia;ia=null;for(var s=0;s<i.length;++s)i[s]()}function Xv(i,s,u,c){for(var h=0;h<s.changes.length;h++){var v=s.changes[h];v=="text"?kE(i,s):v=="gutter"?Zv(i,s,u,c):v=="class"?ch(i,s):v=="widget"&&TE(i,s,c)}s.changes=null}function oa(i){return i.node==i.text&&(i.node=S("div",null,null,"position: relative"),i.text.parentNode&&i.text.parentNode.replaceChild(i.node,i.text),i.node.appendChild(i.text),d&&p<8&&(i.node.style.zIndex=2)),i.node}function _E(i,s){var u=s.bgClass?s.bgClass+" "+(s.line.bgClass||""):s.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),s.background)u?s.background.className=u:(s.background.parentNode.removeChild(s.background),s.background=null);else if(u){var c=oa(s);s.background=c.insertBefore(S("div",null,u),c.firstChild),i.display.input.setUneditable(s.background)}}function Jv(i,s){var u=i.display.externalMeasured;return u&&u.line==s.line?(i.display.externalMeasured=null,s.measure=u.measure,u.built):Gv(i,s)}function kE(i,s){var u=s.text.className,c=Jv(i,s);s.text==s.node&&(s.node=c.pre),s.text.parentNode.replaceChild(c.pre,s.text),s.text=c.pre,c.bgClass!=s.bgClass||c.textClass!=s.textClass?(s.bgClass=c.bgClass,s.textClass=c.textClass,ch(i,s)):u&&(s.text.className=u)}function ch(i,s){_E(i,s),s.line.wrapClass?oa(s).className=s.line.wrapClass:s.node!=s.text&&(s.node.className="");var u=s.textClass?s.textClass+" "+(s.line.textClass||""):s.line.textClass;s.text.className=u||""}function Zv(i,s,u,c){if(s.gutter&&(s.node.removeChild(s.gutter),s.gutter=null),s.gutterBackground&&(s.node.removeChild(s.gutterBackground),s.gutterBackground=null),s.line.gutterClass){var h=oa(s);s.gutterBackground=S("div",null,"CodeMirror-gutter-background "+s.line.gutterClass,"left: "+(i.options.fixedGutter?c.fixedPos:-c.gutterTotalWidth)+"px; width: "+c.gutterTotalWidth+"px"),i.display.input.setUneditable(s.gutterBackground),h.insertBefore(s.gutterBackground,s.text)}var v=s.line.gutterMarkers;if(i.options.lineNumbers||v){var b=oa(s),x=s.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(i.options.fixedGutter?c.fixedPos:-c.gutterTotalWidth)+"px");if(x.setAttribute("aria-hidden","true"),i.display.input.setUneditable(x),b.insertBefore(x,s.text),s.line.gutterClass&&(x.className+=" "+s.line.gutterClass),i.options.lineNumbers&&(!v||!v["CodeMirror-linenumbers"])&&(s.lineNumber=x.appendChild(S("div",ke(i.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+c.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+i.display.lineNumInnerWidth+"px"))),v)for(var C=0;C<i.display.gutterSpecs.length;++C){var M=i.display.gutterSpecs[C].className,H=v.hasOwnProperty(M)&&v[M];H&&x.appendChild(S("div",[H],"CodeMirror-gutter-elt","left: "+c.gutterLeft[M]+"px; width: "+c.gutterWidth[M]+"px"))}}}function TE(i,s,u){s.alignable&&(s.alignable=null);for(var c=q("CodeMirror-linewidget"),h=s.node.firstChild,v=void 0;h;h=v)v=h.nextSibling,c.test(h.className)&&s.node.removeChild(h);Qv(i,s,u)}function CE(i,s,u,c){var h=Jv(i,s);return s.text=s.node=h.pre,h.bgClass&&(s.bgClass=h.bgClass),h.textClass&&(s.textClass=h.textClass),ch(i,s),Zv(i,s,u,c),Qv(i,s,c),s.node}function Qv(i,s,u){if(ey(i,s.line,s,u,!0),s.rest)for(var c=0;c<s.rest.length;c++)ey(i,s.rest[c],s,u,!1)}function ey(i,s,u,c,h){if(s.widgets)for(var v=oa(u),b=0,x=s.widgets;b<x.length;++b){var C=x[b],M=S("div",[C.node],"CodeMirror-linewidget"+(C.className?" "+C.className:""));C.handleMouseEvents||M.setAttribute("cm-ignore-events","true"),EE(C,M,u,c),i.display.input.setUneditable(M),h&&C.above?v.insertBefore(M,u.gutter||u.text):v.appendChild(M),ln(C,"redraw")}}function EE(i,s,u,c){if(i.noHScroll){(u.alignable||(u.alignable=[])).push(s);var h=c.wrapperWidth;s.style.left=c.fixedPos+"px",i.coverGutter||(h-=c.gutterTotalWidth,s.style.paddingLeft=c.gutterTotalWidth+"px"),s.style.width=h+"px"}i.coverGutter&&(s.style.zIndex=5,s.style.position="relative",i.noHScroll||(s.style.marginLeft=-c.gutterTotalWidth+"px"))}function sa(i){if(i.height!=null)return i.height;var s=i.doc.cm;if(!s)return 0;if(!ae(document.body,i.node)){var u="position: relative;";i.coverGutter&&(u+="margin-left: -"+s.display.gutters.offsetWidth+"px;"),i.noHScroll&&(u+="width: "+s.display.wrapper.clientWidth+"px;"),T(s.display.measure,S("div",[i.node],null,u))}return i.height=i.node.parentNode.offsetHeight}function $i(i,s){for(var u=Zl(s);u!=i.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==i.sizer&&u!=i.mover)return!0}function su(i){return i.lineSpace.offsetTop}function uh(i){return i.mover.offsetHeight-i.lineSpace.offsetHeight}function ty(i){if(i.cachedPaddingH)return i.cachedPaddingH;var s=T(i.measure,S("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(s):s.currentStyle,c={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(c.left)&&!isNaN(c.right)&&(i.cachedPaddingH=c),c}function si(i){return F-i.display.nativeBarWidth}function Yo(i){return i.display.scroller.clientWidth-si(i)-i.display.barWidth}function fh(i){return i.display.scroller.clientHeight-si(i)-i.display.barHeight}function AE(i,s,u){var c=i.options.lineWrapping,h=c&&Yo(i);if(!s.measure.heights||c&&s.measure.width!=h){var v=s.measure.heights=[];if(c){s.measure.width=h;for(var b=s.text.firstChild.getClientRects(),x=0;x<b.length-1;x++){var C=b[x],M=b[x+1];Math.abs(C.bottom-M.bottom)>2&&v.push((C.bottom+M.top)/2-u.top)}}v.push(u.bottom-u.top)}}function ny(i,s,u){if(i.line==s)return{map:i.measure.map,cache:i.measure.cache};if(i.rest){for(var c=0;c<i.rest.length;c++)if(i.rest[c]==s)return{map:i.measure.maps[c],cache:i.measure.caches[c]};for(var h=0;h<i.rest.length;h++)if(O(i.rest[h])>u)return{map:i.measure.maps[h],cache:i.measure.caches[h],before:!0}}}function ME(i,s){s=Ir(s);var u=O(s),c=i.display.externalMeasured=new Yv(i.doc,s,u);c.lineN=u;var h=c.built=Gv(i,c);return c.text=h.pre,T(i.display.lineMeasure,h.pre),c}function ry(i,s,u,c){return li(i,js(i,s),u,c)}function dh(i,s){if(s>=i.display.viewFrom&&s<i.display.viewTo)return i.display.view[Zo(i,s)];var u=i.display.externalMeasured;if(u&&s>=u.lineN&&s<u.lineN+u.size)return u}function js(i,s){var u=O(s),c=dh(i,u);c&&!c.text?c=null:c&&c.changes&&(Xv(i,c,u,vh(i)),i.curOp.forceUpdate=!0),c||(c=ME(i,s));var h=ny(c,s,u);return{line:s,view:c,rect:null,map:h.map,cache:h.cache,before:h.before,hasHeights:!1}}function li(i,s,u,c,h){s.before&&(u=-1);var v=u+(c||""),b;return s.cache.hasOwnProperty(v)?b=s.cache[v]:(s.rect||(s.rect=s.view.text.getBoundingClientRect()),s.hasHeights||(AE(i,s.view,s.rect),s.hasHeights=!0),b=NE(i,s,u,c),b.bogus||(s.cache[v]=b)),{left:b.left,right:b.right,top:h?b.rtop:b.top,bottom:h?b.rbottom:b.bottom}}var iy={left:0,right:0,top:0,bottom:0};function oy(i,s,u){for(var c,h,v,b,x,C,M=0;M<i.length;M+=3)if(x=i[M],C=i[M+1],s<x?(h=0,v=1,b="left"):s<C?(h=s-x,v=h+1):(M==i.length-3||s==C&&i[M+3]>s)&&(v=C-x,h=v-1,s>=C&&(b="right")),h!=null){if(c=i[M+2],x==C&&u==(c.insertLeft?"left":"right")&&(b=u),u=="left"&&h==0)for(;M&&i[M-2]==i[M-3]&&i[M-1].insertLeft;)c=i[(M-=3)+2],b="left";if(u=="right"&&h==C-x)for(;M<i.length-3&&i[M+3]==i[M+4]&&!i[M+5].insertLeft;)c=i[(M+=3)+2],b="right";break}return{node:c,start:h,end:v,collapse:b,coverStart:x,coverEnd:C}}function $E(i,s){var u=iy;if(s=="left")for(var c=0;c<i.length&&(u=i[c]).left==u.right;c++);else for(var h=i.length-1;h>=0&&(u=i[h]).left==u.right;h--);return u}function NE(i,s,u,c){var h=oy(s.map,u,c),v=h.node,b=h.start,x=h.end,C=h.collapse,M;if(v.nodeType==3){for(var H=0;H<4;H++){for(;b&&ft(s.line.text.charAt(h.coverStart+b));)--b;for(;h.coverStart+x<h.coverEnd&&ft(s.line.text.charAt(h.coverStart+x));)++x;if(d&&p<9&&b==0&&x==h.coverEnd-h.coverStart?M=v.parentNode.getBoundingClientRect():M=$E(z(v,b,x).getClientRects(),c),M.left||M.right||b==0)break;x=b,b=b-1,C="right"}d&&p<11&&(M=OE(i.display.measure,M))}else{b>0&&(C=c="right");var K;i.options.lineWrapping&&(K=v.getClientRects()).length>1?M=K[c=="right"?K.length-1:0]:M=v.getBoundingClientRect()}if(d&&p<9&&!b&&(!M||!M.left&&!M.right)){var se=v.parentNode.getClientRects()[0];se?M={left:se.left,right:se.left+Us(i.display),top:se.top,bottom:se.bottom}:M=iy}for(var re=M.top-s.rect.top,me=M.bottom-s.rect.top,xe=(re+me)/2,Te=s.view.measure.heights,Oe=0;Oe<Te.length-1&&!(xe<Te[Oe]);Oe++);var Fe=Oe?Te[Oe-1]:0,Le=Te[Oe],Be={left:(C=="right"?M.right:M.left)-s.rect.left,right:(C=="left"?M.left:M.right)-s.rect.left,top:Fe,bottom:Le};return!M.left&&!M.right&&(Be.bogus=!0),i.options.singleCursorHeightPerLine||(Be.rtop=re,Be.rbottom=me),Be}function OE(i,s){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!th(i))return s;var u=screen.logicalXDPI/screen.deviceXDPI,c=screen.logicalYDPI/screen.deviceYDPI;return{left:s.left*u,right:s.right*u,top:s.top*c,bottom:s.bottom*c}}function sy(i){if(i.measure&&(i.measure.cache={},i.measure.heights=null,i.rest))for(var s=0;s<i.rest.length;s++)i.measure.caches[s]={}}function ly(i){i.display.externalMeasure=null,L(i.display.lineMeasure);for(var s=0;s<i.display.view.length;s++)sy(i.display.view[s])}function la(i){ly(i),i.display.cachedCharWidth=i.display.cachedTextHeight=i.display.cachedPaddingH=null,i.options.lineWrapping||(i.display.maxLineChanged=!0),i.display.lineNumChars=null}function ay(i){return y&&I?-(i.body.getBoundingClientRect().left-parseInt(getComputedStyle(i.body).marginLeft)):i.defaultView.pageXOffset||(i.documentElement||i.body).scrollLeft}function cy(i){return y&&I?-(i.body.getBoundingClientRect().top-parseInt(getComputedStyle(i.body).marginTop)):i.defaultView.pageYOffset||(i.documentElement||i.body).scrollTop}function hh(i){var s=Ir(i),u=s.widgets,c=0;if(u)for(var h=0;h<u.length;++h)u[h].above&&(c+=sa(u[h]));return c}function lu(i,s,u,c,h){if(!h){var v=hh(s);u.top+=v,u.bottom+=v}if(c=="line")return u;c||(c="local");var b=Mi(s);if(c=="local"?b+=su(i.display):b-=i.display.viewOffset,c=="page"||c=="window"){var x=i.display.lineSpace.getBoundingClientRect();b+=x.top+(c=="window"?0:cy(Ke(i)));var C=x.left+(c=="window"?0:ay(Ke(i)));u.left+=C,u.right+=C}return u.top+=b,u.bottom+=b,u}function uy(i,s,u){if(u=="div")return s;var c=s.left,h=s.top;if(u=="page")c-=ay(Ke(i)),h-=cy(Ke(i));else if(u=="local"||!u){var v=i.display.sizer.getBoundingClientRect();c+=v.left,h+=v.top}var b=i.display.lineSpace.getBoundingClientRect();return{left:c-b.left,top:h-b.top}}function au(i,s,u,c,h){return c||(c=Ue(i.doc,s.line)),lu(i,c,ry(i,c,s.ch,h),u)}function Dr(i,s,u,c,h,v){c=c||Ue(i.doc,s.line),h||(h=js(i,c));function b(me,xe){var Te=li(i,h,me,xe?"right":"left",v);return xe?Te.left=Te.right:Te.right=Te.left,lu(i,c,Te,u)}var x=at(c,i.doc.direction),C=s.ch,M=s.sticky;if(C>=c.text.length?(C=c.text.length,M="before"):C<=0&&(C=0,M="after"),!x)return b(M=="before"?C-1:C,M=="before");function H(me,xe,Te){var Oe=x[xe],Fe=Oe.level==1;return b(Te?me-1:me,Fe!=Te)}var K=Gt(x,C,M),se=ri,re=H(C,K,M=="before");return se!=null&&(re.other=H(C,se,M!="before")),re}function fy(i,s){var u=0;s=ot(i.doc,s),i.options.lineWrapping||(u=Us(i.display)*s.ch);var c=Ue(i.doc,s.line),h=Mi(c)+su(i.display);return{left:u,right:u,top:h,bottom:h+c.height}}function ph(i,s,u,c,h){var v=de(i,s,u);return v.xRel=h,c&&(v.outside=c),v}function mh(i,s,u){var c=i.doc;if(u+=i.display.viewOffset,u<0)return ph(c.first,0,null,-1,-1);var h=G(c,u),v=c.first+c.size-1;if(h>v)return ph(c.first+c.size-1,Ue(c,v).text.length,null,1,1);s<0&&(s=0);for(var b=Ue(c,h);;){var x=LE(i,b,h,s,u),C=lE(b,x.ch+(x.xRel>0||x.outside>0?1:0));if(!C)return x;var M=C.find(1);if(M.line==h)return M;b=Ue(c,h=M.line)}}function dy(i,s,u,c){c-=hh(s);var h=s.text.length,v=Zt(function(b){return li(i,u,b-1).bottom<=c},h,0);return h=Zt(function(b){return li(i,u,b).top>c},v,h),{begin:v,end:h}}function hy(i,s,u,c){u||(u=js(i,s));var h=lu(i,s,li(i,u,c),"line").top;return dy(i,s,u,h)}function gh(i,s,u,c){return i.bottom<=u?!1:i.top>u?!0:(c?i.left:i.right)>s}function LE(i,s,u,c,h){h-=Mi(s);var v=js(i,s),b=hh(s),x=0,C=s.text.length,M=!0,H=at(s,i.doc.direction);if(H){var K=(i.options.lineWrapping?PE:RE)(i,s,u,v,H,c,h);M=K.level!=1,x=M?K.from:K.to-1,C=M?K.to:K.from-1}var se=null,re=null,me=Zt(function(Je){var Ge=li(i,v,Je);return Ge.top+=b,Ge.bottom+=b,gh(Ge,c,h,!1)?(Ge.top<=h&&Ge.left<=c&&(se=Je,re=Ge),!0):!1},x,C),xe,Te,Oe=!1;if(re){var Fe=c-re.left<re.right-c,Le=Fe==M;me=se+(Le?0:1),Te=Le?"after":"before",xe=Fe?re.left:re.right}else{!M&&(me==C||me==x)&&me++,Te=me==0?"after":me==s.text.length?"before":li(i,v,me-(M?1:0)).bottom+b<=h==M?"after":"before";var Be=Dr(i,de(u,me,Te),"line",s,v);xe=Be.left,Oe=h<Be.top?-1:h>=Be.bottom?1:0}return me=on(s.text,me,1),ph(u,me,Te,Oe,c-xe)}function RE(i,s,u,c,h,v,b){var x=Zt(function(K){var se=h[K],re=se.level!=1;return gh(Dr(i,de(u,re?se.to:se.from,re?"before":"after"),"line",s,c),v,b,!0)},0,h.length-1),C=h[x];if(x>0){var M=C.level!=1,H=Dr(i,de(u,M?C.from:C.to,M?"after":"before"),"line",s,c);gh(H,v,b,!0)&&H.top>b&&(C=h[x-1])}return C}function PE(i,s,u,c,h,v,b){var x=dy(i,s,c,b),C=x.begin,M=x.end;/\s/.test(s.text.charAt(M-1))&&M--;for(var H=null,K=null,se=0;se<h.length;se++){var re=h[se];if(!(re.from>=M||re.to<=C)){var me=re.level!=1,xe=li(i,c,me?Math.min(M,re.to)-1:Math.max(C,re.from)).right,Te=xe<v?v-xe+1e9:xe-v;(!H||K>Te)&&(H=re,K=Te)}}return H||(H=h[h.length-1]),H.from<C&&(H={from:C,to:H.to,level:H.level}),H.to>M&&(H={from:H.from,to:M,level:H.level}),H}var Xo;function Ws(i){if(i.cachedTextHeight!=null)return i.cachedTextHeight;if(Xo==null){Xo=S("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)Xo.appendChild(document.createTextNode("x")),Xo.appendChild(S("br"));Xo.appendChild(document.createTextNode("x"))}T(i.measure,Xo);var u=Xo.offsetHeight/50;return u>3&&(i.cachedTextHeight=u),L(i.measure),u||1}function Us(i){if(i.cachedCharWidth!=null)return i.cachedCharWidth;var s=S("span","xxxxxxxxxx"),u=S("pre",[s],"CodeMirror-line-like");T(i.measure,u);var c=s.getBoundingClientRect(),h=(c.right-c.left)/10;return h>2&&(i.cachedCharWidth=h),h||10}function vh(i){for(var s=i.display,u={},c={},h=s.gutters.clientLeft,v=s.gutters.firstChild,b=0;v;v=v.nextSibling,++b){var x=i.display.gutterSpecs[b].className;u[x]=v.offsetLeft+v.clientLeft+h,c[x]=v.clientWidth}return{fixedPos:yh(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:u,gutterWidth:c,wrapperWidth:s.wrapper.clientWidth}}function yh(i){return i.scroller.getBoundingClientRect().left-i.sizer.getBoundingClientRect().left}function py(i){var s=Ws(i.display),u=i.options.lineWrapping,c=u&&Math.max(5,i.display.scroller.clientWidth/Us(i.display)-3);return function(h){if(lo(i.doc,h))return 0;var v=0;if(h.widgets)for(var b=0;b<h.widgets.length;b++)h.widgets[b].height&&(v+=h.widgets[b].height);return u?v+(Math.ceil(h.text.length/c)||1)*s:v+s}}function bh(i){var s=i.doc,u=py(i);s.iter(function(c){var h=u(c);h!=c.height&&fr(c,h)})}function Jo(i,s,u,c){var h=i.display;if(!u&&Zl(s).getAttribute("cm-not-content")=="true")return null;var v,b,x=h.lineSpace.getBoundingClientRect();try{v=s.clientX-x.left,b=s.clientY-x.top}catch{return null}var C=mh(i,v,b),M;if(c&&C.xRel>0&&(M=Ue(i.doc,C.line).text).length==C.ch){var H=ie(M,M.length,i.options.tabSize)-M.length;C=de(C.line,Math.max(0,Math.round((v-ty(i.display).left)/Us(i.display))-H))}return C}function Zo(i,s){if(s>=i.display.viewTo||(s-=i.display.viewFrom,s<0))return null;for(var u=i.display.view,c=0;c<u.length;c++)if(s-=u[c].size,s<0)return c}function Rn(i,s,u,c){s==null&&(s=i.doc.first),u==null&&(u=i.doc.first+i.doc.size),c||(c=0);var h=i.display;if(c&&u<h.viewTo&&(h.updateLineNumbers==null||h.updateLineNumbers>s)&&(h.updateLineNumbers=s),i.curOp.viewChanged=!0,s>=h.viewTo)Ai&&sh(i.doc,s)<h.viewTo&&co(i);else if(u<=h.viewFrom)Ai&&qv(i.doc,u+c)>h.viewFrom?co(i):(h.viewFrom+=c,h.viewTo+=c);else if(s<=h.viewFrom&&u>=h.viewTo)co(i);else if(s<=h.viewFrom){var v=cu(i,u,u+c,1);v?(h.view=h.view.slice(v.index),h.viewFrom=v.lineN,h.viewTo+=c):co(i)}else if(u>=h.viewTo){var b=cu(i,s,s,-1);b?(h.view=h.view.slice(0,b.index),h.viewTo=b.lineN):co(i)}else{var x=cu(i,s,s,-1),C=cu(i,u,u+c,1);x&&C?(h.view=h.view.slice(0,x.index).concat(ou(i,x.lineN,C.lineN)).concat(h.view.slice(C.index)),h.viewTo+=c):co(i)}var M=h.externalMeasured;M&&(u<M.lineN?M.lineN+=c:s<M.lineN+M.size&&(h.externalMeasured=null))}function ao(i,s,u){i.curOp.viewChanged=!0;var c=i.display,h=i.display.externalMeasured;if(h&&s>=h.lineN&&s<h.lineN+h.size&&(c.externalMeasured=null),!(s<c.viewFrom||s>=c.viewTo)){var v=c.view[Zo(i,s)];if(v.node!=null){var b=v.changes||(v.changes=[]);ce(b,u)==-1&&b.push(u)}}}function co(i){i.display.viewFrom=i.display.viewTo=i.doc.first,i.display.view=[],i.display.viewOffset=0}function cu(i,s,u,c){var h=Zo(i,s),v,b=i.display.view;if(!Ai||u==i.doc.first+i.doc.size)return{index:h,lineN:u};for(var x=i.display.viewFrom,C=0;C<h;C++)x+=b[C].size;if(x!=s){if(c>0){if(h==b.length-1)return null;v=x+b[h].size-s,h++}else v=x-s;s+=v,u+=v}for(;sh(i.doc,u)!=u;){if(h==(c<0?0:b.length-1))return null;u+=c*b[h-(c<0?1:0)].size,h+=c}return{index:h,lineN:u}}function IE(i,s,u){var c=i.display,h=c.view;h.length==0||s>=c.viewTo||u<=c.viewFrom?(c.view=ou(i,s,u),c.viewFrom=s):(c.viewFrom>s?c.view=ou(i,s,c.viewFrom).concat(c.view):c.viewFrom<s&&(c.view=c.view.slice(Zo(i,s))),c.viewFrom=s,c.viewTo<u?c.view=c.view.concat(ou(i,c.viewTo,u)):c.viewTo>u&&(c.view=c.view.slice(0,Zo(i,u)))),c.viewTo=u}function my(i){for(var s=i.display.view,u=0,c=0;c<s.length;c++){var h=s[c];!h.hidden&&(!h.node||h.changes)&&++u}return u}function aa(i){i.display.input.showSelection(i.display.input.prepareSelection())}function gy(i,s){s===void 0&&(s=!0);var u=i.doc,c={},h=c.cursors=document.createDocumentFragment(),v=c.selection=document.createDocumentFragment(),b=i.options.$customCursor;b&&(s=!0);for(var x=0;x<u.sel.ranges.length;x++)if(!(!s&&x==u.sel.primIndex)){var C=u.sel.ranges[x];if(!(C.from().line>=i.display.viewTo||C.to().line<i.display.viewFrom)){var M=C.empty();if(b){var H=b(i,C);H&&wh(i,H,h)}else(M||i.options.showCursorWhenSelecting)&&wh(i,C.head,h);M||DE(i,C,v)}}return c}function wh(i,s,u){var c=Dr(i,s,"div",null,null,!i.options.singleCursorHeightPerLine),h=u.appendChild(S("div"," ","CodeMirror-cursor"));if(h.style.left=c.left+"px",h.style.top=c.top+"px",h.style.height=Math.max(0,c.bottom-c.top)*i.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(i.getWrapperElement().className)){var v=au(i,s,"div",null,null),b=v.right-v.left;h.style.width=(b>0?b:i.defaultCharWidth())+"px"}if(c.other){var x=u.appendChild(S("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=c.other.left+"px",x.style.top=c.other.top+"px",x.style.height=(c.other.bottom-c.other.top)*.85+"px"}}function uu(i,s){return i.top-s.top||i.left-s.left}function DE(i,s,u){var c=i.display,h=i.doc,v=document.createDocumentFragment(),b=ty(i.display),x=b.left,C=Math.max(c.sizerWidth,Yo(i)-c.sizer.offsetLeft)-b.right,M=h.direction=="ltr";function H(Le,Be,Je,Ge){Be<0&&(Be=0),Be=Math.round(Be),Ge=Math.round(Ge),v.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+Le+`px;
|
|
58
|
-
top: `+Be+"px; width: "+(Je??C-Le)+`px;
|
|
59
|
-
height: `+(Ge-Be)+"px"))}function K(Le,Be,Je){var Ge=Ue(h,Le),lt=Ge.text.length,Et,un;function Dt(Qt,Dn){return au(i,de(Le,Qt),"div",Ge,Dn)}function nr(Qt,Dn,hn){var tn=hy(i,Ge,null,Qt),en=Dn=="ltr"==(hn=="after")?"left":"right",Ht=hn=="after"?tn.begin:tn.end-(/\s/.test(Ge.text.charAt(tn.end-1))?2:1);return Dt(Ht,en)[en]}var In=at(Ge,h.direction);return Zn(In,Be||0,Je??lt,function(Qt,Dn,hn,tn){var en=hn=="ltr",Ht=Dt(Qt,en?"left":"right"),Fn=Dt(Dn-1,en?"right":"left"),rl=Be==null&&Qt==0,go=Je==null&&Dn==lt,xn=tn==0,ai=!In||tn==In.length-1;if(Fn.top-Ht.top<=3){var fn=(M?rl:go)&&xn,Gh=(M?go:rl)&&ai,Li=fn?x:(en?Ht:Fn).left,rs=Gh?C:(en?Fn:Ht).right;H(Li,Ht.top,rs-Li,Ht.bottom)}else{var is,En,il,Kh;en?(is=M&&rl&&xn?x:Ht.left,En=M?C:nr(Qt,hn,"before"),il=M?x:nr(Dn,hn,"after"),Kh=M&&go&&ai?C:Fn.right):(is=M?nr(Qt,hn,"before"):x,En=!M&&rl&&xn?C:Ht.right,il=!M&&go&&ai?x:Fn.left,Kh=M?nr(Dn,hn,"after"):C),H(is,Ht.top,En-is,Ht.bottom),Ht.bottom<Fn.top&&H(x,Ht.bottom,null,Fn.top),H(il,Fn.top,Kh-il,Fn.bottom)}(!Et||uu(Ht,Et)<0)&&(Et=Ht),uu(Fn,Et)<0&&(Et=Fn),(!un||uu(Ht,un)<0)&&(un=Ht),uu(Fn,un)<0&&(un=Fn)}),{start:Et,end:un}}var se=s.from(),re=s.to();if(se.line==re.line)K(se.line,se.ch,re.ch);else{var me=Ue(h,se.line),xe=Ue(h,re.line),Te=Ir(me)==Ir(xe),Oe=K(se.line,se.ch,Te?me.text.length+1:null).end,Fe=K(re.line,Te?0:null,re.ch).start;Te&&(Oe.top<Fe.top-2?(H(Oe.right,Oe.top,null,Oe.bottom),H(x,Fe.top,Fe.left,Fe.bottom)):H(Oe.right,Oe.top,Fe.left-Oe.right,Oe.bottom)),Oe.bottom<Fe.top&&H(x,Oe.bottom,null,Fe.top)}u.appendChild(v)}function xh(i){if(i.state.focused){var s=i.display;clearInterval(s.blinker);var u=!0;s.cursorDiv.style.visibility="",i.options.cursorBlinkRate>0?s.blinker=setInterval(function(){i.hasFocus()||qs(i),s.cursorDiv.style.visibility=(u=!u)?"":"hidden"},i.options.cursorBlinkRate):i.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function vy(i){i.hasFocus()||(i.display.input.focus(),i.state.focused||_h(i))}function Sh(i){i.state.delayingBlurEvent=!0,setTimeout(function(){i.state.delayingBlurEvent&&(i.state.delayingBlurEvent=!1,i.state.focused&&qs(i))},100)}function _h(i,s){i.state.delayingBlurEvent&&!i.state.draggingText&&(i.state.delayingBlurEvent=!1),i.options.readOnly!="nocursor"&&(i.state.focused||(Ft(i,"focus",i,s),i.state.focused=!0,_e(i.display.wrapper,"CodeMirror-focused"),!i.curOp&&i.display.selForContextMenu!=i.doc.sel&&(i.display.input.reset(),m&&setTimeout(function(){return i.display.input.reset(!0)},20)),i.display.input.receivedFocus()),xh(i))}function qs(i,s){i.state.delayingBlurEvent||(i.state.focused&&(Ft(i,"blur",i,s),i.state.focused=!1,P(i.display.wrapper,"CodeMirror-focused")),clearInterval(i.display.blinker),setTimeout(function(){i.state.focused||(i.display.shift=!1)},150))}function fu(i){for(var s=i.display,u=s.lineDiv.offsetTop,c=Math.max(0,s.scroller.getBoundingClientRect().top),h=s.lineDiv.getBoundingClientRect().top,v=0,b=0;b<s.view.length;b++){var x=s.view[b],C=i.options.lineWrapping,M=void 0,H=0;if(!x.hidden){if(h+=x.line.height,d&&p<8){var K=x.node.offsetTop+x.node.offsetHeight;M=K-u,u=K}else{var se=x.node.getBoundingClientRect();M=se.bottom-se.top,!C&&x.text.firstChild&&(H=x.text.firstChild.getBoundingClientRect().right-se.left-1)}var re=x.line.height-M;if((re>.005||re<-.005)&&(h<c&&(v-=re),fr(x.line,M),yy(x.line),x.rest))for(var me=0;me<x.rest.length;me++)yy(x.rest[me]);if(H>i.display.sizerWidth){var xe=Math.ceil(H/Us(i.display));xe>i.display.maxLineLength&&(i.display.maxLineLength=xe,i.display.maxLine=x.line,i.display.maxLineChanged=!0)}}}Math.abs(v)>2&&(s.scroller.scrollTop+=v)}function yy(i){if(i.widgets)for(var s=0;s<i.widgets.length;++s){var u=i.widgets[s],c=u.node.parentNode;c&&(u.height=c.offsetHeight)}}function du(i,s,u){var c=u&&u.top!=null?Math.max(0,u.top):i.scroller.scrollTop;c=Math.floor(c-su(i));var h=u&&u.bottom!=null?u.bottom:c+i.wrapper.clientHeight,v=G(s,c),b=G(s,h);if(u&&u.ensure){var x=u.ensure.from.line,C=u.ensure.to.line;x<v?(v=x,b=G(s,Mi(Ue(s,x))+i.wrapper.clientHeight)):Math.min(C,s.lastLine())>=b&&(v=G(s,Mi(Ue(s,C))-i.wrapper.clientHeight),b=C)}return{from:v,to:Math.max(b,v+1)}}function FE(i,s){if(!zt(i,"scrollCursorIntoView")){var u=i.display,c=u.sizer.getBoundingClientRect(),h=null,v=u.wrapper.ownerDocument;if(s.top+c.top<0?h=!0:s.bottom+c.top>(v.defaultView.innerHeight||v.documentElement.clientHeight)&&(h=!1),h!=null&&!A){var b=S("div","",null,`position: absolute;
|
|
60
|
-
top: `+(s.top-u.viewOffset-su(i.display))+`px;
|
|
61
|
-
height: `+(s.bottom-s.top+si(i)+u.barHeight)+`px;
|
|
62
|
-
left: `+s.left+"px; width: "+Math.max(2,s.right-s.left)+"px;");i.display.lineSpace.appendChild(b),b.scrollIntoView(h),i.display.lineSpace.removeChild(b)}}}function zE(i,s,u,c){c==null&&(c=0);var h;!i.options.lineWrapping&&s==u&&(u=s.sticky=="before"?de(s.line,s.ch+1,"before"):s,s=s.ch?de(s.line,s.sticky=="before"?s.ch-1:s.ch,"after"):s);for(var v=0;v<5;v++){var b=!1,x=Dr(i,s),C=!u||u==s?x:Dr(i,u);h={left:Math.min(x.left,C.left),top:Math.min(x.top,C.top)-c,right:Math.max(x.left,C.left),bottom:Math.max(x.bottom,C.bottom)+c};var M=kh(i,h),H=i.doc.scrollTop,K=i.doc.scrollLeft;if(M.scrollTop!=null&&(ua(i,M.scrollTop),Math.abs(i.doc.scrollTop-H)>1&&(b=!0)),M.scrollLeft!=null&&(Qo(i,M.scrollLeft),Math.abs(i.doc.scrollLeft-K)>1&&(b=!0)),!b)break}return h}function BE(i,s){var u=kh(i,s);u.scrollTop!=null&&ua(i,u.scrollTop),u.scrollLeft!=null&&Qo(i,u.scrollLeft)}function kh(i,s){var u=i.display,c=Ws(i.display);s.top<0&&(s.top=0);var h=i.curOp&&i.curOp.scrollTop!=null?i.curOp.scrollTop:u.scroller.scrollTop,v=fh(i),b={};s.bottom-s.top>v&&(s.bottom=s.top+v);var x=i.doc.height+uh(u),C=s.top<c,M=s.bottom>x-c;if(s.top<h)b.scrollTop=C?0:s.top;else if(s.bottom>h+v){var H=Math.min(s.top,(M?x:s.bottom)-v);H!=h&&(b.scrollTop=H)}var K=i.options.fixedGutter?0:u.gutters.offsetWidth,se=i.curOp&&i.curOp.scrollLeft!=null?i.curOp.scrollLeft:u.scroller.scrollLeft-K,re=Yo(i)-u.gutters.offsetWidth,me=s.right-s.left>re;return me&&(s.right=s.left+re),s.left<10?b.scrollLeft=0:s.left<se?b.scrollLeft=Math.max(0,s.left+K-(me?0:10)):s.right>re+se-3&&(b.scrollLeft=s.right+(me?0:10)-re),b}function Th(i,s){s!=null&&(hu(i),i.curOp.scrollTop=(i.curOp.scrollTop==null?i.doc.scrollTop:i.curOp.scrollTop)+s)}function Vs(i){hu(i);var s=i.getCursor();i.curOp.scrollToPos={from:s,to:s,margin:i.options.cursorScrollMargin}}function ca(i,s,u){(s!=null||u!=null)&&hu(i),s!=null&&(i.curOp.scrollLeft=s),u!=null&&(i.curOp.scrollTop=u)}function HE(i,s){hu(i),i.curOp.scrollToPos=s}function hu(i){var s=i.curOp.scrollToPos;if(s){i.curOp.scrollToPos=null;var u=fy(i,s.from),c=fy(i,s.to);by(i,u,c,s.margin)}}function by(i,s,u,c){var h=kh(i,{left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-c,right:Math.max(s.right,u.right),bottom:Math.max(s.bottom,u.bottom)+c});ca(i,h.scrollLeft,h.scrollTop)}function ua(i,s){Math.abs(i.doc.scrollTop-s)<2||(o||Eh(i,{top:s}),wy(i,s,!0),o&&Eh(i),ha(i,100))}function wy(i,s,u){s=Math.max(0,Math.min(i.display.scroller.scrollHeight-i.display.scroller.clientHeight,s)),!(i.display.scroller.scrollTop==s&&!u)&&(i.doc.scrollTop=s,i.display.scrollbars.setScrollTop(s),i.display.scroller.scrollTop!=s&&(i.display.scroller.scrollTop=s))}function Qo(i,s,u,c){s=Math.max(0,Math.min(s,i.display.scroller.scrollWidth-i.display.scroller.clientWidth)),!((u?s==i.doc.scrollLeft:Math.abs(i.doc.scrollLeft-s)<2)&&!c)&&(i.doc.scrollLeft=s,Ty(i),i.display.scroller.scrollLeft!=s&&(i.display.scroller.scrollLeft=s),i.display.scrollbars.setScrollLeft(s))}function fa(i){var s=i.display,u=s.gutters.offsetWidth,c=Math.round(i.doc.height+uh(i.display));return{clientHeight:s.scroller.clientHeight,viewHeight:s.wrapper.clientHeight,scrollWidth:s.scroller.scrollWidth,clientWidth:s.scroller.clientWidth,viewWidth:s.wrapper.clientWidth,barLeft:i.options.fixedGutter?u:0,docHeight:c,scrollHeight:c+si(i)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:u}}var es=function(i,s,u){this.cm=u;var c=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),h=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");c.tabIndex=h.tabIndex=-1,i(c),i(h),Xe(c,"scroll",function(){c.clientHeight&&s(c.scrollTop,"vertical")}),Xe(h,"scroll",function(){h.clientWidth&&s(h.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};es.prototype.update=function(i){var s=i.scrollWidth>i.clientWidth+1,u=i.scrollHeight>i.clientHeight+1,c=i.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=s?c+"px":"0";var h=i.viewHeight-(s?c:0);this.vert.firstChild.style.height=Math.max(0,i.scrollHeight-i.clientHeight+h)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(s){this.horiz.style.display="block",this.horiz.style.right=u?c+"px":"0",this.horiz.style.left=i.barLeft+"px";var v=i.viewWidth-i.barLeft-(u?c:0);this.horiz.firstChild.style.width=Math.max(0,i.scrollWidth-i.clientWidth+v)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&i.clientHeight>0&&(c==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?c:0,bottom:s?c:0}},es.prototype.setScrollLeft=function(i){this.horiz.scrollLeft!=i&&(this.horiz.scrollLeft=i),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},es.prototype.setScrollTop=function(i){this.vert.scrollTop!=i&&(this.vert.scrollTop=i),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},es.prototype.zeroWidthHack=function(){var i=D&&!k?"12px":"18px";this.horiz.style.height=this.vert.style.width=i,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},es.prototype.enableZeroWidthBar=function(i,s,u){i.style.visibility="";function c(){var h=i.getBoundingClientRect(),v=u=="vert"?document.elementFromPoint(h.right-1,(h.top+h.bottom)/2):document.elementFromPoint((h.right+h.left)/2,h.bottom-1);v!=i?i.style.visibility="hidden":s.set(1e3,c)}s.set(1e3,c)},es.prototype.clear=function(){var i=this.horiz.parentNode;i.removeChild(this.horiz),i.removeChild(this.vert)};var da=function(){};da.prototype.update=function(){return{bottom:0,right:0}},da.prototype.setScrollLeft=function(){},da.prototype.setScrollTop=function(){},da.prototype.clear=function(){};function Gs(i,s){s||(s=fa(i));var u=i.display.barWidth,c=i.display.barHeight;xy(i,s);for(var h=0;h<4&&u!=i.display.barWidth||c!=i.display.barHeight;h++)u!=i.display.barWidth&&i.options.lineWrapping&&fu(i),xy(i,fa(i)),u=i.display.barWidth,c=i.display.barHeight}function xy(i,s){var u=i.display,c=u.scrollbars.update(s);u.sizer.style.paddingRight=(u.barWidth=c.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=c.bottom)+"px",u.heightForcer.style.borderBottom=c.bottom+"px solid transparent",c.right&&c.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=c.bottom+"px",u.scrollbarFiller.style.width=c.right+"px"):u.scrollbarFiller.style.display="",c.bottom&&i.options.coverGutterNextToScrollbar&&i.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=c.bottom+"px",u.gutterFiller.style.width=s.gutterWidth+"px"):u.gutterFiller.style.display=""}var Sy={native:es,null:da};function _y(i){i.display.scrollbars&&(i.display.scrollbars.clear(),i.display.scrollbars.addClass&&P(i.display.wrapper,i.display.scrollbars.addClass)),i.display.scrollbars=new Sy[i.options.scrollbarStyle](function(s){i.display.wrapper.insertBefore(s,i.display.scrollbarFiller),Xe(s,"mousedown",function(){i.state.focused&&setTimeout(function(){return i.display.input.focus()},0)}),s.setAttribute("cm-not-content","true")},function(s,u){u=="horizontal"?Qo(i,s):ua(i,s)},i),i.display.scrollbars.addClass&&_e(i.display.wrapper,i.display.scrollbars.addClass)}var jE=0;function ts(i){i.curOp={cm:i,viewChanged:!1,startHeight:i.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:++jE,markArrays:null},bE(i.curOp)}function ns(i){var s=i.curOp;s&&xE(s,function(u){for(var c=0;c<u.ops.length;c++)u.ops[c].cm.curOp=null;WE(u)})}function WE(i){for(var s=i.ops,u=0;u<s.length;u++)UE(s[u]);for(var c=0;c<s.length;c++)qE(s[c]);for(var h=0;h<s.length;h++)VE(s[h]);for(var v=0;v<s.length;v++)GE(s[v]);for(var b=0;b<s.length;b++)KE(s[b])}function UE(i){var s=i.cm,u=s.display;XE(s),i.updateMaxLine&&ah(s),i.mustUpdate=i.viewChanged||i.forceUpdate||i.scrollTop!=null||i.scrollToPos&&(i.scrollToPos.from.line<u.viewFrom||i.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&s.options.lineWrapping,i.update=i.mustUpdate&&new pu(s,i.mustUpdate&&{top:i.scrollTop,ensure:i.scrollToPos},i.forceUpdate)}function qE(i){i.updatedDisplay=i.mustUpdate&&Ch(i.cm,i.update)}function VE(i){var s=i.cm,u=s.display;i.updatedDisplay&&fu(s),i.barMeasure=fa(s),u.maxLineChanged&&!s.options.lineWrapping&&(i.adjustWidthTo=ry(s,u.maxLine,u.maxLine.text.length).left+3,s.display.sizerWidth=i.adjustWidthTo,i.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+i.adjustWidthTo+si(s)+s.display.barWidth),i.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+i.adjustWidthTo-Yo(s))),(i.updatedDisplay||i.selectionChanged)&&(i.preparedSelection=u.input.prepareSelection())}function GE(i){var s=i.cm;i.adjustWidthTo!=null&&(s.display.sizer.style.minWidth=i.adjustWidthTo+"px",i.maxScrollLeft<s.doc.scrollLeft&&Qo(s,Math.min(s.display.scroller.scrollLeft,i.maxScrollLeft),!0),s.display.maxLineChanged=!1);var u=i.focus&&i.focus==ve(qe(s));i.preparedSelection&&s.display.input.showSelection(i.preparedSelection,u),(i.updatedDisplay||i.startHeight!=s.doc.height)&&Gs(s,i.barMeasure),i.updatedDisplay&&Mh(s,i.barMeasure),i.selectionChanged&&xh(s),s.state.focused&&i.updateInput&&s.display.input.reset(i.typing),u&&vy(i.cm)}function KE(i){var s=i.cm,u=s.display,c=s.doc;if(i.updatedDisplay&&ky(s,i.update),u.wheelStartX!=null&&(i.scrollTop!=null||i.scrollLeft!=null||i.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),i.scrollTop!=null&&wy(s,i.scrollTop,i.forceScroll),i.scrollLeft!=null&&Qo(s,i.scrollLeft,!0,!0),i.scrollToPos){var h=zE(s,ot(c,i.scrollToPos.from),ot(c,i.scrollToPos.to),i.scrollToPos.margin);FE(s,h)}var v=i.maybeHiddenMarkers,b=i.maybeUnhiddenMarkers;if(v)for(var x=0;x<v.length;++x)v[x].lines.length||Ft(v[x],"hide");if(b)for(var C=0;C<b.length;++C)b[C].lines.length&&Ft(b[C],"unhide");u.wrapper.offsetHeight&&(c.scrollTop=s.display.scroller.scrollTop),i.changeObjs&&Ft(s,"changes",s,i.changeObjs),i.update&&i.update.finish()}function tr(i,s){if(i.curOp)return s();ts(i);try{return s()}finally{ns(i)}}function an(i,s){return function(){if(i.curOp)return s.apply(i,arguments);ts(i);try{return s.apply(i,arguments)}finally{ns(i)}}}function Cn(i){return function(){if(this.curOp)return i.apply(this,arguments);ts(this);try{return i.apply(this,arguments)}finally{ns(this)}}}function cn(i){return function(){var s=this.cm;if(!s||s.curOp)return i.apply(this,arguments);ts(s);try{return i.apply(this,arguments)}finally{ns(s)}}}function ha(i,s){i.doc.highlightFrontier<i.display.viewTo&&i.state.highlight.set(s,B(YE,i))}function YE(i){var s=i.doc;if(!(s.highlightFrontier>=i.display.viewTo)){var u=+new Date+i.options.workTime,c=na(i,s.highlightFrontier),h=[];s.iter(c.line,Math.min(s.first+s.size,i.display.viewTo+500),function(v){if(c.line>=i.display.viewFrom){var b=v.styles,x=v.text.length>i.options.maxHighlightLength?ii(s.mode,c.state):null,C=Nv(i,v,c,!0);x&&(c.state=x),v.styles=C.styles;var M=v.styleClasses,H=C.classes;H?v.styleClasses=H:M&&(v.styleClasses=null);for(var K=!b||b.length!=v.styles.length||M!=H&&(!M||!H||M.bgClass!=H.bgClass||M.textClass!=H.textClass),se=0;!K&&se<b.length;++se)K=b[se]!=v.styles[se];K&&h.push(c.line),v.stateAfter=c.save(),c.nextLine()}else v.text.length<=i.options.maxHighlightLength&&nh(i,v.text,c),v.stateAfter=c.line%5==0?c.save():null,c.nextLine();if(+new Date>u)return ha(i,i.options.workDelay),!0}),s.highlightFrontier=c.line,s.modeFrontier=Math.max(s.modeFrontier,c.line),h.length&&tr(i,function(){for(var v=0;v<h.length;v++)ao(i,h[v],"text")})}}var pu=function(i,s,u){var c=i.display;this.viewport=s,this.visible=du(c,i.doc,s),this.editorIsHidden=!c.wrapper.offsetWidth,this.wrapperHeight=c.wrapper.clientHeight,this.wrapperWidth=c.wrapper.clientWidth,this.oldDisplayWidth=Yo(i),this.force=u,this.dims=vh(i),this.events=[]};pu.prototype.signal=function(i,s){er(i,s)&&this.events.push(arguments)},pu.prototype.finish=function(){for(var i=0;i<this.events.length;i++)Ft.apply(null,this.events[i])};function XE(i){var s=i.display;!s.scrollbarsClipped&&s.scroller.offsetWidth&&(s.nativeBarWidth=s.scroller.offsetWidth-s.scroller.clientWidth,s.heightForcer.style.height=si(i)+"px",s.sizer.style.marginBottom=-s.nativeBarWidth+"px",s.sizer.style.borderRightWidth=si(i)+"px",s.scrollbarsClipped=!0)}function JE(i){if(i.hasFocus())return null;var s=ve(qe(i));if(!s||!ae(i.display.lineDiv,s))return null;var u={activeElt:s};if(window.getSelection){var c=Re(i).getSelection();c.anchorNode&&c.extend&&ae(i.display.lineDiv,c.anchorNode)&&(u.anchorNode=c.anchorNode,u.anchorOffset=c.anchorOffset,u.focusNode=c.focusNode,u.focusOffset=c.focusOffset)}return u}function ZE(i){if(!(!i||!i.activeElt||i.activeElt==ve(He(i.activeElt)))&&(i.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(i.activeElt.nodeName)&&i.anchorNode&&ae(document.body,i.anchorNode)&&ae(document.body,i.focusNode))){var s=i.activeElt.ownerDocument,u=s.defaultView.getSelection(),c=s.createRange();c.setEnd(i.anchorNode,i.anchorOffset),c.collapse(!1),u.removeAllRanges(),u.addRange(c),u.extend(i.focusNode,i.focusOffset)}}function Ch(i,s){var u=i.display,c=i.doc;if(s.editorIsHidden)return co(i),!1;if(!s.force&&s.visible.from>=u.viewFrom&&s.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&my(i)==0)return!1;Cy(i)&&(co(i),s.dims=vh(i));var h=c.first+c.size,v=Math.max(s.visible.from-i.options.viewportMargin,c.first),b=Math.min(h,s.visible.to+i.options.viewportMargin);u.viewFrom<v&&v-u.viewFrom<20&&(v=Math.max(c.first,u.viewFrom)),u.viewTo>b&&u.viewTo-b<20&&(b=Math.min(h,u.viewTo)),Ai&&(v=sh(i.doc,v),b=qv(i.doc,b));var x=v!=u.viewFrom||b!=u.viewTo||u.lastWrapHeight!=s.wrapperHeight||u.lastWrapWidth!=s.wrapperWidth;IE(i,v,b),u.viewOffset=Mi(Ue(i.doc,u.viewFrom)),i.display.mover.style.top=u.viewOffset+"px";var C=my(i);if(!x&&C==0&&!s.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var M=JE(i);return C>4&&(u.lineDiv.style.display="none"),QE(i,u.updateLineNumbers,s.dims),C>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,ZE(M),L(u.cursorDiv),L(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,x&&(u.lastWrapHeight=s.wrapperHeight,u.lastWrapWidth=s.wrapperWidth,ha(i,400)),u.updateLineNumbers=null,!0}function ky(i,s){for(var u=s.viewport,c=!0;;c=!1){if(!c||!i.options.lineWrapping||s.oldDisplayWidth==Yo(i)){if(u&&u.top!=null&&(u={top:Math.min(i.doc.height+uh(i.display)-fh(i),u.top)}),s.visible=du(i.display,i.doc,u),s.visible.from>=i.display.viewFrom&&s.visible.to<=i.display.viewTo)break}else c&&(s.visible=du(i.display,i.doc,u));if(!Ch(i,s))break;fu(i);var h=fa(i);aa(i),Gs(i,h),Mh(i,h),s.force=!1}s.signal(i,"update",i),(i.display.viewFrom!=i.display.reportedViewFrom||i.display.viewTo!=i.display.reportedViewTo)&&(s.signal(i,"viewportChange",i,i.display.viewFrom,i.display.viewTo),i.display.reportedViewFrom=i.display.viewFrom,i.display.reportedViewTo=i.display.viewTo)}function Eh(i,s){var u=new pu(i,s);if(Ch(i,u)){fu(i),ky(i,u);var c=fa(i);aa(i),Gs(i,c),Mh(i,c),u.finish()}}function QE(i,s,u){var c=i.display,h=i.options.lineNumbers,v=c.lineDiv,b=v.firstChild;function x(me){var xe=me.nextSibling;return m&&D&&i.display.currentWheelTarget==me?me.style.display="none":me.parentNode.removeChild(me),xe}for(var C=c.view,M=c.viewFrom,H=0;H<C.length;H++){var K=C[H];if(!K.hidden)if(!K.node||K.node.parentNode!=v){var se=CE(i,K,M,u);v.insertBefore(se,b)}else{for(;b!=K.node;)b=x(b);var re=h&&s!=null&&s<=M&&K.lineNumber;K.changes&&(ce(K.changes,"gutter")>-1&&(re=!1),Xv(i,K,M,u)),re&&(L(K.lineNumber),K.lineNumber.appendChild(document.createTextNode(ke(i.options,M)))),b=K.node.nextSibling}M+=K.size}for(;b;)b=x(b)}function Ah(i){var s=i.gutters.offsetWidth;i.sizer.style.marginLeft=s+"px",ln(i,"gutterChanged",i)}function Mh(i,s){i.display.sizer.style.minHeight=s.docHeight+"px",i.display.heightForcer.style.top=s.docHeight+"px",i.display.gutters.style.height=s.docHeight+i.display.barHeight+si(i)+"px"}function Ty(i){var s=i.display,u=s.view;if(!(!s.alignWidgets&&(!s.gutters.firstChild||!i.options.fixedGutter))){for(var c=yh(s)-s.scroller.scrollLeft+i.doc.scrollLeft,h=s.gutters.offsetWidth,v=c+"px",b=0;b<u.length;b++)if(!u[b].hidden){i.options.fixedGutter&&(u[b].gutter&&(u[b].gutter.style.left=v),u[b].gutterBackground&&(u[b].gutterBackground.style.left=v));var x=u[b].alignable;if(x)for(var C=0;C<x.length;C++)x[C].style.left=v}i.options.fixedGutter&&(s.gutters.style.left=c+h+"px")}}function Cy(i){if(!i.options.lineNumbers)return!1;var s=i.doc,u=ke(i.options,s.first+s.size-1),c=i.display;if(u.length!=c.lineNumChars){var h=c.measure.appendChild(S("div",[S("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),v=h.firstChild.offsetWidth,b=h.offsetWidth-v;return c.lineGutter.style.width="",c.lineNumInnerWidth=Math.max(v,c.lineGutter.offsetWidth-b)+1,c.lineNumWidth=c.lineNumInnerWidth+b,c.lineNumChars=c.lineNumInnerWidth?u.length:-1,c.lineGutter.style.width=c.lineNumWidth+"px",Ah(i.display),!0}return!1}function $h(i,s){for(var u=[],c=!1,h=0;h<i.length;h++){var v=i[h],b=null;if(typeof v!="string"&&(b=v.style,v=v.className),v=="CodeMirror-linenumbers")if(s)c=!0;else continue;u.push({className:v,style:b})}return s&&!c&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function Ey(i){var s=i.gutters,u=i.gutterSpecs;L(s),i.lineGutter=null;for(var c=0;c<u.length;++c){var h=u[c],v=h.className,b=h.style,x=s.appendChild(S("div",null,"CodeMirror-gutter "+v));b&&(x.style.cssText=b),v=="CodeMirror-linenumbers"&&(i.lineGutter=x,x.style.width=(i.lineNumWidth||1)+"px")}s.style.display=u.length?"":"none",Ah(i)}function pa(i){Ey(i.display),Rn(i),Ty(i)}function eA(i,s,u,c){var h=this;this.input=u,h.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),h.scrollbarFiller.setAttribute("cm-not-content","true"),h.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),h.gutterFiller.setAttribute("cm-not-content","true"),h.lineDiv=R("div",null,"CodeMirror-code"),h.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),h.cursorDiv=S("div",null,"CodeMirror-cursors"),h.measure=S("div",null,"CodeMirror-measure"),h.lineMeasure=S("div",null,"CodeMirror-measure"),h.lineSpace=R("div",[h.measure,h.lineMeasure,h.selectionDiv,h.cursorDiv,h.lineDiv],null,"position: relative; outline: none");var v=R("div",[h.lineSpace],"CodeMirror-lines");h.mover=S("div",[v],null,"position: relative"),h.sizer=S("div",[h.mover],"CodeMirror-sizer"),h.sizerWidth=null,h.heightForcer=S("div",null,null,"position: absolute; height: "+F+"px; width: 1px;"),h.gutters=S("div",null,"CodeMirror-gutters"),h.lineGutter=null,h.scroller=S("div",[h.sizer,h.heightForcer,h.gutters],"CodeMirror-scroll"),h.scroller.setAttribute("tabIndex","-1"),h.wrapper=S("div",[h.scrollbarFiller,h.gutterFiller,h.scroller],"CodeMirror"),y&&w>=105&&(h.wrapper.style.clipPath="inset(0px)"),h.wrapper.setAttribute("translate","no"),d&&p<8&&(h.gutters.style.zIndex=-1,h.scroller.style.paddingRight=0),!m&&!(o&&$)&&(h.scroller.draggable=!0),i&&(i.appendChild?i.appendChild(h.wrapper):i(h.wrapper)),h.viewFrom=h.viewTo=s.first,h.reportedViewFrom=h.reportedViewTo=s.first,h.view=[],h.renderedView=null,h.externalMeasured=null,h.viewOffset=0,h.lastWrapHeight=h.lastWrapWidth=0,h.updateLineNumbers=null,h.nativeBarWidth=h.barHeight=h.barWidth=0,h.scrollbarsClipped=!1,h.lineNumWidth=h.lineNumInnerWidth=h.lineNumChars=null,h.alignWidgets=!1,h.cachedCharWidth=h.cachedTextHeight=h.cachedPaddingH=null,h.maxLine=null,h.maxLineLength=0,h.maxLineChanged=!1,h.wheelDX=h.wheelDY=h.wheelStartX=h.wheelStartY=null,h.shift=!1,h.selForContextMenu=null,h.activeTouch=null,h.gutterSpecs=$h(c.gutters,c.lineNumbers),Ey(h),u.init(h)}var mu=0,Ni=null;d?Ni=-.53:o?Ni=15:y?Ni=-.7:_&&(Ni=-1/3);function Ay(i){var s=i.wheelDeltaX,u=i.wheelDeltaY;return s==null&&i.detail&&i.axis==i.HORIZONTAL_AXIS&&(s=i.detail),u==null&&i.detail&&i.axis==i.VERTICAL_AXIS?u=i.detail:u==null&&(u=i.wheelDelta),{x:s,y:u}}function tA(i){var s=Ay(i);return s.x*=Ni,s.y*=Ni,s}function My(i,s){y&&w==102&&(i.display.chromeScrollHack==null?i.display.sizer.style.pointerEvents="none":clearTimeout(i.display.chromeScrollHack),i.display.chromeScrollHack=setTimeout(function(){i.display.chromeScrollHack=null,i.display.sizer.style.pointerEvents=""},100));var u=Ay(s),c=u.x,h=u.y,v=Ni;s.deltaMode===0&&(c=s.deltaX,h=s.deltaY,v=1);var b=i.display,x=b.scroller,C=x.scrollWidth>x.clientWidth,M=x.scrollHeight>x.clientHeight;if(c&&C||h&&M){if(h&&D&&m){e:for(var H=s.target,K=b.view;H!=x;H=H.parentNode)for(var se=0;se<K.length;se++)if(K[se].node==H){i.display.currentWheelTarget=H;break e}}if(c&&!o&&!E&&v!=null){h&&M&&ua(i,Math.max(0,x.scrollTop+h*v)),Qo(i,Math.max(0,x.scrollLeft+c*v)),(!h||h&&M)&&bn(s),b.wheelStartX=null;return}if(h&&v!=null){var re=h*v,me=i.doc.scrollTop,xe=me+b.wrapper.clientHeight;re<0?me=Math.max(0,me+re-50):xe=Math.min(i.doc.height,xe+re+50),Eh(i,{top:me,bottom:xe})}mu<20&&s.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=x.scrollLeft,b.wheelStartY=x.scrollTop,b.wheelDX=c,b.wheelDY=h,setTimeout(function(){if(b.wheelStartX!=null){var Te=x.scrollLeft-b.wheelStartX,Oe=x.scrollTop-b.wheelStartY,Fe=Oe&&b.wheelDY&&Oe/b.wheelDY||Te&&b.wheelDX&&Te/b.wheelDX;b.wheelStartX=b.wheelStartY=null,Fe&&(Ni=(Ni*mu+Fe)/(mu+1),++mu)}},200)):(b.wheelDX+=c,b.wheelDY+=h))}}var dr=function(i,s){this.ranges=i,this.primIndex=s};dr.prototype.primary=function(){return this.ranges[this.primIndex]},dr.prototype.equals=function(i){if(i==this)return!0;if(i.primIndex!=this.primIndex||i.ranges.length!=this.ranges.length)return!1;for(var s=0;s<this.ranges.length;s++){var u=this.ranges[s],c=i.ranges[s];if(!gt(u.anchor,c.anchor)||!gt(u.head,c.head))return!1}return!0},dr.prototype.deepCopy=function(){for(var i=[],s=0;s<this.ranges.length;s++)i[s]=new vt(sn(this.ranges[s].anchor),sn(this.ranges[s].head));return new dr(i,this.primIndex)},dr.prototype.somethingSelected=function(){for(var i=0;i<this.ranges.length;i++)if(!this.ranges[i].empty())return!0;return!1},dr.prototype.contains=function(i,s){s||(s=i);for(var u=0;u<this.ranges.length;u++){var c=this.ranges[u];if(De(s,c.from())>=0&&De(i,c.to())<=0)return u}return-1};var vt=function(i,s){this.anchor=i,this.head=s};vt.prototype.from=function(){return zs(this.anchor,this.head)},vt.prototype.to=function(){return Ln(this.anchor,this.head)},vt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Fr(i,s,u){var c=i&&i.options.selectionsMayTouch,h=s[u];s.sort(function(se,re){return De(se.from(),re.from())}),u=ce(s,h);for(var v=1;v<s.length;v++){var b=s[v],x=s[v-1],C=De(x.to(),b.from());if(c&&!b.empty()?C>0:C>=0){var M=zs(x.from(),b.from()),H=Ln(x.to(),b.to()),K=x.empty()?b.from()==b.head:x.from()==x.head;v<=u&&--u,s.splice(--v,2,new vt(K?H:M,K?M:H))}}return new dr(s,u)}function uo(i,s){return new dr([new vt(i,s||i)],0)}function fo(i){return i.text?de(i.from.line+i.text.length-1,Se(i.text).length+(i.text.length==1?i.from.ch:0)):i.to}function $y(i,s){if(De(i,s.from)<0)return i;if(De(i,s.to)<=0)return fo(s);var u=i.line+s.text.length-(s.to.line-s.from.line)-1,c=i.ch;return i.line==s.to.line&&(c+=fo(s).ch-s.to.ch),de(u,c)}function Nh(i,s){for(var u=[],c=0;c<i.sel.ranges.length;c++){var h=i.sel.ranges[c];u.push(new vt($y(h.anchor,s),$y(h.head,s)))}return Fr(i.cm,u,i.sel.primIndex)}function Ny(i,s,u){return i.line==s.line?de(u.line,i.ch-s.ch+u.ch):de(u.line+(i.line-s.line),i.ch)}function nA(i,s,u){for(var c=[],h=de(i.first,0),v=h,b=0;b<s.length;b++){var x=s[b],C=Ny(x.from,h,v),M=Ny(fo(x),h,v);if(h=x.to,v=M,u=="around"){var H=i.sel.ranges[b],K=De(H.head,H.anchor)<0;c[b]=new vt(K?M:C,K?C:M)}else c[b]=new vt(C,C)}return new dr(c,i.sel.primIndex)}function Oh(i){i.doc.mode=Is(i.options,i.doc.modeOption),ma(i)}function ma(i){i.doc.iter(function(s){s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null)}),i.doc.modeFrontier=i.doc.highlightFrontier=i.doc.first,ha(i,100),i.state.modeGen++,i.curOp&&Rn(i)}function Oy(i,s){return s.from.ch==0&&s.to.ch==0&&Se(s.text)==""&&(!i.cm||i.cm.options.wholeLineUpdateBefore)}function Lh(i,s,u,c){function h(Fe){return u?u[Fe]:null}function v(Fe,Le,Be){uE(Fe,Le,Be,c),ln(Fe,"change",Fe,s)}function b(Fe,Le){for(var Be=[],Je=Fe;Je<Le;++Je)Be.push(new Bs(M[Je],h(Je),c));return Be}var x=s.from,C=s.to,M=s.text,H=Ue(i,x.line),K=Ue(i,C.line),se=Se(M),re=h(M.length-1),me=C.line-x.line;if(s.full)i.insert(0,b(0,M.length)),i.remove(M.length,i.size-M.length);else if(Oy(i,s)){var xe=b(0,M.length-1);v(K,K.text,re),me&&i.remove(x.line,me),xe.length&&i.insert(x.line,xe)}else if(H==K)if(M.length==1)v(H,H.text.slice(0,x.ch)+se+H.text.slice(C.ch),re);else{var Te=b(1,M.length-1);Te.push(new Bs(se+H.text.slice(C.ch),re,c)),v(H,H.text.slice(0,x.ch)+M[0],h(0)),i.insert(x.line+1,Te)}else if(M.length==1)v(H,H.text.slice(0,x.ch)+M[0]+K.text.slice(C.ch),h(0)),i.remove(x.line+1,me);else{v(H,H.text.slice(0,x.ch)+M[0],h(0)),v(K,se+K.text.slice(C.ch),re);var Oe=b(1,M.length-1);me>1&&i.remove(x.line+1,me-1),i.insert(x.line+1,Oe)}ln(i,"change",i,s)}function ho(i,s,u){function c(h,v,b){if(h.linked)for(var x=0;x<h.linked.length;++x){var C=h.linked[x];if(C.doc!=v){var M=b&&C.sharedHist;u&&!M||(s(C.doc,M),c(C.doc,h,M))}}}c(i,null,!0)}function Ly(i,s){if(s.cm)throw new Error("This document is already in use.");i.doc=s,s.cm=i,bh(i),Oh(i),Ry(i),i.options.direction=s.direction,i.options.lineWrapping||ah(i),i.options.mode=s.modeOption,Rn(i)}function Ry(i){(i.doc.direction=="rtl"?_e:P)(i.display.lineDiv,"CodeMirror-rtl")}function rA(i){tr(i,function(){Ry(i),Rn(i)})}function gu(i){this.done=[],this.undone=[],this.undoDepth=i?i.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=i?i.maxGeneration:1}function Rh(i,s){var u={from:sn(s.from),to:fo(s),text:Ei(i,s.from,s.to)};return Dy(i,u,s.from.line,s.to.line+1),ho(i,function(c){return Dy(c,u,s.from.line,s.to.line+1)},!0),u}function Py(i){for(;i.length;){var s=Se(i);if(s.ranges)i.pop();else break}}function iA(i,s){if(s)return Py(i.done),Se(i.done);if(i.done.length&&!Se(i.done).ranges)return Se(i.done);if(i.done.length>1&&!i.done[i.done.length-2].ranges)return i.done.pop(),Se(i.done)}function Iy(i,s,u,c){var h=i.history;h.undone.length=0;var v=+new Date,b,x;if((h.lastOp==c||h.lastOrigin==s.origin&&s.origin&&(s.origin.charAt(0)=="+"&&h.lastModTime>v-(i.cm?i.cm.options.historyEventDelay:500)||s.origin.charAt(0)=="*"))&&(b=iA(h,h.lastOp==c)))x=Se(b.changes),De(s.from,s.to)==0&&De(s.from,x.to)==0?x.to=fo(s):b.changes.push(Rh(i,s));else{var C=Se(h.done);for((!C||!C.ranges)&&vu(i.sel,h.done),b={changes:[Rh(i,s)],generation:h.generation},h.done.push(b);h.done.length>h.undoDepth;)h.done.shift(),h.done[0].ranges||h.done.shift()}h.done.push(u),h.generation=++h.maxGeneration,h.lastModTime=h.lastSelTime=v,h.lastOp=h.lastSelOp=c,h.lastOrigin=h.lastSelOrigin=s.origin,x||Ft(i,"historyAdded")}function oA(i,s,u,c){var h=s.charAt(0);return h=="*"||h=="+"&&u.ranges.length==c.ranges.length&&u.somethingSelected()==c.somethingSelected()&&new Date-i.history.lastSelTime<=(i.cm?i.cm.options.historyEventDelay:500)}function sA(i,s,u,c){var h=i.history,v=c&&c.origin;u==h.lastSelOp||v&&h.lastSelOrigin==v&&(h.lastModTime==h.lastSelTime&&h.lastOrigin==v||oA(i,v,Se(h.done),s))?h.done[h.done.length-1]=s:vu(s,h.done),h.lastSelTime=+new Date,h.lastSelOrigin=v,h.lastSelOp=u,c&&c.clearRedo!==!1&&Py(h.undone)}function vu(i,s){var u=Se(s);u&&u.ranges&&u.equals(i)||s.push(i)}function Dy(i,s,u,c){var h=s["spans_"+i.id],v=0;i.iter(Math.max(i.first,u),Math.min(i.first+i.size,c),function(b){b.markedSpans&&((h||(h=s["spans_"+i.id]={}))[v]=b.markedSpans),++v})}function lA(i){if(!i)return null;for(var s,u=0;u<i.length;++u)i[u].marker.explicitlyCleared?s||(s=i.slice(0,u)):s&&s.push(i[u]);return s?s.length?s:null:i}function aA(i,s){var u=s["spans_"+i.id];if(!u)return null;for(var c=[],h=0;h<s.text.length;++h)c.push(lA(u[h]));return c}function Fy(i,s){var u=aA(i,s),c=ih(i,s);if(!u)return c;if(!c)return u;for(var h=0;h<u.length;++h){var v=u[h],b=c[h];if(v&&b)e:for(var x=0;x<b.length;++x){for(var C=b[x],M=0;M<v.length;++M)if(v[M].marker==C.marker)continue e;v.push(C)}else b&&(u[h]=b)}return u}function Ks(i,s,u){for(var c=[],h=0;h<i.length;++h){var v=i[h];if(v.ranges){c.push(u?dr.prototype.deepCopy.call(v):v);continue}var b=v.changes,x=[];c.push({changes:x});for(var C=0;C<b.length;++C){var M=b[C],H=void 0;if(x.push({from:M.from,to:M.to,text:M.text}),s)for(var K in M)(H=K.match(/^spans_(\d+)$/))&&ce(s,Number(H[1]))>-1&&(Se(x)[K]=M[K],delete M[K])}}return c}function Ph(i,s,u,c){if(c){var h=i.anchor;if(u){var v=De(s,h)<0;v!=De(u,h)<0?(h=s,s=u):v!=De(s,u)<0&&(s=u)}return new vt(h,s)}else return new vt(u||s,s)}function yu(i,s,u,c,h){h==null&&(h=i.cm&&(i.cm.display.shift||i.extend)),wn(i,new dr([Ph(i.sel.primary(),s,u,h)],0),c)}function zy(i,s,u){for(var c=[],h=i.cm&&(i.cm.display.shift||i.extend),v=0;v<i.sel.ranges.length;v++)c[v]=Ph(i.sel.ranges[v],s[v],null,h);var b=Fr(i.cm,c,i.sel.primIndex);wn(i,b,u)}function Ih(i,s,u,c){var h=i.sel.ranges.slice(0);h[s]=u,wn(i,Fr(i.cm,h,i.sel.primIndex),c)}function By(i,s,u,c){wn(i,uo(s,u),c)}function cA(i,s,u){var c={ranges:s.ranges,update:function(h){this.ranges=[];for(var v=0;v<h.length;v++)this.ranges[v]=new vt(ot(i,h[v].anchor),ot(i,h[v].head))},origin:u&&u.origin};return Ft(i,"beforeSelectionChange",i,c),i.cm&&Ft(i.cm,"beforeSelectionChange",i.cm,c),c.ranges!=s.ranges?Fr(i.cm,c.ranges,c.ranges.length-1):s}function Hy(i,s,u){var c=i.history.done,h=Se(c);h&&h.ranges?(c[c.length-1]=s,bu(i,s,u)):wn(i,s,u)}function wn(i,s,u){bu(i,s,u),sA(i,i.sel,i.cm?i.cm.curOp.id:NaN,u)}function bu(i,s,u){(er(i,"beforeSelectionChange")||i.cm&&er(i.cm,"beforeSelectionChange"))&&(s=cA(i,s,u));var c=u&&u.bias||(De(s.primary().head,i.sel.primary().head)<0?-1:1);jy(i,Uy(i,s,c,!0)),!(u&&u.scroll===!1)&&i.cm&&i.cm.getOption("readOnly")!="nocursor"&&Vs(i.cm)}function jy(i,s){s.equals(i.sel)||(i.sel=s,i.cm&&(i.cm.curOp.updateInput=1,i.cm.curOp.selectionChanged=!0,_r(i.cm)),ln(i,"cursorActivity",i))}function Wy(i){jy(i,Uy(i,i.sel,null,!1))}function Uy(i,s,u,c){for(var h,v=0;v<s.ranges.length;v++){var b=s.ranges[v],x=s.ranges.length==i.sel.ranges.length&&i.sel.ranges[v],C=wu(i,b.anchor,x&&x.anchor,u,c),M=b.head==b.anchor?C:wu(i,b.head,x&&x.head,u,c);(h||C!=b.anchor||M!=b.head)&&(h||(h=s.ranges.slice(0,v)),h[v]=new vt(C,M))}return h?Fr(i.cm,h,s.primIndex):s}function Ys(i,s,u,c,h){var v=Ue(i,s.line);if(v.markedSpans)for(var b=0;b<v.markedSpans.length;++b){var x=v.markedSpans[b],C=x.marker,M="selectLeft"in C?!C.selectLeft:C.inclusiveLeft,H="selectRight"in C?!C.selectRight:C.inclusiveRight;if((x.from==null||(M?x.from<=s.ch:x.from<s.ch))&&(x.to==null||(H?x.to>=s.ch:x.to>s.ch))){if(h&&(Ft(C,"beforeCursorEnter"),C.explicitlyCleared))if(v.markedSpans){--b;continue}else break;if(!C.atomic)continue;if(u){var K=C.find(c<0?1:-1),se=void 0;if((c<0?H:M)&&(K=qy(i,K,-c,K&&K.line==s.line?v:null)),K&&K.line==s.line&&(se=De(K,u))&&(c<0?se<0:se>0))return Ys(i,K,s,c,h)}var re=C.find(c<0?-1:1);return(c<0?M:H)&&(re=qy(i,re,c,re.line==s.line?v:null)),re?Ys(i,re,s,c,h):null}}return s}function wu(i,s,u,c,h){var v=c||1,b=Ys(i,s,u,v,h)||!h&&Ys(i,s,u,v,!0)||Ys(i,s,u,-v,h)||!h&&Ys(i,s,u,-v,!0);return b||(i.cantEdit=!0,de(i.first,0))}function qy(i,s,u,c){return u<0&&s.ch==0?s.line>i.first?ot(i,de(s.line-1)):null:u>0&&s.ch==(c||Ue(i,s.line)).text.length?s.line<i.first+i.size-1?de(s.line+1,0):null:new de(s.line,s.ch+u)}function Vy(i){i.setSelection(de(i.firstLine(),0),de(i.lastLine()),ne)}function Gy(i,s,u){var c={canceled:!1,from:s.from,to:s.to,text:s.text,origin:s.origin,cancel:function(){return c.canceled=!0}};return u&&(c.update=function(h,v,b,x){h&&(c.from=ot(i,h)),v&&(c.to=ot(i,v)),b&&(c.text=b),x!==void 0&&(c.origin=x)}),Ft(i,"beforeChange",i,c),i.cm&&Ft(i.cm,"beforeChange",i.cm,c),c.canceled?(i.cm&&(i.cm.curOp.updateInput=2),null):{from:c.from,to:c.to,text:c.text,origin:c.origin}}function Xs(i,s,u){if(i.cm){if(!i.cm.curOp)return an(i.cm,Xs)(i,s,u);if(i.cm.state.suppressEdits)return}if(!((er(i,"beforeChange")||i.cm&&er(i.cm,"beforeChange"))&&(s=Gy(i,s,!0),!s))){var c=Fv&&!u&&sE(i,s.from,s.to);if(c)for(var h=c.length-1;h>=0;--h)Ky(i,{from:c[h].from,to:c[h].to,text:h?[""]:s.text,origin:s.origin});else Ky(i,s)}}function Ky(i,s){if(!(s.text.length==1&&s.text[0]==""&&De(s.from,s.to)==0)){var u=Nh(i,s);Iy(i,s,u,i.cm?i.cm.curOp.id:NaN),ga(i,s,u,ih(i,s));var c=[];ho(i,function(h,v){!v&&ce(c,h.history)==-1&&(Zy(h.history,s),c.push(h.history)),ga(h,s,null,ih(h,s))})}}function xu(i,s,u){var c=i.cm&&i.cm.state.suppressEdits;if(!(c&&!u)){for(var h=i.history,v,b=i.sel,x=s=="undo"?h.done:h.undone,C=s=="undo"?h.undone:h.done,M=0;M<x.length&&(v=x[M],!(u?v.ranges&&!v.equals(i.sel):!v.ranges));M++);if(M!=x.length){for(h.lastOrigin=h.lastSelOrigin=null;;)if(v=x.pop(),v.ranges){if(vu(v,C),u&&!v.equals(i.sel)){wn(i,v,{clearRedo:!1});return}b=v}else if(c){x.push(v);return}else break;var H=[];vu(b,C),C.push({changes:H,generation:h.generation}),h.generation=v.generation||++h.maxGeneration;for(var K=er(i,"beforeChange")||i.cm&&er(i.cm,"beforeChange"),se=function(xe){var Te=v.changes[xe];if(Te.origin=s,K&&!Gy(i,Te,!1))return x.length=0,{};H.push(Rh(i,Te));var Oe=xe?Nh(i,Te):Se(x);ga(i,Te,Oe,Fy(i,Te)),!xe&&i.cm&&i.cm.scrollIntoView({from:Te.from,to:fo(Te)});var Fe=[];ho(i,function(Le,Be){!Be&&ce(Fe,Le.history)==-1&&(Zy(Le.history,Te),Fe.push(Le.history)),ga(Le,Te,null,Fy(Le,Te))})},re=v.changes.length-1;re>=0;--re){var me=se(re);if(me)return me.v}}}}function Yy(i,s){if(s!=0&&(i.first+=s,i.sel=new dr(be(i.sel.ranges,function(h){return new vt(de(h.anchor.line+s,h.anchor.ch),de(h.head.line+s,h.head.ch))}),i.sel.primIndex),i.cm)){Rn(i.cm,i.first,i.first-s,s);for(var u=i.cm.display,c=u.viewFrom;c<u.viewTo;c++)ao(i.cm,c,"gutter")}}function ga(i,s,u,c){if(i.cm&&!i.cm.curOp)return an(i.cm,ga)(i,s,u,c);if(s.to.line<i.first){Yy(i,s.text.length-1-(s.to.line-s.from.line));return}if(!(s.from.line>i.lastLine())){if(s.from.line<i.first){var h=s.text.length-1-(i.first-s.from.line);Yy(i,h),s={from:de(i.first,0),to:de(s.to.line+h,s.to.ch),text:[Se(s.text)],origin:s.origin}}var v=i.lastLine();s.to.line>v&&(s={from:s.from,to:de(v,Ue(i,v).text.length),text:[s.text[0]],origin:s.origin}),s.removed=Ei(i,s.from,s.to),u||(u=Nh(i,s)),i.cm?uA(i.cm,s,c):Lh(i,s,c),bu(i,u,ne),i.cantEdit&&wu(i,de(i.firstLine(),0))&&(i.cantEdit=!1)}}function uA(i,s,u){var c=i.doc,h=i.display,v=s.from,b=s.to,x=!1,C=v.line;i.options.lineWrapping||(C=O(Ir(Ue(c,v.line))),c.iter(C,b.line+1,function(re){if(re==h.maxLine)return x=!0,!0})),c.sel.contains(s.from,s.to)>-1&&_r(i),Lh(c,s,u,py(i)),i.options.lineWrapping||(c.iter(C,v.line+s.text.length,function(re){var me=iu(re);me>h.maxLineLength&&(h.maxLine=re,h.maxLineLength=me,h.maxLineChanged=!0,x=!1)}),x&&(i.curOp.updateMaxLine=!0)),QC(c,v.line),ha(i,400);var M=s.text.length-(b.line-v.line)-1;s.full?Rn(i):v.line==b.line&&s.text.length==1&&!Oy(i.doc,s)?ao(i,v.line,"text"):Rn(i,v.line,b.line+1,M);var H=er(i,"changes"),K=er(i,"change");if(K||H){var se={from:v,to:b,text:s.text,removed:s.removed,origin:s.origin};K&&ln(i,"change",i,se),H&&(i.curOp.changeObjs||(i.curOp.changeObjs=[])).push(se)}i.display.selForContextMenu=null}function Js(i,s,u,c,h){var v;c||(c=u),De(c,u)<0&&(v=[c,u],u=v[0],c=v[1]),typeof s=="string"&&(s=i.splitLines(s)),Xs(i,{from:u,to:c,text:s,origin:h})}function Xy(i,s,u,c){u<i.line?i.line+=c:s<i.line&&(i.line=s,i.ch=0)}function Jy(i,s,u,c){for(var h=0;h<i.length;++h){var v=i[h],b=!0;if(v.ranges){v.copied||(v=i[h]=v.deepCopy(),v.copied=!0);for(var x=0;x<v.ranges.length;x++)Xy(v.ranges[x].anchor,s,u,c),Xy(v.ranges[x].head,s,u,c);continue}for(var C=0;C<v.changes.length;++C){var M=v.changes[C];if(u<M.from.line)M.from=de(M.from.line+c,M.from.ch),M.to=de(M.to.line+c,M.to.ch);else if(s<=M.to.line){b=!1;break}}b||(i.splice(0,h+1),h=0)}}function Zy(i,s){var u=s.from.line,c=s.to.line,h=s.text.length-(c-u)-1;Jy(i.done,u,c,h),Jy(i.undone,u,c,h)}function va(i,s,u,c){var h=s,v=s;return typeof s=="number"?v=Ue(i,Mv(i,s)):h=O(s),h==null?null:(c(v,h)&&i.cm&&ao(i.cm,h,u),v)}function ya(i){this.lines=i,this.parent=null;for(var s=0,u=0;u<i.length;++u)i[u].parent=this,s+=i[u].height;this.height=s}ya.prototype={chunkSize:function(){return this.lines.length},removeInner:function(i,s){for(var u=i,c=i+s;u<c;++u){var h=this.lines[u];this.height-=h.height,fE(h),ln(h,"delete")}this.lines.splice(i,s)},collapse:function(i){i.push.apply(i,this.lines)},insertInner:function(i,s,u){this.height+=u,this.lines=this.lines.slice(0,i).concat(s).concat(this.lines.slice(i));for(var c=0;c<s.length;++c)s[c].parent=this},iterN:function(i,s,u){for(var c=i+s;i<c;++i)if(u(this.lines[i]))return!0}};function ba(i){this.children=i;for(var s=0,u=0,c=0;c<i.length;++c){var h=i[c];s+=h.chunkSize(),u+=h.height,h.parent=this}this.size=s,this.height=u,this.parent=null}ba.prototype={chunkSize:function(){return this.size},removeInner:function(i,s){this.size-=s;for(var u=0;u<this.children.length;++u){var c=this.children[u],h=c.chunkSize();if(i<h){var v=Math.min(s,h-i),b=c.height;if(c.removeInner(i,v),this.height-=b-c.height,h==v&&(this.children.splice(u--,1),c.parent=null),(s-=v)==0)break;i=0}else i-=h}if(this.size-s<25&&(this.children.length>1||!(this.children[0]instanceof ya))){var x=[];this.collapse(x),this.children=[new ya(x)],this.children[0].parent=this}},collapse:function(i){for(var s=0;s<this.children.length;++s)this.children[s].collapse(i)},insertInner:function(i,s,u){this.size+=s.length,this.height+=u;for(var c=0;c<this.children.length;++c){var h=this.children[c],v=h.chunkSize();if(i<=v){if(h.insertInner(i,s,u),h.lines&&h.lines.length>50){for(var b=h.lines.length%25+25,x=b;x<h.lines.length;){var C=new ya(h.lines.slice(x,x+=25));h.height-=C.height,this.children.splice(++c,0,C),C.parent=this}h.lines=h.lines.slice(0,b),this.maybeSpill()}break}i-=v}},maybeSpill:function(){if(!(this.children.length<=10)){var i=this;do{var s=i.children.splice(i.children.length-5,5),u=new ba(s);if(i.parent){i.size-=u.size,i.height-=u.height;var h=ce(i.parent.children,i);i.parent.children.splice(h+1,0,u)}else{var c=new ba(i.children);c.parent=i,i.children=[c,u],i=c}u.parent=i.parent}while(i.children.length>10);i.parent.maybeSpill()}},iterN:function(i,s,u){for(var c=0;c<this.children.length;++c){var h=this.children[c],v=h.chunkSize();if(i<v){var b=Math.min(s,v-i);if(h.iterN(i,b,u))return!0;if((s-=b)==0)break;i=0}else i-=v}}};var wa=function(i,s,u){if(u)for(var c in u)u.hasOwnProperty(c)&&(this[c]=u[c]);this.doc=i,this.node=s};wa.prototype.clear=function(){var i=this.doc.cm,s=this.line.widgets,u=this.line,c=O(u);if(!(c==null||!s)){for(var h=0;h<s.length;++h)s[h]==this&&s.splice(h--,1);s.length||(u.widgets=null);var v=sa(this);fr(u,Math.max(0,u.height-v)),i&&(tr(i,function(){Qy(i,u,-v),ao(i,c,"widget")}),ln(i,"lineWidgetCleared",i,this,c))}},wa.prototype.changed=function(){var i=this,s=this.height,u=this.doc.cm,c=this.line;this.height=null;var h=sa(this)-s;h&&(lo(this.doc,c)||fr(c,c.height+h),u&&tr(u,function(){u.curOp.forceUpdate=!0,Qy(u,c,h),ln(u,"lineWidgetChanged",u,i,O(c))}))},Nr(wa);function Qy(i,s,u){Mi(s)<(i.curOp&&i.curOp.scrollTop||i.doc.scrollTop)&&Th(i,u)}function fA(i,s,u,c){var h=new wa(i,u,c),v=i.cm;return v&&h.noHScroll&&(v.display.alignWidgets=!0),va(i,s,"widget",function(b){var x=b.widgets||(b.widgets=[]);if(h.insertAt==null?x.push(h):x.splice(Math.min(x.length,Math.max(0,h.insertAt)),0,h),h.line=b,v&&!lo(i,b)){var C=Mi(b)<i.scrollTop;fr(b,b.height+sa(h)),C&&Th(v,h.height),v.curOp.forceUpdate=!0}return!0}),v&&ln(v,"lineWidgetAdded",v,h,typeof s=="number"?s:O(s)),h}var e0=0,po=function(i,s){this.lines=[],this.type=s,this.doc=i,this.id=++e0};po.prototype.clear=function(){if(!this.explicitlyCleared){var i=this.doc.cm,s=i&&!i.curOp;if(s&&ts(i),er(this,"clear")){var u=this.find();u&&ln(this,"clear",u.from,u.to)}for(var c=null,h=null,v=0;v<this.lines.length;++v){var b=this.lines[v],x=ra(b.markedSpans,this);i&&!this.collapsed?ao(i,O(b),"text"):i&&(x.to!=null&&(h=O(b)),x.from!=null&&(c=O(b))),b.markedSpans=nE(b.markedSpans,x),x.from==null&&this.collapsed&&!lo(this.doc,b)&&i&&fr(b,Ws(i.display))}if(i&&this.collapsed&&!i.options.lineWrapping)for(var C=0;C<this.lines.length;++C){var M=Ir(this.lines[C]),H=iu(M);H>i.display.maxLineLength&&(i.display.maxLine=M,i.display.maxLineLength=H,i.display.maxLineChanged=!0)}c!=null&&i&&this.collapsed&&Rn(i,c,h+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,i&&Wy(i.doc)),i&&ln(i,"markerCleared",i,this,c,h),s&&ns(i),this.parent&&this.parent.clear()}},po.prototype.find=function(i,s){i==null&&this.type=="bookmark"&&(i=1);for(var u,c,h=0;h<this.lines.length;++h){var v=this.lines[h],b=ra(v.markedSpans,this);if(b.from!=null&&(u=de(s?v:O(v),b.from),i==-1))return u;if(b.to!=null&&(c=de(s?v:O(v),b.to),i==1))return c}return u&&{from:u,to:c}},po.prototype.changed=function(){var i=this,s=this.find(-1,!0),u=this,c=this.doc.cm;!s||!c||tr(c,function(){var h=s.line,v=O(s.line),b=dh(c,v);if(b&&(sy(b),c.curOp.selectionChanged=c.curOp.forceUpdate=!0),c.curOp.updateMaxLine=!0,!lo(u.doc,h)&&u.height!=null){var x=u.height;u.height=null;var C=sa(u)-x;C&&fr(h,h.height+C)}ln(c,"markerChanged",c,i)})},po.prototype.attachLine=function(i){if(!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(!s.maybeHiddenMarkers||ce(s.maybeHiddenMarkers,this)==-1)&&(s.maybeUnhiddenMarkers||(s.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(i)},po.prototype.detachLine=function(i){if(this.lines.splice(ce(this.lines,i),1),!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(s.maybeHiddenMarkers||(s.maybeHiddenMarkers=[])).push(this)}},Nr(po);function Zs(i,s,u,c,h){if(c&&c.shared)return dA(i,s,u,c,h);if(i.cm&&!i.cm.curOp)return an(i.cm,Zs)(i,s,u,c,h);var v=new po(i,h),b=De(s,u);if(c&&Q(c,v,!1),b>0||b==0&&v.clearWhenEmpty!==!1)return v;if(v.replacedWith&&(v.collapsed=!0,v.widgetNode=R("span",[v.replacedWith],"CodeMirror-widget"),c.handleMouseEvents||v.widgetNode.setAttribute("cm-ignore-events","true"),c.insertLeft&&(v.widgetNode.insertLeft=!0)),v.collapsed){if(Uv(i,s.line,s,u,v)||s.line!=u.line&&Uv(i,u.line,s,u,v))throw new Error("Inserting collapsed marker partially overlapping an existing one");tE()}v.addToHistory&&Iy(i,{from:s,to:u,origin:"markText"},i.sel,NaN);var x=s.line,C=i.cm,M;if(i.iter(x,u.line+1,function(K){C&&v.collapsed&&!C.options.lineWrapping&&Ir(K)==C.display.maxLine&&(M=!0),v.collapsed&&x!=s.line&&fr(K,0),rE(K,new eu(v,x==s.line?s.ch:null,x==u.line?u.ch:null),i.cm&&i.cm.curOp),++x}),v.collapsed&&i.iter(s.line,u.line+1,function(K){lo(i,K)&&fr(K,0)}),v.clearOnEnter&&Xe(v,"beforeCursorEnter",function(){return v.clear()}),v.readOnly&&(eE(),(i.history.done.length||i.history.undone.length)&&i.clearHistory()),v.collapsed&&(v.id=++e0,v.atomic=!0),C){if(M&&(C.curOp.updateMaxLine=!0),v.collapsed)Rn(C,s.line,u.line+1);else if(v.className||v.startStyle||v.endStyle||v.css||v.attributes||v.title)for(var H=s.line;H<=u.line;H++)ao(C,H,"text");v.atomic&&Wy(C.doc),ln(C,"markerAdded",C,v)}return v}var xa=function(i,s){this.markers=i,this.primary=s;for(var u=0;u<i.length;++u)i[u].parent=this};xa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var i=0;i<this.markers.length;++i)this.markers[i].clear();ln(this,"clear")}},xa.prototype.find=function(i,s){return this.primary.find(i,s)},Nr(xa);function dA(i,s,u,c,h){c=Q(c),c.shared=!1;var v=[Zs(i,s,u,c,h)],b=v[0],x=c.widgetNode;return ho(i,function(C){x&&(c.widgetNode=x.cloneNode(!0)),v.push(Zs(C,ot(C,s),ot(C,u),c,h));for(var M=0;M<C.linked.length;++M)if(C.linked[M].isParent)return;b=Se(v)}),new xa(v,b)}function t0(i){return i.findMarks(de(i.first,0),i.clipPos(de(i.lastLine())),function(s){return s.parent})}function hA(i,s){for(var u=0;u<s.length;u++){var c=s[u],h=c.find(),v=i.clipPos(h.from),b=i.clipPos(h.to);if(De(v,b)){var x=Zs(i,v,b,c.primary,c.primary.type);c.markers.push(x),x.parent=c}}}function pA(i){for(var s=function(c){var h=i[c],v=[h.primary.doc];ho(h.primary.doc,function(C){return v.push(C)});for(var b=0;b<h.markers.length;b++){var x=h.markers[b];ce(v,x.doc)==-1&&(x.parent=null,h.markers.splice(b--,1))}},u=0;u<i.length;u++)s(u)}var mA=0,Pn=function(i,s,u,c,h){if(!(this instanceof Pn))return new Pn(i,s,u,c,h);u==null&&(u=0),ba.call(this,[new ya([new Bs("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var v=de(u,0);this.sel=uo(v),this.history=new gu(null),this.id=++mA,this.modeOption=s,this.lineSep=c,this.direction=h=="rtl"?"rtl":"ltr",this.extend=!1,typeof i=="string"&&(i=this.splitLines(i)),Lh(this,{from:v,to:v,text:i}),wn(this,uo(v),ne)};Pn.prototype=oe(ba.prototype,{constructor:Pn,iter:function(i,s,u){u?this.iterN(i-this.first,s-i,u):this.iterN(this.first,this.first+this.size,i)},insert:function(i,s){for(var u=0,c=0;c<s.length;++c)u+=s[c].height;this.insertInner(i-this.first,s,u)},remove:function(i,s){this.removeInner(i-this.first,s)},getValue:function(i){var s=ta(this,this.first,this.first+this.size);return i===!1?s:s.join(i||this.lineSeparator())},setValue:cn(function(i){var s=de(this.first,0),u=this.first+this.size-1;Xs(this,{from:s,to:de(u,Ue(this,u).text.length),text:this.splitLines(i),origin:"setValue",full:!0},!0),this.cm&&ca(this.cm,0,0),wn(this,uo(s),ne)}),replaceRange:function(i,s,u,c){s=ot(this,s),u=u?ot(this,u):s,Js(this,i,s,u,c)},getRange:function(i,s,u){var c=Ei(this,ot(this,i),ot(this,s));return u===!1?c:u===""?c.join(""):c.join(u||this.lineSeparator())},getLine:function(i){var s=this.getLineHandle(i);return s&&s.text},getLineHandle:function(i){if(ye(this,i))return Ue(this,i)},getLineNumber:function(i){return O(i)},getLineHandleVisualStart:function(i){return typeof i=="number"&&(i=Ue(this,i)),Ir(i)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(i){return ot(this,i)},getCursor:function(i){var s=this.sel.primary(),u;return i==null||i=="head"?u=s.head:i=="anchor"?u=s.anchor:i=="end"||i=="to"||i===!1?u=s.to():u=s.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:cn(function(i,s,u){By(this,ot(this,typeof i=="number"?de(i,s||0):i),null,u)}),setSelection:cn(function(i,s,u){By(this,ot(this,i),ot(this,s||i),u)}),extendSelection:cn(function(i,s,u){yu(this,ot(this,i),s&&ot(this,s),u)}),extendSelections:cn(function(i,s){zy(this,$v(this,i),s)}),extendSelectionsBy:cn(function(i,s){var u=be(this.sel.ranges,i);zy(this,$v(this,u),s)}),setSelections:cn(function(i,s,u){if(i.length){for(var c=[],h=0;h<i.length;h++)c[h]=new vt(ot(this,i[h].anchor),ot(this,i[h].head||i[h].anchor));s==null&&(s=Math.min(i.length-1,this.sel.primIndex)),wn(this,Fr(this.cm,c,s),u)}}),addSelection:cn(function(i,s,u){var c=this.sel.ranges.slice(0);c.push(new vt(ot(this,i),ot(this,s||i))),wn(this,Fr(this.cm,c,c.length-1),u)}),getSelection:function(i){for(var s=this.sel.ranges,u,c=0;c<s.length;c++){var h=Ei(this,s[c].from(),s[c].to());u=u?u.concat(h):h}return i===!1?u:u.join(i||this.lineSeparator())},getSelections:function(i){for(var s=[],u=this.sel.ranges,c=0;c<u.length;c++){var h=Ei(this,u[c].from(),u[c].to());i!==!1&&(h=h.join(i||this.lineSeparator())),s[c]=h}return s},replaceSelection:function(i,s,u){for(var c=[],h=0;h<this.sel.ranges.length;h++)c[h]=i;this.replaceSelections(c,s,u||"+input")},replaceSelections:cn(function(i,s,u){for(var c=[],h=this.sel,v=0;v<h.ranges.length;v++){var b=h.ranges[v];c[v]={from:b.from(),to:b.to(),text:this.splitLines(i[v]),origin:u}}for(var x=s&&s!="end"&&nA(this,c,s),C=c.length-1;C>=0;C--)Xs(this,c[C]);x?Hy(this,x):this.cm&&Vs(this.cm)}),undo:cn(function(){xu(this,"undo")}),redo:cn(function(){xu(this,"redo")}),undoSelection:cn(function(){xu(this,"undo",!0)}),redoSelection:cn(function(){xu(this,"redo",!0)}),setExtending:function(i){this.extend=i},getExtending:function(){return this.extend},historySize:function(){for(var i=this.history,s=0,u=0,c=0;c<i.done.length;c++)i.done[c].ranges||++s;for(var h=0;h<i.undone.length;h++)i.undone[h].ranges||++u;return{undo:s,redo:u}},clearHistory:function(){var i=this;this.history=new gu(this.history),ho(this,function(s){return s.history=i.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(i){return i&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(i){return this.history.generation==(i||this.cleanGeneration)},getHistory:function(){return{done:Ks(this.history.done),undone:Ks(this.history.undone)}},setHistory:function(i){var s=this.history=new gu(this.history);s.done=Ks(i.done.slice(0),null,!0),s.undone=Ks(i.undone.slice(0),null,!0)},setGutterMarker:cn(function(i,s,u){return va(this,i,"gutter",function(c){var h=c.gutterMarkers||(c.gutterMarkers={});return h[s]=u,!u&&pt(h)&&(c.gutterMarkers=null),!0})}),clearGutter:cn(function(i){var s=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[i]&&va(s,u,"gutter",function(){return u.gutterMarkers[i]=null,pt(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(i){var s;if(typeof i=="number"){if(!ye(this,i)||(s=i,i=Ue(this,i),!i))return null}else if(s=O(i),s==null)return null;return{line:s,handle:i,text:i.text,gutterMarkers:i.gutterMarkers,textClass:i.textClass,bgClass:i.bgClass,wrapClass:i.wrapClass,widgets:i.widgets}},addLineClass:cn(function(i,s,u){return va(this,i,s=="gutter"?"gutter":"class",function(c){var h=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass";if(!c[h])c[h]=u;else{if(q(u).test(c[h]))return!1;c[h]+=" "+u}return!0})}),removeLineClass:cn(function(i,s,u){return va(this,i,s=="gutter"?"gutter":"class",function(c){var h=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass",v=c[h];if(v)if(u==null)c[h]=null;else{var b=v.match(q(u));if(!b)return!1;var x=b.index+b[0].length;c[h]=v.slice(0,b.index)+(!b.index||x==v.length?"":" ")+v.slice(x)||null}else return!1;return!0})}),addLineWidget:cn(function(i,s,u){return fA(this,i,s,u)}),removeLineWidget:function(i){i.clear()},markText:function(i,s,u){return Zs(this,ot(this,i),ot(this,s),u,u&&u.type||"range")},setBookmark:function(i,s){var u={replacedWith:s&&(s.nodeType==null?s.widget:s),insertLeft:s&&s.insertLeft,clearWhenEmpty:!1,shared:s&&s.shared,handleMouseEvents:s&&s.handleMouseEvents};return i=ot(this,i),Zs(this,i,i,u,"bookmark")},findMarksAt:function(i){i=ot(this,i);var s=[],u=Ue(this,i.line).markedSpans;if(u)for(var c=0;c<u.length;++c){var h=u[c];(h.from==null||h.from<=i.ch)&&(h.to==null||h.to>=i.ch)&&s.push(h.marker.parent||h.marker)}return s},findMarks:function(i,s,u){i=ot(this,i),s=ot(this,s);var c=[],h=i.line;return this.iter(i.line,s.line+1,function(v){var b=v.markedSpans;if(b)for(var x=0;x<b.length;x++){var C=b[x];!(C.to!=null&&h==i.line&&i.ch>=C.to||C.from==null&&h!=i.line||C.from!=null&&h==s.line&&C.from>=s.ch)&&(!u||u(C.marker))&&c.push(C.marker.parent||C.marker)}++h}),c},getAllMarks:function(){var i=[];return this.iter(function(s){var u=s.markedSpans;if(u)for(var c=0;c<u.length;++c)u[c].from!=null&&i.push(u[c].marker)}),i},posFromIndex:function(i){var s,u=this.first,c=this.lineSeparator().length;return this.iter(function(h){var v=h.text.length+c;if(v>i)return s=i,!0;i-=v,++u}),ot(this,de(u,s))},indexFromPos:function(i){i=ot(this,i);var s=i.ch;if(i.line<this.first||i.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,i.line,function(c){s+=c.text.length+u}),s},copy:function(i){var s=new Pn(ta(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return s.scrollTop=this.scrollTop,s.scrollLeft=this.scrollLeft,s.sel=this.sel,s.extend=!1,i&&(s.history.undoDepth=this.history.undoDepth,s.setHistory(this.getHistory())),s},linkedDoc:function(i){i||(i={});var s=this.first,u=this.first+this.size;i.from!=null&&i.from>s&&(s=i.from),i.to!=null&&i.to<u&&(u=i.to);var c=new Pn(ta(this,s,u),i.mode||this.modeOption,s,this.lineSep,this.direction);return i.sharedHist&&(c.history=this.history),(this.linked||(this.linked=[])).push({doc:c,sharedHist:i.sharedHist}),c.linked=[{doc:this,isParent:!0,sharedHist:i.sharedHist}],hA(c,t0(this)),c},unlinkDoc:function(i){if(i instanceof Nt&&(i=i.doc),this.linked)for(var s=0;s<this.linked.length;++s){var u=this.linked[s];if(u.doc==i){this.linked.splice(s,1),i.unlinkDoc(this),pA(t0(this));break}}if(i.history==this.history){var c=[i.id];ho(i,function(h){return c.push(h.id)},!0),i.history=new gu(null),i.history.done=Ks(this.history.done,c),i.history.undone=Ks(this.history.undone,c)}},iterLinkedDocs:function(i){ho(this,i)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(i){return this.lineSep?i.split(this.lineSep):kr(i)},lineSeparator:function(){return this.lineSep||`
|
|
63
|
-
`},setDirection:cn(function(i){i!="rtl"&&(i="ltr"),i!=this.direction&&(this.direction=i,this.iter(function(s){return s.order=null}),this.cm&&rA(this.cm))})}),Pn.prototype.eachLine=Pn.prototype.iter;var n0=0;function gA(i){var s=this;if(r0(s),!(zt(s,i)||$i(s.display,i))){bn(i),d&&(n0=+new Date);var u=Jo(s,i,!0),c=i.dataTransfer.files;if(!(!u||s.isReadOnly()))if(c&&c.length&&window.FileReader&&window.File)for(var h=c.length,v=Array(h),b=0,x=function(){++b==h&&an(s,function(){u=ot(s.doc,u);var re={from:u,to:u,text:s.doc.splitLines(v.filter(function(me){return me!=null}).join(s.doc.lineSeparator())),origin:"paste"};Xs(s.doc,re),Hy(s.doc,uo(ot(s.doc,u),ot(s.doc,fo(re))))})()},C=function(re,me){if(s.options.allowDropFileTypes&&ce(s.options.allowDropFileTypes,re.type)==-1){x();return}var xe=new FileReader;xe.onerror=function(){return x()},xe.onload=function(){var Te=xe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Te)){x();return}v[me]=Te,x()},xe.readAsText(re)},M=0;M<c.length;M++)C(c[M],M);else{if(s.state.draggingText&&s.doc.sel.contains(u)>-1){s.state.draggingText(i),setTimeout(function(){return s.display.input.focus()},20);return}try{var H=i.dataTransfer.getData("Text");if(H){var K;if(s.state.draggingText&&!s.state.draggingText.copy&&(K=s.listSelections()),bu(s.doc,uo(u,u)),K)for(var se=0;se<K.length;++se)Js(s.doc,"",K[se].anchor,K[se].head,"drag");s.replaceSelection(H,"around","paste"),s.display.input.focus()}}catch{}}}}function vA(i,s){if(d&&(!i.state.draggingText||+new Date-n0<100)){ro(s);return}if(!(zt(i,s)||$i(i.display,s))&&(s.dataTransfer.setData("Text",i.getSelection()),s.dataTransfer.effectAllowed="copyMove",s.dataTransfer.setDragImage&&!_)){var u=S("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(u.width=u.height=1,i.display.wrapper.appendChild(u),u._top=u.offsetTop),s.dataTransfer.setDragImage(u,0,0),E&&u.parentNode.removeChild(u)}}function yA(i,s){var u=Jo(i,s);if(u){var c=document.createDocumentFragment();wh(i,u,c),i.display.dragCursor||(i.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),i.display.lineSpace.insertBefore(i.display.dragCursor,i.display.cursorDiv)),T(i.display.dragCursor,c)}}function r0(i){i.display.dragCursor&&(i.display.lineSpace.removeChild(i.display.dragCursor),i.display.dragCursor=null)}function i0(i){if(document.getElementsByClassName){for(var s=document.getElementsByClassName("CodeMirror"),u=[],c=0;c<s.length;c++){var h=s[c].CodeMirror;h&&u.push(h)}u.length&&u[0].operation(function(){for(var v=0;v<u.length;v++)i(u[v])})}}var o0=!1;function bA(){o0||(wA(),o0=!0)}function wA(){var i;Xe(window,"resize",function(){i==null&&(i=setTimeout(function(){i=null,i0(xA)},100))}),Xe(window,"blur",function(){return i0(qs)})}function xA(i){var s=i.display;s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.scrollbarsClipped=!1,i.setSize()}for(var mo={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"},Sa=0;Sa<10;Sa++)mo[Sa+48]=mo[Sa+96]=String(Sa);for(var Su=65;Su<=90;Su++)mo[Su]=String.fromCharCode(Su);for(var _a=1;_a<=12;_a++)mo[_a+111]=mo[_a+63235]="F"+_a;var Oi={};Oi.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"},Oi.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"},Oi.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"},Oi.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"]},Oi.default=D?Oi.macDefault:Oi.pcDefault;function SA(i){var s=i.split(/-(?!$)/);i=s[s.length-1];for(var u,c,h,v,b=0;b<s.length-1;b++){var x=s[b];if(/^(cmd|meta|m)$/i.test(x))v=!0;else if(/^a(lt)?$/i.test(x))u=!0;else if(/^(c|ctrl|control)$/i.test(x))c=!0;else if(/^s(hift)?$/i.test(x))h=!0;else throw new Error("Unrecognized modifier name: "+x)}return u&&(i="Alt-"+i),c&&(i="Ctrl-"+i),v&&(i="Cmd-"+i),h&&(i="Shift-"+i),i}function _A(i){var s={};for(var u in i)if(i.hasOwnProperty(u)){var c=i[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(c=="..."){delete i[u];continue}for(var h=be(u.split(" "),SA),v=0;v<h.length;v++){var b=void 0,x=void 0;v==h.length-1?(x=h.join(" "),b=c):(x=h.slice(0,v+1).join(" "),b="...");var C=s[x];if(!C)s[x]=b;else if(C!=b)throw new Error("Inconsistent bindings for "+x)}delete i[u]}for(var M in s)i[M]=s[M];return i}function Qs(i,s,u,c){s=_u(s);var h=s.call?s.call(i,c):s[i];if(h===!1)return"nothing";if(h==="...")return"multi";if(h!=null&&u(h))return"handled";if(s.fallthrough){if(Object.prototype.toString.call(s.fallthrough)!="[object Array]")return Qs(i,s.fallthrough,u,c);for(var v=0;v<s.fallthrough.length;v++){var b=Qs(i,s.fallthrough[v],u,c);if(b)return b}}}function s0(i){var s=typeof i=="string"?i:mo[i.keyCode];return s=="Ctrl"||s=="Alt"||s=="Shift"||s=="Mod"}function l0(i,s,u){var c=i;return s.altKey&&c!="Alt"&&(i="Alt-"+i),(X?s.metaKey:s.ctrlKey)&&c!="Ctrl"&&(i="Ctrl-"+i),(X?s.ctrlKey:s.metaKey)&&c!="Mod"&&(i="Cmd-"+i),!u&&s.shiftKey&&c!="Shift"&&(i="Shift-"+i),i}function a0(i,s){if(E&&i.keyCode==34&&i.char)return!1;var u=mo[i.keyCode];return u==null||i.altGraphKey?!1:(i.keyCode==3&&i.code&&(u=i.code),l0(u,i,s))}function _u(i){return typeof i=="string"?Oi[i]:i}function el(i,s){for(var u=i.doc.sel.ranges,c=[],h=0;h<u.length;h++){for(var v=s(u[h]);c.length&&De(v.from,Se(c).to)<=0;){var b=c.pop();if(De(b.from,v.from)<0){v.from=b.from;break}}c.push(v)}tr(i,function(){for(var x=c.length-1;x>=0;x--)Js(i.doc,"",c[x].from,c[x].to,"+delete");Vs(i)})}function Dh(i,s,u){var c=on(i.text,s+u,u);return c<0||c>i.text.length?null:c}function Fh(i,s,u){var c=Dh(i,s.ch,u);return c==null?null:new de(s.line,c,u<0?"after":"before")}function zh(i,s,u,c,h){if(i){s.doc.direction=="rtl"&&(h=-h);var v=at(u,s.doc.direction);if(v){var b=h<0?Se(v):v[0],x=h<0==(b.level==1),C=x?"after":"before",M;if(b.level>0||s.doc.direction=="rtl"){var H=js(s,u);M=h<0?u.text.length-1:0;var K=li(s,H,M).top;M=Zt(function(se){return li(s,H,se).top==K},h<0==(b.level==1)?b.from:b.to-1,M),C=="before"&&(M=Dh(u,M,1))}else M=h<0?b.to:b.from;return new de(c,M,C)}}return new de(c,h<0?u.text.length:0,h<0?"before":"after")}function kA(i,s,u,c){var h=at(s,i.doc.direction);if(!h)return Fh(s,u,c);u.ch>=s.text.length?(u.ch=s.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var v=Gt(h,u.ch,u.sticky),b=h[v];if(i.doc.direction=="ltr"&&b.level%2==0&&(c>0?b.to>u.ch:b.from<u.ch))return Fh(s,u,c);var x=function(Oe,Fe){return Dh(s,Oe instanceof de?Oe.ch:Oe,Fe)},C,M=function(Oe){return i.options.lineWrapping?(C=C||js(i,s),hy(i,s,C,Oe)):{begin:0,end:s.text.length}},H=M(u.sticky=="before"?x(u,-1):u.ch);if(i.doc.direction=="rtl"||b.level==1){var K=b.level==1==c<0,se=x(u,K?1:-1);if(se!=null&&(K?se<=b.to&&se<=H.end:se>=b.from&&se>=H.begin)){var re=K?"before":"after";return new de(u.line,se,re)}}var me=function(Oe,Fe,Le){for(var Be=function(Et,un){return un?new de(u.line,x(Et,1),"before"):new de(u.line,Et,"after")};Oe>=0&&Oe<h.length;Oe+=Fe){var Je=h[Oe],Ge=Fe>0==(Je.level!=1),lt=Ge?Le.begin:x(Le.end,-1);if(Je.from<=lt&<<Je.to||(lt=Ge?Je.from:x(Je.to,-1),Le.begin<=lt&<<Le.end))return Be(lt,Ge)}},xe=me(v+c,c,H);if(xe)return xe;var Te=c>0?H.end:x(H.begin,-1);return Te!=null&&!(c>0&&Te==s.text.length)&&(xe=me(c>0?0:h.length-1,c,M(Te)),xe)?xe:null}var ka={selectAll:Vy,singleSelection:function(i){return i.setSelection(i.getCursor("anchor"),i.getCursor("head"),ne)},killLine:function(i){return el(i,function(s){if(s.empty()){var u=Ue(i.doc,s.head.line).text.length;return s.head.ch==u&&s.head.line<i.lastLine()?{from:s.head,to:de(s.head.line+1,0)}:{from:s.head,to:de(s.head.line,u)}}else return{from:s.from(),to:s.to()}})},deleteLine:function(i){return el(i,function(s){return{from:de(s.from().line,0),to:ot(i.doc,de(s.to().line+1,0))}})},delLineLeft:function(i){return el(i,function(s){return{from:de(s.from().line,0),to:s.from()}})},delWrappedLineLeft:function(i){return el(i,function(s){var u=i.charCoords(s.head,"div").top+5,c=i.coordsChar({left:0,top:u},"div");return{from:c,to:s.from()}})},delWrappedLineRight:function(i){return el(i,function(s){var u=i.charCoords(s.head,"div").top+5,c=i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:u},"div");return{from:s.from(),to:c}})},undo:function(i){return i.undo()},redo:function(i){return i.redo()},undoSelection:function(i){return i.undoSelection()},redoSelection:function(i){return i.redoSelection()},goDocStart:function(i){return i.extendSelection(de(i.firstLine(),0))},goDocEnd:function(i){return i.extendSelection(de(i.lastLine()))},goLineStart:function(i){return i.extendSelectionsBy(function(s){return c0(i,s.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(i){return i.extendSelectionsBy(function(s){return u0(i,s.head)},{origin:"+move",bias:1})},goLineEnd:function(i){return i.extendSelectionsBy(function(s){return TA(i,s.head.line)},{origin:"+move",bias:-1})},goLineRight:function(i){return i.extendSelectionsBy(function(s){var u=i.cursorCoords(s.head,"div").top+5;return i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:u},"div")},pe)},goLineLeft:function(i){return i.extendSelectionsBy(function(s){var u=i.cursorCoords(s.head,"div").top+5;return i.coordsChar({left:0,top:u},"div")},pe)},goLineLeftSmart:function(i){return i.extendSelectionsBy(function(s){var u=i.cursorCoords(s.head,"div").top+5,c=i.coordsChar({left:0,top:u},"div");return c.ch<i.getLine(c.line).search(/\S/)?u0(i,s.head):c},pe)},goLineUp:function(i){return i.moveV(-1,"line")},goLineDown:function(i){return i.moveV(1,"line")},goPageUp:function(i){return i.moveV(-1,"page")},goPageDown:function(i){return i.moveV(1,"page")},goCharLeft:function(i){return i.moveH(-1,"char")},goCharRight:function(i){return i.moveH(1,"char")},goColumnLeft:function(i){return i.moveH(-1,"column")},goColumnRight:function(i){return i.moveH(1,"column")},goWordLeft:function(i){return i.moveH(-1,"word")},goGroupRight:function(i){return i.moveH(1,"group")},goGroupLeft:function(i){return i.moveH(-1,"group")},goWordRight:function(i){return i.moveH(1,"word")},delCharBefore:function(i){return i.deleteH(-1,"codepoint")},delCharAfter:function(i){return i.deleteH(1,"char")},delWordBefore:function(i){return i.deleteH(-1,"word")},delWordAfter:function(i){return i.deleteH(1,"word")},delGroupBefore:function(i){return i.deleteH(-1,"group")},delGroupAfter:function(i){return i.deleteH(1,"group")},indentAuto:function(i){return i.indentSelection("smart")},indentMore:function(i){return i.indentSelection("add")},indentLess:function(i){return i.indentSelection("subtract")},insertTab:function(i){return i.replaceSelection(" ")},insertSoftTab:function(i){for(var s=[],u=i.listSelections(),c=i.options.tabSize,h=0;h<u.length;h++){var v=u[h].from(),b=ie(i.getLine(v.line),v.ch,c);s.push($e(c-b%c))}i.replaceSelections(s)},defaultTab:function(i){i.somethingSelected()?i.indentSelection("add"):i.execCommand("insertTab")},transposeChars:function(i){return tr(i,function(){for(var s=i.listSelections(),u=[],c=0;c<s.length;c++)if(s[c].empty()){var h=s[c].head,v=Ue(i.doc,h.line).text;if(v){if(h.ch==v.length&&(h=new de(h.line,h.ch-1)),h.ch>0)h=new de(h.line,h.ch+1),i.replaceRange(v.charAt(h.ch-1)+v.charAt(h.ch-2),de(h.line,h.ch-2),h,"+transpose");else if(h.line>i.doc.first){var b=Ue(i.doc,h.line-1).text;b&&(h=new de(h.line,1),i.replaceRange(v.charAt(0)+i.doc.lineSeparator()+b.charAt(b.length-1),de(h.line-1,b.length-1),h,"+transpose"))}}u.push(new vt(h,h))}i.setSelections(u)})},newlineAndIndent:function(i){return tr(i,function(){for(var s=i.listSelections(),u=s.length-1;u>=0;u--)i.replaceRange(i.doc.lineSeparator(),s[u].anchor,s[u].head,"+input");s=i.listSelections();for(var c=0;c<s.length;c++)i.indentLine(s[c].from().line,null,!0);Vs(i)})},openLine:function(i){return i.replaceSelection(`
|
|
64
|
-
`,"start")},toggleOverwrite:function(i){return i.toggleOverwrite()}};function c0(i,s){var u=Ue(i.doc,s),c=Ir(u);return c!=u&&(s=O(c)),zh(!0,i,c,s,1)}function TA(i,s){var u=Ue(i.doc,s),c=aE(u);return c!=u&&(s=O(c)),zh(!0,i,u,s,-1)}function u0(i,s){var u=c0(i,s.line),c=Ue(i.doc,u.line),h=at(c,i.doc.direction);if(!h||h[0].level==0){var v=Math.max(u.ch,c.text.search(/\S/)),b=s.line==u.line&&s.ch<=v&&s.ch;return de(u.line,b?0:v,u.sticky)}return u}function ku(i,s,u){if(typeof s=="string"&&(s=ka[s],!s))return!1;i.display.input.ensurePolled();var c=i.display.shift,h=!1;try{i.isReadOnly()&&(i.state.suppressEdits=!0),u&&(i.display.shift=!1),h=s(i)!=W}finally{i.display.shift=c,i.state.suppressEdits=!1}return h}function CA(i,s,u){for(var c=0;c<i.state.keyMaps.length;c++){var h=Qs(s,i.state.keyMaps[c],u,i);if(h)return h}return i.options.extraKeys&&Qs(s,i.options.extraKeys,u,i)||Qs(s,i.options.keyMap,u,i)}var EA=new le;function Ta(i,s,u,c){var h=i.state.keySeq;if(h){if(s0(s))return"handled";if(/\'$/.test(s)?i.state.keySeq=null:EA.set(50,function(){i.state.keySeq==h&&(i.state.keySeq=null,i.display.input.reset())}),f0(i,h+" "+s,u,c))return!0}return f0(i,s,u,c)}function f0(i,s,u,c){var h=CA(i,s,c);return h=="multi"&&(i.state.keySeq=s),h=="handled"&&ln(i,"keyHandled",i,s,u),(h=="handled"||h=="multi")&&(bn(u),xh(i)),!!h}function d0(i,s){var u=a0(s,!0);return u?s.shiftKey&&!i.state.keySeq?Ta(i,"Shift-"+u,s,function(c){return ku(i,c,!0)})||Ta(i,u,s,function(c){if(typeof c=="string"?/^go[A-Z]/.test(c):c.motion)return ku(i,c)}):Ta(i,u,s,function(c){return ku(i,c)}):!1}function AA(i,s,u){return Ta(i,"'"+u+"'",s,function(c){return ku(i,c,!0)})}var Bh=null;function h0(i){var s=this;if(!(i.target&&i.target!=s.display.input.getField())&&(s.curOp.focus=ve(qe(s)),!zt(s,i))){d&&p<11&&i.keyCode==27&&(i.returnValue=!1);var u=i.keyCode;s.display.shift=u==16||i.shiftKey;var c=d0(s,i);E&&(Bh=c?u:null,!c&&u==88&&!Zc&&(D?i.metaKey:i.ctrlKey)&&s.replaceSelection("",null,"cut")),o&&!D&&!c&&u==46&&i.shiftKey&&!i.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(s.display.lineDiv.className)&&MA(s)}}function MA(i){var s=i.display.lineDiv;_e(s,"CodeMirror-crosshair");function u(c){(c.keyCode==18||!c.altKey)&&(P(s,"CodeMirror-crosshair"),yn(document,"keyup",u),yn(document,"mouseover",u))}Xe(document,"keyup",u),Xe(document,"mouseover",u)}function p0(i){i.keyCode==16&&(this.doc.sel.shift=!1),zt(this,i)}function m0(i){var s=this;if(!(i.target&&i.target!=s.display.input.getField())&&!($i(s.display,i)||zt(s,i)||i.ctrlKey&&!i.altKey||D&&i.metaKey)){var u=i.keyCode,c=i.charCode;if(E&&u==Bh){Bh=null,bn(i);return}if(!(E&&(!i.which||i.which<10)&&d0(s,i))){var h=String.fromCharCode(c??u);h!="\b"&&(AA(s,i,h)||s.display.input.onKeyPress(i))}}}var $A=400,Hh=function(i,s,u){this.time=i,this.pos=s,this.button=u};Hh.prototype.compare=function(i,s,u){return this.time+$A>i&&De(s,this.pos)==0&&u==this.button};var Ca,Ea;function NA(i,s){var u=+new Date;return Ea&&Ea.compare(u,i,s)?(Ca=Ea=null,"triple"):Ca&&Ca.compare(u,i,s)?(Ea=new Hh(u,i,s),Ca=null,"double"):(Ca=new Hh(u,i,s),Ea=null,"single")}function g0(i){var s=this,u=s.display;if(!(zt(s,i)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=i.shiftKey,$i(u,i)){m||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!jh(s,i)){var c=Jo(s,i),h=Or(i),v=c?NA(c,h):"single";Re(s).focus(),h==1&&s.state.selectingText&&s.state.selectingText(i),!(c&&OA(s,h,c,v,i))&&(h==1?c?RA(s,c,v,i):Zl(i)==u.scroller&&bn(i):h==2?(c&&yu(s.doc,c),setTimeout(function(){return u.input.focus()},20)):h==3&&(V?s.display.input.onContextMenu(i):Sh(s)))}}}function OA(i,s,u,c,h){var v="Click";return c=="double"?v="Double"+v:c=="triple"&&(v="Triple"+v),v=(s==1?"Left":s==2?"Middle":"Right")+v,Ta(i,l0(v,h),h,function(b){if(typeof b=="string"&&(b=ka[b]),!b)return!1;var x=!1;try{i.isReadOnly()&&(i.state.suppressEdits=!0),x=b(i,u)!=W}finally{i.state.suppressEdits=!1}return x})}function LA(i,s,u){var c=i.getOption("configureMouse"),h=c?c(i,s,u):{};if(h.unit==null){var v=U?u.shiftKey&&u.metaKey:u.altKey;h.unit=v?"rectangle":s=="single"?"char":s=="double"?"word":"line"}return(h.extend==null||i.doc.extend)&&(h.extend=i.doc.extend||u.shiftKey),h.addNew==null&&(h.addNew=D?u.metaKey:u.ctrlKey),h.moveOnDrag==null&&(h.moveOnDrag=!(D?u.altKey:u.ctrlKey)),h}function RA(i,s,u,c){d?setTimeout(B(vy,i),0):i.curOp.focus=ve(qe(i));var h=LA(i,u,c),v=i.doc.sel,b;i.options.dragDrop&&eh&&!i.isReadOnly()&&u=="single"&&(b=v.contains(s))>-1&&(De((b=v.ranges[b]).from(),s)<0||s.xRel>0)&&(De(b.to(),s)>0||s.xRel<0)?PA(i,c,s,h):IA(i,c,s,h)}function PA(i,s,u,c){var h=i.display,v=!1,b=an(i,function(M){m&&(h.scroller.draggable=!1),i.state.draggingText=!1,i.state.delayingBlurEvent&&(i.hasFocus()?i.state.delayingBlurEvent=!1:Sh(i)),yn(h.wrapper.ownerDocument,"mouseup",b),yn(h.wrapper.ownerDocument,"mousemove",x),yn(h.scroller,"dragstart",C),yn(h.scroller,"drop",b),v||(bn(M),c.addNew||yu(i.doc,u,null,null,c.extend),m&&!_||d&&p==9?setTimeout(function(){h.wrapper.ownerDocument.body.focus({preventScroll:!0}),h.input.focus()},20):h.input.focus())}),x=function(M){v=v||Math.abs(s.clientX-M.clientX)+Math.abs(s.clientY-M.clientY)>=10},C=function(){return v=!0};m&&(h.scroller.draggable=!0),i.state.draggingText=b,b.copy=!c.moveOnDrag,Xe(h.wrapper.ownerDocument,"mouseup",b),Xe(h.wrapper.ownerDocument,"mousemove",x),Xe(h.scroller,"dragstart",C),Xe(h.scroller,"drop",b),i.state.delayingBlurEvent=!0,setTimeout(function(){return h.input.focus()},20),h.scroller.dragDrop&&h.scroller.dragDrop()}function v0(i,s,u){if(u=="char")return new vt(s,s);if(u=="word")return i.findWordAt(s);if(u=="line")return new vt(de(s.line,0),ot(i.doc,de(s.line+1,0)));var c=u(i,s);return new vt(c.from,c.to)}function IA(i,s,u,c){d&&Sh(i);var h=i.display,v=i.doc;bn(s);var b,x,C=v.sel,M=C.ranges;if(c.addNew&&!c.extend?(x=v.sel.contains(u),x>-1?b=M[x]:b=new vt(u,u)):(b=v.sel.primary(),x=v.sel.primIndex),c.unit=="rectangle")c.addNew||(b=new vt(u,u)),u=Jo(i,s,!0,!0),x=-1;else{var H=v0(i,u,c.unit);c.extend?b=Ph(b,H.anchor,H.head,c.extend):b=H}c.addNew?x==-1?(x=M.length,wn(v,Fr(i,M.concat([b]),x),{scroll:!1,origin:"*mouse"})):M.length>1&&M[x].empty()&&c.unit=="char"&&!c.extend?(wn(v,Fr(i,M.slice(0,x).concat(M.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),C=v.sel):Ih(v,x,b,he):(x=0,wn(v,new dr([b],0),he),C=v.sel);var K=u;function se(Le){if(De(K,Le)!=0)if(K=Le,c.unit=="rectangle"){for(var Be=[],Je=i.options.tabSize,Ge=ie(Ue(v,u.line).text,u.ch,Je),lt=ie(Ue(v,Le.line).text,Le.ch,Je),Et=Math.min(Ge,lt),un=Math.max(Ge,lt),Dt=Math.min(u.line,Le.line),nr=Math.min(i.lastLine(),Math.max(u.line,Le.line));Dt<=nr;Dt++){var In=Ue(v,Dt).text,Qt=ge(In,Et,Je);Et==un?Be.push(new vt(de(Dt,Qt),de(Dt,Qt))):In.length>Qt&&Be.push(new vt(de(Dt,Qt),de(Dt,ge(In,un,Je))))}Be.length||Be.push(new vt(u,u)),wn(v,Fr(i,C.ranges.slice(0,x).concat(Be),x),{origin:"*mouse",scroll:!1}),i.scrollIntoView(Le)}else{var Dn=b,hn=v0(i,Le,c.unit),tn=Dn.anchor,en;De(hn.anchor,tn)>0?(en=hn.head,tn=zs(Dn.from(),hn.anchor)):(en=hn.anchor,tn=Ln(Dn.to(),hn.head));var Ht=C.ranges.slice(0);Ht[x]=DA(i,new vt(ot(v,tn),en)),wn(v,Fr(i,Ht,x),he)}}var re=h.wrapper.getBoundingClientRect(),me=0;function xe(Le){var Be=++me,Je=Jo(i,Le,!0,c.unit=="rectangle");if(Je)if(De(Je,K)!=0){i.curOp.focus=ve(qe(i)),se(Je);var Ge=du(h,v);(Je.line>=Ge.to||Je.line<Ge.from)&&setTimeout(an(i,function(){me==Be&&xe(Le)}),150)}else{var lt=Le.clientY<re.top?-20:Le.clientY>re.bottom?20:0;lt&&setTimeout(an(i,function(){me==Be&&(h.scroller.scrollTop+=lt,xe(Le))}),50)}}function Te(Le){i.state.selectingText=!1,me=1/0,Le&&(bn(Le),h.input.focus()),yn(h.wrapper.ownerDocument,"mousemove",Oe),yn(h.wrapper.ownerDocument,"mouseup",Fe),v.history.lastSelOrigin=null}var Oe=an(i,function(Le){Le.buttons===0||!Or(Le)?Te(Le):xe(Le)}),Fe=an(i,Te);i.state.selectingText=Fe,Xe(h.wrapper.ownerDocument,"mousemove",Oe),Xe(h.wrapper.ownerDocument,"mouseup",Fe)}function DA(i,s){var u=s.anchor,c=s.head,h=Ue(i.doc,u.line);if(De(u,c)==0&&u.sticky==c.sticky)return s;var v=at(h);if(!v)return s;var b=Gt(v,u.ch,u.sticky),x=v[b];if(x.from!=u.ch&&x.to!=u.ch)return s;var C=b+(x.from==u.ch==(x.level!=1)?0:1);if(C==0||C==v.length)return s;var M;if(c.line!=u.line)M=(c.line-u.line)*(i.doc.direction=="ltr"?1:-1)>0;else{var H=Gt(v,c.ch,c.sticky),K=H-b||(c.ch-u.ch)*(x.level==1?-1:1);H==C-1||H==C?M=K<0:M=K>0}var se=v[C+(M?-1:0)],re=M==(se.level==1),me=re?se.from:se.to,xe=re?"after":"before";return u.ch==me&&u.sticky==xe?s:new vt(new de(u.line,me,xe),c)}function y0(i,s,u,c){var h,v;if(s.touches)h=s.touches[0].clientX,v=s.touches[0].clientY;else try{h=s.clientX,v=s.clientY}catch{return!1}if(h>=Math.floor(i.display.gutters.getBoundingClientRect().right))return!1;c&&bn(s);var b=i.display,x=b.lineDiv.getBoundingClientRect();if(v>x.bottom||!er(i,u))return On(s);v-=x.top-b.viewOffset;for(var C=0;C<i.display.gutterSpecs.length;++C){var M=b.gutters.childNodes[C];if(M&&M.getBoundingClientRect().right>=h){var H=G(i.doc,v),K=i.display.gutterSpecs[C];return Ft(i,u,i,H,K.className,s),On(s)}}}function jh(i,s){return y0(i,s,"gutterClick",!0)}function b0(i,s){$i(i.display,s)||FA(i,s)||zt(i,s,"contextmenu")||V||i.display.input.onContextMenu(s)}function FA(i,s){return er(i,"gutterContextMenu")?y0(i,s,"gutterContextMenu",!1):!1}function w0(i){i.display.wrapper.className=i.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+i.options.theme.replace(/(^|\s)\s*/g," cm-s-"),la(i)}var tl={toString:function(){return"CodeMirror.Init"}},x0={},Tu={};function zA(i){var s=i.optionHandlers;function u(c,h,v,b){i.defaults[c]=h,v&&(s[c]=b?function(x,C,M){M!=tl&&v(x,C,M)}:v)}i.defineOption=u,i.Init=tl,u("value","",function(c,h){return c.setValue(h)},!0),u("mode",null,function(c,h){c.doc.modeOption=h,Oh(c)},!0),u("indentUnit",2,Oh,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(c){ma(c),la(c),Rn(c)},!0),u("lineSeparator",null,function(c,h){if(c.doc.lineSep=h,!!h){var v=[],b=c.doc.first;c.doc.iter(function(C){for(var M=0;;){var H=C.text.indexOf(h,M);if(H==-1)break;M=H+h.length,v.push(de(b,H))}b++});for(var x=v.length-1;x>=0;x--)Js(c.doc,h,v[x],de(v[x].line,v[x].ch+h.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(c,h,v){c.state.specialChars=new RegExp(h.source+(h.test(" ")?"":"| "),"g"),v!=tl&&c.refresh()}),u("specialCharPlaceholder",pE,function(c){return c.refresh()},!0),u("electricChars",!0),u("inputStyle",$?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(c,h){return c.getInputField().spellcheck=h},!0),u("autocorrect",!1,function(c,h){return c.getInputField().autocorrect=h},!0),u("autocapitalize",!1,function(c,h){return c.getInputField().autocapitalize=h},!0),u("rtlMoveVisually",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(c){w0(c),pa(c)},!0),u("keyMap","default",function(c,h,v){var b=_u(h),x=v!=tl&&_u(v);x&&x.detach&&x.detach(c,b),b.attach&&b.attach(c,x||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,HA,!0),u("gutters",[],function(c,h){c.display.gutterSpecs=$h(h,c.options.lineNumbers),pa(c)},!0),u("fixedGutter",!0,function(c,h){c.display.gutters.style.left=h?yh(c.display)+"px":"0",c.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(c){return Gs(c)},!0),u("scrollbarStyle","native",function(c){_y(c),Gs(c),c.display.scrollbars.setScrollTop(c.doc.scrollTop),c.display.scrollbars.setScrollLeft(c.doc.scrollLeft)},!0),u("lineNumbers",!1,function(c,h){c.display.gutterSpecs=$h(c.options.gutters,h),pa(c)},!0),u("firstLineNumber",1,pa,!0),u("lineNumberFormatter",function(c){return c},pa,!0),u("showCursorWhenSelecting",!1,aa,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(c,h){h=="nocursor"&&(qs(c),c.display.input.blur()),c.display.input.readOnlyChanged(h)}),u("screenReaderLabel",null,function(c,h){h=h===""?null:h,c.display.input.screenReaderLabelChanged(h)}),u("disableInput",!1,function(c,h){h||c.display.input.reset()},!0),u("dragDrop",!0,BA),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,aa,!0),u("singleCursorHeightPerLine",!0,aa,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,ma,!0),u("addModeClass",!1,ma,!0),u("pollInterval",100),u("undoDepth",200,function(c,h){return c.doc.history.undoDepth=h}),u("historyEventDelay",1250),u("viewportMargin",10,function(c){return c.refresh()},!0),u("maxHighlightLength",1e4,ma,!0),u("moveInputWithCursor",!0,function(c,h){h||c.display.input.resetPosition()}),u("tabindex",null,function(c,h){return c.display.input.getField().tabIndex=h||""}),u("autofocus",null),u("direction","ltr",function(c,h){return c.doc.setDirection(h)},!0),u("phrases",null)}function BA(i,s,u){var c=u&&u!=tl;if(!s!=!c){var h=i.display.dragFunctions,v=s?Xe:yn;v(i.display.scroller,"dragstart",h.start),v(i.display.scroller,"dragenter",h.enter),v(i.display.scroller,"dragover",h.over),v(i.display.scroller,"dragleave",h.leave),v(i.display.scroller,"drop",h.drop)}}function HA(i){i.options.lineWrapping?(_e(i.display.wrapper,"CodeMirror-wrap"),i.display.sizer.style.minWidth="",i.display.sizerWidth=null):(P(i.display.wrapper,"CodeMirror-wrap"),ah(i)),bh(i),Rn(i),la(i),setTimeout(function(){return Gs(i)},100)}function Nt(i,s){var u=this;if(!(this instanceof Nt))return new Nt(i,s);this.options=s=s?Q(s):{},Q(x0,s,!1);var c=s.value;typeof c=="string"?c=new Pn(c,s.mode,null,s.lineSeparator,s.direction):s.mode&&(c.modeOption=s.mode),this.doc=c;var h=new Nt.inputStyles[s.inputStyle](this),v=this.display=new eA(i,c,h,s);v.wrapper.CodeMirror=this,w0(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_y(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},s.autofocus&&!$&&v.input.focus(),d&&p<11&&setTimeout(function(){return u.display.input.reset(!0)},20),jA(this),bA(),ts(this),this.curOp.forceUpdate=!0,Ly(this,c),s.autofocus&&!$||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&_h(u)},20):qs(this);for(var b in Tu)Tu.hasOwnProperty(b)&&Tu[b](this,s[b],tl);Cy(this),s.finishInit&&s.finishInit(this);for(var x=0;x<Wh.length;++x)Wh[x](this);ns(this),m&&s.lineWrapping&&getComputedStyle(v.lineDiv).textRendering=="optimizelegibility"&&(v.lineDiv.style.textRendering="auto")}Nt.defaults=x0,Nt.optionHandlers=Tu;function jA(i){var s=i.display;Xe(s.scroller,"mousedown",an(i,g0)),d&&p<11?Xe(s.scroller,"dblclick",an(i,function(C){if(!zt(i,C)){var M=Jo(i,C);if(!(!M||jh(i,C)||$i(i.display,C))){bn(C);var H=i.findWordAt(M);yu(i.doc,H.anchor,H.head)}}})):Xe(s.scroller,"dblclick",function(C){return zt(i,C)||bn(C)}),Xe(s.scroller,"contextmenu",function(C){return b0(i,C)}),Xe(s.input.getField(),"contextmenu",function(C){s.scroller.contains(C.target)||b0(i,C)});var u,c={end:0};function h(){s.activeTouch&&(u=setTimeout(function(){return s.activeTouch=null},1e3),c=s.activeTouch,c.end=+new Date)}function v(C){if(C.touches.length!=1)return!1;var M=C.touches[0];return M.radiusX<=1&&M.radiusY<=1}function b(C,M){if(M.left==null)return!0;var H=M.left-C.left,K=M.top-C.top;return H*H+K*K>400}Xe(s.scroller,"touchstart",function(C){if(!zt(i,C)&&!v(C)&&!jh(i,C)){s.input.ensurePolled(),clearTimeout(u);var M=+new Date;s.activeTouch={start:M,moved:!1,prev:M-c.end<=300?c:null},C.touches.length==1&&(s.activeTouch.left=C.touches[0].pageX,s.activeTouch.top=C.touches[0].pageY)}}),Xe(s.scroller,"touchmove",function(){s.activeTouch&&(s.activeTouch.moved=!0)}),Xe(s.scroller,"touchend",function(C){var M=s.activeTouch;if(M&&!$i(s,C)&&M.left!=null&&!M.moved&&new Date-M.start<300){var H=i.coordsChar(s.activeTouch,"page"),K;!M.prev||b(M,M.prev)?K=new vt(H,H):!M.prev.prev||b(M,M.prev.prev)?K=i.findWordAt(H):K=new vt(de(H.line,0),ot(i.doc,de(H.line+1,0))),i.setSelection(K.anchor,K.head),i.focus(),bn(C)}h()}),Xe(s.scroller,"touchcancel",h),Xe(s.scroller,"scroll",function(){s.scroller.clientHeight&&(ua(i,s.scroller.scrollTop),Qo(i,s.scroller.scrollLeft,!0),Ft(i,"scroll",i))}),Xe(s.scroller,"mousewheel",function(C){return My(i,C)}),Xe(s.scroller,"DOMMouseScroll",function(C){return My(i,C)}),Xe(s.wrapper,"scroll",function(){return s.wrapper.scrollTop=s.wrapper.scrollLeft=0}),s.dragFunctions={enter:function(C){zt(i,C)||ro(C)},over:function(C){zt(i,C)||(yA(i,C),ro(C))},start:function(C){return vA(i,C)},drop:an(i,gA),leave:function(C){zt(i,C)||r0(i)}};var x=s.input.getField();Xe(x,"keyup",function(C){return p0.call(i,C)}),Xe(x,"keydown",an(i,h0)),Xe(x,"keypress",an(i,m0)),Xe(x,"focus",function(C){return _h(i,C)}),Xe(x,"blur",function(C){return qs(i,C)})}var Wh=[];Nt.defineInitHook=function(i){return Wh.push(i)};function Aa(i,s,u,c){var h=i.doc,v;u==null&&(u="add"),u=="smart"&&(h.mode.indent?v=na(i,s).state:u="prev");var b=i.options.tabSize,x=Ue(h,s),C=ie(x.text,null,b);x.stateAfter&&(x.stateAfter=null);var M=x.text.match(/^\s*/)[0],H;if(!c&&!/\S/.test(x.text))H=0,u="not";else if(u=="smart"&&(H=h.mode.indent(v,x.text.slice(M.length),x.text),H==W||H>150)){if(!c)return;u="prev"}u=="prev"?s>h.first?H=ie(Ue(h,s-1).text,null,b):H=0:u=="add"?H=C+i.options.indentUnit:u=="subtract"?H=C-i.options.indentUnit:typeof u=="number"&&(H=C+u),H=Math.max(0,H);var K="",se=0;if(i.options.indentWithTabs)for(var re=Math.floor(H/b);re;--re)se+=b,K+=" ";if(se<H&&(K+=$e(H-se)),K!=M)return Js(h,K,de(s,0),de(s,M.length),"+input"),x.stateAfter=null,!0;for(var me=0;me<h.sel.ranges.length;me++){var xe=h.sel.ranges[me];if(xe.head.line==s&&xe.head.ch<M.length){var Te=de(s,M.length);Ih(h,me,new vt(Te,Te));break}}}var zr=null;function Cu(i){zr=i}function Uh(i,s,u,c,h){var v=i.doc;i.display.shift=!1,c||(c=v.sel);var b=+new Date-200,x=h=="paste"||i.state.pasteIncoming>b,C=kr(s),M=null;if(x&&c.ranges.length>1)if(zr&&zr.text.join(`
|
|
65
|
-
`)==s){if(c.ranges.length%zr.text.length==0){M=[];for(var H=0;H<zr.text.length;H++)M.push(v.splitLines(zr.text[H]))}}else C.length==c.ranges.length&&i.options.pasteLinesPerSelection&&(M=be(C,function(Oe){return[Oe]}));for(var K=i.curOp.updateInput,se=c.ranges.length-1;se>=0;se--){var re=c.ranges[se],me=re.from(),xe=re.to();re.empty()&&(u&&u>0?me=de(me.line,me.ch-u):i.state.overwrite&&!x?xe=de(xe.line,Math.min(Ue(v,xe.line).text.length,xe.ch+Se(C).length)):x&&zr&&zr.lineWise&&zr.text.join(`
|
|
66
|
-
`)==C.join(`
|
|
67
|
-
`)&&(me=xe=de(me.line,0)));var Te={from:me,to:xe,text:M?M[se%M.length]:C,origin:h||(x?"paste":i.state.cutIncoming>b?"cut":"+input")};Xs(i.doc,Te),ln(i,"inputRead",i,Te)}s&&!x&&_0(i,s),Vs(i),i.curOp.updateInput<2&&(i.curOp.updateInput=K),i.curOp.typing=!0,i.state.pasteIncoming=i.state.cutIncoming=-1}function S0(i,s){var u=i.clipboardData&&i.clipboardData.getData("Text");if(u)return i.preventDefault(),!s.isReadOnly()&&!s.options.disableInput&&s.hasFocus()&&tr(s,function(){return Uh(s,u,0,null,"paste")}),!0}function _0(i,s){if(!(!i.options.electricChars||!i.options.smartIndent))for(var u=i.doc.sel,c=u.ranges.length-1;c>=0;c--){var h=u.ranges[c];if(!(h.head.ch>100||c&&u.ranges[c-1].head.line==h.head.line)){var v=i.getModeAt(h.head),b=!1;if(v.electricChars){for(var x=0;x<v.electricChars.length;x++)if(s.indexOf(v.electricChars.charAt(x))>-1){b=Aa(i,h.head.line,"smart");break}}else v.electricInput&&v.electricInput.test(Ue(i.doc,h.head.line).text.slice(0,h.head.ch))&&(b=Aa(i,h.head.line,"smart"));b&&ln(i,"electricInput",i,h.head.line)}}}function k0(i){for(var s=[],u=[],c=0;c<i.doc.sel.ranges.length;c++){var h=i.doc.sel.ranges[c].head.line,v={anchor:de(h,0),head:de(h+1,0)};u.push(v),s.push(i.getRange(v.anchor,v.head))}return{text:s,ranges:u}}function qh(i,s,u,c){i.setAttribute("autocorrect",u?"on":"off"),i.setAttribute("autocapitalize",c?"on":"off"),i.setAttribute("spellcheck",!!s)}function T0(){var i=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),s=S("div",[i],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return m?i.style.width="1000px":i.setAttribute("wrap","off"),N&&(i.style.border="1px solid black"),s}function WA(i){var s=i.optionHandlers,u=i.helpers={};i.prototype={constructor:i,focus:function(){Re(this).focus(),this.display.input.focus()},setOption:function(c,h){var v=this.options,b=v[c];v[c]==h&&c!="mode"||(v[c]=h,s.hasOwnProperty(c)&&an(this,s[c])(this,h,b),Ft(this,"optionChange",this,c))},getOption:function(c){return this.options[c]},getDoc:function(){return this.doc},addKeyMap:function(c,h){this.state.keyMaps[h?"push":"unshift"](_u(c))},removeKeyMap:function(c){for(var h=this.state.keyMaps,v=0;v<h.length;++v)if(h[v]==c||h[v].name==c)return h.splice(v,1),!0},addOverlay:Cn(function(c,h){var v=c.token?c:i.getMode(this.options,c);if(v.startState)throw new Error("Overlays may not be stateful.");te(this.state.overlays,{mode:v,modeSpec:c,opaque:h&&h.opaque,priority:h&&h.priority||0},function(b){return b.priority}),this.state.modeGen++,Rn(this)}),removeOverlay:Cn(function(c){for(var h=this.state.overlays,v=0;v<h.length;++v){var b=h[v].modeSpec;if(b==c||typeof c=="string"&&b.name==c){h.splice(v,1),this.state.modeGen++,Rn(this);return}}}),indentLine:Cn(function(c,h,v){typeof h!="string"&&typeof h!="number"&&(h==null?h=this.options.smartIndent?"smart":"prev":h=h?"add":"subtract"),ye(this.doc,c)&&Aa(this,c,h,v)}),indentSelection:Cn(function(c){for(var h=this.doc.sel.ranges,v=-1,b=0;b<h.length;b++){var x=h[b];if(x.empty())x.head.line>v&&(Aa(this,x.head.line,c,!0),v=x.head.line,b==this.doc.sel.primIndex&&Vs(this));else{var C=x.from(),M=x.to(),H=Math.max(v,C.line);v=Math.min(this.lastLine(),M.line-(M.ch?0:1))+1;for(var K=H;K<v;++K)Aa(this,K,c);var se=this.doc.sel.ranges;C.ch==0&&h.length==se.length&&se[b].from().ch>0&&Ih(this.doc,b,new vt(C,se[b].to()),ne)}}}),getTokenAt:function(c,h){return Pv(this,c,h)},getLineTokens:function(c,h){return Pv(this,de(c),h,!0)},getTokenTypeAt:function(c){c=ot(this.doc,c);var h=Ov(this,Ue(this.doc,c.line)),v=0,b=(h.length-1)/2,x=c.ch,C;if(x==0)C=h[2];else for(;;){var M=v+b>>1;if((M?h[M*2-1]:0)>=x)b=M;else if(h[M*2+1]<x)v=M+1;else{C=h[M*2+2];break}}var H=C?C.indexOf("overlay "):-1;return H<0?C:H==0?null:C.slice(0,H-1)},getModeAt:function(c){var h=this.doc.mode;return h.innerMode?i.innerMode(h,this.getTokenAt(c).state).mode:h},getHelper:function(c,h){return this.getHelpers(c,h)[0]},getHelpers:function(c,h){var v=[];if(!u.hasOwnProperty(h))return v;var b=u[h],x=this.getModeAt(c);if(typeof x[h]=="string")b[x[h]]&&v.push(b[x[h]]);else if(x[h])for(var C=0;C<x[h].length;C++){var M=b[x[h][C]];M&&v.push(M)}else x.helperType&&b[x.helperType]?v.push(b[x.helperType]):b[x.name]&&v.push(b[x.name]);for(var H=0;H<b._global.length;H++){var K=b._global[H];K.pred(x,this)&&ce(v,K.val)==-1&&v.push(K.val)}return v},getStateAfter:function(c,h){var v=this.doc;return c=Mv(v,c??v.first+v.size-1),na(this,c+1,h).state},cursorCoords:function(c,h){var v,b=this.doc.sel.primary();return c==null?v=b.head:typeof c=="object"?v=ot(this.doc,c):v=c?b.from():b.to(),Dr(this,v,h||"page")},charCoords:function(c,h){return au(this,ot(this.doc,c),h||"page")},coordsChar:function(c,h){return c=uy(this,c,h||"page"),mh(this,c.left,c.top)},lineAtHeight:function(c,h){return c=uy(this,{top:c,left:0},h||"page").top,G(this.doc,c+this.display.viewOffset)},heightAtLine:function(c,h,v){var b=!1,x;if(typeof c=="number"){var C=this.doc.first+this.doc.size-1;c<this.doc.first?c=this.doc.first:c>C&&(c=C,b=!0),x=Ue(this.doc,c)}else x=c;return lu(this,x,{top:0,left:0},h||"page",v||b).top+(b?this.doc.height-Mi(x):0)},defaultTextHeight:function(){return Ws(this.display)},defaultCharWidth:function(){return Us(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(c,h,v,b,x){var C=this.display;c=Dr(this,ot(this.doc,c));var M=c.bottom,H=c.left;if(h.style.position="absolute",h.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(h),C.sizer.appendChild(h),b=="over")M=c.top;else if(b=="above"||b=="near"){var K=Math.max(C.wrapper.clientHeight,this.doc.height),se=Math.max(C.sizer.clientWidth,C.lineSpace.clientWidth);(b=="above"||c.bottom+h.offsetHeight>K)&&c.top>h.offsetHeight?M=c.top-h.offsetHeight:c.bottom+h.offsetHeight<=K&&(M=c.bottom),H+h.offsetWidth>se&&(H=se-h.offsetWidth)}h.style.top=M+"px",h.style.left=h.style.right="",x=="right"?(H=C.sizer.clientWidth-h.offsetWidth,h.style.right="0px"):(x=="left"?H=0:x=="middle"&&(H=(C.sizer.clientWidth-h.offsetWidth)/2),h.style.left=H+"px"),v&&BE(this,{left:H,top:M,right:H+h.offsetWidth,bottom:M+h.offsetHeight})},triggerOnKeyDown:Cn(h0),triggerOnKeyPress:Cn(m0),triggerOnKeyUp:p0,triggerOnMouseDown:Cn(g0),execCommand:function(c){if(ka.hasOwnProperty(c))return ka[c].call(null,this)},triggerElectric:Cn(function(c){_0(this,c)}),findPosH:function(c,h,v,b){var x=1;h<0&&(x=-1,h=-h);for(var C=ot(this.doc,c),M=0;M<h&&(C=Vh(this.doc,C,x,v,b),!C.hitSide);++M);return C},moveH:Cn(function(c,h){var v=this;this.extendSelectionsBy(function(b){return v.display.shift||v.doc.extend||b.empty()?Vh(v.doc,b.head,c,h,v.options.rtlMoveVisually):c<0?b.from():b.to()},pe)}),deleteH:Cn(function(c,h){var v=this.doc.sel,b=this.doc;v.somethingSelected()?b.replaceSelection("",null,"+delete"):el(this,function(x){var C=Vh(b,x.head,c,h,!1);return c<0?{from:C,to:x.head}:{from:x.head,to:C}})}),findPosV:function(c,h,v,b){var x=1,C=b;h<0&&(x=-1,h=-h);for(var M=ot(this.doc,c),H=0;H<h;++H){var K=Dr(this,M,"div");if(C==null?C=K.left:K.left=C,M=C0(this,K,x,v),M.hitSide)break}return M},moveV:Cn(function(c,h){var v=this,b=this.doc,x=[],C=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(H){if(C)return c<0?H.from():H.to();var K=Dr(v,H.head,"div");H.goalColumn!=null&&(K.left=H.goalColumn),x.push(K.left);var se=C0(v,K,c,h);return h=="page"&&H==b.sel.primary()&&Th(v,au(v,se,"div").top-K.top),se},pe),x.length)for(var M=0;M<b.sel.ranges.length;M++)b.sel.ranges[M].goalColumn=x[M]}),findWordAt:function(c){var h=this.doc,v=Ue(h,c.line).text,b=c.ch,x=c.ch;if(v){var C=this.getHelper(c,"wordChars");(c.sticky=="before"||x==v.length)&&b?--b:++x;for(var M=v.charAt(b),H=ut(M,C)?function(K){return ut(K,C)}:/\s/.test(M)?function(K){return/\s/.test(K)}:function(K){return!/\s/.test(K)&&!ut(K)};b>0&&H(v.charAt(b-1));)--b;for(;x<v.length&&H(v.charAt(x));)++x}return new vt(de(c.line,b),de(c.line,x))},toggleOverwrite:function(c){c!=null&&c==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?_e(this.display.cursorDiv,"CodeMirror-overwrite"):P(this.display.cursorDiv,"CodeMirror-overwrite"),Ft(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ve(qe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Cn(function(c,h){ca(this,c,h)}),getScrollInfo:function(){var c=this.display.scroller;return{left:c.scrollLeft,top:c.scrollTop,height:c.scrollHeight-si(this)-this.display.barHeight,width:c.scrollWidth-si(this)-this.display.barWidth,clientHeight:fh(this),clientWidth:Yo(this)}},scrollIntoView:Cn(function(c,h){c==null?(c={from:this.doc.sel.primary().head,to:null},h==null&&(h=this.options.cursorScrollMargin)):typeof c=="number"?c={from:de(c,0),to:null}:c.from==null&&(c={from:c,to:null}),c.to||(c.to=c.from),c.margin=h||0,c.from.line!=null?HE(this,c):by(this,c.from,c.to,c.margin)}),setSize:Cn(function(c,h){var v=this,b=function(C){return typeof C=="number"||/^\d+$/.test(String(C))?C+"px":C};c!=null&&(this.display.wrapper.style.width=b(c)),h!=null&&(this.display.wrapper.style.height=b(h)),this.options.lineWrapping&&ly(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(C){if(C.widgets){for(var M=0;M<C.widgets.length;M++)if(C.widgets[M].noHScroll){ao(v,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Ft(this,"refresh",this)}),operation:function(c){return tr(this,c)},startOperation:function(){return ts(this)},endOperation:function(){return ns(this)},refresh:Cn(function(){var c=this.display.cachedTextHeight;Rn(this),this.curOp.forceUpdate=!0,la(this),ca(this,this.doc.scrollLeft,this.doc.scrollTop),Ah(this.display),(c==null||Math.abs(c-Ws(this.display))>.5||this.options.lineWrapping)&&bh(this),Ft(this,"refresh",this)}),swapDoc:Cn(function(c){var h=this.doc;return h.cm=null,this.state.selectingText&&this.state.selectingText(),Ly(this,c),la(this),this.display.input.reset(),ca(this,c.scrollLeft,c.scrollTop),this.curOp.forceScroll=!0,ln(this,"swapDoc",this,h),h}),phrase:function(c){var h=this.options.phrases;return h&&Object.prototype.hasOwnProperty.call(h,c)?h[c]:c},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}},Nr(i),i.registerHelper=function(c,h,v){u.hasOwnProperty(c)||(u[c]=i[c]={_global:[]}),u[c][h]=v},i.registerGlobalHelper=function(c,h,v,b){i.registerHelper(c,h,b),u[c]._global.push({pred:v,val:b})}}function Vh(i,s,u,c,h){var v=s,b=u,x=Ue(i,s.line),C=h&&i.direction=="rtl"?-u:u;function M(){var Fe=s.line+C;return Fe<i.first||Fe>=i.first+i.size?!1:(s=new de(Fe,s.ch,s.sticky),x=Ue(i,Fe))}function H(Fe){var Le;if(c=="codepoint"){var Be=x.text.charCodeAt(s.ch+(u>0?0:-1));if(isNaN(Be))Le=null;else{var Je=u>0?Be>=55296&&Be<56320:Be>=56320&&Be<57343;Le=new de(s.line,Math.max(0,Math.min(x.text.length,s.ch+u*(Je?2:1))),-u)}}else h?Le=kA(i.cm,x,s,u):Le=Fh(x,s,u);if(Le==null)if(!Fe&&M())s=zh(h,i.cm,x,s.line,C);else return!1;else s=Le;return!0}if(c=="char"||c=="codepoint")H();else if(c=="column")H(!0);else if(c=="word"||c=="group")for(var K=null,se=c=="group",re=i.cm&&i.cm.getHelper(s,"wordChars"),me=!0;!(u<0&&!H(!me));me=!1){var xe=x.text.charAt(s.ch)||`
|
|
68
|
-
`,Te=ut(xe,re)?"w":se&&xe==`
|
|
69
|
-
`?"n":!se||/\s/.test(xe)?null:"p";if(se&&!me&&!Te&&(Te="s"),K&&K!=Te){u<0&&(u=1,H(),s.sticky="after");break}if(Te&&(K=Te),u>0&&!H(!me))break}var Oe=wu(i,s,v,b,!0);return gt(v,Oe)&&(Oe.hitSide=!0),Oe}function C0(i,s,u,c){var h=i.doc,v=s.left,b;if(c=="page"){var x=Math.min(i.display.wrapper.clientHeight,Re(i).innerHeight||h(i).documentElement.clientHeight),C=Math.max(x-.5*Ws(i.display),3);b=(u>0?s.bottom:s.top)+u*C}else c=="line"&&(b=u>0?s.bottom+3:s.top-3);for(var M;M=mh(i,v,b),!!M.outside;){if(u<0?b<=0:b>=h.height){M.hitSide=!0;break}b+=u*5}return M}var St=function(i){this.cm=i,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};St.prototype.init=function(i){var s=this,u=this,c=u.cm,h=u.div=i.lineDiv;h.contentEditable=!0,qh(h,c.options.spellcheck,c.options.autocorrect,c.options.autocapitalize);function v(x){for(var C=x.target;C;C=C.parentNode){if(C==h)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(C.className))break}return!1}Xe(h,"paste",function(x){!v(x)||zt(c,x)||S0(x,c)||p<=11&&setTimeout(an(c,function(){return s.updateFromDOM()}),20)}),Xe(h,"compositionstart",function(x){s.composing={data:x.data,done:!1}}),Xe(h,"compositionupdate",function(x){s.composing||(s.composing={data:x.data,done:!1})}),Xe(h,"compositionend",function(x){s.composing&&(x.data!=s.composing.data&&s.readFromDOMSoon(),s.composing.done=!0)}),Xe(h,"touchstart",function(){return u.forceCompositionEnd()}),Xe(h,"input",function(){s.composing||s.readFromDOMSoon()});function b(x){if(!(!v(x)||zt(c,x))){if(c.somethingSelected())Cu({lineWise:!1,text:c.getSelections()}),x.type=="cut"&&c.replaceSelection("",null,"cut");else if(c.options.lineWiseCopyCut){var C=k0(c);Cu({lineWise:!0,text:C.text}),x.type=="cut"&&c.operation(function(){c.setSelections(C.ranges,0,ne),c.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var M=zr.text.join(`
|
|
70
|
-
`);if(x.clipboardData.setData("Text",M),x.clipboardData.getData("Text")==M){x.preventDefault();return}}var H=T0(),K=H.firstChild;qh(K),c.display.lineSpace.insertBefore(H,c.display.lineSpace.firstChild),K.value=zr.text.join(`
|
|
71
|
-
`);var se=ve(He(h));Me(K),setTimeout(function(){c.display.lineSpace.removeChild(H),se.focus(),se==h&&u.showPrimarySelection()},50)}}Xe(h,"copy",b),Xe(h,"cut",b)},St.prototype.screenReaderLabelChanged=function(i){i?this.div.setAttribute("aria-label",i):this.div.removeAttribute("aria-label")},St.prototype.prepareSelection=function(){var i=gy(this.cm,!1);return i.focus=ve(He(this.div))==this.div,i},St.prototype.showSelection=function(i,s){!i||!this.cm.display.view.length||((i.focus||s)&&this.showPrimarySelection(),this.showMultipleSelections(i))},St.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},St.prototype.showPrimarySelection=function(){var i=this.getSelection(),s=this.cm,u=s.doc.sel.primary(),c=u.from(),h=u.to();if(s.display.viewTo==s.display.viewFrom||c.line>=s.display.viewTo||h.line<s.display.viewFrom){i.removeAllRanges();return}var v=Eu(s,i.anchorNode,i.anchorOffset),b=Eu(s,i.focusNode,i.focusOffset);if(!(v&&!v.bad&&b&&!b.bad&&De(zs(v,b),c)==0&&De(Ln(v,b),h)==0)){var x=s.display.view,C=c.line>=s.display.viewFrom&&E0(s,c)||{node:x[0].measure.map[2],offset:0},M=h.line<s.display.viewTo&&E0(s,h);if(!M){var H=x[x.length-1].measure,K=H.maps?H.maps[H.maps.length-1]:H.map;M={node:K[K.length-1],offset:K[K.length-2]-K[K.length-3]}}if(!C||!M){i.removeAllRanges();return}var se=i.rangeCount&&i.getRangeAt(0),re;try{re=z(C.node,C.offset,M.offset,M.node)}catch{}re&&(!o&&s.state.focused?(i.collapse(C.node,C.offset),re.collapsed||(i.removeAllRanges(),i.addRange(re))):(i.removeAllRanges(),i.addRange(re)),se&&i.anchorNode==null?i.addRange(se):o&&this.startGracePeriod()),this.rememberSelection()}},St.prototype.startGracePeriod=function(){var i=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){i.gracePeriod=!1,i.selectionChanged()&&i.cm.operation(function(){return i.cm.curOp.selectionChanged=!0})},20)},St.prototype.showMultipleSelections=function(i){T(this.cm.display.cursorDiv,i.cursors),T(this.cm.display.selectionDiv,i.selection)},St.prototype.rememberSelection=function(){var i=this.getSelection();this.lastAnchorNode=i.anchorNode,this.lastAnchorOffset=i.anchorOffset,this.lastFocusNode=i.focusNode,this.lastFocusOffset=i.focusOffset},St.prototype.selectionInEditor=function(){var i=this.getSelection();if(!i.rangeCount)return!1;var s=i.getRangeAt(0).commonAncestorContainer;return ae(this.div,s)},St.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ve(He(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},St.prototype.blur=function(){this.div.blur()},St.prototype.getField=function(){return this.div},St.prototype.supportsTouch=function(){return!0},St.prototype.receivedFocus=function(){var i=this,s=this;this.selectionInEditor()?setTimeout(function(){return i.pollSelection()},20):tr(this.cm,function(){return s.cm.curOp.selectionChanged=!0});function u(){s.cm.state.focused&&(s.pollSelection(),s.polling.set(s.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},St.prototype.selectionChanged=function(){var i=this.getSelection();return i.anchorNode!=this.lastAnchorNode||i.anchorOffset!=this.lastAnchorOffset||i.focusNode!=this.lastFocusNode||i.focusOffset!=this.lastFocusOffset},St.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var i=this.getSelection(),s=this.cm;if(I&&y&&this.cm.display.gutterSpecs.length&&UA(i.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=Eu(s,i.anchorNode,i.anchorOffset),c=Eu(s,i.focusNode,i.focusOffset);u&&c&&tr(s,function(){wn(s.doc,uo(u,c),ne),(u.bad||c.bad)&&(s.curOp.selectionChanged=!0)})}}},St.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var i=this.cm,s=i.display,u=i.doc.sel.primary(),c=u.from(),h=u.to();if(c.ch==0&&c.line>i.firstLine()&&(c=de(c.line-1,Ue(i.doc,c.line-1).length)),h.ch==Ue(i.doc,h.line).text.length&&h.line<i.lastLine()&&(h=de(h.line+1,0)),c.line<s.viewFrom||h.line>s.viewTo-1)return!1;var v,b,x;c.line==s.viewFrom||(v=Zo(i,c.line))==0?(b=O(s.view[0].line),x=s.view[0].node):(b=O(s.view[v].line),x=s.view[v-1].node.nextSibling);var C=Zo(i,h.line),M,H;if(C==s.view.length-1?(M=s.viewTo-1,H=s.lineDiv.lastChild):(M=O(s.view[C+1].line)-1,H=s.view[C+1].node.previousSibling),!x)return!1;for(var K=i.doc.splitLines(qA(i,x,H,b,M)),se=Ei(i.doc,de(b,0),de(M,Ue(i.doc,M).text.length));K.length>1&&se.length>1;)if(Se(K)==Se(se))K.pop(),se.pop(),M--;else if(K[0]==se[0])K.shift(),se.shift(),b++;else break;for(var re=0,me=0,xe=K[0],Te=se[0],Oe=Math.min(xe.length,Te.length);re<Oe&&xe.charCodeAt(re)==Te.charCodeAt(re);)++re;for(var Fe=Se(K),Le=Se(se),Be=Math.min(Fe.length-(K.length==1?re:0),Le.length-(se.length==1?re:0));me<Be&&Fe.charCodeAt(Fe.length-me-1)==Le.charCodeAt(Le.length-me-1);)++me;if(K.length==1&&se.length==1&&b==c.line)for(;re&&re>c.ch&&Fe.charCodeAt(Fe.length-me-1)==Le.charCodeAt(Le.length-me-1);)re--,me++;K[K.length-1]=Fe.slice(0,Fe.length-me).replace(/^\u200b+/,""),K[0]=K[0].slice(re).replace(/\u200b+$/,"");var Je=de(b,re),Ge=de(M,se.length?Se(se).length-me:0);if(K.length>1||K[0]||De(Je,Ge))return Js(i.doc,K,Je,Ge,"+input"),!0},St.prototype.ensurePolled=function(){this.forceCompositionEnd()},St.prototype.reset=function(){this.forceCompositionEnd()},St.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},St.prototype.readFromDOMSoon=function(){var i=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(i.readDOMTimeout=null,i.composing)if(i.composing.done)i.composing=null;else return;i.updateFromDOM()},80))},St.prototype.updateFromDOM=function(){var i=this;(this.cm.isReadOnly()||!this.pollContent())&&tr(this.cm,function(){return Rn(i.cm)})},St.prototype.setUneditable=function(i){i.contentEditable="false"},St.prototype.onKeyPress=function(i){i.charCode==0||this.composing||(i.preventDefault(),this.cm.isReadOnly()||an(this.cm,Uh)(this.cm,String.fromCharCode(i.charCode==null?i.keyCode:i.charCode),0))},St.prototype.readOnlyChanged=function(i){this.div.contentEditable=String(i!="nocursor")},St.prototype.onContextMenu=function(){},St.prototype.resetPosition=function(){},St.prototype.needsContentAttribute=!0;function E0(i,s){var u=dh(i,s.line);if(!u||u.hidden)return null;var c=Ue(i.doc,s.line),h=ny(u,c,s.line),v=at(c,i.doc.direction),b="left";if(v){var x=Gt(v,s.ch);b=x%2?"right":"left"}var C=oy(h.map,s.ch,b);return C.offset=C.collapse=="right"?C.end:C.start,C}function UA(i){for(var s=i;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function nl(i,s){return s&&(i.bad=!0),i}function qA(i,s,u,c,h){var v="",b=!1,x=i.doc.lineSeparator(),C=!1;function M(re){return function(me){return me.id==re}}function H(){b&&(v+=x,C&&(v+=x),b=C=!1)}function K(re){re&&(H(),v+=re)}function se(re){if(re.nodeType==1){var me=re.getAttribute("cm-text");if(me){K(me);return}var xe=re.getAttribute("cm-marker"),Te;if(xe){var Oe=i.findMarks(de(c,0),de(h+1,0),M(+xe));Oe.length&&(Te=Oe[0].find(0))&&K(Ei(i.doc,Te.from,Te.to).join(x));return}if(re.getAttribute("contenteditable")=="false")return;var Fe=/^(pre|div|p|li|table|br)$/i.test(re.nodeName);if(!/^br$/i.test(re.nodeName)&&re.textContent.length==0)return;Fe&&H();for(var Le=0;Le<re.childNodes.length;Le++)se(re.childNodes[Le]);/^(pre|p)$/i.test(re.nodeName)&&(C=!0),Fe&&(b=!0)}else re.nodeType==3&&K(re.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;se(s),s!=u;)s=s.nextSibling,C=!1;return v}function Eu(i,s,u){var c;if(s==i.display.lineDiv){if(c=i.display.lineDiv.childNodes[u],!c)return nl(i.clipPos(de(i.display.viewTo-1)),!0);s=null,u=0}else for(c=s;;c=c.parentNode){if(!c||c==i.display.lineDiv)return null;if(c.parentNode&&c.parentNode==i.display.lineDiv)break}for(var h=0;h<i.display.view.length;h++){var v=i.display.view[h];if(v.node==c)return VA(v,s,u)}}function VA(i,s,u){var c=i.text.firstChild,h=!1;if(!s||!ae(c,s))return nl(de(O(i.line),0),!0);if(s==c&&(h=!0,s=c.childNodes[u],u=0,!s)){var v=i.rest?Se(i.rest):i.line;return nl(de(O(v),v.text.length),h)}var b=s.nodeType==3?s:null,x=s;for(!b&&s.childNodes.length==1&&s.firstChild.nodeType==3&&(b=s.firstChild,u&&(u=b.nodeValue.length));x.parentNode!=c;)x=x.parentNode;var C=i.measure,M=C.maps;function H(Te,Oe,Fe){for(var Le=-1;Le<(M?M.length:0);Le++)for(var Be=Le<0?C.map:M[Le],Je=0;Je<Be.length;Je+=3){var Ge=Be[Je+2];if(Ge==Te||Ge==Oe){var lt=O(Le<0?i.line:i.rest[Le]),Et=Be[Je]+Fe;return(Fe<0||Ge!=Te)&&(Et=Be[Je+(Fe?1:0)]),de(lt,Et)}}}var K=H(b,x,u);if(K)return nl(K,h);for(var se=x.nextSibling,re=b?b.nodeValue.length-u:0;se;se=se.nextSibling){if(K=H(se,se.firstChild,0),K)return nl(de(K.line,K.ch-re),h);re+=se.textContent.length}for(var me=x.previousSibling,xe=u;me;me=me.previousSibling){if(K=H(me,me.firstChild,-1),K)return nl(de(K.line,K.ch+xe),h);xe+=me.textContent.length}}var Kt=function(i){this.cm=i,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};Kt.prototype.init=function(i){var s=this,u=this,c=this.cm;this.createField(i);var h=this.textarea;i.wrapper.insertBefore(this.wrapper,i.wrapper.firstChild),N&&(h.style.width="0px"),Xe(h,"input",function(){d&&p>=9&&s.hasSelection&&(s.hasSelection=null),u.poll()}),Xe(h,"paste",function(b){zt(c,b)||S0(b,c)||(c.state.pasteIncoming=+new Date,u.fastPoll())});function v(b){if(!zt(c,b)){if(c.somethingSelected())Cu({lineWise:!1,text:c.getSelections()});else if(c.options.lineWiseCopyCut){var x=k0(c);Cu({lineWise:!0,text:x.text}),b.type=="cut"?c.setSelections(x.ranges,null,ne):(u.prevInput="",h.value=x.text.join(`
|
|
72
|
-
`),Me(h))}else return;b.type=="cut"&&(c.state.cutIncoming=+new Date)}}Xe(h,"cut",v),Xe(h,"copy",v),Xe(i.scroller,"paste",function(b){if(!($i(i,b)||zt(c,b))){if(!h.dispatchEvent){c.state.pasteIncoming=+new Date,u.focus();return}var x=new Event("paste");x.clipboardData=b.clipboardData,h.dispatchEvent(x)}}),Xe(i.lineSpace,"selectstart",function(b){$i(i,b)||bn(b)}),Xe(h,"compositionstart",function(){var b=c.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:b,range:c.markText(b,c.getCursor("to"),{className:"CodeMirror-composing"})}}),Xe(h,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Kt.prototype.createField=function(i){this.wrapper=T0(),this.textarea=this.wrapper.firstChild;var s=this.cm.options;qh(this.textarea,s.spellcheck,s.autocorrect,s.autocapitalize)},Kt.prototype.screenReaderLabelChanged=function(i){i?this.textarea.setAttribute("aria-label",i):this.textarea.removeAttribute("aria-label")},Kt.prototype.prepareSelection=function(){var i=this.cm,s=i.display,u=i.doc,c=gy(i);if(i.options.moveInputWithCursor){var h=Dr(i,u.sel.primary().head,"div"),v=s.wrapper.getBoundingClientRect(),b=s.lineDiv.getBoundingClientRect();c.teTop=Math.max(0,Math.min(s.wrapper.clientHeight-10,h.top+b.top-v.top)),c.teLeft=Math.max(0,Math.min(s.wrapper.clientWidth-10,h.left+b.left-v.left))}return c},Kt.prototype.showSelection=function(i){var s=this.cm,u=s.display;T(u.cursorDiv,i.cursors),T(u.selectionDiv,i.selection),i.teTop!=null&&(this.wrapper.style.top=i.teTop+"px",this.wrapper.style.left=i.teLeft+"px")},Kt.prototype.reset=function(i){if(!(this.contextMenuPending||this.composing&&i)){var s=this.cm;if(this.resetting=!0,s.somethingSelected()){this.prevInput="";var u=s.getSelection();this.textarea.value=u,s.state.focused&&Me(this.textarea),d&&p>=9&&(this.hasSelection=u)}else i||(this.prevInput=this.textarea.value="",d&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Kt.prototype.getField=function(){return this.textarea},Kt.prototype.supportsTouch=function(){return!1},Kt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!$||ve(He(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Kt.prototype.blur=function(){this.textarea.blur()},Kt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Kt.prototype.receivedFocus=function(){this.slowPoll()},Kt.prototype.slowPoll=function(){var i=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){i.poll(),i.cm.state.focused&&i.slowPoll()})},Kt.prototype.fastPoll=function(){var i=!1,s=this;s.pollingFast=!0;function u(){var c=s.poll();!c&&!i?(i=!0,s.polling.set(60,u)):(s.pollingFast=!1,s.slowPoll())}s.polling.set(20,u)},Kt.prototype.poll=function(){var i=this,s=this.cm,u=this.textarea,c=this.prevInput;if(this.contextMenuPending||this.resetting||!s.state.focused||oo(u)&&!c&&!this.composing||s.isReadOnly()||s.options.disableInput||s.state.keySeq)return!1;var h=u.value;if(h==c&&!s.somethingSelected())return!1;if(d&&p>=9&&this.hasSelection===h||D&&/[\uf700-\uf7ff]/.test(h))return s.display.input.reset(),!1;if(s.doc.sel==s.display.selForContextMenu){var v=h.charCodeAt(0);if(v==8203&&!c&&(c=""),v==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,x=Math.min(c.length,h.length);b<x&&c.charCodeAt(b)==h.charCodeAt(b);)++b;return tr(s,function(){Uh(s,h.slice(b),c.length-b,null,i.composing?"*compose":null),h.length>1e3||h.indexOf(`
|
|
73
|
-
`)>-1?u.value=i.prevInput="":i.prevInput=h,i.composing&&(i.composing.range.clear(),i.composing.range=s.markText(i.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Kt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Kt.prototype.onKeyPress=function(){d&&p>=9&&(this.hasSelection=null),this.fastPoll()},Kt.prototype.onContextMenu=function(i){var s=this,u=s.cm,c=u.display,h=s.textarea;s.contextMenuPending&&s.contextMenuPending();var v=Jo(u,i),b=c.scroller.scrollTop;if(!v||E)return;var x=u.options.resetSelectionOnContextMenu;x&&u.doc.sel.contains(v)==-1&&an(u,wn)(u.doc,uo(v),ne);var C=h.style.cssText,M=s.wrapper.style.cssText,H=s.wrapper.offsetParent.getBoundingClientRect();s.wrapper.style.cssText="position: static",h.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
74
|
-
top: `+(i.clientY-H.top-5)+"px; left: "+(i.clientX-H.left-5)+`px;
|
|
75
|
-
z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
76
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var K;m&&(K=h.ownerDocument.defaultView.scrollY),c.input.focus(),m&&h.ownerDocument.defaultView.scrollTo(null,K),c.input.reset(),u.somethingSelected()||(h.value=s.prevInput=" "),s.contextMenuPending=re,c.selForContextMenu=u.doc.sel,clearTimeout(c.detectingSelectAll);function se(){if(h.selectionStart!=null){var xe=u.somethingSelected(),Te=""+(xe?h.value:"");h.value="⇚",h.value=Te,s.prevInput=xe?"":"",h.selectionStart=1,h.selectionEnd=Te.length,c.selForContextMenu=u.doc.sel}}function re(){if(s.contextMenuPending==re&&(s.contextMenuPending=!1,s.wrapper.style.cssText=M,h.style.cssText=C,d&&p<9&&c.scrollbars.setScrollTop(c.scroller.scrollTop=b),h.selectionStart!=null)){(!d||d&&p<9)&&se();var xe=0,Te=function(){c.selForContextMenu==u.doc.sel&&h.selectionStart==0&&h.selectionEnd>0&&s.prevInput==""?an(u,Vy)(u):xe++<10?c.detectingSelectAll=setTimeout(Te,500):(c.selForContextMenu=null,c.input.reset())};c.detectingSelectAll=setTimeout(Te,200)}}if(d&&p>=9&&se(),V){ro(i);var me=function(){yn(window,"mouseup",me),setTimeout(re,20)};Xe(window,"mouseup",me)}else setTimeout(re,50)},Kt.prototype.readOnlyChanged=function(i){i||this.reset(),this.textarea.disabled=i=="nocursor",this.textarea.readOnly=!!i},Kt.prototype.setUneditable=function(){},Kt.prototype.needsContentAttribute=!1;function GA(i,s){if(s=s?Q(s):{},s.value=i.value,!s.tabindex&&i.tabIndex&&(s.tabindex=i.tabIndex),!s.placeholder&&i.placeholder&&(s.placeholder=i.placeholder),s.autofocus==null){var u=ve(He(i));s.autofocus=u==i||i.getAttribute("autofocus")!=null&&u==document.body}function c(){i.value=x.getValue()}var h;if(i.form&&(Xe(i.form,"submit",c),!s.leaveSubmitMethodAlone)){var v=i.form;h=v.submit;try{var b=v.submit=function(){c(),v.submit=h,v.submit(),v.submit=b}}catch{}}s.finishInit=function(C){C.save=c,C.getTextArea=function(){return i},C.toTextArea=function(){C.toTextArea=isNaN,c(),i.parentNode.removeChild(C.getWrapperElement()),i.style.display="",i.form&&(yn(i.form,"submit",c),!s.leaveSubmitMethodAlone&&typeof i.form.submit=="function"&&(i.form.submit=h))}},i.style.display="none";var x=Nt(function(C){return i.parentNode.insertBefore(C,i.nextSibling)},s);return x}function KA(i){i.off=yn,i.on=Xe,i.wheelEventPixels=tA,i.Doc=Pn,i.splitLines=kr,i.countColumn=ie,i.findColumn=ge,i.isWordChar=tt,i.Pass=W,i.signal=Ft,i.Line=Bs,i.changeEnd=fo,i.scrollbarModel=Sy,i.Pos=de,i.cmpPos=De,i.modes=Rs,i.mimeModes=Rr,i.resolveMode=Ps,i.getMode=Is,i.modeExtensions=so,i.extendMode=Ds,i.copyState=ii,i.startState=Fs,i.innerMode=ea,i.commands=ka,i.keyMap=Oi,i.keyName=a0,i.isModifierKey=s0,i.lookupKey=Qs,i.normalizeKeyMap=_A,i.StringStream=Bt,i.SharedTextMarker=xa,i.TextMarker=po,i.LineWidget=wa,i.e_preventDefault=bn,i.e_stopPropagation=Os,i.e_stop=ro,i.addClass=_e,i.contains=ae,i.rmClass=P,i.keyNames=mo}zA(Nt),WA(Nt);var YA="iter insert remove copy getEditor constructor".split(" ");for(var Au in Pn.prototype)Pn.prototype.hasOwnProperty(Au)&&ce(YA,Au)<0&&(Nt.prototype[Au]=(function(i){return function(){return i.apply(this.doc,arguments)}})(Pn.prototype[Au]));return Nr(Pn),Nt.inputStyles={textarea:Kt,contenteditable:St},Nt.defineMode=function(i){!Nt.defaults.mode&&i!="null"&&(Nt.defaults.mode=i),Pr.apply(this,arguments)},Nt.defineMIME=Ko,Nt.defineMode("null",function(){return{token:function(i){return i.skipToEnd()}}}),Nt.defineMIME("text/plain","null"),Nt.defineExtension=function(i,s){Nt.prototype[i]=s},Nt.defineDocExtension=function(i,s){Pn.prototype[i]=s},Nt.fromTextArea=GA,KA(Nt),Nt.version="5.65.18",Nt}))})(gf)),gf.exports}var m2=Vo();const g2=Gg(m2);var yp={},Br={};const v2="Á",y2="á",b2="Ă",w2="ă",x2="∾",S2="∿",_2="∾̳",k2="Â",T2="â",C2="´",E2="А",A2="а",M2="Æ",$2="æ",N2="",O2="𝔄",L2="𝔞",R2="À",P2="à",I2="ℵ",D2="ℵ",F2="Α",z2="α",B2="Ā",H2="ā",j2="⨿",W2="&",U2="&",q2="⩕",V2="⩓",G2="∧",K2="⩜",Y2="⩘",X2="⩚",J2="∠",Z2="⦤",Q2="∠",eD="⦨",tD="⦩",nD="⦪",rD="⦫",iD="⦬",oD="⦭",sD="⦮",lD="⦯",aD="∡",cD="∟",uD="⊾",fD="⦝",dD="∢",hD="Å",pD="⍼",mD="Ą",gD="ą",vD="𝔸",yD="𝕒",bD="⩯",wD="≈",xD="⩰",SD="≊",_D="≋",kD="'",TD="",CD="≈",ED="≊",AD="Å",MD="å",$D="𝒜",ND="𝒶",OD="≔",LD="*",RD="≈",PD="≍",ID="Ã",DD="ã",FD="Ä",zD="ä",BD="∳",HD="⨑",jD="≌",WD="϶",UD="‵",qD="∽",VD="⋍",GD="∖",KD="⫧",YD="⊽",XD="⌅",JD="⌆",ZD="⌅",QD="⎵",eF="⎶",tF="≌",nF="Б",rF="б",iF="„",oF="∵",sF="∵",lF="∵",aF="⦰",cF="϶",uF="ℬ",fF="ℬ",dF="Β",hF="β",pF="ℶ",mF="≬",gF="𝔅",vF="𝔟",yF="⋂",bF="◯",wF="⋃",xF="⨀",SF="⨁",_F="⨂",kF="⨆",TF="★",CF="▽",EF="△",AF="⨄",MF="⋁",$F="⋀",NF="⤍",OF="⧫",LF="▪",RF="▴",PF="▾",IF="◂",DF="▸",FF="␣",zF="▒",BF="░",HF="▓",jF="█",WF="=⃥",UF="≡⃥",qF="⫭",VF="⌐",GF="𝔹",KF="𝕓",YF="⊥",XF="⊥",JF="⋈",ZF="⧉",QF="┐",ez="╕",tz="╖",nz="╗",rz="┌",iz="╒",oz="╓",sz="╔",lz="─",az="═",cz="┬",uz="╤",fz="╥",dz="╦",hz="┴",pz="╧",mz="╨",gz="╩",vz="⊟",yz="⊞",bz="⊠",wz="┘",xz="╛",Sz="╜",_z="╝",kz="└",Tz="╘",Cz="╙",Ez="╚",Az="│",Mz="║",$z="┼",Nz="╪",Oz="╫",Lz="╬",Rz="┤",Pz="╡",Iz="╢",Dz="╣",Fz="├",zz="╞",Bz="╟",Hz="╠",jz="‵",Wz="˘",Uz="˘",qz="¦",Vz="𝒷",Gz="ℬ",Kz="⁏",Yz="∽",Xz="⋍",Jz="⧅",Zz="\\",Qz="⟈",eB="•",tB="•",nB="≎",rB="⪮",iB="≏",oB="≎",sB="≏",lB="Ć",aB="ć",cB="⩄",uB="⩉",fB="⩋",dB="∩",hB="⋒",pB="⩇",mB="⩀",gB="ⅅ",vB="∩︀",yB="⁁",bB="ˇ",wB="ℭ",xB="⩍",SB="Č",_B="č",kB="Ç",TB="ç",CB="Ĉ",EB="ĉ",AB="∰",MB="⩌",$B="⩐",NB="Ċ",OB="ċ",LB="¸",RB="¸",PB="⦲",IB="¢",DB="·",FB="·",zB="𝔠",BB="ℭ",HB="Ч",jB="ч",WB="✓",UB="✓",qB="Χ",VB="χ",GB="ˆ",KB="≗",YB="↺",XB="↻",JB="⊛",ZB="⊚",QB="⊝",e3="⊙",t3="®",n3="Ⓢ",r3="⊖",i3="⊕",o3="⊗",s3="○",l3="⧃",a3="≗",c3="⨐",u3="⫯",f3="⧂",d3="∲",h3="”",p3="’",m3="♣",g3="♣",v3=":",y3="∷",b3="⩴",w3="≔",x3="≔",S3=",",_3="@",k3="∁",T3="∘",C3="∁",E3="ℂ",A3="≅",M3="⩭",$3="≡",N3="∮",O3="∯",L3="∮",R3="𝕔",P3="ℂ",I3="∐",D3="∐",F3="©",z3="©",B3="℗",H3="∳",j3="↵",W3="✗",U3="⨯",q3="𝒞",V3="𝒸",G3="⫏",K3="⫑",Y3="⫐",X3="⫒",J3="⋯",Z3="⤸",Q3="⤵",eH="⋞",tH="⋟",nH="↶",rH="⤽",iH="⩈",oH="⩆",sH="≍",lH="∪",aH="⋓",cH="⩊",uH="⊍",fH="⩅",dH="∪︀",hH="↷",pH="⤼",mH="⋞",gH="⋟",vH="⋎",yH="⋏",bH="¤",wH="↶",xH="↷",SH="⋎",_H="⋏",kH="∲",TH="∱",CH="⌭",EH="†",AH="‡",MH="ℸ",$H="↓",NH="↡",OH="⇓",LH="‐",RH="⫤",PH="⊣",IH="⤏",DH="˝",FH="Ď",zH="ď",BH="Д",HH="д",jH="‡",WH="⇊",UH="ⅅ",qH="ⅆ",VH="⤑",GH="⩷",KH="°",YH="∇",XH="Δ",JH="δ",ZH="⦱",QH="⥿",ej="𝔇",tj="𝔡",nj="⥥",rj="⇃",ij="⇂",oj="´",sj="˙",lj="˝",aj="`",cj="˜",uj="⋄",fj="⋄",dj="⋄",hj="♦",pj="♦",mj="¨",gj="ⅆ",vj="ϝ",yj="⋲",bj="÷",wj="÷",xj="⋇",Sj="⋇",_j="Ђ",kj="ђ",Tj="⌞",Cj="⌍",Ej="$",Aj="𝔻",Mj="𝕕",$j="¨",Nj="˙",Oj="⃜",Lj="≐",Rj="≑",Pj="≐",Ij="∸",Dj="∔",Fj="⊡",zj="⌆",Bj="∯",Hj="¨",jj="⇓",Wj="⇐",Uj="⇔",qj="⫤",Vj="⟸",Gj="⟺",Kj="⟹",Yj="⇒",Xj="⊨",Jj="⇑",Zj="⇕",Qj="∥",e5="⤓",t5="↓",n5="↓",r5="⇓",i5="⇵",o5="̑",s5="⇊",l5="⇃",a5="⇂",c5="⥐",u5="⥞",f5="⥖",d5="↽",h5="⥟",p5="⥗",m5="⇁",g5="↧",v5="⊤",y5="⤐",b5="⌟",w5="⌌",x5="𝒟",S5="𝒹",_5="Ѕ",k5="ѕ",T5="⧶",C5="Đ",E5="đ",A5="⋱",M5="▿",$5="▾",N5="⇵",O5="⥯",L5="⦦",R5="Џ",P5="џ",I5="⟿",D5="É",F5="é",z5="⩮",B5="Ě",H5="ě",j5="Ê",W5="ê",U5="≖",q5="≕",V5="Э",G5="э",K5="⩷",Y5="Ė",X5="ė",J5="≑",Z5="ⅇ",Q5="≒",e4="𝔈",t4="𝔢",n4="⪚",r4="È",i4="è",o4="⪖",s4="⪘",l4="⪙",a4="∈",c4="⏧",u4="ℓ",f4="⪕",d4="⪗",h4="Ē",p4="ē",m4="∅",g4="∅",v4="◻",y4="∅",b4="▫",w4=" ",x4=" ",S4=" ",_4="Ŋ",k4="ŋ",T4=" ",C4="Ę",E4="ę",A4="𝔼",M4="𝕖",$4="⋕",N4="⧣",O4="⩱",L4="ε",R4="Ε",P4="ε",I4="ϵ",D4="≖",F4="≕",z4="≂",B4="⪖",H4="⪕",j4="⩵",W4="=",U4="≂",q4="≟",V4="⇌",G4="≡",K4="⩸",Y4="⧥",X4="⥱",J4="≓",Z4="ℯ",Q4="ℰ",e8="≐",t8="⩳",n8="≂",r8="Η",i8="η",o8="Ð",s8="ð",l8="Ë",a8="ë",c8="€",u8="!",f8="∃",d8="∃",h8="ℰ",p8="ⅇ",m8="ⅇ",g8="≒",v8="Ф",y8="ф",b8="♀",w8="ffi",x8="ff",S8="ffl",_8="𝔉",k8="𝔣",T8="fi",C8="◼",E8="▪",A8="fj",M8="♭",$8="fl",N8="▱",O8="ƒ",L8="𝔽",R8="𝕗",P8="∀",I8="∀",D8="⋔",F8="⫙",z8="ℱ",B8="⨍",H8="½",j8="⅓",W8="¼",U8="⅕",q8="⅙",V8="⅛",G8="⅔",K8="⅖",Y8="¾",X8="⅗",J8="⅜",Z8="⅘",Q8="⅚",eW="⅝",tW="⅞",nW="⁄",rW="⌢",iW="𝒻",oW="ℱ",sW="ǵ",lW="Γ",aW="γ",cW="Ϝ",uW="ϝ",fW="⪆",dW="Ğ",hW="ğ",pW="Ģ",mW="Ĝ",gW="ĝ",vW="Г",yW="г",bW="Ġ",wW="ġ",xW="≥",SW="≧",_W="⪌",kW="⋛",TW="≥",CW="≧",EW="⩾",AW="⪩",MW="⩾",$W="⪀",NW="⪂",OW="⪄",LW="⋛︀",RW="⪔",PW="𝔊",IW="𝔤",DW="≫",FW="⋙",zW="⋙",BW="ℷ",HW="Ѓ",jW="ѓ",WW="⪥",UW="≷",qW="⪒",VW="⪤",GW="⪊",KW="⪊",YW="⪈",XW="≩",JW="⪈",ZW="≩",QW="⋧",eU="𝔾",tU="𝕘",nU="`",rU="≥",iU="⋛",oU="≧",sU="⪢",lU="≷",aU="⩾",cU="≳",uU="𝒢",fU="ℊ",dU="≳",hU="⪎",pU="⪐",mU="⪧",gU="⩺",vU=">",yU=">",bU="≫",wU="⋗",xU="⦕",SU="⩼",_U="⪆",kU="⥸",TU="⋗",CU="⋛",EU="⪌",AU="≷",MU="≳",$U="≩︀",NU="≩︀",OU="ˇ",LU=" ",RU="½",PU="ℋ",IU="Ъ",DU="ъ",FU="⥈",zU="↔",BU="⇔",HU="↭",jU="^",WU="ℏ",UU="Ĥ",qU="ĥ",VU="♥",GU="♥",KU="…",YU="⊹",XU="𝔥",JU="ℌ",ZU="ℋ",QU="⤥",eq="⤦",tq="⇿",nq="∻",rq="↩",iq="↪",oq="𝕙",sq="ℍ",lq="―",aq="─",cq="𝒽",uq="ℋ",fq="ℏ",dq="Ħ",hq="ħ",pq="≎",mq="≏",gq="⁃",vq="‐",yq="Í",bq="í",wq="",xq="Î",Sq="î",_q="И",kq="и",Tq="İ",Cq="Е",Eq="е",Aq="¡",Mq="⇔",$q="𝔦",Nq="ℑ",Oq="Ì",Lq="ì",Rq="ⅈ",Pq="⨌",Iq="∭",Dq="⧜",Fq="℩",zq="IJ",Bq="ij",Hq="Ī",jq="ī",Wq="ℑ",Uq="ⅈ",qq="ℐ",Vq="ℑ",Gq="ı",Kq="ℑ",Yq="⊷",Xq="Ƶ",Jq="⇒",Zq="℅",Qq="∞",e6="⧝",t6="ı",n6="⊺",r6="∫",i6="∬",o6="ℤ",s6="∫",l6="⊺",a6="⋂",c6="⨗",u6="⨼",f6="",d6="",h6="Ё",p6="ё",m6="Į",g6="į",v6="𝕀",y6="𝕚",b6="Ι",w6="ι",x6="⨼",S6="¿",_6="𝒾",k6="ℐ",T6="∈",C6="⋵",E6="⋹",A6="⋴",M6="⋳",$6="∈",N6="",O6="Ĩ",L6="ĩ",R6="І",P6="і",I6="Ï",D6="ï",F6="Ĵ",z6="ĵ",B6="Й",H6="й",j6="𝔍",W6="𝔧",U6="ȷ",q6="𝕁",V6="𝕛",G6="𝒥",K6="𝒿",Y6="Ј",X6="ј",J6="Є",Z6="є",Q6="Κ",eV="κ",tV="ϰ",nV="Ķ",rV="ķ",iV="К",oV="к",sV="𝔎",lV="𝔨",aV="ĸ",cV="Х",uV="х",fV="Ќ",dV="ќ",hV="𝕂",pV="𝕜",mV="𝒦",gV="𝓀",vV="⇚",yV="Ĺ",bV="ĺ",wV="⦴",xV="ℒ",SV="Λ",_V="λ",kV="⟨",TV="⟪",CV="⦑",EV="⟨",AV="⪅",MV="ℒ",$V="«",NV="⇤",OV="⤟",LV="←",RV="↞",PV="⇐",IV="⤝",DV="↩",FV="↫",zV="⤹",BV="⥳",HV="↢",jV="⤙",WV="⤛",UV="⪫",qV="⪭",VV="⪭︀",GV="⤌",KV="⤎",YV="❲",XV="{",JV="[",ZV="⦋",QV="⦏",e9="⦍",t9="Ľ",n9="ľ",r9="Ļ",i9="ļ",o9="⌈",s9="{",l9="Л",a9="л",c9="⤶",u9="“",f9="„",d9="⥧",h9="⥋",p9="↲",m9="≤",g9="≦",v9="⟨",y9="⇤",b9="←",w9="←",x9="⇐",S9="⇆",_9="↢",k9="⌈",T9="⟦",C9="⥡",E9="⥙",A9="⇃",M9="⌊",$9="↽",N9="↼",O9="⇇",L9="↔",R9="↔",P9="⇔",I9="⇆",D9="⇋",F9="↭",z9="⥎",B9="↤",H9="⊣",j9="⥚",W9="⋋",U9="⧏",q9="⊲",V9="⊴",G9="⥑",K9="⥠",Y9="⥘",X9="↿",J9="⥒",Z9="↼",Q9="⪋",eG="⋚",tG="≤",nG="≦",rG="⩽",iG="⪨",oG="⩽",sG="⩿",lG="⪁",aG="⪃",cG="⋚︀",uG="⪓",fG="⪅",dG="⋖",hG="⋚",pG="⪋",mG="⋚",gG="≦",vG="≶",yG="≶",bG="⪡",wG="≲",xG="⩽",SG="≲",_G="⥼",kG="⌊",TG="𝔏",CG="𝔩",EG="≶",AG="⪑",MG="⥢",$G="↽",NG="↼",OG="⥪",LG="▄",RG="Љ",PG="љ",IG="⇇",DG="≪",FG="⋘",zG="⌞",BG="⇚",HG="⥫",jG="◺",WG="Ŀ",UG="ŀ",qG="⎰",VG="⎰",GG="⪉",KG="⪉",YG="⪇",XG="≨",JG="⪇",ZG="≨",QG="⋦",eK="⟬",tK="⇽",nK="⟦",rK="⟵",iK="⟵",oK="⟸",sK="⟷",lK="⟷",aK="⟺",cK="⟼",uK="⟶",fK="⟶",dK="⟹",hK="↫",pK="↬",mK="⦅",gK="𝕃",vK="𝕝",yK="⨭",bK="⨴",wK="∗",xK="_",SK="↙",_K="↘",kK="◊",TK="◊",CK="⧫",EK="(",AK="⦓",MK="⇆",$K="⌟",NK="⇋",OK="⥭",LK="",RK="⊿",PK="‹",IK="𝓁",DK="ℒ",FK="↰",zK="↰",BK="≲",HK="⪍",jK="⪏",WK="[",UK="‘",qK="‚",VK="Ł",GK="ł",KK="⪦",YK="⩹",XK="<",JK="<",ZK="≪",QK="⋖",e7="⋋",t7="⋉",n7="⥶",r7="⩻",i7="◃",o7="⊴",s7="◂",l7="⦖",a7="⥊",c7="⥦",u7="≨︀",f7="≨︀",d7="¯",h7="♂",p7="✠",m7="✠",g7="↦",v7="↦",y7="↧",b7="↤",w7="↥",x7="▮",S7="⨩",_7="М",k7="м",T7="—",C7="∺",E7="∡",A7=" ",M7="ℳ",$7="𝔐",N7="𝔪",O7="℧",L7="µ",R7="*",P7="⫰",I7="∣",D7="·",F7="⊟",z7="−",B7="∸",H7="⨪",j7="∓",W7="⫛",U7="…",q7="∓",V7="⊧",G7="𝕄",K7="𝕞",Y7="∓",X7="𝓂",J7="ℳ",Z7="∾",Q7="Μ",eY="μ",tY="⊸",nY="⊸",rY="∇",iY="Ń",oY="ń",sY="∠⃒",lY="≉",aY="⩰̸",cY="≋̸",uY="ʼn",fY="≉",dY="♮",hY="ℕ",pY="♮",mY=" ",gY="≎̸",vY="≏̸",yY="⩃",bY="Ň",wY="ň",xY="Ņ",SY="ņ",_Y="≇",kY="⩭̸",TY="⩂",CY="Н",EY="н",AY="–",MY="⤤",$Y="↗",NY="⇗",OY="↗",LY="≠",RY="≐̸",PY="",IY="",DY="",FY="",zY="≢",BY="⤨",HY="≂̸",jY="≫",WY="≪",UY=`
|
|
77
|
-
`,qY="∄",VY="∄",GY="𝔑",KY="𝔫",YY="≧̸",XY="≱",JY="≱",ZY="≧̸",QY="⩾̸",eX="⩾̸",tX="⋙̸",nX="≵",rX="≫⃒",iX="≯",oX="≯",sX="≫̸",lX="↮",aX="⇎",cX="⫲",uX="∋",fX="⋼",dX="⋺",hX="∋",pX="Њ",mX="њ",gX="↚",vX="⇍",yX="‥",bX="≦̸",wX="≰",xX="↚",SX="⇍",_X="↮",kX="⇎",TX="≰",CX="≦̸",EX="⩽̸",AX="⩽̸",MX="≮",$X="⋘̸",NX="≴",OX="≪⃒",LX="≮",RX="⋪",PX="⋬",IX="≪̸",DX="∤",FX="",zX=" ",BX="𝕟",HX="ℕ",jX="⫬",WX="¬",UX="≢",qX="≭",VX="∦",GX="∉",KX="≠",YX="≂̸",XX="∄",JX="≯",ZX="≱",QX="≧̸",eJ="≫̸",tJ="≹",nJ="⩾̸",rJ="≵",iJ="≎̸",oJ="≏̸",sJ="∉",lJ="⋵̸",aJ="⋹̸",cJ="∉",uJ="⋷",fJ="⋶",dJ="⧏̸",hJ="⋪",pJ="⋬",mJ="≮",gJ="≰",vJ="≸",yJ="≪̸",bJ="⩽̸",wJ="≴",xJ="⪢̸",SJ="⪡̸",_J="∌",kJ="∌",TJ="⋾",CJ="⋽",EJ="⊀",AJ="⪯̸",MJ="⋠",$J="∌",NJ="⧐̸",OJ="⋫",LJ="⋭",RJ="⊏̸",PJ="⋢",IJ="⊐̸",DJ="⋣",FJ="⊂⃒",zJ="⊈",BJ="⊁",HJ="⪰̸",jJ="⋡",WJ="≿̸",UJ="⊃⃒",qJ="⊉",VJ="≁",GJ="≄",KJ="≇",YJ="≉",XJ="∤",JJ="∦",ZJ="∦",QJ="⫽⃥",eZ="∂̸",tZ="⨔",nZ="⊀",rZ="⋠",iZ="⊀",oZ="⪯̸",sZ="⪯̸",lZ="⤳̸",aZ="↛",cZ="⇏",uZ="↝̸",fZ="↛",dZ="⇏",hZ="⋫",pZ="⋭",mZ="⊁",gZ="⋡",vZ="⪰̸",yZ="𝒩",bZ="𝓃",wZ="∤",xZ="∦",SZ="≁",_Z="≄",kZ="≄",TZ="∤",CZ="∦",EZ="⋢",AZ="⋣",MZ="⊄",$Z="⫅̸",NZ="⊈",OZ="⊂⃒",LZ="⊈",RZ="⫅̸",PZ="⊁",IZ="⪰̸",DZ="⊅",FZ="⫆̸",zZ="⊉",BZ="⊃⃒",HZ="⊉",jZ="⫆̸",WZ="≹",UZ="Ñ",qZ="ñ",VZ="≸",GZ="⋪",KZ="⋬",YZ="⋫",XZ="⋭",JZ="Ν",ZZ="ν",QZ="#",eQ="№",tQ=" ",nQ="≍⃒",rQ="⊬",iQ="⊭",oQ="⊮",sQ="⊯",lQ="≥⃒",aQ=">⃒",cQ="⤄",uQ="⧞",fQ="⤂",dQ="≤⃒",hQ="<⃒",pQ="⊴⃒",mQ="⤃",gQ="⊵⃒",vQ="∼⃒",yQ="⤣",bQ="↖",wQ="⇖",xQ="↖",SQ="⤧",_Q="Ó",kQ="ó",TQ="⊛",CQ="Ô",EQ="ô",AQ="⊚",MQ="О",$Q="о",NQ="⊝",OQ="Ő",LQ="ő",RQ="⨸",PQ="⊙",IQ="⦼",DQ="Œ",FQ="œ",zQ="⦿",BQ="𝔒",HQ="𝔬",jQ="˛",WQ="Ò",UQ="ò",qQ="⧁",VQ="⦵",GQ="Ω",KQ="∮",YQ="↺",XQ="⦾",JQ="⦻",ZQ="‾",QQ="⧀",eee="Ō",tee="ō",nee="Ω",ree="ω",iee="Ο",oee="ο",see="⦶",lee="⊖",aee="𝕆",cee="𝕠",uee="⦷",fee="“",dee="‘",hee="⦹",pee="⊕",mee="↻",gee="⩔",vee="∨",yee="⩝",bee="ℴ",wee="ℴ",xee="ª",See="º",_ee="⊶",kee="⩖",Tee="⩗",Cee="⩛",Eee="Ⓢ",Aee="𝒪",Mee="ℴ",$ee="Ø",Nee="ø",Oee="⊘",Lee="Õ",Ree="õ",Pee="⨶",Iee="⨷",Dee="⊗",Fee="Ö",zee="ö",Bee="⌽",Hee="‾",jee="⏞",Wee="⎴",Uee="⏜",qee="¶",Vee="∥",Gee="∥",Kee="⫳",Yee="⫽",Xee="∂",Jee="∂",Zee="П",Qee="п",ete="%",tte=".",nte="‰",rte="⊥",ite="‱",ote="𝔓",ste="𝔭",lte="Φ",ate="φ",cte="ϕ",ute="ℳ",fte="☎",dte="Π",hte="π",pte="⋔",mte="ϖ",gte="ℏ",vte="ℎ",yte="ℏ",bte="⨣",wte="⊞",xte="⨢",Ste="+",_te="∔",kte="⨥",Tte="⩲",Cte="±",Ete="±",Ate="⨦",Mte="⨧",$te="±",Nte="ℌ",Ote="⨕",Lte="𝕡",Rte="ℙ",Pte="£",Ite="⪷",Dte="⪻",Fte="≺",zte="≼",Bte="⪷",Hte="≺",jte="≼",Wte="≺",Ute="⪯",qte="≼",Vte="≾",Gte="⪯",Kte="⪹",Yte="⪵",Xte="⋨",Jte="⪯",Zte="⪳",Qte="≾",ene="′",tne="″",nne="ℙ",rne="⪹",ine="⪵",one="⋨",sne="∏",lne="∏",ane="⌮",cne="⌒",une="⌓",fne="∝",dne="∝",hne="∷",pne="∝",mne="≾",gne="⊰",vne="𝒫",yne="𝓅",bne="Ψ",wne="ψ",xne=" ",Sne="𝔔",_ne="𝔮",kne="⨌",Tne="𝕢",Cne="ℚ",Ene="⁗",Ane="𝒬",Mne="𝓆",$ne="ℍ",Nne="⨖",One="?",Lne="≟",Rne='"',Pne='"',Ine="⇛",Dne="∽̱",Fne="Ŕ",zne="ŕ",Bne="√",Hne="⦳",jne="⟩",Wne="⟫",Une="⦒",qne="⦥",Vne="⟩",Gne="»",Kne="⥵",Yne="⇥",Xne="⤠",Jne="⤳",Zne="→",Qne="↠",ere="⇒",tre="⤞",nre="↪",rre="↬",ire="⥅",ore="⥴",sre="⤖",lre="↣",are="↝",cre="⤚",ure="⤜",fre="∶",dre="ℚ",hre="⤍",pre="⤏",mre="⤐",gre="❳",vre="}",yre="]",bre="⦌",wre="⦎",xre="⦐",Sre="Ř",_re="ř",kre="Ŗ",Tre="ŗ",Cre="⌉",Ere="}",Are="Р",Mre="р",$re="⤷",Nre="⥩",Ore="”",Lre="”",Rre="↳",Pre="ℜ",Ire="ℛ",Dre="ℜ",Fre="ℝ",zre="ℜ",Bre="▭",Hre="®",jre="®",Wre="∋",Ure="⇋",qre="⥯",Vre="⥽",Gre="⌋",Kre="𝔯",Yre="ℜ",Xre="⥤",Jre="⇁",Zre="⇀",Qre="⥬",eie="Ρ",tie="ρ",nie="ϱ",rie="⟩",iie="⇥",oie="→",sie="→",lie="⇒",aie="⇄",cie="↣",uie="⌉",fie="⟧",die="⥝",hie="⥕",pie="⇂",mie="⌋",gie="⇁",vie="⇀",yie="⇄",bie="⇌",wie="⇉",xie="↝",Sie="↦",_ie="⊢",kie="⥛",Tie="⋌",Cie="⧐",Eie="⊳",Aie="⊵",Mie="⥏",$ie="⥜",Nie="⥔",Oie="↾",Lie="⥓",Rie="⇀",Pie="˚",Iie="≓",Die="⇄",Fie="⇌",zie="",Bie="⎱",Hie="⎱",jie="⫮",Wie="⟭",Uie="⇾",qie="⟧",Vie="⦆",Gie="𝕣",Kie="ℝ",Yie="⨮",Xie="⨵",Jie="⥰",Zie=")",Qie="⦔",eoe="⨒",toe="⇉",noe="⇛",roe="›",ioe="𝓇",ooe="ℛ",soe="↱",loe="↱",aoe="]",coe="’",uoe="’",foe="⋌",doe="⋊",hoe="▹",poe="⊵",moe="▸",goe="⧎",voe="⧴",yoe="⥨",boe="℞",woe="Ś",xoe="ś",Soe="‚",_oe="⪸",koe="Š",Toe="š",Coe="⪼",Eoe="≻",Aoe="≽",Moe="⪰",$oe="⪴",Noe="Ş",Ooe="ş",Loe="Ŝ",Roe="ŝ",Poe="⪺",Ioe="⪶",Doe="⋩",Foe="⨓",zoe="≿",Boe="С",Hoe="с",joe="⊡",Woe="⋅",Uoe="⩦",qoe="⤥",Voe="↘",Goe="⇘",Koe="↘",Yoe="§",Xoe=";",Joe="⤩",Zoe="∖",Qoe="∖",ese="✶",tse="𝔖",nse="𝔰",rse="⌢",ise="♯",ose="Щ",sse="щ",lse="Ш",ase="ш",cse="↓",use="←",fse="∣",dse="∥",hse="→",pse="↑",mse="",gse="Σ",vse="σ",yse="ς",bse="ς",wse="∼",xse="⩪",Sse="≃",_se="≃",kse="⪞",Tse="⪠",Cse="⪝",Ese="⪟",Ase="≆",Mse="⨤",$se="⥲",Nse="←",Ose="∘",Lse="∖",Rse="⨳",Pse="⧤",Ise="∣",Dse="⌣",Fse="⪪",zse="⪬",Bse="⪬︀",Hse="Ь",jse="ь",Wse="⌿",Use="⧄",qse="/",Vse="𝕊",Gse="𝕤",Kse="♠",Yse="♠",Xse="∥",Jse="⊓",Zse="⊓︀",Qse="⊔",ele="⊔︀",tle="√",nle="⊏",rle="⊑",ile="⊏",ole="⊑",sle="⊐",lle="⊒",ale="⊐",cle="⊒",ule="□",fle="□",dle="⊓",hle="⊏",ple="⊑",mle="⊐",gle="⊒",vle="⊔",yle="▪",ble="□",wle="▪",xle="→",Sle="𝒮",_le="𝓈",kle="∖",Tle="⌣",Cle="⋆",Ele="⋆",Ale="☆",Mle="★",$le="ϵ",Nle="ϕ",Ole="¯",Lle="⊂",Rle="⋐",Ple="⪽",Ile="⫅",Dle="⊆",Fle="⫃",zle="⫁",Ble="⫋",Hle="⊊",jle="⪿",Wle="⥹",Ule="⊂",qle="⋐",Vle="⊆",Gle="⫅",Kle="⊆",Yle="⊊",Xle="⫋",Jle="⫇",Zle="⫕",Qle="⫓",eae="⪸",tae="≻",nae="≽",rae="≻",iae="⪰",oae="≽",sae="≿",lae="⪰",aae="⪺",cae="⪶",uae="⋩",fae="≿",dae="∋",hae="∑",pae="∑",mae="♪",gae="¹",vae="²",yae="³",bae="⊃",wae="⋑",xae="⪾",Sae="⫘",_ae="⫆",kae="⊇",Tae="⫄",Cae="⊃",Eae="⊇",Aae="⟉",Mae="⫗",$ae="⥻",Nae="⫂",Oae="⫌",Lae="⊋",Rae="⫀",Pae="⊃",Iae="⋑",Dae="⊇",Fae="⫆",zae="⊋",Bae="⫌",Hae="⫈",jae="⫔",Wae="⫖",Uae="⤦",qae="↙",Vae="⇙",Gae="↙",Kae="⤪",Yae="ß",Xae=" ",Jae="⌖",Zae="Τ",Qae="τ",ece="⎴",tce="Ť",nce="ť",rce="Ţ",ice="ţ",oce="Т",sce="т",lce="⃛",ace="⌕",cce="𝔗",uce="𝔱",fce="∴",dce="∴",hce="∴",pce="Θ",mce="θ",gce="ϑ",vce="ϑ",yce="≈",bce="∼",wce=" ",xce=" ",Sce=" ",_ce="≈",kce="∼",Tce="Þ",Cce="þ",Ece="˜",Ace="∼",Mce="≃",$ce="≅",Nce="≈",Oce="⨱",Lce="⊠",Rce="×",Pce="⨰",Ice="∭",Dce="⤨",Fce="⌶",zce="⫱",Bce="⊤",Hce="𝕋",jce="𝕥",Wce="⫚",Uce="⤩",qce="‴",Vce="™",Gce="™",Kce="▵",Yce="▿",Xce="◃",Jce="⊴",Zce="≜",Qce="▹",eue="⊵",tue="◬",nue="≜",rue="⨺",iue="⃛",oue="⨹",sue="⧍",lue="⨻",aue="⏢",cue="𝒯",uue="𝓉",fue="Ц",due="ц",hue="Ћ",pue="ћ",mue="Ŧ",gue="ŧ",vue="≬",yue="↞",bue="↠",wue="Ú",xue="ú",Sue="↑",_ue="↟",kue="⇑",Tue="⥉",Cue="Ў",Eue="ў",Aue="Ŭ",Mue="ŭ",$ue="Û",Nue="û",Oue="У",Lue="у",Rue="⇅",Pue="Ű",Iue="ű",Due="⥮",Fue="⥾",zue="𝔘",Bue="𝔲",Hue="Ù",jue="ù",Wue="⥣",Uue="↿",que="↾",Vue="▀",Gue="⌜",Kue="⌜",Yue="⌏",Xue="◸",Jue="Ū",Zue="ū",Que="¨",efe="_",tfe="⏟",nfe="⎵",rfe="⏝",ife="⋃",ofe="⊎",sfe="Ų",lfe="ų",afe="𝕌",cfe="𝕦",ufe="⤒",ffe="↑",dfe="↑",hfe="⇑",pfe="⇅",mfe="↕",gfe="↕",vfe="⇕",yfe="⥮",bfe="↿",wfe="↾",xfe="⊎",Sfe="↖",_fe="↗",kfe="υ",Tfe="ϒ",Cfe="ϒ",Efe="Υ",Afe="υ",Mfe="↥",$fe="⊥",Nfe="⇈",Ofe="⌝",Lfe="⌝",Rfe="⌎",Pfe="Ů",Ife="ů",Dfe="◹",Ffe="𝒰",zfe="𝓊",Bfe="⋰",Hfe="Ũ",jfe="ũ",Wfe="▵",Ufe="▴",qfe="⇈",Vfe="Ü",Gfe="ü",Kfe="⦧",Yfe="⦜",Xfe="ϵ",Jfe="ϰ",Zfe="∅",Qfe="ϕ",ede="ϖ",tde="∝",nde="↕",rde="⇕",ide="ϱ",ode="ς",sde="⊊︀",lde="⫋︀",ade="⊋︀",cde="⫌︀",ude="ϑ",fde="⊲",dde="⊳",hde="⫨",pde="⫫",mde="⫩",gde="В",vde="в",yde="⊢",bde="⊨",wde="⊩",xde="⊫",Sde="⫦",_de="⊻",kde="∨",Tde="⋁",Cde="≚",Ede="⋮",Ade="|",Mde="‖",$de="|",Nde="‖",Ode="∣",Lde="|",Rde="❘",Pde="≀",Ide=" ",Dde="𝔙",Fde="𝔳",zde="⊲",Bde="⊂⃒",Hde="⊃⃒",jde="𝕍",Wde="𝕧",Ude="∝",qde="⊳",Vde="𝒱",Gde="𝓋",Kde="⫋︀",Yde="⊊︀",Xde="⫌︀",Jde="⊋︀",Zde="⊪",Qde="⦚",ehe="Ŵ",the="ŵ",nhe="⩟",rhe="∧",ihe="⋀",ohe="≙",she="℘",lhe="𝔚",ahe="𝔴",che="𝕎",uhe="𝕨",fhe="℘",dhe="≀",hhe="≀",phe="𝒲",mhe="𝓌",ghe="⋂",vhe="◯",yhe="⋃",bhe="▽",whe="𝔛",xhe="𝔵",She="⟷",_he="⟺",khe="Ξ",The="ξ",Che="⟵",Ehe="⟸",Ahe="⟼",Mhe="⋻",$he="⨀",Nhe="𝕏",Ohe="𝕩",Lhe="⨁",Rhe="⨂",Phe="⟶",Ihe="⟹",Dhe="𝒳",Fhe="𝓍",zhe="⨆",Bhe="⨄",Hhe="△",jhe="⋁",Whe="⋀",Uhe="Ý",qhe="ý",Vhe="Я",Ghe="я",Khe="Ŷ",Yhe="ŷ",Xhe="Ы",Jhe="ы",Zhe="¥",Qhe="𝔜",epe="𝔶",tpe="Ї",npe="ї",rpe="𝕐",ipe="𝕪",ope="𝒴",spe="𝓎",lpe="Ю",ape="ю",cpe="ÿ",upe="Ÿ",fpe="Ź",dpe="ź",hpe="Ž",ppe="ž",mpe="З",gpe="з",vpe="Ż",ype="ż",bpe="ℨ",wpe="",xpe="Ζ",Spe="ζ",_pe="𝔷",kpe="ℨ",Tpe="Ж",Cpe="ж",Epe="⇝",Ape="𝕫",Mpe="ℤ",$pe="𝒵",Npe="𝓏",Ope="",Lpe="",Lk={Aacute:v2,aacute:y2,Abreve:b2,abreve:w2,ac:x2,acd:S2,acE:_2,Acirc:k2,acirc:T2,acute:C2,Acy:E2,acy:A2,AElig:M2,aelig:$2,af:N2,Afr:O2,afr:L2,Agrave:R2,agrave:P2,alefsym:I2,aleph:D2,Alpha:F2,alpha:z2,Amacr:B2,amacr:H2,amalg:j2,amp:W2,AMP:U2,andand:q2,And:V2,and:G2,andd:K2,andslope:Y2,andv:X2,ang:J2,ange:Z2,angle:Q2,angmsdaa:eD,angmsdab:tD,angmsdac:nD,angmsdad:rD,angmsdae:iD,angmsdaf:oD,angmsdag:sD,angmsdah:lD,angmsd:aD,angrt:cD,angrtvb:uD,angrtvbd:fD,angsph:dD,angst:hD,angzarr:pD,Aogon:mD,aogon:gD,Aopf:vD,aopf:yD,apacir:bD,ap:wD,apE:xD,ape:SD,apid:_D,apos:kD,ApplyFunction:TD,approx:CD,approxeq:ED,Aring:AD,aring:MD,Ascr:$D,ascr:ND,Assign:OD,ast:LD,asymp:RD,asympeq:PD,Atilde:ID,atilde:DD,Auml:FD,auml:zD,awconint:BD,awint:HD,backcong:jD,backepsilon:WD,backprime:UD,backsim:qD,backsimeq:VD,Backslash:GD,Barv:KD,barvee:YD,barwed:XD,Barwed:JD,barwedge:ZD,bbrk:QD,bbrktbrk:eF,bcong:tF,Bcy:nF,bcy:rF,bdquo:iF,becaus:oF,because:sF,Because:lF,bemptyv:aF,bepsi:cF,bernou:uF,Bernoullis:fF,Beta:dF,beta:hF,beth:pF,between:mF,Bfr:gF,bfr:vF,bigcap:yF,bigcirc:bF,bigcup:wF,bigodot:xF,bigoplus:SF,bigotimes:_F,bigsqcup:kF,bigstar:TF,bigtriangledown:CF,bigtriangleup:EF,biguplus:AF,bigvee:MF,bigwedge:$F,bkarow:NF,blacklozenge:OF,blacksquare:LF,blacktriangle:RF,blacktriangledown:PF,blacktriangleleft:IF,blacktriangleright:DF,blank:FF,blk12:zF,blk14:BF,blk34:HF,block:jF,bne:WF,bnequiv:UF,bNot:qF,bnot:VF,Bopf:GF,bopf:KF,bot:YF,bottom:XF,bowtie:JF,boxbox:ZF,boxdl:QF,boxdL:ez,boxDl:tz,boxDL:nz,boxdr:rz,boxdR:iz,boxDr:oz,boxDR:sz,boxh:lz,boxH:az,boxhd:cz,boxHd:uz,boxhD:fz,boxHD:dz,boxhu:hz,boxHu:pz,boxhU:mz,boxHU:gz,boxminus:vz,boxplus:yz,boxtimes:bz,boxul:wz,boxuL:xz,boxUl:Sz,boxUL:_z,boxur:kz,boxuR:Tz,boxUr:Cz,boxUR:Ez,boxv:Az,boxV:Mz,boxvh:$z,boxvH:Nz,boxVh:Oz,boxVH:Lz,boxvl:Rz,boxvL:Pz,boxVl:Iz,boxVL:Dz,boxvr:Fz,boxvR:zz,boxVr:Bz,boxVR:Hz,bprime:jz,breve:Wz,Breve:Uz,brvbar:qz,bscr:Vz,Bscr:Gz,bsemi:Kz,bsim:Yz,bsime:Xz,bsolb:Jz,bsol:Zz,bsolhsub:Qz,bull:eB,bullet:tB,bump:nB,bumpE:rB,bumpe:iB,Bumpeq:oB,bumpeq:sB,Cacute:lB,cacute:aB,capand:cB,capbrcup:uB,capcap:fB,cap:dB,Cap:hB,capcup:pB,capdot:mB,CapitalDifferentialD:gB,caps:vB,caret:yB,caron:bB,Cayleys:wB,ccaps:xB,Ccaron:SB,ccaron:_B,Ccedil:kB,ccedil:TB,Ccirc:CB,ccirc:EB,Cconint:AB,ccups:MB,ccupssm:$B,Cdot:NB,cdot:OB,cedil:LB,Cedilla:RB,cemptyv:PB,cent:IB,centerdot:DB,CenterDot:FB,cfr:zB,Cfr:BB,CHcy:HB,chcy:jB,check:WB,checkmark:UB,Chi:qB,chi:VB,circ:GB,circeq:KB,circlearrowleft:YB,circlearrowright:XB,circledast:JB,circledcirc:ZB,circleddash:QB,CircleDot:e3,circledR:t3,circledS:n3,CircleMinus:r3,CirclePlus:i3,CircleTimes:o3,cir:s3,cirE:l3,cire:a3,cirfnint:c3,cirmid:u3,cirscir:f3,ClockwiseContourIntegral:d3,CloseCurlyDoubleQuote:h3,CloseCurlyQuote:p3,clubs:m3,clubsuit:g3,colon:v3,Colon:y3,Colone:b3,colone:w3,coloneq:x3,comma:S3,commat:_3,comp:k3,compfn:T3,complement:C3,complexes:E3,cong:A3,congdot:M3,Congruent:$3,conint:N3,Conint:O3,ContourIntegral:L3,copf:R3,Copf:P3,coprod:I3,Coproduct:D3,copy:F3,COPY:z3,copysr:B3,CounterClockwiseContourIntegral:H3,crarr:j3,cross:W3,Cross:U3,Cscr:q3,cscr:V3,csub:G3,csube:K3,csup:Y3,csupe:X3,ctdot:J3,cudarrl:Z3,cudarrr:Q3,cuepr:eH,cuesc:tH,cularr:nH,cularrp:rH,cupbrcap:iH,cupcap:oH,CupCap:sH,cup:lH,Cup:aH,cupcup:cH,cupdot:uH,cupor:fH,cups:dH,curarr:hH,curarrm:pH,curlyeqprec:mH,curlyeqsucc:gH,curlyvee:vH,curlywedge:yH,curren:bH,curvearrowleft:wH,curvearrowright:xH,cuvee:SH,cuwed:_H,cwconint:kH,cwint:TH,cylcty:CH,dagger:EH,Dagger:AH,daleth:MH,darr:$H,Darr:NH,dArr:OH,dash:LH,Dashv:RH,dashv:PH,dbkarow:IH,dblac:DH,Dcaron:FH,dcaron:zH,Dcy:BH,dcy:HH,ddagger:jH,ddarr:WH,DD:UH,dd:qH,DDotrahd:VH,ddotseq:GH,deg:KH,Del:YH,Delta:XH,delta:JH,demptyv:ZH,dfisht:QH,Dfr:ej,dfr:tj,dHar:nj,dharl:rj,dharr:ij,DiacriticalAcute:oj,DiacriticalDot:sj,DiacriticalDoubleAcute:lj,DiacriticalGrave:aj,DiacriticalTilde:cj,diam:uj,diamond:fj,Diamond:dj,diamondsuit:hj,diams:pj,die:mj,DifferentialD:gj,digamma:vj,disin:yj,div:bj,divide:wj,divideontimes:xj,divonx:Sj,DJcy:_j,djcy:kj,dlcorn:Tj,dlcrop:Cj,dollar:Ej,Dopf:Aj,dopf:Mj,Dot:$j,dot:Nj,DotDot:Oj,doteq:Lj,doteqdot:Rj,DotEqual:Pj,dotminus:Ij,dotplus:Dj,dotsquare:Fj,doublebarwedge:zj,DoubleContourIntegral:Bj,DoubleDot:Hj,DoubleDownArrow:jj,DoubleLeftArrow:Wj,DoubleLeftRightArrow:Uj,DoubleLeftTee:qj,DoubleLongLeftArrow:Vj,DoubleLongLeftRightArrow:Gj,DoubleLongRightArrow:Kj,DoubleRightArrow:Yj,DoubleRightTee:Xj,DoubleUpArrow:Jj,DoubleUpDownArrow:Zj,DoubleVerticalBar:Qj,DownArrowBar:e5,downarrow:t5,DownArrow:n5,Downarrow:r5,DownArrowUpArrow:i5,DownBreve:o5,downdownarrows:s5,downharpoonleft:l5,downharpoonright:a5,DownLeftRightVector:c5,DownLeftTeeVector:u5,DownLeftVectorBar:f5,DownLeftVector:d5,DownRightTeeVector:h5,DownRightVectorBar:p5,DownRightVector:m5,DownTeeArrow:g5,DownTee:v5,drbkarow:y5,drcorn:b5,drcrop:w5,Dscr:x5,dscr:S5,DScy:_5,dscy:k5,dsol:T5,Dstrok:C5,dstrok:E5,dtdot:A5,dtri:M5,dtrif:$5,duarr:N5,duhar:O5,dwangle:L5,DZcy:R5,dzcy:P5,dzigrarr:I5,Eacute:D5,eacute:F5,easter:z5,Ecaron:B5,ecaron:H5,Ecirc:j5,ecirc:W5,ecir:U5,ecolon:q5,Ecy:V5,ecy:G5,eDDot:K5,Edot:Y5,edot:X5,eDot:J5,ee:Z5,efDot:Q5,Efr:e4,efr:t4,eg:n4,Egrave:r4,egrave:i4,egs:o4,egsdot:s4,el:l4,Element:a4,elinters:c4,ell:u4,els:f4,elsdot:d4,Emacr:h4,emacr:p4,empty:m4,emptyset:g4,EmptySmallSquare:v4,emptyv:y4,EmptyVerySmallSquare:b4,emsp13:w4,emsp14:x4,emsp:S4,ENG:_4,eng:k4,ensp:T4,Eogon:C4,eogon:E4,Eopf:A4,eopf:M4,epar:$4,eparsl:N4,eplus:O4,epsi:L4,Epsilon:R4,epsilon:P4,epsiv:I4,eqcirc:D4,eqcolon:F4,eqsim:z4,eqslantgtr:B4,eqslantless:H4,Equal:j4,equals:W4,EqualTilde:U4,equest:q4,Equilibrium:V4,equiv:G4,equivDD:K4,eqvparsl:Y4,erarr:X4,erDot:J4,escr:Z4,Escr:Q4,esdot:e8,Esim:t8,esim:n8,Eta:r8,eta:i8,ETH:o8,eth:s8,Euml:l8,euml:a8,euro:c8,excl:u8,exist:f8,Exists:d8,expectation:h8,exponentiale:p8,ExponentialE:m8,fallingdotseq:g8,Fcy:v8,fcy:y8,female:b8,ffilig:w8,fflig:x8,ffllig:S8,Ffr:_8,ffr:k8,filig:T8,FilledSmallSquare:C8,FilledVerySmallSquare:E8,fjlig:A8,flat:M8,fllig:$8,fltns:N8,fnof:O8,Fopf:L8,fopf:R8,forall:P8,ForAll:I8,fork:D8,forkv:F8,Fouriertrf:z8,fpartint:B8,frac12:H8,frac13:j8,frac14:W8,frac15:U8,frac16:q8,frac18:V8,frac23:G8,frac25:K8,frac34:Y8,frac35:X8,frac38:J8,frac45:Z8,frac56:Q8,frac58:eW,frac78:tW,frasl:nW,frown:rW,fscr:iW,Fscr:oW,gacute:sW,Gamma:lW,gamma:aW,Gammad:cW,gammad:uW,gap:fW,Gbreve:dW,gbreve:hW,Gcedil:pW,Gcirc:mW,gcirc:gW,Gcy:vW,gcy:yW,Gdot:bW,gdot:wW,ge:xW,gE:SW,gEl:_W,gel:kW,geq:TW,geqq:CW,geqslant:EW,gescc:AW,ges:MW,gesdot:$W,gesdoto:NW,gesdotol:OW,gesl:LW,gesles:RW,Gfr:PW,gfr:IW,gg:DW,Gg:FW,ggg:zW,gimel:BW,GJcy:HW,gjcy:jW,gla:WW,gl:UW,glE:qW,glj:VW,gnap:GW,gnapprox:KW,gne:YW,gnE:XW,gneq:JW,gneqq:ZW,gnsim:QW,Gopf:eU,gopf:tU,grave:nU,GreaterEqual:rU,GreaterEqualLess:iU,GreaterFullEqual:oU,GreaterGreater:sU,GreaterLess:lU,GreaterSlantEqual:aU,GreaterTilde:cU,Gscr:uU,gscr:fU,gsim:dU,gsime:hU,gsiml:pU,gtcc:mU,gtcir:gU,gt:vU,GT:yU,Gt:bU,gtdot:wU,gtlPar:xU,gtquest:SU,gtrapprox:_U,gtrarr:kU,gtrdot:TU,gtreqless:CU,gtreqqless:EU,gtrless:AU,gtrsim:MU,gvertneqq:$U,gvnE:NU,Hacek:OU,hairsp:LU,half:RU,hamilt:PU,HARDcy:IU,hardcy:DU,harrcir:FU,harr:zU,hArr:BU,harrw:HU,Hat:jU,hbar:WU,Hcirc:UU,hcirc:qU,hearts:VU,heartsuit:GU,hellip:KU,hercon:YU,hfr:XU,Hfr:JU,HilbertSpace:ZU,hksearow:QU,hkswarow:eq,hoarr:tq,homtht:nq,hookleftarrow:rq,hookrightarrow:iq,hopf:oq,Hopf:sq,horbar:lq,HorizontalLine:aq,hscr:cq,Hscr:uq,hslash:fq,Hstrok:dq,hstrok:hq,HumpDownHump:pq,HumpEqual:mq,hybull:gq,hyphen:vq,Iacute:yq,iacute:bq,ic:wq,Icirc:xq,icirc:Sq,Icy:_q,icy:kq,Idot:Tq,IEcy:Cq,iecy:Eq,iexcl:Aq,iff:Mq,ifr:$q,Ifr:Nq,Igrave:Oq,igrave:Lq,ii:Rq,iiiint:Pq,iiint:Iq,iinfin:Dq,iiota:Fq,IJlig:zq,ijlig:Bq,Imacr:Hq,imacr:jq,image:Wq,ImaginaryI:Uq,imagline:qq,imagpart:Vq,imath:Gq,Im:Kq,imof:Yq,imped:Xq,Implies:Jq,incare:Zq,in:"∈",infin:Qq,infintie:e6,inodot:t6,intcal:n6,int:r6,Int:i6,integers:o6,Integral:s6,intercal:l6,Intersection:a6,intlarhk:c6,intprod:u6,InvisibleComma:f6,InvisibleTimes:d6,IOcy:h6,iocy:p6,Iogon:m6,iogon:g6,Iopf:v6,iopf:y6,Iota:b6,iota:w6,iprod:x6,iquest:S6,iscr:_6,Iscr:k6,isin:T6,isindot:C6,isinE:E6,isins:A6,isinsv:M6,isinv:$6,it:N6,Itilde:O6,itilde:L6,Iukcy:R6,iukcy:P6,Iuml:I6,iuml:D6,Jcirc:F6,jcirc:z6,Jcy:B6,jcy:H6,Jfr:j6,jfr:W6,jmath:U6,Jopf:q6,jopf:V6,Jscr:G6,jscr:K6,Jsercy:Y6,jsercy:X6,Jukcy:J6,jukcy:Z6,Kappa:Q6,kappa:eV,kappav:tV,Kcedil:nV,kcedil:rV,Kcy:iV,kcy:oV,Kfr:sV,kfr:lV,kgreen:aV,KHcy:cV,khcy:uV,KJcy:fV,kjcy:dV,Kopf:hV,kopf:pV,Kscr:mV,kscr:gV,lAarr:vV,Lacute:yV,lacute:bV,laemptyv:wV,lagran:xV,Lambda:SV,lambda:_V,lang:kV,Lang:TV,langd:CV,langle:EV,lap:AV,Laplacetrf:MV,laquo:$V,larrb:NV,larrbfs:OV,larr:LV,Larr:RV,lArr:PV,larrfs:IV,larrhk:DV,larrlp:FV,larrpl:zV,larrsim:BV,larrtl:HV,latail:jV,lAtail:WV,lat:UV,late:qV,lates:VV,lbarr:GV,lBarr:KV,lbbrk:YV,lbrace:XV,lbrack:JV,lbrke:ZV,lbrksld:QV,lbrkslu:e9,Lcaron:t9,lcaron:n9,Lcedil:r9,lcedil:i9,lceil:o9,lcub:s9,Lcy:l9,lcy:a9,ldca:c9,ldquo:u9,ldquor:f9,ldrdhar:d9,ldrushar:h9,ldsh:p9,le:m9,lE:g9,LeftAngleBracket:v9,LeftArrowBar:y9,leftarrow:b9,LeftArrow:w9,Leftarrow:x9,LeftArrowRightArrow:S9,leftarrowtail:_9,LeftCeiling:k9,LeftDoubleBracket:T9,LeftDownTeeVector:C9,LeftDownVectorBar:E9,LeftDownVector:A9,LeftFloor:M9,leftharpoondown:$9,leftharpoonup:N9,leftleftarrows:O9,leftrightarrow:L9,LeftRightArrow:R9,Leftrightarrow:P9,leftrightarrows:I9,leftrightharpoons:D9,leftrightsquigarrow:F9,LeftRightVector:z9,LeftTeeArrow:B9,LeftTee:H9,LeftTeeVector:j9,leftthreetimes:W9,LeftTriangleBar:U9,LeftTriangle:q9,LeftTriangleEqual:V9,LeftUpDownVector:G9,LeftUpTeeVector:K9,LeftUpVectorBar:Y9,LeftUpVector:X9,LeftVectorBar:J9,LeftVector:Z9,lEg:Q9,leg:eG,leq:tG,leqq:nG,leqslant:rG,lescc:iG,les:oG,lesdot:sG,lesdoto:lG,lesdotor:aG,lesg:cG,lesges:uG,lessapprox:fG,lessdot:dG,lesseqgtr:hG,lesseqqgtr:pG,LessEqualGreater:mG,LessFullEqual:gG,LessGreater:vG,lessgtr:yG,LessLess:bG,lesssim:wG,LessSlantEqual:xG,LessTilde:SG,lfisht:_G,lfloor:kG,Lfr:TG,lfr:CG,lg:EG,lgE:AG,lHar:MG,lhard:$G,lharu:NG,lharul:OG,lhblk:LG,LJcy:RG,ljcy:PG,llarr:IG,ll:DG,Ll:FG,llcorner:zG,Lleftarrow:BG,llhard:HG,lltri:jG,Lmidot:WG,lmidot:UG,lmoustache:qG,lmoust:VG,lnap:GG,lnapprox:KG,lne:YG,lnE:XG,lneq:JG,lneqq:ZG,lnsim:QG,loang:eK,loarr:tK,lobrk:nK,longleftarrow:rK,LongLeftArrow:iK,Longleftarrow:oK,longleftrightarrow:sK,LongLeftRightArrow:lK,Longleftrightarrow:aK,longmapsto:cK,longrightarrow:uK,LongRightArrow:fK,Longrightarrow:dK,looparrowleft:hK,looparrowright:pK,lopar:mK,Lopf:gK,lopf:vK,loplus:yK,lotimes:bK,lowast:wK,lowbar:xK,LowerLeftArrow:SK,LowerRightArrow:_K,loz:kK,lozenge:TK,lozf:CK,lpar:EK,lparlt:AK,lrarr:MK,lrcorner:$K,lrhar:NK,lrhard:OK,lrm:LK,lrtri:RK,lsaquo:PK,lscr:IK,Lscr:DK,lsh:FK,Lsh:zK,lsim:BK,lsime:HK,lsimg:jK,lsqb:WK,lsquo:UK,lsquor:qK,Lstrok:VK,lstrok:GK,ltcc:KK,ltcir:YK,lt:XK,LT:JK,Lt:ZK,ltdot:QK,lthree:e7,ltimes:t7,ltlarr:n7,ltquest:r7,ltri:i7,ltrie:o7,ltrif:s7,ltrPar:l7,lurdshar:a7,luruhar:c7,lvertneqq:u7,lvnE:f7,macr:d7,male:h7,malt:p7,maltese:m7,Map:"⤅",map:g7,mapsto:v7,mapstodown:y7,mapstoleft:b7,mapstoup:w7,marker:x7,mcomma:S7,Mcy:_7,mcy:k7,mdash:T7,mDDot:C7,measuredangle:E7,MediumSpace:A7,Mellintrf:M7,Mfr:$7,mfr:N7,mho:O7,micro:L7,midast:R7,midcir:P7,mid:I7,middot:D7,minusb:F7,minus:z7,minusd:B7,minusdu:H7,MinusPlus:j7,mlcp:W7,mldr:U7,mnplus:q7,models:V7,Mopf:G7,mopf:K7,mp:Y7,mscr:X7,Mscr:J7,mstpos:Z7,Mu:Q7,mu:eY,multimap:tY,mumap:nY,nabla:rY,Nacute:iY,nacute:oY,nang:sY,nap:lY,napE:aY,napid:cY,napos:uY,napprox:fY,natural:dY,naturals:hY,natur:pY,nbsp:mY,nbump:gY,nbumpe:vY,ncap:yY,Ncaron:bY,ncaron:wY,Ncedil:xY,ncedil:SY,ncong:_Y,ncongdot:kY,ncup:TY,Ncy:CY,ncy:EY,ndash:AY,nearhk:MY,nearr:$Y,neArr:NY,nearrow:OY,ne:LY,nedot:RY,NegativeMediumSpace:PY,NegativeThickSpace:IY,NegativeThinSpace:DY,NegativeVeryThinSpace:FY,nequiv:zY,nesear:BY,nesim:HY,NestedGreaterGreater:jY,NestedLessLess:WY,NewLine:UY,nexist:qY,nexists:VY,Nfr:GY,nfr:KY,ngE:YY,nge:XY,ngeq:JY,ngeqq:ZY,ngeqslant:QY,nges:eX,nGg:tX,ngsim:nX,nGt:rX,ngt:iX,ngtr:oX,nGtv:sX,nharr:lX,nhArr:aX,nhpar:cX,ni:uX,nis:fX,nisd:dX,niv:hX,NJcy:pX,njcy:mX,nlarr:gX,nlArr:vX,nldr:yX,nlE:bX,nle:wX,nleftarrow:xX,nLeftarrow:SX,nleftrightarrow:_X,nLeftrightarrow:kX,nleq:TX,nleqq:CX,nleqslant:EX,nles:AX,nless:MX,nLl:$X,nlsim:NX,nLt:OX,nlt:LX,nltri:RX,nltrie:PX,nLtv:IX,nmid:DX,NoBreak:FX,NonBreakingSpace:zX,nopf:BX,Nopf:HX,Not:jX,not:WX,NotCongruent:UX,NotCupCap:qX,NotDoubleVerticalBar:VX,NotElement:GX,NotEqual:KX,NotEqualTilde:YX,NotExists:XX,NotGreater:JX,NotGreaterEqual:ZX,NotGreaterFullEqual:QX,NotGreaterGreater:eJ,NotGreaterLess:tJ,NotGreaterSlantEqual:nJ,NotGreaterTilde:rJ,NotHumpDownHump:iJ,NotHumpEqual:oJ,notin:sJ,notindot:lJ,notinE:aJ,notinva:cJ,notinvb:uJ,notinvc:fJ,NotLeftTriangleBar:dJ,NotLeftTriangle:hJ,NotLeftTriangleEqual:pJ,NotLess:mJ,NotLessEqual:gJ,NotLessGreater:vJ,NotLessLess:yJ,NotLessSlantEqual:bJ,NotLessTilde:wJ,NotNestedGreaterGreater:xJ,NotNestedLessLess:SJ,notni:_J,notniva:kJ,notnivb:TJ,notnivc:CJ,NotPrecedes:EJ,NotPrecedesEqual:AJ,NotPrecedesSlantEqual:MJ,NotReverseElement:$J,NotRightTriangleBar:NJ,NotRightTriangle:OJ,NotRightTriangleEqual:LJ,NotSquareSubset:RJ,NotSquareSubsetEqual:PJ,NotSquareSuperset:IJ,NotSquareSupersetEqual:DJ,NotSubset:FJ,NotSubsetEqual:zJ,NotSucceeds:BJ,NotSucceedsEqual:HJ,NotSucceedsSlantEqual:jJ,NotSucceedsTilde:WJ,NotSuperset:UJ,NotSupersetEqual:qJ,NotTilde:VJ,NotTildeEqual:GJ,NotTildeFullEqual:KJ,NotTildeTilde:YJ,NotVerticalBar:XJ,nparallel:JJ,npar:ZJ,nparsl:QJ,npart:eZ,npolint:tZ,npr:nZ,nprcue:rZ,nprec:iZ,npreceq:oZ,npre:sZ,nrarrc:lZ,nrarr:aZ,nrArr:cZ,nrarrw:uZ,nrightarrow:fZ,nRightarrow:dZ,nrtri:hZ,nrtrie:pZ,nsc:mZ,nsccue:gZ,nsce:vZ,Nscr:yZ,nscr:bZ,nshortmid:wZ,nshortparallel:xZ,nsim:SZ,nsime:_Z,nsimeq:kZ,nsmid:TZ,nspar:CZ,nsqsube:EZ,nsqsupe:AZ,nsub:MZ,nsubE:$Z,nsube:NZ,nsubset:OZ,nsubseteq:LZ,nsubseteqq:RZ,nsucc:PZ,nsucceq:IZ,nsup:DZ,nsupE:FZ,nsupe:zZ,nsupset:BZ,nsupseteq:HZ,nsupseteqq:jZ,ntgl:WZ,Ntilde:UZ,ntilde:qZ,ntlg:VZ,ntriangleleft:GZ,ntrianglelefteq:KZ,ntriangleright:YZ,ntrianglerighteq:XZ,Nu:JZ,nu:ZZ,num:QZ,numero:eQ,numsp:tQ,nvap:nQ,nvdash:rQ,nvDash:iQ,nVdash:oQ,nVDash:sQ,nvge:lQ,nvgt:aQ,nvHarr:cQ,nvinfin:uQ,nvlArr:fQ,nvle:dQ,nvlt:hQ,nvltrie:pQ,nvrArr:mQ,nvrtrie:gQ,nvsim:vQ,nwarhk:yQ,nwarr:bQ,nwArr:wQ,nwarrow:xQ,nwnear:SQ,Oacute:_Q,oacute:kQ,oast:TQ,Ocirc:CQ,ocirc:EQ,ocir:AQ,Ocy:MQ,ocy:$Q,odash:NQ,Odblac:OQ,odblac:LQ,odiv:RQ,odot:PQ,odsold:IQ,OElig:DQ,oelig:FQ,ofcir:zQ,Ofr:BQ,ofr:HQ,ogon:jQ,Ograve:WQ,ograve:UQ,ogt:qQ,ohbar:VQ,ohm:GQ,oint:KQ,olarr:YQ,olcir:XQ,olcross:JQ,oline:ZQ,olt:QQ,Omacr:eee,omacr:tee,Omega:nee,omega:ree,Omicron:iee,omicron:oee,omid:see,ominus:lee,Oopf:aee,oopf:cee,opar:uee,OpenCurlyDoubleQuote:fee,OpenCurlyQuote:dee,operp:hee,oplus:pee,orarr:mee,Or:gee,or:vee,ord:yee,order:bee,orderof:wee,ordf:xee,ordm:See,origof:_ee,oror:kee,orslope:Tee,orv:Cee,oS:Eee,Oscr:Aee,oscr:Mee,Oslash:$ee,oslash:Nee,osol:Oee,Otilde:Lee,otilde:Ree,otimesas:Pee,Otimes:Iee,otimes:Dee,Ouml:Fee,ouml:zee,ovbar:Bee,OverBar:Hee,OverBrace:jee,OverBracket:Wee,OverParenthesis:Uee,para:qee,parallel:Vee,par:Gee,parsim:Kee,parsl:Yee,part:Xee,PartialD:Jee,Pcy:Zee,pcy:Qee,percnt:ete,period:tte,permil:nte,perp:rte,pertenk:ite,Pfr:ote,pfr:ste,Phi:lte,phi:ate,phiv:cte,phmmat:ute,phone:fte,Pi:dte,pi:hte,pitchfork:pte,piv:mte,planck:gte,planckh:vte,plankv:yte,plusacir:bte,plusb:wte,pluscir:xte,plus:Ste,plusdo:_te,plusdu:kte,pluse:Tte,PlusMinus:Cte,plusmn:Ete,plussim:Ate,plustwo:Mte,pm:$te,Poincareplane:Nte,pointint:Ote,popf:Lte,Popf:Rte,pound:Pte,prap:Ite,Pr:Dte,pr:Fte,prcue:zte,precapprox:Bte,prec:Hte,preccurlyeq:jte,Precedes:Wte,PrecedesEqual:Ute,PrecedesSlantEqual:qte,PrecedesTilde:Vte,preceq:Gte,precnapprox:Kte,precneqq:Yte,precnsim:Xte,pre:Jte,prE:Zte,precsim:Qte,prime:ene,Prime:tne,primes:nne,prnap:rne,prnE:ine,prnsim:one,prod:sne,Product:lne,profalar:ane,profline:cne,profsurf:une,prop:fne,Proportional:dne,Proportion:hne,propto:pne,prsim:mne,prurel:gne,Pscr:vne,pscr:yne,Psi:bne,psi:wne,puncsp:xne,Qfr:Sne,qfr:_ne,qint:kne,qopf:Tne,Qopf:Cne,qprime:Ene,Qscr:Ane,qscr:Mne,quaternions:$ne,quatint:Nne,quest:One,questeq:Lne,quot:Rne,QUOT:Pne,rAarr:Ine,race:Dne,Racute:Fne,racute:zne,radic:Bne,raemptyv:Hne,rang:jne,Rang:Wne,rangd:Une,range:qne,rangle:Vne,raquo:Gne,rarrap:Kne,rarrb:Yne,rarrbfs:Xne,rarrc:Jne,rarr:Zne,Rarr:Qne,rArr:ere,rarrfs:tre,rarrhk:nre,rarrlp:rre,rarrpl:ire,rarrsim:ore,Rarrtl:sre,rarrtl:lre,rarrw:are,ratail:cre,rAtail:ure,ratio:fre,rationals:dre,rbarr:hre,rBarr:pre,RBarr:mre,rbbrk:gre,rbrace:vre,rbrack:yre,rbrke:bre,rbrksld:wre,rbrkslu:xre,Rcaron:Sre,rcaron:_re,Rcedil:kre,rcedil:Tre,rceil:Cre,rcub:Ere,Rcy:Are,rcy:Mre,rdca:$re,rdldhar:Nre,rdquo:Ore,rdquor:Lre,rdsh:Rre,real:Pre,realine:Ire,realpart:Dre,reals:Fre,Re:zre,rect:Bre,reg:Hre,REG:jre,ReverseElement:Wre,ReverseEquilibrium:Ure,ReverseUpEquilibrium:qre,rfisht:Vre,rfloor:Gre,rfr:Kre,Rfr:Yre,rHar:Xre,rhard:Jre,rharu:Zre,rharul:Qre,Rho:eie,rho:tie,rhov:nie,RightAngleBracket:rie,RightArrowBar:iie,rightarrow:oie,RightArrow:sie,Rightarrow:lie,RightArrowLeftArrow:aie,rightarrowtail:cie,RightCeiling:uie,RightDoubleBracket:fie,RightDownTeeVector:die,RightDownVectorBar:hie,RightDownVector:pie,RightFloor:mie,rightharpoondown:gie,rightharpoonup:vie,rightleftarrows:yie,rightleftharpoons:bie,rightrightarrows:wie,rightsquigarrow:xie,RightTeeArrow:Sie,RightTee:_ie,RightTeeVector:kie,rightthreetimes:Tie,RightTriangleBar:Cie,RightTriangle:Eie,RightTriangleEqual:Aie,RightUpDownVector:Mie,RightUpTeeVector:$ie,RightUpVectorBar:Nie,RightUpVector:Oie,RightVectorBar:Lie,RightVector:Rie,ring:Pie,risingdotseq:Iie,rlarr:Die,rlhar:Fie,rlm:zie,rmoustache:Bie,rmoust:Hie,rnmid:jie,roang:Wie,roarr:Uie,robrk:qie,ropar:Vie,ropf:Gie,Ropf:Kie,roplus:Yie,rotimes:Xie,RoundImplies:Jie,rpar:Zie,rpargt:Qie,rppolint:eoe,rrarr:toe,Rrightarrow:noe,rsaquo:roe,rscr:ioe,Rscr:ooe,rsh:soe,Rsh:loe,rsqb:aoe,rsquo:coe,rsquor:uoe,rthree:foe,rtimes:doe,rtri:hoe,rtrie:poe,rtrif:moe,rtriltri:goe,RuleDelayed:voe,ruluhar:yoe,rx:boe,Sacute:woe,sacute:xoe,sbquo:Soe,scap:_oe,Scaron:koe,scaron:Toe,Sc:Coe,sc:Eoe,sccue:Aoe,sce:Moe,scE:$oe,Scedil:Noe,scedil:Ooe,Scirc:Loe,scirc:Roe,scnap:Poe,scnE:Ioe,scnsim:Doe,scpolint:Foe,scsim:zoe,Scy:Boe,scy:Hoe,sdotb:joe,sdot:Woe,sdote:Uoe,searhk:qoe,searr:Voe,seArr:Goe,searrow:Koe,sect:Yoe,semi:Xoe,seswar:Joe,setminus:Zoe,setmn:Qoe,sext:ese,Sfr:tse,sfr:nse,sfrown:rse,sharp:ise,SHCHcy:ose,shchcy:sse,SHcy:lse,shcy:ase,ShortDownArrow:cse,ShortLeftArrow:use,shortmid:fse,shortparallel:dse,ShortRightArrow:hse,ShortUpArrow:pse,shy:mse,Sigma:gse,sigma:vse,sigmaf:yse,sigmav:bse,sim:wse,simdot:xse,sime:Sse,simeq:_se,simg:kse,simgE:Tse,siml:Cse,simlE:Ese,simne:Ase,simplus:Mse,simrarr:$se,slarr:Nse,SmallCircle:Ose,smallsetminus:Lse,smashp:Rse,smeparsl:Pse,smid:Ise,smile:Dse,smt:Fse,smte:zse,smtes:Bse,SOFTcy:Hse,softcy:jse,solbar:Wse,solb:Use,sol:qse,Sopf:Vse,sopf:Gse,spades:Kse,spadesuit:Yse,spar:Xse,sqcap:Jse,sqcaps:Zse,sqcup:Qse,sqcups:ele,Sqrt:tle,sqsub:nle,sqsube:rle,sqsubset:ile,sqsubseteq:ole,sqsup:sle,sqsupe:lle,sqsupset:ale,sqsupseteq:cle,square:ule,Square:fle,SquareIntersection:dle,SquareSubset:hle,SquareSubsetEqual:ple,SquareSuperset:mle,SquareSupersetEqual:gle,SquareUnion:vle,squarf:yle,squ:ble,squf:wle,srarr:xle,Sscr:Sle,sscr:_le,ssetmn:kle,ssmile:Tle,sstarf:Cle,Star:Ele,star:Ale,starf:Mle,straightepsilon:$le,straightphi:Nle,strns:Ole,sub:Lle,Sub:Rle,subdot:Ple,subE:Ile,sube:Dle,subedot:Fle,submult:zle,subnE:Ble,subne:Hle,subplus:jle,subrarr:Wle,subset:Ule,Subset:qle,subseteq:Vle,subseteqq:Gle,SubsetEqual:Kle,subsetneq:Yle,subsetneqq:Xle,subsim:Jle,subsub:Zle,subsup:Qle,succapprox:eae,succ:tae,succcurlyeq:nae,Succeeds:rae,SucceedsEqual:iae,SucceedsSlantEqual:oae,SucceedsTilde:sae,succeq:lae,succnapprox:aae,succneqq:cae,succnsim:uae,succsim:fae,SuchThat:dae,sum:hae,Sum:pae,sung:mae,sup1:gae,sup2:vae,sup3:yae,sup:bae,Sup:wae,supdot:xae,supdsub:Sae,supE:_ae,supe:kae,supedot:Tae,Superset:Cae,SupersetEqual:Eae,suphsol:Aae,suphsub:Mae,suplarr:$ae,supmult:Nae,supnE:Oae,supne:Lae,supplus:Rae,supset:Pae,Supset:Iae,supseteq:Dae,supseteqq:Fae,supsetneq:zae,supsetneqq:Bae,supsim:Hae,supsub:jae,supsup:Wae,swarhk:Uae,swarr:qae,swArr:Vae,swarrow:Gae,swnwar:Kae,szlig:Yae,Tab:Xae,target:Jae,Tau:Zae,tau:Qae,tbrk:ece,Tcaron:tce,tcaron:nce,Tcedil:rce,tcedil:ice,Tcy:oce,tcy:sce,tdot:lce,telrec:ace,Tfr:cce,tfr:uce,there4:fce,therefore:dce,Therefore:hce,Theta:pce,theta:mce,thetasym:gce,thetav:vce,thickapprox:yce,thicksim:bce,ThickSpace:wce,ThinSpace:xce,thinsp:Sce,thkap:_ce,thksim:kce,THORN:Tce,thorn:Cce,tilde:Ece,Tilde:Ace,TildeEqual:Mce,TildeFullEqual:$ce,TildeTilde:Nce,timesbar:Oce,timesb:Lce,times:Rce,timesd:Pce,tint:Ice,toea:Dce,topbot:Fce,topcir:zce,top:Bce,Topf:Hce,topf:jce,topfork:Wce,tosa:Uce,tprime:qce,trade:Vce,TRADE:Gce,triangle:Kce,triangledown:Yce,triangleleft:Xce,trianglelefteq:Jce,triangleq:Zce,triangleright:Qce,trianglerighteq:eue,tridot:tue,trie:nue,triminus:rue,TripleDot:iue,triplus:oue,trisb:sue,tritime:lue,trpezium:aue,Tscr:cue,tscr:uue,TScy:fue,tscy:due,TSHcy:hue,tshcy:pue,Tstrok:mue,tstrok:gue,twixt:vue,twoheadleftarrow:yue,twoheadrightarrow:bue,Uacute:wue,uacute:xue,uarr:Sue,Uarr:_ue,uArr:kue,Uarrocir:Tue,Ubrcy:Cue,ubrcy:Eue,Ubreve:Aue,ubreve:Mue,Ucirc:$ue,ucirc:Nue,Ucy:Oue,ucy:Lue,udarr:Rue,Udblac:Pue,udblac:Iue,udhar:Due,ufisht:Fue,Ufr:zue,ufr:Bue,Ugrave:Hue,ugrave:jue,uHar:Wue,uharl:Uue,uharr:que,uhblk:Vue,ulcorn:Gue,ulcorner:Kue,ulcrop:Yue,ultri:Xue,Umacr:Jue,umacr:Zue,uml:Que,UnderBar:efe,UnderBrace:tfe,UnderBracket:nfe,UnderParenthesis:rfe,Union:ife,UnionPlus:ofe,Uogon:sfe,uogon:lfe,Uopf:afe,uopf:cfe,UpArrowBar:ufe,uparrow:ffe,UpArrow:dfe,Uparrow:hfe,UpArrowDownArrow:pfe,updownarrow:mfe,UpDownArrow:gfe,Updownarrow:vfe,UpEquilibrium:yfe,upharpoonleft:bfe,upharpoonright:wfe,uplus:xfe,UpperLeftArrow:Sfe,UpperRightArrow:_fe,upsi:kfe,Upsi:Tfe,upsih:Cfe,Upsilon:Efe,upsilon:Afe,UpTeeArrow:Mfe,UpTee:$fe,upuparrows:Nfe,urcorn:Ofe,urcorner:Lfe,urcrop:Rfe,Uring:Pfe,uring:Ife,urtri:Dfe,Uscr:Ffe,uscr:zfe,utdot:Bfe,Utilde:Hfe,utilde:jfe,utri:Wfe,utrif:Ufe,uuarr:qfe,Uuml:Vfe,uuml:Gfe,uwangle:Kfe,vangrt:Yfe,varepsilon:Xfe,varkappa:Jfe,varnothing:Zfe,varphi:Qfe,varpi:ede,varpropto:tde,varr:nde,vArr:rde,varrho:ide,varsigma:ode,varsubsetneq:sde,varsubsetneqq:lde,varsupsetneq:ade,varsupsetneqq:cde,vartheta:ude,vartriangleleft:fde,vartriangleright:dde,vBar:hde,Vbar:pde,vBarv:mde,Vcy:gde,vcy:vde,vdash:yde,vDash:bde,Vdash:wde,VDash:xde,Vdashl:Sde,veebar:_de,vee:kde,Vee:Tde,veeeq:Cde,vellip:Ede,verbar:Ade,Verbar:Mde,vert:$de,Vert:Nde,VerticalBar:Ode,VerticalLine:Lde,VerticalSeparator:Rde,VerticalTilde:Pde,VeryThinSpace:Ide,Vfr:Dde,vfr:Fde,vltri:zde,vnsub:Bde,vnsup:Hde,Vopf:jde,vopf:Wde,vprop:Ude,vrtri:qde,Vscr:Vde,vscr:Gde,vsubnE:Kde,vsubne:Yde,vsupnE:Xde,vsupne:Jde,Vvdash:Zde,vzigzag:Qde,Wcirc:ehe,wcirc:the,wedbar:nhe,wedge:rhe,Wedge:ihe,wedgeq:ohe,weierp:she,Wfr:lhe,wfr:ahe,Wopf:che,wopf:uhe,wp:fhe,wr:dhe,wreath:hhe,Wscr:phe,wscr:mhe,xcap:ghe,xcirc:vhe,xcup:yhe,xdtri:bhe,Xfr:whe,xfr:xhe,xharr:She,xhArr:_he,Xi:khe,xi:The,xlarr:Che,xlArr:Ehe,xmap:Ahe,xnis:Mhe,xodot:$he,Xopf:Nhe,xopf:Ohe,xoplus:Lhe,xotime:Rhe,xrarr:Phe,xrArr:Ihe,Xscr:Dhe,xscr:Fhe,xsqcup:zhe,xuplus:Bhe,xutri:Hhe,xvee:jhe,xwedge:Whe,Yacute:Uhe,yacute:qhe,YAcy:Vhe,yacy:Ghe,Ycirc:Khe,ycirc:Yhe,Ycy:Xhe,ycy:Jhe,yen:Zhe,Yfr:Qhe,yfr:epe,YIcy:tpe,yicy:npe,Yopf:rpe,yopf:ipe,Yscr:ope,yscr:spe,YUcy:lpe,yucy:ape,yuml:cpe,Yuml:upe,Zacute:fpe,zacute:dpe,Zcaron:hpe,zcaron:ppe,Zcy:mpe,zcy:gpe,Zdot:vpe,zdot:ype,zeetrf:bpe,ZeroWidthSpace:wpe,Zeta:xpe,zeta:Spe,zfr:_pe,Zfr:kpe,ZHcy:Tpe,zhcy:Cpe,zigrarr:Epe,zopf:Ape,Zopf:Mpe,Zscr:$pe,zscr:Npe,zwj:Ope,zwnj:Lpe},Rpe="Á",Ppe="á",Ipe="Â",Dpe="â",Fpe="´",zpe="Æ",Bpe="æ",Hpe="À",jpe="à",Wpe="&",Upe="&",qpe="Å",Vpe="å",Gpe="Ã",Kpe="ã",Ype="Ä",Xpe="ä",Jpe="¦",Zpe="Ç",Qpe="ç",eme="¸",tme="¢",nme="©",rme="©",ime="¤",ome="°",sme="÷",lme="É",ame="é",cme="Ê",ume="ê",fme="È",dme="è",hme="Ð",pme="ð",mme="Ë",gme="ë",vme="½",yme="¼",bme="¾",wme=">",xme=">",Sme="Í",_me="í",kme="Î",Tme="î",Cme="¡",Eme="Ì",Ame="ì",Mme="¿",$me="Ï",Nme="ï",Ome="«",Lme="<",Rme="<",Pme="¯",Ime="µ",Dme="·",Fme=" ",zme="¬",Bme="Ñ",Hme="ñ",jme="Ó",Wme="ó",Ume="Ô",qme="ô",Vme="Ò",Gme="ò",Kme="ª",Yme="º",Xme="Ø",Jme="ø",Zme="Õ",Qme="õ",ege="Ö",tge="ö",nge="¶",rge="±",ige="£",oge='"',sge='"',lge="»",age="®",cge="®",uge="§",fge="",dge="¹",hge="²",pge="³",mge="ß",gge="Þ",vge="þ",yge="×",bge="Ú",wge="ú",xge="Û",Sge="û",_ge="Ù",kge="ù",Tge="¨",Cge="Ü",Ege="ü",Age="Ý",Mge="ý",$ge="¥",Nge="ÿ",Oge={Aacute:Rpe,aacute:Ppe,Acirc:Ipe,acirc:Dpe,acute:Fpe,AElig:zpe,aelig:Bpe,Agrave:Hpe,agrave:jpe,amp:Wpe,AMP:Upe,Aring:qpe,aring:Vpe,Atilde:Gpe,atilde:Kpe,Auml:Ype,auml:Xpe,brvbar:Jpe,Ccedil:Zpe,ccedil:Qpe,cedil:eme,cent:tme,copy:nme,COPY:rme,curren:ime,deg:ome,divide:sme,Eacute:lme,eacute:ame,Ecirc:cme,ecirc:ume,Egrave:fme,egrave:dme,ETH:hme,eth:pme,Euml:mme,euml:gme,frac12:vme,frac14:yme,frac34:bme,gt:wme,GT:xme,Iacute:Sme,iacute:_me,Icirc:kme,icirc:Tme,iexcl:Cme,Igrave:Eme,igrave:Ame,iquest:Mme,Iuml:$me,iuml:Nme,laquo:Ome,lt:Lme,LT:Rme,macr:Pme,micro:Ime,middot:Dme,nbsp:Fme,not:zme,Ntilde:Bme,ntilde:Hme,Oacute:jme,oacute:Wme,Ocirc:Ume,ocirc:qme,Ograve:Vme,ograve:Gme,ordf:Kme,ordm:Yme,Oslash:Xme,oslash:Jme,Otilde:Zme,otilde:Qme,Ouml:ege,ouml:tge,para:nge,plusmn:rge,pound:ige,quot:oge,QUOT:sge,raquo:lge,reg:age,REG:cge,sect:uge,shy:fge,sup1:dge,sup2:hge,sup3:pge,szlig:mge,THORN:gge,thorn:vge,times:yge,Uacute:bge,uacute:wge,Ucirc:xge,ucirc:Sge,Ugrave:_ge,ugrave:kge,uml:Tge,Uuml:Cge,uuml:Ege,Yacute:Age,yacute:Mge,yen:$ge,yuml:Nge},Lge="&",Rge="'",Pge=">",Ige="<",Dge='"',Rk={amp:Lge,apos:Rge,gt:Pge,lt:Ige,quot:Dge};var sl={};const Fge={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 _w;function zge(){if(_w)return sl;_w=1;var e=sl&&sl.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(sl,"__esModule",{value:!0});var t=e(Fge),n=String.fromCodePoint||function(o){var l="";return o>65535&&(o-=65536,l+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),l+=String.fromCharCode(o),l};function r(o){return o>=55296&&o<=57343||o>1114111?"�":(o in t.default&&(o=t.default[o]),n(o))}return sl.default=r,sl}var kw;function Tw(){if(kw)return Br;kw=1;var e=Br&&Br.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Br,"__esModule",{value:!0}),Br.decodeHTML=Br.decodeHTMLStrict=Br.decodeXML=void 0;var t=e(Lk),n=e(Oge),r=e(Rk),o=e(zge()),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Br.decodeXML=a(r.default),Br.decodeHTMLStrict=a(t.default);function a(p){var m=d(p);return function(g){return String(g).replace(l,m)}}var f=function(p,m){return p<m?1:-1};Br.decodeHTML=(function(){for(var p=Object.keys(n.default).sort(f),m=Object.keys(t.default).sort(f),g=0,y=0;g<m.length;g++)p[y]===m[g]?(m[g]+=";?",y++):m[g]+=";";var w=new RegExp("&(?:"+m.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),E=d(t.default);function _(k){return k.substr(-1)!==";"&&(k+=";"),E(k)}return function(k){return String(k).replace(w,_)}})();function d(p){return function(g){if(g.charAt(1)==="#"){var y=g.charAt(2);return y==="X"||y==="x"?o.default(parseInt(g.substr(3),16)):o.default(parseInt(g.substr(2),10))}return p[g.slice(1,-1)]||g}}return Br}var zn={},Cw;function Ew(){if(Cw)return zn;Cw=1;var e=zn&&zn.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(zn,"__esModule",{value:!0}),zn.escapeUTF8=zn.escape=zn.encodeNonAsciiHTML=zn.encodeHTML=zn.encodeXML=void 0;var t=e(Rk),n=f(t.default),r=d(n);zn.encodeXML=k(n);var o=e(Lk),l=f(o.default),a=d(l);zn.encodeHTML=y(l,a),zn.encodeNonAsciiHTML=k(l);function f(A){return Object.keys(A).sort().reduce(function(N,I){return N[A[I]]="&"+I+";",N},{})}function d(A){for(var N=[],I=[],$=0,D=Object.keys(A);$<D.length;$++){var U=D[$];U.length===1?N.push("\\"+U):I.push(U)}N.sort();for(var J=0;J<N.length-1;J++){for(var ee=J;ee<N.length-1&&N[ee].charCodeAt(1)+1===N[ee+1].charCodeAt(1);)ee+=1;var X=1+ee-J;X<3||N.splice(J,X,N[J]+"-"+N[ee])}return I.unshift("["+N.join("")+"]"),new RegExp(I.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,m=String.prototype.codePointAt!=null?function(A){return A.codePointAt(0)}:function(A){return(A.charCodeAt(0)-55296)*1024+A.charCodeAt(1)-56320+65536};function g(A){return"&#x"+(A.length>1?m(A):A.charCodeAt(0)).toString(16).toUpperCase()+";"}function y(A,N){return function(I){return I.replace(N,function($){return A[$]}).replace(p,g)}}var w=new RegExp(r.source+"|"+p.source,"g");function E(A){return A.replace(w,g)}zn.escape=E;function _(A){return A.replace(r,g)}zn.escapeUTF8=_;function k(A){return function(N){return N.replace(w,function(I){return A[I]||g(I)})}}return zn}var Aw;function Bge(){return Aw||(Aw=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Tw(),n=Ew();function r(d,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(d)}e.decode=r;function o(d,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(d)}e.decodeStrict=o;function l(d,p){return(!p||p<=0?n.encodeXML:n.encodeHTML)(d)}e.encode=l;var a=Ew();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return a.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return a.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return a.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return a.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return a.encodeHTML}});var f=Tw();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return f.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return f.decodeXML}})})(yp)),yp}var bp,Mw;function Hge(){if(Mw)return bp;Mw=1;function e(P,L){if(!(P instanceof L))throw new TypeError("Cannot call a class as a function")}function t(P,L){for(var T=0;T<L.length;T++){var S=L[T];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(P,S.key,S)}}function n(P,L,T){return L&&t(P.prototype,L),P}function r(P,L){var T=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!T){if(Array.isArray(P)||(T=o(P))||L){T&&(P=T);var S=0,R=function(){};return{s:R,n:function(){return S>=P.length?{done:!0}:{done:!1,value:P[S++]}},e:function(je){throw je},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
78
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,ae=!1,ve;return{s:function(){T=T.call(P)},n:function(){var je=T.next();return z=je.done,je},e:function(je){ae=!0,ve=je},f:function(){try{!z&&T.return!=null&&T.return()}finally{if(ae)throw ve}}}}function o(P,L){if(P){if(typeof P=="string")return l(P,L);var T=Object.prototype.toString.call(P).slice(8,-1);if(T==="Object"&&P.constructor&&(T=P.constructor.name),T==="Map"||T==="Set")return Array.from(P);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return l(P,L)}}function l(P,L){(L==null||L>P.length)&&(L=P.length);for(var T=0,S=new Array(L);T<L;T++)S[T]=P[T];return S}var a=Bge(),f={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:d()};function d(){var P={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 k(0,5).forEach(function(L){k(0,5).forEach(function(T){k(0,5).forEach(function(S){return p(L,T,S,P)})})}),k(0,23).forEach(function(L){var T=L+232,S=m(L*10+8);P[T]="#"+S+S+S}),P}function p(P,L,T,S){var R=16+P*36+L*6+T,z=P>0?P*40+55:0,ae=L>0?L*40+55:0,ve=T>0?T*40+55:0;S[R]=g([z,ae,ve])}function m(P){for(var L=P.toString(16);L.length<2;)L="0"+L;return L}function g(P){var L=[],T=r(P),S;try{for(T.s();!(S=T.n()).done;){var R=S.value;L.push(m(R))}}catch(z){T.e(z)}finally{T.f()}return"#"+L.join("")}function y(P,L,T,S){var R;return L==="text"?R=I(T,S):L==="display"?R=E(P,T,S):L==="xterm256Foreground"?R=U(P,S.colors[T]):L==="xterm256Background"?R=J(P,S.colors[T]):L==="rgb"&&(R=w(P,T)),R}function w(P,L){L=L.substring(2).slice(0,-1);var T=+L.substr(0,2),S=L.substring(5).split(";"),R=S.map(function(z){return("0"+Number(z).toString(16)).substr(-2)}).join("");return D(P,(T===38?"color:#":"background-color:#")+R)}function E(P,L,T){L=parseInt(L,10);var S={"-1":function(){return"<br/>"},0:function(){return P.length&&_(P)},1:function(){return $(P,"b")},3:function(){return $(P,"i")},4:function(){return $(P,"u")},8:function(){return D(P,"display:none")},9:function(){return $(P,"strike")},22:function(){return D(P,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ee(P,"i")},24:function(){return ee(P,"u")},39:function(){return U(P,T.fg)},49:function(){return J(P,T.bg)},53:function(){return D(P,"text-decoration:overline")}},R;return S[L]?R=S[L]():4<L&&L<7?R=$(P,"blink"):29<L&&L<38?R=U(P,T.colors[L-30]):39<L&&L<48?R=J(P,T.colors[L-40]):89<L&&L<98?R=U(P,T.colors[8+(L-90)]):99<L&&L<108&&(R=J(P,T.colors[8+(L-100)])),R}function _(P){var L=P.slice(0);return P.length=0,L.reverse().map(function(T){return"</"+T+">"}).join("")}function k(P,L){for(var T=[],S=P;S<=L;S++)T.push(S);return T}function A(P){return function(L){return(P===null||L.category!==P)&&P!=="all"}}function N(P){P=parseInt(P,10);var L=null;return P===0?L="all":P===1?L="bold":2<P&&P<5?L="underline":4<P&&P<7?L="blink":P===8?L="hide":P===9?L="strike":29<P&&P<38||P===39||89<P&&P<98?L="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&(L="background-color"),L}function I(P,L){return L.escapeXML?a.encodeXML(P):P}function $(P,L,T){return T||(T=""),P.push(L),"<".concat(L).concat(T?' style="'.concat(T,'"'):"",">")}function D(P,L){return $(P,"span",L)}function U(P,L){return $(P,"span","color:"+L)}function J(P,L){return $(P,"span","background-color:"+L)}function ee(P,L){var T;if(P.slice(-1)[0]===L&&(T=P.pop()),T)return"</"+L+">"}function X(P,L,T){var S=!1,R=3;function z(){return""}function ae(W,ne){return T("xterm256Foreground",ne),""}function ve(W,ne){return T("xterm256Background",ne),""}function _e(W){return L.newline?T("display",-1):T("text",W),""}function je(W,ne){S=!0,ne.trim().length===0&&(ne="0"),ne=ne.trimRight(";").split(";");var he=r(ne),pe;try{for(he.s();!(pe=he.n()).done;){var ge=pe.value;T("display",ge)}}catch(Ae){he.e(Ae)}finally{he.f()}return""}function Me(W){return T("text",W),""}function Ke(W){return T("rgb",W),""}var qe=[{pattern:/^\x08+/,sub:z},{pattern:/^\x1b\[[012]?K/,sub:z},{pattern:/^\x1b\[\(B/,sub:z},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ke},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ae},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ve},{pattern:/^\n/,sub:_e},{pattern:/^\r+\n/,sub:_e},{pattern:/^\r/,sub:_e},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:je},{pattern:/^\x1b\[\d?J/,sub:z},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:z},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:z},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Me}];function He(W,ne){ne>R&&S||(S=!1,P=P.replace(W.pattern,W.sub))}var Re=[],B=P,Q=B.length;e:for(;Q>0;){for(var ie=0,le=0,ce=qe.length;le<ce;ie=++le){var F=qe[ie];if(He(F,ie),P.length!==Q){Q=P.length;continue e}}if(P.length===Q)break;Re.push(0),Q=P.length}return Re}function V(P,L,T){return L!=="text"&&(P=P.filter(A(N(T))),P.push({token:L,data:T,category:N(T)})),P}var q=(function(){function P(L){e(this,P),L=L||{},L.colors&&(L.colors=Object.assign({},f.colors,L.colors)),this.options=Object.assign({},f,L),this.stack=[],this.stickyStack=[]}return n(P,[{key:"toHtml",value:function(T){var S=this;T=typeof T=="string"?[T]:T;var R=this.stack,z=this.options,ae=[];return this.stickyStack.forEach(function(ve){var _e=y(R,ve.token,ve.data,z);_e&&ae.push(_e)}),X(T.join(""),z,function(ve,_e){var je=y(R,ve,_e,z);je&&ae.push(je),z.stream&&(S.stickyStack=V(S.stickyStack,ve,_e))}),R.length&&ae.push(_(R)),ae.join("")}}]),P})();return bp=q,bp}var jge=Hge();const Wge=Gg(jge);function tc(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Uge(e,t){return t&&e.endsWith(t)}async function Kg(e,t,n){const r=encodeURI(`${e}:${t}:${n}`);await fetch(`/__open-in-editor?file=${r}`)}function Yg(e){return new Wge({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function qge(e){return e===null||typeof e!="function"&&typeof e!="object"}function Pk(e){let t=e;if(qge(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const n=new Error("unknown error");t={message:n.message,stack:n.stack,name:"",stacks:[]}}return t.stacks=TP(t.stack||"",{ignoreStackEntries:[]}),t}function Vge(e,t){let n="";return t.message?.includes("\x1B")&&(n=`<b>${t.name}</b>: ${e.toHtml(tc(t.message))}`),t.stack?.includes("\x1B")&&(n.length>0?n+=e.toHtml(tc(t.stack)):n=`<b>${t.name}</b>: ${t.message}${e.toHtml(tc(t.stack))}`),n.length>0?n:null}function Ik(e,t){const n=Yg(e);return t.map(r=>{const o=r.result;if(!o||o.htmlError)return r;const l=o.errors?.map(a=>Vge(n,a)).filter(a=>a!=null).join("<br><br>");return l?.length&&(o.htmlError=l),r})}const Uc=dL("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),Wo=$s(Uc,"file"),_n=$s(Uc,"view"),Dk=$s(Uc,"line"),Fk=$s(Uc,"column"),gi=$s(Uc,"test");var $w={exports:{}},Nw;function Xg(){return Nw||(Nw=1,(function(e,t){(function(n){n(Vo())})(function(n){n.defineMode("javascript",function(r,o){var l=r.indentUnit,a=o.statementIndent,f=o.jsonld,d=o.json||f,p=o.trackScope!==!1,m=o.typescript,g=o.wordCharacters||/[\w$\xa1-\uffff]/,y=(function(){function O(sn){return{type:sn,style:"keyword"}}var G=O("keyword a"),ye=O("keyword b"),ke=O("keyword c"),de=O("keyword d"),De=O("operator"),gt={type:"atom",style:"atom"};return{if:O("if"),while:G,with:G,else:ye,do:ye,try:ye,finally:ye,return:de,break:de,continue:de,new:O("new"),delete:ke,void:ke,throw:ke,debugger:O("debugger"),var:O("var"),const:O("var"),let:O("var"),function:O("function"),catch:O("catch"),for:O("for"),switch:O("switch"),case:O("case"),default:O("default"),in:De,typeof:De,instanceof:De,true:gt,false:gt,null:gt,undefined:gt,NaN:gt,Infinity:gt,this:O("this"),class:O("class"),super:O("atom"),yield:ke,export:O("export"),import:O("import"),extends:ke,await:ke}})(),w=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function _(O){for(var G=!1,ye,ke=!1;(ye=O.next())!=null;){if(!G){if(ye=="/"&&!ke)return;ye=="["?ke=!0:ke&&ye=="]"&&(ke=!1)}G=!G&&ye=="\\"}}var k,A;function N(O,G,ye){return k=O,A=ye,G}function I(O,G){var ye=O.next();if(ye=='"'||ye=="'")return G.tokenize=$(ye),G.tokenize(O,G);if(ye=="."&&O.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return N("number","number");if(ye=="."&&O.match(".."))return N("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ye))return N(ye);if(ye=="="&&O.eat(">"))return N("=>","operator");if(ye=="0"&&O.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return N("number","number");if(/\d/.test(ye))return O.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),N("number","number");if(ye=="/")return O.eat("*")?(G.tokenize=D,D(O,G)):O.eat("/")?(O.skipToEnd(),N("comment","comment")):fr(O,G,1)?(_(O),O.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),N("regexp","string-2")):(O.eat("="),N("operator","operator",O.current()));if(ye=="`")return G.tokenize=U,U(O,G);if(ye=="#"&&O.peek()=="!")return O.skipToEnd(),N("meta","meta");if(ye=="#"&&O.eatWhile(g))return N("variable","property");if(ye=="<"&&O.match("!--")||ye=="-"&&O.match("->")&&!/\S/.test(O.string.slice(0,O.start)))return O.skipToEnd(),N("comment","comment");if(w.test(ye))return(ye!=">"||!G.lexical||G.lexical.type!=">")&&(O.eat("=")?(ye=="!"||ye=="=")&&O.eat("="):/[<>*+\-|&?]/.test(ye)&&(O.eat(ye),ye==">"&&O.eat(ye))),ye=="?"&&O.eat(".")?N("."):N("operator","operator",O.current());if(g.test(ye)){O.eatWhile(g);var ke=O.current();if(G.lastType!="."){if(y.propertyIsEnumerable(ke)){var de=y[ke];return N(de.type,de.style,ke)}if(ke=="async"&&O.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return N("async","keyword",ke)}return N("variable","variable",ke)}}function $(O){return function(G,ye){var ke=!1,de;if(f&&G.peek()=="@"&&G.match(E))return ye.tokenize=I,N("jsonld-keyword","meta");for(;(de=G.next())!=null&&!(de==O&&!ke);)ke=!ke&&de=="\\";return ke||(ye.tokenize=I),N("string","string")}}function D(O,G){for(var ye=!1,ke;ke=O.next();){if(ke=="/"&&ye){G.tokenize=I;break}ye=ke=="*"}return N("comment","comment")}function U(O,G){for(var ye=!1,ke;(ke=O.next())!=null;){if(!ye&&(ke=="`"||ke=="$"&&O.eat("{"))){G.tokenize=I;break}ye=!ye&&ke=="\\"}return N("quasi","string-2",O.current())}var J="([{}])";function ee(O,G){G.fatArrowAt&&(G.fatArrowAt=null);var ye=O.string.indexOf("=>",O.start);if(!(ye<0)){if(m){var ke=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(O.string.slice(O.start,ye));ke&&(ye=ke.index)}for(var de=0,De=!1,gt=ye-1;gt>=0;--gt){var sn=O.string.charAt(gt),Ln=J.indexOf(sn);if(Ln>=0&&Ln<3){if(!de){++gt;break}if(--de==0){sn=="("&&(De=!0);break}}else if(Ln>=3&&Ln<6)++de;else if(g.test(sn))De=!0;else if(/["'\/`]/.test(sn))for(;;--gt){if(gt==0)return;var zs=O.string.charAt(gt-1);if(zs==sn&&O.string.charAt(gt-2)!="\\"){gt--;break}}else if(De&&!de){++gt;break}}De&&!de&&(G.fatArrowAt=gt)}}var X={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function V(O,G,ye,ke,de,De){this.indented=O,this.column=G,this.type=ye,this.prev=de,this.info=De,ke!=null&&(this.align=ke)}function q(O,G){if(!p)return!1;for(var ye=O.localVars;ye;ye=ye.next)if(ye.name==G)return!0;for(var ke=O.context;ke;ke=ke.prev)for(var ye=ke.vars;ye;ye=ye.next)if(ye.name==G)return!0}function P(O,G,ye,ke,de){var De=O.cc;for(L.state=O,L.stream=de,L.marked=null,L.cc=De,L.style=G,O.lexical.hasOwnProperty("align")||(O.lexical.align=!0);;){var gt=De.length?De.pop():d?ce:ie;if(gt(ye,ke)){for(;De.length&&De[De.length-1].lex;)De.pop()();return L.marked?L.marked:ye=="variable"&&q(O,ke)?"variable-2":G}}}var L={state:null,marked:null,cc:null};function T(){for(var O=arguments.length-1;O>=0;O--)L.cc.push(arguments[O])}function S(){return T.apply(null,arguments),!0}function R(O,G){for(var ye=G;ye;ye=ye.next)if(ye.name==O)return!0;return!1}function z(O){var G=L.state;if(L.marked="def",!!p){if(G.context){if(G.lexical.info=="var"&&G.context&&G.context.block){var ye=ae(O,G.context);if(ye!=null){G.context=ye;return}}else if(!R(O,G.localVars)){G.localVars=new je(O,G.localVars);return}}o.globalVars&&!R(O,G.globalVars)&&(G.globalVars=new je(O,G.globalVars))}}function ae(O,G){if(G)if(G.block){var ye=ae(O,G.prev);return ye?ye==G.prev?G:new _e(ye,G.vars,!0):null}else return R(O,G.vars)?G:new _e(G.prev,new je(O,G.vars),!1);else return null}function ve(O){return O=="public"||O=="private"||O=="protected"||O=="abstract"||O=="readonly"}function _e(O,G,ye){this.prev=O,this.vars=G,this.block=ye}function je(O,G){this.name=O,this.next=G}var Me=new je("this",new je("arguments",null));function Ke(){L.state.context=new _e(L.state.context,L.state.localVars,!1),L.state.localVars=Me}function qe(){L.state.context=new _e(L.state.context,L.state.localVars,!0),L.state.localVars=null}Ke.lex=qe.lex=!0;function He(){L.state.localVars=L.state.context.vars,L.state.context=L.state.context.prev}He.lex=!0;function Re(O,G){var ye=function(){var ke=L.state,de=ke.indented;if(ke.lexical.type=="stat")de=ke.lexical.indented;else for(var De=ke.lexical;De&&De.type==")"&&De.align;De=De.prev)de=De.indented;ke.lexical=new V(de,L.stream.column(),O,null,ke.lexical,G)};return ye.lex=!0,ye}function B(){var O=L.state;O.lexical.prev&&(O.lexical.type==")"&&(O.indented=O.lexical.indented),O.lexical=O.lexical.prev)}B.lex=!0;function Q(O){function G(ye){return ye==O?S():O==";"||ye=="}"||ye==")"||ye=="]"?T():S(G)}return G}function ie(O,G){return O=="var"?S(Re("vardef",G),Os,Q(";"),B):O=="keyword a"?S(Re("form"),W,ie,B):O=="keyword b"?S(Re("form"),ie,B):O=="keyword d"?L.stream.match(/^\s*$/,!1)?S():S(Re("stat"),he,Q(";"),B):O=="debugger"?S(Q(";")):O=="{"?S(Re("}"),qe,Zt,B,He):O==";"?S():O=="if"?(L.state.lexical.info=="else"&&L.state.cc[L.state.cc.length-1]==B&&L.state.cc.pop()(),S(Re("form"),W,ie,B,Ls)):O=="function"?S(kr):O=="for"?S(Re("form"),qe,Jc,ie,He,B):O=="class"||m&&G=="interface"?(L.marked="keyword",S(Re("form",O=="class"?O:G),Rs,B)):O=="variable"?m&&G=="declare"?(L.marked="keyword",S(ie)):m&&(G=="module"||G=="enum"||G=="type")&&L.stream.match(/^\s*\w/,!1)?(L.marked="keyword",G=="enum"?S(Ue):G=="type"?S(Zc,Q("operator"),at,Q(";")):S(Re("form"),On,Q("{"),Re("}"),Zt,B,B)):m&&G=="namespace"?(L.marked="keyword",S(Re("form"),ce,ie,B)):m&&G=="abstract"?(L.marked="keyword",S(ie)):S(Re("stat"),Ie):O=="switch"?S(Re("form"),W,Q("{"),Re("}","switch"),qe,Zt,B,B,He):O=="case"?S(ce,Q(":")):O=="default"?S(Q(":")):O=="catch"?S(Re("form"),Ke,le,ie,B,He):O=="export"?S(Re("stat"),Ps,B):O=="import"?S(Re("stat"),so,B):O=="async"?S(ie):G=="@"?S(ce,ie):T(Re("stat"),ce,Q(";"),B)}function le(O){if(O=="(")return S(Lr,Q(")"))}function ce(O,G){return ne(O,G,!1)}function F(O,G){return ne(O,G,!0)}function W(O){return O!="("?T():S(Re(")"),he,Q(")"),B)}function ne(O,G,ye){if(L.state.fatArrowAt==L.stream.start){var ke=ye?be:Se;if(O=="(")return S(Ke,Re(")"),ft(Lr,")"),B,Q("=>"),ke,He);if(O=="variable")return T(Ke,On,Q("=>"),ke,He)}var de=ye?ge:pe;return X.hasOwnProperty(O)?S(de):O=="function"?S(kr,de):O=="class"||m&&G=="interface"?(L.marked="keyword",S(Re("form"),th,B)):O=="keyword c"||O=="async"?S(ye?F:ce):O=="("?S(Re(")"),he,Q(")"),B,de):O=="operator"||O=="spread"?S(ye?F:ce):O=="["?S(Re("]"),Bt,B,de):O=="{"?on(ut,"}",null,de):O=="quasi"?T(Ae,de):O=="new"?S(te(ye)):S()}function he(O){return O.match(/[;\}\)\],]/)?T():T(ce)}function pe(O,G){return O==","?S(he):ge(O,G,!1)}function ge(O,G,ye){var ke=ye==!1?pe:ge,de=ye==!1?ce:F;if(O=="=>")return S(Ke,ye?be:Se,He);if(O=="operator")return/\+\+|--/.test(G)||m&&G=="!"?S(ke):m&&G=="<"&&L.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(Re(">"),ft(at,">"),B,ke):G=="?"?S(ce,Q(":"),de):S(de);if(O=="quasi")return T(Ae,ke);if(O!=";"){if(O=="(")return on(F,")","call",ke);if(O==".")return S(tt,ke);if(O=="[")return S(Re("]"),he,Q("]"),B,ke);if(m&&G=="as")return L.marked="keyword",S(at,ke);if(O=="regexp")return L.state.lastType=L.marked="operator",L.stream.backUp(L.stream.pos-L.stream.start-1),S(de)}}function Ae(O,G){return O!="quasi"?T():G.slice(G.length-2)!="${"?S(Ae):S(he,$e)}function $e(O){if(O=="}")return L.marked="string-2",L.state.tokenize=U,S(Ae)}function Se(O){return ee(L.stream,L.state),T(O=="{"?ie:ce)}function be(O){return ee(L.stream,L.state),T(O=="{"?ie:F)}function te(O){return function(G){return G=="."?S(O?oe:ue):G=="variable"&&m?S(er,O?ge:pe):T(O?F:ce)}}function ue(O,G){if(G=="target")return L.marked="keyword",S(pe)}function oe(O,G){if(G=="target")return L.marked="keyword",S(ge)}function Ie(O){return O==":"?S(B,ie):T(pe,Q(";"),B)}function tt(O){if(O=="variable")return L.marked="property",S()}function ut(O,G){if(O=="async")return L.marked="property",S(ut);if(O=="variable"||L.style=="keyword"){if(L.marked="property",G=="get"||G=="set")return S(pt);var ye;return m&&L.state.fatArrowAt==L.stream.start&&(ye=L.stream.match(/^\s*:\s*/,!1))&&(L.state.fatArrowAt=L.stream.pos+ye[0].length),S(It)}else{if(O=="number"||O=="string")return L.marked=f?"property":L.style+" property",S(It);if(O=="jsonld-keyword")return S(It);if(m&&ve(G))return L.marked="keyword",S(ut);if(O=="[")return S(ce,Zn,Q("]"),It);if(O=="spread")return S(F,It);if(G=="*")return L.marked="keyword",S(ut);if(O==":")return T(It)}}function pt(O){return O!="variable"?T(It):(L.marked="property",S(kr))}function It(O){if(O==":")return S(F);if(O=="(")return T(kr)}function ft(O,G,ye){function ke(de,De){if(ye?ye.indexOf(de)>-1:de==","){var gt=L.state.lexical;return gt.info=="call"&&(gt.pos=(gt.pos||0)+1),S(function(sn,Ln){return sn==G||Ln==G?T():T(O)},ke)}return de==G||De==G?S():ye&&ye.indexOf(";")>-1?T(O):S(Q(G))}return function(de,De){return de==G||De==G?S():T(O,ke)}}function on(O,G,ye){for(var ke=3;ke<arguments.length;ke++)L.cc.push(arguments[ke]);return S(Re(G,ye),ft(O,G),B)}function Zt(O){return O=="}"?S():T(ie,Zt)}function Zn(O,G){if(m){if(O==":")return S(at);if(G=="?")return S(Zn)}}function ri(O,G){if(m&&(O==":"||G=="in"))return S(at)}function Gt(O){if(m&&O==":")return L.stream.match(/^\s*\w+\s+is\b/,!1)?S(ce,Qn,at):S(at)}function Qn(O,G){if(G=="is")return L.marked="keyword",S()}function at(O,G){if(G=="keyof"||G=="typeof"||G=="infer"||G=="readonly")return L.marked="keyword",S(G=="typeof"?F:at);if(O=="variable"||G=="void")return L.marked="type",S(_r);if(G=="|"||G=="&")return S(at);if(O=="string"||O=="number"||O=="atom")return S(_r);if(O=="[")return S(Re("]"),ft(at,"]",","),B,_r);if(O=="{")return S(Re("}"),Xe,B,_r);if(O=="(")return S(ft(zt,")"),Go,_r);if(O=="<")return S(ft(at,">"),at);if(O=="quasi")return T(yn,_r)}function Go(O){if(O=="=>")return S(at)}function Xe(O){return O.match(/[\}\)\]]/)?S():O==","||O==";"?S(Xe):T(Ci,Xe)}function Ci(O,G){if(O=="variable"||L.style=="keyword")return L.marked="property",S(Ci);if(G=="?"||O=="number"||O=="string")return S(Ci);if(O==":")return S(at);if(O=="[")return S(Q("variable"),ri,Q("]"),Ci);if(O=="(")return T(oo,Ci);if(!O.match(/[;\}\)\],]/))return S()}function yn(O,G){return O!="quasi"?T():G.slice(G.length-2)!="${"?S(yn):S(at,Ft)}function Ft(O){if(O=="}")return L.marked="string-2",L.state.tokenize=U,S(yn)}function zt(O,G){return O=="variable"&&L.stream.match(/^\s*[?:]/,!1)||G=="?"?S(zt):O==":"?S(at):O=="spread"?S(zt):T(at)}function _r(O,G){if(G=="<")return S(Re(">"),ft(at,">"),B,_r);if(G=="|"||O=="."||G=="&")return S(at);if(O=="[")return S(at,Q("]"),_r);if(G=="extends"||G=="implements")return L.marked="keyword",S(at);if(G=="?")return S(at,Q(":"),at)}function er(O,G){if(G=="<")return S(Re(">"),ft(at,">"),B,_r)}function Nr(){return T(at,bn)}function bn(O,G){if(G=="=")return S(at)}function Os(O,G){return G=="enum"?(L.marked="keyword",S(Ue)):T(On,Zn,Or,eh)}function On(O,G){if(m&&ve(G))return L.marked="keyword",S(On);if(O=="variable")return z(G),S();if(O=="spread")return S(On);if(O=="[")return on(Zl,"]");if(O=="{")return on(ro,"}")}function ro(O,G){return O=="variable"&&!L.stream.match(/^\s*:/,!1)?(z(G),S(Or)):(O=="variable"&&(L.marked="property"),O=="spread"?S(On):O=="}"?T():O=="["?S(ce,Q("]"),Q(":"),ro):S(Q(":"),On,Or))}function Zl(){return T(On,Or)}function Or(O,G){if(G=="=")return S(F)}function eh(O){if(O==",")return S(Os)}function Ls(O,G){if(O=="keyword b"&&G=="else")return S(Re("form","else"),ie,B)}function Jc(O,G){if(G=="await")return S(Jc);if(O=="(")return S(Re(")"),Ql,B)}function Ql(O){return O=="var"?S(Os,io):O=="variable"?S(io):T(io)}function io(O,G){return O==")"?S():O==";"?S(io):G=="in"||G=="of"?(L.marked="keyword",S(ce,io)):T(ce,io)}function kr(O,G){if(G=="*")return L.marked="keyword",S(kr);if(O=="variable")return z(G),S(kr);if(O=="(")return S(Ke,Re(")"),ft(Lr,")"),B,Gt,ie,He);if(m&&G=="<")return S(Re(">"),ft(Nr,">"),B,kr)}function oo(O,G){if(G=="*")return L.marked="keyword",S(oo);if(O=="variable")return z(G),S(oo);if(O=="(")return S(Ke,Re(")"),ft(Lr,")"),B,Gt,He);if(m&&G=="<")return S(Re(">"),ft(Nr,">"),B,oo)}function Zc(O,G){if(O=="keyword"||O=="variable")return L.marked="type",S(Zc);if(G=="<")return S(Re(">"),ft(Nr,">"),B)}function Lr(O,G){return G=="@"&&S(ce,Lr),O=="spread"?S(Lr):m&&ve(G)?(L.marked="keyword",S(Lr)):m&&O=="this"?S(Zn,Or):T(On,Zn,Or)}function th(O,G){return O=="variable"?Rs(O,G):Rr(O,G)}function Rs(O,G){if(O=="variable")return z(G),S(Rr)}function Rr(O,G){if(G=="<")return S(Re(">"),ft(Nr,">"),B,Rr);if(G=="extends"||G=="implements"||m&&O==",")return G=="implements"&&(L.marked="keyword"),S(m?at:ce,Rr);if(O=="{")return S(Re("}"),Pr,B)}function Pr(O,G){if(O=="async"||O=="variable"&&(G=="static"||G=="get"||G=="set"||m&&ve(G))&&L.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return L.marked="keyword",S(Pr);if(O=="variable"||L.style=="keyword")return L.marked="property",S(Ko,Pr);if(O=="number"||O=="string")return S(Ko,Pr);if(O=="[")return S(ce,Zn,Q("]"),Ko,Pr);if(G=="*")return L.marked="keyword",S(Pr);if(m&&O=="(")return T(oo,Pr);if(O==";"||O==",")return S(Pr);if(O=="}")return S();if(G=="@")return S(ce,Pr)}function Ko(O,G){if(G=="!"||G=="?")return S(Ko);if(O==":")return S(at,Or);if(G=="=")return S(F);var ye=L.state.lexical.prev,ke=ye&&ye.info=="interface";return T(ke?oo:kr)}function Ps(O,G){return G=="*"?(L.marked="keyword",S(Fs,Q(";"))):G=="default"?(L.marked="keyword",S(ce,Q(";"))):O=="{"?S(ft(Is,"}"),Fs,Q(";")):T(ie)}function Is(O,G){if(G=="as")return L.marked="keyword",S(Q("variable"));if(O=="variable")return T(F,Is)}function so(O){return O=="string"?S():O=="("?T(ce):O=="."?T(pe):T(Ds,ii,Fs)}function Ds(O,G){return O=="{"?on(Ds,"}"):(O=="variable"&&z(G),G=="*"&&(L.marked="keyword"),S(ea))}function ii(O){if(O==",")return S(Ds,ii)}function ea(O,G){if(G=="as")return L.marked="keyword",S(Ds)}function Fs(O,G){if(G=="from")return L.marked="keyword",S(ce)}function Bt(O){return O=="]"?S():T(ft(F,"]"))}function Ue(){return T(Re("form"),On,Q("{"),Re("}"),ft(Ei,"}"),B,B)}function Ei(){return T(On,Or)}function ta(O,G){return O.lastType=="operator"||O.lastType==","||w.test(G.charAt(0))||/[,.]/.test(G.charAt(0))}function fr(O,G,ye){return G.tokenize==I&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(G.lastType)||G.lastType=="quasi"&&/\{\s*$/.test(O.string.slice(0,O.pos-(ye||0)))}return{startState:function(O){var G={tokenize:I,lastType:"sof",cc:[],lexical:new V((O||0)-l,0,"block",!1),localVars:o.localVars,context:o.localVars&&new _e(null,null,!1),indented:O||0};return o.globalVars&&typeof o.globalVars=="object"&&(G.globalVars=o.globalVars),G},token:function(O,G){if(O.sol()&&(G.lexical.hasOwnProperty("align")||(G.lexical.align=!1),G.indented=O.indentation(),ee(O,G)),G.tokenize!=D&&O.eatSpace())return null;var ye=G.tokenize(O,G);return k=="comment"?ye:(G.lastType=k=="operator"&&(A=="++"||A=="--")?"incdec":k,P(G,ye,k,A,O))},indent:function(O,G){if(O.tokenize==D||O.tokenize==U)return n.Pass;if(O.tokenize!=I)return 0;var ye=G&&G.charAt(0),ke=O.lexical,de;if(!/^\s*else\b/.test(G))for(var De=O.cc.length-1;De>=0;--De){var gt=O.cc[De];if(gt==B)ke=ke.prev;else if(gt!=Ls&>!=He)break}for(;(ke.type=="stat"||ke.type=="form")&&(ye=="}"||(de=O.cc[O.cc.length-1])&&(de==pe||de==ge)&&!/^[,\.=+\-*:?[\(]/.test(G));)ke=ke.prev;a&&ke.type==")"&&ke.prev.type=="stat"&&(ke=ke.prev);var sn=ke.type,Ln=ye==sn;return sn=="vardef"?ke.indented+(O.lastType=="operator"||O.lastType==","?ke.info.length+1:0):sn=="form"&&ye=="{"?ke.indented:sn=="form"?ke.indented+l:sn=="stat"?ke.indented+(ta(O,G)?a||l:0):ke.info=="switch"&&!Ln&&o.doubleIndentSwitch!=!1?ke.indented+(/^(?:case|default)\b/.test(G)?l:2*l):ke.align?ke.column+(Ln?0:1):ke.indented+(Ln?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:f,jsonMode:d,expressionAllowed:fr,skipExpression:function(O){P(O,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),$w.exports}Xg();var Ow={exports:{}},Lw;function Jg(){return Lw||(Lw=1,(function(e,t){(function(n){n(Vo())})(function(n){var r={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},o={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(l,a){var f=l.indentUnit,d={},p=a.htmlMode?r:o;for(var m in p)d[m]=p[m];for(var m in a)d[m]=a[m];var g,y;function w(S,R){function z(_e){return R.tokenize=_e,_e(S,R)}var ae=S.next();if(ae=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?z(k("atom","]]>")):null:S.match("--")?z(k("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),z(A(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),R.tokenize=k("meta","?>"),"meta"):(g=S.eat("/")?"closeTag":"openTag",R.tokenize=E,"tag bracket");if(ae=="&"){var ve;return S.eat("#")?S.eat("x")?ve=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):ve=S.eatWhile(/[\d]/)&&S.eat(";"):ve=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),ve?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function E(S,R){var z=S.next();if(z==">"||z=="/"&&S.eat(">"))return R.tokenize=w,g=z==">"?"endTag":"selfcloseTag","tag bracket";if(z=="=")return g="equals",null;if(z=="<"){R.tokenize=w,R.state=U,R.tagName=R.tagStart=null;var ae=R.tokenize(S,R);return ae?ae+" tag error":"tag error"}else return/[\'\"]/.test(z)?(R.tokenize=_(z),R.stringStartCol=S.column(),R.tokenize(S,R)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function _(S){var R=function(z,ae){for(;!z.eol();)if(z.next()==S){ae.tokenize=E;break}return"string"};return R.isInAttribute=!0,R}function k(S,R){return function(z,ae){for(;!z.eol();){if(z.match(R)){ae.tokenize=w;break}z.next()}return S}}function A(S){return function(R,z){for(var ae;(ae=R.next())!=null;){if(ae=="<")return z.tokenize=A(S+1),z.tokenize(R,z);if(ae==">")if(S==1){z.tokenize=w;break}else return z.tokenize=A(S-1),z.tokenize(R,z)}return"meta"}}function N(S){return S&&S.toLowerCase()}function I(S,R,z){this.prev=S.context,this.tagName=R||"",this.indent=S.indented,this.startOfLine=z,(d.doNotIndent.hasOwnProperty(R)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function $(S){S.context&&(S.context=S.context.prev)}function D(S,R){for(var z;;){if(!S.context||(z=S.context.tagName,!d.contextGrabbers.hasOwnProperty(N(z))||!d.contextGrabbers[N(z)].hasOwnProperty(N(R))))return;$(S)}}function U(S,R,z){return S=="openTag"?(z.tagStart=R.column(),J):S=="closeTag"?ee:U}function J(S,R,z){return S=="word"?(z.tagName=R.current(),y="tag",q):d.allowMissingTagName&&S=="endTag"?(y="tag bracket",q(S,R,z)):(y="error",J)}function ee(S,R,z){if(S=="word"){var ae=R.current();return z.context&&z.context.tagName!=ae&&d.implicitlyClosed.hasOwnProperty(N(z.context.tagName))&&$(z),z.context&&z.context.tagName==ae||d.matchClosing===!1?(y="tag",X):(y="tag error",V)}else return d.allowMissingTagName&&S=="endTag"?(y="tag bracket",X(S,R,z)):(y="error",V)}function X(S,R,z){return S!="endTag"?(y="error",X):($(z),U)}function V(S,R,z){return y="error",X(S,R,z)}function q(S,R,z){if(S=="word")return y="attribute",P;if(S=="endTag"||S=="selfcloseTag"){var ae=z.tagName,ve=z.tagStart;return z.tagName=z.tagStart=null,S=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(N(ae))?D(z,ae):(D(z,ae),z.context=new I(z,ae,ve==z.indented)),U}return y="error",q}function P(S,R,z){return S=="equals"?L:(d.allowMissing||(y="error"),q(S,R,z))}function L(S,R,z){return S=="string"?T:S=="word"&&d.allowUnquoted?(y="string",q):(y="error",q(S,R,z))}function T(S,R,z){return S=="string"?T:q(S,R,z)}return{startState:function(S){var R={tokenize:w,state:U,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(R.baseIndent=S),R},token:function(S,R){if(!R.tagName&&S.sol()&&(R.indented=S.indentation()),S.eatSpace())return null;g=null;var z=R.tokenize(S,R);return(z||g)&&z!="comment"&&(y=null,R.state=R.state(g||z,S,R),y&&(z=y=="error"?z+" error":y)),z},indent:function(S,R,z){var ae=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+f;if(ae&&ae.noIndent)return n.Pass;if(S.tokenize!=E&&S.tokenize!=w)return z?z.match(/^(\s*)/)[0].length:0;if(S.tagName)return d.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+f*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(R))return 0;var ve=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(ve&&ve[1])for(;ae;)if(ae.tagName==ve[2]){ae=ae.prev;break}else if(d.implicitlyClosed.hasOwnProperty(N(ae.tagName)))ae=ae.prev;else break;else if(ve)for(;ae;){var _e=d.contextGrabbers[N(ae.tagName)];if(_e&&_e.hasOwnProperty(N(ve[2])))ae=ae.prev;else break}for(;ae&&ae.prev&&!ae.startOfLine;)ae=ae.prev;return ae?ae.indent+f:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(S){S.state==L&&(S.state=q)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var R=[],z=S.context;z;z=z.prev)R.push(z.tagName);return R.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),Ow.exports}Jg();var Rw={exports:{}},Pw={exports:{}},Iw;function Gge(){return Iw||(Iw=1,(function(e,t){(function(n){n(Vo())})(function(n){n.defineMode("css",function(V,q){var P=q.inline;q.propertyKeywords||(q=n.resolveMode("text/css"));var L=V.indentUnit,T=q.tokenHooks,S=q.documentTypes||{},R=q.mediaTypes||{},z=q.mediaFeatures||{},ae=q.mediaValueKeywords||{},ve=q.propertyKeywords||{},_e=q.nonStandardPropertyKeywords||{},je=q.fontProperties||{},Me=q.counterDescriptors||{},Ke=q.colorKeywords||{},qe=q.valueKeywords||{},He=q.allowNested,Re=q.lineComment,B=q.supportsAtComponent===!0,Q=V.highlightNonStandardPropertyKeywords!==!1,ie,le;function ce(te,ue){return ie=ue,te}function F(te,ue){var oe=te.next();if(T[oe]){var Ie=T[oe](te,ue);if(Ie!==!1)return Ie}if(oe=="@")return te.eatWhile(/[\w\\\-]/),ce("def",te.current());if(oe=="="||(oe=="~"||oe=="|")&&te.eat("="))return ce(null,"compare");if(oe=='"'||oe=="'")return ue.tokenize=W(oe),ue.tokenize(te,ue);if(oe=="#")return te.eatWhile(/[\w\\\-]/),ce("atom","hash");if(oe=="!")return te.match(/^\s*\w*/),ce("keyword","important");if(/\d/.test(oe)||oe=="."&&te.eat(/\d/))return te.eatWhile(/[\w.%]/),ce("number","unit");if(oe==="-"){if(/[\d.]/.test(te.peek()))return te.eatWhile(/[\w.%]/),ce("number","unit");if(te.match(/^-[\w\\\-]*/))return te.eatWhile(/[\w\\\-]/),te.match(/^\s*:/,!1)?ce("variable-2","variable-definition"):ce("variable-2","variable");if(te.match(/^\w+-/))return ce("meta","meta")}else return/[,+>*\/]/.test(oe)?ce(null,"select-op"):oe=="."&&te.match(/^-?[_a-z][_a-z0-9-]*/i)?ce("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(oe)?ce(null,oe):te.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(te.current())&&(ue.tokenize=ne),ce("variable callee","variable")):/[\w\\\-]/.test(oe)?(te.eatWhile(/[\w\\\-]/),ce("property","word")):ce(null,null)}function W(te){return function(ue,oe){for(var Ie=!1,tt;(tt=ue.next())!=null;){if(tt==te&&!Ie){te==")"&&ue.backUp(1);break}Ie=!Ie&&tt=="\\"}return(tt==te||!Ie&&te!=")")&&(oe.tokenize=null),ce("string","string")}}function ne(te,ue){return te.next(),te.match(/^\s*[\"\')]/,!1)?ue.tokenize=null:ue.tokenize=W(")"),ce(null,"(")}function he(te,ue,oe){this.type=te,this.indent=ue,this.prev=oe}function pe(te,ue,oe,Ie){return te.context=new he(oe,ue.indentation()+(Ie===!1?0:L),te.context),oe}function ge(te){return te.context.prev&&(te.context=te.context.prev),te.context.type}function Ae(te,ue,oe){return be[oe.context.type](te,ue,oe)}function $e(te,ue,oe,Ie){for(var tt=Ie||1;tt>0;tt--)oe.context=oe.context.prev;return Ae(te,ue,oe)}function Se(te){var ue=te.current().toLowerCase();qe.hasOwnProperty(ue)?le="atom":Ke.hasOwnProperty(ue)?le="keyword":le="variable"}var be={};return be.top=function(te,ue,oe){if(te=="{")return pe(oe,ue,"block");if(te=="}"&&oe.context.prev)return ge(oe);if(B&&/@component/i.test(te))return pe(oe,ue,"atComponentBlock");if(/^@(-moz-)?document$/i.test(te))return pe(oe,ue,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(te))return pe(oe,ue,"atBlock");if(/^@(font-face|counter-style)/i.test(te))return oe.stateArg=te,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(te))return"keyframes";if(te&&te.charAt(0)=="@")return pe(oe,ue,"at");if(te=="hash")le="builtin";else if(te=="word")le="tag";else{if(te=="variable-definition")return"maybeprop";if(te=="interpolation")return pe(oe,ue,"interpolation");if(te==":")return"pseudo";if(He&&te=="(")return pe(oe,ue,"parens")}return oe.context.type},be.block=function(te,ue,oe){if(te=="word"){var Ie=ue.current().toLowerCase();return ve.hasOwnProperty(Ie)?(le="property","maybeprop"):_e.hasOwnProperty(Ie)?(le=Q?"string-2":"property","maybeprop"):He?(le=ue.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(le+=" error","maybeprop")}else return te=="meta"?"block":!He&&(te=="hash"||te=="qualifier")?(le="error","block"):be.top(te,ue,oe)},be.maybeprop=function(te,ue,oe){return te==":"?pe(oe,ue,"prop"):Ae(te,ue,oe)},be.prop=function(te,ue,oe){if(te==";")return ge(oe);if(te=="{"&&He)return pe(oe,ue,"propBlock");if(te=="}"||te=="{")return $e(te,ue,oe);if(te=="(")return pe(oe,ue,"parens");if(te=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ue.current()))le+=" error";else if(te=="word")Se(ue);else if(te=="interpolation")return pe(oe,ue,"interpolation");return"prop"},be.propBlock=function(te,ue,oe){return te=="}"?ge(oe):te=="word"?(le="property","maybeprop"):oe.context.type},be.parens=function(te,ue,oe){return te=="{"||te=="}"?$e(te,ue,oe):te==")"?ge(oe):te=="("?pe(oe,ue,"parens"):te=="interpolation"?pe(oe,ue,"interpolation"):(te=="word"&&Se(ue),"parens")},be.pseudo=function(te,ue,oe){return te=="meta"?"pseudo":te=="word"?(le="variable-3",oe.context.type):Ae(te,ue,oe)},be.documentTypes=function(te,ue,oe){return te=="word"&&S.hasOwnProperty(ue.current())?(le="tag",oe.context.type):be.atBlock(te,ue,oe)},be.atBlock=function(te,ue,oe){if(te=="(")return pe(oe,ue,"atBlock_parens");if(te=="}"||te==";")return $e(te,ue,oe);if(te=="{")return ge(oe)&&pe(oe,ue,He?"block":"top");if(te=="interpolation")return pe(oe,ue,"interpolation");if(te=="word"){var Ie=ue.current().toLowerCase();Ie=="only"||Ie=="not"||Ie=="and"||Ie=="or"?le="keyword":R.hasOwnProperty(Ie)?le="attribute":z.hasOwnProperty(Ie)?le="property":ae.hasOwnProperty(Ie)?le="keyword":ve.hasOwnProperty(Ie)?le="property":_e.hasOwnProperty(Ie)?le=Q?"string-2":"property":qe.hasOwnProperty(Ie)?le="atom":Ke.hasOwnProperty(Ie)?le="keyword":le="error"}return oe.context.type},be.atComponentBlock=function(te,ue,oe){return te=="}"?$e(te,ue,oe):te=="{"?ge(oe)&&pe(oe,ue,He?"block":"top",!1):(te=="word"&&(le="error"),oe.context.type)},be.atBlock_parens=function(te,ue,oe){return te==")"?ge(oe):te=="{"||te=="}"?$e(te,ue,oe,2):be.atBlock(te,ue,oe)},be.restricted_atBlock_before=function(te,ue,oe){return te=="{"?pe(oe,ue,"restricted_atBlock"):te=="word"&&oe.stateArg=="@counter-style"?(le="variable","restricted_atBlock_before"):Ae(te,ue,oe)},be.restricted_atBlock=function(te,ue,oe){return te=="}"?(oe.stateArg=null,ge(oe)):te=="word"?(oe.stateArg=="@font-face"&&!je.hasOwnProperty(ue.current().toLowerCase())||oe.stateArg=="@counter-style"&&!Me.hasOwnProperty(ue.current().toLowerCase())?le="error":le="property","maybeprop"):"restricted_atBlock"},be.keyframes=function(te,ue,oe){return te=="word"?(le="variable","keyframes"):te=="{"?pe(oe,ue,"top"):Ae(te,ue,oe)},be.at=function(te,ue,oe){return te==";"?ge(oe):te=="{"||te=="}"?$e(te,ue,oe):(te=="word"?le="tag":te=="hash"&&(le="builtin"),"at")},be.interpolation=function(te,ue,oe){return te=="}"?ge(oe):te=="{"||te==";"?$e(te,ue,oe):(te=="word"?le="variable":te!="variable"&&te!="("&&te!=")"&&(le="error"),"interpolation")},{startState:function(te){return{tokenize:null,state:P?"block":"top",stateArg:null,context:new he(P?"block":"top",te||0,null)}},token:function(te,ue){if(!ue.tokenize&&te.eatSpace())return null;var oe=(ue.tokenize||F)(te,ue);return oe&&typeof oe=="object"&&(ie=oe[1],oe=oe[0]),le=oe,ie!="comment"&&(ue.state=be[ue.state](ie,te,ue)),le},indent:function(te,ue){var oe=te.context,Ie=ue&&ue.charAt(0),tt=oe.indent;return oe.type=="prop"&&(Ie=="}"||Ie==")")&&(oe=oe.prev),oe.prev&&(Ie=="}"&&(oe.type=="block"||oe.type=="top"||oe.type=="interpolation"||oe.type=="restricted_atBlock")?(oe=oe.prev,tt=oe.indent):(Ie==")"&&(oe.type=="parens"||oe.type=="atBlock_parens")||Ie=="{"&&(oe.type=="at"||oe.type=="atBlock"))&&(tt=Math.max(0,oe.indent-L))),tt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Re,fold:"brace"}});function r(V){for(var q={},P=0;P<V.length;++P)q[V[P].toLowerCase()]=!0;return q}var o=["domain","regexp","url","url-prefix"],l=r(o),a=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],f=r(a),d=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],p=r(d),m=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],g=r(m),y=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],w=r(y),E=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],_=r(E),k=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],A=r(k),N=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],I=r(N),$=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],D=r($),U=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],J=r(U),ee=o.concat(a).concat(d).concat(m).concat(y).concat(E).concat($).concat(U);n.registerHelper("hintWords","css",ee);function X(V,q){for(var P=!1,L;(L=V.next())!=null;){if(P&&L=="/"){q.tokenize=null;break}P=L=="*"}return["comment","comment"]}n.defineMIME("text/css",{documentTypes:l,mediaTypes:f,mediaFeatures:p,mediaValueKeywords:g,propertyKeywords:w,nonStandardPropertyKeywords:_,fontProperties:A,counterDescriptors:I,colorKeywords:D,valueKeywords:J,tokenHooks:{"/":function(V,q){return V.eat("*")?(q.tokenize=X,X(V,q)):!1}},name:"css"}),n.defineMIME("text/x-scss",{mediaTypes:f,mediaFeatures:p,mediaValueKeywords:g,propertyKeywords:w,nonStandardPropertyKeywords:_,colorKeywords:D,valueKeywords:J,fontProperties:A,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(V,q){return V.eat("/")?(V.skipToEnd(),["comment","comment"]):V.eat("*")?(q.tokenize=X,X(V,q)):["operator","operator"]},":":function(V){return V.match(/^\s*\{/,!1)?[null,null]:!1},$:function(V){return V.match(/^[\w-]+/),V.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(V){return V.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),n.defineMIME("text/x-less",{mediaTypes:f,mediaFeatures:p,mediaValueKeywords:g,propertyKeywords:w,nonStandardPropertyKeywords:_,colorKeywords:D,valueKeywords:J,fontProperties:A,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(V,q){return V.eat("/")?(V.skipToEnd(),["comment","comment"]):V.eat("*")?(q.tokenize=X,X(V,q)):["operator","operator"]},"@":function(V){return V.eat("{")?[null,"interpolation"]:V.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(V.eatWhile(/[\w\\\-]/),V.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),n.defineMIME("text/x-gss",{documentTypes:l,mediaTypes:f,mediaFeatures:p,propertyKeywords:w,nonStandardPropertyKeywords:_,fontProperties:A,counterDescriptors:I,colorKeywords:D,valueKeywords:J,supportsAtComponent:!0,tokenHooks:{"/":function(V,q){return V.eat("*")?(q.tokenize=X,X(V,q)):!1}},name:"css",helperType:"gss"})})})()),Pw.exports}var Dw;function Kge(){return Dw||(Dw=1,(function(e,t){(function(n){n(Vo(),Jg(),Xg(),Gge())})(function(n){var r={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function o(g,y,w){var E=g.current(),_=E.search(y);return _>-1?g.backUp(E.length-_):E.match(/<\/?$/)&&(g.backUp(E.length),g.match(y,!1)||g.match(E)),w}var l={};function a(g){var y=l[g];return y||(l[g]=new RegExp("\\s+"+g+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function f(g,y){var w=g.match(a(y));return w?/^\s*(.*?)\s*$/.exec(w[2])[1]:""}function d(g,y){return new RegExp((y?"^":"")+"</\\s*"+g+"\\s*>","i")}function p(g,y){for(var w in g)for(var E=y[w]||(y[w]=[]),_=g[w],k=_.length-1;k>=0;k--)E.unshift(_[k])}function m(g,y){for(var w=0;w<g.length;w++){var E=g[w];if(!E[0]||E[1].test(f(y,E[0])))return E[2]}}n.defineMode("htmlmixed",function(g,y){var w=n.getMode(g,{name:"xml",htmlMode:!0,multilineTagIndentFactor:y.multilineTagIndentFactor,multilineTagIndentPastTag:y.multilineTagIndentPastTag,allowMissingTagName:y.allowMissingTagName}),E={},_=y&&y.tags,k=y&&y.scriptTypes;if(p(r,E),_&&p(_,E),k)for(var A=k.length-1;A>=0;A--)E.script.unshift(["type",k[A].matches,k[A].mode]);function N(I,$){var D=w.token(I,$.htmlState),U=/\btag\b/.test(D),J;if(U&&!/[<>\s\/]/.test(I.current())&&(J=$.htmlState.tagName&&$.htmlState.tagName.toLowerCase())&&E.hasOwnProperty(J))$.inTag=J+" ";else if($.inTag&&U&&/>$/.test(I.current())){var ee=/^([\S]+) (.*)/.exec($.inTag);$.inTag=null;var X=I.current()==">"&&m(E[ee[1]],ee[2]),V=n.getMode(g,X),q=d(ee[1],!0),P=d(ee[1],!1);$.token=function(L,T){return L.match(q,!1)?(T.token=N,T.localState=T.localMode=null,null):o(L,P,T.localMode.token(L,T.localState))},$.localMode=V,$.localState=n.startState(V,w.indent($.htmlState,"",""))}else $.inTag&&($.inTag+=I.current(),I.eol()&&($.inTag+=" "));return D}return{startState:function(){var I=n.startState(w);return{token:N,inTag:null,localMode:null,localState:null,htmlState:I}},copyState:function(I){var $;return I.localState&&($=n.copyState(I.localMode,I.localState)),{token:I.token,inTag:I.inTag,localMode:I.localMode,localState:$,htmlState:n.copyState(w,I.htmlState)}},token:function(I,$){return $.token(I,$)},indent:function(I,$,D){return!I.localMode||/^\s*<\//.test($)?w.indent(I.htmlState,$,D):I.localMode.indent?I.localMode.indent(I.localState,$,D):n.Pass},innerMode:function(I){return{state:I.localState||I.htmlState,mode:I.localMode||w}}}},"xml","javascript","css"),n.defineMIME("text/html","htmlmixed")})})()),Rw.exports}Kge();var Fw={exports:{}},zw;function Yge(){return zw||(zw=1,(function(e,t){(function(n){n(Vo(),Jg(),Xg())})(function(n){function r(l,a,f,d){this.state=l,this.mode=a,this.depth=f,this.prev=d}function o(l){return new r(n.copyState(l.mode,l.state),l.mode,l.depth,l.prev&&o(l.prev))}n.defineMode("jsx",function(l,a){var f=n.getMode(l,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),d=n.getMode(l,a&&a.base||"javascript");function p(w){var E=w.tagName;w.tagName=null;var _=f.indent(w,"","");return w.tagName=E,_}function m(w,E){return E.context.mode==f?g(w,E,E.context):y(w,E,E.context)}function g(w,E,_){if(_.depth==2)return w.match(/^.*?\*\//)?_.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){f.skipAttribute(_.state);var k=p(_.state),A=_.state.context;if(A&&w.match(/^[^>]*>\s*$/,!1)){for(;A.prev&&!A.startOfLine;)A=A.prev;A.startOfLine?k-=l.indentUnit:_.prev.state.lexical&&(k=_.prev.state.lexical.indented)}else _.depth==1&&(k+=l.indentUnit);return E.context=new r(n.startState(d,k),d,0,E.context),null}if(_.depth==1){if(w.peek()=="<")return f.skipAttribute(_.state),E.context=new r(n.startState(f,p(_.state)),f,0,E.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return _.depth=2,m(w,E)}var N=f.token(w,_.state),I=w.current(),$;return/\btag\b/.test(N)?/>$/.test(I)?_.state.context?_.depth=0:E.context=E.context.prev:/^</.test(I)&&(_.depth=1):!N&&($=I.indexOf("{"))>-1&&w.backUp(I.length-$),N}function y(w,E,_){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&d.expressionAllowed(w,_.state))return E.context=new r(n.startState(f,d.indent(_.state,"","")),f,0,E.context),d.skipExpression(_.state),null;var k=d.token(w,_.state);if(!k&&_.depth!=null){var A=w.current();A=="{"?_.depth++:A=="}"&&--_.depth==0&&(E.context=E.context.prev)}return k}return{startState:function(){return{context:new r(n.startState(d),d)}},copyState:function(w){return{context:o(w.context)}},token:m,indent:function(w,E,_){return w.context.mode.indent(w.context.state,E,_)},innerMode:function(w){return w.context}}},"xml","javascript"),n.defineMIME("text/jsx","jsx"),n.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),Fw.exports}Yge();var Bw={exports:{}},Hw;function Xge(){return Hw||(Hw=1,(function(e,t){(function(n){n(Vo())})(function(n){n.defineOption("placeholder","",function(p,m,g){var y=g&&g!=n.Init;if(m&&!y)p.on("blur",a),p.on("change",f),p.on("swapDoc",f),n.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){l(p)}),f(p);else if(!m&&y){p.off("blur",a),p.off("change",f),p.off("swapDoc",f),n.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),r(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}m&&!p.hasFocus()&&a(p)});function r(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function o(p){r(p);var m=p.state.placeholder=document.createElement("pre");m.style.cssText="height: 0; overflow: visible",m.style.direction=p.getOption("direction"),m.className="CodeMirror-placeholder CodeMirror-line-like";var g=p.getOption("placeholder");typeof g=="string"&&(g=document.createTextNode(g)),m.appendChild(g),p.display.lineSpace.insertBefore(m,p.display.lineSpace.firstChild)}function l(p){setTimeout(function(){var m=!1;if(p.lineCount()==1){var g=p.getInputField();m=g.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(g.querySelector(".CodeMirror-line").textContent)}m?o(p):r(p)},20)}function a(p){d(p)&&o(p)}function f(p){var m=p.getWrapperElement(),g=d(p);m.className=m.className.replace(" CodeMirror-empty","")+(g?" CodeMirror-empty":""),g?o(p):r(p)}function d(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),Bw.exports}Xge();var jw={exports:{}},Ww;function Jge(){return Ww||(Ww=1,(function(e,t){(function(n){n(Vo())})(function(n){function r(a,f,d){this.orientation=f,this.scroll=d,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=a+"-"+f,this.inner=this.node.appendChild(document.createElement("div"));var p=this;n.on(this.inner,"mousedown",function(g){if(g.which!=1)return;n.e_preventDefault(g);var y=p.orientation=="horizontal"?"pageX":"pageY",w=g[y],E=p.pos;function _(){n.off(document,"mousemove",k),n.off(document,"mouseup",_)}function k(A){if(A.which!=1)return _();p.moveTo(E+(A[y]-w)*(p.total/p.size))}n.on(document,"mousemove",k),n.on(document,"mouseup",_)}),n.on(this.node,"click",function(g){n.e_preventDefault(g);var y=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=g.clientX<y.left?-1:g.clientX>y.right?1:0:w=g.clientY<y.top?-1:g.clientY>y.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function m(g){var y=n.wheelEventPixels(g)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+y),p.pos!=w&&n.e_preventDefault(g)}n.on(this.node,"mousewheel",m),n.on(this.node,"DOMMouseScroll",m)}r.prototype.setPos=function(a,f){return a<0&&(a=0),a>this.total-this.screen&&(a=this.total-this.screen),!f&&a==this.pos?!1:(this.pos=a,this.inner.style[this.orientation=="horizontal"?"left":"top"]=a*(this.size/this.total)+"px",!0)},r.prototype.moveTo=function(a){this.setPos(a)&&this.scroll(a,this.orientation)};var o=10;r.prototype.update=function(a,f,d){var p=this.screen!=f||this.total!=a||this.size!=d;p&&(this.screen=f,this.total=a,this.size=d);var m=this.screen*(this.size/this.total);m<o&&(this.size-=o-m,m=o),this.inner.style[this.orientation=="horizontal"?"width":"height"]=m+"px",this.setPos(this.pos,p)};function l(a,f,d){this.addClass=a,this.horiz=new r(a,"horizontal",d),f(this.horiz.node),this.vert=new r(a,"vertical",d),f(this.vert.node),this.width=null}l.prototype.update=function(a){if(this.width==null){var f=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;f&&(this.width=parseInt(f.height))}var d=this.width||0,p=a.scrollWidth>a.clientWidth+1,m=a.scrollHeight>a.clientHeight+1;return this.vert.node.style.display=m?"block":"none",this.horiz.node.style.display=p?"block":"none",m&&(this.vert.update(a.scrollHeight,a.clientHeight,a.viewHeight-(p?d:0)),this.vert.node.style.bottom=p?d+"px":"0"),p&&(this.horiz.update(a.scrollWidth,a.clientWidth,a.viewWidth-(m?d:0)-a.barLeft),this.horiz.node.style.right=m?d+"px":"0",this.horiz.node.style.left=a.barLeft+"px"),{right:m?d:0,bottom:p?d:0}},l.prototype.setScrollTop=function(a){this.vert.setPos(a)},l.prototype.setScrollLeft=function(a){this.horiz.setPos(a)},l.prototype.clear=function(){var a=this.horiz.node.parentNode;a.removeChild(this.horiz.node),a.removeChild(this.vert.node)},n.scrollbarModel.simple=function(a,f){return new l("CodeMirror-simplescroll",a,f)},n.scrollbarModel.overlay=function(a,f){return new l("CodeMirror-overlayscroll",a,f)}})})()),jw.exports}Jge();const jn=qt();function Zge(e,t,n={}){const r=g2.fromTextArea(e.value,{theme:"vars",...n,scrollbarStyle:"simple"});let o=!1;return r.on("change",()=>{if(o){o=!1;return}t.value=r.getValue()}),ct(t,l=>{if(l!==r.getValue()){o=!0;const a=r.listSelections();r.replaceRange(l,r.posFromIndex(0),r.posFromIndex(Number.POSITIVE_INFINITY)),r.setSelections(a)}},{immediate:!0}),Yl(()=>{jn.value=void 0}),Sd(r)}async function zk(e){Sc({file:e.file.id,line:e.location?.line??1,view:"editor",test:e.id,column:null})}function Qge(e,t){Sc({file:e,column:t.column-1,line:t.line,view:"editor",test:gi.value})}function eve(e,t){if(!t)return;const{line:n,column:r,file:o}=t;if(e.file.filepath!==o)return Kg(o,n,r);Sc({file:e.file.id,column:r-1,line:n,view:"editor",test:gi.value})}const Mr=Ve(),kl=Ve(!0),Uo=Ve(!1),Zf=Ve(!0),Bk=we(()=>ht.value?.coverage),mm=we(()=>Bk.value?.enabled),Ha=we(()=>mm.value&&!!Bk.value?.htmlDir),Tl=Bc("vitest-ui_splitpanes-mainSizes",[33,67]),Ss=Bc("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?pr.value[0]/window.outerWidth*100:33,67]),Gi=Bc("vitest-ui_details-panel-visible",!0),mn=Ve("right");Mt(()=>{ct(ht,()=>{ht.value?.browser?.detailsPanelPosition&&(mn.value=ht.value.browser.detailsPanelPosition)})});function tve(){setTimeout(()=>{Gi.value=!1},0)}function nve(){Gi.value=!0}const $n=yr({navigation:Tl.value[0],details:{size:Tl.value[1],browser:Ss.value[0],main:Ss.value[1]}});ct(jd,e=>{Zf.value=e==="running"},{immediate:!0});function rve(){const e=Wo.value;if(e&&e.length>0){const t=$r(e);t?(Mr.value=t,kl.value=!1,Uo.value=!1):UO(()=>dt.state.getFiles(),()=>{Mr.value=$r(e),kl.value=!1,Uo.value=!1})}return kl}function Qf(e){kl.value=e,Uo.value=!1,e&&(Mr.value=void 0,Wo.value="")}function Sc({file:e,line:t,view:n,test:r,column:o}){Wo.value=e,Dk.value=t,Fk.value=o,_n.value=n,gi.value=r,Mr.value=$r(e),Qf(!1)}function ive(e){e.type==="test"?_n.value==="editor"?zk(e):Sc({file:e.file.id,line:null,column:null,view:_n.value,test:e.id}):Sc({file:e.file.id,test:null,line:null,view:_n.value,column:null})}function ove(){Uo.value=!0,kl.value=!1,Mr.value=void 0,Wo.value=""}function sve(){if(cr?.provider==="webdriverio"){const e=window.outerWidth*($n.details.size/100);return(pr.value[0]+20)/e*100}return 33}function lve(){$n.navigation=33,$n.details.size=67,Tl.value=[33,67]}function Hk(){$n.details.main!==0&&($n.details.browser=sve(),$n.details.main=100-$n.details.browser,Ss.value=[$n.details.browser,$n.details.main])}function ave(){mn.value=mn.value==="right"?"bottom":"right";const e=mn.value==="bottom"?33:50;Ss.value=[e,100-e],$n.details.browser=e,$n.details.main=100-e}const cve={setCurrentFileId(e){Wo.value=e,Mr.value=$r(e),Qf(!1)},async setIframeViewport(e,t){pr.value=[e,t],cr?.provider==="webdriverio"&&Hk(),await new Promise(n=>requestAnimationFrame(n))}},uve=location.port,fve=[location.hostname,uve].filter(Boolean).join(":"),dve=`${location.protocol==="https:"?"wss:":"ws:"}//${fve}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,wr=!!window.METADATA_PATH;var gr=Uint8Array,hl=Uint16Array,hve=Int32Array,jk=new gr([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]),Wk=new gr([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]),pve=new gr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Uk=function(e,t){for(var n=new hl(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var o=new hve(n[30]),r=1;r<30;++r)for(var l=n[r];l<n[r+1];++l)o[l]=l-n[r]<<5|r;return{b:n,r:o}},qk=Uk(jk,2),Vk=qk.b,mve=qk.r;Vk[28]=258,mve[258]=28;var gve=Uk(Wk,0),vve=gve.b,gm=new hl(32768);for(var Lt=0;Lt<32768;++Lt){var yo=(Lt&43690)>>1|(Lt&21845)<<1;yo=(yo&52428)>>2|(yo&13107)<<2,yo=(yo&61680)>>4|(yo&3855)<<4,gm[Lt]=((yo&65280)>>8|(yo&255)<<8)>>1}var nc=(function(e,t,n){for(var r=e.length,o=0,l=new hl(t);o<r;++o)e[o]&&++l[e[o]-1];var a=new hl(t);for(o=1;o<t;++o)a[o]=a[o-1]+l[o-1]<<1;var f;if(n){f=new hl(1<<t);var d=15-t;for(o=0;o<r;++o)if(e[o])for(var p=o<<4|e[o],m=t-e[o],g=a[e[o]-1]++<<m,y=g|(1<<m)-1;g<=y;++g)f[gm[g]>>d]=p}else for(f=new hl(r),o=0;o<r;++o)e[o]&&(f[o]=gm[a[e[o]-1]++]>>15-e[o]);return f}),qc=new gr(288);for(var Lt=0;Lt<144;++Lt)qc[Lt]=8;for(var Lt=144;Lt<256;++Lt)qc[Lt]=9;for(var Lt=256;Lt<280;++Lt)qc[Lt]=7;for(var Lt=280;Lt<288;++Lt)qc[Lt]=8;var Gk=new gr(32);for(var Lt=0;Lt<32;++Lt)Gk[Lt]=5;var yve=nc(qc,9,1),bve=nc(Gk,5,1),wp=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Hr=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},xp=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},wve=function(e){return(e+7)/8|0},Kk=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new gr(e.subarray(t,n))},xve=["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"],ir=function(e,t,n){var r=new Error(t||xve[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,ir),!n)throw r;return r},Zg=function(e,t,n,r){var o=e.length,l=0;if(!o||t.f&&!t.l)return n||new gr(0);var a=!n,f=a||t.i!=2,d=t.i;a&&(n=new gr(o*3));var p=function(ce){var F=n.length;if(ce>F){var W=new gr(Math.max(F*2,ce));W.set(n),n=W}},m=t.f||0,g=t.p||0,y=t.b||0,w=t.l,E=t.d,_=t.m,k=t.n,A=o*8;do{if(!w){m=Hr(e,g,1);var N=Hr(e,g+1,3);if(g+=3,N)if(N==1)w=yve,E=bve,_=9,k=5;else if(N==2){var U=Hr(e,g,31)+257,J=Hr(e,g+10,15)+4,ee=U+Hr(e,g+5,31)+1;g+=14;for(var X=new gr(ee),V=new gr(19),q=0;q<J;++q)V[pve[q]]=Hr(e,g+q*3,7);g+=J*3;for(var P=wp(V),L=(1<<P)-1,T=nc(V,P,1),q=0;q<ee;){var S=T[Hr(e,g,L)];g+=S&15;var I=S>>4;if(I<16)X[q++]=I;else{var R=0,z=0;for(I==16?(z=3+Hr(e,g,3),g+=2,R=X[q-1]):I==17?(z=3+Hr(e,g,7),g+=3):I==18&&(z=11+Hr(e,g,127),g+=7);z--;)X[q++]=R}}var ae=X.subarray(0,U),ve=X.subarray(U);_=wp(ae),k=wp(ve),w=nc(ae,_,1),E=nc(ve,k,1)}else ir(1);else{var I=wve(g)+4,$=e[I-4]|e[I-3]<<8,D=I+$;if(D>o){d&&ir(0);break}f&&p(y+$),n.set(e.subarray(I,D),y),t.b=y+=$,t.p=g=D*8,t.f=m;continue}if(g>A){d&&ir(0);break}}f&&p(y+131072);for(var _e=(1<<_)-1,je=(1<<k)-1,Me=g;;Me=g){var R=w[xp(e,g)&_e],Ke=R>>4;if(g+=R&15,g>A){d&&ir(0);break}if(R||ir(2),Ke<256)n[y++]=Ke;else if(Ke==256){Me=g,w=null;break}else{var qe=Ke-254;if(Ke>264){var q=Ke-257,He=jk[q];qe=Hr(e,g,(1<<He)-1)+Vk[q],g+=He}var Re=E[xp(e,g)&je],B=Re>>4;Re||ir(3),g+=Re&15;var ve=vve[B];if(B>3){var He=Wk[B];ve+=xp(e,g)&(1<<He)-1,g+=He}if(g>A){d&&ir(0);break}f&&p(y+131072);var Q=y+qe;if(y<ve){var ie=l-ve,le=Math.min(ve,Q);for(ie+y<0&&ir(3);y<le;++y)n[y]=r[ie+y]}for(;y<Q;++y)n[y]=n[y-ve]}}t.l=w,t.p=Me,t.b=y,t.f=m,w&&(m=1,t.m=_,t.d=E,t.n=k)}while(!m);return y!=n.length&&a?Kk(n,0,y):n.subarray(0,y)},Sve=new gr(0),_ve=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&ir(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(t&2)},kve=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Tve=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&ir(6,"invalid zlib data"),(e[1]>>5&1)==1&&ir(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Cve(e,t){return Zg(e,{i:2},t,t)}function Eve(e,t){var n=_ve(e);return n+8>e.length&&ir(6,"invalid gzip data"),Zg(e.subarray(n,-8),{i:2},new gr(kve(e)),t)}function Ave(e,t){return Zg(e.subarray(Tve(e),-4),{i:2},t,t)}function Mve(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Eve(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Cve(e,t):Ave(e,t)}var vm=typeof TextDecoder<"u"&&new TextDecoder,$ve=0;try{vm.decode(Sve,{stream:!0}),$ve=1}catch{}var Nve=function(e){for(var t="",n=0;;){var r=e[n++],o=(r>127)+(r>223)+(r>239);if(n+o>e.length)return{s:t,r:Kk(e,n-1)};o?o==3?(r=((r&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):o&1?t+=String.fromCharCode((r&31)<<6|e[n++]&63):t+=String.fromCharCode((r&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(r)}};function Uw(e,t){var n;if(vm)return vm.decode(e);var r=Nve(e),o=r.s,n=r.r;return n.length&&ir(8),o}const{parse:Yk,stringify:Ove}=JSON,{keys:Lve}=Object,_c=String,Xk="string",qw={},ed="object",Jk=(e,t)=>t,Rve=e=>e instanceof _c?_c(e):e,Pve=(e,t)=>typeof t===Xk?new _c(t):t,Ive=(e,t,n,r)=>o=>{for(let l=Lve(o),{length:a}=l,f=0;f<a;f++){const d=l[f],p=o[d];if(p instanceof _c){const m=e[+p];typeof m===ed&&!n.has(m)?(n.add(m),o[d]=qw,t.push({o,k:d,r:m})):o[d]=r.call(o,d,m)}else o[d]!==qw&&(o[d]=r.call(o,d,p))}return o},Vw=(e,t,n)=>{const r=_c(t.push(n)-1);return e.set(n,r),r},ym=(e,t)=>{const n=Yk(e,Pve).map(Rve),r=t||Jk;let o=n[0];if(typeof o===ed&&o){const l=[],a=Ive(n,l,new Set,r);o=a(o);let f=0;for(;f<l.length;){const{o:d,k:p,r:m}=l[f++];d[p]=r.call(d,p,a(m))}}return r.call({"":o},"",o)},Zk=(e,t,n)=>{const r=t&&typeof t===ed?(m,g)=>m===""||-1<t.indexOf(m)?g:void 0:t||Jk,o=new Map,l=[],a=[];let f=+Vw(o,l,r.call({"":e},"",e)),d=!f;for(;f<l.length;)d=!0,a[f]=Ove(l[f++],p,n);return"["+a.join(",")+"]";function p(m,g){if(d)return d=!d,g;const y=r.call(this,m,g);switch(typeof y){case ed:if(y===null)return y;case Xk:return o.get(y)||Vw(o,l,y)}return y}},Dve=e=>Yk(Zk(e)),Gw=()=>{},Sn=()=>Promise.resolve();function Fve(){const e=yr({state:new Ek,waitForConnection:a,reconnect:o,ws:new EventTarget});e.state.filesMap=yr(e.state.filesMap),e.state.idMap=yr(e.state.idMap);let t;const n={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getModuleGraph:async(f,d)=>t.moduleGraph[f]?.[d],getUnhandledErrors:()=>t.unhandledErrors,getExternalResult:Sn,getTransformResult:Sn,onDone:Gw,writeFile:Sn,rerun:Sn,rerunTask:Sn,updateSnapshot:Sn,resolveSnapshotPath:Sn,snapshotSaved:Sn,onAfterSuiteRun:Sn,onCancel:Sn,getCountOfFailedTests:()=>0,sendLog:Sn,resolveSnapshotRawPath:Sn,readSnapshotFile:Sn,saveSnapshotFile:Sn,readTestFile:async f=>t.sources[f],removeSnapshotFile:Sn,onUnhandledError:Gw,saveTestFile:Sn,getProvidedContext:()=>({}),getTestFiles:Sn};e.rpc=n;const r=Promise.resolve();function o(){l()}async function l(){const f=await fetch(window.METADATA_PATH),d=new Uint8Array(await f.arrayBuffer());if(d.length>=2&&d[0]===31&&d[1]===139){const m=Uw(Mve(d));t=ym(m)}else t=ym(Uw(d));const p=new Event("open");e.ws.dispatchEvent(p)}l();function a(){return r}return e}const Kw="q",Yw="s";function zve(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}const Bve=Math.random.bind(Math),Hve="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function jve(e=21){let t="",n=e;for(;n--;)t+=Hve[Bve()*64|0];return t}const Wve=6e4,Qk=e=>e,Uve=Qk,{clearTimeout:Xw,setTimeout:qve}=globalThis;function Vve(e,t){const{post:n,on:r,off:o=()=>{},eventNames:l=[],serialize:a=Qk,deserialize:f=Uve,resolver:d,bind:p="rpc",timeout:m=Wve,proxify:g=!0}=t;let y=!1;const w=new Map;let E,_;async function k(D,U,J,ee){if(y)throw new Error(`[birpc] rpc is closed, cannot call "${D}"`);const X={m:D,a:U,t:Kw};ee&&(X.o=!0);const V=async z=>n(a(z));if(J){await V(X);return}if(E)try{await E}finally{E=void 0}let{promise:q,resolve:P,reject:L}=zve();const T=jve();X.i=T;let S;async function R(z=X){return m>=0&&(S=qve(()=>{try{if(t.onTimeoutError?.call(_,D,U)!==!0)throw new Error(`[birpc] timeout on calling "${D}"`)}catch(ae){L(ae)}w.delete(T)},m),typeof S=="object"&&(S=S.unref?.())),w.set(T,{resolve:P,reject:L,timeoutId:S,method:D}),await V(z),q}try{t.onRequest?await t.onRequest.call(_,X,R,P):await R()}catch(z){if(t.onGeneralError?.call(_,z)!==!0)throw z;return}finally{Xw(S),w.delete(T)}return q}const A={$call:(D,...U)=>k(D,U,!1),$callOptional:(D,...U)=>k(D,U,!1,!0),$callEvent:(D,...U)=>k(D,U,!0),$callRaw:D=>k(D.method,D.args,D.event,D.optional),$rejectPendingCalls:I,get $closed(){return y},get $meta(){return t.meta},$close:N,$functions:e};g?_=new Proxy({},{get(D,U){if(Object.prototype.hasOwnProperty.call(A,U))return A[U];if(U==="then"&&!l.includes("then")&&!("then"in e))return;const J=(...X)=>k(U,X,!0);if(l.includes(U))return J.asEvent=J,J;const ee=(...X)=>k(U,X,!1);return ee.asEvent=J,ee}}):_=A;function N(D){y=!0,w.forEach(({reject:U,method:J})=>{const ee=new Error(`[birpc] rpc is closed, cannot call "${J}"`);if(D)return D.cause??=ee,U(D);U(ee)}),w.clear(),o($)}function I(D){const U=Array.from(w.values()).map(({method:J,reject:ee})=>D?D({method:J,reject:ee}):ee(new Error(`[birpc]: rejected pending call "${J}".`)));return w.clear(),U}async function $(D,...U){let J;try{J=f(D)}catch(ee){if(t.onGeneralError?.call(_,ee)!==!0)throw ee;return}if(J.t===Kw){const{m:ee,a:X,o:V}=J;let q,P,L=await(d?d.call(_,ee,e[ee]):e[ee]);if(V&&(L||=()=>{}),!L)P=new Error(`[birpc] function "${ee}" not found`);else try{q=await L.apply(p==="rpc"?_:e,X)}catch(T){P=T}if(J.i){if(P&&t.onFunctionError&&t.onFunctionError.call(_,P,ee,X)===!0)return;if(!P)try{await n(a({t:Yw,i:J.i,r:q}),...U);return}catch(T){if(P=T,t.onGeneralError?.call(_,T,ee,X)!==!0)throw T}try{await n(a({t:Yw,i:J.i,e:P}),...U)}catch(T){if(t.onGeneralError?.call(_,T,ee,X)!==!0)throw T}}}else{const{i:ee,r:X,e:V}=J,q=w.get(ee);q&&(Xw(q.timeoutId),V?q.reject(V):q.resolve(X)),w.delete(ee)}}return E=r($),_}function Gve(e,t={}){const{handlers:n={},autoReconnect:r=!0,reconnectInterval:o=2e3,reconnectTries:l=10,connectTimeout:a=6e4,reactive:f=N=>N,WebSocketConstructor:d=globalThis.WebSocket}=t;let p=l;const m=f({ws:new d(e),state:new Ek,waitForConnection:A,reconnect:_},"state");m.state.filesMap=f(m.state.filesMap,"filesMap"),m.state.idMap=f(m.state.idMap,"idMap");let g;const y={onTestAnnotate(N,I){n.onTestAnnotate?.(N,I)},onTestArtifactRecord(N,I){n.onTestArtifactRecord?.(N,I)},onSpecsCollected(N,I){N?.forEach(([$,D])=>{m.state.clearFiles({config:$},[D])}),n.onSpecsCollected?.(N,I)},onPathsCollected(N){m.state.collectPaths(N),n.onPathsCollected?.(N)},onCollected(N){m.state.collectFiles(N),n.onCollected?.(N)},onTaskUpdate(N,I){m.state.updateTasks(N),n.onTaskUpdate?.(N,I)},onUserConsoleLog(N){m.state.updateUserLog(N),n.onUserConsoleLog?.(N)},onFinished(N,I,$,D){n.onFinished?.(N,I,$,D)},onFinishedReportCoverage(){n.onFinishedReportCoverage?.()}},w={post:N=>m.ws.send(N),on:N=>g=N,serialize:N=>Zk(N,(I,$)=>$ instanceof Error?{name:$.name,message:$.message,stack:$.stack}:$),deserialize:ym,timeout:-1};m.rpc=Vve(y,w);let E;function _(N=!1){N&&(p=l),m.ws=new d(e),k()}function k(){E=new Promise((N,I)=>{const $=setTimeout(()=>{I(new Error(`Cannot connect to the server in ${a/1e3} seconds`))},a);m.ws.OPEN===m.ws.readyState&&N(),m.ws.addEventListener("open",()=>{p=l,N(),clearTimeout($)})}),m.ws.addEventListener("message",N=>{g(N.data)}),m.ws.addEventListener("close",()=>{p-=1,r&&p>0&&setTimeout(_,o)})}k();function A(){return E}return m}const dt=(function(){return wr?Fve():Gve(dve,{reactive:(t,n)=>n==="state"?yr(t):qt(t),handlers:{onTestAnnotate(t,n){Ne.recordTestArtifact(t,{type:"internal:annotation",annotation:n,location:n.location})},onTestArtifactRecord(t,n){Ne.recordTestArtifact(t,n)},onTaskUpdate(t,n){Ne.resumeRun(t,n),jd.value="running"},onSpecsCollected(t,n){Ne.startTime=n||performance.now()},onFinished(t,n,r,o){Ne.endRun(o),Mo.value=(n||[]).map(Pk)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),ht=qt({}),pl=Ve("CONNECTING"),Qg=qt([]),Yt=we(()=>{const e=Wo.value;return e?$r(e):void 0}),eT=we(()=>zg(Yt.value).map(e=>e?.logs||[]).flat()||[]);function $r(e){const t=dt.state.idMap.get(e);return t||void 0}const Kve=we(()=>pl.value==="OPEN"),Sp=we(()=>pl.value==="CONNECTING");function Yve(){return ev(dt.state.getFiles())}function tT(e){delete e.result;const t=Ne.nodes.get(e.id);if(t&&(t.state=void 0,e.mode="run",t.duration=void 0,jc(e)))for(const n of e.tasks)tT(n)}function Xve(e){const t=Ne.nodes;e.forEach(n=>{delete n.result,zg(n).forEach(o=>{if(delete o.result,t.has(o.id)){const l=t.get(o.id);l&&(l.state=void 0,l.mode="run",l.duration=void 0)}});const r=t.get(n.id);r&&(r.state=void 0,r.mode="run",r.duration=void 0,Kn(r)&&(r.collectDuration=void 0))})}function ev(e){return Xve(e),Ne.startRun(),dt.rpc.rerun(e.map(t=>t.filepath),!0)}function Jve(e){return tT(e),Ne.startRun(),dt.rpc.rerunTask(e.id)}const cr=window.__vitest_browser_runner__;window.__vitest_ui_api__=cve;ct(()=>dt.ws,e=>{pl.value=wr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{pl.value="OPEN",dt.state.filesMap.clear();let[t,n,r]=await Promise.all([dt.rpc.getFiles(),dt.rpc.getConfig(),dt.rpc.getUnhandledErrors()]);const o=n.projects.map(l=>({name:l.name||"",color:l.color}));n.standalone&&(t=(await dt.rpc.getTestFiles()).map(([{name:a,root:f},d])=>{const p=dk(d,f,a);return p.mode="skip",p})),Qg.value=o.map(l=>l.name),Ne.loadFiles(t,o),dt.state.collectFiles(t),Ne.startRun(),Mo.value=(r||[]).map(Pk),ht.value=n}),e.addEventListener("close",()=>{setTimeout(()=>{pl.value==="CONNECTING"&&(pl.value="CLOSED")},1e3)})},{immediate:!0});const Zve=["aria-label","opacity","disabled","hover"],wt=et({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,n)=>(Z(),fe("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:rt(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Wt(t.$slots,"default",{},()=>[Y("span",{class:rt(e.icon),ma:"",block:""},null,2)])],10,Zve))}}),Qve={id:"browser-frame",h:"full",flex:"~ col"},eye={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},tye={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},nye={class:"pointer-events-none","text-sm":""},rye={key:0},iye={id:"tester-ui",ref:"tester-ui"},oye=et({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function n(d){const p=t[d];return pr.value[0]===p[0]&&pr.value[1]===p[1]}async function r(d){pr.value=t[d],cr?.provider==="webdriverio"&&Hk()}const o=XM("tester-ui"),l=Ve(null),a=new ResizeObserver(([d])=>{l.value=d.contentRect});ki(()=>{o.value&&a.observe(o.value)}),Yl(()=>{a.disconnect()});const f=we(()=>l.value?Math.floor(Math.min(l.value.width/pr.value[0],l.value.height/pr.value[1])*100):100);return(d,p)=>{const m=Xn("tooltip");return Z(),fe("div",Qve,[Y("div",eye,[st(Ce(wt,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:p[0]||(p[0]=g=>j(lve)())},null,512),[[Lo,j($n).navigation<=15],[m,"Show Navigation Panel",void 0,{bottom:!0}]]),p[5]||(p[5]=Y("div",{class:"i-carbon-content-delivery-network"},null,-1)),p[6]||(p[6]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),st(Ce(wt,{title:"Show Details Panel",icon:"i-carbon:side-panel-close",onClick:p[1]||(p[1]=g=>Gi.value=!0)},null,512),[[Lo,j(mn)==="right"&&!j(Gi)],[m,"Show Details Panel",void 0,{bottom:!0}]])]),Y("div",tye,[st(Ce(wt,{title:"Small mobile",icon:"i-carbon:mobile",active:n("small-mobile"),onClick:p[2]||(p[2]=g=>r("small-mobile"))},null,8,["active"]),[[m,"Small mobile",void 0,{bottom:!0}]]),st(Ce(wt,{title:"Large mobile",icon:"i-carbon:mobile-add",active:n("large-mobile"),onClick:p[3]||(p[3]=g=>r("large-mobile"))},null,8,["active"]),[[m,"Large mobile",void 0,{bottom:!0}]]),st(Ce(wt,{title:"Tablet",icon:"i-carbon:tablet",active:n("tablet"),onClick:p[4]||(p[4]=g=>r("tablet"))},null,8,["active"]),[[m,"Tablet",void 0,{bottom:!0}]]),Y("span",nye,[Qe(Ee(j(pr)[0])+"x"+Ee(j(pr)[1])+"px ",1),f.value<100?(Z(),fe("span",rye,"("+Ee(f.value)+"%)",1)):Pe("",!0)])]),Y("div",iye," Select a test to run ",512)])}}}),Jw=no(oye,[["__scopeId","data-v-db10b46c"]]),Wd=et({__name:"DetailsHeaderButtons",setup(e){function t(n){return mn.value==="right"?n==="hide"?"rotate-180":"":n==="hide"?"-rotate-90":"rotate-90"}return(n,r)=>{const o=Xn("tooltip");return Z(),fe(nt,null,[st(Ce(wt,{title:`Switch panel position (${j(mn)==="bottom"?"right":"bottom"})`,icon:"i-carbon-split-screen",class:rt({"rotate-90":j(mn)==="right"}),onClick:j(ave)},null,8,["title","class","onClick"]),[[o,`Switch panel position (${j(mn)==="bottom"?"right":"bottom"})`,void 0,{bottom:!0}]]),j(Gi)?st((Z(),We(wt,{key:0,title:j(mn)==="right"?"Hide Right Panel":"Hide Bottom Panel",icon:"i-carbon:side-panel-close",class:rt(t("hide")),onClick:j(tve)},null,8,["title","class","onClick"])),[[o,j(mn)==="right"?"Hide Right Panel":"Hide Bottom Panel",void 0,{bottom:!0}]]):Pe("",!0),st(Ce(wt,{title:j(mn)==="right"?"Show Right Panel":"Show Bottom Panel",icon:"i-carbon:side-panel-close",class:rt(t("show")),onClick:j(nve)},null,8,["title","class","onClick"]),[[Lo,!j(Gi)],[o,j(mn)==="right"?"Show Right Panel":"Show Bottom Panel",void 0,{bottom:!0}]])],64)}}}),sye={p:"2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},lye=et({__name:"ClosedDetailsHeader",setup(e){return(t,n)=>(Z(),fe("div",sye,[n[0]||(n[0]=Y("div",{"flex-1":""},null,-1)),Ce(Wd)]))}}),aye={"text-2xl":""},cye={"text-lg":"",op50:""},uye=et({__name:"ConnectionOverlay",setup(e){return(t,n)=>j(Kve)?Pe("",!0):(Z(),fe("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:n[0]||(n[0]=(...r)=>j(dt).reconnect&&j(dt).reconnect(...r))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:rt(j(Sp)?"animate-pulse":"")},[Y("div",{text:"5xl",class:rt(j(Sp)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",aye,Ee(j(Sp)?"Connecting...":"Disconnected"),1),Y("div",cye," Check your terminal or start a new server with `"+Ee(j(cr)?`vitest --browser=${j(cr).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),fye={h:"full",flex:"~ col"},dye={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Zw=et({__name:"Coverage",setup(e){return(t,n)=>(Z(),fe("div",fye,[Y("div",dye,[n[0]||(n[0]=Y("div",{class:"i-carbon:folder-details-reference"},null,-1)),n[1]||(n[1]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage",-1)),j(cr)?(Z(),We(Wd,{key:0})):Pe("",!0)]),n[2]||(n[2]=Y("div",{"flex-auto":"","py-1":"","bg-white":""},[Y("iframe",{id:"vitest-ui-coverage",src:"./coverage/index.html"})],-1))]))}}),hye={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},pye={"font-bold":""},mye={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},gye=["font-bold"],vye={text:"red500/70"},yye={key:1,text:"sm","mb-2":""},bye={"font-bold":""},wye={key:2,text:"sm","mb-2":""},xye={"font-bold":""},Sye=et({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,n)=>(Z(),fe(nt,null,[Y("h4",hye,[Y("span",pye,[Qe(Ee(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(Z(),fe(nt,{key:0},[Qe(":")],64)):Pe("",!0)]),Qe(" "+Ee(e.error.message),1)]),e.error.stacks?.length?(Z(),fe("p",mye,[(Z(!0),fe(nt,null,vn(e.error.stacks,(r,o)=>(Z(),fe("span",{key:o,"whitespace-pre":"","font-bold":o===0?"":null},[Qe("❯ "+Ee(r.method)+" "+Ee(r.file)+":",1),Y("span",vye,Ee(r.line)+":"+Ee(r.column),1),n[0]||(n[0]=Y("br",null,null,-1))],8,gye))),128))])):Pe("",!0),e.error.VITEST_TEST_PATH?(Z(),fe("p",yye,[n[1]||(n[1]=Qe(" This error originated in ",-1)),Y("span",bye,Ee(e.error.VITEST_TEST_PATH),1),n[2]||(n[2]=Qe(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):Pe("",!0),e.error.VITEST_TEST_NAME?(Z(),fe("div",wye,[n[3]||(n[3]=Qe(" The latest test that might've caused the error is ",-1)),Y("span",xye,Ee(e.error.VITEST_TEST_NAME),1),n[4]||(n[4]=Qe(". It might mean one of the following:",-1)),n[5]||(n[5]=Y("br",null,null,-1)),n[6]||(n[6]=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))])):Pe("",!0)],64))}}),_ye={"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:""},kye={class:"number","data-testid":"num-files"},Tye={class:"number"},Cye={class:"number","text-purple-700":"","dark:text-purple-400":""},Eye={class:"number","text-red-700":"","dark:text-red-500":""},Aye={class:"number","text-red-700":"","dark:text-red-500":""},Mye={class:"number","text-red-700":"","dark:text-red-500":""},$ye={class:"number","data-testid":"run-time"},Nye={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Oye={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Lye={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Rye=et({__name:"TestFilesEntry",setup(e){return(t,n)=>(Z(),fe(nt,null,[Y("div",_ye,[n[10]||(n[10]=Y("div",{"i-carbon-document":""},null,-1)),n[11]||(n[11]=Y("div",null,"Files",-1)),Y("div",kye,Ee(j(Ne).summary.files),1),j(Ne).summary.filesSuccess?(Z(),fe(nt,{key:0},[n[0]||(n[0]=Y("div",{"i-carbon-checkmark":""},null,-1)),n[1]||(n[1]=Y("div",null,"Pass",-1)),Y("div",Tye,Ee(j(Ne).summary.filesSuccess),1)],64)):Pe("",!0),j(Ne).summary.filesSkipped?(Z(),fe(nt,{key:1},[n[2]||(n[2]=Y("div",{"i-carbon:redo":"","rotate-90":""},null,-1)),n[3]||(n[3]=Y("div",null," Skip ",-1)),Y("div",Cye,Ee(j(Ne).summary.filesSkipped),1)],64)):Pe("",!0),j(Ne).summary.filesFailed?(Z(),fe(nt,{key:2},[n[4]||(n[4]=Y("div",{"i-carbon-close":""},null,-1)),n[5]||(n[5]=Y("div",null," Fail ",-1)),Y("div",Eye,Ee(j(Ne).summary.filesFailed),1)],64)):Pe("",!0),j(Ne).summary.filesSnapshotFailed?(Z(),fe(nt,{key:3},[n[6]||(n[6]=Y("div",{"i-carbon-compare":""},null,-1)),n[7]||(n[7]=Y("div",null," Snapshot Fail ",-1)),Y("div",Aye,Ee(j(Ne).summary.filesSnapshotFailed),1)],64)):Pe("",!0),j(Mo).length?(Z(),fe(nt,{key:4},[n[8]||(n[8]=Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),n[9]||(n[9]=Y("div",null," Errors ",-1)),Y("div",Mye,Ee(j(Mo).length),1)],64)):Pe("",!0),n[12]||(n[12]=Y("div",{"i-carbon-timer":""},null,-1)),n[13]||(n[13]=Y("div",null,"Time",-1)),Y("div",$ye,Ee(j(Ne).summary.time),1)]),j(Mo).length?(Z(),fe("div",Nye,[n[17]||(n[17]=Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),Y("p",Oye,[Qe(" Vitest caught "+Ee(j(Mo).length)+" error"+Ee(j(Mo).length>1?"s":"")+" during the test run.",1),n[14]||(n[14]=Y("br",null,null,-1)),n[15]||(n[15]=Qe(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),Y("details",Lye,[n[16]||(n[16]=Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(Z(!0),fe(nt,null,vn(j(Mo),(r,o)=>(Z(),We(Sye,{key:o,error:r},null,8,["error"]))),128))])])):Pe("",!0)],64))}}),Pye=no(Rye,[["__scopeId","data-v-cfae3633"]]),Iye={"p-2":"","text-center":"",flex:""},Dye={"text-4xl":"","min-w-2em":""},Fye={"text-md":""},us=et({__name:"DashboardEntry",setup(e){return(t,n)=>(Z(),fe("div",Iye,[Y("div",null,[Y("div",Dye,[Wt(t.$slots,"body")]),Y("div",Fye,[Wt(t.$slots,"header")])])]))}}),zye={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:"","data-testid":"tests-entry"},Bye=et({__name:"TestsEntry",setup(e){function t(n){Ze.success=!1,Ze.failed=!1,Ze.skipped=!1,Ze.slow=!1,n!=="total"&&(Ze[n]=!0)}return(n,r)=>(Z(),fe("div",zye,[Ce(us,{"text-green-700":"","dark:text-green-500":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:r[0]||(r[0]=o=>t("success"))},{header:ze(()=>[...r[5]||(r[5]=[Qe(" Pass ",-1)])]),body:ze(()=>[Qe(Ee(j(Ne).summary.testsSuccess),1)]),_:1}),Ce(us,{class:rt({"text-red-700 dark:text-red-500":j(Ne).summary.testsFailed,op50:!j(Ne).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:r[1]||(r[1]=o=>t("failed"))},{header:ze(()=>[...r[6]||(r[6]=[Qe(" Fail ",-1)])]),body:ze(()=>[Qe(Ee(j(Ne).summary.testsFailed),1)]),_:1},8,["class"]),j(Ne).summary.testsExpectedFail?(Z(),We(us,{key:0,"text-cyan-700":"","dark:text-cyan-500":"","data-testid":"expected-fail-entry"},{header:ze(()=>[...r[7]||(r[7]=[Qe(" Expected Fail ",-1)])]),body:ze(()=>[Qe(Ee(j(Ne).summary.testsExpectedFail),1)]),_:1})):Pe("",!0),j(Ne).summary.testsSkipped?(Z(),We(us,{key:1,"text-purple-700":"","dark:text-purple-400":"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:r[2]||(r[2]=o=>t("skipped"))},{header:ze(()=>[...r[8]||(r[8]=[Qe(" Skip ",-1)])]),body:ze(()=>[Qe(Ee(j(Ne).summary.testsSkipped),1)]),_:1})):Pe("",!0),j(Ne).summary.testsTodo?(Z(),We(us,{key:2,op50:"","data-testid":"todo-entry"},{header:ze(()=>[...r[9]||(r[9]=[Qe(" Todo ",-1)])]),body:ze(()=>[Qe(Ee(j(Ne).summary.testsTodo),1)]),_:1})):Pe("",!0),Ce(us,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:r[3]||(r[3]=o=>t("total"))},{header:ze(()=>[...r[10]||(r[10]=[Qe(" Total ",-1)])]),body:ze(()=>[Qe(Ee(j(Ne).summary.totalTests),1)]),_:1}),j(Ne).summary.testsSlow?(Z(),We(us,{key:3,"text-yellow-700":"","dark:text-yellow-500":"","data-testid":"slow-entry","cursor-pointer":"",hover:"op80",onClick:r[4]||(r[4]=o=>t("slow"))},{header:ze(()=>[...r[11]||(r[11]=[Qe(" Slow ",-1)])]),body:ze(()=>[Qe(Ee(j(Ne).summary.testsSlow),1)]),_:1})):Pe("",!0)]))}}),Hye={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},jye={key:0,class:"text-gray-5"},Wye={"aria-labelledby":"tests",m:"y-4 x-2"},Uye=et({__name:"TestsFilesContainer",setup(e){return(t,n)=>(Z(),fe("div",Hye,[j(Ne).summary.files===0&&j(gs)?(Z(),fe("div",jye," No tests found ")):Pe("",!0),Y("section",Wye,[Ce(Bye)]),Ce(Pye)]))}}),qye={h:"full",flex:"~ col"},Vye={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Gye={class:"scrolls","flex-auto":"","py-1":""},Qw=et({__name:"Dashboard",setup(e){return(t,n)=>(Z(),fe("div",qye,[Y("div",Vye,[n[0]||(n[0]=Y("div",{class:"i-carbon-dashboard"},null,-1)),n[1]||(n[1]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard",-1)),j(cr)?(Z(),We(Wd,{key:0})):Pe("",!0)]),Y("div",Gye,[Ce(Uye)])]))}});var _p,ex;function Kye(){if(ex)return _p;ex=1;var e=function(N){return t(N)&&!n(N)};function t(A){return!!A&&typeof A=="object"}function n(A){var N=Object.prototype.toString.call(A);return N==="[object RegExp]"||N==="[object Date]"||l(A)}var r=typeof Symbol=="function"&&Symbol.for,o=r?Symbol.for("react.element"):60103;function l(A){return A.$$typeof===o}function a(A){return Array.isArray(A)?[]:{}}function f(A,N){return N.clone!==!1&&N.isMergeableObject(A)?_(a(A),A,N):A}function d(A,N,I){return A.concat(N).map(function($){return f($,I)})}function p(A,N){if(!N.customMerge)return _;var I=N.customMerge(A);return typeof I=="function"?I:_}function m(A){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(A).filter(function(N){return Object.propertyIsEnumerable.call(A,N)}):[]}function g(A){return Object.keys(A).concat(m(A))}function y(A,N){try{return N in A}catch{return!1}}function w(A,N){return y(A,N)&&!(Object.hasOwnProperty.call(A,N)&&Object.propertyIsEnumerable.call(A,N))}function E(A,N,I){var $={};return I.isMergeableObject(A)&&g(A).forEach(function(D){$[D]=f(A[D],I)}),g(N).forEach(function(D){w(A,D)||(y(A,D)&&I.isMergeableObject(N[D])?$[D]=p(D,I)(A[D],N[D],I):$[D]=f(N[D],I))}),$}function _(A,N,I){I=I||{},I.arrayMerge=I.arrayMerge||d,I.isMergeableObject=I.isMergeableObject||e,I.cloneUnlessOtherwiseSpecified=f;var $=Array.isArray(N),D=Array.isArray(A),U=$===D;return U?$?I.arrayMerge(A,N,I):E(A,N,I):f(N,I)}_.all=function(N,I){if(!Array.isArray(N))throw new Error("first argument should be an array");return N.reduce(function($,D){return _($,D,I)},{})};var k=_;return _p=k,_p}var Yye=Kye();const Xye=Gg(Yye);function Jye(e,t){let n;return(...r)=>{n!==void 0&&clearTimeout(n),n=setTimeout(()=>e(...r),t)}}var bm="http://www.w3.org/1999/xhtml";const tx={svg:"http://www.w3.org/2000/svg",xhtml:bm,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ud(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),tx.hasOwnProperty(t)?{space:tx[t],local:e}:e}function Zye(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===bm&&t.documentElement.namespaceURI===bm?t.createElement(e):t.createElementNS(n,e)}}function Qye(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function nT(e){var t=Ud(e);return(t.local?Qye:Zye)(t)}function e0e(){}function tv(e){return e==null?e0e:function(){return this.querySelector(e)}}function t0e(e){typeof e!="function"&&(e=tv(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var l=t[o],a=l.length,f=r[o]=new Array(a),d,p,m=0;m<a;++m)(d=l[m])&&(p=e.call(d,d.__data__,m,l))&&("__data__"in d&&(p.__data__=d.__data__),f[m]=p);return new Sr(r,this._parents)}function n0e(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function r0e(){return[]}function rT(e){return e==null?r0e:function(){return this.querySelectorAll(e)}}function i0e(e){return function(){return n0e(e.apply(this,arguments))}}function o0e(e){typeof e=="function"?e=i0e(e):e=rT(e);for(var t=this._groups,n=t.length,r=[],o=[],l=0;l<n;++l)for(var a=t[l],f=a.length,d,p=0;p<f;++p)(d=a[p])&&(r.push(e.call(d,d.__data__,p,a)),o.push(d));return new Sr(r,o)}function iT(e){return function(){return this.matches(e)}}function oT(e){return function(t){return t.matches(e)}}var s0e=Array.prototype.find;function l0e(e){return function(){return s0e.call(this.children,e)}}function a0e(){return this.firstElementChild}function c0e(e){return this.select(e==null?a0e:l0e(typeof e=="function"?e:oT(e)))}var u0e=Array.prototype.filter;function f0e(){return Array.from(this.children)}function d0e(e){return function(){return u0e.call(this.children,e)}}function h0e(e){return this.selectAll(e==null?f0e:d0e(typeof e=="function"?e:oT(e)))}function p0e(e){typeof e!="function"&&(e=iT(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var l=t[o],a=l.length,f=r[o]=[],d,p=0;p<a;++p)(d=l[p])&&e.call(d,d.__data__,p,l)&&f.push(d);return new Sr(r,this._parents)}function sT(e){return new Array(e.length)}function m0e(){return new Sr(this._enter||this._groups.map(sT),this._parents)}function td(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}td.prototype={constructor:td,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 g0e(e){return function(){return e}}function v0e(e,t,n,r,o,l){for(var a=0,f,d=t.length,p=l.length;a<p;++a)(f=t[a])?(f.__data__=l[a],r[a]=f):n[a]=new td(e,l[a]);for(;a<d;++a)(f=t[a])&&(o[a]=f)}function y0e(e,t,n,r,o,l,a){var f,d,p=new Map,m=t.length,g=l.length,y=new Array(m),w;for(f=0;f<m;++f)(d=t[f])&&(y[f]=w=a.call(d,d.__data__,f,t)+"",p.has(w)?o[f]=d:p.set(w,d));for(f=0;f<g;++f)w=a.call(e,l[f],f,l)+"",(d=p.get(w))?(r[f]=d,d.__data__=l[f],p.delete(w)):n[f]=new td(e,l[f]);for(f=0;f<m;++f)(d=t[f])&&p.get(y[f])===d&&(o[f]=d)}function b0e(e){return e.__data__}function w0e(e,t){if(!arguments.length)return Array.from(this,b0e);var n=t?y0e:v0e,r=this._parents,o=this._groups;typeof e!="function"&&(e=g0e(e));for(var l=o.length,a=new Array(l),f=new Array(l),d=new Array(l),p=0;p<l;++p){var m=r[p],g=o[p],y=g.length,w=x0e(e.call(m,m&&m.__data__,p,r)),E=w.length,_=f[p]=new Array(E),k=a[p]=new Array(E),A=d[p]=new Array(y);n(m,g,_,k,A,w,t);for(var N=0,I=0,$,D;N<E;++N)if($=_[N]){for(N>=I&&(I=N+1);!(D=k[I])&&++I<E;);$._next=D||null}}return a=new Sr(a,r),a._enter=f,a._exit=d,a}function x0e(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function S0e(){return new Sr(this._exit||this._groups.map(sT),this._parents)}function _0e(e,t,n){var r=this.enter(),o=this,l=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?l.remove():n(l),r&&o?r.merge(o).order():o}function k0e(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,l=r.length,a=Math.min(o,l),f=new Array(o),d=0;d<a;++d)for(var p=n[d],m=r[d],g=p.length,y=f[d]=new Array(g),w,E=0;E<g;++E)(w=p[E]||m[E])&&(y[E]=w);for(;d<o;++d)f[d]=n[d];return new Sr(f,this._parents)}function T0e(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],o=r.length-1,l=r[o],a;--o>=0;)(a=r[o])&&(l&&a.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(a,l),l=a);return this}function C0e(e){e||(e=E0e);function t(g,y){return g&&y?e(g.__data__,y.__data__):!g-!y}for(var n=this._groups,r=n.length,o=new Array(r),l=0;l<r;++l){for(var a=n[l],f=a.length,d=o[l]=new Array(f),p,m=0;m<f;++m)(p=a[m])&&(d[m]=p);d.sort(t)}return new Sr(o,this._parents).order()}function E0e(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function A0e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function M0e(){return Array.from(this)}function $0e(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,l=r.length;o<l;++o){var a=r[o];if(a)return a}return null}function N0e(){let e=0;for(const t of this)++e;return e}function O0e(){return!this.node()}function L0e(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],l=0,a=o.length,f;l<a;++l)(f=o[l])&&e.call(f,f.__data__,l,o);return this}function R0e(e){return function(){this.removeAttribute(e)}}function P0e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function I0e(e,t){return function(){this.setAttribute(e,t)}}function D0e(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function F0e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function z0e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function B0e(e,t){var n=Ud(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?P0e:R0e:typeof t=="function"?n.local?z0e:F0e:n.local?D0e:I0e)(n,t))}function lT(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function H0e(e){return function(){this.style.removeProperty(e)}}function j0e(e,t,n){return function(){this.style.setProperty(e,t,n)}}function W0e(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function U0e(e,t,n){return arguments.length>1?this.each((t==null?H0e:typeof t=="function"?W0e:j0e)(e,t,n??"")):Fl(this.node(),e)}function Fl(e,t){return e.style.getPropertyValue(t)||lT(e).getComputedStyle(e,null).getPropertyValue(t)}function q0e(e){return function(){delete this[e]}}function V0e(e,t){return function(){this[e]=t}}function G0e(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function K0e(e,t){return arguments.length>1?this.each((t==null?q0e:typeof t=="function"?G0e:V0e)(e,t)):this.node()[e]}function aT(e){return e.trim().split(/^|\s+/)}function nv(e){return e.classList||new cT(e)}function cT(e){this._node=e,this._names=aT(e.getAttribute("class")||"")}cT.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 uT(e,t){for(var n=nv(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function fT(e,t){for(var n=nv(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function Y0e(e){return function(){uT(this,e)}}function X0e(e){return function(){fT(this,e)}}function J0e(e,t){return function(){(t.apply(this,arguments)?uT:fT)(this,e)}}function Z0e(e,t){var n=aT(e+"");if(arguments.length<2){for(var r=nv(this.node()),o=-1,l=n.length;++o<l;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?J0e:t?Y0e:X0e)(n,t))}function Q0e(){this.textContent=""}function ebe(e){return function(){this.textContent=e}}function tbe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function nbe(e){return arguments.length?this.each(e==null?Q0e:(typeof e=="function"?tbe:ebe)(e)):this.node().textContent}function rbe(){this.innerHTML=""}function ibe(e){return function(){this.innerHTML=e}}function obe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function sbe(e){return arguments.length?this.each(e==null?rbe:(typeof e=="function"?obe:ibe)(e)):this.node().innerHTML}function lbe(){this.nextSibling&&this.parentNode.appendChild(this)}function abe(){return this.each(lbe)}function cbe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ube(){return this.each(cbe)}function fbe(e){var t=typeof e=="function"?e:nT(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function dbe(){return null}function hbe(e,t){var n=typeof e=="function"?e:nT(e),r=t==null?dbe:typeof t=="function"?t:tv(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function pbe(){var e=this.parentNode;e&&e.removeChild(this)}function mbe(){return this.each(pbe)}function gbe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function vbe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ybe(e){return this.select(e?vbe:gbe)}function bbe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function wbe(e){return function(t){e.call(this,t,this.__data__)}}function xbe(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Sbe(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,o=t.length,l;n<o;++n)l=t[n],(!e.type||l.type===e.type)&&l.name===e.name?this.removeEventListener(l.type,l.listener,l.options):t[++r]=l;++r?t.length=r:delete this.__on}}}function _be(e,t,n){return function(){var r=this.__on,o,l=wbe(t);if(r){for(var a=0,f=r.length;a<f;++a)if((o=r[a]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=l,o.options=n),o.value=t;return}}this.addEventListener(e.type,l,n),o={type:e.type,name:e.name,value:t,listener:l,options:n},r?r.push(o):this.__on=[o]}}function kbe(e,t,n){var r=xbe(e+""),o,l=r.length,a;if(arguments.length<2){var f=this.node().__on;if(f){for(var d=0,p=f.length,m;d<p;++d)for(o=0,m=f[d];o<l;++o)if((a=r[o]).type===m.type&&a.name===m.name)return m.value}return}for(f=t?_be:Sbe,o=0;o<l;++o)this.each(f(r[o],t,n));return this}function dT(e,t,n){var r=lT(e),o=r.CustomEvent;typeof o=="function"?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Tbe(e,t){return function(){return dT(this,e,t)}}function Cbe(e,t){return function(){return dT(this,e,t.apply(this,arguments))}}function Ebe(e,t){return this.each((typeof t=="function"?Cbe:Tbe)(e,t))}function*Abe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,l=r.length,a;o<l;++o)(a=r[o])&&(yield a)}var hT=[null];function Sr(e,t){this._groups=e,this._parents=t}function Vc(){return new Sr([[document.documentElement]],hT)}function Mbe(){return this}Sr.prototype=Vc.prototype={constructor:Sr,select:t0e,selectAll:o0e,selectChild:c0e,selectChildren:h0e,filter:p0e,data:w0e,enter:m0e,exit:S0e,join:_0e,merge:k0e,selection:Mbe,order:T0e,sort:C0e,call:A0e,nodes:M0e,node:$0e,size:N0e,empty:O0e,each:L0e,attr:B0e,style:U0e,property:K0e,classed:Z0e,text:nbe,html:sbe,raise:abe,lower:ube,append:fbe,insert:hbe,remove:mbe,clone:ybe,datum:bbe,on:kbe,dispatch:Ebe,[Symbol.iterator]:Abe};function sr(e){return typeof e=="string"?new Sr([[document.querySelector(e)]],[document.documentElement]):new Sr([[e]],hT)}function $be(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Bi(e,t){if(e=$be(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}var zl=class Fi{x;y;static of([t,n]){return new Fi(t,n)}constructor(t,n){this.x=t,this.y=n}add(t){return new Fi(this.x+t.x,this.y+t.y)}subtract(t){return new Fi(this.x-t.x,this.y-t.y)}multiply(t){return new Fi(this.x*t,this.y*t)}divide(t){return new Fi(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 Fi(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 Fi(this.x/t,this.y/t)}rotateByRadians(t){const n=Math.cos(t),r=Math.sin(t);return new Fi(this.x*n-this.y*r,this.x*r+this.y*n)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},Nbe={value:()=>{}};function Gc(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new vf(n)}function vf(e){this._=e}function Obe(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}vf.prototype=Gc.prototype={constructor:vf,on:function(e,t){var n=this._,r=Obe(e+"",n),o,l=-1,a=r.length;if(arguments.length<2){for(;++l<a;)if((o=(e=r[l]).type)&&(o=Lbe(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++l<a;)if(o=(e=r[l]).type)n[o]=nx(n[o],e.name,t);else if(t==null)for(o in n)n[o]=nx(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new vf(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,l;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(l=this._[e],r=0,o=l.length;r<o;++r)l[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,l=r.length;o<l;++o)r[o].value.apply(t,n)}};function Lbe(e,t){for(var n=0,r=e.length,o;n<r;++n)if((o=e[n]).name===t)return o.value}function nx(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=Nbe,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}const Rbe={passive:!1},kc={capture:!0,passive:!1};function kp(e){e.stopImmediatePropagation()}function Cl(e){e.preventDefault(),e.stopImmediatePropagation()}function pT(e){var t=e.document.documentElement,n=sr(e).on("dragstart.drag",Cl,kc);"onselectstart"in t?n.on("selectstart.drag",Cl,kc):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function mT(e,t){var n=e.document.documentElement,r=sr(e).on("dragstart.drag",null);t&&(r.on("click.drag",Cl,kc),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Wu=e=>()=>e;function wm(e,{sourceEvent:t,subject:n,target:r,identifier:o,active:l,x:a,y:f,dx:d,dy:p,dispatch:m}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:l,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:f,enumerable:!0,configurable:!0},dx:{value:d,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:m}})}wm.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Pbe(e){return!e.ctrlKey&&!e.button}function Ibe(){return this.parentNode}function Dbe(e,t){return t??{x:e.x,y:e.y}}function Fbe(){return navigator.maxTouchPoints||"ontouchstart"in this}function zbe(){var e=Pbe,t=Ibe,n=Dbe,r=Fbe,o={},l=Gc("start","drag","end"),a=0,f,d,p,m,g=0;function y($){$.on("mousedown.drag",w).filter(r).on("touchstart.drag",k).on("touchmove.drag",A,Rbe).on("touchend.drag touchcancel.drag",N).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w($,D){if(!(m||!e.call(this,$,D))){var U=I(this,t.call(this,$,D),$,D,"mouse");U&&(sr($.view).on("mousemove.drag",E,kc).on("mouseup.drag",_,kc),pT($.view),kp($),p=!1,f=$.clientX,d=$.clientY,U("start",$))}}function E($){if(Cl($),!p){var D=$.clientX-f,U=$.clientY-d;p=D*D+U*U>g}o.mouse("drag",$)}function _($){sr($.view).on("mousemove.drag mouseup.drag",null),mT($.view,p),Cl($),o.mouse("end",$)}function k($,D){if(e.call(this,$,D)){var U=$.changedTouches,J=t.call(this,$,D),ee=U.length,X,V;for(X=0;X<ee;++X)(V=I(this,J,$,D,U[X].identifier,U[X]))&&(kp($),V("start",$,U[X]))}}function A($){var D=$.changedTouches,U=D.length,J,ee;for(J=0;J<U;++J)(ee=o[D[J].identifier])&&(Cl($),ee("drag",$,D[J]))}function N($){var D=$.changedTouches,U=D.length,J,ee;for(m&&clearTimeout(m),m=setTimeout(function(){m=null},500),J=0;J<U;++J)(ee=o[D[J].identifier])&&(kp($),ee("end",$,D[J]))}function I($,D,U,J,ee,X){var V=l.copy(),q=Bi(X||U,D),P,L,T;if((T=n.call($,new wm("beforestart",{sourceEvent:U,target:y,identifier:ee,active:a,x:q[0],y:q[1],dx:0,dy:0,dispatch:V}),J))!=null)return P=T.x-q[0]||0,L=T.y-q[1]||0,function S(R,z,ae){var ve=q,_e;switch(R){case"start":o[ee]=S,_e=a++;break;case"end":delete o[ee],--a;case"drag":q=Bi(ae||z,D),_e=a;break}V.call(R,$,new wm(R,{sourceEvent:z,subject:T,target:y,identifier:ee,active:_e,x:q[0]+P,y:q[1]+L,dx:q[0]-ve[0],dy:q[1]-ve[1],dispatch:V}),J)}}return y.filter=function($){return arguments.length?(e=typeof $=="function"?$:Wu(!!$),y):e},y.container=function($){return arguments.length?(t=typeof $=="function"?$:Wu($),y):t},y.subject=function($){return arguments.length?(n=typeof $=="function"?$:Wu($),y):n},y.touchable=function($){return arguments.length?(r=typeof $=="function"?$:Wu(!!$),y):r},y.on=function(){var $=l.on.apply(l,arguments);return $===l?y:$},y.clickDistance=function($){return arguments.length?(g=($=+$)*$,y):Math.sqrt(g)},y}function rv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function gT(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Kc(){}var Tc=.7,nd=1/Tc,El="\\s*([+-]?\\d+)\\s*",Cc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bbe=/^#([0-9a-f]{3,8})$/,Hbe=new RegExp(`^rgb\\(${El},${El},${El}\\)$`),jbe=new RegExp(`^rgb\\(${xi},${xi},${xi}\\)$`),Wbe=new RegExp(`^rgba\\(${El},${El},${El},${Cc}\\)$`),Ube=new RegExp(`^rgba\\(${xi},${xi},${xi},${Cc}\\)$`),qbe=new RegExp(`^hsl\\(${Cc},${xi},${xi}\\)$`),Vbe=new RegExp(`^hsla\\(${Cc},${xi},${xi},${Cc}\\)$`),rx={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};rv(Kc,Ec,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ix,formatHex:ix,formatHex8:Gbe,formatHsl:Kbe,formatRgb:ox,toString:ox});function ix(){return this.rgb().formatHex()}function Gbe(){return this.rgb().formatHex8()}function Kbe(){return vT(this).formatHsl()}function ox(){return this.rgb().formatRgb()}function Ec(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Bbe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?sx(t):n===3?new ar(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Uu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Uu(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=Hbe.exec(e))?new ar(t[1],t[2],t[3],1):(t=jbe.exec(e))?new ar(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Wbe.exec(e))?Uu(t[1],t[2],t[3],t[4]):(t=Ube.exec(e))?Uu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=qbe.exec(e))?cx(t[1],t[2]/100,t[3]/100,1):(t=Vbe.exec(e))?cx(t[1],t[2]/100,t[3]/100,t[4]):rx.hasOwnProperty(e)?sx(rx[e]):e==="transparent"?new ar(NaN,NaN,NaN,0):null}function sx(e){return new ar(e>>16&255,e>>8&255,e&255,1)}function Uu(e,t,n,r){return r<=0&&(e=t=n=NaN),new ar(e,t,n,r)}function Ybe(e){return e instanceof Kc||(e=Ec(e)),e?(e=e.rgb(),new ar(e.r,e.g,e.b,e.opacity)):new ar}function xm(e,t,n,r){return arguments.length===1?Ybe(e):new ar(e,t,n,r??1)}function ar(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}rv(ar,xm,gT(Kc,{brighter(e){return e=e==null?nd:Math.pow(nd,e),new ar(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Tc:Math.pow(Tc,e),new ar(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ar(_s(this.r),_s(this.g),_s(this.b),rd(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:lx,formatHex:lx,formatHex8:Xbe,formatRgb:ax,toString:ax}));function lx(){return`#${vs(this.r)}${vs(this.g)}${vs(this.b)}`}function Xbe(){return`#${vs(this.r)}${vs(this.g)}${vs(this.b)}${vs((isNaN(this.opacity)?1:this.opacity)*255)}`}function ax(){const e=rd(this.opacity);return`${e===1?"rgb(":"rgba("}${_s(this.r)}, ${_s(this.g)}, ${_s(this.b)}${e===1?")":`, ${e})`}`}function rd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _s(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function vs(e){return e=_s(e),(e<16?"0":"")+e.toString(16)}function cx(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qr(e,t,n,r)}function vT(e){if(e instanceof qr)return new qr(e.h,e.s,e.l,e.opacity);if(e instanceof Kc||(e=Ec(e)),!e)return new qr;if(e instanceof qr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),l=Math.max(t,n,r),a=NaN,f=l-o,d=(l+o)/2;return f?(t===l?a=(n-r)/f+(n<r)*6:n===l?a=(r-t)/f+2:a=(t-n)/f+4,f/=d<.5?l+o:2-l-o,a*=60):f=d>0&&d<1?0:a,new qr(a,f,d,e.opacity)}function Jbe(e,t,n,r){return arguments.length===1?vT(e):new qr(e,t,n,r??1)}function qr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}rv(qr,Jbe,gT(Kc,{brighter(e){return e=e==null?nd:Math.pow(nd,e),new qr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Tc:Math.pow(Tc,e),new qr(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ar(Tp(e>=240?e-240:e+120,o,r),Tp(e,o,r),Tp(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new qr(ux(this.h),qu(this.s),qu(this.l),rd(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=rd(this.opacity);return`${e===1?"hsl(":"hsla("}${ux(this.h)}, ${qu(this.s)*100}%, ${qu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ux(e){return e=(e||0)%360,e<0?e+360:e}function qu(e){return Math.max(0,Math.min(1,e||0))}function Tp(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const yT=e=>()=>e;function Zbe(e,t){return function(n){return e+n*t}}function Qbe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function ewe(e){return(e=+e)==1?bT:function(t,n){return n-t?Qbe(t,n,e):yT(isNaN(t)?n:t)}}function bT(e,t){var n=t-e;return n?Zbe(e,n):yT(isNaN(e)?t:e)}const fx=(function e(t){var n=ewe(t);function r(o,l){var a=n((o=xm(o)).r,(l=xm(l)).r),f=n(o.g,l.g),d=n(o.b,l.b),p=bT(o.opacity,l.opacity);return function(m){return o.r=a(m),o.g=f(m),o.b=d(m),o.opacity=p(m),o+""}}return r.gamma=e,r})(1);function $o(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Sm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Cp=new RegExp(Sm.source,"g");function twe(e){return function(){return e}}function nwe(e){return function(t){return e(t)+""}}function rwe(e,t){var n=Sm.lastIndex=Cp.lastIndex=0,r,o,l,a=-1,f=[],d=[];for(e=e+"",t=t+"";(r=Sm.exec(e))&&(o=Cp.exec(t));)(l=o.index)>n&&(l=t.slice(n,l),f[a]?f[a]+=l:f[++a]=l),(r=r[0])===(o=o[0])?f[a]?f[a]+=o:f[++a]=o:(f[++a]=null,d.push({i:a,x:$o(r,o)})),n=Cp.lastIndex;return n<t.length&&(l=t.slice(n),f[a]?f[a]+=l:f[++a]=l),f.length<2?d[0]?nwe(d[0].x):twe(t):(t=d.length,function(p){for(var m=0,g;m<t;++m)f[(g=d[m]).i]=g.x(p);return f.join("")})}var dx=180/Math.PI,_m={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function wT(e,t,n,r,o,l){var a,f,d;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(d=e*n+t*r)&&(n-=e*d,r-=t*d),(f=Math.sqrt(n*n+r*r))&&(n/=f,r/=f,d/=f),e*r<t*n&&(e=-e,t=-t,d=-d,a=-a),{translateX:o,translateY:l,rotate:Math.atan2(t,e)*dx,skewX:Math.atan(d)*dx,scaleX:a,scaleY:f}}var Vu;function iwe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?_m:wT(t.a,t.b,t.c,t.d,t.e,t.f)}function owe(e){return e==null||(Vu||(Vu=document.createElementNS("http://www.w3.org/2000/svg","g")),Vu.setAttribute("transform",e),!(e=Vu.transform.baseVal.consolidate()))?_m:(e=e.matrix,wT(e.a,e.b,e.c,e.d,e.e,e.f))}function xT(e,t,n,r){function o(p){return p.length?p.pop()+" ":""}function l(p,m,g,y,w,E){if(p!==g||m!==y){var _=w.push("translate(",null,t,null,n);E.push({i:_-4,x:$o(p,g)},{i:_-2,x:$o(m,y)})}else(g||y)&&w.push("translate("+g+t+y+n)}function a(p,m,g,y){p!==m?(p-m>180?m+=360:m-p>180&&(p+=360),y.push({i:g.push(o(g)+"rotate(",null,r)-2,x:$o(p,m)})):m&&g.push(o(g)+"rotate("+m+r)}function f(p,m,g,y){p!==m?y.push({i:g.push(o(g)+"skewX(",null,r)-2,x:$o(p,m)}):m&&g.push(o(g)+"skewX("+m+r)}function d(p,m,g,y,w,E){if(p!==g||m!==y){var _=w.push(o(w)+"scale(",null,",",null,")");E.push({i:_-4,x:$o(p,g)},{i:_-2,x:$o(m,y)})}else(g!==1||y!==1)&&w.push(o(w)+"scale("+g+","+y+")")}return function(p,m){var g=[],y=[];return p=e(p),m=e(m),l(p.translateX,p.translateY,m.translateX,m.translateY,g,y),a(p.rotate,m.rotate,g,y),f(p.skewX,m.skewX,g,y),d(p.scaleX,p.scaleY,m.scaleX,m.scaleY,g,y),p=m=null,function(w){for(var E=-1,_=y.length,k;++E<_;)g[(k=y[E]).i]=k.x(w);return g.join("")}}}var swe=xT(iwe,"px, ","px)","deg)"),lwe=xT(owe,", ",")",")"),awe=1e-12;function hx(e){return((e=Math.exp(e))+1/e)/2}function cwe(e){return((e=Math.exp(e))-1/e)/2}function uwe(e){return((e=Math.exp(2*e))-1)/(e+1)}const fwe=(function e(t,n,r){function o(l,a){var f=l[0],d=l[1],p=l[2],m=a[0],g=a[1],y=a[2],w=m-f,E=g-d,_=w*w+E*E,k,A;if(_<awe)A=Math.log(y/p)/t,k=function(J){return[f+J*w,d+J*E,p*Math.exp(t*J*A)]};else{var N=Math.sqrt(_),I=(y*y-p*p+r*_)/(2*p*n*N),$=(y*y-p*p-r*_)/(2*y*n*N),D=Math.log(Math.sqrt(I*I+1)-I),U=Math.log(Math.sqrt($*$+1)-$);A=(U-D)/t,k=function(J){var ee=J*A,X=hx(D),V=p/(n*N)*(X*uwe(t*ee+D)-cwe(D));return[f+V*w,d+V*E,p*X/hx(t*ee+D)]}}return k.duration=A*1e3*t/Math.SQRT2,k}return o.rho=function(l){var a=Math.max(.001,+l),f=a*a,d=f*f;return e(a,f,d)},o})(Math.SQRT2,2,4);var Bl=0,ja=0,Ra=0,ST=1e3,id,Wa,od=0,As=0,qd=0,Ac=typeof performance=="object"&&performance.now?performance:Date,_T=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function iv(){return As||(_T(dwe),As=Ac.now()+qd)}function dwe(){As=0}function sd(){this._call=this._time=this._next=null}sd.prototype=ov.prototype={constructor:sd,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?iv():+n)+(t==null?0:+t),!this._next&&Wa!==this&&(Wa?Wa._next=this:id=this,Wa=this),this._call=e,this._time=n,km()},stop:function(){this._call&&(this._call=null,this._time=1/0,km())}};function ov(e,t,n){var r=new sd;return r.restart(e,t,n),r}function hwe(){iv(),++Bl;for(var e=id,t;e;)(t=As-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Bl}function px(){As=(od=Ac.now())+qd,Bl=ja=0;try{hwe()}finally{Bl=0,mwe(),As=0}}function pwe(){var e=Ac.now(),t=e-od;t>ST&&(qd-=t,od=e)}function mwe(){for(var e,t=id,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:id=n);Wa=e,km(r)}function km(e){if(!Bl){ja&&(ja=clearTimeout(ja));var t=e-As;t>24?(e<1/0&&(ja=setTimeout(px,e-Ac.now()-qd)),Ra&&(Ra=clearInterval(Ra))):(Ra||(od=Ac.now(),Ra=setInterval(pwe,ST)),Bl=1,_T(px))}}function mx(e,t,n){var r=new sd;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var gwe=Gc("start","end","cancel","interrupt"),vwe=[],kT=0,gx=1,Tm=2,yf=3,vx=4,Cm=5,bf=6;function Vd(e,t,n,r,o,l){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;ywe(e,n,{name:t,index:r,group:o,on:gwe,tween:vwe,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:kT})}function sv(e,t){var n=ti(e,t);if(n.state>kT)throw new Error("too late; already scheduled");return n}function Ti(e,t){var n=ti(e,t);if(n.state>yf)throw new Error("too late; already running");return n}function ti(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function ywe(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=ov(l,0,n.time);function l(p){n.state=gx,n.timer.restart(a,n.delay,n.time),n.delay<=p&&a(p-n.delay)}function a(p){var m,g,y,w;if(n.state!==gx)return d();for(m in r)if(w=r[m],w.name===n.name){if(w.state===yf)return mx(a);w.state===vx?(w.state=bf,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete r[m]):+m<t&&(w.state=bf,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete r[m])}if(mx(function(){n.state===yf&&(n.state=vx,n.timer.restart(f,n.delay,n.time),f(p))}),n.state=Tm,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Tm){for(n.state=yf,o=new Array(y=n.tween.length),m=0,g=-1;m<y;++m)(w=n.tween[m].value.call(e,e.__data__,n.index,n.group))&&(o[++g]=w);o.length=g+1}}function f(p){for(var m=p<n.duration?n.ease.call(null,p/n.duration):(n.timer.restart(d),n.state=Cm,1),g=-1,y=o.length;++g<y;)o[g].call(e,m);n.state===Cm&&(n.on.call("end",e,e.__data__,n.index,n.group),d())}function d(){n.state=bf,n.timer.stop(),delete r[t];for(var p in r)return;delete e.__transition}}function wf(e,t){var n=e.__transition,r,o,l=!0,a;if(n){t=t==null?null:t+"";for(a in n){if((r=n[a]).name!==t){l=!1;continue}o=r.state>Tm&&r.state<Cm,r.state=bf,r.timer.stop(),r.on.call(o?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}l&&delete e.__transition}}function bwe(e){return this.each(function(){wf(this,e)})}function wwe(e,t){var n,r;return function(){var o=Ti(this,e),l=o.tween;if(l!==n){r=n=l;for(var a=0,f=r.length;a<f;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}o.tween=r}}function xwe(e,t,n){var r,o;if(typeof n!="function")throw new Error;return function(){var l=Ti(this,e),a=l.tween;if(a!==r){o=(r=a).slice();for(var f={name:t,value:n},d=0,p=o.length;d<p;++d)if(o[d].name===t){o[d]=f;break}d===p&&o.push(f)}l.tween=o}}function Swe(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=ti(this.node(),n).tween,o=0,l=r.length,a;o<l;++o)if((a=r[o]).name===e)return a.value;return null}return this.each((t==null?wwe:xwe)(n,e,t))}function lv(e,t,n){var r=e._id;return e.each(function(){var o=Ti(this,r);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return ti(o,r).value[t]}}function TT(e,t){var n;return(typeof t=="number"?$o:t instanceof Ec?fx:(n=Ec(t))?(t=n,fx):rwe)(e,t)}function _we(e){return function(){this.removeAttribute(e)}}function kwe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Twe(e,t,n){var r,o=n+"",l;return function(){var a=this.getAttribute(e);return a===o?null:a===r?l:l=t(r=a,n)}}function Cwe(e,t,n){var r,o=n+"",l;return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?l:l=t(r=a,n)}}function Ewe(e,t,n){var r,o,l;return function(){var a,f=n(this),d;return f==null?void this.removeAttribute(e):(a=this.getAttribute(e),d=f+"",a===d?null:a===r&&d===o?l:(o=d,l=t(r=a,f)))}}function Awe(e,t,n){var r,o,l;return function(){var a,f=n(this),d;return f==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),d=f+"",a===d?null:a===r&&d===o?l:(o=d,l=t(r=a,f)))}}function Mwe(e,t){var n=Ud(e),r=n==="transform"?lwe:TT;return this.attrTween(e,typeof t=="function"?(n.local?Awe:Ewe)(n,r,lv(this,"attr."+e,t)):t==null?(n.local?kwe:_we)(n):(n.local?Cwe:Twe)(n,r,t))}function $we(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Nwe(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Owe(e,t){var n,r;function o(){var l=t.apply(this,arguments);return l!==r&&(n=(r=l)&&Nwe(e,l)),n}return o._value=t,o}function Lwe(e,t){var n,r;function o(){var l=t.apply(this,arguments);return l!==r&&(n=(r=l)&&$we(e,l)),n}return o._value=t,o}function Rwe(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Ud(e);return this.tween(n,(r.local?Owe:Lwe)(r,t))}function Pwe(e,t){return function(){sv(this,e).delay=+t.apply(this,arguments)}}function Iwe(e,t){return t=+t,function(){sv(this,e).delay=t}}function Dwe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Pwe:Iwe)(t,e)):ti(this.node(),t).delay}function Fwe(e,t){return function(){Ti(this,e).duration=+t.apply(this,arguments)}}function zwe(e,t){return t=+t,function(){Ti(this,e).duration=t}}function Bwe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Fwe:zwe)(t,e)):ti(this.node(),t).duration}function Hwe(e,t){if(typeof t!="function")throw new Error;return function(){Ti(this,e).ease=t}}function jwe(e){var t=this._id;return arguments.length?this.each(Hwe(t,e)):ti(this.node(),t).ease}function Wwe(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Ti(this,e).ease=n}}function Uwe(e){if(typeof e!="function")throw new Error;return this.each(Wwe(this._id,e))}function qwe(e){typeof e!="function"&&(e=iT(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var l=t[o],a=l.length,f=r[o]=[],d,p=0;p<a;++p)(d=l[p])&&e.call(d,d.__data__,p,l)&&f.push(d);return new Zi(r,this._parents,this._name,this._id)}function Vwe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,l=Math.min(r,o),a=new Array(r),f=0;f<l;++f)for(var d=t[f],p=n[f],m=d.length,g=a[f]=new Array(m),y,w=0;w<m;++w)(y=d[w]||p[w])&&(g[w]=y);for(;f<r;++f)a[f]=t[f];return new Zi(a,this._parents,this._name,this._id)}function Gwe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function Kwe(e,t,n){var r,o,l=Gwe(t)?sv:Ti;return function(){var a=l(this,e),f=a.on;f!==r&&(o=(r=f).copy()).on(t,n),a.on=o}}function Ywe(e,t){var n=this._id;return arguments.length<2?ti(this.node(),n).on.on(e):this.each(Kwe(n,e,t))}function Xwe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Jwe(){return this.on("end.remove",Xwe(this._id))}function Zwe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=tv(e));for(var r=this._groups,o=r.length,l=new Array(o),a=0;a<o;++a)for(var f=r[a],d=f.length,p=l[a]=new Array(d),m,g,y=0;y<d;++y)(m=f[y])&&(g=e.call(m,m.__data__,y,f))&&("__data__"in m&&(g.__data__=m.__data__),p[y]=g,Vd(p[y],t,n,y,p,ti(m,n)));return new Zi(l,this._parents,t,n)}function Qwe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=rT(e));for(var r=this._groups,o=r.length,l=[],a=[],f=0;f<o;++f)for(var d=r[f],p=d.length,m,g=0;g<p;++g)if(m=d[g]){for(var y=e.call(m,m.__data__,g,d),w,E=ti(m,n),_=0,k=y.length;_<k;++_)(w=y[_])&&Vd(w,t,n,_,y,E);l.push(y),a.push(m)}return new Zi(l,a,t,n)}var exe=Vc.prototype.constructor;function txe(){return new exe(this._groups,this._parents)}function nxe(e,t){var n,r,o;return function(){var l=Fl(this,e),a=(this.style.removeProperty(e),Fl(this,e));return l===a?null:l===n&&a===r?o:o=t(n=l,r=a)}}function CT(e){return function(){this.style.removeProperty(e)}}function rxe(e,t,n){var r,o=n+"",l;return function(){var a=Fl(this,e);return a===o?null:a===r?l:l=t(r=a,n)}}function ixe(e,t,n){var r,o,l;return function(){var a=Fl(this,e),f=n(this),d=f+"";return f==null&&(d=f=(this.style.removeProperty(e),Fl(this,e))),a===d?null:a===r&&d===o?l:(o=d,l=t(r=a,f))}}function oxe(e,t){var n,r,o,l="style."+t,a="end."+l,f;return function(){var d=Ti(this,e),p=d.on,m=d.value[l]==null?f||(f=CT(t)):void 0;(p!==n||o!==m)&&(r=(n=p).copy()).on(a,o=m),d.on=r}}function sxe(e,t,n){var r=(e+="")=="transform"?swe:TT;return t==null?this.styleTween(e,nxe(e,r)).on("end.style."+e,CT(e)):typeof t=="function"?this.styleTween(e,ixe(e,r,lv(this,"style."+e,t))).each(oxe(this._id,e)):this.styleTween(e,rxe(e,r,t),n).on("end.style."+e,null)}function lxe(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function axe(e,t,n){var r,o;function l(){var a=t.apply(this,arguments);return a!==o&&(r=(o=a)&&lxe(e,a,n)),r}return l._value=t,l}function cxe(e,t,n){var r="style."+(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;return this.tween(r,axe(e,t,n??""))}function uxe(e){return function(){this.textContent=e}}function fxe(e){return function(){var t=e(this);this.textContent=t??""}}function dxe(e){return this.tween("text",typeof e=="function"?fxe(lv(this,"text",e)):uxe(e==null?"":e+""))}function hxe(e){return function(t){this.textContent=e.call(this,t)}}function pxe(e){var t,n;function r(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&hxe(o)),t}return r._value=e,r}function mxe(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,pxe(e))}function gxe(){for(var e=this._name,t=this._id,n=ET(),r=this._groups,o=r.length,l=0;l<o;++l)for(var a=r[l],f=a.length,d,p=0;p<f;++p)if(d=a[p]){var m=ti(d,t);Vd(d,e,n,p,a,{time:m.time+m.delay+m.duration,delay:0,duration:m.duration,ease:m.ease})}return new Zi(r,this._parents,e,n)}function vxe(){var e,t,n=this,r=n._id,o=n.size();return new Promise(function(l,a){var f={value:a},d={value:function(){--o===0&&l()}};n.each(function(){var p=Ti(this,r),m=p.on;m!==e&&(t=(e=m).copy(),t._.cancel.push(f),t._.interrupt.push(f),t._.end.push(d)),p.on=t}),o===0&&l()})}var yxe=0;function Zi(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ET(){return++yxe}var Ii=Vc.prototype;Zi.prototype={constructor:Zi,select:Zwe,selectAll:Qwe,selectChild:Ii.selectChild,selectChildren:Ii.selectChildren,filter:qwe,merge:Vwe,selection:txe,transition:gxe,call:Ii.call,nodes:Ii.nodes,node:Ii.node,size:Ii.size,empty:Ii.empty,each:Ii.each,on:Ywe,attr:Mwe,attrTween:Rwe,style:sxe,styleTween:cxe,text:dxe,textTween:mxe,remove:Jwe,tween:Swe,delay:Dwe,duration:Bwe,ease:jwe,easeVarying:Uwe,end:vxe,[Symbol.iterator]:Ii[Symbol.iterator]};function bxe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var wxe={time:null,delay:0,duration:250,ease:bxe};function xxe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Sxe(e){var t,n;e instanceof Zi?(t=e._id,e=e._name):(t=ET(),(n=wxe).time=iv(),e=e==null?null:e+"");for(var r=this._groups,o=r.length,l=0;l<o;++l)for(var a=r[l],f=a.length,d,p=0;p<f;++p)(d=a[p])&&Vd(d,e,t,p,a,n||xxe(d,t));return new Zi(r,this._parents,e,t)}Vc.prototype.interrupt=bwe;Vc.prototype.transition=Sxe;const Gu=e=>()=>e;function _xe(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function qi(e,t,n){this.k=e,this.x=t,this.y=n}qi.prototype={constructor:qi,scale:function(e){return e===1?this:new qi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new qi(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 av=new qi(1,0,0);qi.prototype;function Ep(e){e.stopImmediatePropagation()}function Pa(e){e.preventDefault(),e.stopImmediatePropagation()}function kxe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Txe(){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 yx(){return this.__zoom||av}function Cxe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Exe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Axe(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],l=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>l?(l+a)/2:Math.min(0,l)||Math.max(0,a))}function Mxe(){var e=kxe,t=Txe,n=Axe,r=Cxe,o=Exe,l=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],f=250,d=fwe,p=Gc("start","zoom","end"),m,g,y,w=500,E=150,_=0,k=10;function A(T){T.property("__zoom",yx).on("wheel.zoom",ee,{passive:!1}).on("mousedown.zoom",X).on("dblclick.zoom",V).filter(o).on("touchstart.zoom",q).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",L).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}A.transform=function(T,S,R,z){var ae=T.selection?T.selection():T;ae.property("__zoom",yx),T!==ae?D(T,S,R,z):ae.interrupt().each(function(){U(this,arguments).event(z).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},A.scaleBy=function(T,S,R,z){A.scaleTo(T,function(){var ae=this.__zoom.k,ve=typeof S=="function"?S.apply(this,arguments):S;return ae*ve},R,z)},A.scaleTo=function(T,S,R,z){A.transform(T,function(){var ae=t.apply(this,arguments),ve=this.__zoom,_e=R==null?$(ae):typeof R=="function"?R.apply(this,arguments):R,je=ve.invert(_e),Me=typeof S=="function"?S.apply(this,arguments):S;return n(I(N(ve,Me),_e,je),ae,a)},R,z)},A.translateBy=function(T,S,R,z){A.transform(T,function(){return n(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof R=="function"?R.apply(this,arguments):R),t.apply(this,arguments),a)},null,z)},A.translateTo=function(T,S,R,z,ae){A.transform(T,function(){var ve=t.apply(this,arguments),_e=this.__zoom,je=z==null?$(ve):typeof z=="function"?z.apply(this,arguments):z;return n(av.translate(je[0],je[1]).scale(_e.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof R=="function"?-R.apply(this,arguments):-R),ve,a)},z,ae)};function N(T,S){return S=Math.max(l[0],Math.min(l[1],S)),S===T.k?T:new qi(S,T.x,T.y)}function I(T,S,R){var z=S[0]-R[0]*T.k,ae=S[1]-R[1]*T.k;return z===T.x&&ae===T.y?T:new qi(T.k,z,ae)}function $(T){return[(+T[0][0]+ +T[1][0])/2,(+T[0][1]+ +T[1][1])/2]}function D(T,S,R,z){T.on("start.zoom",function(){U(this,arguments).event(z).start()}).on("interrupt.zoom end.zoom",function(){U(this,arguments).event(z).end()}).tween("zoom",function(){var ae=this,ve=arguments,_e=U(ae,ve).event(z),je=t.apply(ae,ve),Me=R==null?$(je):typeof R=="function"?R.apply(ae,ve):R,Ke=Math.max(je[1][0]-je[0][0],je[1][1]-je[0][1]),qe=ae.__zoom,He=typeof S=="function"?S.apply(ae,ve):S,Re=d(qe.invert(Me).concat(Ke/qe.k),He.invert(Me).concat(Ke/He.k));return function(B){if(B===1)B=He;else{var Q=Re(B),ie=Ke/Q[2];B=new qi(ie,Me[0]-Q[0]*ie,Me[1]-Q[1]*ie)}_e.zoom(null,B)}})}function U(T,S,R){return!R&&T.__zooming||new J(T,S)}function J(T,S){this.that=T,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(T,S),this.taps=0}J.prototype={event:function(T){return T&&(this.sourceEvent=T),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(T,S){return this.mouse&&T!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&T!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&T!=="touch"&&(this.touch1[1]=S.invert(this.touch1[0])),this.that.__zoom=S,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(T){var S=sr(this.that).datum();p.call(T,this.that,new _xe(T,{sourceEvent:this.sourceEvent,target:A,transform:this.that.__zoom,dispatch:p}),S)}};function ee(T,...S){if(!e.apply(this,arguments))return;var R=U(this,S).event(T),z=this.__zoom,ae=Math.max(l[0],Math.min(l[1],z.k*Math.pow(2,r.apply(this,arguments)))),ve=Bi(T);if(R.wheel)(R.mouse[0][0]!==ve[0]||R.mouse[0][1]!==ve[1])&&(R.mouse[1]=z.invert(R.mouse[0]=ve)),clearTimeout(R.wheel);else{if(z.k===ae)return;R.mouse=[ve,z.invert(ve)],wf(this),R.start()}Pa(T),R.wheel=setTimeout(_e,E),R.zoom("mouse",n(I(N(z,ae),R.mouse[0],R.mouse[1]),R.extent,a));function _e(){R.wheel=null,R.end()}}function X(T,...S){if(y||!e.apply(this,arguments))return;var R=T.currentTarget,z=U(this,S,!0).event(T),ae=sr(T.view).on("mousemove.zoom",Me,!0).on("mouseup.zoom",Ke,!0),ve=Bi(T,R),_e=T.clientX,je=T.clientY;pT(T.view),Ep(T),z.mouse=[ve,this.__zoom.invert(ve)],wf(this),z.start();function Me(qe){if(Pa(qe),!z.moved){var He=qe.clientX-_e,Re=qe.clientY-je;z.moved=He*He+Re*Re>_}z.event(qe).zoom("mouse",n(I(z.that.__zoom,z.mouse[0]=Bi(qe,R),z.mouse[1]),z.extent,a))}function Ke(qe){ae.on("mousemove.zoom mouseup.zoom",null),mT(qe.view,z.moved),Pa(qe),z.event(qe).end()}}function V(T,...S){if(e.apply(this,arguments)){var R=this.__zoom,z=Bi(T.changedTouches?T.changedTouches[0]:T,this),ae=R.invert(z),ve=R.k*(T.shiftKey?.5:2),_e=n(I(N(R,ve),z,ae),t.apply(this,S),a);Pa(T),f>0?sr(this).transition().duration(f).call(D,_e,z,T):sr(this).call(A.transform,_e,z,T)}}function q(T,...S){if(e.apply(this,arguments)){var R=T.touches,z=R.length,ae=U(this,S,T.changedTouches.length===z).event(T),ve,_e,je,Me;for(Ep(T),_e=0;_e<z;++_e)je=R[_e],Me=Bi(je,this),Me=[Me,this.__zoom.invert(Me),je.identifier],ae.touch0?!ae.touch1&&ae.touch0[2]!==Me[2]&&(ae.touch1=Me,ae.taps=0):(ae.touch0=Me,ve=!0,ae.taps=1+!!m);m&&(m=clearTimeout(m)),ve&&(ae.taps<2&&(g=Me[0],m=setTimeout(function(){m=null},w)),wf(this),ae.start())}}function P(T,...S){if(this.__zooming){var R=U(this,S).event(T),z=T.changedTouches,ae=z.length,ve,_e,je,Me;for(Pa(T),ve=0;ve<ae;++ve)_e=z[ve],je=Bi(_e,this),R.touch0&&R.touch0[2]===_e.identifier?R.touch0[0]=je:R.touch1&&R.touch1[2]===_e.identifier&&(R.touch1[0]=je);if(_e=R.that.__zoom,R.touch1){var Ke=R.touch0[0],qe=R.touch0[1],He=R.touch1[0],Re=R.touch1[1],B=(B=He[0]-Ke[0])*B+(B=He[1]-Ke[1])*B,Q=(Q=Re[0]-qe[0])*Q+(Q=Re[1]-qe[1])*Q;_e=N(_e,Math.sqrt(B/Q)),je=[(Ke[0]+He[0])/2,(Ke[1]+He[1])/2],Me=[(qe[0]+Re[0])/2,(qe[1]+Re[1])/2]}else if(R.touch0)je=R.touch0[0],Me=R.touch0[1];else return;R.zoom("touch",n(I(_e,je,Me),R.extent,a))}}function L(T,...S){if(this.__zooming){var R=U(this,S).event(T),z=T.changedTouches,ae=z.length,ve,_e;for(Ep(T),y&&clearTimeout(y),y=setTimeout(function(){y=null},w),ve=0;ve<ae;++ve)_e=z[ve],R.touch0&&R.touch0[2]===_e.identifier?delete R.touch0:R.touch1&&R.touch1[2]===_e.identifier&&delete R.touch1;if(R.touch1&&!R.touch0&&(R.touch0=R.touch1,delete R.touch1),R.touch0)R.touch0[1]=this.__zoom.invert(R.touch0[0]);else if(R.end(),R.taps===2&&(_e=Bi(_e,this),Math.hypot(g[0]-_e[0],g[1]-_e[1])<k)){var je=sr(this).on("dblclick.zoom");je&&je.apply(this,arguments)}}}return A.wheelDelta=function(T){return arguments.length?(r=typeof T=="function"?T:Gu(+T),A):r},A.filter=function(T){return arguments.length?(e=typeof T=="function"?T:Gu(!!T),A):e},A.touchable=function(T){return arguments.length?(o=typeof T=="function"?T:Gu(!!T),A):o},A.extent=function(T){return arguments.length?(t=typeof T=="function"?T:Gu([[+T[0][0],+T[0][1]],[+T[1][0],+T[1][1]]]),A):t},A.scaleExtent=function(T){return arguments.length?(l[0]=+T[0],l[1]=+T[1],A):[l[0],l[1]]},A.translateExtent=function(T){return arguments.length?(a[0][0]=+T[0][0],a[1][0]=+T[1][0],a[0][1]=+T[0][1],a[1][1]=+T[1][1],A):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},A.constrain=function(T){return arguments.length?(n=T,A):n},A.duration=function(T){return arguments.length?(f=+T,A):f},A.interpolate=function(T){return arguments.length?(d=T,A):d},A.on=function(){var T=p.on.apply(p,arguments);return T===p?A:T},A.clickDistance=function(T){return arguments.length?(_=(T=+T)*T,A):Math.sqrt(_)},A.tapDistance=function(T){return arguments.length?(k=+T,A):k},A}function $xe(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return AT(this.cover(t,n),t,n,e)}function AT(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var o,l=e._root,a={data:r},f=e._x0,d=e._y0,p=e._x1,m=e._y1,g,y,w,E,_,k,A,N;if(!l)return e._root=a,e;for(;l.length;)if((_=t>=(g=(f+p)/2))?f=g:p=g,(k=n>=(y=(d+m)/2))?d=y:m=y,o=l,!(l=l[A=k<<1|_]))return o[A]=a,e;if(w=+e._x.call(null,l.data),E=+e._y.call(null,l.data),t===w&&n===E)return a.next=l,o?o[A]=a:e._root=a,e;do o=o?o[A]=new Array(4):e._root=new Array(4),(_=t>=(g=(f+p)/2))?f=g:p=g,(k=n>=(y=(d+m)/2))?d=y:m=y;while((A=k<<1|_)===(N=(E>=y)<<1|w>=g));return o[N]=l,o[A]=a,e}function Nxe(e){var t,n,r=e.length,o,l,a=new Array(r),f=new Array(r),d=1/0,p=1/0,m=-1/0,g=-1/0;for(n=0;n<r;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(l=+this._y.call(null,t))||(a[n]=o,f[n]=l,o<d&&(d=o),o>m&&(m=o),l<p&&(p=l),l>g&&(g=l));if(d>m||p>g)return this;for(this.cover(d,p).cover(m,g),n=0;n<r;++n)AT(this,a[n],f[n],e[n]);return this}function Oxe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,o=this._x1,l=this._y1;if(isNaN(n))o=(n=Math.floor(e))+1,l=(r=Math.floor(t))+1;else{for(var a=o-n||1,f=this._root,d,p;n>e||e>=o||r>t||t>=l;)switch(p=(t<r)<<1|e<n,d=new Array(4),d[p]=f,f=d,a*=2,p){case 0:o=n+a,l=r+a;break;case 1:n=o-a,l=r+a;break;case 2:o=n+a,r=l-a;break;case 3:n=o-a,r=l-a;break}this._root&&this._root.length&&(this._root=f)}return this._x0=n,this._y0=r,this._x1=o,this._y1=l,this}function Lxe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Rxe(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 Gn(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o}function Pxe(e,t,n){var r,o=this._x0,l=this._y0,a,f,d,p,m=this._x1,g=this._y1,y=[],w=this._root,E,_;for(w&&y.push(new Gn(w,o,l,m,g)),n==null?n=1/0:(o=e-n,l=t-n,m=e+n,g=t+n,n*=n);E=y.pop();)if(!(!(w=E.node)||(a=E.x0)>m||(f=E.y0)>g||(d=E.x1)<o||(p=E.y1)<l))if(w.length){var k=(a+d)/2,A=(f+p)/2;y.push(new Gn(w[3],k,A,d,p),new Gn(w[2],a,A,k,p),new Gn(w[1],k,f,d,A),new Gn(w[0],a,f,k,A)),(_=(t>=A)<<1|e>=k)&&(E=y[y.length-1],y[y.length-1]=y[y.length-1-_],y[y.length-1-_]=E)}else{var N=e-+this._x.call(null,w.data),I=t-+this._y.call(null,w.data),$=N*N+I*I;if($<n){var D=Math.sqrt(n=$);o=e-D,l=t-D,m=e+D,g=t+D,r=w.data}}return r}function Ixe(e){if(isNaN(m=+this._x.call(null,e))||isNaN(g=+this._y.call(null,e)))return this;var t,n=this._root,r,o,l,a=this._x0,f=this._y0,d=this._x1,p=this._y1,m,g,y,w,E,_,k,A;if(!n)return this;if(n.length)for(;;){if((E=m>=(y=(a+d)/2))?a=y:d=y,(_=g>=(w=(f+p)/2))?f=w:p=w,t=n,!(n=n[k=_<<1|E]))return this;if(!n.length)break;(t[k+1&3]||t[k+2&3]||t[k+3&3])&&(r=t,A=k)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(l=n.next)&&delete n.next,o?(l?o.next=l:delete o.next,this):t?(l?t[k]=l:delete t[k],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[A]=n:this._root=n),this):(this._root=l,this)}function Dxe(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function Fxe(){return this._root}function zxe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Bxe(e){var t=[],n,r=this._root,o,l,a,f,d;for(r&&t.push(new Gn(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,l=n.x0,a=n.y0,f=n.x1,d=n.y1)&&r.length){var p=(l+f)/2,m=(a+d)/2;(o=r[3])&&t.push(new Gn(o,p,m,f,d)),(o=r[2])&&t.push(new Gn(o,l,m,p,d)),(o=r[1])&&t.push(new Gn(o,p,a,f,m)),(o=r[0])&&t.push(new Gn(o,l,a,p,m))}return this}function Hxe(e){var t=[],n=[],r;for(this._root&&t.push(new Gn(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var o=r.node;if(o.length){var l,a=r.x0,f=r.y0,d=r.x1,p=r.y1,m=(a+d)/2,g=(f+p)/2;(l=o[0])&&t.push(new Gn(l,a,f,m,g)),(l=o[1])&&t.push(new Gn(l,m,f,d,g)),(l=o[2])&&t.push(new Gn(l,a,g,m,p)),(l=o[3])&&t.push(new Gn(l,m,g,d,p))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function jxe(e){return e[0]}function Wxe(e){return arguments.length?(this._x=e,this):this._x}function Uxe(e){return e[1]}function qxe(e){return arguments.length?(this._y=e,this):this._y}function cv(e,t,n){var r=new uv(t??jxe,n??Uxe,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function uv(e,t,n,r,o,l){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=l,this._root=void 0}function bx(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Jn=cv.prototype=uv.prototype;Jn.copy=function(){var e=new uv(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=bx(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var o=0;o<4;++o)(r=t.source[o])&&(r.length?n.push({source:r,target:t.target[o]=new Array(4)}):t.target[o]=bx(r));return e};Jn.add=$xe;Jn.addAll=Nxe;Jn.cover=Oxe;Jn.data=Lxe;Jn.extent=Rxe;Jn.find=Pxe;Jn.remove=Ixe;Jn.removeAll=Dxe;Jn.root=Fxe;Jn.size=zxe;Jn.visit=Bxe;Jn.visitAfter=Hxe;Jn.x=Wxe;Jn.y=qxe;function Yn(e){return function(){return e}}function Ro(e){return(e()-.5)*1e-6}function Vxe(e){return e.x+e.vx}function Gxe(e){return e.y+e.vy}function Kxe(e){var t,n,r,o=1,l=1;typeof e!="function"&&(e=Yn(e==null?1:+e));function a(){for(var p,m=t.length,g,y,w,E,_,k,A=0;A<l;++A)for(g=cv(t,Vxe,Gxe).visitAfter(f),p=0;p<m;++p)y=t[p],_=n[y.index],k=_*_,w=y.x+y.vx,E=y.y+y.vy,g.visit(N);function N(I,$,D,U,J){var ee=I.data,X=I.r,V=_+X;if(ee){if(ee.index>y.index){var q=w-ee.x-ee.vx,P=E-ee.y-ee.vy,L=q*q+P*P;L<V*V&&(q===0&&(q=Ro(r),L+=q*q),P===0&&(P=Ro(r),L+=P*P),L=(V-(L=Math.sqrt(L)))/L*o,y.vx+=(q*=L)*(V=(X*=X)/(k+X)),y.vy+=(P*=L)*V,ee.vx-=q*(V=1-V),ee.vy-=P*V)}return}return $>w+V||U<w-V||D>E+V||J<E-V}}function f(p){if(p.data)return p.r=n[p.data.index];for(var m=p.r=0;m<4;++m)p[m]&&p[m].r>p.r&&(p.r=p[m].r)}function d(){if(t){var p,m=t.length,g;for(n=new Array(m),p=0;p<m;++p)g=t[p],n[g.index]=+e(g,p,t)}}return a.initialize=function(p,m){t=p,r=m,d()},a.iterations=function(p){return arguments.length?(l=+p,a):l},a.strength=function(p){return arguments.length?(o=+p,a):o},a.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Yn(+p),d(),a):e},a}function Yxe(e){return e.index}function wx(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function Xxe(e){var t=Yxe,n=g,r,o=Yn(30),l,a,f,d,p,m=1;e==null&&(e=[]);function g(k){return 1/Math.min(f[k.source.index],f[k.target.index])}function y(k){for(var A=0,N=e.length;A<m;++A)for(var I=0,$,D,U,J,ee,X,V;I<N;++I)$=e[I],D=$.source,U=$.target,J=U.x+U.vx-D.x-D.vx||Ro(p),ee=U.y+U.vy-D.y-D.vy||Ro(p),X=Math.sqrt(J*J+ee*ee),X=(X-l[I])/X*k*r[I],J*=X,ee*=X,U.vx-=J*(V=d[I]),U.vy-=ee*V,D.vx+=J*(V=1-V),D.vy+=ee*V}function w(){if(a){var k,A=a.length,N=e.length,I=new Map(a.map((D,U)=>[t(D,U,a),D])),$;for(k=0,f=new Array(A);k<N;++k)$=e[k],$.index=k,typeof $.source!="object"&&($.source=wx(I,$.source)),typeof $.target!="object"&&($.target=wx(I,$.target)),f[$.source.index]=(f[$.source.index]||0)+1,f[$.target.index]=(f[$.target.index]||0)+1;for(k=0,d=new Array(N);k<N;++k)$=e[k],d[k]=f[$.source.index]/(f[$.source.index]+f[$.target.index]);r=new Array(N),E(),l=new Array(N),_()}}function E(){if(a)for(var k=0,A=e.length;k<A;++k)r[k]=+n(e[k],k,e)}function _(){if(a)for(var k=0,A=e.length;k<A;++k)l[k]=+o(e[k],k,e)}return y.initialize=function(k,A){a=k,p=A,w()},y.links=function(k){return arguments.length?(e=k,w(),y):e},y.id=function(k){return arguments.length?(t=k,y):t},y.iterations=function(k){return arguments.length?(m=+k,y):m},y.strength=function(k){return arguments.length?(n=typeof k=="function"?k:Yn(+k),E(),y):n},y.distance=function(k){return arguments.length?(o=typeof k=="function"?k:Yn(+k),_(),y):o},y}const Jxe=1664525,Zxe=1013904223,xx=4294967296;function Qxe(){let e=1;return()=>(e=(Jxe*e+Zxe)%xx)/xx}function e1e(e){return e.x}function t1e(e){return e.y}var n1e=10,r1e=Math.PI*(3-Math.sqrt(5));function i1e(e){var t,n=1,r=.001,o=1-Math.pow(r,1/300),l=0,a=.6,f=new Map,d=ov(g),p=Gc("tick","end"),m=Qxe();e==null&&(e=[]);function g(){y(),p.call("tick",t),n<r&&(d.stop(),p.call("end",t))}function y(_){var k,A=e.length,N;_===void 0&&(_=1);for(var I=0;I<_;++I)for(n+=(l-n)*o,f.forEach(function($){$(n)}),k=0;k<A;++k)N=e[k],N.fx==null?N.x+=N.vx*=a:(N.x=N.fx,N.vx=0),N.fy==null?N.y+=N.vy*=a:(N.y=N.fy,N.vy=0);return t}function w(){for(var _=0,k=e.length,A;_<k;++_){if(A=e[_],A.index=_,A.fx!=null&&(A.x=A.fx),A.fy!=null&&(A.y=A.fy),isNaN(A.x)||isNaN(A.y)){var N=n1e*Math.sqrt(.5+_),I=_*r1e;A.x=N*Math.cos(I),A.y=N*Math.sin(I)}(isNaN(A.vx)||isNaN(A.vy))&&(A.vx=A.vy=0)}}function E(_){return _.initialize&&_.initialize(e,m),_}return w(),t={tick:y,restart:function(){return d.restart(g),t},stop:function(){return d.stop(),t},nodes:function(_){return arguments.length?(e=_,w(),f.forEach(E),t):e},alpha:function(_){return arguments.length?(n=+_,t):n},alphaMin:function(_){return arguments.length?(r=+_,t):r},alphaDecay:function(_){return arguments.length?(o=+_,t):+o},alphaTarget:function(_){return arguments.length?(l=+_,t):l},velocityDecay:function(_){return arguments.length?(a=1-_,t):1-a},randomSource:function(_){return arguments.length?(m=_,f.forEach(E),t):m},force:function(_,k){return arguments.length>1?(k==null?f.delete(_):f.set(_,E(k)),t):f.get(_)},find:function(_,k,A){var N=0,I=e.length,$,D,U,J,ee;for(A==null?A=1/0:A*=A,N=0;N<I;++N)J=e[N],$=_-J.x,D=k-J.y,U=$*$+D*D,U<A&&(ee=J,A=U);return ee},on:function(_,k){return arguments.length>1?(p.on(_,k),t):p.on(_)}}}function o1e(){var e,t,n,r,o=Yn(-30),l,a=1,f=1/0,d=.81;function p(w){var E,_=e.length,k=cv(e,e1e,t1e).visitAfter(g);for(r=w,E=0;E<_;++E)t=e[E],k.visit(y)}function m(){if(e){var w,E=e.length,_;for(l=new Array(E),w=0;w<E;++w)_=e[w],l[_.index]=+o(_,w,e)}}function g(w){var E=0,_,k,A=0,N,I,$;if(w.length){for(N=I=$=0;$<4;++$)(_=w[$])&&(k=Math.abs(_.value))&&(E+=_.value,A+=k,N+=k*_.x,I+=k*_.y);w.x=N/A,w.y=I/A}else{_=w,_.x=_.data.x,_.y=_.data.y;do E+=l[_.data.index];while(_=_.next)}w.value=E}function y(w,E,_,k){if(!w.value)return!0;var A=w.x-t.x,N=w.y-t.y,I=k-E,$=A*A+N*N;if(I*I/d<$)return $<f&&(A===0&&(A=Ro(n),$+=A*A),N===0&&(N=Ro(n),$+=N*N),$<a&&($=Math.sqrt(a*$)),t.vx+=A*w.value*r/$,t.vy+=N*w.value*r/$),!0;if(w.length||$>=f)return;(w.data!==t||w.next)&&(A===0&&(A=Ro(n),$+=A*A),N===0&&(N=Ro(n),$+=N*N),$<a&&($=Math.sqrt(a*$)));do w.data!==t&&(I=l[w.data.index]*r/$,t.vx+=A*I,t.vy+=N*I);while(w=w.next)}return p.initialize=function(w,E){e=w,n=E,m()},p.strength=function(w){return arguments.length?(o=typeof w=="function"?w:Yn(+w),m(),p):o},p.distanceMin=function(w){return arguments.length?(a=w*w,p):Math.sqrt(a)},p.distanceMax=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.theta=function(w){return arguments.length?(d=w*w,p):Math.sqrt(d)},p}function s1e(e){var t=Yn(.1),n,r,o;typeof e!="function"&&(e=Yn(e==null?0:+e));function l(f){for(var d=0,p=n.length,m;d<p;++d)m=n[d],m.vx+=(o[d]-m.x)*r[d]*f}function a(){if(n){var f,d=n.length;for(r=new Array(d),o=new Array(d),f=0;f<d;++f)r[f]=isNaN(o[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,a()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:Yn(+f),a(),l):t},l.x=function(f){return arguments.length?(e=typeof f=="function"?f:Yn(+f),a(),l):e},l}function l1e(e){var t=Yn(.1),n,r,o;typeof e!="function"&&(e=Yn(e==null?0:+e));function l(f){for(var d=0,p=n.length,m;d<p;++d)m=n[d],m.vy+=(o[d]-m.y)*r[d]*f}function a(){if(n){var f,d=n.length;for(r=new Array(d),o=new Array(d),f=0;f<d;++f)r[f]=isNaN(o[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,a()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:Yn(+f),a(),l):t},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:Yn(+f),a(),l):e},l}function a1e(){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 c1e(){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 u1e(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function MT(e){e.preventDefault(),e.stopPropagation()}function $T(e){return typeof e=="number"}function qo(e,t){return $T(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function f1e(e){return`${e.source.id}-${e.target.id}`}function NT(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function d1e(e){return`url(#${NT(e.color)})`}function h1e(e){return{size:e,padding:(t,n)=>qo(n,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const OT={Arrow:e=>h1e(e)},p1e=(e,t,n)=>[t/2,n/2],m1e=(e,t,n)=>[Sx(0,t),Sx(0,n)];function Sx(e,t){return Math.random()*(t-e)+e}const Em={Centered:p1e,Randomized:m1e};function g1e(){return{autoResize:!1,callbacks:{},hooks:{},initial:u1e(),nodeRadius:16,marker:OT.Arrow(4),modifiers:{},positionInitializer:Em.Centered,simulation:{alphas:a1e(),forces:c1e()},zoom:{initial:1,min:.1,max:2}}}function v1e(e={}){return Xye(g1e(),e,{arrayMerge:(t,n)=>n})}function y1e({applyZoom:e,container:t,onDoubleClick:n,onPointerMoved:r,onPointerUp:o,offset:[l,a],scale:f,zoom:d}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(d).on("contextmenu",m=>MT(m)).on("dblclick",m=>n?.(m)).on("dblclick.zoom",null).on("pointermove",m=>r?.(m)).on("pointerup",m=>o?.(m)).style("cursor","grab");return e&&p.call(d.transform,av.translate(l,a).scale(f)),p.append("g")}function b1e({canvas:e,scale:t,xOffset:n,yOffset:r}){e?.attr("transform",`translate(${n},${r})scale(${t})`)}function w1e({config:e,onDragStart:t,onDragEnd:n}){const r=zbe().filter(o=>o.type==="mousedown"?o.button===0:o.type==="touchstart"?o.touches.length===1:!1).on("start",(o,l)=>{o.active===0&&t(o,l),sr(o.sourceEvent.target).classed("grabbed",!0),l.fx=l.x,l.fy=l.y}).on("drag",(o,l)=>{l.fx=o.x,l.fy=o.y}).on("end",(o,l)=>{o.active===0&&n(o,l),sr(o.sourceEvent.target).classed("grabbed",!1),l.fx=void 0,l.fy=void 0});return e.modifiers.drag?.(r),r}function x1e({graph:e,filter:t,focusedNode:n,includeUnlinked:r,linkFilter:o}){const l=e.links.filter(d=>t.includes(d.source.type)&&t.includes(d.target.type)&&o(d)),a=d=>l.find(p=>p.source.id===d.id||p.target.id===d.id)!==void 0,f=e.nodes.filter(d=>t.includes(d.type)&&(r||a(d)));return n===void 0||!t.includes(n.type)?{nodes:f,links:l}:S1e({links:l},n)}function S1e(e,t){const n=[..._1e(e,t),...k1e(e,t)],r=n.flatMap(o=>[o.source,o.target]);return{nodes:[...new Set([...r,t])],links:[...new Set(n)]}}function _1e(e,t){return LT(e,t,(n,r)=>n.target.id===r.id)}function k1e(e,t){return LT(e,t,(n,r)=>n.source.id===r.id)}function LT(e,t,n){const r=new Set(e.links),o=new Set([t]),l=[];for(;r.size>0;){const a=[...r].filter(f=>[...o].some(d=>n(f,d)));if(a.length===0)return l;a.forEach(f=>{o.add(f.source),o.add(f.target),l.push(f),r.delete(f)})}return l}function Am(e){return e.x??0}function Mm(e){return e.y??0}function fv({source:e,target:t}){const n=new zl(Am(e),Mm(e)),r=new zl(Am(t),Mm(t)),o=r.subtract(n),l=o.length(),a=o.normalize();return{s:n,t:r,dist:l,norm:a,endNorm:a.multiply(-1)}}function RT({center:e,node:t}){const n=new zl(Am(t),Mm(t));let r=e;return n.x===r.x&&n.y===r.y&&(r=r.add(new zl(0,1))),{n,c:r}}function PT({config:e,source:t,target:n}){const{s:r,t:o,norm:l}=fv({source:t,target:n});return{start:r.add(l.multiply(qo(e,t)-1)),end:o.subtract(l.multiply(e.marker.padding(n,e)))}}function T1e(e){const{start:t,end:n}=PT(e);return`M${t.x},${t.y}
|
|
79
|
-
L${n.x},${n.y}`}function C1e(e){const{start:t,end:n}=PT(e),r=n.subtract(t).multiply(.5),o=t.add(r);return`translate(${o.x-8},${o.y-4})`}function E1e({config:e,source:t,target:n}){const{s:r,t:o,dist:l,norm:a,endNorm:f}=fv({source:t,target:n}),d=10,p=a.rotateByDegrees(-d).multiply(qo(e,t)-1).add(r),m=f.rotateByDegrees(d).multiply(qo(e,n)).add(o).add(f.rotateByDegrees(d).multiply(2*e.marker.size)),g=1.2*l;return`M${p.x},${p.y}
|
|
80
|
-
A${g},${g},0,0,1,${m.x},${m.y}`}function A1e({center:e,config:t,node:n}){const{n:r,c:o}=RT({center:e,node:n}),l=qo(t,n),a=r.subtract(o),f=a.multiply(1/a.length()),d=40,p=f.rotateByDegrees(d).multiply(l-1).add(r),m=f.rotateByDegrees(-d).multiply(l).add(r).add(f.rotateByDegrees(-d).multiply(2*t.marker.size));return`M${p.x},${p.y}
|
|
81
|
-
A${l},${l},0,1,0,${m.x},${m.y}`}function M1e({config:e,source:t,target:n}){const{t:r,dist:o,endNorm:l}=fv({source:t,target:n}),a=l.rotateByDegrees(10).multiply(.5*o).add(r);return`translate(${a.x},${a.y})`}function $1e({center:e,config:t,node:n}){const{n:r,c:o}=RT({center:e,node:n}),l=r.subtract(o),a=l.multiply(1/l.length()).multiply(3*qo(t,n)+8).add(r);return`translate(${a.x},${a.y})`}const Al={line:{labelTransform:C1e,path:T1e},arc:{labelTransform:M1e,path:E1e},reflexive:{labelTransform:$1e,path:A1e}};function N1e(e){return e.append("g").classed("links",!0).selectAll("path")}function O1e({config:e,graph:t,selection:n,showLabels:r}){const o=n?.data(t.links,l=>f1e(l)).join(l=>{const a=l.append("g"),f=a.append("path").classed("link",!0).style("marker-end",p=>d1e(p)).style("stroke",p=>p.color);e.modifiers.link?.(f);const d=a.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(d),a});return o?.select(".link__label").attr("opacity",l=>l.label&&r?1:0),o}function L1e(e){R1e(e),P1e(e)}function R1e({center:e,config:t,graph:n,selection:r}){r?.selectAll("path").attr("d",o=>o.source.x===void 0||o.source.y===void 0||o.target.x===void 0||o.target.y===void 0?"":o.source.id===o.target.id?Al.reflexive.path({config:t,node:o.source,center:e}):IT(n,o.source,o.target)?Al.arc.path({config:t,source:o.source,target:o.target}):Al.line.path({config:t,source:o.source,target:o.target}))}function P1e({config:e,center:t,graph:n,selection:r}){r?.select(".link__label").attr("transform",o=>o.source.x===void 0||o.source.y===void 0||o.target.x===void 0||o.target.y===void 0?"translate(0, 0)":o.source.id===o.target.id?Al.reflexive.labelTransform({config:e,node:o.source,center:t}):IT(n,o.source,o.target)?Al.arc.labelTransform({config:e,source:o.source,target:o.target}):Al.line.labelTransform({config:e,source:o.source,target:o.target}))}function IT(e,t,n){return t.id!==n.id&&e.links.some(r=>r.target.id===t.id&&r.source.id===n.id)&&e.links.some(r=>r.target.id===n.id&&r.source.id===t.id)}function I1e(e){return e.append("defs").selectAll("marker")}function D1e({config:e,graph:t,selection:n}){return n?.data(F1e(t),r=>r).join(r=>{const o=r.append("marker").attr("id",l=>NT(l)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",l=>l);return o.append("path").attr("d",z1e(e.marker.path)),o})}function F1e(e){return[...new Set(e.links.map(t=>t.color))]}function z1e(e){const[t,...n]=e;if(!t)return"M0,0";const[r,o]=t;return n.reduce((l,[a,f])=>`${l}L${a},${f}`,`M${r},${o}`)}function B1e(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function H1e({config:e,drag:t,graph:n,onNodeContext:r,onNodeSelected:o,selection:l,showLabels:a}){const f=l?.data(n.nodes,d=>d.id).join(d=>{const p=d.append("g");t!==void 0&&p.call(t);const m=p.append("circle").classed("node",!0).attr("r",y=>qo(e,y)).on("contextmenu",(y,w)=>{MT(y),r(w)}).on("pointerdown",(y,w)=>W1e(y,w,o??r)).style("fill",y=>y.color);e.modifiers.node?.(m);const g=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",y=>y.label?y.label.color:null).style("font-size",y=>y.label?y.label.fontSize:null).style("stroke","none").text(y=>y.label?y.label.text:null);return e.modifiers.nodeLabel?.(g),p});return f?.select(".node").classed("focused",d=>d.isFocused),f?.select(".node__label").attr("opacity",a?1:0),f}const j1e=500;function W1e(e,t,n){if(e.button!==void 0&&e.button!==0)return;const r=t.lastInteractionTimestamp,o=Date.now();if(r===void 0||o-r>j1e){t.lastInteractionTimestamp=o;return}t.lastInteractionTimestamp=void 0,n(t)}function U1e(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function q1e({center:e,config:t,graph:n,onTick:r}){const o=i1e(n.nodes),l=t.simulation.forces.centering;if(l&&l.enabled){const p=l.strength;o.force("x",s1e(()=>e().x).strength(p)).force("y",l1e(()=>e().y).strength(p))}const a=t.simulation.forces.charge;a&&a.enabled&&o.force("charge",o1e().strength(a.strength));const f=t.simulation.forces.collision;f&&f.enabled&&o.force("collision",Kxe().radius(p=>f.radiusMultiplier*qo(t,p)));const d=t.simulation.forces.link;return d&&d.enabled&&o.force("link",Xxe(n.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(d.strength)),o.on("tick",()=>r()),t.modifiers.simulation?.(o),o}function V1e({canvasContainer:e,config:t,min:n,max:r,onZoom:o}){const l=Mxe().scaleExtent([n,r]).filter(a=>a.button===0||a.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",a=>o(a)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(l),l}var G1e=class{nodeTypes;_nodeTypeFilter;_includeUnlinked=!0;_linkFilter=()=>!0;_showLinkLabels=!0;_showNodeLabels=!0;filteredGraph;width=0;height=0;simulation;canvas;linkSelection;nodeSelection;markerSelection;zoom;drag;xOffset=0;yOffset=0;scale;focusedNode=void 0;resizeObserver;container;graph;config;constructor(e,t,n){if(this.container=e,this.graph=t,this.config=n,this.scale=n.zoom.initial,this.resetView(),this.graph.nodes.forEach(r=>{const[o,l]=n.positionInitializer(r,this.effectiveWidth,this.effectiveHeight);r.x=r.x??o,r.y=r.y??l}),this.nodeTypes=[...new Set(t.nodes.map(r=>r.type))],this._nodeTypeFilter=[...this.nodeTypes],n.initial){const{includeUnlinked:r,nodeTypeFilter:o,linkFilter:l,showLinkLabels:a,showNodeLabels:f}=n.initial;this._includeUnlinked=r??this._includeUnlinked,this._showLinkLabels=a??this._showLinkLabels,this._showNodeLabels=f??this._showNodeLabels,this._nodeTypeFilter=o??this._nodeTypeFilter,this._linkFilter=l??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(n.simulation.alphas.initialize),n.autoResize&&(this.resizeObserver=new ResizeObserver(Jye(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:t,exclude:n}=this.config.simulation.alphas.filter.unlinked,r=e?t:n;this.restart(r)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:t,show:n}=this.config.simulation.alphas.labels.nodes,r=e?n:t;this.restart(r)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:t,show:n}=this.config.simulation.alphas.labels.links,r=e?n:t;this.restart(r)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return zl.of([this.width,this.height]).divide(2).subtract(zl.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,t=this.height,n=this.container.getBoundingClientRect().width,r=this.container.getBoundingClientRect().height,o=e.toFixed()!==n.toFixed(),l=t.toFixed()!==r.toFixed();if(!o&&!l)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const a=this.config.simulation.alphas.resize;this.restart($T(a)?a:a({oldWidth:e,oldHeight:t,newWidth:n,newHeight:r}))}restart(e){this.markerSelection=D1e({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=O1e({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=H1e({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:t=>this.toggleNodeFocus(t),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=q1e({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,t){e?this._nodeTypeFilter.push(t):this._nodeTypeFilter=this._nodeTypeFilter.filter(n=>n!==t),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=V1e({config:this.config,canvasContainer:()=>sr(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=y1e({applyZoom:this.scale!==1,container:sr(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=N1e(this.canvas),this.nodeSelection=B1e(this.canvas),this.markerSelection=I1e(this.canvas),this.drag=w1e({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){U1e(this.nodeSelection),L1e({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),sr(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){b1e({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=x1e({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function _x({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function K1e(e){return{...e}}function dv(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function kx(e){const t=e.map(r=>xk(r)),n=LI(t);return t.map(({raw:r,id:o,splitsCopy:l})=>dv({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:o.includes("node_modules")?n.get(r)??r:l[l.length-1]},isFocused:!1,id:o,type:"external"}))}function Y1e(e,t){return dv({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 X1e(e,t){if(!e)return _x({});const n=ht.value.experimental?.viteModuleRunner?kx(e.externalized):kx([...e.inlined,...e.externalized]),r=ht.value.experimental?.viteModuleRunner?e.inlined.map(f=>Y1e(f,f===t))??[]:[],o=[...n,...r],l=Object.fromEntries(o.map(f=>[f.id,f])),a=Object.entries(e.graph).flatMap(([f,d])=>d.map(p=>{const m=l[f],g=l[p];if(!(m===void 0||g===void 0))return K1e({source:m,target:g,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return _x({nodes:o,links:a})}const J1e={key:0,"text-green-700":"","dark:text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Z1e={key:1,"text-red-700":"","dark:text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Q1e={key:2,"text-red-700":"","dark:text-red-500":"","flex-shrink-0":"","i-carbon:close":""},eSe={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},tSe={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},nSe={key:5,"text-yellow-700":"","dark:text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},DT=et({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,n)=>{const r=Xn("tooltip");return e.state==="pass"?(Z(),fe("div",J1e)):e.failedSnapshot?st((Z(),fe("div",Z1e,null,512)),[[r,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(Z(),fe("div",Q1e)):e.mode==="todo"?st((Z(),fe("div",eSe,null,512)),[[r,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?st((Z(),fe("div",tSe,null,512)),[[r,"Skipped",void 0,{right:!0}]]):(Z(),fe("div",nSe))}}}),rSe={border:"b base","p-4":""},iSe=["innerHTML"],oSe=et({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(n){return new Date(n).toLocaleTimeString()}return(n,r)=>(Z(),fe("div",rSe,[Y("div",{"text-xs":"","mb-1":"",class:rt(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Ee(t(e.time))+" | "+Ee(e.taskName)+" | "+Ee(e.type),3),Y("pre",{"data-type":"html",innerHTML:e.content},null,8,iSe)]))}}),sSe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},lSe={key:1,p6:""},aSe=et({__name:"ViewConsoleOutput",setup(e){const t=we(()=>{const r=eT.value;if(r){const o=Yg(jo.value);return r.map(({taskId:l,type:a,time:f,content:d})=>({taskId:l,type:a,time:f,content:o.toHtml(tc(d))}))}});function n(r){const o=r&&dt.state.idMap.get(r);return o&&"filepath"in o?o.name:(o?hI(o).slice(1).join(" > "):"-")||"-"}return(r,o)=>t.value?.length?(Z(),fe("div",sSe,[(Z(!0),fe(nt,null,vn(t.value,({taskId:l,type:a,time:f,content:d})=>(Z(),fe("div",{key:l,"font-mono":""},[Ce(oSe,{"task-name":n(l),type:a,time:f,content:d},null,8,["task-name","type","time","content"])]))),128))])):(Z(),fe("div",lSe,[...o[0]||(o[0]=[Qe(" Log something in your test and it would print here. (e.g. ",-1),Y("pre",{inline:""},"console.log(foo)",-1),Qe(") ",-1)])]))}}),FT={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(FT);var Cr=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},ul,Ua,ps;class cSe{constructor(...t){ul.set(this,new Map),Ua.set(this,new Map),ps.set(this,new Map);for(const n of t)this.define(n)}define(t,n=!1){for(let[r,o]of Object.entries(t)){r=r.toLowerCase(),o=o.map(f=>f.toLowerCase()),Cr(this,ps,"f").has(r)||Cr(this,ps,"f").set(r,new Set);const l=Cr(this,ps,"f").get(r);let a=!0;for(let f of o){const d=f.startsWith("*");if(f=d?f.slice(1):f,l?.add(f),a&&Cr(this,Ua,"f").set(r,f),a=!1,d)continue;const p=Cr(this,ul,"f").get(f);if(p&&p!=r&&!n)throw new Error(`"${r} -> ${f}" conflicts with "${p} -> ${f}". Pass \`force=true\` to override this definition.`);Cr(this,ul,"f").set(f,r)}}return this}getType(t){if(typeof t!="string")return null;const n=t.replace(/^.*[/\\]/s,"").toLowerCase(),r=n.replace(/^.*\./s,"").toLowerCase(),o=n.length<t.length;return!(r.length<n.length-1)&&o?null:Cr(this,ul,"f").get(r)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&Cr(this,Ua,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:Cr(this,ps,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of Cr(this,ps,"f").values())Object.freeze(t);return this}_getTestState(){return{types:Cr(this,ul,"f"),extensions:Cr(this,Ua,"f")}}}ul=new WeakMap,Ua=new WeakMap,ps=new WeakMap;const uSe=new cSe(FT)._freeze();function Hl(e){const t=e.contentType??"application/octet-stream";return e.path?wr?`./data/${FP(e.path)}`:`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:e.bodyEncoding==="utf-8"?`data:${t},${encodeURIComponent(e.body)}`:`data:${t};base64,${e.body}`}function zT(e,t){const n=t?uSe.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(n?`.${n}`:"")}function BT(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}function $m(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))?t:Hl(e)}const xf=et({__name:"CodeMirrorContainer",props:ac({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:ac(["save","codemirror"],["update:modelValue"]),setup(e,{emit:t}){const n=t,r=Ed(e,"modelValue"),o=f$(),l={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"text/jsx"},tsx:{name:"text/typescript-jsx"}},a=Ve();return ki(async()=>{const f=Zge(a,r,{...o,mode:l[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(d){d.getOption("readOnly")||n("save",d.getValue())},"Ctrl-S":function(d){d.getOption("readOnly")||n("save",d.getValue())}}});f.on("refresh",()=>{n("codemirror",f)}),f.on("change",()=>{n("codemirror",f)}),f.setSize("100%","100%"),f.clearHistory(),jn.value=f,setTimeout(()=>jn.value?.refresh(),100)}),(f,d)=>(Z(),fe("div",{relative:"","font-mono":"","text-sm":"",class:rt(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[Y("textarea",{ref_key:"el",ref:a},null,512)],2))}}),fSe=et({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const n=e,r=t,o=Ve(""),l=qt(void 0),a=Ve(!1),f=Ve(!0),d=Ve(!1),p=Ve();ct(()=>n.file,async()=>{if(!d.value){f.value=!0;try{if(!n.file||!n.file?.filepath){o.value="",l.value=o.value,a.value=!1,f.value=!1;return}o.value=await dt.rpc.readTestFile(n.file.filepath)||"",l.value=o.value,a.value=!1}catch(X){console.error("cannot fetch file",X)}await Mt(),f.value=!1}},{immediate:!0}),ct(()=>[f.value,d.value,n.file,Dk.value,Fk.value],([X,V,q,P,L])=>{!X&&!V&&(P!=null?Mt(()=>{const T=p.value,S=T??{line:(P??1)-1,ch:L??0};T?p.value=void 0:(jn.value?.scrollIntoView(S,100),Mt(()=>{jn.value?.focus(),jn.value?.setCursor(S)}))}):Mt(()=>{jn.value?.focus()}))},{flush:"post"});const m=we(()=>n.file?.filepath?.split(/\./g).pop()||"js"),g=Ve(),y=we(()=>{const X=[];function V(q){q.result?.errors&&X.push(...q.result.errors),q.type==="suite"&&q.tasks.forEach(V)}return n.file?.tasks.forEach(V),X}),w=we(()=>{const X=[];function V(q){q.type==="test"&&X.push(...q.annotations),q.type==="suite"&&q.tasks.forEach(V)}return n.file?.tasks.forEach(V),X}),E=[],_=[],k=[],A=Ve(!1);function N(){k.forEach(([X,V,q])=>{X.removeEventListener("click",V),q()}),k.length=0}fL(g,()=>{jn.value?.refresh()});function I(){a.value=l.value!==jn.value.getValue()}ct(a,X=>{r("draft",X)},{immediate:!0});function $(X){const q=(X?.stacks||[]).filter(R=>R.file&&R.file===n.file?.filepath)?.[0];if(!q)return;const P=document.createElement("div");P.className="op80 flex gap-x-2 items-center";const L=document.createElement("pre");L.className="c-red-700 dark:c-red-400",L.textContent=`${" ".repeat(q.column)}^ ${X.name}: ${X?.message||""}`,P.appendChild(L);const T=document.createElement("span");T.className="i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",T.tabIndex=0,T.ariaLabel="Open in Editor",i_(T,{content:"Open in Editor",placement:"bottom"},!1);const S=async()=>{await Kg(q.file,q.line,q.column)};T.addEventListener("click",S),P.appendChild(T),k.push([T,S,()=>_g(T)]),_.push(jn.value.addLineClass(q.line-1,"wrap","bg-red-500/10")),E.push(jn.value.addLineWidget(q.line-1,P))}function D(X){if(!X.location)return;const{line:V,file:q}=X.location;if(q!==n.file?.filepath)return;const P=document.createElement("div");P.classList.add("wrap","bg-active","py-3","px-6","my-1"),P.role="note";const L=document.createElement("div");L.classList.add("block","text-black","dark:text-white");const T=document.createElement("span");T.textContent=`${X.type}: `,T.classList.add("font-bold");const S=document.createElement("span");S.classList.add("whitespace-pre"),S.textContent=X.message.replace(/[^\r]\n/,`\r
|
|
82
|
-
`),L.append(T,S),P.append(L);const R=X.attachment;if(R?.path||R?.body)if(R.contentType?.startsWith("image/")){const z=document.createElement("a"),ae=document.createElement("img");z.classList.add("inline-block","mt-3"),z.style.maxWidth="50vw";const ve=R.path||R.body;typeof ve=="string"&&(ve.startsWith("http://")||ve.startsWith("https://"))?(ae.setAttribute("src",ve),z.referrerPolicy="no-referrer"):ae.setAttribute("src",Hl(R)),z.target="_blank",z.href=ae.src,z.append(ae),P.append(z)}else{const z=document.createElement("a");z.href=Hl(R),z.download=zT(X.message,R.contentType),z.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ae=document.createElement("div");ae.classList.add("i-carbon:download","block");const ve=document.createElement("span");ve.textContent="Download",z.append(ae,ve),P.append(z)}E.push(jn.value.addLineWidget(V-1,P))}const{pause:U,resume:J}=ct([jn,y,w,gs],([X,V,q,P])=>{if(!X){E.length=0,_.length=0,N();return}P&&(X.off("changes",I),N(),E.forEach(L=>L.clear()),_.forEach(L=>X?.removeLineClass(L,"wrap")),E.length=0,_.length=0,setTimeout(()=>{V.forEach($),q.forEach(D),A.value||X.clearHistory(),X.on("changes",I)},100))},{flush:"post"});f_(()=>[gs.value,d.value,p.value],([X,V],q)=>{X&&!V&&q&&q[2]&&jn.value?.setCursor(q[2])},{debounce:100,flush:"post"});async function ee(X){if(d.value)return;U(),d.value=!0,await Mt();const V=jn.value;V&&(V.setOption("readOnly",!0),await Mt(),V.refresh()),p.value=V?.getCursor(),V?.off("changes",I),N(),E.forEach(q=>q.clear()),_.forEach(q=>V?.removeLineClass(q,"wrap")),E.length=0,_.length=0;try{A.value=!0,await dt.rpc.saveTestFile(n.file.filepath,X),l.value=X,a.value=!1}catch(q){console.error("error saving file",q)}A.value||V?.clearHistory();try{await Db(gs).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await Db(gs).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}y.value.forEach($),w.value.forEach(D),V?.on("changes",I),d.value=!1,await Mt(),V&&(V.setOption("readOnly",!1),await Mt(),V.refresh()),J()}return Dc(N),(X,V)=>(Z(),We(xf,yi({ref_key:"editor",ref:g,modelValue:o.value,"onUpdate:modelValue":V[0]||(V[0]=q=>o.value=q),"h-full":""},{lineNumbers:!0,readOnly:j(wr)||!j(ht).api?.allowWrite,saving:d.value},{mode:m.value,"data-testid":"code-mirror",onSave:ee}),null,16,["modelValue","mode"]))}}),HT=et({__name:"Modal",props:ac({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Ed(e,"modelValue"),n=we(()=>{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""}}),r=we(()=>{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""}}),o=()=>t.value=!1;return(l,a)=>(Z(),fe("div",{class:rt(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Y("div",{class:rt(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:o},null,2),Y("div",{class:rt(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[n.value]]),style:Ut(t.value?{}:{transform:r.value})},[Wt(l.$slots,"default")],6)],2))}}),dSe={class:"overflow-auto max-h-120"},hSe={"my-2":"","mx-4":"","text-sm":"","font-light":"","op-90":""},pSe=["onClick"],mSe=et({__name:"ModuleGraphImportBreakdown",emits:["select"],setup(e,{emit:t}){const n=t,r=we(()=>{const a=Mr.value?.importDurations,f=ht.value.root;if(!a||!f)return[];const d=[];for(const p in a){const m=a[p],g=m.external?RI(p):Bd(f,p);d.push({importedFile:p,relativeFile:o(g),selfTime:m.selfTime,totalTime:m.totalTime,formattedSelfTime:ms(m.selfTime),formattedTotalTime:ms(m.totalTime),selfTimeClass:Yf(m.selfTime),totalTimeClass:Yf(m.totalTime),external:m.external})}return d.sort((p,m)=>m.totalTime-p.totalTime)});function o(l){return l.length<=45?l:`...${l.slice(-45)}`}return(l,a)=>(Z(),fe("div",dSe,[a[1]||(a[1]=Y("h1",{"my-2":"","mx-4":""},[Qe(" Import Duration Breakdown "),Y("span",{"op-70":""},"(ordered by Total Time)")],-1)),Y("table",hSe,[a[0]||(a[0]=Y("thead",null,[Y("tr",null,[Y("th",null," Module "),Y("th",null," Self "),Y("th",null," Total "),Y("th",null," % ")])],-1)),Y("tbody",null,[(Z(!0),fe(nt,null,vn(r.value,f=>(Z(),fe("tr",{key:f.importedFile},[Y("td",{class:"cursor-pointer pr-2",style:Ut({color:f.external?"var(--color-node-external)":void 0}),onClick:d=>n("select",f.importedFile,f.external?"external":"inline")},Ee(f.relativeFile),13,pSe),Y("td",{"pr-2":"",class:rt(f.selfTimeClass)},Ee(f.formattedSelfTime),3),Y("td",{"pr-2":"",class:rt(f.totalTimeClass)},Ee(f.formattedTotalTime),3),Y("td",{"pr-2":"",class:rt(f.totalTimeClass)},Ee(Math.round(f.totalTime/r.value[0].totalTime*100))+"% ",3)]))),128))])])]))}}),ll=et({__name:"Badge",props:{type:{default:"info"}},setup(e){return(t,n)=>(Z(),fe("span",{class:rt(["rounded-full py-0.5 px-2 text-xs text-white select-none",{"bg-red":e.type==="danger","bg-orange":e.type==="warning","bg-gray":e.type==="info","bg-indigo/60":e.type==="tip"}])},[Wt(t.$slots,"default")],2))}}),gSe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},vSe={"p-4":"",relative:""},ySe={flex:"","justify-between":""},bSe={"mr-8":"",flex:"","gap-2":"","items-center":""},wSe={op50:"","font-mono":"","text-sm":""},xSe={key:0,"p-5":""},SSe={key:0,p:"x3 y-1","bg-overlay":"",border:"base b t"},_Se={key:0},kSe={p:"x3 y-1","bg-overlay":"",border:"base b t"},TSe=et({__name:"ModuleTransformResultView",props:{id:{},projectName:{},type:{},canUndo:{type:Boolean}},emits:["close","select","back"],setup(e,{emit:t}){const n=e,r=t,o=VO(()=>{if(Mr.value?.id){if(n.type==="inline")return dt.rpc.getTransformResult(n.projectName,n.id,Mr.value.id,!!cr);if(n.type==="external")return dt.rpc.getExternalResult(n.id,Mr.value.id)}}),l=we(()=>{const I=Mr.value?.importDurations||{};return I[n.id]||I[IP("/@fs/",n.id)]||{}}),a=we(()=>n.id?.split(/\./g).pop()||"js"),f=we(()=>o.value?.source?.trim()||""),d=we(()=>!o.value||!("code"in o.value)||!ht.value.experimental?.fsModuleCache?void 0:o.value.code.lastIndexOf("vitestCache=")!==-1),p=we(()=>!o.value||!("code"in o.value)?null:o.value.code.replace(/\/\/# sourceMappingURL=.*\n/,"").replace(/\/\/# sourceMappingSource=.*\n/,"").replace(/\/\/# vitestCache=.*\n?/,"").trim()||""),m=we(()=>!o.value||!("map"in o.value)?{mappings:""}:{mappings:o.value?.map?.mappings??"",version:o.value?.map?.version}),g=[],y=[],w=[];function E(I,$){const D=I.coordsChar({left:$.clientX,top:$.clientY}),U=I.findMarksAt(D);if(U.length!==1)return;const J=U[0].title;if(J){const ee=U[0].attributes?.["data-external"]==="true"?"external":"inline";r("select",J,ee)}}function _(I){const $=document.createElement("div");$.classList.add("mb-5");const D=ht.value.root;if(D)return I.forEach(({resolvedId:U,totalTime:J,external:ee})=>{const X=document.createElement("div");X.append(document.createTextNode("import "));const V=document.createElement("span"),q=Bd(D,U);V.textContent=`"/${q}"`,V.className="hover:underline decoration-gray cursor-pointer select-none",X.append(V),V.addEventListener("click",()=>{r("select",U,ee?"external":"inline")});const P=document.createElement("span");P.textContent=` ${ms(J)}`;const L=Yf(J);L&&P.classList.add(L),X.append(P),$.append(X)}),$}function k(I){const $=document.createElement("div");$.className="flex ml-2",$.textContent=ms(I);const D=Yf(I);return D&&$.classList.add(D),$}function A(I){if(w.forEach($=>$.clear()),w.length=0,g.forEach($=>$.remove()),g.length=0,y.forEach($=>$.clear()),y.length=0,o.value&&"modules"in o.value){I.off("mousedown",E),I.on("mousedown",E);const $=o.value.untrackedModules;if($?.length){const D=_($);if(!D)return;g.push(D),w.push(I.addLineWidget(0,D,{above:!0}))}o.value.modules?.forEach(D=>{const U={line:D.start.line-1,ch:D.start.column},J={line:D.end.line-1,ch:D.end.column},ee=I.markText(U,J,{title:D.resolvedId,attributes:{"data-external":String(D.external===!0)},className:"hover:underline decoration-red cursor-pointer select-none"});y.push(ee);const X=k(D.totalTime+(D.transformTime||0));$?.length||X.classList.add("-mt-5"),g.push(X),I.addWidget({line:D.end.line-1,ch:D.end.column+1},X,!1)})}}function N(){r("back")}return p_("Escape",()=>{r("close")}),(I,$)=>{const D=Xn("tooltip");return Z(),fe("div",gSe,[Y("div",vSe,[Y("div",ySe,[Y("p",null,[e.canUndo?st((Z(),We(wt,{key:0,icon:"i-carbon-arrow-left",class:"flex-inline",onClick:$[0]||($[0]=U=>N())},null,512)),[[D,"Go Back",void 0,{bottom:!0}]]):Pe("",!0),$[7]||($[7]=Qe(" Module Info ",-1)),Ce(j(Co),{class:"inline","cursor-help":""},{popper:ze(()=>[Qe(" This is module is "+Ee(e.type==="external"?"externalized":"inlined")+". ",1),e.type==="external"?(Z(),fe(nt,{key:0},[Qe(" It means that the module was not processed by Vite plugins, but instead was directly imported by the environment. ")],64)):(Z(),fe(nt,{key:1},[Qe(" It means that the module was processed by Vite plugins. ")],64))]),default:ze(()=>[Ce(ll,{type:"custom","ml-1":"",style:Ut({backgroundColor:`var(--color-node-${e.type})`})},{default:ze(()=>[Qe(Ee(e.type),1)]),_:1},8,["style"])]),_:1}),d.value===!0?(Z(),We(j(Co),{key:1,class:"inline","cursor-help":""},{popper:ze(()=>[...$[4]||($[4]=[Qe(' This module is cached on the file system under `experimental.fsModuleCachePath` ("node_modules/.exprtimental-vitest-cache" by default). ',-1)])]),default:ze(()=>[Ce(ll,{type:"tip","ml-2":""},{default:ze(()=>[...$[3]||($[3]=[Qe(" cached ",-1)])]),_:1})]),_:1})):Pe("",!0),d.value===!1?(Z(),We(j(Co),{key:2,class:"inline","cursor-help":""},{popper:ze(()=>[...$[6]||($[6]=[Y("p",null,"This module is not cached on the file system. It might be the first test run after cache invalidation or",-1),Y("p",null,"it was excluded manually via `experimental_defineCacheKeyGenerator`, or it cannot be cached (modules with `import.meta.glob`, for example).",-1)])]),default:ze(()=>[Ce(ll,{type:"warning","ml-2":""},{default:ze(()=>[...$[5]||($[5]=[Qe(" not cached ",-1)])]),_:1})]),_:1})):Pe("",!0)]),Y("div",bSe,[l.value.selfTime!=null&&l.value.external!==!0?(Z(),We(j(Co),{key:0,class:"inline","cursor-help":""},{popper:ze(()=>[Qe(" It took "+Ee(j(vp)(l.value.selfTime))+" to import this module, excluding static imports. ",1)]),default:ze(()=>[Ce(ll,{type:j(pf)(l.value.selfTime)},{default:ze(()=>[Qe(" self: "+Ee(j(ms)(l.value.selfTime)),1)]),_:1},8,["type"])]),_:1})):Pe("",!0),l.value.totalTime!=null?(Z(),We(j(Co),{key:1,class:"inline","cursor-help":""},{popper:ze(()=>[Qe(" It took "+Ee(j(vp)(l.value.totalTime))+" to import the whole module, including static imports. ",1)]),default:ze(()=>[Ce(ll,{type:j(pf)(l.value.totalTime)},{default:ze(()=>[Qe(" total: "+Ee(j(ms)(l.value.totalTime)),1)]),_:1},8,["type"])]),_:1})):Pe("",!0),j(o)&&"transformTime"in j(o)&&j(o).transformTime?(Z(),We(j(Co),{key:2,class:"inline","cursor-help":""},{popper:ze(()=>[Qe(" It took "+Ee(j(vp)(j(o).transformTime))+" to transform this module by Vite plugins. ",1)]),default:ze(()=>[Ce(ll,{type:j(pf)(j(o).transformTime)},{default:ze(()=>[Qe(" transform: "+Ee(j(ms)(j(o).transformTime)),1)]),_:1},8,["type"])]),_:1})):Pe("",!0)])]),Y("p",wSe,Ee(e.id),1),Ce(wt,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:$[1]||($[1]=U=>r("close"))})]),j(o)?(Z(),fe(nt,{key:1},[Y("div",{grid:"~ rows-[min-content_auto]","overflow-hidden":"","flex-auto":"",class:rt({"cols-2":p.value!=null})},[$[8]||($[8]=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),p.value!=null?(Z(),fe("div",SSe," Transformed ")):Pe("",!0),(Z(),We(xf,yi({key:e.id,"h-full":"","model-value":f.value,"read-only":""},{lineNumbers:!0},{mode:a.value,onCodemirror:$[2]||($[2]=U=>A(U))}),null,16,["model-value","mode"])),p.value!=null?(Z(),We(xf,yi({key:1,"h-full":"","model-value":p.value,"read-only":""},{lineNumbers:!0},{mode:"js"}),null,16,["model-value"])):Pe("",!0)],2),m.value.mappings!==""?(Z(),fe("div",_Se,[Y("div",kSe," Source map (v"+Ee(m.value.version)+") ",1),Ce(xf,yi({"model-value":m.value.mappings,"read-only":""},{lineNumbers:!0}),null,16,["model-value"])])):Pe("",!0)],64)):(Z(),fe("div",xSe," No transform result found for this module. "))])}}}),CSe={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},ESe={flex:"","items-center":"","gap-2":"","px-3":"","py-2":""},ASe={flex:"~ gap-1","items-center":"","select-none":""},MSe={class:"pr-2"},$Se=["id","checked","onChange"],NSe=["for"],OSe={key:0,class:"absolute bg-[#eee] dark:bg-[#222] border-base right-0 mr-2 rounded-xl mt-2"},LSe=et({__name:"ViewModuleGraph",props:ac({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Ed(e,"modelValue"),{graph:r}=OM(t),o=Ve(),l=Ve(!1),a=Ve(),f=uL(a),d=Ve(),p=Ve(null),m=qt(r.value),g=we(()=>{let q="";const P=Mr.value?.importDurations,L=ht.value.experimental?.importDurations.thresholds;if(!P||!L)return q;for(const T in P){const{totalTime:S}=P[T];if(S>=L.danger){q="text-red";break}else S>=L.warn&&(q="text-orange")}return q}),y=Ve(g.value==="text-red");ki(()=>{m.value=_(r.value,null,2),J()}),Yl(()=>{d.value?.shutdown()}),ct(r,()=>{m.value=_(r.value,p.value,2),J()});function w(){m.value=r.value,J()}function E(){y.value=!y.value}function _(q,P,L=2){if(!q.nodes.length||q.nodes.length<=50)return q;const T=new Map;q.nodes.forEach(Me=>T.set(Me.id,new Set)),q.links.forEach(Me=>{const Ke=typeof Me.source=="object"?Me.source.id:String(Me.source),qe=typeof Me.target=="object"?Me.target.id:String(Me.target);T.get(Ke)?.add(qe),T.get(qe)?.add(Ke)});let S;if(P)S=[P];else{const Me=new Set(q.links.map(qe=>typeof qe.target=="object"?qe.target.id:String(qe.target))),Ke=q.nodes.filter(qe=>qe.type==="inline"&&!Me.has(qe.id));S=Ke.length>0?[Ke[0].id]:[q.nodes[0].id]}const R=new Set,z=S.map(Me=>({id:Me,level:0}));for(;z.length>0;){const{id:Me,level:Ke}=z.shift();R.has(Me)||Ke>L||(R.add(Me),Ke<L&&(T.get(Me)||new Set).forEach(He=>{R.has(He)||z.push({id:He,level:Ke+1})}))}const ae=new Map(q.nodes.map(Me=>[Me.id,Me])),ve=Array.from(R).map(Me=>ae.get(Me)).filter(Me=>Me!==void 0),_e=new Map(ve.map(Me=>[Me.id,Me])),je=q.links.map(Me=>{const Ke=typeof Me.source=="object"?Me.source.id:String(Me.source),qe=typeof Me.target=="object"?Me.target.id:String(Me.target);if(R.has(Ke)&&R.has(qe)){const He=_e.get(Ke),Re=_e.get(qe);if(He&&Re)return{...Me,source:He,target:Re}}return null}).filter(Me=>Me!==null);return{nodes:ve,links:je}}function k(q,P){d.value?.filterNodesByType(P,q)}function A(q,P){a.value={id:q,type:P},l.value=!0}function N(){f.undo()}function I(){l.value=!1,f.clear()}function $(q){p.value=q,m.value=_(r.value,q,2),U(),J()}function D(){p.value=null,m.value=_(r.value,null,2),U(),J()}function U(){const q=m.value.nodes.map(T=>{let S,R;return T.id===p.value?(S="var(--color-node-focused)",R="var(--color-node-focused)"):T.type==="inline"?(S=T.color==="var(--color-node-root)"?"var(--color-node-root)":"var(--color-node-inline)",R=S):(S="var(--color-node-external)",R="var(--color-node-external)"),dv({...T,color:S,label:T.label?{...T.label,color:R}:T.label})}),P=new Map(q.map(T=>[T.id,T])),L=m.value.links.map(T=>{const S=typeof T.source=="object"?T.source.id:String(T.source),R=typeof T.target=="object"?T.target.id:String(T.target);return{...T,source:P.get(S),target:P.get(R)}});m.value={nodes:q,links:L}}function J(q=!1){if(d.value?.shutdown(),q&&!n.value){n.value=!0;return}if(!m.value||!o.value)return;const P=m.value.nodes.length;let L=1,T=.5;P>300?(L=.3,T=.2):P>200?(L=.4,T=.3):P>100?(L=.5,T=.3):P>50&&(L=.7,L=.4),d.value=new G1e(o.value,m.value,v1e({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:S,newWidth:R})=>S===0&&R===0?0:.05},forces:{collision:{radiusMultiplier:10},link:{length:140}}},marker:OT.Arrow(2),modifiers:{node:V},positionInitializer:r.value.nodes.length===1?Em.Centered:Em.Randomized,zoom:{initial:L,min:T,max:1.5}}))}const ee=q=>q.button===0,X=q=>q.button===2;function V(q){if(wr)return;let P=0,L=0,T=0,S=!1;q.on("pointerdown",(R,z)=>{!z.x||!z.y||(S=X(R),!(!ee(R)&&!S)&&(P=z.x,L=z.y,T=Date.now()))}).on("pointerup",(R,z)=>{if(!z.x||!z.y)return;const ae=X(R);if(!ee(R)&&!ae||Date.now()-T>500)return;const ve=z.x-P,_e=z.y-L;ve**2+_e**2<100&&(!ae&&!R.shiftKey?A(z.id,z.type):(ae||R.shiftKey)&&(R.preventDefault(),z.type==="inline"&&$(z.id)))}).on("contextmenu",R=>{R.preventDefault()})}return(q,P)=>{const L=Xn("tooltip");return Z(),fe("div",CSe,[Y("div",null,[Y("div",ESe,[Y("div",ASe,[Y("div",MSe,Ee(m.value.nodes.length)+"/"+Ee(j(r).nodes.length)+" "+Ee(m.value.nodes.length===1?"module":"modules"),1),st(Y("input",{id:"hide-node-modules","onUpdate:modelValue":P[0]||(P[0]=T=>n.value=T),type:"checkbox"},null,512),[[IS,n.value]]),P[9]||(P[9]=Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(Z(!0),fe(nt,null,vn(d.value?.nodeTypes.sort(),T=>(Z(),fe("div",{key:T,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${T}`,type:"checkbox",checked:d.value?.nodeTypeFilter.includes(T),onChange:S=>k(T,S.target.checked)},null,40,$Se),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${T}`,"border-b-2":"",style:Ut({"border-color":`var(--color-node-${T})`})},Ee(T)+" Modules",13,NSe)]))),128)),P[10]||(P[10]=Y("div",{"flex-auto":""},null,-1)),P[11]||(P[11]=Y("div",{flex:"~ gap-2","items-center":"","text-xs":"","opacity-60":""},[Y("span",null,"Click on node: details • Right-click/Shift: expand graph")],-1)),Y("div",null,[st(Ce(wt,{icon:"i-carbon-notebook",class:rt(g.value),onClick:P[1]||(P[1]=T=>E())},null,8,["class"]),[[L,`${y.value?"Hide":"Show"} Import Breakdown`,void 0,{bottom:!0}]])]),Y("div",null,[st(Ce(wt,{icon:"i-carbon-ibm-cloud-direct-link-2-connect",onClick:P[2]||(P[2]=T=>w())},null,512),[[L,"Show Full Graph",void 0,{bottom:!0}]])]),Y("div",null,[st(Ce(wt,{icon:"i-carbon-reset",onClick:P[3]||(P[3]=T=>D())},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),y.value?(Z(),fe("div",OSe,[Ce(mSe,{onSelect:P[4]||(P[4]=(T,S)=>A(T,S))})])):Pe("",!0),Y("div",{ref_key:"el",ref:o},null,512),Ce(HT,{modelValue:l.value,"onUpdate:modelValue":P[8]||(P[8]=T=>l.value=T),direction:"right"},{default:ze(()=>[a.value?(Z(),We(I$,{key:0},{default:ze(()=>[Ce(TSe,{id:a.value.id,"project-name":e.projectName,type:a.value.type,"can-undo":j(f).undoStack.value.length>1,onClose:P[5]||(P[5]=T=>I()),onSelect:P[6]||(P[6]=(T,S)=>A(T,S)),onBack:P[7]||(P[7]=T=>N())},null,8,["id","project-name","type","can-undo"])]),_:1})):Pe("",!0)]),_:1},8,["modelValue"])])}}}),RSe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},PSe={"p-4":"",relative:"",border:"base b"},ISe={op50:"","font-mono":"","text-sm":""},DSe={op50:"","font-mono":"","text-sm":""},FSe={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},zSe=["src","alt"],BSe={key:1},HSe=et({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const n=t;return p_("Escape",()=>{n("close")}),(r,o)=>(Z(),fe("div",RSe,[Y("div",PSe,[o[1]||(o[1]=Y("p",null,"Screenshot error",-1)),Y("p",ISe,Ee(e.file),1),Y("p",DSe,Ee(e.name),1),Ce(wt,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:o[0]||(o[0]=l=>n("close"))})]),Y("div",FSe,[e.url?(Z(),fe("img",{key:0,src:e.url,alt:`Screenshot error for '${e.name}' test in file '${e.file}'`,border:"base t r b l dotted red-500"},null,8,zSe)):(Z(),fe("div",BSe," Something was wrong, the image cannot be resolved. "))])]))}}),jSe=no(HSe,[["__scopeId","data-v-08ce44b7"]]),WSe={flex:"~ gap-2 items-center"},jT=et({__name:"FailureScreenshot",props:{task:{}},setup(e){const t=Ve(!1),n=we(()=>{if(e.task.type==="test"){const l=e.task.artifacts.find(a=>a.type==="internal:failureScreenshot");if(l!==void 0)return l}return null}),r=we(()=>n.value&&n.value.attachments.length&&Hl(n.value.attachments[0]));function o(){if(n.value===null||n.value.attachments.length===0)return;const l=n.value.attachments[0].originalPath;fetch(`/__open-in-editor?file=${encodeURIComponent(l)}`)}return(l,a)=>{const f=Xn("tooltip");return r.value?(Z(),fe(nt,{key:0},[Y("div",WSe,[st(Ce(wt,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:a[0]||(a[0]=d=>t.value=!0)},null,512),[[f,"View screenshot error",void 0,{bottom:!0}]]),j(wr)?Pe("",!0):st((Z(),We(wt,{key:0,class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:o},null,512)),[[f,"Open screenshot error in editor",void 0,{bottom:!0}]])]),(Z(),We(HT,{key:r.value,modelValue:t.value,"onUpdate:modelValue":a[2]||(a[2]=d=>t.value=d),direction:"right"},{default:ze(()=>[Ce(jSe,{file:e.task.file.filepath,name:e.task.name,url:r.value,onClose:a[1]||(a[1]=d=>t.value=!1)},null,8,["file","name","url"])]),_:1},8,["modelValue"]))],64)):Pe("",!0)}}}),USe={class:"scrolls scrolls-rounded task-error"},qSe=["onClickPassive"],VSe=["innerHTML"],GSe=et({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function n(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const r=we(()=>Yg(jo.value)),o=we(()=>!!t.error?.diff),l=we(()=>t.error.diff?r.value.toHtml(tc(t.error.diff)):void 0);function a(f){return Uge(f.file,t.filename)?Qge(t.fileId,f):Kg(f.file,f.line,f.column)}return(f,d)=>{const p=Xn("tooltip");return Z(),fe("div",USe,[Y("pre",null,[Y("b",null,Ee(e.error.name),1),Qe(": "+Ee(e.error.message),1)]),(Z(!0),fe(nt,null,vn(e.error.stacks,(m,g)=>(Z(),fe("div",{key:g,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+Ee(n(m.file))+":"+Ee(m.line)+":"+Ee(m.column),1),st(Y("div",{class:"i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:y=>a(m)},null,40,qSe),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),o.value?(Z(),fe("pre",{key:0,"data-testid":"diff",innerHTML:l.value},null,8,VSe)):Pe("",!0)])}}}),WT=no(GSe,[["__scopeId","data-v-bd36ee9a"]]),KSe={"h-full":"",class:"scrolls"},YSe=["id"],XSe={flex:"~ gap-2 items-center"},JSe={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},ZSe=["innerHTML"],QSe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},e_e=et({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function n(o,l){return o.result?.state!=="fail"?[]:o.type==="test"?[{...o,level:l}]:[{...o,level:l},...o.tasks.flatMap(a=>n(a,l+1))]}const r=we(()=>{const o=t.file,l=o.tasks?.flatMap(d=>n(d,0))??[],a=o.result;if(a?.errors?.[0]){const d={id:o.id,file:o,name:o.name,fullName:o.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:a};l.unshift(d)}return l.length>0?Ik(jo.value,l):l});return(o,l)=>(Z(),fe("div",KSe,[r.value.length?(Z(!0),fe(nt,{key:0},vn(r.value,a=>(Z(),fe("div",{id:a.id,key:a.id},[Y("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Ut({"margin-left":`${a.result?.htmlError?.5:2*a.level+.5}rem`})},[Y("div",XSe,[Y("span",null,Ee(a.name),1),Ce(jT,{task:a},null,8,["task"])]),a.result?.htmlError?(Z(),fe("div",JSe,[Y("pre",{innerHTML:a.result.htmlError},null,8,ZSe)])):a.result?.errors&&j(ht).root?(Z(!0),fe(nt,{key:1},vn(a.result.errors,(f,d)=>(Z(),We(WT,{key:d,error:f,filename:e.file.name,root:j(ht).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):Pe("",!0)],4)],8,YSe))),128)):(Z(),fe("div",QSe," All tests passed in this file "))]))}}),t_e=no(e_e,[["__scopeId","data-v-13572615"]]);function hv(e,t){return eve(e,t)}function ld(e){const t=ht.value.root;return`${t?Bd(t,e.file):e.file}:${e.line}:${e.column}`}const n_e=["href","referrerPolicy"],r_e=["src"],i_e=et({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,n=we(()=>{const r=t.annotation.attachment,o=r.path||r.body;return typeof o=="string"&&(o.startsWith("http://")||o.startsWith("https://"))?o:Hl(r)});return(r,o)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(Z(),fe("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:n.value,referrerPolicy:j(BT)(e.annotation.attachment)?"no-referrer":void 0},[Y("img",{src:n.value},null,8,r_e)],8,n_e)):Pe("",!0)}}),Vr=Ve();function UT(e,t){mn.value="bottom",Vr.value={test:t,trace:e}}function qT(){Vr.value=void 0}function VT(e){const t=dt.state.idMap.get(e);if(t?.type!=="test"||t===Vr.value?.test)return;const n=t.file.projectName||"",r=ht.value.projects?.find(l=>l.name===n);if((cr?.config.browser?.traceView??r?.browser.traceView??ht.value.browser?.traceView)?.enabled){const l=t.artifacts.find(a=>a.type==="internal:browserTrace");l&&UT(l,t)}}ct(gi,e=>{(!e||Vr.value?.test.id!==e)&&qT(),e&&VT(e)});ct(gs,e=>{if(e){const t=Vr.value?.test.id;t&&VT(t)}});function GT(e){const t=[];return e.retry&&t.push(`Retry ${e.retry}`),e.repeats&&t.push(`Repeat ${e.repeats}`),t.join(" / ")}const o_e={key:0,class:"text-xs opacity-70"},s_e=et({__name:"TraceArtifactLauncher",props:{trace:{},test:{}},setup(e){const t=e,n=we(()=>GT(t.trace.data));return(r,o)=>(Z(),fe("button",{type:"button",class:"flex items-center gap-2 rounded px-2 py-1 hover:bg-yellow-500/10",onClick:o[0]||(o[0]=l=>j(UT)(e.trace,e.test))},[o[1]||(o[1]=Y("span",{class:"i-carbon:play-outline block"},null,-1)),o[2]||(o[2]=Qe(" Open trace viewer ",-1)),n.value?(Z(),fe("span",o_e,Ee(n.value),1)):Pe("",!0)]))}}),l_e={class:"flex flex-col gap-4"},a_e={key:0},c_e=et({__name:"ArtifactTemplate",setup(e){const t=iS();return(n,r)=>(Z(),fe("article",l_e,[Y("h1",null,[Wt(n.$slots,"title")]),j(t).message?(Z(),fe("p",a_e,[Wt(n.$slots,"message")])):Pe("",!0),Wt(n.$slots,"default")]))}}),KT=Symbol("tabContext"),ad={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},u_e={class:"flex flex-col items-center gap-6"},f_e={role:"tablist","aria-orientation":"horizontal",class:"flex gap-4"},d_e=["id","aria-selected","aria-controls","onClick"],h_e=et({__name:"SmallTabs",setup(e){const t=Ve(null),n=Ve([]),r=dg();return Er(KT,{id:r,activeTab:t,registerTab:o=>{n.value.some(({id:l})=>l===o.id)||n.value.push(o),n.value.length===1&&(t.value=o.id)},unregisterTab:o=>{const l=n.value.findIndex(({id:a})=>a===o.id);l>-1&&n.value.splice(l,1),t.value===o.id&&(t.value=n.value[0]?.id??null)}}),(o,l)=>(Z(),fe("div",u_e,[Y("div",f_e,[(Z(!0),fe(nt,null,vn(n.value,a=>(Z(),fe("button",{id:j(ad).tab(a.id,j(r)),key:a.id,role:"tab","aria-selected":t.value===a.id,"aria-controls":j(ad).tabpanel(a.id,j(r)),type:"button",class:"aria-[selected=true]:underline underline-offset-4",onClick:f=>t.value=a.id},Ee(a.title),9,d_e))),128))]),Wt(o.$slots,"default")]))}}),p_e=["id","aria-labelledby","hidden"],Ku=et({__name:"SmallTabsPane",props:{title:{}},setup(e){const t=e,n=kn(KT);if(!n)throw new Error("TabPane must be used within Tabs");const r=dg(),o=we(()=>n.activeTab.value===r);return ki(()=>{n.registerTab({...t,id:r})}),Yl(()=>{n.unregisterTab({...t,id:r})}),(l,a)=>(Z(),fe("div",{id:j(ad).tabpanel(j(r),j(n).id),role:"tabpanel","aria-labelledby":j(ad).tab(j(r),j(n).id),hidden:!o.value,class:"max-w-full"},[Wt(l.$slots,"default")],8,p_e))}}),YT=et({__name:"VisualRegressionImageContainer",setup(e){const t=`url("${CSS.escape('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path d="M1 2V0h1v1H0v1z" fill-opacity=".05"/></svg>')}")`;return(n,r)=>(Z(),fe("div",{class:"max-w-full w-fit mx-auto bg-[size:16px_16px] bg-[#fafafa] dark:bg-[#3a3a3a] bg-center p-4 rounded user-select-none outline-0 outline-black dark:outline-white outline-offset-4 outline-solid focus-within:has-focus-visible:outline-2",style:Ut({backgroundImage:t})},[Wt(n.$slots,"default")],4))}}),m_e=["href","referrerPolicy"],g_e=["src"],Ap=et({__name:"VisualRegressionImage",props:{attachment:{}},setup(e){const t=we(()=>$m(e.attachment));return(n,r)=>(Z(),We(YT,null,{default:ze(()=>[Y("a",{target:"_blank",href:t.value,referrerPolicy:j(BT)(e.attachment)?"no-referrer":void 0},[Y("img",{src:t.value},null,8,g_e)],8,m_e)]),_:1}))}}),v_e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(0%_0%,var(--split)_0%,var(--split)_100%,0%_100%)]","aria-hidden":"true",role:"presentation"},y_e=["src"],b_e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(var(--split)_0%,100%_0%,100%_100%,var(--split)_100%)]","aria-hidden":"true",role:"presentation"},w_e=["src"],x_e=["id"],S_e=["for"],__e=et({__name:"VisualRegressionSlider",props:{reference:{},actual:{}},setup(e){const t=we(()=>$m(e.reference)),n=we(()=>$m(e.actual)),r=we(()=>Math.max(e.reference.width,e.actual.width)),o=we(()=>Math.max(e.reference.height,e.actual.height)),l=Ve(50),a=dg();return(f,d)=>(Z(),We(YT,null,{default:ze(()=>[Y("div",{"aria-label":"Image comparison slider showing reference and actual screenshots",class:"relative max-w-full h-full overflow-hidden",style:Ut({"--split":`${l.value}%`,aspectRatio:`${r.value} / ${o.value}`,width:`${r.value}px`})},[Y("div",v_e,[Y("img",{src:t.value},null,8,y_e)]),Y("div",b_e,[Y("img",{src:n.value},null,8,w_e)]),d[1]||(d[1]=Y("div",{class:"absolute left-[--split] h-full w-[2px] -translate-x-1/2 bg-white shadow-[0_0_3px_rgb(0_0_0/.2),0_0_10px_rgb(0_0_0/.5)] before:content-[''] before:absolute before:top-1/2 before:size-[16px] before:bg-white before:border-[2px] before:border-black before:rounded-full before:-translate-y-1/2 before:translate-x-[calc(-50%+1px)]","aria-hidden":"true",role:"presentation"},null,-1)),st(Y("input",{id:j(a),"onUpdate:modelValue":d[0]||(d[0]=p=>l.value=p),type:"range",min:"0",max:"100",step:"0.1","aria-label":"Adjust slider to compare reference and actual images",class:"absolute inset-0 opacity-0 cursor-col-resize"},null,8,x_e),[[PS,l.value]]),Y("output",{for:j(a),class:"sr-only"}," Showing "+Ee(l.value)+"% reference, "+Ee(100-l.value)+"% actual ",9,S_e)],4)]),_:1}))}}),k_e=et({__name:"VisualRegression",props:{regression:{}},setup(e){const t=we(()=>({diff:e.regression.attachments.find(n=>n.name==="diff"),reference:e.regression.attachments.find(n=>n.name==="reference"),actual:e.regression.attachments.find(n=>n.name==="actual")}));return(n,r)=>(Z(),We(c_e,null,{title:ze(()=>[...r[0]||(r[0]=[Qe(" Visual Regression ",-1)])]),message:ze(()=>[Qe(Ee(e.regression.message),1)]),default:ze(()=>[Ce(h_e,null,{default:ze(()=>[t.value.diff?(Z(),We(Ku,{key:t.value.diff.path,title:"Diff"},{default:ze(()=>[Ce(Ap,{attachment:t.value.diff},null,8,["attachment"])]),_:1})):Pe("",!0),t.value.reference?(Z(),We(Ku,{key:t.value.reference.path,title:"Reference"},{default:ze(()=>[Ce(Ap,{attachment:t.value.reference},null,8,["attachment"])]),_:1})):Pe("",!0),t.value.actual?(Z(),We(Ku,{key:t.value.actual.path,title:"Actual"},{default:ze(()=>[Ce(Ap,{attachment:t.value.actual},null,8,["attachment"])]),_:1})):Pe("",!0),t.value.reference&&t.value.actual?(Z(),We(Ku,{key:(t.value.reference.path??"")+(t.value.actual.path??""),title:"Slider"},{default:ze(()=>[Ce(__e,{actual:t.value.actual,reference:t.value.reference},null,8,["actual","reference"])]),_:1})):Pe("",!0)]),_:1})]),_:1}))}}),T_e={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},C_e=["onClick"],E_e={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},A_e=et({__name:"Artifacts",props:{test:{}},setup(e){const t=we(()=>{const n=[];for(const r of e.test.artifacts)switch(r.type){case"internal:browserTrace":{n.push({artifact:r,component:s_e,props:{trace:r,test:e.test}});continue}case"internal:toMatchScreenshot":{r.kind==="visual-regression"&&n.push({artifact:r,component:k_e,props:{regression:r}});continue}}return n});return(n,r)=>{const o=Xn("tooltip");return t.value.length?(Z(),fe(nt,{key:0},[r[0]||(r[0]=Y("h1",{"m-2":""}," Test Artifacts ",-1)),(Z(!0),fe(nt,null,vn(t.value,({artifact:l,component:a,props:f},d)=>(Z(),fe("div",{key:l.type+d,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[Y("div",T_e,[Y("div",null,[l.location&&l.location.file===e.test.file.filepath?st((Z(),fe("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>j(hv)(e.test,l.location)},[Qe(Ee(j(ld)(l.location)),1)],8,C_e)),[[o,"Open in Editor",void 0,{bottom:!0}]]):l.location&&l.location.file!==e.test.file.filepath?(Z(),fe("span",E_e,Ee(j(ld)(l.location)),1)):Pe("",!0)])]),(Z(),We(Nf(a),yi({ref_for:!0},f),null,16))]))),128))],64)):Pe("",!0)}}}),M_e={"h-full":"",class:"scrolls"},$_e={key:0},N_e={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},O_e={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},L_e=["innerHTML"],R_e={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},P_e={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},I_e={class:"flex gap-2","overflow-hidden":""},D_e={class:"font-bold","ws-nowrap":"",truncate:""},F_e=["href","download"],z_e=["onClick"],B_e={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},H_e={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},j_e={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},W_e={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},U_e={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},q_e=et({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,n=we(()=>!t.test.result||!t.test.result.errors?.length?null:Ik(jo.value,[t.test])[0]),r=new Set(["benchmark","typecheck","__vitest_label__"]),o=we(()=>Object.entries(t.test.meta).filter(([l])=>!r.has(l)));return(l,a)=>{const f=Xn("tooltip");return Z(),fe("div",M_e,[n.value?(Z(),fe("div",$_e,[Y("div",N_e,[Ce(jT,{task:e.test},null,8,["task"]),e.test.result?.htmlError?(Z(),fe("div",O_e,[Y("pre",{innerHTML:e.test.result.htmlError},null,8,L_e)])):e.test.result?.errors&&j(ht).root?(Z(!0),fe(nt,{key:1},vn(e.test.result.errors,(d,p)=>(Z(),We(WT,{key:p,"file-id":e.test.file.id,error:d,filename:e.test.file.name,root:j(ht).root},null,8,["file-id","error","filename","root"]))),128)):Pe("",!0)])])):(Z(),fe("div",R_e," The test has passed without any errors ")),e.test.annotations.length?(Z(),fe(nt,{key:2},[a[1]||(a[1]=Y("h1",{"m-2":""}," Test Annotations ",-1)),(Z(!0),fe(nt,null,vn(e.test.annotations,d=>(Z(),fe("div",{key:d.type+d.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[Y("div",P_e,[Y("div",I_e,[Y("span",D_e,Ee(d.type),1),d.attachment&&!d.attachment.contentType?.startsWith("image/")?(Z(),fe("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:j(Hl)(d.attachment),download:j(zT)(d.message,d.attachment.contentType)},[...a[0]||(a[0]=[Y("span",{class:"i-carbon:download block"},null,-1),Qe(" Download ",-1)])],8,F_e)):Pe("",!0)]),Y("div",null,[d.location&&d.location.file===e.test.file.filepath?st((Z(),fe("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>j(hv)(e.test,d.location)},[Qe(Ee(j(ld)(d.location)),1)],8,z_e)),[[f,"Open in Editor",void 0,{bottom:!0}]]):d.location&&d.location.file!==e.test.file.filepath?(Z(),fe("span",B_e,Ee(j(ld)(d.location)),1)):Pe("",!0)])]),Y("div",H_e,Ee(d.message),1),Ce(i_e,{annotation:d},null,8,["annotation"])]))),128))],64)):Pe("",!0),Ce(A_e,{test:e.test},null,8,["test"]),o.value.length?(Z(),fe(nt,{key:3},[a[2]||(a[2]=Y("h1",{"m-2":""}," Test Meta ",-1)),Y("div",j_e,[(Z(!0),fe(nt,null,vn(o.value,([d,p])=>(Z(),fe(nt,{key:d},[Y("div",W_e,Ee(d),1),Y("pre",U_e,Ee(p),1)],64))),128))])],64)):Pe("",!0)])}}}),V_e=no(q_e,[["__scopeId","data-v-e53a0c62"]]),G_e={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},K_e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Y_e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},X_e={key:1,class:"rounded-sm px-1 text-xs font-light bg-cyan-500/20 text-cyan-700 dark:text-cyan-300","flex-shrink-0":""},J_e={"flex-1":"","font-light":"","overflow-hidden":"","text-sm":"",flex:""},Z_e={"op-50":"",truncate:""},Q_e=["title"],eke={class:"flex text-lg"},tke={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},nke={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},rke={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},ike={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},oke=["flex-1"],Tx=et({__name:"FileDetails",setup(e){const t=Ve({nodes:[],links:[]}),n=Ve(!1),r=Ve(!1),o=Ve(!1),l=Ve(void 0),a=Ve(!0),f=we(()=>gi.value?dt.state.idMap.get(gi.value):void 0),d=we(()=>{const U=Yt.value;if(!(!U||!U.filepath))return{filepath:U.filepath,projectName:U.file.projectName||""}}),p=we(()=>Yt.value&&Vg(Yt.value)),m=we(()=>!!Yt.value?.meta?.typecheck),g=we(()=>Yt.value?.meta?.__vitest_label__);function y(){const U=Yt.value?.filepath;U&&fetch(`/__open-in-editor?file=${encodeURIComponent(U)}`)}function w(U){U==="graph"&&(r.value=!0),_n.value=U}const E=we(()=>eT.value?.reduce((U,{size:J})=>U+J,0)??0);function _(U){n.value=U}const k=/[/\\]node_modules[/\\]/;async function A(U=!1){if(!(o.value||d.value?.filepath===l.value&&!U)){o.value=!0,await Mt();try{const J=d.value;if(!J){o.value=!1;return}if(U||!l.value||J.filepath!==l.value||!t.value.nodes.length&&!t.value.links.length){let ee=await dt.rpc.getModuleGraph(J.projectName,J.filepath,!!cr);a.value&&(wr&&(ee=typeof window.structuredClone<"u"?window.structuredClone(ee):Dve(ee)),ee.inlined=ee.inlined.filter(X=>!k.test(X)),ee.externalized=ee.externalized.filter(X=>!k.test(X))),t.value=X1e(ee,J.filepath),l.value=J.filepath}w("graph")}finally{await new Promise(J=>setTimeout(J,100)),o.value=!1}}}d_(()=>[d.value,_n.value,a.value],([,U,J],ee)=>{U==="graph"&&A(ee&&J!==ee[2])},{debounce:100,immediate:!0});const N=we(()=>{const U=Yt.value?.file.projectName||"";return Ne.colors.get(U)||mf(Yt.value?.file.projectName)}),I=we(()=>Sk(N.value)),$=we(()=>{const U=gi.value;if(!U)return Yt.value?.name;const J=[];let ee=dt.state.idMap.get(U);for(;ee;)J.push(ee.name),ee=ee.suite;return J.reverse().join(" > ")}),D=we(()=>{const U=gi.value;return U?(dt.state.idMap.get(U)?.tags||[]).map(ee=>({name:ee,description:GI.value[ee]?.description,bg:mf(ee,!0),border:mf(ee),text:"white"})):[]});return(U,J)=>{const ee=Xn("tooltip");return j(Yt)?(Z(),fe("div",G_e,[Y("div",null,[Y("div",K_e,[Ce(DT,{state:j(Yt).result?.state,mode:j(Yt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),m.value?st((Z(),fe("div",Y_e,null,512)),[[ee,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Pe("",!0),g.value?(Z(),fe("span",X_e,Ee(g.value),1)):Pe("",!0),j(Yt)?.file.projectName?(Z(),fe("span",{key:2,class:"rounded-full py-0.5 px-2 text-xs font-light",style:Ut({backgroundColor:N.value,color:I.value}),"cursor-default":""},Ee(j(Yt).file.projectName),5)):Pe("",!0),Y("div",J_e,[Y("span",Z_e,Ee($.value),1),(Z(!0),fe(nt,null,vn(D.value,X=>st((Z(),fe("span",{key:X.name,class:"rounded-full ml-2 px-2 text-xs font-light",style:Ut({backgroundColor:X.bg,color:X.text,border:`1px solid ${X.border}`}),title:X.description,"cursor-default":"",flex:"","items-center":""},[Qe(Ee(X.name),1)],12,Q_e)),[[ee,X.description,void 0,{bottom:!0}]])),128))]),Y("div",eke,[j(wr)?Pe("",!0):st((Z(),We(wt,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!j(Yt)?.filepath,onClick:y},null,8,["disabled"])),[[ee,"Open in editor",void 0,{bottom:!0}]]),j(cr)?(Z(),We(Wd,{key:1})):Pe("",!0)])]),Y("div",tke,[Y("button",{"tab-button":"",class:rt(["flex items-center gap-2",{"tab-button-active":j(_n)==null}]),"data-testid":"btn-report",onClick:J[0]||(J[0]=X=>w(null))},[...J[5]||(J[5]=[Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Qe(" Report ",-1)])],2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:rt(["flex items-center gap-2",{"tab-button-active":j(_n)==="graph"}]),onClick:J[1]||(J[1]=X=>w("graph"))},[o.value?(Z(),fe("span",nke)):(Z(),fe("span",rke)),J[6]||(J[6]=Qe(" Module Graph ",-1))],2),Y("button",{"tab-button":"","data-testid":"btn-code",class:rt(["flex items-center gap-2",{"tab-button-active":j(_n)==="editor"}]),onClick:J[2]||(J[2]=X=>w("editor"))},[J[7]||(J[7]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),Qe(" "+Ee(n.value?"* ":"")+"Code ",1)],2),Y("button",{"tab-button":"","data-testid":"btn-console",class:rt(["flex items-center gap-2",{"tab-button-active":j(_n)==="console",op20:j(_n)!=="console"&&E.value===0}]),onClick:J[3]||(J[3]=X=>w("console"))},[J[8]||(J[8]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),Qe(" Console ("+Ee(E.value)+") ",1)],2)])]),Y("div",ike,[r.value?(Z(),fe("div",{key:0,"flex-1":j(_n)==="graph"&&""},[st(Ce(LSe,{modelValue:a.value,"onUpdate:modelValue":J[4]||(J[4]=X=>a.value=X),graph:t.value,"data-testid":"graph","project-name":j(Yt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Lo,j(_n)==="graph"&&!o.value]])],8,oke)):Pe("",!0),j(_n)==="editor"?(Z(),We(fSe,{key:j(Yt).id,file:j(Yt),"data-testid":"editor",onDraft:_},null,8,["file"])):j(_n)==="console"?(Z(),We(aSe,{key:2,file:j(Yt),"data-testid":"console"},null,8,["file"])):!j(_n)&&!f.value&&j(Yt)?(Z(),We(t_e,{key:3,file:j(Yt),"data-testid":"report"},null,8,["file"])):!j(_n)&&f.value?(Z(),We(V_e,{key:4,test:f.value,"data-testid":"report"},null,8,["test"])):Pe("",!0)])])):Pe("",!0)}}}),ske=""+new URL("../favicon.svg",import.meta.url).href;function lke(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let Sf;function Nm(){Nm.init||(Nm.init=!0,Sf=lke()!==-1)}var Gd={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Nm(),Mt(()=>{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",Sf&&this.$el.appendChild(e),e.data="about:blank",Sf||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&&(!Sf&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ake=U1();j1("data-v-b329ee4c");const cke={class:"resize-observer",tabindex:"-1"};W1();const uke=ake((e,t,n,r,o,l)=>(Z(),We("div",cke)));Gd.render=uke;Gd.__scopeId="data-v-b329ee4c";Gd.__file="src/components/ResizeObserver.vue";function _f(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_f=function(t){return typeof t}:_f=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_f(e)}function fke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hke(e,t,n){return t&&dke(e.prototype,t),e}function Cx(e){return pke(e)||mke(e)||gke(e)||vke()}function pke(e){if(Array.isArray(e))return Om(e)}function mke(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function gke(e,t){if(e){if(typeof e=="string")return Om(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Om(e,t)}}function Om(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vke(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
83
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yke(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function bke(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,o,l,a=function(d){for(var p=arguments.length,m=new Array(p>1?p-1:0),g=1;g<p;g++)m[g-1]=arguments[g];if(l=m,!(r&&d===o)){var y=n.leading;typeof y=="function"&&(y=y(d,o)),(!r||d!==o)&&y&&e.apply(void 0,[d].concat(Cx(l))),o=d,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[d].concat(Cx(l))),r=0},t)}};return a._clear=function(){clearTimeout(r),r=null},a}function XT(e,t){if(e===t)return!0;if(_f(e)==="object"){for(var n in e)if(!XT(e[n],t[n]))return!1;return!0}return!1}var wke=(function(){function e(t,n,r){fke(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}return hke(e,[{key:"createObserver",value:function(n,r){var o=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=yke(n),this.callback=function(f,d){o.options.callback(f,d),f&&o.options.once&&(o.frozen=!0,o.destroyObserver())},this.callback&&this.options.throttle){var l=this.options.throttleOptions||{},a=l.leading;this.callback=bke(this.callback,this.options.throttle,{leading:function(d){return a==="both"||a==="visible"&&d||a==="hidden"&&!d}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(f){var d=f[0];if(f.length>1){var p=f.find(function(g){return g.isIntersecting});p&&(d=p)}if(o.callback){var m=d.isIntersecting&&d.intersectionRatio>=o.threshold;if(m===o.oldResult)return;o.oldResult=m,o.callback(m,d)}},this.options.intersection),Mt(function(){o.observer&&o.observer.observe(o.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 JT(e,t,n){var r=t.value;if(r)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 o=new wke(e,r,n);e._vue_visibilityState=o}}function xke(e,t,n){var r=t.value,o=t.oldValue;if(!XT(r,o)){var l=e._vue_visibilityState;if(!r){ZT(e);return}l?l.createObserver(r,n):JT(e,{value:r},n)}}function ZT(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Ske={beforeMount:JT,updated:xke,unmounted:ZT},_ke={itemsLimit:1e3},kke=/(auto|scroll)/;function QT(e,t){return e.parentNode===null?t:QT(e.parentNode,t.concat([e]))}var Mp=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},Tke=function(t){return Mp(t,"overflow")+Mp(t,"overflow-y")+Mp(t,"overflow-x")},Cke=function(t){return kke.test(Tke(t))};function Ex(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=QT(e.parentNode,[]),n=0;n<t.length;n+=1)if(Cke(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function Lm(e){"@babel/helpers - typeof";return Lm=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},Lm(e)}var Eke={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 Ake(){return this.items.length&&Lm(this.items[0])!=="object"}var Rm=!1;if(typeof window<"u"){Rm=!1;try{var Mke=Object.defineProperty({},"passive",{get:function(){Rm=!0}});window.addEventListener("test",null,Mke)}catch{}}let $ke=0;var pv={name:"RecycleScroller",components:{ResizeObserver:Gd},directives:{ObserveVisibility:Ske},props:{...Eke,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,n=this.sizeField,r=this.minItemSize;let o=1e4,l=0,a;for(let f=0,d=t.length;f<d;f++)a=t[f][n]||r,a<o&&(o=a),l+=a,e[f]={accumulator:l,size:a};return this.$_computedMinItemSize=o,e}return[]},simpleArray:Ake,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let r=0,o=t.length;r<o;r++)n[t[r][e]]=r;return n}},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,n,r,o){const l=Sd({id:$ke++,index:t,used:!0,key:r,type:o}),a=cg({item:n,position:0,nr:l});return e.push(a),a},unuseView(e,t=!1){const n=this.$_unusedViews,r=e.nr.type;let o=n.get(r);o||(o=[],n.set(r,o)),o.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:n}=this.updateVisibleItems(!1,!0);n||(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 n=this.itemSize,r=this.gridItems||1,o=this.itemSecondarySize||n,l=this.$_computedMinItemSize,a=this.typeField,f=this.simpleArray?null:this.keyField,d=this.items,p=d.length,m=this.sizes,g=this.$_views,y=this.$_unusedViews,w=this.pool,E=this.itemIndexByKey;let _,k,A,N,I;if(!p)_=k=N=I=A=0;else if(this.$_prerender)_=N=0,k=I=Math.min(this.prerender,d.length),A=null;else{const V=this.getScroll();if(t){let L=V.start-this.$_lastUpdateScrollPosition;if(L<0&&(L=-L),n===null&&L<l||L<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=V.start;const q=this.buffer;V.start-=q,V.end+=q;let P=0;if(this.$refs.before&&(P=this.$refs.before.scrollHeight,V.start-=P),this.$refs.after){const L=this.$refs.after.scrollHeight;V.end+=L}if(n===null){let L,T=0,S=p-1,R=~~(p/2),z;do z=R,L=m[R].accumulator,L<V.start?T=R:R<p-1&&m[R+1].accumulator>V.start&&(S=R),R=~~((T+S)/2);while(R!==z);for(R<0&&(R=0),_=R,A=m[p-1].accumulator,k=R;k<p&&m[k].accumulator<V.end;k++);for(k===-1?k=d.length-1:(k++,k>p&&(k=p)),N=_;N<p&&P+m[N].accumulator<V.start;N++);for(I=N;I<p&&P+m[I].accumulator<V.end;I++);}else{_=~~(V.start/n*r);const L=_%r;_-=L,k=Math.ceil(V.end/n*r),N=Math.max(0,Math.floor((V.start-P)/n*r)),I=Math.floor((V.end-P)/n*r),_<0&&(_=0),k>p&&(k=p),N<0&&(N=0),I>p&&(I=p),A=Math.ceil(p/r)*n}}k-_>_ke.itemsLimit&&this.itemsLimitError(),this.totalSize=A;let $;const D=_<=this.$_endIndex&&k>=this.$_startIndex;if(D)for(let V=0,q=w.length;V<q;V++)$=w[V],$.nr.used&&(e&&($.nr.index=E[$.item[f]]),($.nr.index==null||$.nr.index<_||$.nr.index>=k)&&this.unuseView($));const U=D?null:new Map;let J,ee,X;for(let V=_;V<k;V++){J=d[V];const q=f?J[f]:J;if(q==null)throw new Error(`Key is ${q} on item (keyField is '${f}')`);if($=g.get(q),!n&&!m[V].size){$&&this.unuseView($);continue}ee=J[a];let P=y.get(ee),L=!1;if(!$)D?P&&P.length?$=P.pop():$=this.addView(w,V,J,q,ee):(X=U.get(ee)||0,(!P||X>=P.length)&&($=this.addView(w,V,J,q,ee),this.unuseView($,!0),P=y.get(ee)),$=P[X],U.set(ee,X+1)),g.delete($.nr.key),$.nr.used=!0,$.nr.index=V,$.nr.key=q,$.nr.type=ee,g.set(q,$),L=!0;else if(!$.nr.used&&($.nr.used=!0,L=!0,P)){const T=P.indexOf($);T!==-1&&P.splice(T,1)}$.item=J,L&&(V===d.length-1&&this.$emit("scroll-end"),V===0&&this.$emit("scroll-start")),n===null?($.position=m[V-1].accumulator,$.offset=0):($.position=Math.floor(V/r)*n,$.offset=V%r*o)}return this.$_startIndex=_,this.$_endIndex=k,this.emitUpdate&&this.$emit("update",_,k,N,I),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:D}},getListenerTarget(){let e=Ex(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let r;if(this.pageMode){const o=e.getBoundingClientRect(),l=n?o.height:o.width;let a=-(n?o.top:o.left),f=n?window.innerHeight:window.innerWidth;a<0&&(f+=a,a=0),a+f>l&&(f=l-a),r={start:a,end:a+f}}else n?r={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:r={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return r},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Rm?{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 n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,r,o;if(this.pageMode){const l=Ex(this.$el),a=l.tagName==="HTML"?0:l[t.scroll],f=l.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-f[t.start];n=l,r=t.scroll,o=e+a+p}else n=this.$el,r=t.scroll,o=e;n[r]=o},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 Nke={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Oke={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Lke(e,t,n,r,o,l){const a=ks("ResizeObserver"),f=Xn("observe-visibility");return st((Z(),fe("div",{class:rt(["vue-recycle-scroller",{ready:o.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...d)=>l.handleScroll&&l.handleScroll(...d))},[e.$slots.before?(Z(),fe("div",Nke,[Wt(e.$slots,"before")],512)):Pe("v-if",!0),(Z(),We(Nf(n.listTag),{ref:"wrapper",style:Ut({[e.direction==="vertical"?"minHeight":"minWidth"]:o.totalSize+"px"}),class:rt(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:ze(()=>[(Z(!0),fe(nt,null,vn(o.pool,d=>(Z(),We(Nf(n.itemTag),yi({key:d.nr.id,style:o.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${d.position}px) translate${e.direction==="vertical"?"X":"Y"}(${d.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&o.hoverKey===d.nr.key}]]},c$(n.skipHover?{}:{mouseenter:()=>{o.hoverKey=d.nr.key},mouseleave:()=>{o.hoverKey=null}})),{default:ze(()=>[Wt(e.$slots,"default",{item:d.item,index:d.nr.index,active:d.nr.used})]),_:2},1040,["style","class"]))),128)),Wt(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(Z(),fe("div",Oke,[Wt(e.$slots,"after")],512)):Pe("v-if",!0),Ce(a,{onNotify:l.handleResize},null,8,["onNotify"])],34)),[[f,l.handleVisibilityChange]])}pv.render=Lke;pv.__file="src/components/RecycleScroller.vue";function Rke(e,t,n){const r=we(()=>fm.value?!1:!Ze.onlyTests),o=we(()=>Ur.value===""),l=Ve(Ur.value),a=we(()=>jr.value==="default");ct(()=>um.value,w=>{!w&&(jr.value==="asc"||jr.value==="desc")&&(jr.value="default")}),d_(()=>Ur.value,w=>{l.value=w?.trim()??""},{debounce:256});function f(w){Ur.value="",w&&e.value?.focus()}function d(w){Ze.failed=!1,Ze.success=!1,Ze.skipped=!1,Ze.slow=!1,Ze.onlyTests=!1,w&&e.value?.focus()}function p(w){_l.value=Jl,w&&t.value?.focus()}function m(w){jr.value="default",w&&n.value?.focus()}function g(){d(!1),f(!0),p(!1),m(!1)}function y(w,E,_,k,A,N,I,$){Dl.value&&(jt.value.search=w?.trim()??"",jt.value.failed=E,jt.value.success=_,jt.value.skipped=k,jt.value.slow=A,jt.value.onlyTests=N,jt.value.project=I,jt.value.projectSort=$==="default"?void 0:$)}return ct(()=>[l.value,Ze.failed,Ze.success,Ze.skipped,Ze.slow,Ze.onlyTests,_l.value,jr.value],([w,E,_,k,A,N,I,$])=>{y(w,E,_,k,A,N,I,$),Ne.filterNodes()},{flush:"post"}),ct(()=>Zr.value.length,w=>{w&&(jt.value.expandAll=void 0)},{flush:"post"}),{initialized:Dl,filter:Ze,search:Ur,disableFilter:r,isFiltered:kk,isFilteredByStatus:fm,disableClearSearch:o,clearAll:g,clearSearch:f,clearFilter:d,filteredFiles:Hd,testsTotal:zI,uiEntries:ur,searchMatcher:_o,enableProjects:um,disableClearProjects:PI,currentProject:_l,currentProjectName:Wg,clearProject:p,projectSort:jr,clearProjectSort:m,disableClearProjectSort:a}}const Pke=["disabled"],Ike={"flex-1":"","ms-2":"","select-none":"","whitespace-nowrap":"",truncate:""},Ia=et({__name:"FilterStatus",props:ac({label:{},disabled:{type:Boolean,default:!1}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Ed(e,"modelValue");function n(){e.disabled||(t.value=!t.value)}return(r,o)=>(Z(),fe("label",yi({class:["font-light text-sm checkbox w-fit flex items-center py-1 gap-y-1 mb-1px overflow-hidden",e.disabled?"cursor-not-allowed op50":"cursor-pointer"]},r.$attrs,{onClick:cf(n,["prevent"])}),[Y("span",{class:rt([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","flex-shrink-0":"","aria-hidden":"true"},null,2),st(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=l=>t.value=l),type:"checkbox",disabled:e.disabled,"sr-only":""},null,8,Pke),[[IS,t.value]]),Y("span",Ike,Ee(e.label),1)],16))}}),Dke=["open"],Fke=et({__name:"ResultsPanel",props:{color:{}},setup(e){const t=Ve(!0);return(n,r)=>(Z(),fe("div",{open:t.value,class:"results-panel","data-testid":"results-panel",onToggle:r[0]||(r[0]=o=>t.value=o.target.open)},[Y("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:rt(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[r[1]||(r[1]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Wt(n.$slots,"summary",{open:t.value}),r[2]||(r[2]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Wt(n.$slots,"default")],40,Dke))}}),zke={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Bke=et({__name:"IconAction",props:{icon:{}},setup(e){return(t,n)=>(Z(),fe("button",zke,[Y("span",{block:"",class:rt([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),Hke=["aria-label","data-current"],jke={key:1,"w-4":""},Wke={flex:"","items-baseline":"","gap-2":"","overflow-hidden":""},Uke={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},qke={key:1,class:"rounded-sm px-1 text-xs font-light bg-cyan-500/20 text-cyan-700 dark:text-cyan-300","flex-shrink-0":""},Vke={"text-sm":"",truncate:"","font-light":""},Gke=["innerHTML"],Kke={"gap-1":"","justify-end":"","items-center":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Yke={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Xke={key:1},Jke=et({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},label:{},duration:{},slow:{type:Boolean},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=we(()=>dt.state.idMap.get(e.taskId)),n=we(()=>{if(wr)return!1;const k=t.value;return k&&Vg(k)});function r(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?Ne.collapseNode(e.taskId):Ne.expandNode(e.taskId)}async function o(k){e.onItemClick?.(k),Ha.value&&(Zf.value=!0,await Mt()),e.type==="file"?await ev([k.file]):await Jve(k)}function l(k){return dt.rpc.updateSnapshot(k.file)}const a=we(()=>e.indent<=0?[]:Array.from({length:e.indent},(k,A)=>`${e.taskId}-${A}`)),f=we(()=>{const k=a.value,A=[];return(e.type==="file"||e.type==="suite")&&A.push("min-content"),A.push("min-content"),e.type==="suite"&&e.typecheck&&A.push("min-content"),A.push("minmax(0, 1fr)"),A.push("min-content"),`grid-template-columns: ${k.map(()=>"1rem").join(" ")} ${A.join(" ")};`}),d=we(()=>ht.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=we(()=>_k(e.name)),m=we(()=>{const k=FI.value,A=p.value;return k?A.replace(k,N=>`<span class="highlight">${N}</span>`):A}),g=we(()=>e.type!=="file"&&e.disableTaskLocation),y=we(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=we(()=>g.value?"color-red5 dark:color-#f43f5e":null);function E(){const k=t.value;e.type==="file"?e.onItemClick?.(k):zk(k)}const _=we(()=>Sk(e.projectNameColor));return(k,A)=>{const N=Xn("tooltip");return t.value?(Z(),fe("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:Ut(f.value),"aria-label":e.name,"data-current":e.current,"data-testid":"explorer-item",onClick:A[2]||(A[2]=I=>r())},[e.indent>0?(Z(!0),fe(nt,{key:0},vn(a.value,I=>(Z(),fe("div",{key:I,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Pe("",!0),e.type==="file"||e.type==="suite"?(Z(),fe("div",jke,[Y("div",{class:rt(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Pe("",!0),Ce(DT,{state:e.state,mode:t.value.mode,"failed-snapshot":n.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),Y("div",Wke,[e.type==="file"&&e.typecheck?st((Z(),fe("div",Uke,null,512)),[[N,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Pe("",!0),e.type==="file"&&e.label?(Z(),fe("span",qke,Ee(e.label),1)):Pe("",!0),Y("span",Vke,[e.type==="file"&&e.projectName?(Z(),fe("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:Ut({backgroundColor:e.projectNameColor,color:_.value})},Ee(e.projectName),5)):Pe("",!0),Y("span",{class:rt(e.state==="fail"?"text-red-700 dark:text-red-500":void 0),innerHTML:m.value},null,10,Gke)]),typeof e.duration=="number"?(Z(),fe("span",{key:2,text:"xs",class:rt(e.slow?"text-yellow-700 dark:text-yellow-500":"op20"),style:{"white-space":"nowrap"}},Ee(e.duration>0?e.duration:"< 1")+"ms ",3)):Pe("",!0)]),Y("div",Kke,[!j(wr)&&n.value&&j(ht).api?.allowExec&&j(ht).api?.allowWrite?st((Z(),We(Bke,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:A[0]||(A[0]=cf(I=>l(t.value),["prevent","stop"]))},null,512)),[[N,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Pe("",!0),Ce(j(Co),{placement:"bottom",class:rt(["w-1.4em h-1.4em op100 rounded flex",w.value])},{popper:ze(()=>[g.value?(Z(),fe("div",Yke,[A[5]||(A[5]=Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),Y("div",null,[Qe(Ee(y.value)+": this feature is not available, you have disabled ",1),A[3]||(A[3]=Y("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),A[4]||(A[4]=Qe(" in your configuration file.",-1))]),A[6]||(A[6]=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))])):(Z(),fe("div",Xke,Ee(y.value),1))]),default:ze(()=>[Ce(wt,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:cf(E,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),j(wr)?Pe("",!0):st((Z(),We(wt,{key:1,"data-testid":"btn-run-test",title:d.value,icon:"i-carbon:play-filled-alt","text-green-700":"","dark:text-green-500":"",disabled:j(ht).api?.allowExec===!1,onClick:A[1]||(A[1]=cf(I=>o(t.value),["prevent","stop"]))},null,8,["title","disabled"])),[[N,d.value,void 0,{bottom:!0}]])])],12,Hke)):Pe("",!0)}}}),Zke=no(Jke,[["__scopeId","data-v-de75cd53"]]),Qke={h:"full",flex:"~ col"},eTe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},tTe={key:0,p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2 gap-y-1","items-center":""},nTe={class:"relative flex-1"},rTe=["value"],iTe=["value"],oTe={p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2","items-center":""},sTe={class:"relative flex-1"},lTe={key:0,value:"asc",class:"text-base bg-base"},aTe={key:1,value:"desc",class:"text-base bg-base"},cTe={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},uTe=["op"],fTe={p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",flex:"~ wrap gap-x-4 justify-between"},dTe={"min-w-full":"",flex:"~ gap-2 items-center"},hTe={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},pTe={"text-red-700":"","dark:text-red-500":""},mTe={"text-yellow-700":"","dark:text-yellow-500":""},gTe={"text-green-700":"","dark:text-green-500":""},vTe={class:"text-purple-700 dark:text-purple-400"},yTe={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},bTe={key:0,"text-red":"","text-center":""},wTe={key:1,op30:""},xTe=["disabled"],STe=["disabled"],_Te={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},kTe=et({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const n=t,r=we(()=>ht.value.includeTaskLocation),o=we(()=>{const L=ht.value.slowTestThreshold;return typeof L=="number"?` (>${L}ms)`:""}),l=Ve(),a=Ve(),f=Ve(),{initialized:d,filter:p,search:m,disableFilter:g,isFiltered:y,isFilteredByStatus:w,disableClearSearch:E,clearAll:_,clearSearch:k,clearFilter:A,filteredFiles:N,testsTotal:I,uiEntries:$,enableProjects:D,disableClearProjects:U,currentProject:J,currentProjectName:ee,clearProject:X,clearProjectSort:V,disableClearProjectSort:q,searchMatcher:P}=Rke(l,a,f);return(L,T)=>{const S=Xn("tooltip");return Z(),fe("div",Qke,[Y("div",null,[Y("div",eTe,[Wt(L.$slots,"header",{filteredFiles:j(y)||j(w)?j(N):void 0})]),j(D)?(Z(),fe("div",tTe,[T[19]||(T[19]=Y("div",{class:"i-carbon:workspace","flex-shrink-0":""},null,-1)),T[20]||(T[20]=Y("label",{for:"project-select","text-sm":""}," Projects ",-1)),Y("div",nTe,[st(Y("select",{id:"project-select",ref_key:"selectProjectRef",ref:a,"onUpdate:modelValue":T[0]||(T[0]=R=>Rt(J)?J.value=R:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[Y("option",{value:j(Jl),class:"text-base bg-base"}," All Projects ",8,rTe),(Z(!0),fe(nt,null,vn(j(Qg),R=>(Z(),fe("option",{key:R,value:R,class:"text-base bg-base"},Ee(R),9,iTe))),128))],512),[[fb,j(J)]]),T[18]||(T[18]=Y("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Ce(wt,{disabled:j(U),title:"Clear project filter",icon:"i-carbon:filter-remove",onClickPassive:T[1]||(T[1]=R=>j(X)(!0))},null,8,["disabled"]),[[S,"Clear project filter",void 0,{bottom:!0}]])])):Pe("",!0),Y("div",oTe,[T[25]||(T[25]=Y("div",{class:"i-carbon:arrows-vertical","flex-shrink-0":""},null,-1)),T[26]||(T[26]=Y("label",{for:"project-sort","text-sm":""}," Sort by ",-1)),Y("div",sTe,[st(Y("select",{id:"project-sort",ref_key:"sortProjectRef",ref:f,"onUpdate:modelValue":T[2]||(T[2]=R=>Rt(jr)?jr.value=R:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[T[21]||(T[21]=Y("option",{value:"default",class:"text-base bg-base"}," Default ",-1)),T[22]||(T[22]=Y("option",{value:"duration-desc",class:"text-base bg-base"}," Slowest first ",-1)),T[23]||(T[23]=Y("option",{value:"duration-asc",class:"text-base bg-base"}," Fastest first ",-1)),j(D)?(Z(),fe("option",lTe," Project A-Z ")):Pe("",!0),j(D)?(Z(),fe("option",aTe," Project Z-A ")):Pe("",!0)],512),[[fb,j(jr)]]),T[24]||(T[24]=Y("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Ce(wt,{disabled:j(q),title:"Reset sort",icon:"i-carbon:filter-reset",onClickPassive:T[3]||(T[3]=R=>j(V)(!0))},null,8,["disabled"]),[[S,"Reset sort",void 0,{bottom:!0}]])]),Y("div",cTe,[T[27]||(T[27]=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),st(Y("input",{ref_key:"searchBox",ref:l,"onUpdate:modelValue":T[4]||(T[4]=R=>Rt(m)?m.value=R:null),placeholder:"Search... (e.g. test name, tag:expression)",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:j(m).length?"100":"50",onKeydown:[T[5]||(T[5]=Jp(R=>j(k)(!1),["esc"])),T[6]||(T[6]=Jp(R=>n("run",j(y)||j(w)?j(N):void 0),["enter"]))]},null,40,uTe),[[PS,j(m)]]),st(Ce(wt,{disabled:j(E),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:T[7]||(T[7]=R=>j(k)(!0))},null,8,["disabled"]),[[S,"Clear search",void 0,{bottom:!0}]])]),Y("div",fTe,[Y("div",dTe,[T[28]||(T[28]=Y("div",{"aria-hidden":"true",class:"i-carbon:filter","flex-shrink-0":""},null,-1)),T[29]||(T[29]=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),st(Ce(wt,{disabled:j(g),title:"Clear filter",icon:"i-carbon:filter-remove",onClickPassive:T[8]||(T[8]=R=>j(A)(!1))},null,8,["disabled"]),[[S,"Clear Filter",void 0,{bottom:!0}]])]),Ce(Ia,{modelValue:j(p).failed,"onUpdate:modelValue":T[9]||(T[9]=R=>j(p).failed=R),label:"Fail"},null,8,["modelValue"]),Ce(Ia,{modelValue:j(p).success,"onUpdate:modelValue":T[10]||(T[10]=R=>j(p).success=R),label:"Pass"},null,8,["modelValue"]),Ce(Ia,{modelValue:j(p).skipped,"onUpdate:modelValue":T[11]||(T[11]=R=>j(p).skipped=R),label:"Skip"},null,8,["modelValue"]),Ce(Ia,{modelValue:j(p).onlyTests,"onUpdate:modelValue":T[12]||(T[12]=R=>j(p).onlyTests=R),label:"Only Tests"},null,8,["modelValue"]),Ce(Ia,{modelValue:j(p).slow,"onUpdate:modelValue":T[13]||(T[13]=R=>j(p).slow=R),label:`Slow${o.value}`},null,8,["modelValue","label"])])]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:T[17]||(T[17]=(...R)=>j(Lb)&&j(Lb)(...R))},[Ce(Fke,null,a$({default:ze(()=>[(j(y)||j(w)||j(ee))&&j($).length===0?(Z(),fe(nt,{key:0},[j(d)?(Z(),fe("div",yTe,[j(P).error?(Z(),fe("div",bTe,Ee(j(P).error),1)):(Z(),fe("div",wTe," No matched test ")),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:rt(j(E)?null:"hover:op100"),disabled:j(E),onClickPassive:T[14]||(T[14]=R=>j(k)(!0))}," Clear Search ",42,xTe),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:rt(j(g)?null:"hover:op100"),disabled:j(g),onClickPassive:T[15]||(T[15]=R=>j(A)(!0))}," Clear Filter ",42,STe),Y("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:T[16]||(T[16]=(...R)=>j(_)&&j(_)(...R))}," Clear All ",32)])):(Z(),fe("div",_Te,[...T[32]||(T[32]=[Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Y("div",{op30:""}," Loading... ",-1)])]))],64)):(Z(),We(j(pv),{key:1,"page-mode":"","key-field":"id","item-size":28,items:j($),buffer:100},{default:ze(({item:R})=>[Ce(Zke,{class:rt(["h-28px m-0 p-0",j(gi)===R.id||!j(gi)&&j(Wo)===R.id?"bg-active":""]),"task-id":R.id,expandable:R.expandable,type:R.type,current:j(Wo)===R.id,indent:R.indent,name:R.name,typecheck:R.typecheck===!0,label:R.label,"project-name":R.projectName??"","project-name-color":R.projectNameColor??"",state:R.state,duration:R.duration,slow:R.slow===!0,opened:R.expanded,"disable-task-location":!r.value,"on-item-click":e.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","label","project-name","project-name-color","state","duration","slow","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[j(d)?{name:"summary",fn:ze(()=>[Y("div",hTe,[Y("span",pTe," FAIL ("+Ee(j(I).failed)+") ",1),T[30]||(T[30]=Y("span",null,"/",-1)),Y("span",mTe," RUNNING ("+Ee(j(I).running)+") ",1),Y("span",gTe," PASS ("+Ee(j(I).success)+") ",1),T[31]||(T[31]=Y("span",null,"/",-1)),Y("span",vTe," SKIP ("+Ee(j(p).onlyTests?j(I).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)])}}}),TTe={class:"flex text-lg"},CTe=et({__name:"Navigation",setup(e){function t(){return dt.rpc.updateSnapshot()}const n=we(()=>jo.value?"light":"dark");async function r(f){ht.value.api?.allowExec!==!1&&(Ha.value&&(Zf.value=!0,await Mt(),Uo.value&&(Qf(!0),await Mt())),f?.length?await ev(f):await Yve())}function o(){Ne.collapseAllNodes()}function l(){Ne.expandAllNodes()}function a(f){return ht.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":f?f.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all"}return(f,d)=>{const p=Xn("tooltip");return Z(),We(kTe,{border:"r base","on-item-click":j(ive),nested:!0,onRun:r},{header:ze(({filteredFiles:m})=>[d[8]||(d[8]=Y("img",{"w-6":"","h-6":"",src:ske,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),Y("div",TTe,[st(Ce(wt,{title:"Collapse tests",disabled:!j(Dl),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=g=>o())},null,8,["disabled"]),[[Lo,!j(yw)],[p,"Collapse tests",void 0,{bottom:!0}]]),st(Ce(wt,{disabled:!j(Dl),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=g=>l())},null,8,["disabled"]),[[Lo,j(yw)],[p,"Expand tests",void 0,{bottom:!0}]]),st(Ce(wt,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=g=>j(Qf)(!0))},null,512),[[Lo,j(mm)&&!j(Ha)||!j(kl)],[p,"Dashboard",void 0,{bottom:!0}]]),j(mm)&&!j(Ha)?(Z(),We(j(Co),{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:ze(()=>[...d[6]||(d[6]=[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)])]),default:ze(()=>[d[7]||(d[7]=Y("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Pe("",!0),j(Ha)?st((Z(),We(wt,{key:1,disabled:j(Zf),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=g=>j(ove)())},null,8,["disabled"])),[[Lo,!j(Uo)],[p,"Coverage",void 0,{bottom:!0}]]):Pe("",!0),j(Ne).summary.failedSnapshot&&!j(wr)&&j(ht).api?.allowExec&&j(ht).api?.allowWrite?st((Z(),We(wt,{key:2,icon:"i-carbon:result-old",disabled:!j(Ne).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=g=>j(Ne).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[p,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Pe("",!0),j(wr)?Pe("",!0):st((Z(),We(wt,{key:3,disabled:m?.length===0||!j(ht).api?.allowExec,icon:"i-carbon:play","data-testid":"btn-run-all",onClick:g=>r(m)},null,8,["disabled","onClick"])),[[p,a(m),void 0,{bottom:!0}]]),st(Ce(wt,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=g=>j(NI)())},null,512),[[p,`Toggle to ${n.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),ETe={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},ATe=et({__name:"ProgressBar",setup(e){const{width:t}=hL(),n=we(()=>[Ne.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!gs.value&&"in-progress"].filter(Boolean).join(" ")),r=we(()=>{const f=Ne.summary.files;return f>0?t.value*Ne.summary.filesSuccess/f:0}),o=we(()=>{const f=Ne.summary.files;return f>0?t.value*Ne.summary.filesFailed/f:0}),l=we(()=>Ne.summary.files-Ne.summary.filesFailed-Ne.summary.filesSuccess),a=we(()=>{const f=Ne.summary.files;return f>0?t.value*l.value/f:0});return(f,d)=>(Z(),fe("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:rt(n.value)},[Y("div",ETe,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red-700":"","dark:bg-red-500":"","h-3px":"",class:rt(n.value),style:Ut(`width: ${o.value}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green-700":"","dark:bg-green-500":"","h-3px":"",class:rt(n.value),style:Ut(`left: ${o.value}px; width: ${r.value}px;`)}," ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow-700":"","dark:bg-yellow-500":"","h-3px":"",class:rt(n.value),style:Ut(`left: ${r.value+o.value}px; width: ${a.value}px;`)}," ",6)])],2))}}),MTe=no(ATe,[["__scopeId","data-v-d5dc96ee"]]);var Ax={},$Te=Object.defineProperty,NTe=(e,t,n)=>t in e?$Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mx=(e,t,n)=>NTe(e,typeof t!="symbol"?t+"":t,n),Jt=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Jt||{});function OTe(e){return e.nodeType===e.ELEMENT_NODE}class eC{constructor(){Mx(this,"idNodeMap",new Map),Mx(this,"nodeMetaMap",new WeakMap)}getId(t){var n;return t?((n=this.getMeta(t))==null?void 0:n.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function LTe(){return new eC}function RTe(e,t){return!e||!t||e.type!==t.type?!1:e.type===Jt.Document?e.compatMode===t.compatMode:e.type===Jt.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===Jt.Comment||e.type===Jt.Text||e.type===Jt.CDATA?e.textContent===t.textContent:e.type===Jt.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function PTe(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,o=n.pathname.match(r);return o?.[1]??null}const ITe=/(max|min)-device-(width|height)/,$x=new RegExp(ITe.source,"g"),DTe={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match($x)&&(e.params=e.params.replace($x,"$1-$2"))}}}},FTe={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(n){n.includes(":hover")&&(t.selector+=`,
|
|
84
|
-
`+n.replace(/:hover/g,".\\:hover")),n.includes(":active")&&(t.selector+=`,
|
|
85
|
-
`+n.replace(/:active/g,".\\:active")),n.includes(":focus-visible")&&(t.selector+=`,
|
|
86
|
-
`+n.replace(/:focus-visible/g,".\\:focus-visible")),n.includes(":focus-within")&&(t.selector+=`,
|
|
87
|
-
`+n.replace(/:focus-within/g,".\\:focus-within")),/:focus(?![-\w])/.test(n)&&(t.selector+=`,
|
|
88
|
-
`+n.replace(/:focus(?![-\w])/g,".\\:focus"))}))}}}};function zTe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function BTe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var mv={exports:{}},Ot=String,tC=function(){return{isColorSupported:!1,reset:Ot,bold:Ot,dim:Ot,italic:Ot,underline:Ot,inverse:Ot,hidden:Ot,strikethrough:Ot,black:Ot,red:Ot,green:Ot,yellow:Ot,blue:Ot,magenta:Ot,cyan:Ot,white:Ot,gray:Ot,bgBlack:Ot,bgRed:Ot,bgGreen:Ot,bgYellow:Ot,bgBlue:Ot,bgMagenta:Ot,bgCyan:Ot,bgWhite:Ot}};mv.exports=tC();mv.exports.createColors=tC;var HTe=mv.exports;const jTe={},WTe=Object.freeze(Object.defineProperty({__proto__:null,default:jTe},Symbol.toStringTag,{value:"Module"})),ni=BTe(WTe);let Nx=HTe,Ox=ni,Pm=class nC extends Error{constructor(t,n,r,o,l,a){super(t),this.name="CssSyntaxError",this.reason=t,l&&(this.file=l),o&&(this.source=o),a&&(this.plugin=a),typeof n<"u"&&typeof r<"u"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,nC)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let n=this.source;t==null&&(t=Nx.isColorSupported),Ox&&t&&(n=Ox(n));let r=n.split(/\r?\n/),o=Math.max(this.line-3,0),l=Math.min(this.line+2,r.length),a=String(l).length,f,d;if(t){let{bold:p,gray:m,red:g}=Nx.createColors(!0);f=y=>p(g(y)),d=y=>m(y)}else f=d=p=>p;return r.slice(o,l).map((p,m)=>{let g=o+1+m,y=" "+(" "+g).slice(-a)+" | ";if(g===this.line){let w=d(y.replace(/\d/g," "))+p.slice(0,this.column-1).replace(/[^\t]/g," ");return f(">")+d(y)+p+`
|
|
89
|
-
`+w+f("^")}return" "+d(y)+p}).join(`
|
|
90
|
-
`)}toString(){let t=this.showSourceCode();return t&&(t=`
|
|
91
|
-
|
|
92
|
-
`+t+`
|
|
93
|
-
`),this.name+": "+this.message+t}};var gv=Pm;Pm.default=Pm;var Yc={};Yc.isClean=Symbol("isClean");Yc.my=Symbol("my");const Lx={after:`
|
|
94
|
-
`,beforeClose:`
|
|
95
|
-
`,beforeComment:`
|
|
96
|
-
`,beforeDecl:`
|
|
97
|
-
`,beforeOpen:" ",beforeRule:`
|
|
98
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function UTe(e){return e[0].toUpperCase()+e.slice(1)}let Im=class{constructor(t){this.builder=t}atrule(t,n){let r="@"+t.name,o=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?r+=t.raws.afterName:o&&(r+=" "),t.nodes)this.block(t,r+o);else{let l=(t.raws.between||"")+(n?";":"");this.builder(r+o+l,t)}}beforeAfter(t,n){let r;t.type==="decl"?r=this.raw(t,null,"beforeDecl"):t.type==="comment"?r=this.raw(t,null,"beforeComment"):n==="before"?r=this.raw(t,null,"beforeRule"):r=this.raw(t,null,"beforeClose");let o=t.parent,l=0;for(;o&&o.type!=="root";)l+=1,o=o.parent;if(r.includes(`
|
|
99
|
-
`)){let a=this.raw(t,null,"indent");if(a.length)for(let f=0;f<l;f++)r+=a}return r}block(t,n){let r=this.raw(t,"between","beforeOpen");this.builder(n+r+"{",t,"start");let o;t.nodes&&t.nodes.length?(this.body(t),o=this.raw(t,"after")):o=this.raw(t,"after","emptyBody"),o&&this.builder(o),this.builder("}",t,"end")}body(t){let n=t.nodes.length-1;for(;n>0&&t.nodes[n].type==="comment";)n-=1;let r=this.raw(t,"semicolon");for(let o=0;o<t.nodes.length;o++){let l=t.nodes[o],a=this.raw(l,"before");a&&this.builder(a),this.stringify(l,n!==o||r)}}comment(t){let n=this.raw(t,"left","commentLeft"),r=this.raw(t,"right","commentRight");this.builder("/*"+n+t.text+r+"*/",t)}decl(t,n){let r=this.raw(t,"between","colon"),o=t.prop+r+this.rawValue(t,"value");t.important&&(o+=t.raws.important||" !important"),n&&(o+=";"),this.builder(o,t)}document(t){this.body(t)}raw(t,n,r){let o;if(r||(r=n),n&&(o=t.raws[n],typeof o<"u"))return o;let l=t.parent;if(r==="before"&&(!l||l.type==="root"&&l.first===t||l&&l.type==="document"))return"";if(!l)return Lx[r];let a=t.root();if(a.rawCache||(a.rawCache={}),typeof a.rawCache[r]<"u")return a.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(t,r);{let f="raw"+UTe(r);this[f]?o=this[f](a,t):a.walk(d=>{if(o=d.raws[n],typeof o<"u")return!1})}return typeof o>"u"&&(o=Lx[r]),a.rawCache[r]=o,o}rawBeforeClose(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return n=r.raws.after,n.includes(`
|
|
100
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeComment(t,n){let r;return t.walkComments(o=>{if(typeof o.raws.before<"u")return r=o.raws.before,r.includes(`
|
|
101
|
-
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(t,n){let r;return t.walkDecls(o=>{if(typeof o.raws.before<"u")return r=o.raws.before,r.includes(`
|
|
102
|
-
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(n,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){let n;return t.walk(r=>{if(r.type!=="decl"&&(n=r.raws.between,typeof n<"u"))return!1}),n}rawBeforeRule(t){let n;return t.walk(r=>{if(r.nodes&&(r.parent!==t||t.first!==r)&&typeof r.raws.before<"u")return n=r.raws.before,n.includes(`
|
|
103
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawColon(t){let n;return t.walkDecls(r=>{if(typeof r.raws.between<"u")return n=r.raws.between.replace(/[^\s:]/g,""),!1}),n}rawEmptyBody(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length===0&&(n=r.raws.after,typeof n<"u"))return!1}),n}rawIndent(t){if(t.raws.indent)return t.raws.indent;let n;return t.walk(r=>{let o=r.parent;if(o&&o!==t&&o.parent&&o.parent===t&&typeof r.raws.before<"u"){let l=r.raws.before.split(`
|
|
104
|
-
`);return n=l[l.length-1],n=n.replace(/\S/g,""),!1}}),n}rawSemicolon(t){let n;return t.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(n=r.raws.semicolon,typeof n<"u"))return!1}),n}rawValue(t,n){let r=t[n],o=t.raws[n];return o&&o.value===r?o.raw:r}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,n){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,n)}};var rC=Im;Im.default=Im;let qTe=rC;function Dm(e,t){new qTe(t).stringify(e)}var Kd=Dm;Dm.default=Dm;let{isClean:Yu,my:VTe}=Yc,GTe=gv,KTe=rC,YTe=Kd;function Fm(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r==="proxyCache")continue;let o=e[r],l=typeof o;r==="parent"&&l==="object"?t&&(n[r]=t):r==="source"?n[r]=o:Array.isArray(o)?n[r]=o.map(a=>Fm(a,n)):(l==="object"&&o!==null&&(o=Fm(o)),n[r]=o)}return n}let zm=class{constructor(t={}){this.raws={},this[Yu]=!1,this[VTe]=!0;for(let n in t)if(n==="nodes"){this.nodes=[];for(let r of t[n])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[n]=t[n]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let n=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let n in t)this[n]=t[n];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let n=Fm(this);for(let r in t)n[r]=t[r];return n}cloneAfter(t={}){let n=this.clone(t);return this.parent.insertAfter(this,n),n}cloneBefore(t={}){let n=this.clone(t);return this.parent.insertBefore(this,n),n}error(t,n={}){if(this.source){let{end:r,start:o}=this.rangeBy(n);return this.source.input.error(t,{column:o.column,line:o.line},{column:r.column,line:r.line},n)}return new GTe(t)}getProxyProcessor(){return{get(t,n){return n==="proxyOf"?t:n==="root"?()=>t.root().toProxy():t[n]},set(t,n,r){return t[n]===r||(t[n]=r,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}}markDirty(){if(this[Yu]){this[Yu]=!1;let t=this;for(;t=t.parent;)t[Yu]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,n){let r=this.source.start;if(t.index)r=this.positionInside(t.index,n);else if(t.word){n=this.toString();let o=n.indexOf(t.word);o!==-1&&(r=this.positionInside(o,n))}return r}positionInside(t,n){let r=n||this.toString(),o=this.source.start.column,l=this.source.start.line;for(let a=0;a<t;a++)r[a]===`
|
|
105
|
-
`?(o=1,l+=1):o+=1;return{column:o,line:l}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let n={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:n.column+1,line:n.line};if(t.word){let o=this.toString(),l=o.indexOf(t.word);l!==-1&&(n=this.positionInside(l,o),r=this.positionInside(l+t.word.length,o))}else t.start?n={column:t.start.column,line:t.start.line}:t.index&&(n=this.positionInside(t.index)),t.end?r={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?r=this.positionInside(t.endIndex):t.index&&(r=this.positionInside(t.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line}),{end:r,start:n}}raw(t,n){return new KTe().raw(this,t,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let n=this,r=!1;for(let o of t)o===this?r=!0:r?(this.parent.insertAfter(n,o),n=o):this.parent.insertBefore(n,o);r||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,n){let r={},o=n==null;n=n||new Map;let l=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let f=this[a];if(Array.isArray(f))r[a]=f.map(d=>typeof d=="object"&&d.toJSON?d.toJSON(null,n):d);else if(typeof f=="object"&&f.toJSON)r[a]=f.toJSON(null,n);else if(a==="source"){let d=n.get(f.input);d==null&&(d=l,n.set(f.input,l),l++),r[a]={end:f.end,inputId:d,start:f.start}}else r[a]=f}return o&&(r.inputs=[...n.keys()].map(a=>a.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=YTe){t.stringify&&(t=t.stringify);let n="";return t(this,r=>{n+=r}),n}warn(t,n,r){let o={node:this};for(let l in r)o[l]=r[l];return t.warn(n,o)}get proxyOf(){return this}};var Yd=zm;zm.default=zm;let XTe=Yd,Bm=class extends XTe{constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Xd=Bm;Bm.default=Bm;let JTe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ZTe=(e=21)=>{let t="",n=e;for(;n--;)t+=JTe[Math.random()*64|0];return t};var QTe={nanoid:ZTe};let{SourceMapConsumer:Rx,SourceMapGenerator:Px}=ni,{existsSync:eCe,readFileSync:tCe}=ni,{dirname:$p,join:nCe}=ni;function rCe(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}let Hm=class{constructor(t,n){if(n.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let r=n.map?n.map.prev:void 0,o=this.loadMap(n.from,r);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=$p(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new Rx(this.text)),this.consumerCache}decodeInline(t){let n=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/;if(o.test(t)||l.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(n.test(t)||r.test(t))return rCe(t.substr(RegExp.lastMatch.length));let a=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let n=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let r=t.lastIndexOf(n.pop()),o=t.indexOf("*/",r);r>-1&&o>-1&&(this.annotation=this.getAnnotationURL(t.substring(r,o)))}loadFile(t){if(this.root=$p(t),eCe(t))return this.mapFile=t,tCe(t,"utf-8").toString().trim()}loadMap(t,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let r=n(t);if(r){let o=this.loadFile(r);if(!o)throw new Error("Unable to load previous source map: "+r.toString());return o}}else{if(n instanceof Rx)return Px.fromSourceMap(n).toString();if(n instanceof Px)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return t&&(r=nCe($p(t),r)),this.loadFile(r)}}}startWith(t,n){return t?t.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var iC=Hm;Hm.default=Hm;let{SourceMapConsumer:iCe,SourceMapGenerator:oCe}=ni,{fileURLToPath:Ix,pathToFileURL:Xu}=ni,{isAbsolute:jm,resolve:Wm}=ni,{nanoid:sCe}=QTe,Np=ni,Dx=gv,lCe=iC,Op=Symbol("fromOffsetCache"),aCe=!!(iCe&&oCe),Fx=!!(Wm&&jm),cd=class{constructor(t,n={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!Fx||/^\w+:\/\//.test(n.from)||jm(n.from)?this.file=n.from:this.file=Wm(n.from)),Fx&&aCe){let r=new lCe(this.css,n);if(r.text){this.map=r;let o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+sCe(6)+">"),this.map&&(this.map.file=this.from)}error(t,n,r,o={}){let l,a,f;if(n&&typeof n=="object"){let p=n,m=r;if(typeof p.offset=="number"){let g=this.fromOffset(p.offset);n=g.line,r=g.col}else n=p.line,r=p.column;if(typeof m.offset=="number"){let g=this.fromOffset(m.offset);a=g.line,f=g.col}else a=m.line,f=m.column}else if(!r){let p=this.fromOffset(n);n=p.line,r=p.col}let d=this.origin(n,r,a,f);return d?l=new Dx(t,d.endLine===void 0?d.line:{column:d.column,line:d.line},d.endLine===void 0?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,o.plugin):l=new Dx(t,a===void 0?n:{column:r,line:n},a===void 0?r:{column:f,line:a},this.css,this.file,o.plugin),l.input={column:r,endColumn:f,endLine:a,line:n,source:this.css},this.file&&(Xu&&(l.input.url=Xu(this.file).toString()),l.input.file=this.file),l}fromOffset(t){let n,r;if(this[Op])r=this[Op];else{let l=this.css.split(`
|
|
106
|
-
`);r=new Array(l.length);let a=0;for(let f=0,d=l.length;f<d;f++)r[f]=a,a+=l[f].length+1;this[Op]=r}n=r[r.length-1];let o=0;if(t>=n)o=r.length-1;else{let l=r.length-2,a;for(;o<l;)if(a=o+(l-o>>1),t<r[a])l=a-1;else if(t>=r[a+1])o=a+1;else{o=a;break}}return{col:t-r[o]+1,line:o+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:Wm(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,n,r,o){if(!this.map)return!1;let l=this.map.consumer(),a=l.originalPositionFor({column:n,line:t});if(!a.source)return!1;let f;typeof r=="number"&&(f=l.originalPositionFor({column:o,line:r}));let d;jm(a.source)?d=Xu(a.source):d=new URL(a.source,this.map.consumer().sourceRoot||Xu(this.map.mapFile));let p={column:a.column,endColumn:f&&f.column,endLine:f&&f.line,line:a.line,url:d.toString()};if(d.protocol==="file:")if(Ix)p.file=Ix(d);else throw new Error("file: protocol is not available in this PostCSS build");let m=l.sourceContentFor(a.source);return m&&(p.source=m),p}toJSON(){let t={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(t[n]=this[n]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}};var Jd=cd;cd.default=cd;Np&&Np.registerInput&&Np.registerInput(cd);let{SourceMapConsumer:oC,SourceMapGenerator:kf}=ni,{dirname:Tf,relative:sC,resolve:lC,sep:aC}=ni,{pathToFileURL:zx}=ni,cCe=Jd,uCe=!!(oC&&kf),fCe=!!(Tf&&lC&&sC&&aC),dCe=class{constructor(t,n,r,o){this.stringify=t,this.mapOpts=r.map||{},this.root=n,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let n=`
|
|
107
|
-
`;this.css.includes(`\r
|
|
108
|
-
`)&&(n=`\r
|
|
109
|
-
`),this.css+=n+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),r=t.root||Tf(t.file),o;this.mapOpts.sourcesContent===!1?(o=new oC(t.text),o.sourcesContent&&(o.sourcesContent=null)):o=t.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),fCe&&uCe&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,n=>{t+=n}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=kf.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new kf({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new kf({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,n=1,r="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},l,a;this.stringify(this.root,(f,d,p)=>{if(this.css+=f,d&&p!=="end"&&(o.generated.line=t,o.generated.column=n-1,d.source&&d.source.start?(o.source=this.sourcePath(d),o.original.line=d.source.start.line,o.original.column=d.source.start.column-1,this.map.addMapping(o)):(o.source=r,o.original.line=1,o.original.column=0,this.map.addMapping(o))),l=f.match(/\n/g),l?(t+=l.length,a=f.lastIndexOf(`
|
|
110
|
-
`),n=f.length-a):n+=f.length,d&&p!=="start"){let m=d.parent||{raws:{}};(!(d.type==="decl"||d.type==="atrule"&&!d.nodes)||d!==m.last||m.raws.semicolon)&&(d.source&&d.source.end?(o.source=this.sourcePath(d),o.original.line=d.source.end.line,o.original.column=d.source.end.column-1,o.generated.line=t,o.generated.column=n-2,this.map.addMapping(o)):(o.source=r,o.original.line=1,o.original.column=0,o.generated.line=t,o.generated.column=n-1,this.map.addMapping(o)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let n=this.memoizedPaths.get(t);if(n)return n;let r=this.opts.to?Tf(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Tf(lC(r,this.mapOpts.annotation)));let o=sC(r,t);return this.memoizedPaths.set(t,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let n=t.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let t=new cCe(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(n=>{if(n.source){let r=n.source.input.from;if(r&&!t[r]){t[r]=!0;let o=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(o,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let n=this.memoizedFileURLs.get(t);if(n)return n;if(zx){let r=zx(t).toString();return this.memoizedFileURLs.set(t,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let n=this.memoizedURLs.get(t);if(n)return n;aC==="\\"&&(t=t.replace(/\\/g,"/"));let r=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,r),r}};var cC=dCe;let hCe=Yd,Um=class extends hCe{constructor(t){super(t),this.type="comment"}};var Zd=Um;Um.default=Um;let{isClean:uC,my:fC}=Yc,dC=Xd,hC=Zd,pCe=Yd,pC,vv,yv,mC;function gC(e){return e.map(t=>(t.nodes&&(t.nodes=gC(t.nodes)),delete t.source,t))}function vC(e){if(e[uC]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)vC(t)}let Qi=class yC extends pCe{append(...t){for(let n of t){let r=this.normalize(n,this.last);for(let o of r)this.proxyOf.nodes.push(o)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let n of this.nodes)n.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,o;for(;this.indexes[n]<this.proxyOf.nodes.length&&(r=this.indexes[n],o=t(this.proxyOf.nodes[r],r),o!==!1);)this.indexes[n]+=1;return delete this.indexes[n],o}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,n){return n==="proxyOf"?t:t[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...r)=>t[n](...r.map(o=>typeof o=="function"?(l,a)=>o(l.toProxy(),a):o)):n==="every"||n==="some"?r=>t[n]((o,...l)=>r(o.toProxy(),...l)):n==="root"?()=>t.root().toProxy():n==="nodes"?t.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?t[n].toProxy():t[n]:t[n]},set(t,n,r){return t[n]===r||(t[n]=r,(n==="name"||n==="params"||n==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,n){let r=this.index(t),o=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(t);for(let a of o)this.proxyOf.nodes.splice(r+1,0,a);let l;for(let a in this.indexes)l=this.indexes[a],r<l&&(this.indexes[a]=l+o.length);return this.markDirty(),this}insertBefore(t,n){let r=this.index(t),o=r===0?"prepend":!1,l=this.normalize(n,this.proxyOf.nodes[r],o).reverse();r=this.index(t);for(let f of l)this.proxyOf.nodes.splice(r,0,f);let a;for(let f in this.indexes)a=this.indexes[f],r<=a&&(this.indexes[f]=a+l.length);return this.markDirty(),this}normalize(t,n){if(typeof t=="string")t=gC(pC(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let o of t)o.parent&&o.parent.removeChild(o,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let o of t)o.parent&&o.parent.removeChild(o,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new dC(t)]}else if(t.selector)t=[new vv(t)];else if(t.name)t=[new yv(t)];else if(t.text)t=[new hC(t)];else throw new Error("Unknown node type in node creation");return t.map(o=>(o[fC]||yC.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[uC]&&vC(o),typeof o.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(o.raws.before=n.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...t){t=t.reverse();for(let n of t){let r=this.normalize(n,this.first,"prepend").reverse();for(let o of r)this.proxyOf.nodes.unshift(o);for(let o in this.indexes)this.indexes[o]=this.indexes[o]+r.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=t&&(this.indexes[r]=n-1);return this.markDirty(),this}replaceValues(t,n,r){return r||(r=n,n={}),this.walkDecls(o=>{n.props&&!n.props.includes(o.prop)||n.fast&&!o.value.includes(n.fast)||(o.value=o.value.replace(t,r))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((n,r)=>{let o;try{o=t(n,r)}catch(l){throw n.addToError(l)}return o!==!1&&n.walk&&(o=n.walk(t)),o})}walkAtRules(t,n){return n?t instanceof RegExp?this.walk((r,o)=>{if(r.type==="atrule"&&t.test(r.name))return n(r,o)}):this.walk((r,o)=>{if(r.type==="atrule"&&r.name===t)return n(r,o)}):(n=t,this.walk((r,o)=>{if(r.type==="atrule")return n(r,o)}))}walkComments(t){return this.walk((n,r)=>{if(n.type==="comment")return t(n,r)})}walkDecls(t,n){return n?t instanceof RegExp?this.walk((r,o)=>{if(r.type==="decl"&&t.test(r.prop))return n(r,o)}):this.walk((r,o)=>{if(r.type==="decl"&&r.prop===t)return n(r,o)}):(n=t,this.walk((r,o)=>{if(r.type==="decl")return n(r,o)}))}walkRules(t,n){return n?t instanceof RegExp?this.walk((r,o)=>{if(r.type==="rule"&&t.test(r.selector))return n(r,o)}):this.walk((r,o)=>{if(r.type==="rule"&&r.selector===t)return n(r,o)}):(n=t,this.walk((r,o)=>{if(r.type==="rule")return n(r,o)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Qi.registerParse=e=>{pC=e};Qi.registerRule=e=>{vv=e};Qi.registerAtRule=e=>{yv=e};Qi.registerRoot=e=>{mC=e};var Ns=Qi;Qi.default=Qi;Qi.rebuild=e=>{e.type==="atrule"?Object.setPrototypeOf(e,yv.prototype):e.type==="rule"?Object.setPrototypeOf(e,vv.prototype):e.type==="decl"?Object.setPrototypeOf(e,dC.prototype):e.type==="comment"?Object.setPrototypeOf(e,hC.prototype):e.type==="root"&&Object.setPrototypeOf(e,mC.prototype),e[fC]=!0,e.nodes&&e.nodes.forEach(t=>{Qi.rebuild(t)})};let mCe=Ns,bC,wC,Mc=class extends mCe{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new bC(new wC,this,t).stringify()}};Mc.registerLazyResult=e=>{bC=e};Mc.registerProcessor=e=>{wC=e};var bv=Mc;Mc.default=Mc;let qm=class{constructor(t,n={}){if(this.type="warning",this.text=t,n.node&&n.node.source){let r=n.node.rangeBy(n);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in n)this[r]=n[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var xC=qm;qm.default=qm;let gCe=xC,Vm=class{constructor(t,n,r){this.processor=t,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new gCe(t,n);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>t.type==="warning")}get content(){return this.css}};var wv=Vm;Vm.default=Vm;const Lp=39,Bx=34,Ju=92,Hx=47,Zu=10,Da=32,Qu=12,ef=9,tf=13,vCe=91,yCe=93,bCe=40,wCe=41,xCe=123,SCe=125,_Ce=59,kCe=42,TCe=58,CCe=64,nf=/[\t\n\f\r "#'()/;[\\\]{}]/g,rf=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ECe=/.[\r\n"'(/\\]/,jx=/[\da-f]/i;var ACe=function(t,n={}){let r=t.css.valueOf(),o=n.ignoreErrors,l,a,f,d,p,m,g,y,w,E,_=r.length,k=0,A=[],N=[];function I(){return k}function $(ee){throw t.error("Unclosed "+ee,k)}function D(){return N.length===0&&k>=_}function U(ee){if(N.length)return N.pop();if(k>=_)return;let X=ee?ee.ignoreUnclosed:!1;switch(l=r.charCodeAt(k),l){case Zu:case Da:case ef:case tf:case Qu:{a=k;do a+=1,l=r.charCodeAt(a);while(l===Da||l===Zu||l===ef||l===tf||l===Qu);E=["space",r.slice(k,a)],k=a-1;break}case vCe:case yCe:case xCe:case SCe:case TCe:case _Ce:case wCe:{let V=String.fromCharCode(l);E=[V,V,k];break}case bCe:{if(y=A.length?A.pop()[1]:"",w=r.charCodeAt(k+1),y==="url"&&w!==Lp&&w!==Bx&&w!==Da&&w!==Zu&&w!==ef&&w!==Qu&&w!==tf){a=k;do{if(m=!1,a=r.indexOf(")",a+1),a===-1)if(o||X){a=k;break}else $("bracket");for(g=a;r.charCodeAt(g-1)===Ju;)g-=1,m=!m}while(m);E=["brackets",r.slice(k,a+1),k,a],k=a}else a=r.indexOf(")",k+1),d=r.slice(k,a+1),a===-1||ECe.test(d)?E=["(","(",k]:(E=["brackets",d,k,a],k=a);break}case Lp:case Bx:{f=l===Lp?"'":'"',a=k;do{if(m=!1,a=r.indexOf(f,a+1),a===-1)if(o||X){a=k+1;break}else $("string");for(g=a;r.charCodeAt(g-1)===Ju;)g-=1,m=!m}while(m);E=["string",r.slice(k,a+1),k,a],k=a;break}case CCe:{nf.lastIndex=k+1,nf.test(r),nf.lastIndex===0?a=r.length-1:a=nf.lastIndex-2,E=["at-word",r.slice(k,a+1),k,a],k=a;break}case Ju:{for(a=k,p=!0;r.charCodeAt(a+1)===Ju;)a+=1,p=!p;if(l=r.charCodeAt(a+1),p&&l!==Hx&&l!==Da&&l!==Zu&&l!==ef&&l!==tf&&l!==Qu&&(a+=1,jx.test(r.charAt(a)))){for(;jx.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===Da&&(a+=1)}E=["word",r.slice(k,a+1),k,a],k=a;break}default:{l===Hx&&r.charCodeAt(k+1)===kCe?(a=r.indexOf("*/",k+2)+1,a===0&&(o||X?a=r.length:$("comment")),E=["comment",r.slice(k,a+1),k,a],k=a):(rf.lastIndex=k+1,rf.test(r),rf.lastIndex===0?a=r.length-1:a=rf.lastIndex-2,E=["word",r.slice(k,a+1),k,a],A.push(E),k=a);break}}return k++,E}function J(ee){N.push(ee)}return{back:J,endOfFile:D,nextToken:U,position:I}};let SC=Ns,ud=class extends SC{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};var xv=ud;ud.default=ud;SC.registerAtRule(ud);let _C=Ns,kC,TC,jl=class extends _C{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,n,r){let o=super.normalize(t);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let l of o)l.raws.before=n.raws.before}return o}removeChild(t,n){let r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}toResult(t={}){return new kC(new TC,this,t).stringify()}};jl.registerLazyResult=e=>{kC=e};jl.registerProcessor=e=>{TC=e};var Xc=jl;jl.default=jl;_C.registerRoot(jl);let $c={comma(e){return $c.split(e,[","],!0)},space(e){let t=[" ",`
|
|
111
|
-
`," "];return $c.split(e,t)},split(e,t,n){let r=[],o="",l=!1,a=0,f=!1,d="",p=!1;for(let m of e)p?p=!1:m==="\\"?p=!0:f?m===d&&(f=!1):m==='"'||m==="'"?(f=!0,d=m):m==="("?a+=1:m===")"?a>0&&(a-=1):a===0&&t.includes(m)&&(l=!0),l?(o!==""&&r.push(o.trim()),o="",l=!1):o+=m;return(n||o!=="")&&r.push(o.trim()),r}};var CC=$c;$c.default=$c;let EC=Ns,MCe=CC,fd=class extends EC{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return MCe.comma(this.selector)}set selectors(t){let n=this.selector?this.selector.match(/,\s*/):null,r=n?n[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}};var Sv=fd;fd.default=fd;EC.registerRule(fd);let $Ce=Xd,NCe=ACe,OCe=Zd,LCe=xv,RCe=Xc,Wx=Sv;const Ux={empty:!0,space:!0};function PCe(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}let ICe=class{constructor(t){this.input=t,this.root=new RCe,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let n=new LCe;n.name=t[1].slice(1),n.name===""&&this.unnamedAtrule(n,t),this.init(n,t[2]);let r,o,l,a=!1,f=!1,d=[],p=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r==="("||r==="["?p.push(r==="("?")":"]"):r==="{"&&p.length>0?p.push("}"):r===p[p.length-1]&&p.pop(),p.length===0)if(r===";"){n.source.end=this.getPosition(t[2]),n.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){f=!0;break}else if(r==="}"){if(d.length>0){for(l=d.length-1,o=d[l];o&&o[0]==="space";)o=d[--l];o&&(n.source.end=this.getPosition(o[3]||o[2]),n.source.end.offset++)}this.end(t);break}else d.push(t);else d.push(t);if(this.tokenizer.endOfFile()){a=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(d),d.length?(n.raws.afterName=this.spacesAndCommentsFromStart(d),this.raw(n,"params",d),a&&(t=d[d.length-1],n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),f&&(n.nodes=[],this.current=n)}checkMissedSemicolon(t){let n=this.colon(t);if(n===!1)return;let r=0,o;for(let l=n-1;l>=0&&(o=t[l],!(o[0]!=="space"&&(r+=1,r===2)));l--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(t){let n=0,r,o,l;for(let[a,f]of t.entries()){if(r=f,o=r[0],o==="("&&(n+=1),o===")"&&(n-=1),n===0&&o===":")if(!l)this.doubleColon(r);else{if(l[0]==="word"&&l[1]==="progid")continue;return a}l=r}return!1}comment(t){let n=new OCe;this.init(n,t[2]),n.source.end=this.getPosition(t[3]||t[2]),n.source.end.offset++;let r=t[1].slice(2,-2);if(/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let o=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=o[2],n.raws.left=o[1],n.raws.right=o[3]}}createTokenizer(){this.tokenizer=NCe(this.input)}decl(t,n){let r=new $Ce;this.init(r,t[0][2]);let o=t[t.length-1];for(o[0]===";"&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(o[3]||o[2]||PCe(t)),r.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let p=t[0][0];if(p===":"||p==="space"||p==="comment")break;r.prop+=t.shift()[1]}r.raws.between="";let l;for(;t.length;)if(l=t.shift(),l[0]===":"){r.raws.between+=l[1];break}else l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]),r.raws.between+=l[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let a=[],f;for(;t.length&&(f=t[0][0],!(f!=="space"&&f!=="comment"));)a.push(t.shift());this.precheckMissedSemicolon(t);for(let p=t.length-1;p>=0;p--){if(l=t[p],l[1].toLowerCase()==="!important"){r.important=!0;let m=this.stringFrom(t,p);m=this.spacesFromEnd(t)+m,m!==" !important"&&(r.raws.important=m);break}else if(l[1].toLowerCase()==="important"){let m=t.slice(0),g="";for(let y=p;y>0;y--){let w=m[y][0];if(g.trim().indexOf("!")===0&&w!=="space")break;g=m.pop()[1]+g}g.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=g,t=m)}if(l[0]!=="space"&&l[0]!=="comment")break}t.some(p=>p[0]!=="space"&&p[0]!=="comment")&&(r.raws.between+=a.map(p=>p[1]).join(""),a=[]),this.raw(r,"value",a.concat(t),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let n=new Wx;this.init(n,t[2]),n.selector="",n.raws.between="",this.current=n}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let n=this.input.fromOffset(t);return{column:n.col,line:n.line,offset:t}}init(t,n){this.current.push(t),t.source={input:this.input,start:this.getPosition(n)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let n=!1,r=null,o=!1,l=null,a=[],f=t[1].startsWith("--"),d=[],p=t;for(;p;){if(r=p[0],d.push(p),r==="("||r==="[")l||(l=p),a.push(r==="("?")":"]");else if(f&&o&&r==="{")l||(l=p),a.push("}");else if(a.length===0)if(r===";")if(o){this.decl(d,f);return}else break;else if(r==="{"){this.rule(d);return}else if(r==="}"){this.tokenizer.back(d.pop()),n=!0;break}else r===":"&&(o=!0);else r===a[a.length-1]&&(a.pop(),a.length===0&&(l=null));p=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),a.length>0&&this.unclosedBracket(l),n&&o){if(!f)for(;d.length&&(p=d[d.length-1][0],!(p!=="space"&&p!=="comment"));)this.tokenizer.back(d.pop());this.decl(d,f)}else this.unknownWord(d)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,n,r,o){let l,a,f=r.length,d="",p=!0,m,g;for(let y=0;y<f;y+=1)l=r[y],a=l[0],a==="space"&&y===f-1&&!o?p=!1:a==="comment"?(g=r[y-1]?r[y-1][0]:"empty",m=r[y+1]?r[y+1][0]:"empty",!Ux[g]&&!Ux[m]?d.slice(-1)===","?p=!1:d+=l[1]:p=!1):d+=l[1];if(!p){let y=r.reduce((w,E)=>w+E[1],"");t.raws[n]={raw:y,value:d}}t[n]=d}rule(t){t.pop();let n=new Wx;this.init(n,t[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(n,"selector",t),this.current=n}spacesAndCommentsFromEnd(t){let n,r="";for(;t.length&&(n=t[t.length-1][0],!(n!=="space"&&n!=="comment"));)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let n,r="";for(;t.length&&(n=t[0][0],!(n!=="space"&&n!=="comment"));)r+=t.shift()[1];return r}spacesFromEnd(t){let n,r="";for(;t.length&&(n=t[t.length-1][0],n==="space");)r=t.pop()[1]+r;return r}stringFrom(t,n){let r="";for(let o=n;o<t.length;o++)r+=t[o][1];return t.splice(n,t.length-n),r}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})}};var DCe=ICe;let FCe=Ns,zCe=DCe,BCe=Jd;function dd(e,t){let n=new BCe(e,t),r=new zCe(n);try{r.parse()}catch(o){throw o}return r.root}var _v=dd;dd.default=dd;FCe.registerParse(dd);let{isClean:ui,my:HCe}=Yc,jCe=cC,WCe=Kd,UCe=Ns,qCe=bv,qx=wv,VCe=_v,GCe=Xc;const KCe={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},YCe={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},XCe={Once:!0,postcssPlugin:!0,prepare:!0},Wl=0;function Fa(e){return typeof e=="object"&&typeof e.then=="function"}function AC(e){let t=!1,n=KCe[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,Wl,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,Wl,n+"Exit"]:[n,n+"Exit"]}function Vx(e){let t;return e.type==="document"?t=["Document",Wl,"DocumentExit"]:e.type==="root"?t=["Root",Wl,"RootExit"]:t=AC(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Gm(e){return e[ui]=!1,e.nodes&&e.nodes.forEach(t=>Gm(t)),e}let Km={},Ul=class MC{constructor(t,n,r){this.stringified=!1,this.processed=!1;let o;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))o=Gm(n);else if(n instanceof MC||n instanceof qx)o=Gm(n.root),n.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let l=VCe;r.syntax&&(l=r.syntax.parse),r.parser&&(l=r.parser),l.parse&&(l=l.parse);try{o=l(n,r)}catch(a){this.processed=!0,this.error=a}o&&!o[HCe]&&UCe.rebuild(o)}this.result=new qx(t,o,r),this.helpers={...Km,postcss:Km,result:this.result},this.plugins=this.processor.plugins.map(l=>typeof l=="object"&&l.prepare?{...l,...l.prepare(this.result)}:l)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,n){let r=this.result.lastPlugin;try{n&&n.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin?(t.plugin=r.postcssPlugin,t.setMessage()):r.postcssVersion}catch(o){console&&console.error&&console.error(o)}return t}prepareVisitors(){this.listeners={};let t=(n,r,o)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([n,o])};for(let n of this.plugins)if(typeof n=="object")for(let r in n){if(!YCe[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!XCe[r])if(typeof n[r]=="object")for(let o in n[r])o==="*"?t(n,r,n[r][o]):t(n,r+"-"+o.toLowerCase(),n[r][o]);else typeof n[r]=="function"&&t(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let n=this.plugins[t],r=this.runOnRoot(n);if(Fa(r))try{await r}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[ui];){t[ui]=!0;let n=[Vx(t)];for(;n.length>0;){let r=this.visitTick(n);if(Fa(r))try{await r}catch(o){let l=n[n.length-1].node;throw this.handleError(o,l)}}}if(this.listeners.OnceExit)for(let[n,r]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(t.type==="document"){let o=t.nodes.map(l=>r(l,this.helpers));await Promise.all(o)}else await r(t,this.helpers)}catch(o){throw this.handleError(o)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>t.Once(r,this.helpers));return Fa(n[0])?Promise.all(n):n}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,n=WCe;t.syntax&&(n=t.syntax.stringify),t.stringifier&&(n=t.stringifier),n.stringify&&(n=n.stringify);let o=new jCe(n,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let n=this.runOnRoot(t);if(Fa(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[ui];)t[ui]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let n of t.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,n){return this.async().then(t,n)}toString(){return this.css}visitSync(t,n){for(let[r,o]of t){this.result.lastPlugin=r;let l;try{l=o(n,this.helpers)}catch(a){throw this.handleError(a,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(Fa(l))throw this.getAsyncError()}}visitTick(t){let n=t[t.length-1],{node:r,visitors:o}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){t.pop();return}if(o.length>0&&n.visitorIndex<o.length){let[a,f]=o[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===o.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=a;try{return f(r.toProxy(),this.helpers)}catch(d){throw this.handleError(d,r)}}if(n.iterator!==0){let a=n.iterator,f;for(;f=r.nodes[r.indexes[a]];)if(r.indexes[a]+=1,!f[ui]){f[ui]=!0,t.push(Vx(f));return}n.iterator=0,delete r.indexes[a]}let l=n.events;for(;n.eventIndex<l.length;){let a=l[n.eventIndex];if(n.eventIndex+=1,a===Wl){r.nodes&&r.nodes.length&&(r[ui]=!0,n.iterator=r.getIterator());return}else if(this.listeners[a]){n.visitors=this.listeners[a];return}}t.pop()}walkSync(t){t[ui]=!0;let n=AC(t);for(let r of n)if(r===Wl)t.nodes&&t.each(o=>{o[ui]||this.walkSync(o)});else{let o=this.listeners[r];if(o&&this.visitSync(o,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Ul.registerPostcss=e=>{Km=e};var $C=Ul;Ul.default=Ul;GCe.registerLazyResult(Ul);qCe.registerLazyResult(Ul);let JCe=cC,ZCe=Kd,QCe=_v;const eEe=wv;let Ym=class{constructor(t,n,r){n=n.toString(),this.stringified=!1,this._processor=t,this._css=n,this._opts=r,this._map=void 0;let o,l=ZCe;this.result=new eEe(this._processor,o,this._opts),this.result.css=n;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let f=new JCe(l,o,this._opts,n);if(f.isMap()){let[d,p]=f.generate();d&&(this.result.css=d),p&&(this.result.map=p)}else f.clearAnnotation(),this.result.css=f.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,n){return this.async().then(t,n)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,n=QCe;try{t=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}};var tEe=Ym;Ym.default=Ym;let nEe=tEe,rEe=$C,iEe=bv,oEe=Xc,Nc=class{constructor(t=[]){this.version="8.4.38",this.plugins=this.normalize(t)}normalize(t){let n=[];for(let r of t)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))n=n.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)n.push(r);else if(typeof r=="function")n.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return n}process(t,n={}){return!this.plugins.length&&!n.parser&&!n.stringifier&&!n.syntax?new nEe(this,t,n):new rEe(this,t,n)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};var sEe=Nc;Nc.default=Nc;oEe.registerProcessor(Nc);iEe.registerProcessor(Nc);let lEe=Xd,aEe=iC,cEe=Zd,uEe=xv,fEe=Jd,dEe=Xc,hEe=Sv;function Oc(e,t){if(Array.isArray(e))return e.map(o=>Oc(o));let{inputs:n,...r}=e;if(n){t=[];for(let o of n){let l={...o,__proto__:fEe.prototype};l.map&&(l.map={...l.map,__proto__:aEe.prototype}),t.push(l)}}if(r.nodes&&(r.nodes=e.nodes.map(o=>Oc(o,t))),r.source){let{inputId:o,...l}=r.source;r.source=l,o!=null&&(r.source.input=t[o])}if(r.type==="root")return new dEe(r);if(r.type==="decl")return new lEe(r);if(r.type==="rule")return new hEe(r);if(r.type==="comment")return new cEe(r);if(r.type==="atrule")return new uEe(r);throw new Error("Unknown node type: "+e.type)}var pEe=Oc;Oc.default=Oc;let mEe=gv,NC=Xd,gEe=$C,vEe=Ns,kv=sEe,yEe=Kd,bEe=pEe,OC=bv,wEe=xC,LC=Zd,RC=xv,xEe=wv,SEe=Jd,_Ee=_v,kEe=CC,PC=Sv,IC=Xc,TEe=Yd;function Ct(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new kv(e)}Ct.plugin=function(t,n){let r=!1;function o(...a){console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
|
|
112
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Ax.LANG&&Ax.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
113
|
-
https://www.w3ctech.com/topic/2226`));let f=n(...a);return f.postcssPlugin=t,f.postcssVersion=new kv().version,f}let l;return Object.defineProperty(o,"postcss",{get(){return l||(l=o()),l}}),o.process=function(a,f,d){return Ct([o(d)]).process(a,f)},o};Ct.stringify=yEe;Ct.parse=_Ee;Ct.fromJSON=bEe;Ct.list=kEe;Ct.comment=e=>new LC(e);Ct.atRule=e=>new RC(e);Ct.decl=e=>new NC(e);Ct.rule=e=>new PC(e);Ct.root=e=>new IC(e);Ct.document=e=>new OC(e);Ct.CssSyntaxError=mEe;Ct.Declaration=NC;Ct.Container=vEe;Ct.Processor=kv;Ct.Document=OC;Ct.Comment=LC;Ct.Warning=wEe;Ct.AtRule=RC;Ct.Result=xEe;Ct.Input=SEe;Ct.Rule=PC;Ct.Root=IC;Ct.Node=TEe;gEe.registerPostcss(Ct);var CEe=Ct;Ct.default=Ct;const Pt=zTe(CEe);Pt.stringify;Pt.fromJSON;Pt.plugin;Pt.parse;Pt.list;Pt.document;Pt.comment;Pt.atRule;Pt.rule;Pt.decl;Pt.root;Pt.CssSyntaxError;Pt.Declaration;Pt.Container;Pt.Processor;Pt.Document;Pt.Comment;Pt.Warning;Pt.AtRule;Pt.Result;Pt.Input;Pt.Rule;Pt.Root;Pt.Node;const Gx={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function EEe(e){let t=Gx[e.tagName]?Gx[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function Tv(e,t){const n=t?.stylesWithHoverClass.get(e);if(n)return n;let r=e;try{r=Pt([DTe,FTe]).process(e).css}catch(o){console.warn("Failed to adapt css for replay",o)}return t?.stylesWithHoverClass.set(e,r),r}function AEe(){return{stylesWithHoverClass:new Map}}function MEe(e,t,n,r){const o=[];for(const d of e.childNodes)d.type===Jt.Text&&o.push(d);const l=t.split("/* rr_split */");for(;l.length>1&&l.length>o.length;)l.splice(-2,2,l.slice(-2).join(""));let a="";n&&(a=Tv(l.join(""),r));let f=0;for(let d=0;d<o.length&&d!==l.length;d++){const p=o[d];if(!n)p.textContent=l[d];else if(d<l.length-1){let m=f,g=l[d+1].length;g=Math.min(g,30);let y=!1;for(;g>2;g--){const w=l[d+1].substring(0,g),E=a.substring(f).indexOf(w);if(y=E!==-1,y){m+=E;break}}y||(m+=l[d].length),p.textContent=a.substring(f,m),f=m}else p.textContent=a.substring(f)}}function $Ee(e,t,n,r){const{doc:o,hackCss:l,cache:a}=r;e.childNodes.length?MEe(e,n,l,a):(l&&(n=Tv(n,a)),t.appendChild(o.createTextNode(n)))}function NEe(e,t){var n;const{doc:r,hackCss:o,cache:l}=t;switch(e.type){case Jt.Document:return r.implementation.createDocument(null,"",null);case Jt.DocumentType:return r.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case Jt.Element:{const a=EEe(e);let f;e.isSVG?f=r.createElementNS("http://www.w3.org/2000/svg",a):(e.isCustom&&((n=r.defaultView)!=null&&n.customElements)&&!r.defaultView.customElements.get(e.tagName)&&r.defaultView.customElements.define(e.tagName,class extends r.defaultView.HTMLElement{}),f=r.createElement(a));const d={};for(const p in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,p))continue;let m=e.attributes[p];if(!(a==="option"&&p==="selected"&&m===!1)&&m!==null){if(m===!0&&(m=""),p.startsWith("rr_")){d[p]=m;continue}if(typeof m=="string"){if(a==="style"&&p==="_cssText"){$Ee(e,f,m,t);continue}else if(a==="textarea"&&p==="value"){f.appendChild(r.createTextNode(m)),e.childNodes=[];continue}}try{if(e.isSVG&&p==="xlink:href")f.setAttributeNS("http://www.w3.org/1999/xlink",p,m.toString());else if(p==="onload"||p==="onclick"||p.substring(0,7)==="onmouse")f.setAttribute("_"+p,m.toString());else if(a==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&p==="content"){f.setAttribute("csp-content",m.toString());continue}else a==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||a==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&PTe(e.attributes.href)==="js"||(a==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?f.setAttribute("rrweb-original-srcset",e.attributes.srcset):f.setAttribute(p,m.toString()))}catch{}}}for(const p in d){const m=d[p];if(a==="canvas"&&p==="rr_dataURL"){const g=r.createElement("img");g.onload=()=>{const y=f.getContext("2d");y&&y.drawImage(g,0,0,g.width,g.height)},g.src=m.toString(),f.RRNodeType&&(f.rr_dataURL=m.toString())}else if(a==="img"&&p==="rr_dataURL"){const g=f;g.currentSrc.startsWith("data:")||(g.setAttribute("rrweb-original-src",e.attributes.src),g.src=m.toString())}if(p==="rr_width")f.style.setProperty("width",m.toString());else if(p==="rr_height")f.style.setProperty("height",m.toString());else if(p==="rr_mediaCurrentTime"&&typeof m=="number")f.currentTime=m;else if(p==="rr_mediaState")switch(m){case"played":f.play().catch(g=>console.warn("media playback error",g));break;case"paused":f.pause();break}else p==="rr_mediaPlaybackRate"&&typeof m=="number"?f.playbackRate=m:p==="rr_mediaMuted"&&typeof m=="boolean"?f.muted=m:p==="rr_mediaLoop"&&typeof m=="boolean"?f.loop=m:p==="rr_mediaVolume"&&typeof m=="number"?f.volume=m:p==="rr_open_mode"&&f.setAttribute("rr_open_mode",m)}if(e.isShadowHost)if(!f.shadowRoot)f.attachShadow({mode:"open"});else for(;f.shadowRoot.firstChild;)f.shadowRoot.removeChild(f.shadowRoot.firstChild);return f}case Jt.Text:return e.isStyle&&o?r.createTextNode(Tv(e.textContent,l)):r.createTextNode(e.textContent);case Jt.CDATA:return r.createCDATASection(e.textContent);case Jt.Comment:return r.createComment(e.textContent);default:return null}}function DC(e,t){const{doc:n,mirror:r,skipChild:o=!1,hackCss:l=!0,afterAppend:a,cache:f}=t;if(r.has(e.id)){const p=r.getNode(e.id),m=r.getMeta(p);if(RTe(m,e))return r.getNode(e.id)}let d=NEe(e,{doc:n,hackCss:l,cache:f});if(!d)return null;if(e.rootId&&r.getNode(e.rootId)!==n&&r.replace(e.rootId,n),e.type===Jt.Document&&(n.close(),n.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==Jt.DocumentType&&(e.childNodes[0].type===Jt.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),d=n),r.add(d,e),(e.type===Jt.Document||e.type===Jt.Element)&&!o)for(const p of e.childNodes){const m=DC(p,{doc:n,mirror:r,skipChild:!1,hackCss:l,afterAppend:a,cache:f});if(!m){console.warn("Failed to rebuild",p);continue}if(p.isShadow&&OTe(d)&&d.shadowRoot)d.shadowRoot.appendChild(m);else if(e.type===Jt.Document&&p.type==Jt.Element){const g=m;let y=null;g.childNodes.forEach(w=>{w.nodeName==="BODY"&&(y=w)}),y?(g.removeChild(y),d.appendChild(m),g.appendChild(y)):d.appendChild(m)}else d.appendChild(m);a&&a(m,p.id)}return d}function OEe(e,t){function n(r){t(r)}for(const r of e.getIds())e.has(r)&&n(e.getNode(r))}function LEe(e,t){const n=t.getMeta(e);if(n?.type!==Jt.Element)return;const r=e;for(const o in n.attributes){if(!(Object.prototype.hasOwnProperty.call(n.attributes,o)&&o.startsWith("rr_")))continue;const l=n.attributes[o];o==="rr_scrollLeft"&&(r.scrollLeft=l),o==="rr_scrollTop"&&(r.scrollTop=l)}}function REe(e,t){const{doc:n,onVisit:r,hackCss:o=!0,afterAppend:l,cache:a,mirror:f=new eC}=t,d=DC(e,{doc:n,mirror:f,skipChild:!1,hackCss:o,afterAppend:l,cache:a});return OEe(f,p=>{r&&r(p),LEe(p,f)}),d}const PEe={class:"h-full min-h-0 p-4",flex:"~ col gap-1","overflow-auto":""},IEe=["onClick"],DEe={class:"flex items-start gap-2"},FEe={class:"min-w-0 flex-1"},zEe={truncate:"","data-testid":"trace-step-name"},BEe={class:"text-xs opacity-60 truncate"},HEe={key:0,class:"font-mono text-xs opacity-70 truncate"},jEe={class:"h-full min-h-0",flex:"~ col","overflow-auto":""},WEe=["sandbox"],UEe={key:1,class:"text-sm opacity-50 p-4"},qEe=et({__name:"TraceView",props:{trace:{},test:{}},setup(e){const t=e,n=we(()=>t.trace.data),r=we(()=>n.value.entries),o=Ve(0),l=we(()=>r.value[o.value]);ct(()=>t.trace,()=>{o.value=0});const a=Ve(),f=we(()=>n.value.recordCanvas?"allow-same-origin allow-scripts":"allow-same-origin");function d(E){o.value=E;const _=r.value[E];_?.location&&hv(t.test,_.location)}ct([l,a],([E,_])=>{if(!E||!_)return;const{serialized:k,selectorId:A,viewport:N,scroll:I,pseudoClassIds:$}=E.snapshot;_.style.width=`${N.width}px`,_.style.height=`${N.height}px`;const D=_.contentDocument;D.open(),D.close();const U=LTe();REe(k,{doc:D,cache:AEe(),mirror:U});for(const[J,ee]of Object.entries($))for(const X of ee){const V=U.getNode(X);V?.classList&&V.classList.add(J)}if(_.contentWindow.scrollTo(I?.x??0,I?.y??0),A!=null){const J=U.getNode(A);J&&_.contentWindow.requestAnimationFrame(()=>{const ee=J.getBoundingClientRect(),X=D.createElement("div");X.setAttribute("data-testid","trace-view-highlight"),X.style.cssText=`
|
|
114
|
-
position: fixed;
|
|
115
|
-
pointer-events: none;
|
|
116
|
-
z-index: 2147483647;
|
|
117
|
-
left: ${ee.left}px;
|
|
118
|
-
top: ${ee.top}px;
|
|
119
|
-
width: ${ee.width}px;
|
|
120
|
-
height: ${ee.height}px;
|
|
121
|
-
background: rgba(59, 130, 246, 0.15);
|
|
122
|
-
border: 2px solid #3b82f6;
|
|
123
|
-
box-sizing: border-box;
|
|
124
|
-
`,D.documentElement.appendChild(X)})}},{immediate:!0});function p(E,_){const k=o.value===_;return E.status==="fail"?k?"bg-red-500/20 text-red-600 dark:text-red-400":"text-red-600 hover:bg-red-500/10 dark:text-red-400":k?"bg-blue-500/20":"hover:bg-gray/10"}function m(E){return E<1e3?`${Math.round(E)}ms`:`${(E/1e3).toFixed(1)}s`}function g(E){const _=`+${m(E.startTime)}`;return E.duration==null?_:`${_} · ${m(E.duration)}`}function y(E){return E.kind==="lifecycle"&&E.name==="vitest:onAfterRetryTask"?"test finished":E.kind==="action"&&E.name.startsWith("vitest:")?E.name.slice(7):E.name}function w(E){return E.kind==="action"?"bg-blue-500/80":E.kind==="expect"?"bg-green-500/80":E.kind==="mark"?"bg-amber-500/80":"bg-gray-400/80 dark:bg-gray-500/80"}return(E,_)=>(Z(),We(j(ff),{class:"h-full min-h-0"},{default:ze(()=>[Ce(j(Eo),{size:30,"min-size":"20"},{default:ze(()=>[Y("div",PEe,[(Z(!0),fe(nt,null,vn(r.value,(k,A)=>(Z(),fe("button",{key:A,type:"button",class:rt(["w-full text-left px-2 py-1 rounded text-sm",p(k,A)]),onClick:N=>d(A)},[Y("div",DEe,[Y("span",{class:rt(["mt-1.5 h-2 w-2 rounded-full flex-shrink-0",w(k)])},null,2),Y("div",FEe,[Y("div",zEe,Ee(y(k)),1),Y("div",BEe,Ee(g(k)),1),k.element?(Z(),fe("div",HEe,Ee(k.element.locator),1)):Pe("",!0)])])],10,IEe))),128))])]),_:1}),Ce(j(Eo),{size:70,"min-size":"20"},{default:ze(()=>[Y("div",jEe,[l.value?(Z(),fe("iframe",{ref_key:"iframeEl",ref:a,key:f.value,sandbox:f.value,style:{background:"white",border:"none","color-scheme":"normal",flex:"none"}},null,8,WEe)):(Z(),fe("div",UEe," No trace step selected. "))])]),_:1})]),_:1}))}}),VEe={"data-testid":"trace-view","h-full":"","min-h-0":"",flex:"~ col"},GEe={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},KEe={key:0,class:"text-xs opacity-70"},Kx=et({__name:"TraceViewPane",setup(e){const t=we(()=>Vr.value.trace),n=we(()=>Vr.value.test),r=we(()=>GT(t.value.data));return(o,l)=>{const a=Xn("tooltip");return Z(),fe("div",VEe,[Y("div",GEe,[l[1]||(l[1]=Y("div",{class:"i-carbon:data-vis-4"},null,-1)),l[2]||(l[2]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Trace Viewer",-1)),r.value?(Z(),fe("span",KEe,Ee(r.value),1)):Pe("",!0),st(Ce(wt,{title:"Close Trace Viewer",icon:"i-carbon:close",onClick:l[0]||(l[0]=f=>j(qT)())},null,512),[[a,"Close Trace Viewer",void 0,{bottom:!0}]])]),Ce(qEe,{trace:t.value,test:n.value},null,8,["trace","test"])])}}}),YEe={"h-screen":"","w-screen":"",overflow:"hidden"},XEe={key:1,flex:"~ col","h-full":""},JEe={"h-full":"","overflow-hidden":""},ZEe=et({__name:"index",setup(e){const t=rve(),n=Ru(({panes:m})=>{d(),f(m)},0),r=Ru(({panes:m})=>{m.forEach((g,y)=>{Tl.value[y]=g.size}),a(m),p()},0),o=Ru(({panes:m})=>{m.forEach((g,y)=>{Ss.value[y]=g.size}),f(m),p()},0),l=Ru(({panes:m})=>{a(m),d()},0);function a(m){$n.navigation=m[0].size,m[1]&&($n.details.size=m[1].size)}function f(m){$n.details.browser=m[0].size,m[1]&&($n.details.main=m[1].size)}function d(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="none")}function p(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="")}return(m,g)=>(Z(),fe(nt,null,[Ce(MTe),Y("div",YEe,[Ce(j(ff),{class:"pt-4px",onResized:j(r),onResize:j(l)},{default:ze(()=>[Ce(j(Eo),{size:j(Tl)[0]},{default:ze(()=>[Ce(CTe)]),_:1},8,["size"]),Ce(j(Eo),{size:j(Tl)[1]},{default:ze(()=>[!j(cr)&&!j(Vr)?(Z(),We(iN,{key:"ui-detail"},{default:ze(()=>[j(t)?(Z(),We(Qw,{key:"summary"})):j(Uo)?(Z(),We(Zw,{key:"coverage"})):(Z(),We(Tx,{key:"details"}))]),_:1})):(Z(),fe("div",XEe,[Ce(j(ff),{id:"details-splitpanes",key:"browser-detail",horizontal:j(mn)==="bottom",class:rt(j(mn)==="bottom"&&!j(Gi)?"flex-1 min-h-0 overflow-hidden":"h-full"),onResize:j(n),onResized:j(o)},{default:ze(()=>[Ce(j(Eo),{size:j(Ss)[0],"min-size":"10"},{default:ze(()=>[j(cr)?(Z(),fe(nt,{key:0},[j(cr).config.browser?.traceView.enabled?(Z(),We(j(ff),{key:0,class:"h-full",horizontal:j(mn)==="right"},{default:ze(()=>[Ce(j(Eo),{size:j(Vr)?55:100,"min-size":"10"},{default:ze(()=>[g[0]||(Ol(-1,!0),(g[0]=Ce(Jw)).cacheIndex=0,Ol(1),g[0])]),_:1},8,["size"]),j(Vr)?(Z(),We(j(Eo),{key:0,size:"45","min-size":"10"},{default:ze(()=>[Ce(Kx)]),_:1})):Pe("",!0)]),_:1},8,["horizontal"])):(Z(),We(Jw,{key:1}))],64)):j(Vr)?(Z(),We(Kx,{key:1})):Pe("",!0)]),_:1},8,["size"]),j(Gi)?(Z(),We(j(Eo),{key:0,size:j(Ss)[1],"min-size":"10"},{default:ze(()=>[Y("div",JEe,[j(t)?(Z(),We(Qw,{key:"summary"})):j(Uo)?(Z(),We(Zw,{key:"coverage"})):(Z(),We(Tx,{key:"details"}))])]),_:1},8,["size"])):Pe("",!0)]),_:1},8,["horizontal","class","onResize","onResized"]),j(mn)==="bottom"&&!j(Gi)?(Z(),We(lye,{key:0})):Pe("",!0)]))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Ce(uye)],64))}}),QEe=[{name:"index",path:"/",component:ZEe,props:!0}];/*!
|
|
125
|
-
* vue-router v5.0.3
|
|
126
|
-
* (c) 2026 Eduardo San Martin Morote
|
|
127
|
-
* @license MIT
|
|
128
|
-
*/const fl=typeof document<"u";function FC(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function eAe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&FC(e.default)}const kt=Object.assign;function Rp(e,t){const n={};for(const r in t){const o=t[r];n[r]=Qr(o)?o.map(e):e(o)}return n}const rc=()=>{},Qr=Array.isArray;function Yx(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}let Xt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const zC=Symbol("");Xt.MATCHER_NOT_FOUND+"",Xt.NAVIGATION_GUARD_REDIRECT+"",Xt.NAVIGATION_ABORTED+"",Xt.NAVIGATION_CANCELLED+"",Xt.NAVIGATION_DUPLICATED+"";function ql(e,t){return kt(new Error,{type:e,[zC]:!0},t)}function Di(e,t){return e instanceof Error&&zC in e&&(t==null||!!(e.type&t))}const tAe=["params","query","hash"];function nAe(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of tAe)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const rAe=Symbol(""),Xx=Symbol(""),Cv=Symbol(""),BC=Symbol(""),Xm=Symbol("");/*!
|
|
129
|
-
* vue-router v5.0.3
|
|
130
|
-
* (c) 2026 Eduardo San Martin Morote
|
|
131
|
-
* @license MIT
|
|
132
|
-
*/const HC=/#/g,iAe=/&/g,oAe=/\//g,sAe=/=/g,lAe=/\?/g,jC=/\+/g,aAe=/%5B/g,cAe=/%5D/g,WC=/%5E/g,uAe=/%60/g,UC=/%7B/g,fAe=/%7C/g,qC=/%7D/g,dAe=/%20/g;function Ev(e){return e==null?"":encodeURI(""+e).replace(fAe,"|").replace(aAe,"[").replace(cAe,"]")}function hAe(e){return Ev(e).replace(UC,"{").replace(qC,"}").replace(WC,"^")}function Jm(e){return Ev(e).replace(jC,"%2B").replace(dAe,"+").replace(HC,"%23").replace(iAe,"%26").replace(uAe,"`").replace(UC,"{").replace(qC,"}").replace(WC,"^")}function pAe(e){return Jm(e).replace(sAe,"%3D")}function mAe(e){return Ev(e).replace(HC,"%23").replace(lAe,"%3F")}function gAe(e){return mAe(e).replace(oAe,"%2F")}function Lc(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const vAe=/\/$/,yAe=e=>e.replace(vAe,"");function Pp(e,t,n="/"){let r,o={},l="",a="";const f=t.indexOf("#");let d=t.indexOf("?");return d=f>=0&&d>f?-1:d,d>=0&&(r=t.slice(0,d),l=t.slice(d,f>0?f:t.length),o=e(l.slice(1))),f>=0&&(r=r||t.slice(0,f),a=t.slice(f,t.length)),r=SAe(r??t,n),{fullPath:r+l+a,path:r,query:o,hash:Lc(a)}}function bAe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Jx(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function wAe(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Vl(t.matched[r],n.matched[o])&&VC(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Vl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function VC(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!xAe(e[n],t[n]))return!1;return!0}function xAe(e,t){return Qr(e)?Zx(e,t):Qr(t)?Zx(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Zx(e,t){return Qr(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function SAe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let l=n.length-1,a,f;for(a=0;a<r.length;a++)if(f=r[a],f!==".")if(f==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+r.slice(a).join("/")}const bo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Zm=(function(e){return e.pop="pop",e.push="push",e})({}),Ip=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function _Ae(e){if(!e)if(fl){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),yAe(e)}const kAe=/^[^#]+#/;function TAe(e,t){return e.replace(kAe,"#")+t}function CAe(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Qd=()=>({left:window.scrollX,top:window.scrollY});function EAe(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=CAe(o,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 Qx(e,t){return(history.state?history.state.position-t:-1)+e}const Qm=new Map;function AAe(e,t){Qm.set(e,t)}function MAe(e){const t=Qm.get(e);return Qm.delete(e),t}function $Ae(e){return typeof e=="string"||e&&typeof e=="object"}function GC(e){return typeof e=="string"||typeof e=="symbol"}function NAe(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const o=n[r].replace(jC," "),l=o.indexOf("="),a=Lc(l<0?o:o.slice(0,l)),f=l<0?null:Lc(o.slice(l+1));if(a in t){let d=t[a];Qr(d)||(d=t[a]=[d]),d.push(f)}else t[a]=f}return t}function e1(e){let t="";for(let n in e){const r=e[n];if(n=pAe(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Qr(r)?r.map(o=>o&&Jm(o)):[r&&Jm(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function OAe(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Qr(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}function za(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function No(e,t,n,r,o,l=a=>a()){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((f,d)=>{const p=y=>{y===!1?d(ql(Xt.NAVIGATION_ABORTED,{from:n,to:t})):y instanceof Error?d(y):$Ae(y)?d(ql(Xt.NAVIGATION_GUARD_REDIRECT,{from:t,to:y})):(a&&r.enterCallbacks[o]===a&&typeof y=="function"&&a.push(y),f())},m=l(()=>e.call(r&&r.instances[o],t,n,p));let g=Promise.resolve(m);e.length<3&&(g=g.then(p)),g.catch(y=>d(y))})}function Dp(e,t,n,r,o=l=>l()){const l=[];for(const a of e)for(const f in a.components){let d=a.components[f];if(!(t!=="beforeRouteEnter"&&!a.instances[f]))if(FC(d)){const p=(d.__vccOpts||d)[t];p&&l.push(No(p,n,r,a,f,o))}else{let p=d();l.push(()=>p.then(m=>{if(!m)throw new Error(`Couldn't resolve component "${f}" at "${a.path}"`);const g=eAe(m)?m.default:m;a.mods[f]=m,a.components[f]=g;const y=(g.__vccOpts||g)[t];return y&&No(y,n,r,a,f,o)()}))}}return l}function LAe(e,t){const n=[],r=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let a=0;a<l;a++){const f=t.matched[a];f&&(e.matched.find(p=>Vl(p,f))?r.push(f):n.push(f));const d=e.matched[a];d&&(t.matched.find(p=>Vl(p,d))||o.push(d))}return[n,r,o]}/*!
|
|
133
|
-
* vue-router v5.0.3
|
|
134
|
-
* (c) 2026 Eduardo San Martin Morote
|
|
135
|
-
* @license MIT
|
|
136
|
-
*/let RAe=()=>location.protocol+"//"+location.host;function KC(e,t){const{pathname:n,search:r,hash:o}=t,l=e.indexOf("#");if(l>-1){let a=o.includes(e.slice(l))?e.slice(l).length:1,f=o.slice(a);return f[0]!=="/"&&(f="/"+f),Jx(f,"")}return Jx(n,e)+r+o}function PAe(e,t,n,r){let o=[],l=[],a=null;const f=({state:y})=>{const w=KC(e,location),E=n.value,_=t.value;let k=0;if(y){if(n.value=w,t.value=y,a&&a===E){a=null;return}k=_?y.position-_.position:0}else r(w);o.forEach(A=>{A(n.value,E,{delta:k,type:Zm.pop,direction:k?k>0?Ip.forward:Ip.back:Ip.unknown})})};function d(){a=n.value}function p(y){o.push(y);const w=()=>{const E=o.indexOf(y);E>-1&&o.splice(E,1)};return l.push(w),w}function m(){if(document.visibilityState==="hidden"){const{history:y}=window;if(!y.state)return;y.replaceState(kt({},y.state,{scroll:Qd()}),"")}}function g(){for(const y of l)y();l=[],window.removeEventListener("popstate",f),window.removeEventListener("pagehide",m),document.removeEventListener("visibilitychange",m)}return window.addEventListener("popstate",f),window.addEventListener("pagehide",m),document.addEventListener("visibilitychange",m),{pauseListeners:d,listen:p,destroy:g}}function t1(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Qd():null}}function IAe(e){const{history:t,location:n}=window,r={value:KC(e,n)},o={value:t.state};o.value||l(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(d,p,m){const g=e.indexOf("#"),y=g>-1?(n.host&&document.querySelector("base")?e:e.slice(g))+d:RAe()+e+d;try{t[m?"replaceState":"pushState"](p,"",y),o.value=p}catch(w){console.error(w),n[m?"replace":"assign"](y)}}function a(d,p){l(d,kt({},t.state,t1(o.value.back,d,o.value.forward,!0),p,{position:o.value.position}),!0),r.value=d}function f(d,p){const m=kt({},o.value,t.state,{forward:d,scroll:Qd()});l(m.current,m,!0),l(d,kt({},t1(r.value,d,null),{position:m.position+1},p),!1),r.value=d}return{location:r,state:o,push:f,replace:a}}function DAe(e){e=_Ae(e);const t=IAe(e),n=PAe(e,t.state,t.location,t.replace);function r(l,a=!0){a||n.pauseListeners(),history.go(l)}const o=kt({location:"",base:e,go:r,createHref:TAe.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function FAe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),DAe(e)}let ys=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var dn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(dn||{});const zAe={type:ys.Static,value:""},BAe=/[a-zA-Z0-9_]/;function HAe(e){if(!e)return[[]];if(e==="/")return[[zAe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${n})/"${p}": ${w}`)}let n=dn.Static,r=n;const o=[];let l;function a(){l&&o.push(l),l=[]}let f=0,d,p="",m="";function g(){p&&(n===dn.Static?l.push({type:ys.Static,value:p}):n===dn.Param||n===dn.ParamRegExp||n===dn.ParamRegExpEnd?(l.length>1&&(d==="*"||d==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),l.push({type:ys.Param,value:p,regexp:m,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):t("Invalid state to consume buffer"),p="")}function y(){p+=d}for(;f<e.length;){if(d=e[f++],d==="\\"&&n!==dn.ParamRegExp){r=n,n=dn.EscapeNext;continue}switch(n){case dn.Static:d==="/"?(p&&g(),a()):d===":"?(g(),n=dn.Param):y();break;case dn.EscapeNext:y(),n=r;break;case dn.Param:d==="("?n=dn.ParamRegExp:BAe.test(d)?y():(g(),n=dn.Static,d!=="*"&&d!=="?"&&d!=="+"&&f--);break;case dn.ParamRegExp:d===")"?m[m.length-1]=="\\"?m=m.slice(0,-1)+d:n=dn.ParamRegExpEnd:m+=d;break;case dn.ParamRegExpEnd:g(),n=dn.Static,d!=="*"&&d!=="?"&&d!=="+"&&f--,m="";break;default:t("Unknown state");break}}return n===dn.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),g(),a(),o}const n1="[^/]+?",jAe={sensitive:!1,strict:!1,start:!0,end:!0};var Wn=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Wn||{});const WAe=/[.+*?^${}()[\]/\\]/g;function UAe(e,t){const n=kt({},jAe,t),r=[];let o=n.start?"^":"";const l=[];for(const p of e){const m=p.length?[]:[Wn.Root];n.strict&&!p.length&&(o+="/");for(let g=0;g<p.length;g++){const y=p[g];let w=Wn.Segment+(n.sensitive?Wn.BonusCaseSensitive:0);if(y.type===ys.Static)g||(o+="/"),o+=y.value.replace(WAe,"\\$&"),w+=Wn.Static;else if(y.type===ys.Param){const{value:E,repeatable:_,optional:k,regexp:A}=y;l.push({name:E,repeatable:_,optional:k});const N=A||n1;if(N!==n1){w+=Wn.BonusCustomRegExp;try{new RegExp(`(${N})`)}catch($){throw new Error(`Invalid custom RegExp for param "${E}" (${N}): `+$.message)}}let I=_?`((?:${N})(?:/(?:${N}))*)`:`(${N})`;g||(I=k&&p.length<2?`(?:/${I})`:"/"+I),k&&(I+="?"),o+=I,w+=Wn.Dynamic,k&&(w+=Wn.BonusOptional),_&&(w+=Wn.BonusRepeatable),N===".*"&&(w+=Wn.BonusWildcard)}m.push(w)}r.push(m)}if(n.strict&&n.end){const p=r.length-1;r[p][r[p].length-1]+=Wn.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function f(p){const m=p.match(a),g={};if(!m)return null;for(let y=1;y<m.length;y++){const w=m[y]||"",E=l[y-1];g[E.name]=w&&E.repeatable?w.split("/"):w}return g}function d(p){let m="",g=!1;for(const y of e){(!g||!m.endsWith("/"))&&(m+="/"),g=!1;for(const w of y)if(w.type===ys.Static)m+=w.value;else if(w.type===ys.Param){const{value:E,repeatable:_,optional:k}=w,A=E in p?p[E]:"";if(Qr(A)&&!_)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const N=Qr(A)?A.join("/"):A;if(!N)if(k)y.length<2&&(m.endsWith("/")?m=m.slice(0,-1):g=!0);else throw new Error(`Missing required param "${E}"`);m+=N}}return m||"/"}return{re:a,score:r,keys:l,parse:f,stringify:d}}function qAe(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Wn.Static+Wn.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Wn.Static+Wn.Segment?1:-1:0}function YC(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const l=qAe(r[n],o[n]);if(l)return l;n++}if(Math.abs(o.length-r.length)===1){if(r1(r))return 1;if(r1(o))return-1}return o.length-r.length}function r1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const VAe={strict:!1,end:!0,sensitive:!1};function GAe(e,t,n){const r=UAe(HAe(e.path),n),o=kt(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function KAe(e,t){const n=[],r=new Map;t=Yx(VAe,t);function o(g){return r.get(g)}function l(g,y,w){const E=!w,_=o1(g);_.aliasOf=w&&w.record;const k=Yx(t,g),A=[_];if("alias"in g){const $=typeof g.alias=="string"?[g.alias]:g.alias;for(const D of $)A.push(o1(kt({},_,{components:w?w.record.components:_.components,path:D,aliasOf:w?w.record:_})))}let N,I;for(const $ of A){const{path:D}=$;if(y&&D[0]!=="/"){const U=y.record.path,J=U[U.length-1]==="/"?"":"/";$.path=y.record.path+(D&&J+D)}if(N=GAe($,y,k),w?w.alias.push(N):(I=I||N,I!==N&&I.alias.push(N),E&&g.name&&!s1(N)&&a(g.name)),XC(N)&&d(N),_.children){const U=_.children;for(let J=0;J<U.length;J++)l(U[J],N,w&&w.children[J])}w=w||N}return I?()=>{a(I)}:rc}function a(g){if(GC(g)){const y=r.get(g);y&&(r.delete(g),n.splice(n.indexOf(y),1),y.children.forEach(a),y.alias.forEach(a))}else{const y=n.indexOf(g);y>-1&&(n.splice(y,1),g.record.name&&r.delete(g.record.name),g.children.forEach(a),g.alias.forEach(a))}}function f(){return n}function d(g){const y=JAe(g,n);n.splice(y,0,g),g.record.name&&!s1(g)&&r.set(g.record.name,g)}function p(g,y){let w,E={},_,k;if("name"in g&&g.name){if(w=r.get(g.name),!w)throw ql(Xt.MATCHER_NOT_FOUND,{location:g});k=w.record.name,E=kt(i1(y.params,w.keys.filter(I=>!I.optional).concat(w.parent?w.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),g.params&&i1(g.params,w.keys.map(I=>I.name))),_=w.stringify(E)}else if(g.path!=null)_=g.path,w=n.find(I=>I.re.test(_)),w&&(E=w.parse(_),k=w.record.name);else{if(w=y.name?r.get(y.name):n.find(I=>I.re.test(y.path)),!w)throw ql(Xt.MATCHER_NOT_FOUND,{location:g,currentLocation:y});k=w.record.name,E=kt({},y.params,g.params),_=w.stringify(E)}const A=[];let N=w;for(;N;)A.unshift(N.record),N=N.parent;return{name:k,path:_,params:E,matched:A,meta:XAe(A)}}e.forEach(g=>l(g));function m(){n.length=0,r.clear()}return{addRoute:l,resolve:p,removeRoute:a,clearRoutes:m,getRoutes:f,getRecordMatcher:o}}function i1(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function o1(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:YAe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function YAe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function s1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function XAe(e){return e.reduce((t,n)=>kt(t,n.meta),{})}function JAe(e,t){let n=0,r=t.length;for(;n!==r;){const l=n+r>>1;YC(e,t[l])<0?r=l:n=l+1}const o=ZAe(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function ZAe(e){let t=e;for(;t=t.parent;)if(XC(t)&&YC(e,t)===0)return t}function XC({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function l1(e){const t=kn(Cv),n=kn(BC),r=we(()=>{const d=j(e.to);return t.resolve(d)}),o=we(()=>{const{matched:d}=r.value,{length:p}=d,m=d[p-1],g=n.matched;if(!m||!g.length)return-1;const y=g.findIndex(Vl.bind(null,m));if(y>-1)return y;const w=a1(d[p-2]);return p>1&&a1(m)===w&&g[g.length-1].path!==w?g.findIndex(Vl.bind(null,d[p-2])):y}),l=we(()=>o.value>-1&&rMe(n.params,r.value.params)),a=we(()=>o.value>-1&&o.value===n.matched.length-1&&VC(n.params,r.value.params));function f(d={}){if(nMe(d)){const p=t[j(e.replace)?"replace":"push"](j(e.to)).catch(rc);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:r,href:we(()=>r.value.href),isActive:l,isExactActive:a,navigate:f}}function QAe(e){return e.length===1?e[0]:e}const eMe=et({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:l1,setup(e,{slots:t}){const n=yr(l1(e)),{options:r}=kn(Cv),o=we(()=>({[c1(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[c1(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&QAe(t.default(n));return e.custom?l:zc("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},l)}}}),tMe=eMe;function nMe(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 rMe(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Qr(o)||o.length!==r.length||r.some((l,a)=>l.valueOf()!==o[a].valueOf()))return!1}return!0}function a1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const c1=(e,t,n)=>e??t??n,iMe=et({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=kn(Xm),o=we(()=>e.route||r.value),l=kn(Xx,0),a=we(()=>{let p=j(l);const{matched:m}=o.value;let g;for(;(g=m[p])&&!g.components;)p++;return p}),f=we(()=>o.value.matched[a.value]);Er(Xx,we(()=>a.value+1)),Er(rAe,f),Er(Xm,o);const d=Ve();return ct(()=>[d.value,f.value,e.name],([p,m,g],[y,w,E])=>{m&&(m.instances[g]=p,w&&w!==m&&p&&p===y&&(m.leaveGuards.size||(m.leaveGuards=w.leaveGuards),m.updateGuards.size||(m.updateGuards=w.updateGuards))),p&&m&&(!w||!Vl(m,w)||!y)&&(m.enterCallbacks[g]||[]).forEach(_=>_(p))},{flush:"post"}),()=>{const p=o.value,m=e.name,g=f.value,y=g&&g.components[m];if(!y)return u1(n.default,{Component:y,route:p});const w=g.props[m],E=w?w===!0?p.params:typeof w=="function"?w(p):w:null,k=zc(y,kt({},E,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(g.instances[m]=null)},ref:d}));return u1(n.default,{Component:k,route:p})||k}}});function u1(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const oMe=iMe;function sMe(e){const t=KAe(e.routes,e),n=e.parseQuery||NAe,r=e.stringifyQuery||e1,o=e.history,l=za(),a=za(),f=za(),d=qt(bo);let p=bo;fl&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const m=Rp.bind(null,B=>""+B),g=Rp.bind(null,gAe),y=Rp.bind(null,Lc);function w(B,Q){let ie,le;return GC(B)?(ie=t.getRecordMatcher(B),le=Q):le=B,t.addRoute(le,ie)}function E(B){const Q=t.getRecordMatcher(B);Q&&t.removeRoute(Q)}function _(){return t.getRoutes().map(B=>B.record)}function k(B){return!!t.getRecordMatcher(B)}function A(B,Q){if(Q=kt({},Q||d.value),typeof B=="string"){const ne=Pp(n,B,Q.path),he=t.resolve({path:ne.path},Q),pe=o.createHref(ne.fullPath);return kt(ne,he,{params:y(he.params),hash:Lc(ne.hash),redirectedFrom:void 0,href:pe})}let ie;if(B.path!=null)ie=kt({},B,{path:Pp(n,B.path,Q.path).path});else{const ne=kt({},B.params);for(const he in ne)ne[he]==null&&delete ne[he];ie=kt({},B,{params:g(ne)}),Q.params=g(Q.params)}const le=t.resolve(ie,Q),ce=B.hash||"";le.params=m(y(le.params));const F=bAe(r,kt({},B,{hash:hAe(ce),path:le.path})),W=o.createHref(F);return kt({fullPath:F,hash:ce,query:r===e1?OAe(B.query):B.query||{}},le,{redirectedFrom:void 0,href:W})}function N(B){return typeof B=="string"?Pp(n,B,d.value.path):kt({},B)}function I(B,Q){if(p!==B)return ql(Xt.NAVIGATION_CANCELLED,{from:Q,to:B})}function $(B){return J(B)}function D(B){return $(kt(N(B),{replace:!0}))}function U(B,Q){const ie=B.matched[B.matched.length-1];if(ie&&ie.redirect){const{redirect:le}=ie;let ce=typeof le=="function"?le(B,Q):le;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=N(ce):{path:ce},ce.params={}),kt({query:B.query,hash:B.hash,params:ce.path!=null?{}:B.params},ce)}}function J(B,Q){const ie=p=A(B),le=d.value,ce=B.state,F=B.force,W=B.replace===!0,ne=U(ie,le);if(ne)return J(kt(N(ne),{state:typeof ne=="object"?kt({},ce,ne.state):ce,force:F,replace:W}),Q||ie);const he=ie;he.redirectedFrom=Q;let pe;return!F&&wAe(r,le,ie)&&(pe=ql(Xt.NAVIGATION_DUPLICATED,{to:he,from:le}),je(le,le,!0,!1)),(pe?Promise.resolve(pe):V(he,le)).catch(ge=>Di(ge)?Di(ge,Xt.NAVIGATION_GUARD_REDIRECT)?ge:_e(ge):ae(ge,he,le)).then(ge=>{if(ge){if(Di(ge,Xt.NAVIGATION_GUARD_REDIRECT))return J(kt({replace:W},N(ge.to),{state:typeof ge.to=="object"?kt({},ce,ge.to.state):ce,force:F}),Q||he)}else ge=P(he,le,!0,W,ce);return q(he,le,ge),ge})}function ee(B,Q){const ie=I(B,Q);return ie?Promise.reject(ie):Promise.resolve()}function X(B){const Q=qe.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(B):B()}function V(B,Q){let ie;const[le,ce,F]=LAe(B,Q);ie=Dp(le.reverse(),"beforeRouteLeave",B,Q);for(const ne of le)ne.leaveGuards.forEach(he=>{ie.push(No(he,B,Q))});const W=ee.bind(null,B,Q);return ie.push(W),Re(ie).then(()=>{ie=[];for(const ne of l.list())ie.push(No(ne,B,Q));return ie.push(W),Re(ie)}).then(()=>{ie=Dp(ce,"beforeRouteUpdate",B,Q);for(const ne of ce)ne.updateGuards.forEach(he=>{ie.push(No(he,B,Q))});return ie.push(W),Re(ie)}).then(()=>{ie=[];for(const ne of F)if(ne.beforeEnter)if(Qr(ne.beforeEnter))for(const he of ne.beforeEnter)ie.push(No(he,B,Q));else ie.push(No(ne.beforeEnter,B,Q));return ie.push(W),Re(ie)}).then(()=>(B.matched.forEach(ne=>ne.enterCallbacks={}),ie=Dp(F,"beforeRouteEnter",B,Q,X),ie.push(W),Re(ie))).then(()=>{ie=[];for(const ne of a.list())ie.push(No(ne,B,Q));return ie.push(W),Re(ie)}).catch(ne=>Di(ne,Xt.NAVIGATION_CANCELLED)?ne:Promise.reject(ne))}function q(B,Q,ie){f.list().forEach(le=>X(()=>le(B,Q,ie)))}function P(B,Q,ie,le,ce){const F=I(B,Q);if(F)return F;const W=Q===bo,ne=fl?history.state:{};ie&&(le||W?o.replace(B.fullPath,kt({scroll:W&&ne&&ne.scroll},ce)):o.push(B.fullPath,ce)),d.value=B,je(B,Q,ie,W),_e()}let L;function T(){L||(L=o.listen((B,Q,ie)=>{if(!He.listening)return;const le=A(B),ce=U(le,He.currentRoute.value);if(ce){J(kt(ce,{replace:!0,force:!0}),le).catch(rc);return}p=le;const F=d.value;fl&&AAe(Qx(F.fullPath,ie.delta),Qd()),V(le,F).catch(W=>Di(W,Xt.NAVIGATION_ABORTED|Xt.NAVIGATION_CANCELLED)?W:Di(W,Xt.NAVIGATION_GUARD_REDIRECT)?(J(kt(N(W.to),{force:!0}),le).then(ne=>{Di(ne,Xt.NAVIGATION_ABORTED|Xt.NAVIGATION_DUPLICATED)&&!ie.delta&&ie.type===Zm.pop&&o.go(-1,!1)}).catch(rc),Promise.reject()):(ie.delta&&o.go(-ie.delta,!1),ae(W,le,F))).then(W=>{W=W||P(le,F,!1),W&&(ie.delta&&!Di(W,Xt.NAVIGATION_CANCELLED)?o.go(-ie.delta,!1):ie.type===Zm.pop&&Di(W,Xt.NAVIGATION_ABORTED|Xt.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),q(le,F,W)}).catch(rc)}))}let S=za(),R=za(),z;function ae(B,Q,ie){_e(B);const le=R.list();return le.length?le.forEach(ce=>ce(B,Q,ie)):console.error(B),Promise.reject(B)}function ve(){return z&&d.value!==bo?Promise.resolve():new Promise((B,Q)=>{S.add([B,Q])})}function _e(B){return z||(z=!B,T(),S.list().forEach(([Q,ie])=>B?ie(B):Q()),S.reset()),B}function je(B,Q,ie,le){const{scrollBehavior:ce}=e;if(!fl||!ce)return Promise.resolve();const F=!ie&&MAe(Qx(B.fullPath,0))||(le||!ie)&&history.state&&history.state.scroll||null;return Mt().then(()=>ce(B,Q,F)).then(W=>W&&EAe(W)).catch(W=>ae(W,B,Q))}const Me=B=>o.go(B);let Ke;const qe=new Set,He={currentRoute:d,listening:!0,addRoute:w,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:_,resolve:A,options:e,push:$,replace:D,go:Me,back:()=>Me(-1),forward:()=>Me(1),beforeEach:l.add,beforeResolve:a.add,afterEach:f.add,onError:R.add,isReady:ve,install(B){B.component("RouterLink",tMe),B.component("RouterView",oMe),B.config.globalProperties.$router=He,Object.defineProperty(B.config.globalProperties,"$route",{enumerable:!0,get:()=>j(d)}),fl&&!Ke&&d.value===bo&&(Ke=!0,$(o.location).catch(le=>{}));const Q={};for(const le in bo)Object.defineProperty(Q,le,{get:()=>d.value[le],enumerable:!0});B.provide(Cv,He),B.provide(BC,cg(Q)),B.provide(Xm,d);const ie=B.unmount;qe.add(B),B.unmount=function(){qe.delete(B),qe.size<1&&(p=bo,L&&L(),L=null,d.value=bo,Ke=!1,z=!1),ie()}}};function Re(B){return B.reduce((Q,ie)=>Q.then(()=>X(ie)),Promise.resolve())}return He}const lMe={tooltip:RO};o_.options.instantMove=!0;o_.options.distance=10;function aMe(){return sMe({history:FAe(),routes:QEe})}const cMe=[aMe],Av=FS(LN);cMe.forEach(e=>{Av.use(e())});Object.entries(lMe).forEach(([e,t])=>{Av.directive(e,t)});Av.mount("#app");
|