@vitest/browser 1.1.3 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/__vitest__/assets/index-BxfaIJso.js +35 -0
- package/dist/client/__vitest__/assets/index-b8y7ovCb.css +1 -0
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/__vitest_browser__/{index-CO7GSZ7y.js → index-30Y0Db8-.js} +21 -8
- package/dist/client/index.html +1 -1
- package/dist/index.js +8 -1
- package/dist/providers.js +2 -2
- package/package.json +9 -9
- package/dist/client/__vitest__/assets/index-IJeHjHTb.js +0 -33
- package/dist/client/__vitest__/assets/index-z19Uws5U.css +0 -1
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var Ex=Object.defineProperty;var Lx=(t,n,r)=>n in t?Ex(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;var ai=(t,n,r)=>(Lx(t,typeof n!="symbol"?n+"":n,r),r);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(a){if(a.ep)return;a.ep=!0;const u=r(a);fetch(a.href,u)}})();function th(t,n){const r=Object.create(null),o=t.split(",");for(let a=0;a<o.length;a++)r[o[a]]=!0;return n?a=>!!r[a.toLowerCase()]:a=>!!r[a]}const be={},Uo=[],yr=()=>{},Ax=()=>!1,Mx=/^on[^a-z]/,gc=t=>Mx.test(t),eh=t=>t.startsWith("onUpdate:"),$e=Object.assign,nh=(t,n)=>{const r=t.indexOf(n);r>-1&&t.splice(r,1)},Nx=Object.prototype.hasOwnProperty,se=(t,n)=>Nx.call(t,n),Ft=Array.isArray,jo=t=>mc(t)==="[object Map]",fm=t=>mc(t)==="[object Set]",Ut=t=>typeof t=="function",Re=t=>typeof t=="string",vc=t=>typeof t=="symbol",me=t=>t!==null&&typeof t=="object",hm=t=>(me(t)||Ut(t))&&Ut(t.then)&&Ut(t.catch),dm=Object.prototype.toString,mc=t=>dm.call(t),Px=t=>mc(t).slice(8,-1),pm=t=>mc(t)==="[object Object]",rh=t=>Re(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Pa=th(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yc=t=>{const n=Object.create(null);return r=>n[r]||(n[r]=t(r))},Ox=/-(\w)/g,wr=yc(t=>t.replace(Ox,(n,r)=>r?r.toUpperCase():"")),Dx=/\B([A-Z])/g,so=yc(t=>t.replace(Dx,"-$1").toLowerCase()),bc=yc(t=>t.charAt(0).toUpperCase()+t.slice(1)),Fu=yc(t=>t?`on${bc(t)}`:""),to=(t,n)=>!Object.is(t,n),Oa=(t,n)=>{for(let r=0;r<t.length;r++)t[r](n)},ja=(t,n,r)=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value:r})},af=t=>{const n=parseFloat(t);return isNaN(n)?t:n},gm=t=>{const n=Re(t)?Number(t):NaN;return isNaN(n)?t:n};let ng;const cf=()=>ng||(ng=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function En(t){if(Ft(t)){const n={};for(let r=0;r<t.length;r++){const o=t[r],a=Re(o)?Fx(o):En(o);if(a)for(const u in a)n[u]=a[u]}return n}else if(Re(t)||me(t))return t}const $x=/;(?![^(]*\))/g,Rx=/:([^]+)/,zx=/\/\*[^]*?\*\//g;function Fx(t){const n={};return t.replace(zx,"").split($x).forEach(r=>{if(r){const o=r.split(Rx);o.length>1&&(n[o[0].trim()]=o[1].trim())}}),n}function ve(t){let n="";if(Re(t))n=t;else if(Ft(t))for(let r=0;r<t.length;r++){const o=ve(t[r]);o&&(n+=o+" ")}else if(me(t))for(const r in t)t[r]&&(n+=r+" ");return n.trim()}const Ix="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",qx=th(Ix);function vm(t){return!!t||t===""}const ne=t=>Re(t)?t:t==null?"":Ft(t)||me(t)&&(t.toString===dm||!Ut(t.toString))?JSON.stringify(t,mm,2):String(t),mm=(t,n)=>n&&n.__v_isRef?mm(t,n.value):jo(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((r,[o,a])=>(r[`${o} =>`]=a,r),{})}:fm(n)?{[`Set(${n.size})`]:[...n.values()]}:me(n)&&!Ft(n)&&!pm(n)?String(n):n;let On;class Hx{constructor(n=!1){this.detached=n,this._active=!0,this.effects=[],this.cleanups=[],this.parent=On,!n&&On&&(this.index=(On.scopes||(On.scopes=[])).push(this)-1)}get active(){return this._active}run(n){if(this._active){const r=On;try{return On=this,n()}finally{On=r}}}on(){On=this}off(){On=this.parent}stop(n){if(this._active){let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.scopes)for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!n){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function Bx(t,n=On){n&&n.active&&n.effects.push(t)}function ym(){return On}function Wx(t){On&&On.cleanups.push(t)}const ih=t=>{const n=new Set(t);return n.w=0,n.n=0,n},bm=t=>(t.w&ki)>0,wm=t=>(t.n&ki)>0,Ux=({deps:t})=>{if(t.length)for(let n=0;n<t.length;n++)t[n].w|=ki},jx=t=>{const{deps:n}=t;if(n.length){let r=0;for(let o=0;o<n.length;o++){const a=n[o];bm(a)&&!wm(a)?a.delete(t):n[r++]=a,a.w&=~ki,a.n&=~ki}n.length=r}},Ga=new WeakMap;let Qs=0,ki=1;const uf=30;let er;const Yi=Symbol(""),ff=Symbol("");class oh{constructor(n,r=null,o){this.fn=n,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,Bx(this,o)}run(){if(!this.active)return this.fn();let n=er,r=xi;for(;n;){if(n===this)return;n=n.parent}try{return this.parent=er,er=this,xi=!0,ki=1<<++Qs,Qs<=uf?Ux(this):rg(this),this.fn()}finally{Qs<=uf&&jx(this),ki=1<<--Qs,er=this.parent,xi=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){er===this?this.deferStop=!0:this.active&&(rg(this),this.onStop&&this.onStop(),this.active=!1)}}function rg(t){const{deps:n}=t;if(n.length){for(let r=0;r<n.length;r++)n[r].delete(t);n.length=0}}let xi=!0;const xm=[];function fs(){xm.push(xi),xi=!1}function hs(){const t=xm.pop();xi=t===void 0?!0:t}function An(t,n,r){if(xi&&er){let o=Ga.get(t);o||Ga.set(t,o=new Map);let a=o.get(r);a||o.set(r,a=ih()),_m(a)}}function _m(t,n){let r=!1;Qs<=uf?wm(t)||(t.n|=ki,r=!bm(t)):r=!t.has(er),r&&(t.add(er),er.deps.push(t))}function Fr(t,n,r,o,a,u){const f=Ga.get(t);if(!f)return;let h=[];if(n==="clear")h=[...f.values()];else if(r==="length"&&Ft(t)){const p=Number(o);f.forEach((g,v)=>{(v==="length"||!vc(v)&&v>=p)&&h.push(g)})}else switch(r!==void 0&&h.push(f.get(r)),n){case"add":Ft(t)?rh(r)&&h.push(f.get("length")):(h.push(f.get(Yi)),jo(t)&&h.push(f.get(ff)));break;case"delete":Ft(t)||(h.push(f.get(Yi)),jo(t)&&h.push(f.get(ff)));break;case"set":jo(t)&&h.push(f.get(Yi));break}if(h.length===1)h[0]&&hf(h[0]);else{const p=[];for(const g of h)g&&p.push(...g);hf(ih(p))}}function hf(t,n){const r=Ft(t)?t:[...t];for(const o of r)o.computed&&ig(o);for(const o of r)o.computed||ig(o)}function ig(t,n){(t!==er||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function Gx(t,n){var r;return(r=Ga.get(t))==null?void 0:r.get(n)}const Vx=th("__proto__,__v_isRef,__isVue"),Sm=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(vc)),og=Kx();function Kx(){const t={};return["includes","indexOf","lastIndexOf"].forEach(n=>{t[n]=function(...r){const o=le(this);for(let u=0,f=this.length;u<f;u++)An(o,"get",u+"");const a=o[n](...r);return a===-1||a===!1?o[n](...r.map(le)):a}}),["push","pop","shift","unshift","splice"].forEach(n=>{t[n]=function(...r){fs();const o=le(this)[n].apply(this,r);return hs(),o}}),t}function Xx(t){const n=le(this);return An(n,"has",t),n.hasOwnProperty(t)}class km{constructor(n=!1,r=!1){this._isReadonly=n,this._shallow=r}get(n,r,o){const a=this._isReadonly,u=this._shallow;if(r==="__v_isReactive")return!a;if(r==="__v_isReadonly")return a;if(r==="__v_isShallow")return u;if(r==="__v_raw"&&o===(a?u?a1:Lm:u?Em:Tm).get(n))return n;const f=Ft(n);if(!a){if(f&&se(og,r))return Reflect.get(og,r,o);if(r==="hasOwnProperty")return Xx}const h=Reflect.get(n,r,o);return(vc(r)?Sm.has(r):Vx(r))||(a||An(n,"get",r),u)?h:Ee(h)?f&&rh(r)?h:h.value:me(h)?a?xc(h):Hn(h):h}}class Cm extends km{constructor(n=!1){super(!1,n)}set(n,r,o,a){let u=n[r];if(ts(u)&&Ee(u)&&!Ee(o))return!1;if(!this._shallow&&(!Va(o)&&!ts(o)&&(u=le(u),o=le(o)),!Ft(n)&&Ee(u)&&!Ee(o)))return u.value=o,!0;const f=Ft(n)&&rh(r)?Number(r)<n.length:se(n,r),h=Reflect.set(n,r,o,a);return n===le(a)&&(f?to(o,u)&&Fr(n,"set",r,o):Fr(n,"add",r,o)),h}deleteProperty(n,r){const o=se(n,r);n[r];const a=Reflect.deleteProperty(n,r);return a&&o&&Fr(n,"delete",r,void 0),a}has(n,r){const o=Reflect.has(n,r);return(!vc(r)||!Sm.has(r))&&An(n,"has",r),o}ownKeys(n){return An(n,"iterate",Ft(n)?"length":Yi),Reflect.ownKeys(n)}}class Yx extends km{constructor(n=!1){super(!0,n)}set(n,r){return!0}deleteProperty(n,r){return!0}}const Zx=new Cm,Jx=new Yx,Qx=new Cm(!0),sh=t=>t,wc=t=>Reflect.getPrototypeOf(t);function va(t,n,r=!1,o=!1){t=t.__v_raw;const a=le(t),u=le(n);r||(to(n,u)&&An(a,"get",n),An(a,"get",u));const{has:f}=wc(a),h=o?sh:r?uh:ul;if(f.call(a,n))return h(t.get(n));if(f.call(a,u))return h(t.get(u));t!==a&&t.get(n)}function ma(t,n=!1){const r=this.__v_raw,o=le(r),a=le(t);return n||(to(t,a)&&An(o,"has",t),An(o,"has",a)),t===a?r.has(t):r.has(t)||r.has(a)}function ya(t,n=!1){return t=t.__v_raw,!n&&An(le(t),"iterate",Yi),Reflect.get(t,"size",t)}function sg(t){t=le(t);const n=le(this);return wc(n).has.call(n,t)||(n.add(t),Fr(n,"add",t,t)),this}function lg(t,n){n=le(n);const r=le(this),{has:o,get:a}=wc(r);let u=o.call(r,t);u||(t=le(t),u=o.call(r,t));const f=a.call(r,t);return r.set(t,n),u?to(n,f)&&Fr(r,"set",t,n):Fr(r,"add",t,n),this}function ag(t){const n=le(this),{has:r,get:o}=wc(n);let a=r.call(n,t);a||(t=le(t),a=r.call(n,t)),o&&o.call(n,t);const u=n.delete(t);return a&&Fr(n,"delete",t,void 0),u}function cg(){const t=le(this),n=t.size!==0,r=t.clear();return n&&Fr(t,"clear",void 0,void 0),r}function ba(t,n){return function(o,a){const u=this,f=u.__v_raw,h=le(f),p=n?sh:t?uh:ul;return!t&&An(h,"iterate",Yi),f.forEach((g,v)=>o.call(a,p(g),p(v),u))}}function wa(t,n,r){return function(...o){const a=this.__v_raw,u=le(a),f=jo(u),h=t==="entries"||t===Symbol.iterator&&f,p=t==="keys"&&f,g=a[t](...o),v=r?sh:n?uh:ul;return!n&&An(u,"iterate",p?ff:Yi),{next(){const{value:b,done:x}=g.next();return x?{value:b,done:x}:{value:h?[v(b[0]),v(b[1])]:v(b),done:x}},[Symbol.iterator](){return this}}}}function ci(t){return function(...n){return t==="delete"?!1:this}}function t1(){const t={get(u){return va(this,u)},get size(){return ya(this)},has:ma,add:sg,set:lg,delete:ag,clear:cg,forEach:ba(!1,!1)},n={get(u){return va(this,u,!1,!0)},get size(){return ya(this)},has:ma,add:sg,set:lg,delete:ag,clear:cg,forEach:ba(!1,!0)},r={get(u){return va(this,u,!0)},get size(){return ya(this,!0)},has(u){return ma.call(this,u,!0)},add:ci("add"),set:ci("set"),delete:ci("delete"),clear:ci("clear"),forEach:ba(!0,!1)},o={get(u){return va(this,u,!0,!0)},get size(){return ya(this,!0)},has(u){return ma.call(this,u,!0)},add:ci("add"),set:ci("set"),delete:ci("delete"),clear:ci("clear"),forEach:ba(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=wa(u,!1,!1),r[u]=wa(u,!0,!1),n[u]=wa(u,!1,!0),o[u]=wa(u,!0,!0)}),[t,r,n,o]}const[e1,n1,r1,i1]=t1();function lh(t,n){const r=n?t?i1:r1:t?n1:e1;return(o,a,u)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?o:Reflect.get(se(r,a)&&a in o?r:o,a,u)}const o1={get:lh(!1,!1)},s1={get:lh(!1,!0)},l1={get:lh(!0,!1)},Tm=new WeakMap,Em=new WeakMap,Lm=new WeakMap,a1=new WeakMap;function c1(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function u1(t){return t.__v_skip||!Object.isExtensible(t)?0:c1(Px(t))}function Hn(t){return ts(t)?t:ah(t,!1,Zx,o1,Tm)}function Am(t){return ah(t,!1,Qx,s1,Em)}function xc(t){return ah(t,!0,Jx,l1,Lm)}function ah(t,n,r,o,a){if(!me(t)||t.__v_raw&&!(n&&t.__v_isReactive))return t;const u=a.get(t);if(u)return u;const f=u1(t);if(f===0)return t;const h=new Proxy(t,f===2?o:r);return a.set(t,h),h}function Go(t){return ts(t)?Go(t.__v_raw):!!(t&&t.__v_isReactive)}function ts(t){return!!(t&&t.__v_isReadonly)}function Va(t){return!!(t&&t.__v_isShallow)}function Mm(t){return Go(t)||ts(t)}function le(t){const n=t&&t.__v_raw;return n?le(n):t}function ch(t){return ja(t,"__v_skip",!0),t}const ul=t=>me(t)?Hn(t):t,uh=t=>me(t)?xc(t):t;function fh(t){xi&&er&&(t=le(t),_m(t.dep||(t.dep=ih())))}function hh(t,n){t=le(t);const r=t.dep;r&&hf(r)}function Ee(t){return!!(t&&t.__v_isRef===!0)}function Yt(t){return Nm(t,!1)}function ds(t){return Nm(t,!0)}function Nm(t,n){return Ee(t)?t:new f1(t,n)}class f1{constructor(n,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?n:le(n),this._value=r?n:ul(n)}get value(){return fh(this),this._value}set value(n){const r=this.__v_isShallow||Va(n)||ts(n);n=r?n:le(n),to(n,this._rawValue)&&(this._rawValue=n,this._value=r?n:ul(n),hh(this))}}function U(t){return Ee(t)?t.value:t}const h1={get:(t,n,r)=>U(Reflect.get(t,n,r)),set:(t,n,r,o)=>{const a=t[n];return Ee(a)&&!Ee(r)?(a.value=r,!0):Reflect.set(t,n,r,o)}};function Pm(t){return Go(t)?t:new Proxy(t,h1)}class d1{constructor(n){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:o}=n(()=>fh(this),()=>hh(this));this._get=r,this._set=o}get value(){return this._get()}set value(n){this._set(n)}}function p1(t){return new d1(t)}function g1(t){const n=Ft(t)?new Array(t.length):{};for(const r in t)n[r]=Om(t,r);return n}class v1{constructor(n,r,o){this._object=n,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const n=this._object[this._key];return n===void 0?this._defaultValue:n}set value(n){this._object[this._key]=n}get dep(){return Gx(le(this._object),this._key)}}class m1{constructor(n){this._getter=n,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function dh(t,n,r){return Ee(t)?t:Ut(t)?new m1(t):me(t)&&arguments.length>1?Om(t,n,r):Yt(t)}function Om(t,n,r){const o=t[n];return Ee(o)?o:new v1(t,n,r)}class y1{constructor(n,r,o,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new oh(n,()=>{this._dirty||(this._dirty=!0,hh(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const n=le(this);return fh(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}function b1(t,n,r=!1){let o,a;const u=Ut(t);return u?(o=t,a=yr):(o=t.get,a=t.set),new y1(o,a,u||!a,r)}function _i(t,n,r,o){let a;try{a=o?t(...o):t()}catch(u){El(u,n,r)}return a}function Bn(t,n,r,o){if(Ut(t)){const u=_i(t,n,r,o);return u&&hm(u)&&u.catch(f=>{El(f,n,r)}),u}const a=[];for(let u=0;u<t.length;u++)a.push(Bn(t[u],n,r,o));return a}function El(t,n,r,o=!0){const a=n?n.vnode:null;if(n){let u=n.parent;const f=n.proxy,h=r;for(;u;){const g=u.ec;if(g){for(let v=0;v<g.length;v++)if(g[v](t,f,h)===!1)return}u=u.parent}const p=n.appContext.config.errorHandler;if(p){_i(p,null,10,[t,f,h]);return}}w1(t,r,a,o)}function w1(t,n,r,o=!0){console.error(t)}let fl=!1,df=!1;const Qe=[];let pr=0;const Vo=[];let Dr=null,ji=0;const Dm=Promise.resolve();let ph=null;function Hr(t){const n=ph||Dm;return t?n.then(this?t.bind(this):t):n}function x1(t){let n=pr+1,r=Qe.length;for(;n<r;){const o=n+r>>>1,a=Qe[o],u=hl(a);u<t||u===t&&a.pre?n=o+1:r=o}return n}function gh(t){(!Qe.length||!Qe.includes(t,fl&&t.allowRecurse?pr+1:pr))&&(t.id==null?Qe.push(t):Qe.splice(x1(t.id),0,t),$m())}function $m(){!fl&&!df&&(df=!0,ph=Dm.then(zm))}function _1(t){const n=Qe.indexOf(t);n>pr&&Qe.splice(n,1)}function pf(t){Ft(t)?Vo.push(...t):(!Dr||!Dr.includes(t,t.allowRecurse?ji+1:ji))&&Vo.push(t),$m()}function ug(t,n=fl?pr+1:0){for(;n<Qe.length;n++){const r=Qe[n];r&&r.pre&&(Qe.splice(n,1),n--,r())}}function Rm(t){if(Vo.length){const n=[...new Set(Vo)];if(Vo.length=0,Dr){Dr.push(...n);return}for(Dr=n,Dr.sort((r,o)=>hl(r)-hl(o)),ji=0;ji<Dr.length;ji++)Dr[ji]();Dr=null,ji=0}}const hl=t=>t.id==null?1/0:t.id,S1=(t,n)=>{const r=hl(t)-hl(n);if(r===0){if(t.pre&&!n.pre)return-1;if(n.pre&&!t.pre)return 1}return r};function zm(t){df=!1,fl=!0,Qe.sort(S1);try{for(pr=0;pr<Qe.length;pr++){const n=Qe[pr];n&&n.active!==!1&&_i(n,null,14)}}finally{pr=0,Qe.length=0,Rm(),fl=!1,ph=null,(Qe.length||Vo.length)&&zm()}}function k1(t,n,...r){if(t.isUnmounted)return;const o=t.vnode.props||be;let a=r;const u=n.startsWith("update:"),f=u&&n.slice(7);if(f&&f in o){const v=`${f==="modelValue"?"model":f}Modifiers`,{number:b,trim:x}=o[v]||be;x&&(a=r.map(S=>Re(S)?S.trim():S)),b&&(a=r.map(af))}let h,p=o[h=Fu(n)]||o[h=Fu(wr(n))];!p&&u&&(p=o[h=Fu(so(n))]),p&&Bn(p,t,6,a);const g=o[h+"Once"];if(g){if(!t.emitted)t.emitted={};else if(t.emitted[h])return;t.emitted[h]=!0,Bn(g,t,6,a)}}function Fm(t,n,r=!1){const o=n.emitsCache,a=o.get(t);if(a!==void 0)return a;const u=t.emits;let f={},h=!1;if(!Ut(t)){const p=g=>{const v=Fm(g,n,!0);v&&(h=!0,$e(f,v))};!r&&n.mixins.length&&n.mixins.forEach(p),t.extends&&p(t.extends),t.mixins&&t.mixins.forEach(p)}return!u&&!h?(me(t)&&o.set(t,null),null):(Ft(u)?u.forEach(p=>f[p]=null):$e(f,u),me(t)&&o.set(t,f),f)}function _c(t,n){return!t||!gc(n)?!1:(n=n.slice(2).replace(/Once$/,""),se(t,n[0].toLowerCase()+n.slice(1))||se(t,so(n))||se(t,n))}let Ye=null,Sc=null;function Ka(t){const n=Ye;return Ye=t,Sc=t&&t.type.__scopeId||null,n}function Im(t){Sc=t}function qm(){Sc=null}const C1=t=>Jt;function Jt(t,n=Ye,r){if(!n||t._n)return t;const o=(...a)=>{o._d&&_g(-1);const u=Ka(n);let f;try{f=t(...a)}finally{Ka(u),o._d&&_g(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function Iu(t){const{type:n,vnode:r,proxy:o,withProxy:a,props:u,propsOptions:[f],slots:h,attrs:p,emit:g,render:v,renderCache:b,data:x,setupState:S,ctx:P,inheritAttrs:A}=t;let L,T;const M=Ka(t);try{if(r.shapeFlag&4){const E=a||o;L=tr(v.call(E,E,b,u,S,x,P)),T=p}else{const E=n;L=tr(E.length>1?E(u,{attrs:p,slots:h,emit:g}):E(u,null)),T=n.props?p:E1(p)}}catch(E){ol.length=0,El(E,t,1),L=It(Ln)}let R=L;if(T&&A!==!1){const E=Object.keys(T),{shapeFlag:B}=R;E.length&&B&7&&(f&&E.some(eh)&&(T=L1(T,f)),R=Ci(R,T))}return r.dirs&&(R=Ci(R),R.dirs=R.dirs?R.dirs.concat(r.dirs):r.dirs),r.transition&&(R.transition=r.transition),L=R,Ka(M),L}function T1(t){let n;for(let r=0;r<t.length;r++){const o=t[r];if(pl(o)){if(o.type!==Ln||o.children==="v-if"){if(n)return;n=o}}else return}return n}const E1=t=>{let n;for(const r in t)(r==="class"||r==="style"||gc(r))&&((n||(n={}))[r]=t[r]);return n},L1=(t,n)=>{const r={};for(const o in t)(!eh(o)||!(o.slice(9)in n))&&(r[o]=t[o]);return r};function A1(t,n,r){const{props:o,children:a,component:u}=t,{props:f,children:h,patchFlag:p}=n,g=u.emitsOptions;if(n.dirs||n.transition)return!0;if(r&&p>=0){if(p&1024)return!0;if(p&16)return o?fg(o,f,g):!!f;if(p&8){const v=n.dynamicProps;for(let b=0;b<v.length;b++){const x=v[b];if(f[x]!==o[x]&&!_c(g,x))return!0}}}else return(a||h)&&(!h||!h.$stable)?!0:o===f?!1:o?f?fg(o,f,g):!0:!!f;return!1}function fg(t,n,r){const o=Object.keys(n);if(o.length!==Object.keys(t).length)return!0;for(let a=0;a<o.length;a++){const u=o[a];if(n[u]!==t[u]&&!_c(r,u))return!0}return!1}function vh({vnode:t,parent:n},r){for(;n&&n.subTree===t;)(t=n.vnode).el=r,n=n.parent}const Hm="components",M1="directives";function eo(t,n){return Bm(Hm,t,!0,n)||t}const N1=Symbol.for("v-ndc");function lo(t){return Bm(M1,t)}function Bm(t,n,r=!0,o=!1){const a=Ye||Ue;if(a){const u=a.type;if(t===Hm){const h=A_(u,!1);if(h&&(h===n||h===wr(n)||h===bc(wr(n))))return u}const f=hg(a[t]||u[t],n)||hg(a.appContext[t],n);return!f&&o?u:f}}function hg(t,n){return t&&(t[n]||t[wr(n)]||t[bc(wr(n))])}const P1=t=>t.__isSuspense,O1={name:"Suspense",__isSuspense:!0,process(t,n,r,o,a,u,f,h,p,g){t==null?$1(n,r,o,a,u,f,h,p,g):R1(t,n,r,o,a,f,h,p,g)},hydrate:z1,create:mh,normalize:F1},D1=O1;function dl(t,n){const r=t.props&&t.props[n];Ut(r)&&r()}function $1(t,n,r,o,a,u,f,h,p){const{p:g,o:{createElement:v}}=p,b=v("div"),x=t.suspense=mh(t,a,o,n,b,r,u,f,h,p);g(null,x.pendingBranch=t.ssContent,b,null,o,x,u,f),x.deps>0?(dl(t,"onPending"),dl(t,"onFallback"),g(null,t.ssFallback,n,r,o,null,u,f),Ko(x,t.ssFallback)):x.resolve(!1,!0)}function R1(t,n,r,o,a,u,f,h,{p,um:g,o:{createElement:v}}){const b=n.suspense=t.suspense;b.vnode=n,n.el=t.el;const x=n.ssContent,S=n.ssFallback,{activeBranch:P,pendingBranch:A,isInFallback:L,isHydrating:T}=b;if(A)b.pendingBranch=x,gr(x,A)?(p(A,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():L&&(p(P,S,r,o,a,null,u,f,h),Ko(b,S))):(b.pendingId++,T?(b.isHydrating=!1,b.activeBranch=A):g(A,a,b),b.deps=0,b.effects.length=0,b.hiddenContainer=v("div"),L?(p(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():(p(P,S,r,o,a,null,u,f,h),Ko(b,S))):P&&gr(x,P)?(p(P,x,r,o,a,b,u,f,h),b.resolve(!0)):(p(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0&&b.resolve()));else if(P&&gr(x,P))p(P,x,r,o,a,b,u,f,h),Ko(b,x);else if(dl(n,"onPending"),b.pendingBranch=x,b.pendingId++,p(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0)b.resolve();else{const{timeout:M,pendingId:R}=b;M>0?setTimeout(()=>{b.pendingId===R&&b.fallback(S)},M):M===0&&b.fallback(S)}}function mh(t,n,r,o,a,u,f,h,p,g,v=!1){const{p:b,m:x,um:S,n:P,o:{parentNode:A,remove:L}}=g;let T;const M=q1(t);M&&n!=null&&n.pendingBranch&&(T=n.pendingId,n.deps++);const R=t.props?gm(t.props.timeout):void 0,E={vnode:t,parent:n,parentComponent:r,isSVG:f,container:o,hiddenContainer:a,anchor:u,deps:0,pendingId:0,timeout:typeof R=="number"?R:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:v,isUnmounted:!1,effects:[],resolve(B=!1,K=!1){const{vnode:ht,activeBranch:Y,pendingBranch:et,pendingId:st,effects:pt,parentComponent:gt,container:V}=E;let z=!1;if(E.isHydrating)E.isHydrating=!1;else if(!B){z=Y&&et.transition&&et.transition.mode==="out-in",z&&(Y.transition.afterLeave=()=>{st===E.pendingId&&(x(et,V,H,0),pf(pt))});let{anchor:H}=E;Y&&(H=P(Y),S(Y,gt,E,!0)),z||x(et,V,H,0)}Ko(E,et),E.pendingBranch=null,E.isInFallback=!1;let k=E.parent,I=!1;for(;k;){if(k.pendingBranch){k.effects.push(...pt),I=!0;break}k=k.parent}!I&&!z&&pf(pt),E.effects=[],M&&n&&n.pendingBranch&&T===n.pendingId&&(n.deps--,n.deps===0&&!K&&n.resolve()),dl(ht,"onResolve")},fallback(B){if(!E.pendingBranch)return;const{vnode:K,activeBranch:ht,parentComponent:Y,container:et,isSVG:st}=E;dl(K,"onFallback");const pt=P(ht),gt=()=>{E.isInFallback&&(b(null,B,et,pt,Y,null,st,h,p),Ko(E,B))},V=B.transition&&B.transition.mode==="out-in";V&&(ht.transition.afterLeave=gt),E.isInFallback=!0,S(ht,Y,null,!0),V||gt()},move(B,K,ht){E.activeBranch&&x(E.activeBranch,B,K,ht),E.container=B},next(){return E.activeBranch&&P(E.activeBranch)},registerDep(B,K){const ht=!!E.pendingBranch;ht&&E.deps++;const Y=B.vnode.el;B.asyncDep.catch(et=>{El(et,B,0)}).then(et=>{if(B.isUnmounted||E.isUnmounted||E.pendingId!==B.suspenseId)return;B.asyncResolved=!0;const{vnode:st}=B;Sf(B,et,!1),Y&&(st.el=Y);const pt=!Y&&B.subTree.el;K(B,st,A(Y||B.subTree.el),Y?null:P(B.subTree),E,f,p),pt&&L(pt),vh(B,st.el),ht&&--E.deps===0&&E.resolve()})},unmount(B,K){E.isUnmounted=!0,E.activeBranch&&S(E.activeBranch,r,B,K),E.pendingBranch&&S(E.pendingBranch,r,B,K)}};return E}function z1(t,n,r,o,a,u,f,h,p){const g=n.suspense=mh(n,o,r,t.parentNode,document.createElement("div"),null,a,u,f,h,!0),v=p(t,g.pendingBranch=n.ssContent,r,g,u,f);return g.deps===0&&g.resolve(!1,!0),v}function F1(t){const{shapeFlag:n,children:r}=t,o=n&32;t.ssContent=dg(o?r.default:r),t.ssFallback=o?dg(r.fallback):It(Ln)}function dg(t){let n;if(Ut(t)){const r=es&&t._c;r&&(t._d=!1,ut()),t=t(),r&&(t._d=!0,n=qn,o0())}return Ft(t)&&(t=T1(t)),t=tr(t),n&&!t.dynamicChildren&&(t.dynamicChildren=n.filter(r=>r!==t)),t}function I1(t,n){n&&n.pendingBranch?Ft(t)?n.effects.push(...t):n.effects.push(t):pf(t)}function Ko(t,n){t.activeBranch=n;const{vnode:r,parentComponent:o}=t,a=r.el=n.el;o&&o.subTree===r&&(o.vnode.el=a,vh(o,a))}function q1(t){var n;return((n=t.props)==null?void 0:n.suspensible)!=null&&t.props.suspensible!==!1}function yh(t,n){return bh(t,null,n)}const xa={};function De(t,n,r){return bh(t,n,r)}function bh(t,n,{immediate:r,deep:o,flush:a,onTrack:u,onTrigger:f}=be){var h;const p=ym()===((h=Ue)==null?void 0:h.scope)?Ue:null;let g,v=!1,b=!1;if(Ee(t)?(g=()=>t.value,v=Va(t)):Go(t)?(g=()=>t,o=!0):Ft(t)?(b=!0,v=t.some(E=>Go(E)||Va(E)),g=()=>t.map(E=>{if(Ee(E))return E.value;if(Go(E))return Vi(E);if(Ut(E))return _i(E,p,2)})):Ut(t)?n?g=()=>_i(t,p,2):g=()=>{if(!(p&&p.isUnmounted))return x&&x(),Bn(t,p,3,[S])}:g=yr,n&&o){const E=g;g=()=>Vi(E())}let x,S=E=>{x=M.onStop=()=>{_i(E,p,4)}},P;if(gl)if(S=yr,n?r&&Bn(n,p,3,[g(),b?[]:void 0,S]):g(),a==="sync"){const E=P_();P=E.__watcherHandles||(E.__watcherHandles=[])}else return yr;let A=b?new Array(t.length).fill(xa):xa;const L=()=>{if(M.active)if(n){const E=M.run();(o||v||(b?E.some((B,K)=>to(B,A[K])):to(E,A)))&&(x&&x(),Bn(n,p,3,[E,A===xa?void 0:b&&A[0]===xa?[]:A,S]),A=E)}else M.run()};L.allowRecurse=!!n;let T;a==="sync"?T=L:a==="post"?T=()=>Sn(L,p&&p.suspense):(L.pre=!0,p&&(L.id=p.uid),T=()=>gh(L));const M=new oh(g,T);n?r?L():A=M.run():a==="post"?Sn(M.run.bind(M),p&&p.suspense):M.run();const R=()=>{M.stop(),p&&p.scope&&nh(p.scope.effects,M)};return P&&P.push(R),R}function H1(t,n,r){const o=this.proxy,a=Re(t)?t.includes(".")?Wm(o,t):()=>o[t]:t.bind(o,o);let u;Ut(n)?u=n:(u=n.handler,r=n);const f=Ue;ns(this);const h=bh(a,u.bind(o),r);return f?ns(f):Zi(),h}function Wm(t,n){const r=n.split(".");return()=>{let o=t;for(let a=0;a<r.length&&o;a++)o=o[r[a]];return o}}function Vi(t,n){if(!me(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),Ee(t))Vi(t.value,n);else if(Ft(t))for(let r=0;r<t.length;r++)Vi(t[r],n);else if(fm(t)||jo(t))t.forEach(r=>{Vi(r,n)});else if(pm(t))for(const r in t)Vi(t[r],n);return t}function tn(t,n){const r=Ye;if(r===null)return t;const o=Lc(r)||r.proxy,a=t.dirs||(t.dirs=[]);for(let u=0;u<n.length;u++){let[f,h,p,g=be]=n[u];f&&(Ut(f)&&(f={mounted:f,updated:f}),f.deep&&Vi(h),a.push({dir:f,instance:o,value:h,oldValue:void 0,arg:p,modifiers:g}))}return t}function qi(t,n,r,o){const a=t.dirs,u=n&&n.dirs;for(let f=0;f<a.length;f++){const h=a[f];u&&(h.oldValue=u[f].value);let p=h.dir[o];p&&(fs(),Bn(p,r,8,[t.el,h,t,n]),hs())}}const pi=Symbol("_leaveCb"),_a=Symbol("_enterCb");function B1(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ps(()=>{t.isMounted=!0}),Km(()=>{t.isUnmounting=!0}),t}const In=[Function,Array],Um={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:In,onEnter:In,onAfterEnter:In,onEnterCancelled:In,onBeforeLeave:In,onLeave:In,onAfterLeave:In,onLeaveCancelled:In,onBeforeAppear:In,onAppear:In,onAfterAppear:In,onAppearCancelled:In},W1={name:"BaseTransition",props:Um,setup(t,{slots:n}){const r=Ll(),o=B1();let a;return()=>{const u=n.default&&Gm(n.default(),!0);if(!u||!u.length)return;let f=u[0];if(u.length>1){for(const A of u)if(A.type!==Ln){f=A;break}}const h=le(t),{mode:p}=h;if(o.isLeaving)return qu(f);const g=pg(f);if(!g)return qu(f);const v=gf(g,h,o,r);vf(g,v);const b=r.subTree,x=b&&pg(b);let S=!1;const{getTransitionKey:P}=g.type;if(P){const A=P();a===void 0?a=A:A!==a&&(a=A,S=!0)}if(x&&x.type!==Ln&&(!gr(g,x)||S)){const A=gf(x,h,o,r);if(vf(x,A),p==="out-in")return o.isLeaving=!0,A.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&r.update()},qu(f);p==="in-out"&&g.type!==Ln&&(A.delayLeave=(L,T,M)=>{const R=jm(o,x);R[String(x.key)]=x,L[pi]=()=>{T(),L[pi]=void 0,delete v.delayedLeave},v.delayedLeave=M})}return f}}},U1=W1;function jm(t,n){const{leavingVNodes:r}=t;let o=r.get(n.type);return o||(o=Object.create(null),r.set(n.type,o)),o}function gf(t,n,r,o){const{appear:a,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:b,onLeave:x,onAfterLeave:S,onLeaveCancelled:P,onBeforeAppear:A,onAppear:L,onAfterAppear:T,onAppearCancelled:M}=n,R=String(t.key),E=jm(r,t),B=(Y,et)=>{Y&&Bn(Y,o,9,et)},K=(Y,et)=>{const st=et[1];B(Y,et),Ft(Y)?Y.every(pt=>pt.length<=1)&&st():Y.length<=1&&st()},ht={mode:u,persisted:f,beforeEnter(Y){let et=h;if(!r.isMounted)if(a)et=A||h;else return;Y[pi]&&Y[pi](!0);const st=E[R];st&&gr(t,st)&&st.el[pi]&&st.el[pi](),B(et,[Y])},enter(Y){let et=p,st=g,pt=v;if(!r.isMounted)if(a)et=L||p,st=T||g,pt=M||v;else return;let gt=!1;const V=Y[_a]=z=>{gt||(gt=!0,z?B(pt,[Y]):B(st,[Y]),ht.delayedLeave&&ht.delayedLeave(),Y[_a]=void 0)};et?K(et,[Y,V]):V()},leave(Y,et){const st=String(t.key);if(Y[_a]&&Y[_a](!0),r.isUnmounting)return et();B(b,[Y]);let pt=!1;const gt=Y[pi]=V=>{pt||(pt=!0,et(),V?B(P,[Y]):B(S,[Y]),Y[pi]=void 0,E[st]===t&&delete E[st])};E[st]=t,x?K(x,[Y,gt]):gt()},clone(Y){return gf(Y,n,r,o)}};return ht}function qu(t){if(kc(t))return t=Ci(t),t.children=null,t}function pg(t){return kc(t)?t.children?t.children[0]:void 0:t}function vf(t,n){t.shapeFlag&6&&t.component?vf(t.component.subTree,n):t.shapeFlag&128?(t.ssContent.transition=n.clone(t.ssContent),t.ssFallback.transition=n.clone(t.ssFallback)):t.transition=n}function Gm(t,n=!1,r){let o=[],a=0;for(let u=0;u<t.length;u++){let f=t[u];const h=r==null?f.key:String(r)+String(f.key!=null?f.key:u);f.type===ue?(f.patchFlag&128&&a++,o=o.concat(Gm(f.children,n,h))):(n||f.type!==Ln)&&o.push(h!=null?Ci(f,{key:h}):f)}if(a>1)for(let u=0;u<o.length;u++)o[u].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function re(t,n){return Ut(t)?(()=>$e({name:t.name},n,{setup:t}))():t}const rl=t=>!!t.type.__asyncLoader,kc=t=>t.type.__isKeepAlive;function j1(t,n){Vm(t,"a",n)}function G1(t,n){Vm(t,"da",n)}function Vm(t,n,r=Ue){const o=t.__wdc||(t.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(Cc(n,o,r),r){let a=r.parent;for(;a&&a.parent;)kc(a.parent.vnode)&&V1(o,n,r,a),a=a.parent}}function V1(t,n,r,o){const a=Cc(n,t,o,!0);wh(()=>{nh(o[n],a)},r)}function Cc(t,n,r=Ue,o=!1){if(r){const a=r[t]||(r[t]=[]),u=n.__weh||(n.__weh=(...f)=>{if(r.isUnmounted)return;fs(),ns(r);const h=Bn(n,r,t,f);return Zi(),hs(),h});return o?a.unshift(u):a.push(u),u}}const Vr=t=>(n,r=Ue)=>(!gl||t==="sp")&&Cc(t,(...o)=>n(...o),r),K1=Vr("bm"),ps=Vr("m"),X1=Vr("bu"),Y1=Vr("u"),Km=Vr("bum"),wh=Vr("um"),Z1=Vr("sp"),J1=Vr("rtg"),Q1=Vr("rtc");function t_(t,n=Ue){Cc("ec",t,n)}function nr(t,n,r,o){let a;const u=r&&r[o];if(Ft(t)||Re(t)){a=new Array(t.length);for(let f=0,h=t.length;f<h;f++)a[f]=n(t[f],f,void 0,u&&u[f])}else if(typeof t=="number"){a=new Array(t);for(let f=0;f<t;f++)a[f]=n(f+1,f,void 0,u&&u[f])}else if(me(t))if(t[Symbol.iterator])a=Array.from(t,(f,h)=>n(f,h,void 0,u&&u[h]));else{const f=Object.keys(t);a=new Array(f.length);for(let h=0,p=f.length;h<p;h++){const g=f[h];a[h]=n(t[g],g,h,u&&u[h])}}else a=[];return r&&(r[o]=a),a}function ir(t,n,r={},o,a){if(Ye.isCE||Ye.parent&&rl(Ye.parent)&&Ye.parent.isCE)return n!=="default"&&(r.name=n),It("slot",r,o&&o());let u=t[n];u&&u._c&&(u._d=!1),ut();const f=u&&Xm(u(r)),h=Qt(ue,{key:r.key||f&&f.key||`_${n}`},f||(o?o():[]),f&&t._===1?64:-2);return!a&&h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),u&&u._c&&(u._d=!0),h}function Xm(t){return t.some(n=>pl(n)?!(n.type===Ln||n.type===ue&&!Xm(n.children)):!0)?t:null}const mf=t=>t?a0(t)?Lc(t)||t.proxy:mf(t.parent):null,il=$e(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>mf(t.parent),$root:t=>mf(t.root),$emit:t=>t.emit,$options:t=>xh(t),$forceUpdate:t=>t.f||(t.f=()=>gh(t.update)),$nextTick:t=>t.n||(t.n=Hr.bind(t.proxy)),$watch:t=>H1.bind(t)}),Hu=(t,n)=>t!==be&&!t.__isScriptSetup&&se(t,n),e_={get({_:t},n){const{ctx:r,setupState:o,data:a,props:u,accessCache:f,type:h,appContext:p}=t;let g;if(n[0]!=="$"){const S=f[n];if(S!==void 0)switch(S){case 1:return o[n];case 2:return a[n];case 4:return r[n];case 3:return u[n]}else{if(Hu(o,n))return f[n]=1,o[n];if(a!==be&&se(a,n))return f[n]=2,a[n];if((g=t.propsOptions[0])&&se(g,n))return f[n]=3,u[n];if(r!==be&&se(r,n))return f[n]=4,r[n];bf&&(f[n]=0)}}const v=il[n];let b,x;if(v)return n==="$attrs"&&An(t,"get",n),v(t);if((b=h.__cssModules)&&(b=b[n]))return b;if(r!==be&&se(r,n))return f[n]=4,r[n];if(x=p.config.globalProperties,se(x,n))return x[n]},set({_:t},n,r){const{data:o,setupState:a,ctx:u}=t;return Hu(a,n)?(a[n]=r,!0):o!==be&&se(o,n)?(o[n]=r,!0):se(t.props,n)||n[0]==="$"&&n.slice(1)in t?!1:(u[n]=r,!0)},has({_:{data:t,setupState:n,accessCache:r,ctx:o,appContext:a,propsOptions:u}},f){let h;return!!r[f]||t!==be&&se(t,f)||Hu(n,f)||(h=u[0])&&se(h,f)||se(o,f)||se(il,f)||se(a.config.globalProperties,f)},defineProperty(t,n,r){return r.get!=null?t._.accessCache[n]=0:se(r,"value")&&this.set(t,n,r.value,null),Reflect.defineProperty(t,n,r)}};function n_(){return r_().attrs}function Ym(t,n,r){const o=Ll();if(r&&r.local){const a=Yt(t[n]);return De(()=>t[n],u=>a.value=u),De(a,u=>{u!==t[n]&&o.emit(`update:${n}`,u)}),a}else return{__v_isRef:!0,get value(){return t[n]},set value(a){o.emit(`update:${n}`,a)}}}function r_(){const t=Ll();return t.setupContext||(t.setupContext=u0(t))}function Xa(t){return Ft(t)?t.reduce((n,r)=>(n[r]=null,n),{}):t}function yf(t,n){return!t||!n?t||n:Ft(t)&&Ft(n)?t.concat(n):$e({},Xa(t),Xa(n))}let bf=!0;function i_(t){const n=xh(t),r=t.proxy,o=t.ctx;bf=!1,n.beforeCreate&&gg(n.beforeCreate,t,"bc");const{data:a,computed:u,methods:f,watch:h,provide:p,inject:g,created:v,beforeMount:b,mounted:x,beforeUpdate:S,updated:P,activated:A,deactivated:L,beforeDestroy:T,beforeUnmount:M,destroyed:R,unmounted:E,render:B,renderTracked:K,renderTriggered:ht,errorCaptured:Y,serverPrefetch:et,expose:st,inheritAttrs:pt,components:gt,directives:V,filters:z}=n;if(g&&o_(g,o,null),f)for(const H in f){const J=f[H];Ut(J)&&(o[H]=J.bind(r))}if(a){const H=a.call(r,r);me(H)&&(t.data=Hn(H))}if(bf=!0,u)for(const H in u){const J=u[H],yt=Ut(J)?J.bind(r,r):Ut(J.get)?J.get.bind(r,r):yr,Lt=!Ut(J)&&Ut(J.set)?J.set.bind(r):yr,qt=xt({get:yt,set:Lt});Object.defineProperty(o,H,{enumerable:!0,configurable:!0,get:()=>qt.value,set:Ht=>qt.value=Ht})}if(h)for(const H in h)Zm(h[H],o,r,H);if(p){const H=Ut(p)?p.call(r):p;Reflect.ownKeys(H).forEach(J=>{Da(J,H[J])})}v&&gg(v,t,"c");function I(H,J){Ft(J)?J.forEach(yt=>H(yt.bind(r))):J&&H(J.bind(r))}if(I(K1,b),I(ps,x),I(X1,S),I(Y1,P),I(j1,A),I(G1,L),I(t_,Y),I(Q1,K),I(J1,ht),I(Km,M),I(wh,E),I(Z1,et),Ft(st))if(st.length){const H=t.exposed||(t.exposed={});st.forEach(J=>{Object.defineProperty(H,J,{get:()=>r[J],set:yt=>r[J]=yt})})}else t.exposed||(t.exposed={});B&&t.render===yr&&(t.render=B),pt!=null&&(t.inheritAttrs=pt),gt&&(t.components=gt),V&&(t.directives=V)}function o_(t,n,r=yr){Ft(t)&&(t=wf(t));for(const o in t){const a=t[o];let u;me(a)?"default"in a?u=Ir(a.from||o,a.default,!0):u=Ir(a.from||o):u=Ir(a),Ee(u)?Object.defineProperty(n,o,{enumerable:!0,configurable:!0,get:()=>u.value,set:f=>u.value=f}):n[o]=u}}function gg(t,n,r){Bn(Ft(t)?t.map(o=>o.bind(n.proxy)):t.bind(n.proxy),n,r)}function Zm(t,n,r,o){const a=o.includes(".")?Wm(r,o):()=>r[o];if(Re(t)){const u=n[t];Ut(u)&&De(a,u)}else if(Ut(t))De(a,t.bind(r));else if(me(t))if(Ft(t))t.forEach(u=>Zm(u,n,r,o));else{const u=Ut(t.handler)?t.handler.bind(r):n[t.handler];Ut(u)&&De(a,u,t)}}function xh(t){const n=t.type,{mixins:r,extends:o}=n,{mixins:a,optionsCache:u,config:{optionMergeStrategies:f}}=t.appContext,h=u.get(n);let p;return h?p=h:!a.length&&!r&&!o?p=n:(p={},a.length&&a.forEach(g=>Ya(p,g,f,!0)),Ya(p,n,f)),me(n)&&u.set(n,p),p}function Ya(t,n,r,o=!1){const{mixins:a,extends:u}=n;u&&Ya(t,u,r,!0),a&&a.forEach(f=>Ya(t,f,r,!0));for(const f in n)if(!(o&&f==="expose")){const h=s_[f]||r&&r[f];t[f]=h?h(t[f],n[f]):n[f]}return t}const s_={data:vg,props:mg,emits:mg,methods:tl,computed:tl,beforeCreate:un,created:un,beforeMount:un,mounted:un,beforeUpdate:un,updated:un,beforeDestroy:un,beforeUnmount:un,destroyed:un,unmounted:un,activated:un,deactivated:un,errorCaptured:un,serverPrefetch:un,components:tl,directives:tl,watch:a_,provide:vg,inject:l_};function vg(t,n){return n?t?function(){return $e(Ut(t)?t.call(this,this):t,Ut(n)?n.call(this,this):n)}:n:t}function l_(t,n){return tl(wf(t),wf(n))}function wf(t){if(Ft(t)){const n={};for(let r=0;r<t.length;r++)n[t[r]]=t[r];return n}return t}function un(t,n){return t?[...new Set([].concat(t,n))]:n}function tl(t,n){return t?$e(Object.create(null),t,n):n}function mg(t,n){return t?Ft(t)&&Ft(n)?[...new Set([...t,...n])]:$e(Object.create(null),Xa(t),Xa(n??{})):n}function a_(t,n){if(!t)return n;if(!n)return t;const r=$e(Object.create(null),t);for(const o in n)r[o]=un(t[o],n[o]);return r}function Jm(){return{app:null,config:{isNativeTag:Ax,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 c_=0;function u_(t,n){return function(o,a=null){Ut(o)||(o=$e({},o)),a!=null&&!me(a)&&(a=null);const u=Jm(),f=new WeakSet;let h=!1;const p=u.app={_uid:c_++,_component:o,_props:a,_container:null,_context:u,_instance:null,version:O_,get config(){return u.config},set config(g){},use(g,...v){return f.has(g)||(g&&Ut(g.install)?(f.add(g),g.install(p,...v)):Ut(g)&&(f.add(g),g(p,...v))),p},mixin(g){return u.mixins.includes(g)||u.mixins.push(g),p},component(g,v){return v?(u.components[g]=v,p):u.components[g]},directive(g,v){return v?(u.directives[g]=v,p):u.directives[g]},mount(g,v,b){if(!h){const x=It(o,a);return x.appContext=u,v&&n?n(x,g):t(x,g,b),h=!0,p._container=g,g.__vue_app__=p,Lc(x.component)||x.component.proxy}},unmount(){h&&(t(null,p._container),delete p._container.__vue_app__)},provide(g,v){return u.provides[g]=v,p},runWithContext(g){Za=p;try{return g()}finally{Za=null}}};return p}}let Za=null;function Da(t,n){if(Ue){let r=Ue.provides;const o=Ue.parent&&Ue.parent.provides;o===r&&(r=Ue.provides=Object.create(o)),r[t]=n}}function Ir(t,n,r=!1){const o=Ue||Ye;if(o||Za){const a=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Za._context.provides;if(a&&t in a)return a[t];if(arguments.length>1)return r&&Ut(n)?n.call(o&&o.proxy):n}}function f_(t,n,r,o=!1){const a={},u={};ja(u,Ec,1),t.propsDefaults=Object.create(null),Qm(t,n,a,u);for(const f in t.propsOptions[0])f in a||(a[f]=void 0);r?t.props=o?a:Am(a):t.type.props?t.props=a:t.props=u,t.attrs=u}function h_(t,n,r,o){const{props:a,attrs:u,vnode:{patchFlag:f}}=t,h=le(a),[p]=t.propsOptions;let g=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=t.vnode.dynamicProps;for(let b=0;b<v.length;b++){let x=v[b];if(_c(t.emitsOptions,x))continue;const S=n[x];if(p)if(se(u,x))S!==u[x]&&(u[x]=S,g=!0);else{const P=wr(x);a[P]=xf(p,h,P,S,t,!1)}else S!==u[x]&&(u[x]=S,g=!0)}}}else{Qm(t,n,a,u)&&(g=!0);let v;for(const b in h)(!n||!se(n,b)&&((v=so(b))===b||!se(n,v)))&&(p?r&&(r[b]!==void 0||r[v]!==void 0)&&(a[b]=xf(p,h,b,void 0,t,!0)):delete a[b]);if(u!==h)for(const b in u)(!n||!se(n,b))&&(delete u[b],g=!0)}g&&Fr(t,"set","$attrs")}function Qm(t,n,r,o){const[a,u]=t.propsOptions;let f=!1,h;if(n)for(let p in n){if(Pa(p))continue;const g=n[p];let v;a&&se(a,v=wr(p))?!u||!u.includes(v)?r[v]=g:(h||(h={}))[v]=g:_c(t.emitsOptions,p)||(!(p in o)||g!==o[p])&&(o[p]=g,f=!0)}if(u){const p=le(r),g=h||be;for(let v=0;v<u.length;v++){const b=u[v];r[b]=xf(a,p,b,g[b],t,!se(g,b))}}return f}function xf(t,n,r,o,a,u){const f=t[r];if(f!=null){const h=se(f,"default");if(h&&o===void 0){const p=f.default;if(f.type!==Function&&!f.skipFactory&&Ut(p)){const{propsDefaults:g}=a;r in g?o=g[r]:(ns(a),o=g[r]=p.call(null,n),Zi())}else o=p}f[0]&&(u&&!h?o=!1:f[1]&&(o===""||o===so(r))&&(o=!0))}return o}function t0(t,n,r=!1){const o=n.propsCache,a=o.get(t);if(a)return a;const u=t.props,f={},h=[];let p=!1;if(!Ut(t)){const v=b=>{p=!0;const[x,S]=t0(b,n,!0);$e(f,x),S&&h.push(...S)};!r&&n.mixins.length&&n.mixins.forEach(v),t.extends&&v(t.extends),t.mixins&&t.mixins.forEach(v)}if(!u&&!p)return me(t)&&o.set(t,Uo),Uo;if(Ft(u))for(let v=0;v<u.length;v++){const b=wr(u[v]);yg(b)&&(f[b]=be)}else if(u)for(const v in u){const b=wr(v);if(yg(b)){const x=u[v],S=f[b]=Ft(x)||Ut(x)?{type:x}:$e({},x);if(S){const P=xg(Boolean,S.type),A=xg(String,S.type);S[0]=P>-1,S[1]=A<0||P<A,(P>-1||se(S,"default"))&&h.push(b)}}}const g=[f,h];return me(t)&&o.set(t,g),g}function yg(t){return t[0]!=="$"}function bg(t){const n=t&&t.toString().match(/^\s*(function|class) (\w+)/);return n?n[2]:t===null?"null":""}function wg(t,n){return bg(t)===bg(n)}function xg(t,n){return Ft(n)?n.findIndex(r=>wg(r,t)):Ut(n)&&wg(n,t)?0:-1}const e0=t=>t[0]==="_"||t==="$stable",_h=t=>Ft(t)?t.map(tr):[tr(t)],d_=(t,n,r)=>{if(n._n)return n;const o=Jt((...a)=>_h(n(...a)),r);return o._c=!1,o},n0=(t,n,r)=>{const o=t._ctx;for(const a in t){if(e0(a))continue;const u=t[a];if(Ut(u))n[a]=d_(a,u,o);else if(u!=null){const f=_h(u);n[a]=()=>f}}},r0=(t,n)=>{const r=_h(n);t.slots.default=()=>r},p_=(t,n)=>{if(t.vnode.shapeFlag&32){const r=n._;r?(t.slots=le(n),ja(n,"_",r)):n0(n,t.slots={})}else t.slots={},n&&r0(t,n);ja(t.slots,Ec,1)},g_=(t,n,r)=>{const{vnode:o,slots:a}=t;let u=!0,f=be;if(o.shapeFlag&32){const h=n._;h?r&&h===1?u=!1:($e(a,n),!r&&h===1&&delete a._):(u=!n.$stable,n0(n,a)),f=n}else n&&(r0(t,n),f={default:1});if(u)for(const h in a)!e0(h)&&f[h]==null&&delete a[h]};function _f(t,n,r,o,a=!1){if(Ft(t)){t.forEach((x,S)=>_f(x,n&&(Ft(n)?n[S]:n),r,o,a));return}if(rl(o)&&!a)return;const u=o.shapeFlag&4?Lc(o.component)||o.component.proxy:o.el,f=a?null:u,{i:h,r:p}=t,g=n&&n.r,v=h.refs===be?h.refs={}:h.refs,b=h.setupState;if(g!=null&&g!==p&&(Re(g)?(v[g]=null,se(b,g)&&(b[g]=null)):Ee(g)&&(g.value=null)),Ut(p))_i(p,h,12,[f,v]);else{const x=Re(p),S=Ee(p);if(x||S){const P=()=>{if(t.f){const A=x?se(b,p)?b[p]:v[p]:p.value;a?Ft(A)&&nh(A,u):Ft(A)?A.includes(u)||A.push(u):x?(v[p]=[u],se(b,p)&&(b[p]=v[p])):(p.value=[u],t.k&&(v[t.k]=p.value))}else x?(v[p]=f,se(b,p)&&(b[p]=f)):S&&(p.value=f,t.k&&(v[t.k]=f))};f?(P.id=-1,Sn(P,r)):P()}}}const Sn=I1;function v_(t){return m_(t)}function m_(t,n){const r=cf();r.__VUE__=!0;const{insert:o,remove:a,patchProp:u,createElement:f,createText:h,createComment:p,setText:g,setElementText:v,parentNode:b,nextSibling:x,setScopeId:S=yr,insertStaticContent:P}=t,A=($,F,G,Q=null,it=null,at=null,St=!1,mt=null,lt=!!F.dynamicChildren)=>{if($===F)return;$&&!gr($,F)&&(Q=j($),Ht($,it,at,!0),$=null),F.patchFlag===-2&&(lt=!1,F.dynamicChildren=null);const{type:ft,ref:$t,shapeFlag:Nt}=F;switch(ft){case Tc:L($,F,G,Q);break;case Ln:T($,F,G,Q);break;case Bu:$==null&&M(F,G,Q,St);break;case ue:gt($,F,G,Q,it,at,St,mt,lt);break;default:Nt&1?B($,F,G,Q,it,at,St,mt,lt):Nt&6?V($,F,G,Q,it,at,St,mt,lt):(Nt&64||Nt&128)&&ft.process($,F,G,Q,it,at,St,mt,lt,ot)}$t!=null&&it&&_f($t,$&&$.ref,at,F||$,!F)},L=($,F,G,Q)=>{if($==null)o(F.el=h(F.children),G,Q);else{const it=F.el=$.el;F.children!==$.children&&g(it,F.children)}},T=($,F,G,Q)=>{$==null?o(F.el=p(F.children||""),G,Q):F.el=$.el},M=($,F,G,Q)=>{[$.el,$.anchor]=P($.children,F,G,Q,$.el,$.anchor)},R=({el:$,anchor:F},G,Q)=>{let it;for(;$&&$!==F;)it=x($),o($,G,Q),$=it;o(F,G,Q)},E=({el:$,anchor:F})=>{let G;for(;$&&$!==F;)G=x($),a($),$=G;a(F)},B=($,F,G,Q,it,at,St,mt,lt)=>{St=St||F.type==="svg",$==null?K(F,G,Q,it,at,St,mt,lt):et($,F,it,at,St,mt,lt)},K=($,F,G,Q,it,at,St,mt)=>{let lt,ft;const{type:$t,props:Nt,shapeFlag:Dt,transition:Bt,dirs:Gt}=$;if(lt=$.el=f($.type,at,Nt&&Nt.is,Nt),Dt&8?v(lt,$.children):Dt&16&&Y($.children,lt,null,Q,it,at&&$t!=="foreignObject",St,mt),Gt&&qi($,null,Q,"created"),ht(lt,$,$.scopeId,St,Q),Nt){for(const ie in Nt)ie!=="value"&&!Pa(ie)&&u(lt,ie,null,Nt[ie],at,$.children,Q,it,Ct);"value"in Nt&&u(lt,"value",null,Nt.value),(ft=Nt.onVnodeBeforeMount)&&dr(ft,Q,$)}Gt&&qi($,null,Q,"beforeMount");const te=y_(it,Bt);te&&Bt.beforeEnter(lt),o(lt,F,G),((ft=Nt&&Nt.onVnodeMounted)||te||Gt)&&Sn(()=>{ft&&dr(ft,Q,$),te&&Bt.enter(lt),Gt&&qi($,null,Q,"mounted")},it)},ht=($,F,G,Q,it)=>{if(G&&S($,G),Q)for(let at=0;at<Q.length;at++)S($,Q[at]);if(it){let at=it.subTree;if(F===at){const St=it.vnode;ht($,St,St.scopeId,St.slotScopeIds,it.parent)}}},Y=($,F,G,Q,it,at,St,mt,lt=0)=>{for(let ft=lt;ft<$.length;ft++){const $t=$[ft]=mt?gi($[ft]):tr($[ft]);A(null,$t,F,G,Q,it,at,St,mt)}},et=($,F,G,Q,it,at,St)=>{const mt=F.el=$.el;let{patchFlag:lt,dynamicChildren:ft,dirs:$t}=F;lt|=$.patchFlag&16;const Nt=$.props||be,Dt=F.props||be;let Bt;G&&Hi(G,!1),(Bt=Dt.onVnodeBeforeUpdate)&&dr(Bt,G,F,$),$t&&qi(F,$,G,"beforeUpdate"),G&&Hi(G,!0);const Gt=it&&F.type!=="foreignObject";if(ft?st($.dynamicChildren,ft,mt,G,Q,Gt,at):St||J($,F,mt,null,G,Q,Gt,at,!1),lt>0){if(lt&16)pt(mt,F,Nt,Dt,G,Q,it);else if(lt&2&&Nt.class!==Dt.class&&u(mt,"class",null,Dt.class,it),lt&4&&u(mt,"style",Nt.style,Dt.style,it),lt&8){const te=F.dynamicProps;for(let ie=0;ie<te.length;ie++){const fe=te[ie],oe=Nt[fe],en=Dt[fe];(en!==oe||fe==="value")&&u(mt,fe,oe,en,it,$.children,G,Q,Ct)}}lt&1&&$.children!==F.children&&v(mt,F.children)}else!St&&ft==null&&pt(mt,F,Nt,Dt,G,Q,it);((Bt=Dt.onVnodeUpdated)||$t)&&Sn(()=>{Bt&&dr(Bt,G,F,$),$t&&qi(F,$,G,"updated")},Q)},st=($,F,G,Q,it,at,St)=>{for(let mt=0;mt<F.length;mt++){const lt=$[mt],ft=F[mt],$t=lt.el&&(lt.type===ue||!gr(lt,ft)||lt.shapeFlag&70)?b(lt.el):G;A(lt,ft,$t,null,Q,it,at,St,!0)}},pt=($,F,G,Q,it,at,St)=>{if(G!==Q){if(G!==be)for(const mt in G)!Pa(mt)&&!(mt in Q)&&u($,mt,G[mt],null,St,F.children,it,at,Ct);for(const mt in Q){if(Pa(mt))continue;const lt=Q[mt],ft=G[mt];lt!==ft&&mt!=="value"&&u($,mt,ft,lt,St,F.children,it,at,Ct)}"value"in Q&&u($,"value",G.value,Q.value)}},gt=($,F,G,Q,it,at,St,mt,lt)=>{const ft=F.el=$?$.el:h(""),$t=F.anchor=$?$.anchor:h("");let{patchFlag:Nt,dynamicChildren:Dt,slotScopeIds:Bt}=F;Bt&&(mt=mt?mt.concat(Bt):Bt),$==null?(o(ft,G,Q),o($t,G,Q),Y(F.children,G,$t,it,at,St,mt,lt)):Nt>0&&Nt&64&&Dt&&$.dynamicChildren?(st($.dynamicChildren,Dt,G,it,at,St,mt),(F.key!=null||it&&F===it.subTree)&&i0($,F,!0)):J($,F,G,$t,it,at,St,mt,lt)},V=($,F,G,Q,it,at,St,mt,lt)=>{F.slotScopeIds=mt,$==null?F.shapeFlag&512?it.ctx.activate(F,G,Q,St,lt):z(F,G,Q,it,at,St,lt):k($,F,lt)},z=($,F,G,Q,it,at,St)=>{const mt=$.component=C_($,Q,it);if(kc($)&&(mt.ctx.renderer=ot),T_(mt),mt.asyncDep){if(it&&it.registerDep(mt,I),!$.el){const lt=mt.subTree=It(Ln);T(null,lt,F,G)}return}I(mt,$,F,G,it,at,St)},k=($,F,G)=>{const Q=F.component=$.component;if(A1($,F,G))if(Q.asyncDep&&!Q.asyncResolved){H(Q,F,G);return}else Q.next=F,_1(Q.update),Q.update();else F.el=$.el,Q.vnode=F},I=($,F,G,Q,it,at,St)=>{const mt=()=>{if($.isMounted){let{next:$t,bu:Nt,u:Dt,parent:Bt,vnode:Gt}=$,te=$t,ie;Hi($,!1),$t?($t.el=Gt.el,H($,$t,St)):$t=Gt,Nt&&Oa(Nt),(ie=$t.props&&$t.props.onVnodeBeforeUpdate)&&dr(ie,Bt,$t,Gt),Hi($,!0);const fe=Iu($),oe=$.subTree;$.subTree=fe,A(oe,fe,b(oe.el),j(oe),$,it,at),$t.el=fe.el,te===null&&vh($,fe.el),Dt&&Sn(Dt,it),(ie=$t.props&&$t.props.onVnodeUpdated)&&Sn(()=>dr(ie,Bt,$t,Gt),it)}else{let $t;const{el:Nt,props:Dt}=F,{bm:Bt,m:Gt,parent:te}=$,ie=rl(F);if(Hi($,!1),Bt&&Oa(Bt),!ie&&($t=Dt&&Dt.onVnodeBeforeMount)&&dr($t,te,F),Hi($,!0),Nt&&Tt){const fe=()=>{$.subTree=Iu($),Tt(Nt,$.subTree,$,it,null)};ie?F.type.__asyncLoader().then(()=>!$.isUnmounted&&fe()):fe()}else{const fe=$.subTree=Iu($);A(null,fe,G,Q,$,it,at),F.el=fe.el}if(Gt&&Sn(Gt,it),!ie&&($t=Dt&&Dt.onVnodeMounted)){const fe=F;Sn(()=>dr($t,te,fe),it)}(F.shapeFlag&256||te&&rl(te.vnode)&&te.vnode.shapeFlag&256)&&$.a&&Sn($.a,it),$.isMounted=!0,F=G=Q=null}},lt=$.effect=new oh(mt,()=>gh(ft),$.scope),ft=$.update=()=>lt.run();ft.id=$.uid,Hi($,!0),ft()},H=($,F,G)=>{F.component=$;const Q=$.vnode.props;$.vnode=F,$.next=null,h_($,F.props,Q,G),g_($,F.children,G),fs(),ug(),hs()},J=($,F,G,Q,it,at,St,mt,lt=!1)=>{const ft=$&&$.children,$t=$?$.shapeFlag:0,Nt=F.children,{patchFlag:Dt,shapeFlag:Bt}=F;if(Dt>0){if(Dt&128){Lt(ft,Nt,G,Q,it,at,St,mt,lt);return}else if(Dt&256){yt(ft,Nt,G,Q,it,at,St,mt,lt);return}}Bt&8?($t&16&&Ct(ft,it,at),Nt!==ft&&v(G,Nt)):$t&16?Bt&16?Lt(ft,Nt,G,Q,it,at,St,mt,lt):Ct(ft,it,at,!0):($t&8&&v(G,""),Bt&16&&Y(Nt,G,Q,it,at,St,mt,lt))},yt=($,F,G,Q,it,at,St,mt,lt)=>{$=$||Uo,F=F||Uo;const ft=$.length,$t=F.length,Nt=Math.min(ft,$t);let Dt;for(Dt=0;Dt<Nt;Dt++){const Bt=F[Dt]=lt?gi(F[Dt]):tr(F[Dt]);A($[Dt],Bt,G,null,it,at,St,mt,lt)}ft>$t?Ct($,it,at,!0,!1,Nt):Y(F,G,Q,it,at,St,mt,lt,Nt)},Lt=($,F,G,Q,it,at,St,mt,lt)=>{let ft=0;const $t=F.length;let Nt=$.length-1,Dt=$t-1;for(;ft<=Nt&&ft<=Dt;){const Bt=$[ft],Gt=F[ft]=lt?gi(F[ft]):tr(F[ft]);if(gr(Bt,Gt))A(Bt,Gt,G,null,it,at,St,mt,lt);else break;ft++}for(;ft<=Nt&&ft<=Dt;){const Bt=$[Nt],Gt=F[Dt]=lt?gi(F[Dt]):tr(F[Dt]);if(gr(Bt,Gt))A(Bt,Gt,G,null,it,at,St,mt,lt);else break;Nt--,Dt--}if(ft>Nt){if(ft<=Dt){const Bt=Dt+1,Gt=Bt<$t?F[Bt].el:Q;for(;ft<=Dt;)A(null,F[ft]=lt?gi(F[ft]):tr(F[ft]),G,Gt,it,at,St,mt,lt),ft++}}else if(ft>Dt)for(;ft<=Nt;)Ht($[ft],it,at,!0),ft++;else{const Bt=ft,Gt=ft,te=new Map;for(ft=Gt;ft<=Dt;ft++){const Le=F[ft]=lt?gi(F[ft]):tr(F[ft]);Le.key!=null&&te.set(Le.key,ft)}let ie,fe=0;const oe=Dt-Gt+1;let en=!1,Mn=0;const mn=new Array(oe);for(ft=0;ft<oe;ft++)mn[ft]=0;for(ft=Bt;ft<=Nt;ft++){const Le=$[ft];if(fe>=oe){Ht(Le,it,at,!0);continue}let yn;if(Le.key!=null)yn=te.get(Le.key);else for(ie=Gt;ie<=Dt;ie++)if(mn[ie-Gt]===0&&gr(Le,F[ie])){yn=ie;break}yn===void 0?Ht(Le,it,at,!0):(mn[yn-Gt]=ft+1,yn>=Mn?Mn=yn:en=!0,A(Le,F[yn],G,null,it,at,St,mt,lt),fe++)}const lr=en?b_(mn):Uo;for(ie=lr.length-1,ft=oe-1;ft>=0;ft--){const Le=Gt+ft,yn=F[Le],Kt=Le+1<$t?F[Le+1].el:Q;mn[ft]===0?A(null,yn,G,Kt,it,at,St,mt,lt):en&&(ie<0||ft!==lr[ie]?qt(yn,G,Kt,2):ie--)}}},qt=($,F,G,Q,it=null)=>{const{el:at,type:St,transition:mt,children:lt,shapeFlag:ft}=$;if(ft&6){qt($.component.subTree,F,G,Q);return}if(ft&128){$.suspense.move(F,G,Q);return}if(ft&64){St.move($,F,G,ot);return}if(St===ue){o(at,F,G);for(let Nt=0;Nt<lt.length;Nt++)qt(lt[Nt],F,G,Q);o($.anchor,F,G);return}if(St===Bu){R($,F,G);return}if(Q!==2&&ft&1&&mt)if(Q===0)mt.beforeEnter(at),o(at,F,G),Sn(()=>mt.enter(at),it);else{const{leave:Nt,delayLeave:Dt,afterLeave:Bt}=mt,Gt=()=>o(at,F,G),te=()=>{Nt(at,()=>{Gt(),Bt&&Bt()})};Dt?Dt(at,Gt,te):te()}else o(at,F,G)},Ht=($,F,G,Q=!1,it=!1)=>{const{type:at,props:St,ref:mt,children:lt,dynamicChildren:ft,shapeFlag:$t,patchFlag:Nt,dirs:Dt}=$;if(mt!=null&&_f(mt,null,G,$,!0),$t&256){F.ctx.deactivate($);return}const Bt=$t&1&&Dt,Gt=!rl($);let te;if(Gt&&(te=St&&St.onVnodeBeforeUnmount)&&dr(te,F,$),$t&6)jt($.component,G,Q);else{if($t&128){$.suspense.unmount(G,Q);return}Bt&&qi($,null,F,"beforeUnmount"),$t&64?$.type.remove($,F,G,it,ot,Q):ft&&(at!==ue||Nt>0&&Nt&64)?Ct(ft,F,G,!1,!0):(at===ue&&Nt&384||!it&&$t&16)&&Ct(lt,F,G),Q&&Zt($)}(Gt&&(te=St&&St.onVnodeUnmounted)||Bt)&&Sn(()=>{te&&dr(te,F,$),Bt&&qi($,null,F,"unmounted")},G)},Zt=$=>{const{type:F,el:G,anchor:Q,transition:it}=$;if(F===ue){Xt(G,Q);return}if(F===Bu){E($);return}const at=()=>{a(G),it&&!it.persisted&&it.afterLeave&&it.afterLeave()};if($.shapeFlag&1&&it&&!it.persisted){const{leave:St,delayLeave:mt}=it,lt=()=>St(G,at);mt?mt($.el,at,lt):lt()}else at()},Xt=($,F)=>{let G;for(;$!==F;)G=x($),a($),$=G;a(F)},jt=($,F,G)=>{const{bum:Q,scope:it,update:at,subTree:St,um:mt}=$;Q&&Oa(Q),it.stop(),at&&(at.active=!1,Ht(St,$,F,G)),mt&&Sn(mt,F),Sn(()=>{$.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve())},Ct=($,F,G,Q=!1,it=!1,at=0)=>{for(let St=at;St<$.length;St++)Ht($[St],F,G,Q,it)},j=$=>$.shapeFlag&6?j($.component.subTree):$.shapeFlag&128?$.suspense.next():x($.anchor||$.el),nt=($,F,G)=>{$==null?F._vnode&&Ht(F._vnode,null,null,!0):A(F._vnode||null,$,F,null,null,null,G),ug(),Rm(),F._vnode=$},ot={p:A,um:Ht,m:qt,r:Zt,mt:z,mc:Y,pc:J,pbc:st,n:j,o:t};let Mt,Tt;return n&&([Mt,Tt]=n(ot)),{render:nt,hydrate:Mt,createApp:u_(nt,Mt)}}function Hi({effect:t,update:n},r){t.allowRecurse=n.allowRecurse=r}function y_(t,n){return(!t||t&&!t.pendingBranch)&&n&&!n.persisted}function i0(t,n,r=!1){const o=t.children,a=n.children;if(Ft(o)&&Ft(a))for(let u=0;u<o.length;u++){const f=o[u];let h=a[u];h.shapeFlag&1&&!h.dynamicChildren&&((h.patchFlag<=0||h.patchFlag===32)&&(h=a[u]=gi(a[u]),h.el=f.el),r||i0(f,h)),h.type===Tc&&(h.el=f.el)}}function b_(t){const n=t.slice(),r=[0];let o,a,u,f,h;const p=t.length;for(o=0;o<p;o++){const g=t[o];if(g!==0){if(a=r[r.length-1],t[a]<g){n[o]=a,r.push(o);continue}for(u=0,f=r.length-1;u<f;)h=u+f>>1,t[r[h]]<g?u=h+1:f=h;g<t[r[u]]&&(u>0&&(n[o]=r[u-1]),r[u]=o)}}for(u=r.length,f=r[u-1];u-- >0;)r[u]=f,f=n[f];return r}const w_=t=>t.__isTeleport,ue=Symbol.for("v-fgt"),Tc=Symbol.for("v-txt"),Ln=Symbol.for("v-cmt"),Bu=Symbol.for("v-stc"),ol=[];let qn=null;function ut(t=!1){ol.push(qn=t?null:[])}function o0(){ol.pop(),qn=ol[ol.length-1]||null}let es=1;function _g(t){es+=t}function s0(t){return t.dynamicChildren=es>0?qn||Uo:null,o0(),es>0&&qn&&qn.push(t),t}function At(t,n,r,o,a,u){return s0(ct(t,n,r,o,a,u,!0))}function Qt(t,n,r,o,a){return s0(It(t,n,r,o,a,!0))}function pl(t){return t?t.__v_isVNode===!0:!1}function gr(t,n){return t.type===n.type&&t.key===n.key}const Ec="__vInternal",l0=({key:t})=>t??null,$a=({ref:t,ref_key:n,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?Re(t)||Ee(t)||Ut(t)?{i:Ye,r:t,k:n,f:!!r}:t:null);function ct(t,n=null,r=null,o=0,a=null,u=t===ue?0:1,f=!1,h=!1){const p={__v_isVNode:!0,__v_skip:!0,type:t,props:n,key:n&&l0(n),ref:n&&$a(n),scopeId:Sc,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Ye};return h?(Sh(p,r),u&128&&t.normalize(p)):r&&(p.shapeFlag|=Re(r)?8:16),es>0&&!f&&qn&&(p.patchFlag>0||u&6)&&p.patchFlag!==32&&qn.push(p),p}const It=x_;function x_(t,n=null,r=null,o=0,a=null,u=!1){if((!t||t===N1)&&(t=Ln),pl(t)){const h=Ci(t,n,!0);return r&&Sh(h,r),es>0&&!u&&qn&&(h.shapeFlag&6?qn[qn.indexOf(t)]=h:qn.push(h)),h.patchFlag|=-2,h}if(M_(t)&&(t=t.__vccOpts),n){n=__(n);let{class:h,style:p}=n;h&&!Re(h)&&(n.class=ve(h)),me(p)&&(Mm(p)&&!Ft(p)&&(p=$e({},p)),n.style=En(p))}const f=Re(t)?1:P1(t)?128:w_(t)?64:me(t)?4:Ut(t)?2:0;return ct(t,n,r,o,a,f,u,!0)}function __(t){return t?Mm(t)||Ec in t?$e({},t):t:null}function Ci(t,n,r=!1){const{props:o,ref:a,patchFlag:u,children:f}=t,h=n?Si(o||{},n):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&l0(h),ref:n&&n.ref?r&&a?Ft(a)?a.concat($a(n)):[a,$a(n)]:$a(n):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:f,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:n&&t.type!==ue?u===-1?16:u|16:u,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ci(t.ssContent),ssFallback:t.ssFallback&&Ci(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function fn(t=" ",n=0){return It(Tc,null,t,n)}function ee(t="",n=!1){return n?(ut(),Qt(Ln,null,t)):It(Ln,null,t)}function tr(t){return t==null||typeof t=="boolean"?It(Ln):Ft(t)?It(ue,null,t.slice()):typeof t=="object"?gi(t):It(Tc,null,String(t))}function gi(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ci(t)}function Sh(t,n){let r=0;const{shapeFlag:o}=t;if(n==null)n=null;else if(Ft(n))r=16;else if(typeof n=="object")if(o&65){const a=n.default;a&&(a._c&&(a._d=!1),Sh(t,a()),a._c&&(a._d=!0));return}else{r=32;const a=n._;!a&&!(Ec in n)?n._ctx=Ye:a===3&&Ye&&(Ye.slots._===1?n._=1:(n._=2,t.patchFlag|=1024))}else Ut(n)?(n={default:n,_ctx:Ye},r=32):(n=String(n),o&64?(r=16,n=[fn(n)]):r=8);t.children=n,t.shapeFlag|=r}function Si(...t){const n={};for(let r=0;r<t.length;r++){const o=t[r];for(const a in o)if(a==="class")n.class!==o.class&&(n.class=ve([n.class,o.class]));else if(a==="style")n.style=En([n.style,o.style]);else if(gc(a)){const u=n[a],f=o[a];f&&u!==f&&!(Ft(u)&&u.includes(f))&&(n[a]=u?[].concat(u,f):f)}else a!==""&&(n[a]=o[a])}return n}function dr(t,n,r,o=null){Bn(t,n,7,[r,o])}const S_=Jm();let k_=0;function C_(t,n,r){const o=t.type,a=(n?n.appContext:t.appContext)||S_,u={uid:k_++,vnode:t,type:o,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new Hx(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:t0(o,a),emitsOptions:Fm(o,a),emit:null,emitted:null,propsDefaults:be,inheritAttrs:o.inheritAttrs,ctx:be,data:be,props:be,attrs:be,slots:be,refs:be,setupState:be,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return u.ctx={_:u},u.root=n?n.root:u,u.emit=k1.bind(null,u),t.ce&&t.ce(u),u}let Ue=null;const Ll=()=>Ue||Ye;let kh,zo,Sg="__VUE_INSTANCE_SETTERS__";(zo=cf()[Sg])||(zo=cf()[Sg]=[]),zo.push(t=>Ue=t),kh=t=>{zo.length>1?zo.forEach(n=>n(t)):zo[0](t)};const ns=t=>{kh(t),t.scope.on()},Zi=()=>{Ue&&Ue.scope.off(),kh(null)};function a0(t){return t.vnode.shapeFlag&4}let gl=!1;function T_(t,n=!1){gl=n;const{props:r,children:o}=t.vnode,a=a0(t);f_(t,r,a,n),p_(t,o);const u=a?E_(t,n):void 0;return gl=!1,u}function E_(t,n){const r=t.type;t.accessCache=Object.create(null),t.proxy=ch(new Proxy(t.ctx,e_));const{setup:o}=r;if(o){const a=t.setupContext=o.length>1?u0(t):null;ns(t),fs();const u=_i(o,t,0,[t.props,a]);if(hs(),Zi(),hm(u)){if(u.then(Zi,Zi),n)return u.then(f=>{Sf(t,f,n)}).catch(f=>{El(f,t,0)});t.asyncDep=u}else Sf(t,u,n)}else c0(t,n)}function Sf(t,n,r){Ut(n)?t.type.__ssrInlineRender?t.ssrRender=n:t.render=n:me(n)&&(t.setupState=Pm(n)),c0(t,r)}let kg;function c0(t,n,r){const o=t.type;if(!t.render){if(!n&&kg&&!o.render){const a=o.template||xh(t).template;if(a){const{isCustomElement:u,compilerOptions:f}=t.appContext.config,{delimiters:h,compilerOptions:p}=o,g=$e($e({isCustomElement:u,delimiters:h},f),p);o.render=kg(a,g)}}t.render=o.render||yr}{ns(t),fs();try{i_(t)}finally{hs(),Zi()}}}function L_(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(n,r){return An(t,"get","$attrs"),n[r]}}))}function u0(t){const n=r=>{t.exposed=r||{}};return{get attrs(){return L_(t)},slots:t.slots,emit:t.emit,expose:n}}function Lc(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Pm(ch(t.exposed)),{get(n,r){if(r in n)return n[r];if(r in il)return il[r](t)},has(n,r){return r in n||r in il}}))}function A_(t,n=!0){return Ut(t)?t.displayName||t.name:t.name||n&&t.__name}function M_(t){return Ut(t)&&"__vccOpts"in t}const xt=(t,n)=>b1(t,n,gl);function Al(t,n,r){const o=arguments.length;return o===2?me(n)&&!Ft(n)?pl(n)?It(t,null,[n]):It(t,n):It(t,null,n):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&pl(r)&&(r=[r]),It(t,n,r))}const N_=Symbol.for("v-scx"),P_=()=>Ir(N_),O_="3.3.8",D_="http://www.w3.org/2000/svg",Gi=typeof document<"u"?document:null,Cg=Gi&&Gi.createElement("template"),$_={insert:(t,n,r)=>{n.insertBefore(t,r||null)},remove:t=>{const n=t.parentNode;n&&n.removeChild(t)},createElement:(t,n,r,o)=>{const a=n?Gi.createElementNS(D_,t):Gi.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&a.setAttribute("multiple",o.multiple),a},createText:t=>Gi.createTextNode(t),createComment:t=>Gi.createComment(t),setText:(t,n)=>{t.nodeValue=n},setElementText:(t,n)=>{t.textContent=n},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Gi.querySelector(t),setScopeId(t,n){t.setAttribute(n,"")},insertStaticContent(t,n,r,o,a,u){const f=r?r.previousSibling:n.lastChild;if(a&&(a===u||a.nextSibling))for(;n.insertBefore(a.cloneNode(!0),r),!(a===u||!(a=a.nextSibling)););else{Cg.innerHTML=o?`<svg>${t}</svg>`:t;const h=Cg.content;if(o){const p=h.firstChild;for(;p.firstChild;)h.appendChild(p.firstChild);h.removeChild(p)}n.insertBefore(h,r)}return[f?f.nextSibling:n.firstChild,r?r.previousSibling:n.lastChild]}},ui="transition",Ks="animation",vl=Symbol("_vtc"),Ch=(t,{slots:n})=>Al(U1,R_(t),n);Ch.displayName="Transition";const f0={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Ch.props=$e({},Um,f0);const Bi=(t,n=[])=>{Ft(t)?t.forEach(r=>r(...n)):t&&t(...n)},Tg=t=>t?Ft(t)?t.some(n=>n.length>1):t.length>1:!1;function R_(t){const n={};for(const gt in t)gt in f0||(n[gt]=t[gt]);if(t.css===!1)return n;const{name:r="v",type:o,duration:a,enterFromClass:u=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:h=`${r}-enter-to`,appearFromClass:p=u,appearActiveClass:g=f,appearToClass:v=h,leaveFromClass:b=`${r}-leave-from`,leaveActiveClass:x=`${r}-leave-active`,leaveToClass:S=`${r}-leave-to`}=t,P=z_(a),A=P&&P[0],L=P&&P[1],{onBeforeEnter:T,onEnter:M,onEnterCancelled:R,onLeave:E,onLeaveCancelled:B,onBeforeAppear:K=T,onAppear:ht=M,onAppearCancelled:Y=R}=n,et=(gt,V,z)=>{Wi(gt,V?v:h),Wi(gt,V?g:f),z&&z()},st=(gt,V)=>{gt._isLeaving=!1,Wi(gt,b),Wi(gt,S),Wi(gt,x),V&&V()},pt=gt=>(V,z)=>{const k=gt?ht:M,I=()=>et(V,gt,z);Bi(k,[V,I]),Eg(()=>{Wi(V,gt?p:u),fi(V,gt?v:h),Tg(k)||Lg(V,o,A,I)})};return $e(n,{onBeforeEnter(gt){Bi(T,[gt]),fi(gt,u),fi(gt,f)},onBeforeAppear(gt){Bi(K,[gt]),fi(gt,p),fi(gt,g)},onEnter:pt(!1),onAppear:pt(!0),onLeave(gt,V){gt._isLeaving=!0;const z=()=>st(gt,V);fi(gt,b),q_(),fi(gt,x),Eg(()=>{gt._isLeaving&&(Wi(gt,b),fi(gt,S),Tg(E)||Lg(gt,o,L,z))}),Bi(E,[gt,z])},onEnterCancelled(gt){et(gt,!1),Bi(R,[gt])},onAppearCancelled(gt){et(gt,!0),Bi(Y,[gt])},onLeaveCancelled(gt){st(gt),Bi(B,[gt])}})}function z_(t){if(t==null)return null;if(me(t))return[Wu(t.enter),Wu(t.leave)];{const n=Wu(t);return[n,n]}}function Wu(t){return gm(t)}function fi(t,n){n.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[vl]||(t[vl]=new Set)).add(n)}function Wi(t,n){n.split(/\s+/).forEach(o=>o&&t.classList.remove(o));const r=t[vl];r&&(r.delete(n),r.size||(t[vl]=void 0))}function Eg(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let F_=0;function Lg(t,n,r,o){const a=t._endId=++F_,u=()=>{a===t._endId&&o()};if(r)return setTimeout(u,r);const{type:f,timeout:h,propCount:p}=I_(t,n);if(!f)return o();const g=f+"end";let v=0;const b=()=>{t.removeEventListener(g,x),u()},x=S=>{S.target===t&&++v>=p&&b()};setTimeout(()=>{v<p&&b()},h+1),t.addEventListener(g,x)}function I_(t,n){const r=window.getComputedStyle(t),o=P=>(r[P]||"").split(", "),a=o(`${ui}Delay`),u=o(`${ui}Duration`),f=Ag(a,u),h=o(`${Ks}Delay`),p=o(`${Ks}Duration`),g=Ag(h,p);let v=null,b=0,x=0;n===ui?f>0&&(v=ui,b=f,x=u.length):n===Ks?g>0&&(v=Ks,b=g,x=p.length):(b=Math.max(f,g),v=b>0?f>g?ui:Ks:null,x=v?v===ui?u.length:p.length:0);const S=v===ui&&/\b(transform|all)(,|$)/.test(o(`${ui}Property`).toString());return{type:v,timeout:b,propCount:x,hasTransform:S}}function Ag(t,n){for(;t.length<n.length;)t=t.concat(t);return Math.max(...n.map((r,o)=>Mg(r)+Mg(t[o])))}function Mg(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function q_(){return document.body.offsetHeight}function H_(t,n,r){const o=t[vl];o&&(n=(n?[n,...o]:[...o]).join(" ")),n==null?t.removeAttribute("class"):r?t.setAttribute("class",n):t.className=n}const Th=Symbol("_vod"),kf={beforeMount(t,{value:n},{transition:r}){t[Th]=t.style.display==="none"?"":t.style.display,r&&n?r.beforeEnter(t):Xs(t,n)},mounted(t,{value:n},{transition:r}){r&&n&&r.enter(t)},updated(t,{value:n,oldValue:r},{transition:o}){!n!=!r&&(o?n?(o.beforeEnter(t),Xs(t,!0),o.enter(t)):o.leave(t,()=>{Xs(t,!1)}):Xs(t,n))},beforeUnmount(t,{value:n}){Xs(t,n)}};function Xs(t,n){t.style.display=n?t[Th]:"none"}function B_(t,n,r){const o=t.style,a=Re(r);if(r&&!a){if(n&&!Re(n))for(const u in n)r[u]==null&&Cf(o,u,"");for(const u in r)Cf(o,u,r[u])}else{const u=o.display;a?n!==r&&(o.cssText=r):n&&t.removeAttribute("style"),Th in t&&(o.display=u)}}const Ng=/\s*!important$/;function Cf(t,n,r){if(Ft(r))r.forEach(o=>Cf(t,n,o));else if(r==null&&(r=""),n.startsWith("--"))t.setProperty(n,r);else{const o=W_(t,n);Ng.test(r)?t.setProperty(so(o),r.replace(Ng,""),"important"):t[o]=r}}const Pg=["Webkit","Moz","ms"],Uu={};function W_(t,n){const r=Uu[n];if(r)return r;let o=wr(n);if(o!=="filter"&&o in t)return Uu[n]=o;o=bc(o);for(let a=0;a<Pg.length;a++){const u=Pg[a]+o;if(u in t)return Uu[n]=u}return n}const Og="http://www.w3.org/1999/xlink";function U_(t,n,r,o,a){if(o&&n.startsWith("xlink:"))r==null?t.removeAttributeNS(Og,n.slice(6,n.length)):t.setAttributeNS(Og,n,r);else{const u=qx(n);r==null||u&&!vm(r)?t.removeAttribute(n):t.setAttribute(n,u?"":r)}}function j_(t,n,r,o,a,u,f){if(n==="innerHTML"||n==="textContent"){o&&f(o,a,u),t[n]=r??"";return}const h=t.tagName;if(n==="value"&&h!=="PROGRESS"&&!h.includes("-")){t._value=r;const g=h==="OPTION"?t.getAttribute("value"):t.value,v=r??"";g!==v&&(t.value=v),r==null&&t.removeAttribute(n);return}let p=!1;if(r===""||r==null){const g=typeof t[n];g==="boolean"?r=vm(r):r==null&&g==="string"?(r="",p=!0):g==="number"&&(r=0,p=!0)}try{t[n]=r}catch{}p&&t.removeAttribute(n)}function Io(t,n,r,o){t.addEventListener(n,r,o)}function G_(t,n,r,o){t.removeEventListener(n,r,o)}const Dg=Symbol("_vei");function V_(t,n,r,o,a=null){const u=t[Dg]||(t[Dg]={}),f=u[n];if(o&&f)f.value=o;else{const[h,p]=K_(n);if(o){const g=u[n]=Z_(o,a);Io(t,h,g,p)}else f&&(G_(t,h,f,p),u[n]=void 0)}}const $g=/(?:Once|Passive|Capture)$/;function K_(t){let n;if($g.test(t)){n={};let o;for(;o=t.match($g);)t=t.slice(0,t.length-o[0].length),n[o[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):so(t.slice(2)),n]}let ju=0;const X_=Promise.resolve(),Y_=()=>ju||(X_.then(()=>ju=0),ju=Date.now());function Z_(t,n){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Bn(J_(o,r.value),n,5,[o])};return r.value=t,r.attached=Y_(),r}function J_(t,n){if(Ft(n)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},n.map(o=>a=>!a._stopped&&o&&o(a))}else return n}const Rg=/^on[a-z]/,Q_=(t,n,r,o,a=!1,u,f,h,p)=>{n==="class"?H_(t,o,a):n==="style"?B_(t,r,o):gc(n)?eh(n)||V_(t,n,r,o,f):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):tS(t,n,o,a))?j_(t,n,o,u,f,h,p):(n==="true-value"?t._trueValue=o:n==="false-value"&&(t._falseValue=o),U_(t,n,o,a))};function tS(t,n,r,o){return o?!!(n==="innerHTML"||n==="textContent"||n in t&&Rg.test(n)&&Ut(r)):n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&t.tagName==="INPUT"||n==="type"&&t.tagName==="TEXTAREA"||Rg.test(n)&&Re(r)?!1:n in t}const zg=t=>{const n=t.props["onUpdate:modelValue"]||!1;return Ft(n)?r=>Oa(n,r):n};function eS(t){t.target.composing=!0}function Fg(t){const n=t.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const Gu=Symbol("_assign"),nS={created(t,{modifiers:{lazy:n,trim:r,number:o}},a){t[Gu]=zg(a);const u=o||a.props&&a.props.type==="number";Io(t,n?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),u&&(h=af(h)),t[Gu](h)}),r&&Io(t,"change",()=>{t.value=t.value.trim()}),n||(Io(t,"compositionstart",eS),Io(t,"compositionend",Fg),Io(t,"change",Fg))},mounted(t,{value:n}){t.value=n??""},beforeUpdate(t,{value:n,modifiers:{lazy:r,trim:o,number:a}},u){if(t[Gu]=zg(u),t.composing||document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===n||(a||t.type==="number")&&af(t.value)===n))return;const f=n??"";t.value!==f&&(t.value=f)}},rS={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Tf=(t,n)=>r=>{if(!("key"in r))return;const o=so(r.key);if(n.some(a=>a===o||rS[a]===o))return t(r)},iS=$e({patchProp:Q_},$_);let Ig;function oS(){return Ig||(Ig=v_(iS))}const h0=(...t)=>{const n=oS().createApp(...t),{mount:r}=n;return n.mount=o=>{const a=sS(o);if(!a)return;const u=n._component;!Ut(u)&&!u.render&&!u.template&&(u.template=a.innerHTML),a.innerHTML="";const f=r(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),f},n};function sS(t){return Re(t)?document.querySelector(t):t}const ao=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r},lS={};function aS(t,n){const r=eo("RouterView");return ut(),Qt(r)}const cS=ao(lS,[["render",aS]]);/*!
|
|
2
|
-
* vue-router v4.2.5
|
|
3
|
-
* (c) 2023 Eduardo San Martin Morote
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/const qo=typeof window<"u";function uS(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const pe=Object.assign;function Vu(t,n){const r={};for(const o in n){const a=n[o];r[o]=or(a)?a.map(t):t(a)}return r}const sl=()=>{},or=Array.isArray,fS=/\/$/,hS=t=>t.replace(fS,"");function Ku(t,n,r="/"){let o,a={},u="",f="";const h=n.indexOf("#");let p=n.indexOf("?");return h<p&&h>=0&&(p=-1),p>-1&&(o=n.slice(0,p),u=n.slice(p+1,h>-1?h:n.length),a=t(u)),h>-1&&(o=o||n.slice(0,h),f=n.slice(h,n.length)),o=vS(o??n,r),{fullPath:o+(u&&"?")+u+f,path:o,query:a,hash:f}}function dS(t,n){const r=n.query?t(n.query):"";return n.path+(r&&"?")+r+(n.hash||"")}function qg(t,n){return!n||!t.toLowerCase().startsWith(n.toLowerCase())?t:t.slice(n.length)||"/"}function pS(t,n,r){const o=n.matched.length-1,a=r.matched.length-1;return o>-1&&o===a&&rs(n.matched[o],r.matched[a])&&d0(n.params,r.params)&&t(n.query)===t(r.query)&&n.hash===r.hash}function rs(t,n){return(t.aliasOf||t)===(n.aliasOf||n)}function d0(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(!gS(t[r],n[r]))return!1;return!0}function gS(t,n){return or(t)?Hg(t,n):or(n)?Hg(n,t):t===n}function Hg(t,n){return or(n)?t.length===n.length&&t.every((r,o)=>r===n[o]):t.length===1&&t[0]===n}function vS(t,n){if(t.startsWith("/"))return t;if(!t)return n;const r=n.split("/"),o=t.split("/"),a=o[o.length-1];(a===".."||a===".")&&o.push("");let u=r.length-1,f,h;for(f=0;f<o.length;f++)if(h=o[f],h!==".")if(h==="..")u>1&&u--;else break;return r.slice(0,u).join("/")+"/"+o.slice(f-(f===o.length?1:0)).join("/")}var ml;(function(t){t.pop="pop",t.push="push"})(ml||(ml={}));var ll;(function(t){t.back="back",t.forward="forward",t.unknown=""})(ll||(ll={}));function mS(t){if(!t)if(qo){const n=document.querySelector("base");t=n&&n.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),hS(t)}const yS=/^[^#]+#/;function bS(t,n){return t.replace(yS,"#")+n}function wS(t,n){const r=document.documentElement.getBoundingClientRect(),o=t.getBoundingClientRect();return{behavior:n.behavior,left:o.left-r.left-(n.left||0),top:o.top-r.top-(n.top||0)}}const Ac=()=>({left:window.pageXOffset,top:window.pageYOffset});function xS(t){let n;if("el"in t){const r=t.el,o=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;n=wS(a,t)}else n=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(n):window.scrollTo(n.left!=null?n.left:window.pageXOffset,n.top!=null?n.top:window.pageYOffset)}function Bg(t,n){return(history.state?history.state.position-n:-1)+t}const Ef=new Map;function _S(t,n){Ef.set(t,n)}function SS(t){const n=Ef.get(t);return Ef.delete(t),n}let kS=()=>location.protocol+"//"+location.host;function p0(t,n){const{pathname:r,search:o,hash:a}=n,u=t.indexOf("#");if(u>-1){let h=a.includes(t.slice(u))?t.slice(u).length:1,p=a.slice(h);return p[0]!=="/"&&(p="/"+p),qg(p,"")}return qg(r,t)+o+a}function CS(t,n,r,o){let a=[],u=[],f=null;const h=({state:x})=>{const S=p0(t,location),P=r.value,A=n.value;let L=0;if(x){if(r.value=S,n.value=x,f&&f===P){f=null;return}L=A?x.position-A.position:0}else o(S);a.forEach(T=>{T(r.value,P,{delta:L,type:ml.pop,direction:L?L>0?ll.forward:ll.back:ll.unknown})})};function p(){f=r.value}function g(x){a.push(x);const S=()=>{const P=a.indexOf(x);P>-1&&a.splice(P,1)};return u.push(S),S}function v(){const{history:x}=window;x.state&&x.replaceState(pe({},x.state,{scroll:Ac()}),"")}function b(){for(const x of u)x();u=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",v,{passive:!0}),{pauseListeners:p,listen:g,destroy:b}}function Wg(t,n,r,o=!1,a=!1){return{back:t,current:n,forward:r,replaced:o,position:window.history.length,scroll:a?Ac():null}}function TS(t){const{history:n,location:r}=window,o={value:p0(t,r)},a={value:n.state};a.value||u(o.value,{back:null,current:o.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function u(p,g,v){const b=t.indexOf("#"),x=b>-1?(r.host&&document.querySelector("base")?t:t.slice(b))+p:kS()+t+p;try{n[v?"replaceState":"pushState"](g,"",x),a.value=g}catch(S){console.error(S),r[v?"replace":"assign"](x)}}function f(p,g){const v=pe({},n.state,Wg(a.value.back,p,a.value.forward,!0),g,{position:a.value.position});u(p,v,!0),o.value=p}function h(p,g){const v=pe({},a.value,n.state,{forward:p,scroll:Ac()});u(v.current,v,!0);const b=pe({},Wg(o.value,p,null),{position:v.position+1},g);u(p,b,!1),o.value=p}return{location:o,state:a,push:h,replace:f}}function ES(t){t=mS(t);const n=TS(t),r=CS(t,n.state,n.location,n.replace);function o(u,f=!0){f||r.pauseListeners(),history.go(u)}const a=pe({location:"",base:t,go:o,createHref:bS.bind(null,t)},n,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>n.state.value}),a}function LS(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),ES(t)}function AS(t){return typeof t=="string"||t&&typeof t=="object"}function g0(t){return typeof t=="string"||typeof t=="symbol"}const hi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},v0=Symbol("");var Ug;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Ug||(Ug={}));function is(t,n){return pe(new Error,{type:t,[v0]:!0},n)}function Pr(t,n){return t instanceof Error&&v0 in t&&(n==null||!!(t.type&n))}const jg="[^/]+?",MS={sensitive:!1,strict:!1,start:!0,end:!0},NS=/[.+*?^${}()[\]/\\]/g;function PS(t,n){const r=pe({},MS,n),o=[];let a=r.start?"^":"";const u=[];for(const g of t){const v=g.length?[]:[90];r.strict&&!g.length&&(a+="/");for(let b=0;b<g.length;b++){const x=g[b];let S=40+(r.sensitive?.25:0);if(x.type===0)b||(a+="/"),a+=x.value.replace(NS,"\\$&"),S+=40;else if(x.type===1){const{value:P,repeatable:A,optional:L,regexp:T}=x;u.push({name:P,repeatable:A,optional:L});const M=T||jg;if(M!==jg){S+=10;try{new RegExp(`(${M})`)}catch(E){throw new Error(`Invalid custom RegExp for param "${P}" (${M}): `+E.message)}}let R=A?`((?:${M})(?:/(?:${M}))*)`:`(${M})`;b||(R=L&&g.length<2?`(?:/${R})`:"/"+R),L&&(R+="?"),a+=R,S+=20,L&&(S+=-8),A&&(S+=-20),M===".*"&&(S+=-50)}v.push(S)}o.push(v)}if(r.strict&&r.end){const g=o.length-1;o[g][o[g].length-1]+=.7000000000000001}r.strict||(a+="/?"),r.end?a+="$":r.strict&&(a+="(?:/|$)");const f=new RegExp(a,r.sensitive?"":"i");function h(g){const v=g.match(f),b={};if(!v)return null;for(let x=1;x<v.length;x++){const S=v[x]||"",P=u[x-1];b[P.name]=S&&P.repeatable?S.split("/"):S}return b}function p(g){let v="",b=!1;for(const x of t){(!b||!v.endsWith("/"))&&(v+="/"),b=!1;for(const S of x)if(S.type===0)v+=S.value;else if(S.type===1){const{value:P,repeatable:A,optional:L}=S,T=P in g?g[P]:"";if(or(T)&&!A)throw new Error(`Provided param "${P}" is an array but it is not repeatable (* or + modifiers)`);const M=or(T)?T.join("/"):T;if(!M)if(L)x.length<2&&(v.endsWith("/")?v=v.slice(0,-1):b=!0);else throw new Error(`Missing required param "${P}"`);v+=M}}return v||"/"}return{re:f,score:o,keys:u,parse:h,stringify:p}}function OS(t,n){let r=0;for(;r<t.length&&r<n.length;){const o=n[r]-t[r];if(o)return o;r++}return t.length<n.length?t.length===1&&t[0]===40+40?-1:1:t.length>n.length?n.length===1&&n[0]===40+40?1:-1:0}function DS(t,n){let r=0;const o=t.score,a=n.score;for(;r<o.length&&r<a.length;){const u=OS(o[r],a[r]);if(u)return u;r++}if(Math.abs(a.length-o.length)===1){if(Gg(o))return 1;if(Gg(a))return-1}return a.length-o.length}function Gg(t){const n=t[t.length-1];return t.length>0&&n[n.length-1]<0}const $S={type:0,value:""},RS=/[a-zA-Z0-9_]/;function zS(t){if(!t)return[[]];if(t==="/")return[[$S]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function n(S){throw new Error(`ERR (${r})/"${g}": ${S}`)}let r=0,o=r;const a=[];let u;function f(){u&&a.push(u),u=[]}let h=0,p,g="",v="";function b(){g&&(r===0?u.push({type:0,value:g}):r===1||r===2||r===3?(u.length>1&&(p==="*"||p==="+")&&n(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:g,regexp:v,repeatable:p==="*"||p==="+",optional:p==="*"||p==="?"})):n("Invalid state to consume buffer"),g="")}function x(){g+=p}for(;h<t.length;){if(p=t[h++],p==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:p==="/"?(g&&b(),f()):p===":"?(b(),r=1):x();break;case 4:x(),r=o;break;case 1:p==="("?r=2:RS.test(p)?x():(b(),r=0,p!=="*"&&p!=="?"&&p!=="+"&&h--);break;case 2:p===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+p:r=3:v+=p;break;case 3:b(),r=0,p!=="*"&&p!=="?"&&p!=="+"&&h--,v="";break;default:n("Unknown state");break}}return r===2&&n(`Unfinished custom RegExp for param "${g}"`),b(),f(),a}function FS(t,n,r){const o=PS(zS(t.path),r),a=pe(o,{record:t,parent:n,children:[],alias:[]});return n&&!a.record.aliasOf==!n.record.aliasOf&&n.children.push(a),a}function IS(t,n){const r=[],o=new Map;n=Xg({strict:!1,end:!0,sensitive:!1},n);function a(v){return o.get(v)}function u(v,b,x){const S=!x,P=qS(v);P.aliasOf=x&&x.record;const A=Xg(n,v),L=[P];if("alias"in v){const R=typeof v.alias=="string"?[v.alias]:v.alias;for(const E of R)L.push(pe({},P,{components:x?x.record.components:P.components,path:E,aliasOf:x?x.record:P}))}let T,M;for(const R of L){const{path:E}=R;if(b&&E[0]!=="/"){const B=b.record.path,K=B[B.length-1]==="/"?"":"/";R.path=b.record.path+(E&&K+E)}if(T=FS(R,b,A),x?x.alias.push(T):(M=M||T,M!==T&&M.alias.push(T),S&&v.name&&!Kg(T)&&f(v.name)),P.children){const B=P.children;for(let K=0;K<B.length;K++)u(B[K],T,x&&x.children[K])}x=x||T,(T.record.components&&Object.keys(T.record.components).length||T.record.name||T.record.redirect)&&p(T)}return M?()=>{f(M)}:sl}function f(v){if(g0(v)){const b=o.get(v);b&&(o.delete(v),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(v);b>-1&&(r.splice(b,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function h(){return r}function p(v){let b=0;for(;b<r.length&&DS(v,r[b])>=0&&(v.record.path!==r[b].record.path||!m0(v,r[b]));)b++;r.splice(b,0,v),v.record.name&&!Kg(v)&&o.set(v.record.name,v)}function g(v,b){let x,S={},P,A;if("name"in v&&v.name){if(x=o.get(v.name),!x)throw is(1,{location:v});A=x.record.name,S=pe(Vg(b.params,x.keys.filter(M=>!M.optional).map(M=>M.name)),v.params&&Vg(v.params,x.keys.map(M=>M.name))),P=x.stringify(S)}else if("path"in v)P=v.path,x=r.find(M=>M.re.test(P)),x&&(S=x.parse(P),A=x.record.name);else{if(x=b.name?o.get(b.name):r.find(M=>M.re.test(b.path)),!x)throw is(1,{location:v,currentLocation:b});A=x.record.name,S=pe({},b.params,v.params),P=x.stringify(S)}const L=[];let T=x;for(;T;)L.unshift(T.record),T=T.parent;return{name:A,path:P,params:S,matched:L,meta:BS(L)}}return t.forEach(v=>u(v)),{addRoute:u,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:a}}function Vg(t,n){const r={};for(const o of n)o in t&&(r[o]=t[o]);return r}function qS(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:HS(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function HS(t){const n={},r=t.props||!1;if("component"in t)n.default=r;else for(const o in t.components)n[o]=typeof r=="object"?r[o]:r;return n}function Kg(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function BS(t){return t.reduce((n,r)=>pe(n,r.meta),{})}function Xg(t,n){const r={};for(const o in t)r[o]=o in n?n[o]:t[o];return r}function m0(t,n){return n.children.some(r=>r===t||m0(t,r))}const y0=/#/g,WS=/&/g,US=/\//g,jS=/=/g,GS=/\?/g,b0=/\+/g,VS=/%5B/g,KS=/%5D/g,w0=/%5E/g,XS=/%60/g,x0=/%7B/g,YS=/%7C/g,_0=/%7D/g,ZS=/%20/g;function Eh(t){return encodeURI(""+t).replace(YS,"|").replace(VS,"[").replace(KS,"]")}function JS(t){return Eh(t).replace(x0,"{").replace(_0,"}").replace(w0,"^")}function Lf(t){return Eh(t).replace(b0,"%2B").replace(ZS,"+").replace(y0,"%23").replace(WS,"%26").replace(XS,"`").replace(x0,"{").replace(_0,"}").replace(w0,"^")}function QS(t){return Lf(t).replace(jS,"%3D")}function tk(t){return Eh(t).replace(y0,"%23").replace(GS,"%3F")}function ek(t){return t==null?"":tk(t).replace(US,"%2F")}function Ja(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function nk(t){const n={};if(t===""||t==="?")return n;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let a=0;a<o.length;++a){const u=o[a].replace(b0," "),f=u.indexOf("="),h=Ja(f<0?u:u.slice(0,f)),p=f<0?null:Ja(u.slice(f+1));if(h in n){let g=n[h];or(g)||(g=n[h]=[g]),g.push(p)}else n[h]=p}return n}function Yg(t){let n="";for(let r in t){const o=t[r];if(r=QS(r),o==null){o!==void 0&&(n+=(n.length?"&":"")+r);continue}(or(o)?o.map(u=>u&&Lf(u)):[o&&Lf(o)]).forEach(u=>{u!==void 0&&(n+=(n.length?"&":"")+r,u!=null&&(n+="="+u))})}return n}function rk(t){const n={};for(const r in t){const o=t[r];o!==void 0&&(n[r]=or(o)?o.map(a=>a==null?null:""+a):o==null?o:""+o)}return n}const ik=Symbol(""),Zg=Symbol(""),Lh=Symbol(""),S0=Symbol(""),Af=Symbol("");function Ys(){let t=[];function n(o){return t.push(o),()=>{const a=t.indexOf(o);a>-1&&t.splice(a,1)}}function r(){t=[]}return{add:n,list:()=>t.slice(),reset:r}}function vi(t,n,r,o,a){const u=o&&(o.enterCallbacks[a]=o.enterCallbacks[a]||[]);return()=>new Promise((f,h)=>{const p=b=>{b===!1?h(is(4,{from:r,to:n})):b instanceof Error?h(b):AS(b)?h(is(2,{from:n,to:b})):(u&&o.enterCallbacks[a]===u&&typeof b=="function"&&u.push(b),f())},g=t.call(o&&o.instances[a],n,r,p);let v=Promise.resolve(g);t.length<3&&(v=v.then(p)),v.catch(b=>h(b))})}function Xu(t,n,r,o){const a=[];for(const u of t)for(const f in u.components){let h=u.components[f];if(!(n!=="beforeRouteEnter"&&!u.instances[f]))if(ok(h)){const g=(h.__vccOpts||h)[n];g&&a.push(vi(g,r,o,u,f))}else{let p=h();a.push(()=>p.then(g=>{if(!g)return Promise.reject(new Error(`Couldn't resolve component "${f}" at "${u.path}"`));const v=uS(g)?g.default:g;u.components[f]=v;const x=(v.__vccOpts||v)[n];return x&&vi(x,r,o,u,f)()}))}}return a}function ok(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Jg(t){const n=Ir(Lh),r=Ir(S0),o=xt(()=>n.resolve(U(t.to))),a=xt(()=>{const{matched:p}=o.value,{length:g}=p,v=p[g-1],b=r.matched;if(!v||!b.length)return-1;const x=b.findIndex(rs.bind(null,v));if(x>-1)return x;const S=Qg(p[g-2]);return g>1&&Qg(v)===S&&b[b.length-1].path!==S?b.findIndex(rs.bind(null,p[g-2])):x}),u=xt(()=>a.value>-1&&ck(r.params,o.value.params)),f=xt(()=>a.value>-1&&a.value===r.matched.length-1&&d0(r.params,o.value.params));function h(p={}){return ak(p)?n[U(t.replace)?"replace":"push"](U(t.to)).catch(sl):Promise.resolve()}return{route:o,href:xt(()=>o.value.href),isActive:u,isExactActive:f,navigate:h}}const sk=re({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:Jg,setup(t,{slots:n}){const r=Hn(Jg(t)),{options:o}=Ir(Lh),a=xt(()=>({[tv(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[tv(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const u=n.default&&n.default(r);return t.custom?u:Al("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},u)}}}),lk=sk;function ak(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const n=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return t.preventDefault&&t.preventDefault(),!0}}function ck(t,n){for(const r in n){const o=n[r],a=t[r];if(typeof o=="string"){if(o!==a)return!1}else if(!or(a)||a.length!==o.length||o.some((u,f)=>u!==a[f]))return!1}return!0}function Qg(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const tv=(t,n,r)=>t??n??r,uk=re({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:n,slots:r}){const o=Ir(Af),a=xt(()=>t.route||o.value),u=Ir(Zg,0),f=xt(()=>{let g=U(u);const{matched:v}=a.value;let b;for(;(b=v[g])&&!b.components;)g++;return g}),h=xt(()=>a.value.matched[f.value]);Da(Zg,xt(()=>f.value+1)),Da(ik,h),Da(Af,a);const p=Yt();return De(()=>[p.value,h.value,t.name],([g,v,b],[x,S,P])=>{v&&(v.instances[b]=g,S&&S!==v&&g&&g===x&&(v.leaveGuards.size||(v.leaveGuards=S.leaveGuards),v.updateGuards.size||(v.updateGuards=S.updateGuards))),g&&v&&(!S||!rs(v,S)||!x)&&(v.enterCallbacks[b]||[]).forEach(A=>A(g))},{flush:"post"}),()=>{const g=a.value,v=t.name,b=h.value,x=b&&b.components[v];if(!x)return ev(r.default,{Component:x,route:g});const S=b.props[v],P=S?S===!0?g.params:typeof S=="function"?S(g):S:null,L=Al(x,pe({},P,n,{onVnodeUnmounted:T=>{T.component.isUnmounted&&(b.instances[v]=null)},ref:p}));return ev(r.default,{Component:L,route:g})||L}}});function ev(t,n){if(!t)return null;const r=t(n);return r.length===1?r[0]:r}const fk=uk;function hk(t){const n=IS(t.routes,t),r=t.parseQuery||nk,o=t.stringifyQuery||Yg,a=t.history,u=Ys(),f=Ys(),h=Ys(),p=ds(hi);let g=hi;qo&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Vu.bind(null,j=>""+j),b=Vu.bind(null,ek),x=Vu.bind(null,Ja);function S(j,nt){let ot,Mt;return g0(j)?(ot=n.getRecordMatcher(j),Mt=nt):Mt=j,n.addRoute(Mt,ot)}function P(j){const nt=n.getRecordMatcher(j);nt&&n.removeRoute(nt)}function A(){return n.getRoutes().map(j=>j.record)}function L(j){return!!n.getRecordMatcher(j)}function T(j,nt){if(nt=pe({},nt||p.value),typeof j=="string"){const G=Ku(r,j,nt.path),Q=n.resolve({path:G.path},nt),it=a.createHref(G.fullPath);return pe(G,Q,{params:x(Q.params),hash:Ja(G.hash),redirectedFrom:void 0,href:it})}let ot;if("path"in j)ot=pe({},j,{path:Ku(r,j.path,nt.path).path});else{const G=pe({},j.params);for(const Q in G)G[Q]==null&&delete G[Q];ot=pe({},j,{params:b(G)}),nt.params=b(nt.params)}const Mt=n.resolve(ot,nt),Tt=j.hash||"";Mt.params=v(x(Mt.params));const $=dS(o,pe({},j,{hash:JS(Tt),path:Mt.path})),F=a.createHref($);return pe({fullPath:$,hash:Tt,query:o===Yg?rk(j.query):j.query||{}},Mt,{redirectedFrom:void 0,href:F})}function M(j){return typeof j=="string"?Ku(r,j,p.value.path):pe({},j)}function R(j,nt){if(g!==j)return is(8,{from:nt,to:j})}function E(j){return ht(j)}function B(j){return E(pe(M(j),{replace:!0}))}function K(j){const nt=j.matched[j.matched.length-1];if(nt&&nt.redirect){const{redirect:ot}=nt;let Mt=typeof ot=="function"?ot(j):ot;return typeof Mt=="string"&&(Mt=Mt.includes("?")||Mt.includes("#")?Mt=M(Mt):{path:Mt},Mt.params={}),pe({query:j.query,hash:j.hash,params:"path"in Mt?{}:j.params},Mt)}}function ht(j,nt){const ot=g=T(j),Mt=p.value,Tt=j.state,$=j.force,F=j.replace===!0,G=K(ot);if(G)return ht(pe(M(G),{state:typeof G=="object"?pe({},Tt,G.state):Tt,force:$,replace:F}),nt||ot);const Q=ot;Q.redirectedFrom=nt;let it;return!$&&pS(o,Mt,ot)&&(it=is(16,{to:Q,from:Mt}),qt(Mt,Mt,!0,!1)),(it?Promise.resolve(it):st(Q,Mt)).catch(at=>Pr(at)?Pr(at,2)?at:Lt(at):J(at,Q,Mt)).then(at=>{if(at){if(Pr(at,2))return ht(pe({replace:F},M(at.to),{state:typeof at.to=="object"?pe({},Tt,at.to.state):Tt,force:$}),nt||Q)}else at=gt(Q,Mt,!0,F,Tt);return pt(Q,Mt,at),at})}function Y(j,nt){const ot=R(j,nt);return ot?Promise.reject(ot):Promise.resolve()}function et(j){const nt=Xt.values().next().value;return nt&&typeof nt.runWithContext=="function"?nt.runWithContext(j):j()}function st(j,nt){let ot;const[Mt,Tt,$]=dk(j,nt);ot=Xu(Mt.reverse(),"beforeRouteLeave",j,nt);for(const G of Mt)G.leaveGuards.forEach(Q=>{ot.push(vi(Q,j,nt))});const F=Y.bind(null,j,nt);return ot.push(F),Ct(ot).then(()=>{ot=[];for(const G of u.list())ot.push(vi(G,j,nt));return ot.push(F),Ct(ot)}).then(()=>{ot=Xu(Tt,"beforeRouteUpdate",j,nt);for(const G of Tt)G.updateGuards.forEach(Q=>{ot.push(vi(Q,j,nt))});return ot.push(F),Ct(ot)}).then(()=>{ot=[];for(const G of $)if(G.beforeEnter)if(or(G.beforeEnter))for(const Q of G.beforeEnter)ot.push(vi(Q,j,nt));else ot.push(vi(G.beforeEnter,j,nt));return ot.push(F),Ct(ot)}).then(()=>(j.matched.forEach(G=>G.enterCallbacks={}),ot=Xu($,"beforeRouteEnter",j,nt),ot.push(F),Ct(ot))).then(()=>{ot=[];for(const G of f.list())ot.push(vi(G,j,nt));return ot.push(F),Ct(ot)}).catch(G=>Pr(G,8)?G:Promise.reject(G))}function pt(j,nt,ot){h.list().forEach(Mt=>et(()=>Mt(j,nt,ot)))}function gt(j,nt,ot,Mt,Tt){const $=R(j,nt);if($)return $;const F=nt===hi,G=qo?history.state:{};ot&&(Mt||F?a.replace(j.fullPath,pe({scroll:F&&G&&G.scroll},Tt)):a.push(j.fullPath,Tt)),p.value=j,qt(j,nt,ot,F),Lt()}let V;function z(){V||(V=a.listen((j,nt,ot)=>{if(!jt.listening)return;const Mt=T(j),Tt=K(Mt);if(Tt){ht(pe(Tt,{replace:!0}),Mt).catch(sl);return}g=Mt;const $=p.value;qo&&_S(Bg($.fullPath,ot.delta),Ac()),st(Mt,$).catch(F=>Pr(F,12)?F:Pr(F,2)?(ht(F.to,Mt).then(G=>{Pr(G,20)&&!ot.delta&&ot.type===ml.pop&&a.go(-1,!1)}).catch(sl),Promise.reject()):(ot.delta&&a.go(-ot.delta,!1),J(F,Mt,$))).then(F=>{F=F||gt(Mt,$,!1),F&&(ot.delta&&!Pr(F,8)?a.go(-ot.delta,!1):ot.type===ml.pop&&Pr(F,20)&&a.go(-1,!1)),pt(Mt,$,F)}).catch(sl)}))}let k=Ys(),I=Ys(),H;function J(j,nt,ot){Lt(j);const Mt=I.list();return Mt.length?Mt.forEach(Tt=>Tt(j,nt,ot)):console.error(j),Promise.reject(j)}function yt(){return H&&p.value!==hi?Promise.resolve():new Promise((j,nt)=>{k.add([j,nt])})}function Lt(j){return H||(H=!j,z(),k.list().forEach(([nt,ot])=>j?ot(j):nt()),k.reset()),j}function qt(j,nt,ot,Mt){const{scrollBehavior:Tt}=t;if(!qo||!Tt)return Promise.resolve();const $=!ot&&SS(Bg(j.fullPath,0))||(Mt||!ot)&&history.state&&history.state.scroll||null;return Hr().then(()=>Tt(j,nt,$)).then(F=>F&&xS(F)).catch(F=>J(F,j,nt))}const Ht=j=>a.go(j);let Zt;const Xt=new Set,jt={currentRoute:p,listening:!0,addRoute:S,removeRoute:P,hasRoute:L,getRoutes:A,resolve:T,options:t,push:E,replace:B,go:Ht,back:()=>Ht(-1),forward:()=>Ht(1),beforeEach:u.add,beforeResolve:f.add,afterEach:h.add,onError:I.add,isReady:yt,install(j){const nt=this;j.component("RouterLink",lk),j.component("RouterView",fk),j.config.globalProperties.$router=nt,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>U(p)}),qo&&!Zt&&p.value===hi&&(Zt=!0,E(a.location).catch(Tt=>{}));const ot={};for(const Tt in hi)Object.defineProperty(ot,Tt,{get:()=>p.value[Tt],enumerable:!0});j.provide(Lh,nt),j.provide(S0,Am(ot)),j.provide(Af,p);const Mt=j.unmount;Xt.add(j),j.unmount=function(){Xt.delete(j),Xt.size<1&&(g=hi,V&&V(),V=null,p.value=hi,Zt=!1,H=!1),Mt()}}};function Ct(j){return j.reduce((nt,ot)=>nt.then(()=>et(ot)),Promise.resolve())}return jt}function dk(t,n){const r=[],o=[],a=[],u=Math.max(n.matched.length,t.matched.length);for(let f=0;f<u;f++){const h=n.matched[f];h&&(t.matched.find(g=>rs(g,h))?o.push(h):r.push(h));const p=t.matched[f];p&&(n.matched.find(g=>rs(g,p))||a.push(p))}return[r,o,a]}function Kr(t){return t.split("-")[0]}function Xo(t){return t.split("-")[1]}function Ml(t){return["top","bottom"].includes(Kr(t))?"x":"y"}function Ah(t){return t==="y"?"height":"width"}function nv(t){let{reference:n,floating:r,placement:o}=t;const a=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;let f;switch(Kr(o)){case"top":f={x:a,y:n.y-r.height};break;case"bottom":f={x:a,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:u};break;case"left":f={x:n.x-r.width,y:u};break;default:f={x:n.x,y:n.y}}const h=Ml(o),p=Ah(h);switch(Xo(o)){case"start":f[h]=f[h]-(n[p]/2-r[p]/2);break;case"end":f[h]=f[h]+(n[p]/2-r[p]/2);break}return f}const pk=async(t,n,r)=>{const{placement:o="bottom",strategy:a="absolute",middleware:u=[],platform:f}=r;let h=await f.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:g}=nv({...h,placement:o}),v=o,b={};for(let x=0;x<u.length;x++){const{name:S,fn:P}=u[x],{x:A,y:L,data:T,reset:M}=await P({x:p,y:g,initialPlacement:o,placement:v,strategy:a,middlewareData:b,rects:h,platform:f,elements:{reference:t,floating:n}});if(p=A??p,g=L??g,b={...b,[S]:T??{}},M){typeof M=="object"&&(M.placement&&(v=M.placement),M.rects&&(h=M.rects===!0?await f.getElementRects({reference:t,floating:n,strategy:a}):M.rects),{x:p,y:g}=nv({...h,placement:v})),x=-1;continue}}return{x:p,y:g,placement:v,strategy:a,middlewareData:b}};function gk(t){return{top:0,right:0,bottom:0,left:0,...t}}function k0(t){return typeof t!="number"?gk(t):{top:t,right:t,bottom:t,left:t}}function Mf(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Mc(t,n){n===void 0&&(n={});const{x:r,y:o,platform:a,rects:u,elements:f,strategy:h}=t,{boundary:p="clippingParents",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:x=0}=n,S=k0(x),A=f[b?v==="floating"?"reference":"floating":v],L=await a.getClippingClientRect({element:await a.isElement(A)?A:A.contextElement||await a.getDocumentElement({element:f.floating}),boundary:p,rootBoundary:g}),T=Mf(await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v==="floating"?{...u.floating,x:r,y:o}:u.reference,offsetParent:await a.getOffsetParent({element:f.floating}),strategy:h}));return{top:L.top-T.top+S.top,bottom:T.bottom-L.bottom+S.bottom,left:L.left-T.left+S.left,right:T.right-L.right+S.right}}const vk=Math.min,Ui=Math.max;function Nf(t,n,r){return Ui(t,vk(n,r))}const mk=t=>({name:"arrow",options:t,async fn(n){const{element:r,padding:o=0}=t??{},{x:a,y:u,placement:f,rects:h,platform:p}=n;if(r==null)return{};const g=k0(o),v={x:a,y:u},b=Kr(f),x=Ml(b),S=Ah(x),P=await p.getDimensions({element:r}),A=x==="y"?"top":"left",L=x==="y"?"bottom":"right",T=h.reference[S]+h.reference[x]-v[x]-h.floating[S],M=v[x]-h.reference[x],R=await p.getOffsetParent({element:r}),E=R?x==="y"?R.clientHeight||0:R.clientWidth||0:0,B=T/2-M/2,K=g[A],ht=E-P[S]-g[L],Y=E/2-P[S]/2+B,et=Nf(K,Y,ht);return{data:{[x]:et,centerOffset:Y-et}}}}),yk={left:"right",right:"left",bottom:"top",top:"bottom"};function Qa(t){return t.replace(/left|right|bottom|top/g,n=>yk[n])}function C0(t,n){const r=Xo(t)==="start",o=Ml(t),a=Ah(o);let u=o==="x"?r?"right":"left":r?"bottom":"top";return n.reference[a]>n.floating[a]&&(u=Qa(u)),{main:u,cross:Qa(u)}}const bk={start:"end",end:"start"};function Pf(t){return t.replace(/start|end/g,n=>bk[n])}const wk=["top","right","bottom","left"],xk=wk.reduce((t,n)=>t.concat(n,n+"-start",n+"-end"),[]);function _k(t,n,r){return(t?[...r.filter(a=>Xo(a)===t),...r.filter(a=>Xo(a)!==t)]:r.filter(a=>Kr(a)===a)).filter(a=>t?Xo(a)===t||(n?Pf(a)!==a:!1):!0)}const Sk=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(n){var r,o,a,u,f,h;const{x:p,y:g,rects:v,middlewareData:b,placement:x}=n,{alignment:S=null,allowedPlacements:P=xk,autoAlignment:A=!0,...L}=t;if((r=b.autoPlacement)!=null&&r.skip)return{};const T=_k(S,A,P),M=await Mc(n,L),R=(o=(a=b.autoPlacement)==null?void 0:a.index)!=null?o:0,E=T[R],{main:B,cross:K}=C0(E,v);if(x!==E)return{x:p,y:g,reset:{placement:T[0]}};const ht=[M[Kr(E)],M[B],M[K]],Y=[...(u=(f=b.autoPlacement)==null?void 0:f.overflows)!=null?u:[],{placement:E,overflows:ht}],et=T[R+1];if(et)return{data:{index:R+1,overflows:Y},reset:{placement:et}};const st=Y.slice().sort((gt,V)=>gt.overflows[0]-V.overflows[0]),pt=(h=st.find(gt=>{let{overflows:V}=gt;return V.every(z=>z<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:pt??st[0].placement}}}}};function kk(t){const n=Qa(t);return[Pf(t),n,Pf(n)]}const Ck=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var r,o;const{placement:a,middlewareData:u,rects:f,initialPlacement:h}=n;if((r=u.flip)!=null&&r.skip)return{};const{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",flipAlignment:x=!0,...S}=t,P=Kr(a),L=v||(P===h||!x?[Qa(h)]:kk(h)),T=[h,...L],M=await Mc(n,S),R=[];let E=((o=u.flip)==null?void 0:o.overflows)||[];if(p&&R.push(M[P]),g){const{main:Y,cross:et}=C0(a,f);R.push(M[Y],M[et])}if(E=[...E,{placement:a,overflows:R}],!R.every(Y=>Y<=0)){var B,K;const Y=((B=(K=u.flip)==null?void 0:K.index)!=null?B:0)+1,et=T[Y];if(et)return{data:{index:Y,overflows:E},reset:{placement:et}};let st="bottom";switch(b){case"bestFit":{var ht;const pt=(ht=E.slice().sort((gt,V)=>gt.overflows.filter(z=>z>0).reduce((z,k)=>z+k,0)-V.overflows.filter(z=>z>0).reduce((z,k)=>z+k,0))[0])==null?void 0:ht.placement;pt&&(st=pt);break}case"initialPlacement":st=h;break}return{data:{skip:!0},reset:{placement:st}}}return{}}}};function Tk(t){let{placement:n,rects:r,value:o}=t;const a=Kr(n),u=["left","top"].includes(a)?-1:1,f=typeof o=="function"?o({...r,placement:n}):o,{mainAxis:h,crossAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};return Ml(a)==="x"?{x:p,y:h*u}:{x:h*u,y:p}}const Ek=function(t){return t===void 0&&(t=0),{name:"offset",options:t,fn(n){const{x:r,y:o,placement:a,rects:u}=n,f=Tk({placement:a,rects:u,value:t});return{x:r+f.x,y:o+f.y,data:f}}}};function Lk(t){return t==="x"?"y":"x"}const Ak=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:r,y:o,placement:a}=n,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:L=>{let{x:T,y:M}=L;return{x:T,y:M}}},...p}=t,g={x:r,y:o},v=await Mc(n,p),b=Ml(Kr(a)),x=Lk(b);let S=g[b],P=g[x];if(u){const L=b==="y"?"top":"left",T=b==="y"?"bottom":"right",M=S+v[L],R=S-v[T];S=Nf(M,S,R)}if(f){const L=x==="y"?"top":"left",T=x==="y"?"bottom":"right",M=P+v[L],R=P-v[T];P=Nf(M,P,R)}const A=h.fn({...n,[b]:S,[x]:P});return{...A,data:{x:A.x-r,y:A.y-o}}}}},Mk=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){var r;const{placement:o,rects:a,middlewareData:u}=n,{apply:f,...h}=t;if((r=u.size)!=null&&r.skip)return{};const p=await Mc(n,h),g=Kr(o),v=Xo(o)==="end";let b,x;g==="top"||g==="bottom"?(b=g,x=v?"left":"right"):(x=g,b=v?"top":"bottom");const S=Ui(p.left,0),P=Ui(p.right,0),A=Ui(p.top,0),L=Ui(p.bottom,0),T={height:a.floating.height-(["left","right"].includes(o)?2*(A!==0||L!==0?A+L:Ui(p.top,p.bottom)):p[b]),width:a.floating.width-(["top","bottom"].includes(o)?2*(S!==0||P!==0?S+P:Ui(p.left,p.right)):p[x])};return f==null||f({...T,...a}),{data:{skip:!0},reset:{rects:!0}}}}};function Mh(t){return(t==null?void 0:t.toString())==="[object Window]"}function Ei(t){if(t==null)return window;if(!Mh(t)){const n=t.ownerDocument;return n&&n.defaultView||window}return t}function Nc(t){return Ei(t).getComputedStyle(t)}function Br(t){return Mh(t)?"":t?(t.nodeName||"").toLowerCase():""}function Wr(t){return t instanceof Ei(t).HTMLElement}function tc(t){return t instanceof Ei(t).Element}function Nk(t){return t instanceof Ei(t).Node}function T0(t){const n=Ei(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function Pc(t){const{overflow:n,overflowX:r,overflowY:o}=Nc(t);return/auto|scroll|overlay|hidden/.test(n+o+r)}function Pk(t){return["table","td","th"].includes(Br(t))}function E0(t){const n=navigator.userAgent.toLowerCase().includes("firefox"),r=Nc(t);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||n&&r.willChange==="filter"||n&&(r.filter?r.filter!=="none":!1)}const rv=Math.min,al=Math.max,ec=Math.round;function os(t,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect();let o=1,a=1;return n&&Wr(t)&&(o=t.offsetWidth>0&&ec(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&ec(r.height)/t.offsetHeight||1),{width:r.width/o,height:r.height/a,top:r.top/a,right:r.right/o,bottom:r.bottom/a,left:r.left/o,x:r.left/o,y:r.top/a}}function Li(t){return((Nk(t)?t.ownerDocument:t.document)||window.document).documentElement}function Oc(t){return Mh(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function L0(t){return os(Li(t)).left+Oc(t).scrollLeft}function Ok(t){const n=os(t);return ec(n.width)!==t.offsetWidth||ec(n.height)!==t.offsetHeight}function Dk(t,n,r){const o=Wr(n),a=Li(n),u=os(t,o&&Ok(n));let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if((Br(n)!=="body"||Pc(a))&&(f=Oc(n)),Wr(n)){const p=os(n,!0);h.x=p.x+n.clientLeft,h.y=p.y+n.clientTop}else a&&(h.x=L0(a));return{x:u.left+f.scrollLeft-h.x,y:u.top+f.scrollTop-h.y,width:u.width,height:u.height}}function Dc(t){return Br(t)==="html"?t:t.assignedSlot||t.parentNode||(T0(t)?t.host:null)||Li(t)}function iv(t){return!Wr(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function $k(t){let n=Dc(t);for(;Wr(n)&&!["html","body"].includes(Br(n));){if(E0(n))return n;n=n.parentNode}return null}function Of(t){const n=Ei(t);let r=iv(t);for(;r&&Pk(r)&&getComputedStyle(r).position==="static";)r=iv(r);return r&&(Br(r)==="html"||Br(r)==="body"&&getComputedStyle(r).position==="static"&&!E0(r))?n:r||$k(t)||n}function ov(t){return{width:t.offsetWidth,height:t.offsetHeight}}function Rk(t){let{rect:n,offsetParent:r,strategy:o}=t;const a=Wr(r),u=Li(r);if(r===u)return n;let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((a||!a&&o!=="fixed")&&((Br(r)!=="body"||Pc(u))&&(f=Oc(r)),Wr(r))){const p=os(r,!0);h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{...n,x:n.x-f.scrollLeft+h.x,y:n.y-f.scrollTop+h.y}}function zk(t){const n=Ei(t),r=Li(t),o=n.visualViewport;let a=r.clientWidth,u=r.clientHeight,f=0,h=0;return o&&(a=o.width,u=o.height,Math.abs(n.innerWidth/o.scale-o.width)<.01&&(f=o.offsetLeft,h=o.offsetTop)),{width:a,height:u,x:f,y:h}}function Fk(t){var n;const r=Li(t),o=Oc(t),a=(n=t.ownerDocument)==null?void 0:n.body,u=al(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),f=al(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let h=-o.scrollLeft+L0(t);const p=-o.scrollTop;return Nc(a||r).direction==="rtl"&&(h+=al(r.clientWidth,a?a.clientWidth:0)-u),{width:u,height:f,x:h,y:p}}function A0(t){return["html","body","#document"].includes(Br(t))?t.ownerDocument.body:Wr(t)&&Pc(t)?t:A0(Dc(t))}function nc(t,n){var r;n===void 0&&(n=[]);const o=A0(t),a=o===((r=t.ownerDocument)==null?void 0:r.body),u=Ei(o),f=a?[u].concat(u.visualViewport||[],Pc(o)?o:[]):o,h=n.concat(f);return a?h:h.concat(nc(Dc(f)))}function Ik(t,n){const r=n.getRootNode==null?void 0:n.getRootNode();if(t.contains(n))return!0;if(r&&T0(r)){let o=n;do{if(o&&t===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function qk(t){const n=os(t),r=n.top+t.clientTop,o=n.left+t.clientLeft;return{top:r,left:o,x:o,y:r,right:o+t.clientWidth,bottom:r+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function sv(t,n){return n==="viewport"?Mf(zk(t)):tc(n)?qk(n):Mf(Fk(Li(t)))}function Hk(t){const n=nc(Dc(t)),o=["absolute","fixed"].includes(Nc(t).position)&&Wr(t)?Of(t):t;return tc(o)?n.filter(a=>tc(a)&&Ik(a,o)&&Br(a)!=="body"):[]}function Bk(t){let{element:n,boundary:r,rootBoundary:o}=t;const u=[...r==="clippingParents"?Hk(n):[].concat(r),o],f=u[0],h=u.reduce((p,g)=>{const v=sv(n,g);return p.top=al(v.top,p.top),p.right=rv(v.right,p.right),p.bottom=rv(v.bottom,p.bottom),p.left=al(v.left,p.left),p},sv(n,f));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}const Wk={getElementRects:t=>{let{reference:n,floating:r,strategy:o}=t;return{reference:Dk(n,Of(r),o),floating:{...ov(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>Rk(t),getOffsetParent:t=>{let{element:n}=t;return Of(n)},isElement:t=>tc(t),getDocumentElement:t=>{let{element:n}=t;return Li(n)},getClippingClientRect:t=>Bk(t),getDimensions:t=>{let{element:n}=t;return ov(n)},getClientRects:t=>{let{element:n}=t;return n.getClientRects()}},Uk=(t,n,r)=>pk(t,n,{platform:Wk,...r});var jk=Object.defineProperty,Gk=Object.defineProperties,Vk=Object.getOwnPropertyDescriptors,lv=Object.getOwnPropertySymbols,Kk=Object.prototype.hasOwnProperty,Xk=Object.prototype.propertyIsEnumerable,av=(t,n,r)=>n in t?jk(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Rr=(t,n)=>{for(var r in n||(n={}))Kk.call(n,r)&&av(t,r,n[r]);if(lv)for(var r of lv(n))Xk.call(n,r)&&av(t,r,n[r]);return t},Nl=(t,n)=>Gk(t,Vk(n));function M0(t,n){for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(typeof n[r]=="object"&&t[r]?M0(t[r],n[r]):t[r]=n[r])}const Ji={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:t=>[...t,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function ss(t,n){let r=Ji.themes[t]||{},o;do o=r[n],typeof o>"u"?r.$extend?r=Ji.themes[r.$extend]||{}:(r=null,o=Ji[n]):r=null;while(r);return o}function Yk(t){const n=[t];let r=Ji.themes[t]||{};do r.$extend&&!r.$resetCss?(n.push(r.$extend),r=Ji.themes[r.$extend]||{}):r=null;while(r);return n.map(o=>`v-popper--theme-${o}`)}let ls=!1;if(typeof window<"u"){ls=!1;try{const t=Object.defineProperty({},"passive",{get(){ls=!0}});window.addEventListener("test",null,t)}catch{}}let N0=!1;typeof window<"u"&&typeof navigator<"u"&&(N0=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const P0=["auto","top","bottom","left","right"].reduce((t,n)=>t.concat([n,`${n}-start`,`${n}-end`]),[]),cv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},uv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function Zk(t,n){const r=t.indexOf(n);r!==-1&&t.splice(r,1)}function Yu(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const mr=[];let Fo=null,Df=function(){};typeof window<"u"&&(Df=window.Element);function de(t){return function(n){return ss(n.theme,t)}}var O0=()=>re({name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:de("disabled")},placement:{type:String,default:de("placement"),validator:t=>P0.includes(t)},delay:{type:[String,Number,Object],default:de("delay")},distance:{type:[Number,String],default:de("distance")},skidding:{type:[Number,String],default:de("skidding")},triggers:{type:Array,default:de("triggers")},showTriggers:{type:[Array,Function],default:de("showTriggers")},hideTriggers:{type:[Array,Function],default:de("hideTriggers")},popperTriggers:{type:Array,default:de("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:de("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:de("popperHideTriggers")},container:{type:[String,Object,Df,Boolean],default:de("container")},boundary:{type:[String,Df],default:de("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:de("strategy")},autoHide:{type:Boolean,default:de("autoHide")},handleResize:{type:Boolean,default:de("handleResize")},instantMove:{type:Boolean,default:de("instantMove")},eagerMount:{type:Boolean,default:de("eagerMount")},popperClass:{type:[String,Array,Object],default:de("popperClass")},computeTransformOrigin:{type:Boolean,default:de("computeTransformOrigin")},autoMinSize:{type:Boolean,default:de("autoMinSize")},autoMaxSize:{type:Boolean,default:de("autoMaxSize")},preventOverflow:{type:Boolean,default:de("preventOverflow")},overflowPadding:{type:[Number,String],default:de("overflowPadding")},arrowPadding:{type:[Number,String],default:de("arrowPadding")},arrowOverflow:{type:Boolean,default:de("arrowOverflow")},flip:{type:Boolean,default:de("flip")},shift:{type:Boolean,default:de("shift")},shiftCrossAxis:{type:Boolean,default:de("shiftCrossAxis")}},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}}},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:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:Nl(Rr({},this.classes),{popperClass:this.popperClass}),result:this.result}}},watch:Rr({shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())}},["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,n)=>(t[n]="$_computePosition",t),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:n=!1,force:r=!1}={}){(r||!this.disabled)&&(this.$_scheduleShow(t,n),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0)},hide({event:t=null,skipDelay:n=!1}={}){this.$_scheduleHide(t,n),this.$emit("hide"),this.$emit("update:shown",!1)},init(){this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode(),this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var t;if(this.$_isDisposed)return;const n={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&n.middleware.push(Ek({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");r?n.middleware.push(Sk({alignment:(t=this.placement.split("-")[1])!=null?t:""})):n.placement=this.placement,this.preventOverflow&&(this.shift&&n.middleware.push(Ak({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&n.middleware.push(Ck({padding:this.overflowPadding,boundary:this.boundary}))),n.middleware.push(mk({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&n.middleware.push({name:"arrowOverflow",fn:({placement:a,rects:u,middlewareData:f})=>{let h;const{centerOffset:p}=f.arrow;return a.startsWith("top")||a.startsWith("bottom")?h=Math.abs(p)>u.reference.width/2:h=Math.abs(p)>u.reference.height/2,{data:{overflow:h}}}}),this.autoMinSize&&n.middleware.push({name:"autoMinSize",fn:({rects:a,placement:u,middlewareData:f})=>{var h;if((h=f.autoMinSize)!=null&&h.skip)return{};let p,g;return u.startsWith("top")||u.startsWith("bottom")?p=a.reference.width:g=a.reference.height,this.$_innerNode.style.minWidth=p!=null?`${p}px`:null,this.$_innerNode.style.minHeight=g!=null?`${g}px`:null,{data:{skip:!0},reset:{rects:!0}}}}),this.autoMaxSize&&n.middleware.push(Mk({boundary:this.boundary,padding:this.overflowPadding,apply:({width:a,height:u})=>{this.$_innerNode.style.maxWidth=a!=null?`${a}px`:null,this.$_innerNode.style.maxHeight=u!=null?`${u}px`:null}}));const o=await Uk(this.$_referenceNode,this.$_popperNode,n);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:Rr(Rr({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(t=null,n=!1){if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Fo&&this.instantMove&&Fo.instantMove){Fo.$_applyHide(!0),this.$_applyShow(!0);return}n?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t=null,n=!1){this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Fo=this),n?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const n=this.delay;return parseInt(n&&n[t]||n||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await Yu(),await this.$_computePosition(),await this.$_applyShowEffect())},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const n=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),a=n.x+n.width/2-(o.left+r.offsetLeft),u=n.y+n.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${a}px ${u}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let n;for(let r=0;r<mr.length;r++)n=mr[r],n.showGroup!==t&&(n.hide(),n.$emit("close-group"))}mr.push(this),this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Yu(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(t=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,Zk(mr,this),Fo===this&&(Fo=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const n=ss(this.theme,"disposeTimeout");n!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},n)),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Yu(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=(a,u,f)=>{this.$_events.push({targetNodes:a,eventType:u,handler:f}),a.forEach(h=>h.addEventListener(u,f,ls?{passive:!0}:void 0))},n=(a,u,f,h,p)=>{let g=f;h!=null&&(g=typeof h=="function"?h(g):h),g.forEach(v=>{const b=u[v];b&&t(a,b,p)})},r=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};n(this.$_targetNodes,cv,this.triggers,this.showTriggers,r),n([this.$_popperNode],cv,this.popperTriggers,this.popperShowTriggers,r);const o=a=>{a.usedByTooltip||this.hide({event:a})};n(this.$_targetNodes,uv,this.triggers,this.hideTriggers,o),n([this.$_popperNode],uv,this.popperTriggers,this.popperHideTriggers,o),t([...nc(this.$_referenceNode),...nc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()})},$_removeEventListeners(){this.$_events.forEach(({targetNodes:t,eventType:n,handler:r})=>{t.forEach(o=>o.removeEventListener(n,r))}),this.$_events=[]},$_handleGlobalClose(t,n=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,n){for(const r of this.$_targetNodes){const o=r.getAttribute(t);o&&(r.removeAttribute(t),r.setAttribute(n,o))}},$_applyAttrsToTarget(t){for(const n of this.$_targetNodes)for(const r in t){const o=t[r];o==null?n.removeAttribute(r):n.setAttribute(r,o)}}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(N0?(document.addEventListener("touchstart",fv,ls?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",Qk,ls?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",fv,!0),window.addEventListener("click",Jk,!0)),window.addEventListener("resize",tC));function fv(t){for(let n=0;n<mr.length;n++){const r=mr[n],o=r.popperNode();r.$_mouseDownContains=o.contains(t.target)}}function Jk(t){D0(t)}function Qk(t){D0(t,!0)}function D0(t,n=!1){for(let r=0;r<mr.length;r++){const o=mr[r],a=o.popperNode(),u=o.$_mouseDownContains||a.contains(t.target);requestAnimationFrame(()=>{(t.closeAllPopover||t.closePopover&&u||o.autoHide&&!u)&&o.$_handleGlobalClose(t,n)})}}function tC(t){for(let n=0;n<mr.length;n++)mr[n].$_computePosition(t)}function eC(){var t=window.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);var r=t.indexOf("Trident/");if(r>0){var o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}var a=t.indexOf("Edge/");return a>0?parseInt(t.substring(a+5,t.indexOf(".",a)),10):-1}let Ra;function $f(){$f.init||($f.init=!0,Ra=eC()!==-1)}var $c={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){$f(),Hr(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",Ra&&this.$el.appendChild(t),t.data="about:blank",Ra||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Ra&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const nC=C1();Im("data-v-b329ee4c");const rC={class:"resize-observer",tabindex:"-1"};qm();const iC=nC((t,n,r,o,a,u)=>(ut(),Qt("div",rC)));$c.render=iC;$c.__scopeId="data-v-b329ee4c";$c.__file="src/components/ResizeObserver.vue";var $0={computed:{themeClass(){return Yk(this.theme)}}},Nh=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r};const oC=re({name:"VPopperContent",components:{ResizeObserver:$c},mixins:[$0],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),sC=["id","aria-hidden","tabindex","data-popper-placement"],lC={ref:"inner",class:"v-popper__inner"},aC=ct("div",{class:"v-popper__arrow-outer"},null,-1),cC=ct("div",{class:"v-popper__arrow-inner"},null,-1),uC=[aC,cC];function fC(t,n,r,o,a,u){const f=eo("ResizeObserver");return ut(),At("div",{id:t.popperId,ref:"popover",class:ve(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result.arrow.overflow}]]),style:En({position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result.placement,onKeyup:n[1]||(n[1]=Tf(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[ct("div",{class:"v-popper__wrapper",style:En({transformOrigin:t.result.transformOrigin})},[ct("div",lC,[t.mounted?(ut(),At(ue,{key:0},[ct("div",null,[ir(t.$slots,"default")]),t.handleResize?(ut(),Qt(f,{key:0,onNotify:n[0]||(n[0]=h=>t.$emit("resize",h))})):ee("",!0)],64)):ee("",!0)],512),ct("div",{ref:"arrow",class:"v-popper__arrow-container",style:En({left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)})},uC,4)],4)],46,sC)}var R0=Nh(oC,[["render",fC]]),z0={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}};const hC=re({name:"VPopperWrapper",components:{Popper:O0(),PopperContent:R0},mixins:[z0,$0],inheritAttrs:!1,props:{theme:{type:String,default:null}},computed:{finalTheme(){var t;return(t=this.theme)!=null?t:this.$options.vPopperTheme},popperAttrs(){const t=Rr({},this.$attrs);return delete t.class,delete t.style,t}},methods:{getTargetNodes(){return Array.from(this.$refs.reference.children).filter(t=>t!==this.$refs.popperContent.$el)}}});function dC(t,n,r,o,a,u){const f=eo("PopperContent"),h=eo("Popper");return ut(),Qt(h,Si({ref:"popper"},t.popperAttrs,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"reference-node":()=>t.$refs.reference,"popper-node":()=>t.$refs.popperContent.$el}),{default:Jt(({popperId:p,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:x,show:S,hide:P,handleResize:A,onResize:L,classes:T,result:M})=>[ct("div",{ref:"reference",class:ve(["v-popper",[t.$attrs.class,t.themeClass,{"v-popper--shown":g}]]),style:En(t.$attrs.style)},[ir(t.$slots,"default",{shown:g,show:S,hide:P}),It(f,{ref:"popperContent","popper-id":p,theme:t.finalTheme,shown:g,mounted:v,"skip-transition":b,"auto-hide":x,"handle-resize":A,classes:T,result:M,onHide:P,onResize:L},{default:Jt(()=>[ir(t.$slots,"popper",{shown:g,hide:P})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])],6)]),_:3},16,["theme","target-nodes","reference-node","popper-node"])}var Ph=Nh(hC,[["render",dC]]);const hv=re(Nl(Rr({},Ph),{name:"VDropdown",vPopperTheme:"dropdown"})),dv=re(Nl(Rr({},Ph),{name:"VMenu",vPopperTheme:"menu"})),Rf=re(Nl(Rr({},Ph),{name:"VTooltip",vPopperTheme:"tooltip"})),pC=re({name:"VTooltipDirective",components:{Popper:O0(),PopperContent:R0},mixins:[z0],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>ss(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>ss(t.theme,"loadingContent")}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const n=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(n,o)):this.onResult(n,r)}},onResult(t,n){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=n)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),gC=["innerHTML"],vC=["textContent"];function mC(t,n,r,o,a,u){const f=eo("PopperContent"),h=eo("Popper");return ut(),Qt(h,Si({ref:"popper"},t.$attrs,{theme:t.theme,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:Jt(({popperId:p,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:x,hide:S,handleResize:P,onResize:A,classes:L,result:T})=>[It(f,{ref:"popperContent",class:ve({"v-popper--tooltip-loading":t.loading}),"popper-id":p,theme:t.theme,shown:g,mounted:v,"skip-transition":b,"auto-hide":x,"handle-resize":P,classes:L,result:T,onHide:S,onResize:A},{default:Jt(()=>[t.html?(ut(),At("div",{key:0,innerHTML:t.finalContent},null,8,gC)):(ut(),At("div",{key:1,textContent:ne(t.finalContent)},null,8,vC))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}var yC=Nh(pC,[["render",mC]]);const F0="v-popper--has-tooltip";function bC(t,n){let r=t.placement;if(!r&&n)for(const o of P0)n[o]&&(r=o);return r||(r=ss(t.theme||"tooltip","placement")),r}function I0(t,n,r){let o;const a=typeof n;return a==="string"?o={content:n}:n&&a==="object"?o=n:o={content:!1},o.placement=bC(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let Zu,yl,wC=0;function xC(){if(Zu)return;yl=Yt([]),Zu=h0({name:"VTooltipDirectiveApp",setup(){return{directives:yl}},render(){return this.directives.map(n=>Al(yC,Nl(Rr({},n.options),{shown:n.shown.value||n.options.shown,key:n.id})))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),Zu.mount(t)}function q0(t,n,r){xC();const o=Yt(I0(t,n,r)),a=Yt(!1),u={id:wC++,options:o,shown:a};return yl.value.push(u),t.classList&&t.classList.add(F0),t.$_popper={options:o,item:u,show(){a.value=!0},hide(){a.value=!1}}}function Oh(t){if(t.$_popper){const n=yl.value.indexOf(t.$_popper.item);n!==-1&&yl.value.splice(n,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(F0)}function pv(t,{value:n,oldValue:r,modifiers:o}){const a=I0(t,n,o);if(!a.content||ss(a.theme||"tooltip","disabled"))Oh(t);else{let u;t.$_popper?(u=t.$_popper,u.options.value=a):u=q0(t,n,o),typeof n.shown<"u"&&n.shown!==t.$_popperOldShown&&(t.$_popperOldShown=n.shown,n.shown?u.show():u.hide())}}var H0={beforeMount:pv,updated:pv,beforeUnmount(t){Oh(t)}};function gv(t){t.addEventListener("click",B0),t.addEventListener("touchstart",W0,ls?{passive:!0}:!1)}function vv(t){t.removeEventListener("click",B0),t.removeEventListener("touchstart",W0),t.removeEventListener("touchend",U0),t.removeEventListener("touchcancel",j0)}function B0(t){const n=t.currentTarget;t.closePopover=!n.$_vclosepopover_touch,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}function W0(t){if(t.changedTouches.length===1){const n=t.currentTarget;n.$_vclosepopover_touch=!0;const r=t.changedTouches[0];n.$_vclosepopover_touchPoint=r,n.addEventListener("touchend",U0),n.addEventListener("touchcancel",j0)}}function U0(t){const n=t.currentTarget;if(n.$_vclosepopover_touch=!1,t.changedTouches.length===1){const r=t.changedTouches[0],o=n.$_vclosepopover_touchPoint;t.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}}function j0(t){const n=t.currentTarget;n.$_vclosepopover_touch=!1}var _C={beforeMount(t,{value:n,modifiers:r}){t.$_closePopoverModifiers=r,(typeof n>"u"||n)&&gv(t)},updated(t,{value:n,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,n!==r&&(typeof n>"u"||n?gv(t):vv(t))},beforeUnmount(t){vv(t)}};const SC=H0,kC=Rf;function CC(t,n={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,M0(Ji,n),t.directive("tooltip",H0),t.directive("close-popper",_C),t.component("v-tooltip",Rf),t.component("VTooltip",Rf),t.component("v-dropdown",hv),t.component("VDropdown",hv),t.component("v-menu",dv),t.component("VMenu",dv))}const G0={version:"2.0.0-y.0",install:CC,options:Ji},TC=6e4;function V0(t){return t}const EC=V0,{clearTimeout:LC,setTimeout:AC}=globalThis,MC=Math.random.bind(Math);function NC(t,n){const{post:r,on:o,eventNames:a=[],serialize:u=V0,deserialize:f=EC,resolver:h,timeout:p=TC}=n,g=new Map;let v;const b=new Proxy({},{get(x,S){if(S==="$functions")return t;const P=(...L)=>{r(u({m:S,a:L,t:"q"}))};if(a.includes(S))return P.asEvent=P,P;const A=async(...L)=>(await v,new Promise((T,M)=>{var B,K;const R=OC();let E;p>=0&&(E=(K=(B=AC(()=>{M(new Error(`[birpc] timeout on calling "${S}"`)),g.delete(R)},p)).unref)==null?void 0:K.call(B)),g.set(R,{resolve:T,reject:M,timeoutId:E}),r(u({m:S,a:L,i:R,t:"q"}))}));return A.asEvent=P,A}});return v=o(async(x,...S)=>{const P=f(x);if(P.t==="q"){const{m:A,a:L}=P;let T,M;const R=h?h(A,t[A]):t[A];if(!R)M=new Error(`[birpc] function "${A}" not found`);else try{T=await R.apply(b,L)}catch(E){M=E}P.i&&(M&&n.onError&&n.onError(M,A,L),r(u({t:"s",i:P.i,r:T,e:M}),...S))}else{const{i:A,r:L,e:T}=P,M=g.get(A);M&&(LC(M.timeoutId),T?M.reject(T):M.resolve(L)),g.delete(A)}}),b}const PC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function OC(t=21){let n="",r=t;for(;r--;)n+=PC[MC()*64|0];return n}/*! (c) 2020 Andrea Giammarchi */const{parse:DC,stringify:$C}=JSON,{keys:RC}=Object,bl=String,K0="string",mv={},rc="object",X0=(t,n)=>n,zC=t=>t instanceof bl?bl(t):t,FC=(t,n)=>typeof n===K0?new bl(n):n,Y0=(t,n,r,o)=>{const a=[];for(let u=RC(r),{length:f}=u,h=0;h<f;h++){const p=u[h],g=r[p];if(g instanceof bl){const v=t[g];typeof v===rc&&!n.has(v)?(n.add(v),r[p]=mv,a.push({k:p,a:[t,n,v,o]})):r[p]=o.call(r,p,v)}else r[p]!==mv&&(r[p]=o.call(r,p,g))}for(let{length:u}=a,f=0;f<u;f++){const{k:h,a:p}=a[f];r[h]=o.call(r,h,Y0.apply(null,p))}return r},yv=(t,n,r)=>{const o=bl(n.push(r)-1);return t.set(r,o),o},zf=(t,n)=>{const r=DC(t,FC).map(zC),o=r[0],a=n||X0,u=typeof o===rc&&o?Y0(r,new Set,o,a):o;return a.call({"":u},"",u)},IC=(t,n,r)=>{const o=n&&typeof n===rc?(v,b)=>v===""||-1<n.indexOf(v)?b:void 0:n||X0,a=new Map,u=[],f=[];let h=+yv(a,u,o.call({"":t},"",t)),p=!h;for(;h<u.length;)p=!0,f[h]=$C(u[h++],g,r);return"["+f.join(",")+"]";function g(v,b){if(p)return p=!p,b;const x=o.call(this,v,b);switch(typeof x){case rc:if(x===null)return x;case K0:return a.get(x)||yv(a,u,x)}return x}};function qC(t=""){return!t||!t.includes("\\")?t:t.replace(/\\/g,"/")}const HC=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function BC(){return typeof process<"u"?process.cwd().replace(/\\/g,"/"):"/"}const bv=function(...t){t=t.map(o=>qC(o));let n="",r=!1;for(let o=t.length-1;o>=-1&&!r;o--){const a=o>=0?t[o]:BC();!a||a.length===0||(n=`${a}/${n}`,r=wv(a))}return n=WC(n,!r),r&&!wv(n)?`/${n}`:n.length>0?n:"."};function WC(t,n){let r="",o=0,a=-1,u=0,f=null;for(let h=0;h<=t.length;++h){if(h<t.length)f=t[h];else{if(f==="/")break;f="/"}if(f==="/"){if(!(a===h-1||u===1))if(u===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const p=r.lastIndexOf("/");p===-1?(r="",o=0):(r=r.slice(0,p),o=r.length-1-r.lastIndexOf("/")),a=h,u=0;continue}else if(r.length>0){r="",o=0,a=h,u=0;continue}}n&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${t.slice(a+1,h)}`:r=t.slice(a+1,h),o=h-a-1;a=h,u=0}else f==="."&&u!==-1?++u:u=-1}return r}const wv=function(t){return HC.test(t)},UC=function(t,n){const r=bv(t).split("/"),o=bv(n).split("/"),a=[...r];for(const u of a){if(o[0]!==u)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function jC(t){return typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t}class Z0{constructor(){ai(this,"filesMap",new Map);ai(this,"pathsSet",new Set);ai(this,"browserTestPromises",new Map);ai(this,"idMap",new Map);ai(this,"taskFileMap",new WeakMap);ai(this,"errorsSet",new Set);ai(this,"processTimeoutCauses",new Set)}catchError(n,r){if(jC(n))return n.errors.forEach(a=>this.catchError(a,r));n===Object(n)?n.type=r:n={type:r,message:n};const o=n;if(o&&typeof o=="object"&&o.code==="VITEST_PENDING"){const a=this.idMap.get(o.taskId);a&&(a.mode="skip",a.result??(a.result={state:"skip"}),a.result.state="skip");return}this.errorsSet.add(n)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}addProcessTimeoutCause(n){this.processTimeoutCauses.add(n)}getProcessTimeoutCauses(){return Array.from(this.processTimeoutCauses.values())}getPaths(){return Array.from(this.pathsSet)}getFiles(n){return n?n.map(r=>this.filesMap.get(r)).filter(Boolean).flat():Array.from(this.filesMap.values()).flat()}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(n=>{var r;return((r=n.result)==null?void 0:r.state)==="fail"}).map(n=>n.filepath)}collectPaths(n=[]){n.forEach(r=>{this.pathsSet.add(r)})}collectFiles(n=[]){n.forEach(r=>{const a=(this.filesMap.get(r.filepath)||[]).filter(u=>u.projectName!==r.projectName);a.push(r),this.filesMap.set(r.filepath,a),this.updateId(r)})}clearFiles(n,r=[]){const o=n;r.forEach(a=>{const u=this.filesMap.get(a);if(!u)return;const f=u.filter(h=>h.projectName!==o.config.name);f.length?this.filesMap.set(a,f):this.filesMap.delete(a)})}updateId(n){this.idMap.get(n.id)!==n&&(this.idMap.set(n.id,n),n.type==="suite"&&n.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(n){for(const[r,o,a]of n){const u=this.idMap.get(r);u&&(u.result=o,u.meta=a,(o==null?void 0:o.state)==="skip"&&(u.mode="skip"))}}updateUserLog(n){const r=n.taskId&&this.idMap.get(n.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(n))}getCountOfFailedTests(){return Array.from(this.idMap.values()).filter(n=>{var r;return((r=n.result)==null?void 0:r.state)==="fail"}).length}cancelFiles(n,r,o){this.collectFiles(n.map(a=>({filepath:a,name:UC(r,a),id:a,mode:"skip",type:"suite",result:{state:"skip"},meta:{},tasks:[],projectName:o})))}}var no=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function J0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Q0(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function Ff(t){return t.type==="test"||t.type==="custom"}function ty(t){const n=[],r=Q0(t);for(const o of r)if(Ff(o))n.push(o);else for(const a of o.tasks)Ff(a)?n.push(a):n.push(...ty(a));return n}function Dh(t=[]){return Q0(t).flatMap(n=>Ff(n)?[n]:[n,...Dh(n.tasks)])}function GC(t){const n=[t.name];let r=t;for(;r!=null&&r.suite||r!=null&&r.file;)r=r.suite||r.file,r!=null&&r.name&&n.unshift(r.name);return n}function Rc(t){return ty(t).some(n=>{var r,o;return(o=(r=n.result)==null?void 0:r.errors)==null?void 0:o.some(a=>typeof(a==null?void 0:a.message)=="string"&&a.message.match(/Snapshot .* mismatched/))})}function VC(t,n={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:a=2e3,reconnectTries:u=10,reactive:f=T=>T,WebSocketConstructor:h=globalThis.WebSocket}=n;let p=u;const g=f({ws:new h(t),state:new Z0,waitForConnection:L,reconnect:P});g.state.filesMap=f(g.state.filesMap),g.state.idMap=f(g.state.idMap);let v;const b={onPathsCollected(T){var M;g.state.collectPaths(T),(M=r.onPathsCollected)==null||M.call(r,T)},onCollected(T){var M;g.state.collectFiles(T),(M=r.onCollected)==null||M.call(r,T)},onTaskUpdate(T){var M;g.state.updateTasks(T),(M=r.onTaskUpdate)==null||M.call(r,T)},onUserConsoleLog(T){g.state.updateUserLog(T)},onFinished(T){var M;(M=r.onFinished)==null||M.call(r,T)},onCancel(T){var M;(M=r.onCancel)==null||M.call(r,T)}},x={post:T=>g.ws.send(T),on:T=>v=T,serialize:IC,deserialize:zf};g.rpc=NC(b,x);let S;function P(T=!1){T&&(p=u),g.ws=new h(t),A()}function A(){S=new Promise(T=>{g.ws.addEventListener("open",()=>{p=u,T()})}),g.ws.addEventListener("message",T=>{v(T.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(P,a)})}A();function L(){return S}return g}const KC=location.port,XC=[location.hostname,KC].filter(Boolean).join(":"),YC=`${location.protocol==="https:"?"wss:":"ws:"}//${XC}/__vitest_api__`,Ur=!!window.METADATA_PATH;function $h(t){return ym()?(Wx(t),!0):!1}function xr(t){return typeof t=="function"?t():U(t)}const ZC=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const JC=Object.prototype.toString,QC=t=>JC.call(t)==="[object Object]",ro=()=>{};function Rh(t,n){function r(...o){return new Promise((a,u)=>{Promise.resolve(t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(a).catch(u)})}return r}const ey=t=>t();function ny(t,n={}){let r,o,a=ro;const u=h=>{clearTimeout(h),a(),a=ro};return h=>{const p=xr(t),g=xr(n.maxWait);return r&&u(r),p<=0||g!==void 0&&g<=0?(o&&(u(o),o=null),Promise.resolve(h())):new Promise((v,b)=>{a=n.rejectOnCancel?b:v,g&&!o&&(o=setTimeout(()=>{r&&u(r),o=null,v(h())},g)),r=setTimeout(()=>{o&&u(o),o=null,v(h())},p)})}}function tT(t,n=!0,r=!0,o=!1){let a=0,u,f=!0,h=ro,p;const g=()=>{u&&(clearTimeout(u),u=void 0,h(),h=ro)};return b=>{const x=xr(t),S=Date.now()-a,P=()=>p=b();return g(),x<=0?(a=Date.now(),P()):(S>x&&(r||!f)?(a=Date.now(),P()):n&&(p=new Promise((A,L)=>{h=o?L:A,u=setTimeout(()=>{a=Date.now(),f=!0,A(P()),g()},Math.max(0,x-S))})),!r&&!u&&(u=setTimeout(()=>f=!0,x)),f=!1,p)}}function eT(t=ey){const n=Yt(!0);function r(){n.value=!1}function o(){n.value=!0}const a=(...u)=>{n.value&&t(...u)};return{isActive:xc(n),pause:r,resume:o,eventFilter:a}}function nT(...t){if(t.length!==1)return dh(...t);const n=t[0];return typeof n=="function"?xc(p1(()=>({get:n,set:ro}))):Yt(n)}function xv(t,n=200,r={}){return Rh(ny(n,r),t)}function rT(t,n=200,r=!1,o=!0,a=!1){return Rh(tT(n,r,o,a),t)}function iT(t,n=200,r=!0,o=!0){if(n<=0)return t;const a=Yt(t.value),u=rT(()=>{a.value=t.value},n,r,o);return De(t,()=>u()),a}function ry(t,n,r={}){const{eventFilter:o=ey,...a}=r;return De(t,Rh(o,n),a)}function iy(t,n,r={}){const{eventFilter:o,...a}=r,{eventFilter:u,pause:f,resume:h,isActive:p}=eT(o);return{stop:ry(t,n,{...a,eventFilter:u}),pause:f,resume:h,isActive:p}}function zh(t,n=!0){Ll()?ps(t):n?t():Hr(t)}function oT(t=!1,n={}){const{truthyValue:r=!0,falsyValue:o=!1}=n,a=Ee(t),u=Yt(t);function f(h){if(arguments.length)return u.value=h,u.value;{const p=xr(r);return u.value=u.value===p?xr(o):p,u.value}}return a?f:[u,f]}function sT(t,n,r={}){const{debounce:o=0,maxWait:a=void 0,...u}=r;return ry(t,n,{...u,eventFilter:ny(o,{maxWait:a})})}function lT(t,n,r){const o=De(t,(...a)=>(Hr(()=>o()),n(...a)),r);return o}function aT(t,n,r){let o;Ee(r)?o={evaluating:r}:o=r||{};const{lazy:a=!1,evaluating:u=void 0,shallow:f=!0,onError:h=ro}=o,p=Yt(!a),g=f?ds(n):Yt(n);let v=0;return yh(async b=>{if(!p.value)return;v++;const x=v;let S=!1;u&&Promise.resolve().then(()=>{u.value=!0});try{const P=await t(A=>{b(()=>{u&&(u.value=!1),S||A()})});x===v&&(g.value=P)}catch(P){h(P)}finally{u&&x===v&&(u.value=!1),S=!0}}),a?xt(()=>(p.value=!0,g.value)):g}function ic(t){var n;const r=xr(t);return(n=r==null?void 0:r.$el)!=null?n:r}const jr=ZC?window:void 0;function as(...t){let n,r,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([r,o,a]=t,n=jr):[n,r,o,a]=t,!n)return ro;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const u=[],f=()=>{u.forEach(v=>v()),u.length=0},h=(v,b,x,S)=>(v.addEventListener(b,x,S),()=>v.removeEventListener(b,x,S)),p=De(()=>[ic(n),xr(a)],([v,b])=>{if(f(),!v)return;const x=QC(b)?{...b}:b;u.push(...r.flatMap(S=>o.map(P=>h(v,S,P,x))))},{immediate:!0,flush:"post"}),g=()=>{p(),f()};return $h(g),g}function cT(t){return typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0}function uT(...t){let n,r,o={};t.length===3?(n=t[0],r=t[1],o=t[2]):t.length===2?typeof t[1]=="object"?(n=!0,r=t[0],o=t[1]):(n=t[0],r=t[1]):(n=!0,r=t[0]);const{target:a=jr,eventName:u="keydown",passive:f=!1,dedupe:h=!1}=o,p=cT(n);return as(a,u,v=>{v.repeat&&xr(h)||p(v)&&r(v)},f)}function fT(){const t=Yt(!1);return Ll()&&ps(()=>{t.value=!0}),t}function oy(t){const n=fT();return xt(()=>(n.value,!!t()))}function sy(t,n={}){const{window:r=jr}=n,o=oy(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let a;const u=Yt(!1),f=g=>{u.value=g.matches},h=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",f):a.removeListener(f))},p=yh(()=>{o.value&&(h(),a=r.matchMedia(xr(t)),"addEventListener"in a?a.addEventListener("change",f):a.addListener(f),u.value=a.matches)});return $h(()=>{p(),h(),a=void 0}),u}const Sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ka="__vueuse_ssr_handlers__",hT=dT();function dT(){return ka in Sa||(Sa[ka]=Sa[ka]||{}),Sa[ka]}function ly(t,n){return hT[t]||n}function pT(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const gT={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},_v="vueuse-storage";function vT(t,n,r,o={}){var a;const{flush:u="pre",deep:f=!0,listenToStorageChanges:h=!0,writeDefaults:p=!0,mergeDefaults:g=!1,shallow:v,window:b=jr,eventFilter:x,onError:S=et=>{console.error(et)},initOnMounted:P}=o,A=(v?ds:Yt)(typeof n=="function"?n():n);if(!r)try{r=ly("getDefaultStorage",()=>{var et;return(et=jr)==null?void 0:et.localStorage})()}catch(et){S(et)}if(!r)return A;const L=xr(n),T=pT(L),M=(a=o.serializer)!=null?a:gT[T],{pause:R,resume:E}=iy(A,()=>B(A.value),{flush:u,deep:f,eventFilter:x});return b&&h&&zh(()=>{as(b,"storage",Y),as(b,_v,ht),P&&Y()}),P||Y(),A;function B(et){try{if(et==null)r.removeItem(t);else{const st=M.write(et),pt=r.getItem(t);pt!==st&&(r.setItem(t,st),b&&b.dispatchEvent(new CustomEvent(_v,{detail:{key:t,oldValue:pt,newValue:st,storageArea:r}})))}}catch(st){S(st)}}function K(et){const st=et?et.newValue:r.getItem(t);if(st==null)return p&&L!==null&&r.setItem(t,M.write(L)),L;if(!et&&g){const pt=M.read(st);return typeof g=="function"?g(pt,L):T==="object"&&!Array.isArray(pt)?{...L,...pt}:pt}else return typeof st!="string"?st:M.read(st)}function ht(et){Y(et.detail)}function Y(et){if(!(et&&et.storageArea!==r)){if(et&&et.key==null){A.value=L;return}if(!(et&&et.key!==t)){R();try{(et==null?void 0:et.newValue)!==M.write(A.value)&&(A.value=K(et))}catch(st){S(st)}finally{et?Hr(E):E()}}}}}function mT(t){return sy("(prefers-color-scheme: dark)",t)}function yT(t={}){const{selector:n="html",attribute:r="class",initialValue:o="auto",window:a=jr,storage:u,storageKey:f="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:p,emitAuto:g,disableTransition:v=!0}=t,b={auto:"",light:"light",dark:"dark",...t.modes||{}},x=mT({window:a}),S=xt(()=>x.value?"dark":"light"),P=p||(f==null?nT(o):vT(f,o,u,{window:a,listenToStorageChanges:h})),A=xt(()=>P.value==="auto"?S.value:P.value),L=ly("updateHTMLAttrs",(E,B,K)=>{const ht=typeof E=="string"?a==null?void 0:a.document.querySelector(E):ic(E);if(!ht)return;let Y;if(v){Y=a.document.createElement("style");const et="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";Y.appendChild(document.createTextNode(et)),a.document.head.appendChild(Y)}if(B==="class"){const et=K.split(/\s/g);Object.values(b).flatMap(st=>(st||"").split(/\s/g)).filter(Boolean).forEach(st=>{et.includes(st)?ht.classList.add(st):ht.classList.remove(st)})}else ht.setAttribute(B,K);v&&(a.getComputedStyle(Y).opacity,document.head.removeChild(Y))});function T(E){var B;L(n,r,(B=b[E])!=null?B:E)}function M(E){t.onChanged?t.onChanged(E,T):T(E)}De(A,M,{flush:"post",immediate:!0}),zh(()=>M(A.value));const R=xt({get(){return g?P.value:A.value},set(E){P.value=E}});try{return Object.assign(R,{store:P,system:S,state:A})}catch{return R}}function bT(t={}){const{valueDark:n="dark",valueLight:r=""}=t,o=yT({...t,onChanged:(u,f)=>{var h;t.onChanged?(h=t.onChanged)==null||h.call(t,u==="dark",f,u):f(u)},modes:{dark:n,light:r}});return xt({get(){return o.value==="dark"},set(u){const f=u?"dark":"light";o.system.value===f?o.value="auto":o.value=f}})}function wT(t,n,r={}){const{window:o=jr,...a}=r;let u;const f=oy(()=>o&&"ResizeObserver"in o),h=()=>{u&&(u.disconnect(),u=void 0)},p=xt(()=>Array.isArray(t)?t.map(b=>ic(b)):[ic(t)]),g=De(p,b=>{if(h(),f.value&&o){u=new ResizeObserver(n);for(const x of b)x&&u.observe(x,a)}},{immediate:!0,flush:"post",deep:!0}),v=()=>{h(),g()};return $h(v),{isSupported:f,stop:v}}function xT(t="history",n={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:a=!1,write:u=!0,window:f=jr}=n;if(!f)return Hn(r);const h=Hn({});function p(){if(t==="history")return f.location.search||"";if(t==="hash"){const T=f.location.hash||"",M=T.indexOf("?");return M>0?T.slice(M):""}else return(f.location.hash||"").replace(/^#/,"")}function g(T){const M=T.toString();if(t==="history")return`${M?`?${M}`:""}${f.location.hash||""}`;if(t==="hash-params")return`${f.location.search||""}${M?`#${M}`:""}`;const R=f.location.hash||"#",E=R.indexOf("?");return E>0?`${R.slice(0,E)}${M?`?${M}`:""}`:`${R}${M?`?${M}`:""}`}function v(){return new URLSearchParams(p())}function b(T){const M=new Set(Object.keys(h));for(const R of T.keys()){const E=T.getAll(R);h[R]=E.length>1?E:T.get(R)||"",M.delete(R)}Array.from(M).forEach(R=>delete h[R])}const{pause:x,resume:S}=iy(h,()=>{const T=new URLSearchParams("");Object.keys(h).forEach(M=>{const R=h[M];Array.isArray(R)?R.forEach(E=>T.append(M,E)):o&&R==null||a&&!R?T.delete(M):T.set(M,R)}),P(T)},{deep:!0});function P(T,M){x(),M&&b(T),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(T)),S()}function A(){u&&P(v(),!0)}as(f,"popstate",A,!1),t!=="history"&&as(f,"hashchange",A,!1);const L=v();return L.keys().next().value?b(L):Object.assign(h,r),h}function _T(t={}){const{window:n=jr,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:u=!0}=t,f=Yt(r),h=Yt(o),p=()=>{n&&(u?(f.value=n.innerWidth,h.value=n.innerHeight):(f.value=n.document.documentElement.clientWidth,h.value=n.document.documentElement.clientHeight))};if(p(),zh(p),as("resize",p,{passive:!0}),a){const g=sy("(orientation: portrait)");De(g,()=>p())}return{width:f,height:h}}const ay=xT("hash",{initialValue:{file:"",view:null}}),vr=dh(ay,"file"),Jn=dh(ay,"view");var Dn=Uint8Array,Ho=Uint16Array,ST=Int32Array,cy=new Dn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),uy=new Dn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),kT=new Dn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),fy=function(t,n){for(var r=new Ho(31),o=0;o<31;++o)r[o]=n+=1<<t[o-1];for(var a=new ST(r[30]),o=1;o<30;++o)for(var u=r[o];u<r[o+1];++u)a[u]=u-r[o]<<5|o;return{b:r,r:a}},hy=fy(cy,2),dy=hy.b,CT=hy.r;dy[28]=258,CT[258]=28;var TT=fy(uy,0),ET=TT.b,If=new Ho(32768);for(var we=0;we<32768;++we){var di=(we&43690)>>1|(we&21845)<<1;di=(di&52428)>>2|(di&13107)<<2,di=(di&61680)>>4|(di&3855)<<4,If[we]=((di&65280)>>8|(di&255)<<8)>>1}var cl=function(t,n,r){for(var o=t.length,a=0,u=new Ho(n);a<o;++a)t[a]&&++u[t[a]-1];var f=new Ho(n);for(a=1;a<n;++a)f[a]=f[a-1]+u[a-1]<<1;var h;if(r){h=new Ho(1<<n);var p=15-n;for(a=0;a<o;++a)if(t[a])for(var g=a<<4|t[a],v=n-t[a],b=f[t[a]-1]++<<v,x=b|(1<<v)-1;b<=x;++b)h[If[b]>>p]=g}else for(h=new Ho(o),a=0;a<o;++a)t[a]&&(h[a]=If[f[t[a]-1]++]>>15-t[a]);return h},Pl=new Dn(288);for(var we=0;we<144;++we)Pl[we]=8;for(var we=144;we<256;++we)Pl[we]=9;for(var we=256;we<280;++we)Pl[we]=7;for(var we=280;we<288;++we)Pl[we]=8;var py=new Dn(32);for(var we=0;we<32;++we)py[we]=5;var LT=cl(Pl,9,1),AT=cl(py,5,1),Ju=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},Qn=function(t,n,r){var o=n/8|0;return(t[o]|t[o+1]<<8)>>(n&7)&r},Qu=function(t,n){var r=n/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(n&7)},MT=function(t){return(t+7)/8|0},gy=function(t,n,r){return(n==null||n<0)&&(n=0),(r==null||r>t.length)&&(r=t.length),new Dn(t.subarray(n,r))},NT=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],kn=function(t,n,r){var o=new Error(n||NT[t]);if(o.code=t,Error.captureStackTrace&&Error.captureStackTrace(o,kn),!r)throw o;return o},Fh=function(t,n,r,o){var a=t.length,u=o?o.length:0;if(!a||n.f&&!n.l)return r||new Dn(0);var f=!r,h=f||n.i!=2,p=n.i;f&&(r=new Dn(a*3));var g=function(Tt){var $=r.length;if(Tt>$){var F=new Dn(Math.max($*2,Tt));F.set(r),r=F}},v=n.f||0,b=n.p||0,x=n.b||0,S=n.l,P=n.d,A=n.m,L=n.n,T=a*8;do{if(!S){v=Qn(t,b,1);var M=Qn(t,b+1,3);if(b+=3,M)if(M==1)S=LT,P=AT,A=9,L=5;else if(M==2){var K=Qn(t,b,31)+257,ht=Qn(t,b+10,15)+4,Y=K+Qn(t,b+5,31)+1;b+=14;for(var et=new Dn(Y),st=new Dn(19),pt=0;pt<ht;++pt)st[kT[pt]]=Qn(t,b+pt*3,7);b+=ht*3;for(var gt=Ju(st),V=(1<<gt)-1,z=cl(st,gt,1),pt=0;pt<Y;){var k=z[Qn(t,b,V)];b+=k&15;var R=k>>4;if(R<16)et[pt++]=R;else{var I=0,H=0;for(R==16?(H=3+Qn(t,b,3),b+=2,I=et[pt-1]):R==17?(H=3+Qn(t,b,7),b+=3):R==18&&(H=11+Qn(t,b,127),b+=7);H--;)et[pt++]=I}}var J=et.subarray(0,K),yt=et.subarray(K);A=Ju(J),L=Ju(yt),S=cl(J,A,1),P=cl(yt,L,1)}else kn(1);else{var R=MT(b)+4,E=t[R-4]|t[R-3]<<8,B=R+E;if(B>a){p&&kn(0);break}h&&g(x+E),r.set(t.subarray(R,B),x),n.b=x+=E,n.p=b=B*8,n.f=v;continue}if(b>T){p&&kn(0);break}}h&&g(x+131072);for(var Lt=(1<<A)-1,qt=(1<<L)-1,Ht=b;;Ht=b){var I=S[Qu(t,b)&Lt],Zt=I>>4;if(b+=I&15,b>T){p&&kn(0);break}if(I||kn(2),Zt<256)r[x++]=Zt;else if(Zt==256){Ht=b,S=null;break}else{var Xt=Zt-254;if(Zt>264){var pt=Zt-257,jt=cy[pt];Xt=Qn(t,b,(1<<jt)-1)+dy[pt],b+=jt}var Ct=P[Qu(t,b)&qt],j=Ct>>4;Ct||kn(3),b+=Ct&15;var yt=ET[j];if(j>3){var jt=uy[j];yt+=Qu(t,b)&(1<<jt)-1,b+=jt}if(b>T){p&&kn(0);break}h&&g(x+131072);var nt=x+Xt;if(x<yt){var ot=u-yt,Mt=Math.min(yt,nt);for(ot+x<0&&kn(3);x<Mt;++x)r[x]=o[ot+x]}for(;x<nt;++x)r[x]=r[x-yt]}}n.l=S,n.p=Ht,n.b=x,n.f=v,S&&(v=1,n.m=A,n.d=P,n.n=L)}while(!v);return x!=r.length&&f?gy(r,0,x):r.subarray(0,x)},PT=new Dn(0),OT=function(t){(t[0]!=31||t[1]!=139||t[2]!=8)&&kn(6,"invalid gzip data");var n=t[3],r=10;n&4&&(r+=(t[10]|t[11]<<8)+2);for(var o=(n>>3&1)+(n>>4&1);o>0;o-=!t[r++]);return r+(n&2)},DT=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0},$T=function(t,n){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&kn(6,"invalid zlib data"),(t[1]>>5&1)==+!n&&kn(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function RT(t,n){return Fh(t,{i:2},n&&n.out,n&&n.dictionary)}function zT(t,n){var r=OT(t);return r+8>t.length&&kn(6,"invalid gzip data"),Fh(t.subarray(r,-8),{i:2},n&&n.out||new Dn(DT(t)),n&&n.dictionary)}function FT(t,n){return Fh(t.subarray($T(t,n&&n.dictionary),-4),{i:2},n&&n.out,n&&n.dictionary)}function IT(t,n){return t[0]==31&&t[1]==139&&t[2]==8?zT(t,n):(t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?RT(t,n):FT(t,n)}var qf=typeof TextDecoder<"u"&&new TextDecoder,qT=0;try{qf.decode(PT,{stream:!0}),qT=1}catch{}var HT=function(t){for(var n="",r=0;;){var o=t[r++],a=(o>127)+(o>223)+(o>239);if(r+a>t.length)return{s:n,r:gy(t,r-1)};a?a==3?(o=((o&15)<<18|(t[r++]&63)<<12|(t[r++]&63)<<6|t[r++]&63)-65536,n+=String.fromCharCode(55296|o>>10,56320|o&1023)):a&1?n+=String.fromCharCode((o&31)<<6|t[r++]&63):n+=String.fromCharCode((o&15)<<12|(t[r++]&63)<<6|t[r++]&63):n+=String.fromCharCode(o)}};function BT(t,n){if(n){for(var r="",o=0;o<t.length;o+=16384)r+=String.fromCharCode.apply(null,t.subarray(o,o+16384));return r}else{if(qf)return qf.decode(t);var a=HT(t),u=a.s,r=a.r;return r.length&&kn(8),u}}const Sv=()=>{},_n=()=>Promise.resolve();function WT(){const t=Hn({state:new Z0,waitForConnection:f,reconnect:a,ws:new EventTarget});t.state.filesMap=Hn(t.state.filesMap),t.state.idMap=Hn(t.state.idMap);let n;const r={getFiles:()=>n.files,getPaths:()=>n.paths,getConfig:()=>n.config,getModuleGraph:async h=>n.moduleGraph[h],getTransformResult:async h=>({code:h,source:"",map:null}),onDone:Sv,onCollected:_n,onTaskUpdate:Sv,writeFile:_n,rerun:_n,updateSnapshot:_n,resolveSnapshotPath:_n,snapshotSaved:_n,onAfterSuiteRun:_n,onCancel:_n,getCountOfFailedTests:()=>0,sendLog:_n,resolveSnapshotRawPath:_n,readSnapshotFile:_n,saveSnapshotFile:_n,readTestFile:_n,removeSnapshotFile:_n};t.rpc=r;let o;function a(){u()}async function u(){var v;const h=await fetch(window.METADATA_PATH),p=((v=h.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(p.includes("application/gzip")||p.includes("application/x-gzip")){const b=new Uint8Array(await h.arrayBuffer()),x=BT(IT(b));n=zf(x)}else n=zf(await h.text());const g=new Event("open");t.ws.dispatchEvent(g)}u();function f(){return o}return t}const wl=Yt("idle"),je=function(){return Ur?WT():VC(YC,{reactive:Hn,handlers:{onTaskUpdate(){wl.value="running"},onFinished(){wl.value="idle"}}})}(),Ih=ds({}),Ki=Yt("CONNECTING"),gn=xt(()=>je.state.getFiles()),_e=xt(()=>gn.value.find(t=>t.id===vr.value)),vy=xt(()=>Dh(_e.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]);function oc(t){return gn.value.find(n=>n.id===t)}const UT=xt(()=>Ki.value==="OPEN"),tf=xt(()=>Ki.value==="CONNECTING");xt(()=>Ki.value==="CLOSED");function jT(t=je.state.getFiles()){return my(t)}function my(t){return t.forEach(n=>{delete n.result,Dh(n).forEach(r=>delete r.result)}),je.rpc.rerun(t.map(n=>n.filepath))}function GT(){if(_e.value)return my([_e.value])}De(()=>je.ws,t=>{Ki.value=Ur?"OPEN":"CONNECTING",t.addEventListener("open",async()=>{Ki.value="OPEN",je.state.filesMap.clear();const[n,r]=await Promise.all([je.rpc.getFiles(),je.rpc.getConfig()]);je.state.collectFiles(n),Ih.value=r}),t.addEventListener("close",()=>{setTimeout(()=>{Ki.value==="CONNECTING"&&(Ki.value="CLOSED")},1e3)})},{immediate:!0});const VT={"text-2xl":""},KT=ct("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),XT=re({__name:"ConnectionOverlay",setup(t){return(n,r)=>U(UT)?ee("",!0):(ut(),At("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>U(je).reconnect&&U(je).reconnect(...o))},[ct("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ve(U(tf)?"animate-pulse":"")},[ct("div",{text:"5xl",class:ve(U(tf)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ct("div",VT,ne(U(tf)?"Connecting...":"Disconnected"),1),KT],2)]))}});var yy={},qr={};const YT="Á",ZT="á",JT="Ă",QT="ă",tE="∾",eE="∿",nE="∾̳",rE="Â",iE="â",oE="´",sE="А",lE="а",aE="Æ",cE="æ",uE="",fE="𝔄",hE="𝔞",dE="À",pE="à",gE="ℵ",vE="ℵ",mE="Α",yE="α",bE="Ā",wE="ā",xE="⨿",_E="&",SE="&",kE="⩕",CE="⩓",TE="∧",EE="⩜",LE="⩘",AE="⩚",ME="∠",NE="⦤",PE="∠",OE="⦨",DE="⦩",$E="⦪",RE="⦫",zE="⦬",FE="⦭",IE="⦮",qE="⦯",HE="∡",BE="∟",WE="⊾",UE="⦝",jE="∢",GE="Å",VE="⍼",KE="Ą",XE="ą",YE="𝔸",ZE="𝕒",JE="⩯",QE="≈",tL="⩰",eL="≊",nL="≋",rL="'",iL="",oL="≈",sL="≊",lL="Å",aL="å",cL="𝒜",uL="𝒶",fL="≔",hL="*",dL="≈",pL="≍",gL="Ã",vL="ã",mL="Ä",yL="ä",bL="∳",wL="⨑",xL="≌",_L="϶",SL="‵",kL="∽",CL="⋍",TL="∖",EL="⫧",LL="⊽",AL="⌅",ML="⌆",NL="⌅",PL="⎵",OL="⎶",DL="≌",$L="Б",RL="б",zL="„",FL="∵",IL="∵",qL="∵",HL="⦰",BL="϶",WL="ℬ",UL="ℬ",jL="Β",GL="β",VL="ℶ",KL="≬",XL="𝔅",YL="𝔟",ZL="⋂",JL="◯",QL="⋃",tA="⨀",eA="⨁",nA="⨂",rA="⨆",iA="★",oA="▽",sA="△",lA="⨄",aA="⋁",cA="⋀",uA="⤍",fA="⧫",hA="▪",dA="▴",pA="▾",gA="◂",vA="▸",mA="␣",yA="▒",bA="░",wA="▓",xA="█",_A="=⃥",SA="≡⃥",kA="⫭",CA="⌐",TA="𝔹",EA="𝕓",LA="⊥",AA="⊥",MA="⋈",NA="⧉",PA="┐",OA="╕",DA="╖",$A="╗",RA="┌",zA="╒",FA="╓",IA="╔",qA="─",HA="═",BA="┬",WA="╤",UA="╥",jA="╦",GA="┴",VA="╧",KA="╨",XA="╩",YA="⊟",ZA="⊞",JA="⊠",QA="┘",tM="╛",eM="╜",nM="╝",rM="└",iM="╘",oM="╙",sM="╚",lM="│",aM="║",cM="┼",uM="╪",fM="╫",hM="╬",dM="┤",pM="╡",gM="╢",vM="╣",mM="├",yM="╞",bM="╟",wM="╠",xM="‵",_M="˘",SM="˘",kM="¦",CM="𝒷",TM="ℬ",EM="⁏",LM="∽",AM="⋍",MM="⧅",NM="\\",PM="⟈",OM="•",DM="•",$M="≎",RM="⪮",zM="≏",FM="≎",IM="≏",qM="Ć",HM="ć",BM="⩄",WM="⩉",UM="⩋",jM="∩",GM="⋒",VM="⩇",KM="⩀",XM="ⅅ",YM="∩︀",ZM="⁁",JM="ˇ",QM="ℭ",tN="⩍",eN="Č",nN="č",rN="Ç",iN="ç",oN="Ĉ",sN="ĉ",lN="∰",aN="⩌",cN="⩐",uN="Ċ",fN="ċ",hN="¸",dN="¸",pN="⦲",gN="¢",vN="·",mN="·",yN="𝔠",bN="ℭ",wN="Ч",xN="ч",_N="✓",SN="✓",kN="Χ",CN="χ",TN="ˆ",EN="≗",LN="↺",AN="↻",MN="⊛",NN="⊚",PN="⊝",ON="⊙",DN="®",$N="Ⓢ",RN="⊖",zN="⊕",FN="⊗",IN="○",qN="⧃",HN="≗",BN="⨐",WN="⫯",UN="⧂",jN="∲",GN="”",VN="’",KN="♣",XN="♣",YN=":",ZN="∷",JN="⩴",QN="≔",tP="≔",eP=",",nP="@",rP="∁",iP="∘",oP="∁",sP="ℂ",lP="≅",aP="⩭",cP="≡",uP="∮",fP="∯",hP="∮",dP="𝕔",pP="ℂ",gP="∐",vP="∐",mP="©",yP="©",bP="℗",wP="∳",xP="↵",_P="✗",SP="⨯",kP="𝒞",CP="𝒸",TP="⫏",EP="⫑",LP="⫐",AP="⫒",MP="⋯",NP="⤸",PP="⤵",OP="⋞",DP="⋟",$P="↶",RP="⤽",zP="⩈",FP="⩆",IP="≍",qP="∪",HP="⋓",BP="⩊",WP="⊍",UP="⩅",jP="∪︀",GP="↷",VP="⤼",KP="⋞",XP="⋟",YP="⋎",ZP="⋏",JP="¤",QP="↶",tO="↷",eO="⋎",nO="⋏",rO="∲",iO="∱",oO="⌭",sO="†",lO="‡",aO="ℸ",cO="↓",uO="↡",fO="⇓",hO="‐",dO="⫤",pO="⊣",gO="⤏",vO="˝",mO="Ď",yO="ď",bO="Д",wO="д",xO="‡",_O="⇊",SO="ⅅ",kO="ⅆ",CO="⤑",TO="⩷",EO="°",LO="∇",AO="Δ",MO="δ",NO="⦱",PO="⥿",OO="𝔇",DO="𝔡",$O="⥥",RO="⇃",zO="⇂",FO="´",IO="˙",qO="˝",HO="`",BO="˜",WO="⋄",UO="⋄",jO="⋄",GO="♦",VO="♦",KO="¨",XO="ⅆ",YO="ϝ",ZO="⋲",JO="÷",QO="÷",tD="⋇",eD="⋇",nD="Ђ",rD="ђ",iD="⌞",oD="⌍",sD="$",lD="𝔻",aD="𝕕",cD="¨",uD="˙",fD="⃜",hD="≐",dD="≑",pD="≐",gD="∸",vD="∔",mD="⊡",yD="⌆",bD="∯",wD="¨",xD="⇓",_D="⇐",SD="⇔",kD="⫤",CD="⟸",TD="⟺",ED="⟹",LD="⇒",AD="⊨",MD="⇑",ND="⇕",PD="∥",OD="⤓",DD="↓",$D="↓",RD="⇓",zD="⇵",FD="̑",ID="⇊",qD="⇃",HD="⇂",BD="⥐",WD="⥞",UD="⥖",jD="↽",GD="⥟",VD="⥗",KD="⇁",XD="↧",YD="⊤",ZD="⤐",JD="⌟",QD="⌌",t$="𝒟",e$="𝒹",n$="Ѕ",r$="ѕ",i$="⧶",o$="Đ",s$="đ",l$="⋱",a$="▿",c$="▾",u$="⇵",f$="⥯",h$="⦦",d$="Џ",p$="џ",g$="⟿",v$="É",m$="é",y$="⩮",b$="Ě",w$="ě",x$="Ê",_$="ê",S$="≖",k$="≕",C$="Э",T$="э",E$="⩷",L$="Ė",A$="ė",M$="≑",N$="ⅇ",P$="≒",O$="𝔈",D$="𝔢",$$="⪚",R$="È",z$="è",F$="⪖",I$="⪘",q$="⪙",H$="∈",B$="⏧",W$="ℓ",U$="⪕",j$="⪗",G$="Ē",V$="ē",K$="∅",X$="∅",Y$="◻",Z$="∅",J$="▫",Q$=" ",tR=" ",eR=" ",nR="Ŋ",rR="ŋ",iR=" ",oR="Ę",sR="ę",lR="𝔼",aR="𝕖",cR="⋕",uR="⧣",fR="⩱",hR="ε",dR="Ε",pR="ε",gR="ϵ",vR="≖",mR="≕",yR="≂",bR="⪖",wR="⪕",xR="⩵",_R="=",SR="≂",kR="≟",CR="⇌",TR="≡",ER="⩸",LR="⧥",AR="⥱",MR="≓",NR="ℯ",PR="ℰ",OR="≐",DR="⩳",$R="≂",RR="Η",zR="η",FR="Ð",IR="ð",qR="Ë",HR="ë",BR="€",WR="!",UR="∃",jR="∃",GR="ℰ",VR="ⅇ",KR="ⅇ",XR="≒",YR="Ф",ZR="ф",JR="♀",QR="ffi",t2="ff",e2="ffl",n2="𝔉",r2="𝔣",i2="fi",o2="◼",s2="▪",l2="fj",a2="♭",c2="fl",u2="▱",f2="ƒ",h2="𝔽",d2="𝕗",p2="∀",g2="∀",v2="⋔",m2="⫙",y2="ℱ",b2="⨍",w2="½",x2="⅓",_2="¼",S2="⅕",k2="⅙",C2="⅛",T2="⅔",E2="⅖",L2="¾",A2="⅗",M2="⅜",N2="⅘",P2="⅚",O2="⅝",D2="⅞",$2="⁄",R2="⌢",z2="𝒻",F2="ℱ",I2="ǵ",q2="Γ",H2="γ",B2="Ϝ",W2="ϝ",U2="⪆",j2="Ğ",G2="ğ",V2="Ģ",K2="Ĝ",X2="ĝ",Y2="Г",Z2="г",J2="Ġ",Q2="ġ",tz="≥",ez="≧",nz="⪌",rz="⋛",iz="≥",oz="≧",sz="⩾",lz="⪩",az="⩾",cz="⪀",uz="⪂",fz="⪄",hz="⋛︀",dz="⪔",pz="𝔊",gz="𝔤",vz="≫",mz="⋙",yz="⋙",bz="ℷ",wz="Ѓ",xz="ѓ",_z="⪥",Sz="≷",kz="⪒",Cz="⪤",Tz="⪊",Ez="⪊",Lz="⪈",Az="≩",Mz="⪈",Nz="≩",Pz="⋧",Oz="𝔾",Dz="𝕘",$z="`",Rz="≥",zz="⋛",Fz="≧",Iz="⪢",qz="≷",Hz="⩾",Bz="≳",Wz="𝒢",Uz="ℊ",jz="≳",Gz="⪎",Vz="⪐",Kz="⪧",Xz="⩺",Yz=">",Zz=">",Jz="≫",Qz="⋗",tF="⦕",eF="⩼",nF="⪆",rF="⥸",iF="⋗",oF="⋛",sF="⪌",lF="≷",aF="≳",cF="≩︀",uF="≩︀",fF="ˇ",hF=" ",dF="½",pF="ℋ",gF="Ъ",vF="ъ",mF="⥈",yF="↔",bF="⇔",wF="↭",xF="^",_F="ℏ",SF="Ĥ",kF="ĥ",CF="♥",TF="♥",EF="…",LF="⊹",AF="𝔥",MF="ℌ",NF="ℋ",PF="⤥",OF="⤦",DF="⇿",$F="∻",RF="↩",zF="↪",FF="𝕙",IF="ℍ",qF="―",HF="─",BF="𝒽",WF="ℋ",UF="ℏ",jF="Ħ",GF="ħ",VF="≎",KF="≏",XF="⁃",YF="‐",ZF="Í",JF="í",QF="",tI="Î",eI="î",nI="И",rI="и",iI="İ",oI="Е",sI="е",lI="¡",aI="⇔",cI="𝔦",uI="ℑ",fI="Ì",hI="ì",dI="ⅈ",pI="⨌",gI="∭",vI="⧜",mI="℩",yI="IJ",bI="ij",wI="Ī",xI="ī",_I="ℑ",SI="ⅈ",kI="ℐ",CI="ℑ",TI="ı",EI="ℑ",LI="⊷",AI="Ƶ",MI="⇒",NI="℅",PI="∞",OI="⧝",DI="ı",$I="⊺",RI="∫",zI="∬",FI="ℤ",II="∫",qI="⊺",HI="⋂",BI="⨗",WI="⨼",UI="",jI="",GI="Ё",VI="ё",KI="Į",XI="į",YI="𝕀",ZI="𝕚",JI="Ι",QI="ι",tq="⨼",eq="¿",nq="𝒾",rq="ℐ",iq="∈",oq="⋵",sq="⋹",lq="⋴",aq="⋳",cq="∈",uq="",fq="Ĩ",hq="ĩ",dq="І",pq="і",gq="Ï",vq="ï",mq="Ĵ",yq="ĵ",bq="Й",wq="й",xq="𝔍",_q="𝔧",Sq="ȷ",kq="𝕁",Cq="𝕛",Tq="𝒥",Eq="𝒿",Lq="Ј",Aq="ј",Mq="Є",Nq="є",Pq="Κ",Oq="κ",Dq="ϰ",$q="Ķ",Rq="ķ",zq="К",Fq="к",Iq="𝔎",qq="𝔨",Hq="ĸ",Bq="Х",Wq="х",Uq="Ќ",jq="ќ",Gq="𝕂",Vq="𝕜",Kq="𝒦",Xq="𝓀",Yq="⇚",Zq="Ĺ",Jq="ĺ",Qq="⦴",tH="ℒ",eH="Λ",nH="λ",rH="⟨",iH="⟪",oH="⦑",sH="⟨",lH="⪅",aH="ℒ",cH="«",uH="⇤",fH="⤟",hH="←",dH="↞",pH="⇐",gH="⤝",vH="↩",mH="↫",yH="⤹",bH="⥳",wH="↢",xH="⤙",_H="⤛",SH="⪫",kH="⪭",CH="⪭︀",TH="⤌",EH="⤎",LH="❲",AH="{",MH="[",NH="⦋",PH="⦏",OH="⦍",DH="Ľ",$H="ľ",RH="Ļ",zH="ļ",FH="⌈",IH="{",qH="Л",HH="л",BH="⤶",WH="“",UH="„",jH="⥧",GH="⥋",VH="↲",KH="≤",XH="≦",YH="⟨",ZH="⇤",JH="←",QH="←",tB="⇐",eB="⇆",nB="↢",rB="⌈",iB="⟦",oB="⥡",sB="⥙",lB="⇃",aB="⌊",cB="↽",uB="↼",fB="⇇",hB="↔",dB="↔",pB="⇔",gB="⇆",vB="⇋",mB="↭",yB="⥎",bB="↤",wB="⊣",xB="⥚",_B="⋋",SB="⧏",kB="⊲",CB="⊴",TB="⥑",EB="⥠",LB="⥘",AB="↿",MB="⥒",NB="↼",PB="⪋",OB="⋚",DB="≤",$B="≦",RB="⩽",zB="⪨",FB="⩽",IB="⩿",qB="⪁",HB="⪃",BB="⋚︀",WB="⪓",UB="⪅",jB="⋖",GB="⋚",VB="⪋",KB="⋚",XB="≦",YB="≶",ZB="≶",JB="⪡",QB="≲",t3="⩽",e3="≲",n3="⥼",r3="⌊",i3="𝔏",o3="𝔩",s3="≶",l3="⪑",a3="⥢",c3="↽",u3="↼",f3="⥪",h3="▄",d3="Љ",p3="љ",g3="⇇",v3="≪",m3="⋘",y3="⌞",b3="⇚",w3="⥫",x3="◺",_3="Ŀ",S3="ŀ",k3="⎰",C3="⎰",T3="⪉",E3="⪉",L3="⪇",A3="≨",M3="⪇",N3="≨",P3="⋦",O3="⟬",D3="⇽",$3="⟦",R3="⟵",z3="⟵",F3="⟸",I3="⟷",q3="⟷",H3="⟺",B3="⟼",W3="⟶",U3="⟶",j3="⟹",G3="↫",V3="↬",K3="⦅",X3="𝕃",Y3="𝕝",Z3="⨭",J3="⨴",Q3="∗",t5="_",e5="↙",n5="↘",r5="◊",i5="◊",o5="⧫",s5="(",l5="⦓",a5="⇆",c5="⌟",u5="⇋",f5="⥭",h5="",d5="⊿",p5="‹",g5="𝓁",v5="ℒ",m5="↰",y5="↰",b5="≲",w5="⪍",x5="⪏",_5="[",S5="‘",k5="‚",C5="Ł",T5="ł",E5="⪦",L5="⩹",A5="<",M5="<",N5="≪",P5="⋖",O5="⋋",D5="⋉",$5="⥶",R5="⩻",z5="◃",F5="⊴",I5="◂",q5="⦖",H5="⥊",B5="⥦",W5="≨︀",U5="≨︀",j5="¯",G5="♂",V5="✠",K5="✠",X5="↦",Y5="↦",Z5="↧",J5="↤",Q5="↥",t8="▮",e8="⨩",n8="М",r8="м",i8="—",o8="∺",s8="∡",l8=" ",a8="ℳ",c8="𝔐",u8="𝔪",f8="℧",h8="µ",d8="*",p8="⫰",g8="∣",v8="·",m8="⊟",y8="−",b8="∸",w8="⨪",x8="∓",_8="⫛",S8="…",k8="∓",C8="⊧",T8="𝕄",E8="𝕞",L8="∓",A8="𝓂",M8="ℳ",N8="∾",P8="Μ",O8="μ",D8="⊸",$8="⊸",R8="∇",z8="Ń",F8="ń",I8="∠⃒",q8="≉",H8="⩰̸",B8="≋̸",W8="ʼn",U8="≉",j8="♮",G8="ℕ",V8="♮",K8=" ",X8="≎̸",Y8="≏̸",Z8="⩃",J8="Ň",Q8="ň",tW="Ņ",eW="ņ",nW="≇",rW="⩭̸",iW="⩂",oW="Н",sW="н",lW="–",aW="⤤",cW="↗",uW="⇗",fW="↗",hW="≠",dW="≐̸",pW="",gW="",vW="",mW="",yW="≢",bW="⤨",wW="≂̸",xW="≫",_W="≪",SW=`
|
|
6
|
-
`,kW="∄",CW="∄",TW="𝔑",EW="𝔫",LW="≧̸",AW="≱",MW="≱",NW="≧̸",PW="⩾̸",OW="⩾̸",DW="⋙̸",$W="≵",RW="≫⃒",zW="≯",FW="≯",IW="≫̸",qW="↮",HW="⇎",BW="⫲",WW="∋",UW="⋼",jW="⋺",GW="∋",VW="Њ",KW="њ",XW="↚",YW="⇍",ZW="‥",JW="≦̸",QW="≰",tU="↚",eU="⇍",nU="↮",rU="⇎",iU="≰",oU="≦̸",sU="⩽̸",lU="⩽̸",aU="≮",cU="⋘̸",uU="≴",fU="≪⃒",hU="≮",dU="⋪",pU="⋬",gU="≪̸",vU="∤",mU="",yU=" ",bU="𝕟",wU="ℕ",xU="⫬",_U="¬",SU="≢",kU="≭",CU="∦",TU="∉",EU="≠",LU="≂̸",AU="∄",MU="≯",NU="≱",PU="≧̸",OU="≫̸",DU="≹",$U="⩾̸",RU="≵",zU="≎̸",FU="≏̸",IU="∉",qU="⋵̸",HU="⋹̸",BU="∉",WU="⋷",UU="⋶",jU="⧏̸",GU="⋪",VU="⋬",KU="≮",XU="≰",YU="≸",ZU="≪̸",JU="⩽̸",QU="≴",t4="⪢̸",e4="⪡̸",n4="∌",r4="∌",i4="⋾",o4="⋽",s4="⊀",l4="⪯̸",a4="⋠",c4="∌",u4="⧐̸",f4="⋫",h4="⋭",d4="⊏̸",p4="⋢",g4="⊐̸",v4="⋣",m4="⊂⃒",y4="⊈",b4="⊁",w4="⪰̸",x4="⋡",_4="≿̸",S4="⊃⃒",k4="⊉",C4="≁",T4="≄",E4="≇",L4="≉",A4="∤",M4="∦",N4="∦",P4="⫽⃥",O4="∂̸",D4="⨔",$4="⊀",R4="⋠",z4="⊀",F4="⪯̸",I4="⪯̸",q4="⤳̸",H4="↛",B4="⇏",W4="↝̸",U4="↛",j4="⇏",G4="⋫",V4="⋭",K4="⊁",X4="⋡",Y4="⪰̸",Z4="𝒩",J4="𝓃",Q4="∤",t6="∦",e6="≁",n6="≄",r6="≄",i6="∤",o6="∦",s6="⋢",l6="⋣",a6="⊄",c6="⫅̸",u6="⊈",f6="⊂⃒",h6="⊈",d6="⫅̸",p6="⊁",g6="⪰̸",v6="⊅",m6="⫆̸",y6="⊉",b6="⊃⃒",w6="⊉",x6="⫆̸",_6="≹",S6="Ñ",k6="ñ",C6="≸",T6="⋪",E6="⋬",L6="⋫",A6="⋭",M6="Ν",N6="ν",P6="#",O6="№",D6=" ",$6="≍⃒",R6="⊬",z6="⊭",F6="⊮",I6="⊯",q6="≥⃒",H6=">⃒",B6="⤄",W6="⧞",U6="⤂",j6="≤⃒",G6="<⃒",V6="⊴⃒",K6="⤃",X6="⊵⃒",Y6="∼⃒",Z6="⤣",J6="↖",Q6="⇖",tj="↖",ej="⤧",nj="Ó",rj="ó",ij="⊛",oj="Ô",sj="ô",lj="⊚",aj="О",cj="о",uj="⊝",fj="Ő",hj="ő",dj="⨸",pj="⊙",gj="⦼",vj="Œ",mj="œ",yj="⦿",bj="𝔒",wj="𝔬",xj="˛",_j="Ò",Sj="ò",kj="⧁",Cj="⦵",Tj="Ω",Ej="∮",Lj="↺",Aj="⦾",Mj="⦻",Nj="‾",Pj="⧀",Oj="Ō",Dj="ō",$j="Ω",Rj="ω",zj="Ο",Fj="ο",Ij="⦶",qj="⊖",Hj="𝕆",Bj="𝕠",Wj="⦷",Uj="“",jj="‘",Gj="⦹",Vj="⊕",Kj="↻",Xj="⩔",Yj="∨",Zj="⩝",Jj="ℴ",Qj="ℴ",t9="ª",e9="º",n9="⊶",r9="⩖",i9="⩗",o9="⩛",s9="Ⓢ",l9="𝒪",a9="ℴ",c9="Ø",u9="ø",f9="⊘",h9="Õ",d9="õ",p9="⨶",g9="⨷",v9="⊗",m9="Ö",y9="ö",b9="⌽",w9="‾",x9="⏞",_9="⎴",S9="⏜",k9="¶",C9="∥",T9="∥",E9="⫳",L9="⫽",A9="∂",M9="∂",N9="П",P9="п",O9="%",D9=".",$9="‰",R9="⊥",z9="‱",F9="𝔓",I9="𝔭",q9="Φ",H9="φ",B9="ϕ",W9="ℳ",U9="☎",j9="Π",G9="π",V9="⋔",K9="ϖ",X9="ℏ",Y9="ℎ",Z9="ℏ",J9="⨣",Q9="⊞",tG="⨢",eG="+",nG="∔",rG="⨥",iG="⩲",oG="±",sG="±",lG="⨦",aG="⨧",cG="±",uG="ℌ",fG="⨕",hG="𝕡",dG="ℙ",pG="£",gG="⪷",vG="⪻",mG="≺",yG="≼",bG="⪷",wG="≺",xG="≼",_G="≺",SG="⪯",kG="≼",CG="≾",TG="⪯",EG="⪹",LG="⪵",AG="⋨",MG="⪯",NG="⪳",PG="≾",OG="′",DG="″",$G="ℙ",RG="⪹",zG="⪵",FG="⋨",IG="∏",qG="∏",HG="⌮",BG="⌒",WG="⌓",UG="∝",jG="∝",GG="∷",VG="∝",KG="≾",XG="⊰",YG="𝒫",ZG="𝓅",JG="Ψ",QG="ψ",tV=" ",eV="𝔔",nV="𝔮",rV="⨌",iV="𝕢",oV="ℚ",sV="⁗",lV="𝒬",aV="𝓆",cV="ℍ",uV="⨖",fV="?",hV="≟",dV='"',pV='"',gV="⇛",vV="∽̱",mV="Ŕ",yV="ŕ",bV="√",wV="⦳",xV="⟩",_V="⟫",SV="⦒",kV="⦥",CV="⟩",TV="»",EV="⥵",LV="⇥",AV="⤠",MV="⤳",NV="→",PV="↠",OV="⇒",DV="⤞",$V="↪",RV="↬",zV="⥅",FV="⥴",IV="⤖",qV="↣",HV="↝",BV="⤚",WV="⤜",UV="∶",jV="ℚ",GV="⤍",VV="⤏",KV="⤐",XV="❳",YV="}",ZV="]",JV="⦌",QV="⦎",t7="⦐",e7="Ř",n7="ř",r7="Ŗ",i7="ŗ",o7="⌉",s7="}",l7="Р",a7="р",c7="⤷",u7="⥩",f7="”",h7="”",d7="↳",p7="ℜ",g7="ℛ",v7="ℜ",m7="ℝ",y7="ℜ",b7="▭",w7="®",x7="®",_7="∋",S7="⇋",k7="⥯",C7="⥽",T7="⌋",E7="𝔯",L7="ℜ",A7="⥤",M7="⇁",N7="⇀",P7="⥬",O7="Ρ",D7="ρ",$7="ϱ",R7="⟩",z7="⇥",F7="→",I7="→",q7="⇒",H7="⇄",B7="↣",W7="⌉",U7="⟧",j7="⥝",G7="⥕",V7="⇂",K7="⌋",X7="⇁",Y7="⇀",Z7="⇄",J7="⇌",Q7="⇉",tK="↝",eK="↦",nK="⊢",rK="⥛",iK="⋌",oK="⧐",sK="⊳",lK="⊵",aK="⥏",cK="⥜",uK="⥔",fK="↾",hK="⥓",dK="⇀",pK="˚",gK="≓",vK="⇄",mK="⇌",yK="",bK="⎱",wK="⎱",xK="⫮",_K="⟭",SK="⇾",kK="⟧",CK="⦆",TK="𝕣",EK="ℝ",LK="⨮",AK="⨵",MK="⥰",NK=")",PK="⦔",OK="⨒",DK="⇉",$K="⇛",RK="›",zK="𝓇",FK="ℛ",IK="↱",qK="↱",HK="]",BK="’",WK="’",UK="⋌",jK="⋊",GK="▹",VK="⊵",KK="▸",XK="⧎",YK="⧴",ZK="⥨",JK="℞",QK="Ś",tX="ś",eX="‚",nX="⪸",rX="Š",iX="š",oX="⪼",sX="≻",lX="≽",aX="⪰",cX="⪴",uX="Ş",fX="ş",hX="Ŝ",dX="ŝ",pX="⪺",gX="⪶",vX="⋩",mX="⨓",yX="≿",bX="С",wX="с",xX="⊡",_X="⋅",SX="⩦",kX="⤥",CX="↘",TX="⇘",EX="↘",LX="§",AX=";",MX="⤩",NX="∖",PX="∖",OX="✶",DX="𝔖",$X="𝔰",RX="⌢",zX="♯",FX="Щ",IX="щ",qX="Ш",HX="ш",BX="↓",WX="←",UX="∣",jX="∥",GX="→",VX="↑",KX="",XX="Σ",YX="σ",ZX="ς",JX="ς",QX="∼",tY="⩪",eY="≃",nY="≃",rY="⪞",iY="⪠",oY="⪝",sY="⪟",lY="≆",aY="⨤",cY="⥲",uY="←",fY="∘",hY="∖",dY="⨳",pY="⧤",gY="∣",vY="⌣",mY="⪪",yY="⪬",bY="⪬︀",wY="Ь",xY="ь",_Y="⌿",SY="⧄",kY="/",CY="𝕊",TY="𝕤",EY="♠",LY="♠",AY="∥",MY="⊓",NY="⊓︀",PY="⊔",OY="⊔︀",DY="√",$Y="⊏",RY="⊑",zY="⊏",FY="⊑",IY="⊐",qY="⊒",HY="⊐",BY="⊒",WY="□",UY="□",jY="⊓",GY="⊏",VY="⊑",KY="⊐",XY="⊒",YY="⊔",ZY="▪",JY="□",QY="▪",tZ="→",eZ="𝒮",nZ="𝓈",rZ="∖",iZ="⌣",oZ="⋆",sZ="⋆",lZ="☆",aZ="★",cZ="ϵ",uZ="ϕ",fZ="¯",hZ="⊂",dZ="⋐",pZ="⪽",gZ="⫅",vZ="⊆",mZ="⫃",yZ="⫁",bZ="⫋",wZ="⊊",xZ="⪿",_Z="⥹",SZ="⊂",kZ="⋐",CZ="⊆",TZ="⫅",EZ="⊆",LZ="⊊",AZ="⫋",MZ="⫇",NZ="⫕",PZ="⫓",OZ="⪸",DZ="≻",$Z="≽",RZ="≻",zZ="⪰",FZ="≽",IZ="≿",qZ="⪰",HZ="⪺",BZ="⪶",WZ="⋩",UZ="≿",jZ="∋",GZ="∑",VZ="∑",KZ="♪",XZ="¹",YZ="²",ZZ="³",JZ="⊃",QZ="⋑",tJ="⪾",eJ="⫘",nJ="⫆",rJ="⊇",iJ="⫄",oJ="⊃",sJ="⊇",lJ="⟉",aJ="⫗",cJ="⥻",uJ="⫂",fJ="⫌",hJ="⊋",dJ="⫀",pJ="⊃",gJ="⋑",vJ="⊇",mJ="⫆",yJ="⊋",bJ="⫌",wJ="⫈",xJ="⫔",_J="⫖",SJ="⤦",kJ="↙",CJ="⇙",TJ="↙",EJ="⤪",LJ="ß",AJ=" ",MJ="⌖",NJ="Τ",PJ="τ",OJ="⎴",DJ="Ť",$J="ť",RJ="Ţ",zJ="ţ",FJ="Т",IJ="т",qJ="⃛",HJ="⌕",BJ="𝔗",WJ="𝔱",UJ="∴",jJ="∴",GJ="∴",VJ="Θ",KJ="θ",XJ="ϑ",YJ="ϑ",ZJ="≈",JJ="∼",QJ=" ",tQ=" ",eQ=" ",nQ="≈",rQ="∼",iQ="Þ",oQ="þ",sQ="˜",lQ="∼",aQ="≃",cQ="≅",uQ="≈",fQ="⨱",hQ="⊠",dQ="×",pQ="⨰",gQ="∭",vQ="⤨",mQ="⌶",yQ="⫱",bQ="⊤",wQ="𝕋",xQ="𝕥",_Q="⫚",SQ="⤩",kQ="‴",CQ="™",TQ="™",EQ="▵",LQ="▿",AQ="◃",MQ="⊴",NQ="≜",PQ="▹",OQ="⊵",DQ="◬",$Q="≜",RQ="⨺",zQ="⃛",FQ="⨹",IQ="⧍",qQ="⨻",HQ="⏢",BQ="𝒯",WQ="𝓉",UQ="Ц",jQ="ц",GQ="Ћ",VQ="ћ",KQ="Ŧ",XQ="ŧ",YQ="≬",ZQ="↞",JQ="↠",QQ="Ú",ttt="ú",ett="↑",ntt="↟",rtt="⇑",itt="⥉",ott="Ў",stt="ў",ltt="Ŭ",att="ŭ",ctt="Û",utt="û",ftt="У",htt="у",dtt="⇅",ptt="Ű",gtt="ű",vtt="⥮",mtt="⥾",ytt="𝔘",btt="𝔲",wtt="Ù",xtt="ù",_tt="⥣",Stt="↿",ktt="↾",Ctt="▀",Ttt="⌜",Ett="⌜",Ltt="⌏",Att="◸",Mtt="Ū",Ntt="ū",Ptt="¨",Ott="_",Dtt="⏟",$tt="⎵",Rtt="⏝",ztt="⋃",Ftt="⊎",Itt="Ų",qtt="ų",Htt="𝕌",Btt="𝕦",Wtt="⤒",Utt="↑",jtt="↑",Gtt="⇑",Vtt="⇅",Ktt="↕",Xtt="↕",Ytt="⇕",Ztt="⥮",Jtt="↿",Qtt="↾",tet="⊎",eet="↖",net="↗",ret="υ",iet="ϒ",oet="ϒ",set="Υ",aet="υ",cet="↥",uet="⊥",fet="⇈",het="⌝",det="⌝",pet="⌎",get="Ů",vet="ů",met="◹",yet="𝒰",bet="𝓊",wet="⋰",xet="Ũ",_et="ũ",ket="▵",Cet="▴",Tet="⇈",Eet="Ü",Let="ü",Aet="⦧",Met="⦜",Net="ϵ",Pet="ϰ",Oet="∅",Det="ϕ",$et="ϖ",Ret="∝",zet="↕",Fet="⇕",Iet="ϱ",qet="ς",Het="⊊︀",Bet="⫋︀",Wet="⊋︀",Uet="⫌︀",jet="ϑ",Get="⊲",Vet="⊳",Ket="⫨",Xet="⫫",Yet="⫩",Zet="В",Jet="в",Qet="⊢",tnt="⊨",ent="⊩",nnt="⊫",rnt="⫦",int="⊻",ont="∨",snt="⋁",lnt="≚",ant="⋮",cnt="|",unt="‖",fnt="|",hnt="‖",dnt="∣",pnt="|",gnt="❘",vnt="≀",mnt=" ",ynt="𝔙",bnt="𝔳",wnt="⊲",xnt="⊂⃒",_nt="⊃⃒",Snt="𝕍",knt="𝕧",Cnt="∝",Tnt="⊳",Ent="𝒱",Lnt="𝓋",Ant="⫋︀",Mnt="⊊︀",Nnt="⫌︀",Pnt="⊋︀",Ont="⊪",Dnt="⦚",$nt="Ŵ",Rnt="ŵ",znt="⩟",Fnt="∧",Int="⋀",qnt="≙",Hnt="℘",Bnt="𝔚",Wnt="𝔴",Unt="𝕎",jnt="𝕨",Gnt="℘",Vnt="≀",Knt="≀",Xnt="𝒲",Ynt="𝓌",Znt="⋂",Jnt="◯",Qnt="⋃",trt="▽",ert="𝔛",nrt="𝔵",rrt="⟷",irt="⟺",ort="Ξ",srt="ξ",lrt="⟵",art="⟸",crt="⟼",urt="⋻",frt="⨀",hrt="𝕏",drt="𝕩",prt="⨁",grt="⨂",vrt="⟶",mrt="⟹",yrt="𝒳",brt="𝓍",wrt="⨆",xrt="⨄",_rt="△",Srt="⋁",krt="⋀",Crt="Ý",Trt="ý",Ert="Я",Lrt="я",Art="Ŷ",Mrt="ŷ",Nrt="Ы",Prt="ы",Ort="¥",Drt="𝔜",$rt="𝔶",Rrt="Ї",zrt="ї",Frt="𝕐",Irt="𝕪",qrt="𝒴",Hrt="𝓎",Brt="Ю",Wrt="ю",Urt="ÿ",jrt="Ÿ",Grt="Ź",Vrt="ź",Krt="Ž",Xrt="ž",Yrt="З",Zrt="з",Jrt="Ż",Qrt="ż",tit="ℨ",eit="",nit="Ζ",rit="ζ",iit="𝔷",oit="ℨ",sit="Ж",lit="ж",ait="⇝",cit="𝕫",uit="ℤ",fit="𝒵",hit="𝓏",dit="",pit="",by={Aacute:YT,aacute:ZT,Abreve:JT,abreve:QT,ac:tE,acd:eE,acE:nE,Acirc:rE,acirc:iE,acute:oE,Acy:sE,acy:lE,AElig:aE,aelig:cE,af:uE,Afr:fE,afr:hE,Agrave:dE,agrave:pE,alefsym:gE,aleph:vE,Alpha:mE,alpha:yE,Amacr:bE,amacr:wE,amalg:xE,amp:_E,AMP:SE,andand:kE,And:CE,and:TE,andd:EE,andslope:LE,andv:AE,ang:ME,ange:NE,angle:PE,angmsdaa:OE,angmsdab:DE,angmsdac:$E,angmsdad:RE,angmsdae:zE,angmsdaf:FE,angmsdag:IE,angmsdah:qE,angmsd:HE,angrt:BE,angrtvb:WE,angrtvbd:UE,angsph:jE,angst:GE,angzarr:VE,Aogon:KE,aogon:XE,Aopf:YE,aopf:ZE,apacir:JE,ap:QE,apE:tL,ape:eL,apid:nL,apos:rL,ApplyFunction:iL,approx:oL,approxeq:sL,Aring:lL,aring:aL,Ascr:cL,ascr:uL,Assign:fL,ast:hL,asymp:dL,asympeq:pL,Atilde:gL,atilde:vL,Auml:mL,auml:yL,awconint:bL,awint:wL,backcong:xL,backepsilon:_L,backprime:SL,backsim:kL,backsimeq:CL,Backslash:TL,Barv:EL,barvee:LL,barwed:AL,Barwed:ML,barwedge:NL,bbrk:PL,bbrktbrk:OL,bcong:DL,Bcy:$L,bcy:RL,bdquo:zL,becaus:FL,because:IL,Because:qL,bemptyv:HL,bepsi:BL,bernou:WL,Bernoullis:UL,Beta:jL,beta:GL,beth:VL,between:KL,Bfr:XL,bfr:YL,bigcap:ZL,bigcirc:JL,bigcup:QL,bigodot:tA,bigoplus:eA,bigotimes:nA,bigsqcup:rA,bigstar:iA,bigtriangledown:oA,bigtriangleup:sA,biguplus:lA,bigvee:aA,bigwedge:cA,bkarow:uA,blacklozenge:fA,blacksquare:hA,blacktriangle:dA,blacktriangledown:pA,blacktriangleleft:gA,blacktriangleright:vA,blank:mA,blk12:yA,blk14:bA,blk34:wA,block:xA,bne:_A,bnequiv:SA,bNot:kA,bnot:CA,Bopf:TA,bopf:EA,bot:LA,bottom:AA,bowtie:MA,boxbox:NA,boxdl:PA,boxdL:OA,boxDl:DA,boxDL:$A,boxdr:RA,boxdR:zA,boxDr:FA,boxDR:IA,boxh:qA,boxH:HA,boxhd:BA,boxHd:WA,boxhD:UA,boxHD:jA,boxhu:GA,boxHu:VA,boxhU:KA,boxHU:XA,boxminus:YA,boxplus:ZA,boxtimes:JA,boxul:QA,boxuL:tM,boxUl:eM,boxUL:nM,boxur:rM,boxuR:iM,boxUr:oM,boxUR:sM,boxv:lM,boxV:aM,boxvh:cM,boxvH:uM,boxVh:fM,boxVH:hM,boxvl:dM,boxvL:pM,boxVl:gM,boxVL:vM,boxvr:mM,boxvR:yM,boxVr:bM,boxVR:wM,bprime:xM,breve:_M,Breve:SM,brvbar:kM,bscr:CM,Bscr:TM,bsemi:EM,bsim:LM,bsime:AM,bsolb:MM,bsol:NM,bsolhsub:PM,bull:OM,bullet:DM,bump:$M,bumpE:RM,bumpe:zM,Bumpeq:FM,bumpeq:IM,Cacute:qM,cacute:HM,capand:BM,capbrcup:WM,capcap:UM,cap:jM,Cap:GM,capcup:VM,capdot:KM,CapitalDifferentialD:XM,caps:YM,caret:ZM,caron:JM,Cayleys:QM,ccaps:tN,Ccaron:eN,ccaron:nN,Ccedil:rN,ccedil:iN,Ccirc:oN,ccirc:sN,Cconint:lN,ccups:aN,ccupssm:cN,Cdot:uN,cdot:fN,cedil:hN,Cedilla:dN,cemptyv:pN,cent:gN,centerdot:vN,CenterDot:mN,cfr:yN,Cfr:bN,CHcy:wN,chcy:xN,check:_N,checkmark:SN,Chi:kN,chi:CN,circ:TN,circeq:EN,circlearrowleft:LN,circlearrowright:AN,circledast:MN,circledcirc:NN,circleddash:PN,CircleDot:ON,circledR:DN,circledS:$N,CircleMinus:RN,CirclePlus:zN,CircleTimes:FN,cir:IN,cirE:qN,cire:HN,cirfnint:BN,cirmid:WN,cirscir:UN,ClockwiseContourIntegral:jN,CloseCurlyDoubleQuote:GN,CloseCurlyQuote:VN,clubs:KN,clubsuit:XN,colon:YN,Colon:ZN,Colone:JN,colone:QN,coloneq:tP,comma:eP,commat:nP,comp:rP,compfn:iP,complement:oP,complexes:sP,cong:lP,congdot:aP,Congruent:cP,conint:uP,Conint:fP,ContourIntegral:hP,copf:dP,Copf:pP,coprod:gP,Coproduct:vP,copy:mP,COPY:yP,copysr:bP,CounterClockwiseContourIntegral:wP,crarr:xP,cross:_P,Cross:SP,Cscr:kP,cscr:CP,csub:TP,csube:EP,csup:LP,csupe:AP,ctdot:MP,cudarrl:NP,cudarrr:PP,cuepr:OP,cuesc:DP,cularr:$P,cularrp:RP,cupbrcap:zP,cupcap:FP,CupCap:IP,cup:qP,Cup:HP,cupcup:BP,cupdot:WP,cupor:UP,cups:jP,curarr:GP,curarrm:VP,curlyeqprec:KP,curlyeqsucc:XP,curlyvee:YP,curlywedge:ZP,curren:JP,curvearrowleft:QP,curvearrowright:tO,cuvee:eO,cuwed:nO,cwconint:rO,cwint:iO,cylcty:oO,dagger:sO,Dagger:lO,daleth:aO,darr:cO,Darr:uO,dArr:fO,dash:hO,Dashv:dO,dashv:pO,dbkarow:gO,dblac:vO,Dcaron:mO,dcaron:yO,Dcy:bO,dcy:wO,ddagger:xO,ddarr:_O,DD:SO,dd:kO,DDotrahd:CO,ddotseq:TO,deg:EO,Del:LO,Delta:AO,delta:MO,demptyv:NO,dfisht:PO,Dfr:OO,dfr:DO,dHar:$O,dharl:RO,dharr:zO,DiacriticalAcute:FO,DiacriticalDot:IO,DiacriticalDoubleAcute:qO,DiacriticalGrave:HO,DiacriticalTilde:BO,diam:WO,diamond:UO,Diamond:jO,diamondsuit:GO,diams:VO,die:KO,DifferentialD:XO,digamma:YO,disin:ZO,div:JO,divide:QO,divideontimes:tD,divonx:eD,DJcy:nD,djcy:rD,dlcorn:iD,dlcrop:oD,dollar:sD,Dopf:lD,dopf:aD,Dot:cD,dot:uD,DotDot:fD,doteq:hD,doteqdot:dD,DotEqual:pD,dotminus:gD,dotplus:vD,dotsquare:mD,doublebarwedge:yD,DoubleContourIntegral:bD,DoubleDot:wD,DoubleDownArrow:xD,DoubleLeftArrow:_D,DoubleLeftRightArrow:SD,DoubleLeftTee:kD,DoubleLongLeftArrow:CD,DoubleLongLeftRightArrow:TD,DoubleLongRightArrow:ED,DoubleRightArrow:LD,DoubleRightTee:AD,DoubleUpArrow:MD,DoubleUpDownArrow:ND,DoubleVerticalBar:PD,DownArrowBar:OD,downarrow:DD,DownArrow:$D,Downarrow:RD,DownArrowUpArrow:zD,DownBreve:FD,downdownarrows:ID,downharpoonleft:qD,downharpoonright:HD,DownLeftRightVector:BD,DownLeftTeeVector:WD,DownLeftVectorBar:UD,DownLeftVector:jD,DownRightTeeVector:GD,DownRightVectorBar:VD,DownRightVector:KD,DownTeeArrow:XD,DownTee:YD,drbkarow:ZD,drcorn:JD,drcrop:QD,Dscr:t$,dscr:e$,DScy:n$,dscy:r$,dsol:i$,Dstrok:o$,dstrok:s$,dtdot:l$,dtri:a$,dtrif:c$,duarr:u$,duhar:f$,dwangle:h$,DZcy:d$,dzcy:p$,dzigrarr:g$,Eacute:v$,eacute:m$,easter:y$,Ecaron:b$,ecaron:w$,Ecirc:x$,ecirc:_$,ecir:S$,ecolon:k$,Ecy:C$,ecy:T$,eDDot:E$,Edot:L$,edot:A$,eDot:M$,ee:N$,efDot:P$,Efr:O$,efr:D$,eg:$$,Egrave:R$,egrave:z$,egs:F$,egsdot:I$,el:q$,Element:H$,elinters:B$,ell:W$,els:U$,elsdot:j$,Emacr:G$,emacr:V$,empty:K$,emptyset:X$,EmptySmallSquare:Y$,emptyv:Z$,EmptyVerySmallSquare:J$,emsp13:Q$,emsp14:tR,emsp:eR,ENG:nR,eng:rR,ensp:iR,Eogon:oR,eogon:sR,Eopf:lR,eopf:aR,epar:cR,eparsl:uR,eplus:fR,epsi:hR,Epsilon:dR,epsilon:pR,epsiv:gR,eqcirc:vR,eqcolon:mR,eqsim:yR,eqslantgtr:bR,eqslantless:wR,Equal:xR,equals:_R,EqualTilde:SR,equest:kR,Equilibrium:CR,equiv:TR,equivDD:ER,eqvparsl:LR,erarr:AR,erDot:MR,escr:NR,Escr:PR,esdot:OR,Esim:DR,esim:$R,Eta:RR,eta:zR,ETH:FR,eth:IR,Euml:qR,euml:HR,euro:BR,excl:WR,exist:UR,Exists:jR,expectation:GR,exponentiale:VR,ExponentialE:KR,fallingdotseq:XR,Fcy:YR,fcy:ZR,female:JR,ffilig:QR,fflig:t2,ffllig:e2,Ffr:n2,ffr:r2,filig:i2,FilledSmallSquare:o2,FilledVerySmallSquare:s2,fjlig:l2,flat:a2,fllig:c2,fltns:u2,fnof:f2,Fopf:h2,fopf:d2,forall:p2,ForAll:g2,fork:v2,forkv:m2,Fouriertrf:y2,fpartint:b2,frac12:w2,frac13:x2,frac14:_2,frac15:S2,frac16:k2,frac18:C2,frac23:T2,frac25:E2,frac34:L2,frac35:A2,frac38:M2,frac45:N2,frac56:P2,frac58:O2,frac78:D2,frasl:$2,frown:R2,fscr:z2,Fscr:F2,gacute:I2,Gamma:q2,gamma:H2,Gammad:B2,gammad:W2,gap:U2,Gbreve:j2,gbreve:G2,Gcedil:V2,Gcirc:K2,gcirc:X2,Gcy:Y2,gcy:Z2,Gdot:J2,gdot:Q2,ge:tz,gE:ez,gEl:nz,gel:rz,geq:iz,geqq:oz,geqslant:sz,gescc:lz,ges:az,gesdot:cz,gesdoto:uz,gesdotol:fz,gesl:hz,gesles:dz,Gfr:pz,gfr:gz,gg:vz,Gg:mz,ggg:yz,gimel:bz,GJcy:wz,gjcy:xz,gla:_z,gl:Sz,glE:kz,glj:Cz,gnap:Tz,gnapprox:Ez,gne:Lz,gnE:Az,gneq:Mz,gneqq:Nz,gnsim:Pz,Gopf:Oz,gopf:Dz,grave:$z,GreaterEqual:Rz,GreaterEqualLess:zz,GreaterFullEqual:Fz,GreaterGreater:Iz,GreaterLess:qz,GreaterSlantEqual:Hz,GreaterTilde:Bz,Gscr:Wz,gscr:Uz,gsim:jz,gsime:Gz,gsiml:Vz,gtcc:Kz,gtcir:Xz,gt:Yz,GT:Zz,Gt:Jz,gtdot:Qz,gtlPar:tF,gtquest:eF,gtrapprox:nF,gtrarr:rF,gtrdot:iF,gtreqless:oF,gtreqqless:sF,gtrless:lF,gtrsim:aF,gvertneqq:cF,gvnE:uF,Hacek:fF,hairsp:hF,half:dF,hamilt:pF,HARDcy:gF,hardcy:vF,harrcir:mF,harr:yF,hArr:bF,harrw:wF,Hat:xF,hbar:_F,Hcirc:SF,hcirc:kF,hearts:CF,heartsuit:TF,hellip:EF,hercon:LF,hfr:AF,Hfr:MF,HilbertSpace:NF,hksearow:PF,hkswarow:OF,hoarr:DF,homtht:$F,hookleftarrow:RF,hookrightarrow:zF,hopf:FF,Hopf:IF,horbar:qF,HorizontalLine:HF,hscr:BF,Hscr:WF,hslash:UF,Hstrok:jF,hstrok:GF,HumpDownHump:VF,HumpEqual:KF,hybull:XF,hyphen:YF,Iacute:ZF,iacute:JF,ic:QF,Icirc:tI,icirc:eI,Icy:nI,icy:rI,Idot:iI,IEcy:oI,iecy:sI,iexcl:lI,iff:aI,ifr:cI,Ifr:uI,Igrave:fI,igrave:hI,ii:dI,iiiint:pI,iiint:gI,iinfin:vI,iiota:mI,IJlig:yI,ijlig:bI,Imacr:wI,imacr:xI,image:_I,ImaginaryI:SI,imagline:kI,imagpart:CI,imath:TI,Im:EI,imof:LI,imped:AI,Implies:MI,incare:NI,in:"∈",infin:PI,infintie:OI,inodot:DI,intcal:$I,int:RI,Int:zI,integers:FI,Integral:II,intercal:qI,Intersection:HI,intlarhk:BI,intprod:WI,InvisibleComma:UI,InvisibleTimes:jI,IOcy:GI,iocy:VI,Iogon:KI,iogon:XI,Iopf:YI,iopf:ZI,Iota:JI,iota:QI,iprod:tq,iquest:eq,iscr:nq,Iscr:rq,isin:iq,isindot:oq,isinE:sq,isins:lq,isinsv:aq,isinv:cq,it:uq,Itilde:fq,itilde:hq,Iukcy:dq,iukcy:pq,Iuml:gq,iuml:vq,Jcirc:mq,jcirc:yq,Jcy:bq,jcy:wq,Jfr:xq,jfr:_q,jmath:Sq,Jopf:kq,jopf:Cq,Jscr:Tq,jscr:Eq,Jsercy:Lq,jsercy:Aq,Jukcy:Mq,jukcy:Nq,Kappa:Pq,kappa:Oq,kappav:Dq,Kcedil:$q,kcedil:Rq,Kcy:zq,kcy:Fq,Kfr:Iq,kfr:qq,kgreen:Hq,KHcy:Bq,khcy:Wq,KJcy:Uq,kjcy:jq,Kopf:Gq,kopf:Vq,Kscr:Kq,kscr:Xq,lAarr:Yq,Lacute:Zq,lacute:Jq,laemptyv:Qq,lagran:tH,Lambda:eH,lambda:nH,lang:rH,Lang:iH,langd:oH,langle:sH,lap:lH,Laplacetrf:aH,laquo:cH,larrb:uH,larrbfs:fH,larr:hH,Larr:dH,lArr:pH,larrfs:gH,larrhk:vH,larrlp:mH,larrpl:yH,larrsim:bH,larrtl:wH,latail:xH,lAtail:_H,lat:SH,late:kH,lates:CH,lbarr:TH,lBarr:EH,lbbrk:LH,lbrace:AH,lbrack:MH,lbrke:NH,lbrksld:PH,lbrkslu:OH,Lcaron:DH,lcaron:$H,Lcedil:RH,lcedil:zH,lceil:FH,lcub:IH,Lcy:qH,lcy:HH,ldca:BH,ldquo:WH,ldquor:UH,ldrdhar:jH,ldrushar:GH,ldsh:VH,le:KH,lE:XH,LeftAngleBracket:YH,LeftArrowBar:ZH,leftarrow:JH,LeftArrow:QH,Leftarrow:tB,LeftArrowRightArrow:eB,leftarrowtail:nB,LeftCeiling:rB,LeftDoubleBracket:iB,LeftDownTeeVector:oB,LeftDownVectorBar:sB,LeftDownVector:lB,LeftFloor:aB,leftharpoondown:cB,leftharpoonup:uB,leftleftarrows:fB,leftrightarrow:hB,LeftRightArrow:dB,Leftrightarrow:pB,leftrightarrows:gB,leftrightharpoons:vB,leftrightsquigarrow:mB,LeftRightVector:yB,LeftTeeArrow:bB,LeftTee:wB,LeftTeeVector:xB,leftthreetimes:_B,LeftTriangleBar:SB,LeftTriangle:kB,LeftTriangleEqual:CB,LeftUpDownVector:TB,LeftUpTeeVector:EB,LeftUpVectorBar:LB,LeftUpVector:AB,LeftVectorBar:MB,LeftVector:NB,lEg:PB,leg:OB,leq:DB,leqq:$B,leqslant:RB,lescc:zB,les:FB,lesdot:IB,lesdoto:qB,lesdotor:HB,lesg:BB,lesges:WB,lessapprox:UB,lessdot:jB,lesseqgtr:GB,lesseqqgtr:VB,LessEqualGreater:KB,LessFullEqual:XB,LessGreater:YB,lessgtr:ZB,LessLess:JB,lesssim:QB,LessSlantEqual:t3,LessTilde:e3,lfisht:n3,lfloor:r3,Lfr:i3,lfr:o3,lg:s3,lgE:l3,lHar:a3,lhard:c3,lharu:u3,lharul:f3,lhblk:h3,LJcy:d3,ljcy:p3,llarr:g3,ll:v3,Ll:m3,llcorner:y3,Lleftarrow:b3,llhard:w3,lltri:x3,Lmidot:_3,lmidot:S3,lmoustache:k3,lmoust:C3,lnap:T3,lnapprox:E3,lne:L3,lnE:A3,lneq:M3,lneqq:N3,lnsim:P3,loang:O3,loarr:D3,lobrk:$3,longleftarrow:R3,LongLeftArrow:z3,Longleftarrow:F3,longleftrightarrow:I3,LongLeftRightArrow:q3,Longleftrightarrow:H3,longmapsto:B3,longrightarrow:W3,LongRightArrow:U3,Longrightarrow:j3,looparrowleft:G3,looparrowright:V3,lopar:K3,Lopf:X3,lopf:Y3,loplus:Z3,lotimes:J3,lowast:Q3,lowbar:t5,LowerLeftArrow:e5,LowerRightArrow:n5,loz:r5,lozenge:i5,lozf:o5,lpar:s5,lparlt:l5,lrarr:a5,lrcorner:c5,lrhar:u5,lrhard:f5,lrm:h5,lrtri:d5,lsaquo:p5,lscr:g5,Lscr:v5,lsh:m5,Lsh:y5,lsim:b5,lsime:w5,lsimg:x5,lsqb:_5,lsquo:S5,lsquor:k5,Lstrok:C5,lstrok:T5,ltcc:E5,ltcir:L5,lt:A5,LT:M5,Lt:N5,ltdot:P5,lthree:O5,ltimes:D5,ltlarr:$5,ltquest:R5,ltri:z5,ltrie:F5,ltrif:I5,ltrPar:q5,lurdshar:H5,luruhar:B5,lvertneqq:W5,lvnE:U5,macr:j5,male:G5,malt:V5,maltese:K5,Map:"⤅",map:X5,mapsto:Y5,mapstodown:Z5,mapstoleft:J5,mapstoup:Q5,marker:t8,mcomma:e8,Mcy:n8,mcy:r8,mdash:i8,mDDot:o8,measuredangle:s8,MediumSpace:l8,Mellintrf:a8,Mfr:c8,mfr:u8,mho:f8,micro:h8,midast:d8,midcir:p8,mid:g8,middot:v8,minusb:m8,minus:y8,minusd:b8,minusdu:w8,MinusPlus:x8,mlcp:_8,mldr:S8,mnplus:k8,models:C8,Mopf:T8,mopf:E8,mp:L8,mscr:A8,Mscr:M8,mstpos:N8,Mu:P8,mu:O8,multimap:D8,mumap:$8,nabla:R8,Nacute:z8,nacute:F8,nang:I8,nap:q8,napE:H8,napid:B8,napos:W8,napprox:U8,natural:j8,naturals:G8,natur:V8,nbsp:K8,nbump:X8,nbumpe:Y8,ncap:Z8,Ncaron:J8,ncaron:Q8,Ncedil:tW,ncedil:eW,ncong:nW,ncongdot:rW,ncup:iW,Ncy:oW,ncy:sW,ndash:lW,nearhk:aW,nearr:cW,neArr:uW,nearrow:fW,ne:hW,nedot:dW,NegativeMediumSpace:pW,NegativeThickSpace:gW,NegativeThinSpace:vW,NegativeVeryThinSpace:mW,nequiv:yW,nesear:bW,nesim:wW,NestedGreaterGreater:xW,NestedLessLess:_W,NewLine:SW,nexist:kW,nexists:CW,Nfr:TW,nfr:EW,ngE:LW,nge:AW,ngeq:MW,ngeqq:NW,ngeqslant:PW,nges:OW,nGg:DW,ngsim:$W,nGt:RW,ngt:zW,ngtr:FW,nGtv:IW,nharr:qW,nhArr:HW,nhpar:BW,ni:WW,nis:UW,nisd:jW,niv:GW,NJcy:VW,njcy:KW,nlarr:XW,nlArr:YW,nldr:ZW,nlE:JW,nle:QW,nleftarrow:tU,nLeftarrow:eU,nleftrightarrow:nU,nLeftrightarrow:rU,nleq:iU,nleqq:oU,nleqslant:sU,nles:lU,nless:aU,nLl:cU,nlsim:uU,nLt:fU,nlt:hU,nltri:dU,nltrie:pU,nLtv:gU,nmid:vU,NoBreak:mU,NonBreakingSpace:yU,nopf:bU,Nopf:wU,Not:xU,not:_U,NotCongruent:SU,NotCupCap:kU,NotDoubleVerticalBar:CU,NotElement:TU,NotEqual:EU,NotEqualTilde:LU,NotExists:AU,NotGreater:MU,NotGreaterEqual:NU,NotGreaterFullEqual:PU,NotGreaterGreater:OU,NotGreaterLess:DU,NotGreaterSlantEqual:$U,NotGreaterTilde:RU,NotHumpDownHump:zU,NotHumpEqual:FU,notin:IU,notindot:qU,notinE:HU,notinva:BU,notinvb:WU,notinvc:UU,NotLeftTriangleBar:jU,NotLeftTriangle:GU,NotLeftTriangleEqual:VU,NotLess:KU,NotLessEqual:XU,NotLessGreater:YU,NotLessLess:ZU,NotLessSlantEqual:JU,NotLessTilde:QU,NotNestedGreaterGreater:t4,NotNestedLessLess:e4,notni:n4,notniva:r4,notnivb:i4,notnivc:o4,NotPrecedes:s4,NotPrecedesEqual:l4,NotPrecedesSlantEqual:a4,NotReverseElement:c4,NotRightTriangleBar:u4,NotRightTriangle:f4,NotRightTriangleEqual:h4,NotSquareSubset:d4,NotSquareSubsetEqual:p4,NotSquareSuperset:g4,NotSquareSupersetEqual:v4,NotSubset:m4,NotSubsetEqual:y4,NotSucceeds:b4,NotSucceedsEqual:w4,NotSucceedsSlantEqual:x4,NotSucceedsTilde:_4,NotSuperset:S4,NotSupersetEqual:k4,NotTilde:C4,NotTildeEqual:T4,NotTildeFullEqual:E4,NotTildeTilde:L4,NotVerticalBar:A4,nparallel:M4,npar:N4,nparsl:P4,npart:O4,npolint:D4,npr:$4,nprcue:R4,nprec:z4,npreceq:F4,npre:I4,nrarrc:q4,nrarr:H4,nrArr:B4,nrarrw:W4,nrightarrow:U4,nRightarrow:j4,nrtri:G4,nrtrie:V4,nsc:K4,nsccue:X4,nsce:Y4,Nscr:Z4,nscr:J4,nshortmid:Q4,nshortparallel:t6,nsim:e6,nsime:n6,nsimeq:r6,nsmid:i6,nspar:o6,nsqsube:s6,nsqsupe:l6,nsub:a6,nsubE:c6,nsube:u6,nsubset:f6,nsubseteq:h6,nsubseteqq:d6,nsucc:p6,nsucceq:g6,nsup:v6,nsupE:m6,nsupe:y6,nsupset:b6,nsupseteq:w6,nsupseteqq:x6,ntgl:_6,Ntilde:S6,ntilde:k6,ntlg:C6,ntriangleleft:T6,ntrianglelefteq:E6,ntriangleright:L6,ntrianglerighteq:A6,Nu:M6,nu:N6,num:P6,numero:O6,numsp:D6,nvap:$6,nvdash:R6,nvDash:z6,nVdash:F6,nVDash:I6,nvge:q6,nvgt:H6,nvHarr:B6,nvinfin:W6,nvlArr:U6,nvle:j6,nvlt:G6,nvltrie:V6,nvrArr:K6,nvrtrie:X6,nvsim:Y6,nwarhk:Z6,nwarr:J6,nwArr:Q6,nwarrow:tj,nwnear:ej,Oacute:nj,oacute:rj,oast:ij,Ocirc:oj,ocirc:sj,ocir:lj,Ocy:aj,ocy:cj,odash:uj,Odblac:fj,odblac:hj,odiv:dj,odot:pj,odsold:gj,OElig:vj,oelig:mj,ofcir:yj,Ofr:bj,ofr:wj,ogon:xj,Ograve:_j,ograve:Sj,ogt:kj,ohbar:Cj,ohm:Tj,oint:Ej,olarr:Lj,olcir:Aj,olcross:Mj,oline:Nj,olt:Pj,Omacr:Oj,omacr:Dj,Omega:$j,omega:Rj,Omicron:zj,omicron:Fj,omid:Ij,ominus:qj,Oopf:Hj,oopf:Bj,opar:Wj,OpenCurlyDoubleQuote:Uj,OpenCurlyQuote:jj,operp:Gj,oplus:Vj,orarr:Kj,Or:Xj,or:Yj,ord:Zj,order:Jj,orderof:Qj,ordf:t9,ordm:e9,origof:n9,oror:r9,orslope:i9,orv:o9,oS:s9,Oscr:l9,oscr:a9,Oslash:c9,oslash:u9,osol:f9,Otilde:h9,otilde:d9,otimesas:p9,Otimes:g9,otimes:v9,Ouml:m9,ouml:y9,ovbar:b9,OverBar:w9,OverBrace:x9,OverBracket:_9,OverParenthesis:S9,para:k9,parallel:C9,par:T9,parsim:E9,parsl:L9,part:A9,PartialD:M9,Pcy:N9,pcy:P9,percnt:O9,period:D9,permil:$9,perp:R9,pertenk:z9,Pfr:F9,pfr:I9,Phi:q9,phi:H9,phiv:B9,phmmat:W9,phone:U9,Pi:j9,pi:G9,pitchfork:V9,piv:K9,planck:X9,planckh:Y9,plankv:Z9,plusacir:J9,plusb:Q9,pluscir:tG,plus:eG,plusdo:nG,plusdu:rG,pluse:iG,PlusMinus:oG,plusmn:sG,plussim:lG,plustwo:aG,pm:cG,Poincareplane:uG,pointint:fG,popf:hG,Popf:dG,pound:pG,prap:gG,Pr:vG,pr:mG,prcue:yG,precapprox:bG,prec:wG,preccurlyeq:xG,Precedes:_G,PrecedesEqual:SG,PrecedesSlantEqual:kG,PrecedesTilde:CG,preceq:TG,precnapprox:EG,precneqq:LG,precnsim:AG,pre:MG,prE:NG,precsim:PG,prime:OG,Prime:DG,primes:$G,prnap:RG,prnE:zG,prnsim:FG,prod:IG,Product:qG,profalar:HG,profline:BG,profsurf:WG,prop:UG,Proportional:jG,Proportion:GG,propto:VG,prsim:KG,prurel:XG,Pscr:YG,pscr:ZG,Psi:JG,psi:QG,puncsp:tV,Qfr:eV,qfr:nV,qint:rV,qopf:iV,Qopf:oV,qprime:sV,Qscr:lV,qscr:aV,quaternions:cV,quatint:uV,quest:fV,questeq:hV,quot:dV,QUOT:pV,rAarr:gV,race:vV,Racute:mV,racute:yV,radic:bV,raemptyv:wV,rang:xV,Rang:_V,rangd:SV,range:kV,rangle:CV,raquo:TV,rarrap:EV,rarrb:LV,rarrbfs:AV,rarrc:MV,rarr:NV,Rarr:PV,rArr:OV,rarrfs:DV,rarrhk:$V,rarrlp:RV,rarrpl:zV,rarrsim:FV,Rarrtl:IV,rarrtl:qV,rarrw:HV,ratail:BV,rAtail:WV,ratio:UV,rationals:jV,rbarr:GV,rBarr:VV,RBarr:KV,rbbrk:XV,rbrace:YV,rbrack:ZV,rbrke:JV,rbrksld:QV,rbrkslu:t7,Rcaron:e7,rcaron:n7,Rcedil:r7,rcedil:i7,rceil:o7,rcub:s7,Rcy:l7,rcy:a7,rdca:c7,rdldhar:u7,rdquo:f7,rdquor:h7,rdsh:d7,real:p7,realine:g7,realpart:v7,reals:m7,Re:y7,rect:b7,reg:w7,REG:x7,ReverseElement:_7,ReverseEquilibrium:S7,ReverseUpEquilibrium:k7,rfisht:C7,rfloor:T7,rfr:E7,Rfr:L7,rHar:A7,rhard:M7,rharu:N7,rharul:P7,Rho:O7,rho:D7,rhov:$7,RightAngleBracket:R7,RightArrowBar:z7,rightarrow:F7,RightArrow:I7,Rightarrow:q7,RightArrowLeftArrow:H7,rightarrowtail:B7,RightCeiling:W7,RightDoubleBracket:U7,RightDownTeeVector:j7,RightDownVectorBar:G7,RightDownVector:V7,RightFloor:K7,rightharpoondown:X7,rightharpoonup:Y7,rightleftarrows:Z7,rightleftharpoons:J7,rightrightarrows:Q7,rightsquigarrow:tK,RightTeeArrow:eK,RightTee:nK,RightTeeVector:rK,rightthreetimes:iK,RightTriangleBar:oK,RightTriangle:sK,RightTriangleEqual:lK,RightUpDownVector:aK,RightUpTeeVector:cK,RightUpVectorBar:uK,RightUpVector:fK,RightVectorBar:hK,RightVector:dK,ring:pK,risingdotseq:gK,rlarr:vK,rlhar:mK,rlm:yK,rmoustache:bK,rmoust:wK,rnmid:xK,roang:_K,roarr:SK,robrk:kK,ropar:CK,ropf:TK,Ropf:EK,roplus:LK,rotimes:AK,RoundImplies:MK,rpar:NK,rpargt:PK,rppolint:OK,rrarr:DK,Rrightarrow:$K,rsaquo:RK,rscr:zK,Rscr:FK,rsh:IK,Rsh:qK,rsqb:HK,rsquo:BK,rsquor:WK,rthree:UK,rtimes:jK,rtri:GK,rtrie:VK,rtrif:KK,rtriltri:XK,RuleDelayed:YK,ruluhar:ZK,rx:JK,Sacute:QK,sacute:tX,sbquo:eX,scap:nX,Scaron:rX,scaron:iX,Sc:oX,sc:sX,sccue:lX,sce:aX,scE:cX,Scedil:uX,scedil:fX,Scirc:hX,scirc:dX,scnap:pX,scnE:gX,scnsim:vX,scpolint:mX,scsim:yX,Scy:bX,scy:wX,sdotb:xX,sdot:_X,sdote:SX,searhk:kX,searr:CX,seArr:TX,searrow:EX,sect:LX,semi:AX,seswar:MX,setminus:NX,setmn:PX,sext:OX,Sfr:DX,sfr:$X,sfrown:RX,sharp:zX,SHCHcy:FX,shchcy:IX,SHcy:qX,shcy:HX,ShortDownArrow:BX,ShortLeftArrow:WX,shortmid:UX,shortparallel:jX,ShortRightArrow:GX,ShortUpArrow:VX,shy:KX,Sigma:XX,sigma:YX,sigmaf:ZX,sigmav:JX,sim:QX,simdot:tY,sime:eY,simeq:nY,simg:rY,simgE:iY,siml:oY,simlE:sY,simne:lY,simplus:aY,simrarr:cY,slarr:uY,SmallCircle:fY,smallsetminus:hY,smashp:dY,smeparsl:pY,smid:gY,smile:vY,smt:mY,smte:yY,smtes:bY,SOFTcy:wY,softcy:xY,solbar:_Y,solb:SY,sol:kY,Sopf:CY,sopf:TY,spades:EY,spadesuit:LY,spar:AY,sqcap:MY,sqcaps:NY,sqcup:PY,sqcups:OY,Sqrt:DY,sqsub:$Y,sqsube:RY,sqsubset:zY,sqsubseteq:FY,sqsup:IY,sqsupe:qY,sqsupset:HY,sqsupseteq:BY,square:WY,Square:UY,SquareIntersection:jY,SquareSubset:GY,SquareSubsetEqual:VY,SquareSuperset:KY,SquareSupersetEqual:XY,SquareUnion:YY,squarf:ZY,squ:JY,squf:QY,srarr:tZ,Sscr:eZ,sscr:nZ,ssetmn:rZ,ssmile:iZ,sstarf:oZ,Star:sZ,star:lZ,starf:aZ,straightepsilon:cZ,straightphi:uZ,strns:fZ,sub:hZ,Sub:dZ,subdot:pZ,subE:gZ,sube:vZ,subedot:mZ,submult:yZ,subnE:bZ,subne:wZ,subplus:xZ,subrarr:_Z,subset:SZ,Subset:kZ,subseteq:CZ,subseteqq:TZ,SubsetEqual:EZ,subsetneq:LZ,subsetneqq:AZ,subsim:MZ,subsub:NZ,subsup:PZ,succapprox:OZ,succ:DZ,succcurlyeq:$Z,Succeeds:RZ,SucceedsEqual:zZ,SucceedsSlantEqual:FZ,SucceedsTilde:IZ,succeq:qZ,succnapprox:HZ,succneqq:BZ,succnsim:WZ,succsim:UZ,SuchThat:jZ,sum:GZ,Sum:VZ,sung:KZ,sup1:XZ,sup2:YZ,sup3:ZZ,sup:JZ,Sup:QZ,supdot:tJ,supdsub:eJ,supE:nJ,supe:rJ,supedot:iJ,Superset:oJ,SupersetEqual:sJ,suphsol:lJ,suphsub:aJ,suplarr:cJ,supmult:uJ,supnE:fJ,supne:hJ,supplus:dJ,supset:pJ,Supset:gJ,supseteq:vJ,supseteqq:mJ,supsetneq:yJ,supsetneqq:bJ,supsim:wJ,supsub:xJ,supsup:_J,swarhk:SJ,swarr:kJ,swArr:CJ,swarrow:TJ,swnwar:EJ,szlig:LJ,Tab:AJ,target:MJ,Tau:NJ,tau:PJ,tbrk:OJ,Tcaron:DJ,tcaron:$J,Tcedil:RJ,tcedil:zJ,Tcy:FJ,tcy:IJ,tdot:qJ,telrec:HJ,Tfr:BJ,tfr:WJ,there4:UJ,therefore:jJ,Therefore:GJ,Theta:VJ,theta:KJ,thetasym:XJ,thetav:YJ,thickapprox:ZJ,thicksim:JJ,ThickSpace:QJ,ThinSpace:tQ,thinsp:eQ,thkap:nQ,thksim:rQ,THORN:iQ,thorn:oQ,tilde:sQ,Tilde:lQ,TildeEqual:aQ,TildeFullEqual:cQ,TildeTilde:uQ,timesbar:fQ,timesb:hQ,times:dQ,timesd:pQ,tint:gQ,toea:vQ,topbot:mQ,topcir:yQ,top:bQ,Topf:wQ,topf:xQ,topfork:_Q,tosa:SQ,tprime:kQ,trade:CQ,TRADE:TQ,triangle:EQ,triangledown:LQ,triangleleft:AQ,trianglelefteq:MQ,triangleq:NQ,triangleright:PQ,trianglerighteq:OQ,tridot:DQ,trie:$Q,triminus:RQ,TripleDot:zQ,triplus:FQ,trisb:IQ,tritime:qQ,trpezium:HQ,Tscr:BQ,tscr:WQ,TScy:UQ,tscy:jQ,TSHcy:GQ,tshcy:VQ,Tstrok:KQ,tstrok:XQ,twixt:YQ,twoheadleftarrow:ZQ,twoheadrightarrow:JQ,Uacute:QQ,uacute:ttt,uarr:ett,Uarr:ntt,uArr:rtt,Uarrocir:itt,Ubrcy:ott,ubrcy:stt,Ubreve:ltt,ubreve:att,Ucirc:ctt,ucirc:utt,Ucy:ftt,ucy:htt,udarr:dtt,Udblac:ptt,udblac:gtt,udhar:vtt,ufisht:mtt,Ufr:ytt,ufr:btt,Ugrave:wtt,ugrave:xtt,uHar:_tt,uharl:Stt,uharr:ktt,uhblk:Ctt,ulcorn:Ttt,ulcorner:Ett,ulcrop:Ltt,ultri:Att,Umacr:Mtt,umacr:Ntt,uml:Ptt,UnderBar:Ott,UnderBrace:Dtt,UnderBracket:$tt,UnderParenthesis:Rtt,Union:ztt,UnionPlus:Ftt,Uogon:Itt,uogon:qtt,Uopf:Htt,uopf:Btt,UpArrowBar:Wtt,uparrow:Utt,UpArrow:jtt,Uparrow:Gtt,UpArrowDownArrow:Vtt,updownarrow:Ktt,UpDownArrow:Xtt,Updownarrow:Ytt,UpEquilibrium:Ztt,upharpoonleft:Jtt,upharpoonright:Qtt,uplus:tet,UpperLeftArrow:eet,UpperRightArrow:net,upsi:ret,Upsi:iet,upsih:oet,Upsilon:set,upsilon:aet,UpTeeArrow:cet,UpTee:uet,upuparrows:fet,urcorn:het,urcorner:det,urcrop:pet,Uring:get,uring:vet,urtri:met,Uscr:yet,uscr:bet,utdot:wet,Utilde:xet,utilde:_et,utri:ket,utrif:Cet,uuarr:Tet,Uuml:Eet,uuml:Let,uwangle:Aet,vangrt:Met,varepsilon:Net,varkappa:Pet,varnothing:Oet,varphi:Det,varpi:$et,varpropto:Ret,varr:zet,vArr:Fet,varrho:Iet,varsigma:qet,varsubsetneq:Het,varsubsetneqq:Bet,varsupsetneq:Wet,varsupsetneqq:Uet,vartheta:jet,vartriangleleft:Get,vartriangleright:Vet,vBar:Ket,Vbar:Xet,vBarv:Yet,Vcy:Zet,vcy:Jet,vdash:Qet,vDash:tnt,Vdash:ent,VDash:nnt,Vdashl:rnt,veebar:int,vee:ont,Vee:snt,veeeq:lnt,vellip:ant,verbar:cnt,Verbar:unt,vert:fnt,Vert:hnt,VerticalBar:dnt,VerticalLine:pnt,VerticalSeparator:gnt,VerticalTilde:vnt,VeryThinSpace:mnt,Vfr:ynt,vfr:bnt,vltri:wnt,vnsub:xnt,vnsup:_nt,Vopf:Snt,vopf:knt,vprop:Cnt,vrtri:Tnt,Vscr:Ent,vscr:Lnt,vsubnE:Ant,vsubne:Mnt,vsupnE:Nnt,vsupne:Pnt,Vvdash:Ont,vzigzag:Dnt,Wcirc:$nt,wcirc:Rnt,wedbar:znt,wedge:Fnt,Wedge:Int,wedgeq:qnt,weierp:Hnt,Wfr:Bnt,wfr:Wnt,Wopf:Unt,wopf:jnt,wp:Gnt,wr:Vnt,wreath:Knt,Wscr:Xnt,wscr:Ynt,xcap:Znt,xcirc:Jnt,xcup:Qnt,xdtri:trt,Xfr:ert,xfr:nrt,xharr:rrt,xhArr:irt,Xi:ort,xi:srt,xlarr:lrt,xlArr:art,xmap:crt,xnis:urt,xodot:frt,Xopf:hrt,xopf:drt,xoplus:prt,xotime:grt,xrarr:vrt,xrArr:mrt,Xscr:yrt,xscr:brt,xsqcup:wrt,xuplus:xrt,xutri:_rt,xvee:Srt,xwedge:krt,Yacute:Crt,yacute:Trt,YAcy:Ert,yacy:Lrt,Ycirc:Art,ycirc:Mrt,Ycy:Nrt,ycy:Prt,yen:Ort,Yfr:Drt,yfr:$rt,YIcy:Rrt,yicy:zrt,Yopf:Frt,yopf:Irt,Yscr:qrt,yscr:Hrt,YUcy:Brt,yucy:Wrt,yuml:Urt,Yuml:jrt,Zacute:Grt,zacute:Vrt,Zcaron:Krt,zcaron:Xrt,Zcy:Yrt,zcy:Zrt,Zdot:Jrt,zdot:Qrt,zeetrf:tit,ZeroWidthSpace:eit,Zeta:nit,zeta:rit,zfr:iit,Zfr:oit,ZHcy:sit,zhcy:lit,zigrarr:ait,zopf:cit,Zopf:uit,Zscr:fit,zscr:hit,zwj:dit,zwnj:pit},git="Á",vit="á",mit="Â",yit="â",bit="´",wit="Æ",xit="æ",_it="À",Sit="à",kit="&",Cit="&",Tit="Å",Eit="å",Lit="Ã",Ait="ã",Mit="Ä",Nit="ä",Pit="¦",Oit="Ç",Dit="ç",$it="¸",Rit="¢",zit="©",Fit="©",Iit="¤",qit="°",Hit="÷",Bit="É",Wit="é",Uit="Ê",jit="ê",Git="È",Vit="è",Kit="Ð",Xit="ð",Yit="Ë",Zit="ë",Jit="½",Qit="¼",tot="¾",eot=">",not=">",rot="Í",iot="í",oot="Î",sot="î",lot="¡",aot="Ì",cot="ì",uot="¿",fot="Ï",hot="ï",dot="«",pot="<",got="<",vot="¯",mot="µ",yot="·",bot=" ",wot="¬",xot="Ñ",_ot="ñ",Sot="Ó",kot="ó",Cot="Ô",Tot="ô",Eot="Ò",Lot="ò",Aot="ª",Mot="º",Not="Ø",Pot="ø",Oot="Õ",Dot="õ",$ot="Ö",Rot="ö",zot="¶",Fot="±",Iot="£",qot='"',Hot='"',Bot="»",Wot="®",Uot="®",jot="§",Got="",Vot="¹",Kot="²",Xot="³",Yot="ß",Zot="Þ",Jot="þ",Qot="×",tst="Ú",est="ú",nst="Û",rst="û",ist="Ù",ost="ù",sst="¨",lst="Ü",ast="ü",cst="Ý",ust="ý",fst="¥",hst="ÿ",dst={Aacute:git,aacute:vit,Acirc:mit,acirc:yit,acute:bit,AElig:wit,aelig:xit,Agrave:_it,agrave:Sit,amp:kit,AMP:Cit,Aring:Tit,aring:Eit,Atilde:Lit,atilde:Ait,Auml:Mit,auml:Nit,brvbar:Pit,Ccedil:Oit,ccedil:Dit,cedil:$it,cent:Rit,copy:zit,COPY:Fit,curren:Iit,deg:qit,divide:Hit,Eacute:Bit,eacute:Wit,Ecirc:Uit,ecirc:jit,Egrave:Git,egrave:Vit,ETH:Kit,eth:Xit,Euml:Yit,euml:Zit,frac12:Jit,frac14:Qit,frac34:tot,gt:eot,GT:not,Iacute:rot,iacute:iot,Icirc:oot,icirc:sot,iexcl:lot,Igrave:aot,igrave:cot,iquest:uot,Iuml:fot,iuml:hot,laquo:dot,lt:pot,LT:got,macr:vot,micro:mot,middot:yot,nbsp:bot,not:wot,Ntilde:xot,ntilde:_ot,Oacute:Sot,oacute:kot,Ocirc:Cot,ocirc:Tot,Ograve:Eot,ograve:Lot,ordf:Aot,ordm:Mot,Oslash:Not,oslash:Pot,Otilde:Oot,otilde:Dot,Ouml:$ot,ouml:Rot,para:zot,plusmn:Fot,pound:Iot,quot:qot,QUOT:Hot,raquo:Bot,reg:Wot,REG:Uot,sect:jot,shy:Got,sup1:Vot,sup2:Kot,sup3:Xot,szlig:Yot,THORN:Zot,thorn:Jot,times:Qot,Uacute:tst,uacute:est,Ucirc:nst,ucirc:rst,Ugrave:ist,ugrave:ost,uml:sst,Uuml:lst,uuml:ast,Yacute:cst,yacute:ust,yen:fst,yuml:hst},pst="&",gst="'",vst=">",mst="<",yst='"',wy={amp:pst,apos:gst,gt:vst,lt:mst,quot:yst};var qh={};const bst={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var wst=no&&no.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qh,"__esModule",{value:!0});var kv=wst(bst),xst=String.fromCodePoint||function(t){var n="";return t>65535&&(t-=65536,n+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),n+=String.fromCharCode(t),n};function _st(t){return t>=55296&&t<=57343||t>1114111?"�":(t in kv.default&&(t=kv.default[t]),xst(t))}qh.default=_st;var zc=no&&no.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qr,"__esModule",{value:!0});qr.decodeHTML=qr.decodeHTMLStrict=qr.decodeXML=void 0;var Hf=zc(by),Sst=zc(dst),kst=zc(wy),Cv=zc(qh),Cst=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;qr.decodeXML=xy(kst.default);qr.decodeHTMLStrict=xy(Hf.default);function xy(t){var n=_y(t);return function(r){return String(r).replace(Cst,n)}}var Tv=function(t,n){return t<n?1:-1};qr.decodeHTML=function(){for(var t=Object.keys(Sst.default).sort(Tv),n=Object.keys(Hf.default).sort(Tv),r=0,o=0;r<n.length;r++)t[o]===n[r]?(n[r]+=";?",o++):n[r]+=";";var a=new RegExp("&(?:"+n.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),u=_y(Hf.default);function f(h){return h.substr(-1)!==";"&&(h+=";"),u(h)}return function(h){return String(h).replace(a,f)}}();function _y(t){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Cv.default(parseInt(r.substr(3),16)):Cv.default(parseInt(r.substr(2),10))}return t[r.slice(1,-1)]||r}}var $n={},Sy=no&&no.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($n,"__esModule",{value:!0});$n.escapeUTF8=$n.escape=$n.encodeNonAsciiHTML=$n.encodeHTML=$n.encodeXML=void 0;var Tst=Sy(wy),ky=Ty(Tst.default),Cy=Ey(ky);$n.encodeXML=My(ky);var Est=Sy(by),Hh=Ty(Est.default),Lst=Ey(Hh);$n.encodeHTML=Mst(Hh,Lst);$n.encodeNonAsciiHTML=My(Hh);function Ty(t){return Object.keys(t).sort().reduce(function(n,r){return n[t[r]]="&"+r+";",n},{})}function Ey(t){for(var n=[],r=[],o=0,a=Object.keys(t);o<a.length;o++){var u=a[o];u.length===1?n.push("\\"+u):r.push(u)}n.sort();for(var f=0;f<n.length-1;f++){for(var h=f;h<n.length-1&&n[h].charCodeAt(1)+1===n[h+1].charCodeAt(1);)h+=1;var p=1+h-f;p<3||n.splice(f,p,n[f]+"-"+n[h])}return r.unshift("["+n.join("")+"]"),new RegExp(r.join("|"),"g")}var Ly=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,Ast=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function Fc(t){return"&#x"+(t.length>1?Ast(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function Mst(t,n){return function(r){return r.replace(n,function(o){return t[o]}).replace(Ly,Fc)}}var Ay=new RegExp(Cy.source+"|"+Ly.source,"g");function Nst(t){return t.replace(Ay,Fc)}$n.escape=Nst;function Pst(t){return t.replace(Cy,Fc)}$n.escapeUTF8=Pst;function My(t){return function(n){return n.replace(Ay,function(r){return t[r]||Fc(r)})}}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var n=qr,r=$n;function o(p,g){return(!g||g<=0?n.decodeXML:n.decodeHTML)(p)}t.decode=o;function a(p,g){return(!g||g<=0?n.decodeXML:n.decodeHTMLStrict)(p)}t.decodeStrict=a;function u(p,g){return(!g||g<=0?r.encodeXML:r.encodeHTML)(p)}t.encode=u;var f=$n;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var h=qr;Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(yy);function Ost(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Ev(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Dst(t,n,r){return n&&Ev(t.prototype,n),r&&Ev(t,r),t}function Ny(t,n){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=$st(t))||n&&t&&typeof t.length=="number"){r&&(t=r);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(g){throw g},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
7
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,f=!1,h;return{s:function(){r=r.call(t)},n:function(){var g=r.next();return u=g.done,g},e:function(g){f=!0,h=g},f:function(){try{!u&&r.return!=null&&r.return()}finally{if(f)throw h}}}}function $st(t,n){if(t){if(typeof t=="string")return Lv(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lv(t,n)}}function Lv(t,n){(n==null||n>t.length)&&(n=t.length);for(var r=0,o=new Array(n);r<n;r++)o[r]=t[r];return o}var Rst=yy,Av={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:zst()};function zst(){var t={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return Ca(0,5).forEach(function(n){Ca(0,5).forEach(function(r){Ca(0,5).forEach(function(o){return Fst(n,r,o,t)})})}),Ca(0,23).forEach(function(n){var r=n+232,o=Py(n*10+8);t[r]="#"+o+o+o}),t}function Fst(t,n,r,o){var a=16+t*36+n*6+r,u=t>0?t*40+55:0,f=n>0?n*40+55:0,h=r>0?r*40+55:0;o[a]=Ist([u,f,h])}function Py(t){for(var n=t.toString(16);n.length<2;)n="0"+n;return n}function Ist(t){var n=[],r=Ny(t),o;try{for(r.s();!(o=r.n()).done;){var a=o.value;n.push(Py(a))}}catch(u){r.e(u)}finally{r.f()}return"#"+n.join("")}function Mv(t,n,r,o){var a;return n==="text"?a=Wst(r,o):n==="display"?a=Hst(t,r,o):n==="xterm256Foreground"?a=Fa(t,o.colors[r]):n==="xterm256Background"?a=Ia(t,o.colors[r]):n==="rgb"&&(a=qst(t,r)),a}function qst(t,n){n=n.substring(2).slice(0,-1);var r=+n.substr(0,2),o=n.substring(5).split(";"),a=o.map(function(u){return("0"+Number(u).toString(16)).substr(-2)}).join("");return za(t,(r===38?"color:#":"background-color:#")+a)}function Hst(t,n,r){n=parseInt(n,10);var o={"-1":function(){return"<br/>"},0:function(){return t.length&&Oy(t)},1:function(){return yi(t,"b")},3:function(){return yi(t,"i")},4:function(){return yi(t,"u")},8:function(){return za(t,"display:none")},9:function(){return yi(t,"strike")},22:function(){return za(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Pv(t,"i")},24:function(){return Pv(t,"u")},39:function(){return Fa(t,r.fg)},49:function(){return Ia(t,r.bg)},53:function(){return za(t,"text-decoration:overline")}},a;return o[n]?a=o[n]():4<n&&n<7?a=yi(t,"blink"):29<n&&n<38?a=Fa(t,r.colors[n-30]):39<n&&n<48?a=Ia(t,r.colors[n-40]):89<n&&n<98?a=Fa(t,r.colors[8+(n-90)]):99<n&&n<108&&(a=Ia(t,r.colors[8+(n-100)])),a}function Oy(t){var n=t.slice(0);return t.length=0,n.reverse().map(function(r){return"</"+r+">"}).join("")}function Ca(t,n){for(var r=[],o=t;o<=n;o++)r.push(o);return r}function Bst(t){return function(n){return(t===null||n.category!==t)&&t!=="all"}}function Nv(t){t=parseInt(t,10);var n=null;return t===0?n="all":t===1?n="bold":2<t&&t<5?n="underline":4<t&&t<7?n="blink":t===8?n="hide":t===9?n="strike":29<t&&t<38||t===39||89<t&&t<98?n="foreground-color":(39<t&&t<48||t===49||99<t&&t<108)&&(n="background-color"),n}function Wst(t,n){return n.escapeXML?Rst.encodeXML(t):t}function yi(t,n,r){return r||(r=""),t.push(n),"<".concat(n).concat(r?' style="'.concat(r,'"'):"",">")}function za(t,n){return yi(t,"span",n)}function Fa(t,n){return yi(t,"span","color:"+n)}function Ia(t,n){return yi(t,"span","background-color:"+n)}function Pv(t,n){var r;if(t.slice(-1)[0]===n&&(r=t.pop()),r)return"</"+n+">"}function Ust(t,n,r){var o=!1,a=3;function u(){return""}function f(B,K){return r("xterm256Foreground",K),""}function h(B,K){return r("xterm256Background",K),""}function p(B){return n.newline?r("display",-1):r("text",B),""}function g(B,K){o=!0,K.trim().length===0&&(K="0"),K=K.trimRight(";").split(";");var ht=Ny(K),Y;try{for(ht.s();!(Y=ht.n()).done;){var et=Y.value;r("display",et)}}catch(st){ht.e(st)}finally{ht.f()}return""}function v(B){return r("text",B),""}function b(B){return r("rgb",B),""}var x=[{pattern:/^\x08+/,sub:u},{pattern:/^\x1b\[[012]?K/,sub:u},{pattern:/^\x1b\[\(B/,sub:u},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:b},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{pattern:/^\x1b\[48;5;(\d+)m/,sub:h},{pattern:/^\n/,sub:p},{pattern:/^\r+\n/,sub:p},{pattern:/^\r/,sub:p},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:g},{pattern:/^\x1b\[\d?J/,sub:u},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:u},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:u},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function S(B,K){K>a&&o||(o=!1,t=t.replace(B.pattern,B.sub))}var P=[],A=t,L=A.length;t:for(;L>0;){for(var T=0,M=0,R=x.length;M<R;T=++M){var E=x[T];if(S(E,T),t.length!==L){L=t.length;continue t}}if(t.length===L)break;P.push(0),L=t.length}return P}function jst(t,n,r){return n!=="text"&&(t=t.filter(Bst(Nv(r))),t.push({token:n,data:r,category:Nv(r)})),t}var Gst=function(){function t(n){Ost(this,t),n=n||{},n.colors&&(n.colors=Object.assign({},Av.colors,n.colors)),this.options=Object.assign({},Av,n),this.stack=[],this.stickyStack=[]}return Dst(t,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var a=this.stack,u=this.options,f=[];return this.stickyStack.forEach(function(h){var p=Mv(a,h.token,h.data,u);p&&f.push(p)}),Ust(r.join(""),u,function(h,p){var g=Mv(a,h,p,u);g&&f.push(g),u.stream&&(o.stickyStack=jst(o.stickyStack,h,p))}),a.length&&f.push(Oy(a)),f.join("")}}]),t}(),Vst=Gst;const Kst=J0(Vst);function Xst(t,n){return n&&t.endsWith(n)}async function Dy(t,n,r){const o=encodeURI(`${t}:${n}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Bh(t){return new Kst({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}const Ol=bT(),Yst=oT(Ol),Zst={class:"scrolls scrolls-rounded task-error"},Jst=["onClickPassive"],Qst=["innerHTML"],tlt=re({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(t){const n=t;function r(f){return f.startsWith(n.root)?f.slice(n.root.length):f}const o=xt(()=>Bh(Ol.value)),a=xt(()=>{var f;return!!((f=n.error)!=null&&f.diff)}),u=xt(()=>n.error.diff?o.value.toHtml(n.error.diff):void 0);return(f,h)=>{const p=lo("tooltip");return ut(),At("div",Zst,[ct("pre",null,[ct("b",null,ne(f.error.name||f.error.nameStr),1),fn(": "+ne(f.error.message),1)]),(ut(!0),At(ue,null,nr(f.error.stacks,(g,v)=>(ut(),At("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ct("pre",null," - "+ne(r(g.file))+":"+ne(g.line)+":"+ne(g.column),1),U(Xst)(g.file,f.filename)?tn((ut(),At("div",{key:0,class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:b=>U(Dy)(g.file,g.line,g.column)},null,40,Jst)),[[p,"Open in Editor",void 0,{bottom:!0}]]):ee("",!0)]))),128)),U(a)?(ut(),At("pre",{key:0,"data-testid":"diff",innerHTML:U(u)},null,8,Qst)):ee("",!0)])}}}),elt=ao(tlt,[["__scopeId","data-v-93ed29fc"]]);function qa(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const nlt={"h-full":"",class:"scrolls"},rlt={key:0,class:"scrolls scrolls-rounded task-error"},ilt=["innerHTML"],olt={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},slt=re({__name:"ViewReport",props:{file:{}},setup(t){const n=t;function r(f,h){var p;return((p=f.result)==null?void 0:p.state)!=="fail"?[]:f.type==="test"||f.type==="custom"?[{...f,level:h}]:[{...f,level:h},...f.tasks.flatMap(g=>r(g,h+1))]}function o(f,h){var v,b,x;let p="";(v=h.message)!=null&&v.includes("\x1B")&&(p=`<b>${h.nameStr||h.name}</b>: ${f.toHtml(qa(h.message))}`);const g=(b=h.stackStr)==null?void 0:b.includes("\x1B");return(g||(x=h.stack)!=null&&x.includes("\x1B"))&&(p.length>0?p+=f.toHtml(qa(g?h.stackStr:h.stack)):p=`<b>${h.nameStr||h.name}</b>: ${h.message}${f.toHtml(qa(g?h.stackStr:h.stack))}`),p.length>0?p:null}function a(f,h){const p=Bh(f);return h.map(g=>{var x;const v=g.result;if(!v)return g;const b=(x=v.errors)==null?void 0:x.map(S=>o(p,S)).filter(S=>S!=null).join("<br><br>");return b!=null&&b.length&&(v.htmlError=b),g})}const u=xt(()=>{var v,b;const f=n.file,h=((v=f==null?void 0:f.tasks)==null?void 0:v.flatMap(x=>r(x,0)))??[],p=f==null?void 0:f.result;if((b=p==null?void 0:p.errors)==null?void 0:b[0]){const x={id:f.id,name:f.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:p};h.unshift(x)}return h.length>0?a(Ol.value,h):h});return(f,h)=>(ut(),At("div",nlt,[U(u).length?(ut(!0),At(ue,{key:0},nr(U(u),p=>{var g,v,b;return ut(),At("div",{key:p.id},[ct("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:En({"margin-left":`${(g=p.result)!=null&&g.htmlError?.5:2*p.level+.5}rem`})},[fn(ne(p.name)+" ",1),(v=p.result)!=null&&v.htmlError?(ut(),At("div",rlt,[ct("pre",{innerHTML:p.result.htmlError},null,8,ilt)])):(b=p.result)!=null&&b.errors?(ut(!0),At(ue,{key:1},nr(p.result.errors,(x,S)=>{var P;return ut(),Qt(elt,{key:S,error:x,filename:(P=f.file)==null?void 0:P.name,root:U(Ih).root},null,8,["error","filename","root"])}),128)):ee("",!0)],4)])}),128)):(ut(),At("div",olt," All tests passed in this file "))]))}}),llt=ao(slt,[["__scopeId","data-v-5e7bb715"]]),alt={border:"b base","p-4":""},clt=["innerHTML"],ult=re({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(t){function n(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(ut(),At("div",alt,[ct("div",{"text-xs":"","mb-1":"",class:ve(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},ne(n(r.time))+" | "+ne(r.taskName)+" | "+ne(r.type),3),ct("pre",{"data-type":"html",innerHTML:r.content},null,8,clt)]))}}),sc=xt(()=>gn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),lc=xt(()=>gn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),Wh=xt(()=>gn.value.filter(t=>t.mode==="skip"||t.mode==="todo"));xt(()=>gn.value.filter(t=>!sc.value.includes(t)&&!lc.value.includes(t)&&!Wh.value.includes(t)));xt(()=>Wh.value.filter(t=>t.mode==="skip"));const Ov=xt(()=>gn.value.filter(Rc));xt(()=>Wh.value.filter(t=>t.mode==="todo"));const flt=xt(()=>wl.value==="idle"),Ic=xt(()=>Fy(gn.value)),$y=xt(()=>Ic.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),Ry=xt(()=>Ic.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),zy=xt(()=>Ic.value.filter(t=>t.mode==="skip"||t.mode==="todo")),hlt=xt(()=>zy.value.filter(t=>t.mode==="skip")),dlt=xt(()=>zy.value.filter(t=>t.mode==="todo"));xt(()=>$y.value.length+Ry.value.length);const plt=xt(()=>{const t=gn.value.reduce((n,r)=>{var o;return n+=Math.max(0,r.collectDuration||0),n+=Math.max(0,r.setupDuration||0),n+=Math.max(0,((o=r.result)==null?void 0:o.duration)||0),n},0);return t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`});function glt(t){return t=t||[],Array.isArray(t)?t:[t]}function Dv(t){return t.type==="test"||t.type==="custom"}function Fy(t){const n=[],r=glt(t);for(const o of r)if(Dv(o))n.push(o);else for(const a of o.tasks)Dv(a)?n.push(a):n.push(...Fy(a));return n}const vlt={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},mlt={key:1,p6:""},ylt=ct("pre",{inline:""},"console.log(foo)",-1),blt=re({__name:"ViewConsoleOutput",setup(t){const n=xt(()=>{const o=vy.value;if(o){const a=Bh(Ol.value);return o.map(({taskId:u,type:f,time:h,content:p})=>({taskId:u,type:f,time:h,content:a.toHtml(qa(p))}))}});function r(o){const a=o&&je.state.idMap.get(o);return(a?GC(a).slice(1).join(" > "):"-")||"-"}return(o,a)=>{var f;const u=ult;return(f=U(n))!=null&&f.length?(ut(),At("div",vlt,[(ut(!0),At(ue,null,nr(U(n),({taskId:h,type:p,time:g,content:v})=>(ut(),At("div",{key:h,"font-mono":""},[It(u,{"task-name":r(h),type:p,time:g,content:v},null,8,["task-name","type","time","content"])]))),128))])):(ut(),At("p",mlt,[fn(" Log something in your test and it would print here. (e.g. "),ylt,fn(") ")]))}}});var ef={exports:{}},$v;function gs(){return $v||($v=1,function(t,n){(function(r,o){t.exports=o()})(no,function(){var r=navigator.userAgent,o=navigator.platform,a=/gecko\/\d/i.test(r),u=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),h=/Edge\/(\d+)/.exec(r),p=u||f||h,g=p&&(u?document.documentMode||6:+(h||f)[1]),v=!h&&/WebKit\//.test(r),b=v&&/Qt\/\d+\.\d+/.test(r),x=!h&&/Chrome\/(\d+)/.exec(r),S=x&&+x[1],P=/Opera\//.test(r),A=/Apple Computer/.test(navigator.vendor),L=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),T=/PhantomJS/.test(r),M=A&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),R=/Android/.test(r),E=M||R||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),B=M||/Mac/.test(o),K=/\bCrOS\b/.test(r),ht=/win/i.test(o),Y=P&&r.match(/Version\/(\d*\.\d*)/);Y&&(Y=Number(Y[1])),Y&&Y>=15&&(P=!1,v=!0);var et=B&&(b||P&&(Y==null||Y<12.11)),st=a||p&&g>=9;function pt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var gt=function(e,i){var l=e.className,s=pt(i).exec(l);if(s){var c=l.slice(s.index+s[0].length);e.className=l.slice(0,s.index)+(c?s[1]+c:"")}};function V(e){for(var i=e.childNodes.length;i>0;--i)e.removeChild(e.firstChild);return e}function z(e,i){return V(e).appendChild(i)}function k(e,i,l,s){var c=document.createElement(e);if(l&&(c.className=l),s&&(c.style.cssText=s),typeof i=="string")c.appendChild(document.createTextNode(i));else if(i)for(var d=0;d<i.length;++d)c.appendChild(i[d]);return c}function I(e,i,l,s){var c=k(e,i,l,s);return c.setAttribute("role","presentation"),c}var H;document.createRange?H=function(e,i,l,s){var c=document.createRange();return c.setEnd(s||e,l),c.setStart(e,i),c}:H=function(e,i,l){var s=document.body.createTextRange();try{s.moveToElementText(e.parentNode)}catch{return s}return s.collapse(!0),s.moveEnd("character",l),s.moveStart("character",i),s};function J(e,i){if(i.nodeType==3&&(i=i.parentNode),e.contains)return e.contains(i);do if(i.nodeType==11&&(i=i.host),i==e)return!0;while(i=i.parentNode)}function yt(e){var i=e.ownerDocument||e,l;try{l=e.activeElement}catch{l=i.body||null}for(;l&&l.shadowRoot&&l.shadowRoot.activeElement;)l=l.shadowRoot.activeElement;return l}function Lt(e,i){var l=e.className;pt(i).test(l)||(e.className+=(l?" ":"")+i)}function qt(e,i){for(var l=e.split(" "),s=0;s<l.length;s++)l[s]&&!pt(l[s]).test(i)&&(i+=" "+l[s]);return i}var Ht=function(e){e.select()};M?Ht=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:p&&(Ht=function(e){try{e.select()}catch{}});function Zt(e){return e.display.wrapper.ownerDocument}function Xt(e){return jt(e.display.wrapper)}function jt(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function Ct(e){return Zt(e).defaultView}function j(e){var i=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,i)}}function nt(e,i,l){i||(i={});for(var s in e)e.hasOwnProperty(s)&&(l!==!1||!i.hasOwnProperty(s))&&(i[s]=e[s]);return i}function ot(e,i,l,s,c){i==null&&(i=e.search(/[^\s\u00a0]/),i==-1&&(i=e.length));for(var d=s||0,m=c||0;;){var y=e.indexOf(" ",d);if(y<0||y>=i)return m+(i-d);m+=y-d,m+=l-m%l,d=y+1}}var Mt=function(){this.id=null,this.f=null,this.time=0,this.handler=j(this.onTimeout,this)};Mt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Mt.prototype.set=function(e,i){this.f=i;var l=+new Date+e;(!this.id||l<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=l)};function Tt(e,i){for(var l=0;l<e.length;++l)if(e[l]==i)return l;return-1}var $=50,F={toString:function(){return"CodeMirror.Pass"}},G={scroll:!1},Q={origin:"*mouse"},it={origin:"+move"};function at(e,i,l){for(var s=0,c=0;;){var d=e.indexOf(" ",s);d==-1&&(d=e.length);var m=d-s;if(d==e.length||c+m>=i)return s+Math.min(m,i-c);if(c+=d-s,c+=l-c%l,s=d+1,c>=i)return s}}var St=[""];function mt(e){for(;St.length<=e;)St.push(lt(St)+" ");return St[e]}function lt(e){return e[e.length-1]}function ft(e,i){for(var l=[],s=0;s<e.length;s++)l[s]=i(e[s],s);return l}function $t(e,i,l){for(var s=0,c=l(i);s<e.length&&l(e[s])<=c;)s++;e.splice(s,0,i)}function Nt(){}function Dt(e,i){var l;return Object.create?l=Object.create(e):(Nt.prototype=e,l=new Nt),i&&nt(i,l),l}var Bt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Gt(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Bt.test(e))}function te(e,i){return i?i.source.indexOf("\\w")>-1&&Gt(e)?!0:i.test(e):Gt(e)}function ie(e){for(var i in e)if(e.hasOwnProperty(i)&&e[i])return!1;return!0}var fe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&fe.test(e)}function en(e,i,l){for(;(l<0?i>0:i<e.length)&&oe(e.charAt(i));)i+=l;return i}function Mn(e,i,l){for(var s=i>l?-1:1;;){if(i==l)return i;var c=(i+l)/2,d=s<0?Math.ceil(c):Math.floor(c);if(d==i)return e(d)?i:l;e(d)?l=d:i=d+s}}function mn(e,i,l,s){if(!e)return s(i,l,"ltr",0);for(var c=!1,d=0;d<e.length;++d){var m=e[d];(m.from<l&&m.to>i||i==l&&m.to==i)&&(s(Math.max(m.from,i),Math.min(m.to,l),m.level==1?"rtl":"ltr",d),c=!0)}c||s(i,l,"ltr")}var lr=null;function Le(e,i,l){var s;lr=null;for(var c=0;c<e.length;++c){var d=e[c];if(d.from<i&&d.to>i)return c;d.to==i&&(d.from!=d.to&&l=="before"?s=c:lr=c),d.from==i&&(d.from!=d.to&&l!="before"?s=c:lr=c)}return s??lr}var yn=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function l(_){return _<=247?e.charAt(_):1424<=_&&_<=1524?"R":1536<=_&&_<=1785?i.charAt(_-1536):1774<=_&&_<=2220?"r":8192<=_&&_<=8203?"w":_==8204?"b":"L"}var s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,d=/[LRr]/,m=/[Lb1n]/,y=/[1n]/;function w(_,N,D){this.level=_,this.from=N,this.to=D}return function(_,N){var D=N=="ltr"?"L":"R";if(_.length==0||N=="ltr"&&!s.test(_))return!1;for(var W=_.length,q=[],Z=0;Z<W;++Z)q.push(l(_.charCodeAt(Z)));for(var rt=0,vt=D;rt<W;++rt){var bt=q[rt];bt=="m"?q[rt]=vt:vt=bt}for(var kt=0,wt=D;kt<W;++kt){var Et=q[kt];Et=="1"&&wt=="r"?q[kt]="n":d.test(Et)&&(wt=Et,Et=="r"&&(q[kt]="R"))}for(var zt=1,Ot=q[0];zt<W-1;++zt){var Vt=q[zt];Vt=="+"&&Ot=="1"&&q[zt+1]=="1"?q[zt]="1":Vt==","&&Ot==q[zt+1]&&(Ot=="1"||Ot=="n")&&(q[zt]=Ot),Ot=Vt}for(var ge=0;ge<W;++ge){var He=q[ge];if(He==",")q[ge]="N";else if(He=="%"){var xe=void 0;for(xe=ge+1;xe<W&&q[xe]=="%";++xe);for(var xn=ge&&q[ge-1]=="!"||xe<W&&q[xe]=="1"?"1":"N",ln=ge;ln<xe;++ln)q[ln]=xn;ge=xe-1}}for(var Me=0,an=D;Me<W;++Me){var We=q[Me];an=="L"&&We=="1"?q[Me]="L":d.test(We)&&(an=We)}for(var Oe=0;Oe<W;++Oe)if(c.test(q[Oe])){var Ne=void 0;for(Ne=Oe+1;Ne<W&&c.test(q[Ne]);++Ne);for(var Te=(Oe?q[Oe-1]:D)=="L",cn=(Ne<W?q[Ne]:D)=="L",$o=Te==cn?Te?"L":"R":D,li=Oe;li<Ne;++li)q[li]=$o;Oe=Ne-1}for(var Xe=[],hr,Be=0;Be<W;)if(m.test(q[Be])){var Ru=Be;for(++Be;Be<W&&m.test(q[Be]);++Be);Xe.push(new w(0,Ru,Be))}else{var Nr=Be,Fi=Xe.length,Ii=N=="rtl"?1:0;for(++Be;Be<W&&q[Be]!="L";++Be);for(var Je=Nr;Je<Be;)if(y.test(q[Je])){Nr<Je&&(Xe.splice(Fi,0,new w(1,Nr,Je)),Fi+=Ii);var Ro=Je;for(++Je;Je<Be&&y.test(q[Je]);++Je);Xe.splice(Fi,0,new w(2,Ro,Je)),Fi+=Ii,Nr=Je}else++Je;Nr<Be&&Xe.splice(Fi,0,new w(1,Nr,Be))}return N=="ltr"&&(Xe[0].level==1&&(hr=_.match(/^\s+/))&&(Xe[0].from=hr[0].length,Xe.unshift(new w(0,0,hr[0].length))),lt(Xe).level==1&&(hr=_.match(/\s+$/))&&(lt(Xe).to-=hr[0].length,Xe.push(new w(0,W-hr[0].length,W)))),N=="rtl"?Xe.reverse():Xe}}();function Kt(e,i){var l=e.order;return l==null&&(l=e.order=yn(e.text,i)),l}var zl=[],Rt=function(e,i,l){if(e.addEventListener)e.addEventListener(i,l,!1);else if(e.attachEvent)e.attachEvent("on"+i,l);else{var s=e._handlers||(e._handlers={});s[i]=(s[i]||zl).concat(l)}};function kr(e,i){return e._handlers&&e._handlers[i]||zl}function Ge(e,i,l){if(e.removeEventListener)e.removeEventListener(i,l,!1);else if(e.detachEvent)e.detachEvent("on"+i,l);else{var s=e._handlers,c=s&&s[i];if(c){var d=Tt(c,l);d>-1&&(s[i]=c.slice(0,d).concat(c.slice(d+1)))}}}function Se(e,i){var l=kr(e,i);if(l.length)for(var s=Array.prototype.slice.call(arguments,2),c=0;c<l.length;++c)l[c].apply(null,s)}function ke(e,i,l){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Se(e,l||i.type,e,i),nn(i)||i.codemirrorIgnore}function zn(e){var i=e._handlers&&e._handlers.cursorActivity;if(i)for(var l=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),s=0;s<i.length;++s)Tt(l,i[s])==-1&&l.push(i[s])}function bn(e,i){return kr(e,i).length>0}function Wn(e){e.prototype.on=function(i,l){Rt(this,i,l)},e.prototype.off=function(i,l){Ge(this,i,l)}}function Ve(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function co(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function nn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Xr(e){Ve(e),co(e)}function ms(e){return e.target||e.srcElement}function Un(e){var i=e.which;return i==null&&(e.button&1?i=1:e.button&2?i=3:e.button&4&&(i=2)),B&&e.ctrlKey&&i==1&&(i=3),i}var Wc=function(){if(p&&g<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),uo;function Fl(e){if(uo==null){var i=k("span","");z(e,k("span",[i,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(uo=i.offsetWidth<=1&&i.offsetHeight>2&&!(p&&g<8))}var l=uo?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var ys;function Yr(e){if(ys!=null)return ys;var i=z(e,document.createTextNode("AخA")),l=H(i,0,1).getBoundingClientRect(),s=H(i,1,2).getBoundingClientRect();return V(e),!l||l.left==l.right?!1:ys=s.right-l.right<3}var Fn=`
|
|
8
|
-
|
|
9
|
-
b`.split(/\n/).length!=3?function(e){for(var i=0,l=[],s=e.length;i<=s;){var c=e.indexOf(`
|
|
10
|
-
`,i);c==-1&&(c=e.length);var d=e.slice(i,e.charAt(c-1)=="\r"?c-1:c),m=d.indexOf("\r");m!=-1?(l.push(d.slice(0,m)),i+=m+1):(l.push(d),i=c+1)}return l}:function(e){return e.split(/\r\n?|\n/)},Zr=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var i;try{i=e.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=e?!1:i.compareEndPoints("StartToEnd",i)!=0},Il=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),jn=null;function Uc(e){if(jn!=null)return jn;var i=z(e,k("span","x")),l=i.getBoundingClientRect(),s=H(i,0,1).getBoundingClientRect();return jn=Math.abs(l.left-s.left)>1}var fo={},Gn={};function Vn(e,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),fo[e]=i}function Ai(e,i){Gn[e]=i}function ho(e){if(typeof e=="string"&&Gn.hasOwnProperty(e))e=Gn[e];else if(e&&typeof e.name=="string"&&Gn.hasOwnProperty(e.name)){var i=Gn[e.name];typeof i=="string"&&(i={name:i}),e=Dt(i,e),e.name=i.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ho("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ho("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function po(e,i){i=ho(i);var l=fo[i.name];if(!l)return po(e,"text/plain");var s=l(e,i);if(Jr.hasOwnProperty(i.name)){var c=Jr[i.name];for(var d in c)c.hasOwnProperty(d)&&(s.hasOwnProperty(d)&&(s["_"+d]=s[d]),s[d]=c[d])}if(s.name=i.name,i.helperType&&(s.helperType=i.helperType),i.modeProps)for(var m in i.modeProps)s[m]=i.modeProps[m];return s}var Jr={};function go(e,i){var l=Jr.hasOwnProperty(e)?Jr[e]:Jr[e]={};nt(i,l)}function ar(e,i){if(i===!0)return i;if(e.copyState)return e.copyState(i);var l={};for(var s in i){var c=i[s];c instanceof Array&&(c=c.concat([])),l[s]=c}return l}function bs(e,i){for(var l;e.innerMode&&(l=e.innerMode(i),!(!l||l.mode==e));)i=l.state,e=l.mode;return l||{mode:e,state:i}}function vo(e,i,l){return e.startState?e.startState(i,l):!0}var Ce=function(e,i,l){this.pos=this.start=0,this.string=e,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=l};Ce.prototype.eol=function(){return this.pos>=this.string.length},Ce.prototype.sol=function(){return this.pos==this.lineStart},Ce.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ce.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ce.prototype.eat=function(e){var i=this.string.charAt(this.pos),l;if(typeof e=="string"?l=i==e:l=i&&(e.test?e.test(i):e(i)),l)return++this.pos,i},Ce.prototype.eatWhile=function(e){for(var i=this.pos;this.eat(e););return this.pos>i},Ce.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ce.prototype.skipToEnd=function(){this.pos=this.string.length},Ce.prototype.skipTo=function(e){var i=this.string.indexOf(e,this.pos);if(i>-1)return this.pos=i,!0},Ce.prototype.backUp=function(e){this.pos-=e},Ce.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ot(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ot(this.string,this.lineStart,this.tabSize):0)},Ce.prototype.indentation=function(){return ot(this.string,null,this.tabSize)-(this.lineStart?ot(this.string,this.lineStart,this.tabSize):0)},Ce.prototype.match=function(e,i,l){if(typeof e=="string"){var s=function(m){return l?m.toLowerCase():m},c=this.string.substr(this.pos,e.length);if(s(c)==s(e))return i!==!1&&(this.pos+=e.length),!0}else{var d=this.string.slice(this.pos).match(e);return d&&d.index>0?null:(d&&i!==!1&&(this.pos+=d[0].length),d)}},Ce.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ce.prototype.hideFirstChars=function(e,i){this.lineStart+=e;try{return i()}finally{this.lineStart-=e}},Ce.prototype.lookAhead=function(e){var i=this.lineOracle;return i&&i.lookAhead(e)},Ce.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Pt(e,i){if(i-=e.first,i<0||i>=e.size)throw new Error("There is no line "+(i+e.first)+" in the document.");for(var l=e;!l.lines;)for(var s=0;;++s){var c=l.children[s],d=c.chunkSize();if(i<d){l=c;break}i-=d}return l.lines[i]}function Cr(e,i,l){var s=[],c=i.line;return e.iter(i.line,l.line+1,function(d){var m=d.text;c==l.line&&(m=m.slice(0,l.ch)),c==i.line&&(m=m.slice(i.ch)),s.push(m),++c}),s}function ws(e,i,l){var s=[];return e.iter(i,l,function(c){s.push(c.text)}),s}function Nn(e,i){var l=i-e.height;if(l)for(var s=e;s;s=s.parent)s.height+=l}function C(e){if(e.parent==null)return null;for(var i=e.parent,l=Tt(i.lines,e),s=i.parent;s;i=s,s=s.parent)for(var c=0;s.children[c]!=i;++c)l+=s.children[c].chunkSize();return l+i.first}function O(e,i){var l=e.first;t:do{for(var s=0;s<e.children.length;++s){var c=e.children[s],d=c.height;if(i<d){e=c;continue t}i-=d,l+=c.chunkSize()}return l}while(!e.lines);for(var m=0;m<e.lines.length;++m){var y=e.lines[m],w=y.height;if(i<w)break;i-=w}return l+m}function tt(e,i){return i>=e.first&&i<e.first+e.size}function dt(e,i){return String(e.lineNumberFormatter(i+e.firstLineNumber))}function X(e,i,l){if(l===void 0&&(l=null),!(this instanceof X))return new X(e,i,l);this.line=e,this.ch=i,this.sticky=l}function _t(e,i){return e.line-i.line||e.ch-i.ch}function ae(e,i){return e.sticky==i.sticky&&_t(e,i)==0}function ze(e){return X(e.line,e.ch)}function rn(e,i){return _t(e,i)<0?i:e}function mo(e,i){return _t(e,i)<0?e:i}function rd(e,i){return Math.max(e.first,Math.min(i,e.first+e.size-1))}function Wt(e,i){if(i.line<e.first)return X(e.first,0);var l=e.first+e.size-1;return i.line>l?X(l,Pt(e,l).text.length):Lb(i,Pt(e,i.line).text.length)}function Lb(e,i){var l=e.ch;return l==null||l>i?X(e.line,i):l<0?X(e.line,0):e}function id(e,i){for(var l=[],s=0;s<i.length;s++)l[s]=Wt(e,i[s]);return l}var ql=function(e,i){this.state=e,this.lookAhead=i},cr=function(e,i,l,s){this.state=i,this.doc=e,this.line=l,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};cr.prototype.lookAhead=function(e){var i=this.doc.getLine(this.line+e);return i!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),i},cr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},cr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},cr.fromSaved=function(e,i,l){return i instanceof ql?new cr(e,ar(e.mode,i.state),l,i.lookAhead):new cr(e,ar(e.mode,i),l)},cr.prototype.save=function(e){var i=e!==!1?ar(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ql(i,this.maxLookAhead):i};function od(e,i,l,s){var c=[e.state.modeGen],d={};fd(e,i.text,e.doc.mode,l,function(_,N){return c.push(_,N)},d,s);for(var m=l.state,y=function(_){l.baseTokens=c;var N=e.state.overlays[_],D=1,W=0;l.state=!0,fd(e,i.text,N.mode,l,function(q,Z){for(var rt=D;W<q;){var vt=c[D];vt>q&&c.splice(D,1,q,c[D+1],vt),D+=2,W=Math.min(q,vt)}if(Z)if(N.opaque)c.splice(rt,D-rt,q,"overlay "+Z),D=rt+2;else for(;rt<D;rt+=2){var bt=c[rt+1];c[rt+1]=(bt?bt+" ":"")+"overlay "+Z}},d),l.state=m,l.baseTokens=null,l.baseTokenPos=1},w=0;w<e.state.overlays.length;++w)y(w);return{styles:c,classes:d.bgClass||d.textClass?d:null}}function sd(e,i,l){if(!i.styles||i.styles[0]!=e.state.modeGen){var s=xs(e,C(i)),c=i.text.length>e.options.maxHighlightLength&&ar(e.doc.mode,s.state),d=od(e,i,s);c&&(s.state=c),i.stateAfter=s.save(!c),i.styles=d.styles,d.classes?i.styleClasses=d.classes:i.styleClasses&&(i.styleClasses=null),l===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return i.styles}function xs(e,i,l){var s=e.doc,c=e.display;if(!s.mode.startState)return new cr(s,!0,i);var d=Ab(e,i,l),m=d>s.first&&Pt(s,d-1).stateAfter,y=m?cr.fromSaved(s,m,d):new cr(s,vo(s.mode),d);return s.iter(d,i,function(w){jc(e,w.text,y);var _=y.line;w.stateAfter=_==i-1||_%5==0||_>=c.viewFrom&&_<c.viewTo?y.save():null,y.nextLine()}),l&&(s.modeFrontier=y.line),y}function jc(e,i,l,s){var c=e.doc.mode,d=new Ce(i,e.options.tabSize,l);for(d.start=d.pos=s||0,i==""&&ld(c,l.state);!d.eol();)Gc(c,d,l.state),d.start=d.pos}function ld(e,i){if(e.blankLine)return e.blankLine(i);if(e.innerMode){var l=bs(e,i);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function Gc(e,i,l,s){for(var c=0;c<10;c++){s&&(s[0]=bs(e,l).mode);var d=e.token(i,l);if(i.pos>i.start)return d}throw new Error("Mode "+e.name+" failed to advance stream.")}var ad=function(e,i,l){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=i||null,this.state=l};function cd(e,i,l,s){var c=e.doc,d=c.mode,m;i=Wt(c,i);var y=Pt(c,i.line),w=xs(e,i.line,l),_=new Ce(y.text,e.options.tabSize,w),N;for(s&&(N=[]);(s||_.pos<i.ch)&&!_.eol();)_.start=_.pos,m=Gc(d,_,w.state),s&&N.push(new ad(_,m,ar(c.mode,w.state)));return s?N:new ad(_,m,w.state)}function ud(e,i){if(e)for(;;){var l=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!l)break;e=e.slice(0,l.index)+e.slice(l.index+l[0].length);var s=l[1]?"bgClass":"textClass";i[s]==null?i[s]=l[2]:new RegExp("(?:^|\\s)"+l[2]+"(?:$|\\s)").test(i[s])||(i[s]+=" "+l[2])}return e}function fd(e,i,l,s,c,d,m){var y=l.flattenSpans;y==null&&(y=e.options.flattenSpans);var w=0,_=null,N=new Ce(i,e.options.tabSize,s),D,W=e.options.addModeClass&&[null];for(i==""&&ud(ld(l,s.state),d);!N.eol();){if(N.pos>e.options.maxHighlightLength?(y=!1,m&&jc(e,i,s,N.pos),N.pos=i.length,D=null):D=ud(Gc(l,N,s.state,W),d),W){var q=W[0].name;q&&(D="m-"+(D?q+" "+D:q))}if(!y||_!=D){for(;w<N.start;)w=Math.min(N.start,w+5e3),c(w,_);_=D}N.start=N.pos}for(;w<N.pos;){var Z=Math.min(N.pos,w+5e3);c(Z,_),w=Z}}function Ab(e,i,l){for(var s,c,d=e.doc,m=l?-1:i-(e.doc.mode.innerMode?1e3:100),y=i;y>m;--y){if(y<=d.first)return d.first;var w=Pt(d,y-1),_=w.stateAfter;if(_&&(!l||y+(_ instanceof ql?_.lookAhead:0)<=d.modeFrontier))return y;var N=ot(w.text,null,e.options.tabSize);(c==null||s>N)&&(c=y-1,s=N)}return c}function Mb(e,i){if(e.modeFrontier=Math.min(e.modeFrontier,i),!(e.highlightFrontier<i-10)){for(var l=e.first,s=i-1;s>l;s--){var c=Pt(e,s).stateAfter;if(c&&(!(c instanceof ql)||s+c.lookAhead<i)){l=s+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,l)}}var hd=!1,Tr=!1;function Nb(){hd=!0}function Pb(){Tr=!0}function Hl(e,i,l){this.marker=e,this.from=i,this.to=l}function _s(e,i){if(e)for(var l=0;l<e.length;++l){var s=e[l];if(s.marker==i)return s}}function Ob(e,i){for(var l,s=0;s<e.length;++s)e[s]!=i&&(l||(l=[])).push(e[s]);return l}function Db(e,i,l){var s=l&&window.WeakSet&&(l.markedSpans||(l.markedSpans=new WeakSet));s&&e.markedSpans&&s.has(e.markedSpans)?e.markedSpans.push(i):(e.markedSpans=e.markedSpans?e.markedSpans.concat([i]):[i],s&&s.add(e.markedSpans)),i.marker.attachLine(e)}function $b(e,i,l){var s;if(e)for(var c=0;c<e.length;++c){var d=e[c],m=d.marker,y=d.from==null||(m.inclusiveLeft?d.from<=i:d.from<i);if(y||d.from==i&&m.type=="bookmark"&&(!l||!d.marker.insertLeft)){var w=d.to==null||(m.inclusiveRight?d.to>=i:d.to>i);(s||(s=[])).push(new Hl(m,d.from,w?null:d.to))}}return s}function Rb(e,i,l){var s;if(e)for(var c=0;c<e.length;++c){var d=e[c],m=d.marker,y=d.to==null||(m.inclusiveRight?d.to>=i:d.to>i);if(y||d.from==i&&m.type=="bookmark"&&(!l||d.marker.insertLeft)){var w=d.from==null||(m.inclusiveLeft?d.from<=i:d.from<i);(s||(s=[])).push(new Hl(m,w?null:d.from-i,d.to==null?null:d.to-i))}}return s}function Vc(e,i){if(i.full)return null;var l=tt(e,i.from.line)&&Pt(e,i.from.line).markedSpans,s=tt(e,i.to.line)&&Pt(e,i.to.line).markedSpans;if(!l&&!s)return null;var c=i.from.ch,d=i.to.ch,m=_t(i.from,i.to)==0,y=$b(l,c,m),w=Rb(s,d,m),_=i.text.length==1,N=lt(i.text).length+(_?c:0);if(y)for(var D=0;D<y.length;++D){var W=y[D];if(W.to==null){var q=_s(w,W.marker);q?_&&(W.to=q.to==null?null:q.to+N):W.to=c}}if(w)for(var Z=0;Z<w.length;++Z){var rt=w[Z];if(rt.to!=null&&(rt.to+=N),rt.from==null){var vt=_s(y,rt.marker);vt||(rt.from=N,_&&(y||(y=[])).push(rt))}else rt.from+=N,_&&(y||(y=[])).push(rt)}y&&(y=dd(y)),w&&w!=y&&(w=dd(w));var bt=[y];if(!_){var kt=i.text.length-2,wt;if(kt>0&&y)for(var Et=0;Et<y.length;++Et)y[Et].to==null&&(wt||(wt=[])).push(new Hl(y[Et].marker,null,null));for(var zt=0;zt<kt;++zt)bt.push(wt);bt.push(w)}return bt}function dd(e){for(var i=0;i<e.length;++i){var l=e[i];l.from!=null&&l.from==l.to&&l.marker.clearWhenEmpty!==!1&&e.splice(i--,1)}return e.length?e:null}function zb(e,i,l){var s=null;if(e.iter(i.line,l.line+1,function(q){if(q.markedSpans)for(var Z=0;Z<q.markedSpans.length;++Z){var rt=q.markedSpans[Z].marker;rt.readOnly&&(!s||Tt(s,rt)==-1)&&(s||(s=[])).push(rt)}}),!s)return null;for(var c=[{from:i,to:l}],d=0;d<s.length;++d)for(var m=s[d],y=m.find(0),w=0;w<c.length;++w){var _=c[w];if(!(_t(_.to,y.from)<0||_t(_.from,y.to)>0)){var N=[w,1],D=_t(_.from,y.from),W=_t(_.to,y.to);(D<0||!m.inclusiveLeft&&!D)&&N.push({from:_.from,to:y.from}),(W>0||!m.inclusiveRight&&!W)&&N.push({from:y.to,to:_.to}),c.splice.apply(c,N),w+=N.length-3}}return c}function pd(e){var i=e.markedSpans;if(i){for(var l=0;l<i.length;++l)i[l].marker.detachLine(e);e.markedSpans=null}}function gd(e,i){if(i){for(var l=0;l<i.length;++l)i[l].marker.attachLine(e);e.markedSpans=i}}function Bl(e){return e.inclusiveLeft?-1:0}function Wl(e){return e.inclusiveRight?1:0}function Kc(e,i){var l=e.lines.length-i.lines.length;if(l!=0)return l;var s=e.find(),c=i.find(),d=_t(s.from,c.from)||Bl(e)-Bl(i);if(d)return-d;var m=_t(s.to,c.to)||Wl(e)-Wl(i);return m||i.id-e.id}function vd(e,i){var l=Tr&&e.markedSpans,s;if(l)for(var c=void 0,d=0;d<l.length;++d)c=l[d],c.marker.collapsed&&(i?c.from:c.to)==null&&(!s||Kc(s,c.marker)<0)&&(s=c.marker);return s}function md(e){return vd(e,!0)}function Ul(e){return vd(e,!1)}function Fb(e,i){var l=Tr&&e.markedSpans,s;if(l)for(var c=0;c<l.length;++c){var d=l[c];d.marker.collapsed&&(d.from==null||d.from<i)&&(d.to==null||d.to>i)&&(!s||Kc(s,d.marker)<0)&&(s=d.marker)}return s}function yd(e,i,l,s,c){var d=Pt(e,i),m=Tr&&d.markedSpans;if(m)for(var y=0;y<m.length;++y){var w=m[y];if(w.marker.collapsed){var _=w.marker.find(0),N=_t(_.from,l)||Bl(w.marker)-Bl(c),D=_t(_.to,s)||Wl(w.marker)-Wl(c);if(!(N>=0&&D<=0||N<=0&&D>=0)&&(N<=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?_t(_.to,l)>=0:_t(_.to,l)>0)||N>=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?_t(_.from,s)<=0:_t(_.from,s)<0)))return!0}}}function Kn(e){for(var i;i=md(e);)e=i.find(-1,!0).line;return e}function Ib(e){for(var i;i=Ul(e);)e=i.find(1,!0).line;return e}function qb(e){for(var i,l;i=Ul(e);)e=i.find(1,!0).line,(l||(l=[])).push(e);return l}function Xc(e,i){var l=Pt(e,i),s=Kn(l);return l==s?i:C(s)}function bd(e,i){if(i>e.lastLine())return i;var l=Pt(e,i),s;if(!Qr(e,l))return i;for(;s=Ul(l);)l=s.find(1,!0).line;return C(l)+1}function Qr(e,i){var l=Tr&&i.markedSpans;if(l){for(var s=void 0,c=0;c<l.length;++c)if(s=l[c],!!s.marker.collapsed){if(s.from==null)return!0;if(!s.marker.widgetNode&&s.from==0&&s.marker.inclusiveLeft&&Yc(e,i,s))return!0}}}function Yc(e,i,l){if(l.to==null){var s=l.marker.find(1,!0);return Yc(e,s.line,_s(s.line.markedSpans,l.marker))}if(l.marker.inclusiveRight&&l.to==i.text.length)return!0;for(var c=void 0,d=0;d<i.markedSpans.length;++d)if(c=i.markedSpans[d],c.marker.collapsed&&!c.marker.widgetNode&&c.from==l.to&&(c.to==null||c.to!=l.from)&&(c.marker.inclusiveLeft||l.marker.inclusiveRight)&&Yc(e,i,c))return!0}function Er(e){e=Kn(e);for(var i=0,l=e.parent,s=0;s<l.lines.length;++s){var c=l.lines[s];if(c==e)break;i+=c.height}for(var d=l.parent;d;l=d,d=l.parent)for(var m=0;m<d.children.length;++m){var y=d.children[m];if(y==l)break;i+=y.height}return i}function jl(e){if(e.height==0)return 0;for(var i=e.text.length,l,s=e;l=md(s);){var c=l.find(0,!0);s=c.from.line,i+=c.from.ch-c.to.ch}for(s=e;l=Ul(s);){var d=l.find(0,!0);i-=s.text.length-d.from.ch,s=d.to.line,i+=s.text.length-d.to.ch}return i}function Zc(e){var i=e.display,l=e.doc;i.maxLine=Pt(l,l.first),i.maxLineLength=jl(i.maxLine),i.maxLineChanged=!0,l.iter(function(s){var c=jl(s);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=s)})}var yo=function(e,i,l){this.text=e,gd(this,i),this.height=l?l(this):1};yo.prototype.lineNo=function(){return C(this)},Wn(yo);function Hb(e,i,l,s){e.text=i,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),pd(e),gd(e,l);var c=s?s(e):1;c!=e.height&&Nn(e,c)}function Bb(e){e.parent=null,pd(e)}var Wb={},Ub={};function wd(e,i){if(!e||/^\s*$/.test(e))return null;var l=i.addModeClass?Ub:Wb;return l[e]||(l[e]=e.replace(/\S+/g,"cm-$&"))}function xd(e,i){var l=I("span",null,null,v?"padding-right: .1px":null),s={pre:I("pre",[l],"CodeMirror-line"),content:l,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};i.measure={};for(var c=0;c<=(i.rest?i.rest.length:0);c++){var d=c?i.rest[c-1]:i.line,m=void 0;s.pos=0,s.addToken=Gb,Yr(e.display.measure)&&(m=Kt(d,e.doc.direction))&&(s.addToken=Kb(s.addToken,m)),s.map=[];var y=i!=e.display.externalMeasured&&C(d);Xb(d,s,sd(e,d,y)),d.styleClasses&&(d.styleClasses.bgClass&&(s.bgClass=qt(d.styleClasses.bgClass,s.bgClass||"")),d.styleClasses.textClass&&(s.textClass=qt(d.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(Fl(e.display.measure))),c==0?(i.measure.map=s.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(s.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var w=s.content.lastChild;(/\bcm-tab\b/.test(w.className)||w.querySelector&&w.querySelector(".cm-tab"))&&(s.content.className="cm-tab-wrap-hack")}return Se(e,"renderLine",e,i.line,s.pre),s.pre.className&&(s.textClass=qt(s.pre.className,s.textClass||"")),s}function jb(e){var i=k("span","•","cm-invalidchar");return i.title="\\u"+e.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Gb(e,i,l,s,c,d,m){if(i){var y=e.splitSpaces?Vb(i,e.trailingSpace):i,w=e.cm.state.specialChars,_=!1,N;if(!w.test(i))e.col+=i.length,N=document.createTextNode(y),e.map.push(e.pos,e.pos+i.length,N),p&&g<9&&(_=!0),e.pos+=i.length;else{N=document.createDocumentFragment();for(var D=0;;){w.lastIndex=D;var W=w.exec(i),q=W?W.index-D:i.length-D;if(q){var Z=document.createTextNode(y.slice(D,D+q));p&&g<9?N.appendChild(k("span",[Z])):N.appendChild(Z),e.map.push(e.pos,e.pos+q,Z),e.col+=q,e.pos+=q}if(!W)break;D+=q+1;var rt=void 0;if(W[0]==" "){var vt=e.cm.options.tabSize,bt=vt-e.col%vt;rt=N.appendChild(k("span",mt(bt),"cm-tab")),rt.setAttribute("role","presentation"),rt.setAttribute("cm-text"," "),e.col+=bt}else W[0]=="\r"||W[0]==`
|
|
11
|
-
`?(rt=N.appendChild(k("span",W[0]=="\r"?"␍":"","cm-invalidchar")),rt.setAttribute("cm-text",W[0]),e.col+=1):(rt=e.cm.options.specialCharPlaceholder(W[0]),rt.setAttribute("cm-text",W[0]),p&&g<9?N.appendChild(k("span",[rt])):N.appendChild(rt),e.col+=1);e.map.push(e.pos,e.pos+1,rt),e.pos++}}if(e.trailingSpace=y.charCodeAt(i.length-1)==32,l||s||c||_||d||m){var kt=l||"";s&&(kt+=s),c&&(kt+=c);var wt=k("span",[N],kt,d);if(m)for(var Et in m)m.hasOwnProperty(Et)&&Et!="style"&&Et!="class"&&wt.setAttribute(Et,m[Et]);return e.content.appendChild(wt)}e.content.appendChild(N)}}function Vb(e,i){if(e.length>1&&!/ /.test(e))return e;for(var l=i,s="",c=0;c<e.length;c++){var d=e.charAt(c);d==" "&&l&&(c==e.length-1||e.charCodeAt(c+1)==32)&&(d=" "),s+=d,l=d==" "}return s}function Kb(e,i){return function(l,s,c,d,m,y,w){c=c?c+" cm-force-border":"cm-force-border";for(var _=l.pos,N=_+s.length;;){for(var D=void 0,W=0;W<i.length&&(D=i[W],!(D.to>_&&D.from<=_));W++);if(D.to>=N)return e(l,s,c,d,m,y,w);e(l,s.slice(0,D.to-_),c,d,null,y,w),d=null,s=s.slice(D.to-_),_=D.to}}}function _d(e,i,l,s){var c=!s&&l.widgetNode;c&&e.map.push(e.pos,e.pos+i,c),!s&&e.cm.display.input.needsContentAttribute&&(c||(c=e.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",l.id)),c&&(e.cm.display.input.setUneditable(c),e.content.appendChild(c)),e.pos+=i,e.trailingSpace=!1}function Xb(e,i,l){var s=e.markedSpans,c=e.text,d=0;if(!s){for(var m=1;m<l.length;m+=2)i.addToken(i,c.slice(d,d=l[m]),wd(l[m+1],i.cm.options));return}for(var y=c.length,w=0,_=1,N="",D,W,q=0,Z,rt,vt,bt,kt;;){if(q==w){Z=rt=vt=W="",kt=null,bt=null,q=1/0;for(var wt=[],Et=void 0,zt=0;zt<s.length;++zt){var Ot=s[zt],Vt=Ot.marker;if(Vt.type=="bookmark"&&Ot.from==w&&Vt.widgetNode)wt.push(Vt);else if(Ot.from<=w&&(Ot.to==null||Ot.to>w||Vt.collapsed&&Ot.to==w&&Ot.from==w)){if(Ot.to!=null&&Ot.to!=w&&q>Ot.to&&(q=Ot.to,rt=""),Vt.className&&(Z+=" "+Vt.className),Vt.css&&(W=(W?W+";":"")+Vt.css),Vt.startStyle&&Ot.from==w&&(vt+=" "+Vt.startStyle),Vt.endStyle&&Ot.to==q&&(Et||(Et=[])).push(Vt.endStyle,Ot.to),Vt.title&&((kt||(kt={})).title=Vt.title),Vt.attributes)for(var ge in Vt.attributes)(kt||(kt={}))[ge]=Vt.attributes[ge];Vt.collapsed&&(!bt||Kc(bt.marker,Vt)<0)&&(bt=Ot)}else Ot.from>w&&q>Ot.from&&(q=Ot.from)}if(Et)for(var He=0;He<Et.length;He+=2)Et[He+1]==q&&(rt+=" "+Et[He]);if(!bt||bt.from==w)for(var xe=0;xe<wt.length;++xe)_d(i,0,wt[xe]);if(bt&&(bt.from||0)==w){if(_d(i,(bt.to==null?y+1:bt.to)-w,bt.marker,bt.from==null),bt.to==null)return;bt.to==w&&(bt=!1)}}if(w>=y)break;for(var xn=Math.min(y,q);;){if(N){var ln=w+N.length;if(!bt){var Me=ln>xn?N.slice(0,xn-w):N;i.addToken(i,Me,D?D+Z:Z,vt,w+Me.length==q?rt:"",W,kt)}if(ln>=xn){N=N.slice(xn-w),w=xn;break}w=ln,vt=""}N=c.slice(d,d=l[_++]),D=wd(l[_++],i.cm.options)}}}function Sd(e,i,l){this.line=i,this.rest=qb(i),this.size=this.rest?C(lt(this.rest))-l+1:1,this.node=this.text=null,this.hidden=Qr(e,i)}function Gl(e,i,l){for(var s=[],c,d=i;d<l;d=c){var m=new Sd(e.doc,Pt(e.doc,d),d);c=d+m.size,s.push(m)}return s}var bo=null;function Yb(e){bo?bo.ops.push(e):e.ownsGroup=bo={ops:[e],delayedCallbacks:[]}}function Zb(e){var i=e.delayedCallbacks,l=0;do{for(;l<i.length;l++)i[l].call(null);for(var s=0;s<e.ops.length;s++){var c=e.ops[s];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(l<i.length)}function Jb(e,i){var l=e.ownsGroup;if(l)try{Zb(l)}finally{bo=null,i(l)}}var Ss=null;function Fe(e,i){var l=kr(e,i);if(l.length){var s=Array.prototype.slice.call(arguments,2),c;bo?c=bo.delayedCallbacks:Ss?c=Ss:(c=Ss=[],setTimeout(Qb,0));for(var d=function(y){c.push(function(){return l[y].apply(null,s)})},m=0;m<l.length;++m)d(m)}}function Qb(){var e=Ss;Ss=null;for(var i=0;i<e.length;++i)e[i]()}function kd(e,i,l,s){for(var c=0;c<i.changes.length;c++){var d=i.changes[c];d=="text"?ew(e,i):d=="gutter"?Td(e,i,l,s):d=="class"?Jc(e,i):d=="widget"&&nw(e,i,s)}i.changes=null}function ks(e){return e.node==e.text&&(e.node=k("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),p&&g<8&&(e.node.style.zIndex=2)),e.node}function tw(e,i){var l=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(l&&(l+=" CodeMirror-linebackground"),i.background)l?i.background.className=l:(i.background.parentNode.removeChild(i.background),i.background=null);else if(l){var s=ks(i);i.background=s.insertBefore(k("div",null,l),s.firstChild),e.display.input.setUneditable(i.background)}}function Cd(e,i){var l=e.display.externalMeasured;return l&&l.line==i.line?(e.display.externalMeasured=null,i.measure=l.measure,l.built):xd(e,i)}function ew(e,i){var l=i.text.className,s=Cd(e,i);i.text==i.node&&(i.node=s.pre),i.text.parentNode.replaceChild(s.pre,i.text),i.text=s.pre,s.bgClass!=i.bgClass||s.textClass!=i.textClass?(i.bgClass=s.bgClass,i.textClass=s.textClass,Jc(e,i)):l&&(i.text.className=l)}function Jc(e,i){tw(e,i),i.line.wrapClass?ks(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var l=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=l||""}function Td(e,i,l,s){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var c=ks(i);i.gutterBackground=k("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(e.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px; width: "+s.gutterTotalWidth+"px"),e.display.input.setUneditable(i.gutterBackground),c.insertBefore(i.gutterBackground,i.text)}var d=i.line.gutterMarkers;if(e.options.lineNumbers||d){var m=ks(i),y=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px");if(y.setAttribute("aria-hidden","true"),e.display.input.setUneditable(y),m.insertBefore(y,i.text),i.line.gutterClass&&(y.className+=" "+i.line.gutterClass),e.options.lineNumbers&&(!d||!d["CodeMirror-linenumbers"])&&(i.lineNumber=y.appendChild(k("div",dt(e.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+s.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),d)for(var w=0;w<e.display.gutterSpecs.length;++w){var _=e.display.gutterSpecs[w].className,N=d.hasOwnProperty(_)&&d[_];N&&y.appendChild(k("div",[N],"CodeMirror-gutter-elt","left: "+s.gutterLeft[_]+"px; width: "+s.gutterWidth[_]+"px"))}}}function nw(e,i,l){i.alignable&&(i.alignable=null);for(var s=pt("CodeMirror-linewidget"),c=i.node.firstChild,d=void 0;c;c=d)d=c.nextSibling,s.test(c.className)&&i.node.removeChild(c);Ed(e,i,l)}function rw(e,i,l,s){var c=Cd(e,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),Jc(e,i),Td(e,i,l,s),Ed(e,i,s),i.node}function Ed(e,i,l){if(Ld(e,i.line,i,l,!0),i.rest)for(var s=0;s<i.rest.length;s++)Ld(e,i.rest[s],i,l,!1)}function Ld(e,i,l,s,c){if(i.widgets)for(var d=ks(l),m=0,y=i.widgets;m<y.length;++m){var w=y[m],_=k("div",[w.node],"CodeMirror-linewidget"+(w.className?" "+w.className:""));w.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),iw(w,_,l,s),e.display.input.setUneditable(_),c&&w.above?d.insertBefore(_,l.gutter||l.text):d.appendChild(_),Fe(w,"redraw")}}function iw(e,i,l,s){if(e.noHScroll){(l.alignable||(l.alignable=[])).push(i);var c=s.wrapperWidth;i.style.left=s.fixedPos+"px",e.coverGutter||(c-=s.gutterTotalWidth,i.style.paddingLeft=s.gutterTotalWidth+"px"),i.style.width=c+"px"}e.coverGutter&&(i.style.zIndex=5,i.style.position="relative",e.noHScroll||(i.style.marginLeft=-s.gutterTotalWidth+"px"))}function Cs(e){if(e.height!=null)return e.height;var i=e.doc.cm;if(!i)return 0;if(!J(document.body,e.node)){var l="position: relative;";e.coverGutter&&(l+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),e.noHScroll&&(l+="width: "+i.display.wrapper.clientWidth+"px;"),z(i.display.measure,k("div",[e.node],null,l))}return e.height=e.node.parentNode.offsetHeight}function Lr(e,i){for(var l=ms(i);l!=e.wrapper;l=l.parentNode)if(!l||l.nodeType==1&&l.getAttribute("cm-ignore-events")=="true"||l.parentNode==e.sizer&&l!=e.mover)return!0}function Vl(e){return e.lineSpace.offsetTop}function Qc(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Ad(e){if(e.cachedPaddingH)return e.cachedPaddingH;var i=z(e.measure,k("pre","x","CodeMirror-line-like")),l=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,s={left:parseInt(l.paddingLeft),right:parseInt(l.paddingRight)};return!isNaN(s.left)&&!isNaN(s.right)&&(e.cachedPaddingH=s),s}function ur(e){return $-e.display.nativeBarWidth}function Mi(e){return e.display.scroller.clientWidth-ur(e)-e.display.barWidth}function tu(e){return e.display.scroller.clientHeight-ur(e)-e.display.barHeight}function ow(e,i,l){var s=e.options.lineWrapping,c=s&&Mi(e);if(!i.measure.heights||s&&i.measure.width!=c){var d=i.measure.heights=[];if(s){i.measure.width=c;for(var m=i.text.firstChild.getClientRects(),y=0;y<m.length-1;y++){var w=m[y],_=m[y+1];Math.abs(w.bottom-_.bottom)>2&&d.push((w.bottom+_.top)/2-l.top)}}d.push(l.bottom-l.top)}}function Md(e,i,l){if(e.line==i)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var s=0;s<e.rest.length;s++)if(e.rest[s]==i)return{map:e.measure.maps[s],cache:e.measure.caches[s]};for(var c=0;c<e.rest.length;c++)if(C(e.rest[c])>l)return{map:e.measure.maps[c],cache:e.measure.caches[c],before:!0}}}function sw(e,i){i=Kn(i);var l=C(i),s=e.display.externalMeasured=new Sd(e.doc,i,l);s.lineN=l;var c=s.built=xd(e,s);return s.text=c.pre,z(e.display.lineMeasure,c.pre),s}function Nd(e,i,l,s){return fr(e,wo(e,i),l,s)}function eu(e,i){if(i>=e.display.viewFrom&&i<e.display.viewTo)return e.display.view[Oi(e,i)];var l=e.display.externalMeasured;if(l&&i>=l.lineN&&i<l.lineN+l.size)return l}function wo(e,i){var l=C(i),s=eu(e,l);s&&!s.text?s=null:s&&s.changes&&(kd(e,s,l,su(e)),e.curOp.forceUpdate=!0),s||(s=sw(e,i));var c=Md(s,i,l);return{line:i,view:s,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function fr(e,i,l,s,c){i.before&&(l=-1);var d=l+(s||""),m;return i.cache.hasOwnProperty(d)?m=i.cache[d]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(ow(e,i.view,i.rect),i.hasHeights=!0),m=aw(e,i,l,s),m.bogus||(i.cache[d]=m)),{left:m.left,right:m.right,top:c?m.rtop:m.top,bottom:c?m.rbottom:m.bottom}}var Pd={left:0,right:0,top:0,bottom:0};function Od(e,i,l){for(var s,c,d,m,y,w,_=0;_<e.length;_+=3)if(y=e[_],w=e[_+1],i<y?(c=0,d=1,m="left"):i<w?(c=i-y,d=c+1):(_==e.length-3||i==w&&e[_+3]>i)&&(d=w-y,c=d-1,i>=w&&(m="right")),c!=null){if(s=e[_+2],y==w&&l==(s.insertLeft?"left":"right")&&(m=l),l=="left"&&c==0)for(;_&&e[_-2]==e[_-3]&&e[_-1].insertLeft;)s=e[(_-=3)+2],m="left";if(l=="right"&&c==w-y)for(;_<e.length-3&&e[_+3]==e[_+4]&&!e[_+5].insertLeft;)s=e[(_+=3)+2],m="right";break}return{node:s,start:c,end:d,collapse:m,coverStart:y,coverEnd:w}}function lw(e,i){var l=Pd;if(i=="left")for(var s=0;s<e.length&&(l=e[s]).left==l.right;s++);else for(var c=e.length-1;c>=0&&(l=e[c]).left==l.right;c--);return l}function aw(e,i,l,s){var c=Od(i.map,l,s),d=c.node,m=c.start,y=c.end,w=c.collapse,_;if(d.nodeType==3){for(var N=0;N<4;N++){for(;m&&oe(i.line.text.charAt(c.coverStart+m));)--m;for(;c.coverStart+y<c.coverEnd&&oe(i.line.text.charAt(c.coverStart+y));)++y;if(p&&g<9&&m==0&&y==c.coverEnd-c.coverStart?_=d.parentNode.getBoundingClientRect():_=lw(H(d,m,y).getClientRects(),s),_.left||_.right||m==0)break;y=m,m=m-1,w="right"}p&&g<11&&(_=cw(e.display.measure,_))}else{m>0&&(w=s="right");var D;e.options.lineWrapping&&(D=d.getClientRects()).length>1?_=D[s=="right"?D.length-1:0]:_=d.getBoundingClientRect()}if(p&&g<9&&!m&&(!_||!_.left&&!_.right)){var W=d.parentNode.getClientRects()[0];W?_={left:W.left,right:W.left+_o(e.display),top:W.top,bottom:W.bottom}:_=Pd}for(var q=_.top-i.rect.top,Z=_.bottom-i.rect.top,rt=(q+Z)/2,vt=i.view.measure.heights,bt=0;bt<vt.length-1&&!(rt<vt[bt]);bt++);var kt=bt?vt[bt-1]:0,wt=vt[bt],Et={left:(w=="right"?_.right:_.left)-i.rect.left,right:(w=="left"?_.left:_.right)-i.rect.left,top:kt,bottom:wt};return!_.left&&!_.right&&(Et.bogus=!0),e.options.singleCursorHeightPerLine||(Et.rtop=q,Et.rbottom=Z),Et}function cw(e,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Uc(e))return i;var l=screen.logicalXDPI/screen.deviceXDPI,s=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*l,right:i.right*l,top:i.top*s,bottom:i.bottom*s}}function Dd(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var i=0;i<e.rest.length;i++)e.measure.caches[i]={}}function $d(e){e.display.externalMeasure=null,V(e.display.lineMeasure);for(var i=0;i<e.display.view.length;i++)Dd(e.display.view[i])}function Ts(e){$d(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Rd(e){return x&&R?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function zd(e){return x&&R?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function nu(e){var i=Kn(e),l=i.widgets,s=0;if(l)for(var c=0;c<l.length;++c)l[c].above&&(s+=Cs(l[c]));return s}function Kl(e,i,l,s,c){if(!c){var d=nu(i);l.top+=d,l.bottom+=d}if(s=="line")return l;s||(s="local");var m=Er(i);if(s=="local"?m+=Vl(e.display):m-=e.display.viewOffset,s=="page"||s=="window"){var y=e.display.lineSpace.getBoundingClientRect();m+=y.top+(s=="window"?0:zd(Zt(e)));var w=y.left+(s=="window"?0:Rd(Zt(e)));l.left+=w,l.right+=w}return l.top+=m,l.bottom+=m,l}function Fd(e,i,l){if(l=="div")return i;var s=i.left,c=i.top;if(l=="page")s-=Rd(Zt(e)),c-=zd(Zt(e));else if(l=="local"||!l){var d=e.display.sizer.getBoundingClientRect();s+=d.left,c+=d.top}var m=e.display.lineSpace.getBoundingClientRect();return{left:s-m.left,top:c-m.top}}function Xl(e,i,l,s,c){return s||(s=Pt(e.doc,i.line)),Kl(e,s,Nd(e,s,i.ch,c),l)}function Xn(e,i,l,s,c,d){s=s||Pt(e.doc,i.line),c||(c=wo(e,s));function m(Z,rt){var vt=fr(e,c,Z,rt?"right":"left",d);return rt?vt.left=vt.right:vt.right=vt.left,Kl(e,s,vt,l)}var y=Kt(s,e.doc.direction),w=i.ch,_=i.sticky;if(w>=s.text.length?(w=s.text.length,_="before"):w<=0&&(w=0,_="after"),!y)return m(_=="before"?w-1:w,_=="before");function N(Z,rt,vt){var bt=y[rt],kt=bt.level==1;return m(vt?Z-1:Z,kt!=vt)}var D=Le(y,w,_),W=lr,q=N(w,D,_=="before");return W!=null&&(q.other=N(w,W,_!="before")),q}function Id(e,i){var l=0;i=Wt(e.doc,i),e.options.lineWrapping||(l=_o(e.display)*i.ch);var s=Pt(e.doc,i.line),c=Er(s)+Vl(e.display);return{left:l,right:l,top:c,bottom:c+s.height}}function ru(e,i,l,s,c){var d=X(e,i,l);return d.xRel=c,s&&(d.outside=s),d}function iu(e,i,l){var s=e.doc;if(l+=e.display.viewOffset,l<0)return ru(s.first,0,null,-1,-1);var c=O(s,l),d=s.first+s.size-1;if(c>d)return ru(s.first+s.size-1,Pt(s,d).text.length,null,1,1);i<0&&(i=0);for(var m=Pt(s,c);;){var y=uw(e,m,c,i,l),w=Fb(m,y.ch+(y.xRel>0||y.outside>0?1:0));if(!w)return y;var _=w.find(1);if(_.line==c)return _;m=Pt(s,c=_.line)}}function qd(e,i,l,s){s-=nu(i);var c=i.text.length,d=Mn(function(m){return fr(e,l,m-1).bottom<=s},c,0);return c=Mn(function(m){return fr(e,l,m).top>s},d,c),{begin:d,end:c}}function Hd(e,i,l,s){l||(l=wo(e,i));var c=Kl(e,i,fr(e,l,s),"line").top;return qd(e,i,l,c)}function ou(e,i,l,s){return e.bottom<=l?!1:e.top>l?!0:(s?e.left:e.right)>i}function uw(e,i,l,s,c){c-=Er(i);var d=wo(e,i),m=nu(i),y=0,w=i.text.length,_=!0,N=Kt(i,e.doc.direction);if(N){var D=(e.options.lineWrapping?hw:fw)(e,i,l,d,N,s,c);_=D.level!=1,y=_?D.from:D.to-1,w=_?D.to:D.from-1}var W=null,q=null,Z=Mn(function(zt){var Ot=fr(e,d,zt);return Ot.top+=m,Ot.bottom+=m,ou(Ot,s,c,!1)?(Ot.top<=c&&Ot.left<=s&&(W=zt,q=Ot),!0):!1},y,w),rt,vt,bt=!1;if(q){var kt=s-q.left<q.right-s,wt=kt==_;Z=W+(wt?0:1),vt=wt?"after":"before",rt=kt?q.left:q.right}else{!_&&(Z==w||Z==y)&&Z++,vt=Z==0?"after":Z==i.text.length?"before":fr(e,d,Z-(_?1:0)).bottom+m<=c==_?"after":"before";var Et=Xn(e,X(l,Z,vt),"line",i,d);rt=Et.left,bt=c<Et.top?-1:c>=Et.bottom?1:0}return Z=en(i.text,Z,1),ru(l,Z,vt,bt,s-rt)}function fw(e,i,l,s,c,d,m){var y=Mn(function(D){var W=c[D],q=W.level!=1;return ou(Xn(e,X(l,q?W.to:W.from,q?"before":"after"),"line",i,s),d,m,!0)},0,c.length-1),w=c[y];if(y>0){var _=w.level!=1,N=Xn(e,X(l,_?w.from:w.to,_?"after":"before"),"line",i,s);ou(N,d,m,!0)&&N.top>m&&(w=c[y-1])}return w}function hw(e,i,l,s,c,d,m){var y=qd(e,i,s,m),w=y.begin,_=y.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var N=null,D=null,W=0;W<c.length;W++){var q=c[W];if(!(q.from>=_||q.to<=w)){var Z=q.level!=1,rt=fr(e,s,Z?Math.min(_,q.to)-1:Math.max(w,q.from)).right,vt=rt<d?d-rt+1e9:rt-d;(!N||D>vt)&&(N=q,D=vt)}}return N||(N=c[c.length-1]),N.from<w&&(N={from:w,to:N.to,level:N.level}),N.to>_&&(N={from:N.from,to:_,level:N.level}),N}var Ni;function xo(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ni==null){Ni=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Ni.appendChild(document.createTextNode("x")),Ni.appendChild(k("br"));Ni.appendChild(document.createTextNode("x"))}z(e.measure,Ni);var l=Ni.offsetHeight/50;return l>3&&(e.cachedTextHeight=l),V(e.measure),l||1}function _o(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var i=k("span","xxxxxxxxxx"),l=k("pre",[i],"CodeMirror-line-like");z(e.measure,l);var s=i.getBoundingClientRect(),c=(s.right-s.left)/10;return c>2&&(e.cachedCharWidth=c),c||10}function su(e){for(var i=e.display,l={},s={},c=i.gutters.clientLeft,d=i.gutters.firstChild,m=0;d;d=d.nextSibling,++m){var y=e.display.gutterSpecs[m].className;l[y]=d.offsetLeft+d.clientLeft+c,s[y]=d.clientWidth}return{fixedPos:lu(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:l,gutterWidth:s,wrapperWidth:i.wrapper.clientWidth}}function lu(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Bd(e){var i=xo(e.display),l=e.options.lineWrapping,s=l&&Math.max(5,e.display.scroller.clientWidth/_o(e.display)-3);return function(c){if(Qr(e.doc,c))return 0;var d=0;if(c.widgets)for(var m=0;m<c.widgets.length;m++)c.widgets[m].height&&(d+=c.widgets[m].height);return l?d+(Math.ceil(c.text.length/s)||1)*i:d+i}}function au(e){var i=e.doc,l=Bd(e);i.iter(function(s){var c=l(s);c!=s.height&&Nn(s,c)})}function Pi(e,i,l,s){var c=e.display;if(!l&&ms(i).getAttribute("cm-not-content")=="true")return null;var d,m,y=c.lineSpace.getBoundingClientRect();try{d=i.clientX-y.left,m=i.clientY-y.top}catch{return null}var w=iu(e,d,m),_;if(s&&w.xRel>0&&(_=Pt(e.doc,w.line).text).length==w.ch){var N=ot(_,_.length,e.options.tabSize)-_.length;w=X(w.line,Math.max(0,Math.round((d-Ad(e.display).left)/_o(e.display))-N))}return w}function Oi(e,i){if(i>=e.display.viewTo||(i-=e.display.viewFrom,i<0))return null;for(var l=e.display.view,s=0;s<l.length;s++)if(i-=l[s].size,i<0)return s}function on(e,i,l,s){i==null&&(i=e.doc.first),l==null&&(l=e.doc.first+e.doc.size),s||(s=0);var c=e.display;if(s&&l<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>i)&&(c.updateLineNumbers=i),e.curOp.viewChanged=!0,i>=c.viewTo)Tr&&Xc(e.doc,i)<c.viewTo&&ei(e);else if(l<=c.viewFrom)Tr&&bd(e.doc,l+s)>c.viewFrom?ei(e):(c.viewFrom+=s,c.viewTo+=s);else if(i<=c.viewFrom&&l>=c.viewTo)ei(e);else if(i<=c.viewFrom){var d=Yl(e,l,l+s,1);d?(c.view=c.view.slice(d.index),c.viewFrom=d.lineN,c.viewTo+=s):ei(e)}else if(l>=c.viewTo){var m=Yl(e,i,i,-1);m?(c.view=c.view.slice(0,m.index),c.viewTo=m.lineN):ei(e)}else{var y=Yl(e,i,i,-1),w=Yl(e,l,l+s,1);y&&w?(c.view=c.view.slice(0,y.index).concat(Gl(e,y.lineN,w.lineN)).concat(c.view.slice(w.index)),c.viewTo+=s):ei(e)}var _=c.externalMeasured;_&&(l<_.lineN?_.lineN+=s:i<_.lineN+_.size&&(c.externalMeasured=null))}function ti(e,i,l){e.curOp.viewChanged=!0;var s=e.display,c=e.display.externalMeasured;if(c&&i>=c.lineN&&i<c.lineN+c.size&&(s.externalMeasured=null),!(i<s.viewFrom||i>=s.viewTo)){var d=s.view[Oi(e,i)];if(d.node!=null){var m=d.changes||(d.changes=[]);Tt(m,l)==-1&&m.push(l)}}}function ei(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Yl(e,i,l,s){var c=Oi(e,i),d,m=e.display.view;if(!Tr||l==e.doc.first+e.doc.size)return{index:c,lineN:l};for(var y=e.display.viewFrom,w=0;w<c;w++)y+=m[w].size;if(y!=i){if(s>0){if(c==m.length-1)return null;d=y+m[c].size-i,c++}else d=y-i;i+=d,l+=d}for(;Xc(e.doc,l)!=l;){if(c==(s<0?0:m.length-1))return null;l+=s*m[c-(s<0?1:0)].size,c+=s}return{index:c,lineN:l}}function dw(e,i,l){var s=e.display,c=s.view;c.length==0||i>=s.viewTo||l<=s.viewFrom?(s.view=Gl(e,i,l),s.viewFrom=i):(s.viewFrom>i?s.view=Gl(e,i,s.viewFrom).concat(s.view):s.viewFrom<i&&(s.view=s.view.slice(Oi(e,i))),s.viewFrom=i,s.viewTo<l?s.view=s.view.concat(Gl(e,s.viewTo,l)):s.viewTo>l&&(s.view=s.view.slice(0,Oi(e,l)))),s.viewTo=l}function Wd(e){for(var i=e.display.view,l=0,s=0;s<i.length;s++){var c=i[s];!c.hidden&&(!c.node||c.changes)&&++l}return l}function Es(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Ud(e,i){i===void 0&&(i=!0);var l=e.doc,s={},c=s.cursors=document.createDocumentFragment(),d=s.selection=document.createDocumentFragment(),m=e.options.$customCursor;m&&(i=!0);for(var y=0;y<l.sel.ranges.length;y++)if(!(!i&&y==l.sel.primIndex)){var w=l.sel.ranges[y];if(!(w.from().line>=e.display.viewTo||w.to().line<e.display.viewFrom)){var _=w.empty();if(m){var N=m(e,w);N&&cu(e,N,c)}else(_||e.options.showCursorWhenSelecting)&&cu(e,w.head,c);_||pw(e,w,d)}}return s}function cu(e,i,l){var s=Xn(e,i,"div",null,null,!e.options.singleCursorHeightPerLine),c=l.appendChild(k("div"," ","CodeMirror-cursor"));if(c.style.left=s.left+"px",c.style.top=s.top+"px",c.style.height=Math.max(0,s.bottom-s.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var d=Xl(e,i,"div",null,null),m=d.right-d.left;c.style.width=(m>0?m:e.defaultCharWidth())+"px"}if(s.other){var y=l.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));y.style.display="",y.style.left=s.other.left+"px",y.style.top=s.other.top+"px",y.style.height=(s.other.bottom-s.other.top)*.85+"px"}}function Zl(e,i){return e.top-i.top||e.left-i.left}function pw(e,i,l){var s=e.display,c=e.doc,d=document.createDocumentFragment(),m=Ad(e.display),y=m.left,w=Math.max(s.sizerWidth,Mi(e)-s.sizer.offsetLeft)-m.right,_=c.direction=="ltr";function N(wt,Et,zt,Ot){Et<0&&(Et=0),Et=Math.round(Et),Ot=Math.round(Ot),d.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+wt+`px;
|
|
12
|
-
top: `+Et+"px; width: "+(zt??w-wt)+`px;
|
|
13
|
-
height: `+(Ot-Et)+"px"))}function D(wt,Et,zt){var Ot=Pt(c,wt),Vt=Ot.text.length,ge,He;function xe(Me,an){return Xl(e,X(wt,Me),"div",Ot,an)}function xn(Me,an,We){var Oe=Hd(e,Ot,null,Me),Ne=an=="ltr"==(We=="after")?"left":"right",Te=We=="after"?Oe.begin:Oe.end-(/\s/.test(Ot.text.charAt(Oe.end-1))?2:1);return xe(Te,Ne)[Ne]}var ln=Kt(Ot,c.direction);return mn(ln,Et||0,zt??Vt,function(Me,an,We,Oe){var Ne=We=="ltr",Te=xe(Me,Ne?"left":"right"),cn=xe(an-1,Ne?"right":"left"),$o=Et==null&&Me==0,li=zt==null&&an==Vt,Xe=Oe==0,hr=!ln||Oe==ln.length-1;if(cn.top-Te.top<=3){var Be=(_?$o:li)&&Xe,Ru=(_?li:$o)&&hr,Nr=Be?y:(Ne?Te:cn).left,Fi=Ru?w:(Ne?cn:Te).right;N(Nr,Te.top,Fi-Nr,Te.bottom)}else{var Ii,Je,Ro,zu;Ne?(Ii=_&&$o&&Xe?y:Te.left,Je=_?w:xn(Me,We,"before"),Ro=_?y:xn(an,We,"after"),zu=_&&li&&hr?w:cn.right):(Ii=_?xn(Me,We,"before"):y,Je=!_&&$o&&Xe?w:Te.right,Ro=!_&&li&&hr?y:cn.left,zu=_?xn(an,We,"after"):w),N(Ii,Te.top,Je-Ii,Te.bottom),Te.bottom<cn.top&&N(y,Te.bottom,null,cn.top),N(Ro,cn.top,zu-Ro,cn.bottom)}(!ge||Zl(Te,ge)<0)&&(ge=Te),Zl(cn,ge)<0&&(ge=cn),(!He||Zl(Te,He)<0)&&(He=Te),Zl(cn,He)<0&&(He=cn)}),{start:ge,end:He}}var W=i.from(),q=i.to();if(W.line==q.line)D(W.line,W.ch,q.ch);else{var Z=Pt(c,W.line),rt=Pt(c,q.line),vt=Kn(Z)==Kn(rt),bt=D(W.line,W.ch,vt?Z.text.length+1:null).end,kt=D(q.line,vt?0:null,q.ch).start;vt&&(bt.top<kt.top-2?(N(bt.right,bt.top,null,bt.bottom),N(y,kt.top,kt.left,kt.bottom)):N(bt.right,bt.top,kt.left-bt.right,bt.bottom)),bt.bottom<kt.top&&N(y,bt.bottom,null,kt.top)}l.appendChild(d)}function uu(e){if(e.state.focused){var i=e.display;clearInterval(i.blinker);var l=!0;i.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?i.blinker=setInterval(function(){e.hasFocus()||So(e),i.cursorDiv.style.visibility=(l=!l)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function jd(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||hu(e))}function fu(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&So(e))},100)}function hu(e,i){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Se(e,"focus",e,i),e.state.focused=!0,Lt(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),v&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),uu(e))}function So(e,i){e.state.delayingBlurEvent||(e.state.focused&&(Se(e,"blur",e,i),e.state.focused=!1,gt(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Jl(e){for(var i=e.display,l=i.lineDiv.offsetTop,s=Math.max(0,i.scroller.getBoundingClientRect().top),c=i.lineDiv.getBoundingClientRect().top,d=0,m=0;m<i.view.length;m++){var y=i.view[m],w=e.options.lineWrapping,_=void 0,N=0;if(!y.hidden){if(c+=y.line.height,p&&g<8){var D=y.node.offsetTop+y.node.offsetHeight;_=D-l,l=D}else{var W=y.node.getBoundingClientRect();_=W.bottom-W.top,!w&&y.text.firstChild&&(N=y.text.firstChild.getBoundingClientRect().right-W.left-1)}var q=y.line.height-_;if((q>.005||q<-.005)&&(c<s&&(d-=q),Nn(y.line,_),Gd(y.line),y.rest))for(var Z=0;Z<y.rest.length;Z++)Gd(y.rest[Z]);if(N>e.display.sizerWidth){var rt=Math.ceil(N/_o(e.display));rt>e.display.maxLineLength&&(e.display.maxLineLength=rt,e.display.maxLine=y.line,e.display.maxLineChanged=!0)}}}Math.abs(d)>2&&(i.scroller.scrollTop+=d)}function Gd(e){if(e.widgets)for(var i=0;i<e.widgets.length;++i){var l=e.widgets[i],s=l.node.parentNode;s&&(l.height=s.offsetHeight)}}function Ql(e,i,l){var s=l&&l.top!=null?Math.max(0,l.top):e.scroller.scrollTop;s=Math.floor(s-Vl(e));var c=l&&l.bottom!=null?l.bottom:s+e.wrapper.clientHeight,d=O(i,s),m=O(i,c);if(l&&l.ensure){var y=l.ensure.from.line,w=l.ensure.to.line;y<d?(d=y,m=O(i,Er(Pt(i,y))+e.wrapper.clientHeight)):Math.min(w,i.lastLine())>=m&&(d=O(i,Er(Pt(i,w))-e.wrapper.clientHeight),m=w)}return{from:d,to:Math.max(m,d+1)}}function gw(e,i){if(!ke(e,"scrollCursorIntoView")){var l=e.display,s=l.sizer.getBoundingClientRect(),c=null,d=l.wrapper.ownerDocument;if(i.top+s.top<0?c=!0:i.bottom+s.top>(d.defaultView.innerHeight||d.documentElement.clientHeight)&&(c=!1),c!=null&&!T){var m=k("div","",null,`position: absolute;
|
|
14
|
-
top: `+(i.top-l.viewOffset-Vl(e.display))+`px;
|
|
15
|
-
height: `+(i.bottom-i.top+ur(e)+l.barHeight)+`px;
|
|
16
|
-
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(c),e.display.lineSpace.removeChild(m)}}}function vw(e,i,l,s){s==null&&(s=0);var c;!e.options.lineWrapping&&i==l&&(l=i.sticky=="before"?X(i.line,i.ch+1,"before"):i,i=i.ch?X(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var d=0;d<5;d++){var m=!1,y=Xn(e,i),w=!l||l==i?y:Xn(e,l);c={left:Math.min(y.left,w.left),top:Math.min(y.top,w.top)-s,right:Math.max(y.left,w.left),bottom:Math.max(y.bottom,w.bottom)+s};var _=du(e,c),N=e.doc.scrollTop,D=e.doc.scrollLeft;if(_.scrollTop!=null&&(As(e,_.scrollTop),Math.abs(e.doc.scrollTop-N)>1&&(m=!0)),_.scrollLeft!=null&&(Di(e,_.scrollLeft),Math.abs(e.doc.scrollLeft-D)>1&&(m=!0)),!m)break}return c}function mw(e,i){var l=du(e,i);l.scrollTop!=null&&As(e,l.scrollTop),l.scrollLeft!=null&&Di(e,l.scrollLeft)}function du(e,i){var l=e.display,s=xo(e.display);i.top<0&&(i.top=0);var c=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:l.scroller.scrollTop,d=tu(e),m={};i.bottom-i.top>d&&(i.bottom=i.top+d);var y=e.doc.height+Qc(l),w=i.top<s,_=i.bottom>y-s;if(i.top<c)m.scrollTop=w?0:i.top;else if(i.bottom>c+d){var N=Math.min(i.top,(_?y:i.bottom)-d);N!=c&&(m.scrollTop=N)}var D=e.options.fixedGutter?0:l.gutters.offsetWidth,W=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:l.scroller.scrollLeft-D,q=Mi(e)-l.gutters.offsetWidth,Z=i.right-i.left>q;return Z&&(i.right=i.left+q),i.left<10?m.scrollLeft=0:i.left<W?m.scrollLeft=Math.max(0,i.left+D-(Z?0:10)):i.right>q+W-3&&(m.scrollLeft=i.right+(Z?0:10)-q),m}function pu(e,i){i!=null&&(ta(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+i)}function ko(e){ta(e);var i=e.getCursor();e.curOp.scrollToPos={from:i,to:i,margin:e.options.cursorScrollMargin}}function Ls(e,i,l){(i!=null||l!=null)&&ta(e),i!=null&&(e.curOp.scrollLeft=i),l!=null&&(e.curOp.scrollTop=l)}function yw(e,i){ta(e),e.curOp.scrollToPos=i}function ta(e){var i=e.curOp.scrollToPos;if(i){e.curOp.scrollToPos=null;var l=Id(e,i.from),s=Id(e,i.to);Vd(e,l,s,i.margin)}}function Vd(e,i,l,s){var c=du(e,{left:Math.min(i.left,l.left),top:Math.min(i.top,l.top)-s,right:Math.max(i.right,l.right),bottom:Math.max(i.bottom,l.bottom)+s});Ls(e,c.scrollLeft,c.scrollTop)}function As(e,i){Math.abs(e.doc.scrollTop-i)<2||(a||vu(e,{top:i}),Kd(e,i,!0),a&&vu(e),Ps(e,100))}function Kd(e,i,l){i=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,i)),!(e.display.scroller.scrollTop==i&&!l)&&(e.doc.scrollTop=i,e.display.scrollbars.setScrollTop(i),e.display.scroller.scrollTop!=i&&(e.display.scroller.scrollTop=i))}function Di(e,i,l,s){i=Math.max(0,Math.min(i,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((l?i==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-i)<2)&&!s)&&(e.doc.scrollLeft=i,Qd(e),e.display.scroller.scrollLeft!=i&&(e.display.scroller.scrollLeft=i),e.display.scrollbars.setScrollLeft(i))}function Ms(e){var i=e.display,l=i.gutters.offsetWidth,s=Math.round(e.doc.height+Qc(e.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:e.options.fixedGutter?l:0,docHeight:s,scrollHeight:s+ur(e)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:l}}var $i=function(e,i,l){this.cm=l;var s=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");s.tabIndex=c.tabIndex=-1,e(s),e(c),Rt(s,"scroll",function(){s.clientHeight&&i(s.scrollTop,"vertical")}),Rt(c,"scroll",function(){c.clientWidth&&i(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};$i.prototype.update=function(e){var i=e.scrollWidth>e.clientWidth+1,l=e.scrollHeight>e.clientHeight+1,s=e.nativeBarWidth;if(l){this.vert.style.display="block",this.vert.style.bottom=i?s+"px":"0";var c=e.viewHeight-(i?s:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+c)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=l?s+"px":"0",this.horiz.style.left=e.barLeft+"px";var d=e.viewWidth-e.barLeft-(l?s:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+d)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(s==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:l?s:0,bottom:i?s:0}},$i.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},$i.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},$i.prototype.zeroWidthHack=function(){var e=B&&!L?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Mt,this.disableVert=new Mt},$i.prototype.enableZeroWidthBar=function(e,i,l){e.style.visibility="";function s(){var c=e.getBoundingClientRect(),d=l=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);d!=e?e.style.visibility="hidden":i.set(1e3,s)}i.set(1e3,s)},$i.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ns=function(){};Ns.prototype.update=function(){return{bottom:0,right:0}},Ns.prototype.setScrollLeft=function(){},Ns.prototype.setScrollTop=function(){},Ns.prototype.clear=function(){};function Co(e,i){i||(i=Ms(e));var l=e.display.barWidth,s=e.display.barHeight;Xd(e,i);for(var c=0;c<4&&l!=e.display.barWidth||s!=e.display.barHeight;c++)l!=e.display.barWidth&&e.options.lineWrapping&&Jl(e),Xd(e,Ms(e)),l=e.display.barWidth,s=e.display.barHeight}function Xd(e,i){var l=e.display,s=l.scrollbars.update(i);l.sizer.style.paddingRight=(l.barWidth=s.right)+"px",l.sizer.style.paddingBottom=(l.barHeight=s.bottom)+"px",l.heightForcer.style.borderBottom=s.bottom+"px solid transparent",s.right&&s.bottom?(l.scrollbarFiller.style.display="block",l.scrollbarFiller.style.height=s.bottom+"px",l.scrollbarFiller.style.width=s.right+"px"):l.scrollbarFiller.style.display="",s.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(l.gutterFiller.style.display="block",l.gutterFiller.style.height=s.bottom+"px",l.gutterFiller.style.width=i.gutterWidth+"px"):l.gutterFiller.style.display=""}var Yd={native:$i,null:Ns};function Zd(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&>(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Yd[e.options.scrollbarStyle](function(i){e.display.wrapper.insertBefore(i,e.display.scrollbarFiller),Rt(i,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,l){l=="horizontal"?Di(e,i):As(e,i)},e),e.display.scrollbars.addClass&&Lt(e.display.wrapper,e.display.scrollbars.addClass)}var bw=0;function Ri(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++bw,markArrays:null},Yb(e.curOp)}function zi(e){var i=e.curOp;i&&Jb(i,function(l){for(var s=0;s<l.ops.length;s++)l.ops[s].cm.curOp=null;ww(l)})}function ww(e){for(var i=e.ops,l=0;l<i.length;l++)xw(i[l]);for(var s=0;s<i.length;s++)_w(i[s]);for(var c=0;c<i.length;c++)Sw(i[c]);for(var d=0;d<i.length;d++)kw(i[d]);for(var m=0;m<i.length;m++)Cw(i[m])}function xw(e){var i=e.cm,l=i.display;Ew(i),e.updateMaxLine&&Zc(i),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<l.viewFrom||e.scrollToPos.to.line>=l.viewTo)||l.maxLineChanged&&i.options.lineWrapping,e.update=e.mustUpdate&&new ea(i,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function _w(e){e.updatedDisplay=e.mustUpdate&&gu(e.cm,e.update)}function Sw(e){var i=e.cm,l=i.display;e.updatedDisplay&&Jl(i),e.barMeasure=Ms(i),l.maxLineChanged&&!i.options.lineWrapping&&(e.adjustWidthTo=Nd(i,l.maxLine,l.maxLine.text.length).left+3,i.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+e.adjustWidthTo+ur(i)+i.display.barWidth),e.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+e.adjustWidthTo-Mi(i))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=l.input.prepareSelection())}function kw(e){var i=e.cm;e.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<i.doc.scrollLeft&&Di(i,Math.min(i.display.scroller.scrollLeft,e.maxScrollLeft),!0),i.display.maxLineChanged=!1);var l=e.focus&&e.focus==yt(Xt(i));e.preparedSelection&&i.display.input.showSelection(e.preparedSelection,l),(e.updatedDisplay||e.startHeight!=i.doc.height)&&Co(i,e.barMeasure),e.updatedDisplay&&yu(i,e.barMeasure),e.selectionChanged&&uu(i),i.state.focused&&e.updateInput&&i.display.input.reset(e.typing),l&&jd(e.cm)}function Cw(e){var i=e.cm,l=i.display,s=i.doc;if(e.updatedDisplay&&Jd(i,e.update),l.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),e.scrollTop!=null&&Kd(i,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Di(i,e.scrollLeft,!0,!0),e.scrollToPos){var c=vw(i,Wt(s,e.scrollToPos.from),Wt(s,e.scrollToPos.to),e.scrollToPos.margin);gw(i,c)}var d=e.maybeHiddenMarkers,m=e.maybeUnhiddenMarkers;if(d)for(var y=0;y<d.length;++y)d[y].lines.length||Se(d[y],"hide");if(m)for(var w=0;w<m.length;++w)m[w].lines.length&&Se(m[w],"unhide");l.wrapper.offsetHeight&&(s.scrollTop=i.display.scroller.scrollTop),e.changeObjs&&Se(i,"changes",i,e.changeObjs),e.update&&e.update.finish()}function wn(e,i){if(e.curOp)return i();Ri(e);try{return i()}finally{zi(e)}}function Ie(e,i){return function(){if(e.curOp)return i.apply(e,arguments);Ri(e);try{return i.apply(e,arguments)}finally{zi(e)}}}function Ze(e){return function(){if(this.curOp)return e.apply(this,arguments);Ri(this);try{return e.apply(this,arguments)}finally{zi(this)}}}function qe(e){return function(){var i=this.cm;if(!i||i.curOp)return e.apply(this,arguments);Ri(i);try{return e.apply(this,arguments)}finally{zi(i)}}}function Ps(e,i){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(i,j(Tw,e))}function Tw(e){var i=e.doc;if(!(i.highlightFrontier>=e.display.viewTo)){var l=+new Date+e.options.workTime,s=xs(e,i.highlightFrontier),c=[];i.iter(s.line,Math.min(i.first+i.size,e.display.viewTo+500),function(d){if(s.line>=e.display.viewFrom){var m=d.styles,y=d.text.length>e.options.maxHighlightLength?ar(i.mode,s.state):null,w=od(e,d,s,!0);y&&(s.state=y),d.styles=w.styles;var _=d.styleClasses,N=w.classes;N?d.styleClasses=N:_&&(d.styleClasses=null);for(var D=!m||m.length!=d.styles.length||_!=N&&(!_||!N||_.bgClass!=N.bgClass||_.textClass!=N.textClass),W=0;!D&&W<m.length;++W)D=m[W]!=d.styles[W];D&&c.push(s.line),d.stateAfter=s.save(),s.nextLine()}else d.text.length<=e.options.maxHighlightLength&&jc(e,d.text,s),d.stateAfter=s.line%5==0?s.save():null,s.nextLine();if(+new Date>l)return Ps(e,e.options.workDelay),!0}),i.highlightFrontier=s.line,i.modeFrontier=Math.max(i.modeFrontier,s.line),c.length&&wn(e,function(){for(var d=0;d<c.length;d++)ti(e,c[d],"text")})}}var ea=function(e,i,l){var s=e.display;this.viewport=i,this.visible=Ql(s,e.doc,i),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=Mi(e),this.force=l,this.dims=su(e),this.events=[]};ea.prototype.signal=function(e,i){bn(e,i)&&this.events.push(arguments)},ea.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Se.apply(null,this.events[e])};function Ew(e){var i=e.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=ur(e)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=ur(e)+"px",i.scrollbarsClipped=!0)}function Lw(e){if(e.hasFocus())return null;var i=yt(Xt(e));if(!i||!J(e.display.lineDiv,i))return null;var l={activeElt:i};if(window.getSelection){var s=Ct(e).getSelection();s.anchorNode&&s.extend&&J(e.display.lineDiv,s.anchorNode)&&(l.anchorNode=s.anchorNode,l.anchorOffset=s.anchorOffset,l.focusNode=s.focusNode,l.focusOffset=s.focusOffset)}return l}function Aw(e){if(!(!e||!e.activeElt||e.activeElt==yt(jt(e.activeElt)))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&J(document.body,e.anchorNode)&&J(document.body,e.focusNode))){var i=e.activeElt.ownerDocument,l=i.defaultView.getSelection(),s=i.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),l.removeAllRanges(),l.addRange(s),l.extend(e.focusNode,e.focusOffset)}}function gu(e,i){var l=e.display,s=e.doc;if(i.editorIsHidden)return ei(e),!1;if(!i.force&&i.visible.from>=l.viewFrom&&i.visible.to<=l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo)&&l.renderedView==l.view&&Wd(e)==0)return!1;tp(e)&&(ei(e),i.dims=su(e));var c=s.first+s.size,d=Math.max(i.visible.from-e.options.viewportMargin,s.first),m=Math.min(c,i.visible.to+e.options.viewportMargin);l.viewFrom<d&&d-l.viewFrom<20&&(d=Math.max(s.first,l.viewFrom)),l.viewTo>m&&l.viewTo-m<20&&(m=Math.min(c,l.viewTo)),Tr&&(d=Xc(e.doc,d),m=bd(e.doc,m));var y=d!=l.viewFrom||m!=l.viewTo||l.lastWrapHeight!=i.wrapperHeight||l.lastWrapWidth!=i.wrapperWidth;dw(e,d,m),l.viewOffset=Er(Pt(e.doc,l.viewFrom)),e.display.mover.style.top=l.viewOffset+"px";var w=Wd(e);if(!y&&w==0&&!i.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var _=Lw(e);return w>4&&(l.lineDiv.style.display="none"),Mw(e,l.updateLineNumbers,i.dims),w>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,Aw(_),V(l.cursorDiv),V(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,y&&(l.lastWrapHeight=i.wrapperHeight,l.lastWrapWidth=i.wrapperWidth,Ps(e,400)),l.updateLineNumbers=null,!0}function Jd(e,i){for(var l=i.viewport,s=!0;;s=!1){if(!s||!e.options.lineWrapping||i.oldDisplayWidth==Mi(e)){if(l&&l.top!=null&&(l={top:Math.min(e.doc.height+Qc(e.display)-tu(e),l.top)}),i.visible=Ql(e.display,e.doc,l),i.visible.from>=e.display.viewFrom&&i.visible.to<=e.display.viewTo)break}else s&&(i.visible=Ql(e.display,e.doc,l));if(!gu(e,i))break;Jl(e);var c=Ms(e);Es(e),Co(e,c),yu(e,c),i.force=!1}i.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(i.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function vu(e,i){var l=new ea(e,i);if(gu(e,l)){Jl(e),Jd(e,l);var s=Ms(e);Es(e),Co(e,s),yu(e,s),l.finish()}}function Mw(e,i,l){var s=e.display,c=e.options.lineNumbers,d=s.lineDiv,m=d.firstChild;function y(Z){var rt=Z.nextSibling;return v&&B&&e.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),rt}for(var w=s.view,_=s.viewFrom,N=0;N<w.length;N++){var D=w[N];if(!D.hidden)if(!D.node||D.node.parentNode!=d){var W=rw(e,D,_,l);d.insertBefore(W,m)}else{for(;m!=D.node;)m=y(m);var q=c&&i!=null&&i<=_&&D.lineNumber;D.changes&&(Tt(D.changes,"gutter")>-1&&(q=!1),kd(e,D,_,l)),q&&(V(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(dt(e.options,_)))),m=D.node.nextSibling}_+=D.size}for(;m;)m=y(m)}function mu(e){var i=e.gutters.offsetWidth;e.sizer.style.marginLeft=i+"px",Fe(e,"gutterChanged",e)}function yu(e,i){e.display.sizer.style.minHeight=i.docHeight+"px",e.display.heightForcer.style.top=i.docHeight+"px",e.display.gutters.style.height=i.docHeight+e.display.barHeight+ur(e)+"px"}function Qd(e){var i=e.display,l=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!e.options.fixedGutter))){for(var s=lu(i)-i.scroller.scrollLeft+e.doc.scrollLeft,c=i.gutters.offsetWidth,d=s+"px",m=0;m<l.length;m++)if(!l[m].hidden){e.options.fixedGutter&&(l[m].gutter&&(l[m].gutter.style.left=d),l[m].gutterBackground&&(l[m].gutterBackground.style.left=d));var y=l[m].alignable;if(y)for(var w=0;w<y.length;w++)y[w].style.left=d}e.options.fixedGutter&&(i.gutters.style.left=s+c+"px")}}function tp(e){if(!e.options.lineNumbers)return!1;var i=e.doc,l=dt(e.options,i.first+i.size-1),s=e.display;if(l.length!=s.lineNumChars){var c=s.measure.appendChild(k("div",[k("div",l)],"CodeMirror-linenumber CodeMirror-gutter-elt")),d=c.firstChild.offsetWidth,m=c.offsetWidth-d;return s.lineGutter.style.width="",s.lineNumInnerWidth=Math.max(d,s.lineGutter.offsetWidth-m)+1,s.lineNumWidth=s.lineNumInnerWidth+m,s.lineNumChars=s.lineNumInnerWidth?l.length:-1,s.lineGutter.style.width=s.lineNumWidth+"px",mu(e.display),!0}return!1}function bu(e,i){for(var l=[],s=!1,c=0;c<e.length;c++){var d=e[c],m=null;if(typeof d!="string"&&(m=d.style,d=d.className),d=="CodeMirror-linenumbers")if(i)s=!0;else continue;l.push({className:d,style:m})}return i&&!s&&l.push({className:"CodeMirror-linenumbers",style:null}),l}function ep(e){var i=e.gutters,l=e.gutterSpecs;V(i),e.lineGutter=null;for(var s=0;s<l.length;++s){var c=l[s],d=c.className,m=c.style,y=i.appendChild(k("div",null,"CodeMirror-gutter "+d));m&&(y.style.cssText=m),d=="CodeMirror-linenumbers"&&(e.lineGutter=y,y.style.width=(e.lineNumWidth||1)+"px")}i.style.display=l.length?"":"none",mu(e)}function Os(e){ep(e.display),on(e),Qd(e)}function Nw(e,i,l,s){var c=this;this.input=l,c.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=I("div",null,"CodeMirror-code"),c.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=k("div",null,"CodeMirror-cursors"),c.measure=k("div",null,"CodeMirror-measure"),c.lineMeasure=k("div",null,"CodeMirror-measure"),c.lineSpace=I("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var d=I("div",[c.lineSpace],"CodeMirror-lines");c.mover=k("div",[d],null,"position: relative"),c.sizer=k("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=k("div",null,null,"position: absolute; height: "+$+"px; width: 1px;"),c.gutters=k("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=k("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=k("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),x&&S>=105&&(c.wrapper.style.clipPath="inset(0px)"),c.wrapper.setAttribute("translate","no"),p&&g<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!v&&!(a&&E)&&(c.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(c.wrapper):e(c.wrapper)),c.viewFrom=c.viewTo=i.first,c.reportedViewFrom=c.reportedViewTo=i.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=bu(s.gutters,s.lineNumbers),ep(c),l.init(c)}var na=0,Ar=null;p?Ar=-.53:a?Ar=15:x?Ar=-.7:A&&(Ar=-1/3);function np(e){var i=e.wheelDeltaX,l=e.wheelDeltaY;return i==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(i=e.detail),l==null&&e.detail&&e.axis==e.VERTICAL_AXIS?l=e.detail:l==null&&(l=e.wheelDelta),{x:i,y:l}}function Pw(e){var i=np(e);return i.x*=Ar,i.y*=Ar,i}function rp(e,i){x&&S==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var l=np(i),s=l.x,c=l.y,d=Ar;i.deltaMode===0&&(s=i.deltaX,c=i.deltaY,d=1);var m=e.display,y=m.scroller,w=y.scrollWidth>y.clientWidth,_=y.scrollHeight>y.clientHeight;if(s&&w||c&&_){if(c&&B&&v){t:for(var N=i.target,D=m.view;N!=y;N=N.parentNode)for(var W=0;W<D.length;W++)if(D[W].node==N){e.display.currentWheelTarget=N;break t}}if(s&&!a&&!P&&d!=null){c&&_&&As(e,Math.max(0,y.scrollTop+c*d)),Di(e,Math.max(0,y.scrollLeft+s*d)),(!c||c&&_)&&Ve(i),m.wheelStartX=null;return}if(c&&d!=null){var q=c*d,Z=e.doc.scrollTop,rt=Z+m.wrapper.clientHeight;q<0?Z=Math.max(0,Z+q-50):rt=Math.min(e.doc.height,rt+q+50),vu(e,{top:Z,bottom:rt})}na<20&&i.deltaMode!==0&&(m.wheelStartX==null?(m.wheelStartX=y.scrollLeft,m.wheelStartY=y.scrollTop,m.wheelDX=s,m.wheelDY=c,setTimeout(function(){if(m.wheelStartX!=null){var vt=y.scrollLeft-m.wheelStartX,bt=y.scrollTop-m.wheelStartY,kt=bt&&m.wheelDY&&bt/m.wheelDY||vt&&m.wheelDX&&vt/m.wheelDX;m.wheelStartX=m.wheelStartY=null,kt&&(Ar=(Ar*na+kt)/(na+1),++na)}},200)):(m.wheelDX+=s,m.wheelDY+=c))}}var Pn=function(e,i){this.ranges=e,this.primIndex=i};Pn.prototype.primary=function(){return this.ranges[this.primIndex]},Pn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var l=this.ranges[i],s=e.ranges[i];if(!ae(l.anchor,s.anchor)||!ae(l.head,s.head))return!1}return!0},Pn.prototype.deepCopy=function(){for(var e=[],i=0;i<this.ranges.length;i++)e[i]=new ce(ze(this.ranges[i].anchor),ze(this.ranges[i].head));return new Pn(e,this.primIndex)},Pn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Pn.prototype.contains=function(e,i){i||(i=e);for(var l=0;l<this.ranges.length;l++){var s=this.ranges[l];if(_t(i,s.from())>=0&&_t(e,s.to())<=0)return l}return-1};var ce=function(e,i){this.anchor=e,this.head=i};ce.prototype.from=function(){return mo(this.anchor,this.head)},ce.prototype.to=function(){return rn(this.anchor,this.head)},ce.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Yn(e,i,l){var s=e&&e.options.selectionsMayTouch,c=i[l];i.sort(function(W,q){return _t(W.from(),q.from())}),l=Tt(i,c);for(var d=1;d<i.length;d++){var m=i[d],y=i[d-1],w=_t(y.to(),m.from());if(s&&!m.empty()?w>0:w>=0){var _=mo(y.from(),m.from()),N=rn(y.to(),m.to()),D=y.empty()?m.from()==m.head:y.from()==y.head;d<=l&&--l,i.splice(--d,2,new ce(D?N:_,D?_:N))}}return new Pn(i,l)}function ni(e,i){return new Pn([new ce(e,i||e)],0)}function ri(e){return e.text?X(e.from.line+e.text.length-1,lt(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function ip(e,i){if(_t(e,i.from)<0)return e;if(_t(e,i.to)<=0)return ri(i);var l=e.line+i.text.length-(i.to.line-i.from.line)-1,s=e.ch;return e.line==i.to.line&&(s+=ri(i).ch-i.to.ch),X(l,s)}function wu(e,i){for(var l=[],s=0;s<e.sel.ranges.length;s++){var c=e.sel.ranges[s];l.push(new ce(ip(c.anchor,i),ip(c.head,i)))}return Yn(e.cm,l,e.sel.primIndex)}function op(e,i,l){return e.line==i.line?X(l.line,e.ch-i.ch+l.ch):X(l.line+(e.line-i.line),e.ch)}function Ow(e,i,l){for(var s=[],c=X(e.first,0),d=c,m=0;m<i.length;m++){var y=i[m],w=op(y.from,c,d),_=op(ri(y),c,d);if(c=y.to,d=_,l=="around"){var N=e.sel.ranges[m],D=_t(N.head,N.anchor)<0;s[m]=new ce(D?_:w,D?w:_)}else s[m]=new ce(w,w)}return new Pn(s,e.sel.primIndex)}function xu(e){e.doc.mode=po(e.options,e.doc.modeOption),Ds(e)}function Ds(e){e.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Ps(e,100),e.state.modeGen++,e.curOp&&on(e)}function sp(e,i){return i.from.ch==0&&i.to.ch==0&<(i.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function _u(e,i,l,s){function c(kt){return l?l[kt]:null}function d(kt,wt,Et){Hb(kt,wt,Et,s),Fe(kt,"change",kt,i)}function m(kt,wt){for(var Et=[],zt=kt;zt<wt;++zt)Et.push(new yo(_[zt],c(zt),s));return Et}var y=i.from,w=i.to,_=i.text,N=Pt(e,y.line),D=Pt(e,w.line),W=lt(_),q=c(_.length-1),Z=w.line-y.line;if(i.full)e.insert(0,m(0,_.length)),e.remove(_.length,e.size-_.length);else if(sp(e,i)){var rt=m(0,_.length-1);d(D,D.text,q),Z&&e.remove(y.line,Z),rt.length&&e.insert(y.line,rt)}else if(N==D)if(_.length==1)d(N,N.text.slice(0,y.ch)+W+N.text.slice(w.ch),q);else{var vt=m(1,_.length-1);vt.push(new yo(W+N.text.slice(w.ch),q,s)),d(N,N.text.slice(0,y.ch)+_[0],c(0)),e.insert(y.line+1,vt)}else if(_.length==1)d(N,N.text.slice(0,y.ch)+_[0]+D.text.slice(w.ch),c(0)),e.remove(y.line+1,Z);else{d(N,N.text.slice(0,y.ch)+_[0],c(0)),d(D,W+D.text.slice(w.ch),q);var bt=m(1,_.length-1);Z>1&&e.remove(y.line+1,Z-1),e.insert(y.line+1,bt)}Fe(e,"change",e,i)}function ii(e,i,l){function s(c,d,m){if(c.linked)for(var y=0;y<c.linked.length;++y){var w=c.linked[y];if(w.doc!=d){var _=m&&w.sharedHist;l&&!_||(i(w.doc,_),s(w.doc,c,_))}}}s(e,null,!0)}function lp(e,i){if(i.cm)throw new Error("This document is already in use.");e.doc=i,i.cm=e,au(e),xu(e),ap(e),e.options.direction=i.direction,e.options.lineWrapping||Zc(e),e.options.mode=i.modeOption,on(e)}function ap(e){(e.doc.direction=="rtl"?Lt:gt)(e.display.lineDiv,"CodeMirror-rtl")}function Dw(e){wn(e,function(){ap(e),on(e)})}function ra(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Su(e,i){var l={from:ze(i.from),to:ri(i),text:Cr(e,i.from,i.to)};return fp(e,l,i.from.line,i.to.line+1),ii(e,function(s){return fp(s,l,i.from.line,i.to.line+1)},!0),l}function cp(e){for(;e.length;){var i=lt(e);if(i.ranges)e.pop();else break}}function $w(e,i){if(i)return cp(e.done),lt(e.done);if(e.done.length&&!lt(e.done).ranges)return lt(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),lt(e.done)}function up(e,i,l,s){var c=e.history;c.undone.length=0;var d=+new Date,m,y;if((c.lastOp==s||c.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&c.lastModTime>d-(e.cm?e.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(m=$w(c,c.lastOp==s)))y=lt(m.changes),_t(i.from,i.to)==0&&_t(i.from,y.to)==0?y.to=ri(i):m.changes.push(Su(e,i));else{var w=lt(c.done);for((!w||!w.ranges)&&ia(e.sel,c.done),m={changes:[Su(e,i)],generation:c.generation},c.done.push(m);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(l),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=d,c.lastOp=c.lastSelOp=s,c.lastOrigin=c.lastSelOrigin=i.origin,y||Se(e,"historyAdded")}function Rw(e,i,l,s){var c=i.charAt(0);return c=="*"||c=="+"&&l.ranges.length==s.ranges.length&&l.somethingSelected()==s.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function zw(e,i,l,s){var c=e.history,d=s&&s.origin;l==c.lastSelOp||d&&c.lastSelOrigin==d&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==d||Rw(e,d,lt(c.done),i))?c.done[c.done.length-1]=i:ia(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=d,c.lastSelOp=l,s&&s.clearRedo!==!1&&cp(c.undone)}function ia(e,i){var l=lt(i);l&&l.ranges&&l.equals(e)||i.push(e)}function fp(e,i,l,s){var c=i["spans_"+e.id],d=0;e.iter(Math.max(e.first,l),Math.min(e.first+e.size,s),function(m){m.markedSpans&&((c||(c=i["spans_"+e.id]={}))[d]=m.markedSpans),++d})}function Fw(e){if(!e)return null;for(var i,l=0;l<e.length;++l)e[l].marker.explicitlyCleared?i||(i=e.slice(0,l)):i&&i.push(e[l]);return i?i.length?i:null:e}function Iw(e,i){var l=i["spans_"+e.id];if(!l)return null;for(var s=[],c=0;c<i.text.length;++c)s.push(Fw(l[c]));return s}function hp(e,i){var l=Iw(e,i),s=Vc(e,i);if(!l)return s;if(!s)return l;for(var c=0;c<l.length;++c){var d=l[c],m=s[c];if(d&&m)t:for(var y=0;y<m.length;++y){for(var w=m[y],_=0;_<d.length;++_)if(d[_].marker==w.marker)continue t;d.push(w)}else m&&(l[c]=m)}return l}function To(e,i,l){for(var s=[],c=0;c<e.length;++c){var d=e[c];if(d.ranges){s.push(l?Pn.prototype.deepCopy.call(d):d);continue}var m=d.changes,y=[];s.push({changes:y});for(var w=0;w<m.length;++w){var _=m[w],N=void 0;if(y.push({from:_.from,to:_.to,text:_.text}),i)for(var D in _)(N=D.match(/^spans_(\d+)$/))&&Tt(i,Number(N[1]))>-1&&(lt(y)[D]=_[D],delete _[D])}}return s}function ku(e,i,l,s){if(s){var c=e.anchor;if(l){var d=_t(i,c)<0;d!=_t(l,c)<0?(c=i,i=l):d!=_t(i,l)<0&&(i=l)}return new ce(c,i)}else return new ce(l||i,i)}function oa(e,i,l,s,c){c==null&&(c=e.cm&&(e.cm.display.shift||e.extend)),Ke(e,new Pn([ku(e.sel.primary(),i,l,c)],0),s)}function dp(e,i,l){for(var s=[],c=e.cm&&(e.cm.display.shift||e.extend),d=0;d<e.sel.ranges.length;d++)s[d]=ku(e.sel.ranges[d],i[d],null,c);var m=Yn(e.cm,s,e.sel.primIndex);Ke(e,m,l)}function Cu(e,i,l,s){var c=e.sel.ranges.slice(0);c[i]=l,Ke(e,Yn(e.cm,c,e.sel.primIndex),s)}function pp(e,i,l,s){Ke(e,ni(i,l),s)}function qw(e,i,l){var s={ranges:i.ranges,update:function(c){this.ranges=[];for(var d=0;d<c.length;d++)this.ranges[d]=new ce(Wt(e,c[d].anchor),Wt(e,c[d].head))},origin:l&&l.origin};return Se(e,"beforeSelectionChange",e,s),e.cm&&Se(e.cm,"beforeSelectionChange",e.cm,s),s.ranges!=i.ranges?Yn(e.cm,s.ranges,s.ranges.length-1):i}function gp(e,i,l){var s=e.history.done,c=lt(s);c&&c.ranges?(s[s.length-1]=i,sa(e,i,l)):Ke(e,i,l)}function Ke(e,i,l){sa(e,i,l),zw(e,e.sel,e.cm?e.cm.curOp.id:NaN,l)}function sa(e,i,l){(bn(e,"beforeSelectionChange")||e.cm&&bn(e.cm,"beforeSelectionChange"))&&(i=qw(e,i,l));var s=l&&l.bias||(_t(i.primary().head,e.sel.primary().head)<0?-1:1);vp(e,yp(e,i,s,!0)),!(l&&l.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&ko(e.cm)}function vp(e,i){i.equals(e.sel)||(e.sel=i,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,zn(e.cm)),Fe(e,"cursorActivity",e))}function mp(e){vp(e,yp(e,e.sel,null,!1))}function yp(e,i,l,s){for(var c,d=0;d<i.ranges.length;d++){var m=i.ranges[d],y=i.ranges.length==e.sel.ranges.length&&e.sel.ranges[d],w=la(e,m.anchor,y&&y.anchor,l,s),_=m.head==m.anchor?w:la(e,m.head,y&&y.head,l,s);(c||w!=m.anchor||_!=m.head)&&(c||(c=i.ranges.slice(0,d)),c[d]=new ce(w,_))}return c?Yn(e.cm,c,i.primIndex):i}function Eo(e,i,l,s,c){var d=Pt(e,i.line);if(d.markedSpans)for(var m=0;m<d.markedSpans.length;++m){var y=d.markedSpans[m],w=y.marker,_="selectLeft"in w?!w.selectLeft:w.inclusiveLeft,N="selectRight"in w?!w.selectRight:w.inclusiveRight;if((y.from==null||(_?y.from<=i.ch:y.from<i.ch))&&(y.to==null||(N?y.to>=i.ch:y.to>i.ch))){if(c&&(Se(w,"beforeCursorEnter"),w.explicitlyCleared))if(d.markedSpans){--m;continue}else break;if(!w.atomic)continue;if(l){var D=w.find(s<0?1:-1),W=void 0;if((s<0?N:_)&&(D=bp(e,D,-s,D&&D.line==i.line?d:null)),D&&D.line==i.line&&(W=_t(D,l))&&(s<0?W<0:W>0))return Eo(e,D,i,s,c)}var q=w.find(s<0?-1:1);return(s<0?_:N)&&(q=bp(e,q,s,q.line==i.line?d:null)),q?Eo(e,q,i,s,c):null}}return i}function la(e,i,l,s,c){var d=s||1,m=Eo(e,i,l,d,c)||!c&&Eo(e,i,l,d,!0)||Eo(e,i,l,-d,c)||!c&&Eo(e,i,l,-d,!0);return m||(e.cantEdit=!0,X(e.first,0))}function bp(e,i,l,s){return l<0&&i.ch==0?i.line>e.first?Wt(e,X(i.line-1)):null:l>0&&i.ch==(s||Pt(e,i.line)).text.length?i.line<e.first+e.size-1?X(i.line+1,0):null:new X(i.line,i.ch+l)}function wp(e){e.setSelection(X(e.firstLine(),0),X(e.lastLine()),G)}function xp(e,i,l){var s={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return s.canceled=!0}};return l&&(s.update=function(c,d,m,y){c&&(s.from=Wt(e,c)),d&&(s.to=Wt(e,d)),m&&(s.text=m),y!==void 0&&(s.origin=y)}),Se(e,"beforeChange",e,s),e.cm&&Se(e.cm,"beforeChange",e.cm,s),s.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:s.from,to:s.to,text:s.text,origin:s.origin}}function Lo(e,i,l){if(e.cm){if(!e.cm.curOp)return Ie(e.cm,Lo)(e,i,l);if(e.cm.state.suppressEdits)return}if(!((bn(e,"beforeChange")||e.cm&&bn(e.cm,"beforeChange"))&&(i=xp(e,i,!0),!i))){var s=hd&&!l&&zb(e,i.from,i.to);if(s)for(var c=s.length-1;c>=0;--c)_p(e,{from:s[c].from,to:s[c].to,text:c?[""]:i.text,origin:i.origin});else _p(e,i)}}function _p(e,i){if(!(i.text.length==1&&i.text[0]==""&&_t(i.from,i.to)==0)){var l=wu(e,i);up(e,i,l,e.cm?e.cm.curOp.id:NaN),$s(e,i,l,Vc(e,i));var s=[];ii(e,function(c,d){!d&&Tt(s,c.history)==-1&&(Tp(c.history,i),s.push(c.history)),$s(c,i,null,Vc(c,i))})}}function aa(e,i,l){var s=e.cm&&e.cm.state.suppressEdits;if(!(s&&!l)){for(var c=e.history,d,m=e.sel,y=i=="undo"?c.done:c.undone,w=i=="undo"?c.undone:c.done,_=0;_<y.length&&(d=y[_],!(l?d.ranges&&!d.equals(e.sel):!d.ranges));_++);if(_!=y.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(d=y.pop(),d.ranges){if(ia(d,w),l&&!d.equals(e.sel)){Ke(e,d,{clearRedo:!1});return}m=d}else if(s){y.push(d);return}else break;var N=[];ia(m,w),w.push({changes:N,generation:c.generation}),c.generation=d.generation||++c.maxGeneration;for(var D=bn(e,"beforeChange")||e.cm&&bn(e.cm,"beforeChange"),W=function(rt){var vt=d.changes[rt];if(vt.origin=i,D&&!xp(e,vt,!1))return y.length=0,{};N.push(Su(e,vt));var bt=rt?wu(e,vt):lt(y);$s(e,vt,bt,hp(e,vt)),!rt&&e.cm&&e.cm.scrollIntoView({from:vt.from,to:ri(vt)});var kt=[];ii(e,function(wt,Et){!Et&&Tt(kt,wt.history)==-1&&(Tp(wt.history,vt),kt.push(wt.history)),$s(wt,vt,null,hp(wt,vt))})},q=d.changes.length-1;q>=0;--q){var Z=W(q);if(Z)return Z.v}}}}function Sp(e,i){if(i!=0&&(e.first+=i,e.sel=new Pn(ft(e.sel.ranges,function(c){return new ce(X(c.anchor.line+i,c.anchor.ch),X(c.head.line+i,c.head.ch))}),e.sel.primIndex),e.cm)){on(e.cm,e.first,e.first-i,i);for(var l=e.cm.display,s=l.viewFrom;s<l.viewTo;s++)ti(e.cm,s,"gutter")}}function $s(e,i,l,s){if(e.cm&&!e.cm.curOp)return Ie(e.cm,$s)(e,i,l,s);if(i.to.line<e.first){Sp(e,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>e.lastLine())){if(i.from.line<e.first){var c=i.text.length-1-(e.first-i.from.line);Sp(e,c),i={from:X(e.first,0),to:X(i.to.line+c,i.to.ch),text:[lt(i.text)],origin:i.origin}}var d=e.lastLine();i.to.line>d&&(i={from:i.from,to:X(d,Pt(e,d).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Cr(e,i.from,i.to),l||(l=wu(e,i)),e.cm?Hw(e.cm,i,s):_u(e,i,s),sa(e,l,G),e.cantEdit&&la(e,X(e.firstLine(),0))&&(e.cantEdit=!1)}}function Hw(e,i,l){var s=e.doc,c=e.display,d=i.from,m=i.to,y=!1,w=d.line;e.options.lineWrapping||(w=C(Kn(Pt(s,d.line))),s.iter(w,m.line+1,function(q){if(q==c.maxLine)return y=!0,!0})),s.sel.contains(i.from,i.to)>-1&&zn(e),_u(s,i,l,Bd(e)),e.options.lineWrapping||(s.iter(w,d.line+i.text.length,function(q){var Z=jl(q);Z>c.maxLineLength&&(c.maxLine=q,c.maxLineLength=Z,c.maxLineChanged=!0,y=!1)}),y&&(e.curOp.updateMaxLine=!0)),Mb(s,d.line),Ps(e,400);var _=i.text.length-(m.line-d.line)-1;i.full?on(e):d.line==m.line&&i.text.length==1&&!sp(e.doc,i)?ti(e,d.line,"text"):on(e,d.line,m.line+1,_);var N=bn(e,"changes"),D=bn(e,"change");if(D||N){var W={from:d,to:m,text:i.text,removed:i.removed,origin:i.origin};D&&Fe(e,"change",e,W),N&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(W)}e.display.selForContextMenu=null}function Ao(e,i,l,s,c){var d;s||(s=l),_t(s,l)<0&&(d=[s,l],l=d[0],s=d[1]),typeof i=="string"&&(i=e.splitLines(i)),Lo(e,{from:l,to:s,text:i,origin:c})}function kp(e,i,l,s){l<e.line?e.line+=s:i<e.line&&(e.line=i,e.ch=0)}function Cp(e,i,l,s){for(var c=0;c<e.length;++c){var d=e[c],m=!0;if(d.ranges){d.copied||(d=e[c]=d.deepCopy(),d.copied=!0);for(var y=0;y<d.ranges.length;y++)kp(d.ranges[y].anchor,i,l,s),kp(d.ranges[y].head,i,l,s);continue}for(var w=0;w<d.changes.length;++w){var _=d.changes[w];if(l<_.from.line)_.from=X(_.from.line+s,_.from.ch),_.to=X(_.to.line+s,_.to.ch);else if(i<=_.to.line){m=!1;break}}m||(e.splice(0,c+1),c=0)}}function Tp(e,i){var l=i.from.line,s=i.to.line,c=i.text.length-(s-l)-1;Cp(e.done,l,s,c),Cp(e.undone,l,s,c)}function Rs(e,i,l,s){var c=i,d=i;return typeof i=="number"?d=Pt(e,rd(e,i)):c=C(i),c==null?null:(s(d,c)&&e.cm&&ti(e.cm,c,l),d)}function zs(e){this.lines=e,this.parent=null;for(var i=0,l=0;l<e.length;++l)e[l].parent=this,i+=e[l].height;this.height=i}zs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,i){for(var l=e,s=e+i;l<s;++l){var c=this.lines[l];this.height-=c.height,Bb(c),Fe(c,"delete")}this.lines.splice(e,i)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,i,l){this.height+=l,this.lines=this.lines.slice(0,e).concat(i).concat(this.lines.slice(e));for(var s=0;s<i.length;++s)i[s].parent=this},iterN:function(e,i,l){for(var s=e+i;e<s;++e)if(l(this.lines[e]))return!0}};function Fs(e){this.children=e;for(var i=0,l=0,s=0;s<e.length;++s){var c=e[s];i+=c.chunkSize(),l+=c.height,c.parent=this}this.size=i,this.height=l,this.parent=null}Fs.prototype={chunkSize:function(){return this.size},removeInner:function(e,i){this.size-=i;for(var l=0;l<this.children.length;++l){var s=this.children[l],c=s.chunkSize();if(e<c){var d=Math.min(i,c-e),m=s.height;if(s.removeInner(e,d),this.height-=m-s.height,c==d&&(this.children.splice(l--,1),s.parent=null),(i-=d)==0)break;e=0}else e-=c}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof zs))){var y=[];this.collapse(y),this.children=[new zs(y)],this.children[0].parent=this}},collapse:function(e){for(var i=0;i<this.children.length;++i)this.children[i].collapse(e)},insertInner:function(e,i,l){this.size+=i.length,this.height+=l;for(var s=0;s<this.children.length;++s){var c=this.children[s],d=c.chunkSize();if(e<=d){if(c.insertInner(e,i,l),c.lines&&c.lines.length>50){for(var m=c.lines.length%25+25,y=m;y<c.lines.length;){var w=new zs(c.lines.slice(y,y+=25));c.height-=w.height,this.children.splice(++s,0,w),w.parent=this}c.lines=c.lines.slice(0,m),this.maybeSpill()}break}e-=d}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var i=e.children.splice(e.children.length-5,5),l=new Fs(i);if(e.parent){e.size-=l.size,e.height-=l.height;var c=Tt(e.parent.children,e);e.parent.children.splice(c+1,0,l)}else{var s=new Fs(e.children);s.parent=e,e.children=[s,l],e=s}l.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,i,l){for(var s=0;s<this.children.length;++s){var c=this.children[s],d=c.chunkSize();if(e<d){var m=Math.min(i,d-e);if(c.iterN(e,m,l))return!0;if((i-=m)==0)break;e=0}else e-=d}}};var Is=function(e,i,l){if(l)for(var s in l)l.hasOwnProperty(s)&&(this[s]=l[s]);this.doc=e,this.node=i};Is.prototype.clear=function(){var e=this.doc.cm,i=this.line.widgets,l=this.line,s=C(l);if(!(s==null||!i)){for(var c=0;c<i.length;++c)i[c]==this&&i.splice(c--,1);i.length||(l.widgets=null);var d=Cs(this);Nn(l,Math.max(0,l.height-d)),e&&(wn(e,function(){Ep(e,l,-d),ti(e,s,"widget")}),Fe(e,"lineWidgetCleared",e,this,s))}},Is.prototype.changed=function(){var e=this,i=this.height,l=this.doc.cm,s=this.line;this.height=null;var c=Cs(this)-i;c&&(Qr(this.doc,s)||Nn(s,s.height+c),l&&wn(l,function(){l.curOp.forceUpdate=!0,Ep(l,s,c),Fe(l,"lineWidgetChanged",l,e,C(s))}))},Wn(Is);function Ep(e,i,l){Er(i)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&pu(e,l)}function Bw(e,i,l,s){var c=new Is(e,l,s),d=e.cm;return d&&c.noHScroll&&(d.display.alignWidgets=!0),Rs(e,i,"widget",function(m){var y=m.widgets||(m.widgets=[]);if(c.insertAt==null?y.push(c):y.splice(Math.min(y.length,Math.max(0,c.insertAt)),0,c),c.line=m,d&&!Qr(e,m)){var w=Er(m)<e.scrollTop;Nn(m,m.height+Cs(c)),w&&pu(d,c.height),d.curOp.forceUpdate=!0}return!0}),d&&Fe(d,"lineWidgetAdded",d,c,typeof i=="number"?i:C(i)),c}var Lp=0,oi=function(e,i){this.lines=[],this.type=i,this.doc=e,this.id=++Lp};oi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,i=e&&!e.curOp;if(i&&Ri(e),bn(this,"clear")){var l=this.find();l&&Fe(this,"clear",l.from,l.to)}for(var s=null,c=null,d=0;d<this.lines.length;++d){var m=this.lines[d],y=_s(m.markedSpans,this);e&&!this.collapsed?ti(e,C(m),"text"):e&&(y.to!=null&&(c=C(m)),y.from!=null&&(s=C(m))),m.markedSpans=Ob(m.markedSpans,y),y.from==null&&this.collapsed&&!Qr(this.doc,m)&&e&&Nn(m,xo(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var w=0;w<this.lines.length;++w){var _=Kn(this.lines[w]),N=jl(_);N>e.display.maxLineLength&&(e.display.maxLine=_,e.display.maxLineLength=N,e.display.maxLineChanged=!0)}s!=null&&e&&this.collapsed&&on(e,s,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&mp(e.doc)),e&&Fe(e,"markerCleared",e,this,s,c),i&&zi(e),this.parent&&this.parent.clear()}},oi.prototype.find=function(e,i){e==null&&this.type=="bookmark"&&(e=1);for(var l,s,c=0;c<this.lines.length;++c){var d=this.lines[c],m=_s(d.markedSpans,this);if(m.from!=null&&(l=X(i?d:C(d),m.from),e==-1))return l;if(m.to!=null&&(s=X(i?d:C(d),m.to),e==1))return s}return l&&{from:l,to:s}},oi.prototype.changed=function(){var e=this,i=this.find(-1,!0),l=this,s=this.doc.cm;!i||!s||wn(s,function(){var c=i.line,d=C(i.line),m=eu(s,d);if(m&&(Dd(m),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!Qr(l.doc,c)&&l.height!=null){var y=l.height;l.height=null;var w=Cs(l)-y;w&&Nn(c,c.height+w)}Fe(s,"markerChanged",s,e)})},oi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Tt(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},oi.prototype.detachLine=function(e){if(this.lines.splice(Tt(this.lines,e),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},Wn(oi);function Mo(e,i,l,s,c){if(s&&s.shared)return Ww(e,i,l,s,c);if(e.cm&&!e.cm.curOp)return Ie(e.cm,Mo)(e,i,l,s,c);var d=new oi(e,c),m=_t(i,l);if(s&&nt(s,d,!1),m>0||m==0&&d.clearWhenEmpty!==!1)return d;if(d.replacedWith&&(d.collapsed=!0,d.widgetNode=I("span",[d.replacedWith],"CodeMirror-widget"),s.handleMouseEvents||d.widgetNode.setAttribute("cm-ignore-events","true"),s.insertLeft&&(d.widgetNode.insertLeft=!0)),d.collapsed){if(yd(e,i.line,i,l,d)||i.line!=l.line&&yd(e,l.line,i,l,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pb()}d.addToHistory&&up(e,{from:i,to:l,origin:"markText"},e.sel,NaN);var y=i.line,w=e.cm,_;if(e.iter(y,l.line+1,function(D){w&&d.collapsed&&!w.options.lineWrapping&&Kn(D)==w.display.maxLine&&(_=!0),d.collapsed&&y!=i.line&&Nn(D,0),Db(D,new Hl(d,y==i.line?i.ch:null,y==l.line?l.ch:null),e.cm&&e.cm.curOp),++y}),d.collapsed&&e.iter(i.line,l.line+1,function(D){Qr(e,D)&&Nn(D,0)}),d.clearOnEnter&&Rt(d,"beforeCursorEnter",function(){return d.clear()}),d.readOnly&&(Nb(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),d.collapsed&&(d.id=++Lp,d.atomic=!0),w){if(_&&(w.curOp.updateMaxLine=!0),d.collapsed)on(w,i.line,l.line+1);else if(d.className||d.startStyle||d.endStyle||d.css||d.attributes||d.title)for(var N=i.line;N<=l.line;N++)ti(w,N,"text");d.atomic&&mp(w.doc),Fe(w,"markerAdded",w,d)}return d}var qs=function(e,i){this.markers=e,this.primary=i;for(var l=0;l<e.length;++l)e[l].parent=this};qs.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Fe(this,"clear")}},qs.prototype.find=function(e,i){return this.primary.find(e,i)},Wn(qs);function Ww(e,i,l,s,c){s=nt(s),s.shared=!1;var d=[Mo(e,i,l,s,c)],m=d[0],y=s.widgetNode;return ii(e,function(w){y&&(s.widgetNode=y.cloneNode(!0)),d.push(Mo(w,Wt(w,i),Wt(w,l),s,c));for(var _=0;_<w.linked.length;++_)if(w.linked[_].isParent)return;m=lt(d)}),new qs(d,m)}function Ap(e){return e.findMarks(X(e.first,0),e.clipPos(X(e.lastLine())),function(i){return i.parent})}function Uw(e,i){for(var l=0;l<i.length;l++){var s=i[l],c=s.find(),d=e.clipPos(c.from),m=e.clipPos(c.to);if(_t(d,m)){var y=Mo(e,d,m,s.primary,s.primary.type);s.markers.push(y),y.parent=s}}}function jw(e){for(var i=function(s){var c=e[s],d=[c.primary.doc];ii(c.primary.doc,function(w){return d.push(w)});for(var m=0;m<c.markers.length;m++){var y=c.markers[m];Tt(d,y.doc)==-1&&(y.parent=null,c.markers.splice(m--,1))}},l=0;l<e.length;l++)i(l)}var Gw=0,sn=function(e,i,l,s,c){if(!(this instanceof sn))return new sn(e,i,l,s,c);l==null&&(l=0),Fs.call(this,[new zs([new yo("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var d=X(l,0);this.sel=ni(d),this.history=new ra(null),this.id=++Gw,this.modeOption=i,this.lineSep=s,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),_u(this,{from:d,to:d,text:e}),Ke(this,ni(d),G)};sn.prototype=Dt(Fs.prototype,{constructor:sn,iter:function(e,i,l){l?this.iterN(e-this.first,i-e,l):this.iterN(this.first,this.first+this.size,e)},insert:function(e,i){for(var l=0,s=0;s<i.length;++s)l+=i[s].height;this.insertInner(e-this.first,i,l)},remove:function(e,i){this.removeInner(e-this.first,i)},getValue:function(e){var i=ws(this,this.first,this.first+this.size);return e===!1?i:i.join(e||this.lineSeparator())},setValue:qe(function(e){var i=X(this.first,0),l=this.first+this.size-1;Lo(this,{from:i,to:X(l,Pt(this,l).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ls(this.cm,0,0),Ke(this,ni(i),G)}),replaceRange:function(e,i,l,s){i=Wt(this,i),l=l?Wt(this,l):i,Ao(this,e,i,l,s)},getRange:function(e,i,l){var s=Cr(this,Wt(this,e),Wt(this,i));return l===!1?s:l===""?s.join(""):s.join(l||this.lineSeparator())},getLine:function(e){var i=this.getLineHandle(e);return i&&i.text},getLineHandle:function(e){if(tt(this,e))return Pt(this,e)},getLineNumber:function(e){return C(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Pt(this,e)),Kn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Wt(this,e)},getCursor:function(e){var i=this.sel.primary(),l;return e==null||e=="head"?l=i.head:e=="anchor"?l=i.anchor:e=="end"||e=="to"||e===!1?l=i.to():l=i.from(),l},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:qe(function(e,i,l){pp(this,Wt(this,typeof e=="number"?X(e,i||0):e),null,l)}),setSelection:qe(function(e,i,l){pp(this,Wt(this,e),Wt(this,i||e),l)}),extendSelection:qe(function(e,i,l){oa(this,Wt(this,e),i&&Wt(this,i),l)}),extendSelections:qe(function(e,i){dp(this,id(this,e),i)}),extendSelectionsBy:qe(function(e,i){var l=ft(this.sel.ranges,e);dp(this,id(this,l),i)}),setSelections:qe(function(e,i,l){if(e.length){for(var s=[],c=0;c<e.length;c++)s[c]=new ce(Wt(this,e[c].anchor),Wt(this,e[c].head||e[c].anchor));i==null&&(i=Math.min(e.length-1,this.sel.primIndex)),Ke(this,Yn(this.cm,s,i),l)}}),addSelection:qe(function(e,i,l){var s=this.sel.ranges.slice(0);s.push(new ce(Wt(this,e),Wt(this,i||e))),Ke(this,Yn(this.cm,s,s.length-1),l)}),getSelection:function(e){for(var i=this.sel.ranges,l,s=0;s<i.length;s++){var c=Cr(this,i[s].from(),i[s].to());l=l?l.concat(c):c}return e===!1?l:l.join(e||this.lineSeparator())},getSelections:function(e){for(var i=[],l=this.sel.ranges,s=0;s<l.length;s++){var c=Cr(this,l[s].from(),l[s].to());e!==!1&&(c=c.join(e||this.lineSeparator())),i[s]=c}return i},replaceSelection:function(e,i,l){for(var s=[],c=0;c<this.sel.ranges.length;c++)s[c]=e;this.replaceSelections(s,i,l||"+input")},replaceSelections:qe(function(e,i,l){for(var s=[],c=this.sel,d=0;d<c.ranges.length;d++){var m=c.ranges[d];s[d]={from:m.from(),to:m.to(),text:this.splitLines(e[d]),origin:l}}for(var y=i&&i!="end"&&Ow(this,s,i),w=s.length-1;w>=0;w--)Lo(this,s[w]);y?gp(this,y):this.cm&&ko(this.cm)}),undo:qe(function(){aa(this,"undo")}),redo:qe(function(){aa(this,"redo")}),undoSelection:qe(function(){aa(this,"undo",!0)}),redoSelection:qe(function(){aa(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,i=0,l=0,s=0;s<e.done.length;s++)e.done[s].ranges||++i;for(var c=0;c<e.undone.length;c++)e.undone[c].ranges||++l;return{undo:i,redo:l}},clearHistory:function(){var e=this;this.history=new ra(this.history),ii(this,function(i){return i.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:To(this.history.done),undone:To(this.history.undone)}},setHistory:function(e){var i=this.history=new ra(this.history);i.done=To(e.done.slice(0),null,!0),i.undone=To(e.undone.slice(0),null,!0)},setGutterMarker:qe(function(e,i,l){return Rs(this,e,"gutter",function(s){var c=s.gutterMarkers||(s.gutterMarkers={});return c[i]=l,!l&&ie(c)&&(s.gutterMarkers=null),!0})}),clearGutter:qe(function(e){var i=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[e]&&Rs(i,l,"gutter",function(){return l.gutterMarkers[e]=null,ie(l.gutterMarkers)&&(l.gutterMarkers=null),!0})})}),lineInfo:function(e){var i;if(typeof e=="number"){if(!tt(this,e)||(i=e,e=Pt(this,e),!e))return null}else if(i=C(e),i==null)return null;return{line:i,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:qe(function(e,i,l){return Rs(this,e,i=="gutter"?"gutter":"class",function(s){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!s[c])s[c]=l;else{if(pt(l).test(s[c]))return!1;s[c]+=" "+l}return!0})}),removeLineClass:qe(function(e,i,l){return Rs(this,e,i=="gutter"?"gutter":"class",function(s){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",d=s[c];if(d)if(l==null)s[c]=null;else{var m=d.match(pt(l));if(!m)return!1;var y=m.index+m[0].length;s[c]=d.slice(0,m.index)+(!m.index||y==d.length?"":" ")+d.slice(y)||null}else return!1;return!0})}),addLineWidget:qe(function(e,i,l){return Bw(this,e,i,l)}),removeLineWidget:function(e){e.clear()},markText:function(e,i,l){return Mo(this,Wt(this,e),Wt(this,i),l,l&&l.type||"range")},setBookmark:function(e,i){var l={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return e=Wt(this,e),Mo(this,e,e,l,"bookmark")},findMarksAt:function(e){e=Wt(this,e);var i=[],l=Pt(this,e.line).markedSpans;if(l)for(var s=0;s<l.length;++s){var c=l[s];(c.from==null||c.from<=e.ch)&&(c.to==null||c.to>=e.ch)&&i.push(c.marker.parent||c.marker)}return i},findMarks:function(e,i,l){e=Wt(this,e),i=Wt(this,i);var s=[],c=e.line;return this.iter(e.line,i.line+1,function(d){var m=d.markedSpans;if(m)for(var y=0;y<m.length;y++){var w=m[y];!(w.to!=null&&c==e.line&&e.ch>=w.to||w.from==null&&c!=e.line||w.from!=null&&c==i.line&&w.from>=i.ch)&&(!l||l(w.marker))&&s.push(w.marker.parent||w.marker)}++c}),s},getAllMarks:function(){var e=[];return this.iter(function(i){var l=i.markedSpans;if(l)for(var s=0;s<l.length;++s)l[s].from!=null&&e.push(l[s].marker)}),e},posFromIndex:function(e){var i,l=this.first,s=this.lineSeparator().length;return this.iter(function(c){var d=c.text.length+s;if(d>e)return i=e,!0;e-=d,++l}),Wt(this,X(l,i))},indexFromPos:function(e){e=Wt(this,e);var i=e.ch;if(e.line<this.first||e.ch<0)return 0;var l=this.lineSeparator().length;return this.iter(this.first,e.line,function(s){i+=s.text.length+l}),i},copy:function(e){var i=new sn(ws(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,e&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(e){e||(e={});var i=this.first,l=this.first+this.size;e.from!=null&&e.from>i&&(i=e.from),e.to!=null&&e.to<l&&(l=e.to);var s=new sn(ws(this,i,l),e.mode||this.modeOption,i,this.lineSep,this.direction);return e.sharedHist&&(s.history=this.history),(this.linked||(this.linked=[])).push({doc:s,sharedHist:e.sharedHist}),s.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Uw(s,Ap(this)),s},unlinkDoc:function(e){if(e instanceof ye&&(e=e.doc),this.linked)for(var i=0;i<this.linked.length;++i){var l=this.linked[i];if(l.doc==e){this.linked.splice(i,1),e.unlinkDoc(this),jw(Ap(this));break}}if(e.history==this.history){var s=[e.id];ii(e,function(c){return s.push(c.id)},!0),e.history=new ra(null),e.history.done=To(this.history.done,s),e.history.undone=To(this.history.undone,s)}},iterLinkedDocs:function(e){ii(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Fn(e)},lineSeparator:function(){return this.lineSep||`
|
|
17
|
-
`},setDirection:qe(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(i){return i.order=null}),this.cm&&Dw(this.cm))})}),sn.prototype.eachLine=sn.prototype.iter;var Mp=0;function Vw(e){var i=this;if(Np(i),!(ke(i,e)||Lr(i.display,e))){Ve(e),p&&(Mp=+new Date);var l=Pi(i,e,!0),s=e.dataTransfer.files;if(!(!l||i.isReadOnly()))if(s&&s.length&&window.FileReader&&window.File)for(var c=s.length,d=Array(c),m=0,y=function(){++m==c&&Ie(i,function(){l=Wt(i.doc,l);var q={from:l,to:l,text:i.doc.splitLines(d.filter(function(Z){return Z!=null}).join(i.doc.lineSeparator())),origin:"paste"};Lo(i.doc,q),gp(i.doc,ni(Wt(i.doc,l),Wt(i.doc,ri(q))))})()},w=function(q,Z){if(i.options.allowDropFileTypes&&Tt(i.options.allowDropFileTypes,q.type)==-1){y();return}var rt=new FileReader;rt.onerror=function(){return y()},rt.onload=function(){var vt=rt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(vt)){y();return}d[Z]=vt,y()},rt.readAsText(q)},_=0;_<s.length;_++)w(s[_],_);else{if(i.state.draggingText&&i.doc.sel.contains(l)>-1){i.state.draggingText(e),setTimeout(function(){return i.display.input.focus()},20);return}try{var N=e.dataTransfer.getData("Text");if(N){var D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),sa(i.doc,ni(l,l)),D)for(var W=0;W<D.length;++W)Ao(i.doc,"",D[W].anchor,D[W].head,"drag");i.replaceSelection(N,"around","paste"),i.display.input.focus()}}catch{}}}}function Kw(e,i){if(p&&(!e.state.draggingText||+new Date-Mp<100)){Xr(i);return}if(!(ke(e,i)||Lr(e.display,i))&&(i.dataTransfer.setData("Text",e.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!A)){var l=k("img",null,null,"position: fixed; left: 0; top: 0;");l.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",P&&(l.width=l.height=1,e.display.wrapper.appendChild(l),l._top=l.offsetTop),i.dataTransfer.setDragImage(l,0,0),P&&l.parentNode.removeChild(l)}}function Xw(e,i){var l=Pi(e,i);if(l){var s=document.createDocumentFragment();cu(e,l,s),e.display.dragCursor||(e.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),z(e.display.dragCursor,s)}}function Np(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Pp(e){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),l=[],s=0;s<i.length;s++){var c=i[s].CodeMirror;c&&l.push(c)}l.length&&l[0].operation(function(){for(var d=0;d<l.length;d++)e(l[d])})}}var Op=!1;function Yw(){Op||(Zw(),Op=!0)}function Zw(){var e;Rt(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Pp(Jw)},100))}),Rt(window,"blur",function(){return Pp(So)})}function Jw(e){var i=e.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,e.setSize()}for(var si={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Hs=0;Hs<10;Hs++)si[Hs+48]=si[Hs+96]=String(Hs);for(var ca=65;ca<=90;ca++)si[ca]=String.fromCharCode(ca);for(var Bs=1;Bs<=12;Bs++)si[Bs+111]=si[Bs+63235]="F"+Bs;var Mr={};Mr.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Mr.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Mr.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Mr.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Mr.default=B?Mr.macDefault:Mr.pcDefault;function Qw(e){var i=e.split(/-(?!$)/);e=i[i.length-1];for(var l,s,c,d,m=0;m<i.length-1;m++){var y=i[m];if(/^(cmd|meta|m)$/i.test(y))d=!0;else if(/^a(lt)?$/i.test(y))l=!0;else if(/^(c|ctrl|control)$/i.test(y))s=!0;else if(/^s(hift)?$/i.test(y))c=!0;else throw new Error("Unrecognized modifier name: "+y)}return l&&(e="Alt-"+e),s&&(e="Ctrl-"+e),d&&(e="Cmd-"+e),c&&(e="Shift-"+e),e}function tx(e){var i={};for(var l in e)if(e.hasOwnProperty(l)){var s=e[l];if(/^(name|fallthrough|(de|at)tach)$/.test(l))continue;if(s=="..."){delete e[l];continue}for(var c=ft(l.split(" "),Qw),d=0;d<c.length;d++){var m=void 0,y=void 0;d==c.length-1?(y=c.join(" "),m=s):(y=c.slice(0,d+1).join(" "),m="...");var w=i[y];if(!w)i[y]=m;else if(w!=m)throw new Error("Inconsistent bindings for "+y)}delete e[l]}for(var _ in i)e[_]=i[_];return e}function No(e,i,l,s){i=ua(i);var c=i.call?i.call(e,s):i[e];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&l(c))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return No(e,i.fallthrough,l,s);for(var d=0;d<i.fallthrough.length;d++){var m=No(e,i.fallthrough[d],l,s);if(m)return m}}}function Dp(e){var i=typeof e=="string"?e:si[e.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function $p(e,i,l){var s=e;return i.altKey&&s!="Alt"&&(e="Alt-"+e),(et?i.metaKey:i.ctrlKey)&&s!="Ctrl"&&(e="Ctrl-"+e),(et?i.ctrlKey:i.metaKey)&&s!="Mod"&&(e="Cmd-"+e),!l&&i.shiftKey&&s!="Shift"&&(e="Shift-"+e),e}function Rp(e,i){if(P&&e.keyCode==34&&e.char)return!1;var l=si[e.keyCode];return l==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(l=e.code),$p(l,e,i))}function ua(e){return typeof e=="string"?Mr[e]:e}function Po(e,i){for(var l=e.doc.sel.ranges,s=[],c=0;c<l.length;c++){for(var d=i(l[c]);s.length&&_t(d.from,lt(s).to)<=0;){var m=s.pop();if(_t(m.from,d.from)<0){d.from=m.from;break}}s.push(d)}wn(e,function(){for(var y=s.length-1;y>=0;y--)Ao(e.doc,"",s[y].from,s[y].to,"+delete");ko(e)})}function Tu(e,i,l){var s=en(e.text,i+l,l);return s<0||s>e.text.length?null:s}function Eu(e,i,l){var s=Tu(e,i.ch,l);return s==null?null:new X(i.line,s,l<0?"after":"before")}function Lu(e,i,l,s,c){if(e){i.doc.direction=="rtl"&&(c=-c);var d=Kt(l,i.doc.direction);if(d){var m=c<0?lt(d):d[0],y=c<0==(m.level==1),w=y?"after":"before",_;if(m.level>0||i.doc.direction=="rtl"){var N=wo(i,l);_=c<0?l.text.length-1:0;var D=fr(i,N,_).top;_=Mn(function(W){return fr(i,N,W).top==D},c<0==(m.level==1)?m.from:m.to-1,_),w=="before"&&(_=Tu(l,_,1))}else _=c<0?m.to:m.from;return new X(s,_,w)}}return new X(s,c<0?l.text.length:0,c<0?"before":"after")}function ex(e,i,l,s){var c=Kt(i,e.doc.direction);if(!c)return Eu(i,l,s);l.ch>=i.text.length?(l.ch=i.text.length,l.sticky="before"):l.ch<=0&&(l.ch=0,l.sticky="after");var d=Le(c,l.ch,l.sticky),m=c[d];if(e.doc.direction=="ltr"&&m.level%2==0&&(s>0?m.to>l.ch:m.from<l.ch))return Eu(i,l,s);var y=function(bt,kt){return Tu(i,bt instanceof X?bt.ch:bt,kt)},w,_=function(bt){return e.options.lineWrapping?(w=w||wo(e,i),Hd(e,i,w,bt)):{begin:0,end:i.text.length}},N=_(l.sticky=="before"?y(l,-1):l.ch);if(e.doc.direction=="rtl"||m.level==1){var D=m.level==1==s<0,W=y(l,D?1:-1);if(W!=null&&(D?W<=m.to&&W<=N.end:W>=m.from&&W>=N.begin)){var q=D?"before":"after";return new X(l.line,W,q)}}var Z=function(bt,kt,wt){for(var Et=function(ge,He){return He?new X(l.line,y(ge,1),"before"):new X(l.line,ge,"after")};bt>=0&&bt<c.length;bt+=kt){var zt=c[bt],Ot=kt>0==(zt.level!=1),Vt=Ot?wt.begin:y(wt.end,-1);if(zt.from<=Vt&&Vt<zt.to||(Vt=Ot?zt.from:y(zt.to,-1),wt.begin<=Vt&&Vt<wt.end))return Et(Vt,Ot)}},rt=Z(d+s,s,N);if(rt)return rt;var vt=s>0?N.end:y(N.begin,-1);return vt!=null&&!(s>0&&vt==i.text.length)&&(rt=Z(s>0?0:c.length-1,s,_(vt)),rt)?rt:null}var Ws={selectAll:wp,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),G)},killLine:function(e){return Po(e,function(i){if(i.empty()){var l=Pt(e.doc,i.head.line).text.length;return i.head.ch==l&&i.head.line<e.lastLine()?{from:i.head,to:X(i.head.line+1,0)}:{from:i.head,to:X(i.head.line,l)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(e){return Po(e,function(i){return{from:X(i.from().line,0),to:Wt(e.doc,X(i.to().line+1,0))}})},delLineLeft:function(e){return Po(e,function(i){return{from:X(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(e){return Po(e,function(i){var l=e.charCoords(i.head,"div").top+5,s=e.coordsChar({left:0,top:l},"div");return{from:s,to:i.from()}})},delWrappedLineRight:function(e){return Po(e,function(i){var l=e.charCoords(i.head,"div").top+5,s=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:l},"div");return{from:i.from(),to:s}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(X(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(X(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(i){return zp(e,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(i){return Fp(e,i.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(i){return nx(e,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(i){var l=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:l},"div")},it)},goLineLeft:function(e){return e.extendSelectionsBy(function(i){var l=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:0,top:l},"div")},it)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(i){var l=e.cursorCoords(i.head,"div").top+5,s=e.coordsChar({left:0,top:l},"div");return s.ch<e.getLine(s.line).search(/\S/)?Fp(e,i.head):s},it)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var i=[],l=e.listSelections(),s=e.options.tabSize,c=0;c<l.length;c++){var d=l[c].from(),m=ot(e.getLine(d.line),d.ch,s);i.push(mt(s-m%s))}e.replaceSelections(i)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return wn(e,function(){for(var i=e.listSelections(),l=[],s=0;s<i.length;s++)if(i[s].empty()){var c=i[s].head,d=Pt(e.doc,c.line).text;if(d){if(c.ch==d.length&&(c=new X(c.line,c.ch-1)),c.ch>0)c=new X(c.line,c.ch+1),e.replaceRange(d.charAt(c.ch-1)+d.charAt(c.ch-2),X(c.line,c.ch-2),c,"+transpose");else if(c.line>e.doc.first){var m=Pt(e.doc,c.line-1).text;m&&(c=new X(c.line,1),e.replaceRange(d.charAt(0)+e.doc.lineSeparator()+m.charAt(m.length-1),X(c.line-1,m.length-1),c,"+transpose"))}}l.push(new ce(c,c))}e.setSelections(l)})},newlineAndIndent:function(e){return wn(e,function(){for(var i=e.listSelections(),l=i.length-1;l>=0;l--)e.replaceRange(e.doc.lineSeparator(),i[l].anchor,i[l].head,"+input");i=e.listSelections();for(var s=0;s<i.length;s++)e.indentLine(i[s].from().line,null,!0);ko(e)})},openLine:function(e){return e.replaceSelection(`
|
|
18
|
-
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function zp(e,i){var l=Pt(e.doc,i),s=Kn(l);return s!=l&&(i=C(s)),Lu(!0,e,s,i,1)}function nx(e,i){var l=Pt(e.doc,i),s=Ib(l);return s!=l&&(i=C(s)),Lu(!0,e,l,i,-1)}function Fp(e,i){var l=zp(e,i.line),s=Pt(e.doc,l.line),c=Kt(s,e.doc.direction);if(!c||c[0].level==0){var d=Math.max(l.ch,s.text.search(/\S/)),m=i.line==l.line&&i.ch<=d&&i.ch;return X(l.line,m?0:d,l.sticky)}return l}function fa(e,i,l){if(typeof i=="string"&&(i=Ws[i],!i))return!1;e.display.input.ensurePolled();var s=e.display.shift,c=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l&&(e.display.shift=!1),c=i(e)!=F}finally{e.display.shift=s,e.state.suppressEdits=!1}return c}function rx(e,i,l){for(var s=0;s<e.state.keyMaps.length;s++){var c=No(i,e.state.keyMaps[s],l,e);if(c)return c}return e.options.extraKeys&&No(i,e.options.extraKeys,l,e)||No(i,e.options.keyMap,l,e)}var ix=new Mt;function Us(e,i,l,s){var c=e.state.keySeq;if(c){if(Dp(i))return"handled";if(/\'$/.test(i)?e.state.keySeq=null:ix.set(50,function(){e.state.keySeq==c&&(e.state.keySeq=null,e.display.input.reset())}),Ip(e,c+" "+i,l,s))return!0}return Ip(e,i,l,s)}function Ip(e,i,l,s){var c=rx(e,i,s);return c=="multi"&&(e.state.keySeq=i),c=="handled"&&Fe(e,"keyHandled",e,i,l),(c=="handled"||c=="multi")&&(Ve(l),uu(e)),!!c}function qp(e,i){var l=Rp(i,!0);return l?i.shiftKey&&!e.state.keySeq?Us(e,"Shift-"+l,i,function(s){return fa(e,s,!0)})||Us(e,l,i,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return fa(e,s)}):Us(e,l,i,function(s){return fa(e,s)}):!1}function ox(e,i,l){return Us(e,"'"+l+"'",i,function(s){return fa(e,s,!0)})}var Au=null;function Hp(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&(i.curOp.focus=yt(Xt(i)),!ke(i,e))){p&&g<11&&e.keyCode==27&&(e.returnValue=!1);var l=e.keyCode;i.display.shift=l==16||e.shiftKey;var s=qp(i,e);P&&(Au=s?l:null,!s&&l==88&&!Il&&(B?e.metaKey:e.ctrlKey)&&i.replaceSelection("",null,"cut")),a&&!B&&!s&&l==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&sx(i)}}function sx(e){var i=e.display.lineDiv;Lt(i,"CodeMirror-crosshair");function l(s){(s.keyCode==18||!s.altKey)&&(gt(i,"CodeMirror-crosshair"),Ge(document,"keyup",l),Ge(document,"mouseover",l))}Rt(document,"keyup",l),Rt(document,"mouseover",l)}function Bp(e){e.keyCode==16&&(this.doc.sel.shift=!1),ke(this,e)}function Wp(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&!(Lr(i.display,e)||ke(i,e)||e.ctrlKey&&!e.altKey||B&&e.metaKey)){var l=e.keyCode,s=e.charCode;if(P&&l==Au){Au=null,Ve(e);return}if(!(P&&(!e.which||e.which<10)&&qp(i,e))){var c=String.fromCharCode(s??l);c!="\b"&&(ox(i,e,c)||i.display.input.onKeyPress(e))}}}var lx=400,Mu=function(e,i,l){this.time=e,this.pos=i,this.button=l};Mu.prototype.compare=function(e,i,l){return this.time+lx>e&&_t(i,this.pos)==0&&l==this.button};var js,Gs;function ax(e,i){var l=+new Date;return Gs&&Gs.compare(l,e,i)?(js=Gs=null,"triple"):js&&js.compare(l,e,i)?(Gs=new Mu(l,e,i),js=null,"double"):(js=new Mu(l,e,i),Gs=null,"single")}function Up(e){var i=this,l=i.display;if(!(ke(i,e)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=e.shiftKey,Lr(l,e)){v||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!Nu(i,e)){var s=Pi(i,e),c=Un(e),d=s?ax(s,c):"single";Ct(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(e),!(s&&cx(i,c,s,d,e))&&(c==1?s?fx(i,s,d,e):ms(e)==l.scroller&&Ve(e):c==2?(s&&oa(i.doc,s),setTimeout(function(){return l.input.focus()},20)):c==3&&(st?i.display.input.onContextMenu(e):fu(i)))}}}function cx(e,i,l,s,c){var d="Click";return s=="double"?d="Double"+d:s=="triple"&&(d="Triple"+d),d=(i==1?"Left":i==2?"Middle":"Right")+d,Us(e,$p(d,c),c,function(m){if(typeof m=="string"&&(m=Ws[m]),!m)return!1;var y=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),y=m(e,l)!=F}finally{e.state.suppressEdits=!1}return y})}function ux(e,i,l){var s=e.getOption("configureMouse"),c=s?s(e,i,l):{};if(c.unit==null){var d=K?l.shiftKey&&l.metaKey:l.altKey;c.unit=d?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(c.extend==null||e.doc.extend)&&(c.extend=e.doc.extend||l.shiftKey),c.addNew==null&&(c.addNew=B?l.metaKey:l.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(B?l.altKey:l.ctrlKey)),c}function fx(e,i,l,s){p?setTimeout(j(jd,e),0):e.curOp.focus=yt(Xt(e));var c=ux(e,l,s),d=e.doc.sel,m;e.options.dragDrop&&Wc&&!e.isReadOnly()&&l=="single"&&(m=d.contains(i))>-1&&(_t((m=d.ranges[m]).from(),i)<0||i.xRel>0)&&(_t(m.to(),i)>0||i.xRel<0)?hx(e,s,i,c):dx(e,s,i,c)}function hx(e,i,l,s){var c=e.display,d=!1,m=Ie(e,function(_){v&&(c.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:fu(e)),Ge(c.wrapper.ownerDocument,"mouseup",m),Ge(c.wrapper.ownerDocument,"mousemove",y),Ge(c.scroller,"dragstart",w),Ge(c.scroller,"drop",m),d||(Ve(_),s.addNew||oa(e.doc,l,null,null,s.extend),v&&!A||p&&g==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),y=function(_){d=d||Math.abs(i.clientX-_.clientX)+Math.abs(i.clientY-_.clientY)>=10},w=function(){return d=!0};v&&(c.scroller.draggable=!0),e.state.draggingText=m,m.copy=!s.moveOnDrag,Rt(c.wrapper.ownerDocument,"mouseup",m),Rt(c.wrapper.ownerDocument,"mousemove",y),Rt(c.scroller,"dragstart",w),Rt(c.scroller,"drop",m),e.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function jp(e,i,l){if(l=="char")return new ce(i,i);if(l=="word")return e.findWordAt(i);if(l=="line")return new ce(X(i.line,0),Wt(e.doc,X(i.line+1,0)));var s=l(e,i);return new ce(s.from,s.to)}function dx(e,i,l,s){p&&fu(e);var c=e.display,d=e.doc;Ve(i);var m,y,w=d.sel,_=w.ranges;if(s.addNew&&!s.extend?(y=d.sel.contains(l),y>-1?m=_[y]:m=new ce(l,l)):(m=d.sel.primary(),y=d.sel.primIndex),s.unit=="rectangle")s.addNew||(m=new ce(l,l)),l=Pi(e,i,!0,!0),y=-1;else{var N=jp(e,l,s.unit);s.extend?m=ku(m,N.anchor,N.head,s.extend):m=N}s.addNew?y==-1?(y=_.length,Ke(d,Yn(e,_.concat([m]),y),{scroll:!1,origin:"*mouse"})):_.length>1&&_[y].empty()&&s.unit=="char"&&!s.extend?(Ke(d,Yn(e,_.slice(0,y).concat(_.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),w=d.sel):Cu(d,y,m,Q):(y=0,Ke(d,new Pn([m],0),Q),w=d.sel);var D=l;function W(wt){if(_t(D,wt)!=0)if(D=wt,s.unit=="rectangle"){for(var Et=[],zt=e.options.tabSize,Ot=ot(Pt(d,l.line).text,l.ch,zt),Vt=ot(Pt(d,wt.line).text,wt.ch,zt),ge=Math.min(Ot,Vt),He=Math.max(Ot,Vt),xe=Math.min(l.line,wt.line),xn=Math.min(e.lastLine(),Math.max(l.line,wt.line));xe<=xn;xe++){var ln=Pt(d,xe).text,Me=at(ln,ge,zt);ge==He?Et.push(new ce(X(xe,Me),X(xe,Me))):ln.length>Me&&Et.push(new ce(X(xe,Me),X(xe,at(ln,He,zt))))}Et.length||Et.push(new ce(l,l)),Ke(d,Yn(e,w.ranges.slice(0,y).concat(Et),y),{origin:"*mouse",scroll:!1}),e.scrollIntoView(wt)}else{var an=m,We=jp(e,wt,s.unit),Oe=an.anchor,Ne;_t(We.anchor,Oe)>0?(Ne=We.head,Oe=mo(an.from(),We.anchor)):(Ne=We.anchor,Oe=rn(an.to(),We.head));var Te=w.ranges.slice(0);Te[y]=px(e,new ce(Wt(d,Oe),Ne)),Ke(d,Yn(e,Te,y),Q)}}var q=c.wrapper.getBoundingClientRect(),Z=0;function rt(wt){var Et=++Z,zt=Pi(e,wt,!0,s.unit=="rectangle");if(zt)if(_t(zt,D)!=0){e.curOp.focus=yt(Xt(e)),W(zt);var Ot=Ql(c,d);(zt.line>=Ot.to||zt.line<Ot.from)&&setTimeout(Ie(e,function(){Z==Et&&rt(wt)}),150)}else{var Vt=wt.clientY<q.top?-20:wt.clientY>q.bottom?20:0;Vt&&setTimeout(Ie(e,function(){Z==Et&&(c.scroller.scrollTop+=Vt,rt(wt))}),50)}}function vt(wt){e.state.selectingText=!1,Z=1/0,wt&&(Ve(wt),c.input.focus()),Ge(c.wrapper.ownerDocument,"mousemove",bt),Ge(c.wrapper.ownerDocument,"mouseup",kt),d.history.lastSelOrigin=null}var bt=Ie(e,function(wt){wt.buttons===0||!Un(wt)?vt(wt):rt(wt)}),kt=Ie(e,vt);e.state.selectingText=kt,Rt(c.wrapper.ownerDocument,"mousemove",bt),Rt(c.wrapper.ownerDocument,"mouseup",kt)}function px(e,i){var l=i.anchor,s=i.head,c=Pt(e.doc,l.line);if(_t(l,s)==0&&l.sticky==s.sticky)return i;var d=Kt(c);if(!d)return i;var m=Le(d,l.ch,l.sticky),y=d[m];if(y.from!=l.ch&&y.to!=l.ch)return i;var w=m+(y.from==l.ch==(y.level!=1)?0:1);if(w==0||w==d.length)return i;var _;if(s.line!=l.line)_=(s.line-l.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var N=Le(d,s.ch,s.sticky),D=N-m||(s.ch-l.ch)*(y.level==1?-1:1);N==w-1||N==w?_=D<0:_=D>0}var W=d[w+(_?-1:0)],q=_==(W.level==1),Z=q?W.from:W.to,rt=q?"after":"before";return l.ch==Z&&l.sticky==rt?i:new ce(new X(l.line,Z,rt),s)}function Gp(e,i,l,s){var c,d;if(i.touches)c=i.touches[0].clientX,d=i.touches[0].clientY;else try{c=i.clientX,d=i.clientY}catch{return!1}if(c>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;s&&Ve(i);var m=e.display,y=m.lineDiv.getBoundingClientRect();if(d>y.bottom||!bn(e,l))return nn(i);d-=y.top-m.viewOffset;for(var w=0;w<e.display.gutterSpecs.length;++w){var _=m.gutters.childNodes[w];if(_&&_.getBoundingClientRect().right>=c){var N=O(e.doc,d),D=e.display.gutterSpecs[w];return Se(e,l,e,N,D.className,i),nn(i)}}}function Nu(e,i){return Gp(e,i,"gutterClick",!0)}function Vp(e,i){Lr(e.display,i)||gx(e,i)||ke(e,i,"contextmenu")||st||e.display.input.onContextMenu(i)}function gx(e,i){return bn(e,"gutterContextMenu")?Gp(e,i,"gutterContextMenu",!1):!1}function Kp(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ts(e)}var Oo={toString:function(){return"CodeMirror.Init"}},Xp={},ha={};function vx(e){var i=e.optionHandlers;function l(s,c,d,m){e.defaults[s]=c,d&&(i[s]=m?function(y,w,_){_!=Oo&&d(y,w,_)}:d)}e.defineOption=l,e.Init=Oo,l("value","",function(s,c){return s.setValue(c)},!0),l("mode",null,function(s,c){s.doc.modeOption=c,xu(s)},!0),l("indentUnit",2,xu,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(s){Ds(s),Ts(s),on(s)},!0),l("lineSeparator",null,function(s,c){if(s.doc.lineSep=c,!!c){var d=[],m=s.doc.first;s.doc.iter(function(w){for(var _=0;;){var N=w.text.indexOf(c,_);if(N==-1)break;_=N+c.length,d.push(X(m,N))}m++});for(var y=d.length-1;y>=0;y--)Ao(s.doc,c,d[y],X(d[y].line,d[y].ch+c.length))}}),l("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(s,c,d){s.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),d!=Oo&&s.refresh()}),l("specialCharPlaceholder",jb,function(s){return s.refresh()},!0),l("electricChars",!0),l("inputStyle",E?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),l("spellcheck",!1,function(s,c){return s.getInputField().spellcheck=c},!0),l("autocorrect",!1,function(s,c){return s.getInputField().autocorrect=c},!0),l("autocapitalize",!1,function(s,c){return s.getInputField().autocapitalize=c},!0),l("rtlMoveVisually",!ht),l("wholeLineUpdateBefore",!0),l("theme","default",function(s){Kp(s),Os(s)},!0),l("keyMap","default",function(s,c,d){var m=ua(c),y=d!=Oo&&ua(d);y&&y.detach&&y.detach(s,m),m.attach&&m.attach(s,y||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,yx,!0),l("gutters",[],function(s,c){s.display.gutterSpecs=bu(c,s.options.lineNumbers),Os(s)},!0),l("fixedGutter",!0,function(s,c){s.display.gutters.style.left=c?lu(s.display)+"px":"0",s.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(s){return Co(s)},!0),l("scrollbarStyle","native",function(s){Zd(s),Co(s),s.display.scrollbars.setScrollTop(s.doc.scrollTop),s.display.scrollbars.setScrollLeft(s.doc.scrollLeft)},!0),l("lineNumbers",!1,function(s,c){s.display.gutterSpecs=bu(s.options.gutters,c),Os(s)},!0),l("firstLineNumber",1,Os,!0),l("lineNumberFormatter",function(s){return s},Os,!0),l("showCursorWhenSelecting",!1,Es,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(s,c){c=="nocursor"&&(So(s),s.display.input.blur()),s.display.input.readOnlyChanged(c)}),l("screenReaderLabel",null,function(s,c){c=c===""?null:c,s.display.input.screenReaderLabelChanged(c)}),l("disableInput",!1,function(s,c){c||s.display.input.reset()},!0),l("dragDrop",!0,mx),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,Es,!0),l("singleCursorHeightPerLine",!0,Es,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,Ds,!0),l("addModeClass",!1,Ds,!0),l("pollInterval",100),l("undoDepth",200,function(s,c){return s.doc.history.undoDepth=c}),l("historyEventDelay",1250),l("viewportMargin",10,function(s){return s.refresh()},!0),l("maxHighlightLength",1e4,Ds,!0),l("moveInputWithCursor",!0,function(s,c){c||s.display.input.resetPosition()}),l("tabindex",null,function(s,c){return s.display.input.getField().tabIndex=c||""}),l("autofocus",null),l("direction","ltr",function(s,c){return s.doc.setDirection(c)},!0),l("phrases",null)}function mx(e,i,l){var s=l&&l!=Oo;if(!i!=!s){var c=e.display.dragFunctions,d=i?Rt:Ge;d(e.display.scroller,"dragstart",c.start),d(e.display.scroller,"dragenter",c.enter),d(e.display.scroller,"dragover",c.over),d(e.display.scroller,"dragleave",c.leave),d(e.display.scroller,"drop",c.drop)}}function yx(e){e.options.lineWrapping?(Lt(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(gt(e.display.wrapper,"CodeMirror-wrap"),Zc(e)),au(e),on(e),Ts(e),setTimeout(function(){return Co(e)},100)}function ye(e,i){var l=this;if(!(this instanceof ye))return new ye(e,i);this.options=i=i?nt(i):{},nt(Xp,i,!1);var s=i.value;typeof s=="string"?s=new sn(s,i.mode,null,i.lineSeparator,i.direction):i.mode&&(s.modeOption=i.mode),this.doc=s;var c=new ye.inputStyles[i.inputStyle](this),d=this.display=new Nw(e,s,c,i);d.wrapper.CodeMirror=this,Kp(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Zd(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Mt,keySeq:null,specialChars:null},i.autofocus&&!E&&d.input.focus(),p&&g<11&&setTimeout(function(){return l.display.input.reset(!0)},20),bx(this),Yw(),Ri(this),this.curOp.forceUpdate=!0,lp(this,s),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&hu(l)},20):So(this);for(var m in ha)ha.hasOwnProperty(m)&&ha[m](this,i[m],Oo);tp(this),i.finishInit&&i.finishInit(this);for(var y=0;y<Pu.length;++y)Pu[y](this);zi(this),v&&i.lineWrapping&&getComputedStyle(d.lineDiv).textRendering=="optimizelegibility"&&(d.lineDiv.style.textRendering="auto")}ye.defaults=Xp,ye.optionHandlers=ha;function bx(e){var i=e.display;Rt(i.scroller,"mousedown",Ie(e,Up)),p&&g<11?Rt(i.scroller,"dblclick",Ie(e,function(w){if(!ke(e,w)){var _=Pi(e,w);if(!(!_||Nu(e,w)||Lr(e.display,w))){Ve(w);var N=e.findWordAt(_);oa(e.doc,N.anchor,N.head)}}})):Rt(i.scroller,"dblclick",function(w){return ke(e,w)||Ve(w)}),Rt(i.scroller,"contextmenu",function(w){return Vp(e,w)}),Rt(i.input.getField(),"contextmenu",function(w){i.scroller.contains(w.target)||Vp(e,w)});var l,s={end:0};function c(){i.activeTouch&&(l=setTimeout(function(){return i.activeTouch=null},1e3),s=i.activeTouch,s.end=+new Date)}function d(w){if(w.touches.length!=1)return!1;var _=w.touches[0];return _.radiusX<=1&&_.radiusY<=1}function m(w,_){if(_.left==null)return!0;var N=_.left-w.left,D=_.top-w.top;return N*N+D*D>20*20}Rt(i.scroller,"touchstart",function(w){if(!ke(e,w)&&!d(w)&&!Nu(e,w)){i.input.ensurePolled(),clearTimeout(l);var _=+new Date;i.activeTouch={start:_,moved:!1,prev:_-s.end<=300?s:null},w.touches.length==1&&(i.activeTouch.left=w.touches[0].pageX,i.activeTouch.top=w.touches[0].pageY)}}),Rt(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Rt(i.scroller,"touchend",function(w){var _=i.activeTouch;if(_&&!Lr(i,w)&&_.left!=null&&!_.moved&&new Date-_.start<300){var N=e.coordsChar(i.activeTouch,"page"),D;!_.prev||m(_,_.prev)?D=new ce(N,N):!_.prev.prev||m(_,_.prev.prev)?D=e.findWordAt(N):D=new ce(X(N.line,0),Wt(e.doc,X(N.line+1,0))),e.setSelection(D.anchor,D.head),e.focus(),Ve(w)}c()}),Rt(i.scroller,"touchcancel",c),Rt(i.scroller,"scroll",function(){i.scroller.clientHeight&&(As(e,i.scroller.scrollTop),Di(e,i.scroller.scrollLeft,!0),Se(e,"scroll",e))}),Rt(i.scroller,"mousewheel",function(w){return rp(e,w)}),Rt(i.scroller,"DOMMouseScroll",function(w){return rp(e,w)}),Rt(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(w){ke(e,w)||Xr(w)},over:function(w){ke(e,w)||(Xw(e,w),Xr(w))},start:function(w){return Kw(e,w)},drop:Ie(e,Vw),leave:function(w){ke(e,w)||Np(e)}};var y=i.input.getField();Rt(y,"keyup",function(w){return Bp.call(e,w)}),Rt(y,"keydown",Ie(e,Hp)),Rt(y,"keypress",Ie(e,Wp)),Rt(y,"focus",function(w){return hu(e,w)}),Rt(y,"blur",function(w){return So(e,w)})}var Pu=[];ye.defineInitHook=function(e){return Pu.push(e)};function Vs(e,i,l,s){var c=e.doc,d;l==null&&(l="add"),l=="smart"&&(c.mode.indent?d=xs(e,i).state:l="prev");var m=e.options.tabSize,y=Pt(c,i),w=ot(y.text,null,m);y.stateAfter&&(y.stateAfter=null);var _=y.text.match(/^\s*/)[0],N;if(!s&&!/\S/.test(y.text))N=0,l="not";else if(l=="smart"&&(N=c.mode.indent(d,y.text.slice(_.length),y.text),N==F||N>150)){if(!s)return;l="prev"}l=="prev"?i>c.first?N=ot(Pt(c,i-1).text,null,m):N=0:l=="add"?N=w+e.options.indentUnit:l=="subtract"?N=w-e.options.indentUnit:typeof l=="number"&&(N=w+l),N=Math.max(0,N);var D="",W=0;if(e.options.indentWithTabs)for(var q=Math.floor(N/m);q;--q)W+=m,D+=" ";if(W<N&&(D+=mt(N-W)),D!=_)return Ao(c,D,X(i,0),X(i,_.length),"+input"),y.stateAfter=null,!0;for(var Z=0;Z<c.sel.ranges.length;Z++){var rt=c.sel.ranges[Z];if(rt.head.line==i&&rt.head.ch<_.length){var vt=X(i,_.length);Cu(c,Z,new ce(vt,vt));break}}}var Zn=null;function da(e){Zn=e}function Ou(e,i,l,s,c){var d=e.doc;e.display.shift=!1,s||(s=d.sel);var m=+new Date-200,y=c=="paste"||e.state.pasteIncoming>m,w=Fn(i),_=null;if(y&&s.ranges.length>1)if(Zn&&Zn.text.join(`
|
|
19
|
-
`)==i){if(s.ranges.length%Zn.text.length==0){_=[];for(var N=0;N<Zn.text.length;N++)_.push(d.splitLines(Zn.text[N]))}}else w.length==s.ranges.length&&e.options.pasteLinesPerSelection&&(_=ft(w,function(bt){return[bt]}));for(var D=e.curOp.updateInput,W=s.ranges.length-1;W>=0;W--){var q=s.ranges[W],Z=q.from(),rt=q.to();q.empty()&&(l&&l>0?Z=X(Z.line,Z.ch-l):e.state.overwrite&&!y?rt=X(rt.line,Math.min(Pt(d,rt.line).text.length,rt.ch+lt(w).length)):y&&Zn&&Zn.lineWise&&Zn.text.join(`
|
|
20
|
-
`)==w.join(`
|
|
21
|
-
`)&&(Z=rt=X(Z.line,0)));var vt={from:Z,to:rt,text:_?_[W%_.length]:w,origin:c||(y?"paste":e.state.cutIncoming>m?"cut":"+input")};Lo(e.doc,vt),Fe(e,"inputRead",e,vt)}i&&!y&&Zp(e,i),ko(e),e.curOp.updateInput<2&&(e.curOp.updateInput=D),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Yp(e,i){var l=e.clipboardData&&e.clipboardData.getData("Text");if(l)return e.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&wn(i,function(){return Ou(i,l,0,null,"paste")}),!0}function Zp(e,i){if(!(!e.options.electricChars||!e.options.smartIndent))for(var l=e.doc.sel,s=l.ranges.length-1;s>=0;s--){var c=l.ranges[s];if(!(c.head.ch>100||s&&l.ranges[s-1].head.line==c.head.line)){var d=e.getModeAt(c.head),m=!1;if(d.electricChars){for(var y=0;y<d.electricChars.length;y++)if(i.indexOf(d.electricChars.charAt(y))>-1){m=Vs(e,c.head.line,"smart");break}}else d.electricInput&&d.electricInput.test(Pt(e.doc,c.head.line).text.slice(0,c.head.ch))&&(m=Vs(e,c.head.line,"smart"));m&&Fe(e,"electricInput",e,c.head.line)}}}function Jp(e){for(var i=[],l=[],s=0;s<e.doc.sel.ranges.length;s++){var c=e.doc.sel.ranges[s].head.line,d={anchor:X(c,0),head:X(c+1,0)};l.push(d),i.push(e.getRange(d.anchor,d.head))}return{text:i,ranges:l}}function Du(e,i,l,s){e.setAttribute("autocorrect",l?"on":"off"),e.setAttribute("autocapitalize",s?"on":"off"),e.setAttribute("spellcheck",!!i)}function Qp(){var e=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?e.style.width="1000px":e.setAttribute("wrap","off"),M&&(e.style.border="1px solid black"),i}function wx(e){var i=e.optionHandlers,l=e.helpers={};e.prototype={constructor:e,focus:function(){Ct(this).focus(),this.display.input.focus()},setOption:function(s,c){var d=this.options,m=d[s];d[s]==c&&s!="mode"||(d[s]=c,i.hasOwnProperty(s)&&Ie(this,i[s])(this,c,m),Se(this,"optionChange",this,s))},getOption:function(s){return this.options[s]},getDoc:function(){return this.doc},addKeyMap:function(s,c){this.state.keyMaps[c?"push":"unshift"](ua(s))},removeKeyMap:function(s){for(var c=this.state.keyMaps,d=0;d<c.length;++d)if(c[d]==s||c[d].name==s)return c.splice(d,1),!0},addOverlay:Ze(function(s,c){var d=s.token?s:e.getMode(this.options,s);if(d.startState)throw new Error("Overlays may not be stateful.");$t(this.state.overlays,{mode:d,modeSpec:s,opaque:c&&c.opaque,priority:c&&c.priority||0},function(m){return m.priority}),this.state.modeGen++,on(this)}),removeOverlay:Ze(function(s){for(var c=this.state.overlays,d=0;d<c.length;++d){var m=c[d].modeSpec;if(m==s||typeof s=="string"&&m.name==s){c.splice(d,1),this.state.modeGen++,on(this);return}}}),indentLine:Ze(function(s,c,d){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),tt(this.doc,s)&&Vs(this,s,c,d)}),indentSelection:Ze(function(s){for(var c=this.doc.sel.ranges,d=-1,m=0;m<c.length;m++){var y=c[m];if(y.empty())y.head.line>d&&(Vs(this,y.head.line,s,!0),d=y.head.line,m==this.doc.sel.primIndex&&ko(this));else{var w=y.from(),_=y.to(),N=Math.max(d,w.line);d=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var D=N;D<d;++D)Vs(this,D,s);var W=this.doc.sel.ranges;w.ch==0&&c.length==W.length&&W[m].from().ch>0&&Cu(this.doc,m,new ce(w,W[m].to()),G)}}}),getTokenAt:function(s,c){return cd(this,s,c)},getLineTokens:function(s,c){return cd(this,X(s),c,!0)},getTokenTypeAt:function(s){s=Wt(this.doc,s);var c=sd(this,Pt(this.doc,s.line)),d=0,m=(c.length-1)/2,y=s.ch,w;if(y==0)w=c[2];else for(;;){var _=d+m>>1;if((_?c[_*2-1]:0)>=y)m=_;else if(c[_*2+1]<y)d=_+1;else{w=c[_*2+2];break}}var N=w?w.indexOf("overlay "):-1;return N<0?w:N==0?null:w.slice(0,N-1)},getModeAt:function(s){var c=this.doc.mode;return c.innerMode?e.innerMode(c,this.getTokenAt(s).state).mode:c},getHelper:function(s,c){return this.getHelpers(s,c)[0]},getHelpers:function(s,c){var d=[];if(!l.hasOwnProperty(c))return d;var m=l[c],y=this.getModeAt(s);if(typeof y[c]=="string")m[y[c]]&&d.push(m[y[c]]);else if(y[c])for(var w=0;w<y[c].length;w++){var _=m[y[c][w]];_&&d.push(_)}else y.helperType&&m[y.helperType]?d.push(m[y.helperType]):m[y.name]&&d.push(m[y.name]);for(var N=0;N<m._global.length;N++){var D=m._global[N];D.pred(y,this)&&Tt(d,D.val)==-1&&d.push(D.val)}return d},getStateAfter:function(s,c){var d=this.doc;return s=rd(d,s??d.first+d.size-1),xs(this,s+1,c).state},cursorCoords:function(s,c){var d,m=this.doc.sel.primary();return s==null?d=m.head:typeof s=="object"?d=Wt(this.doc,s):d=s?m.from():m.to(),Xn(this,d,c||"page")},charCoords:function(s,c){return Xl(this,Wt(this.doc,s),c||"page")},coordsChar:function(s,c){return s=Fd(this,s,c||"page"),iu(this,s.left,s.top)},lineAtHeight:function(s,c){return s=Fd(this,{top:s,left:0},c||"page").top,O(this.doc,s+this.display.viewOffset)},heightAtLine:function(s,c,d){var m=!1,y;if(typeof s=="number"){var w=this.doc.first+this.doc.size-1;s<this.doc.first?s=this.doc.first:s>w&&(s=w,m=!0),y=Pt(this.doc,s)}else y=s;return Kl(this,y,{top:0,left:0},c||"page",d||m).top+(m?this.doc.height-Er(y):0)},defaultTextHeight:function(){return xo(this.display)},defaultCharWidth:function(){return _o(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(s,c,d,m,y){var w=this.display;s=Xn(this,Wt(this.doc,s));var _=s.bottom,N=s.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),w.sizer.appendChild(c),m=="over")_=s.top;else if(m=="above"||m=="near"){var D=Math.max(w.wrapper.clientHeight,this.doc.height),W=Math.max(w.sizer.clientWidth,w.lineSpace.clientWidth);(m=="above"||s.bottom+c.offsetHeight>D)&&s.top>c.offsetHeight?_=s.top-c.offsetHeight:s.bottom+c.offsetHeight<=D&&(_=s.bottom),N+c.offsetWidth>W&&(N=W-c.offsetWidth)}c.style.top=_+"px",c.style.left=c.style.right="",y=="right"?(N=w.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(y=="left"?N=0:y=="middle"&&(N=(w.sizer.clientWidth-c.offsetWidth)/2),c.style.left=N+"px"),d&&mw(this,{left:N,top:_,right:N+c.offsetWidth,bottom:_+c.offsetHeight})},triggerOnKeyDown:Ze(Hp),triggerOnKeyPress:Ze(Wp),triggerOnKeyUp:Bp,triggerOnMouseDown:Ze(Up),execCommand:function(s){if(Ws.hasOwnProperty(s))return Ws[s].call(null,this)},triggerElectric:Ze(function(s){Zp(this,s)}),findPosH:function(s,c,d,m){var y=1;c<0&&(y=-1,c=-c);for(var w=Wt(this.doc,s),_=0;_<c&&(w=$u(this.doc,w,y,d,m),!w.hitSide);++_);return w},moveH:Ze(function(s,c){var d=this;this.extendSelectionsBy(function(m){return d.display.shift||d.doc.extend||m.empty()?$u(d.doc,m.head,s,c,d.options.rtlMoveVisually):s<0?m.from():m.to()},it)}),deleteH:Ze(function(s,c){var d=this.doc.sel,m=this.doc;d.somethingSelected()?m.replaceSelection("",null,"+delete"):Po(this,function(y){var w=$u(m,y.head,s,c,!1);return s<0?{from:w,to:y.head}:{from:y.head,to:w}})}),findPosV:function(s,c,d,m){var y=1,w=m;c<0&&(y=-1,c=-c);for(var _=Wt(this.doc,s),N=0;N<c;++N){var D=Xn(this,_,"div");if(w==null?w=D.left:D.left=w,_=tg(this,D,y,d),_.hitSide)break}return _},moveV:Ze(function(s,c){var d=this,m=this.doc,y=[],w=!this.display.shift&&!m.extend&&m.sel.somethingSelected();if(m.extendSelectionsBy(function(N){if(w)return s<0?N.from():N.to();var D=Xn(d,N.head,"div");N.goalColumn!=null&&(D.left=N.goalColumn),y.push(D.left);var W=tg(d,D,s,c);return c=="page"&&N==m.sel.primary()&&pu(d,Xl(d,W,"div").top-D.top),W},it),y.length)for(var _=0;_<m.sel.ranges.length;_++)m.sel.ranges[_].goalColumn=y[_]}),findWordAt:function(s){var c=this.doc,d=Pt(c,s.line).text,m=s.ch,y=s.ch;if(d){var w=this.getHelper(s,"wordChars");(s.sticky=="before"||y==d.length)&&m?--m:++y;for(var _=d.charAt(m),N=te(_,w)?function(D){return te(D,w)}:/\s/.test(_)?function(D){return/\s/.test(D)}:function(D){return!/\s/.test(D)&&!te(D)};m>0&&N(d.charAt(m-1));)--m;for(;y<d.length&&N(d.charAt(y));)++y}return new ce(X(s.line,m),X(s.line,y))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Lt(this.display.cursorDiv,"CodeMirror-overwrite"):gt(this.display.cursorDiv,"CodeMirror-overwrite"),Se(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==yt(Xt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ze(function(s,c){Ls(this,s,c)}),getScrollInfo:function(){var s=this.display.scroller;return{left:s.scrollLeft,top:s.scrollTop,height:s.scrollHeight-ur(this)-this.display.barHeight,width:s.scrollWidth-ur(this)-this.display.barWidth,clientHeight:tu(this),clientWidth:Mi(this)}},scrollIntoView:Ze(function(s,c){s==null?(s={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof s=="number"?s={from:X(s,0),to:null}:s.from==null&&(s={from:s,to:null}),s.to||(s.to=s.from),s.margin=c||0,s.from.line!=null?yw(this,s):Vd(this,s.from,s.to,s.margin)}),setSize:Ze(function(s,c){var d=this,m=function(w){return typeof w=="number"||/^\d+$/.test(String(w))?w+"px":w};s!=null&&(this.display.wrapper.style.width=m(s)),c!=null&&(this.display.wrapper.style.height=m(c)),this.options.lineWrapping&&$d(this);var y=this.display.viewFrom;this.doc.iter(y,this.display.viewTo,function(w){if(w.widgets){for(var _=0;_<w.widgets.length;_++)if(w.widgets[_].noHScroll){ti(d,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,Se(this,"refresh",this)}),operation:function(s){return wn(this,s)},startOperation:function(){return Ri(this)},endOperation:function(){return zi(this)},refresh:Ze(function(){var s=this.display.cachedTextHeight;on(this),this.curOp.forceUpdate=!0,Ts(this),Ls(this,this.doc.scrollLeft,this.doc.scrollTop),mu(this.display),(s==null||Math.abs(s-xo(this.display))>.5||this.options.lineWrapping)&&au(this),Se(this,"refresh",this)}),swapDoc:Ze(function(s){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),lp(this,s),Ts(this),this.display.input.reset(),Ls(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,Fe(this,"swapDoc",this,c),c}),phrase:function(s){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,s)?c[s]:s},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Wn(e),e.registerHelper=function(s,c,d){l.hasOwnProperty(s)||(l[s]=e[s]={_global:[]}),l[s][c]=d},e.registerGlobalHelper=function(s,c,d,m){e.registerHelper(s,c,m),l[s]._global.push({pred:d,val:m})}}function $u(e,i,l,s,c){var d=i,m=l,y=Pt(e,i.line),w=c&&e.direction=="rtl"?-l:l;function _(){var kt=i.line+w;return kt<e.first||kt>=e.first+e.size?!1:(i=new X(kt,i.ch,i.sticky),y=Pt(e,kt))}function N(kt){var wt;if(s=="codepoint"){var Et=y.text.charCodeAt(i.ch+(l>0?0:-1));if(isNaN(Et))wt=null;else{var zt=l>0?Et>=55296&&Et<56320:Et>=56320&&Et<57343;wt=new X(i.line,Math.max(0,Math.min(y.text.length,i.ch+l*(zt?2:1))),-l)}}else c?wt=ex(e.cm,y,i,l):wt=Eu(y,i,l);if(wt==null)if(!kt&&_())i=Lu(c,e.cm,y,i.line,w);else return!1;else i=wt;return!0}if(s=="char"||s=="codepoint")N();else if(s=="column")N(!0);else if(s=="word"||s=="group")for(var D=null,W=s=="group",q=e.cm&&e.cm.getHelper(i,"wordChars"),Z=!0;!(l<0&&!N(!Z));Z=!1){var rt=y.text.charAt(i.ch)||`
|
|
22
|
-
`,vt=te(rt,q)?"w":W&&rt==`
|
|
23
|
-
`?"n":!W||/\s/.test(rt)?null:"p";if(W&&!Z&&!vt&&(vt="s"),D&&D!=vt){l<0&&(l=1,N(),i.sticky="after");break}if(vt&&(D=vt),l>0&&!N(!Z))break}var bt=la(e,i,d,m,!0);return ae(d,bt)&&(bt.hitSide=!0),bt}function tg(e,i,l,s){var c=e.doc,d=i.left,m;if(s=="page"){var y=Math.min(e.display.wrapper.clientHeight,Ct(e).innerHeight||c(e).documentElement.clientHeight),w=Math.max(y-.5*xo(e.display),3);m=(l>0?i.bottom:i.top)+l*w}else s=="line"&&(m=l>0?i.bottom+3:i.top-3);for(var _;_=iu(e,d,m),!!_.outside;){if(l<0?m<=0:m>=c.height){_.hitSide=!0;break}m+=l*5}return _}var he=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Mt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};he.prototype.init=function(e){var i=this,l=this,s=l.cm,c=l.div=e.lineDiv;c.contentEditable=!0,Du(c,s.options.spellcheck,s.options.autocorrect,s.options.autocapitalize);function d(y){for(var w=y.target;w;w=w.parentNode){if(w==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(w.className))break}return!1}Rt(c,"paste",function(y){!d(y)||ke(s,y)||Yp(y,s)||g<=11&&setTimeout(Ie(s,function(){return i.updateFromDOM()}),20)}),Rt(c,"compositionstart",function(y){i.composing={data:y.data,done:!1}}),Rt(c,"compositionupdate",function(y){i.composing||(i.composing={data:y.data,done:!1})}),Rt(c,"compositionend",function(y){i.composing&&(y.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Rt(c,"touchstart",function(){return l.forceCompositionEnd()}),Rt(c,"input",function(){i.composing||i.readFromDOMSoon()});function m(y){if(!(!d(y)||ke(s,y))){if(s.somethingSelected())da({lineWise:!1,text:s.getSelections()}),y.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var w=Jp(s);da({lineWise:!0,text:w.text}),y.type=="cut"&&s.operation(function(){s.setSelections(w.ranges,0,G),s.replaceSelection("",null,"cut")})}else return;if(y.clipboardData){y.clipboardData.clearData();var _=Zn.text.join(`
|
|
24
|
-
`);if(y.clipboardData.setData("Text",_),y.clipboardData.getData("Text")==_){y.preventDefault();return}}var N=Qp(),D=N.firstChild;Du(D),s.display.lineSpace.insertBefore(N,s.display.lineSpace.firstChild),D.value=Zn.text.join(`
|
|
25
|
-
`);var W=yt(jt(c));Ht(D),setTimeout(function(){s.display.lineSpace.removeChild(N),W.focus(),W==c&&l.showPrimarySelection()},50)}}Rt(c,"copy",m),Rt(c,"cut",m)},he.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},he.prototype.prepareSelection=function(){var e=Ud(this.cm,!1);return e.focus=yt(jt(this.div))==this.div,e},he.prototype.showSelection=function(e,i){!e||!this.cm.display.view.length||((e.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(e))},he.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},he.prototype.showPrimarySelection=function(){var e=this.getSelection(),i=this.cm,l=i.doc.sel.primary(),s=l.from(),c=l.to();if(i.display.viewTo==i.display.viewFrom||s.line>=i.display.viewTo||c.line<i.display.viewFrom){e.removeAllRanges();return}var d=pa(i,e.anchorNode,e.anchorOffset),m=pa(i,e.focusNode,e.focusOffset);if(!(d&&!d.bad&&m&&!m.bad&&_t(mo(d,m),s)==0&&_t(rn(d,m),c)==0)){var y=i.display.view,w=s.line>=i.display.viewFrom&&eg(i,s)||{node:y[0].measure.map[2],offset:0},_=c.line<i.display.viewTo&&eg(i,c);if(!_){var N=y[y.length-1].measure,D=N.maps?N.maps[N.maps.length-1]:N.map;_={node:D[D.length-1],offset:D[D.length-2]-D[D.length-3]}}if(!w||!_){e.removeAllRanges();return}var W=e.rangeCount&&e.getRangeAt(0),q;try{q=H(w.node,w.offset,_.offset,_.node)}catch{}q&&(!a&&i.state.focused?(e.collapse(w.node,w.offset),q.collapsed||(e.removeAllRanges(),e.addRange(q))):(e.removeAllRanges(),e.addRange(q)),W&&e.anchorNode==null?e.addRange(W):a&&this.startGracePeriod()),this.rememberSelection()}},he.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},he.prototype.showMultipleSelections=function(e){z(this.cm.display.cursorDiv,e.cursors),z(this.cm.display.selectionDiv,e.selection)},he.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},he.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var i=e.getRangeAt(0).commonAncestorContainer;return J(this.div,i)},he.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||yt(jt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},he.prototype.blur=function(){this.div.blur()},he.prototype.getField=function(){return this.div},he.prototype.supportsTouch=function(){return!0},he.prototype.receivedFocus=function(){var e=this,i=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):wn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function l(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,l))}this.polling.set(this.cm.options.pollInterval,l)},he.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},he.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),i=this.cm;if(R&&x&&this.cm.display.gutterSpecs.length&&xx(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=pa(i,e.anchorNode,e.anchorOffset),s=pa(i,e.focusNode,e.focusOffset);l&&s&&wn(i,function(){Ke(i.doc,ni(l,s),G),(l.bad||s.bad)&&(i.curOp.selectionChanged=!0)})}}},he.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,i=e.display,l=e.doc.sel.primary(),s=l.from(),c=l.to();if(s.ch==0&&s.line>e.firstLine()&&(s=X(s.line-1,Pt(e.doc,s.line-1).length)),c.ch==Pt(e.doc,c.line).text.length&&c.line<e.lastLine()&&(c=X(c.line+1,0)),s.line<i.viewFrom||c.line>i.viewTo-1)return!1;var d,m,y;s.line==i.viewFrom||(d=Oi(e,s.line))==0?(m=C(i.view[0].line),y=i.view[0].node):(m=C(i.view[d].line),y=i.view[d-1].node.nextSibling);var w=Oi(e,c.line),_,N;if(w==i.view.length-1?(_=i.viewTo-1,N=i.lineDiv.lastChild):(_=C(i.view[w+1].line)-1,N=i.view[w+1].node.previousSibling),!y)return!1;for(var D=e.doc.splitLines(_x(e,y,N,m,_)),W=Cr(e.doc,X(m,0),X(_,Pt(e.doc,_).text.length));D.length>1&&W.length>1;)if(lt(D)==lt(W))D.pop(),W.pop(),_--;else if(D[0]==W[0])D.shift(),W.shift(),m++;else break;for(var q=0,Z=0,rt=D[0],vt=W[0],bt=Math.min(rt.length,vt.length);q<bt&&rt.charCodeAt(q)==vt.charCodeAt(q);)++q;for(var kt=lt(D),wt=lt(W),Et=Math.min(kt.length-(D.length==1?q:0),wt.length-(W.length==1?q:0));Z<Et&&kt.charCodeAt(kt.length-Z-1)==wt.charCodeAt(wt.length-Z-1);)++Z;if(D.length==1&&W.length==1&&m==s.line)for(;q&&q>s.ch&&kt.charCodeAt(kt.length-Z-1)==wt.charCodeAt(wt.length-Z-1);)q--,Z++;D[D.length-1]=kt.slice(0,kt.length-Z).replace(/^\u200b+/,""),D[0]=D[0].slice(q).replace(/\u200b+$/,"");var zt=X(m,q),Ot=X(_,W.length?lt(W).length-Z:0);if(D.length>1||D[0]||_t(zt,Ot))return Ao(e.doc,D,zt,Ot,"+input"),!0},he.prototype.ensurePolled=function(){this.forceCompositionEnd()},he.prototype.reset=function(){this.forceCompositionEnd()},he.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},he.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},he.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&wn(this.cm,function(){return on(e.cm)})},he.prototype.setUneditable=function(e){e.contentEditable="false"},he.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ie(this.cm,Ou)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},he.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},he.prototype.onContextMenu=function(){},he.prototype.resetPosition=function(){},he.prototype.needsContentAttribute=!0;function eg(e,i){var l=eu(e,i.line);if(!l||l.hidden)return null;var s=Pt(e.doc,i.line),c=Md(l,s,i.line),d=Kt(s,e.doc.direction),m="left";if(d){var y=Le(d,i.ch);m=y%2?"right":"left"}var w=Od(c.map,i.ch,m);return w.offset=w.collapse=="right"?w.end:w.start,w}function xx(e){for(var i=e;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function Do(e,i){return i&&(e.bad=!0),e}function _x(e,i,l,s,c){var d="",m=!1,y=e.doc.lineSeparator(),w=!1;function _(q){return function(Z){return Z.id==q}}function N(){m&&(d+=y,w&&(d+=y),m=w=!1)}function D(q){q&&(N(),d+=q)}function W(q){if(q.nodeType==1){var Z=q.getAttribute("cm-text");if(Z){D(Z);return}var rt=q.getAttribute("cm-marker"),vt;if(rt){var bt=e.findMarks(X(s,0),X(c+1,0),_(+rt));bt.length&&(vt=bt[0].find(0))&&D(Cr(e.doc,vt.from,vt.to).join(y));return}if(q.getAttribute("contenteditable")=="false")return;var kt=/^(pre|div|p|li|table|br)$/i.test(q.nodeName);if(!/^br$/i.test(q.nodeName)&&q.textContent.length==0)return;kt&&N();for(var wt=0;wt<q.childNodes.length;wt++)W(q.childNodes[wt]);/^(pre|p)$/i.test(q.nodeName)&&(w=!0),kt&&(m=!0)}else q.nodeType==3&&D(q.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;W(i),i!=l;)i=i.nextSibling,w=!1;return d}function pa(e,i,l){var s;if(i==e.display.lineDiv){if(s=e.display.lineDiv.childNodes[l],!s)return Do(e.clipPos(X(e.display.viewTo-1)),!0);i=null,l=0}else for(s=i;;s=s.parentNode){if(!s||s==e.display.lineDiv)return null;if(s.parentNode&&s.parentNode==e.display.lineDiv)break}for(var c=0;c<e.display.view.length;c++){var d=e.display.view[c];if(d.node==s)return Sx(d,i,l)}}function Sx(e,i,l){var s=e.text.firstChild,c=!1;if(!i||!J(s,i))return Do(X(C(e.line),0),!0);if(i==s&&(c=!0,i=s.childNodes[l],l=0,!i)){var d=e.rest?lt(e.rest):e.line;return Do(X(C(d),d.text.length),c)}var m=i.nodeType==3?i:null,y=i;for(!m&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(m=i.firstChild,l&&(l=m.nodeValue.length));y.parentNode!=s;)y=y.parentNode;var w=e.measure,_=w.maps;function N(vt,bt,kt){for(var wt=-1;wt<(_?_.length:0);wt++)for(var Et=wt<0?w.map:_[wt],zt=0;zt<Et.length;zt+=3){var Ot=Et[zt+2];if(Ot==vt||Ot==bt){var Vt=C(wt<0?e.line:e.rest[wt]),ge=Et[zt]+kt;return(kt<0||Ot!=vt)&&(ge=Et[zt+(kt?1:0)]),X(Vt,ge)}}}var D=N(m,y,l);if(D)return Do(D,c);for(var W=y.nextSibling,q=m?m.nodeValue.length-l:0;W;W=W.nextSibling){if(D=N(W,W.firstChild,0),D)return Do(X(D.line,D.ch-q),c);q+=W.textContent.length}for(var Z=y.previousSibling,rt=l;Z;Z=Z.previousSibling){if(D=N(Z,Z.firstChild,-1),D)return Do(X(D.line,D.ch+rt),c);rt+=Z.textContent.length}}var Ae=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Mt,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ae.prototype.init=function(e){var i=this,l=this,s=this.cm;this.createField(e);var c=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),M&&(c.style.width="0px"),Rt(c,"input",function(){p&&g>=9&&i.hasSelection&&(i.hasSelection=null),l.poll()}),Rt(c,"paste",function(m){ke(s,m)||Yp(m,s)||(s.state.pasteIncoming=+new Date,l.fastPoll())});function d(m){if(!ke(s,m)){if(s.somethingSelected())da({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var y=Jp(s);da({lineWise:!0,text:y.text}),m.type=="cut"?s.setSelections(y.ranges,null,G):(l.prevInput="",c.value=y.text.join(`
|
|
26
|
-
`),Ht(c))}else return;m.type=="cut"&&(s.state.cutIncoming=+new Date)}}Rt(c,"cut",d),Rt(c,"copy",d),Rt(e.scroller,"paste",function(m){if(!(Lr(e,m)||ke(s,m))){if(!c.dispatchEvent){s.state.pasteIncoming=+new Date,l.focus();return}var y=new Event("paste");y.clipboardData=m.clipboardData,c.dispatchEvent(y)}}),Rt(e.lineSpace,"selectstart",function(m){Lr(e,m)||Ve(m)}),Rt(c,"compositionstart",function(){var m=s.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:m,range:s.markText(m,s.getCursor("to"),{className:"CodeMirror-composing"})}}),Rt(c,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},Ae.prototype.createField=function(e){this.wrapper=Qp(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;Du(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Ae.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ae.prototype.prepareSelection=function(){var e=this.cm,i=e.display,l=e.doc,s=Ud(e);if(e.options.moveInputWithCursor){var c=Xn(e,l.sel.primary().head,"div"),d=i.wrapper.getBoundingClientRect(),m=i.lineDiv.getBoundingClientRect();s.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,c.top+m.top-d.top)),s.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,c.left+m.left-d.left))}return s},Ae.prototype.showSelection=function(e){var i=this.cm,l=i.display;z(l.cursorDiv,e.cursors),z(l.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ae.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var l=i.getSelection();this.textarea.value=l,i.state.focused&&Ht(this.textarea),p&&g>=9&&(this.hasSelection=l)}else e||(this.prevInput=this.textarea.value="",p&&g>=9&&(this.hasSelection=null));this.resetting=!1}},Ae.prototype.getField=function(){return this.textarea},Ae.prototype.supportsTouch=function(){return!1},Ae.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||yt(jt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ae.prototype.blur=function(){this.textarea.blur()},Ae.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ae.prototype.receivedFocus=function(){this.slowPoll()},Ae.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ae.prototype.fastPoll=function(){var e=!1,i=this;i.pollingFast=!0;function l(){var s=i.poll();!s&&!e?(e=!0,i.polling.set(60,l)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,l)},Ae.prototype.poll=function(){var e=this,i=this.cm,l=this.textarea,s=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Zr(l)&&!s&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var c=l.value;if(c==s&&!i.somethingSelected())return!1;if(p&&g>=9&&this.hasSelection===c||B&&/[\uf700-\uf7ff]/.test(c))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var d=c.charCodeAt(0);if(d==8203&&!s&&(s=""),d==8666)return this.reset(),this.cm.execCommand("undo")}for(var m=0,y=Math.min(s.length,c.length);m<y&&s.charCodeAt(m)==c.charCodeAt(m);)++m;return wn(i,function(){Ou(i,c.slice(m),s.length-m,null,e.composing?"*compose":null),c.length>1e3||c.indexOf(`
|
|
27
|
-
`)>-1?l.value=e.prevInput="":e.prevInput=c,e.composing&&(e.composing.range.clear(),e.composing.range=i.markText(e.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ae.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ae.prototype.onKeyPress=function(){p&&g>=9&&(this.hasSelection=null),this.fastPoll()},Ae.prototype.onContextMenu=function(e){var i=this,l=i.cm,s=l.display,c=i.textarea;i.contextMenuPending&&i.contextMenuPending();var d=Pi(l,e),m=s.scroller.scrollTop;if(!d||P)return;var y=l.options.resetSelectionOnContextMenu;y&&l.doc.sel.contains(d)==-1&&Ie(l,Ke)(l.doc,ni(d),G);var w=c.style.cssText,_=i.wrapper.style.cssText,N=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
28
|
-
top: `+(e.clientY-N.top-5)+"px; left: "+(e.clientX-N.left-5)+`px;
|
|
29
|
-
z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
30
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var D;v&&(D=c.ownerDocument.defaultView.scrollY),s.input.focus(),v&&c.ownerDocument.defaultView.scrollTo(null,D),s.input.reset(),l.somethingSelected()||(c.value=i.prevInput=" "),i.contextMenuPending=q,s.selForContextMenu=l.doc.sel,clearTimeout(s.detectingSelectAll);function W(){if(c.selectionStart!=null){var rt=l.somethingSelected(),vt=""+(rt?c.value:"");c.value="⇚",c.value=vt,i.prevInput=rt?"":"",c.selectionStart=1,c.selectionEnd=vt.length,s.selForContextMenu=l.doc.sel}}function q(){if(i.contextMenuPending==q&&(i.contextMenuPending=!1,i.wrapper.style.cssText=_,c.style.cssText=w,p&&g<9&&s.scrollbars.setScrollTop(s.scroller.scrollTop=m),c.selectionStart!=null)){(!p||p&&g<9)&&W();var rt=0,vt=function(){s.selForContextMenu==l.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput==""?Ie(l,wp)(l):rt++<10?s.detectingSelectAll=setTimeout(vt,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(vt,200)}}if(p&&g>=9&&W(),st){Xr(e);var Z=function(){Ge(window,"mouseup",Z),setTimeout(q,20)};Rt(window,"mouseup",Z)}else setTimeout(q,50)},Ae.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Ae.prototype.setUneditable=function(){},Ae.prototype.needsContentAttribute=!1;function kx(e,i){if(i=i?nt(i):{},i.value=e.value,!i.tabindex&&e.tabIndex&&(i.tabindex=e.tabIndex),!i.placeholder&&e.placeholder&&(i.placeholder=e.placeholder),i.autofocus==null){var l=yt(jt(e));i.autofocus=l==e||e.getAttribute("autofocus")!=null&&l==document.body}function s(){e.value=y.getValue()}var c;if(e.form&&(Rt(e.form,"submit",s),!i.leaveSubmitMethodAlone)){var d=e.form;c=d.submit;try{var m=d.submit=function(){s(),d.submit=c,d.submit(),d.submit=m}}catch{}}i.finishInit=function(w){w.save=s,w.getTextArea=function(){return e},w.toTextArea=function(){w.toTextArea=isNaN,s(),e.parentNode.removeChild(w.getWrapperElement()),e.style.display="",e.form&&(Ge(e.form,"submit",s),!i.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=c))}},e.style.display="none";var y=ye(function(w){return e.parentNode.insertBefore(w,e.nextSibling)},i);return y}function Cx(e){e.off=Ge,e.on=Rt,e.wheelEventPixels=Pw,e.Doc=sn,e.splitLines=Fn,e.countColumn=ot,e.findColumn=at,e.isWordChar=Gt,e.Pass=F,e.signal=Se,e.Line=yo,e.changeEnd=ri,e.scrollbarModel=Yd,e.Pos=X,e.cmpPos=_t,e.modes=fo,e.mimeModes=Gn,e.resolveMode=ho,e.getMode=po,e.modeExtensions=Jr,e.extendMode=go,e.copyState=ar,e.startState=vo,e.innerMode=bs,e.commands=Ws,e.keyMap=Mr,e.keyName=Rp,e.isModifierKey=Dp,e.lookupKey=No,e.normalizeKeyMap=tx,e.StringStream=Ce,e.SharedTextMarker=qs,e.TextMarker=oi,e.LineWidget=Is,e.e_preventDefault=Ve,e.e_stopPropagation=co,e.e_stop=Xr,e.addClass=Lt,e.contains=J,e.rmClass=gt,e.keyNames=si}vx(ye),wx(ye);var Tx="iter insert remove copy getEditor constructor".split(" ");for(var ga in sn.prototype)sn.prototype.hasOwnProperty(ga)&&Tt(Tx,ga)<0&&(ye.prototype[ga]=function(e){return function(){return e.apply(this.doc,arguments)}}(sn.prototype[ga]));return Wn(sn),ye.inputStyles={textarea:Ae,contenteditable:he},ye.defineMode=function(e){!ye.defaults.mode&&e!="null"&&(ye.defaults.mode=e),Vn.apply(this,arguments)},ye.defineMIME=Ai,ye.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ye.defineMIME("text/plain","null"),ye.defineExtension=function(e,i){ye.prototype[e]=i},ye.defineDocExtension=function(e,i){sn.prototype[e]=i},ye.fromTextArea=kx,Cx(ye),ye.version="5.65.16",ye})}(ef)),ef.exports}var wlt=gs();const xlt=J0(wlt);var Rv={exports:{}},zv;function Iy(){return zv||(zv=1,function(t,n){(function(r){r(gs())})(function(r){r.defineMode("javascript",function(o,a){var u=o.indentUnit,f=a.statementIndent,h=a.jsonld,p=a.json||h,g=a.trackScope!==!1,v=a.typescript,b=a.wordCharacters||/[\w$\xa1-\uffff]/,x=function(){function C(ze){return{type:ze,style:"keyword"}}var O=C("keyword a"),tt=C("keyword b"),dt=C("keyword c"),X=C("keyword d"),_t=C("operator"),ae={type:"atom",style:"atom"};return{if:C("if"),while:O,with:O,else:tt,do:tt,try:tt,finally:tt,return:X,break:X,continue:X,new:C("new"),delete:dt,void:dt,throw:dt,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:_t,typeof:_t,instanceof:_t,true:ae,false:ae,null:ae,undefined:ae,NaN:ae,Infinity:ae,this:C("this"),class:C("class"),super:C("atom"),yield:dt,export:C("export"),import:C("import"),extends:dt,await:dt}}(),S=/[+\-*&%=<>!?|~^@]/,P=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(C){for(var O=!1,tt,dt=!1;(tt=C.next())!=null;){if(!O){if(tt=="/"&&!dt)return;tt=="["?dt=!0:dt&&tt=="]"&&(dt=!1)}O=!O&&tt=="\\"}}var L,T;function M(C,O,tt){return L=C,T=tt,O}function R(C,O){var tt=C.next();if(tt=='"'||tt=="'")return O.tokenize=E(tt),O.tokenize(C,O);if(tt=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return M("number","number");if(tt=="."&&C.match(".."))return M("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(tt))return M(tt);if(tt=="="&&C.eat(">"))return M("=>","operator");if(tt=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return M("number","number");if(/\d/.test(tt))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),M("number","number");if(tt=="/")return C.eat("*")?(O.tokenize=B,B(C,O)):C.eat("/")?(C.skipToEnd(),M("comment","comment")):Nn(C,O,1)?(A(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),M("regexp","string-2")):(C.eat("="),M("operator","operator",C.current()));if(tt=="`")return O.tokenize=K,K(C,O);if(tt=="#"&&C.peek()=="!")return C.skipToEnd(),M("meta","meta");if(tt=="#"&&C.eatWhile(b))return M("variable","property");if(tt=="<"&&C.match("!--")||tt=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),M("comment","comment");if(S.test(tt))return(tt!=">"||!O.lexical||O.lexical.type!=">")&&(C.eat("=")?(tt=="!"||tt=="=")&&C.eat("="):/[<>*+\-|&?]/.test(tt)&&(C.eat(tt),tt==">"&&C.eat(tt))),tt=="?"&&C.eat(".")?M("."):M("operator","operator",C.current());if(b.test(tt)){C.eatWhile(b);var dt=C.current();if(O.lastType!="."){if(x.propertyIsEnumerable(dt)){var X=x[dt];return M(X.type,X.style,dt)}if(dt=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return M("async","keyword",dt)}return M("variable","variable",dt)}}function E(C){return function(O,tt){var dt=!1,X;if(h&&O.peek()=="@"&&O.match(P))return tt.tokenize=R,M("jsonld-keyword","meta");for(;(X=O.next())!=null&&!(X==C&&!dt);)dt=!dt&&X=="\\";return dt||(tt.tokenize=R),M("string","string")}}function B(C,O){for(var tt=!1,dt;dt=C.next();){if(dt=="/"&&tt){O.tokenize=R;break}tt=dt=="*"}return M("comment","comment")}function K(C,O){for(var tt=!1,dt;(dt=C.next())!=null;){if(!tt&&(dt=="`"||dt=="$"&&C.eat("{"))){O.tokenize=R;break}tt=!tt&&dt=="\\"}return M("quasi","string-2",C.current())}var ht="([{}])";function Y(C,O){O.fatArrowAt&&(O.fatArrowAt=null);var tt=C.string.indexOf("=>",C.start);if(!(tt<0)){if(v){var dt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,tt));dt&&(tt=dt.index)}for(var X=0,_t=!1,ae=tt-1;ae>=0;--ae){var ze=C.string.charAt(ae),rn=ht.indexOf(ze);if(rn>=0&&rn<3){if(!X){++ae;break}if(--X==0){ze=="("&&(_t=!0);break}}else if(rn>=3&&rn<6)++X;else if(b.test(ze))_t=!0;else if(/["'\/`]/.test(ze))for(;;--ae){if(ae==0)return;var mo=C.string.charAt(ae-1);if(mo==ze&&C.string.charAt(ae-2)!="\\"){ae--;break}}else if(_t&&!X){++ae;break}}_t&&!X&&(O.fatArrowAt=ae)}}var et={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function st(C,O,tt,dt,X,_t){this.indented=C,this.column=O,this.type=tt,this.prev=X,this.info=_t,dt!=null&&(this.align=dt)}function pt(C,O){if(!g)return!1;for(var tt=C.localVars;tt;tt=tt.next)if(tt.name==O)return!0;for(var dt=C.context;dt;dt=dt.prev)for(var tt=dt.vars;tt;tt=tt.next)if(tt.name==O)return!0}function gt(C,O,tt,dt,X){var _t=C.cc;for(V.state=C,V.stream=X,V.marked=null,V.cc=_t,V.style=O,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var ae=_t.length?_t.pop():p?Tt:ot;if(ae(tt,dt)){for(;_t.length&&_t[_t.length-1].lex;)_t.pop()();return V.marked?V.marked:tt=="variable"&&pt(C,dt)?"variable-2":O}}}var V={state:null,column:null,marked:null,cc:null};function z(){for(var C=arguments.length-1;C>=0;C--)V.cc.push(arguments[C])}function k(){return z.apply(null,arguments),!0}function I(C,O){for(var tt=O;tt;tt=tt.next)if(tt.name==C)return!0;return!1}function H(C){var O=V.state;if(V.marked="def",!!g){if(O.context){if(O.lexical.info=="var"&&O.context&&O.context.block){var tt=J(C,O.context);if(tt!=null){O.context=tt;return}}else if(!I(C,O.localVars)){O.localVars=new qt(C,O.localVars);return}}a.globalVars&&!I(C,O.globalVars)&&(O.globalVars=new qt(C,O.globalVars))}}function J(C,O){if(O)if(O.block){var tt=J(C,O.prev);return tt?tt==O.prev?O:new Lt(tt,O.vars,!0):null}else return I(C,O.vars)?O:new Lt(O.prev,new qt(C,O.vars),!1);else return null}function yt(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Lt(C,O,tt){this.prev=C,this.vars=O,this.block=tt}function qt(C,O){this.name=C,this.next=O}var Ht=new qt("this",new qt("arguments",null));function Zt(){V.state.context=new Lt(V.state.context,V.state.localVars,!1),V.state.localVars=Ht}function Xt(){V.state.context=new Lt(V.state.context,V.state.localVars,!0),V.state.localVars=null}Zt.lex=Xt.lex=!0;function jt(){V.state.localVars=V.state.context.vars,V.state.context=V.state.context.prev}jt.lex=!0;function Ct(C,O){var tt=function(){var dt=V.state,X=dt.indented;if(dt.lexical.type=="stat")X=dt.lexical.indented;else for(var _t=dt.lexical;_t&&_t.type==")"&&_t.align;_t=_t.prev)X=_t.indented;dt.lexical=new st(X,V.stream.column(),C,null,dt.lexical,O)};return tt.lex=!0,tt}function j(){var C=V.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}j.lex=!0;function nt(C){function O(tt){return tt==C?k():C==";"||tt=="}"||tt==")"||tt=="]"?z():k(O)}return O}function ot(C,O){return C=="var"?k(Ct("vardef",O),co,nt(";"),j):C=="keyword a"?k(Ct("form"),F,ot,j):C=="keyword b"?k(Ct("form"),ot,j):C=="keyword d"?V.stream.match(/^\s*$/,!1)?k():k(Ct("stat"),Q,nt(";"),j):C=="debugger"?k(nt(";")):C=="{"?k(Ct("}"),Xt,Mn,j,jt):C==";"?k():C=="if"?(V.state.lexical.info=="else"&&V.state.cc[V.state.cc.length-1]==j&&V.state.cc.pop()(),k(Ct("form"),F,ot,j,uo)):C=="function"?k(Fn):C=="for"?k(Ct("form"),Xt,Fl,ot,jt,j):C=="class"||v&&O=="interface"?(V.marked="keyword",k(Ct("form",C=="class"?C:O),fo,j)):C=="variable"?v&&O=="declare"?(V.marked="keyword",k(ot)):v&&(O=="module"||O=="enum"||O=="type")&&V.stream.match(/^\s*\w/,!1)?(V.marked="keyword",O=="enum"?k(Pt):O=="type"?k(Il,nt("operator"),Kt,nt(";")):k(Ct("form"),nn,nt("{"),Ct("}"),Mn,j,j)):v&&O=="namespace"?(V.marked="keyword",k(Ct("form"),Tt,ot,j)):v&&O=="abstract"?(V.marked="keyword",k(ot)):k(Ct("stat"),Bt):C=="switch"?k(Ct("form"),F,nt("{"),Ct("}","switch"),Xt,Mn,j,j,jt):C=="case"?k(Tt,nt(":")):C=="default"?k(nt(":")):C=="catch"?k(Ct("form"),Zt,Mt,ot,j,jt):C=="export"?k(Ct("stat"),ho,j):C=="import"?k(Ct("stat"),Jr,j):C=="async"?k(ot):O=="@"?k(Tt,ot):z(Ct("stat"),Tt,nt(";"),j)}function Mt(C){if(C=="(")return k(jn,nt(")"))}function Tt(C,O){return G(C,O,!1)}function $(C,O){return G(C,O,!0)}function F(C){return C!="("?z():k(Ct(")"),Q,nt(")"),j)}function G(C,O,tt){if(V.state.fatArrowAt==V.stream.start){var dt=tt?ft:lt;if(C=="(")return k(Zt,Ct(")"),oe(jn,")"),j,nt("=>"),dt,jt);if(C=="variable")return z(Zt,nn,nt("=>"),dt,jt)}var X=tt?at:it;return et.hasOwnProperty(C)?k(X):C=="function"?k(Fn,X):C=="class"||v&&O=="interface"?(V.marked="keyword",k(Ct("form"),Uc,j)):C=="keyword c"||C=="async"?k(tt?$:Tt):C=="("?k(Ct(")"),Q,nt(")"),j,X):C=="operator"||C=="spread"?k(tt?$:Tt):C=="["?k(Ct("]"),Ce,j,X):C=="{"?en(te,"}",null,X):C=="quasi"?z(St,X):C=="new"?k($t(tt)):k()}function Q(C){return C.match(/[;\}\)\],]/)?z():z(Tt)}function it(C,O){return C==","?k(Q):at(C,O,!1)}function at(C,O,tt){var dt=tt==!1?it:at,X=tt==!1?Tt:$;if(C=="=>")return k(Zt,tt?ft:lt,jt);if(C=="operator")return/\+\+|--/.test(O)||v&&O=="!"?k(dt):v&&O=="<"&&V.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Ct(">"),oe(Kt,">"),j,dt):O=="?"?k(Tt,nt(":"),X):k(X);if(C=="quasi")return z(St,dt);if(C!=";"){if(C=="(")return en($,")","call",dt);if(C==".")return k(Gt,dt);if(C=="[")return k(Ct("]"),Q,nt("]"),j,dt);if(v&&O=="as")return V.marked="keyword",k(Kt,dt);if(C=="regexp")return V.state.lastType=V.marked="operator",V.stream.backUp(V.stream.pos-V.stream.start-1),k(X)}}function St(C,O){return C!="quasi"?z():O.slice(O.length-2)!="${"?k(St):k(Q,mt)}function mt(C){if(C=="}")return V.marked="string-2",V.state.tokenize=K,k(St)}function lt(C){return Y(V.stream,V.state),z(C=="{"?ot:Tt)}function ft(C){return Y(V.stream,V.state),z(C=="{"?ot:$)}function $t(C){return function(O){return O=="."?k(C?Dt:Nt):O=="variable"&&v?k(bn,C?at:it):z(C?$:Tt)}}function Nt(C,O){if(O=="target")return V.marked="keyword",k(it)}function Dt(C,O){if(O=="target")return V.marked="keyword",k(at)}function Bt(C){return C==":"?k(j,ot):z(it,nt(";"),j)}function Gt(C){if(C=="variable")return V.marked="property",k()}function te(C,O){if(C=="async")return V.marked="property",k(te);if(C=="variable"||V.style=="keyword"){if(V.marked="property",O=="get"||O=="set")return k(ie);var tt;return v&&V.state.fatArrowAt==V.stream.start&&(tt=V.stream.match(/^\s*:\s*/,!1))&&(V.state.fatArrowAt=V.stream.pos+tt[0].length),k(fe)}else{if(C=="number"||C=="string")return V.marked=h?"property":V.style+" property",k(fe);if(C=="jsonld-keyword")return k(fe);if(v&&yt(O))return V.marked="keyword",k(te);if(C=="[")return k(Tt,mn,nt("]"),fe);if(C=="spread")return k($,fe);if(O=="*")return V.marked="keyword",k(te);if(C==":")return z(fe)}}function ie(C){return C!="variable"?z(fe):(V.marked="property",k(Fn))}function fe(C){if(C==":")return k($);if(C=="(")return z(Fn)}function oe(C,O,tt){function dt(X,_t){if(tt?tt.indexOf(X)>-1:X==","){var ae=V.state.lexical;return ae.info=="call"&&(ae.pos=(ae.pos||0)+1),k(function(ze,rn){return ze==O||rn==O?z():z(C)},dt)}return X==O||_t==O?k():tt&&tt.indexOf(";")>-1?z(C):k(nt(O))}return function(X,_t){return X==O||_t==O?k():z(C,dt)}}function en(C,O,tt){for(var dt=3;dt<arguments.length;dt++)V.cc.push(arguments[dt]);return k(Ct(O,tt),oe(C,O),j)}function Mn(C){return C=="}"?k():z(ot,Mn)}function mn(C,O){if(v){if(C==":")return k(Kt);if(O=="?")return k(mn)}}function lr(C,O){if(v&&(C==":"||O=="in"))return k(Kt)}function Le(C){if(v&&C==":")return V.stream.match(/^\s*\w+\s+is\b/,!1)?k(Tt,yn,Kt):k(Kt)}function yn(C,O){if(O=="is")return V.marked="keyword",k()}function Kt(C,O){if(O=="keyof"||O=="typeof"||O=="infer"||O=="readonly")return V.marked="keyword",k(O=="typeof"?$:Kt);if(C=="variable"||O=="void")return V.marked="type",k(zn);if(O=="|"||O=="&")return k(Kt);if(C=="string"||C=="number"||C=="atom")return k(zn);if(C=="[")return k(Ct("]"),oe(Kt,"]",","),j,zn);if(C=="{")return k(Ct("}"),Rt,j,zn);if(C=="(")return k(oe(ke,")"),zl,zn);if(C=="<")return k(oe(Kt,">"),Kt);if(C=="quasi")return z(Ge,zn)}function zl(C){if(C=="=>")return k(Kt)}function Rt(C){return C.match(/[\}\)\]]/)?k():C==","||C==";"?k(Rt):z(kr,Rt)}function kr(C,O){if(C=="variable"||V.style=="keyword")return V.marked="property",k(kr);if(O=="?"||C=="number"||C=="string")return k(kr);if(C==":")return k(Kt);if(C=="[")return k(nt("variable"),lr,nt("]"),kr);if(C=="(")return z(Zr,kr);if(!C.match(/[;\}\)\],]/))return k()}function Ge(C,O){return C!="quasi"?z():O.slice(O.length-2)!="${"?k(Ge):k(Kt,Se)}function Se(C){if(C=="}")return V.marked="string-2",V.state.tokenize=K,k(Ge)}function ke(C,O){return C=="variable"&&V.stream.match(/^\s*[?:]/,!1)||O=="?"?k(ke):C==":"?k(Kt):C=="spread"?k(ke):z(Kt)}function zn(C,O){if(O=="<")return k(Ct(">"),oe(Kt,">"),j,zn);if(O=="|"||C=="."||O=="&")return k(Kt);if(C=="[")return k(Kt,nt("]"),zn);if(O=="extends"||O=="implements")return V.marked="keyword",k(Kt);if(O=="?")return k(Kt,nt(":"),Kt)}function bn(C,O){if(O=="<")return k(Ct(">"),oe(Kt,">"),j,zn)}function Wn(){return z(Kt,Ve)}function Ve(C,O){if(O=="=")return k(Kt)}function co(C,O){return O=="enum"?(V.marked="keyword",k(Pt)):z(nn,mn,Un,Wc)}function nn(C,O){if(v&&yt(O))return V.marked="keyword",k(nn);if(C=="variable")return H(O),k();if(C=="spread")return k(nn);if(C=="[")return en(ms,"]");if(C=="{")return en(Xr,"}")}function Xr(C,O){return C=="variable"&&!V.stream.match(/^\s*:/,!1)?(H(O),k(Un)):(C=="variable"&&(V.marked="property"),C=="spread"?k(nn):C=="}"?z():C=="["?k(Tt,nt("]"),nt(":"),Xr):k(nt(":"),nn,Un))}function ms(){return z(nn,Un)}function Un(C,O){if(O=="=")return k($)}function Wc(C){if(C==",")return k(co)}function uo(C,O){if(C=="keyword b"&&O=="else")return k(Ct("form","else"),ot,j)}function Fl(C,O){if(O=="await")return k(Fl);if(C=="(")return k(Ct(")"),ys,j)}function ys(C){return C=="var"?k(co,Yr):C=="variable"?k(Yr):z(Yr)}function Yr(C,O){return C==")"?k():C==";"?k(Yr):O=="in"||O=="of"?(V.marked="keyword",k(Tt,Yr)):z(Tt,Yr)}function Fn(C,O){if(O=="*")return V.marked="keyword",k(Fn);if(C=="variable")return H(O),k(Fn);if(C=="(")return k(Zt,Ct(")"),oe(jn,")"),j,Le,ot,jt);if(v&&O=="<")return k(Ct(">"),oe(Wn,">"),j,Fn)}function Zr(C,O){if(O=="*")return V.marked="keyword",k(Zr);if(C=="variable")return H(O),k(Zr);if(C=="(")return k(Zt,Ct(")"),oe(jn,")"),j,Le,jt);if(v&&O=="<")return k(Ct(">"),oe(Wn,">"),j,Zr)}function Il(C,O){if(C=="keyword"||C=="variable")return V.marked="type",k(Il);if(O=="<")return k(Ct(">"),oe(Wn,">"),j)}function jn(C,O){return O=="@"&&k(Tt,jn),C=="spread"?k(jn):v&&yt(O)?(V.marked="keyword",k(jn)):v&&C=="this"?k(mn,Un):z(nn,mn,Un)}function Uc(C,O){return C=="variable"?fo(C,O):Gn(C,O)}function fo(C,O){if(C=="variable")return H(O),k(Gn)}function Gn(C,O){if(O=="<")return k(Ct(">"),oe(Wn,">"),j,Gn);if(O=="extends"||O=="implements"||v&&C==",")return O=="implements"&&(V.marked="keyword"),k(v?Kt:Tt,Gn);if(C=="{")return k(Ct("}"),Vn,j)}function Vn(C,O){if(C=="async"||C=="variable"&&(O=="static"||O=="get"||O=="set"||v&&yt(O))&&V.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return V.marked="keyword",k(Vn);if(C=="variable"||V.style=="keyword")return V.marked="property",k(Ai,Vn);if(C=="number"||C=="string")return k(Ai,Vn);if(C=="[")return k(Tt,mn,nt("]"),Ai,Vn);if(O=="*")return V.marked="keyword",k(Vn);if(v&&C=="(")return z(Zr,Vn);if(C==";"||C==",")return k(Vn);if(C=="}")return k();if(O=="@")return k(Tt,Vn)}function Ai(C,O){if(O=="!"||O=="?")return k(Ai);if(C==":")return k(Kt,Un);if(O=="=")return k($);var tt=V.state.lexical.prev,dt=tt&&tt.info=="interface";return z(dt?Zr:Fn)}function ho(C,O){return O=="*"?(V.marked="keyword",k(vo,nt(";"))):O=="default"?(V.marked="keyword",k(Tt,nt(";"))):C=="{"?k(oe(po,"}"),vo,nt(";")):z(ot)}function po(C,O){if(O=="as")return V.marked="keyword",k(nt("variable"));if(C=="variable")return z($,po)}function Jr(C){return C=="string"?k():C=="("?z(Tt):C=="."?z(it):z(go,ar,vo)}function go(C,O){return C=="{"?en(go,"}"):(C=="variable"&&H(O),O=="*"&&(V.marked="keyword"),k(bs))}function ar(C){if(C==",")return k(go,ar)}function bs(C,O){if(O=="as")return V.marked="keyword",k(go)}function vo(C,O){if(O=="from")return V.marked="keyword",k(Tt)}function Ce(C){return C=="]"?k():z(oe($,"]"))}function Pt(){return z(Ct("form"),nn,nt("{"),Ct("}"),oe(Cr,"}"),j,j)}function Cr(){return z(nn,Un)}function ws(C,O){return C.lastType=="operator"||C.lastType==","||S.test(O.charAt(0))||/[,.]/.test(O.charAt(0))}function Nn(C,O,tt){return O.tokenize==R&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(O.lastType)||O.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(tt||0)))}return{startState:function(C){var O={tokenize:R,lastType:"sof",cc:[],lexical:new st((C||0)-u,0,"block",!1),localVars:a.localVars,context:a.localVars&&new Lt(null,null,!1),indented:C||0};return a.globalVars&&typeof a.globalVars=="object"&&(O.globalVars=a.globalVars),O},token:function(C,O){if(C.sol()&&(O.lexical.hasOwnProperty("align")||(O.lexical.align=!1),O.indented=C.indentation(),Y(C,O)),O.tokenize!=B&&C.eatSpace())return null;var tt=O.tokenize(C,O);return L=="comment"?tt:(O.lastType=L=="operator"&&(T=="++"||T=="--")?"incdec":L,gt(O,tt,L,T,C))},indent:function(C,O){if(C.tokenize==B||C.tokenize==K)return r.Pass;if(C.tokenize!=R)return 0;var tt=O&&O.charAt(0),dt=C.lexical,X;if(!/^\s*else\b/.test(O))for(var _t=C.cc.length-1;_t>=0;--_t){var ae=C.cc[_t];if(ae==j)dt=dt.prev;else if(ae!=uo&&ae!=jt)break}for(;(dt.type=="stat"||dt.type=="form")&&(tt=="}"||(X=C.cc[C.cc.length-1])&&(X==it||X==at)&&!/^[,\.=+\-*:?[\(]/.test(O));)dt=dt.prev;f&&dt.type==")"&&dt.prev.type=="stat"&&(dt=dt.prev);var ze=dt.type,rn=tt==ze;return ze=="vardef"?dt.indented+(C.lastType=="operator"||C.lastType==","?dt.info.length+1:0):ze=="form"&&tt=="{"?dt.indented:ze=="form"?dt.indented+u:ze=="stat"?dt.indented+(ws(C,O)?f||u:0):dt.info=="switch"&&!rn&&a.doubleIndentSwitch!=!1?dt.indented+(/^(?:case|default)\b/.test(O)?u:2*u):dt.align?dt.column+(rn?0:1):dt.indented+(rn?0:u)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:p?null:"/*",blockCommentEnd:p?null:"*/",blockCommentContinue:p?null:" * ",lineComment:p?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:p?"json":"javascript",jsonldMode:h,jsonMode:p,expressionAllowed:Nn,skipExpression:function(C){gt(C,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),Rv.exports}Iy();var Fv={exports:{}},Iv;function qy(){return Iv||(Iv=1,function(t,n){(function(r){r(gs())})(function(r){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(u,f){var h=u.indentUnit,p={},g=f.htmlMode?o:a;for(var v in g)p[v]=g[v];for(var v in f)p[v]=f[v];var b,x;function S(k,I){function H(Lt){return I.tokenize=Lt,Lt(k,I)}var J=k.next();if(J=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?H(L("atom","]]>")):null:k.match("--")?H(L("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),H(T(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),I.tokenize=L("meta","?>"),"meta"):(b=k.eat("/")?"closeTag":"openTag",I.tokenize=P,"tag bracket");if(J=="&"){var yt;return k.eat("#")?k.eat("x")?yt=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):yt=k.eatWhile(/[\d]/)&&k.eat(";"):yt=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),yt?"atom":"error"}else return k.eatWhile(/[^&<]/),null}S.isInText=!0;function P(k,I){var H=k.next();if(H==">"||H=="/"&&k.eat(">"))return I.tokenize=S,b=H==">"?"endTag":"selfcloseTag","tag bracket";if(H=="=")return b="equals",null;if(H=="<"){I.tokenize=S,I.state=K,I.tagName=I.tagStart=null;var J=I.tokenize(k,I);return J?J+" tag error":"tag error"}else return/[\'\"]/.test(H)?(I.tokenize=A(H),I.stringStartCol=k.column(),I.tokenize(k,I)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function A(k){var I=function(H,J){for(;!H.eol();)if(H.next()==k){J.tokenize=P;break}return"string"};return I.isInAttribute=!0,I}function L(k,I){return function(H,J){for(;!H.eol();){if(H.match(I)){J.tokenize=S;break}H.next()}return k}}function T(k){return function(I,H){for(var J;(J=I.next())!=null;){if(J=="<")return H.tokenize=T(k+1),H.tokenize(I,H);if(J==">")if(k==1){H.tokenize=S;break}else return H.tokenize=T(k-1),H.tokenize(I,H)}return"meta"}}function M(k){return k&&k.toLowerCase()}function R(k,I,H){this.prev=k.context,this.tagName=I||"",this.indent=k.indented,this.startOfLine=H,(p.doNotIndent.hasOwnProperty(I)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function E(k){k.context&&(k.context=k.context.prev)}function B(k,I){for(var H;;){if(!k.context||(H=k.context.tagName,!p.contextGrabbers.hasOwnProperty(M(H))||!p.contextGrabbers[M(H)].hasOwnProperty(M(I))))return;E(k)}}function K(k,I,H){return k=="openTag"?(H.tagStart=I.column(),ht):k=="closeTag"?Y:K}function ht(k,I,H){return k=="word"?(H.tagName=I.current(),x="tag",pt):p.allowMissingTagName&&k=="endTag"?(x="tag bracket",pt(k,I,H)):(x="error",ht)}function Y(k,I,H){if(k=="word"){var J=I.current();return H.context&&H.context.tagName!=J&&p.implicitlyClosed.hasOwnProperty(M(H.context.tagName))&&E(H),H.context&&H.context.tagName==J||p.matchClosing===!1?(x="tag",et):(x="tag error",st)}else return p.allowMissingTagName&&k=="endTag"?(x="tag bracket",et(k,I,H)):(x="error",st)}function et(k,I,H){return k!="endTag"?(x="error",et):(E(H),K)}function st(k,I,H){return x="error",et(k,I,H)}function pt(k,I,H){if(k=="word")return x="attribute",gt;if(k=="endTag"||k=="selfcloseTag"){var J=H.tagName,yt=H.tagStart;return H.tagName=H.tagStart=null,k=="selfcloseTag"||p.autoSelfClosers.hasOwnProperty(M(J))?B(H,J):(B(H,J),H.context=new R(H,J,yt==H.indented)),K}return x="error",pt}function gt(k,I,H){return k=="equals"?V:(p.allowMissing||(x="error"),pt(k,I,H))}function V(k,I,H){return k=="string"?z:k=="word"&&p.allowUnquoted?(x="string",pt):(x="error",pt(k,I,H))}function z(k,I,H){return k=="string"?z:pt(k,I,H)}return{startState:function(k){var I={tokenize:S,state:K,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(I.baseIndent=k),I},token:function(k,I){if(!I.tagName&&k.sol()&&(I.indented=k.indentation()),k.eatSpace())return null;b=null;var H=I.tokenize(k,I);return(H||b)&&H!="comment"&&(x=null,I.state=I.state(b||H,k,I),x&&(H=x=="error"?H+" error":x)),H},indent:function(k,I,H){var J=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+h;if(J&&J.noIndent)return r.Pass;if(k.tokenize!=P&&k.tokenize!=S)return H?H.match(/^(\s*)/)[0].length:0;if(k.tagName)return p.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+h*(p.multilineTagIndentFactor||1);if(p.alignCDATA&&/<!\[CDATA\[/.test(I))return 0;var yt=I&&/^<(\/)?([\w_:\.-]*)/.exec(I);if(yt&&yt[1])for(;J;)if(J.tagName==yt[2]){J=J.prev;break}else if(p.implicitlyClosed.hasOwnProperty(M(J.tagName)))J=J.prev;else break;else if(yt)for(;J;){var Lt=p.contextGrabbers[M(J.tagName)];if(Lt&&Lt.hasOwnProperty(M(yt[2])))J=J.prev;else break}for(;J&&J.prev&&!J.startOfLine;)J=J.prev;return J?J.indent+h:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:p.htmlMode?"html":"xml",helperType:p.htmlMode?"html":"xml",skipAttribute:function(k){k.state==V&&(k.state=pt)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var I=[],H=k.context;H;H=H.prev)I.push(H.tagName);return I.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),Fv.exports}qy();(function(t,n){(function(r){r(gs(),qy(),Iy())})(function(r){function o(u,f,h,p){this.state=u,this.mode=f,this.depth=h,this.prev=p}function a(u){return new o(r.copyState(u.mode,u.state),u.mode,u.depth,u.prev&&a(u.prev))}r.defineMode("jsx",function(u,f){var h=r.getMode(u,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),p=r.getMode(u,f&&f.base||"javascript");function g(S){var P=S.tagName;S.tagName=null;var A=h.indent(S,"","");return S.tagName=P,A}function v(S,P){return P.context.mode==h?b(S,P,P.context):x(S,P,P.context)}function b(S,P,A){if(A.depth==2)return S.match(/^.*?\*\//)?A.depth=1:S.skipToEnd(),"comment";if(S.peek()=="{"){h.skipAttribute(A.state);var L=g(A.state),T=A.state.context;if(T&&S.match(/^[^>]*>\s*$/,!1)){for(;T.prev&&!T.startOfLine;)T=T.prev;T.startOfLine?L-=u.indentUnit:A.prev.state.lexical&&(L=A.prev.state.lexical.indented)}else A.depth==1&&(L+=u.indentUnit);return P.context=new o(r.startState(p,L),p,0,P.context),null}if(A.depth==1){if(S.peek()=="<")return h.skipAttribute(A.state),P.context=new o(r.startState(h,g(A.state)),h,0,P.context),null;if(S.match("//"))return S.skipToEnd(),"comment";if(S.match("/*"))return A.depth=2,v(S,P)}var M=h.token(S,A.state),R=S.current(),E;return/\btag\b/.test(M)?/>$/.test(R)?A.state.context?A.depth=0:P.context=P.context.prev:/^</.test(R)&&(A.depth=1):!M&&(E=R.indexOf("{"))>-1&&S.backUp(R.length-E),M}function x(S,P,A){if(S.peek()=="<"&&!S.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&p.expressionAllowed(S,A.state))return P.context=new o(r.startState(h,p.indent(A.state,"","")),h,0,P.context),p.skipExpression(A.state),null;var L=p.token(S,A.state);if(!L&&A.depth!=null){var T=S.current();T=="{"?A.depth++:T=="}"&&--A.depth==0&&(P.context=P.context.prev)}return L}return{startState:function(){return{context:new o(r.startState(p),p)}},copyState:function(S){return{context:a(S.context)}},token:v,indent:function(S,P,A){return S.context.mode.indent(S.context.state,P,A)},innerMode:function(S){return S.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(t,n){(function(r){r(gs())})(function(r){r.defineOption("placeholder","",function(g,v,b){var x=b&&b!=r.Init;if(v&&!x)g.on("blur",f),g.on("change",h),g.on("swapDoc",h),r.on(g.getInputField(),"compositionupdate",g.state.placeholderCompose=function(){u(g)}),h(g);else if(!v&&x){g.off("blur",f),g.off("change",h),g.off("swapDoc",h),r.off(g.getInputField(),"compositionupdate",g.state.placeholderCompose),o(g);var S=g.getWrapperElement();S.className=S.className.replace(" CodeMirror-empty","")}v&&!g.hasFocus()&&f(g)});function o(g){g.state.placeholder&&(g.state.placeholder.parentNode.removeChild(g.state.placeholder),g.state.placeholder=null)}function a(g){o(g);var v=g.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=g.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var b=g.getOption("placeholder");typeof b=="string"&&(b=document.createTextNode(b)),v.appendChild(b),g.display.lineSpace.insertBefore(v,g.display.lineSpace.firstChild)}function u(g){setTimeout(function(){var v=!1;if(g.lineCount()==1){var b=g.getInputField();v=b.nodeName=="TEXTAREA"?!g.getLine(0).length:!/[^\u200b]/.test(b.querySelector(".CodeMirror-line").textContent)}v?a(g):o(g)},20)}function f(g){p(g)&&a(g)}function h(g){var v=g.getWrapperElement(),b=p(g);v.className=v.className.replace(" CodeMirror-empty","")+(b?" CodeMirror-empty":""),b?a(g):o(g)}function p(g){return g.lineCount()===1&&g.getLine(0)===""}})})();(function(t,n){(function(r){r(gs())})(function(r){function o(f,h,p){this.orientation=h,this.scroll=p,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+h,this.inner=this.node.appendChild(document.createElement("div"));var g=this;r.on(this.inner,"mousedown",function(b){if(b.which!=1)return;r.e_preventDefault(b);var x=g.orientation=="horizontal"?"pageX":"pageY",S=b[x],P=g.pos;function A(){r.off(document,"mousemove",L),r.off(document,"mouseup",A)}function L(T){if(T.which!=1)return A();g.moveTo(P+(T[x]-S)*(g.total/g.size))}r.on(document,"mousemove",L),r.on(document,"mouseup",A)}),r.on(this.node,"click",function(b){r.e_preventDefault(b);var x=g.inner.getBoundingClientRect(),S;g.orientation=="horizontal"?S=b.clientX<x.left?-1:b.clientX>x.right?1:0:S=b.clientY<x.top?-1:b.clientY>x.bottom?1:0,g.moveTo(g.pos+S*g.screen)});function v(b){var x=r.wheelEventPixels(b)[g.orientation=="horizontal"?"x":"y"],S=g.pos;g.moveTo(g.pos+x),g.pos!=S&&r.e_preventDefault(b)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,h){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!h&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var a=10;o.prototype.update=function(f,h,p){var g=this.screen!=h||this.total!=f||this.size!=p;g&&(this.screen=h,this.total=f,this.size=p);var v=this.screen*(this.size/this.total);v<a&&(this.size-=a-v,v=a),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,g)};function u(f,h,p){this.addClass=f,this.horiz=new o(f,"horizontal",p),h(this.horiz.node),this.vert=new o(f,"vertical",p),h(this.vert.node),this.width=null}u.prototype.update=function(f){if(this.width==null){var h=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;h&&(this.width=parseInt(h.height))}var p=this.width||0,g=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=g?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(g?p:0)),this.vert.node.style.bottom=g?p+"px":"0"),g&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?p:0)-f.barLeft),this.horiz.node.style.right=v?p+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?p:0,bottom:g?p:0}},u.prototype.setScrollTop=function(f){this.vert.setPos(f)},u.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},u.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,h){return new u("CodeMirror-simplescroll",f,h)},r.scrollbarModel.overlay=function(f,h){return new u("CodeMirror-overlayscroll",f,h)}})})();function _lt(t,n,r={}){const o=xlt.fromTextArea(t.value,{theme:"vars",...r,scrollbarStyle:"simple"});let a=!1;return o.on("change",()=>{if(a){a=!1;return}n.value=o.getValue()}),De(n,u=>{if(u!==o.getValue()){a=!0;const f=o.listSelections();o.replaceRange(u,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),ch(o)}const Slt={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Hy=re({__name:"CodeMirror",props:yf({mode:{},readOnly:{type:Boolean}},{modelValue:{}}),emits:yf(["save"],["update:modelValue"]),setup(t,{expose:n,emit:r}){const o=r,a=Ym(t,"modelValue"),u=n_(),f={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},h=Yt(),p=ds();return n({cm:p}),ps(async()=>{p.value=_lt(h,a,{...u,mode:f[t.mode||""]||t.mode,readOnly:t.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(g){o("save",g.getValue())},"Ctrl-S":function(g){o("save",g.getValue())}}}),p.value.setSize("100%","100%"),p.value.clearHistory(),setTimeout(()=>p.value.refresh(),100)}),(g,v)=>(ut(),At("div",Slt,[ct("textarea",{ref_key:"el",ref:h},null,512)]))}}),klt=re({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(t,{emit:n}){const r=t,o=n,a=Yt(""),u=ds(void 0),f=Yt(!1);De(()=>r.file,async()=>{var R;if(!r.file||!((R=r.file)!=null&&R.filepath)){a.value="",u.value=a.value,f.value=!1;return}a.value=await je.rpc.readTestFile(r.file.filepath)||"",u.value=a.value,f.value=!1},{immediate:!0});const h=xt(()=>{var R,E;return((E=(R=r.file)==null?void 0:R.filepath)==null?void 0:E.split(/\./g).pop())||"js"}),p=Yt(),g=xt(()=>{var R;return(R=p.value)==null?void 0:R.cm}),v=xt(()=>{var R;return((R=r.file)==null?void 0:R.tasks.filter(E=>{var B;return((B=E.result)==null?void 0:B.state)==="fail"}))||[]}),b=[],x=[],S=[],P=Yt(!1);function A(){S.forEach(([R,E,B])=>{R.removeEventListener("click",E),B()}),S.length=0}wT(p,()=>{var R;(R=g.value)==null||R.refresh()});function L(){f.value=u.value!==g.value.getValue()}De(f,R=>{o("draft",R)},{immediate:!0});function T(R){const E=((R==null?void 0:R.stacks)||[]).filter(st=>{var pt;return st.file&&st.file===((pt=r.file)==null?void 0:pt.filepath)}),B=E==null?void 0:E[0];if(!B)return;const K=document.createElement("div");K.className="op80 flex gap-x-2 items-center";const ht=document.createElement("pre");ht.className="c-red-600 dark:c-red-400",ht.textContent=`${" ".repeat(B.column)}^ ${(R==null?void 0:R.nameStr)||R.name}: ${(R==null?void 0:R.message)||""}`,K.appendChild(ht);const Y=document.createElement("span");Y.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",Y.tabIndex=0,Y.ariaLabel="Open in Editor",q0(Y,{content:"Open in Editor",placement:"bottom"},!1);const et=async()=>{await Dy(B.file,B.line,B.column)};K.appendChild(Y),S.push([Y,et,()=>Oh(Y)]),x.push(g.value.addLineClass(B.line-1,"wrap","bg-red-500/10")),b.push(g.value.addLineWidget(B.line-1,K))}De([g,v],([R])=>{if(!R){A();return}setTimeout(()=>{A(),b.forEach(E=>E.clear()),x.forEach(E=>{var B;return(B=g.value)==null?void 0:B.removeLineClass(E,"wrap")}),b.length=0,x.length=0,R.on("changes",L),v.value.forEach(E=>{var B,K;(K=(B=E.result)==null?void 0:B.errors)==null||K.forEach(T)}),P.value||R.clearHistory()},100)},{flush:"post"});async function M(R){P.value=!0,await je.rpc.saveTestFile(r.file.filepath,R),u.value=R,f.value=!1}return(R,E)=>{const B=Hy;return ut(),Qt(B,Si({ref_key:"editor",ref:p,modelValue:U(a),"onUpdate:modelValue":E[0]||(E[0]=K=>Ee(a)?a.value=K:null),"h-full":""},{lineNumbers:!0},{mode:U(h),"data-testid":"code-mirror",onSave:M}),null,16,["modelValue","mode"])}}}),Clt=re({__name:"Modal",props:yf({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1}}),emits:["update:modelValue"],setup(t){const n=Ym(t,"modelValue"),r=xt(()=>{switch(t.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=xt(()=>{switch(t.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),a=()=>n.value=!1;return(u,f)=>(ut(),At("div",{class:ve(["fixed inset-0 z-40",n.value?"":"pointer-events-none"])},[ct("div",{class:ve(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",n.value?"opacity-50":"opacity-0"]),onClick:a},null,2),ct("div",{class:ve(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[U(r)]]),style:En(n.value?{}:{transform:U(o)})},[ir(u.$slots,"default")],6)],2))}}),Tlt=["aria-label","opacity","disabled","hover"],vs=re({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean}},setup(t){return(n,r)=>(ut(),At("button",{"aria-label":n.title,role:"button",opacity:n.disabled?10:70,rounded:"",disabled:n.disabled,hover:n.disabled?"":"bg-active op100",class:"w-1.4em h-1.4em flex"},[ir(n.$slots,"default",{},()=>[ct("div",{class:ve(n.icon),ma:""},null,2)])],8,Tlt))}}),Elt={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Llt={"p-4":"",relative:""},Alt=ct("p",null,"Module Info",-1),Mlt={op50:"","font-mono":"","text-sm":""},Nlt={key:0,"p-5":""},Plt={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Olt=ct("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Dlt=ct("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),$lt={key:0},Rlt={p:"x3 y-1","bg-overlay":"",border:"base b t"},zlt=re({__name:"ModuleTransformResultView",props:{id:{}},emits:["close"],setup(t,{emit:n}){const r=t,o=n,a=aT(()=>je.rpc.getTransformResult(r.id)),u=xt(()=>{var g;return((g=r.id)==null?void 0:g.split(/\./g).pop())||"js"}),f=xt(()=>{var g,v;return((v=(g=a.value)==null?void 0:g.source)==null?void 0:v.trim())||""}),h=xt(()=>{var g,v;return((v=(g=a.value)==null?void 0:g.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),p=xt(()=>{var g,v,b,x;return{mappings:((v=(g=a.value)==null?void 0:g.map)==null?void 0:v.mappings)??"",version:(x=(b=a.value)==null?void 0:b.map)==null?void 0:x.version}});return uT("Escape",()=>{o("close")}),(g,v)=>{const b=vs,x=Hy;return ut(),At("div",Elt,[ct("div",Llt,[Alt,ct("p",Mlt,ne(g.id),1),It(b,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=S=>o("close"))})]),U(a)?(ut(),At(ue,{key:1},[ct("div",Plt,[Olt,Dlt,It(x,Si({"h-full":"","model-value":U(f),"read-only":""},{lineNumbers:!0},{mode:U(u)}),null,16,["model-value","mode"]),It(x,Si({"h-full":"","model-value":U(h),"read-only":""},{lineNumbers:!0},{mode:U(u)}),null,16,["model-value","mode"])]),U(p).mappings!==""?(ut(),At("div",$lt,[ct("div",Rlt," Source map (v"+ne(U(p).version)+") ",1),It(x,Si({"model-value":U(p).mappings,"read-only":""},{lineNumbers:!0},{mode:U(u)}),null,16,["model-value","mode"])])):ee("",!0)],64)):(ut(),At("div",Nlt," No transform result found for this module. "))])}}});function Flt(t,n){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(...o),n)}}var Bf="http://www.w3.org/1999/xhtml";const qv={svg:"http://www.w3.org/2000/svg",xhtml:Bf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qc(t){var n=t+="",r=n.indexOf(":");return r>=0&&(n=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),qv.hasOwnProperty(n)?{space:qv[n],local:t}:t}function Ilt(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===Bf&&n.documentElement.namespaceURI===Bf?n.createElement(t):n.createElementNS(r,t)}}function qlt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function By(t){var n=qc(t);return(n.local?qlt:Ilt)(n)}function Hlt(){}function Uh(t){return t==null?Hlt:function(){return this.querySelector(t)}}function Blt(t){typeof t!="function"&&(t=Uh(t));for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a)for(var u=n[a],f=u.length,h=o[a]=new Array(f),p,g,v=0;v<f;++v)(p=u[v])&&(g=t.call(p,p.__data__,v,u))&&("__data__"in p&&(g.__data__=p.__data__),h[v]=g);return new Rn(o,this._parents)}function Wlt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Ult(){return[]}function Wy(t){return t==null?Ult:function(){return this.querySelectorAll(t)}}function jlt(t){return function(){return Wlt(t.apply(this,arguments))}}function Glt(t){typeof t=="function"?t=jlt(t):t=Wy(t);for(var n=this._groups,r=n.length,o=[],a=[],u=0;u<r;++u)for(var f=n[u],h=f.length,p,g=0;g<h;++g)(p=f[g])&&(o.push(t.call(p,p.__data__,g,f)),a.push(p));return new Rn(o,a)}function Uy(t){return function(){return this.matches(t)}}function jy(t){return function(n){return n.matches(t)}}var Vlt=Array.prototype.find;function Klt(t){return function(){return Vlt.call(this.children,t)}}function Xlt(){return this.firstElementChild}function Ylt(t){return this.select(t==null?Xlt:Klt(typeof t=="function"?t:jy(t)))}var Zlt=Array.prototype.filter;function Jlt(){return Array.from(this.children)}function Qlt(t){return function(){return Zlt.call(this.children,t)}}function tat(t){return this.selectAll(t==null?Jlt:Qlt(typeof t=="function"?t:jy(t)))}function eat(t){typeof t!="function"&&(t=Uy(t));for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a)for(var u=n[a],f=u.length,h=o[a]=[],p,g=0;g<f;++g)(p=u[g])&&t.call(p,p.__data__,g,u)&&h.push(p);return new Rn(o,this._parents)}function Gy(t){return new Array(t.length)}function nat(){return new Rn(this._enter||this._groups.map(Gy),this._parents)}function ac(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}ac.prototype={constructor:ac,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function rat(t){return function(){return t}}function iat(t,n,r,o,a,u){for(var f=0,h,p=n.length,g=u.length;f<g;++f)(h=n[f])?(h.__data__=u[f],o[f]=h):r[f]=new ac(t,u[f]);for(;f<p;++f)(h=n[f])&&(a[f]=h)}function oat(t,n,r,o,a,u,f){var h,p,g=new Map,v=n.length,b=u.length,x=new Array(v),S;for(h=0;h<v;++h)(p=n[h])&&(x[h]=S=f.call(p,p.__data__,h,n)+"",g.has(S)?a[h]=p:g.set(S,p));for(h=0;h<b;++h)S=f.call(t,u[h],h,u)+"",(p=g.get(S))?(o[h]=p,p.__data__=u[h],g.delete(S)):r[h]=new ac(t,u[h]);for(h=0;h<v;++h)(p=n[h])&&g.get(x[h])===p&&(a[h]=p)}function sat(t){return t.__data__}function lat(t,n){if(!arguments.length)return Array.from(this,sat);var r=n?oat:iat,o=this._parents,a=this._groups;typeof t!="function"&&(t=rat(t));for(var u=a.length,f=new Array(u),h=new Array(u),p=new Array(u),g=0;g<u;++g){var v=o[g],b=a[g],x=b.length,S=aat(t.call(v,v&&v.__data__,g,o)),P=S.length,A=h[g]=new Array(P),L=f[g]=new Array(P),T=p[g]=new Array(x);r(v,b,A,L,T,S,n);for(var M=0,R=0,E,B;M<P;++M)if(E=A[M]){for(M>=R&&(R=M+1);!(B=L[R])&&++R<P;);E._next=B||null}}return f=new Rn(f,o),f._enter=h,f._exit=p,f}function aat(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function cat(){return new Rn(this._exit||this._groups.map(Gy),this._parents)}function uat(t,n,r){var o=this.enter(),a=this,u=this.exit();return typeof t=="function"?(o=t(o),o&&(o=o.selection())):o=o.append(t+""),n!=null&&(a=n(a),a&&(a=a.selection())),r==null?u.remove():r(u),o&&a?o.merge(a).order():a}function fat(t){for(var n=t.selection?t.selection():t,r=this._groups,o=n._groups,a=r.length,u=o.length,f=Math.min(a,u),h=new Array(a),p=0;p<f;++p)for(var g=r[p],v=o[p],b=g.length,x=h[p]=new Array(b),S,P=0;P<b;++P)(S=g[P]||v[P])&&(x[P]=S);for(;p<a;++p)h[p]=r[p];return new Rn(h,this._parents)}function hat(){for(var t=this._groups,n=-1,r=t.length;++n<r;)for(var o=t[n],a=o.length-1,u=o[a],f;--a>=0;)(f=o[a])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function dat(t){t||(t=pat);function n(b,x){return b&&x?t(b.__data__,x.__data__):!b-!x}for(var r=this._groups,o=r.length,a=new Array(o),u=0;u<o;++u){for(var f=r[u],h=f.length,p=a[u]=new Array(h),g,v=0;v<h;++v)(g=f[v])&&(p[v]=g);p.sort(n)}return new Rn(a,this._parents).order()}function pat(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function gat(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function vat(){return Array.from(this)}function mat(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],a=0,u=o.length;a<u;++a){var f=o[a];if(f)return f}return null}function yat(){let t=0;for(const n of this)++t;return t}function bat(){return!this.node()}function wat(t){for(var n=this._groups,r=0,o=n.length;r<o;++r)for(var a=n[r],u=0,f=a.length,h;u<f;++u)(h=a[u])&&t.call(h,h.__data__,u,a);return this}function xat(t){return function(){this.removeAttribute(t)}}function _at(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Sat(t,n){return function(){this.setAttribute(t,n)}}function kat(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Cat(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Tat(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Eat(t,n){var r=qc(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((n==null?r.local?_at:xat:typeof n=="function"?r.local?Tat:Cat:r.local?kat:Sat)(r,n))}function Vy(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Lat(t){return function(){this.style.removeProperty(t)}}function Aat(t,n,r){return function(){this.style.setProperty(t,n,r)}}function Mat(t,n,r){return function(){var o=n.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Nat(t,n,r){return arguments.length>1?this.each((n==null?Lat:typeof n=="function"?Mat:Aat)(t,n,r??"")):cs(this.node(),t)}function cs(t,n){return t.style.getPropertyValue(n)||Vy(t).getComputedStyle(t,null).getPropertyValue(n)}function Pat(t){return function(){delete this[t]}}function Oat(t,n){return function(){this[t]=n}}function Dat(t,n){return function(){var r=n.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function $at(t,n){return arguments.length>1?this.each((n==null?Pat:typeof n=="function"?Dat:Oat)(t,n)):this.node()[t]}function Ky(t){return t.trim().split(/^|\s+/)}function jh(t){return t.classList||new Xy(t)}function Xy(t){this._node=t,this._names=Ky(t.getAttribute("class")||"")}Xy.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Yy(t,n){for(var r=jh(t),o=-1,a=n.length;++o<a;)r.add(n[o])}function Zy(t,n){for(var r=jh(t),o=-1,a=n.length;++o<a;)r.remove(n[o])}function Rat(t){return function(){Yy(this,t)}}function zat(t){return function(){Zy(this,t)}}function Fat(t,n){return function(){(n.apply(this,arguments)?Yy:Zy)(this,t)}}function Iat(t,n){var r=Ky(t+"");if(arguments.length<2){for(var o=jh(this.node()),a=-1,u=r.length;++a<u;)if(!o.contains(r[a]))return!1;return!0}return this.each((typeof n=="function"?Fat:n?Rat:zat)(r,n))}function qat(){this.textContent=""}function Hat(t){return function(){this.textContent=t}}function Bat(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function Wat(t){return arguments.length?this.each(t==null?qat:(typeof t=="function"?Bat:Hat)(t)):this.node().textContent}function Uat(){this.innerHTML=""}function jat(t){return function(){this.innerHTML=t}}function Gat(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function Vat(t){return arguments.length?this.each(t==null?Uat:(typeof t=="function"?Gat:jat)(t)):this.node().innerHTML}function Kat(){this.nextSibling&&this.parentNode.appendChild(this)}function Xat(){return this.each(Kat)}function Yat(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zat(){return this.each(Yat)}function Jat(t){var n=typeof t=="function"?t:By(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function Qat(){return null}function tct(t,n){var r=typeof t=="function"?t:By(t),o=n==null?Qat:typeof n=="function"?n:Uh(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function ect(){var t=this.parentNode;t&&t.removeChild(this)}function nct(){return this.each(ect)}function rct(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ict(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function oct(t){return this.select(t?ict:rct)}function sct(t){return arguments.length?this.property("__data__",t):this.node().__data__}function lct(t){return function(n){t.call(this,n,this.__data__)}}function act(t){return t.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");return o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),{type:n,name:r}})}function cct(t){return function(){var n=this.__on;if(n){for(var r=0,o=-1,a=n.length,u;r<a;++r)u=n[r],(!t.type||u.type===t.type)&&u.name===t.name?this.removeEventListener(u.type,u.listener,u.options):n[++o]=u;++o?n.length=o:delete this.__on}}}function uct(t,n,r){return function(){var o=this.__on,a,u=lct(n);if(o){for(var f=0,h=o.length;f<h;++f)if((a=o[f]).type===t.type&&a.name===t.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=r),a.value=n;return}}this.addEventListener(t.type,u,r),a={type:t.type,name:t.name,value:n,listener:u,options:r},o?o.push(a):this.__on=[a]}}function fct(t,n,r){var o=act(t+""),a,u=o.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var p=0,g=h.length,v;p<g;++p)for(a=0,v=h[p];a<u;++a)if((f=o[a]).type===v.type&&f.name===v.name)return v.value}return}for(h=n?uct:cct,a=0;a<u;++a)this.each(h(o[a],n,r));return this}function Jy(t,n,r){var o=Vy(t),a=o.CustomEvent;typeof a=="function"?a=new a(n,r):(a=o.document.createEvent("Event"),r?(a.initEvent(n,r.bubbles,r.cancelable),a.detail=r.detail):a.initEvent(n,!1,!1)),t.dispatchEvent(a)}function hct(t,n){return function(){return Jy(this,t,n)}}function dct(t,n){return function(){return Jy(this,t,n.apply(this,arguments))}}function pct(t,n){return this.each((typeof n=="function"?dct:hct)(t,n))}function*gct(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],a=0,u=o.length,f;a<u;++a)(f=o[a])&&(yield f)}var Qy=[null];function Rn(t,n){this._groups=t,this._parents=n}function Dl(){return new Rn([[document.documentElement]],Qy)}function vct(){return this}Rn.prototype=Dl.prototype={constructor:Rn,select:Blt,selectAll:Glt,selectChild:Ylt,selectChildren:tat,filter:eat,data:lat,enter:nat,exit:cat,join:uat,merge:fat,selection:vct,order:hat,sort:dat,call:gat,nodes:vat,node:mat,size:yat,empty:bat,each:wat,attr:Eat,style:Nat,property:$at,classed:Iat,text:Wat,html:Vat,raise:Xat,lower:Zat,append:Jat,insert:tct,remove:nct,clone:oct,datum:sct,on:fct,dispatch:pct,[Symbol.iterator]:gct};function Cn(t){return typeof t=="string"?new Rn([[document.querySelector(t)]],[document.documentElement]):new Rn([[t]],Qy)}function mct(t){let n;for(;n=t.sourceEvent;)t=n;return t}function $r(t,n){if(t=mct(t),n===void 0&&(n=t.currentTarget),n){var r=n.ownerSVGElement||n;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=t.clientX,o.y=t.clientY,o=o.matrixTransform(n.getScreenCTM().inverse()),[o.x,o.y]}if(n.getBoundingClientRect){var a=n.getBoundingClientRect();return[t.clientX-a.left-n.clientLeft,t.clientY-a.top-n.clientTop]}}return[t.pageX,t.pageY]}class hn{constructor(n,r){this.x=n,this.y=r}static of([n,r]){return new hn(n,r)}add(n){return new hn(this.x+n.x,this.y+n.y)}subtract(n){return new hn(this.x-n.x,this.y-n.y)}multiply(n){return new hn(this.x*n,this.y*n)}divide(n){return new hn(this.x/n,this.y/n)}dot(n){return this.x*n.x+this.y*n.y}cross(n){return this.x*n.y-n.x*this.y}hadamard(n){return new hn(this.x*n.x,this.y*n.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const n=this.length();return new hn(this.x/n,this.y/n)}rotateByRadians(n){const r=Math.cos(n),o=Math.sin(n);return new hn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(n){return this.rotateByRadians(n*Math.PI/180)}}var yct={value:()=>{}};function $l(){for(var t=0,n=arguments.length,r={},o;t<n;++t){if(!(o=arguments[t]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Ha(r)}function Ha(t){this._=t}function bct(t,n){return t.trim().split(/^|\s+/).map(function(r){var o="",a=r.indexOf(".");if(a>=0&&(o=r.slice(a+1),r=r.slice(0,a)),r&&!n.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Ha.prototype=$l.prototype={constructor:Ha,on:function(t,n){var r=this._,o=bct(t+"",r),a,u=-1,f=o.length;if(arguments.length<2){for(;++u<f;)if((a=(t=o[u]).type)&&(a=wct(r[a],t.name)))return a;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++u<f;)if(a=(t=o[u]).type)r[a]=Hv(r[a],t.name,n);else if(n==null)for(a in r)r[a]=Hv(r[a],t.name,null);return this},copy:function(){var t={},n=this._;for(var r in n)t[r]=n[r].slice();return new Ha(t)},call:function(t,n){if((a=arguments.length-2)>0)for(var r=new Array(a),o=0,a,u;o<a;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=this._[t],o=0,a=u.length;o<a;++o)u[o].value.apply(n,r)},apply:function(t,n,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],a=0,u=o.length;a<u;++a)o[a].value.apply(n,r)}};function wct(t,n){for(var r=0,o=t.length,a;r<o;++r)if((a=t[r]).name===n)return a.value}function Hv(t,n,r){for(var o=0,a=t.length;o<a;++o)if(t[o].name===n){t[o]=yct,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:n,value:r}),t}const xct={passive:!1},xl={capture:!0,passive:!1};function nf(t){t.stopImmediatePropagation()}function Yo(t){t.preventDefault(),t.stopImmediatePropagation()}function tb(t){var n=t.document.documentElement,r=Cn(t).on("dragstart.drag",Yo,xl);"onselectstart"in n?r.on("selectstart.drag",Yo,xl):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function eb(t,n){var r=t.document.documentElement,o=Cn(t).on("dragstart.drag",null);n&&(o.on("click.drag",Yo,xl),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const Ta=t=>()=>t;function Wf(t,{sourceEvent:n,subject:r,target:o,identifier:a,active:u,x:f,y:h,dx:p,dy:g,dispatch:v}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:u,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:p,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:v}})}Wf.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function _ct(t){return!t.ctrlKey&&!t.button}function Sct(){return this.parentNode}function kct(t,n){return n??{x:t.x,y:t.y}}function Cct(){return navigator.maxTouchPoints||"ontouchstart"in this}function Tct(){var t=_ct,n=Sct,r=kct,o=Cct,a={},u=$l("start","drag","end"),f=0,h,p,g,v,b=0;function x(E){E.on("mousedown.drag",S).filter(o).on("touchstart.drag",L).on("touchmove.drag",T,xct).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(E,B){if(!(v||!t.call(this,E,B))){var K=R(this,n.call(this,E,B),E,B,"mouse");K&&(Cn(E.view).on("mousemove.drag",P,xl).on("mouseup.drag",A,xl),tb(E.view),nf(E),g=!1,h=E.clientX,p=E.clientY,K("start",E))}}function P(E){if(Yo(E),!g){var B=E.clientX-h,K=E.clientY-p;g=B*B+K*K>b}a.mouse("drag",E)}function A(E){Cn(E.view).on("mousemove.drag mouseup.drag",null),eb(E.view,g),Yo(E),a.mouse("end",E)}function L(E,B){if(t.call(this,E,B)){var K=E.changedTouches,ht=n.call(this,E,B),Y=K.length,et,st;for(et=0;et<Y;++et)(st=R(this,ht,E,B,K[et].identifier,K[et]))&&(nf(E),st("start",E,K[et]))}}function T(E){var B=E.changedTouches,K=B.length,ht,Y;for(ht=0;ht<K;++ht)(Y=a[B[ht].identifier])&&(Yo(E),Y("drag",E,B[ht]))}function M(E){var B=E.changedTouches,K=B.length,ht,Y;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),ht=0;ht<K;++ht)(Y=a[B[ht].identifier])&&(nf(E),Y("end",E,B[ht]))}function R(E,B,K,ht,Y,et){var st=u.copy(),pt=$r(et||K,B),gt,V,z;if((z=r.call(E,new Wf("beforestart",{sourceEvent:K,target:x,identifier:Y,active:f,x:pt[0],y:pt[1],dx:0,dy:0,dispatch:st}),ht))!=null)return gt=z.x-pt[0]||0,V=z.y-pt[1]||0,function k(I,H,J){var yt=pt,Lt;switch(I){case"start":a[Y]=k,Lt=f++;break;case"end":delete a[Y],--f;case"drag":pt=$r(J||H,B),Lt=f;break}st.call(I,E,new Wf(I,{sourceEvent:H,subject:z,target:x,identifier:Y,active:Lt,x:pt[0]+gt,y:pt[1]+V,dx:pt[0]-yt[0],dy:pt[1]-yt[1],dispatch:st}),ht)}}return x.filter=function(E){return arguments.length?(t=typeof E=="function"?E:Ta(!!E),x):t},x.container=function(E){return arguments.length?(n=typeof E=="function"?E:Ta(E),x):n},x.subject=function(E){return arguments.length?(r=typeof E=="function"?E:Ta(E),x):r},x.touchable=function(E){return arguments.length?(o=typeof E=="function"?E:Ta(!!E),x):o},x.on=function(){var E=u.on.apply(u,arguments);return E===u?x:E},x.clickDistance=function(E){return arguments.length?(b=(E=+E)*E,x):Math.sqrt(b)},x}function Gh(t,n,r){t.prototype=n.prototype=r,r.constructor=t}function nb(t,n){var r=Object.create(t.prototype);for(var o in n)r[o]=n[o];return r}function Rl(){}var _l=.7,cc=1/_l,Zo="\\s*([+-]?\\d+)\\s*",Sl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",br="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ect=/^#([0-9a-f]{3,8})$/,Lct=new RegExp(`^rgb\\(${Zo},${Zo},${Zo}\\)$`),Act=new RegExp(`^rgb\\(${br},${br},${br}\\)$`),Mct=new RegExp(`^rgba\\(${Zo},${Zo},${Zo},${Sl}\\)$`),Nct=new RegExp(`^rgba\\(${br},${br},${br},${Sl}\\)$`),Pct=new RegExp(`^hsl\\(${Sl},${br},${br}\\)$`),Oct=new RegExp(`^hsla\\(${Sl},${br},${br},${Sl}\\)$`),Bv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gh(Rl,kl,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Wv,formatHex:Wv,formatHex8:Dct,formatHsl:$ct,formatRgb:Uv,toString:Uv});function Wv(){return this.rgb().formatHex()}function Dct(){return this.rgb().formatHex8()}function $ct(){return rb(this).formatHsl()}function Uv(){return this.rgb().formatRgb()}function kl(t){var n,r;return t=(t+"").trim().toLowerCase(),(n=Ect.exec(t))?(r=n[1].length,n=parseInt(n[1],16),r===6?jv(n):r===3?new Tn(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):r===8?Ea(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):r===4?Ea(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=Lct.exec(t))?new Tn(n[1],n[2],n[3],1):(n=Act.exec(t))?new Tn(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Mct.exec(t))?Ea(n[1],n[2],n[3],n[4]):(n=Nct.exec(t))?Ea(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Pct.exec(t))?Kv(n[1],n[2]/100,n[3]/100,1):(n=Oct.exec(t))?Kv(n[1],n[2]/100,n[3]/100,n[4]):Bv.hasOwnProperty(t)?jv(Bv[t]):t==="transparent"?new Tn(NaN,NaN,NaN,0):null}function jv(t){return new Tn(t>>16&255,t>>8&255,t&255,1)}function Ea(t,n,r,o){return o<=0&&(t=n=r=NaN),new Tn(t,n,r,o)}function Rct(t){return t instanceof Rl||(t=kl(t)),t?(t=t.rgb(),new Tn(t.r,t.g,t.b,t.opacity)):new Tn}function Uf(t,n,r,o){return arguments.length===1?Rct(t):new Tn(t,n,r,o??1)}function Tn(t,n,r,o){this.r=+t,this.g=+n,this.b=+r,this.opacity=+o}Gh(Tn,Uf,nb(Rl,{brighter(t){return t=t==null?cc:Math.pow(cc,t),new Tn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?_l:Math.pow(_l,t),new Tn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Tn(Qi(this.r),Qi(this.g),Qi(this.b),uc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Gv,formatHex:Gv,formatHex8:zct,formatRgb:Vv,toString:Vv}));function Gv(){return`#${Xi(this.r)}${Xi(this.g)}${Xi(this.b)}`}function zct(){return`#${Xi(this.r)}${Xi(this.g)}${Xi(this.b)}${Xi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Vv(){const t=uc(this.opacity);return`${t===1?"rgb(":"rgba("}${Qi(this.r)}, ${Qi(this.g)}, ${Qi(this.b)}${t===1?")":`, ${t})`}`}function uc(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Qi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Xi(t){return t=Qi(t),(t<16?"0":"")+t.toString(16)}function Kv(t,n,r,o){return o<=0?t=n=r=NaN:r<=0||r>=1?t=n=NaN:n<=0&&(t=NaN),new rr(t,n,r,o)}function rb(t){if(t instanceof rr)return new rr(t.h,t.s,t.l,t.opacity);if(t instanceof Rl||(t=kl(t)),!t)return new rr;if(t instanceof rr)return t;t=t.rgb();var n=t.r/255,r=t.g/255,o=t.b/255,a=Math.min(n,r,o),u=Math.max(n,r,o),f=NaN,h=u-a,p=(u+a)/2;return h?(n===u?f=(r-o)/h+(r<o)*6:r===u?f=(o-n)/h+2:f=(n-r)/h+4,h/=p<.5?u+a:2-u-a,f*=60):h=p>0&&p<1?0:f,new rr(f,h,p,t.opacity)}function Fct(t,n,r,o){return arguments.length===1?rb(t):new rr(t,n,r,o??1)}function rr(t,n,r,o){this.h=+t,this.s=+n,this.l=+r,this.opacity=+o}Gh(rr,Fct,nb(Rl,{brighter(t){return t=t==null?cc:Math.pow(cc,t),new rr(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?_l:Math.pow(_l,t),new rr(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*n,a=2*r-o;return new Tn(rf(t>=240?t-240:t+120,a,o),rf(t,a,o),rf(t<120?t+240:t-120,a,o),this.opacity)},clamp(){return new rr(Xv(this.h),La(this.s),La(this.l),uc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=uc(this.opacity);return`${t===1?"hsl(":"hsla("}${Xv(this.h)}, ${La(this.s)*100}%, ${La(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Xv(t){return t=(t||0)%360,t<0?t+360:t}function La(t){return Math.max(0,Math.min(1,t||0))}function rf(t,n,r){return(t<60?n+(r-n)*t/60:t<180?r:t<240?n+(r-n)*(240-t)/60:n)*255}const ib=t=>()=>t;function Ict(t,n){return function(r){return t+r*n}}function qct(t,n,r){return t=Math.pow(t,r),n=Math.pow(n,r)-t,r=1/r,function(o){return Math.pow(t+o*n,r)}}function Hct(t){return(t=+t)==1?ob:function(n,r){return r-n?qct(n,r,t):ib(isNaN(n)?r:n)}}function ob(t,n){var r=n-t;return r?Ict(t,r):ib(isNaN(t)?n:t)}const Yv=function t(n){var r=Hct(n);function o(a,u){var f=r((a=Uf(a)).r,(u=Uf(u)).r),h=r(a.g,u.g),p=r(a.b,u.b),g=ob(a.opacity,u.opacity);return function(v){return a.r=f(v),a.g=h(v),a.b=p(v),a.opacity=g(v),a+""}}return o.gamma=t,o}(1);function mi(t,n){return t=+t,n=+n,function(r){return t*(1-r)+n*r}}var jf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,of=new RegExp(jf.source,"g");function Bct(t){return function(){return t}}function Wct(t){return function(n){return t(n)+""}}function Uct(t,n){var r=jf.lastIndex=of.lastIndex=0,o,a,u,f=-1,h=[],p=[];for(t=t+"",n=n+"";(o=jf.exec(t))&&(a=of.exec(n));)(u=a.index)>r&&(u=n.slice(r,u),h[f]?h[f]+=u:h[++f]=u),(o=o[0])===(a=a[0])?h[f]?h[f]+=a:h[++f]=a:(h[++f]=null,p.push({i:f,x:mi(o,a)})),r=of.lastIndex;return r<n.length&&(u=n.slice(r),h[f]?h[f]+=u:h[++f]=u),h.length<2?p[0]?Wct(p[0].x):Bct(n):(n=p.length,function(g){for(var v=0,b;v<n;++v)h[(b=p[v]).i]=b.x(g);return h.join("")})}var Zv=180/Math.PI,Gf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function sb(t,n,r,o,a,u){var f,h,p;return(f=Math.sqrt(t*t+n*n))&&(t/=f,n/=f),(p=t*r+n*o)&&(r-=t*p,o-=n*p),(h=Math.sqrt(r*r+o*o))&&(r/=h,o/=h,p/=h),t*o<n*r&&(t=-t,n=-n,p=-p,f=-f),{translateX:a,translateY:u,rotate:Math.atan2(n,t)*Zv,skewX:Math.atan(p)*Zv,scaleX:f,scaleY:h}}var Aa;function jct(t){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?Gf:sb(n.a,n.b,n.c,n.d,n.e,n.f)}function Gct(t){return t==null||(Aa||(Aa=document.createElementNS("http://www.w3.org/2000/svg","g")),Aa.setAttribute("transform",t),!(t=Aa.transform.baseVal.consolidate()))?Gf:(t=t.matrix,sb(t.a,t.b,t.c,t.d,t.e,t.f))}function lb(t,n,r,o){function a(g){return g.length?g.pop()+" ":""}function u(g,v,b,x,S,P){if(g!==b||v!==x){var A=S.push("translate(",null,n,null,r);P.push({i:A-4,x:mi(g,b)},{i:A-2,x:mi(v,x)})}else(b||x)&&S.push("translate("+b+n+x+r)}function f(g,v,b,x){g!==v?(g-v>180?v+=360:v-g>180&&(g+=360),x.push({i:b.push(a(b)+"rotate(",null,o)-2,x:mi(g,v)})):v&&b.push(a(b)+"rotate("+v+o)}function h(g,v,b,x){g!==v?x.push({i:b.push(a(b)+"skewX(",null,o)-2,x:mi(g,v)}):v&&b.push(a(b)+"skewX("+v+o)}function p(g,v,b,x,S,P){if(g!==b||v!==x){var A=S.push(a(S)+"scale(",null,",",null,")");P.push({i:A-4,x:mi(g,b)},{i:A-2,x:mi(v,x)})}else(b!==1||x!==1)&&S.push(a(S)+"scale("+b+","+x+")")}return function(g,v){var b=[],x=[];return g=t(g),v=t(v),u(g.translateX,g.translateY,v.translateX,v.translateY,b,x),f(g.rotate,v.rotate,b,x),h(g.skewX,v.skewX,b,x),p(g.scaleX,g.scaleY,v.scaleX,v.scaleY,b,x),g=v=null,function(S){for(var P=-1,A=x.length,L;++P<A;)b[(L=x[P]).i]=L.x(S);return b.join("")}}}var Vct=lb(jct,"px, ","px)","deg)"),Kct=lb(Gct,", ",")",")"),Xct=1e-12;function Jv(t){return((t=Math.exp(t))+1/t)/2}function Yct(t){return((t=Math.exp(t))-1/t)/2}function Zct(t){return((t=Math.exp(2*t))-1)/(t+1)}const Jct=function t(n,r,o){function a(u,f){var h=u[0],p=u[1],g=u[2],v=f[0],b=f[1],x=f[2],S=v-h,P=b-p,A=S*S+P*P,L,T;if(A<Xct)T=Math.log(x/g)/n,L=function(ht){return[h+ht*S,p+ht*P,g*Math.exp(n*ht*T)]};else{var M=Math.sqrt(A),R=(x*x-g*g+o*A)/(2*g*r*M),E=(x*x-g*g-o*A)/(2*x*r*M),B=Math.log(Math.sqrt(R*R+1)-R),K=Math.log(Math.sqrt(E*E+1)-E);T=(K-B)/n,L=function(ht){var Y=ht*T,et=Jv(B),st=g/(r*M)*(et*Zct(n*Y+B)-Yct(B));return[h+st*S,p+st*P,g*et/Jv(n*Y+B)]}}return L.duration=T*1e3*n/Math.SQRT2,L}return a.rho=function(u){var f=Math.max(.001,+u),h=f*f,p=h*h;return t(f,h,p)},a}(Math.SQRT2,2,4);var us=0,el=0,Zs=0,ab=1e3,fc,nl,hc=0,io=0,Hc=0,Cl=typeof performance=="object"&&performance.now?performance:Date,cb=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Vh(){return io||(cb(Qct),io=Cl.now()+Hc)}function Qct(){io=0}function dc(){this._call=this._time=this._next=null}dc.prototype=Kh.prototype={constructor:dc,restart:function(t,n,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Vh():+r)+(n==null?0:+n),!this._next&&nl!==this&&(nl?nl._next=this:fc=this,nl=this),this._call=t,this._time=r,Vf()},stop:function(){this._call&&(this._call=null,this._time=1/0,Vf())}};function Kh(t,n,r){var o=new dc;return o.restart(t,n,r),o}function tut(){Vh(),++us;for(var t=fc,n;t;)(n=io-t._time)>=0&&t._call.call(void 0,n),t=t._next;--us}function Qv(){io=(hc=Cl.now())+Hc,us=el=0;try{tut()}finally{us=0,nut(),io=0}}function eut(){var t=Cl.now(),n=t-hc;n>ab&&(Hc-=n,hc=t)}function nut(){for(var t,n=fc,r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(r=n._next,n._next=null,n=t?t._next=r:fc=r);nl=t,Vf(o)}function Vf(t){if(!us){el&&(el=clearTimeout(el));var n=t-io;n>24?(t<1/0&&(el=setTimeout(Qv,t-Cl.now()-Hc)),Zs&&(Zs=clearInterval(Zs))):(Zs||(hc=Cl.now(),Zs=setInterval(eut,ab)),us=1,cb(Qv))}}function tm(t,n,r){var o=new dc;return n=n==null?0:+n,o.restart(a=>{o.stop(),t(a+n)},n,r),o}var rut=$l("start","end","cancel","interrupt"),iut=[],ub=0,em=1,Kf=2,Ba=3,nm=4,Xf=5,Wa=6;function Bc(t,n,r,o,a,u){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;out(t,r,{name:n,index:o,group:a,on:rut,tween:iut,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:ub})}function Xh(t,n){var r=sr(t,n);if(r.state>ub)throw new Error("too late; already scheduled");return r}function _r(t,n){var r=sr(t,n);if(r.state>Ba)throw new Error("too late; already running");return r}function sr(t,n){var r=t.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function out(t,n,r){var o=t.__transition,a;o[n]=r,r.timer=Kh(u,0,r.time);function u(g){r.state=em,r.timer.restart(f,r.delay,r.time),r.delay<=g&&f(g-r.delay)}function f(g){var v,b,x,S;if(r.state!==em)return p();for(v in o)if(S=o[v],S.name===r.name){if(S.state===Ba)return tm(f);S.state===nm?(S.state=Wa,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete o[v]):+v<n&&(S.state=Wa,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete o[v])}if(tm(function(){r.state===Ba&&(r.state=nm,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=Kf,r.on.call("start",t,t.__data__,r.index,r.group),r.state===Kf){for(r.state=Ba,a=new Array(x=r.tween.length),v=0,b=-1;v<x;++v)(S=r.tween[v].value.call(t,t.__data__,r.index,r.group))&&(a[++b]=S);a.length=b+1}}function h(g){for(var v=g<r.duration?r.ease.call(null,g/r.duration):(r.timer.restart(p),r.state=Xf,1),b=-1,x=a.length;++b<x;)a[b].call(t,v);r.state===Xf&&(r.on.call("end",t,t.__data__,r.index,r.group),p())}function p(){r.state=Wa,r.timer.stop(),delete o[n];for(var g in o)return;delete t.__transition}}function Ua(t,n){var r=t.__transition,o,a,u=!0,f;if(r){n=n==null?null:n+"";for(f in r){if((o=r[f]).name!==n){u=!1;continue}a=o.state>Kf&&o.state<Xf,o.state=Wa,o.timer.stop(),o.on.call(a?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[f]}u&&delete t.__transition}}function sut(t){return this.each(function(){Ua(this,t)})}function lut(t,n){var r,o;return function(){var a=_r(this,t),u=a.tween;if(u!==r){o=r=u;for(var f=0,h=o.length;f<h;++f)if(o[f].name===n){o=o.slice(),o.splice(f,1);break}}a.tween=o}}function aut(t,n,r){var o,a;if(typeof r!="function")throw new Error;return function(){var u=_r(this,t),f=u.tween;if(f!==o){a=(o=f).slice();for(var h={name:n,value:r},p=0,g=a.length;p<g;++p)if(a[p].name===n){a[p]=h;break}p===g&&a.push(h)}u.tween=a}}function cut(t,n){var r=this._id;if(t+="",arguments.length<2){for(var o=sr(this.node(),r).tween,a=0,u=o.length,f;a<u;++a)if((f=o[a]).name===t)return f.value;return null}return this.each((n==null?lut:aut)(r,t,n))}function Yh(t,n,r){var o=t._id;return t.each(function(){var a=_r(this,o);(a.value||(a.value={}))[n]=r.apply(this,arguments)}),function(a){return sr(a,o).value[n]}}function fb(t,n){var r;return(typeof n=="number"?mi:n instanceof kl?Yv:(r=kl(n))?(n=r,Yv):Uct)(t,n)}function uut(t){return function(){this.removeAttribute(t)}}function fut(t){return function(){this.removeAttributeNS(t.space,t.local)}}function hut(t,n,r){var o,a=r+"",u;return function(){var f=this.getAttribute(t);return f===a?null:f===o?u:u=n(o=f,r)}}function dut(t,n,r){var o,a=r+"",u;return function(){var f=this.getAttributeNS(t.space,t.local);return f===a?null:f===o?u:u=n(o=f,r)}}function put(t,n,r){var o,a,u;return function(){var f,h=r(this),p;return h==null?void this.removeAttribute(t):(f=this.getAttribute(t),p=h+"",f===p?null:f===o&&p===a?u:(a=p,u=n(o=f,h)))}}function gut(t,n,r){var o,a,u;return function(){var f,h=r(this),p;return h==null?void this.removeAttributeNS(t.space,t.local):(f=this.getAttributeNS(t.space,t.local),p=h+"",f===p?null:f===o&&p===a?u:(a=p,u=n(o=f,h)))}}function vut(t,n){var r=qc(t),o=r==="transform"?Kct:fb;return this.attrTween(t,typeof n=="function"?(r.local?gut:put)(r,o,Yh(this,"attr."+t,n)):n==null?(r.local?fut:uut)(r):(r.local?dut:hut)(r,o,n))}function mut(t,n){return function(r){this.setAttribute(t,n.call(this,r))}}function yut(t,n){return function(r){this.setAttributeNS(t.space,t.local,n.call(this,r))}}function but(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&yut(t,u)),r}return a._value=n,a}function wut(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&mut(t,u)),r}return a._value=n,a}function xut(t,n){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;var o=qc(t);return this.tween(r,(o.local?but:wut)(o,n))}function _ut(t,n){return function(){Xh(this,t).delay=+n.apply(this,arguments)}}function Sut(t,n){return n=+n,function(){Xh(this,t).delay=n}}function kut(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?_ut:Sut)(n,t)):sr(this.node(),n).delay}function Cut(t,n){return function(){_r(this,t).duration=+n.apply(this,arguments)}}function Tut(t,n){return n=+n,function(){_r(this,t).duration=n}}function Eut(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Cut:Tut)(n,t)):sr(this.node(),n).duration}function Lut(t,n){if(typeof n!="function")throw new Error;return function(){_r(this,t).ease=n}}function Aut(t){var n=this._id;return arguments.length?this.each(Lut(n,t)):sr(this.node(),n).ease}function Mut(t,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;_r(this,t).ease=r}}function Nut(t){if(typeof t!="function")throw new Error;return this.each(Mut(this._id,t))}function Put(t){typeof t!="function"&&(t=Uy(t));for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a)for(var u=n[a],f=u.length,h=o[a]=[],p,g=0;g<f;++g)(p=u[g])&&t.call(p,p.__data__,g,u)&&h.push(p);return new Gr(o,this._parents,this._name,this._id)}function Out(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,r=t._groups,o=n.length,a=r.length,u=Math.min(o,a),f=new Array(o),h=0;h<u;++h)for(var p=n[h],g=r[h],v=p.length,b=f[h]=new Array(v),x,S=0;S<v;++S)(x=p[S]||g[S])&&(b[S]=x);for(;h<o;++h)f[h]=n[h];return new Gr(f,this._parents,this._name,this._id)}function Dut(t){return(t+"").trim().split(/^|\s+/).every(function(n){var r=n.indexOf(".");return r>=0&&(n=n.slice(0,r)),!n||n==="start"})}function $ut(t,n,r){var o,a,u=Dut(n)?Xh:_r;return function(){var f=u(this,t),h=f.on;h!==o&&(a=(o=h).copy()).on(n,r),f.on=a}}function Rut(t,n){var r=this._id;return arguments.length<2?sr(this.node(),r).on.on(t):this.each($ut(r,t,n))}function zut(t){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==t)return;n&&n.removeChild(this)}}function Fut(){return this.on("end.remove",zut(this._id))}function Iut(t){var n=this._name,r=this._id;typeof t!="function"&&(t=Uh(t));for(var o=this._groups,a=o.length,u=new Array(a),f=0;f<a;++f)for(var h=o[f],p=h.length,g=u[f]=new Array(p),v,b,x=0;x<p;++x)(v=h[x])&&(b=t.call(v,v.__data__,x,h))&&("__data__"in v&&(b.__data__=v.__data__),g[x]=b,Bc(g[x],n,r,x,g,sr(v,r)));return new Gr(u,this._parents,n,r)}function qut(t){var n=this._name,r=this._id;typeof t!="function"&&(t=Wy(t));for(var o=this._groups,a=o.length,u=[],f=[],h=0;h<a;++h)for(var p=o[h],g=p.length,v,b=0;b<g;++b)if(v=p[b]){for(var x=t.call(v,v.__data__,b,p),S,P=sr(v,r),A=0,L=x.length;A<L;++A)(S=x[A])&&Bc(S,n,r,A,x,P);u.push(x),f.push(v)}return new Gr(u,f,n,r)}var Hut=Dl.prototype.constructor;function But(){return new Hut(this._groups,this._parents)}function Wut(t,n){var r,o,a;return function(){var u=cs(this,t),f=(this.style.removeProperty(t),cs(this,t));return u===f?null:u===r&&f===o?a:a=n(r=u,o=f)}}function hb(t){return function(){this.style.removeProperty(t)}}function Uut(t,n,r){var o,a=r+"",u;return function(){var f=cs(this,t);return f===a?null:f===o?u:u=n(o=f,r)}}function jut(t,n,r){var o,a,u;return function(){var f=cs(this,t),h=r(this),p=h+"";return h==null&&(p=h=(this.style.removeProperty(t),cs(this,t))),f===p?null:f===o&&p===a?u:(a=p,u=n(o=f,h))}}function Gut(t,n){var r,o,a,u="style."+n,f="end."+u,h;return function(){var p=_r(this,t),g=p.on,v=p.value[u]==null?h||(h=hb(n)):void 0;(g!==r||a!==v)&&(o=(r=g).copy()).on(f,a=v),p.on=o}}function Vut(t,n,r){var o=(t+="")=="transform"?Vct:fb;return n==null?this.styleTween(t,Wut(t,o)).on("end.style."+t,hb(t)):typeof n=="function"?this.styleTween(t,jut(t,o,Yh(this,"style."+t,n))).each(Gut(this._id,t)):this.styleTween(t,Uut(t,o,n),r).on("end.style."+t,null)}function Kut(t,n,r){return function(o){this.style.setProperty(t,n.call(this,o),r)}}function Xut(t,n,r){var o,a;function u(){var f=n.apply(this,arguments);return f!==a&&(o=(a=f)&&Kut(t,f,r)),o}return u._value=n,u}function Yut(t,n,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(n==null)return this.tween(o,null);if(typeof n!="function")throw new Error;return this.tween(o,Xut(t,n,r??""))}function Zut(t){return function(){this.textContent=t}}function Jut(t){return function(){var n=t(this);this.textContent=n??""}}function Qut(t){return this.tween("text",typeof t=="function"?Jut(Yh(this,"text",t)):Zut(t==null?"":t+""))}function tft(t){return function(n){this.textContent=t.call(this,n)}}function eft(t){var n,r;function o(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&tft(a)),n}return o._value=t,o}function nft(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,eft(t))}function rft(){for(var t=this._name,n=this._id,r=db(),o=this._groups,a=o.length,u=0;u<a;++u)for(var f=o[u],h=f.length,p,g=0;g<h;++g)if(p=f[g]){var v=sr(p,n);Bc(p,t,r,g,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Gr(o,this._parents,t,r)}function ift(){var t,n,r=this,o=r._id,a=r.size();return new Promise(function(u,f){var h={value:f},p={value:function(){--a===0&&u()}};r.each(function(){var g=_r(this,o),v=g.on;v!==t&&(n=(t=v).copy(),n._.cancel.push(h),n._.interrupt.push(h),n._.end.push(p)),g.on=n}),a===0&&u()})}var oft=0;function Gr(t,n,r,o){this._groups=t,this._parents=n,this._name=r,this._id=o}function db(){return++oft}var Or=Dl.prototype;Gr.prototype={constructor:Gr,select:Iut,selectAll:qut,selectChild:Or.selectChild,selectChildren:Or.selectChildren,filter:Put,merge:Out,selection:But,transition:rft,call:Or.call,nodes:Or.nodes,node:Or.node,size:Or.size,empty:Or.empty,each:Or.each,on:Rut,attr:vut,attrTween:xut,style:Vut,styleTween:Yut,text:Qut,textTween:nft,remove:Fut,tween:cut,delay:kut,duration:Eut,ease:Aut,easeVarying:Nut,end:ift,[Symbol.iterator]:Or[Symbol.iterator]};function sft(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var lft={time:null,delay:0,duration:250,ease:sft};function aft(t,n){for(var r;!(r=t.__transition)||!(r=r[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return r}function cft(t){var n,r;t instanceof Gr?(n=t._id,t=t._name):(n=db(),(r=lft).time=Vh(),t=t==null?null:t+"");for(var o=this._groups,a=o.length,u=0;u<a;++u)for(var f=o[u],h=f.length,p,g=0;g<h;++g)(p=f[g])&&Bc(p,t,n,g,f,r||aft(p,n));return new Gr(o,this._parents,t,n)}Dl.prototype.interrupt=sut;Dl.prototype.transition=cft;const Ma=t=>()=>t;function uft(t,{sourceEvent:n,target:r,transform:o,dispatch:a}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function zr(t,n,r){this.k=t,this.x=n,this.y=r}zr.prototype={constructor:zr,scale:function(t){return t===1?this:new zr(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new zr(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Zh=new zr(1,0,0);zr.prototype;function sf(t){t.stopImmediatePropagation()}function Js(t){t.preventDefault(),t.stopImmediatePropagation()}function fft(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function hft(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function rm(){return this.__zoom||Zh}function dft(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function pft(){return navigator.maxTouchPoints||"ontouchstart"in this}function gft(t,n,r){var o=t.invertX(n[0][0])-r[0][0],a=t.invertX(n[1][0])-r[1][0],u=t.invertY(n[0][1])-r[0][1],f=t.invertY(n[1][1])-r[1][1];return t.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function vft(){var t=fft,n=hft,r=gft,o=dft,a=pft,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,p=Jct,g=$l("start","zoom","end"),v,b,x,S=500,P=150,A=0,L=10;function T(z){z.property("__zoom",rm).on("wheel.zoom",Y,{passive:!1}).on("mousedown.zoom",et).on("dblclick.zoom",st).filter(a).on("touchstart.zoom",pt).on("touchmove.zoom",gt).on("touchend.zoom touchcancel.zoom",V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}T.transform=function(z,k,I,H){var J=z.selection?z.selection():z;J.property("__zoom",rm),z!==J?B(z,k,I,H):J.interrupt().each(function(){K(this,arguments).event(H).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},T.scaleBy=function(z,k,I,H){T.scaleTo(z,function(){var J=this.__zoom.k,yt=typeof k=="function"?k.apply(this,arguments):k;return J*yt},I,H)},T.scaleTo=function(z,k,I,H){T.transform(z,function(){var J=n.apply(this,arguments),yt=this.__zoom,Lt=I==null?E(J):typeof I=="function"?I.apply(this,arguments):I,qt=yt.invert(Lt),Ht=typeof k=="function"?k.apply(this,arguments):k;return r(R(M(yt,Ht),Lt,qt),J,f)},I,H)},T.translateBy=function(z,k,I,H){T.transform(z,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof I=="function"?I.apply(this,arguments):I),n.apply(this,arguments),f)},null,H)},T.translateTo=function(z,k,I,H,J){T.transform(z,function(){var yt=n.apply(this,arguments),Lt=this.__zoom,qt=H==null?E(yt):typeof H=="function"?H.apply(this,arguments):H;return r(Zh.translate(qt[0],qt[1]).scale(Lt.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof I=="function"?-I.apply(this,arguments):-I),yt,f)},H,J)};function M(z,k){return k=Math.max(u[0],Math.min(u[1],k)),k===z.k?z:new zr(k,z.x,z.y)}function R(z,k,I){var H=k[0]-I[0]*z.k,J=k[1]-I[1]*z.k;return H===z.x&&J===z.y?z:new zr(z.k,H,J)}function E(z){return[(+z[0][0]+ +z[1][0])/2,(+z[0][1]+ +z[1][1])/2]}function B(z,k,I,H){z.on("start.zoom",function(){K(this,arguments).event(H).start()}).on("interrupt.zoom end.zoom",function(){K(this,arguments).event(H).end()}).tween("zoom",function(){var J=this,yt=arguments,Lt=K(J,yt).event(H),qt=n.apply(J,yt),Ht=I==null?E(qt):typeof I=="function"?I.apply(J,yt):I,Zt=Math.max(qt[1][0]-qt[0][0],qt[1][1]-qt[0][1]),Xt=J.__zoom,jt=typeof k=="function"?k.apply(J,yt):k,Ct=p(Xt.invert(Ht).concat(Zt/Xt.k),jt.invert(Ht).concat(Zt/jt.k));return function(j){if(j===1)j=jt;else{var nt=Ct(j),ot=Zt/nt[2];j=new zr(ot,Ht[0]-nt[0]*ot,Ht[1]-nt[1]*ot)}Lt.zoom(null,j)}})}function K(z,k,I){return!I&&z.__zooming||new ht(z,k)}function ht(z,k){this.that=z,this.args=k,this.active=0,this.sourceEvent=null,this.extent=n.apply(z,k),this.taps=0}ht.prototype={event:function(z){return z&&(this.sourceEvent=z),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(z,k){return this.mouse&&z!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&z!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&z!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(z){var k=Cn(this.that).datum();g.call(z,this.that,new uft(z,{sourceEvent:this.sourceEvent,target:T,type:z,transform:this.that.__zoom,dispatch:g}),k)}};function Y(z,...k){if(!t.apply(this,arguments))return;var I=K(this,k).event(z),H=this.__zoom,J=Math.max(u[0],Math.min(u[1],H.k*Math.pow(2,o.apply(this,arguments)))),yt=$r(z);if(I.wheel)(I.mouse[0][0]!==yt[0]||I.mouse[0][1]!==yt[1])&&(I.mouse[1]=H.invert(I.mouse[0]=yt)),clearTimeout(I.wheel);else{if(H.k===J)return;I.mouse=[yt,H.invert(yt)],Ua(this),I.start()}Js(z),I.wheel=setTimeout(Lt,P),I.zoom("mouse",r(R(M(H,J),I.mouse[0],I.mouse[1]),I.extent,f));function Lt(){I.wheel=null,I.end()}}function et(z,...k){if(x||!t.apply(this,arguments))return;var I=z.currentTarget,H=K(this,k,!0).event(z),J=Cn(z.view).on("mousemove.zoom",Ht,!0).on("mouseup.zoom",Zt,!0),yt=$r(z,I),Lt=z.clientX,qt=z.clientY;tb(z.view),sf(z),H.mouse=[yt,this.__zoom.invert(yt)],Ua(this),H.start();function Ht(Xt){if(Js(Xt),!H.moved){var jt=Xt.clientX-Lt,Ct=Xt.clientY-qt;H.moved=jt*jt+Ct*Ct>A}H.event(Xt).zoom("mouse",r(R(H.that.__zoom,H.mouse[0]=$r(Xt,I),H.mouse[1]),H.extent,f))}function Zt(Xt){J.on("mousemove.zoom mouseup.zoom",null),eb(Xt.view,H.moved),Js(Xt),H.event(Xt).end()}}function st(z,...k){if(t.apply(this,arguments)){var I=this.__zoom,H=$r(z.changedTouches?z.changedTouches[0]:z,this),J=I.invert(H),yt=I.k*(z.shiftKey?.5:2),Lt=r(R(M(I,yt),H,J),n.apply(this,k),f);Js(z),h>0?Cn(this).transition().duration(h).call(B,Lt,H,z):Cn(this).call(T.transform,Lt,H,z)}}function pt(z,...k){if(t.apply(this,arguments)){var I=z.touches,H=I.length,J=K(this,k,z.changedTouches.length===H).event(z),yt,Lt,qt,Ht;for(sf(z),Lt=0;Lt<H;++Lt)qt=I[Lt],Ht=$r(qt,this),Ht=[Ht,this.__zoom.invert(Ht),qt.identifier],J.touch0?!J.touch1&&J.touch0[2]!==Ht[2]&&(J.touch1=Ht,J.taps=0):(J.touch0=Ht,yt=!0,J.taps=1+!!v);v&&(v=clearTimeout(v)),yt&&(J.taps<2&&(b=Ht[0],v=setTimeout(function(){v=null},S)),Ua(this),J.start())}}function gt(z,...k){if(this.__zooming){var I=K(this,k).event(z),H=z.changedTouches,J=H.length,yt,Lt,qt,Ht;for(Js(z),yt=0;yt<J;++yt)Lt=H[yt],qt=$r(Lt,this),I.touch0&&I.touch0[2]===Lt.identifier?I.touch0[0]=qt:I.touch1&&I.touch1[2]===Lt.identifier&&(I.touch1[0]=qt);if(Lt=I.that.__zoom,I.touch1){var Zt=I.touch0[0],Xt=I.touch0[1],jt=I.touch1[0],Ct=I.touch1[1],j=(j=jt[0]-Zt[0])*j+(j=jt[1]-Zt[1])*j,nt=(nt=Ct[0]-Xt[0])*nt+(nt=Ct[1]-Xt[1])*nt;Lt=M(Lt,Math.sqrt(j/nt)),qt=[(Zt[0]+jt[0])/2,(Zt[1]+jt[1])/2],Ht=[(Xt[0]+Ct[0])/2,(Xt[1]+Ct[1])/2]}else if(I.touch0)qt=I.touch0[0],Ht=I.touch0[1];else return;I.zoom("touch",r(R(Lt,qt,Ht),I.extent,f))}}function V(z,...k){if(this.__zooming){var I=K(this,k).event(z),H=z.changedTouches,J=H.length,yt,Lt;for(sf(z),x&&clearTimeout(x),x=setTimeout(function(){x=null},S),yt=0;yt<J;++yt)Lt=H[yt],I.touch0&&I.touch0[2]===Lt.identifier?delete I.touch0:I.touch1&&I.touch1[2]===Lt.identifier&&delete I.touch1;if(I.touch1&&!I.touch0&&(I.touch0=I.touch1,delete I.touch1),I.touch0)I.touch0[1]=this.__zoom.invert(I.touch0[0]);else if(I.end(),I.taps===2&&(Lt=$r(Lt,this),Math.hypot(b[0]-Lt[0],b[1]-Lt[1])<L)){var qt=Cn(this).on("dblclick.zoom");qt&&qt.apply(this,arguments)}}}return T.wheelDelta=function(z){return arguments.length?(o=typeof z=="function"?z:Ma(+z),T):o},T.filter=function(z){return arguments.length?(t=typeof z=="function"?z:Ma(!!z),T):t},T.touchable=function(z){return arguments.length?(a=typeof z=="function"?z:Ma(!!z),T):a},T.extent=function(z){return arguments.length?(n=typeof z=="function"?z:Ma([[+z[0][0],+z[0][1]],[+z[1][0],+z[1][1]]]),T):n},T.scaleExtent=function(z){return arguments.length?(u[0]=+z[0],u[1]=+z[1],T):[u[0],u[1]]},T.translateExtent=function(z){return arguments.length?(f[0][0]=+z[0][0],f[1][0]=+z[1][0],f[0][1]=+z[0][1],f[1][1]=+z[1][1],T):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},T.constrain=function(z){return arguments.length?(r=z,T):r},T.duration=function(z){return arguments.length?(h=+z,T):h},T.interpolate=function(z){return arguments.length?(p=z,T):p},T.on=function(){var z=g.on.apply(g,arguments);return z===g?T:z},T.clickDistance=function(z){return arguments.length?(A=(z=+z)*z,T):Math.sqrt(A)},T.tapDistance=function(z){return arguments.length?(L=+z,T):L},T}function mft(t){const n=+this._x.call(null,t),r=+this._y.call(null,t);return pb(this.cover(n,r),n,r,t)}function pb(t,n,r,o){if(isNaN(n)||isNaN(r))return t;var a,u=t._root,f={data:o},h=t._x0,p=t._y0,g=t._x1,v=t._y1,b,x,S,P,A,L,T,M;if(!u)return t._root=f,t;for(;u.length;)if((A=n>=(b=(h+g)/2))?h=b:g=b,(L=r>=(x=(p+v)/2))?p=x:v=x,a=u,!(u=u[T=L<<1|A]))return a[T]=f,t;if(S=+t._x.call(null,u.data),P=+t._y.call(null,u.data),n===S&&r===P)return f.next=u,a?a[T]=f:t._root=f,t;do a=a?a[T]=new Array(4):t._root=new Array(4),(A=n>=(b=(h+g)/2))?h=b:g=b,(L=r>=(x=(p+v)/2))?p=x:v=x;while((T=L<<1|A)===(M=(P>=x)<<1|S>=b));return a[M]=u,a[T]=f,t}function yft(t){var n,r,o=t.length,a,u,f=new Array(o),h=new Array(o),p=1/0,g=1/0,v=-1/0,b=-1/0;for(r=0;r<o;++r)isNaN(a=+this._x.call(null,n=t[r]))||isNaN(u=+this._y.call(null,n))||(f[r]=a,h[r]=u,a<p&&(p=a),a>v&&(v=a),u<g&&(g=u),u>b&&(b=u));if(p>v||g>b)return this;for(this.cover(p,g).cover(v,b),r=0;r<o;++r)pb(this,f[r],h[r],t[r]);return this}function bft(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var r=this._x0,o=this._y0,a=this._x1,u=this._y1;if(isNaN(r))a=(r=Math.floor(t))+1,u=(o=Math.floor(n))+1;else{for(var f=a-r||1,h=this._root,p,g;r>t||t>=a||o>n||n>=u;)switch(g=(n<o)<<1|t<r,p=new Array(4),p[g]=h,h=p,f*=2,g){case 0:a=r+f,u=o+f;break;case 1:r=a-f,u=o+f;break;case 2:a=r+f,o=u-f;break;case 3:r=a-f,o=u-f;break}this._root&&this._root.length&&(this._root=h)}return this._x0=r,this._y0=o,this._x1=a,this._y1=u,this}function wft(){var t=[];return this.visit(function(n){if(!n.length)do t.push(n.data);while(n=n.next)}),t}function xft(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function dn(t,n,r,o,a){this.node=t,this.x0=n,this.y0=r,this.x1=o,this.y1=a}function _ft(t,n,r){var o,a=this._x0,u=this._y0,f,h,p,g,v=this._x1,b=this._y1,x=[],S=this._root,P,A;for(S&&x.push(new dn(S,a,u,v,b)),r==null?r=1/0:(a=t-r,u=n-r,v=t+r,b=n+r,r*=r);P=x.pop();)if(!(!(S=P.node)||(f=P.x0)>v||(h=P.y0)>b||(p=P.x1)<a||(g=P.y1)<u))if(S.length){var L=(f+p)/2,T=(h+g)/2;x.push(new dn(S[3],L,T,p,g),new dn(S[2],f,T,L,g),new dn(S[1],L,h,p,T),new dn(S[0],f,h,L,T)),(A=(n>=T)<<1|t>=L)&&(P=x[x.length-1],x[x.length-1]=x[x.length-1-A],x[x.length-1-A]=P)}else{var M=t-+this._x.call(null,S.data),R=n-+this._y.call(null,S.data),E=M*M+R*R;if(E<r){var B=Math.sqrt(r=E);a=t-B,u=n-B,v=t+B,b=n+B,o=S.data}}return o}function Sft(t){if(isNaN(v=+this._x.call(null,t))||isNaN(b=+this._y.call(null,t)))return this;var n,r=this._root,o,a,u,f=this._x0,h=this._y0,p=this._x1,g=this._y1,v,b,x,S,P,A,L,T;if(!r)return this;if(r.length)for(;;){if((P=v>=(x=(f+p)/2))?f=x:p=x,(A=b>=(S=(h+g)/2))?h=S:g=S,n=r,!(r=r[L=A<<1|P]))return this;if(!r.length)break;(n[L+1&3]||n[L+2&3]||n[L+3&3])&&(o=n,T=L)}for(;r.data!==t;)if(a=r,!(r=r.next))return this;return(u=r.next)&&delete r.next,a?(u?a.next=u:delete a.next,this):n?(u?n[L]=u:delete n[L],(r=n[0]||n[1]||n[2]||n[3])&&r===(n[3]||n[2]||n[1]||n[0])&&!r.length&&(o?o[T]=r:this._root=r),this):(this._root=u,this)}function kft(t){for(var n=0,r=t.length;n<r;++n)this.remove(t[n]);return this}function Cft(){return this._root}function Tft(){var t=0;return this.visit(function(n){if(!n.length)do++t;while(n=n.next)}),t}function Eft(t){var n=[],r,o=this._root,a,u,f,h,p;for(o&&n.push(new dn(o,this._x0,this._y0,this._x1,this._y1));r=n.pop();)if(!t(o=r.node,u=r.x0,f=r.y0,h=r.x1,p=r.y1)&&o.length){var g=(u+h)/2,v=(f+p)/2;(a=o[3])&&n.push(new dn(a,g,v,h,p)),(a=o[2])&&n.push(new dn(a,u,v,g,p)),(a=o[1])&&n.push(new dn(a,g,f,h,v)),(a=o[0])&&n.push(new dn(a,u,f,g,v))}return this}function Lft(t){var n=[],r=[],o;for(this._root&&n.push(new dn(this._root,this._x0,this._y0,this._x1,this._y1));o=n.pop();){var a=o.node;if(a.length){var u,f=o.x0,h=o.y0,p=o.x1,g=o.y1,v=(f+p)/2,b=(h+g)/2;(u=a[0])&&n.push(new dn(u,f,h,v,b)),(u=a[1])&&n.push(new dn(u,v,h,p,b)),(u=a[2])&&n.push(new dn(u,f,b,v,g)),(u=a[3])&&n.push(new dn(u,v,b,p,g))}r.push(o)}for(;o=r.pop();)t(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Aft(t){return t[0]}function Mft(t){return arguments.length?(this._x=t,this):this._x}function Nft(t){return t[1]}function Pft(t){return arguments.length?(this._y=t,this):this._y}function Jh(t,n,r){var o=new Qh(n??Aft,r??Nft,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function Qh(t,n,r,o,a,u){this._x=t,this._y=n,this._x0=r,this._y0=o,this._x1=a,this._y1=u,this._root=void 0}function im(t){for(var n={data:t.data},r=n;t=t.next;)r=r.next={data:t.data};return n}var vn=Jh.prototype=Qh.prototype;vn.copy=function(){var t=new Qh(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,r,o;if(!n)return t;if(!n.length)return t._root=im(n),t;for(r=[{source:n,target:t._root=new Array(4)}];n=r.pop();)for(var a=0;a<4;++a)(o=n.source[a])&&(o.length?r.push({source:o,target:n.target[a]=new Array(4)}):n.target[a]=im(o));return t};vn.add=mft;vn.addAll=yft;vn.cover=bft;vn.data=wft;vn.extent=xft;vn.find=_ft;vn.remove=Sft;vn.removeAll=kft;vn.root=Cft;vn.size=Tft;vn.visit=Eft;vn.visitAfter=Lft;vn.x=Mft;vn.y=Pft;function pn(t){return function(){return t}}function bi(t){return(t()-.5)*1e-6}function Oft(t){return t.x+t.vx}function Dft(t){return t.y+t.vy}function $ft(t){var n,r,o,a=1,u=1;typeof t!="function"&&(t=pn(t==null?1:+t));function f(){for(var g,v=n.length,b,x,S,P,A,L,T=0;T<u;++T)for(b=Jh(n,Oft,Dft).visitAfter(h),g=0;g<v;++g)x=n[g],A=r[x.index],L=A*A,S=x.x+x.vx,P=x.y+x.vy,b.visit(M);function M(R,E,B,K,ht){var Y=R.data,et=R.r,st=A+et;if(Y){if(Y.index>x.index){var pt=S-Y.x-Y.vx,gt=P-Y.y-Y.vy,V=pt*pt+gt*gt;V<st*st&&(pt===0&&(pt=bi(o),V+=pt*pt),gt===0&&(gt=bi(o),V+=gt*gt),V=(st-(V=Math.sqrt(V)))/V*a,x.vx+=(pt*=V)*(st=(et*=et)/(L+et)),x.vy+=(gt*=V)*st,Y.vx-=pt*(st=1-st),Y.vy-=gt*st)}return}return E>S+st||K<S-st||B>P+st||ht<P-st}}function h(g){if(g.data)return g.r=r[g.data.index];for(var v=g.r=0;v<4;++v)g[v]&&g[v].r>g.r&&(g.r=g[v].r)}function p(){if(n){var g,v=n.length,b;for(r=new Array(v),g=0;g<v;++g)b=n[g],r[b.index]=+t(b,g,n)}}return f.initialize=function(g,v){n=g,o=v,p()},f.iterations=function(g){return arguments.length?(u=+g,f):u},f.strength=function(g){return arguments.length?(a=+g,f):a},f.radius=function(g){return arguments.length?(t=typeof g=="function"?g:pn(+g),p(),f):t},f}function Rft(t){return t.index}function om(t,n){var r=t.get(n);if(!r)throw new Error("node not found: "+n);return r}function zft(t){var n=Rft,r=b,o,a=pn(30),u,f,h,p,g,v=1;t==null&&(t=[]);function b(L){return 1/Math.min(h[L.source.index],h[L.target.index])}function x(L){for(var T=0,M=t.length;T<v;++T)for(var R=0,E,B,K,ht,Y,et,st;R<M;++R)E=t[R],B=E.source,K=E.target,ht=K.x+K.vx-B.x-B.vx||bi(g),Y=K.y+K.vy-B.y-B.vy||bi(g),et=Math.sqrt(ht*ht+Y*Y),et=(et-u[R])/et*L*o[R],ht*=et,Y*=et,K.vx-=ht*(st=p[R]),K.vy-=Y*st,B.vx+=ht*(st=1-st),B.vy+=Y*st}function S(){if(f){var L,T=f.length,M=t.length,R=new Map(f.map((B,K)=>[n(B,K,f),B])),E;for(L=0,h=new Array(T);L<M;++L)E=t[L],E.index=L,typeof E.source!="object"&&(E.source=om(R,E.source)),typeof E.target!="object"&&(E.target=om(R,E.target)),h[E.source.index]=(h[E.source.index]||0)+1,h[E.target.index]=(h[E.target.index]||0)+1;for(L=0,p=new Array(M);L<M;++L)E=t[L],p[L]=h[E.source.index]/(h[E.source.index]+h[E.target.index]);o=new Array(M),P(),u=new Array(M),A()}}function P(){if(f)for(var L=0,T=t.length;L<T;++L)o[L]=+r(t[L],L,t)}function A(){if(f)for(var L=0,T=t.length;L<T;++L)u[L]=+a(t[L],L,t)}return x.initialize=function(L,T){f=L,g=T,S()},x.links=function(L){return arguments.length?(t=L,S(),x):t},x.id=function(L){return arguments.length?(n=L,x):n},x.iterations=function(L){return arguments.length?(v=+L,x):v},x.strength=function(L){return arguments.length?(r=typeof L=="function"?L:pn(+L),P(),x):r},x.distance=function(L){return arguments.length?(a=typeof L=="function"?L:pn(+L),A(),x):a},x}const Fft=1664525,Ift=1013904223,sm=4294967296;function qft(){let t=1;return()=>(t=(Fft*t+Ift)%sm)/sm}function Hft(t){return t.x}function Bft(t){return t.y}var Wft=10,Uft=Math.PI*(3-Math.sqrt(5));function jft(t){var n,r=1,o=.001,a=1-Math.pow(o,1/300),u=0,f=.6,h=new Map,p=Kh(b),g=$l("tick","end"),v=qft();t==null&&(t=[]);function b(){x(),g.call("tick",n),r<o&&(p.stop(),g.call("end",n))}function x(A){var L,T=t.length,M;A===void 0&&(A=1);for(var R=0;R<A;++R)for(r+=(u-r)*a,h.forEach(function(E){E(r)}),L=0;L<T;++L)M=t[L],M.fx==null?M.x+=M.vx*=f:(M.x=M.fx,M.vx=0),M.fy==null?M.y+=M.vy*=f:(M.y=M.fy,M.vy=0);return n}function S(){for(var A=0,L=t.length,T;A<L;++A){if(T=t[A],T.index=A,T.fx!=null&&(T.x=T.fx),T.fy!=null&&(T.y=T.fy),isNaN(T.x)||isNaN(T.y)){var M=Wft*Math.sqrt(.5+A),R=A*Uft;T.x=M*Math.cos(R),T.y=M*Math.sin(R)}(isNaN(T.vx)||isNaN(T.vy))&&(T.vx=T.vy=0)}}function P(A){return A.initialize&&A.initialize(t,v),A}return S(),n={tick:x,restart:function(){return p.restart(b),n},stop:function(){return p.stop(),n},nodes:function(A){return arguments.length?(t=A,S(),h.forEach(P),n):t},alpha:function(A){return arguments.length?(r=+A,n):r},alphaMin:function(A){return arguments.length?(o=+A,n):o},alphaDecay:function(A){return arguments.length?(a=+A,n):+a},alphaTarget:function(A){return arguments.length?(u=+A,n):u},velocityDecay:function(A){return arguments.length?(f=1-A,n):1-f},randomSource:function(A){return arguments.length?(v=A,h.forEach(P),n):v},force:function(A,L){return arguments.length>1?(L==null?h.delete(A):h.set(A,P(L)),n):h.get(A)},find:function(A,L,T){var M=0,R=t.length,E,B,K,ht,Y;for(T==null?T=1/0:T*=T,M=0;M<R;++M)ht=t[M],E=A-ht.x,B=L-ht.y,K=E*E+B*B,K<T&&(Y=ht,T=K);return Y},on:function(A,L){return arguments.length>1?(g.on(A,L),n):g.on(A)}}}function Gft(){var t,n,r,o,a=pn(-30),u,f=1,h=1/0,p=.81;function g(S){var P,A=t.length,L=Jh(t,Hft,Bft).visitAfter(b);for(o=S,P=0;P<A;++P)n=t[P],L.visit(x)}function v(){if(t){var S,P=t.length,A;for(u=new Array(P),S=0;S<P;++S)A=t[S],u[A.index]=+a(A,S,t)}}function b(S){var P=0,A,L,T=0,M,R,E;if(S.length){for(M=R=E=0;E<4;++E)(A=S[E])&&(L=Math.abs(A.value))&&(P+=A.value,T+=L,M+=L*A.x,R+=L*A.y);S.x=M/T,S.y=R/T}else{A=S,A.x=A.data.x,A.y=A.data.y;do P+=u[A.data.index];while(A=A.next)}S.value=P}function x(S,P,A,L){if(!S.value)return!0;var T=S.x-n.x,M=S.y-n.y,R=L-P,E=T*T+M*M;if(R*R/p<E)return E<h&&(T===0&&(T=bi(r),E+=T*T),M===0&&(M=bi(r),E+=M*M),E<f&&(E=Math.sqrt(f*E)),n.vx+=T*S.value*o/E,n.vy+=M*S.value*o/E),!0;if(S.length||E>=h)return;(S.data!==n||S.next)&&(T===0&&(T=bi(r),E+=T*T),M===0&&(M=bi(r),E+=M*M),E<f&&(E=Math.sqrt(f*E)));do S.data!==n&&(R=u[S.data.index]*o/E,n.vx+=T*R,n.vy+=M*R);while(S=S.next)}return g.initialize=function(S,P){t=S,r=P,v()},g.strength=function(S){return arguments.length?(a=typeof S=="function"?S:pn(+S),v(),g):a},g.distanceMin=function(S){return arguments.length?(f=S*S,g):Math.sqrt(f)},g.distanceMax=function(S){return arguments.length?(h=S*S,g):Math.sqrt(h)},g.theta=function(S){return arguments.length?(p=S*S,g):Math.sqrt(p)},g}function Vft(t){var n=pn(.1),r,o,a;typeof t!="function"&&(t=pn(t==null?0:+t));function u(h){for(var p=0,g=r.length,v;p<g;++p)v=r[p],v.vx+=(a[p]-v.x)*o[p]*h}function f(){if(r){var h,p=r.length;for(o=new Array(p),a=new Array(p),h=0;h<p;++h)o[h]=isNaN(a[h]=+t(r[h],h,r))?0:+n(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(n=typeof h=="function"?h:pn(+h),f(),u):n},u.x=function(h){return arguments.length?(t=typeof h=="function"?h:pn(+h),f(),u):t},u}function Kft(t){var n=pn(.1),r,o,a;typeof t!="function"&&(t=pn(t==null?0:+t));function u(h){for(var p=0,g=r.length,v;p<g;++p)v=r[p],v.vy+=(a[p]-v.y)*o[p]*h}function f(){if(r){var h,p=r.length;for(o=new Array(p),a=new Array(p),h=0;h<p;++h)o[h]=isNaN(a[h]=+t(r[h],h,r))?0:+n(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(n=typeof h=="function"?h:pn(+h),f(),u):n},u.y=function(h){return arguments.length?(t=typeof h=="function"?h:pn(+h),f(),u):t},u}var Xft=Object.defineProperty,Yft=(t,n,r)=>n in t?Xft(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Pe=(t,n,r)=>(Yft(t,typeof n!="symbol"?n+"":n,r),r);function Zft(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function lm(t){if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){const n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1}function wi(...t){return t.reduce((n,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(n[o])&&Array.isArray(r[o])?n[o]=wi.options.mergeArrays?Array.from(new Set(n[o].concat(r[o]))):r[o]:lm(n[o])&&lm(r[o])?n[o]=wi(n[o],r[o]):n[o]=r[o])}),n},{})}const gb={mergeArrays:!0};wi.options=gb;wi.withOptions=(t,...n)=>{wi.options={mergeArrays:!0,...t};const r=wi(...n);return wi.options=gb,r};function Jft(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function Qft(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function vb(t){t.preventDefault(),t.stopPropagation()}function mb(t){return typeof t=="number"}function Ti(t,n){return mb(t.nodeRadius)?t.nodeRadius:t.nodeRadius(n)}function tht(t){return`${t.source.id}-${t.target.id}`}function yb(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function eht(t){return`url(#${yb(t.color)})`}function nht(t){return{size:t,padding:(n,r)=>Ti(r,n)+2*t,ref:[t/2,t/2],path:[[0,0],[0,t],[t,t/2]],viewBox:[0,0,t,t].join(",")}}const bb={Arrow:t=>nht(t)},rht=(t,n,r)=>[n/2,r/2],wb=(t,n,r)=>[am(0,n),am(0,r)];function am(t,n){return Math.random()*(n-t)+t}function iht(t){const n=Object.fromEntries(t.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,a)=>{const[u,f]=n[r.id]??[];return!u||!f?wb(r,o,a):[u,f]}}const Yf={Centered:rht,Randomized:wb,Stable:iht};function oht(){return{autoResize:!1,callbacks:{},hooks:{},initial:Qft(),nodeRadius:16,marker:bb.Arrow(4),modifiers:{},positionInitializer:Yf.Centered,simulation:{alphas:Zft(),forces:Jft()},zoom:{initial:1,min:.1,max:2}}}function sht(t={}){return wi.withOptions({mergeArrays:!1},oht(),t)}function lht({applyZoom:t,container:n,onDoubleClick:r,onPointerMoved:o,onPointerUp:a,offset:[u,f],scale:h,zoom:p}){const g=n.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(p).on("contextmenu",v=>vb(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>a==null?void 0:a(v)).style("cursor","grab");return t&&g.call(p.transform,Zh.translate(u,f).scale(h)),g.append("g")}function aht({canvas:t,scale:n,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${n})`)}function cht({config:t,onDragStart:n,onDragEnd:r}){var o,a;const u=Tct().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,h)=>{f.active===0&&n(f,h),Cn(f.sourceEvent.target).classed("grabbed",!0),h.fx=h.x,h.fy=h.y}).on("drag",(f,h)=>{h.fx=f.x,h.fy=f.y}).on("end",(f,h)=>{f.active===0&&r(f,h),Cn(f.sourceEvent.target).classed("grabbed",!1),h.fx=void 0,h.fy=void 0});return(a=(o=t.modifiers).drag)==null||a.call(o,u),u}function uht({graph:t,filter:n,focusedNode:r,includeUnlinked:o,linkFilter:a}){const u=t.links.filter(p=>n.includes(p.source.type)&&n.includes(p.target.type)&&a(p)),f=p=>u.find(g=>g.source.id===p.id||g.target.id===p.id)!==void 0,h=t.nodes.filter(p=>n.includes(p.type)&&(o||f(p)));return r===void 0||!n.includes(r.type)?{nodes:h,links:u}:fht({nodes:h,links:u},r)}function fht(t,n){const r=[...hht(t,n),...dht(t,n)],o=r.flatMap(a=>[a.source,a.target]);return{nodes:[...new Set([...o,n])],links:[...new Set(r)]}}function hht(t,n){return xb(t,n,(r,o)=>r.target.id===o.id)}function dht(t,n){return xb(t,n,(r,o)=>r.source.id===o.id)}function xb(t,n,r){const o=new Set(t.links),a=new Set([n]),u=[];for(;o.size>0;){const f=[...o].filter(h=>[...a].some(p=>r(h,p)));if(f.length===0)return u;f.forEach(h=>{a.add(h.source),a.add(h.target),u.push(h),o.delete(h)})}return u}function Zf(t){return t.x??0}function Jf(t){return t.y??0}function td({source:t,target:n}){const r=new hn(Zf(t),Jf(t)),o=new hn(Zf(n),Jf(n)),a=o.subtract(r),u=a.length(),f=a.normalize(),h=f.multiply(-1);return{s:r,t:o,dist:u,norm:f,endNorm:h}}function _b({center:t,node:n}){const r=new hn(Zf(n),Jf(n));let o=t;return r.x===o.x&&r.y===o.y&&(o=o.add(new hn(0,1))),{n:r,c:o}}function Sb({config:t,source:n,target:r}){const{s:o,t:a,norm:u}=td({config:t,source:n,target:r}),f=o.add(u.multiply(Ti(t,n)-1)),h=a.subtract(u.multiply(t.marker.padding(r,t)));return{start:f,end:h}}function pht(t){const{start:n,end:r}=Sb(t);return`M${n.x},${n.y}
|
|
31
|
-
L${r.x},${r.y}`}function ght(t){const{start:n,end:r}=Sb(t),o=r.subtract(n).multiply(.5),a=n.add(o);return`translate(${a.x-8},${a.y-4})`}function vht({config:t,source:n,target:r}){const{s:o,t:a,dist:u,norm:f,endNorm:h}=td({config:t,source:n,target:r}),p=10,g=f.rotateByDegrees(-p).multiply(Ti(t,n)-1).add(o),v=h.rotateByDegrees(p).multiply(Ti(t,r)).add(a).add(h.rotateByDegrees(p).multiply(2*t.marker.size)),b=1.2*u;return`M${g.x},${g.y}
|
|
32
|
-
A${b},${b},0,0,1,${v.x},${v.y}`}function mht({center:t,config:n,node:r}){const{n:o,c:a}=_b({center:t,config:n,node:r}),u=Ti(n,r),f=o.subtract(a),h=f.multiply(1/f.length()),p=40,g=h.rotateByDegrees(p).multiply(u-1).add(o),v=h.rotateByDegrees(-p).multiply(u).add(o).add(h.rotateByDegrees(-p).multiply(2*n.marker.size));return`M${g.x},${g.y}
|
|
33
|
-
A${u},${u},0,1,0,${v.x},${v.y}`}function yht({config:t,source:n,target:r}){const{t:o,dist:a,endNorm:u}=td({config:t,source:n,target:r}),f=10,h=u.rotateByDegrees(f).multiply(.5*a).add(o);return`translate(${h.x},${h.y})`}function bht({center:t,config:n,node:r}){const{n:o,c:a}=_b({center:t,config:n,node:r}),u=o.subtract(a),f=u.multiply(1/u.length()).multiply(3*Ti(n,r)+8).add(o);return`translate(${f.x},${f.y})`}const Jo={line:{labelTransform:ght,path:pht},arc:{labelTransform:yht,path:vht},reflexive:{labelTransform:bht,path:mht}};function wht(t){return t.append("g").classed("links",!0).selectAll("path")}function xht({config:t,graph:n,selection:r,showLabels:o}){const a=r==null?void 0:r.data(n.links,u=>tht(u)).join(u=>{var f,h,p,g;const v=u.append("g"),b=v.append("path").classed("link",!0).style("marker-end",S=>eht(S)).style("stroke",S=>S.color);(h=(f=t.modifiers).link)==null||h.call(f,b);const x=v.append("text").classed("link__label",!0).style("fill",S=>S.label?S.label.color:null).style("font-size",S=>S.label?S.label.fontSize:null).text(S=>S.label?S.label.text:null);return(g=(p=t.modifiers).linkLabel)==null||g.call(p,x),v});return a==null||a.select(".link__label").attr("opacity",u=>u.label&&o?1:0),a}function _ht(t){Sht(t),kht(t)}function Sht({center:t,config:n,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",a=>a.source.x===void 0||a.source.y===void 0||a.target.x===void 0||a.target.y===void 0?"":a.source.id===a.target.id?Jo.reflexive.path({config:n,node:a.source,center:t}):kb(r,a.source,a.target)?Jo.arc.path({config:n,source:a.source,target:a.target}):Jo.line.path({config:n,source:a.source,target:a.target}))}function kht({config:t,center:n,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",a=>a.source.x===void 0||a.source.y===void 0||a.target.x===void 0||a.target.y===void 0?"translate(0, 0)":a.source.id===a.target.id?Jo.reflexive.labelTransform({config:t,node:a.source,center:n}):kb(r,a.source,a.target)?Jo.arc.labelTransform({config:t,source:a.source,target:a.target}):Jo.line.labelTransform({config:t,source:a.source,target:a.target}))}function kb(t,n,r){return n.id!==r.id&&t.links.some(o=>o.target.id===n.id&&o.source.id===r.id)&&t.links.some(o=>o.target.id===r.id&&o.source.id===n.id)}function Cht(t){return t.append("defs").selectAll("marker")}function Tht({config:t,graph:n,selection:r}){return r==null?void 0:r.data(Eht(n),o=>o).join(o=>{const a=o.append("marker").attr("id",u=>yb(u)).attr("markerHeight",4*t.marker.size).attr("markerWidth",4*t.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",t.marker.ref[0]).attr("refY",t.marker.ref[1]).attr("viewBox",t.marker.viewBox).style("fill",u=>u);return a.append("path").attr("d",Lht(t.marker.path)),a})}function Eht(t){return[...new Set(t.links.map(n=>n.color))]}function Lht(t){const[n,...r]=t;if(!n)return"M0,0";const[o,a]=n;return r.reduce((u,[f,h])=>`${u}L${f},${h}`,`M${o},${a}`)}function Aht(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function Mht({config:t,drag:n,graph:r,onNodeContext:o,onNodeSelected:a,selection:u,showLabels:f}){const h=u==null?void 0:u.data(r.nodes,p=>p.id).join(p=>{var g,v,b,x;const S=p.append("g");n!==void 0&&S.call(n);const P=S.append("circle").classed("node",!0).attr("r",L=>Ti(t,L)).on("contextmenu",(L,T)=>{vb(L),o(T)}).on("pointerdown",(L,T)=>Pht(L,T,a??o)).style("fill",L=>L.color);(v=(g=t.modifiers).node)==null||v.call(g,P);const A=S.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",L=>L.label?L.label.color:null).style("font-size",L=>L.label?L.label.fontSize:null).style("stroke","none").text(L=>L.label?L.label.text:null);return(x=(b=t.modifiers).nodeLabel)==null||x.call(b,A),S});return h==null||h.select(".node").classed("focused",p=>p.isFocused),h==null||h.select(".node__label").attr("opacity",f?1:0),h}const Nht=500;function Pht(t,n,r){if(t.button!==void 0&&t.button!==0)return;const o=n.lastInteractionTimestamp,a=Date.now();if(o===void 0||a-o>Nht){n.lastInteractionTimestamp=a;return}n.lastInteractionTimestamp=void 0,r(n)}function Oht(t){t==null||t.attr("transform",n=>`translate(${n.x??0},${n.y??0})`)}function Dht({center:t,config:n,graph:r,onTick:o}){var a,u;const f=jft(r.nodes),h=n.simulation.forces.centering;if(h&&h.enabled){const b=h.strength;f.force("x",Vft(()=>t().x).strength(b)).force("y",Kft(()=>t().y).strength(b))}const p=n.simulation.forces.charge;p&&p.enabled&&f.force("charge",Gft().strength(p.strength));const g=n.simulation.forces.collision;g&&g.enabled&&f.force("collision",$ft().radius(b=>g.radiusMultiplier*Ti(n,b)));const v=n.simulation.forces.link;return v&&v.enabled&&f.force("link",zft(r.links).id(b=>b.id).distance(n.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(u=(a=n.modifiers).simulation)==null||u.call(a,f),f}function $ht({canvasContainer:t,config:n,min:r,max:o,onZoom:a}){var u,f;const h=vft().scaleExtent([r,o]).filter(p=>{var g;return p.button===0||((g=p.touches)==null?void 0:g.length)>=2}).on("start",()=>t().classed("grabbed",!0)).on("zoom",p=>a(p)).on("end",()=>t().classed("grabbed",!1));return(f=(u=n.modifiers).zoom)==null||f.call(u,h),h}class Rht{constructor(n,r,o){if(Pe(this,"nodeTypes"),Pe(this,"_nodeTypeFilter"),Pe(this,"_includeUnlinked",!0),Pe(this,"_linkFilter",()=>!0),Pe(this,"_showLinkLabels",!0),Pe(this,"_showNodeLabels",!0),Pe(this,"filteredGraph"),Pe(this,"width",0),Pe(this,"height",0),Pe(this,"simulation"),Pe(this,"canvas"),Pe(this,"linkSelection"),Pe(this,"nodeSelection"),Pe(this,"markerSelection"),Pe(this,"zoom"),Pe(this,"drag"),Pe(this,"xOffset",0),Pe(this,"yOffset",0),Pe(this,"scale"),Pe(this,"focusedNode"),Pe(this,"resizeObserver"),this.container=n,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(a=>{const[u,f]=o.positionInitializer(a,this.effectiveWidth,this.effectiveHeight);a.x=a.x??u,a.y=a.y??f}),this.nodeTypes=[...new Set(r.nodes.map(a=>a.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:a,nodeTypeFilter:u,linkFilter:f,showLinkLabels:h,showNodeLabels:p}=o.initial;this._includeUnlinked=a??this._includeUnlinked,this._showLinkLabels=h??this._showLinkLabels,this._showNodeLabels=p??this._showNodeLabels,this._nodeTypeFilter=u??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(Flt(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(n){this._includeUnlinked=n,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,a=n?r:o;this.restart(a)}set linkFilter(n){this._linkFilter=n,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(n){this._showNodeLabels=n;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,a=n?o:r;this.restart(a)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(n){this._showLinkLabels=n;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,a=n?o:r;this.restart(a)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return hn.of([this.width,this.height]).divide(2).subtract(hn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const n=this.width,r=this.height,o=this.container.getBoundingClientRect().width,a=this.container.getBoundingClientRect().height,u=n.toFixed()!==o.toFixed(),f=r.toFixed()!==a.toFixed();if(!u&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const h=this.config.simulation.alphas.resize;this.restart(mb(h)?h:h({oldWidth:n,oldHeight:r,newWidth:o,newHeight:a}))}restart(n){var r;this.markerSelection=Tht({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=xht({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Mht({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=Dht({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(n).restart()}filterNodesByType(n,r){n?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var n,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(n=this.resizeObserver)==null||n.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=$ht({config:this.config,canvasContainer:()=>Cn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:n=>this.onZoom(n)}),this.canvas=lht({applyZoom:this.scale!==1,container:Cn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=wht(this.canvas),this.nodeSelection=Aht(this.canvas),this.markerSelection=Cht(this.canvas),this.drag=cht({config:this.config,onDragStart:()=>{var n;return(n=this.simulation)==null?void 0:n.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var n;return(n=this.simulation)==null?void 0:n.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){Oht(this.nodeSelection),_ht({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var n;(n=this.simulation)==null||n.stop(),Cn(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(n){var r,o,a;this.xOffset=n.transform.x,this.yOffset=n.transform.y,this.scale=n.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(a=this.simulation)==null||a.restart()}applyZoom(){aht({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(n){n.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(n))):this.focusNode(n)}focusNode(n){this.filterGraph(n),this.restart(this.config.simulation.alphas.focus.acquire(n))}filterGraph(n){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),n!==void 0&&this._nodeTypeFilter.includes(n.type)&&(n.isFocused=!0,this.focusedNode=n),this.filteredGraph=uht({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function cm({nodes:t,links:n}){return{nodes:t??[],links:n??[]}}function zht(t){return{...t}}function Cb(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const Fht={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Iht={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},qht=["id","checked","onChange"],Hht=["for"],Bht=ct("div",{"flex-auto":""},null,-1),Wht=re({__name:"ViewModuleGraph",props:{graph:{}},setup(t){const n=t,{graph:r}=g1(n),o=Yt(),a=Yt(!1),u=Yt(),f=Yt();yh(()=>{a.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),ps(()=>{g()}),wh(()=>{var b;(b=f.value)==null||b.shutdown()}),De(r,g);function h(b,x){var S;(S=f.value)==null||S.filterNodesByType(x,b)}function p(b){u.value=b,a.value=!0}function g(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new Rht(o.value,r.value,sht({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:x,newWidth:S})=>x===0&&S===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:bb.Arrow(2),modifiers:{node:v},positionInitializer:r.value.nodes.length>1?Yf.Randomized:Yf.Centered,zoom:{min:.5,max:2}})))}function v(b){if(Ur)return;const x=L=>L.button===0;let S=0,P=0,A=0;b.on("pointerdown",(L,T)=>{T.type!=="external"&&(!T.x||!T.y||!x(L)||(S=T.x,P=T.y,A=Date.now()))}).on("pointerup",(L,T)=>{if(T.type==="external"||!T.x||!T.y||!x(L)||Date.now()-A>500)return;const M=T.x-S,R=T.y-P;M**2+R**2<100&&p(T.id)})}return(b,x)=>{var T;const S=vs,P=zlt,A=Clt,L=lo("tooltip");return ut(),At("div",Fht,[ct("div",null,[ct("div",Iht,[(ut(!0),At(ue,null,nr((T=U(f))==null?void 0:T.nodeTypes.sort(),M=>{var R;return ut(),At("div",{key:M,flex:"~ gap-1","items-center":"","select-none":""},[ct("input",{id:`type-${M}`,type:"checkbox",checked:(R=U(f))==null?void 0:R.nodeTypeFilter.includes(M),onChange:E=>h(M,E.target.checked)},null,40,qht),ct("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${M}`,"border-b-2":"",style:En({"border-color":`var(--color-node-${M})`})},ne(M)+" Modules",13,Hht)])}),128)),Bht,ct("div",null,[tn(It(S,{icon:"i-carbon-reset",onClick:g},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),ct("div",{ref_key:"el",ref:o},null,512),It(A,{modelValue:U(a),"onUpdate:modelValue":x[1]||(x[1]=M=>Ee(a)?a.value=M:null),direction:"right"},{default:Jt(()=>[U(u)?(ut(),Qt(D1,{key:0},{default:Jt(()=>[It(P,{id:U(u),onClose:x[0]||(x[0]=M=>a.value=!1)},null,8,["id"])]),_:1})):ee("",!0)]),_:1},8,["modelValue"])])}}}),Uht={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},jht={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Ght={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Vht={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},Kht={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Xht={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},ed=re({__name:"StatusIcon",props:{task:{}},setup(t){return(n,r)=>{var a,u,f;const o=lo("tooltip");return((a=n.task.result)==null?void 0:a.state)==="pass"?(ut(),At("div",Uht)):U(Rc)(n.task)?tn((ut(),At("div",jht,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((u=n.task.result)==null?void 0:u.state)==="fail"?(ut(),At("div",Ght)):n.task.mode==="todo"?tn((ut(),At("div",Vht,null,512)),[[o,"Todo",void 0,{right:!0}]]):n.task.mode==="skip"||((f=n.task.result)==null?void 0:f.state)==="skip"?tn((ut(),At("div",Kht,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ut(),At("div",Xht))}}});function Yht(t){const n=new Map,r=new Map,o=[];for(;;){let a=0;if(t.forEach((u,f)=>{var v;const{splits:h,finished:p}=u;if(p){a++;const{raw:b,candidate:x}=u;n.set(b,x);return}if(h.length===0){u.finished=!0;return}const g=h[0];r.has(g)?(u.candidate+=u.candidate===""?g:`/${g}`,(v=r.get(g))==null||v.push(f),h.shift()):(r.set(g,[f]),o.push(f))}),o.forEach(u=>{const f=t[u],h=f.splits.shift();f.candidate+=f.candidate===""?h:`/${h}`}),r.forEach(u=>{if(u.length===1){const f=u[0];t[f].finished=!0}}),r.clear(),o.length=0,a===t.length)break}return n}function Zht(t){let n=t;n.includes("/node_modules/")&&(n=t.split(/\/node_modules\//g).pop());const r=n.split(/\//g);return{raw:n,splits:r,candidate:"",finished:!1,id:t}}function Jht(t){const n=t.map(o=>Zht(o)),r=Yht(n);return n.map(({raw:o,id:a})=>Cb({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:a,type:"external"}))}function Qht(t,n){return Cb({color:n?"var(--color-node-root)":"var(--color-node-inline)",label:{color:n?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:t.split(/\//g).pop()},isFocused:!1,id:t,type:"inline"})}function tdt(t,n){if(!t)return cm({});const r=Jht(t.externalized),o=t.inlined.map(h=>Qht(h,h===n))??[],a=[...r,...o],u=Object.fromEntries(a.map(h=>[h.id,h])),f=Object.entries(t.graph).flatMap(([h,p])=>p.map(g=>{const v=u[h],b=u[g];if(!(v===void 0||b===void 0))return zht({source:v,target:b,color:"var(--color-link)",label:!1})}).filter(g=>g!==void 0));return cm({nodes:a,links:f})}const edt={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},ndt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},rdt={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},idt={class:"flex text-lg"},odt={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},sdt={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},ldt=["flex-1"],adt=re({__name:"FileDetails",setup(t){const n=Yt({externalized:[],graph:{},inlined:[]}),r=Yt({nodes:[],links:[]}),o=Yt(!1),a=Yt(!1);sT(_e,async(g,v)=>{g&&g.filepath!==(v==null?void 0:v.filepath)&&(n.value=await je.rpc.getModuleGraph(g.filepath),r.value=tdt(n.value,g.filepath))},{debounce:100,immediate:!0});function u(){var v;const g=(v=_e.value)==null?void 0:v.filepath;g&&fetch(`/__open-in-editor?file=${encodeURIComponent(g)}`)}function f(g){g==="graph"&&(a.value=!0),Jn.value=g}const h=xt(()=>{var g;return((g=vy.value)==null?void 0:g.reduce((v,{size:b})=>v+b,0))??0});function p(g){o.value=g}return(g,v)=>{var M,R;const b=ed,x=vs,S=Wht,P=klt,A=blt,L=llt,T=lo("tooltip");return U(_e)?(ut(),At("div",edt,[ct("div",null,[ct("div",ndt,[It(b,{task:U(_e)},null,8,["task"]),ct("div",rdt,ne((M=U(_e))==null?void 0:M.filepath),1),ct("div",idt,[U(Ur)?ee("",!0):tn((ut(),Qt(x,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((R=U(_e))!=null&&R.filepath),onClick:u},null,8,["disabled"])),[[T,"Open in editor",void 0,{bottom:!0}]])])]),ct("div",odt,[ct("button",{"tab-button":"",class:ve({"tab-button-active":U(Jn)==null}),"data-testid":"btn-report",onClick:v[0]||(v[0]=E=>f(null))}," Report ",2),ct("button",{"tab-button":"","data-testid":"btn-graph",class:ve({"tab-button-active":U(Jn)==="graph"}),onClick:v[1]||(v[1]=E=>f("graph"))}," Module Graph ",2),U(Ur)?ee("",!0):(ut(),At("button",{key:0,"tab-button":"","data-testid":"btn-code",class:ve({"tab-button-active":U(Jn)==="editor"}),onClick:v[2]||(v[2]=E=>f("editor"))},ne(U(o)?"* ":"")+"Code ",3)),ct("button",{"tab-button":"","data-testid":"btn-console",class:ve({"tab-button-active":U(Jn)==="console",op20:U(Jn)!=="console"&&U(h)===0}),onClick:v[3]||(v[3]=E=>f("console"))}," Console ("+ne(U(h))+") ",3)])]),ct("div",sdt,[U(a)?(ut(),At("div",{key:0,"flex-1":U(Jn)==="graph"&&""},[tn(It(S,{graph:U(r),"data-testid":"graph"},null,8,["graph"]),[[kf,U(Jn)==="graph"]])],8,ldt)):ee("",!0),U(Jn)==="editor"?(ut(),Qt(P,{key:U(_e).filepath,file:U(_e),"data-testid":"editor",onDraft:p},null,8,["file"])):U(Jn)==="console"?(ut(),Qt(A,{key:2,file:U(_e),"data-testid":"console"},null,8,["file"])):U(Jn)?ee("",!0):(ut(),Qt(L,{key:3,file:U(_e),"data-testid":"report"},null,8,["file"]))])])):ee("",!0)}}}),cdt=["open"],udt=ct("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),fdt=ct("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),hdt=re({__name:"DetailsPanel",props:{color:{}},setup(t){const n=Yt(!0);return(r,o)=>(ut(),At("div",{open:U(n),class:"details-panel",onToggle:o[0]||(o[0]=a=>n.value=a.target.open)},[ct("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ve(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[udt,ir(r.$slots,"summary",{open:U(n)}),fdt],2),ir(r.$slots,"default")],40,cdt))}}),ddt={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},pdt={key:0,"i-logos:typescript-icon":"","flex-shrink-0":"","mr-2":""},gdt=["text"],vdt={"text-sm":"",truncate:"","font-light":""},mdt={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},ydt=re({__name:"TaskItem",props:{task:{}},setup(t){const n=t,r=xt(()=>{const{result:o}=n.task;return o&&Math.round(o.duration||0)});return(o,a)=>{var f,h;const u=ed;return o.task?(ut(),At("div",ddt,[It(u,{task:o.task,"mr-2":""},null,8,["task"]),o.task.type==="suite"&&o.task.meta.typecheck?(ut(),At("div",pdt)):ee("",!0),ct("div",{flex:"","items-end":"","gap-2":"",text:((h=(f=o.task)==null?void 0:f.result)==null?void 0:h.state)==="fail"?"red-500":""},[ct("span",vdt,ne(o.task.name),1),typeof U(r)=="number"?(ut(),At("span",mdt,ne(U(r)>0?U(r):"< 1")+"ms ",1)):ee("",!0)],8,gdt)])):ee("",!0)}}});function bdt(t){return Object.hasOwnProperty.call(t,"tasks")}function Tb(t,n){return typeof t!="string"||typeof n!="string"?!1:t.toLowerCase().includes(n.toLowerCase())}const wdt={key:1},xdt=re({inheritAttrs:!1,__name:"TaskTree",props:{task:{},indent:{default:0},nested:{type:Boolean,default:!1},search:{},onItemClick:{type:Function}},setup(t){return(n,r)=>{const o=ydt,a=eo("TaskTree",!0);return ut(),At(ue,null,[!n.nested||!n.search||U(Tb)(n.task.name,n.search)?(ut(),Qt(o,Si({key:0},n.$attrs,{task:n.task,style:{paddingLeft:`${n.indent*.75+1}rem`},onClick:r[0]||(r[0]=u=>n.onItemClick&&n.onItemClick(n.task))}),null,16,["task","style"])):ee("",!0),n.nested&&n.task.type==="suite"&&n.task.tasks.length?(ut(),At("div",wdt,[(ut(!0),At(ue,null,nr(n.task.tasks,u=>(ut(),Qt(a,{key:u.id,task:u,nested:n.nested,indent:n.indent+1,search:n.search,"on-item-click":n.onItemClick},null,8,["task","nested","indent","search","on-item-click"]))),128))])):ee("",!0)],64)}}}),_dt={h:"full",flex:"~ col"},Sdt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},kdt={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Cdt=ct("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Tdt=["op"],Edt={class:"scrolls","flex-auto":"","py-1":""},Ldt={"text-red5":""},Adt={"text-yellow5":""},Mdt={"text-green5":""},Ndt={class:"text-purple5:50"},Pdt={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Odt=ct("div",{op30:""}," No matched test ",-1),Eb=re({inheritAttrs:!1,__name:"TasksList",props:{tasks:{},indent:{default:0},nested:{type:Boolean,default:!1},groupByType:{type:Boolean,default:!1},onItemClick:{type:Function}},emits:["run"],setup(t,{emit:n}){const r=n,o=Yt(""),a=Yt(),u=xt(()=>o.value.trim()!==""),f=xt(()=>o.value.trim()?t.tasks.filter(L=>A([L],o.value)):t.tasks),h=xt(()=>u.value?f.value.map(L=>oc(L.id)).filter(Boolean):[]),p=xt(()=>f.value.filter(L=>{var T;return((T=L.result)==null?void 0:T.state)==="fail"})),g=xt(()=>f.value.filter(L=>{var T;return((T=L.result)==null?void 0:T.state)==="pass"})),v=xt(()=>f.value.filter(L=>L.mode==="skip"||L.mode==="todo")),b=xt(()=>f.value.filter(L=>!p.value.includes(L)&&!g.value.includes(L)&&!v.value.includes(L))),x=xt(()=>o.value===""),S=iT(b,250);function P(L){var T;o.value="",L&&((T=a.value)==null||T.focus())}function A(L,T){let M=!1;for(let R=0;R<L.length;R++){const E=L[R];if(Tb(E.name,T)){M=!0;break}if(bdt(E)&&E.tasks&&(M=A(E.tasks,T),M))break}return M}return(L,T)=>{const M=vs,R=xdt,E=hdt,B=lo("tooltip");return ut(),At("div",_dt,[ct("div",null,[ct("div",Sdt,[ir(L.$slots,"header",{filteredTests:U(u)?U(h):void 0})]),ct("div",kdt,[Cdt,tn(ct("input",{ref_key:"searchBox",ref:a,"onUpdate:modelValue":T[0]||(T[0]=K=>Ee(o)?o.value=K:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:U(o).length?"100":"50",onKeydown:[T[1]||(T[1]=Tf(K=>P(!1),["esc"])),T[2]||(T[2]=Tf(K=>r("run",U(u)?U(h):void 0),["enter"]))]},null,40,Tdt),[[nS,U(o)]]),tn(It(M,{disabled:U(x),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:T[3]||(T[3]=K=>P(!0))},null,8,["disabled"]),[[B,"Clear search",void 0,{bottom:!0}]])])]),ct("div",Edt,[L.groupByType?(ut(),At(ue,{key:0},[U(p).length?(ut(),Qt(E,{key:0},{summary:Jt(()=>[ct("div",Ldt," FAIL ("+ne(U(p).length)+") ",1)]),default:Jt(()=>[(ut(!0),At(ue,null,nr(U(p),K=>(ut(),Qt(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(vr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ee("",!0),U(b).length||U(wl)==="running"?(ut(),Qt(E,{key:1},{summary:Jt(()=>[ct("div",Adt," RUNNING ("+ne(U(S).length)+") ",1)]),default:Jt(()=>[(ut(!0),At(ue,null,nr(U(S),K=>(ut(),Qt(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(vr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ee("",!0),U(g).length?(ut(),Qt(E,{key:2},{summary:Jt(()=>[ct("div",Mdt," PASS ("+ne(U(g).length)+") ",1)]),default:Jt(()=>[(ut(!0),At(ue,null,nr(U(g),K=>(ut(),Qt(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(vr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ee("",!0),U(v).length?(ut(),Qt(E,{key:3},{summary:Jt(()=>[ct("div",Ndt," SKIP ("+ne(U(v).length)+") ",1)]),default:Jt(()=>[(ut(!0),At(ue,null,nr(U(v),K=>(ut(),Qt(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(vr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ee("",!0)],64)):(ut(!0),At(ue,{key:1},nr(U(f),K=>(ut(),Qt(R,{key:K.id,task:K,nested:L.nested,search:U(o),class:ve(U(vr)===K.id?"bg-active":""),"on-item-click":L.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),U(u)&&U(f).length===0?(ut(),At("div",Pdt,[Odt,ct("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:T[4]||(T[4]=K=>P(!0))}," Clear ",32)])):ee("",!0)])])}}}),Tl=Yt(),Qo=Yt(!0),oo=Yt(!1),pc=Yt(!0),Bo=xt(()=>{var t;return(t=Ih.value)==null?void 0:t.coverage}),Qf=xt(()=>{var t;return(t=Bo.value)==null?void 0:t.enabled}),Wo=xt(()=>Qf.value&&Bo.value.reporter.map(([t])=>t).includes("html")),Ddt=xt(()=>{if(Wo.value){const t=Bo.value.reportsDirectory.lastIndexOf("/"),n=Bo.value.reporter.find(r=>{if(r[0]==="html")return r});return n&&"subdir"in n[1]?`/${Bo.value.reportsDirectory.slice(t+1)}/${n[1].subdir}/index.html`:`/${Bo.value.reportsDirectory.slice(t+1)}/index.html`}});De(wl,t=>{pc.value=t==="running"},{immediate:!0});function $dt(){const t=vr.value;if(t&&t.length>0){const n=oc(t);n?(Tl.value=n,Qo.value=!1,oo.value=!1):lT(()=>je.state.getFiles(),()=>{Tl.value=oc(t),Qo.value=!1,oo.value=!1})}return Qo}function lf(t){Qo.value=t,oo.value=!1,t&&(Tl.value=void 0,vr.value="")}function Rdt(){oo.value=!0,Qo.value=!1,Tl.value=void 0,vr.value=""}const zdt={key:0,"h-full":""},Fdt={key:0,"i-logos:typescript-icon":"","flex-shrink-0":"","mr-1":""},Idt={"data-testid":"filenames","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},qdt={class:"flex text-lg"},Hdt=re({__name:"Suites",setup(t){const n=xt(()=>{var u;return(u=_e.value)==null?void 0:u.name.split(/\//g).pop()}),r=xt(()=>{var u,f;return((u=_e.value)==null?void 0:u.tasks)&&Rc((f=_e.value)==null?void 0:f.tasks)});function o(){return _e.value&&je.rpc.updateSnapshot(_e.value)}async function a(){Wo.value&&(pc.value=!0,await Hr()),await GT()}return(u,f)=>{const h=ed,p=vs,g=Eb,v=lo("tooltip");return U(_e)?(ut(),At("div",zdt,[It(g,{tasks:U(_e).tasks,nested:!0},{header:Jt(()=>[It(h,{"mx-1":"",task:U(_e)},null,8,["task"]),U(_e).type==="suite"&&U(_e).meta.typecheck?(ut(),At("div",Fdt)):ee("",!0),ct("span",Idt,ne(U(n)),1),ct("div",qdt,[U(r)&&!U(Ur)?tn((ut(),Qt(p,{key:0,icon:"i-carbon-result-old",onClick:f[0]||(f[0]=b=>o())},null,512)),[[v,`Update failed snapshot(s) of ${U(_e).name}`,void 0,{bottom:!0}]]):ee("",!0),U(Ur)?ee("",!0):tn((ut(),Qt(p,{key:1,icon:"i-carbon-play",onClick:f[1]||(f[1]=b=>a())},null,512)),[[v,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):ee("",!0)}}}),Bdt={h:"full",flex:"~ col"},Wdt=ct("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ct("div",{class:"i-carbon:folder-details-reference"}),ct("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1),Udt={"flex-auto":"","py-1":"","bg-white":""},jdt=["src"],Gdt=re({__name:"Coverage",props:{src:{}},setup(t){return(n,r)=>(ut(),At("div",Bdt,[Wdt,ct("div",Udt,[ct("iframe",{id:"vitest-ui-coverage",src:n.src},null,8,jdt)])]))}}),Sr=t=>(Im("data-v-6679a536"),t=t(),qm(),t),Vdt={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},Kdt=Sr(()=>ct("div",{"i-carbon-document":""},null,-1)),Xdt=Sr(()=>ct("div",null,"Files",-1)),Ydt={class:"number","data-testid":"num-files"},Zdt=Sr(()=>ct("div",{"i-carbon-checkmark":""},null,-1)),Jdt=Sr(()=>ct("div",null,"Pass",-1)),Qdt={class:"number"},tpt=Sr(()=>ct("div",{"i-carbon-close":""},null,-1)),ept=Sr(()=>ct("div",null," Fail ",-1)),npt={class:"number","text-red5":""},rpt=Sr(()=>ct("div",{"i-carbon-compare":""},null,-1)),ipt=Sr(()=>ct("div",null," Snapshot Fail ",-1)),opt={class:"number","text-red5":""},spt=Sr(()=>ct("div",{"i-carbon-timer":""},null,-1)),lpt=Sr(()=>ct("div",null,"Time",-1)),apt={class:"number","data-testid":"run-time"},cpt=re({__name:"TestFilesEntry",setup(t){return(n,r)=>(ut(),At("div",Vdt,[Kdt,Xdt,ct("div",Ydt,ne(U(gn).length),1),U(lc).length?(ut(),At(ue,{key:0},[Zdt,Jdt,ct("div",Qdt,ne(U(lc).length),1)],64)):ee("",!0),U(sc).length?(ut(),At(ue,{key:1},[tpt,ept,ct("div",npt,ne(U(sc).length),1)],64)):ee("",!0),U(Ov).length?(ut(),At(ue,{key:2},[rpt,ipt,ct("div",opt,ne(U(Ov).length),1)],64)):ee("",!0),spt,lpt,ct("div",apt,ne(U(plt)),1)]))}}),upt=ao(cpt,[["__scopeId","data-v-6679a536"]]),fpt={"p-2":"","text-center":"",flex:""},hpt={"text-4xl":"","min-w-2em":""},dpt={"text-md":""},ppt=re({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(t){return(n,r)=>(ut(),At("div",fpt,[ct("div",null,[ct("div",hpt,[ir(n.$slots,"body")]),ct("div",dpt,[ir(n.$slots,"header")])])]))}}),gpt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},vpt=re({__name:"TestsEntry",setup(t){const n=xt(()=>Ic.value.length),r=xt(()=>Ry.value.length),o=xt(()=>$y.value.length),a=xt(()=>hlt.value.length),u=xt(()=>dlt.value.length);return(f,h)=>{const p=ppt;return ut(),At("div",gpt,[It(p,{"text-green5":"","data-testid":"pass-entry"},{header:Jt(()=>[fn(" Pass ")]),body:Jt(()=>[fn(ne(U(r)),1)]),_:1}),It(p,{class:ve({"text-red5":U(o),op50:!U(o)}),"data-testid":"fail-entry"},{header:Jt(()=>[fn(" Fail ")]),body:Jt(()=>[fn(ne(U(o)),1)]),_:1},8,["class"]),U(a)?(ut(),Qt(p,{key:0,op50:"","data-testid":"skipped-entry"},{header:Jt(()=>[fn(" Skip ")]),body:Jt(()=>[fn(ne(U(a)),1)]),_:1})):ee("",!0),U(u)?(ut(),Qt(p,{key:1,op50:"","data-testid":"todo-entry"},{header:Jt(()=>[fn(" Todo ")]),body:Jt(()=>[fn(ne(U(u)),1)]),_:1})):ee("",!0),It(p,{tail:!0,"data-testid":"total-entry"},{header:Jt(()=>[fn(" Total ")]),body:Jt(()=>[fn(ne(U(n)),1)]),_:1})])}}}),mpt={},ypt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},bpt={"aria-labelledby":"tests",m:"y-4 x-2"};function wpt(t,n){const r=vpt,o=upt;return ut(),At("div",ypt,[ct("section",bpt,[It(r)]),It(o)])}const xpt=ao(mpt,[["render",wpt]]),_pt={},Spt={h:"full",flex:"~ col"},kpt=ct("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ct("div",{class:"i-carbon-dashboard"}),ct("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),Cpt={class:"scrolls","flex-auto":"","py-1":""};function Tpt(t,n){const r=xpt;return ut(),At("div",Spt,[kpt,ct("div",Cpt,[It(r)])])}const Ept=ao(_pt,[["render",Tpt]]),Lpt=""+new URL("../favicon.svg",import.meta.url).href,Apt=ct("img",{"w-6":"","h-6":"",src:Lpt,alt:"Vitest logo"},null,-1),Mpt=ct("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Npt={class:"flex text-lg"},Ppt=ct("div",{class:"i-carbon:folder-off ma"},null,-1),Opt=ct("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[ct("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),ct("div",null,"Coverage enabled but missing html reporter."),ct("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1),Dpt=re({__name:"Navigation",setup(t){const n=xt(()=>gn.value&&Rc(gn.value));function r(){return je.rpc.updateSnapshot()}const o=xt(()=>Ol.value?"light":"dark");function a(f){vr.value=f.id,Tl.value=oc(f.id),lf(!1)}async function u(f){Wo.value&&(pc.value=!0,await Hr(),oo.value&&(lf(!0),await Hr())),await jT(f)}return(f,h)=>{const p=vs,g=Eb,v=lo("tooltip");return ut(),Qt(g,{border:"r base",tasks:U(gn),"on-item-click":a,"group-by-type":!0,onRun:u},{header:Jt(({filteredTests:b})=>[Apt,Mpt,ct("div",Npt,[tn(It(p,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[0]||(h[0]=x=>U(lf)(!0))},null,512),[[kf,U(Qf)&&!U(Wo)||!U(Qo)],[v,"Dashboard",void 0,{bottom:!0}]]),U(Qf)&&!U(Wo)?(ut(),Qt(U(kC),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:Jt(()=>[Opt]),default:Jt(()=>[Ppt]),_:1})):ee("",!0),U(Wo)?tn((ut(),Qt(p,{key:1,disabled:U(pc),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[1]||(h[1]=x=>U(Rdt)())},null,8,["disabled"])),[[kf,!U(oo)],[v,"Coverage",void 0,{bottom:!0}]]):ee("",!0),U(n)&&!U(Ur)?tn((ut(),Qt(p,{key:2,icon:"i-carbon:result-old",onClick:h[2]||(h[2]=x=>r())},null,512)),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):ee("",!0),U(Ur)?ee("",!0):tn((ut(),Qt(p,{key:3,disabled:(b==null?void 0:b.length)===0,icon:"i-carbon:play",onClick:x=>u(b)},null,8,["disabled","onClick"])),[[v,b?b.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),tn(It(p,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[3]||(h[3]=x=>U(Yst)())},null,512),[[v,`Toggle to ${U(o)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks"])}}}),$pt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Rpt=re({__name:"ProgressBar",setup(t){const{width:n}=_T(),r=xt(()=>gn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":flt.value?null:"in-progress"),o=xt(()=>gn.value.length),a=xt(()=>lc.value.length),u=xt(()=>sc.value.length),f=xt(()=>{const v=U(o);return v>0?n.value*a.value/v:0}),h=xt(()=>{const v=U(o);return v>0?n.value*u.value/v:0}),p=xt(()=>U(o)-u.value-a.value),g=xt(()=>{const v=U(o);return v>0?n.value*p.value/v:0});return(v,b)=>(ut(),At("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:ve(U(r))},[ct("div",$pt,[ct("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ve(U(r)),style:En(`width: ${U(h)}px;`)}," ",6),ct("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ve(U(r)),style:En(`left: ${U(h)}px; width: ${U(f)}px;`)}," ",6),ct("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ve(U(r)),style:En(`left: ${U(f)+U(h)}px; width: ${U(g)}px;`)}," ",6)])],2))}}),zpt=ao(Rpt,[["__scopeId","data-v-f967c1fe"]]),um={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,n)=>(t[n.id]=n)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,n){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=n},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,n){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===n?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,n),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=n,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[n])},onSplitterDblClick(t,n){let r=0;this.panes=this.panes.map((o,a)=>(o.size=a===n?o.max:o.min,a!==n&&(r+=o.min),o)),this.panes[n].size-=r,this.$emit("pane-maximize",this.panes[n]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(t,n){this.$emit("pane-click",this.indexedPanes[n])},getCurrentMouseDrag(t){const n=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:r-n.left,y:o-n.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const n=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=n-t),t*100/n},calculatePanesSize(t){const n=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(n),nextPanesSize:this.sumNextPanesSize(n),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),a=100-(this.pushOtherPanes?0:r.nextPanesSize),u=Math.max(Math.min(this.getCurrentDragPercentage(t),a),o);let f=[n,n+1],h=this.panes[f[0]]||null,p=this.panes[f[1]]||null;const g=h.max<100&&u>=h.max+r.prevPanesSize,v=p.max<100&&u<=100-(p.max+this.sumNextPanesSize(n+1));if(g||v){g?(h.size=h.max,p.size=Math.max(100-h.max-r.prevPanesSize-r.nextPanesSize,0)):(h.size=Math.max(100-p.max-r.prevPanesSize-this.sumNextPanesSize(n+1),0),p.size=p.max);return}if(this.pushOtherPanes){const b=this.doPushOtherPanes(r,u);if(!b)return;({sums:r,panesToResize:f}=b),h=this.panes[f[0]]||null,p=this.panes[f[1]]||null}h!==null&&(h.size=Math.min(Math.max(u-r.prevPanesSize-r.prevReachedMinPanes,h.min),h.max)),p!==null&&(p.size=Math.min(Math.max(100-u-r.nextPanesSize-r.nextReachedMinPanes,p.min),p.max))},doPushOtherPanes(t,n){const r=this.touch.activeSplitter,o=[r,r+1];return n<t.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,t.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((a,u)=>{u>o[0]&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,u)=>{u>0&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[o[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):n>100-t.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,t.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((a,u)=>{u>r&&u<o[1]&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),t.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((a,u)=>{u<this.panesCount-1&&u>=r+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[o[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:o}},sumPrevPanesSize(t){return this.panes.reduce((n,r,o)=>n+(o<t?r.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((n,r,o)=>n+(o>t+1?r.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(n=>n.index<t&&n.size>n.min)||{}},findNextExpandedPane(t){return this.panes.find(n=>n.index>t+1&&n.size>n.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const n=t.classList.contains("splitpanes__pane"),r=t.classList.contains("splitpanes__splitter");!n&&!r&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(t,n,r=!1){const o=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),r||(a.onmousedown=u=>this.onMouseDown(u,o),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=u=>this.onMouseDown(u,o)),a.onclick=u=>this.onSplitterClick(u,o+1)),this.dblClickSplitter&&(a.ondblclick=u=>this.onSplitterDblClick(u,o+1)),n.parentNode.insertBefore(a,n)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let n=0;t.forEach(r=>{r.className.includes("splitpanes__pane")&&(!n&&this.firstSplitter?this.addSplitter(n,r,!0):n&&this.addSplitter(n,r),n++)})},requestUpdate({target:t,...n}){const r=this.indexedPanes[t._.uid];Object.entries(n).forEach(([o,a])=>r[o]=a)},onPaneAdd(t){let n=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&n++,a===t.$el));const r=parseFloat(t.minSize),o=parseFloat(t.maxSize);this.panes.splice(n,0,{id:t._.uid,index:n,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,u)=>a.index=u),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[n]}),this.$emit("pane-add",{index:n,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const n=this.panes.findIndex(o=>o.id===t._.uid),r=this.panes.splice(n,1)[0];this.panes.forEach((o,a)=>o.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:n}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(n=>n.givenSize!==null||n.min||n.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},equalize(){const t=100/this.panesCount;let n=0;const r=[],o=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),n-=a.size,a.size>=a.max&&r.push(a.id),a.size<=a.min&&o.push(a.id)}),n>.1&&this.readjustSizes(n,r,o)},initialPanesSizing(){let t=100;const n=[],r=[];let o=0;this.panes.forEach(u=>{t-=u.size,u.size!==null&&o++,u.size>=u.max&&n.push(u.id),u.size<=u.min&&r.push(u.id)});let a=100;t>.1&&(this.panes.forEach(u=>{u.size===null&&(u.size=Math.max(Math.min(t/(this.panesCount-o),u.max),u.min)),a-=u.size}),a>.1&&this.readjustSizes(t,n,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:n}={}){let r=100/this.panesCount,o=0;const a=[],u=[];t&&t.givenSize!==null&&(r=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{t&&t.givenSize!==null&&t.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),o>.1&&this.readjustSizes(o,a,u))},readjustSizes(t,n,r){let o;t>0?o=t/(this.panesCount-n.length):o=t/(this.panesCount-r.length),this.panes.forEach((a,u)=>{if(t>0&&!n.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min),h=f-a.size;t-=h,a.size=f}else if(!r.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min),h=f-a.size;t-=h,a.size=f}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((n,r)=>{n.ondblclick=t?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Al("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Fpt=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r},Ipt={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function qpt(t,n,r,o,a,u){return ut(),At("div",{class:"splitpanes__pane",onClick:n[0]||(n[0]=f=>u.onPaneClick(f,t._.uid)),style:En(t.style)},[ir(t.$slots,"default")],4)}const Na=Fpt(Ipt,[["render",qpt]]),Hpt={"h-screen":"","w-screen":"",overflow:"hidden"},Bpt=re({__name:"index",setup(t){const n=$dt(),r=Hn([33,67]),o=Hn([33,67]),a=xv(h=>{h.forEach((p,g)=>{r[g]=p.size})},0),u=xv(h=>{h.forEach((p,g)=>{o[g]=p.size})},0);function f(){const h=window.innerWidth,p=Math.min(h/3,300);r[0]=100*p/h,r[1]=100-r[0],o[0]=100*p/(h-p),o[1]=100-o[0]}return(h,p)=>{const g=zpt,v=Dpt,b=Ept,x=Gdt,S=Hdt,P=adt,A=XT;return ut(),At(ue,null,[It(g),ct("div",Hpt,[It(U(um),{class:"pt-4px",onResized:U(a),onReady:f},{default:Jt(()=>[It(U(Na),{size:U(r)[0]},{default:Jt(()=>[It(v)]),_:1},8,["size"]),It(U(Na),{size:U(r)[1]},{default:Jt(()=>[It(Ch,null,{default:Jt(()=>[U(n)?(ut(),Qt(b,{key:"summary"})):U(oo)?(ut(),Qt(x,{key:"coverage",src:U(Ddt)},null,8,["src"])):(ut(),Qt(U(um),{key:"detail",onResized:U(u)},{default:Jt(()=>[It(U(Na),{size:U(o)[0]},{default:Jt(()=>[It(S)]),_:1},8,["size"]),It(U(Na),{size:U(o)[1]},{default:Jt(()=>[It(P)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),It(A)],64)}}}),Wpt=[{name:"index",path:"/",component:Bpt,props:!0}],Upt={tooltip:SC};G0.options.instantMove=!0;G0.options.distance=10;function jpt(){return hk({history:LS(),routes:Wpt})}const Gpt=[jpt],nd=h0(cS);Gpt.forEach(t=>{nd.use(t())});Object.entries(Upt).forEach(([t,n])=>{nd.directive(t,n)});nd.mount("#app");
|