@peter.naydenov/shortcuts 3.5.2 → 4.0.0
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/API.md +939 -0
- package/CODE_OF_CONDUCT.md +84 -0
- package/CONTRIBUTING.md +476 -0
- package/Changelog.md +26 -2
- package/How.to.create.plugins.md +929 -0
- package/Migration.guide.md +48 -0
- package/README.md +396 -24
- package/dist/main.d.ts +54 -2
- package/dist/methods/_normalizeWithPlugins.d.ts +63 -1
- package/dist/methods/_readShortcutWithPlugins.d.ts +8 -1
- package/dist/methods/_setupPlugin.d.ts +9 -0
- package/dist/methods/_systemAction.d.ts +8 -1
- package/dist/methods/changeContext.d.ts +8 -1
- package/dist/methods/index.d.ts +2 -0
- package/dist/methods/listShortcuts.d.ts +1 -16
- package/dist/methods/load.d.ts +8 -1
- package/dist/methods/unload.d.ts +8 -1
- package/dist/plugins/click/_findTarget.d.ts +9 -1
- package/dist/plugins/click/_listenDOM.d.ts +76 -3
- package/dist/plugins/click/_normalizeShortcutName.d.ts +7 -1
- package/dist/plugins/click/_registerShortcutEvents.d.ts +26 -0
- package/dist/plugins/click/index.d.ts +6 -31
- package/dist/plugins/form/_defaults.d.ts +13 -1
- package/dist/plugins/form/_listenDOM.d.ts +66 -3
- package/dist/plugins/form/_registerShortcutEvents.d.ts +95 -1
- package/dist/plugins/form/index.d.ts +2 -29
- package/dist/plugins/hover/_findTarget.d.ts +10 -0
- package/dist/plugins/hover/_listenDOM.d.ts +68 -0
- package/dist/plugins/hover/_normalizeShortcutName.d.ts +2 -0
- package/dist/plugins/hover/_registerShortcutEvents.d.ts +28 -0
- package/dist/plugins/hover/index.d.ts +14 -0
- package/dist/plugins/key/_listenDOM.d.ts +61 -3
- package/dist/plugins/key/_registerShortcutEvents.d.ts +26 -0
- package/dist/plugins/key/_specialChars.d.ts +6 -31
- package/dist/plugins/key/index.d.ts +2 -29
- package/dist/plugins/scroll/_listenDOM.d.ts +58 -0
- package/dist/plugins/scroll/_normalizeShortcutName.d.ts +2 -0
- package/dist/plugins/scroll/_registerShortcutEvents.d.ts +28 -0
- package/dist/plugins/scroll/index.d.ts +16 -0
- package/dist/shortcuts.cjs +1 -1
- package/dist/shortcuts.esm.mjs +1 -1
- package/dist/shortcuts.umd.js +1 -1
- package/eslint.config.js +80 -0
- package/html/assets/index-COTh6lXR.css +1 -0
- package/html/assets/index-DOkKC3NI.js +53 -0
- package/html/bg.png +0 -0
- package/html/favicon.ico +0 -0
- package/html/favicon.svg +5 -0
- package/html/html.meta.json.gz +0 -0
- package/html/index.html +32 -0
- package/package.json +16 -12
- package/shortcuts.png +0 -0
- package/src/main.js +52 -22
- package/src/methods/_normalizeWithPlugins.js +26 -2
- package/src/methods/_readShortcutWithPlugins.js +9 -2
- package/src/methods/_setupPlugin.js +93 -0
- package/src/methods/_systemAction.js +12 -4
- package/src/methods/changeContext.js +11 -3
- package/src/methods/index.js +2 -0
- package/src/methods/listShortcuts.js +5 -12
- package/src/methods/load.js +11 -4
- package/src/methods/unload.js +8 -1
- package/src/plugins/click/_findTarget.js +11 -5
- package/src/plugins/click/_listenDOM.js +58 -20
- package/src/plugins/click/_normalizeShortcutName.js +11 -4
- package/src/plugins/click/_readClickEvent.js +1 -1
- package/src/plugins/click/_registerShortcutEvents.js +33 -5
- package/src/plugins/click/index.js +33 -60
- package/src/plugins/form/_defaults.js +13 -3
- package/src/plugins/form/_listenDOM.js +46 -9
- package/src/plugins/form/_normalizeShortcutName.js +2 -2
- package/src/plugins/form/_registerShortcutEvents.js +93 -17
- package/src/plugins/form/index.js +25 -56
- package/src/plugins/hover/_findTarget.js +26 -0
- package/src/plugins/hover/_listenDOM.js +154 -0
- package/src/plugins/hover/_normalizeShortcutName.js +21 -0
- package/src/plugins/hover/_registerShortcutEvents.js +51 -0
- package/src/plugins/hover/index.js +71 -0
- package/src/plugins/key/_listenDOM.js +67 -33
- package/src/plugins/key/_normalizeShortcutName.js +4 -3
- package/src/plugins/key/_readKeyEvent.js +1 -1
- package/src/plugins/key/_registerShortcutEvents.js +34 -5
- package/src/plugins/key/_specialChars.js +5 -0
- package/src/plugins/key/index.js +34 -59
- package/src/plugins/scroll/_listenDOM.js +141 -0
- package/src/plugins/scroll/_normalizeShortcutName.js +21 -0
- package/src/plugins/scroll/_registerShortcutEvents.js +50 -0
- package/src/plugins/scroll/index.js +61 -0
- package/test/01-general.test.js +92 -23
- package/test/02-key.test.js +241 -40
- package/test/03-click.test.js +291 -47
- package/test/04-form.test.js +241 -47
- package/test/05-hover.test.js +463 -0
- package/test/06-scroll.test.js +374 -0
- package/test-helpers/Block.jsx +3 -2
- package/test-helpers/style.css +6 -1
- package/vitest.config.js +13 -11
- package/How..to.make.plugins.md +0 -41
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
|
|
2
|
+
* @vue/shared v3.5.21
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function bh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const mt={},_s=[],Vr=()=>{},Q0=()=>!1,_u=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),wh=e=>e.startsWith("onUpdate:"),tn=Object.assign,xh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},rS=Object.prototype.hasOwnProperty,wt=(e,t)=>rS.call(e,t),Be=Array.isArray,Ss=e=>_a(e)==="[object Map]",Su=e=>_a(e)==="[object Set]",yv=e=>_a(e)==="[object Date]",Ge=e=>typeof e=="function",It=e=>typeof e=="string",Mr=e=>typeof e=="symbol",St=e=>e!==null&&typeof e=="object",ey=e=>(St(e)||Ge(e))&&Ge(e.then)&&Ge(e.catch),ty=Object.prototype.toString,_a=e=>ty.call(e),iS=e=>_a(e).slice(8,-1),ny=e=>_a(e)==="[object Object]",_h=e=>It(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dl=bh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ku=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},oS=/-\w/g,rr=ku(e=>e.replace(oS,t=>t.slice(1).toUpperCase())),sS=/\B([A-Z])/g,xi=ku(e=>e.replace(sS,"-$1").toLowerCase()),Tu=ku(e=>e.charAt(0).toUpperCase()+e.slice(1)),Nc=ku(e=>e?`on${Tu(e)}`:""),jn=(e,t)=>!Object.is(e,t),Oc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},ry=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},Td=e=>{const t=parseFloat(e);return isNaN(t)?e:t},iy=e=>{const t=It(e)?Number(e):NaN;return isNaN(t)?e:t};let bv;const Cu=()=>bv||(bv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qt(e){if(Be(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=It(o)?uS(o):Qt(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(It(e)||St(e))return e}const lS=/;(?![^(]*\))/g,aS=/:([^]+)/,cS=/\/\*[^]*?\*\//g;function uS(e){const t={};return e.replace(cS,"").split(lS).forEach(r=>{if(r){const o=r.split(aS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function st(e){let t="";if(It(e))t=e;else if(Be(e))for(let r=0;r<e.length;r++){const o=st(e[r]);o&&(t+=o+" ")}else if(St(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function fS(e){if(!e)return null;let{class:t,style:r}=e;return t&&!It(t)&&(e.class=st(t)),r&&(e.style=Qt(r)),e}const dS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",hS=bh(dS);function oy(e){return!!e||e===""}function pS(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=Eu(e[o],t[o]);return r}function Eu(e,t){if(e===t)return!0;let r=yv(e),o=yv(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Mr(e),o=Mr(t),r||o)return e===t;if(r=Be(e),o=Be(t),r||o)return r&&o?pS(e,t):!1;if(r=St(e),o=St(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!Eu(e[f],t[f]))return!1}}return String(e)===String(t)}function sy(e,t){return e.findIndex(r=>Eu(r,t))}const ly=e=>!!(e&&e.__v_isRef===!0),ze=e=>It(e)?e:e==null?"":Be(e)||St(e)&&(e.toString===ty||!Ge(e.toString))?ly(e)?ze(e.value):JSON.stringify(e,ay,2):String(e),ay=(e,t)=>ly(t)?ay(e,t.value):Ss(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[Xf(o,c)+" =>"]=s,r),{})}:Su(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Xf(r))}:Mr(t)?Xf(t):St(t)&&!Be(t)&&!ny(t)?String(t):t,Xf=(e,t="")=>{var r;return Mr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.21
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let vn;class gS{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=vn,!t&&vn&&(this.index=(vn.scopes||(vn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=vn;try{return vn=this,t()}finally{vn=r}}}on(){++this._on===1&&(this.prevScope=vn,vn=this)}off(){this._on>0&&--this._on===0&&(vn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(this.effects.length=0,r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function cy(){return vn}function vS(e,t=!1){vn&&vn.cleanups.push(e)}let kt;const Yf=new WeakSet;class uy{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,vn&&vn.active&&vn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Yf.has(this)&&(Yf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||dy(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,wv(this),hy(this);const t=kt,r=Ar;kt=this,Ar=!0;try{return this.fn()}finally{py(this),kt=t,Ar=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Th(t);this.deps=this.depsTail=void 0,wv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Yf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Cd(this)&&this.run()}get dirty(){return Cd(this)}}let fy=0,Fl,Hl;function dy(e,t=!1){if(e.flags|=8,t){e.next=Hl,Hl=e;return}e.next=Fl,Fl=e}function Sh(){fy++}function kh(){if(--fy>0)return;if(Hl){let t=Hl;for(Hl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Fl;){let t=Fl;for(Fl=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=r}}if(e)throw e}function hy(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function py(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),Th(o),mS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function Cd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(gy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function gy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Jl)||(e.globalVersion=Jl,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Cd(e))))return;e.flags|=2;const t=e.dep,r=kt,o=Ar;kt=e,Ar=!0;try{hy(e);const s=e.fn(e._value);(t.version===0||jn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{kt=r,Ar=o,py(e),e.flags&=-3}}function Th(e,t=!1){const{dep:r,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let c=r.computed.deps;c;c=c.nextDep)Th(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function mS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Ar=!0;const vy=[];function mi(){vy.push(Ar),Ar=!1}function yi(){const e=vy.pop();Ar=e===void 0?!0:e}function wv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=kt;kt=void 0;try{t()}finally{kt=r}}}let Jl=0;class yS{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Au{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(!kt||!Ar||kt===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==kt)r=this.activeLink=new yS(kt,this),kt.deps?(r.prevDep=kt.depsTail,kt.depsTail.nextDep=r,kt.depsTail=r):kt.deps=kt.depsTail=r,my(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=kt.depsTail,r.nextDep=void 0,kt.depsTail.nextDep=r,kt.depsTail=r,kt.deps===r&&(kt.deps=o)}return r}trigger(t){this.version++,Jl++,this.notify(t)}notify(t){Sh();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{kh()}}}function my(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)my(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Vc=new WeakMap,Oo=Symbol(""),Ed=Symbol(""),Ql=Symbol("");function mn(e,t,r){if(Ar&&kt){let o=Vc.get(e);o||Vc.set(e,o=new Map);let s=o.get(r);s||(o.set(r,s=new Au),s.map=o,s.key=r),s.track()}}function hi(e,t,r,o,s,c){const f=Vc.get(e);if(!f){Jl++;return}const d=h=>{h&&h.trigger()};if(Sh(),t==="clear")f.forEach(d);else{const h=Be(e),p=h&&_h(r);if(h&&r==="length"){const v=Number(o);f.forEach((m,b)=>{(b==="length"||b===Ql||!Mr(b)&&b>=v)&&d(m)})}else switch((r!==void 0||f.has(void 0))&&d(f.get(r)),p&&d(f.get(Ql)),t){case"add":h?p&&d(f.get("length")):(d(f.get(Oo)),Ss(e)&&d(f.get(Ed)));break;case"delete":h||(d(f.get(Oo)),Ss(e)&&d(f.get(Ed)));break;case"set":Ss(e)&&d(f.get(Oo));break}}kh()}function bS(e,t){const r=Vc.get(e);return r&&r.get(t)}function hs(e){const t=vt(e);return t===e?t:(mn(t,"iterate",Ql),ur(e)?t:t.map(un))}function Lu(e){return mn(e=vt(e),"iterate",Ql),e}const wS={__proto__:null,[Symbol.iterator](){return Zf(this,Symbol.iterator,un)},concat(...e){return hs(this).concat(...e.map(t=>Be(t)?hs(t):t))},entries(){return Zf(this,"entries",e=>(e[1]=un(e[1]),e))},every(e,t){return si(this,"every",e,t,void 0,arguments)},filter(e,t){return si(this,"filter",e,t,r=>r.map(un),arguments)},find(e,t){return si(this,"find",e,t,un,arguments)},findIndex(e,t){return si(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return si(this,"findLast",e,t,un,arguments)},findLastIndex(e,t){return si(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return si(this,"forEach",e,t,void 0,arguments)},includes(...e){return Jf(this,"includes",e)},indexOf(...e){return Jf(this,"indexOf",e)},join(e){return hs(this).join(e)},lastIndexOf(...e){return Jf(this,"lastIndexOf",e)},map(e,t){return si(this,"map",e,t,void 0,arguments)},pop(){return Cl(this,"pop")},push(...e){return Cl(this,"push",e)},reduce(e,...t){return xv(this,"reduce",e,t)},reduceRight(e,...t){return xv(this,"reduceRight",e,t)},shift(){return Cl(this,"shift")},some(e,t){return si(this,"some",e,t,void 0,arguments)},splice(...e){return Cl(this,"splice",e)},toReversed(){return hs(this).toReversed()},toSorted(e){return hs(this).toSorted(e)},toSpliced(...e){return hs(this).toSpliced(...e)},unshift(...e){return Cl(this,"unshift",e)},values(){return Zf(this,"values",un)}};function Zf(e,t,r){const o=Lu(e),s=o[t]();return o!==e&&!ur(e)&&(s._next=s.next,s.next=()=>{const c=s._next();return c.value&&(c.value=r(c.value)),c}),s}const xS=Array.prototype;function si(e,t,r,o,s,c){const f=Lu(e),d=f!==e&&!ur(e),h=f[t];if(h!==xS[t]){const m=h.apply(e,c);return d?un(m):m}let p=r;f!==e&&(d?p=function(m,b){return r.call(this,un(m),b,e)}:r.length>2&&(p=function(m,b){return r.call(this,m,b,e)}));const v=h.call(f,p,o);return d&&s?s(v):v}function xv(e,t,r,o){const s=Lu(e);let c=r;return s!==e&&(ur(e)?r.length>3&&(c=function(f,d,h){return r.call(this,f,d,h,e)}):c=function(f,d,h){return r.call(this,f,un(d),h,e)}),s[t](c,...o)}function Jf(e,t,r){const o=vt(e);mn(o,"iterate",Ql);const s=o[t](...r);return(s===-1||s===!1)&&Lh(r[0])?(r[0]=vt(r[0]),o[t](...r)):s}function Cl(e,t,r=[]){mi(),Sh();const o=vt(e)[t].apply(e,r);return kh(),yi(),o}const _S=bh("__proto__,__v_isRef,__isVue"),yy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Mr));function SS(e){Mr(e)||(e=String(e));const t=vt(this);return mn(t,"has",e),t.hasOwnProperty(e)}class by{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){if(r==="__v_skip")return t.__v_skip;const s=this._isReadonly,c=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return c;if(r==="__v_raw")return o===(s?c?OS:Sy:c?_y:xy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=Be(t);if(!s){let h;if(f&&(h=wS[r]))return h;if(r==="hasOwnProperty")return SS}const d=Reflect.get(t,r,Nt(t)?t:o);return(Mr(r)?yy.has(r):_S(r))||(s||mn(t,"get",r),c)?d:Nt(d)?f&&_h(r)?d:d.value:St(d)?s?Sa(d):nr(d):d}}class wy extends by{constructor(t=!1){super(!1,t)}set(t,r,o,s){let c=t[r];if(!this._isShallow){const h=to(c);if(!ur(o)&&!to(o)&&(c=vt(c),o=vt(o)),!Be(t)&&Nt(c)&&!Nt(o))return h||(c.value=o),!0}const f=Be(t)&&_h(r)?Number(r)<t.length:wt(t,r),d=Reflect.set(t,r,o,Nt(t)?t:s);return t===vt(s)&&(f?jn(o,c)&&hi(t,"set",r,o):hi(t,"add",r,o)),d}deleteProperty(t,r){const o=wt(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&o&&hi(t,"delete",r,void 0),s}has(t,r){const o=Reflect.has(t,r);return(!Mr(r)||!yy.has(r))&&mn(t,"has",r),o}ownKeys(t){return mn(t,"iterate",Be(t)?"length":Oo),Reflect.ownKeys(t)}}class kS extends by{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const TS=new wy,CS=new kS,ES=new wy(!0);const Ad=e=>e,gc=e=>Reflect.getPrototypeOf(e);function AS(e,t,r){return function(...o){const s=this.__v_raw,c=vt(s),f=Ss(c),d=e==="entries"||e===Symbol.iterator&&f,h=e==="keys"&&f,p=s[e](...o),v=r?Ad:t?Gc:un;return!t&&mn(c,"iterate",h?Ed:Oo),{next(){const{value:m,done:b}=p.next();return b?{value:m,done:b}:{value:d?[v(m[0]),v(m[1])]:v(m),done:b}},[Symbol.iterator](){return this}}}}function vc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function LS(e,t){const r={get(s){const c=this.__v_raw,f=vt(c),d=vt(s);e||(jn(s,d)&&mn(f,"get",s),mn(f,"get",d));const{has:h}=gc(f),p=t?Ad:e?Gc:un;if(h.call(f,s))return p(c.get(s));if(h.call(f,d))return p(c.get(d));c!==f&&c.get(s)},get size(){const s=this.__v_raw;return!e&&mn(vt(s),"iterate",Oo),s.size},has(s){const c=this.__v_raw,f=vt(c),d=vt(s);return e||(jn(s,d)&&mn(f,"has",s),mn(f,"has",d)),s===d?c.has(s):c.has(s)||c.has(d)},forEach(s,c){const f=this,d=f.__v_raw,h=vt(d),p=t?Ad:e?Gc:un;return!e&&mn(h,"iterate",Oo),d.forEach((v,m)=>s.call(c,p(v),p(m),f))}};return tn(r,e?{add:vc("add"),set:vc("set"),delete:vc("delete"),clear:vc("clear")}:{add(s){!t&&!ur(s)&&!to(s)&&(s=vt(s));const c=vt(this);return gc(c).has.call(c,s)||(c.add(s),hi(c,"add",s,s)),this},set(s,c){!t&&!ur(c)&&!to(c)&&(c=vt(c));const f=vt(this),{has:d,get:h}=gc(f);let p=d.call(f,s);p||(s=vt(s),p=d.call(f,s));const v=h.call(f,s);return f.set(s,c),p?jn(c,v)&&hi(f,"set",s,c):hi(f,"add",s,c),this},delete(s){const c=vt(this),{has:f,get:d}=gc(c);let h=f.call(c,s);h||(s=vt(s),h=f.call(c,s)),d&&d.call(c,s);const p=c.delete(s);return h&&hi(c,"delete",s,void 0),p},clear(){const s=vt(this),c=s.size!==0,f=s.clear();return c&&hi(s,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=AS(s,e,t)}),r}function Ch(e,t){const r=LS(e,t);return(o,s,c)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(wt(r,s)&&s in o?r:o,s,c)}const MS={get:Ch(!1,!1)},$S={get:Ch(!1,!0)},NS={get:Ch(!0,!1)};const xy=new WeakMap,_y=new WeakMap,Sy=new WeakMap,OS=new WeakMap;function PS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function RS(e){return e.__v_skip||!Object.isExtensible(e)?0:PS(iS(e))}function nr(e){return to(e)?e:Ah(e,!1,TS,MS,xy)}function Eh(e){return Ah(e,!1,ES,$S,_y)}function Sa(e){return Ah(e,!0,CS,NS,Sy)}function Ah(e,t,r,o,s){if(!St(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const c=RS(e);if(c===0)return e;const f=s.get(e);if(f)return f;const d=new Proxy(e,c===2?o:r);return s.set(e,d),d}function ks(e){return to(e)?ks(e.__v_raw):!!(e&&e.__v_isReactive)}function to(e){return!!(e&&e.__v_isReadonly)}function ur(e){return!!(e&&e.__v_isShallow)}function Lh(e){return e?!!e.__v_raw:!1}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}function Mh(e){return!wt(e,"__v_skip")&&Object.isExtensible(e)&&ry(e,"__v_skip",!0),e}const un=e=>St(e)?nr(e):e,Gc=e=>St(e)?Sa(e):e;function Nt(e){return e?e.__v_isRef===!0:!1}function Ue(e){return ky(e,!1)}function en(e){return ky(e,!0)}function ky(e,t){return Nt(e)?e:new zS(e,t)}class zS{constructor(t,r){this.dep=new Au,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:vt(t),this._value=r?t:un(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||ur(t)||to(t);t=o?t:vt(t),jn(t,r)&&(this._rawValue=t,this._value=o?t:un(t),this.dep.trigger())}}function Z(e){return Nt(e)?e.value:e}function Ut(e){return Ge(e)?e():Z(e)}const IS={get:(e,t,r)=>t==="__v_raw"?e:Z(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const s=e[t];return Nt(s)&&!Nt(r)?(s.value=r,!0):Reflect.set(e,t,r,o)}};function Ty(e){return ks(e)?e:new Proxy(e,IS)}class DS{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Au,{get:o,set:s}=t(r.track.bind(r),r.trigger.bind(r));this._get=o,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Cy(e){return new DS(e)}function FS(e){const t=Be(e)?new Array(e.length):{};for(const r in e)t[r]=Ey(e,r);return t}class HS{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return bS(vt(this._object),this._key)}}class BS{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 WS(e,t,r){return Nt(e)?e:Ge(e)?new BS(e):St(e)&&arguments.length>1?Ey(e,t,r):Ue(e)}function Ey(e,t,r){const o=e[t];return Nt(o)?o:new HS(e,t,r)}class qS{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Au(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Jl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&kt!==this)return dy(this,!0),!0}get value(){const t=this.dep.track();return gy(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function jS(e,t,r=!1){let o,s;return Ge(e)?o=e:(o=e.get,s=e.set),new qS(o,s,r)}const mc={},Kc=new WeakMap;let Eo;function US(e,t=!1,r=Eo){if(r){let o=Kc.get(r);o||Kc.set(r,o=[]),o.push(e)}}function VS(e,t,r=mt){const{immediate:o,deep:s,once:c,scheduler:f,augmentJob:d,call:h}=r,p=E=>s?E:ur(E)||s===!1||s===0?pi(E,1):pi(E);let v,m,b,x,C=!1,M=!1;if(Nt(e)?(m=()=>e.value,C=ur(e)):ks(e)?(m=()=>p(e),C=!0):Be(e)?(M=!0,C=e.some(E=>ks(E)||ur(E)),m=()=>e.map(E=>{if(Nt(E))return E.value;if(ks(E))return p(E);if(Ge(E))return h?h(E,2):E()})):Ge(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){mi();try{b()}finally{yi()}}const E=Eo;Eo=v;try{return h?h(e,3,[x]):e(x)}finally{Eo=E}}:m=Vr,t&&s){const E=m,I=s===!0?1/0:s;m=()=>pi(E(),I)}const A=cy(),L=()=>{v.stop(),A&&A.active&&xh(A.effects,v)};if(c&&t){const E=t;t=(...I)=>{E(...I),L()}}let $=M?new Array(e.length).fill(mc):mc;const D=E=>{if(!(!(v.flags&1)||!v.dirty&&!E))if(t){const I=v.run();if(s||C||(M?I.some((U,ie)=>jn(U,$[ie])):jn(I,$))){b&&b();const U=Eo;Eo=v;try{const ie=[I,$===mc?void 0:M&&$[0]===mc?[]:$,x];$=I,h?h(t,3,ie):t(...ie)}finally{Eo=U}}}else v.run()};return d&&d(D),v=new uy(m),v.scheduler=f?()=>f(D,!1):D,x=E=>US(E,!1,v),b=v.onStop=()=>{const E=Kc.get(v);if(E){if(h)h(E,4);else for(const I of E)I();Kc.delete(v)}},t?o?D(!0):$=v.run():f?f(D.bind(null,!0),!0):v.run(),L.pause=v.pause.bind(v),L.resume=v.resume.bind(v),L.stop=L,L}function pi(e,t=1/0,r){if(t<=0||!St(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Nt(e))pi(e.value,t,r);else if(Be(e))for(let o=0;o<e.length;o++)pi(e[o],t,r);else if(Su(e)||Ss(e))e.forEach(o=>{pi(o,t,r)});else if(ny(e)){for(const o in e)pi(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&pi(e[o],t,r)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.21
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function ka(e,t,r,o){try{return o?e(...o):e()}catch(s){Ta(s,t,r)}}function $r(e,t,r,o){if(Ge(e)){const s=ka(e,t,r,o);return s&&ey(s)&&s.catch(c=>{Ta(c,t,r)}),s}if(Be(e)){const s=[];for(let c=0;c<e.length;c++)s.push($r(e[c],t,r,o));return s}}function Ta(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||mt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const v=d.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,h,p)===!1)return}d=d.parent}if(c){mi(),ka(c,null,10,[e,h,p]),yi();return}}GS(e,r,s,o,f)}function GS(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Nn=[];let jr=-1;const Ts=[];let qi=null,gs=0;const Ay=Promise.resolve();let Xc=null;function Ct(e){const t=Xc||Ay;return e?t.then(this?e.bind(this):e):t}function KS(e){let t=jr+1,r=Nn.length;for(;t<r;){const o=t+r>>>1,s=Nn[o],c=ea(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function $h(e){if(!(e.flags&1)){const t=ea(e),r=Nn[Nn.length-1];!r||!(e.flags&2)&&t>=ea(r)?Nn.push(e):Nn.splice(KS(t),0,e),e.flags|=1,Ly()}}function Ly(){Xc||(Xc=Ay.then($y))}function Ld(e){Be(e)?Ts.push(...e):qi&&e.id===-1?qi.splice(gs+1,0,e):e.flags&1||(Ts.push(e),e.flags|=1),Ly()}function _v(e,t,r=jr+1){for(;r<Nn.length;r++){const o=Nn[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Nn.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function My(e){if(Ts.length){const t=[...new Set(Ts)].sort((r,o)=>ea(r)-ea(o));if(Ts.length=0,qi){qi.push(...t);return}for(qi=t,gs=0;gs<qi.length;gs++){const r=qi[gs];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}qi=null,gs=0}}const ea=e=>e.id==null?e.flags&2?-1:1/0:e.id;function $y(e){try{for(jr=0;jr<Nn.length;jr++){const t=Nn[jr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ka(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;jr<Nn.length;jr++){const t=Nn[jr];t&&(t.flags&=-2)}jr=-1,Nn.length=0,My(),Xc=null,(Nn.length||Ts.length)&&$y()}}let dn=null,Mu=null;function Yc(e){const t=dn;return dn=e,Mu=e&&e.type.__scopeId||null,t}function Ny(e){Mu=e}function Oy(){Mu=null}const Py=e=>it;function it(e,t=dn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Is(-1);const c=Yc(t);let f;try{f=e(...s)}finally{Yc(c),o._d&&Is(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function ct(e,t){if(dn===null)return e;const r=Du(dn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=mt]=t[s];c&&(Ge(c)&&(c={mounted:c,updated:c}),c.deep&&pi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function _o(e,t,r,o){const s=e.dirs,c=t&&t.dirs;for(let f=0;f<s.length;f++){const d=s[f];c&&(d.oldValue=c[f].value);let h=d.dir[o];h&&(mi(),$r(h,r,8,[e.el,d,e,t]),yi())}}const XS=Symbol("_vte"),Ry=e=>e.__isTeleport,di=Symbol("_leaveCb"),yc=Symbol("_enterCb");function YS(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ao(()=>{e.isMounted=!0}),Ca(()=>{e.isUnmounting=!0}),e}const lr=[Function,Array],zy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:lr,onEnter:lr,onAfterEnter:lr,onEnterCancelled:lr,onBeforeLeave:lr,onLeave:lr,onAfterLeave:lr,onLeaveCancelled:lr,onBeforeAppear:lr,onAppear:lr,onAfterAppear:lr,onAppearCancelled:lr},Iy=e=>{const t=e.subTree;return t.component?Iy(t.component):t},ZS={name:"BaseTransition",props:zy,setup(e,{slots:t}){const r=Si(),o=YS();return()=>{const s=t.default&&Hy(t.default(),!0);if(!s||!s.length)return;const c=Dy(s),f=vt(e),{mode:d}=f;if(o.isLeaving)return Qf(c);const h=Sv(c);if(!h)return Qf(c);let p=Md(h,f,o,r,m=>p=m);h.type!==rn&&ta(h,p);let v=r.subTree&&Sv(r.subTree);if(v&&v.type!==rn&&!Ur(v,h)&&Iy(r).type!==rn){let m=Md(v,f,o,r);if(ta(v,m),d==="out-in"&&h.type!==rn)return o.isLeaving=!0,m.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete m.afterLeave,v=void 0},Qf(c);d==="in-out"&&h.type!==rn?m.delayLeave=(b,x,C)=>{const M=Fy(o,v);M[String(v.key)]=v,b[di]=()=>{x(),b[di]=void 0,delete p.delayedLeave,v=void 0},p.delayedLeave=()=>{C(),delete p.delayedLeave,v=void 0}}:v=void 0}else v&&(v=void 0);return c}}};function Dy(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==rn){t=r;break}}return t}const JS=ZS;function Fy(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function Md(e,t,r,o,s){const{appear:c,mode:f,persisted:d=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:v,onEnterCancelled:m,onBeforeLeave:b,onLeave:x,onAfterLeave:C,onLeaveCancelled:M,onBeforeAppear:A,onAppear:L,onAfterAppear:$,onAppearCancelled:D}=t,E=String(e.key),I=Fy(r,e),U=(ne,G)=>{ne&&$r(ne,o,9,G)},ie=(ne,G)=>{const J=G[1];U(ne,G),Be(ne)?ne.every(P=>P.length<=1)&&J():ne.length<=1&&J()},re={mode:f,persisted:d,beforeEnter(ne){let G=h;if(!r.isMounted)if(c)G=A||h;else return;ne[di]&&ne[di](!0);const J=I[E];J&&Ur(e,J)&&J.el[di]&&J.el[di](),U(G,[ne])},enter(ne){let G=p,J=v,P=m;if(!r.isMounted)if(c)G=L||p,J=$||v,P=D||m;else return;let O=!1;const N=ne[yc]=S=>{O||(O=!0,S?U(P,[ne]):U(J,[ne]),re.delayedLeave&&re.delayedLeave(),ne[yc]=void 0)};G?ie(G,[ne,N]):N()},leave(ne,G){const J=String(e.key);if(ne[yc]&&ne[yc](!0),r.isUnmounting)return G();U(b,[ne]);let P=!1;const O=ne[di]=N=>{P||(P=!0,G(),N?U(M,[ne]):U(C,[ne]),ne[di]=void 0,I[J]===e&&delete I[J])};I[J]=e,x?ie(x,[ne,O]):O()},clone(ne){const G=Md(ne,t,r,o,s);return s&&s(G),G}};return re}function Qf(e){if($u(e))return e=no(e),e.children=null,e}function Sv(e){if(!$u(e))return Ry(e.type)&&e.children?Dy(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Ge(r.default))return r.default()}}function ta(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ta(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 Hy(e,t=!1,r){let o=[],s=0;for(let c=0;c<e.length;c++){let f=e[c];const d=r==null?f.key:String(r)+String(f.key!=null?f.key:c);f.type===nt?(f.patchFlag&128&&s++,o=o.concat(Hy(f.children,t,d))):(t||f.type!==rn)&&o.push(d!=null?no(f,{key:d}):f)}if(s>1)for(let c=0;c<o.length;c++)o[c].patchFlag=-2;return o}function ot(e,t){return Ge(e)?tn({name:e.name},t,{setup:e}):e}function By(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Zc=new WeakMap;function Bl(e,t,r,o,s=!1){if(Be(e)){e.forEach((C,M)=>Bl(C,t&&(Be(t)?t[M]:t),r,o,s));return}if(Cs(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Bl(e,t,r,o.component.subTree);return}const c=o.shapeFlag&4?Du(o.component):o.el,f=s?null:c,{i:d,r:h}=e,p=t&&t.r,v=d.refs===mt?d.refs={}:d.refs,m=d.setupState,b=vt(m),x=m===mt?Q0:C=>wt(b,C);if(p!=null&&p!==h){if(kv(t),It(p))v[p]=null,x(p)&&(m[p]=null);else if(Nt(p)){p.value=null;const C=t;C.k&&(v[C.k]=null)}}if(Ge(h))ka(h,d,12,[f,v]);else{const C=It(h),M=Nt(h);if(C||M){const A=()=>{if(e.f){const L=C?x(h)?m[h]:v[h]:h.value;if(s)Be(L)&&xh(L,c);else if(Be(L))L.includes(c)||L.push(c);else if(C)v[h]=[c],x(h)&&(m[h]=v[h]);else{const $=[c];h.value=$,e.k&&(v[e.k]=$)}}else C?(v[h]=f,x(h)&&(m[h]=f)):M&&(h.value=f,e.k&&(v[e.k]=f))};if(f){const L=()=>{A(),Zc.delete(e)};L.id=-1,Zc.set(e,L),Jn(L,r)}else kv(e),A()}}}function kv(e){const t=Zc.get(e);t&&(t.flags|=8,Zc.delete(e))}Cu().requestIdleCallback;Cu().cancelIdleCallback;const Cs=e=>!!e.type.__asyncLoader,$u=e=>e.type.__isKeepAlive;function QS(e,t){Wy(e,"a",t)}function ek(e,t){Wy(e,"da",t)}function Wy(e,t,r=bn){const o=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Nu(t,o,r),r){let s=r.parent;for(;s&&s.parent;)$u(s.parent.vnode)&&tk(o,t,r,s),s=s.parent}}function tk(e,t,r,o){const s=Nu(t,e,o,!0);Ou(()=>{xh(o[t],s)},r)}function Nu(e,t,r=bn,o=!1){if(r){const s=r[e]||(r[e]=[]),c=t.__weh||(t.__weh=(...f)=>{mi();const d=Ea(r),h=$r(t,r,e,f);return d(),yi(),h});return o?s.unshift(c):s.push(c),c}}const _i=e=>(t,r=bn)=>{(!ia||e==="sp")&&Nu(e,(...o)=>t(...o),r)},nk=_i("bm"),ao=_i("m"),rk=_i("bu"),ik=_i("u"),Ca=_i("bum"),Ou=_i("um"),ok=_i("sp"),sk=_i("rtg"),lk=_i("rtc");function ak(e,t=bn){Nu("ec",e,t)}const Nh="components",ck="directives";function zo(e,t){return Oh(Nh,e,!0,t)||e}const qy=Symbol.for("v-ndc");function $d(e){return It(e)?Oh(Nh,e,!1)||e:e||qy}function Rr(e){return Oh(ck,e)}function Oh(e,t,r=!0,o=!1){const s=dn||bn;if(s){const c=s.type;if(e===Nh){const d=nT(c,!1);if(d&&(d===t||d===rr(t)||d===Tu(rr(t))))return c}const f=Tv(s[e]||c[e],t)||Tv(s.appContext[e],t);return!f&&o?c:f}}function Tv(e,t){return e&&(e[t]||e[rr(t)]||e[Tu(rr(t))])}function fr(e,t,r,o){let s;const c=r,f=Be(e);if(f||It(e)){const d=f&&ks(e);let h=!1,p=!1;d&&(h=!ur(e),p=to(e),e=Lu(e)),s=new Array(e.length);for(let v=0,m=e.length;v<m;v++)s[v]=t(h?p?Gc(un(e[v])):un(e[v]):e[v],v,void 0,c)}else if(typeof e=="number"){s=new Array(e);for(let d=0;d<e;d++)s[d]=t(d+1,d,void 0,c)}else if(St(e))if(e[Symbol.iterator])s=Array.from(e,(d,h)=>t(d,h,void 0,c));else{const d=Object.keys(e);s=new Array(d.length);for(let h=0,p=d.length;h<p;h++){const v=d[h];s[h]=t(e[v],v,h,c)}}else s=[];return s}function uk(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(Be(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.key?(...s)=>{const c=o.fn(...s);return c&&(c.key=o.key),c}:o.fn)}return e}function wn(e,t,r={},o,s){if(dn.ce||dn.parent&&Cs(dn.parent)&&dn.parent.ce)return t!=="default"&&(r.name=t),se(),Je(nt,null,[Oe("slot",r,o&&o())],64);let c=e[t];c&&c._c&&(c._d=!1),se();const f=c&&jy(c(r)),d=r.key||f&&f.key,h=Je(nt,{key:(d&&!Mr(d)?d:`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),c&&c._c&&(c._d=!0),h}function jy(e){return e.some(t=>Ds(t)?!(t.type===rn||t.type===nt&&!jy(t.children)):!0)?e:null}function fk(e,t){const r={};for(const o in e)r[Nc(o)]=e[o];return r}const Nd=e=>e?gb(e)?Du(e):Nd(e.parent):null,Wl=tn(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=>Nd(e.parent),$root:e=>Nd(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Gy(e),$forceUpdate:e=>e.f||(e.f=()=>{$h(e.update)}),$nextTick:e=>e.n||(e.n=Ct.bind(e.proxy)),$watch:e=>Rk.bind(e)}),ed=(e,t)=>e!==mt&&!e.__isScriptSetup&&wt(e,t),dk={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:s,props:c,accessCache:f,type:d,appContext:h}=e;let p;if(t[0]!=="$"){const x=f[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return s[t];case 4:return r[t];case 3:return c[t]}else{if(ed(o,t))return f[t]=1,o[t];if(s!==mt&&wt(s,t))return f[t]=2,s[t];if((p=e.propsOptions[0])&&wt(p,t))return f[t]=3,c[t];if(r!==mt&&wt(r,t))return f[t]=4,r[t];Od&&(f[t]=0)}}const v=Wl[t];let m,b;if(v)return t==="$attrs"&&mn(e.attrs,"get",""),v(e);if((m=d.__cssModules)&&(m=m[t]))return m;if(r!==mt&&wt(r,t))return f[t]=4,r[t];if(b=h.config.globalProperties,wt(b,t))return b[t]},set({_:e},t,r){const{data:o,setupState:s,ctx:c}=e;return ed(s,t)?(s[t]=r,!0):o!==mt&&wt(o,t)?(o[t]=r,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(c[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:s,propsOptions:c,type:f}},d){let h,p;return!!(r[d]||e!==mt&&d[0]!=="$"&&wt(e,d)||ed(t,d)||(h=c[0])&&wt(h,d)||wt(o,d)||wt(Wl,d)||wt(s.config.globalProperties,d)||(p=f.__cssModules)&&p[d])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function hk(){return Uy().slots}function pk(){return Uy().attrs}function Uy(e){const t=Si();return t.setupContext||(t.setupContext=mb(t))}function Jc(e){return Be(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function na(e,t){return!e||!t?e||t:Be(e)&&Be(t)?e.concat(t):tn({},Jc(e),Jc(t))}let Od=!0;function gk(e){const t=Gy(e),r=e.proxy,o=e.ctx;Od=!1,t.beforeCreate&&Cv(t.beforeCreate,e,"bc");const{data:s,computed:c,methods:f,watch:d,provide:h,inject:p,created:v,beforeMount:m,mounted:b,beforeUpdate:x,updated:C,activated:M,deactivated:A,beforeDestroy:L,beforeUnmount:$,destroyed:D,unmounted:E,render:I,renderTracked:U,renderTriggered:ie,errorCaptured:re,serverPrefetch:ne,expose:G,inheritAttrs:J,components:P,directives:O,filters:N}=t;if(p&&vk(p,o,null),f)for(const j in f){const oe=f[j];Ge(oe)&&(o[j]=oe.bind(r))}if(s){const j=s.call(r,r);St(j)&&(e.data=nr(j))}if(Od=!0,c)for(const j in c){const oe=c[j],me=Ge(oe)?oe.bind(r,r):Ge(oe.get)?oe.get.bind(r,r):Vr,Se=!Ge(oe)&&Ge(oe.set)?oe.set.bind(r):Vr,Re=_e({get:me,set:Se});Object.defineProperty(o,j,{enumerable:!0,configurable:!0,get:()=>Re.value,set:je=>Re.value=je})}if(d)for(const j in d)Vy(d[j],o,r,j);if(h){const j=Ge(h)?h.call(r):h;Reflect.ownKeys(j).forEach(oe=>{Tr(oe,j[oe])})}v&&Cv(v,e,"c");function F(j,oe){Be(oe)?oe.forEach(me=>j(me.bind(r))):oe&&j(oe.bind(r))}if(F(nk,m),F(ao,b),F(rk,x),F(ik,C),F(QS,M),F(ek,A),F(ak,re),F(lk,U),F(sk,ie),F(Ca,$),F(Ou,E),F(ok,ne),Be(G))if(G.length){const j=e.exposed||(e.exposed={});G.forEach(oe=>{Object.defineProperty(j,oe,{get:()=>r[oe],set:me=>r[oe]=me,enumerable:!0})})}else e.exposed||(e.exposed={});I&&e.render===Vr&&(e.render=I),J!=null&&(e.inheritAttrs=J),P&&(e.components=P),O&&(e.directives=O),ne&&By(e)}function vk(e,t,r=Vr){Be(e)&&(e=Pd(e));for(const o in e){const s=e[o];let c;St(s)?"default"in s?c=yn(s.from||o,s.default,!0):c=yn(s.from||o):c=yn(s),Nt(c)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>c.value,set:f=>c.value=f}):t[o]=c}}function Cv(e,t,r){$r(Be(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function Vy(e,t,r,o){let s=o.includes(".")?sb(r,o):()=>r[o];if(It(e)){const c=t[e];Ge(c)&&_t(s,c)}else if(Ge(e))_t(s,e.bind(r));else if(St(e))if(Be(e))e.forEach(c=>Vy(c,t,r,o));else{const c=Ge(e.handler)?e.handler.bind(r):t[e.handler];Ge(c)&&_t(s,c,e)}}function Gy(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:s,optionsCache:c,config:{optionMergeStrategies:f}}=e.appContext,d=c.get(t);let h;return d?h=d:!s.length&&!r&&!o?h=t:(h={},s.length&&s.forEach(p=>Qc(h,p,f,!0)),Qc(h,t,f)),St(t)&&c.set(t,h),h}function Qc(e,t,r,o=!1){const{mixins:s,extends:c}=t;c&&Qc(e,c,r,!0),s&&s.forEach(f=>Qc(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const d=mk[f]||r&&r[f];e[f]=d?d(e[f],t[f]):t[f]}return e}const mk={data:Ev,props:Av,emits:Av,methods:Pl,computed:Pl,beforeCreate:Ln,created:Ln,beforeMount:Ln,mounted:Ln,beforeUpdate:Ln,updated:Ln,beforeDestroy:Ln,beforeUnmount:Ln,destroyed:Ln,unmounted:Ln,activated:Ln,deactivated:Ln,errorCaptured:Ln,serverPrefetch:Ln,components:Pl,directives:Pl,watch:bk,provide:Ev,inject:yk};function Ev(e,t){return t?e?function(){return tn(Ge(e)?e.call(this,this):e,Ge(t)?t.call(this,this):t)}:t:e}function yk(e,t){return Pl(Pd(e),Pd(t))}function Pd(e){if(Be(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Ln(e,t){return e?[...new Set([].concat(e,t))]:t}function Pl(e,t){return e?tn(Object.create(null),e,t):t}function Av(e,t){return e?Be(e)&&Be(t)?[...new Set([...e,...t])]:tn(Object.create(null),Jc(e),Jc(t??{})):t}function bk(e,t){if(!e)return t;if(!t)return e;const r=tn(Object.create(null),e);for(const o in t)r[o]=Ln(e[o],t[o]);return r}function Ky(){return{app:null,config:{isNativeTag:Q0,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 wk=0;function xk(e,t){return function(o,s=null){Ge(o)||(o=tn({},o)),s!=null&&!St(s)&&(s=null);const c=Ky(),f=new WeakSet,d=[];let h=!1;const p=c.app={_uid:wk++,_component:o,_props:s,_container:null,_context:c,_instance:null,version:iT,get config(){return c.config},set config(v){},use(v,...m){return f.has(v)||(v&&Ge(v.install)?(f.add(v),v.install(p,...m)):Ge(v)&&(f.add(v),v(p,...m))),p},mixin(v){return c.mixins.includes(v)||c.mixins.push(v),p},component(v,m){return m?(c.components[v]=m,p):c.components[v]},directive(v,m){return m?(c.directives[v]=m,p):c.directives[v]},mount(v,m,b){if(!h){const x=p._ceVNode||Oe(o,s);return x.appContext=c,b===!0?b="svg":b===!1&&(b=void 0),e(x,v,b),h=!0,p._container=v,v.__vue_app__=p,Du(x.component)}},onUnmount(v){d.push(v)},unmount(){h&&($r(d,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(v,m){return c.provides[v]=m,p},runWithContext(v){const m=Po;Po=p;try{return v()}finally{Po=m}}};return p}}let Po=null;function Tr(e,t){if(bn){let r=bn.provides;const o=bn.parent&&bn.parent.provides;o===r&&(r=bn.provides=Object.create(o)),r[e]=t}}function yn(e,t,r=!1){const o=Si();if(o||Po){let s=Po?Po._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&Ge(t)?t.call(o&&o.proxy):t}}function Xy(){return!!(Si()||Po)}const Yy={},Zy=()=>Object.create(Yy),Jy=e=>Object.getPrototypeOf(e)===Yy;function _k(e,t,r,o=!1){const s={},c=Zy();e.propsDefaults=Object.create(null),Qy(e,t,s,c);for(const f in e.propsOptions[0])f in s||(s[f]=void 0);r?e.props=o?s:Eh(s):e.type.props?e.props=s:e.props=c,e.attrs=c}function Sk(e,t,r,o){const{props:s,attrs:c,vnode:{patchFlag:f}}=e,d=vt(s),[h]=e.propsOptions;let p=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let b=v[m];if(zu(e.emitsOptions,b))continue;const x=t[b];if(h)if(wt(c,b))x!==c[b]&&(c[b]=x,p=!0);else{const C=rr(b);s[C]=Rd(h,d,C,x,e,!1)}else x!==c[b]&&(c[b]=x,p=!0)}}}else{Qy(e,t,s,c)&&(p=!0);let v;for(const m in d)(!t||!wt(t,m)&&((v=xi(m))===m||!wt(t,v)))&&(h?r&&(r[m]!==void 0||r[v]!==void 0)&&(s[m]=Rd(h,d,m,void 0,e,!0)):delete s[m]);if(c!==d)for(const m in c)(!t||!wt(t,m))&&(delete c[m],p=!0)}p&&hi(e.attrs,"set","")}function Qy(e,t,r,o){const[s,c]=e.propsOptions;let f=!1,d;if(t)for(let h in t){if(Dl(h))continue;const p=t[h];let v;s&&wt(s,v=rr(h))?!c||!c.includes(v)?r[v]=p:(d||(d={}))[v]=p:zu(e.emitsOptions,h)||(!(h in o)||p!==o[h])&&(o[h]=p,f=!0)}if(c){const h=vt(r),p=d||mt;for(let v=0;v<c.length;v++){const m=c[v];r[m]=Rd(s,h,m,p[m],e,!wt(p,m))}}return f}function Rd(e,t,r,o,s,c){const f=e[r];if(f!=null){const d=wt(f,"default");if(d&&o===void 0){const h=f.default;if(f.type!==Function&&!f.skipFactory&&Ge(h)){const{propsDefaults:p}=s;if(r in p)o=p[r];else{const v=Ea(s);o=p[r]=h.call(null,t),v()}}else o=h;s.ce&&s.ce._setProp(r,o)}f[0]&&(c&&!d?o=!1:f[1]&&(o===""||o===xi(r))&&(o=!0))}return o}const kk=new WeakMap;function eb(e,t,r=!1){const o=r?kk:t.propsCache,s=o.get(e);if(s)return s;const c=e.props,f={},d=[];let h=!1;if(!Ge(e)){const v=m=>{h=!0;const[b,x]=eb(m,t,!0);tn(f,b),x&&d.push(...x)};!r&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!c&&!h)return St(e)&&o.set(e,_s),_s;if(Be(c))for(let v=0;v<c.length;v++){const m=rr(c[v]);Lv(m)&&(f[m]=mt)}else if(c)for(const v in c){const m=rr(v);if(Lv(m)){const b=c[v],x=f[m]=Be(b)||Ge(b)?{type:b}:tn({},b),C=x.type;let M=!1,A=!0;if(Be(C))for(let L=0;L<C.length;++L){const $=C[L],D=Ge($)&&$.name;if(D==="Boolean"){M=!0;break}else D==="String"&&(A=!1)}else M=Ge(C)&&C.name==="Boolean";x[0]=M,x[1]=A,(M||wt(x,"default"))&&d.push(m)}}const p=[f,d];return St(e)&&o.set(e,p),p}function Lv(e){return e[0]!=="$"&&!Dl(e)}const Ph=e=>e==="_"||e==="_ctx"||e==="$stable",Rh=e=>Be(e)?e.map(Cr):[Cr(e)],Tk=(e,t,r)=>{if(t._n)return t;const o=it((...s)=>Rh(t(...s)),r);return o._c=!1,o},tb=(e,t,r)=>{const o=e._ctx;for(const s in e){if(Ph(s))continue;const c=e[s];if(Ge(c))t[s]=Tk(s,c,o);else if(c!=null){const f=Rh(c);t[s]=()=>f}}},nb=(e,t)=>{const r=Rh(t);e.slots.default=()=>r},rb=(e,t,r)=>{for(const o in t)(r||!Ph(o))&&(e[o]=t[o])},Ck=(e,t,r)=>{const o=e.slots=Zy();if(e.vnode.shapeFlag&32){const s=t._;s?(rb(o,t,r),r&&ry(o,"_",s,!0)):tb(t,o)}else t&&nb(e,t)},Ek=(e,t,r)=>{const{vnode:o,slots:s}=e;let c=!0,f=mt;if(o.shapeFlag&32){const d=t._;d?r&&d===1?c=!1:rb(s,t,r):(c=!t.$stable,tb(t,s)),f=t}else t&&(nb(e,t),f={default:1});if(c)for(const d in s)!Ph(d)&&f[d]==null&&delete s[d]},Jn=Gk;function Ak(e){return Lk(e)}function Lk(e,t){const r=Cu();r.__VUE__=!0;const{insert:o,remove:s,patchProp:c,createElement:f,createText:d,createComment:h,setText:p,setElementText:v,parentNode:m,nextSibling:b,setScopeId:x=Vr,insertStaticContent:C}=e,M=(R,q,K,ue=null,he=null,fe=null,Ce=void 0,Ee=null,ve=!!q.dynamicChildren)=>{if(R===q)return;R&&!Ur(R,q)&&(ue=H(R),je(R,he,fe,!0),R=null),q.patchFlag===-2&&(ve=!1,q.dynamicChildren=null);const{type:be,ref:We,shapeFlag:$e}=q;switch(be){case Iu:A(R,q,K,ue);break;case rn:L(R,q,K,ue);break;case nd:R==null&&$(q,K,ue,Ce);break;case nt:P(R,q,K,ue,he,fe,Ce,Ee,ve);break;default:$e&1?I(R,q,K,ue,he,fe,Ce,Ee,ve):$e&6?O(R,q,K,ue,he,fe,Ce,Ee,ve):($e&64||$e&128)&&be.process(R,q,K,ue,he,fe,Ce,Ee,ve,ae)}We!=null&&he?Bl(We,R&&R.ref,fe,q||R,!q):We==null&&R&&R.ref!=null&&Bl(R.ref,null,fe,R,!0)},A=(R,q,K,ue)=>{if(R==null)o(q.el=d(q.children),K,ue);else{const he=q.el=R.el;q.children!==R.children&&p(he,q.children)}},L=(R,q,K,ue)=>{R==null?o(q.el=h(q.children||""),K,ue):q.el=R.el},$=(R,q,K,ue)=>{[R.el,R.anchor]=C(R.children,q,K,ue,R.el,R.anchor)},D=({el:R,anchor:q},K,ue)=>{let he;for(;R&&R!==q;)he=b(R),o(R,K,ue),R=he;o(q,K,ue)},E=({el:R,anchor:q})=>{let K;for(;R&&R!==q;)K=b(R),s(R),R=K;s(q)},I=(R,q,K,ue,he,fe,Ce,Ee,ve)=>{q.type==="svg"?Ce="svg":q.type==="math"&&(Ce="mathml"),R==null?U(q,K,ue,he,fe,Ce,Ee,ve):ne(R,q,he,fe,Ce,Ee,ve)},U=(R,q,K,ue,he,fe,Ce,Ee)=>{let ve,be;const{props:We,shapeFlag:$e,transition:De,dirs:Ve}=R;if(ve=R.el=f(R.type,fe,We&&We.is,We),$e&8?v(ve,R.children):$e&16&&re(R.children,ve,null,ue,he,td(R,fe),Ce,Ee),Ve&&_o(R,null,ue,"created"),ie(ve,R,R.scopeId,Ce,ue),We){for(const lt in We)lt!=="value"&&!Dl(lt)&&c(ve,lt,null,We[lt],fe,ue);"value"in We&&c(ve,"value",null,We.value,fe),(be=We.onVnodeBeforeMount)&&qr(be,ue,R)}Ve&&_o(R,null,ue,"beforeMount");const rt=Mk(he,De);rt&&De.beforeEnter(ve),o(ve,q,K),((be=We&&We.onVnodeMounted)||rt||Ve)&&Jn(()=>{be&&qr(be,ue,R),rt&&De.enter(ve),Ve&&_o(R,null,ue,"mounted")},he)},ie=(R,q,K,ue,he)=>{if(K&&x(R,K),ue)for(let fe=0;fe<ue.length;fe++)x(R,ue[fe]);if(he){let fe=he.subTree;if(q===fe||cb(fe.type)&&(fe.ssContent===q||fe.ssFallback===q)){const Ce=he.vnode;ie(R,Ce,Ce.scopeId,Ce.slotScopeIds,he.parent)}}},re=(R,q,K,ue,he,fe,Ce,Ee,ve=0)=>{for(let be=ve;be<R.length;be++){const We=R[be]=Ee?ji(R[be]):Cr(R[be]);M(null,We,q,K,ue,he,fe,Ce,Ee)}},ne=(R,q,K,ue,he,fe,Ce)=>{const Ee=q.el=R.el;let{patchFlag:ve,dynamicChildren:be,dirs:We}=q;ve|=R.patchFlag&16;const $e=R.props||mt,De=q.props||mt;let Ve;if(K&&So(K,!1),(Ve=De.onVnodeBeforeUpdate)&&qr(Ve,K,q,R),We&&_o(q,R,K,"beforeUpdate"),K&&So(K,!0),($e.innerHTML&&De.innerHTML==null||$e.textContent&&De.textContent==null)&&v(Ee,""),be?G(R.dynamicChildren,be,Ee,K,ue,td(q,he),fe):Ce||oe(R,q,Ee,null,K,ue,td(q,he),fe,!1),ve>0){if(ve&16)J(Ee,$e,De,K,he);else if(ve&2&&$e.class!==De.class&&c(Ee,"class",null,De.class,he),ve&4&&c(Ee,"style",$e.style,De.style,he),ve&8){const rt=q.dynamicProps;for(let lt=0;lt<rt.length;lt++){const ut=rt[lt],Mt=$e[ut],at=De[ut];(at!==Mt||ut==="value")&&c(Ee,ut,Mt,at,he,K)}}ve&1&&R.children!==q.children&&v(Ee,q.children)}else!Ce&&be==null&&J(Ee,$e,De,K,he);((Ve=De.onVnodeUpdated)||We)&&Jn(()=>{Ve&&qr(Ve,K,q,R),We&&_o(q,R,K,"updated")},ue)},G=(R,q,K,ue,he,fe,Ce)=>{for(let Ee=0;Ee<q.length;Ee++){const ve=R[Ee],be=q[Ee],We=ve.el&&(ve.type===nt||!Ur(ve,be)||ve.shapeFlag&198)?m(ve.el):K;M(ve,be,We,null,ue,he,fe,Ce,!0)}},J=(R,q,K,ue,he)=>{if(q!==K){if(q!==mt)for(const fe in q)!Dl(fe)&&!(fe in K)&&c(R,fe,q[fe],null,he,ue);for(const fe in K){if(Dl(fe))continue;const Ce=K[fe],Ee=q[fe];Ce!==Ee&&fe!=="value"&&c(R,fe,Ee,Ce,he,ue)}"value"in K&&c(R,"value",q.value,K.value,he)}},P=(R,q,K,ue,he,fe,Ce,Ee,ve)=>{const be=q.el=R?R.el:d(""),We=q.anchor=R?R.anchor:d("");let{patchFlag:$e,dynamicChildren:De,slotScopeIds:Ve}=q;Ve&&(Ee=Ee?Ee.concat(Ve):Ve),R==null?(o(be,K,ue),o(We,K,ue),re(q.children||[],K,We,he,fe,Ce,Ee,ve)):$e>0&&$e&64&&De&&R.dynamicChildren?(G(R.dynamicChildren,De,K,he,fe,Ce,Ee),(q.key!=null||he&&q===he.subTree)&&ib(R,q,!0)):oe(R,q,K,We,he,fe,Ce,Ee,ve)},O=(R,q,K,ue,he,fe,Ce,Ee,ve)=>{q.slotScopeIds=Ee,R==null?q.shapeFlag&512?he.ctx.activate(q,K,ue,Ce,ve):N(q,K,ue,he,fe,Ce,ve):S(R,q,ve)},N=(R,q,K,ue,he,fe,Ce)=>{const Ee=R.component=Jk(R,ue,he);if($u(R)&&(Ee.ctx.renderer=ae),Qk(Ee,!1,Ce),Ee.asyncDep){if(he&&he.registerDep(Ee,F,Ce),!R.el){const ve=Ee.subTree=Oe(rn);L(null,ve,q,K),R.placeholder=ve.el}}else F(Ee,R,q,K,he,fe,Ce)},S=(R,q,K)=>{const ue=q.component=R.component;if(Bk(R,q,K))if(ue.asyncDep&&!ue.asyncResolved){j(ue,q,K);return}else ue.next=q,ue.update();else q.el=R.el,ue.vnode=q},F=(R,q,K,ue,he,fe,Ce)=>{const Ee=()=>{if(R.isMounted){let{next:$e,bu:De,u:Ve,parent:rt,vnode:lt}=R;{const Ht=ob(R);if(Ht){$e&&($e.el=lt.el,j(R,$e,Ce)),Ht.asyncDep.then(()=>{R.isUnmounted||Ee()});return}}let ut=$e,Mt;So(R,!1),$e?($e.el=lt.el,j(R,$e,Ce)):$e=lt,De&&Oc(De),(Mt=$e.props&&$e.props.onVnodeBeforeUpdate)&&qr(Mt,rt,$e,lt),So(R,!0);const at=$v(R),Vt=R.subTree;R.subTree=at,M(Vt,at,m(Vt.el),H(Vt),R,he,fe),$e.el=at.el,ut===null&&Ih(R,at.el),Ve&&Jn(Ve,he),(Mt=$e.props&&$e.props.onVnodeUpdated)&&Jn(()=>qr(Mt,rt,$e,lt),he)}else{let $e;const{el:De,props:Ve}=q,{bm:rt,m:lt,parent:ut,root:Mt,type:at}=R,Vt=Cs(q);So(R,!1),rt&&Oc(rt),!Vt&&($e=Ve&&Ve.onVnodeBeforeMount)&&qr($e,ut,q),So(R,!0);{Mt.ce&&Mt.ce._def.shadowRoot!==!1&&Mt.ce._injectChildStyle(at);const Ht=R.subTree=$v(R);M(null,Ht,K,ue,R,he,fe),q.el=Ht.el}if(lt&&Jn(lt,he),!Vt&&($e=Ve&&Ve.onVnodeMounted)){const Ht=q;Jn(()=>qr($e,ut,Ht),he)}(q.shapeFlag&256||ut&&Cs(ut.vnode)&&ut.vnode.shapeFlag&256)&&R.a&&Jn(R.a,he),R.isMounted=!0,q=K=ue=null}};R.scope.on();const ve=R.effect=new uy(Ee);R.scope.off();const be=R.update=ve.run.bind(ve),We=R.job=ve.runIfDirty.bind(ve);We.i=R,We.id=R.uid,ve.scheduler=()=>$h(We),So(R,!0),be()},j=(R,q,K)=>{q.component=R;const ue=R.vnode.props;R.vnode=q,R.next=null,Sk(R,q.props,ue,K),Ek(R,q.children,K),mi(),_v(R),yi()},oe=(R,q,K,ue,he,fe,Ce,Ee,ve=!1)=>{const be=R&&R.children,We=R?R.shapeFlag:0,$e=q.children,{patchFlag:De,shapeFlag:Ve}=q;if(De>0){if(De&128){Se(be,$e,K,ue,he,fe,Ce,Ee,ve);return}else if(De&256){me(be,$e,K,ue,he,fe,Ce,Ee,ve);return}}Ve&8?(We&16&&te(be,he,fe),$e!==be&&v(K,$e)):We&16?Ve&16?Se(be,$e,K,ue,he,fe,Ce,Ee,ve):te(be,he,fe,!0):(We&8&&v(K,""),Ve&16&&re($e,K,ue,he,fe,Ce,Ee,ve))},me=(R,q,K,ue,he,fe,Ce,Ee,ve)=>{R=R||_s,q=q||_s;const be=R.length,We=q.length,$e=Math.min(be,We);let De;for(De=0;De<$e;De++){const Ve=q[De]=ve?ji(q[De]):Cr(q[De]);M(R[De],Ve,K,null,he,fe,Ce,Ee,ve)}be>We?te(R,he,fe,!0,!1,$e):re(q,K,ue,he,fe,Ce,Ee,ve,$e)},Se=(R,q,K,ue,he,fe,Ce,Ee,ve)=>{let be=0;const We=q.length;let $e=R.length-1,De=We-1;for(;be<=$e&&be<=De;){const Ve=R[be],rt=q[be]=ve?ji(q[be]):Cr(q[be]);if(Ur(Ve,rt))M(Ve,rt,K,null,he,fe,Ce,Ee,ve);else break;be++}for(;be<=$e&&be<=De;){const Ve=R[$e],rt=q[De]=ve?ji(q[De]):Cr(q[De]);if(Ur(Ve,rt))M(Ve,rt,K,null,he,fe,Ce,Ee,ve);else break;$e--,De--}if(be>$e){if(be<=De){const Ve=De+1,rt=Ve<We?q[Ve].el:ue;for(;be<=De;)M(null,q[be]=ve?ji(q[be]):Cr(q[be]),K,rt,he,fe,Ce,Ee,ve),be++}}else if(be>De)for(;be<=$e;)je(R[be],he,fe,!0),be++;else{const Ve=be,rt=be,lt=new Map;for(be=rt;be<=De;be++){const Dt=q[be]=ve?ji(q[be]):Cr(q[be]);Dt.key!=null&<.set(Dt.key,be)}let ut,Mt=0;const at=De-rt+1;let Vt=!1,Ht=0;const In=new Array(at);for(be=0;be<at;be++)In[be]=0;for(be=Ve;be<=$e;be++){const Dt=R[be];if(Mt>=at){je(Dt,he,fe,!0);continue}let Dn;if(Dt.key!=null)Dn=lt.get(Dt.key);else for(ut=rt;ut<=De;ut++)if(In[ut-rt]===0&&Ur(Dt,q[ut])){Dn=ut;break}Dn===void 0?je(Dt,he,fe,!0):(In[Dn-rt]=be+1,Dn>=Ht?Ht=Dn:Vt=!0,M(Dt,q[Dn],K,null,he,fe,Ce,Ee,ve),Mt++)}const Ir=Vt?$k(In):_s;for(ut=Ir.length-1,be=at-1;be>=0;be--){const Dt=rt+be,Dn=q[Dt],tt=q[Dt+1],co=Dt+1<We?tt.el||tt.placeholder:ue;In[be]===0?M(null,Dn,K,co,he,fe,Ce,Ee,ve):Vt&&(ut<0||be!==Ir[ut]?Re(Dn,K,co,2):ut--)}}},Re=(R,q,K,ue,he=null)=>{const{el:fe,type:Ce,transition:Ee,children:ve,shapeFlag:be}=R;if(be&6){Re(R.component.subTree,q,K,ue);return}if(be&128){R.suspense.move(q,K,ue);return}if(be&64){Ce.move(R,q,K,ae);return}if(Ce===nt){o(fe,q,K);for(let $e=0;$e<ve.length;$e++)Re(ve[$e],q,K,ue);o(R.anchor,q,K);return}if(Ce===nd){D(R,q,K);return}if(ue!==2&&be&1&&Ee)if(ue===0)Ee.beforeEnter(fe),o(fe,q,K),Jn(()=>Ee.enter(fe),he);else{const{leave:$e,delayLeave:De,afterLeave:Ve}=Ee,rt=()=>{R.ctx.isUnmounted?s(fe):o(fe,q,K)},lt=()=>{fe._isLeaving&&fe[di](!0),$e(fe,()=>{rt(),Ve&&Ve()})};De?De(fe,rt,lt):lt()}else o(fe,q,K)},je=(R,q,K,ue=!1,he=!1)=>{const{type:fe,props:Ce,ref:Ee,children:ve,dynamicChildren:be,shapeFlag:We,patchFlag:$e,dirs:De,cacheIndex:Ve}=R;if($e===-2&&(he=!1),Ee!=null&&(mi(),Bl(Ee,null,K,R,!0),yi()),Ve!=null&&(q.renderCache[Ve]=void 0),We&256){q.ctx.deactivate(R);return}const rt=We&1&&De,lt=!Cs(R);let ut;if(lt&&(ut=Ce&&Ce.onVnodeBeforeUnmount)&&qr(ut,q,R),We&6)Ye(R.component,K,ue);else{if(We&128){R.suspense.unmount(K,ue);return}rt&&_o(R,null,q,"beforeUnmount"),We&64?R.type.remove(R,q,K,ae,ue):be&&!be.hasOnce&&(fe!==nt||$e>0&&$e&64)?te(be,q,K,!1,!0):(fe===nt&&$e&384||!he&&We&16)&&te(ve,q,K),ue&&Qe(R)}(lt&&(ut=Ce&&Ce.onVnodeUnmounted)||rt)&&Jn(()=>{ut&&qr(ut,q,R),rt&&_o(R,null,q,"unmounted")},K)},Qe=R=>{const{type:q,el:K,anchor:ue,transition:he}=R;if(q===nt){Xe(K,ue);return}if(q===nd){E(R);return}const fe=()=>{s(K),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(R.shapeFlag&1&&he&&!he.persisted){const{leave:Ce,delayLeave:Ee}=he,ve=()=>Ce(K,fe);Ee?Ee(R.el,fe,ve):ve()}else fe()},Xe=(R,q)=>{let K;for(;R!==q;)K=b(R),s(R),R=K;s(q)},Ye=(R,q,K)=>{const{bum:ue,scope:he,job:fe,subTree:Ce,um:Ee,m:ve,a:be}=R;Mv(ve),Mv(be),ue&&Oc(ue),he.stop(),fe&&(fe.flags|=8,je(Ce,R,q,K)),Ee&&Jn(Ee,q),Jn(()=>{R.isUnmounted=!0},q)},te=(R,q,K,ue=!1,he=!1,fe=0)=>{for(let Ce=fe;Ce<R.length;Ce++)je(R[Ce],q,K,ue,he)},H=R=>{if(R.shapeFlag&6)return H(R.component.subTree);if(R.shapeFlag&128)return R.suspense.next();const q=b(R.anchor||R.el),K=q&&q[XS];return K?b(K):q};let Y=!1;const V=(R,q,K)=>{R==null?q._vnode&&je(q._vnode,null,null,!0):M(q._vnode||null,R,q,null,null,null,K),q._vnode=R,Y||(Y=!0,_v(),My(),Y=!1)},ae={p:M,um:je,m:Re,r:Qe,mt:N,mc:re,pc:oe,pbc:G,n:H,o:e};return{render:V,hydrate:void 0,createApp:xk(V)}}function td({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function So({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Mk(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ib(e,t,r=!1){const o=e.children,s=t.children;if(Be(o)&&Be(s))for(let c=0;c<o.length;c++){const f=o[c];let d=s[c];d.shapeFlag&1&&!d.dynamicChildren&&((d.patchFlag<=0||d.patchFlag===32)&&(d=s[c]=ji(s[c]),d.el=f.el),!r&&d.patchFlag!==-2&&ib(f,d)),d.type===Iu&&d.patchFlag!==-1&&(d.el=f.el),d.type===rn&&!d.el&&(d.el=f.el)}}function $k(e){const t=e.slice(),r=[0];let o,s,c,f,d;const h=e.length;for(o=0;o<h;o++){const p=e[o];if(p!==0){if(s=r[r.length-1],e[s]<p){t[o]=s,r.push(o);continue}for(c=0,f=r.length-1;c<f;)d=c+f>>1,e[r[d]]<p?c=d+1:f=d;p<e[r[c]]&&(c>0&&(t[o]=r[c-1]),r[c]=o)}}for(c=r.length,f=r[c-1];c-- >0;)r[c]=f,f=t[f];return r}function ob(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ob(t)}function Mv(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Nk=Symbol.for("v-scx"),Ok=()=>yn(Nk);function zh(e,t){return Pu(e,null,t)}function Pk(e,t){return Pu(e,null,{flush:"sync"})}function _t(e,t,r){return Pu(e,t,r)}function Pu(e,t,r=mt){const{immediate:o,deep:s,flush:c,once:f}=r,d=tn({},r),h=t&&o||!t&&c!=="post";let p;if(ia){if(c==="sync"){const x=Ok();p=x.__watcherHandles||(x.__watcherHandles=[])}else if(!h){const x=()=>{};return x.stop=Vr,x.resume=Vr,x.pause=Vr,x}}const v=bn;d.call=(x,C,M)=>$r(x,v,C,M);let m=!1;c==="post"?d.scheduler=x=>{Jn(x,v&&v.suspense)}:c!=="sync"&&(m=!0,d.scheduler=(x,C)=>{C?x():$h(x)}),d.augmentJob=x=>{t&&(x.flags|=4),m&&(x.flags|=2,v&&(x.id=v.uid,x.i=v))};const b=VS(e,t,d);return ia&&(p?p.push(b):h&&b()),b}function Rk(e,t,r){const o=this.proxy,s=It(e)?e.includes(".")?sb(o,e):()=>o[e]:e.bind(o,o);let c;Ge(t)?c=t:(c=t.handler,r=t);const f=Ea(this),d=Pu(s,c.bind(o),r);return f(),d}function sb(e,t){const r=t.split(".");return()=>{let o=e;for(let s=0;s<r.length&&o;s++)o=o[r[s]];return o}}function Ru(e,t,r=mt){const o=Si(),s=rr(t),c=xi(t),f=lb(e,s),d=Cy((h,p)=>{let v,m=mt,b;return Pk(()=>{const x=e[s];jn(v,x)&&(v=x,p())}),{get(){return h(),r.get?r.get(v):v},set(x){const C=r.set?r.set(x):x;if(!jn(C,v)&&!(m!==mt&&jn(x,m)))return;const M=o.vnode.props;M&&(t in M||s in M||c in M)&&(`onUpdate:${t}`in M||`onUpdate:${s}`in M||`onUpdate:${c}`in M)||(v=x,p()),o.emit(`update:${t}`,C),jn(x,C)&&jn(x,m)&&!jn(C,b)&&p(),m=x,b=C}}});return d[Symbol.iterator]=()=>{let h=0;return{next(){return h<2?{value:h++?f||mt:d,done:!1}:{done:!0}}}},d}const lb=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${rr(t)}Modifiers`]||e[`${xi(t)}Modifiers`];function zk(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||mt;let s=r;const c=t.startsWith("update:"),f=c&&lb(o,t.slice(7));f&&(f.trim&&(s=r.map(v=>It(v)?v.trim():v)),f.number&&(s=r.map(Td)));let d,h=o[d=Nc(t)]||o[d=Nc(rr(t))];!h&&c&&(h=o[d=Nc(xi(t))]),h&&$r(h,e,6,s);const p=o[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,$r(p,e,6,s)}}const Ik=new WeakMap;function ab(e,t,r=!1){const o=r?Ik:t.emitsCache,s=o.get(e);if(s!==void 0)return s;const c=e.emits;let f={},d=!1;if(!Ge(e)){const h=p=>{const v=ab(p,t,!0);v&&(d=!0,tn(f,v))};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!c&&!d?(St(e)&&o.set(e,null),null):(Be(c)?c.forEach(h=>f[h]=null):tn(f,c),St(e)&&o.set(e,f),f)}function zu(e,t){return!e||!_u(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,xi(t))||wt(e,t))}function $v(e){const{type:t,vnode:r,proxy:o,withProxy:s,propsOptions:[c],slots:f,attrs:d,emit:h,render:p,renderCache:v,props:m,data:b,setupState:x,ctx:C,inheritAttrs:M}=e,A=Yc(e);let L,$;try{if(r.shapeFlag&4){const E=s||o,I=E;L=Cr(p.call(I,E,v,m,x,b,C)),$=d}else{const E=t;L=Cr(E.length>1?E(m,{attrs:d,slots:f,emit:h}):E(m,null)),$=t.props?d:Fk(d)}}catch(E){ql.length=0,Ta(E,e,1),L=Oe(rn)}let D=L;if($&&M!==!1){const E=Object.keys($),{shapeFlag:I}=D;E.length&&I&7&&(c&&E.some(wh)&&($=Hk($,c)),D=no(D,$,!1,!0))}return r.dirs&&(D=no(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(r.dirs):r.dirs),r.transition&&ta(D,r.transition),L=D,Yc(A),L}function Dk(e,t=!0){let r;for(let o=0;o<e.length;o++){const s=e[o];if(Ds(s)){if(s.type!==rn||s.children==="v-if"){if(r)return;r=s}}else return}return r}const Fk=e=>{let t;for(const r in e)(r==="class"||r==="style"||_u(r))&&((t||(t={}))[r]=e[r]);return t},Hk=(e,t)=>{const r={};for(const o in e)(!wh(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Bk(e,t,r){const{props:o,children:s,component:c}=e,{props:f,children:d,patchFlag:h}=t,p=c.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&h>=0){if(h&1024)return!0;if(h&16)return o?Nv(o,f,p):!!f;if(h&8){const v=t.dynamicProps;for(let m=0;m<v.length;m++){const b=v[m];if(f[b]!==o[b]&&!zu(p,b))return!0}}}else return(s||d)&&(!d||!d.$stable)?!0:o===f?!1:o?f?Nv(o,f,p):!0:!!f;return!1}function Nv(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const c=o[s];if(t[c]!==e[c]&&!zu(r,c))return!0}return!1}function Ih({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=r,t=t.parent;else break}}const cb=e=>e.__isSuspense;let zd=0;const Wk={name:"Suspense",__isSuspense:!0,process(e,t,r,o,s,c,f,d,h,p){if(e==null)qk(t,r,o,s,c,f,d,h,p);else{if(c&&c.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}jk(e,t,r,o,s,f,d,h,p)}},hydrate:Uk,normalize:Vk},Dh=Wk;function ra(e,t){const r=e.props&&e.props[t];Ge(r)&&r()}function qk(e,t,r,o,s,c,f,d,h){const{p,o:{createElement:v}}=h,m=v("div"),b=e.suspense=ub(e,s,o,t,m,r,c,f,d,h);p(null,b.pendingBranch=e.ssContent,m,null,o,b,c,f),b.deps>0?(ra(e,"onPending"),ra(e,"onFallback"),p(null,e.ssFallback,t,r,o,null,c,f),Es(b,e.ssFallback)):b.resolve(!1,!0)}function jk(e,t,r,o,s,c,f,d,{p:h,um:p,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const b=t.ssContent,x=t.ssFallback,{activeBranch:C,pendingBranch:M,isInFallback:A,isHydrating:L}=m;if(M)m.pendingBranch=b,Ur(M,b)?(h(M,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():A&&(L||(h(C,x,r,o,s,null,c,f,d),Es(m,x)))):(m.pendingId=zd++,L?(m.isHydrating=!1,m.activeBranch=M):p(M,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),A?(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0?m.resolve():(h(C,x,r,o,s,null,c,f,d),Es(m,x))):C&&Ur(C,b)?(h(C,b,r,o,s,m,c,f,d),m.resolve(!0)):(h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0&&m.resolve()));else if(C&&Ur(C,b))h(C,b,r,o,s,m,c,f,d),Es(m,b);else if(ra(t,"onPending"),m.pendingBranch=b,b.shapeFlag&512?m.pendingId=b.component.suspenseId:m.pendingId=zd++,h(null,b,m.hiddenContainer,null,s,m,c,f,d),m.deps<=0)m.resolve();else{const{timeout:$,pendingId:D}=m;$>0?setTimeout(()=>{m.pendingId===D&&m.fallback(x)},$):$===0&&m.fallback(x)}}function ub(e,t,r,o,s,c,f,d,h,p,v=!1){const{p:m,m:b,um:x,n:C,o:{parentNode:M,remove:A}}=p;let L;const $=Kk(e);$&&t&&t.pendingBranch&&(L=t.pendingId,t.deps++);const D=e.props?iy(e.props.timeout):void 0,E=c,I={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:s,deps:0,pendingId:zd++,timeout:typeof D=="number"?D:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(U=!1,ie=!1){const{vnode:re,activeBranch:ne,pendingBranch:G,pendingId:J,effects:P,parentComponent:O,container:N}=I;let S=!1;I.isHydrating?I.isHydrating=!1:U||(S=ne&&G.transition&&G.transition.mode==="out-in",S&&(ne.transition.afterLeave=()=>{J===I.pendingId&&(b(G,N,c===E?C(ne):c,0),Ld(P))}),ne&&(M(ne.el)===N&&(c=C(ne)),x(ne,O,I,!0)),S||b(G,N,c,0)),Es(I,G),I.pendingBranch=null,I.isInFallback=!1;let F=I.parent,j=!1;for(;F;){if(F.pendingBranch){F.effects.push(...P),j=!0;break}F=F.parent}!j&&!S&&Ld(P),I.effects=[],$&&t&&t.pendingBranch&&L===t.pendingId&&(t.deps--,t.deps===0&&!ie&&t.resolve()),ra(re,"onResolve")},fallback(U){if(!I.pendingBranch)return;const{vnode:ie,activeBranch:re,parentComponent:ne,container:G,namespace:J}=I;ra(ie,"onFallback");const P=C(re),O=()=>{I.isInFallback&&(m(null,U,G,P,ne,null,J,d,h),Es(I,U))},N=U.transition&&U.transition.mode==="out-in";N&&(re.transition.afterLeave=O),I.isInFallback=!0,x(re,ne,null,!0),N||O()},move(U,ie,re){I.activeBranch&&b(I.activeBranch,U,ie,re),I.container=U},next(){return I.activeBranch&&C(I.activeBranch)},registerDep(U,ie,re){const ne=!!I.pendingBranch;ne&&I.deps++;const G=U.vnode.el;U.asyncDep.catch(J=>{Ta(J,U,0)}).then(J=>{if(U.isUnmounted||I.isUnmounted||I.pendingId!==U.suspenseId)return;U.asyncResolved=!0;const{vnode:P}=U;Dd(U,J),G&&(P.el=G);const O=!G&&U.subTree.el;ie(U,P,M(G||U.subTree.el),G?null:C(U.subTree),I,f,re),O&&A(O),Ih(U,P.el),ne&&--I.deps===0&&I.resolve()})},unmount(U,ie){I.isUnmounted=!0,I.activeBranch&&x(I.activeBranch,r,U,ie),I.pendingBranch&&x(I.pendingBranch,r,U,ie)}};return I}function Uk(e,t,r,o,s,c,f,d,h){const p=t.suspense=ub(t,o,r,e.parentNode,document.createElement("div"),null,s,c,f,d,!0),v=h(e,p.pendingBranch=t.ssContent,r,p,c,f);return p.deps===0&&p.resolve(!1,!0),v}function Vk(e){const{shapeFlag:t,children:r}=e,o=t&32;e.ssContent=Ov(o?r.default:r),e.ssFallback=o?Ov(r.fallback):Oe(rn)}function Ov(e){let t;if(Ge(e)){const r=zs&&e._c;r&&(e._d=!1,se()),e=e(),r&&(e._d=!0,t=Vn,fb())}return Be(e)&&(e=Dk(e)),e=Cr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Gk(e,t){t&&t.pendingBranch?Be(e)?t.effects.push(...e):t.effects.push(e):Ld(e)}function Es(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;r.el=s,o&&o.subTree===r&&(o.vnode.el=s,Ih(o,s))}function Kk(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const nt=Symbol.for("v-fgt"),Iu=Symbol.for("v-txt"),rn=Symbol.for("v-cmt"),nd=Symbol.for("v-stc"),ql=[];let Vn=null;function se(e=!1){ql.push(Vn=e?null:[])}function fb(){ql.pop(),Vn=ql[ql.length-1]||null}let zs=1;function Is(e,t=!1){zs+=e,e<0&&Vn&&t&&(Vn.hasOnce=!0)}function db(e){return e.dynamicChildren=zs>0?Vn||_s:null,fb(),zs>0&&Vn&&Vn.push(e),e}function ye(e,t,r,o,s,c){return db(Q(e,t,r,o,s,c,!0))}function Je(e,t,r,o,s){return db(Oe(e,t,r,o,s,!0))}function Ds(e){return e?e.__v_isVNode===!0:!1}function Ur(e,t){return e.type===t.type&&e.key===t.key}const hb=({key:e})=>e??null,Pc=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?It(e)||Nt(e)||Ge(e)?{i:dn,r:e,k:t,f:!!r}:e:null);function Q(e,t=null,r=null,o=0,s=null,c=e===nt?0:1,f=!1,d=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&hb(t),ref:t&&Pc(t),scopeId:Mu,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:dn};return d?(Fh(h,r),c&128&&e.normalize(h)):r&&(h.shapeFlag|=It(r)?8:16),zs>0&&!f&&Vn&&(h.patchFlag>0||c&6)&&h.patchFlag!==32&&Vn.push(h),h}const Oe=Xk;function Xk(e,t=null,r=null,o=0,s=null,c=!1){if((!e||e===qy)&&(e=rn),Ds(e)){const d=no(e,t,!0);return r&&Fh(d,r),zs>0&&!c&&Vn&&(d.shapeFlag&6?Vn[Vn.indexOf(e)]=d:Vn.push(d)),d.patchFlag=-2,d}if(rT(e)&&(e=e.__vccOpts),t){t=pb(t);let{class:d,style:h}=t;d&&!It(d)&&(t.class=st(d)),St(h)&&(Lh(h)&&!Be(h)&&(h=tn({},h)),t.style=Qt(h))}const f=It(e)?1:cb(e)?128:Ry(e)?64:St(e)?4:Ge(e)?2:0;return Q(e,t,r,o,s,f,c,!0)}function pb(e){return e?Lh(e)||Jy(e)?tn({},e):e:null}function no(e,t,r=!1,o=!1){const{props:s,ref:c,patchFlag:f,children:d,transition:h}=e,p=t?vi(s||{},t):s,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&hb(p),ref:t&&t.ref?r&&c?Be(c)?c.concat(Pc(t)):[c,Pc(t)]:Pc(t):c,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==nt?f===-1?16:f|16:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&no(e.ssContent),ssFallback:e.ssFallback&&no(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&o&&ta(v,h.clone(v)),v}function dt(e=" ",t=0){return Oe(Iu,null,e,t)}function qe(e="",t=!1){return t?(se(),Je(rn,null,e)):Oe(rn,null,e)}function Cr(e){return e==null||typeof e=="boolean"?Oe(rn):Be(e)?Oe(nt,null,e.slice()):Ds(e)?ji(e):Oe(Iu,null,String(e))}function ji(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:no(e)}function Fh(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Be(t))r=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Fh(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Jy(t)?t._ctx=dn:s===3&&dn&&(dn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ge(t)?(t={default:t,_ctx:dn},r=32):(t=String(t),o&64?(r=16,t=[dt(t)]):r=8);e.children=t,e.shapeFlag|=r}function vi(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=st([t.class,o.class]));else if(s==="style")t.style=Qt([t.style,o.style]);else if(_u(s)){const c=t[s],f=o[s];f&&c!==f&&!(Be(c)&&c.includes(f))&&(t[s]=c?[].concat(c,f):f)}else s!==""&&(t[s]=o[s])}return t}function qr(e,t,r,o=null){$r(e,t,7,[r,o])}const Yk=Ky();let Zk=0;function Jk(e,t,r){const o=e.type,s=(t?t.appContext:e.appContext)||Yk,c={uid:Zk++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new gS(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:eb(o,s),emitsOptions:ab(o,s),emit:null,emitted:null,propsDefaults:mt,inheritAttrs:o.inheritAttrs,ctx:mt,data:mt,props:mt,attrs:mt,slots:mt,refs:mt,setupState:mt,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return c.ctx={_:c},c.root=t?t.root:c,c.emit=zk.bind(null,c),e.ce&&e.ce(c),c}let bn=null;const Si=()=>bn||dn;let eu,Id;{const e=Cu(),t=(r,o)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(o),c=>{s.length>1?s.forEach(f=>f(c)):s[0](c)}};eu=t("__VUE_INSTANCE_SETTERS__",r=>bn=r),Id=t("__VUE_SSR_SETTERS__",r=>ia=r)}const Ea=e=>{const t=bn;return eu(e),e.scope.on(),()=>{e.scope.off(),eu(t)}},Pv=()=>{bn&&bn.scope.off(),eu(null)};function gb(e){return e.vnode.shapeFlag&4}let ia=!1;function Qk(e,t=!1,r=!1){t&&Id(t);const{props:o,children:s}=e.vnode,c=gb(e);_k(e,o,c,t),Ck(e,s,r||t);const f=c?eT(e,t):void 0;return t&&Id(!1),f}function eT(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,dk);const{setup:o}=r;if(o){mi();const s=e.setupContext=o.length>1?mb(e):null,c=Ea(e),f=ka(o,e,0,[e.props,s]),d=ey(f);if(yi(),c(),(d||e.sp)&&!Cs(e)&&By(e),d){if(f.then(Pv,Pv),t)return f.then(h=>{Dd(e,h)}).catch(h=>{Ta(h,e,0)});e.asyncDep=f}else Dd(e,f)}else vb(e)}function Dd(e,t,r){Ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:St(t)&&(e.setupState=Ty(t)),vb(e)}function vb(e,t,r){const o=e.type;e.render||(e.render=o.render||Vr);{const s=Ea(e);mi();try{gk(e)}finally{yi(),s()}}}const tT={get(e,t){return mn(e,"get",""),e[t]}};function mb(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,tT),slots:e.slots,emit:e.emit,expose:t}}function Du(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ty(Mh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Wl)return Wl[r](e)},has(t,r){return r in t||r in Wl}})):e.proxy}function nT(e,t=!0){return Ge(e)?e.displayName||e.name:e.name||t&&e.__name}function rT(e){return Ge(e)&&"__vccOpts"in e}const _e=(e,t)=>jS(e,t,ia);function Aa(e,t,r){const o=(c,f,d)=>{Is(-1);try{return Oe(c,f,d)}finally{Is(1)}},s=arguments.length;return s===2?St(t)&&!Be(t)?Ds(t)?o(e,null,[t]):o(e,t):o(e,null,t):(s>3?r=Array.prototype.slice.call(arguments,2):s===3&&Ds(r)&&(r=[r]),o(e,t,r))}const iT="3.5.21";/**
|
|
14
|
+
* @vue/runtime-dom v3.5.21
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/let Fd;const Rv=typeof window<"u"&&window.trustedTypes;if(Rv)try{Fd=Rv.createPolicy("vue",{createHTML:e=>e})}catch{}const yb=Fd?e=>Fd.createHTML(e):e=>e,oT="http://www.w3.org/2000/svg",sT="http://www.w3.org/1998/Math/MathML",ui=typeof document<"u"?document:null,zv=ui&&ui.createElement("template"),lT={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?ui.createElementNS(oT,e):t==="mathml"?ui.createElementNS(sT,e):r?ui.createElement(e,{is:r}):ui.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>ui.createTextNode(e),createComment:e=>ui.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ui.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{zv.innerHTML=yb(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=zv.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Di="transition",El="animation",oa=Symbol("_vtc"),bb={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},aT=tn({},zy,bb),cT=e=>(e.displayName="Transition",e.props=aT,e),uT=cT((e,{slots:t})=>Aa(JS,fT(e),t)),ko=(e,t=[])=>{Be(e)?e.forEach(r=>r(...t)):e&&e(...t)},Iv=e=>e?Be(e)?e.some(t=>t.length>1):e.length>1:!1;function fT(e){const t={};for(const P in e)P in bb||(t[P]=e[P]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=e,C=dT(s),M=C&&C[0],A=C&&C[1],{onBeforeEnter:L,onEnter:$,onEnterCancelled:D,onLeave:E,onLeaveCancelled:I,onBeforeAppear:U=L,onAppear:ie=$,onAppearCancelled:re=D}=t,ne=(P,O,N,S)=>{P._enterCancelled=S,To(P,O?v:d),To(P,O?p:f),N&&N()},G=(P,O)=>{P._isLeaving=!1,To(P,m),To(P,x),To(P,b),O&&O()},J=P=>(O,N)=>{const S=P?ie:$,F=()=>ne(O,P,N);ko(S,[O,F]),Dv(()=>{To(O,P?h:c),li(O,P?v:d),Iv(S)||Fv(O,o,M,F)})};return tn(t,{onBeforeEnter(P){ko(L,[P]),li(P,c),li(P,f)},onBeforeAppear(P){ko(U,[P]),li(P,h),li(P,p)},onEnter:J(!1),onAppear:J(!0),onLeave(P,O){P._isLeaving=!0;const N=()=>G(P,O);li(P,m),P._enterCancelled?(li(P,b),Wv()):(Wv(),li(P,b)),Dv(()=>{P._isLeaving&&(To(P,m),li(P,x),Iv(E)||Fv(P,o,A,N))}),ko(E,[P,N])},onEnterCancelled(P){ne(P,!1,void 0,!0),ko(D,[P])},onAppearCancelled(P){ne(P,!0,void 0,!0),ko(re,[P])},onLeaveCancelled(P){G(P),ko(I,[P])}})}function dT(e){if(e==null)return null;if(St(e))return[rd(e.enter),rd(e.leave)];{const t=rd(e);return[t,t]}}function rd(e){return iy(e)}function li(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[oa]||(e[oa]=new Set)).add(t)}function To(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[oa];r&&(r.delete(t),r.size||(e[oa]=void 0))}function Dv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let hT=0;function Fv(e,t,r,o){const s=e._endId=++hT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=pT(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=x=>{x.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function pT(e,t){const r=window.getComputedStyle(e),o=C=>(r[C]||"").split(", "),s=o(`${Di}Delay`),c=o(`${Di}Duration`),f=Hv(s,c),d=o(`${El}Delay`),h=o(`${El}Duration`),p=Hv(d,h);let v=null,m=0,b=0;t===Di?f>0&&(v=Di,m=f,b=c.length):t===El?p>0&&(v=El,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Di:El:null,b=v?v===Di?c.length:h.length:0);const x=v===Di&&/\b(?:transform|all)(?:,|$)/.test(o(`${Di}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:x}}function Hv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Bv(r)+Bv(e[o])))}function Bv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Wv(){return document.body.offsetHeight}function gT(e,t,r){const o=e[oa];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const tu=Symbol("_vod"),wb=Symbol("_vsh"),Ki={name:"show",beforeMount(e,{value:t},{transition:r}){e[tu]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Al(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),Al(e,!0),o.enter(e)):o.leave(e,()=>{Al(e,!1)}):Al(e,t))},beforeUnmount(e,{value:t}){Al(e,t)}};function Al(e,t){e.style.display=t?e[tu]:"none",e[wb]=!t}const vT=Symbol(""),mT=/(?:^|;)\s*display\s*:/;function yT(e,t,r){const o=e.style,s=It(r);let c=!1;if(r&&!s){if(t)if(It(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Rc(o,d,"")}else for(const f in t)r[f]==null&&Rc(o,f,"");for(const f in r)f==="display"&&(c=!0),Rc(o,f,r[f])}else if(s){if(t!==r){const f=o[vT];f&&(r+=";"+f),o.cssText=r,c=mT.test(r)}}else t&&e.removeAttribute("style");tu in e&&(e[tu]=c?o.display:"",e[wb]&&(o.display="none"))}const qv=/\s*!important$/;function Rc(e,t,r){if(Be(r))r.forEach(o=>Rc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=bT(e,t);qv.test(r)?e.setProperty(xi(o),r.replace(qv,""),"important"):e[o]=r}}const jv=["Webkit","Moz","ms"],id={};function bT(e,t){const r=id[t];if(r)return r;let o=rr(t);if(o!=="filter"&&o in e)return id[t]=o;o=Tu(o);for(let s=0;s<jv.length;s++){const c=jv[s]+o;if(c in e)return id[t]=c}return t}const Uv="http://www.w3.org/1999/xlink";function Vv(e,t,r,o,s,c=hS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Uv,t.slice(6,t.length)):e.setAttributeNS(Uv,t,r):r==null||c&&!oy(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Mr(r)?String(r):r)}function Gv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?yb(r):r);return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){const d=c==="OPTION"?e.getAttribute("value")||"":e.value,h=r==null?e.type==="checkbox"?"on":"":String(r);(d!==h||!("_value"in e))&&(e.value=h),r==null&&e.removeAttribute(t),e._value=r;return}let f=!1;if(r===""||r==null){const d=typeof e[t];d==="boolean"?r=oy(r):r==null&&d==="string"?(r="",f=!0):d==="number"&&(r=0,f=!0)}try{e[t]=r}catch{}f&&e.removeAttribute(s||t)}function Mo(e,t,r,o){e.addEventListener(t,r,o)}function wT(e,t,r,o){e.removeEventListener(t,r,o)}const Kv=Symbol("_vei");function xT(e,t,r,o,s=null){const c=e[Kv]||(e[Kv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=_T(t);if(o){const p=c[t]=TT(o,s);Mo(e,d,p,h)}else f&&(wT(e,d,f,h),c[t]=void 0)}}const Xv=/(?:Once|Passive|Capture)$/;function _T(e){let t;if(Xv.test(e)){t={};let o;for(;o=e.match(Xv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):xi(e.slice(2)),t]}let od=0;const ST=Promise.resolve(),kT=()=>od||(ST.then(()=>od=0),od=Date.now());function TT(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;$r(CT(o,r.value),t,5,[o])};return r.value=e,r.attached=kT(),r}function CT(e,t){if(Be(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Yv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ET=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?gT(e,o,f):t==="style"?yT(e,r,o):_u(t)?wh(t)||xT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):AT(e,t,o,f))?(Gv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Vv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!It(o))?Gv(e,rr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Vv(e,t,o,f))};function AT(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Yv(t)&&Ge(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Yv(t)&&It(r)?!1:t in e}const nu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Be(t)?r=>Oc(t,r):t};function LT(e){e.target.composing=!0}function Zv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const As=Symbol("_assign"),MT={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[As]=nu(s);const c=o||s.props&&s.props.type==="number";Mo(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=Td(d)),e[As](d)}),r&&Mo(e,"change",()=>{e.value=e.value.trim()}),t||(Mo(e,"compositionstart",LT),Mo(e,"compositionend",Zv),Mo(e,"change",Zv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[As]=nu(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Td(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},xb={deep:!0,created(e,t,r){e[As]=nu(r),Mo(e,"change",()=>{const o=e._modelValue,s=$T(e),c=e.checked,f=e[As];if(Be(o)){const d=sy(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(Su(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(_b(e,c))})},mounted:Jv,beforeUpdate(e,t,r){e[As]=nu(r),Jv(e,t,r)}};function Jv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Be(t))s=sy(t,o.props.value)>-1;else if(Su(t))s=t.has(o.props.value);else{if(t===r)return;s=Eu(t,_b(e,!0))}e.checked!==s&&(e.checked=s)}function $T(e){return"_value"in e?e._value:e.value}function _b(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const NT=["ctrl","shift","alt","meta"],OT={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)=>NT.some(r=>e[`${r}Key`]&&!t.includes(r))},zc=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=((s,...c)=>{for(let f=0;f<t.length;f++){const d=OT[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},PT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Hd=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=xi(s.key);if(t.some(f=>f===c||PT[f]===c))return e(s)}))},RT=tn({patchProp:ET},lT);let Qv;function zT(){return Qv||(Qv=Ak(RT))}const Sb=((...e)=>{const t=zT().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=DT(o);if(!s)return;const c=t._component;!Ge(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,IT(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function IT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function DT(e){return It(e)?document.querySelector(e):e}const ki=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},FT={};function HT(e,t){const r=zo("RouterView");return se(),Je(r)}const BT=ki(FT,[["render",HT]]),WT=["top","right","bottom","left"],em=["start","end"],tm=WT.reduce((e,t)=>e.concat(t,t+"-"+em[0],t+"-"+em[1]),[]),sa=Math.min,Ao=Math.max,qT={left:"right",right:"left",bottom:"top",top:"bottom"},jT={start:"end",end:"start"};function Bd(e,t,r){return Ao(e,sa(t,r))}function Do(e,t){return typeof e=="function"?e(t):e}function Yr(e){return e.split("-")[0]}function Lr(e){return e.split("-")[1]}function kb(e){return e==="x"?"y":"x"}function Hh(e){return e==="y"?"height":"width"}function La(e){return["top","bottom"].includes(Yr(e))?"y":"x"}function Bh(e){return kb(La(e))}function Tb(e,t,r){r===void 0&&(r=!1);const o=Lr(e),s=Bh(e),c=Hh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=iu(f)),[f,iu(f)]}function UT(e){const t=iu(e);return[ru(e),t,ru(t)]}function ru(e){return e.replace(/start|end/g,t=>jT[t])}function VT(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function GT(e,t,r,o){const s=Lr(e);let c=VT(Yr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(ru)))),c}function iu(e){return e.replace(/left|right|bottom|top/g,t=>qT[t])}function KT(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cb(e){return typeof e!="number"?KT(e):{top:e,right:e,bottom:e,left:e}}function jl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function nm(e,t,r){let{reference:o,floating:s}=e;const c=La(t),f=Bh(t),d=Hh(f),h=Yr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let x;switch(h){case"top":x={x:v,y:o.y-s.height};break;case"bottom":x={x:v,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:m};break;case"left":x={x:o.x-s.width,y:m};break;default:x={x:o.x,y:o.y}}switch(Lr(t)){case"start":x[f]-=b*(r&&p?-1:1);break;case"end":x[f]+=b*(r&&p?-1:1);break}return x}const XT=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=nm(p,o,h),b=o,x={},C=0;for(let M=0;M<d.length;M++){const{name:A,fn:L}=d[M],{x:$,y:D,data:E,reset:I}=await L({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=$??v,m=D??m,x={...x,[A]:{...x[A],...E}},I&&C<=50&&(C++,typeof I=="object"&&(I.placement&&(b=I.placement),I.rects&&(p=I.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):I.rects),{x:v,y:m}=nm(p,b,h)),M=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:x}};async function Fu(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:x=0}=Do(t,e),C=Cb(x),A=d[b?m==="floating"?"reference":"floating":m],L=jl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(A)))==null||r?A:A.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),$=m==="floating"?{...f.floating,x:o,y:s}:f.reference,D=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),E=await(c.isElement==null?void 0:c.isElement(D))?await(c.getScale==null?void 0:c.getScale(D))||{x:1,y:1}:{x:1,y:1},I=jl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:$,offsetParent:D,strategy:h}):$);return{top:(L.top-I.top+C.top)/E.y,bottom:(I.bottom-L.bottom+C.bottom)/E.y,left:(L.left-I.left+C.left)/E.x,right:(I.right-L.right+C.right)/E.x}}const YT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=Do(e,t)||{};if(p==null)return{};const m=Cb(v),b={x:r,y:o},x=Bh(s),C=Hh(x),M=await f.getDimensions(p),A=x==="y",L=A?"top":"left",$=A?"bottom":"right",D=A?"clientHeight":"clientWidth",E=c.reference[C]+c.reference[x]-b[x]-c.floating[C],I=b[x]-c.reference[x],U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let ie=U?U[D]:0;(!ie||!await(f.isElement==null?void 0:f.isElement(U)))&&(ie=d.floating[D]||c.floating[C]);const re=E/2-I/2,ne=ie/2-M[C]/2-1,G=sa(m[L],ne),J=sa(m[$],ne),P=G,O=ie-M[C]-J,N=ie/2-M[C]/2+re,S=Bd(P,N,O),F=!h.arrow&&Lr(s)!=null&&N!==S&&c.reference[C]/2-(N<P?G:J)-M[C]/2<0,j=F?N<P?N-P:N-O:0;return{[x]:b[x]+j,data:{[x]:S,centerOffset:N-S-j,...F&&{alignmentOffset:j}},reset:F}}});function ZT(e,t,r){return(e?[...r.filter(s=>Lr(s)===e),...r.filter(s=>Lr(s)!==e)]:r.filter(s=>Yr(s)===s)).filter(s=>e?Lr(s)===e||(t?ru(s)!==s:!1):!0)}const JT=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=tm,autoAlignment:x=!0,...C}=Do(e,t),M=m!==void 0||b===tm?ZT(m||null,x,b):b,A=await Fu(t,C),L=((r=f.autoPlacement)==null?void 0:r.index)||0,$=M[L];if($==null)return{};const D=Tb($,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==$)return{reset:{placement:M[0]}};const E=[A[Yr($)],A[D[0]],A[D[1]]],I=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:$,overflows:E}],U=M[L+1];if(U)return{data:{index:L+1,overflows:I},reset:{placement:U}};const ie=I.map(G=>{const J=Lr(G.placement);return[G.placement,J&&v?G.overflows.slice(0,2).reduce((P,O)=>P+O,0):G.overflows[0],G.overflows]}).sort((G,J)=>G[1]-J[1]),ne=((s=ie.filter(G=>G[2].slice(0,Lr(G[0])?2:3).every(J=>J<=0))[0])==null?void 0:s[0])||ie[0][0];return ne!==d?{data:{index:L+1,overflows:I},reset:{placement:ne}}:{}}}},QT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:M=!0,...A}=Do(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const L=Yr(s),$=Yr(d)===d,D=await(h.isRTL==null?void 0:h.isRTL(p.floating)),E=b||($||!M?[iu(d)]:UT(d));!b&&C!=="none"&&E.push(...GT(d,M,C,D));const I=[d,...E],U=await Fu(t,A),ie=[];let re=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&ie.push(U[L]),m){const P=Tb(s,f,D);ie.push(U[P[0]],U[P[1]])}if(re=[...re,{placement:s,overflows:ie}],!ie.every(P=>P<=0)){var ne,G;const P=(((ne=c.flip)==null?void 0:ne.index)||0)+1,O=I[P];if(O)return{data:{index:P,overflows:re},reset:{placement:O}};let N=(G=re.filter(S=>S.overflows[0]<=0).sort((S,F)=>S.overflows[1]-F.overflows[1])[0])==null?void 0:G.placement;if(!N)switch(x){case"bestFit":{var J;const S=(J=re.map(F=>[F.placement,F.overflows.filter(j=>j>0).reduce((j,oe)=>j+oe,0)]).sort((F,j)=>F[1]-j[1])[0])==null?void 0:J[0];S&&(N=S);break}case"initialPlacement":N=d;break}if(s!==N)return{reset:{placement:N}}}return{}}}};async function eC(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Yr(r),d=Lr(r),h=La(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=Do(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:C}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof C=="number"&&(x=d==="end"?C*-1:C),h?{x:x*v,y:b*p}:{x:b*p,y:x*v}}const tC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await eC(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},nC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:A=>{let{x:L,y:$}=A;return{x:L,y:$}}},...h}=Do(e,t),p={x:r,y:o},v=await Fu(t,h),m=La(Yr(s)),b=kb(m);let x=p[b],C=p[m];if(c){const A=b==="y"?"top":"left",L=b==="y"?"bottom":"right",$=x+v[A],D=x-v[L];x=Bd($,x,D)}if(f){const A=m==="y"?"top":"left",L=m==="y"?"bottom":"right",$=C+v[A],D=C-v[L];C=Bd($,C,D)}const M=d.fn({...t,[b]:x,[m]:C});return{...M,data:{x:M.x-r,y:M.y-o}}}}},rC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=Do(e,t),h=await Fu(t,d),p=Yr(r),v=Lr(r),m=La(r)==="y",{width:b,height:x}=o.floating;let C,M;p==="top"||p==="bottom"?(C=p,M=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(M=p,C=v==="end"?"top":"bottom");const A=x-h[C],L=b-h[M],$=!t.middlewareData.shift;let D=A,E=L;if(m){const U=b-h.left-h.right;E=v||$?sa(L,U):U}else{const U=x-h.top-h.bottom;D=v||$?sa(A,U):U}if($&&!v){const U=Ao(h.left,0),ie=Ao(h.right,0),re=Ao(h.top,0),ne=Ao(h.bottom,0);m?E=b-2*(U!==0||ie!==0?U+ie:Ao(h.left,h.right)):D=x-2*(re!==0||ne!==0?re+ne:Ao(h.top,h.bottom))}await f({...t,availableWidth:E,availableHeight:D});const I=await s.getDimensions(c.floating);return b!==I.width||x!==I.height?{reset:{rects:!0}}:{}}}};function cr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gr(e){return cr(e).getComputedStyle(e)}const rm=Math.min,Ul=Math.max,ou=Math.round;function Eb(e){const t=Gr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=ou(r)!==s||ou(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function ro(e){return Lb(e)?(e.nodeName||"").toLowerCase():""}let bc;function Ab(){if(bc)return bc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(bc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),bc):navigator.userAgent}function Kr(e){return e instanceof cr(e).HTMLElement}function Zi(e){return e instanceof cr(e).Element}function Lb(e){return e instanceof cr(e).Node}function im(e){return typeof ShadowRoot>"u"?!1:e instanceof cr(e).ShadowRoot||e instanceof ShadowRoot}function Hu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Gr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function iC(e){return["table","td","th"].includes(ro(e))}function Wd(e){const t=/firefox/i.test(Ab()),r=Gr(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((s=>r.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const c=r.contain;return c!=null&&c.includes(s)}))}function Mb(){return!/^((?!chrome|android).)*safari/i.test(Ab())}function Wh(e){return["html","body","#document"].includes(ro(e))}function $b(e){return Zi(e)?e:e.contextElement}const Nb={x:1,y:1};function Ls(e){const t=$b(e);if(!Kr(t))return Nb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=Eb(t);let f=(c?ou(r.width):r.width)/o,d=(c?ou(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function la(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=$b(e);let h=Nb;t&&(o?Zi(o)&&(h=Ls(o)):h=Ls(e));const p=d?cr(d):window,v=!Mb()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,x=f.width/h.x,C=f.height/h.y;if(d){const M=cr(d),A=o&&Zi(o)?cr(o):o;let L=M.frameElement;for(;L&&o&&A!==M;){const $=Ls(L),D=L.getBoundingClientRect(),E=getComputedStyle(L);D.x+=(L.clientLeft+parseFloat(E.paddingLeft))*$.x,D.y+=(L.clientTop+parseFloat(E.paddingTop))*$.y,m*=$.x,b*=$.y,x*=$.x,C*=$.y,m+=D.x,b+=D.y,L=cr(L).frameElement}}return{width:x,height:C,top:b,right:m+x,bottom:b+C,left:m,x:m,y:b}}function Ji(e){return((Lb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bu(e){return Zi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ob(e){return la(Ji(e)).left+Bu(e).scrollLeft}function aa(e){if(ro(e)==="html")return e;const t=e.assignedSlot||e.parentNode||im(e)&&e.host||Ji(e);return im(t)?t.host:t}function Pb(e){const t=aa(e);return Wh(t)?t.ownerDocument.body:Kr(t)&&Hu(t)?t:Pb(t)}function su(e,t){var r;t===void 0&&(t=[]);const o=Pb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=cr(o);return s?t.concat(c,c.visualViewport||[],Hu(o)?o:[]):t.concat(o,su(o))}function om(e,t,r){return t==="viewport"?jl((function(o,s){const c=cr(o),f=Ji(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=Mb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}})(e,r)):Zi(t)?jl((function(o,s){const c=la(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Kr(o)?Ls(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}})(t,r)):jl((function(o){const s=Ji(o),c=Bu(o),f=o.ownerDocument.body,d=Ul(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Ul(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+Ob(o);const v=-c.scrollTop;return Gr(f).direction==="rtl"&&(p+=Ul(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}})(Ji(e)))}function sm(e){return Kr(e)&&Gr(e).position!=="fixed"?e.offsetParent:null}function lm(e){const t=cr(e);let r=sm(e);for(;r&&iC(r)&&Gr(r).position==="static";)r=sm(r);return r&&(ro(r)==="html"||ro(r)==="body"&&Gr(r).position==="static"&&!Wd(r))?t:r||(function(o){let s=aa(o);for(;Kr(s)&&!Wh(s);){if(Wd(s))return s;s=aa(s)}return null})(e)||t}function oC(e,t,r){const o=Kr(t),s=Ji(t),c=la(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((ro(t)!=="body"||Hu(s))&&(f=Bu(t)),Kr(t)){const h=la(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=Ob(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const sC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?(function(p,v){const m=v.get(p);if(m)return m;let b=su(p).filter((A=>Zi(A)&&ro(A)!=="body")),x=null;const C=Gr(p).position==="fixed";let M=C?aa(p):p;for(;Zi(M)&&!Wh(M);){const A=Gr(M),L=Wd(M);(C?L||x:L||A.position!=="static"||!x||!["absolute","fixed"].includes(x.position))?x=A:b=b.filter(($=>$!==M)),M=aa(M)}return v.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,v)=>{const m=om(t,v,s);return p.top=Ul(m.top,p.top),p.right=rm(m.right,p.right),p.bottom=rm(m.bottom,p.bottom),p.left=Ul(m.left,p.left),p}),om(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=Kr(r),c=Ji(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((ro(r)!=="body"||Hu(c))&&(f=Bu(r)),Kr(r))){const p=la(r);d=Ls(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:Zi,getDimensions:function(e){return Kr(e)?Eb(e):e.getBoundingClientRect()},getOffsetParent:lm,getDocumentElement:Ji,getScale:Ls,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||lm,c=this.getDimensions;return{reference:oC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Gr(e).direction==="rtl"},lC=(e,t,r)=>{const o=new Map,s={platform:sC,...r},c={...s.platform,_c:o};return XT(e,t,{...s,platform:c})},Qi={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 ca(e,t){let r=Qi.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=Qi.themes[r.$extend]||{}:(r=null,o=Qi[t]):r=null;while(r);return o}function aC(e){const t=[e];let r=Qi.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Qi.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function am(e){const t=[e];let r=Qi.themes[e]||{};do r.$extend?(t.push(r.$extend),r=Qi.themes[r.$extend]||{}):r=null;while(r);return t}let ua=!1;if(typeof window<"u"){ua=!1;try{const e=Object.defineProperty({},"passive",{get(){ua=!0}});window.addEventListener("test",null,e)}catch{}}let Rb=!1;typeof window<"u"&&typeof navigator<"u"&&(Rb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const zb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),cm={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},um={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function fm(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function sd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const er=[];let Co=null;const dm={};function hm(e){let t=dm[e];return t||(t=dm[e]=[]),t}let qd=function(){};typeof window<"u"&&(qd=window.Element);function ft(e){return function(t){return ca(t.theme,e)}}const ld="__floating-vue__popper",Ib=()=>ot({name:"VPopper",provide(){return{[ld]:{parentPopper:this}}},inject:{[ld]:{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:ft("disabled")},positioningDisabled:{type:Boolean,default:ft("positioningDisabled")},placement:{type:String,default:ft("placement"),validator:e=>zb.includes(e)},delay:{type:[String,Number,Object],default:ft("delay")},distance:{type:[Number,String],default:ft("distance")},skidding:{type:[Number,String],default:ft("skidding")},triggers:{type:Array,default:ft("triggers")},showTriggers:{type:[Array,Function],default:ft("showTriggers")},hideTriggers:{type:[Array,Function],default:ft("hideTriggers")},popperTriggers:{type:Array,default:ft("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ft("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ft("popperHideTriggers")},container:{type:[String,Object,qd,Boolean],default:ft("container")},boundary:{type:[String,qd],default:ft("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ft("strategy")},autoHide:{type:[Boolean,Function],default:ft("autoHide")},handleResize:{type:Boolean,default:ft("handleResize")},instantMove:{type:Boolean,default:ft("instantMove")},eagerMount:{type:Boolean,default:ft("eagerMount")},popperClass:{type:[String,Array,Object],default:ft("popperClass")},computeTransformOrigin:{type:Boolean,default:ft("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ft("autoMinSize")},autoSize:{type:[Boolean,String],default:ft("autoSize")},autoMaxSize:{type:Boolean,default:ft("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ft("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ft("preventOverflow")},overflowPadding:{type:[Number,String],default:ft("overflowPadding")},arrowPadding:{type:[Number,String],default:ft("arrowPadding")},arrowOverflow:{type:Boolean,default:ft("arrowOverflow")},flip:{type:Boolean,default:ft("flip")},shift:{type:Boolean,default:ft("shift")},shiftCrossAxis:{type:Boolean,default:ft("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ft("noAutoFocus")},disposeTimeout:{type:Number,default:ft("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[ld])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(tC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(JT({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(nC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(QT({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(YT({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(rC({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await lC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Co&&this.instantMove&&Co.instantMove&&Co!==this.parentPopper){Co.$_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&&(Co=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 sd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...su(this.$_referenceNode),...su(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<er.length;r++)t=er[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}er.push(this),document.body.classList.add("v-popper--some-open");for(const t of am(this.theme))hm(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 sd(),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,fm(er,this),er.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of am(this.theme)){const o=hm(r);fm(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Co===this&&(Co=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const 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 sd(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,cm,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],cm,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,um,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],um,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,ua?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Vl>=e.left&&Vl<=e.right&&Gl>=e.top&&Gl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=Vl-Bi,o=Gl-Wi,s=t.left+t.width/2-Bi+(t.top+t.height/2)-Wi+t.width+t.height,c=Bi+r*s,f=Wi+o*s;return wc(Bi,Wi,c,f,t.left,t.top,t.left,t.bottom)||wc(Bi,Wi,c,f,t.left,t.top,t.right,t.top)||wc(Bi,Wi,c,f,t.right,t.top,t.right,t.bottom)||wc(Bi,Wi,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Rb){const e=ua?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>pm(t),e),document.addEventListener("touchend",t=>gm(t,!0),e)}else window.addEventListener("mousedown",e=>pm(e),!0),window.addEventListener("click",e=>gm(e,!1),!0);window.addEventListener("resize",fC)}function pm(e,t){for(let r=0;r<er.length;r++){const o=er[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function gm(e,t){cC(e,t)}function cC(e,t){const r={};for(let o=er.length-1;o>=0;o--){const s=er[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&vm(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&vm(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function vm(e,t,r){return r.closeAllPopover||r.closePopover&&t||uC(e,r)&&!t}function uC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function fC(){for(let e=0;e<er.length;e++)er[e].$_computePosition()}function mm(){for(let e=0;e<er.length;e++)er[e].hide()}let Bi=0,Wi=0,Vl=0,Gl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Bi=Vl,Wi=Gl,Vl=e.clientX,Gl=e.clientY},ua?{passive:!0}:void 0);function wc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const dC={extends:Ib()},Wu=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function hC(e,t,r,o,s,c){return se(),ye("div",{ref:"reference",class:st(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[wn(e.$slots,"default",fS(pb(e.slotData)))],2)}const pC=Wu(dC,[["render",hC]]);function gC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Ic;function jd(){jd.init||(jd.init=!0,Ic=gC()!==-1)}var qu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){jd(),Ct(()=>{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",Ic&&this.$el.appendChild(e),e.data="about:blank",Ic||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&&(!Ic&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const vC=Py();Ny("data-v-b329ee4c");const mC={class:"resize-observer",tabindex:"-1"};Oy();const yC=vC((e,t,r,o,s,c)=>(se(),Je("div",mC)));qu.render=yC;qu.__scopeId="data-v-b329ee4c";qu.__file="src/components/ResizeObserver.vue";const Db=(e="theme")=>({computed:{themeClass(){return aC(this[e])}}}),bC=ot({name:"VPopperContent",components:{ResizeObserver:qu},mixins:[Db()],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}}}),wC=["id","aria-hidden","tabindex","data-popper-placement"],xC={ref:"inner",class:"v-popper__inner"},_C=Q("div",{class:"v-popper__arrow-outer"},null,-1),SC=Q("div",{class:"v-popper__arrow-inner"},null,-1),kC=[_C,SC];function TC(e,t,r,o,s,c){const f=zo("ResizeObserver");return se(),ye("div",{id:e.popperId,ref:"popover",class:st(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Qt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Hd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[Q("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),Q("div",{class:"v-popper__wrapper",style:Qt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Q("div",xC,[e.mounted?(se(),ye(nt,{key:0},[Q("div",null,[wn(e.$slots,"default")]),e.handleResize?(se(),Je(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):qe("",!0)],64)):qe("",!0)],512),Q("div",{ref:"arrow",class:"v-popper__arrow-container",style:Qt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},kC,4)],4)],46,wC)}const Fb=Wu(bC,[["render",TC]]),Hb={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 Ud=function(){};typeof window<"u"&&(Ud=window.Element);const CC=ot({name:"VPopperWrapper",components:{Popper:pC,PopperContent:Fb},mixins:[Hb,Db("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,Ud,Boolean],default:void 0},boundary:{type:[String,Ud],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 EC(e,t,r,o,s,c){const f=zo("PopperContent"),d=zo("Popper");return se(),Je(d,vi({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:x,hide:C,handleResize:M,onResize:A,classes:L,result:$})=>[wn(e.$slots,"default",{shown:p,show:x,hide:C}),Oe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":M,classes:L,result:$,onHide:C,onResize:A},{default:it(()=>[wn(e.$slots,"popper",{shown:p,hide:C})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const qh=Wu(CC,[["render",EC]]);({...qh});({...qh});const AC={...qh,name:"VTooltip",vPopperTheme:"tooltip"},LC=ot({name:"VTooltipDirective",components:{Popper:Ib(),PopperContent:Fb},mixins:[Hb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ca(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ca(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),MC=["innerHTML"],$C=["textContent"];function NC(e,t,r,o,s,c){const f=zo("PopperContent"),d=zo("Popper");return se(),Je(d,vi({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:it(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:x,handleResize:C,onResize:M,classes:A,result:L})=>[Oe(f,{ref:"popperContent",class:st({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":C,classes:A,result:L,onHide:x,onResize:M},{default:it(()=>[e.html?(se(),ye("div",{key:0,innerHTML:e.finalContent},null,8,MC)):(se(),ye("div",{key:1,textContent:ze(e.finalContent)},null,8,$C))]),_: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 OC=Wu(LC,[["render",NC]]),Bb="v-popper--has-tooltip";function PC(e,t){let r=e.placement;if(!r&&t)for(const o of zb)t[o]&&(r=o);return r||(r=ca(e.theme||"tooltip","placement")),r}function Wb(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=PC(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let ad,fa,RC=0;function zC(){if(ad)return;fa=Ue([]),ad=Sb({name:"VTooltipDirectiveApp",setup(){return{directives:fa}},render(){return this.directives.map(t=>Aa(OC,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),ad.mount(e)}function qb(e,t,r){zC();const o=Ue(Wb(e,t,r)),s=Ue(!1),c={id:RC++,options:o,shown:s};return fa.value.push(c),e.classList&&e.classList.add(Bb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function jh(e){if(e.$_popper){const t=fa.value.indexOf(e.$_popper.item);t!==-1&&fa.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Bb)}function ym(e,{value:t,modifiers:r}){const o=Wb(e,t,r);if(!o.content||ca(o.theme||"tooltip","disabled"))jh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=qb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const IC={beforeMount:ym,updated:ym,beforeUnmount(e){jh(e)}},DC=IC,jb=AC,Ub={options:Qi};function Uh(e){return cy()?(vS(e),!0):!1}const cd=new WeakMap,FC=(...e)=>{var t;const r=e[0],o=(t=Si())==null?void 0:t.proxy;if(o==null&&!Xy())throw new Error("injectLocal must be called in setup");return o&&cd.has(o)&&r in cd.get(o)?cd.get(o)[r]:yn(...e)},HC=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const BC=Object.prototype.toString,WC=e=>BC.call(e)==="[object Object]",lu=()=>{};function Vb(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const Gb=e=>e();function Kb(e,t={}){let r,o,s=lu;const c=h=>{clearTimeout(h),s(),s=lu};let f;return h=>{const p=Ut(e),v=Ut(t.maxWait);return r&&c(r),p<=0||v!==void 0&&v<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((m,b)=>{s=t.rejectOnCancel?b:m,f=h,v&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,m(f())},v)),r=setTimeout(()=>{o&&c(o),o=null,m(h())},p)})}}function qC(e=Gb,t={}){const{initialState:r="active"}=t,o=Fo(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:Sa(o),pause:s,resume:c,eventFilter:f}}function bm(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function wm(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function jC(e){return Si()}function ud(e){return Array.isArray(e)?e:[e]}function Fo(...e){if(e.length!==1)return WS(...e);const t=e[0];return typeof t=="function"?Sa(Cy(()=>({get:t,set:lu}))):Ue(t)}function xc(e,t=200,r={}){return Vb(Kb(t,r),e)}function Xb(e,t,r={}){const{eventFilter:o=Gb,...s}=r;return _t(e,Vb(o,t),s)}function Yb(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=qC(o,{initialState:s});return{stop:Xb(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Vh(e,t=!0,r){jC()?ao(e,r):t?e():Ct(e)}function Vd(e,t=!1){function r(m,{flush:b="sync",deep:x=!1,timeout:C,throwOnTimeout:M}={}){let A=null;const $=[new Promise(D=>{A=_t(e,E=>{m(E)!==t&&(A?A():Ct(()=>A?.()),D(E))},{flush:b,deep:x,immediate:!0})})];return C!=null&&$.push(bm(C,M).then(()=>Ut(e)).finally(()=>A?.())),Promise.race($)}function o(m,b){if(!Nt(m))return r(E=>E===m,b);const{flush:x="sync",deep:C=!1,timeout:M,throwOnTimeout:A}=b??{};let L=null;const D=[new Promise(E=>{L=_t([e,m],([I,U])=>{t!==(I===U)&&(L?L():Ct(()=>L?.()),E(I))},{flush:x,deep:C,immediate:!0})})];return M!=null&&D.push(bm(M,A).then(()=>Ut(e)).finally(()=>(L?.(),Ut(e)))),Promise.race(D)}function s(m){return r(b=>!!b,m)}function c(m){return o(null,m)}function f(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,b){return r(x=>{const C=Array.from(x);return C.includes(m)||C.includes(Ut(m))},b)}function p(m){return v(1,m)}function v(m=1,b){let x=-1;return r(()=>(x+=1,x>=m),b)}return Array.isArray(Ut(e))?{toMatch:r,toContains:h,changed:p,changedTimes:v,get not(){return Vd(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return Vd(e,!t)}}}function xm(e){return Vd(e)}function UC(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Nt(e),c=en(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Ut(r);return c.value=c.value===h?Ut(o):h,c.value}}return s?f:[c,f]}function Gh(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Xb(e,t,{...c,eventFilter:Kb(o,{maxWait:s})})}function VC(e,t,r){return _t(e,t,{...r,immediate:!0})}function GC(e,t,r){const o=_t(e,(...s)=>(Ct(()=>o()),t(...s)),r);return o}function KC(e,t,r){let o;Nt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=lu}=o,h=en(!s),p=f?en(t):Ue(t);let v=0;return zh(async m=>{if(!h.value)return;v++;const b=v;let x=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const C=await e(M=>{m(()=>{c&&(c.value=!1),x||M()})});b===v&&(p.value=C)}catch(C){d(C)}finally{c&&b===v&&(c.value=!1),x=!0}}),s?_e(()=>(h.value=!0,p.value)):p}const Nr=HC?window:void 0;function au(e){var t;const r=Ut(e);return(t=r?.$el)!=null?t:r}function io(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,v)=>(d.addEventListener(h,p,v),()=>d.removeEventListener(h,p,v)),s=_e(()=>{const d=ud(Ut(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=VC(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>au(p)))!=null?h:[Nr].filter(p=>p!=null),ud(Ut(s.value?e[1]:e[0])),ud(Z(s.value?e[2]:e[1])),Ut(s.value?e[3]:e[2])]},([d,h,p,v])=>{if(r(),!d?.length||!h?.length||!p?.length)return;const m=WC(v)?{...v}:v;t.push(...d.flatMap(b=>h.flatMap(x=>p.map(C=>o(b,x,C,m)))))},{flush:"post"}),f=()=>{c(),r()};return Uh(r),f}function XC(){const e=en(!1),t=Si();return t&&ao(()=>{e.value=!0},t),e}function Zb(e){const t=XC();return _e(()=>(t.value,!!e()))}function YC(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Jb(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Nr,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=YC(t);return io(s,c,v=>{v.repeat&&Ut(d)||h(v)&&r(v)},f)}function ZC(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Nr,once:c=!1}=t,f=en(!1),d=_e(()=>o?1e3/Ut(o):null);let h=0,p=null;function v(x){if(!f.value||!s)return;h||(h=x);const C=x-h;if(d.value&&C<d.value){p=s.requestAnimationFrame(v);return}if(h=x,e({delta:C,timestamp:x}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(v)}function m(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(v))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&m(),Uh(b),{isActive:Sa(f),pause:b,resume:m}}const JC=Symbol("vueuse-ssr-width");function QC(){const e=Xy()?FC(JC,null):null;return typeof e=="number"?e:void 0}function Qb(e,t={}){const{window:r=Nr,ssrWidth:o=QC()}=t,s=Zb(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=en(typeof o=="number"),f=en(),d=en(!1),h=p=>{d.value=p.matches};return zh(()=>{if(c.value){c.value=!s.value;const p=Ut(e).split(",");d.value=p.some(v=>{const m=v.includes("not all"),b=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),x=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let C=!!(b||x);return b&&C&&(C=o>=wm(b[1])),x&&C&&(C=o<=wm(x[1])),m?!C:C});return}s.value&&(f.value=r.matchMedia(Ut(e)),d.value=f.value.matches)}),io(f,"change",h,{passive:!0}),_e(()=>d.value)}const _c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sc="__vueuse_ssr_handlers__",eE=tE();function tE(){return Sc in _c||(_c[Sc]=_c[Sc]||{}),_c[Sc]}function ew(e,t){return eE[e]||t}function nE(e){return Qb("(prefers-color-scheme: dark)",e)}function rE(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 iE={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()}},_m="vueuse-storage";function tw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=Nr,eventFilter:b,onError:x=J=>{console.error(J)},initOnMounted:C}=o,M=(v?en:Ue)(typeof t=="function"?t():t),A=_e(()=>Ut(e));if(!r)try{r=ew("getDefaultStorage",()=>{var J;return(J=Nr)==null?void 0:J.localStorage})()}catch(J){x(J)}if(!r)return M;const L=Ut(t),$=rE(L),D=(s=o.serializer)!=null?s:iE[$],{pause:E,resume:I}=Yb(M,()=>ie(M.value),{flush:c,deep:f,eventFilter:b});_t(A,()=>ne(),{flush:c}),m&&d&&Vh(()=>{r instanceof Storage?io(m,"storage",ne,{passive:!0}):io(m,_m,G),C&&ne()}),C||ne();function U(J,P){if(m){const O={key:A.value,oldValue:J,newValue:P,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",O):new CustomEvent(_m,{detail:O}))}}function ie(J){try{const P=r.getItem(A.value);if(J==null)U(P,null),r.removeItem(A.value);else{const O=D.write(J);P!==O&&(r.setItem(A.value,O),U(P,O))}}catch(P){x(P)}}function re(J){const P=J?J.newValue:r.getItem(A.value);if(P==null)return h&&L!=null&&r.setItem(A.value,D.write(L)),L;if(!J&&p){const O=D.read(P);return typeof p=="function"?p(O,L):$==="object"&&!Array.isArray(O)?{...L,...O}:O}else return typeof P!="string"?P:D.read(P)}function ne(J){if(!(J&&J.storageArea!==r)){if(J&&J.key==null){M.value=L;return}if(!(J&&J.key!==A.value)){E();try{J?.newValue!==D.write(M.value)&&(M.value=re(J))}catch(P){x(P)}finally{J?Ct(I):I()}}}}function G(J){ne(J.detail)}return M}const oE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function sE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Nr,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=nE({window:s}),x=_e(()=>b.value?"dark":"light"),C=h||(f==null?Fo(o):tw(f,o,c,{window:s,listenToStorageChanges:d})),M=_e(()=>C.value==="auto"?x.value:C.value),A=ew("updateHTMLAttrs",(E,I,U)=>{const ie=typeof E=="string"?s?.document.querySelector(E):au(E);if(!ie)return;const re=new Set,ne=new Set;let G=null;if(I==="class"){const P=U.split(/\s/g);Object.values(m).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{P.includes(O)?re.add(O):ne.add(O)})}else G={key:I,value:U};if(re.size===0&&ne.size===0&&G===null)return;let J;v&&(J=s.document.createElement("style"),J.appendChild(document.createTextNode(oE)),s.document.head.appendChild(J));for(const P of re)ie.classList.add(P);for(const P of ne)ie.classList.remove(P);G&&ie.setAttribute(G.key,G.value),v&&(s.getComputedStyle(J).opacity,document.head.removeChild(J))});function L(E){var I;A(t,r,(I=m[E])!=null?I:E)}function $(E){e.onChanged?e.onChanged(E,L):L(E)}_t(M,$,{flush:"post",immediate:!0}),Vh(()=>$(M.value));const D=_e({get(){return p?C.value:M.value},set(E){C.value=E}});return Object.assign(D,{store:C,system:x,state:M})}function lE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=sE({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=_e(()=>o.system.value);return _e({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function nw(e,t,r={}){const{window:o=Nr,...s}=r;let c;const f=Zb(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=_e(()=>{const m=Ut(e);return Array.isArray(m)?m.map(b=>au(b)):[au(m)]}),p=_t(h,m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of m)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Uh(v),{isSupported:f,stop:v}}function ju(e,t,r={}){const{window:o=Nr}=r;return tw(e,t,o?.localStorage,r)}function aE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Nr}=t;if(!d)return nr(r);const h=nr({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const D=d.location.hash||"",E=D.indexOf("?");return E>0?D.slice(E):""}else return(d.location.hash||"").replace(/^#/,"")}function v(D){const E=D.toString();if(e==="history")return`${E?`?${E}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${E?`#${E}`:""}`;const I=d.location.hash||"#",U=I.indexOf("?");return U>0?`${d.location.search||""}${I.slice(0,U)}${E?`?${E}`:""}`:`${d.location.search||""}${I}${E?`?${E}`:""}`}function m(){return new URLSearchParams(p())}function b(D){const E=new Set(Object.keys(h));for(const I of D.keys()){const U=D.getAll(I);h[I]=U.length>1?U:D.get(I)||"",E.delete(I)}Array.from(E).forEach(I=>delete h[I])}const{pause:x,resume:C}=Yb(h,()=>{const D=new URLSearchParams("");Object.keys(h).forEach(E=>{const I=h[E];Array.isArray(I)?I.forEach(U=>D.append(E,U)):o&&I==null||s&&!I?D.delete(E):D.set(E,I)}),M(D,!1)},{deep:!0});function M(D,E){x(),E&&b(D),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(D)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(D)),C()}function A(){c&&M(m(),!0)}const L={passive:!0};io(d,"popstate",A,L),e!=="history"&&io(d,"hashchange",A,L);const $=m();return $.keys().next().value?b($):Object.assign(h,r),h}function rw(e={}){const{window:t=Nr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=en(r),h=en(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:m,height:b,scale:x}=t.visualViewport;d.value=Math.round(m*x),h.value=Math.round(b*x)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Vh(p);const v={passive:!0};if(io("resize",p,v),t&&f==="visual"&&t.visualViewport&&io(t.visualViewport,"resize",p,v),s){const m=Qb("(orientation: portrait)");_t(m,()=>p())}return{width:d,height:h}}const Sm={__name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],setup(e,{emit:t}){const r=t,o=e,s=hk(),c=Ue([]),f=_e(()=>c.value.reduce((te,H)=>(te[~~H.id]=H)&&te,{})),d=_e(()=>c.value.length),h=Ue(null),p=Ue(!1),v=Ue({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),m=Ue({splitter:null,timeoutId:null}),b=_e(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":v.value.dragging})),x=()=>{document.addEventListener("mousemove",A,{passive:!1}),document.addEventListener("mouseup",L),"ontouchstart"in window&&(document.addEventListener("touchmove",A,{passive:!1}),document.addEventListener("touchend",L))},C=()=>{document.removeEventListener("mousemove",A,{passive:!1}),document.removeEventListener("mouseup",L),"ontouchstart"in window&&(document.removeEventListener("touchmove",A,{passive:!1}),document.removeEventListener("touchend",L))},M=(te,H)=>{const Y=te.target.closest(".splitpanes__splitter");if(Y){const{left:V,top:ae}=Y.getBoundingClientRect(),{clientX:pe,clientY:R}="ontouchstart"in window&&te.touches?te.touches[0]:te;v.value.cursorOffset=o.horizontal?R-ae:pe-V}x(),v.value.mouseDown=!0,v.value.activeSplitter=H},A=te=>{v.value.mouseDown&&(te.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{ie(I(te)),r("resize",c.value.map(H=>({min:H.min,max:H.max,size:H.size})))}))},L=()=>{v.value.dragging&&r("resized",c.value.map(te=>({min:te.min,max:te.max,size:te.size}))),v.value.mouseDown=!1,setTimeout(()=>{v.value.dragging=!1,C()},100)},$=(te,H)=>{"ontouchstart"in window&&(te.preventDefault(),o.dblClickSplitter&&(m.value.splitter===H?(clearTimeout(m.value.timeoutId),m.value.timeoutId=null,D(te,H),m.value.splitter=null):(m.value.splitter=H,m.value.timeoutId=setTimeout(()=>m.value.splitter=null,500)))),v.value.dragging||r("splitter-click",c.value[H])},D=(te,H)=>{let Y=0;c.value=c.value.map((V,ae)=>(V.size=ae===H?V.max:V.min,ae!==H&&(Y+=V.min),V)),c.value[H].size-=Y,r("pane-maximize",c.value[H]),r("resized",c.value.map(V=>({min:V.min,max:V.max,size:V.size})))},E=(te,H)=>{r("pane-click",f.value[H])},I=te=>{const H=h.value.getBoundingClientRect(),{clientX:Y,clientY:V}="ontouchstart"in window&&te.touches?te.touches[0]:te;return{x:Y-(o.horizontal?0:v.value.cursorOffset)-H.left,y:V-(o.horizontal?v.value.cursorOffset:0)-H.top}},U=te=>{te=te[o.horizontal?"y":"x"];const H=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(te=H-te),te*100/H},ie=te=>{const H=v.value.activeSplitter;let Y={prevPanesSize:ne(H),nextPanesSize:G(H),prevReachedMinPanes:0,nextReachedMinPanes:0};const V=0+(o.pushOtherPanes?0:Y.prevPanesSize),ae=100-(o.pushOtherPanes?0:Y.nextPanesSize),pe=Math.max(Math.min(U(te),ae),V);let R=[H,H+1],q=c.value[R[0]]||null,K=c.value[R[1]]||null;const ue=q.max<100&&pe>=q.max+Y.prevPanesSize,he=K.max<100&&pe<=100-(K.max+G(H+1));if(ue||he){ue?(q.size=q.max,K.size=Math.max(100-q.max-Y.prevPanesSize-Y.nextPanesSize,0)):(q.size=Math.max(100-K.max-Y.prevPanesSize-G(H+1),0),K.size=K.max);return}if(o.pushOtherPanes){const fe=re(Y,pe);if(!fe)return;({sums:Y,panesToResize:R}=fe),q=c.value[R[0]]||null,K=c.value[R[1]]||null}q!==null&&(q.size=Math.min(Math.max(pe-Y.prevPanesSize-Y.prevReachedMinPanes,q.min),q.max)),K!==null&&(K.size=Math.min(Math.max(100-pe-Y.nextPanesSize-Y.nextReachedMinPanes,K.min),K.max))},re=(te,H)=>{const Y=v.value.activeSplitter,V=[Y,Y+1];return H<te.prevPanesSize+c.value[V[0]].min&&(V[0]=J(Y).index,te.prevReachedMinPanes=0,V[0]<Y&&c.value.forEach((ae,pe)=>{pe>V[0]&&pe<=Y&&(ae.size=ae.min,te.prevReachedMinPanes+=ae.min)}),te.prevPanesSize=ne(V[0]),V[0]===void 0)?(te.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ae,pe)=>{pe>0&&pe<=Y&&(ae.size=ae.min,te.prevReachedMinPanes+=ae.min)}),c.value[V[1]].size=100-te.prevReachedMinPanes-c.value[0].min-te.prevPanesSize-te.nextPanesSize,null):H>100-te.nextPanesSize-c.value[V[1]].min&&(V[1]=P(Y).index,te.nextReachedMinPanes=0,V[1]>Y+1&&c.value.forEach((ae,pe)=>{pe>Y&&pe<V[1]&&(ae.size=ae.min,te.nextReachedMinPanes+=ae.min)}),te.nextPanesSize=G(V[1]-1),V[1]===void 0)?(te.nextReachedMinPanes=0,c.value.forEach((ae,pe)=>{pe<d.value-1&&pe>=Y+1&&(ae.size=ae.min,te.nextReachedMinPanes+=ae.min)}),c.value[V[0]].size=100-te.prevPanesSize-G(V[0]-1),null):{sums:te,panesToResize:V}},ne=te=>c.value.reduce((H,Y,V)=>H+(V<te?Y.size:0),0),G=te=>c.value.reduce((H,Y,V)=>H+(V>te+1?Y.size:0),0),J=te=>[...c.value].reverse().find(H=>H.index<te&&H.size>H.min)||{},P=te=>c.value.find(H=>H.index>te+1&&H.size>H.min)||{},O=()=>{var te;Array.from(((te=h.value)==null?void 0:te.children)||[]).forEach(H=>{const Y=H.classList.contains("splitpanes__pane"),V=H.classList.contains("splitpanes__splitter");!Y&&!V&&(H.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},N=(te,H,Y=!1)=>{const V=te-1,ae=document.createElement("div");ae.classList.add("splitpanes__splitter"),Y||(ae.onmousedown=pe=>M(pe,V),typeof window<"u"&&"ontouchstart"in window&&(ae.ontouchstart=pe=>M(pe,V)),ae.onclick=pe=>$(pe,V+1)),o.dblClickSplitter&&(ae.ondblclick=pe=>D(pe,V+1)),H.parentNode.insertBefore(ae,H)},S=te=>{te.onmousedown=void 0,te.onclick=void 0,te.ondblclick=void 0,te.remove()},F=()=>{var te;const H=Array.from(((te=h.value)==null?void 0:te.children)||[]);H.forEach(V=>{V.className.includes("splitpanes__splitter")&&S(V)});let Y=0;H.forEach(V=>{V.className.includes("splitpanes__pane")&&(!Y&&o.firstSplitter?N(Y,V,!0):Y&&N(Y,V),Y++)})},j=({uid:te,...H})=>{const Y=f.value[te];Object.entries(H).forEach(([V,ae])=>Y[V]=ae)},oe=te=>{var H;let Y=-1;Array.from(((H=h.value)==null?void 0:H.children)||[]).some(V=>(V.className.includes("splitpanes__pane")&&Y++,V.isSameNode(te.el))),c.value.splice(Y,0,{...te,index:Y}),c.value.forEach((V,ae)=>V.index=ae),p.value&&Ct(()=>{F(),Se({addedPane:c.value[Y]}),r("pane-add",{index:Y,panes:c.value.map(V=>({min:V.min,max:V.max,size:V.size}))})})},me=te=>{const H=c.value.findIndex(V=>V.id===te),Y=c.value.splice(H,1)[0];c.value.forEach((V,ae)=>V.index=ae),Ct(()=>{F(),Se({removedPane:{...Y}}),r("pane-remove",{removed:Y,panes:c.value.map(V=>({min:V.min,max:V.max,size:V.size}))})})},Se=(te={})=>{!te.addedPane&&!te.removedPane?je():c.value.some(H=>H.givenSize!==null||H.min||H.max<100)?Qe(te):Re(),p.value&&r("resized",c.value.map(H=>({min:H.min,max:H.max,size:H.size})))},Re=()=>{const te=100/d.value;let H=0;const Y=[],V=[];c.value.forEach(ae=>{ae.size=Math.max(Math.min(te,ae.max),ae.min),H-=ae.size,ae.size>=ae.max&&Y.push(ae.id),ae.size<=ae.min&&V.push(ae.id)}),H>.1&&Xe(H,Y,V)},je=()=>{let te=100;const H=[],Y=[];let V=0;c.value.forEach(pe=>{te-=pe.size,pe.givenSize!==null&&V++,pe.size>=pe.max&&H.push(pe.id),pe.size<=pe.min&&Y.push(pe.id)});let ae=100;te>.1&&(c.value.forEach(pe=>{pe.givenSize===null&&(pe.size=Math.max(Math.min(te/(d.value-V),pe.max),pe.min)),ae-=pe.size}),ae>.1&&Xe(ae,H,Y))},Qe=({addedPane:te,removedPane:H}={})=>{let Y=100/d.value,V=0;const ae=[],pe=[];(te?.givenSize??null)!==null&&(Y=(100-te.givenSize)/(d.value-1).value),c.value.forEach(R=>{V-=R.size,R.size>=R.max&&ae.push(R.id),R.size<=R.min&&pe.push(R.id)}),!(Math.abs(V)<.1)&&(c.value.forEach(R=>{te?.givenSize!==null&&te?.id===R.id||(R.size=Math.max(Math.min(Y,R.max),R.min)),V-=R.size,R.size>=R.max&&ae.push(R.id),R.size<=R.min&&pe.push(R.id)}),V>.1&&Xe(V,ae,pe))},Xe=(te,H,Y)=>{let V;te>0?V=te/(d.value-H.length):V=te/(d.value-Y.length),c.value.forEach((ae,pe)=>{if(te>0&&!H.includes(ae.id)){const R=Math.max(Math.min(ae.size+V,ae.max),ae.min),q=R-ae.size;te-=q,ae.size=R}else if(!Y.includes(ae.id)){const R=Math.max(Math.min(ae.size+V,ae.max),ae.min),q=R-ae.size;te-=q,ae.size=R}}),Math.abs(te)>.1&&Ct(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};_t(()=>o.firstSplitter,()=>F()),_t(()=>o.dblClickSplitter,te=>{[...h.value.querySelectorAll(".splitpanes__splitter")].forEach((H,Y)=>{H.ondblclick=te?V=>D(V,Y):void 0})}),Ca(()=>p.value=!1),ao(()=>{O(),F(),Se(),r("ready"),p.value=!0});const Ye=()=>{var te;return Aa("div",{ref:h,class:b.value},(te=s.default)==null?void 0:te.call(s))};return Tr("panes",c),Tr("indexedPanes",f),Tr("horizontal",_e(()=>o.horizontal)),Tr("requestUpdate",j),Tr("onPaneAdd",oe),Tr("onPaneRemove",me),Tr("onPaneClick",E),(te,H)=>(se(),Je($d(Ye)))}},kc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=yn("requestUpdate"),s=yn("onPaneAdd"),c=yn("horizontal"),f=yn("onPaneRemove"),d=yn("onPaneClick"),h=(t=Si())==null?void 0:t.uid,p=yn("indexedPanes"),v=_e(()=>p.value[h]),m=Ue(null),b=_e(()=>{const A=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(A,C.value),x.value)}),x=_e(()=>{const A=parseFloat(r.minSize);return isNaN(A)?0:A}),C=_e(()=>{const A=parseFloat(r.maxSize);return isNaN(A)?100:A}),M=_e(()=>{var A;return`${c.value?"height":"width"}: ${(A=v.value)==null?void 0:A.size}%`});return ao(()=>{s({id:h,el:m.value,min:x.value,max:C.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),_t(()=>b.value,A=>o({uid:h,size:A})),_t(()=>x.value,A=>o({uid:h,min:A})),_t(()=>C.value,A=>o({uid:h,max:A})),Ca(()=>f(h)),(A,L)=>(se(),ye("div",{ref_key:"paneEl",ref:m,class:"splitpanes__pane",onClick:L[0]||(L[0]=$=>Z(d)($,A._.uid)),style:Qt(M.value)},[wn(A.$slots,"default")],4))}},Qn=Ue([414,896]);function iw(e){return e!=null}function Kh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const cE=/^[A-Za-z]:\//;function uE(e=""){return e&&e.replace(/\\/g,"/").replace(cE,t=>t.toUpperCase())}const fE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function dE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const ow=function(...e){e=e.map(o=>uE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:dE();!s||s.length===0||(t=`${s}/${t}`,r=km(s))}return t=hE(t,!r),r&&!km(t)?`/${t}`:t.length>0?t:"."};function hE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const km=function(e){return fE.test(e)};var pE=44,Tm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gE=new Uint8Array(64),sw=new Uint8Array(128);for(let e=0;e<Tm.length;e++){const t=Tm.charCodeAt(e);gE[e]=t,sw[t]=e}function Ll(e,t){let r=0,o=0,s=0;do{const f=e.next();s=sw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function Cm(e,t){return e.pos>=t?!1:e.peek()!==pE}var vE=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,o=t.indexOf(e,r);return o===-1?t.length:o}};function mE(e){const{length:t}=e,r=new vE(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let x;s=Ll(r,s),s<b&&(m=!1),b=s,Cm(r,p)?(c=Ll(r,c),f=Ll(r,f),d=Ll(r,d),Cm(r,p)?(h=Ll(r,h),x=[s,c,f,d,h]):x=[s,c,f,d]):x=[s],v.push(x),r.pos++}m||yE(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function yE(e){e.sort(bE)}function bE(e,t){return e[0]-t[0]}var Uu=0,wE=1,xE=2,_E=3,SE=4,cu=!1;function kE(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][Uu]-t;if(c===0)return cu=!0,s;c<0?r=s+1:o=s-1}return cu=!1,r-1}function TE(e,t,r){for(let o=r+1;o<e.length&&e[o][Uu]===t;r=o++);return r}function CE(e,t,r){for(let o=r-1;o>=0&&e[o][Uu]===t;r=o--);return r}function EE(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return cu=f!==-1&&e[f][Uu]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=kE(e,t,d,h)}var AE="`line` must be greater than 0 (lines start at line 1)",LE="`column` must be greater than or equal to 0 (columns start at column 0)",Em=-1,ME=1;function $E(e){var t;return(t=e)._decoded||(t._decoded=mE(e._encoded))}function NE(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(AE);if(o<0)throw new Error(LE);const c=$E(e);if(r>=c.length)return Tc(null,null,null,null);const f=c[r],d=OE(f,e._decodedMemo,r,o,s||ME);if(d===-1)return Tc(null,null,null,null);const h=f[d];if(h.length===1)return Tc(null,null,null,null);const{names:p,resolvedSources:v}=e;return Tc(v[h[wE]],h[xE]+1,h[_E],h.length===5?p[h[SE]]:null)}function Tc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function OE(e,t,r,o,s){let c=EE(e,o,t,r);return cu?c=(s===Em?TE:CE)(e,o,c):s===Em&&c++,c===-1||c===e.length?-1:c}const lw=/^\s*at .*(?:\S:\d+|\(native\))/m,PE=/^(?:eval@)?(?:\[native code\])?$/,RE=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function aw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function zE(e){let t=e.trim();if(PE.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let r=-1,o="",s;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){r=h,o=p,s=h>0?t.slice(0,h):void 0;break}}if(r===-1||!o.includes(":")||o.length<3)return null;const[c,f,d]=aw(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function IE(e){let t=e.trim();if(!lw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=aw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:ow(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function DE(e,t={}){const{ignoreStackEntries:r=RE}=t;return(lw.test(e)?HE(e):FE(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return Am(r,s.file)?null:s;const d=new BE(f,s.file),h=qE(d,s);if(!h)return s;const{line:p,column:v,source:m,name:b}=h;let x=m||s.file;return x.match(/\/\w:\//)&&(x=x.slice(1)),Am(r,x)?null:p!=null&&v!=null?{line:p,column:v,file:x,method:b||s.method}:s}).filter(s=>s!=null)}function Am(e,t){return e.some(r=>t.match(r))}function FE(e){return e.split(`
|
|
18
|
+
`).map(t=>zE(t)).filter(iw)}function HE(e){return e.split(`
|
|
19
|
+
`).map(t=>IE(t)).filter(iw)}class BE{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,r){this.map=t;const{mappings:o,names:s,sources:c}=t;this.version=t.version,this.names=s||[],this._encoded=o||"",this._decodedMemo=WE(),this.url=r,this.resolvedSources=(c||[]).map(f=>ow(f||"",r))}}function WE(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function qE(e,t){const r=NE(e,t);return r.column==null?null:r}const jE=/^[A-Za-z]:\//;function UE(e=""){return e&&e.replace(/\\/g,"/").replace(jE,t=>t.toUpperCase())}const VE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Lm=/^\/([A-Za-z]:)?$/;function GE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const Mm=function(...e){e=e.map(o=>UE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:GE();!s||s.length===0||(t=`${s}/${t}`,r=$m(s))}return t=KE(t,!r),r&&!$m(t)?`/${t}`:t.length>0?t:"."};function KE(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const $m=function(e){return VE.test(e)},cw=function(e,t){const r=Mm(e).replace(Lm,"$1").split("/"),o=Mm(t).replace(Lm,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function XE(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function uw(e,t,r,o){const s=cw(t,e),c={id:YE(s,r),name:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function YE(e,t){return XE(`${e}${t||""}`)}function Fs(e){return e.type==="test"}function fw(e){const t=[],r=Kh(e);for(const o of r)if(Fs(o))t.push(o);else for(const s of o.tasks)if(Fs(s))t.push(s);else{const c=fw(s);for(const f of c)t.push(f)}return t}function Xh(e=[]){return Kh(e).flatMap(t=>Fs(t)?[t]:[t,...Xh(t.tasks)])}function ZE(e){const t=[e.name];let r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const Nm="q",Om="s",JE=6e4;function dw(e){return e}const QE=dw,{clearTimeout:eA,setTimeout:tA}=globalThis,nA=Math.random.bind(Math);function rA(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=dw,deserialize:d=QE,resolver:h,bind:p="rpc",timeout:v=JE}=t,m=new Map;let b,x=!1;const C=new Proxy({},{get($,D){if(D==="$functions")return e;if(D==="$close")return M;if(D==="$rejectPendingCalls")return A;if(D==="$closed")return x;if(D==="then"&&!c.includes("then")&&!("then"in e))return;const E=(...U)=>{r(f({m:D,a:U,t:Nm}))};if(c.includes(D))return E.asEvent=E,E;const I=async(...U)=>{if(x)throw new Error(`[birpc] rpc is closed, cannot call "${D}"`);if(b)try{await b}finally{b=void 0}return new Promise((ie,re)=>{const ne=oA();let G;v>=0&&(G=tA(()=>{try{if(t.onTimeoutError?.(D,U)!==!0)throw new Error(`[birpc] timeout on calling "${D}"`)}catch(J){re(J)}m.delete(ne)},v),typeof G=="object"&&(G=G.unref?.())),m.set(ne,{resolve:ie,reject:re,timeoutId:G,method:D}),r(f({m:D,a:U,i:ne,t:"q"}))})};return I.asEvent=E,I}});function M($){x=!0,m.forEach(({reject:D,method:E})=>{const I=new Error(`[birpc] rpc is closed, cannot call "${E}"`);if($)return $.cause??=I,D($);D(I)}),m.clear(),s(L)}function A($){const E=Array.from(m.values()).map(({method:I,reject:U})=>$?$({method:I,reject:U}):U(new Error(`[birpc]: rejected pending call "${I}".`)));return m.clear(),E}async function L($,...D){let E;try{E=d($)}catch(I){if(t.onGeneralError?.(I)!==!0)throw I;return}if(E.t===Nm){const{m:I,a:U}=E;let ie,re;const ne=h?h(I,e[I]):e[I];if(!ne)re=new Error(`[birpc] function "${I}" not found`);else try{ie=await ne.apply(p==="rpc"?C:e,U)}catch(G){re=G}if(E.i){if(re&&t.onError&&t.onError(re,I,U),re&&t.onFunctionError&&t.onFunctionError(re,I,U)===!0)return;if(!re)try{r(f({t:Om,i:E.i,r:ie}),...D);return}catch(G){if(re=G,t.onGeneralError?.(G,I,U)!==!0)throw G}try{r(f({t:Om,i:E.i,e:re}),...D)}catch(G){if(t.onGeneralError?.(G,I,U)!==!0)throw G}}}else{const{i:I,r:U,e:ie}=E,re=m.get(I);re&&(eA(re.timeoutId),ie?re.reject(ie):re.resolve(U)),m.delete(I)}}return b=o(L),C}const iA="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function oA(e=21){let t="",r=e;for(;r--;)t+=iA[nA()*64|0];return t}const{parse:hw,stringify:sA}=JSON,{keys:lA}=Object,da=String,pw="string",Pm={},uu="object",gw=(e,t)=>t,aA=e=>e instanceof da?da(e):e,cA=(e,t)=>typeof t===pw?new da(t):t,vw=(e,t,r,o)=>{const s=[];for(let c=lA(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof da){const v=e[p];typeof v===uu&&!t.has(v)?(t.add(v),r[h]=Pm,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==Pm&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,vw.apply(null,h))}return r},Rm=(e,t,r)=>{const o=da(t.push(r)-1);return e.set(r,o),o},Gd=(e,t)=>{const r=hw(e,cA).map(aA),o=r[0],s=t||gw,c=typeof o===uu&&o?vw(r,new Set,o,s):o;return s.call({"":c},"",c)},mw=(e,t,r)=>{const o=t&&typeof t===uu?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||gw,s=new Map,c=[],f=[];let d=+Rm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=sA(c[d++],p,r);return"["+f.join(",")+"]";function p(v,m){if(h)return h=!h,m;const b=o.call(this,v,m);switch(typeof b){case uu:if(b===null)return b;case pw:return s.get(b)||Rm(s,c,b)}return b}},uA=e=>hw(mw(e));class yw{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>t.result?.state==="fail").map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=uw(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,o?.state==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function fA(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=$=>$,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new yw,waitForConnection:L,reconnect:M},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onTestAnnotate($,D){r.onTestAnnotate?.($,D)},onSpecsCollected($){$?.forEach(([D,E])=>{v.state.clearFiles({config:D},[E])}),r.onSpecsCollected?.($)},onPathsCollected($){v.state.collectPaths($),r.onPathsCollected?.($)},onCollected($){v.state.collectFiles($),r.onCollected?.($)},onTaskUpdate($,D){v.state.updateTasks($),r.onTaskUpdate?.($,D)},onUserConsoleLog($){v.state.updateUserLog($),r.onUserConsoleLog?.($)},onFinished($,D){r.onFinished?.($,D)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},x={post:$=>v.ws.send($),on:$=>m=$,serialize:$=>mw($,(D,E)=>E instanceof Error?{name:E.name,message:E.message,stack:E.stack}:E),deserialize:Gd,timeout:-1};v.rpc=rA(b,x);let C;function M($=!1){$&&(p=c),v.ws=new h(e),A()}function A(){C=new Promise(($,D)=>{const E=setTimeout(()=>{D(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();v.ws.OPEN===v.ws.readyState&&$(),v.ws.addEventListener("open",()=>{p=c,$(),clearTimeout(E)})}),v.ws.addEventListener("message",$=>{m($.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(M,s)})}A();function L(){return C}return v}const Kd=en([]),Xn=en([]),Or=ju("vitest-ui_task-tree-opened",[],{shallow:!0}),fu=_e(()=>new Set(Or.value)),fn=ju("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),qn=Ue(fn.value.search),dA={"&":"&","<":"<",">":">",'"':""","'":"'"};function bw(e){return e.replace(/[&<>"']/g,t=>dA[t])}const hA=_e(()=>{const e=qn.value.toLowerCase();return e.length?new RegExp(`(${bw(e)})`,"gi"):null}),ww=_e(()=>qn.value.trim()!==""),Ze=nr({failed:fn.value.failed,success:fn.value.success,skipped:fn.value.skipped,onlyTests:fn.value.onlyTests}),Xd=_e(()=>!!(Ze.failed||Ze.success||Ze.skipped)),Vu=en([]),Hs=Ue(!1),zm=_e(()=>{const e=fn.value.expandAll;return Or.value.length>0?e!==!0:e!==!1}),pA=_e(()=>{const e=ww.value,t=Xd.value,r=Ze.onlyTests,o=Ae.summary.filesFailed,s=Ae.summary.filesSuccess,c=Ae.summary.filesSkipped,f=Ae.summary.filesRunning,d=Vu.value;return Ae.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Ma(e){return Object.hasOwn(e,"tasks")}function gA(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function xw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function _w(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}function vA(e){return e.type==="test"}function mA(e){return e.mode==="run"&&e.type==="test"}function Pn(e){return e.type==="file"}function bi(e){return e.type==="file"||e.type==="suite"}function yA(e=Ae.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ha(e,t=!1){let r=Ae.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=e.result?.state,r.mode=e.mode,r.duration=e.result?.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:fu.value.size>0&&fu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:e.result?.duration!=null?Math.round(e.result?.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Ae.colors.get(e.projectName||"")||xw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Ae.nodes.set(e.id,r),Ae.root.tasks.push(r)),t)for(let o=0;o<e.tasks.length;o++)$a(e.id,e.tasks[o],!0)}function Sw(e,t){const r=Ae.nodes.get(e);if(!r||!bi(r))return;const o=ht.state.idMap.get(e);if(!(!o||!Ma(o)))return $a(r.parentId,o,t&&o.tasks.length>0),[r,o]}function bA(e){const t=Ae.nodes.get(e);if(!t)return;const r=ht.state.idMap.get(e);!r||!Fs(r)||$a(t.parentId,r,!1)}function $a(e,t,r){const o=Ae.nodes.get(e);let s;const c=t.result?.duration!=null?Math.round(t.result?.duration):void 0;if(o&&(s=Ae.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=t.result?.state):(Fs(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:t.result?.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:fu.value.size>0&&fu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Ae.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Ma(t)))for(let f=0;f<t.tasks.length;f++)$a(s.id,t.tasks[f],r)}function wA(e){const t=Ae.nodes.get(e);if(!t||!bi(t))return;const r=new Set(Or.value);r.delete(t.id);const o=[..._A(t)];Or.value=Array.from(r),Xn.value=o}function xA(){Yd(Ae.root.tasks);const e=[...Xn.value.filter(Pn)];Yd(e),Or.value=[],fn.value.expandAll=!0,Xn.value=e}function Yd(e){for(const t of e)bi(t)&&(t.expanded=!1,Yd(t.tasks))}function*kw(e,t){if(t&&(yield e.id),bi(e))for(let r=0;r<e.tasks.length;r++)yield*kw(e.tasks[r],!0)}function*_A(e){const t=e.id,r=new Set(kw(e,!1));for(let o=0;o<Xn.value.length;o++){const s=Xn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const Gu=Ue("idle"),ys=_e(()=>Gu.value==="idle"),Ui=Ue([]);function SA(e,t,r){return e?Ew(e,t,r):!1}function Yh(e,t){const r=[...Tw(e,t)];Xn.value=r,Vu.value=r.filter(Pn).map(o=>hr(o.id))}function*Tw(e,t){for(const r of yA())yield*Cw(r,e,t)}function*Cw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Zd(e,o,x=>Im(x,t,r)))c.push([m,b]);else{for(const[m,b]of Zd(e,o,x=>Im(x,t,r)))bi(b)?(s.set(b.id,m),Pn(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!Pn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...TA(c,r.onlyTests,o,d,f)].reverse(),p=Ae.nodes,v=new Set(h.filter(m=>Pn(m)||bi(m)&&p.get(m.parentId)?.expanded).map(m=>m.id));yield*h.filter(m=>Pn(m)||v.has(m.parentId)&&p.get(m.parentId)?.expanded)}function kA(e,t,r,o,s){if(o){if(Pn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ae.nodes.get(t.parentId);return c&&Pn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ae.nodes.get(t.parentId);return c&&Pn(c)&&s.add(c.id),t}}function*TA(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=bi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ae.nodes.get(d.parentId);for(;p;)r.add(p.id),Pn(p)&&o.add(p.id),p=Ae.nodes.get(p.parentId);yield d;continue}if(h){const p=kA(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ae.nodes.get(d.parentId);p&&Pn(p)&&o.add(p.id),yield d}}}function CA(e,t){return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function Ew(e,t,r){if(t.length===0||gA(e.name,t))if(r.success||r.failed||r.skipped){if(CA(e,r))return!0}else return!0;return!1}function*Zd(e,t,r){const o=r(e);if(o)if(vA(e)){let s=Ae.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ae.nodes.get(s.parentId)}else if(Pn(e))t.add(e.id);else{t.add(e.id);let s=Ae.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ae.nodes.get(s.parentId)}if(yield[o,e],bi(e))for(let s=0;s<e.tasks.length;s++)yield*Zd(e.tasks[s],t,r)}function Im(e,t,r){const o=ht.state.idMap.get(e.id);return o?Ew(o,t,r):!1}function EA(e,t,r){const o=Sw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)$a(s.id,p,!1);s.expanded=!0;const f=new Set(Or.value);f.add(s.id);const d=new Set(Cw(s,t,r)),h=[...MA(s,d)];Or.value=Array.from(f),Xn.value=h}function AA(e,t){Zh(Ae.root.tasks,!1);const r=[...Tw(e,t)];fn.value.expandAll=!1,Or.value=[],Xn.value=r,Vu.value=r.filter(Pn).map(o=>hr(o.id))}function LA(e,t){if(e.size)for(const r of Xn.value)e.has(r.id)&&(r.expanded=!0);else t&&Zh(Xn.value.filter(Pn),!0)}function Zh(e,t){for(const r of e)bi(r)&&(r.expanded=!0,Zh(r.tasks,!1));t&&(fn.value.expandAll=!1,Or.value=[])}function*MA(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Xn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function Jh(e){return fw(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function $A(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ha(s,t)),Kd.value=[...Ae.root.tasks],Yh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function NA(e){queueMicrotask(()=>{const t=Ae.pendingTasks,r=ht.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function OA(e,t){const r=Ae.pendingTasks,s=ht.state.idMap.get(e);if(s?.type==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),s.annotations.push(t)}}function Dm(e,t,r,o,s){e&&FA(r);const c=!e;queueMicrotask(()=>{t?zA(c):IA(c)}),queueMicrotask(()=>{HA(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Kd.value&&Jh(Kd.value.map(f=>hr(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{DA(o,s,t)})}function*PA(){yield*Xn.value.filter(mA)}function RA(){const e=ht.state.idMap;let t;for(const r of PA())t=e.get(r.parentId),t&&Ma(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function zA(e){const t=ht.state.getFiles(),r=Ae.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ha(o[c],e),du(o[c].tasks);const s=Ae.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=hr(f.id);!d||(ha(d,e),!d.tasks?.length)||du(d.tasks)}}function IA(e){const t=new Map(Ae.pendingTasks.entries());Ae.pendingTasks.clear();const r=Ae.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>hr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ha(s,!1),du(s.tasks),t.delete(s.id);const c=ht.state.idMap,f=Ae.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=hr(h.id);if(!p)continue;const v=t.get(p.id);v&&(ha(p,e),du(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function DA(e,t,r=!1){const o=fn.value.expandAll,s=o!==!0,c=new Set(Or.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{Fm(e,t,r)}),Hs.value||queueMicrotask(()=>{(Xn.value.length||r)&&(Hs.value=!0)}),f&&(queueMicrotask(()=>{LA(c,r),s&&(fn.value.expandAll=!1)}),queueMicrotask(()=>{Fm(e,t,r)}))}function Fm(e,t,r){Yh(e,t),r&&(RA(),Gu.value="idle")}function du(e){let t;for(let r=0;r<e.length;r++)t=e[r],Ma(t)?Sw(t.id,!0):bA(t.id)}function FA(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function HA(e){const t=ht.state.idMap,r=new Map(Ae.root.tasks.filter(f=>t.has(f.id)).map(f=>[f.id,f])),o=Array.from(r.values()).map(f=>[f.id,hr(f.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};let c=0;for(const[f,d]of o){if(!d)continue;const h=r.get(f);h&&(h.mode=d.mode,h.setupDuration=d.setupDuration,h.prepareDuration=d.prepareDuration,h.environmentLoad=d.environmentLoad,h.collectDuration=d.collectDuration,h.duration=d.result?.duration!=null?Math.round(d.result?.duration):void 0,h.state=d.result?.state),c+=Math.max(0,d.collectDuration||0),c+=Math.max(0,d.setupDuration||0),c+=Math.max(0,d.result?.duration||0),c+=Math.max(0,d.environmentLoad||0),c+=Math.max(0,d.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,d.result?.state==="fail"?s.filesFailed++:d.result?.state==="pass"?s.filesSuccess++:d.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):d.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:p,success:v,skipped:m,total:b,ignored:x,todo:C}=Aw(d);s.totalTests+=b,s.testsFailed+=p,s.testsSuccess+=v,s.testsSkipped+=m,s.testsTodo+=C,s.testsIgnore+=x}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function Aw(e,t="",r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const s of Lw(e))(!r||SA(s,t,r))&&(o.total++,s.result?.state==="fail"?o.failed++:s.result?.state==="pass"?o.success++:s.mode==="skip"?(o.ignored++,o.skipped++):s.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function BA(e,t,r,o,s,c){if(t)return r.map(f=>Aw(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:v})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=v,f),{failed:0,success:0,skipped:0,running:0});if(e){const f={failed:0,success:0,skipped:0,running:0},d=!c.success&&!c.failed,h=c.failed||d,p=c.success||d;for(const v of r)v.result?.state==="fail"?f.failed+=h?1:0:v.result?.state==="pass"?f.success+=p?1:0:v.mode==="skip"||v.mode==="todo"||f.running++;return f}return o}function*Lw(e){const t=Kh(e);let r;for(let o=0;o<t.length;o++)r=t[o],Fs(r)?yield r:yield*Lw(r.tasks)}class WA{constructor(t=[],r=new Map,o=!1,s=500,c={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},f=new Map,d=new Map,h=nr({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=r,this.onTaskUpdateCalled=o,this.resumeEndTimeout=s,this.root=c,this.pendingTasks=f,this.nodes=d,this.summary=h,this.rafCollector=ZC(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;loadFiles(t,r){this.projects.splice(0,this.projects.length,...r.map(o=>o.name)),this.colors=new Map(r.map(o=>[o.name,o.color])),$A(t,!0,qn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}annotateTest(t,r){OA(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){NA(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{Dm(t,r,this.summary,qn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}):Dm(t,r,this.summary,qn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collectTestsTotal(t,r,o,s){return BA(t,r,o,s,qn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})}collapseNode(t){queueMicrotask(()=>{wA(t)})}expandNode(t){queueMicrotask(()=>{EA(t,qn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{xA()})}expandAllNodes(){queueMicrotask(()=>{AA(qn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}filterNodes(){queueMicrotask(()=>{Yh(qn.value.trim(),{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,onlyTests:Ze.onlyTests})})}}const Ae=new WA;function Mw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dc={exports:{}},qA=Dc.exports,Hm;function Gs(){return Hm||(Hm=1,(function(e,t){(function(r,o){e.exports=o()})(qA,(function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),x=b&&+b[1],C=/Opera\//.test(r),M=/Apple Computer/.test(navigator.vendor),A=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),L=/PhantomJS/.test(r),$=M&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),D=/Android/.test(r),E=$||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),I=$||/Mac/.test(o),U=/\bCrOS\b/.test(r),ie=/win/i.test(o),re=C&&r.match(/Version\/(\d*\.\d*)/);re&&(re=Number(re[1])),re&&re>=15&&(C=!1,v=!0);var ne=I&&(m||C&&(re==null||re<12.11)),G=s||h&&p>=9;function J(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var P=function(n,i){var a=n.className,l=J(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function O(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function N(n,i){return O(n).appendChild(i)}function S(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function F(n,i,a,l){var u=S(n,i,a,l);return u.setAttribute("role","presentation"),u}var j;document.createRange?j=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:j=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function oe(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function me(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Se(n,i){var a=n.className;J(i).test(a)||(n.className+=(a?" ":"")+i)}function Re(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!J(a[l]).test(i)&&(i+=" "+a[l]);return i}var je=function(n){n.select()};$?je=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(je=function(n){try{n.select()}catch{}});function Qe(n){return n.display.wrapper.ownerDocument}function Xe(n){return Ye(n.display.wrapper)}function Ye(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function te(n){return Qe(n).defaultView}function H(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function Y(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function V(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var w=n.indexOf(" ",g);if(w<0||w>=i)return y+(i-g);y+=w-g,y+=a-y%a,g=w+1}}var ae=function(){this.id=null,this.f=null,this.time=0,this.handler=H(this.onTimeout,this)};ae.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},ae.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function pe(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var R=50,q={toString:function(){return"CodeMirror.Pass"}},K={scroll:!1},ue={origin:"*mouse"},he={origin:"+move"};function fe(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(ve(Ce)+" ");return Ce[n]}function ve(n){return n[n.length-1]}function be(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function We(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function $e(){}function De(n,i){var a;return Object.create?a=Object.create(n):($e.prototype=n,a=new $e),i&&Y(i,a),a}var Ve=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function rt(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Ve.test(n))}function lt(n,i){return i?i.source.indexOf("\\w")>-1&&rt(n)?!0:i.test(n):rt(n)}function ut(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Mt=/[\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 at(n){return n.charCodeAt(0)>=768&&Mt.test(n)}function Vt(n,i,a){for(;(a<0?i>0:i<n.length)&&at(n.charAt(i));)i+=a;return i}function Ht(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function In(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var Ir=null;function Dt(n,i,a){var l;Ir=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:Ir=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:Ir=u)}return l??Ir}var Dn=(function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(k){return k<=247?n.charAt(k):1424<=k&&k<=1524?"R":1536<=k&&k<=1785?i.charAt(k-1536):1774<=k&&k<=2220?"r":8192<=k&&k<=8203?"w":k==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,w=/[1n]/;function _(k,z,W){this.level=k,this.from=z,this.to=W}return function(k,z){var W=z=="ltr"?"L":"R";if(k.length==0||z=="ltr"&&!l.test(k))return!1;for(var ee=k.length,X=[],ce=0;ce<ee;++ce)X.push(a(k.charCodeAt(ce)));for(var ge=0,xe=W;ge<ee;++ge){var ke=X[ge];ke=="m"?X[ge]=xe:xe=ke}for(var Me=0,Te=W;Me<ee;++Me){var Ne=X[Me];Ne=="1"&&Te=="r"?X[Me]="n":g.test(Ne)&&(Te=Ne,Ne=="r"&&(X[Me]="R"))}for(var He=1,Ie=X[0];He<ee-1;++He){var et=X[He];et=="+"&&Ie=="1"&&X[He+1]=="1"?X[He]="1":et==","&&Ie==X[He+1]&&(Ie=="1"||Ie=="n")&&(X[He]=Ie),Ie=et}for(var xt=0;xt<ee;++xt){var Zt=X[xt];if(Zt==",")X[xt]="N";else if(Zt=="%"){var $t=void 0;for($t=xt+1;$t<ee&&X[$t]=="%";++$t);for(var Bn=xt&&X[xt-1]=="!"||$t<ee&&X[$t]=="1"?"1":"N",Tn=xt;Tn<$t;++Tn)X[Tn]=Bn;xt=$t-1}}for(var Bt=0,Cn=W;Bt<ee;++Bt){var nn=X[Bt];Cn=="L"&&nn=="1"?X[Bt]="L":g.test(nn)&&(Cn=nn)}for(var jt=0;jt<ee;++jt)if(u.test(X[jt])){var Wt=void 0;for(Wt=jt+1;Wt<ee&&u.test(X[Wt]);++Wt);for(var zt=(jt?X[jt-1]:W)=="L",En=(Wt<ee?X[Wt]:W)=="L",fs=zt==En?zt?"L":"R":W,Ii=jt;Ii<Wt;++Ii)X[Ii]=fs;jt=Wt-1}for(var an=[],Wr,Jt=0;Jt<ee;)if(y.test(X[Jt])){var Gf=Jt;for(++Jt;Jt<ee&&y.test(X[Jt]);++Jt);an.push(new _(0,Gf,Jt))}else{var oi=Jt,wo=an.length,xo=z=="rtl"?1:0;for(++Jt;Jt<ee&&X[Jt]!="L";++Jt);for(var pn=oi;pn<Jt;)if(w.test(X[pn])){oi<pn&&(an.splice(wo,0,new _(1,oi,pn)),wo+=xo);var ds=pn;for(++pn;pn<Jt&&w.test(X[pn]);++pn);an.splice(wo,0,new _(2,ds,pn)),wo+=xo,oi=pn}else++pn;oi<Jt&&an.splice(wo,0,new _(1,oi,Jt))}return z=="ltr"&&(an[0].level==1&&(Wr=k.match(/^\s+/))&&(an[0].from=Wr[0].length,an.unshift(new _(0,0,Wr[0].length))),ve(an).level==1&&(Wr=k.match(/\s+$/))&&(ve(an).to-=Wr[0].length,an.push(new _(0,ee-Wr[0].length,ee)))),z=="rtl"?an.reverse():an}})();function tt(n,i){var a=n.order;return a==null&&(a=n.order=Dn(n.text,i)),a}var co=[],Fe=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||co).concat(a)}};function Jr(n,i){return n._handlers&&n._handlers[i]||co}function on(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=pe(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Ot(n,i){var a=Jr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Pt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Ot(n,a||i.type,n,i),xn(i)||i.codemirrorIgnore}function or(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)pe(a,i[l])==-1&&a.push(i[l])}function Fn(n,i){return Jr(n,i).length>0}function pr(n){n.prototype.on=function(i,a){Fe(this,i,a)},n.prototype.off=function(i,a){on(this,i,a)}}function sn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Ho(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function xn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Ti(n){sn(n),Ho(n)}function Xs(n){return n.target||n.srcElement}function gr(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),I&&n.ctrlKey&&i==1&&(i=3),i}var Qu=(function(){if(h&&p<9)return!1;var n=S("div");return"draggable"in n||"dragDrop"in n})(),Bo;function Ia(n){if(Bo==null){var i=S("span","");N(n,S("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Bo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Bo?S("span",""):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Ys;function Ci(n){if(Ys!=null)return Ys;var i=N(n,document.createTextNode("AخA")),a=j(i,0,1).getBoundingClientRect(),l=j(i,1,2).getBoundingClientRect();return O(n),!a||a.left==a.right?!1:Ys=l.right-a.right<3}var sr=`
|
|
20
|
+
|
|
21
|
+
b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
|
|
22
|
+
`,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=g.indexOf("\r");y!=-1?(a.push(g.slice(0,y)),i+=y+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Ei=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},Da=(function(){var n=S("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),vr=null;function ef(n){if(vr!=null)return vr;var i=N(n,S("span","x")),a=i.getBoundingClientRect(),l=j(i,0,1).getBoundingClientRect();return vr=Math.abs(a.left-l.left)>1}var Wo={},mr={};function yr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Wo[n]=i}function uo(n,i){mr[n]=i}function qo(n){if(typeof n=="string"&&mr.hasOwnProperty(n))n=mr[n];else if(n&&typeof n.name=="string"&&mr.hasOwnProperty(n.name)){var i=mr[n.name];typeof i=="string"&&(i={name:i}),n=De(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return qo("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return qo("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function jo(n,i){i=qo(i);var a=Wo[i.name];if(!a)return jo(n,"text/plain");var l=a(n,i);if(Ai.hasOwnProperty(i.name)){var u=Ai[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var Ai={};function Uo(n,i){var a=Ai.hasOwnProperty(n)?Ai[n]:Ai[n]={};Y(i,a)}function Dr(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function Zs(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function Vo(n,i,a){return n.startState?n.startState(i,a):!0}var Rt=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};Rt.prototype.eol=function(){return this.pos>=this.string.length},Rt.prototype.sol=function(){return this.pos==this.lineStart},Rt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Rt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Rt.prototype.eat=function(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},Rt.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},Rt.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},Rt.prototype.skipToEnd=function(){this.pos=this.string.length},Rt.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},Rt.prototype.backUp=function(n){this.pos-=n},Rt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Rt.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Rt.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(y){return a?y.toLowerCase():y},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},Rt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Rt.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},Rt.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},Rt.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Pe(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function Qr(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var y=g.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function Js(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Yn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function T(n){if(n.parent==null)return null;for(var i=n.parent,a=pe(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function B(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var w=n.lines[y],_=w.height;if(i<_)break;i-=_}return a+y}function de(n,i){return i>=n.first&&i<n.first+n.size}function we(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function le(n,i,a){if(a===void 0&&(a=null),!(this instanceof le))return new le(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Le(n,i){return n.line-i.line||n.ch-i.ch}function pt(n,i){return n.sticky==i.sticky&&Le(n,i)==0}function Gt(n){return le(n.line,n.ch)}function _n(n,i){return Le(n,i)<0?i:n}function Go(n,i){return Le(n,i)<0?n:i}function bp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ke(n,i){if(i.line<n.first)return le(n.first,0);var a=n.first+n.size-1;return i.line>a?le(a,Pe(n,a).text.length):i1(i,Pe(n,i.line).text.length)}function i1(n,i){var a=n.ch;return a==null||a>i?le(n.line,i):a<0?le(n.line,0):n}function wp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ke(n,i[l]);return a}var Fa=function(n,i){this.state=n,this.lookAhead=i},Fr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Fr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Fr.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Fr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Fr.fromSaved=function(n,i,a){return i instanceof Fa?new Fr(n,Dr(n.mode,i.state),a,i.lookAhead):new Fr(n,Dr(n.mode,i),a)},Fr.prototype.save=function(n){var i=n!==!1?Dr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Fa(i,this.maxLookAhead):i};function xp(n,i,a,l){var u=[n.state.modeGen],g={};Ep(n,i.text,n.doc.mode,a,function(k,z){return u.push(k,z)},g,l);for(var y=a.state,w=function(k){a.baseTokens=u;var z=n.state.overlays[k],W=1,ee=0;a.state=!0,Ep(n,i.text,z.mode,a,function(X,ce){for(var ge=W;ee<X;){var xe=u[W];xe>X&&u.splice(W,1,X,u[W+1],xe),W+=2,ee=Math.min(X,xe)}if(ce)if(z.opaque)u.splice(ge,W-ge,X,"overlay "+ce),W=ge+2;else for(;ge<W;ge+=2){var ke=u[ge+1];u[ge+1]=(ke?ke+" ":"")+"overlay "+ce}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},_=0;_<n.state.overlays.length;++_)w(_);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function _p(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=Qs(n,T(i)),u=i.text.length>n.options.maxHighlightLength&&Dr(n.doc.mode,l.state),g=xp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function Qs(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Fr(l,!0,i);var g=o1(n,i,a),y=g>l.first&&Pe(l,g-1).stateAfter,w=y?Fr.fromSaved(l,y,g):new Fr(l,Vo(l.mode),g);return l.iter(g,i,function(_){tf(n,_.text,w);var k=w.line;_.stateAfter=k==i-1||k%5==0||k>=u.viewFrom&&k<u.viewTo?w.save():null,w.nextLine()}),a&&(l.modeFrontier=w.line),w}function tf(n,i,a,l){var u=n.doc.mode,g=new Rt(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&Sp(u,a.state);!g.eol();)nf(u,g,a.state),g.start=g.pos}function Sp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Zs(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function nf(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Zs(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var kp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function Tp(n,i,a,l){var u=n.doc,g=u.mode,y;i=Ke(u,i);var w=Pe(u,i.line),_=Qs(n,i.line,a),k=new Rt(w.text,n.options.tabSize,_),z;for(l&&(z=[]);(l||k.pos<i.ch)&&!k.eol();)k.start=k.pos,y=nf(g,k,_.state),l&&z.push(new kp(k,y,Dr(u.mode,_.state)));return l?z:new kp(k,y,_.state)}function Cp(n,i){if(n)for(;;){var a=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;n=n.slice(0,a.index)+n.slice(a.index+a[0].length);var l=a[1]?"bgClass":"textClass";i[l]==null?i[l]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+a[2])}return n}function Ep(n,i,a,l,u,g,y){var w=a.flattenSpans;w==null&&(w=n.options.flattenSpans);var _=0,k=null,z=new Rt(i,n.options.tabSize,l),W,ee=n.options.addModeClass&&[null];for(i==""&&Cp(Sp(a,l.state),g);!z.eol();){if(z.pos>n.options.maxHighlightLength?(w=!1,y&&tf(n,i,l,z.pos),z.pos=i.length,W=null):W=Cp(nf(a,z,l.state,ee),g),ee){var X=ee[0].name;X&&(W="m-"+(W?X+" "+W:X))}if(!w||k!=W){for(;_<z.start;)_=Math.min(z.start,_+5e3),u(_,k);k=W}z.start=z.pos}for(;_<z.pos;){var ce=Math.min(z.pos,_+5e3);u(ce,k),_=ce}}function o1(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),w=i;w>y;--w){if(w<=g.first)return g.first;var _=Pe(g,w-1),k=_.stateAfter;if(k&&(!a||w+(k instanceof Fa?k.lookAhead:0)<=g.modeFrontier))return w;var z=V(_.text,null,n.options.tabSize);(u==null||l>z)&&(u=w-1,l=z)}return u}function s1(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=Pe(n,l).stateAfter;if(u&&(!(u instanceof Fa)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var Ap=!1,ei=!1;function l1(){Ap=!0}function a1(){ei=!0}function Ha(n,i,a){this.marker=n,this.from=i,this.to=a}function el(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function c1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function u1(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function f1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,w=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(w||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var _=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Ha(y,g.from,_?null:g.to))}}return l}function d1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,w=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(w||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var _=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Ha(y,_?null:g.from-i,g.to==null?null:g.to-i))}}return l}function rf(n,i){if(i.full)return null;var a=de(n,i.from.line)&&Pe(n,i.from.line).markedSpans,l=de(n,i.to.line)&&Pe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Le(i.from,i.to)==0,w=f1(a,u,y),_=d1(l,g,y),k=i.text.length==1,z=ve(i.text).length+(k?u:0);if(w)for(var W=0;W<w.length;++W){var ee=w[W];if(ee.to==null){var X=el(_,ee.marker);X?k&&(ee.to=X.to==null?null:X.to+z):ee.to=u}}if(_)for(var ce=0;ce<_.length;++ce){var ge=_[ce];if(ge.to!=null&&(ge.to+=z),ge.from==null){var xe=el(w,ge.marker);xe||(ge.from=z,k&&(w||(w=[])).push(ge))}else ge.from+=z,k&&(w||(w=[])).push(ge)}w&&(w=Lp(w)),_&&_!=w&&(_=Lp(_));var ke=[w];if(!k){var Me=i.text.length-2,Te;if(Me>0&&w)for(var Ne=0;Ne<w.length;++Ne)w[Ne].to==null&&(Te||(Te=[])).push(new Ha(w[Ne].marker,null,null));for(var He=0;He<Me;++He)ke.push(Te);ke.push(_)}return ke}function Lp(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function h1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(X){if(X.markedSpans)for(var ce=0;ce<X.markedSpans.length;++ce){var ge=X.markedSpans[ce].marker;ge.readOnly&&(!l||pe(l,ge)==-1)&&(l||(l=[])).push(ge)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],w=y.find(0),_=0;_<u.length;++_){var k=u[_];if(!(Le(k.to,w.from)<0||Le(k.from,w.to)>0)){var z=[_,1],W=Le(k.from,w.from),ee=Le(k.to,w.to);(W<0||!y.inclusiveLeft&&!W)&&z.push({from:k.from,to:w.from}),(ee>0||!y.inclusiveRight&&!ee)&&z.push({from:w.to,to:k.to}),u.splice.apply(u,z),_+=z.length-3}}return u}function Mp(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function $p(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Ba(n){return n.inclusiveLeft?-1:0}function Wa(n){return n.inclusiveRight?1:0}function of(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Le(l.from,u.from)||Ba(n)-Ba(i);if(g)return-g;var y=Le(l.to,u.to)||Wa(n)-Wa(i);return y||i.id-n.id}function Np(n,i){var a=ei&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||of(l,u.marker)<0)&&(l=u.marker);return l}function Op(n){return Np(n,!0)}function qa(n){return Np(n,!1)}function p1(n,i){var a=ei&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||of(l,g.marker)<0)&&(l=g.marker)}return l}function Pp(n,i,a,l,u){var g=Pe(n,i),y=ei&&g.markedSpans;if(y)for(var w=0;w<y.length;++w){var _=y[w];if(_.marker.collapsed){var k=_.marker.find(0),z=Le(k.from,a)||Ba(_.marker)-Ba(u),W=Le(k.to,l)||Wa(_.marker)-Wa(u);if(!(z>=0&&W<=0||z<=0&&W>=0)&&(z<=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Le(k.to,a)>=0:Le(k.to,a)>0)||z>=0&&(_.marker.inclusiveRight&&u.inclusiveLeft?Le(k.from,l)<=0:Le(k.from,l)<0)))return!0}}}function br(n){for(var i;i=Op(n);)n=i.find(-1,!0).line;return n}function g1(n){for(var i;i=qa(n);)n=i.find(1,!0).line;return n}function v1(n){for(var i,a;i=qa(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function sf(n,i){var a=Pe(n,i),l=br(a);return a==l?i:T(l)}function Rp(n,i){if(i>n.lastLine())return i;var a=Pe(n,i),l;if(!Li(n,a))return i;for(;l=qa(a);)a=l.find(1,!0).line;return T(a)+1}function Li(n,i){var a=ei&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&lf(n,i,l))return!0}}}function lf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return lf(n,l.line,el(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&lf(n,i,u))return!0}function ti(n){n=br(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var y=0;y<g.children.length;++y){var w=g.children[y];if(w==a)break;i+=w.height}return i}function ja(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Op(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=qa(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function af(n){var i=n.display,a=n.doc;i.maxLine=Pe(a,a.first),i.maxLineLength=ja(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=ja(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var Ko=function(n,i,a){this.text=n,$p(this,i),this.height=a?a(this):1};Ko.prototype.lineNo=function(){return T(this)},pr(Ko);function m1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Mp(n),$p(n,a);var u=l?l(n):1;u!=n.height&&Yn(n,u)}function y1(n){n.parent=null,Mp(n)}var b1={},w1={};function zp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?w1:b1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Ip(n,i){var a=F("span",null,null,v?"padding-right: .1px":null),l={pre:F("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=_1,Ci(n.display.measure)&&(y=tt(g,n.doc.direction))&&(l.addToken=k1(l.addToken,y)),l.map=[];var w=i!=n.display.externalMeasured&&T(g);T1(g,l,_p(n,g,w)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Re(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Re(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ia(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var _=l.content.lastChild;(/\bcm-tab\b/.test(_.className)||_.querySelector&&_.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Ot(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Re(l.pre.className,l.textClass||"")),l}function x1(n){var i=S("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function _1(n,i,a,l,u,g,y){if(i){var w=n.splitSpaces?S1(i,n.trailingSpace):i,_=n.cm.state.specialChars,k=!1,z;if(!_.test(i))n.col+=i.length,z=document.createTextNode(w),n.map.push(n.pos,n.pos+i.length,z),h&&p<9&&(k=!0),n.pos+=i.length;else{z=document.createDocumentFragment();for(var W=0;;){_.lastIndex=W;var ee=_.exec(i),X=ee?ee.index-W:i.length-W;if(X){var ce=document.createTextNode(w.slice(W,W+X));h&&p<9?z.appendChild(S("span",[ce])):z.appendChild(ce),n.map.push(n.pos,n.pos+X,ce),n.col+=X,n.pos+=X}if(!ee)break;W+=X+1;var ge=void 0;if(ee[0]==" "){var xe=n.cm.options.tabSize,ke=xe-n.col%xe;ge=z.appendChild(S("span",Ee(ke),"cm-tab")),ge.setAttribute("role","presentation"),ge.setAttribute("cm-text"," "),n.col+=ke}else ee[0]=="\r"||ee[0]==`
|
|
23
|
+
`?(ge=z.appendChild(S("span",ee[0]=="\r"?"␍":"","cm-invalidchar")),ge.setAttribute("cm-text",ee[0]),n.col+=1):(ge=n.cm.options.specialCharPlaceholder(ee[0]),ge.setAttribute("cm-text",ee[0]),h&&p<9?z.appendChild(S("span",[ge])):z.appendChild(ge),n.col+=1);n.map.push(n.pos,n.pos+1,ge),n.pos++}}if(n.trailingSpace=w.charCodeAt(i.length-1)==32,a||l||u||k||g||y){var Me=a||"";l&&(Me+=l),u&&(Me+=u);var Te=S("span",[z],Me,g);if(y)for(var Ne in y)y.hasOwnProperty(Ne)&&Ne!="style"&&Ne!="class"&&Te.setAttribute(Ne,y[Ne]);return n.content.appendChild(Te)}n.content.appendChild(z)}}function S1(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var g=n.charAt(u);g==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(g=" "),l+=g,a=g==" "}return l}function k1(n,i){return function(a,l,u,g,y,w,_){u=u?u+" cm-force-border":"cm-force-border";for(var k=a.pos,z=k+l.length;;){for(var W=void 0,ee=0;ee<i.length&&(W=i[ee],!(W.to>k&&W.from<=k));ee++);if(W.to>=z)return n(a,l,u,g,y,w,_);n(a,l.slice(0,W.to-k),u,g,null,w,_),g=null,l=l.slice(W.to-k),k=W.to}}}function Dp(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function T1(n,i,a){var l=n.markedSpans,u=n.text,g=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(g,g=a[y]),zp(a[y+1],i.cm.options));return}for(var w=u.length,_=0,k=1,z="",W,ee,X=0,ce,ge,xe,ke,Me;;){if(X==_){ce=ge=xe=ee="",Me=null,ke=null,X=1/0;for(var Te=[],Ne=void 0,He=0;He<l.length;++He){var Ie=l[He],et=Ie.marker;if(et.type=="bookmark"&&Ie.from==_&&et.widgetNode)Te.push(et);else if(Ie.from<=_&&(Ie.to==null||Ie.to>_||et.collapsed&&Ie.to==_&&Ie.from==_)){if(Ie.to!=null&&Ie.to!=_&&X>Ie.to&&(X=Ie.to,ge=""),et.className&&(ce+=" "+et.className),et.css&&(ee=(ee?ee+";":"")+et.css),et.startStyle&&Ie.from==_&&(xe+=" "+et.startStyle),et.endStyle&&Ie.to==X&&(Ne||(Ne=[])).push(et.endStyle,Ie.to),et.title&&((Me||(Me={})).title=et.title),et.attributes)for(var xt in et.attributes)(Me||(Me={}))[xt]=et.attributes[xt];et.collapsed&&(!ke||of(ke.marker,et)<0)&&(ke=Ie)}else Ie.from>_&&X>Ie.from&&(X=Ie.from)}if(Ne)for(var Zt=0;Zt<Ne.length;Zt+=2)Ne[Zt+1]==X&&(ge+=" "+Ne[Zt]);if(!ke||ke.from==_)for(var $t=0;$t<Te.length;++$t)Dp(i,0,Te[$t]);if(ke&&(ke.from||0)==_){if(Dp(i,(ke.to==null?w+1:ke.to)-_,ke.marker,ke.from==null),ke.to==null)return;ke.to==_&&(ke=!1)}}if(_>=w)break;for(var Bn=Math.min(w,X);;){if(z){var Tn=_+z.length;if(!ke){var Bt=Tn>Bn?z.slice(0,Bn-_):z;i.addToken(i,Bt,W?W+ce:ce,xe,_+Bt.length==X?ge:"",ee,Me)}if(Tn>=Bn){z=z.slice(Bn-_),_=Bn;break}_=Tn,xe=""}z=u.slice(g,g=a[k++]),W=zp(a[k++],i.cm.options)}}}function Fp(n,i,a){this.line=i,this.rest=v1(i),this.size=this.rest?T(ve(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Li(n,i)}function Ua(n,i,a){for(var l=[],u,g=i;g<a;g=u){var y=new Fp(n.doc,Pe(n.doc,g),g);u=g+y.size,l.push(y)}return l}var Xo=null;function C1(n){Xo?Xo.ops.push(n):n.ownsGroup=Xo={ops:[n],delayedCallbacks:[]}}function E1(n){var i=n.delayedCallbacks,a=0;do{for(;a<i.length;a++)i[a].call(null);for(var l=0;l<n.ops.length;l++){var u=n.ops[l];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<i.length)}function A1(n,i){var a=n.ownsGroup;if(a)try{E1(a)}finally{Xo=null,i(a)}}var tl=null;function Kt(n,i){var a=Jr(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;Xo?u=Xo.delayedCallbacks:tl?u=tl:(u=tl=[],setTimeout(L1,0));for(var g=function(w){u.push(function(){return a[w].apply(null,l)})},y=0;y<a.length;++y)g(y)}}function L1(){var n=tl;tl=null;for(var i=0;i<n.length;++i)n[i]()}function Hp(n,i,a,l){for(var u=0;u<i.changes.length;u++){var g=i.changes[u];g=="text"?$1(n,i):g=="gutter"?Wp(n,i,a,l):g=="class"?cf(n,i):g=="widget"&&N1(n,i,l)}i.changes=null}function nl(n){return n.node==n.text&&(n.node=S("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),h&&p<8&&(n.node.style.zIndex=2)),n.node}function M1(n,i){var a=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),i.background)a?i.background.className=a:(i.background.parentNode.removeChild(i.background),i.background=null);else if(a){var l=nl(i);i.background=l.insertBefore(S("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function Bp(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):Ip(n,i)}function $1(n,i){var a=i.text.className,l=Bp(n,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,cf(n,i)):a&&(i.text.className=a)}function cf(n,i){M1(n,i),i.line.wrapClass?nl(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function Wp(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var u=nl(i);i.gutterBackground=S("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),u.insertBefore(i.gutterBackground,i.text)}var g=i.line.gutterMarkers;if(n.options.lineNumbers||g){var y=nl(i),w=i.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(w.setAttribute("aria-hidden","true"),n.display.input.setUneditable(w),y.insertBefore(w,i.text),i.line.gutterClass&&(w.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(i.lineNumber=w.appendChild(S("div",we(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),g)for(var _=0;_<n.display.gutterSpecs.length;++_){var k=n.display.gutterSpecs[_].className,z=g.hasOwnProperty(k)&&g[k];z&&w.appendChild(S("div",[z],"CodeMirror-gutter-elt","left: "+l.gutterLeft[k]+"px; width: "+l.gutterWidth[k]+"px"))}}}function N1(n,i,a){i.alignable&&(i.alignable=null);for(var l=J("CodeMirror-linewidget"),u=i.node.firstChild,g=void 0;u;u=g)g=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);qp(n,i,a)}function O1(n,i,a,l){var u=Bp(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),cf(n,i),Wp(n,i,a,l),qp(n,i,l),i.node}function qp(n,i,a){if(jp(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)jp(n,i.rest[l],i,a,!1)}function jp(n,i,a,l,u){if(i.widgets)for(var g=nl(a),y=0,w=i.widgets;y<w.length;++y){var _=w[y],k=S("div",[_.node],"CodeMirror-linewidget"+(_.className?" "+_.className:""));_.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),P1(_,k,a,l),n.display.input.setUneditable(k),u&&_.above?g.insertBefore(k,a.gutter||a.text):g.appendChild(k),Kt(_,"redraw")}}function P1(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function rl(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!oe(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),N(i.display.measure,S("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function ni(n,i){for(var a=Xs(i);a!=n.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==n.sizer&&a!=n.mover)return!0}function Va(n){return n.lineSpace.offsetTop}function uf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function Up(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=N(n.measure,S("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function Hr(n){return R-n.display.nativeBarWidth}function fo(n){return n.display.scroller.clientWidth-Hr(n)-n.display.barWidth}function ff(n){return n.display.scroller.clientHeight-Hr(n)-n.display.barHeight}function R1(n,i,a){var l=n.options.lineWrapping,u=l&&fo(n);if(!i.measure.heights||l&&i.measure.width!=u){var g=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),w=0;w<y.length-1;w++){var _=y[w],k=y[w+1];Math.abs(_.bottom-k.bottom)>2&&g.push((_.bottom+k.top)/2-a.top)}}g.push(a.bottom-a.top)}}function Vp(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var u=0;u<n.rest.length;u++)if(T(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function z1(n,i){i=br(i);var a=T(i),l=n.display.externalMeasured=new Fp(n.doc,i,a);l.lineN=a;var u=l.built=Ip(n,l);return l.text=u.pre,N(n.display.lineMeasure,u.pre),l}function Gp(n,i,a,l){return Br(n,Yo(n,i),a,l)}function df(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[go(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function Yo(n,i){var a=T(i),l=df(n,a);l&&!l.text?l=null:l&&l.changes&&(Hp(n,l,a,mf(n)),n.curOp.forceUpdate=!0),l||(l=z1(n,i));var u=Vp(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Br(n,i,a,l,u){i.before&&(a=-1);var g=a+(l||""),y;return i.cache.hasOwnProperty(g)?y=i.cache[g]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(R1(n,i.view,i.rect),i.hasHeights=!0),y=D1(n,i,a,l),y.bogus||(i.cache[g]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var Kp={left:0,right:0,top:0,bottom:0};function Xp(n,i,a){for(var l,u,g,y,w,_,k=0;k<n.length;k+=3)if(w=n[k],_=n[k+1],i<w?(u=0,g=1,y="left"):i<_?(u=i-w,g=u+1):(k==n.length-3||i==_&&n[k+3]>i)&&(g=_-w,u=g-1,i>=_&&(y="right")),u!=null){if(l=n[k+2],w==_&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;k&&n[k-2]==n[k-3]&&n[k-1].insertLeft;)l=n[(k-=3)+2],y="left";if(a=="right"&&u==_-w)for(;k<n.length-3&&n[k+3]==n[k+4]&&!n[k+5].insertLeft;)l=n[(k+=3)+2],y="right";break}return{node:l,start:u,end:g,collapse:y,coverStart:w,coverEnd:_}}function I1(n,i){var a=Kp;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var u=n.length-1;u>=0&&(a=n[u]).left==a.right;u--);return a}function D1(n,i,a,l){var u=Xp(i.map,a,l),g=u.node,y=u.start,w=u.end,_=u.collapse,k;if(g.nodeType==3){for(var z=0;z<4;z++){for(;y&&at(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+w<u.coverEnd&&at(i.line.text.charAt(u.coverStart+w));)++w;if(h&&p<9&&y==0&&w==u.coverEnd-u.coverStart?k=g.parentNode.getBoundingClientRect():k=I1(j(g,y,w).getClientRects(),l),k.left||k.right||y==0)break;w=y,y=y-1,_="right"}h&&p<11&&(k=F1(n.display.measure,k))}else{y>0&&(_=l="right");var W;n.options.lineWrapping&&(W=g.getClientRects()).length>1?k=W[l=="right"?W.length-1:0]:k=g.getBoundingClientRect()}if(h&&p<9&&!y&&(!k||!k.left&&!k.right)){var ee=g.parentNode.getClientRects()[0];ee?k={left:ee.left,right:ee.left+Jo(n.display),top:ee.top,bottom:ee.bottom}:k=Kp}for(var X=k.top-i.rect.top,ce=k.bottom-i.rect.top,ge=(X+ce)/2,xe=i.view.measure.heights,ke=0;ke<xe.length-1&&!(ge<xe[ke]);ke++);var Me=ke?xe[ke-1]:0,Te=xe[ke],Ne={left:(_=="right"?k.right:k.left)-i.rect.left,right:(_=="left"?k.left:k.right)-i.rect.left,top:Me,bottom:Te};return!k.left&&!k.right&&(Ne.bogus=!0),n.options.singleCursorHeightPerLine||(Ne.rtop=X,Ne.rbottom=ce),Ne}function F1(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ef(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*l,bottom:i.bottom*l}}function Yp(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var i=0;i<n.rest.length;i++)n.measure.caches[i]={}}function Zp(n){n.display.externalMeasure=null,O(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)Yp(n.display.view[i])}function il(n){Zp(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function Jp(n){return b&&D?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function Qp(n){return b&&D?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function hf(n){var i=br(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=rl(a[u]));return l}function Ga(n,i,a,l,u){if(!u){var g=hf(i);a.top+=g,a.bottom+=g}if(l=="line")return a;l||(l="local");var y=ti(i);if(l=="local"?y+=Va(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var w=n.display.lineSpace.getBoundingClientRect();y+=w.top+(l=="window"?0:Qp(Qe(n)));var _=w.left+(l=="window"?0:Jp(Qe(n)));a.left+=_,a.right+=_}return a.top+=y,a.bottom+=y,a}function eg(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=Jp(Qe(n)),u-=Qp(Qe(n));else if(a=="local"||!a){var g=n.display.sizer.getBoundingClientRect();l+=g.left,u+=g.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function Ka(n,i,a,l,u){return l||(l=Pe(n.doc,i.line)),Ga(n,l,Gp(n,l,i.ch,u),a)}function wr(n,i,a,l,u,g){l=l||Pe(n.doc,i.line),u||(u=Yo(n,l));function y(ce,ge){var xe=Br(n,u,ce,ge?"right":"left",g);return ge?xe.left=xe.right:xe.right=xe.left,Ga(n,l,xe,a)}var w=tt(l,n.doc.direction),_=i.ch,k=i.sticky;if(_>=l.text.length?(_=l.text.length,k="before"):_<=0&&(_=0,k="after"),!w)return y(k=="before"?_-1:_,k=="before");function z(ce,ge,xe){var ke=w[ge],Me=ke.level==1;return y(xe?ce-1:ce,Me!=xe)}var W=Dt(w,_,k),ee=Ir,X=z(_,W,k=="before");return ee!=null&&(X.other=z(_,ee,k!="before")),X}function tg(n,i){var a=0;i=Ke(n.doc,i),n.options.lineWrapping||(a=Jo(n.display)*i.ch);var l=Pe(n.doc,i.line),u=ti(l)+Va(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function pf(n,i,a,l,u){var g=le(n,i,a);return g.xRel=u,l&&(g.outside=l),g}function gf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return pf(l.first,0,null,-1,-1);var u=B(l,a),g=l.first+l.size-1;if(u>g)return pf(l.first+l.size-1,Pe(l,g).text.length,null,1,1);i<0&&(i=0);for(var y=Pe(l,u);;){var w=H1(n,y,u,i,a),_=p1(y,w.ch+(w.xRel>0||w.outside>0?1:0));if(!_)return w;var k=_.find(1);if(k.line==u)return k;y=Pe(l,u=k.line)}}function ng(n,i,a,l){l-=hf(i);var u=i.text.length,g=Ht(function(y){return Br(n,a,y-1).bottom<=l},u,0);return u=Ht(function(y){return Br(n,a,y).top>l},g,u),{begin:g,end:u}}function rg(n,i,a,l){a||(a=Yo(n,i));var u=Ga(n,i,Br(n,a,l),"line").top;return ng(n,i,a,u)}function vf(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function H1(n,i,a,l,u){u-=ti(i);var g=Yo(n,i),y=hf(i),w=0,_=i.text.length,k=!0,z=tt(i,n.doc.direction);if(z){var W=(n.options.lineWrapping?W1:B1)(n,i,a,g,z,l,u);k=W.level!=1,w=k?W.from:W.to-1,_=k?W.to:W.from-1}var ee=null,X=null,ce=Ht(function(He){var Ie=Br(n,g,He);return Ie.top+=y,Ie.bottom+=y,vf(Ie,l,u,!1)?(Ie.top<=u&&Ie.left<=l&&(ee=He,X=Ie),!0):!1},w,_),ge,xe,ke=!1;if(X){var Me=l-X.left<X.right-l,Te=Me==k;ce=ee+(Te?0:1),xe=Te?"after":"before",ge=Me?X.left:X.right}else{!k&&(ce==_||ce==w)&&ce++,xe=ce==0?"after":ce==i.text.length?"before":Br(n,g,ce-(k?1:0)).bottom+y<=u==k?"after":"before";var Ne=wr(n,le(a,ce,xe),"line",i,g);ge=Ne.left,ke=u<Ne.top?-1:u>=Ne.bottom?1:0}return ce=Vt(i.text,ce,1),pf(a,ce,xe,ke,l-ge)}function B1(n,i,a,l,u,g,y){var w=Ht(function(W){var ee=u[W],X=ee.level!=1;return vf(wr(n,le(a,X?ee.to:ee.from,X?"before":"after"),"line",i,l),g,y,!0)},0,u.length-1),_=u[w];if(w>0){var k=_.level!=1,z=wr(n,le(a,k?_.from:_.to,k?"after":"before"),"line",i,l);vf(z,g,y,!0)&&z.top>y&&(_=u[w-1])}return _}function W1(n,i,a,l,u,g,y){var w=ng(n,i,l,y),_=w.begin,k=w.end;/\s/.test(i.text.charAt(k-1))&&k--;for(var z=null,W=null,ee=0;ee<u.length;ee++){var X=u[ee];if(!(X.from>=k||X.to<=_)){var ce=X.level!=1,ge=Br(n,l,ce?Math.min(k,X.to)-1:Math.max(_,X.from)).right,xe=ge<g?g-ge+1e9:ge-g;(!z||W>xe)&&(z=X,W=xe)}}return z||(z=u[u.length-1]),z.from<_&&(z={from:_,to:z.to,level:z.level}),z.to>k&&(z={from:z.from,to:k,level:z.level}),z}var ho;function Zo(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(ho==null){ho=S("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)ho.appendChild(document.createTextNode("x")),ho.appendChild(S("br"));ho.appendChild(document.createTextNode("x"))}N(n.measure,ho);var a=ho.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),O(n.measure),a||1}function Jo(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=S("span","xxxxxxxxxx"),a=S("pre",[i],"CodeMirror-line-like");N(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function mf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,g=i.gutters.firstChild,y=0;g;g=g.nextSibling,++y){var w=n.display.gutterSpecs[y].className;a[w]=g.offsetLeft+g.clientLeft+u,l[w]=g.clientWidth}return{fixedPos:yf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function yf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function ig(n){var i=Zo(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/Jo(n.display)-3);return function(u){if(Li(n.doc,u))return 0;var g=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(g+=u.widgets[y].height);return a?g+(Math.ceil(u.text.length/l)||1)*i:g+i}}function bf(n){var i=n.doc,a=ig(n);i.iter(function(l){var u=a(l);u!=l.height&&Yn(l,u)})}function po(n,i,a,l){var u=n.display;if(!a&&Xs(i).getAttribute("cm-not-content")=="true")return null;var g,y,w=u.lineSpace.getBoundingClientRect();try{g=i.clientX-w.left,y=i.clientY-w.top}catch{return null}var _=gf(n,g,y),k;if(l&&_.xRel>0&&(k=Pe(n.doc,_.line).text).length==_.ch){var z=V(k,k.length,n.options.tabSize)-k.length;_=le(_.line,Math.max(0,Math.round((g-Up(n.display).left)/Jo(n.display))-z))}return _}function go(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function Sn(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)ei&&sf(n.doc,i)<u.viewTo&&$i(n);else if(a<=u.viewFrom)ei&&Rp(n.doc,a+l)>u.viewFrom?$i(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)$i(n);else if(i<=u.viewFrom){var g=Xa(n,a,a+l,1);g?(u.view=u.view.slice(g.index),u.viewFrom=g.lineN,u.viewTo+=l):$i(n)}else if(a>=u.viewTo){var y=Xa(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):$i(n)}else{var w=Xa(n,i,i,-1),_=Xa(n,a,a+l,1);w&&_?(u.view=u.view.slice(0,w.index).concat(Ua(n,w.lineN,_.lineN)).concat(u.view.slice(_.index)),u.viewTo+=l):$i(n)}var k=u.externalMeasured;k&&(a<k.lineN?k.lineN+=l:i<k.lineN+k.size&&(u.externalMeasured=null))}function Mi(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var g=l.view[go(n,i)];if(g.node!=null){var y=g.changes||(g.changes=[]);pe(y,a)==-1&&y.push(a)}}}function $i(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function Xa(n,i,a,l){var u=go(n,i),g,y=n.display.view;if(!ei||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var w=n.display.viewFrom,_=0;_<u;_++)w+=y[_].size;if(w!=i){if(l>0){if(u==y.length-1)return null;g=w+y[u].size-i,u++}else g=w-i;i+=g,a+=g}for(;sf(n.doc,a)!=a;){if(u==(l<0?0:y.length-1))return null;a+=l*y[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function q1(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=Ua(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=Ua(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(go(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(Ua(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,go(n,a)))),l.viewTo=a}function og(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function ol(n){n.display.input.showSelection(n.display.input.prepareSelection())}function sg(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),g=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var w=0;w<a.sel.ranges.length;w++)if(!(!i&&w==a.sel.primIndex)){var _=a.sel.ranges[w];if(!(_.from().line>=n.display.viewTo||_.to().line<n.display.viewFrom)){var k=_.empty();if(y){var z=y(n,_);z&&wf(n,z,u)}else(k||n.options.showCursorWhenSelecting)&&wf(n,_.head,u);k||j1(n,_,g)}}return l}function wf(n,i,a){var l=wr(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(S("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var g=Ka(n,i,"div",null,null),y=g.right-g.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var w=a.appendChild(S("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));w.style.display="",w.style.left=l.other.left+"px",w.style.top=l.other.top+"px",w.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Ya(n,i){return n.top-i.top||n.left-i.left}function j1(n,i,a){var l=n.display,u=n.doc,g=document.createDocumentFragment(),y=Up(n.display),w=y.left,_=Math.max(l.sizerWidth,fo(n)-l.sizer.offsetLeft)-y.right,k=u.direction=="ltr";function z(Te,Ne,He,Ie){Ne<0&&(Ne=0),Ne=Math.round(Ne),Ie=Math.round(Ie),g.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px;
|
|
24
|
+
top: `+Ne+"px; width: "+(He??_-Te)+`px;
|
|
25
|
+
height: `+(Ie-Ne)+"px"))}function W(Te,Ne,He){var Ie=Pe(u,Te),et=Ie.text.length,xt,Zt;function $t(Bt,Cn){return Ka(n,le(Te,Bt),"div",Ie,Cn)}function Bn(Bt,Cn,nn){var jt=rg(n,Ie,null,Bt),Wt=Cn=="ltr"==(nn=="after")?"left":"right",zt=nn=="after"?jt.begin:jt.end-(/\s/.test(Ie.text.charAt(jt.end-1))?2:1);return $t(zt,Wt)[Wt]}var Tn=tt(Ie,u.direction);return In(Tn,Ne||0,He??et,function(Bt,Cn,nn,jt){var Wt=nn=="ltr",zt=$t(Bt,Wt?"left":"right"),En=$t(Cn-1,Wt?"right":"left"),fs=Ne==null&&Bt==0,Ii=He==null&&Cn==et,an=jt==0,Wr=!Tn||jt==Tn.length-1;if(En.top-zt.top<=3){var Jt=(k?fs:Ii)&&an,Gf=(k?Ii:fs)&&Wr,oi=Jt?w:(Wt?zt:En).left,wo=Gf?_:(Wt?En:zt).right;z(oi,zt.top,wo-oi,zt.bottom)}else{var xo,pn,ds,Kf;Wt?(xo=k&&fs&&an?w:zt.left,pn=k?_:Bn(Bt,nn,"before"),ds=k?w:Bn(Cn,nn,"after"),Kf=k&&Ii&&Wr?_:En.right):(xo=k?Bn(Bt,nn,"before"):w,pn=!k&&fs&&an?_:zt.right,ds=!k&&Ii&&Wr?w:En.left,Kf=k?Bn(Cn,nn,"after"):_),z(xo,zt.top,pn-xo,zt.bottom),zt.bottom<En.top&&z(w,zt.bottom,null,En.top),z(ds,En.top,Kf-ds,En.bottom)}(!xt||Ya(zt,xt)<0)&&(xt=zt),Ya(En,xt)<0&&(xt=En),(!Zt||Ya(zt,Zt)<0)&&(Zt=zt),Ya(En,Zt)<0&&(Zt=En)}),{start:xt,end:Zt}}var ee=i.from(),X=i.to();if(ee.line==X.line)W(ee.line,ee.ch,X.ch);else{var ce=Pe(u,ee.line),ge=Pe(u,X.line),xe=br(ce)==br(ge),ke=W(ee.line,ee.ch,xe?ce.text.length+1:null).end,Me=W(X.line,xe?0:null,X.ch).start;xe&&(ke.top<Me.top-2?(z(ke.right,ke.top,null,ke.bottom),z(w,Me.top,Me.left,Me.bottom)):z(ke.right,ke.top,Me.left-ke.right,ke.bottom)),ke.bottom<Me.top&&z(w,ke.bottom,null,Me.top)}a.appendChild(g)}function xf(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||Qo(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function lg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Sf(n))}function _f(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&Qo(n))},100)}function Sf(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Ot(n,"focus",n,i),n.state.focused=!0,Se(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),v&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),xf(n))}function Qo(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Ot(n,"blur",n,i),n.state.focused=!1,P(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function Za(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,g=0,y=0;y<i.view.length;y++){var w=i.view[y],_=n.options.lineWrapping,k=void 0,z=0;if(!w.hidden){if(u+=w.line.height,h&&p<8){var W=w.node.offsetTop+w.node.offsetHeight;k=W-a,a=W}else{var ee=w.node.getBoundingClientRect();k=ee.bottom-ee.top,!_&&w.text.firstChild&&(z=w.text.firstChild.getBoundingClientRect().right-ee.left-1)}var X=w.line.height-k;if((X>.005||X<-.005)&&(u<l&&(g-=X),Yn(w.line,k),ag(w.line),w.rest))for(var ce=0;ce<w.rest.length;ce++)ag(w.rest[ce]);if(z>n.display.sizerWidth){var ge=Math.ceil(z/Jo(n.display));ge>n.display.maxLineLength&&(n.display.maxLineLength=ge,n.display.maxLine=w.line,n.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(i.scroller.scrollTop+=g)}function ag(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],l=a.node.parentNode;l&&(a.height=l.offsetHeight)}}function Ja(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-Va(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,g=B(i,l),y=B(i,u);if(a&&a.ensure){var w=a.ensure.from.line,_=a.ensure.to.line;w<g?(g=w,y=B(i,ti(Pe(i,w))+n.wrapper.clientHeight)):Math.min(_,i.lastLine())>=y&&(g=B(i,ti(Pe(i,_))-n.wrapper.clientHeight),y=_)}return{from:g,to:Math.max(y,g+1)}}function U1(n,i){if(!Pt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,g=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(u=!1),u!=null&&!L){var y=S("div","",null,`position: absolute;
|
|
26
|
+
top: `+(i.top-a.viewOffset-Va(n.display))+`px;
|
|
27
|
+
height: `+(i.bottom-i.top+Hr(n)+a.barHeight)+`px;
|
|
28
|
+
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function V1(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?le(i.line,i.ch+1,"before"):i,i=i.ch?le(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var g=0;g<5;g++){var y=!1,w=wr(n,i),_=!a||a==i?w:wr(n,a);u={left:Math.min(w.left,_.left),top:Math.min(w.top,_.top)-l,right:Math.max(w.left,_.left),bottom:Math.max(w.bottom,_.bottom)+l};var k=kf(n,u),z=n.doc.scrollTop,W=n.doc.scrollLeft;if(k.scrollTop!=null&&(ll(n,k.scrollTop),Math.abs(n.doc.scrollTop-z)>1&&(y=!0)),k.scrollLeft!=null&&(vo(n,k.scrollLeft),Math.abs(n.doc.scrollLeft-W)>1&&(y=!0)),!y)break}return u}function G1(n,i){var a=kf(n,i);a.scrollTop!=null&&ll(n,a.scrollTop),a.scrollLeft!=null&&vo(n,a.scrollLeft)}function kf(n,i){var a=n.display,l=Zo(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,g=ff(n),y={};i.bottom-i.top>g&&(i.bottom=i.top+g);var w=n.doc.height+uf(a),_=i.top<l,k=i.bottom>w-l;if(i.top<u)y.scrollTop=_?0:i.top;else if(i.bottom>u+g){var z=Math.min(i.top,(k?w:i.bottom)-g);z!=u&&(y.scrollTop=z)}var W=n.options.fixedGutter?0:a.gutters.offsetWidth,ee=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-W,X=fo(n)-a.gutters.offsetWidth,ce=i.right-i.left>X;return ce&&(i.right=i.left+X),i.left<10?y.scrollLeft=0:i.left<ee?y.scrollLeft=Math.max(0,i.left+W-(ce?0:10)):i.right>X+ee-3&&(y.scrollLeft=i.right+(ce?0:10)-X),y}function Tf(n,i){i!=null&&(Qa(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function es(n){Qa(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function sl(n,i,a){(i!=null||a!=null)&&Qa(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function K1(n,i){Qa(n),n.curOp.scrollToPos=i}function Qa(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=tg(n,i.from),l=tg(n,i.to);cg(n,a,l,i.margin)}}function cg(n,i,a,l){var u=kf(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});sl(n,u.scrollLeft,u.scrollTop)}function ll(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||Ef(n,{top:i}),ug(n,i,!0),s&&Ef(n),ul(n,100))}function ug(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function vo(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,gg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function al(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+uf(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+Hr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var mo=function(n,i,a){this.cm=a;var l=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Fe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Fe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};mo.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var g=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},mo.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mo.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mo.prototype.zeroWidthHack=function(){var n=I&&!A?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ae,this.disableVert=new ae},mo.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),g=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);g!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},mo.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var cl=function(){};cl.prototype.update=function(){return{bottom:0,right:0}},cl.prototype.setScrollLeft=function(){},cl.prototype.setScrollTop=function(){},cl.prototype.clear=function(){};function ts(n,i){i||(i=al(n));var a=n.display.barWidth,l=n.display.barHeight;fg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&Za(n),fg(n,al(n)),a=n.display.barWidth,l=n.display.barHeight}function fg(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var dg={native:mo,null:cl};function hg(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&P(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new dg[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Fe(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?vo(n,i):ll(n,i)},n),n.display.scrollbars.addClass&&Se(n.display.wrapper,n.display.scrollbars.addClass)}var X1=0;function yo(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++X1,markArrays:null},C1(n.curOp)}function bo(n){var i=n.curOp;i&&A1(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Y1(a)})}function Y1(n){for(var i=n.ops,a=0;a<i.length;a++)Z1(i[a]);for(var l=0;l<i.length;l++)J1(i[l]);for(var u=0;u<i.length;u++)Q1(i[u]);for(var g=0;g<i.length;g++)e_(i[g]);for(var y=0;y<i.length;y++)t_(i[y])}function Z1(n){var i=n.cm,a=i.display;r_(i),n.updateMaxLine&&af(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<a.viewFrom||n.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new ec(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function J1(n){n.updatedDisplay=n.mustUpdate&&Cf(n.cm,n.update)}function Q1(n){var i=n.cm,a=i.display;n.updatedDisplay&&Za(i),n.barMeasure=al(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=Gp(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+Hr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-fo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function e_(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&vo(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==me(Xe(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&ts(i,n.barMeasure),n.updatedDisplay&&Lf(i,n.barMeasure),n.selectionChanged&&xf(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&lg(n.cm)}function t_(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&pg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&ug(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&vo(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=V1(i,Ke(l,n.scrollToPos.from),Ke(l,n.scrollToPos.to),n.scrollToPos.margin);U1(i,u)}var g=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(g)for(var w=0;w<g.length;++w)g[w].lines.length||Ot(g[w],"hide");if(y)for(var _=0;_<y.length;++_)y[_].lines.length&&Ot(y[_],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Ot(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Hn(n,i){if(n.curOp)return i();yo(n);try{return i()}finally{bo(n)}}function Xt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);yo(n);try{return i.apply(n,arguments)}finally{bo(n)}}}function hn(n){return function(){if(this.curOp)return n.apply(this,arguments);yo(this);try{return n.apply(this,arguments)}finally{bo(this)}}}function Yt(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);yo(i);try{return n.apply(this,arguments)}finally{bo(i)}}}function ul(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,H(n_,n))}function n_(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=Qs(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(g){if(l.line>=n.display.viewFrom){var y=g.styles,w=g.text.length>n.options.maxHighlightLength?Dr(i.mode,l.state):null,_=xp(n,g,l,!0);w&&(l.state=w),g.styles=_.styles;var k=g.styleClasses,z=_.classes;z?g.styleClasses=z:k&&(g.styleClasses=null);for(var W=!y||y.length!=g.styles.length||k!=z&&(!k||!z||k.bgClass!=z.bgClass||k.textClass!=z.textClass),ee=0;!W&&ee<y.length;++ee)W=y[ee]!=g.styles[ee];W&&u.push(l.line),g.stateAfter=l.save(),l.nextLine()}else g.text.length<=n.options.maxHighlightLength&&tf(n,g.text,l),g.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return ul(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Hn(n,function(){for(var g=0;g<u.length;g++)Mi(n,u[g],"text")})}}var ec=function(n,i,a){var l=n.display;this.viewport=i,this.visible=Ja(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=fo(n),this.force=a,this.dims=mf(n),this.events=[]};ec.prototype.signal=function(n,i){Fn(n,i)&&this.events.push(arguments)},ec.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Ot.apply(null,this.events[n])};function r_(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Hr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Hr(n)+"px",i.scrollbarsClipped=!0)}function i_(n){if(n.hasFocus())return null;var i=me(Xe(n));if(!i||!oe(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=te(n).getSelection();l.anchorNode&&l.extend&&oe(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function o_(n){if(!(!n||!n.activeElt||n.activeElt==me(Ye(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&oe(document.body,n.anchorNode)&&oe(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function Cf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return $i(n),!1;if(!i.force&&i.visible.from>=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&og(n)==0)return!1;vg(n)&&($i(n),i.dims=mf(n));var u=l.first+l.size,g=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<g&&g-a.viewFrom<20&&(g=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),ei&&(g=sf(n.doc,g),y=Rp(n.doc,y));var w=g!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;q1(n,g,y),a.viewOffset=ti(Pe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var _=og(n);if(!w&&_==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var k=i_(n);return _>4&&(a.lineDiv.style.display="none"),s_(n,a.updateLineNumbers,i.dims),_>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,o_(k),O(a.cursorDiv),O(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,w&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,ul(n,400)),a.updateLineNumbers=null,!0}function pg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==fo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+uf(n.display)-ff(n),a.top)}),i.visible=Ja(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=Ja(n.display,n.doc,a));if(!Cf(n,i))break;Za(n);var u=al(n);ol(n),ts(n,u),Lf(n,u),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function Ef(n,i){var a=new ec(n,i);if(Cf(n,a)){Za(n),pg(n,a);var l=al(n);ol(n),ts(n,l),Lf(n,l),a.finish()}}function s_(n,i,a){var l=n.display,u=n.options.lineNumbers,g=l.lineDiv,y=g.firstChild;function w(ce){var ge=ce.nextSibling;return v&&I&&n.display.currentWheelTarget==ce?ce.style.display="none":ce.parentNode.removeChild(ce),ge}for(var _=l.view,k=l.viewFrom,z=0;z<_.length;z++){var W=_[z];if(!W.hidden)if(!W.node||W.node.parentNode!=g){var ee=O1(n,W,k,a);g.insertBefore(ee,y)}else{for(;y!=W.node;)y=w(y);var X=u&&i!=null&&i<=k&&W.lineNumber;W.changes&&(pe(W.changes,"gutter")>-1&&(X=!1),Hp(n,W,k,a)),X&&(O(W.lineNumber),W.lineNumber.appendChild(document.createTextNode(we(n.options,k)))),y=W.node.nextSibling}k+=W.size}for(;y;)y=w(y)}function Af(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Kt(n,"gutterChanged",n)}function Lf(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+Hr(n)+"px"}function gg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=yf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,g=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=g),a[y].gutterBackground&&(a[y].gutterBackground.style.left=g));var w=a[y].alignable;if(w)for(var _=0;_<w.length;_++)w[_].style.left=g}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function vg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=we(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(S("div",[S("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=u.firstChild.offsetWidth,y=u.offsetWidth-g;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(g,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Af(n.display),!0}return!1}function Mf(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var g=n[u],y=null;if(typeof g!="string"&&(y=g.style,g=g.className),g=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:g,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function mg(n){var i=n.gutters,a=n.gutterSpecs;O(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],g=u.className,y=u.style,w=i.appendChild(S("div",null,"CodeMirror-gutter "+g));y&&(w.style.cssText=y),g=="CodeMirror-linenumbers"&&(n.lineGutter=w,w.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",Af(n)}function fl(n){mg(n.display),Sn(n),gg(n)}function l_(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=F("div",null,"CodeMirror-code"),u.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=S("div",null,"CodeMirror-cursors"),u.measure=S("div",null,"CodeMirror-measure"),u.lineMeasure=S("div",null,"CodeMirror-measure"),u.lineSpace=F("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var g=F("div",[u.lineSpace],"CodeMirror-lines");u.mover=S("div",[g],null,"position: relative"),u.sizer=S("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=S("div",null,null,"position: absolute; height: "+R+"px; width: 1px;"),u.gutters=S("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=S("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=S("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&x>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!v&&!(s&&E)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=Mf(l.gutters,l.lineNumbers),mg(u),a.init(u)}var tc=0,ri=null;h?ri=-.53:s?ri=15:b?ri=-.7:M&&(ri=-1/3);function yg(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function a_(n){var i=yg(n);return i.x*=ri,i.y*=ri,i}function bg(n,i){b&&x==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=yg(i),l=a.x,u=a.y,g=ri;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,g=1);var y=n.display,w=y.scroller,_=w.scrollWidth>w.clientWidth,k=w.scrollHeight>w.clientHeight;if(l&&_||u&&k){if(u&&I&&v){e:for(var z=i.target,W=y.view;z!=w;z=z.parentNode)for(var ee=0;ee<W.length;ee++)if(W[ee].node==z){n.display.currentWheelTarget=z;break e}}if(l&&!s&&!C&&g!=null){u&&k&&ll(n,Math.max(0,w.scrollTop+u*g)),vo(n,Math.max(0,w.scrollLeft+l*g)),(!u||u&&k)&&sn(i),y.wheelStartX=null;return}if(u&&g!=null){var X=u*g,ce=n.doc.scrollTop,ge=ce+y.wrapper.clientHeight;X<0?ce=Math.max(0,ce+X-50):ge=Math.min(n.doc.height,ge+X+50),Ef(n,{top:ce,bottom:ge})}tc<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=w.scrollLeft,y.wheelStartY=w.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var xe=w.scrollLeft-y.wheelStartX,ke=w.scrollTop-y.wheelStartY,Me=ke&&y.wheelDY&&ke/y.wheelDY||xe&&y.wheelDX&&xe/y.wheelDX;y.wheelStartX=y.wheelStartY=null,Me&&(ri=(ri*tc+Me)/(tc+1),++tc)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var Zn=function(n,i){this.ranges=n,this.primIndex=i};Zn.prototype.primary=function(){return this.ranges[this.primIndex]},Zn.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!pt(a.anchor,l.anchor)||!pt(a.head,l.head))return!1}return!0},Zn.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new gt(Gt(this.ranges[i].anchor),Gt(this.ranges[i].head));return new Zn(n,this.primIndex)},Zn.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},Zn.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Le(i,l.from())>=0&&Le(n,l.to())<=0)return a}return-1};var gt=function(n,i){this.anchor=n,this.head=i};gt.prototype.from=function(){return Go(this.anchor,this.head)},gt.prototype.to=function(){return _n(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function xr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(ee,X){return Le(ee.from(),X.from())}),a=pe(i,u);for(var g=1;g<i.length;g++){var y=i[g],w=i[g-1],_=Le(w.to(),y.from());if(l&&!y.empty()?_>0:_>=0){var k=Go(w.from(),y.from()),z=_n(w.to(),y.to()),W=w.empty()?y.from()==y.head:w.from()==w.head;g<=a&&--a,i.splice(--g,2,new gt(W?z:k,W?k:z))}}return new Zn(i,a)}function Ni(n,i){return new Zn([new gt(n,i||n)],0)}function Oi(n){return n.text?le(n.from.line+n.text.length-1,ve(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function wg(n,i){if(Le(n,i.from)<0)return n;if(Le(n,i.to)<=0)return Oi(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=Oi(i).ch-i.to.ch),le(a,l)}function $f(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new gt(wg(u.anchor,i),wg(u.head,i)))}return xr(n.cm,a,n.sel.primIndex)}function xg(n,i,a){return n.line==i.line?le(a.line,n.ch-i.ch+a.ch):le(a.line+(n.line-i.line),n.ch)}function c_(n,i,a){for(var l=[],u=le(n.first,0),g=u,y=0;y<i.length;y++){var w=i[y],_=xg(w.from,u,g),k=xg(Oi(w),u,g);if(u=w.to,g=k,a=="around"){var z=n.sel.ranges[y],W=Le(z.head,z.anchor)<0;l[y]=new gt(W?k:_,W?_:k)}else l[y]=new gt(_,_)}return new Zn(l,n.sel.primIndex)}function Nf(n){n.doc.mode=jo(n.options,n.doc.modeOption),dl(n)}function dl(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,ul(n,100),n.state.modeGen++,n.curOp&&Sn(n)}function _g(n,i){return i.from.ch==0&&i.to.ch==0&&ve(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Of(n,i,a,l){function u(Me){return a?a[Me]:null}function g(Me,Te,Ne){m1(Me,Te,Ne,l),Kt(Me,"change",Me,i)}function y(Me,Te){for(var Ne=[],He=Me;He<Te;++He)Ne.push(new Ko(k[He],u(He),l));return Ne}var w=i.from,_=i.to,k=i.text,z=Pe(n,w.line),W=Pe(n,_.line),ee=ve(k),X=u(k.length-1),ce=_.line-w.line;if(i.full)n.insert(0,y(0,k.length)),n.remove(k.length,n.size-k.length);else if(_g(n,i)){var ge=y(0,k.length-1);g(W,W.text,X),ce&&n.remove(w.line,ce),ge.length&&n.insert(w.line,ge)}else if(z==W)if(k.length==1)g(z,z.text.slice(0,w.ch)+ee+z.text.slice(_.ch),X);else{var xe=y(1,k.length-1);xe.push(new Ko(ee+z.text.slice(_.ch),X,l)),g(z,z.text.slice(0,w.ch)+k[0],u(0)),n.insert(w.line+1,xe)}else if(k.length==1)g(z,z.text.slice(0,w.ch)+k[0]+W.text.slice(_.ch),u(0)),n.remove(w.line+1,ce);else{g(z,z.text.slice(0,w.ch)+k[0],u(0)),g(W,ee+W.text.slice(_.ch),X);var ke=y(1,k.length-1);ce>1&&n.remove(w.line+1,ce-1),n.insert(w.line+1,ke)}Kt(n,"change",n,i)}function Pi(n,i,a){function l(u,g,y){if(u.linked)for(var w=0;w<u.linked.length;++w){var _=u.linked[w];if(_.doc!=g){var k=y&&_.sharedHist;a&&!k||(i(_.doc,k),l(_.doc,u,k))}}}l(n,null,!0)}function Sg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,bf(n),Nf(n),kg(n),n.options.direction=i.direction,n.options.lineWrapping||af(n),n.options.mode=i.modeOption,Sn(n)}function kg(n){(n.doc.direction=="rtl"?Se:P)(n.display.lineDiv,"CodeMirror-rtl")}function u_(n){Hn(n,function(){kg(n),Sn(n)})}function nc(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function Pf(n,i){var a={from:Gt(i.from),to:Oi(i),text:Qr(n,i.from,i.to)};return Eg(n,a,i.from.line,i.to.line+1),Pi(n,function(l){return Eg(l,a,i.from.line,i.to.line+1)},!0),a}function Tg(n){for(;n.length;){var i=ve(n);if(i.ranges)n.pop();else break}}function f_(n,i){if(i)return Tg(n.done),ve(n.done);if(n.done.length&&!ve(n.done).ranges)return ve(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),ve(n.done)}function Cg(n,i,a,l){var u=n.history;u.undone.length=0;var g=+new Date,y,w;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>g-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=f_(u,u.lastOp==l)))w=ve(y.changes),Le(i.from,i.to)==0&&Le(i.from,w.to)==0?w.to=Oi(i):y.changes.push(Pf(n,i));else{var _=ve(u.done);for((!_||!_.ranges)&&rc(n.sel,u.done),y={changes:[Pf(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=g,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,w||Ot(n,"historyAdded")}function d_(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function h_(n,i,a,l){var u=n.history,g=l&&l.origin;a==u.lastSelOp||g&&u.lastSelOrigin==g&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==g||d_(n,g,ve(u.done),i))?u.done[u.done.length-1]=i:rc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=g,u.lastSelOp=a,l&&l.clearRedo!==!1&&Tg(u.undone)}function rc(n,i){var a=ve(i);a&&a.ranges&&a.equals(n)||i.push(n)}function Eg(n,i,a,l){var u=i["spans_"+n.id],g=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[g]=y.markedSpans),++g})}function p_(n){if(!n)return null;for(var i,a=0;a<n.length;++a)n[a].marker.explicitlyCleared?i||(i=n.slice(0,a)):i&&i.push(n[a]);return i?i.length?i:null:n}function g_(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(p_(a[u]));return l}function Ag(n,i){var a=g_(n,i),l=rf(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var g=a[u],y=l[u];if(g&&y)e:for(var w=0;w<y.length;++w){for(var _=y[w],k=0;k<g.length;++k)if(g[k].marker==_.marker)continue e;g.push(_)}else y&&(a[u]=y)}return a}function ns(n,i,a){for(var l=[],u=0;u<n.length;++u){var g=n[u];if(g.ranges){l.push(a?Zn.prototype.deepCopy.call(g):g);continue}var y=g.changes,w=[];l.push({changes:w});for(var _=0;_<y.length;++_){var k=y[_],z=void 0;if(w.push({from:k.from,to:k.to,text:k.text}),i)for(var W in k)(z=W.match(/^spans_(\d+)$/))&&pe(i,Number(z[1]))>-1&&(ve(w)[W]=k[W],delete k[W])}}return l}function Rf(n,i,a,l){if(l){var u=n.anchor;if(a){var g=Le(i,u)<0;g!=Le(a,u)<0?(u=i,i=a):g!=Le(i,a)<0&&(i=a)}return new gt(u,i)}else return new gt(a||i,i)}function ic(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),ln(n,new Zn([Rf(n.sel.primary(),i,a,u)],0),l)}function Lg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),g=0;g<n.sel.ranges.length;g++)l[g]=Rf(n.sel.ranges[g],i[g],null,u);var y=xr(n.cm,l,n.sel.primIndex);ln(n,y,a)}function zf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,ln(n,xr(n.cm,u,n.sel.primIndex),l)}function Mg(n,i,a,l){ln(n,Ni(i,a),l)}function v_(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var g=0;g<u.length;g++)this.ranges[g]=new gt(Ke(n,u[g].anchor),Ke(n,u[g].head))},origin:a&&a.origin};return Ot(n,"beforeSelectionChange",n,l),n.cm&&Ot(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?xr(n.cm,l.ranges,l.ranges.length-1):i}function $g(n,i,a){var l=n.history.done,u=ve(l);u&&u.ranges?(l[l.length-1]=i,oc(n,i,a)):ln(n,i,a)}function ln(n,i,a){oc(n,i,a),h_(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function oc(n,i,a){(Fn(n,"beforeSelectionChange")||n.cm&&Fn(n.cm,"beforeSelectionChange"))&&(i=v_(n,i,a));var l=a&&a.bias||(Le(i.primary().head,n.sel.primary().head)<0?-1:1);Ng(n,Pg(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&es(n.cm)}function Ng(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,or(n.cm)),Kt(n,"cursorActivity",n))}function Og(n){Ng(n,Pg(n,n.sel,null,!1))}function Pg(n,i,a,l){for(var u,g=0;g<i.ranges.length;g++){var y=i.ranges[g],w=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[g],_=sc(n,y.anchor,w&&w.anchor,a,l),k=y.head==y.anchor?_:sc(n,y.head,w&&w.head,a,l);(u||_!=y.anchor||k!=y.head)&&(u||(u=i.ranges.slice(0,g)),u[g]=new gt(_,k))}return u?xr(n.cm,u,i.primIndex):i}function rs(n,i,a,l,u){var g=Pe(n,i.line);if(g.markedSpans)for(var y=0;y<g.markedSpans.length;++y){var w=g.markedSpans[y],_=w.marker,k="selectLeft"in _?!_.selectLeft:_.inclusiveLeft,z="selectRight"in _?!_.selectRight:_.inclusiveRight;if((w.from==null||(k?w.from<=i.ch:w.from<i.ch))&&(w.to==null||(z?w.to>=i.ch:w.to>i.ch))){if(u&&(Ot(_,"beforeCursorEnter"),_.explicitlyCleared))if(g.markedSpans){--y;continue}else break;if(!_.atomic)continue;if(a){var W=_.find(l<0?1:-1),ee=void 0;if((l<0?z:k)&&(W=Rg(n,W,-l,W&&W.line==i.line?g:null)),W&&W.line==i.line&&(ee=Le(W,a))&&(l<0?ee<0:ee>0))return rs(n,W,i,l,u)}var X=_.find(l<0?-1:1);return(l<0?k:z)&&(X=Rg(n,X,l,X.line==i.line?g:null)),X?rs(n,X,i,l,u):null}}return i}function sc(n,i,a,l,u){var g=l||1,y=rs(n,i,a,g,u)||!u&&rs(n,i,a,g,!0)||rs(n,i,a,-g,u)||!u&&rs(n,i,a,-g,!0);return y||(n.cantEdit=!0,le(n.first,0))}function Rg(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?Ke(n,le(i.line-1)):null:a>0&&i.ch==(l||Pe(n,i.line)).text.length?i.line<n.first+n.size-1?le(i.line+1,0):null:new le(i.line,i.ch+a)}function zg(n){n.setSelection(le(n.firstLine(),0),le(n.lastLine()),K)}function Ig(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,g,y,w){u&&(l.from=Ke(n,u)),g&&(l.to=Ke(n,g)),y&&(l.text=y),w!==void 0&&(l.origin=w)}),Ot(n,"beforeChange",n,l),n.cm&&Ot(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function is(n,i,a){if(n.cm){if(!n.cm.curOp)return Xt(n.cm,is)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Fn(n,"beforeChange")||n.cm&&Fn(n.cm,"beforeChange"))&&(i=Ig(n,i,!0),!i))){var l=Ap&&!a&&h1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)Dg(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else Dg(n,i)}}function Dg(n,i){if(!(i.text.length==1&&i.text[0]==""&&Le(i.from,i.to)==0)){var a=$f(n,i);Cg(n,i,a,n.cm?n.cm.curOp.id:NaN),hl(n,i,a,rf(n,i));var l=[];Pi(n,function(u,g){!g&&pe(l,u.history)==-1&&(Wg(u.history,i),l.push(u.history)),hl(u,i,null,rf(u,i))})}}function lc(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,g,y=n.sel,w=i=="undo"?u.done:u.undone,_=i=="undo"?u.undone:u.done,k=0;k<w.length&&(g=w[k],!(a?g.ranges&&!g.equals(n.sel):!g.ranges));k++);if(k!=w.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(g=w.pop(),g.ranges){if(rc(g,_),a&&!g.equals(n.sel)){ln(n,g,{clearRedo:!1});return}y=g}else if(l){w.push(g);return}else break;var z=[];rc(y,_),_.push({changes:z,generation:u.generation}),u.generation=g.generation||++u.maxGeneration;for(var W=Fn(n,"beforeChange")||n.cm&&Fn(n.cm,"beforeChange"),ee=function(ge){var xe=g.changes[ge];if(xe.origin=i,W&&!Ig(n,xe,!1))return w.length=0,{};z.push(Pf(n,xe));var ke=ge?$f(n,xe):ve(w);hl(n,xe,ke,Ag(n,xe)),!ge&&n.cm&&n.cm.scrollIntoView({from:xe.from,to:Oi(xe)});var Me=[];Pi(n,function(Te,Ne){!Ne&&pe(Me,Te.history)==-1&&(Wg(Te.history,xe),Me.push(Te.history)),hl(Te,xe,null,Ag(Te,xe))})},X=g.changes.length-1;X>=0;--X){var ce=ee(X);if(ce)return ce.v}}}}function Fg(n,i){if(i!=0&&(n.first+=i,n.sel=new Zn(be(n.sel.ranges,function(u){return new gt(le(u.anchor.line+i,u.anchor.ch),le(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){Sn(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Mi(n.cm,l,"gutter")}}function hl(n,i,a,l){if(n.cm&&!n.cm.curOp)return Xt(n.cm,hl)(n,i,a,l);if(i.to.line<n.first){Fg(n,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>n.lastLine())){if(i.from.line<n.first){var u=i.text.length-1-(n.first-i.from.line);Fg(n,u),i={from:le(n.first,0),to:le(i.to.line+u,i.to.ch),text:[ve(i.text)],origin:i.origin}}var g=n.lastLine();i.to.line>g&&(i={from:i.from,to:le(g,Pe(n,g).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Qr(n,i.from,i.to),a||(a=$f(n,i)),n.cm?m_(n.cm,i,l):Of(n,i,l),oc(n,a,K),n.cantEdit&&sc(n,le(n.firstLine(),0))&&(n.cantEdit=!1)}}function m_(n,i,a){var l=n.doc,u=n.display,g=i.from,y=i.to,w=!1,_=g.line;n.options.lineWrapping||(_=T(br(Pe(l,g.line))),l.iter(_,y.line+1,function(X){if(X==u.maxLine)return w=!0,!0})),l.sel.contains(i.from,i.to)>-1&&or(n),Of(l,i,a,ig(n)),n.options.lineWrapping||(l.iter(_,g.line+i.text.length,function(X){var ce=ja(X);ce>u.maxLineLength&&(u.maxLine=X,u.maxLineLength=ce,u.maxLineChanged=!0,w=!1)}),w&&(n.curOp.updateMaxLine=!0)),s1(l,g.line),ul(n,400);var k=i.text.length-(y.line-g.line)-1;i.full?Sn(n):g.line==y.line&&i.text.length==1&&!_g(n.doc,i)?Mi(n,g.line,"text"):Sn(n,g.line,y.line+1,k);var z=Fn(n,"changes"),W=Fn(n,"change");if(W||z){var ee={from:g,to:y,text:i.text,removed:i.removed,origin:i.origin};W&&Kt(n,"change",n,ee),z&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(ee)}n.display.selForContextMenu=null}function os(n,i,a,l,u){var g;l||(l=a),Le(l,a)<0&&(g=[l,a],a=g[0],l=g[1]),typeof i=="string"&&(i=n.splitLines(i)),is(n,{from:a,to:l,text:i,origin:u})}function Hg(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function Bg(n,i,a,l){for(var u=0;u<n.length;++u){var g=n[u],y=!0;if(g.ranges){g.copied||(g=n[u]=g.deepCopy(),g.copied=!0);for(var w=0;w<g.ranges.length;w++)Hg(g.ranges[w].anchor,i,a,l),Hg(g.ranges[w].head,i,a,l);continue}for(var _=0;_<g.changes.length;++_){var k=g.changes[_];if(a<k.from.line)k.from=le(k.from.line+l,k.from.ch),k.to=le(k.to.line+l,k.to.ch);else if(i<=k.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function Wg(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;Bg(n.done,a,l,u),Bg(n.undone,a,l,u)}function pl(n,i,a,l){var u=i,g=i;return typeof i=="number"?g=Pe(n,bp(n,i)):u=T(i),u==null?null:(l(g,u)&&n.cm&&Mi(n.cm,u,a),g)}function gl(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}gl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,y1(u),Kt(u,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,a){this.height+=a,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(n,i,a){for(var l=n+i;n<l;++n)if(a(this.lines[n]))return!0}};function vl(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var u=n[l];i+=u.chunkSize(),a+=u.height,u.parent=this}this.size=i,this.height=a,this.parent=null}vl.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],u=l.chunkSize();if(n<u){var g=Math.min(i,u-n),y=l.height;if(l.removeInner(n,g),this.height-=y-l.height,u==g&&(this.children.splice(a--,1),l.parent=null),(i-=g)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof gl))){var w=[];this.collapse(w),this.children=[new gl(w)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<=g){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,w=y;w<u.lines.length;){var _=new gl(u.lines.slice(w,w+=25));u.height-=_.height,this.children.splice(++l,0,_),_.parent=this}u.lines=u.lines.slice(0,y),this.maybeSpill()}break}n-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new vl(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=pe(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new vl(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var u=this.children[l],g=u.chunkSize();if(n<g){var y=Math.min(i,g-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=g}}};var ml=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};ml.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=T(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var g=rl(this);Yn(a,Math.max(0,a.height-g)),n&&(Hn(n,function(){qg(n,a,-g),Mi(n,l,"widget")}),Kt(n,"lineWidgetCleared",n,this,l))}},ml.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=rl(this)-i;u&&(Li(this.doc,l)||Yn(l,l.height+u),a&&Hn(a,function(){a.curOp.forceUpdate=!0,qg(a,l,u),Kt(a,"lineWidgetChanged",a,n,T(l))}))},pr(ml);function qg(n,i,a){ti(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Tf(n,a)}function y_(n,i,a,l){var u=new ml(n,a,l),g=n.cm;return g&&u.noHScroll&&(g.display.alignWidgets=!0),pl(n,i,"widget",function(y){var w=y.widgets||(y.widgets=[]);if(u.insertAt==null?w.push(u):w.splice(Math.min(w.length,Math.max(0,u.insertAt)),0,u),u.line=y,g&&!Li(n,y)){var _=ti(y)<n.scrollTop;Yn(y,y.height+rl(u)),_&&Tf(g,u.height),g.curOp.forceUpdate=!0}return!0}),g&&Kt(g,"lineWidgetAdded",g,u,typeof i=="number"?i:T(i)),u}var jg=0,Ri=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++jg};Ri.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&yo(n),Fn(this,"clear")){var a=this.find();a&&Kt(this,"clear",a.from,a.to)}for(var l=null,u=null,g=0;g<this.lines.length;++g){var y=this.lines[g],w=el(y.markedSpans,this);n&&!this.collapsed?Mi(n,T(y),"text"):n&&(w.to!=null&&(u=T(y)),w.from!=null&&(l=T(y))),y.markedSpans=c1(y.markedSpans,w),w.from==null&&this.collapsed&&!Li(this.doc,y)&&n&&Yn(y,Zo(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var _=0;_<this.lines.length;++_){var k=br(this.lines[_]),z=ja(k);z>n.display.maxLineLength&&(n.display.maxLine=k,n.display.maxLineLength=z,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&Sn(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&Og(n.doc)),n&&Kt(n,"markerCleared",n,this,l,u),i&&bo(n),this.parent&&this.parent.clear()}},Ri.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var g=this.lines[u],y=el(g.markedSpans,this);if(y.from!=null&&(a=le(i?g:T(g),y.from),n==-1))return a;if(y.to!=null&&(l=le(i?g:T(g),y.to),n==1))return l}return a&&{from:a,to:l}},Ri.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Hn(l,function(){var u=i.line,g=T(i.line),y=df(l,g);if(y&&(Yp(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Li(a.doc,u)&&a.height!=null){var w=a.height;a.height=null;var _=rl(a)-w;_&&Yn(u,u.height+_)}Kt(l,"markerChanged",l,n)})},Ri.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||pe(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Ri.prototype.detachLine=function(n){if(this.lines.splice(pe(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},pr(Ri);function ss(n,i,a,l,u){if(l&&l.shared)return b_(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Xt(n.cm,ss)(n,i,a,l,u);var g=new Ri(n,u),y=Le(i,a);if(l&&Y(l,g,!1),y>0||y==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=F("span",[g.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Pp(n,i.line,i,a,g)||i.line!=a.line&&Pp(n,a.line,i,a,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");a1()}g.addToHistory&&Cg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var w=i.line,_=n.cm,k;if(n.iter(w,a.line+1,function(W){_&&g.collapsed&&!_.options.lineWrapping&&br(W)==_.display.maxLine&&(k=!0),g.collapsed&&w!=i.line&&Yn(W,0),u1(W,new Ha(g,w==i.line?i.ch:null,w==a.line?a.ch:null),n.cm&&n.cm.curOp),++w}),g.collapsed&&n.iter(i.line,a.line+1,function(W){Li(n,W)&&Yn(W,0)}),g.clearOnEnter&&Fe(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(l1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),g.collapsed&&(g.id=++jg,g.atomic=!0),_){if(k&&(_.curOp.updateMaxLine=!0),g.collapsed)Sn(_,i.line,a.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var z=i.line;z<=a.line;z++)Mi(_,z,"text");g.atomic&&Og(_.doc),Kt(_,"markerAdded",_,g)}return g}var yl=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};yl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Kt(this,"clear")}},yl.prototype.find=function(n,i){return this.primary.find(n,i)},pr(yl);function b_(n,i,a,l,u){l=Y(l),l.shared=!1;var g=[ss(n,i,a,l,u)],y=g[0],w=l.widgetNode;return Pi(n,function(_){w&&(l.widgetNode=w.cloneNode(!0)),g.push(ss(_,Ke(_,i),Ke(_,a),l,u));for(var k=0;k<_.linked.length;++k)if(_.linked[k].isParent)return;y=ve(g)}),new yl(g,y)}function Ug(n){return n.findMarks(le(n.first,0),n.clipPos(le(n.lastLine())),function(i){return i.parent})}function w_(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),g=n.clipPos(u.from),y=n.clipPos(u.to);if(Le(g,y)){var w=ss(n,g,y,l.primary,l.primary.type);l.markers.push(w),w.parent=l}}}function x_(n){for(var i=function(l){var u=n[l],g=[u.primary.doc];Pi(u.primary.doc,function(_){return g.push(_)});for(var y=0;y<u.markers.length;y++){var w=u.markers[y];pe(g,w.doc)==-1&&(w.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var __=0,kn=function(n,i,a,l,u){if(!(this instanceof kn))return new kn(n,i,a,l,u);a==null&&(a=0),vl.call(this,[new gl([new Ko("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var g=le(a,0);this.sel=Ni(g),this.history=new nc(null),this.id=++__,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Of(this,{from:g,to:g,text:n}),ln(this,Ni(g),K)};kn.prototype=De(vl.prototype,{constructor:kn,iter:function(n,i,a){a?this.iterN(n-this.first,i-n,a):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var a=0,l=0;l<i.length;++l)a+=i[l].height;this.insertInner(n-this.first,i,a)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=Js(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:Yt(function(n){var i=le(this.first,0),a=this.first+this.size-1;is(this,{from:i,to:le(a,Pe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&sl(this.cm,0,0),ln(this,Ni(i),K)}),replaceRange:function(n,i,a,l){i=Ke(this,i),a=a?Ke(this,a):i,os(this,n,i,a,l)},getRange:function(n,i,a){var l=Qr(this,Ke(this,n),Ke(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(de(this,n))return Pe(this,n)},getLineNumber:function(n){return T(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=Pe(this,n)),br(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return Ke(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Yt(function(n,i,a){Mg(this,Ke(this,typeof n=="number"?le(n,i||0):n),null,a)}),setSelection:Yt(function(n,i,a){Mg(this,Ke(this,n),Ke(this,i||n),a)}),extendSelection:Yt(function(n,i,a){ic(this,Ke(this,n),i&&Ke(this,i),a)}),extendSelections:Yt(function(n,i){Lg(this,wp(this,n),i)}),extendSelectionsBy:Yt(function(n,i){var a=be(this.sel.ranges,n);Lg(this,wp(this,a),i)}),setSelections:Yt(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new gt(Ke(this,n[u].anchor),Ke(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),ln(this,xr(this.cm,l,i),a)}}),addSelection:Yt(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new gt(Ke(this,n),Ke(this,i||n))),ln(this,xr(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=Qr(this,i[l].from(),i[l].to());a=a?a.concat(u):u}return n===!1?a:a.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],a=this.sel.ranges,l=0;l<a.length;l++){var u=Qr(this,a[l].from(),a[l].to());n!==!1&&(u=u.join(n||this.lineSeparator())),i[l]=u}return i},replaceSelection:function(n,i,a){for(var l=[],u=0;u<this.sel.ranges.length;u++)l[u]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:Yt(function(n,i,a){for(var l=[],u=this.sel,g=0;g<u.ranges.length;g++){var y=u.ranges[g];l[g]={from:y.from(),to:y.to(),text:this.splitLines(n[g]),origin:a}}for(var w=i&&i!="end"&&c_(this,l,i),_=l.length-1;_>=0;_--)is(this,l[_]);w?$g(this,w):this.cm&&es(this.cm)}),undo:Yt(function(){lc(this,"undo")}),redo:Yt(function(){lc(this,"redo")}),undoSelection:Yt(function(){lc(this,"undo",!0)}),redoSelection:Yt(function(){lc(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,l=0;l<n.done.length;l++)n.done[l].ranges||++i;for(var u=0;u<n.undone.length;u++)n.undone[u].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new nc(this.history),Pi(this,function(i){return i.history=n.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:ns(this.history.done),undone:ns(this.history.undone)}},setHistory:function(n){var i=this.history=new nc(this.history);i.done=ns(n.done.slice(0),null,!0),i.undone=ns(n.undone.slice(0),null,!0)},setGutterMarker:Yt(function(n,i,a){return pl(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&ut(u)&&(l.gutterMarkers=null),!0})}),clearGutter:Yt(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&pl(i,a,"gutter",function(){return a.gutterMarkers[n]=null,ut(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!de(this,n)||(i=n,n=Pe(this,n),!n))return null}else if(i=T(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:Yt(function(n,i,a){return pl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(J(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:Yt(function(n,i,a){return pl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",g=l[u];if(g)if(a==null)l[u]=null;else{var y=g.match(J(a));if(!y)return!1;var w=y.index+y[0].length;l[u]=g.slice(0,y.index)+(!y.index||w==g.length?"":" ")+g.slice(w)||null}else return!1;return!0})}),addLineWidget:Yt(function(n,i,a){return y_(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return ss(this,Ke(this,n),Ke(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=Ke(this,n),ss(this,n,n,a,"bookmark")},findMarksAt:function(n){n=Ke(this,n);var i=[],a=Pe(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=Ke(this,n),i=Ke(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(g){var y=g.markedSpans;if(y)for(var w=0;w<y.length;w++){var _=y[w];!(_.to!=null&&u==n.line&&n.ch>=_.to||_.from==null&&u!=n.line||_.from!=null&&u==i.line&&_.from>=i.ch)&&(!a||a(_.marker))&&l.push(_.marker.parent||_.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;++l)a[l].from!=null&&n.push(a[l].marker)}),n},posFromIndex:function(n){var i,a=this.first,l=this.lineSeparator().length;return this.iter(function(u){var g=u.text.length+l;if(g>n)return i=n,!0;n-=g,++a}),Ke(this,le(a,i))},indexFromPos:function(n){n=Ke(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new kn(Js(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,a=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<a&&(a=n.to);var l=new kn(Js(this,i,a),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:n.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],w_(l,Ug(this)),l},unlinkDoc:function(n){if(n instanceof Tt&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),x_(Ug(this));break}}if(n.history==this.history){var l=[n.id];Pi(n,function(u){return l.push(u.id)},!0),n.history=new nc(null),n.history.done=ns(this.history.done,l),n.history.undone=ns(this.history.undone,l)}},iterLinkedDocs:function(n){Pi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):sr(n)},lineSeparator:function(){return this.lineSep||`
|
|
29
|
+
`},setDirection:Yt(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&u_(this.cm))})}),kn.prototype.eachLine=kn.prototype.iter;var Vg=0;function S_(n){var i=this;if(Gg(i),!(Pt(i,n)||ni(i.display,n))){sn(n),h&&(Vg=+new Date);var a=po(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,g=Array(u),y=0,w=function(){++y==u&&Xt(i,function(){a=Ke(i.doc,a);var X={from:a,to:a,text:i.doc.splitLines(g.filter(function(ce){return ce!=null}).join(i.doc.lineSeparator())),origin:"paste"};is(i.doc,X),$g(i.doc,Ni(Ke(i.doc,a),Ke(i.doc,Oi(X))))})()},_=function(X,ce){if(i.options.allowDropFileTypes&&pe(i.options.allowDropFileTypes,X.type)==-1){w();return}var ge=new FileReader;ge.onerror=function(){return w()},ge.onload=function(){var xe=ge.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(xe)){w();return}g[ce]=xe,w()},ge.readAsText(X)},k=0;k<l.length;k++)_(l[k],k);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var z=n.dataTransfer.getData("Text");if(z){var W;if(i.state.draggingText&&!i.state.draggingText.copy&&(W=i.listSelections()),oc(i.doc,Ni(a,a)),W)for(var ee=0;ee<W.length;++ee)os(i.doc,"",W[ee].anchor,W[ee].head,"drag");i.replaceSelection(z,"around","paste"),i.display.input.focus()}}catch{}}}}function k_(n,i){if(h&&(!n.state.draggingText||+new Date-Vg<100)){Ti(i);return}if(!(Pt(n,i)||ni(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!M)){var a=S("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",C&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),C&&a.parentNode.removeChild(a)}}function T_(n,i){var a=po(n,i);if(a){var l=document.createDocumentFragment();wf(n,a,l),n.display.dragCursor||(n.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),N(n.display.dragCursor,l)}}function Gg(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function Kg(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var g=0;g<a.length;g++)n(a[g])})}}var Xg=!1;function C_(){Xg||(E_(),Xg=!0)}function E_(){var n;Fe(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,Kg(A_)},100))}),Fe(window,"blur",function(){return Kg(Qo)})}function A_(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var zi={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"},bl=0;bl<10;bl++)zi[bl+48]=zi[bl+96]=String(bl);for(var ac=65;ac<=90;ac++)zi[ac]=String.fromCharCode(ac);for(var wl=1;wl<=12;wl++)zi[wl+111]=zi[wl+63235]="F"+wl;var ii={};ii.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"},ii.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"},ii.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"},ii.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"]},ii.default=I?ii.macDefault:ii.pcDefault;function L_(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,g,y=0;y<i.length-1;y++){var w=i[y];if(/^(cmd|meta|m)$/i.test(w))g=!0;else if(/^a(lt)?$/i.test(w))a=!0;else if(/^(c|ctrl|control)$/i.test(w))l=!0;else if(/^s(hift)?$/i.test(w))u=!0;else throw new Error("Unrecognized modifier name: "+w)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),g&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function M_(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var u=be(a.split(" "),L_),g=0;g<u.length;g++){var y=void 0,w=void 0;g==u.length-1?(w=u.join(" "),y=l):(w=u.slice(0,g+1).join(" "),y="...");var _=i[w];if(!_)i[w]=y;else if(_!=y)throw new Error("Inconsistent bindings for "+w)}delete n[a]}for(var k in i)n[k]=i[k];return n}function ls(n,i,a,l){i=cc(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return ls(n,i.fallthrough,a,l);for(var g=0;g<i.fallthrough.length;g++){var y=ls(n,i.fallthrough[g],a,l);if(y)return y}}}function Yg(n){var i=typeof n=="string"?n:zi[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Zg(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(ne?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(ne?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function Jg(n,i){if(C&&n.keyCode==34&&n.char)return!1;var a=zi[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),Zg(a,n,i))}function cc(n){return typeof n=="string"?ii[n]:n}function as(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var g=i(a[u]);l.length&&Le(g.from,ve(l).to)<=0;){var y=l.pop();if(Le(y.from,g.from)<0){g.from=y.from;break}}l.push(g)}Hn(n,function(){for(var w=l.length-1;w>=0;w--)os(n.doc,"",l[w].from,l[w].to,"+delete");es(n)})}function If(n,i,a){var l=Vt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function Df(n,i,a){var l=If(n,i.ch,a);return l==null?null:new le(i.line,l,a<0?"after":"before")}function Ff(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var g=tt(a,i.doc.direction);if(g){var y=u<0?ve(g):g[0],w=u<0==(y.level==1),_=w?"after":"before",k;if(y.level>0||i.doc.direction=="rtl"){var z=Yo(i,a);k=u<0?a.text.length-1:0;var W=Br(i,z,k).top;k=Ht(function(ee){return Br(i,z,ee).top==W},u<0==(y.level==1)?y.from:y.to-1,k),_=="before"&&(k=If(a,k,1))}else k=u<0?y.to:y.from;return new le(l,k,_)}}return new le(l,u<0?a.text.length:0,u<0?"before":"after")}function $_(n,i,a,l){var u=tt(i,n.doc.direction);if(!u)return Df(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var g=Dt(u,a.ch,a.sticky),y=u[g];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return Df(i,a,l);var w=function(ke,Me){return If(i,ke instanceof le?ke.ch:ke,Me)},_,k=function(ke){return n.options.lineWrapping?(_=_||Yo(n,i),rg(n,i,_,ke)):{begin:0,end:i.text.length}},z=k(a.sticky=="before"?w(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var W=y.level==1==l<0,ee=w(a,W?1:-1);if(ee!=null&&(W?ee<=y.to&&ee<=z.end:ee>=y.from&&ee>=z.begin)){var X=W?"before":"after";return new le(a.line,ee,X)}}var ce=function(ke,Me,Te){for(var Ne=function(xt,Zt){return Zt?new le(a.line,w(xt,1),"before"):new le(a.line,xt,"after")};ke>=0&&ke<u.length;ke+=Me){var He=u[ke],Ie=Me>0==(He.level!=1),et=Ie?Te.begin:w(Te.end,-1);if(He.from<=et&&et<He.to||(et=Ie?He.from:w(He.to,-1),Te.begin<=et&&et<Te.end))return Ne(et,Ie)}},ge=ce(g+l,l,z);if(ge)return ge;var xe=l>0?z.end:w(z.begin,-1);return xe!=null&&!(l>0&&xe==i.text.length)&&(ge=ce(l>0?0:u.length-1,l,k(xe)),ge)?ge:null}var xl={selectAll:zg,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),K)},killLine:function(n){return as(n,function(i){if(i.empty()){var a=Pe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:le(i.head.line+1,0)}:{from:i.head,to:le(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return as(n,function(i){return{from:le(i.from().line,0),to:Ke(n.doc,le(i.to().line+1,0))}})},delLineLeft:function(n){return as(n,function(i){return{from:le(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return as(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(n){return as(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(le(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(le(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return Qg(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return ev(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return N_(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},he)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},he)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?ev(n,i.head):l},he)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var g=a[u].from(),y=V(n.getLine(g.line),g.ch,l);i.push(Ee(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Hn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,g=Pe(n.doc,u.line).text;if(g){if(u.ch==g.length&&(u=new le(u.line,u.ch-1)),u.ch>0)u=new le(u.line,u.ch+1),n.replaceRange(g.charAt(u.ch-1)+g.charAt(u.ch-2),le(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=Pe(n.doc,u.line-1).text;y&&(u=new le(u.line,1),n.replaceRange(g.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),le(u.line-1,y.length-1),u,"+transpose"))}}a.push(new gt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Hn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);es(n)})},openLine:function(n){return n.replaceSelection(`
|
|
30
|
+
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function Qg(n,i){var a=Pe(n.doc,i),l=br(a);return l!=a&&(i=T(l)),Ff(!0,n,l,i,1)}function N_(n,i){var a=Pe(n.doc,i),l=g1(a);return l!=a&&(i=T(l)),Ff(!0,n,a,i,-1)}function ev(n,i){var a=Qg(n,i.line),l=Pe(n.doc,a.line),u=tt(l,n.doc.direction);if(!u||u[0].level==0){var g=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=g&&i.ch;return le(a.line,y?0:g,a.sticky)}return a}function uc(n,i,a){if(typeof i=="string"&&(i=xl[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=q}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function O_(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=ls(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&ls(i,n.options.extraKeys,a,n)||ls(i,n.options.keyMap,a,n)}var P_=new ae;function _l(n,i,a,l){var u=n.state.keySeq;if(u){if(Yg(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:P_.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),tv(n,u+" "+i,a,l))return!0}return tv(n,i,a,l)}function tv(n,i,a,l){var u=O_(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Kt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(sn(a),xf(n)),!!u}function nv(n,i){var a=Jg(i,!0);return a?i.shiftKey&&!n.state.keySeq?_l(n,"Shift-"+a,i,function(l){return uc(n,l,!0)})||_l(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return uc(n,l)}):_l(n,a,i,function(l){return uc(n,l)}):!1}function R_(n,i,a){return _l(n,"'"+a+"'",i,function(l){return uc(n,l,!0)})}var Hf=null;function rv(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=me(Xe(i)),!Pt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=nv(i,n);C&&(Hf=l?a:null,!l&&a==88&&!Da&&(I?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!I&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&z_(i)}}function z_(n){var i=n.display.lineDiv;Se(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(P(i,"CodeMirror-crosshair"),on(document,"keyup",a),on(document,"mouseover",a))}Fe(document,"keyup",a),Fe(document,"mouseover",a)}function iv(n){n.keyCode==16&&(this.doc.sel.shift=!1),Pt(this,n)}function ov(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(ni(i.display,n)||Pt(i,n)||n.ctrlKey&&!n.altKey||I&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(C&&a==Hf){Hf=null,sn(n);return}if(!(C&&(!n.which||n.which<10)&&nv(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(R_(i,n,u)||i.display.input.onKeyPress(n))}}}var I_=400,Bf=function(n,i,a){this.time=n,this.pos=i,this.button=a};Bf.prototype.compare=function(n,i,a){return this.time+I_>n&&Le(i,this.pos)==0&&a==this.button};var Sl,kl;function D_(n,i){var a=+new Date;return kl&&kl.compare(a,n,i)?(Sl=kl=null,"triple"):Sl&&Sl.compare(a,n,i)?(kl=new Bf(a,n,i),Sl=null,"double"):(Sl=new Bf(a,n,i),kl=null,"single")}function sv(n){var i=this,a=i.display;if(!(Pt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,ni(a,n)){v||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!Wf(i,n)){var l=po(i,n),u=gr(n),g=l?D_(l,u):"single";te(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&F_(i,u,l,g,n))&&(u==1?l?B_(i,l,g,n):Xs(n)==a.scroller&&sn(n):u==2?(l&&ic(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):_f(i)))}}}function F_(n,i,a,l,u){var g="Click";return l=="double"?g="Double"+g:l=="triple"&&(g="Triple"+g),g=(i==1?"Left":i==2?"Middle":"Right")+g,_l(n,Zg(g,u),u,function(y){if(typeof y=="string"&&(y=xl[y]),!y)return!1;var w=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),w=y(n,a)!=q}finally{n.state.suppressEdits=!1}return w})}function H_(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var g=U?a.shiftKey&&a.metaKey:a.altKey;u.unit=g?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=I?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(I?a.altKey:a.ctrlKey)),u}function B_(n,i,a,l){h?setTimeout(H(lg,n),0):n.curOp.focus=me(Xe(n));var u=H_(n,a,l),g=n.doc.sel,y;n.options.dragDrop&&Qu&&!n.isReadOnly()&&a=="single"&&(y=g.contains(i))>-1&&(Le((y=g.ranges[y]).from(),i)<0||i.xRel>0)&&(Le(y.to(),i)>0||i.xRel<0)?W_(n,l,i,u):q_(n,l,i,u)}function W_(n,i,a,l){var u=n.display,g=!1,y=Xt(n,function(k){v&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:_f(n)),on(u.wrapper.ownerDocument,"mouseup",y),on(u.wrapper.ownerDocument,"mousemove",w),on(u.scroller,"dragstart",_),on(u.scroller,"drop",y),g||(sn(k),l.addNew||ic(n.doc,a,null,null,l.extend),v&&!M||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),w=function(k){g=g||Math.abs(i.clientX-k.clientX)+Math.abs(i.clientY-k.clientY)>=10},_=function(){return g=!0};v&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Fe(u.wrapper.ownerDocument,"mouseup",y),Fe(u.wrapper.ownerDocument,"mousemove",w),Fe(u.scroller,"dragstart",_),Fe(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function lv(n,i,a){if(a=="char")return new gt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new gt(le(i.line,0),Ke(n.doc,le(i.line+1,0)));var l=a(n,i);return new gt(l.from,l.to)}function q_(n,i,a,l){h&&_f(n);var u=n.display,g=n.doc;sn(i);var y,w,_=g.sel,k=_.ranges;if(l.addNew&&!l.extend?(w=g.sel.contains(a),w>-1?y=k[w]:y=new gt(a,a)):(y=g.sel.primary(),w=g.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new gt(a,a)),a=po(n,i,!0,!0),w=-1;else{var z=lv(n,a,l.unit);l.extend?y=Rf(y,z.anchor,z.head,l.extend):y=z}l.addNew?w==-1?(w=k.length,ln(g,xr(n,k.concat([y]),w),{scroll:!1,origin:"*mouse"})):k.length>1&&k[w].empty()&&l.unit=="char"&&!l.extend?(ln(g,xr(n,k.slice(0,w).concat(k.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),_=g.sel):zf(g,w,y,ue):(w=0,ln(g,new Zn([y],0),ue),_=g.sel);var W=a;function ee(Te){if(Le(W,Te)!=0)if(W=Te,l.unit=="rectangle"){for(var Ne=[],He=n.options.tabSize,Ie=V(Pe(g,a.line).text,a.ch,He),et=V(Pe(g,Te.line).text,Te.ch,He),xt=Math.min(Ie,et),Zt=Math.max(Ie,et),$t=Math.min(a.line,Te.line),Bn=Math.min(n.lastLine(),Math.max(a.line,Te.line));$t<=Bn;$t++){var Tn=Pe(g,$t).text,Bt=fe(Tn,xt,He);xt==Zt?Ne.push(new gt(le($t,Bt),le($t,Bt))):Tn.length>Bt&&Ne.push(new gt(le($t,Bt),le($t,fe(Tn,Zt,He))))}Ne.length||Ne.push(new gt(a,a)),ln(g,xr(n,_.ranges.slice(0,w).concat(Ne),w),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Te)}else{var Cn=y,nn=lv(n,Te,l.unit),jt=Cn.anchor,Wt;Le(nn.anchor,jt)>0?(Wt=nn.head,jt=Go(Cn.from(),nn.anchor)):(Wt=nn.anchor,jt=_n(Cn.to(),nn.head));var zt=_.ranges.slice(0);zt[w]=j_(n,new gt(Ke(g,jt),Wt)),ln(g,xr(n,zt,w),ue)}}var X=u.wrapper.getBoundingClientRect(),ce=0;function ge(Te){var Ne=++ce,He=po(n,Te,!0,l.unit=="rectangle");if(He)if(Le(He,W)!=0){n.curOp.focus=me(Xe(n)),ee(He);var Ie=Ja(u,g);(He.line>=Ie.to||He.line<Ie.from)&&setTimeout(Xt(n,function(){ce==Ne&&ge(Te)}),150)}else{var et=Te.clientY<X.top?-20:Te.clientY>X.bottom?20:0;et&&setTimeout(Xt(n,function(){ce==Ne&&(u.scroller.scrollTop+=et,ge(Te))}),50)}}function xe(Te){n.state.selectingText=!1,ce=1/0,Te&&(sn(Te),u.input.focus()),on(u.wrapper.ownerDocument,"mousemove",ke),on(u.wrapper.ownerDocument,"mouseup",Me),g.history.lastSelOrigin=null}var ke=Xt(n,function(Te){Te.buttons===0||!gr(Te)?xe(Te):ge(Te)}),Me=Xt(n,xe);n.state.selectingText=Me,Fe(u.wrapper.ownerDocument,"mousemove",ke),Fe(u.wrapper.ownerDocument,"mouseup",Me)}function j_(n,i){var a=i.anchor,l=i.head,u=Pe(n.doc,a.line);if(Le(a,l)==0&&a.sticky==l.sticky)return i;var g=tt(u);if(!g)return i;var y=Dt(g,a.ch,a.sticky),w=g[y];if(w.from!=a.ch&&w.to!=a.ch)return i;var _=y+(w.from==a.ch==(w.level!=1)?0:1);if(_==0||_==g.length)return i;var k;if(l.line!=a.line)k=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var z=Dt(g,l.ch,l.sticky),W=z-y||(l.ch-a.ch)*(w.level==1?-1:1);z==_-1||z==_?k=W<0:k=W>0}var ee=g[_+(k?-1:0)],X=k==(ee.level==1),ce=X?ee.from:ee.to,ge=X?"after":"before";return a.ch==ce&&a.sticky==ge?i:new gt(new le(a.line,ce,ge),l)}function av(n,i,a,l){var u,g;if(i.touches)u=i.touches[0].clientX,g=i.touches[0].clientY;else try{u=i.clientX,g=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&sn(i);var y=n.display,w=y.lineDiv.getBoundingClientRect();if(g>w.bottom||!Fn(n,a))return xn(i);g-=w.top-y.viewOffset;for(var _=0;_<n.display.gutterSpecs.length;++_){var k=y.gutters.childNodes[_];if(k&&k.getBoundingClientRect().right>=u){var z=B(n.doc,g),W=n.display.gutterSpecs[_];return Ot(n,a,n,z,W.className,i),xn(i)}}}function Wf(n,i){return av(n,i,"gutterClick",!0)}function cv(n,i){ni(n.display,i)||U_(n,i)||Pt(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function U_(n,i){return Fn(n,"gutterContextMenu")?av(n,i,"gutterContextMenu",!1):!1}function uv(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),il(n)}var cs={toString:function(){return"CodeMirror.Init"}},fv={},fc={};function V_(n){var i=n.optionHandlers;function a(l,u,g,y){n.defaults[l]=u,g&&(i[l]=y?function(w,_,k){k!=cs&&g(w,_,k)}:g)}n.defineOption=a,n.Init=cs,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Nf(l)},!0),a("indentUnit",2,Nf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){dl(l),il(l),Sn(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var g=[],y=l.doc.first;l.doc.iter(function(_){for(var k=0;;){var z=_.text.indexOf(u,k);if(z==-1)break;k=z+u.length,g.push(le(y,z))}y++});for(var w=g.length-1;w>=0;w--)os(l.doc,u,g[w],le(g[w].line,g[w].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,g){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),g!=cs&&l.refresh()}),a("specialCharPlaceholder",x1,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",E?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!ie),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){uv(l),fl(l)},!0),a("keyMap","default",function(l,u,g){var y=cc(u),w=g!=cs&&cc(g);w&&w.detach&&w.detach(l,y),y.attach&&y.attach(l,w||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,K_,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Mf(u,l.options.lineNumbers),fl(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?yf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return ts(l)},!0),a("scrollbarStyle","native",function(l){hg(l),ts(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=Mf(l.options.gutters,u),fl(l)},!0),a("firstLineNumber",1,fl,!0),a("lineNumberFormatter",function(l){return l},fl,!0),a("showCursorWhenSelecting",!1,ol,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(Qo(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,G_),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,ol,!0),a("singleCursorHeightPerLine",!0,ol,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,dl,!0),a("addModeClass",!1,dl,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,dl,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function G_(n,i,a){var l=a&&a!=cs;if(!i!=!l){var u=n.display.dragFunctions,g=i?Fe:on;g(n.display.scroller,"dragstart",u.start),g(n.display.scroller,"dragenter",u.enter),g(n.display.scroller,"dragover",u.over),g(n.display.scroller,"dragleave",u.leave),g(n.display.scroller,"drop",u.drop)}}function K_(n){n.options.lineWrapping?(Se(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(P(n.display.wrapper,"CodeMirror-wrap"),af(n)),bf(n),Sn(n),il(n),setTimeout(function(){return ts(n)},100)}function Tt(n,i){var a=this;if(!(this instanceof Tt))return new Tt(n,i);this.options=i=i?Y(i):{},Y(fv,i,!1);var l=i.value;typeof l=="string"?l=new kn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Tt.inputStyles[i.inputStyle](this),g=this.display=new l_(n,l,u,i);g.wrapper.CodeMirror=this,uv(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),hg(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 ae,keySeq:null,specialChars:null},i.autofocus&&!E&&g.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),X_(this),C_(),yo(this),this.curOp.forceUpdate=!0,Sg(this,l),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Sf(a)},20):Qo(this);for(var y in fc)fc.hasOwnProperty(y)&&fc[y](this,i[y],cs);vg(this),i.finishInit&&i.finishInit(this);for(var w=0;w<qf.length;++w)qf[w](this);bo(this),v&&i.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}Tt.defaults=fv,Tt.optionHandlers=fc;function X_(n){var i=n.display;Fe(i.scroller,"mousedown",Xt(n,sv)),h&&p<11?Fe(i.scroller,"dblclick",Xt(n,function(_){if(!Pt(n,_)){var k=po(n,_);if(!(!k||Wf(n,_)||ni(n.display,_))){sn(_);var z=n.findWordAt(k);ic(n.doc,z.anchor,z.head)}}})):Fe(i.scroller,"dblclick",function(_){return Pt(n,_)||sn(_)}),Fe(i.scroller,"contextmenu",function(_){return cv(n,_)}),Fe(i.input.getField(),"contextmenu",function(_){i.scroller.contains(_.target)||cv(n,_)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function g(_){if(_.touches.length!=1)return!1;var k=_.touches[0];return k.radiusX<=1&&k.radiusY<=1}function y(_,k){if(k.left==null)return!0;var z=k.left-_.left,W=k.top-_.top;return z*z+W*W>400}Fe(i.scroller,"touchstart",function(_){if(!Pt(n,_)&&!g(_)&&!Wf(n,_)){i.input.ensurePolled(),clearTimeout(a);var k=+new Date;i.activeTouch={start:k,moved:!1,prev:k-l.end<=300?l:null},_.touches.length==1&&(i.activeTouch.left=_.touches[0].pageX,i.activeTouch.top=_.touches[0].pageY)}}),Fe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Fe(i.scroller,"touchend",function(_){var k=i.activeTouch;if(k&&!ni(i,_)&&k.left!=null&&!k.moved&&new Date-k.start<300){var z=n.coordsChar(i.activeTouch,"page"),W;!k.prev||y(k,k.prev)?W=new gt(z,z):!k.prev.prev||y(k,k.prev.prev)?W=n.findWordAt(z):W=new gt(le(z.line,0),Ke(n.doc,le(z.line+1,0))),n.setSelection(W.anchor,W.head),n.focus(),sn(_)}u()}),Fe(i.scroller,"touchcancel",u),Fe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(ll(n,i.scroller.scrollTop),vo(n,i.scroller.scrollLeft,!0),Ot(n,"scroll",n))}),Fe(i.scroller,"mousewheel",function(_){return bg(n,_)}),Fe(i.scroller,"DOMMouseScroll",function(_){return bg(n,_)}),Fe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(_){Pt(n,_)||Ti(_)},over:function(_){Pt(n,_)||(T_(n,_),Ti(_))},start:function(_){return k_(n,_)},drop:Xt(n,S_),leave:function(_){Pt(n,_)||Gg(n)}};var w=i.input.getField();Fe(w,"keyup",function(_){return iv.call(n,_)}),Fe(w,"keydown",Xt(n,rv)),Fe(w,"keypress",Xt(n,ov)),Fe(w,"focus",function(_){return Sf(n,_)}),Fe(w,"blur",function(_){return Qo(n,_)})}var qf=[];Tt.defineInitHook=function(n){return qf.push(n)};function Tl(n,i,a,l){var u=n.doc,g;a==null&&(a="add"),a=="smart"&&(u.mode.indent?g=Qs(n,i).state:a="prev");var y=n.options.tabSize,w=Pe(u,i),_=V(w.text,null,y);w.stateAfter&&(w.stateAfter=null);var k=w.text.match(/^\s*/)[0],z;if(!l&&!/\S/.test(w.text))z=0,a="not";else if(a=="smart"&&(z=u.mode.indent(g,w.text.slice(k.length),w.text),z==q||z>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?z=V(Pe(u,i-1).text,null,y):z=0:a=="add"?z=_+n.options.indentUnit:a=="subtract"?z=_-n.options.indentUnit:typeof a=="number"&&(z=_+a),z=Math.max(0,z);var W="",ee=0;if(n.options.indentWithTabs)for(var X=Math.floor(z/y);X;--X)ee+=y,W+=" ";if(ee<z&&(W+=Ee(z-ee)),W!=k)return os(u,W,le(i,0),le(i,k.length),"+input"),w.stateAfter=null,!0;for(var ce=0;ce<u.sel.ranges.length;ce++){var ge=u.sel.ranges[ce];if(ge.head.line==i&&ge.head.ch<k.length){var xe=le(i,k.length);zf(u,ce,new gt(xe,xe));break}}}var _r=null;function dc(n){_r=n}function jf(n,i,a,l,u){var g=n.doc;n.display.shift=!1,l||(l=g.sel);var y=+new Date-200,w=u=="paste"||n.state.pasteIncoming>y,_=sr(i),k=null;if(w&&l.ranges.length>1)if(_r&&_r.text.join(`
|
|
31
|
+
`)==i){if(l.ranges.length%_r.text.length==0){k=[];for(var z=0;z<_r.text.length;z++)k.push(g.splitLines(_r.text[z]))}}else _.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(k=be(_,function(ke){return[ke]}));for(var W=n.curOp.updateInput,ee=l.ranges.length-1;ee>=0;ee--){var X=l.ranges[ee],ce=X.from(),ge=X.to();X.empty()&&(a&&a>0?ce=le(ce.line,ce.ch-a):n.state.overwrite&&!w?ge=le(ge.line,Math.min(Pe(g,ge.line).text.length,ge.ch+ve(_).length)):w&&_r&&_r.lineWise&&_r.text.join(`
|
|
32
|
+
`)==_.join(`
|
|
33
|
+
`)&&(ce=ge=le(ce.line,0)));var xe={from:ce,to:ge,text:k?k[ee%k.length]:_,origin:u||(w?"paste":n.state.cutIncoming>y?"cut":"+input")};is(n.doc,xe),Kt(n,"inputRead",n,xe)}i&&!w&&hv(n,i),es(n),n.curOp.updateInput<2&&(n.curOp.updateInput=W),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function dv(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Hn(i,function(){return jf(i,a,0,null,"paste")}),!0}function hv(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var g=n.getModeAt(u.head),y=!1;if(g.electricChars){for(var w=0;w<g.electricChars.length;w++)if(i.indexOf(g.electricChars.charAt(w))>-1){y=Tl(n,u.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Pe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=Tl(n,u.head.line,"smart"));y&&Kt(n,"electricInput",n,u.head.line)}}}function pv(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,g={anchor:le(u,0),head:le(u+1,0)};a.push(g),i.push(n.getRange(g.anchor,g.head))}return{text:i,ranges:a}}function Uf(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function gv(){var n=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=S("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?n.style.width="1000px":n.setAttribute("wrap","off"),$&&(n.style.border="1px solid black"),i}function Y_(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){te(this).focus(),this.display.input.focus()},setOption:function(l,u){var g=this.options,y=g[l];g[l]==u&&l!="mode"||(g[l]=u,i.hasOwnProperty(l)&&Xt(this,i[l])(this,u,y),Ot(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](cc(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,g=0;g<u.length;++g)if(u[g]==l||u[g].name==l)return u.splice(g,1),!0},addOverlay:hn(function(l,u){var g=l.token?l:n.getMode(this.options,l);if(g.startState)throw new Error("Overlays may not be stateful.");We(this.state.overlays,{mode:g,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,Sn(this)}),removeOverlay:hn(function(l){for(var u=this.state.overlays,g=0;g<u.length;++g){var y=u[g].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(g,1),this.state.modeGen++,Sn(this);return}}}),indentLine:hn(function(l,u,g){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),de(this.doc,l)&&Tl(this,l,u,g)}),indentSelection:hn(function(l){for(var u=this.doc.sel.ranges,g=-1,y=0;y<u.length;y++){var w=u[y];if(w.empty())w.head.line>g&&(Tl(this,w.head.line,l,!0),g=w.head.line,y==this.doc.sel.primIndex&&es(this));else{var _=w.from(),k=w.to(),z=Math.max(g,_.line);g=Math.min(this.lastLine(),k.line-(k.ch?0:1))+1;for(var W=z;W<g;++W)Tl(this,W,l);var ee=this.doc.sel.ranges;_.ch==0&&u.length==ee.length&&ee[y].from().ch>0&&zf(this.doc,y,new gt(_,ee[y].to()),K)}}}),getTokenAt:function(l,u){return Tp(this,l,u)},getLineTokens:function(l,u){return Tp(this,le(l),u,!0)},getTokenTypeAt:function(l){l=Ke(this.doc,l);var u=_p(this,Pe(this.doc,l.line)),g=0,y=(u.length-1)/2,w=l.ch,_;if(w==0)_=u[2];else for(;;){var k=g+y>>1;if((k?u[k*2-1]:0)>=w)y=k;else if(u[k*2+1]<w)g=k+1;else{_=u[k*2+2];break}}var z=_?_.indexOf("overlay "):-1;return z<0?_:z==0?null:_.slice(0,z-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var g=[];if(!a.hasOwnProperty(u))return g;var y=a[u],w=this.getModeAt(l);if(typeof w[u]=="string")y[w[u]]&&g.push(y[w[u]]);else if(w[u])for(var _=0;_<w[u].length;_++){var k=y[w[u][_]];k&&g.push(k)}else w.helperType&&y[w.helperType]?g.push(y[w.helperType]):y[w.name]&&g.push(y[w.name]);for(var z=0;z<y._global.length;z++){var W=y._global[z];W.pred(w,this)&&pe(g,W.val)==-1&&g.push(W.val)}return g},getStateAfter:function(l,u){var g=this.doc;return l=bp(g,l??g.first+g.size-1),Qs(this,l+1,u).state},cursorCoords:function(l,u){var g,y=this.doc.sel.primary();return l==null?g=y.head:typeof l=="object"?g=Ke(this.doc,l):g=l?y.from():y.to(),wr(this,g,u||"page")},charCoords:function(l,u){return Ka(this,Ke(this.doc,l),u||"page")},coordsChar:function(l,u){return l=eg(this,l,u||"page"),gf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=eg(this,{top:l,left:0},u||"page").top,B(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,g){var y=!1,w;if(typeof l=="number"){var _=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>_&&(l=_,y=!0),w=Pe(this.doc,l)}else w=l;return Ga(this,w,{top:0,left:0},u||"page",g||y).top+(y?this.doc.height-ti(w):0)},defaultTextHeight:function(){return Zo(this.display)},defaultCharWidth:function(){return Jo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,g,y,w){var _=this.display;l=wr(this,Ke(this.doc,l));var k=l.bottom,z=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),_.sizer.appendChild(u),y=="over")k=l.top;else if(y=="above"||y=="near"){var W=Math.max(_.wrapper.clientHeight,this.doc.height),ee=Math.max(_.sizer.clientWidth,_.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>W)&&l.top>u.offsetHeight?k=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=W&&(k=l.bottom),z+u.offsetWidth>ee&&(z=ee-u.offsetWidth)}u.style.top=k+"px",u.style.left=u.style.right="",w=="right"?(z=_.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(w=="left"?z=0:w=="middle"&&(z=(_.sizer.clientWidth-u.offsetWidth)/2),u.style.left=z+"px"),g&&G1(this,{left:z,top:k,right:z+u.offsetWidth,bottom:k+u.offsetHeight})},triggerOnKeyDown:hn(rv),triggerOnKeyPress:hn(ov),triggerOnKeyUp:iv,triggerOnMouseDown:hn(sv),execCommand:function(l){if(xl.hasOwnProperty(l))return xl[l].call(null,this)},triggerElectric:hn(function(l){hv(this,l)}),findPosH:function(l,u,g,y){var w=1;u<0&&(w=-1,u=-u);for(var _=Ke(this.doc,l),k=0;k<u&&(_=Vf(this.doc,_,w,g,y),!_.hitSide);++k);return _},moveH:hn(function(l,u){var g=this;this.extendSelectionsBy(function(y){return g.display.shift||g.doc.extend||y.empty()?Vf(g.doc,y.head,l,u,g.options.rtlMoveVisually):l<0?y.from():y.to()},he)}),deleteH:hn(function(l,u){var g=this.doc.sel,y=this.doc;g.somethingSelected()?y.replaceSelection("",null,"+delete"):as(this,function(w){var _=Vf(y,w.head,l,u,!1);return l<0?{from:_,to:w.head}:{from:w.head,to:_}})}),findPosV:function(l,u,g,y){var w=1,_=y;u<0&&(w=-1,u=-u);for(var k=Ke(this.doc,l),z=0;z<u;++z){var W=wr(this,k,"div");if(_==null?_=W.left:W.left=_,k=vv(this,W,w,g),k.hitSide)break}return k},moveV:hn(function(l,u){var g=this,y=this.doc,w=[],_=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(z){if(_)return l<0?z.from():z.to();var W=wr(g,z.head,"div");z.goalColumn!=null&&(W.left=z.goalColumn),w.push(W.left);var ee=vv(g,W,l,u);return u=="page"&&z==y.sel.primary()&&Tf(g,Ka(g,ee,"div").top-W.top),ee},he),w.length)for(var k=0;k<y.sel.ranges.length;k++)y.sel.ranges[k].goalColumn=w[k]}),findWordAt:function(l){var u=this.doc,g=Pe(u,l.line).text,y=l.ch,w=l.ch;if(g){var _=this.getHelper(l,"wordChars");(l.sticky=="before"||w==g.length)&&y?--y:++w;for(var k=g.charAt(y),z=lt(k,_)?function(W){return lt(W,_)}:/\s/.test(k)?function(W){return/\s/.test(W)}:function(W){return!/\s/.test(W)&&!lt(W)};y>0&&z(g.charAt(y-1));)--y;for(;w<g.length&&z(g.charAt(w));)++w}return new gt(le(l.line,y),le(l.line,w))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Se(this.display.cursorDiv,"CodeMirror-overwrite"):P(this.display.cursorDiv,"CodeMirror-overwrite"),Ot(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==me(Xe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:hn(function(l,u){sl(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Hr(this)-this.display.barHeight,width:l.scrollWidth-Hr(this)-this.display.barWidth,clientHeight:ff(this),clientWidth:fo(this)}},scrollIntoView:hn(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:le(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?K1(this,l):cg(this,l.from,l.to,l.margin)}),setSize:hn(function(l,u){var g=this,y=function(_){return typeof _=="number"||/^\d+$/.test(String(_))?_+"px":_};l!=null&&(this.display.wrapper.style.width=y(l)),u!=null&&(this.display.wrapper.style.height=y(u)),this.options.lineWrapping&&Zp(this);var w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,function(_){if(_.widgets){for(var k=0;k<_.widgets.length;k++)if(_.widgets[k].noHScroll){Mi(g,w,"widget");break}}++w}),this.curOp.forceUpdate=!0,Ot(this,"refresh",this)}),operation:function(l){return Hn(this,l)},startOperation:function(){return yo(this)},endOperation:function(){return bo(this)},refresh:hn(function(){var l=this.display.cachedTextHeight;Sn(this),this.curOp.forceUpdate=!0,il(this),sl(this,this.doc.scrollLeft,this.doc.scrollTop),Af(this.display),(l==null||Math.abs(l-Zo(this.display))>.5||this.options.lineWrapping)&&bf(this),Ot(this,"refresh",this)}),swapDoc:hn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Sg(this,l),il(this),this.display.input.reset(),sl(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Kt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},pr(n),n.registerHelper=function(l,u,g){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=g},n.registerGlobalHelper=function(l,u,g,y){n.registerHelper(l,u,y),a[l]._global.push({pred:g,val:y})}}function Vf(n,i,a,l,u){var g=i,y=a,w=Pe(n,i.line),_=u&&n.direction=="rtl"?-a:a;function k(){var Me=i.line+_;return Me<n.first||Me>=n.first+n.size?!1:(i=new le(Me,i.ch,i.sticky),w=Pe(n,Me))}function z(Me){var Te;if(l=="codepoint"){var Ne=w.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(Ne))Te=null;else{var He=a>0?Ne>=55296&&Ne<56320:Ne>=56320&&Ne<57343;Te=new le(i.line,Math.max(0,Math.min(w.text.length,i.ch+a*(He?2:1))),-a)}}else u?Te=$_(n.cm,w,i,a):Te=Df(w,i,a);if(Te==null)if(!Me&&k())i=Ff(u,n.cm,w,i.line,_);else return!1;else i=Te;return!0}if(l=="char"||l=="codepoint")z();else if(l=="column")z(!0);else if(l=="word"||l=="group")for(var W=null,ee=l=="group",X=n.cm&&n.cm.getHelper(i,"wordChars"),ce=!0;!(a<0&&!z(!ce));ce=!1){var ge=w.text.charAt(i.ch)||`
|
|
34
|
+
`,xe=lt(ge,X)?"w":ee&&ge==`
|
|
35
|
+
`?"n":!ee||/\s/.test(ge)?null:"p";if(ee&&!ce&&!xe&&(xe="s"),W&&W!=xe){a<0&&(a=1,z(),i.sticky="after");break}if(xe&&(W=xe),a>0&&!z(!ce))break}var ke=sc(n,i,g,y,!0);return pt(g,ke)&&(ke.hitSide=!0),ke}function vv(n,i,a,l){var u=n.doc,g=i.left,y;if(l=="page"){var w=Math.min(n.display.wrapper.clientHeight,te(n).innerHeight||u(n).documentElement.clientHeight),_=Math.max(w-.5*Zo(n.display),3);y=(a>0?i.bottom:i.top)+a*_}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var k;k=gf(n,g,y),!!k.outside;){if(a<0?y<=0:y>=u.height){k.hitSide=!0;break}y+=a*5}return k}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ae,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,Uf(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function g(w){for(var _=w.target;_;_=_.parentNode){if(_==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_.className))break}return!1}Fe(u,"paste",function(w){!g(w)||Pt(l,w)||dv(w,l)||p<=11&&setTimeout(Xt(l,function(){return i.updateFromDOM()}),20)}),Fe(u,"compositionstart",function(w){i.composing={data:w.data,done:!1}}),Fe(u,"compositionupdate",function(w){i.composing||(i.composing={data:w.data,done:!1})}),Fe(u,"compositionend",function(w){i.composing&&(w.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Fe(u,"touchstart",function(){return a.forceCompositionEnd()}),Fe(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(w){if(!(!g(w)||Pt(l,w))){if(l.somethingSelected())dc({lineWise:!1,text:l.getSelections()}),w.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var _=pv(l);dc({lineWise:!0,text:_.text}),w.type=="cut"&&l.operation(function(){l.setSelections(_.ranges,0,K),l.replaceSelection("",null,"cut")})}else return;if(w.clipboardData){w.clipboardData.clearData();var k=_r.text.join(`
|
|
36
|
+
`);if(w.clipboardData.setData("Text",k),w.clipboardData.getData("Text")==k){w.preventDefault();return}}var z=gv(),W=z.firstChild;Uf(W),l.display.lineSpace.insertBefore(z,l.display.lineSpace.firstChild),W.value=_r.text.join(`
|
|
37
|
+
`);var ee=me(Ye(u));je(W),setTimeout(function(){l.display.lineSpace.removeChild(z),ee.focus(),ee==u&&a.showPrimarySelection()},50)}}Fe(u,"copy",y),Fe(u,"cut",y)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=sg(this.cm,!1);return n.focus=me(Ye(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var g=hc(i,n.anchorNode,n.anchorOffset),y=hc(i,n.focusNode,n.focusOffset);if(!(g&&!g.bad&&y&&!y.bad&&Le(Go(g,y),l)==0&&Le(_n(g,y),u)==0)){var w=i.display.view,_=l.line>=i.display.viewFrom&&mv(i,l)||{node:w[0].measure.map[2],offset:0},k=u.line<i.display.viewTo&&mv(i,u);if(!k){var z=w[w.length-1].measure,W=z.maps?z.maps[z.maps.length-1]:z.map;k={node:W[W.length-1],offset:W[W.length-2]-W[W.length-3]}}if(!_||!k){n.removeAllRanges();return}var ee=n.rangeCount&&n.getRangeAt(0),X;try{X=j(_.node,_.offset,k.offset,k.node)}catch{}X&&(!s&&i.state.focused?(n.collapse(_.node,_.offset),X.collapsed||(n.removeAllRanges(),n.addRange(X))):(n.removeAllRanges(),n.addRange(X)),ee&&n.anchorNode==null?n.addRange(ee):s&&this.startGracePeriod()),this.rememberSelection()}},yt.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},yt.prototype.showMultipleSelections=function(n){N(this.cm.display.cursorDiv,n.cursors),N(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return oe(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||me(Ye(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Hn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(D&&b&&this.cm.display.gutterSpecs.length&&Z_(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=hc(i,n.anchorNode,n.anchorOffset),l=hc(i,n.focusNode,n.focusOffset);a&&l&&Hn(i,function(){ln(i.doc,Ni(a,l),K),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=le(l.line-1,Pe(n.doc,l.line-1).length)),u.ch==Pe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=le(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var g,y,w;l.line==i.viewFrom||(g=go(n,l.line))==0?(y=T(i.view[0].line),w=i.view[0].node):(y=T(i.view[g].line),w=i.view[g-1].node.nextSibling);var _=go(n,u.line),k,z;if(_==i.view.length-1?(k=i.viewTo-1,z=i.lineDiv.lastChild):(k=T(i.view[_+1].line)-1,z=i.view[_+1].node.previousSibling),!w)return!1;for(var W=n.doc.splitLines(J_(n,w,z,y,k)),ee=Qr(n.doc,le(y,0),le(k,Pe(n.doc,k).text.length));W.length>1&&ee.length>1;)if(ve(W)==ve(ee))W.pop(),ee.pop(),k--;else if(W[0]==ee[0])W.shift(),ee.shift(),y++;else break;for(var X=0,ce=0,ge=W[0],xe=ee[0],ke=Math.min(ge.length,xe.length);X<ke&&ge.charCodeAt(X)==xe.charCodeAt(X);)++X;for(var Me=ve(W),Te=ve(ee),Ne=Math.min(Me.length-(W.length==1?X:0),Te.length-(ee.length==1?X:0));ce<Ne&&Me.charCodeAt(Me.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)++ce;if(W.length==1&&ee.length==1&&y==l.line)for(;X&&X>l.ch&&Me.charCodeAt(Me.length-ce-1)==Te.charCodeAt(Te.length-ce-1);)X--,ce++;W[W.length-1]=Me.slice(0,Me.length-ce).replace(/^\u200b+/,""),W[0]=W[0].slice(X).replace(/\u200b+$/,"");var He=le(y,X),Ie=le(k,ee.length?ve(ee).length-ce:0);if(W.length>1||W[0]||Le(He,Ie))return os(n.doc,W,He,Ie,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Hn(this.cm,function(){return Sn(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Xt(this.cm,jf)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},yt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function mv(n,i){var a=df(n,i.line);if(!a||a.hidden)return null;var l=Pe(n.doc,i.line),u=Vp(a,l,i.line),g=tt(l,n.doc.direction),y="left";if(g){var w=Dt(g,i.ch);y=w%2?"right":"left"}var _=Xp(u.map,i.ch,y);return _.offset=_.collapse=="right"?_.end:_.start,_}function Z_(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function us(n,i){return i&&(n.bad=!0),n}function J_(n,i,a,l,u){var g="",y=!1,w=n.doc.lineSeparator(),_=!1;function k(X){return function(ce){return ce.id==X}}function z(){y&&(g+=w,_&&(g+=w),y=_=!1)}function W(X){X&&(z(),g+=X)}function ee(X){if(X.nodeType==1){var ce=X.getAttribute("cm-text");if(ce){W(ce);return}var ge=X.getAttribute("cm-marker"),xe;if(ge){var ke=n.findMarks(le(l,0),le(u+1,0),k(+ge));ke.length&&(xe=ke[0].find(0))&&W(Qr(n.doc,xe.from,xe.to).join(w));return}if(X.getAttribute("contenteditable")=="false")return;var Me=/^(pre|div|p|li|table|br)$/i.test(X.nodeName);if(!/^br$/i.test(X.nodeName)&&X.textContent.length==0)return;Me&&z();for(var Te=0;Te<X.childNodes.length;Te++)ee(X.childNodes[Te]);/^(pre|p)$/i.test(X.nodeName)&&(_=!0),Me&&(y=!0)}else X.nodeType==3&&W(X.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ee(i),i!=a;)i=i.nextSibling,_=!1;return g}function hc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return us(n.clipPos(le(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var g=n.display.view[u];if(g.node==l)return Q_(g,i,a)}}function Q_(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!oe(l,i))return us(le(T(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var g=n.rest?ve(n.rest):n.line;return us(le(T(g),g.text.length),u)}var y=i.nodeType==3?i:null,w=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));w.parentNode!=l;)w=w.parentNode;var _=n.measure,k=_.maps;function z(xe,ke,Me){for(var Te=-1;Te<(k?k.length:0);Te++)for(var Ne=Te<0?_.map:k[Te],He=0;He<Ne.length;He+=3){var Ie=Ne[He+2];if(Ie==xe||Ie==ke){var et=T(Te<0?n.line:n.rest[Te]),xt=Ne[He]+Me;return(Me<0||Ie!=xe)&&(xt=Ne[He+(Me?1:0)]),le(et,xt)}}}var W=z(y,w,a);if(W)return us(W,u);for(var ee=w.nextSibling,X=y?y.nodeValue.length-a:0;ee;ee=ee.nextSibling){if(W=z(ee,ee.firstChild,0),W)return us(le(W.line,W.ch-X),u);X+=ee.textContent.length}for(var ce=w.previousSibling,ge=a;ce;ce=ce.previousSibling){if(W=z(ce,ce.firstChild,-1),W)return us(le(W.line,W.ch+ge),u);ge+=ce.textContent.length}}var Ft=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new ae,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ft.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),$&&(u.style.width="0px"),Fe(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Fe(u,"paste",function(y){Pt(l,y)||dv(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function g(y){if(!Pt(l,y)){if(l.somethingSelected())dc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var w=pv(l);dc({lineWise:!0,text:w.text}),y.type=="cut"?l.setSelections(w.ranges,null,K):(a.prevInput="",u.value=w.text.join(`
|
|
38
|
+
`),je(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Fe(u,"cut",g),Fe(u,"copy",g),Fe(n.scroller,"paste",function(y){if(!(ni(n,y)||Pt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var w=new Event("paste");w.clipboardData=y.clipboardData,u.dispatchEvent(w)}}),Fe(n.lineSpace,"selectstart",function(y){ni(n,y)||sn(y)}),Fe(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Fe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Ft.prototype.createField=function(n){this.wrapper=gv(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Uf(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Ft.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Ft.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=sg(n);if(n.options.moveInputWithCursor){var u=wr(n,a.sel.primary().head,"div"),g=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-g.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-g.left))}return l},Ft.prototype.showSelection=function(n){var i=this.cm,a=i.display;N(a.cursorDiv,n.cursors),N(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Ft.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&je(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Ft.prototype.getField=function(){return this.textarea},Ft.prototype.supportsTouch=function(){return!1},Ft.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||me(Ye(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ft.prototype.blur=function(){this.textarea.blur()},Ft.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ft.prototype.receivedFocus=function(){this.slowPoll()},Ft.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Ft.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Ft.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Ei(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||I&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var g=u.charCodeAt(0);if(g==8203&&!l&&(l=""),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,w=Math.min(l.length,u.length);y<w&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Hn(i,function(){jf(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
|
|
39
|
+
`)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ft.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ft.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Ft.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=po(a,n),y=l.scroller.scrollTop;if(!g||C)return;var w=a.options.resetSelectionOnContextMenu;w&&a.doc.sel.contains(g)==-1&&Xt(a,ln)(a.doc,Ni(g),K);var _=u.style.cssText,k=i.wrapper.style.cssText,z=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
40
|
+
top: `+(n.clientY-z.top-5)+"px; left: "+(n.clientX-z.left-5)+`px;
|
|
41
|
+
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
42
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var W;v&&(W=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,W),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=X,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function ee(){if(u.selectionStart!=null){var ge=a.somethingSelected(),xe=""+(ge?u.value:"");u.value="⇚",u.value=xe,i.prevInput=ge?"":"",u.selectionStart=1,u.selectionEnd=xe.length,l.selForContextMenu=a.doc.sel}}function X(){if(i.contextMenuPending==X&&(i.contextMenuPending=!1,i.wrapper.style.cssText=k,u.style.cssText=_,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&ee();var ge=0,xe=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Xt(a,zg)(a):ge++<10?l.detectingSelectAll=setTimeout(xe,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(xe,200)}}if(h&&p>=9&&ee(),G){Ti(n);var ce=function(){on(window,"mouseup",ce),setTimeout(X,20)};Fe(window,"mouseup",ce)}else setTimeout(X,50)},Ft.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Ft.prototype.setUneditable=function(){},Ft.prototype.needsContentAttribute=!1;function eS(n,i){if(i=i?Y(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=me(Ye(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=w.getValue()}var u;if(n.form&&(Fe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var y=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=y}}catch{}}i.finishInit=function(_){_.save=l,_.getTextArea=function(){return n},_.toTextArea=function(){_.toTextArea=isNaN,l(),n.parentNode.removeChild(_.getWrapperElement()),n.style.display="",n.form&&(on(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var w=Tt(function(_){return n.parentNode.insertBefore(_,n.nextSibling)},i);return w}function tS(n){n.off=on,n.on=Fe,n.wheelEventPixels=a_,n.Doc=kn,n.splitLines=sr,n.countColumn=V,n.findColumn=fe,n.isWordChar=rt,n.Pass=q,n.signal=Ot,n.Line=Ko,n.changeEnd=Oi,n.scrollbarModel=dg,n.Pos=le,n.cmpPos=Le,n.modes=Wo,n.mimeModes=mr,n.resolveMode=qo,n.getMode=jo,n.modeExtensions=Ai,n.extendMode=Uo,n.copyState=Dr,n.startState=Vo,n.innerMode=Zs,n.commands=xl,n.keyMap=ii,n.keyName=Jg,n.isModifierKey=Yg,n.lookupKey=ls,n.normalizeKeyMap=M_,n.StringStream=Rt,n.SharedTextMarker=yl,n.TextMarker=Ri,n.LineWidget=ml,n.e_preventDefault=sn,n.e_stopPropagation=Ho,n.e_stop=Ti,n.addClass=Se,n.contains=oe,n.rmClass=P,n.keyNames=zi}V_(Tt),Y_(Tt);var nS="iter insert remove copy getEditor constructor".split(" ");for(var pc in kn.prototype)kn.prototype.hasOwnProperty(pc)&&pe(nS,pc)<0&&(Tt.prototype[pc]=(function(n){return function(){return n.apply(this.doc,arguments)}})(kn.prototype[pc]));return pr(kn),Tt.inputStyles={textarea:Ft,contenteditable:yt},Tt.defineMode=function(n){!Tt.defaults.mode&&n!="null"&&(Tt.defaults.mode=n),yr.apply(this,arguments)},Tt.defineMIME=uo,Tt.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Tt.defineMIME("text/plain","null"),Tt.defineExtension=function(n,i){Tt.prototype[n]=i},Tt.defineDocExtension=function(n,i){kn.prototype[n]=i},Tt.fromTextArea=eS,tS(Tt),Tt.version="5.65.18",Tt}))})(Dc)),Dc.exports}var jA=Gs();const UA=Mw(jA);var fd={},Sr={};const VA="Á",GA="á",KA="Ă",XA="ă",YA="∾",ZA="∿",JA="∾̳",QA="Â",eL="â",tL="´",nL="А",rL="а",iL="Æ",oL="æ",sL="",lL="𝔄",aL="𝔞",cL="À",uL="à",fL="ℵ",dL="ℵ",hL="Α",pL="α",gL="Ā",vL="ā",mL="⨿",yL="&",bL="&",wL="⩕",xL="⩓",_L="∧",SL="⩜",kL="⩘",TL="⩚",CL="∠",EL="⦤",AL="∠",LL="⦨",ML="⦩",$L="⦪",NL="⦫",OL="⦬",PL="⦭",RL="⦮",zL="⦯",IL="∡",DL="∟",FL="⊾",HL="⦝",BL="∢",WL="Å",qL="⍼",jL="Ą",UL="ą",VL="𝔸",GL="𝕒",KL="⩯",XL="≈",YL="⩰",ZL="≊",JL="≋",QL="'",eM="",tM="≈",nM="≊",rM="Å",iM="å",oM="𝒜",sM="𝒶",lM="≔",aM="*",cM="≈",uM="≍",fM="Ã",dM="ã",hM="Ä",pM="ä",gM="∳",vM="⨑",mM="≌",yM="϶",bM="‵",wM="∽",xM="⋍",_M="∖",SM="⫧",kM="⊽",TM="⌅",CM="⌆",EM="⌅",AM="⎵",LM="⎶",MM="≌",$M="Б",NM="б",OM="„",PM="∵",RM="∵",zM="∵",IM="⦰",DM="϶",FM="ℬ",HM="ℬ",BM="Β",WM="β",qM="ℶ",jM="≬",UM="𝔅",VM="𝔟",GM="⋂",KM="◯",XM="⋃",YM="⨀",ZM="⨁",JM="⨂",QM="⨆",e$="★",t$="▽",n$="△",r$="⨄",i$="⋁",o$="⋀",s$="⤍",l$="⧫",a$="▪",c$="▴",u$="▾",f$="◂",d$="▸",h$="␣",p$="▒",g$="░",v$="▓",m$="█",y$="=⃥",b$="≡⃥",w$="⫭",x$="⌐",_$="𝔹",S$="𝕓",k$="⊥",T$="⊥",C$="⋈",E$="⧉",A$="┐",L$="╕",M$="╖",$$="╗",N$="┌",O$="╒",P$="╓",R$="╔",z$="─",I$="═",D$="┬",F$="╤",H$="╥",B$="╦",W$="┴",q$="╧",j$="╨",U$="╩",V$="⊟",G$="⊞",K$="⊠",X$="┘",Y$="╛",Z$="╜",J$="╝",Q$="└",eN="╘",tN="╙",nN="╚",rN="│",iN="║",oN="┼",sN="╪",lN="╫",aN="╬",cN="┤",uN="╡",fN="╢",dN="╣",hN="├",pN="╞",gN="╟",vN="╠",mN="‵",yN="˘",bN="˘",wN="¦",xN="𝒷",_N="ℬ",SN="⁏",kN="∽",TN="⋍",CN="⧅",EN="\\",AN="⟈",LN="•",MN="•",$N="≎",NN="⪮",ON="≏",PN="≎",RN="≏",zN="Ć",IN="ć",DN="⩄",FN="⩉",HN="⩋",BN="∩",WN="⋒",qN="⩇",jN="⩀",UN="ⅅ",VN="∩︀",GN="⁁",KN="ˇ",XN="ℭ",YN="⩍",ZN="Č",JN="č",QN="Ç",eO="ç",tO="Ĉ",nO="ĉ",rO="∰",iO="⩌",oO="⩐",sO="Ċ",lO="ċ",aO="¸",cO="¸",uO="⦲",fO="¢",dO="·",hO="·",pO="𝔠",gO="ℭ",vO="Ч",mO="ч",yO="✓",bO="✓",wO="Χ",xO="χ",_O="ˆ",SO="≗",kO="↺",TO="↻",CO="⊛",EO="⊚",AO="⊝",LO="⊙",MO="®",$O="Ⓢ",NO="⊖",OO="⊕",PO="⊗",RO="○",zO="⧃",IO="≗",DO="⨐",FO="⫯",HO="⧂",BO="∲",WO="”",qO="’",jO="♣",UO="♣",VO=":",GO="∷",KO="⩴",XO="≔",YO="≔",ZO=",",JO="@",QO="∁",e2="∘",t2="∁",n2="ℂ",r2="≅",i2="⩭",o2="≡",s2="∮",l2="∯",a2="∮",c2="𝕔",u2="ℂ",f2="∐",d2="∐",h2="©",p2="©",g2="℗",v2="∳",m2="↵",y2="✗",b2="⨯",w2="𝒞",x2="𝒸",_2="⫏",S2="⫑",k2="⫐",T2="⫒",C2="⋯",E2="⤸",A2="⤵",L2="⋞",M2="⋟",$2="↶",N2="⤽",O2="⩈",P2="⩆",R2="≍",z2="∪",I2="⋓",D2="⩊",F2="⊍",H2="⩅",B2="∪︀",W2="↷",q2="⤼",j2="⋞",U2="⋟",V2="⋎",G2="⋏",K2="¤",X2="↶",Y2="↷",Z2="⋎",J2="⋏",Q2="∲",eP="∱",tP="⌭",nP="†",rP="‡",iP="ℸ",oP="↓",sP="↡",lP="⇓",aP="‐",cP="⫤",uP="⊣",fP="⤏",dP="˝",hP="Ď",pP="ď",gP="Д",vP="д",mP="‡",yP="⇊",bP="ⅅ",wP="ⅆ",xP="⤑",_P="⩷",SP="°",kP="∇",TP="Δ",CP="δ",EP="⦱",AP="⥿",LP="𝔇",MP="𝔡",$P="⥥",NP="⇃",OP="⇂",PP="´",RP="˙",zP="˝",IP="`",DP="˜",FP="⋄",HP="⋄",BP="⋄",WP="♦",qP="♦",jP="¨",UP="ⅆ",VP="ϝ",GP="⋲",KP="÷",XP="÷",YP="⋇",ZP="⋇",JP="Ђ",QP="ђ",eR="⌞",tR="⌍",nR="$",rR="𝔻",iR="𝕕",oR="¨",sR="˙",lR="⃜",aR="≐",cR="≑",uR="≐",fR="∸",dR="∔",hR="⊡",pR="⌆",gR="∯",vR="¨",mR="⇓",yR="⇐",bR="⇔",wR="⫤",xR="⟸",_R="⟺",SR="⟹",kR="⇒",TR="⊨",CR="⇑",ER="⇕",AR="∥",LR="⤓",MR="↓",$R="↓",NR="⇓",OR="⇵",PR="̑",RR="⇊",zR="⇃",IR="⇂",DR="⥐",FR="⥞",HR="⥖",BR="↽",WR="⥟",qR="⥗",jR="⇁",UR="↧",VR="⊤",GR="⤐",KR="⌟",XR="⌌",YR="𝒟",ZR="𝒹",JR="Ѕ",QR="ѕ",ez="⧶",tz="Đ",nz="đ",rz="⋱",iz="▿",oz="▾",sz="⇵",lz="⥯",az="⦦",cz="Џ",uz="џ",fz="⟿",dz="É",hz="é",pz="⩮",gz="Ě",vz="ě",mz="Ê",yz="ê",bz="≖",wz="≕",xz="Э",_z="э",Sz="⩷",kz="Ė",Tz="ė",Cz="≑",Ez="ⅇ",Az="≒",Lz="𝔈",Mz="𝔢",$z="⪚",Nz="È",Oz="è",Pz="⪖",Rz="⪘",zz="⪙",Iz="∈",Dz="⏧",Fz="ℓ",Hz="⪕",Bz="⪗",Wz="Ē",qz="ē",jz="∅",Uz="∅",Vz="◻",Gz="∅",Kz="▫",Xz=" ",Yz=" ",Zz=" ",Jz="Ŋ",Qz="ŋ",eI=" ",tI="Ę",nI="ę",rI="𝔼",iI="𝕖",oI="⋕",sI="⧣",lI="⩱",aI="ε",cI="Ε",uI="ε",fI="ϵ",dI="≖",hI="≕",pI="≂",gI="⪖",vI="⪕",mI="⩵",yI="=",bI="≂",wI="≟",xI="⇌",_I="≡",SI="⩸",kI="⧥",TI="⥱",CI="≓",EI="ℯ",AI="ℰ",LI="≐",MI="⩳",$I="≂",NI="Η",OI="η",PI="Ð",RI="ð",zI="Ë",II="ë",DI="€",FI="!",HI="∃",BI="∃",WI="ℰ",qI="ⅇ",jI="ⅇ",UI="≒",VI="Ф",GI="ф",KI="♀",XI="ffi",YI="ff",ZI="ffl",JI="𝔉",QI="𝔣",eD="fi",tD="◼",nD="▪",rD="fj",iD="♭",oD="fl",sD="▱",lD="ƒ",aD="𝔽",cD="𝕗",uD="∀",fD="∀",dD="⋔",hD="⫙",pD="ℱ",gD="⨍",vD="½",mD="⅓",yD="¼",bD="⅕",wD="⅙",xD="⅛",_D="⅔",SD="⅖",kD="¾",TD="⅗",CD="⅜",ED="⅘",AD="⅚",LD="⅝",MD="⅞",$D="⁄",ND="⌢",OD="𝒻",PD="ℱ",RD="ǵ",zD="Γ",ID="γ",DD="Ϝ",FD="ϝ",HD="⪆",BD="Ğ",WD="ğ",qD="Ģ",jD="Ĝ",UD="ĝ",VD="Г",GD="г",KD="Ġ",XD="ġ",YD="≥",ZD="≧",JD="⪌",QD="⋛",eF="≥",tF="≧",nF="⩾",rF="⪩",iF="⩾",oF="⪀",sF="⪂",lF="⪄",aF="⋛︀",cF="⪔",uF="𝔊",fF="𝔤",dF="≫",hF="⋙",pF="⋙",gF="ℷ",vF="Ѓ",mF="ѓ",yF="⪥",bF="≷",wF="⪒",xF="⪤",_F="⪊",SF="⪊",kF="⪈",TF="≩",CF="⪈",EF="≩",AF="⋧",LF="𝔾",MF="𝕘",$F="`",NF="≥",OF="⋛",PF="≧",RF="⪢",zF="≷",IF="⩾",DF="≳",FF="𝒢",HF="ℊ",BF="≳",WF="⪎",qF="⪐",jF="⪧",UF="⩺",VF=">",GF=">",KF="≫",XF="⋗",YF="⦕",ZF="⩼",JF="⪆",QF="⥸",eH="⋗",tH="⋛",nH="⪌",rH="≷",iH="≳",oH="≩︀",sH="≩︀",lH="ˇ",aH=" ",cH="½",uH="ℋ",fH="Ъ",dH="ъ",hH="⥈",pH="↔",gH="⇔",vH="↭",mH="^",yH="ℏ",bH="Ĥ",wH="ĥ",xH="♥",_H="♥",SH="…",kH="⊹",TH="𝔥",CH="ℌ",EH="ℋ",AH="⤥",LH="⤦",MH="⇿",$H="∻",NH="↩",OH="↪",PH="𝕙",RH="ℍ",zH="―",IH="─",DH="𝒽",FH="ℋ",HH="ℏ",BH="Ħ",WH="ħ",qH="≎",jH="≏",UH="⁃",VH="‐",GH="Í",KH="í",XH="",YH="Î",ZH="î",JH="И",QH="и",e3="İ",t3="Е",n3="е",r3="¡",i3="⇔",o3="𝔦",s3="ℑ",l3="Ì",a3="ì",c3="ⅈ",u3="⨌",f3="∭",d3="⧜",h3="℩",p3="IJ",g3="ij",v3="Ī",m3="ī",y3="ℑ",b3="ⅈ",w3="ℐ",x3="ℑ",_3="ı",S3="ℑ",k3="⊷",T3="Ƶ",C3="⇒",E3="℅",A3="∞",L3="⧝",M3="ı",$3="⊺",N3="∫",O3="∬",P3="ℤ",R3="∫",z3="⊺",I3="⋂",D3="⨗",F3="⨼",H3="",B3="",W3="Ё",q3="ё",j3="Į",U3="į",V3="𝕀",G3="𝕚",K3="Ι",X3="ι",Y3="⨼",Z3="¿",J3="𝒾",Q3="ℐ",eB="∈",tB="⋵",nB="⋹",rB="⋴",iB="⋳",oB="∈",sB="",lB="Ĩ",aB="ĩ",cB="І",uB="і",fB="Ï",dB="ï",hB="Ĵ",pB="ĵ",gB="Й",vB="й",mB="𝔍",yB="𝔧",bB="ȷ",wB="𝕁",xB="𝕛",_B="𝒥",SB="𝒿",kB="Ј",TB="ј",CB="Є",EB="є",AB="Κ",LB="κ",MB="ϰ",$B="Ķ",NB="ķ",OB="К",PB="к",RB="𝔎",zB="𝔨",IB="ĸ",DB="Х",FB="х",HB="Ќ",BB="ќ",WB="𝕂",qB="𝕜",jB="𝒦",UB="𝓀",VB="⇚",GB="Ĺ",KB="ĺ",XB="⦴",YB="ℒ",ZB="Λ",JB="λ",QB="⟨",e5="⟪",t5="⦑",n5="⟨",r5="⪅",i5="ℒ",o5="«",s5="⇤",l5="⤟",a5="←",c5="↞",u5="⇐",f5="⤝",d5="↩",h5="↫",p5="⤹",g5="⥳",v5="↢",m5="⤙",y5="⤛",b5="⪫",w5="⪭",x5="⪭︀",_5="⤌",S5="⤎",k5="❲",T5="{",C5="[",E5="⦋",A5="⦏",L5="⦍",M5="Ľ",$5="ľ",N5="Ļ",O5="ļ",P5="⌈",R5="{",z5="Л",I5="л",D5="⤶",F5="“",H5="„",B5="⥧",W5="⥋",q5="↲",j5="≤",U5="≦",V5="⟨",G5="⇤",K5="←",X5="←",Y5="⇐",Z5="⇆",J5="↢",Q5="⌈",e8="⟦",t8="⥡",n8="⥙",r8="⇃",i8="⌊",o8="↽",s8="↼",l8="⇇",a8="↔",c8="↔",u8="⇔",f8="⇆",d8="⇋",h8="↭",p8="⥎",g8="↤",v8="⊣",m8="⥚",y8="⋋",b8="⧏",w8="⊲",x8="⊴",_8="⥑",S8="⥠",k8="⥘",T8="↿",C8="⥒",E8="↼",A8="⪋",L8="⋚",M8="≤",$8="≦",N8="⩽",O8="⪨",P8="⩽",R8="⩿",z8="⪁",I8="⪃",D8="⋚︀",F8="⪓",H8="⪅",B8="⋖",W8="⋚",q8="⪋",j8="⋚",U8="≦",V8="≶",G8="≶",K8="⪡",X8="≲",Y8="⩽",Z8="≲",J8="⥼",Q8="⌊",e4="𝔏",t4="𝔩",n4="≶",r4="⪑",i4="⥢",o4="↽",s4="↼",l4="⥪",a4="▄",c4="Љ",u4="љ",f4="⇇",d4="≪",h4="⋘",p4="⌞",g4="⇚",v4="⥫",m4="◺",y4="Ŀ",b4="ŀ",w4="⎰",x4="⎰",_4="⪉",S4="⪉",k4="⪇",T4="≨",C4="⪇",E4="≨",A4="⋦",L4="⟬",M4="⇽",$4="⟦",N4="⟵",O4="⟵",P4="⟸",R4="⟷",z4="⟷",I4="⟺",D4="⟼",F4="⟶",H4="⟶",B4="⟹",W4="↫",q4="↬",j4="⦅",U4="𝕃",V4="𝕝",G4="⨭",K4="⨴",X4="∗",Y4="_",Z4="↙",J4="↘",Q4="◊",eW="◊",tW="⧫",nW="(",rW="⦓",iW="⇆",oW="⌟",sW="⇋",lW="⥭",aW="",cW="⊿",uW="‹",fW="𝓁",dW="ℒ",hW="↰",pW="↰",gW="≲",vW="⪍",mW="⪏",yW="[",bW="‘",wW="‚",xW="Ł",_W="ł",SW="⪦",kW="⩹",TW="<",CW="<",EW="≪",AW="⋖",LW="⋋",MW="⋉",$W="⥶",NW="⩻",OW="◃",PW="⊴",RW="◂",zW="⦖",IW="⥊",DW="⥦",FW="≨︀",HW="≨︀",BW="¯",WW="♂",qW="✠",jW="✠",UW="↦",VW="↦",GW="↧",KW="↤",XW="↥",YW="▮",ZW="⨩",JW="М",QW="м",eq="—",tq="∺",nq="∡",rq=" ",iq="ℳ",oq="𝔐",sq="𝔪",lq="℧",aq="µ",cq="*",uq="⫰",fq="∣",dq="·",hq="⊟",pq="−",gq="∸",vq="⨪",mq="∓",yq="⫛",bq="…",wq="∓",xq="⊧",_q="𝕄",Sq="𝕞",kq="∓",Tq="𝓂",Cq="ℳ",Eq="∾",Aq="Μ",Lq="μ",Mq="⊸",$q="⊸",Nq="∇",Oq="Ń",Pq="ń",Rq="∠⃒",zq="≉",Iq="⩰̸",Dq="≋̸",Fq="ʼn",Hq="≉",Bq="♮",Wq="ℕ",qq="♮",jq=" ",Uq="≎̸",Vq="≏̸",Gq="⩃",Kq="Ň",Xq="ň",Yq="Ņ",Zq="ņ",Jq="≇",Qq="⩭̸",ej="⩂",tj="Н",nj="н",rj="–",ij="⤤",oj="↗",sj="⇗",lj="↗",aj="≠",cj="≐̸",uj="",fj="",dj="",hj="",pj="≢",gj="⤨",vj="≂̸",mj="≫",yj="≪",bj=`
|
|
43
|
+
`,wj="∄",xj="∄",_j="𝔑",Sj="𝔫",kj="≧̸",Tj="≱",Cj="≱",Ej="≧̸",Aj="⩾̸",Lj="⩾̸",Mj="⋙̸",$j="≵",Nj="≫⃒",Oj="≯",Pj="≯",Rj="≫̸",zj="↮",Ij="⇎",Dj="⫲",Fj="∋",Hj="⋼",Bj="⋺",Wj="∋",qj="Њ",jj="њ",Uj="↚",Vj="⇍",Gj="‥",Kj="≦̸",Xj="≰",Yj="↚",Zj="⇍",Jj="↮",Qj="⇎",e6="≰",t6="≦̸",n6="⩽̸",r6="⩽̸",i6="≮",o6="⋘̸",s6="≴",l6="≪⃒",a6="≮",c6="⋪",u6="⋬",f6="≪̸",d6="∤",h6="",p6=" ",g6="𝕟",v6="ℕ",m6="⫬",y6="¬",b6="≢",w6="≭",x6="∦",_6="∉",S6="≠",k6="≂̸",T6="∄",C6="≯",E6="≱",A6="≧̸",L6="≫̸",M6="≹",$6="⩾̸",N6="≵",O6="≎̸",P6="≏̸",R6="∉",z6="⋵̸",I6="⋹̸",D6="∉",F6="⋷",H6="⋶",B6="⧏̸",W6="⋪",q6="⋬",j6="≮",U6="≰",V6="≸",G6="≪̸",K6="⩽̸",X6="≴",Y6="⪢̸",Z6="⪡̸",J6="∌",Q6="∌",eU="⋾",tU="⋽",nU="⊀",rU="⪯̸",iU="⋠",oU="∌",sU="⧐̸",lU="⋫",aU="⋭",cU="⊏̸",uU="⋢",fU="⊐̸",dU="⋣",hU="⊂⃒",pU="⊈",gU="⊁",vU="⪰̸",mU="⋡",yU="≿̸",bU="⊃⃒",wU="⊉",xU="≁",_U="≄",SU="≇",kU="≉",TU="∤",CU="∦",EU="∦",AU="⫽⃥",LU="∂̸",MU="⨔",$U="⊀",NU="⋠",OU="⊀",PU="⪯̸",RU="⪯̸",zU="⤳̸",IU="↛",DU="⇏",FU="↝̸",HU="↛",BU="⇏",WU="⋫",qU="⋭",jU="⊁",UU="⋡",VU="⪰̸",GU="𝒩",KU="𝓃",XU="∤",YU="∦",ZU="≁",JU="≄",QU="≄",eV="∤",tV="∦",nV="⋢",rV="⋣",iV="⊄",oV="⫅̸",sV="⊈",lV="⊂⃒",aV="⊈",cV="⫅̸",uV="⊁",fV="⪰̸",dV="⊅",hV="⫆̸",pV="⊉",gV="⊃⃒",vV="⊉",mV="⫆̸",yV="≹",bV="Ñ",wV="ñ",xV="≸",_V="⋪",SV="⋬",kV="⋫",TV="⋭",CV="Ν",EV="ν",AV="#",LV="№",MV=" ",$V="≍⃒",NV="⊬",OV="⊭",PV="⊮",RV="⊯",zV="≥⃒",IV=">⃒",DV="⤄",FV="⧞",HV="⤂",BV="≤⃒",WV="<⃒",qV="⊴⃒",jV="⤃",UV="⊵⃒",VV="∼⃒",GV="⤣",KV="↖",XV="⇖",YV="↖",ZV="⤧",JV="Ó",QV="ó",e9="⊛",t9="Ô",n9="ô",r9="⊚",i9="О",o9="о",s9="⊝",l9="Ő",a9="ő",c9="⨸",u9="⊙",f9="⦼",d9="Œ",h9="œ",p9="⦿",g9="𝔒",v9="𝔬",m9="˛",y9="Ò",b9="ò",w9="⧁",x9="⦵",_9="Ω",S9="∮",k9="↺",T9="⦾",C9="⦻",E9="‾",A9="⧀",L9="Ō",M9="ō",$9="Ω",N9="ω",O9="Ο",P9="ο",R9="⦶",z9="⊖",I9="𝕆",D9="𝕠",F9="⦷",H9="“",B9="‘",W9="⦹",q9="⊕",j9="↻",U9="⩔",V9="∨",G9="⩝",K9="ℴ",X9="ℴ",Y9="ª",Z9="º",J9="⊶",Q9="⩖",eG="⩗",tG="⩛",nG="Ⓢ",rG="𝒪",iG="ℴ",oG="Ø",sG="ø",lG="⊘",aG="Õ",cG="õ",uG="⨶",fG="⨷",dG="⊗",hG="Ö",pG="ö",gG="⌽",vG="‾",mG="⏞",yG="⎴",bG="⏜",wG="¶",xG="∥",_G="∥",SG="⫳",kG="⫽",TG="∂",CG="∂",EG="П",AG="п",LG="%",MG=".",$G="‰",NG="⊥",OG="‱",PG="𝔓",RG="𝔭",zG="Φ",IG="φ",DG="ϕ",FG="ℳ",HG="☎",BG="Π",WG="π",qG="⋔",jG="ϖ",UG="ℏ",VG="ℎ",GG="ℏ",KG="⨣",XG="⊞",YG="⨢",ZG="+",JG="∔",QG="⨥",e7="⩲",t7="±",n7="±",r7="⨦",i7="⨧",o7="±",s7="ℌ",l7="⨕",a7="𝕡",c7="ℙ",u7="£",f7="⪷",d7="⪻",h7="≺",p7="≼",g7="⪷",v7="≺",m7="≼",y7="≺",b7="⪯",w7="≼",x7="≾",_7="⪯",S7="⪹",k7="⪵",T7="⋨",C7="⪯",E7="⪳",A7="≾",L7="′",M7="″",$7="ℙ",N7="⪹",O7="⪵",P7="⋨",R7="∏",z7="∏",I7="⌮",D7="⌒",F7="⌓",H7="∝",B7="∝",W7="∷",q7="∝",j7="≾",U7="⊰",V7="𝒫",G7="𝓅",K7="Ψ",X7="ψ",Y7=" ",Z7="𝔔",J7="𝔮",Q7="⨌",eK="𝕢",tK="ℚ",nK="⁗",rK="𝒬",iK="𝓆",oK="ℍ",sK="⨖",lK="?",aK="≟",cK='"',uK='"',fK="⇛",dK="∽̱",hK="Ŕ",pK="ŕ",gK="√",vK="⦳",mK="⟩",yK="⟫",bK="⦒",wK="⦥",xK="⟩",_K="»",SK="⥵",kK="⇥",TK="⤠",CK="⤳",EK="→",AK="↠",LK="⇒",MK="⤞",$K="↪",NK="↬",OK="⥅",PK="⥴",RK="⤖",zK="↣",IK="↝",DK="⤚",FK="⤜",HK="∶",BK="ℚ",WK="⤍",qK="⤏",jK="⤐",UK="❳",VK="}",GK="]",KK="⦌",XK="⦎",YK="⦐",ZK="Ř",JK="ř",QK="Ŗ",eX="ŗ",tX="⌉",nX="}",rX="Р",iX="р",oX="⤷",sX="⥩",lX="”",aX="”",cX="↳",uX="ℜ",fX="ℛ",dX="ℜ",hX="ℝ",pX="ℜ",gX="▭",vX="®",mX="®",yX="∋",bX="⇋",wX="⥯",xX="⥽",_X="⌋",SX="𝔯",kX="ℜ",TX="⥤",CX="⇁",EX="⇀",AX="⥬",LX="Ρ",MX="ρ",$X="ϱ",NX="⟩",OX="⇥",PX="→",RX="→",zX="⇒",IX="⇄",DX="↣",FX="⌉",HX="⟧",BX="⥝",WX="⥕",qX="⇂",jX="⌋",UX="⇁",VX="⇀",GX="⇄",KX="⇌",XX="⇉",YX="↝",ZX="↦",JX="⊢",QX="⥛",eY="⋌",tY="⧐",nY="⊳",rY="⊵",iY="⥏",oY="⥜",sY="⥔",lY="↾",aY="⥓",cY="⇀",uY="˚",fY="≓",dY="⇄",hY="⇌",pY="",gY="⎱",vY="⎱",mY="⫮",yY="⟭",bY="⇾",wY="⟧",xY="⦆",_Y="𝕣",SY="ℝ",kY="⨮",TY="⨵",CY="⥰",EY=")",AY="⦔",LY="⨒",MY="⇉",$Y="⇛",NY="›",OY="𝓇",PY="ℛ",RY="↱",zY="↱",IY="]",DY="’",FY="’",HY="⋌",BY="⋊",WY="▹",qY="⊵",jY="▸",UY="⧎",VY="⧴",GY="⥨",KY="℞",XY="Ś",YY="ś",ZY="‚",JY="⪸",QY="Š",eZ="š",tZ="⪼",nZ="≻",rZ="≽",iZ="⪰",oZ="⪴",sZ="Ş",lZ="ş",aZ="Ŝ",cZ="ŝ",uZ="⪺",fZ="⪶",dZ="⋩",hZ="⨓",pZ="≿",gZ="С",vZ="с",mZ="⊡",yZ="⋅",bZ="⩦",wZ="⤥",xZ="↘",_Z="⇘",SZ="↘",kZ="§",TZ=";",CZ="⤩",EZ="∖",AZ="∖",LZ="✶",MZ="𝔖",$Z="𝔰",NZ="⌢",OZ="♯",PZ="Щ",RZ="щ",zZ="Ш",IZ="ш",DZ="↓",FZ="←",HZ="∣",BZ="∥",WZ="→",qZ="↑",jZ="",UZ="Σ",VZ="σ",GZ="ς",KZ="ς",XZ="∼",YZ="⩪",ZZ="≃",JZ="≃",QZ="⪞",eJ="⪠",tJ="⪝",nJ="⪟",rJ="≆",iJ="⨤",oJ="⥲",sJ="←",lJ="∘",aJ="∖",cJ="⨳",uJ="⧤",fJ="∣",dJ="⌣",hJ="⪪",pJ="⪬",gJ="⪬︀",vJ="Ь",mJ="ь",yJ="⌿",bJ="⧄",wJ="/",xJ="𝕊",_J="𝕤",SJ="♠",kJ="♠",TJ="∥",CJ="⊓",EJ="⊓︀",AJ="⊔",LJ="⊔︀",MJ="√",$J="⊏",NJ="⊑",OJ="⊏",PJ="⊑",RJ="⊐",zJ="⊒",IJ="⊐",DJ="⊒",FJ="□",HJ="□",BJ="⊓",WJ="⊏",qJ="⊑",jJ="⊐",UJ="⊒",VJ="⊔",GJ="▪",KJ="□",XJ="▪",YJ="→",ZJ="𝒮",JJ="𝓈",QJ="∖",eQ="⌣",tQ="⋆",nQ="⋆",rQ="☆",iQ="★",oQ="ϵ",sQ="ϕ",lQ="¯",aQ="⊂",cQ="⋐",uQ="⪽",fQ="⫅",dQ="⊆",hQ="⫃",pQ="⫁",gQ="⫋",vQ="⊊",mQ="⪿",yQ="⥹",bQ="⊂",wQ="⋐",xQ="⊆",_Q="⫅",SQ="⊆",kQ="⊊",TQ="⫋",CQ="⫇",EQ="⫕",AQ="⫓",LQ="⪸",MQ="≻",$Q="≽",NQ="≻",OQ="⪰",PQ="≽",RQ="≿",zQ="⪰",IQ="⪺",DQ="⪶",FQ="⋩",HQ="≿",BQ="∋",WQ="∑",qQ="∑",jQ="♪",UQ="¹",VQ="²",GQ="³",KQ="⊃",XQ="⋑",YQ="⪾",ZQ="⫘",JQ="⫆",QQ="⊇",eee="⫄",tee="⊃",nee="⊇",ree="⟉",iee="⫗",oee="⥻",see="⫂",lee="⫌",aee="⊋",cee="⫀",uee="⊃",fee="⋑",dee="⊇",hee="⫆",pee="⊋",gee="⫌",vee="⫈",mee="⫔",yee="⫖",bee="⤦",wee="↙",xee="⇙",_ee="↙",See="⤪",kee="ß",Tee=" ",Cee="⌖",Eee="Τ",Aee="τ",Lee="⎴",Mee="Ť",$ee="ť",Nee="Ţ",Oee="ţ",Pee="Т",Ree="т",zee="⃛",Iee="⌕",Dee="𝔗",Fee="𝔱",Hee="∴",Bee="∴",Wee="∴",qee="Θ",jee="θ",Uee="ϑ",Vee="ϑ",Gee="≈",Kee="∼",Xee=" ",Yee=" ",Zee=" ",Jee="≈",Qee="∼",ete="Þ",tte="þ",nte="˜",rte="∼",ite="≃",ote="≅",ste="≈",lte="⨱",ate="⊠",cte="×",ute="⨰",fte="∭",dte="⤨",hte="⌶",pte="⫱",gte="⊤",vte="𝕋",mte="𝕥",yte="⫚",bte="⤩",wte="‴",xte="™",_te="™",Ste="▵",kte="▿",Tte="◃",Cte="⊴",Ete="≜",Ate="▹",Lte="⊵",Mte="◬",$te="≜",Nte="⨺",Ote="⃛",Pte="⨹",Rte="⧍",zte="⨻",Ite="⏢",Dte="𝒯",Fte="𝓉",Hte="Ц",Bte="ц",Wte="Ћ",qte="ћ",jte="Ŧ",Ute="ŧ",Vte="≬",Gte="↞",Kte="↠",Xte="Ú",Yte="ú",Zte="↑",Jte="↟",Qte="⇑",ene="⥉",tne="Ў",nne="ў",rne="Ŭ",ine="ŭ",one="Û",sne="û",lne="У",ane="у",cne="⇅",une="Ű",fne="ű",dne="⥮",hne="⥾",pne="𝔘",gne="𝔲",vne="Ù",mne="ù",yne="⥣",bne="↿",wne="↾",xne="▀",_ne="⌜",Sne="⌜",kne="⌏",Tne="◸",Cne="Ū",Ene="ū",Ane="¨",Lne="_",Mne="⏟",$ne="⎵",Nne="⏝",One="⋃",Pne="⊎",Rne="Ų",zne="ų",Ine="𝕌",Dne="𝕦",Fne="⤒",Hne="↑",Bne="↑",Wne="⇑",qne="⇅",jne="↕",Une="↕",Vne="⇕",Gne="⥮",Kne="↿",Xne="↾",Yne="⊎",Zne="↖",Jne="↗",Qne="υ",ere="ϒ",tre="ϒ",nre="Υ",rre="υ",ire="↥",ore="⊥",sre="⇈",lre="⌝",are="⌝",cre="⌎",ure="Ů",fre="ů",dre="◹",hre="𝒰",pre="𝓊",gre="⋰",vre="Ũ",mre="ũ",yre="▵",bre="▴",wre="⇈",xre="Ü",_re="ü",Sre="⦧",kre="⦜",Tre="ϵ",Cre="ϰ",Ere="∅",Are="ϕ",Lre="ϖ",Mre="∝",$re="↕",Nre="⇕",Ore="ϱ",Pre="ς",Rre="⊊︀",zre="⫋︀",Ire="⊋︀",Dre="⫌︀",Fre="ϑ",Hre="⊲",Bre="⊳",Wre="⫨",qre="⫫",jre="⫩",Ure="В",Vre="в",Gre="⊢",Kre="⊨",Xre="⊩",Yre="⊫",Zre="⫦",Jre="⊻",Qre="∨",eie="⋁",tie="≚",nie="⋮",rie="|",iie="‖",oie="|",sie="‖",lie="∣",aie="|",cie="❘",uie="≀",fie=" ",die="𝔙",hie="𝔳",pie="⊲",gie="⊂⃒",vie="⊃⃒",mie="𝕍",yie="𝕧",bie="∝",wie="⊳",xie="𝒱",_ie="𝓋",Sie="⫋︀",kie="⊊︀",Tie="⫌︀",Cie="⊋︀",Eie="⊪",Aie="⦚",Lie="Ŵ",Mie="ŵ",$ie="⩟",Nie="∧",Oie="⋀",Pie="≙",Rie="℘",zie="𝔚",Iie="𝔴",Die="𝕎",Fie="𝕨",Hie="℘",Bie="≀",Wie="≀",qie="𝒲",jie="𝓌",Uie="⋂",Vie="◯",Gie="⋃",Kie="▽",Xie="𝔛",Yie="𝔵",Zie="⟷",Jie="⟺",Qie="Ξ",eoe="ξ",toe="⟵",noe="⟸",roe="⟼",ioe="⋻",ooe="⨀",soe="𝕏",loe="𝕩",aoe="⨁",coe="⨂",uoe="⟶",foe="⟹",doe="𝒳",hoe="𝓍",poe="⨆",goe="⨄",voe="△",moe="⋁",yoe="⋀",boe="Ý",woe="ý",xoe="Я",_oe="я",Soe="Ŷ",koe="ŷ",Toe="Ы",Coe="ы",Eoe="¥",Aoe="𝔜",Loe="𝔶",Moe="Ї",$oe="ї",Noe="𝕐",Ooe="𝕪",Poe="𝒴",Roe="𝓎",zoe="Ю",Ioe="ю",Doe="ÿ",Foe="Ÿ",Hoe="Ź",Boe="ź",Woe="Ž",qoe="ž",joe="З",Uoe="з",Voe="Ż",Goe="ż",Koe="ℨ",Xoe="",Yoe="Ζ",Zoe="ζ",Joe="𝔷",Qoe="ℨ",ese="Ж",tse="ж",nse="⇝",rse="𝕫",ise="ℤ",ose="𝒵",sse="𝓏",lse="",ase="",$w={Aacute:VA,aacute:GA,Abreve:KA,abreve:XA,ac:YA,acd:ZA,acE:JA,Acirc:QA,acirc:eL,acute:tL,Acy:nL,acy:rL,AElig:iL,aelig:oL,af:sL,Afr:lL,afr:aL,Agrave:cL,agrave:uL,alefsym:fL,aleph:dL,Alpha:hL,alpha:pL,Amacr:gL,amacr:vL,amalg:mL,amp:yL,AMP:bL,andand:wL,And:xL,and:_L,andd:SL,andslope:kL,andv:TL,ang:CL,ange:EL,angle:AL,angmsdaa:LL,angmsdab:ML,angmsdac:$L,angmsdad:NL,angmsdae:OL,angmsdaf:PL,angmsdag:RL,angmsdah:zL,angmsd:IL,angrt:DL,angrtvb:FL,angrtvbd:HL,angsph:BL,angst:WL,angzarr:qL,Aogon:jL,aogon:UL,Aopf:VL,aopf:GL,apacir:KL,ap:XL,apE:YL,ape:ZL,apid:JL,apos:QL,ApplyFunction:eM,approx:tM,approxeq:nM,Aring:rM,aring:iM,Ascr:oM,ascr:sM,Assign:lM,ast:aM,asymp:cM,asympeq:uM,Atilde:fM,atilde:dM,Auml:hM,auml:pM,awconint:gM,awint:vM,backcong:mM,backepsilon:yM,backprime:bM,backsim:wM,backsimeq:xM,Backslash:_M,Barv:SM,barvee:kM,barwed:TM,Barwed:CM,barwedge:EM,bbrk:AM,bbrktbrk:LM,bcong:MM,Bcy:$M,bcy:NM,bdquo:OM,becaus:PM,because:RM,Because:zM,bemptyv:IM,bepsi:DM,bernou:FM,Bernoullis:HM,Beta:BM,beta:WM,beth:qM,between:jM,Bfr:UM,bfr:VM,bigcap:GM,bigcirc:KM,bigcup:XM,bigodot:YM,bigoplus:ZM,bigotimes:JM,bigsqcup:QM,bigstar:e$,bigtriangledown:t$,bigtriangleup:n$,biguplus:r$,bigvee:i$,bigwedge:o$,bkarow:s$,blacklozenge:l$,blacksquare:a$,blacktriangle:c$,blacktriangledown:u$,blacktriangleleft:f$,blacktriangleright:d$,blank:h$,blk12:p$,blk14:g$,blk34:v$,block:m$,bne:y$,bnequiv:b$,bNot:w$,bnot:x$,Bopf:_$,bopf:S$,bot:k$,bottom:T$,bowtie:C$,boxbox:E$,boxdl:A$,boxdL:L$,boxDl:M$,boxDL:$$,boxdr:N$,boxdR:O$,boxDr:P$,boxDR:R$,boxh:z$,boxH:I$,boxhd:D$,boxHd:F$,boxhD:H$,boxHD:B$,boxhu:W$,boxHu:q$,boxhU:j$,boxHU:U$,boxminus:V$,boxplus:G$,boxtimes:K$,boxul:X$,boxuL:Y$,boxUl:Z$,boxUL:J$,boxur:Q$,boxuR:eN,boxUr:tN,boxUR:nN,boxv:rN,boxV:iN,boxvh:oN,boxvH:sN,boxVh:lN,boxVH:aN,boxvl:cN,boxvL:uN,boxVl:fN,boxVL:dN,boxvr:hN,boxvR:pN,boxVr:gN,boxVR:vN,bprime:mN,breve:yN,Breve:bN,brvbar:wN,bscr:xN,Bscr:_N,bsemi:SN,bsim:kN,bsime:TN,bsolb:CN,bsol:EN,bsolhsub:AN,bull:LN,bullet:MN,bump:$N,bumpE:NN,bumpe:ON,Bumpeq:PN,bumpeq:RN,Cacute:zN,cacute:IN,capand:DN,capbrcup:FN,capcap:HN,cap:BN,Cap:WN,capcup:qN,capdot:jN,CapitalDifferentialD:UN,caps:VN,caret:GN,caron:KN,Cayleys:XN,ccaps:YN,Ccaron:ZN,ccaron:JN,Ccedil:QN,ccedil:eO,Ccirc:tO,ccirc:nO,Cconint:rO,ccups:iO,ccupssm:oO,Cdot:sO,cdot:lO,cedil:aO,Cedilla:cO,cemptyv:uO,cent:fO,centerdot:dO,CenterDot:hO,cfr:pO,Cfr:gO,CHcy:vO,chcy:mO,check:yO,checkmark:bO,Chi:wO,chi:xO,circ:_O,circeq:SO,circlearrowleft:kO,circlearrowright:TO,circledast:CO,circledcirc:EO,circleddash:AO,CircleDot:LO,circledR:MO,circledS:$O,CircleMinus:NO,CirclePlus:OO,CircleTimes:PO,cir:RO,cirE:zO,cire:IO,cirfnint:DO,cirmid:FO,cirscir:HO,ClockwiseContourIntegral:BO,CloseCurlyDoubleQuote:WO,CloseCurlyQuote:qO,clubs:jO,clubsuit:UO,colon:VO,Colon:GO,Colone:KO,colone:XO,coloneq:YO,comma:ZO,commat:JO,comp:QO,compfn:e2,complement:t2,complexes:n2,cong:r2,congdot:i2,Congruent:o2,conint:s2,Conint:l2,ContourIntegral:a2,copf:c2,Copf:u2,coprod:f2,Coproduct:d2,copy:h2,COPY:p2,copysr:g2,CounterClockwiseContourIntegral:v2,crarr:m2,cross:y2,Cross:b2,Cscr:w2,cscr:x2,csub:_2,csube:S2,csup:k2,csupe:T2,ctdot:C2,cudarrl:E2,cudarrr:A2,cuepr:L2,cuesc:M2,cularr:$2,cularrp:N2,cupbrcap:O2,cupcap:P2,CupCap:R2,cup:z2,Cup:I2,cupcup:D2,cupdot:F2,cupor:H2,cups:B2,curarr:W2,curarrm:q2,curlyeqprec:j2,curlyeqsucc:U2,curlyvee:V2,curlywedge:G2,curren:K2,curvearrowleft:X2,curvearrowright:Y2,cuvee:Z2,cuwed:J2,cwconint:Q2,cwint:eP,cylcty:tP,dagger:nP,Dagger:rP,daleth:iP,darr:oP,Darr:sP,dArr:lP,dash:aP,Dashv:cP,dashv:uP,dbkarow:fP,dblac:dP,Dcaron:hP,dcaron:pP,Dcy:gP,dcy:vP,ddagger:mP,ddarr:yP,DD:bP,dd:wP,DDotrahd:xP,ddotseq:_P,deg:SP,Del:kP,Delta:TP,delta:CP,demptyv:EP,dfisht:AP,Dfr:LP,dfr:MP,dHar:$P,dharl:NP,dharr:OP,DiacriticalAcute:PP,DiacriticalDot:RP,DiacriticalDoubleAcute:zP,DiacriticalGrave:IP,DiacriticalTilde:DP,diam:FP,diamond:HP,Diamond:BP,diamondsuit:WP,diams:qP,die:jP,DifferentialD:UP,digamma:VP,disin:GP,div:KP,divide:XP,divideontimes:YP,divonx:ZP,DJcy:JP,djcy:QP,dlcorn:eR,dlcrop:tR,dollar:nR,Dopf:rR,dopf:iR,Dot:oR,dot:sR,DotDot:lR,doteq:aR,doteqdot:cR,DotEqual:uR,dotminus:fR,dotplus:dR,dotsquare:hR,doublebarwedge:pR,DoubleContourIntegral:gR,DoubleDot:vR,DoubleDownArrow:mR,DoubleLeftArrow:yR,DoubleLeftRightArrow:bR,DoubleLeftTee:wR,DoubleLongLeftArrow:xR,DoubleLongLeftRightArrow:_R,DoubleLongRightArrow:SR,DoubleRightArrow:kR,DoubleRightTee:TR,DoubleUpArrow:CR,DoubleUpDownArrow:ER,DoubleVerticalBar:AR,DownArrowBar:LR,downarrow:MR,DownArrow:$R,Downarrow:NR,DownArrowUpArrow:OR,DownBreve:PR,downdownarrows:RR,downharpoonleft:zR,downharpoonright:IR,DownLeftRightVector:DR,DownLeftTeeVector:FR,DownLeftVectorBar:HR,DownLeftVector:BR,DownRightTeeVector:WR,DownRightVectorBar:qR,DownRightVector:jR,DownTeeArrow:UR,DownTee:VR,drbkarow:GR,drcorn:KR,drcrop:XR,Dscr:YR,dscr:ZR,DScy:JR,dscy:QR,dsol:ez,Dstrok:tz,dstrok:nz,dtdot:rz,dtri:iz,dtrif:oz,duarr:sz,duhar:lz,dwangle:az,DZcy:cz,dzcy:uz,dzigrarr:fz,Eacute:dz,eacute:hz,easter:pz,Ecaron:gz,ecaron:vz,Ecirc:mz,ecirc:yz,ecir:bz,ecolon:wz,Ecy:xz,ecy:_z,eDDot:Sz,Edot:kz,edot:Tz,eDot:Cz,ee:Ez,efDot:Az,Efr:Lz,efr:Mz,eg:$z,Egrave:Nz,egrave:Oz,egs:Pz,egsdot:Rz,el:zz,Element:Iz,elinters:Dz,ell:Fz,els:Hz,elsdot:Bz,Emacr:Wz,emacr:qz,empty:jz,emptyset:Uz,EmptySmallSquare:Vz,emptyv:Gz,EmptyVerySmallSquare:Kz,emsp13:Xz,emsp14:Yz,emsp:Zz,ENG:Jz,eng:Qz,ensp:eI,Eogon:tI,eogon:nI,Eopf:rI,eopf:iI,epar:oI,eparsl:sI,eplus:lI,epsi:aI,Epsilon:cI,epsilon:uI,epsiv:fI,eqcirc:dI,eqcolon:hI,eqsim:pI,eqslantgtr:gI,eqslantless:vI,Equal:mI,equals:yI,EqualTilde:bI,equest:wI,Equilibrium:xI,equiv:_I,equivDD:SI,eqvparsl:kI,erarr:TI,erDot:CI,escr:EI,Escr:AI,esdot:LI,Esim:MI,esim:$I,Eta:NI,eta:OI,ETH:PI,eth:RI,Euml:zI,euml:II,euro:DI,excl:FI,exist:HI,Exists:BI,expectation:WI,exponentiale:qI,ExponentialE:jI,fallingdotseq:UI,Fcy:VI,fcy:GI,female:KI,ffilig:XI,fflig:YI,ffllig:ZI,Ffr:JI,ffr:QI,filig:eD,FilledSmallSquare:tD,FilledVerySmallSquare:nD,fjlig:rD,flat:iD,fllig:oD,fltns:sD,fnof:lD,Fopf:aD,fopf:cD,forall:uD,ForAll:fD,fork:dD,forkv:hD,Fouriertrf:pD,fpartint:gD,frac12:vD,frac13:mD,frac14:yD,frac15:bD,frac16:wD,frac18:xD,frac23:_D,frac25:SD,frac34:kD,frac35:TD,frac38:CD,frac45:ED,frac56:AD,frac58:LD,frac78:MD,frasl:$D,frown:ND,fscr:OD,Fscr:PD,gacute:RD,Gamma:zD,gamma:ID,Gammad:DD,gammad:FD,gap:HD,Gbreve:BD,gbreve:WD,Gcedil:qD,Gcirc:jD,gcirc:UD,Gcy:VD,gcy:GD,Gdot:KD,gdot:XD,ge:YD,gE:ZD,gEl:JD,gel:QD,geq:eF,geqq:tF,geqslant:nF,gescc:rF,ges:iF,gesdot:oF,gesdoto:sF,gesdotol:lF,gesl:aF,gesles:cF,Gfr:uF,gfr:fF,gg:dF,Gg:hF,ggg:pF,gimel:gF,GJcy:vF,gjcy:mF,gla:yF,gl:bF,glE:wF,glj:xF,gnap:_F,gnapprox:SF,gne:kF,gnE:TF,gneq:CF,gneqq:EF,gnsim:AF,Gopf:LF,gopf:MF,grave:$F,GreaterEqual:NF,GreaterEqualLess:OF,GreaterFullEqual:PF,GreaterGreater:RF,GreaterLess:zF,GreaterSlantEqual:IF,GreaterTilde:DF,Gscr:FF,gscr:HF,gsim:BF,gsime:WF,gsiml:qF,gtcc:jF,gtcir:UF,gt:VF,GT:GF,Gt:KF,gtdot:XF,gtlPar:YF,gtquest:ZF,gtrapprox:JF,gtrarr:QF,gtrdot:eH,gtreqless:tH,gtreqqless:nH,gtrless:rH,gtrsim:iH,gvertneqq:oH,gvnE:sH,Hacek:lH,hairsp:aH,half:cH,hamilt:uH,HARDcy:fH,hardcy:dH,harrcir:hH,harr:pH,hArr:gH,harrw:vH,Hat:mH,hbar:yH,Hcirc:bH,hcirc:wH,hearts:xH,heartsuit:_H,hellip:SH,hercon:kH,hfr:TH,Hfr:CH,HilbertSpace:EH,hksearow:AH,hkswarow:LH,hoarr:MH,homtht:$H,hookleftarrow:NH,hookrightarrow:OH,hopf:PH,Hopf:RH,horbar:zH,HorizontalLine:IH,hscr:DH,Hscr:FH,hslash:HH,Hstrok:BH,hstrok:WH,HumpDownHump:qH,HumpEqual:jH,hybull:UH,hyphen:VH,Iacute:GH,iacute:KH,ic:XH,Icirc:YH,icirc:ZH,Icy:JH,icy:QH,Idot:e3,IEcy:t3,iecy:n3,iexcl:r3,iff:i3,ifr:o3,Ifr:s3,Igrave:l3,igrave:a3,ii:c3,iiiint:u3,iiint:f3,iinfin:d3,iiota:h3,IJlig:p3,ijlig:g3,Imacr:v3,imacr:m3,image:y3,ImaginaryI:b3,imagline:w3,imagpart:x3,imath:_3,Im:S3,imof:k3,imped:T3,Implies:C3,incare:E3,in:"∈",infin:A3,infintie:L3,inodot:M3,intcal:$3,int:N3,Int:O3,integers:P3,Integral:R3,intercal:z3,Intersection:I3,intlarhk:D3,intprod:F3,InvisibleComma:H3,InvisibleTimes:B3,IOcy:W3,iocy:q3,Iogon:j3,iogon:U3,Iopf:V3,iopf:G3,Iota:K3,iota:X3,iprod:Y3,iquest:Z3,iscr:J3,Iscr:Q3,isin:eB,isindot:tB,isinE:nB,isins:rB,isinsv:iB,isinv:oB,it:sB,Itilde:lB,itilde:aB,Iukcy:cB,iukcy:uB,Iuml:fB,iuml:dB,Jcirc:hB,jcirc:pB,Jcy:gB,jcy:vB,Jfr:mB,jfr:yB,jmath:bB,Jopf:wB,jopf:xB,Jscr:_B,jscr:SB,Jsercy:kB,jsercy:TB,Jukcy:CB,jukcy:EB,Kappa:AB,kappa:LB,kappav:MB,Kcedil:$B,kcedil:NB,Kcy:OB,kcy:PB,Kfr:RB,kfr:zB,kgreen:IB,KHcy:DB,khcy:FB,KJcy:HB,kjcy:BB,Kopf:WB,kopf:qB,Kscr:jB,kscr:UB,lAarr:VB,Lacute:GB,lacute:KB,laemptyv:XB,lagran:YB,Lambda:ZB,lambda:JB,lang:QB,Lang:e5,langd:t5,langle:n5,lap:r5,Laplacetrf:i5,laquo:o5,larrb:s5,larrbfs:l5,larr:a5,Larr:c5,lArr:u5,larrfs:f5,larrhk:d5,larrlp:h5,larrpl:p5,larrsim:g5,larrtl:v5,latail:m5,lAtail:y5,lat:b5,late:w5,lates:x5,lbarr:_5,lBarr:S5,lbbrk:k5,lbrace:T5,lbrack:C5,lbrke:E5,lbrksld:A5,lbrkslu:L5,Lcaron:M5,lcaron:$5,Lcedil:N5,lcedil:O5,lceil:P5,lcub:R5,Lcy:z5,lcy:I5,ldca:D5,ldquo:F5,ldquor:H5,ldrdhar:B5,ldrushar:W5,ldsh:q5,le:j5,lE:U5,LeftAngleBracket:V5,LeftArrowBar:G5,leftarrow:K5,LeftArrow:X5,Leftarrow:Y5,LeftArrowRightArrow:Z5,leftarrowtail:J5,LeftCeiling:Q5,LeftDoubleBracket:e8,LeftDownTeeVector:t8,LeftDownVectorBar:n8,LeftDownVector:r8,LeftFloor:i8,leftharpoondown:o8,leftharpoonup:s8,leftleftarrows:l8,leftrightarrow:a8,LeftRightArrow:c8,Leftrightarrow:u8,leftrightarrows:f8,leftrightharpoons:d8,leftrightsquigarrow:h8,LeftRightVector:p8,LeftTeeArrow:g8,LeftTee:v8,LeftTeeVector:m8,leftthreetimes:y8,LeftTriangleBar:b8,LeftTriangle:w8,LeftTriangleEqual:x8,LeftUpDownVector:_8,LeftUpTeeVector:S8,LeftUpVectorBar:k8,LeftUpVector:T8,LeftVectorBar:C8,LeftVector:E8,lEg:A8,leg:L8,leq:M8,leqq:$8,leqslant:N8,lescc:O8,les:P8,lesdot:R8,lesdoto:z8,lesdotor:I8,lesg:D8,lesges:F8,lessapprox:H8,lessdot:B8,lesseqgtr:W8,lesseqqgtr:q8,LessEqualGreater:j8,LessFullEqual:U8,LessGreater:V8,lessgtr:G8,LessLess:K8,lesssim:X8,LessSlantEqual:Y8,LessTilde:Z8,lfisht:J8,lfloor:Q8,Lfr:e4,lfr:t4,lg:n4,lgE:r4,lHar:i4,lhard:o4,lharu:s4,lharul:l4,lhblk:a4,LJcy:c4,ljcy:u4,llarr:f4,ll:d4,Ll:h4,llcorner:p4,Lleftarrow:g4,llhard:v4,lltri:m4,Lmidot:y4,lmidot:b4,lmoustache:w4,lmoust:x4,lnap:_4,lnapprox:S4,lne:k4,lnE:T4,lneq:C4,lneqq:E4,lnsim:A4,loang:L4,loarr:M4,lobrk:$4,longleftarrow:N4,LongLeftArrow:O4,Longleftarrow:P4,longleftrightarrow:R4,LongLeftRightArrow:z4,Longleftrightarrow:I4,longmapsto:D4,longrightarrow:F4,LongRightArrow:H4,Longrightarrow:B4,looparrowleft:W4,looparrowright:q4,lopar:j4,Lopf:U4,lopf:V4,loplus:G4,lotimes:K4,lowast:X4,lowbar:Y4,LowerLeftArrow:Z4,LowerRightArrow:J4,loz:Q4,lozenge:eW,lozf:tW,lpar:nW,lparlt:rW,lrarr:iW,lrcorner:oW,lrhar:sW,lrhard:lW,lrm:aW,lrtri:cW,lsaquo:uW,lscr:fW,Lscr:dW,lsh:hW,Lsh:pW,lsim:gW,lsime:vW,lsimg:mW,lsqb:yW,lsquo:bW,lsquor:wW,Lstrok:xW,lstrok:_W,ltcc:SW,ltcir:kW,lt:TW,LT:CW,Lt:EW,ltdot:AW,lthree:LW,ltimes:MW,ltlarr:$W,ltquest:NW,ltri:OW,ltrie:PW,ltrif:RW,ltrPar:zW,lurdshar:IW,luruhar:DW,lvertneqq:FW,lvnE:HW,macr:BW,male:WW,malt:qW,maltese:jW,Map:"⤅",map:UW,mapsto:VW,mapstodown:GW,mapstoleft:KW,mapstoup:XW,marker:YW,mcomma:ZW,Mcy:JW,mcy:QW,mdash:eq,mDDot:tq,measuredangle:nq,MediumSpace:rq,Mellintrf:iq,Mfr:oq,mfr:sq,mho:lq,micro:aq,midast:cq,midcir:uq,mid:fq,middot:dq,minusb:hq,minus:pq,minusd:gq,minusdu:vq,MinusPlus:mq,mlcp:yq,mldr:bq,mnplus:wq,models:xq,Mopf:_q,mopf:Sq,mp:kq,mscr:Tq,Mscr:Cq,mstpos:Eq,Mu:Aq,mu:Lq,multimap:Mq,mumap:$q,nabla:Nq,Nacute:Oq,nacute:Pq,nang:Rq,nap:zq,napE:Iq,napid:Dq,napos:Fq,napprox:Hq,natural:Bq,naturals:Wq,natur:qq,nbsp:jq,nbump:Uq,nbumpe:Vq,ncap:Gq,Ncaron:Kq,ncaron:Xq,Ncedil:Yq,ncedil:Zq,ncong:Jq,ncongdot:Qq,ncup:ej,Ncy:tj,ncy:nj,ndash:rj,nearhk:ij,nearr:oj,neArr:sj,nearrow:lj,ne:aj,nedot:cj,NegativeMediumSpace:uj,NegativeThickSpace:fj,NegativeThinSpace:dj,NegativeVeryThinSpace:hj,nequiv:pj,nesear:gj,nesim:vj,NestedGreaterGreater:mj,NestedLessLess:yj,NewLine:bj,nexist:wj,nexists:xj,Nfr:_j,nfr:Sj,ngE:kj,nge:Tj,ngeq:Cj,ngeqq:Ej,ngeqslant:Aj,nges:Lj,nGg:Mj,ngsim:$j,nGt:Nj,ngt:Oj,ngtr:Pj,nGtv:Rj,nharr:zj,nhArr:Ij,nhpar:Dj,ni:Fj,nis:Hj,nisd:Bj,niv:Wj,NJcy:qj,njcy:jj,nlarr:Uj,nlArr:Vj,nldr:Gj,nlE:Kj,nle:Xj,nleftarrow:Yj,nLeftarrow:Zj,nleftrightarrow:Jj,nLeftrightarrow:Qj,nleq:e6,nleqq:t6,nleqslant:n6,nles:r6,nless:i6,nLl:o6,nlsim:s6,nLt:l6,nlt:a6,nltri:c6,nltrie:u6,nLtv:f6,nmid:d6,NoBreak:h6,NonBreakingSpace:p6,nopf:g6,Nopf:v6,Not:m6,not:y6,NotCongruent:b6,NotCupCap:w6,NotDoubleVerticalBar:x6,NotElement:_6,NotEqual:S6,NotEqualTilde:k6,NotExists:T6,NotGreater:C6,NotGreaterEqual:E6,NotGreaterFullEqual:A6,NotGreaterGreater:L6,NotGreaterLess:M6,NotGreaterSlantEqual:$6,NotGreaterTilde:N6,NotHumpDownHump:O6,NotHumpEqual:P6,notin:R6,notindot:z6,notinE:I6,notinva:D6,notinvb:F6,notinvc:H6,NotLeftTriangleBar:B6,NotLeftTriangle:W6,NotLeftTriangleEqual:q6,NotLess:j6,NotLessEqual:U6,NotLessGreater:V6,NotLessLess:G6,NotLessSlantEqual:K6,NotLessTilde:X6,NotNestedGreaterGreater:Y6,NotNestedLessLess:Z6,notni:J6,notniva:Q6,notnivb:eU,notnivc:tU,NotPrecedes:nU,NotPrecedesEqual:rU,NotPrecedesSlantEqual:iU,NotReverseElement:oU,NotRightTriangleBar:sU,NotRightTriangle:lU,NotRightTriangleEqual:aU,NotSquareSubset:cU,NotSquareSubsetEqual:uU,NotSquareSuperset:fU,NotSquareSupersetEqual:dU,NotSubset:hU,NotSubsetEqual:pU,NotSucceeds:gU,NotSucceedsEqual:vU,NotSucceedsSlantEqual:mU,NotSucceedsTilde:yU,NotSuperset:bU,NotSupersetEqual:wU,NotTilde:xU,NotTildeEqual:_U,NotTildeFullEqual:SU,NotTildeTilde:kU,NotVerticalBar:TU,nparallel:CU,npar:EU,nparsl:AU,npart:LU,npolint:MU,npr:$U,nprcue:NU,nprec:OU,npreceq:PU,npre:RU,nrarrc:zU,nrarr:IU,nrArr:DU,nrarrw:FU,nrightarrow:HU,nRightarrow:BU,nrtri:WU,nrtrie:qU,nsc:jU,nsccue:UU,nsce:VU,Nscr:GU,nscr:KU,nshortmid:XU,nshortparallel:YU,nsim:ZU,nsime:JU,nsimeq:QU,nsmid:eV,nspar:tV,nsqsube:nV,nsqsupe:rV,nsub:iV,nsubE:oV,nsube:sV,nsubset:lV,nsubseteq:aV,nsubseteqq:cV,nsucc:uV,nsucceq:fV,nsup:dV,nsupE:hV,nsupe:pV,nsupset:gV,nsupseteq:vV,nsupseteqq:mV,ntgl:yV,Ntilde:bV,ntilde:wV,ntlg:xV,ntriangleleft:_V,ntrianglelefteq:SV,ntriangleright:kV,ntrianglerighteq:TV,Nu:CV,nu:EV,num:AV,numero:LV,numsp:MV,nvap:$V,nvdash:NV,nvDash:OV,nVdash:PV,nVDash:RV,nvge:zV,nvgt:IV,nvHarr:DV,nvinfin:FV,nvlArr:HV,nvle:BV,nvlt:WV,nvltrie:qV,nvrArr:jV,nvrtrie:UV,nvsim:VV,nwarhk:GV,nwarr:KV,nwArr:XV,nwarrow:YV,nwnear:ZV,Oacute:JV,oacute:QV,oast:e9,Ocirc:t9,ocirc:n9,ocir:r9,Ocy:i9,ocy:o9,odash:s9,Odblac:l9,odblac:a9,odiv:c9,odot:u9,odsold:f9,OElig:d9,oelig:h9,ofcir:p9,Ofr:g9,ofr:v9,ogon:m9,Ograve:y9,ograve:b9,ogt:w9,ohbar:x9,ohm:_9,oint:S9,olarr:k9,olcir:T9,olcross:C9,oline:E9,olt:A9,Omacr:L9,omacr:M9,Omega:$9,omega:N9,Omicron:O9,omicron:P9,omid:R9,ominus:z9,Oopf:I9,oopf:D9,opar:F9,OpenCurlyDoubleQuote:H9,OpenCurlyQuote:B9,operp:W9,oplus:q9,orarr:j9,Or:U9,or:V9,ord:G9,order:K9,orderof:X9,ordf:Y9,ordm:Z9,origof:J9,oror:Q9,orslope:eG,orv:tG,oS:nG,Oscr:rG,oscr:iG,Oslash:oG,oslash:sG,osol:lG,Otilde:aG,otilde:cG,otimesas:uG,Otimes:fG,otimes:dG,Ouml:hG,ouml:pG,ovbar:gG,OverBar:vG,OverBrace:mG,OverBracket:yG,OverParenthesis:bG,para:wG,parallel:xG,par:_G,parsim:SG,parsl:kG,part:TG,PartialD:CG,Pcy:EG,pcy:AG,percnt:LG,period:MG,permil:$G,perp:NG,pertenk:OG,Pfr:PG,pfr:RG,Phi:zG,phi:IG,phiv:DG,phmmat:FG,phone:HG,Pi:BG,pi:WG,pitchfork:qG,piv:jG,planck:UG,planckh:VG,plankv:GG,plusacir:KG,plusb:XG,pluscir:YG,plus:ZG,plusdo:JG,plusdu:QG,pluse:e7,PlusMinus:t7,plusmn:n7,plussim:r7,plustwo:i7,pm:o7,Poincareplane:s7,pointint:l7,popf:a7,Popf:c7,pound:u7,prap:f7,Pr:d7,pr:h7,prcue:p7,precapprox:g7,prec:v7,preccurlyeq:m7,Precedes:y7,PrecedesEqual:b7,PrecedesSlantEqual:w7,PrecedesTilde:x7,preceq:_7,precnapprox:S7,precneqq:k7,precnsim:T7,pre:C7,prE:E7,precsim:A7,prime:L7,Prime:M7,primes:$7,prnap:N7,prnE:O7,prnsim:P7,prod:R7,Product:z7,profalar:I7,profline:D7,profsurf:F7,prop:H7,Proportional:B7,Proportion:W7,propto:q7,prsim:j7,prurel:U7,Pscr:V7,pscr:G7,Psi:K7,psi:X7,puncsp:Y7,Qfr:Z7,qfr:J7,qint:Q7,qopf:eK,Qopf:tK,qprime:nK,Qscr:rK,qscr:iK,quaternions:oK,quatint:sK,quest:lK,questeq:aK,quot:cK,QUOT:uK,rAarr:fK,race:dK,Racute:hK,racute:pK,radic:gK,raemptyv:vK,rang:mK,Rang:yK,rangd:bK,range:wK,rangle:xK,raquo:_K,rarrap:SK,rarrb:kK,rarrbfs:TK,rarrc:CK,rarr:EK,Rarr:AK,rArr:LK,rarrfs:MK,rarrhk:$K,rarrlp:NK,rarrpl:OK,rarrsim:PK,Rarrtl:RK,rarrtl:zK,rarrw:IK,ratail:DK,rAtail:FK,ratio:HK,rationals:BK,rbarr:WK,rBarr:qK,RBarr:jK,rbbrk:UK,rbrace:VK,rbrack:GK,rbrke:KK,rbrksld:XK,rbrkslu:YK,Rcaron:ZK,rcaron:JK,Rcedil:QK,rcedil:eX,rceil:tX,rcub:nX,Rcy:rX,rcy:iX,rdca:oX,rdldhar:sX,rdquo:lX,rdquor:aX,rdsh:cX,real:uX,realine:fX,realpart:dX,reals:hX,Re:pX,rect:gX,reg:vX,REG:mX,ReverseElement:yX,ReverseEquilibrium:bX,ReverseUpEquilibrium:wX,rfisht:xX,rfloor:_X,rfr:SX,Rfr:kX,rHar:TX,rhard:CX,rharu:EX,rharul:AX,Rho:LX,rho:MX,rhov:$X,RightAngleBracket:NX,RightArrowBar:OX,rightarrow:PX,RightArrow:RX,Rightarrow:zX,RightArrowLeftArrow:IX,rightarrowtail:DX,RightCeiling:FX,RightDoubleBracket:HX,RightDownTeeVector:BX,RightDownVectorBar:WX,RightDownVector:qX,RightFloor:jX,rightharpoondown:UX,rightharpoonup:VX,rightleftarrows:GX,rightleftharpoons:KX,rightrightarrows:XX,rightsquigarrow:YX,RightTeeArrow:ZX,RightTee:JX,RightTeeVector:QX,rightthreetimes:eY,RightTriangleBar:tY,RightTriangle:nY,RightTriangleEqual:rY,RightUpDownVector:iY,RightUpTeeVector:oY,RightUpVectorBar:sY,RightUpVector:lY,RightVectorBar:aY,RightVector:cY,ring:uY,risingdotseq:fY,rlarr:dY,rlhar:hY,rlm:pY,rmoustache:gY,rmoust:vY,rnmid:mY,roang:yY,roarr:bY,robrk:wY,ropar:xY,ropf:_Y,Ropf:SY,roplus:kY,rotimes:TY,RoundImplies:CY,rpar:EY,rpargt:AY,rppolint:LY,rrarr:MY,Rrightarrow:$Y,rsaquo:NY,rscr:OY,Rscr:PY,rsh:RY,Rsh:zY,rsqb:IY,rsquo:DY,rsquor:FY,rthree:HY,rtimes:BY,rtri:WY,rtrie:qY,rtrif:jY,rtriltri:UY,RuleDelayed:VY,ruluhar:GY,rx:KY,Sacute:XY,sacute:YY,sbquo:ZY,scap:JY,Scaron:QY,scaron:eZ,Sc:tZ,sc:nZ,sccue:rZ,sce:iZ,scE:oZ,Scedil:sZ,scedil:lZ,Scirc:aZ,scirc:cZ,scnap:uZ,scnE:fZ,scnsim:dZ,scpolint:hZ,scsim:pZ,Scy:gZ,scy:vZ,sdotb:mZ,sdot:yZ,sdote:bZ,searhk:wZ,searr:xZ,seArr:_Z,searrow:SZ,sect:kZ,semi:TZ,seswar:CZ,setminus:EZ,setmn:AZ,sext:LZ,Sfr:MZ,sfr:$Z,sfrown:NZ,sharp:OZ,SHCHcy:PZ,shchcy:RZ,SHcy:zZ,shcy:IZ,ShortDownArrow:DZ,ShortLeftArrow:FZ,shortmid:HZ,shortparallel:BZ,ShortRightArrow:WZ,ShortUpArrow:qZ,shy:jZ,Sigma:UZ,sigma:VZ,sigmaf:GZ,sigmav:KZ,sim:XZ,simdot:YZ,sime:ZZ,simeq:JZ,simg:QZ,simgE:eJ,siml:tJ,simlE:nJ,simne:rJ,simplus:iJ,simrarr:oJ,slarr:sJ,SmallCircle:lJ,smallsetminus:aJ,smashp:cJ,smeparsl:uJ,smid:fJ,smile:dJ,smt:hJ,smte:pJ,smtes:gJ,SOFTcy:vJ,softcy:mJ,solbar:yJ,solb:bJ,sol:wJ,Sopf:xJ,sopf:_J,spades:SJ,spadesuit:kJ,spar:TJ,sqcap:CJ,sqcaps:EJ,sqcup:AJ,sqcups:LJ,Sqrt:MJ,sqsub:$J,sqsube:NJ,sqsubset:OJ,sqsubseteq:PJ,sqsup:RJ,sqsupe:zJ,sqsupset:IJ,sqsupseteq:DJ,square:FJ,Square:HJ,SquareIntersection:BJ,SquareSubset:WJ,SquareSubsetEqual:qJ,SquareSuperset:jJ,SquareSupersetEqual:UJ,SquareUnion:VJ,squarf:GJ,squ:KJ,squf:XJ,srarr:YJ,Sscr:ZJ,sscr:JJ,ssetmn:QJ,ssmile:eQ,sstarf:tQ,Star:nQ,star:rQ,starf:iQ,straightepsilon:oQ,straightphi:sQ,strns:lQ,sub:aQ,Sub:cQ,subdot:uQ,subE:fQ,sube:dQ,subedot:hQ,submult:pQ,subnE:gQ,subne:vQ,subplus:mQ,subrarr:yQ,subset:bQ,Subset:wQ,subseteq:xQ,subseteqq:_Q,SubsetEqual:SQ,subsetneq:kQ,subsetneqq:TQ,subsim:CQ,subsub:EQ,subsup:AQ,succapprox:LQ,succ:MQ,succcurlyeq:$Q,Succeeds:NQ,SucceedsEqual:OQ,SucceedsSlantEqual:PQ,SucceedsTilde:RQ,succeq:zQ,succnapprox:IQ,succneqq:DQ,succnsim:FQ,succsim:HQ,SuchThat:BQ,sum:WQ,Sum:qQ,sung:jQ,sup1:UQ,sup2:VQ,sup3:GQ,sup:KQ,Sup:XQ,supdot:YQ,supdsub:ZQ,supE:JQ,supe:QQ,supedot:eee,Superset:tee,SupersetEqual:nee,suphsol:ree,suphsub:iee,suplarr:oee,supmult:see,supnE:lee,supne:aee,supplus:cee,supset:uee,Supset:fee,supseteq:dee,supseteqq:hee,supsetneq:pee,supsetneqq:gee,supsim:vee,supsub:mee,supsup:yee,swarhk:bee,swarr:wee,swArr:xee,swarrow:_ee,swnwar:See,szlig:kee,Tab:Tee,target:Cee,Tau:Eee,tau:Aee,tbrk:Lee,Tcaron:Mee,tcaron:$ee,Tcedil:Nee,tcedil:Oee,Tcy:Pee,tcy:Ree,tdot:zee,telrec:Iee,Tfr:Dee,tfr:Fee,there4:Hee,therefore:Bee,Therefore:Wee,Theta:qee,theta:jee,thetasym:Uee,thetav:Vee,thickapprox:Gee,thicksim:Kee,ThickSpace:Xee,ThinSpace:Yee,thinsp:Zee,thkap:Jee,thksim:Qee,THORN:ete,thorn:tte,tilde:nte,Tilde:rte,TildeEqual:ite,TildeFullEqual:ote,TildeTilde:ste,timesbar:lte,timesb:ate,times:cte,timesd:ute,tint:fte,toea:dte,topbot:hte,topcir:pte,top:gte,Topf:vte,topf:mte,topfork:yte,tosa:bte,tprime:wte,trade:xte,TRADE:_te,triangle:Ste,triangledown:kte,triangleleft:Tte,trianglelefteq:Cte,triangleq:Ete,triangleright:Ate,trianglerighteq:Lte,tridot:Mte,trie:$te,triminus:Nte,TripleDot:Ote,triplus:Pte,trisb:Rte,tritime:zte,trpezium:Ite,Tscr:Dte,tscr:Fte,TScy:Hte,tscy:Bte,TSHcy:Wte,tshcy:qte,Tstrok:jte,tstrok:Ute,twixt:Vte,twoheadleftarrow:Gte,twoheadrightarrow:Kte,Uacute:Xte,uacute:Yte,uarr:Zte,Uarr:Jte,uArr:Qte,Uarrocir:ene,Ubrcy:tne,ubrcy:nne,Ubreve:rne,ubreve:ine,Ucirc:one,ucirc:sne,Ucy:lne,ucy:ane,udarr:cne,Udblac:une,udblac:fne,udhar:dne,ufisht:hne,Ufr:pne,ufr:gne,Ugrave:vne,ugrave:mne,uHar:yne,uharl:bne,uharr:wne,uhblk:xne,ulcorn:_ne,ulcorner:Sne,ulcrop:kne,ultri:Tne,Umacr:Cne,umacr:Ene,uml:Ane,UnderBar:Lne,UnderBrace:Mne,UnderBracket:$ne,UnderParenthesis:Nne,Union:One,UnionPlus:Pne,Uogon:Rne,uogon:zne,Uopf:Ine,uopf:Dne,UpArrowBar:Fne,uparrow:Hne,UpArrow:Bne,Uparrow:Wne,UpArrowDownArrow:qne,updownarrow:jne,UpDownArrow:Une,Updownarrow:Vne,UpEquilibrium:Gne,upharpoonleft:Kne,upharpoonright:Xne,uplus:Yne,UpperLeftArrow:Zne,UpperRightArrow:Jne,upsi:Qne,Upsi:ere,upsih:tre,Upsilon:nre,upsilon:rre,UpTeeArrow:ire,UpTee:ore,upuparrows:sre,urcorn:lre,urcorner:are,urcrop:cre,Uring:ure,uring:fre,urtri:dre,Uscr:hre,uscr:pre,utdot:gre,Utilde:vre,utilde:mre,utri:yre,utrif:bre,uuarr:wre,Uuml:xre,uuml:_re,uwangle:Sre,vangrt:kre,varepsilon:Tre,varkappa:Cre,varnothing:Ere,varphi:Are,varpi:Lre,varpropto:Mre,varr:$re,vArr:Nre,varrho:Ore,varsigma:Pre,varsubsetneq:Rre,varsubsetneqq:zre,varsupsetneq:Ire,varsupsetneqq:Dre,vartheta:Fre,vartriangleleft:Hre,vartriangleright:Bre,vBar:Wre,Vbar:qre,vBarv:jre,Vcy:Ure,vcy:Vre,vdash:Gre,vDash:Kre,Vdash:Xre,VDash:Yre,Vdashl:Zre,veebar:Jre,vee:Qre,Vee:eie,veeeq:tie,vellip:nie,verbar:rie,Verbar:iie,vert:oie,Vert:sie,VerticalBar:lie,VerticalLine:aie,VerticalSeparator:cie,VerticalTilde:uie,VeryThinSpace:fie,Vfr:die,vfr:hie,vltri:pie,vnsub:gie,vnsup:vie,Vopf:mie,vopf:yie,vprop:bie,vrtri:wie,Vscr:xie,vscr:_ie,vsubnE:Sie,vsubne:kie,vsupnE:Tie,vsupne:Cie,Vvdash:Eie,vzigzag:Aie,Wcirc:Lie,wcirc:Mie,wedbar:$ie,wedge:Nie,Wedge:Oie,wedgeq:Pie,weierp:Rie,Wfr:zie,wfr:Iie,Wopf:Die,wopf:Fie,wp:Hie,wr:Bie,wreath:Wie,Wscr:qie,wscr:jie,xcap:Uie,xcirc:Vie,xcup:Gie,xdtri:Kie,Xfr:Xie,xfr:Yie,xharr:Zie,xhArr:Jie,Xi:Qie,xi:eoe,xlarr:toe,xlArr:noe,xmap:roe,xnis:ioe,xodot:ooe,Xopf:soe,xopf:loe,xoplus:aoe,xotime:coe,xrarr:uoe,xrArr:foe,Xscr:doe,xscr:hoe,xsqcup:poe,xuplus:goe,xutri:voe,xvee:moe,xwedge:yoe,Yacute:boe,yacute:woe,YAcy:xoe,yacy:_oe,Ycirc:Soe,ycirc:koe,Ycy:Toe,ycy:Coe,yen:Eoe,Yfr:Aoe,yfr:Loe,YIcy:Moe,yicy:$oe,Yopf:Noe,yopf:Ooe,Yscr:Poe,yscr:Roe,YUcy:zoe,yucy:Ioe,yuml:Doe,Yuml:Foe,Zacute:Hoe,zacute:Boe,Zcaron:Woe,zcaron:qoe,Zcy:joe,zcy:Uoe,Zdot:Voe,zdot:Goe,zeetrf:Koe,ZeroWidthSpace:Xoe,Zeta:Yoe,zeta:Zoe,zfr:Joe,Zfr:Qoe,ZHcy:ese,zhcy:tse,zigrarr:nse,zopf:rse,Zopf:ise,Zscr:ose,zscr:sse,zwj:lse,zwnj:ase},cse="Á",use="á",fse="Â",dse="â",hse="´",pse="Æ",gse="æ",vse="À",mse="à",yse="&",bse="&",wse="Å",xse="å",_se="Ã",Sse="ã",kse="Ä",Tse="ä",Cse="¦",Ese="Ç",Ase="ç",Lse="¸",Mse="¢",$se="©",Nse="©",Ose="¤",Pse="°",Rse="÷",zse="É",Ise="é",Dse="Ê",Fse="ê",Hse="È",Bse="è",Wse="Ð",qse="ð",jse="Ë",Use="ë",Vse="½",Gse="¼",Kse="¾",Xse=">",Yse=">",Zse="Í",Jse="í",Qse="Î",ele="î",tle="¡",nle="Ì",rle="ì",ile="¿",ole="Ï",sle="ï",lle="«",ale="<",cle="<",ule="¯",fle="µ",dle="·",hle=" ",ple="¬",gle="Ñ",vle="ñ",mle="Ó",yle="ó",ble="Ô",wle="ô",xle="Ò",_le="ò",Sle="ª",kle="º",Tle="Ø",Cle="ø",Ele="Õ",Ale="õ",Lle="Ö",Mle="ö",$le="¶",Nle="±",Ole="£",Ple='"',Rle='"',zle="»",Ile="®",Dle="®",Fle="§",Hle="",Ble="¹",Wle="²",qle="³",jle="ß",Ule="Þ",Vle="þ",Gle="×",Kle="Ú",Xle="ú",Yle="Û",Zle="û",Jle="Ù",Qle="ù",eae="¨",tae="Ü",nae="ü",rae="Ý",iae="ý",oae="¥",sae="ÿ",lae={Aacute:cse,aacute:use,Acirc:fse,acirc:dse,acute:hse,AElig:pse,aelig:gse,Agrave:vse,agrave:mse,amp:yse,AMP:bse,Aring:wse,aring:xse,Atilde:_se,atilde:Sse,Auml:kse,auml:Tse,brvbar:Cse,Ccedil:Ese,ccedil:Ase,cedil:Lse,cent:Mse,copy:$se,COPY:Nse,curren:Ose,deg:Pse,divide:Rse,Eacute:zse,eacute:Ise,Ecirc:Dse,ecirc:Fse,Egrave:Hse,egrave:Bse,ETH:Wse,eth:qse,Euml:jse,euml:Use,frac12:Vse,frac14:Gse,frac34:Kse,gt:Xse,GT:Yse,Iacute:Zse,iacute:Jse,Icirc:Qse,icirc:ele,iexcl:tle,Igrave:nle,igrave:rle,iquest:ile,Iuml:ole,iuml:sle,laquo:lle,lt:ale,LT:cle,macr:ule,micro:fle,middot:dle,nbsp:hle,not:ple,Ntilde:gle,ntilde:vle,Oacute:mle,oacute:yle,Ocirc:ble,ocirc:wle,Ograve:xle,ograve:_le,ordf:Sle,ordm:kle,Oslash:Tle,oslash:Cle,Otilde:Ele,otilde:Ale,Ouml:Lle,ouml:Mle,para:$le,plusmn:Nle,pound:Ole,quot:Ple,QUOT:Rle,raquo:zle,reg:Ile,REG:Dle,sect:Fle,shy:Hle,sup1:Ble,sup2:Wle,sup3:qle,szlig:jle,THORN:Ule,thorn:Vle,times:Gle,Uacute:Kle,uacute:Xle,Ucirc:Yle,ucirc:Zle,Ugrave:Jle,ugrave:Qle,uml:eae,Uuml:tae,uuml:nae,Yacute:rae,yacute:iae,yen:oae,yuml:sae},aae="&",cae="'",uae=">",fae="<",dae='"',Nw={amp:aae,apos:cae,gt:uae,lt:fae,quot:dae};var ps={};const hae={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 Bm;function pae(){if(Bm)return ps;Bm=1;var e=ps&&ps.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ps,"__esModule",{value:!0});var t=e(hae),r=String.fromCodePoint||function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),r(s))}return ps.default=o,ps}var Wm;function qm(){if(Wm)return Sr;Wm=1;var e=Sr&&Sr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.decodeHTML=Sr.decodeHTMLStrict=Sr.decodeXML=void 0;var t=e($w),r=e(lae),o=e(Nw),s=e(pae()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Sr.decodeXML=f(o.default),Sr.decodeHTMLStrict=f(t.default);function f(p){var v=h(p);return function(m){return String(m).replace(c,v)}}var d=function(p,v){return p<v?1:-1};Sr.decodeHTML=(function(){for(var p=Object.keys(r.default).sort(d),v=Object.keys(t.default).sort(d),m=0,b=0;m<v.length;m++)p[b]===v[m]?(v[m]+=";?",b++):v[m]+=";";var x=new RegExp("&(?:"+v.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),C=h(t.default);function M(A){return A.substr(-1)!==";"&&(A+=";"),C(A)}return function(A){return String(A).replace(x,M)}})();function h(p){return function(m){if(m.charAt(1)==="#"){var b=m.charAt(2);return b==="X"||b==="x"?s.default(parseInt(m.substr(3),16)):s.default(parseInt(m.substr(2),10))}return p[m.slice(1,-1)]||m}}return Sr}var An={},jm;function Um(){if(jm)return An;jm=1;var e=An&&An.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(An,"__esModule",{value:!0}),An.escapeUTF8=An.escape=An.encodeNonAsciiHTML=An.encodeHTML=An.encodeXML=void 0;var t=e(Nw),r=d(t.default),o=h(r);An.encodeXML=A(r);var s=e($w),c=d(s.default),f=h(c);An.encodeHTML=b(c,f),An.encodeNonAsciiHTML=A(c);function d(L){return Object.keys(L).sort().reduce(function($,D){return $[L[D]]="&"+D+";",$},{})}function h(L){for(var $=[],D=[],E=0,I=Object.keys(L);E<I.length;E++){var U=I[E];U.length===1?$.push("\\"+U):D.push(U)}$.sort();for(var ie=0;ie<$.length-1;ie++){for(var re=ie;re<$.length-1&&$[re].charCodeAt(1)+1===$[re+1].charCodeAt(1);)re+=1;var ne=1+re-ie;ne<3||$.splice(ie,ne,$[ie]+"-"+$[re])}return D.unshift("["+$.join("")+"]"),new RegExp(D.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,v=String.prototype.codePointAt!=null?function(L){return L.codePointAt(0)}:function(L){return(L.charCodeAt(0)-55296)*1024+L.charCodeAt(1)-56320+65536};function m(L){return"&#x"+(L.length>1?v(L):L.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(L,$){return function(D){return D.replace($,function(E){return L[E]}).replace(p,m)}}var x=new RegExp(o.source+"|"+p.source,"g");function C(L){return L.replace(x,m)}An.escape=C;function M(L){return L.replace(o,m)}An.escapeUTF8=M;function A(L){return function($){return $.replace(x,function(D){return L[D]||m(D)})}}return An}var Vm;function gae(){return Vm||(Vm=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=qm(),r=Um();function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=Um();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=qm();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})})(fd)),fd}var dd,Gm;function vae(){if(Gm)return dd;Gm=1;function e(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}function t(P,O){for(var N=0;N<O.length;N++){var S=O[N];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(P,S.key,S)}}function r(P,O,N){return O&&t(P.prototype,O),P}function o(P,O){var N=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!N){if(Array.isArray(P)||(N=s(P))||O){N&&(P=N);var S=0,F=function(){};return{s:F,n:function(){return S>=P.length?{done:!0}:{done:!1,value:P[S++]}},e:function(Re){throw Re},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
44
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j=!0,oe=!1,me;return{s:function(){N=N.call(P)},n:function(){var Re=N.next();return j=Re.done,Re},e:function(Re){oe=!0,me=Re},f:function(){try{!j&&N.return!=null&&N.return()}finally{if(oe)throw me}}}}function s(P,O){if(P){if(typeof P=="string")return c(P,O);var N=Object.prototype.toString.call(P).slice(8,-1);if(N==="Object"&&P.constructor&&(N=P.constructor.name),N==="Map"||N==="Set")return Array.from(P);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return c(P,O)}}function c(P,O){(O==null||O>P.length)&&(O=P.length);for(var N=0,S=new Array(O);N<O;N++)S[N]=P[N];return S}var f=gae(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){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 A(0,5).forEach(function(O){A(0,5).forEach(function(N){A(0,5).forEach(function(S){return p(O,N,S,P)})})}),A(0,23).forEach(function(O){var N=O+232,S=v(O*10+8);P[N]="#"+S+S+S}),P}function p(P,O,N,S){var F=16+P*36+O*6+N,j=P>0?P*40+55:0,oe=O>0?O*40+55:0,me=N>0?N*40+55:0;S[F]=m([j,oe,me])}function v(P){for(var O=P.toString(16);O.length<2;)O="0"+O;return O}function m(P){var O=[],N=o(P),S;try{for(N.s();!(S=N.n()).done;){var F=S.value;O.push(v(F))}}catch(j){N.e(j)}finally{N.f()}return"#"+O.join("")}function b(P,O,N,S){var F;return O==="text"?F=D(N,S):O==="display"?F=C(P,N,S):O==="xterm256Foreground"?F=U(P,S.colors[N]):O==="xterm256Background"?F=ie(P,S.colors[N]):O==="rgb"&&(F=x(P,N)),F}function x(P,O){O=O.substring(2).slice(0,-1);var N=+O.substr(0,2),S=O.substring(5).split(";"),F=S.map(function(j){return("0"+Number(j).toString(16)).substr(-2)}).join("");return I(P,(N===38?"color:#":"background-color:#")+F)}function C(P,O,N){O=parseInt(O,10);var S={"-1":function(){return"<br/>"},0:function(){return P.length&&M(P)},1:function(){return E(P,"b")},3:function(){return E(P,"i")},4:function(){return E(P,"u")},8:function(){return I(P,"display:none")},9:function(){return E(P,"strike")},22:function(){return I(P,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return re(P,"i")},24:function(){return re(P,"u")},39:function(){return U(P,N.fg)},49:function(){return ie(P,N.bg)},53:function(){return I(P,"text-decoration:overline")}},F;return S[O]?F=S[O]():4<O&&O<7?F=E(P,"blink"):29<O&&O<38?F=U(P,N.colors[O-30]):39<O&&O<48?F=ie(P,N.colors[O-40]):89<O&&O<98?F=U(P,N.colors[8+(O-90)]):99<O&&O<108&&(F=ie(P,N.colors[8+(O-100)])),F}function M(P){var O=P.slice(0);return P.length=0,O.reverse().map(function(N){return"</"+N+">"}).join("")}function A(P,O){for(var N=[],S=P;S<=O;S++)N.push(S);return N}function L(P){return function(O){return(P===null||O.category!==P)&&P!=="all"}}function $(P){P=parseInt(P,10);var O=null;return P===0?O="all":P===1?O="bold":2<P&&P<5?O="underline":4<P&&P<7?O="blink":P===8?O="hide":P===9?O="strike":29<P&&P<38||P===39||89<P&&P<98?O="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&(O="background-color"),O}function D(P,O){return O.escapeXML?f.encodeXML(P):P}function E(P,O,N){return N||(N=""),P.push(O),"<".concat(O).concat(N?' style="'.concat(N,'"'):"",">")}function I(P,O){return E(P,"span",O)}function U(P,O){return E(P,"span","color:"+O)}function ie(P,O){return E(P,"span","background-color:"+O)}function re(P,O){var N;if(P.slice(-1)[0]===O&&(N=P.pop()),N)return"</"+O+">"}function ne(P,O,N){var S=!1,F=3;function j(){return""}function oe(q,K){return N("xterm256Foreground",K),""}function me(q,K){return N("xterm256Background",K),""}function Se(q){return O.newline?N("display",-1):N("text",q),""}function Re(q,K){S=!0,K.trim().length===0&&(K="0"),K=K.trimRight(";").split(";");var ue=o(K),he;try{for(ue.s();!(he=ue.n()).done;){var fe=he.value;N("display",fe)}}catch(Ce){ue.e(Ce)}finally{ue.f()}return""}function je(q){return N("text",q),""}function Qe(q){return N("rgb",q),""}var Xe=[{pattern:/^\x08+/,sub:j},{pattern:/^\x1b\[[012]?K/,sub:j},{pattern:/^\x1b\[\(B/,sub:j},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Qe},{pattern:/^\x1b\[38;5;(\d+)m/,sub:oe},{pattern:/^\x1b\[48;5;(\d+)m/,sub:me},{pattern:/^\n/,sub:Se},{pattern:/^\r+\n/,sub:Se},{pattern:/^\r/,sub:Se},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Re},{pattern:/^\x1b\[\d?J/,sub:j},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:j},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:j},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:je}];function Ye(q,K){K>F&&S||(S=!1,P=P.replace(q.pattern,q.sub))}var te=[],H=P,Y=H.length;e:for(;Y>0;){for(var V=0,ae=0,pe=Xe.length;ae<pe;V=++ae){var R=Xe[V];if(Ye(R,V),P.length!==Y){Y=P.length;continue e}}if(P.length===Y)break;te.push(0),Y=P.length}return te}function G(P,O,N){return O!=="text"&&(P=P.filter(L($(N))),P.push({token:O,data:N,category:$(N)})),P}var J=(function(){function P(O){e(this,P),O=O||{},O.colors&&(O.colors=Object.assign({},d.colors,O.colors)),this.options=Object.assign({},d,O),this.stack=[],this.stickyStack=[]}return r(P,[{key:"toHtml",value:function(N){var S=this;N=typeof N=="string"?[N]:N;var F=this.stack,j=this.options,oe=[];return this.stickyStack.forEach(function(me){var Se=b(F,me.token,me.data,j);Se&&oe.push(Se)}),ne(N.join(""),j,function(me,Se){var Re=b(F,me,Se,j);Re&&oe.push(Re),j.stream&&(S.stickyStack=G(S.stickyStack,me,Se))}),F.length&&oe.push(M(F)),oe.join("")}}]),P})();return dd=J,dd}var mae=vae();const yae=Mw(mae);function Kl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function bae(e,t){return t&&e.endsWith(t)}async function Qh(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function ep(e){return new yae({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function wae(e){return e===null||typeof e!="function"&&typeof e!="object"}function Ow(e){let t=e;if(wae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:"",stacks:[]}}return t.stacks=DE(t.stack||"",{ignoreStackEntries:[]}),t}function xae(e,t){let r="";return t.message?.includes("\x1B")&&(r=`<b>${t.name}</b>: ${e.toHtml(Kl(t.message))}`),t.stack?.includes("\x1B")&&(r.length>0?r+=e.toHtml(Kl(t.stack)):r=`<b>${t.name}</b>: ${t.message}${e.toHtml(Kl(t.stack))}`),r.length>0?r:null}function Pw(e,t){const r=ep(e);return t.map(o=>{const s=o.result;if(!s||s.htmlError)return o;const c=s.errors?.map(f=>xae(r,f)).filter(f=>f!=null).join("<br><br>");return c?.length&&(s.htmlError=c),o})}const Na=aE("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),oo=Fo(Na,"file"),cn=Fo(Na,"view"),Rw=Fo(Na,"line"),zw=Fo(Na,"column"),Ms=Fo(Na,"test");var Km={exports:{}},Xm;function Iw(){return Xm||(Xm=1,(function(e,t){(function(r){r(Gs())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,b=(function(){function T(Gt){return{type:Gt,style:"keyword"}}var B=T("keyword a"),de=T("keyword b"),we=T("keyword c"),le=T("keyword d"),Le=T("operator"),pt={type:"atom",style:"atom"};return{if:T("if"),while:B,with:B,else:de,do:de,try:de,finally:de,return:le,break:le,continue:le,new:T("new"),delete:we,void:we,throw:we,debugger:T("debugger"),var:T("var"),const:T("var"),let:T("var"),function:T("function"),catch:T("catch"),for:T("for"),switch:T("switch"),case:T("case"),default:T("default"),in:Le,typeof:Le,instanceof:Le,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:T("this"),class:T("class"),super:T("atom"),yield:we,export:T("export"),import:T("import"),extends:we,await:we}})(),x=/[+\-*&%=<>!?|~^@]/,C=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(T){for(var B=!1,de,we=!1;(de=T.next())!=null;){if(!B){if(de=="/"&&!we)return;de=="["?we=!0:we&&de=="]"&&(we=!1)}B=!B&&de=="\\"}}var A,L;function $(T,B,de){return A=T,L=de,B}function D(T,B){var de=T.next();if(de=='"'||de=="'")return B.tokenize=E(de),B.tokenize(T,B);if(de=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return $("number","number");if(de=="."&&T.match(".."))return $("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(de))return $(de);if(de=="="&&T.eat(">"))return $("=>","operator");if(de=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return $("number","number");if(/\d/.test(de))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),$("number","number");if(de=="/")return T.eat("*")?(B.tokenize=I,I(T,B)):T.eat("/")?(T.skipToEnd(),$("comment","comment")):Yn(T,B,1)?(M(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),$("regexp","string-2")):(T.eat("="),$("operator","operator",T.current()));if(de=="`")return B.tokenize=U,U(T,B);if(de=="#"&&T.peek()=="!")return T.skipToEnd(),$("meta","meta");if(de=="#"&&T.eatWhile(m))return $("variable","property");if(de=="<"&&T.match("!--")||de=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),$("comment","comment");if(x.test(de))return(de!=">"||!B.lexical||B.lexical.type!=">")&&(T.eat("=")?(de=="!"||de=="=")&&T.eat("="):/[<>*+\-|&?]/.test(de)&&(T.eat(de),de==">"&&T.eat(de))),de=="?"&&T.eat(".")?$("."):$("operator","operator",T.current());if(m.test(de)){T.eatWhile(m);var we=T.current();if(B.lastType!="."){if(b.propertyIsEnumerable(we)){var le=b[we];return $(le.type,le.style,we)}if(we=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return $("async","keyword",we)}return $("variable","variable",we)}}function E(T){return function(B,de){var we=!1,le;if(d&&B.peek()=="@"&&B.match(C))return de.tokenize=D,$("jsonld-keyword","meta");for(;(le=B.next())!=null&&!(le==T&&!we);)we=!we&&le=="\\";return we||(de.tokenize=D),$("string","string")}}function I(T,B){for(var de=!1,we;we=T.next();){if(we=="/"&&de){B.tokenize=D;break}de=we=="*"}return $("comment","comment")}function U(T,B){for(var de=!1,we;(we=T.next())!=null;){if(!de&&(we=="`"||we=="$"&&T.eat("{"))){B.tokenize=D;break}de=!de&&we=="\\"}return $("quasi","string-2",T.current())}var ie="([{}])";function re(T,B){B.fatArrowAt&&(B.fatArrowAt=null);var de=T.string.indexOf("=>",T.start);if(!(de<0)){if(v){var we=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,de));we&&(de=we.index)}for(var le=0,Le=!1,pt=de-1;pt>=0;--pt){var Gt=T.string.charAt(pt),_n=ie.indexOf(Gt);if(_n>=0&&_n<3){if(!le){++pt;break}if(--le==0){Gt=="("&&(Le=!0);break}}else if(_n>=3&&_n<6)++le;else if(m.test(Gt))Le=!0;else if(/["'\/`]/.test(Gt))for(;;--pt){if(pt==0)return;var Go=T.string.charAt(pt-1);if(Go==Gt&&T.string.charAt(pt-2)!="\\"){pt--;break}}else if(Le&&!le){++pt;break}}Le&&!le&&(B.fatArrowAt=pt)}}var ne={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function G(T,B,de,we,le,Le){this.indented=T,this.column=B,this.type=de,this.prev=le,this.info=Le,we!=null&&(this.align=we)}function J(T,B){if(!p)return!1;for(var de=T.localVars;de;de=de.next)if(de.name==B)return!0;for(var we=T.context;we;we=we.prev)for(var de=we.vars;de;de=de.next)if(de.name==B)return!0}function P(T,B,de,we,le){var Le=T.cc;for(O.state=T,O.stream=le,O.marked=null,O.cc=Le,O.style=B,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var pt=Le.length?Le.pop():h?pe:V;if(pt(de,we)){for(;Le.length&&Le[Le.length-1].lex;)Le.pop()();return O.marked?O.marked:de=="variable"&&J(T,we)?"variable-2":B}}}var O={state:null,marked:null,cc:null};function N(){for(var T=arguments.length-1;T>=0;T--)O.cc.push(arguments[T])}function S(){return N.apply(null,arguments),!0}function F(T,B){for(var de=B;de;de=de.next)if(de.name==T)return!0;return!1}function j(T){var B=O.state;if(O.marked="def",!!p){if(B.context){if(B.lexical.info=="var"&&B.context&&B.context.block){var de=oe(T,B.context);if(de!=null){B.context=de;return}}else if(!F(T,B.localVars)){B.localVars=new Re(T,B.localVars);return}}s.globalVars&&!F(T,B.globalVars)&&(B.globalVars=new Re(T,B.globalVars))}}function oe(T,B){if(B)if(B.block){var de=oe(T,B.prev);return de?de==B.prev?B:new Se(de,B.vars,!0):null}else return F(T,B.vars)?B:new Se(B.prev,new Re(T,B.vars),!1);else return null}function me(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function Se(T,B,de){this.prev=T,this.vars=B,this.block=de}function Re(T,B){this.name=T,this.next=B}var je=new Re("this",new Re("arguments",null));function Qe(){O.state.context=new Se(O.state.context,O.state.localVars,!1),O.state.localVars=je}function Xe(){O.state.context=new Se(O.state.context,O.state.localVars,!0),O.state.localVars=null}Qe.lex=Xe.lex=!0;function Ye(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}Ye.lex=!0;function te(T,B){var de=function(){var we=O.state,le=we.indented;if(we.lexical.type=="stat")le=we.lexical.indented;else for(var Le=we.lexical;Le&&Le.type==")"&&Le.align;Le=Le.prev)le=Le.indented;we.lexical=new G(le,O.stream.column(),T,null,we.lexical,B)};return de.lex=!0,de}function H(){var T=O.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}H.lex=!0;function Y(T){function B(de){return de==T?S():T==";"||de=="}"||de==")"||de=="]"?N():S(B)}return B}function V(T,B){return T=="var"?S(te("vardef",B),Ho,Y(";"),H):T=="keyword a"?S(te("form"),q,V,H):T=="keyword b"?S(te("form"),V,H):T=="keyword d"?O.stream.match(/^\s*$/,!1)?S():S(te("stat"),ue,Y(";"),H):T=="debugger"?S(Y(";")):T=="{"?S(te("}"),Xe,Ht,H,Ye):T==";"?S():T=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==H&&O.state.cc.pop()(),S(te("form"),q,V,H,Bo)):T=="function"?S(sr):T=="for"?S(te("form"),Xe,Ia,V,Ye,H):T=="class"||v&&B=="interface"?(O.marked="keyword",S(te("form",T=="class"?T:B),Wo,H)):T=="variable"?v&&B=="declare"?(O.marked="keyword",S(V)):v&&(B=="module"||B=="enum"||B=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",B=="enum"?S(Pe):B=="type"?S(Da,Y("operator"),tt,Y(";")):S(te("form"),xn,Y("{"),te("}"),Ht,H,H)):v&&B=="namespace"?(O.marked="keyword",S(te("form"),pe,V,H)):v&&B=="abstract"?(O.marked="keyword",S(V)):S(te("stat"),Ve):T=="switch"?S(te("form"),q,Y("{"),te("}","switch"),Xe,Ht,H,H,Ye):T=="case"?S(pe,Y(":")):T=="default"?S(Y(":")):T=="catch"?S(te("form"),Qe,ae,V,H,Ye):T=="export"?S(te("stat"),qo,H):T=="import"?S(te("stat"),Ai,H):T=="async"?S(V):B=="@"?S(pe,V):N(te("stat"),pe,Y(";"),H)}function ae(T){if(T=="(")return S(vr,Y(")"))}function pe(T,B){return K(T,B,!1)}function R(T,B){return K(T,B,!0)}function q(T){return T!="("?N():S(te(")"),ue,Y(")"),H)}function K(T,B,de){if(O.state.fatArrowAt==O.stream.start){var we=de?be:ve;if(T=="(")return S(Qe,te(")"),at(vr,")"),H,Y("=>"),we,Ye);if(T=="variable")return N(Qe,xn,Y("=>"),we,Ye)}var le=de?fe:he;return ne.hasOwnProperty(T)?S(le):T=="function"?S(sr,le):T=="class"||v&&B=="interface"?(O.marked="keyword",S(te("form"),ef,H)):T=="keyword c"||T=="async"?S(de?R:pe):T=="("?S(te(")"),ue,Y(")"),H,le):T=="operator"||T=="spread"?S(de?R:pe):T=="["?S(te("]"),Rt,H,le):T=="{"?Vt(lt,"}",null,le):T=="quasi"?N(Ce,le):T=="new"?S(We(de)):S()}function ue(T){return T.match(/[;\}\)\],]/)?N():N(pe)}function he(T,B){return T==","?S(ue):fe(T,B,!1)}function fe(T,B,de){var we=de==!1?he:fe,le=de==!1?pe:R;if(T=="=>")return S(Qe,de?be:ve,Ye);if(T=="operator")return/\+\+|--/.test(B)||v&&B=="!"?S(we):v&&B=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(te(">"),at(tt,">"),H,we):B=="?"?S(pe,Y(":"),le):S(le);if(T=="quasi")return N(Ce,we);if(T!=";"){if(T=="(")return Vt(R,")","call",we);if(T==".")return S(rt,we);if(T=="[")return S(te("]"),ue,Y("]"),H,we);if(v&&B=="as")return O.marked="keyword",S(tt,we);if(T=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),S(le)}}function Ce(T,B){return T!="quasi"?N():B.slice(B.length-2)!="${"?S(Ce):S(ue,Ee)}function Ee(T){if(T=="}")return O.marked="string-2",O.state.tokenize=U,S(Ce)}function ve(T){return re(O.stream,O.state),N(T=="{"?V:pe)}function be(T){return re(O.stream,O.state),N(T=="{"?V:R)}function We(T){return function(B){return B=="."?S(T?De:$e):B=="variable"&&v?S(Fn,T?fe:he):N(T?R:pe)}}function $e(T,B){if(B=="target")return O.marked="keyword",S(he)}function De(T,B){if(B=="target")return O.marked="keyword",S(fe)}function Ve(T){return T==":"?S(H,V):N(he,Y(";"),H)}function rt(T){if(T=="variable")return O.marked="property",S()}function lt(T,B){if(T=="async")return O.marked="property",S(lt);if(T=="variable"||O.style=="keyword"){if(O.marked="property",B=="get"||B=="set")return S(ut);var de;return v&&O.state.fatArrowAt==O.stream.start&&(de=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+de[0].length),S(Mt)}else{if(T=="number"||T=="string")return O.marked=d?"property":O.style+" property",S(Mt);if(T=="jsonld-keyword")return S(Mt);if(v&&me(B))return O.marked="keyword",S(lt);if(T=="[")return S(pe,In,Y("]"),Mt);if(T=="spread")return S(R,Mt);if(B=="*")return O.marked="keyword",S(lt);if(T==":")return N(Mt)}}function ut(T){return T!="variable"?N(Mt):(O.marked="property",S(sr))}function Mt(T){if(T==":")return S(R);if(T=="(")return N(sr)}function at(T,B,de){function we(le,Le){if(de?de.indexOf(le)>-1:le==","){var pt=O.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),S(function(Gt,_n){return Gt==B||_n==B?N():N(T)},we)}return le==B||Le==B?S():de&&de.indexOf(";")>-1?N(T):S(Y(B))}return function(le,Le){return le==B||Le==B?S():N(T,we)}}function Vt(T,B,de){for(var we=3;we<arguments.length;we++)O.cc.push(arguments[we]);return S(te(B,de),at(T,B),H)}function Ht(T){return T=="}"?S():N(V,Ht)}function In(T,B){if(v){if(T==":")return S(tt);if(B=="?")return S(In)}}function Ir(T,B){if(v&&(T==":"||B=="in"))return S(tt)}function Dt(T){if(v&&T==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?S(pe,Dn,tt):S(tt)}function Dn(T,B){if(B=="is")return O.marked="keyword",S()}function tt(T,B){if(B=="keyof"||B=="typeof"||B=="infer"||B=="readonly")return O.marked="keyword",S(B=="typeof"?R:tt);if(T=="variable"||B=="void")return O.marked="type",S(or);if(B=="|"||B=="&")return S(tt);if(T=="string"||T=="number"||T=="atom")return S(or);if(T=="[")return S(te("]"),at(tt,"]",","),H,or);if(T=="{")return S(te("}"),Fe,H,or);if(T=="(")return S(at(Pt,")"),co,or);if(T=="<")return S(at(tt,">"),tt);if(T=="quasi")return N(on,or)}function co(T){if(T=="=>")return S(tt)}function Fe(T){return T.match(/[\}\)\]]/)?S():T==","||T==";"?S(Fe):N(Jr,Fe)}function Jr(T,B){if(T=="variable"||O.style=="keyword")return O.marked="property",S(Jr);if(B=="?"||T=="number"||T=="string")return S(Jr);if(T==":")return S(tt);if(T=="[")return S(Y("variable"),Ir,Y("]"),Jr);if(T=="(")return N(Ei,Jr);if(!T.match(/[;\}\)\],]/))return S()}function on(T,B){return T!="quasi"?N():B.slice(B.length-2)!="${"?S(on):S(tt,Ot)}function Ot(T){if(T=="}")return O.marked="string-2",O.state.tokenize=U,S(on)}function Pt(T,B){return T=="variable"&&O.stream.match(/^\s*[?:]/,!1)||B=="?"?S(Pt):T==":"?S(tt):T=="spread"?S(Pt):N(tt)}function or(T,B){if(B=="<")return S(te(">"),at(tt,">"),H,or);if(B=="|"||T=="."||B=="&")return S(tt);if(T=="[")return S(tt,Y("]"),or);if(B=="extends"||B=="implements")return O.marked="keyword",S(tt);if(B=="?")return S(tt,Y(":"),tt)}function Fn(T,B){if(B=="<")return S(te(">"),at(tt,">"),H,or)}function pr(){return N(tt,sn)}function sn(T,B){if(B=="=")return S(tt)}function Ho(T,B){return B=="enum"?(O.marked="keyword",S(Pe)):N(xn,In,gr,Qu)}function xn(T,B){if(v&&me(B))return O.marked="keyword",S(xn);if(T=="variable")return j(B),S();if(T=="spread")return S(xn);if(T=="[")return Vt(Xs,"]");if(T=="{")return Vt(Ti,"}")}function Ti(T,B){return T=="variable"&&!O.stream.match(/^\s*:/,!1)?(j(B),S(gr)):(T=="variable"&&(O.marked="property"),T=="spread"?S(xn):T=="}"?N():T=="["?S(pe,Y("]"),Y(":"),Ti):S(Y(":"),xn,gr))}function Xs(){return N(xn,gr)}function gr(T,B){if(B=="=")return S(R)}function Qu(T){if(T==",")return S(Ho)}function Bo(T,B){if(T=="keyword b"&&B=="else")return S(te("form","else"),V,H)}function Ia(T,B){if(B=="await")return S(Ia);if(T=="(")return S(te(")"),Ys,H)}function Ys(T){return T=="var"?S(Ho,Ci):T=="variable"?S(Ci):N(Ci)}function Ci(T,B){return T==")"?S():T==";"?S(Ci):B=="in"||B=="of"?(O.marked="keyword",S(pe,Ci)):N(pe,Ci)}function sr(T,B){if(B=="*")return O.marked="keyword",S(sr);if(T=="variable")return j(B),S(sr);if(T=="(")return S(Qe,te(")"),at(vr,")"),H,Dt,V,Ye);if(v&&B=="<")return S(te(">"),at(pr,">"),H,sr)}function Ei(T,B){if(B=="*")return O.marked="keyword",S(Ei);if(T=="variable")return j(B),S(Ei);if(T=="(")return S(Qe,te(")"),at(vr,")"),H,Dt,Ye);if(v&&B=="<")return S(te(">"),at(pr,">"),H,Ei)}function Da(T,B){if(T=="keyword"||T=="variable")return O.marked="type",S(Da);if(B=="<")return S(te(">"),at(pr,">"),H)}function vr(T,B){return B=="@"&&S(pe,vr),T=="spread"?S(vr):v&&me(B)?(O.marked="keyword",S(vr)):v&&T=="this"?S(In,gr):N(xn,In,gr)}function ef(T,B){return T=="variable"?Wo(T,B):mr(T,B)}function Wo(T,B){if(T=="variable")return j(B),S(mr)}function mr(T,B){if(B=="<")return S(te(">"),at(pr,">"),H,mr);if(B=="extends"||B=="implements"||v&&T==",")return B=="implements"&&(O.marked="keyword"),S(v?tt:pe,mr);if(T=="{")return S(te("}"),yr,H)}function yr(T,B){if(T=="async"||T=="variable"&&(B=="static"||B=="get"||B=="set"||v&&me(B))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",S(yr);if(T=="variable"||O.style=="keyword")return O.marked="property",S(uo,yr);if(T=="number"||T=="string")return S(uo,yr);if(T=="[")return S(pe,In,Y("]"),uo,yr);if(B=="*")return O.marked="keyword",S(yr);if(v&&T=="(")return N(Ei,yr);if(T==";"||T==",")return S(yr);if(T=="}")return S();if(B=="@")return S(pe,yr)}function uo(T,B){if(B=="!"||B=="?")return S(uo);if(T==":")return S(tt,gr);if(B=="=")return S(R);var de=O.state.lexical.prev,we=de&&de.info=="interface";return N(we?Ei:sr)}function qo(T,B){return B=="*"?(O.marked="keyword",S(Vo,Y(";"))):B=="default"?(O.marked="keyword",S(pe,Y(";"))):T=="{"?S(at(jo,"}"),Vo,Y(";")):N(V)}function jo(T,B){if(B=="as")return O.marked="keyword",S(Y("variable"));if(T=="variable")return N(R,jo)}function Ai(T){return T=="string"?S():T=="("?N(pe):T=="."?N(he):N(Uo,Dr,Vo)}function Uo(T,B){return T=="{"?Vt(Uo,"}"):(T=="variable"&&j(B),B=="*"&&(O.marked="keyword"),S(Zs))}function Dr(T){if(T==",")return S(Uo,Dr)}function Zs(T,B){if(B=="as")return O.marked="keyword",S(Uo)}function Vo(T,B){if(B=="from")return O.marked="keyword",S(pe)}function Rt(T){return T=="]"?S():N(at(R,"]"))}function Pe(){return N(te("form"),xn,Y("{"),te("}"),at(Qr,"}"),H,H)}function Qr(){return N(xn,gr)}function Js(T,B){return T.lastType=="operator"||T.lastType==","||x.test(B.charAt(0))||/[,.]/.test(B.charAt(0))}function Yn(T,B,de){return B.tokenize==D&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(B.lastType)||B.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(de||0)))}return{startState:function(T){var B={tokenize:D,lastType:"sof",cc:[],lexical:new G((T||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Se(null,null,!1),indented:T||0};return s.globalVars&&typeof s.globalVars=="object"&&(B.globalVars=s.globalVars),B},token:function(T,B){if(T.sol()&&(B.lexical.hasOwnProperty("align")||(B.lexical.align=!1),B.indented=T.indentation(),re(T,B)),B.tokenize!=I&&T.eatSpace())return null;var de=B.tokenize(T,B);return A=="comment"?de:(B.lastType=A=="operator"&&(L=="++"||L=="--")?"incdec":A,P(B,de,A,L,T))},indent:function(T,B){if(T.tokenize==I||T.tokenize==U)return r.Pass;if(T.tokenize!=D)return 0;var de=B&&B.charAt(0),we=T.lexical,le;if(!/^\s*else\b/.test(B))for(var Le=T.cc.length-1;Le>=0;--Le){var pt=T.cc[Le];if(pt==H)we=we.prev;else if(pt!=Bo&&pt!=Ye)break}for(;(we.type=="stat"||we.type=="form")&&(de=="}"||(le=T.cc[T.cc.length-1])&&(le==he||le==fe)&&!/^[,\.=+\-*:?[\(]/.test(B));)we=we.prev;f&&we.type==")"&&we.prev.type=="stat"&&(we=we.prev);var Gt=we.type,_n=de==Gt;return Gt=="vardef"?we.indented+(T.lastType=="operator"||T.lastType==","?we.info.length+1:0):Gt=="form"&&de=="{"?we.indented:Gt=="form"?we.indented+c:Gt=="stat"?we.indented+(Js(T,B)?f||c:0):we.info=="switch"&&!_n&&s.doubleIndentSwitch!=!1?we.indented+(/^(?:case|default)\b/.test(B)?c:2*c):we.align?we.column+(_n?0:1):we.indented+(_n?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Yn,skipExpression:function(T){P(T,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),Km.exports}Iw();var Ym={exports:{}},Zm;function Dw(){return Zm||(Zm=1,(function(e,t){(function(r){r(Gs())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function x(S,F){function j(Se){return F.tokenize=Se,Se(S,F)}var oe=S.next();if(oe=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?j(A("atom","]]>")):null:S.match("--")?j(A("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),j(L(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),F.tokenize=A("meta","?>"),"meta"):(m=S.eat("/")?"closeTag":"openTag",F.tokenize=C,"tag bracket");if(oe=="&"){var me;return S.eat("#")?S.eat("x")?me=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):me=S.eatWhile(/[\d]/)&&S.eat(";"):me=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),me?"atom":"error"}else return S.eatWhile(/[^&<]/),null}x.isInText=!0;function C(S,F){var j=S.next();if(j==">"||j=="/"&&S.eat(">"))return F.tokenize=x,m=j==">"?"endTag":"selfcloseTag","tag bracket";if(j=="=")return m="equals",null;if(j=="<"){F.tokenize=x,F.state=U,F.tagName=F.tagStart=null;var oe=F.tokenize(S,F);return oe?oe+" tag error":"tag error"}else return/[\'\"]/.test(j)?(F.tokenize=M(j),F.stringStartCol=S.column(),F.tokenize(S,F)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function M(S){var F=function(j,oe){for(;!j.eol();)if(j.next()==S){oe.tokenize=C;break}return"string"};return F.isInAttribute=!0,F}function A(S,F){return function(j,oe){for(;!j.eol();){if(j.match(F)){oe.tokenize=x;break}j.next()}return S}}function L(S){return function(F,j){for(var oe;(oe=F.next())!=null;){if(oe=="<")return j.tokenize=L(S+1),j.tokenize(F,j);if(oe==">")if(S==1){j.tokenize=x;break}else return j.tokenize=L(S-1),j.tokenize(F,j)}return"meta"}}function $(S){return S&&S.toLowerCase()}function D(S,F,j){this.prev=S.context,this.tagName=F||"",this.indent=S.indented,this.startOfLine=j,(h.doNotIndent.hasOwnProperty(F)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function E(S){S.context&&(S.context=S.context.prev)}function I(S,F){for(var j;;){if(!S.context||(j=S.context.tagName,!h.contextGrabbers.hasOwnProperty($(j))||!h.contextGrabbers[$(j)].hasOwnProperty($(F))))return;E(S)}}function U(S,F,j){return S=="openTag"?(j.tagStart=F.column(),ie):S=="closeTag"?re:U}function ie(S,F,j){return S=="word"?(j.tagName=F.current(),b="tag",J):h.allowMissingTagName&&S=="endTag"?(b="tag bracket",J(S,F,j)):(b="error",ie)}function re(S,F,j){if(S=="word"){var oe=F.current();return j.context&&j.context.tagName!=oe&&h.implicitlyClosed.hasOwnProperty($(j.context.tagName))&&E(j),j.context&&j.context.tagName==oe||h.matchClosing===!1?(b="tag",ne):(b="tag error",G)}else return h.allowMissingTagName&&S=="endTag"?(b="tag bracket",ne(S,F,j)):(b="error",G)}function ne(S,F,j){return S!="endTag"?(b="error",ne):(E(j),U)}function G(S,F,j){return b="error",ne(S,F,j)}function J(S,F,j){if(S=="word")return b="attribute",P;if(S=="endTag"||S=="selfcloseTag"){var oe=j.tagName,me=j.tagStart;return j.tagName=j.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty($(oe))?I(j,oe):(I(j,oe),j.context=new D(j,oe,me==j.indented)),U}return b="error",J}function P(S,F,j){return S=="equals"?O:(h.allowMissing||(b="error"),J(S,F,j))}function O(S,F,j){return S=="string"?N:S=="word"&&h.allowUnquoted?(b="string",J):(b="error",J(S,F,j))}function N(S,F,j){return S=="string"?N:J(S,F,j)}return{startState:function(S){var F={tokenize:x,state:U,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(F.baseIndent=S),F},token:function(S,F){if(!F.tagName&&S.sol()&&(F.indented=S.indentation()),S.eatSpace())return null;m=null;var j=F.tokenize(S,F);return(j||m)&&j!="comment"&&(b=null,F.state=F.state(m||j,S,F),b&&(j=b=="error"?j+" error":b)),j},indent:function(S,F,j){var oe=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+d;if(oe&&oe.noIndent)return r.Pass;if(S.tokenize!=C&&S.tokenize!=x)return j?j.match(/^(\s*)/)[0].length:0;if(S.tagName)return h.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(F))return 0;var me=F&&/^<(\/)?([\w_:\.-]*)/.exec(F);if(me&&me[1])for(;oe;)if(oe.tagName==me[2]){oe=oe.prev;break}else if(h.implicitlyClosed.hasOwnProperty($(oe.tagName)))oe=oe.prev;else break;else if(me)for(;oe;){var Se=h.contextGrabbers[$(oe.tagName)];if(Se&&Se.hasOwnProperty($(me[2])))oe=oe.prev;else break}for(;oe&&oe.prev&&!oe.startOfLine;)oe=oe.prev;return oe?oe.indent+d:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(S){S.state==O&&(S.state=J)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var F=[],j=S.context;j;j=j.prev)F.push(j.tagName);return F.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),Ym.exports}Dw();var Jm={exports:{}},Qm;function _ae(){return Qm||(Qm=1,(function(e,t){(function(r){r(Gs(),Dw(),Iw())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(x){var C=x.tagName;x.tagName=null;var M=d.indent(x,"","");return x.tagName=C,M}function v(x,C){return C.context.mode==d?m(x,C,C.context):b(x,C,C.context)}function m(x,C,M){if(M.depth==2)return x.match(/^.*?\*\//)?M.depth=1:x.skipToEnd(),"comment";if(x.peek()=="{"){d.skipAttribute(M.state);var A=p(M.state),L=M.state.context;if(L&&x.match(/^[^>]*>\s*$/,!1)){for(;L.prev&&!L.startOfLine;)L=L.prev;L.startOfLine?A-=c.indentUnit:M.prev.state.lexical&&(A=M.prev.state.lexical.indented)}else M.depth==1&&(A+=c.indentUnit);return C.context=new o(r.startState(h,A),h,0,C.context),null}if(M.depth==1){if(x.peek()=="<")return d.skipAttribute(M.state),C.context=new o(r.startState(d,p(M.state)),d,0,C.context),null;if(x.match("//"))return x.skipToEnd(),"comment";if(x.match("/*"))return M.depth=2,v(x,C)}var $=d.token(x,M.state),D=x.current(),E;return/\btag\b/.test($)?/>$/.test(D)?M.state.context?M.depth=0:C.context=C.context.prev:/^</.test(D)&&(M.depth=1):!$&&(E=D.indexOf("{"))>-1&&x.backUp(D.length-E),$}function b(x,C,M){if(x.peek()=="<"&&!x.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(x,M.state))return C.context=new o(r.startState(d,h.indent(M.state,"","")),d,0,C.context),h.skipExpression(M.state),null;var A=h.token(x,M.state);if(!A&&M.depth!=null){var L=x.current();L=="{"?M.depth++:L=="}"&&--M.depth==0&&(C.context=C.context.prev)}return A}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(x){return{context:s(x.context)}},token:v,indent:function(x,C,M){return x.context.mode.indent(x.context.state,C,M)},innerMode:function(x){return x.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),Jm.exports}_ae();var e0={exports:{}},t0;function Sae(){return t0||(t0=1,(function(e,t){(function(r){r(Gs())})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var x=p.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),e0.exports}Sae();var n0={exports:{}},r0;function kae(){return r0||(r0=1,(function(e,t){(function(r){r(Gs())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",x=m[b],C=p.pos;function M(){r.off(document,"mousemove",A),r.off(document,"mouseup",M)}function A(L){if(L.which!=1)return M();p.moveTo(C+(L[b]-x)*(p.total/p.size))}r.on(document,"mousemove",A),r.on(document,"mouseup",M)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),x;p.orientation=="horizontal"?x=m.clientX<b.left?-1:m.clientX>b.right?1:0:x=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+x*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],x=p.pos;p.moveTo(p.pos+b),p.pos!=x&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})})()),n0.exports}kae();const Mn=en();function Tae(e,t,r={}){const o=UA.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),_t(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Ou(()=>{Mn.value=void 0}),Mh(o)}async function Fw(e){pa({file:e.file.id,line:e.location?.line??0,view:"editor",test:e.id,column:null})}function Cae(e,t){pa({file:e,column:t.column-1,line:t.line,view:"editor",test:Ms.value})}function Eae(e,t){if(!t.location)return;const{line:r,column:o,file:s}=t.location;if(e.file.filepath!==s)return Qh(s,r,o);pa({file:e.file.id,column:o-1,line:r,view:"editor",test:Ms.value})}const Bs=Ue(),$s=Ue(!0),so=Ue(!1),hu=Ue(!0),bs=_e(()=>Ws.value?.coverage),Jd=_e(()=>bs.value?.enabled),ws=_e(()=>Jd.value&&!!bs.value.htmlReporter),Ns=ju("vitest-ui_splitpanes-mainSizes",[33,67]),eo=ju("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?Qn.value[0]/window.outerWidth*100:33,67]),At=nr({navigation:Ns.value[0],details:{size:Ns.value[1],browser:eo.value[0],main:eo.value[1]}}),i0=_e(()=>{if(ws.value){const e=bs.value.reportsDirectory.lastIndexOf("/"),t=bs.value.htmlReporter?.subdir;return t?`/${bs.value.reportsDirectory.slice(e+1)}/${t}/index.html`:`/${bs.value.reportsDirectory.slice(e+1)}/index.html`}});_t(Gu,e=>{hu.value=e==="running"},{immediate:!0});function Aae(){const e=oo.value;if(e&&e.length>0){const t=hr(e);t?(Bs.value=t,$s.value=!1,so.value=!1):GC(()=>ht.state.getFiles(),()=>{Bs.value=hr(e),$s.value=!1,so.value=!1})}return $s}function pu(e){$s.value=e,so.value=!1,e&&(Bs.value=void 0,oo.value="")}function pa({file:e,line:t,view:r,test:o,column:s}){oo.value=e,Rw.value=t,zw.value=s,cn.value=r,Ms.value=o,Bs.value=hr(e),pu(!1)}function Lae(e){e.type==="test"?cn.value==="editor"?Fw(e):pa({file:e.file.id,line:null,column:null,view:cn.value,test:e.id}):pa({file:e.file.id,test:null,line:null,view:cn.value,column:null})}function Mae(){so.value=!0,$s.value=!1,Bs.value=void 0,oo.value=""}function $ae(){At.details.browser=100,At.details.main=0,eo.value=[100,0]}function Hw(){if(Kn?.provider==="webdriverio"){const e=window.outerWidth*(At.details.size/100);return(Qn.value[0]+20)/e*100}return 33}function Nae(){At.details.browser=Hw(),At.details.main=100-At.details.browser,eo.value=[At.details.browser,At.details.main]}function Oae(){At.navigation=33,At.details.size=67,Ns.value=[33,67]}function Bw(){At.details.main!==0&&(At.details.browser=Hw(),At.details.main=100-At.details.browser,eo.value=[At.details.browser,At.details.main])}const Pae={setCurrentFileId(e){oo.value=e,Bs.value=hr(e),pu(!1)},async setIframeViewport(e,t){Qn.value=[e,t],Kn?.provider==="webdriverio"&&Bw(),await new Promise(r=>requestAnimationFrame(r))}},Rae=location.port,zae=[location.hostname,Rae].filter(Boolean).join(":"),Iae=`${location.protocol==="https:"?"wss:":"ws:"}//${zae}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,dr=!!window.METADATA_PATH;var tr=Uint8Array,xs=Uint16Array,Dae=Int32Array,Ww=new tr([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]),qw=new tr([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]),Fae=new tr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),jw=function(e,t){for(var r=new xs(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Dae(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},Uw=jw(Ww,2),Vw=Uw.b,Hae=Uw.r;Vw[28]=258,Hae[258]=28;var Bae=jw(qw,0),Wae=Bae.b,Qd=new xs(32768);for(var Lt=0;Lt<32768;++Lt){var Fi=(Lt&43690)>>1|(Lt&21845)<<1;Fi=(Fi&52428)>>2|(Fi&13107)<<2,Fi=(Fi&61680)>>4|(Fi&3855)<<4,Qd[Lt]=((Fi&65280)>>8|(Fi&255)<<8)>>1}var Xl=(function(e,t,r){for(var o=e.length,s=0,c=new xs(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new xs(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new xs(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],m=f[e[s]-1]++<<v,b=m|(1<<v)-1;m<=b;++m)d[Qd[m]>>h]=p}else for(d=new xs(o),s=0;s<o;++s)e[s]&&(d[s]=Qd[f[e[s]-1]++]>>15-e[s]);return d}),Oa=new tr(288);for(var Lt=0;Lt<144;++Lt)Oa[Lt]=8;for(var Lt=144;Lt<256;++Lt)Oa[Lt]=9;for(var Lt=256;Lt<280;++Lt)Oa[Lt]=7;for(var Lt=280;Lt<288;++Lt)Oa[Lt]=8;var Gw=new tr(32);for(var Lt=0;Lt<32;++Lt)Gw[Lt]=5;var qae=Xl(Oa,9,1),jae=Xl(Gw,5,1),hd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},kr=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},pd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Uae=function(e){return(e+7)/8|0},Kw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new tr(e.subarray(t,r))},Vae=["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"],Wn=function(e,t,r){var o=new Error(t||Vae[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Wn),!r)throw o;return o},tp=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new tr(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new tr(s*3));var p=function(pe){var R=r.length;if(pe>R){var q=new tr(Math.max(R*2,pe));q.set(r),r=q}},v=t.f||0,m=t.p||0,b=t.b||0,x=t.l,C=t.d,M=t.m,A=t.n,L=s*8;do{if(!x){v=kr(e,m,1);var $=kr(e,m+1,3);if(m+=3,$)if($==1)x=qae,C=jae,M=9,A=5;else if($==2){var U=kr(e,m,31)+257,ie=kr(e,m+10,15)+4,re=U+kr(e,m+5,31)+1;m+=14;for(var ne=new tr(re),G=new tr(19),J=0;J<ie;++J)G[Fae[J]]=kr(e,m+J*3,7);m+=ie*3;for(var P=hd(G),O=(1<<P)-1,N=Xl(G,P,1),J=0;J<re;){var S=N[kr(e,m,O)];m+=S&15;var D=S>>4;if(D<16)ne[J++]=D;else{var F=0,j=0;for(D==16?(j=3+kr(e,m,3),m+=2,F=ne[J-1]):D==17?(j=3+kr(e,m,7),m+=3):D==18&&(j=11+kr(e,m,127),m+=7);j--;)ne[J++]=F}}var oe=ne.subarray(0,U),me=ne.subarray(U);M=hd(oe),A=hd(me),x=Xl(oe,M,1),C=Xl(me,A,1)}else Wn(1);else{var D=Uae(m)+4,E=e[D-4]|e[D-3]<<8,I=D+E;if(I>s){h&&Wn(0);break}d&&p(b+E),r.set(e.subarray(D,I),b),t.b=b+=E,t.p=m=I*8,t.f=v;continue}if(m>L){h&&Wn(0);break}}d&&p(b+131072);for(var Se=(1<<M)-1,Re=(1<<A)-1,je=m;;je=m){var F=x[pd(e,m)&Se],Qe=F>>4;if(m+=F&15,m>L){h&&Wn(0);break}if(F||Wn(2),Qe<256)r[b++]=Qe;else if(Qe==256){je=m,x=null;break}else{var Xe=Qe-254;if(Qe>264){var J=Qe-257,Ye=Ww[J];Xe=kr(e,m,(1<<Ye)-1)+Vw[J],m+=Ye}var te=C[pd(e,m)&Re],H=te>>4;te||Wn(3),m+=te&15;var me=Wae[H];if(H>3){var Ye=qw[H];me+=pd(e,m)&(1<<Ye)-1,m+=Ye}if(m>L){h&&Wn(0);break}d&&p(b+131072);var Y=b+Xe;if(b<me){var V=c-me,ae=Math.min(me,Y);for(V+b<0&&Wn(3);b<ae;++b)r[b]=o[V+b]}for(;b<Y;++b)r[b]=r[b-me]}}t.l=x,t.p=je,t.b=b,t.f=v,x&&(v=1,t.m=M,t.d=C,t.n=A)}while(!v);return b!=r.length&&f?Kw(r,0,b):r.subarray(0,b)},Gae=new tr(0),Kae=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Wn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Xae=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Yae=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Wn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Wn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Zae(e,t){return tp(e,{i:2},t,t)}function Jae(e,t){var r=Kae(e);return r+8>e.length&&Wn(6,"invalid gzip data"),tp(e.subarray(r,-8),{i:2},new tr(Xae(e)),t)}function Qae(e,t){return tp(e.subarray(Yae(e),-4),{i:2},t,t)}function ece(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Jae(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Zae(e,t):Qae(e,t)}var eh=typeof TextDecoder<"u"&&new TextDecoder,tce=0;try{eh.decode(Gae,{stream:!0}),tce=1}catch{}var nce=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:Kw(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function rce(e,t){var r;if(eh)return eh.decode(e);var o=nce(e),s=o.s,r=o.r;return r.length&&Wn(8),s}const gd=()=>{},gn=()=>Promise.resolve();function ice(){const e=nr({state:new yw,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=nr(e.state.filesMap),e.state.idMap=nr(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(d,h)=>t.moduleGraph[d]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:gn,onDone:gd,onTaskUpdate:gd,writeFile:gn,rerun:gn,rerunTask:gn,updateSnapshot:gn,resolveSnapshotPath:gn,snapshotSaved:gn,onAfterSuiteRun:gn,onCancel:gn,getCountOfFailedTests:()=>0,sendLog:gn,resolveSnapshotRawPath:gn,readSnapshotFile:gn,saveSnapshotFile:gn,readTestFile:async d=>t.sources[d],removeSnapshotFile:gn,onUnhandledError:gd,saveTestFile:gn,getProvidedContext:()=>({}),getTestFiles:gn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){const d=await fetch(window.METADATA_PATH),h=d.headers.get("content-type")?.toLowerCase()||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const v=new Uint8Array(await d.arrayBuffer()),m=rce(ece(v));t=Gd(m)}else t=Gd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const ht=(function(){return dr?ice():fA(Iae,{reactive:(t,r)=>r==="state"?nr(t):en(t),handlers:{onTestAnnotate(t,r){Ae.annotateTest(t,r)},onTaskUpdate(t,r){Ae.resumeRun(t,r),Gu.value="running"},onFinished(t,r){Ae.endRun(),Ui.value=(r||[]).map(Ow)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),Ws=en({}),$o=Ue("CONNECTING"),qt=_e(()=>{const e=oo.value;return e?hr(e):void 0}),Xw=_e(()=>Xh(qt.value).map(e=>e?.logs||[]).flat()||[]);function hr(e){const t=ht.state.idMap.get(e);return t||void 0}const oce=_e(()=>$o.value==="OPEN"),vd=_e(()=>$o.value==="CONNECTING");_e(()=>$o.value==="CLOSED");function sce(){return np(ht.state.getFiles())}function Yw(e){delete e.result;const t=Ae.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,Ma(e)))for(const r of e.tasks)Yw(r)}function lce(e){const t=Ae.nodes;e.forEach(r=>{delete r.result,Xh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,Pn(o)&&(o.collectDuration=void 0))})}function np(e){return lce(e),Ae.startRun(),ht.rpc.rerun(e.map(t=>t.filepath),!0)}function ace(e){return Yw(e),Ae.startRun(),ht.rpc.rerunTask(e.id)}const Kn=window.__vitest_browser_runner__;window.__vitest_ui_api__=Pae;_t(()=>ht.ws,e=>{$o.value=dr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{$o.value="OPEN",ht.state.filesMap.clear();let[t,r,o,s]=await Promise.all([ht.rpc.getFiles(),ht.rpc.getConfig(),ht.rpc.getUnhandledErrors(),ht.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await ht.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=uw(h,d,f);return p.mode="skip",p})),Ae.loadFiles(t,s),ht.state.collectFiles(t),Ae.startRun(),Ui.value=(o||[]).map(Ow),Ws.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{$o.value==="CONNECTING"&&($o.value="CLOSED")},1e3)})},{immediate:!0});const cce=["aria-label","opacity","disabled","hover"],Et=ot({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(se(),ye("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:st(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[wn(t.$slots,"default",{},()=>[Q("span",{class:st(t.icon),ma:"",block:""},null,2)])],10,cce))}}),uce={h:"full",flex:"~ col"},fce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},dce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},hce={class:"pointer-events-none","text-sm":""},pce={key:0},gce={id:"tester-container",relative:""},vce=["data-scale"],o0=20,mce=100,yce=ot({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return Qn.value[0]===v[0]&&Qn.value[1]===v[1]}const{width:o,height:s}=rw();async function c(p){Qn.value=t[p],Kn?.provider==="webdriverio"&&Bw()}const f=_e(()=>{if(Kn?.provider==="webdriverio"){const[x,C]=Qn.value;return{width:x,height:C}}const m=o.value*(At.details.size/100)*(At.details.browser/100)-o0,b=s.value-mce;return{width:m,height:b}}),d=_e(()=>{if(Kn?.provider==="webdriverio")return 1;const[p,v]=Qn.value,{width:m,height:b}=f.value,x=m>p?1:m/p,C=b>v?1:b/v;return Math.min(1,x,C)}),h=_e(()=>{const p=f.value.width,v=Qn.value[0];return`${Math.trunc((p+o0-v)/2)}px`});return(p,v)=>{const m=Rr("tooltip");return se(),ye("div",uce,[Q("div",fce,[ct(Oe(Et,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=b=>Z(Oae)())},null,512),[[Ki,Z(At).navigation<=15],[m,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=Q("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=Q("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),ct(Oe(Et,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=b=>Z($ae)())},null,512),[[Ki,Z(At).details.main>0],[m,"Hide Right Panel",void 0,{bottom:!0}]]),ct(Oe(Et,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=b=>Z(Nae)())},null,512),[[Ki,Z(At).details.main===0],[m,"Show Right Panel",void 0,{bottom:!0}]])]),Q("div",dce,[ct(Oe(Et,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=b=>c("small-mobile"))},null,8,["active"]),[[m,"Small mobile",void 0,{bottom:!0}]]),ct(Oe(Et,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=b=>c("large-mobile"))},null,8,["active"]),[[m,"Large mobile",void 0,{bottom:!0}]]),ct(Oe(Et,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=b=>c("tablet"))},null,8,["active"]),[[m,"Tablet",void 0,{bottom:!0}]]),Q("span",hce,[dt(ze(Z(Qn)[0])+"x"+ze(Z(Qn)[1])+"px ",1),d.value<1?(se(),ye("span",pce,"("+ze((d.value*100).toFixed(0))+"%)",1)):qe("",!0)])]),Q("div",gce,[Q("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":d.value,style:Qt({"--viewport-width":`${Z(Qn)[0]}px`,"--viewport-height":`${Z(Qn)[1]}px`,"--tester-transform":`scale(${d.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,vce)])])}}}),bce=ki(yce,[["__scopeId","data-v-2e86b8c3"]]),wce={"text-2xl":""},xce={"text-lg":"",op50:""},_ce=ot({__name:"ConnectionOverlay",setup(e){return(t,r)=>Z(oce)?qe("",!0):(se(),ye("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>Z(ht).reconnect&&Z(ht).reconnect(...o))},[Q("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:st(Z(vd)?"animate-pulse":"")},[Q("div",{text:"5xl",class:st(Z(vd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Q("div",wce,ze(Z(vd)?"Connecting...":"Disconnected"),1),Q("div",xce," Check your terminal or start a new server with `"+ze(Z(Kn)?`vitest --browser=${Z(Kn).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Sce={h:"full",flex:"~ col"},kce={"flex-auto":"","py-1":"","bg-white":""},Tce=["src"],s0=ot({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(se(),ye("div",Sce,[r[0]||(r[0]=Q("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Q("div",{class:"i-carbon:folder-details-reference"}),Q("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),Q("div",kce,[Q("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,Tce)])]))}}),Cce={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Ece={"font-bold":""},Ace={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Lce=["font-bold"],Mce={text:"red500/70"},$ce={key:1,text:"sm","mb-2":""},Nce={"font-bold":""},Oce={key:2,text:"sm","mb-2":""},Pce={"font-bold":""},Rce={key:3,text:"sm","font-thin":""},zce=ot({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>(se(),ye(nt,null,[Q("h4",Cce,[Q("span",Ece,[dt(ze(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(se(),ye(nt,{key:0},[dt(":")],64)):qe("",!0)]),dt(" "+ze(t.error.message),1)]),t.error.stacks?.length?(se(),ye("p",Ace,[(se(!0),ye(nt,null,fr(t.error.stacks,(o,s)=>(se(),ye("span",{key:s,"whitespace-pre":"","font-bold":s===0?"":null},[dt("❯ "+ze(o.method)+" "+ze(o.file)+":",1),Q("span",Mce,ze(o.line)+":"+ze(o.column),1),r[0]||(r[0]=Q("br",null,null,-1))],8,Lce))),128))])):qe("",!0),t.error.VITEST_TEST_PATH?(se(),ye("p",$ce,[r[1]||(r[1]=dt(" This error originated in ",-1)),Q("span",Nce,ze(t.error.VITEST_TEST_PATH),1),r[2]||(r[2]=dt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):qe("",!0),t.error.VITEST_TEST_NAME?(se(),ye("div",Oce,[r[3]||(r[3]=dt(" The latest test that might've caused the error is ",-1)),Q("span",Pce,ze(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=dt(". It might mean one of the following:",-1)),r[5]||(r[5]=Q("br",null,null,-1)),r[6]||(r[6]=Q("ul",null,[Q("li",null," The error was thrown, while Vitest was running this test. "),Q("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):qe("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(se(),ye("div",Rce,[...r[7]||(r[7]=[dt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:",-1),Q("br",null,null,-1),Q("ul",null,[Q("li",null," Cancel timeouts using clearTimeout and clearInterval. "),Q("li",null," Wait for promises to resolve using the await keyword. ")],-1)])])):qe("",!0)],64))}}),Ice={"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:""},Dce={class:"number","data-testid":"num-files"},Fce={class:"number"},Hce={class:"number","text-red5":""},Bce={class:"number","text-red5":""},Wce={class:"number","text-red5":""},qce={class:"number","data-testid":"run-time"},jce={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Uce={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Vce={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Gce=ot({__name:"TestFilesEntry",setup(e){return(t,r)=>(se(),ye(nt,null,[Q("div",Ice,[r[8]||(r[8]=Q("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=Q("div",null,"Files",-1)),Q("div",Dce,ze(Z(Ae).summary.files),1),Z(Ae).summary.filesSuccess?(se(),ye(nt,{key:0},[r[0]||(r[0]=Q("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=Q("div",null,"Pass",-1)),Q("div",Fce,ze(Z(Ae).summary.filesSuccess),1)],64)):qe("",!0),Z(Ae).summary.filesFailed?(se(),ye(nt,{key:1},[r[2]||(r[2]=Q("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=Q("div",null," Fail ",-1)),Q("div",Hce,ze(Z(Ae).summary.filesFailed),1)],64)):qe("",!0),Z(Ae).summary.filesSnapshotFailed?(se(),ye(nt,{key:2},[r[4]||(r[4]=Q("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=Q("div",null," Snapshot Fail ",-1)),Q("div",Bce,ze(Z(Ae).summary.filesSnapshotFailed),1)],64)):qe("",!0),Z(Ui).length?(se(),ye(nt,{key:3},[r[6]||(r[6]=Q("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=Q("div",null," Errors ",-1)),Q("div",Wce,ze(Z(Ui).length),1)],64)):qe("",!0),r[10]||(r[10]=Q("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=Q("div",null,"Time",-1)),Q("div",qce,ze(Z(Ae).summary.time),1)]),Z(Ui).length?(se(),ye("div",jce,[r[15]||(r[15]=Q("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),Q("p",Uce,[dt(" Vitest caught "+ze(Z(Ui).length)+" error"+ze(Z(Ui).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=Q("br",null,null,-1)),r[13]||(r[13]=dt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),Q("details",Vce,[r[14]||(r[14]=Q("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(se(!0),ye(nt,null,fr(Z(Ui),(o,s)=>(se(),Je(zce,{key:s,error:o},null,8,["error"]))),128))])])):qe("",!0)],64))}}),Kce=ki(Gce,[["__scopeId","data-v-1bd0f2ea"]]),Xce={"p-2":"","text-center":"",flex:""},Yce={"text-4xl":"","min-w-2em":""},Zce={"text-md":""},Ml=ot({__name:"DashboardEntry",setup(e){return(t,r)=>(se(),ye("div",Xce,[Q("div",null,[Q("div",Yce,[wn(t.$slots,"body")]),Q("div",Zce,[wn(t.$slots,"header")])])]))}}),Jce={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Qce=ot({__name:"TestsEntry",setup(e){function t(r){Ze.success=!1,Ze.failed=!1,Ze.skipped=!1,r!=="total"&&(Ze[r]=!0)}return(r,o)=>(se(),ye("div",Jce,[Oe(Ml,{"text-green5":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=s=>t("success"))},{header:it(()=>[...o[4]||(o[4]=[dt(" Pass ",-1)])]),body:it(()=>[dt(ze(Z(Ae).summary.testsSuccess),1)]),_:1}),Oe(Ml,{class:st({"text-red5":Z(Ae).summary.testsFailed,op50:!Z(Ae).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=s=>t("failed"))},{header:it(()=>[...o[5]||(o[5]=[dt(" Fail ",-1)])]),body:it(()=>[dt(ze(Z(Ae).summary.testsFailed),1)]),_:1},8,["class"]),Z(Ae).summary.testsSkipped?(se(),Je(Ml,{key:0,op50:"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=s=>t("skipped"))},{header:it(()=>[...o[6]||(o[6]=[dt(" Skip ",-1)])]),body:it(()=>[dt(ze(Z(Ae).summary.testsSkipped),1)]),_:1})):qe("",!0),Z(Ae).summary.testsTodo?(se(),Je(Ml,{key:1,op50:"","data-testid":"todo-entry"},{header:it(()=>[...o[7]||(o[7]=[dt(" Todo ",-1)])]),body:it(()=>[dt(ze(Z(Ae).summary.testsTodo),1)]),_:1})):qe("",!0),Oe(Ml,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=s=>t("total"))},{header:it(()=>[...o[8]||(o[8]=[dt(" Total ",-1)])]),body:it(()=>[dt(ze(Z(Ae).summary.totalTests),1)]),_:1})]))}}),eue={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},tue={key:0,class:"text-gray-5"},nue={"aria-labelledby":"tests",m:"y-4 x-2"},rue=ot({__name:"TestsFilesContainer",setup(e){return(t,r)=>(se(),ye("div",eue,[Z(Ae).summary.files===0&&Z(ys)?(se(),ye("div",tue," No tests found ")):qe("",!0),Q("section",nue,[Oe(Qce)]),Oe(Kce)]))}}),iue={h:"full",flex:"~ col"},oue={class:"scrolls","flex-auto":"","py-1":""},l0=ot({__name:"Dashboard",setup(e){return(t,r)=>(se(),ye("div",iue,[r[0]||(r[0]=Q("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[Q("div",{class:"i-carbon-dashboard"}),Q("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),Q("div",oue,[Oe(rue)])]))}});function sue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var th="http://www.w3.org/1999/xhtml";const a0={svg:"http://www.w3.org/2000/svg",xhtml:th,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ku(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),a0.hasOwnProperty(t)?{space:a0[t],local:e}:e}function lue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===th&&t.documentElement.namespaceURI===th?t.createElement(e):t.createElementNS(r,e)}}function aue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Zw(e){var t=Ku(e);return(t.local?aue:lue)(t)}function cue(){}function rp(e){return e==null?cue:function(){return this.querySelector(e)}}function uue(e){typeof e!="function"&&(e=rp(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new ir(o,this._parents)}function fue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function due(){return[]}function Jw(e){return e==null?due:function(){return this.querySelectorAll(e)}}function hue(e){return function(){return fue(e.apply(this,arguments))}}function pue(e){typeof e=="function"?e=hue(e):e=Jw(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new ir(o,s)}function Qw(e){return function(){return this.matches(e)}}function ex(e){return function(t){return t.matches(e)}}var gue=Array.prototype.find;function vue(e){return function(){return gue.call(this.children,e)}}function mue(){return this.firstElementChild}function yue(e){return this.select(e==null?mue:vue(typeof e=="function"?e:ex(e)))}var bue=Array.prototype.filter;function wue(){return Array.from(this.children)}function xue(e){return function(){return bue.call(this.children,e)}}function _ue(e){return this.selectAll(e==null?wue:xue(typeof e=="function"?e:ex(e)))}function Sue(e){typeof e!="function"&&(e=Qw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new ir(o,this._parents)}function tx(e){return new Array(e.length)}function kue(){return new ir(this._enter||this._groups.map(tx),this._parents)}function gu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}gu.prototype={constructor:gu,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 Tue(e){return function(){return e}}function Cue(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new gu(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function Eue(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),x;for(d=0;d<v;++d)(h=t[d])&&(b[d]=x=f.call(h,h.__data__,d,t)+"",p.has(x)?s[d]=h:p.set(x,h));for(d=0;d<m;++d)x=f.call(e,c[d],d,c)+"",(h=p.get(x))?(o[d]=h,h.__data__=c[d],p.delete(x)):r[d]=new gu(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Aue(e){return e.__data__}function Lue(e,t){if(!arguments.length)return Array.from(this,Aue);var r=t?Eue:Cue,o=this._parents,s=this._groups;typeof e!="function"&&(e=Tue(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,x=Mue(e.call(v,v&&v.__data__,p,o)),C=x.length,M=d[p]=new Array(C),A=f[p]=new Array(C),L=h[p]=new Array(b);r(v,m,M,A,L,x,t);for(var $=0,D=0,E,I;$<C;++$)if(E=M[$]){for($>=D&&(D=$+1);!(I=A[D])&&++D<C;);E._next=I||null}}return f=new ir(f,o),f._enter=d,f._exit=h,f}function Mue(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function $ue(){return new ir(this._exit||this._groups.map(tx),this._parents)}function Nue(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function Oue(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),x,C=0;C<m;++C)(x=p[C]||v[C])&&(b[C]=x);for(;h<s;++h)d[h]=r[h];return new ir(d,this._parents)}function Pue(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function Rue(e){e||(e=zue);function t(m,b){return m&&b?e(m.__data__,b.__data__):!m-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new ir(s,this._parents).order()}function zue(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Iue(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Due(){return Array.from(this)}function Fue(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function Hue(){let e=0;for(const t of this)++e;return e}function Bue(){return!this.node()}function Wue(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function que(e){return function(){this.removeAttribute(e)}}function jue(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Uue(e,t){return function(){this.setAttribute(e,t)}}function Vue(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Gue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Kue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Xue(e,t){var r=Ku(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?jue:que:typeof t=="function"?r.local?Kue:Gue:r.local?Vue:Uue)(r,t))}function nx(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Yue(e){return function(){this.style.removeProperty(e)}}function Zue(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Jue(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Que(e,t,r){return arguments.length>1?this.each((t==null?Yue:typeof t=="function"?Jue:Zue)(e,t,r??"")):qs(this.node(),e)}function qs(e,t){return e.style.getPropertyValue(t)||nx(e).getComputedStyle(e,null).getPropertyValue(t)}function efe(e){return function(){delete this[e]}}function tfe(e,t){return function(){this[e]=t}}function nfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function rfe(e,t){return arguments.length>1?this.each((t==null?efe:typeof t=="function"?nfe:tfe)(e,t)):this.node()[e]}function rx(e){return e.trim().split(/^|\s+/)}function ip(e){return e.classList||new ix(e)}function ix(e){this._node=e,this._names=rx(e.getAttribute("class")||"")}ix.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 ox(e,t){for(var r=ip(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function sx(e,t){for(var r=ip(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function ife(e){return function(){ox(this,e)}}function ofe(e){return function(){sx(this,e)}}function sfe(e,t){return function(){(t.apply(this,arguments)?ox:sx)(this,e)}}function lfe(e,t){var r=rx(e+"");if(arguments.length<2){for(var o=ip(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?sfe:t?ife:ofe)(r,t))}function afe(){this.textContent=""}function cfe(e){return function(){this.textContent=e}}function ufe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function ffe(e){return arguments.length?this.each(e==null?afe:(typeof e=="function"?ufe:cfe)(e)):this.node().textContent}function dfe(){this.innerHTML=""}function hfe(e){return function(){this.innerHTML=e}}function pfe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function gfe(e){return arguments.length?this.each(e==null?dfe:(typeof e=="function"?pfe:hfe)(e)):this.node().innerHTML}function vfe(){this.nextSibling&&this.parentNode.appendChild(this)}function mfe(){return this.each(vfe)}function yfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function bfe(){return this.each(yfe)}function wfe(e){var t=typeof e=="function"?e:Zw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function xfe(){return null}function _fe(e,t){var r=typeof e=="function"?e:Zw(e),o=t==null?xfe:typeof t=="function"?t:rp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function Sfe(){var e=this.parentNode;e&&e.removeChild(this)}function kfe(){return this.each(Sfe)}function Tfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Cfe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Efe(e){return this.select(e?Cfe:Tfe)}function Afe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Lfe(e){return function(t){e.call(this,t,this.__data__)}}function Mfe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function $fe(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function Nfe(e,t,r){return function(){var o=this.__on,s,c=Lfe(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function Ofe(e,t,r){var o=Mfe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?Nfe:$fe,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function lx(e,t,r){var o=nx(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function Pfe(e,t){return function(){return lx(this,e,t)}}function Rfe(e,t){return function(){return lx(this,e,t.apply(this,arguments))}}function zfe(e,t){return this.each((typeof t=="function"?Rfe:Pfe)(e,t))}function*Ife(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var ax=[null];function ir(e,t){this._groups=e,this._parents=t}function Pa(){return new ir([[document.documentElement]],ax)}function Dfe(){return this}ir.prototype=Pa.prototype={constructor:ir,select:uue,selectAll:pue,selectChild:yue,selectChildren:_ue,filter:Sue,data:Lue,enter:kue,exit:$ue,join:Nue,merge:Oue,selection:Dfe,order:Pue,sort:Rue,call:Iue,nodes:Due,node:Fue,size:Hue,empty:Bue,each:Wue,attr:Xue,style:Que,property:rfe,classed:lfe,text:ffe,html:gfe,raise:mfe,lower:bfe,append:wfe,insert:_fe,remove:kfe,clone:Efe,datum:Afe,on:Ofe,dispatch:zfe,[Symbol.iterator]:Ife};function Un(e){return typeof e=="string"?new ir([[document.querySelector(e)]],[document.documentElement]):new ir([[e]],ax)}function Ffe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function fi(e,t){if(e=Ffe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}var Hfe=Object.defineProperty,Bfe=(e,t,r)=>t in e?Hfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c0=(e,t,r)=>Bfe(e,typeof t!="symbol"?t+"":t,r);class $n{constructor(t,r){c0(this,"x"),c0(this,"y"),this.x=t,this.y=r}static of([t,r]){return new $n(t,r)}add(t){return new $n(this.x+t.x,this.y+t.y)}subtract(t){return new $n(this.x-t.x,this.y-t.y)}multiply(t){return new $n(this.x*t,this.y*t)}divide(t){return new $n(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new $n(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new $n(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new $n(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var Wfe={value:()=>{}};function Ra(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Fc(r)}function Fc(e){this._=e}function qfe(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Fc.prototype=Ra.prototype={constructor:Fc,on:function(e,t){var r=this._,o=qfe(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=jfe(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=u0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=u0(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Fc(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function jfe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function u0(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=Wfe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Ufe={passive:!1},ga={capture:!0,passive:!1};function md(e){e.stopImmediatePropagation()}function Os(e){e.preventDefault(),e.stopImmediatePropagation()}function cx(e){var t=e.document.documentElement,r=Un(e).on("dragstart.drag",Os,ga);"onselectstart"in t?r.on("selectstart.drag",Os,ga):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function ux(e,t){var r=e.document.documentElement,o=Un(e).on("dragstart.drag",null);t&&(o.on("click.drag",Os,ga),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const Cc=e=>()=>e;function nh(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}nh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Vfe(e){return!e.ctrlKey&&!e.button}function Gfe(){return this.parentNode}function Kfe(e,t){return t??{x:e.x,y:e.y}}function Xfe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Yfe(){var e=Vfe,t=Gfe,r=Kfe,o=Xfe,s={},c=Ra("start","drag","end"),f=0,d,h,p,v,m=0;function b(E){E.on("mousedown.drag",x).filter(o).on("touchstart.drag",A).on("touchmove.drag",L,Ufe).on("touchend.drag touchcancel.drag",$).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(E,I){if(!(v||!e.call(this,E,I))){var U=D(this,t.call(this,E,I),E,I,"mouse");U&&(Un(E.view).on("mousemove.drag",C,ga).on("mouseup.drag",M,ga),cx(E.view),md(E),p=!1,d=E.clientX,h=E.clientY,U("start",E))}}function C(E){if(Os(E),!p){var I=E.clientX-d,U=E.clientY-h;p=I*I+U*U>m}s.mouse("drag",E)}function M(E){Un(E.view).on("mousemove.drag mouseup.drag",null),ux(E.view,p),Os(E),s.mouse("end",E)}function A(E,I){if(e.call(this,E,I)){var U=E.changedTouches,ie=t.call(this,E,I),re=U.length,ne,G;for(ne=0;ne<re;++ne)(G=D(this,ie,E,I,U[ne].identifier,U[ne]))&&(md(E),G("start",E,U[ne]))}}function L(E){var I=E.changedTouches,U=I.length,ie,re;for(ie=0;ie<U;++ie)(re=s[I[ie].identifier])&&(Os(E),re("drag",E,I[ie]))}function $(E){var I=E.changedTouches,U=I.length,ie,re;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),ie=0;ie<U;++ie)(re=s[I[ie].identifier])&&(md(E),re("end",E,I[ie]))}function D(E,I,U,ie,re,ne){var G=c.copy(),J=fi(ne||U,I),P,O,N;if((N=r.call(E,new nh("beforestart",{sourceEvent:U,target:b,identifier:re,active:f,x:J[0],y:J[1],dx:0,dy:0,dispatch:G}),ie))!=null)return P=N.x-J[0]||0,O=N.y-J[1]||0,function S(F,j,oe){var me=J,Se;switch(F){case"start":s[re]=S,Se=f++;break;case"end":delete s[re],--f;case"drag":J=fi(oe||j,I),Se=f;break}G.call(F,E,new nh(F,{sourceEvent:j,subject:N,target:b,identifier:re,active:Se,x:J[0]+P,y:J[1]+O,dx:J[0]-me[0],dy:J[1]-me[1],dispatch:G}),ie)}}return b.filter=function(E){return arguments.length?(e=typeof E=="function"?E:Cc(!!E),b):e},b.container=function(E){return arguments.length?(t=typeof E=="function"?E:Cc(E),b):t},b.subject=function(E){return arguments.length?(r=typeof E=="function"?E:Cc(E),b):r},b.touchable=function(E){return arguments.length?(o=typeof E=="function"?E:Cc(!!E),b):o},b.on=function(){var E=c.on.apply(c,arguments);return E===c?b:E},b.clickDistance=function(E){return arguments.length?(m=(E=+E)*E,b):Math.sqrt(m)},b}function op(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function fx(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function za(){}var va=.7,vu=1/va,Ps="\\s*([+-]?\\d+)\\s*",ma="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Zfe=/^#([0-9a-f]{3,8})$/,Jfe=new RegExp(`^rgb\\(${Ps},${Ps},${Ps}\\)$`),Qfe=new RegExp(`^rgb\\(${Xr},${Xr},${Xr}\\)$`),ede=new RegExp(`^rgba\\(${Ps},${Ps},${Ps},${ma}\\)$`),tde=new RegExp(`^rgba\\(${Xr},${Xr},${Xr},${ma}\\)$`),nde=new RegExp(`^hsl\\(${ma},${Xr},${Xr}\\)$`),rde=new RegExp(`^hsla\\(${ma},${Xr},${Xr},${ma}\\)$`),f0={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};op(za,ya,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:d0,formatHex:d0,formatHex8:ide,formatHsl:ode,formatRgb:h0,toString:h0});function d0(){return this.rgb().formatHex()}function ide(){return this.rgb().formatHex8()}function ode(){return dx(this).formatHsl()}function h0(){return this.rgb().formatRgb()}function ya(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Zfe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?p0(t):r===3?new Gn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ec(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ec(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=Jfe.exec(e))?new Gn(t[1],t[2],t[3],1):(t=Qfe.exec(e))?new Gn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ede.exec(e))?Ec(t[1],t[2],t[3],t[4]):(t=tde.exec(e))?Ec(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nde.exec(e))?m0(t[1],t[2]/100,t[3]/100,1):(t=rde.exec(e))?m0(t[1],t[2]/100,t[3]/100,t[4]):f0.hasOwnProperty(e)?p0(f0[e]):e==="transparent"?new Gn(NaN,NaN,NaN,0):null}function p0(e){return new Gn(e>>16&255,e>>8&255,e&255,1)}function Ec(e,t,r,o){return o<=0&&(e=t=r=NaN),new Gn(e,t,r,o)}function sde(e){return e instanceof za||(e=ya(e)),e?(e=e.rgb(),new Gn(e.r,e.g,e.b,e.opacity)):new Gn}function rh(e,t,r,o){return arguments.length===1?sde(e):new Gn(e,t,r,o??1)}function Gn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}op(Gn,rh,fx(za,{brighter(e){return e=e==null?vu:Math.pow(vu,e),new Gn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?va:Math.pow(va,e),new Gn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Gn(Ro(this.r),Ro(this.g),Ro(this.b),mu(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:g0,formatHex:g0,formatHex8:lde,formatRgb:v0,toString:v0}));function g0(){return`#${No(this.r)}${No(this.g)}${No(this.b)}`}function lde(){return`#${No(this.r)}${No(this.g)}${No(this.b)}${No((isNaN(this.opacity)?1:this.opacity)*255)}`}function v0(){const e=mu(this.opacity);return`${e===1?"rgb(":"rgba("}${Ro(this.r)}, ${Ro(this.g)}, ${Ro(this.b)}${e===1?")":`, ${e})`}`}function mu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ro(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function No(e){return e=Ro(e),(e<16?"0":"")+e.toString(16)}function m0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Er(e,t,r,o)}function dx(e){if(e instanceof Er)return new Er(e.h,e.s,e.l,e.opacity);if(e instanceof za||(e=ya(e)),!e)return new Er;if(e instanceof Er)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new Er(f,d,h,e.opacity)}function ade(e,t,r,o){return arguments.length===1?dx(e):new Er(e,t,r,o??1)}function Er(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}op(Er,ade,fx(za,{brighter(e){return e=e==null?vu:Math.pow(vu,e),new Er(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?va:Math.pow(va,e),new Er(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Gn(yd(e>=240?e-240:e+120,s,o),yd(e,s,o),yd(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Er(y0(this.h),Ac(this.s),Ac(this.l),mu(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=mu(this.opacity);return`${e===1?"hsl(":"hsla("}${y0(this.h)}, ${Ac(this.s)*100}%, ${Ac(this.l)*100}%${e===1?")":`, ${e})`}`}}));function y0(e){return e=(e||0)%360,e<0?e+360:e}function Ac(e){return Math.max(0,Math.min(1,e||0))}function yd(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const hx=e=>()=>e;function cde(e,t){return function(r){return e+r*t}}function ude(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function fde(e){return(e=+e)==1?px:function(t,r){return r-t?ude(t,r,e):hx(isNaN(t)?r:t)}}function px(e,t){var r=t-e;return r?cde(e,r):hx(isNaN(e)?t:e)}const b0=(function e(t){var r=fde(t);function o(s,c){var f=r((s=rh(s)).r,(c=rh(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=px(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o})(1);function Vi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var ih=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bd=new RegExp(ih.source,"g");function dde(e){return function(){return e}}function hde(e){return function(t){return e(t)+""}}function pde(e,t){var r=ih.lastIndex=bd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=ih.exec(e))&&(s=bd.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:Vi(o,s)})),r=bd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?hde(h[0].x):dde(t):(t=h.length,function(p){for(var v=0,m;v<t;++v)d[(m=h[v]).i]=m.x(p);return d.join("")})}var w0=180/Math.PI,oh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function gx(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*w0,skewX:Math.atan(h)*w0,scaleX:f,scaleY:d}}var Lc;function gde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?oh:gx(t.a,t.b,t.c,t.d,t.e,t.f)}function vde(e){return e==null||(Lc||(Lc=document.createElementNS("http://www.w3.org/2000/svg","g")),Lc.setAttribute("transform",e),!(e=Lc.transform.baseVal.consolidate()))?oh:(e=e.matrix,gx(e.a,e.b,e.c,e.d,e.e,e.f))}function vx(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,x,C){if(p!==m||v!==b){var M=x.push("translate(",null,t,null,r);C.push({i:M-4,x:Vi(p,m)},{i:M-2,x:Vi(v,b)})}else(m||b)&&x.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:Vi(p,v)})):v&&m.push(s(m)+"rotate("+v+o)}function d(p,v,m,b){p!==v?b.push({i:m.push(s(m)+"skewX(",null,o)-2,x:Vi(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,x,C){if(p!==m||v!==b){var M=x.push(s(x)+"scale(",null,",",null,")");C.push({i:M-4,x:Vi(p,m)},{i:M-2,x:Vi(v,b)})}else(m!==1||b!==1)&&x.push(s(x)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(x){for(var C=-1,M=b.length,A;++C<M;)m[(A=b[C]).i]=A.x(x);return m.join("")}}}var mde=vx(gde,"px, ","px)","deg)"),yde=vx(vde,", ",")",")"),bde=1e-12;function x0(e){return((e=Math.exp(e))+1/e)/2}function wde(e){return((e=Math.exp(e))-1/e)/2}function xde(e){return((e=Math.exp(2*e))-1)/(e+1)}const _de=(function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],x=v-d,C=m-h,M=x*x+C*C,A,L;if(M<bde)L=Math.log(b/p)/t,A=function(ie){return[d+ie*x,h+ie*C,p*Math.exp(t*ie*L)]};else{var $=Math.sqrt(M),D=(b*b-p*p+o*M)/(2*p*r*$),E=(b*b-p*p-o*M)/(2*b*r*$),I=Math.log(Math.sqrt(D*D+1)-D),U=Math.log(Math.sqrt(E*E+1)-E);L=(U-I)/t,A=function(ie){var re=ie*L,ne=x0(I),G=p/(r*$)*(ne*xde(t*re+I)-wde(I));return[d+G*x,h+G*C,p*ne/x0(t*re+I)]}}return A.duration=L*1e3*t/Math.SQRT2,A}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s})(Math.SQRT2,2,4);var js=0,Rl=0,$l=0,mx=1e3,yu,zl,bu=0,Io=0,Xu=0,ba=typeof performance=="object"&&performance.now?performance:Date,yx=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function sp(){return Io||(yx(Sde),Io=ba.now()+Xu)}function Sde(){Io=0}function wu(){this._call=this._time=this._next=null}wu.prototype=lp.prototype={constructor:wu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?sp():+r)+(t==null?0:+t),!this._next&&zl!==this&&(zl?zl._next=this:yu=this,zl=this),this._call=e,this._time=r,sh()},stop:function(){this._call&&(this._call=null,this._time=1/0,sh())}};function lp(e,t,r){var o=new wu;return o.restart(e,t,r),o}function kde(){sp(),++js;for(var e=yu,t;e;)(t=Io-e._time)>=0&&e._call.call(void 0,t),e=e._next;--js}function _0(){Io=(bu=ba.now())+Xu,js=Rl=0;try{kde()}finally{js=0,Cde(),Io=0}}function Tde(){var e=ba.now(),t=e-bu;t>mx&&(Xu-=t,bu=e)}function Cde(){for(var e,t=yu,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:yu=r);zl=e,sh(o)}function sh(e){if(!js){Rl&&(Rl=clearTimeout(Rl));var t=e-Io;t>24?(e<1/0&&(Rl=setTimeout(_0,e-ba.now()-Xu)),$l&&($l=clearInterval($l))):($l||(bu=ba.now(),$l=setInterval(Tde,mx)),js=1,yx(_0))}}function S0(e,t,r){var o=new wu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Ede=Ra("start","end","cancel","interrupt"),Ade=[],bx=0,k0=1,lh=2,Hc=3,T0=4,ah=5,Bc=6;function Yu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;Lde(e,r,{name:t,index:o,group:s,on:Ede,tween:Ade,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:bx})}function ap(e,t){var r=zr(e,t);if(r.state>bx)throw new Error("too late; already scheduled");return r}function Zr(e,t){var r=zr(e,t);if(r.state>Hc)throw new Error("too late; already running");return r}function zr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Lde(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=lp(c,0,r.time);function c(p){r.state=k0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,x;if(r.state!==k0)return h();for(v in o)if(x=o[v],x.name===r.name){if(x.state===Hc)return S0(f);x.state===T0?(x.state=Bc,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete o[v]):+v<t&&(x.state=Bc,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete o[v])}if(S0(function(){r.state===Hc&&(r.state=T0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=lh,r.on.call("start",e,e.__data__,r.index,r.group),r.state===lh){for(r.state=Hc,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(x=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=x);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=ah,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===ah&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Bc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Wc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>lh&&o.state<ah,o.state=Bc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Mde(e){return this.each(function(){Wc(this,e)})}function $de(e,t){var r,o;return function(){var s=Zr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function Nde(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Zr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function Ode(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=zr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?$de:Nde)(r,e,t))}function cp(e,t,r){var o=e._id;return e.each(function(){var s=Zr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return zr(s,o).value[t]}}function wx(e,t){var r;return(typeof t=="number"?Vi:t instanceof ya?b0:(r=ya(t))?(t=r,b0):pde)(e,t)}function Pde(e){return function(){this.removeAttribute(e)}}function Rde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zde(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function Ide(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function Dde(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Fde(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Hde(e,t){var r=Ku(e),o=r==="transform"?yde:wx;return this.attrTween(e,typeof t=="function"?(r.local?Fde:Dde)(r,o,cp(this,"attr."+e,t)):t==null?(r.local?Rde:Pde)(r):(r.local?Ide:zde)(r,o,t))}function Bde(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Wde(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function qde(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Wde(e,c)),r}return s._value=t,s}function jde(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Bde(e,c)),r}return s._value=t,s}function Ude(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=Ku(e);return this.tween(r,(o.local?qde:jde)(o,t))}function Vde(e,t){return function(){ap(this,e).delay=+t.apply(this,arguments)}}function Gde(e,t){return t=+t,function(){ap(this,e).delay=t}}function Kde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Vde:Gde)(t,e)):zr(this.node(),t).delay}function Xde(e,t){return function(){Zr(this,e).duration=+t.apply(this,arguments)}}function Yde(e,t){return t=+t,function(){Zr(this,e).duration=t}}function Zde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Xde:Yde)(t,e)):zr(this.node(),t).duration}function Jde(e,t){if(typeof t!="function")throw new Error;return function(){Zr(this,e).ease=t}}function Qde(e){var t=this._id;return arguments.length?this.each(Jde(t,e)):zr(this.node(),t).ease}function ehe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Zr(this,e).ease=r}}function the(e){if(typeof e!="function")throw new Error;return this.each(ehe(this._id,e))}function nhe(e){typeof e!="function"&&(e=Qw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new wi(o,this._parents,this._name,this._id)}function rhe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,x=0;x<v;++x)(b=h[x]||p[x])&&(m[x]=b);for(;d<o;++d)f[d]=t[d];return new wi(f,this._parents,this._name,this._id)}function ihe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function ohe(e,t,r){var o,s,c=ihe(t)?ap:Zr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function she(e,t){var r=this._id;return arguments.length<2?zr(this.node(),r).on.on(e):this.each(ohe(r,e,t))}function lhe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function ahe(){return this.on("end.remove",lhe(this._id))}function che(e){var t=this._name,r=this._id;typeof e!="function"&&(e=rp(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,m,b=0;b<h;++b)(v=d[b])&&(m=e.call(v,v.__data__,b,d))&&("__data__"in v&&(m.__data__=v.__data__),p[b]=m,Yu(p[b],t,r,b,p,zr(v,r)));return new wi(c,this._parents,t,r)}function uhe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Jw(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),x,C=zr(v,r),M=0,A=b.length;M<A;++M)(x=b[M])&&Yu(x,t,r,M,b,C);c.push(b),f.push(v)}return new wi(c,f,t,r)}var fhe=Pa.prototype.constructor;function dhe(){return new fhe(this._groups,this._parents)}function hhe(e,t){var r,o,s;return function(){var c=qs(this,e),f=(this.style.removeProperty(e),qs(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function xx(e){return function(){this.style.removeProperty(e)}}function phe(e,t,r){var o,s=r+"",c;return function(){var f=qs(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function ghe(e,t,r){var o,s,c;return function(){var f=qs(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),qs(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function vhe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Zr(this,e),p=h.on,v=h.value[c]==null?d||(d=xx(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function mhe(e,t,r){var o=(e+="")=="transform"?mde:wx;return t==null?this.styleTween(e,hhe(e,o)).on("end.style."+e,xx(e)):typeof t=="function"?this.styleTween(e,ghe(e,o,cp(this,"style."+e,t))).each(vhe(this._id,e)):this.styleTween(e,phe(e,o,t),r).on("end.style."+e,null)}function yhe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function bhe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&yhe(e,f,r)),o}return c._value=t,c}function whe(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,bhe(e,t,r??""))}function xhe(e){return function(){this.textContent=e}}function _he(e){return function(){var t=e(this);this.textContent=t??""}}function She(e){return this.tween("text",typeof e=="function"?_he(cp(this,"text",e)):xhe(e==null?"":e+""))}function khe(e){return function(t){this.textContent=e.call(this,t)}}function The(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&khe(s)),t}return o._value=e,o}function Che(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,The(e))}function Ehe(){for(var e=this._name,t=this._id,r=_x(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=zr(h,t);Yu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new wi(o,this._parents,e,r)}function Ahe(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=Zr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var Lhe=0;function wi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function _x(){return++Lhe}var ai=Pa.prototype;wi.prototype={constructor:wi,select:che,selectAll:uhe,selectChild:ai.selectChild,selectChildren:ai.selectChildren,filter:nhe,merge:rhe,selection:dhe,transition:Ehe,call:ai.call,nodes:ai.nodes,node:ai.node,size:ai.size,empty:ai.empty,each:ai.each,on:she,attr:Hde,attrTween:Ude,style:mhe,styleTween:whe,text:She,textTween:Che,remove:ahe,tween:Ode,delay:Kde,duration:Zde,ease:Qde,easeVarying:the,end:Ahe,[Symbol.iterator]:ai[Symbol.iterator]};function Mhe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var $he={time:null,delay:0,duration:250,ease:Mhe};function Nhe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function Ohe(e){var t,r;e instanceof wi?(t=e._id,e=e._name):(t=_x(),(r=$he).time=sp(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&Yu(h,e,t,p,f,r||Nhe(h,t));return new wi(o,this._parents,e,t)}Pa.prototype.interrupt=Mde;Pa.prototype.transition=Ohe;const Mc=e=>()=>e;function Phe(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function gi(e,t,r){this.k=e,this.x=t,this.y=r}gi.prototype={constructor:gi,scale:function(e){return e===1?this:new gi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new gi(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 up=new gi(1,0,0);gi.prototype;function wd(e){e.stopImmediatePropagation()}function Nl(e){e.preventDefault(),e.stopImmediatePropagation()}function Rhe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function zhe(){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 C0(){return this.__zoom||up}function Ihe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Dhe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Fhe(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function Hhe(){var e=Rhe,t=zhe,r=Fhe,o=Ihe,s=Dhe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=_de,p=Ra("start","zoom","end"),v,m,b,x=500,C=150,M=0,A=10;function L(N){N.property("__zoom",C0).on("wheel.zoom",re,{passive:!1}).on("mousedown.zoom",ne).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",J).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}L.transform=function(N,S,F,j){var oe=N.selection?N.selection():N;oe.property("__zoom",C0),N!==oe?I(N,S,F,j):oe.interrupt().each(function(){U(this,arguments).event(j).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},L.scaleBy=function(N,S,F,j){L.scaleTo(N,function(){var oe=this.__zoom.k,me=typeof S=="function"?S.apply(this,arguments):S;return oe*me},F,j)},L.scaleTo=function(N,S,F,j){L.transform(N,function(){var oe=t.apply(this,arguments),me=this.__zoom,Se=F==null?E(oe):typeof F=="function"?F.apply(this,arguments):F,Re=me.invert(Se),je=typeof S=="function"?S.apply(this,arguments):S;return r(D($(me,je),Se,Re),oe,f)},F,j)},L.translateBy=function(N,S,F,j){L.transform(N,function(){return r(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof F=="function"?F.apply(this,arguments):F),t.apply(this,arguments),f)},null,j)},L.translateTo=function(N,S,F,j,oe){L.transform(N,function(){var me=t.apply(this,arguments),Se=this.__zoom,Re=j==null?E(me):typeof j=="function"?j.apply(this,arguments):j;return r(up.translate(Re[0],Re[1]).scale(Se.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof F=="function"?-F.apply(this,arguments):-F),me,f)},j,oe)};function $(N,S){return S=Math.max(c[0],Math.min(c[1],S)),S===N.k?N:new gi(S,N.x,N.y)}function D(N,S,F){var j=S[0]-F[0]*N.k,oe=S[1]-F[1]*N.k;return j===N.x&&oe===N.y?N:new gi(N.k,j,oe)}function E(N){return[(+N[0][0]+ +N[1][0])/2,(+N[0][1]+ +N[1][1])/2]}function I(N,S,F,j){N.on("start.zoom",function(){U(this,arguments).event(j).start()}).on("interrupt.zoom end.zoom",function(){U(this,arguments).event(j).end()}).tween("zoom",function(){var oe=this,me=arguments,Se=U(oe,me).event(j),Re=t.apply(oe,me),je=F==null?E(Re):typeof F=="function"?F.apply(oe,me):F,Qe=Math.max(Re[1][0]-Re[0][0],Re[1][1]-Re[0][1]),Xe=oe.__zoom,Ye=typeof S=="function"?S.apply(oe,me):S,te=h(Xe.invert(je).concat(Qe/Xe.k),Ye.invert(je).concat(Qe/Ye.k));return function(H){if(H===1)H=Ye;else{var Y=te(H),V=Qe/Y[2];H=new gi(V,je[0]-Y[0]*V,je[1]-Y[1]*V)}Se.zoom(null,H)}})}function U(N,S,F){return!F&&N.__zooming||new ie(N,S)}function ie(N,S){this.that=N,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(N,S),this.taps=0}ie.prototype={event:function(N){return N&&(this.sourceEvent=N),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(N,S){return this.mouse&&N!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&N!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&N!=="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(N){var S=Un(this.that).datum();p.call(N,this.that,new Phe(N,{sourceEvent:this.sourceEvent,target:L,transform:this.that.__zoom,dispatch:p}),S)}};function re(N,...S){if(!e.apply(this,arguments))return;var F=U(this,S).event(N),j=this.__zoom,oe=Math.max(c[0],Math.min(c[1],j.k*Math.pow(2,o.apply(this,arguments)))),me=fi(N);if(F.wheel)(F.mouse[0][0]!==me[0]||F.mouse[0][1]!==me[1])&&(F.mouse[1]=j.invert(F.mouse[0]=me)),clearTimeout(F.wheel);else{if(j.k===oe)return;F.mouse=[me,j.invert(me)],Wc(this),F.start()}Nl(N),F.wheel=setTimeout(Se,C),F.zoom("mouse",r(D($(j,oe),F.mouse[0],F.mouse[1]),F.extent,f));function Se(){F.wheel=null,F.end()}}function ne(N,...S){if(b||!e.apply(this,arguments))return;var F=N.currentTarget,j=U(this,S,!0).event(N),oe=Un(N.view).on("mousemove.zoom",je,!0).on("mouseup.zoom",Qe,!0),me=fi(N,F),Se=N.clientX,Re=N.clientY;cx(N.view),wd(N),j.mouse=[me,this.__zoom.invert(me)],Wc(this),j.start();function je(Xe){if(Nl(Xe),!j.moved){var Ye=Xe.clientX-Se,te=Xe.clientY-Re;j.moved=Ye*Ye+te*te>M}j.event(Xe).zoom("mouse",r(D(j.that.__zoom,j.mouse[0]=fi(Xe,F),j.mouse[1]),j.extent,f))}function Qe(Xe){oe.on("mousemove.zoom mouseup.zoom",null),ux(Xe.view,j.moved),Nl(Xe),j.event(Xe).end()}}function G(N,...S){if(e.apply(this,arguments)){var F=this.__zoom,j=fi(N.changedTouches?N.changedTouches[0]:N,this),oe=F.invert(j),me=F.k*(N.shiftKey?.5:2),Se=r(D($(F,me),j,oe),t.apply(this,S),f);Nl(N),d>0?Un(this).transition().duration(d).call(I,Se,j,N):Un(this).call(L.transform,Se,j,N)}}function J(N,...S){if(e.apply(this,arguments)){var F=N.touches,j=F.length,oe=U(this,S,N.changedTouches.length===j).event(N),me,Se,Re,je;for(wd(N),Se=0;Se<j;++Se)Re=F[Se],je=fi(Re,this),je=[je,this.__zoom.invert(je),Re.identifier],oe.touch0?!oe.touch1&&oe.touch0[2]!==je[2]&&(oe.touch1=je,oe.taps=0):(oe.touch0=je,me=!0,oe.taps=1+!!v);v&&(v=clearTimeout(v)),me&&(oe.taps<2&&(m=je[0],v=setTimeout(function(){v=null},x)),Wc(this),oe.start())}}function P(N,...S){if(this.__zooming){var F=U(this,S).event(N),j=N.changedTouches,oe=j.length,me,Se,Re,je;for(Nl(N),me=0;me<oe;++me)Se=j[me],Re=fi(Se,this),F.touch0&&F.touch0[2]===Se.identifier?F.touch0[0]=Re:F.touch1&&F.touch1[2]===Se.identifier&&(F.touch1[0]=Re);if(Se=F.that.__zoom,F.touch1){var Qe=F.touch0[0],Xe=F.touch0[1],Ye=F.touch1[0],te=F.touch1[1],H=(H=Ye[0]-Qe[0])*H+(H=Ye[1]-Qe[1])*H,Y=(Y=te[0]-Xe[0])*Y+(Y=te[1]-Xe[1])*Y;Se=$(Se,Math.sqrt(H/Y)),Re=[(Qe[0]+Ye[0])/2,(Qe[1]+Ye[1])/2],je=[(Xe[0]+te[0])/2,(Xe[1]+te[1])/2]}else if(F.touch0)Re=F.touch0[0],je=F.touch0[1];else return;F.zoom("touch",r(D(Se,Re,je),F.extent,f))}}function O(N,...S){if(this.__zooming){var F=U(this,S).event(N),j=N.changedTouches,oe=j.length,me,Se;for(wd(N),b&&clearTimeout(b),b=setTimeout(function(){b=null},x),me=0;me<oe;++me)Se=j[me],F.touch0&&F.touch0[2]===Se.identifier?delete F.touch0:F.touch1&&F.touch1[2]===Se.identifier&&delete F.touch1;if(F.touch1&&!F.touch0&&(F.touch0=F.touch1,delete F.touch1),F.touch0)F.touch0[1]=this.__zoom.invert(F.touch0[0]);else if(F.end(),F.taps===2&&(Se=fi(Se,this),Math.hypot(m[0]-Se[0],m[1]-Se[1])<A)){var Re=Un(this).on("dblclick.zoom");Re&&Re.apply(this,arguments)}}}return L.wheelDelta=function(N){return arguments.length?(o=typeof N=="function"?N:Mc(+N),L):o},L.filter=function(N){return arguments.length?(e=typeof N=="function"?N:Mc(!!N),L):e},L.touchable=function(N){return arguments.length?(s=typeof N=="function"?N:Mc(!!N),L):s},L.extent=function(N){return arguments.length?(t=typeof N=="function"?N:Mc([[+N[0][0],+N[0][1]],[+N[1][0],+N[1][1]]]),L):t},L.scaleExtent=function(N){return arguments.length?(c[0]=+N[0],c[1]=+N[1],L):[c[0],c[1]]},L.translateExtent=function(N){return arguments.length?(f[0][0]=+N[0][0],f[1][0]=+N[1][0],f[0][1]=+N[0][1],f[1][1]=+N[1][1],L):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},L.constrain=function(N){return arguments.length?(r=N,L):r},L.duration=function(N){return arguments.length?(d=+N,L):d},L.interpolate=function(N){return arguments.length?(h=N,L):h},L.on=function(){var N=p.on.apply(p,arguments);return N===p?L:N},L.clickDistance=function(N){return arguments.length?(M=(N=+N)*N,L):Math.sqrt(M)},L.tapDistance=function(N){return arguments.length?(A=+N,L):A},L}function Bhe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return Sx(this.cover(t,r),t,r,e)}function Sx(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,x,C,M,A,L,$;if(!c)return e._root=f,e;for(;c.length;)if((M=t>=(m=(d+p)/2))?d=m:p=m,(A=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[L=A<<1|M]))return s[L]=f,e;if(x=+e._x.call(null,c.data),C=+e._y.call(null,c.data),t===x&&r===C)return f.next=c,s?s[L]=f:e._root=f,e;do s=s?s[L]=new Array(4):e._root=new Array(4),(M=t>=(m=(d+p)/2))?d=m:p=m,(A=r>=(b=(h+v)/2))?h=b:v=b;while((L=A<<1|M)===($=(C>=b)<<1|x>=m));return s[$]=c,s[L]=f,e}function Whe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,m=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>m&&(m=c));if(h>v||p>m)return this;for(this.cover(h,p).cover(v,m),r=0;r<o;++r)Sx(this,f[r],d[r],e[r]);return this}function qhe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function jhe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Uhe(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 On(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Vhe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],x=this._root,C,M;for(x&&b.push(new On(x,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);C=b.pop();)if(!(!(x=C.node)||(f=C.x0)>v||(d=C.y0)>m||(h=C.x1)<s||(p=C.y1)<c))if(x.length){var A=(f+h)/2,L=(d+p)/2;b.push(new On(x[3],A,L,h,p),new On(x[2],f,L,A,p),new On(x[1],A,d,h,L),new On(x[0],f,d,A,L)),(M=(t>=L)<<1|e>=A)&&(C=b[b.length-1],b[b.length-1]=b[b.length-1-M],b[b.length-1-M]=C)}else{var $=e-+this._x.call(null,x.data),D=t-+this._y.call(null,x.data),E=$*$+D*D;if(E<r){var I=Math.sqrt(r=E);s=e-I,c=t-I,v=e+I,m=t+I,o=x.data}}return o}function Ghe(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,x,C,M,A,L;if(!r)return this;if(r.length)for(;;){if((C=v>=(b=(f+h)/2))?f=b:h=b,(M=m>=(x=(d+p)/2))?d=x:p=x,t=r,!(r=r[A=M<<1|C]))return this;if(!r.length)break;(t[A+1&3]||t[A+2&3]||t[A+3&3])&&(o=t,L=A)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[A]=c:delete t[A],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[L]=r:this._root=r),this):(this._root=c,this)}function Khe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Xhe(){return this._root}function Yhe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Zhe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new On(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new On(s,p,v,d,h)),(s=o[2])&&t.push(new On(s,c,v,p,h)),(s=o[1])&&t.push(new On(s,p,f,d,v)),(s=o[0])&&t.push(new On(s,c,f,p,v))}return this}function Jhe(e){var t=[],r=[],o;for(this._root&&t.push(new On(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,m=(d+p)/2;(c=s[0])&&t.push(new On(c,f,d,v,m)),(c=s[1])&&t.push(new On(c,v,d,h,m)),(c=s[2])&&t.push(new On(c,f,m,v,p)),(c=s[3])&&t.push(new On(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Qhe(e){return e[0]}function epe(e){return arguments.length?(this._x=e,this):this._x}function tpe(e){return e[1]}function npe(e){return arguments.length?(this._y=e,this):this._y}function fp(e,t,r){var o=new dp(t??Qhe,r??tpe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function dp(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function E0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var zn=fp.prototype=dp.prototype;zn.copy=function(){var e=new dp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=E0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=E0(o));return e};zn.add=Bhe;zn.addAll=Whe;zn.cover=qhe;zn.data=jhe;zn.extent=Uhe;zn.find=Vhe;zn.remove=Ghe;zn.removeAll=Khe;zn.root=Xhe;zn.size=Yhe;zn.visit=Zhe;zn.visitAfter=Jhe;zn.x=epe;zn.y=npe;function Rn(e){return function(){return e}}function Xi(e){return(e()-.5)*1e-6}function rpe(e){return e.x+e.vx}function ipe(e){return e.y+e.vy}function ope(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Rn(e==null?1:+e));function f(){for(var p,v=t.length,m,b,x,C,M,A,L=0;L<c;++L)for(m=fp(t,rpe,ipe).visitAfter(d),p=0;p<v;++p)b=t[p],M=r[b.index],A=M*M,x=b.x+b.vx,C=b.y+b.vy,m.visit($);function $(D,E,I,U,ie){var re=D.data,ne=D.r,G=M+ne;if(re){if(re.index>b.index){var J=x-re.x-re.vx,P=C-re.y-re.vy,O=J*J+P*P;O<G*G&&(J===0&&(J=Xi(o),O+=J*J),P===0&&(P=Xi(o),O+=P*P),O=(G-(O=Math.sqrt(O)))/O*s,b.vx+=(J*=O)*(G=(ne*=ne)/(A+ne)),b.vy+=(P*=O)*G,re.vx-=J*(G=1-G),re.vy-=P*G)}return}return E>x+G||U<x-G||I>C+G||ie<C-G}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:Rn(+p),h(),f):e},f}function spe(e){return e.index}function A0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function lpe(e){var t=spe,r=m,o,s=Rn(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(A){return 1/Math.min(d[A.source.index],d[A.target.index])}function b(A){for(var L=0,$=e.length;L<v;++L)for(var D=0,E,I,U,ie,re,ne,G;D<$;++D)E=e[D],I=E.source,U=E.target,ie=U.x+U.vx-I.x-I.vx||Xi(p),re=U.y+U.vy-I.y-I.vy||Xi(p),ne=Math.sqrt(ie*ie+re*re),ne=(ne-c[D])/ne*A*o[D],ie*=ne,re*=ne,U.vx-=ie*(G=h[D]),U.vy-=re*G,I.vx+=ie*(G=1-G),I.vy+=re*G}function x(){if(f){var A,L=f.length,$=e.length,D=new Map(f.map((I,U)=>[t(I,U,f),I])),E;for(A=0,d=new Array(L);A<$;++A)E=e[A],E.index=A,typeof E.source!="object"&&(E.source=A0(D,E.source)),typeof E.target!="object"&&(E.target=A0(D,E.target)),d[E.source.index]=(d[E.source.index]||0)+1,d[E.target.index]=(d[E.target.index]||0)+1;for(A=0,h=new Array($);A<$;++A)E=e[A],h[A]=d[E.source.index]/(d[E.source.index]+d[E.target.index]);o=new Array($),C(),c=new Array($),M()}}function C(){if(f)for(var A=0,L=e.length;A<L;++A)o[A]=+r(e[A],A,e)}function M(){if(f)for(var A=0,L=e.length;A<L;++A)c[A]=+s(e[A],A,e)}return b.initialize=function(A,L){f=A,p=L,x()},b.links=function(A){return arguments.length?(e=A,x(),b):e},b.id=function(A){return arguments.length?(t=A,b):t},b.iterations=function(A){return arguments.length?(v=+A,b):v},b.strength=function(A){return arguments.length?(r=typeof A=="function"?A:Rn(+A),C(),b):r},b.distance=function(A){return arguments.length?(s=typeof A=="function"?A:Rn(+A),M(),b):s},b}const ape=1664525,cpe=1013904223,L0=4294967296;function upe(){let e=1;return()=>(e=(ape*e+cpe)%L0)/L0}function fpe(e){return e.x}function dpe(e){return e.y}var hpe=10,ppe=Math.PI*(3-Math.sqrt(5));function gpe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=lp(m),p=Ra("tick","end"),v=upe();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(M){var A,L=e.length,$;M===void 0&&(M=1);for(var D=0;D<M;++D)for(r+=(c-r)*s,d.forEach(function(E){E(r)}),A=0;A<L;++A)$=e[A],$.fx==null?$.x+=$.vx*=f:($.x=$.fx,$.vx=0),$.fy==null?$.y+=$.vy*=f:($.y=$.fy,$.vy=0);return t}function x(){for(var M=0,A=e.length,L;M<A;++M){if(L=e[M],L.index=M,L.fx!=null&&(L.x=L.fx),L.fy!=null&&(L.y=L.fy),isNaN(L.x)||isNaN(L.y)){var $=hpe*Math.sqrt(.5+M),D=M*ppe;L.x=$*Math.cos(D),L.y=$*Math.sin(D)}(isNaN(L.vx)||isNaN(L.vy))&&(L.vx=L.vy=0)}}function C(M){return M.initialize&&M.initialize(e,v),M}return x(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(M){return arguments.length?(e=M,x(),d.forEach(C),t):e},alpha:function(M){return arguments.length?(r=+M,t):r},alphaMin:function(M){return arguments.length?(o=+M,t):o},alphaDecay:function(M){return arguments.length?(s=+M,t):+s},alphaTarget:function(M){return arguments.length?(c=+M,t):c},velocityDecay:function(M){return arguments.length?(f=1-M,t):1-f},randomSource:function(M){return arguments.length?(v=M,d.forEach(C),t):v},force:function(M,A){return arguments.length>1?(A==null?d.delete(M):d.set(M,C(A)),t):d.get(M)},find:function(M,A,L){var $=0,D=e.length,E,I,U,ie,re;for(L==null?L=1/0:L*=L,$=0;$<D;++$)ie=e[$],E=M-ie.x,I=A-ie.y,U=E*E+I*I,U<L&&(re=ie,L=U);return re},on:function(M,A){return arguments.length>1?(p.on(M,A),t):p.on(M)}}}function vpe(){var e,t,r,o,s=Rn(-30),c,f=1,d=1/0,h=.81;function p(x){var C,M=e.length,A=fp(e,fpe,dpe).visitAfter(m);for(o=x,C=0;C<M;++C)t=e[C],A.visit(b)}function v(){if(e){var x,C=e.length,M;for(c=new Array(C),x=0;x<C;++x)M=e[x],c[M.index]=+s(M,x,e)}}function m(x){var C=0,M,A,L=0,$,D,E;if(x.length){for($=D=E=0;E<4;++E)(M=x[E])&&(A=Math.abs(M.value))&&(C+=M.value,L+=A,$+=A*M.x,D+=A*M.y);x.x=$/L,x.y=D/L}else{M=x,M.x=M.data.x,M.y=M.data.y;do C+=c[M.data.index];while(M=M.next)}x.value=C}function b(x,C,M,A){if(!x.value)return!0;var L=x.x-t.x,$=x.y-t.y,D=A-C,E=L*L+$*$;if(D*D/h<E)return E<d&&(L===0&&(L=Xi(r),E+=L*L),$===0&&($=Xi(r),E+=$*$),E<f&&(E=Math.sqrt(f*E)),t.vx+=L*x.value*o/E,t.vy+=$*x.value*o/E),!0;if(x.length||E>=d)return;(x.data!==t||x.next)&&(L===0&&(L=Xi(r),E+=L*L),$===0&&($=Xi(r),E+=$*$),E<f&&(E=Math.sqrt(f*E)));do x.data!==t&&(D=c[x.data.index]*o/E,t.vx+=L*D,t.vy+=$*D);while(x=x.next)}return p.initialize=function(x,C){e=x,r=C,v()},p.strength=function(x){return arguments.length?(s=typeof x=="function"?x:Rn(+x),v(),p):s},p.distanceMin=function(x){return arguments.length?(f=x*x,p):Math.sqrt(f)},p.distanceMax=function(x){return arguments.length?(d=x*x,p):Math.sqrt(d)},p.theta=function(x){return arguments.length?(h=x*x,p):Math.sqrt(h)},p}function mpe(e){var t=Rn(.1),r,o,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Rn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Rn(+d),f(),c):e},c}function ype(e){var t=Rn(.1),r,o,s;typeof e!="function"&&(e=Rn(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Rn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Rn(+d),f(),c):e},c}function bpe(){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 M0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function Yi(...e){return e.reduce((t,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(t[o])&&Array.isArray(r[o])?t[o]=Yi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:M0(t[o])&&M0(r[o])?t[o]=Yi(t[o],r[o]):t[o]=r[o])}),t},{})}const kx={mergeArrays:!0};Yi.options=kx;Yi.withOptions=(e,...t)=>{Yi.options={mergeArrays:!0,...e};const r=Yi(...t);return Yi.options=kx,r};function wpe(){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 xpe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Tx(e){e.preventDefault(),e.stopPropagation()}function Cx(e){return typeof e=="number"}function lo(e,t){return Cx(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function _pe(e){return`${e.source.id}-${e.target.id}`}function Ex(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Spe(e){return`url(#${Ex(e.color)})`}function kpe(e){return{size:e,padding:(t,r)=>lo(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const Ax={Arrow:e=>kpe(e)},Tpe=(e,t,r)=>[t/2,r/2],Cpe=(e,t,r)=>[$0(0,t),$0(0,r)];function $0(e,t){return Math.random()*(t-e)+e}const ch={Centered:Tpe,Randomized:Cpe};function Epe(){return{autoResize:!1,callbacks:{},hooks:{},initial:xpe(),nodeRadius:16,marker:Ax.Arrow(4),modifiers:{},positionInitializer:ch.Centered,simulation:{alphas:bpe(),forces:wpe()},zoom:{initial:1,min:.1,max:2}}}function Ape(e={}){return Yi.withOptions({mergeArrays:!1},Epe(),e)}function Lpe({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>Tx(v)).on("dblclick",v=>r?.(v)).on("dblclick.zoom",null).on("pointermove",v=>o?.(v)).on("pointerup",v=>s?.(v)).style("cursor","grab");return e&&p.call(h.transform,up.translate(c,f).scale(d)),p.append("g")}function Mpe({canvas:e,scale:t,xOffset:r,yOffset:o}){e?.attr("transform",`translate(${r},${o})scale(${t})`)}function $pe({config:e,onDragStart:t,onDragEnd:r}){const o=Yfe().filter(s=>s.type==="mousedown"?s.button===0:s.type==="touchstart"?s.touches.length===1:!1).on("start",(s,c)=>{s.active===0&&t(s,c),Un(s.sourceEvent.target).classed("grabbed",!0),c.fx=c.x,c.fy=c.y}).on("drag",(s,c)=>{c.fx=s.x,c.fy=s.y}).on("end",(s,c)=>{s.active===0&&r(s,c),Un(s.sourceEvent.target).classed("grabbed",!1),c.fx=void 0,c.fy=void 0});return e.modifiers.drag?.(o),o}function Npe({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:Ope({links:c},r)}function Ope(e,t){const r=[...Ppe(e,t),...Rpe(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Ppe(e,t){return Lx(e,t,(r,o)=>r.target.id===o.id)}function Rpe(e,t){return Lx(e,t,(r,o)=>r.source.id===o.id)}function Lx(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function uh(e){return e.x??0}function fh(e){return e.y??0}function hp({source:e,target:t}){const r=new $n(uh(e),fh(e)),o=new $n(uh(t),fh(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function Mx({center:e,node:t}){const r=new $n(uh(t),fh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new $n(0,1))),{n:r,c:o}}function $x({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=hp({source:t,target:r}),f=o.add(c.multiply(lo(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function zpe(e){const{start:t,end:r}=$x(e);return`M${t.x},${t.y}
|
|
45
|
+
L${r.x},${r.y}`}function Ipe(e){const{start:t,end:r}=$x(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Dpe({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=hp({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(lo(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(lo(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),m=1.2*c;return`M${p.x},${p.y}
|
|
46
|
+
A${m},${m},0,0,1,${v.x},${v.y}`}function Fpe({center:e,config:t,node:r}){const{n:o,c:s}=Mx({center:e,node:r}),c=lo(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),v=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
|
|
47
|
+
A${c},${c},0,1,0,${v.x},${v.y}`}function Hpe({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=hp({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Bpe({center:e,config:t,node:r}){const{n:o,c:s}=Mx({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*lo(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Rs={line:{labelTransform:Ipe,path:zpe},arc:{labelTransform:Hpe,path:Dpe},reflexive:{labelTransform:Bpe,path:Fpe}};function Wpe(e){return e.append("g").classed("links",!0).selectAll("path")}function qpe({config:e,graph:t,selection:r,showLabels:o}){const s=r?.data(t.links,c=>_pe(c)).join(c=>{const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",p=>Spe(p)).style("stroke",p=>p.color);e.modifiers.link?.(d);const h=f.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),f});return s?.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function jpe(e){Upe(e),Vpe(e)}function Upe({center:e,config:t,graph:r,selection:o}){o?.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Rs.reflexive.path({config:t,node:s.source,center:e}):Nx(r,s.source,s.target)?Rs.arc.path({config:t,source:s.source,target:s.target}):Rs.line.path({config:t,source:s.source,target:s.target}))}function Vpe({config:e,center:t,graph:r,selection:o}){o?.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Rs.reflexive.labelTransform({config:e,node:s.source,center:t}):Nx(r,s.source,s.target)?Rs.arc.labelTransform({config:e,source:s.source,target:s.target}):Rs.line.labelTransform({config:e,source:s.source,target:s.target}))}function Nx(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Gpe(e){return e.append("defs").selectAll("marker")}function Kpe({config:e,graph:t,selection:r}){return r?.data(Xpe(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>Ex(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",Ype(e.marker.path)),s})}function Xpe(e){return[...new Set(e.links.map(t=>t.color))]}function Ype(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function Zpe(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Jpe({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c?.data(r.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const v=p.append("circle").classed("node",!0).attr("r",b=>lo(e,b)).on("contextmenu",(b,x)=>{Tx(b),o(x)}).on("pointerdown",(b,x)=>ege(b,x,s??o)).style("fill",b=>b.color);e.modifiers.node?.(v);const m=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",b=>b.label?b.label.color:null).style("font-size",b=>b.label?b.label.fontSize:null).style("stroke","none").text(b=>b.label?b.label.text:null);return e.modifiers.nodeLabel?.(m),p});return d?.select(".node").classed("focused",h=>h.isFocused),d?.select(".node__label").attr("opacity",f?1:0),d}const Qpe=500;function ege(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>Qpe){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function tge(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function nge({center:e,config:t,graph:r,onTick:o}){const s=gpe(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const p=c.strength;s.force("x",mpe(()=>e().x).strength(p)).force("y",ype(()=>e().y).strength(p))}const f=t.simulation.forces.charge;f&&f.enabled&&s.force("charge",vpe().strength(f.strength));const d=t.simulation.forces.collision;d&&d.enabled&&s.force("collision",ope().radius(p=>d.radiusMultiplier*lo(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&s.force("link",lpe(r.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(h.strength)),s.on("tick",()=>o()),t.modifiers.simulation?.(s),s}function rge({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){const c=Hhe().scaleExtent([r,o]).filter(f=>f.button===0||f.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",f=>s(f)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(c),c}class ige{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(t,r,o){if(this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(sue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return $n.of([this.width,this.height]).divide(2).subtract($n.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(Cx(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){this.markerSelection=Kpe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=qpe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Jpe({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:r=>this.toggleNodeFocus(r),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=nge({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=rge({config:this.config,canvasContainer:()=>Un(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=Lpe({applyZoom:this.scale!==1,container:Un(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Wpe(this.canvas),this.nodeSelection=Zpe(this.canvas),this.markerSelection=Gpe(this.canvas),this.drag=$pe({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(){tge(this.nodeSelection),jpe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),Un(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){Mpe({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=Npe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function N0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function oge(e){return{...e}}function Ox(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function sge(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{const{splits:d,finished:h}=c;if(h){s++;const{raw:v,candidate:m}=c;t.set(v,m);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,r.get(p)?.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function lge(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function age(e){const t=e.map(o=>lge(o)),r=sge(t);return t.map(({raw:o,id:s})=>Ox({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function cge(e,t){return Ox({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 uge(e,t){if(!e)return N0({});const r=age(e.externalized),o=e.inlined.map(d=>cge(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],m=c[p];if(!(v===void 0||m===void 0))return oge({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return N0({nodes:s,links:f})}const fge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},dge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},hge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},pge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},gge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},vge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Px=ot({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Rr("tooltip");return t.state==="pass"?(se(),ye("div",fge)):t.failedSnapshot?ct((se(),ye("div",dge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(se(),ye("div",hge)):t.mode==="todo"?ct((se(),ye("div",pge,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?ct((se(),ye("div",gge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(se(),ye("div",vge))}}}),Ks=lE(),mge=UC(Ks),yge={border:"b base","p-4":""},bge=["innerHTML"],wge=ot({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(se(),ye("div",yge,[Q("div",{"text-xs":"","mb-1":"",class:st(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},ze(t(r.time))+" | "+ze(r.taskName)+" | "+ze(r.type),3),Q("pre",{"data-type":"html",innerHTML:r.content},null,8,bge)]))}}),xge={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},_ge={key:1,p6:""},Sge=ot({__name:"ViewConsoleOutput",setup(e){const t=_e(()=>{const o=Xw.value;if(o){const s=ep(Ks.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(Kl(h))}))}});function r(o){const s=o&&ht.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?ZE(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>t.value?.length?(se(),ye("div",xge,[(se(!0),ye(nt,null,fr(t.value,({taskId:c,type:f,time:d,content:h})=>(se(),ye("div",{key:c,"font-mono":""},[Oe(wge,{"task-name":r(c),type:f,time:d,content:h},null,8,["task-name","type","time","content"])]))),128))])):(se(),ye("div",_ge,[...s[0]||(s[0]=[dt(" Log something in your test and it would print here. (e.g. ",-1),Q("pre",{inline:""},"console.log(foo)",-1),dt(") ",-1)])]))}}),Rx={"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(Rx);var ar=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},vs,Il,Lo;class kge{constructor(...t){vs.set(this,new Map),Il.set(this,new Map),Lo.set(this,new Map);for(const r of t)this.define(r)}define(t,r=!1){for(let[o,s]of Object.entries(t)){o=o.toLowerCase(),s=s.map(d=>d.toLowerCase()),ar(this,Lo,"f").has(o)||ar(this,Lo,"f").set(o,new Set);const c=ar(this,Lo,"f").get(o);let f=!0;for(let d of s){const h=d.startsWith("*");if(d=h?d.slice(1):d,c?.add(d),f&&ar(this,Il,"f").set(o,d),f=!1,h)continue;const p=ar(this,vs,"f").get(d);if(p&&p!=o&&!r)throw new Error(`"${o} -> ${d}" conflicts with "${p} -> ${d}". Pass \`force=true\` to override this definition.`);ar(this,vs,"f").set(d,o)}}return this}getType(t){if(typeof t!="string")return null;const r=t.replace(/^.*[/\\]/s,"").toLowerCase(),o=r.replace(/^.*\./s,"").toLowerCase(),s=r.length<t.length;return!(o.length<r.length-1)&&s?null:ar(this,vs,"f").get(o)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&ar(this,Il,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:ar(this,Lo,"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 ar(this,Lo,"f").values())Object.freeze(t);return this}_getTestState(){return{types:ar(this,vs,"f"),extensions:ar(this,Il,"f")}}}vs=new WeakMap,Il=new WeakMap,Lo=new WeakMap;const Tge=new kge(Rx)._freeze();function xu(e){if(dr)return`/data/${e.path}`;const t=e.contentType??"application/octet-stream";return e.path?`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function zx(e,t){const r=t?Tge.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(r?`.${r}`:"")}function Cge(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}const qc=ot({__name:"CodeMirrorContainer",props:na({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:na(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=Ru(e,"modelValue"),s=pk(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Ue();return ao(async()=>{const d=Tae(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),Mn.value=d,setTimeout(()=>Mn.value.refresh(),100)}),(d,h)=>(se(),ye("div",{relative:"","font-mono":"","text-sm":"",class:st(["codemirror-scrolls",d.saving?"codemirror-busy":void 0])},[Q("textarea",{ref_key:"el",ref:f},null,512)],2))}}),Ege=ot({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=Ue(""),c=en(void 0),f=Ue(!1),d=Ue(!0),h=Ue(!1),p=Ue();_t(()=>r.file,async()=>{if(!h.value){d.value=!0;try{if(!r.file||!r.file?.filepath){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await ht.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(ne){console.error("cannot fetch file",ne)}await Ct(),d.value=!1}},{immediate:!0}),_t(()=>[d.value,h.value,r.file,Rw.value,zw.value],([ne,G,J,P,O])=>{!ne&&!G&&(P!=null?Ct(()=>{const N=p.value,S=N??{line:(P??1)-1,ch:O??0};N?p.value=void 0:(Mn.value?.scrollIntoView(S,100),Ct(()=>{Mn.value?.focus(),Mn.value?.setCursor(S)}))}):Ct(()=>{Mn.value?.focus()}))},{flush:"post"});const v=_e(()=>r.file?.filepath?.split(/\./g).pop()||"js"),m=Ue(),b=_e(()=>{const ne=[];function G(J){J.result?.errors&&ne.push(...J.result.errors),J.type==="suite"&&J.tasks.forEach(G)}return r.file?.tasks.forEach(G),ne}),x=_e(()=>{const ne=[];function G(J){J.type==="test"&&ne.push(...J.annotations),J.type==="suite"&&J.tasks.forEach(G)}return r.file?.tasks.forEach(G),ne}),C=[],M=[],A=[],L=Ue(!1);function $(){A.forEach(([ne,G,J])=>{ne.removeEventListener("click",G),J()}),A.length=0}nw(m,()=>{Mn.value?.refresh()});function D(){f.value=c.value!==Mn.value.getValue()}_t(f,ne=>{o("draft",ne)},{immediate:!0});function E(ne){const J=(ne?.stacks||[]).filter(F=>F.file&&F.file===r.file?.filepath)?.[0];if(!J)return;const P=document.createElement("div");P.className="op80 flex gap-x-2 items-center";const O=document.createElement("pre");O.className="c-red-600 dark:c-red-400",O.textContent=`${" ".repeat(J.column)}^ ${ne.name}: ${ne?.message||""}`,P.appendChild(O);const N=document.createElement("span");N.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",N.tabIndex=0,N.ariaLabel="Open in Editor",qb(N,{content:"Open in Editor",placement:"bottom"},!1);const S=async()=>{await Qh(J.file,J.line,J.column)};N.addEventListener("click",S),P.appendChild(N),A.push([N,S,()=>jh(N)]),M.push(Mn.value.addLineClass(J.line-1,"wrap","bg-red-500/10")),C.push(Mn.value.addLineWidget(J.line-1,P))}function I(ne){if(!ne.location)return;const{line:G,file:J}=ne.location;if(J!==r.file?.filepath)return;const P=document.createElement("div");P.classList.add("wrap","bg-active","py-3","px-6","my-1"),P.role="note";const O=document.createElement("div");O.classList.add("block","text-black","dark:text-white");const N=document.createElement("span");N.textContent=`${ne.type}: `,N.classList.add("font-bold");const S=document.createElement("span");S.classList.add("whitespace-pre"),S.textContent=ne.message.replace(/[^\r]\n/,`\r
|
|
48
|
+
`),O.append(N,S),P.append(O);const F=ne.attachment;if(F?.path||F?.body)if(F.contentType?.startsWith("image/")){const j=document.createElement("a"),oe=document.createElement("img");j.classList.add("inline-block","mt-3"),j.style.maxWidth="50vw";const me=F.path||F.body;typeof me=="string"&&(me.startsWith("http://")||me.startsWith("https://"))?(oe.setAttribute("src",me),j.referrerPolicy="no-referrer"):oe.setAttribute("src",xu(F)),j.target="_blank",j.href=oe.src,j.append(oe),P.append(j)}else{const j=document.createElement("a");j.href=xu(F),j.download=zx(ne.message,F.contentType),j.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const oe=document.createElement("div");oe.classList.add("i-carbon:download","block");const me=document.createElement("span");me.textContent="Download",j.append(oe,me),P.append(j)}C.push(Mn.value.addLineWidget(G-1,P))}const{pause:U,resume:ie}=_t([Mn,b,x,ys],([ne,G,J,P])=>{if(!ne){C.length=0,M.length=0,$();return}P&&(ne.off("changes",D),$(),C.forEach(O=>O.clear()),M.forEach(O=>ne?.removeLineClass(O,"wrap")),C.length=0,M.length=0,setTimeout(()=>{G.forEach(E),J.forEach(I),L.value||ne.clearHistory(),ne.on("changes",D)},100))},{flush:"post"});Gh(()=>[ys.value,h.value,p.value],([ne,G],J)=>{ne&&!G&&J&&J[2]&&Mn.value?.setCursor(J[2])},{debounce:100,flush:"post"});async function re(ne){if(h.value)return;U(),h.value=!0,await Ct();const G=Mn.value;G&&(G.setOption("readOnly",!0),await Ct(),G.refresh()),p.value=G?.getCursor(),G?.off("changes",D),$(),C.forEach(J=>J.clear()),M.forEach(J=>G?.removeLineClass(J,"wrap")),C.length=0,M.length=0;try{L.value=!0,await ht.rpc.saveTestFile(r.file.filepath,ne),c.value=ne,f.value=!1}catch(J){console.error("error saving file",J)}L.value||G?.clearHistory();try{await xm(ys).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await xm(ys).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(E),x.value.forEach(I),G?.on("changes",D),h.value=!1,await Ct(),G&&(G.setOption("readOnly",!1),await Ct(),G.refresh()),ie()}return Ca($),(ne,G)=>(se(),Je(qc,vi({ref_key:"editor",ref:m,modelValue:s.value,"onUpdate:modelValue":G[0]||(G[0]=J=>s.value=J),"h-full":""},{lineNumbers:!0,readOnly:Z(dr),saving:h.value},{mode:v.value,"data-testid":"code-mirror",onSave:re}),null,16,["modelValue","mode"]))}}),pp=ot({__name:"Modal",props:na({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Ru(e,"modelValue"),r=_e(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=_e(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(se(),ye("div",{class:st(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Q("div",{class:st(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),Q("div",{class:st(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[r.value]]),style:Qt(t.value?{}:{transform:o.value})},[wn(c.$slots,"default")],6)],2))}}),Age={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Lge={"p-4":"",relative:""},Mge={op50:"","font-mono":"","text-sm":""},$ge={key:0,"p-5":""},Nge={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Oge={key:0},Pge={p:"x3 y-1","bg-overlay":"",border:"base b t"},Rge=ot({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=KC(()=>ht.rpc.getTransformResult(r.projectName,r.id,!!Kn)),c=_e(()=>r.id?.split(/\./g).pop()||"js"),f=_e(()=>s.value?.source?.trim()||""),d=_e(()=>s.value?.code?.replace(/\/\/# sourceMappingURL=.*\n/,"").trim()||""),h=_e(()=>({mappings:s.value?.map?.mappings??"",version:s.value?.map?.version}));return Jb("Escape",()=>{o("close")}),(p,v)=>(se(),ye("div",Age,[Q("div",Lge,[v[1]||(v[1]=Q("p",null,"Module Info",-1)),Q("p",Mge,ze(p.id),1),Oe(Et,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=m=>o("close"))})]),Z(s)?(se(),ye(nt,{key:1},[Q("div",Nge,[v[2]||(v[2]=Q("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=Q("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Oe(qc,vi({"h-full":"","model-value":f.value,"read-only":""},{lineNumbers:!0},{mode:c.value}),null,16,["model-value","mode"]),Oe(qc,vi({"h-full":"","model-value":d.value,"read-only":""},{lineNumbers:!0},{mode:c.value}),null,16,["model-value","mode"])]),h.value.mappings!==""?(se(),ye("div",Oge,[Q("div",Pge," Source map (v"+ze(h.value.version)+") ",1),Oe(qc,vi({"model-value":h.value.mappings,"read-only":""},{lineNumbers:!0},{mode:c.value}),null,16,["model-value","mode"])])):qe("",!0)],64)):(se(),ye("div",$ge," No transform result found for this module. "))]))}}),zge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Ige={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Dge={flex:"~ gap-1","items-center":"","select-none":""},Fge=["id","checked","onChange"],Hge=["for"],Bge=ot({__name:"ViewModuleGraph",props:na({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=Ru(e,"modelValue"),{graph:o}=FS(t),s=Ue(),c=Ue(!1),f=Ue(),d=Ue();zh(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),ao(()=>{v()}),Ou(()=>{d.value?.shutdown()}),_t(o,()=>v());function h(x,C){d.value?.filterNodesByType(C,x)}function p(x){f.value=x,c.value=!0}function v(x=!1){if(d.value?.shutdown(),x&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new ige(s.value,o.value,Ape({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:C,newWidth:M})=>C===0&&M===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:Ax.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?ch.Randomized:ch.Centered,zoom:{min:.5,max:2}})))}const m=x=>x.button===0;function b(x){if(dr)return;let C=0,M=0,A=0;x.on("pointerdown",(L,$)=>{$.type!=="external"&&(!$.x||!$.y||!m(L)||(C=$.x,M=$.y,A=Date.now()))}).on("pointerup",(L,$)=>{if($.type==="external"||!$.x||!$.y||!m(L)||Date.now()-A>500)return;const D=$.x-C,E=$.y-M;D**2+E**2<100&&p($.id)})}return(x,C)=>{const M=Rr("tooltip");return se(),ye("div",zge,[Q("div",null,[Q("div",Ige,[Q("div",Dge,[ct(Q("input",{id:"hide-node-modules","onUpdate:modelValue":C[0]||(C[0]=A=>r.value=A),type:"checkbox"},null,512),[[xb,r.value]]),C[4]||(C[4]=Q("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(se(!0),ye(nt,null,fr(d.value?.nodeTypes.sort(),A=>(se(),ye("div",{key:A,flex:"~ gap-1","items-center":"","select-none":""},[Q("input",{id:`type-${A}`,type:"checkbox",checked:d.value?.nodeTypeFilter.includes(A),onChange:L=>h(A,L.target.checked)},null,40,Fge),Q("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${A}`,"border-b-2":"",style:Qt({"border-color":`var(--color-node-${A})`})},ze(A)+" Modules",13,Hge)]))),128)),C[5]||(C[5]=Q("div",{"flex-auto":""},null,-1)),Q("div",null,[ct(Oe(Et,{icon:"i-carbon-reset",onClick:C[1]||(C[1]=A=>v(!0))},null,512),[[M,"Reset",void 0,{bottom:!0}]])])])]),Q("div",{ref_key:"el",ref:s},null,512),Oe(pp,{modelValue:c.value,"onUpdate:modelValue":C[3]||(C[3]=A=>c.value=A),direction:"right"},{default:it(()=>[f.value?(se(),Je(Dh,{key:0},{default:it(()=>[Oe(Rge,{id:f.value,"project-name":x.projectName,onClose:C[2]||(C[2]=A=>c.value=!1)},null,8,["id","project-name"])]),_:1})):qe("",!0)]),_:1},8,["modelValue"])])}}});function Ix(e){const t=e.meta?.failScreenshotPath;t&&fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`)}function Dx(){const e=Ue(!1),t=Ue(Date.now()),r=Ue(),o=_e(()=>{const c=r.value?.id,f=t.value;return c?`/__screenshot-error?id=${encodeURIComponent(c)}&t=${f}`:void 0});function s(c){r.value=c,t.value=Date.now(),e.value=!0}return{currentTask:r,showScreenshot:e,currentScreenshotUrl:o,showScreenshotModal:s}}const Wge={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},qge={"p-4":"",relative:"",border:"base b"},jge={op50:"","font-mono":"","text-sm":""},Uge={op50:"","font-mono":"","text-sm":""},Vge={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},Gge=["src","alt"],Kge={key:1},Xge=ot({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Jb("Escape",()=>{r("close")}),(o,s)=>(se(),ye("div",Wge,[Q("div",qge,[s[1]||(s[1]=Q("p",null,"Screenshot error",-1)),Q("p",jge,ze(o.file),1),Q("p",Uge,ze(o.name),1),Oe(Et,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=c=>r("close"))})]),Q("div",Vge,[o.url?(se(),ye("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,Gge)):(se(),ye("div",Kge," Something was wrong, the image cannot be resolved. "))])]))}}),Fx=ki(Xge,[["__scopeId","data-v-08ce44b7"]]),Yge={class:"scrolls scrolls-rounded task-error"},Zge=["onClickPassive"],Jge=["innerHTML"],Qge=ot({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function r(d){return d.startsWith(t.root)?d.slice(t.root.length):d}const o=_e(()=>ep(Ks.value)),s=_e(()=>!!t.error?.diff),c=_e(()=>t.error.diff?o.value.toHtml(Kl(t.error.diff)):void 0);function f(d){return bae(d.file,t.filename)?Cae(t.fileId,d):Qh(d.file,d.line,d.column)}return(d,h)=>{const p=Rr("tooltip");return se(),ye("div",Yge,[Q("pre",null,[Q("b",null,ze(d.error.name),1),dt(": "+ze(d.error.message),1)]),(se(!0),ye(nt,null,fr(d.error.stacks,(v,m)=>(se(),ye("div",{key:m,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Q("pre",null," - "+ze(r(v.file))+":"+ze(v.line)+":"+ze(v.column),1),ct(Q("div",{class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:b=>f(v)},null,40,Zge),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),s.value?(se(),ye("pre",{key:0,"data-testid":"diff",innerHTML:c.value},null,8,Jge)):qe("",!0)])}}}),Hx=ki(Qge,[["__scopeId","data-v-1fcfe7a4"]]),eve={"h-full":"",class:"scrolls"},tve=["id"],nve={flex:"~ gap-2 items-center"},rve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},ive=["innerHTML"],ove={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},sve=ot({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(h,p){return h.result?.state!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(v=>r(v,p+1))]}const o=_e(()=>{const h=t.file,p=h.tasks?.flatMap(b=>r(b,0))??[],v=h.result;if(v?.errors?.[0]){const b={id:h.id,file:h,name:h.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:v};p.unshift(b)}return p.length>0?Pw(Ks.value,p):p}),{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=Dx();return(h,p)=>{const v=Rr("tooltip");return se(),ye("div",eve,[o.value.length?(se(!0),ye(nt,{key:0},fr(o.value,m=>(se(),ye("div",{id:m.id,key:m.id},[Q("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Qt({"margin-left":`${m.result?.htmlError?.5:2*m.level+.5}rem`})},[Q("div",nve,[Q("span",null,ze(m.name),1),Z(Kn)&&m.meta?.failScreenshotPath?(se(),ye(nt,{key:0},[ct(Oe(Et,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b=>Z(f)(m)},null,8,["onClick"]),[[v,"View screenshot error",void 0,{bottom:!0}]]),ct(Oe(Et,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b=>Z(Ix)(m)},null,8,["onClick"]),[[v,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):qe("",!0)]),m.result?.htmlError?(se(),ye("div",rve,[Q("pre",{innerHTML:m.result.htmlError},null,8,ive)])):m.result?.errors?(se(!0),ye(nt,{key:1},fr(m.result.errors,(b,x)=>(se(),Je(Hx,{key:x,error:b,filename:h.file.name,root:Z(Ws).root,"file-id":h.file.id},null,8,["error","filename","root","file-id"]))),128)):qe("",!0)],4)],8,tve))),128)):(se(),ye("div",ove," All tests passed in this file ")),Z(Kn)?(se(),Je(pp,{key:2,modelValue:Z(c),"onUpdate:modelValue":p[1]||(p[1]=m=>Nt(c)?c.value=m:null),direction:"right"},{default:it(()=>[Z(s)?(se(),Je(Dh,{key:0},{default:it(()=>[Oe(Fx,{file:Z(s).file.filepath,name:Z(s).name,url:Z(d),onClose:p[0]||(p[0]=m=>c.value=!1)},null,8,["file","name","url"])]),_:1})):qe("",!0)]),_:1},8,["modelValue"])):qe("",!0)])}}}),lve=ki(sve,[["__scopeId","data-v-677d9ffc"]]),ave=["href","referrerPolicy"],cve=["src"],uve=ot({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,r=_e(()=>{const o=t.annotation.attachment,s=o.path||o.body;return typeof s=="string"&&(s.startsWith("http://")||s.startsWith("https://"))?s:xu(o)});return(o,s)=>o.annotation.attachment&&o.annotation.attachment.contentType?.startsWith("image/")?(se(),ye("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:r.value,referrerPolicy:Z(Cge)(o.annotation.attachment)?"no-referrer":void 0},[Q("img",{src:r.value},null,8,cve)],8,ave)):qe("",!0)}}),fve={"h-full":"",class:"scrolls"},dve={key:0},hve={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},pve={flex:"~ gap-2 items-center"},gve={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},vve=["innerHTML"],mve={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},yve={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},bve={class:"flex gap-2","overflow-hidden":""},wve={class:"font-bold","ws-nowrap":"",truncate:""},xve=["href","download"],_ve=["onClick"],Sve={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},kve={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Tve={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":""},Cve={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},Eve={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},Ave=ot({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,r=_e(()=>!t.test.result||!t.test.result.errors?.length?null:Pw(Ks.value,[t.test])[0]);function o(m){return Eae(t.test,m)}const{currentTask:s,showScreenshot:c,showScreenshotModal:f,currentScreenshotUrl:d}=Dx();function h(m){return`${cw(Ws.value.root,m.file)}:${m.line}:${m.column}`}const p=new Set(["benchmark","typecheck","failScreenshotPath"]),v=_e(()=>Object.entries(t.test.meta).filter(([m])=>!p.has(m)));return(m,b)=>{const x=Rr("tooltip");return se(),ye("div",fve,[r.value?(se(),ye("div",dve,[Q("div",hve,[Q("div",pve,[Z(Kn)&&m.test.meta?.failScreenshotPath?(se(),ye(nt,{key:0},[ct(Oe(Et,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:b[0]||(b[0]=C=>Z(f)(m.test))},null,512),[[x,"View screenshot error",void 0,{bottom:!0}]]),ct(Oe(Et,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:b[1]||(b[1]=C=>Z(Ix)(m.test))},null,512),[[x,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):qe("",!0)]),m.test.result?.htmlError?(se(),ye("div",gve,[Q("pre",{innerHTML:m.test.result.htmlError},null,8,vve)])):m.test.result?.errors?(se(!0),ye(nt,{key:1},fr(m.test.result.errors,(C,M)=>(se(),Je(Hx,{key:M,"file-id":m.test.file.id,error:C,filename:m.test.file.name,root:Z(Ws).root},null,8,["file-id","error","filename","root"]))),128)):qe("",!0)])])):(se(),ye("div",mve," All tests passed in this file ")),m.test.annotations.length?(se(),ye(nt,{key:2},[b[5]||(b[5]=Q("h1",{"m-2":""}," Test Annotations ",-1)),(se(!0),ye(nt,null,fr(m.test.annotations,C=>(se(),ye("div",{key:C.type+C.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[Q("div",yve,[Q("div",bve,[Q("span",wve,ze(C.type),1),C.attachment&&!C.attachment.contentType?.startsWith("image/")?(se(),ye("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:Z(xu)(C.attachment),download:Z(zx)(C.message,C.attachment.contentType)},[...b[4]||(b[4]=[Q("span",{class:"i-carbon:download block"},null,-1),dt(" Download ",-1)])],8,xve)):qe("",!0)]),Q("div",null,[C.location&&C.location.file===m.test.file.filepath?ct((se(),ye("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:M=>o(C)},[dt(ze(h(C.location)),1)],8,_ve)),[[x,"Open in Editor",void 0,{bottom:!0}]]):C.location&&C.location.file!==m.test.file.filepath?(se(),ye("span",Sve,ze(h(C.location)),1)):qe("",!0)])]),Q("div",kve,ze(C.message),1),Oe(uve,{annotation:C},null,8,["annotation"])]))),128))],64)):qe("",!0),v.value.length?(se(),ye(nt,{key:3},[b[6]||(b[6]=Q("h1",{"m-2":""}," Test Meta ",-1)),Q("div",Tve,[(se(!0),ye(nt,null,fr(v.value,([C,M])=>(se(),ye(nt,{key:C},[Q("div",Cve,ze(C),1),Q("pre",Eve,ze(M),1)],64))),128))])],64)):qe("",!0),Z(Kn)?(se(),Je(pp,{key:4,modelValue:Z(c),"onUpdate:modelValue":b[3]||(b[3]=C=>Nt(c)?c.value=C:null),direction:"right"},{default:it(()=>[Z(s)?(se(),Je(Dh,{key:0},{default:it(()=>[Oe(Fx,{file:Z(s).file.filepath,name:Z(s).name,url:Z(d),onClose:b[2]||(b[2]=C=>c.value=!1)},null,8,["file","name","url"])]),_:1})):qe("",!0)]),_:1},8,["modelValue"])):qe("",!0)])}}}),Lve=ki(Ave,[["__scopeId","data-v-cf8dfa39"]]),Mve={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},$ve={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Nve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Ove={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Pve={class:"flex text-lg"},Rve={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},zve={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Ive={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Dve={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Fve=["flex-1"],O0=ot({__name:"FileDetails",setup(e){const t=Ue({nodes:[],links:[]}),r=Ue(!1),o=Ue(!1),s=Ue(!1),c=Ue(void 0),f=Ue(!0),d=_e(()=>Ms.value?ht.state.idMap.get(Ms.value):void 0),h=_e(()=>{const E=qt.value;if(!(!E||!E.filepath))return{filepath:E.filepath,projectName:E.file.projectName||""}}),p=_e(()=>qt.value&&Jh(qt.value)),v=_e(()=>!!qt.value?.meta?.typecheck);function m(){const E=qt.value?.filepath;E&&fetch(`/__open-in-editor?file=${encodeURIComponent(E)}`)}function b(E){E==="graph"&&(o.value=!0),cn.value=E}const x=_e(()=>Xw.value?.reduce((E,{size:I})=>E+I,0)??0);function C(E){r.value=E}const M=/[/\\]node_modules[/\\]/;async function A(E=!1){if(!(s.value||h.value?.filepath===c.value&&!E)){s.value=!0,await Ct();try{const I=h.value;if(!I){s.value=!1;return}if(E||!c.value||I.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let U=await ht.rpc.getModuleGraph(I.projectName,I.filepath,!!Kn);f.value&&(dr&&(U=typeof window.structuredClone<"u"?window.structuredClone(U):uA(U)),U.inlined=U.inlined.filter(ie=>!M.test(ie)),U.externalized=U.externalized.filter(ie=>!M.test(ie))),t.value=uge(U,I.filepath),c.value=I.filepath}b("graph")}finally{await new Promise(I=>setTimeout(I,100)),s.value=!1}}}Gh(()=>[h.value,cn.value,f.value],([,E,I],U)=>{E==="graph"&&A(U&&I!==U[2])},{debounce:100,immediate:!0});const L=_e(()=>{const E=qt.value?.file.projectName||"";return Ae.colors.get(E)||xw(qt.value?.file.projectName)}),$=_e(()=>_w(L.value)),D=_e(()=>{const E=Ms.value;if(!E)return qt.value?.name;const I=[];let U=ht.state.idMap.get(E);for(;U;)I.push(U.name),U=U.suite?U.suite:U===U.file?void 0:U.file;return I.reverse().join(" > ")});return(E,I)=>{const U=Rr("tooltip");return Z(qt)?(se(),ye("div",Mve,[Q("div",null,[Q("div",$ve,[Oe(Px,{state:Z(qt).result?.state,mode:Z(qt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),v.value?ct((se(),ye("div",Nve,null,512)),[[U,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):qe("",!0),Z(qt)?.file.projectName?(se(),ye("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:Qt({backgroundColor:L.value,color:$.value})},ze(Z(qt).file.projectName),5)):qe("",!0),Q("div",Ove,ze(D.value),1),Q("div",Pve,[Z(dr)?qe("",!0):ct((se(),Je(Et,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!Z(qt)?.filepath,onClick:m},null,8,["disabled"])),[[U,"Open in editor",void 0,{bottom:!0}]])])]),Q("div",Rve,[Q("button",{"tab-button":"",class:st(["flex items-center gap-2",{"tab-button-active":Z(cn)==null}]),"data-testid":"btn-report",onClick:I[0]||(I[0]=ie=>b(null))},[...I[5]||(I[5]=[Q("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),dt(" Report ",-1)])],2),Q("button",{"tab-button":"","data-testid":"btn-graph",class:st(["flex items-center gap-2",{"tab-button-active":Z(cn)==="graph"}]),onClick:I[1]||(I[1]=ie=>b("graph"))},[s.value?(se(),ye("span",zve)):(se(),ye("span",Ive)),I[6]||(I[6]=dt(" Module Graph ",-1))],2),Q("button",{"tab-button":"","data-testid":"btn-code",class:st(["flex items-center gap-2",{"tab-button-active":Z(cn)==="editor"}]),onClick:I[2]||(I[2]=ie=>b("editor"))},[I[7]||(I[7]=Q("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),dt(" "+ze(r.value?"* ":"")+"Code ",1)],2),Q("button",{"tab-button":"","data-testid":"btn-console",class:st(["flex items-center gap-2",{"tab-button-active":Z(cn)==="console",op20:Z(cn)!=="console"&&x.value===0}]),onClick:I[3]||(I[3]=ie=>b("console"))},[I[8]||(I[8]=Q("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),dt(" Console ("+ze(x.value)+") ",1)],2)])]),Q("div",Dve,[o.value?(se(),ye("div",{key:0,"flex-1":Z(cn)==="graph"&&""},[ct(Oe(Bge,{modelValue:f.value,"onUpdate:modelValue":I[4]||(I[4]=ie=>f.value=ie),graph:t.value,"data-testid":"graph","project-name":Z(qt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Ki,Z(cn)==="graph"&&!s.value]])],8,Fve)):qe("",!0),Z(cn)==="editor"?(se(),Je(Ege,{key:Z(qt).id,file:Z(qt),"data-testid":"editor",onDraft:C},null,8,["file"])):Z(cn)==="console"?(se(),Je(Sge,{key:2,file:Z(qt),"data-testid":"console"},null,8,["file"])):!Z(cn)&&!d.value&&Z(qt)?(se(),Je(lve,{key:3,file:Z(qt),"data-testid":"report"},null,8,["file"])):!Z(cn)&&d.value?(se(),Je(Lve,{key:4,test:d.value,"data-testid":"report"},null,8,["test"])):qe("",!0)])])):qe("",!0)}}}),Hve=""+new URL("../favicon.svg",import.meta.url).href;function Bve(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let jc;function dh(){dh.init||(dh.init=!0,jc=Bve()!==-1)}var Zu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){dh(),Ct(()=>{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",jc&&this.$el.appendChild(e),e.data="about:blank",jc||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&&(!jc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Wve=Py();Ny("data-v-b329ee4c");const qve={class:"resize-observer",tabindex:"-1"};Oy();const jve=Wve((e,t,r,o,s,c)=>(se(),Je("div",qve)));Zu.render=jve;Zu.__scopeId="data-v-b329ee4c";Zu.__file="src/components/ResizeObserver.vue";function Uc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Uc=function(t){return typeof t}:Uc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uc(e)}function Uve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vve(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Gve(e,t,r){return t&&Vve(e.prototype,t),e}function P0(e){return Kve(e)||Xve(e)||Yve(e)||Zve()}function Kve(e){if(Array.isArray(e))return hh(e)}function Xve(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Yve(e,t){if(e){if(typeof e=="string")return hh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hh(e,t)}}function hh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function Zve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
49
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jve(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Qve(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(P0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(P0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function Bx(e,t){if(e===t)return!0;if(Uc(e)==="object"){for(var r in e)if(!Bx(e[r],t[r]))return!1;return!0}return!1}var eme=(function(){function e(t,r,o){Uve(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return Gve(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Jve(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=Qve(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),Ct(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function Wx(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new eme(e,o,r);e._vue_visibilityState=s}}function tme(e,t,r){var o=t.value,s=t.oldValue;if(!Bx(o,s)){var c=e._vue_visibilityState;if(!o){qx(e);return}c?c.createObserver(o,r):Wx(e,{value:o},r)}}function qx(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var nme={beforeMount:Wx,updated:tme,unmounted:qx},rme={itemsLimit:1e3},ime=/(auto|scroll)/;function jx(e,t){return e.parentNode===null?t:jx(e.parentNode,t.concat([e]))}var xd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},ome=function(t){return xd(t,"overflow")+xd(t,"overflow-y")+xd(t,"overflow-x")},sme=function(t){return ime.test(ome(t))};function R0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=jx(e.parentNode,[]),r=0;r<t.length;r+=1)if(sme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function ph(e){"@babel/helpers - typeof";return ph=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},ph(e)}var lme={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 ame(){return this.items.length&&ph(this.items[0])!=="object"}var gh=!1;if(typeof window<"u"){gh=!1;try{var cme=Object.defineProperty({},"passive",{get:function(){gh=!0}});window.addEventListener("test",null,cme)}catch{}}let ume=0;var gp={name:"RecycleScroller",components:{ResizeObserver:Zu},directives:{ObserveVisibility:nme},props:{...lme,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:ame,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=Mh({id:ume++,index:t,used:!0,key:o,type:s}),f=Eh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,x=this.pool,C=this.itemIndexByKey;let M,A,L,$,D;if(!p)M=A=$=D=L=0;else if(this.$_prerender)M=$=0,A=D=Math.min(this.prerender,h.length),L=null;else{const G=this.getScroll();if(t){let O=G.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),r===null&&O<c||O<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=G.start;const J=this.buffer;G.start-=J,G.end+=J;let P=0;if(this.$refs.before&&(P=this.$refs.before.scrollHeight,G.start-=P),this.$refs.after){const O=this.$refs.after.scrollHeight;G.end+=O}if(r===null){let O,N=0,S=p-1,F=~~(p/2),j;do j=F,O=v[F].accumulator,O<G.start?N=F:F<p-1&&v[F+1].accumulator>G.start&&(S=F),F=~~((N+S)/2);while(F!==j);for(F<0&&(F=0),M=F,L=v[p-1].accumulator,A=F;A<p&&v[A].accumulator<G.end;A++);for(A===-1?A=h.length-1:(A++,A>p&&(A=p)),$=M;$<p&&P+v[$].accumulator<G.start;$++);for(D=$;D<p&&P+v[D].accumulator<G.end;D++);}else{M=~~(G.start/r*o);const O=M%o;M-=O,A=Math.ceil(G.end/r*o),$=Math.max(0,Math.floor((G.start-P)/r*o)),D=Math.floor((G.end-P)/r*o),M<0&&(M=0),A>p&&(A=p),$<0&&($=0),D>p&&(D=p),L=Math.ceil(p/o)*r}}A-M>rme.itemsLimit&&this.itemsLimitError(),this.totalSize=L;let E;const I=M<=this.$_endIndex&&A>=this.$_startIndex;if(I)for(let G=0,J=x.length;G<J;G++)E=x[G],E.nr.used&&(e&&(E.nr.index=C[E.item[d]]),(E.nr.index==null||E.nr.index<M||E.nr.index>=A)&&this.unuseView(E));const U=I?null:new Map;let ie,re,ne;for(let G=M;G<A;G++){ie=h[G];const J=d?ie[d]:ie;if(J==null)throw new Error(`Key is ${J} on item (keyField is '${d}')`);if(E=m.get(J),!r&&!v[G].size){E&&this.unuseView(E);continue}re=ie[f];let P=b.get(re),O=!1;if(!E)I?P&&P.length?E=P.pop():E=this.addView(x,G,ie,J,re):(ne=U.get(re)||0,(!P||ne>=P.length)&&(E=this.addView(x,G,ie,J,re),this.unuseView(E,!0),P=b.get(re)),E=P[ne],U.set(re,ne+1)),m.delete(E.nr.key),E.nr.used=!0,E.nr.index=G,E.nr.key=J,E.nr.type=re,m.set(J,E),O=!0;else if(!E.nr.used&&(E.nr.used=!0,O=!0,P)){const N=P.indexOf(E);N!==-1&&P.splice(N,1)}E.item=ie,O&&(G===h.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),r===null?(E.position=v[G-1].accumulator,E.offset=0):(E.position=Math.floor(G/o)*r,E.offset=G%o*s)}return this.$_startIndex=M,this.$_endIndex=A,this.emitUpdate&&this.$emit("update",M,A,$,D),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:I}},getListenerTarget(){let e=R0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,gh?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=R0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const fme={key:0,ref:"before",class:"vue-recycle-scroller__slot"},dme={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function hme(e,t,r,o,s,c){const f=zo("ResizeObserver"),d=Rr("observe-visibility");return ct((se(),ye("div",{class:st(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(se(),ye("div",fme,[wn(e.$slots,"before")],512)):qe("v-if",!0),(se(),Je($d(r.listTag),{ref:"wrapper",style:Qt({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:st(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:it(()=>[(se(!0),ye(nt,null,fr(s.pool,h=>(se(),Je($d(r.itemTag),vi({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},fk(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:it(()=>[wn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),wn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(se(),ye("div",dme,[wn(e.$slots,"after")],512)):qe("v-if",!0),Oe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}gp.render=hme;gp.__file="src/components/RecycleScroller.vue";function pme(e){const t=_e(()=>Xd.value?!1:!Ze.onlyTests),r=_e(()=>qn.value===""),o=Ue(qn.value);Gh(()=>qn.value,h=>{o.value=h?.trim()??""},{debounce:256});function s(h){qn.value="",h&&e.value?.focus()}function c(h){Ze.failed=!1,Ze.success=!1,Ze.skipped=!1,Ze.onlyTests=!1,h&&e.value?.focus()}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Hs.value&&(fn.value.search=h?.trim()??"",fn.value.failed=p,fn.value.success=v,fn.value.skipped=m,fn.value.onlyTests=b)}return _t(()=>[o.value,Ze.failed,Ze.success,Ze.skipped,Ze.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ae.filterNodes()},{flush:"post"}),_t(()=>Or.value.length,h=>{h&&(fn.value.expandAll=void 0)},{flush:"post"}),{initialized:Hs,filter:Ze,search:qn,disableFilter:t,isFiltered:ww,isFilteredByStatus:Xd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Vu,testsTotal:pA,uiEntries:Xn}}const gme=["open"],vme=ot({__name:"DetailsPanel",props:{color:{}},setup(e){const t=Ue(!0);return(r,o)=>(se(),ye("div",{open:t.value,class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[Q("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:st(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=Q("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),wn(r.$slots,"summary",{open:t.value}),o[2]||(o[2]=Q("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),wn(r.$slots,"default")],40,gme))}}),mme={"flex-1":"","ms-2":"","select-none":""},$c=ot({__name:"FilterStatus",props:na({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Ru(e,"modelValue");return(r,o)=>(se(),ye("label",vi({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=zc(s=>t.value=!t.value,["prevent"]))}),[Q("span",{class:st([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),ct(Q("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[xb,t.value]]),Q("span",mme,ze(r.label),1)],16))}}),yme={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},bme=ot({__name:"IconAction",props:{icon:{}},setup(e){return(t,r)=>(se(),ye("button",yme,[Q("span",{block:"",class:st([t.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),wme=["aria-label","data-current"],xme={key:1,"w-4":""},_me={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Sme={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},kme={"text-sm":"",truncate:"","font-light":""},Tme=["text","innerHTML"],Cme={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Eme={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Ame={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},Lme={key:1},Mme=ot({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=_e(()=>ht.state.idMap.get(e.taskId)),r=_e(()=>{if(dr)return!1;const A=t.value;return A&&Jh(A)});function o(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?Ae.collapseNode(e.taskId):Ae.expandNode(e.taskId)}async function s(A){e.onItemClick?.(A),ws.value&&(hu.value=!0,await Ct()),e.type==="file"?await np([A.file]):await ace(A)}function c(A){return ht.rpc.updateSnapshot(A.file)}const f=_e(()=>e.indent<=0?[]:Array.from({length:e.indent},(A,L)=>`${e.taskId}-${L}`)),d=_e(()=>{const A=f.value,L=[];return(e.type==="file"||e.type==="suite")&&L.push("min-content"),L.push("min-content"),e.type==="suite"&&e.typecheck&&L.push("min-content"),L.push("minmax(0, 1fr)"),L.push("min-content"),`grid-template-columns: ${A.map(()=>"1rem").join(" ")} ${L.join(" ")};`}),h=_e(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=_e(()=>bw(e.name)),v=_e(()=>{const A=hA.value,L=p.value;return A?L.replace(A,$=>`<span class="highlight">${$}</span>`):L}),m=_e(()=>e.type!=="file"&&e.disableTaskLocation),b=_e(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),x=_e(()=>m.value?"color-red5 dark:color-#f43f5e":null);function C(){const A=t.value;e.type==="file"?e.onItemClick?.(A):Fw(A)}const M=_e(()=>_w(e.projectNameColor));return(A,L)=>{const $=Rr("tooltip");return t.value?(se(),ye("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:Qt(d.value),"aria-label":A.name,"data-current":A.current,onClick:L[2]||(L[2]=D=>o())},[A.indent>0?(se(!0),ye(nt,{key:0},fr(f.value,D=>(se(),ye("div",{key:D,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):qe("",!0),A.type==="file"||A.type==="suite"?(se(),ye("div",xme,[Q("div",{class:st(A.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):qe("",!0),Oe(Px,{state:A.state,mode:t.value.mode,"failed-snapshot":r.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),Q("div",_me,[A.type==="file"&&A.typecheck?ct((se(),ye("div",Sme,null,512)),[[$,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):qe("",!0),Q("span",kme,[A.type==="file"&&A.projectName?(se(),ye("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:Qt({backgroundColor:A.projectNameColor,color:M.value})},ze(A.projectName),5)):qe("",!0),Q("span",{text:A.state==="fail"?"red-500":"",innerHTML:v.value},null,8,Tme)]),typeof A.duration=="number"?(se(),ye("span",Cme,ze(A.duration>0?A.duration:"< 1")+"ms ",1)):qe("",!0)]),Q("div",Eme,[!Z(dr)&&r.value?ct((se(),Je(bme,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:L[0]||(L[0]=zc(D=>c(t.value),["prevent","stop"]))},null,512)),[[$,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):qe("",!0),Oe(Z(jb),{placement:"bottom",class:st(["w-1.4em h-1.4em op100 rounded flex",x.value])},{popper:it(()=>[m.value?(se(),ye("div",Ame,[L[5]||(L[5]=Q("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),Q("div",null,[dt(ze(b.value)+": this feature is not available, you have disabled ",1),L[3]||(L[3]=Q("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),L[4]||(L[4]=dt(" in your configuration file.",-1))]),L[6]||(L[6]=Q("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(se(),ye("div",Lme,ze(b.value),1))]),default:it(()=>[Oe(Et,{"data-testid":"btn-open-details",icon:A.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:zc(C,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),Z(dr)?qe("",!0):ct((se(),Je(Et,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green5":"",onClick:L[1]||(L[1]=zc(D=>s(t.value),["prevent","stop"]))},null,8,["title"])),[[$,h.value,void 0,{bottom:!0}]])])],12,wme)):qe("",!0)}}}),$me=ki(Mme,[["__scopeId","data-v-58d301d8"]]),Nme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Ome={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Pme=["op"],Rme={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},zme={"text-red5":""},Ime={"text-yellow5":""},Dme={"text-green5":""},Fme={class:"text-purple5:50"},Hme={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Bme=["disabled"],Wme=["disabled"],qme={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},jme=ot({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=_e(()=>Ws.value.includeTaskLocation),s=Ue(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:x,clearFilter:C,filteredFiles:M,testsTotal:A,uiEntries:L}=pme(s),$=Ue("grid-cols-2"),D=Ue("grid-col-span-2"),E=Ue();return nw(()=>E.value,([{contentRect:I}])=>{I.width<420?($.value="grid-cols-2",D.value="grid-col-span-2"):($.value="grid-cols-4",D.value="grid-col-span-4")}),(I,U)=>{const ie=Rr("tooltip");return se(),ye("div",{ref_key:"testExplorerRef",ref:E,h:"full",flex:"~ col"},[Q("div",null,[Q("div",Nme,[wn(I.$slots,"header",{filteredFiles:Z(p)||Z(v)?Z(M):void 0})]),Q("div",Ome,[U[13]||(U[13]=Q("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),ct(Q("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":U[0]||(U[0]=re=>Nt(d)?d.value=re:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:Z(d).length?"100":"50",onKeydown:[U[1]||(U[1]=Hd(re=>Z(x)(!1),["esc"])),U[2]||(U[2]=Hd(re=>r("run",Z(p)||Z(v)?Z(M):void 0),["enter"]))]},null,40,Pme),[[MT,Z(d)]]),ct(Oe(Et,{disabled:Z(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[3]||(U[3]=re=>Z(x)(!0))},null,8,["disabled"]),[[ie,"Clear search",void 0,{bottom:!0}]])]),Q("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:st($.value)},[Q("div",{class:st(D.value),flex:"~ gap-2 items-center"},[U[14]||(U[14]=Q("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),U[15]||(U[15]=Q("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),ct(Oe(Et,{disabled:Z(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[4]||(U[4]=re=>Z(C)(!1))},null,8,["disabled"]),[[ie,"Clear Filter",void 0,{bottom:!0}]])],2),Oe($c,{modelValue:Z(f).failed,"onUpdate:modelValue":U[5]||(U[5]=re=>Z(f).failed=re),label:"Fail"},null,8,["modelValue"]),Oe($c,{modelValue:Z(f).success,"onUpdate:modelValue":U[6]||(U[6]=re=>Z(f).success=re),label:"Pass"},null,8,["modelValue"]),Oe($c,{modelValue:Z(f).skipped,"onUpdate:modelValue":U[7]||(U[7]=re=>Z(f).skipped=re),label:"Skip"},null,8,["modelValue"]),Oe($c,{modelValue:Z(f).onlyTests,"onUpdate:modelValue":U[8]||(U[8]=re=>Z(f).onlyTests=re),label:"Only Tests"},null,8,["modelValue"])],2)]),Q("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:U[12]||(U[12]=(...re)=>Z(mm)&&Z(mm)(...re))},[Oe(vme,null,uk({default:it(()=>[(Z(p)||Z(v))&&Z(L).length===0?(se(),ye(nt,{key:0},[Z(c)?(se(),ye("div",Hme,[U[18]||(U[18]=Q("div",{op30:""}," No matched test ",-1)),Q("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(Z(m)?null:"hover:op100"),disabled:Z(m),onClickPassive:U[9]||(U[9]=re=>Z(x)(!0))}," Clear Search ",42,Bme),Q("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:st(Z(h)?null:"hover:op100"),disabled:Z(h),onClickPassive:U[10]||(U[10]=re=>Z(C)(!0))}," Clear Filter ",42,Wme),Q("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:U[11]||(U[11]=(...re)=>Z(b)&&Z(b)(...re))}," Clear All ",32)])):(se(),ye("div",qme,[...U[19]||(U[19]=[Q("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Q("div",{op30:""}," Loading... ",-1)])]))],64)):(se(),Je(Z(gp),{key:1,"page-mode":"","key-field":"id","item-size":28,items:Z(L),buffer:100},{default:it(({item:re})=>[Oe($me,{class:st(["h-28px m-0 p-0",Z(oo)===re.id?"bg-active":""]),"task-id":re.id,expandable:re.expandable,type:re.type,current:Z(oo)===re.id,indent:re.indent,name:re.name,typecheck:re.typecheck===!0,"project-name":re.projectName??"","project-name-color":re.projectNameColor??"",state:re.state,duration:re.duration,opened:re.expanded,"disable-task-location":!o.value,"on-item-click":I.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[Z(c)?{name:"summary",fn:it(()=>[Q("div",Rme,[Q("span",zme," FAIL ("+ze(Z(A).failed)+") ",1),U[16]||(U[16]=Q("span",null,"/",-1)),Q("span",Ime," RUNNING ("+ze(Z(A).running)+") ",1),Q("span",Dme," PASS ("+ze(Z(A).success)+") ",1),U[17]||(U[17]=Q("span",null,"/",-1)),Q("span",Fme," SKIP ("+ze(Z(f).onlyTests?Z(A).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),Ume={class:"flex text-lg"},Vme=ot({__name:"Navigation",setup(e){function t(){return ht.rpc.updateSnapshot()}const r=_e(()=>Ks.value?"light":"dark");async function o(f){ws.value&&(hu.value=!0,await Ct(),so.value&&(pu(!0),await Ct())),f?.length?await np(f):await sce()}function s(){Ae.collapseAllNodes()}function c(){Ae.expandAllNodes()}return(f,d)=>{const h=Rr("tooltip");return se(),Je(jme,{border:"r base","on-item-click":Z(Lae),nested:!0,onRun:o},{header:it(({filteredFiles:p})=>[d[8]||(d[8]=Q("img",{"w-6":"","h-6":"",src:Hve,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=Q("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),Q("div",Ume,[ct(Oe(Et,{title:"Collapse tests",disabled:!Z(Hs),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=v=>s())},null,8,["disabled"]),[[Ki,!Z(zm)],[h,"Collapse tests",void 0,{bottom:!0}]]),ct(Oe(Et,{disabled:!Z(Hs),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=v=>c())},null,8,["disabled"]),[[Ki,Z(zm)],[h,"Expand tests",void 0,{bottom:!0}]]),ct(Oe(Et,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=v=>Z(pu)(!0))},null,512),[[Ki,Z(Jd)&&!Z(ws)||!Z($s)],[h,"Dashboard",void 0,{bottom:!0}]]),Z(Jd)&&!Z(ws)?(se(),Je(Z(jb),{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:it(()=>[...d[6]||(d[6]=[Q("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Q("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Q("div",null,"Coverage enabled but missing html reporter."),Q("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:it(()=>[d[7]||(d[7]=Q("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):qe("",!0),Z(ws)?ct((se(),Je(Et,{key:1,disabled:Z(hu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=v=>Z(Mae)())},null,8,["disabled"])),[[Ki,!Z(so)],[h,"Coverage",void 0,{bottom:!0}]]):qe("",!0),Z(Ae).summary.failedSnapshot&&!Z(dr)?ct((se(),Je(Et,{key:2,icon:"i-carbon:result-old",disabled:!Z(Ae).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=v=>Z(Ae).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[h,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):qe("",!0),Z(dr)?qe("",!0):ct((se(),Je(Et,{key:3,disabled:p?.length===0,icon:"i-carbon:play",onClick:v=>o(p)},null,8,["disabled","onClick"])),[[h,p?p.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),ct(Oe(Et,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=v=>Z(mge)())},null,512),[[h,`Toggle to ${r.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Gme={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Kme=ot({__name:"ProgressBar",setup(e){const{width:t}=rw(),r=_e(()=>[Ae.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!ys.value&&"in-progress"].filter(Boolean).join(" ")),o=_e(()=>{const d=Ae.summary.files;return d>0?t.value*Ae.summary.filesSuccess/d:0}),s=_e(()=>{const d=Ae.summary.files;return d>0?t.value*Ae.summary.filesFailed/d:0}),c=_e(()=>Ae.summary.files-Ae.summary.filesFailed-Ae.summary.filesSuccess),f=_e(()=>{const d=Ae.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(se(),ye("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:st(r.value)},[Q("div",Gme,[Q("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:st(r.value),style:Qt(`width: ${s.value}px;`)}," ",6),Q("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:st(r.value),style:Qt(`left: ${s.value}px; width: ${o.value}px;`)}," ",6),Q("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:st(r.value),style:Qt(`left: ${o.value+s.value}px; width: ${f.value}px;`)}," ",6)])],2))}}),Xme=ki(Kme,[["__scopeId","data-v-5320005b"]]),Yme={"h-screen":"","w-screen":"",overflow:"hidden"},Zme=ot({__name:"index",setup(e){const t=Aae(),r=xc(v=>{h(),d(v)},0),o=xc(v=>{v.forEach((m,b)=>{Ns.value[b]=m.size}),f(v),p()},0),s=xc(v=>{v.forEach((m,b)=>{eo.value[b]=m.size}),d(v),p()},0),c=xc(v=>{f(v),h()},0);function f(v){At.navigation=v[0].size,At.details.size=v[1].size}function d(v){At.details.browser=v[0].size,At.details.main=v[1].size}function h(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="none")}function p(){const v=document.querySelector("#tester-ui");v&&(v.style.pointerEvents="")}return(v,m)=>(se(),ye(nt,null,[Oe(Xme),Q("div",Yme,[Oe(Z(Sm),{class:"pt-4px",onResized:Z(o),onResize:Z(c)},{default:it(()=>[Oe(Z(kc),{size:Z(Ns)[0]},{default:it(()=>[Oe(Vme)]),_:1},8,["size"]),Oe(Z(kc),{size:Z(Ns)[1]},{default:it(()=>[Z(Kn)?(se(),Je(Z(Sm),{id:"details-splitpanes",key:"browser-detail",onResize:Z(r),onResized:Z(s)},{default:it(()=>[Oe(Z(kc),{size:Z(eo)[0],"min-size":"10"},{default:it(()=>[m[0]||(Is(-1,!0),(m[0]=Oe(bce)).cacheIndex=0,Is(1),m[0])]),_:1},8,["size"]),Oe(Z(kc),{size:Z(eo)[1]},{default:it(()=>[Z(t)?(se(),Je(l0,{key:"summary"})):Z(so)?(se(),Je(s0,{key:"coverage",src:Z(i0)},null,8,["src"])):(se(),Je(O0,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(se(),Je(uT,{key:"ui-detail"},{default:it(()=>[Z(t)?(se(),Je(l0,{key:"summary"})):Z(so)?(se(),Je(s0,{key:"coverage",src:Z(i0)},null,8,["src"])):(se(),Je(O0,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Oe(_ce)],64))}}),Jme=[{name:"index",path:"/",component:Zme,props:!0}];/*!
|
|
50
|
+
* vue-router v4.5.1
|
|
51
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
52
|
+
* @license MIT
|
|
53
|
+
*/const ms=typeof document<"u";function Ux(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Qme(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ux(e.default)}const bt=Object.assign;function _d(e,t){const r={};for(const o in t){const s=t[o];r[o]=Pr(s)?s.map(e):e(s)}return r}const Yl=()=>{},Pr=Array.isArray,Vx=/#/g,e0e=/&/g,t0e=/\//g,n0e=/=/g,r0e=/\?/g,Gx=/\+/g,i0e=/%5B/g,o0e=/%5D/g,Kx=/%5E/g,s0e=/%60/g,Xx=/%7B/g,l0e=/%7C/g,Yx=/%7D/g,a0e=/%20/g;function vp(e){return encodeURI(""+e).replace(l0e,"|").replace(i0e,"[").replace(o0e,"]")}function c0e(e){return vp(e).replace(Xx,"{").replace(Yx,"}").replace(Kx,"^")}function vh(e){return vp(e).replace(Gx,"%2B").replace(a0e,"+").replace(Vx,"%23").replace(e0e,"%26").replace(s0e,"`").replace(Xx,"{").replace(Yx,"}").replace(Kx,"^")}function u0e(e){return vh(e).replace(n0e,"%3D")}function f0e(e){return vp(e).replace(Vx,"%23").replace(r0e,"%3F")}function d0e(e){return e==null?"":f0e(e).replace(t0e,"%2F")}function wa(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const h0e=/\/$/,p0e=e=>e.replace(h0e,"");function Sd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return d<h&&d>=0&&(h=-1),h>-1&&(o=t.slice(0,h),c=t.slice(h+1,d>-1?d:t.length),s=e(c)),d>-1&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=y0e(o??t,r),{fullPath:o+(c&&"?")+c+f,path:o,query:s,hash:wa(f)}}function g0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function z0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function v0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&Us(t.matched[o],r.matched[s])&&Zx(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Us(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Zx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!m0e(e[r],t[r]))return!1;return!0}function m0e(e,t){return Pr(e)?I0(e,t):Pr(t)?I0(t,e):e===t}function I0(e,t){return Pr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function y0e(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const Hi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var xa;(function(e){e.pop="pop",e.push="push"})(xa||(xa={}));var Zl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Zl||(Zl={}));function b0e(e){if(!e)if(ms){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),p0e(e)}const w0e=/^[^#]+#/;function x0e(e,t){return e.replace(w0e,"#")+t}function _0e(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const Ju=()=>({left:window.scrollX,top:window.scrollY});function S0e(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=_0e(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function D0(e,t){return(history.state?history.state.position-t:-1)+e}const mh=new Map;function k0e(e,t){mh.set(e,t)}function T0e(e){const t=mh.get(e);return mh.delete(e),t}let C0e=()=>location.protocol+"//"+location.host;function Jx(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let d=s.includes(e.slice(c))?e.slice(c).length:1,h=s.slice(d);return h[0]!=="/"&&(h="/"+h),z0(h,"")}return z0(r,e)+o+s}function E0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const x=Jx(e,location),C=r.value,M=t.value;let A=0;if(b){if(r.value=x,t.value=b,f&&f===C){f=null;return}A=M?b.position-M.position:0}else o(x);s.forEach(L=>{L(r.value,C,{delta:A,type:xa.pop,direction:A?A>0?Zl.forward:Zl.back:Zl.unknown})})};function h(){f=r.value}function p(b){s.push(b);const x=()=>{const C=s.indexOf(b);C>-1&&s.splice(C,1)};return c.push(x),x}function v(){const{history:b}=window;b.state&&b.replaceState(bt({},b.state,{scroll:Ju()}),"")}function m(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:h,listen:p,destroy:m}}function F0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?Ju():null}}function A0e(e){const{history:t,location:r}=window,o={value:Jx(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,v){const m=e.indexOf("#"),b=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+h:C0e()+e+h;try{t[v?"replaceState":"pushState"](p,"",b),s.value=p}catch(x){console.error(x),r[v?"replace":"assign"](b)}}function f(h,p){const v=bt({},t.state,F0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position});c(h,v,!0),o.value=h}function d(h,p){const v=bt({},s.value,t.state,{forward:h,scroll:Ju()});c(v.current,v,!0);const m=bt({},F0(o.value,h,null),{position:v.position+1},p);c(h,m,!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function L0e(e){e=b0e(e);const t=A0e(e),r=E0e(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:x0e.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function M0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),L0e(e)}function $0e(e){return typeof e=="string"||e&&typeof e=="object"}function Qx(e){return typeof e=="string"||typeof e=="symbol"}const e1=Symbol("");var H0;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(H0||(H0={}));function Vs(e,t){return bt(new Error,{type:e,[e1]:!0},t)}function ci(e,t){return e instanceof Error&&e1 in e&&(t==null||!!(e.type&t))}const B0="[^/]+?",N0e={sensitive:!1,strict:!1,start:!0,end:!0},O0e=/[.+*?^${}()[\]/\\]/g;function P0e(e,t){const r=bt({},N0e,t),o=[];let s=r.start?"^":"";const c=[];for(const p of e){const v=p.length?[]:[90];r.strict&&!p.length&&(s+="/");for(let m=0;m<p.length;m++){const b=p[m];let x=40+(r.sensitive?.25:0);if(b.type===0)m||(s+="/"),s+=b.value.replace(O0e,"\\$&"),x+=40;else if(b.type===1){const{value:C,repeatable:M,optional:A,regexp:L}=b;c.push({name:C,repeatable:M,optional:A});const $=L||B0;if($!==B0){x+=10;try{new RegExp(`(${$})`)}catch(E){throw new Error(`Invalid custom RegExp for param "${C}" (${$}): `+E.message)}}let D=M?`((?:${$})(?:/(?:${$}))*)`:`(${$})`;m||(D=A&&p.length<2?`(?:/${D})`:"/"+D),A&&(D+="?"),s+=D,x+=20,A&&(x+=-8),M&&(x+=-20),$===".*"&&(x+=-50)}v.push(x)}o.push(v)}if(r.strict&&r.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const f=new RegExp(s,r.sensitive?"":"i");function d(p){const v=p.match(f),m={};if(!v)return null;for(let b=1;b<v.length;b++){const x=v[b]||"",C=c[b-1];m[C.name]=x&&C.repeatable?x.split("/"):x}return m}function h(p){let v="",m=!1;for(const b of e){(!m||!v.endsWith("/"))&&(v+="/"),m=!1;for(const x of b)if(x.type===0)v+=x.value;else if(x.type===1){const{value:C,repeatable:M,optional:A}=x,L=C in p?p[C]:"";if(Pr(L)&&!M)throw new Error(`Provided param "${C}" is an array but it is not repeatable (* or + modifiers)`);const $=Pr(L)?L.join("/"):L;if(!$)if(A)b.length<2&&(v.endsWith("/")?v=v.slice(0,-1):m=!0);else throw new Error(`Missing required param "${C}"`);v+=$}}return v||"/"}return{re:f,score:o,keys:c,parse:d,stringify:h}}function R0e(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function t1(e,t){let r=0;const o=e.score,s=t.score;for(;r<o.length&&r<s.length;){const c=R0e(o[r],s[r]);if(c)return c;r++}if(Math.abs(s.length-o.length)===1){if(W0(o))return 1;if(W0(s))return-1}return s.length-o.length}function W0(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const z0e={type:0,value:""},I0e=/[a-zA-Z0-9_]/;function D0e(e){if(!e)return[[]];if(e==="/")return[[z0e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${r})/"${p}": ${x}`)}let r=0,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",v="";function m(){p&&(r===0?c.push({type:0,value:p}):r===1||r===2||r===3?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:1,value:p,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:h==="/"?(p&&m(),f()):h===":"?(m(),r=1):b();break;case 4:b(),r=o;break;case 1:h==="("?r=2:I0e.test(h)?b():(m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:m(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&d--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${p}"`),m(),f(),s}function F0e(e,t,r){const o=P0e(D0e(e.path),r),s=bt(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function H0e(e,t){const r=[],o=new Map;t=V0({strict:!1,end:!0,sensitive:!1},t);function s(m){return o.get(m)}function c(m,b,x){const C=!x,M=j0(m);M.aliasOf=x&&x.record;const A=V0(t,m),L=[M];if("alias"in m){const E=typeof m.alias=="string"?[m.alias]:m.alias;for(const I of E)L.push(j0(bt({},M,{components:x?x.record.components:M.components,path:I,aliasOf:x?x.record:M})))}let $,D;for(const E of L){const{path:I}=E;if(b&&I[0]!=="/"){const U=b.record.path,ie=U[U.length-1]==="/"?"":"/";E.path=b.record.path+(I&&ie+I)}if($=F0e(E,b,A),x?x.alias.push($):(D=D||$,D!==$&&D.alias.push($),C&&m.name&&!U0($)&&f(m.name)),n1($)&&h($),M.children){const U=M.children;for(let ie=0;ie<U.length;ie++)c(U[ie],$,x&&x.children[ie])}x=x||$}return D?()=>{f(D)}:Yl}function f(m){if(Qx(m)){const b=o.get(m);b&&(o.delete(m),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(m);b>-1&&(r.splice(b,1),m.record.name&&o.delete(m.record.name),m.children.forEach(f),m.alias.forEach(f))}}function d(){return r}function h(m){const b=q0e(m,r);r.splice(b,0,m),m.record.name&&!U0(m)&&o.set(m.record.name,m)}function p(m,b){let x,C={},M,A;if("name"in m&&m.name){if(x=o.get(m.name),!x)throw Vs(1,{location:m});A=x.record.name,C=bt(q0(b.params,x.keys.filter(D=>!D.optional).concat(x.parent?x.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),m.params&&q0(m.params,x.keys.map(D=>D.name))),M=x.stringify(C)}else if(m.path!=null)M=m.path,x=r.find(D=>D.re.test(M)),x&&(C=x.parse(M),A=x.record.name);else{if(x=b.name?o.get(b.name):r.find(D=>D.re.test(b.path)),!x)throw Vs(1,{location:m,currentLocation:b});A=x.record.name,C=bt({},b.params,m.params),M=x.stringify(C)}const L=[];let $=x;for(;$;)L.unshift($.record),$=$.parent;return{name:A,path:M,params:C,matched:L,meta:W0e(L)}}e.forEach(m=>c(m));function v(){r.length=0,o.clear()}return{addRoute:c,resolve:p,removeRoute:f,clearRoutes:v,getRoutes:d,getRecordMatcher:s}}function q0(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function j0(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:B0e(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 B0e(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function U0(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function W0e(e){return e.reduce((t,r)=>bt(t,r.meta),{})}function V0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}function q0e(e,t){let r=0,o=t.length;for(;r!==o;){const c=r+o>>1;t1(e,t[c])<0?o=c:r=c+1}const s=j0e(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function j0e(e){let t=e;for(;t=t.parent;)if(n1(t)&&t1(e,t)===0)return t}function n1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function U0e(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const c=o[s].replace(Gx," "),f=c.indexOf("="),d=wa(f<0?c:c.slice(0,f)),h=f<0?null:wa(c.slice(f+1));if(d in t){let p=t[d];Pr(p)||(p=t[d]=[p]),p.push(h)}else t[d]=h}return t}function G0(e){let t="";for(let r in e){const o=e[r];if(r=u0e(r),o==null){o!==void 0&&(t+=(t.length?"&":"")+r);continue}(Pr(o)?o.map(c=>c&&vh(c)):[o&&vh(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))})}return t}function V0e(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=Pr(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const G0e=Symbol(""),K0=Symbol(""),mp=Symbol(""),r1=Symbol(""),yh=Symbol("");function Ol(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Gi(e,t,r,o,s,c=f=>f()){const f=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,h)=>{const p=b=>{b===!1?h(Vs(4,{from:r,to:t})):b instanceof Error?h(b):$0e(b)?h(Vs(2,{from:t,to:b})):(f&&o.enterCallbacks[s]===f&&typeof b=="function"&&f.push(b),d())},v=c(()=>e.call(o&&o.instances[s],t,r,p));let m=Promise.resolve(v);e.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function kd(e,t,r,o,s=c=>c()){const c=[];for(const f of e)for(const d in f.components){let h=f.components[d];if(!(t!=="beforeRouteEnter"&&!f.instances[d]))if(Ux(h)){const v=(h.__vccOpts||h)[t];v&&c.push(Gi(v,r,o,f,d,s))}else{let p=h();c.push(()=>p.then(v=>{if(!v)throw new Error(`Couldn't resolve component "${d}" at "${f.path}"`);const m=Qme(v)?v.default:v;f.mods[d]=v,f.components[d]=m;const x=(m.__vccOpts||m)[t];return x&&Gi(x,r,o,f,d,s)()}))}}return c}function X0(e){const t=yn(mp),r=yn(r1),o=_e(()=>{const h=Z(e.to);return t.resolve(h)}),s=_e(()=>{const{matched:h}=o.value,{length:p}=h,v=h[p-1],m=r.matched;if(!v||!m.length)return-1;const b=m.findIndex(Us.bind(null,v));if(b>-1)return b;const x=Y0(h[p-2]);return p>1&&Y0(v)===x&&m[m.length-1].path!==x?m.findIndex(Us.bind(null,h[p-2])):b}),c=_e(()=>s.value>-1&&J0e(r.params,o.value.params)),f=_e(()=>s.value>-1&&s.value===r.matched.length-1&&Zx(r.params,o.value.params));function d(h={}){if(Z0e(h)){const p=t[Z(e.replace)?"replace":"push"](Z(e.to)).catch(Yl);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:o,href:_e(()=>o.value.href),isActive:c,isExactActive:f,navigate:d}}function K0e(e){return e.length===1?e[0]:e}const X0e=ot({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:X0,setup(e,{slots:t}){const r=nr(X0(e)),{options:o}=yn(mp),s=_e(()=>({[Z0(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[Z0(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const c=t.default&&K0e(t.default(r));return e.custom?c:Aa("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},c)}}}),Y0e=X0e;function Z0e(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 J0e(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!Pr(s)||s.length!==o.length||o.some((c,f)=>c!==s[f]))return!1}return!0}function Y0(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Z0=(e,t,r)=>e??t??r,Q0e=ot({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=yn(yh),s=_e(()=>e.route||o.value),c=yn(K0,0),f=_e(()=>{let p=Z(c);const{matched:v}=s.value;let m;for(;(m=v[p])&&!m.components;)p++;return p}),d=_e(()=>s.value.matched[f.value]);Tr(K0,_e(()=>f.value+1)),Tr(G0e,d),Tr(yh,s);const h=Ue();return _t(()=>[h.value,d.value,e.name],([p,v,m],[b,x,C])=>{v&&(v.instances[m]=p,x&&x!==v&&p&&p===b&&(v.leaveGuards.size||(v.leaveGuards=x.leaveGuards),v.updateGuards.size||(v.updateGuards=x.updateGuards))),p&&v&&(!x||!Us(v,x)||!b)&&(v.enterCallbacks[m]||[]).forEach(M=>M(p))},{flush:"post"}),()=>{const p=s.value,v=e.name,m=d.value,b=m&&m.components[v];if(!b)return J0(r.default,{Component:b,route:p});const x=m.props[v],C=x?x===!0?p.params:typeof x=="function"?x(p):x:null,A=Aa(b,bt({},C,t,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(m.instances[v]=null)},ref:h}));return J0(r.default,{Component:A,route:p})||A}}});function J0(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const eye=Q0e;function tye(e){const t=H0e(e.routes,e),r=e.parseQuery||U0e,o=e.stringifyQuery||G0,s=e.history,c=Ol(),f=Ol(),d=Ol(),h=en(Hi);let p=Hi;ms&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=_d.bind(null,H=>""+H),m=_d.bind(null,d0e),b=_d.bind(null,wa);function x(H,Y){let V,ae;return Qx(H)?(V=t.getRecordMatcher(H),ae=Y):ae=H,t.addRoute(ae,V)}function C(H){const Y=t.getRecordMatcher(H);Y&&t.removeRoute(Y)}function M(){return t.getRoutes().map(H=>H.record)}function A(H){return!!t.getRecordMatcher(H)}function L(H,Y){if(Y=bt({},Y||h.value),typeof H=="string"){const K=Sd(r,H,Y.path),ue=t.resolve({path:K.path},Y),he=s.createHref(K.fullPath);return bt(K,ue,{params:b(ue.params),hash:wa(K.hash),redirectedFrom:void 0,href:he})}let V;if(H.path!=null)V=bt({},H,{path:Sd(r,H.path,Y.path).path});else{const K=bt({},H.params);for(const ue in K)K[ue]==null&&delete K[ue];V=bt({},H,{params:m(K)}),Y.params=m(Y.params)}const ae=t.resolve(V,Y),pe=H.hash||"";ae.params=v(b(ae.params));const R=g0e(o,bt({},H,{hash:c0e(pe),path:ae.path})),q=s.createHref(R);return bt({fullPath:R,hash:pe,query:o===G0?V0e(H.query):H.query||{}},ae,{redirectedFrom:void 0,href:q})}function $(H){return typeof H=="string"?Sd(r,H,h.value.path):bt({},H)}function D(H,Y){if(p!==H)return Vs(8,{from:Y,to:H})}function E(H){return ie(H)}function I(H){return E(bt($(H),{replace:!0}))}function U(H){const Y=H.matched[H.matched.length-1];if(Y&&Y.redirect){const{redirect:V}=Y;let ae=typeof V=="function"?V(H):V;return typeof ae=="string"&&(ae=ae.includes("?")||ae.includes("#")?ae=$(ae):{path:ae},ae.params={}),bt({query:H.query,hash:H.hash,params:ae.path!=null?{}:H.params},ae)}}function ie(H,Y){const V=p=L(H),ae=h.value,pe=H.state,R=H.force,q=H.replace===!0,K=U(V);if(K)return ie(bt($(K),{state:typeof K=="object"?bt({},pe,K.state):pe,force:R,replace:q}),Y||V);const ue=V;ue.redirectedFrom=Y;let he;return!R&&v0e(o,ae,V)&&(he=Vs(16,{to:ue,from:ae}),Re(ae,ae,!0,!1)),(he?Promise.resolve(he):G(ue,ae)).catch(fe=>ci(fe)?ci(fe,2)?fe:Se(fe):oe(fe,ue,ae)).then(fe=>{if(fe){if(ci(fe,2))return ie(bt({replace:q},$(fe.to),{state:typeof fe.to=="object"?bt({},pe,fe.to.state):pe,force:R}),Y||ue)}else fe=P(ue,ae,!0,q,pe);return J(ue,ae,fe),fe})}function re(H,Y){const V=D(H,Y);return V?Promise.reject(V):Promise.resolve()}function ne(H){const Y=Xe.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(H):H()}function G(H,Y){let V;const[ae,pe,R]=nye(H,Y);V=kd(ae.reverse(),"beforeRouteLeave",H,Y);for(const K of ae)K.leaveGuards.forEach(ue=>{V.push(Gi(ue,H,Y))});const q=re.bind(null,H,Y);return V.push(q),te(V).then(()=>{V=[];for(const K of c.list())V.push(Gi(K,H,Y));return V.push(q),te(V)}).then(()=>{V=kd(pe,"beforeRouteUpdate",H,Y);for(const K of pe)K.updateGuards.forEach(ue=>{V.push(Gi(ue,H,Y))});return V.push(q),te(V)}).then(()=>{V=[];for(const K of R)if(K.beforeEnter)if(Pr(K.beforeEnter))for(const ue of K.beforeEnter)V.push(Gi(ue,H,Y));else V.push(Gi(K.beforeEnter,H,Y));return V.push(q),te(V)}).then(()=>(H.matched.forEach(K=>K.enterCallbacks={}),V=kd(R,"beforeRouteEnter",H,Y,ne),V.push(q),te(V))).then(()=>{V=[];for(const K of f.list())V.push(Gi(K,H,Y));return V.push(q),te(V)}).catch(K=>ci(K,8)?K:Promise.reject(K))}function J(H,Y,V){d.list().forEach(ae=>ne(()=>ae(H,Y,V)))}function P(H,Y,V,ae,pe){const R=D(H,Y);if(R)return R;const q=Y===Hi,K=ms?history.state:{};V&&(ae||q?s.replace(H.fullPath,bt({scroll:q&&K&&K.scroll},pe)):s.push(H.fullPath,pe)),h.value=H,Re(H,Y,V,q),Se()}let O;function N(){O||(O=s.listen((H,Y,V)=>{if(!Ye.listening)return;const ae=L(H),pe=U(ae);if(pe){ie(bt(pe,{replace:!0,force:!0}),ae).catch(Yl);return}p=ae;const R=h.value;ms&&k0e(D0(R.fullPath,V.delta),Ju()),G(ae,R).catch(q=>ci(q,12)?q:ci(q,2)?(ie(bt($(q.to),{force:!0}),ae).then(K=>{ci(K,20)&&!V.delta&&V.type===xa.pop&&s.go(-1,!1)}).catch(Yl),Promise.reject()):(V.delta&&s.go(-V.delta,!1),oe(q,ae,R))).then(q=>{q=q||P(ae,R,!1),q&&(V.delta&&!ci(q,8)?s.go(-V.delta,!1):V.type===xa.pop&&ci(q,20)&&s.go(-1,!1)),J(ae,R,q)}).catch(Yl)}))}let S=Ol(),F=Ol(),j;function oe(H,Y,V){Se(H);const ae=F.list();return ae.length?ae.forEach(pe=>pe(H,Y,V)):console.error(H),Promise.reject(H)}function me(){return j&&h.value!==Hi?Promise.resolve():new Promise((H,Y)=>{S.add([H,Y])})}function Se(H){return j||(j=!H,N(),S.list().forEach(([Y,V])=>H?V(H):Y()),S.reset()),H}function Re(H,Y,V,ae){const{scrollBehavior:pe}=e;if(!ms||!pe)return Promise.resolve();const R=!V&&T0e(D0(H.fullPath,0))||(ae||!V)&&history.state&&history.state.scroll||null;return Ct().then(()=>pe(H,Y,R)).then(q=>q&&S0e(q)).catch(q=>oe(q,H,Y))}const je=H=>s.go(H);let Qe;const Xe=new Set,Ye={currentRoute:h,listening:!0,addRoute:x,removeRoute:C,clearRoutes:t.clearRoutes,hasRoute:A,getRoutes:M,resolve:L,options:e,push:E,replace:I,go:je,back:()=>je(-1),forward:()=>je(1),beforeEach:c.add,beforeResolve:f.add,afterEach:d.add,onError:F.add,isReady:me,install(H){const Y=this;H.component("RouterLink",Y0e),H.component("RouterView",eye),H.config.globalProperties.$router=Y,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>Z(h)}),ms&&!Qe&&h.value===Hi&&(Qe=!0,E(s.location).catch(pe=>{}));const V={};for(const pe in Hi)Object.defineProperty(V,pe,{get:()=>h.value[pe],enumerable:!0});H.provide(mp,Y),H.provide(r1,Eh(V)),H.provide(yh,h);const ae=H.unmount;Xe.add(H),H.unmount=function(){Xe.delete(H),Xe.size<1&&(p=Hi,O&&O(),O=null,h.value=Hi,Qe=!1,j=!1),ae()}}};function te(H){return H.reduce((Y,V)=>Y.then(()=>ne(V)),Promise.resolve())}return Ye}function nye(e,t){const r=[],o=[],s=[],c=Math.max(t.matched.length,e.matched.length);for(let f=0;f<c;f++){const d=t.matched[f];d&&(e.matched.find(p=>Us(p,d))?o.push(d):r.push(d));const h=e.matched[f];h&&(t.matched.find(p=>Us(p,h))||s.push(h))}return[r,o,s]}const rye={tooltip:DC};Ub.options.instantMove=!0;Ub.options.distance=10;function iye(){return tye({history:M0e(),routes:Jme})}const oye=[iye],yp=Sb(BT);oye.forEach(e=>{yp.use(e())});Object.entries(rye).forEach(([e,t])=>{yp.directive(e,t)});yp.mount("#app");
|