@unocss/inspector 0.58.3 → 0.58.5
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();const oA="modulepreload",aA=function(r){return"/__unocss/"+r},YO={},AD=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){const s=document.getElementsByTagName("link");i=Promise.all(t.map(a=>{if(a=aA(a),a in YO)return;YO[a]=!0;const l=a.endsWith(".css"),p=l?'[rel="stylesheet"]':"";if(!!n)for(let b=s.length-1;b>=0;b--){const S=s[b];if(S.href===a&&(!l||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${p}`))return;const g=document.createElement("link");if(g.rel=l?"stylesheet":oA,l||(g.as="script",g.crossOrigin=""),g.href=a,document.head.appendChild(g),l)return new Promise((b,S)=>{g.addEventListener("load",b),g.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${a}`)))})}))}return i.then(()=>e()).catch(s=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s})};function TD(r,e){const t=Object.create(null),n=r.split(",");for(let i=0;i<n.length;i++)t[n[i]]=!0;return e?i=>!!t[i.toLowerCase()]:i=>!!t[i]}const zs={},_p=[],dl=()=>{},uA=()=>!1,lA=/^on[^a-z]/,Eg=r=>lA.test(r),PD=r=>r.startsWith("onUpdate:"),Yo=Object.assign,kD=(r,e)=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)},cA=Object.prototype.hasOwnProperty,ms=(r,e)=>cA.call(r,e),Pi=Array.isArray,$p=r=>yd(r)==="[object Map]",wg=r=>yd(r)==="[object Set]",GO=r=>yd(r)==="[object Date]",Vi=r=>typeof r=="function",xo=r=>typeof r=="string",Up=r=>typeof r=="symbol",Ns=r=>r!==null&&typeof r=="object",Lv=r=>(Ns(r)||Vi(r))&&Vi(r.then)&&Vi(r.catch),Xv=Object.prototype.toString,yd=r=>Xv.call(r),hA=r=>yd(r).slice(8,-1),Vv=r=>yd(r)==="[object Object]",FD=r=>xo(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,mm=TD(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ag=r=>{const e=Object.create(null);return t=>e[t]||(e[t]=r(t))},pA=/-(\w)/g,bl=Ag(r=>r.replace(pA,(e,t)=>t?t.toUpperCase():"")),fA=/\B([A-Z])/g,Gh=Ag(r=>r.replace(fA,"-$1").toLowerCase()),Tg=Ag(r=>r.charAt(0).toUpperCase()+r.slice(1)),D0=Ag(r=>r?`on${Tg(r)}`:""),Xh=(r,e)=>!Object.is(r,e),gm=(r,e)=>{for(let t=0;t<r.length;t++)r[t](e)},Nm=(r,e,t)=>{Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value:t})},dA=r=>{const e=parseFloat(r);return isNaN(e)?r:e};let HO;const cy=()=>HO||(HO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ml(r){if(Pi(r)){const e={};for(let t=0;t<r.length;t++){const n=r[t],i=xo(n)?DA(n):ml(n);if(i)for(const s in i)e[s]=i[s]}return e}else if(xo(r)||Ns(r))return r}const mA=/;(?![^(]*\))/g,gA=/:([^]+)/,yA=/\/\*[^]*?\*\//g;function DA(r){const e={};return r.replace(yA,"").split(mA).forEach(t=>{if(t){const n=t.split(gA);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Fa(r){let e="";if(xo(r))e=r;else if(Pi(r))for(let t=0;t<r.length;t++){const n=Fa(r[t]);n&&(e+=n+" ")}else if(Ns(r))for(const t in r)r[t]&&(e+=t+" ");return e.trim()}function OA(r){if(!r)return null;let{class:e,style:t}=r;return e&&!xo(e)&&(r.class=Fa(e)),t&&(r.style=ml(t)),r}const xA="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",bA=TD(xA);function Uv(r){return!!r||r===""}function vA(r,e){if(r.length!==e.length)return!1;let t=!0;for(let n=0;t&&n<r.length;n++)t=Pg(r[n],e[n]);return t}function Pg(r,e){if(r===e)return!0;let t=GO(r),n=GO(e);if(t||n)return t&&n?r.getTime()===e.getTime():!1;if(t=Up(r),n=Up(e),t||n)return r===e;if(t=Pi(r),n=Pi(e),t||n)return t&&n?vA(r,e):!1;if(t=Ns(r),n=Ns(e),t||n){if(!t||!n)return!1;const i=Object.keys(r).length,s=Object.keys(e).length;if(i!==s)return!1;for(const a in r){const l=r.hasOwnProperty(a),p=e.hasOwnProperty(a);if(l&&!p||!l&&p||!Pg(r[a],e[a]))return!1}}return String(r)===String(e)}function qv(r,e){return r.findIndex(t=>Pg(t,e))}const Gs=r=>xo(r)?r:r==null?"":Pi(r)||Ns(r)&&(r.toString===Xv||!Vi(r.toString))?JSON.stringify(r,zv,2):String(r),zv=(r,e)=>e&&e.__v_isRef?zv(r,e.value):$p(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[n,i])=>(t[`${n} =>`]=i,t),{})}:wg(e)?{[`Set(${e.size})`]:[...e.values()]}:Ns(e)&&!Pi(e)&&!Vv(e)?String(e):e;let Va;class CA{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Va,!e&&Va&&(this.index=(Va.scopes||(Va.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Va;try{return Va=this,e()}finally{Va=t}}}on(){Va=this}off(){Va=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function SA(r,e=Va){e&&e.active&&e.effects.push(r)}function Wv(){return Va}function EA(r){Va&&Va.cleanups.push(r)}const _D=r=>{const e=new Set(r);return e.w=0,e.n=0,e},Zv=r=>(r.w&Hc)>0,Yv=r=>(r.n&Hc)>0,wA=({deps:r})=>{if(r.length)for(let e=0;e<r.length;e++)r[e].w|=Hc},AA=r=>{const{deps:e}=r;if(e.length){let t=0;for(let n=0;n<e.length;n++){const i=e[n];Zv(i)&&!Yv(i)?i.delete(r):e[t++]=i,i.w&=~Hc,i.n&=~Hc}e.length=t}},Im=new WeakMap;let Cf=0,Hc=1;const hy=30;let xu;const Rh=Symbol(""),py=Symbol("");class $D{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,SA(this,n)}run(){if(!this.active)return this.fn();let e=xu,t=qc;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=xu,xu=this,qc=!0,Hc=1<<++Cf,Cf<=hy?wA(this):JO(this),this.fn()}finally{Cf<=hy&&AA(this),Hc=1<<--Cf,xu=this.parent,qc=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){xu===this?this.deferStop=!0:this.active&&(JO(this),this.onStop&&this.onStop(),this.active=!1)}}function JO(r){const{deps:e}=r;if(e.length){for(let t=0;t<e.length;t++)e[t].delete(r);e.length=0}}let qc=!0;const Gv=[];function rf(){Gv.push(qc),qc=!1}function nf(){const r=Gv.pop();qc=r===void 0?!0:r}function _a(r,e,t){if(qc&&xu){let n=Im.get(r);n||Im.set(r,n=new Map);let i=n.get(t);i||n.set(t,i=_D()),Hv(i)}}function Hv(r,e){let t=!1;Cf<=hy?Yv(r)||(r.n|=Hc,t=!Zv(r)):t=!r.has(xu),t&&(r.add(xu),xu.deps.push(r))}function Kl(r,e,t,n,i,s){const a=Im.get(r);if(!a)return;let l=[];if(e==="clear")l=[...a.values()];else if(t==="length"&&Pi(r)){const p=Number(n);a.forEach((m,g)=>{(g==="length"||!Up(g)&&g>=p)&&l.push(m)})}else switch(t!==void 0&&l.push(a.get(t)),e){case"add":Pi(r)?FD(t)&&l.push(a.get("length")):(l.push(a.get(Rh)),$p(r)&&l.push(a.get(py)));break;case"delete":Pi(r)||(l.push(a.get(Rh)),$p(r)&&l.push(a.get(py)));break;case"set":$p(r)&&l.push(a.get(Rh));break}if(l.length===1)l[0]&&fy(l[0]);else{const p=[];for(const m of l)m&&p.push(...m);fy(_D(p))}}function fy(r,e){const t=Pi(r)?r:[...r];for(const n of t)n.computed&&KO(n);for(const n of t)n.computed||KO(n)}function KO(r,e){(r!==xu||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}function TA(r,e){var t;return(t=Im.get(r))==null?void 0:t.get(e)}const PA=TD("__proto__,__v_isRef,__isVue"),Jv=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Up)),e1=kA();function kA(){const r={};return["includes","indexOf","lastIndexOf"].forEach(e=>{r[e]=function(...t){const n=Os(this);for(let s=0,a=this.length;s<a;s++)_a(n,"get",s+"");const i=n[e](...t);return i===-1||i===!1?n[e](...t.map(Os)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{r[e]=function(...t){rf();const n=Os(this)[e].apply(this,t);return nf(),n}}),r}function FA(r){const e=Os(this);return _a(e,"has",r),e.hasOwnProperty(r)}class Kv{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const i=this._isReadonly,s=this._shallow;if(t==="__v_isReactive")return!i;if(t==="__v_isReadonly")return i;if(t==="__v_isShallow")return s;if(t==="__v_raw"&&n===(i?s?UA:nC:s?rC:tC).get(e))return e;const a=Pi(e);if(!i){if(a&&ms(e1,t))return Reflect.get(e1,t,n);if(t==="hasOwnProperty")return FA}const l=Reflect.get(e,t,n);return(Up(t)?Jv.has(t):PA(t))||(i||_a(e,"get",t),s)?l:Hs(l)?a&&FD(t)?l:l.value:Ns(l)?i?Od(l):Dd(l):l}}class eC extends Kv{constructor(e=!1){super(!1,e)}set(e,t,n,i){let s=e[t];if(qp(s)&&Hs(s)&&!Hs(n))return!1;if(!this._shallow&&(!Mm(n)&&!qp(n)&&(s=Os(s),n=Os(n)),!Pi(e)&&Hs(s)&&!Hs(n)))return s.value=n,!0;const a=Pi(e)&&FD(t)?Number(t)<e.length:ms(e,t),l=Reflect.set(e,t,n,i);return e===Os(i)&&(a?Xh(n,s)&&Kl(e,"set",t,n):Kl(e,"add",t,n)),l}deleteProperty(e,t){const n=ms(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&n&&Kl(e,"delete",t,void 0),i}has(e,t){const n=Reflect.has(e,t);return(!Up(t)||!Jv.has(t))&&_a(e,"has",t),n}ownKeys(e){return _a(e,"iterate",Pi(e)?"length":Rh),Reflect.ownKeys(e)}}class _A extends Kv{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const $A=new eC,BA=new _A,NA=new eC(!0),BD=r=>r,kg=r=>Reflect.getPrototypeOf(r);function Md(r,e,t=!1,n=!1){r=r.__v_raw;const i=Os(r),s=Os(e);t||(Xh(e,s)&&_a(i,"get",e),_a(i,"get",s));const{has:a}=kg(i),l=n?BD:t?MD:qf;if(a.call(i,e))return l(r.get(e));if(a.call(i,s))return l(r.get(s));r!==i&&r.get(e)}function Rd(r,e=!1){const t=this.__v_raw,n=Os(t),i=Os(r);return e||(Xh(r,i)&&_a(n,"has",r),_a(n,"has",i)),r===i?t.has(r):t.has(r)||t.has(i)}function Qd(r,e=!1){return r=r.__v_raw,!e&&_a(Os(r),"iterate",Rh),Reflect.get(r,"size",r)}function t1(r){r=Os(r);const e=Os(this);return kg(e).has.call(e,r)||(e.add(r),Kl(e,"add",r,r)),this}function r1(r,e){e=Os(e);const t=Os(this),{has:n,get:i}=kg(t);let s=n.call(t,r);s||(r=Os(r),s=n.call(t,r));const a=i.call(t,r);return t.set(r,e),s?Xh(e,a)&&Kl(t,"set",r,e):Kl(t,"add",r,e),this}function n1(r){const e=Os(this),{has:t,get:n}=kg(e);let i=t.call(e,r);i||(r=Os(r),i=t.call(e,r)),n&&n.call(e,r);const s=e.delete(r);return i&&Kl(e,"delete",r,void 0),s}function i1(){const r=Os(this),e=r.size!==0,t=r.clear();return e&&Kl(r,"clear",void 0,void 0),t}function jd(r,e){return function(n,i){const s=this,a=s.__v_raw,l=Os(a),p=e?BD:r?MD:qf;return!r&&_a(l,"iterate",Rh),a.forEach((m,g)=>n.call(i,p(m),p(g),s))}}function Ld(r,e,t){return function(...n){const i=this.__v_raw,s=Os(i),a=$p(s),l=r==="entries"||r===Symbol.iterator&&a,p=r==="keys"&&a,m=i[r](...n),g=t?BD:e?MD:qf;return!e&&_a(s,"iterate",p?py:Rh),{next(){const{value:b,done:S}=m.next();return S?{value:b,done:S}:{value:l?[g(b[0]),g(b[1])]:g(b),done:S}},[Symbol.iterator](){return this}}}}function kc(r){return function(...e){return r==="delete"?!1:r==="clear"?void 0:this}}function IA(){const r={get(s){return Md(this,s)},get size(){return Qd(this)},has:Rd,add:t1,set:r1,delete:n1,clear:i1,forEach:jd(!1,!1)},e={get(s){return Md(this,s,!1,!0)},get size(){return Qd(this)},has:Rd,add:t1,set:r1,delete:n1,clear:i1,forEach:jd(!1,!0)},t={get(s){return Md(this,s,!0)},get size(){return Qd(this,!0)},has(s){return Rd.call(this,s,!0)},add:kc("add"),set:kc("set"),delete:kc("delete"),clear:kc("clear"),forEach:jd(!0,!1)},n={get(s){return Md(this,s,!0,!0)},get size(){return Qd(this,!0)},has(s){return Rd.call(this,s,!0)},add:kc("add"),set:kc("set"),delete:kc("delete"),clear:kc("clear"),forEach:jd(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=Ld(s,!1,!1),t[s]=Ld(s,!0,!1),e[s]=Ld(s,!1,!0),n[s]=Ld(s,!0,!0)}),[r,t,e,n]}const[MA,RA,QA,jA]=IA();function ND(r,e){const t=e?r?jA:QA:r?RA:MA;return(n,i,s)=>i==="__v_isReactive"?!r:i==="__v_isReadonly"?r:i==="__v_raw"?n:Reflect.get(ms(t,i)&&i in n?t:n,i,s)}const LA={get:ND(!1,!1)},XA={get:ND(!1,!0)},VA={get:ND(!0,!1)},tC=new WeakMap,rC=new WeakMap,nC=new WeakMap,UA=new WeakMap;function qA(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zA(r){return r.__v_skip||!Object.isExtensible(r)?0:qA(hA(r))}function Dd(r){return qp(r)?r:ID(r,!1,$A,LA,tC)}function iC(r){return ID(r,!1,NA,XA,rC)}function Od(r){return ID(r,!0,BA,VA,nC)}function ID(r,e,t,n,i){if(!Ns(r)||r.__v_raw&&!(e&&r.__v_isReactive))return r;const s=i.get(r);if(s)return s;const a=zA(r);if(a===0)return r;const l=new Proxy(r,a===2?n:t);return i.set(r,l),l}function Bp(r){return qp(r)?Bp(r.__v_raw):!!(r&&r.__v_isReactive)}function qp(r){return!!(r&&r.__v_isReadonly)}function Mm(r){return!!(r&&r.__v_isShallow)}function sC(r){return Bp(r)||qp(r)}function Os(r){const e=r&&r.__v_raw;return e?Os(e):r}function oC(r){return Nm(r,"__v_skip",!0),r}const qf=r=>Ns(r)?Dd(r):r,MD=r=>Ns(r)?Od(r):r;function RD(r){qc&&xu&&(r=Os(r),Hv(r.dep||(r.dep=_D())))}function QD(r,e){r=Os(r);const t=r.dep;t&&fy(t)}function Hs(r){return!!(r&&r.__v_isRef===!0)}function Zs(r){return aC(r,!1)}function Np(r){return aC(r,!0)}function aC(r,e){return Hs(r)?r:new WA(r,e)}class WA{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Os(e),this._value=t?e:qf(e)}get value(){return RD(this),this._value}set value(e){const t=this.__v_isShallow||Mm(e)||qp(e);e=t?e:Os(e),Xh(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:qf(e),QD(this))}}function wi(r){return Hs(r)?r.value:r}const ZA={get:(r,e,t)=>wi(Reflect.get(r,e,t)),set:(r,e,t,n)=>{const i=r[e];return Hs(i)&&!Hs(t)?(i.value=t,!0):Reflect.set(r,e,t,n)}};function uC(r){return Bp(r)?r:new Proxy(r,ZA)}class YA{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>RD(this),()=>QD(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function GA(r){return new YA(r)}function HA(r){const e=Pi(r)?new Array(r.length):{};for(const t in r)e[t]=lC(r,t);return e}class JA{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return TA(Os(this._object),this._key)}}class KA{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function eT(r,e,t){return Hs(r)?r:Vi(r)?new KA(r):Ns(r)&&arguments.length>1?lC(r,e,t):Zs(r)}function lC(r,e,t){const n=r[e];return Hs(n)?n:new JA(r,e,t)}class tT{constructor(e,t,n,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new $D(e,()=>{this._dirty||(this._dirty=!0,QD(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=Os(this);return RD(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function rT(r,e,t=!1){let n,i;const s=Vi(r);return s?(n=r,i=dl):(n=r.get,i=r.set),new tT(n,i,s||!i,t)}function zc(r,e,t,n){let i;try{i=n?r(...n):r()}catch(s){Fg(s,e,t)}return i}function Su(r,e,t,n){if(Vi(r)){const s=zc(r,e,t,n);return s&&Lv(s)&&s.catch(a=>{Fg(a,e,t)}),s}const i=[];for(let s=0;s<r.length;s++)i.push(Su(r[s],e,t,n));return i}function Fg(r,e,t,n=!0){const i=e?e.vnode:null;if(e){let s=e.parent;const a=e.proxy,l=t;for(;s;){const m=s.ec;if(m){for(let g=0;g<m.length;g++)if(m[g](r,a,l)===!1)return}s=s.parent}const p=e.appContext.config.errorHandler;if(p){zc(p,null,10,[r,a,l]);return}}nT(r,t,i,n)}function nT(r,e,t,n=!0){console.error(r)}let zf=!1,dy=!1;const oa=[];let ul=0;const Ip=[];let Hl=null,Fh=0;const cC=Promise.resolve();let jD=null;function Hh(r){const e=jD||cC;return r?e.then(this?r.bind(this):r):e}function iT(r){let e=ul+1,t=oa.length;for(;e<t;){const n=e+t>>>1,i=oa[n],s=Wf(i);s<r||s===r&&i.pre?e=n+1:t=n}return e}function LD(r){(!oa.length||!oa.includes(r,zf&&r.allowRecurse?ul+1:ul))&&(r.id==null?oa.push(r):oa.splice(iT(r.id),0,r),hC())}function hC(){!zf&&!dy&&(dy=!0,jD=cC.then(fC))}function sT(r){const e=oa.indexOf(r);e>ul&&oa.splice(e,1)}function oT(r){Pi(r)?Ip.push(...r):(!Hl||!Hl.includes(r,r.allowRecurse?Fh+1:Fh))&&Ip.push(r),hC()}function s1(r,e=zf?ul+1:0){for(;e<oa.length;e++){const t=oa[e];t&&t.pre&&(oa.splice(e,1),e--,t())}}function pC(r){if(Ip.length){const e=[...new Set(Ip)];if(Ip.length=0,Hl){Hl.push(...e);return}for(Hl=e,Hl.sort((t,n)=>Wf(t)-Wf(n)),Fh=0;Fh<Hl.length;Fh++)Hl[Fh]();Hl=null,Fh=0}}const Wf=r=>r.id==null?1/0:r.id,aT=(r,e)=>{const t=Wf(r)-Wf(e);if(t===0){if(r.pre&&!e.pre)return-1;if(e.pre&&!r.pre)return 1}return t};function fC(r){dy=!1,zf=!0,oa.sort(aT);try{for(ul=0;ul<oa.length;ul++){const e=oa[ul];e&&e.active!==!1&&zc(e,null,14)}}finally{ul=0,oa.length=0,pC(),zf=!1,jD=null,(oa.length||Ip.length)&&fC()}}function uT(r,e,...t){if(r.isUnmounted)return;const n=r.vnode.props||zs;let i=t;const s=e.startsWith("update:"),a=s&&e.slice(7);if(a&&a in n){const g=`${a==="modelValue"?"model":a}Modifiers`,{number:b,trim:S}=n[g]||zs;S&&(i=t.map($=>xo($)?$.trim():$)),b&&(i=t.map(dA))}let l,p=n[l=D0(e)]||n[l=D0(bl(e))];!p&&s&&(p=n[l=D0(Gh(e))]),p&&Su(p,r,6,i);const m=n[l+"Once"];if(m){if(!r.emitted)r.emitted={};else if(r.emitted[l])return;r.emitted[l]=!0,Su(m,r,6,i)}}function dC(r,e,t=!1){const n=e.emitsCache,i=n.get(r);if(i!==void 0)return i;const s=r.emits;let a={},l=!1;if(!Vi(r)){const p=m=>{const g=dC(m,e,!0);g&&(l=!0,Yo(a,g))};!t&&e.mixins.length&&e.mixins.forEach(p),r.extends&&p(r.extends),r.mixins&&r.mixins.forEach(p)}return!s&&!l?(Ns(r)&&n.set(r,null),null):(Pi(s)?s.forEach(p=>a[p]=null):Yo(a,s),Ns(r)&&n.set(r,a),a)}function _g(r,e){return!r||!Eg(e)?!1:(e=e.slice(2).replace(/Once$/,""),ms(r,e[0].toLowerCase()+e.slice(1))||ms(r,Gh(e))||ms(r,e))}let Wo=null,$g=null;function Rm(r){const e=Wo;return Wo=r,$g=r&&r.type.__scopeId||null,e}function lT(r){$g=r}function cT(){$g=null}const hT=r=>fa;function fa(r,e=Wo,t){if(!e||r._n)return r;const n=(...i)=>{n._d&&g1(-1);const s=Rm(e);let a;try{a=r(...i)}finally{Rm(s),n._d&&g1(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function O0(r){const{type:e,vnode:t,proxy:n,withProxy:i,props:s,propsOptions:[a],slots:l,attrs:p,emit:m,render:g,renderCache:b,data:S,setupState:$,ctx:G,inheritAttrs:be}=r;let ke,me;const Ve=Rm(r);try{if(t.shapeFlag&4){const ht=i||n,bt=ht;ke=ol(g.call(bt,ht,b,s,$,S,G)),me=p}else{const ht=e;ke=ol(ht.length>1?ht(s,{attrs:p,slots:l,emit:m}):ht(s,null)),me=e.props?p:pT(p)}}catch(ht){$f.length=0,Fg(ht,r,1),ke=bs(Jc)}let Dt=ke;if(me&&be!==!1){const ht=Object.keys(me),{shapeFlag:bt}=Dt;ht.length&&bt&7&&(a&&ht.some(PD)&&(me=fT(me,a)),Dt=zp(Dt,me))}return t.dirs&&(Dt=zp(Dt),Dt.dirs=Dt.dirs?Dt.dirs.concat(t.dirs):t.dirs),t.transition&&(Dt.transition=t.transition),ke=Dt,Rm(Ve),ke}const pT=r=>{let e;for(const t in r)(t==="class"||t==="style"||Eg(t))&&((e||(e={}))[t]=r[t]);return e},fT=(r,e)=>{const t={};for(const n in r)(!PD(n)||!(n.slice(9)in e))&&(t[n]=r[n]);return t};function dT(r,e,t){const{props:n,children:i,component:s}=r,{props:a,children:l,patchFlag:p}=e,m=s.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&p>=0){if(p&1024)return!0;if(p&16)return n?o1(n,a,m):!!a;if(p&8){const g=e.dynamicProps;for(let b=0;b<g.length;b++){const S=g[b];if(a[S]!==n[S]&&!_g(m,S))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:n===a?!1:n?a?o1(n,a,m):!0:!!a;return!1}function o1(r,e,t){const n=Object.keys(e);if(n.length!==Object.keys(r).length)return!0;for(let i=0;i<n.length;i++){const s=n[i];if(e[s]!==r[s]&&!_g(t,s))return!0}return!1}function mT({vnode:r,parent:e},t){for(;e&&e.subTree===r;)(r=e.vnode).el=t,e=e.parent}const mC="components";function Vh(r,e){return yT(mC,r,!0,e)||r}const gT=Symbol.for("v-ndc");function yT(r,e,t=!0,n=!1){const i=Wo||Mo;if(i){const s=i.type;if(r===mC){const l=aP(s,!1);if(l&&(l===e||l===bl(e)||l===Tg(bl(e))))return s}const a=a1(i[r]||s[r],e)||a1(i.appContext[r],e);return!a&&n?s:a}}function a1(r,e){return r&&(r[e]||r[bl(e)]||r[Tg(bl(e))])}const DT=r=>r.__isSuspense;function OT(r,e){e&&e.pendingBranch?Pi(r)?e.effects.push(...r):e.effects.push(r):oT(r)}function gC(r,e){return XD(r,null,e)}const Xd={};function Ro(r,e,t){return XD(r,e,t)}function XD(r,e,{immediate:t,deep:n,flush:i,onTrack:s,onTrigger:a}=zs){var l;const p=Wv()===((l=Mo)==null?void 0:l.scope)?Mo:null;let m,g=!1,b=!1;if(Hs(r)?(m=()=>r.value,g=Mm(r)):Bp(r)?(m=()=>r,n=!0):Pi(r)?(b=!0,g=r.some(ht=>Bp(ht)||Mm(ht)),m=()=>r.map(ht=>{if(Hs(ht))return ht.value;if(Bp(ht))return Nh(ht);if(Vi(ht))return zc(ht,p,2)})):Vi(r)?e?m=()=>zc(r,p,2):m=()=>{if(!(p&&p.isUnmounted))return S&&S(),Su(r,p,3,[$])}:m=dl,e&&n){const ht=m;m=()=>Nh(ht())}let S,$=ht=>{S=Ve.onStop=()=>{zc(ht,p,4),S=Ve.onStop=void 0}},G;if(Yf)if($=dl,e?t&&Su(e,p,3,[m(),b?[]:void 0,$]):m(),i==="sync"){const ht=cP();G=ht.__watcherHandles||(ht.__watcherHandles=[])}else return dl;let be=b?new Array(r.length).fill(Xd):Xd;const ke=()=>{if(Ve.active)if(e){const ht=Ve.run();(n||g||(b?ht.some((bt,Yt)=>Xh(bt,be[Yt])):Xh(ht,be)))&&(S&&S(),Su(e,p,3,[ht,be===Xd?void 0:b&&be[0]===Xd?[]:be,$]),be=ht)}else Ve.run()};ke.allowRecurse=!!e;let me;i==="sync"?me=ke:i==="post"?me=()=>wa(ke,p&&p.suspense):(ke.pre=!0,p&&(ke.id=p.uid),me=()=>LD(ke));const Ve=new $D(m,me);e?t?ke():be=Ve.run():i==="post"?wa(Ve.run.bind(Ve),p&&p.suspense):Ve.run();const Dt=()=>{Ve.stop(),p&&p.scope&&kD(p.scope.effects,Ve)};return G&&G.push(Dt),Dt}function xT(r,e,t){const n=this.proxy,i=xo(r)?r.includes(".")?yC(n,r):()=>n[r]:r.bind(n,n);let s;Vi(e)?s=e:(s=e.handler,t=e);const a=Mo;Wp(this);const l=XD(i,s.bind(n),t);return a?Wp(a):Qh(),l}function yC(r,e){const t=e.split(".");return()=>{let n=r;for(let i=0;i<t.length&&n;i++)n=n[t[i]];return n}}function Nh(r,e){if(!Ns(r)||r.__v_skip||(e=e||new Set,e.has(r)))return r;if(e.add(r),Hs(r))Nh(r.value,e);else if(Pi(r))for(let t=0;t<r.length;t++)Nh(r[t],e);else if(wg(r)||$p(r))r.forEach(t=>{Nh(t,e)});else if(Vv(r))for(const t in r)Nh(r[t],e);return r}function bT(r,e){const t=Wo;if(t===null)return r;const n=Rg(t)||t.proxy,i=r.dirs||(r.dirs=[]);for(let s=0;s<e.length;s++){let[a,l,p,m=zs]=e[s];a&&(Vi(a)&&(a={mounted:a,updated:a}),a.deep&&Nh(l),i.push({dir:a,instance:n,value:l,oldValue:void 0,arg:p,modifiers:m}))}return r}function wh(r,e,t,n){const i=r.dirs,s=e&&e.dirs;for(let a=0;a<i.length;a++){const l=i[a];s&&(l.oldValue=s[a].value);let p=l.dir[n];p&&(rf(),Su(p,t,8,[r.el,l,r,e]),nf())}}/*! #__NO_SIDE_EFFECTS__ */function vo(r,e){return Vi(r)?Yo({name:r.name},e,{setup:r}):r}const Ff=r=>!!r.type.__asyncLoader,DC=r=>r.type.__isKeepAlive;function vT(r,e){OC(r,"a",e)}function CT(r,e){OC(r,"da",e)}function OC(r,e,t=Mo){const n=r.__wdc||(r.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return r()});if(Bg(e,n,t),t){let i=t.parent;for(;i&&i.parent;)DC(i.parent.vnode)&&ST(n,e,t,i),i=i.parent}}function ST(r,e,t,n){const i=Bg(e,r,n,!0);xC(()=>{kD(n[e],i)},t)}function Bg(r,e,t=Mo,n=!1){if(t){const i=t[r]||(t[r]=[]),s=e.__weh||(e.__weh=(...a)=>{if(t.isUnmounted)return;rf(),Wp(t);const l=Su(e,t,r,a);return Qh(),nf(),l});return n?i.unshift(s):i.push(s),s}}const ac=r=>(e,t=Mo)=>(!Yf||r==="sp")&&Bg(r,(...n)=>e(...n),t),ET=ac("bm"),Ng=ac("m"),wT=ac("bu"),AT=ac("u"),TT=ac("bum"),xC=ac("um"),PT=ac("sp"),kT=ac("rtg"),FT=ac("rtc");function _T(r,e=Mo){Bg("ec",r,e)}function Lc(r,e,t,n){let i;const s=t&&t[n];if(Pi(r)||xo(r)){i=new Array(r.length);for(let a=0,l=r.length;a<l;a++)i[a]=e(r[a],a,void 0,s&&s[a])}else if(typeof r=="number"){i=new Array(r);for(let a=0;a<r;a++)i[a]=e(a+1,a,void 0,s&&s[a])}else if(Ns(r))if(r[Symbol.iterator])i=Array.from(r,(a,l)=>e(a,l,void 0,s&&s[l]));else{const a=Object.keys(r);i=new Array(a.length);for(let l=0,p=a.length;l<p;l++){const m=a[l];i[l]=e(r[m],m,l,s&&s[l])}}else i=[];return t&&(t[n]=i),i}function tc(r,e,t={},n,i){if(Wo.isCE||Wo.parent&&Ff(Wo.parent)&&Wo.parent.isCE)return e!=="default"&&(t.name=e),bs("slot",t,n&&n());let s=r[e];s&&s._c&&(s._d=!1),bi();const a=s&&bC(s(t)),l=Zo(ho,{key:t.key||a&&a.key||`_${e}`},a||(n?n():[]),a&&r._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function bC(r){return r.some(e=>Lm(e)?!(e.type===Jc||e.type===ho&&!bC(e.children)):!0)?r:null}const my=r=>r?$C(r)?Rg(r)||r.proxy:my(r.parent):null,_f=Yo(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>my(r.parent),$root:r=>my(r.root),$emit:r=>r.emit,$options:r=>VD(r),$forceUpdate:r=>r.f||(r.f=()=>LD(r.update)),$nextTick:r=>r.n||(r.n=Hh.bind(r.proxy)),$watch:r=>xT.bind(r)}),x0=(r,e)=>r!==zs&&!r.__isScriptSetup&&ms(r,e),$T={get({_:r},e){const{ctx:t,setupState:n,data:i,props:s,accessCache:a,type:l,appContext:p}=r;let m;if(e[0]!=="$"){const $=a[e];if($!==void 0)switch($){case 1:return n[e];case 2:return i[e];case 4:return t[e];case 3:return s[e]}else{if(x0(n,e))return a[e]=1,n[e];if(i!==zs&&ms(i,e))return a[e]=2,i[e];if((m=r.propsOptions[0])&&ms(m,e))return a[e]=3,s[e];if(t!==zs&&ms(t,e))return a[e]=4,t[e];gy&&(a[e]=0)}}const g=_f[e];let b,S;if(g)return e==="$attrs"&&_a(r,"get",e),g(r);if((b=l.__cssModules)&&(b=b[e]))return b;if(t!==zs&&ms(t,e))return a[e]=4,t[e];if(S=p.config.globalProperties,ms(S,e))return S[e]},set({_:r},e,t){const{data:n,setupState:i,ctx:s}=r;return x0(i,e)?(i[e]=t,!0):n!==zs&&ms(n,e)?(n[e]=t,!0):ms(r.props,e)||e[0]==="$"&&e.slice(1)in r?!1:(s[e]=t,!0)},has({_:{data:r,setupState:e,accessCache:t,ctx:n,appContext:i,propsOptions:s}},a){let l;return!!t[a]||r!==zs&&ms(r,a)||x0(e,a)||(l=s[0])&&ms(l,a)||ms(n,a)||ms(_f,a)||ms(i.config.globalProperties,a)},defineProperty(r,e,t){return t.get!=null?r._.accessCache[e]=0:ms(t,"value")&&this.set(r,e,t.value,null),Reflect.defineProperty(r,e,t)}};function u1(r){return Pi(r)?r.reduce((e,t)=>(e[t]=null,e),{}):r}let gy=!0;function BT(r){const e=VD(r),t=r.proxy,n=r.ctx;gy=!1,e.beforeCreate&&l1(e.beforeCreate,r,"bc");const{data:i,computed:s,methods:a,watch:l,provide:p,inject:m,created:g,beforeMount:b,mounted:S,beforeUpdate:$,updated:G,activated:be,deactivated:ke,beforeDestroy:me,beforeUnmount:Ve,destroyed:Dt,unmounted:ht,render:bt,renderTracked:Yt,renderTriggered:ir,errorCaptured:qr,serverPrefetch:yr,expose:kr,inheritAttrs:Zr,components:zn,directives:Gn,filters:Ii}=e;if(m&&NT(m,n,null),a)for(const Wn in a){const jn=a[Wn];Vi(jn)&&(n[Wn]=jn.bind(t))}if(i){const Wn=i.call(t,t);Ns(Wn)&&(r.data=Dd(Wn))}if(gy=!0,s)for(const Wn in s){const jn=s[Wn],Bn=Vi(jn)?jn.bind(t,t):Vi(jn.get)?jn.get.bind(t,t):dl,$i=!Vi(jn)&&Vi(jn.set)?jn.set.bind(t):dl,Ui=as({get:Bn,set:$i});Object.defineProperty(n,Wn,{enumerable:!0,configurable:!0,get:()=>Ui.value,set:os=>Ui.value=os})}if(l)for(const Wn in l)vC(l[Wn],n,t,Wn);if(p){const Wn=Vi(p)?p.call(t):p;Reflect.ownKeys(Wn).forEach(jn=>{ym(jn,Wn[jn])})}g&&l1(g,r,"c");function Sn(Wn,jn){Pi(jn)?jn.forEach(Bn=>Wn(Bn.bind(t))):jn&&Wn(jn.bind(t))}if(Sn(ET,b),Sn(Ng,S),Sn(wT,$),Sn(AT,G),Sn(vT,be),Sn(CT,ke),Sn(_T,qr),Sn(FT,Yt),Sn(kT,ir),Sn(TT,Ve),Sn(xC,ht),Sn(PT,yr),Pi(kr))if(kr.length){const Wn=r.exposed||(r.exposed={});kr.forEach(jn=>{Object.defineProperty(Wn,jn,{get:()=>t[jn],set:Bn=>t[jn]=Bn})})}else r.exposed||(r.exposed={});bt&&r.render===dl&&(r.render=bt),Zr!=null&&(r.inheritAttrs=Zr),zn&&(r.components=zn),Gn&&(r.directives=Gn)}function NT(r,e,t=dl){Pi(r)&&(r=yy(r));for(const n in r){const i=r[n];let s;Ns(i)?"default"in i?s=gl(i.from||n,i.default,!0):s=gl(i.from||n):s=gl(i),Hs(s)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):e[n]=s}}function l1(r,e,t){Su(Pi(r)?r.map(n=>n.bind(e.proxy)):r.bind(e.proxy),e,t)}function vC(r,e,t,n){const i=n.includes(".")?yC(t,n):()=>t[n];if(xo(r)){const s=e[r];Vi(s)&&Ro(i,s)}else if(Vi(r))Ro(i,r.bind(t));else if(Ns(r))if(Pi(r))r.forEach(s=>vC(s,e,t,n));else{const s=Vi(r.handler)?r.handler.bind(t):e[r.handler];Vi(s)&&Ro(i,s,r)}}function VD(r){const e=r.type,{mixins:t,extends:n}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:a}}=r.appContext,l=s.get(e);let p;return l?p=l:!i.length&&!t&&!n?p=e:(p={},i.length&&i.forEach(m=>Qm(p,m,a,!0)),Qm(p,e,a)),Ns(e)&&s.set(e,p),p}function Qm(r,e,t,n=!1){const{mixins:i,extends:s}=e;s&&Qm(r,s,t,!0),i&&i.forEach(a=>Qm(r,a,t,!0));for(const a in e)if(!(n&&a==="expose")){const l=IT[a]||t&&t[a];r[a]=l?l(r[a],e[a]):e[a]}return r}const IT={data:c1,props:h1,emits:h1,methods:Sf,computed:Sf,beforeCreate:ha,created:ha,beforeMount:ha,mounted:ha,beforeUpdate:ha,updated:ha,beforeDestroy:ha,beforeUnmount:ha,destroyed:ha,unmounted:ha,activated:ha,deactivated:ha,errorCaptured:ha,serverPrefetch:ha,components:Sf,directives:Sf,watch:RT,provide:c1,inject:MT};function c1(r,e){return e?r?function(){return Yo(Vi(r)?r.call(this,this):r,Vi(e)?e.call(this,this):e)}:e:r}function MT(r,e){return Sf(yy(r),yy(e))}function yy(r){if(Pi(r)){const e={};for(let t=0;t<r.length;t++)e[r[t]]=r[t];return e}return r}function ha(r,e){return r?[...new Set([].concat(r,e))]:e}function Sf(r,e){return r?Yo(Object.create(null),r,e):e}function h1(r,e){return r?Pi(r)&&Pi(e)?[...new Set([...r,...e])]:Yo(Object.create(null),u1(r),u1(e??{})):e}function RT(r,e){if(!r)return e;if(!e)return r;const t=Yo(Object.create(null),r);for(const n in e)t[n]=ha(r[n],e[n]);return t}function CC(){return{app:null,config:{isNativeTag:uA,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 QT=0;function jT(r,e){return function(n,i=null){Vi(n)||(n=Yo({},n)),i!=null&&!Ns(i)&&(i=null);const s=CC(),a=new WeakSet;let l=!1;const p=s.app={_uid:QT++,_component:n,_props:i,_container:null,_context:s,_instance:null,version:hP,get config(){return s.config},set config(m){},use(m,...g){return a.has(m)||(m&&Vi(m.install)?(a.add(m),m.install(p,...g)):Vi(m)&&(a.add(m),m(p,...g))),p},mixin(m){return s.mixins.includes(m)||s.mixins.push(m),p},component(m,g){return g?(s.components[m]=g,p):s.components[m]},directive(m,g){return g?(s.directives[m]=g,p):s.directives[m]},mount(m,g,b){if(!l){const S=bs(n,i);return S.appContext=s,g&&e?e(S,m):r(S,m,b),l=!0,p._container=m,m.__vue_app__=p,Rg(S.component)||S.component.proxy}},unmount(){l&&(r(null,p._container),delete p._container.__vue_app__)},provide(m,g){return s.provides[m]=g,p},runWithContext(m){jm=p;try{return m()}finally{jm=null}}};return p}}let jm=null;function ym(r,e){if(Mo){let t=Mo.provides;const n=Mo.parent&&Mo.parent.provides;n===t&&(t=Mo.provides=Object.create(n)),t[r]=e}}function gl(r,e,t=!1){const n=Mo||Wo;if(n||jm){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:jm._context.provides;if(i&&r in i)return i[r];if(arguments.length>1)return t&&Vi(e)?e.call(n&&n.proxy):e}}function LT(r,e,t,n=!1){const i={},s={};Nm(s,Mg,1),r.propsDefaults=Object.create(null),SC(r,e,i,s);for(const a in r.propsOptions[0])a in i||(i[a]=void 0);t?r.props=n?i:iC(i):r.type.props?r.props=i:r.props=s,r.attrs=s}function XT(r,e,t,n){const{props:i,attrs:s,vnode:{patchFlag:a}}=r,l=Os(i),[p]=r.propsOptions;let m=!1;if((n||a>0)&&!(a&16)){if(a&8){const g=r.vnode.dynamicProps;for(let b=0;b<g.length;b++){let S=g[b];if(_g(r.emitsOptions,S))continue;const $=e[S];if(p)if(ms(s,S))$!==s[S]&&(s[S]=$,m=!0);else{const G=bl(S);i[G]=Dy(p,l,G,$,r,!1)}else $!==s[S]&&(s[S]=$,m=!0)}}}else{SC(r,e,i,s)&&(m=!0);let g;for(const b in l)(!e||!ms(e,b)&&((g=Gh(b))===b||!ms(e,g)))&&(p?t&&(t[b]!==void 0||t[g]!==void 0)&&(i[b]=Dy(p,l,b,void 0,r,!0)):delete i[b]);if(s!==l)for(const b in s)(!e||!ms(e,b))&&(delete s[b],m=!0)}m&&Kl(r,"set","$attrs")}function SC(r,e,t,n){const[i,s]=r.propsOptions;let a=!1,l;if(e)for(let p in e){if(mm(p))continue;const m=e[p];let g;i&&ms(i,g=bl(p))?!s||!s.includes(g)?t[g]=m:(l||(l={}))[g]=m:_g(r.emitsOptions,p)||(!(p in n)||m!==n[p])&&(n[p]=m,a=!0)}if(s){const p=Os(t),m=l||zs;for(let g=0;g<s.length;g++){const b=s[g];t[b]=Dy(i,p,b,m[b],r,!ms(m,b))}}return a}function Dy(r,e,t,n,i,s){const a=r[t];if(a!=null){const l=ms(a,"default");if(l&&n===void 0){const p=a.default;if(a.type!==Function&&!a.skipFactory&&Vi(p)){const{propsDefaults:m}=i;t in m?n=m[t]:(Wp(i),n=m[t]=p.call(null,e),Qh())}else n=p}a[0]&&(s&&!l?n=!1:a[1]&&(n===""||n===Gh(t))&&(n=!0))}return n}function EC(r,e,t=!1){const n=e.propsCache,i=n.get(r);if(i)return i;const s=r.props,a={},l=[];let p=!1;if(!Vi(r)){const g=b=>{p=!0;const[S,$]=EC(b,e,!0);Yo(a,S),$&&l.push(...$)};!t&&e.mixins.length&&e.mixins.forEach(g),r.extends&&g(r.extends),r.mixins&&r.mixins.forEach(g)}if(!s&&!p)return Ns(r)&&n.set(r,_p),_p;if(Pi(s))for(let g=0;g<s.length;g++){const b=bl(s[g]);p1(b)&&(a[b]=zs)}else if(s)for(const g in s){const b=bl(g);if(p1(b)){const S=s[g],$=a[b]=Pi(S)||Vi(S)?{type:S}:Yo({},S);if($){const G=m1(Boolean,$.type),be=m1(String,$.type);$[0]=G>-1,$[1]=be<0||G<be,(G>-1||ms($,"default"))&&l.push(b)}}}const m=[a,l];return Ns(r)&&n.set(r,m),m}function p1(r){return r[0]!=="$"}function f1(r){const e=r&&r.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:r===null?"null":""}function d1(r,e){return f1(r)===f1(e)}function m1(r,e){return Pi(e)?e.findIndex(t=>d1(t,r)):Vi(e)&&d1(e,r)?0:-1}const wC=r=>r[0]==="_"||r==="$stable",UD=r=>Pi(r)?r.map(ol):[ol(r)],VT=(r,e,t)=>{if(e._n)return e;const n=fa((...i)=>UD(e(...i)),t);return n._c=!1,n},AC=(r,e,t)=>{const n=r._ctx;for(const i in r){if(wC(i))continue;const s=r[i];if(Vi(s))e[i]=VT(i,s,n);else if(s!=null){const a=UD(s);e[i]=()=>a}}},TC=(r,e)=>{const t=UD(e);r.slots.default=()=>t},UT=(r,e)=>{if(r.vnode.shapeFlag&32){const t=e._;t?(r.slots=Os(e),Nm(e,"_",t)):AC(e,r.slots={})}else r.slots={},e&&TC(r,e);Nm(r.slots,Mg,1)},qT=(r,e,t)=>{const{vnode:n,slots:i}=r;let s=!0,a=zs;if(n.shapeFlag&32){const l=e._;l?t&&l===1?s=!1:(Yo(i,e),!t&&l===1&&delete i._):(s=!e.$stable,AC(e,i)),a=e}else e&&(TC(r,e),a={default:1});if(s)for(const l in i)!wC(l)&&a[l]==null&&delete i[l]};function Oy(r,e,t,n,i=!1){if(Pi(r)){r.forEach((S,$)=>Oy(S,e&&(Pi(e)?e[$]:e),t,n,i));return}if(Ff(n)&&!i)return;const s=n.shapeFlag&4?Rg(n.component)||n.component.proxy:n.el,a=i?null:s,{i:l,r:p}=r,m=e&&e.r,g=l.refs===zs?l.refs={}:l.refs,b=l.setupState;if(m!=null&&m!==p&&(xo(m)?(g[m]=null,ms(b,m)&&(b[m]=null)):Hs(m)&&(m.value=null)),Vi(p))zc(p,l,12,[a,g]);else{const S=xo(p),$=Hs(p);if(S||$){const G=()=>{if(r.f){const be=S?ms(b,p)?b[p]:g[p]:p.value;i?Pi(be)&&kD(be,s):Pi(be)?be.includes(s)||be.push(s):S?(g[p]=[s],ms(b,p)&&(b[p]=g[p])):(p.value=[s],r.k&&(g[r.k]=p.value))}else S?(g[p]=a,ms(b,p)&&(b[p]=a)):$&&(p.value=a,r.k&&(g[r.k]=a))};a?(G.id=-1,wa(G,t)):G()}}}const wa=OT;function zT(r){return WT(r)}function WT(r,e){const t=cy();t.__VUE__=!0;const{insert:n,remove:i,patchProp:s,createElement:a,createText:l,createComment:p,setText:m,setElementText:g,parentNode:b,nextSibling:S,setScopeId:$=dl,insertStaticContent:G}=r,be=(tt,gt,Zt,dr=null,Fr=null,Lr=null,yn=!1,Jr=null,on=!!gt.dynamicChildren)=>{if(tt===gt)return;tt&&!mf(tt,gt)&&(dr=Sr(tt),os(tt,Fr,Lr,!0),tt=null),gt.patchFlag===-2&&(on=!1,gt.dynamicChildren=null);const{type:Xr,ref:ei,shapeFlag:xn}=gt;switch(Xr){case Ig:ke(tt,gt,Zt,dr);break;case Jc:me(tt,gt,Zt,dr);break;case b0:tt==null&&Ve(gt,Zt,dr,yn);break;case ho:zn(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on);break;default:xn&1?bt(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on):xn&6?Gn(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on):(xn&64||xn&128)&&Xr.process(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on,zr)}ei!=null&&Fr&&Oy(ei,tt&&tt.ref,Lr,gt||tt,!gt)},ke=(tt,gt,Zt,dr)=>{if(tt==null)n(gt.el=l(gt.children),Zt,dr);else{const Fr=gt.el=tt.el;gt.children!==tt.children&&m(Fr,gt.children)}},me=(tt,gt,Zt,dr)=>{tt==null?n(gt.el=p(gt.children||""),Zt,dr):gt.el=tt.el},Ve=(tt,gt,Zt,dr)=>{[tt.el,tt.anchor]=G(tt.children,gt,Zt,dr,tt.el,tt.anchor)},Dt=({el:tt,anchor:gt},Zt,dr)=>{let Fr;for(;tt&&tt!==gt;)Fr=S(tt),n(tt,Zt,dr),tt=Fr;n(gt,Zt,dr)},ht=({el:tt,anchor:gt})=>{let Zt;for(;tt&&tt!==gt;)Zt=S(tt),i(tt),tt=Zt;i(gt)},bt=(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on)=>{yn=yn||gt.type==="svg",tt==null?Yt(gt,Zt,dr,Fr,Lr,yn,Jr,on):yr(tt,gt,Fr,Lr,yn,Jr,on)},Yt=(tt,gt,Zt,dr,Fr,Lr,yn,Jr)=>{let on,Xr;const{type:ei,props:xn,shapeFlag:ti,transition:Ai,dirs:ji}=tt;if(on=tt.el=a(tt.type,Lr,xn&&xn.is,xn),ti&8?g(on,tt.children):ti&16&&qr(tt.children,on,null,dr,Fr,Lr&&ei!=="foreignObject",yn,Jr),ji&&wh(tt,null,dr,"created"),ir(on,tt,tt.scopeId,yn,dr),xn){for(const is in xn)is!=="value"&&!mm(is)&&s(on,is,null,xn[is],Lr,tt.children,dr,Fr,Ts);"value"in xn&&s(on,"value",null,xn.value),(Xr=xn.onVnodeBeforeMount)&&tl(Xr,dr,tt)}ji&&wh(tt,null,dr,"beforeMount");const ls=ZT(Fr,Ai);ls&&Ai.beforeEnter(on),n(on,gt,Zt),((Xr=xn&&xn.onVnodeMounted)||ls||ji)&&wa(()=>{Xr&&tl(Xr,dr,tt),ls&&Ai.enter(on),ji&&wh(tt,null,dr,"mounted")},Fr)},ir=(tt,gt,Zt,dr,Fr)=>{if(Zt&&$(tt,Zt),dr)for(let Lr=0;Lr<dr.length;Lr++)$(tt,dr[Lr]);if(Fr){let Lr=Fr.subTree;if(gt===Lr){const yn=Fr.vnode;ir(tt,yn,yn.scopeId,yn.slotScopeIds,Fr.parent)}}},qr=(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on=0)=>{for(let Xr=on;Xr<tt.length;Xr++){const ei=tt[Xr]=Jr?Ic(tt[Xr]):ol(tt[Xr]);be(null,ei,gt,Zt,dr,Fr,Lr,yn,Jr)}},yr=(tt,gt,Zt,dr,Fr,Lr,yn)=>{const Jr=gt.el=tt.el;let{patchFlag:on,dynamicChildren:Xr,dirs:ei}=gt;on|=tt.patchFlag&16;const xn=tt.props||zs,ti=gt.props||zs;let Ai;Zt&&Ah(Zt,!1),(Ai=ti.onVnodeBeforeUpdate)&&tl(Ai,Zt,gt,tt),ei&&wh(gt,tt,Zt,"beforeUpdate"),Zt&&Ah(Zt,!0);const ji=Fr&>.type!=="foreignObject";if(Xr?kr(tt.dynamicChildren,Xr,Jr,Zt,dr,ji,Lr):yn||jn(tt,gt,Jr,null,Zt,dr,ji,Lr,!1),on>0){if(on&16)Zr(Jr,gt,xn,ti,Zt,dr,Fr);else if(on&2&&xn.class!==ti.class&&s(Jr,"class",null,ti.class,Fr),on&4&&s(Jr,"style",xn.style,ti.style,Fr),on&8){const ls=gt.dynamicProps;for(let is=0;is<ls.length;is++){const Ps=ls[is],Co=xn[Ps],ya=ti[Ps];(ya!==Co||Ps==="value")&&s(Jr,Ps,Co,ya,Fr,tt.children,Zt,dr,Ts)}}on&1&&tt.children!==gt.children&&g(Jr,gt.children)}else!yn&&Xr==null&&Zr(Jr,gt,xn,ti,Zt,dr,Fr);((Ai=ti.onVnodeUpdated)||ei)&&wa(()=>{Ai&&tl(Ai,Zt,gt,tt),ei&&wh(gt,tt,Zt,"updated")},dr)},kr=(tt,gt,Zt,dr,Fr,Lr,yn)=>{for(let Jr=0;Jr<gt.length;Jr++){const on=tt[Jr],Xr=gt[Jr],ei=on.el&&(on.type===ho||!mf(on,Xr)||on.shapeFlag&70)?b(on.el):Zt;be(on,Xr,ei,null,dr,Fr,Lr,yn,!0)}},Zr=(tt,gt,Zt,dr,Fr,Lr,yn)=>{if(Zt!==dr){if(Zt!==zs)for(const Jr in Zt)!mm(Jr)&&!(Jr in dr)&&s(tt,Jr,Zt[Jr],null,yn,gt.children,Fr,Lr,Ts);for(const Jr in dr){if(mm(Jr))continue;const on=dr[Jr],Xr=Zt[Jr];on!==Xr&&Jr!=="value"&&s(tt,Jr,Xr,on,yn,gt.children,Fr,Lr,Ts)}"value"in dr&&s(tt,"value",Zt.value,dr.value)}},zn=(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on)=>{const Xr=gt.el=tt?tt.el:l(""),ei=gt.anchor=tt?tt.anchor:l("");let{patchFlag:xn,dynamicChildren:ti,slotScopeIds:Ai}=gt;Ai&&(Jr=Jr?Jr.concat(Ai):Ai),tt==null?(n(Xr,Zt,dr),n(ei,Zt,dr),qr(gt.children,Zt,ei,Fr,Lr,yn,Jr,on)):xn>0&&xn&64&&ti&&tt.dynamicChildren?(kr(tt.dynamicChildren,ti,Zt,Fr,Lr,yn,Jr),(gt.key!=null||Fr&>===Fr.subTree)&&PC(tt,gt,!0)):jn(tt,gt,Zt,ei,Fr,Lr,yn,Jr,on)},Gn=(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on)=>{gt.slotScopeIds=Jr,tt==null?gt.shapeFlag&512?Fr.ctx.activate(gt,Zt,dr,yn,on):Ii(gt,Zt,dr,Fr,Lr,yn,on):ii(tt,gt,on)},Ii=(tt,gt,Zt,dr,Fr,Lr,yn)=>{const Jr=tt.component=rP(tt,dr,Fr);if(DC(tt)&&(Jr.ctx.renderer=zr),nP(Jr),Jr.asyncDep){if(Fr&&Fr.registerDep(Jr,Sn),!tt.el){const on=Jr.subTree=bs(Jc);me(null,on,gt,Zt)}return}Sn(Jr,tt,gt,Zt,Fr,Lr,yn)},ii=(tt,gt,Zt)=>{const dr=gt.component=tt.component;if(dT(tt,gt,Zt))if(dr.asyncDep&&!dr.asyncResolved){Wn(dr,gt,Zt);return}else dr.next=gt,sT(dr.update),dr.update();else gt.el=tt.el,dr.vnode=gt},Sn=(tt,gt,Zt,dr,Fr,Lr,yn)=>{const Jr=()=>{if(tt.isMounted){let{next:ei,bu:xn,u:ti,parent:Ai,vnode:ji}=tt,ls=ei,is;Ah(tt,!1),ei?(ei.el=ji.el,Wn(tt,ei,yn)):ei=ji,xn&&gm(xn),(is=ei.props&&ei.props.onVnodeBeforeUpdate)&&tl(is,Ai,ei,ji),Ah(tt,!0);const Ps=O0(tt),Co=tt.subTree;tt.subTree=Ps,be(Co,Ps,b(Co.el),Sr(Co),tt,Fr,Lr),ei.el=Ps.el,ls===null&&mT(tt,Ps.el),ti&&wa(ti,Fr),(is=ei.props&&ei.props.onVnodeUpdated)&&wa(()=>tl(is,Ai,ei,ji),Fr)}else{let ei;const{el:xn,props:ti}=gt,{bm:Ai,m:ji,parent:ls}=tt,is=Ff(gt);if(Ah(tt,!1),Ai&&gm(Ai),!is&&(ei=ti&&ti.onVnodeBeforeMount)&&tl(ei,ls,gt),Ah(tt,!0),xn&&Ki){const Ps=()=>{tt.subTree=O0(tt),Ki(xn,tt.subTree,tt,Fr,null)};is?gt.type.__asyncLoader().then(()=>!tt.isUnmounted&&Ps()):Ps()}else{const Ps=tt.subTree=O0(tt);be(null,Ps,Zt,dr,tt,Fr,Lr),gt.el=Ps.el}if(ji&&wa(ji,Fr),!is&&(ei=ti&&ti.onVnodeMounted)){const Ps=gt;wa(()=>tl(ei,ls,Ps),Fr)}(gt.shapeFlag&256||ls&&Ff(ls.vnode)&&ls.vnode.shapeFlag&256)&&tt.a&&wa(tt.a,Fr),tt.isMounted=!0,gt=Zt=dr=null}},on=tt.effect=new $D(Jr,()=>LD(Xr),tt.scope),Xr=tt.update=()=>on.run();Xr.id=tt.uid,Ah(tt,!0),Xr()},Wn=(tt,gt,Zt)=>{gt.component=tt;const dr=tt.vnode.props;tt.vnode=gt,tt.next=null,XT(tt,gt.props,dr,Zt),qT(tt,gt.children,Zt),rf(),s1(),nf()},jn=(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on=!1)=>{const Xr=tt&&tt.children,ei=tt?tt.shapeFlag:0,xn=gt.children,{patchFlag:ti,shapeFlag:Ai}=gt;if(ti>0){if(ti&128){$i(Xr,xn,Zt,dr,Fr,Lr,yn,Jr,on);return}else if(ti&256){Bn(Xr,xn,Zt,dr,Fr,Lr,yn,Jr,on);return}}Ai&8?(ei&16&&Ts(Xr,Fr,Lr),xn!==Xr&&g(Zt,xn)):ei&16?Ai&16?$i(Xr,xn,Zt,dr,Fr,Lr,yn,Jr,on):Ts(Xr,Fr,Lr,!0):(ei&8&&g(Zt,""),Ai&16&&qr(xn,Zt,dr,Fr,Lr,yn,Jr,on))},Bn=(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on)=>{tt=tt||_p,gt=gt||_p;const Xr=tt.length,ei=gt.length,xn=Math.min(Xr,ei);let ti;for(ti=0;ti<xn;ti++){const Ai=gt[ti]=on?Ic(gt[ti]):ol(gt[ti]);be(tt[ti],Ai,Zt,null,Fr,Lr,yn,Jr,on)}Xr>ei?Ts(tt,Fr,Lr,!0,!1,xn):qr(gt,Zt,dr,Fr,Lr,yn,Jr,on,xn)},$i=(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on)=>{let Xr=0;const ei=gt.length;let xn=tt.length-1,ti=ei-1;for(;Xr<=xn&&Xr<=ti;){const Ai=tt[Xr],ji=gt[Xr]=on?Ic(gt[Xr]):ol(gt[Xr]);if(mf(Ai,ji))be(Ai,ji,Zt,null,Fr,Lr,yn,Jr,on);else break;Xr++}for(;Xr<=xn&&Xr<=ti;){const Ai=tt[xn],ji=gt[ti]=on?Ic(gt[ti]):ol(gt[ti]);if(mf(Ai,ji))be(Ai,ji,Zt,null,Fr,Lr,yn,Jr,on);else break;xn--,ti--}if(Xr>xn){if(Xr<=ti){const Ai=ti+1,ji=Ai<ei?gt[Ai].el:dr;for(;Xr<=ti;)be(null,gt[Xr]=on?Ic(gt[Xr]):ol(gt[Xr]),Zt,ji,Fr,Lr,yn,Jr,on),Xr++}}else if(Xr>ti)for(;Xr<=xn;)os(tt[Xr],Fr,Lr,!0),Xr++;else{const Ai=Xr,ji=Xr,ls=new Map;for(Xr=ji;Xr<=ti;Xr++){const so=gt[Xr]=on?Ic(gt[Xr]):ol(gt[Xr]);so.key!=null&&ls.set(so.key,Xr)}let is,Ps=0;const Co=ti-ji+1;let ya=!1,Go=0;const Da=new Array(Co);for(Xr=0;Xr<Co;Xr++)Da[Xr]=0;for(Xr=Ai;Xr<=xn;Xr++){const so=tt[Xr];if(Ps>=Co){os(so,Fr,Lr,!0);continue}let Hr;if(so.key!=null)Hr=ls.get(so.key);else for(is=ji;is<=ti;is++)if(Da[is-ji]===0&&mf(so,gt[is])){Hr=is;break}Hr===void 0?os(so,Fr,Lr,!0):(Da[Hr-ji]=Xr+1,Hr>=Go?Go=Hr:ya=!0,be(so,gt[Hr],Zt,null,Fr,Lr,yn,Jr,on),Ps++)}const Fu=ya?YT(Da):_p;for(is=Fu.length-1,Xr=Co-1;Xr>=0;Xr--){const so=ji+Xr,Hr=gt[so],Kt=so+1<ei?gt[so+1].el:dr;Da[Xr]===0?be(null,Hr,Zt,Kt,Fr,Lr,yn,Jr,on):ya&&(is<0||Xr!==Fu[is]?Ui(Hr,Zt,Kt,2):is--)}}},Ui=(tt,gt,Zt,dr,Fr=null)=>{const{el:Lr,type:yn,transition:Jr,children:on,shapeFlag:Xr}=tt;if(Xr&6){Ui(tt.component.subTree,gt,Zt,dr);return}if(Xr&128){tt.suspense.move(gt,Zt,dr);return}if(Xr&64){yn.move(tt,gt,Zt,zr);return}if(yn===ho){n(Lr,gt,Zt);for(let xn=0;xn<on.length;xn++)Ui(on[xn],gt,Zt,dr);n(tt.anchor,gt,Zt);return}if(yn===b0){Dt(tt,gt,Zt);return}if(dr!==2&&Xr&1&&Jr)if(dr===0)Jr.beforeEnter(Lr),n(Lr,gt,Zt),wa(()=>Jr.enter(Lr),Fr);else{const{leave:xn,delayLeave:ti,afterLeave:Ai}=Jr,ji=()=>n(Lr,gt,Zt),ls=()=>{xn(Lr,()=>{ji(),Ai&&Ai()})};ti?ti(Lr,ji,ls):ls()}else n(Lr,gt,Zt)},os=(tt,gt,Zt,dr=!1,Fr=!1)=>{const{type:Lr,props:yn,ref:Jr,children:on,dynamicChildren:Xr,shapeFlag:ei,patchFlag:xn,dirs:ti}=tt;if(Jr!=null&&Oy(Jr,null,Zt,tt,!0),ei&256){gt.ctx.deactivate(tt);return}const Ai=ei&1&&ti,ji=!Ff(tt);let ls;if(ji&&(ls=yn&&yn.onVnodeBeforeUnmount)&&tl(ls,gt,tt),ei&6)Xs(tt.component,Zt,dr);else{if(ei&128){tt.suspense.unmount(Zt,dr);return}Ai&&wh(tt,null,gt,"beforeUnmount"),ei&64?tt.type.remove(tt,gt,Zt,Fr,zr,dr):Xr&&(Lr!==ho||xn>0&&xn&64)?Ts(Xr,gt,Zt,!1,!0):(Lr===ho&&xn&384||!Fr&&ei&16)&&Ts(on,gt,Zt),dr&&ds(tt)}(ji&&(ls=yn&&yn.onVnodeUnmounted)||Ai)&&wa(()=>{ls&&tl(ls,gt,tt),Ai&&wh(tt,null,gt,"unmounted")},Zt)},ds=tt=>{const{type:gt,el:Zt,anchor:dr,transition:Fr}=tt;if(gt===ho){us(Zt,dr);return}if(gt===b0){ht(tt);return}const Lr=()=>{i(Zt),Fr&&!Fr.persisted&&Fr.afterLeave&&Fr.afterLeave()};if(tt.shapeFlag&1&&Fr&&!Fr.persisted){const{leave:yn,delayLeave:Jr}=Fr,on=()=>yn(Zt,Lr);Jr?Jr(tt.el,Lr,on):on()}else Lr()},us=(tt,gt)=>{let Zt;for(;tt!==gt;)Zt=S(tt),i(tt),tt=Zt;i(gt)},Xs=(tt,gt,Zt)=>{const{bum:dr,scope:Fr,update:Lr,subTree:yn,um:Jr}=tt;dr&&gm(dr),Fr.stop(),Lr&&(Lr.active=!1,os(yn,tt,gt,Zt)),Jr&&wa(Jr,gt),wa(()=>{tt.isUnmounted=!0},gt),gt&>.pendingBranch&&!gt.isUnmounted&&tt.asyncDep&&!tt.asyncResolved&&tt.suspenseId===gt.pendingId&&(gt.deps--,gt.deps===0&>.resolve())},Ts=(tt,gt,Zt,dr=!1,Fr=!1,Lr=0)=>{for(let yn=Lr;yn<tt.length;yn++)os(tt[yn],gt,Zt,dr,Fr)},Sr=tt=>tt.shapeFlag&6?Sr(tt.component.subTree):tt.shapeFlag&128?tt.suspense.next():S(tt.anchor||tt.el),cn=(tt,gt,Zt)=>{tt==null?gt._vnode&&os(gt._vnode,null,null,!0):be(gt._vnode||null,tt,gt,null,null,null,Zt),s1(),pC(),gt._vnode=tt},zr={p:be,um:os,m:Ui,r:ds,mt:Ii,mc:qr,pc:jn,pbc:kr,n:Sr,o:r};let In,Ki;return e&&([In,Ki]=e(zr)),{render:cn,hydrate:In,createApp:jT(cn,In)}}function Ah({effect:r,update:e},t){r.allowRecurse=e.allowRecurse=t}function ZT(r,e){return(!r||r&&!r.pendingBranch)&&e&&!e.persisted}function PC(r,e,t=!1){const n=r.children,i=e.children;if(Pi(n)&&Pi(i))for(let s=0;s<n.length;s++){const a=n[s];let l=i[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[s]=Ic(i[s]),l.el=a.el),t||PC(a,l)),l.type===Ig&&(l.el=a.el)}}function YT(r){const e=r.slice(),t=[0];let n,i,s,a,l;const p=r.length;for(n=0;n<p;n++){const m=r[n];if(m!==0){if(i=t[t.length-1],r[i]<m){e[n]=i,t.push(n);continue}for(s=0,a=t.length-1;s<a;)l=s+a>>1,r[t[l]]<m?s=l+1:a=l;m<r[t[s]]&&(s>0&&(e[n]=t[s-1]),t[s]=n)}}for(s=t.length,a=t[s-1];s-- >0;)t[s]=a,a=e[a];return t}const GT=r=>r.__isTeleport,ho=Symbol.for("v-fgt"),Ig=Symbol.for("v-txt"),Jc=Symbol.for("v-cmt"),b0=Symbol.for("v-stc"),$f=[];let vu=null;function bi(r=!1){$f.push(vu=r?null:[])}function HT(){$f.pop(),vu=$f[$f.length-1]||null}let Zf=1;function g1(r){Zf+=r}function kC(r){return r.dynamicChildren=Zf>0?vu||_p:null,HT(),Zf>0&&vu&&vu.push(r),r}function ns(r,e,t,n,i,s){return kC(sn(r,e,t,n,i,s,!0))}function Zo(r,e,t,n,i){return kC(bs(r,e,t,n,i,!0))}function Lm(r){return r?r.__v_isVNode===!0:!1}function mf(r,e){return r.type===e.type&&r.key===e.key}const Mg="__vInternal",FC=({key:r})=>r??null,Dm=({ref:r,ref_key:e,ref_for:t})=>(typeof r=="number"&&(r=""+r),r!=null?xo(r)||Hs(r)||Vi(r)?{i:Wo,r,k:e,f:!!t}:r:null);function sn(r,e=null,t=null,n=0,i=null,s=r===ho?0:1,a=!1,l=!1){const p={__v_isVNode:!0,__v_skip:!0,type:r,props:e,key:e&&FC(e),ref:e&&Dm(e),scopeId:$g,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Wo};return l?(qD(p,t),s&128&&r.normalize(p)):t&&(p.shapeFlag|=xo(t)?8:16),Zf>0&&!a&&vu&&(p.patchFlag>0||s&6)&&p.patchFlag!==32&&vu.push(p),p}const bs=JT;function JT(r,e=null,t=null,n=0,i=null,s=!1){if((!r||r===gT)&&(r=Jc),Lm(r)){const l=zp(r,e,!0);return t&&qD(l,t),Zf>0&&!s&&vu&&(l.shapeFlag&6?vu[vu.indexOf(r)]=l:vu.push(l)),l.patchFlag|=-2,l}if(uP(r)&&(r=r.__vccOpts),e){e=_C(e);let{class:l,style:p}=e;l&&!xo(l)&&(e.class=Fa(l)),Ns(p)&&(sC(p)&&!Pi(p)&&(p=Yo({},p)),e.style=ml(p))}const a=xo(r)?1:DT(r)?128:GT(r)?64:Ns(r)?4:Vi(r)?2:0;return sn(r,e,t,n,i,a,s,!0)}function _C(r){return r?sC(r)||Mg in r?Yo({},r):r:null}function zp(r,e,t=!1){const{props:n,ref:i,patchFlag:s,children:a}=r,l=e?KT(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:l,key:l&&FC(l),ref:e&&e.ref?t&&i?Pi(i)?i.concat(Dm(e)):[i,Dm(e)]:Dm(e):i,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:a,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:e&&r.type!==ho?s===-1?16:s|16:s,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:r.transition,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&zp(r.ssContent),ssFallback:r.ssFallback&&zp(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce}}function pa(r=" ",e=0){return bs(Ig,null,r,e)}function Eu(r="",e=!1){return e?(bi(),Zo(Jc,null,r)):bs(Jc,null,r)}function ol(r){return r==null||typeof r=="boolean"?bs(Jc):Pi(r)?bs(ho,null,r.slice()):typeof r=="object"?Ic(r):bs(Ig,null,String(r))}function Ic(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:zp(r)}function qD(r,e){let t=0;const{shapeFlag:n}=r;if(e==null)e=null;else if(Pi(e))t=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),qD(r,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!(Mg in e)?e._ctx=Wo:i===3&&Wo&&(Wo.slots._===1?e._=1:(e._=2,r.patchFlag|=1024))}else Vi(e)?(e={default:e,_ctx:Wo},t=32):(e=String(e),n&64?(t=16,e=[pa(e)]):t=8);r.children=e,r.shapeFlag|=t}function KT(...r){const e={};for(let t=0;t<r.length;t++){const n=r[t];for(const i in n)if(i==="class")e.class!==n.class&&(e.class=Fa([e.class,n.class]));else if(i==="style")e.style=ml([e.style,n.style]);else if(Eg(i)){const s=e[i],a=n[i];a&&s!==a&&!(Pi(s)&&s.includes(a))&&(e[i]=s?[].concat(s,a):a)}else i!==""&&(e[i]=n[i])}return e}function tl(r,e,t,n=null){Su(r,e,7,[t,n])}const eP=CC();let tP=0;function rP(r,e,t){const n=r.type,i=(e?e.appContext:r.appContext)||eP,s={uid:tP++,vnode:r,type:n,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new CA(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:EC(n,i),emitsOptions:dC(n,i),emit:null,emitted:null,propsDefaults:zs,inheritAttrs:n.inheritAttrs,ctx:zs,data:zs,props:zs,attrs:zs,slots:zs,refs:zs,setupState:zs,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:t,suspenseId:t?t.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 s.ctx={_:s},s.root=e?e.root:s,s.emit=uT.bind(null,s),r.ce&&r.ce(s),s}let Mo=null;const zD=()=>Mo||Wo;let WD,vp,y1="__VUE_INSTANCE_SETTERS__";(vp=cy()[y1])||(vp=cy()[y1]=[]),vp.push(r=>Mo=r),WD=r=>{vp.length>1?vp.forEach(e=>e(r)):vp[0](r)};const Wp=r=>{WD(r),r.scope.on()},Qh=()=>{Mo&&Mo.scope.off(),WD(null)};function $C(r){return r.vnode.shapeFlag&4}let Yf=!1;function nP(r,e=!1){Yf=e;const{props:t,children:n}=r.vnode,i=$C(r);LT(r,t,i,e),UT(r,n);const s=i?iP(r,e):void 0;return Yf=!1,s}function iP(r,e){const t=r.type;r.accessCache=Object.create(null),r.proxy=oC(new Proxy(r.ctx,$T));const{setup:n}=t;if(n){const i=r.setupContext=n.length>1?oP(r):null;Wp(r),rf();const s=zc(n,r,0,[r.props,i]);if(nf(),Qh(),Lv(s)){if(s.then(Qh,Qh),e)return s.then(a=>{D1(r,a,e)}).catch(a=>{Fg(a,r,0)});r.asyncDep=s}else D1(r,s,e)}else BC(r,e)}function D1(r,e,t){Vi(e)?r.type.__ssrInlineRender?r.ssrRender=e:r.render=e:Ns(e)&&(r.setupState=uC(e)),BC(r,t)}let O1;function BC(r,e,t){const n=r.type;if(!r.render){if(!e&&O1&&!n.render){const i=n.template||VD(r).template;if(i){const{isCustomElement:s,compilerOptions:a}=r.appContext.config,{delimiters:l,compilerOptions:p}=n,m=Yo(Yo({isCustomElement:s,delimiters:l},a),p);n.render=O1(i,m)}}r.render=n.render||dl}{Wp(r),rf();try{BT(r)}finally{nf(),Qh()}}}function sP(r){return r.attrsProxy||(r.attrsProxy=new Proxy(r.attrs,{get(e,t){return _a(r,"get","$attrs"),e[t]}}))}function oP(r){const e=t=>{r.exposed=t||{}};return{get attrs(){return sP(r)},slots:r.slots,emit:r.emit,expose:e}}function Rg(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(uC(oC(r.exposed)),{get(e,t){if(t in e)return e[t];if(t in _f)return _f[t](r)},has(e,t){return t in e||t in _f}}))}function aP(r,e=!0){return Vi(r)?r.displayName||r.name:r.name||e&&r.__name}function uP(r){return Vi(r)&&"__vccOpts"in r}const as=(r,e)=>rT(r,e,Yf);function ZD(r,e,t){const n=arguments.length;return n===2?Ns(e)&&!Pi(e)?Lm(e)?bs(r,null,[e]):bs(r,e):bs(r,null,e):(n>3?t=Array.prototype.slice.call(arguments,2):n===3&&Lm(t)&&(t=[t]),bs(r,e,t))}const lP=Symbol.for("v-scx"),cP=()=>gl(lP),hP="3.3.9",pP="http://www.w3.org/2000/svg",_h=typeof document<"u"?document:null,x1=_h&&_h.createElement("template"),fP={insert:(r,e,t)=>{e.insertBefore(r,t||null)},remove:r=>{const e=r.parentNode;e&&e.removeChild(r)},createElement:(r,e,t,n)=>{const i=e?_h.createElementNS(pP,r):_h.createElement(r,t?{is:t}:void 0);return r==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:r=>_h.createTextNode(r),createComment:r=>_h.createComment(r),setText:(r,e)=>{r.nodeValue=e},setElementText:(r,e)=>{r.textContent=e},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>_h.querySelector(r),setScopeId(r,e){r.setAttribute(e,"")},insertStaticContent(r,e,t,n,i,s){const a=t?t.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===s||!(i=i.nextSibling)););else{x1.innerHTML=n?`<svg>${r}</svg>`:r;const l=x1.content;if(n){const p=l.firstChild;for(;p.firstChild;)l.appendChild(p.firstChild);l.removeChild(p)}e.insertBefore(l,t)}return[a?a.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},dP=Symbol("_vtc");function mP(r,e,t){const n=r[dP];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?r.removeAttribute("class"):t?r.setAttribute("class",e):r.className=e}const gP=Symbol("_vod");function yP(r,e,t){const n=r.style,i=xo(t);if(t&&!i){if(e&&!xo(e))for(const s in e)t[s]==null&&xy(n,s,"");for(const s in t)xy(n,s,t[s])}else{const s=n.display;i?e!==t&&(n.cssText=t):e&&r.removeAttribute("style"),gP in r&&(n.display=s)}}const b1=/\s*!important$/;function xy(r,e,t){if(Pi(t))t.forEach(n=>xy(r,e,n));else if(t==null&&(t=""),e.startsWith("--"))r.setProperty(e,t);else{const n=DP(r,e);b1.test(t)?r.setProperty(Gh(n),t.replace(b1,""),"important"):r[n]=t}}const v1=["Webkit","Moz","ms"],v0={};function DP(r,e){const t=v0[e];if(t)return t;let n=bl(e);if(n!=="filter"&&n in r)return v0[e]=n;n=Tg(n);for(let i=0;i<v1.length;i++){const s=v1[i]+n;if(s in r)return v0[e]=s}return e}const C1="http://www.w3.org/1999/xlink";function OP(r,e,t,n,i){if(n&&e.startsWith("xlink:"))t==null?r.removeAttributeNS(C1,e.slice(6,e.length)):r.setAttributeNS(C1,e,t);else{const s=bA(e);t==null||s&&!Uv(t)?r.removeAttribute(e):r.setAttribute(e,s?"":t)}}function xP(r,e,t,n,i,s,a){if(e==="innerHTML"||e==="textContent"){n&&a(n,i,s),r[e]=t??"";return}const l=r.tagName;if(e==="value"&&l!=="PROGRESS"&&!l.includes("-")){r._value=t;const m=l==="OPTION"?r.getAttribute("value"):r.value,g=t??"";m!==g&&(r.value=g),t==null&&r.removeAttribute(e);return}let p=!1;if(t===""||t==null){const m=typeof r[e];m==="boolean"?t=Uv(t):t==null&&m==="string"?(t="",p=!0):m==="number"&&(t=0,p=!0)}try{r[e]=t}catch{}p&&r.removeAttribute(e)}function NC(r,e,t,n){r.addEventListener(e,t,n)}function bP(r,e,t,n){r.removeEventListener(e,t,n)}const S1=Symbol("_vei");function vP(r,e,t,n,i=null){const s=r[S1]||(r[S1]={}),a=s[e];if(n&&a)a.value=n;else{const[l,p]=CP(e);if(n){const m=s[e]=wP(n,i);NC(r,l,m,p)}else a&&(bP(r,l,a,p),s[e]=void 0)}}const E1=/(?:Once|Passive|Capture)$/;function CP(r){let e;if(E1.test(r)){e={};let n;for(;n=r.match(E1);)r=r.slice(0,r.length-n[0].length),e[n[0].toLowerCase()]=!0}return[r[2]===":"?r.slice(3):Gh(r.slice(2)),e]}let C0=0;const SP=Promise.resolve(),EP=()=>C0||(SP.then(()=>C0=0),C0=Date.now());function wP(r,e){const t=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=t.attached)return;Su(AP(n,t.value),e,5,[n])};return t.value=r,t.attached=EP(),t}function AP(r,e){if(Pi(e)){const t=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{t.call(r),r._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const w1=/^on[a-z]/,TP=(r,e,t,n,i=!1,s,a,l,p)=>{e==="class"?mP(r,n,i):e==="style"?yP(r,t,n):Eg(e)?PD(e)||vP(r,e,t,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):PP(r,e,n,i))?xP(r,e,n,s,a,l,p):(e==="true-value"?r._trueValue=n:e==="false-value"&&(r._falseValue=n),OP(r,e,n,i))};function PP(r,e,t,n){return n?!!(e==="innerHTML"||e==="textContent"||e in r&&w1.test(e)&&Vi(t)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&r.tagName==="INPUT"||e==="type"&&r.tagName==="TEXTAREA"||w1.test(e)&&xo(t)?!1:e in r}const A1=r=>{const e=r.props["onUpdate:modelValue"]||!1;return Pi(e)?t=>gm(e,t):e},S0=Symbol("_assign"),kP={deep:!0,created(r,e,t){r[S0]=A1(t),NC(r,"change",()=>{const n=r._modelValue,i=FP(r),s=r.checked,a=r[S0];if(Pi(n)){const l=qv(n,i),p=l!==-1;if(s&&!p)a(n.concat(i));else if(!s&&p){const m=[...n];m.splice(l,1),a(m)}}else if(wg(n)){const l=new Set(n);s?l.add(i):l.delete(i),a(l)}else a(IC(r,s))})},mounted:T1,beforeUpdate(r,e,t){r[S0]=A1(t),T1(r,e,t)}};function T1(r,{value:e,oldValue:t},n){r._modelValue=e,Pi(e)?r.checked=qv(e,n.props.value)>-1:wg(e)?r.checked=e.has(n.props.value):e!==t&&(r.checked=Pg(e,IC(r,!0)))}function FP(r){return"_value"in r?r._value:r.value}function IC(r,e){const t=e?"_trueValue":"_falseValue";return t in r?r[t]:e}const _P={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},$P=(r,e)=>t=>{if(!("key"in t))return;const n=Gh(t.key);if(e.some(i=>i===n||_P[i]===n))return r(t)},BP=Yo({patchProp:TP},fP);let P1;function NP(){return P1||(P1=zT(BP))}const IP=(...r)=>{const e=NP().createApp(...r),{mount:t}=e;return e.mount=n=>{const i=MP(n);if(!i)return;const s=e._component;!Vi(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const a=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},e};function MP(r){return xo(r)?document.querySelector(r):r}function Vd(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const RP=/^\[(.+?)~?="(.*)"\]$/,QP=/[\w\u00A0-\uFFFF-_:%-?]/;function MC(r){return r.match(RP)}function z7(r=""){return QP.test(r)}const jP=/([\\:]?[\s"'`;<>]|:\(|\)"|\)\s)/g;var rc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qg(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var k1={exports:{}};(function(r,e){(function(t,n){n(e)})(rc,function(t){const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),l=new Uint8Array(128);for(let me=0;me<s.length;me++){const Ve=s.charCodeAt(me);a[me]=Ve,l[Ve]=me}const p=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(me){return Buffer.from(me.buffer,me.byteOffset,me.byteLength).toString()}}:{decode(me){let Ve="";for(let Dt=0;Dt<me.length;Dt++)Ve+=String.fromCharCode(me[Dt]);return Ve}};function m(me){const Ve=new Int32Array(5),Dt=[];let ht=0;do{const bt=g(me,ht),Yt=[];let ir=!0,qr=0;Ve[0]=0;for(let yr=ht;yr<bt;yr++){let kr;yr=b(me,yr,Ve,0);const Zr=Ve[0];Zr<qr&&(ir=!1),qr=Zr,S(me,yr,bt)?(yr=b(me,yr,Ve,1),yr=b(me,yr,Ve,2),yr=b(me,yr,Ve,3),S(me,yr,bt)?(yr=b(me,yr,Ve,4),kr=[Zr,Ve[1],Ve[2],Ve[3],Ve[4]]):kr=[Zr,Ve[1],Ve[2],Ve[3]]):kr=[Zr],Yt.push(kr)}ir||$(Yt),Dt.push(Yt),ht=bt+1}while(ht<=me.length);return Dt}function g(me,Ve){const Dt=me.indexOf(";",Ve);return Dt===-1?me.length:Dt}function b(me,Ve,Dt,ht){let bt=0,Yt=0,ir=0;do{const yr=me.charCodeAt(Ve++);ir=l[yr],bt|=(ir&31)<<Yt,Yt+=5}while(ir&32);const qr=bt&1;return bt>>>=1,qr&&(bt=-2147483648|-bt),Dt[ht]+=bt,Ve}function S(me,Ve,Dt){return Ve>=Dt?!1:me.charCodeAt(Ve)!==44}function $(me){me.sort(G)}function G(me,Ve){return me[0]-Ve[0]}function be(me){const Ve=new Int32Array(5),Dt=1024*16,ht=Dt-36,bt=new Uint8Array(Dt),Yt=bt.subarray(0,ht);let ir=0,qr="";for(let yr=0;yr<me.length;yr++){const kr=me[yr];if(yr>0&&(ir===Dt&&(qr+=p.decode(bt),ir=0),bt[ir++]=59),kr.length!==0){Ve[0]=0;for(let Zr=0;Zr<kr.length;Zr++){const zn=kr[Zr];ir>ht&&(qr+=p.decode(Yt),bt.copyWithin(0,ht,ir),ir-=ht),Zr>0&&(bt[ir++]=44),ir=ke(bt,ir,Ve,zn,0),zn.length!==1&&(ir=ke(bt,ir,Ve,zn,1),ir=ke(bt,ir,Ve,zn,2),ir=ke(bt,ir,Ve,zn,3),zn.length!==4&&(ir=ke(bt,ir,Ve,zn,4)))}}}return qr+p.decode(bt.subarray(0,ir))}function ke(me,Ve,Dt,ht,bt){const Yt=ht[bt];let ir=Yt-Dt[bt];Dt[bt]=Yt,ir=ir<0?-ir<<1|1:ir<<1;do{let qr=ir&31;ir>>>=5,ir>0&&(qr|=32),me[Ve++]=a[qr]}while(ir>0);return Ve}t.decode=m,t.encode=be,Object.defineProperty(t,"__esModule",{value:!0})})})(k1,k1.exports);const LP=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,XP=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g;function VP(r,e,t){const n=[];return e.forEach(i=>{if(i.includes(":"))i===r&&n.push([t,t+i.length,i]);else{const a=new RegExp(`.(${i})[.#=s(]|.(${i})$`).exec(r);a?n.push([t+a.index+1,t+a.index+i.length+1,i]):i===r&&n.push([t,t+i.length,i])}}),n}function UP(r,e,t=[],n={}){const i=[],s=[],a=new Set,l=[],p=[];if(n.includeRegex)for(const b of n.includeRegex)for(const S of r.matchAll(b))l.push([S.index,S.index+S[0].length]);else l.push([0,r.length]);if(n.excludeRegex)for(const b of n.excludeRegex)for(const S of r.matchAll(b))p.push([S.index,S.index+S[0].length]);Array.from(e).forEach(b=>{const S=MC(b);S?S[2]?s.push(S):(m(S[1]),a.add(S[1])):(m(b),a.add(b))});function m(b){if(/[><]/.test(b))for(const S of r.matchAll(new RegExp(Vd(b),"g"))){const $=S.index,G=$+S[0].length;i.push([$,G,S[0]])}}let g=0;r.split(jP).forEach(b=>{const S=g+b.length;n.isPug?i.push(...VP(b,a,g)):a.has(b)&&i.push([g,S,b]),g=S});for(const b of r.matchAll(LP)){const S=b.index,$=S+b[0].length;a.has(b[0])&&i.push([S,$,b[0]])}for(const b of r.matchAll(XP)){const S=b.index,$=S+b[0].length;a.has(b[0])&&i.findIndex(([be,ke])=>be===S&&ke===$)<0&&i.push([S,$,b[0]])}return s.forEach(([,b,S])=>{const $=new RegExp(`(${Vd(b)}=)(['"])[^\\2]*?${Vd(S)}[^\\2]*?\\2`,"g");Array.from(r.matchAll($)).forEach(G=>{var ht;const be=G[1],ke=G[0].slice(be.length);let me=((ht=ke.match(`[\\b\\s'"]${Vd(S)}[\\b\\s'"]`))==null?void 0:ht.index)??-1;if(/[\s'"]/.test(ke[me]??"")&&me++,me<0)return;const Ve=G.index+be.length+me,Dt=Ve+S.length;i.push([Ve,Dt,`[${b}="${S}"]`])})}),i.push(...t.map(b=>[b.offset,b.offset+b.length,b.className])),i.filter(([b,S])=>p.some(([$,G])=>b>=$&&S<=G)?!1:!!l.some(([$,G])=>b>=$&&S<=G)).sort((b,S)=>b[0]-S[0])}class Ds{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),ll.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),ll.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new Bf(this),s=new Bf(e);for(let a=t,l=t;;){if(i.next(a),s.next(a),a=0,i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return!1;if(l+=i.value.length,i.done||l>=n)return!0}}iter(e=1){return new Bf(this,e)}iterRange(e,t=this.length){return new RC(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t==null&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new QC(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Ds.empty:e.length<=32?new co(e):ll.from(co.split(e,[]))}}class co extends Ds{constructor(e,t=qP(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let s=0;;s++){let a=this.text[s],l=i+a.length;if((t?n:l)>=e)return new zP(i,l,n,a);i=l+1,n++}}decompose(e,t,n,i){let s=e<=0&&t>=this.length?this:new co(F1(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(i&1){let a=n.pop(),l=Om(s.text,a.text.slice(),0,s.length);if(l.length<=32)n.push(new co(l,a.length+s.length));else{let p=l.length>>1;n.push(new co(l.slice(0,p)),new co(l.slice(p)))}}else n.push(s)}replace(e,t,n){if(!(n instanceof co))return super.replace(e,t,n);let i=Om(this.text,Om(n.text,F1(this.text,0,e)),t),s=this.length+n.length-(t-e);return i.length<=32?new co(i,s):ll.from(co.split(i,[]),s)}sliceString(e,t=this.length,n=`
|
|
1
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();const oA="modulepreload",aA=function(r){return"/__unocss/"+r},YO={},AD=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){const s=document.getElementsByTagName("link");i=Promise.all(t.map(a=>{if(a=aA(a),a in YO)return;YO[a]=!0;const l=a.endsWith(".css"),p=l?'[rel="stylesheet"]':"";if(!!n)for(let b=s.length-1;b>=0;b--){const S=s[b];if(S.href===a&&(!l||S.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${p}`))return;const g=document.createElement("link");if(g.rel=l?"stylesheet":oA,l||(g.as="script",g.crossOrigin=""),g.href=a,document.head.appendChild(g),l)return new Promise((b,S)=>{g.addEventListener("load",b),g.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${a}`)))})}))}return i.then(()=>e()).catch(s=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s})};function TD(r,e){const t=Object.create(null),n=r.split(",");for(let i=0;i<n.length;i++)t[n[i]]=!0;return e?i=>!!t[i.toLowerCase()]:i=>!!t[i]}const zs={},_p=[],dl=()=>{},uA=()=>!1,lA=/^on[^a-z]/,Eg=r=>lA.test(r),PD=r=>r.startsWith("onUpdate:"),Yo=Object.assign,kD=(r,e)=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)},cA=Object.prototype.hasOwnProperty,ms=(r,e)=>cA.call(r,e),Pi=Array.isArray,$p=r=>yd(r)==="[object Map]",wg=r=>yd(r)==="[object Set]",GO=r=>yd(r)==="[object Date]",Vi=r=>typeof r=="function",xo=r=>typeof r=="string",Up=r=>typeof r=="symbol",Ns=r=>r!==null&&typeof r=="object",Lv=r=>(Ns(r)||Vi(r))&&Vi(r.then)&&Vi(r.catch),Xv=Object.prototype.toString,yd=r=>Xv.call(r),hA=r=>yd(r).slice(8,-1),Vv=r=>yd(r)==="[object Object]",FD=r=>xo(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,mm=TD(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ag=r=>{const e=Object.create(null);return t=>e[t]||(e[t]=r(t))},pA=/-(\w)/g,bl=Ag(r=>r.replace(pA,(e,t)=>t?t.toUpperCase():"")),fA=/\B([A-Z])/g,Gh=Ag(r=>r.replace(fA,"-$1").toLowerCase()),Tg=Ag(r=>r.charAt(0).toUpperCase()+r.slice(1)),D0=Ag(r=>r?`on${Tg(r)}`:""),Xh=(r,e)=>!Object.is(r,e),gm=(r,e)=>{for(let t=0;t<r.length;t++)r[t](e)},Nm=(r,e,t)=>{Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value:t})},dA=r=>{const e=parseFloat(r);return isNaN(e)?r:e};let HO;const cy=()=>HO||(HO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ml(r){if(Pi(r)){const e={};for(let t=0;t<r.length;t++){const n=r[t],i=xo(n)?DA(n):ml(n);if(i)for(const s in i)e[s]=i[s]}return e}else if(xo(r)||Ns(r))return r}const mA=/;(?![^(]*\))/g,gA=/:([^]+)/,yA=/\/\*[^]*?\*\//g;function DA(r){const e={};return r.replace(yA,"").split(mA).forEach(t=>{if(t){const n=t.split(gA);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Fa(r){let e="";if(xo(r))e=r;else if(Pi(r))for(let t=0;t<r.length;t++){const n=Fa(r[t]);n&&(e+=n+" ")}else if(Ns(r))for(const t in r)r[t]&&(e+=t+" ");return e.trim()}function OA(r){if(!r)return null;let{class:e,style:t}=r;return e&&!xo(e)&&(r.class=Fa(e)),t&&(r.style=ml(t)),r}const xA="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",bA=TD(xA);function Uv(r){return!!r||r===""}function vA(r,e){if(r.length!==e.length)return!1;let t=!0;for(let n=0;t&&n<r.length;n++)t=Pg(r[n],e[n]);return t}function Pg(r,e){if(r===e)return!0;let t=GO(r),n=GO(e);if(t||n)return t&&n?r.getTime()===e.getTime():!1;if(t=Up(r),n=Up(e),t||n)return r===e;if(t=Pi(r),n=Pi(e),t||n)return t&&n?vA(r,e):!1;if(t=Ns(r),n=Ns(e),t||n){if(!t||!n)return!1;const i=Object.keys(r).length,s=Object.keys(e).length;if(i!==s)return!1;for(const a in r){const l=r.hasOwnProperty(a),p=e.hasOwnProperty(a);if(l&&!p||!l&&p||!Pg(r[a],e[a]))return!1}}return String(r)===String(e)}function qv(r,e){return r.findIndex(t=>Pg(t,e))}const Gs=r=>xo(r)?r:r==null?"":Pi(r)||Ns(r)&&(r.toString===Xv||!Vi(r.toString))?JSON.stringify(r,zv,2):String(r),zv=(r,e)=>e&&e.__v_isRef?zv(r,e.value):$p(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[n,i])=>(t[`${n} =>`]=i,t),{})}:wg(e)?{[`Set(${e.size})`]:[...e.values()]}:Ns(e)&&!Pi(e)&&!Vv(e)?String(e):e;let Va;class CA{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Va,!e&&Va&&(this.index=(Va.scopes||(Va.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Va;try{return Va=this,e()}finally{Va=t}}}on(){Va=this}off(){Va=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function SA(r,e=Va){e&&e.active&&e.effects.push(r)}function Wv(){return Va}function EA(r){Va&&Va.cleanups.push(r)}const _D=r=>{const e=new Set(r);return e.w=0,e.n=0,e},Zv=r=>(r.w&Hc)>0,Yv=r=>(r.n&Hc)>0,wA=({deps:r})=>{if(r.length)for(let e=0;e<r.length;e++)r[e].w|=Hc},AA=r=>{const{deps:e}=r;if(e.length){let t=0;for(let n=0;n<e.length;n++){const i=e[n];Zv(i)&&!Yv(i)?i.delete(r):e[t++]=i,i.w&=~Hc,i.n&=~Hc}e.length=t}},Im=new WeakMap;let Cf=0,Hc=1;const hy=30;let xu;const Rh=Symbol(""),py=Symbol("");class $D{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,SA(this,n)}run(){if(!this.active)return this.fn();let e=xu,t=qc;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=xu,xu=this,qc=!0,Hc=1<<++Cf,Cf<=hy?wA(this):JO(this),this.fn()}finally{Cf<=hy&&AA(this),Hc=1<<--Cf,xu=this.parent,qc=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){xu===this?this.deferStop=!0:this.active&&(JO(this),this.onStop&&this.onStop(),this.active=!1)}}function JO(r){const{deps:e}=r;if(e.length){for(let t=0;t<e.length;t++)e[t].delete(r);e.length=0}}let qc=!0;const Gv=[];function rf(){Gv.push(qc),qc=!1}function nf(){const r=Gv.pop();qc=r===void 0?!0:r}function _a(r,e,t){if(qc&&xu){let n=Im.get(r);n||Im.set(r,n=new Map);let i=n.get(t);i||n.set(t,i=_D()),Hv(i)}}function Hv(r,e){let t=!1;Cf<=hy?Yv(r)||(r.n|=Hc,t=!Zv(r)):t=!r.has(xu),t&&(r.add(xu),xu.deps.push(r))}function Kl(r,e,t,n,i,s){const a=Im.get(r);if(!a)return;let l=[];if(e==="clear")l=[...a.values()];else if(t==="length"&&Pi(r)){const p=Number(n);a.forEach((m,g)=>{(g==="length"||!Up(g)&&g>=p)&&l.push(m)})}else switch(t!==void 0&&l.push(a.get(t)),e){case"add":Pi(r)?FD(t)&&l.push(a.get("length")):(l.push(a.get(Rh)),$p(r)&&l.push(a.get(py)));break;case"delete":Pi(r)||(l.push(a.get(Rh)),$p(r)&&l.push(a.get(py)));break;case"set":$p(r)&&l.push(a.get(Rh));break}if(l.length===1)l[0]&&fy(l[0]);else{const p=[];for(const m of l)m&&p.push(...m);fy(_D(p))}}function fy(r,e){const t=Pi(r)?r:[...r];for(const n of t)n.computed&&KO(n);for(const n of t)n.computed||KO(n)}function KO(r,e){(r!==xu||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}function TA(r,e){var t;return(t=Im.get(r))==null?void 0:t.get(e)}const PA=TD("__proto__,__v_isRef,__isVue"),Jv=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Up)),e1=kA();function kA(){const r={};return["includes","indexOf","lastIndexOf"].forEach(e=>{r[e]=function(...t){const n=Os(this);for(let s=0,a=this.length;s<a;s++)_a(n,"get",s+"");const i=n[e](...t);return i===-1||i===!1?n[e](...t.map(Os)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{r[e]=function(...t){rf();const n=Os(this)[e].apply(this,t);return nf(),n}}),r}function FA(r){const e=Os(this);return _a(e,"has",r),e.hasOwnProperty(r)}class Kv{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const i=this._isReadonly,s=this._shallow;if(t==="__v_isReactive")return!i;if(t==="__v_isReadonly")return i;if(t==="__v_isShallow")return s;if(t==="__v_raw"&&n===(i?s?UA:nC:s?rC:tC).get(e))return e;const a=Pi(e);if(!i){if(a&&ms(e1,t))return Reflect.get(e1,t,n);if(t==="hasOwnProperty")return FA}const l=Reflect.get(e,t,n);return(Up(t)?Jv.has(t):PA(t))||(i||_a(e,"get",t),s)?l:Hs(l)?a&&FD(t)?l:l.value:Ns(l)?i?Od(l):Dd(l):l}}class eC extends Kv{constructor(e=!1){super(!1,e)}set(e,t,n,i){let s=e[t];if(qp(s)&&Hs(s)&&!Hs(n))return!1;if(!this._shallow&&(!Mm(n)&&!qp(n)&&(s=Os(s),n=Os(n)),!Pi(e)&&Hs(s)&&!Hs(n)))return s.value=n,!0;const a=Pi(e)&&FD(t)?Number(t)<e.length:ms(e,t),l=Reflect.set(e,t,n,i);return e===Os(i)&&(a?Xh(n,s)&&Kl(e,"set",t,n):Kl(e,"add",t,n)),l}deleteProperty(e,t){const n=ms(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&n&&Kl(e,"delete",t,void 0),i}has(e,t){const n=Reflect.has(e,t);return(!Up(t)||!Jv.has(t))&&_a(e,"has",t),n}ownKeys(e){return _a(e,"iterate",Pi(e)?"length":Rh),Reflect.ownKeys(e)}}class _A extends Kv{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const $A=new eC,BA=new _A,NA=new eC(!0),BD=r=>r,kg=r=>Reflect.getPrototypeOf(r);function Md(r,e,t=!1,n=!1){r=r.__v_raw;const i=Os(r),s=Os(e);t||(Xh(e,s)&&_a(i,"get",e),_a(i,"get",s));const{has:a}=kg(i),l=n?BD:t?MD:qf;if(a.call(i,e))return l(r.get(e));if(a.call(i,s))return l(r.get(s));r!==i&&r.get(e)}function Rd(r,e=!1){const t=this.__v_raw,n=Os(t),i=Os(r);return e||(Xh(r,i)&&_a(n,"has",r),_a(n,"has",i)),r===i?t.has(r):t.has(r)||t.has(i)}function Qd(r,e=!1){return r=r.__v_raw,!e&&_a(Os(r),"iterate",Rh),Reflect.get(r,"size",r)}function t1(r){r=Os(r);const e=Os(this);return kg(e).has.call(e,r)||(e.add(r),Kl(e,"add",r,r)),this}function r1(r,e){e=Os(e);const t=Os(this),{has:n,get:i}=kg(t);let s=n.call(t,r);s||(r=Os(r),s=n.call(t,r));const a=i.call(t,r);return t.set(r,e),s?Xh(e,a)&&Kl(t,"set",r,e):Kl(t,"add",r,e),this}function n1(r){const e=Os(this),{has:t,get:n}=kg(e);let i=t.call(e,r);i||(r=Os(r),i=t.call(e,r)),n&&n.call(e,r);const s=e.delete(r);return i&&Kl(e,"delete",r,void 0),s}function i1(){const r=Os(this),e=r.size!==0,t=r.clear();return e&&Kl(r,"clear",void 0,void 0),t}function jd(r,e){return function(n,i){const s=this,a=s.__v_raw,l=Os(a),p=e?BD:r?MD:qf;return!r&&_a(l,"iterate",Rh),a.forEach((m,g)=>n.call(i,p(m),p(g),s))}}function Ld(r,e,t){return function(...n){const i=this.__v_raw,s=Os(i),a=$p(s),l=r==="entries"||r===Symbol.iterator&&a,p=r==="keys"&&a,m=i[r](...n),g=t?BD:e?MD:qf;return!e&&_a(s,"iterate",p?py:Rh),{next(){const{value:b,done:S}=m.next();return S?{value:b,done:S}:{value:l?[g(b[0]),g(b[1])]:g(b),done:S}},[Symbol.iterator](){return this}}}}function kc(r){return function(...e){return r==="delete"?!1:r==="clear"?void 0:this}}function IA(){const r={get(s){return Md(this,s)},get size(){return Qd(this)},has:Rd,add:t1,set:r1,delete:n1,clear:i1,forEach:jd(!1,!1)},e={get(s){return Md(this,s,!1,!0)},get size(){return Qd(this)},has:Rd,add:t1,set:r1,delete:n1,clear:i1,forEach:jd(!1,!0)},t={get(s){return Md(this,s,!0)},get size(){return Qd(this,!0)},has(s){return Rd.call(this,s,!0)},add:kc("add"),set:kc("set"),delete:kc("delete"),clear:kc("clear"),forEach:jd(!0,!1)},n={get(s){return Md(this,s,!0,!0)},get size(){return Qd(this,!0)},has(s){return Rd.call(this,s,!0)},add:kc("add"),set:kc("set"),delete:kc("delete"),clear:kc("clear"),forEach:jd(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=Ld(s,!1,!1),t[s]=Ld(s,!0,!1),e[s]=Ld(s,!1,!0),n[s]=Ld(s,!0,!0)}),[r,t,e,n]}const[MA,RA,QA,jA]=IA();function ND(r,e){const t=e?r?jA:QA:r?RA:MA;return(n,i,s)=>i==="__v_isReactive"?!r:i==="__v_isReadonly"?r:i==="__v_raw"?n:Reflect.get(ms(t,i)&&i in n?t:n,i,s)}const LA={get:ND(!1,!1)},XA={get:ND(!1,!0)},VA={get:ND(!0,!1)},tC=new WeakMap,rC=new WeakMap,nC=new WeakMap,UA=new WeakMap;function qA(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zA(r){return r.__v_skip||!Object.isExtensible(r)?0:qA(hA(r))}function Dd(r){return qp(r)?r:ID(r,!1,$A,LA,tC)}function iC(r){return ID(r,!1,NA,XA,rC)}function Od(r){return ID(r,!0,BA,VA,nC)}function ID(r,e,t,n,i){if(!Ns(r)||r.__v_raw&&!(e&&r.__v_isReactive))return r;const s=i.get(r);if(s)return s;const a=zA(r);if(a===0)return r;const l=new Proxy(r,a===2?n:t);return i.set(r,l),l}function Bp(r){return qp(r)?Bp(r.__v_raw):!!(r&&r.__v_isReactive)}function qp(r){return!!(r&&r.__v_isReadonly)}function Mm(r){return!!(r&&r.__v_isShallow)}function sC(r){return Bp(r)||qp(r)}function Os(r){const e=r&&r.__v_raw;return e?Os(e):r}function oC(r){return Nm(r,"__v_skip",!0),r}const qf=r=>Ns(r)?Dd(r):r,MD=r=>Ns(r)?Od(r):r;function RD(r){qc&&xu&&(r=Os(r),Hv(r.dep||(r.dep=_D())))}function QD(r,e){r=Os(r);const t=r.dep;t&&fy(t)}function Hs(r){return!!(r&&r.__v_isRef===!0)}function Zs(r){return aC(r,!1)}function Np(r){return aC(r,!0)}function aC(r,e){return Hs(r)?r:new WA(r,e)}class WA{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Os(e),this._value=t?e:qf(e)}get value(){return RD(this),this._value}set value(e){const t=this.__v_isShallow||Mm(e)||qp(e);e=t?e:Os(e),Xh(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:qf(e),QD(this))}}function wi(r){return Hs(r)?r.value:r}const ZA={get:(r,e,t)=>wi(Reflect.get(r,e,t)),set:(r,e,t,n)=>{const i=r[e];return Hs(i)&&!Hs(t)?(i.value=t,!0):Reflect.set(r,e,t,n)}};function uC(r){return Bp(r)?r:new Proxy(r,ZA)}class YA{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>RD(this),()=>QD(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function GA(r){return new YA(r)}function HA(r){const e=Pi(r)?new Array(r.length):{};for(const t in r)e[t]=lC(r,t);return e}class JA{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return TA(Os(this._object),this._key)}}class KA{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function eT(r,e,t){return Hs(r)?r:Vi(r)?new KA(r):Ns(r)&&arguments.length>1?lC(r,e,t):Zs(r)}function lC(r,e,t){const n=r[e];return Hs(n)?n:new JA(r,e,t)}class tT{constructor(e,t,n,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new $D(e,()=>{this._dirty||(this._dirty=!0,QD(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=Os(this);return RD(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function rT(r,e,t=!1){let n,i;const s=Vi(r);return s?(n=r,i=dl):(n=r.get,i=r.set),new tT(n,i,s||!i,t)}function zc(r,e,t,n){let i;try{i=n?r(...n):r()}catch(s){Fg(s,e,t)}return i}function Su(r,e,t,n){if(Vi(r)){const s=zc(r,e,t,n);return s&&Lv(s)&&s.catch(a=>{Fg(a,e,t)}),s}const i=[];for(let s=0;s<r.length;s++)i.push(Su(r[s],e,t,n));return i}function Fg(r,e,t,n=!0){const i=e?e.vnode:null;if(e){let s=e.parent;const a=e.proxy,l=t;for(;s;){const m=s.ec;if(m){for(let g=0;g<m.length;g++)if(m[g](r,a,l)===!1)return}s=s.parent}const p=e.appContext.config.errorHandler;if(p){zc(p,null,10,[r,a,l]);return}}nT(r,t,i,n)}function nT(r,e,t,n=!0){console.error(r)}let zf=!1,dy=!1;const oa=[];let ul=0;const Ip=[];let Hl=null,Fh=0;const cC=Promise.resolve();let jD=null;function Hh(r){const e=jD||cC;return r?e.then(this?r.bind(this):r):e}function iT(r){let e=ul+1,t=oa.length;for(;e<t;){const n=e+t>>>1,i=oa[n],s=Wf(i);s<r||s===r&&i.pre?e=n+1:t=n}return e}function LD(r){(!oa.length||!oa.includes(r,zf&&r.allowRecurse?ul+1:ul))&&(r.id==null?oa.push(r):oa.splice(iT(r.id),0,r),hC())}function hC(){!zf&&!dy&&(dy=!0,jD=cC.then(fC))}function sT(r){const e=oa.indexOf(r);e>ul&&oa.splice(e,1)}function oT(r){Pi(r)?Ip.push(...r):(!Hl||!Hl.includes(r,r.allowRecurse?Fh+1:Fh))&&Ip.push(r),hC()}function s1(r,e=zf?ul+1:0){for(;e<oa.length;e++){const t=oa[e];t&&t.pre&&(oa.splice(e,1),e--,t())}}function pC(r){if(Ip.length){const e=[...new Set(Ip)];if(Ip.length=0,Hl){Hl.push(...e);return}for(Hl=e,Hl.sort((t,n)=>Wf(t)-Wf(n)),Fh=0;Fh<Hl.length;Fh++)Hl[Fh]();Hl=null,Fh=0}}const Wf=r=>r.id==null?1/0:r.id,aT=(r,e)=>{const t=Wf(r)-Wf(e);if(t===0){if(r.pre&&!e.pre)return-1;if(e.pre&&!r.pre)return 1}return t};function fC(r){dy=!1,zf=!0,oa.sort(aT);try{for(ul=0;ul<oa.length;ul++){const e=oa[ul];e&&e.active!==!1&&zc(e,null,14)}}finally{ul=0,oa.length=0,pC(),zf=!1,jD=null,(oa.length||Ip.length)&&fC()}}function uT(r,e,...t){if(r.isUnmounted)return;const n=r.vnode.props||zs;let i=t;const s=e.startsWith("update:"),a=s&&e.slice(7);if(a&&a in n){const g=`${a==="modelValue"?"model":a}Modifiers`,{number:b,trim:S}=n[g]||zs;S&&(i=t.map($=>xo($)?$.trim():$)),b&&(i=t.map(dA))}let l,p=n[l=D0(e)]||n[l=D0(bl(e))];!p&&s&&(p=n[l=D0(Gh(e))]),p&&Su(p,r,6,i);const m=n[l+"Once"];if(m){if(!r.emitted)r.emitted={};else if(r.emitted[l])return;r.emitted[l]=!0,Su(m,r,6,i)}}function dC(r,e,t=!1){const n=e.emitsCache,i=n.get(r);if(i!==void 0)return i;const s=r.emits;let a={},l=!1;if(!Vi(r)){const p=m=>{const g=dC(m,e,!0);g&&(l=!0,Yo(a,g))};!t&&e.mixins.length&&e.mixins.forEach(p),r.extends&&p(r.extends),r.mixins&&r.mixins.forEach(p)}return!s&&!l?(Ns(r)&&n.set(r,null),null):(Pi(s)?s.forEach(p=>a[p]=null):Yo(a,s),Ns(r)&&n.set(r,a),a)}function _g(r,e){return!r||!Eg(e)?!1:(e=e.slice(2).replace(/Once$/,""),ms(r,e[0].toLowerCase()+e.slice(1))||ms(r,Gh(e))||ms(r,e))}let Wo=null,$g=null;function Rm(r){const e=Wo;return Wo=r,$g=r&&r.type.__scopeId||null,e}function lT(r){$g=r}function cT(){$g=null}const hT=r=>fa;function fa(r,e=Wo,t){if(!e||r._n)return r;const n=(...i)=>{n._d&&g1(-1);const s=Rm(e);let a;try{a=r(...i)}finally{Rm(s),n._d&&g1(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function O0(r){const{type:e,vnode:t,proxy:n,withProxy:i,props:s,propsOptions:[a],slots:l,attrs:p,emit:m,render:g,renderCache:b,data:S,setupState:$,ctx:G,inheritAttrs:be}=r;let ke,me;const Ve=Rm(r);try{if(t.shapeFlag&4){const ht=i||n,bt=ht;ke=ol(g.call(bt,ht,b,s,$,S,G)),me=p}else{const ht=e;ke=ol(ht.length>1?ht(s,{attrs:p,slots:l,emit:m}):ht(s,null)),me=e.props?p:pT(p)}}catch(ht){$f.length=0,Fg(ht,r,1),ke=bs(Jc)}let Dt=ke;if(me&&be!==!1){const ht=Object.keys(me),{shapeFlag:bt}=Dt;ht.length&&bt&7&&(a&&ht.some(PD)&&(me=fT(me,a)),Dt=zp(Dt,me))}return t.dirs&&(Dt=zp(Dt),Dt.dirs=Dt.dirs?Dt.dirs.concat(t.dirs):t.dirs),t.transition&&(Dt.transition=t.transition),ke=Dt,Rm(Ve),ke}const pT=r=>{let e;for(const t in r)(t==="class"||t==="style"||Eg(t))&&((e||(e={}))[t]=r[t]);return e},fT=(r,e)=>{const t={};for(const n in r)(!PD(n)||!(n.slice(9)in e))&&(t[n]=r[n]);return t};function dT(r,e,t){const{props:n,children:i,component:s}=r,{props:a,children:l,patchFlag:p}=e,m=s.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&p>=0){if(p&1024)return!0;if(p&16)return n?o1(n,a,m):!!a;if(p&8){const g=e.dynamicProps;for(let b=0;b<g.length;b++){const S=g[b];if(a[S]!==n[S]&&!_g(m,S))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:n===a?!1:n?a?o1(n,a,m):!0:!!a;return!1}function o1(r,e,t){const n=Object.keys(e);if(n.length!==Object.keys(r).length)return!0;for(let i=0;i<n.length;i++){const s=n[i];if(e[s]!==r[s]&&!_g(t,s))return!0}return!1}function mT({vnode:r,parent:e},t){for(;e&&e.subTree===r;)(r=e.vnode).el=t,e=e.parent}const mC="components";function Vh(r,e){return yT(mC,r,!0,e)||r}const gT=Symbol.for("v-ndc");function yT(r,e,t=!0,n=!1){const i=Wo||Mo;if(i){const s=i.type;if(r===mC){const l=aP(s,!1);if(l&&(l===e||l===bl(e)||l===Tg(bl(e))))return s}const a=a1(i[r]||s[r],e)||a1(i.appContext[r],e);return!a&&n?s:a}}function a1(r,e){return r&&(r[e]||r[bl(e)]||r[Tg(bl(e))])}const DT=r=>r.__isSuspense;function OT(r,e){e&&e.pendingBranch?Pi(r)?e.effects.push(...r):e.effects.push(r):oT(r)}function gC(r,e){return XD(r,null,e)}const Xd={};function Ro(r,e,t){return XD(r,e,t)}function XD(r,e,{immediate:t,deep:n,flush:i,onTrack:s,onTrigger:a}=zs){var l;const p=Wv()===((l=Mo)==null?void 0:l.scope)?Mo:null;let m,g=!1,b=!1;if(Hs(r)?(m=()=>r.value,g=Mm(r)):Bp(r)?(m=()=>r,n=!0):Pi(r)?(b=!0,g=r.some(ht=>Bp(ht)||Mm(ht)),m=()=>r.map(ht=>{if(Hs(ht))return ht.value;if(Bp(ht))return Nh(ht);if(Vi(ht))return zc(ht,p,2)})):Vi(r)?e?m=()=>zc(r,p,2):m=()=>{if(!(p&&p.isUnmounted))return S&&S(),Su(r,p,3,[$])}:m=dl,e&&n){const ht=m;m=()=>Nh(ht())}let S,$=ht=>{S=Ve.onStop=()=>{zc(ht,p,4),S=Ve.onStop=void 0}},G;if(Yf)if($=dl,e?t&&Su(e,p,3,[m(),b?[]:void 0,$]):m(),i==="sync"){const ht=cP();G=ht.__watcherHandles||(ht.__watcherHandles=[])}else return dl;let be=b?new Array(r.length).fill(Xd):Xd;const ke=()=>{if(Ve.active)if(e){const ht=Ve.run();(n||g||(b?ht.some((bt,Yt)=>Xh(bt,be[Yt])):Xh(ht,be)))&&(S&&S(),Su(e,p,3,[ht,be===Xd?void 0:b&&be[0]===Xd?[]:be,$]),be=ht)}else Ve.run()};ke.allowRecurse=!!e;let me;i==="sync"?me=ke:i==="post"?me=()=>wa(ke,p&&p.suspense):(ke.pre=!0,p&&(ke.id=p.uid),me=()=>LD(ke));const Ve=new $D(m,me);e?t?ke():be=Ve.run():i==="post"?wa(Ve.run.bind(Ve),p&&p.suspense):Ve.run();const Dt=()=>{Ve.stop(),p&&p.scope&&kD(p.scope.effects,Ve)};return G&&G.push(Dt),Dt}function xT(r,e,t){const n=this.proxy,i=xo(r)?r.includes(".")?yC(n,r):()=>n[r]:r.bind(n,n);let s;Vi(e)?s=e:(s=e.handler,t=e);const a=Mo;Wp(this);const l=XD(i,s.bind(n),t);return a?Wp(a):Qh(),l}function yC(r,e){const t=e.split(".");return()=>{let n=r;for(let i=0;i<t.length&&n;i++)n=n[t[i]];return n}}function Nh(r,e){if(!Ns(r)||r.__v_skip||(e=e||new Set,e.has(r)))return r;if(e.add(r),Hs(r))Nh(r.value,e);else if(Pi(r))for(let t=0;t<r.length;t++)Nh(r[t],e);else if(wg(r)||$p(r))r.forEach(t=>{Nh(t,e)});else if(Vv(r))for(const t in r)Nh(r[t],e);return r}function bT(r,e){const t=Wo;if(t===null)return r;const n=Rg(t)||t.proxy,i=r.dirs||(r.dirs=[]);for(let s=0;s<e.length;s++){let[a,l,p,m=zs]=e[s];a&&(Vi(a)&&(a={mounted:a,updated:a}),a.deep&&Nh(l),i.push({dir:a,instance:n,value:l,oldValue:void 0,arg:p,modifiers:m}))}return r}function wh(r,e,t,n){const i=r.dirs,s=e&&e.dirs;for(let a=0;a<i.length;a++){const l=i[a];s&&(l.oldValue=s[a].value);let p=l.dir[n];p&&(rf(),Su(p,t,8,[r.el,l,r,e]),nf())}}/*! #__NO_SIDE_EFFECTS__ */function vo(r,e){return Vi(r)?Yo({name:r.name},e,{setup:r}):r}const Ff=r=>!!r.type.__asyncLoader,DC=r=>r.type.__isKeepAlive;function vT(r,e){OC(r,"a",e)}function CT(r,e){OC(r,"da",e)}function OC(r,e,t=Mo){const n=r.__wdc||(r.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return r()});if(Bg(e,n,t),t){let i=t.parent;for(;i&&i.parent;)DC(i.parent.vnode)&&ST(n,e,t,i),i=i.parent}}function ST(r,e,t,n){const i=Bg(e,r,n,!0);xC(()=>{kD(n[e],i)},t)}function Bg(r,e,t=Mo,n=!1){if(t){const i=t[r]||(t[r]=[]),s=e.__weh||(e.__weh=(...a)=>{if(t.isUnmounted)return;rf(),Wp(t);const l=Su(e,t,r,a);return Qh(),nf(),l});return n?i.unshift(s):i.push(s),s}}const ac=r=>(e,t=Mo)=>(!Yf||r==="sp")&&Bg(r,(...n)=>e(...n),t),ET=ac("bm"),Ng=ac("m"),wT=ac("bu"),AT=ac("u"),TT=ac("bum"),xC=ac("um"),PT=ac("sp"),kT=ac("rtg"),FT=ac("rtc");function _T(r,e=Mo){Bg("ec",r,e)}function Lc(r,e,t,n){let i;const s=t&&t[n];if(Pi(r)||xo(r)){i=new Array(r.length);for(let a=0,l=r.length;a<l;a++)i[a]=e(r[a],a,void 0,s&&s[a])}else if(typeof r=="number"){i=new Array(r);for(let a=0;a<r;a++)i[a]=e(a+1,a,void 0,s&&s[a])}else if(Ns(r))if(r[Symbol.iterator])i=Array.from(r,(a,l)=>e(a,l,void 0,s&&s[l]));else{const a=Object.keys(r);i=new Array(a.length);for(let l=0,p=a.length;l<p;l++){const m=a[l];i[l]=e(r[m],m,l,s&&s[l])}}else i=[];return t&&(t[n]=i),i}function tc(r,e,t={},n,i){if(Wo.isCE||Wo.parent&&Ff(Wo.parent)&&Wo.parent.isCE)return e!=="default"&&(t.name=e),bs("slot",t,n&&n());let s=r[e];s&&s._c&&(s._d=!1),bi();const a=s&&bC(s(t)),l=Zo(ho,{key:t.key||a&&a.key||`_${e}`},a||(n?n():[]),a&&r._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function bC(r){return r.some(e=>Lm(e)?!(e.type===Jc||e.type===ho&&!bC(e.children)):!0)?r:null}const my=r=>r?$C(r)?Rg(r)||r.proxy:my(r.parent):null,_f=Yo(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>my(r.parent),$root:r=>my(r.root),$emit:r=>r.emit,$options:r=>VD(r),$forceUpdate:r=>r.f||(r.f=()=>LD(r.update)),$nextTick:r=>r.n||(r.n=Hh.bind(r.proxy)),$watch:r=>xT.bind(r)}),x0=(r,e)=>r!==zs&&!r.__isScriptSetup&&ms(r,e),$T={get({_:r},e){const{ctx:t,setupState:n,data:i,props:s,accessCache:a,type:l,appContext:p}=r;let m;if(e[0]!=="$"){const $=a[e];if($!==void 0)switch($){case 1:return n[e];case 2:return i[e];case 4:return t[e];case 3:return s[e]}else{if(x0(n,e))return a[e]=1,n[e];if(i!==zs&&ms(i,e))return a[e]=2,i[e];if((m=r.propsOptions[0])&&ms(m,e))return a[e]=3,s[e];if(t!==zs&&ms(t,e))return a[e]=4,t[e];gy&&(a[e]=0)}}const g=_f[e];let b,S;if(g)return e==="$attrs"&&_a(r,"get",e),g(r);if((b=l.__cssModules)&&(b=b[e]))return b;if(t!==zs&&ms(t,e))return a[e]=4,t[e];if(S=p.config.globalProperties,ms(S,e))return S[e]},set({_:r},e,t){const{data:n,setupState:i,ctx:s}=r;return x0(i,e)?(i[e]=t,!0):n!==zs&&ms(n,e)?(n[e]=t,!0):ms(r.props,e)||e[0]==="$"&&e.slice(1)in r?!1:(s[e]=t,!0)},has({_:{data:r,setupState:e,accessCache:t,ctx:n,appContext:i,propsOptions:s}},a){let l;return!!t[a]||r!==zs&&ms(r,a)||x0(e,a)||(l=s[0])&&ms(l,a)||ms(n,a)||ms(_f,a)||ms(i.config.globalProperties,a)},defineProperty(r,e,t){return t.get!=null?r._.accessCache[e]=0:ms(t,"value")&&this.set(r,e,t.value,null),Reflect.defineProperty(r,e,t)}};function u1(r){return Pi(r)?r.reduce((e,t)=>(e[t]=null,e),{}):r}let gy=!0;function BT(r){const e=VD(r),t=r.proxy,n=r.ctx;gy=!1,e.beforeCreate&&l1(e.beforeCreate,r,"bc");const{data:i,computed:s,methods:a,watch:l,provide:p,inject:m,created:g,beforeMount:b,mounted:S,beforeUpdate:$,updated:G,activated:be,deactivated:ke,beforeDestroy:me,beforeUnmount:Ve,destroyed:Dt,unmounted:ht,render:bt,renderTracked:Yt,renderTriggered:ir,errorCaptured:qr,serverPrefetch:yr,expose:kr,inheritAttrs:Zr,components:zn,directives:Gn,filters:Ii}=e;if(m&&NT(m,n,null),a)for(const Wn in a){const jn=a[Wn];Vi(jn)&&(n[Wn]=jn.bind(t))}if(i){const Wn=i.call(t,t);Ns(Wn)&&(r.data=Dd(Wn))}if(gy=!0,s)for(const Wn in s){const jn=s[Wn],Bn=Vi(jn)?jn.bind(t,t):Vi(jn.get)?jn.get.bind(t,t):dl,$i=!Vi(jn)&&Vi(jn.set)?jn.set.bind(t):dl,Ui=as({get:Bn,set:$i});Object.defineProperty(n,Wn,{enumerable:!0,configurable:!0,get:()=>Ui.value,set:os=>Ui.value=os})}if(l)for(const Wn in l)vC(l[Wn],n,t,Wn);if(p){const Wn=Vi(p)?p.call(t):p;Reflect.ownKeys(Wn).forEach(jn=>{ym(jn,Wn[jn])})}g&&l1(g,r,"c");function Sn(Wn,jn){Pi(jn)?jn.forEach(Bn=>Wn(Bn.bind(t))):jn&&Wn(jn.bind(t))}if(Sn(ET,b),Sn(Ng,S),Sn(wT,$),Sn(AT,G),Sn(vT,be),Sn(CT,ke),Sn(_T,qr),Sn(FT,Yt),Sn(kT,ir),Sn(TT,Ve),Sn(xC,ht),Sn(PT,yr),Pi(kr))if(kr.length){const Wn=r.exposed||(r.exposed={});kr.forEach(jn=>{Object.defineProperty(Wn,jn,{get:()=>t[jn],set:Bn=>t[jn]=Bn})})}else r.exposed||(r.exposed={});bt&&r.render===dl&&(r.render=bt),Zr!=null&&(r.inheritAttrs=Zr),zn&&(r.components=zn),Gn&&(r.directives=Gn)}function NT(r,e,t=dl){Pi(r)&&(r=yy(r));for(const n in r){const i=r[n];let s;Ns(i)?"default"in i?s=gl(i.from||n,i.default,!0):s=gl(i.from||n):s=gl(i),Hs(s)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):e[n]=s}}function l1(r,e,t){Su(Pi(r)?r.map(n=>n.bind(e.proxy)):r.bind(e.proxy),e,t)}function vC(r,e,t,n){const i=n.includes(".")?yC(t,n):()=>t[n];if(xo(r)){const s=e[r];Vi(s)&&Ro(i,s)}else if(Vi(r))Ro(i,r.bind(t));else if(Ns(r))if(Pi(r))r.forEach(s=>vC(s,e,t,n));else{const s=Vi(r.handler)?r.handler.bind(t):e[r.handler];Vi(s)&&Ro(i,s,r)}}function VD(r){const e=r.type,{mixins:t,extends:n}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:a}}=r.appContext,l=s.get(e);let p;return l?p=l:!i.length&&!t&&!n?p=e:(p={},i.length&&i.forEach(m=>Qm(p,m,a,!0)),Qm(p,e,a)),Ns(e)&&s.set(e,p),p}function Qm(r,e,t,n=!1){const{mixins:i,extends:s}=e;s&&Qm(r,s,t,!0),i&&i.forEach(a=>Qm(r,a,t,!0));for(const a in e)if(!(n&&a==="expose")){const l=IT[a]||t&&t[a];r[a]=l?l(r[a],e[a]):e[a]}return r}const IT={data:c1,props:h1,emits:h1,methods:Sf,computed:Sf,beforeCreate:ha,created:ha,beforeMount:ha,mounted:ha,beforeUpdate:ha,updated:ha,beforeDestroy:ha,beforeUnmount:ha,destroyed:ha,unmounted:ha,activated:ha,deactivated:ha,errorCaptured:ha,serverPrefetch:ha,components:Sf,directives:Sf,watch:RT,provide:c1,inject:MT};function c1(r,e){return e?r?function(){return Yo(Vi(r)?r.call(this,this):r,Vi(e)?e.call(this,this):e)}:e:r}function MT(r,e){return Sf(yy(r),yy(e))}function yy(r){if(Pi(r)){const e={};for(let t=0;t<r.length;t++)e[r[t]]=r[t];return e}return r}function ha(r,e){return r?[...new Set([].concat(r,e))]:e}function Sf(r,e){return r?Yo(Object.create(null),r,e):e}function h1(r,e){return r?Pi(r)&&Pi(e)?[...new Set([...r,...e])]:Yo(Object.create(null),u1(r),u1(e??{})):e}function RT(r,e){if(!r)return e;if(!e)return r;const t=Yo(Object.create(null),r);for(const n in e)t[n]=ha(r[n],e[n]);return t}function CC(){return{app:null,config:{isNativeTag:uA,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 QT=0;function jT(r,e){return function(n,i=null){Vi(n)||(n=Yo({},n)),i!=null&&!Ns(i)&&(i=null);const s=CC(),a=new WeakSet;let l=!1;const p=s.app={_uid:QT++,_component:n,_props:i,_container:null,_context:s,_instance:null,version:hP,get config(){return s.config},set config(m){},use(m,...g){return a.has(m)||(m&&Vi(m.install)?(a.add(m),m.install(p,...g)):Vi(m)&&(a.add(m),m(p,...g))),p},mixin(m){return s.mixins.includes(m)||s.mixins.push(m),p},component(m,g){return g?(s.components[m]=g,p):s.components[m]},directive(m,g){return g?(s.directives[m]=g,p):s.directives[m]},mount(m,g,b){if(!l){const S=bs(n,i);return S.appContext=s,g&&e?e(S,m):r(S,m,b),l=!0,p._container=m,m.__vue_app__=p,Rg(S.component)||S.component.proxy}},unmount(){l&&(r(null,p._container),delete p._container.__vue_app__)},provide(m,g){return s.provides[m]=g,p},runWithContext(m){jm=p;try{return m()}finally{jm=null}}};return p}}let jm=null;function ym(r,e){if(Mo){let t=Mo.provides;const n=Mo.parent&&Mo.parent.provides;n===t&&(t=Mo.provides=Object.create(n)),t[r]=e}}function gl(r,e,t=!1){const n=Mo||Wo;if(n||jm){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:jm._context.provides;if(i&&r in i)return i[r];if(arguments.length>1)return t&&Vi(e)?e.call(n&&n.proxy):e}}function LT(r,e,t,n=!1){const i={},s={};Nm(s,Mg,1),r.propsDefaults=Object.create(null),SC(r,e,i,s);for(const a in r.propsOptions[0])a in i||(i[a]=void 0);t?r.props=n?i:iC(i):r.type.props?r.props=i:r.props=s,r.attrs=s}function XT(r,e,t,n){const{props:i,attrs:s,vnode:{patchFlag:a}}=r,l=Os(i),[p]=r.propsOptions;let m=!1;if((n||a>0)&&!(a&16)){if(a&8){const g=r.vnode.dynamicProps;for(let b=0;b<g.length;b++){let S=g[b];if(_g(r.emitsOptions,S))continue;const $=e[S];if(p)if(ms(s,S))$!==s[S]&&(s[S]=$,m=!0);else{const G=bl(S);i[G]=Dy(p,l,G,$,r,!1)}else $!==s[S]&&(s[S]=$,m=!0)}}}else{SC(r,e,i,s)&&(m=!0);let g;for(const b in l)(!e||!ms(e,b)&&((g=Gh(b))===b||!ms(e,g)))&&(p?t&&(t[b]!==void 0||t[g]!==void 0)&&(i[b]=Dy(p,l,b,void 0,r,!0)):delete i[b]);if(s!==l)for(const b in s)(!e||!ms(e,b))&&(delete s[b],m=!0)}m&&Kl(r,"set","$attrs")}function SC(r,e,t,n){const[i,s]=r.propsOptions;let a=!1,l;if(e)for(let p in e){if(mm(p))continue;const m=e[p];let g;i&&ms(i,g=bl(p))?!s||!s.includes(g)?t[g]=m:(l||(l={}))[g]=m:_g(r.emitsOptions,p)||(!(p in n)||m!==n[p])&&(n[p]=m,a=!0)}if(s){const p=Os(t),m=l||zs;for(let g=0;g<s.length;g++){const b=s[g];t[b]=Dy(i,p,b,m[b],r,!ms(m,b))}}return a}function Dy(r,e,t,n,i,s){const a=r[t];if(a!=null){const l=ms(a,"default");if(l&&n===void 0){const p=a.default;if(a.type!==Function&&!a.skipFactory&&Vi(p)){const{propsDefaults:m}=i;t in m?n=m[t]:(Wp(i),n=m[t]=p.call(null,e),Qh())}else n=p}a[0]&&(s&&!l?n=!1:a[1]&&(n===""||n===Gh(t))&&(n=!0))}return n}function EC(r,e,t=!1){const n=e.propsCache,i=n.get(r);if(i)return i;const s=r.props,a={},l=[];let p=!1;if(!Vi(r)){const g=b=>{p=!0;const[S,$]=EC(b,e,!0);Yo(a,S),$&&l.push(...$)};!t&&e.mixins.length&&e.mixins.forEach(g),r.extends&&g(r.extends),r.mixins&&r.mixins.forEach(g)}if(!s&&!p)return Ns(r)&&n.set(r,_p),_p;if(Pi(s))for(let g=0;g<s.length;g++){const b=bl(s[g]);p1(b)&&(a[b]=zs)}else if(s)for(const g in s){const b=bl(g);if(p1(b)){const S=s[g],$=a[b]=Pi(S)||Vi(S)?{type:S}:Yo({},S);if($){const G=m1(Boolean,$.type),be=m1(String,$.type);$[0]=G>-1,$[1]=be<0||G<be,(G>-1||ms($,"default"))&&l.push(b)}}}const m=[a,l];return Ns(r)&&n.set(r,m),m}function p1(r){return r[0]!=="$"}function f1(r){const e=r&&r.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:r===null?"null":""}function d1(r,e){return f1(r)===f1(e)}function m1(r,e){return Pi(e)?e.findIndex(t=>d1(t,r)):Vi(e)&&d1(e,r)?0:-1}const wC=r=>r[0]==="_"||r==="$stable",UD=r=>Pi(r)?r.map(ol):[ol(r)],VT=(r,e,t)=>{if(e._n)return e;const n=fa((...i)=>UD(e(...i)),t);return n._c=!1,n},AC=(r,e,t)=>{const n=r._ctx;for(const i in r){if(wC(i))continue;const s=r[i];if(Vi(s))e[i]=VT(i,s,n);else if(s!=null){const a=UD(s);e[i]=()=>a}}},TC=(r,e)=>{const t=UD(e);r.slots.default=()=>t},UT=(r,e)=>{if(r.vnode.shapeFlag&32){const t=e._;t?(r.slots=Os(e),Nm(e,"_",t)):AC(e,r.slots={})}else r.slots={},e&&TC(r,e);Nm(r.slots,Mg,1)},qT=(r,e,t)=>{const{vnode:n,slots:i}=r;let s=!0,a=zs;if(n.shapeFlag&32){const l=e._;l?t&&l===1?s=!1:(Yo(i,e),!t&&l===1&&delete i._):(s=!e.$stable,AC(e,i)),a=e}else e&&(TC(r,e),a={default:1});if(s)for(const l in i)!wC(l)&&a[l]==null&&delete i[l]};function Oy(r,e,t,n,i=!1){if(Pi(r)){r.forEach((S,$)=>Oy(S,e&&(Pi(e)?e[$]:e),t,n,i));return}if(Ff(n)&&!i)return;const s=n.shapeFlag&4?Rg(n.component)||n.component.proxy:n.el,a=i?null:s,{i:l,r:p}=r,m=e&&e.r,g=l.refs===zs?l.refs={}:l.refs,b=l.setupState;if(m!=null&&m!==p&&(xo(m)?(g[m]=null,ms(b,m)&&(b[m]=null)):Hs(m)&&(m.value=null)),Vi(p))zc(p,l,12,[a,g]);else{const S=xo(p),$=Hs(p);if(S||$){const G=()=>{if(r.f){const be=S?ms(b,p)?b[p]:g[p]:p.value;i?Pi(be)&&kD(be,s):Pi(be)?be.includes(s)||be.push(s):S?(g[p]=[s],ms(b,p)&&(b[p]=g[p])):(p.value=[s],r.k&&(g[r.k]=p.value))}else S?(g[p]=a,ms(b,p)&&(b[p]=a)):$&&(p.value=a,r.k&&(g[r.k]=a))};a?(G.id=-1,wa(G,t)):G()}}}const wa=OT;function zT(r){return WT(r)}function WT(r,e){const t=cy();t.__VUE__=!0;const{insert:n,remove:i,patchProp:s,createElement:a,createText:l,createComment:p,setText:m,setElementText:g,parentNode:b,nextSibling:S,setScopeId:$=dl,insertStaticContent:G}=r,be=(tt,gt,Zt,dr=null,Fr=null,Lr=null,yn=!1,Jr=null,on=!!gt.dynamicChildren)=>{if(tt===gt)return;tt&&!mf(tt,gt)&&(dr=Sr(tt),os(tt,Fr,Lr,!0),tt=null),gt.patchFlag===-2&&(on=!1,gt.dynamicChildren=null);const{type:Xr,ref:ei,shapeFlag:xn}=gt;switch(Xr){case Ig:ke(tt,gt,Zt,dr);break;case Jc:me(tt,gt,Zt,dr);break;case b0:tt==null&&Ve(gt,Zt,dr,yn);break;case ho:zn(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on);break;default:xn&1?bt(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on):xn&6?Gn(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on):(xn&64||xn&128)&&Xr.process(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on,zr)}ei!=null&&Fr&&Oy(ei,tt&&tt.ref,Lr,gt||tt,!gt)},ke=(tt,gt,Zt,dr)=>{if(tt==null)n(gt.el=l(gt.children),Zt,dr);else{const Fr=gt.el=tt.el;gt.children!==tt.children&&m(Fr,gt.children)}},me=(tt,gt,Zt,dr)=>{tt==null?n(gt.el=p(gt.children||""),Zt,dr):gt.el=tt.el},Ve=(tt,gt,Zt,dr)=>{[tt.el,tt.anchor]=G(tt.children,gt,Zt,dr,tt.el,tt.anchor)},Dt=({el:tt,anchor:gt},Zt,dr)=>{let Fr;for(;tt&&tt!==gt;)Fr=S(tt),n(tt,Zt,dr),tt=Fr;n(gt,Zt,dr)},ht=({el:tt,anchor:gt})=>{let Zt;for(;tt&&tt!==gt;)Zt=S(tt),i(tt),tt=Zt;i(gt)},bt=(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on)=>{yn=yn||gt.type==="svg",tt==null?Yt(gt,Zt,dr,Fr,Lr,yn,Jr,on):yr(tt,gt,Fr,Lr,yn,Jr,on)},Yt=(tt,gt,Zt,dr,Fr,Lr,yn,Jr)=>{let on,Xr;const{type:ei,props:xn,shapeFlag:ti,transition:Ai,dirs:ji}=tt;if(on=tt.el=a(tt.type,Lr,xn&&xn.is,xn),ti&8?g(on,tt.children):ti&16&&qr(tt.children,on,null,dr,Fr,Lr&&ei!=="foreignObject",yn,Jr),ji&&wh(tt,null,dr,"created"),ir(on,tt,tt.scopeId,yn,dr),xn){for(const is in xn)is!=="value"&&!mm(is)&&s(on,is,null,xn[is],Lr,tt.children,dr,Fr,Ts);"value"in xn&&s(on,"value",null,xn.value),(Xr=xn.onVnodeBeforeMount)&&tl(Xr,dr,tt)}ji&&wh(tt,null,dr,"beforeMount");const ls=ZT(Fr,Ai);ls&&Ai.beforeEnter(on),n(on,gt,Zt),((Xr=xn&&xn.onVnodeMounted)||ls||ji)&&wa(()=>{Xr&&tl(Xr,dr,tt),ls&&Ai.enter(on),ji&&wh(tt,null,dr,"mounted")},Fr)},ir=(tt,gt,Zt,dr,Fr)=>{if(Zt&&$(tt,Zt),dr)for(let Lr=0;Lr<dr.length;Lr++)$(tt,dr[Lr]);if(Fr){let Lr=Fr.subTree;if(gt===Lr){const yn=Fr.vnode;ir(tt,yn,yn.scopeId,yn.slotScopeIds,Fr.parent)}}},qr=(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on=0)=>{for(let Xr=on;Xr<tt.length;Xr++){const ei=tt[Xr]=Jr?Ic(tt[Xr]):ol(tt[Xr]);be(null,ei,gt,Zt,dr,Fr,Lr,yn,Jr)}},yr=(tt,gt,Zt,dr,Fr,Lr,yn)=>{const Jr=gt.el=tt.el;let{patchFlag:on,dynamicChildren:Xr,dirs:ei}=gt;on|=tt.patchFlag&16;const xn=tt.props||zs,ti=gt.props||zs;let Ai;Zt&&Ah(Zt,!1),(Ai=ti.onVnodeBeforeUpdate)&&tl(Ai,Zt,gt,tt),ei&&wh(gt,tt,Zt,"beforeUpdate"),Zt&&Ah(Zt,!0);const ji=Fr&>.type!=="foreignObject";if(Xr?kr(tt.dynamicChildren,Xr,Jr,Zt,dr,ji,Lr):yn||jn(tt,gt,Jr,null,Zt,dr,ji,Lr,!1),on>0){if(on&16)Zr(Jr,gt,xn,ti,Zt,dr,Fr);else if(on&2&&xn.class!==ti.class&&s(Jr,"class",null,ti.class,Fr),on&4&&s(Jr,"style",xn.style,ti.style,Fr),on&8){const ls=gt.dynamicProps;for(let is=0;is<ls.length;is++){const Ps=ls[is],Co=xn[Ps],ya=ti[Ps];(ya!==Co||Ps==="value")&&s(Jr,Ps,Co,ya,Fr,tt.children,Zt,dr,Ts)}}on&1&&tt.children!==gt.children&&g(Jr,gt.children)}else!yn&&Xr==null&&Zr(Jr,gt,xn,ti,Zt,dr,Fr);((Ai=ti.onVnodeUpdated)||ei)&&wa(()=>{Ai&&tl(Ai,Zt,gt,tt),ei&&wh(gt,tt,Zt,"updated")},dr)},kr=(tt,gt,Zt,dr,Fr,Lr,yn)=>{for(let Jr=0;Jr<gt.length;Jr++){const on=tt[Jr],Xr=gt[Jr],ei=on.el&&(on.type===ho||!mf(on,Xr)||on.shapeFlag&70)?b(on.el):Zt;be(on,Xr,ei,null,dr,Fr,Lr,yn,!0)}},Zr=(tt,gt,Zt,dr,Fr,Lr,yn)=>{if(Zt!==dr){if(Zt!==zs)for(const Jr in Zt)!mm(Jr)&&!(Jr in dr)&&s(tt,Jr,Zt[Jr],null,yn,gt.children,Fr,Lr,Ts);for(const Jr in dr){if(mm(Jr))continue;const on=dr[Jr],Xr=Zt[Jr];on!==Xr&&Jr!=="value"&&s(tt,Jr,Xr,on,yn,gt.children,Fr,Lr,Ts)}"value"in dr&&s(tt,"value",Zt.value,dr.value)}},zn=(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on)=>{const Xr=gt.el=tt?tt.el:l(""),ei=gt.anchor=tt?tt.anchor:l("");let{patchFlag:xn,dynamicChildren:ti,slotScopeIds:Ai}=gt;Ai&&(Jr=Jr?Jr.concat(Ai):Ai),tt==null?(n(Xr,Zt,dr),n(ei,Zt,dr),qr(gt.children,Zt,ei,Fr,Lr,yn,Jr,on)):xn>0&&xn&64&&ti&&tt.dynamicChildren?(kr(tt.dynamicChildren,ti,Zt,Fr,Lr,yn,Jr),(gt.key!=null||Fr&>===Fr.subTree)&&PC(tt,gt,!0)):jn(tt,gt,Zt,ei,Fr,Lr,yn,Jr,on)},Gn=(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on)=>{gt.slotScopeIds=Jr,tt==null?gt.shapeFlag&512?Fr.ctx.activate(gt,Zt,dr,yn,on):Ii(gt,Zt,dr,Fr,Lr,yn,on):ii(tt,gt,on)},Ii=(tt,gt,Zt,dr,Fr,Lr,yn)=>{const Jr=tt.component=rP(tt,dr,Fr);if(DC(tt)&&(Jr.ctx.renderer=zr),nP(Jr),Jr.asyncDep){if(Fr&&Fr.registerDep(Jr,Sn),!tt.el){const on=Jr.subTree=bs(Jc);me(null,on,gt,Zt)}return}Sn(Jr,tt,gt,Zt,Fr,Lr,yn)},ii=(tt,gt,Zt)=>{const dr=gt.component=tt.component;if(dT(tt,gt,Zt))if(dr.asyncDep&&!dr.asyncResolved){Wn(dr,gt,Zt);return}else dr.next=gt,sT(dr.update),dr.update();else gt.el=tt.el,dr.vnode=gt},Sn=(tt,gt,Zt,dr,Fr,Lr,yn)=>{const Jr=()=>{if(tt.isMounted){let{next:ei,bu:xn,u:ti,parent:Ai,vnode:ji}=tt,ls=ei,is;Ah(tt,!1),ei?(ei.el=ji.el,Wn(tt,ei,yn)):ei=ji,xn&&gm(xn),(is=ei.props&&ei.props.onVnodeBeforeUpdate)&&tl(is,Ai,ei,ji),Ah(tt,!0);const Ps=O0(tt),Co=tt.subTree;tt.subTree=Ps,be(Co,Ps,b(Co.el),Sr(Co),tt,Fr,Lr),ei.el=Ps.el,ls===null&&mT(tt,Ps.el),ti&&wa(ti,Fr),(is=ei.props&&ei.props.onVnodeUpdated)&&wa(()=>tl(is,Ai,ei,ji),Fr)}else{let ei;const{el:xn,props:ti}=gt,{bm:Ai,m:ji,parent:ls}=tt,is=Ff(gt);if(Ah(tt,!1),Ai&&gm(Ai),!is&&(ei=ti&&ti.onVnodeBeforeMount)&&tl(ei,ls,gt),Ah(tt,!0),xn&&Ki){const Ps=()=>{tt.subTree=O0(tt),Ki(xn,tt.subTree,tt,Fr,null)};is?gt.type.__asyncLoader().then(()=>!tt.isUnmounted&&Ps()):Ps()}else{const Ps=tt.subTree=O0(tt);be(null,Ps,Zt,dr,tt,Fr,Lr),gt.el=Ps.el}if(ji&&wa(ji,Fr),!is&&(ei=ti&&ti.onVnodeMounted)){const Ps=gt;wa(()=>tl(ei,ls,Ps),Fr)}(gt.shapeFlag&256||ls&&Ff(ls.vnode)&&ls.vnode.shapeFlag&256)&&tt.a&&wa(tt.a,Fr),tt.isMounted=!0,gt=Zt=dr=null}},on=tt.effect=new $D(Jr,()=>LD(Xr),tt.scope),Xr=tt.update=()=>on.run();Xr.id=tt.uid,Ah(tt,!0),Xr()},Wn=(tt,gt,Zt)=>{gt.component=tt;const dr=tt.vnode.props;tt.vnode=gt,tt.next=null,XT(tt,gt.props,dr,Zt),qT(tt,gt.children,Zt),rf(),s1(),nf()},jn=(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on=!1)=>{const Xr=tt&&tt.children,ei=tt?tt.shapeFlag:0,xn=gt.children,{patchFlag:ti,shapeFlag:Ai}=gt;if(ti>0){if(ti&128){$i(Xr,xn,Zt,dr,Fr,Lr,yn,Jr,on);return}else if(ti&256){Bn(Xr,xn,Zt,dr,Fr,Lr,yn,Jr,on);return}}Ai&8?(ei&16&&Ts(Xr,Fr,Lr),xn!==Xr&&g(Zt,xn)):ei&16?Ai&16?$i(Xr,xn,Zt,dr,Fr,Lr,yn,Jr,on):Ts(Xr,Fr,Lr,!0):(ei&8&&g(Zt,""),Ai&16&&qr(xn,Zt,dr,Fr,Lr,yn,Jr,on))},Bn=(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on)=>{tt=tt||_p,gt=gt||_p;const Xr=tt.length,ei=gt.length,xn=Math.min(Xr,ei);let ti;for(ti=0;ti<xn;ti++){const Ai=gt[ti]=on?Ic(gt[ti]):ol(gt[ti]);be(tt[ti],Ai,Zt,null,Fr,Lr,yn,Jr,on)}Xr>ei?Ts(tt,Fr,Lr,!0,!1,xn):qr(gt,Zt,dr,Fr,Lr,yn,Jr,on,xn)},$i=(tt,gt,Zt,dr,Fr,Lr,yn,Jr,on)=>{let Xr=0;const ei=gt.length;let xn=tt.length-1,ti=ei-1;for(;Xr<=xn&&Xr<=ti;){const Ai=tt[Xr],ji=gt[Xr]=on?Ic(gt[Xr]):ol(gt[Xr]);if(mf(Ai,ji))be(Ai,ji,Zt,null,Fr,Lr,yn,Jr,on);else break;Xr++}for(;Xr<=xn&&Xr<=ti;){const Ai=tt[xn],ji=gt[ti]=on?Ic(gt[ti]):ol(gt[ti]);if(mf(Ai,ji))be(Ai,ji,Zt,null,Fr,Lr,yn,Jr,on);else break;xn--,ti--}if(Xr>xn){if(Xr<=ti){const Ai=ti+1,ji=Ai<ei?gt[Ai].el:dr;for(;Xr<=ti;)be(null,gt[Xr]=on?Ic(gt[Xr]):ol(gt[Xr]),Zt,ji,Fr,Lr,yn,Jr,on),Xr++}}else if(Xr>ti)for(;Xr<=xn;)os(tt[Xr],Fr,Lr,!0),Xr++;else{const Ai=Xr,ji=Xr,ls=new Map;for(Xr=ji;Xr<=ti;Xr++){const so=gt[Xr]=on?Ic(gt[Xr]):ol(gt[Xr]);so.key!=null&&ls.set(so.key,Xr)}let is,Ps=0;const Co=ti-ji+1;let ya=!1,Go=0;const Da=new Array(Co);for(Xr=0;Xr<Co;Xr++)Da[Xr]=0;for(Xr=Ai;Xr<=xn;Xr++){const so=tt[Xr];if(Ps>=Co){os(so,Fr,Lr,!0);continue}let Hr;if(so.key!=null)Hr=ls.get(so.key);else for(is=ji;is<=ti;is++)if(Da[is-ji]===0&&mf(so,gt[is])){Hr=is;break}Hr===void 0?os(so,Fr,Lr,!0):(Da[Hr-ji]=Xr+1,Hr>=Go?Go=Hr:ya=!0,be(so,gt[Hr],Zt,null,Fr,Lr,yn,Jr,on),Ps++)}const Fu=ya?YT(Da):_p;for(is=Fu.length-1,Xr=Co-1;Xr>=0;Xr--){const so=ji+Xr,Hr=gt[so],Kt=so+1<ei?gt[so+1].el:dr;Da[Xr]===0?be(null,Hr,Zt,Kt,Fr,Lr,yn,Jr,on):ya&&(is<0||Xr!==Fu[is]?Ui(Hr,Zt,Kt,2):is--)}}},Ui=(tt,gt,Zt,dr,Fr=null)=>{const{el:Lr,type:yn,transition:Jr,children:on,shapeFlag:Xr}=tt;if(Xr&6){Ui(tt.component.subTree,gt,Zt,dr);return}if(Xr&128){tt.suspense.move(gt,Zt,dr);return}if(Xr&64){yn.move(tt,gt,Zt,zr);return}if(yn===ho){n(Lr,gt,Zt);for(let xn=0;xn<on.length;xn++)Ui(on[xn],gt,Zt,dr);n(tt.anchor,gt,Zt);return}if(yn===b0){Dt(tt,gt,Zt);return}if(dr!==2&&Xr&1&&Jr)if(dr===0)Jr.beforeEnter(Lr),n(Lr,gt,Zt),wa(()=>Jr.enter(Lr),Fr);else{const{leave:xn,delayLeave:ti,afterLeave:Ai}=Jr,ji=()=>n(Lr,gt,Zt),ls=()=>{xn(Lr,()=>{ji(),Ai&&Ai()})};ti?ti(Lr,ji,ls):ls()}else n(Lr,gt,Zt)},os=(tt,gt,Zt,dr=!1,Fr=!1)=>{const{type:Lr,props:yn,ref:Jr,children:on,dynamicChildren:Xr,shapeFlag:ei,patchFlag:xn,dirs:ti}=tt;if(Jr!=null&&Oy(Jr,null,Zt,tt,!0),ei&256){gt.ctx.deactivate(tt);return}const Ai=ei&1&&ti,ji=!Ff(tt);let ls;if(ji&&(ls=yn&&yn.onVnodeBeforeUnmount)&&tl(ls,gt,tt),ei&6)Xs(tt.component,Zt,dr);else{if(ei&128){tt.suspense.unmount(Zt,dr);return}Ai&&wh(tt,null,gt,"beforeUnmount"),ei&64?tt.type.remove(tt,gt,Zt,Fr,zr,dr):Xr&&(Lr!==ho||xn>0&&xn&64)?Ts(Xr,gt,Zt,!1,!0):(Lr===ho&&xn&384||!Fr&&ei&16)&&Ts(on,gt,Zt),dr&&ds(tt)}(ji&&(ls=yn&&yn.onVnodeUnmounted)||Ai)&&wa(()=>{ls&&tl(ls,gt,tt),Ai&&wh(tt,null,gt,"unmounted")},Zt)},ds=tt=>{const{type:gt,el:Zt,anchor:dr,transition:Fr}=tt;if(gt===ho){us(Zt,dr);return}if(gt===b0){ht(tt);return}const Lr=()=>{i(Zt),Fr&&!Fr.persisted&&Fr.afterLeave&&Fr.afterLeave()};if(tt.shapeFlag&1&&Fr&&!Fr.persisted){const{leave:yn,delayLeave:Jr}=Fr,on=()=>yn(Zt,Lr);Jr?Jr(tt.el,Lr,on):on()}else Lr()},us=(tt,gt)=>{let Zt;for(;tt!==gt;)Zt=S(tt),i(tt),tt=Zt;i(gt)},Xs=(tt,gt,Zt)=>{const{bum:dr,scope:Fr,update:Lr,subTree:yn,um:Jr}=tt;dr&&gm(dr),Fr.stop(),Lr&&(Lr.active=!1,os(yn,tt,gt,Zt)),Jr&&wa(Jr,gt),wa(()=>{tt.isUnmounted=!0},gt),gt&>.pendingBranch&&!gt.isUnmounted&&tt.asyncDep&&!tt.asyncResolved&&tt.suspenseId===gt.pendingId&&(gt.deps--,gt.deps===0&>.resolve())},Ts=(tt,gt,Zt,dr=!1,Fr=!1,Lr=0)=>{for(let yn=Lr;yn<tt.length;yn++)os(tt[yn],gt,Zt,dr,Fr)},Sr=tt=>tt.shapeFlag&6?Sr(tt.component.subTree):tt.shapeFlag&128?tt.suspense.next():S(tt.anchor||tt.el),cn=(tt,gt,Zt)=>{tt==null?gt._vnode&&os(gt._vnode,null,null,!0):be(gt._vnode||null,tt,gt,null,null,null,Zt),s1(),pC(),gt._vnode=tt},zr={p:be,um:os,m:Ui,r:ds,mt:Ii,mc:qr,pc:jn,pbc:kr,n:Sr,o:r};let In,Ki;return e&&([In,Ki]=e(zr)),{render:cn,hydrate:In,createApp:jT(cn,In)}}function Ah({effect:r,update:e},t){r.allowRecurse=e.allowRecurse=t}function ZT(r,e){return(!r||r&&!r.pendingBranch)&&e&&!e.persisted}function PC(r,e,t=!1){const n=r.children,i=e.children;if(Pi(n)&&Pi(i))for(let s=0;s<n.length;s++){const a=n[s];let l=i[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[s]=Ic(i[s]),l.el=a.el),t||PC(a,l)),l.type===Ig&&(l.el=a.el)}}function YT(r){const e=r.slice(),t=[0];let n,i,s,a,l;const p=r.length;for(n=0;n<p;n++){const m=r[n];if(m!==0){if(i=t[t.length-1],r[i]<m){e[n]=i,t.push(n);continue}for(s=0,a=t.length-1;s<a;)l=s+a>>1,r[t[l]]<m?s=l+1:a=l;m<r[t[s]]&&(s>0&&(e[n]=t[s-1]),t[s]=n)}}for(s=t.length,a=t[s-1];s-- >0;)t[s]=a,a=e[a];return t}const GT=r=>r.__isTeleport,ho=Symbol.for("v-fgt"),Ig=Symbol.for("v-txt"),Jc=Symbol.for("v-cmt"),b0=Symbol.for("v-stc"),$f=[];let vu=null;function bi(r=!1){$f.push(vu=r?null:[])}function HT(){$f.pop(),vu=$f[$f.length-1]||null}let Zf=1;function g1(r){Zf+=r}function kC(r){return r.dynamicChildren=Zf>0?vu||_p:null,HT(),Zf>0&&vu&&vu.push(r),r}function ns(r,e,t,n,i,s){return kC(sn(r,e,t,n,i,s,!0))}function Zo(r,e,t,n,i){return kC(bs(r,e,t,n,i,!0))}function Lm(r){return r?r.__v_isVNode===!0:!1}function mf(r,e){return r.type===e.type&&r.key===e.key}const Mg="__vInternal",FC=({key:r})=>r??null,Dm=({ref:r,ref_key:e,ref_for:t})=>(typeof r=="number"&&(r=""+r),r!=null?xo(r)||Hs(r)||Vi(r)?{i:Wo,r,k:e,f:!!t}:r:null);function sn(r,e=null,t=null,n=0,i=null,s=r===ho?0:1,a=!1,l=!1){const p={__v_isVNode:!0,__v_skip:!0,type:r,props:e,key:e&&FC(e),ref:e&&Dm(e),scopeId:$g,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Wo};return l?(qD(p,t),s&128&&r.normalize(p)):t&&(p.shapeFlag|=xo(t)?8:16),Zf>0&&!a&&vu&&(p.patchFlag>0||s&6)&&p.patchFlag!==32&&vu.push(p),p}const bs=JT;function JT(r,e=null,t=null,n=0,i=null,s=!1){if((!r||r===gT)&&(r=Jc),Lm(r)){const l=zp(r,e,!0);return t&&qD(l,t),Zf>0&&!s&&vu&&(l.shapeFlag&6?vu[vu.indexOf(r)]=l:vu.push(l)),l.patchFlag|=-2,l}if(uP(r)&&(r=r.__vccOpts),e){e=_C(e);let{class:l,style:p}=e;l&&!xo(l)&&(e.class=Fa(l)),Ns(p)&&(sC(p)&&!Pi(p)&&(p=Yo({},p)),e.style=ml(p))}const a=xo(r)?1:DT(r)?128:GT(r)?64:Ns(r)?4:Vi(r)?2:0;return sn(r,e,t,n,i,a,s,!0)}function _C(r){return r?sC(r)||Mg in r?Yo({},r):r:null}function zp(r,e,t=!1){const{props:n,ref:i,patchFlag:s,children:a}=r,l=e?KT(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:l,key:l&&FC(l),ref:e&&e.ref?t&&i?Pi(i)?i.concat(Dm(e)):[i,Dm(e)]:Dm(e):i,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:a,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:e&&r.type!==ho?s===-1?16:s|16:s,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:r.transition,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&zp(r.ssContent),ssFallback:r.ssFallback&&zp(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce}}function pa(r=" ",e=0){return bs(Ig,null,r,e)}function Eu(r="",e=!1){return e?(bi(),Zo(Jc,null,r)):bs(Jc,null,r)}function ol(r){return r==null||typeof r=="boolean"?bs(Jc):Pi(r)?bs(ho,null,r.slice()):typeof r=="object"?Ic(r):bs(Ig,null,String(r))}function Ic(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:zp(r)}function qD(r,e){let t=0;const{shapeFlag:n}=r;if(e==null)e=null;else if(Pi(e))t=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),qD(r,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!(Mg in e)?e._ctx=Wo:i===3&&Wo&&(Wo.slots._===1?e._=1:(e._=2,r.patchFlag|=1024))}else Vi(e)?(e={default:e,_ctx:Wo},t=32):(e=String(e),n&64?(t=16,e=[pa(e)]):t=8);r.children=e,r.shapeFlag|=t}function KT(...r){const e={};for(let t=0;t<r.length;t++){const n=r[t];for(const i in n)if(i==="class")e.class!==n.class&&(e.class=Fa([e.class,n.class]));else if(i==="style")e.style=ml([e.style,n.style]);else if(Eg(i)){const s=e[i],a=n[i];a&&s!==a&&!(Pi(s)&&s.includes(a))&&(e[i]=s?[].concat(s,a):a)}else i!==""&&(e[i]=n[i])}return e}function tl(r,e,t,n=null){Su(r,e,7,[t,n])}const eP=CC();let tP=0;function rP(r,e,t){const n=r.type,i=(e?e.appContext:r.appContext)||eP,s={uid:tP++,vnode:r,type:n,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new CA(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:EC(n,i),emitsOptions:dC(n,i),emit:null,emitted:null,propsDefaults:zs,inheritAttrs:n.inheritAttrs,ctx:zs,data:zs,props:zs,attrs:zs,slots:zs,refs:zs,setupState:zs,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:t,suspenseId:t?t.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 s.ctx={_:s},s.root=e?e.root:s,s.emit=uT.bind(null,s),r.ce&&r.ce(s),s}let Mo=null;const zD=()=>Mo||Wo;let WD,vp,y1="__VUE_INSTANCE_SETTERS__";(vp=cy()[y1])||(vp=cy()[y1]=[]),vp.push(r=>Mo=r),WD=r=>{vp.length>1?vp.forEach(e=>e(r)):vp[0](r)};const Wp=r=>{WD(r),r.scope.on()},Qh=()=>{Mo&&Mo.scope.off(),WD(null)};function $C(r){return r.vnode.shapeFlag&4}let Yf=!1;function nP(r,e=!1){Yf=e;const{props:t,children:n}=r.vnode,i=$C(r);LT(r,t,i,e),UT(r,n);const s=i?iP(r,e):void 0;return Yf=!1,s}function iP(r,e){const t=r.type;r.accessCache=Object.create(null),r.proxy=oC(new Proxy(r.ctx,$T));const{setup:n}=t;if(n){const i=r.setupContext=n.length>1?oP(r):null;Wp(r),rf();const s=zc(n,r,0,[r.props,i]);if(nf(),Qh(),Lv(s)){if(s.then(Qh,Qh),e)return s.then(a=>{D1(r,a,e)}).catch(a=>{Fg(a,r,0)});r.asyncDep=s}else D1(r,s,e)}else BC(r,e)}function D1(r,e,t){Vi(e)?r.type.__ssrInlineRender?r.ssrRender=e:r.render=e:Ns(e)&&(r.setupState=uC(e)),BC(r,t)}let O1;function BC(r,e,t){const n=r.type;if(!r.render){if(!e&&O1&&!n.render){const i=n.template||VD(r).template;if(i){const{isCustomElement:s,compilerOptions:a}=r.appContext.config,{delimiters:l,compilerOptions:p}=n,m=Yo(Yo({isCustomElement:s,delimiters:l},a),p);n.render=O1(i,m)}}r.render=n.render||dl}{Wp(r),rf();try{BT(r)}finally{nf(),Qh()}}}function sP(r){return r.attrsProxy||(r.attrsProxy=new Proxy(r.attrs,{get(e,t){return _a(r,"get","$attrs"),e[t]}}))}function oP(r){const e=t=>{r.exposed=t||{}};return{get attrs(){return sP(r)},slots:r.slots,emit:r.emit,expose:e}}function Rg(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(uC(oC(r.exposed)),{get(e,t){if(t in e)return e[t];if(t in _f)return _f[t](r)},has(e,t){return t in e||t in _f}}))}function aP(r,e=!0){return Vi(r)?r.displayName||r.name:r.name||e&&r.__name}function uP(r){return Vi(r)&&"__vccOpts"in r}const as=(r,e)=>rT(r,e,Yf);function ZD(r,e,t){const n=arguments.length;return n===2?Ns(e)&&!Pi(e)?Lm(e)?bs(r,null,[e]):bs(r,e):bs(r,null,e):(n>3?t=Array.prototype.slice.call(arguments,2):n===3&&Lm(t)&&(t=[t]),bs(r,e,t))}const lP=Symbol.for("v-scx"),cP=()=>gl(lP),hP="3.3.9",pP="http://www.w3.org/2000/svg",_h=typeof document<"u"?document:null,x1=_h&&_h.createElement("template"),fP={insert:(r,e,t)=>{e.insertBefore(r,t||null)},remove:r=>{const e=r.parentNode;e&&e.removeChild(r)},createElement:(r,e,t,n)=>{const i=e?_h.createElementNS(pP,r):_h.createElement(r,t?{is:t}:void 0);return r==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:r=>_h.createTextNode(r),createComment:r=>_h.createComment(r),setText:(r,e)=>{r.nodeValue=e},setElementText:(r,e)=>{r.textContent=e},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>_h.querySelector(r),setScopeId(r,e){r.setAttribute(e,"")},insertStaticContent(r,e,t,n,i,s){const a=t?t.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===s||!(i=i.nextSibling)););else{x1.innerHTML=n?`<svg>${r}</svg>`:r;const l=x1.content;if(n){const p=l.firstChild;for(;p.firstChild;)l.appendChild(p.firstChild);l.removeChild(p)}e.insertBefore(l,t)}return[a?a.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},dP=Symbol("_vtc");function mP(r,e,t){const n=r[dP];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?r.removeAttribute("class"):t?r.setAttribute("class",e):r.className=e}const gP=Symbol("_vod");function yP(r,e,t){const n=r.style,i=xo(t);if(t&&!i){if(e&&!xo(e))for(const s in e)t[s]==null&&xy(n,s,"");for(const s in t)xy(n,s,t[s])}else{const s=n.display;i?e!==t&&(n.cssText=t):e&&r.removeAttribute("style"),gP in r&&(n.display=s)}}const b1=/\s*!important$/;function xy(r,e,t){if(Pi(t))t.forEach(n=>xy(r,e,n));else if(t==null&&(t=""),e.startsWith("--"))r.setProperty(e,t);else{const n=DP(r,e);b1.test(t)?r.setProperty(Gh(n),t.replace(b1,""),"important"):r[n]=t}}const v1=["Webkit","Moz","ms"],v0={};function DP(r,e){const t=v0[e];if(t)return t;let n=bl(e);if(n!=="filter"&&n in r)return v0[e]=n;n=Tg(n);for(let i=0;i<v1.length;i++){const s=v1[i]+n;if(s in r)return v0[e]=s}return e}const C1="http://www.w3.org/1999/xlink";function OP(r,e,t,n,i){if(n&&e.startsWith("xlink:"))t==null?r.removeAttributeNS(C1,e.slice(6,e.length)):r.setAttributeNS(C1,e,t);else{const s=bA(e);t==null||s&&!Uv(t)?r.removeAttribute(e):r.setAttribute(e,s?"":t)}}function xP(r,e,t,n,i,s,a){if(e==="innerHTML"||e==="textContent"){n&&a(n,i,s),r[e]=t??"";return}const l=r.tagName;if(e==="value"&&l!=="PROGRESS"&&!l.includes("-")){r._value=t;const m=l==="OPTION"?r.getAttribute("value"):r.value,g=t??"";m!==g&&(r.value=g),t==null&&r.removeAttribute(e);return}let p=!1;if(t===""||t==null){const m=typeof r[e];m==="boolean"?t=Uv(t):t==null&&m==="string"?(t="",p=!0):m==="number"&&(t=0,p=!0)}try{r[e]=t}catch{}p&&r.removeAttribute(e)}function NC(r,e,t,n){r.addEventListener(e,t,n)}function bP(r,e,t,n){r.removeEventListener(e,t,n)}const S1=Symbol("_vei");function vP(r,e,t,n,i=null){const s=r[S1]||(r[S1]={}),a=s[e];if(n&&a)a.value=n;else{const[l,p]=CP(e);if(n){const m=s[e]=wP(n,i);NC(r,l,m,p)}else a&&(bP(r,l,a,p),s[e]=void 0)}}const E1=/(?:Once|Passive|Capture)$/;function CP(r){let e;if(E1.test(r)){e={};let n;for(;n=r.match(E1);)r=r.slice(0,r.length-n[0].length),e[n[0].toLowerCase()]=!0}return[r[2]===":"?r.slice(3):Gh(r.slice(2)),e]}let C0=0;const SP=Promise.resolve(),EP=()=>C0||(SP.then(()=>C0=0),C0=Date.now());function wP(r,e){const t=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=t.attached)return;Su(AP(n,t.value),e,5,[n])};return t.value=r,t.attached=EP(),t}function AP(r,e){if(Pi(e)){const t=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{t.call(r),r._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const w1=/^on[a-z]/,TP=(r,e,t,n,i=!1,s,a,l,p)=>{e==="class"?mP(r,n,i):e==="style"?yP(r,t,n):Eg(e)?PD(e)||vP(r,e,t,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):PP(r,e,n,i))?xP(r,e,n,s,a,l,p):(e==="true-value"?r._trueValue=n:e==="false-value"&&(r._falseValue=n),OP(r,e,n,i))};function PP(r,e,t,n){return n?!!(e==="innerHTML"||e==="textContent"||e in r&&w1.test(e)&&Vi(t)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&r.tagName==="INPUT"||e==="type"&&r.tagName==="TEXTAREA"||w1.test(e)&&xo(t)?!1:e in r}const A1=r=>{const e=r.props["onUpdate:modelValue"]||!1;return Pi(e)?t=>gm(e,t):e},S0=Symbol("_assign"),kP={deep:!0,created(r,e,t){r[S0]=A1(t),NC(r,"change",()=>{const n=r._modelValue,i=FP(r),s=r.checked,a=r[S0];if(Pi(n)){const l=qv(n,i),p=l!==-1;if(s&&!p)a(n.concat(i));else if(!s&&p){const m=[...n];m.splice(l,1),a(m)}}else if(wg(n)){const l=new Set(n);s?l.add(i):l.delete(i),a(l)}else a(IC(r,s))})},mounted:T1,beforeUpdate(r,e,t){r[S0]=A1(t),T1(r,e,t)}};function T1(r,{value:e,oldValue:t},n){r._modelValue=e,Pi(e)?r.checked=qv(e,n.props.value)>-1:wg(e)?r.checked=e.has(n.props.value):e!==t&&(r.checked=Pg(e,IC(r,!0)))}function FP(r){return"_value"in r?r._value:r.value}function IC(r,e){const t=e?"_trueValue":"_falseValue";return t in r?r[t]:e}const _P={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},$P=(r,e)=>t=>{if(!("key"in t))return;const n=Gh(t.key);if(e.some(i=>i===n||_P[i]===n))return r(t)},BP=Yo({patchProp:TP},fP);let P1;function NP(){return P1||(P1=zT(BP))}const IP=(...r)=>{const e=NP().createApp(...r),{mount:t}=e;return e.mount=n=>{const i=MP(n);if(!i)return;const s=e._component;!Vi(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const a=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},e};function MP(r){return xo(r)?document.querySelector(r):r}function Vd(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const RP=/^\[(.+?)~?="(.*)"\]$/,QP=/[\w\u00A0-\uFFFF-_:%-?]/;function MC(r){return r.match(RP)}function z7(r=""){return QP.test(r)}const jP=/([\\:]?[\s"'`;<>]|:\(|\)"|\)\s)/g;var rc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qg(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var k1={exports:{}};(function(r,e){(function(t,n){n(e)})(rc,function(t){const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),l=new Uint8Array(128);for(let me=0;me<s.length;me++){const Ve=s.charCodeAt(me);a[me]=Ve,l[Ve]=me}const p=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(me){return Buffer.from(me.buffer,me.byteOffset,me.byteLength).toString()}}:{decode(me){let Ve="";for(let Dt=0;Dt<me.length;Dt++)Ve+=String.fromCharCode(me[Dt]);return Ve}};function m(me){const Ve=new Int32Array(5),Dt=[];let ht=0;do{const bt=g(me,ht),Yt=[];let ir=!0,qr=0;Ve[0]=0;for(let yr=ht;yr<bt;yr++){let kr;yr=b(me,yr,Ve,0);const Zr=Ve[0];Zr<qr&&(ir=!1),qr=Zr,S(me,yr,bt)?(yr=b(me,yr,Ve,1),yr=b(me,yr,Ve,2),yr=b(me,yr,Ve,3),S(me,yr,bt)?(yr=b(me,yr,Ve,4),kr=[Zr,Ve[1],Ve[2],Ve[3],Ve[4]]):kr=[Zr,Ve[1],Ve[2],Ve[3]]):kr=[Zr],Yt.push(kr)}ir||$(Yt),Dt.push(Yt),ht=bt+1}while(ht<=me.length);return Dt}function g(me,Ve){const Dt=me.indexOf(";",Ve);return Dt===-1?me.length:Dt}function b(me,Ve,Dt,ht){let bt=0,Yt=0,ir=0;do{const yr=me.charCodeAt(Ve++);ir=l[yr],bt|=(ir&31)<<Yt,Yt+=5}while(ir&32);const qr=bt&1;return bt>>>=1,qr&&(bt=-2147483648|-bt),Dt[ht]+=bt,Ve}function S(me,Ve,Dt){return Ve>=Dt?!1:me.charCodeAt(Ve)!==44}function $(me){me.sort(G)}function G(me,Ve){return me[0]-Ve[0]}function be(me){const Ve=new Int32Array(5),Dt=1024*16,ht=Dt-36,bt=new Uint8Array(Dt),Yt=bt.subarray(0,ht);let ir=0,qr="";for(let yr=0;yr<me.length;yr++){const kr=me[yr];if(yr>0&&(ir===Dt&&(qr+=p.decode(bt),ir=0),bt[ir++]=59),kr.length!==0){Ve[0]=0;for(let Zr=0;Zr<kr.length;Zr++){const zn=kr[Zr];ir>ht&&(qr+=p.decode(Yt),bt.copyWithin(0,ht,ir),ir-=ht),Zr>0&&(bt[ir++]=44),ir=ke(bt,ir,Ve,zn,0),zn.length!==1&&(ir=ke(bt,ir,Ve,zn,1),ir=ke(bt,ir,Ve,zn,2),ir=ke(bt,ir,Ve,zn,3),zn.length!==4&&(ir=ke(bt,ir,Ve,zn,4)))}}}return qr+p.decode(bt.subarray(0,ir))}function ke(me,Ve,Dt,ht,bt){const Yt=ht[bt];let ir=Yt-Dt[bt];Dt[bt]=Yt,ir=ir<0?-ir<<1|1:ir<<1;do{let qr=ir&31;ir>>>=5,ir>0&&(qr|=32),me[Ve++]=a[qr]}while(ir>0);return Ve}t.decode=m,t.encode=be,Object.defineProperty(t,"__esModule",{value:!0})})})(k1,k1.exports);const LP=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,XP=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g;function VP(r,e,t){const n=[];return e.forEach(i=>{if(i.includes(":"))i===r&&n.push([t,t+i.length,i]);else{const a=new RegExp(`.(${i})[.#=s(]|.(${i})$`).exec(r);a?n.push([t+a.index+1,t+a.index+i.length+1,i]):i===r&&n.push([t,t+i.length,i])}}),n}function UP(r,e,t=[],n={}){const i=[],s=[],a=new Set,l=[],p=[];if(n.includeRegex)for(const b of n.includeRegex)for(const S of r.matchAll(b))l.push([S.index,S.index+S[0].length]);else l.push([0,r.length]);if(n.excludeRegex)for(const b of n.excludeRegex)for(const S of r.matchAll(b))p.push([S.index,S.index+S[0].length]);Array.from(e).forEach(b=>{const S=MC(b);S?S[2]?s.push(S):(m(S[1]),a.add(S[1])):(m(b),a.add(b))});function m(b){if(/[><]/.test(b))for(const S of r.matchAll(new RegExp(Vd(b),"g"))){const $=S.index,G=$+S[0].length;i.push([$,G,S[0]])}}let g=0;r.split(jP).forEach(b=>{const S=g+b.length;n.isPug?i.push(...VP(b,a,g)):a.has(b)&&i.push([g,S,b]),g=S});for(const b of r.matchAll(LP)){const S=b.index,$=S+b[0].length;a.has(b[0])&&i.push([S,$,b[0]])}for(const b of r.matchAll(XP)){const S=b.index,$=S+b[0].length;a.has(b[0])&&i.findIndex(([be,ke])=>be===S&&ke===$)<0&&i.push([S,$,b[0]])}return s.forEach(([,b,S])=>{const $=new RegExp(`(${Vd(b)}=)(['"])[^\\2]*?${Vd(S)}[^\\2]*?\\2`,"g");Array.from(r.matchAll($)).forEach(G=>{var ht;const be=G[1],ke=G[0].slice(be.length);let me=((ht=ke.match(`[\\b\\s'"]${Vd(S)}[\\b\\s'"]`))==null?void 0:ht.index)??-1;if(/[\s'"]/.test(ke[me]??"")&&me++,me<0)return;const Ve=G.index+be.length+me,Dt=Ve+S.length;i.push([Ve,Dt,`[${b}="${S}"]`])})}),i.push(...t.map(b=>[b.offset,b.offset+b.length,b.className])),i.filter(([b,S])=>p.some(([$,G])=>b>=$&&S<=G)?!1:!!l.some(([$,G])=>b>=$&&S<=G)).sort((b,S)=>b[0]-S[0])}class Ds{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),ll.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),ll.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new Bf(this),s=new Bf(e);for(let a=t,l=t;;){if(i.next(a),s.next(a),a=0,i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return!1;if(l+=i.value.length,i.done||l>=n)return!0}}iter(e=1){return new Bf(this,e)}iterRange(e,t=this.length){return new RC(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t==null&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new QC(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Ds.empty:e.length<=32?new co(e):ll.from(co.split(e,[]))}}class co extends Ds{constructor(e,t=qP(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let s=0;;s++){let a=this.text[s],l=i+a.length;if((t?n:l)>=e)return new zP(i,l,n,a);i=l+1,n++}}decompose(e,t,n,i){let s=e<=0&&t>=this.length?this:new co(F1(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(i&1){let a=n.pop(),l=Om(s.text,a.text.slice(),0,s.length);if(l.length<=32)n.push(new co(l,a.length+s.length));else{let p=l.length>>1;n.push(new co(l.slice(0,p)),new co(l.slice(p)))}}else n.push(s)}replace(e,t,n){if(!(n instanceof co))return super.replace(e,t,n);let i=Om(this.text,Om(n.text,F1(this.text,0,e)),t),s=this.length+n.length-(t-e);return i.length<=32?new co(i,s):ll.from(co.split(i,[]),s)}sliceString(e,t=this.length,n=`
|
|
2
2
|
`){let i="";for(let s=0,a=0;s<=t&&a<this.text.length;a++){let l=this.text[a],p=s+l.length;s>e&&a&&(i+=n),e<p&&t>s&&(i+=l.slice(Math.max(0,e-s),t-s)),s=p+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],i=-1;for(let s of e)n.push(s),i+=s.length+1,n.length==32&&(t.push(new co(n,i)),n=[],i=-1);return i>-1&&t.push(new co(n,i)),t}}class ll extends Ds{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,i){for(let s=0;;s++){let a=this.children[s],l=i+a.length,p=n+a.lines-1;if((t?p:l)>=e)return a.lineInner(e,t,n,i);i=l+1,n=p+1}}decompose(e,t,n,i){for(let s=0,a=0;a<=t&&s<this.children.length;s++){let l=this.children[s],p=a+l.length;if(e<=p&&t>=a){let m=i&((a<=e?1:0)|(p>=t?2:0));a>=e&&p<=t&&!m?n.push(l):l.decompose(e-a,t-a,n,m)}a=p+1}}replace(e,t,n){if(n.lines<this.lines)for(let i=0,s=0;i<this.children.length;i++){let a=this.children[i],l=s+a.length;if(e>=s&&t<=l){let p=a.replace(e-s,t-s,n),m=this.lines-a.lines+p.lines;if(p.lines<m>>4&&p.lines>m>>6){let g=this.children.slice();return g[i]=p,new ll(g,this.length-(t-e)+n.length)}return super.replace(s,l,p)}s=l+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n=`
|
|
3
3
|
`){let i="";for(let s=0,a=0;s<this.children.length&&a<=t;s++){let l=this.children[s],p=a+l.length;a>e&&s&&(i+=n),e<p&&t>a&&(i+=l.sliceString(e-a,t-a,n)),a=p+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof ll))return 0;let n=0,[i,s,a,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,s+=t){if(i==a||s==l)return n;let p=this.children[i],m=e.children[s];if(p!=m)return n+p.scanIdentical(m,t);n+=p.length+1}}static from(e,t=e.reduce((n,i)=>n+i.length+1,-1)){let n=0;for(let $ of e)n+=$.lines;if(n<32){let $=[];for(let G of e)G.flatten($);return new co($,t)}let i=Math.max(32,n>>5),s=i<<1,a=i>>1,l=[],p=0,m=-1,g=[];function b($){let G;if($.lines>s&&$ instanceof ll)for(let be of $.children)b(be);else $.lines>a&&(p>a||!p)?(S(),l.push($)):$ instanceof co&&p&&(G=g[g.length-1])instanceof co&&$.lines+G.lines<=32?(p+=$.lines,m+=$.length+1,g[g.length-1]=new co(G.text.concat($.text),G.length+1+$.length)):(p+$.lines>i&&S(),p+=$.lines,m+=$.length+1,g.push($))}function S(){p!=0&&(l.push(g.length==1?g[0]:ll.from(g,m)),m=-1,p=g.length=0)}for(let $ of e)b($);return S(),l.length==1?l[0]:new ll(l,t)}}Ds.empty=new co([""],0);function qP(r){let e=-1;for(let t of r)e+=t.length+1;return e}function Om(r,e,t=0,n=1e9){for(let i=0,s=0,a=!0;s<r.length&&i<=n;s++){let l=r[s],p=i+l.length;p>=t&&(p>n&&(l=l.slice(0,n-i)),i<t&&(l=l.slice(t-i)),a?(e[e.length-1]+=l,a=!1):e.push(l)),i=p+1}return e}function F1(r,e,t){return Om(r,[""],e,t)}class Bf{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof co?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],s=this.offsets[n],a=s>>1,l=i instanceof co?i.text.length:i.children.length;if(a==(t>0?l:0)){if(n==0)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
|
|
4
4
|
`,this;e--}else if(i instanceof co){let p=i.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,p.length>Math.max(0,e))return this.value=e==0?p:t>0?p.slice(e):p.slice(0,p.length-e),this;e-=p.length}else{let p=i.children[a+(t<0?-1:0)];e>p.length?(e-=p.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(p),this.offsets.push(t>0?1:(p instanceof co?p.text.length:p.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class RC{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new Bf(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=n?i:t<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class QC{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:i}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Ds.prototype[Symbol.iterator]=function(){return this.iter()},Bf.prototype[Symbol.iterator]=RC.prototype[Symbol.iterator]=QC.prototype[Symbol.iterator]=function(){return this});class zP{constructor(e,t,n,i){this.from=e,this.to=t,this.number=n,this.text=i}get length(){return this.to-this.from}}let Mp="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7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;e+=2)if(Mp[e]>r)return Mp[e-1]<=r;return!1}function _1(r){return r>=127462&&r<=127487}const $1=8205;function ua(r,e,t=!0,n=!0){return(t?jC:ZP)(r,e,n)}function jC(r,e,t){if(e==r.length)return e;e&&LC(r.charCodeAt(e))&&XC(r.charCodeAt(e-1))&&e--;let n=Uo(r,e);for(e+=Ha(n);e<r.length;){let i=Uo(r,e);if(n==$1||i==$1||t&&WP(i))e+=Ha(i),n=i;else if(_1(i)){let s=0,a=e-2;for(;a>=0&&_1(Uo(r,a));)s++,a-=2;if(s%2==0)break;e+=2}else break}return e}function ZP(r,e,t){for(;e>0;){let n=jC(r,e-2,t);if(n<e)return n;e--}return 0}function LC(r){return r>=56320&&r<57344}function XC(r){return r>=55296&&r<56320}function Uo(r,e){let t=r.charCodeAt(e);if(!XC(t)||e+1==r.length)return t;let n=r.charCodeAt(e+1);return LC(n)?(t-55296<<10)+(n-56320)+65536:t}function YD(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}function Ha(r){return r<65536?1:2}const by=/\r\n?|\n/;var zo=function(r){return r[r.Simple=0]="Simple",r[r.TrackDel=1]="TrackDel",r[r.TrackBefore=2]="TrackBefore",r[r.TrackAfter=3]="TrackAfter",r}(zo||(zo={}));class yl{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,i=0;t<this.sections.length;){let s=this.sections[t++],a=this.sections[t++];a<0?(e(n,i,s),i+=s):i+=a,n+=s}}iterChangedRanges(e,t=!1){vy(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],i=this.sections[t++];i<0?e.push(n,i):e.push(i,n)}return new yl(e)}composeDesc(e){return this.empty?e:e.empty?this:VC(this,e)}mapDesc(e,t=!1){return e.empty?this:Cy(this,e,t)}mapPos(e,t=-1,n=zo.Simple){let i=0,s=0;for(let a=0;a<this.sections.length;){let l=this.sections[a++],p=this.sections[a++],m=i+l;if(p<0){if(m>e)return s+(e-i);s+=l}else{if(n!=zo.Simple&&m>=e&&(n==zo.TrackDel&&i<e&&m>e||n==zo.TrackBefore&&i<e||n==zo.TrackAfter&&m>e))return null;if(m>e||m==e&&t<0&&!l)return e==i||t<0?s:s+p;s+=p}i=m}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return s}touchesRange(e,t=e){for(let n=0,i=0;n<this.sections.length&&i<=t;){let s=this.sections[n++],a=this.sections[n++],l=i+s;if(a>=0&&i<=t&&l>=e)return i<e&&l>t?"cover":!0;i=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],i=this.sections[t++];e+=(e?" ":"")+n+(i>=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new yl(e)}static create(e){return new yl(e)}}class Ao extends yl{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return vy(this,(t,n,i,s,a)=>e=e.replace(i,i+(n-t),a),!1),e}mapDesc(e,t=!1){return Cy(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,s=0;i<t.length;i+=2){let a=t[i],l=t[i+1];if(l>=0){t[i]=l,t[i+1]=a;let p=i>>1;for(;n.length<p;)n.push(Ds.empty);n.push(a?e.slice(s,s+a):Ds.empty)}s+=a}return new Ao(t,n)}compose(e){return this.empty?e:e.empty?this:VC(this,e,!0)}map(e,t=!1){return e.empty?this:Cy(this,e,t,!0)}iterChanges(e,t=!1){vy(this,e,t)}get desc(){return yl.create(this.sections)}filter(e){let t=[],n=[],i=[],s=new Gf(this);e:for(let a=0,l=0;;){let p=a==e.length?1e9:e[a++];for(;l<p||l==p&&s.len==0;){if(s.done)break e;let g=Math.min(s.len,p-l);sa(i,g,-1);let b=s.ins==-1?-1:s.off==0?s.ins:0;sa(t,g,b),b>0&&Xc(n,t,s.text),s.forward(g),l+=g}let m=e[a++];for(;l<m;){if(s.done)break e;let g=Math.min(s.len,m-l);sa(t,g,-1),sa(i,g,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(g),l+=g}}return{changes:new Ao(t,n),filtered:yl.create(i)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],i=this.sections[t+1];i<0?e.push(n):i==0?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let i=[],s=[],a=0,l=null;function p(g=!1){if(!g&&!i.length)return;a<t&&sa(i,t-a,-1);let b=new Ao(i,s);l=l?l.compose(b.map(l)):b,i=[],s=[],a=0}function m(g){if(Array.isArray(g))for(let b of g)m(b);else if(g instanceof Ao){if(g.length!=t)throw new RangeError(`Mismatched change set length (got ${g.length}, expected ${t})`);p(),l=l?l.compose(g.map(l)):g}else{let{from:b,to:S=b,insert:$}=g;if(b>S||b<0||S>t)throw new RangeError(`Invalid change range ${b} to ${S} (in doc of length ${t})`);let G=$?typeof $=="string"?Ds.of($.split(n||by)):$:Ds.empty,be=G.length;if(b==S&&be==0)return;b<a&&p(),b>a&&sa(i,b-a,-1),sa(i,S-b,be),Xc(s,i,G),a=S}}return m(e),p(!l),l}static empty(e){return new Ao(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;i<e.length;i++){let s=e[i];if(typeof s=="number")t.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((a,l)=>l&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)t.push(s[0],0);else{for(;n.length<i;)n.push(Ds.empty);n[i]=Ds.of(s.slice(1)),t.push(s[0],n[i].length)}}}return new Ao(t,n)}static createSet(e,t){return new Ao(e,t)}}function sa(r,e,t,n=!1){if(e==0&&t<=0)return;let i=r.length-2;i>=0&&t<=0&&t==r[i+1]?r[i]+=e:e==0&&r[i]==0?r[i+1]+=t:n?(r[i]+=e,r[i+1]+=t):r.push(e,t)}function Xc(r,e,t){if(t.length==0)return;let n=e.length-2>>1;if(n<r.length)r[r.length-1]=r[r.length-1].append(t);else{for(;r.length<n;)r.push(Ds.empty);r.push(t)}}function vy(r,e,t){let n=r.inserted;for(let i=0,s=0,a=0;a<r.sections.length;){let l=r.sections[a++],p=r.sections[a++];if(p<0)i+=l,s+=l;else{let m=i,g=s,b=Ds.empty;for(;m+=l,g+=p,p&&n&&(b=b.append(n[a-2>>1])),!(t||a==r.sections.length||r.sections[a+1]<0);)l=r.sections[a++],p=r.sections[a++];e(i,m,s,g,b),i=m,s=g}}}function Cy(r,e,t,n=!1){let i=[],s=n?[]:null,a=new Gf(r),l=new Gf(e);for(let p=-1;;)if(a.ins==-1&&l.ins==-1){let m=Math.min(a.len,l.len);sa(i,m,-1),a.forward(m),l.forward(m)}else if(l.ins>=0&&(a.ins<0||p==a.i||a.off==0&&(l.len<a.len||l.len==a.len&&!t))){let m=l.len;for(sa(i,l.ins,-1);m;){let g=Math.min(a.len,m);a.ins>=0&&p<a.i&&a.len<=g&&(sa(i,0,a.ins),s&&Xc(s,i,a.text),p=a.i),a.forward(g),m-=g}l.next()}else if(a.ins>=0){let m=0,g=a.len;for(;g;)if(l.ins==-1){let b=Math.min(g,l.len);m+=b,g-=b,l.forward(b)}else if(l.ins==0&&l.len<g)g-=l.len,l.next();else break;sa(i,m,p<a.i?a.ins:0),s&&p<a.i&&Xc(s,i,a.text),p=a.i,a.forward(a.len-g)}else{if(a.done&&l.done)return s?Ao.createSet(i,s):yl.create(i);throw new Error("Mismatched change set lengths")}}function VC(r,e,t=!1){let n=[],i=t?[]:null,s=new Gf(r),a=new Gf(e);for(let l=!1;;){if(s.done&&a.done)return i?Ao.createSet(n,i):yl.create(n);if(s.ins==0)sa(n,s.len,0,l),s.next();else if(a.len==0&&!a.done)sa(n,0,a.ins,l),i&&Xc(i,n,a.text),a.next();else{if(s.done||a.done)throw new Error("Mismatched change set lengths");{let p=Math.min(s.len2,a.len),m=n.length;if(s.ins==-1){let g=a.ins==-1?-1:a.off?0:a.ins;sa(n,p,g,l),i&&g&&Xc(i,n,a.text)}else a.ins==-1?(sa(n,s.off?0:s.len,p,l),i&&Xc(i,n,s.textBit(p))):(sa(n,s.off?0:s.len,a.off?0:a.ins,l),i&&!a.off&&Xc(i,n,a.text));l=(s.ins>p||a.ins>=0&&a.len>p)&&(l||n.length>m),s.forward2(p),a.forward(p)}}}}class Gf{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?Ds.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?Ds.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Ih{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return this.flags&16?this.to:this.from}get head(){return this.flags&16?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&4?-1:this.flags&8?1:0}get bidiLevel(){let e=this.flags&3;return e==3?null:e}get goalColumn(){let e=this.flags>>5;return e==33554431?void 0:e}map(e,t=-1){let n,i;return this.empty?n=i=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new Ih(n,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return Pr.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return Pr.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Pr.range(e.anchor,e.head)}static create(e,t,n){return new Ih(e,t,n)}}class Pr{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:Pr.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;t<this.ranges.length;t++)if(!this.ranges[t].eq(e.ranges[t]))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new Pr([this.main],0)}addRange(e,t=!0){return Pr.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,Pr.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Pr(e.ranges.map(t=>Ih.fromJSON(t)),e.main)}static single(e,t=e){return new Pr([Pr.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,i=0;i<e.length;i++){let s=e[i];if(s.empty?s.from<=n:s.from<n)return Pr.normalized(e.slice(),t);n=s.to}return new Pr(e,t)}static cursor(e,t=0,n,i){return Ih.create(e,e,(t==0?0:t<0?4:8)|(n==null?3:Math.min(2,n))|(i??33554431)<<5)}static range(e,t,n,i){let s=(n??33554431)<<5|(i==null?3:Math.min(2,i));return t<e?Ih.create(t,e,24|s):Ih.create(e,t,(t>e?4:0)|s)}static normalized(e,t=0){let n=e[t];e.sort((i,s)=>i.from-s.from),t=e.indexOf(n);for(let i=1;i<e.length;i++){let s=e[i],a=e[i-1];if(s.empty?s.from<=a.to:s.from<a.to){let l=a.from,p=Math.max(s.to,a.to);i<=t&&t--,e.splice(--i,2,s.anchor>s.head?Pr.range(p,l):Pr.range(l,p))}}return new Pr(e,t)}}function UC(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let GD=0;class qn{constructor(e,t,n,i,s){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.id=GD++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}static define(e={}){return new qn(e.combine||(t=>t),e.compareInput||((t,n)=>t===n),e.compare||(e.combine?(t,n)=>t===n:HD),!!e.static,e.enables)}of(e){return new xm([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new xm(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new xm(e,this,2,t)}from(e,t){return t||(t=n=>n),this.compute([e],n=>t(n.field(e)))}}function HD(r,e){return r==e||r.length==e.length&&r.every((t,n)=>t===e[n])}class xm{constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=GD++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,s=this.id,a=e[s]>>1,l=this.type==2,p=!1,m=!1,g=[];for(let b of this.dependencies)b=="doc"?p=!0:b=="selection"?m=!0:((t=e[b.id])!==null&&t!==void 0?t:1)&1||g.push(e[b.id]);return{create(b){return b.values[a]=n(b),1},update(b,S){if(p&&S.docChanged||m&&(S.docChanged||S.selection)||Sy(b,g)){let $=n(b);if(l?!B1($,b.values[a],i):!i($,b.values[a]))return b.values[a]=$,1}return 0},reconfigure:(b,S)=>{let $,G=S.config.address[s];if(G!=null){let be=Vm(S,G);if(this.dependencies.every(ke=>ke instanceof qn?S.facet(ke)===b.facet(ke):ke instanceof Po?S.field(ke,!1)==b.field(ke,!1):!0)||(l?B1($=n(b),be,i):i($=n(b),be)))return b.values[a]=be,0}else $=n(b);return b.values[a]=$,1}}}}function B1(r,e,t){if(r.length!=e.length)return!1;for(let n=0;n<r.length;n++)if(!t(r[n],e[n]))return!1;return!0}function Sy(r,e){let t=!1;for(let n of e)Nf(r,n)&1&&(t=!0);return t}function YP(r,e,t){let n=t.map(p=>r[p.id]),i=t.map(p=>p.type),s=n.filter(p=>!(p&1)),a=r[e.id]>>1;function l(p){let m=[];for(let g=0;g<n.length;g++){let b=Vm(p,n[g]);if(i[g]==2)for(let S of b)m.push(S);else m.push(b)}return e.combine(m)}return{create(p){for(let m of n)Nf(p,m);return p.values[a]=l(p),1},update(p,m){if(!Sy(p,s))return 0;let g=l(p);return e.compare(g,p.values[a])?0:(p.values[a]=g,1)},reconfigure(p,m){let g=Sy(p,n),b=m.config.facets[e.id],S=m.facet(e);if(b&&!g&&HD(t,b))return p.values[a]=S,0;let $=l(p);return e.compare($,S)?(p.values[a]=S,0):(p.values[a]=$,1)}}}const N1=qn.define({static:!0});class Po{constructor(e,t,n,i,s){this.id=e,this.createF=t,this.updateF=n,this.compareF=i,this.spec=s,this.provides=void 0}static define(e){let t=new Po(GD++,e.create,e.update,e.compare||((n,i)=>n===i),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(N1).find(n=>n.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:n=>(n.values[t]=this.create(n),1),update:(n,i)=>{let s=n.values[t],a=this.updateF(s,i);return this.compareF(s,a)?0:(n.values[t]=a,1)},reconfigure:(n,i)=>i.config.address[this.id]!=null?(n.values[t]=i.field(this),0):(n.values[t]=this.create(n),1)}}init(e){return[this,N1.of({field:this,create:e})]}get extension(){return this}}const $h={lowest:4,low:3,default:2,high:1,highest:0};function gf(r){return e=>new qC(e,r)}const Jh={highest:gf($h.highest),high:gf($h.high),default:gf($h.default),low:gf($h.low),lowest:gf($h.lowest)};class qC{constructor(e,t){this.inner=e,this.prec=t}}class jg{of(e){return new Ey(this,e)}reconfigure(e){return jg.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Ey{constructor(e,t){this.compartment=e,this.inner=t}}class Xm{constructor(e,t,n,i,s,a){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=s,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let i=[],s=Object.create(null),a=new Map;for(let S of GP(e,t,a))S instanceof Po?i.push(S):(s[S.facet.id]||(s[S.facet.id]=[])).push(S);let l=Object.create(null),p=[],m=[];for(let S of i)l[S.id]=m.length<<1,m.push($=>S.slot($));let g=n==null?void 0:n.config.facets;for(let S in s){let $=s[S],G=$[0].facet,be=g&&g[S]||[];if($.every(ke=>ke.type==0))if(l[G.id]=p.length<<1|1,HD(be,$))p.push(n.facet(G));else{let ke=G.combine($.map(me=>me.value));p.push(n&&G.compare(ke,n.facet(G))?n.facet(G):ke)}else{for(let ke of $)ke.type==0?(l[ke.id]=p.length<<1|1,p.push(ke.value)):(l[ke.id]=m.length<<1,m.push(me=>ke.dynamicSlot(me)));l[G.id]=m.length<<1,m.push(ke=>YP(ke,G,$))}}let b=m.map(S=>S(l));return new Xm(e,a,b,l,p,s)}}function GP(r,e,t){let n=[[],[],[],[],[]],i=new Map;function s(a,l){let p=i.get(a);if(p!=null){if(p<=l)return;let m=n[p].indexOf(a);m>-1&&n[p].splice(m,1),a instanceof Ey&&t.delete(a.compartment)}if(i.set(a,l),Array.isArray(a))for(let m of a)s(m,l);else if(a instanceof Ey){if(t.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let m=e.get(a.compartment)||a.inner;t.set(a.compartment,m),s(m,l)}else if(a instanceof qC)s(a.inner,a.prec);else if(a instanceof Po)n[l].push(a),a.provides&&s(a.provides,l);else if(a instanceof xm)n[l].push(a),a.facet.extensions&&s(a.facet.extensions,$h.default);else{let m=a.extension;if(!m)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(m,l)}}return s(r,$h.default),n.reduce((a,l)=>a.concat(l))}function Nf(r,e){if(e&1)return 2;let t=e>>1,n=r.status[t];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;r.status[t]=4;let i=r.computeSlot(r,r.config.dynamicSlots[t]);return r.status[t]=2|i}function Vm(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}const zC=qn.define(),WC=qn.define({combine:r=>r.some(e=>e),static:!0}),ZC=qn.define({combine:r=>r.length?r[0]:void 0,static:!0}),YC=qn.define(),GC=qn.define(),HC=qn.define(),JC=qn.define({combine:r=>r.length?r[0]:!1});class uc{constructor(e,t){this.type=e,this.value=t}static define(){return new HP}}class HP{of(e){return new uc(this,e)}}class JP{constructor(e){this.map=e}of(e){return new Qi(this,e)}}class Qi{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new Qi(this.type,t)}is(e){return this.type==e}static define(e={}){return new JP(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let i of e){let s=i.map(t);s&&n.push(s)}return n}}Qi.reconfigure=Qi.define();Qi.appendConfig=Qi.define();class To{constructor(e,t,n,i,s,a){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=s,this.scrollIntoView=a,this._doc=null,this._state=null,n&&UC(n,t.newLength),s.some(l=>l.type==To.time)||(this.annotations=s.concat(To.time.of(Date.now())))}static create(e,t,n,i,s,a){return new To(e,t,n,i,s,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(To.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}To.time=uc.define();To.userEvent=uc.define();To.addToHistory=uc.define();To.remote=uc.define();function KP(r,e){let t=[];for(let n=0,i=0;;){let s,a;if(n<r.length&&(i==e.length||e[i]>=r[n]))s=r[n++],a=r[n++];else if(i<e.length)s=e[i++],a=e[i++];else return t;!t.length||t[t.length-1]<s?t.push(s,a):t[t.length-1]<a&&(t[t.length-1]=a)}}function KC(r,e,t){var n;let i,s,a;return t?(i=e.changes,s=Ao.empty(e.changes.length),a=r.changes.compose(e.changes)):(i=e.changes.map(r.changes),s=r.changes.mapDesc(e.changes,!0),a=r.changes.compose(i)),{changes:a,selection:e.selection?e.selection.map(s):(n=r.selection)===null||n===void 0?void 0:n.map(i),effects:Qi.mapEffects(r.effects,i).concat(Qi.mapEffects(e.effects,s)),annotations:r.annotations.length?r.annotations.concat(e.annotations):e.annotations,scrollIntoView:r.scrollIntoView||e.scrollIntoView}}function wy(r,e,t){let n=e.selection,i=Rp(e.annotations);return e.userEvent&&(i=i.concat(To.userEvent.of(e.userEvent))),{changes:e.changes instanceof Ao?e.changes:Ao.of(e.changes||[],t,r.facet(ZC)),selection:n&&(n instanceof Pr?n:Pr.single(n.anchor,n.head)),effects:Rp(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}function eS(r,e,t){let n=wy(r,e.length?e[0]:{},r.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(t=!1);let a=!!e[s].sequential;n=KC(n,wy(r,e[s],a?n.changes.newLength:r.doc.length),a)}let i=To.create(r,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return tk(t?ek(i):i)}function ek(r){let e=r.startState,t=!0;for(let i of e.facet(YC)){let s=i(r);if(s===!1){t=!1;break}Array.isArray(s)&&(t=t===!0?s:KP(t,s))}if(t!==!0){let i,s;if(t===!1)s=r.changes.invertedDesc,i=Ao.empty(e.doc.length);else{let a=r.changes.filter(t);i=a.changes,s=a.filtered.mapDesc(a.changes).invertedDesc}r=To.create(e,i,r.selection&&r.selection.map(s),Qi.mapEffects(r.effects,s),r.annotations,r.scrollIntoView)}let n=e.facet(GC);for(let i=n.length-1;i>=0;i--){let s=n[i](r);s instanceof To?r=s:Array.isArray(s)&&s.length==1&&s[0]instanceof To?r=s[0]:r=eS(e,Rp(s),!1)}return r}function tk(r){let e=r.startState,t=e.facet(HC),n=r;for(let i=t.length-1;i>=0;i--){let s=t[i](r);s&&Object.keys(s).length&&(n=KC(n,wy(e,s,r.changes.newLength),!0))}return n==r?r:To.create(e,r.changes,r.selection,n.effects,n.annotations,n.scrollIntoView)}const rk=[];function Rp(r){return r==null?rk:Array.isArray(r)?r:[r]}var Js=function(r){return r[r.Word=0]="Word",r[r.Space=1]="Space",r[r.Other=2]="Other",r}(Js||(Js={}));const nk=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Ay;try{Ay=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function ik(r){if(Ay)return Ay.test(r);for(let e=0;e<r.length;e++){let t=r[e];if(/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||nk.test(t)))return!0}return!1}function sk(r){return e=>{if(!/\S/.test(e))return Js.Space;if(ik(e))return Js.Word;for(let t=0;t<r.length;t++)if(e.indexOf(r[t])>-1)return Js.Word;return Js.Other}}class gs{constructor(e,t,n,i,s,a){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=s,a&&(a._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)Nf(this,l<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(n==null){if(t)throw new RangeError("Field is not present in this state");return}return Nf(this,n),Vm(this,n)}update(...e){return eS(this,e,!0)}applyTransaction(e){let t=this.config,{base:n,compartments:i}=t;for(let a of e.effects)a.is(jg.reconfigure)?(t&&(i=new Map,t.compartments.forEach((l,p)=>i.set(p,l)),t=null),i.set(a.value.compartment,a.value.extension)):a.is(Qi.reconfigure)?(t=null,n=a.value):a.is(Qi.appendConfig)&&(t=null,n=Rp(n).concat(a.value));let s;t?s=e.startState.values.slice():(t=Xm.resolve(n,i,this),s=new gs(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(l,p)=>p.reconfigure(l,this),null).values),new gs(t,e.newDoc,e.newSelection,s,(a,l)=>l.update(a,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:Pr.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),s=[n.range],a=Rp(n.effects);for(let l=1;l<t.ranges.length;l++){let p=e(t.ranges[l]),m=this.changes(p.changes),g=m.map(i);for(let S=0;S<l;S++)s[S]=s[S].map(g);let b=i.mapDesc(m,!0);s.push(p.range.map(b)),i=i.compose(g),a=Qi.mapEffects(a,g).concat(Qi.mapEffects(Rp(p.effects),b))}return{changes:i,selection:Pr.create(s,t.mainIndex),effects:a}}changes(e=[]){return e instanceof Ao?e:Ao.of(e,this.doc.length,this.facet(gs.lineSeparator))}toText(e){return Ds.of(e.split(this.facet(gs.lineSeparator)||by))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(Nf(this,t),Vm(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let i=e[n];i instanceof Po&&this.config.address[i.id]!=null&&(t[n]=i.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(n){for(let s in n)if(Object.prototype.hasOwnProperty.call(e,s)){let a=n[s],l=e[s];i.push(a.init(p=>a.spec.fromJSON(l,p)))}}return gs.create({doc:e.doc,selection:Pr.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=Xm.resolve(e.extensions||[],new Map),n=e.doc instanceof Ds?e.doc:Ds.of((e.doc||"").split(t.staticFacet(gs.lineSeparator)||by)),i=e.selection?e.selection instanceof Pr?e.selection:Pr.single(e.selection.anchor,e.selection.head):Pr.single(0);return UC(i,n.length),t.staticFacet(WC)||(i=i.asSingle()),new gs(t,n,i,t.dynamicSlots.map(()=>null),(s,a)=>a.create(s),null)}get tabSize(){return this.facet(gs.tabSize)}get lineBreak(){return this.facet(gs.lineSeparator)||`
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
`;this.styleTag.textContent=s}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var th={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Jf={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},uk=typeof navigator<"u"&&/Mac/.test(navigator.platform),lk=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var qo=0;qo<10;qo++)th[48+qo]=th[96+qo]=String(qo);for(var qo=1;qo<=24;qo++)th[qo+111]="F"+qo;for(var qo=65;qo<=90;qo++)th[qo]=String.fromCharCode(qo+32),Jf[qo]=String.fromCharCode(qo);for(var w0 in th)Jf.hasOwnProperty(w0)||(Jf[w0]=th[w0]);function ck(r){var e=uk&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||lk&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?Jf:th)[r.keyCode]||r.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Um(r){let e;return r.nodeType==11?e=r.getSelection?r:r.ownerDocument:e=r,e.getSelection()}function By(r,e){return e?r==e||r.contains(e.nodeType!=1?e.parentNode:e):!1}function hk(r){let e=r.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function bm(r,e){if(!e.anchorNode)return!1;try{return By(r,e.anchorNode)}catch{return!1}}function Kf(r){return r.nodeType==3?qh(r,0,r.nodeValue.length).getClientRects():r.nodeType==1?r.getClientRects():[]}function qm(r,e,t,n){return t?X1(r,e,t,n,-1)||X1(r,e,t,n,1):!1}function zm(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e}function X1(r,e,t,n,i){for(;;){if(r==t&&e==n)return!0;if(e==(i<0?0:rh(r))){if(r.nodeName=="DIV")return!1;let s=r.parentNode;if(!s||s.nodeType!=1)return!1;e=zm(r)+(i<0?0:1),r=s}else if(r.nodeType==1){if(r=r.childNodes[e+(i<0?-1:0)],r.nodeType==1&&r.contentEditable=="false")return!1;e=i<0?rh(r):0}else return!1}}function rh(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function KD(r,e){let t=e?r.left:r.right;return{left:t,right:t,top:r.top,bottom:r.bottom}}function pk(r){return{left:0,right:r.innerWidth,top:0,bottom:r.innerHeight}}function fk(r,e,t,n,i,s,a,l){let p=r.ownerDocument,m=p.defaultView||window;for(let g=r,b=!1;g&&!b;)if(g.nodeType==1){let S,$=g==p.body,G=1,be=1;if($)S=pk(m);else{if(/^(fixed|sticky)$/.test(getComputedStyle(g).position)&&(b=!0),g.scrollHeight<=g.clientHeight&&g.scrollWidth<=g.clientWidth){g=g.assignedSlot||g.parentNode;continue}let Ve=g.getBoundingClientRect();G=Ve.width/g.offsetWidth,be=Ve.height/g.offsetHeight,S={left:Ve.left,right:Ve.left+g.clientWidth*G,top:Ve.top,bottom:Ve.top+g.clientHeight*be}}let ke=0,me=0;if(i=="nearest")e.top<S.top?(me=-(S.top-e.top+a),t>0&&e.bottom>S.bottom+me&&(me=e.bottom-S.bottom+me+a)):e.bottom>S.bottom&&(me=e.bottom-S.bottom+a,t<0&&e.top-me<S.top&&(me=-(S.top+me-e.top+a)));else{let Ve=e.bottom-e.top,Dt=S.bottom-S.top;me=(i=="center"&&Ve<=Dt?e.top+Ve/2-Dt/2:i=="start"||i=="center"&&t<0?e.top-a:e.bottom-Dt+a)-S.top}if(n=="nearest"?e.left<S.left?(ke=-(S.left-e.left+s),t>0&&e.right>S.right+ke&&(ke=e.right-S.right+ke+s)):e.right>S.right&&(ke=e.right-S.right+s,t<0&&e.left<S.left+ke&&(ke=-(S.left+ke-e.left+s))):ke=(n=="center"?e.left+(e.right-e.left)/2-(S.right-S.left)/2:n=="start"==l?e.left-s:e.right-(S.right-S.left)+s)-S.left,ke||me)if($)m.scrollBy(ke,me);else{let Ve=0,Dt=0;if(me){let ht=g.scrollTop;g.scrollTop+=me/be,Dt=(g.scrollTop-ht)*be}if(ke){let ht=g.scrollLeft;g.scrollLeft+=ke/G,Ve=(g.scrollLeft-ht)*G}e={left:e.left-Ve,top:e.top-Dt,right:e.right-Ve,bottom:e.bottom-Dt},Ve&&Math.abs(Ve-ke)<1&&(n="nearest"),Dt&&Math.abs(Dt-me)<1&&(i="nearest")}if($)break;g=g.assignedSlot||g.parentNode}else if(g.nodeType==11)g=g.host;else break}function dk(r){let e=r.ownerDocument;for(let t=r.parentNode;t&&t!=e.body;)if(t.nodeType==1){if(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.assignedSlot||t.parentNode}else if(t.nodeType==11)t=t.host;else break;return null}class mk{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?rh(t):0),n,Math.min(e.focusOffset,n?rh(n):0))}set(e,t,n,i){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=i}}let Cp=null;function nS(r){if(r.setActive)return r.setActive();if(Cp)return r.focus(Cp);let e=[];for(let t=r;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(r.focus(Cp==null?{get preventScroll(){return Cp={preventScroll:!0},!0}}:void 0),!Cp){Cp=!1;for(let t=0;t<e.length;){let n=e[t++],i=e[t++],s=e[t++];n.scrollTop!=i&&(n.scrollTop=i),n.scrollLeft!=s&&(n.scrollLeft=s)}}}let V1;function qh(r,e,t=e){let n=V1||(V1=document.createRange());return n.setEnd(r,t),n.setStart(r,e),n}function Qp(r,e,t){let n={key:e,code:e,keyCode:t,which:t,cancelable:!0},i=new KeyboardEvent("keydown",n);i.synthetic=!0,r.dispatchEvent(i);let s=new KeyboardEvent("keyup",n);return s.synthetic=!0,r.dispatchEvent(s),i.defaultPrevented||s.defaultPrevented}function gk(r){for(;r;){if(r&&(r.nodeType==9||r.nodeType==11&&r.host))return r;r=r.assignedSlot||r.parentNode}return null}function iS(r){for(;r.attributes.length;)r.removeAttributeNode(r.attributes[0])}function yk(r,e){let t=e.focusNode,n=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=n)return!1;for(n=Math.min(n,rh(t));;)if(n){if(t.nodeType!=1)return!1;let i=t.childNodes[n-1];i.contentEditable=="false"?n--:(t=i,n=rh(t))}else{if(t==r)return!0;n=zm(t),t=t.parentNode}}function sS(r){return r.scrollTop>Math.max(1,r.scrollHeight-r.clientHeight-4)}class aa{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new aa(e.parentNode,zm(e),t)}static after(e,t){return new aa(e.parentNode,zm(e)+1,t)}}const eO=[];class Ws{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(this.flags&2){let n=this.dom,i=null,s;for(let a of this.children){if(a.flags&7){if(!a.dom&&(s=i?i.nextSibling:n.firstChild)){let l=Ws.get(s);(!l||!l.parent&&l.canReuseDOM(a))&&a.reuseDOM(s)}a.sync(e,t),a.flags&=-8}if(s=i?i.nextSibling:n.firstChild,t&&!t.written&&t.node==n&&s!=a.dom&&(t.written=!0),a.dom.parentNode==n)for(;s&&s!=a.dom;)s=U1(s);else n.insertBefore(a.dom,s);i=a.dom}for(s=i?i.nextSibling:n.firstChild,s&&t&&t.node==n&&(t.written=!0);s;)s=U1(s)}else if(this.flags&1)for(let n of this.children)n.flags&7&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let i=rh(e)==0?0:t==0?-1:1;for(;;){let s=e.parentNode;if(s==this.dom)break;i==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?i=-1:i=1),e=s}i<0?n=e:n=e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!Ws.get(n);)n=n.nextSibling;if(!n)return this.length;for(let i=0,s=0;;i++){let a=this.children[i];if(a.dom==n)return s;s+=a.length+a.breakAfter}}domBoundsAround(e,t,n=0){let i=-1,s=-1,a=-1,l=-1;for(let p=0,m=n,g=n;p<this.children.length;p++){let b=this.children[p],S=m+b.length;if(m<e&&S>t)return b.domBoundsAround(e,t,m);if(S>=e&&i==-1&&(i=p,s=m),m>t&&b.dom.parentNode==this.dom){a=p,l=g;break}g=S,m=S+b.breakAfter}return{from:s,to:l<0?n+this.length:l,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a<this.children.length&&a>=0?this.children[a].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=eO){this.markDirty();for(let i=e;i<t;i++){let s=this.children[i];s.parent==this&&s.destroy()}this.children.splice(e,t-e,...n);for(let i=0;i<n.length;i++)n[i].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new oS(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,n,i,s,a){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){this.parent=null}}Ws.prototype.breakAfter=0;function U1(r){let e=r.nextSibling;return r.parentNode.removeChild(r),e}class oS{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function aS(r,e,t,n,i,s,a,l,p){let{children:m}=r,g=m.length?m[e]:null,b=s.length?s[s.length-1]:null,S=b?b.breakAfter:a;if(!(e==n&&g&&!a&&!S&&s.length<2&&g.merge(t,i,s.length?b:null,t==0,l,p))){if(n<m.length){let $=m[n];$&&i<$.length?(e==n&&($=$.split(i),i=0),!S&&b&&$.merge(0,i,b,!0,0,p)?s[s.length-1]=$:(i&&$.merge(0,i,null,!1,0,p),s.push($))):$!=null&&$.breakAfter&&(b?b.breakAfter=1:a=1),n++}for(g&&(g.breakAfter=a,t>0&&(!a&&s.length&&g.merge(t,g.length,s[0],!1,l,0)?g.breakAfter=s.shift().breakAfter:(t<g.length||g.children.length&&g.children[g.children.length-1].length==0)&&g.merge(t,g.length,null,!1,l,0),e++));e<n&&s.length;)if(m[n-1].become(s[s.length-1]))n--,s.pop(),p=s.length?0:l;else if(m[e].become(s[0]))e++,s.shift(),l=s.length?0:p;else break;!s.length&&e&&n<m.length&&!m[e-1].breakAfter&&m[n].merge(0,0,m[e-1],!1,l,p)&&e--,(e<n||s.length)&&r.replaceChildren(e,n,s)}}function uS(r,e,t,n,i,s){let a=r.childCursor(),{i:l,off:p}=a.findPos(t,1),{i:m,off:g}=a.findPos(e,-1),b=e-t;for(let S of n)b+=S.length;r.length+=b,aS(r,m,g,l,p,n,0,i,s)}let za=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},Ny=typeof document<"u"?document:{documentElement:{style:{}}};const Iy=/Edge\/(\d+)/.exec(za.userAgent),lS=/MSIE \d/.test(za.userAgent),My=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(za.userAgent),Lg=!!(lS||My||Iy),q1=!Lg&&/gecko\/(\d+)/i.test(za.userAgent),A0=!Lg&&/Chrome\/(\d+)/.exec(za.userAgent),z1="webkitFontSmoothing"in Ny.documentElement.style,cS=!Lg&&/Apple Computer/.test(za.vendor),W1=cS&&(/Mobile\/\w+/.test(za.userAgent)||za.maxTouchPoints>2);var oi={mac:W1||/Mac/.test(za.platform),windows:/Win/.test(za.platform),linux:/Linux|X11/.test(za.platform),ie:Lg,ie_version:lS?Ny.documentMode||6:My?+My[1]:Iy?+Iy[1]:0,gecko:q1,gecko_version:q1?+(/Firefox\/(\d+)/.exec(za.userAgent)||[0,0])[1]:0,chrome:!!A0,chrome_version:A0?+A0[1]:0,ios:W1,android:/Android\b/.test(za.userAgent),webkit:z1,safari:cS,webkit_version:z1?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:Ny.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const Dk=256;class nc extends Ws{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,n){return this.flags&8||n&&(!(n instanceof nc)||this.length-(t-e)+n.length>Dk||n.flags&8)?!1:(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new nc(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new aa(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return Ok(this.dom,e,t)}}class ic extends Ws{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let i of t)i.setParent(this)}setAttrs(e){if(iS(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,i,s,a){return n&&(!(n instanceof ic&&n.mark.eq(this.mark))||e&&s<=0||t<this.length&&a<=0)?!1:(uS(this,e,t,n?n.children:[],s-1,a-1),this.markDirty(),!0)}split(e){let t=[],n=0,i=-1,s=0;for(let l of this.children){let p=n+l.length;p>e&&t.push(n<e?l.split(e-n):l),i<0&&n>=e&&(i=s),n=p,s++}let a=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new ic(this.mark,t,a)}domAtPos(e){return hS(this,e)}coordsAt(e,t){return fS(this,e,t)}}function Ok(r,e,t){let n=r.nodeValue.length;e>n&&(e=n);let i=e,s=e,a=0;e==0&&t<0||e==n&&t>=0?oi.chrome||oi.gecko||(e?(i--,a=1):s<n&&(s++,a=-1)):t<0?i--:s<n&&s++;let l=qh(r,i,s).getClientRects();if(!l.length)return null;let p=l[(a?a<0:t>=0)?0:l.length-1];return oi.safari&&!a&&p.width==0&&(p=Array.prototype.find.call(l,m=>m.width)||p),a?KD(p,a<0):p||null}class Vc extends Ws{static create(e,t,n){return new Vc(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=Vc.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,i,s,a){return n&&(!(n instanceof Vc)||!this.widget.compare(n.widget)||e>0&&s<=0||t<this.length&&a<=0)?!1:(this.length=e+(n?n.length:0)+(this.length-t),!0)}become(e){return e instanceof Vc&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return Ds.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,n=t&&t.state.doc,i=this.posAtStart;return n?n.slice(i,i+this.length):Ds.empty}domAtPos(e){return(this.length?e==0:this.side>0)?aa.before(this.dom):aa.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let i=this.dom.getClientRects(),s=null;if(!i.length)return null;let a=this.side?this.side<0:e>0;for(let l=a?i.length-1:0;s=i[l],!(e>0?l==0:l==i.length-1||s.top<s.bottom);l+=a?-1:1);return KD(s,!a)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Zp extends Ws{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof Zp&&e.side==this.side}split(){return new Zp(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?aa.before(this.dom):aa.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Ds.empty}get isHidden(){return!0}}nc.prototype.children=Vc.prototype.children=Zp.prototype.children=eO;function hS(r,e){let t=r.dom,{children:n}=r,i=0;for(let s=0;i<n.length;i++){let a=n[i],l=s+a.length;if(!(l==s&&a.getSide()<=0)){if(e>s&&e<l&&a.dom.parentNode==t)return a.domAtPos(e-s);if(e<=s)break;s=l}}for(let s=i;s>0;s--){let a=n[s-1];if(a.dom.parentNode==t)return a.domAtPos(a.length)}for(let s=i;s<n.length;s++){let a=n[s];if(a.dom.parentNode==t)return a.domAtPos(0)}return new aa(t,0)}function pS(r,e,t){let n,{children:i}=r;t>0&&e instanceof ic&&i.length&&(n=i[i.length-1])instanceof ic&&n.mark.eq(e.mark)?pS(n,e.children[0],t-1):(i.push(e),e.setParent(r)),r.length+=e.length}function fS(r,e,t){let n=null,i=-1,s=null,a=-1;function l(m,g){for(let b=0,S=0;b<m.children.length&&S<=g;b++){let $=m.children[b],G=S+$.length;G>=g&&($.children.length?l($,g-S):(!s||s.isHidden&&t>0)&&(G>g||S==G&&$.getSide()>0)?(s=$,a=g-S):(S<g||S==G&&$.getSide()<0&&!$.isHidden)&&(n=$,i=g-S)),S=G}}l(r,e);let p=(t<0?n:s)||n||s;return p?p.coordsAt(Math.max(0,p==n?i:a),t):xk(r)}function xk(r){let e=r.dom.lastChild;if(!e)return r.dom.getBoundingClientRect();let t=Kf(e);return t[t.length-1]||null}function Ry(r,e){for(let t in r)t=="class"&&e.class?e.class+=" "+r.class:t=="style"&&e.style?e.style+=";"+r.style:e[t]=r[t];return e}const Z1=Object.create(null);function tO(r,e,t){if(r==e)return!0;r||(r=Z1),e||(e=Z1);let n=Object.keys(r),i=Object.keys(e);if(n.length-(t&&n.indexOf(t)>-1?1:0)!=i.length-(t&&i.indexOf(t)>-1?1:0))return!1;for(let s of n)if(s!=t&&(i.indexOf(s)==-1||r[s]!==e[s]))return!1;return!0}function Qy(r,e,t){let n=!1;if(e)for(let i in e)t&&i in t||(n=!0,i=="style"?r.style.cssText="":r.removeAttribute(i));if(t)for(let i in t)e&&e[i]==t[i]||(n=!0,i=="style"?r.style.cssText=t[i]:r.setAttribute(i,t[i]));return n}function bk(r){let e=Object.create(null);for(let t=0;t<r.attributes.length;t++){let n=r.attributes[t];e[n.name]=n.value}return e}class wo extends Ws{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,i,s,a){if(n){if(!(n instanceof wo))return!1;this.dom||n.transferDOM(this)}return i&&this.setDeco(n?n.attrs:null),uS(this,e,t,n?n.children:[],s,a),!0}split(e){let t=new wo;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i:n,off:i}=this.childPos(e);i&&(t.append(this.children[n].split(i),0),this.children[n].merge(i,this.children[n].length,null,!1,0,0),n++);for(let s=n;s<this.children.length;s++)t.append(this.children[s],0);for(;n>0&&this.children[n-1].length==0;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){tO(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){pS(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=Ry(t,this.attrs||{})),n&&(this.attrs=Ry({class:n},this.attrs||{}))}domAtPos(e){return hS(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?this.flags&4&&(iS(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Qy(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let i=this.dom.lastChild;for(;i&&Ws.get(i)instanceof ic;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((n=Ws.get(i))===null||n===void 0?void 0:n.isEditable)==!1&&(!oi.ios||!this.children.some(s=>s instanceof nc))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let n of this.children){if(!(n instanceof nc)||/[^ -~]/.test(n.text))return null;let i=Kf(n.dom);if(i.length!=1)return null;e+=i[0].width,t=i[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let n=fS(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:i}=this.parent.view.viewState,s=n.bottom-n.top;if(Math.abs(s-i.lineHeight)<2&&i.textHeight<s){let a=(s-i.textHeight)/2;return{top:n.top+a,bottom:n.bottom-a,left:n.left,right:n.left}}}return n}become(e){return!1}covers(){return!0}static find(e,t){for(let n=0,i=0;n<e.children.length;n++){let s=e.children[n],a=i+s.length;if(a>=t){if(s instanceof wo)return s;if(a>t)break}i=a+s.breakAfter}return null}}class jh extends Ws{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,i,s,a){return n&&(!(n instanceof jh)||!this.widget.compare(n.widget)||e>0&&s<=0||t<this.length&&a<=0)?!1:(this.length=e+(n?n.length:0)+(this.length-t),!0)}domAtPos(e){return e==0?aa.before(this.dom):aa.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let n=new jh(this.widget,t,this.deco);return n.breakAfter=this.breakAfter,n}get children(){return eO}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):Ds.empty}domBoundsAround(){return null}become(e){return e instanceof jh&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){return this.widget.coordsAt(this.dom,e,t)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:n}=this.deco;return t==n?!1:e<0?t<0:n>0}}class oh{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}destroy(e){}}var da=function(r){return r[r.Text=0]="Text",r[r.WidgetBefore=1]="WidgetBefore",r[r.WidgetAfter=2]="WidgetAfter",r[r.WidgetRange=3]="WidgetRange",r}(da||(da={}));class _i extends Uh{constructor(e,t,n,i){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=i}get heightRelevant(){return!1}static mark(e){return new bd(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new nh(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,i;if(e.isBlockGap)n=-5e8,i=4e8;else{let{start:s,end:a}=dS(e,t);n=(s?t?-3e8:-1:5e8)-1,i=(a?t?2e8:1:-6e8)+1}return new nh(e,n,i,t,e.widget||null,!0)}static line(e){return new vd(e)}static set(e,t=!1){return Ss.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}_i.none=Ss.empty;class bd extends _i{constructor(e){let{start:t,end:n}=dS(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof bd&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((n=e.attrs)===null||n===void 0?void 0:n.class))&&tO(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}bd.prototype.point=!1;class vd extends _i{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof vd&&this.spec.class==e.spec.class&&tO(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}vd.prototype.mapMode=zo.TrackBefore;vd.prototype.point=!0;class nh extends _i{constructor(e,t,n,i,s,a){super(t,n,s,e),this.block=i,this.isReplace=a,this.mapMode=i?t<=0?zo.TrackBefore:zo.TrackAfter:zo.TrackDel}get type(){return this.startSide!=this.endSide?da.WidgetRange:this.startSide<=0?da.WidgetBefore:da.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof nh&&vk(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}nh.prototype.point=!0;function dS(r,e=!1){let{inclusiveStart:t,inclusiveEnd:n}=r;return t==null&&(t=r.inclusive),n==null&&(n=r.inclusive),{start:t??e,end:n??e}}function vk(r,e){return r==e||!!(r&&e&&r.compare(e))}function jy(r,e,t,n=0){let i=t.length-1;i>=0&&t[i]+n>=r?t[i]=Math.max(t[i],e):t.push(r,e)}class If{constructor(e,t,n,i){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof jh&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new wo),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(zd(new Zp(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!e&&!this.posCovered()&&this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:a,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=s,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(zd(new nc(this.text.slice(this.textOff,this.textOff+i)),t),n),this.atCursorPos=!0,this.textOff+=i,e-=i,n=0}}span(e,t,n,i){this.buildText(t-e,n,i),this.pos=t,this.openStart<0&&(this.openStart=i)}point(e,t,n,i,s,a){if(this.disallowBlockEffectsFor[a]&&n instanceof nh){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(n instanceof nh)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new jh(n.widget||new Y1("div"),l,n));else{let p=Vc.create(n.widget||new Y1("span"),l,l?0:n.startSide),m=this.atCursorPos&&!p.isEditable&&s<=i.length&&(e<t||n.startSide>0),g=!p.isEditable&&(e<t||s>i.length||n.startSide<=0),b=this.getLine();this.pendingBuffer==2&&!m&&!p.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),m&&(b.append(zd(new Zp(1),i),s),s=i.length+Math.max(0,s-i.length)),b.append(zd(p,i),s),this.atCursorPos=g,this.pendingBuffer=g?e<t||s>i.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=s)}static build(e,t,n,i,s){let a=new If(e,t,n,s);return a.openEnd=Ss.spans(i,t,n,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function zd(r,e){for(let t of e)r=new ic(t,[r],r.length);return r}class Y1 extends oh{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const mS=qn.define(),gS=qn.define(),yS=qn.define(),DS=qn.define(),Ly=qn.define(),OS=qn.define(),xS=qn.define(),bS=qn.define({combine:r=>r.some(e=>e)}),vS=qn.define({combine:r=>r.some(e=>e)});class Wm{constructor(e,t="nearest",n="nearest",i=5,s=5){this.range=e,this.y=t,this.x=n,this.yMargin=i,this.xMargin=s}map(e){return e.empty?this:new Wm(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const G1=Qi.define({map:(r,e)=>r.map(e)});function wu(r,e,t){let n=r.facet(DS);n.length?n[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}const Xg=qn.define({combine:r=>r.length?r[0]:!0});let Ck=0;const Ef=qn.define();class bo{constructor(e,t,n,i,s){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=i,this.extension=s(this)}static define(e,t){const{eventHandlers:n,eventObservers:i,provide:s,decorations:a}=t||{};return new bo(Ck++,e,n,i,l=>{let p=[Ef.of(l)];return a&&p.push(ed.of(m=>{let g=m.plugin(l);return g?a(g):_i.none})),s&&p.push(s(l)),p})}static fromClass(e,t){return bo.define(n=>new e(n),t)}}class T0{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(n){if(wu(t.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){wu(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(n){wu(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const CS=qn.define(),rO=qn.define(),ed=qn.define(),nO=qn.define(),SS=qn.define();function H1(r,e,t){let n=r.state.facet(SS);if(!n.length)return n;let i=n.map(a=>a instanceof Function?a(r):a),s=[];return Ss.spans(i,e,t,{point(){},span(a,l,p,m){let g=s;for(let b=p.length-1;b>=0;b--,m--){let S=p[b].spec.bidiIsolate,$;if(S!=null)if(m>0&&g.length&&($=g[g.length-1]).to==a&&$.direction==S)$.to=l,g=$.inner;else{let G={from:a,to:l,direction:S,inner:[]};g.push(G),g=G.inner}}}}),s}const ES=qn.define();function wS(r){let e=0,t=0,n=0,i=0;for(let s of r.state.facet(ES)){let a=s(r);a&&(a.left!=null&&(e=Math.max(e,a.left)),a.right!=null&&(t=Math.max(t,a.right)),a.top!=null&&(n=Math.max(n,a.top)),a.bottom!=null&&(i=Math.max(i,a.bottom)))}return{left:e,right:t,top:n,bottom:i}}const wf=qn.define();class tu{constructor(e,t,n,i){this.fromA=e,this.toA=t,this.fromB=n,this.toB=i}join(e){return new tu(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let i=e[t-1];if(!(i.fromA>n.toA)){if(i.toA<n.fromA)break;n=n.join(i),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(t.length==0)return e;let n=[];for(let i=0,s=0,a=0,l=0;;i++){let p=i==e.length?null:e[i],m=a-l,g=p?p.fromB:1e9;for(;s<t.length&&t[s]<g;){let b=t[s],S=t[s+1],$=Math.max(l,b),G=Math.min(g,S);if($<=G&&new tu($+m,G+m,$,G).addToSet(n),S>g)break;s+=2}if(!p)return n;new tu(p.fromA,p.toA,p.fromB,p.toB).addToSet(n),a=p.toA,l=p.toB}}}class Zm{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=Ao.empty(this.startState.doc.length);for(let s of n)this.changes=this.changes.compose(s.changes);let i=[];this.changes.iterChangedRanges((s,a,l,p)=>i.push(new tu(s,a,l,p))),this.changedRanges=i}static create(e,t,n){return new Zm(e,t,n)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var no=function(r){return r[r.LTR=0]="LTR",r[r.RTL=1]="RTL",r}(no||(no={}));const td=no.LTR,AS=no.RTL;function TS(r){let e=[];for(let t=0;t<r.length;t++)e.push(1<<+r[t]);return e}const Sk=TS("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Ek=TS("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Xy=Object.create(null),rl=[];for(let r of["()","[]","{}"]){let e=r.charCodeAt(0),t=r.charCodeAt(1);Xy[e]=t,Xy[t]=-e}function wk(r){return r<=247?Sk[r]:1424<=r&&r<=1524?2:1536<=r&&r<=1785?Ek[r-1536]:1774<=r&&r<=2220?4:8192<=r&&r<=8203?256:64336<=r&&r<=65023?4:r==8204?256:1}const Ak=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Uc{get dir(){return this.level%2?AS:td}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}static find(e,t,n,i){let s=-1;for(let a=0;a<e.length;a++){let l=e[a];if(l.from<=t&&l.to>=t){if(l.level==n)return a;(s<0||(i!=0?i<0?l.from<t:l.to>t:e[s].level>l.level))&&(s=a)}}if(s<0)throw new RangeError("Index out of range");return s}}function PS(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++){let n=r[t],i=e[t];if(n.from!=i.from||n.to!=i.to||n.direction!=i.direction||!PS(n.inner,i.inner))return!1}return!0}const Bs=[];function Tk(r,e,t,n,i){for(let s=0;s<=n.length;s++){let a=s?n[s-1].to:e,l=s<n.length?n[s].from:t,p=s?256:i;for(let m=a,g=p,b=p;m<l;m++){let S=wk(r.charCodeAt(m));S==512?S=g:S==8&&b==4&&(S=16),Bs[m]=S==4?2:S,S&7&&(b=S),g=S}for(let m=a,g=p,b=p;m<l;m++){let S=Bs[m];if(S==128)m<l-1&&g==Bs[m+1]&&g&24?S=Bs[m]=g:Bs[m]=256;else if(S==64){let $=m+1;for(;$<l&&Bs[$]==64;)$++;let G=m&&g==8||$<t&&Bs[$]==8?b==1?1:8:256;for(let be=m;be<$;be++)Bs[be]=G;m=$-1}else S==8&&b==1&&(Bs[m]=1);g=S,S&7&&(b=S)}}}function Pk(r,e,t,n,i){let s=i==1?2:1;for(let a=0,l=0,p=0;a<=n.length;a++){let m=a?n[a-1].to:e,g=a<n.length?n[a].from:t;for(let b=m,S,$,G;b<g;b++)if($=Xy[S=r.charCodeAt(b)])if($<0){for(let be=l-3;be>=0;be-=3)if(rl[be+1]==-$){let ke=rl[be+2],me=ke&2?i:ke&4?ke&1?s:i:0;me&&(Bs[b]=Bs[rl[be]]=me),l=be;break}}else{if(rl.length==189)break;rl[l++]=b,rl[l++]=S,rl[l++]=p}else if((G=Bs[b])==2||G==1){let be=G==i;p=be?0:1;for(let ke=l-3;ke>=0;ke-=3){let me=rl[ke+2];if(me&2)break;if(be)rl[ke+2]|=2;else{if(me&4)break;rl[ke+2]|=4}}}}}function kk(r,e,t,n){for(let i=0,s=n;i<=t.length;i++){let a=i?t[i-1].to:r,l=i<t.length?t[i].from:e;for(let p=a;p<l;){let m=Bs[p];if(m==256){let g=p+1;for(;;)if(g==l){if(i==t.length)break;g=t[i++].to,l=i<t.length?t[i].from:e}else if(Bs[g]==256)g++;else break;let b=s==1,S=(g<e?Bs[g]:n)==1,$=b==S?b?1:2:n;for(let G=g,be=i,ke=be?t[be-1].to:r;G>p;)G==ke&&(G=t[--be].from,ke=be?t[be-1].to:r),Bs[--G]=$;p=g}else s=m,p++}}}function Vy(r,e,t,n,i,s,a){let l=n%2?2:1;if(n%2==i%2)for(let p=e,m=0;p<t;){let g=!0,b=!1;if(m==s.length||p<s[m].from){let be=Bs[p];be!=l&&(g=!1,b=be==16)}let S=!g&&l==1?[]:null,$=g?n:n+1,G=p;e:for(;;)if(m<s.length&&G==s[m].from){if(b)break e;let be=s[m];if(!g)for(let ke=be.to,me=m+1;;){if(ke==t)break e;if(me<s.length&&s[me].from==ke)ke=s[me++].to;else{if(Bs[ke]==l)break e;break}}if(m++,S)S.push(be);else{be.from>p&&a.push(new Uc(p,be.from,$));let ke=be.direction==td!=!($%2);Uy(r,ke?n+1:n,i,be.inner,be.from,be.to,a),p=be.to}G=be.to}else{if(G==t||(g?Bs[G]!=l:Bs[G]==l))break;G++}S?Vy(r,p,G,n+1,i,S,a):p<G&&a.push(new Uc(p,G,$)),p=G}else for(let p=t,m=s.length;p>e;){let g=!0,b=!1;if(!m||p>s[m-1].to){let be=Bs[p-1];be!=l&&(g=!1,b=be==16)}let S=!g&&l==1?[]:null,$=g?n:n+1,G=p;e:for(;;)if(m&&G==s[m-1].to){if(b)break e;let be=s[--m];if(!g)for(let ke=be.from,me=m;;){if(ke==e)break e;if(me&&s[me-1].to==ke)ke=s[--me].from;else{if(Bs[ke-1]==l)break e;break}}if(S)S.push(be);else{be.to<p&&a.push(new Uc(be.to,p,$));let ke=be.direction==td!=!($%2);Uy(r,ke?n+1:n,i,be.inner,be.from,be.to,a),p=be.from}G=be.from}else{if(G==e||(g?Bs[G-1]!=l:Bs[G-1]==l))break;G--}S?Vy(r,G,p,n+1,i,S,a):G<p&&a.push(new Uc(G,p,$)),p=G}}function Uy(r,e,t,n,i,s,a){let l=e%2?2:1;Tk(r,i,s,n,l),Pk(r,i,s,n,l),kk(i,s,n,l),Vy(r,i,s,e,t,n,a)}function Fk(r,e,t){if(!r)return[new Uc(0,0,e==AS?1:0)];if(e==td&&!t.length&&!Ak.test(r))return kS(r.length);if(t.length)for(;r.length>Bs.length;)Bs[Bs.length]=256;let n=[],i=e==td?0:1;return Uy(r,i,i,t,0,r.length,n),n}function kS(r){return[new Uc(0,r,0)]}let FS="";function _k(r,e,t,n,i){var s;let a=n.head-r.from,l=-1;if(a==0){if(!i||!r.length)return null;e[0].level!=t&&(a=e[0].side(!1,t),l=0)}else if(a==r.length){if(i)return null;let S=e[e.length-1];S.level!=t&&(a=S.side(!0,t),l=e.length-1)}l<0&&(l=Uc.find(e,a,(s=n.bidiLevel)!==null&&s!==void 0?s:-1,n.assoc));let p=e[l];a==p.side(i,t)&&(p=e[l+=i?1:-1],a=p.side(!i,t));let m=i==(p.dir==t),g=ua(r.text,a,m);if(FS=r.text.slice(Math.min(a,g),Math.max(a,g)),g!=p.side(i,t))return Pr.cursor(g+r.from,m?-1:1,p.level);let b=l==(i?e.length-1:0)?null:e[l+(i?1:-1)];return!b&&p.level!=t?Pr.cursor(i?r.to:r.from,i?-1:1,t):b&&b.level<p.level?Pr.cursor(b.side(!i,t)+r.from,i?1:-1,b.level):Pr.cursor(g+r.from,i?-1:1,p.level)}class J1 extends Ws{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new wo],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new tu(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:m,toA:g})=>g<this.minWidthFrom||m>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?i=this.domChanged.newSel.head:!Qk(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let s=i>-1?Bk(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:m,to:g}=this.hasComposition;n=new tu(m,g,e.changes.mapPos(m,-1),e.changes.mapPos(g,1)).addToSet(n.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(oi.ie||oi.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,l=this.updateDeco(),p=Mk(a,l,e.changes);return n=tu.extendWithRanges(n,p),!(this.flags&7)&&n.length==0?!1:(this.updateInner(n,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=oi.chrome||oi.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||i.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let a of this.children)a instanceof jh&&a.widget instanceof K1&&s.push(a.dom);i.updateGaps(s)}updateChildren(e,t,n){let i=n?n.range.addToSet(e.slice()):e,s=this.childCursor(t);for(let a=i.length-1;;a--){let l=a>=0?i[a]:null;if(!l)break;let{fromA:p,toA:m,fromB:g,toB:b}=l,S,$,G,be;if(n&&n.range.fromB<b&&n.range.toB>g){let ht=If.build(this.view.state.doc,g,n.range.fromB,this.decorations,this.dynamicDecorationMap),bt=If.build(this.view.state.doc,n.range.toB,b,this.decorations,this.dynamicDecorationMap);$=ht.breakAtStart,G=ht.openStart,be=bt.openEnd;let Yt=this.compositionView(n);bt.breakAtStart?Yt.breakAfter=1:bt.content.length&&Yt.merge(Yt.length,Yt.length,bt.content[0],!1,bt.openStart,0)&&(Yt.breakAfter=bt.content[0].breakAfter,bt.content.shift()),ht.content.length&&Yt.merge(0,0,ht.content[ht.content.length-1],!0,0,ht.openEnd)&&ht.content.pop(),S=ht.content.concat(Yt).concat(bt.content)}else({content:S,breakAtStart:$,openStart:G,openEnd:be}=If.build(this.view.state.doc,g,b,this.decorations,this.dynamicDecorationMap));let{i:ke,off:me}=s.findPos(m,1),{i:Ve,off:Dt}=s.findPos(p,-1);aS(this,Ve,Dt,ke,me,S,$,G,be)}n&&this.fixCompositionDOM(n)}compositionView(e){let t=new nc(e.text.nodeValue);t.flags|=8;for(let{deco:i}of e.marks)t=new ic(i,[t],t.length);let n=new wo;return n.append(t,0),n}fixCompositionDOM(e){let t=(s,a)=>{a.flags|=8|(a.children.some(p=>p.flags&7)?1:0),this.markedForComposition.add(a);let l=Ws.get(s);l&&l!=a&&(l.dom=null),a.setDOM(s)},n=this.childPos(e.range.fromB,1),i=this.children[n.i];t(e.line,i);for(let s=e.marks.length-1;s>=-1;s--)n=i.childPos(n.off,1),i=i.children[n.i],t(s>=0?e.marks[s].node:e.text,i)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let n=this.view.root.activeElement,i=n==this.dom,s=!i&&bm(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(i||t||s))return;let a=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,p=this.moveToLine(this.domAtPos(l.anchor)),m=l.empty?p:this.moveToLine(this.domAtPos(l.head));if(oi.gecko&&l.empty&&!this.hasComposition&&$k(p)){let b=document.createTextNode("");this.view.observer.ignore(()=>p.node.insertBefore(b,p.node.childNodes[p.offset]||null)),p=m=new aa(b,0),a=!0}let g=this.view.observer.selectionRange;(a||!g.focusNode||!qm(p.node,p.offset,g.anchorNode,g.anchorOffset)||!qm(m.node,m.offset,g.focusNode,g.focusOffset))&&(this.view.observer.ignore(()=>{oi.android&&oi.chrome&&this.dom.contains(g.focusNode)&&Rk(g.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let b=Um(this.view.root);if(b)if(l.empty){if(oi.gecko){let S=Nk(p.node,p.offset);if(S&&S!=3){let $=$S(p.node,p.offset,S==1?1:-1);$&&(p=new aa($.node,$.offset))}}b.collapse(p.node,p.offset),l.bidiLevel!=null&&b.caretBidiLevel!==void 0&&(b.caretBidiLevel=l.bidiLevel)}else if(b.extend){b.collapse(p.node,p.offset);try{b.extend(m.node,m.offset)}catch{}}else{let S=document.createRange();l.anchor>l.head&&([p,m]=[m,p]),S.setEnd(m.node,m.offset),S.setStart(p.node,p.offset),b.removeAllRanges(),b.addRange(S)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(p,m)),this.impreciseAnchor=p.precise?null:new aa(g.anchorNode,g.anchorOffset),this.impreciseHead=m.precise?null:new aa(g.focusNode,g.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=Um(e.root),{anchorNode:i,anchorOffset:s}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let a=wo.find(this,t.head);if(!a)return;let l=a.posAtStart;if(t.head==l||t.head==l+a.length)return;let p=this.coordsAt(t.head,-1),m=this.coordsAt(t.head,1);if(!p||!m||p.bottom>m.top)return;let g=this.domAtPos(t.head+t.assoc);n.collapse(g.node,g.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let b=e.observer.selectionRange;e.docView.posFromDOM(b.anchorNode,b.anchorOffset)!=t.from&&n.collapse(i,s)}moveToLine(e){let t=this.dom,n;if(e.node!=t)return e;for(let i=e.offset;!n&&i<t.childNodes.length;i++){let s=Ws.get(t.childNodes[i]);s instanceof wo&&(n=s.domAtPos(0))}for(let i=e.offset-1;!n&&i>=0;i--){let s=Ws.get(t.childNodes[i]);s instanceof wo&&(n=s.domAtPos(s.length))}return n?new aa(n.node,n.offset,!0):e}nearest(e){for(let t=e;t;){let n=Ws.get(t);if(n&&n.rootView==this)return n;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let i=this.children[t];if(n<i.length||i instanceof wo)break;t++,n=0}return this.children[t].domAtPos(n)}coordsAt(e,t){let n=null,i=0;for(let s=this.length,a=this.children.length-1;a>=0;a--){let l=this.children[a],p=s-l.breakAfter,m=p-l.length;if(p<e)break;m<=e&&(m<e||l.covers(-1))&&(p>e||l.covers(1))&&(!n||l instanceof wo&&!(n instanceof wo&&t>=0))&&(n=l,i=m),s=m}return n?n.coordsAt(e-i,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),i=this.children[t];if(!(i instanceof wo))return null;for(;i.children.length;){let{i:l,off:p}=i.childPos(n,1);for(;;l++){if(l==i.children.length)return null;if((i=i.children[l]).length)break}n=p}if(!(i instanceof nc))return null;let s=ua(i.text,n);if(s==n)return null;let a=qh(i.dom,n,s).getClientRects();return!a.length||a[0].top>=a[0].bottom?null:a[0]}measureVisibleLineHeights(e){let t=[],{from:n,to:i}=e,s=this.view.contentDOM.clientWidth,a=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,p=this.view.textDirection==no.LTR;for(let m=0,g=0;g<this.children.length;g++){let b=this.children[g],S=m+b.length;if(S>i)break;if(m>=n){let $=b.dom.getBoundingClientRect();if(t.push($.height),a){let G=b.dom.lastChild,be=G?Kf(G):[];if(be.length){let ke=be[be.length-1],me=p?ke.right-$.left:$.right-ke.left;me>l&&(l=me,this.minWidth=s,this.minWidthFrom=m,this.minWidthTo=S)}}}m=S+b.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?no.RTL:no.LTR}measureTextSize(){for(let s of this.children)if(s instanceof wo){let a=s.measureTextSize();if(a)return a}let e=document.createElement("div"),t,n,i;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=Kf(e.firstChild)[0];t=e.getBoundingClientRect().height,n=s?s.width/27:7,i=s?s.height:t,e.remove()}),{lineHeight:t,charWidth:n,textHeight:i}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new oS(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,i=0;;i++){let s=i==t.viewports.length?null:t.viewports[i],a=s?s.from-1:this.length;if(a>n){let l=(t.lineBlockAt(a).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(_i.replace({widget:new K1(l),block:!0,inclusive:!0,isBlockGap:!0}).range(n,a))}if(!s)break;n=s.to+1}return _i.set(e)}updateDeco(){let e=this.view.state.facet(ed).map((t,n)=>(this.dynamicDecorationMap[n]=typeof t=="function")?t(this.view):t);for(let t=e.length;t<e.length+3;t++)this.dynamicDecorationMap[t]=!1;return this.decorations=[...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){let{range:t}=e,n=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),i;if(!n)return;!t.empty&&(i=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(n={left:Math.min(n.left,i.left),top:Math.min(n.top,i.top),right:Math.max(n.right,i.right),bottom:Math.max(n.bottom,i.bottom)});let s=wS(this.view),a={left:n.left-s.left,top:n.top-s.top,right:n.right+s.right,bottom:n.bottom+s.bottom};fk(this.view.scrollDOM,a,t.head<t.anchor?-1:1,e.x,e.y,e.xMargin,e.yMargin,this.view.textDirection==no.LTR)}}function $k(r){return r.node.nodeType==1&&r.node.firstChild&&(r.offset==0||r.node.childNodes[r.offset-1].contentEditable=="false")&&(r.offset==r.node.childNodes.length||r.node.childNodes[r.offset].contentEditable=="false")}class K1 extends oh{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get estimatedHeight(){return this.height}}function _S(r,e){let t=r.observer.selectionRange,n=t.focusNode&&$S(t.focusNode,t.focusOffset,0);if(!n)return null;let i=e-n.offset;return{from:i,to:i+n.node.nodeValue.length,node:n.node}}function Bk(r,e,t){let n=_S(r,t);if(!n)return null;let{node:i,from:s,to:a}=n,l=i.nodeValue;if(/[\n\r]/.test(l)||r.state.doc.sliceString(n.from,n.to)!=l)return null;let p=e.invertedDesc,m=new tu(p.mapPos(s),p.mapPos(a),s,a),g=[];for(let b=i.parentNode;;b=b.parentNode){let S=Ws.get(b);if(S instanceof ic)g.push({node:b,deco:S.mark});else{if(S instanceof wo||b.nodeName=="DIV"&&b.parentNode==r.contentDOM)return{range:m,text:i,marks:g,line:b};if(b!=r.contentDOM)g.push({node:b,deco:new bd({inclusive:!0,attributes:bk(b),tagName:b.tagName.toLowerCase()})});else return null}}}function $S(r,e,t){if(t<=0)for(let n=r,i=e;;){if(n.nodeType==3)return{node:n,offset:i};if(n.nodeType==1&&i>0)n=n.childNodes[i-1],i=rh(n);else break}if(t>=0)for(let n=r,i=e;;){if(n.nodeType==3)return{node:n,offset:i};if(n.nodeType==1&&i<n.childNodes.length&&t>=0)n=n.childNodes[i],i=0;else break}return null}function Nk(r,e){return r.nodeType!=1?0:(e&&r.childNodes[e-1].contentEditable=="false"?1:0)|(e<r.childNodes.length&&r.childNodes[e].contentEditable=="false"?2:0)}let Ik=class{constructor(){this.changes=[]}compareRange(e,t){jy(e,t,this.changes)}comparePoint(e,t){jy(e,t,this.changes)}};function Mk(r,e,t){let n=new Ik;return Ss.compare(r,e,t,n),n.changes}function Rk(r,e){for(let t=r;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function Qk(r,e){let t=!1;return e&&r.iterChangedRanges((n,i)=>{n<e.to&&i>e.from&&(t=!0)}),t}function jk(r,e,t=1){let n=r.charCategorizer(e),i=r.doc.lineAt(e),s=e-i.from;if(i.length==0)return Pr.cursor(e);s==0?t=1:s==i.length&&(t=-1);let a=s,l=s;t<0?a=ua(i.text,s,!1):l=ua(i.text,s);let p=n(i.text.slice(a,l));for(;a>0;){let m=ua(i.text,a,!1);if(n(i.text.slice(m,a))!=p)break;a=m}for(;l<i.length;){let m=ua(i.text,l);if(n(i.text.slice(l,m))!=p)break;l=m}return Pr.range(a+i.from,l+i.from)}function Lk(r,e){return e.left>r?e.left-r:Math.max(0,r-e.right)}function Xk(r,e){return e.top>r?e.top-r:Math.max(0,r-e.bottom)}function P0(r,e){return r.top<e.bottom-1&&r.bottom>e.top+1}function ex(r,e){return e<r.top?{top:e,left:r.left,right:r.right,bottom:r.bottom}:r}function tx(r,e){return e>r.bottom?{top:r.top,left:r.left,right:r.right,bottom:e}:r}function qy(r,e,t){let n,i,s,a,l=!1,p,m,g,b;for(let G=r.firstChild;G;G=G.nextSibling){let be=Kf(G);for(let ke=0;ke<be.length;ke++){let me=be[ke];i&&P0(i,me)&&(me=ex(tx(me,i.bottom),i.top));let Ve=Lk(e,me),Dt=Xk(t,me);if(Ve==0&&Dt==0)return G.nodeType==3?rx(G,e,t):qy(G,e,t);if(!n||a>Dt||a==Dt&&s>Ve){n=G,i=me,s=Ve,a=Dt;let ht=Dt?t<me.top?-1:1:Ve?e<me.left?-1:1:0;l=!ht||(ht>0?ke<be.length-1:ke>0)}Ve==0?t>me.bottom&&(!g||g.bottom<me.bottom)?(p=G,g=me):t<me.top&&(!b||b.top>me.top)&&(m=G,b=me):g&&P0(g,me)?g=tx(g,me.bottom):b&&P0(b,me)&&(b=ex(b,me.top))}}if(g&&g.bottom>=t?(n=p,i=g):b&&b.top<=t&&(n=m,i=b),!n)return{node:r,offset:0};let S=Math.max(i.left,Math.min(i.right,e));if(n.nodeType==3)return rx(n,S,t);if(l&&n.contentEditable!="false")return qy(n,S,t);let $=Array.prototype.indexOf.call(r.childNodes,n)+(e>=(i.left+i.right)/2?1:0);return{node:r,offset:$}}function rx(r,e,t){let n=r.nodeValue.length,i=-1,s=1e9,a=0;for(let l=0;l<n;l++){let p=qh(r,l,l+1).getClientRects();for(let m=0;m<p.length;m++){let g=p[m];if(g.top==g.bottom)continue;a||(a=e-g.left);let b=(g.top>t?g.top-t:t-g.bottom)-1;if(g.left-1<=e&&g.right+1>=e&&b<s){let S=e>=(g.left+g.right)/2,$=S;if((oi.chrome||oi.gecko)&&qh(r,l).getBoundingClientRect().left==g.right&&($=!S),b<=0)return{node:r,offset:l+($?1:0)};i=l+($?1:0),s=b}}}return{node:r,offset:i>-1?i:a>0?r.nodeValue.length:0}}function BS(r,e,t,n=-1){var i,s;let a=r.contentDOM.getBoundingClientRect(),l=a.top+r.viewState.paddingTop,p,{docHeight:m}=r.viewState,{x:g,y:b}=e,S=b-l;if(S<0)return 0;if(S>m)return r.state.doc.length;for(let ht=r.viewState.heightOracle.textHeight/2,bt=!1;p=r.elementAtHeight(S),p.type!=da.Text;)for(;S=n>0?p.bottom+ht:p.top-ht,!(S>=0&&S<=m);){if(bt)return t?null:0;bt=!0,n=-n}b=l+S;let $=p.from;if($<r.viewport.from)return r.viewport.from==0?0:t?null:nx(r,a,p,g,b);if($>r.viewport.to)return r.viewport.to==r.state.doc.length?r.state.doc.length:t?null:nx(r,a,p,g,b);let G=r.dom.ownerDocument,be=r.root.elementFromPoint?r.root:G,ke=be.elementFromPoint(g,b);ke&&!r.contentDOM.contains(ke)&&(ke=null),ke||(g=Math.max(a.left+1,Math.min(a.right-1,g)),ke=be.elementFromPoint(g,b),ke&&!r.contentDOM.contains(ke)&&(ke=null));let me,Ve=-1;if(ke&&((i=r.docView.nearest(ke))===null||i===void 0?void 0:i.isEditable)!=!1){if(G.caretPositionFromPoint){let ht=G.caretPositionFromPoint(g,b);ht&&({offsetNode:me,offset:Ve}=ht)}else if(G.caretRangeFromPoint){let ht=G.caretRangeFromPoint(g,b);ht&&({startContainer:me,startOffset:Ve}=ht,(!r.contentDOM.contains(me)||oi.safari&&Vk(me,Ve,g)||oi.chrome&&Uk(me,Ve,g))&&(me=void 0))}}if(!me||!r.docView.dom.contains(me)){let ht=wo.find(r.docView,$);if(!ht)return S>p.top+p.height/2?p.to:p.from;({node:me,offset:Ve}=qy(ht.dom,g,b))}let Dt=r.docView.nearest(me);if(!Dt)return null;if(Dt.isWidget&&((s=Dt.dom)===null||s===void 0?void 0:s.nodeType)==1){let ht=Dt.dom.getBoundingClientRect();return e.y<ht.top||e.y<=ht.bottom&&e.x<=(ht.left+ht.right)/2?Dt.posAtStart:Dt.posAtEnd}else return Dt.localPosFromDOM(me,Ve)+Dt.posAtStart}function nx(r,e,t,n,i){let s=Math.round((n-e.left)*r.defaultCharacterWidth);if(r.lineWrapping&&t.height>r.defaultLineHeight*1.5){let l=r.viewState.heightOracle.textHeight,p=Math.floor((i-t.top-(r.defaultLineHeight-l)*.5)/l);s+=p*r.viewState.heightOracle.lineLength}let a=r.state.sliceDoc(t.from,t.to);return t.from+Fy(a,s,r.state.tabSize)}function Vk(r,e,t){let n;if(r.nodeType!=3||e!=(n=r.nodeValue.length))return!1;for(let i=r.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return qh(r,n-1,n).getBoundingClientRect().left>t}function Uk(r,e,t){if(e!=0)return!1;for(let i=r;;){let s=i.parentNode;if(!s||s.nodeType!=1||s.firstChild!=i)return!1;if(s.classList.contains("cm-line"))break;i=s}let n=r.nodeType==1?r.getBoundingClientRect():qh(r,0,Math.max(r.nodeValue.length,1)).getBoundingClientRect();return t-n.left>5}function zy(r,e){let t=r.lineBlockAt(e);if(Array.isArray(t.type)){for(let n of t.type)if(n.to>e||n.to==e&&(n.to==t.to||n.type==da.Text))return n}return t}function qk(r,e,t,n){let i=zy(r,e.head),s=!n||i.type!=da.Text||!(r.lineWrapping||i.widgetLineBreaks)?null:r.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(s){let a=r.dom.getBoundingClientRect(),l=r.textDirectionAt(i.from),p=r.posAtCoords({x:t==(l==no.LTR)?a.right-1:a.left+1,y:(s.top+s.bottom)/2});if(p!=null)return Pr.cursor(p,t?-1:1)}return Pr.cursor(t?i.to:i.from,t?-1:1)}function ix(r,e,t,n){let i=r.state.doc.lineAt(e.head),s=r.bidiSpans(i),a=r.textDirectionAt(i.from);for(let l=e,p=null;;){let m=_k(i,s,a,l,t),g=FS;if(!m){if(i.number==(t?r.state.doc.lines:1))return l;g=`
|
|
8
8
|
`,i=r.state.doc.line(i.number+(t?1:-1)),s=r.bidiSpans(i),m=Pr.cursor(t?i.from:i.to)}if(p){if(!p(g))return l}else{if(!n)return m;p=n(g)}l=m}}function zk(r,e,t){let n=r.state.charCategorizer(e),i=n(t);return s=>{let a=n(s);return i==Js.Space&&(i=a),i==a}}function Wk(r,e,t,n){let i=e.head,s=t?1:-1;if(i==(t?r.state.doc.length:0))return Pr.cursor(i,e.assoc);let a=e.goalColumn,l,p=r.contentDOM.getBoundingClientRect(),m=r.coordsAtPos(i),g=r.documentTop;if(m)a==null&&(a=m.left-p.left),l=s<0?m.top:m.bottom;else{let $=r.viewState.lineBlockAt(i);a==null&&(a=Math.min(p.right-p.left,r.defaultCharacterWidth*(i-$.from))),l=(s<0?$.top:$.bottom)+g}let b=p.left+a,S=n??r.viewState.heightOracle.textHeight>>1;for(let $=0;;$+=10){let G=l+(S+$)*s,be=BS(r,{x:b,y:G},!1,s);if(G<p.top||G>p.bottom||(s<0?be<i:be>i))return Pr.cursor(be,e.assoc,void 0,a)}}function vm(r,e,t){for(;;){let n=0;for(let i of r)i.between(e-1,e+1,(s,a,l)=>{if(e>s&&e<a){let p=n||t||(e-s<a-e?-1:1);e=p<0?s:a,n=p}});if(!n)return e}}function k0(r,e,t){let n=vm(r.state.facet(nO).map(i=>i(r)),t.from,e.head>t.from?-1:1);return n==t.from?t:Pr.cursor(n,n<t.from?1:-1)}class Zk{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.handleEvent=this.handleEvent.bind(this),e.scrollDOM.addEventListener("mousedown",t=>{if(t.target==e.scrollDOM&&t.clientY>e.contentDOM.getBoundingClientRect().bottom&&(this.handleEvent(t),!t.defaultPrevented&&t.button==2)){let n=e.contentDOM.style.minHeight;e.contentDOM.style.minHeight="100%",setTimeout(()=>e.contentDOM.style.minHeight=n,200)}}),e.scrollDOM.addEventListener("drop",t=>{t.target==e.scrollDOM&&t.clientY>e.contentDOM.getBoundingClientRect().bottom&&this.handleEvent(t)}),this.notifiedFocused=e.hasFocus,oi.safari&&e.contentDOM.addEventListener("input",()=>null),oi.gecko&&cF(e.contentDOM.ownerDocument)}handleEvent(e){!rF(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let n=this.handlers[e];if(n){for(let i of n.observers)i(this.view,t);for(let i of n.handlers){if(t.defaultPrevented)break;if(i(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Yk(e),n=this.handlers,i=this.view.contentDOM;for(let s in t)if(s!="scroll"){let a=!t[s].handlers.length,l=n[s];l&&a!=!l.handlers.length&&(i.removeEventListener(s,this.handleEvent),l=null),l||i.addEventListener(s,this.handleEvent,{passive:a})}for(let s in n)s!="scroll"&&!t[s]&&i.removeEventListener(s,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(e.keyCode!=27&&IS.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),oi.android&&oi.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return oi.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=NS.find(n=>n.keyCode==e.keyCode))&&!e.ctrlKey||Gk.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,Qp(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:oi.safari&&!oi.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function sx(r,e){return(t,n)=>{try{return e.call(r,n,t)}catch(i){wu(t.state,i)}}}function Yk(r){let e=Object.create(null);function t(n){return e[n]||(e[n]={observers:[],handlers:[]})}for(let n of r){let i=n.spec;if(i&&i.domEventHandlers)for(let s in i.domEventHandlers){let a=i.domEventHandlers[s];a&&t(s).handlers.push(sx(n.value,a))}if(i&&i.domEventObservers)for(let s in i.domEventObservers){let a=i.domEventObservers[s];a&&t(s).observers.push(sx(n.value,a))}}for(let n in vl)t(n).handlers.push(vl[n]);for(let n in Tu)t(n).observers.push(Tu[n]);return e}const NS=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Gk="dthko",IS=[16,17,18,20,91,92,224,225],Wd=6;function Zd(r){return Math.max(0,r)*.7+8}function Hk(r,e){return Math.max(Math.abs(r.clientX-e.clientX),Math.abs(r.clientY-e.clientY))}class Jk{constructor(e,t,n,i){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=dk(e.contentDOM),this.atoms=e.state.facet(nO).map(a=>a(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(gs.allowMultipleSelections)&&Kk(e,t),this.dragging=tF(e,t)&&jS(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var t;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Hk(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,i=0,s=((t=this.scrollParent)===null||t===void 0?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=wS(this.view);e.clientX-a.left<=s.left+Wd?n=-Zd(s.left-e.clientX):e.clientX+a.right>=s.right-Wd&&(n=Zd(e.clientX-s.right)),e.clientY-a.top<=s.top+Wd?i=-Zd(s.top-e.clientY):e.clientY+a.bottom>=s.bottom-Wd&&(i=Zd(e.clientY-s.bottom)),this.setScrollSpeed(n,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;n<e.ranges.length;n++){let i=e.ranges[n],s=null;if(i.empty){let a=vm(this.atoms,i.from,0);a!=i.from&&(s=Pr.cursor(a,-1))}else{let a=vm(this.atoms,i.from,-1),l=vm(this.atoms,i.to,1);(a!=i.from||l!=i.to)&&(s=Pr.range(i.from==i.anchor?a:l,i.from==i.head?a:l))}s&&(t||(t=e.ranges.slice()),t[n]=s)}return t?Pr.create(t,e.mainIndex):e}select(e){let{view:t}=this,n=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(t.state.selection)||n.main.assoc!=t.state.selection.main.assoc&&this.dragging===!1)&&this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Kk(r,e){let t=r.state.facet(mS);return t.length?t[0](e):oi.mac?e.metaKey:e.ctrlKey}function eF(r,e){let t=r.state.facet(gS);return t.length?t[0](e):oi.mac?!e.altKey:!e.ctrlKey}function tF(r,e){let{main:t}=r.state.selection;if(t.empty)return!1;let n=Um(r.root);if(!n||n.rangeCount==0)return!0;let i=n.getRangeAt(0).getClientRects();for(let s=0;s<i.length;s++){let a=i[s];if(a.left<=e.clientX&&a.right>=e.clientX&&a.top<=e.clientY&&a.bottom>=e.clientY)return!0}return!1}function rF(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,n;t!=r.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(n=Ws.get(t))&&n.ignoreEvent(e))return!1;return!0}const vl=Object.create(null),Tu=Object.create(null),MS=oi.ie&&oi.ie_version<15||oi.ios&&oi.webkit_version<604;function nF(r){let e=r.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{r.focus(),t.remove(),RS(r,t.value)},50)}function RS(r,e){let{state:t}=r,n,i=1,s=t.toText(e),a=s.lines==t.selection.ranges.length;if(Wy!=null&&t.selection.ranges.every(p=>p.empty)&&Wy==s.toString()){let p=-1;n=t.changeByRange(m=>{let g=t.doc.lineAt(m.from);if(g.from==p)return{range:m};p=g.from;let b=t.toText((a?s.line(i++).text:e)+t.lineBreak);return{changes:{from:g.from,insert:b},range:Pr.cursor(m.from+b.length)}})}else a?n=t.changeByRange(p=>{let m=s.line(i++);return{changes:{from:p.from,to:p.to,insert:m.text},range:Pr.cursor(p.from+m.length)}}):n=t.replaceSelection(s);r.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}Tu.scroll=r=>{r.inputState.lastScrollTop=r.scrollDOM.scrollTop,r.inputState.lastScrollLeft=r.scrollDOM.scrollLeft};vl.keydown=(r,e)=>(r.inputState.setSelectionOrigin("select"),e.keyCode==27&&(r.inputState.lastEscPress=Date.now()),!1);Tu.touchstart=(r,e)=>{r.inputState.lastTouchTime=Date.now(),r.inputState.setSelectionOrigin("select.pointer")};Tu.touchmove=r=>{r.inputState.setSelectionOrigin("select.pointer")};vl.mousedown=(r,e)=>{if(r.observer.flush(),r.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let n of r.state.facet(yS))if(t=n(r,e),t)break;if(!t&&e.button==0&&(t=oF(r,e)),t){let n=!r.hasFocus;r.inputState.startMouseSelection(new Jk(r,e,t,n)),n&&r.observer.ignore(()=>nS(r.contentDOM));let i=r.inputState.mouseSelection;if(i)return i.start(e),!i.dragging}return!1};function ox(r,e,t,n){if(n==1)return Pr.cursor(e,t);if(n==2)return jk(r.state,e,t);{let i=wo.find(r.docView,e),s=r.state.doc.lineAt(i?i.posAtEnd:e),a=i?i.posAtStart:s.from,l=i?i.posAtEnd:s.to;return l<r.state.doc.length&&l==s.to&&l++,Pr.range(a,l)}}let QS=(r,e)=>r>=e.top&&r<=e.bottom,ax=(r,e,t)=>QS(e,t)&&r>=t.left&&r<=t.right;function iF(r,e,t,n){let i=wo.find(r.docView,e);if(!i)return 1;let s=e-i.posAtStart;if(s==0)return 1;if(s==i.length)return-1;let a=i.coordsAt(s,-1);if(a&&ax(t,n,a))return-1;let l=i.coordsAt(s,1);return l&&ax(t,n,l)?1:a&&QS(n,a)?-1:1}function ux(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:iF(r,t,e.clientX,e.clientY)}}const sF=oi.ie&&oi.ie_version<=11;let lx=null,cx=0,hx=0;function jS(r){if(!sF)return r.detail;let e=lx,t=hx;return lx=r,hx=Date.now(),cx=!e||t>Date.now()-400&&Math.abs(e.clientX-r.clientX)<2&&Math.abs(e.clientY-r.clientY)<2?(cx+1)%3:1}function oF(r,e){let t=ux(r,e),n=jS(e),i=r.state.selection;return{update(s){s.docChanged&&(t.pos=s.changes.mapPos(t.pos),i=i.map(s.changes))},get(s,a,l){let p=ux(r,s),m,g=ox(r,p.pos,p.bias,n);if(t.pos!=p.pos&&!a){let b=ox(r,t.pos,t.bias,n),S=Math.min(b.from,g.from),$=Math.max(b.to,g.to);g=S<g.from?Pr.range(S,$):Pr.range($,S)}return a?i.replaceRange(i.main.extend(g.from,g.to)):l&&n==1&&i.ranges.length>1&&(m=aF(i,p.pos))?m:l?i.addRange(g):Pr.create([g])}}}function aF(r,e){for(let t=0;t<r.ranges.length;t++){let{from:n,to:i}=r.ranges[t];if(n<=e&&i>=e)return Pr.create(r.ranges.slice(0,t).concat(r.ranges.slice(t+1)),r.mainIndex==t?0:r.mainIndex-(r.mainIndex>t?1:0))}return null}vl.dragstart=(r,e)=>{let{selection:{main:t}}=r.state,{mouseSelection:n}=r.inputState;return n&&(n.dragging=t),e.dataTransfer&&(e.dataTransfer.setData("Text",r.state.sliceDoc(t.from,t.to)),e.dataTransfer.effectAllowed="copyMove"),!1};function px(r,e,t,n){if(!t)return;let i=r.posAtCoords({x:e.clientX,y:e.clientY},!1),{mouseSelection:s}=r.inputState,a=n&&s&&s.dragging&&eF(r,e)?{from:s.dragging.from,to:s.dragging.to}:null,l={from:i,insert:t},p=r.state.changes(a?[a,l]:l);r.focus(),r.dispatch({changes:p,selection:{anchor:p.mapPos(i,-1),head:p.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"})}vl.drop=(r,e)=>{if(!e.dataTransfer)return!1;if(r.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let n=Array(t.length),i=0,s=()=>{++i==t.length&&px(r,e,n.filter(a=>a!=null).join(r.state.lineBreak),!1)};for(let a=0;a<t.length;a++){let l=new FileReader;l.onerror=s,l.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(n[a]=l.result),s()},l.readAsText(t[a])}return!0}else{let n=e.dataTransfer.getData("Text");if(n)return px(r,e,n,!0),!0}return!1};vl.paste=(r,e)=>{if(r.state.readOnly)return!0;r.observer.flush();let t=MS?null:e.clipboardData;return t?(RS(r,t.getData("text/plain")||t.getData("text/uri-text")),!0):(nF(r),!1)};function uF(r,e){let t=r.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout(()=>{n.remove(),r.focus()},50)}function lF(r){let e=[],t=[],n=!1;for(let i of r.selection.ranges)i.empty||(e.push(r.sliceDoc(i.from,i.to)),t.push(i));if(!e.length){let i=-1;for(let{from:s}of r.selection.ranges){let a=r.doc.lineAt(s);a.number>i&&(e.push(a.text),t.push({from:a.from,to:Math.min(r.doc.length,a.to+1)})),i=a.number}n=!0}return{text:e.join(r.lineBreak),ranges:t,linewise:n}}let Wy=null;vl.copy=vl.cut=(r,e)=>{let{text:t,ranges:n,linewise:i}=lF(r.state);if(!t&&!i)return!1;Wy=i?t:null,e.type=="cut"&&!r.state.readOnly&&r.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let s=MS?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",t),!0):(uF(r,t),!1)};const LS=uc.define();function XS(r,e){let t=[];for(let n of r.facet(xS)){let i=n(r,e);i&&t.push(i)}return t?r.update({effects:t,annotations:LS.of(!0)}):null}function VS(r){setTimeout(()=>{let e=r.hasFocus;if(e!=r.inputState.notifiedFocused){let t=XS(r.state,e);t?r.dispatch(t):r.update([])}},10)}Tu.focus=r=>{r.inputState.lastFocusTime=Date.now(),!r.scrollDOM.scrollTop&&(r.inputState.lastScrollTop||r.inputState.lastScrollLeft)&&(r.scrollDOM.scrollTop=r.inputState.lastScrollTop,r.scrollDOM.scrollLeft=r.inputState.lastScrollLeft),VS(r)};Tu.blur=r=>{r.observer.clearSelectionRange(),VS(r)};Tu.compositionstart=Tu.compositionupdate=r=>{r.inputState.compositionFirstChange==null&&(r.inputState.compositionFirstChange=!0),r.inputState.composing<0&&(r.inputState.composing=0)};Tu.compositionend=r=>{r.inputState.composing=-1,r.inputState.compositionEndedAt=Date.now(),r.inputState.compositionPendingKey=!0,r.inputState.compositionPendingChange=r.observer.pendingRecords().length>0,r.inputState.compositionFirstChange=null,oi.chrome&&oi.android?r.observer.flushSoon():r.inputState.compositionPendingChange?Promise.resolve().then(()=>r.observer.flush()):setTimeout(()=>{r.inputState.composing<0&&r.docView.hasComposition&&r.update([])},50)};Tu.contextmenu=r=>{r.inputState.lastContextMenu=Date.now()};vl.beforeinput=(r,e)=>{var t;let n;if(oi.chrome&&oi.android&&(n=NS.find(i=>i.inputType==e.inputType))&&(r.observer.delayAndroidKey(n.key,n.keyCode),n.key=="Backspace"||n.key=="Delete")){let i=((t=window.visualViewport)===null||t===void 0?void 0:t.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>i+10&&r.hasFocus&&(r.contentDOM.blur(),r.focus())},100)}return!1};const fx=new Set;function cF(r){fx.has(r)||(fx.add(r),r.addEventListener("copy",()=>{}),r.addEventListener("cut",()=>{}))}const dx=["pre-wrap","normal","pre-line","break-spaces"];class hF{constructor(e){this.lineWrapping=e,this.doc=Ds.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return dx.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let i=e[n];i<0?n++:this.heightSamples[Math.floor(i*10)]||(t=!0,this.heightSamples[Math.floor(i*10)]=!0)}return t}refresh(e,t,n,i,s,a){let l=dx.indexOf(e)>-1,p=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=n,this.textHeight=i,this.lineLength=s,p){this.heightSamples={};for(let m=0;m<a.length;m++){let g=a[m];g<0?m++:this.heightSamples[Math.floor(g*10)]=!0}}return p}}class pF{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class cl{constructor(e,t,n,i,s){this.from=e,this.length=t,this.top=n,this.height=i,this._content=s}get type(){return typeof this._content=="number"?da.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof nh?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new cl(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var qs=function(r){return r[r.ByPos=0]="ByPos",r[r.ByHeight=1]="ByHeight",r[r.ByPosNoHeight=2]="ByPosNoHeight",r}(qs||(qs={}));const Cm=.001;class ma{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>Cm&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return ma.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,i){let s=this,a=n.doc;for(let l=i.length-1;l>=0;l--){let{fromA:p,toA:m,fromB:g,toB:b}=i[l],S=s.lineAt(p,qs.ByPosNoHeight,n.setDoc(t),0,0),$=S.to>=m?S:s.lineAt(m,qs.ByPosNoHeight,n,0,0);for(b+=$.to-m,m=$.to;l>0&&S.from<=i[l-1].toA;)p=i[l-1].fromA,g=i[l-1].fromB,l--,p<S.from&&(S=s.lineAt(p,qs.ByPosNoHeight,n,0,0));g+=S.from-p,p=S.from;let G=iO.build(n.setDoc(a),e,g,b);s=s.replace(p,m,G)}return s.updateHeight(n,0)}static empty(){return new Ua(0,0)}static of(e){if(e.length==1)return e[0];let t=0,n=e.length,i=0,s=0;for(;;)if(t==n)if(i>s*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),n+=1+l.break,i-=l.size}else if(s>i*2){let l=e[n];l.break?e.splice(n,1,l.left,null,l.right):e.splice(n,1,l.left,l.right),n+=2+l.break,s-=l.size}else break;else if(i<s){let l=e[t++];l&&(i+=l.size)}else{let l=e[--n];l&&(s+=l.size)}let a=0;return e[t-1]==null?(a=1,t--):e[t]==null&&(a=1,n++),new fF(ma.of(e.slice(0,t)),a,ma.of(e.slice(n)))}}ma.prototype.size=1;class US extends ma{constructor(e,t,n){super(e,t),this.deco=n}blockAt(e,t,n,i){return new cl(i,this.length,n,this.height,this.deco||0)}lineAt(e,t,n,i,s){return this.blockAt(0,n,i,s)}forEachLine(e,t,n,i,s,a){e<=s+this.length&&t>=s&&a(this.blockAt(0,n,i,s))}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more&&this.setHeight(e,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Ua extends US{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,i){return new cl(i,this.length,n,this.height,this.breaks)}replace(e,t,n){let i=n[0];return n.length==1&&(i instanceof Ua||i instanceof Xo&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Xo?i=new Ua(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):ma.of(n)}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more?this.setHeight(e,i.heights[i.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Xo extends ma{constructor(e){super(e,0)}heightMetrics(e,t){let n=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,s=i-n+1,a,l=0;if(e.lineWrapping){let p=Math.min(this.height,e.lineHeight*s);a=p/s,this.length>s+1&&(l=(this.height-p)/(this.length-s-1))}else a=this.height/s;return{firstLine:n,lastLine:i,perLine:a,perChar:l}}blockAt(e,t,n,i){let{firstLine:s,lastLine:a,perLine:l,perChar:p}=this.heightMetrics(t,i);if(t.lineWrapping){let m=i+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),g=t.doc.lineAt(m),b=l+g.length*p,S=Math.max(n,e-b/2);return new cl(g.from,g.length,S,b,0)}else{let m=Math.max(0,Math.min(a-s,Math.floor((e-n)/l))),{from:g,length:b}=t.doc.line(s+m);return new cl(g,b,n+l*m,l,0)}}lineAt(e,t,n,i,s){if(t==qs.ByHeight)return this.blockAt(e,n,i,s);if(t==qs.ByPosNoHeight){let{from:$,to:G}=n.doc.lineAt(e);return new cl($,G-$,0,0,0)}let{firstLine:a,perLine:l,perChar:p}=this.heightMetrics(n,s),m=n.doc.lineAt(e),g=l+m.length*p,b=m.number-a,S=i+l*b+p*(m.from-s-b);return new cl(m.from,m.length,Math.max(i,Math.min(S,i+this.height-g)),g,0)}forEachLine(e,t,n,i,s,a){e=Math.max(e,s),t=Math.min(t,s+this.length);let{firstLine:l,perLine:p,perChar:m}=this.heightMetrics(n,s);for(let g=e,b=i;g<=t;){let S=n.doc.lineAt(g);if(g==e){let G=S.number-l;b+=p*G+m*(e-s-G)}let $=p+m*S.length;a(new cl(S.from,S.length,b,$,0)),b+=$,g=S.to+1}}replace(e,t,n){let i=this.length-t;if(i>0){let s=n[n.length-1];s instanceof Xo?n[n.length-1]=new Xo(s.length+i):n.push(null,new Xo(i-1))}if(e>0){let s=n[0];s instanceof Xo?n[0]=new Xo(e+s.length):n.unshift(new Xo(e-1),null)}return ma.of(n)}decomposeLeft(e,t){t.push(new Xo(e-1),null)}decomposeRight(e,t){t.push(null,new Xo(this.length-e-1))}updateHeight(e,t=0,n=!1,i){let s=t+this.length;if(i&&i.from<=t+this.length&&i.more){let a=[],l=Math.max(t,i.from),p=-1;for(i.from>t&&a.push(new Xo(i.from-t-1).updateHeight(e,t));l<=s&&i.more;){let g=e.doc.lineAt(l).length;a.length&&a.push(null);let b=i.heights[i.index++];p==-1?p=b:Math.abs(b-p)>=Cm&&(p=-2);let S=new Ua(g,b);S.outdated=!1,a.push(S),l+=g+1}l<=s&&a.push(null,new Xo(s-l).updateHeight(e,l));let m=ma.of(a);return(p<0||Math.abs(m.height-this.height)>=Cm||Math.abs(p-this.heightMetrics(e,t).perLine)>=Cm)&&(e.heightChanged=!0),m}else(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class fF extends ma{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return this.flags&1}blockAt(e,t,n,i){let s=n+this.left.height;return e<s?this.left.blockAt(e,t,n,i):this.right.blockAt(e,t,s,i+this.left.length+this.break)}lineAt(e,t,n,i,s){let a=i+this.left.height,l=s+this.left.length+this.break,p=t==qs.ByHeight?e<a:e<l,m=p?this.left.lineAt(e,t,n,i,s):this.right.lineAt(e,t,n,a,l);if(this.break||(p?m.to<l:m.from>l))return m;let g=t==qs.ByPosNoHeight?qs.ByPosNoHeight:qs.ByPos;return p?m.join(this.right.lineAt(l,g,n,a,l)):this.left.lineAt(l,g,n,i,s).join(m)}forEachLine(e,t,n,i,s,a){let l=i+this.left.height,p=s+this.left.length+this.break;if(this.break)e<p&&this.left.forEachLine(e,t,n,i,s,a),t>=p&&this.right.forEachLine(e,t,n,l,p,a);else{let m=this.lineAt(p,qs.ByPos,n,i,s);e<m.from&&this.left.forEachLine(e,m.from-1,n,i,s,a),m.to>=e&&m.from<=t&&a(m),t>m.to&&this.right.forEachLine(m.to+1,t,n,l,p,a)}}replace(e,t,n){let i=this.left.length+this.break;if(t<i)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-i,t-i,n));let s=[];e>0&&this.decomposeLeft(e,s);let a=s.length;for(let l of n)s.push(l);if(e>0&&mx(s,a-1),t<this.length){let l=s.length;this.decomposeRight(t,s),mx(s,l)}return ma.of(s)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,i=n+this.break;if(e>=i)return this.right.decomposeRight(e-i,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<i&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?ma.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,i){let{left:s,right:a}=this,l=t+s.length+this.break,p=null;return i&&i.from<=t+s.length&&i.more?p=s=s.updateHeight(e,t,n,i):s.updateHeight(e,t,n),i&&i.from<=l+a.length&&i.more?p=a=a.updateHeight(e,l,n,i):a.updateHeight(e,l,n),p?this.balanced(s,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function mx(r,e){let t,n;r[e]==null&&(t=r[e-1])instanceof Xo&&(n=r[e+1])instanceof Xo&&r.splice(e-1,3,new Xo(t.length+1+n.length))}const dF=5;class iO{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let n=Math.min(t,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof Ua?i.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new Ua(n-this.pos,-1)),this.writtenTo=n,t>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let i=n.widget?n.widget.estimatedHeight:0,s=n.widget?n.widget.lineBreaks:0;i<0&&(i=this.oracle.lineHeight);let a=t-e;n.block?this.addBlock(new US(a,i,n)):(a||s||i>=dF)&&this.addLineDeco(i,s,a)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Ua(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new Xo(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Ua)return e;let t=new Ua(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let i=this.ensureLine();i.length+=n,i.collapsed+=n,i.widgetHeight=Math.max(i.widgetHeight,e),i.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Ua)&&!this.isCovered?this.nodes.push(new Ua(0,-1)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let n=e;for(let i of this.nodes)i instanceof Ua&&i.updateHeight(this.oracle,n),n+=i?i.length:1;return this.nodes}static build(e,t,n,i){let s=new iO(n,e);return Ss.spans(t,n,i,s,0),s.finish(n)}}function mF(r,e,t){let n=new gF;return Ss.compare(r,e,t,n,0),n.changes}class gF{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,i){(e<t||n&&n.heightRelevant||i&&i.heightRelevant)&&jy(e,t,this.changes,5)}}function yF(r,e){let t=r.getBoundingClientRect(),n=r.ownerDocument,i=n.defaultView||window,s=Math.max(0,t.left),a=Math.min(i.innerWidth,t.right),l=Math.max(0,t.top),p=Math.min(i.innerHeight,t.bottom);for(let m=r.parentNode;m&&m!=n.body;)if(m.nodeType==1){let g=m,b=window.getComputedStyle(g);if((g.scrollHeight>g.clientHeight||g.scrollWidth>g.clientWidth)&&b.overflow!="visible"){let S=g.getBoundingClientRect();s=Math.max(s,S.left),a=Math.min(a,S.right),l=Math.max(l,S.top),p=m==r.parentNode?S.bottom:Math.min(p,S.bottom)}m=b.position=="absolute"||b.position=="fixed"?g.offsetParent:g.parentNode}else if(m.nodeType==11)m=m.host;else break;return{left:s-t.left,right:Math.max(s,a)-t.left,top:l-(t.top+e),bottom:Math.max(l,p)-(t.top+e)}}function DF(r,e){let t=r.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class F0{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let i=e[n],s=t[n];if(i.from!=s.from||i.to!=s.to||i.size!=s.size)return!1}return!0}draw(e,t){return _i.replace({widget:new OF(this.size*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class OF extends oh{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class gx{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=yx,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=no.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(rO).some(n=>typeof n!="function"&&n.class=="cm-lineWrapping");this.heightOracle=new hF(t),this.stateDeco=e.facet(ed).filter(n=>typeof n!="function"),this.heightMap=ma.empty().applyChanges(this.stateDeco,Ds.empty,this.heightOracle.setDoc(e.doc),[new tu(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=_i.set(this.lineGaps.map(n=>n.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let i=n?t.head:t.anchor;if(!e.some(({from:s,to:a})=>i>=s&&i<=a)){let{from:s,to:a}=this.lineBlockAt(i);e.push(new Yd(s,a))}}this.viewports=e.sort((n,i)=>n.from-i.from),this.scaler=this.heightMap.height<=7e6?yx:new vF(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:Af(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(ed).filter(g=>typeof g!="function");let i=e.changedRanges,s=tu.extendWithRanges(i,mF(n,this.stateDeco,e?e.changes:Ao.empty(this.state.doc.length))),a=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=a&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let p=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<p.from||t.range.head>p.to)||!this.viewportIsAppropriate(p))&&(p=this.getViewport(0,t));let m=!e.changes.empty||e.flags&2||p.from!=this.viewport.from||p.to!=this.viewport.to;this.viewport=p,this.updateForViewport(),m&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(vS)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,s=n.whiteSpace;this.defaultTextDirection=n.direction=="rtl"?no.RTL:no.LTR;let a=this.heightOracle.mustRefreshForWrapping(s),l=t.getBoundingClientRect(),p=a||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let m=0,g=0;if(l.width&&l.height){let ht=l.width/t.offsetWidth,bt=l.height/t.offsetHeight;ht>.995&&ht<1.005&&(ht=1),bt>.995&&bt<1.005&&(bt=1),(this.scaleX!=ht||this.scaleY!=bt)&&(this.scaleX=ht,this.scaleY=bt,m|=8,a=p=!0)}let b=(parseInt(n.paddingTop)||0)*this.scaleY,S=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=b||this.paddingBottom!=S)&&(this.paddingTop=b,this.paddingBottom=S,m|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(p=!0),this.editorWidth=e.scrollDOM.clientWidth,m|=8);let $=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=$&&(this.scrollAnchorHeight=-1,this.scrollTop=$),this.scrolledToBottom=sS(e.scrollDOM);let G=(this.printing?DF:yF)(t,this.paddingTop),be=G.top-this.pixelViewport.top,ke=G.bottom-this.pixelViewport.bottom;this.pixelViewport=G;let me=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(me!=this.inView&&(this.inView=me,me&&(p=!0)),!this.inView&&!this.scrollTarget)return 0;let Ve=l.width;if((this.contentDOMWidth!=Ve||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,m|=8),p){let ht=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(ht)&&(a=!0),a||i.lineWrapping&&Math.abs(Ve-this.contentDOMWidth)>i.charWidth){let{lineHeight:bt,charWidth:Yt,textHeight:ir}=e.docView.measureTextSize();a=bt>0&&i.refresh(s,bt,Yt,ir,Ve/Yt,ht),a&&(e.docView.minWidth=0,m|=8)}be>0&&ke>0?g=Math.max(be,ke):be<0&&ke<0&&(g=Math.min(be,ke)),i.heightChanged=!1;for(let bt of this.viewports){let Yt=bt.from==this.viewport.from?ht:e.docView.measureVisibleLineHeights(bt);this.heightMap=(a?ma.empty().applyChanges(this.stateDeco,Ds.empty,this.heightOracle,[new tu(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,a,new pF(bt.from,Yt))}i.heightChanged&&(m|=2)}let Dt=!this.viewportIsAppropriate(this.viewport,g)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return Dt&&(this.viewport=this.getViewport(g,this.scrollTarget)),this.updateForViewport(),(m&2||Dt)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),m|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),m}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,s=this.heightOracle,{visibleTop:a,visibleBottom:l}=this,p=new Yd(i.lineAt(a-n*1e3,qs.ByHeight,s,0,0).from,i.lineAt(l+(1-n)*1e3,qs.ByHeight,s,0,0).to);if(t){let{head:m}=t.range;if(m<p.from||m>p.to){let g=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),b=i.lineAt(m,qs.ByPos,s,0,0),S;t.y=="center"?S=(b.top+b.bottom)/2-g/2:t.y=="start"||t.y=="nearest"&&m<p.from?S=b.top:S=b.bottom-g,p=new Yd(i.lineAt(S-1e3/2,qs.ByHeight,s,0,0).from,i.lineAt(S+g+1e3/2,qs.ByHeight,s,0,0).to)}}return p}mapViewport(e,t){let n=t.mapPos(e.from,-1),i=t.mapPos(e.to,1);return new Yd(this.heightMap.lineAt(n,qs.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,qs.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(e,qs.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(t,qs.ByPos,this.heightOracle,0,0),{visibleTop:a,visibleBottom:l}=this;return(e==0||i<=a-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||s>=l+Math.max(10,Math.min(n,250)))&&i>a-2*1e3&&s<l+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let i of e)t.touchesRange(i.from,i.to)||n.push(new F0(t.mapPos(i.from),t.mapPos(i.to),i.size));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,i=n?1e4:2e3,s=i>>1,a=i<<1;if(this.defaultTextDirection!=no.LTR&&!n)return[];let l=[],p=(m,g,b,S)=>{if(g-m<s)return;let $=this.state.selection.main,G=[$.from];$.empty||G.push($.to);for(let ke of G)if(ke>m&&ke<g){p(m,ke-10,b,S),p(ke+10,g,b,S);return}let be=bF(e,ke=>ke.from>=b.from&&ke.to<=b.to&&Math.abs(ke.from-m)<s&&Math.abs(ke.to-g)<s&&!G.some(me=>ke.from<me&&ke.to>me));if(!be){if(g<b.to&&t&&n&&t.visibleRanges.some(ke=>ke.from<=g&&ke.to>=g)){let ke=t.moveToLineBoundary(Pr.cursor(g),!1,!0).head;ke>m&&(g=ke)}be=new F0(m,g,this.gapSize(b,m,g,S))}l.push(be)};for(let m of this.viewportLines){if(m.length<a)continue;let g=xF(m.from,m.to,this.stateDeco);if(g.total<a)continue;let b=this.scrollTarget?this.scrollTarget.range.head:null,S,$;if(n){let G=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,be,ke;if(b!=null){let me=Hd(g,b),Ve=((this.visibleBottom-this.visibleTop)/2+G)/m.height;be=me-Ve,ke=me+Ve}else be=(this.visibleTop-m.top-G)/m.height,ke=(this.visibleBottom-m.top+G)/m.height;S=Gd(g,be),$=Gd(g,ke)}else{let G=g.total*this.heightOracle.charWidth,be=i*this.heightOracle.charWidth,ke,me;if(b!=null){let Ve=Hd(g,b),Dt=((this.pixelViewport.right-this.pixelViewport.left)/2+be)/G;ke=Ve-Dt,me=Ve+Dt}else ke=(this.pixelViewport.left-be)/G,me=(this.pixelViewport.right+be)/G;S=Gd(g,ke),$=Gd(g,me)}S>m.from&&p(m.from,S,m,g),$<m.to&&p($,m.to,m,g)}return l}gapSize(e,t,n,i){let s=Hd(i,n)-Hd(i,t);return this.heightOracle.lineWrapping?e.height*s:i.total*this.heightOracle.charWidth*s}updateLineGaps(e){F0.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=_i.set(e.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];Ss.spans(e,this.viewport.from,this.viewport.to,{span(i,s){t.push({from:i,to:s})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some((i,s)=>i.from!=t[s].from||i.to!=t[s].to);return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||Af(this.heightMap.lineAt(e,qs.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return Af(this.heightMap.lineAt(this.scaler.fromDOM(e),qs.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Af(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Yd{constructor(e,t){this.from=e,this.to=t}}function xF(r,e,t){let n=[],i=r,s=0;return Ss.spans(t,r,e,{span(){},point(a,l){a>i&&(n.push({from:i,to:a}),s+=a-i),i=l}},20),i<e&&(n.push({from:i,to:e}),s+=e-i),{total:s,ranges:n}}function Gd({total:r,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let n=Math.floor(r*t);for(let i=0;;i++){let{from:s,to:a}=e[i],l=a-s;if(n<=l)return s+n;n-=l}}function Hd(r,e){let t=0;for(let{from:n,to:i}of r.ranges){if(e<=i){t+=e-n;break}t+=i-n}return t/r.total}function bF(r,e){for(let t of r)if(e(t))return t}const yx={toDOM(r){return r},fromDOM(r){return r},scale:1};class vF{constructor(e,t,n){let i=0,s=0,a=0;this.viewports=n.map(({from:l,to:p})=>{let m=t.lineAt(l,qs.ByPos,e,0,0).top,g=t.lineAt(p,qs.ByPos,e,0,0).bottom;return i+=g-m,{from:l,to:p,top:m,bottom:g,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(t.height-i);for(let l of this.viewports)l.domTop=a+(l.top-s)*this.scale,a=l.domBottom=l.domTop+(l.bottom-l.top),s=l.bottom}toDOM(e){for(let t=0,n=0,i=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.top)return i+(e-n)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);n=s.bottom,i=s.domBottom}}fromDOM(e){for(let t=0,n=0,i=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.domTop)return n+(e-i)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);n=s.bottom,i=s.domBottom}}}function Af(r,e){if(e.scale==1)return r;let t=e.toDOM(r.top),n=e.toDOM(r.bottom);return new cl(r.from,r.length,t,n-t,Array.isArray(r._content)?r._content.map(i=>Af(i,e)):r._content)}const Jd=qn.define({combine:r=>r.join(" ")}),Zy=qn.define({combine:r=>r.indexOf(!0)>-1}),Yy=eh.newName(),qS=eh.newName(),zS=eh.newName(),WS={"&light":"."+qS,"&dark":"."+zS};function Gy(r,e,t){return new eh(e,{finish(n){return/&/.test(n)?n.replace(/&\w*/,i=>{if(i=="&")return r;if(!t||!t[i])throw new RangeError(`Unsupported selector: ${i}`);return t[i]}):r+" "+n}})}const CF=Gy("."+Yy,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},WS),Tf="";class SF{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(gs.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Tf}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let i=e;;){this.findPointBefore(n,i);let s=this.text.length;this.readNode(i);let a=i.nextSibling;if(a==t)break;let l=Ws.get(i),p=Ws.get(a);(l&&p?l.breakAfter:(l?l.breakAfter:Dx(i))||Dx(a)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>s)&&this.lineBreak(),i=a}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,a=1,l;if(this.lineSeparator?(s=t.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(l=i.exec(t))&&(s=l.index,a=l[0].length),this.append(t.slice(n,s<0?t.length:s)),s<0)break;if(this.lineBreak(),a>1)for(let p of this.points)p.node==e&&p.pos>this.text.length&&(p.pos-=a-1);n=s+a}}readNode(e){if(e.cmIgnore)return;let t=Ws.get(e),n=t&&t.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let i=n.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(e.nodeType==3?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+Math.min(t,n.offset))}}function Dx(r){return r.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(r.nodeName)}class Ox{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class EF{constructor(e,t,n,i){this.typeOver=i,this.bounds=null,this.text="";let{impreciseHead:s,impreciseAnchor:a}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let l=s||a?[]:TF(e),p=new SF(l,e.state);p.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=p.text,this.newSel=PF(l,this.bounds.from)}else{let l=e.observer.selectionRange,p=s&&s.node==l.focusNode&&s.offset==l.focusOffset||!By(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),m=a&&a.node==l.anchorNode&&a.offset==l.anchorOffset||!By(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset);this.newSel=Pr.single(m,p)}}}function ZS(r,e){let t,{newSel:n}=e,i=r.state.selection.main,s=r.inputState.lastKeyTime>Date.now()-100?r.inputState.lastKeyCode:-1;if(e.bounds){let{from:a,to:l}=e.bounds,p=i.from,m=null;(s===8||oi.android&&e.text.length<l-a)&&(p=i.to,m="end");let g=AF(r.state.doc.sliceString(a,l,Tf),e.text,p-a,m);g&&(oi.chrome&&s==13&&g.toB==g.from+2&&e.text.slice(g.from,g.toB)==Tf+Tf&&g.toB--,t={from:a+g.from,to:a+g.toA,insert:Ds.of(e.text.slice(g.from,g.toB).split(Tf))})}else n&&(!r.hasFocus&&r.state.facet(Xg)||n.main.eq(i))&&(n=null);if(!t&&!n)return!1;if(!t&&e.typeOver&&!i.empty&&n&&n.main.empty?t={from:i.from,to:i.to,insert:r.state.doc.slice(i.from,i.to)}:t&&t.from>=i.from&&t.to<=i.to&&(t.from!=i.from||t.to!=i.to)&&i.to-i.from-(t.to-t.from)<=4?t={from:i.from,to:i.to,insert:r.state.doc.slice(i.from,t.from).append(t.insert).append(r.state.doc.slice(t.to,i.to))}:(oi.mac||oi.android)&&t&&t.from==t.to&&t.from==i.head-1&&/^\. ?$/.test(t.insert.toString())&&r.contentDOM.getAttribute("autocorrect")=="off"?(n&&t.insert.length==2&&(n=Pr.single(n.main.anchor-1,n.main.head-1)),t={from:i.from,to:i.to,insert:Ds.of([" "])}):oi.chrome&&t&&t.from==t.to&&t.from==i.head&&t.insert.toString()==`
|
|
9
9
|
`&&r.lineWrapping&&(n&&(n=Pr.single(n.main.anchor-1,n.main.head-1)),t={from:i.from,to:i.to,insert:Ds.of([" "])}),t){if(oi.ios&&r.inputState.flushIOSKey()||oi.android&&(t.from==i.from&&t.to==i.to&&t.insert.length==1&&t.insert.lines==2&&Qp(r.contentDOM,"Enter",13)||(t.from==i.from-1&&t.to==i.to&&t.insert.length==0||s==8&&t.insert.length<t.to-t.from&&t.to>i.head)&&Qp(r.contentDOM,"Backspace",8)||t.from==i.from&&t.to==i.to+1&&t.insert.length==0&&Qp(r.contentDOM,"Delete",46)))return!0;let a=t.insert.toString();r.inputState.composing>=0&&r.inputState.composing++;let l,p=()=>l||(l=wF(r,t,n));return r.state.facet(OS).some(m=>m(r,t.from,t.to,a,p))||r.dispatch(p()),!0}else if(n&&!n.main.eq(i)){let a=!1,l="select";return r.inputState.lastSelectionTime>Date.now()-50&&(r.inputState.lastSelectionOrigin=="select"&&(a=!0),l=r.inputState.lastSelectionOrigin),r.dispatch({selection:n,scrollIntoView:a,userEvent:l}),!0}else return!1}function wF(r,e,t){let n,i=r.state,s=i.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&r.inputState.composing<0){let l=s.from<e.from?i.sliceDoc(s.from,e.from):"",p=s.to>e.to?i.sliceDoc(e.to,s.to):"";n=i.replaceSelection(r.state.toText(l+e.insert.sliceString(0,void 0,r.state.lineBreak)+p))}else{let l=i.changes(e),p=t&&t.main.to<=l.newLength?t.main:void 0;if(i.selection.ranges.length>1&&r.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let m=r.state.sliceDoc(e.from,e.to),g,b=t&&_S(r,t.main.head);if(b){let G=e.insert.length-(e.to-e.from);g={from:b.from,to:b.to-G}}else g=r.state.doc.lineAt(s.head);let S=s.to-e.to,$=s.to-s.from;n=i.changeByRange(G=>{if(G.from==s.from&&G.to==s.to)return{changes:l,range:p||G.map(l)};let be=G.to-S,ke=be-m.length;if(G.to-G.from!=$||r.state.sliceDoc(ke,be)!=m||G.to>=g.from&&G.from<=g.to)return{range:G};let me=i.changes({from:ke,to:be,insert:e.insert}),Ve=G.to-s.to;return{changes:me,range:p?Pr.range(Math.max(0,p.anchor+Ve),Math.max(0,p.head+Ve)):G.map(me)}})}else n={changes:l,selection:p&&i.selection.replaceRange(p)}}let a="input.type";return(r.composing||r.inputState.compositionPendingChange&&r.inputState.compositionEndedAt>Date.now()-50)&&(r.inputState.compositionPendingChange=!1,a+=".compose",r.inputState.compositionFirstChange&&(a+=".start",r.inputState.compositionFirstChange=!1)),i.update(n,{userEvent:a,scrollIntoView:!0})}function AF(r,e,t,n){let i=Math.min(r.length,e.length),s=0;for(;s<i&&r.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==i&&r.length==e.length)return null;let a=r.length,l=e.length;for(;a>0&&l>0&&r.charCodeAt(a-1)==e.charCodeAt(l-1);)a--,l--;if(n=="end"){let p=Math.max(0,s-Math.min(a,l));t-=a+p-s}if(a<s&&r.length<e.length){let p=t<=s&&t>=a?s-t:0;s-=p,l=s+(l-a),a=s}else if(l<s){let p=t<=s&&t>=l?s-t:0;s-=p,a=s+(a-l),l=s}return{from:s,toA:a,toB:l}}function TF(r){let e=[];if(r.root.activeElement!=r.contentDOM)return e;let{anchorNode:t,anchorOffset:n,focusNode:i,focusOffset:s}=r.observer.selectionRange;return t&&(e.push(new Ox(t,n)),(i!=t||s!=n)&&e.push(new Ox(i,s))),e}function PF(r,e){if(r.length==0)return null;let t=r[0].pos,n=r.length==2?r[1].pos:t;return t>-1&&n>-1?Pr.single(t+e,n+e):null}const kF={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},_0=oi.ie&&oi.ie_version<=11;class FF{constructor(e){this.view=e,this.active=!1,this.selectionRange=new mk,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let n of t)this.queue.push(n);(oi.ie&&oi.ie_version<=11||oi.ios&&e.composing)&&t.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),_0&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM),this.resizeContent=new ResizeObserver(()=>this.view.requestMeasure()),this.resizeContent.observe(e.contentDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,i=this.selectionRange;if(n.state.facet(Xg)?n.root.activeElement!=this.dom:!bm(n.dom,i))return;let s=i.anchorNode&&n.docView.nearest(i.anchorNode);if(s&&s.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(oi.ie&&oi.ie_version<=11||oi.android&&oi.chrome)&&!n.state.selection.main.empty&&i.focusNode&&qm(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=oi.safari&&e.root.nodeType==11&&hk(this.dom.ownerDocument)==this.dom&&_F(this.view)||Um(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=bm(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&yk(this.dom,t)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(t),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(n.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);for(let n of this.scrollTargets=t)n.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,kF),_0&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),_0&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let i=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&Qp(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(!((n=this.delayedAndroidKey)===null||n===void 0)&&n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,i=!1;for(let s of e){let a=this.readMutation(s);a&&(a.typeOver&&(i=!0),t==-1?{from:t,to:n}=a:(t=Math.min(a.from,t),n=Math.max(a.to,n)))}return{from:t,to:n,typeOver:i}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),i=this.selectionChanged&&bm(this.dom,this.selectionRange);if(e<0&&!i)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new EF(this.view,e,t,n);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return!1;let n=this.view.state,i=ZS(this.view,t);return this.view.state==n&&this.view.update([]),i}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let n=xx(t,e.previousSibling||e.target.previousSibling,-1),i=xx(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:i?t.posBefore(i):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(n=this.resizeScroll)===null||n===void 0||n.disconnect(),(i=this.resizeContent)===null||i===void 0||i.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function xx(r,e,t){for(;e;){let n=Ws.get(e);if(n&&n.parent==r)return n;let i=e.parentNode;e=i!=r.dom?i:t>0?e.nextSibling:e.previousSibling}return null}function _F(r){let e=null;function t(p){p.preventDefault(),p.stopImmediatePropagation(),e=p.getTargetRanges()[0]}if(r.contentDOM.addEventListener("beforeinput",t,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",t,!0),!e)return null;let n=e.startContainer,i=e.startOffset,s=e.endContainer,a=e.endOffset,l=r.docView.domAtPos(r.state.selection.main.anchor);return qm(l.node,l.offset,s,a)&&([n,i,s,a]=[s,a,n,i]),{anchorNode:n,anchorOffset:i,focusNode:s,focusOffset:a}}class Qn{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(n=>n.forEach(i=>t(i,this)))||(n=>this.update(n)),this.dispatch=this.dispatch.bind(this),this._root=e.root||gk(e.parent)||document,this.viewState=new gx(e.state||gs.create(e)),this.plugins=this.state.facet(Ef).map(n=>new T0(n));for(let n of this.plugins)n.update(this);this.observer=new FF(this),this.inputState=new Zk(this),this.inputState.ensureHandlers(this.plugins),this.docView=new J1(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let t=e.length==1&&e[0]instanceof To?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,n=!1,i,s=this.state;for(let S of e){if(S.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=S.state}if(this.destroyed){this.viewState.state=s;return}let a=this.hasFocus,l=0,p=null;e.some(S=>S.annotation(LS))?(this.inputState.notifiedFocused=a,l=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,p=XS(s,a),p||(l=1));let m=this.observer.delayedAndroidKey,g=null;if(m?(this.observer.clearDelayedAndroidKey(),g=this.observer.readChange(),(g&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(g=null)):this.observer.clear(),s.facet(gs.phrases)!=this.state.facet(gs.phrases))return this.setState(s);i=Zm.create(this,s,e),i.flags|=l;let b=this.viewState.scrollTarget;try{this.updateState=2;for(let S of e){if(b&&(b=b.map(S.changes)),S.scrollIntoView){let{main:$}=S.state.selection;b=new Wm($.empty?$:Pr.cursor($.head,$.head>$.anchor?-1:1))}for(let $ of S.effects)$.is(G1)&&(b=$.value)}this.viewState.update(i,b),this.bidiCache=Ym.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),t=this.docView.update(i),this.state.facet(wf)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(S=>S.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(Jd)!=i.state.facet(Jd)&&(this.viewState.mustMeasureContent=!0),(t||n||b||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let S of this.state.facet(Ly))S(i);(p||g)&&Promise.resolve().then(()=>{p&&this.state==p.startState&&this.dispatch(p),g&&!ZS(this,g)&&m.force&&Qp(this.contentDOM,m.key,m.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let n of this.plugins)n.destroy(this);this.viewState=new gx(e),this.plugins=e.facet(Ef).map(n=>new T0(n)),this.pluginMap.clear();for(let n of this.plugins)n.update(this);this.docView=new J1(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Ef),n=e.state.facet(Ef);if(t!=n){let i=[];for(let s of n){let a=t.indexOf(s);if(a<0)i.push(new T0(s));else{let l=this.plugins[a];l.mustUpdate=e,i.push(l)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=i,this.pluginMap.clear(),this.inputState.ensureHandlers(this.plugins)}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i<this.plugins.length;i++)this.plugins[i].update(this)}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,i=n.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:a}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(a<0)if(sS(n))s=-1,a=this.viewState.heightMap.height;else{let $=this.viewState.scrollAnchorAt(i);s=$.from,a=$.top}this.updateState=1;let p=this.viewState.measure(this);if(!p&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let m=[];p&4||([this.measureRequests,m]=[m,this.measureRequests]);let g=m.map($=>{try{return $.read(this)}catch(G){return wu(this.state,G),bx}}),b=Zm.create(this,this.state,[]),S=!1;b.flags|=p,t?t.flags|=p:t=b,this.updateState=2,b.empty||(this.updatePlugins(b),this.inputState.update(b),this.updateAttrs(),S=this.docView.update(b));for(let $=0;$<m.length;$++)if(g[$]!=bx)try{let G=m[$];G.write&&G.write(g[$],this)}catch(G){wu(this.state,G)}if(S&&this.docView.updateSelection(!0),!b.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null;continue}else{let G=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-a;if(G>1||G<-1){i=i+G,n.scrollTop=i/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(Ly))l(t)}get themeClasses(){return Yy+" "+(this.state.facet(Zy)?zS:qS)+" "+this.state.facet(Jd)}updateAttrs(){let e=vx(this,CS,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Xg)?"true":"false",class:"cm-content",style:`${oi.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),vx(this,rO,t);let n=this.observer.ignore(()=>{let i=Qy(this.contentDOM,this.contentAttrs,t),s=Qy(this.dom,this.editorAttrs,e);return i||s});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let i of n.effects)if(i.is(Qn.announce)){t&&(this.announceDOM.textContent=""),t=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(wf);let e=this.state.facet(Qn.cspNonce);eh.mount(this.root,this.styleModules.concat(CF).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find(n=>n.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return k0(this,e,ix(this,e,t,n))}moveByGroup(e,t){return k0(this,e,ix(this,e,t,n=>zk(this,e.head,n)))}moveToLineBoundary(e,t,n=!0){return qk(this,e,t,n)}moveVertically(e,t,n){return k0(this,e,Wk(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),BS(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let i=this.state.doc.lineAt(e),s=this.bidiSpans(i),a=s[Uc.find(s,e-i.from,-1,t)];return KD(n,a.dir==no.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(bS)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>$F)return kS(e.length);let t=this.textDirectionAt(e.from),n;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==t&&(s.fresh||PS(s.isolates,n=H1(this,e.from,e.to))))return s.order;n||(n=H1(this,e.from,e.to));let i=Fk(e.text,t,n);return this.bidiCache.push(new Ym(e.from,e.to,t,n,!0,i)),i}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||oi.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{nS(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return G1.of(new Wm(typeof e=="number"?Pr.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return bo.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return bo.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=eh.newName(),i=[Jd.of(n),wf.of(Gy(`.${n}`,e))];return t&&t.dark&&i.push(Zy.of(!0)),i}static baseTheme(e){return Jh.lowest(wf.of(Gy("."+Yy,e,WS)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),i=n&&Ws.get(n)||Ws.get(e);return((t=i==null?void 0:i.rootView)===null||t===void 0?void 0:t.view)||null}}Qn.styleModule=wf;Qn.inputHandler=OS;Qn.focusChangeEffect=xS;Qn.perLineTextDirection=bS;Qn.exceptionSink=DS;Qn.updateListener=Ly;Qn.editable=Xg;Qn.mouseSelectionStyle=yS;Qn.dragMovesSelection=gS;Qn.clickAddsSelectionRange=mS;Qn.decorations=ed;Qn.atomicRanges=nO;Qn.bidiIsolatedRanges=SS;Qn.scrollMargins=ES;Qn.darkTheme=Zy;Qn.cspNonce=qn.define({combine:r=>r.length?r[0]:""});Qn.contentAttributes=rO;Qn.editorAttributes=CS;Qn.lineWrapping=Qn.contentAttributes.of({class:"cm-lineWrapping"});Qn.announce=Qi.define();const $F=4096,bx={};class Ym{constructor(e,t,n,i,s,a){this.from=e,this.to=t,this.dir=n,this.isolates=i,this.fresh=s,this.order=a}static update(e,t){if(t.empty&&!e.some(s=>s.fresh))return e;let n=[],i=e.length?e[e.length-1].dir:no.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let a=e[s];a.dir==i&&!t.touchesRange(a.from,a.to)&&n.push(new Ym(t.mapPos(a.from,1),t.mapPos(a.to,-1),a.dir,a.isolates,!1,a.order))}return n}}function vx(r,e,t){for(let n=r.state.facet(e),i=n.length-1;i>=0;i--){let s=n[i],a=typeof s=="function"?s(r):s;a&&Ry(a,t)}return t}const BF=oi.mac?"mac":oi.windows?"win":oi.linux?"linux":"key";function NF(r,e){const t=r.split(/-(?!$)/);let n=t[t.length-1];n=="Space"&&(n=" ");let i,s,a,l;for(let p=0;p<t.length-1;++p){const m=t[p];if(/^(cmd|meta|m)$/i.test(m))l=!0;else if(/^a(lt)?$/i.test(m))i=!0;else if(/^(c|ctrl|control)$/i.test(m))s=!0;else if(/^s(hift)?$/i.test(m))a=!0;else if(/^mod$/i.test(m))e=="mac"?l=!0:s=!0;else throw new Error("Unrecognized modifier name: "+m)}return i&&(n="Alt-"+n),s&&(n="Ctrl-"+n),l&&(n="Meta-"+n),a&&(n="Shift-"+n),n}function Kd(r,e,t){return e.altKey&&(r="Alt-"+r),e.ctrlKey&&(r="Ctrl-"+r),e.metaKey&&(r="Meta-"+r),t!==!1&&e.shiftKey&&(r="Shift-"+r),r}const IF=Jh.default(Qn.domEventHandlers({keydown(r,e){return GS(YS(e.state),r,e,"editor")}})),Cd=qn.define({enables:IF}),Cx=new WeakMap;function YS(r){let e=r.facet(Cd),t=Cx.get(e);return t||Cx.set(e,t=QF(e.reduce((n,i)=>n.concat(i),[]))),t}function MF(r,e,t){return GS(YS(r.state),e,r,t)}let jc=null;const RF=4e3;function QF(r,e=BF){let t=Object.create(null),n=Object.create(null),i=(a,l)=>{let p=n[a];if(p==null)n[a]=l;else if(p!=l)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},s=(a,l,p,m,g)=>{var b,S;let $=t[a]||(t[a]=Object.create(null)),G=l.split(/ (?!$)/).map(me=>NF(me,e));for(let me=1;me<G.length;me++){let Ve=G.slice(0,me).join(" ");i(Ve,!0),$[Ve]||($[Ve]={preventDefault:!0,stopPropagation:!1,run:[Dt=>{let ht=jc={view:Dt,prefix:Ve,scope:a};return setTimeout(()=>{jc==ht&&(jc=null)},RF),!0}]})}let be=G.join(" ");i(be,!1);let ke=$[be]||($[be]={preventDefault:!1,stopPropagation:!1,run:((S=(b=$._any)===null||b===void 0?void 0:b.run)===null||S===void 0?void 0:S.slice())||[]});p&&ke.run.push(p),m&&(ke.preventDefault=!0),g&&(ke.stopPropagation=!0)};for(let a of r){let l=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let m of l){let g=t[m]||(t[m]=Object.create(null));g._any||(g._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let b in g)g[b].run.push(a.any)}let p=a[e]||a.key;if(p)for(let m of l)s(m,p,a.run,a.preventDefault,a.stopPropagation),a.shift&&s(m,"Shift-"+p,a.shift,a.preventDefault,a.stopPropagation)}return t}function GS(r,e,t,n){let i=ck(e),s=Uo(i,0),a=Ha(s)==i.length&&i!=" ",l="",p=!1,m=!1,g=!1;jc&&jc.view==t&&jc.scope==n&&(l=jc.prefix+" ",IS.indexOf(e.keyCode)<0&&(m=!0,jc=null));let b=new Set,S=ke=>{if(ke){for(let me of ke.run)if(!b.has(me)&&(b.add(me),me(t,e)))return ke.stopPropagation&&(g=!0),!0;ke.preventDefault&&(ke.stopPropagation&&(g=!0),m=!0)}return!1},$=r[n],G,be;return $&&(S($[l+Kd(i,e,!a)])?p=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(oi.windows&&e.ctrlKey&&e.altKey)&&(G=th[e.keyCode])&&G!=i?(S($[l+Kd(G,e,!0)])||e.shiftKey&&(be=Jf[e.keyCode])!=i&&be!=G&&S($[l+Kd(be,e,!1)]))&&(p=!0):a&&e.shiftKey&&S($[l+Kd(i,e,!0)])&&(p=!0),!p&&S($._any)&&(p=!0)),m&&(p=!0),p&&g&&e.stopPropagation(),p}class Sd{constructor(e,t,n,i,s){this.className=e,this.left=t,this.top=n,this.width=i,this.height=s}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let i=e.coordsAtPos(n.head,n.assoc||1);if(!i)return[];let s=HS(e);return[new Sd(t,i.left-s.left,i.top-s.top,null,i.bottom-i.top)]}else return jF(e,t,n)}}function HS(r){let e=r.scrollDOM.getBoundingClientRect();return{left:(r.textDirection==no.LTR?e.left:e.right-r.scrollDOM.clientWidth*r.scaleX)-r.scrollDOM.scrollLeft*r.scaleX,top:e.top-r.scrollDOM.scrollTop*r.scaleY}}function Sx(r,e,t){let n=Pr.cursor(e);return{from:Math.max(t.from,r.moveToLineBoundary(n,!1,!0).from),to:Math.min(t.to,r.moveToLineBoundary(n,!0,!0).from),type:da.Text}}function jF(r,e,t){if(t.to<=r.viewport.from||t.from>=r.viewport.to)return[];let n=Math.max(t.from,r.viewport.from),i=Math.min(t.to,r.viewport.to),s=r.textDirection==no.LTR,a=r.contentDOM,l=a.getBoundingClientRect(),p=HS(r),m=a.querySelector(".cm-line"),g=m&&window.getComputedStyle(m),b=l.left+(g?parseInt(g.paddingLeft)+Math.min(0,parseInt(g.textIndent)):0),S=l.right-(g?parseInt(g.paddingRight):0),$=zy(r,n),G=zy(r,i),be=$.type==da.Text?$:null,ke=G.type==da.Text?G:null;if(be&&(r.lineWrapping||$.widgetLineBreaks)&&(be=Sx(r,n,be)),ke&&(r.lineWrapping||G.widgetLineBreaks)&&(ke=Sx(r,i,ke)),be&&ke&&be.from==ke.from)return Ve(Dt(t.from,t.to,be));{let bt=be?Dt(t.from,null,be):ht($,!1),Yt=ke?Dt(null,t.to,ke):ht(G,!0),ir=[];return(be||$).to<(ke||G).from-(be&&ke?1:0)||$.widgetLineBreaks>1&&bt.bottom+r.defaultLineHeight/2<Yt.top?ir.push(me(b,bt.bottom,S,Yt.top)):bt.bottom<Yt.top&&r.elementAtHeight((bt.bottom+Yt.top)/2).type==da.Text&&(bt.bottom=Yt.top=(bt.bottom+Yt.top)/2),Ve(bt).concat(ir).concat(Ve(Yt))}function me(bt,Yt,ir,qr){return new Sd(e,bt-p.left,Yt-p.top-.01,ir-bt,qr-Yt+.01)}function Ve({top:bt,bottom:Yt,horizontal:ir}){let qr=[];for(let yr=0;yr<ir.length;yr+=2)qr.push(me(ir[yr],bt,ir[yr+1],Yt));return qr}function Dt(bt,Yt,ir){let qr=1e9,yr=-1e9,kr=[];function Zr(Ii,ii,Sn,Wn,jn){let Bn=r.coordsAtPos(Ii,Ii==ir.to?-2:2),$i=r.coordsAtPos(Sn,Sn==ir.from?2:-2);!Bn||!$i||(qr=Math.min(Bn.top,$i.top,qr),yr=Math.max(Bn.bottom,$i.bottom,yr),jn==no.LTR?kr.push(s&&ii?b:Bn.left,s&&Wn?S:$i.right):kr.push(!s&&Wn?b:$i.left,!s&&ii?S:Bn.right))}let zn=bt??ir.from,Gn=Yt??ir.to;for(let Ii of r.visibleRanges)if(Ii.to>zn&&Ii.from<Gn)for(let ii=Math.max(Ii.from,zn),Sn=Math.min(Ii.to,Gn);;){let Wn=r.state.doc.lineAt(ii);for(let jn of r.bidiSpans(Wn)){let Bn=jn.from+Wn.from,$i=jn.to+Wn.from;if(Bn>=Sn)break;$i>ii&&Zr(Math.max(Bn,ii),bt==null&&Bn<=zn,Math.min($i,Sn),Yt==null&&$i>=Gn,jn.dir)}if(ii=Wn.to+1,ii>=Sn)break}return kr.length==0&&Zr(zn,bt==null,Gn,Yt==null,r.textDirection),{top:qr,bottom:yr,horizontal:kr}}function ht(bt,Yt){let ir=l.top+(Yt?bt.top:bt.bottom);return{top:ir,bottom:ir,horizontal:[]}}}function LF(r,e){return r.constructor==e.constructor&&r.eq(e)}class XF{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(Sm)!=e.state.facet(Sm)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let t=0,n=e.facet(Sm);for(;t<n.length&&n[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;(e!=this.scaleX||t!=this.scaleY)&&(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some((t,n)=>!LF(t,this.drawn[n]))){let t=this.dom.firstChild,n=0;for(let i of e)i.update&&t&&i.constructor&&this.drawn[n].constructor&&i.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(i.draw(),t);for(;t;){let i=t.nextSibling;t.remove(),t=i}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Sm=qn.define();function JS(r){return[bo.define(e=>new XF(e,r)),Sm.of(r)]}const KS=!oi.ios,rd=qn.define({combine(r){return Sl(r,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function VF(r={}){return[rd.of(r),UF,qF,zF,vS.of(!0)]}function e2(r){return r.startState.facet(rd)!=r.state.facet(rd)}const UF=JS({above:!0,markers(r){let{state:e}=r,t=e.facet(rd),n=[];for(let i of e.selection.ranges){let s=i==e.selection.main;if(i.empty?!s||KS:t.drawRangeCursor){let a=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=i.empty?i:Pr.cursor(i.head,i.head>i.anchor?-1:1);for(let p of Sd.forRange(r,a,l))n.push(p)}}return n},update(r,e){r.transactions.some(n=>n.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=e2(r);return t&&Ex(r.state,e),r.docChanged||r.selectionSet||t},mount(r,e){Ex(e.state,r)},class:"cm-cursorLayer"});function Ex(r,e){e.style.animationDuration=r.facet(rd).cursorBlinkRate+"ms"}const qF=JS({above:!1,markers(r){return r.state.selection.ranges.map(e=>e.empty?[]:Sd.forRange(r,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(r,e){return r.docChanged||r.selectionSet||r.viewportChanged||e2(r)},class:"cm-selectionLayer"}),t2={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};KS&&(t2[".cm-line"].caretColor="transparent !important");const zF=Jh.highest(Qn.theme(t2)),r2=Qi.define({map(r,e){return r==null?null:e.mapPos(r)}}),Pf=Po.define({create(){return null},update(r,e){return r!=null&&(r=e.changes.mapPos(r)),e.effects.reduce((t,n)=>n.is(r2)?n.value:t,r)}}),WF=bo.fromClass(class{constructor(r){this.view=r,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(r){var e;let t=r.state.field(Pf);t==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(r.startState.field(Pf)!=t||r.docChanged||r.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:r}=this,e=r.state.field(Pf),t=e!=null&&r.coordsAtPos(e);if(!t)return null;let n=r.scrollDOM.getBoundingClientRect();return{left:t.left-n.left+r.scrollDOM.scrollLeft*r.scaleX,top:t.top-n.top+r.scrollDOM.scrollTop*r.scaleY,height:t.bottom-t.top}}drawCursor(r){if(this.cursor){let{scaleX:e,scaleY:t}=this.view;r?(this.cursor.style.left=r.left/e+"px",this.cursor.style.top=r.top/t+"px",this.cursor.style.height=r.height/t+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(r){this.view.state.field(Pf)!=r&&this.view.dispatch({effects:r2.of(r)})}},{eventObservers:{dragover(r){this.setDropPos(this.view.posAtCoords({x:r.clientX,y:r.clientY}))},dragleave(r){(r.target==this.view.contentDOM||!this.view.contentDOM.contains(r.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function ZF(){return[Pf,WF]}function wx(r,e,t,n,i){e.lastIndex=0;for(let s=r.iterRange(t,n),a=t,l;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;l=e.exec(s.value);)i(a+l.index,l)}function YF(r,e){let t=r.visibleRanges;if(t.length==1&&t[0].from==r.viewport.from&&t[0].to==r.viewport.to)return t;let n=[];for(let{from:i,to:s}of t)i=Math.max(r.state.doc.lineAt(i).from,i-e),s=Math.min(r.state.doc.lineAt(s).to,s+e),n.length&&n[n.length-1].to>=i?n[n.length-1].to=s:n.push({from:i,to:s});return n}class GF{constructor(e){const{regexp:t,decoration:n,decorate:i,boundary:s,maxLength:a=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,i)this.addMatch=(l,p,m,g)=>i(g,m,m+l[0].length,l,p);else if(typeof n=="function")this.addMatch=(l,p,m,g)=>{let b=n(l,p,m);b&&g(m,m+l[0].length,b)};else if(n)this.addMatch=(l,p,m,g)=>g(m,m+l[0].length,n);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=a}createDeco(e){let t=new Kc,n=t.add.bind(t);for(let{from:i,to:s}of YF(e,this.maxLength))wx(e.state.doc,this.regexp,i,s,(a,l)=>this.addMatch(l,e,a,n));return t.finish()}updateDeco(e,t){let n=1e9,i=-1;return e.docChanged&&e.changes.iterChanges((s,a,l,p)=>{p>e.view.viewport.from&&l<e.view.viewport.to&&(n=Math.min(l,n),i=Math.max(p,i))}),e.viewportChanged||i-n>1e3?this.createDeco(e.view):i>-1?this.updateRange(e.view,t.map(e.changes),n,i):t}updateRange(e,t,n,i){for(let s of e.visibleRanges){let a=Math.max(s.from,n),l=Math.min(s.to,i);if(l>a){let p=e.state.doc.lineAt(a),m=p.to<l?e.state.doc.lineAt(l):p,g=Math.max(s.from,p.from),b=Math.min(s.to,m.to);if(this.boundary){for(;a>p.from;a--)if(this.boundary.test(p.text[a-1-p.from])){g=a;break}for(;l<m.to;l++)if(this.boundary.test(m.text[l-m.from])){b=l;break}}let S=[],$,G=(be,ke,me)=>S.push(me.range(be,ke));if(p==m)for(this.regexp.lastIndex=g-p.from;($=this.regexp.exec(p.text))&&$.index<b-p.from;)this.addMatch($,e,$.index+p.from,G);else wx(e.state.doc,this.regexp,g,b,(be,ke)=>this.addMatch(ke,e,be,G));t=t.update({filterFrom:g,filterTo:b,filter:(be,ke)=>be<g||ke>b,add:S})}}return t}}const Hy=/x/.unicode!=null?"gu":"g",HF=new RegExp(`[\0-\b
|
|
10
|
-
--\u2028\u2029\uFEFF-]`,Hy),JF={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let $0=null;function KF(){var r;if($0==null&&typeof document<"u"&&document.body){let e=document.body.style;$0=((r=e.tabSize)!==null&&r!==void 0?r:e.MozTabSize)!=null}return $0||!1}const Em=qn.define({combine(r){let e=Sl(r,{render:null,specialChars:HF,addSpecialChars:null});return(e.replaceTabs=!KF())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Hy)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Hy)),e}});function e3(r={}){return[Em.of(r),t3()]}let Ax=null;function t3(){return Ax||(Ax=bo.fromClass(class{constructor(r){this.view=r,this.decorations=_i.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(r.state.facet(Em)),this.decorations=this.decorator.createDeco(r)}makeDecorator(r){return new GF({regexp:r.specialChars,decoration:(e,t,n)=>{let{doc:i}=t.state,s=Uo(e[0],0);if(s==9){let a=i.lineAt(n),l=t.state.tabSize,p=xd(a.text,l,n-a.from);return _i.replace({widget:new s3((l-p%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=_i.replace({widget:new i3(r,s)}))},boundary:r.replaceTabs?void 0:/[^]/})}update(r){let e=r.state.facet(Em);r.startState.facet(Em)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(r.view)):this.decorations=this.decorator.updateDeco(r,this.decorations)}},{decorations:r=>r.decorations}))}const r3="•";function n3(r){return r>=32?r3:r==10?"":String.fromCharCode(9216+r)}class i3 extends oh{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=n3(this.code),n=e.state.phrase("Control character")+" "+(JF[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,n,t);if(i)return i;let s=document.createElement("span");return s.textContent=t,s.title=n,s.setAttribute("aria-label",n),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class s3 extends oh{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function o3(){return u3}const a3=_i.line({class:"cm-activeLine"}),u3=bo.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.docChanged||r.selectionSet)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=-1,t=[];for(let n of r.state.selection.ranges){let i=r.lineBlockAt(n.head);i.from>e&&(t.push(a3.range(i.from)),e=i.from)}return _i.set(t)}},{decorations:r=>r.decorations}),Jy=2e3;function l3(r,e,t){let n=Math.min(e.line,t.line),i=Math.max(e.line,t.line),s=[];if(e.off>Jy||t.off>Jy||e.col<0||t.col<0){let a=Math.min(e.off,t.off),l=Math.max(e.off,t.off);for(let p=n;p<=i;p++){let m=r.doc.line(p);m.length<=l&&s.push(Pr.range(m.from+a,m.to+l))}}else{let a=Math.min(e.col,t.col),l=Math.max(e.col,t.col);for(let p=n;p<=i;p++){let m=r.doc.line(p),g=Fy(m.text,a,r.tabSize,!0);if(g<0)s.push(Pr.cursor(m.to));else{let b=Fy(m.text,l,r.tabSize);s.push(Pr.range(m.from+g,m.from+b))}}}return s}function c3(r,e){let t=r.coordsAtPos(r.viewport.from);return t?Math.round(Math.abs((t.left-e)/r.defaultCharacterWidth)):-1}function Tx(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1),n=r.state.doc.lineAt(t),i=t-n.from,s=i>Jy?-1:i==n.length?c3(r,e.clientX):xd(n.text,r.state.tabSize,t-n.from);return{line:n.number,col:s,off:i}}function h3(r,e){let t=Tx(r,e),n=r.state.selection;return t?{update(i){if(i.docChanged){let s=i.changes.mapPos(i.startState.doc.line(t.line).from),a=i.state.doc.lineAt(s);t={line:a.number,col:t.col,off:Math.min(t.off,a.length)},n=n.map(i.changes)}},get(i,s,a){let l=Tx(r,i);if(!l)return n;let p=l3(r.state,t,l);return p.length?a?Pr.create(p.concat(n.ranges)):Pr.create(p):n}}:null}function p3(r){let e=(r==null?void 0:r.eventFilter)||(t=>t.altKey&&t.button==0);return Qn.mouseSelectionStyle.of((t,n)=>e(n)?h3(t,n):null)}const f3={Alt:[18,r=>!!r.altKey],Control:[17,r=>!!r.ctrlKey],Shift:[16,r=>!!r.shiftKey],Meta:[91,r=>!!r.metaKey]},d3={style:"cursor: crosshair"};function m3(r={}){let[e,t]=f3[r.key||"Alt"],n=bo.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==e||t(i))},keyup(i){(i.keyCode==e||!t(i))&&this.set(!1)},mousemove(i){this.set(t(i))}}});return[n,Qn.contentAttributes.of(i=>{var s;return!((s=i.plugin(n))===null||s===void 0)&&s.isDown?d3:null})]}const em="-10000px";class n2{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter(i=>i),this.tooltipViews=this.tooltips.map(n)}update(e){var t;let n=e.state.facet(this.facet),i=n.filter(a=>a);if(n===this.input){for(let a of this.tooltipViews)a.update&&a.update(e);return!1}let s=[];for(let a=0;a<i.length;a++){let l=i[a],p=-1;if(l){for(let m=0;m<this.tooltips.length;m++){let g=this.tooltips[m];g&&g.create==l.create&&(p=m)}if(p<0)s[a]=this.createTooltipView(l);else{let m=s[a]=this.tooltipViews[p];m.update&&m.update(e)}}}for(let a of this.tooltipViews)s.indexOf(a)<0&&(a.dom.remove(),(t=a.destroy)===null||t===void 0||t.call(a));return this.input=n,this.tooltips=i,this.tooltipViews=s,!0}}function g3(r){let{win:e}=r;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const B0=qn.define({combine:r=>{var e,t,n;return{position:oi.ios?"absolute":((e=r.find(i=>i.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=r.find(i=>i.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((n=r.find(i=>i.tooltipSpace))===null||n===void 0?void 0:n.tooltipSpace)||g3}}}),Px=new WeakMap,i2=bo.fromClass(class{constructor(r){this.view=r,this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=r.state.facet(B0);this.position=e.position,this.parent=e.parent,this.classes=r.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new n2(r,sO,t=>this.createTooltip(t)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),r.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let r of this.manager.tooltipViews)this.intersectionObserver.observe(r.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(r){r.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(r);e&&this.observeIntersection();let t=e||r.geometryChanged,n=r.state.facet(B0);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;t=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(r){let e=r.create(this.view);if(e.dom.classList.add("cm-tooltip"),r.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow",e.dom.appendChild(t)}return e.dom.style.position=this.position,e.dom.style.top=em,this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var r,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),(r=t.destroy)===null||r===void 0||r.call(t);(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let r=this.view.dom.getBoundingClientRect(),e=1,t=1,n=!1;if(this.position=="fixed"){let i=this.manager.tooltipViews;n=i.length>0&&i[0].dom.offsetParent!=this.container.ownerDocument.body}if(n||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(e=i.width/this.parent.offsetWidth,t=i.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);return{editor:r,parent:this.parent?this.container.getBoundingClientRect():r,pos:this.manager.tooltips.map((i,s)=>{let a=this.manager.tooltipViews[s];return a.getCoords?a.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(B0).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(r){var e;if(r.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{editor:t,space:n,scaleX:i,scaleY:s}=r,a=[];for(let l=0;l<this.manager.tooltips.length;l++){let p=this.manager.tooltips[l],m=this.manager.tooltipViews[l],{dom:g}=m,b=r.pos[l],S=r.size[l];if(!b||b.bottom<=Math.max(t.top,n.top)||b.top>=Math.min(t.bottom,n.bottom)||b.right<Math.max(t.left,n.left)-.1||b.left>Math.min(t.right,n.right)+.1){g.style.top=em;continue}let $=p.arrow?m.dom.querySelector(".cm-tooltip-arrow"):null,G=$?7:0,be=S.right-S.left,ke=(e=Px.get(m))!==null&&e!==void 0?e:S.bottom-S.top,me=m.offset||D3,Ve=this.view.textDirection==no.LTR,Dt=S.width>n.right-n.left?Ve?n.left:n.right-S.width:Ve?Math.min(b.left-($?14:0)+me.x,n.right-be):Math.max(n.left,b.left-be+($?14:0)-me.x),ht=!!p.above;!p.strictSide&&(ht?b.top-(S.bottom-S.top)-me.y<n.top:b.bottom+(S.bottom-S.top)+me.y>n.bottom)&&ht==n.bottom-b.bottom>b.top-n.top&&(ht=!ht);let bt=(ht?b.top-n.top:n.bottom-b.bottom)-G;if(bt<ke&&m.resize!==!1){if(bt<this.view.defaultLineHeight){g.style.top=em;continue}Px.set(m,ke),g.style.height=(ke=bt)/s+"px"}else g.style.height&&(g.style.height="");let Yt=ht?b.top-ke-G-me.y:b.bottom+G+me.y,ir=Dt+be;if(m.overlap!==!0)for(let qr of a)qr.left<ir&&qr.right>Dt&&qr.top<Yt+ke&&qr.bottom>Yt&&(Yt=ht?qr.top-ke-2-G:qr.bottom+G+2);if(this.position=="absolute"?(g.style.top=(Yt-r.parent.top)/s+"px",g.style.left=(Dt-r.parent.left)/i+"px"):(g.style.top=Yt/s+"px",g.style.left=Dt/i+"px"),$){let qr=b.left+(Ve?me.x:-me.x)-(Dt+14-7);$.style.left=qr/i+"px"}m.overlap!==!0&&a.push({left:Dt,top:Yt,right:ir,bottom:Yt+ke}),g.classList.toggle("cm-tooltip-above",ht),g.classList.toggle("cm-tooltip-below",!ht),m.positioned&&m.positioned(r.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let r of this.manager.tooltipViews)r.dom.style.top=em}},{eventObservers:{scroll(){this.maybeMeasure()}}}),y3=Qn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),D3={x:0,y:0},sO=qn.define({enables:[i2,y3]}),Gm=qn.define();class oO{static create(e){return new oO(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new n2(e,Gm,t=>this.createHostedView(t))}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}}const O3=sO.compute([Gm],r=>{let e=r.facet(Gm).filter(t=>t);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.filter(t=>t.end!=null).map(t=>t.end)),create:oO.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class x3{constructor(e,t,n,i,s){this.view=e,this.source=t,this.field=n,this.setHover=i,this.hoverTime=s,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,n=e.docView.nearest(t.target);if(!n)return;let i,s=1;if(n instanceof Vc)i=n.posAtStart;else{if(i=e.posAtCoords(t),i==null)return;let l=e.coordsAtPos(i);if(!l||t.y<l.top||t.y>l.bottom||t.x<l.left-e.defaultCharacterWidth||t.x>l.right+e.defaultCharacterWidth)return;let p=e.bidiSpans(e.state.doc.lineAt(i)).find(g=>g.from<=i&&g.to>=i),m=p&&p.dir==no.RTL?-1:1;s=t.x<l.left?-m:m}let a=this.source(e,i,s);if(a!=null&&a.then){let l=this.pending={pos:i};a.then(p=>{this.pending==l&&(this.pending=null,p&&e.dispatch({effects:this.setHover.of(p)}))},p=>wu(e.state,p,"hover tooltip"))}else a&&e.dispatch({effects:this.setHover.of(a)})}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let n=this.active;if(n&&!kx(this.lastMove.target)||this.pending){let{pos:i}=n||this.pending,s=(t=n==null?void 0:n.end)!==null&&t!==void 0?t:i;(i==s?this.view.posAtCoords(this.lastMove)!=i:!b3(this.view,i,s,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!kx(e.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function kx(r){for(let e=r;e;e=e.parentNode)if(e.nodeType==1&&e.classList.contains("cm-tooltip"))return!0;return!1}function b3(r,e,t,n,i,s){let a=r.scrollDOM.getBoundingClientRect(),l=r.documentTop+r.documentPadding.top+r.contentHeight;if(a.left>n||a.right<n||a.top>i||Math.min(a.bottom,l)<i)return!1;let p=r.posAtCoords({x:n,y:i},!1);return p>=e&&p<=t}function v3(r,e={}){let t=Qi.define(),n=Po.define({create(){return null},update(i,s){if(i&&(e.hideOnChange&&(s.docChanged||s.selection)||e.hideOn&&e.hideOn(s,i)))return null;if(i&&s.docChanged){let a=s.changes.mapPos(i.pos,-1,zo.TrackDel);if(a==null)return null;let l=Object.assign(Object.create(null),i);l.pos=a,i.end!=null&&(l.end=s.changes.mapPos(i.end)),i=l}for(let a of s.effects)a.is(t)&&(i=a.value),a.is(C3)&&(i=null);return i},provide:i=>Gm.from(i)});return[n,bo.define(i=>new x3(i,r,n,t,e.hoverTime||300)),O3]}function s2(r,e){let t=r.plugin(i2);if(!t)return null;let n=t.manager.tooltips.indexOf(e);return n<0?null:t.manager.tooltipViews[n]}const C3=Qi.define(),Fx=qn.define({combine(r){let e,t;for(let n of r)e=e||n.topContainer,t=t||n.bottomContainer;return{topContainer:e,bottomContainer:t}}});function nd(r,e){let t=r.plugin(o2),n=t?t.specs.indexOf(e):-1;return n>-1?t.panels[n]:null}const o2=bo.fromClass(class{constructor(r){this.input=r.state.facet(id),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(r));let e=r.state.facet(Fx);this.top=new tm(r,!0,e.topContainer),this.bottom=new tm(r,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(r){let e=r.state.facet(Fx);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new tm(r.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new tm(r.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=r.state.facet(id);if(t!=this.input){let n=t.filter(p=>p),i=[],s=[],a=[],l=[];for(let p of n){let m=this.specs.indexOf(p),g;m<0?(g=p(r.view),l.push(g)):(g=this.panels[m],g.update&&g.update(r)),i.push(g),(g.top?s:a).push(g)}this.specs=n,this.panels=i,this.top.sync(s),this.bottom.sync(a);for(let p of l)p.dom.classList.add("cm-panel"),p.mount&&p.mount()}else for(let n of this.panels)n.update&&n.update(r)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:r=>Qn.scrollMargins.of(e=>{let t=e.plugin(r);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class tm{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=_x(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=_x(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function _x(r){let e=r.nextSibling;return r.remove(),e}const id=qn.define({enables:o2});class sc extends Uh{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}sc.prototype.elementClass="";sc.prototype.toDOM=void 0;sc.prototype.mapMode=zo.TrackBefore;sc.prototype.startSide=sc.prototype.endSide=-1;sc.prototype.point=!0;const wm=qn.define(),S3={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Ss.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Mf=qn.define();function E3(r){return[a2(),Mf.of(Object.assign(Object.assign({},S3),r))]}const Ky=qn.define({combine:r=>r.some(e=>e)});function a2(r){let e=[w3];return r&&r.fixed===!1&&e.push(Ky.of(!0)),e}const w3=bo.fromClass(class{constructor(r){this.view=r,this.prevViewport=r.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=r.state.facet(Mf).map(e=>new Bx(r,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!r.state.facet(Ky),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),r.scrollDOM.insertBefore(this.dom,r.contentDOM)}update(r){if(this.updateGutters(r)){let e=this.prevViewport,t=r.view.viewport,n=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(n<(t.to-t.from)*.8)}r.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Ky)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=r.view.viewport}syncGutters(r){let e=this.dom.nextSibling;r&&this.dom.remove();let t=Ss.iter(this.view.state.facet(wm),this.view.viewport.from),n=[],i=this.gutters.map(s=>new A3(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(s.type)){let a=!0;for(let l of s.type)if(l.type==da.Text&&a){eD(t,n,l.from);for(let p of i)p.line(this.view,l,n);a=!1}else if(l.widget)for(let p of i)p.widget(this.view,l)}else if(s.type==da.Text){eD(t,n,s.from);for(let a of i)a.line(this.view,s,n)}else if(s.widget)for(let a of i)a.widget(this.view,s);for(let s of i)s.finish();r&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(r){let e=r.startState.facet(Mf),t=r.state.facet(Mf),n=r.docChanged||r.heightChanged||r.viewportChanged||!Ss.eq(r.startState.facet(wm),r.state.facet(wm),r.view.viewport.from,r.view.viewport.to);if(e==t)for(let i of this.gutters)i.update(r)&&(n=!0);else{n=!0;let i=[];for(let s of t){let a=e.indexOf(s);a<0?i.push(new Bx(this.view,s)):(this.gutters[a].update(r),i.push(this.gutters[a]))}for(let s of this.gutters)s.dom.remove(),i.indexOf(s)<0&&s.destroy();for(let s of i)this.dom.appendChild(s.dom);this.gutters=i}return n}destroy(){for(let r of this.gutters)r.destroy();this.dom.remove()}},{provide:r=>Qn.scrollMargins.of(e=>{let t=e.plugin(r);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==no.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}})});function $x(r){return Array.isArray(r)?r:[r]}function eD(r,e,t){for(;r.value&&r.from<=t;)r.from==t&&e.push(r.value),r.next()}class A3{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=Ss.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:i}=this,s=t.top-this.height;if(this.i==i.elements.length){let a=new u2(e,t.height,s,n);i.elements.push(a),i.dom.appendChild(a.dom)}else i.elements[this.i].update(e,t.height,s,n);this.height=t.bottom,this.i++}line(e,t,n){let i=[];eD(this.cursor,i,t.from),n.length&&(i=i.concat(n));let s=this.gutter.config.lineMarker(e,t,i);s&&i.unshift(s);let a=this.gutter;i.length==0&&!a.config.renderEmptyElements||this.addElement(e,t,i)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Bx{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,i=>{let s=i.target,a;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let p=s.getBoundingClientRect();a=(p.top+p.bottom)/2}else a=i.clientY;let l=e.lineBlockAtHeight(a-e.documentTop);t.domEventHandlers[n](e,l,i)&&i.preventDefault()});this.markers=$x(t.markers(e)),t.initialSpacer&&(this.spacer=new u2(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=$x(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i])}let n=e.view.viewport;return!Ss.eq(this.markers,t,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class u2{constructor(e,t,n,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,i)}update(e,t,n,i){this.height!=t&&(this.height=t,this.dom.style.height=t/e.scaleY+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n/e.scaleY+"px":""),T3(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,t){let n="cm-gutterElement",i=this.dom.firstChild;for(let s=0,a=0;;){let l=a,p=s<t.length?t[s++]:null,m=!1;if(p){let g=p.elementClass;g&&(n+=" "+g);for(let b=a;b<this.markers.length;b++)if(this.markers[b].compare(p)){l=b,m=!0;break}}else l=this.markers.length;for(;a<l;){let g=this.markers[a++];if(g.toDOM){g.destroy(i);let b=i.nextSibling;i.remove(),i=b}}if(!p)break;p.toDOM&&(m?i=i.nextSibling:this.dom.insertBefore(p.toDOM(e),i)),m&&a++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}function T3(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(!r[t].compare(e[t]))return!1;return!0}const P3=qn.define(),Pp=qn.define({combine(r){return Sl(r,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let i in t){let s=n[i],a=t[i];n[i]=s?(l,p,m)=>s(l,p,m)||a(l,p,m):a}return n}})}});class N0 extends sc{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function I0(r,e){return r.state.facet(Pp).formatNumber(e,r.state)}const k3=Mf.compute([Pp],r=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(P3)},lineMarker(e,t,n){return n.some(i=>i.toDOM)?null:new N0(I0(e,e.state.doc.lineAt(t.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Pp)!=e.state.facet(Pp),initialSpacer(e){return new N0(I0(e,Nx(e.state.doc.lines)))},updateSpacer(e,t){let n=I0(t.view,Nx(t.view.state.doc.lines));return n==e.number?e:new N0(n)},domEventHandlers:r.facet(Pp).domEventHandlers}));function F3(r={}){return[Pp.of(r),a2(),k3]}function Nx(r){let e=9;for(;e<r;)e=e*10+9;return e}const _3=new class extends sc{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},$3=wm.compute(["selection"],r=>{let e=[],t=-1;for(let n of r.selection.ranges){let i=r.doc.lineAt(n.head).from;i>t&&(t=i,e.push(_3.range(i)))}return Ss.of(e)});function B3(){return $3}function Ed(r){return Wv()?(EA(r),!0):!1}function Rf(){const r=new Set,e=i=>{r.delete(i)};return{on:i=>{r.add(i);const s=()=>e(i);return Ed(s),{off:s}},off:e,trigger:(...i)=>Promise.all(Array.from(r).map(s=>s(...i)))}}function Oo(r){return typeof r=="function"?r():wi(r)}const aO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const N3=r=>typeof r<"u",I3=Object.prototype.toString,M3=r=>I3.call(r)==="[object Object]",zh=()=>{};function uO(r,e){function t(...n){return new Promise((i,s)=>{Promise.resolve(r(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(i).catch(s)})}return t}const l2=r=>r();function R3(r,e={}){let t,n,i=zh;const s=l=>{clearTimeout(l),i(),i=zh};return l=>{const p=Oo(r),m=Oo(e.maxWait);return t&&s(t),p<=0||m!==void 0&&m<=0?(n&&(s(n),n=null),Promise.resolve(l())):new Promise((g,b)=>{i=e.rejectOnCancel?b:g,m&&!n&&(n=setTimeout(()=>{t&&s(t),n=null,g(l())},m)),t=setTimeout(()=>{n&&s(n),n=null,g(l())},p)})}}function Q3(r,e=!0,t=!0,n=!1){let i=0,s,a=!0,l=zh,p;const m=()=>{s&&(clearTimeout(s),s=void 0,l(),l=zh)};return b=>{const S=Oo(r),$=Date.now()-i,G=()=>p=b();return m(),S<=0?(i=Date.now(),G()):($>S&&(t||!a)?(i=Date.now(),G()):e&&(p=new Promise((be,ke)=>{l=n?ke:be,s=setTimeout(()=>{i=Date.now(),a=!0,be(G()),m()},Math.max(0,S-$))})),!t&&!s&&(s=setTimeout(()=>a=!0,S)),a=!1,p)}}function j3(r=l2){const e=Zs(!0);function t(){e.value=!1}function n(){e.value=!0}const i=(...s)=>{e.value&&r(...s)};return{isActive:Od(e),pause:t,resume:n,eventFilter:i}}function Ix(r,e=!1,t="Timeout"){return new Promise((n,i)=>{setTimeout(e?()=>i(t):n,r)})}function L3(r){let e;function t(){return e||(e=r()),e}return t.reset=async()=>{const n=e;e=void 0,n&&await n},t}function X3(r,...e){return e.some(t=>t in r)}function V3(r){return r||zD()}function Am(...r){if(r.length!==1)return eT(...r);const e=r[0];return typeof e=="function"?Od(GA(()=>({get:e,set:zh}))):Zs(e)}function U3(r,e=200,t={}){return uO(R3(e,t),r)}function q3(r,e=200,t={}){const n=Zs(r.value),i=U3(()=>{n.value=r.value},e,t);return Ro(r,()=>i()),n}function z3(r,e=200,t=!1,n=!0,i=!1){return uO(Q3(e,t,n,i),r)}function W3(r,e,t={}){const{eventFilter:n=l2,...i}=t;return Ro(r,uO(n,e),i)}function Z3(r,e,t={}){const{eventFilter:n,...i}=t,{eventFilter:s,pause:a,resume:l,isActive:p}=j3(n);return{stop:W3(r,e,{...i,eventFilter:s}),pause:a,resume:l,isActive:p}}function c2(r,e=!0,t){const n=V3(t);n?Ng(r,n):e?r():Hh(r)}function tD(r,e=!1){function t(b,{flush:S="sync",deep:$=!1,timeout:G,throwOnTimeout:be}={}){let ke=null;const Ve=[new Promise(Dt=>{ke=Ro(r,ht=>{b(ht)!==e&&(ke==null||ke(),Dt(ht))},{flush:S,deep:$,immediate:!0})})];return G!=null&&Ve.push(Ix(G,be).then(()=>Oo(r)).finally(()=>ke==null?void 0:ke())),Promise.race(Ve)}function n(b,S){if(!Hs(b))return t(ht=>ht===b,S);const{flush:$="sync",deep:G=!1,timeout:be,throwOnTimeout:ke}=S??{};let me=null;const Dt=[new Promise(ht=>{me=Ro([r,b],([bt,Yt])=>{e!==(bt===Yt)&&(me==null||me(),ht(bt))},{flush:$,deep:G,immediate:!0})})];return be!=null&&Dt.push(Ix(be,ke).then(()=>Oo(r)).finally(()=>(me==null||me(),Oo(r)))),Promise.race(Dt)}function i(b){return t(S=>!!S,b)}function s(b){return n(null,b)}function a(b){return n(void 0,b)}function l(b){return t(Number.isNaN,b)}function p(b,S){return t($=>{const G=Array.from($);return G.includes(b)||G.includes(Oo(b))},S)}function m(b){return g(1,b)}function g(b=1,S){let $=-1;return t(()=>($+=1,$>=b),S)}return Array.isArray(Oo(r))?{toMatch:t,toContains:p,changed:m,changedTimes:g,get not(){return tD(r,!e)}}:{toMatch:t,toBe:n,toBeTruthy:i,toBeNull:s,toBeNaN:l,toBeUndefined:a,changed:m,changedTimes:g,get not(){return tD(r,!e)}}}function Y3(r){return tD(r)}function h2(r,e,t={}){const{immediate:n=!0}=t,i=Zs(!1);let s=null;function a(){s&&(clearTimeout(s),s=null)}function l(){i.value=!1,a()}function p(...m){a(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=null,r(...m)},Oo(e))}return n&&(i.value=!0,aO&&p()),Ed(l),{isPending:Od(i),start:p,stop:l}}function Z7(r,e,t){let n;Hs(t)?n={evaluating:t}:n=t||{};const{lazy:i=!1,evaluating:s=void 0,shallow:a=!0,onError:l=zh}=n,p=Zs(!i),m=a?Np(e):Zs(e);let g=0;return gC(async b=>{if(!p.value)return;g++;const S=g;let $=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{const G=await r(be=>{b(()=>{s&&(s.value=!1),$||be()})});S===g&&(m.value=G)}catch(G){l(G)}finally{s&&S===g&&(s.value=!1),$=!0}}),i?as(()=>(p.value=!0,m.value)):m}function sd(r){var e;const t=Oo(r);return(e=t==null?void 0:t.$el)!=null?e:t}const oc=aO?window:void 0,p2=aO?window.navigator:void 0;function od(...r){let e,t,n,i;if(typeof r[0]=="string"||Array.isArray(r[0])?([t,n,i]=r,e=oc):[e,t,n,i]=r,!e)return zh;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const s=[],a=()=>{s.forEach(g=>g()),s.length=0},l=(g,b,S,$)=>(g.addEventListener(b,S,$),()=>g.removeEventListener(b,S,$)),p=Ro(()=>[sd(e),Oo(i)],([g,b])=>{if(a(),!g)return;const S=M3(b)?{...b}:b;s.push(...t.flatMap($=>n.map(G=>l(g,$,G,S))))},{immediate:!0,flush:"post"}),m=()=>{p(),a()};return Ed(m),m}function G3(){const r=Zs(!1);return zD()&&Ng(()=>{r.value=!0}),r}function Vg(r){const e=G3();return as(()=>(e.value,!!r()))}function H3(r,e={}){const{window:t=oc}=e,n=Vg(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let i;const s=Zs(!1),a=m=>{s.value=m.matches},l=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},p=gC(()=>{n.value&&(l(),i=t.matchMedia(Oo(r)),"addEventListener"in i?i.addEventListener("change",a):i.addListener(a),s.value=i.matches)});return Ed(()=>{p(),l(),i=void 0}),s}function Mx(r,e={}){const{controls:t=!1,navigator:n=p2}=e,i=Vg(()=>n&&"permissions"in n);let s;const a=typeof r=="string"?{name:r}:r,l=Zs(),p=()=>{s&&(l.value=s.state)},m=L3(async()=>{if(i.value){if(!s)try{s=await n.permissions.query(a),od(s,"change",p),p()}catch{l.value="prompt"}return s}});return m(),t?{state:l,isSupported:i,query:m}:l}function J3(r={}){const{navigator:e=p2,read:t=!1,source:n,copiedDuring:i=1500,legacy:s=!1}=r,a=Vg(()=>e&&"clipboard"in e),l=Mx("clipboard-read"),p=Mx("clipboard-write"),m=as(()=>a.value||s),g=Zs(""),b=Zs(!1),S=h2(()=>b.value=!1,i);function $(){a.value&&l.value!=="denied"?e.clipboard.readText().then(me=>{g.value=me}):g.value=ke()}m.value&&t&&od(["copy","cut"],$);async function G(me=Oo(n)){m.value&&me!=null&&(a.value&&p.value!=="denied"?await e.clipboard.writeText(me):be(me),g.value=me,b.value=!0,S.start())}function be(me){const Ve=document.createElement("textarea");Ve.value=me??"",Ve.style.position="absolute",Ve.style.opacity="0",document.body.appendChild(Ve),Ve.select(),document.execCommand("copy"),Ve.remove()}function ke(){var me,Ve,Dt;return(Dt=(Ve=(me=document==null?void 0:document.getSelection)==null?void 0:me.call(document))==null?void 0:Ve.toString())!=null?Dt:""}return{isSupported:m,text:g,copied:b,copy:G}}function K3(r){return JSON.parse(JSON.stringify(r))}const rm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},nm="__vueuse_ssr_handlers__",e_=t_();function t_(){return nm in rm||(rm[nm]=rm[nm]||{}),rm[nm]}function f2(r,e){return e_[r]||e}function r_(r){return r==null?"any":r instanceof Set?"set":r instanceof Map?"map":r instanceof Date?"date":typeof r=="boolean"?"boolean":typeof r=="string"?"string":typeof r=="object"?"object":Number.isNaN(r)?"any":"number"}const n_={boolean:{read:r=>r==="true",write:r=>String(r)},object:{read:r=>JSON.parse(r),write:r=>JSON.stringify(r)},number:{read:r=>Number.parseFloat(r),write:r=>String(r)},any:{read:r=>r,write:r=>String(r)},string:{read:r=>r,write:r=>String(r)},map:{read:r=>new Map(JSON.parse(r)),write:r=>JSON.stringify(Array.from(r.entries()))},set:{read:r=>new Set(JSON.parse(r)),write:r=>JSON.stringify(Array.from(r))},date:{read:r=>new Date(r),write:r=>r.toISOString()}},Rx="vueuse-storage";function d2(r,e,t,n={}){var i;const{flush:s="pre",deep:a=!0,listenToStorageChanges:l=!0,writeDefaults:p=!0,mergeDefaults:m=!1,shallow:g,window:b=oc,eventFilter:S,onError:$=yr=>{console.error(yr)},initOnMounted:G}=n,be=(g?Np:Zs)(typeof e=="function"?e():e);if(!t)try{t=f2("getDefaultStorage",()=>{var yr;return(yr=oc)==null?void 0:yr.localStorage})()}catch(yr){$(yr)}if(!t)return be;const ke=Oo(e),me=r_(ke),Ve=(i=n.serializer)!=null?i:n_[me],{pause:Dt,resume:ht}=Z3(be,()=>bt(be.value),{flush:s,deep:a,eventFilter:S});return b&&l&&c2(()=>{od(b,"storage",qr),od(b,Rx,ir),G&&qr()}),G||qr(),be;function bt(yr){try{if(yr==null)t.removeItem(r);else{const kr=Ve.write(yr),Zr=t.getItem(r);Zr!==kr&&(t.setItem(r,kr),b&&b.dispatchEvent(new CustomEvent(Rx,{detail:{key:r,oldValue:Zr,newValue:kr,storageArea:t}})))}}catch(kr){$(kr)}}function Yt(yr){const kr=yr?yr.newValue:t.getItem(r);if(kr==null)return p&&ke!=null&&t.setItem(r,Ve.write(ke)),ke;if(!yr&&m){const Zr=Ve.read(kr);return typeof m=="function"?m(Zr,ke):me==="object"&&!Array.isArray(Zr)?{...ke,...Zr}:Zr}else return typeof kr!="string"?kr:Ve.read(kr)}function ir(yr){qr(yr.detail)}function qr(yr){if(!(yr&&yr.storageArea!==t)){if(yr&&yr.key==null){be.value=ke;return}if(!(yr&&yr.key!==r)){Dt();try{(yr==null?void 0:yr.newValue)!==Ve.write(be.value)&&(be.value=Yt(yr))}catch(kr){$(kr)}finally{yr?Hh(ht):ht()}}}}}function m2(r){return H3("(prefers-color-scheme: dark)",r)}function i_(r={}){const{selector:e="html",attribute:t="class",initialValue:n="auto",window:i=oc,storage:s,storageKey:a="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:p,emitAuto:m,disableTransition:g=!0}=r,b={auto:"",light:"light",dark:"dark",...r.modes||{}},S=m2({window:i}),$=as(()=>S.value?"dark":"light"),G=p||(a==null?Am(n):d2(a,n,s,{window:i,listenToStorageChanges:l})),be=as(()=>G.value==="auto"?$.value:G.value),ke=f2("updateHTMLAttrs",(ht,bt,Yt)=>{const ir=typeof ht=="string"?i==null?void 0:i.document.querySelector(ht):sd(ht);if(!ir)return;let qr;if(g){qr=i.document.createElement("style");const yr="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";qr.appendChild(document.createTextNode(yr)),i.document.head.appendChild(qr)}if(bt==="class"){const yr=Yt.split(/\s/g);Object.values(b).flatMap(kr=>(kr||"").split(/\s/g)).filter(Boolean).forEach(kr=>{yr.includes(kr)?ir.classList.add(kr):ir.classList.remove(kr)})}else ir.setAttribute(bt,Yt);g&&(i.getComputedStyle(qr).opacity,document.head.removeChild(qr))});function me(ht){var bt;ke(e,t,(bt=b[ht])!=null?bt:ht)}function Ve(ht){r.onChanged?r.onChanged(ht,me):me(ht)}Ro(be,Ve,{flush:"post",immediate:!0}),c2(()=>Ve(be.value));const Dt=as({get(){return m?G.value:be.value},set(ht){G.value=ht}});try{return Object.assign(Dt,{store:G,system:$,state:be})}catch{return Dt}}function s_(r={}){const{valueDark:e="dark",valueLight:t="",window:n=oc}=r,i=i_({...r,onChanged:(l,p)=>{var m;r.onChanged?(m=r.onChanged)==null||m.call(r,l==="dark",p,l):p(l)},modes:{dark:e,light:t}}),s=as(()=>i.system?i.system.value:m2({window:n}).value?"dark":"light");return as({get(){return i.value==="dark"},set(l){const p=l?"dark":"light";s.value===p?i.value="auto":i.value=p}})}function o_(r,e,t={}){const{window:n=oc,...i}=t;let s;const a=Vg(()=>n&&"ResizeObserver"in n),l=()=>{s&&(s.disconnect(),s=void 0)},p=as(()=>Array.isArray(r)?r.map(b=>sd(b)):[sd(r)]),m=Ro(p,b=>{if(l(),a.value&&n){s=new ResizeObserver(e);for(const S of b)S&&s.observe(S,i)}},{immediate:!0,flush:"post",deep:!0}),g=()=>{l(),m()};return Ed(g),{isSupported:a,stop:g}}const a_={json:"application/json",text:"text/plain"};function Qx(r){return r&&X3(r,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}function M0(r){return typeof Headers<"u"&&r instanceof Headers?Object.fromEntries([...r.entries()]):r}function Ug(r,...e){var t;const n=typeof AbortController=="function";let i={},s={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const a={method:"GET",type:"text",payload:void 0};e.length>0&&(Qx(e[0])?s={...s,...e[0]}:i=e[0]),e.length>1&&Qx(e[1])&&(s={...s,...e[1]});const{fetch:l=(t=oc)==null?void 0:t.fetch,initialData:p,timeout:m}=s,g=Rf(),b=Rf(),S=Rf(),$=Zs(!1),G=Zs(!1),be=Zs(!1),ke=Zs(null),me=Np(null),Ve=Np(null),Dt=Np(p||null),ht=as(()=>n&&G.value);let bt,Yt;const ir=()=>{n&&(bt==null||bt.abort(),bt=new AbortController,bt.signal.onabort=()=>be.value=!0,i={...i,signal:bt.signal})},qr=Sn=>{G.value=Sn,$.value=!Sn};m&&(Yt=h2(ir,m,{immediate:!1}));let yr=0;const kr=async(Sn=!1)=>{var Wn,jn;ir(),qr(!0),Ve.value=null,ke.value=null,be.value=!1,yr+=1;const Bn=yr,$i={method:a.method,headers:{}};if(a.payload){const us=M0($i.headers),Xs=Oo(a.payload);!a.payloadType&&Xs&&Object.getPrototypeOf(Xs)===Object.prototype&&!(Xs instanceof FormData)&&(a.payloadType="json"),a.payloadType&&(us["Content-Type"]=(Wn=a_[a.payloadType])!=null?Wn:a.payloadType),$i.body=a.payloadType==="json"?JSON.stringify(Xs):Xs}let Ui=!1;const os={url:Oo(r),options:{...$i,...i},cancel:()=>{Ui=!0}};if(s.beforeFetch&&Object.assign(os,await s.beforeFetch(os)),Ui||!l)return qr(!1),Promise.resolve(null);let ds=null;return Yt&&Yt.start(),l(os.url,{...$i,...os.options,headers:{...M0($i.headers),...M0((jn=os.options)==null?void 0:jn.headers)}}).then(async us=>{if(me.value=us,ke.value=us.status,ds=await us.clone()[a.type](),!us.ok)throw Dt.value=p||null,new Error(us.statusText);return s.afterFetch&&({data:ds}=await s.afterFetch({data:ds,response:us})),Dt.value=ds,g.trigger(us),us}).catch(async us=>{let Xs=us.message||us.name;if(s.onFetchError&&({error:Xs,data:ds}=await s.onFetchError({data:ds,error:us,response:me.value})),Ve.value=Xs,s.updateDataOnError&&(Dt.value=ds),b.trigger(us),Sn)throw us;return null}).finally(()=>{Bn===yr&&qr(!1),Yt&&Yt.stop(),S.trigger(null)})},Zr=Am(s.refetch);Ro([Zr,Am(r)],([Sn])=>Sn&&kr(),{deep:!0});const zn={isFinished:$,statusCode:ke,response:me,error:Ve,data:Dt,isFetching:G,canAbort:ht,aborted:be,abort:ir,execute:kr,onFetchResponse:g.on,onFetchError:b.on,onFetchFinally:S.on,get:Gn("GET"),put:Gn("PUT"),post:Gn("POST"),delete:Gn("DELETE"),patch:Gn("PATCH"),head:Gn("HEAD"),options:Gn("OPTIONS"),json:ii("json"),text:ii("text"),blob:ii("blob"),arrayBuffer:ii("arrayBuffer"),formData:ii("formData")};function Gn(Sn){return(Wn,jn)=>{if(!G.value)return a.method=Sn,a.payload=Wn,a.payloadType=jn,Hs(a.payload)&&Ro([Zr,Am(a.payload)],([Bn])=>Bn&&kr(),{deep:!0}),{...zn,then(Bn,$i){return Ii().then(Bn,$i)}}}}function Ii(){return new Promise((Sn,Wn)=>{Y3($).toBe(!0).then(()=>Sn(zn)).catch(jn=>Wn(jn))})}function ii(Sn){return()=>{if(!G.value)return a.type=Sn,{...zn,then(Wn,jn){return Ii().then(Wn,jn)}}}}return s.immediate&&Promise.resolve().then(()=>kr()),{...zn,then(Sn,Wn){return Ii().then(Sn,Wn)}}}function Y7(r,e,t={}){const{window:n=oc}=t;return d2(r,e,n==null?void 0:n.localStorage,t)}function lO(r,e,t,n={}){var i,s,a;const{clone:l=!1,passive:p=!1,eventName:m,deep:g=!1,defaultValue:b,shouldEmit:S}=n,$=zD(),G=t||($==null?void 0:$.emit)||((i=$==null?void 0:$.$emit)==null?void 0:i.bind($))||((a=(s=$==null?void 0:$.proxy)==null?void 0:s.$emit)==null?void 0:a.bind($==null?void 0:$.proxy));let be=m;e||(e="modelValue"),be=be||`update:${e.toString()}`;const ke=Dt=>l?typeof l=="function"?l(Dt):K3(Dt):Dt,me=()=>N3(r[e])?ke(r[e]):b,Ve=Dt=>{S?S(Dt)&&G(be,Dt):G(be,Dt)};if(p){const Dt=me(),ht=Zs(Dt);let bt=!1;return Ro(()=>r[e],Yt=>{bt||(bt=!0,ht.value=ke(Yt),Hh(()=>bt=!1))}),Ro(ht,Yt=>{!bt&&(Yt!==r[e]||g)&&Ve(Yt)},{deep:g}),ht}else return as({get(){return me()},set(Dt){Ve(Dt)}})}const g2=1024;let u_=0;class Ja{constructor(e,t){this.from=e,this.to=t}}class Gi{constructor(e={}){this.id=u_++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=ga.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}}Gi.closedBy=new Gi({deserialize:r=>r.split(" ")});Gi.openedBy=new Gi({deserialize:r=>r.split(" ")});Gi.group=new Gi({deserialize:r=>r.split(" ")});Gi.contextHash=new Gi({perNode:!0});Gi.lookAhead=new Gi({perNode:!0});Gi.mounted=new Gi({perNode:!0});class l_{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}}const c_=Object.create(null);class ga{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):c_,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new ga(e.name||"",t,e.id,n);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(i)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[s[0].id]=s[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(Gi.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return n=>{for(let i=n.prop(Gi.group),s=-1;s<(i?i.length:0);s++){let a=t[s<0?n.name:i[s]];if(a)return a}}}}ga.none=new ga("",Object.create(null),0,8);class cO{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let i=null;for(let s of e){let a=s(n);a&&(i||(i=Object.assign({},n.props)),i[a[0].id]=a[1])}t.push(i?new ga(n.name,i,n.id,n.flags):n)}return new cO(t)}}const im=new WeakMap,jx=new WeakMap;var Ls;(function(r){r[r.ExcludeBuffers=1]="ExcludeBuffers",r[r.IncludeAnonymous=2]="IncludeAnonymous",r[r.IgnoreMounts=4]="IgnoreMounts",r[r.IgnoreOverlays=8]="IgnoreOverlays"})(Ls||(Ls={}));class io{constructor(e,t,n,i,s){if(this.type=e,this.children=t,this.positions=n,this.length=i,this.props=null,s&&s.length){this.props=Object.create(null);for(let[a,l]of s)this.props[typeof a=="number"?a:a.id]=l}}toString(){let e=this.prop(Gi.mounted);if(e&&!e.overlay)return e.tree.toString();let t="";for(let n of this.children){let i=n.toString();i&&(t&&(t+=","),t+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new ad(this.topNode,e)}cursorAt(e,t=0,n=0){let i=im.get(this)||this.topNode,s=new ad(i);return s.moveTo(e,t),im.set(this,s._tree),s}get topNode(){return new ru(this,0,0,null)}resolve(e,t=0){let n=Yp(im.get(this)||this.topNode,e,t,!1);return im.set(this,n),n}resolveInner(e,t=0){let n=Yp(jx.get(this)||this.topNode,e,t,!0);return jx.set(this,n),n}iterate(e){let{enter:t,leave:n,from:i=0,to:s=this.length}=e,a=e.mode||0,l=(a&Ls.IncludeAnonymous)>0;for(let p=this.cursor(a|Ls.IncludeAnonymous);;){let m=!1;if(p.from<=s&&p.to>=i&&(!l&&p.type.isAnonymous||t(p)!==!1)){if(p.firstChild())continue;m=!0}for(;m&&n&&(l||!p.type.isAnonymous)&&n(p),!p.nextSibling();){if(!p.parent())return;m=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:fO(ga.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,i)=>new io(this.type,t,n,i,this.propValues),e.makeTree||((t,n,i)=>new io(ga.none,t,n,i)))}static build(e){return p_(e)}}io.empty=new io(ga.none,[],[],0);class hO{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new hO(this.buffer,this.index)}}class Kh{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return ga.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],i=this.set.types[t],s=i.name;if(/\W/.test(s)&&!i.isError&&(s=JSON.stringify(s)),e+=4,n==e)return s;let a=[];for(;e<n;)a.push(this.childString(e)),e=this.buffer[e+3];return s+"("+a.join(",")+")"}findChild(e,t,n,i,s){let{buffer:a}=this,l=-1;for(let p=e;p!=t&&!(y2(s,i,a[p+1],a[p+2])&&(l=p,n>0));p=a[p+3]);return l}slice(e,t,n){let i=this.buffer,s=new Uint16Array(t-e),a=0;for(let l=e,p=0;l<t;){s[p++]=i[l++],s[p++]=i[l++]-n;let m=s[p++]=i[l++]-n;s[p++]=i[l++]-e,a=Math.max(a,m)}return new Kh(s,a,this.set)}}function y2(r,e,t,n){switch(r){case-2:return t<e;case-1:return n>=e&&t<e;case 0:return t<e&&n>e;case 1:return t<=e&&n>e;case 2:return n>e;case 4:return!0}}function D2(r,e){let t=r.childBefore(e);for(;t;){let n=t.lastChild;if(!n||n.to!=t.to)break;n.type.isError&&n.from==n.to?(r=t,t=n.prevSibling):t=n}return r}function Yp(r,e,t,n){for(var i;r.from==r.to||(t<1?r.from>=e:r.from>e)||(t>-1?r.to<=e:r.to<e);){let a=!n&&r instanceof ru&&r.index<0?null:r.parent;if(!a)return r;r=a}let s=n?0:Ls.IgnoreOverlays;if(n)for(let a=r,l=a.parent;l;a=l,l=a.parent)a instanceof ru&&a.index<0&&((i=l.enter(e,t,s))===null||i===void 0?void 0:i.from)!=a.from&&(r=l);for(;;){let a=r.enter(e,t,s);if(!a)return r;r=a}}class ru{constructor(e,t,n,i){this._tree=e,this.from=t,this.index=n,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,i,s=0){for(let a=this;;){for(let{children:l,positions:p}=a._tree,m=t>0?l.length:-1;e!=m;e+=t){let g=l[e],b=p[e]+a.from;if(y2(i,n,b,b+g.length)){if(g instanceof Kh){if(s&Ls.ExcludeBuffers)continue;let S=g.findChild(0,g.buffer.length,t,n-b,i);if(S>-1)return new hl(new h_(a,g,e,b),null,S)}else if(s&Ls.IncludeAnonymous||!g.type.isAnonymous||pO(g)){let S;if(!(s&Ls.IgnoreMounts)&&g.props&&(S=g.prop(Gi.mounted))&&!S.overlay)return new ru(S.tree,b,e,a);let $=new ru(g,b,e,a);return s&Ls.IncludeAnonymous||!$.type.isAnonymous?$:$.nextChild(t<0?g.children.length-1:0,t,n,i)}}}if(s&Ls.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?e=a.index+t:e=t<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let i;if(!(n&Ls.IgnoreOverlays)&&(i=this._tree.prop(Gi.mounted))&&i.overlay){let s=e-this.from;for(let{from:a,to:l}of i.overlay)if((t>0?a<=s:a<s)&&(t<0?l>=s:l>s))return new ru(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new ad(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return Yp(this,e,t,!1)}resolveInner(e,t=0){return Yp(this,e,t,!0)}enterUnfinishedNodesBefore(e){return D2(this,e)}getChild(e,t=null,n=null){let i=Hm(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return Hm(this,e,t,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return Jm(this,e)}}function Hm(r,e,t,n){let i=r.cursor(),s=[];if(!i.firstChild())return s;if(t!=null){for(;!i.type.is(t);)if(!i.nextSibling())return s}for(;;){if(n!=null&&i.type.is(n))return s;if(i.type.is(e)&&s.push(i.node),!i.nextSibling())return n==null?s:[]}}function Jm(r,e,t=e.length-1){for(let n=r.parent;t>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[t]&&e[t]!=n.name)return!1;t--}}return!0}class h_{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class hl{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return s<0?null:new hl(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&Ls.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return s<0?null:new hl(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new hl(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new hl(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new ad(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,s=n.buffer[this.index+3];if(s>i){let a=n.buffer[this.index+1];e.push(n.slice(i,s,a)),t.push(0)}return new io(this.type,e,t,this.to-this.from)}resolve(e,t=0){return Yp(this,e,t,!1)}resolveInner(e,t=0){return Yp(this,e,t,!0)}enterUnfinishedNodesBefore(e){return D2(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let i=Hm(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return Hm(this,e,t,n)}get node(){return this}matchContext(e){return Jm(this,e)}}class ad{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof ru)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return e?e instanceof ru?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,s=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&Ls.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Ls.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Ls.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let i=n<0?0:this.stack[n]+4;if(this.index!=i)return this.yieldBuf(t.findChild(i,this.index,-1,0,4))}else{let i=t.buffer[this.index+3];if(i<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(i)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(i.buffer.buffer[s+3]<this.index)return!1;({index:t,parent:n}=i)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let s=t+e,a=e<0?-1:n._tree.children.length;s!=a;s+=e){let l=n._tree.children[s];if(this.mode&Ls.IncludeAnonymous||l instanceof Kh||!l.type.isAnonymous||pO(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let i=this.index,s=this.stack.length;s>=0;){for(let a=e;a;a=a._parent)if(a.index==i){if(i==this.index)return a;t=a,n=s+1;break e}i=this.stack[--s]}for(let i=n;i<this.stack.length;i++)t=new hl(this.buffer,t,this.stack[i]);return this.bufferNode=new hl(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let i=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(i=!0)}for(;i&&t&&t(this),i=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,i=!0}}}matchContext(e){if(!this.buffer)return Jm(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let i=e.length-1,s=this.stack.length-1;i>=0;s--){if(s<0)return Jm(this.node,e,i);let a=n[t.buffer[this.stack[s]]];if(!a.isAnonymous){if(e[i]&&e[i]!=a.name)return!1;i--}}return!0}}function pO(r){return r.children.some(e=>e instanceof Kh||!e.type.isAnonymous||pO(e))}function p_(r){var e;let{buffer:t,nodeSet:n,maxBufferLength:i=g2,reused:s=[],minRepeatType:a=n.types.length}=r,l=Array.isArray(t)?new hO(t,t.length):t,p=n.types,m=0,g=0;function b(ht,bt,Yt,ir,qr){let{id:yr,start:kr,end:Zr,size:zn}=l,Gn=g;for(;zn<0;)if(l.next(),zn==-1){let jn=s[yr];Yt.push(jn),ir.push(kr-ht);return}else if(zn==-3){m=yr;return}else if(zn==-4){g=yr;return}else throw new RangeError(`Unrecognized record size: ${zn}`);let Ii=p[yr],ii,Sn,Wn=kr-ht;if(Zr-kr<=i&&(Sn=be(l.pos-bt,qr))){let jn=new Uint16Array(Sn.size-Sn.skip),Bn=l.pos-Sn.size,$i=jn.length;for(;l.pos>Bn;)$i=ke(Sn.start,jn,$i);ii=new Kh(jn,Zr-Sn.start,n),Wn=Sn.start-ht}else{let jn=l.pos-zn;l.next();let Bn=[],$i=[],Ui=yr>=a?yr:-1,os=0,ds=Zr;for(;l.pos>jn;)Ui>=0&&l.id==Ui&&l.size>=0?(l.end<=ds-i&&($(Bn,$i,kr,os,l.end,ds,Ui,Gn),os=Bn.length,ds=l.end),l.next()):b(kr,jn,Bn,$i,Ui);if(Ui>=0&&os>0&&os<Bn.length&&$(Bn,$i,kr,os,kr,ds,Ui,Gn),Bn.reverse(),$i.reverse(),Ui>-1&&os>0){let us=S(Ii);ii=fO(Ii,Bn,$i,0,Bn.length,0,Zr-kr,us,us)}else ii=G(Ii,Bn,$i,Zr-kr,Gn-Zr)}Yt.push(ii),ir.push(Wn)}function S(ht){return(bt,Yt,ir)=>{let qr=0,yr=bt.length-1,kr,Zr;if(yr>=0&&(kr=bt[yr])instanceof io){if(!yr&&kr.type==ht&&kr.length==ir)return kr;(Zr=kr.prop(Gi.lookAhead))&&(qr=Yt[yr]+kr.length+Zr)}return G(ht,bt,Yt,ir,qr)}}function $(ht,bt,Yt,ir,qr,yr,kr,Zr){let zn=[],Gn=[];for(;ht.length>ir;)zn.push(ht.pop()),Gn.push(bt.pop()+Yt-qr);ht.push(G(n.types[kr],zn,Gn,yr-qr,Zr-yr)),bt.push(qr-Yt)}function G(ht,bt,Yt,ir,qr=0,yr){if(m){let kr=[Gi.contextHash,m];yr=yr?[kr].concat(yr):[kr]}if(qr>25){let kr=[Gi.lookAhead,qr];yr=yr?[kr].concat(yr):[kr]}return new io(ht,bt,Yt,ir,yr)}function be(ht,bt){let Yt=l.fork(),ir=0,qr=0,yr=0,kr=Yt.end-i,Zr={size:0,start:0,skip:0};e:for(let zn=Yt.pos-ht;Yt.pos>zn;){let Gn=Yt.size;if(Yt.id==bt&&Gn>=0){Zr.size=ir,Zr.start=qr,Zr.skip=yr,yr+=4,ir+=4,Yt.next();continue}let Ii=Yt.pos-Gn;if(Gn<0||Ii<zn||Yt.start<kr)break;let ii=Yt.id>=a?4:0,Sn=Yt.start;for(Yt.next();Yt.pos>Ii;){if(Yt.size<0)if(Yt.size==-3)ii+=4;else break e;else Yt.id>=a&&(ii+=4);Yt.next()}qr=Sn,ir+=Gn,yr+=ii}return(bt<0||ir==ht)&&(Zr.size=ir,Zr.start=qr,Zr.skip=yr),Zr.size>4?Zr:void 0}function ke(ht,bt,Yt){let{id:ir,start:qr,end:yr,size:kr}=l;if(l.next(),kr>=0&&ir<a){let Zr=Yt;if(kr>4){let zn=l.pos-(kr-4);for(;l.pos>zn;)Yt=ke(ht,bt,Yt)}bt[--Yt]=Zr,bt[--Yt]=yr-ht,bt[--Yt]=qr-ht,bt[--Yt]=ir}else kr==-3?m=ir:kr==-4&&(g=ir);return Yt}let me=[],Ve=[];for(;l.pos>0;)b(r.start||0,r.bufferStart||0,me,Ve,-1);let Dt=(e=r.length)!==null&&e!==void 0?e:me.length?Ve[0]+me[0].length:0;return new io(p[r.topID],me.reverse(),Ve.reverse(),Dt)}const Lx=new WeakMap;function Tm(r,e){if(!r.isAnonymous||e instanceof Kh||e.type!=r)return 1;let t=Lx.get(e);if(t==null){t=1;for(let n of e.children){if(n.type!=r||!(n instanceof io)){t=1;break}t+=Tm(r,n)}Lx.set(e,t)}return t}function fO(r,e,t,n,i,s,a,l,p){let m=0;for(let G=n;G<i;G++)m+=Tm(r,e[G]);let g=Math.ceil(m*1.5/8),b=[],S=[];function $(G,be,ke,me,Ve){for(let Dt=ke;Dt<me;){let ht=Dt,bt=be[Dt],Yt=Tm(r,G[Dt]);for(Dt++;Dt<me;Dt++){let ir=Tm(r,G[Dt]);if(Yt+ir>=g)break;Yt+=ir}if(Dt==ht+1){if(Yt>g){let ir=G[ht];$(ir.children,ir.positions,0,ir.children.length,be[ht]+Ve);continue}b.push(G[ht])}else{let ir=be[Dt-1]+G[Dt-1].length-bt;b.push(fO(r,G,be,ht,Dt,bt,ir,null,p))}S.push(bt+Ve-s)}}return $(e,t,n,i,0),(l||p)(b,S,a)}class O2{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof hl?this.setBuffer(e.context.buffer,e.index,t):e instanceof ru&&this.map.set(e.tree,t)}get(e){return e instanceof hl?this.getBuffer(e.context.buffer,e.index):e instanceof ru?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class ec{constructor(e,t,n,i,s=!1,a=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(s?1:0)|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],n=!1){let i=[new ec(0,e.length,e,0,!1,n)];for(let s of t)s.to>e.length&&i.push(s);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],s=1,a=e.length?e[0]:null;for(let l=0,p=0,m=0;;l++){let g=l<t.length?t[l]:null,b=g?g.fromA:1e9;if(b-p>=n)for(;a&&a.from<b;){let S=a;if(p>=S.from||b<=S.to||m){let $=Math.max(S.from,p)-m,G=Math.min(S.to,b)-m;S=$>=G?null:new ec($,G,S.tree,S.offset+m,l>0,!!g)}if(S&&i.push(S),a.to>b)break;a=s<e.length?e[s++]:null}if(!g)break;p=g.toA,m=g.toA-g.toB}return i}}class x2{startParse(e,t,n){return typeof e=="string"&&(e=new f_(e)),n=n?n.length?n.map(i=>new Ja(i.from,i.to)):[new Ja(0,0)]:[new Ja(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let s=i.advance();if(s)return s}}}class f_{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function d_(r){return(e,t,n,i)=>new g_(e,r,t,n,i)}class Xx{constructor(e,t,n,i,s){if(this.parser=e,this.parse=t,this.overlay=n,this.target=i,this.ranges=s,!s.length||s.some(a=>a.from>=a.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(s))}}class m_{constructor(e,t,n,i,s,a,l){this.parser=e,this.predicate=t,this.mounts=n,this.index=i,this.start=s,this.target=a,this.prev=l,this.depth=0,this.ranges=[]}}const rD=new Gi({perNode:!0});class g_{constructor(e,t,n,i,s){this.nest=t,this.input=n,this.fragments=i,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new io(n.type,n.children,n.positions,n.length,n.propValues.concat([[rD,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[Gi.mounted.id]=new l_(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].ranges[0].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new O_(this.fragments),t=null,n=null,i=new ad(new ru(this.baseTree,this.ranges[0].from,0,null),Ls.IncludeAnonymous|Ls.IgnoreMounts);e:for(let s,a;this.stoppedAt==null||i.from<this.stoppedAt;){let l=!0,p;if(e.hasNode(i)){if(t){let m=t.mounts.find(g=>g.frag.from<=i.from&&g.frag.to>=i.to&&g.mount.overlay);if(m)for(let g of m.mount.overlay){let b=g.from+m.pos,S=g.to+m.pos;b>=i.from&&S<=i.to&&!t.ranges.some($=>$.from<S&&$.to>b)&&t.ranges.push({from:b,to:S})}}l=!1}else if(n&&(a=y_(n.ranges,i.from,i.to)))l=a!=2;else if(!i.type.isAnonymous&&i.from<i.to&&(s=this.nest(i,this.input))){i.tree||D_(i);let m=e.findMounts(i.from,s.parser);if(typeof s.overlay=="function")t=new m_(s.parser,s.overlay,m,this.inner.length,i.from,i.tree,t);else{let g=qx(this.ranges,s.overlay||[new Ja(i.from,i.to)]);g.length&&this.inner.push(new Xx(s.parser,s.parser.startParse(this.input,zx(m,g),g),s.overlay?s.overlay.map(b=>new Ja(b.from-i.from,b.to-i.from)):null,i.tree,g)),s.overlay?g.length&&(n={ranges:g,depth:0,prev:n}):l=!1}}else t&&(p=t.predicate(i))&&(p===!0&&(p=new Ja(i.from,i.to)),p.from<p.to&&t.ranges.push(p));if(l&&i.firstChild())t&&t.depth++,n&&n.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(t&&!--t.depth){let m=qx(this.ranges,t.ranges);m.length&&this.inner.splice(t.index,0,new Xx(t.parser,t.parser.startParse(this.input,zx(t.mounts,m),m),t.ranges.map(g=>new Ja(g.from-t.start,g.to-t.start)),t.target,m)),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function y_(r,e,t){for(let n of r){if(n.from>=t)break;if(n.to>e)return n.from<=e&&n.to>=t?2:1}return 0}function Vx(r,e,t,n,i,s){if(e<t){let a=r.buffer[e+1];n.push(r.slice(e,t,a)),i.push(a-s)}}function D_(r){let{node:e}=r,t=0;do r.parent(),t++;while(!r.tree);let n=0,i=r.tree,s=0;for(;s=i.positions[n]+r.from,!(s<=e.from&&s+i.children[n].length>=e.to);n++);let a=i.children[n],l=a.buffer;function p(m,g,b,S,$){let G=m;for(;l[G+2]+s<=e.from;)G=l[G+3];let be=[],ke=[];Vx(a,m,G,be,ke,S);let me=l[G+1],Ve=l[G+2],Dt=me+s==e.from&&Ve+s==e.to&&l[G]==e.type.id;return be.push(Dt?e.toTree():p(G+4,l[G+3],a.set.types[l[G]],me,Ve-me)),ke.push(me-S),Vx(a,l[G+3],g,be,ke,S),new io(b,be,ke,$)}i.children[n]=p(0,l.length,ga.none,0,a.length);for(let m=0;m<=t;m++)r.childAfter(e.from)}class Ux{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(Ls.IncludeAnonymous|Ls.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from<n;)t.to>=e&&t.enter(n,1,Ls.IgnoreOverlays|Ls.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof io)t=t.children[0];else break}return!1}}let O_=class{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(t=n.tree.prop(rD))!==null&&t!==void 0?t:n.to,this.inner=new Ux(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(rD))!==null&&e!==void 0?e:t.to,this.inner=new Ux(t.tree,-t.offset)}}findMounts(e,t){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let s=this.inner.cursor.node;s;s=s.parent){let a=(n=s.tree)===null||n===void 0?void 0:n.prop(Gi.mounted);if(a&&a.parser==t)for(let l=this.fragI;l<this.fragments.length;l++){let p=this.fragments[l];if(p.from>=s.to)break;p.tree==this.curFrag.tree&&i.push({frag:p,pos:s.from-p.offset,mount:a})}}}return i}};function qx(r,e){let t=null,n=e;for(let i=1,s=0;i<r.length;i++){let a=r[i-1].to,l=r[i].from;for(;s<n.length;s++){let p=n[s];if(p.from>=l)break;p.to<=a||(t||(n=t=e.slice()),p.from<a?(t[s]=new Ja(p.from,a),p.to>l&&t.splice(s+1,0,new Ja(l,p.to))):p.to>l?t[s--]=new Ja(l,p.to):t.splice(s--,1))}}return n}function x_(r,e,t,n){let i=0,s=0,a=!1,l=!1,p=-1e9,m=[];for(;;){let g=i==r.length?1e9:a?r[i].to:r[i].from,b=s==e.length?1e9:l?e[s].to:e[s].from;if(a!=l){let S=Math.max(p,t),$=Math.min(g,b,n);S<$&&m.push(new Ja(S,$))}if(p=Math.min(g,b),p==1e9)break;g==p&&(a?(a=!1,i++):a=!0),b==p&&(l?(l=!1,s++):l=!0)}return m}function zx(r,e){let t=[];for(let{pos:n,mount:i,frag:s}of r){let a=n+(i.overlay?i.overlay[0].from:0),l=a+i.tree.length,p=Math.max(s.from,a),m=Math.min(s.to,l);if(i.overlay){let g=i.overlay.map(S=>new Ja(S.from+n,S.to+n)),b=x_(e,g,p,m);for(let S=0,$=p;;S++){let G=S==b.length,be=G?m:b[S].from;if(be>$&&t.push(new ec($,be,i.tree,-a,s.from>=$||s.openStart,s.to<=be||s.openEnd)),G)break;$=b[S].to}}else t.push(new ec(p,m,i.tree,-a,s.from>=a||s.openStart,s.to<=l||s.openEnd))}return t}let b_=0;class al{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=b_++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let t=new al([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new Km;return t=>t.modified.indexOf(e)>-1?t:Km.get(t.base||t,t.modified.concat(e).sort((n,i)=>n.id-i.id))}}let v_=0;class Km{constructor(){this.instances=[],this.id=v_++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(l=>l.base==e&&C_(t,l.modified));if(n)return n;let i=[],s=new al(i,e,t);for(let l of t)l.instances.push(s);let a=S_(t);for(let l of e.set)if(!l.modified.length)for(let p of a)i.push(Km.get(l,p));return s}}function C_(r,e){return r.length==e.length&&r.every((t,n)=>t==e[n])}function S_(r){let e=[[]];for(let t=0;t<r.length;t++)for(let n=0,i=e.length;n<i;n++)e.push(e[n].concat(r[t]));return e.sort((t,n)=>n.length-t.length)}function wd(r){let e=Object.create(null);for(let t in r){let n=r[t];Array.isArray(n)||(n=[n]);for(let i of t.split(" "))if(i){let s=[],a=2,l=i;for(let b=0;;){if(l=="..."&&b>0&&b+3==i.length){a=1;break}let S=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!S)throw new RangeError("Invalid path: "+i);if(s.push(S[0]=="*"?"":S[0][0]=='"'?JSON.parse(S[0]):S[0]),b+=S[0].length,b==i.length)break;let $=i[b++];if(b==i.length&&$=="!"){a=0;break}if($!="/")throw new RangeError("Invalid path: "+i);l=i.slice(b)}let p=s.length-1,m=s[p];if(!m)throw new RangeError("Invalid path: "+i);let g=new eg(n,a,p>0?s.slice(0,p):null);e[m]=g.sort(e[m])}}return b2.add(e)}const b2=new Gi;class eg{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}eg.empty=new eg([],2,null);function v2(r,e){let t=Object.create(null);for(let s of r)if(!Array.isArray(s.tag))t[s.tag.id]=s.class;else for(let a of s.tag)t[a.id]=s.class;let{scope:n,all:i=null}=e||{};return{style:s=>{let a=i;for(let l of s)for(let p of l.set){let m=t[p.id];if(m){a=a?a+" "+m:m;break}}return a},scope:n}}function E_(r,e){let t=null;for(let n of r){let i=n.style(e);i&&(t=t?t+" "+i:i)}return t}function w_(r,e,t,n=0,i=r.length){let s=new A_(n,Array.isArray(e)?e:[e],t);s.highlightRange(r.cursor(),n,i,"",s.highlighters),s.flush(i)}class A_{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,s){let{type:a,from:l,to:p}=e;if(l>=n||p<=t)return;a.isTop&&(s=this.highlighters.filter($=>!$.scope||$.scope(a)));let m=i,g=T_(e)||eg.empty,b=E_(s,g.tags);if(b&&(m&&(m+=" "),m+=b,g.mode==1&&(i+=(i?" ":"")+b)),this.startSpan(Math.max(t,l),m),g.opaque)return;let S=e.tree&&e.tree.prop(Gi.mounted);if(S&&S.overlay){let $=e.node.enter(S.overlay[0].from+l,1),G=this.highlighters.filter(ke=>!ke.scope||ke.scope(S.tree.type)),be=e.firstChild();for(let ke=0,me=l;;ke++){let Ve=ke<S.overlay.length?S.overlay[ke]:null,Dt=Ve?Ve.from+l:p,ht=Math.max(t,me),bt=Math.min(n,Dt);if(ht<bt&&be)for(;e.from<bt&&(this.highlightRange(e,ht,bt,i,s),this.startSpan(Math.min(bt,e.to),m),!(e.to>=Dt||!e.nextSibling())););if(!Ve||Dt>n)break;me=Ve.to+l,me>t&&(this.highlightRange($.cursor(),Math.max(t,Ve.from+l),Math.min(n,me),"",G),this.startSpan(Math.min(n,me),m))}be&&e.parent()}else if(e.firstChild()){S&&(i="");do if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,s),this.startSpan(Math.min(n,e.to),m)}while(e.nextSibling());e.parent()}}}function T_(r){let e=r.type.prop(b2);for(;e&&e.context&&!r.matchContext(e.context);)e=e.next;return e||null}const On=al.define,sm=On(),Mc=On(),Wx=On(Mc),Zx=On(Mc),Rc=On(),om=On(Rc),R0=On(Rc),sl=On(),Th=On(sl),nl=On(),il=On(),nD=On(),Df=On(nD),am=On(),He={comment:sm,lineComment:On(sm),blockComment:On(sm),docComment:On(sm),name:Mc,variableName:On(Mc),typeName:Wx,tagName:On(Wx),propertyName:Zx,attributeName:On(Zx),className:On(Mc),labelName:On(Mc),namespace:On(Mc),macroName:On(Mc),literal:Rc,string:om,docString:On(om),character:On(om),attributeValue:On(om),number:R0,integer:On(R0),float:On(R0),bool:On(Rc),regexp:On(Rc),escape:On(Rc),color:On(Rc),url:On(Rc),keyword:nl,self:On(nl),null:On(nl),atom:On(nl),unit:On(nl),modifier:On(nl),operatorKeyword:On(nl),controlKeyword:On(nl),definitionKeyword:On(nl),moduleKeyword:On(nl),operator:il,derefOperator:On(il),arithmeticOperator:On(il),logicOperator:On(il),bitwiseOperator:On(il),compareOperator:On(il),updateOperator:On(il),definitionOperator:On(il),typeOperator:On(il),controlOperator:On(il),punctuation:nD,separator:On(nD),bracket:Df,angleBracket:On(Df),squareBracket:On(Df),paren:On(Df),brace:On(Df),content:sl,heading:Th,heading1:On(Th),heading2:On(Th),heading3:On(Th),heading4:On(Th),heading5:On(Th),heading6:On(Th),contentSeparator:On(sl),list:On(sl),quote:On(sl),emphasis:On(sl),strong:On(sl),link:On(sl),monospace:On(sl),strikethrough:On(sl),inserted:On(),deleted:On(),changed:On(),invalid:On(),meta:am,documentMeta:On(am),annotation:On(am),processingInstruction:On(am),definition:al.defineModifier(),constant:al.defineModifier(),function:al.defineModifier(),standard:al.defineModifier(),local:al.defineModifier(),special:al.defineModifier()};v2([{tag:He.link,class:"tok-link"},{tag:He.heading,class:"tok-heading"},{tag:He.emphasis,class:"tok-emphasis"},{tag:He.strong,class:"tok-strong"},{tag:He.keyword,class:"tok-keyword"},{tag:He.atom,class:"tok-atom"},{tag:He.bool,class:"tok-bool"},{tag:He.url,class:"tok-url"},{tag:He.labelName,class:"tok-labelName"},{tag:He.inserted,class:"tok-inserted"},{tag:He.deleted,class:"tok-deleted"},{tag:He.literal,class:"tok-literal"},{tag:He.string,class:"tok-string"},{tag:He.number,class:"tok-number"},{tag:[He.regexp,He.escape,He.special(He.string)],class:"tok-string2"},{tag:He.variableName,class:"tok-variableName"},{tag:He.local(He.variableName),class:"tok-variableName tok-local"},{tag:He.definition(He.variableName),class:"tok-variableName tok-definition"},{tag:He.special(He.variableName),class:"tok-variableName2"},{tag:He.definition(He.propertyName),class:"tok-propertyName tok-definition"},{tag:He.typeName,class:"tok-typeName"},{tag:He.namespace,class:"tok-namespace"},{tag:He.className,class:"tok-className"},{tag:He.macroName,class:"tok-macroName"},{tag:He.propertyName,class:"tok-propertyName"},{tag:He.operator,class:"tok-operator"},{tag:He.comment,class:"tok-comment"},{tag:He.meta,class:"tok-meta"},{tag:He.invalid,class:"tok-invalid"},{tag:He.punctuation,class:"tok-punctuation"}]);var Q0;const kp=new Gi;function C2(r){return qn.define({combine:r?e=>e.concat(r):void 0})}const dO=new Gi;class Cu{constructor(e,t,n=[],i=""){this.data=e,this.name=i,gs.prototype.hasOwnProperty("tree")||Object.defineProperty(gs.prototype,"tree",{get(){return po(this)}}),this.parser=t,this.extension=[ih.of(this),gs.languageData.of((s,a,l)=>{let p=Yx(s,a,l),m=p.type.prop(kp);if(!m)return[];let g=s.facet(m),b=p.type.prop(dO);if(b){let S=p.resolve(a-p.from,l);for(let $ of b)if($.test(S,s)){let G=s.facet($.facet);return $.type=="replace"?G:G.concat(g)}}return g})].concat(n)}isActiveAt(e,t,n=-1){return Yx(e,t,n).type.prop(kp)==this.data}findRegions(e){let t=e.facet(ih);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],i=(s,a)=>{if(s.prop(kp)==this.data){n.push({from:a,to:a+s.length});return}let l=s.prop(Gi.mounted);if(l){if(l.tree.prop(kp)==this.data){if(l.overlay)for(let p of l.overlay)n.push({from:p.from+a,to:p.to+a});else n.push({from:a,to:a+s.length});return}else if(l.overlay){let p=n.length;if(i(l.tree,l.overlay[0].from+a),n.length>p)return}}for(let p=0;p<s.children.length;p++){let m=s.children[p];m instanceof io&&i(m,s.positions[p]+a)}};return i(po(e),0),n}get allowsNesting(){return!0}}Cu.setState=Qi.define();function Yx(r,e,t){let n=r.facet(ih),i=po(r).topNode;if(!n||n.allowsNesting)for(let s=i;s;s=s.enter(e,t,Ls.ExcludeBuffers))s.type.isTop&&(i=s);return i}class Wh extends Cu{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=C2(e.languageData);return new Wh(t,e.parser.configure({props:[kp.add(n=>n.isTop?t:void 0)]}),e.name)}configure(e,t){return new Wh(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function po(r){let e=r.field(Cu.state,!1);return e?e.tree:io.empty}class P_{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let Of=null;class tg{constructor(e,t,n=[],i,s,a,l,p){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=s,this.viewport=a,this.skipped=l,this.scheduleOn=p,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new tg(e,t,[],io.empty,0,n,[],null)}startParse(){return this.parser.startParse(new P_(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=io.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(ec.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(ec.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Of;Of=this;try{return e()}finally{Of=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Gx(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:s,viewport:a,skipped:l}=this;if(this.takeTree(),!e.empty){let p=[];if(e.iterChangedRanges((m,g,b,S)=>p.push({fromA:m,toA:g,fromB:b,toB:S})),n=ec.applyChanges(n,p),i=io.empty,s=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){l=[];for(let m of this.skipped){let g=e.mapPos(m.from,1),b=e.mapPos(m.to,-1);g<b&&l.push({from:g,to:b})}}}return new tg(this.parser,t,n,i,s,a,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:i,to:s}=this.skipped[n];i<e.to&&s>e.from&&(this.fragments=Gx(this.fragments,i,s),this.skipped.splice(n--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends x2{createParse(t,n,i){let s=i[0].from,a=i[i.length-1].to;return{parsedPos:s,advance(){let p=Of;if(p){for(let m of i)p.tempSkipped.push(m);e&&(p.scheduleOn=p.scheduleOn?Promise.all([p.scheduleOn,e]):e)}return this.parsedPos=a,new io(ga.none,[],[],a-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Of}}function Gx(r,e,t){return ec.applyChanges(r,[{fromA:e,toA:t,fromB:e,toB:t}])}class Gp{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new Gp(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=tg.create(e.facet(ih).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new Gp(n)}}Cu.state=Po.define({create:Gp.init,update(r,e){for(let t of e.effects)if(t.is(Cu.setState))return t.value;return e.startState.facet(ih)!=e.state.facet(ih)?Gp.init(e.state):r.apply(e)}});let S2=r=>{let e=setTimeout(()=>r(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(S2=r=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(r,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const j0=typeof navigator<"u"&&(!((Q0=navigator.scheduling)===null||Q0===void 0)&&Q0.isInputPending)?()=>navigator.scheduling.isInputPending():null,k_=bo.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Cu.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Cu.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=S2(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:i}}=this.view,s=n.field(Cu.state);if(s.tree==s.context.tree&&s.context.isDone(i+1e5))return;let a=Date.now()+Math.min(this.chunkBudget,100,e&&!j0?Math.max(25,e.timeRemaining()-5):1e9),l=s.context.treeLen<i&&n.doc.length>i+1e3,p=s.context.work(()=>j0&&j0()||Date.now()>a,i+(l?0:1e5));this.chunkBudget-=Date.now()-t,(p||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:Cu.setState.of(new Gp(s.context))})),this.chunkBudget>0&&!(p&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>wu(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),ih=qn.define({combine(r){return r.length?r[0]:null},enables:r=>[Cu.state,k_,Qn.contentAttributes.compute([r],e=>{let t=e.facet(r);return t&&t.name?{"data-language":t.name}:{}})]});class mO{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const F_=qn.define(),qg=qn.define({combine:r=>{if(!r.length)return" ";let e=r[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(r[0]));return e}});function rg(r){let e=r.facet(qg);return e.charCodeAt(0)==9?r.tabSize*e.length:e.length}function ud(r,e){let t="",n=r.tabSize,i=r.facet(qg)[0];if(i==" "){for(;e>=n;)t+=" ",e-=n;i=" "}for(let s=0;s<e;s++)t+=i;return t}function gO(r,e){r instanceof gs&&(r=new zg(r));for(let n of r.state.facet(F_)){let i=n(r,e);if(i!==void 0)return i}let t=po(r.state);return t?__(r,t,e):null}class zg{constructor(e,t={}){this.state=e,this.options=t,this.unit=rg(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:s}=this.options;return i!=null&&i>=n.from&&i<=n.to?s&&i==e?{text:"",from:e}:(t<0?i<e:i<=e)?{text:n.text.slice(i-n.from),from:i}:{text:n.text.slice(0,i-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:i}=this.lineAt(e,t);return n.slice(e-i,Math.min(n.length,e+100-i))}column(e,t=1){let{text:n,from:i}=this.lineAt(e,t),s=this.countColumn(n,e-i),a=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return a>-1&&(s+=a-this.countColumn(n,n.search(/\S|$/))),s}countColumn(e,t=e.length){return xd(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),s=this.options.overrideIndentation;if(s){let a=s(i);if(a>-1)return a}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Ad=new Gi;function __(r,e,t){return E2(e.resolveInner(t).enterUnfinishedNodesBefore(t),t,r)}function $_(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function B_(r){let e=r.type.prop(Ad);if(e)return e;let t=r.firstChild,n;if(t&&(n=t.type.prop(Gi.closedBy))){let i=r.lastChild,s=i&&n.indexOf(i.name)>-1;return a=>w2(a,!0,1,void 0,s&&!$_(a)?i.from:void 0)}return r.parent==null?N_:null}function E2(r,e,t){for(;r;r=r.parent){let n=B_(r);if(n)return n(yO.create(t,e,r))}return null}function N_(){return 0}class yO extends zg{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}static create(e,t,n){return new yO(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(I_(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){let e=this.node.parent;return e?E2(e,this.pos,this.base):0}}function I_(r,e){for(let t=e;t;t=t.parent)if(r==t)return!0;return!1}function M_(r){let e=r.node,t=e.childAfter(e.from),n=e.lastChild;if(!t)return null;let i=r.options.simulateBreak,s=r.state.doc.lineAt(t.from),a=i==null||i<=s.from?s.to:Math.min(s.to,i);for(let l=t.to;;){let p=e.childAfter(l);if(!p||p==n)return null;if(!p.type.isSkipped)return p.from<a?t:null;l=p.to}}function R_({closing:r,align:e=!0,units:t=1}){return n=>w2(n,e,t,r)}function w2(r,e,t,n,i){let s=r.textAfter,a=s.match(/^\s*/)[0].length,l=n&&s.slice(a,a+n.length)==n||i==r.pos+a,p=e?M_(r):null;return p?l?r.column(p.from):r.column(p.to):r.baseIndent+(l?0:r.unit*t)}const Q_=r=>r.baseIndent;function Pm({except:r,units:e=1}={}){return t=>{let n=r&&r.test(t.textAfter);return t.baseIndent+(n?0:e*t.unit)}}const j_=200;function L_(){return gs.transactionFilter.of(r=>{if(!r.docChanged||!r.isUserEvent("input.type")&&!r.isUserEvent("input.complete"))return r;let e=r.startState.languageDataAt("indentOnInput",r.startState.selection.main.head);if(!e.length)return r;let t=r.newDoc,{head:n}=r.newSelection.main,i=t.lineAt(n);if(n>i.from+j_)return r;let s=t.sliceString(i.from,n);if(!e.some(m=>m.test(s)))return r;let{state:a}=r,l=-1,p=[];for(let{head:m}of a.selection.ranges){let g=a.doc.lineAt(m);if(g.from==l)continue;l=g.from;let b=gO(a,g.from);if(b==null)continue;let S=/^\s*/.exec(g.text)[0],$=ud(a,b);S!=$&&p.push({from:g.from,to:g.from+S.length,insert:$})}return p.length?[r,{changes:p,sequential:!0}]:r})}const X_=qn.define(),Td=new Gi;function A2(r){let e=r.firstChild,t=r.lastChild;return e&&e.to<t.from?{from:e.to,to:t.type.isError?r.to:t.from}:null}function V_(r,e,t){let n=po(r);if(n.length<t)return null;let i=n.resolveInner(t,1),s=null;for(let a=i;a;a=a.parent){if(a.to<=t||a.from>t)continue;if(s&&a.from<e)break;let l=a.type.prop(Td);if(l&&(a.to<n.length-50||n.length==r.doc.length||!U_(a))){let p=l(a,r);p&&p.from<=t&&p.from>=e&&p.to>t&&(s=p)}}return s}function U_(r){let e=r.lastChild;return e&&e.to==r.to&&e.type.isError}function ng(r,e,t){for(let n of r.facet(X_)){let i=n(r,e,t);if(i)return i}return V_(r,e,t)}function T2(r,e){let t=e.mapPos(r.from,1),n=e.mapPos(r.to,-1);return t>=n?void 0:{from:t,to:n}}const Wg=Qi.define({map:T2}),Pd=Qi.define({map:T2});function P2(r){let e=[];for(let{head:t}of r.state.selection.ranges)e.some(n=>n.from<=t&&n.to>=t)||e.push(r.lineBlockAt(t));return e}const Zh=Po.define({create(){return _i.none},update(r,e){r=r.map(e.changes);for(let t of e.effects)t.is(Wg)&&!q_(r,t.value.from,t.value.to)?r=r.update({add:[Hx.range(t.value.from,t.value.to)]}):t.is(Pd)&&(r=r.update({filter:(n,i)=>t.value.from!=n||t.value.to!=i,filterFrom:t.value.from,filterTo:t.value.to}));if(e.selection){let t=!1,{head:n}=e.selection.main;r.between(n,n,(i,s)=>{i<n&&s>n&&(t=!0)}),t&&(r=r.update({filterFrom:n,filterTo:n,filter:(i,s)=>s<=n||i>=n}))}return r},provide:r=>Qn.decorations.from(r),toJSON(r,e){let t=[];return r.between(0,e.doc.length,(n,i)=>{t.push(n,i)}),t},fromJSON(r){if(!Array.isArray(r)||r.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<r.length;){let n=r[t++],i=r[t++];if(typeof n!="number"||typeof i!="number")throw new RangeError("Invalid JSON for fold state");e.push(Hx.range(n,i))}return _i.set(e,!0)}});function ig(r,e,t){var n;let i=null;return(n=r.field(Zh,!1))===null||n===void 0||n.between(e,t,(s,a)=>{(!i||i.from>s)&&(i={from:s,to:a})}),i}function q_(r,e,t){let n=!1;return r.between(e,e,(i,s)=>{i==e&&s==t&&(n=!0)}),n}function k2(r,e){return r.field(Zh,!1)?e:e.concat(Qi.appendConfig.of($2()))}const z_=r=>{for(let e of P2(r)){let t=ng(r.state,e.from,e.to);if(t)return r.dispatch({effects:k2(r.state,[Wg.of(t),F2(r,t)])}),!0}return!1},W_=r=>{if(!r.state.field(Zh,!1))return!1;let e=[];for(let t of P2(r)){let n=ig(r.state,t.from,t.to);n&&e.push(Pd.of(n),F2(r,n,!1))}return e.length&&r.dispatch({effects:e}),e.length>0};function F2(r,e,t=!0){let n=r.state.doc.lineAt(e.from).number,i=r.state.doc.lineAt(e.to).number;return Qn.announce.of(`${r.state.phrase(t?"Folded lines":"Unfolded lines")} ${n} ${r.state.phrase("to")} ${i}.`)}const Z_=r=>{let{state:e}=r,t=[];for(let n=0;n<e.doc.length;){let i=r.lineBlockAt(n),s=ng(e,i.from,i.to);s&&t.push(Wg.of(s)),n=(s?r.lineBlockAt(s.to):i).to+1}return t.length&&r.dispatch({effects:k2(r.state,t)}),!!t.length},Y_=r=>{let e=r.state.field(Zh,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,r.state.doc.length,(n,i)=>{t.push(Pd.of({from:n,to:i}))}),r.dispatch({effects:t}),!0},G_=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:z_},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:W_},{key:"Ctrl-Alt-[",run:Z_},{key:"Ctrl-Alt-]",run:Y_}],H_={placeholderDOM:null,placeholderText:"…"},_2=qn.define({combine(r){return Sl(r,H_)}});function $2(r){let e=[Zh,e$];return r&&e.push(_2.of(r)),e}const Hx=_i.replace({widget:new class extends oh{toDOM(r){let{state:e}=r,t=e.facet(_2),n=s=>{let a=r.lineBlockAt(r.posAtDOM(s.target)),l=ig(r.state,a.from,a.to);l&&r.dispatch({effects:Pd.of(l)}),s.preventDefault()};if(t.placeholderDOM)return t.placeholderDOM(r,n);let i=document.createElement("span");return i.textContent=t.placeholderText,i.setAttribute("aria-label",e.phrase("folded code")),i.title=e.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=n,i}}}),J_={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class L0 extends sc{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function K_(r={}){let e=Object.assign(Object.assign({},J_),r),t=new L0(e,!0),n=new L0(e,!1),i=bo.fromClass(class{constructor(a){this.from=a.viewport.from,this.markers=this.buildMarkers(a)}update(a){(a.docChanged||a.viewportChanged||a.startState.facet(ih)!=a.state.facet(ih)||a.startState.field(Zh,!1)!=a.state.field(Zh,!1)||po(a.startState)!=po(a.state)||e.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let l=new Kc;for(let p of a.viewportLineBlocks){let m=ig(a.state,p.from,p.to)?n:ng(a.state,p.from,p.to)?t:null;m&&l.add(p.from,p.from,m)}return l.finish()}}),{domEventHandlers:s}=e;return[i,E3({class:"cm-foldGutter",markers(a){var l;return((l=a.plugin(i))===null||l===void 0?void 0:l.markers)||Ss.empty},initialSpacer(){return new L0(e,!1)},domEventHandlers:Object.assign(Object.assign({},s),{click:(a,l,p)=>{if(s.click&&s.click(a,l,p))return!0;let m=ig(a.state,l.from,l.to);if(m)return a.dispatch({effects:Pd.of(m)}),!0;let g=ng(a.state,l.from,l.to);return g?(a.dispatch({effects:Wg.of(g)}),!0):!1}})}),$2()]}const e$=Qn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class kd{constructor(e,t){this.specs=e;let n;function i(l){let p=eh.newName();return(n||(n=Object.create(null)))["."+p]=l,p}const s=typeof t.all=="string"?t.all:t.all?i(t.all):void 0,a=t.scope;this.scope=a instanceof Cu?l=>l.prop(kp)==a.data:a?l=>l==a:void 0,this.style=v2(e.map(l=>({tag:l.tag,class:l.class||i(Object.assign({},l,{tag:null}))})),{all:s}).style,this.module=n?new eh(n):null,this.themeType=t.themeType}static define(e,t){return new kd(e,t||{})}}const iD=qn.define(),B2=qn.define({combine(r){return r.length?[r[0]]:null}});function X0(r){let e=r.facet(iD);return e.length?e:r.facet(B2)}function N2(r,e){let t=[r$],n;return r instanceof kd&&(r.module&&t.push(Qn.styleModule.of(r.module)),n=r.themeType),e!=null&&e.fallback?t.push(B2.of(r)):n?t.push(iD.computeN([Qn.darkTheme],i=>i.facet(Qn.darkTheme)==(n=="dark")?[r]:[])):t.push(iD.of(r)),t}class t${constructor(e){this.markCache=Object.create(null),this.tree=po(e.state),this.decorations=this.buildDeco(e,X0(e.state))}update(e){let t=po(e.state),n=X0(e.state),i=n!=X0(e.startState);t.length<e.view.viewport.to&&!i&&t.type==this.tree.type?this.decorations=this.decorations.map(e.changes):(t!=this.tree||e.viewportChanged||i)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n))}buildDeco(e,t){if(!t||!this.tree.length)return _i.none;let n=new Kc;for(let{from:i,to:s}of e.visibleRanges)w_(this.tree,t,(a,l,p)=>{n.add(a,l,this.markCache[p]||(this.markCache[p]=_i.mark({class:p})))},i,s);return n.finish()}}const r$=Jh.high(bo.fromClass(t$,{decorations:r=>r.decorations})),n$=kd.define([{tag:He.meta,color:"#404740"},{tag:He.link,textDecoration:"underline"},{tag:He.heading,textDecoration:"underline",fontWeight:"bold"},{tag:He.emphasis,fontStyle:"italic"},{tag:He.strong,fontWeight:"bold"},{tag:He.strikethrough,textDecoration:"line-through"},{tag:He.keyword,color:"#708"},{tag:[He.atom,He.bool,He.url,He.contentSeparator,He.labelName],color:"#219"},{tag:[He.literal,He.inserted],color:"#164"},{tag:[He.string,He.deleted],color:"#a11"},{tag:[He.regexp,He.escape,He.special(He.string)],color:"#e40"},{tag:He.definition(He.variableName),color:"#00f"},{tag:He.local(He.variableName),color:"#30a"},{tag:[He.typeName,He.namespace],color:"#085"},{tag:He.className,color:"#167"},{tag:[He.special(He.variableName),He.macroName],color:"#256"},{tag:He.definition(He.propertyName),color:"#00c"},{tag:He.comment,color:"#940"},{tag:He.invalid,color:"#f00"}]),i$=Qn.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),I2=1e4,M2="()[]{}",R2=qn.define({combine(r){return Sl(r,{afterCursor:!0,brackets:M2,maxScanDistance:I2,renderMatch:a$})}}),s$=_i.mark({class:"cm-matchingBracket"}),o$=_i.mark({class:"cm-nonmatchingBracket"});function a$(r){let e=[],t=r.matched?s$:o$;return e.push(t.range(r.start.from,r.start.to)),r.end&&e.push(t.range(r.end.from,r.end.to)),e}const u$=Po.define({create(){return _i.none},update(r,e){if(!e.docChanged&&!e.selection)return r;let t=[],n=e.state.facet(R2);for(let i of e.state.selection.ranges){if(!i.empty)continue;let s=pl(e.state,i.head,-1,n)||i.head>0&&pl(e.state,i.head-1,1,n)||n.afterCursor&&(pl(e.state,i.head,1,n)||i.head<e.state.doc.length&&pl(e.state,i.head+1,-1,n));s&&(t=t.concat(n.renderMatch(s,e.state)))}return _i.set(t,!0)},provide:r=>Qn.decorations.from(r)}),l$=[u$,i$];function c$(r={}){return[R2.of(r),l$]}const DO=new Gi;function sD(r,e,t){let n=r.prop(e<0?Gi.openedBy:Gi.closedBy);if(n)return n;if(r.name.length==1){let i=t.indexOf(r.name);if(i>-1&&i%2==(e<0?1:0))return[t[i+e]]}return null}function oD(r){let e=r.type.prop(DO);return e?e(r.node):r}function pl(r,e,t,n={}){let i=n.maxScanDistance||I2,s=n.brackets||M2,a=po(r),l=a.resolveInner(e,t);for(let p=l;p;p=p.parent){let m=sD(p.type,t,s);if(m&&p.from<p.to){let g=oD(p);if(g&&(t>0?e>=g.from&&e<g.to:e>g.from&&e<=g.to))return h$(r,e,t,p,g,m,s)}}return p$(r,e,t,a,l.type,i,s)}function h$(r,e,t,n,i,s,a){let l=n.parent,p={from:i.from,to:i.to},m=0,g=l==null?void 0:l.cursor();if(g&&(t<0?g.childBefore(n.from):g.childAfter(n.to)))do if(t<0?g.to<=n.from:g.from>=n.to){if(m==0&&s.indexOf(g.type.name)>-1&&g.from<g.to){let b=oD(g);return{start:p,end:b?{from:b.from,to:b.to}:void 0,matched:!0}}else if(sD(g.type,t,a))m++;else if(sD(g.type,-t,a)){if(m==0){let b=oD(g);return{start:p,end:b&&b.from<b.to?{from:b.from,to:b.to}:void 0,matched:!1}}m--}}while(t<0?g.prevSibling():g.nextSibling());return{start:p,matched:!1}}function p$(r,e,t,n,i,s,a){let l=t<0?r.sliceDoc(e-1,e):r.sliceDoc(e,e+1),p=a.indexOf(l);if(p<0||p%2==0!=t>0)return null;let m={from:t<0?e-1:e,to:t>0?e+1:e},g=r.doc.iterRange(e,t>0?r.doc.length:0),b=0;for(let S=0;!g.next().done&&S<=s;){let $=g.value;t<0&&(S+=$.length);let G=e+S*t;for(let be=t>0?0:$.length-1,ke=t>0?$.length:-1;be!=ke;be+=t){let me=a.indexOf($[be]);if(!(me<0||n.resolveInner(G+be,1).type!=i))if(me%2==0==t>0)b++;else{if(b==1)return{start:m,end:{from:G+be,to:G+be+1},matched:me>>1==p>>1};b--}}t>0&&(S+=$.length)}return g.done?{start:m,matched:!1}:null}const f$=Object.create(null),Jx=[ga.none],Kx=[],d$=Object.create(null);for(let[r,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])d$[r]=m$(f$,e);function V0(r,e){Kx.indexOf(r)>-1||(Kx.push(r),console.warn(e))}function m$(r,e){let t=null;for(let s of e.split(".")){let a=r[s]||He[s];a?typeof a=="function"?t?t=a(t):V0(s,`Modifier ${s} used at start of tag`):t?V0(s,`Tag ${s} used as modifier`):t=a:V0(s,`Unknown highlighting tag ${s}`)}if(!t)return 0;let n=e.replace(/ /g,"_"),i=ga.define({id:Jx.length,name:n,props:[wd({[n]:t})]});return Jx.push(i),i.id}const g$=r=>{let{state:e}=r,t=e.doc.lineAt(e.selection.main.from),n=xO(r.state,t.from);return n.line?y$(r):n.block?O$(r):!1};function OO(r,e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=r(e,t);return i?(n(t.update(i)),!0):!1}}const y$=OO(v$,0),D$=OO(Q2,0),O$=OO((r,e)=>Q2(r,e,b$(e)),0);function xO(r,e){let t=r.languageDataAt("commentTokens",e);return t.length?t[0]:{}}const xf=50;function x$(r,{open:e,close:t},n,i){let s=r.sliceDoc(n-xf,n),a=r.sliceDoc(i,i+xf),l=/\s*$/.exec(s)[0].length,p=/^\s*/.exec(a)[0].length,m=s.length-l;if(s.slice(m-e.length,m)==e&&a.slice(p,p+t.length)==t)return{open:{pos:n-l,margin:l&&1},close:{pos:i+p,margin:p&&1}};let g,b;i-n<=2*xf?g=b=r.sliceDoc(n,i):(g=r.sliceDoc(n,n+xf),b=r.sliceDoc(i-xf,i));let S=/^\s*/.exec(g)[0].length,$=/\s*$/.exec(b)[0].length,G=b.length-$-t.length;return g.slice(S,S+e.length)==e&&b.slice(G,G+t.length)==t?{open:{pos:n+S+e.length,margin:/\s/.test(g.charAt(S+e.length))?1:0},close:{pos:i-$-t.length,margin:/\s/.test(b.charAt(G-1))?1:0}}:null}function b$(r){let e=[];for(let t of r.selection.ranges){let n=r.doc.lineAt(t.from),i=t.to<=n.to?n:r.doc.lineAt(t.to),s=e.length-1;s>=0&&e[s].to>n.from?e[s].to=i.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:i.to})}return e}function Q2(r,e,t=e.selection.ranges){let n=t.map(s=>xO(e,s.from).block);if(!n.every(s=>s))return null;let i=t.map((s,a)=>x$(e,n[a],s.from,s.to));if(r!=2&&!i.every(s=>s))return{changes:e.changes(t.map((s,a)=>i[a]?[]:[{from:s.from,insert:n[a].open+" "},{from:s.to,insert:" "+n[a].close}]))};if(r!=1&&i.some(s=>s)){let s=[];for(let a=0,l;a<i.length;a++)if(l=i[a]){let p=n[a],{open:m,close:g}=l;s.push({from:m.pos-p.open.length,to:m.pos+m.margin},{from:g.pos-g.margin,to:g.pos+p.close.length})}return{changes:s}}return null}function v$(r,e,t=e.selection.ranges){let n=[],i=-1;for(let{from:s,to:a}of t){let l=n.length,p=1e9,m=xO(e,s).line;if(m){for(let g=s;g<=a;){let b=e.doc.lineAt(g);if(b.from>i&&(s==a||a>b.from)){i=b.from;let S=/^\s*/.exec(b.text)[0].length,$=S==b.length,G=b.text.slice(S,S+m.length)==m?S:-1;S<b.text.length&&S<p&&(p=S),n.push({line:b,comment:G,token:m,indent:S,empty:$,single:!1})}g=b.to+1}if(p<1e9)for(let g=l;g<n.length;g++)n[g].indent<n[g].line.text.length&&(n[g].indent=p);n.length==l+1&&(n[l].single=!0)}}if(r!=2&&n.some(s=>s.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:l,token:p,indent:m,empty:g,single:b}of n)(b||!g)&&s.push({from:l.from+m,insert:p+" "});let a=e.changes(s);return{changes:a,selection:e.selection.map(a,1)}}else if(r!=1&&n.some(s=>s.comment>=0)){let s=[];for(let{line:a,comment:l,token:p}of n)if(l>=0){let m=a.from+l,g=m+p.length;a.text[g-a.from]==" "&&g++,s.push({from:m,to:g})}return{changes:s}}return null}const aD=uc.define(),C$=uc.define(),S$=qn.define(),j2=qn.define({combine(r){return Sl(r,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,i)=>e(n,i)||t(n,i)})}});function E$(r){let e=0;return r.iterChangedRanges((t,n)=>e=n),e}const L2=Po.define({create(){return fl.empty},update(r,e){let t=e.state.facet(j2),n=e.annotation(aD);if(n){let p=e.docChanged?Pr.single(E$(e.changes)):void 0,m=Pa.fromTransaction(e,p),g=n.side,b=g==0?r.undone:r.done;return m?b=sg(b,b.length,t.minDepth,m):b=U2(b,e.startState.selection),new fl(g==0?n.rest:b,g==0?b:n.rest)}let i=e.annotation(C$);if((i=="full"||i=="before")&&(r=r.isolate()),e.annotation(To.addToHistory)===!1)return e.changes.empty?r:r.addMapping(e.changes.desc);let s=Pa.fromTransaction(e),a=e.annotation(To.time),l=e.annotation(To.userEvent);return s?r=r.addChanges(s,a,l,t,e):e.selection&&(r=r.addSelection(e.startState.selection,a,l,t.newGroupDelay)),(i=="full"||i=="after")&&(r=r.isolate()),r},toJSON(r){return{done:r.done.map(e=>e.toJSON()),undone:r.undone.map(e=>e.toJSON())}},fromJSON(r){return new fl(r.done.map(Pa.fromJSON),r.undone.map(Pa.fromJSON))}});function w$(r={}){return[L2,j2.of(r),Qn.domEventHandlers({beforeinput(e,t){let n=e.inputType=="historyUndo"?X2:e.inputType=="historyRedo"?uD:null;return n?(e.preventDefault(),n(t)):!1}})]}function Zg(r,e){return function({state:t,dispatch:n}){if(!e&&t.readOnly)return!1;let i=t.field(L2,!1);if(!i)return!1;let s=i.pop(r,t,e);return s?(n(s),!0):!1}}const X2=Zg(0,!1),uD=Zg(1,!1),A$=Zg(0,!0),T$=Zg(1,!0);class Pa{constructor(e,t,n,i,s){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=i,this.selectionsAfter=s}setSelAfter(e){return new Pa(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new Pa(e.changes&&Ao.fromJSON(e.changes),[],e.mapped&&yl.fromJSON(e.mapped),e.startSelection&&Pr.fromJSON(e.startSelection),e.selectionsAfter.map(Pr.fromJSON))}static fromTransaction(e,t){let n=Ka;for(let i of e.startState.facet(S$)){let s=i(e);s.length&&(n=n.concat(s))}return!n.length&&e.changes.empty?null:new Pa(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,Ka)}static selection(e){return new Pa(void 0,Ka,void 0,void 0,e)}}function sg(r,e,t,n){let i=e+1>t+20?e-t-1:0,s=r.slice(i,e);return s.push(n),s}function P$(r,e){let t=[],n=!1;return r.iterChangedRanges((i,s)=>t.push(i,s)),e.iterChangedRanges((i,s,a,l)=>{for(let p=0;p<t.length;){let m=t[p++],g=t[p++];l>=m&&a<=g&&(n=!0)}}),n}function k$(r,e){return r.ranges.length==e.ranges.length&&r.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length===0}function V2(r,e){return r.length?e.length?r.concat(e):r:e}const Ka=[],F$=200;function U2(r,e){if(r.length){let t=r[r.length-1],n=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-F$));return n.length&&n[n.length-1].eq(e)?r:(n.push(e),sg(r,r.length-1,1e9,t.setSelAfter(n)))}else return[Pa.selection([e])]}function _$(r){let e=r[r.length-1],t=r.slice();return t[r.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function U0(r,e){if(!r.length)return r;let t=r.length,n=Ka;for(;t;){let i=$$(r[t-1],e,n);if(i.changes&&!i.changes.empty||i.effects.length){let s=r.slice(0,t);return s[t-1]=i,s}else e=i.mapped,t--,n=i.selectionsAfter}return n.length?[Pa.selection(n)]:Ka}function $$(r,e,t){let n=V2(r.selectionsAfter.length?r.selectionsAfter.map(l=>l.map(e)):Ka,t);if(!r.changes)return Pa.selection(n);let i=r.changes.map(e),s=e.mapDesc(r.changes,!0),a=r.mapped?r.mapped.composeDesc(s):s;return new Pa(i,Qi.mapEffects(r.effects,e),a,r.startSelection.map(s),n)}const B$=/^(input\.type|delete)($|\.)/;class fl{constructor(e,t,n=0,i=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new fl(this.done,this.undone):this}addChanges(e,t,n,i,s){let a=this.done,l=a[a.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!n||B$.test(n))&&(!l.selectionsAfter.length&&t-this.prevTime<i.newGroupDelay&&i.joinToEvent(s,P$(l.changes,e.changes))||n=="input.type.compose")?a=sg(a,a.length-1,i.minDepth,new Pa(e.changes.compose(l.changes),V2(e.effects,l.effects),l.mapped,l.startSelection,Ka)):a=sg(a,a.length,i.minDepth,e),new fl(a,Ka,t,n)}addSelection(e,t,n,i){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:Ka;return s.length>0&&t-this.prevTime<i&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&k$(s[s.length-1],e)?this:new fl(U2(this.done,e),this.undone,t,n)}addMapping(e){return new fl(U0(this.done,e),U0(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let i=e==0?this.done:this.undone;if(i.length==0)return null;let s=i[i.length-1];if(n&&s.selectionsAfter.length)return t.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:aD.of({side:e,rest:_$(i)}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let a=i.length==1?Ka:i.slice(0,i.length-1);return s.mapped&&(a=U0(a,s.mapped)),t.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:aD.of({side:e,rest:a}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}fl.empty=new fl(Ka,Ka);const N$=[{key:"Mod-z",run:X2,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:uD,preventDefault:!0},{linux:"Ctrl-Shift-z",run:uD,preventDefault:!0},{key:"Mod-u",run:A$,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:T$,preventDefault:!0}];function sf(r,e){return Pr.create(r.ranges.map(e),r.mainIndex)}function El(r,e){return r.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function ku({state:r,dispatch:e},t){let n=sf(r.selection,t);return n.eq(r.selection)?!1:(e(El(r,n)),!0)}function Yg(r,e){return Pr.cursor(e?r.to:r.from)}function q2(r,e){return ku(r,t=>t.empty?r.moveByChar(t,e):Yg(t,e))}function la(r){return r.textDirectionAt(r.state.selection.main.head)==no.LTR}const z2=r=>q2(r,!la(r)),W2=r=>q2(r,la(r));function Z2(r,e){return ku(r,t=>t.empty?r.moveByGroup(t,e):Yg(t,e))}const I$=r=>Z2(r,!la(r)),M$=r=>Z2(r,la(r));function R$(r,e,t){if(e.type.prop(t))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(r.sliceDoc(e.from,e.to)))||e.firstChild}function Gg(r,e,t){let n=po(r).resolveInner(e.head),i=t?Gi.closedBy:Gi.openedBy;for(let p=e.head;;){let m=t?n.childAfter(p):n.childBefore(p);if(!m)break;R$(r,m,i)?n=m:p=t?m.to:m.from}let s=n.type.prop(i),a,l;return s&&(a=t?pl(r,n.from,1):pl(r,n.to,-1))&&a.matched?l=t?a.end.to:a.end.from:l=t?n.to:n.from,Pr.cursor(l,t?-1:1)}const Q$=r=>ku(r,e=>Gg(r.state,e,!la(r))),j$=r=>ku(r,e=>Gg(r.state,e,la(r)));function Y2(r,e){return ku(r,t=>{if(!t.empty)return Yg(t,e);let n=r.moveVertically(t,e);return n.head!=t.head?n:r.moveToLineBoundary(t,e)})}const G2=r=>Y2(r,!1),H2=r=>Y2(r,!0);function J2(r){let e=r.scrollDOM.clientHeight<r.scrollDOM.scrollHeight-2,t=0,n=0,i;if(e){for(let s of r.state.facet(Qn.scrollMargins)){let a=s(r);a!=null&&a.top&&(t=Math.max(a==null?void 0:a.top,t)),a!=null&&a.bottom&&(n=Math.max(a==null?void 0:a.bottom,n))}i=r.scrollDOM.clientHeight-t-n}else i=(r.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:n,selfScroll:e,height:Math.max(r.defaultLineHeight,i-5)}}function K2(r,e){let t=J2(r),{state:n}=r,i=sf(n.selection,a=>a.empty?r.moveVertically(a,e,t.height):Yg(a,e));if(i.eq(n.selection))return!1;let s;if(t.selfScroll){let a=r.coordsAtPos(n.selection.main.head),l=r.scrollDOM.getBoundingClientRect(),p=l.top+t.marginTop,m=l.bottom-t.marginBottom;a&&a.top>p&&a.bottom<m&&(s=Qn.scrollIntoView(i.main.head,{y:"start",yMargin:a.top-p}))}return r.dispatch(El(n,i),{effects:s}),!0}const eb=r=>K2(r,!1),lD=r=>K2(r,!0);function ah(r,e,t){let n=r.lineBlockAt(e.head),i=r.moveToLineBoundary(e,t);if(i.head==e.head&&i.head!=(t?n.to:n.from)&&(i=r.moveToLineBoundary(e,t,!1)),!t&&i.head==n.from&&n.length){let s=/^\s*/.exec(r.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;s&&e.head!=n.from+s&&(i=Pr.cursor(n.from+s))}return i}const L$=r=>ku(r,e=>ah(r,e,!0)),X$=r=>ku(r,e=>ah(r,e,!1)),V$=r=>ku(r,e=>ah(r,e,!la(r))),U$=r=>ku(r,e=>ah(r,e,la(r))),q$=r=>ku(r,e=>Pr.cursor(r.lineBlockAt(e.head).from,1)),z$=r=>ku(r,e=>Pr.cursor(r.lineBlockAt(e.head).to,-1));function W$(r,e,t){let n=!1,i=sf(r.selection,s=>{let a=pl(r,s.head,-1)||pl(r,s.head,1)||s.head>0&&pl(r,s.head-1,1)||s.head<r.doc.length&&pl(r,s.head+1,-1);if(!a||!a.end)return s;n=!0;let l=a.start.from==s.head?a.end.to:a.end.from;return t?Pr.range(s.anchor,l):Pr.cursor(l)});return n?(e(El(r,i)),!0):!1}const Z$=({state:r,dispatch:e})=>W$(r,e,!1);function nu(r,e){let t=sf(r.state.selection,n=>{let i=e(n);return Pr.range(n.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return t.eq(r.state.selection)?!1:(r.dispatch(El(r.state,t)),!0)}function eE(r,e){return nu(r,t=>r.moveByChar(t,e))}const tE=r=>eE(r,!la(r)),rE=r=>eE(r,la(r));function nE(r,e){return nu(r,t=>r.moveByGroup(t,e))}const Y$=r=>nE(r,!la(r)),G$=r=>nE(r,la(r)),H$=r=>nu(r,e=>Gg(r.state,e,!la(r))),J$=r=>nu(r,e=>Gg(r.state,e,la(r)));function iE(r,e){return nu(r,t=>r.moveVertically(t,e))}const sE=r=>iE(r,!1),oE=r=>iE(r,!0);function aE(r,e){return nu(r,t=>r.moveVertically(t,e,J2(r).height))}const tb=r=>aE(r,!1),rb=r=>aE(r,!0),K$=r=>nu(r,e=>ah(r,e,!0)),eB=r=>nu(r,e=>ah(r,e,!1)),tB=r=>nu(r,e=>ah(r,e,!la(r))),rB=r=>nu(r,e=>ah(r,e,la(r))),nB=r=>nu(r,e=>Pr.cursor(r.lineBlockAt(e.head).from)),iB=r=>nu(r,e=>Pr.cursor(r.lineBlockAt(e.head).to)),nb=({state:r,dispatch:e})=>(e(El(r,{anchor:0})),!0),ib=({state:r,dispatch:e})=>(e(El(r,{anchor:r.doc.length})),!0),sb=({state:r,dispatch:e})=>(e(El(r,{anchor:r.selection.main.anchor,head:0})),!0),ob=({state:r,dispatch:e})=>(e(El(r,{anchor:r.selection.main.anchor,head:r.doc.length})),!0),sB=({state:r,dispatch:e})=>(e(r.update({selection:{anchor:0,head:r.doc.length},userEvent:"select"})),!0),oB=({state:r,dispatch:e})=>{let t=Jg(r).map(({from:n,to:i})=>Pr.range(n,Math.min(i+1,r.doc.length)));return e(r.update({selection:Pr.create(t),userEvent:"select"})),!0},aB=({state:r,dispatch:e})=>{let t=sf(r.selection,n=>{var i;let s=po(r).resolveInner(n.head,1);for(;!(s.from<n.from&&s.to>=n.to||s.to>n.to&&s.from<=n.from||!(!((i=s.parent)===null||i===void 0)&&i.parent));)s=s.parent;return Pr.range(s.to,s.from)});return e(El(r,t)),!0},uB=({state:r,dispatch:e})=>{let t=r.selection,n=null;return t.ranges.length>1?n=Pr.create([t.main]):t.main.empty||(n=Pr.create([Pr.cursor(t.main.head)])),n?(e(El(r,n)),!0):!1};function Hg(r,e){if(r.state.readOnly)return!1;let t="delete.selection",{state:n}=r,i=n.changeByRange(s=>{let{from:a,to:l}=s;if(a==l){let p=e(a);p<a?(t="delete.backward",p=um(r,p,!1)):p>a&&(t="delete.forward",p=um(r,p,!0)),a=Math.min(a,p),l=Math.max(l,p)}else a=um(r,a,!1),l=um(r,l,!0);return a==l?{range:s}:{changes:{from:a,to:l},range:Pr.cursor(a)}});return i.changes.empty?!1:(r.dispatch(n.update(i,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?Qn.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function um(r,e,t){if(r instanceof Qn)for(let n of r.state.facet(Qn.atomicRanges).map(i=>i(r)))n.between(e,e,(i,s)=>{i<e&&s>e&&(e=t?s:i)});return e}const uE=(r,e)=>Hg(r,t=>{let{state:n}=r,i=n.doc.lineAt(t),s,a;if(!e&&t>i.from&&t<i.from+200&&!/[^ \t]/.test(s=i.text.slice(0,t-i.from))){if(s[s.length-1]==" ")return t-1;let l=xd(s,n.tabSize),p=l%rg(n)||rg(n);for(let m=0;m<p&&s[s.length-1-m]==" ";m++)t--;a=t}else a=ua(i.text,t-i.from,e,e)+i.from,a==t&&i.number!=(e?n.doc.lines:1)&&(a+=e?1:-1);return a}),cD=r=>uE(r,!1),lE=r=>uE(r,!0),cE=(r,e)=>Hg(r,t=>{let n=t,{state:i}=r,s=i.doc.lineAt(n),a=i.charCategorizer(n);for(let l=null;;){if(n==(e?s.to:s.from)){n==t&&s.number!=(e?i.doc.lines:1)&&(n+=e?1:-1);break}let p=ua(s.text,n-s.from,e)+s.from,m=s.text.slice(Math.min(n,p)-s.from,Math.max(n,p)-s.from),g=a(m);if(l!=null&&g!=l)break;(m!=" "||n!=t)&&(l=g),n=p}return n}),hE=r=>cE(r,!1),lB=r=>cE(r,!0),pE=r=>Hg(r,e=>{let t=r.lineBlockAt(e).to;return e<t?t:Math.min(r.state.doc.length,e+1)}),cB=r=>Hg(r,e=>{let t=r.lineBlockAt(e).from;return e>t?t:Math.max(0,e-1)}),hB=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:Ds.of(["",""])},range:Pr.cursor(n.from)}));return e(r.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},pB=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(n=>{if(!n.empty||n.from==0||n.from==r.doc.length)return{range:n};let i=n.from,s=r.doc.lineAt(i),a=i==s.from?i-1:ua(s.text,i-s.from,!1)+s.from,l=i==s.to?i+1:ua(s.text,i-s.from,!0)+s.from;return{changes:{from:a,to:l,insert:r.doc.slice(i,l).append(r.doc.slice(a,i))},range:Pr.cursor(l)}});return t.changes.empty?!1:(e(r.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Jg(r){let e=[],t=-1;for(let n of r.selection.ranges){let i=r.doc.lineAt(n.from),s=r.doc.lineAt(n.to);if(!n.empty&&n.to==s.from&&(s=r.doc.lineAt(n.to-1)),t>=i.number){let a=e[e.length-1];a.to=s.to,a.ranges.push(n)}else e.push({from:i.from,to:s.to,ranges:[n]});t=s.number+1}return e}function fE(r,e,t){if(r.readOnly)return!1;let n=[],i=[];for(let s of Jg(r)){if(t?s.to==r.doc.length:s.from==0)continue;let a=r.doc.lineAt(t?s.to+1:s.from-1),l=a.length+1;if(t){n.push({from:s.to,to:a.to},{from:s.from,insert:a.text+r.lineBreak});for(let p of s.ranges)i.push(Pr.range(Math.min(r.doc.length,p.anchor+l),Math.min(r.doc.length,p.head+l)))}else{n.push({from:a.from,to:s.from},{from:s.to,insert:r.lineBreak+a.text});for(let p of s.ranges)i.push(Pr.range(p.anchor-l,p.head-l))}}return n.length?(e(r.update({changes:n,scrollIntoView:!0,selection:Pr.create(i,r.selection.mainIndex),userEvent:"move.line"})),!0):!1}const fB=({state:r,dispatch:e})=>fE(r,e,!1),dB=({state:r,dispatch:e})=>fE(r,e,!0);function dE(r,e,t){if(r.readOnly)return!1;let n=[];for(let i of Jg(r))t?n.push({from:i.from,insert:r.doc.slice(i.from,i.to)+r.lineBreak}):n.push({from:i.to,insert:r.lineBreak+r.doc.slice(i.from,i.to)});return e(r.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const mB=({state:r,dispatch:e})=>dE(r,e,!1),gB=({state:r,dispatch:e})=>dE(r,e,!0),yB=r=>{if(r.state.readOnly)return!1;let{state:e}=r,t=e.changes(Jg(e).map(({from:i,to:s})=>(i>0?i--:s<e.doc.length&&s++,{from:i,to:s}))),n=sf(e.selection,i=>r.moveVertically(i,!0)).map(t);return r.dispatch({changes:t,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0};function DB(r,e){if(/\(\)|\[\]|\{\}/.test(r.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=po(r).resolveInner(e),n=t.childBefore(e),i=t.childAfter(e),s;return n&&i&&n.to<=e&&i.from>=e&&(s=n.type.prop(Gi.closedBy))&&s.indexOf(i.name)>-1&&r.doc.lineAt(n.to).from==r.doc.lineAt(i.from).from?{from:n.to,to:i.from}:null}const OB=mE(!1),xB=mE(!0);function mE(r){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(i=>{let{from:s,to:a}=i,l=e.doc.lineAt(s),p=!r&&s==a&&DB(e,s);r&&(s=a=(a<=l.to?l:e.doc.lineAt(a)).to);let m=new zg(e,{simulateBreak:s,simulateDoubleBreak:!!p}),g=gO(m,s);for(g==null&&(g=/^\s*/.exec(e.doc.lineAt(s).text)[0].length);a<l.to&&/\s/.test(l.text[a-l.from]);)a++;p?{from:s,to:a}=p:s>l.from&&s<l.from+100&&!/\S/.test(l.text.slice(0,s))&&(s=l.from);let b=["",ud(e,g)];return p&&b.push(ud(e,m.lineIndent(l.from,-1))),{changes:{from:s,to:a,insert:Ds.of(b)},range:Pr.cursor(s+1+b[1].length)}});return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function bO(r,e){let t=-1;return r.changeByRange(n=>{let i=[];for(let a=n.from;a<=n.to;){let l=r.doc.lineAt(a);l.number>t&&(n.empty||n.to>l.from)&&(e(l,i,n),t=l.number),a=l.to+1}let s=r.changes(i);return{changes:i,range:Pr.range(s.mapPos(n.anchor,1),s.mapPos(n.head,1))}})}const bB=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=Object.create(null),n=new zg(r,{overrideIndentation:s=>{let a=t[s];return a??-1}}),i=bO(r,(s,a,l)=>{let p=gO(n,s.from);if(p==null)return;/\S/.test(s.text)||(p=0);let m=/^\s*/.exec(s.text)[0],g=ud(r,p);(m!=g||l.from<s.from+m.length)&&(t[s.from]=p,a.push({from:s.from,to:s.from+m.length,insert:g}))});return i.changes.empty||e(r.update(i,{userEvent:"indent"})),!0},vB=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(bO(r,(t,n)=>{n.push({from:t.from,insert:r.facet(qg)})}),{userEvent:"input.indent"})),!0),CB=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(bO(r,(t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let s=xd(i,r.tabSize),a=0,l=ud(r,Math.max(0,s-rg(r)));for(;a<i.length&&a<l.length&&i.charCodeAt(a)==l.charCodeAt(a);)a++;n.push({from:t.from+a,to:t.from+i.length,insert:l.slice(a)})}),{userEvent:"delete.dedent"})),!0),SB=[{key:"Ctrl-b",run:z2,shift:tE,preventDefault:!0},{key:"Ctrl-f",run:W2,shift:rE},{key:"Ctrl-p",run:G2,shift:sE},{key:"Ctrl-n",run:H2,shift:oE},{key:"Ctrl-a",run:q$,shift:nB},{key:"Ctrl-e",run:z$,shift:iB},{key:"Ctrl-d",run:lE},{key:"Ctrl-h",run:cD},{key:"Ctrl-k",run:pE},{key:"Ctrl-Alt-h",run:hE},{key:"Ctrl-o",run:hB},{key:"Ctrl-t",run:pB},{key:"Ctrl-v",run:lD}],EB=[{key:"ArrowLeft",run:z2,shift:tE,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:I$,shift:Y$,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:V$,shift:tB,preventDefault:!0},{key:"ArrowRight",run:W2,shift:rE,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:M$,shift:G$,preventDefault:!0},{mac:"Cmd-ArrowRight",run:U$,shift:rB,preventDefault:!0},{key:"ArrowUp",run:G2,shift:sE,preventDefault:!0},{mac:"Cmd-ArrowUp",run:nb,shift:sb},{mac:"Ctrl-ArrowUp",run:eb,shift:tb},{key:"ArrowDown",run:H2,shift:oE,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ib,shift:ob},{mac:"Ctrl-ArrowDown",run:lD,shift:rb},{key:"PageUp",run:eb,shift:tb},{key:"PageDown",run:lD,shift:rb},{key:"Home",run:X$,shift:eB,preventDefault:!0},{key:"Mod-Home",run:nb,shift:sb},{key:"End",run:L$,shift:K$,preventDefault:!0},{key:"Mod-End",run:ib,shift:ob},{key:"Enter",run:OB},{key:"Mod-a",run:sB},{key:"Backspace",run:cD,shift:cD},{key:"Delete",run:lE},{key:"Mod-Backspace",mac:"Alt-Backspace",run:hE},{key:"Mod-Delete",mac:"Alt-Delete",run:lB},{mac:"Mod-Backspace",run:cB},{mac:"Mod-Delete",run:pE}].concat(SB.map(r=>({mac:r.key,run:r.run,shift:r.shift}))),wB=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Q$,shift:H$},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:j$,shift:J$},{key:"Alt-ArrowUp",run:fB},{key:"Shift-Alt-ArrowUp",run:mB},{key:"Alt-ArrowDown",run:dB},{key:"Shift-Alt-ArrowDown",run:gB},{key:"Escape",run:uB},{key:"Mod-Enter",run:xB},{key:"Alt-l",mac:"Ctrl-l",run:oB},{key:"Mod-i",run:aB,preventDefault:!0},{key:"Mod-[",run:CB},{key:"Mod-]",run:vB},{key:"Mod-Alt-\\",run:bB},{key:"Shift-Mod-k",run:yB},{key:"Shift-Mod-\\",run:Z$},{key:"Mod-/",run:g$},{key:"Alt-A",run:D$}].concat(EB);function js(){var r=arguments[0];typeof r=="string"&&(r=document.createElement(r));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=t[n];typeof i=="string"?r.setAttribute(n,i):i!=null&&(r[n]=i)}e++}for(;e<arguments.length;e++)gE(r,arguments[e]);return r}function gE(r,e){if(typeof e=="string")r.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)r.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)gE(r,e[t]);else throw new RangeError("Unsupported child node: "+e)}const ab=typeof String.prototype.normalize=="function"?r=>r.normalize("NFKD"):r=>r;class Hp{constructor(e,t,n=0,i=e.length,s,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,i),this.bufferStart=n,this.normalize=s?l=>s(ab(l)):ab,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Uo(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=YD(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=Ha(e);let i=this.normalize(t);for(let s=0,a=n;;s++){let l=i.charCodeAt(s),p=this.match(l,a);if(s==i.length-1){if(p)return this.value=p,this;break}a==n&&s<t.length&&t.charCodeAt(s)==l&&a++}}}match(e,t){let n=null;for(let i=0;i<this.matches.length;i+=2){let s=this.matches[i],a=!1;this.query.charCodeAt(s)==e&&(s==this.query.length-1?n={from:this.matches[i+1],to:t+1}:(this.matches[i]++,a=!0)),a||(this.matches.splice(i,2),i-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?n={from:t,to:t+1}:this.matches.push(1,t)),n&&this.test&&!this.test(n.from,n.to,this.buffer,this.bufferPos)&&(n=null),n}}typeof Symbol<"u"&&(Hp.prototype[Symbol.iterator]=function(){return this});const yE={from:-1,to:-1,match:/.*/.exec("")},vO="gm"+(/x/.unicode==null?"":"u");class DE{constructor(e,t,n,i=0,s=e.length){if(this.text=e,this.to=s,this.curLine="",this.done=!1,this.value=yE,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new OE(e,t,n,i,s);this.re=new RegExp(t,vO+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.iter=e.iter();let a=e.lineAt(i);this.curLineStart=a.from,this.matchPos=og(e,i),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,i=n+t[0].length;if(this.matchPos=og(this.text,i+(n==i?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<i||n>this.value.to)&&(!this.test||this.test(n,i,t)))return this.value={from:n,to:i,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const q0=new WeakMap;class jp{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let i=q0.get(e);if(!i||i.from>=n||i.to<=t){let l=new jp(t,e.sliceString(t,n));return q0.set(e,l),l}if(i.from==t&&i.to==n)return i;let{text:s,from:a}=i;return a>t&&(s=e.sliceString(t,a)+s,a=t),i.to<n&&(s+=e.sliceString(i.to,n)),q0.set(e,new jp(a,s)),new jp(t,s.slice(t-a,n-a))}}class OE{constructor(e,t,n,i,s){this.text=e,this.to=s,this.done=!1,this.value=yE,this.matchPos=og(e,i),this.re=new RegExp(t,vO+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.flat=jp.get(e,i,this.chunkEnd(i+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let n=this.flat.from+t.index,i=n+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,i,t)))return this.value={from:n,to:i,match:t},this.matchPos=og(this.text,i+(n==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=jp.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(DE.prototype[Symbol.iterator]=OE.prototype[Symbol.iterator]=function(){return this});function AB(r){try{return new RegExp(r,vO),!0}catch{return!1}}function og(r,e){if(e>=r.length)return e;let t=r.lineAt(e),n;for(;e<t.to&&(n=t.text.charCodeAt(e-t.from))>=56320&&n<57344;)e++;return e}function hD(r){let e=js("input",{class:"cm-textfield",name:"line"}),t=js("form",{class:"cm-gotoLine",onkeydown:i=>{i.keyCode==27?(i.preventDefault(),r.dispatch({effects:ag.of(!1)}),r.focus()):i.keyCode==13&&(i.preventDefault(),n())},onsubmit:i=>{i.preventDefault(),n()}},js("label",r.state.phrase("Go to line"),": ",e)," ",js("button",{class:"cm-button",type:"submit"},r.state.phrase("go")));function n(){let i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(!i)return;let{state:s}=r,a=s.doc.lineAt(s.selection.main.head),[,l,p,m,g]=i,b=m?+m.slice(1):0,S=p?+p:a.number;if(p&&g){let be=S/100;l&&(be=be*(l=="-"?-1:1)+a.number/s.doc.lines),S=Math.round(s.doc.lines*be)}else p&&l&&(S=S*(l=="-"?-1:1)+a.number);let $=s.doc.line(Math.max(1,Math.min(s.doc.lines,S))),G=Pr.cursor($.from+Math.max(0,Math.min(b,$.length)));r.dispatch({effects:[ag.of(!1),Qn.scrollIntoView(G.from,{y:"center"})],selection:G}),r.focus()}return{dom:t}}const ag=Qi.define(),ub=Po.define({create(){return!0},update(r,e){for(let t of e.effects)t.is(ag)&&(r=t.value);return r},provide:r=>id.from(r,e=>e?hD:null)}),TB=r=>{let e=nd(r,hD);if(!e){let t=[ag.of(!0)];r.state.field(ub,!1)==null&&t.push(Qi.appendConfig.of([ub,PB])),r.dispatch({effects:t}),e=nd(r,hD)}return e&&e.dom.querySelector("input").focus(),!0},PB=Qn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),kB={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},xE=qn.define({combine(r){return Sl(r,kB,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function FB(r){let e=[IB,NB];return r&&e.push(xE.of(r)),e}const _B=_i.mark({class:"cm-selectionMatch"}),$B=_i.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function lb(r,e,t,n){return(t==0||r(e.sliceDoc(t-1,t))!=Js.Word)&&(n==e.doc.length||r(e.sliceDoc(n,n+1))!=Js.Word)}function BB(r,e,t,n){return r(e.sliceDoc(t,t+1))==Js.Word&&r(e.sliceDoc(n-1,n))==Js.Word}const NB=bo.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.selectionSet||r.docChanged||r.viewportChanged)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=r.state.facet(xE),{state:t}=r,n=t.selection;if(n.ranges.length>1)return _i.none;let i=n.main,s,a=null;if(i.empty){if(!e.highlightWordAroundCursor)return _i.none;let p=t.wordAt(i.head);if(!p)return _i.none;a=t.charCategorizer(i.head),s=t.sliceDoc(p.from,p.to)}else{let p=i.to-i.from;if(p<e.minSelectionLength||p>200)return _i.none;if(e.wholeWords){if(s=t.sliceDoc(i.from,i.to),a=t.charCategorizer(i.head),!(lb(a,t,i.from,i.to)&&BB(a,t,i.from,i.to)))return _i.none}else if(s=t.sliceDoc(i.from,i.to).trim(),!s)return _i.none}let l=[];for(let p of r.visibleRanges){let m=new Hp(t.doc,s,p.from,p.to);for(;!m.next().done;){let{from:g,to:b}=m.value;if((!a||lb(a,t,g,b))&&(i.empty&&g<=i.from&&b>=i.to?l.push($B.range(g,b)):(g>=i.to||b<=i.from)&&l.push(_B.range(g,b)),l.length>e.maxMatches))return _i.none}}return _i.set(l)}},{decorations:r=>r.decorations}),IB=Qn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),MB=({state:r,dispatch:e})=>{let{selection:t}=r,n=Pr.create(t.ranges.map(i=>r.wordAt(i.head)||Pr.cursor(i.head)),t.mainIndex);return n.eq(t)?!1:(e(r.update({selection:n})),!0)};function RB(r,e){let{main:t,ranges:n}=r.selection,i=r.wordAt(t.head),s=i&&i.from==t.from&&i.to==t.to;for(let a=!1,l=new Hp(r.doc,e,n[n.length-1].to);;)if(l.next(),l.done){if(a)return null;l=new Hp(r.doc,e,0,Math.max(0,n[n.length-1].from-1)),a=!0}else{if(a&&n.some(p=>p.from==l.value.from))continue;if(s){let p=r.wordAt(l.value.from);if(!p||p.from!=l.value.from||p.to!=l.value.to)continue}return l.value}}const QB=({state:r,dispatch:e})=>{let{ranges:t}=r.selection;if(t.some(s=>s.from===s.to))return MB({state:r,dispatch:e});let n=r.sliceDoc(t[0].from,t[0].to);if(r.selection.ranges.some(s=>r.sliceDoc(s.from,s.to)!=n))return!1;let i=RB(r,n);return i?(e(r.update({selection:r.selection.addRange(Pr.range(i.from,i.to),!1),effects:Qn.scrollIntoView(i.to)})),!0):!1},of=qn.define({combine(r){return Sl(r,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new HB(e),scrollToMatch:e=>Qn.scrollIntoView(e)})}});class bE{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||AB(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,n)=>n=="n"?`
|
|
10
|
+
--\u2028\u2029\uFEFF-]`,Hy),JF={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let $0=null;function KF(){var r;if($0==null&&typeof document<"u"&&document.body){let e=document.body.style;$0=((r=e.tabSize)!==null&&r!==void 0?r:e.MozTabSize)!=null}return $0||!1}const Em=qn.define({combine(r){let e=Sl(r,{render:null,specialChars:HF,addSpecialChars:null});return(e.replaceTabs=!KF())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Hy)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Hy)),e}});function e3(r={}){return[Em.of(r),t3()]}let Ax=null;function t3(){return Ax||(Ax=bo.fromClass(class{constructor(r){this.view=r,this.decorations=_i.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(r.state.facet(Em)),this.decorations=this.decorator.createDeco(r)}makeDecorator(r){return new GF({regexp:r.specialChars,decoration:(e,t,n)=>{let{doc:i}=t.state,s=Uo(e[0],0);if(s==9){let a=i.lineAt(n),l=t.state.tabSize,p=xd(a.text,l,n-a.from);return _i.replace({widget:new s3((l-p%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=_i.replace({widget:new i3(r,s)}))},boundary:r.replaceTabs?void 0:/[^]/})}update(r){let e=r.state.facet(Em);r.startState.facet(Em)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(r.view)):this.decorations=this.decorator.updateDeco(r,this.decorations)}},{decorations:r=>r.decorations}))}const r3="•";function n3(r){return r>=32?r3:r==10?"":String.fromCharCode(9216+r)}class i3 extends oh{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=n3(this.code),n=e.state.phrase("Control character")+" "+(JF[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,n,t);if(i)return i;let s=document.createElement("span");return s.textContent=t,s.title=n,s.setAttribute("aria-label",n),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class s3 extends oh{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function o3(){return u3}const a3=_i.line({class:"cm-activeLine"}),u3=bo.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.docChanged||r.selectionSet)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=-1,t=[];for(let n of r.state.selection.ranges){let i=r.lineBlockAt(n.head);i.from>e&&(t.push(a3.range(i.from)),e=i.from)}return _i.set(t)}},{decorations:r=>r.decorations}),Jy=2e3;function l3(r,e,t){let n=Math.min(e.line,t.line),i=Math.max(e.line,t.line),s=[];if(e.off>Jy||t.off>Jy||e.col<0||t.col<0){let a=Math.min(e.off,t.off),l=Math.max(e.off,t.off);for(let p=n;p<=i;p++){let m=r.doc.line(p);m.length<=l&&s.push(Pr.range(m.from+a,m.to+l))}}else{let a=Math.min(e.col,t.col),l=Math.max(e.col,t.col);for(let p=n;p<=i;p++){let m=r.doc.line(p),g=Fy(m.text,a,r.tabSize,!0);if(g<0)s.push(Pr.cursor(m.to));else{let b=Fy(m.text,l,r.tabSize);s.push(Pr.range(m.from+g,m.from+b))}}}return s}function c3(r,e){let t=r.coordsAtPos(r.viewport.from);return t?Math.round(Math.abs((t.left-e)/r.defaultCharacterWidth)):-1}function Tx(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1),n=r.state.doc.lineAt(t),i=t-n.from,s=i>Jy?-1:i==n.length?c3(r,e.clientX):xd(n.text,r.state.tabSize,t-n.from);return{line:n.number,col:s,off:i}}function h3(r,e){let t=Tx(r,e),n=r.state.selection;return t?{update(i){if(i.docChanged){let s=i.changes.mapPos(i.startState.doc.line(t.line).from),a=i.state.doc.lineAt(s);t={line:a.number,col:t.col,off:Math.min(t.off,a.length)},n=n.map(i.changes)}},get(i,s,a){let l=Tx(r,i);if(!l)return n;let p=l3(r.state,t,l);return p.length?a?Pr.create(p.concat(n.ranges)):Pr.create(p):n}}:null}function p3(r){let e=(r==null?void 0:r.eventFilter)||(t=>t.altKey&&t.button==0);return Qn.mouseSelectionStyle.of((t,n)=>e(n)?h3(t,n):null)}const f3={Alt:[18,r=>!!r.altKey],Control:[17,r=>!!r.ctrlKey],Shift:[16,r=>!!r.shiftKey],Meta:[91,r=>!!r.metaKey]},d3={style:"cursor: crosshair"};function m3(r={}){let[e,t]=f3[r.key||"Alt"],n=bo.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==e||t(i))},keyup(i){(i.keyCode==e||!t(i))&&this.set(!1)},mousemove(i){this.set(t(i))}}});return[n,Qn.contentAttributes.of(i=>{var s;return!((s=i.plugin(n))===null||s===void 0)&&s.isDown?d3:null})]}const em="-10000px";class n2{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter(i=>i),this.tooltipViews=this.tooltips.map(n)}update(e){var t;let n=e.state.facet(this.facet),i=n.filter(a=>a);if(n===this.input){for(let a of this.tooltipViews)a.update&&a.update(e);return!1}let s=[];for(let a=0;a<i.length;a++){let l=i[a],p=-1;if(l){for(let m=0;m<this.tooltips.length;m++){let g=this.tooltips[m];g&&g.create==l.create&&(p=m)}if(p<0)s[a]=this.createTooltipView(l);else{let m=s[a]=this.tooltipViews[p];m.update&&m.update(e)}}}for(let a of this.tooltipViews)s.indexOf(a)<0&&(a.dom.remove(),(t=a.destroy)===null||t===void 0||t.call(a));return this.input=n,this.tooltips=i,this.tooltipViews=s,!0}}function g3(r){let{win:e}=r;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const B0=qn.define({combine:r=>{var e,t,n;return{position:oi.ios?"absolute":((e=r.find(i=>i.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=r.find(i=>i.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((n=r.find(i=>i.tooltipSpace))===null||n===void 0?void 0:n.tooltipSpace)||g3}}}),Px=new WeakMap,i2=bo.fromClass(class{constructor(r){this.view=r,this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=r.state.facet(B0);this.position=e.position,this.parent=e.parent,this.classes=r.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new n2(r,sO,t=>this.createTooltip(t)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),r.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let r of this.manager.tooltipViews)this.intersectionObserver.observe(r.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(r){r.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(r);e&&this.observeIntersection();let t=e||r.geometryChanged,n=r.state.facet(B0);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;t=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(r){let e=r.create(this.view);if(e.dom.classList.add("cm-tooltip"),r.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow",e.dom.appendChild(t)}return e.dom.style.position=this.position,e.dom.style.top=em,this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var r,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),(r=t.destroy)===null||r===void 0||r.call(t);(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let r=this.view.dom.getBoundingClientRect(),e=1,t=1,n=!1;if(this.position=="fixed"){let i=this.manager.tooltipViews;n=i.length>0&&i[0].dom.offsetParent!=this.container.ownerDocument.body}if(n||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(e=i.width/this.parent.offsetWidth,t=i.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);return{editor:r,parent:this.parent?this.container.getBoundingClientRect():r,pos:this.manager.tooltips.map((i,s)=>{let a=this.manager.tooltipViews[s];return a.getCoords?a.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(B0).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(r){var e;if(r.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{editor:t,space:n,scaleX:i,scaleY:s}=r,a=[];for(let l=0;l<this.manager.tooltips.length;l++){let p=this.manager.tooltips[l],m=this.manager.tooltipViews[l],{dom:g}=m,b=r.pos[l],S=r.size[l];if(!b||b.bottom<=Math.max(t.top,n.top)||b.top>=Math.min(t.bottom,n.bottom)||b.right<Math.max(t.left,n.left)-.1||b.left>Math.min(t.right,n.right)+.1){g.style.top=em;continue}let $=p.arrow?m.dom.querySelector(".cm-tooltip-arrow"):null,G=$?7:0,be=S.right-S.left,ke=(e=Px.get(m))!==null&&e!==void 0?e:S.bottom-S.top,me=m.offset||D3,Ve=this.view.textDirection==no.LTR,Dt=S.width>n.right-n.left?Ve?n.left:n.right-S.width:Ve?Math.min(b.left-($?14:0)+me.x,n.right-be):Math.max(n.left,b.left-be+($?14:0)-me.x),ht=!!p.above;!p.strictSide&&(ht?b.top-(S.bottom-S.top)-me.y<n.top:b.bottom+(S.bottom-S.top)+me.y>n.bottom)&&ht==n.bottom-b.bottom>b.top-n.top&&(ht=!ht);let bt=(ht?b.top-n.top:n.bottom-b.bottom)-G;if(bt<ke&&m.resize!==!1){if(bt<this.view.defaultLineHeight){g.style.top=em;continue}Px.set(m,ke),g.style.height=(ke=bt)/s+"px"}else g.style.height&&(g.style.height="");let Yt=ht?b.top-ke-G-me.y:b.bottom+G+me.y,ir=Dt+be;if(m.overlap!==!0)for(let qr of a)qr.left<ir&&qr.right>Dt&&qr.top<Yt+ke&&qr.bottom>Yt&&(Yt=ht?qr.top-ke-2-G:qr.bottom+G+2);if(this.position=="absolute"?(g.style.top=(Yt-r.parent.top)/s+"px",g.style.left=(Dt-r.parent.left)/i+"px"):(g.style.top=Yt/s+"px",g.style.left=Dt/i+"px"),$){let qr=b.left+(Ve?me.x:-me.x)-(Dt+14-7);$.style.left=qr/i+"px"}m.overlap!==!0&&a.push({left:Dt,top:Yt,right:ir,bottom:Yt+ke}),g.classList.toggle("cm-tooltip-above",ht),g.classList.toggle("cm-tooltip-below",!ht),m.positioned&&m.positioned(r.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let r of this.manager.tooltipViews)r.dom.style.top=em}},{eventObservers:{scroll(){this.maybeMeasure()}}}),y3=Qn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),D3={x:0,y:0},sO=qn.define({enables:[i2,y3]}),Gm=qn.define();class oO{static create(e){return new oO(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new n2(e,Gm,t=>this.createHostedView(t))}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}}const O3=sO.compute([Gm],r=>{let e=r.facet(Gm).filter(t=>t);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.filter(t=>t.end!=null).map(t=>t.end)),create:oO.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class x3{constructor(e,t,n,i,s){this.view=e,this.source=t,this.field=n,this.setHover=i,this.hoverTime=s,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,n=e.docView.nearest(t.target);if(!n)return;let i,s=1;if(n instanceof Vc)i=n.posAtStart;else{if(i=e.posAtCoords(t),i==null)return;let l=e.coordsAtPos(i);if(!l||t.y<l.top||t.y>l.bottom||t.x<l.left-e.defaultCharacterWidth||t.x>l.right+e.defaultCharacterWidth)return;let p=e.bidiSpans(e.state.doc.lineAt(i)).find(g=>g.from<=i&&g.to>=i),m=p&&p.dir==no.RTL?-1:1;s=t.x<l.left?-m:m}let a=this.source(e,i,s);if(a!=null&&a.then){let l=this.pending={pos:i};a.then(p=>{this.pending==l&&(this.pending=null,p&&e.dispatch({effects:this.setHover.of(p)}))},p=>wu(e.state,p,"hover tooltip"))}else a&&e.dispatch({effects:this.setHover.of(a)})}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let n=this.active;if(n&&!kx(this.lastMove.target)||this.pending){let{pos:i}=n||this.pending,s=(t=n==null?void 0:n.end)!==null&&t!==void 0?t:i;(i==s?this.view.posAtCoords(this.lastMove)!=i:!b3(this.view,i,s,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!kx(e.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function kx(r){for(let e=r;e;e=e.parentNode)if(e.nodeType==1&&e.classList.contains("cm-tooltip"))return!0;return!1}function b3(r,e,t,n,i,s){let a=r.scrollDOM.getBoundingClientRect(),l=r.documentTop+r.documentPadding.top+r.contentHeight;if(a.left>n||a.right<n||a.top>i||Math.min(a.bottom,l)<i)return!1;let p=r.posAtCoords({x:n,y:i},!1);return p>=e&&p<=t}function v3(r,e={}){let t=Qi.define(),n=Po.define({create(){return null},update(i,s){if(i&&(e.hideOnChange&&(s.docChanged||s.selection)||e.hideOn&&e.hideOn(s,i)))return null;if(i&&s.docChanged){let a=s.changes.mapPos(i.pos,-1,zo.TrackDel);if(a==null)return null;let l=Object.assign(Object.create(null),i);l.pos=a,i.end!=null&&(l.end=s.changes.mapPos(i.end)),i=l}for(let a of s.effects)a.is(t)&&(i=a.value),a.is(C3)&&(i=null);return i},provide:i=>Gm.from(i)});return[n,bo.define(i=>new x3(i,r,n,t,e.hoverTime||300)),O3]}function s2(r,e){let t=r.plugin(i2);if(!t)return null;let n=t.manager.tooltips.indexOf(e);return n<0?null:t.manager.tooltipViews[n]}const C3=Qi.define(),Fx=qn.define({combine(r){let e,t;for(let n of r)e=e||n.topContainer,t=t||n.bottomContainer;return{topContainer:e,bottomContainer:t}}});function nd(r,e){let t=r.plugin(o2),n=t?t.specs.indexOf(e):-1;return n>-1?t.panels[n]:null}const o2=bo.fromClass(class{constructor(r){this.input=r.state.facet(id),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(r));let e=r.state.facet(Fx);this.top=new tm(r,!0,e.topContainer),this.bottom=new tm(r,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(r){let e=r.state.facet(Fx);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new tm(r.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new tm(r.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=r.state.facet(id);if(t!=this.input){let n=t.filter(p=>p),i=[],s=[],a=[],l=[];for(let p of n){let m=this.specs.indexOf(p),g;m<0?(g=p(r.view),l.push(g)):(g=this.panels[m],g.update&&g.update(r)),i.push(g),(g.top?s:a).push(g)}this.specs=n,this.panels=i,this.top.sync(s),this.bottom.sync(a);for(let p of l)p.dom.classList.add("cm-panel"),p.mount&&p.mount()}else for(let n of this.panels)n.update&&n.update(r)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:r=>Qn.scrollMargins.of(e=>{let t=e.plugin(r);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class tm{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=_x(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=_x(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function _x(r){let e=r.nextSibling;return r.remove(),e}const id=qn.define({enables:o2});class sc extends Uh{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}sc.prototype.elementClass="";sc.prototype.toDOM=void 0;sc.prototype.mapMode=zo.TrackBefore;sc.prototype.startSide=sc.prototype.endSide=-1;sc.prototype.point=!0;const wm=qn.define(),S3={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Ss.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Mf=qn.define();function E3(r){return[a2(),Mf.of(Object.assign(Object.assign({},S3),r))]}const Ky=qn.define({combine:r=>r.some(e=>e)});function a2(r){let e=[w3];return r&&r.fixed===!1&&e.push(Ky.of(!0)),e}const w3=bo.fromClass(class{constructor(r){this.view=r,this.prevViewport=r.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=r.state.facet(Mf).map(e=>new Bx(r,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!r.state.facet(Ky),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),r.scrollDOM.insertBefore(this.dom,r.contentDOM)}update(r){if(this.updateGutters(r)){let e=this.prevViewport,t=r.view.viewport,n=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(n<(t.to-t.from)*.8)}r.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Ky)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=r.view.viewport}syncGutters(r){let e=this.dom.nextSibling;r&&this.dom.remove();let t=Ss.iter(this.view.state.facet(wm),this.view.viewport.from),n=[],i=this.gutters.map(s=>new A3(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(s.type)){let a=!0;for(let l of s.type)if(l.type==da.Text&&a){eD(t,n,l.from);for(let p of i)p.line(this.view,l,n);a=!1}else if(l.widget)for(let p of i)p.widget(this.view,l)}else if(s.type==da.Text){eD(t,n,s.from);for(let a of i)a.line(this.view,s,n)}else if(s.widget)for(let a of i)a.widget(this.view,s);for(let s of i)s.finish();r&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(r){let e=r.startState.facet(Mf),t=r.state.facet(Mf),n=r.docChanged||r.heightChanged||r.viewportChanged||!Ss.eq(r.startState.facet(wm),r.state.facet(wm),r.view.viewport.from,r.view.viewport.to);if(e==t)for(let i of this.gutters)i.update(r)&&(n=!0);else{n=!0;let i=[];for(let s of t){let a=e.indexOf(s);a<0?i.push(new Bx(this.view,s)):(this.gutters[a].update(r),i.push(this.gutters[a]))}for(let s of this.gutters)s.dom.remove(),i.indexOf(s)<0&&s.destroy();for(let s of i)this.dom.appendChild(s.dom);this.gutters=i}return n}destroy(){for(let r of this.gutters)r.destroy();this.dom.remove()}},{provide:r=>Qn.scrollMargins.of(e=>{let t=e.plugin(r);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==no.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}})});function $x(r){return Array.isArray(r)?r:[r]}function eD(r,e,t){for(;r.value&&r.from<=t;)r.from==t&&e.push(r.value),r.next()}class A3{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=Ss.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:i}=this,s=t.top-this.height;if(this.i==i.elements.length){let a=new u2(e,t.height,s,n);i.elements.push(a),i.dom.appendChild(a.dom)}else i.elements[this.i].update(e,t.height,s,n);this.height=t.bottom,this.i++}line(e,t,n){let i=[];eD(this.cursor,i,t.from),n.length&&(i=i.concat(n));let s=this.gutter.config.lineMarker(e,t,i);s&&i.unshift(s);let a=this.gutter;i.length==0&&!a.config.renderEmptyElements||this.addElement(e,t,i)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Bx{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,i=>{let s=i.target,a;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let p=s.getBoundingClientRect();a=(p.top+p.bottom)/2}else a=i.clientY;let l=e.lineBlockAtHeight(a-e.documentTop);t.domEventHandlers[n](e,l,i)&&i.preventDefault()});this.markers=$x(t.markers(e)),t.initialSpacer&&(this.spacer=new u2(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=$x(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i])}let n=e.view.viewport;return!Ss.eq(this.markers,t,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class u2{constructor(e,t,n,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,i)}update(e,t,n,i){this.height!=t&&(this.height=t,this.dom.style.height=t/e.scaleY+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n/e.scaleY+"px":""),T3(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,t){let n="cm-gutterElement",i=this.dom.firstChild;for(let s=0,a=0;;){let l=a,p=s<t.length?t[s++]:null,m=!1;if(p){let g=p.elementClass;g&&(n+=" "+g);for(let b=a;b<this.markers.length;b++)if(this.markers[b].compare(p)){l=b,m=!0;break}}else l=this.markers.length;for(;a<l;){let g=this.markers[a++];if(g.toDOM){g.destroy(i);let b=i.nextSibling;i.remove(),i=b}}if(!p)break;p.toDOM&&(m?i=i.nextSibling:this.dom.insertBefore(p.toDOM(e),i)),m&&a++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}function T3(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(!r[t].compare(e[t]))return!1;return!0}const P3=qn.define(),Pp=qn.define({combine(r){return Sl(r,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let i in t){let s=n[i],a=t[i];n[i]=s?(l,p,m)=>s(l,p,m)||a(l,p,m):a}return n}})}});class N0 extends sc{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function I0(r,e){return r.state.facet(Pp).formatNumber(e,r.state)}const k3=Mf.compute([Pp],r=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(P3)},lineMarker(e,t,n){return n.some(i=>i.toDOM)?null:new N0(I0(e,e.state.doc.lineAt(t.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Pp)!=e.state.facet(Pp),initialSpacer(e){return new N0(I0(e,Nx(e.state.doc.lines)))},updateSpacer(e,t){let n=I0(t.view,Nx(t.view.state.doc.lines));return n==e.number?e:new N0(n)},domEventHandlers:r.facet(Pp).domEventHandlers}));function F3(r={}){return[Pp.of(r),a2(),k3]}function Nx(r){let e=9;for(;e<r;)e=e*10+9;return e}const _3=new class extends sc{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},$3=wm.compute(["selection"],r=>{let e=[],t=-1;for(let n of r.selection.ranges){let i=r.doc.lineAt(n.head).from;i>t&&(t=i,e.push(_3.range(i)))}return Ss.of(e)});function B3(){return $3}function Ed(r){return Wv()?(EA(r),!0):!1}function Rf(){const r=new Set,e=i=>{r.delete(i)};return{on:i=>{r.add(i);const s=()=>e(i);return Ed(s),{off:s}},off:e,trigger:(...i)=>Promise.all(Array.from(r).map(s=>s(...i)))}}function Oo(r){return typeof r=="function"?r():wi(r)}const aO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const N3=r=>typeof r<"u",I3=Object.prototype.toString,M3=r=>I3.call(r)==="[object Object]",zh=()=>{};function uO(r,e){function t(...n){return new Promise((i,s)=>{Promise.resolve(r(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(i).catch(s)})}return t}const l2=r=>r();function R3(r,e={}){let t,n,i=zh;const s=l=>{clearTimeout(l),i(),i=zh};return l=>{const p=Oo(r),m=Oo(e.maxWait);return t&&s(t),p<=0||m!==void 0&&m<=0?(n&&(s(n),n=null),Promise.resolve(l())):new Promise((g,b)=>{i=e.rejectOnCancel?b:g,m&&!n&&(n=setTimeout(()=>{t&&s(t),n=null,g(l())},m)),t=setTimeout(()=>{n&&s(n),n=null,g(l())},p)})}}function Q3(r,e=!0,t=!0,n=!1){let i=0,s,a=!0,l=zh,p;const m=()=>{s&&(clearTimeout(s),s=void 0,l(),l=zh)};return b=>{const S=Oo(r),$=Date.now()-i,G=()=>p=b();return m(),S<=0?(i=Date.now(),G()):($>S&&(t||!a)?(i=Date.now(),G()):e&&(p=new Promise((be,ke)=>{l=n?ke:be,s=setTimeout(()=>{i=Date.now(),a=!0,be(G()),m()},Math.max(0,S-$))})),!t&&!s&&(s=setTimeout(()=>a=!0,S)),a=!1,p)}}function j3(r=l2){const e=Zs(!0);function t(){e.value=!1}function n(){e.value=!0}const i=(...s)=>{e.value&&r(...s)};return{isActive:Od(e),pause:t,resume:n,eventFilter:i}}function Ix(r,e=!1,t="Timeout"){return new Promise((n,i)=>{setTimeout(e?()=>i(t):n,r)})}function L3(r){let e;function t(){return e||(e=r()),e}return t.reset=async()=>{const n=e;e=void 0,n&&await n},t}function X3(r,...e){return e.some(t=>t in r)}function V3(r){return r||zD()}function Am(...r){if(r.length!==1)return eT(...r);const e=r[0];return typeof e=="function"?Od(GA(()=>({get:e,set:zh}))):Zs(e)}function U3(r,e=200,t={}){return uO(R3(e,t),r)}function q3(r,e=200,t={}){const n=Zs(r.value),i=U3(()=>{n.value=r.value},e,t);return Ro(r,()=>i()),n}function z3(r,e=200,t=!1,n=!0,i=!1){return uO(Q3(e,t,n,i),r)}function W3(r,e,t={}){const{eventFilter:n=l2,...i}=t;return Ro(r,uO(n,e),i)}function Z3(r,e,t={}){const{eventFilter:n,...i}=t,{eventFilter:s,pause:a,resume:l,isActive:p}=j3(n);return{stop:W3(r,e,{...i,eventFilter:s}),pause:a,resume:l,isActive:p}}function c2(r,e=!0,t){V3()?Ng(r,t):e?r():Hh(r)}function tD(r,e=!1){function t(b,{flush:S="sync",deep:$=!1,timeout:G,throwOnTimeout:be}={}){let ke=null;const Ve=[new Promise(Dt=>{ke=Ro(r,ht=>{b(ht)!==e&&(ke==null||ke(),Dt(ht))},{flush:S,deep:$,immediate:!0})})];return G!=null&&Ve.push(Ix(G,be).then(()=>Oo(r)).finally(()=>ke==null?void 0:ke())),Promise.race(Ve)}function n(b,S){if(!Hs(b))return t(ht=>ht===b,S);const{flush:$="sync",deep:G=!1,timeout:be,throwOnTimeout:ke}=S??{};let me=null;const Dt=[new Promise(ht=>{me=Ro([r,b],([bt,Yt])=>{e!==(bt===Yt)&&(me==null||me(),ht(bt))},{flush:$,deep:G,immediate:!0})})];return be!=null&&Dt.push(Ix(be,ke).then(()=>Oo(r)).finally(()=>(me==null||me(),Oo(r)))),Promise.race(Dt)}function i(b){return t(S=>!!S,b)}function s(b){return n(null,b)}function a(b){return n(void 0,b)}function l(b){return t(Number.isNaN,b)}function p(b,S){return t($=>{const G=Array.from($);return G.includes(b)||G.includes(Oo(b))},S)}function m(b){return g(1,b)}function g(b=1,S){let $=-1;return t(()=>($+=1,$>=b),S)}return Array.isArray(Oo(r))?{toMatch:t,toContains:p,changed:m,changedTimes:g,get not(){return tD(r,!e)}}:{toMatch:t,toBe:n,toBeTruthy:i,toBeNull:s,toBeNaN:l,toBeUndefined:a,changed:m,changedTimes:g,get not(){return tD(r,!e)}}}function Y3(r){return tD(r)}function h2(r,e,t={}){const{immediate:n=!0}=t,i=Zs(!1);let s=null;function a(){s&&(clearTimeout(s),s=null)}function l(){i.value=!1,a()}function p(...m){a(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=null,r(...m)},Oo(e))}return n&&(i.value=!0,aO&&p()),Ed(l),{isPending:Od(i),start:p,stop:l}}function Z7(r,e,t){let n;Hs(t)?n={evaluating:t}:n=t||{};const{lazy:i=!1,evaluating:s=void 0,shallow:a=!0,onError:l=zh}=n,p=Zs(!i),m=a?Np(e):Zs(e);let g=0;return gC(async b=>{if(!p.value)return;g++;const S=g;let $=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{const G=await r(be=>{b(()=>{s&&(s.value=!1),$||be()})});S===g&&(m.value=G)}catch(G){l(G)}finally{s&&S===g&&(s.value=!1),$=!0}}),i?as(()=>(p.value=!0,m.value)):m}function sd(r){var e;const t=Oo(r);return(e=t==null?void 0:t.$el)!=null?e:t}const oc=aO?window:void 0,p2=aO?window.navigator:void 0;function od(...r){let e,t,n,i;if(typeof r[0]=="string"||Array.isArray(r[0])?([t,n,i]=r,e=oc):[e,t,n,i]=r,!e)return zh;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const s=[],a=()=>{s.forEach(g=>g()),s.length=0},l=(g,b,S,$)=>(g.addEventListener(b,S,$),()=>g.removeEventListener(b,S,$)),p=Ro(()=>[sd(e),Oo(i)],([g,b])=>{if(a(),!g)return;const S=M3(b)?{...b}:b;s.push(...t.flatMap($=>n.map(G=>l(g,$,G,S))))},{immediate:!0,flush:"post"}),m=()=>{p(),a()};return Ed(m),m}function G3(){const r=Zs(!1);return zD()&&Ng(()=>{r.value=!0}),r}function Vg(r){const e=G3();return as(()=>(e.value,!!r()))}function H3(r,e={}){const{window:t=oc}=e,n=Vg(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let i;const s=Zs(!1),a=m=>{s.value=m.matches},l=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},p=gC(()=>{n.value&&(l(),i=t.matchMedia(Oo(r)),"addEventListener"in i?i.addEventListener("change",a):i.addListener(a),s.value=i.matches)});return Ed(()=>{p(),l(),i=void 0}),s}function Mx(r,e={}){const{controls:t=!1,navigator:n=p2}=e,i=Vg(()=>n&&"permissions"in n);let s;const a=typeof r=="string"?{name:r}:r,l=Zs(),p=()=>{s&&(l.value=s.state)},m=L3(async()=>{if(i.value){if(!s)try{s=await n.permissions.query(a),od(s,"change",p),p()}catch{l.value="prompt"}return s}});return m(),t?{state:l,isSupported:i,query:m}:l}function J3(r={}){const{navigator:e=p2,read:t=!1,source:n,copiedDuring:i=1500,legacy:s=!1}=r,a=Vg(()=>e&&"clipboard"in e),l=Mx("clipboard-read"),p=Mx("clipboard-write"),m=as(()=>a.value||s),g=Zs(""),b=Zs(!1),S=h2(()=>b.value=!1,i);function $(){a.value&&l.value!=="denied"?e.clipboard.readText().then(me=>{g.value=me}):g.value=ke()}m.value&&t&&od(["copy","cut"],$);async function G(me=Oo(n)){m.value&&me!=null&&(a.value&&p.value!=="denied"?await e.clipboard.writeText(me):be(me),g.value=me,b.value=!0,S.start())}function be(me){const Ve=document.createElement("textarea");Ve.value=me??"",Ve.style.position="absolute",Ve.style.opacity="0",document.body.appendChild(Ve),Ve.select(),document.execCommand("copy"),Ve.remove()}function ke(){var me,Ve,Dt;return(Dt=(Ve=(me=document==null?void 0:document.getSelection)==null?void 0:me.call(document))==null?void 0:Ve.toString())!=null?Dt:""}return{isSupported:m,text:g,copied:b,copy:G}}function K3(r){return JSON.parse(JSON.stringify(r))}const rm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},nm="__vueuse_ssr_handlers__",e_=t_();function t_(){return nm in rm||(rm[nm]=rm[nm]||{}),rm[nm]}function f2(r,e){return e_[r]||e}function r_(r){return r==null?"any":r instanceof Set?"set":r instanceof Map?"map":r instanceof Date?"date":typeof r=="boolean"?"boolean":typeof r=="string"?"string":typeof r=="object"?"object":Number.isNaN(r)?"any":"number"}const n_={boolean:{read:r=>r==="true",write:r=>String(r)},object:{read:r=>JSON.parse(r),write:r=>JSON.stringify(r)},number:{read:r=>Number.parseFloat(r),write:r=>String(r)},any:{read:r=>r,write:r=>String(r)},string:{read:r=>r,write:r=>String(r)},map:{read:r=>new Map(JSON.parse(r)),write:r=>JSON.stringify(Array.from(r.entries()))},set:{read:r=>new Set(JSON.parse(r)),write:r=>JSON.stringify(Array.from(r))},date:{read:r=>new Date(r),write:r=>r.toISOString()}},Rx="vueuse-storage";function d2(r,e,t,n={}){var i;const{flush:s="pre",deep:a=!0,listenToStorageChanges:l=!0,writeDefaults:p=!0,mergeDefaults:m=!1,shallow:g,window:b=oc,eventFilter:S,onError:$=yr=>{console.error(yr)},initOnMounted:G}=n,be=(g?Np:Zs)(typeof e=="function"?e():e);if(!t)try{t=f2("getDefaultStorage",()=>{var yr;return(yr=oc)==null?void 0:yr.localStorage})()}catch(yr){$(yr)}if(!t)return be;const ke=Oo(e),me=r_(ke),Ve=(i=n.serializer)!=null?i:n_[me],{pause:Dt,resume:ht}=Z3(be,()=>bt(be.value),{flush:s,deep:a,eventFilter:S});return b&&l&&c2(()=>{od(b,"storage",qr),od(b,Rx,ir),G&&qr()}),G||qr(),be;function bt(yr){try{if(yr==null)t.removeItem(r);else{const kr=Ve.write(yr),Zr=t.getItem(r);Zr!==kr&&(t.setItem(r,kr),b&&b.dispatchEvent(new CustomEvent(Rx,{detail:{key:r,oldValue:Zr,newValue:kr,storageArea:t}})))}}catch(kr){$(kr)}}function Yt(yr){const kr=yr?yr.newValue:t.getItem(r);if(kr==null)return p&&ke!=null&&t.setItem(r,Ve.write(ke)),ke;if(!yr&&m){const Zr=Ve.read(kr);return typeof m=="function"?m(Zr,ke):me==="object"&&!Array.isArray(Zr)?{...ke,...Zr}:Zr}else return typeof kr!="string"?kr:Ve.read(kr)}function ir(yr){qr(yr.detail)}function qr(yr){if(!(yr&&yr.storageArea!==t)){if(yr&&yr.key==null){be.value=ke;return}if(!(yr&&yr.key!==r)){Dt();try{(yr==null?void 0:yr.newValue)!==Ve.write(be.value)&&(be.value=Yt(yr))}catch(kr){$(kr)}finally{yr?Hh(ht):ht()}}}}}function m2(r){return H3("(prefers-color-scheme: dark)",r)}function i_(r={}){const{selector:e="html",attribute:t="class",initialValue:n="auto",window:i=oc,storage:s,storageKey:a="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:p,emitAuto:m,disableTransition:g=!0}=r,b={auto:"",light:"light",dark:"dark",...r.modes||{}},S=m2({window:i}),$=as(()=>S.value?"dark":"light"),G=p||(a==null?Am(n):d2(a,n,s,{window:i,listenToStorageChanges:l})),be=as(()=>G.value==="auto"?$.value:G.value),ke=f2("updateHTMLAttrs",(ht,bt,Yt)=>{const ir=typeof ht=="string"?i==null?void 0:i.document.querySelector(ht):sd(ht);if(!ir)return;let qr;if(g){qr=i.document.createElement("style");const yr="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";qr.appendChild(document.createTextNode(yr)),i.document.head.appendChild(qr)}if(bt==="class"){const yr=Yt.split(/\s/g);Object.values(b).flatMap(kr=>(kr||"").split(/\s/g)).filter(Boolean).forEach(kr=>{yr.includes(kr)?ir.classList.add(kr):ir.classList.remove(kr)})}else ir.setAttribute(bt,Yt);g&&(i.getComputedStyle(qr).opacity,document.head.removeChild(qr))});function me(ht){var bt;ke(e,t,(bt=b[ht])!=null?bt:ht)}function Ve(ht){r.onChanged?r.onChanged(ht,me):me(ht)}Ro(be,Ve,{flush:"post",immediate:!0}),c2(()=>Ve(be.value));const Dt=as({get(){return m?G.value:be.value},set(ht){G.value=ht}});try{return Object.assign(Dt,{store:G,system:$,state:be})}catch{return Dt}}function s_(r={}){const{valueDark:e="dark",valueLight:t="",window:n=oc}=r,i=i_({...r,onChanged:(l,p)=>{var m;r.onChanged?(m=r.onChanged)==null||m.call(r,l==="dark",p,l):p(l)},modes:{dark:e,light:t}}),s=as(()=>i.system?i.system.value:m2({window:n}).value?"dark":"light");return as({get(){return i.value==="dark"},set(l){const p=l?"dark":"light";s.value===p?i.value="auto":i.value=p}})}function o_(r,e,t={}){const{window:n=oc,...i}=t;let s;const a=Vg(()=>n&&"ResizeObserver"in n),l=()=>{s&&(s.disconnect(),s=void 0)},p=as(()=>Array.isArray(r)?r.map(b=>sd(b)):[sd(r)]),m=Ro(p,b=>{if(l(),a.value&&n){s=new ResizeObserver(e);for(const S of b)S&&s.observe(S,i)}},{immediate:!0,flush:"post",deep:!0}),g=()=>{l(),m()};return Ed(g),{isSupported:a,stop:g}}const a_={json:"application/json",text:"text/plain"};function Qx(r){return r&&X3(r,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}function M0(r){return typeof Headers<"u"&&r instanceof Headers?Object.fromEntries([...r.entries()]):r}function Ug(r,...e){var t;const n=typeof AbortController=="function";let i={},s={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const a={method:"GET",type:"text",payload:void 0};e.length>0&&(Qx(e[0])?s={...s,...e[0]}:i=e[0]),e.length>1&&Qx(e[1])&&(s={...s,...e[1]});const{fetch:l=(t=oc)==null?void 0:t.fetch,initialData:p,timeout:m}=s,g=Rf(),b=Rf(),S=Rf(),$=Zs(!1),G=Zs(!1),be=Zs(!1),ke=Zs(null),me=Np(null),Ve=Np(null),Dt=Np(p||null),ht=as(()=>n&&G.value);let bt,Yt;const ir=()=>{n&&(bt==null||bt.abort(),bt=new AbortController,bt.signal.onabort=()=>be.value=!0,i={...i,signal:bt.signal})},qr=Sn=>{G.value=Sn,$.value=!Sn};m&&(Yt=h2(ir,m,{immediate:!1}));let yr=0;const kr=async(Sn=!1)=>{var Wn,jn;ir(),qr(!0),Ve.value=null,ke.value=null,be.value=!1,yr+=1;const Bn=yr,$i={method:a.method,headers:{}};if(a.payload){const us=M0($i.headers),Xs=Oo(a.payload);!a.payloadType&&Xs&&Object.getPrototypeOf(Xs)===Object.prototype&&!(Xs instanceof FormData)&&(a.payloadType="json"),a.payloadType&&(us["Content-Type"]=(Wn=a_[a.payloadType])!=null?Wn:a.payloadType),$i.body=a.payloadType==="json"?JSON.stringify(Xs):Xs}let Ui=!1;const os={url:Oo(r),options:{...$i,...i},cancel:()=>{Ui=!0}};if(s.beforeFetch&&Object.assign(os,await s.beforeFetch(os)),Ui||!l)return qr(!1),Promise.resolve(null);let ds=null;return Yt&&Yt.start(),l(os.url,{...$i,...os.options,headers:{...M0($i.headers),...M0((jn=os.options)==null?void 0:jn.headers)}}).then(async us=>{if(me.value=us,ke.value=us.status,ds=await us.clone()[a.type](),!us.ok)throw Dt.value=p||null,new Error(us.statusText);return s.afterFetch&&({data:ds}=await s.afterFetch({data:ds,response:us})),Dt.value=ds,g.trigger(us),us}).catch(async us=>{let Xs=us.message||us.name;if(s.onFetchError&&({error:Xs,data:ds}=await s.onFetchError({data:ds,error:us,response:me.value})),Ve.value=Xs,s.updateDataOnError&&(Dt.value=ds),b.trigger(us),Sn)throw us;return null}).finally(()=>{Bn===yr&&qr(!1),Yt&&Yt.stop(),S.trigger(null)})},Zr=Am(s.refetch);Ro([Zr,Am(r)],([Sn])=>Sn&&kr(),{deep:!0});const zn={isFinished:$,statusCode:ke,response:me,error:Ve,data:Dt,isFetching:G,canAbort:ht,aborted:be,abort:ir,execute:kr,onFetchResponse:g.on,onFetchError:b.on,onFetchFinally:S.on,get:Gn("GET"),put:Gn("PUT"),post:Gn("POST"),delete:Gn("DELETE"),patch:Gn("PATCH"),head:Gn("HEAD"),options:Gn("OPTIONS"),json:ii("json"),text:ii("text"),blob:ii("blob"),arrayBuffer:ii("arrayBuffer"),formData:ii("formData")};function Gn(Sn){return(Wn,jn)=>{if(!G.value)return a.method=Sn,a.payload=Wn,a.payloadType=jn,Hs(a.payload)&&Ro([Zr,Am(a.payload)],([Bn])=>Bn&&kr(),{deep:!0}),{...zn,then(Bn,$i){return Ii().then(Bn,$i)}}}}function Ii(){return new Promise((Sn,Wn)=>{Y3($).toBe(!0).then(()=>Sn(zn)).catch(jn=>Wn(jn))})}function ii(Sn){return()=>{if(!G.value)return a.type=Sn,{...zn,then(Wn,jn){return Ii().then(Wn,jn)}}}}return s.immediate&&Promise.resolve().then(()=>kr()),{...zn,then(Sn,Wn){return Ii().then(Sn,Wn)}}}function Y7(r,e,t={}){const{window:n=oc}=t;return d2(r,e,n==null?void 0:n.localStorage,t)}function lO(r,e,t,n={}){var i,s,a;const{clone:l=!1,passive:p=!1,eventName:m,deep:g=!1,defaultValue:b,shouldEmit:S}=n,$=zD(),G=t||($==null?void 0:$.emit)||((i=$==null?void 0:$.$emit)==null?void 0:i.bind($))||((a=(s=$==null?void 0:$.proxy)==null?void 0:s.$emit)==null?void 0:a.bind($==null?void 0:$.proxy));let be=m;e||(e="modelValue"),be=be||`update:${e.toString()}`;const ke=Dt=>l?typeof l=="function"?l(Dt):K3(Dt):Dt,me=()=>N3(r[e])?ke(r[e]):b,Ve=Dt=>{S?S(Dt)&&G(be,Dt):G(be,Dt)};if(p){const Dt=me(),ht=Zs(Dt);let bt=!1;return Ro(()=>r[e],Yt=>{bt||(bt=!0,ht.value=ke(Yt),Hh(()=>bt=!1))}),Ro(ht,Yt=>{!bt&&(Yt!==r[e]||g)&&Ve(Yt)},{deep:g}),ht}else return as({get(){return me()},set(Dt){Ve(Dt)}})}const g2=1024;let u_=0;class Ja{constructor(e,t){this.from=e,this.to=t}}class Gi{constructor(e={}){this.id=u_++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=ga.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}}Gi.closedBy=new Gi({deserialize:r=>r.split(" ")});Gi.openedBy=new Gi({deserialize:r=>r.split(" ")});Gi.group=new Gi({deserialize:r=>r.split(" ")});Gi.contextHash=new Gi({perNode:!0});Gi.lookAhead=new Gi({perNode:!0});Gi.mounted=new Gi({perNode:!0});class l_{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}}const c_=Object.create(null);class ga{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):c_,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new ga(e.name||"",t,e.id,n);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(i)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[s[0].id]=s[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(Gi.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return n=>{for(let i=n.prop(Gi.group),s=-1;s<(i?i.length:0);s++){let a=t[s<0?n.name:i[s]];if(a)return a}}}}ga.none=new ga("",Object.create(null),0,8);class cO{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let i=null;for(let s of e){let a=s(n);a&&(i||(i=Object.assign({},n.props)),i[a[0].id]=a[1])}t.push(i?new ga(n.name,i,n.id,n.flags):n)}return new cO(t)}}const im=new WeakMap,jx=new WeakMap;var Ls;(function(r){r[r.ExcludeBuffers=1]="ExcludeBuffers",r[r.IncludeAnonymous=2]="IncludeAnonymous",r[r.IgnoreMounts=4]="IgnoreMounts",r[r.IgnoreOverlays=8]="IgnoreOverlays"})(Ls||(Ls={}));class io{constructor(e,t,n,i,s){if(this.type=e,this.children=t,this.positions=n,this.length=i,this.props=null,s&&s.length){this.props=Object.create(null);for(let[a,l]of s)this.props[typeof a=="number"?a:a.id]=l}}toString(){let e=this.prop(Gi.mounted);if(e&&!e.overlay)return e.tree.toString();let t="";for(let n of this.children){let i=n.toString();i&&(t&&(t+=","),t+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new ad(this.topNode,e)}cursorAt(e,t=0,n=0){let i=im.get(this)||this.topNode,s=new ad(i);return s.moveTo(e,t),im.set(this,s._tree),s}get topNode(){return new ru(this,0,0,null)}resolve(e,t=0){let n=Yp(im.get(this)||this.topNode,e,t,!1);return im.set(this,n),n}resolveInner(e,t=0){let n=Yp(jx.get(this)||this.topNode,e,t,!0);return jx.set(this,n),n}iterate(e){let{enter:t,leave:n,from:i=0,to:s=this.length}=e,a=e.mode||0,l=(a&Ls.IncludeAnonymous)>0;for(let p=this.cursor(a|Ls.IncludeAnonymous);;){let m=!1;if(p.from<=s&&p.to>=i&&(!l&&p.type.isAnonymous||t(p)!==!1)){if(p.firstChild())continue;m=!0}for(;m&&n&&(l||!p.type.isAnonymous)&&n(p),!p.nextSibling();){if(!p.parent())return;m=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:fO(ga.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,i)=>new io(this.type,t,n,i,this.propValues),e.makeTree||((t,n,i)=>new io(ga.none,t,n,i)))}static build(e){return p_(e)}}io.empty=new io(ga.none,[],[],0);class hO{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new hO(this.buffer,this.index)}}class Kh{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return ga.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],i=this.set.types[t],s=i.name;if(/\W/.test(s)&&!i.isError&&(s=JSON.stringify(s)),e+=4,n==e)return s;let a=[];for(;e<n;)a.push(this.childString(e)),e=this.buffer[e+3];return s+"("+a.join(",")+")"}findChild(e,t,n,i,s){let{buffer:a}=this,l=-1;for(let p=e;p!=t&&!(y2(s,i,a[p+1],a[p+2])&&(l=p,n>0));p=a[p+3]);return l}slice(e,t,n){let i=this.buffer,s=new Uint16Array(t-e),a=0;for(let l=e,p=0;l<t;){s[p++]=i[l++],s[p++]=i[l++]-n;let m=s[p++]=i[l++]-n;s[p++]=i[l++]-e,a=Math.max(a,m)}return new Kh(s,a,this.set)}}function y2(r,e,t,n){switch(r){case-2:return t<e;case-1:return n>=e&&t<e;case 0:return t<e&&n>e;case 1:return t<=e&&n>e;case 2:return n>e;case 4:return!0}}function D2(r,e){let t=r.childBefore(e);for(;t;){let n=t.lastChild;if(!n||n.to!=t.to)break;n.type.isError&&n.from==n.to?(r=t,t=n.prevSibling):t=n}return r}function Yp(r,e,t,n){for(var i;r.from==r.to||(t<1?r.from>=e:r.from>e)||(t>-1?r.to<=e:r.to<e);){let a=!n&&r instanceof ru&&r.index<0?null:r.parent;if(!a)return r;r=a}let s=n?0:Ls.IgnoreOverlays;if(n)for(let a=r,l=a.parent;l;a=l,l=a.parent)a instanceof ru&&a.index<0&&((i=l.enter(e,t,s))===null||i===void 0?void 0:i.from)!=a.from&&(r=l);for(;;){let a=r.enter(e,t,s);if(!a)return r;r=a}}class ru{constructor(e,t,n,i){this._tree=e,this.from=t,this.index=n,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,i,s=0){for(let a=this;;){for(let{children:l,positions:p}=a._tree,m=t>0?l.length:-1;e!=m;e+=t){let g=l[e],b=p[e]+a.from;if(y2(i,n,b,b+g.length)){if(g instanceof Kh){if(s&Ls.ExcludeBuffers)continue;let S=g.findChild(0,g.buffer.length,t,n-b,i);if(S>-1)return new hl(new h_(a,g,e,b),null,S)}else if(s&Ls.IncludeAnonymous||!g.type.isAnonymous||pO(g)){let S;if(!(s&Ls.IgnoreMounts)&&g.props&&(S=g.prop(Gi.mounted))&&!S.overlay)return new ru(S.tree,b,e,a);let $=new ru(g,b,e,a);return s&Ls.IncludeAnonymous||!$.type.isAnonymous?$:$.nextChild(t<0?g.children.length-1:0,t,n,i)}}}if(s&Ls.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?e=a.index+t:e=t<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let i;if(!(n&Ls.IgnoreOverlays)&&(i=this._tree.prop(Gi.mounted))&&i.overlay){let s=e-this.from;for(let{from:a,to:l}of i.overlay)if((t>0?a<=s:a<s)&&(t<0?l>=s:l>s))return new ru(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new ad(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return Yp(this,e,t,!1)}resolveInner(e,t=0){return Yp(this,e,t,!0)}enterUnfinishedNodesBefore(e){return D2(this,e)}getChild(e,t=null,n=null){let i=Hm(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return Hm(this,e,t,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return Jm(this,e)}}function Hm(r,e,t,n){let i=r.cursor(),s=[];if(!i.firstChild())return s;if(t!=null){for(;!i.type.is(t);)if(!i.nextSibling())return s}for(;;){if(n!=null&&i.type.is(n))return s;if(i.type.is(e)&&s.push(i.node),!i.nextSibling())return n==null?s:[]}}function Jm(r,e,t=e.length-1){for(let n=r.parent;t>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[t]&&e[t]!=n.name)return!1;t--}}return!0}class h_{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class hl{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return s<0?null:new hl(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&Ls.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return s<0?null:new hl(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new hl(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new hl(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new ad(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,s=n.buffer[this.index+3];if(s>i){let a=n.buffer[this.index+1];e.push(n.slice(i,s,a)),t.push(0)}return new io(this.type,e,t,this.to-this.from)}resolve(e,t=0){return Yp(this,e,t,!1)}resolveInner(e,t=0){return Yp(this,e,t,!0)}enterUnfinishedNodesBefore(e){return D2(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let i=Hm(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return Hm(this,e,t,n)}get node(){return this}matchContext(e){return Jm(this,e)}}class ad{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof ru)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return e?e instanceof ru?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,s=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&Ls.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Ls.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Ls.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let i=n<0?0:this.stack[n]+4;if(this.index!=i)return this.yieldBuf(t.findChild(i,this.index,-1,0,4))}else{let i=t.buffer[this.index+3];if(i<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(i)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(i.buffer.buffer[s+3]<this.index)return!1;({index:t,parent:n}=i)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let s=t+e,a=e<0?-1:n._tree.children.length;s!=a;s+=e){let l=n._tree.children[s];if(this.mode&Ls.IncludeAnonymous||l instanceof Kh||!l.type.isAnonymous||pO(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let i=this.index,s=this.stack.length;s>=0;){for(let a=e;a;a=a._parent)if(a.index==i){if(i==this.index)return a;t=a,n=s+1;break e}i=this.stack[--s]}for(let i=n;i<this.stack.length;i++)t=new hl(this.buffer,t,this.stack[i]);return this.bufferNode=new hl(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let i=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(i=!0)}for(;i&&t&&t(this),i=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,i=!0}}}matchContext(e){if(!this.buffer)return Jm(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let i=e.length-1,s=this.stack.length-1;i>=0;s--){if(s<0)return Jm(this.node,e,i);let a=n[t.buffer[this.stack[s]]];if(!a.isAnonymous){if(e[i]&&e[i]!=a.name)return!1;i--}}return!0}}function pO(r){return r.children.some(e=>e instanceof Kh||!e.type.isAnonymous||pO(e))}function p_(r){var e;let{buffer:t,nodeSet:n,maxBufferLength:i=g2,reused:s=[],minRepeatType:a=n.types.length}=r,l=Array.isArray(t)?new hO(t,t.length):t,p=n.types,m=0,g=0;function b(ht,bt,Yt,ir,qr){let{id:yr,start:kr,end:Zr,size:zn}=l,Gn=g;for(;zn<0;)if(l.next(),zn==-1){let jn=s[yr];Yt.push(jn),ir.push(kr-ht);return}else if(zn==-3){m=yr;return}else if(zn==-4){g=yr;return}else throw new RangeError(`Unrecognized record size: ${zn}`);let Ii=p[yr],ii,Sn,Wn=kr-ht;if(Zr-kr<=i&&(Sn=be(l.pos-bt,qr))){let jn=new Uint16Array(Sn.size-Sn.skip),Bn=l.pos-Sn.size,$i=jn.length;for(;l.pos>Bn;)$i=ke(Sn.start,jn,$i);ii=new Kh(jn,Zr-Sn.start,n),Wn=Sn.start-ht}else{let jn=l.pos-zn;l.next();let Bn=[],$i=[],Ui=yr>=a?yr:-1,os=0,ds=Zr;for(;l.pos>jn;)Ui>=0&&l.id==Ui&&l.size>=0?(l.end<=ds-i&&($(Bn,$i,kr,os,l.end,ds,Ui,Gn),os=Bn.length,ds=l.end),l.next()):b(kr,jn,Bn,$i,Ui);if(Ui>=0&&os>0&&os<Bn.length&&$(Bn,$i,kr,os,kr,ds,Ui,Gn),Bn.reverse(),$i.reverse(),Ui>-1&&os>0){let us=S(Ii);ii=fO(Ii,Bn,$i,0,Bn.length,0,Zr-kr,us,us)}else ii=G(Ii,Bn,$i,Zr-kr,Gn-Zr)}Yt.push(ii),ir.push(Wn)}function S(ht){return(bt,Yt,ir)=>{let qr=0,yr=bt.length-1,kr,Zr;if(yr>=0&&(kr=bt[yr])instanceof io){if(!yr&&kr.type==ht&&kr.length==ir)return kr;(Zr=kr.prop(Gi.lookAhead))&&(qr=Yt[yr]+kr.length+Zr)}return G(ht,bt,Yt,ir,qr)}}function $(ht,bt,Yt,ir,qr,yr,kr,Zr){let zn=[],Gn=[];for(;ht.length>ir;)zn.push(ht.pop()),Gn.push(bt.pop()+Yt-qr);ht.push(G(n.types[kr],zn,Gn,yr-qr,Zr-yr)),bt.push(qr-Yt)}function G(ht,bt,Yt,ir,qr=0,yr){if(m){let kr=[Gi.contextHash,m];yr=yr?[kr].concat(yr):[kr]}if(qr>25){let kr=[Gi.lookAhead,qr];yr=yr?[kr].concat(yr):[kr]}return new io(ht,bt,Yt,ir,yr)}function be(ht,bt){let Yt=l.fork(),ir=0,qr=0,yr=0,kr=Yt.end-i,Zr={size:0,start:0,skip:0};e:for(let zn=Yt.pos-ht;Yt.pos>zn;){let Gn=Yt.size;if(Yt.id==bt&&Gn>=0){Zr.size=ir,Zr.start=qr,Zr.skip=yr,yr+=4,ir+=4,Yt.next();continue}let Ii=Yt.pos-Gn;if(Gn<0||Ii<zn||Yt.start<kr)break;let ii=Yt.id>=a?4:0,Sn=Yt.start;for(Yt.next();Yt.pos>Ii;){if(Yt.size<0)if(Yt.size==-3)ii+=4;else break e;else Yt.id>=a&&(ii+=4);Yt.next()}qr=Sn,ir+=Gn,yr+=ii}return(bt<0||ir==ht)&&(Zr.size=ir,Zr.start=qr,Zr.skip=yr),Zr.size>4?Zr:void 0}function ke(ht,bt,Yt){let{id:ir,start:qr,end:yr,size:kr}=l;if(l.next(),kr>=0&&ir<a){let Zr=Yt;if(kr>4){let zn=l.pos-(kr-4);for(;l.pos>zn;)Yt=ke(ht,bt,Yt)}bt[--Yt]=Zr,bt[--Yt]=yr-ht,bt[--Yt]=qr-ht,bt[--Yt]=ir}else kr==-3?m=ir:kr==-4&&(g=ir);return Yt}let me=[],Ve=[];for(;l.pos>0;)b(r.start||0,r.bufferStart||0,me,Ve,-1);let Dt=(e=r.length)!==null&&e!==void 0?e:me.length?Ve[0]+me[0].length:0;return new io(p[r.topID],me.reverse(),Ve.reverse(),Dt)}const Lx=new WeakMap;function Tm(r,e){if(!r.isAnonymous||e instanceof Kh||e.type!=r)return 1;let t=Lx.get(e);if(t==null){t=1;for(let n of e.children){if(n.type!=r||!(n instanceof io)){t=1;break}t+=Tm(r,n)}Lx.set(e,t)}return t}function fO(r,e,t,n,i,s,a,l,p){let m=0;for(let G=n;G<i;G++)m+=Tm(r,e[G]);let g=Math.ceil(m*1.5/8),b=[],S=[];function $(G,be,ke,me,Ve){for(let Dt=ke;Dt<me;){let ht=Dt,bt=be[Dt],Yt=Tm(r,G[Dt]);for(Dt++;Dt<me;Dt++){let ir=Tm(r,G[Dt]);if(Yt+ir>=g)break;Yt+=ir}if(Dt==ht+1){if(Yt>g){let ir=G[ht];$(ir.children,ir.positions,0,ir.children.length,be[ht]+Ve);continue}b.push(G[ht])}else{let ir=be[Dt-1]+G[Dt-1].length-bt;b.push(fO(r,G,be,ht,Dt,bt,ir,null,p))}S.push(bt+Ve-s)}}return $(e,t,n,i,0),(l||p)(b,S,a)}class O2{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof hl?this.setBuffer(e.context.buffer,e.index,t):e instanceof ru&&this.map.set(e.tree,t)}get(e){return e instanceof hl?this.getBuffer(e.context.buffer,e.index):e instanceof ru?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class ec{constructor(e,t,n,i,s=!1,a=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(s?1:0)|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],n=!1){let i=[new ec(0,e.length,e,0,!1,n)];for(let s of t)s.to>e.length&&i.push(s);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],s=1,a=e.length?e[0]:null;for(let l=0,p=0,m=0;;l++){let g=l<t.length?t[l]:null,b=g?g.fromA:1e9;if(b-p>=n)for(;a&&a.from<b;){let S=a;if(p>=S.from||b<=S.to||m){let $=Math.max(S.from,p)-m,G=Math.min(S.to,b)-m;S=$>=G?null:new ec($,G,S.tree,S.offset+m,l>0,!!g)}if(S&&i.push(S),a.to>b)break;a=s<e.length?e[s++]:null}if(!g)break;p=g.toA,m=g.toA-g.toB}return i}}class x2{startParse(e,t,n){return typeof e=="string"&&(e=new f_(e)),n=n?n.length?n.map(i=>new Ja(i.from,i.to)):[new Ja(0,0)]:[new Ja(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let s=i.advance();if(s)return s}}}class f_{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function d_(r){return(e,t,n,i)=>new g_(e,r,t,n,i)}class Xx{constructor(e,t,n,i,s){if(this.parser=e,this.parse=t,this.overlay=n,this.target=i,this.ranges=s,!s.length||s.some(a=>a.from>=a.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(s))}}class m_{constructor(e,t,n,i,s,a,l){this.parser=e,this.predicate=t,this.mounts=n,this.index=i,this.start=s,this.target=a,this.prev=l,this.depth=0,this.ranges=[]}}const rD=new Gi({perNode:!0});class g_{constructor(e,t,n,i,s){this.nest=t,this.input=n,this.fragments=i,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new io(n.type,n.children,n.positions,n.length,n.propValues.concat([[rD,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[Gi.mounted.id]=new l_(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].ranges[0].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new O_(this.fragments),t=null,n=null,i=new ad(new ru(this.baseTree,this.ranges[0].from,0,null),Ls.IncludeAnonymous|Ls.IgnoreMounts);e:for(let s,a;this.stoppedAt==null||i.from<this.stoppedAt;){let l=!0,p;if(e.hasNode(i)){if(t){let m=t.mounts.find(g=>g.frag.from<=i.from&&g.frag.to>=i.to&&g.mount.overlay);if(m)for(let g of m.mount.overlay){let b=g.from+m.pos,S=g.to+m.pos;b>=i.from&&S<=i.to&&!t.ranges.some($=>$.from<S&&$.to>b)&&t.ranges.push({from:b,to:S})}}l=!1}else if(n&&(a=y_(n.ranges,i.from,i.to)))l=a!=2;else if(!i.type.isAnonymous&&i.from<i.to&&(s=this.nest(i,this.input))){i.tree||D_(i);let m=e.findMounts(i.from,s.parser);if(typeof s.overlay=="function")t=new m_(s.parser,s.overlay,m,this.inner.length,i.from,i.tree,t);else{let g=qx(this.ranges,s.overlay||[new Ja(i.from,i.to)]);g.length&&this.inner.push(new Xx(s.parser,s.parser.startParse(this.input,zx(m,g),g),s.overlay?s.overlay.map(b=>new Ja(b.from-i.from,b.to-i.from)):null,i.tree,g)),s.overlay?g.length&&(n={ranges:g,depth:0,prev:n}):l=!1}}else t&&(p=t.predicate(i))&&(p===!0&&(p=new Ja(i.from,i.to)),p.from<p.to&&t.ranges.push(p));if(l&&i.firstChild())t&&t.depth++,n&&n.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(t&&!--t.depth){let m=qx(this.ranges,t.ranges);m.length&&this.inner.splice(t.index,0,new Xx(t.parser,t.parser.startParse(this.input,zx(t.mounts,m),m),t.ranges.map(g=>new Ja(g.from-t.start,g.to-t.start)),t.target,m)),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function y_(r,e,t){for(let n of r){if(n.from>=t)break;if(n.to>e)return n.from<=e&&n.to>=t?2:1}return 0}function Vx(r,e,t,n,i,s){if(e<t){let a=r.buffer[e+1];n.push(r.slice(e,t,a)),i.push(a-s)}}function D_(r){let{node:e}=r,t=0;do r.parent(),t++;while(!r.tree);let n=0,i=r.tree,s=0;for(;s=i.positions[n]+r.from,!(s<=e.from&&s+i.children[n].length>=e.to);n++);let a=i.children[n],l=a.buffer;function p(m,g,b,S,$){let G=m;for(;l[G+2]+s<=e.from;)G=l[G+3];let be=[],ke=[];Vx(a,m,G,be,ke,S);let me=l[G+1],Ve=l[G+2],Dt=me+s==e.from&&Ve+s==e.to&&l[G]==e.type.id;return be.push(Dt?e.toTree():p(G+4,l[G+3],a.set.types[l[G]],me,Ve-me)),ke.push(me-S),Vx(a,l[G+3],g,be,ke,S),new io(b,be,ke,$)}i.children[n]=p(0,l.length,ga.none,0,a.length);for(let m=0;m<=t;m++)r.childAfter(e.from)}class Ux{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(Ls.IncludeAnonymous|Ls.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from<n;)t.to>=e&&t.enter(n,1,Ls.IgnoreOverlays|Ls.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof io)t=t.children[0];else break}return!1}}let O_=class{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(t=n.tree.prop(rD))!==null&&t!==void 0?t:n.to,this.inner=new Ux(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(rD))!==null&&e!==void 0?e:t.to,this.inner=new Ux(t.tree,-t.offset)}}findMounts(e,t){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let s=this.inner.cursor.node;s;s=s.parent){let a=(n=s.tree)===null||n===void 0?void 0:n.prop(Gi.mounted);if(a&&a.parser==t)for(let l=this.fragI;l<this.fragments.length;l++){let p=this.fragments[l];if(p.from>=s.to)break;p.tree==this.curFrag.tree&&i.push({frag:p,pos:s.from-p.offset,mount:a})}}}return i}};function qx(r,e){let t=null,n=e;for(let i=1,s=0;i<r.length;i++){let a=r[i-1].to,l=r[i].from;for(;s<n.length;s++){let p=n[s];if(p.from>=l)break;p.to<=a||(t||(n=t=e.slice()),p.from<a?(t[s]=new Ja(p.from,a),p.to>l&&t.splice(s+1,0,new Ja(l,p.to))):p.to>l?t[s--]=new Ja(l,p.to):t.splice(s--,1))}}return n}function x_(r,e,t,n){let i=0,s=0,a=!1,l=!1,p=-1e9,m=[];for(;;){let g=i==r.length?1e9:a?r[i].to:r[i].from,b=s==e.length?1e9:l?e[s].to:e[s].from;if(a!=l){let S=Math.max(p,t),$=Math.min(g,b,n);S<$&&m.push(new Ja(S,$))}if(p=Math.min(g,b),p==1e9)break;g==p&&(a?(a=!1,i++):a=!0),b==p&&(l?(l=!1,s++):l=!0)}return m}function zx(r,e){let t=[];for(let{pos:n,mount:i,frag:s}of r){let a=n+(i.overlay?i.overlay[0].from:0),l=a+i.tree.length,p=Math.max(s.from,a),m=Math.min(s.to,l);if(i.overlay){let g=i.overlay.map(S=>new Ja(S.from+n,S.to+n)),b=x_(e,g,p,m);for(let S=0,$=p;;S++){let G=S==b.length,be=G?m:b[S].from;if(be>$&&t.push(new ec($,be,i.tree,-a,s.from>=$||s.openStart,s.to<=be||s.openEnd)),G)break;$=b[S].to}}else t.push(new ec(p,m,i.tree,-a,s.from>=a||s.openStart,s.to<=l||s.openEnd))}return t}let b_=0;class al{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=b_++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let t=new al([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new Km;return t=>t.modified.indexOf(e)>-1?t:Km.get(t.base||t,t.modified.concat(e).sort((n,i)=>n.id-i.id))}}let v_=0;class Km{constructor(){this.instances=[],this.id=v_++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(l=>l.base==e&&C_(t,l.modified));if(n)return n;let i=[],s=new al(i,e,t);for(let l of t)l.instances.push(s);let a=S_(t);for(let l of e.set)if(!l.modified.length)for(let p of a)i.push(Km.get(l,p));return s}}function C_(r,e){return r.length==e.length&&r.every((t,n)=>t==e[n])}function S_(r){let e=[[]];for(let t=0;t<r.length;t++)for(let n=0,i=e.length;n<i;n++)e.push(e[n].concat(r[t]));return e.sort((t,n)=>n.length-t.length)}function wd(r){let e=Object.create(null);for(let t in r){let n=r[t];Array.isArray(n)||(n=[n]);for(let i of t.split(" "))if(i){let s=[],a=2,l=i;for(let b=0;;){if(l=="..."&&b>0&&b+3==i.length){a=1;break}let S=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!S)throw new RangeError("Invalid path: "+i);if(s.push(S[0]=="*"?"":S[0][0]=='"'?JSON.parse(S[0]):S[0]),b+=S[0].length,b==i.length)break;let $=i[b++];if(b==i.length&&$=="!"){a=0;break}if($!="/")throw new RangeError("Invalid path: "+i);l=i.slice(b)}let p=s.length-1,m=s[p];if(!m)throw new RangeError("Invalid path: "+i);let g=new eg(n,a,p>0?s.slice(0,p):null);e[m]=g.sort(e[m])}}return b2.add(e)}const b2=new Gi;class eg{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}eg.empty=new eg([],2,null);function v2(r,e){let t=Object.create(null);for(let s of r)if(!Array.isArray(s.tag))t[s.tag.id]=s.class;else for(let a of s.tag)t[a.id]=s.class;let{scope:n,all:i=null}=e||{};return{style:s=>{let a=i;for(let l of s)for(let p of l.set){let m=t[p.id];if(m){a=a?a+" "+m:m;break}}return a},scope:n}}function E_(r,e){let t=null;for(let n of r){let i=n.style(e);i&&(t=t?t+" "+i:i)}return t}function w_(r,e,t,n=0,i=r.length){let s=new A_(n,Array.isArray(e)?e:[e],t);s.highlightRange(r.cursor(),n,i,"",s.highlighters),s.flush(i)}class A_{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,s){let{type:a,from:l,to:p}=e;if(l>=n||p<=t)return;a.isTop&&(s=this.highlighters.filter($=>!$.scope||$.scope(a)));let m=i,g=T_(e)||eg.empty,b=E_(s,g.tags);if(b&&(m&&(m+=" "),m+=b,g.mode==1&&(i+=(i?" ":"")+b)),this.startSpan(Math.max(t,l),m),g.opaque)return;let S=e.tree&&e.tree.prop(Gi.mounted);if(S&&S.overlay){let $=e.node.enter(S.overlay[0].from+l,1),G=this.highlighters.filter(ke=>!ke.scope||ke.scope(S.tree.type)),be=e.firstChild();for(let ke=0,me=l;;ke++){let Ve=ke<S.overlay.length?S.overlay[ke]:null,Dt=Ve?Ve.from+l:p,ht=Math.max(t,me),bt=Math.min(n,Dt);if(ht<bt&&be)for(;e.from<bt&&(this.highlightRange(e,ht,bt,i,s),this.startSpan(Math.min(bt,e.to),m),!(e.to>=Dt||!e.nextSibling())););if(!Ve||Dt>n)break;me=Ve.to+l,me>t&&(this.highlightRange($.cursor(),Math.max(t,Ve.from+l),Math.min(n,me),"",G),this.startSpan(Math.min(n,me),m))}be&&e.parent()}else if(e.firstChild()){S&&(i="");do if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,s),this.startSpan(Math.min(n,e.to),m)}while(e.nextSibling());e.parent()}}}function T_(r){let e=r.type.prop(b2);for(;e&&e.context&&!r.matchContext(e.context);)e=e.next;return e||null}const On=al.define,sm=On(),Mc=On(),Wx=On(Mc),Zx=On(Mc),Rc=On(),om=On(Rc),R0=On(Rc),sl=On(),Th=On(sl),nl=On(),il=On(),nD=On(),Df=On(nD),am=On(),He={comment:sm,lineComment:On(sm),blockComment:On(sm),docComment:On(sm),name:Mc,variableName:On(Mc),typeName:Wx,tagName:On(Wx),propertyName:Zx,attributeName:On(Zx),className:On(Mc),labelName:On(Mc),namespace:On(Mc),macroName:On(Mc),literal:Rc,string:om,docString:On(om),character:On(om),attributeValue:On(om),number:R0,integer:On(R0),float:On(R0),bool:On(Rc),regexp:On(Rc),escape:On(Rc),color:On(Rc),url:On(Rc),keyword:nl,self:On(nl),null:On(nl),atom:On(nl),unit:On(nl),modifier:On(nl),operatorKeyword:On(nl),controlKeyword:On(nl),definitionKeyword:On(nl),moduleKeyword:On(nl),operator:il,derefOperator:On(il),arithmeticOperator:On(il),logicOperator:On(il),bitwiseOperator:On(il),compareOperator:On(il),updateOperator:On(il),definitionOperator:On(il),typeOperator:On(il),controlOperator:On(il),punctuation:nD,separator:On(nD),bracket:Df,angleBracket:On(Df),squareBracket:On(Df),paren:On(Df),brace:On(Df),content:sl,heading:Th,heading1:On(Th),heading2:On(Th),heading3:On(Th),heading4:On(Th),heading5:On(Th),heading6:On(Th),contentSeparator:On(sl),list:On(sl),quote:On(sl),emphasis:On(sl),strong:On(sl),link:On(sl),monospace:On(sl),strikethrough:On(sl),inserted:On(),deleted:On(),changed:On(),invalid:On(),meta:am,documentMeta:On(am),annotation:On(am),processingInstruction:On(am),definition:al.defineModifier(),constant:al.defineModifier(),function:al.defineModifier(),standard:al.defineModifier(),local:al.defineModifier(),special:al.defineModifier()};v2([{tag:He.link,class:"tok-link"},{tag:He.heading,class:"tok-heading"},{tag:He.emphasis,class:"tok-emphasis"},{tag:He.strong,class:"tok-strong"},{tag:He.keyword,class:"tok-keyword"},{tag:He.atom,class:"tok-atom"},{tag:He.bool,class:"tok-bool"},{tag:He.url,class:"tok-url"},{tag:He.labelName,class:"tok-labelName"},{tag:He.inserted,class:"tok-inserted"},{tag:He.deleted,class:"tok-deleted"},{tag:He.literal,class:"tok-literal"},{tag:He.string,class:"tok-string"},{tag:He.number,class:"tok-number"},{tag:[He.regexp,He.escape,He.special(He.string)],class:"tok-string2"},{tag:He.variableName,class:"tok-variableName"},{tag:He.local(He.variableName),class:"tok-variableName tok-local"},{tag:He.definition(He.variableName),class:"tok-variableName tok-definition"},{tag:He.special(He.variableName),class:"tok-variableName2"},{tag:He.definition(He.propertyName),class:"tok-propertyName tok-definition"},{tag:He.typeName,class:"tok-typeName"},{tag:He.namespace,class:"tok-namespace"},{tag:He.className,class:"tok-className"},{tag:He.macroName,class:"tok-macroName"},{tag:He.propertyName,class:"tok-propertyName"},{tag:He.operator,class:"tok-operator"},{tag:He.comment,class:"tok-comment"},{tag:He.meta,class:"tok-meta"},{tag:He.invalid,class:"tok-invalid"},{tag:He.punctuation,class:"tok-punctuation"}]);var Q0;const kp=new Gi;function C2(r){return qn.define({combine:r?e=>e.concat(r):void 0})}const dO=new Gi;class Cu{constructor(e,t,n=[],i=""){this.data=e,this.name=i,gs.prototype.hasOwnProperty("tree")||Object.defineProperty(gs.prototype,"tree",{get(){return po(this)}}),this.parser=t,this.extension=[ih.of(this),gs.languageData.of((s,a,l)=>{let p=Yx(s,a,l),m=p.type.prop(kp);if(!m)return[];let g=s.facet(m),b=p.type.prop(dO);if(b){let S=p.resolve(a-p.from,l);for(let $ of b)if($.test(S,s)){let G=s.facet($.facet);return $.type=="replace"?G:G.concat(g)}}return g})].concat(n)}isActiveAt(e,t,n=-1){return Yx(e,t,n).type.prop(kp)==this.data}findRegions(e){let t=e.facet(ih);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],i=(s,a)=>{if(s.prop(kp)==this.data){n.push({from:a,to:a+s.length});return}let l=s.prop(Gi.mounted);if(l){if(l.tree.prop(kp)==this.data){if(l.overlay)for(let p of l.overlay)n.push({from:p.from+a,to:p.to+a});else n.push({from:a,to:a+s.length});return}else if(l.overlay){let p=n.length;if(i(l.tree,l.overlay[0].from+a),n.length>p)return}}for(let p=0;p<s.children.length;p++){let m=s.children[p];m instanceof io&&i(m,s.positions[p]+a)}};return i(po(e),0),n}get allowsNesting(){return!0}}Cu.setState=Qi.define();function Yx(r,e,t){let n=r.facet(ih),i=po(r).topNode;if(!n||n.allowsNesting)for(let s=i;s;s=s.enter(e,t,Ls.ExcludeBuffers))s.type.isTop&&(i=s);return i}class Wh extends Cu{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=C2(e.languageData);return new Wh(t,e.parser.configure({props:[kp.add(n=>n.isTop?t:void 0)]}),e.name)}configure(e,t){return new Wh(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function po(r){let e=r.field(Cu.state,!1);return e?e.tree:io.empty}class P_{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let Of=null;class tg{constructor(e,t,n=[],i,s,a,l,p){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=s,this.viewport=a,this.skipped=l,this.scheduleOn=p,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new tg(e,t,[],io.empty,0,n,[],null)}startParse(){return this.parser.startParse(new P_(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=io.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(ec.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(ec.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Of;Of=this;try{return e()}finally{Of=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Gx(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:s,viewport:a,skipped:l}=this;if(this.takeTree(),!e.empty){let p=[];if(e.iterChangedRanges((m,g,b,S)=>p.push({fromA:m,toA:g,fromB:b,toB:S})),n=ec.applyChanges(n,p),i=io.empty,s=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){l=[];for(let m of this.skipped){let g=e.mapPos(m.from,1),b=e.mapPos(m.to,-1);g<b&&l.push({from:g,to:b})}}}return new tg(this.parser,t,n,i,s,a,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:i,to:s}=this.skipped[n];i<e.to&&s>e.from&&(this.fragments=Gx(this.fragments,i,s),this.skipped.splice(n--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends x2{createParse(t,n,i){let s=i[0].from,a=i[i.length-1].to;return{parsedPos:s,advance(){let p=Of;if(p){for(let m of i)p.tempSkipped.push(m);e&&(p.scheduleOn=p.scheduleOn?Promise.all([p.scheduleOn,e]):e)}return this.parsedPos=a,new io(ga.none,[],[],a-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Of}}function Gx(r,e,t){return ec.applyChanges(r,[{fromA:e,toA:t,fromB:e,toB:t}])}class Gp{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new Gp(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=tg.create(e.facet(ih).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new Gp(n)}}Cu.state=Po.define({create:Gp.init,update(r,e){for(let t of e.effects)if(t.is(Cu.setState))return t.value;return e.startState.facet(ih)!=e.state.facet(ih)?Gp.init(e.state):r.apply(e)}});let S2=r=>{let e=setTimeout(()=>r(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(S2=r=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(r,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const j0=typeof navigator<"u"&&(!((Q0=navigator.scheduling)===null||Q0===void 0)&&Q0.isInputPending)?()=>navigator.scheduling.isInputPending():null,k_=bo.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Cu.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Cu.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=S2(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:i}}=this.view,s=n.field(Cu.state);if(s.tree==s.context.tree&&s.context.isDone(i+1e5))return;let a=Date.now()+Math.min(this.chunkBudget,100,e&&!j0?Math.max(25,e.timeRemaining()-5):1e9),l=s.context.treeLen<i&&n.doc.length>i+1e3,p=s.context.work(()=>j0&&j0()||Date.now()>a,i+(l?0:1e5));this.chunkBudget-=Date.now()-t,(p||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:Cu.setState.of(new Gp(s.context))})),this.chunkBudget>0&&!(p&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>wu(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),ih=qn.define({combine(r){return r.length?r[0]:null},enables:r=>[Cu.state,k_,Qn.contentAttributes.compute([r],e=>{let t=e.facet(r);return t&&t.name?{"data-language":t.name}:{}})]});class mO{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const F_=qn.define(),qg=qn.define({combine:r=>{if(!r.length)return" ";let e=r[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(r[0]));return e}});function rg(r){let e=r.facet(qg);return e.charCodeAt(0)==9?r.tabSize*e.length:e.length}function ud(r,e){let t="",n=r.tabSize,i=r.facet(qg)[0];if(i==" "){for(;e>=n;)t+=" ",e-=n;i=" "}for(let s=0;s<e;s++)t+=i;return t}function gO(r,e){r instanceof gs&&(r=new zg(r));for(let n of r.state.facet(F_)){let i=n(r,e);if(i!==void 0)return i}let t=po(r.state);return t?__(r,t,e):null}class zg{constructor(e,t={}){this.state=e,this.options=t,this.unit=rg(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:s}=this.options;return i!=null&&i>=n.from&&i<=n.to?s&&i==e?{text:"",from:e}:(t<0?i<e:i<=e)?{text:n.text.slice(i-n.from),from:i}:{text:n.text.slice(0,i-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:i}=this.lineAt(e,t);return n.slice(e-i,Math.min(n.length,e+100-i))}column(e,t=1){let{text:n,from:i}=this.lineAt(e,t),s=this.countColumn(n,e-i),a=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return a>-1&&(s+=a-this.countColumn(n,n.search(/\S|$/))),s}countColumn(e,t=e.length){return xd(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),s=this.options.overrideIndentation;if(s){let a=s(i);if(a>-1)return a}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Ad=new Gi;function __(r,e,t){return E2(e.resolveInner(t).enterUnfinishedNodesBefore(t),t,r)}function $_(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function B_(r){let e=r.type.prop(Ad);if(e)return e;let t=r.firstChild,n;if(t&&(n=t.type.prop(Gi.closedBy))){let i=r.lastChild,s=i&&n.indexOf(i.name)>-1;return a=>w2(a,!0,1,void 0,s&&!$_(a)?i.from:void 0)}return r.parent==null?N_:null}function E2(r,e,t){for(;r;r=r.parent){let n=B_(r);if(n)return n(yO.create(t,e,r))}return null}function N_(){return 0}class yO extends zg{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}static create(e,t,n){return new yO(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(I_(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){let e=this.node.parent;return e?E2(e,this.pos,this.base):0}}function I_(r,e){for(let t=e;t;t=t.parent)if(r==t)return!0;return!1}function M_(r){let e=r.node,t=e.childAfter(e.from),n=e.lastChild;if(!t)return null;let i=r.options.simulateBreak,s=r.state.doc.lineAt(t.from),a=i==null||i<=s.from?s.to:Math.min(s.to,i);for(let l=t.to;;){let p=e.childAfter(l);if(!p||p==n)return null;if(!p.type.isSkipped)return p.from<a?t:null;l=p.to}}function R_({closing:r,align:e=!0,units:t=1}){return n=>w2(n,e,t,r)}function w2(r,e,t,n,i){let s=r.textAfter,a=s.match(/^\s*/)[0].length,l=n&&s.slice(a,a+n.length)==n||i==r.pos+a,p=e?M_(r):null;return p?l?r.column(p.from):r.column(p.to):r.baseIndent+(l?0:r.unit*t)}const Q_=r=>r.baseIndent;function Pm({except:r,units:e=1}={}){return t=>{let n=r&&r.test(t.textAfter);return t.baseIndent+(n?0:e*t.unit)}}const j_=200;function L_(){return gs.transactionFilter.of(r=>{if(!r.docChanged||!r.isUserEvent("input.type")&&!r.isUserEvent("input.complete"))return r;let e=r.startState.languageDataAt("indentOnInput",r.startState.selection.main.head);if(!e.length)return r;let t=r.newDoc,{head:n}=r.newSelection.main,i=t.lineAt(n);if(n>i.from+j_)return r;let s=t.sliceString(i.from,n);if(!e.some(m=>m.test(s)))return r;let{state:a}=r,l=-1,p=[];for(let{head:m}of a.selection.ranges){let g=a.doc.lineAt(m);if(g.from==l)continue;l=g.from;let b=gO(a,g.from);if(b==null)continue;let S=/^\s*/.exec(g.text)[0],$=ud(a,b);S!=$&&p.push({from:g.from,to:g.from+S.length,insert:$})}return p.length?[r,{changes:p,sequential:!0}]:r})}const X_=qn.define(),Td=new Gi;function A2(r){let e=r.firstChild,t=r.lastChild;return e&&e.to<t.from?{from:e.to,to:t.type.isError?r.to:t.from}:null}function V_(r,e,t){let n=po(r);if(n.length<t)return null;let i=n.resolveInner(t,1),s=null;for(let a=i;a;a=a.parent){if(a.to<=t||a.from>t)continue;if(s&&a.from<e)break;let l=a.type.prop(Td);if(l&&(a.to<n.length-50||n.length==r.doc.length||!U_(a))){let p=l(a,r);p&&p.from<=t&&p.from>=e&&p.to>t&&(s=p)}}return s}function U_(r){let e=r.lastChild;return e&&e.to==r.to&&e.type.isError}function ng(r,e,t){for(let n of r.facet(X_)){let i=n(r,e,t);if(i)return i}return V_(r,e,t)}function T2(r,e){let t=e.mapPos(r.from,1),n=e.mapPos(r.to,-1);return t>=n?void 0:{from:t,to:n}}const Wg=Qi.define({map:T2}),Pd=Qi.define({map:T2});function P2(r){let e=[];for(let{head:t}of r.state.selection.ranges)e.some(n=>n.from<=t&&n.to>=t)||e.push(r.lineBlockAt(t));return e}const Zh=Po.define({create(){return _i.none},update(r,e){r=r.map(e.changes);for(let t of e.effects)t.is(Wg)&&!q_(r,t.value.from,t.value.to)?r=r.update({add:[Hx.range(t.value.from,t.value.to)]}):t.is(Pd)&&(r=r.update({filter:(n,i)=>t.value.from!=n||t.value.to!=i,filterFrom:t.value.from,filterTo:t.value.to}));if(e.selection){let t=!1,{head:n}=e.selection.main;r.between(n,n,(i,s)=>{i<n&&s>n&&(t=!0)}),t&&(r=r.update({filterFrom:n,filterTo:n,filter:(i,s)=>s<=n||i>=n}))}return r},provide:r=>Qn.decorations.from(r),toJSON(r,e){let t=[];return r.between(0,e.doc.length,(n,i)=>{t.push(n,i)}),t},fromJSON(r){if(!Array.isArray(r)||r.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<r.length;){let n=r[t++],i=r[t++];if(typeof n!="number"||typeof i!="number")throw new RangeError("Invalid JSON for fold state");e.push(Hx.range(n,i))}return _i.set(e,!0)}});function ig(r,e,t){var n;let i=null;return(n=r.field(Zh,!1))===null||n===void 0||n.between(e,t,(s,a)=>{(!i||i.from>s)&&(i={from:s,to:a})}),i}function q_(r,e,t){let n=!1;return r.between(e,e,(i,s)=>{i==e&&s==t&&(n=!0)}),n}function k2(r,e){return r.field(Zh,!1)?e:e.concat(Qi.appendConfig.of($2()))}const z_=r=>{for(let e of P2(r)){let t=ng(r.state,e.from,e.to);if(t)return r.dispatch({effects:k2(r.state,[Wg.of(t),F2(r,t)])}),!0}return!1},W_=r=>{if(!r.state.field(Zh,!1))return!1;let e=[];for(let t of P2(r)){let n=ig(r.state,t.from,t.to);n&&e.push(Pd.of(n),F2(r,n,!1))}return e.length&&r.dispatch({effects:e}),e.length>0};function F2(r,e,t=!0){let n=r.state.doc.lineAt(e.from).number,i=r.state.doc.lineAt(e.to).number;return Qn.announce.of(`${r.state.phrase(t?"Folded lines":"Unfolded lines")} ${n} ${r.state.phrase("to")} ${i}.`)}const Z_=r=>{let{state:e}=r,t=[];for(let n=0;n<e.doc.length;){let i=r.lineBlockAt(n),s=ng(e,i.from,i.to);s&&t.push(Wg.of(s)),n=(s?r.lineBlockAt(s.to):i).to+1}return t.length&&r.dispatch({effects:k2(r.state,t)}),!!t.length},Y_=r=>{let e=r.state.field(Zh,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,r.state.doc.length,(n,i)=>{t.push(Pd.of({from:n,to:i}))}),r.dispatch({effects:t}),!0},G_=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:z_},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:W_},{key:"Ctrl-Alt-[",run:Z_},{key:"Ctrl-Alt-]",run:Y_}],H_={placeholderDOM:null,placeholderText:"…"},_2=qn.define({combine(r){return Sl(r,H_)}});function $2(r){let e=[Zh,e$];return r&&e.push(_2.of(r)),e}const Hx=_i.replace({widget:new class extends oh{toDOM(r){let{state:e}=r,t=e.facet(_2),n=s=>{let a=r.lineBlockAt(r.posAtDOM(s.target)),l=ig(r.state,a.from,a.to);l&&r.dispatch({effects:Pd.of(l)}),s.preventDefault()};if(t.placeholderDOM)return t.placeholderDOM(r,n);let i=document.createElement("span");return i.textContent=t.placeholderText,i.setAttribute("aria-label",e.phrase("folded code")),i.title=e.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=n,i}}}),J_={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class L0 extends sc{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function K_(r={}){let e=Object.assign(Object.assign({},J_),r),t=new L0(e,!0),n=new L0(e,!1),i=bo.fromClass(class{constructor(a){this.from=a.viewport.from,this.markers=this.buildMarkers(a)}update(a){(a.docChanged||a.viewportChanged||a.startState.facet(ih)!=a.state.facet(ih)||a.startState.field(Zh,!1)!=a.state.field(Zh,!1)||po(a.startState)!=po(a.state)||e.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let l=new Kc;for(let p of a.viewportLineBlocks){let m=ig(a.state,p.from,p.to)?n:ng(a.state,p.from,p.to)?t:null;m&&l.add(p.from,p.from,m)}return l.finish()}}),{domEventHandlers:s}=e;return[i,E3({class:"cm-foldGutter",markers(a){var l;return((l=a.plugin(i))===null||l===void 0?void 0:l.markers)||Ss.empty},initialSpacer(){return new L0(e,!1)},domEventHandlers:Object.assign(Object.assign({},s),{click:(a,l,p)=>{if(s.click&&s.click(a,l,p))return!0;let m=ig(a.state,l.from,l.to);if(m)return a.dispatch({effects:Pd.of(m)}),!0;let g=ng(a.state,l.from,l.to);return g?(a.dispatch({effects:Wg.of(g)}),!0):!1}})}),$2()]}const e$=Qn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class kd{constructor(e,t){this.specs=e;let n;function i(l){let p=eh.newName();return(n||(n=Object.create(null)))["."+p]=l,p}const s=typeof t.all=="string"?t.all:t.all?i(t.all):void 0,a=t.scope;this.scope=a instanceof Cu?l=>l.prop(kp)==a.data:a?l=>l==a:void 0,this.style=v2(e.map(l=>({tag:l.tag,class:l.class||i(Object.assign({},l,{tag:null}))})),{all:s}).style,this.module=n?new eh(n):null,this.themeType=t.themeType}static define(e,t){return new kd(e,t||{})}}const iD=qn.define(),B2=qn.define({combine(r){return r.length?[r[0]]:null}});function X0(r){let e=r.facet(iD);return e.length?e:r.facet(B2)}function N2(r,e){let t=[r$],n;return r instanceof kd&&(r.module&&t.push(Qn.styleModule.of(r.module)),n=r.themeType),e!=null&&e.fallback?t.push(B2.of(r)):n?t.push(iD.computeN([Qn.darkTheme],i=>i.facet(Qn.darkTheme)==(n=="dark")?[r]:[])):t.push(iD.of(r)),t}class t${constructor(e){this.markCache=Object.create(null),this.tree=po(e.state),this.decorations=this.buildDeco(e,X0(e.state))}update(e){let t=po(e.state),n=X0(e.state),i=n!=X0(e.startState);t.length<e.view.viewport.to&&!i&&t.type==this.tree.type?this.decorations=this.decorations.map(e.changes):(t!=this.tree||e.viewportChanged||i)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n))}buildDeco(e,t){if(!t||!this.tree.length)return _i.none;let n=new Kc;for(let{from:i,to:s}of e.visibleRanges)w_(this.tree,t,(a,l,p)=>{n.add(a,l,this.markCache[p]||(this.markCache[p]=_i.mark({class:p})))},i,s);return n.finish()}}const r$=Jh.high(bo.fromClass(t$,{decorations:r=>r.decorations})),n$=kd.define([{tag:He.meta,color:"#404740"},{tag:He.link,textDecoration:"underline"},{tag:He.heading,textDecoration:"underline",fontWeight:"bold"},{tag:He.emphasis,fontStyle:"italic"},{tag:He.strong,fontWeight:"bold"},{tag:He.strikethrough,textDecoration:"line-through"},{tag:He.keyword,color:"#708"},{tag:[He.atom,He.bool,He.url,He.contentSeparator,He.labelName],color:"#219"},{tag:[He.literal,He.inserted],color:"#164"},{tag:[He.string,He.deleted],color:"#a11"},{tag:[He.regexp,He.escape,He.special(He.string)],color:"#e40"},{tag:He.definition(He.variableName),color:"#00f"},{tag:He.local(He.variableName),color:"#30a"},{tag:[He.typeName,He.namespace],color:"#085"},{tag:He.className,color:"#167"},{tag:[He.special(He.variableName),He.macroName],color:"#256"},{tag:He.definition(He.propertyName),color:"#00c"},{tag:He.comment,color:"#940"},{tag:He.invalid,color:"#f00"}]),i$=Qn.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),I2=1e4,M2="()[]{}",R2=qn.define({combine(r){return Sl(r,{afterCursor:!0,brackets:M2,maxScanDistance:I2,renderMatch:a$})}}),s$=_i.mark({class:"cm-matchingBracket"}),o$=_i.mark({class:"cm-nonmatchingBracket"});function a$(r){let e=[],t=r.matched?s$:o$;return e.push(t.range(r.start.from,r.start.to)),r.end&&e.push(t.range(r.end.from,r.end.to)),e}const u$=Po.define({create(){return _i.none},update(r,e){if(!e.docChanged&&!e.selection)return r;let t=[],n=e.state.facet(R2);for(let i of e.state.selection.ranges){if(!i.empty)continue;let s=pl(e.state,i.head,-1,n)||i.head>0&&pl(e.state,i.head-1,1,n)||n.afterCursor&&(pl(e.state,i.head,1,n)||i.head<e.state.doc.length&&pl(e.state,i.head+1,-1,n));s&&(t=t.concat(n.renderMatch(s,e.state)))}return _i.set(t,!0)},provide:r=>Qn.decorations.from(r)}),l$=[u$,i$];function c$(r={}){return[R2.of(r),l$]}const DO=new Gi;function sD(r,e,t){let n=r.prop(e<0?Gi.openedBy:Gi.closedBy);if(n)return n;if(r.name.length==1){let i=t.indexOf(r.name);if(i>-1&&i%2==(e<0?1:0))return[t[i+e]]}return null}function oD(r){let e=r.type.prop(DO);return e?e(r.node):r}function pl(r,e,t,n={}){let i=n.maxScanDistance||I2,s=n.brackets||M2,a=po(r),l=a.resolveInner(e,t);for(let p=l;p;p=p.parent){let m=sD(p.type,t,s);if(m&&p.from<p.to){let g=oD(p);if(g&&(t>0?e>=g.from&&e<g.to:e>g.from&&e<=g.to))return h$(r,e,t,p,g,m,s)}}return p$(r,e,t,a,l.type,i,s)}function h$(r,e,t,n,i,s,a){let l=n.parent,p={from:i.from,to:i.to},m=0,g=l==null?void 0:l.cursor();if(g&&(t<0?g.childBefore(n.from):g.childAfter(n.to)))do if(t<0?g.to<=n.from:g.from>=n.to){if(m==0&&s.indexOf(g.type.name)>-1&&g.from<g.to){let b=oD(g);return{start:p,end:b?{from:b.from,to:b.to}:void 0,matched:!0}}else if(sD(g.type,t,a))m++;else if(sD(g.type,-t,a)){if(m==0){let b=oD(g);return{start:p,end:b&&b.from<b.to?{from:b.from,to:b.to}:void 0,matched:!1}}m--}}while(t<0?g.prevSibling():g.nextSibling());return{start:p,matched:!1}}function p$(r,e,t,n,i,s,a){let l=t<0?r.sliceDoc(e-1,e):r.sliceDoc(e,e+1),p=a.indexOf(l);if(p<0||p%2==0!=t>0)return null;let m={from:t<0?e-1:e,to:t>0?e+1:e},g=r.doc.iterRange(e,t>0?r.doc.length:0),b=0;for(let S=0;!g.next().done&&S<=s;){let $=g.value;t<0&&(S+=$.length);let G=e+S*t;for(let be=t>0?0:$.length-1,ke=t>0?$.length:-1;be!=ke;be+=t){let me=a.indexOf($[be]);if(!(me<0||n.resolveInner(G+be,1).type!=i))if(me%2==0==t>0)b++;else{if(b==1)return{start:m,end:{from:G+be,to:G+be+1},matched:me>>1==p>>1};b--}}t>0&&(S+=$.length)}return g.done?{start:m,matched:!1}:null}const f$=Object.create(null),Jx=[ga.none],Kx=[],d$=Object.create(null);for(let[r,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])d$[r]=m$(f$,e);function V0(r,e){Kx.indexOf(r)>-1||(Kx.push(r),console.warn(e))}function m$(r,e){let t=null;for(let s of e.split(".")){let a=r[s]||He[s];a?typeof a=="function"?t?t=a(t):V0(s,`Modifier ${s} used at start of tag`):t?V0(s,`Tag ${s} used as modifier`):t=a:V0(s,`Unknown highlighting tag ${s}`)}if(!t)return 0;let n=e.replace(/ /g,"_"),i=ga.define({id:Jx.length,name:n,props:[wd({[n]:t})]});return Jx.push(i),i.id}const g$=r=>{let{state:e}=r,t=e.doc.lineAt(e.selection.main.from),n=xO(r.state,t.from);return n.line?y$(r):n.block?O$(r):!1};function OO(r,e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=r(e,t);return i?(n(t.update(i)),!0):!1}}const y$=OO(v$,0),D$=OO(Q2,0),O$=OO((r,e)=>Q2(r,e,b$(e)),0);function xO(r,e){let t=r.languageDataAt("commentTokens",e);return t.length?t[0]:{}}const xf=50;function x$(r,{open:e,close:t},n,i){let s=r.sliceDoc(n-xf,n),a=r.sliceDoc(i,i+xf),l=/\s*$/.exec(s)[0].length,p=/^\s*/.exec(a)[0].length,m=s.length-l;if(s.slice(m-e.length,m)==e&&a.slice(p,p+t.length)==t)return{open:{pos:n-l,margin:l&&1},close:{pos:i+p,margin:p&&1}};let g,b;i-n<=2*xf?g=b=r.sliceDoc(n,i):(g=r.sliceDoc(n,n+xf),b=r.sliceDoc(i-xf,i));let S=/^\s*/.exec(g)[0].length,$=/\s*$/.exec(b)[0].length,G=b.length-$-t.length;return g.slice(S,S+e.length)==e&&b.slice(G,G+t.length)==t?{open:{pos:n+S+e.length,margin:/\s/.test(g.charAt(S+e.length))?1:0},close:{pos:i-$-t.length,margin:/\s/.test(b.charAt(G-1))?1:0}}:null}function b$(r){let e=[];for(let t of r.selection.ranges){let n=r.doc.lineAt(t.from),i=t.to<=n.to?n:r.doc.lineAt(t.to),s=e.length-1;s>=0&&e[s].to>n.from?e[s].to=i.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:i.to})}return e}function Q2(r,e,t=e.selection.ranges){let n=t.map(s=>xO(e,s.from).block);if(!n.every(s=>s))return null;let i=t.map((s,a)=>x$(e,n[a],s.from,s.to));if(r!=2&&!i.every(s=>s))return{changes:e.changes(t.map((s,a)=>i[a]?[]:[{from:s.from,insert:n[a].open+" "},{from:s.to,insert:" "+n[a].close}]))};if(r!=1&&i.some(s=>s)){let s=[];for(let a=0,l;a<i.length;a++)if(l=i[a]){let p=n[a],{open:m,close:g}=l;s.push({from:m.pos-p.open.length,to:m.pos+m.margin},{from:g.pos-g.margin,to:g.pos+p.close.length})}return{changes:s}}return null}function v$(r,e,t=e.selection.ranges){let n=[],i=-1;for(let{from:s,to:a}of t){let l=n.length,p=1e9,m=xO(e,s).line;if(m){for(let g=s;g<=a;){let b=e.doc.lineAt(g);if(b.from>i&&(s==a||a>b.from)){i=b.from;let S=/^\s*/.exec(b.text)[0].length,$=S==b.length,G=b.text.slice(S,S+m.length)==m?S:-1;S<b.text.length&&S<p&&(p=S),n.push({line:b,comment:G,token:m,indent:S,empty:$,single:!1})}g=b.to+1}if(p<1e9)for(let g=l;g<n.length;g++)n[g].indent<n[g].line.text.length&&(n[g].indent=p);n.length==l+1&&(n[l].single=!0)}}if(r!=2&&n.some(s=>s.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:l,token:p,indent:m,empty:g,single:b}of n)(b||!g)&&s.push({from:l.from+m,insert:p+" "});let a=e.changes(s);return{changes:a,selection:e.selection.map(a,1)}}else if(r!=1&&n.some(s=>s.comment>=0)){let s=[];for(let{line:a,comment:l,token:p}of n)if(l>=0){let m=a.from+l,g=m+p.length;a.text[g-a.from]==" "&&g++,s.push({from:m,to:g})}return{changes:s}}return null}const aD=uc.define(),C$=uc.define(),S$=qn.define(),j2=qn.define({combine(r){return Sl(r,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,i)=>e(n,i)||t(n,i)})}});function E$(r){let e=0;return r.iterChangedRanges((t,n)=>e=n),e}const L2=Po.define({create(){return fl.empty},update(r,e){let t=e.state.facet(j2),n=e.annotation(aD);if(n){let p=e.docChanged?Pr.single(E$(e.changes)):void 0,m=Pa.fromTransaction(e,p),g=n.side,b=g==0?r.undone:r.done;return m?b=sg(b,b.length,t.minDepth,m):b=U2(b,e.startState.selection),new fl(g==0?n.rest:b,g==0?b:n.rest)}let i=e.annotation(C$);if((i=="full"||i=="before")&&(r=r.isolate()),e.annotation(To.addToHistory)===!1)return e.changes.empty?r:r.addMapping(e.changes.desc);let s=Pa.fromTransaction(e),a=e.annotation(To.time),l=e.annotation(To.userEvent);return s?r=r.addChanges(s,a,l,t,e):e.selection&&(r=r.addSelection(e.startState.selection,a,l,t.newGroupDelay)),(i=="full"||i=="after")&&(r=r.isolate()),r},toJSON(r){return{done:r.done.map(e=>e.toJSON()),undone:r.undone.map(e=>e.toJSON())}},fromJSON(r){return new fl(r.done.map(Pa.fromJSON),r.undone.map(Pa.fromJSON))}});function w$(r={}){return[L2,j2.of(r),Qn.domEventHandlers({beforeinput(e,t){let n=e.inputType=="historyUndo"?X2:e.inputType=="historyRedo"?uD:null;return n?(e.preventDefault(),n(t)):!1}})]}function Zg(r,e){return function({state:t,dispatch:n}){if(!e&&t.readOnly)return!1;let i=t.field(L2,!1);if(!i)return!1;let s=i.pop(r,t,e);return s?(n(s),!0):!1}}const X2=Zg(0,!1),uD=Zg(1,!1),A$=Zg(0,!0),T$=Zg(1,!0);class Pa{constructor(e,t,n,i,s){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=i,this.selectionsAfter=s}setSelAfter(e){return new Pa(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new Pa(e.changes&&Ao.fromJSON(e.changes),[],e.mapped&&yl.fromJSON(e.mapped),e.startSelection&&Pr.fromJSON(e.startSelection),e.selectionsAfter.map(Pr.fromJSON))}static fromTransaction(e,t){let n=Ka;for(let i of e.startState.facet(S$)){let s=i(e);s.length&&(n=n.concat(s))}return!n.length&&e.changes.empty?null:new Pa(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,Ka)}static selection(e){return new Pa(void 0,Ka,void 0,void 0,e)}}function sg(r,e,t,n){let i=e+1>t+20?e-t-1:0,s=r.slice(i,e);return s.push(n),s}function P$(r,e){let t=[],n=!1;return r.iterChangedRanges((i,s)=>t.push(i,s)),e.iterChangedRanges((i,s,a,l)=>{for(let p=0;p<t.length;){let m=t[p++],g=t[p++];l>=m&&a<=g&&(n=!0)}}),n}function k$(r,e){return r.ranges.length==e.ranges.length&&r.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length===0}function V2(r,e){return r.length?e.length?r.concat(e):r:e}const Ka=[],F$=200;function U2(r,e){if(r.length){let t=r[r.length-1],n=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-F$));return n.length&&n[n.length-1].eq(e)?r:(n.push(e),sg(r,r.length-1,1e9,t.setSelAfter(n)))}else return[Pa.selection([e])]}function _$(r){let e=r[r.length-1],t=r.slice();return t[r.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function U0(r,e){if(!r.length)return r;let t=r.length,n=Ka;for(;t;){let i=$$(r[t-1],e,n);if(i.changes&&!i.changes.empty||i.effects.length){let s=r.slice(0,t);return s[t-1]=i,s}else e=i.mapped,t--,n=i.selectionsAfter}return n.length?[Pa.selection(n)]:Ka}function $$(r,e,t){let n=V2(r.selectionsAfter.length?r.selectionsAfter.map(l=>l.map(e)):Ka,t);if(!r.changes)return Pa.selection(n);let i=r.changes.map(e),s=e.mapDesc(r.changes,!0),a=r.mapped?r.mapped.composeDesc(s):s;return new Pa(i,Qi.mapEffects(r.effects,e),a,r.startSelection.map(s),n)}const B$=/^(input\.type|delete)($|\.)/;class fl{constructor(e,t,n=0,i=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new fl(this.done,this.undone):this}addChanges(e,t,n,i,s){let a=this.done,l=a[a.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!n||B$.test(n))&&(!l.selectionsAfter.length&&t-this.prevTime<i.newGroupDelay&&i.joinToEvent(s,P$(l.changes,e.changes))||n=="input.type.compose")?a=sg(a,a.length-1,i.minDepth,new Pa(e.changes.compose(l.changes),V2(e.effects,l.effects),l.mapped,l.startSelection,Ka)):a=sg(a,a.length,i.minDepth,e),new fl(a,Ka,t,n)}addSelection(e,t,n,i){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:Ka;return s.length>0&&t-this.prevTime<i&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&k$(s[s.length-1],e)?this:new fl(U2(this.done,e),this.undone,t,n)}addMapping(e){return new fl(U0(this.done,e),U0(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let i=e==0?this.done:this.undone;if(i.length==0)return null;let s=i[i.length-1];if(n&&s.selectionsAfter.length)return t.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:aD.of({side:e,rest:_$(i)}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let a=i.length==1?Ka:i.slice(0,i.length-1);return s.mapped&&(a=U0(a,s.mapped)),t.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:aD.of({side:e,rest:a}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}fl.empty=new fl(Ka,Ka);const N$=[{key:"Mod-z",run:X2,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:uD,preventDefault:!0},{linux:"Ctrl-Shift-z",run:uD,preventDefault:!0},{key:"Mod-u",run:A$,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:T$,preventDefault:!0}];function sf(r,e){return Pr.create(r.ranges.map(e),r.mainIndex)}function El(r,e){return r.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function ku({state:r,dispatch:e},t){let n=sf(r.selection,t);return n.eq(r.selection)?!1:(e(El(r,n)),!0)}function Yg(r,e){return Pr.cursor(e?r.to:r.from)}function q2(r,e){return ku(r,t=>t.empty?r.moveByChar(t,e):Yg(t,e))}function la(r){return r.textDirectionAt(r.state.selection.main.head)==no.LTR}const z2=r=>q2(r,!la(r)),W2=r=>q2(r,la(r));function Z2(r,e){return ku(r,t=>t.empty?r.moveByGroup(t,e):Yg(t,e))}const I$=r=>Z2(r,!la(r)),M$=r=>Z2(r,la(r));function R$(r,e,t){if(e.type.prop(t))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(r.sliceDoc(e.from,e.to)))||e.firstChild}function Gg(r,e,t){let n=po(r).resolveInner(e.head),i=t?Gi.closedBy:Gi.openedBy;for(let p=e.head;;){let m=t?n.childAfter(p):n.childBefore(p);if(!m)break;R$(r,m,i)?n=m:p=t?m.to:m.from}let s=n.type.prop(i),a,l;return s&&(a=t?pl(r,n.from,1):pl(r,n.to,-1))&&a.matched?l=t?a.end.to:a.end.from:l=t?n.to:n.from,Pr.cursor(l,t?-1:1)}const Q$=r=>ku(r,e=>Gg(r.state,e,!la(r))),j$=r=>ku(r,e=>Gg(r.state,e,la(r)));function Y2(r,e){return ku(r,t=>{if(!t.empty)return Yg(t,e);let n=r.moveVertically(t,e);return n.head!=t.head?n:r.moveToLineBoundary(t,e)})}const G2=r=>Y2(r,!1),H2=r=>Y2(r,!0);function J2(r){let e=r.scrollDOM.clientHeight<r.scrollDOM.scrollHeight-2,t=0,n=0,i;if(e){for(let s of r.state.facet(Qn.scrollMargins)){let a=s(r);a!=null&&a.top&&(t=Math.max(a==null?void 0:a.top,t)),a!=null&&a.bottom&&(n=Math.max(a==null?void 0:a.bottom,n))}i=r.scrollDOM.clientHeight-t-n}else i=(r.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:n,selfScroll:e,height:Math.max(r.defaultLineHeight,i-5)}}function K2(r,e){let t=J2(r),{state:n}=r,i=sf(n.selection,a=>a.empty?r.moveVertically(a,e,t.height):Yg(a,e));if(i.eq(n.selection))return!1;let s;if(t.selfScroll){let a=r.coordsAtPos(n.selection.main.head),l=r.scrollDOM.getBoundingClientRect(),p=l.top+t.marginTop,m=l.bottom-t.marginBottom;a&&a.top>p&&a.bottom<m&&(s=Qn.scrollIntoView(i.main.head,{y:"start",yMargin:a.top-p}))}return r.dispatch(El(n,i),{effects:s}),!0}const eb=r=>K2(r,!1),lD=r=>K2(r,!0);function ah(r,e,t){let n=r.lineBlockAt(e.head),i=r.moveToLineBoundary(e,t);if(i.head==e.head&&i.head!=(t?n.to:n.from)&&(i=r.moveToLineBoundary(e,t,!1)),!t&&i.head==n.from&&n.length){let s=/^\s*/.exec(r.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;s&&e.head!=n.from+s&&(i=Pr.cursor(n.from+s))}return i}const L$=r=>ku(r,e=>ah(r,e,!0)),X$=r=>ku(r,e=>ah(r,e,!1)),V$=r=>ku(r,e=>ah(r,e,!la(r))),U$=r=>ku(r,e=>ah(r,e,la(r))),q$=r=>ku(r,e=>Pr.cursor(r.lineBlockAt(e.head).from,1)),z$=r=>ku(r,e=>Pr.cursor(r.lineBlockAt(e.head).to,-1));function W$(r,e,t){let n=!1,i=sf(r.selection,s=>{let a=pl(r,s.head,-1)||pl(r,s.head,1)||s.head>0&&pl(r,s.head-1,1)||s.head<r.doc.length&&pl(r,s.head+1,-1);if(!a||!a.end)return s;n=!0;let l=a.start.from==s.head?a.end.to:a.end.from;return t?Pr.range(s.anchor,l):Pr.cursor(l)});return n?(e(El(r,i)),!0):!1}const Z$=({state:r,dispatch:e})=>W$(r,e,!1);function nu(r,e){let t=sf(r.state.selection,n=>{let i=e(n);return Pr.range(n.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return t.eq(r.state.selection)?!1:(r.dispatch(El(r.state,t)),!0)}function eE(r,e){return nu(r,t=>r.moveByChar(t,e))}const tE=r=>eE(r,!la(r)),rE=r=>eE(r,la(r));function nE(r,e){return nu(r,t=>r.moveByGroup(t,e))}const Y$=r=>nE(r,!la(r)),G$=r=>nE(r,la(r)),H$=r=>nu(r,e=>Gg(r.state,e,!la(r))),J$=r=>nu(r,e=>Gg(r.state,e,la(r)));function iE(r,e){return nu(r,t=>r.moveVertically(t,e))}const sE=r=>iE(r,!1),oE=r=>iE(r,!0);function aE(r,e){return nu(r,t=>r.moveVertically(t,e,J2(r).height))}const tb=r=>aE(r,!1),rb=r=>aE(r,!0),K$=r=>nu(r,e=>ah(r,e,!0)),eB=r=>nu(r,e=>ah(r,e,!1)),tB=r=>nu(r,e=>ah(r,e,!la(r))),rB=r=>nu(r,e=>ah(r,e,la(r))),nB=r=>nu(r,e=>Pr.cursor(r.lineBlockAt(e.head).from)),iB=r=>nu(r,e=>Pr.cursor(r.lineBlockAt(e.head).to)),nb=({state:r,dispatch:e})=>(e(El(r,{anchor:0})),!0),ib=({state:r,dispatch:e})=>(e(El(r,{anchor:r.doc.length})),!0),sb=({state:r,dispatch:e})=>(e(El(r,{anchor:r.selection.main.anchor,head:0})),!0),ob=({state:r,dispatch:e})=>(e(El(r,{anchor:r.selection.main.anchor,head:r.doc.length})),!0),sB=({state:r,dispatch:e})=>(e(r.update({selection:{anchor:0,head:r.doc.length},userEvent:"select"})),!0),oB=({state:r,dispatch:e})=>{let t=Jg(r).map(({from:n,to:i})=>Pr.range(n,Math.min(i+1,r.doc.length)));return e(r.update({selection:Pr.create(t),userEvent:"select"})),!0},aB=({state:r,dispatch:e})=>{let t=sf(r.selection,n=>{var i;let s=po(r).resolveInner(n.head,1);for(;!(s.from<n.from&&s.to>=n.to||s.to>n.to&&s.from<=n.from||!(!((i=s.parent)===null||i===void 0)&&i.parent));)s=s.parent;return Pr.range(s.to,s.from)});return e(El(r,t)),!0},uB=({state:r,dispatch:e})=>{let t=r.selection,n=null;return t.ranges.length>1?n=Pr.create([t.main]):t.main.empty||(n=Pr.create([Pr.cursor(t.main.head)])),n?(e(El(r,n)),!0):!1};function Hg(r,e){if(r.state.readOnly)return!1;let t="delete.selection",{state:n}=r,i=n.changeByRange(s=>{let{from:a,to:l}=s;if(a==l){let p=e(a);p<a?(t="delete.backward",p=um(r,p,!1)):p>a&&(t="delete.forward",p=um(r,p,!0)),a=Math.min(a,p),l=Math.max(l,p)}else a=um(r,a,!1),l=um(r,l,!0);return a==l?{range:s}:{changes:{from:a,to:l},range:Pr.cursor(a)}});return i.changes.empty?!1:(r.dispatch(n.update(i,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?Qn.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function um(r,e,t){if(r instanceof Qn)for(let n of r.state.facet(Qn.atomicRanges).map(i=>i(r)))n.between(e,e,(i,s)=>{i<e&&s>e&&(e=t?s:i)});return e}const uE=(r,e)=>Hg(r,t=>{let{state:n}=r,i=n.doc.lineAt(t),s,a;if(!e&&t>i.from&&t<i.from+200&&!/[^ \t]/.test(s=i.text.slice(0,t-i.from))){if(s[s.length-1]==" ")return t-1;let l=xd(s,n.tabSize),p=l%rg(n)||rg(n);for(let m=0;m<p&&s[s.length-1-m]==" ";m++)t--;a=t}else a=ua(i.text,t-i.from,e,e)+i.from,a==t&&i.number!=(e?n.doc.lines:1)&&(a+=e?1:-1);return a}),cD=r=>uE(r,!1),lE=r=>uE(r,!0),cE=(r,e)=>Hg(r,t=>{let n=t,{state:i}=r,s=i.doc.lineAt(n),a=i.charCategorizer(n);for(let l=null;;){if(n==(e?s.to:s.from)){n==t&&s.number!=(e?i.doc.lines:1)&&(n+=e?1:-1);break}let p=ua(s.text,n-s.from,e)+s.from,m=s.text.slice(Math.min(n,p)-s.from,Math.max(n,p)-s.from),g=a(m);if(l!=null&&g!=l)break;(m!=" "||n!=t)&&(l=g),n=p}return n}),hE=r=>cE(r,!1),lB=r=>cE(r,!0),pE=r=>Hg(r,e=>{let t=r.lineBlockAt(e).to;return e<t?t:Math.min(r.state.doc.length,e+1)}),cB=r=>Hg(r,e=>{let t=r.lineBlockAt(e).from;return e>t?t:Math.max(0,e-1)}),hB=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:Ds.of(["",""])},range:Pr.cursor(n.from)}));return e(r.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},pB=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(n=>{if(!n.empty||n.from==0||n.from==r.doc.length)return{range:n};let i=n.from,s=r.doc.lineAt(i),a=i==s.from?i-1:ua(s.text,i-s.from,!1)+s.from,l=i==s.to?i+1:ua(s.text,i-s.from,!0)+s.from;return{changes:{from:a,to:l,insert:r.doc.slice(i,l).append(r.doc.slice(a,i))},range:Pr.cursor(l)}});return t.changes.empty?!1:(e(r.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Jg(r){let e=[],t=-1;for(let n of r.selection.ranges){let i=r.doc.lineAt(n.from),s=r.doc.lineAt(n.to);if(!n.empty&&n.to==s.from&&(s=r.doc.lineAt(n.to-1)),t>=i.number){let a=e[e.length-1];a.to=s.to,a.ranges.push(n)}else e.push({from:i.from,to:s.to,ranges:[n]});t=s.number+1}return e}function fE(r,e,t){if(r.readOnly)return!1;let n=[],i=[];for(let s of Jg(r)){if(t?s.to==r.doc.length:s.from==0)continue;let a=r.doc.lineAt(t?s.to+1:s.from-1),l=a.length+1;if(t){n.push({from:s.to,to:a.to},{from:s.from,insert:a.text+r.lineBreak});for(let p of s.ranges)i.push(Pr.range(Math.min(r.doc.length,p.anchor+l),Math.min(r.doc.length,p.head+l)))}else{n.push({from:a.from,to:s.from},{from:s.to,insert:r.lineBreak+a.text});for(let p of s.ranges)i.push(Pr.range(p.anchor-l,p.head-l))}}return n.length?(e(r.update({changes:n,scrollIntoView:!0,selection:Pr.create(i,r.selection.mainIndex),userEvent:"move.line"})),!0):!1}const fB=({state:r,dispatch:e})=>fE(r,e,!1),dB=({state:r,dispatch:e})=>fE(r,e,!0);function dE(r,e,t){if(r.readOnly)return!1;let n=[];for(let i of Jg(r))t?n.push({from:i.from,insert:r.doc.slice(i.from,i.to)+r.lineBreak}):n.push({from:i.to,insert:r.lineBreak+r.doc.slice(i.from,i.to)});return e(r.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const mB=({state:r,dispatch:e})=>dE(r,e,!1),gB=({state:r,dispatch:e})=>dE(r,e,!0),yB=r=>{if(r.state.readOnly)return!1;let{state:e}=r,t=e.changes(Jg(e).map(({from:i,to:s})=>(i>0?i--:s<e.doc.length&&s++,{from:i,to:s}))),n=sf(e.selection,i=>r.moveVertically(i,!0)).map(t);return r.dispatch({changes:t,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0};function DB(r,e){if(/\(\)|\[\]|\{\}/.test(r.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=po(r).resolveInner(e),n=t.childBefore(e),i=t.childAfter(e),s;return n&&i&&n.to<=e&&i.from>=e&&(s=n.type.prop(Gi.closedBy))&&s.indexOf(i.name)>-1&&r.doc.lineAt(n.to).from==r.doc.lineAt(i.from).from?{from:n.to,to:i.from}:null}const OB=mE(!1),xB=mE(!0);function mE(r){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(i=>{let{from:s,to:a}=i,l=e.doc.lineAt(s),p=!r&&s==a&&DB(e,s);r&&(s=a=(a<=l.to?l:e.doc.lineAt(a)).to);let m=new zg(e,{simulateBreak:s,simulateDoubleBreak:!!p}),g=gO(m,s);for(g==null&&(g=/^\s*/.exec(e.doc.lineAt(s).text)[0].length);a<l.to&&/\s/.test(l.text[a-l.from]);)a++;p?{from:s,to:a}=p:s>l.from&&s<l.from+100&&!/\S/.test(l.text.slice(0,s))&&(s=l.from);let b=["",ud(e,g)];return p&&b.push(ud(e,m.lineIndent(l.from,-1))),{changes:{from:s,to:a,insert:Ds.of(b)},range:Pr.cursor(s+1+b[1].length)}});return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function bO(r,e){let t=-1;return r.changeByRange(n=>{let i=[];for(let a=n.from;a<=n.to;){let l=r.doc.lineAt(a);l.number>t&&(n.empty||n.to>l.from)&&(e(l,i,n),t=l.number),a=l.to+1}let s=r.changes(i);return{changes:i,range:Pr.range(s.mapPos(n.anchor,1),s.mapPos(n.head,1))}})}const bB=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=Object.create(null),n=new zg(r,{overrideIndentation:s=>{let a=t[s];return a??-1}}),i=bO(r,(s,a,l)=>{let p=gO(n,s.from);if(p==null)return;/\S/.test(s.text)||(p=0);let m=/^\s*/.exec(s.text)[0],g=ud(r,p);(m!=g||l.from<s.from+m.length)&&(t[s.from]=p,a.push({from:s.from,to:s.from+m.length,insert:g}))});return i.changes.empty||e(r.update(i,{userEvent:"indent"})),!0},vB=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(bO(r,(t,n)=>{n.push({from:t.from,insert:r.facet(qg)})}),{userEvent:"input.indent"})),!0),CB=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(bO(r,(t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let s=xd(i,r.tabSize),a=0,l=ud(r,Math.max(0,s-rg(r)));for(;a<i.length&&a<l.length&&i.charCodeAt(a)==l.charCodeAt(a);)a++;n.push({from:t.from+a,to:t.from+i.length,insert:l.slice(a)})}),{userEvent:"delete.dedent"})),!0),SB=[{key:"Ctrl-b",run:z2,shift:tE,preventDefault:!0},{key:"Ctrl-f",run:W2,shift:rE},{key:"Ctrl-p",run:G2,shift:sE},{key:"Ctrl-n",run:H2,shift:oE},{key:"Ctrl-a",run:q$,shift:nB},{key:"Ctrl-e",run:z$,shift:iB},{key:"Ctrl-d",run:lE},{key:"Ctrl-h",run:cD},{key:"Ctrl-k",run:pE},{key:"Ctrl-Alt-h",run:hE},{key:"Ctrl-o",run:hB},{key:"Ctrl-t",run:pB},{key:"Ctrl-v",run:lD}],EB=[{key:"ArrowLeft",run:z2,shift:tE,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:I$,shift:Y$,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:V$,shift:tB,preventDefault:!0},{key:"ArrowRight",run:W2,shift:rE,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:M$,shift:G$,preventDefault:!0},{mac:"Cmd-ArrowRight",run:U$,shift:rB,preventDefault:!0},{key:"ArrowUp",run:G2,shift:sE,preventDefault:!0},{mac:"Cmd-ArrowUp",run:nb,shift:sb},{mac:"Ctrl-ArrowUp",run:eb,shift:tb},{key:"ArrowDown",run:H2,shift:oE,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ib,shift:ob},{mac:"Ctrl-ArrowDown",run:lD,shift:rb},{key:"PageUp",run:eb,shift:tb},{key:"PageDown",run:lD,shift:rb},{key:"Home",run:X$,shift:eB,preventDefault:!0},{key:"Mod-Home",run:nb,shift:sb},{key:"End",run:L$,shift:K$,preventDefault:!0},{key:"Mod-End",run:ib,shift:ob},{key:"Enter",run:OB},{key:"Mod-a",run:sB},{key:"Backspace",run:cD,shift:cD},{key:"Delete",run:lE},{key:"Mod-Backspace",mac:"Alt-Backspace",run:hE},{key:"Mod-Delete",mac:"Alt-Delete",run:lB},{mac:"Mod-Backspace",run:cB},{mac:"Mod-Delete",run:pE}].concat(SB.map(r=>({mac:r.key,run:r.run,shift:r.shift}))),wB=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Q$,shift:H$},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:j$,shift:J$},{key:"Alt-ArrowUp",run:fB},{key:"Shift-Alt-ArrowUp",run:mB},{key:"Alt-ArrowDown",run:dB},{key:"Shift-Alt-ArrowDown",run:gB},{key:"Escape",run:uB},{key:"Mod-Enter",run:xB},{key:"Alt-l",mac:"Ctrl-l",run:oB},{key:"Mod-i",run:aB,preventDefault:!0},{key:"Mod-[",run:CB},{key:"Mod-]",run:vB},{key:"Mod-Alt-\\",run:bB},{key:"Shift-Mod-k",run:yB},{key:"Shift-Mod-\\",run:Z$},{key:"Mod-/",run:g$},{key:"Alt-A",run:D$}].concat(EB);function js(){var r=arguments[0];typeof r=="string"&&(r=document.createElement(r));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=t[n];typeof i=="string"?r.setAttribute(n,i):i!=null&&(r[n]=i)}e++}for(;e<arguments.length;e++)gE(r,arguments[e]);return r}function gE(r,e){if(typeof e=="string")r.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)r.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)gE(r,e[t]);else throw new RangeError("Unsupported child node: "+e)}const ab=typeof String.prototype.normalize=="function"?r=>r.normalize("NFKD"):r=>r;class Hp{constructor(e,t,n=0,i=e.length,s,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,i),this.bufferStart=n,this.normalize=s?l=>s(ab(l)):ab,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Uo(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=YD(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=Ha(e);let i=this.normalize(t);for(let s=0,a=n;;s++){let l=i.charCodeAt(s),p=this.match(l,a);if(s==i.length-1){if(p)return this.value=p,this;break}a==n&&s<t.length&&t.charCodeAt(s)==l&&a++}}}match(e,t){let n=null;for(let i=0;i<this.matches.length;i+=2){let s=this.matches[i],a=!1;this.query.charCodeAt(s)==e&&(s==this.query.length-1?n={from:this.matches[i+1],to:t+1}:(this.matches[i]++,a=!0)),a||(this.matches.splice(i,2),i-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?n={from:t,to:t+1}:this.matches.push(1,t)),n&&this.test&&!this.test(n.from,n.to,this.buffer,this.bufferPos)&&(n=null),n}}typeof Symbol<"u"&&(Hp.prototype[Symbol.iterator]=function(){return this});const yE={from:-1,to:-1,match:/.*/.exec("")},vO="gm"+(/x/.unicode==null?"":"u");class DE{constructor(e,t,n,i=0,s=e.length){if(this.text=e,this.to=s,this.curLine="",this.done=!1,this.value=yE,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new OE(e,t,n,i,s);this.re=new RegExp(t,vO+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.iter=e.iter();let a=e.lineAt(i);this.curLineStart=a.from,this.matchPos=og(e,i),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,i=n+t[0].length;if(this.matchPos=og(this.text,i+(n==i?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<i||n>this.value.to)&&(!this.test||this.test(n,i,t)))return this.value={from:n,to:i,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const q0=new WeakMap;class jp{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let i=q0.get(e);if(!i||i.from>=n||i.to<=t){let l=new jp(t,e.sliceString(t,n));return q0.set(e,l),l}if(i.from==t&&i.to==n)return i;let{text:s,from:a}=i;return a>t&&(s=e.sliceString(t,a)+s,a=t),i.to<n&&(s+=e.sliceString(i.to,n)),q0.set(e,new jp(a,s)),new jp(t,s.slice(t-a,n-a))}}class OE{constructor(e,t,n,i,s){this.text=e,this.to=s,this.done=!1,this.value=yE,this.matchPos=og(e,i),this.re=new RegExp(t,vO+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.flat=jp.get(e,i,this.chunkEnd(i+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let n=this.flat.from+t.index,i=n+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,i,t)))return this.value={from:n,to:i,match:t},this.matchPos=og(this.text,i+(n==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=jp.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(DE.prototype[Symbol.iterator]=OE.prototype[Symbol.iterator]=function(){return this});function AB(r){try{return new RegExp(r,vO),!0}catch{return!1}}function og(r,e){if(e>=r.length)return e;let t=r.lineAt(e),n;for(;e<t.to&&(n=t.text.charCodeAt(e-t.from))>=56320&&n<57344;)e++;return e}function hD(r){let e=js("input",{class:"cm-textfield",name:"line"}),t=js("form",{class:"cm-gotoLine",onkeydown:i=>{i.keyCode==27?(i.preventDefault(),r.dispatch({effects:ag.of(!1)}),r.focus()):i.keyCode==13&&(i.preventDefault(),n())},onsubmit:i=>{i.preventDefault(),n()}},js("label",r.state.phrase("Go to line"),": ",e)," ",js("button",{class:"cm-button",type:"submit"},r.state.phrase("go")));function n(){let i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(!i)return;let{state:s}=r,a=s.doc.lineAt(s.selection.main.head),[,l,p,m,g]=i,b=m?+m.slice(1):0,S=p?+p:a.number;if(p&&g){let be=S/100;l&&(be=be*(l=="-"?-1:1)+a.number/s.doc.lines),S=Math.round(s.doc.lines*be)}else p&&l&&(S=S*(l=="-"?-1:1)+a.number);let $=s.doc.line(Math.max(1,Math.min(s.doc.lines,S))),G=Pr.cursor($.from+Math.max(0,Math.min(b,$.length)));r.dispatch({effects:[ag.of(!1),Qn.scrollIntoView(G.from,{y:"center"})],selection:G}),r.focus()}return{dom:t}}const ag=Qi.define(),ub=Po.define({create(){return!0},update(r,e){for(let t of e.effects)t.is(ag)&&(r=t.value);return r},provide:r=>id.from(r,e=>e?hD:null)}),TB=r=>{let e=nd(r,hD);if(!e){let t=[ag.of(!0)];r.state.field(ub,!1)==null&&t.push(Qi.appendConfig.of([ub,PB])),r.dispatch({effects:t}),e=nd(r,hD)}return e&&e.dom.querySelector("input").focus(),!0},PB=Qn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),kB={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},xE=qn.define({combine(r){return Sl(r,kB,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function FB(r){let e=[IB,NB];return r&&e.push(xE.of(r)),e}const _B=_i.mark({class:"cm-selectionMatch"}),$B=_i.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function lb(r,e,t,n){return(t==0||r(e.sliceDoc(t-1,t))!=Js.Word)&&(n==e.doc.length||r(e.sliceDoc(n,n+1))!=Js.Word)}function BB(r,e,t,n){return r(e.sliceDoc(t,t+1))==Js.Word&&r(e.sliceDoc(n-1,n))==Js.Word}const NB=bo.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.selectionSet||r.docChanged||r.viewportChanged)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=r.state.facet(xE),{state:t}=r,n=t.selection;if(n.ranges.length>1)return _i.none;let i=n.main,s,a=null;if(i.empty){if(!e.highlightWordAroundCursor)return _i.none;let p=t.wordAt(i.head);if(!p)return _i.none;a=t.charCategorizer(i.head),s=t.sliceDoc(p.from,p.to)}else{let p=i.to-i.from;if(p<e.minSelectionLength||p>200)return _i.none;if(e.wholeWords){if(s=t.sliceDoc(i.from,i.to),a=t.charCategorizer(i.head),!(lb(a,t,i.from,i.to)&&BB(a,t,i.from,i.to)))return _i.none}else if(s=t.sliceDoc(i.from,i.to).trim(),!s)return _i.none}let l=[];for(let p of r.visibleRanges){let m=new Hp(t.doc,s,p.from,p.to);for(;!m.next().done;){let{from:g,to:b}=m.value;if((!a||lb(a,t,g,b))&&(i.empty&&g<=i.from&&b>=i.to?l.push($B.range(g,b)):(g>=i.to||b<=i.from)&&l.push(_B.range(g,b)),l.length>e.maxMatches))return _i.none}}return _i.set(l)}},{decorations:r=>r.decorations}),IB=Qn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),MB=({state:r,dispatch:e})=>{let{selection:t}=r,n=Pr.create(t.ranges.map(i=>r.wordAt(i.head)||Pr.cursor(i.head)),t.mainIndex);return n.eq(t)?!1:(e(r.update({selection:n})),!0)};function RB(r,e){let{main:t,ranges:n}=r.selection,i=r.wordAt(t.head),s=i&&i.from==t.from&&i.to==t.to;for(let a=!1,l=new Hp(r.doc,e,n[n.length-1].to);;)if(l.next(),l.done){if(a)return null;l=new Hp(r.doc,e,0,Math.max(0,n[n.length-1].from-1)),a=!0}else{if(a&&n.some(p=>p.from==l.value.from))continue;if(s){let p=r.wordAt(l.value.from);if(!p||p.from!=l.value.from||p.to!=l.value.to)continue}return l.value}}const QB=({state:r,dispatch:e})=>{let{ranges:t}=r.selection;if(t.some(s=>s.from===s.to))return MB({state:r,dispatch:e});let n=r.sliceDoc(t[0].from,t[0].to);if(r.selection.ranges.some(s=>r.sliceDoc(s.from,s.to)!=n))return!1;let i=RB(r,n);return i?(e(r.update({selection:r.selection.addRange(Pr.range(i.from,i.to),!1),effects:Qn.scrollIntoView(i.to)})),!0):!1},of=qn.define({combine(r){return Sl(r,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new HB(e),scrollToMatch:e=>Qn.scrollIntoView(e)})}});class bE{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||AB(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,n)=>n=="n"?`
|
|
11
11
|
`:n=="r"?"\r":n=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new VB(this):new LB(this)}getCursor(e,t=0,n){let i=e.doc?e:gs.create({doc:e});return n==null&&(n=i.doc.length),this.regexp?Ap(this,i,t,n):wp(this,i,t,n)}}class vE{constructor(e){this.spec=e}}function wp(r,e,t,n){return new Hp(e.doc,r.unquoted,t,n,r.caseSensitive?void 0:i=>i.toLowerCase(),r.wholeWord?jB(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function jB(r,e){return(t,n,i,s)=>((s>t||s+i.length<n)&&(s=Math.max(0,t-2),i=r.sliceString(s,Math.min(r.length,n+2))),(e(ug(i,t-s))!=Js.Word||e(lg(i,t-s))!=Js.Word)&&(e(lg(i,n-s))!=Js.Word||e(ug(i,n-s))!=Js.Word))}class LB extends vE{constructor(e){super(e)}nextMatch(e,t,n){let i=wp(this.spec,e,n,e.doc.length).nextOverlapping();return i.done&&(i=wp(this.spec,e,0,t).nextOverlapping()),i.done?null:i.value}prevMatchInRange(e,t,n){for(let i=n;;){let s=Math.max(t,i-1e4-this.spec.unquoted.length),a=wp(this.spec,e,s,i),l=null;for(;!a.nextOverlapping().done;)l=a.value;if(l)return l;if(s==t)return null;i-=1e4}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=wp(this.spec,e,0,e.doc.length),i=[];for(;!n.next().done;){if(i.length>=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let s=wp(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)i(s.value.from,s.value.to)}}function Ap(r,e,t,n){return new DE(e.doc,r.search,{ignoreCase:!r.caseSensitive,test:r.wholeWord?XB(e.charCategorizer(e.selection.main.head)):void 0},t,n)}function ug(r,e){return r.slice(ua(r,e,!1),e)}function lg(r,e){return r.slice(e,ua(r,e))}function XB(r){return(e,t,n)=>!n[0].length||(r(ug(n.input,n.index))!=Js.Word||r(lg(n.input,n.index))!=Js.Word)&&(r(lg(n.input,n.index+n[0].length))!=Js.Word||r(ug(n.input,n.index+n[0].length))!=Js.Word)}class VB extends vE{nextMatch(e,t,n){let i=Ap(this.spec,e,n,e.doc.length).next();return i.done&&(i=Ap(this.spec,e,0,t).next()),i.done?null:i.value}prevMatchInRange(e,t,n){for(let i=1;;i++){let s=Math.max(t,n-i*1e4),a=Ap(this.spec,e,s,n),l=null;for(;!a.next().done;)l=a.value;if(l&&(s==t||l.from>s+10))return l;if(s==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,(t,n)=>n=="$"?"$":n=="&"?e.match[0]:n!="0"&&+n<e.match.length?e.match[n]:t))}matchAll(e,t){let n=Ap(this.spec,e,0,e.doc.length),i=[];for(;!n.next().done;){if(i.length>=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let s=Ap(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!s.next().done;)i(s.value.from,s.value.to)}}const ld=Qi.define(),CO=Qi.define(),Wc=Po.define({create(r){return new z0(pD(r).create(),null)},update(r,e){for(let t of e.effects)t.is(ld)?r=new z0(t.value.create(),r.panel):t.is(CO)&&(r=new z0(r.query,t.value?SO:null));return r},provide:r=>id.from(r,e=>e.panel)});class z0{constructor(e,t){this.query=e,this.panel=t}}const UB=_i.mark({class:"cm-searchMatch"}),qB=_i.mark({class:"cm-searchMatch cm-searchMatch-selected"}),zB=bo.fromClass(class{constructor(r){this.view=r,this.decorations=this.highlight(r.state.field(Wc))}update(r){let e=r.state.field(Wc);(e!=r.startState.field(Wc)||r.docChanged||r.selectionSet||r.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:r,panel:e}){if(!e||!r.spec.valid)return _i.none;let{view:t}=this,n=new Kc;for(let i=0,s=t.visibleRanges,a=s.length;i<a;i++){let{from:l,to:p}=s[i];for(;i<a-1&&p>s[i+1].from-2*250;)p=s[++i].to;r.highlight(t.state,l,p,(m,g)=>{let b=t.state.selection.ranges.some(S=>S.from==m&&S.to==g);n.add(m,g,b?qB:UB)})}return n.finish()}},{decorations:r=>r.decorations});function Fd(r){return e=>{let t=e.state.field(Wc,!1);return t&&t.query.spec.valid?r(e,t):EE(e)}}const cg=Fd((r,{query:e})=>{let{to:t}=r.state.selection.main,n=e.nextMatch(r.state,t,t);if(!n)return!1;let i=Pr.single(n.from,n.to),s=r.state.facet(of);return r.dispatch({selection:i,effects:[EO(r,n),s.scrollToMatch(i.main,r)],userEvent:"select.search"}),SE(r),!0}),hg=Fd((r,{query:e})=>{let{state:t}=r,{from:n}=t.selection.main,i=e.prevMatch(t,n,n);if(!i)return!1;let s=Pr.single(i.from,i.to),a=r.state.facet(of);return r.dispatch({selection:s,effects:[EO(r,i),a.scrollToMatch(s.main,r)],userEvent:"select.search"}),SE(r),!0}),WB=Fd((r,{query:e})=>{let t=e.matchAll(r.state,1e3);return!t||!t.length?!1:(r.dispatch({selection:Pr.create(t.map(n=>Pr.range(n.from,n.to))),userEvent:"select.search.matches"}),!0)}),ZB=({state:r,dispatch:e})=>{let t=r.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:n,to:i}=t.main,s=[],a=0;for(let l=new Hp(r.doc,r.sliceDoc(n,i));!l.next().done;){if(s.length>1e3)return!1;l.value.from==n&&(a=s.length),s.push(Pr.range(l.value.from,l.value.to))}return e(r.update({selection:Pr.create(s,a),userEvent:"select.search.matches"})),!0},cb=Fd((r,{query:e})=>{let{state:t}=r,{from:n,to:i}=t.selection.main;if(t.readOnly)return!1;let s=e.nextMatch(t,n,n);if(!s)return!1;let a=[],l,p,m=[];if(s.from==n&&s.to==i&&(p=t.toText(e.getReplacement(s)),a.push({from:s.from,to:s.to,insert:p}),s=e.nextMatch(t,s.from,s.to),m.push(Qn.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(n).number)+"."))),s){let g=a.length==0||a[0].from>=s.to?0:s.to-s.from-p.length;l=Pr.single(s.from-g,s.to-g),m.push(EO(r,s)),m.push(t.facet(of).scrollToMatch(l.main,r))}return r.dispatch({changes:a,selection:l,effects:m,userEvent:"input.replace"}),!0}),YB=Fd((r,{query:e})=>{if(r.state.readOnly)return!1;let t=e.matchAll(r.state,1e9).map(i=>{let{from:s,to:a}=i;return{from:s,to:a,insert:e.getReplacement(i)}});if(!t.length)return!1;let n=r.state.phrase("replaced $ matches",t.length)+".";return r.dispatch({changes:t,effects:Qn.announce.of(n),userEvent:"input.replace.all"}),!0});function SO(r){return r.state.facet(of).createPanel(r)}function pD(r,e){var t,n,i,s,a;let l=r.selection.main,p=l.empty||l.to>l.from+100?"":r.sliceDoc(l.from,l.to);if(e&&!p)return e;let m=r.facet(of);return new bE({search:((t=e==null?void 0:e.literal)!==null&&t!==void 0?t:m.literal)?p:p.replace(/\n/g,"\\n"),caseSensitive:(n=e==null?void 0:e.caseSensitive)!==null&&n!==void 0?n:m.caseSensitive,literal:(i=e==null?void 0:e.literal)!==null&&i!==void 0?i:m.literal,regexp:(s=e==null?void 0:e.regexp)!==null&&s!==void 0?s:m.regexp,wholeWord:(a=e==null?void 0:e.wholeWord)!==null&&a!==void 0?a:m.wholeWord})}function CE(r){let e=nd(r,SO);return e&&e.dom.querySelector("[main-field]")}function SE(r){let e=CE(r);e&&e==r.root.activeElement&&e.select()}const EE=r=>{let e=r.state.field(Wc,!1);if(e&&e.panel){let t=CE(r);if(t&&t!=r.root.activeElement){let n=pD(r.state,e.query.spec);n.valid&&r.dispatch({effects:ld.of(n)}),t.focus(),t.select()}}else r.dispatch({effects:[CO.of(!0),e?ld.of(pD(r.state,e.query.spec)):Qi.appendConfig.of(KB)]});return!0},wE=r=>{let e=r.state.field(Wc,!1);if(!e||!e.panel)return!1;let t=nd(r,SO);return t&&t.dom.contains(r.root.activeElement)&&r.focus(),r.dispatch({effects:CO.of(!1)}),!0},GB=[{key:"Mod-f",run:EE,scope:"editor search-panel"},{key:"F3",run:cg,shift:hg,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:cg,shift:hg,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:wE,scope:"editor search-panel"},{key:"Mod-Shift-l",run:ZB},{key:"Alt-g",run:TB},{key:"Mod-d",run:QB,preventDefault:!0}];class HB{constructor(e){this.view=e;let t=this.query=e.state.field(Wc).query.spec;this.commit=this.commit.bind(this),this.searchField=js("input",{value:t.search,placeholder:Xa(e,"Find"),"aria-label":Xa(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=js("input",{value:t.replace,placeholder:Xa(e,"Replace"),"aria-label":Xa(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=js("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=js("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=js("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function n(i,s,a){return js("button",{class:"cm-button",name:i,onclick:s,type:"button"},a)}this.dom=js("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,n("next",()=>cg(e),[Xa(e,"next")]),n("prev",()=>hg(e),[Xa(e,"previous")]),n("select",()=>WB(e),[Xa(e,"all")]),js("label",null,[this.caseField,Xa(e,"match case")]),js("label",null,[this.reField,Xa(e,"regexp")]),js("label",null,[this.wordField,Xa(e,"by word")]),...e.state.readOnly?[]:[js("br"),this.replaceField,n("replace",()=>cb(e),[Xa(e,"replace")]),n("replaceAll",()=>YB(e),[Xa(e,"replace all")])],js("button",{name:"close",onclick:()=>wE(e),"aria-label":Xa(e,"close"),type:"button"},["×"])])}commit(){let e=new bE({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:ld.of(e)}))}keydown(e){MF(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?hg:cg)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),cb(this.view))}update(e){for(let t of e.transactions)for(let n of t.effects)n.is(ld)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(of).top}}function Xa(r,e){return r.state.phrase(e)}const lm=30,cm=/[\s\.,:;?!]/;function EO(r,{from:e,to:t}){let n=r.state.doc.lineAt(e),i=r.state.doc.lineAt(t).to,s=Math.max(n.from,e-lm),a=Math.min(i,t+lm),l=r.state.sliceDoc(s,a);if(s!=n.from){for(let p=0;p<lm;p++)if(!cm.test(l[p+1])&&cm.test(l[p])){l=l.slice(p);break}}if(a!=i){for(let p=l.length-1;p>l.length-lm;p--)if(!cm.test(l[p-1])&&cm.test(l[p])){l=l.slice(0,p);break}}return Qn.announce.of(`${r.state.phrase("current match")}. ${l} ${r.state.phrase("on line")} ${n.number}.`)}const JB=Qn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),KB=[Wc,Jh.lowest(zB),JB];class AE{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=po(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),i=t.text.slice(n-t.from,this.pos-t.from),s=i.search(PE(e,!1));return s<0?null:{from:n+s,to:this.pos,text:i.slice(s)}}get aborted(){return this.abortListeners==null}addEventListener(e,t){e=="abort"&&this.abortListeners&&this.abortListeners.push(t)}}function hb(r){let e=Object.keys(r).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function eN(r){let e=Object.create(null),t=Object.create(null);for(let{label:i}of r){e[i[0]]=!0;for(let s=1;s<i.length;s++)t[i[s]]=!0}let n=hb(e)+hb(t)+"*$";return[new RegExp("^"+n),new RegExp(n)]}function TE(r){let e=r.map(i=>typeof i=="string"?{label:i}:i),[t,n]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:eN(e);return i=>{let s=i.matchBefore(n);return s||i.explicit?{from:s?s.from:i.pos,options:e,validFor:t}:null}}function tN(r,e){return t=>{for(let n=po(t.state).resolveInner(t.pos,-1);n;n=n.parent){if(r.indexOf(n.name)>-1)return null;if(n.type.isTop)break}return e(t)}}class pb{constructor(e,t,n,i){this.completion=e,this.source=t,this.match=n,this.score=i}}function Zc(r){return r.selection.main.from}function PE(r,e){var t;let{source:n}=r,i=e&&n[0]!="^",s=n[n.length-1]!="$";return!i&&!s?r:new RegExp(`${i?"^":""}(?:${n})${s?"$":""}`,(t=r.flags)!==null&&t!==void 0?t:r.ignoreCase?"i":"")}const kE=uc.define();function rN(r,e,t,n){let{main:i}=r.selection,s=t-i.from,a=n-i.from;return Object.assign(Object.assign({},r.changeByRange(l=>l!=i&&t!=n&&r.sliceDoc(l.from+s,l.from+a)!=r.sliceDoc(t,n)?{range:l}:{changes:{from:l.from+s,to:n==i.from?l.to:l.from+a,insert:e},range:Pr.cursor(l.from+s+e.length)})),{userEvent:"input.complete"})}const fb=new WeakMap;function nN(r){if(!Array.isArray(r))return r;let e=fb.get(r);return e||fb.set(r,e=TE(r)),e}const wO=Qi.define(),cd=Qi.define();class iN{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=Uo(e,t),i=Ha(n);this.chars.push(n);let s=e.slice(t,t+i),a=s.toUpperCase();this.folded.push(Uo(a==s?s.toLowerCase():a,0)),t+=i}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,!0}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return!1;let{chars:t,folded:n,any:i,precise:s,byWord:a}=this;if(t.length==1){let Ve=Uo(e,0),Dt=Ha(Ve),ht=Dt==e.length?0:-100;if(Ve!=t[0])if(Ve==n[0])ht+=-200;else return!1;return this.ret(ht,[0,Dt])}let l=e.indexOf(this.pattern);if(l==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let p=t.length,m=0;if(l<0){for(let Ve=0,Dt=Math.min(e.length,200);Ve<Dt&&m<p;){let ht=Uo(e,Ve);(ht==t[m]||ht==n[m])&&(i[m++]=Ve),Ve+=Ha(ht)}if(m<p)return!1}let g=0,b=0,S=!1,$=0,G=-1,be=-1,ke=/[a-z]/.test(e),me=!0;for(let Ve=0,Dt=Math.min(e.length,200),ht=0;Ve<Dt&&b<p;){let bt=Uo(e,Ve);l<0&&(g<p&&bt==t[g]&&(s[g++]=Ve),$<p&&(bt==t[$]||bt==n[$]?($==0&&(G=Ve),be=Ve+1,$++):$=0));let Yt,ir=bt<255?bt>=48&&bt<=57||bt>=97&&bt<=122?2:bt>=65&&bt<=90?1:0:(Yt=YD(bt))!=Yt.toLowerCase()?1:Yt!=Yt.toUpperCase()?2:0;(!Ve||ir==1&&ke||ht==0&&ir!=0)&&(t[b]==bt||n[b]==bt&&(S=!0)?a[b++]=Ve:a.length&&(me=!1)),ht=ir,Ve+=Ha(bt)}return b==p&&a[0]==0&&me?this.result(-100+(S?-200:0),a,e):$==p&&G==0?this.ret(-200-e.length+(be==e.length?0:-100),[0,be]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):$==p?this.ret(-900-e.length,[G,be]):b==p?this.result(-100+(S?-200:0)+-700+(me?0:-1100),a,e):t.length==2?!1:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,t,n){let i=[],s=0;for(let a of t){let l=a+(this.astral?Ha(Uo(n,a)):1);s&&i[s-1]==a?i[s-1]=l:(i[s++]=a,i[s++]=l)}return this.ret(e-n.length,i)}}const ka=qn.define({combine(r){return Sl(r,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:sN,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>db(e(n),t(n)),optionClass:(e,t)=>n=>db(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})}});function db(r,e){return r?e?r+" "+e:r:e}function sN(r,e,t,n,i){let s=r.textDirection==no.RTL,a=s,l=!1,p="top",m,g,b=e.left-i.left,S=i.right-e.right,$=n.right-n.left,G=n.bottom-n.top;if(a&&b<Math.min($,S)?a=!1:!a&&S<Math.min($,b)&&(a=!0),$<=(a?b:S))m=Math.max(i.top,Math.min(t.top,i.bottom-G))-e.top,g=Math.min(400,a?b:S);else{l=!0,g=Math.min(400,(s?e.right:i.right-e.left)-30);let be=i.bottom-e.bottom;be>=G||be>e.top?m=t.bottom-e.top:(p="bottom",m=e.bottom-t.top)}return{style:`${p}: ${m}px; max-width: ${g}px`,class:"cm-completionInfo-"+(l?s?"left-narrow":"right-narrow":a?"left":"right")}}function oN(r){let e=r.addToOptions.slice();return r.icons&&e.push({render(t){let n=document.createElement("div");return n.classList.add("cm-completionIcon"),t.type&&n.classList.add(...t.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),n.setAttribute("aria-hidden","true"),n},position:20}),e.push({render(t,n,i){let s=document.createElement("span");s.className="cm-completionLabel";let a=t.displayLabel||t.label,l=0;for(let p=0;p<i.length;){let m=i[p++],g=i[p++];m>l&&s.appendChild(document.createTextNode(a.slice(l,m)));let b=s.appendChild(document.createElement("span"));b.appendChild(document.createTextNode(a.slice(m,g))),b.className="cm-completionMatchedText",l=g}return l<a.length&&s.appendChild(document.createTextNode(a.slice(l))),s},position:50},{render(t){if(!t.detail)return null;let n=document.createElement("span");return n.className="cm-completionDetail",n.textContent=t.detail,n},position:80}),e.sort((t,n)=>t.position-n.position).map(t=>t.render)}function mb(r,e,t){if(r<=t)return{from:0,to:r};if(e<0&&(e=0),e<=r>>1){let i=Math.floor(e/t);return{from:i*t,to:(i+1)*t}}let n=Math.floor((r-e)/t);return{from:r-(n+1)*t,to:r-n*t}}class aN{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:p=>this.placeInfo(p),key:this},this.space=null,this.currentClass="";let i=e.state.field(t),{options:s,selected:a}=i.open,l=e.state.facet(ka);this.optionContent=oN(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=mb(s.length,a,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",p=>{for(let m=p.target,g;m&&m!=this.dom;m=m.parentNode)if(m.nodeName=="LI"&&(g=/-(\d+)$/.exec(m.id))&&+g[1]<s.length){this.applyCompletion(e,s[+g[1]]),p.preventDefault();return}}),this.dom.addEventListener("focusout",p=>{let m=e.state.field(this.stateField,!1);m&&m.tooltip&&e.state.facet(ka).closeOnBlur&&p.relatedTarget!=e.contentDOM&&e.dispatch({effects:cd.of(null)})}),this.list=this.dom.appendChild(this.createListBox(s,i.id,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}mount(){this.updateSel()}update(e){var t,n,i;let s=e.state.field(this.stateField),a=e.startState.field(this.stateField);this.updateTooltipClass(e.state),s!=a&&(this.updateSel(),((t=s.open)===null||t===void 0?void 0:t.disabled)!=((n=a.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!(!((i=s.open)===null||i===void 0)&&i.disabled)))}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let n of t.split(" "))n&&this.dom.classList.add(n);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=mb(t.options.length,t.selected,this.view.state.facet(ka).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t.options,e.id,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:i}=n;if(!i)return;let s=typeof i=="string"?document.createTextNode(i):i(n);if(!s)return;"then"in s?s.then(a=>{a&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(a,n)}).catch(a=>wu(this.view.state,a,"completion info")):this.addInfoPane(s,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:i,destroy:s}=e;n.appendChild(i),this.infoDestroy=s||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,i=this.range.from;n;n=n.nextSibling,i++)n.nodeName!="LI"||!n.id?i--:i==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected");return t&&lN(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),s=this.space;if(!s){let a=this.dom.ownerDocument.defaultView||window;s={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return i.top>Math.min(s.bottom,t.bottom)-10||i.bottom<Math.max(s.top,t.top)+10?null:this.view.state.facet(ka).positionInfo(this.view,t,i,n,s)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,n){const i=document.createElement("ul");i.id=t,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions"));let s=null;for(let a=n.from;a<n.to;a++){let{completion:l,match:p}=e[a],{section:m}=l;if(m){let S=typeof m=="string"?m:m.name;if(S!=s&&(a>n.from||n.from==0))if(s=S,typeof m!="string"&&m.header)i.appendChild(m.header(m));else{let $=i.appendChild(document.createElement("completion-section"));$.textContent=S}}const g=i.appendChild(document.createElement("li"));g.id=t+"-"+a,g.setAttribute("role","option");let b=this.optionClass(l);b&&(g.className=b);for(let S of this.optionContent){let $=S(l,this.view.state,p);$&&g.appendChild($)}}return n.from&&i.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&i.classList.add("cm-completionListIncompleteBottom"),i}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function uN(r,e){return t=>new aN(t,r,e)}function lN(r,e){let t=r.getBoundingClientRect(),n=e.getBoundingClientRect();n.top<t.top?r.scrollTop-=t.top-n.top:n.bottom>t.bottom&&(r.scrollTop+=n.bottom-t.bottom)}function gb(r){return(r.boost||0)*100+(r.apply?10:0)+(r.info?5:0)+(r.type?1:0)}function cN(r,e){let t=[],n=null,i=p=>{t.push(p);let{section:m}=p.completion;if(m){n||(n=[]);let g=typeof m=="string"?m:m.name;n.some(b=>b.name==g)||n.push(typeof m=="string"?{name:g}:m)}};for(let p of r)if(p.hasResult()){let m=p.result.getMatch;if(p.result.filter===!1)for(let g of p.result.options)i(new pb(g,p.source,m?m(g):[],1e9-t.length));else{let g=new iN(e.sliceDoc(p.from,p.to));for(let b of p.result.options)if(g.match(b.label)){let S=b.displayLabel?m?m(b,g.matched):[]:g.matched;i(new pb(b,p.source,S,g.score+(b.boost||0)))}}}if(n){let p=Object.create(null),m=0,g=(b,S)=>{var $,G;return(($=b.rank)!==null&&$!==void 0?$:1e9)-((G=S.rank)!==null&&G!==void 0?G:1e9)||(b.name<S.name?-1:1)};for(let b of n.sort(g))m-=1e5,p[b.name]=m;for(let b of t){let{section:S}=b.completion;S&&(b.score+=p[typeof S=="string"?S:S.name])}}let s=[],a=null,l=e.facet(ka).compareCompletions;for(let p of t.sort((m,g)=>g.score-m.score||l(m.completion,g.completion))){let m=p.completion;!a||a.label!=m.label||a.detail!=m.detail||a.type!=null&&m.type!=null&&a.type!=m.type||a.apply!=m.apply||a.boost!=m.boost?s.push(p):gb(p.completion)>gb(a)&&(s[s.length-1]=p),a=p.completion}return s}class Fp{constructor(e,t,n,i,s,a){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=i,this.selected=s,this.disabled=a}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new Fp(this.options,yb(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,i,s){let a=cN(e,t);if(!a.length)return i&&e.some(p=>p.state==1)?new Fp(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let l=t.facet(ka).selectOnOpen?0:-1;if(i&&i.selected!=l&&i.selected!=-1){let p=i.options[i.selected].completion;for(let m=0;m<a.length;m++)if(a[m].completion==p){l=m;break}}return new Fp(a,yb(n,l),{pos:e.reduce((p,m)=>m.hasResult()?Math.min(p,m.from):p,1e8),create:uN(qa,$E),above:s.aboveCursor},i?i.timestamp:Date.now(),l,!1)}map(e){return new Fp(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class pg{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new pg(fN,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,n=t.facet(ka),s=(n.override||t.languageDataAt("autocomplete",Zc(t)).map(nN)).map(l=>(this.active.find(m=>m.source==l)||new Ta(l,this.active.some(m=>m.state!=0)?1:0)).update(e,n));s.length==this.active.length&&s.every((l,p)=>l==this.active[p])&&(s=this.active);let a=this.open;a&&e.docChanged&&(a=a.map(e.changes)),e.selection||s.some(l=>l.hasResult()&&e.changes.touchesRange(l.from,l.to))||!hN(s,this.active)?a=Fp.build(s,t,this.id,a,n):a&&a.disabled&&!s.some(l=>l.state==1)&&(a=null),!a&&s.every(l=>l.state!=1)&&s.some(l=>l.hasResult())&&(s=s.map(l=>l.hasResult()?new Ta(l.source,0):l));for(let l of e.effects)l.is(_E)&&(a=a&&a.setSelected(l.value,this.id));return s==this.active&&a==this.open?this:new pg(s,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:pN}}function hN(r,e){if(r==e)return!0;for(let t=0,n=0;;){for(;t<r.length&&!r[t].hasResult;)t++;for(;n<e.length&&!e[n].hasResult;)n++;let i=t==r.length,s=n==e.length;if(i||s)return i==s;if(r[t++].result!=e[n++].result)return!1}}const pN={"aria-autocomplete":"list"};function yb(r,e){let t={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":r};return e>-1&&(t["aria-activedescendant"]=r+"-"+e),t}const fN=[];function fD(r){return r.isUserEvent("input.type")?"input":r.isUserEvent("delete.backward")?"delete":null}class Ta{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=fD(e),i=this;n?i=i.handleUserEvent(e,n,t):e.docChanged?i=i.handleChange(e):e.selection&&i.state!=0&&(i=new Ta(i.source,0));for(let s of e.effects)if(s.is(wO))i=new Ta(i.source,1,s.value?Zc(e.state):-1);else if(s.is(cd))i=new Ta(i.source,0);else if(s.is(FE))for(let a of s.value)a.source==i.source&&(i=a);return i}handleUserEvent(e,t,n){return t=="delete"||!n.activateOnTyping?this.map(e.changes):new Ta(this.source,1)}handleChange(e){return e.changes.touchesRange(Zc(e.startState))?new Ta(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new Ta(this.source,this.state,e.mapPos(this.explicitPos))}}class Lp extends Ta{constructor(e,t,n,i,s){super(e,2,t),this.result=n,this.from=i,this.to=s}hasResult(){return!0}handleUserEvent(e,t,n){var i;let s=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),l=Zc(e.state);if((this.explicitPos<0?l<=s:l<this.from)||l>a||t=="delete"&&Zc(e.startState)==this.from)return new Ta(this.source,t=="input"&&n.activateOnTyping?1:0);let p=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),m;return dN(this.result.validFor,e.state,s,a)?new Lp(this.source,p,this.result,s,a):this.result.update&&(m=this.result.update(this.result,s,a,new AE(e.state,l,p>=0)))?new Lp(this.source,p,m,m.from,(i=m.to)!==null&&i!==void 0?i:Zc(e.state)):new Ta(this.source,1,p)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new Ta(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new Lp(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function dN(r,e,t,n){if(!r)return!1;let i=e.sliceDoc(t,n);return typeof r=="function"?r(i,t,n,e):PE(r,!0).test(i)}const FE=Qi.define({map(r,e){return r.map(t=>t.map(e))}}),_E=Qi.define(),qa=Po.define({create(){return pg.start()},update(r,e){return r.update(e)},provide:r=>[sO.from(r,e=>e.tooltip),Qn.contentAttributes.from(r,e=>e.attrs)]});function $E(r,e){const t=e.completion.apply||e.completion.label;let n=r.state.field(qa).active.find(i=>i.source==e.source);return n instanceof Lp?(typeof t=="string"?r.dispatch(Object.assign(Object.assign({},rN(r.state,t,n.from,n.to)),{annotations:kE.of(e.completion)})):t(r,e.completion,n.from,n.to),!0):!1}function hm(r,e="option"){return t=>{let n=t.state.field(qa,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp<t.state.facet(ka).interactionDelay)return!1;let i=1,s;e=="page"&&(s=s2(t,n.open.tooltip))&&(i=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:a}=n.open.options,l=n.open.selected>-1?n.open.selected+i*(r?1:-1):r?0:a-1;return l<0?l=e=="page"?0:a-1:l>=a&&(l=e=="page"?a-1:0),t.dispatch({effects:_E.of(l)}),!0}}const BE=r=>{let e=r.state.field(qa,!1);return r.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<r.state.facet(ka).interactionDelay?!1:$E(r,e.open.options[e.open.selected])},mN=r=>r.state.field(qa,!1)?(r.dispatch({effects:wO.of(!0)}),!0):!1,gN=r=>{let e=r.state.field(qa,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(r.dispatch({effects:cd.of(null)}),!0)};class yN{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const Db=50,DN=50,ON=1e3,xN=bo.fromClass(class{constructor(r){this.view=r,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of r.state.field(qa).active)e.state==1&&this.startQuery(e)}update(r){let e=r.state.field(qa);if(!r.selectionSet&&!r.docChanged&&r.startState.field(qa)==e)return;let t=r.transactions.some(n=>(n.selection||n.docChanged)&&!fD(n));for(let n=0;n<this.running.length;n++){let i=this.running[n];if(t||i.updates.length+r.transactions.length>DN&&Date.now()-i.time>ON){for(let s of i.context.abortListeners)try{s()}catch(a){wu(this.view.state,a)}i.context.abortListeners=null,this.running.splice(n--,1)}else i.updates.push(...r.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(n=>n.state==1&&!this.running.some(i=>i.active.source==n.source))?setTimeout(()=>this.startUpdate(),Db):-1,this.composing!=0)for(let n of r.transactions)fD(n)=="input"?this.composing=2:this.composing==2&&n.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:r}=this.view,e=r.field(qa);for(let t of e.active)t.state==1&&!this.running.some(n=>n.active.source==t.source)&&this.startQuery(t)}startQuery(r){let{state:e}=this.view,t=Zc(e),n=new AE(e,t,r.explicitPos==t),i=new yN(r,n);this.running.push(i),Promise.resolve(r.source(n)).then(s=>{i.context.aborted||(i.done=s||null,this.scheduleAccept())},s=>{this.view.dispatch({effects:cd.of(null)}),wu(this.view.state,s)})}scheduleAccept(){this.running.every(r=>r.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),Db))}accept(){var r;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(ka);for(let n=0;n<this.running.length;n++){let i=this.running[n];if(i.done===void 0)continue;if(this.running.splice(n--,1),i.done){let a=new Lp(i.active.source,i.active.explicitPos,i.done,i.done.from,(r=i.done.to)!==null&&r!==void 0?r:Zc(i.updates.length?i.updates[0].startState:this.view.state));for(let l of i.updates)a=a.update(l,t);if(a.hasResult()){e.push(a);continue}}let s=this.view.state.field(qa).active.find(a=>a.source==i.active.source);if(s&&s.state==1)if(i.done==null){let a=new Ta(i.active.source,0);for(let l of i.updates)a=a.update(l,t);a.state!=1&&e.push(a)}else this.startQuery(s)}e.length&&this.view.dispatch({effects:FE.of(e)})}},{eventHandlers:{blur(r){let e=this.view.state.field(qa,!1);if(e&&e.tooltip&&this.view.state.facet(ka).closeOnBlur){let t=e.open&&s2(this.view,e.open.tooltip);(!t||!t.dom.contains(r.relatedTarget))&&this.view.dispatch({effects:cd.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:wO.of(!1)}),20),this.composing=0}}}),NE=Qn.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class bN{constructor(e,t,n,i){this.field=e,this.line=t,this.from=n,this.to=i}}class AO{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,zo.TrackDel),n=e.mapPos(this.to,1,zo.TrackDel);return t==null||n==null?null:new AO(this.field,t,n)}}class TO{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],i=[t],s=e.doc.lineAt(t),a=/^\s*/.exec(s.text)[0];for(let p of this.lines){if(n.length){let m=a,g=/^\t*/.exec(p)[0].length;for(let b=0;b<g;b++)m+=e.facet(qg);i.push(t+m.length-g),p=m+p.slice(g)}n.push(p),t+=p.length+1}let l=this.fieldPositions.map(p=>new AO(p.field,i[p.line]+p.from,i[p.line]+p.to));return{text:n,ranges:l}}static parse(e){let t=[],n=[],i=[],s;for(let a of e.split(/\r\n?|\n/)){for(;s=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(a);){let l=s[1]?+s[1]:null,p=s[2]||s[3]||"",m=-1;for(let g=0;g<t.length;g++)(l!=null?t[g].seq==l:p&&t[g].name==p)&&(m=g);if(m<0){let g=0;for(;g<t.length&&(l==null||t[g].seq!=null&&t[g].seq<l);)g++;t.splice(g,0,{seq:l,name:p}),m=g;for(let b of i)b.field>=m&&b.field++}i.push(new bN(m,n.length,s.index,s.index+p.length)),a=a.slice(0,s.index)+p+a.slice(s.index+s[0].length)}for(let l;l=/\\([{}])/.exec(a);){a=a.slice(0,l.index)+l[1]+a.slice(l.index+l[0].length);for(let p of i)p.line==n.length&&p.from>l.index&&(p.from--,p.to--)}n.push(a)}return new TO(n,i)}}let vN=_i.widget({widget:new class extends oh{toDOM(){let r=document.createElement("span");return r.className="cm-snippetFieldPosition",r}ignoreEvent(){return!1}}}),CN=_i.mark({class:"cm-snippetField"});class af{constructor(e,t){this.ranges=e,this.active=t,this.deco=_i.set(e.map(n=>(n.from==n.to?vN:CN).range(n.from,n.to)))}map(e){let t=[];for(let n of this.ranges){let i=n.map(e);if(!i)return null;t.push(i)}return new af(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(n=>n.field==this.active&&n.from<=t.from&&n.to>=t.to))}}const _d=Qi.define({map(r,e){return r&&r.map(e)}}),SN=Qi.define(),hd=Po.define({create(){return null},update(r,e){for(let t of e.effects){if(t.is(_d))return t.value;if(t.is(SN)&&r)return new af(r.ranges,t.value)}return r&&e.docChanged&&(r=r.map(e.changes)),r&&e.selection&&!r.selectionInsideField(e.selection)&&(r=null),r},provide:r=>Qn.decorations.from(r,e=>e?e.deco:_i.none)});function PO(r,e){return Pr.create(r.filter(t=>t.field==e).map(t=>Pr.range(t.from,t.to)))}function EN(r){let e=TO.parse(r);return(t,n,i,s)=>{let{text:a,ranges:l}=e.instantiate(t.state,i),p={changes:{from:i,to:s,insert:Ds.of(a)},scrollIntoView:!0,annotations:n?kE.of(n):void 0};if(l.length&&(p.selection=PO(l,0)),l.length>1){let m=new af(l,0),g=p.effects=[_d.of(m)];t.state.field(hd,!1)===void 0&&g.push(Qi.appendConfig.of([hd,kN,FN,NE]))}t.dispatch(t.state.update(p))}}function IE(r){return({state:e,dispatch:t})=>{let n=e.field(hd,!1);if(!n||r<0&&n.active==0)return!1;let i=n.active+r,s=r>0&&!n.ranges.some(a=>a.field==i+r);return t(e.update({selection:PO(n.ranges,i),effects:_d.of(s?null:new af(n.ranges,i))})),!0}}const wN=({state:r,dispatch:e})=>r.field(hd,!1)?(e(r.update({effects:_d.of(null)})),!0):!1,AN=IE(1),TN=IE(-1),PN=[{key:"Tab",run:AN,shift:TN},{key:"Escape",run:wN}],Ob=qn.define({combine(r){return r.length?r[0]:PN}}),kN=Jh.highest(Cd.compute([Ob],r=>r.facet(Ob)));function Aa(r,e){return Object.assign(Object.assign({},e),{apply:EN(r)})}const FN=Qn.domEventHandlers({mousedown(r,e){let t=e.state.field(hd,!1),n;if(!t||(n=e.posAtCoords({x:r.clientX,y:r.clientY}))==null)return!1;let i=t.ranges.find(s=>s.from<=n&&s.to>=n);return!i||i.field==t.active?!1:(e.dispatch({selection:PO(t.ranges,i.field),effects:_d.of(t.ranges.some(s=>s.field>i.field)?new af(t.ranges,i.field):null)}),!0)}}),pd={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Mh=Qi.define({map(r,e){let t=e.mapPos(r,-1,zo.TrackAfter);return t??void 0}}),kO=new class extends Uh{};kO.startSide=1;kO.endSide=-1;const ME=Po.define({create(){return Ss.empty},update(r,e){if(e.selection){let t=e.state.doc.lineAt(e.selection.main.head).from,n=e.startState.doc.lineAt(e.startState.selection.main.head).from;t!=e.changes.mapPos(n,-1)&&(r=Ss.empty)}r=r.map(e.changes);for(let t of e.effects)t.is(Mh)&&(r=r.update({add:[kO.range(t.value,t.value+1)]}));return r}});function _N(){return[BN,ME]}const W0="()[]{}<>";function RE(r){for(let e=0;e<W0.length;e+=2)if(W0.charCodeAt(e)==r)return W0.charAt(e+1);return YD(r<128?r:r+1)}function QE(r,e){return r.languageDataAt("closeBrackets",e)[0]||pd}const $N=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),BN=Qn.inputHandler.of((r,e,t,n)=>{if(($N?r.composing:r.compositionStarted)||r.state.readOnly)return!1;let i=r.state.selection.main;if(n.length>2||n.length==2&&Ha(Uo(n,0))==1||e!=i.from||t!=i.to)return!1;let s=MN(r.state,n);return s?(r.dispatch(s),!0):!1}),NN=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let n=QE(r,r.selection.main.head).brackets||pd.brackets,i=null,s=r.changeByRange(a=>{if(a.empty){let l=RN(r.doc,a.head);for(let p of n)if(p==l&&Kg(r.doc,a.head)==RE(Uo(p,0)))return{changes:{from:a.head-p.length,to:a.head+p.length},range:Pr.cursor(a.head-p.length)}}return{range:i=a}});return i||e(r.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},IN=[{key:"Backspace",run:NN}];function MN(r,e){let t=QE(r,r.selection.main.head),n=t.brackets||pd.brackets;for(let i of n){let s=RE(Uo(i,0));if(e==i)return s==i?LN(r,i,n.indexOf(i+i+i)>-1,t):QN(r,i,s,t.before||pd.before);if(e==s&&jE(r,r.selection.main.from))return jN(r,i,s)}return null}function jE(r,e){let t=!1;return r.field(ME).between(0,r.doc.length,n=>{n==e&&(t=!0)}),t}function Kg(r,e){let t=r.sliceString(e,e+2);return t.slice(0,Ha(Uo(t,0)))}function RN(r,e){let t=r.sliceString(e-2,e);return Ha(Uo(t,0))==t.length?t:t.slice(1)}function QN(r,e,t,n){let i=null,s=r.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:t,from:a.to}],effects:Mh.of(a.to+e.length),range:Pr.range(a.anchor+e.length,a.head+e.length)};let l=Kg(r.doc,a.head);return!l||/\s/.test(l)||n.indexOf(l)>-1?{changes:{insert:e+t,from:a.head},effects:Mh.of(a.head+e.length),range:Pr.cursor(a.head+e.length)}:{range:i=a}});return i?null:r.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function jN(r,e,t){let n=null,i=r.changeByRange(s=>s.empty&&Kg(r.doc,s.head)==t?{changes:{from:s.head,to:s.head+t.length,insert:t},range:Pr.cursor(s.head+t.length)}:n={range:s});return n?null:r.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function LN(r,e,t,n){let i=n.stringPrefixes||pd.stringPrefixes,s=null,a=r.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:Mh.of(l.to+e.length),range:Pr.range(l.anchor+e.length,l.head+e.length)};let p=l.head,m=Kg(r.doc,p),g;if(m==e){if(xb(r,p))return{changes:{insert:e+e,from:p},effects:Mh.of(p+e.length),range:Pr.cursor(p+e.length)};if(jE(r,p)){let S=t&&r.sliceDoc(p,p+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:p,to:p+S.length,insert:S},range:Pr.cursor(p+S.length)}}}else{if(t&&r.sliceDoc(p-2*e.length,p)==e+e&&(g=bb(r,p-2*e.length,i))>-1&&xb(r,g))return{changes:{insert:e+e+e+e,from:p},effects:Mh.of(p+e.length),range:Pr.cursor(p+e.length)};if(r.charCategorizer(p)(m)!=Js.Word&&bb(r,p,i)>-1&&!XN(r,p,e,i))return{changes:{insert:e+e,from:p},effects:Mh.of(p+e.length),range:Pr.cursor(p+e.length)}}return{range:s=l}});return s?null:r.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function xb(r,e){let t=po(r).resolveInner(e+1);return t.parent&&t.from==e}function XN(r,e,t,n){let i=po(r).resolveInner(e,-1),s=n.reduce((a,l)=>Math.max(a,l.length),0);for(let a=0;a<5;a++){let l=r.sliceDoc(i.from,Math.min(i.to,i.from+t.length+s)),p=l.indexOf(t);if(!p||p>-1&&n.indexOf(l.slice(0,p))>-1){let g=i.firstChild;for(;g&&g.from==i.from&&g.to-g.from>t.length+p;){if(r.sliceDoc(g.to-t.length,g.to)==t)return!1;g=g.firstChild}return!0}let m=i.to==e&&i.parent;if(!m)break;i=m}return!1}function bb(r,e,t){let n=r.charCategorizer(e);if(n(r.sliceDoc(e-1,e))!=Js.Word)return e;for(let i of t){let s=e-i.length;if(r.sliceDoc(s,e)==i&&n(r.sliceDoc(s-1,s))!=Js.Word)return s}return-1}function VN(r={}){return[qa,ka.of(r),xN,UN,NE]}const FO=[{key:"Ctrl-Space",run:mN},{key:"Escape",run:gN},{key:"ArrowDown",run:hm(!0)},{key:"ArrowUp",run:hm(!1)},{key:"PageDown",run:hm(!0,"page")},{key:"PageUp",run:hm(!1,"page")},{key:"Enter",run:BE}],UN=Jh.highest(Cd.computeN([ka],r=>r.facet(ka).defaultKeymap?[FO]:[]));class qN{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class Bh{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let i=e,s=n.facet(VE).markerFilter;s&&(i=s(i));let a=_i.set(i.map(l=>l.from==l.to||l.from==l.to-1&&n.doc.lineAt(l.from).to==l.from?_i.widget({widget:new e8(l),diagnostic:l}).range(l.from):_i.mark({attributes:{class:"cm-lintRange cm-lintRange-"+l.severity+(l.markClass?" "+l.markClass:"")},diagnostic:l}).range(l.from,l.to)),!0);return new Bh(a,t,Jp(a))}}function Jp(r,e=null,t=0){let n=null;return r.between(t,1e9,(i,s,{spec:a})=>{if(!(e&&a.diagnostic!=e))return n=new qN(i,s,a.diagnostic),!1}),n}function zN(r,e){let t=r.startState.doc.lineAt(e.pos);return!!(r.effects.some(n=>n.is(LE))||r.changes.touchesRange(t.from,t.to))}function WN(r,e){return r.field(Wa,!1)?e:e.concat(Qi.appendConfig.of(n8))}const LE=Qi.define(),_O=Qi.define(),XE=Qi.define(),Wa=Po.define({create(){return new Bh(_i.none,null,null)},update(r,e){if(e.docChanged){let t=r.diagnostics.map(e.changes),n=null;if(r.selected){let i=e.changes.mapPos(r.selected.from,1);n=Jp(t,r.selected.diagnostic,i)||Jp(t,null,i)}r=new Bh(t,r.panel,n)}for(let t of e.effects)t.is(LE)?r=Bh.init(t.value,r.panel,e.state):t.is(_O)?r=new Bh(r.diagnostics,t.value?e0.open:null,r.selected):t.is(XE)&&(r=new Bh(r.diagnostics,r.panel,t.value));return r},provide:r=>[id.from(r,e=>e.panel),Qn.decorations.from(r,e=>e.diagnostics)]}),ZN=_i.mark({class:"cm-lintRange cm-lintRange-active"});function YN(r,e,t){let{diagnostics:n}=r.state.field(Wa),i=[],s=2e8,a=0;n.between(e-(t<0?1:0),e+(t>0?1:0),(p,m,{spec:g})=>{e>=p&&e<=m&&(p==m||(e>p||t>0)&&(e<m||t<0))&&(i.push(g.diagnostic),s=Math.min(p,s),a=Math.max(m,a))});let l=r.state.facet(VE).tooltipFilter;return l&&(i=l(i)),i.length?{pos:s,end:a,above:r.state.doc.lineAt(s).to<a,create(){return{dom:GN(r,i)}}}:null}function GN(r,e){return js("ul",{class:"cm-tooltip-lint"},e.map(t=>qE(r,t,!1)))}const HN=r=>{let e=r.state.field(Wa,!1);(!e||!e.panel)&&r.dispatch({effects:WN(r.state,[_O.of(!0)])});let t=nd(r,e0.open);return t&&t.dom.querySelector(".cm-panel-lint ul").focus(),!0},vb=r=>{let e=r.state.field(Wa,!1);return!e||!e.panel?!1:(r.dispatch({effects:_O.of(!1)}),!0)},JN=r=>{let e=r.state.field(Wa,!1);if(!e)return!1;let t=r.state.selection.main,n=e.diagnostics.iter(t.to+1);return!n.value&&(n=e.diagnostics.iter(0),!n.value||n.from==t.from&&n.to==t.to)?!1:(r.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),!0)},KN=[{key:"Mod-Shift-m",run:HN,preventDefault:!0},{key:"F8",run:JN}],VE=qn.define({combine(r){return Object.assign({sources:r.map(e=>e.source)},Sl(r.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))}});function UE(r){let e=[];if(r)e:for(let{name:t}of r){for(let n=0;n<t.length;n++){let i=t[n];if(/[a-zA-Z]/.test(i)&&!e.some(s=>s.toLowerCase()==i.toLowerCase())){e.push(i);continue e}}e.push("")}return e}function qE(r,e,t){var n;let i=t?UE(e.actions):[];return js("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},js("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),(n=e.actions)===null||n===void 0?void 0:n.map((s,a)=>{let l=!1,p=S=>{if(S.preventDefault(),l)return;l=!0;let $=Jp(r.state.field(Wa).diagnostics,e);$&&s.apply(r,$.from,$.to)},{name:m}=s,g=i[a]?m.indexOf(i[a]):-1,b=g<0?m:[m.slice(0,g),js("u",m.slice(g,g+1)),m.slice(g+1)];return js("button",{type:"button",class:"cm-diagnosticAction",onclick:p,onmousedown:p,"aria-label":` Action: ${m}${g<0?"":` (access key "${i[a]})"`}.`},b)}),e.source&&js("div",{class:"cm-diagnosticSource"},e.source))}class e8 extends oh{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return js("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class Cb{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=qE(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class e0{constructor(e){this.view=e,this.items=[];let t=i=>{if(i.keyCode==27)vb(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:s}=this.items[this.selectedIndex],a=UE(s.actions);for(let l=0;l<a.length;l++)if(a[l].toUpperCase().charCodeAt(0)==i.keyCode){let p=Jp(this.view.state.field(Wa).diagnostics,s);p&&s.actions[l].apply(e,p.from,p.to)}}else return;i.preventDefault()},n=i=>{for(let s=0;s<this.items.length;s++)this.items[s].dom.contains(i.target)&&this.moveSelection(s)};this.list=js("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:n}),this.dom=js("div",{class:"cm-panel-lint"},this.list,js("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>vb(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Wa).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Wa),n=0,i=!1,s=null;for(e.between(0,this.view.state.doc.length,(a,l,{spec:p})=>{let m=-1,g;for(let b=n;b<this.items.length;b++)if(this.items[b].diagnostic==p.diagnostic){m=b;break}m<0?(g=new Cb(this.view,p.diagnostic),this.items.splice(n,0,g),i=!0):(g=this.items[m],m>n&&(this.items.splice(n,m-n),i=!0)),t&&g.diagnostic==t.diagnostic?g.dom.hasAttribute("aria-selected")||(g.dom.setAttribute("aria-selected","true"),s=g):g.dom.hasAttribute("aria-selected")&&g.dom.removeAttribute("aria-selected"),n++});n<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)i=!0,this.items.pop();this.items.length==0&&(this.items.push(new Cb(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),i=!0),s?(this.list.setAttribute("aria-activedescendant",s.id),this.view.requestMeasure({key:this,read:()=>({sel:s.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:l})=>{a.top<l.top?this.list.scrollTop-=l.top-a.top:a.bottom>l.bottom&&(this.list.scrollTop+=a.bottom-l.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function t(){let n=e;e=n.nextSibling,n.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(Wa),n=Jp(t.diagnostics,this.items[e].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0,effects:XE.of(n)})}static open(e){return new e0(e)}}function t8(r,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(r)}</svg>')`}function pm(r){return t8(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${r}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const r8=Qn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:pm("#d11")},".cm-lintRange-warning":{backgroundImage:pm("orange")},".cm-lintRange-info":{backgroundImage:pm("#999")},".cm-lintRange-hint":{backgroundImage:pm("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),n8=[Wa,Qn.decorations.compute([Wa],r=>{let{selected:e,panel:t}=r.field(Wa);return!e||!t||e.from==e.to?_i.none:_i.set([ZN.range(e.from,e.to)])}),v3(YN,{hideOn:zN}),r8],i8=[F3(),B3(),e3(),w$(),K_(),VF(),ZF(),gs.allowMultipleSelections.of(!0),L_(),N2(n$,{fallback:!0}),c$(),_N(),VN(),p3(),m3(),o3(),FB(),Cd.of([...IN,...wB,...GB,...N$,...G_,...FO,...KN])];var Sb={};class fg{constructor(e,t,n,i,s,a,l,p,m,g=0,b){this.p=e,this.stack=t,this.state=n,this.reducePos=i,this.pos=s,this.score=a,this.buffer=l,this.bufferBase=p,this.curContext=m,this.lookAhead=g,this.parent=b}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let i=e.parser.context;return new fg(e,[],t,n,n,0,[],0,i?new Eb(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,i=e&65535,{parser:s}=this.p,a=s.dynamicPrecedence(i);if(a&&(this.score+=a),n==0){this.pushState(s.getGoto(this.state,i,!0),this.reducePos),i<s.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,4,!0),this.reduceContext(i,this.reducePos);return}let l=this.stack.length-(n-1)*3-(e&262144?6:0),p=l?this.stack[l-2]:this.p.ranges[0].from,m=this.reducePos-p;m>=2e3&&!(!((t=this.p.parser.nodeSet.types[i])===null||t===void 0)&&t.isAnonymous)&&(p==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=m):this.p.lastBigReductionSize<m&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=p,this.p.lastBigReductionSize=m));let g=l?this.stack[l-1]:0,b=this.bufferBase+this.buffer.length-g;if(i<s.minRepeatTerm||e&131072){let S=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,p,S,b+4,!0)}if(e&262144)this.state=this.stack[l];else{let S=this.stack[l-3];this.state=s.getGoto(S,i,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(i,p)}storeNode(e,t,n,i=4,s=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let a=this,l=this.buffer.length;if(l==0&&a.parent&&(l=a.bufferBase-a.parent.bufferBase,a=a.parent),l>0&&a.buffer[l-4]==0&&a.buffer[l-1]>-1){if(t==n)return;if(a.buffer[l-2]>=t){a.buffer[l-2]=n;return}}}if(!s||this.pos==n)this.buffer.push(e,t,n,i);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>n;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,i>4&&(i-=4);this.buffer[a]=e,this.buffer[a+1]=t,this.buffer[a+2]=n,this.buffer[a+3]=i}}shift(e,t,n){let i=this.pos;if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=n,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,n,4);else{let s=e,{parser:a}=this.p;(n>this.pos||t<=a.maxNode)&&(this.pos=n,a.stateFlag(s,1)||(this.reducePos=n)),this.pushState(s,i),this.shiftContext(t,i),t<=a.maxNode&&this.buffer.push(t,i,n,4)}}apply(e,t,n){e&65536?this.reduce(e):this.shift(e,t,n)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new fg(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new s8(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(n==0)return!1;if(!(n&65536))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let i=[];for(let s=0,a;s<t.length;s+=2)(a=t[s+1])!=this.state&&this.p.parser.hasAction(a,e)&&i.push(t[s],a);if(this.stack.length<120)for(let s=0;i.length<8&&s<t.length;s+=2){let a=t[s+1];i.some((l,p)=>p&1&&l==a)||i.push(t[s],a)}t=i}let n=[];for(let i=0;i<t.length&&n.length<4;i+=2){let s=t[i+1];if(s==this.state)continue;let a=this.split();a.pushState(s,this.pos),a.storeNode(0,a.pos,a.pos,4,!0),a.shiftContext(t[i],this.pos),a.score-=200,n.push(a)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(t&65536))return!1;if(!e.validAction(this.state,t)){let n=t>>19,i=t&65535,s=this.stack.length-n*3;if(s<0||e.getGoto(this.stack[s],i,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;t=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(i,s)=>{if(!t.includes(i))return t.push(i),e.allActions(i,a=>{if(!(a&393216))if(a&65536){let l=(a>>19)-s;if(l>1){let p=a&65535,m=this.stack.length-l*3;if(m>=0&&e.getGoto(this.stack[m],p,!1)>=0)return l<<19|65536|p}}else{let l=n(a,s+1);if(l!=null)return l}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new Eb(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Eb{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}var wb;(function(r){r[r.Insert=200]="Insert",r[r.Delete=190]="Delete",r[r.Reduce=100]="Reduce",r[r.MaxNext=4]="MaxNext",r[r.MaxInsertStackDepth=300]="MaxInsertStackDepth",r[r.DampenInsertStackDepth=120]="DampenInsertStackDepth",r[r.MinBigReduction=2e3]="MinBigReduction"})(wb||(wb={}));class s8{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=i}}class dg{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new dg(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new dg(this.stack,this.pos,this.index)}}function kf(r,e=Uint16Array){if(typeof r!="string")return r;let t=null;for(let n=0,i=0;n<r.length;){let s=0;for(;;){let a=r.charCodeAt(n++),l=!1;if(a==126){s=65535;break}a>=92&&a--,a>=34&&a--;let p=a-32;if(p>=46&&(p-=46,l=!0),s+=p,l)break;s*=46}t?t[i++]=s:t=new e(s)}return t}class km{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Ab=new km;class o8{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Ab,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,i=this.rangeIndex,s=this.pos+e;for(;s<n.from;){if(!i)return null;let a=this.ranges[--i];s-=n.from-a.to,n=a}for(;t<0?s>n.to:s>=n.to;){if(i==this.ranges.length-1)return null;let a=this.ranges[++i];s+=a.from-n.to,n=a}return s}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,i;if(t>=0&&t<this.chunk.length)n=this.pos+e,i=this.chunk.charCodeAt(t);else{let s=this.resolveOffset(e,1);if(s==null)return-1;if(n=s,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let a=this.rangeIndex,l=this.range;for(;l.to<=n;)l=this.ranges[++a];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>l.to&&(this.chunk2=this.chunk2.slice(0,l.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Ab,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return n}}class Xp{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;zE(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}Xp.prototype.contextual=Xp.prototype.fallback=Xp.prototype.extend=!1;class mg{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data=typeof e=="string"?kf(e):e}token(e,t){let n=e.pos,i=0;for(;;){let s=e.next<0,a=e.resolveOffset(1,1);if(zE(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(s||i++,a==null)break;e.reset(a,e.token)}i&&(e.reset(n,e.token),e.acceptToken(this.elseToken,i))}}mg.prototype.contextual=Xp.prototype.fallback=Xp.prototype.extend=!1;class iu{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function zE(r,e,t,n,i,s){let a=0,l=1<<n,{dialect:p}=t.p.parser;e:for(;l&r[a];){let m=r[a+1];for(let $=a+3;$<m;$+=2)if((r[$+1]&l)>0){let G=r[$];if(p.allows(G)&&(e.token.value==-1||e.token.value==G||a8(G,e.token.value,i,s))){e.acceptToken(G);break}}let g=e.next,b=0,S=r[a+2];if(e.next<0&&S>b&&r[m+S*3-3]==65535&&r[m+S*3-3]==65535){a=r[m+S*3-1];continue e}for(;b<S;){let $=b+S>>1,G=m+$+($<<1),be=r[G],ke=r[G+1]||65536;if(g<be)S=$;else if(g>=ke)b=$+1;else{a=r[G+2],e.advance();continue e}}break}}function Tb(r,e,t){for(let n=e,i;(i=r[n])!=65535;n++)if(i==t)return n-e;return-1}function a8(r,e,t,n){let i=Tb(t,n,e);return i<0||Tb(t,n,r)<i}const Ou=typeof process<"u"&&Sb&&/\bparse\b/.test(Sb.LOG);let Z0=null;var Pb;(function(r){r[r.Margin=25]="Margin"})(Pb||(Pb={}));function kb(r,e,t){let n=r.cursor(Ls.IncludeAnonymous);for(n.moveTo(e);;)if(!(t<0?n.childBefore(e):n.childAfter(e)))for(;;){if((t<0?n.to<e:n.from>e)&&!n.type.isError)return t<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(r.length,Math.max(n.from+1,e+25));if(t<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return t<0?0:r.length}}class u8{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?kb(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?kb(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],i=this.index[t];if(i==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=n.children[i],a=this.start[t]+n.positions[i];if(a>e)return this.nextStart=a,null;if(s instanceof io){if(a==e){if(a<this.safeFrom)return null;let l=a+s.length;if(l<=this.safeTo){let p=s.prop(Gi.lookAhead);if(!p||l+p<this.fragment.to)return s}}this.index[t]++,a+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+s.length}}}class l8{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new km)}getActions(e){let t=0,n=null,{parser:i}=e.p,{tokenizers:s}=i,a=i.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,p=0;for(let m=0;m<s.length;m++){if(!(1<<m&a))continue;let g=s[m],b=this.tokens[m];if(!(n&&!g.fallback)&&((g.contextual||b.start!=e.pos||b.mask!=a||b.context!=l)&&(this.updateCachedToken(b,g,e),b.mask=a,b.context=l),b.lookAhead>b.end+25&&(p=Math.max(b.lookAhead,p)),b.value!=0)){let S=t;if(b.extended>-1&&(t=this.addActions(e,b.extended,b.end,t)),t=this.addActions(e,b.value,b.end,t),!g.extend&&(n=b,t>S))break}}for(;this.actions.length>t;)this.actions.pop();return p&&e.setLookAhead(p),!n&&e.pos==this.stream.end&&(n=new km,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new km,{pos:n,p:i}=e;return t.start=n,t.end=Math.min(n+1,i.stream.end),t.value=n==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,n){let i=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(i,e),n),e.value>-1){let{parser:s}=n.p;for(let a=0;a<s.specialized.length;a++)if(s.specialized[a]==e.value){let l=s.specializers[a](this.stream.read(e.start,e.end),n);if(l>=0&&n.p.parser.dialect.allows(l>>1)){l&1?e.extended=l>>1:e.value=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,t,n,i){for(let s=0;s<i;s+=3)if(this.actions[s]==e)return i;return this.actions[i++]=e,this.actions[i++]=t,this.actions[i++]=n,i}addActions(e,t,n,i){let{state:s}=e,{parser:a}=e.p,{data:l}=a;for(let p=0;p<2;p++)for(let m=a.stateSlot(s,p?2:1);;m+=3){if(l[m]==65535)if(l[m+1]==1)m=Jl(l,m+2);else{i==0&&l[m+1]==2&&(i=this.putAction(Jl(l,m+2),t,n,i));break}l[m]==t&&(i=this.putAction(Jl(l,m+1),t,n,i))}return i}}var Fb;(function(r){r[r.Distance=5]="Distance",r[r.MaxRemainingPerStep=3]="MaxRemainingPerStep",r[r.MinBufferLengthPrune=500]="MinBufferLengthPrune",r[r.ForceReduceLimit=10]="ForceReduceLimit",r[r.CutDepth=15e3]="CutDepth",r[r.CutTo=9e3]="CutTo",r[r.MaxLeftAssociativeReductionCount=300]="MaxLeftAssociativeReductionCount",r[r.MaxStackCount=12]="MaxStackCount"})(Fb||(Fb={}));class c8{constructor(e,t,n,i){this.parser=e,this.input=t,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new o8(t,i),this.tokens=new l8(e,this.stream),this.topTerm=e.top[1];let{from:s}=i[0];this.stacks=[fg.start(this,e.top[0],s)],this.fragments=n.length&&this.stream.end-s>e.bufferLength*4?new u8(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],i,s;if(this.bigReductionCount>300&&e.length==1){let[a]=e;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;a<e.length;a++){let l=e[a];for(;;){if(this.tokens.mainToken=null,l.pos>t)n.push(l);else{if(this.advanceStack(l,n,e))continue;{i||(i=[],s=[]),i.push(l);let p=this.tokens.getMainToken(l);s.push(p.value,p.end)}}break}}if(!n.length){let a=i&&p8(i);if(a)return this.stackToTree(a);if(this.parser.strict)throw Ou&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&i){let a=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,s,n);if(a)return this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(n.length>a)for(n.sort((l,p)=>p.score-l.score);n.length>a;)n.pop();n.some(l=>l.reducePos>t)&&this.recovering--}else if(n.length>1){e:for(let a=0;a<n.length-1;a++){let l=n[a];for(let p=a+1;p<n.length;p++){let m=n[p];if(l.sameState(m)||l.buffer.length>500&&m.buffer.length>500)if((l.score-m.score||l.buffer.length-m.buffer.length)>0)n.splice(p--,1);else{n.splice(a--,1);continue e}}}n.length>12&&n.splice(12,n.length-12)}this.minStackPos=n[0].pos;for(let a=1;a<n.length;a++)n[a].pos<this.minStackPos&&(this.minStackPos=n[a].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let i=e.pos,{parser:s}=this,a=Ou?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let m=e.curContext&&e.curContext.tracker.strict,g=m?e.curContext.hash:0;for(let b=this.fragments.nodeAt(i);b;){let S=this.parser.nodeSet.types[b.type.id]==b.type?s.getGoto(e.state,b.type.id):-1;if(S>-1&&b.length&&(!m||(b.prop(Gi.contextHash)||0)==g))return e.useNode(b,S),Ou&&console.log(a+this.stackID(e)+` (via reuse of ${s.getName(b.type.id)})`),!0;if(!(b instanceof io)||b.children.length==0||b.positions[0]>0)break;let $=b.children[0];if($ instanceof io&&b.positions[0]==0)b=$;else break}}let l=s.stateSlot(e.state,4);if(l>0)return e.reduce(l),Ou&&console.log(a+this.stackID(e)+` (via always-reduce ${s.getName(l&65535)})`),!0;if(e.stack.length>=15e3)for(;e.stack.length>9e3&&e.forceReduce(););let p=this.tokens.getActions(e);for(let m=0;m<p.length;){let g=p[m++],b=p[m++],S=p[m++],$=m==p.length||!n,G=$?e:e.split();if(G.apply(g,b,S),Ou&&console.log(a+this.stackID(G)+` (via ${g&65536?`reduce of ${s.getName(g&65535)}`:"shift"} for ${s.getName(b)} @ ${i}${G==e?"":", split"})`),$)return!0;G.pos>i?t.push(G):n.push(G)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return _b(e,t),!0}}runRecovery(e,t,n){let i=null,s=!1;for(let a=0;a<e.length;a++){let l=e[a],p=t[a<<1],m=t[(a<<1)+1],g=Ou?this.stackID(l)+" -> ":"";if(l.deadEnd&&(s||(s=!0,l.restart(),Ou&&console.log(g+this.stackID(l)+" (restarted)"),this.advanceFully(l,n))))continue;let b=l.split(),S=g;for(let $=0;b.forceReduce()&&$<10&&(Ou&&console.log(S+this.stackID(b)+" (via force-reduce)"),!this.advanceFully(b,n));$++)Ou&&(S=this.stackID(b)+" -> ");for(let $ of l.recoverByInsert(p))Ou&&console.log(g+this.stackID($)+" (via recover-insert)"),this.advanceFully($,n);this.stream.end>l.pos?(m==l.pos&&(m++,p=0),l.recoverByDelete(p,m),Ou&&console.log(g+this.stackID(l)+` (via recover-delete ${this.parser.getName(p)})`),_b(l,n)):(!i||i.score<l.score)&&(i=l)}return i}stackToTree(e){return e.close(),io.build({buffer:dg.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(Z0||(Z0=new WeakMap)).get(e);return t||Z0.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function _b(r,e){for(let t=0;t<e.length;t++){let n=e[t];if(n.pos==r.pos&&n.sameState(r)){e[t].score<r.score&&(e[t]=r);return}}e.push(r)}class h8{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}}const Y0=r=>r;class $O{constructor(e){this.start=e.start,this.shift=e.shift||Y0,this.reduce=e.reduce||Y0,this.reuse=e.reuse||Y0,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Yh extends x2{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;l<e.repeatNodeCount;l++)t.push("");let n=Object.keys(e.topRules).map(l=>e.topRules[l][1]),i=[];for(let l=0;l<t.length;l++)i.push([]);function s(l,p,m){i[l].push([p,p.deserialize(String(m))])}if(e.nodeProps)for(let l of e.nodeProps){let p=l[0];typeof p=="string"&&(p=Gi[p]);for(let m=1;m<l.length;){let g=l[m++];if(g>=0)s(g,p,l[m++]);else{let b=l[m+-g];for(let S=-g;S>0;S--)s(l[m++],p,b);m++}}}this.nodeSet=new cO(t.map((l,p)=>ga.define({name:p>=this.minRepeatTerm?void 0:l,id:p,props:i[p],top:n.indexOf(p)>-1,error:p==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(p)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=g2;let a=kf(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;l<this.specializerSpecs.length;l++)this.specialized[l]=this.specializerSpecs[l].term;this.specializers=this.specializerSpecs.map($b),this.states=kf(e.states,Uint32Array),this.data=kf(e.stateData),this.goto=kf(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(l=>typeof l=="number"?new Xp(a,l):l),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let i=new c8(this,e,t,n);for(let s of this.wrappers)i=s(i,e,t,n);return i}getGoto(e,t,n=!1){let i=this.goto;if(t>=i[0])return-1;for(let s=i[t+1];;){let a=i[s++],l=a&1,p=i[s++];if(l&&n)return p;for(let m=s+(a>>1);s<m;s++)if(i[s]==e)return p;if(l)return-1}}hasAction(e,t){let n=this.data;for(let i=0;i<2;i++)for(let s=this.stateSlot(e,i?2:1),a;;s+=3){if((a=n[s])==65535)if(n[s+1]==1)a=n[s=Jl(n,s+2)];else{if(n[s+1]==2)return Jl(n,s+2);break}if(a==t||a==0)return Jl(n,s+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,n=>n==t?!0:null)}allActions(e,t){let n=this.stateSlot(e,4),i=n?t(n):void 0;for(let s=this.stateSlot(e,1);i==null;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=Jl(this.data,s+2);else break;i=t(Jl(this.data,s+1))}return i}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=Jl(this.data,n+2);else break;if(!(this.data[n+2]&1)){let i=this.data[n+1];t.some((s,a)=>a&1&&s==i)||t.push(this.data[n],i)}}return t}configure(e){let t=Object.assign(Object.create(Yh.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(n=>{let i=e.tokenizers.find(s=>s.from==n);return i?i.to:n})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,i)=>{let s=e.specializers.find(l=>l.from==n.external);if(!s)return n;let a=Object.assign(Object.assign({},n),{external:s.to});return t.specializers[i]=$b(a),a})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let s of e.split(" ")){let a=t.indexOf(s);a>=0&&(n[a]=!0)}let i=null;for(let s=0;s<t.length;s++)if(!n[s])for(let a=this.dialects[t[s]],l;(l=this.data[a++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[l]=1;return new h8(e,n,i)}static deserialize(e){return new Yh(e)}}function Jl(r,e){return r[e]|r[e+1]<<16}function p8(r){let e=null;for(let t of r){let n=t.p.stoppedAt;(t.pos==t.p.stream.end||n!=null&&t.pos>n)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.score<t.score)&&(e=t)}return e}function $b(r){if(r.external){let e=r.extend?1:0;return(t,n)=>r.external(t,n)<<1|e}return r.get}const f8=303,Bb=1,d8=2,m8=304,g8=306,y8=307,D8=3,O8=4,x8=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],WE=125,b8=59,Nb=47,v8=42,C8=43,S8=45,E8=new $O({start:!1,shift(r,e){return e==D8||e==O8||e==g8?r:e==y8},strict:!1}),w8=new iu((r,e)=>{let{next:t}=r;(t==WE||t==-1||e.context)&&r.acceptToken(m8)},{contextual:!0,fallback:!0}),A8=new iu((r,e)=>{let{next:t}=r,n;x8.indexOf(t)>-1||t==Nb&&((n=r.peek(1))==Nb||n==v8)||t!=WE&&t!=b8&&t!=-1&&!e.context&&r.acceptToken(f8)},{contextual:!0}),T8=new iu((r,e)=>{let{next:t}=r;if((t==C8||t==S8)&&(r.advance(),t==r.next)){r.advance();let n=!e.context&&e.canShift(Bb);r.acceptToken(n?Bb:d8)}},{contextual:!0}),P8=wd({"get set async static":He.modifier,"for while do if else switch try catch finally return throw break continue default case":He.controlKeyword,"in of await yield void typeof delete instanceof":He.operatorKeyword,"let var const function class extends":He.definitionKeyword,"import export from":He.moduleKeyword,"with debugger as new":He.keyword,TemplateString:He.special(He.string),super:He.atom,BooleanLiteral:He.bool,this:He.self,null:He.null,Star:He.modifier,VariableName:He.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":He.function(He.variableName),VariableDefinition:He.definition(He.variableName),Label:He.labelName,PropertyName:He.propertyName,PrivatePropertyName:He.special(He.propertyName),"CallExpression/MemberExpression/PropertyName":He.function(He.propertyName),"FunctionDeclaration/VariableDefinition":He.function(He.definition(He.variableName)),"ClassDeclaration/VariableDefinition":He.definition(He.className),PropertyDefinition:He.definition(He.propertyName),PrivatePropertyDefinition:He.definition(He.special(He.propertyName)),UpdateOp:He.updateOperator,LineComment:He.lineComment,BlockComment:He.blockComment,Number:He.number,String:He.string,Escape:He.escape,ArithOp:He.arithmeticOperator,LogicOp:He.logicOperator,BitOp:He.bitwiseOperator,CompareOp:He.compareOperator,RegExp:He.regexp,Equals:He.definitionOperator,Arrow:He.function(He.punctuation),": Spread":He.punctuation,"( )":He.paren,"[ ]":He.squareBracket,"{ }":He.brace,"InterpolationStart InterpolationEnd":He.special(He.brace),".":He.derefOperator,", ;":He.separator,"@":He.meta,TypeName:He.typeName,TypeDefinition:He.definition(He.typeName),"type enum interface implements namespace module declare":He.definitionKeyword,"abstract global Privacy readonly override":He.modifier,"is keyof unique infer":He.operatorKeyword,JSXAttributeValue:He.attributeValue,JSXText:He.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":He.angleBracket,"JSXIdentifier JSXNameSpacedName":He.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":He.attributeName,"JSXBuiltin/JSXIdentifier":He.standard(He.tagName)}),k8={__proto__:null,export:14,as:19,from:27,default:30,async:35,function:36,extends:46,this:50,true:58,false:58,null:70,void:74,typeof:78,super:96,new:130,delete:146,yield:155,await:159,class:164,public:221,private:221,protected:221,readonly:223,instanceof:242,satisfies:245,in:246,const:248,import:280,keyof:335,unique:339,infer:345,is:381,abstract:401,implements:403,type:405,let:408,var:410,using:413,interface:419,enum:423,namespace:429,module:431,declare:435,global:439,for:458,of:467,while:470,with:474,do:478,if:482,else:484,switch:488,case:494,try:500,catch:504,finally:508,return:512,throw:516,break:520,continue:524,debugger:528},F8={__proto__:null,async:117,get:119,set:121,declare:181,public:183,private:183,protected:183,static:185,abstract:187,override:189,readonly:195,accessor:197,new:385},_8={__proto__:null,"<":137},$8=Yh.deserialize({version:14,states:"$6tO`QUOOO%TQUOOO'WQWOOP(eOSOOO*sQ(CjO'#CfO*zOpO'#CgO+YO!bO'#CgO+hO07`O'#DZO-yQUO'#DaO.ZQUO'#DlO%TQUO'#DvO0_QUO'#EOOOQ(CY'#EW'#EWO0xQSO'#ETOOQO'#Ei'#EiOOQO'#Ic'#IcO1QQSO'#GkO1]QSO'#EhO1bQSO'#EhO3dQ(CjO'#JdO6TQ(CjO'#JeO6qQSO'#FWO6vQ#tO'#FoOOQ(CY'#F`'#F`O7RO&jO'#F`O7aQ,UO'#FvO8wQSO'#FuOOQ(CY'#Je'#JeOOQ(CW'#Jd'#JdO8|QSO'#GoOOQQ'#KP'#KPO9XQSO'#IPO9^Q(C[O'#IQOOQQ'#JQ'#JQOOQQ'#IU'#IUQ`QUOOO%TQUO'#DnO9fQUO'#DzO9mQUO'#D|O9SQSO'#GkO9tQ,UO'#ClO:SQSO'#EgO:_QSO'#ErO:dQ,UO'#F_O;RQSO'#GkOOQO'#KQ'#KQO;WQSO'#KQO;fQSO'#GsO;fQSO'#GtO;fQSO'#GvO9SQSO'#GyO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x,uQ2Y-_Q2a-sQ2u.aQ2z9xQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W.hQ3Z:YQ3[:cQ3a:UQ4S0OQ4[0`Q5m:dQ5s2[Q5x2bQ6U2vQ6V:eQ6[:gQ6]:nQ7T4oQ7r5kQ7v5tQ8P:oQ8T:tQ8U:uQ8z7xQ9Y8gQ9a8xQ9r#QR;U;bR#YWR'P!dY!sQ'U-R0y4tS&{!d,yQ'a!qS'k!t!wS'm!x4vS,v&|'TS-b'b'cQ-d'dQ2P-PR2_-cR(o#vR(r#wQ!eQT-Q'U-R]!pQ!q'U-R0y4tQ#n]R'_9qT#iZ%]S#hZ%]S%cm,]U([#f#g#jS-v(](^Q-z(_Q0Q*|Q2d-wU2e-x-y-{S5z2f2gR7y5{`#[W#U#X%`'x(R*y-qr#eZm#f#g#j%](](^(_*|-w-x-y-{2f2g5{Q1`,]Q1v,sQ5i1nQ7q5jT:|&}*zT#_W%`S#^W%`S'y#U(RS(O#X*yS,x&}*zT-l'x-qT'S!d%aQ$jfR)n$oT)c$j)dR3_.oT*S$w*UR*[$zQ0U+UQ2i.SQ4w0{Q6P2mQ7]4zQ7|6OQ8i7[Q8{7{Q9[8kQ9d8}Q9i9]R9l9elqOXs!Y#b%e&h&j&k&m,a,f1f1iQ&b!UR,U&_rmOXs!T!U!Y#b%e&_&h&j&k&m,a,f1f1iR,]&eT%dm,]R0u+uR,T&]Q%{{R+m%|R+c%vT&f!V&iT&g!V&iT1h,f1i",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:366,context:E8,nodeProps:[["group",-26,6,14,16,62,199,203,207,208,210,213,216,226,228,234,236,238,240,243,249,255,257,259,261,263,265,266,"Statement",-32,10,11,25,28,29,35,45,48,49,51,56,64,72,76,78,80,81,103,104,113,114,131,134,136,137,138,139,141,142,162,163,165,"Expression",-23,24,26,30,34,36,38,166,168,170,171,173,174,175,177,178,179,181,182,183,193,195,197,198,"Type",-3,84,96,102,"ClassItem"],["openedBy",31,"InterpolationStart",50,"[",54,"{",69,"(",143,"JSXStartTag",155,"JSXStartTag JSXStartCloseTag"],["closedBy",33,"InterpolationEnd",44,"]",55,"}",70,")",144,"JSXSelfCloseEndTag JSXEndTag",160,"JSXEndTag"]],propSources:[P8],skippedNodes:[0,3,4,269],repeatNodeCount:33,tokenData:"$>y(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tu>PuvBavwDxwxGgxyMvyz! Qz{!![{|!%O|}!&]}!O!%O!O!P!'g!P!Q!1w!Q!R#0t!R![#3T![!]#@T!]!^#Aa!^!_#Bk!_!`#GS!`!a#In!a!b#N{!b!c$$z!c!}>P!}#O$&U#O#P$'`#P#Q$,w#Q#R$.R#R#S>P#S#T$/`#T#o$0j#o#p$4z#p#q$5p#q#r$7Q#r#s$8^#s$f%Z$f$g+g$g#BY>P#BY#BZ$9h#BZ$IS>P$IS$I_$9h$I_$I|>P$I|$I}$<s$I}$JO$<s$JO$JT>P$JT$JU$9h$JU$KV>P$KV$KW$9h$KW&FU>P&FU&FV$9h&FV;'S>P;'S;=`BZ<%l?HT>P?HT?HU$9h?HUO>P(n%d_$d&j'xp'{!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$d&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U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*g!_!c%Z!c!}>P!}#O%Z#O#P&c#P#R%Z#R#S>P#S#T%Z#T#o>P#o#p*g#p$g%Z$g;'S>P;'S;=`BZ<%lO>P",tokenizers:[A8,T8,2,3,4,5,6,7,8,9,10,11,12,13,w8,new mg("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOq~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!O~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(U~~",141,327),new mg("j~RQYZXz{^~^O'r~~aP!P!Qd~iO's~~",25,309)],topRules:{Script:[0,5],SingleExpression:[1,267],SingleClassItem:[2,268]},dialects:{jsx:12794,ts:12796},dynamicPrecedences:{76:1,78:1,163:1,191:1},specialized:[{term:313,get:r=>k8[r]||-1},{term:329,get:r=>F8[r]||-1},{term:67,get:r=>_8[r]||-1}],tokenPrec:12820}),ZE=[Aa("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Aa("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Aa("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Aa("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Aa("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Aa(`try {
|
|
12
12
|
\${}
|
|
13
13
|
} catch (\${error}) {
|
|
@@ -273,14 +273,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
273
273
|
`),cooked:f===null?null:f.slice(1,O)},y.tail=D,this.next();let v=this.finishNode(y,"TemplateElement");return this.resetEndLocation(v,Ei(this.state.lastTokEndLoc,O)),v}parseTemplate(c){let o=this.startNode();o.expressions=[];let u=this.parseTemplateElement(c);for(o.quasis=[u];!u.tail;)o.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),o.quasis.push(u=this.parseTemplateElement(c));return this.finishNode(o,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(c,o,u,h){u&&this.expectPlugin("recordAndTuple");let f=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let d=Object.create(null),y=!0,D=this.startNode();for(D.properties=[],this.next();!this.match(c);){if(y)y=!1;else if(this.expect(12),this.match(c)){this.addTrailingCommaExtraToNode(D);break}let x;o?x=this.parseBindingProperty():(x=this.parsePropertyDefinition(h),this.checkProto(x,u,d,h)),u&&!this.isObjectProperty(x)&&x.type!=="SpreadElement"&&this.raise(Qe.InvalidRecordProperty,{at:x}),x.shorthand&&this.addExtra(x,"shorthand",!0),D.properties.push(x)}this.next(),this.state.inFSharpPipelineDirectBody=f;let O="ObjectExpression";return o?O="ObjectPattern":u&&(O="RecordExpression"),this.finishNode(D,O)}addTrailingCommaExtraToNode(c){this.addExtra(c,"trailingComma",this.state.lastTokStart),this.addExtra(c,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(c){return!c.computed&&c.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(c){let o=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Qe.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)o.push(this.parseDecorator());let u=this.startNode(),h=!1,f=!1,d;if(this.match(21))return o.length&&this.unexpected(),this.parseSpread();o.length&&(u.decorators=o,o=[]),u.method=!1,c&&(d=this.state.startLoc);let y=this.eat(55);this.parsePropertyNamePrefixOperator(u);let D=this.state.containsEsc,O=this.parsePropertyName(u,c);if(!y&&!D&&this.maybeAsyncOrAccessorProp(u)){let x=O.name;x==="async"&&!this.hasPrecedingLineBreak()&&(h=!0,this.resetPreviousNodeTrailingComments(O),y=this.eat(55),this.parsePropertyName(u)),(x==="get"||x==="set")&&(f=!0,this.resetPreviousNodeTrailingComments(O),u.kind=x,this.match(55)&&(y=!0,this.raise(Qe.AccessorIsGenerator,{at:this.state.curPosition(),kind:x}),this.next()),this.parsePropertyName(u))}return this.parseObjPropValue(u,d,y,h,!1,f,c)}getGetterSetterExpectedParamCount(c){return c.kind==="get"?0:1}getObjectOrClassMethodParams(c){return c.params}checkGetterSetterParams(c){var o;let u=this.getGetterSetterExpectedParamCount(c),h=this.getObjectOrClassMethodParams(c);h.length!==u&&this.raise(c.kind==="get"?Qe.BadGetterArity:Qe.BadSetterArity,{at:c}),c.kind==="set"&&((o=h[h.length-1])==null?void 0:o.type)==="RestElement"&&this.raise(Qe.BadSetterRestParameter,{at:c})}parseObjectMethod(c,o,u,h,f){if(f){let d=this.parseMethod(c,o,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(d),d}if(u||o||this.match(10))return h&&this.unexpected(),c.kind="method",c.method=!0,this.parseMethod(c,o,u,!1,!1,"ObjectMethod")}parseObjectProperty(c,o,u,h){if(c.shorthand=!1,this.eat(14))return c.value=u?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(h),this.finishNode(c,"ObjectProperty");if(!c.computed&&c.key.type==="Identifier"){if(this.checkReservedWord(c.key.name,c.key.loc.start,!0,!1),u)c.value=this.parseMaybeDefault(o,V(c.key));else if(this.match(29)){let f=this.state.startLoc;h!=null?h.shorthandAssignLoc===null&&(h.shorthandAssignLoc=f):this.raise(Qe.InvalidCoverInitializedName,{at:f}),c.value=this.parseMaybeDefault(o,V(c.key))}else c.value=V(c.key);return c.shorthand=!0,this.finishNode(c,"ObjectProperty")}}parseObjPropValue(c,o,u,h,f,d,y){let D=this.parseObjectMethod(c,u,h,f,d)||this.parseObjectProperty(c,o,f,y);return D||this.unexpected(),D}parsePropertyName(c,o){if(this.eat(0))c.computed=!0,c.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:u,value:h}=this.state,f;if(qe(u))f=this.parseIdentifier(!0);else switch(u){case 132:f=this.parseNumericLiteral(h);break;case 131:f=this.parseStringLiteral(h);break;case 133:f=this.parseBigIntLiteral(h);break;case 134:f=this.parseDecimalLiteral(h);break;case 136:{let d=this.state.startLoc;o!=null?o.privateKeyLoc===null&&(o.privateKeyLoc=d):this.raise(Qe.UnexpectedPrivateField,{at:d}),f=this.parsePrivateName();break}default:this.unexpected()}c.key=f,u!==136&&(c.computed=!1)}return c.key}initFunction(c,o){c.id=null,c.generator=!1,c.async=o}parseMethod(c,o,u,h,f,d){let y=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1;this.initFunction(c,u),c.generator=o,this.scope.enter(va|cu|(y?Ma:0)|(f?Nl:0)),this.prodParam.enter(de(u,c.generator)),this.parseFunctionParams(c,h);let D=this.parseFunctionBodyAndFinish(c,d,!0);return this.prodParam.exit(),this.scope.exit(),D}parseArrayLike(c,o,u,h){u&&this.expectPlugin("recordAndTuple");let f=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let d=this.startNode();return this.next(),d.elements=this.parseExprList(c,!u,h,d),this.state.inFSharpPipelineDirectBody=f,this.finishNode(d,u?"TupleExpression":"ArrayExpression")}parseArrowExpression(c,o,u,h){this.scope.enter(va|Bl);let f=de(u,!1);!this.match(5)&&this.prodParam.hasIn&&(f|=pe),this.prodParam.enter(f),this.initFunction(c,u);let d=this.state.maybeInArrowParameters;return o&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(c,o,h)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(c,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=d,this.finishNode(c,"ArrowFunctionExpression")}setArrowFunctionParameters(c,o,u){this.toAssignableList(o,u,!1),c.params=o}parseFunctionBodyAndFinish(c,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.parseFunctionBody(c,!1,u),this.finishNode(c,o)}parseFunctionBody(c,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,h=o&&!this.match(5);if(this.expressionScope.enter(w()),h)c.body=this.parseMaybeAssign(),this.checkParams(c,!1,o,!1);else{let f=this.state.strict,d=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|oe),c.body=this.parseBlock(!0,!1,y=>{let D=!this.isSimpleParamList(c.params);y&&D&&this.raise(Qe.IllegalLanguageModeDirective,{at:(c.kind==="method"||c.kind==="constructor")&&c.key?c.key.loc.end:c});let O=!f&&this.state.strict;this.checkParams(c,!this.state.strict&&!o&&!u&&!D,o,O),this.state.strict&&c.id&&this.checkIdentifier(c.id,op,O)}),this.prodParam.exit(),this.state.labels=d}this.expressionScope.exit()}isSimpleParameter(c){return c.type==="Identifier"}isSimpleParamList(c){for(let o=0,u=c.length;o<u;o++)if(!this.isSimpleParameter(c[o]))return!1;return!0}checkParams(c,o,u){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,f=!o&&new Set,d={type:"FormalParameters"};for(let y of c.params)this.checkLVal(y,{in:d,binding:Yu,checkClashes:f,strictModeChanged:h})}parseExprList(c,o,u,h){let f=[],d=!0;for(;!this.eat(c);){if(d)d=!1;else if(this.expect(12),this.match(c)){h&&this.addTrailingCommaExtraToNode(h),this.next();break}f.push(this.parseExprListItem(o,u))}return f}parseExprListItem(c,o,u){let h;if(this.match(12))c||this.raise(Qe.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),h=null;else if(this.match(21)){let f=this.state.startLoc;h=this.parseParenItem(this.parseSpread(o),f)}else if(this.match(17)){this.expectPlugin("partialApplication"),u||this.raise(Qe.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});let f=this.startNode();this.next(),h=this.finishNode(f,"ArgumentPlaceholder")}else h=this.parseMaybeAssignAllowIn(o,this.parseParenItem);return h}parseIdentifier(c){let o=this.startNode(),u=this.parseIdentifierName(c);return this.createIdentifier(o,u)}createIdentifier(c,o){return c.name=o,c.loc.identifierName=o,this.finishNode(c,"Identifier")}parseIdentifierName(c){let o,{startLoc:u,type:h}=this.state;qe(h)?o=this.state.value:this.unexpected();let f=Pt(h);return c?f&&this.replaceToken(130):this.checkReservedWord(o,u,f,!1),this.next(),o}checkReservedWord(c,o,u,h){if(!(c.length>10||!ip(c))){if(u&&Xu(c)){this.raise(Qe.UnexpectedKeyword,{at:o,keyword:c});return}if((this.state.strict?h?ss:Ya:ch)(c,this.inModule)){this.raise(Qe.UnexpectedReservedWord,{at:o,reservedWord:c});return}else if(c==="yield"){if(this.prodParam.hasYield){this.raise(Qe.YieldBindingIdentifier,{at:o});return}}else if(c==="await"){if(this.prodParam.hasAwait){this.raise(Qe.AwaitBindingIdentifier,{at:o});return}if(this.scope.inStaticBlock){this.raise(Qe.AwaitBindingIdentifierInStaticBlock,{at:o});return}this.expressionScope.recordAsyncArrowParametersError({at:o})}else if(c==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(Qe.ArgumentsInClass,{at:o});return}}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(c){let o=this.startNodeAt(c);return this.expressionScope.recordParameterInitializerError(Qe.AwaitExpressionFormalParameter,{at:o}),this.eat(55)&&this.raise(Qe.ObsoleteAwaitStar,{at:o}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(o.argument=this.parseMaybeUnary(null,!0)),this.finishNode(o,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:c}=this.state;return c===53||c===10||c===0||ts(c)||c===101&&!this.state.containsEsc||c===135||c===56||this.hasPlugin("v8intrinsic")&&c===54}parseYield(){let c=this.startNode();this.expressionScope.recordParameterInitializerError(Qe.YieldInParameter,{at:c}),this.next();let o=!1,u=null;if(!this.hasPrecedingLineBreak())switch(o=this.eat(55),this.state.type){case 13:case 137:case 8:case 11:case 3:case 9:case 14:case 12:if(!o)break;default:u=this.parseMaybeAssign()}return c.delegate=o,c.argument=u,this.finishNode(c,"YieldExpression")}checkPipelineAtInfixOperator(c,o){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&c.type==="SequenceExpression"&&this.raise(Qe.PipelineHeadSequenceExpression,{at:o})}parseSmartPipelineBodyInStyle(c,o){if(this.isSimpleReference(c)){let u=this.startNodeAt(o);return u.callee=c,this.finishNode(u,"PipelineBareFunction")}else{let u=this.startNodeAt(o);return this.checkSmartPipeTopicBodyEarlyErrors(o),u.expression=c,this.finishNode(u,"PipelineTopicExpression")}}isSimpleReference(c){switch(c.type){case"MemberExpression":return!c.computed&&this.isSimpleReference(c.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(c){if(this.match(19))throw this.raise(Qe.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(Qe.PipelineTopicUnused,{at:c})}withTopicBindingContext(c){let o=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return c()}finally{this.state.topicContext=o}}withSmartMixTopicForbiddingContext(c){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let o=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return c()}finally{this.state.topicContext=o}}else return c()}withSoloAwaitPermittingContext(c){let o=this.state.soloAwait;this.state.soloAwait=!0;try{return c()}finally{this.state.soloAwait=o}}allowInAnd(c){let o=this.prodParam.currentFlags();if(pe&~o){this.prodParam.enter(o|pe);try{return c()}finally{this.prodParam.exit()}}return c()}disallowInAnd(c){let o=this.prodParam.currentFlags();if(pe&o){this.prodParam.enter(o&~pe);try{return c()}finally{this.prodParam.exit()}}return c()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(c){let o=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let u=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let h=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),o,c);return this.state.inFSharpPipelineDirectBody=u,h}parseModuleExpression(){this.expectPlugin("moduleBlocks");let c=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let o=this.startNodeAt(this.state.endLoc);this.next();let u=this.initializeScopes(!0);this.enterInitialScopes();try{c.body=this.parseProgram(o,8,"module")}finally{u()}return this.finishNode(c,"ModuleExpression")}parsePropertyNamePrefixOperator(c){}},Tc={kind:"loop"},bp={kind:"switch"},a0=/[\uD800-\uDFFF]/u,df=/in(?:stanceof)?/y;function u0(c,o){for(let u=0;u<c.length;u++){let h=c[u],{type:f}=h;if(typeof f=="number"){{if(f===136){let{loc:d,start:y,value:D,end:O}=h,x=y+1,v=Ei(d.start,1);c.splice(u,1,new na({type:Er(27),value:"#",start:y,end:x,startLoc:d.start,endLoc:v}),new na({type:Er(130),value:D,start:x,end:O,startLoc:v,endLoc:d.end})),u++;continue}if(ts(f)){let{loc:d,start:y,value:D,end:O}=h,x=y+1,v=Ei(d.start,1),E;o.charCodeAt(y)===96?E=new na({type:Er(22),value:"`",start:y,end:x,startLoc:d.start,endLoc:v}):E=new na({type:Er(8),value:"}",start:y,end:x,startLoc:d.start,endLoc:v});let F,k,I,T;f===24?(k=O-1,I=Ei(d.end,-1),F=D===null?null:D.slice(1,-1),T=new na({type:Er(22),value:"`",start:k,end:O,startLoc:I,endLoc:d.end})):(k=O-2,I=Ei(d.end,-2),F=D===null?null:D.slice(1,-2),T=new na({type:Er(23),value:"${",start:k,end:O,startLoc:I,endLoc:d.end})),c.splice(u,1,E,new na({type:Er(20),value:F,start:x,end:k,startLoc:v,endLoc:I}),T),u+=2;continue}}h.type=Er(f)}}return c}var l0=class extends oo{parseTopLevel(c,o){return c.program=this.parseProgram(o),c.comments=this.state.comments,this.options.tokens&&(c.tokens=u0(this.tokens,this.input)),this.finishNode(c,"File")}parseProgram(c){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:137,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.options.sourceType;if(c.sourceType=u,c.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(c,!0,!0,o),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[f,d]of Array.from(this.scope.undefinedExports))this.raise(Qe.ModuleExportUndefined,{at:d,localName:f});let h;return o===137?h=this.finishNode(c,"Program"):h=this.finishNodeAt(c,"Program",Ei(this.state.startLoc,-1)),h}stmtToDirective(c){let o=c;o.type="Directive",o.value=o.expression,delete o.expression;let u=o.value,h=u.value,f=this.input.slice(u.start,u.end),d=u.value=f.slice(1,-1);return this.addExtra(u,"raw",f),this.addExtra(u,"rawValue",d),this.addExtra(u,"expressionValue",h),u.type="DirectiveLiteral",o}parseInterpreterDirective(){if(!this.match(28))return null;let c=this.startNode();return c.value=this.state.value,this.next(),this.finishNode(c,"InterpreterDirective")}isLet(){return this.isContextual(99)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(c,o){if(jo(c)){if(df.lastIndex=o,df.test(this.input)){let u=this.codePointAtPos(df.lastIndex);if(!ba(u)&&u!==92)return!1}return!0}else return c===92}chStartsBindingPattern(c){return c===91||c===123}hasFollowingBindingAtom(){let c=this.nextTokenStart(),o=this.codePointAtPos(c);return this.chStartsBindingPattern(o)||this.chStartsBindingIdentifier(o,c)}hasFollowingBindingIdentifier(){let c=this.nextTokenStart(),o=this.codePointAtPos(c);return this.chStartsBindingIdentifier(o,c)}startsUsingForOf(){let c=this.lookahead();return c.type===101&&!c.containsEsc?!1:(this.expectPlugin("explicitResourceManagement"),!0)}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=0;return this.options.annexB&&!this.state.strict&&(o|=4,c&&(o|=8)),this.parseStatementLike(o)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(c){let o=null;return this.match(26)&&(o=this.parseDecorators(!0)),this.parseStatementContent(c,o)}parseStatementContent(c,o){let u=this.state.type,h=this.startNode(),f=!!(c&2),d=!!(c&4),y=c&1;switch(u){case 60:return this.parseBreakContinueStatement(h,!0);case 63:return this.parseBreakContinueStatement(h,!1);case 64:return this.parseDebuggerStatement(h);case 90:return this.parseDoWhileStatement(h);case 91:return this.parseForStatement(h);case 68:if(this.lookaheadCharCode()===46)break;return d||this.raise(this.state.strict?Qe.StrictFunction:this.options.annexB?Qe.SloppyFunctionAnnexB:Qe.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(h,!1,!f&&d);case 80:return f||this.unexpected(),this.parseClass(this.maybeTakeDecorators(o,h),!0);case 69:return this.parseIfStatement(h);case 70:return this.parseReturnStatement(h);case 71:return this.parseSwitchStatement(h);case 72:return this.parseThrowStatement(h);case 73:return this.parseTryStatement(h);case 105:if(this.hasFollowingLineBreak()||this.state.containsEsc||!this.hasFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(Qe.UnexpectedUsingDeclaration,{at:this.state.startLoc}):f||this.raise(Qe.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(h,"using");case 99:{if(this.state.containsEsc)break;let x=this.nextTokenStart(),v=this.codePointAtPos(x);if(v!==91&&(!f&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(v,x)&&v!==123))break}case 75:f||this.raise(Qe.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:{let x=this.state.value;return this.parseVarStatement(h,x)}case 92:return this.parseWhileStatement(h);case 76:return this.parseWithStatement(h);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(h);case 83:{let x=this.lookaheadCharCode();if(x===40||x===46)break}case 82:{!this.options.allowImportExportEverywhere&&!y&&this.raise(Qe.UnexpectedImportExport,{at:this.state.startLoc}),this.next();let x;return u===83?(x=this.parseImport(h),x.type==="ImportDeclaration"&&(!x.importKind||x.importKind==="value")&&(this.sawUnambiguousESM=!0)):(x=this.parseExport(h,o),(x.type==="ExportNamedDeclaration"&&(!x.exportKind||x.exportKind==="value")||x.type==="ExportAllDeclaration"&&(!x.exportKind||x.exportKind==="value")||x.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(x),x}default:if(this.isAsyncFunction())return f||this.raise(Qe.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(h,!0,!f&&d)}let D=this.state.value,O=this.parseExpression();return at(u)&&O.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(h,D,O,c):this.parseExpressionStatement(h,O,o)}assertModuleNodeAllowed(c){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(Qe.ImportOutsideModule,{at:c})}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(c,o,u){return c&&(o.decorators&&o.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(Qe.DecoratorsBeforeAfterExport,{at:o.decorators[0]}),o.decorators.unshift(...c)):o.decorators=c,this.resetStartLocationFromNode(o,c[0]),u&&this.resetStartLocationFromNode(u,o)),o}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(c){let o=[];do o.push(this.parseDecorator());while(this.match(26));if(this.match(82))c||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(Qe.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(Qe.UnexpectedLeadingDecorator,{at:this.state.startLoc});return o}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let c=this.startNode();if(this.next(),this.hasPlugin("decorators")){let o=this.state.startLoc,u;if(this.match(10)){let h=this.state.startLoc;this.next(),u=this.parseExpression(),this.expect(11),u=this.wrapParenthesis(h,u);let f=this.state.startLoc;c.expression=this.parseMaybeDecoratorArguments(u),this.getPluginOption("decorators","allowCallParenthesized")===!1&&c.expression!==u&&this.raise(Qe.DecoratorArgumentsOutsideParentheses,{at:f})}else{for(u=this.parseIdentifier(!1);this.eat(16);){let h=this.startNodeAt(o);h.object=u,this.match(136)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),h.property=this.parsePrivateName()):h.property=this.parseIdentifier(!0),h.computed=!1,u=this.finishNode(h,"MemberExpression")}c.expression=this.parseMaybeDecoratorArguments(u)}}else c.expression=this.parseExprSubscripts();return this.finishNode(c,"Decorator")}parseMaybeDecoratorArguments(c){if(this.eat(10)){let o=this.startNodeAtNode(c);return o.callee=c,o.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(o.arguments),this.finishNode(o,"CallExpression")}return c}parseBreakContinueStatement(c,o){return this.next(),this.isLineTerminator()?c.label=null:(c.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(c,o),this.finishNode(c,o?"BreakStatement":"ContinueStatement")}verifyBreakContinue(c,o){let u;for(u=0;u<this.state.labels.length;++u){let h=this.state.labels[u];if((c.label==null||h.name===c.label.name)&&(h.kind!=null&&(o||h.kind==="loop")||c.label&&o))break}if(u===this.state.labels.length){let h=o?"BreakStatement":"ContinueStatement";this.raise(Qe.IllegalBreakContinue,{at:c,type:h})}}parseDebuggerStatement(c){return this.next(),this.semicolon(),this.finishNode(c,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let c=this.parseExpression();return this.expect(11),c}parseDoWhileStatement(c){return this.next(),this.state.labels.push(Tc),c.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),c.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(c,"DoWhileStatement")}parseForStatement(c){this.next(),this.state.labels.push(Tc);let o=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(o=this.state.lastTokStartLoc),this.scope.enter(Vu),this.expect(10),this.match(13))return o!==null&&this.unexpected(o),this.parseFor(c,null);let u=this.isContextual(99),h=this.isContextual(105)&&!this.hasFollowingLineBreak(),f=u&&this.hasFollowingBindingAtom()||h&&this.hasFollowingBindingIdentifier()&&this.startsUsingForOf();if(this.match(74)||this.match(75)||f){let x=this.startNode(),v=this.state.value;this.next(),this.parseVar(x,!0,v);let E=this.finishNode(x,"VariableDeclaration"),F=this.match(58);return F&&h&&this.raise(Qe.ForInUsing,{at:E}),(F||this.isContextual(101))&&E.declarations.length===1?this.parseForIn(c,E,o):(o!==null&&this.unexpected(o),this.parseFor(c,E))}let d=this.isContextual(95),y=new fe,D=this.parseExpression(!0,y),O=this.isContextual(101);if(O&&(u&&this.raise(Qe.ForOfLet,{at:D}),o===null&&d&&D.type==="Identifier"&&this.raise(Qe.ForOfAsync,{at:D})),O||this.match(58)){this.checkDestructuringPrivate(y),this.toAssignable(D,!0);let x=O?"ForOfStatement":"ForInStatement";return this.checkLVal(D,{in:{type:x}}),this.parseForIn(c,D,o)}else this.checkExpressionErrors(y,!0);return o!==null&&this.unexpected(o),this.parseFor(c,D)}parseFunctionStatement(c,o,u){return this.next(),this.parseFunction(c,1|(u?2:0)|(o?8:0))}parseIfStatement(c){return this.next(),c.test=this.parseHeaderExpression(),c.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),c.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(c,"IfStatement")}parseReturnStatement(c){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(Qe.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?c.argument=null:(c.argument=this.parseExpression(),this.semicolon()),this.finishNode(c,"ReturnStatement")}parseSwitchStatement(c){this.next(),c.discriminant=this.parseHeaderExpression();let o=c.cases=[];this.expect(5),this.state.labels.push(bp),this.scope.enter(Vu);let u;for(let h;!this.match(8);)if(this.match(61)||this.match(65)){let f=this.match(61);u&&this.finishNode(u,"SwitchCase"),o.push(u=this.startNode()),u.consequent=[],this.next(),f?u.test=this.parseExpression():(h&&this.raise(Qe.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),h=!0,u.test=null),this.expect(14)}else u?u.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),u&&this.finishNode(u,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(c,"SwitchStatement")}parseThrowStatement(c){return this.next(),this.hasPrecedingLineBreak()&&this.raise(Qe.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),c.argument=this.parseExpression(),this.semicolon(),this.finishNode(c,"ThrowStatement")}parseCatchClauseParam(){let c=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&c.type==="Identifier"?qu:0),this.checkLVal(c,{in:{type:"CatchClause"},binding:xc}),c}parseTryStatement(c){if(this.next(),c.block=this.parseBlock(),c.handler=null,this.match(62)){let o=this.startNode();this.next(),this.match(10)?(this.expect(10),o.param=this.parseCatchClauseParam(),this.expect(11)):(o.param=null,this.scope.enter(Vu)),o.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),c.handler=this.finishNode(o,"CatchClause")}return c.finalizer=this.eat(67)?this.parseBlock():null,!c.handler&&!c.finalizer&&this.raise(Qe.NoCatchOrFinally,{at:c}),this.finishNode(c,"TryStatement")}parseVarStatement(c,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.next(),this.parseVar(c,!1,o,u),this.semicolon(),this.finishNode(c,"VariableDeclaration")}parseWhileStatement(c){return this.next(),c.test=this.parseHeaderExpression(),this.state.labels.push(Tc),c.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(c,"WhileStatement")}parseWithStatement(c){return this.state.strict&&this.raise(Qe.StrictWith,{at:this.state.startLoc}),this.next(),c.object=this.parseHeaderExpression(),c.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(c,"WithStatement")}parseEmptyStatement(c){return this.next(),this.finishNode(c,"EmptyStatement")}parseLabeledStatement(c,o,u,h){for(let d of this.state.labels)d.name===o&&this.raise(Qe.LabelRedeclaration,{at:u,labelName:o});let f=wt(this.state.type)?"loop":this.match(71)?"switch":null;for(let d=this.state.labels.length-1;d>=0;d--){let y=this.state.labels[d];if(y.statementStart===c.start)y.statementStart=this.state.start,y.kind=f;else break}return this.state.labels.push({name:o,kind:f,statementStart:this.state.start}),c.body=h&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),c.label=u,this.finishNode(c,"LabeledStatement")}parseExpressionStatement(c,o,u){return c.expression=o,this.semicolon(),this.finishNode(c,"ExpressionStatement")}parseBlock(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2?arguments[2]:void 0,h=this.startNode();return c&&this.state.strictErrors.clear(),this.expect(5),o&&this.scope.enter(Vu),this.parseBlockBody(h,c,!1,8,u),o&&this.scope.exit(),this.finishNode(h,"BlockStatement")}isValidDirective(c){return c.type==="ExpressionStatement"&&c.expression.type==="StringLiteral"&&!c.expression.extra.parenthesized}parseBlockBody(c,o,u,h,f){let d=c.body=[],y=c.directives=[];this.parseBlockOrModuleBlockBody(d,o?y:void 0,u,h,f)}parseBlockOrModuleBlockBody(c,o,u,h,f){let d=this.state.strict,y=!1,D=!1;for(;!this.match(h);){let O=u?this.parseModuleItem():this.parseStatementListItem();if(o&&!D){if(this.isValidDirective(O)){let x=this.stmtToDirective(O);o.push(x),!y&&x.value.value==="use strict"&&(y=!0,this.setStrict(!0));continue}D=!0,this.state.strictErrors.clear()}c.push(O)}f&&f.call(this,y),d||this.setStrict(!1),this.next()}parseFor(c,o){return c.init=o,this.semicolon(!1),c.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),c.update=this.match(11)?null:this.parseExpression(),this.expect(11),c.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(c,"ForStatement")}parseForIn(c,o,u){let h=this.match(58);return this.next(),h?u!==null&&this.unexpected(u):c.await=u!==null,o.type==="VariableDeclaration"&&o.declarations[0].init!=null&&(!h||!this.options.annexB||this.state.strict||o.kind!=="var"||o.declarations[0].id.type!=="Identifier")&&this.raise(Qe.ForInOfLoopInitializer,{at:o,type:h?"ForInStatement":"ForOfStatement"}),o.type==="AssignmentPattern"&&this.raise(Qe.InvalidLhs,{at:o,ancestor:{type:"ForStatement"}}),c.left=o,c.right=h?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),c.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(c,h?"ForInStatement":"ForOfStatement")}parseVar(c,o,u){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,f=c.declarations=[];for(c.kind=u;;){let d=this.startNode();if(this.parseVarId(d,u),d.init=this.eat(29)?o?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,d.init===null&&!h&&(d.id.type!=="Identifier"&&!(o&&(this.match(58)||this.isContextual(101)))?this.raise(Qe.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"}):u==="const"&&!(this.match(58)||this.isContextual(101))&&this.raise(Qe.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"})),f.push(this.finishNode(d,"VariableDeclarator")),!this.eat(12))break}return c}parseVarId(c,o){o==="using"&&!this.inModule&&this.match(96)&&this.raise(Qe.AwaitInUsingBinding,{at:this.state.startLoc});let u=this.parseBindingAtom();this.checkLVal(u,{in:{type:"VariableDeclarator"},binding:o==="var"?Yu:Ra}),c.id=u}parseAsyncFunctionExpression(c){return this.parseFunction(c,8)}parseFunction(c){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=o&2,h=!!(o&1),f=h&&!(o&4),d=!!(o&8);this.initFunction(c,d),this.match(55)&&(u&&this.raise(Qe.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),c.generator=!0),h&&(c.id=this.parseFunctionId(f));let y=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(va),this.prodParam.enter(de(d,c.generator)),h||(c.id=this.parseFunctionId()),this.parseFunctionParams(c,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(c,h?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),h&&!u&&this.registerFunctionStatementId(c),this.state.maybeInArrowParameters=y,c}parseFunctionId(c){return c||at(this.state.type)?this.parseIdentifier():null}parseFunctionParams(c,o){this.expect(10),this.expressionScope.enter(vh()),c.params=this.parseBindingList(11,41,2|(o?4:0)),this.expressionScope.exit()}registerFunctionStatementId(c){c.id&&this.scope.declareName(c.id.name,!this.options.annexB||this.state.strict||c.generator||c.async?this.scope.treatFunctionsAsVar?Yu:Ra:bc,c.id.loc.start)}parseClass(c,o,u){this.next();let h=this.state.strict;return this.state.strict=!0,this.parseClassId(c,o,u),this.parseClassSuper(c),c.body=this.parseClassBody(!!c.superClass,h),this.finishNode(c,o?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(c){return!c.computed&&!c.static&&(c.key.name==="constructor"||c.key.value==="constructor")}parseClassBody(c,o){this.classScope.enter();let u={hadConstructor:!1,hadSuperClass:c},h=[],f=this.startNode();if(f.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(h.length>0)throw this.raise(Qe.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){h.push(this.parseDecorator());continue}let d=this.startNode();h.length&&(d.decorators=h,this.resetStartLocationFromNode(d,h[0]),h=[]),this.parseClassMember(f,d,u),d.kind==="constructor"&&d.decorators&&d.decorators.length>0&&this.raise(Qe.DecoratorConstructor,{at:d})}}),this.state.strict=o,this.next(),h.length)throw this.raise(Qe.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(f,"ClassBody")}parseClassMemberFromModifier(c,o){let u=this.parseIdentifier(!0);if(this.isClassMethod()){let h=o;return h.kind="method",h.computed=!1,h.key=u,h.static=!1,this.pushClassMethod(c,h,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let h=o;return h.computed=!1,h.key=u,h.static=!1,c.body.push(this.parseClassProperty(h)),!0}return this.resetPreviousNodeTrailingComments(u),!1}parseClassMember(c,o,u){let h=this.isContextual(104);if(h){if(this.parseClassMemberFromModifier(c,o))return;if(this.eat(5)){this.parseClassStaticBlock(c,o);return}}this.parseClassMemberWithIsStatic(c,o,u,h)}parseClassMemberWithIsStatic(c,o,u,h){let f=o,d=o,y=o,D=o,O=o,x=f,v=f;if(o.static=h,this.parsePropertyNamePrefixOperator(o),this.eat(55)){x.kind="method";let T=this.match(136);if(this.parseClassElementName(x),T){this.pushClassPrivateMethod(c,d,!0,!1);return}this.isNonstaticConstructor(f)&&this.raise(Qe.ConstructorIsGenerator,{at:f.key}),this.pushClassMethod(c,f,!0,!1,!1,!1);return}let E=at(this.state.type)&&!this.state.containsEsc,F=this.match(136),k=this.parseClassElementName(o),I=this.state.startLoc;if(this.parsePostMemberNameModifiers(v),this.isClassMethod()){if(x.kind="method",F){this.pushClassPrivateMethod(c,d,!1,!1);return}let T=this.isNonstaticConstructor(f),_=!1;T&&(f.kind="constructor",u.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(Qe.DuplicateConstructor,{at:k}),T&&this.hasPlugin("typescript")&&o.override&&this.raise(Qe.OverrideOnConstructor,{at:k}),u.hadConstructor=!0,_=u.hadSuperClass),this.pushClassMethod(c,f,!1,!1,T,_)}else if(this.isClassProperty())F?this.pushClassPrivateProperty(c,D):this.pushClassProperty(c,y);else if(E&&k.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(k);let T=this.eat(55);v.optional&&this.unexpected(I),x.kind="method";let _=this.match(136);this.parseClassElementName(x),this.parsePostMemberNameModifiers(v),_?this.pushClassPrivateMethod(c,d,T,!0):(this.isNonstaticConstructor(f)&&this.raise(Qe.ConstructorIsAsync,{at:f.key}),this.pushClassMethod(c,f,T,!0,!1,!1))}else if(E&&(k.name==="get"||k.name==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(k),x.kind=k.name;let T=this.match(136);this.parseClassElementName(f),T?this.pushClassPrivateMethod(c,d,!1,!1):(this.isNonstaticConstructor(f)&&this.raise(Qe.ConstructorIsAccessor,{at:f.key}),this.pushClassMethod(c,f,!1,!1,!1,!1)),this.checkGetterSetterParams(f)}else if(E&&k.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(k);let T=this.match(136);this.parseClassElementName(y),this.pushClassAccessorProperty(c,O,T)}else this.isLineTerminator()?F?this.pushClassPrivateProperty(c,D):this.pushClassProperty(c,y):this.unexpected()}parseClassElementName(c){let{type:o,value:u}=this.state;if((o===130||o===131)&&c.static&&u==="prototype"&&this.raise(Qe.StaticPrototype,{at:this.state.startLoc}),o===136){u==="constructor"&&this.raise(Qe.ConstructorClassPrivateField,{at:this.state.startLoc});let h=this.parsePrivateName();return c.key=h,h}return this.parsePropertyName(c)}parseClassStaticBlock(c,o){var u;this.scope.enter(Ma|zu|cu);let h=this.state.labels;this.state.labels=[],this.prodParam.enter(ee);let f=o.body=[];this.parseBlockOrModuleBlockBody(f,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=h,c.body.push(this.finishNode(o,"StaticBlock")),(u=o.decorators)!=null&&u.length&&this.raise(Qe.DecoratorStaticBlock,{at:o})}pushClassProperty(c,o){!o.computed&&(o.key.name==="constructor"||o.key.value==="constructor")&&this.raise(Qe.ConstructorClassField,{at:o.key}),c.body.push(this.parseClassProperty(o))}pushClassPrivateProperty(c,o){let u=this.parseClassPrivateProperty(o);c.body.push(u),this.classScope.declarePrivateName(this.getPrivateNameSV(u.key),Ju,u.key.loc.start)}pushClassAccessorProperty(c,o,u){if(!u&&!o.computed){let f=o.key;(f.name==="constructor"||f.value==="constructor")&&this.raise(Qe.ConstructorClassField,{at:f})}let h=this.parseClassAccessorProperty(o);c.body.push(h),u&&this.classScope.declarePrivateName(this.getPrivateNameSV(h.key),Ju,h.key.loc.start)}pushClassMethod(c,o,u,h,f,d){c.body.push(this.parseMethod(o,u,h,f,d,"ClassMethod",!0))}pushClassPrivateMethod(c,o,u,h){let f=this.parseMethod(o,u,h,!1,!1,"ClassPrivateMethod",!0);c.body.push(f);let d=f.kind==="get"?f.static?Cc:Sc:f.kind==="set"?f.static?Hu:Ul:Ju;this.declareClassPrivateMethodInScope(f,d)}declareClassPrivateMethodInScope(c,o){this.classScope.declarePrivateName(this.getPrivateNameSV(c.key),o,c.key.loc.start)}parsePostMemberNameModifiers(c){}parseClassPrivateProperty(c){return this.parseInitializer(c),this.semicolon(),this.finishNode(c,"ClassPrivateProperty")}parseClassProperty(c){return this.parseInitializer(c),this.semicolon(),this.finishNode(c,"ClassProperty")}parseClassAccessorProperty(c){return this.parseInitializer(c),this.semicolon(),this.finishNode(c,"ClassAccessorProperty")}parseInitializer(c){this.scope.enter(Ma|cu),this.expressionScope.enter(w()),this.prodParam.enter(ee),c.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(c,o,u){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:sp;if(at(this.state.type))c.id=this.parseIdentifier(),o&&this.declareNameFromIdentifier(c.id,h);else if(u||!o)c.id=null;else throw this.raise(Qe.MissingClassName,{at:this.state.startLoc})}parseClassSuper(c){c.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(c,o){let u=this.maybeParseExportDefaultSpecifier(c),h=!u||this.eat(12),f=h&&this.eatExportStar(c),d=f&&this.maybeParseExportNamespaceSpecifier(c),y=h&&(!d||this.eat(12)),D=u||f;if(f&&!d){if(u&&this.unexpected(),o)throw this.raise(Qe.UnsupportedDecoratorExport,{at:c});return this.parseExportFrom(c,!0),this.finishNode(c,"ExportAllDeclaration")}let O=this.maybeParseExportNamedSpecifiers(c);u&&h&&!f&&!O&&this.unexpected(null,5),d&&y&&this.unexpected(null,97);let x;if(D||O){if(x=!1,o)throw this.raise(Qe.UnsupportedDecoratorExport,{at:c});this.parseExportFrom(c,D)}else x=this.maybeParseExportDeclaration(c);if(D||O||x){var v;let E=c;if(this.checkExport(E,!0,!1,!!E.source),((v=E.declaration)==null?void 0:v.type)==="ClassDeclaration")this.maybeTakeDecorators(o,E.declaration,E);else if(o)throw this.raise(Qe.UnsupportedDecoratorExport,{at:c});return this.finishNode(E,"ExportNamedDeclaration")}if(this.eat(65)){let E=c,F=this.parseExportDefaultExpression();if(E.declaration=F,F.type==="ClassDeclaration")this.maybeTakeDecorators(o,F,E);else if(o)throw this.raise(Qe.UnsupportedDecoratorExport,{at:c});return this.checkExport(E,!0,!0),this.finishNode(E,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(c){return this.eat(55)}maybeParseExportDefaultSpecifier(c){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");let o=this.startNode();return o.exported=this.parseIdentifier(!0),c.specifiers=[this.finishNode(o,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(c){if(this.isContextual(93)){c.specifiers||(c.specifiers=[]);let o=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),o.exported=this.parseModuleExportName(),c.specifiers.push(this.finishNode(o,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(c){if(this.match(5)){c.specifiers||(c.specifiers=[]);let o=c.exportKind==="type";return c.specifiers.push(...this.parseExportSpecifiers(o)),c.source=null,c.declaration=null,this.hasPlugin("importAssertions")&&(c.assertions=[]),!0}return!1}maybeParseExportDeclaration(c){return this.shouldParseExportDeclaration()?(c.specifiers=[],c.source=null,this.hasPlugin("importAssertions")&&(c.assertions=[]),c.declaration=this.parseExportDeclaration(c),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let c=this.nextTokenStart();return!dh.test(this.input.slice(this.state.pos,c))&&this.isUnparsedContextual(c,"function")}parseExportDefaultExpression(){let c=this.startNode();if(this.match(68))return this.next(),this.parseFunction(c,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(c,13);if(this.match(80))return this.parseClass(c,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(Qe.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(Qe.UnsupportedDefaultExport,{at:this.state.startLoc});let o=this.parseMaybeAssignAllowIn();return this.semicolon(),o}parseExportDeclaration(c){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:c}=this.state;if(at(c)){if(c===95&&!this.state.containsEsc||c===99)return!1;if((c===128||c===127)&&!this.state.containsEsc){let{type:h}=this.lookahead();if(at(h)&&h!==97||h===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let o=this.nextTokenStart(),u=this.isUnparsedContextual(o,"from");if(this.input.charCodeAt(o)===44||at(this.state.type)&&u)return!0;if(this.match(65)&&u){let h=this.input.charCodeAt(this.nextTokenStartSince(o+4));return h===34||h===39}return!1}parseExportFrom(c,o){if(this.eatContextual(97)){c.source=this.parseImportSource(),this.checkExport(c);let u=this.maybeParseImportAssertions();u&&(c.assertions=u,this.checkJSONModuleImport(c))}else o&&this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:c}=this.state;return c===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(Qe.DecoratorBeforeExport,{at:this.state.startLoc}),!0):c===74||c===75||c===68||c===80||this.isLet()||this.isAsyncFunction()}checkExport(c,o,u,h){if(o){if(u){if(this.checkDuplicateExports(c,"default"),this.hasPlugin("exportDefaultFrom")){var f;let d=c.declaration;d.type==="Identifier"&&d.name==="from"&&d.end-d.start===4&&!((f=d.extra)!=null&&f.parenthesized)&&this.raise(Qe.ExportDefaultFromAsIdentifier,{at:d})}}else if(c.specifiers&&c.specifiers.length)for(let d of c.specifiers){let{exported:y}=d,D=y.type==="Identifier"?y.name:y.value;if(this.checkDuplicateExports(d,D),!h&&d.local){let{local:O}=d;O.type!=="Identifier"?this.raise(Qe.ExportBindingIsString,{at:d,localName:O.value,exportName:D}):(this.checkReservedWord(O.name,O.loc.start,!0,!1),this.scope.checkLocalExport(O))}}else if(c.declaration){if(c.declaration.type==="FunctionDeclaration"||c.declaration.type==="ClassDeclaration"){let d=c.declaration.id;if(!d)throw new Error("Assertion failure");this.checkDuplicateExports(c,d.name)}else if(c.declaration.type==="VariableDeclaration")for(let d of c.declaration.declarations)this.checkDeclaration(d.id)}}}checkDeclaration(c){if(c.type==="Identifier")this.checkDuplicateExports(c,c.name);else if(c.type==="ObjectPattern")for(let o of c.properties)this.checkDeclaration(o);else if(c.type==="ArrayPattern")for(let o of c.elements)o&&this.checkDeclaration(o);else c.type==="ObjectProperty"?this.checkDeclaration(c.value):c.type==="RestElement"?this.checkDeclaration(c.argument):c.type==="AssignmentPattern"&&this.checkDeclaration(c.left)}checkDuplicateExports(c,o){this.exportedIdentifiers.has(o)&&(o==="default"?this.raise(Qe.DuplicateDefaultExport,{at:c}):this.raise(Qe.DuplicateExport,{at:c,exportName:o})),this.exportedIdentifiers.add(o)}parseExportSpecifiers(c){let o=[],u=!0;for(this.expect(5);!this.eat(8);){if(u)u=!1;else if(this.expect(12),this.eat(8))break;let h=this.isContextual(128),f=this.match(131),d=this.startNode();d.local=this.parseModuleExportName(),o.push(this.parseExportSpecifier(d,f,c,h))}return o}parseExportSpecifier(c,o,u,h){return this.eatContextual(93)?c.exported=this.parseModuleExportName():o?c.exported=we(c.local):c.exported||(c.exported=V(c.local)),this.finishNode(c,"ExportSpecifier")}parseModuleExportName(){if(this.match(131)){let c=this.parseStringLiteral(this.state.value),o=c.value.match(a0);return o&&this.raise(Qe.ModuleExportNameHasLoneSurrogate,{at:c,surrogateCharCode:o[0].charCodeAt(0)}),c}return this.parseIdentifier(!0)}isJSONModuleImport(c){return c.assertions!=null?c.assertions.some(o=>{let{key:u,value:h}=o;return h.value==="json"&&(u.type==="Identifier"?u.name==="type":u.value==="type")}):!1}checkImportReflection(c){if(c.module){var o;(c.specifiers.length!==1||c.specifiers[0].type!=="ImportDefaultSpecifier")&&this.raise(Qe.ImportReflectionNotBinding,{at:c.specifiers[0].loc.start}),((o=c.assertions)==null?void 0:o.length)>0&&this.raise(Qe.ImportReflectionHasAssertion,{at:c.specifiers[0].loc.start})}}checkJSONModuleImport(c){if(this.isJSONModuleImport(c)&&c.type!=="ExportAllDeclaration"){let{specifiers:o}=c;if(o!=null){let u=o.find(h=>{let f;if(h.type==="ExportSpecifier"?f=h.local:h.type==="ImportSpecifier"&&(f=h.imported),f!==void 0)return f.type==="Identifier"?f.name!=="default":f.value!=="default"});u!==void 0&&this.raise(Qe.ImportJSONBindingNotDefault,{at:u.loc.start})}}}parseMaybeImportReflection(c){let o=!1;if(this.isContextual(125)){let u=this.lookahead(),h=u.type;at(h)?(h!==97||this.input.charCodeAt(this.nextTokenStartSince(u.end))===102)&&(o=!0):h!==12&&(o=!0)}o?(this.expectPlugin("importReflection"),this.next(),c.module=!0):this.hasPlugin("importReflection")&&(c.module=!1)}parseImport(c){if(c.specifiers=[],!this.match(131)){this.parseMaybeImportReflection(c);let u=!this.maybeParseDefaultImportSpecifier(c)||this.eat(12),h=u&&this.maybeParseStarImportSpecifier(c);u&&!h&&this.parseNamedImportSpecifiers(c),this.expectContextual(97)}c.source=this.parseImportSource();let o=this.maybeParseImportAssertions();if(o)c.assertions=o;else{let u=this.maybeParseModuleAttributes();u&&(c.attributes=u)}return this.checkImportReflection(c),this.checkJSONModuleImport(c),this.semicolon(),this.finishNode(c,"ImportDeclaration")}parseImportSource(){return this.match(131)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(c){return at(this.state.type)}parseImportSpecifierLocal(c,o,u){o.local=this.parseIdentifier(),c.specifiers.push(this.finishImportSpecifier(o,u))}finishImportSpecifier(c,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ra;return this.checkLVal(c.local,{in:{type:o},binding:u}),this.finishNode(c,o)}parseAssertEntries(){let c=[],o=new Set;do{if(this.match(8))break;let u=this.startNode(),h=this.state.value;if(o.has(h)&&this.raise(Qe.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:h}),o.add(h),this.match(131)?u.key=this.parseStringLiteral(h):u.key=this.parseIdentifier(!0),this.expect(14),!this.match(131))throw this.raise(Qe.ModuleAttributeInvalidValue,{at:this.state.startLoc});u.value=this.parseStringLiteral(this.state.value),c.push(this.finishNode(u,"ImportAttribute"))}while(this.eat(12));return c}maybeParseModuleAttributes(){if(this.match(76)&&!this.hasPrecedingLineBreak())this.expectPlugin("moduleAttributes"),this.next();else return this.hasPlugin("moduleAttributes")?[]:null;let c=[],o=new Set;do{let u=this.startNode();if(u.key=this.parseIdentifier(!0),u.key.name!=="type"&&this.raise(Qe.ModuleAttributeDifferentFromType,{at:u.key}),o.has(u.key.name)&&this.raise(Qe.ModuleAttributesWithDuplicateKeys,{at:u.key,key:u.key.name}),o.add(u.key.name),this.expect(14),!this.match(131))throw this.raise(Qe.ModuleAttributeInvalidValue,{at:this.state.startLoc});u.value=this.parseStringLiteral(this.state.value),this.finishNode(u,"ImportAttribute"),c.push(u)}while(this.eat(12));return c}maybeParseImportAssertions(){if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.expectPlugin("importAssertions"),this.next();else return this.hasPlugin("importAssertions")?[]:null;this.eat(5);let c=this.parseAssertEntries();return this.eat(8),c}maybeParseDefaultImportSpecifier(c){return this.shouldParseDefaultImport(c)?(this.parseImportSpecifierLocal(c,this.startNode(),"ImportDefaultSpecifier"),!0):!1}maybeParseStarImportSpecifier(c){if(this.match(55)){let o=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(c,o,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(c){let o=!0;for(this.expect(5);!this.eat(8);){if(o)o=!1;else{if(this.eat(14))throw this.raise(Qe.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let u=this.startNode(),h=this.match(131),f=this.isContextual(128);u.imported=this.parseModuleExportName();let d=this.parseImportSpecifier(u,h,c.importKind==="type"||c.importKind==="typeof",f,void 0);c.specifiers.push(d)}}parseImportSpecifier(c,o,u,h,f){if(this.eatContextual(93))c.local=this.parseIdentifier();else{let{imported:d}=c;if(o)throw this.raise(Qe.ImportBindingIsString,{at:c,importName:d.value});this.checkReservedWord(d.name,c.loc.start,!0,!0),c.local||(c.local=V(d))}return this.finishImportSpecifier(c,"ImportSpecifier",f)}isThisParam(c){return c.type==="Identifier"&&c.name==="this"}},Bd=class extends l0{constructor(c,o){c=Vr(c),super(c,o),this.options=c,this.initializeScopes(),this.plugins=c0(this.options.plugins),this.filename=c.sourceFilename}getScopeHandler(){return mu}parse(){this.enterInitialScopes();let c=this.startNode(),o=this.startNode();return this.nextToken(),c.errors=null,this.parseTopLevel(c,o),c.errors=this.state.errors,c}};function c0(c){let o=new Map;for(let u of c){let[h,f]=Array.isArray(u)?u:[u,{}];o.has(h)||o.set(h,f||{})}return o}function h0(c,o){var u;if(((u=o)==null?void 0:u.sourceType)==="unambiguous"){o=Object.assign({},o);try{o.sourceType="module";let h=Eh(o,c),f=h.parse();if(h.sawUnambiguousESM)return f;if(h.ambiguousScriptDifferentAst)try{return o.sourceType="script",Eh(o,c).parse()}catch{}else f.program.sourceType="script";return f}catch(h){try{return o.sourceType="script",Eh(o,c).parse()}catch{}throw h}}else return Eh(o,c).parse()}function p0(c,o){let u=Eh(o,c);return u.options.strictMode&&(u.state.strict=!0),u.getExpression()}function Pc(c){let o={};for(let u of Object.keys(c))o[u]=Er(c[u]);return o}var f0=Pc(ot);function Eh(c,o){let u=Bd;return c!=null&&c.plugins&&(No(c.plugins),u=d0(c.plugins)),new u(c,o)}var Nd={};function d0(c){let o=Us.filter(f=>qi(c,f)),u=o.join("/"),h=Nd[u];if(!h){h=Bd;for(let f of o)h=ks[f](h);Nd[u]=h}return h}bn.parse=h0,bn.parseExpression=p0,bn.tokTypes=f0}}),Fl=Ie({"src/language-js/parse/json.js"(bn,Ur){ae();var Vr=Al(),Ar=su(),mr=Tl(),Nr=$a();function rr(){let kn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{allowComments:Ti=!0}=kn;return function(Qr){let{parseExpression:Bi}=Bu(),Fs;try{Fs=Bi(Qr,{tokens:!0,ranges:!0})}catch(Xn){throw Nr(Xn)}if(!Ti&&Vr(Fs.comments))throw vn(Fs.comments[0],"Comment");return li(Fs),Fs}}function vn(kn,Ti){let[Qr,Bi]=[kn.loc.start,kn.loc.end].map(Fs=>{let{line:Xn,column:ki}=Fs;return{line:Xn,column:ki+1}});return Ar(`${Ti} is not allowed in JSON.`,{start:Qr,end:Bi})}function li(kn){switch(kn.type){case"ArrayExpression":for(let Ti of kn.elements)Ti!==null&&li(Ti);return;case"ObjectExpression":for(let Ti of kn.properties)li(Ti);return;case"ObjectProperty":if(kn.computed)throw vn(kn.key,"Computed key");if(kn.shorthand)throw vn(kn.key,"Shorthand property");kn.key.type!=="Identifier"&&li(kn.key),li(kn.value);return;case"UnaryExpression":{let{operator:Ti,argument:Qr}=kn;if(Ti!=="+"&&Ti!=="-")throw vn(kn,`Operator '${kn.operator}'`);if(Qr.type==="NumericLiteral"||Qr.type==="Identifier"&&(Qr.name==="Infinity"||Qr.name==="NaN"))return;throw vn(Qr,`Operator '${Ti}' before '${Qr.type}'`)}case"Identifier":if(kn.name!=="Infinity"&&kn.name!=="NaN"&&kn.name!=="undefined")throw vn(kn,`Identifier '${kn.name}'`);return;case"TemplateLiteral":if(Vr(kn.expressions))throw vn(kn.expressions[0],"'TemplateLiteral' with expression");for(let Ti of kn.quasis)li(Ti);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw vn(kn,`'${kn.type}'`)}}var vi=rr(),gi={json:mr({parse:vi,hasPragma(){return!0}}),json5:mr(vi),"json-stringify":mr({parse:rr({allowComments:!1}),astFormat:"estree-json"})};Ur.exports=gi}});ae();var uh=Ee(),fc=xe(),dc=Ct(),Oa=Tl(),Nu=$a(),xa=kl(),mc=Fl(),gc={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication",["decorators",{decoratorsBeforeExport:!1}],"importAssertions","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors"],tokens:!0,ranges:!0},lh=["recordAndTuple",{syntaxType:"hash"}],Iu="v8intrinsic",Mu=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],go=function(bn){let Ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gc;return Object.assign(Object.assign({},Ur),{},{plugins:[...Ur.plugins,...bn]})},Ko=/@(?:no)?flow\b/;function ea(bn,Ur){if(Ur.filepath&&Ur.filepath.endsWith(".js.flow"))return!0;let Vr=fc(bn);Vr&&(bn=bn.slice(Vr.length));let Ar=dc(bn,0);return Ar!==!1&&(bn=bn.slice(0,Ar)),Ko.test(bn)}function Qo(bn,Ur,Vr){let Ar=Bu()[bn],mr=Ar(Ur,Vr),Nr=mr.errors.find(rr=>!Qu.has(rr.reasonCode));if(Nr)throw Nr;return mr}function Fo(bn){for(var Ur=arguments.length,Vr=new Array(Ur>1?Ur-1:0),Ar=1;Ar<Ur;Ar++)Vr[Ar-1]=arguments[Ar];return function(mr,Nr){let rr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if((rr.parser==="babel"||rr.parser==="__babel_estree")&&ea(mr,rr))return rr.parser="babel-flow",Ba(mr,Nr,rr);let vn=Vr;rr.__babelSourceType==="script"&&(vn=vn.map(kn=>Object.assign(Object.assign({},kn),{},{sourceType:"script"}))),/#[[{]/.test(mr)&&(vn=vn.map(kn=>go([lh],kn)));let li=/%[A-Z]/.test(mr);mr.includes("|>")?vn=(li?[...Mu,Iu]:Mu).flatMap(kn=>vn.map(Ti=>go([kn],Ti))):li&&(vn=vn.map(kn=>go([Iu],kn)));let{result:vi,error:gi}=uh(...vn.map(kn=>()=>Qo(bn,mr,kn)));if(!vi)throw Nu(gi);return rr.originalText=mr,xa(vi,rr)}}var fi=Fo("parse",go(["jsx","flow"])),Ba=Fo("parse",go(["jsx",["flow",{all:!0,enums:!0}]])),_l=Fo("parse",go(["jsx","typescript"]),go(["typescript"])),ou=Fo("parse",go(["jsx","flow","estree"])),Ru=Fo("parseExpression",go(["jsx"])),Na=Fo("parseExpression",go(["typescript"])),Qu=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","UnexpectedParameterModifier","MixedLabeledAndUnlabeledElements","InvalidTupleMemberLabel","NonClassMethodPropertyHasAbstractModifer","ReadonlyForMethodSignature","ClassMethodHasDeclare","ClassMethodHasReadonly","InvalidModifierOnTypeMember","DuplicateAccessibilityModifier","IndexSignatureHasDeclare","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","UnsupportedPropertyDecorator","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),ju=Oa(fi),au=Oa(_l),Lu=Oa(Ru),$l=Oa(Na);xt.exports={parsers:Object.assign(Object.assign({babel:ju,"babel-flow":Oa(Ba),"babel-ts":au},mc),{},{__js_expression:Lu,__vue_expression:Lu,__vue_ts_expression:$l,__vue_event_binding:ju,__vue_ts_event_binding:au,__babel_estree:Oa(ou)})}});return mi()})})(kw);var h6=kw.exports;const p6=Qg(h6);function f6(r,e,t){const n={css:u6,html:c6,babel:p6};return as(()=>{if(!Oo(e))return Oo(r)||"/* empty */";try{return o6.format(Oo(r)||"",{parser:t,plugins:[n[t]],singleQuote:!0,semi:!1})}catch(i){return console.error(i),`/* Error on prettifying: ${i.message} */
|
|
274
274
|
${Oo(r)||""}`}})}function d6(r,e=!0){return f6(r,e,"css")}const m6=vo({__name:"Copy",setup(r){const{copy:e,copied:t}=J3();return(n,i)=>tc(n.$slots,"default",{copy:wi(e),copied:wi(t)})}}),g6=["top","right","bottom","left"],uv=["start","end"],lv=g6.reduce((r,e)=>r.concat(e,e+"-"+uv[0],e+"-"+uv[1]),[]),fd=Math.min,kh=Math.max,y6={left:"right",right:"left",bottom:"top",top:"bottom"},D6={start:"end",end:"start"};function OD(r,e,t){return kh(r,fd(e,t))}function ep(r,e){return typeof r=="function"?r(e):r}function Cl(r){return r.split("-")[0]}function Au(r){return r.split("-")[1]}function Fw(r){return r==="x"?"y":"x"}function RO(r){return r==="y"?"height":"width"}function $d(r){return["top","bottom"].includes(Cl(r))?"y":"x"}function QO(r){return Fw($d(r))}function _w(r,e,t){t===void 0&&(t=!1);const n=Au(r),i=QO(r),s=RO(i);let a=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=bg(a)),[a,bg(a)]}function O6(r){const e=bg(r);return[xg(r),e,xg(e)]}function xg(r){return r.replace(/start|end/g,e=>D6[e])}function x6(r,e,t){const n=["left","right"],i=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(r){case"top":case"bottom":return t?e?i:n:e?n:i;case"left":case"right":return e?s:a;default:return[]}}function b6(r,e,t,n){const i=Au(r);let s=x6(Cl(r),t==="start",n);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(xg)))),s}function bg(r){return r.replace(/left|right|bottom|top/g,e=>y6[e])}function v6(r){return{top:0,right:0,bottom:0,left:0,...r}}function $w(r){return typeof r!="number"?v6(r):{top:r,right:r,bottom:r,left:r}}function Qf(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function cv(r,e,t){let{reference:n,floating:i}=r;const s=$d(e),a=QO(e),l=RO(a),p=Cl(e),m=s==="y",g=n.x+n.width/2-i.width/2,b=n.y+n.height/2-i.height/2,S=n[l]/2-i[l]/2;let $;switch(p){case"top":$={x:g,y:n.y-i.height};break;case"bottom":$={x:g,y:n.y+n.height};break;case"right":$={x:n.x+n.width,y:b};break;case"left":$={x:n.x-i.width,y:b};break;default:$={x:n.x,y:n.y}}switch(Au(e)){case"start":$[a]-=S*(t&&m?-1:1);break;case"end":$[a]+=S*(t&&m?-1:1);break}return $}const C6=async(r,e,t)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:a}=t,l=s.filter(Boolean),p=await(a.isRTL==null?void 0:a.isRTL(e));let m=await a.getElementRects({reference:r,floating:e,strategy:i}),{x:g,y:b}=cv(m,n,p),S=n,$={},G=0;for(let be=0;be<l.length;be++){const{name:ke,fn:me}=l[be],{x:Ve,y:Dt,data:ht,reset:bt}=await me({x:g,y:b,initialPlacement:n,placement:S,strategy:i,middlewareData:$,rects:m,platform:a,elements:{reference:r,floating:e}});if(g=Ve??g,b=Dt??b,$={...$,[ke]:{...$[ke],...ht}},bt&&G<=50){G++,typeof bt=="object"&&(bt.placement&&(S=bt.placement),bt.rects&&(m=bt.rects===!0?await a.getElementRects({reference:r,floating:e,strategy:i}):bt.rects),{x:g,y:b}=cv(m,S,p)),be=-1;continue}}return{x:g,y:b,placement:S,strategy:i,middlewareData:$}};async function r0(r,e){var t;e===void 0&&(e={});const{x:n,y:i,platform:s,rects:a,elements:l,strategy:p}=r,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:b="floating",altBoundary:S=!1,padding:$=0}=ep(e,r),G=$w($),ke=l[S?b==="floating"?"reference":"floating":b],me=Qf(await s.getClippingRect({element:(t=await(s.isElement==null?void 0:s.isElement(ke)))==null||t?ke:ke.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:m,rootBoundary:g,strategy:p})),Ve=b==="floating"?{...a.floating,x:n,y:i}:a.reference,Dt=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),ht=await(s.isElement==null?void 0:s.isElement(Dt))?await(s.getScale==null?void 0:s.getScale(Dt))||{x:1,y:1}:{x:1,y:1},bt=Qf(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:Ve,offsetParent:Dt,strategy:p}):Ve);return{top:(me.top-bt.top+G.top)/ht.y,bottom:(bt.bottom-me.bottom+G.bottom)/ht.y,left:(me.left-bt.left+G.left)/ht.x,right:(bt.right-me.right+G.right)/ht.x}}const S6=r=>({name:"arrow",options:r,async fn(e){const{x:t,y:n,placement:i,rects:s,platform:a,elements:l}=e,{element:p,padding:m=0}=ep(r,e)||{};if(p==null)return{};const g=$w(m),b={x:t,y:n},S=QO(i),$=RO(S),G=await a.getDimensions(p),be=S==="y",ke=be?"top":"left",me=be?"bottom":"right",Ve=be?"clientHeight":"clientWidth",Dt=s.reference[$]+s.reference[S]-b[S]-s.floating[$],ht=b[S]-s.reference[S],bt=await(a.getOffsetParent==null?void 0:a.getOffsetParent(p));let Yt=bt?bt[Ve]:0;(!Yt||!await(a.isElement==null?void 0:a.isElement(bt)))&&(Yt=l.floating[Ve]||s.floating[$]);const ir=Dt/2-ht/2,qr=Yt/2-G[$]/2-1,yr=fd(g[ke],qr),kr=fd(g[me],qr),Zr=yr,zn=Yt-G[$]-kr,Gn=Yt/2-G[$]/2+ir,Ii=OD(Zr,Gn,zn),Sn=Au(i)!=null&&Gn!=Ii&&s.reference[$]/2-(Gn<Zr?yr:kr)-G[$]/2<0?Gn<Zr?Zr-Gn:zn-Gn:0;return{[S]:b[S]-Sn,data:{[S]:Ii,centerOffset:Gn-Ii+Sn}}}});function E6(r,e,t){return(r?[...t.filter(i=>Au(i)===r),...t.filter(i=>Au(i)!==r)]:t.filter(i=>Cl(i)===i)).filter(i=>r?Au(i)===r||(e?xg(i)!==i:!1):!0)}const w6=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,n,i;const{rects:s,middlewareData:a,placement:l,platform:p,elements:m}=e,{crossAxis:g=!1,alignment:b,allowedPlacements:S=lv,autoAlignment:$=!0,...G}=ep(r,e),be=b!==void 0||S===lv?E6(b||null,$,S):S,ke=await r0(e,G),me=((t=a.autoPlacement)==null?void 0:t.index)||0,Ve=be[me];if(Ve==null)return{};const Dt=_w(Ve,s,await(p.isRTL==null?void 0:p.isRTL(m.floating)));if(l!==Ve)return{reset:{placement:be[0]}};const ht=[ke[Cl(Ve)],ke[Dt[0]],ke[Dt[1]]],bt=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:Ve,overflows:ht}],Yt=be[me+1];if(Yt)return{data:{index:me+1,overflows:bt},reset:{placement:Yt}};const ir=bt.map(kr=>{const Zr=Au(kr.placement);return[kr.placement,Zr&&g?kr.overflows.slice(0,2).reduce((zn,Gn)=>zn+Gn,0):kr.overflows[0],kr.overflows]}).sort((kr,Zr)=>kr[1]-Zr[1]),yr=((i=ir.filter(kr=>kr[2].slice(0,Au(kr[0])?2:3).every(Zr=>Zr<=0))[0])==null?void 0:i[0])||ir[0][0];return yr!==l?{data:{index:me+1,overflows:bt},reset:{placement:yr}}:{}}}},A6=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var t;const{placement:n,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:p}=e,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:G=!0,...be}=ep(r,e),ke=Cl(n),me=Cl(a)===a,Ve=await(l.isRTL==null?void 0:l.isRTL(p.floating)),Dt=b||(me||!G?[bg(a)]:O6(a));!b&&$!=="none"&&Dt.push(...b6(a,G,$,Ve));const ht=[a,...Dt],bt=await r0(e,be),Yt=[];let ir=((t=i.flip)==null?void 0:t.overflows)||[];if(m&&Yt.push(bt[ke]),g){const Zr=_w(n,s,Ve);Yt.push(bt[Zr[0]],bt[Zr[1]])}if(ir=[...ir,{placement:n,overflows:Yt}],!Yt.every(Zr=>Zr<=0)){var qr,yr;const Zr=(((qr=i.flip)==null?void 0:qr.index)||0)+1,zn=ht[Zr];if(zn)return{data:{index:Zr,overflows:ir},reset:{placement:zn}};let Gn=(yr=ir.filter(Ii=>Ii.overflows[0]<=0).sort((Ii,ii)=>Ii.overflows[1]-ii.overflows[1])[0])==null?void 0:yr.placement;if(!Gn)switch(S){case"bestFit":{var kr;const Ii=(kr=ir.map(ii=>[ii.placement,ii.overflows.filter(Sn=>Sn>0).reduce((Sn,Wn)=>Sn+Wn,0)]).sort((ii,Sn)=>ii[1]-Sn[1])[0])==null?void 0:kr[0];Ii&&(Gn=Ii);break}case"initialPlacement":Gn=a;break}if(n!==Gn)return{reset:{placement:Gn}}}return{}}}};async function T6(r,e){const{placement:t,platform:n,elements:i}=r,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=Cl(t),l=Au(t),p=$d(t)==="y",m=["left","top"].includes(a)?-1:1,g=s&&p?-1:1,b=ep(e,r);let{mainAxis:S,crossAxis:$,alignmentAxis:G}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...b};return l&&typeof G=="number"&&($=l==="end"?G*-1:G),p?{x:$*g,y:S*m}:{x:S*m,y:$*g}}const P6=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){const{x:t,y:n}=e,i=await T6(e,r);return{x:t+i.x,y:n+i.y,data:i}}}},k6=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){const{x:t,y:n,placement:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:ke=>{let{x:me,y:Ve}=ke;return{x:me,y:Ve}}},...p}=ep(r,e),m={x:t,y:n},g=await r0(e,p),b=$d(Cl(i)),S=Fw(b);let $=m[S],G=m[b];if(s){const ke=S==="y"?"top":"left",me=S==="y"?"bottom":"right",Ve=$+g[ke],Dt=$-g[me];$=OD(Ve,$,Dt)}if(a){const ke=b==="y"?"top":"left",me=b==="y"?"bottom":"right",Ve=G+g[ke],Dt=G-g[me];G=OD(Ve,G,Dt)}const be=l.fn({...e,[S]:$,[b]:G});return{...be,data:{x:be.x-t,y:be.y-n}}}}},F6=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){const{placement:t,rects:n,platform:i,elements:s}=e,{apply:a=()=>{},...l}=ep(r,e),p=await r0(e,l),m=Cl(t),g=Au(t),b=$d(t)==="y",{width:S,height:$}=n.floating;let G,be;m==="top"||m==="bottom"?(G=m,be=g===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(be=m,G=g==="end"?"top":"bottom");const ke=$-p[G],me=S-p[be],Ve=!e.middlewareData.shift;let Dt=ke,ht=me;if(b){const Yt=S-p.left-p.right;ht=g||Ve?fd(me,Yt):Yt}else{const Yt=$-p.top-p.bottom;Dt=g||Ve?fd(ke,Yt):Yt}if(Ve&&!g){const Yt=kh(p.left,0),ir=kh(p.right,0),qr=kh(p.top,0),yr=kh(p.bottom,0);b?ht=S-2*(Yt!==0||ir!==0?Yt+ir:kh(p.left,p.right)):Dt=$-2*(qr!==0||yr!==0?qr+yr:kh(p.top,p.bottom))}await a({...e,availableWidth:ht,availableHeight:Dt});const bt=await i.getDimensions(s.floating);return S!==bt.width||$!==bt.height?{reset:{rects:!0}}:{}}}};function eu(r){var e;return((e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Ol(r){return eu(r).getComputedStyle(r)}const hv=Math.min,jf=Math.max,vg=Math.round;function Bw(r){const e=Ol(r);let t=parseFloat(e.width),n=parseFloat(e.height);const i=r.offsetWidth,s=r.offsetHeight,a=vg(t)!==i||vg(n)!==s;return a&&(t=i,n=s),{width:t,height:n,fallback:a}}function sh(r){return Iw(r)?(r.nodeName||"").toLowerCase():""}let fm;function Nw(){if(fm)return fm;const r=navigator.userAgentData;return r&&Array.isArray(r.brands)?(fm=r.brands.map(e=>e.brand+"/"+e.version).join(" "),fm):navigator.userAgent}function xl(r){return r instanceof eu(r).HTMLElement}function Yc(r){return r instanceof eu(r).Element}function Iw(r){return r instanceof eu(r).Node}function pv(r){return typeof ShadowRoot>"u"?!1:r instanceof eu(r).ShadowRoot||r instanceof ShadowRoot}function n0(r){const{overflow:e,overflowX:t,overflowY:n,display:i}=Ol(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(i)}function _6(r){return["table","td","th"].includes(sh(r))}function xD(r){const e=/firefox/i.test(Nw()),t=Ol(r),n=t.backdropFilter||t.WebkitBackdropFilter;return t.transform!=="none"||t.perspective!=="none"||!!n&&n!=="none"||e&&t.willChange==="filter"||e&&!!t.filter&&t.filter!=="none"||["transform","perspective"].some(i=>t.willChange.includes(i))||["paint","layout","strict","content"].some(i=>{const s=t.contain;return s!=null&&s.includes(i)})}function Mw(){return!/^((?!chrome|android).)*safari/i.test(Nw())}function jO(r){return["html","body","#document"].includes(sh(r))}function Rw(r){return Yc(r)?r:r.contextElement}const Qw={x:1,y:1};function Vp(r){const e=Rw(r);if(!xl(e))return Qw;const t=e.getBoundingClientRect(),{width:n,height:i,fallback:s}=Bw(e);let a=(s?vg(t.width):t.width)/n,l=(s?vg(t.height):t.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function dd(r,e,t,n){var i,s;e===void 0&&(e=!1),t===void 0&&(t=!1);const a=r.getBoundingClientRect(),l=Rw(r);let p=Qw;e&&(n?Yc(n)&&(p=Vp(n)):p=Vp(r));const m=l?eu(l):window,g=!Mw()&&t;let b=(a.left+(g&&((i=m.visualViewport)==null?void 0:i.offsetLeft)||0))/p.x,S=(a.top+(g&&((s=m.visualViewport)==null?void 0:s.offsetTop)||0))/p.y,$=a.width/p.x,G=a.height/p.y;if(l){const be=eu(l),ke=n&&Yc(n)?eu(n):n;let me=be.frameElement;for(;me&&n&&ke!==be;){const Ve=Vp(me),Dt=me.getBoundingClientRect(),ht=getComputedStyle(me);Dt.x+=(me.clientLeft+parseFloat(ht.paddingLeft))*Ve.x,Dt.y+=(me.clientTop+parseFloat(ht.paddingTop))*Ve.y,b*=Ve.x,S*=Ve.y,$*=Ve.x,G*=Ve.y,b+=Dt.x,S+=Dt.y,me=eu(me).frameElement}}return{width:$,height:G,top:S,right:b+$,bottom:S+G,left:b,x:b,y:S}}function Gc(r){return((Iw(r)?r.ownerDocument:r.document)||window.document).documentElement}function i0(r){return Yc(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function jw(r){return dd(Gc(r)).left+i0(r).scrollLeft}function md(r){if(sh(r)==="html")return r;const e=r.assignedSlot||r.parentNode||pv(r)&&r.host||Gc(r);return pv(e)?e.host:e}function Lw(r){const e=md(r);return jO(e)?e.ownerDocument.body:xl(e)&&n0(e)?e:Lw(e)}function Cg(r,e){var t;e===void 0&&(e=[]);const n=Lw(r),i=n===((t=r.ownerDocument)==null?void 0:t.body),s=eu(n);return i?e.concat(s,s.visualViewport||[],n0(n)?n:[]):e.concat(n,Cg(n))}function fv(r,e,t){return e==="viewport"?Qf(function(n,i){const s=eu(n),a=Gc(n),l=s.visualViewport;let p=a.clientWidth,m=a.clientHeight,g=0,b=0;if(l){p=l.width,m=l.height;const S=Mw();(S||!S&&i==="fixed")&&(g=l.offsetLeft,b=l.offsetTop)}return{width:p,height:m,x:g,y:b}}(r,t)):Yc(e)?Qf(function(n,i){const s=dd(n,!0,i==="fixed"),a=s.top+n.clientTop,l=s.left+n.clientLeft,p=xl(n)?Vp(n):{x:1,y:1};return{width:n.clientWidth*p.x,height:n.clientHeight*p.y,x:l*p.x,y:a*p.y}}(e,t)):Qf(function(n){const i=Gc(n),s=i0(n),a=n.ownerDocument.body,l=jf(i.scrollWidth,i.clientWidth,a.scrollWidth,a.clientWidth),p=jf(i.scrollHeight,i.clientHeight,a.scrollHeight,a.clientHeight);let m=-s.scrollLeft+jw(n);const g=-s.scrollTop;return Ol(a).direction==="rtl"&&(m+=jf(i.clientWidth,a.clientWidth)-l),{width:l,height:p,x:m,y:g}}(Gc(r)))}function dv(r){return xl(r)&&Ol(r).position!=="fixed"?r.offsetParent:null}function mv(r){const e=eu(r);let t=dv(r);for(;t&&_6(t)&&Ol(t).position==="static";)t=dv(t);return t&&(sh(t)==="html"||sh(t)==="body"&&Ol(t).position==="static"&&!xD(t))?e:t||function(n){let i=md(n);for(;xl(i)&&!jO(i);){if(xD(i))return i;i=md(i)}return null}(r)||e}function $6(r,e,t){const n=xl(e),i=Gc(e),s=dd(r,!0,t==="fixed",e);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(n||!n&&t!=="fixed")if((sh(e)!=="body"||n0(i))&&(a=i0(e)),xl(e)){const p=dd(e,!0);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}else i&&(l.x=jw(i));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}const B6={getClippingRect:function(r){let{element:e,boundary:t,rootBoundary:n,strategy:i}=r;const s=t==="clippingAncestors"?function(m,g){const b=g.get(m);if(b)return b;let S=Cg(m).filter(ke=>Yc(ke)&&sh(ke)!=="body"),$=null;const G=Ol(m).position==="fixed";let be=G?md(m):m;for(;Yc(be)&&!jO(be);){const ke=Ol(be),me=xD(be);(G?me||$:me||ke.position!=="static"||!$||!["absolute","fixed"].includes($.position))?$=ke:S=S.filter(Ve=>Ve!==be),be=md(be)}return g.set(m,S),S}(e,this._c):[].concat(t),a=[...s,n],l=a[0],p=a.reduce((m,g)=>{const b=fv(e,g,i);return m.top=jf(b.top,m.top),m.right=hv(b.right,m.right),m.bottom=hv(b.bottom,m.bottom),m.left=jf(b.left,m.left),m},fv(e,l,i));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(r){let{rect:e,offsetParent:t,strategy:n}=r;const i=xl(t),s=Gc(t);if(t===s)return e;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const p={x:0,y:0};if((i||!i&&n!=="fixed")&&((sh(t)!=="body"||n0(s))&&(a=i0(t)),xl(t))){const m=dd(t);l=Vp(t),p.x=m.x+t.clientLeft,p.y=m.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-a.scrollLeft*l.x+p.x,y:e.y*l.y-a.scrollTop*l.y+p.y}},isElement:Yc,getDimensions:function(r){return xl(r)?Bw(r):r.getBoundingClientRect()},getOffsetParent:mv,getDocumentElement:Gc,getScale:Vp,async getElementRects(r){let{reference:e,floating:t,strategy:n}=r;const i=this.getOffsetParent||mv,s=this.getDimensions;return{reference:$6(e,await i(t),n),floating:{x:0,y:0,...await s(t)}}},getClientRects:r=>Array.from(r.getClientRects()),isRTL:r=>Ol(r).direction==="rtl"},N6=(r,e,t)=>{const n=new Map,i={platform:B6,...t},s={...i.platform,_c:n};return C6(r,e,{...i,platform:s})},Lh={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:r=>[...r,"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","focus"],delay:{show:0,hide:400}}}};function bD(r,e){let t=Lh.themes[r]||{},n;do n=t[e],typeof n>"u"?t.$extend?t=Lh.themes[t.$extend]||{}:(t=null,n=Lh[e]):t=null;while(t);return n}function I6(r){const e=[r];let t=Lh.themes[r]||{};do t.$extend&&!t.$resetCss?(e.push(t.$extend),t=Lh.themes[t.$extend]||{}):t=null;while(t);return e.map(n=>`v-popper--theme-${n}`)}function gv(r){const e=[r];let t=Lh.themes[r]||{};do t.$extend?(e.push(t.$extend),t=Lh.themes[t.$extend]||{}):t=null;while(t);return e}let Kp=!1;if(typeof window<"u"){Kp=!1;try{const r=Object.defineProperty({},"passive",{get(){Kp=!0}});window.addEventListener("test",null,r)}catch{}}let Xw=!1;typeof window<"u"&&typeof navigator<"u"&&(Xw=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const M6=["auto","top","bottom","left","right"].reduce((r,e)=>r.concat([e,`${e}-start`,`${e}-end`]),[]),yv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Dv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Ov(r,e){const t=r.indexOf(e);t!==-1&&r.splice(t,1)}function sy(){return new Promise(r=>requestAnimationFrame(()=>{requestAnimationFrame(r)}))}const bu=[];let Ph=null;const xv={};function bv(r){let e=xv[r];return e||(e=xv[r]=[]),e}let vD=function(){};typeof window<"u"&&(vD=window.Element);function fs(r){return function(e){return bD(e.theme,r)}}const oy="__floating-vue__popper",Vw=()=>vo({name:"VPopper",provide(){return{[oy]:{parentPopper:this}}},inject:{[oy]:{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:fs("disabled")},positioningDisabled:{type:Boolean,default:fs("positioningDisabled")},placement:{type:String,default:fs("placement"),validator:r=>M6.includes(r)},delay:{type:[String,Number,Object],default:fs("delay")},distance:{type:[Number,String],default:fs("distance")},skidding:{type:[Number,String],default:fs("skidding")},triggers:{type:Array,default:fs("triggers")},showTriggers:{type:[Array,Function],default:fs("showTriggers")},hideTriggers:{type:[Array,Function],default:fs("hideTriggers")},popperTriggers:{type:Array,default:fs("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:fs("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:fs("popperHideTriggers")},container:{type:[String,Object,vD,Boolean],default:fs("container")},boundary:{type:[String,vD],default:fs("boundary")},strategy:{type:String,validator:r=>["absolute","fixed"].includes(r),default:fs("strategy")},autoHide:{type:[Boolean,Function],default:fs("autoHide")},handleResize:{type:Boolean,default:fs("handleResize")},instantMove:{type:Boolean,default:fs("instantMove")},eagerMount:{type:Boolean,default:fs("eagerMount")},popperClass:{type:[String,Array,Object],default:fs("popperClass")},computeTransformOrigin:{type:Boolean,default:fs("computeTransformOrigin")},autoMinSize:{type:Boolean,default:fs("autoMinSize")},autoSize:{type:[Boolean,String],default:fs("autoSize")},autoMaxSize:{type:Boolean,default:fs("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:fs("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:fs("preventOverflow")},overflowPadding:{type:[Number,String],default:fs("overflowPadding")},arrowPadding:{type:[Number,String],default:fs("arrowPadding")},arrowOverflow:{type:Boolean,default:fs("arrowOverflow")},flip:{type:Boolean,default:fs("flip")},shift:{type:Boolean,default:fs("shift")},shiftCrossAxis:{type:Boolean,default:fs("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:fs("noAutoFocus")},disposeTimeout:{type:Number,default:fs("disposeTimeout")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],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},shownChildren:new Set,lastAutoHide:!0}},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 r;return(r=this[oy])==null?void 0:r.parentPopper},hasPopperShowTriggerHover(){var r,e;return((r=this.popperTriggers)==null?void 0:r.includes("hover"))||((e=this.popperShowTriggers)==null?void 0:e.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(r){r?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},...["triggers","positioningDisabled"].reduce((r,e)=>(r[e]="$_refreshListeners",r),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((r,e)=>(r[e]="$_computePosition",r),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(r=>r.toString(36).substring(2,10)).join("_")}`,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:r=null,skipDelay:e=!1,force:t=!1}={}){var n,i;(n=this.parentPopper)!=null&&n.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(t||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(r,e),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:r=null,skipDelay:e=!1}={}){var t;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:e}),this.parentPopper.lockedChild=null)},1e3));return}((t=this.parentPopper)==null?void 0:t.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(r,e),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var r;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((r=this.referenceNode)==null?void 0:r.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const r={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&r.middleware.push(P6({mainAxis:this.distance,crossAxis:this.skidding}));const e=this.placement.startsWith("auto");if(e?r.middleware.push(w6({alignment:this.placement.split("-")[1]??""})):r.placement=this.placement,this.preventOverflow&&(this.shift&&r.middleware.push(k6({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!e&&this.flip&&r.middleware.push(A6({padding:this.overflowPadding,boundary:this.boundary}))),r.middleware.push(S6({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&r.middleware.push({name:"arrowOverflow",fn:({placement:n,rects:i,middlewareData:s})=>{let a;const{centerOffset:l}=s.arrow;return n.startsWith("top")||n.startsWith("bottom")?a=Math.abs(l)>i.reference.width/2:a=Math.abs(l)>i.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const n=this.autoSize?this.autoSize:this.autoMinSize?"min":null;r.middleware.push({name:"autoSize",fn:({rects:i,placement:s,middlewareData:a})=>{var l;if((l=a.autoSize)!=null&&l.skip)return{};let p,m;return s.startsWith("top")||s.startsWith("bottom")?p=i.reference.width:m=i.reference.height,this.$_innerNode.style[n==="min"?"minWidth":n==="max"?"maxWidth":"width"]=p!=null?`${p}px`:null,this.$_innerNode.style[n==="min"?"minHeight":n==="max"?"maxHeight":"height"]=m!=null?`${m}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,r.middleware.push(F6({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:n,availableHeight:i})=>{this.$_innerNode.style.maxWidth=n!=null?`${n}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const t=await N6(this.$_referenceNode,this.$_popperNode,r);Object.assign(this.result,{x:t.x,y:t.y,placement:t.placement,strategy:t.strategy,arrow:{...t.middlewareData.arrow,...t.middlewareData.arrowOverflow}})},$_scheduleShow(r=null,e=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ph&&this.instantMove&&Ph.instantMove&&Ph!==this.parentPopper){Ph.$_applyHide(!0),this.$_applyShow(!0);return}e?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(r=null,e=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Ph=this),e?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(r){const e=this.delay;return parseInt(e&&e[r]||e||0)},async $_applyShow(r=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=r,!this.isShown&&(this.$_ensureTeleport(),await sy(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Cg(this.$_referenceNode),...Cg(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(".v-popper__wrapper"),n=t.parentNode.getBoundingClientRect(),i=e.x+e.width/2-(n.left+t.offsetLeft),s=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${i}px ${s}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const r=this.showGroup;if(r){let e;for(let t=0;t<bu.length;t++)e=bu[t],e.showGroup!==r&&(e.hide(),e.$emit("close-group"))}bu.push(this),document.body.classList.add("v-popper--some-open");for(const e of gv(this.theme))bv(e).push(this),document.body.classList.add(`v-popper--some-open--${e}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await sy(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(r=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=r,Ov(bu,this),bu.length===0&&document.body.classList.remove("v-popper--some-open");for(const t of gv(this.theme)){const n=bv(t);Ov(n,this),n.length===0&&document.body.classList.remove(`v-popper--some-open--${t}`)}Ph===this&&(Ph=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const e=this.disposeTimeout;e!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},e)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await sy(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let r=this.container;if(typeof r=="string"?r=window.document.querySelector(r):r===!1&&(r=this.$_targetNodes[0].parentNode),!r)throw new Error("No container for popover: "+this.container);r.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const r=t=>{this.isShown&&!this.$_hideInProgress||(t.usedByTooltip=!0,!this.$_preventShow&&this.show({event:t}))};this.$_registerTriggerListeners(this.$_targetNodes,yv,this.triggers,this.showTriggers,r),this.$_registerTriggerListeners([this.$_popperNode],yv,this.popperTriggers,this.popperShowTriggers,r);const e=t=>{t.usedByTooltip||this.hide({event:t})};this.$_registerTriggerListeners(this.$_targetNodes,Dv,this.triggers,this.hideTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Dv,this.popperTriggers,this.popperHideTriggers,e)},$_registerEventListeners(r,e,t){this.$_events.push({targetNodes:r,eventType:e,handler:t}),r.forEach(n=>n.addEventListener(e,t,Kp?{passive:!0}:void 0))},$_registerTriggerListeners(r,e,t,n,i){let s=t;n!=null&&(s=typeof n=="function"?n(s):n),s.forEach(a=>{const l=e[a];l&&this.$_registerEventListeners(r,l,i)})},$_removeEventListeners(r){const e=[];this.$_events.forEach(t=>{const{targetNodes:n,eventType:i,handler:s}=t;!r||r===i?n.forEach(a=>a.removeEventListener(i,s)):e.push(t)}),this.$_events=e},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(r,e=!1){this.$_showFrameLocked||(this.hide({event:r}),r.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),e&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(r,e){for(const t of this.$_targetNodes){const n=t.getAttribute(r);n&&(t.removeAttribute(r),t.setAttribute(e,n))}},$_applyAttrsToTarget(r){for(const e of this.$_targetNodes)for(const t in r){const n=r[t];n==null?e.removeAttribute(t):e.setAttribute(t,n)}},$_updateParentShownChildren(r){let e=this.parentPopper;for(;e;)r?e.shownChildren.add(this.randomId):(e.shownChildren.delete(this.randomId),e.$_pendingHide&&e.hide()),e=e.parentPopper},$_isAimingPopper(){const r=this.$_referenceNode.getBoundingClientRect();if(Lf>=r.left&&Lf<=r.right&&Xf>=r.top&&Xf<=r.bottom){const e=this.$_popperNode.getBoundingClientRect(),t=Lf-Bc,n=Xf-Nc,i=e.left+e.width/2-Bc+(e.top+e.height/2)-Nc+e.width+e.height,s=Bc+t*i,a=Nc+n*i;return dm(Bc,Nc,s,a,e.left,e.top,e.left,e.bottom)||dm(Bc,Nc,s,a,e.left,e.top,e.right,e.top)||dm(Bc,Nc,s,a,e.right,e.top,e.right,e.bottom)||dm(Bc,Nc,s,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(Xw?(document.addEventListener("touchstart",vv,Kp?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",Q6,Kp?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",vv,!0),window.addEventListener("click",R6,!0)),window.addEventListener("resize",X6));function vv(r){for(let e=0;e<bu.length;e++){const t=bu[e];try{const n=t.popperNode();t.$_mouseDownContains=n.contains(r.target)}catch{}}}function R6(r){Uw(r)}function Q6(r){Uw(r,!0)}function Uw(r,e=!1){const t={};for(let n=bu.length-1;n>=0;n--){const i=bu[n];try{const s=i.$_containsGlobalTarget=j6(i,r);i.$_pendingHide=!1,requestAnimationFrame(()=>{if(i.$_pendingHide=!1,!t[i.randomId]&&Cv(i,s,r)){if(i.$_handleGlobalClose(r,e),!r.closeAllPopover&&r.closePopover&&s){let l=i.parentPopper;for(;l;)t[l.randomId]=!0,l=l.parentPopper;return}let a=i.parentPopper;for(;a&&Cv(a,a.$_containsGlobalTarget,r);)a.$_handleGlobalClose(r,e),a=a.parentPopper}})}catch{}}}function j6(r,e){const t=r.popperNode();return r.$_mouseDownContains||t.contains(e.target)}function Cv(r,e,t){return t.closeAllPopover||t.closePopover&&e||L6(r,t)&&!e}function L6(r,e){if(typeof r.autoHide=="function"){const t=r.autoHide(e);return r.lastAutoHide=t,t}return r.autoHide}function X6(r){for(let e=0;e<bu.length;e++)bu[e].$_computePosition(r)}let Bc=0,Nc=0,Lf=0,Xf=0;typeof window<"u"&&window.addEventListener("mousemove",r=>{Bc=Lf,Nc=Xf,Lf=r.clientX,Xf=r.clientY},Kp?{passive:!0}:void 0);function dm(r,e,t,n,i,s,a,l){const p=((a-i)*(e-s)-(l-s)*(r-i))/((l-s)*(t-r)-(a-i)*(n-e)),m=((t-r)*(e-s)-(n-e)*(r-i))/((l-s)*(t-r)-(a-i)*(n-e));return p>=0&&p<=1&&m>=0&&m<=1}const V6={extends:Vw()},LO=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t};function U6(r,e,t,n,i,s){return bi(),ns("div",{ref:"reference",class:Fa(["v-popper",{"v-popper--shown":r.slotData.isShown}])},[tc(r.$slots,"default",OA(_C(r.slotData)))],2)}const q6=LO(V6,[["render",U6]]);function z6(){var r=window.navigator.userAgent,e=r.indexOf("MSIE ");if(e>0)return parseInt(r.substring(e+5,r.indexOf(".",e)),10);var t=r.indexOf("Trident/");if(t>0){var n=r.indexOf("rv:");return parseInt(r.substring(n+3,r.indexOf(".",n)),10)}var i=r.indexOf("Edge/");return i>0?parseInt(r.substring(i+5,r.indexOf(".",i)),10):-1}let Bm;function CD(){CD.init||(CD.init=!0,Bm=z6()!==-1)}var s0={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){CD(),Hh(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const r=document.createElement("object");this._resizeObject=r,r.setAttribute("aria-hidden","true"),r.setAttribute("tabindex",-1),r.onload=this.addResizeHandlers,r.type="text/html",Bm&&this.$el.appendChild(r),r.data="about:blank",Bm||this.$el.appendChild(r)},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&&(!Bm&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const W6=hT();lT("data-v-b329ee4c");const Z6={class:"resize-observer",tabindex:"-1"};cT();const Y6=W6((r,e,t,n,i,s)=>(bi(),Zo("div",Z6)));s0.render=Y6;s0.__scopeId="data-v-b329ee4c";s0.__file="src/components/ResizeObserver.vue";const qw=(r="theme")=>({computed:{themeClass(){return I6(this[r])}}}),G6=vo({name:"VPopperContent",components:{ResizeObserver:s0},mixins:[qw()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(r){return r!=null&&!isNaN(r)?`${r}px`:null}}}),H6=["id","aria-hidden","tabindex","data-popper-placement"],J6={ref:"inner",class:"v-popper__inner"},K6=sn("div",{class:"v-popper__arrow-outer"},null,-1),e9=sn("div",{class:"v-popper__arrow-inner"},null,-1),t9=[K6,e9];function r9(r,e,t,n,i,s){const a=Vh("ResizeObserver");return bi(),ns("div",{id:r.popperId,ref:"popover",class:Fa(["v-popper__popper",[r.themeClass,r.classes.popperClass,{"v-popper__popper--shown":r.shown,"v-popper__popper--hidden":!r.shown,"v-popper__popper--show-from":r.classes.showFrom,"v-popper__popper--show-to":r.classes.showTo,"v-popper__popper--hide-from":r.classes.hideFrom,"v-popper__popper--hide-to":r.classes.hideTo,"v-popper__popper--skip-transition":r.skipTransition,"v-popper__popper--arrow-overflow":r.result&&r.result.arrow.overflow,"v-popper__popper--no-positioning":!r.result}]]),style:ml(r.result?{position:r.result.strategy,transform:`translate3d(${Math.round(r.result.x)}px,${Math.round(r.result.y)}px,0)`}:void 0),"aria-hidden":r.shown?"false":"true",tabindex:r.autoHide?0:void 0,"data-popper-placement":r.result?r.result.placement:void 0,onKeyup:e[2]||(e[2]=$P(l=>r.autoHide&&r.$emit("hide"),["esc"]))},[sn("div",{class:"v-popper__backdrop",onClick:e[0]||(e[0]=l=>r.autoHide&&r.$emit("hide"))}),sn("div",{class:"v-popper__wrapper",style:ml(r.result?{transformOrigin:r.result.transformOrigin}:void 0)},[sn("div",J6,[r.mounted?(bi(),ns(ho,{key:0},[sn("div",null,[tc(r.$slots,"default")]),r.handleResize?(bi(),Zo(a,{key:0,onNotify:e[1]||(e[1]=l=>r.$emit("resize",l))})):Eu("",!0)],64)):Eu("",!0)],512),sn("div",{ref:"arrow",class:"v-popper__arrow-container",style:ml(r.result?{left:r.toPx(r.result.arrow.x),top:r.toPx(r.result.arrow.y)}:void 0)},t9,4)],4)],46,H6)}const zw=LO(G6,[["render",r9]]),Ww={methods:{show(...r){return this.$refs.popper.show(...r)},hide(...r){return this.$refs.popper.hide(...r)},dispose(...r){return this.$refs.popper.dispose(...r)},onResize(...r){return this.$refs.popper.onResize(...r)}}},n9=vo({name:"VPopperWrapper",components:{Popper:q6,PopperContent:zw},mixins:[Ww,qw("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(r=>r!==this.$refs.popperContent.$el)}}});function i9(r,e,t,n,i,s){const a=Vh("PopperContent"),l=Vh("Popper");return bi(),Zo(l,{ref:"popper",theme:r.finalTheme,"target-nodes":r.getTargetNodes,"popper-node":()=>r.$refs.popperContent.$el,class:Fa([r.themeClass])},{default:fa(({popperId:p,isShown:m,shouldMountContent:g,skipTransition:b,autoHide:S,show:$,hide:G,handleResize:be,onResize:ke,classes:me,result:Ve})=>[tc(r.$slots,"default",{shown:m,show:$,hide:G}),bs(a,{ref:"popperContent","popper-id":p,theme:r.finalTheme,shown:m,mounted:g,"skip-transition":b,"auto-hide":S,"handle-resize":be,classes:me,result:Ve,onHide:G,onResize:ke},{default:fa(()=>[tc(r.$slots,"popper",{shown:m,hide:G})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}const XO=LO(n9,[["render",i9]]),s9={...XO,name:"VDropdown",vPopperTheme:"dropdown"};({...XO});({...XO});Vw();const o9=s9,a9={"font-mono":"","text-sm":"","cursor-pointer":"",border:"b transparent hover:current",op:"50 hover:100"},u9={"text-sm":"","of-ellipsis":""},l9={"text-xs":"","ml-0.5":"",op30:""},c9={"space-x-4":"",px4:"",py3:""},h9=["onClick"],p9=["href"],f9=sn("div",{"i-carbon-notebook":""},null,-1),d9={border:"t gray-400/20","max-h-60":"","of-auto":"",px4:"",py3:"","text-sm":""},m9=sn("span",{op50:""},"It has been referenced ",-1),g9=sn("span",{op50:""}," times by:",-1),y9={flex:"~ col gap-2","items-start":"",pt3:""},D9=["onClick"],O9=sn("div",{"i-carbon-launch":""},null,-1),x9=vo({__name:"AnalyzerItem",props:{item:{}},setup(r){const e=r,t=as(()=>MC(e.item.name)),n=as(()=>t.value?`[${e.item.name.slice(1,-1).replace(/=""$/,"").replace(/~="/,'="')}]`:e.item.name);function i(s){fetch(`/__open-in-editor?file=${encodeURIComponent(s)}`)}return(s,a)=>{const l=m6,p=ww;return bi(),Zo(wi(o9),{distance:10},{popper:fa(()=>[sn("div",c9,[bs(l,null,{default:fa(({copy:m,copied:g})=>[sn("button",{class:Fa(g?"text-green":"text-dark:50 hover:text-dark dark:text-white:50 dark:hover:text-white"),"text-sm":"",onClick:b=>m(s.item.name)},[sn("div",{class:Fa(g?"i-carbon-checkmark-outline":"i-carbon-copy")},null,2),pa(" "+Gs(g?"Copied":"Copy"),1)],10,h9)]),_:1}),s.item?(bi(),ns("a",{key:0,href:`https://unocss.dev/interactive/?s=${s.item.name}`,target:"_blank","text-sm":"","text-dark:50":"","hover:text-dark":"","dark:text-white:50":"","dark:hover:text-white":""},[f9,pa(" Docs ")],8,p9)):Eu("",!0)]),sn("div",d9,[sn("div",null,[m9,sn("strong",null,Gs(s.item.count),1),g9]),sn("div",y9,[(bi(!0),ns(ho,null,Lc(s.item.modules,m=>(bi(),ns("a",{key:m,"text-sm":"","cursor-pointer":"",op80:"","hover:op100":"",onClick:g=>i(m)},[bs(p,{id:m,"mr-1":""},null,8,["id"]),O9],8,D9))),128))])])]),default:fa(()=>[sn("span",a9,[sn("span",u9,Gs(n.value),1)]),sn("sup",l9,Gs(s.item.count),1)]),_:1})}}}),b9={"p-4":"","space-y-8":""},v9={key:0},C9=sn("div",{"mb-4":"",op50:"",uppercase:"","text-sm":""}," Top 10 Utilities ",-1),S9={"p-4":"","bg-active":""},E9={flex:"~ wrap",gap:"x-2 y-2"},w9={key:1},A9={uppercase:"","text-sm":"","mb-4":"",op50:""},T9={op50:"","text-sm":""},P9={flex:"","flex-wrap":"","gap-2":""},k9={"p-2":"","w-25":"","inline-block":"","of-hidden":"","bg-active":""},F9={"font-mono":"","text-sm":"",op50:"","ws-nowrap":"","of-ellipsis":"","of-hidden":""},_9=sn("div",{"mb-4":"",op50:"",uppercase:"","text-sm":""}," Utilities Usage ",-1),$9={key:0,grid:"~ cols-1 md:cols-2 gap-4"},B9={"text-sm":"","pb-4":""},N9={capitalize:""},I9={op50:"","ml-1":""},M9={flex:"","flex-wrap":"","gap-x-2":"","gap-y-2":""},R9={key:1,op50:""},Q9=vo({__name:"Analyzer",props:{selectors:{},colors:{}},setup(r){const e=r,t=as(()=>[...e.selectors].sort((s,a)=>a.count-s.count)),n=as(()=>(e.colors||[]).map(s=>({...s,name:s.no==="DEFAULT"?`${s.name}`:`${s.name}-${s.no}`})).sort((s,a)=>a.count-s.count)),i=as(()=>t.value.reduce((s,a)=>{const l=a.category,p=s.find(m=>m.name===l);return p?(p.items.push(a),p.count+=a.count):s.push({name:l,count:a.count,items:[a]}),s},[]).sort((s,a)=>a.count-s.count));return(s,a)=>{const l=x9;return bi(),ns("div",b9,[t.value.length>10?(bi(),ns("div",v9,[C9,sn("div",S9,[sn("div",E9,[(bi(!0),ns(ho,null,Lc(t.value.slice(0,10),(p,m)=>(bi(),Zo(l,{key:m,item:p},null,8,["item"]))),128))])])])):Eu("",!0),n.value.length?(bi(),ns("div",w9,[sn("div",A9,[pa(" Color Palette "),sn("sup",T9,Gs(n.value.length),1)]),sn("div",P9,[(bi(!0),ns(ho,null,Lc(n.value,(p,m)=>(bi(),ns("span",{key:m},[sn("div",k9,[bs(l,{item:p},null,8,["item"]),sn("div",F9,Gs(p.color),1),sn("div",{"h-10":"","mt-1":"",style:ml({background:p.color})},null,4)])]))),128))])])):Eu("",!0),sn("div",null,[_9,i.value.length?(bi(),ns("div",$9,[(bi(!0),ns(ho,null,Lc(i.value,(p,m)=>(bi(),ns("div",{key:m,"p-4":"","bg-active":""},[sn("div",B9,[sn("span",N9,Gs(p.name),1),sn("sup",I9,Gs(p.count),1)]),sn("div",M9,[(bi(!0),ns(ho,null,Lc(p.items,(g,b)=>(bi(),Zo(l,{key:b,item:g},null,8,["item"]))),128))])]))),128))])):(bi(),ns("div",R9," No utilities found. "))])])}}}),j9={"h-full":"",flex:"","flex-col":""},L9={p:"4",grid:"~ cols-4 gap-4"},X9=sn("div",{op80:""}," Presets ",-1),V9={op50:"","ws-pre":""},U9={overflow:"auto"},q9=sn("div",{op80:""}," Rules ",-1),z9=sn("span",{op50:""},"dynamic",-1),W9=sn("br",null,null,-1),Z9=sn("span",{op50:""},"static",-1),Y9=sn("div",{op80:""}," Variants ",-1),G9=sn("div",{op80:""}," Shortcuts ",-1),H9={key:0},J9=sn("div",{op80:""}," Config File ",-1),K9=sn("div",{op80:""}," Version ",-1),e4={op50:"","ws-pre":""},t4={border:"t main",p:"x4 y2",grid:"~ cols-4 gap-4"},r4=sn("div",{op80:""}," Included Files ",-1),n4=sn("div",{op80:""}," CSS Size ",-1),i4=sn("span",{op50:""},"gzipped",-1),s4=sn("div",{op80:""}," Matched Rules ",-1),o4=sn("div",{op80:""}," Layers ",-1),a4={op50:"","ws-pre":""},u4=vo({__name:"Overview",setup(r){const e=Zs(null),t=i6(e,"overview-scrolls");MO.execute();const n=Zs(!1),i=Zs("source"),s=d6(as(()=>{var a;return(a=Sp.value)==null?void 0:a.css}),n);return(a,l)=>{const p=ww,m=J5,g=Z5,b=U5,S=j5;return bi(),ns("div",j9,[bs(b,{ref_key:"status",ref:e,p0:""},{default:fa(()=>{var $,G,be,ke,me,Ve,Dt,ht,bt,Yt,ir,qr,yr,kr,Zr,zn,Gn,Ii;return[sn("div",L9,[sn("div",null,[X9,sn("div",V9,Gs((be=(G=($=wi(Vo))==null?void 0:$.config)==null?void 0:G.presets)==null?void 0:be.map(ii=>ii.name).join(`
|
|
275
275
|
`)),1)]),sn("div",U9,[q9,pa(" "+Gs((Ve=(me=(ke=wi(Vo))==null?void 0:ke.config)==null?void 0:me.rulesDynamic)==null?void 0:Ve.length)+" ",1),z9,W9,pa(" "+Gs(Object.keys(((ht=(Dt=wi(Vo))==null?void 0:Dt.config)==null?void 0:ht.rulesStaticMap)||{}).length)+" ",1),Z9]),sn("div",null,[Y9,pa(" "+Gs((ir=(Yt=(bt=wi(Vo))==null?void 0:bt.config)==null?void 0:Yt.variants)==null?void 0:ir.length),1)]),sn("div",null,[G9,pa(" "+Gs((qr=wi(Vo))==null?void 0:qr.config.shortcuts.length),1)]),(yr=wi(Vo))!=null&&yr.configPath?(bi(),ns("div",H9,[J9,bs(p,{id:wi(Vo).configPath},null,8,["id"])])):Eu("",!0),sn("div",null,[K9,sn("div",e4,Gs((kr=wi(Vo))==null?void 0:kr.version),1)])]),sn("div",t4,[sn("div",null,[r4,pa(" "+Gs((Zr=wi(Vo))==null?void 0:Zr.modules.length),1)]),sn("div",null,[n4,pa(" "+Gs(((((zn=wi(Sp))==null?void 0:zn.gzipSize)||0)/1024).toFixed(2))+" KiB ",1),i4]),sn("div",null,[s4,pa(" "+Gs((Gn=wi(Sp))==null?void 0:Gn.matched.length),1)]),sn("div",null,[o4,sn("div",a4,Gs((Ii=wi(Sp))==null?void 0:Ii.layers.join(`
|
|
276
|
-
`)),1)])]),bs(m,{modelValue:wi(i),"onUpdate:modelValue":l[0]||(l[0]=ii=>Hs(i)?i.value=ii:null)},null,8,["modelValue"]),wi(i)==="source"?(bi(),Zo(g,{key:0,border:"t gray-400/20",title:"Output CSS"},{default:fa(()=>[sn("label",null,[bT(sn("input",{"onUpdate:modelValue":l[1]||(l[1]=ii=>Hs(n)?n.value=ii:null),type:"checkbox"},null,512),[[kP,wi(n)]]),pa(" Prettify ")])]),_:1})):Eu("",!0)]}),_:1},512),wi(i)==="source"?(bi(),Zo(S,{key:0,"model-value":wi(s),"read-only":!0,mode:"css",class:"overview-scrolls",style:ml(wi(t))},null,8,["model-value","style"])):(bi(),Zo(Q9,{key:1,"flex-grow":"","overflow-y-auto":"",selectors:wi(Sp).matched,colors:wi(Sp).colors},null,8,["selectors","colors"]))])}}}),l4={};function c4(r,e){const t=u4;return bi(),Zo(t)}const h4=bw(l4,[["render",c4]]),p4=()=>AD(()=>import("./repl-
|
|
276
|
+
`)),1)])]),bs(m,{modelValue:wi(i),"onUpdate:modelValue":l[0]||(l[0]=ii=>Hs(i)?i.value=ii:null)},null,8,["modelValue"]),wi(i)==="source"?(bi(),Zo(g,{key:0,border:"t gray-400/20",title:"Output CSS"},{default:fa(()=>[sn("label",null,[bT(sn("input",{"onUpdate:modelValue":l[1]||(l[1]=ii=>Hs(n)?n.value=ii:null),type:"checkbox"},null,512),[[kP,wi(n)]]),pa(" Prettify ")])]),_:1})):Eu("",!0)]}),_:1},512),wi(i)==="source"?(bi(),Zo(S,{key:0,"model-value":wi(s),"read-only":!0,mode:"css",class:"overview-scrolls",style:ml(wi(t))},null,8,["model-value","style"])):(bi(),Zo(Q9,{key:1,"flex-grow":"","overflow-y-auto":"",selectors:wi(Sp).matched,colors:wi(Sp).colors},null,8,["selectors","colors"]))])}}}),l4={};function c4(r,e){const t=u4;return bi(),Zo(t)}const h4=bw(l4,[["render",c4]]),p4=()=>AD(()=>import("./repl-Qc1X-Pfr.js"),__vite__mapDeps([])),f4=()=>AD(()=>import("./_id_-REIcWYcK.js"),__vite__mapDeps([])),d4=[{name:"repl",path:"/repl",component:p4,props:!0},{name:"index",path:"/",component:h4,props:!0},{name:"module-id",path:"/module/:id",component:f4,props:!0}];/*!
|
|
277
277
|
* vue-router v4.2.5
|
|
278
278
|
* (c) 2023 Eduardo San Martin Morote
|
|
279
279
|
* @license MIT
|
|
280
|
-
*/const Tp=typeof window<"u";function m4(r){return r.__esModule||r[Symbol.toStringTag]==="Module"}const As=Object.assign;function ay(r,e){const t={};for(const n in e){const i=e[n];t[n]=Pu(i)?i.map(r):r(i)}return t}const Vf=()=>{},Pu=Array.isArray,g4=/\/$/,y4=r=>r.replace(g4,"");function uy(r,e,t="/"){let n,i={},s="",a="";const l=e.indexOf("#");let p=e.indexOf("?");return l<p&&l>=0&&(p=-1),p>-1&&(n=e.slice(0,p),s=e.slice(p+1,l>-1?l:e.length),i=r(s)),l>-1&&(n=n||e.slice(0,l),a=e.slice(l,e.length)),n=b4(n??e,t),{fullPath:n+(s&&"?")+s+a,path:n,query:i,hash:a}}function D4(r,e){const t=e.query?r(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function Sv(r,e){return!e||!r.toLowerCase().startsWith(e.toLowerCase())?r:r.slice(e.length)||"/"}function O4(r,e,t){const n=e.matched.length-1,i=t.matched.length-1;return n>-1&&n===i&&ef(e.matched[n],t.matched[i])&&Zw(e.params,t.params)&&r(e.query)===r(t.query)&&e.hash===t.hash}function ef(r,e){return(r.aliasOf||r)===(e.aliasOf||e)}function Zw(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(!x4(r[t],e[t]))return!1;return!0}function x4(r,e){return Pu(r)?Ev(r,e):Pu(e)?Ev(e,r):r===e}function Ev(r,e){return Pu(e)?r.length===e.length&&r.every((t,n)=>t===e[n]):r.length===1&&r[0]===e}function b4(r,e){if(r.startsWith("/"))return r;if(!r)return e;const t=e.split("/"),n=r.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let s=t.length-1,a,l;for(a=0;a<n.length;a++)if(l=n[a],l!==".")if(l==="..")s>1&&s--;else break;return t.slice(0,s).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var gd;(function(r){r.pop="pop",r.push="push"})(gd||(gd={}));var Uf;(function(r){r.back="back",r.forward="forward",r.unknown=""})(Uf||(Uf={}));function v4(r){if(!r)if(Tp){const e=document.querySelector("base");r=e&&e.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),y4(r)}const C4=/^[^#]+#/;function S4(r,e){return r.replace(C4,"#")+e}function E4(r,e){const t=document.documentElement.getBoundingClientRect(),n=r.getBoundingClientRect();return{behavior:e.behavior,left:n.left-t.left-(e.left||0),top:n.top-t.top-(e.top||0)}}const o0=()=>({left:window.pageXOffset,top:window.pageYOffset});function w4(r){let e;if("el"in r){const t=r.el,n=typeof t=="string"&&t.startsWith("#"),i=typeof t=="string"?n?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!i)return;e=E4(i,r)}else e=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function wv(r,e){return(history.state?history.state.position-e:-1)+r}const SD=new Map;function A4(r,e){SD.set(r,e)}function T4(r){const e=SD.get(r);return SD.delete(r),e}let P4=()=>location.protocol+"//"+location.host;function Yw(r,e){const{pathname:t,search:n,hash:i}=e,s=r.indexOf("#");if(s>-1){let l=i.includes(r.slice(s))?r.slice(s).length:1,p=i.slice(l);return p[0]!=="/"&&(p="/"+p),Sv(p,"")}return Sv(t,r)+n+i}function k4(r,e,t,n){let i=[],s=[],a=null;const l=({state:S})=>{const $=Yw(r,location),G=t.value,be=e.value;let ke=0;if(S){if(t.value=$,e.value=S,a&&a===G){a=null;return}ke=be?S.position-be.position:0}else n($);i.forEach(me=>{me(t.value,G,{delta:ke,type:gd.pop,direction:ke?ke>0?Uf.forward:Uf.back:Uf.unknown})})};function p(){a=t.value}function m(S){i.push(S);const $=()=>{const G=i.indexOf(S);G>-1&&i.splice(G,1)};return s.push($),$}function g(){const{history:S}=window;S.state&&S.replaceState(As({},S.state,{scroll:o0()}),"")}function b(){for(const S of s)S();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",g)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",g,{passive:!0}),{pauseListeners:p,listen:m,destroy:b}}function Av(r,e,t,n=!1,i=!1){return{back:r,current:e,forward:t,replaced:n,position:window.history.length,scroll:i?o0():null}}function F4(r){const{history:e,location:t}=window,n={value:Yw(r,t)},i={value:e.state};i.value||s(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(p,m,g){const b=r.indexOf("#"),S=b>-1?(t.host&&document.querySelector("base")?r:r.slice(b))+p:P4()+r+p;try{e[g?"replaceState":"pushState"](m,"",S),i.value=m}catch($){console.error($),t[g?"replace":"assign"](S)}}function a(p,m){const g=As({},e.state,Av(i.value.back,p,i.value.forward,!0),m,{position:i.value.position});s(p,g,!0),n.value=p}function l(p,m){const g=As({},i.value,e.state,{forward:p,scroll:o0()});s(g.current,g,!0);const b=As({},Av(n.value,p,null),{position:g.position+1},m);s(p,b,!1),n.value=p}return{location:n,state:i,push:l,replace:a}}function _4(r){r=v4(r);const e=F4(r),t=k4(r,e.state,e.location,e.replace);function n(s,a=!0){a||t.pauseListeners(),history.go(s)}const i=As({location:"",base:r,go:n,createHref:S4.bind(null,r)},e,t);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function $4(r){return r=location.host?r||location.pathname+location.search:"",r.includes("#")||(r+="#"),_4(r)}function B4(r){return typeof r=="string"||r&&typeof r=="object"}function Gw(r){return typeof r=="string"||typeof r=="symbol"}const $c={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Hw=Symbol("");var Tv;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(Tv||(Tv={}));function tf(r,e){return As(new Error,{type:r,[Hw]:!0},e)}function Gl(r,e){return r instanceof Error&&Hw in r&&(e==null||!!(r.type&e))}const Pv="[^/]+?",N4={sensitive:!1,strict:!1,start:!0,end:!0},I4=/[.+*?^${}()[\]/\\]/g;function M4(r,e){const t=As({},N4,e),n=[];let i=t.start?"^":"";const s=[];for(const m of r){const g=m.length?[]:[90];t.strict&&!m.length&&(i+="/");for(let b=0;b<m.length;b++){const S=m[b];let $=40+(t.sensitive?.25:0);if(S.type===0)b||(i+="/"),i+=S.value.replace(I4,"\\$&"),$+=40;else if(S.type===1){const{value:G,repeatable:be,optional:ke,regexp:me}=S;s.push({name:G,repeatable:be,optional:ke});const Ve=me||Pv;if(Ve!==Pv){$+=10;try{new RegExp(`(${Ve})`)}catch(ht){throw new Error(`Invalid custom RegExp for param "${G}" (${Ve}): `+ht.message)}}let Dt=be?`((?:${Ve})(?:/(?:${Ve}))*)`:`(${Ve})`;b||(Dt=ke&&m.length<2?`(?:/${Dt})`:"/"+Dt),ke&&(Dt+="?"),i+=Dt,$+=20,ke&&($+=-8),be&&($+=-20),Ve===".*"&&($+=-50)}g.push($)}n.push(g)}if(t.strict&&t.end){const m=n.length-1;n[m][n[m].length-1]+=.7000000000000001}t.strict||(i+="/?"),t.end?i+="$":t.strict&&(i+="(?:/|$)");const a=new RegExp(i,t.sensitive?"":"i");function l(m){const g=m.match(a),b={};if(!g)return null;for(let S=1;S<g.length;S++){const $=g[S]||"",G=s[S-1];b[G.name]=$&&G.repeatable?$.split("/"):$}return b}function p(m){let g="",b=!1;for(const S of r){(!b||!g.endsWith("/"))&&(g+="/"),b=!1;for(const $ of S)if($.type===0)g+=$.value;else if($.type===1){const{value:G,repeatable:be,optional:ke}=$,me=G in m?m[G]:"";if(Pu(me)&&!be)throw new Error(`Provided param "${G}" is an array but it is not repeatable (* or + modifiers)`);const Ve=Pu(me)?me.join("/"):me;if(!Ve)if(ke)S.length<2&&(g.endsWith("/")?g=g.slice(0,-1):b=!0);else throw new Error(`Missing required param "${G}"`);g+=Ve}}return g||"/"}return{re:a,score:n,keys:s,parse:l,stringify:p}}function R4(r,e){let t=0;for(;t<r.length&&t<e.length;){const n=e[t]-r[t];if(n)return n;t++}return r.length<e.length?r.length===1&&r[0]===80?-1:1:r.length>e.length?e.length===1&&e[0]===80?1:-1:0}function Q4(r,e){let t=0;const n=r.score,i=e.score;for(;t<n.length&&t<i.length;){const s=R4(n[t],i[t]);if(s)return s;t++}if(Math.abs(i.length-n.length)===1){if(kv(n))return 1;if(kv(i))return-1}return i.length-n.length}function kv(r){const e=r[r.length-1];return r.length>0&&e[e.length-1]<0}const j4={type:0,value:""},L4=/[a-zA-Z0-9_]/;function X4(r){if(!r)return[[]];if(r==="/")return[[j4]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function e($){throw new Error(`ERR (${t})/"${m}": ${$}`)}let t=0,n=t;const i=[];let s;function a(){s&&i.push(s),s=[]}let l=0,p,m="",g="";function b(){m&&(t===0?s.push({type:0,value:m}):t===1||t===2||t===3?(s.length>1&&(p==="*"||p==="+")&&e(`A repeatable param (${m}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:m,regexp:g,repeatable:p==="*"||p==="+",optional:p==="*"||p==="?"})):e("Invalid state to consume buffer"),m="")}function S(){m+=p}for(;l<r.length;){if(p=r[l++],p==="\\"&&t!==2){n=t,t=4;continue}switch(t){case 0:p==="/"?(m&&b(),a()):p===":"?(b(),t=1):S();break;case 4:S(),t=n;break;case 1:p==="("?t=2:L4.test(p)?S():(b(),t=0,p!=="*"&&p!=="?"&&p!=="+"&&l--);break;case 2:p===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+p:t=3:g+=p;break;case 3:b(),t=0,p!=="*"&&p!=="?"&&p!=="+"&&l--,g="";break;default:e("Unknown state");break}}return t===2&&e(`Unfinished custom RegExp for param "${m}"`),b(),a(),i}function V4(r,e,t){const n=M4(X4(r.path),t),i=As(n,{record:r,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function U4(r,e){const t=[],n=new Map;e=$v({strict:!1,end:!0,sensitive:!1},e);function i(g){return n.get(g)}function s(g,b,S){const $=!S,G=q4(g);G.aliasOf=S&&S.record;const be=$v(e,g),ke=[G];if("alias"in g){const Dt=typeof g.alias=="string"?[g.alias]:g.alias;for(const ht of Dt)ke.push(As({},G,{components:S?S.record.components:G.components,path:ht,aliasOf:S?S.record:G}))}let me,Ve;for(const Dt of ke){const{path:ht}=Dt;if(b&&ht[0]!=="/"){const bt=b.record.path,Yt=bt[bt.length-1]==="/"?"":"/";Dt.path=b.record.path+(ht&&Yt+ht)}if(me=V4(Dt,b,be),S?S.alias.push(me):(Ve=Ve||me,Ve!==me&&Ve.alias.push(me),$&&g.name&&!_v(me)&&a(g.name)),G.children){const bt=G.children;for(let Yt=0;Yt<bt.length;Yt++)s(bt[Yt],me,S&&S.children[Yt])}S=S||me,(me.record.components&&Object.keys(me.record.components).length||me.record.name||me.record.redirect)&&p(me)}return Ve?()=>{a(Ve)}:Vf}function a(g){if(Gw(g)){const b=n.get(g);b&&(n.delete(g),t.splice(t.indexOf(b),1),b.children.forEach(a),b.alias.forEach(a))}else{const b=t.indexOf(g);b>-1&&(t.splice(b,1),g.record.name&&n.delete(g.record.name),g.children.forEach(a),g.alias.forEach(a))}}function l(){return t}function p(g){let b=0;for(;b<t.length&&Q4(g,t[b])>=0&&(g.record.path!==t[b].record.path||!Jw(g,t[b]));)b++;t.splice(b,0,g),g.record.name&&!_v(g)&&n.set(g.record.name,g)}function m(g,b){let S,$={},G,be;if("name"in g&&g.name){if(S=n.get(g.name),!S)throw tf(1,{location:g});be=S.record.name,$=As(Fv(b.params,S.keys.filter(Ve=>!Ve.optional).map(Ve=>Ve.name)),g.params&&Fv(g.params,S.keys.map(Ve=>Ve.name))),G=S.stringify($)}else if("path"in g)G=g.path,S=t.find(Ve=>Ve.re.test(G)),S&&($=S.parse(G),be=S.record.name);else{if(S=b.name?n.get(b.name):t.find(Ve=>Ve.re.test(b.path)),!S)throw tf(1,{location:g,currentLocation:b});be=S.record.name,$=As({},b.params,g.params),G=S.stringify($)}const ke=[];let me=S;for(;me;)ke.unshift(me.record),me=me.parent;return{name:be,path:G,params:$,matched:ke,meta:W4(ke)}}return r.forEach(g=>s(g)),{addRoute:s,resolve:m,removeRoute:a,getRoutes:l,getRecordMatcher:i}}function Fv(r,e){const t={};for(const n of e)n in r&&(t[n]=r[n]);return t}function q4(r){return{path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:void 0,beforeEnter:r.beforeEnter,props:z4(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}}}function z4(r){const e={},t=r.props||!1;if("component"in r)e.default=t;else for(const n in r.components)e[n]=typeof t=="object"?t[n]:t;return e}function _v(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function W4(r){return r.reduce((e,t)=>As(e,t.meta),{})}function $v(r,e){const t={};for(const n in r)t[n]=n in e?e[n]:r[n];return t}function Jw(r,e){return e.children.some(t=>t===r||Jw(r,t))}const Kw=/#/g,Z4=/&/g,Y4=/\//g,G4=/=/g,H4=/\?/g,eA=/\+/g,J4=/%5B/g,K4=/%5D/g,tA=/%5E/g,e7=/%60/g,rA=/%7B/g,t7=/%7C/g,nA=/%7D/g,r7=/%20/g;function VO(r){return encodeURI(""+r).replace(t7,"|").replace(J4,"[").replace(K4,"]")}function n7(r){return VO(r).replace(rA,"{").replace(nA,"}").replace(tA,"^")}function ED(r){return VO(r).replace(eA,"%2B").replace(r7,"+").replace(Kw,"%23").replace(Z4,"%26").replace(e7,"`").replace(rA,"{").replace(nA,"}").replace(tA,"^")}function i7(r){return ED(r).replace(G4,"%3D")}function s7(r){return VO(r).replace(Kw,"%23").replace(H4,"%3F")}function o7(r){return r==null?"":s7(r).replace(Y4,"%2F")}function Sg(r){try{return decodeURIComponent(""+r)}catch{}return""+r}function a7(r){const e={};if(r===""||r==="?")return e;const n=(r[0]==="?"?r.slice(1):r).split("&");for(let i=0;i<n.length;++i){const s=n[i].replace(eA," "),a=s.indexOf("="),l=Sg(a<0?s:s.slice(0,a)),p=a<0?null:Sg(s.slice(a+1));if(l in e){let m=e[l];Pu(m)||(m=e[l]=[m]),m.push(p)}else e[l]=p}return e}function Bv(r){let e="";for(let t in r){const n=r[t];if(t=i7(t),n==null){n!==void 0&&(e+=(e.length?"&":"")+t);continue}(Pu(n)?n.map(s=>s&&ED(s)):[n&&ED(n)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function u7(r){const e={};for(const t in r){const n=r[t];n!==void 0&&(e[t]=Pu(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return e}const l7=Symbol(""),Nv=Symbol(""),UO=Symbol(""),qO=Symbol(""),wD=Symbol("");function vf(){let r=[];function e(n){return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}function t(){r=[]}return{add:e,list:()=>r.slice(),reset:t}}function Qc(r,e,t,n,i){const s=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const p=b=>{b===!1?l(tf(4,{from:t,to:e})):b instanceof Error?l(b):B4(b)?l(tf(2,{from:e,to:b})):(s&&n.enterCallbacks[i]===s&&typeof b=="function"&&s.push(b),a())},m=r.call(n&&n.instances[i],e,t,p);let g=Promise.resolve(m);r.length<3&&(g=g.then(p)),g.catch(b=>l(b))})}function ly(r,e,t,n){const i=[];for(const s of r)for(const a in s.components){let l=s.components[a];if(!(e!=="beforeRouteEnter"&&!s.instances[a]))if(c7(l)){const m=(l.__vccOpts||l)[e];m&&i.push(Qc(m,t,n,s,a))}else{let p=l();i.push(()=>p.then(m=>{if(!m)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${s.path}"`));const g=m4(m)?m.default:m;s.components[a]=g;const S=(g.__vccOpts||g)[e];return S&&Qc(S,t,n,s,a)()}))}}return i}function c7(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function Iv(r){const e=gl(UO),t=gl(qO),n=as(()=>e.resolve(wi(r.to))),i=as(()=>{const{matched:p}=n.value,{length:m}=p,g=p[m-1],b=t.matched;if(!g||!b.length)return-1;const S=b.findIndex(ef.bind(null,g));if(S>-1)return S;const $=Mv(p[m-2]);return m>1&&Mv(g)===$&&b[b.length-1].path!==$?b.findIndex(ef.bind(null,p[m-2])):S}),s=as(()=>i.value>-1&&d7(t.params,n.value.params)),a=as(()=>i.value>-1&&i.value===t.matched.length-1&&Zw(t.params,n.value.params));function l(p={}){return f7(p)?e[wi(r.replace)?"replace":"push"](wi(r.to)).catch(Vf):Promise.resolve()}return{route:n,href:as(()=>n.value.href),isActive:s,isExactActive:a,navigate:l}}const h7=vo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Iv,setup(r,{slots:e}){const t=Dd(Iv(r)),{options:n}=gl(UO),i=as(()=>({[Rv(r.activeClass,n.linkActiveClass,"router-link-active")]:t.isActive,[Rv(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&e.default(t);return r.custom?s:ZD("a",{"aria-current":t.isExactActive?r.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:i.value},s)}}}),p7=h7;function f7(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const e=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return r.preventDefault&&r.preventDefault(),!0}}function d7(r,e){for(const t in e){const n=e[t],i=r[t];if(typeof n=="string"){if(n!==i)return!1}else if(!Pu(i)||i.length!==n.length||n.some((s,a)=>s!==i[a]))return!1}return!0}function Mv(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const Rv=(r,e,t)=>r??e??t,m7=vo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:e,slots:t}){const n=gl(wD),i=as(()=>r.route||n.value),s=gl(Nv,0),a=as(()=>{let m=wi(s);const{matched:g}=i.value;let b;for(;(b=g[m])&&!b.components;)m++;return m}),l=as(()=>i.value.matched[a.value]);ym(Nv,as(()=>a.value+1)),ym(l7,l),ym(wD,i);const p=Zs();return Ro(()=>[p.value,l.value,r.name],([m,g,b],[S,$,G])=>{g&&(g.instances[b]=m,$&&$!==g&&m&&m===S&&(g.leaveGuards.size||(g.leaveGuards=$.leaveGuards),g.updateGuards.size||(g.updateGuards=$.updateGuards))),m&&g&&(!$||!ef(g,$)||!S)&&(g.enterCallbacks[b]||[]).forEach(be=>be(m))},{flush:"post"}),()=>{const m=i.value,g=r.name,b=l.value,S=b&&b.components[g];if(!S)return Qv(t.default,{Component:S,route:m});const $=b.props[g],G=$?$===!0?m.params:typeof $=="function"?$(m):$:null,ke=ZD(S,As({},G,e,{onVnodeUnmounted:me=>{me.component.isUnmounted&&(b.instances[g]=null)},ref:p}));return Qv(t.default,{Component:ke,route:m})||ke}}});function Qv(r,e){if(!r)return null;const t=r(e);return t.length===1?t[0]:t}const g7=m7;function y7(r){const e=U4(r.routes,r),t=r.parseQuery||a7,n=r.stringifyQuery||Bv,i=r.history,s=vf(),a=vf(),l=vf(),p=Np($c);let m=$c;Tp&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=ay.bind(null,Sr=>""+Sr),b=ay.bind(null,o7),S=ay.bind(null,Sg);function $(Sr,cn){let zr,In;return Gw(Sr)?(zr=e.getRecordMatcher(Sr),In=cn):In=Sr,e.addRoute(In,zr)}function G(Sr){const cn=e.getRecordMatcher(Sr);cn&&e.removeRoute(cn)}function be(){return e.getRoutes().map(Sr=>Sr.record)}function ke(Sr){return!!e.getRecordMatcher(Sr)}function me(Sr,cn){if(cn=As({},cn||p.value),typeof Sr=="string"){const Zt=uy(t,Sr,cn.path),dr=e.resolve({path:Zt.path},cn),Fr=i.createHref(Zt.fullPath);return As(Zt,dr,{params:S(dr.params),hash:Sg(Zt.hash),redirectedFrom:void 0,href:Fr})}let zr;if("path"in Sr)zr=As({},Sr,{path:uy(t,Sr.path,cn.path).path});else{const Zt=As({},Sr.params);for(const dr in Zt)Zt[dr]==null&&delete Zt[dr];zr=As({},Sr,{params:b(Zt)}),cn.params=b(cn.params)}const In=e.resolve(zr,cn),Ki=Sr.hash||"";In.params=g(S(In.params));const tt=D4(n,As({},Sr,{hash:n7(Ki),path:In.path})),gt=i.createHref(tt);return As({fullPath:tt,hash:Ki,query:n===Bv?u7(Sr.query):Sr.query||{}},In,{redirectedFrom:void 0,href:gt})}function Ve(Sr){return typeof Sr=="string"?uy(t,Sr,p.value.path):As({},Sr)}function Dt(Sr,cn){if(m!==Sr)return tf(8,{from:cn,to:Sr})}function ht(Sr){return ir(Sr)}function bt(Sr){return ht(As(Ve(Sr),{replace:!0}))}function Yt(Sr){const cn=Sr.matched[Sr.matched.length-1];if(cn&&cn.redirect){const{redirect:zr}=cn;let In=typeof zr=="function"?zr(Sr):zr;return typeof In=="string"&&(In=In.includes("?")||In.includes("#")?In=Ve(In):{path:In},In.params={}),As({query:Sr.query,hash:Sr.hash,params:"path"in In?{}:Sr.params},In)}}function ir(Sr,cn){const zr=m=me(Sr),In=p.value,Ki=Sr.state,tt=Sr.force,gt=Sr.replace===!0,Zt=Yt(zr);if(Zt)return ir(As(Ve(Zt),{state:typeof Zt=="object"?As({},Ki,Zt.state):Ki,force:tt,replace:gt}),cn||zr);const dr=zr;dr.redirectedFrom=cn;let Fr;return!tt&&O4(n,In,zr)&&(Fr=tf(16,{to:dr,from:In}),Ui(In,In,!0,!1)),(Fr?Promise.resolve(Fr):kr(dr,In)).catch(Lr=>Gl(Lr)?Gl(Lr,2)?Lr:$i(Lr):jn(Lr,dr,In)).then(Lr=>{if(Lr){if(Gl(Lr,2))return ir(As({replace:gt},Ve(Lr.to),{state:typeof Lr.to=="object"?As({},Ki,Lr.to.state):Ki,force:tt}),cn||dr)}else Lr=zn(dr,In,!0,gt,Ki);return Zr(dr,In,Lr),Lr})}function qr(Sr,cn){const zr=Dt(Sr,cn);return zr?Promise.reject(zr):Promise.resolve()}function yr(Sr){const cn=us.values().next().value;return cn&&typeof cn.runWithContext=="function"?cn.runWithContext(Sr):Sr()}function kr(Sr,cn){let zr;const[In,Ki,tt]=D7(Sr,cn);zr=ly(In.reverse(),"beforeRouteLeave",Sr,cn);for(const Zt of In)Zt.leaveGuards.forEach(dr=>{zr.push(Qc(dr,Sr,cn))});const gt=qr.bind(null,Sr,cn);return zr.push(gt),Ts(zr).then(()=>{zr=[];for(const Zt of s.list())zr.push(Qc(Zt,Sr,cn));return zr.push(gt),Ts(zr)}).then(()=>{zr=ly(Ki,"beforeRouteUpdate",Sr,cn);for(const Zt of Ki)Zt.updateGuards.forEach(dr=>{zr.push(Qc(dr,Sr,cn))});return zr.push(gt),Ts(zr)}).then(()=>{zr=[];for(const Zt of tt)if(Zt.beforeEnter)if(Pu(Zt.beforeEnter))for(const dr of Zt.beforeEnter)zr.push(Qc(dr,Sr,cn));else zr.push(Qc(Zt.beforeEnter,Sr,cn));return zr.push(gt),Ts(zr)}).then(()=>(Sr.matched.forEach(Zt=>Zt.enterCallbacks={}),zr=ly(tt,"beforeRouteEnter",Sr,cn),zr.push(gt),Ts(zr))).then(()=>{zr=[];for(const Zt of a.list())zr.push(Qc(Zt,Sr,cn));return zr.push(gt),Ts(zr)}).catch(Zt=>Gl(Zt,8)?Zt:Promise.reject(Zt))}function Zr(Sr,cn,zr){l.list().forEach(In=>yr(()=>In(Sr,cn,zr)))}function zn(Sr,cn,zr,In,Ki){const tt=Dt(Sr,cn);if(tt)return tt;const gt=cn===$c,Zt=Tp?history.state:{};zr&&(In||gt?i.replace(Sr.fullPath,As({scroll:gt&&Zt&&Zt.scroll},Ki)):i.push(Sr.fullPath,Ki)),p.value=Sr,Ui(Sr,cn,zr,gt),$i()}let Gn;function Ii(){Gn||(Gn=i.listen((Sr,cn,zr)=>{if(!Xs.listening)return;const In=me(Sr),Ki=Yt(In);if(Ki){ir(As(Ki,{replace:!0}),In).catch(Vf);return}m=In;const tt=p.value;Tp&&A4(wv(tt.fullPath,zr.delta),o0()),kr(In,tt).catch(gt=>Gl(gt,12)?gt:Gl(gt,2)?(ir(gt.to,In).then(Zt=>{Gl(Zt,20)&&!zr.delta&&zr.type===gd.pop&&i.go(-1,!1)}).catch(Vf),Promise.reject()):(zr.delta&&i.go(-zr.delta,!1),jn(gt,In,tt))).then(gt=>{gt=gt||zn(In,tt,!1),gt&&(zr.delta&&!Gl(gt,8)?i.go(-zr.delta,!1):zr.type===gd.pop&&Gl(gt,20)&&i.go(-1,!1)),Zr(In,tt,gt)}).catch(Vf)}))}let ii=vf(),Sn=vf(),Wn;function jn(Sr,cn,zr){$i(Sr);const In=Sn.list();return In.length?In.forEach(Ki=>Ki(Sr,cn,zr)):console.error(Sr),Promise.reject(Sr)}function Bn(){return Wn&&p.value!==$c?Promise.resolve():new Promise((Sr,cn)=>{ii.add([Sr,cn])})}function $i(Sr){return Wn||(Wn=!Sr,Ii(),ii.list().forEach(([cn,zr])=>Sr?zr(Sr):cn()),ii.reset()),Sr}function Ui(Sr,cn,zr,In){const{scrollBehavior:Ki}=r;if(!Tp||!Ki)return Promise.resolve();const tt=!zr&&T4(wv(Sr.fullPath,0))||(In||!zr)&&history.state&&history.state.scroll||null;return Hh().then(()=>Ki(Sr,cn,tt)).then(gt=>gt&&w4(gt)).catch(gt=>jn(gt,Sr,cn))}const os=Sr=>i.go(Sr);let ds;const us=new Set,Xs={currentRoute:p,listening:!0,addRoute:$,removeRoute:G,hasRoute:ke,getRoutes:be,resolve:me,options:r,push:ht,replace:bt,go:os,back:()=>os(-1),forward:()=>os(1),beforeEach:s.add,beforeResolve:a.add,afterEach:l.add,onError:Sn.add,isReady:Bn,install(Sr){const cn=this;Sr.component("RouterLink",p7),Sr.component("RouterView",g7),Sr.config.globalProperties.$router=cn,Object.defineProperty(Sr.config.globalProperties,"$route",{enumerable:!0,get:()=>wi(p)}),Tp&&!ds&&p.value===$c&&(ds=!0,ht(i.location).catch(Ki=>{}));const zr={};for(const Ki in $c)Object.defineProperty(zr,Ki,{get:()=>p.value[Ki],enumerable:!0});Sr.provide(UO,cn),Sr.provide(qO,iC(zr)),Sr.provide(wD,p);const In=Sr.unmount;us.add(Sr),Sr.unmount=function(){us.delete(Sr),us.size<1&&(m=$c,Gn&&Gn(),Gn=null,p.value=$c,ds=!1,Wn=!1),In()}}};function Ts(Sr){return Sr.reduce((cn,zr)=>cn.then(()=>yr(zr)),Promise.resolve())}return Xs}function D7(r,e){const t=[],n=[],i=[],s=Math.max(e.matched.length,r.matched.length);for(let a=0;a<s;a++){const l=e.matched[a];l&&(r.matched.find(m=>ef(m,l))?n.push(l):t.push(l));const p=r.matched[a];p&&(e.matched.find(m=>ef(m,p))||i.push(p))}return[t,n,i]}function O7(){return gl(qO)}const x7=vo({__name:"FileIcon",props:{id:{}},setup(r){const e=r,t=as(()=>e.id.toLowerCase().replace(/\?.*$/,"").split(/\./g).pop()),n=as(()=>{switch(t.value){case"vue":return"i-vscode-icons-file-type-vue";case"html":case"htm":return"i-vscode-icons-file-type-html";case"svelte":return"i-vscode-icons-file-type-svelte";case"ts":case"mts":case"tsx":case"cts":return"i-vscode-icons-file-type-typescript-official";case"js":case"jsx":case"mjs":case"cjs":return"i-vscode-icons-file-type-js-official";case"json":return"i-vscode-icons-file-type-json-official";case"md":case"markdown":return"i-vscode-icons-file-type-markdown";default:return"i-carbon-document-blank"}});return(i,s)=>(bi(),ns("div",{class:Fa(wi(n))},null,2))}}),b7={open:""},v7={"cursor-default":"","select-none":"","text-sm":"",truncate:"",p:"y1"},C7={"ml-1":""},S7=vo({__name:"ModuleTreeNode",props:{node:{},icon:{default:"i-carbon-folder"}},setup(r){const e=O7();return(t,n)=>{const i=Vh("ModuleTreeNode",!0),s=x7,a=Vh("RouterLink");return bi(),ns("details",b7,[sn("summary",v7,[sn("div",{class:Fa(t.icon)},null,2),pa(" "+Gs(t.node.name),1)]),(bi(!0),ns(ho,null,Lc(Object.entries(t.node.children),l=>(bi(),Zo(i,{key:l[0],ml4:"",node:l[1]},null,8,["node"]))),128)),(bi(!0),ns(ho,null,Lc(t.node.items,l=>(bi(),ns("div",{key:l.full,ml4:"","ws-nowrap":""},[bs(a,{block:"","text-sm":"",p:"x2 y1",ml1:"",rounded:"",to:`/module/${encodeURIComponent(l.full)}`,class:Fa({"bg-active":l.full===wi(e).params.id})},{default:fa(()=>[bs(s,{id:l.path},null,8,["id"]),sn("span",C7,Gs(l.path.split("/").pop()),1)]),_:2},1032,["to","class"])]))),128))])}}}),E7="/__unocss/favicon.svg",w7={p:"x4 y3",border:"b main",flex:"","children:my-auto":""},A7=sn("div",{flex:"","flex-auto":"","children:my-auto":"","ws-nowrap":""},[sn("img",{src:E7,filter:"","dark:invert":"","inline-block":"",h:"1.3em",m:"r-1.5"}),sn("div",{"of-hidden":""},[pa(" Inspector "),sn("sup",{"text-teal5":"","bg-teal5:10":"",p:"x1.5 y0.5",rounded:"",italic:""},"beta")])],-1),T7=vo({__name:"NarBar",setup(r){const e=s_(),t=document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function n(i){if(!t||!i){e.value=!e.value;return}const s=i.clientX,a=i.clientY,l=Math.hypot(Math.max(s,innerWidth-s),Math.max(a,innerHeight-a));document.startViewTransition(async()=>{e.value=!e.value,await Hh()}).ready.then(()=>{const m=[`circle(0px at ${s}px ${a}px)`,`circle(${l}px at ${s}px ${a}px)`];document.documentElement.animate({clipPath:e.value?[...m].reverse():m},{duration:400,easing:"ease-in",pseudoElement:e.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}return(i,s)=>(bi(),ns("nav",w7,[A7,sn("button",{"text-lg":"","i-carbon-sun":"","dark:i-carbon-moon":"",onClick:n})]))}}),P7={"h-full":"",border:"r main"},k7={"of-hidden":""},F7={pt:"4",flex:"~ col gap-3"},_7=sn("div",{"i-carbon-dashboard":""},null,-1),$7=sn("span",null," Overview ",-1),B7=sn("div",{"i-carbon-terminal":""},null,-1),N7=sn("span",null," REPL ",-1),I7=sn("div",{border:"b main"},null,-1),M7={class:"scrolls scrolls-sidebar"},R7=vo({__name:"Sidebar",setup(r){return(e,t)=>{const n=T7,i=Vh("RouterLink"),s=S7;return bi(),ns("div",P7,[sn("div",k7,[bs(n),sn("div",F7,[bs(i,{block:"",to:"/","text-sm":"",m:"l-3.7"},{default:fa(()=>[_7,$7]),_:1}),bs(i,{block:"",to:"/repl","text-sm":"",m:"l-3.7"},{default:fa(()=>[B7,N7]),_:1}),I7])]),sn("div",M7,[Object.keys(wi(Ep).workspace.children).length?(bi(),Zo(s,{key:0,node:wi(Ep).workspace,p:"l3 t4",icon:"i-carbon-portfolio"},null,8,["node"])):Eu("",!0),Object.keys(wi(Ep).root.children).length?(bi(),Zo(s,{key:1,node:wi(Ep).root,p:"l3 t4",icon:"i-carbon-vmdk-disk"},null,8,["node"])):Eu("",!0),Object.keys(wi(Ep).nodeModules.children).length?(bi(),Zo(s,{key:2,node:wi(Ep).nodeModules,p:"l3 t4",icon:"i-carbon-categories"},null,8,["node"])):Eu("",!0)])])}}}),Q7={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((r,e)=>(r[e.id]=e)&&r,{})}},methods:{updatePaneComponents(){this.panes.forEach(r=>{r.update&&r.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[r.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(r,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(r){this.touch.mouseDown&&(r.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(r)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(r,e){"ontouchstart"in window&&(r.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(r,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(r,e){let t=0;this.panes=this.panes.map((n,i)=>(n.size=i===e?n.max:n.min,i!==e&&(t+=n.min),n)),this.panes[e].size-=t,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},onPaneClick(r,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(r){const e=this.container.getBoundingClientRect(),{clientX:t,clientY:n}="ontouchstart"in window&&r.touches?r.touches[0]:r;return{x:t-e.left,y:n-e.top}},getCurrentDragPercentage(r){r=r[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(r=e-r),r*100/e},calculatePanesSize(r){const e=this.touch.activeSplitter;let t={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const n=0+(this.pushOtherPanes?0:t.prevPanesSize),i=100-(this.pushOtherPanes?0:t.nextPanesSize),s=Math.max(Math.min(this.getCurrentDragPercentage(r),i),n);let a=[e,e+1],l=this.panes[a[0]]||null,p=this.panes[a[1]]||null;const m=l.max<100&&s>=l.max+t.prevPanesSize,g=p.max<100&&s<=100-(p.max+this.sumNextPanesSize(e+1));if(m||g){m?(l.size=l.max,p.size=Math.max(100-l.max-t.prevPanesSize-t.nextPanesSize,0)):(l.size=Math.max(100-p.max-t.prevPanesSize-this.sumNextPanesSize(e+1),0),p.size=p.max);return}if(this.pushOtherPanes){const b=this.doPushOtherPanes(t,s);if(!b)return;({sums:t,panesToResize:a}=b),l=this.panes[a[0]]||null,p=this.panes[a[1]]||null}l!==null&&(l.size=Math.min(Math.max(s-t.prevPanesSize-t.prevReachedMinPanes,l.min),l.max)),p!==null&&(p.size=Math.min(Math.max(100-s-t.nextPanesSize-t.nextReachedMinPanes,p.min),p.max))},doPushOtherPanes(r,e){const t=this.touch.activeSplitter,n=[t,t+1];return e<r.prevPanesSize+this.panes[n[0]].min&&(n[0]=this.findPrevExpandedPane(t).index,r.prevReachedMinPanes=0,n[0]<t&&this.panes.forEach((i,s)=>{s>n[0]&&s<=t&&(i.size=i.min,r.prevReachedMinPanes+=i.min)}),r.prevPanesSize=this.sumPrevPanesSize(n[0]),n[0]===void 0)?(r.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((i,s)=>{s>0&&s<=t&&(i.size=i.min,r.prevReachedMinPanes+=i.min)}),this.panes[n[1]].size=100-r.prevReachedMinPanes-this.panes[0].min-r.prevPanesSize-r.nextPanesSize,null):e>100-r.nextPanesSize-this.panes[n[1]].min&&(n[1]=this.findNextExpandedPane(t).index,r.nextReachedMinPanes=0,n[1]>t+1&&this.panes.forEach((i,s)=>{s>t&&s<n[1]&&(i.size=i.min,r.nextReachedMinPanes+=i.min)}),r.nextPanesSize=this.sumNextPanesSize(n[1]-1),n[1]===void 0)?(r.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((i,s)=>{s<this.panesCount-1&&s>=t+1&&(i.size=i.min,r.nextReachedMinPanes+=i.min)}),this.panes[n[0]].size=100-r.prevPanesSize-r.nextReachedMinPanes-this.panes[this.panesCount-1].min-r.nextPanesSize,null):{sums:r,panesToResize:n}},sumPrevPanesSize(r){return this.panes.reduce((e,t,n)=>e+(n<r?t.size:0),0)},sumNextPanesSize(r){return this.panes.reduce((e,t,n)=>e+(n>r+1?t.size:0),0)},findPrevExpandedPane(r){return[...this.panes].reverse().find(e=>e.index<r&&e.size>e.min)||{}},findNextExpandedPane(r){return this.panes.find(e=>e.index>r+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(r=>{const e=r.classList.contains("splitpanes__pane"),t=r.classList.contains("splitpanes__splitter");!e&&!t&&(r.parentNode.removeChild(r),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(r,e,t=!1){const n=r-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),t||(i.onmousedown=s=>this.onMouseDown(s,n),typeof window<"u"&&"ontouchstart"in window&&(i.ontouchstart=s=>this.onMouseDown(s,n)),i.onclick=s=>this.onSplitterClick(s,n+1)),this.dblClickSplitter&&(i.ondblclick=s=>this.onSplitterDblClick(s,n+1)),e.parentNode.insertBefore(i,e)},removeSplitter(r){r.onmousedown=void 0,r.onclick=void 0,r.ondblclick=void 0,r.parentNode.removeChild(r)},redoSplitters(){const r=Array.from(this.container.children);r.forEach(t=>{t.className.includes("splitpanes__splitter")&&this.removeSplitter(t)});let e=0;r.forEach(t=>{t.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,t,!0):e&&this.addSplitter(e,t),e++)})},requestUpdate({target:r,...e}){const t=this.indexedPanes[r._.uid];Object.entries(e).forEach(([n,i])=>t[n]=i)},onPaneAdd(r){let e=-1;Array.from(r.$el.parentNode.children).some(i=>(i.className.includes("splitpanes__pane")&&e++,i===r.$el));const t=parseFloat(r.minSize),n=parseFloat(r.maxSize);this.panes.splice(e,0,{id:r._.uid,index:e,min:isNaN(t)?0:t,max:isNaN(n)?100:n,size:r.size===null?null:parseFloat(r.size),givenSize:r.size,update:r.update}),this.panes.forEach((i,s)=>i.index=s),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},onPaneRemove(r){const e=this.panes.findIndex(n=>n.id===r._.uid),t=this.panes.splice(e,1)[0];this.panes.forEach((n,i)=>n.index=i),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...t,index:e}}),this.$emit("pane-remove",{removed:t,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},resetPaneSizes(r={}){!r.addedPane&&!r.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(r):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const r=100/this.panesCount;let e=0;const t=[],n=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(r,i.max),i.min),e-=i.size,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)}),e>.1&&this.readjustSizes(e,t,n)},initialPanesSizing(){let r=100;const e=[],t=[];let n=0;this.panes.forEach(s=>{r-=s.size,s.size!==null&&n++,s.size>=s.max&&e.push(s.id),s.size<=s.min&&t.push(s.id)});let i=100;r>.1&&(this.panes.forEach(s=>{s.size===null&&(s.size=Math.max(Math.min(r/(this.panesCount-n),s.max),s.min)),i-=s.size}),i>.1&&this.readjustSizes(r,e,t))},equalizeAfterAddOrRemove({addedPane:r,removedPane:e}={}){let t=100/this.panesCount,n=0;const i=[],s=[];r&&r.givenSize!==null&&(t=(100-r.givenSize)/(this.panesCount-1)),this.panes.forEach(a=>{n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&s.push(a.id)}),!(Math.abs(n)<.1)&&(this.panes.forEach(a=>{r&&r.givenSize!==null&&r.id===a.id||(a.size=Math.max(Math.min(t,a.max),a.min)),n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&s.push(a.id)}),n>.1&&this.readjustSizes(n,i,s))},readjustSizes(r,e,t){let n;r>0?n=r/(this.panesCount-e.length):n=r/(this.panesCount-t.length),this.panes.forEach((i,s)=>{if(r>0&&!e.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),l=a-i.size;r-=l,i.size=a}else if(!t.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),l=a-i.size;r-=l,i.size=a}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(r)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(r){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,t)=>{e.ondblclick=r?n=>this.onSplitterDblClick(n,t):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return ZD("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},j7=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t},L7={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(r){this.style=r}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(r){this.requestUpdate({target:this,size:r})},minSizeNumber(r){this.requestUpdate({target:this,min:r})},maxSizeNumber(r){this.requestUpdate({target:this,max:r})}}};function X7(r,e,t,n,i,s){return bi(),ns("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=a=>s.onPaneClick(a,r._.uid)),style:ml(r.style)},[tc(r.$slots,"default")],4)}const jv=j7(L7,[["render",X7]]),V7={"h-screen":"","w-screen":"","of-hidden":""},U7={"h-full":"","of-hidden":""},q7=vo({__name:"App",setup(r){return(e,t)=>{const n=R7,i=Vh("RouterView");return bi(),ns("div",V7,[bs(wi(Q7),null,{default:fa(()=>[bs(wi(jv),{size:"20","push-other-panes":!1},{default:fa(()=>[bs(n)]),_:1}),bs(wi(jv),{size:"80"},{default:fa(()=>[sn("div",U7,[bs(i)])]),_:1})]),_:1})])}}}),iA=IP(q7);iA.use(y7({history:$4(),routes:d4}));iA.mount("#app");export{d6 as A,as as B,Eu as C,Q9 as D,Gs as E,jv as F,ww as G,J5 as H,O7 as I,Q7 as M,U5 as _,Y7 as a,d2 as b,ns as c,vo as d,sn as e,eM as f,bs as g,wi as h,Hs as i,bT as j,pa as k,Z5 as l,j5 as m,ml as n,bi as o,bw as p,Zo as q,Zs as r,MC as s,z7 as t,i6 as u,kP as v,fa as w,K7 as x,eT as y,Z7 as z};
|
|
280
|
+
*/const Tp=typeof window<"u";function m4(r){return r.__esModule||r[Symbol.toStringTag]==="Module"}const As=Object.assign;function ay(r,e){const t={};for(const n in e){const i=e[n];t[n]=Pu(i)?i.map(r):r(i)}return t}const Vf=()=>{},Pu=Array.isArray,g4=/\/$/,y4=r=>r.replace(g4,"");function uy(r,e,t="/"){let n,i={},s="",a="";const l=e.indexOf("#");let p=e.indexOf("?");return l<p&&l>=0&&(p=-1),p>-1&&(n=e.slice(0,p),s=e.slice(p+1,l>-1?l:e.length),i=r(s)),l>-1&&(n=n||e.slice(0,l),a=e.slice(l,e.length)),n=b4(n??e,t),{fullPath:n+(s&&"?")+s+a,path:n,query:i,hash:a}}function D4(r,e){const t=e.query?r(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function Sv(r,e){return!e||!r.toLowerCase().startsWith(e.toLowerCase())?r:r.slice(e.length)||"/"}function O4(r,e,t){const n=e.matched.length-1,i=t.matched.length-1;return n>-1&&n===i&&ef(e.matched[n],t.matched[i])&&Zw(e.params,t.params)&&r(e.query)===r(t.query)&&e.hash===t.hash}function ef(r,e){return(r.aliasOf||r)===(e.aliasOf||e)}function Zw(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(!x4(r[t],e[t]))return!1;return!0}function x4(r,e){return Pu(r)?Ev(r,e):Pu(e)?Ev(e,r):r===e}function Ev(r,e){return Pu(e)?r.length===e.length&&r.every((t,n)=>t===e[n]):r.length===1&&r[0]===e}function b4(r,e){if(r.startsWith("/"))return r;if(!r)return e;const t=e.split("/"),n=r.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let s=t.length-1,a,l;for(a=0;a<n.length;a++)if(l=n[a],l!==".")if(l==="..")s>1&&s--;else break;return t.slice(0,s).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var gd;(function(r){r.pop="pop",r.push="push"})(gd||(gd={}));var Uf;(function(r){r.back="back",r.forward="forward",r.unknown=""})(Uf||(Uf={}));function v4(r){if(!r)if(Tp){const e=document.querySelector("base");r=e&&e.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),y4(r)}const C4=/^[^#]+#/;function S4(r,e){return r.replace(C4,"#")+e}function E4(r,e){const t=document.documentElement.getBoundingClientRect(),n=r.getBoundingClientRect();return{behavior:e.behavior,left:n.left-t.left-(e.left||0),top:n.top-t.top-(e.top||0)}}const o0=()=>({left:window.pageXOffset,top:window.pageYOffset});function w4(r){let e;if("el"in r){const t=r.el,n=typeof t=="string"&&t.startsWith("#"),i=typeof t=="string"?n?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!i)return;e=E4(i,r)}else e=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function wv(r,e){return(history.state?history.state.position-e:-1)+r}const SD=new Map;function A4(r,e){SD.set(r,e)}function T4(r){const e=SD.get(r);return SD.delete(r),e}let P4=()=>location.protocol+"//"+location.host;function Yw(r,e){const{pathname:t,search:n,hash:i}=e,s=r.indexOf("#");if(s>-1){let l=i.includes(r.slice(s))?r.slice(s).length:1,p=i.slice(l);return p[0]!=="/"&&(p="/"+p),Sv(p,"")}return Sv(t,r)+n+i}function k4(r,e,t,n){let i=[],s=[],a=null;const l=({state:S})=>{const $=Yw(r,location),G=t.value,be=e.value;let ke=0;if(S){if(t.value=$,e.value=S,a&&a===G){a=null;return}ke=be?S.position-be.position:0}else n($);i.forEach(me=>{me(t.value,G,{delta:ke,type:gd.pop,direction:ke?ke>0?Uf.forward:Uf.back:Uf.unknown})})};function p(){a=t.value}function m(S){i.push(S);const $=()=>{const G=i.indexOf(S);G>-1&&i.splice(G,1)};return s.push($),$}function g(){const{history:S}=window;S.state&&S.replaceState(As({},S.state,{scroll:o0()}),"")}function b(){for(const S of s)S();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",g)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",g,{passive:!0}),{pauseListeners:p,listen:m,destroy:b}}function Av(r,e,t,n=!1,i=!1){return{back:r,current:e,forward:t,replaced:n,position:window.history.length,scroll:i?o0():null}}function F4(r){const{history:e,location:t}=window,n={value:Yw(r,t)},i={value:e.state};i.value||s(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(p,m,g){const b=r.indexOf("#"),S=b>-1?(t.host&&document.querySelector("base")?r:r.slice(b))+p:P4()+r+p;try{e[g?"replaceState":"pushState"](m,"",S),i.value=m}catch($){console.error($),t[g?"replace":"assign"](S)}}function a(p,m){const g=As({},e.state,Av(i.value.back,p,i.value.forward,!0),m,{position:i.value.position});s(p,g,!0),n.value=p}function l(p,m){const g=As({},i.value,e.state,{forward:p,scroll:o0()});s(g.current,g,!0);const b=As({},Av(n.value,p,null),{position:g.position+1},m);s(p,b,!1),n.value=p}return{location:n,state:i,push:l,replace:a}}function _4(r){r=v4(r);const e=F4(r),t=k4(r,e.state,e.location,e.replace);function n(s,a=!0){a||t.pauseListeners(),history.go(s)}const i=As({location:"",base:r,go:n,createHref:S4.bind(null,r)},e,t);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function $4(r){return r=location.host?r||location.pathname+location.search:"",r.includes("#")||(r+="#"),_4(r)}function B4(r){return typeof r=="string"||r&&typeof r=="object"}function Gw(r){return typeof r=="string"||typeof r=="symbol"}const $c={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Hw=Symbol("");var Tv;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(Tv||(Tv={}));function tf(r,e){return As(new Error,{type:r,[Hw]:!0},e)}function Gl(r,e){return r instanceof Error&&Hw in r&&(e==null||!!(r.type&e))}const Pv="[^/]+?",N4={sensitive:!1,strict:!1,start:!0,end:!0},I4=/[.+*?^${}()[\]/\\]/g;function M4(r,e){const t=As({},N4,e),n=[];let i=t.start?"^":"";const s=[];for(const m of r){const g=m.length?[]:[90];t.strict&&!m.length&&(i+="/");for(let b=0;b<m.length;b++){const S=m[b];let $=40+(t.sensitive?.25:0);if(S.type===0)b||(i+="/"),i+=S.value.replace(I4,"\\$&"),$+=40;else if(S.type===1){const{value:G,repeatable:be,optional:ke,regexp:me}=S;s.push({name:G,repeatable:be,optional:ke});const Ve=me||Pv;if(Ve!==Pv){$+=10;try{new RegExp(`(${Ve})`)}catch(ht){throw new Error(`Invalid custom RegExp for param "${G}" (${Ve}): `+ht.message)}}let Dt=be?`((?:${Ve})(?:/(?:${Ve}))*)`:`(${Ve})`;b||(Dt=ke&&m.length<2?`(?:/${Dt})`:"/"+Dt),ke&&(Dt+="?"),i+=Dt,$+=20,ke&&($+=-8),be&&($+=-20),Ve===".*"&&($+=-50)}g.push($)}n.push(g)}if(t.strict&&t.end){const m=n.length-1;n[m][n[m].length-1]+=.7000000000000001}t.strict||(i+="/?"),t.end?i+="$":t.strict&&(i+="(?:/|$)");const a=new RegExp(i,t.sensitive?"":"i");function l(m){const g=m.match(a),b={};if(!g)return null;for(let S=1;S<g.length;S++){const $=g[S]||"",G=s[S-1];b[G.name]=$&&G.repeatable?$.split("/"):$}return b}function p(m){let g="",b=!1;for(const S of r){(!b||!g.endsWith("/"))&&(g+="/"),b=!1;for(const $ of S)if($.type===0)g+=$.value;else if($.type===1){const{value:G,repeatable:be,optional:ke}=$,me=G in m?m[G]:"";if(Pu(me)&&!be)throw new Error(`Provided param "${G}" is an array but it is not repeatable (* or + modifiers)`);const Ve=Pu(me)?me.join("/"):me;if(!Ve)if(ke)S.length<2&&(g.endsWith("/")?g=g.slice(0,-1):b=!0);else throw new Error(`Missing required param "${G}"`);g+=Ve}}return g||"/"}return{re:a,score:n,keys:s,parse:l,stringify:p}}function R4(r,e){let t=0;for(;t<r.length&&t<e.length;){const n=e[t]-r[t];if(n)return n;t++}return r.length<e.length?r.length===1&&r[0]===80?-1:1:r.length>e.length?e.length===1&&e[0]===80?1:-1:0}function Q4(r,e){let t=0;const n=r.score,i=e.score;for(;t<n.length&&t<i.length;){const s=R4(n[t],i[t]);if(s)return s;t++}if(Math.abs(i.length-n.length)===1){if(kv(n))return 1;if(kv(i))return-1}return i.length-n.length}function kv(r){const e=r[r.length-1];return r.length>0&&e[e.length-1]<0}const j4={type:0,value:""},L4=/[a-zA-Z0-9_]/;function X4(r){if(!r)return[[]];if(r==="/")return[[j4]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function e($){throw new Error(`ERR (${t})/"${m}": ${$}`)}let t=0,n=t;const i=[];let s;function a(){s&&i.push(s),s=[]}let l=0,p,m="",g="";function b(){m&&(t===0?s.push({type:0,value:m}):t===1||t===2||t===3?(s.length>1&&(p==="*"||p==="+")&&e(`A repeatable param (${m}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:m,regexp:g,repeatable:p==="*"||p==="+",optional:p==="*"||p==="?"})):e("Invalid state to consume buffer"),m="")}function S(){m+=p}for(;l<r.length;){if(p=r[l++],p==="\\"&&t!==2){n=t,t=4;continue}switch(t){case 0:p==="/"?(m&&b(),a()):p===":"?(b(),t=1):S();break;case 4:S(),t=n;break;case 1:p==="("?t=2:L4.test(p)?S():(b(),t=0,p!=="*"&&p!=="?"&&p!=="+"&&l--);break;case 2:p===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+p:t=3:g+=p;break;case 3:b(),t=0,p!=="*"&&p!=="?"&&p!=="+"&&l--,g="";break;default:e("Unknown state");break}}return t===2&&e(`Unfinished custom RegExp for param "${m}"`),b(),a(),i}function V4(r,e,t){const n=M4(X4(r.path),t),i=As(n,{record:r,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function U4(r,e){const t=[],n=new Map;e=$v({strict:!1,end:!0,sensitive:!1},e);function i(g){return n.get(g)}function s(g,b,S){const $=!S,G=q4(g);G.aliasOf=S&&S.record;const be=$v(e,g),ke=[G];if("alias"in g){const Dt=typeof g.alias=="string"?[g.alias]:g.alias;for(const ht of Dt)ke.push(As({},G,{components:S?S.record.components:G.components,path:ht,aliasOf:S?S.record:G}))}let me,Ve;for(const Dt of ke){const{path:ht}=Dt;if(b&&ht[0]!=="/"){const bt=b.record.path,Yt=bt[bt.length-1]==="/"?"":"/";Dt.path=b.record.path+(ht&&Yt+ht)}if(me=V4(Dt,b,be),S?S.alias.push(me):(Ve=Ve||me,Ve!==me&&Ve.alias.push(me),$&&g.name&&!_v(me)&&a(g.name)),G.children){const bt=G.children;for(let Yt=0;Yt<bt.length;Yt++)s(bt[Yt],me,S&&S.children[Yt])}S=S||me,(me.record.components&&Object.keys(me.record.components).length||me.record.name||me.record.redirect)&&p(me)}return Ve?()=>{a(Ve)}:Vf}function a(g){if(Gw(g)){const b=n.get(g);b&&(n.delete(g),t.splice(t.indexOf(b),1),b.children.forEach(a),b.alias.forEach(a))}else{const b=t.indexOf(g);b>-1&&(t.splice(b,1),g.record.name&&n.delete(g.record.name),g.children.forEach(a),g.alias.forEach(a))}}function l(){return t}function p(g){let b=0;for(;b<t.length&&Q4(g,t[b])>=0&&(g.record.path!==t[b].record.path||!Jw(g,t[b]));)b++;t.splice(b,0,g),g.record.name&&!_v(g)&&n.set(g.record.name,g)}function m(g,b){let S,$={},G,be;if("name"in g&&g.name){if(S=n.get(g.name),!S)throw tf(1,{location:g});be=S.record.name,$=As(Fv(b.params,S.keys.filter(Ve=>!Ve.optional).map(Ve=>Ve.name)),g.params&&Fv(g.params,S.keys.map(Ve=>Ve.name))),G=S.stringify($)}else if("path"in g)G=g.path,S=t.find(Ve=>Ve.re.test(G)),S&&($=S.parse(G),be=S.record.name);else{if(S=b.name?n.get(b.name):t.find(Ve=>Ve.re.test(b.path)),!S)throw tf(1,{location:g,currentLocation:b});be=S.record.name,$=As({},b.params,g.params),G=S.stringify($)}const ke=[];let me=S;for(;me;)ke.unshift(me.record),me=me.parent;return{name:be,path:G,params:$,matched:ke,meta:W4(ke)}}return r.forEach(g=>s(g)),{addRoute:s,resolve:m,removeRoute:a,getRoutes:l,getRecordMatcher:i}}function Fv(r,e){const t={};for(const n of e)n in r&&(t[n]=r[n]);return t}function q4(r){return{path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:void 0,beforeEnter:r.beforeEnter,props:z4(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}}}function z4(r){const e={},t=r.props||!1;if("component"in r)e.default=t;else for(const n in r.components)e[n]=typeof t=="object"?t[n]:t;return e}function _v(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function W4(r){return r.reduce((e,t)=>As(e,t.meta),{})}function $v(r,e){const t={};for(const n in r)t[n]=n in e?e[n]:r[n];return t}function Jw(r,e){return e.children.some(t=>t===r||Jw(r,t))}const Kw=/#/g,Z4=/&/g,Y4=/\//g,G4=/=/g,H4=/\?/g,eA=/\+/g,J4=/%5B/g,K4=/%5D/g,tA=/%5E/g,e7=/%60/g,rA=/%7B/g,t7=/%7C/g,nA=/%7D/g,r7=/%20/g;function VO(r){return encodeURI(""+r).replace(t7,"|").replace(J4,"[").replace(K4,"]")}function n7(r){return VO(r).replace(rA,"{").replace(nA,"}").replace(tA,"^")}function ED(r){return VO(r).replace(eA,"%2B").replace(r7,"+").replace(Kw,"%23").replace(Z4,"%26").replace(e7,"`").replace(rA,"{").replace(nA,"}").replace(tA,"^")}function i7(r){return ED(r).replace(G4,"%3D")}function s7(r){return VO(r).replace(Kw,"%23").replace(H4,"%3F")}function o7(r){return r==null?"":s7(r).replace(Y4,"%2F")}function Sg(r){try{return decodeURIComponent(""+r)}catch{}return""+r}function a7(r){const e={};if(r===""||r==="?")return e;const n=(r[0]==="?"?r.slice(1):r).split("&");for(let i=0;i<n.length;++i){const s=n[i].replace(eA," "),a=s.indexOf("="),l=Sg(a<0?s:s.slice(0,a)),p=a<0?null:Sg(s.slice(a+1));if(l in e){let m=e[l];Pu(m)||(m=e[l]=[m]),m.push(p)}else e[l]=p}return e}function Bv(r){let e="";for(let t in r){const n=r[t];if(t=i7(t),n==null){n!==void 0&&(e+=(e.length?"&":"")+t);continue}(Pu(n)?n.map(s=>s&&ED(s)):[n&&ED(n)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function u7(r){const e={};for(const t in r){const n=r[t];n!==void 0&&(e[t]=Pu(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return e}const l7=Symbol(""),Nv=Symbol(""),UO=Symbol(""),qO=Symbol(""),wD=Symbol("");function vf(){let r=[];function e(n){return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}function t(){r=[]}return{add:e,list:()=>r.slice(),reset:t}}function Qc(r,e,t,n,i){const s=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const p=b=>{b===!1?l(tf(4,{from:t,to:e})):b instanceof Error?l(b):B4(b)?l(tf(2,{from:e,to:b})):(s&&n.enterCallbacks[i]===s&&typeof b=="function"&&s.push(b),a())},m=r.call(n&&n.instances[i],e,t,p);let g=Promise.resolve(m);r.length<3&&(g=g.then(p)),g.catch(b=>l(b))})}function ly(r,e,t,n){const i=[];for(const s of r)for(const a in s.components){let l=s.components[a];if(!(e!=="beforeRouteEnter"&&!s.instances[a]))if(c7(l)){const m=(l.__vccOpts||l)[e];m&&i.push(Qc(m,t,n,s,a))}else{let p=l();i.push(()=>p.then(m=>{if(!m)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${s.path}"`));const g=m4(m)?m.default:m;s.components[a]=g;const S=(g.__vccOpts||g)[e];return S&&Qc(S,t,n,s,a)()}))}}return i}function c7(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function Iv(r){const e=gl(UO),t=gl(qO),n=as(()=>e.resolve(wi(r.to))),i=as(()=>{const{matched:p}=n.value,{length:m}=p,g=p[m-1],b=t.matched;if(!g||!b.length)return-1;const S=b.findIndex(ef.bind(null,g));if(S>-1)return S;const $=Mv(p[m-2]);return m>1&&Mv(g)===$&&b[b.length-1].path!==$?b.findIndex(ef.bind(null,p[m-2])):S}),s=as(()=>i.value>-1&&d7(t.params,n.value.params)),a=as(()=>i.value>-1&&i.value===t.matched.length-1&&Zw(t.params,n.value.params));function l(p={}){return f7(p)?e[wi(r.replace)?"replace":"push"](wi(r.to)).catch(Vf):Promise.resolve()}return{route:n,href:as(()=>n.value.href),isActive:s,isExactActive:a,navigate:l}}const h7=vo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Iv,setup(r,{slots:e}){const t=Dd(Iv(r)),{options:n}=gl(UO),i=as(()=>({[Rv(r.activeClass,n.linkActiveClass,"router-link-active")]:t.isActive,[Rv(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&e.default(t);return r.custom?s:ZD("a",{"aria-current":t.isExactActive?r.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:i.value},s)}}}),p7=h7;function f7(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const e=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return r.preventDefault&&r.preventDefault(),!0}}function d7(r,e){for(const t in e){const n=e[t],i=r[t];if(typeof n=="string"){if(n!==i)return!1}else if(!Pu(i)||i.length!==n.length||n.some((s,a)=>s!==i[a]))return!1}return!0}function Mv(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const Rv=(r,e,t)=>r??e??t,m7=vo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:e,slots:t}){const n=gl(wD),i=as(()=>r.route||n.value),s=gl(Nv,0),a=as(()=>{let m=wi(s);const{matched:g}=i.value;let b;for(;(b=g[m])&&!b.components;)m++;return m}),l=as(()=>i.value.matched[a.value]);ym(Nv,as(()=>a.value+1)),ym(l7,l),ym(wD,i);const p=Zs();return Ro(()=>[p.value,l.value,r.name],([m,g,b],[S,$,G])=>{g&&(g.instances[b]=m,$&&$!==g&&m&&m===S&&(g.leaveGuards.size||(g.leaveGuards=$.leaveGuards),g.updateGuards.size||(g.updateGuards=$.updateGuards))),m&&g&&(!$||!ef(g,$)||!S)&&(g.enterCallbacks[b]||[]).forEach(be=>be(m))},{flush:"post"}),()=>{const m=i.value,g=r.name,b=l.value,S=b&&b.components[g];if(!S)return Qv(t.default,{Component:S,route:m});const $=b.props[g],G=$?$===!0?m.params:typeof $=="function"?$(m):$:null,ke=ZD(S,As({},G,e,{onVnodeUnmounted:me=>{me.component.isUnmounted&&(b.instances[g]=null)},ref:p}));return Qv(t.default,{Component:ke,route:m})||ke}}});function Qv(r,e){if(!r)return null;const t=r(e);return t.length===1?t[0]:t}const g7=m7;function y7(r){const e=U4(r.routes,r),t=r.parseQuery||a7,n=r.stringifyQuery||Bv,i=r.history,s=vf(),a=vf(),l=vf(),p=Np($c);let m=$c;Tp&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=ay.bind(null,Sr=>""+Sr),b=ay.bind(null,o7),S=ay.bind(null,Sg);function $(Sr,cn){let zr,In;return Gw(Sr)?(zr=e.getRecordMatcher(Sr),In=cn):In=Sr,e.addRoute(In,zr)}function G(Sr){const cn=e.getRecordMatcher(Sr);cn&&e.removeRoute(cn)}function be(){return e.getRoutes().map(Sr=>Sr.record)}function ke(Sr){return!!e.getRecordMatcher(Sr)}function me(Sr,cn){if(cn=As({},cn||p.value),typeof Sr=="string"){const Zt=uy(t,Sr,cn.path),dr=e.resolve({path:Zt.path},cn),Fr=i.createHref(Zt.fullPath);return As(Zt,dr,{params:S(dr.params),hash:Sg(Zt.hash),redirectedFrom:void 0,href:Fr})}let zr;if("path"in Sr)zr=As({},Sr,{path:uy(t,Sr.path,cn.path).path});else{const Zt=As({},Sr.params);for(const dr in Zt)Zt[dr]==null&&delete Zt[dr];zr=As({},Sr,{params:b(Zt)}),cn.params=b(cn.params)}const In=e.resolve(zr,cn),Ki=Sr.hash||"";In.params=g(S(In.params));const tt=D4(n,As({},Sr,{hash:n7(Ki),path:In.path})),gt=i.createHref(tt);return As({fullPath:tt,hash:Ki,query:n===Bv?u7(Sr.query):Sr.query||{}},In,{redirectedFrom:void 0,href:gt})}function Ve(Sr){return typeof Sr=="string"?uy(t,Sr,p.value.path):As({},Sr)}function Dt(Sr,cn){if(m!==Sr)return tf(8,{from:cn,to:Sr})}function ht(Sr){return ir(Sr)}function bt(Sr){return ht(As(Ve(Sr),{replace:!0}))}function Yt(Sr){const cn=Sr.matched[Sr.matched.length-1];if(cn&&cn.redirect){const{redirect:zr}=cn;let In=typeof zr=="function"?zr(Sr):zr;return typeof In=="string"&&(In=In.includes("?")||In.includes("#")?In=Ve(In):{path:In},In.params={}),As({query:Sr.query,hash:Sr.hash,params:"path"in In?{}:Sr.params},In)}}function ir(Sr,cn){const zr=m=me(Sr),In=p.value,Ki=Sr.state,tt=Sr.force,gt=Sr.replace===!0,Zt=Yt(zr);if(Zt)return ir(As(Ve(Zt),{state:typeof Zt=="object"?As({},Ki,Zt.state):Ki,force:tt,replace:gt}),cn||zr);const dr=zr;dr.redirectedFrom=cn;let Fr;return!tt&&O4(n,In,zr)&&(Fr=tf(16,{to:dr,from:In}),Ui(In,In,!0,!1)),(Fr?Promise.resolve(Fr):kr(dr,In)).catch(Lr=>Gl(Lr)?Gl(Lr,2)?Lr:$i(Lr):jn(Lr,dr,In)).then(Lr=>{if(Lr){if(Gl(Lr,2))return ir(As({replace:gt},Ve(Lr.to),{state:typeof Lr.to=="object"?As({},Ki,Lr.to.state):Ki,force:tt}),cn||dr)}else Lr=zn(dr,In,!0,gt,Ki);return Zr(dr,In,Lr),Lr})}function qr(Sr,cn){const zr=Dt(Sr,cn);return zr?Promise.reject(zr):Promise.resolve()}function yr(Sr){const cn=us.values().next().value;return cn&&typeof cn.runWithContext=="function"?cn.runWithContext(Sr):Sr()}function kr(Sr,cn){let zr;const[In,Ki,tt]=D7(Sr,cn);zr=ly(In.reverse(),"beforeRouteLeave",Sr,cn);for(const Zt of In)Zt.leaveGuards.forEach(dr=>{zr.push(Qc(dr,Sr,cn))});const gt=qr.bind(null,Sr,cn);return zr.push(gt),Ts(zr).then(()=>{zr=[];for(const Zt of s.list())zr.push(Qc(Zt,Sr,cn));return zr.push(gt),Ts(zr)}).then(()=>{zr=ly(Ki,"beforeRouteUpdate",Sr,cn);for(const Zt of Ki)Zt.updateGuards.forEach(dr=>{zr.push(Qc(dr,Sr,cn))});return zr.push(gt),Ts(zr)}).then(()=>{zr=[];for(const Zt of tt)if(Zt.beforeEnter)if(Pu(Zt.beforeEnter))for(const dr of Zt.beforeEnter)zr.push(Qc(dr,Sr,cn));else zr.push(Qc(Zt.beforeEnter,Sr,cn));return zr.push(gt),Ts(zr)}).then(()=>(Sr.matched.forEach(Zt=>Zt.enterCallbacks={}),zr=ly(tt,"beforeRouteEnter",Sr,cn),zr.push(gt),Ts(zr))).then(()=>{zr=[];for(const Zt of a.list())zr.push(Qc(Zt,Sr,cn));return zr.push(gt),Ts(zr)}).catch(Zt=>Gl(Zt,8)?Zt:Promise.reject(Zt))}function Zr(Sr,cn,zr){l.list().forEach(In=>yr(()=>In(Sr,cn,zr)))}function zn(Sr,cn,zr,In,Ki){const tt=Dt(Sr,cn);if(tt)return tt;const gt=cn===$c,Zt=Tp?history.state:{};zr&&(In||gt?i.replace(Sr.fullPath,As({scroll:gt&&Zt&&Zt.scroll},Ki)):i.push(Sr.fullPath,Ki)),p.value=Sr,Ui(Sr,cn,zr,gt),$i()}let Gn;function Ii(){Gn||(Gn=i.listen((Sr,cn,zr)=>{if(!Xs.listening)return;const In=me(Sr),Ki=Yt(In);if(Ki){ir(As(Ki,{replace:!0}),In).catch(Vf);return}m=In;const tt=p.value;Tp&&A4(wv(tt.fullPath,zr.delta),o0()),kr(In,tt).catch(gt=>Gl(gt,12)?gt:Gl(gt,2)?(ir(gt.to,In).then(Zt=>{Gl(Zt,20)&&!zr.delta&&zr.type===gd.pop&&i.go(-1,!1)}).catch(Vf),Promise.reject()):(zr.delta&&i.go(-zr.delta,!1),jn(gt,In,tt))).then(gt=>{gt=gt||zn(In,tt,!1),gt&&(zr.delta&&!Gl(gt,8)?i.go(-zr.delta,!1):zr.type===gd.pop&&Gl(gt,20)&&i.go(-1,!1)),Zr(In,tt,gt)}).catch(Vf)}))}let ii=vf(),Sn=vf(),Wn;function jn(Sr,cn,zr){$i(Sr);const In=Sn.list();return In.length?In.forEach(Ki=>Ki(Sr,cn,zr)):console.error(Sr),Promise.reject(Sr)}function Bn(){return Wn&&p.value!==$c?Promise.resolve():new Promise((Sr,cn)=>{ii.add([Sr,cn])})}function $i(Sr){return Wn||(Wn=!Sr,Ii(),ii.list().forEach(([cn,zr])=>Sr?zr(Sr):cn()),ii.reset()),Sr}function Ui(Sr,cn,zr,In){const{scrollBehavior:Ki}=r;if(!Tp||!Ki)return Promise.resolve();const tt=!zr&&T4(wv(Sr.fullPath,0))||(In||!zr)&&history.state&&history.state.scroll||null;return Hh().then(()=>Ki(Sr,cn,tt)).then(gt=>gt&&w4(gt)).catch(gt=>jn(gt,Sr,cn))}const os=Sr=>i.go(Sr);let ds;const us=new Set,Xs={currentRoute:p,listening:!0,addRoute:$,removeRoute:G,hasRoute:ke,getRoutes:be,resolve:me,options:r,push:ht,replace:bt,go:os,back:()=>os(-1),forward:()=>os(1),beforeEach:s.add,beforeResolve:a.add,afterEach:l.add,onError:Sn.add,isReady:Bn,install(Sr){const cn=this;Sr.component("RouterLink",p7),Sr.component("RouterView",g7),Sr.config.globalProperties.$router=cn,Object.defineProperty(Sr.config.globalProperties,"$route",{enumerable:!0,get:()=>wi(p)}),Tp&&!ds&&p.value===$c&&(ds=!0,ht(i.location).catch(Ki=>{}));const zr={};for(const Ki in $c)Object.defineProperty(zr,Ki,{get:()=>p.value[Ki],enumerable:!0});Sr.provide(UO,cn),Sr.provide(qO,iC(zr)),Sr.provide(wD,p);const In=Sr.unmount;us.add(Sr),Sr.unmount=function(){us.delete(Sr),us.size<1&&(m=$c,Gn&&Gn(),Gn=null,p.value=$c,ds=!1,Wn=!1),In()}}};function Ts(Sr){return Sr.reduce((cn,zr)=>cn.then(()=>yr(zr)),Promise.resolve())}return Xs}function D7(r,e){const t=[],n=[],i=[],s=Math.max(e.matched.length,r.matched.length);for(let a=0;a<s;a++){const l=e.matched[a];l&&(r.matched.find(m=>ef(m,l))?n.push(l):t.push(l));const p=r.matched[a];p&&(e.matched.find(m=>ef(m,p))||i.push(p))}return[t,n,i]}function O7(){return gl(qO)}const x7=vo({__name:"FileIcon",props:{id:{}},setup(r){const e=r,t=as(()=>e.id.toLowerCase().replace(/\?.*$/,"").split(/\./g).pop()),n=as(()=>{switch(t.value){case"vue":return"i-vscode-icons-file-type-vue";case"html":case"htm":return"i-vscode-icons-file-type-html";case"svelte":return"i-vscode-icons-file-type-svelte";case"ts":case"mts":case"tsx":case"cts":return"i-vscode-icons-file-type-typescript-official";case"js":case"jsx":case"mjs":case"cjs":return"i-vscode-icons-file-type-js-official";case"json":return"i-vscode-icons-file-type-json-official";case"md":case"markdown":return"i-vscode-icons-file-type-markdown";default:return"i-carbon-document-blank"}});return(i,s)=>(bi(),ns("div",{class:Fa(wi(n))},null,2))}}),b7={open:""},v7={"cursor-default":"","select-none":"","text-sm":"",truncate:"",p:"y1"},C7={"ml-1":""},S7=vo({__name:"ModuleTreeNode",props:{node:{},icon:{default:"i-carbon-folder"}},setup(r){const e=O7();return(t,n)=>{const i=Vh("ModuleTreeNode",!0),s=x7,a=Vh("RouterLink");return bi(),ns("details",b7,[sn("summary",v7,[sn("div",{class:Fa(t.icon)},null,2),pa(" "+Gs(t.node.name),1)]),(bi(!0),ns(ho,null,Lc(Object.entries(t.node.children),l=>(bi(),Zo(i,{key:l[0],ml4:"",node:l[1]},null,8,["node"]))),128)),(bi(!0),ns(ho,null,Lc(t.node.items,l=>(bi(),ns("div",{key:l.full,ml4:"","ws-nowrap":""},[bs(a,{block:"","text-sm":"",p:"x2 y1",ml1:"",rounded:"",to:`/module/${encodeURIComponent(l.full)}`,class:Fa({"bg-active":l.full===wi(e).params.id})},{default:fa(()=>[bs(s,{id:l.path},null,8,["id"]),sn("span",C7,Gs(l.path.split("/").pop()),1)]),_:2},1032,["to","class"])]))),128))])}}}),E7="/__unocss/favicon.svg",w7={p:"x4 y3",border:"b main",flex:"","children:my-auto":""},A7=sn("div",{flex:"","flex-auto":"","children:my-auto":"","ws-nowrap":""},[sn("img",{src:E7,filter:"","dark:invert":"","inline-block":"",h:"1.3em",m:"r-1.5"}),sn("div",{"of-hidden":""},[pa(" Inspector "),sn("sup",{"text-teal5":"","bg-teal5:10":"",p:"x1.5 y0.5",rounded:"",italic:""},"beta")])],-1),T7=vo({__name:"NarBar",setup(r){const e=s_(),t=document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function n(i){if(!t||!i){e.value=!e.value;return}const s=i.clientX,a=i.clientY,l=Math.hypot(Math.max(s,innerWidth-s),Math.max(a,innerHeight-a));document.startViewTransition(async()=>{e.value=!e.value,await Hh()}).ready.then(()=>{const m=[`circle(0px at ${s}px ${a}px)`,`circle(${l}px at ${s}px ${a}px)`];document.documentElement.animate({clipPath:e.value?[...m].reverse():m},{duration:400,easing:"ease-in",pseudoElement:e.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}return(i,s)=>(bi(),ns("nav",w7,[A7,sn("button",{"text-lg":"","i-carbon-sun":"","dark:i-carbon-moon":"",onClick:n})]))}}),P7={"h-full":"",border:"r main"},k7={"of-hidden":""},F7={pt:"4",flex:"~ col gap-3"},_7=sn("div",{"i-carbon-dashboard":""},null,-1),$7=sn("span",null," Overview ",-1),B7=sn("div",{"i-carbon-terminal":""},null,-1),N7=sn("span",null," REPL ",-1),I7=sn("div",{border:"b main"},null,-1),M7={class:"scrolls scrolls-sidebar"},R7=vo({__name:"Sidebar",setup(r){return(e,t)=>{const n=T7,i=Vh("RouterLink"),s=S7;return bi(),ns("div",P7,[sn("div",k7,[bs(n),sn("div",F7,[bs(i,{block:"",to:"/","text-sm":"",m:"l-3.7"},{default:fa(()=>[_7,$7]),_:1}),bs(i,{block:"",to:"/repl","text-sm":"",m:"l-3.7"},{default:fa(()=>[B7,N7]),_:1}),I7])]),sn("div",M7,[Object.keys(wi(Ep).workspace.children).length?(bi(),Zo(s,{key:0,node:wi(Ep).workspace,p:"l3 t4",icon:"i-carbon-portfolio"},null,8,["node"])):Eu("",!0),Object.keys(wi(Ep).root.children).length?(bi(),Zo(s,{key:1,node:wi(Ep).root,p:"l3 t4",icon:"i-carbon-vmdk-disk"},null,8,["node"])):Eu("",!0),Object.keys(wi(Ep).nodeModules.children).length?(bi(),Zo(s,{key:2,node:wi(Ep).nodeModules,p:"l3 t4",icon:"i-carbon-categories"},null,8,["node"])):Eu("",!0)])])}}}),Q7={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((r,e)=>(r[e.id]=e)&&r,{})}},methods:{updatePaneComponents(){this.panes.forEach(r=>{r.update&&r.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[r.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(r,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(r){this.touch.mouseDown&&(r.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(r)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(r,e){"ontouchstart"in window&&(r.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(r,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(r,e){let t=0;this.panes=this.panes.map((n,i)=>(n.size=i===e?n.max:n.min,i!==e&&(t+=n.min),n)),this.panes[e].size-=t,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},onPaneClick(r,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(r){const e=this.container.getBoundingClientRect(),{clientX:t,clientY:n}="ontouchstart"in window&&r.touches?r.touches[0]:r;return{x:t-e.left,y:n-e.top}},getCurrentDragPercentage(r){r=r[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(r=e-r),r*100/e},calculatePanesSize(r){const e=this.touch.activeSplitter;let t={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const n=0+(this.pushOtherPanes?0:t.prevPanesSize),i=100-(this.pushOtherPanes?0:t.nextPanesSize),s=Math.max(Math.min(this.getCurrentDragPercentage(r),i),n);let a=[e,e+1],l=this.panes[a[0]]||null,p=this.panes[a[1]]||null;const m=l.max<100&&s>=l.max+t.prevPanesSize,g=p.max<100&&s<=100-(p.max+this.sumNextPanesSize(e+1));if(m||g){m?(l.size=l.max,p.size=Math.max(100-l.max-t.prevPanesSize-t.nextPanesSize,0)):(l.size=Math.max(100-p.max-t.prevPanesSize-this.sumNextPanesSize(e+1),0),p.size=p.max);return}if(this.pushOtherPanes){const b=this.doPushOtherPanes(t,s);if(!b)return;({sums:t,panesToResize:a}=b),l=this.panes[a[0]]||null,p=this.panes[a[1]]||null}l!==null&&(l.size=Math.min(Math.max(s-t.prevPanesSize-t.prevReachedMinPanes,l.min),l.max)),p!==null&&(p.size=Math.min(Math.max(100-s-t.nextPanesSize-t.nextReachedMinPanes,p.min),p.max))},doPushOtherPanes(r,e){const t=this.touch.activeSplitter,n=[t,t+1];return e<r.prevPanesSize+this.panes[n[0]].min&&(n[0]=this.findPrevExpandedPane(t).index,r.prevReachedMinPanes=0,n[0]<t&&this.panes.forEach((i,s)=>{s>n[0]&&s<=t&&(i.size=i.min,r.prevReachedMinPanes+=i.min)}),r.prevPanesSize=this.sumPrevPanesSize(n[0]),n[0]===void 0)?(r.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((i,s)=>{s>0&&s<=t&&(i.size=i.min,r.prevReachedMinPanes+=i.min)}),this.panes[n[1]].size=100-r.prevReachedMinPanes-this.panes[0].min-r.prevPanesSize-r.nextPanesSize,null):e>100-r.nextPanesSize-this.panes[n[1]].min&&(n[1]=this.findNextExpandedPane(t).index,r.nextReachedMinPanes=0,n[1]>t+1&&this.panes.forEach((i,s)=>{s>t&&s<n[1]&&(i.size=i.min,r.nextReachedMinPanes+=i.min)}),r.nextPanesSize=this.sumNextPanesSize(n[1]-1),n[1]===void 0)?(r.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((i,s)=>{s<this.panesCount-1&&s>=t+1&&(i.size=i.min,r.nextReachedMinPanes+=i.min)}),this.panes[n[0]].size=100-r.prevPanesSize-r.nextReachedMinPanes-this.panes[this.panesCount-1].min-r.nextPanesSize,null):{sums:r,panesToResize:n}},sumPrevPanesSize(r){return this.panes.reduce((e,t,n)=>e+(n<r?t.size:0),0)},sumNextPanesSize(r){return this.panes.reduce((e,t,n)=>e+(n>r+1?t.size:0),0)},findPrevExpandedPane(r){return[...this.panes].reverse().find(e=>e.index<r&&e.size>e.min)||{}},findNextExpandedPane(r){return this.panes.find(e=>e.index>r+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(r=>{const e=r.classList.contains("splitpanes__pane"),t=r.classList.contains("splitpanes__splitter");!e&&!t&&(r.parentNode.removeChild(r),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(r,e,t=!1){const n=r-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),t||(i.onmousedown=s=>this.onMouseDown(s,n),typeof window<"u"&&"ontouchstart"in window&&(i.ontouchstart=s=>this.onMouseDown(s,n)),i.onclick=s=>this.onSplitterClick(s,n+1)),this.dblClickSplitter&&(i.ondblclick=s=>this.onSplitterDblClick(s,n+1)),e.parentNode.insertBefore(i,e)},removeSplitter(r){r.onmousedown=void 0,r.onclick=void 0,r.ondblclick=void 0,r.parentNode.removeChild(r)},redoSplitters(){const r=Array.from(this.container.children);r.forEach(t=>{t.className.includes("splitpanes__splitter")&&this.removeSplitter(t)});let e=0;r.forEach(t=>{t.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,t,!0):e&&this.addSplitter(e,t),e++)})},requestUpdate({target:r,...e}){const t=this.indexedPanes[r._.uid];Object.entries(e).forEach(([n,i])=>t[n]=i)},onPaneAdd(r){let e=-1;Array.from(r.$el.parentNode.children).some(i=>(i.className.includes("splitpanes__pane")&&e++,i===r.$el));const t=parseFloat(r.minSize),n=parseFloat(r.maxSize);this.panes.splice(e,0,{id:r._.uid,index:e,min:isNaN(t)?0:t,max:isNaN(n)?100:n,size:r.size===null?null:parseFloat(r.size),givenSize:r.size,update:r.update}),this.panes.forEach((i,s)=>i.index=s),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},onPaneRemove(r){const e=this.panes.findIndex(n=>n.id===r._.uid),t=this.panes.splice(e,1)[0];this.panes.forEach((n,i)=>n.index=i),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...t,index:e}}),this.$emit("pane-remove",{removed:t,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},resetPaneSizes(r={}){!r.addedPane&&!r.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(r):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const r=100/this.panesCount;let e=0;const t=[],n=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(r,i.max),i.min),e-=i.size,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)}),e>.1&&this.readjustSizes(e,t,n)},initialPanesSizing(){let r=100;const e=[],t=[];let n=0;this.panes.forEach(s=>{r-=s.size,s.size!==null&&n++,s.size>=s.max&&e.push(s.id),s.size<=s.min&&t.push(s.id)});let i=100;r>.1&&(this.panes.forEach(s=>{s.size===null&&(s.size=Math.max(Math.min(r/(this.panesCount-n),s.max),s.min)),i-=s.size}),i>.1&&this.readjustSizes(r,e,t))},equalizeAfterAddOrRemove({addedPane:r,removedPane:e}={}){let t=100/this.panesCount,n=0;const i=[],s=[];r&&r.givenSize!==null&&(t=(100-r.givenSize)/(this.panesCount-1)),this.panes.forEach(a=>{n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&s.push(a.id)}),!(Math.abs(n)<.1)&&(this.panes.forEach(a=>{r&&r.givenSize!==null&&r.id===a.id||(a.size=Math.max(Math.min(t,a.max),a.min)),n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&s.push(a.id)}),n>.1&&this.readjustSizes(n,i,s))},readjustSizes(r,e,t){let n;r>0?n=r/(this.panesCount-e.length):n=r/(this.panesCount-t.length),this.panes.forEach((i,s)=>{if(r>0&&!e.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),l=a-i.size;r-=l,i.size=a}else if(!t.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),l=a-i.size;r-=l,i.size=a}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(r)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(r){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,t)=>{e.ondblclick=r?n=>this.onSplitterDblClick(n,t):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return ZD("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},j7=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t},L7={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(r){this.style=r}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(r){this.requestUpdate({target:this,size:r})},minSizeNumber(r){this.requestUpdate({target:this,min:r})},maxSizeNumber(r){this.requestUpdate({target:this,max:r})}}};function X7(r,e,t,n,i,s){return bi(),ns("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=a=>s.onPaneClick(a,r._.uid)),style:ml(r.style)},[tc(r.$slots,"default")],4)}const jv=j7(L7,[["render",X7]]),V7={"h-screen":"","w-screen":"","of-hidden":""},U7={"h-full":"","of-hidden":""},q7=vo({__name:"App",setup(r){return(e,t)=>{const n=R7,i=Vh("RouterView");return bi(),ns("div",V7,[bs(wi(Q7),null,{default:fa(()=>[bs(wi(jv),{size:"20","push-other-panes":!1},{default:fa(()=>[bs(n)]),_:1}),bs(wi(jv),{size:"80"},{default:fa(()=>[sn("div",U7,[bs(i)])]),_:1})]),_:1})])}}}),iA=IP(q7);iA.use(y7({history:$4(),routes:d4}));iA.mount("#app");export{d6 as A,as as B,Eu as C,Q9 as D,Gs as E,jv as F,ww as G,J5 as H,O7 as I,Q7 as M,U5 as _,Y7 as a,d2 as b,ns as c,vo as d,sn as e,eM as f,bs as g,bT as h,Hs as i,wi as j,pa as k,Z5 as l,j5 as m,ml as n,bi as o,bw as p,Zo as q,Zs as r,MC as s,z7 as t,i6 as u,kP as v,fa as w,K7 as x,eT as y,Z7 as z};
|
|
281
281
|
function __vite__mapDeps(indexes) {
|
|
282
282
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
283
283
|
__vite__mapDeps.viteFileDeps = []
|
|
284
284
|
}
|
|
285
285
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
286
|
-
}
|
|
286
|
+
}
|