@vitest/browser 0.24.3 → 0.24.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/__vitest__/assets/index.75f80b22.js +33 -0
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/assets/index.891d93e6.js +41 -0
- package/dist/client/index.html +1 -1
- package/package.json +3 -3
- package/dist/client/__vitest__/assets/index.51497caa.js +0 -33
- package/dist/client/assets/index.ba53c6ec.js +0 -488
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var ex=Object.defineProperty;var nx=(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)=>(nx(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 xf(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 rx="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ix=xf(rx);function qv(t){return!!t||t===""}function kn(t){if(Ht(t)){const n={};for(let r=0;r<t.length;r++){const o=t[r],a=Ue(o)?lx(o):kn(o);if(a)for(const u in a)n[u]=a[u]}return n}else{if(Ue(t))return t;if(xe(t))return t}}const ox=/;(?![^(]*\))/g,sx=/:(.+)/;function lx(t){const n={};return t.split(ox).forEach(r=>{if(r){const o=r.split(sx);o.length>1&&(n[o[0].trim()]=o[1].trim())}}),n}function ge(t){let n="";if(Ue(t))n=t;else if(Ht(t))for(let r=0;r<t.length;r++){const o=ge(t[r]);o&&(n+=o+" ")}else if(xe(t))for(const r in t)t[r]&&(n+=r+" ");return n.trim()}const Zt=t=>Ue(t)?t:t==null?"":Ht(t)||xe(t)&&(t.toString===Uv||!Wt(t.toString))?JSON.stringify(t,Hv,2):String(t),Hv=(t,n)=>n&&n.__v_isRef?Hv(t,n.value):Eo(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((r,[o,a])=>(r[`${o} =>`]=a,r),{})}:Bv(n)?{[`Set(${n.size})`]:[...n.values()]}:xe(n)&&!Ht(n)&&!jv(n)?String(n):n,me={},To=[],Vn=()=>{},ax=()=>!1,cx=/^on[^a-z]/,Xa=t=>cx.test(t),_f=t=>t.startsWith("onUpdate:"),Xe=Object.assign,Sf=(t,n)=>{const r=t.indexOf(n);r>-1&&t.splice(r,1)},ux=Object.prototype.hasOwnProperty,Yt=(t,n)=>ux.call(t,n),Ht=Array.isArray,Eo=t=>Ya(t)==="[object Map]",Bv=t=>Ya(t)==="[object Set]",Wt=t=>typeof t=="function",Ue=t=>typeof t=="string",kf=t=>typeof t=="symbol",xe=t=>t!==null&&typeof t=="object",Wv=t=>xe(t)&&Wt(t.then)&&Wt(t.catch),Uv=Object.prototype.toString,Ya=t=>Uv.call(t),fx=t=>Ya(t).slice(8,-1),jv=t=>Ya(t)==="[object Object]",Cf=t=>Ue(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,fa=xf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ja=t=>{const n=Object.create(null);return r=>n[r]||(n[r]=t(r))},hx=/-(\w)/g,fr=Ja(t=>t.replace(hx,(n,r)=>r?r.toUpperCase():"")),dx=/\B([A-Z])/g,Yi=Ja(t=>t.replace(dx,"-$1").toLowerCase()),Za=Ja(t=>t.charAt(0).toUpperCase()+t.slice(1)),gu=Ja(t=>t?`on${Za(t)}`:""),Us=(t,n)=>!Object.is(t,n),ha=(t,n)=>{for(let r=0;r<t.length;r++)t[r](n)},ka=(t,n,r)=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value:r})},js=t=>{const n=parseFloat(t);return isNaN(n)?t:n};let wp;const px=()=>wp||(wp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Mn;class gx{constructor(n=!1){this.detached=n,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Mn,!n&&Mn&&(this.index=(Mn.scopes||(Mn.scopes=[])).push(this)-1)}run(n){if(this.active){const r=Mn;try{return Mn=this,n()}finally{Mn=r}}}on(){Mn=this}off(){Mn=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 vx(t,n=Mn){n&&n.active&&n.effects.push(t)}function mx(){return Mn}function yx(t){Mn&&Mn.cleanups.push(t)}const Tf=t=>{const n=new Set(t);return n.w=0,n.n=0,n},Gv=t=>(t.w&di)>0,Vv=t=>(t.n&di)>0,bx=({deps:t})=>{if(t.length)for(let n=0;n<t.length;n++)t[n].w|=di},wx=t=>{const{deps:n}=t;if(n.length){let r=0;for(let o=0;o<n.length;o++){const a=n[o];Gv(a)&&!Vv(a)?a.delete(t):n[r++]=a,a.w&=~di,a.n&=~di}n.length=r}},Pu=new WeakMap;let Ds=0,di=1;const $u=30;let jn;const Bi=Symbol(""),Du=Symbol("");class Ef{constructor(n,r=null,o){this.fn=n,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,vx(this,o)}run(){if(!this.active)return this.fn();let n=jn,r=ci;for(;n;){if(n===this)return;n=n.parent}try{return this.parent=jn,jn=this,ci=!0,di=1<<++Ds,Ds<=$u?bx(this):xp(this),this.fn()}finally{Ds<=$u&&wx(this),di=1<<--Ds,jn=this.parent,ci=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){jn===this?this.deferStop=!0:this.active&&(xp(this),this.onStop&&this.onStop(),this.active=!1)}}function xp(t){const{deps:n}=t;if(n.length){for(let r=0;r<n.length;r++)n[r].delete(t);n.length=0}}let ci=!0;const Kv=[];function Vo(){Kv.push(ci),ci=!1}function Ko(){const t=Kv.pop();ci=t===void 0?!0:t}function On(t,n,r){if(ci&&jn){let o=Pu.get(t);o||Pu.set(t,o=new Map);let a=o.get(r);a||o.set(r,a=Tf()),Xv(a)}}function Xv(t,n){let r=!1;Ds<=$u?Vv(t)||(t.n|=di,r=!Gv(t)):r=!t.has(jn),r&&(t.add(jn),jn.deps.push(t))}function $r(t,n,r,o,a,u){const f=Pu.get(t);if(!f)return;let h=[];if(n==="clear")h=[...f.values()];else if(r==="length"&&Ht(t))f.forEach((p,g)=>{(g==="length"||g>=o)&&h.push(p)});else switch(r!==void 0&&h.push(f.get(r)),n){case"add":Ht(t)?Cf(r)&&h.push(f.get("length")):(h.push(f.get(Bi)),Eo(t)&&h.push(f.get(Du)));break;case"delete":Ht(t)||(h.push(f.get(Bi)),Eo(t)&&h.push(f.get(Du)));break;case"set":Eo(t)&&h.push(f.get(Bi));break}if(h.length===1)h[0]&&Ru(h[0]);else{const p=[];for(const g of h)g&&p.push(...g);Ru(Tf(p))}}function Ru(t,n){const r=Ht(t)?t:[...t];for(const o of r)o.computed&&_p(o);for(const o of r)o.computed||_p(o)}function _p(t,n){(t!==jn||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const xx=xf("__proto__,__v_isRef,__isVue"),Yv=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(kf)),_x=Lf(),Sx=Lf(!1,!0),kx=Lf(!0),Sp=Cx();function Cx(){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++)On(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){Vo();const o=le(this)[n].apply(this,r);return Ko(),o}}),t}function Lf(t=!1,n=!1){return function(o,a,u){if(a==="__v_isReactive")return!t;if(a==="__v_isReadonly")return t;if(a==="__v_isShallow")return n;if(a==="__v_raw"&&u===(t?n?Hx:em:n?tm:Qv).get(o))return o;const f=Ht(o);if(!t&&f&&Yt(Sp,a))return Reflect.get(Sp,a,u);const h=Reflect.get(o,a,u);return(kf(a)?Yv.has(a):xx(a))||(t||On(o,"get",a),n)?h:Ie(h)?f&&Cf(a)?h:h.value:xe(h)?t?nm(h):hr(h):h}}const Tx=Jv(),Ex=Jv(!0);function Jv(t=!1){return function(r,o,a,u){let f=r[o];if(Do(f)&&Ie(f)&&!Ie(a))return!1;if(!t&&(!Ca(a)&&!Do(a)&&(f=le(f),a=le(a)),!Ht(r)&&Ie(f)&&!Ie(a)))return f.value=a,!0;const h=Ht(r)&&Cf(o)?Number(o)<r.length:Yt(r,o),p=Reflect.set(r,o,a,u);return r===le(u)&&(h?Us(a,f)&&$r(r,"set",o,a):$r(r,"add",o,a)),p}}function Lx(t,n){const r=Yt(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&$r(t,"delete",n,void 0),o}function Ax(t,n){const r=Reflect.has(t,n);return(!kf(n)||!Yv.has(n))&&On(t,"has",n),r}function Mx(t){return On(t,"iterate",Ht(t)?"length":Bi),Reflect.ownKeys(t)}const Zv={get:_x,set:Tx,deleteProperty:Lx,has:Ax,ownKeys:Mx},Nx={get:kx,set(t,n){return!0},deleteProperty(t,n){return!0}},Ox=Xe({},Zv,{get:Sx,set:Ex}),Af=t=>t,Qa=t=>Reflect.getPrototypeOf(t);function Ql(t,n,r=!1,o=!1){t=t.__v_raw;const a=le(t),u=le(n);r||(n!==u&&On(a,"get",n),On(a,"get",u));const{has:f}=Qa(a),h=o?Af:r?Pf:Gs;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 ta(t,n=!1){const r=this.__v_raw,o=le(r),a=le(t);return n||(t!==a&&On(o,"has",t),On(o,"has",a)),t===a?r.has(t):r.has(t)||r.has(a)}function ea(t,n=!1){return t=t.__v_raw,!n&&On(le(t),"iterate",Bi),Reflect.get(t,"size",t)}function kp(t){t=le(t);const n=le(this);return Qa(n).has.call(n,t)||(n.add(t),$r(n,"add",t,t)),this}function Cp(t,n){n=le(n);const r=le(this),{has:o,get:a}=Qa(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?Us(n,f)&&$r(r,"set",t,n):$r(r,"add",t,n),this}function Tp(t){const n=le(this),{has:r,get:o}=Qa(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&&$r(n,"delete",t,void 0),u}function Ep(){const t=le(this),n=t.size!==0,r=t.clear();return n&&$r(t,"clear",void 0,void 0),r}function na(t,n){return function(o,a){const u=this,f=u.__v_raw,h=le(f),p=n?Af:t?Pf:Gs;return!t&&On(h,"iterate",Bi),f.forEach((g,m)=>o.call(a,p(g),p(m),u))}}function ra(t,n,r){return function(...o){const a=this.__v_raw,u=le(a),f=Eo(u),h=t==="entries"||t===Symbol.iterator&&f,p=t==="keys"&&f,g=a[t](...o),m=r?Af:n?Pf:Gs;return!n&&On(u,"iterate",p?Du:Bi),{next(){const{value:b,done:x}=g.next();return x?{value:b,done:x}:{value:h?[m(b[0]),m(b[1])]:m(b),done:x}},[Symbol.iterator](){return this}}}}function Qr(t){return function(...n){return t==="delete"?!1:this}}function Px(){const t={get(u){return Ql(this,u)},get size(){return ea(this)},has:ta,add:kp,set:Cp,delete:Tp,clear:Ep,forEach:na(!1,!1)},n={get(u){return Ql(this,u,!1,!0)},get size(){return ea(this)},has:ta,add:kp,set:Cp,delete:Tp,clear:Ep,forEach:na(!1,!0)},r={get(u){return Ql(this,u,!0)},get size(){return ea(this,!0)},has(u){return ta.call(this,u,!0)},add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear"),forEach:na(!0,!1)},o={get(u){return Ql(this,u,!0,!0)},get size(){return ea(this,!0)},has(u){return ta.call(this,u,!0)},add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear"),forEach:na(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=ra(u,!1,!1),r[u]=ra(u,!0,!1),n[u]=ra(u,!1,!0),o[u]=ra(u,!0,!0)}),[t,r,n,o]}const[$x,Dx,Rx,zx]=Px();function Mf(t,n){const r=n?t?zx:Rx:t?Dx:$x;return(o,a,u)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?o:Reflect.get(Yt(r,a)&&a in o?r:o,a,u)}const Ix={get:Mf(!1,!1)},Fx={get:Mf(!1,!0)},qx={get:Mf(!0,!1)},Qv=new WeakMap,tm=new WeakMap,em=new WeakMap,Hx=new WeakMap;function Bx(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wx(t){return t.__v_skip||!Object.isExtensible(t)?0:Bx(fx(t))}function hr(t){return Do(t)?t:Nf(t,!1,Zv,Ix,Qv)}function Ux(t){return Nf(t,!1,Ox,Fx,tm)}function nm(t){return Nf(t,!0,Nx,qx,em)}function Nf(t,n,r,o,a){if(!xe(t)||t.__v_raw&&!(n&&t.__v_isReactive))return t;const u=a.get(t);if(u)return u;const f=Wx(t);if(f===0)return t;const h=new Proxy(t,f===2?o:r);return a.set(t,h),h}function Lo(t){return Do(t)?Lo(t.__v_raw):!!(t&&t.__v_isReactive)}function Do(t){return!!(t&&t.__v_isReadonly)}function Ca(t){return!!(t&&t.__v_isShallow)}function rm(t){return Lo(t)||Do(t)}function le(t){const n=t&&t.__v_raw;return n?le(n):t}function Of(t){return ka(t,"__v_skip",!0),t}const Gs=t=>xe(t)?hr(t):t,Pf=t=>xe(t)?nm(t):t;function im(t){ci&&jn&&(t=le(t),Xv(t.dep||(t.dep=Tf())))}function om(t,n){t=le(t),t.dep&&Ru(t.dep)}function Ie(t){return!!(t&&t.__v_isRef===!0)}function Kt(t){return sm(t,!1)}function ll(t){return sm(t,!0)}function sm(t,n){return Ie(t)?t:new jx(t,n)}class jx{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:Gs(n)}get value(){return im(this),this._value}set value(n){const r=this.__v_isShallow||Ca(n)||Do(n);n=r?n:le(n),Us(n,this._rawValue)&&(this._rawValue=n,this._value=r?n:Gs(n),om(this))}}function J(t){return Ie(t)?t.value:t}const Gx={get:(t,n,r)=>J(Reflect.get(t,n,r)),set:(t,n,r,o)=>{const a=t[n];return Ie(a)&&!Ie(r)?(a.value=r,!0):Reflect.set(t,n,r,o)}};function lm(t){return Lo(t)?t:new Proxy(t,Gx)}function Vx(t){const n=Ht(t)?new Array(t.length):{};for(const r in t)n[r]=$f(t,r);return n}class Kx{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}}function $f(t,n,r){const o=t[n];return Ie(o)?o:new Kx(t,n,r)}var am;class Xx{constructor(n,r,o,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[am]=!1,this._dirty=!0,this.effect=new Ef(n,()=>{this._dirty||(this._dirty=!0,om(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const n=le(this);return im(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}am="__v_isReadonly";function Yx(t,n,r=!1){let o,a;const u=Wt(t);return u?(o=t,a=Vn):(o=t.get,a=t.set),new Xx(o,a,u||!a,r)}function ui(t,n,r,o){let a;try{a=o?t(...o):t()}catch(u){al(u,n,r)}return a}function In(t,n,r,o){if(Wt(t)){const u=ui(t,n,r,o);return u&&Wv(u)&&u.catch(f=>{al(f,n,r)}),u}const a=[];for(let u=0;u<t.length;u++)a.push(In(t[u],n,r,o));return a}function al(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 m=0;m<g.length;m++)if(g[m](t,f,h)===!1)return}u=u.parent}const p=n.appContext.config.errorHandler;if(p){ui(p,null,10,[t,f,h]);return}}Jx(t,r,a,o)}function Jx(t,n,r,o=!0){console.error(t)}let Vs=!1,zu=!1;const tn=[];let sr=0;const Ao=[];let Lr=null,Ri=0;const cm=Promise.resolve();let Df=null;function cl(t){const n=Df||cm;return t?n.then(this?t.bind(this):t):n}function Zx(t){let n=sr+1,r=tn.length;for(;n<r;){const o=n+r>>>1;Ks(tn[o])<t?n=o+1:r=o}return n}function Rf(t){(!tn.length||!tn.includes(t,Vs&&t.allowRecurse?sr+1:sr))&&(t.id==null?tn.push(t):tn.splice(Zx(t.id),0,t),um())}function um(){!Vs&&!zu&&(zu=!0,Df=cm.then(dm))}function Qx(t){const n=tn.indexOf(t);n>sr&&tn.splice(n,1)}function fm(t){Ht(t)?Ao.push(...t):(!Lr||!Lr.includes(t,t.allowRecurse?Ri+1:Ri))&&Ao.push(t),um()}function Lp(t,n=Vs?sr+1:0){for(;n<tn.length;n++){const r=tn[n];r&&r.pre&&(tn.splice(n,1),n--,r())}}function hm(t){if(Ao.length){const n=[...new Set(Ao)];if(Ao.length=0,Lr){Lr.push(...n);return}for(Lr=n,Lr.sort((r,o)=>Ks(r)-Ks(o)),Ri=0;Ri<Lr.length;Ri++)Lr[Ri]();Lr=null,Ri=0}}const Ks=t=>t.id==null?1/0:t.id,t1=(t,n)=>{const r=Ks(t)-Ks(n);if(r===0){if(t.pre&&!n.pre)return-1;if(n.pre&&!t.pre)return 1}return r};function dm(t){zu=!1,Vs=!0,tn.sort(t1);const n=Vn;try{for(sr=0;sr<tn.length;sr++){const r=tn[sr];r&&r.active!==!1&&ui(r,null,14)}}finally{sr=0,tn.length=0,hm(),Vs=!1,Df=null,(tn.length||Ao.length)&&dm()}}function e1(t,n,...r){if(t.isUnmounted)return;const o=t.vnode.props||me;let a=r;const u=n.startsWith("update:"),f=u&&n.slice(7);if(f&&f in o){const m=`${f==="modelValue"?"model":f}Modifiers`,{number:b,trim:x}=o[m]||me;x&&(a=r.map(S=>S.trim())),b&&(a=r.map(js))}let h,p=o[h=gu(n)]||o[h=gu(fr(n))];!p&&u&&(p=o[h=gu(Yi(n))]),p&&In(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,In(g,t,6,a)}}function pm(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(!Wt(t)){const p=g=>{const m=pm(g,n,!0);m&&(h=!0,Xe(f,m))};!r&&n.mixins.length&&n.mixins.forEach(p),t.extends&&p(t.extends),t.mixins&&t.mixins.forEach(p)}return!u&&!h?(xe(t)&&o.set(t,null),null):(Ht(u)?u.forEach(p=>f[p]=null):Xe(f,u),xe(t)&&o.set(t,f),f)}function tc(t,n){return!t||!Xa(n)?!1:(n=n.slice(2).replace(/Once$/,""),Yt(t,n[0].toLowerCase()+n.slice(1))||Yt(t,Yi(n))||Yt(t,n))}let en=null,ec=null;function Ta(t){const n=en;return en=t,ec=t&&t.type.__scopeId||null,n}function gm(t){ec=t}function vm(){ec=null}const n1=t=>Jt;function Jt(t,n=en,r){if(!n||t._n)return t;const o=(...a)=>{o._d&&qp(-1);const u=Ta(n);let f;try{f=t(...a)}finally{Ta(u),o._d&&qp(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function vu(t){const{type:n,vnode:r,proxy:o,withProxy:a,props:u,propsOptions:[f],slots:h,attrs:p,emit:g,render:m,renderCache:b,data:x,setupState:S,ctx:M,inheritAttrs:A}=t;let E,C;const L=Ta(t);try{if(r.shapeFlag&4){const D=a||o;E=Un(m.call(D,D,b,u,S,x,M)),C=p}else{const D=n;E=Un(D.length>1?D(u,{attrs:p,slots:h,emit:g}):D(u,null)),C=n.props?p:i1(p)}}catch(D){Fs.length=0,al(D,t,1),E=Rt(Cn)}let z=E;if(C&&A!==!1){const D=Object.keys(C),{shapeFlag:G}=z;D.length&&G&7&&(f&&D.some(_f)&&(C=o1(C,f)),z=pi(z,C))}return r.dirs&&(z=pi(z),z.dirs=z.dirs?z.dirs.concat(r.dirs):r.dirs),r.transition&&(z.transition=r.transition),E=z,Ta(L),E}function r1(t){let n;for(let r=0;r<t.length;r++){const o=t[r];if(Ys(o)){if(o.type!==Cn||o.children==="v-if"){if(n)return;n=o}}else return}return n}const i1=t=>{let n;for(const r in t)(r==="class"||r==="style"||Xa(r))&&((n||(n={}))[r]=t[r]);return n},o1=(t,n)=>{const r={};for(const o in t)(!_f(o)||!(o.slice(9)in n))&&(r[o]=t[o]);return r};function s1(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?Ap(o,f,g):!!f;if(p&8){const m=n.dynamicProps;for(let b=0;b<m.length;b++){const x=m[b];if(f[x]!==o[x]&&!tc(g,x))return!0}}}else return(a||h)&&(!h||!h.$stable)?!0:o===f?!1:o?f?Ap(o,f,g):!0:!!f;return!1}function Ap(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]&&!tc(r,u))return!0}return!1}function zf({vnode:t,parent:n},r){for(;n&&n.subTree===t;)(t=n.vnode).el=r,n=n.parent}const l1=t=>t.__isSuspense,a1={name:"Suspense",__isSuspense:!0,process(t,n,r,o,a,u,f,h,p,g){t==null?u1(n,r,o,a,u,f,h,p,g):f1(t,n,r,o,a,f,h,p,g)},hydrate:h1,create:If,normalize:d1},c1=a1;function Xs(t,n){const r=t.props&&t.props[n];Wt(r)&&r()}function u1(t,n,r,o,a,u,f,h,p){const{p:g,o:{createElement:m}}=p,b=m("div"),x=t.suspense=If(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?(Xs(t,"onPending"),Xs(t,"onFallback"),g(null,t.ssFallback,n,r,o,null,u,f),Mo(x,t.ssFallback)):x.resolve()}function f1(t,n,r,o,a,u,f,h,{p,um:g,o:{createElement:m}}){const b=n.suspense=t.suspense;b.vnode=n,n.el=t.el;const x=n.ssContent,S=n.ssFallback,{activeBranch:M,pendingBranch:A,isInFallback:E,isHydrating:C}=b;if(A)b.pendingBranch=x,ar(x,A)?(p(A,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():E&&(p(M,S,r,o,a,null,u,f,h),Mo(b,S))):(b.pendingId++,C?(b.isHydrating=!1,b.activeBranch=A):g(A,a,b),b.deps=0,b.effects.length=0,b.hiddenContainer=m("div"),E?(p(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():(p(M,S,r,o,a,null,u,f,h),Mo(b,S))):M&&ar(x,M)?(p(M,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(M&&ar(x,M))p(M,x,r,o,a,b,u,f,h),Mo(b,x);else if(Xs(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:L,pendingId:z}=b;L>0?setTimeout(()=>{b.pendingId===z&&b.fallback(S)},L):L===0&&b.fallback(S)}}function If(t,n,r,o,a,u,f,h,p,g,m=!1){const{p:b,m:x,um:S,n:M,o:{parentNode:A,remove:E}}=g,C=js(t.props&&t.props.timeout),L={vnode:t,parent:n,parentComponent:r,isSVG:f,container:o,hiddenContainer:a,anchor:u,deps:0,pendingId:0,timeout:typeof C=="number"?C:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:m,isUnmounted:!1,effects:[],resolve(z=!1){const{vnode:D,activeBranch:G,pendingBranch:j,pendingId:it,effects:Q,parentComponent:dt,container:vt}=L;if(L.isHydrating)L.isHydrating=!1;else if(!z){const U=G&&j.transition&&j.transition.mode==="out-in";U&&(G.transition.afterLeave=()=>{it===L.pendingId&&x(j,vt,I,0)});let{anchor:I}=L;G&&(I=M(G),S(G,dt,L,!0)),U||x(j,vt,I,0)}Mo(L,j),L.pendingBranch=null,L.isInFallback=!1;let kt=L.parent,ft=!1;for(;kt;){if(kt.pendingBranch){kt.effects.push(...Q),ft=!0;break}kt=kt.parent}ft||fm(Q),L.effects=[],Xs(D,"onResolve")},fallback(z){if(!L.pendingBranch)return;const{vnode:D,activeBranch:G,parentComponent:j,container:it,isSVG:Q}=L;Xs(D,"onFallback");const dt=M(G),vt=()=>{!L.isInFallback||(b(null,z,it,dt,j,null,Q,h,p),Mo(L,z))},kt=z.transition&&z.transition.mode==="out-in";kt&&(G.transition.afterLeave=vt),L.isInFallback=!0,S(G,j,null,!0),kt||vt()},move(z,D,G){L.activeBranch&&x(L.activeBranch,z,D,G),L.container=z},next(){return L.activeBranch&&M(L.activeBranch)},registerDep(z,D){const G=!!L.pendingBranch;G&&L.deps++;const j=z.vnode.el;z.asyncDep.catch(it=>{al(it,z,0)}).then(it=>{if(z.isUnmounted||L.isUnmounted||L.pendingId!==z.suspenseId)return;z.asyncResolved=!0;const{vnode:Q}=z;ju(z,it,!1),j&&(Q.el=j);const dt=!j&&z.subTree.el;D(z,Q,A(j||z.subTree.el),j?null:M(z.subTree),L,f,p),dt&&E(dt),zf(z,Q.el),G&&--L.deps===0&&L.resolve()})},unmount(z,D){L.isUnmounted=!0,L.activeBranch&&S(L.activeBranch,r,z,D),L.pendingBranch&&S(L.pendingBranch,r,z,D)}};return L}function h1(t,n,r,o,a,u,f,h,p){const g=n.suspense=If(n,o,r,t.parentNode,document.createElement("div"),null,a,u,f,h,!0),m=p(t,g.pendingBranch=n.ssContent,r,g,u,f);return g.deps===0&&g.resolve(),m}function d1(t){const{shapeFlag:n,children:r}=t,o=n&32;t.ssContent=Mp(o?r.default:r),t.ssFallback=o?Mp(r.fallback):Rt(Cn)}function Mp(t){let n;if(Wt(t)){const r=Ro&&t._c;r&&(t._d=!1,ht()),t=t(),r&&(t._d=!0,n=zn,$m())}return Ht(t)&&(t=r1(t)),t=Un(t),n&&!t.dynamicChildren&&(t.dynamicChildren=n.filter(r=>r!==t)),t}function p1(t,n){n&&n.pendingBranch?Ht(t)?n.effects.push(...t):n.effects.push(t):fm(t)}function Mo(t,n){t.activeBranch=n;const{vnode:r,parentComponent:o}=t,a=r.el=n.el;o&&o.subTree===r&&(o.vnode.el=a,zf(o,a))}function da(t,n){if(Be){let r=Be.provides;const o=Be.parent&&Be.parent.provides;o===r&&(r=Be.provides=Object.create(o)),r[t]=n}}function fi(t,n,r=!1){const o=Be||en;if(o){const a=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(a&&t in a)return a[t];if(arguments.length>1)return r&&Wt(n)?n.call(o.proxy):n}}function Ff(t,n){return qf(t,null,n)}const Np={};function Fe(t,n,r){return qf(t,n,r)}function qf(t,n,{immediate:r,deep:o,flush:a,onTrack:u,onTrigger:f}=me){const h=Be;let p,g=!1,m=!1;if(Ie(t)?(p=()=>t.value,g=Ca(t)):Lo(t)?(p=()=>t,o=!0):Ht(t)?(m=!0,g=t.some(C=>Lo(C)||Ca(C)),p=()=>t.map(C=>{if(Ie(C))return C.value;if(Lo(C))return Ii(C);if(Wt(C))return ui(C,h,2)})):Wt(t)?n?p=()=>ui(t,h,2):p=()=>{if(!(h&&h.isUnmounted))return b&&b(),In(t,h,3,[x])}:p=Vn,n&&o){const C=p;p=()=>Ii(C())}let b,x=C=>{b=E.onStop=()=>{ui(C,h,4)}};if(Js)return x=Vn,n?r&&In(n,h,3,[p(),m?[]:void 0,x]):p(),Vn;let S=m?[]:Np;const M=()=>{if(!!E.active)if(n){const C=E.run();(o||g||(m?C.some((L,z)=>Us(L,S[z])):Us(C,S)))&&(b&&b(),In(n,h,3,[C,S===Np?void 0:S,x]),S=C)}else E.run()};M.allowRecurse=!!n;let A;a==="sync"?A=M:a==="post"?A=()=>xn(M,h&&h.suspense):(M.pre=!0,h&&(M.id=h.uid),A=()=>Rf(M));const E=new Ef(p,A);return n?r?M():S=E.run():a==="post"?xn(E.run.bind(E),h&&h.suspense):E.run(),()=>{E.stop(),h&&h.scope&&Sf(h.scope.effects,E)}}function g1(t,n,r){const o=this.proxy,a=Ue(t)?t.includes(".")?mm(o,t):()=>o[t]:t.bind(o,o);let u;Wt(n)?u=n:(u=n.handler,r=n);const f=Be;zo(this);const h=qf(a,u.bind(o),r);return f?zo(f):Wi(),h}function mm(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 Ii(t,n){if(!xe(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),Ie(t))Ii(t.value,n);else if(Ht(t))for(let r=0;r<t.length;r++)Ii(t[r],n);else if(Bv(t)||Eo(t))t.forEach(r=>{Ii(r,n)});else if(jv(t))for(const r in t)Ii(t[r],n);return t}function v1(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ul(()=>{t.isMounted=!0}),_m(()=>{t.isUnmounting=!0}),t}const Rn=[Function,Array],m1={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rn,onEnter:Rn,onAfterEnter:Rn,onEnterCancelled:Rn,onBeforeLeave:Rn,onLeave:Rn,onAfterLeave:Rn,onLeaveCancelled:Rn,onBeforeAppear:Rn,onAppear:Rn,onAfterAppear:Rn,onAppearCancelled:Rn},setup(t,{slots:n}){const r=oc(),o=v1();let a;return()=>{const u=n.default&&wm(n.default(),!0);if(!u||!u.length)return;let f=u[0];if(u.length>1){for(const A of u)if(A.type!==Cn){f=A;break}}const h=le(t),{mode:p}=h;if(o.isLeaving)return mu(f);const g=Op(f);if(!g)return mu(f);const m=Iu(g,h,o,r);Fu(g,m);const b=r.subTree,x=b&&Op(b);let S=!1;const{getTransitionKey:M}=g.type;if(M){const A=M();a===void 0?a=A:A!==a&&(a=A,S=!0)}if(x&&x.type!==Cn&&(!ar(g,x)||S)){const A=Iu(x,h,o,r);if(Fu(x,A),p==="out-in")return o.isLeaving=!0,A.afterLeave=()=>{o.isLeaving=!1,r.update()},mu(f);p==="in-out"&&g.type!==Cn&&(A.delayLeave=(E,C,L)=>{const z=bm(o,x);z[String(x.key)]=x,E._leaveCb=()=>{C(),E._leaveCb=void 0,delete m.delayedLeave},m.delayedLeave=L})}return f}}},ym=m1;function bm(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 Iu(t,n,r,o){const{appear:a,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:m,onBeforeLeave:b,onLeave:x,onAfterLeave:S,onLeaveCancelled:M,onBeforeAppear:A,onAppear:E,onAfterAppear:C,onAppearCancelled:L}=n,z=String(t.key),D=bm(r,t),G=(Q,dt)=>{Q&&In(Q,o,9,dt)},j=(Q,dt)=>{const vt=dt[1];G(Q,dt),Ht(Q)?Q.every(kt=>kt.length<=1)&&vt():Q.length<=1&&vt()},it={mode:u,persisted:f,beforeEnter(Q){let dt=h;if(!r.isMounted)if(a)dt=A||h;else return;Q._leaveCb&&Q._leaveCb(!0);const vt=D[z];vt&&ar(t,vt)&&vt.el._leaveCb&&vt.el._leaveCb(),G(dt,[Q])},enter(Q){let dt=p,vt=g,kt=m;if(!r.isMounted)if(a)dt=E||p,vt=C||g,kt=L||m;else return;let ft=!1;const U=Q._enterCb=I=>{ft||(ft=!0,I?G(kt,[Q]):G(vt,[Q]),it.delayedLeave&&it.delayedLeave(),Q._enterCb=void 0)};dt?j(dt,[Q,U]):U()},leave(Q,dt){const vt=String(t.key);if(Q._enterCb&&Q._enterCb(!0),r.isUnmounting)return dt();G(b,[Q]);let kt=!1;const ft=Q._leaveCb=U=>{kt||(kt=!0,dt(),U?G(M,[Q]):G(S,[Q]),Q._leaveCb=void 0,D[vt]===t&&delete D[vt])};D[vt]=t,x?j(x,[Q,ft]):ft()},clone(Q){return Iu(Q,n,r,o)}};return it}function mu(t){if(nc(t))return t=pi(t),t.children=null,t}function Op(t){return nc(t)?t.children?t.children[0]:void 0:t}function Fu(t,n){t.shapeFlag&6&&t.component?Fu(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 wm(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(wm(f.children,n,h))):(n||f.type!==Cn)&&o.push(h!=null?pi(f,{key:h}):f)}if(a>1)for(let u=0;u<o.length;u++)o[u].patchFlag=-2;return o}function oe(t){return Wt(t)?{setup:t,name:t.name}:t}const Is=t=>!!t.type.__asyncLoader,nc=t=>t.type.__isKeepAlive;function y1(t,n){xm(t,"a",n)}function b1(t,n){xm(t,"da",n)}function xm(t,n,r=Be){const o=t.__wdc||(t.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(rc(n,o,r),r){let a=r.parent;for(;a&&a.parent;)nc(a.parent.vnode)&&w1(o,n,r,a),a=a.parent}}function w1(t,n,r,o){const a=rc(n,t,o,!0);Hf(()=>{Sf(o[n],a)},r)}function rc(t,n,r=Be,o=!1){if(r){const a=r[t]||(r[t]=[]),u=n.__weh||(n.__weh=(...f)=>{if(r.isUnmounted)return;Vo(),zo(r);const h=In(n,r,t,f);return Wi(),Ko(),h});return o?a.unshift(u):a.push(u),u}}const Ir=t=>(n,r=Be)=>(!Js||t==="sp")&&rc(t,(...o)=>n(...o),r),x1=Ir("bm"),ul=Ir("m"),_1=Ir("bu"),S1=Ir("u"),_m=Ir("bum"),Hf=Ir("um"),k1=Ir("sp"),C1=Ir("rtg"),T1=Ir("rtc");function E1(t,n=Be){rc("ec",t,n)}function pn(t,n){const r=en;if(r===null)return t;const o=sc(r)||r.proxy,a=t.dirs||(t.dirs=[]);for(let u=0;u<n.length;u++){let[f,h,p,g=me]=n[u];Wt(f)&&(f={mounted:f,updated:f}),f.deep&&Ii(h),a.push({dir:f,instance:o,value:h,oldValue:void 0,arg:p,modifiers:g})}return t}function Mi(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&&(Vo(),In(p,r,8,[t.el,h,t,n]),Ko())}}const Sm="components",L1="directives";function Gi(t,n){return km(Sm,t,!0,n)||t}const A1=Symbol();function Ji(t){return km(L1,t)}function km(t,n,r=!0,o=!1){const a=en||Be;if(a){const u=a.type;if(t===Sm){const h=e_(u,!1);if(h&&(h===n||h===fr(n)||h===Za(fr(n))))return u}const f=Pp(a[t]||u[t],n)||Pp(a.appContext[t],n);return!f&&o?u:f}}function Pp(t,n){return t&&(t[n]||t[fr(n)]||t[Za(fr(n))])}function lr(t,n,r,o){let a;const u=r&&r[o];if(Ht(t)||Ue(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(xe(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 Kn(t,n,r={},o,a){if(en.isCE||en.parent&&Is(en.parent)&&en.parent.isCE)return Rt("slot",n==="default"?null:{name:n},o&&o());let u=t[n];u&&u._c&&(u._d=!1),ht();const f=u&&Cm(u(r)),h=ce(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 Cm(t){return t.some(n=>Ys(n)?!(n.type===Cn||n.type===ue&&!Cm(n.children)):!0)?t:null}const qu=t=>t?zm(t)?sc(t)||t.proxy:qu(t.parent):null,Ea=Xe(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=>qu(t.parent),$root:t=>qu(t.root),$emit:t=>t.emit,$options:t=>Bf(t),$forceUpdate:t=>t.f||(t.f=()=>Rf(t.update)),$nextTick:t=>t.n||(t.n=cl.bind(t.proxy)),$watch:t=>g1.bind(t)}),M1={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(o!==me&&Yt(o,n))return f[n]=1,o[n];if(a!==me&&Yt(a,n))return f[n]=2,a[n];if((g=t.propsOptions[0])&&Yt(g,n))return f[n]=3,u[n];if(r!==me&&Yt(r,n))return f[n]=4,r[n];Hu&&(f[n]=0)}}const m=Ea[n];let b,x;if(m)return n==="$attrs"&&On(t,"get",n),m(t);if((b=h.__cssModules)&&(b=b[n]))return b;if(r!==me&&Yt(r,n))return f[n]=4,r[n];if(x=p.config.globalProperties,Yt(x,n))return x[n]},set({_:t},n,r){const{data:o,setupState:a,ctx:u}=t;return a!==me&&Yt(a,n)?(a[n]=r,!0):o!==me&&Yt(o,n)?(o[n]=r,!0):Yt(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!==me&&Yt(t,f)||n!==me&&Yt(n,f)||(h=u[0])&&Yt(h,f)||Yt(o,f)||Yt(Ea,f)||Yt(a.config.globalProperties,f)},defineProperty(t,n,r){return r.get!=null?t._.accessCache[n]=0:Yt(r,"value")&&this.set(t,n,r.value,null),Reflect.defineProperty(t,n,r)}};let Hu=!0;function N1(t){const n=Bf(t),r=t.proxy,o=t.ctx;Hu=!1,n.beforeCreate&&$p(n.beforeCreate,t,"bc");const{data:a,computed:u,methods:f,watch:h,provide:p,inject:g,created:m,beforeMount:b,mounted:x,beforeUpdate:S,updated:M,activated:A,deactivated:E,beforeDestroy:C,beforeUnmount:L,destroyed:z,unmounted:D,render:G,renderTracked:j,renderTriggered:it,errorCaptured:Q,serverPrefetch:dt,expose:vt,inheritAttrs:kt,components:ft,directives:U,filters:I}=n;if(g&&O1(g,o,null,t.appContext.config.unwrapInjectedRef),f)for(const W in f){const et=f[W];Wt(et)&&(o[W]=et.bind(r))}if(a){const W=a.call(r,r);xe(W)&&(t.data=hr(W))}if(Hu=!0,u)for(const W in u){const et=u[W],wt=Wt(et)?et.bind(r,r):Wt(et.get)?et.get.bind(r,r):Vn,Lt=!Wt(et)&&Wt(et.set)?et.set.bind(r):Vn,qt=St({get:wt,set:Lt});Object.defineProperty(o,W,{enumerable:!0,configurable:!0,get:()=>qt.value,set:Bt=>qt.value=Bt})}if(h)for(const W in h)Tm(h[W],o,r,W);if(p){const W=Wt(p)?p.call(r):p;Reflect.ownKeys(W).forEach(et=>{da(et,W[et])})}m&&$p(m,t,"c");function H(W,et){Ht(et)?et.forEach(wt=>W(wt.bind(r))):et&&W(et.bind(r))}if(H(x1,b),H(ul,x),H(_1,S),H(S1,M),H(y1,A),H(b1,E),H(E1,Q),H(T1,j),H(C1,it),H(_m,L),H(Hf,D),H(k1,dt),Ht(vt))if(vt.length){const W=t.exposed||(t.exposed={});vt.forEach(et=>{Object.defineProperty(W,et,{get:()=>r[et],set:wt=>r[et]=wt})})}else t.exposed||(t.exposed={});G&&t.render===Vn&&(t.render=G),kt!=null&&(t.inheritAttrs=kt),ft&&(t.components=ft),U&&(t.directives=U)}function O1(t,n,r=Vn,o=!1){Ht(t)&&(t=Bu(t));for(const a in t){const u=t[a];let f;xe(u)?"default"in u?f=fi(u.from||a,u.default,!0):f=fi(u.from||a):f=fi(u),Ie(f)&&o?Object.defineProperty(n,a,{enumerable:!0,configurable:!0,get:()=>f.value,set:h=>f.value=h}):n[a]=f}}function $p(t,n,r){In(Ht(t)?t.map(o=>o.bind(n.proxy)):t.bind(n.proxy),n,r)}function Tm(t,n,r,o){const a=o.includes(".")?mm(r,o):()=>r[o];if(Ue(t)){const u=n[t];Wt(u)&&Fe(a,u)}else if(Wt(t))Fe(a,t.bind(r));else if(xe(t))if(Ht(t))t.forEach(u=>Tm(u,n,r,o));else{const u=Wt(t.handler)?t.handler.bind(r):n[t.handler];Wt(u)&&Fe(a,u,t)}}function Bf(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=>La(p,g,f,!0)),La(p,n,f)),xe(n)&&u.set(n,p),p}function La(t,n,r,o=!1){const{mixins:a,extends:u}=n;u&&La(t,u,r,!0),a&&a.forEach(f=>La(t,f,r,!0));for(const f in n)if(!(o&&f==="expose")){const h=P1[f]||r&&r[f];t[f]=h?h(t[f],n[f]):n[f]}return t}const P1={data:Dp,props:$i,emits:$i,methods:$i,computed:$i,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:$i,directives:$i,watch:D1,provide:Dp,inject:$1};function Dp(t,n){return n?t?function(){return Xe(Wt(t)?t.call(this,this):t,Wt(n)?n.call(this,this):n)}:n:t}function $1(t,n){return $i(Bu(t),Bu(n))}function Bu(t){if(Ht(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 $i(t,n){return t?Xe(Xe(Object.create(null),t),n):n}function D1(t,n){if(!t)return n;if(!n)return t;const r=Xe(Object.create(null),t);for(const o in n)r[o]=un(t[o],n[o]);return r}function R1(t,n,r,o=!1){const a={},u={};ka(u,ic,1),t.propsDefaults=Object.create(null),Em(t,n,a,u);for(const f in t.propsOptions[0])f in a||(a[f]=void 0);r?t.props=o?a:Ux(a):t.type.props?t.props=a:t.props=u,t.attrs=u}function z1(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 m=t.vnode.dynamicProps;for(let b=0;b<m.length;b++){let x=m[b];if(tc(t.emitsOptions,x))continue;const S=n[x];if(p)if(Yt(u,x))S!==u[x]&&(u[x]=S,g=!0);else{const M=fr(x);a[M]=Wu(p,h,M,S,t,!1)}else S!==u[x]&&(u[x]=S,g=!0)}}}else{Em(t,n,a,u)&&(g=!0);let m;for(const b in h)(!n||!Yt(n,b)&&((m=Yi(b))===b||!Yt(n,m)))&&(p?r&&(r[b]!==void 0||r[m]!==void 0)&&(a[b]=Wu(p,h,b,void 0,t,!0)):delete a[b]);if(u!==h)for(const b in u)(!n||!Yt(n,b)&&!0)&&(delete u[b],g=!0)}g&&$r(t,"set","$attrs")}function Em(t,n,r,o){const[a,u]=t.propsOptions;let f=!1,h;if(n)for(let p in n){if(fa(p))continue;const g=n[p];let m;a&&Yt(a,m=fr(p))?!u||!u.includes(m)?r[m]=g:(h||(h={}))[m]=g:tc(t.emitsOptions,p)||(!(p in o)||g!==o[p])&&(o[p]=g,f=!0)}if(u){const p=le(r),g=h||me;for(let m=0;m<u.length;m++){const b=u[m];r[b]=Wu(a,p,b,g[b],t,!Yt(g,b))}}return f}function Wu(t,n,r,o,a,u){const f=t[r];if(f!=null){const h=Yt(f,"default");if(h&&o===void 0){const p=f.default;if(f.type!==Function&&Wt(p)){const{propsDefaults:g}=a;r in g?o=g[r]:(zo(a),o=g[r]=p.call(null,n),Wi())}else o=p}f[0]&&(u&&!h?o=!1:f[1]&&(o===""||o===Yi(r))&&(o=!0))}return o}function Lm(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(!Wt(t)){const m=b=>{p=!0;const[x,S]=Lm(b,n,!0);Xe(f,x),S&&h.push(...S)};!r&&n.mixins.length&&n.mixins.forEach(m),t.extends&&m(t.extends),t.mixins&&t.mixins.forEach(m)}if(!u&&!p)return xe(t)&&o.set(t,To),To;if(Ht(u))for(let m=0;m<u.length;m++){const b=fr(u[m]);Rp(b)&&(f[b]=me)}else if(u)for(const m in u){const b=fr(m);if(Rp(b)){const x=u[m],S=f[b]=Ht(x)||Wt(x)?{type:x}:x;if(S){const M=Fp(Boolean,S.type),A=Fp(String,S.type);S[0]=M>-1,S[1]=A<0||M<A,(M>-1||Yt(S,"default"))&&h.push(b)}}}const g=[f,h];return xe(t)&&o.set(t,g),g}function Rp(t){return t[0]!=="$"}function zp(t){const n=t&&t.toString().match(/^\s*function (\w+)/);return n?n[1]:t===null?"null":""}function Ip(t,n){return zp(t)===zp(n)}function Fp(t,n){return Ht(n)?n.findIndex(r=>Ip(r,t)):Wt(n)&&Ip(n,t)?0:-1}const Am=t=>t[0]==="_"||t==="$stable",Wf=t=>Ht(t)?t.map(Un):[Un(t)],I1=(t,n,r)=>{if(n._n)return n;const o=Jt((...a)=>Wf(n(...a)),r);return o._c=!1,o},Mm=(t,n,r)=>{const o=t._ctx;for(const a in t){if(Am(a))continue;const u=t[a];if(Wt(u))n[a]=I1(a,u,o);else if(u!=null){const f=Wf(u);n[a]=()=>f}}},Nm=(t,n)=>{const r=Wf(n);t.slots.default=()=>r},F1=(t,n)=>{if(t.vnode.shapeFlag&32){const r=n._;r?(t.slots=le(n),ka(n,"_",r)):Mm(n,t.slots={})}else t.slots={},n&&Nm(t,n);ka(t.slots,ic,1)},q1=(t,n,r)=>{const{vnode:o,slots:a}=t;let u=!0,f=me;if(o.shapeFlag&32){const h=n._;h?r&&h===1?u=!1:(Xe(a,n),!r&&h===1&&delete a._):(u=!n.$stable,Mm(n,a)),f=n}else n&&(Nm(t,n),f={default:1});if(u)for(const h in a)!Am(h)&&!(h in f)&&delete a[h]};function Om(){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 H1=0;function B1(t,n){return function(o,a=null){Wt(o)||(o=Object.assign({},o)),a!=null&&!xe(a)&&(a=null);const u=Om(),f=new Set;let h=!1;const p=u.app={_uid:H1++,_component:o,_props:a,_container:null,_context:u,_instance:null,version:o_,get config(){return u.config},set config(g){},use(g,...m){return f.has(g)||(g&&Wt(g.install)?(f.add(g),g.install(p,...m)):Wt(g)&&(f.add(g),g(p,...m))),p},mixin(g){return u.mixins.includes(g)||u.mixins.push(g),p},component(g,m){return m?(u.components[g]=m,p):u.components[g]},directive(g,m){return m?(u.directives[g]=m,p):u.directives[g]},mount(g,m,b){if(!h){const x=Rt(o,a);return x.appContext=u,m&&n?n(x,g):t(x,g,b),h=!0,p._container=g,g.__vue_app__=p,sc(x.component)||x.component.proxy}},unmount(){h&&(t(null,p._container),delete p._container.__vue_app__)},provide(g,m){return u.provides[g]=m,p}};return p}}function Uu(t,n,r,o,a=!1){if(Ht(t)){t.forEach((x,S)=>Uu(x,n&&(Ht(n)?n[S]:n),r,o,a));return}if(Is(o)&&!a)return;const u=o.shapeFlag&4?sc(o.component)||o.component.proxy:o.el,f=a?null:u,{i:h,r:p}=t,g=n&&n.r,m=h.refs===me?h.refs={}:h.refs,b=h.setupState;if(g!=null&&g!==p&&(Ue(g)?(m[g]=null,Yt(b,g)&&(b[g]=null)):Ie(g)&&(g.value=null)),Wt(p))ui(p,h,12,[f,m]);else{const x=Ue(p),S=Ie(p);if(x||S){const M=()=>{if(t.f){const A=x?Yt(b,p)?b[p]:m[p]:p.value;a?Ht(A)&&Sf(A,u):Ht(A)?A.includes(u)||A.push(u):x?(m[p]=[u],Yt(b,p)&&(b[p]=m[p])):(p.value=[u],t.k&&(m[t.k]=p.value))}else x?(m[p]=f,Yt(b,p)&&(b[p]=f)):S&&(p.value=f,t.k&&(m[t.k]=f))};f?(M.id=-1,xn(M,r)):M()}}}const xn=p1;function W1(t){return U1(t)}function U1(t,n){const r=px();r.__VUE__=!0;const{insert:o,remove:a,patchProp:u,createElement:f,createText:h,createComment:p,setText:g,setElementText:m,parentNode:b,nextSibling:x,setScopeId:S=Vn,insertStaticContent:M}=t,A=(O,F,Y,nt=null,ot=null,pt=null,lt=!1,gt=null,xt=!!F.dynamicChildren)=>{if(O===F)return;O&&!ar(O,F)&&(nt=V(O),Bt(O,ot,pt,!0),O=null),F.patchFlag===-2&&(xt=!1,F.dynamicChildren=null);const{type:at,ref:$t,shapeFlag:Nt}=F;switch(at){case Uf:E(O,F,Y,nt);break;case Cn:C(O,F,Y,nt);break;case yu:O==null&&L(F,Y,nt,lt);break;case ue:ft(O,F,Y,nt,ot,pt,lt,gt,xt);break;default:Nt&1?G(O,F,Y,nt,ot,pt,lt,gt,xt):Nt&6?U(O,F,Y,nt,ot,pt,lt,gt,xt):(Nt&64||Nt&128)&&at.process(O,F,Y,nt,ot,pt,lt,gt,xt,Ct)}$t!=null&&ot&&Uu($t,O&&O.ref,pt,F||O,!F)},E=(O,F,Y,nt)=>{if(O==null)o(F.el=h(F.children),Y,nt);else{const ot=F.el=O.el;F.children!==O.children&&g(ot,F.children)}},C=(O,F,Y,nt)=>{O==null?o(F.el=p(F.children||""),Y,nt):F.el=O.el},L=(O,F,Y,nt)=>{[O.el,O.anchor]=M(O.children,F,Y,nt,O.el,O.anchor)},z=({el:O,anchor:F},Y,nt)=>{let ot;for(;O&&O!==F;)ot=x(O),o(O,Y,nt),O=ot;o(F,Y,nt)},D=({el:O,anchor:F})=>{let Y;for(;O&&O!==F;)Y=x(O),a(O),O=Y;a(F)},G=(O,F,Y,nt,ot,pt,lt,gt,xt)=>{lt=lt||F.type==="svg",O==null?j(F,Y,nt,ot,pt,lt,gt,xt):dt(O,F,ot,pt,lt,gt,xt)},j=(O,F,Y,nt,ot,pt,lt,gt)=>{let xt,at;const{type:$t,props:Nt,shapeFlag:Pt,transition:zt,dirs:jt}=O;if(xt=O.el=f(O.type,pt,Nt&&Nt.is,Nt),Pt&8?m(xt,O.children):Pt&16&&Q(O.children,xt,null,nt,ot,pt&&$t!=="foreignObject",lt,gt),jt&&Mi(O,null,nt,"created"),Nt){for(const Qt in Nt)Qt!=="value"&&!fa(Qt)&&u(xt,Qt,null,Nt[Qt],pt,O.children,nt,ot,tt);"value"in Nt&&u(xt,"value",null,Nt.value),(at=Nt.onVnodeBeforeMount)&&ir(at,nt,O)}it(xt,O,O.scopeId,lt,nt),jt&&Mi(O,null,nt,"beforeMount");const te=(!ot||ot&&!ot.pendingBranch)&&zt&&!zt.persisted;te&&zt.beforeEnter(xt),o(xt,F,Y),((at=Nt&&Nt.onVnodeMounted)||te||jt)&&xn(()=>{at&&ir(at,nt,O),te&&zt.enter(xt),jt&&Mi(O,null,nt,"mounted")},ot)},it=(O,F,Y,nt,ot)=>{if(Y&&S(O,Y),nt)for(let pt=0;pt<nt.length;pt++)S(O,nt[pt]);if(ot){let pt=ot.subTree;if(F===pt){const lt=ot.vnode;it(O,lt,lt.scopeId,lt.slotScopeIds,ot.parent)}}},Q=(O,F,Y,nt,ot,pt,lt,gt,xt=0)=>{for(let at=xt;at<O.length;at++){const $t=O[at]=gt?ri(O[at]):Un(O[at]);A(null,$t,F,Y,nt,ot,pt,lt,gt)}},dt=(O,F,Y,nt,ot,pt,lt)=>{const gt=F.el=O.el;let{patchFlag:xt,dynamicChildren:at,dirs:$t}=F;xt|=O.patchFlag&16;const Nt=O.props||me,Pt=F.props||me;let zt;Y&&Ni(Y,!1),(zt=Pt.onVnodeBeforeUpdate)&&ir(zt,Y,F,O),$t&&Mi(F,O,Y,"beforeUpdate"),Y&&Ni(Y,!0);const jt=ot&&F.type!=="foreignObject";if(at?vt(O.dynamicChildren,at,gt,Y,nt,jt,pt):lt||et(O,F,gt,null,Y,nt,jt,pt,!1),xt>0){if(xt&16)kt(gt,F,Nt,Pt,Y,nt,ot);else if(xt&2&&Nt.class!==Pt.class&&u(gt,"class",null,Pt.class,ot),xt&4&&u(gt,"style",Nt.style,Pt.style,ot),xt&8){const te=F.dynamicProps;for(let Qt=0;Qt<te.length;Qt++){const se=te[Qt],Xt=Nt[se],mn=Pt[se];(mn!==Xt||se==="value")&&u(gt,se,Xt,mn,ot,O.children,Y,nt,tt)}}xt&1&&O.children!==F.children&&m(gt,F.children)}else!lt&&at==null&&kt(gt,F,Nt,Pt,Y,nt,ot);((zt=Pt.onVnodeUpdated)||$t)&&xn(()=>{zt&&ir(zt,Y,F,O),$t&&Mi(F,O,Y,"updated")},nt)},vt=(O,F,Y,nt,ot,pt,lt)=>{for(let gt=0;gt<F.length;gt++){const xt=O[gt],at=F[gt],$t=xt.el&&(xt.type===ue||!ar(xt,at)||xt.shapeFlag&70)?b(xt.el):Y;A(xt,at,$t,null,nt,ot,pt,lt,!0)}},kt=(O,F,Y,nt,ot,pt,lt)=>{if(Y!==nt){if(Y!==me)for(const gt in Y)!fa(gt)&&!(gt in nt)&&u(O,gt,Y[gt],null,lt,F.children,ot,pt,tt);for(const gt in nt){if(fa(gt))continue;const xt=nt[gt],at=Y[gt];xt!==at&>!=="value"&&u(O,gt,at,xt,lt,F.children,ot,pt,tt)}"value"in nt&&u(O,"value",Y.value,nt.value)}},ft=(O,F,Y,nt,ot,pt,lt,gt,xt)=>{const at=F.el=O?O.el:h(""),$t=F.anchor=O?O.anchor:h("");let{patchFlag:Nt,dynamicChildren:Pt,slotScopeIds:zt}=F;zt&&(gt=gt?gt.concat(zt):zt),O==null?(o(at,Y,nt),o($t,Y,nt),Q(F.children,Y,$t,ot,pt,lt,gt,xt)):Nt>0&&Nt&64&&Pt&&O.dynamicChildren?(vt(O.dynamicChildren,Pt,Y,ot,pt,lt,gt),(F.key!=null||ot&&F===ot.subTree)&&Pm(O,F,!0)):et(O,F,Y,$t,ot,pt,lt,gt,xt)},U=(O,F,Y,nt,ot,pt,lt,gt,xt)=>{F.slotScopeIds=gt,O==null?F.shapeFlag&512?ot.ctx.activate(F,Y,nt,lt,xt):I(F,Y,nt,ot,pt,lt,xt):k(O,F,xt)},I=(O,F,Y,nt,ot,pt,lt)=>{const gt=O.component=J1(O,nt,ot);if(nc(O)&&(gt.ctx.renderer=Ct),Z1(gt),gt.asyncDep){if(ot&&ot.registerDep(gt,H),!O.el){const xt=gt.subTree=Rt(Cn);C(null,xt,F,Y)}return}H(gt,O,F,Y,ot,pt,lt)},k=(O,F,Y)=>{const nt=F.component=O.component;if(s1(O,F,Y))if(nt.asyncDep&&!nt.asyncResolved){W(nt,F,Y);return}else nt.next=F,Qx(nt.update),nt.update();else F.el=O.el,nt.vnode=F},H=(O,F,Y,nt,ot,pt,lt)=>{const gt=()=>{if(O.isMounted){let{next:$t,bu:Nt,u:Pt,parent:zt,vnode:jt}=O,te=$t,Qt;Ni(O,!1),$t?($t.el=jt.el,W(O,$t,lt)):$t=jt,Nt&&ha(Nt),(Qt=$t.props&&$t.props.onVnodeBeforeUpdate)&&ir(Qt,zt,$t,jt),Ni(O,!0);const se=vu(O),Xt=O.subTree;O.subTree=se,A(Xt,se,b(Xt.el),V(Xt),O,ot,pt),$t.el=se.el,te===null&&zf(O,se.el),Pt&&xn(Pt,ot),(Qt=$t.props&&$t.props.onVnodeUpdated)&&xn(()=>ir(Qt,zt,$t,jt),ot)}else{let $t;const{el:Nt,props:Pt}=F,{bm:zt,m:jt,parent:te}=O,Qt=Is(F);if(Ni(O,!1),zt&&ha(zt),!Qt&&($t=Pt&&Pt.onVnodeBeforeMount)&&ir($t,te,F),Ni(O,!0),Nt&&Et){const se=()=>{O.subTree=vu(O),Et(Nt,O.subTree,O,ot,null)};Qt?F.type.__asyncLoader().then(()=>!O.isUnmounted&&se()):se()}else{const se=O.subTree=vu(O);A(null,se,Y,nt,O,ot,pt),F.el=se.el}if(jt&&xn(jt,ot),!Qt&&($t=Pt&&Pt.onVnodeMounted)){const se=F;xn(()=>ir($t,te,se),ot)}(F.shapeFlag&256||te&&Is(te.vnode)&&te.vnode.shapeFlag&256)&&O.a&&xn(O.a,ot),O.isMounted=!0,F=Y=nt=null}},xt=O.effect=new Ef(gt,()=>Rf(at),O.scope),at=O.update=()=>xt.run();at.id=O.uid,Ni(O,!0),at()},W=(O,F,Y)=>{F.component=O;const nt=O.vnode.props;O.vnode=F,O.next=null,z1(O,F.props,nt,Y),q1(O,F.children,Y),Vo(),Lp(),Ko()},et=(O,F,Y,nt,ot,pt,lt,gt,xt=!1)=>{const at=O&&O.children,$t=O?O.shapeFlag:0,Nt=F.children,{patchFlag:Pt,shapeFlag:zt}=F;if(Pt>0){if(Pt&128){Lt(at,Nt,Y,nt,ot,pt,lt,gt,xt);return}else if(Pt&256){wt(at,Nt,Y,nt,ot,pt,lt,gt,xt);return}}zt&8?($t&16&&tt(at,ot,pt),Nt!==at&&m(Y,Nt)):$t&16?zt&16?Lt(at,Nt,Y,nt,ot,pt,lt,gt,xt):tt(at,ot,pt,!0):($t&8&&m(Y,""),zt&16&&Q(Nt,Y,nt,ot,pt,lt,gt,xt))},wt=(O,F,Y,nt,ot,pt,lt,gt,xt)=>{O=O||To,F=F||To;const at=O.length,$t=F.length,Nt=Math.min(at,$t);let Pt;for(Pt=0;Pt<Nt;Pt++){const zt=F[Pt]=xt?ri(F[Pt]):Un(F[Pt]);A(O[Pt],zt,Y,null,ot,pt,lt,gt,xt)}at>$t?tt(O,ot,pt,!0,!1,Nt):Q(F,Y,nt,ot,pt,lt,gt,xt,Nt)},Lt=(O,F,Y,nt,ot,pt,lt,gt,xt)=>{let at=0;const $t=F.length;let Nt=O.length-1,Pt=$t-1;for(;at<=Nt&&at<=Pt;){const zt=O[at],jt=F[at]=xt?ri(F[at]):Un(F[at]);if(ar(zt,jt))A(zt,jt,Y,null,ot,pt,lt,gt,xt);else break;at++}for(;at<=Nt&&at<=Pt;){const zt=O[Nt],jt=F[Pt]=xt?ri(F[Pt]):Un(F[Pt]);if(ar(zt,jt))A(zt,jt,Y,null,ot,pt,lt,gt,xt);else break;Nt--,Pt--}if(at>Nt){if(at<=Pt){const zt=Pt+1,jt=zt<$t?F[zt].el:nt;for(;at<=Pt;)A(null,F[at]=xt?ri(F[at]):Un(F[at]),Y,jt,ot,pt,lt,gt,xt),at++}}else if(at>Pt)for(;at<=Nt;)Bt(O[at],ot,pt,!0),at++;else{const zt=at,jt=at,te=new Map;for(at=jt;at<=Pt;at++){const be=F[at]=xt?ri(F[at]):Un(F[at]);be.key!=null&&te.set(be.key,at)}let Qt,se=0;const Xt=Pt-jt+1;let mn=!1,En=0;const qe=new Array(Xt);for(at=0;at<Xt;at++)qe[at]=0;for(at=zt;at<=Nt;at++){const be=O[at];if(se>=Xt){Bt(be,ot,pt,!0);continue}let nn;if(be.key!=null)nn=te.get(be.key);else for(Qt=jt;Qt<=Pt;Qt++)if(qe[Qt-jt]===0&&ar(be,F[Qt])){nn=Qt;break}nn===void 0?Bt(be,ot,pt,!0):(qe[nn-jt]=at+1,nn>=En?En=nn:mn=!0,A(be,F[nn],Y,null,ot,pt,lt,gt,xt),se++)}const Zi=mn?j1(qe):To;for(Qt=Zi.length-1,at=Xt-1;at>=0;at--){const be=jt+at,nn=F[be],bt=be+1<$t?F[be+1].el:nt;qe[at]===0?A(null,nn,Y,bt,ot,pt,lt,gt,xt):mn&&(Qt<0||at!==Zi[Qt]?qt(nn,Y,bt,2):Qt--)}}},qt=(O,F,Y,nt,ot=null)=>{const{el:pt,type:lt,transition:gt,children:xt,shapeFlag:at}=O;if(at&6){qt(O.component.subTree,F,Y,nt);return}if(at&128){O.suspense.move(F,Y,nt);return}if(at&64){lt.move(O,F,Y,Ct);return}if(lt===ue){o(pt,F,Y);for(let Nt=0;Nt<xt.length;Nt++)qt(xt[Nt],F,Y,nt);o(O.anchor,F,Y);return}if(lt===yu){z(O,F,Y);return}if(nt!==2&&at&1&>)if(nt===0)gt.beforeEnter(pt),o(pt,F,Y),xn(()=>gt.enter(pt),ot);else{const{leave:Nt,delayLeave:Pt,afterLeave:zt}=gt,jt=()=>o(pt,F,Y),te=()=>{Nt(pt,()=>{jt(),zt&&zt()})};Pt?Pt(pt,jt,te):te()}else o(pt,F,Y)},Bt=(O,F,Y,nt=!1,ot=!1)=>{const{type:pt,props:lt,ref:gt,children:xt,dynamicChildren:at,shapeFlag:$t,patchFlag:Nt,dirs:Pt}=O;if(gt!=null&&Uu(gt,null,Y,O,!0),$t&256){F.ctx.deactivate(O);return}const zt=$t&1&&Pt,jt=!Is(O);let te;if(jt&&(te=lt&<.onVnodeBeforeUnmount)&&ir(te,F,O),$t&6)Z(O.component,Y,nt);else{if($t&128){O.suspense.unmount(Y,nt);return}zt&&Mi(O,null,F,"beforeUnmount"),$t&64?O.type.remove(O,F,Y,ot,Ct,nt):at&&(pt!==ue||Nt>0&&Nt&64)?tt(at,F,Y,!1,!0):(pt===ue&&Nt&384||!ot&&$t&16)&&tt(xt,F,Y),nt&&Gt(O)}(jt&&(te=lt&<.onVnodeUnmounted)||zt)&&xn(()=>{te&&ir(te,F,O),zt&&Mi(O,null,F,"unmounted")},Y)},Gt=O=>{const{type:F,el:Y,anchor:nt,transition:ot}=O;if(F===ue){ne(Y,nt);return}if(F===yu){D(O);return}const pt=()=>{a(Y),ot&&!ot.persisted&&ot.afterLeave&&ot.afterLeave()};if(O.shapeFlag&1&&ot&&!ot.persisted){const{leave:lt,delayLeave:gt}=ot,xt=()=>lt(Y,pt);gt?gt(O.el,pt,xt):xt()}else pt()},ne=(O,F)=>{let Y;for(;O!==F;)Y=x(O),a(O),O=Y;a(F)},Z=(O,F,Y)=>{const{bum:nt,scope:ot,update:pt,subTree:lt,um:gt}=O;nt&&ha(nt),ot.stop(),pt&&(pt.active=!1,Bt(lt,O,F,Y)),gt&&xn(gt,F),xn(()=>{O.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve())},tt=(O,F,Y,nt=!1,ot=!1,pt=0)=>{for(let lt=pt;lt<O.length;lt++)Bt(O[lt],F,Y,nt,ot)},V=O=>O.shapeFlag&6?V(O.component.subTree):O.shapeFlag&128?O.suspense.next():x(O.anchor||O.el),st=(O,F,Y)=>{O==null?F._vnode&&Bt(F._vnode,null,null,!0):A(F._vnode||null,O,F,null,null,null,Y),Lp(),hm(),F._vnode=O},Ct={p:A,um:Bt,m:qt,r:Gt,mt:I,mc:Q,pc:et,pbc:vt,n:V,o:t};let de,Et;return n&&([de,Et]=n(Ct)),{render:st,hydrate:de,createApp:B1(st,de)}}function Ni({effect:t,update:n},r){t.allowRecurse=n.allowRecurse=r}function Pm(t,n,r=!1){const o=t.children,a=n.children;if(Ht(o)&&Ht(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]=ri(a[u]),h.el=f.el),r||Pm(f,h))}}function j1(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 G1=t=>t.__isTeleport,ue=Symbol(void 0),Uf=Symbol(void 0),Cn=Symbol(void 0),yu=Symbol(void 0),Fs=[];let zn=null;function ht(t=!1){Fs.push(zn=t?null:[])}function $m(){Fs.pop(),zn=Fs[Fs.length-1]||null}let Ro=1;function qp(t){Ro+=t}function Dm(t){return t.dynamicChildren=Ro>0?zn||To:null,$m(),Ro>0&&zn&&zn.push(t),t}function Mt(t,n,r,o,a,u){return Dm(ut(t,n,r,o,a,u,!0))}function ce(t,n,r,o,a){return Dm(Rt(t,n,r,o,a,!0))}function Ys(t){return t?t.__v_isVNode===!0:!1}function ar(t,n){return t.type===n.type&&t.key===n.key}const ic="__vInternal",Rm=({key:t})=>t!=null?t:null,pa=({ref:t,ref_key:n,ref_for:r})=>t!=null?Ue(t)||Ie(t)||Wt(t)?{i:en,r:t,k:n,f:!!r}:t:null;function ut(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&&Rm(n),ref:n&&pa(n),scopeId:ec,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};return h?(jf(p,r),u&128&&t.normalize(p)):r&&(p.shapeFlag|=Ue(r)?8:16),Ro>0&&!f&&zn&&(p.patchFlag>0||u&6)&&p.patchFlag!==32&&zn.push(p),p}const Rt=V1;function V1(t,n=null,r=null,o=0,a=null,u=!1){if((!t||t===A1)&&(t=Cn),Ys(t)){const h=pi(t,n,!0);return r&&jf(h,r),Ro>0&&!u&&zn&&(h.shapeFlag&6?zn[zn.indexOf(t)]=h:zn.push(h)),h.patchFlag|=-2,h}if(n_(t)&&(t=t.__vccOpts),n){n=K1(n);let{class:h,style:p}=n;h&&!Ue(h)&&(n.class=ge(h)),xe(p)&&(rm(p)&&!Ht(p)&&(p=Xe({},p)),n.style=kn(p))}const f=Ue(t)?1:l1(t)?128:G1(t)?64:xe(t)?4:Wt(t)?2:0;return ut(t,n,r,o,a,f,u,!0)}function K1(t){return t?rm(t)||ic in t?Xe({},t):t:null}function pi(t,n,r=!1){const{props:o,ref:a,patchFlag:u,children:f}=t,h=n?hi(o||{},n):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&Rm(h),ref:n&&n.ref?r&&a?Ht(a)?a.concat(pa(n)):[a,pa(n)]:pa(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&&pi(t.ssContent),ssFallback:t.ssFallback&&pi(t.ssFallback),el:t.el,anchor:t.anchor}}function fn(t=" ",n=0){return Rt(Uf,null,t,n)}function ye(t="",n=!1){return n?(ht(),ce(Cn,null,t)):Rt(Cn,null,t)}function Un(t){return t==null||typeof t=="boolean"?Rt(Cn):Ht(t)?Rt(ue,null,t.slice()):typeof t=="object"?ri(t):Rt(Uf,null,String(t))}function ri(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:pi(t)}function jf(t,n){let r=0;const{shapeFlag:o}=t;if(n==null)n=null;else if(Ht(n))r=16;else if(typeof n=="object")if(o&65){const a=n.default;a&&(a._c&&(a._d=!1),jf(t,a()),a._c&&(a._d=!0));return}else{r=32;const a=n._;!a&&!(ic in n)?n._ctx=en:a===3&&en&&(en.slots._===1?n._=1:(n._=2,t.patchFlag|=1024))}else Wt(n)?(n={default:n,_ctx:en},r=32):(n=String(n),o&64?(r=16,n=[fn(n)]):r=8);t.children=n,t.shapeFlag|=r}function hi(...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=ge([n.class,o.class]));else if(a==="style")n.style=kn([n.style,o.style]);else if(Xa(a)){const u=n[a],f=o[a];f&&u!==f&&!(Ht(u)&&u.includes(f))&&(n[a]=u?[].concat(u,f):f)}else a!==""&&(n[a]=o[a])}return n}function ir(t,n,r,o=null){In(t,n,7,[r,o])}const X1=Om();let Y1=0;function J1(t,n,r){const o=t.type,a=(n?n.appContext:t.appContext)||X1,u={uid:Y1++,vnode:t,type:o,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new gx(!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:Lm(o,a),emitsOptions:pm(o,a),emit:null,emitted:null,propsDefaults:me,inheritAttrs:o.inheritAttrs,ctx:me,data:me,props:me,attrs:me,slots:me,refs:me,setupState:me,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return u.ctx={_:u},u.root=n?n.root:u,u.emit=e1.bind(null,u),t.ce&&t.ce(u),u}let Be=null;const oc=()=>Be||en,zo=t=>{Be=t,t.scope.on()},Wi=()=>{Be&&Be.scope.off(),Be=null};function zm(t){return t.vnode.shapeFlag&4}let Js=!1;function Z1(t,n=!1){Js=n;const{props:r,children:o}=t.vnode,a=zm(t);R1(t,r,a,n),F1(t,o);const u=a?Q1(t,n):void 0;return Js=!1,u}function Q1(t,n){const r=t.type;t.accessCache=Object.create(null),t.proxy=Of(new Proxy(t.ctx,M1));const{setup:o}=r;if(o){const a=t.setupContext=o.length>1?Fm(t):null;zo(t),Vo();const u=ui(o,t,0,[t.props,a]);if(Ko(),Wi(),Wv(u)){if(u.then(Wi,Wi),n)return u.then(f=>{ju(t,f,n)}).catch(f=>{al(f,t,0)});t.asyncDep=u}else ju(t,u,n)}else Im(t,n)}function ju(t,n,r){Wt(n)?t.type.__ssrInlineRender?t.ssrRender=n:t.render=n:xe(n)&&(t.setupState=lm(n)),Im(t,r)}let Hp;function Im(t,n,r){const o=t.type;if(!t.render){if(!n&&Hp&&!o.render){const a=o.template||Bf(t).template;if(a){const{isCustomElement:u,compilerOptions:f}=t.appContext.config,{delimiters:h,compilerOptions:p}=o,g=Xe(Xe({isCustomElement:u,delimiters:h},f),p);o.render=Hp(a,g)}}t.render=o.render||Vn}zo(t),Vo(),N1(t),Ko(),Wi()}function t_(t){return new Proxy(t.attrs,{get(n,r){return On(t,"get","$attrs"),n[r]}})}function Fm(t){const n=o=>{t.exposed=o||{}};let r;return{get attrs(){return r||(r=t_(t))},slots:t.slots,emit:t.emit,expose:n}}function sc(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(lm(Of(t.exposed)),{get(n,r){if(r in n)return n[r];if(r in Ea)return Ea[r](t)}}))}function e_(t,n=!0){return Wt(t)?t.displayName||t.name:t.name||n&&t.__name}function n_(t){return Wt(t)&&"__vccOpts"in t}const St=(t,n)=>Yx(t,n,Js);function r_(){return i_().attrs}function i_(){const t=oc();return t.setupContext||(t.setupContext=Fm(t))}function fl(t,n,r){const o=arguments.length;return o===2?xe(n)&&!Ht(n)?Ys(n)?Rt(t,null,[n]):Rt(t,n):Rt(t,null,n):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Ys(r)&&(r=[r]),Rt(t,n,r))}const o_="3.2.41",s_="http://www.w3.org/2000/svg",zi=typeof document<"u"?document:null,Bp=zi&&zi.createElement("template"),l_={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?zi.createElementNS(s_,t):zi.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&a.setAttribute("multiple",o.multiple),a},createText:t=>zi.createTextNode(t),createComment:t=>zi.createComment(t),setText:(t,n)=>{t.nodeValue=n},setElementText:(t,n)=>{t.textContent=n},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>zi.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{Bp.innerHTML=o?`<svg>${t}</svg>`:t;const h=Bp.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]}};function a_(t,n,r){const o=t._vtc;o&&(n=(n?[n,...o]:[...o]).join(" ")),n==null?t.removeAttribute("class"):r?t.setAttribute("class",n):t.className=n}function c_(t,n,r){const o=t.style,a=Ue(r);if(r&&!a){for(const u in r)Gu(o,u,r[u]);if(n&&!Ue(n))for(const u in n)r[u]==null&&Gu(o,u,"")}else{const u=o.display;a?n!==r&&(o.cssText=r):n&&t.removeAttribute("style"),"_vod"in t&&(o.display=u)}}const Wp=/\s*!important$/;function Gu(t,n,r){if(Ht(r))r.forEach(o=>Gu(t,n,o));else if(r==null&&(r=""),n.startsWith("--"))t.setProperty(n,r);else{const o=u_(t,n);Wp.test(r)?t.setProperty(Yi(o),r.replace(Wp,""),"important"):t[o]=r}}const Up=["Webkit","Moz","ms"],bu={};function u_(t,n){const r=bu[n];if(r)return r;let o=fr(n);if(o!=="filter"&&o in t)return bu[n]=o;o=Za(o);for(let a=0;a<Up.length;a++){const u=Up[a]+o;if(u in t)return bu[n]=u}return n}const jp="http://www.w3.org/1999/xlink";function f_(t,n,r,o,a){if(o&&n.startsWith("xlink:"))r==null?t.removeAttributeNS(jp,n.slice(6,n.length)):t.setAttributeNS(jp,n,r);else{const u=ix(n);r==null||u&&!qv(r)?t.removeAttribute(n):t.setAttribute(n,u?"":r)}}function h_(t,n,r,o,a,u,f){if(n==="innerHTML"||n==="textContent"){o&&f(o,a,u),t[n]=r==null?"":r;return}if(n==="value"&&t.tagName!=="PROGRESS"&&!t.tagName.includes("-")){t._value=r;const p=r==null?"":r;(t.value!==p||t.tagName==="OPTION")&&(t.value=p),r==null&&t.removeAttribute(n);return}let h=!1;if(r===""||r==null){const p=typeof t[n];p==="boolean"?r=qv(r):r==null&&p==="string"?(r="",h=!0):p==="number"&&(r=0,h=!0)}try{t[n]=r}catch{}h&&t.removeAttribute(n)}function ko(t,n,r,o){t.addEventListener(n,r,o)}function d_(t,n,r,o){t.removeEventListener(n,r,o)}function p_(t,n,r,o,a=null){const u=t._vei||(t._vei={}),f=u[n];if(o&&f)f.value=o;else{const[h,p]=g_(n);if(o){const g=u[n]=y_(o,a);ko(t,h,g,p)}else f&&(d_(t,h,f,p),u[n]=void 0)}}const Gp=/(?:Once|Passive|Capture)$/;function g_(t){let n;if(Gp.test(t)){n={};let o;for(;o=t.match(Gp);)t=t.slice(0,t.length-o[0].length),n[o[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Yi(t.slice(2)),n]}let wu=0;const v_=Promise.resolve(),m_=()=>wu||(v_.then(()=>wu=0),wu=Date.now());function y_(t,n){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;In(b_(o,r.value),n,5,[o])};return r.value=t,r.attached=m_(),r}function b_(t,n){if(Ht(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 Vp=/^on[a-z]/,w_=(t,n,r,o,a=!1,u,f,h,p)=>{n==="class"?a_(t,o,a):n==="style"?c_(t,r,o):Xa(n)?_f(n)||p_(t,n,r,o,f):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):x_(t,n,o,a))?h_(t,n,o,u,f,h,p):(n==="true-value"?t._trueValue=o:n==="false-value"&&(t._falseValue=o),f_(t,n,o,a))};function x_(t,n,r,o){return o?!!(n==="innerHTML"||n==="textContent"||n in t&&Vp.test(n)&&Wt(r)):n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&t.tagName==="INPUT"||n==="type"&&t.tagName==="TEXTAREA"||Vp.test(n)&&Ue(r)?!1:n in t}const ti="transition",Ms="animation",Gf=(t,{slots:n})=>fl(ym,__(t),n);Gf.displayName="Transition";const qm={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};Gf.props=Xe({},ym.props,qm);const Oi=(t,n=[])=>{Ht(t)?t.forEach(r=>r(...n)):t&&t(...n)},Kp=t=>t?Ht(t)?t.some(n=>n.length>1):t.length>1:!1;function __(t){const n={};for(const ft in t)ft in qm||(n[ft]=t[ft]);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:m=h,leaveFromClass:b=`${r}-leave-from`,leaveActiveClass:x=`${r}-leave-active`,leaveToClass:S=`${r}-leave-to`}=t,M=S_(a),A=M&&M[0],E=M&&M[1],{onBeforeEnter:C,onEnter:L,onEnterCancelled:z,onLeave:D,onLeaveCancelled:G,onBeforeAppear:j=C,onAppear:it=L,onAppearCancelled:Q=z}=n,dt=(ft,U,I)=>{Pi(ft,U?m:h),Pi(ft,U?g:f),I&&I()},vt=(ft,U)=>{ft._isLeaving=!1,Pi(ft,b),Pi(ft,S),Pi(ft,x),U&&U()},kt=ft=>(U,I)=>{const k=ft?it:L,H=()=>dt(U,ft,I);Oi(k,[U,H]),Xp(()=>{Pi(U,ft?p:u),ei(U,ft?m:h),Kp(k)||Yp(U,o,A,H)})};return Xe(n,{onBeforeEnter(ft){Oi(C,[ft]),ei(ft,u),ei(ft,f)},onBeforeAppear(ft){Oi(j,[ft]),ei(ft,p),ei(ft,g)},onEnter:kt(!1),onAppear:kt(!0),onLeave(ft,U){ft._isLeaving=!0;const I=()=>vt(ft,U);ei(ft,b),T_(),ei(ft,x),Xp(()=>{!ft._isLeaving||(Pi(ft,b),ei(ft,S),Kp(D)||Yp(ft,o,E,I))}),Oi(D,[ft,I])},onEnterCancelled(ft){dt(ft,!1),Oi(z,[ft])},onAppearCancelled(ft){dt(ft,!0),Oi(Q,[ft])},onLeaveCancelled(ft){vt(ft),Oi(G,[ft])}})}function S_(t){if(t==null)return null;if(xe(t))return[xu(t.enter),xu(t.leave)];{const n=xu(t);return[n,n]}}function xu(t){return js(t)}function ei(t,n){n.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(n)}function Pi(t,n){n.split(/\s+/).forEach(o=>o&&t.classList.remove(o));const{_vtc:r}=t;r&&(r.delete(n),r.size||(t._vtc=void 0))}function Xp(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let k_=0;function Yp(t,n,r,o){const a=t._endId=++k_,u=()=>{a===t._endId&&o()};if(r)return setTimeout(u,r);const{type:f,timeout:h,propCount:p}=C_(t,n);if(!f)return o();const g=f+"end";let m=0;const b=()=>{t.removeEventListener(g,x),u()},x=S=>{S.target===t&&++m>=p&&b()};setTimeout(()=>{m<p&&b()},h+1),t.addEventListener(g,x)}function C_(t,n){const r=window.getComputedStyle(t),o=M=>(r[M]||"").split(", "),a=o(ti+"Delay"),u=o(ti+"Duration"),f=Jp(a,u),h=o(Ms+"Delay"),p=o(Ms+"Duration"),g=Jp(h,p);let m=null,b=0,x=0;n===ti?f>0&&(m=ti,b=f,x=u.length):n===Ms?g>0&&(m=Ms,b=g,x=p.length):(b=Math.max(f,g),m=b>0?f>g?ti:Ms:null,x=m?m===ti?u.length:p.length:0);const S=m===ti&&/\b(transform|all)(,|$)/.test(r[ti+"Property"]);return{type:m,timeout:b,propCount:x,hasTransform:S}}function Jp(t,n){for(;t.length<n.length;)t=t.concat(t);return Math.max(...n.map((r,o)=>Zp(r)+Zp(t[o])))}function Zp(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function T_(){return document.body.offsetHeight}const Qp=t=>{const n=t.props["onUpdate:modelValue"]||!1;return Ht(n)?r=>ha(n,r):n};function E_(t){t.target.composing=!0}function tg(t){const n=t.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const L_={created(t,{modifiers:{lazy:n,trim:r,number:o}},a){t._assign=Qp(a);const u=o||a.props&&a.props.type==="number";ko(t,n?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),u&&(h=js(h)),t._assign(h)}),r&&ko(t,"change",()=>{t.value=t.value.trim()}),n||(ko(t,"compositionstart",E_),ko(t,"compositionend",tg),ko(t,"change",tg))},mounted(t,{value:n}){t.value=n==null?"":n},beforeUpdate(t,{value:n,modifiers:{lazy:r,trim:o,number:a}},u){if(t._assign=Qp(u),t.composing||document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===n||(a||t.type==="number")&&js(t.value)===n))return;const f=n==null?"":n;t.value!==f&&(t.value=f)}},A_={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Vu=(t,n)=>r=>{if(!("key"in r))return;const o=Yi(r.key);if(n.some(a=>a===o||A_[a]===o))return t(r)},Hm={beforeMount(t,{value:n},{transition:r}){t._vod=t.style.display==="none"?"":t.style.display,r&&n?r.beforeEnter(t):Ns(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),Ns(t,!0),o.enter(t)):o.leave(t,()=>{Ns(t,!1)}):Ns(t,n))},beforeUnmount(t,{value:n}){Ns(t,n)}};function Ns(t,n){t.style.display=n?t._vod:"none"}const M_=Xe({patchProp:w_},l_);let eg;function N_(){return eg||(eg=W1(M_))}const Bm=(...t)=>{const n=N_().createApp(...t),{mount:r}=n;return n.mount=o=>{const a=O_(o);if(!a)return;const u=n._component;!Wt(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 O_(t){return Ue(t)?document.querySelector(t):t}const Xo=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r},P_={};function $_(t,n){const r=Gi("RouterView");return ht(),ce(r)}const D_=Xo(P_,[["render",$_]]);/*!
|
|
2
|
+
* vue-router v4.1.6
|
|
3
|
+
* (c) 2022 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/const Co=typeof window<"u";function R_(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const he=Object.assign;function _u(t,n){const r={};for(const o in n){const a=n[o];r[o]=Xn(a)?a.map(t):t(a)}return r}const qs=()=>{},Xn=Array.isArray,z_=/\/$/,I_=t=>t.replace(z_,"");function Su(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=B_(o!=null?o:n,r),{fullPath:o+(u&&"?")+u+f,path:o,query:a,hash:f}}function F_(t,n){const r=n.query?t(n.query):"";return n.path+(r&&"?")+r+(n.hash||"")}function ng(t,n){return!n||!t.toLowerCase().startsWith(n.toLowerCase())?t:t.slice(n.length)||"/"}function q_(t,n,r){const o=n.matched.length-1,a=r.matched.length-1;return o>-1&&o===a&&Io(n.matched[o],r.matched[a])&&Wm(n.params,r.params)&&t(n.query)===t(r.query)&&n.hash===r.hash}function Io(t,n){return(t.aliasOf||t)===(n.aliasOf||n)}function Wm(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(!H_(t[r],n[r]))return!1;return!0}function H_(t,n){return Xn(t)?rg(t,n):Xn(n)?rg(n,t):t===n}function rg(t,n){return Xn(n)?t.length===n.length&&t.every((r,o)=>r===n[o]):t.length===1&&t[0]===n}function B_(t,n){if(t.startsWith("/"))return t;if(!t)return n;const r=n.split("/"),o=t.split("/");let a=r.length-1,u,f;for(u=0;u<o.length;u++)if(f=o[u],f!==".")if(f==="..")a>1&&a--;else break;return r.slice(0,a).join("/")+"/"+o.slice(u-(u===o.length?1:0)).join("/")}var Zs;(function(t){t.pop="pop",t.push="push"})(Zs||(Zs={}));var Hs;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Hs||(Hs={}));function W_(t){if(!t)if(Co){const n=document.querySelector("base");t=n&&n.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),I_(t)}const U_=/^[^#]+#/;function j_(t,n){return t.replace(U_,"#")+n}function G_(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 lc=()=>({left:window.pageXOffset,top:window.pageYOffset});function V_(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=G_(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 ig(t,n){return(history.state?history.state.position-n:-1)+t}const Ku=new Map;function K_(t,n){Ku.set(t,n)}function X_(t){const n=Ku.get(t);return Ku.delete(t),n}let Y_=()=>location.protocol+"//"+location.host;function Um(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),ng(p,"")}return ng(r,t)+o+a}function J_(t,n,r,o){let a=[],u=[],f=null;const h=({state:x})=>{const S=Um(t,location),M=r.value,A=n.value;let E=0;if(x){if(r.value=S,n.value=x,f&&f===M){f=null;return}E=A?x.position-A.position:0}else o(S);a.forEach(C=>{C(r.value,M,{delta:E,type:Zs.pop,direction:E?E>0?Hs.forward:Hs.back:Hs.unknown})})};function p(){f=r.value}function g(x){a.push(x);const S=()=>{const M=a.indexOf(x);M>-1&&a.splice(M,1)};return u.push(S),S}function m(){const{history:x}=window;!x.state||x.replaceState(he({},x.state,{scroll:lc()}),"")}function b(){for(const x of u)x();u=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",m)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",m),{pauseListeners:p,listen:g,destroy:b}}function og(t,n,r,o=!1,a=!1){return{back:t,current:n,forward:r,replaced:o,position:window.history.length,scroll:a?lc():null}}function Z_(t){const{history:n,location:r}=window,o={value:Um(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,m){const b=t.indexOf("#"),x=b>-1?(r.host&&document.querySelector("base")?t:t.slice(b))+p:Y_()+t+p;try{n[m?"replaceState":"pushState"](g,"",x),a.value=g}catch(S){console.error(S),r[m?"replace":"assign"](x)}}function f(p,g){const m=he({},n.state,og(a.value.back,p,a.value.forward,!0),g,{position:a.value.position});u(p,m,!0),o.value=p}function h(p,g){const m=he({},a.value,n.state,{forward:p,scroll:lc()});u(m.current,m,!0);const b=he({},og(o.value,p,null),{position:m.position+1},g);u(p,b,!1),o.value=p}return{location:o,state:a,push:h,replace:f}}function Q_(t){t=W_(t);const n=Z_(t),r=J_(t,n.state,n.location,n.replace);function o(u,f=!0){f||r.pauseListeners(),history.go(u)}const a=he({location:"",base:t,go:o,createHref:j_.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 tS(t){return typeof t=="string"||t&&typeof t=="object"}function jm(t){return typeof t=="string"||typeof t=="symbol"}const ni={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Gm=Symbol("");var sg;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(sg||(sg={}));function Fo(t,n){return he(new Error,{type:t,[Gm]:!0},n)}function Tr(t,n){return t instanceof Error&&Gm in t&&(n==null||!!(t.type&n))}const lg="[^/]+?",eS={sensitive:!1,strict:!1,start:!0,end:!0},nS=/[.+*?^${}()[\]/\\]/g;function rS(t,n){const r=he({},eS,n),o=[];let a=r.start?"^":"";const u=[];for(const g of t){const m=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:M,repeatable:A,optional:E,regexp:C}=x;u.push({name:M,repeatable:A,optional:E});const L=C||lg;if(L!==lg){S+=10;try{new RegExp(`(${L})`)}catch(D){throw new Error(`Invalid custom RegExp for param "${M}" (${L}): `+D.message)}}let z=A?`((?:${L})(?:/(?:${L}))*)`:`(${L})`;b||(z=E&&g.length<2?`(?:/${z})`:"/"+z),E&&(z+="?"),a+=z,S+=20,E&&(S+=-8),A&&(S+=-20),L===".*"&&(S+=-50)}m.push(S)}o.push(m)}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 m=g.match(f),b={};if(!m)return null;for(let x=1;x<m.length;x++){const S=m[x]||"",M=u[x-1];b[M.name]=S&&M.repeatable?S.split("/"):S}return b}function p(g){let m="",b=!1;for(const x of t){(!b||!m.endsWith("/"))&&(m+="/"),b=!1;for(const S of x)if(S.type===0)m+=S.value;else if(S.type===1){const{value:M,repeatable:A,optional:E}=S,C=M in g?g[M]:"";if(Xn(C)&&!A)throw new Error(`Provided param "${M}" is an array but it is not repeatable (* or + modifiers)`);const L=Xn(C)?C.join("/"):C;if(!L)if(E)x.length<2&&(m.endsWith("/")?m=m.slice(0,-1):b=!0);else throw new Error(`Missing required param "${M}"`);m+=L}}return m||"/"}return{re:f,score:o,keys:u,parse:h,stringify:p}}function iS(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 oS(t,n){let r=0;const o=t.score,a=n.score;for(;r<o.length&&r<a.length;){const u=iS(o[r],a[r]);if(u)return u;r++}if(Math.abs(a.length-o.length)===1){if(ag(o))return 1;if(ag(a))return-1}return a.length-o.length}function ag(t){const n=t[t.length-1];return t.length>0&&n[n.length-1]<0}const sS={type:0,value:""},lS=/[a-zA-Z0-9_]/;function aS(t){if(!t)return[[]];if(t==="/")return[[sS]];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="",m="";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:m,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:lS.test(p)?x():(b(),r=0,p!=="*"&&p!=="?"&&p!=="+"&&h--);break;case 2:p===")"?m[m.length-1]=="\\"?m=m.slice(0,-1)+p:r=3:m+=p;break;case 3:b(),r=0,p!=="*"&&p!=="?"&&p!=="+"&&h--,m="";break;default:n("Unknown state");break}}return r===2&&n(`Unfinished custom RegExp for param "${g}"`),b(),f(),a}function cS(t,n,r){const o=rS(aS(t.path),r),a=he(o,{record:t,parent:n,children:[],alias:[]});return n&&!a.record.aliasOf==!n.record.aliasOf&&n.children.push(a),a}function uS(t,n){const r=[],o=new Map;n=fg({strict:!1,end:!0,sensitive:!1},n);function a(m){return o.get(m)}function u(m,b,x){const S=!x,M=fS(m);M.aliasOf=x&&x.record;const A=fg(n,m),E=[M];if("alias"in m){const z=typeof m.alias=="string"?[m.alias]:m.alias;for(const D of z)E.push(he({},M,{components:x?x.record.components:M.components,path:D,aliasOf:x?x.record:M}))}let C,L;for(const z of E){const{path:D}=z;if(b&&D[0]!=="/"){const G=b.record.path,j=G[G.length-1]==="/"?"":"/";z.path=b.record.path+(D&&j+D)}if(C=cS(z,b,A),x?x.alias.push(C):(L=L||C,L!==C&&L.alias.push(C),S&&m.name&&!ug(C)&&f(m.name)),M.children){const G=M.children;for(let j=0;j<G.length;j++)u(G[j],C,x&&x.children[j])}x=x||C,(C.record.components&&Object.keys(C.record.components).length||C.record.name||C.record.redirect)&&p(C)}return L?()=>{f(L)}:qs}function f(m){if(jm(m)){const b=o.get(m);b&&(o.delete(m),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(m);b>-1&&(r.splice(b,1),m.record.name&&o.delete(m.record.name),m.children.forEach(f),m.alias.forEach(f))}}function h(){return r}function p(m){let b=0;for(;b<r.length&&oS(m,r[b])>=0&&(m.record.path!==r[b].record.path||!Vm(m,r[b]));)b++;r.splice(b,0,m),m.record.name&&!ug(m)&&o.set(m.record.name,m)}function g(m,b){let x,S={},M,A;if("name"in m&&m.name){if(x=o.get(m.name),!x)throw Fo(1,{location:m});A=x.record.name,S=he(cg(b.params,x.keys.filter(L=>!L.optional).map(L=>L.name)),m.params&&cg(m.params,x.keys.map(L=>L.name))),M=x.stringify(S)}else if("path"in m)M=m.path,x=r.find(L=>L.re.test(M)),x&&(S=x.parse(M),A=x.record.name);else{if(x=b.name?o.get(b.name):r.find(L=>L.re.test(b.path)),!x)throw Fo(1,{location:m,currentLocation:b});A=x.record.name,S=he({},b.params,m.params),M=x.stringify(S)}const E=[];let C=x;for(;C;)E.unshift(C.record),C=C.parent;return{name:A,path:M,params:S,matched:E,meta:dS(E)}}return t.forEach(m=>u(m)),{addRoute:u,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:a}}function cg(t,n){const r={};for(const o of n)o in t&&(r[o]=t[o]);return r}function fS(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=="boolean"?r:r[o];return n}function ug(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function dS(t){return t.reduce((n,r)=>he(n,r.meta),{})}function fg(t,n){const r={};for(const o in t)r[o]=o in n?n[o]:t[o];return r}function Vm(t,n){return n.children.some(r=>r===t||Vm(t,r))}const Km=/#/g,pS=/&/g,gS=/\//g,vS=/=/g,mS=/\?/g,Xm=/\+/g,yS=/%5B/g,bS=/%5D/g,Ym=/%5E/g,wS=/%60/g,Jm=/%7B/g,xS=/%7C/g,Zm=/%7D/g,_S=/%20/g;function Vf(t){return encodeURI(""+t).replace(xS,"|").replace(yS,"[").replace(bS,"]")}function SS(t){return Vf(t).replace(Jm,"{").replace(Zm,"}").replace(Ym,"^")}function Xu(t){return Vf(t).replace(Xm,"%2B").replace(_S,"+").replace(Km,"%23").replace(pS,"%26").replace(wS,"`").replace(Jm,"{").replace(Zm,"}").replace(Ym,"^")}function kS(t){return Xu(t).replace(vS,"%3D")}function CS(t){return Vf(t).replace(Km,"%23").replace(mS,"%3F")}function TS(t){return t==null?"":CS(t).replace(gS,"%2F")}function Aa(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function ES(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(Xm," "),f=u.indexOf("="),h=Aa(f<0?u:u.slice(0,f)),p=f<0?null:Aa(u.slice(f+1));if(h in n){let g=n[h];Xn(g)||(g=n[h]=[g]),g.push(p)}else n[h]=p}return n}function hg(t){let n="";for(let r in t){const o=t[r];if(r=kS(r),o==null){o!==void 0&&(n+=(n.length?"&":"")+r);continue}(Xn(o)?o.map(u=>u&&Xu(u)):[o&&Xu(o)]).forEach(u=>{u!==void 0&&(n+=(n.length?"&":"")+r,u!=null&&(n+="="+u))})}return n}function LS(t){const n={};for(const r in t){const o=t[r];o!==void 0&&(n[r]=Xn(o)?o.map(a=>a==null?null:""+a):o==null?o:""+o)}return n}const AS=Symbol(""),dg=Symbol(""),Kf=Symbol(""),Qm=Symbol(""),Yu=Symbol("");function Os(){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,reset:r}}function ii(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(Fo(4,{from:r,to:n})):b instanceof Error?h(b):tS(b)?h(Fo(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 m=Promise.resolve(g);t.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function ku(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(MS(h)){const g=(h.__vccOpts||h)[n];g&&a.push(ii(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 m=R_(g)?g.default:g;u.components[f]=m;const x=(m.__vccOpts||m)[n];return x&&ii(x,r,o,u,f)()}))}}return a}function MS(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function pg(t){const n=fi(Kf),r=fi(Qm),o=St(()=>n.resolve(J(t.to))),a=St(()=>{const{matched:p}=o.value,{length:g}=p,m=p[g-1],b=r.matched;if(!m||!b.length)return-1;const x=b.findIndex(Io.bind(null,m));if(x>-1)return x;const S=gg(p[g-2]);return g>1&&gg(m)===S&&b[b.length-1].path!==S?b.findIndex(Io.bind(null,p[g-2])):x}),u=St(()=>a.value>-1&&$S(r.params,o.value.params)),f=St(()=>a.value>-1&&a.value===r.matched.length-1&&Wm(r.params,o.value.params));function h(p={}){return PS(p)?n[J(t.replace)?"replace":"push"](J(t.to)).catch(qs):Promise.resolve()}return{route:o,href:St(()=>o.value.href),isActive:u,isExactActive:f,navigate:h}}const NS=oe({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:pg,setup(t,{slots:n}){const r=hr(pg(t)),{options:o}=fi(Kf),a=St(()=>({[vg(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[vg(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const u=n.default&&n.default(r);return t.custom?u:fl("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},u)}}}),OS=NS;function PS(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 $S(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(!Xn(a)||a.length!==o.length||o.some((u,f)=>u!==a[f]))return!1}return!0}function gg(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const vg=(t,n,r)=>t!=null?t:n!=null?n:r,DS=oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:n,slots:r}){const o=fi(Yu),a=St(()=>t.route||o.value),u=fi(dg,0),f=St(()=>{let g=J(u);const{matched:m}=a.value;let b;for(;(b=m[g])&&!b.components;)g++;return g}),h=St(()=>a.value.matched[f.value]);da(dg,St(()=>f.value+1)),da(AS,h),da(Yu,a);const p=Kt();return Fe(()=>[p.value,h.value,t.name],([g,m,b],[x,S,M])=>{m&&(m.instances[b]=g,S&&S!==m&&g&&g===x&&(m.leaveGuards.size||(m.leaveGuards=S.leaveGuards),m.updateGuards.size||(m.updateGuards=S.updateGuards))),g&&m&&(!S||!Io(m,S)||!x)&&(m.enterCallbacks[b]||[]).forEach(A=>A(g))},{flush:"post"}),()=>{const g=a.value,m=t.name,b=h.value,x=b&&b.components[m];if(!x)return mg(r.default,{Component:x,route:g});const S=b.props[m],M=S?S===!0?g.params:typeof S=="function"?S(g):S:null,E=fl(x,he({},M,n,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(b.instances[m]=null)},ref:p}));return mg(r.default,{Component:E,route:g})||E}}});function mg(t,n){if(!t)return null;const r=t(n);return r.length===1?r[0]:r}const RS=DS;function zS(t){const n=uS(t.routes,t),r=t.parseQuery||ES,o=t.stringifyQuery||hg,a=t.history,u=Os(),f=Os(),h=Os(),p=ll(ni);let g=ni;Co&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const m=_u.bind(null,Z=>""+Z),b=_u.bind(null,TS),x=_u.bind(null,Aa);function S(Z,tt){let V,st;return jm(Z)?(V=n.getRecordMatcher(Z),st=tt):st=Z,n.addRoute(st,V)}function M(Z){const tt=n.getRecordMatcher(Z);tt&&n.removeRoute(tt)}function A(){return n.getRoutes().map(Z=>Z.record)}function E(Z){return!!n.getRecordMatcher(Z)}function C(Z,tt){if(tt=he({},tt||p.value),typeof Z=="string"){const O=Su(r,Z,tt.path),F=n.resolve({path:O.path},tt),Y=a.createHref(O.fullPath);return he(O,F,{params:x(F.params),hash:Aa(O.hash),redirectedFrom:void 0,href:Y})}let V;if("path"in Z)V=he({},Z,{path:Su(r,Z.path,tt.path).path});else{const O=he({},Z.params);for(const F in O)O[F]==null&&delete O[F];V=he({},Z,{params:b(Z.params)}),tt.params=b(tt.params)}const st=n.resolve(V,tt),Ct=Z.hash||"";st.params=m(x(st.params));const de=F_(o,he({},Z,{hash:SS(Ct),path:st.path})),Et=a.createHref(de);return he({fullPath:de,hash:Ct,query:o===hg?LS(Z.query):Z.query||{}},st,{redirectedFrom:void 0,href:Et})}function L(Z){return typeof Z=="string"?Su(r,Z,p.value.path):he({},Z)}function z(Z,tt){if(g!==Z)return Fo(8,{from:tt,to:Z})}function D(Z){return it(Z)}function G(Z){return D(he(L(Z),{replace:!0}))}function j(Z){const tt=Z.matched[Z.matched.length-1];if(tt&&tt.redirect){const{redirect:V}=tt;let st=typeof V=="function"?V(Z):V;return typeof st=="string"&&(st=st.includes("?")||st.includes("#")?st=L(st):{path:st},st.params={}),he({query:Z.query,hash:Z.hash,params:"path"in st?{}:Z.params},st)}}function it(Z,tt){const V=g=C(Z),st=p.value,Ct=Z.state,de=Z.force,Et=Z.replace===!0,O=j(V);if(O)return it(he(L(O),{state:typeof O=="object"?he({},Ct,O.state):Ct,force:de,replace:Et}),tt||V);const F=V;F.redirectedFrom=tt;let Y;return!de&&q_(o,st,V)&&(Y=Fo(16,{to:F,from:st}),Lt(st,st,!0,!1)),(Y?Promise.resolve(Y):dt(F,st)).catch(nt=>Tr(nt)?Tr(nt,2)?nt:wt(nt):W(nt,F,st)).then(nt=>{if(nt){if(Tr(nt,2))return it(he({replace:Et},L(nt.to),{state:typeof nt.to=="object"?he({},Ct,nt.to.state):Ct,force:de}),tt||F)}else nt=kt(F,st,!0,Et,Ct);return vt(F,st,nt),nt})}function Q(Z,tt){const V=z(Z,tt);return V?Promise.reject(V):Promise.resolve()}function dt(Z,tt){let V;const[st,Ct,de]=IS(Z,tt);V=ku(st.reverse(),"beforeRouteLeave",Z,tt);for(const O of st)O.leaveGuards.forEach(F=>{V.push(ii(F,Z,tt))});const Et=Q.bind(null,Z,tt);return V.push(Et),_o(V).then(()=>{V=[];for(const O of u.list())V.push(ii(O,Z,tt));return V.push(Et),_o(V)}).then(()=>{V=ku(Ct,"beforeRouteUpdate",Z,tt);for(const O of Ct)O.updateGuards.forEach(F=>{V.push(ii(F,Z,tt))});return V.push(Et),_o(V)}).then(()=>{V=[];for(const O of Z.matched)if(O.beforeEnter&&!tt.matched.includes(O))if(Xn(O.beforeEnter))for(const F of O.beforeEnter)V.push(ii(F,Z,tt));else V.push(ii(O.beforeEnter,Z,tt));return V.push(Et),_o(V)}).then(()=>(Z.matched.forEach(O=>O.enterCallbacks={}),V=ku(de,"beforeRouteEnter",Z,tt),V.push(Et),_o(V))).then(()=>{V=[];for(const O of f.list())V.push(ii(O,Z,tt));return V.push(Et),_o(V)}).catch(O=>Tr(O,8)?O:Promise.reject(O))}function vt(Z,tt,V){for(const st of h.list())st(Z,tt,V)}function kt(Z,tt,V,st,Ct){const de=z(Z,tt);if(de)return de;const Et=tt===ni,O=Co?history.state:{};V&&(st||Et?a.replace(Z.fullPath,he({scroll:Et&&O&&O.scroll},Ct)):a.push(Z.fullPath,Ct)),p.value=Z,Lt(Z,tt,V,Et),wt()}let ft;function U(){ft||(ft=a.listen((Z,tt,V)=>{if(!ne.listening)return;const st=C(Z),Ct=j(st);if(Ct){it(he(Ct,{replace:!0}),st).catch(qs);return}g=st;const de=p.value;Co&&K_(ig(de.fullPath,V.delta),lc()),dt(st,de).catch(Et=>Tr(Et,12)?Et:Tr(Et,2)?(it(Et.to,st).then(O=>{Tr(O,20)&&!V.delta&&V.type===Zs.pop&&a.go(-1,!1)}).catch(qs),Promise.reject()):(V.delta&&a.go(-V.delta,!1),W(Et,st,de))).then(Et=>{Et=Et||kt(st,de,!1),Et&&(V.delta&&!Tr(Et,8)?a.go(-V.delta,!1):V.type===Zs.pop&&Tr(Et,20)&&a.go(-1,!1)),vt(st,de,Et)}).catch(qs)}))}let I=Os(),k=Os(),H;function W(Z,tt,V){wt(Z);const st=k.list();return st.length?st.forEach(Ct=>Ct(Z,tt,V)):console.error(Z),Promise.reject(Z)}function et(){return H&&p.value!==ni?Promise.resolve():new Promise((Z,tt)=>{I.add([Z,tt])})}function wt(Z){return H||(H=!Z,U(),I.list().forEach(([tt,V])=>Z?V(Z):tt()),I.reset()),Z}function Lt(Z,tt,V,st){const{scrollBehavior:Ct}=t;if(!Co||!Ct)return Promise.resolve();const de=!V&&X_(ig(Z.fullPath,0))||(st||!V)&&history.state&&history.state.scroll||null;return cl().then(()=>Ct(Z,tt,de)).then(Et=>Et&&V_(Et)).catch(Et=>W(Et,Z,tt))}const qt=Z=>a.go(Z);let Bt;const Gt=new Set,ne={currentRoute:p,listening:!0,addRoute:S,removeRoute:M,hasRoute:E,getRoutes:A,resolve:C,options:t,push:D,replace:G,go:qt,back:()=>qt(-1),forward:()=>qt(1),beforeEach:u.add,beforeResolve:f.add,afterEach:h.add,onError:k.add,isReady:et,install(Z){const tt=this;Z.component("RouterLink",OS),Z.component("RouterView",RS),Z.config.globalProperties.$router=tt,Object.defineProperty(Z.config.globalProperties,"$route",{enumerable:!0,get:()=>J(p)}),Co&&!Bt&&p.value===ni&&(Bt=!0,D(a.location).catch(Ct=>{}));const V={};for(const Ct in ni)V[Ct]=St(()=>p.value[Ct]);Z.provide(Kf,tt),Z.provide(Qm,hr(V)),Z.provide(Yu,p);const st=Z.unmount;Gt.add(Z),Z.unmount=function(){Gt.delete(Z),Gt.size<1&&(g=ni,ft&&ft(),ft=null,p.value=ni,Bt=!1,H=!1),st()}}};return ne}function _o(t){return t.reduce((n,r)=>n.then(()=>r()),Promise.resolve())}function IS(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=>Io(g,h))?o.push(h):r.push(h));const p=t.matched[f];p&&(n.matched.find(g=>Io(g,p))||a.push(p))}return[r,o,a]}function Fr(t){return t.split("-")[0]}function No(t){return t.split("-")[1]}function hl(t){return["top","bottom"].includes(Fr(t))?"x":"y"}function Xf(t){return t==="y"?"height":"width"}function yg(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(Fr(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=hl(o),p=Xf(h);switch(No(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 FS=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}=yg({...h,placement:o}),m=o,b={};for(let x=0;x<u.length;x++){const{name:S,fn:M}=u[x],{x:A,y:E,data:C,reset:L}=await M({x:p,y:g,initialPlacement:o,placement:m,strategy:a,middlewareData:b,rects:h,platform:f,elements:{reference:t,floating:n}});if(p=A!=null?A:p,g=E!=null?E:g,b={...b,[S]:C!=null?C:{}},L){typeof L=="object"&&(L.placement&&(m=L.placement),L.rects&&(h=L.rects===!0?await f.getElementRects({reference:t,floating:n,strategy:a}):L.rects),{x:p,y:g}=yg({...h,placement:m})),x=-1;continue}}return{x:p,y:g,placement:m,strategy:a,middlewareData:b}};function qS(t){return{top:0,right:0,bottom:0,left:0,...t}}function t0(t){return typeof t!="number"?qS(t):{top:t,right:t,bottom:t,left:t}}function Ju(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function ac(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:m="floating",altBoundary:b=!1,padding:x=0}=n,S=t0(x),A=f[b?m==="floating"?"reference":"floating":m],E=await a.getClippingClientRect({element:await a.isElement(A)?A:A.contextElement||await a.getDocumentElement({element:f.floating}),boundary:p,rootBoundary:g}),C=Ju(await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:m==="floating"?{...u.floating,x:r,y:o}:u.reference,offsetParent:await a.getOffsetParent({element:f.floating}),strategy:h}));return{top:E.top-C.top+S.top,bottom:C.bottom-E.bottom+S.bottom,left:E.left-C.left+S.left,right:C.right-E.right+S.right}}const HS=Math.min,Di=Math.max;function Zu(t,n,r){return Di(t,HS(n,r))}const BS=t=>({name:"arrow",options:t,async fn(n){const{element:r,padding:o=0}=t!=null?t:{},{x:a,y:u,placement:f,rects:h,platform:p}=n;if(r==null)return{};const g=t0(o),m={x:a,y:u},b=Fr(f),x=hl(b),S=Xf(x),M=await p.getDimensions({element:r}),A=x==="y"?"top":"left",E=x==="y"?"bottom":"right",C=h.reference[S]+h.reference[x]-m[x]-h.floating[S],L=m[x]-h.reference[x],z=await p.getOffsetParent({element:r}),D=z?x==="y"?z.clientHeight||0:z.clientWidth||0:0,G=C/2-L/2,j=g[A],it=D-M[S]-g[E],Q=D/2-M[S]/2+G,dt=Zu(j,Q,it);return{data:{[x]:dt,centerOffset:Q-dt}}}}),WS={left:"right",right:"left",bottom:"top",top:"bottom"};function Ma(t){return t.replace(/left|right|bottom|top/g,n=>WS[n])}function e0(t,n){const r=No(t)==="start",o=hl(t),a=Xf(o);let u=o==="x"?r?"right":"left":r?"bottom":"top";return n.reference[a]>n.floating[a]&&(u=Ma(u)),{main:u,cross:Ma(u)}}const US={start:"end",end:"start"};function Qu(t){return t.replace(/start|end/g,n=>US[n])}const jS=["top","right","bottom","left"],GS=jS.reduce((t,n)=>t.concat(n,n+"-start",n+"-end"),[]);function VS(t,n,r){return(t?[...r.filter(a=>No(a)===t),...r.filter(a=>No(a)!==t)]:r.filter(a=>Fr(a)===a)).filter(a=>t?No(a)===t||(n?Qu(a)!==a:!1):!0)}const KS=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:m,middlewareData:b,placement:x}=n,{alignment:S=null,allowedPlacements:M=GS,autoAlignment:A=!0,...E}=t;if((r=b.autoPlacement)!=null&&r.skip)return{};const C=VS(S,A,M),L=await ac(n,E),z=(o=(a=b.autoPlacement)==null?void 0:a.index)!=null?o:0,D=C[z],{main:G,cross:j}=e0(D,m);if(x!==D)return{x:p,y:g,reset:{placement:C[0]}};const it=[L[Fr(D)],L[G],L[j]],Q=[...(u=(f=b.autoPlacement)==null?void 0:f.overflows)!=null?u:[],{placement:D,overflows:it}],dt=C[z+1];if(dt)return{data:{index:z+1,overflows:Q},reset:{placement:dt}};const vt=Q.slice().sort((ft,U)=>ft.overflows[0]-U.overflows[0]),kt=(h=vt.find(ft=>{let{overflows:U}=ft;return U.every(I=>I<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:kt!=null?kt:vt[0].placement}}}}};function XS(t){const n=Ma(t);return[Qu(t),n,Qu(n)]}const YS=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:m,fallbackStrategy:b="bestFit",flipAlignment:x=!0,...S}=t,M=Fr(a),E=m||(M===h||!x?[Ma(h)]:XS(h)),C=[h,...E],L=await ac(n,S),z=[];let D=((o=u.flip)==null?void 0:o.overflows)||[];if(p&&z.push(L[M]),g){const{main:Q,cross:dt}=e0(a,f);z.push(L[Q],L[dt])}if(D=[...D,{placement:a,overflows:z}],!z.every(Q=>Q<=0)){var G,j;const Q=((G=(j=u.flip)==null?void 0:j.index)!=null?G:0)+1,dt=C[Q];if(dt)return{data:{index:Q,overflows:D},reset:{placement:dt}};let vt="bottom";switch(b){case"bestFit":{var it;const kt=(it=D.slice().sort((ft,U)=>ft.overflows.filter(I=>I>0).reduce((I,k)=>I+k,0)-U.overflows.filter(I=>I>0).reduce((I,k)=>I+k,0))[0])==null?void 0:it.placement;kt&&(vt=kt);break}case"initialPlacement":vt=h;break}return{data:{skip:!0},reset:{placement:vt}}}return{}}}};function JS(t){let{placement:n,rects:r,value:o}=t;const a=Fr(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 hl(a)==="x"?{x:p,y:h*u}:{x:h*u,y:p}}const ZS=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=JS({placement:a,rects:u,value:t});return{x:r+f.x,y:o+f.y,data:f}}}};function QS(t){return t==="x"?"y":"x"}const tk=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:E=>{let{x:C,y:L}=E;return{x:C,y:L}}},...p}=t,g={x:r,y:o},m=await ac(n,p),b=hl(Fr(a)),x=QS(b);let S=g[b],M=g[x];if(u){const E=b==="y"?"top":"left",C=b==="y"?"bottom":"right",L=S+m[E],z=S-m[C];S=Zu(L,S,z)}if(f){const E=x==="y"?"top":"left",C=x==="y"?"bottom":"right",L=M+m[E],z=M-m[C];M=Zu(L,M,z)}const A=h.fn({...n,[b]:S,[x]:M});return{...A,data:{x:A.x-r,y:A.y-o}}}}},ek=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 ac(n,h),g=Fr(o),m=No(o)==="end";let b,x;g==="top"||g==="bottom"?(b=g,x=m?"left":"right"):(x=g,b=m?"top":"bottom");const S=Di(p.left,0),M=Di(p.right,0),A=Di(p.top,0),E=Di(p.bottom,0),C={height:a.floating.height-(["left","right"].includes(o)?2*(A!==0||E!==0?A+E:Di(p.top,p.bottom)):p[b]),width:a.floating.width-(["top","bottom"].includes(o)?2*(S!==0||M!==0?S+M:Di(p.left,p.right)):p[x])};return f==null||f({...C,...a}),{data:{skip:!0},reset:{rects:!0}}}}};function Yf(t){return(t==null?void 0:t.toString())==="[object Window]"}function vi(t){if(t==null)return window;if(!Yf(t)){const n=t.ownerDocument;return n&&n.defaultView||window}return t}function cc(t){return vi(t).getComputedStyle(t)}function Dr(t){return Yf(t)?"":t?(t.nodeName||"").toLowerCase():""}function Rr(t){return t instanceof vi(t).HTMLElement}function Na(t){return t instanceof vi(t).Element}function nk(t){return t instanceof vi(t).Node}function n0(t){const n=vi(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function uc(t){const{overflow:n,overflowX:r,overflowY:o}=cc(t);return/auto|scroll|overlay|hidden/.test(n+o+r)}function rk(t){return["table","td","th"].includes(Dr(t))}function r0(t){const n=navigator.userAgent.toLowerCase().includes("firefox"),r=cc(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 bg=Math.min,Bs=Math.max,Oa=Math.round;function qo(t,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect();let o=1,a=1;return n&&Rr(t)&&(o=t.offsetWidth>0&&Oa(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Oa(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 mi(t){return((nk(t)?t.ownerDocument:t.document)||window.document).documentElement}function fc(t){return Yf(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function i0(t){return qo(mi(t)).left+fc(t).scrollLeft}function ik(t){const n=qo(t);return Oa(n.width)!==t.offsetWidth||Oa(n.height)!==t.offsetHeight}function ok(t,n,r){const o=Rr(n),a=mi(n),u=qo(t,o&&ik(n));let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if((Dr(n)!=="body"||uc(a))&&(f=fc(n)),Rr(n)){const p=qo(n,!0);h.x=p.x+n.clientLeft,h.y=p.y+n.clientTop}else a&&(h.x=i0(a));return{x:u.left+f.scrollLeft-h.x,y:u.top+f.scrollTop-h.y,width:u.width,height:u.height}}function hc(t){return Dr(t)==="html"?t:t.assignedSlot||t.parentNode||(n0(t)?t.host:null)||mi(t)}function wg(t){return!Rr(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function sk(t){let n=hc(t);for(;Rr(n)&&!["html","body"].includes(Dr(n));){if(r0(n))return n;n=n.parentNode}return null}function tf(t){const n=vi(t);let r=wg(t);for(;r&&rk(r)&&getComputedStyle(r).position==="static";)r=wg(r);return r&&(Dr(r)==="html"||Dr(r)==="body"&&getComputedStyle(r).position==="static"&&!r0(r))?n:r||sk(t)||n}function xg(t){return{width:t.offsetWidth,height:t.offsetHeight}}function lk(t){let{rect:n,offsetParent:r,strategy:o}=t;const a=Rr(r),u=mi(r);if(r===u)return n;let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((a||!a&&o!=="fixed")&&((Dr(r)!=="body"||uc(u))&&(f=fc(r)),Rr(r))){const p=qo(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 ak(t){const n=vi(t),r=mi(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 ck(t){var n;const r=mi(t),o=fc(t),a=(n=t.ownerDocument)==null?void 0:n.body,u=Bs(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),f=Bs(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let h=-o.scrollLeft+i0(t);const p=-o.scrollTop;return cc(a||r).direction==="rtl"&&(h+=Bs(r.clientWidth,a?a.clientWidth:0)-u),{width:u,height:f,x:h,y:p}}function o0(t){return["html","body","#document"].includes(Dr(t))?t.ownerDocument.body:Rr(t)&&uc(t)?t:o0(hc(t))}function Pa(t,n){var r;n===void 0&&(n=[]);const o=o0(t),a=o===((r=t.ownerDocument)==null?void 0:r.body),u=vi(o),f=a?[u].concat(u.visualViewport||[],uc(o)?o:[]):o,h=n.concat(f);return a?h:h.concat(Pa(hc(f)))}function uk(t,n){const r=n.getRootNode==null?void 0:n.getRootNode();if(t.contains(n))return!0;if(r&&n0(r)){let o=n;do{if(o&&t===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function fk(t){const n=qo(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 _g(t,n){return n==="viewport"?Ju(ak(t)):Na(n)?fk(n):Ju(ck(mi(t)))}function hk(t){const n=Pa(hc(t)),o=["absolute","fixed"].includes(cc(t).position)&&Rr(t)?tf(t):t;return Na(o)?n.filter(a=>Na(a)&&uk(a,o)&&Dr(a)!=="body"):[]}function dk(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 m=_g(n,g);return p.top=Bs(m.top,p.top),p.right=bg(m.right,p.right),p.bottom=bg(m.bottom,p.bottom),p.left=Bs(m.left,p.left),p},_g(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 pk={getElementRects:t=>{let{reference:n,floating:r,strategy:o}=t;return{reference:ok(n,tf(r),o),floating:{...xg(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>lk(t),getOffsetParent:t=>{let{element:n}=t;return tf(n)},isElement:t=>Na(t),getDocumentElement:t=>{let{element:n}=t;return mi(n)},getClippingClientRect:t=>dk(t),getDimensions:t=>{let{element:n}=t;return xg(n)},getClientRects:t=>{let{element:n}=t;return n.getClientRects()}},gk=(t,n,r)=>FS(t,n,{platform:pk,...r});var vk=Object.defineProperty,mk=Object.defineProperties,yk=Object.getOwnPropertyDescriptors,Sg=Object.getOwnPropertySymbols,bk=Object.prototype.hasOwnProperty,wk=Object.prototype.propertyIsEnumerable,kg=(t,n,r)=>n in t?vk(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Nr=(t,n)=>{for(var r in n||(n={}))bk.call(n,r)&&kg(t,r,n[r]);if(Sg)for(var r of Sg(n))wk.call(n,r)&&kg(t,r,n[r]);return t},dl=(t,n)=>mk(t,yk(n));function s0(t,n){for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(typeof n[r]=="object"&&t[r]?s0(t[r],n[r]):t[r]=n[r])}const Ui={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 Ho(t,n){let r=Ui.themes[t]||{},o;do o=r[n],typeof o>"u"?r.$extend?r=Ui.themes[r.$extend]||{}:(r=null,o=Ui[n]):r=null;while(r);return o}function xk(t){const n=[t];let r=Ui.themes[t]||{};do r.$extend&&!r.$resetCss?(n.push(r.$extend),r=Ui.themes[r.$extend]||{}):r=null;while(r);return n.map(o=>`v-popper--theme-${o}`)}let Bo=!1;if(typeof window<"u"){Bo=!1;try{const t=Object.defineProperty({},"passive",{get(){Bo=!0}});window.addEventListener("test",null,t)}catch{}}let l0=!1;typeof window<"u"&&typeof navigator<"u"&&(l0=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const a0=["auto","top","bottom","left","right"].reduce((t,n)=>t.concat([n,`${n}-start`,`${n}-end`]),[]),Cg={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Tg={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function _k(t,n){const r=t.indexOf(n);r!==-1&&t.splice(r,1)}function Cu(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const cr=[];let So=null,ef=function(){};typeof window<"u"&&(ef=window.Element);function fe(t){return function(n){return Ho(n.theme,t)}}var c0=()=>oe({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:fe("disabled")},placement:{type:String,default:fe("placement"),validator:t=>a0.includes(t)},delay:{type:[String,Number,Object],default:fe("delay")},distance:{type:[Number,String],default:fe("distance")},skidding:{type:[Number,String],default:fe("skidding")},triggers:{type:Array,default:fe("triggers")},showTriggers:{type:[Array,Function],default:fe("showTriggers")},hideTriggers:{type:[Array,Function],default:fe("hideTriggers")},popperTriggers:{type:Array,default:fe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:fe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:fe("popperHideTriggers")},container:{type:[String,Object,ef,Boolean],default:fe("container")},boundary:{type:[String,ef],default:fe("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:fe("strategy")},autoHide:{type:Boolean,default:fe("autoHide")},handleResize:{type:Boolean,default:fe("handleResize")},instantMove:{type:Boolean,default:fe("instantMove")},eagerMount:{type:Boolean,default:fe("eagerMount")},popperClass:{type:[String,Array,Object],default:fe("popperClass")},computeTransformOrigin:{type:Boolean,default:fe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:fe("autoMinSize")},autoMaxSize:{type:Boolean,default:fe("autoMaxSize")},preventOverflow:{type:Boolean,default:fe("preventOverflow")},overflowPadding:{type:[Number,String],default:fe("overflowPadding")},arrowPadding:{type:[Number,String],default:fe("arrowPadding")},arrowOverflow:{type:Boolean,default:fe("arrowOverflow")},flip:{type:Boolean,default:fe("flip")},shift:{type:Boolean,default:fe("shift")},shiftCrossAxis:{type:Boolean,default:fe("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:dl(Nr({},this.classes),{popperClass:this.popperClass}),result:this.result}}},watch:Nr({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(ZS({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");r?n.middleware.push(KS({alignment:(t=this.placement.split("-")[1])!=null?t:""})):n.placement=this.placement,this.preventOverflow&&(this.shift&&n.middleware.push(tk({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&n.middleware.push(YS({padding:this.overflowPadding,boundary:this.boundary}))),n.middleware.push(BS({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(ek({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 gk(this.$_referenceNode,this.$_popperNode,n);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:Nr(Nr({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(t=null,n=!1){if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),So&&this.instantMove&&So.instantMove){So.$_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&&(So=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 Cu(),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<cr.length;r++)n=cr[r],n.showGroup!==t&&(n.hide(),n.$emit("close-group"))}cr.push(this),this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Cu(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(t=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,_k(cr,this),So===this&&(So=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const n=Ho(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 Cu(),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,Bo?{passive:!0}:void 0))},n=(a,u,f,h,p)=>{let g=f;h!=null&&(g=typeof h=="function"?h(g):h),g.forEach(m=>{const b=u[m];b&&t(a,b,p)})},r=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};n(this.$_targetNodes,Cg,this.triggers,this.showTriggers,r),n([this.$_popperNode],Cg,this.popperTriggers,this.popperShowTriggers,r);const o=a=>{a.usedByTooltip||this.hide({event:a})};n(this.$_targetNodes,Tg,this.triggers,this.hideTriggers,o),n([this.$_popperNode],Tg,this.popperTriggers,this.popperHideTriggers,o),t([...Pa(this.$_referenceNode),...Pa(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"&&(l0?(document.addEventListener("touchstart",Eg,Bo?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",kk,Bo?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Eg,!0),window.addEventListener("click",Sk,!0)),window.addEventListener("resize",Ck));function Eg(t){for(let n=0;n<cr.length;n++){const r=cr[n],o=r.popperNode();r.$_mouseDownContains=o.contains(t.target)}}function Sk(t){u0(t)}function kk(t){u0(t,!0)}function u0(t,n=!1){for(let r=0;r<cr.length;r++){const o=cr[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 Ck(t){for(let n=0;n<cr.length;n++)cr[n].$_computePosition(t)}function Tk(){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 ga;function nf(){nf.init||(nf.init=!0,ga=Tk()!==-1)}var dc={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){nf(),cl(()=>{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",ga&&this.$el.appendChild(t),t.data="about:blank",ga||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&&(!ga&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Ek=n1();gm("data-v-b329ee4c");const Lk={class:"resize-observer",tabindex:"-1"};vm();const Ak=Ek((t,n,r,o,a,u)=>(ht(),ce("div",Lk)));dc.render=Ak;dc.__scopeId="data-v-b329ee4c";dc.__file="src/components/ResizeObserver.vue";var f0={computed:{themeClass(){return xk(this.theme)}}},Jf=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r};const Mk=oe({name:"VPopperContent",components:{ResizeObserver:dc},mixins:[f0],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}}}),Nk=["id","aria-hidden","tabindex","data-popper-placement"],Ok={ref:"inner",class:"v-popper__inner"},Pk=ut("div",{class:"v-popper__arrow-outer"},null,-1),$k=ut("div",{class:"v-popper__arrow-inner"},null,-1),Dk=[Pk,$k];function Rk(t,n,r,o,a,u){const f=Gi("ResizeObserver");return ht(),Mt("div",{id:t.popperId,ref:"popover",class:ge(["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:kn({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]=Vu(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[ut("div",{class:"v-popper__wrapper",style:kn({transformOrigin:t.result.transformOrigin})},[ut("div",Ok,[t.mounted?(ht(),Mt(ue,{key:0},[ut("div",null,[Kn(t.$slots,"default")]),t.handleResize?(ht(),ce(f,{key:0,onNotify:n[0]||(n[0]=h=>t.$emit("resize",h))})):ye("",!0)],64)):ye("",!0)],512),ut("div",{ref:"arrow",class:"v-popper__arrow-container",style:kn({left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)})},Dk,4)],4)],46,Nk)}var h0=Jf(Mk,[["render",Rk]]),d0={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 zk=oe({name:"VPopperWrapper",components:{Popper:c0(),PopperContent:h0},mixins:[d0,f0],inheritAttrs:!1,props:{theme:{type:String,default:null}},computed:{finalTheme(){var t;return(t=this.theme)!=null?t:this.$options.vPopperTheme},popperAttrs(){const t=Nr({},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 Ik(t,n,r,o,a,u){const f=Gi("PopperContent"),h=Gi("Popper");return ht(),ce(h,hi({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:m,skipTransition:b,autoHide:x,show:S,hide:M,handleResize:A,onResize:E,classes:C,result:L})=>[ut("div",{ref:"reference",class:ge(["v-popper",[t.$attrs.class,t.themeClass,{"v-popper--shown":g}]]),style:kn(t.$attrs.style)},[Kn(t.$slots,"default",{shown:g,show:S,hide:M}),Rt(f,{ref:"popperContent","popper-id":p,theme:t.finalTheme,shown:g,mounted:m,"skip-transition":b,"auto-hide":x,"handle-resize":A,classes:C,result:L,onHide:M,onResize:E},{default:Jt(()=>[Kn(t.$slots,"popper",{shown:g,hide:M})]),_: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 Zf=Jf(zk,[["render",Ik]]);const Lg=oe(dl(Nr({},Zf),{name:"VDropdown",vPopperTheme:"dropdown"})),Ag=oe(dl(Nr({},Zf),{name:"VMenu",vPopperTheme:"menu"})),Mg=oe(dl(Nr({},Zf),{name:"VTooltip",vPopperTheme:"tooltip"})),Fk=oe({name:"VTooltipDirective",components:{Popper:c0(),PopperContent:h0},mixins:[d0],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>Ho(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>Ho(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}}}),qk=["innerHTML"],Hk=["textContent"];function Bk(t,n,r,o,a,u){const f=Gi("PopperContent"),h=Gi("Popper");return ht(),ce(h,hi({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:m,skipTransition:b,autoHide:x,hide:S,handleResize:M,onResize:A,classes:E,result:C})=>[Rt(f,{ref:"popperContent",class:ge({"v-popper--tooltip-loading":t.loading}),"popper-id":p,theme:t.theme,shown:g,mounted:m,"skip-transition":b,"auto-hide":x,"handle-resize":M,classes:E,result:C,onHide:S,onResize:A},{default:Jt(()=>[t.html?(ht(),Mt("div",{key:0,innerHTML:t.finalContent},null,8,qk)):(ht(),Mt("div",{key:1,textContent:Zt(t.finalContent)},null,8,Hk))]),_: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 Wk=Jf(Fk,[["render",Bk]]);const p0="v-popper--has-tooltip";function Uk(t,n){let r=t.placement;if(!r&&n)for(const o of a0)n[o]&&(r=o);return r||(r=Ho(t.theme||"tooltip","placement")),r}function g0(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=Uk(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let Tu,Qs,jk=0;function Gk(){if(Tu)return;Qs=Kt([]),Tu=Bm({name:"VTooltipDirectiveApp",setup(){return{directives:Qs}},render(){return this.directives.map(n=>fl(Wk,dl(Nr({},n.options),{shown:n.shown.value||n.options.shown,key:n.id})))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),Tu.mount(t)}function v0(t,n,r){Gk();const o=Kt(g0(t,n,r)),a=Kt(!1),u={id:jk++,options:o,shown:a};return Qs.value.push(u),t.classList&&t.classList.add(p0),t.$_popper={options:o,item:u,show(){a.value=!0},hide(){a.value=!1}}}function Qf(t){if(t.$_popper){const n=Qs.value.indexOf(t.$_popper.item);n!==-1&&Qs.value.splice(n,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(p0)}function Ng(t,{value:n,oldValue:r,modifiers:o}){const a=g0(t,n,o);if(!a.content||Ho(a.theme||"tooltip","disabled"))Qf(t);else{let u;t.$_popper?(u=t.$_popper,u.options.value=a):u=v0(t,n,o),typeof n.shown<"u"&&n.shown!==t.$_popperOldShown&&(t.$_popperOldShown=n.shown,n.shown?u.show():u.hide())}}var m0={beforeMount:Ng,updated:Ng,beforeUnmount(t){Qf(t)}};function Og(t){t.addEventListener("click",y0),t.addEventListener("touchstart",b0,Bo?{passive:!0}:!1)}function Pg(t){t.removeEventListener("click",y0),t.removeEventListener("touchstart",b0),t.removeEventListener("touchend",w0),t.removeEventListener("touchcancel",x0)}function y0(t){const n=t.currentTarget;t.closePopover=!n.$_vclosepopover_touch,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}function b0(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",w0),n.addEventListener("touchcancel",x0)}}function w0(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 x0(t){const n=t.currentTarget;n.$_vclosepopover_touch=!1}var Vk={beforeMount(t,{value:n,modifiers:r}){t.$_closePopoverModifiers=r,(typeof n>"u"||n)&&Og(t)},updated(t,{value:n,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,n!==r&&(typeof n>"u"||n?Og(t):Pg(t))},beforeUnmount(t){Pg(t)}};const Kk=m0;function Xk(t,n={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,s0(Ui,n),t.directive("tooltip",m0),t.directive("close-popper",Vk),t.component("v-tooltip",Mg),t.component("VTooltip",Mg),t.component("v-dropdown",Lg),t.component("VDropdown",Lg),t.component("v-menu",Ag),t.component("VMenu",Ag))}const _0={version:"2.0.0-y.0",install:Xk,options:Ui};var $g;const S0=typeof window<"u",Yk=t=>typeof t<"u",k0=t=>typeof t=="function",Jk=t=>typeof t=="string",va=()=>{};S0&&(($g=window==null?void 0:window.navigator)==null?void 0:$g.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Vi(t){return typeof t=="function"?t():J(t)}function th(t,n){function r(...o){t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})}return r}const C0=t=>t();function T0(t,n={}){let r,o;return u=>{const f=Vi(t),h=Vi(n.maxWait);if(r&&clearTimeout(r),f<=0||h!==void 0&&h<=0)return o&&(clearTimeout(o),o=null),u();h&&!o&&(o=setTimeout(()=>{r&&clearTimeout(r),o=null,u()},h)),r=setTimeout(()=>{o&&clearTimeout(o),o=null,u()},f)}}function Zk(t,n=!0,r=!0){let o=0,a,u=!0;const f=()=>{a&&(clearTimeout(a),a=void 0)};return p=>{const g=Vi(t),m=Date.now()-o;if(f(),g<=0)return o=Date.now(),p();m>g&&(r||!u)?(o=Date.now(),p()):n&&(a=setTimeout(()=>{o=Date.now(),u=!0,f(),p()},g)),!r&&!a&&(a=setTimeout(()=>u=!0,g)),u=!1}}function Qk(t=C0){const n=Kt(!0);function r(){n.value=!1}function o(){n.value=!0}return{isActive:n,pause:r,resume:o,eventFilter:(...u)=>{n.value&&t(...u)}}}function tC(t){return t}function eh(t){return mx()?(yx(t),!0):!1}function Dg(t,n=200,r={}){return th(T0(n,r),t)}function eC(t,n=200,r=!1,o=!0){return th(Zk(n,r,o),t)}function nC(t,n=200,r=!0,o=!0){if(n<=0)return t;const a=Kt(t.value),u=eC(()=>{a.value=t.value},n,r,o);return Fe(t,()=>u()),a}function rC(t){return typeof t=="function"?St(t):Kt(t)}function nh(t,n=!0){oc()?ul(t):n?t():cl(t)}function iC(t=!1,n={}){const{truthyValue:r=!0,falsyValue:o=!1}=n,a=Ie(t),u=Kt(t);function f(h){if(arguments.length)return u.value=h,u.value;{const p=Vi(r);return u.value=u.value===p?Vi(o):p,u.value}}return a?f:[u,f]}var Rg=Object.getOwnPropertySymbols,oC=Object.prototype.hasOwnProperty,sC=Object.prototype.propertyIsEnumerable,lC=(t,n)=>{var r={};for(var o in t)oC.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Rg)for(var o of Rg(t))n.indexOf(o)<0&&sC.call(t,o)&&(r[o]=t[o]);return r};function E0(t,n,r={}){const o=r,{eventFilter:a=C0}=o,u=lC(o,["eventFilter"]);return Fe(t,th(a,n),u)}var aC=Object.defineProperty,cC=Object.defineProperties,uC=Object.getOwnPropertyDescriptors,$a=Object.getOwnPropertySymbols,L0=Object.prototype.hasOwnProperty,A0=Object.prototype.propertyIsEnumerable,zg=(t,n,r)=>n in t?aC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,fC=(t,n)=>{for(var r in n||(n={}))L0.call(n,r)&&zg(t,r,n[r]);if($a)for(var r of $a(n))A0.call(n,r)&&zg(t,r,n[r]);return t},hC=(t,n)=>cC(t,uC(n)),dC=(t,n)=>{var r={};for(var o in t)L0.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&$a)for(var o of $a(t))n.indexOf(o)<0&&A0.call(t,o)&&(r[o]=t[o]);return r};function pC(t,n,r={}){const o=r,{debounce:a=0,maxWait:u=void 0}=o,f=dC(o,["debounce","maxWait"]);return E0(t,n,hC(fC({},f),{eventFilter:T0(a,{maxWait:u})}))}function gC(t,n,r){const o=Fe(t,(...a)=>(cl(()=>o()),n(...a)),r)}var vC=Object.defineProperty,mC=Object.defineProperties,yC=Object.getOwnPropertyDescriptors,Da=Object.getOwnPropertySymbols,M0=Object.prototype.hasOwnProperty,N0=Object.prototype.propertyIsEnumerable,Ig=(t,n,r)=>n in t?vC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,bC=(t,n)=>{for(var r in n||(n={}))M0.call(n,r)&&Ig(t,r,n[r]);if(Da)for(var r of Da(n))N0.call(n,r)&&Ig(t,r,n[r]);return t},wC=(t,n)=>mC(t,yC(n)),xC=(t,n)=>{var r={};for(var o in t)M0.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Da)for(var o of Da(t))n.indexOf(o)<0&&N0.call(t,o)&&(r[o]=t[o]);return r};function O0(t,n,r={}){const o=r,{eventFilter:a}=o,u=xC(o,["eventFilter"]),{eventFilter:f,pause:h,resume:p,isActive:g}=Qk(a);return{stop:E0(t,n,wC(bC({},u),{eventFilter:f})),pause:h,resume:p,isActive:g}}function _C(t,n,r){let o;Ie(r)?o={evaluating:r}:o=r||{};const{lazy:a=!1,evaluating:u=void 0,onError:f=va}=o,h=Kt(!a),p=Kt(n);let g=0;return Ff(async m=>{if(!h.value)return;g++;const b=g;let x=!1;u&&Promise.resolve().then(()=>{u.value=!0});try{const S=await t(M=>{m(()=>{u&&(u.value=!1),x||M()})});b===g&&(p.value=S)}catch(S){f(S)}finally{u&&b===g&&(u.value=!1),x=!0}}),a?St(()=>(h.value=!0,p.value)):p}function P0(t){var n;const r=Vi(t);return(n=r==null?void 0:r.$el)!=null?n:r}const dr=S0?window:void 0;function Wo(...t){let n,r,o,a;if(Jk(t[0])?([r,o,a]=t,n=dr):[n,r,o,a]=t,!n)return va;let u=va;const f=Fe(()=>P0(n),p=>{u(),p&&(p.addEventListener(r,o,a),u=()=>{p.removeEventListener(r,o,a),u=va})},{immediate:!0,flush:"post"}),h=()=>{f(),u()};return eh(h),h}const SC=t=>typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0;function kC(...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=dr,eventName:u="keydown",passive:f=!1}=o,h=SC(n);return Wo(a,u,g=>{h(g)&&r(g)},f)}function $0(t,n=!1){const r=Kt(),o=()=>r.value=Boolean(t());return o(),nh(o,n),r}function CC(t,n={}){const{window:r=dr}=n,o=$0(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let a;const u=Kt(!1),f=()=>{!a||("removeEventListener"in a?a.removeEventListener("change",h):a.removeListener(h))},h=()=>{!o.value||(f(),a=r.matchMedia(rC(t).value),u.value=a.matches,"addEventListener"in a?a.addEventListener("change",h):a.addListener(h))};return Ff(h),eh(()=>f()),u}function TC(t){return JSON.parse(JSON.stringify(t))}const rf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},of="__vueuse_ssr_handlers__";rf[of]=rf[of]||{};const EC=rf[of];function D0(t,n){return EC[t]||n}function LC(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"||Array.isArray(t)?"object":Number.isNaN(t)?"any":"number"}var AC=Object.defineProperty,Fg=Object.getOwnPropertySymbols,MC=Object.prototype.hasOwnProperty,NC=Object.prototype.propertyIsEnumerable,qg=(t,n,r)=>n in t?AC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Hg=(t,n)=>{for(var r in n||(n={}))MC.call(n,r)&&qg(t,r,n[r]);if(Fg)for(var r of Fg(n))NC.call(n,r)&&qg(t,r,n[r]);return t};const OC={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()}};function PC(t,n,r,o={}){var a;const{flush:u="pre",deep:f=!0,listenToStorageChanges:h=!0,writeDefaults:p=!0,mergeDefaults:g=!1,shallow:m,window:b=dr,eventFilter:x,onError:S=it=>{console.error(it)}}=o,M=(m?ll:Kt)(n);if(!r)try{r=D0("getDefaultStorage",()=>{var it;return(it=dr)==null?void 0:it.localStorage})()}catch(it){S(it)}if(!r)return M;const A=Vi(n),E=LC(A),C=(a=o.serializer)!=null?a:OC[E],{pause:L,resume:z}=O0(M,()=>D(M.value),{flush:u,deep:f,eventFilter:x});return b&&h&&Wo(b,"storage",j),j(),M;function D(it){try{it==null?r.removeItem(t):r.setItem(t,C.write(it))}catch(Q){S(Q)}}function G(it){L();try{const Q=it?it.newValue:r.getItem(t);if(Q==null)return p&&A!==null&&r.setItem(t,C.write(A)),A;if(!it&&g){const dt=C.read(Q);return k0(g)?g(dt,A):E==="object"&&!Array.isArray(dt)?Hg(Hg({},A),dt):dt}else return typeof Q!="string"?Q:C.read(Q)}catch(Q){S(Q)}finally{z()}}function j(it){if(!(it&&it.storageArea!==r)){if(it&&it.key===null){M.value=A;return}it&&it.key!==t||(M.value=G(it))}}}function R0(t){return CC("(prefers-color-scheme: dark)",t)}var $C=Object.defineProperty,Bg=Object.getOwnPropertySymbols,DC=Object.prototype.hasOwnProperty,RC=Object.prototype.propertyIsEnumerable,Wg=(t,n,r)=>n in t?$C(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,zC=(t,n)=>{for(var r in n||(n={}))DC.call(n,r)&&Wg(t,r,n[r]);if(Bg)for(var r of Bg(n))RC.call(n,r)&&Wg(t,r,n[r]);return t};function IC(t={}){const{selector:n="html",attribute:r="class",initialValue:o="auto",window:a=dr,storage:u,storageKey:f="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:p,emitAuto:g}=t,m=zC({auto:"",light:"light",dark:"dark"},t.modes||{}),b=R0({window:a}),x=St(()=>b.value?"dark":"light"),S=p||(f==null?Kt(o):PC(f,o,u,{window:a,listenToStorageChanges:h})),M=St({get(){return S.value==="auto"&&!g?x.value:S.value},set(L){S.value=L}}),A=D0("updateHTMLAttrs",(L,z,D)=>{const G=a==null?void 0:a.document.querySelector(L);if(!!G)if(z==="class"){const j=D.split(/\s/g);Object.values(m).flatMap(it=>(it||"").split(/\s/g)).filter(Boolean).forEach(it=>{j.includes(it)?G.classList.add(it):G.classList.remove(it)})}else G.setAttribute(z,D)});function E(L){var z;const D=L==="auto"?x.value:L;A(n,r,(z=m[D])!=null?z:D)}function C(L){t.onChanged?t.onChanged(L,E):E(L)}return Fe(M,C,{flush:"post",immediate:!0}),g&&Fe(x,()=>C(M.value),{flush:"post"}),nh(()=>C(M.value)),M}var FC=Object.defineProperty,qC=Object.defineProperties,HC=Object.getOwnPropertyDescriptors,Ug=Object.getOwnPropertySymbols,BC=Object.prototype.hasOwnProperty,WC=Object.prototype.propertyIsEnumerable,jg=(t,n,r)=>n in t?FC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,UC=(t,n)=>{for(var r in n||(n={}))BC.call(n,r)&&jg(t,r,n[r]);if(Ug)for(var r of Ug(n))WC.call(n,r)&&jg(t,r,n[r]);return t},jC=(t,n)=>qC(t,HC(n));function GC(t={}){const{valueDark:n="dark",valueLight:r="",window:o=dr}=t,a=IC(jC(UC({},t),{onChanged:(h,p)=>{var g;t.onChanged?(g=t.onChanged)==null||g.call(t,h==="dark"):p(h)},modes:{dark:n,light:r}})),u=R0({window:o});return St({get(){return a.value==="dark"},set(h){h===u.value?a.value="auto":a.value=h?"dark":"light"}})}var Gg=Object.getOwnPropertySymbols,VC=Object.prototype.hasOwnProperty,KC=Object.prototype.propertyIsEnumerable,XC=(t,n)=>{var r={};for(var o in t)VC.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Gg)for(var o of Gg(t))n.indexOf(o)<0&&KC.call(t,o)&&(r[o]=t[o]);return r};function YC(t,n,r={}){const o=r,{window:a=dr}=o,u=XC(o,["window"]);let f;const h=$0(()=>a&&"ResizeObserver"in a),p=()=>{f&&(f.disconnect(),f=void 0)},g=Fe(()=>P0(t),b=>{p(),h.value&&a&&b&&(f=new ResizeObserver(n),f.observe(b,u))},{immediate:!0,flush:"post"}),m=()=>{p(),g()};return eh(m),{isSupported:h,stop:m}}var Vg;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(Vg||(Vg={}));var JC=Object.defineProperty,Kg=Object.getOwnPropertySymbols,ZC=Object.prototype.hasOwnProperty,QC=Object.prototype.propertyIsEnumerable,Xg=(t,n,r)=>n in t?JC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,tT=(t,n)=>{for(var r in n||(n={}))ZC.call(n,r)&&Xg(t,r,n[r]);if(Kg)for(var r of Kg(n))QC.call(n,r)&&Xg(t,r,n[r]);return t};const eT={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};tT({linear:tC},eT);function nT(t="history",n={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:a=!1,write:u=!0,window:f=dr}=n;if(!f)return hr(r);const h=hr({});function p(){if(t==="history")return f.location.search||"";if(t==="hash"){const C=f.location.hash||"",L=C.indexOf("?");return L>0?C.slice(L):""}else return(f.location.hash||"").replace(/^#/,"")}function g(C){const L=C.toString();if(t==="history")return`${L?`?${L}`:""}${f.location.hash||""}`;if(t==="hash-params")return`${f.location.search||""}${L?`#${L}`:""}`;const z=f.location.hash||"#",D=z.indexOf("?");return D>0?`${z.slice(0,D)}${L?`?${L}`:""}`:`${z}${L?`?${L}`:""}`}function m(){return new URLSearchParams(p())}function b(C){const L=new Set(Object.keys(h));for(const z of C.keys()){const D=C.getAll(z);h[z]=D.length>1?D:C.get(z)||"",L.delete(z)}Array.from(L).forEach(z=>delete h[z])}const{pause:x,resume:S}=O0(h,()=>{const C=new URLSearchParams("");Object.keys(h).forEach(L=>{const z=h[L];Array.isArray(z)?z.forEach(D=>C.append(L,D)):o&&z==null||a&&!z?C.delete(L):C.set(L,z)}),M(C)},{deep:!0});function M(C,L){x(),L&&b(C),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(C)),S()}function A(){!u||M(m(),!0)}Wo(f,"popstate",A,!1),t!=="history"&&Wo(f,"hashchange",A,!1);const E=m();return E.keys().next().value?b(E):Object.assign(h,r),h}function rT(t,n,r,o={}){var a,u,f;const{clone:h=!1,passive:p=!1,eventName:g,deep:m=!1,defaultValue:b}=o,x=oc(),S=r||(x==null?void 0:x.emit)||((a=x==null?void 0:x.$emit)==null?void 0:a.bind(x))||((f=(u=x==null?void 0:x.proxy)==null?void 0:u.$emit)==null?void 0:f.bind(x==null?void 0:x.proxy));let M=g;n||(n="modelValue"),M=g||M||`update:${n.toString()}`;const A=C=>h?k0(h)?h(C):TC(C):C,E=()=>Yk(t[n])?A(t[n]):b;if(p){const C=E(),L=Kt(C);return Fe(()=>t[n],z=>L.value=A(z)),Fe(L,z=>{(z!==t[n]||m)&&S(M,z)},{deep:m}),L}else return St({get(){return E()},set(C){S(M,C)}})}function iT(t={}){const{window:n=dr,initialWidth:r=1/0,initialHeight:o=1/0,listenOrientation:a=!0,includeScrollbar:u=!0}=t,f=Kt(r),h=Kt(o),p=()=>{n&&(u?(f.value=n.innerWidth,h.value=n.innerHeight):(f.value=n.document.documentElement.clientWidth,h.value=n.document.documentElement.clientHeight))};return p(),nh(p),Wo("resize",p,{passive:!0}),a&&Wo("orientationchange",p,{passive:!0}),{width:f,height:h}}const oT=6e4;function sT(t,n){const{post:r,on:o,eventNames:a=[],serialize:u=m=>m,deserialize:f=m=>m,timeout:h=oT}=n,p=new Map,g=new Proxy({},{get(m,b){const x=(...M)=>{r(u({m:b,a:M,t:"q"}))};if(a.includes(b))return x.asEvent=x,x;const S=(...M)=>new Promise((A,E)=>{const C=aT();p.set(C,{resolve:A,reject:E}),r(u({m:b,a:M,i:C,t:"q"})),h>=0&&setTimeout(()=>{E(new Error(`[birpc] timeout on calling "${b}"`)),p.delete(C)},h)});return S.asEvent=x,S}});return o(async(m,...b)=>{const x=f(m);if(x.t==="q"){const{m:S,a:M}=x;let A,E;try{A=await t[S].apply(g,M)}catch(C){E=C}x.i&&r(u({t:"s",i:x.i,r:A,e:E}),...b)}else{const{i:S,r:M,e:A}=x,E=p.get(S);A?E==null||E.reject(A):E==null||E.resolve(M),p.delete(S)}}),g}const lT="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function aT(t=21){let n="",r=t;for(;r--;)n+=lT[Math.random()*64|0];return n}/*! (c) 2020 Andrea Giammarchi */const{parse:cT,stringify:uT}=JSON,{keys:fT}=Object,tl=String,z0="string",Yg={},Ra="object",I0=(t,n)=>n,hT=t=>t instanceof tl?tl(t):t,dT=(t,n)=>typeof n===z0?new tl(n):n,F0=(t,n,r,o)=>{const a=[];for(let u=fT(r),{length:f}=u,h=0;h<f;h++){const p=u[h],g=r[p];if(g instanceof tl){const m=t[g];typeof m===Ra&&!n.has(m)?(n.add(m),r[p]=Yg,a.push({k:p,a:[t,n,m,o]})):r[p]=o.call(r,p,m)}else r[p]!==Yg&&(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,F0.apply(null,p))}return r},Jg=(t,n,r)=>{const o=tl(n.push(r)-1);return t.set(r,o),o},pT=(t,n)=>{const r=cT(t,dT).map(hT),o=r[0],a=n||I0,u=typeof o===Ra&&o?F0(r,new Set,o,a):o;return a.call({"":u},"",u)},gT=(t,n,r)=>{const o=n&&typeof n===Ra?(m,b)=>m===""||-1<n.indexOf(m)?b:void 0:n||I0,a=new Map,u=[],f=[];let h=+Jg(a,u,o.call({"":t},"",t)),p=!h;for(;h<u.length;)p=!0,f[h]=uT(u[h++],g,r);return"["+f.join(",")+"]";function g(m,b){if(p)return p=!p,b;const x=o.call(this,m,b);switch(typeof x){case Ra:if(x===null)return x;case z0:return a.get(x)||Jg(a,u,x)}return x}},vT=t=>typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t;class mT{constructor(){Ai(this,"filesMap",new Map);Ai(this,"pathsSet",new Set);Ai(this,"collectingPromise");Ai(this,"idMap",new Map);Ai(this,"taskFileMap",new WeakMap);Ai(this,"errorsSet",new Set)}catchError(n,r){if(vT(n))return n.errors.forEach(o=>this.catchError(o,r));n.type=r,this.errorsSet.add(n)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}startCollectingPaths(){let n;const r=new Promise(o=>{n=o});this.collectingPromise={promise:r,resolve:n}}finishCollectingPaths(){var n;(n=this.collectingPromise)==null||n.resolve(),this.collectingPromise=void 0}async getPaths(){var n;return await((n=this.collectingPromise)==null?void 0:n.promise),Array.from(this.pathsSet)}getFiles(n){return n?n.map(r=>this.filesMap.get(r)).filter(Boolean):Array.from(this.filesMap.values())}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=>{this.filesMap.set(r.filepath,r),this.updateId(r)})}clearFiles(n=[]){n.forEach(r=>{this.filesMap.delete(r)})}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]of n)this.idMap.has(r)&&(this.idMap.get(r).result=o)}updateUserLog(n){const r=n.taskId&&this.idMap.get(n.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(n))}}const Fi=Date;class el extends Fi{constructor(n,r,o,a,u,f,h){super();let p;switch(arguments.length){case 0:p=new Fi;break;case 1:p=new Fi(n);break;default:o=typeof o>"u"?1:o,a=a||0,u=u||0,f=f||0,h=h||0,p=new Fi(n,r,o,a,u,f,h);break}return p}}el.UTC=Fi.UTC;el.now=function(){return new el().valueOf()};el.parse=function(t){return Fi.parse(t)};el.toString=function(){return Fi.toString()};function q0(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function sf(t){return t.type==="test"||t.type==="benchmark"}function H0(t){return q0(t).flatMap(n=>sf(n)?[n]:n.tasks.flatMap(r=>sf(r)?[r]:H0(r)))}function rh(t=[]){return q0(t).flatMap(n=>sf(n)?[n]:[n,...rh(n.tasks)])}function pc(t){return H0(t).some(n=>{var o,a;const r=(a=(o=n.result)==null?void 0:o.error)==null?void 0:a.message;return r==null?void 0:r.match(/Snapshot .* mismatched/)})}function yT(t){const n=[t.name];let r=t;for(;(r==null?void 0:r.suite)||(r==null?void 0:r.file);)r=r.suite||r.file,r!=null&&r.name&&n.unshift(r.name);return n}function bT(t,n={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:a=2e3,reconnectTries:u=10,reactive:f=C=>C,WebSocketConstructor:h=globalThis.WebSocket}=n;let p=u;const g=f({ws:new h(t),state:new mT,waitForConnection:E,reconnect:M});g.state.filesMap=f(g.state.filesMap),g.state.idMap=f(g.state.idMap);let m;const b={onPathsCollected(C){var L;g.state.collectPaths(C),(L=r.onPathsCollected)==null||L.call(r,C)},onCollected(C){var L;g.state.collectFiles(C),(L=r.onCollected)==null||L.call(r,C)},onTaskUpdate(C){var L;g.state.updateTasks(C),(L=r.onTaskUpdate)==null||L.call(r,C)},onUserConsoleLog(C){g.state.updateUserLog(C)},onFinished(C){var L;(L=r.onFinished)==null||L.call(r,C)}},x={post:C=>g.ws.send(C),on:C=>m=C,serialize:gT,deserialize:pT};g.rpc=sT(b,x);let S;function M(C=!1){C&&(p=u),g.ws=new h(t),A()}function A(){S=new Promise(C=>{g.ws.addEventListener("open",()=>{p=u,C()})}),g.ws.addEventListener("message",C=>{m(C.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(M,a)})}A();function E(){return S}return g}const B0=nT("hash-params",{initialValue:{file:"",view:null}}),Mr=$f(B0,"file"),or=$f(B0,"view"),wT=location.port,xT=[location.hostname,wT].filter(Boolean).join(":"),_T=`${location.protocol==="https:"?"wss:":"ws:"}//${xT}/__vitest_api__`,za=Kt("idle"),We=bT(_T,{reactive:hr,handlers:{onTaskUpdate(){za.value="running"},onFinished(){za.value="idle"}}}),lf=ll({}),qi=Kt("CONNECTING"),Tn=St(()=>We.state.getFiles()),Ee=St(()=>Tn.value.find(t=>t.id===Mr.value)),W0=St(()=>rh(Ee.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]),Ia=t=>Tn.value.find(n=>n.id===t),ST=St(()=>qi.value==="OPEN"),Eu=St(()=>qi.value==="CONNECTING");St(()=>qi.value==="CLOSED");function Zg(t=We.state.getFiles()){return U0(t)}function U0(t){return t.forEach(n=>{delete n.result,rh(n).forEach(r=>delete r.result)}),We.rpc.rerun(t.map(n=>n.filepath))}function kT(){if(Ee.value)return U0([Ee.value])}Fe(()=>We.ws,t=>{qi.value="CONNECTING",t.addEventListener("open",()=>{qi.value="OPEN",We.state.filesMap.clear(),We.rpc.getFiles().then(n=>We.state.collectFiles(n)),We.rpc.getConfig().then(n=>lf.value=n)}),t.addEventListener("close",()=>{setTimeout(()=>{qi.value==="CONNECTING"&&(qi.value="CLOSED")},1e3)})},{immediate:!0});const CT={"text-2xl":""},TT=ut("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),ET=oe({__name:"ConnectionOverlay",setup(t){return(n,r)=>J(ST)?ye("",!0):(ht(),Mt("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)=>J(We).reconnect&&J(We).reconnect(...o))},[ut("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ge(J(Eu)?"animate-pulse":"")},[ut("div",{text:"5xl",class:ge(J(Eu)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ut("div",CT,Zt(J(Eu)?"Connecting...":"Disconnected"),1),TT],2)]))}});var Ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},j0={},Pr={};const LT="\xC1",AT="\xE1",MT="\u0102",NT="\u0103",OT="\u223E",PT="\u223F",$T="\u223E\u0333",DT="\xC2",RT="\xE2",zT="\xB4",IT="\u0410",FT="\u0430",qT="\xC6",HT="\xE6",BT="\u2061",WT="\u{1D504}",UT="\u{1D51E}",jT="\xC0",GT="\xE0",VT="\u2135",KT="\u2135",XT="\u0391",YT="\u03B1",JT="\u0100",ZT="\u0101",QT="\u2A3F",tE="&",eE="&",nE="\u2A55",rE="\u2A53",iE="\u2227",oE="\u2A5C",sE="\u2A58",lE="\u2A5A",aE="\u2220",cE="\u29A4",uE="\u2220",fE="\u29A8",hE="\u29A9",dE="\u29AA",pE="\u29AB",gE="\u29AC",vE="\u29AD",mE="\u29AE",yE="\u29AF",bE="\u2221",wE="\u221F",xE="\u22BE",_E="\u299D",SE="\u2222",kE="\xC5",CE="\u237C",TE="\u0104",EE="\u0105",LE="\u{1D538}",AE="\u{1D552}",ME="\u2A6F",NE="\u2248",OE="\u2A70",PE="\u224A",$E="\u224B",DE="'",RE="\u2061",zE="\u2248",IE="\u224A",FE="\xC5",qE="\xE5",HE="\u{1D49C}",BE="\u{1D4B6}",WE="\u2254",UE="*",jE="\u2248",GE="\u224D",VE="\xC3",KE="\xE3",XE="\xC4",YE="\xE4",JE="\u2233",ZE="\u2A11",QE="\u224C",tL="\u03F6",eL="\u2035",nL="\u223D",rL="\u22CD",iL="\u2216",oL="\u2AE7",sL="\u22BD",lL="\u2305",aL="\u2306",cL="\u2305",uL="\u23B5",fL="\u23B6",hL="\u224C",dL="\u0411",pL="\u0431",gL="\u201E",vL="\u2235",mL="\u2235",yL="\u2235",bL="\u29B0",wL="\u03F6",xL="\u212C",_L="\u212C",SL="\u0392",kL="\u03B2",CL="\u2136",TL="\u226C",EL="\u{1D505}",LL="\u{1D51F}",AL="\u22C2",ML="\u25EF",NL="\u22C3",OL="\u2A00",PL="\u2A01",$L="\u2A02",DL="\u2A06",RL="\u2605",zL="\u25BD",IL="\u25B3",FL="\u2A04",qL="\u22C1",HL="\u22C0",BL="\u290D",WL="\u29EB",UL="\u25AA",jL="\u25B4",GL="\u25BE",VL="\u25C2",KL="\u25B8",XL="\u2423",YL="\u2592",JL="\u2591",ZL="\u2593",QL="\u2588",tA="=\u20E5",eA="\u2261\u20E5",nA="\u2AED",rA="\u2310",iA="\u{1D539}",oA="\u{1D553}",sA="\u22A5",lA="\u22A5",aA="\u22C8",cA="\u29C9",uA="\u2510",fA="\u2555",hA="\u2556",dA="\u2557",pA="\u250C",gA="\u2552",vA="\u2553",mA="\u2554",yA="\u2500",bA="\u2550",wA="\u252C",xA="\u2564",_A="\u2565",SA="\u2566",kA="\u2534",CA="\u2567",TA="\u2568",EA="\u2569",LA="\u229F",AA="\u229E",MA="\u22A0",NA="\u2518",OA="\u255B",PA="\u255C",$A="\u255D",DA="\u2514",RA="\u2558",zA="\u2559",IA="\u255A",FA="\u2502",qA="\u2551",HA="\u253C",BA="\u256A",WA="\u256B",UA="\u256C",jA="\u2524",GA="\u2561",VA="\u2562",KA="\u2563",XA="\u251C",YA="\u255E",JA="\u255F",ZA="\u2560",QA="\u2035",tM="\u02D8",eM="\u02D8",nM="\xA6",rM="\u{1D4B7}",iM="\u212C",oM="\u204F",sM="\u223D",lM="\u22CD",aM="\u29C5",cM="\\",uM="\u27C8",fM="\u2022",hM="\u2022",dM="\u224E",pM="\u2AAE",gM="\u224F",vM="\u224E",mM="\u224F",yM="\u0106",bM="\u0107",wM="\u2A44",xM="\u2A49",_M="\u2A4B",SM="\u2229",kM="\u22D2",CM="\u2A47",TM="\u2A40",EM="\u2145",LM="\u2229\uFE00",AM="\u2041",MM="\u02C7",NM="\u212D",OM="\u2A4D",PM="\u010C",$M="\u010D",DM="\xC7",RM="\xE7",zM="\u0108",IM="\u0109",FM="\u2230",qM="\u2A4C",HM="\u2A50",BM="\u010A",WM="\u010B",UM="\xB8",jM="\xB8",GM="\u29B2",VM="\xA2",KM="\xB7",XM="\xB7",YM="\u{1D520}",JM="\u212D",ZM="\u0427",QM="\u0447",tN="\u2713",eN="\u2713",nN="\u03A7",rN="\u03C7",iN="\u02C6",oN="\u2257",sN="\u21BA",lN="\u21BB",aN="\u229B",cN="\u229A",uN="\u229D",fN="\u2299",hN="\xAE",dN="\u24C8",pN="\u2296",gN="\u2295",vN="\u2297",mN="\u25CB",yN="\u29C3",bN="\u2257",wN="\u2A10",xN="\u2AEF",_N="\u29C2",SN="\u2232",kN="\u201D",CN="\u2019",TN="\u2663",EN="\u2663",LN=":",AN="\u2237",MN="\u2A74",NN="\u2254",ON="\u2254",PN=",",$N="@",DN="\u2201",RN="\u2218",zN="\u2201",IN="\u2102",FN="\u2245",qN="\u2A6D",HN="\u2261",BN="\u222E",WN="\u222F",UN="\u222E",jN="\u{1D554}",GN="\u2102",VN="\u2210",KN="\u2210",XN="\xA9",YN="\xA9",JN="\u2117",ZN="\u2233",QN="\u21B5",tO="\u2717",eO="\u2A2F",nO="\u{1D49E}",rO="\u{1D4B8}",iO="\u2ACF",oO="\u2AD1",sO="\u2AD0",lO="\u2AD2",aO="\u22EF",cO="\u2938",uO="\u2935",fO="\u22DE",hO="\u22DF",dO="\u21B6",pO="\u293D",gO="\u2A48",vO="\u2A46",mO="\u224D",yO="\u222A",bO="\u22D3",wO="\u2A4A",xO="\u228D",_O="\u2A45",SO="\u222A\uFE00",kO="\u21B7",CO="\u293C",TO="\u22DE",EO="\u22DF",LO="\u22CE",AO="\u22CF",MO="\xA4",NO="\u21B6",OO="\u21B7",PO="\u22CE",$O="\u22CF",DO="\u2232",RO="\u2231",zO="\u232D",IO="\u2020",FO="\u2021",qO="\u2138",HO="\u2193",BO="\u21A1",WO="\u21D3",UO="\u2010",jO="\u2AE4",GO="\u22A3",VO="\u290F",KO="\u02DD",XO="\u010E",YO="\u010F",JO="\u0414",ZO="\u0434",QO="\u2021",tP="\u21CA",eP="\u2145",nP="\u2146",rP="\u2911",iP="\u2A77",oP="\xB0",sP="\u2207",lP="\u0394",aP="\u03B4",cP="\u29B1",uP="\u297F",fP="\u{1D507}",hP="\u{1D521}",dP="\u2965",pP="\u21C3",gP="\u21C2",vP="\xB4",mP="\u02D9",yP="\u02DD",bP="`",wP="\u02DC",xP="\u22C4",_P="\u22C4",SP="\u22C4",kP="\u2666",CP="\u2666",TP="\xA8",EP="\u2146",LP="\u03DD",AP="\u22F2",MP="\xF7",NP="\xF7",OP="\u22C7",PP="\u22C7",$P="\u0402",DP="\u0452",RP="\u231E",zP="\u230D",IP="$",FP="\u{1D53B}",qP="\u{1D555}",HP="\xA8",BP="\u02D9",WP="\u20DC",UP="\u2250",jP="\u2251",GP="\u2250",VP="\u2238",KP="\u2214",XP="\u22A1",YP="\u2306",JP="\u222F",ZP="\xA8",QP="\u21D3",t$="\u21D0",e$="\u21D4",n$="\u2AE4",r$="\u27F8",i$="\u27FA",o$="\u27F9",s$="\u21D2",l$="\u22A8",a$="\u21D1",c$="\u21D5",u$="\u2225",f$="\u2913",h$="\u2193",d$="\u2193",p$="\u21D3",g$="\u21F5",v$="\u0311",m$="\u21CA",y$="\u21C3",b$="\u21C2",w$="\u2950",x$="\u295E",_$="\u2956",S$="\u21BD",k$="\u295F",C$="\u2957",T$="\u21C1",E$="\u21A7",L$="\u22A4",A$="\u2910",M$="\u231F",N$="\u230C",O$="\u{1D49F}",P$="\u{1D4B9}",$$="\u0405",D$="\u0455",R$="\u29F6",z$="\u0110",I$="\u0111",F$="\u22F1",q$="\u25BF",H$="\u25BE",B$="\u21F5",W$="\u296F",U$="\u29A6",j$="\u040F",G$="\u045F",V$="\u27FF",K$="\xC9",X$="\xE9",Y$="\u2A6E",J$="\u011A",Z$="\u011B",Q$="\xCA",tD="\xEA",eD="\u2256",nD="\u2255",rD="\u042D",iD="\u044D",oD="\u2A77",sD="\u0116",lD="\u0117",aD="\u2251",cD="\u2147",uD="\u2252",fD="\u{1D508}",hD="\u{1D522}",dD="\u2A9A",pD="\xC8",gD="\xE8",vD="\u2A96",mD="\u2A98",yD="\u2A99",bD="\u2208",wD="\u23E7",xD="\u2113",_D="\u2A95",SD="\u2A97",kD="\u0112",CD="\u0113",TD="\u2205",ED="\u2205",LD="\u25FB",AD="\u2205",MD="\u25AB",ND="\u2004",OD="\u2005",PD="\u2003",$D="\u014A",DD="\u014B",RD="\u2002",zD="\u0118",ID="\u0119",FD="\u{1D53C}",qD="\u{1D556}",HD="\u22D5",BD="\u29E3",WD="\u2A71",UD="\u03B5",jD="\u0395",GD="\u03B5",VD="\u03F5",KD="\u2256",XD="\u2255",YD="\u2242",JD="\u2A96",ZD="\u2A95",QD="\u2A75",tR="=",eR="\u2242",nR="\u225F",rR="\u21CC",iR="\u2261",oR="\u2A78",sR="\u29E5",lR="\u2971",aR="\u2253",cR="\u212F",uR="\u2130",fR="\u2250",hR="\u2A73",dR="\u2242",pR="\u0397",gR="\u03B7",vR="\xD0",mR="\xF0",yR="\xCB",bR="\xEB",wR="\u20AC",xR="!",_R="\u2203",SR="\u2203",kR="\u2130",CR="\u2147",TR="\u2147",ER="\u2252",LR="\u0424",AR="\u0444",MR="\u2640",NR="\uFB03",OR="\uFB00",PR="\uFB04",$R="\u{1D509}",DR="\u{1D523}",RR="\uFB01",zR="\u25FC",IR="\u25AA",FR="fj",qR="\u266D",HR="\uFB02",BR="\u25B1",WR="\u0192",UR="\u{1D53D}",jR="\u{1D557}",GR="\u2200",VR="\u2200",KR="\u22D4",XR="\u2AD9",YR="\u2131",JR="\u2A0D",ZR="\xBD",QR="\u2153",tz="\xBC",ez="\u2155",nz="\u2159",rz="\u215B",iz="\u2154",oz="\u2156",sz="\xBE",lz="\u2157",az="\u215C",cz="\u2158",uz="\u215A",fz="\u215D",hz="\u215E",dz="\u2044",pz="\u2322",gz="\u{1D4BB}",vz="\u2131",mz="\u01F5",yz="\u0393",bz="\u03B3",wz="\u03DC",xz="\u03DD",_z="\u2A86",Sz="\u011E",kz="\u011F",Cz="\u0122",Tz="\u011C",Ez="\u011D",Lz="\u0413",Az="\u0433",Mz="\u0120",Nz="\u0121",Oz="\u2265",Pz="\u2267",$z="\u2A8C",Dz="\u22DB",Rz="\u2265",zz="\u2267",Iz="\u2A7E",Fz="\u2AA9",qz="\u2A7E",Hz="\u2A80",Bz="\u2A82",Wz="\u2A84",Uz="\u22DB\uFE00",jz="\u2A94",Gz="\u{1D50A}",Vz="\u{1D524}",Kz="\u226B",Xz="\u22D9",Yz="\u22D9",Jz="\u2137",Zz="\u0403",Qz="\u0453",tI="\u2AA5",eI="\u2277",nI="\u2A92",rI="\u2AA4",iI="\u2A8A",oI="\u2A8A",sI="\u2A88",lI="\u2269",aI="\u2A88",cI="\u2269",uI="\u22E7",fI="\u{1D53E}",hI="\u{1D558}",dI="`",pI="\u2265",gI="\u22DB",vI="\u2267",mI="\u2AA2",yI="\u2277",bI="\u2A7E",wI="\u2273",xI="\u{1D4A2}",_I="\u210A",SI="\u2273",kI="\u2A8E",CI="\u2A90",TI="\u2AA7",EI="\u2A7A",LI=">",AI=">",MI="\u226B",NI="\u22D7",OI="\u2995",PI="\u2A7C",$I="\u2A86",DI="\u2978",RI="\u22D7",zI="\u22DB",II="\u2A8C",FI="\u2277",qI="\u2273",HI="\u2269\uFE00",BI="\u2269\uFE00",WI="\u02C7",UI="\u200A",jI="\xBD",GI="\u210B",VI="\u042A",KI="\u044A",XI="\u2948",YI="\u2194",JI="\u21D4",ZI="\u21AD",QI="^",tF="\u210F",eF="\u0124",nF="\u0125",rF="\u2665",iF="\u2665",oF="\u2026",sF="\u22B9",lF="\u{1D525}",aF="\u210C",cF="\u210B",uF="\u2925",fF="\u2926",hF="\u21FF",dF="\u223B",pF="\u21A9",gF="\u21AA",vF="\u{1D559}",mF="\u210D",yF="\u2015",bF="\u2500",wF="\u{1D4BD}",xF="\u210B",_F="\u210F",SF="\u0126",kF="\u0127",CF="\u224E",TF="\u224F",EF="\u2043",LF="\u2010",AF="\xCD",MF="\xED",NF="\u2063",OF="\xCE",PF="\xEE",$F="\u0418",DF="\u0438",RF="\u0130",zF="\u0415",IF="\u0435",FF="\xA1",qF="\u21D4",HF="\u{1D526}",BF="\u2111",WF="\xCC",UF="\xEC",jF="\u2148",GF="\u2A0C",VF="\u222D",KF="\u29DC",XF="\u2129",YF="\u0132",JF="\u0133",ZF="\u012A",QF="\u012B",tq="\u2111",eq="\u2148",nq="\u2110",rq="\u2111",iq="\u0131",oq="\u2111",sq="\u22B7",lq="\u01B5",aq="\u21D2",cq="\u2105",uq="\u221E",fq="\u29DD",hq="\u0131",dq="\u22BA",pq="\u222B",gq="\u222C",vq="\u2124",mq="\u222B",yq="\u22BA",bq="\u22C2",wq="\u2A17",xq="\u2A3C",_q="\u2063",Sq="\u2062",kq="\u0401",Cq="\u0451",Tq="\u012E",Eq="\u012F",Lq="\u{1D540}",Aq="\u{1D55A}",Mq="\u0399",Nq="\u03B9",Oq="\u2A3C",Pq="\xBF",$q="\u{1D4BE}",Dq="\u2110",Rq="\u2208",zq="\u22F5",Iq="\u22F9",Fq="\u22F4",qq="\u22F3",Hq="\u2208",Bq="\u2062",Wq="\u0128",Uq="\u0129",jq="\u0406",Gq="\u0456",Vq="\xCF",Kq="\xEF",Xq="\u0134",Yq="\u0135",Jq="\u0419",Zq="\u0439",Qq="\u{1D50D}",t2="\u{1D527}",e2="\u0237",n2="\u{1D541}",r2="\u{1D55B}",i2="\u{1D4A5}",o2="\u{1D4BF}",s2="\u0408",l2="\u0458",a2="\u0404",c2="\u0454",u2="\u039A",f2="\u03BA",h2="\u03F0",d2="\u0136",p2="\u0137",g2="\u041A",v2="\u043A",m2="\u{1D50E}",y2="\u{1D528}",b2="\u0138",w2="\u0425",x2="\u0445",_2="\u040C",S2="\u045C",k2="\u{1D542}",C2="\u{1D55C}",T2="\u{1D4A6}",E2="\u{1D4C0}",L2="\u21DA",A2="\u0139",M2="\u013A",N2="\u29B4",O2="\u2112",P2="\u039B",$2="\u03BB",D2="\u27E8",R2="\u27EA",z2="\u2991",I2="\u27E8",F2="\u2A85",q2="\u2112",H2="\xAB",B2="\u21E4",W2="\u291F",U2="\u2190",j2="\u219E",G2="\u21D0",V2="\u291D",K2="\u21A9",X2="\u21AB",Y2="\u2939",J2="\u2973",Z2="\u21A2",Q2="\u2919",tH="\u291B",eH="\u2AAB",nH="\u2AAD",rH="\u2AAD\uFE00",iH="\u290C",oH="\u290E",sH="\u2772",lH="{",aH="[",cH="\u298B",uH="\u298F",fH="\u298D",hH="\u013D",dH="\u013E",pH="\u013B",gH="\u013C",vH="\u2308",mH="{",yH="\u041B",bH="\u043B",wH="\u2936",xH="\u201C",_H="\u201E",SH="\u2967",kH="\u294B",CH="\u21B2",TH="\u2264",EH="\u2266",LH="\u27E8",AH="\u21E4",MH="\u2190",NH="\u2190",OH="\u21D0",PH="\u21C6",$H="\u21A2",DH="\u2308",RH="\u27E6",zH="\u2961",IH="\u2959",FH="\u21C3",qH="\u230A",HH="\u21BD",BH="\u21BC",WH="\u21C7",UH="\u2194",jH="\u2194",GH="\u21D4",VH="\u21C6",KH="\u21CB",XH="\u21AD",YH="\u294E",JH="\u21A4",ZH="\u22A3",QH="\u295A",tB="\u22CB",eB="\u29CF",nB="\u22B2",rB="\u22B4",iB="\u2951",oB="\u2960",sB="\u2958",lB="\u21BF",aB="\u2952",cB="\u21BC",uB="\u2A8B",fB="\u22DA",hB="\u2264",dB="\u2266",pB="\u2A7D",gB="\u2AA8",vB="\u2A7D",mB="\u2A7F",yB="\u2A81",bB="\u2A83",wB="\u22DA\uFE00",xB="\u2A93",_B="\u2A85",SB="\u22D6",kB="\u22DA",CB="\u2A8B",TB="\u22DA",EB="\u2266",LB="\u2276",AB="\u2276",MB="\u2AA1",NB="\u2272",OB="\u2A7D",PB="\u2272",$B="\u297C",DB="\u230A",RB="\u{1D50F}",zB="\u{1D529}",IB="\u2276",FB="\u2A91",qB="\u2962",HB="\u21BD",BB="\u21BC",WB="\u296A",UB="\u2584",jB="\u0409",GB="\u0459",VB="\u21C7",KB="\u226A",XB="\u22D8",YB="\u231E",JB="\u21DA",ZB="\u296B",QB="\u25FA",t3="\u013F",e3="\u0140",n3="\u23B0",r3="\u23B0",i3="\u2A89",o3="\u2A89",s3="\u2A87",l3="\u2268",a3="\u2A87",c3="\u2268",u3="\u22E6",f3="\u27EC",h3="\u21FD",d3="\u27E6",p3="\u27F5",g3="\u27F5",v3="\u27F8",m3="\u27F7",y3="\u27F7",b3="\u27FA",w3="\u27FC",x3="\u27F6",_3="\u27F6",S3="\u27F9",k3="\u21AB",C3="\u21AC",T3="\u2985",E3="\u{1D543}",L3="\u{1D55D}",A3="\u2A2D",M3="\u2A34",N3="\u2217",O3="_",P3="\u2199",$3="\u2198",D3="\u25CA",R3="\u25CA",z3="\u29EB",I3="(",F3="\u2993",q3="\u21C6",H3="\u231F",B3="\u21CB",W3="\u296D",U3="\u200E",j3="\u22BF",G3="\u2039",V3="\u{1D4C1}",K3="\u2112",X3="\u21B0",Y3="\u21B0",J3="\u2272",Z3="\u2A8D",Q3="\u2A8F",t5="[",e5="\u2018",n5="\u201A",r5="\u0141",i5="\u0142",o5="\u2AA6",s5="\u2A79",l5="<",a5="<",c5="\u226A",u5="\u22D6",f5="\u22CB",h5="\u22C9",d5="\u2976",p5="\u2A7B",g5="\u25C3",v5="\u22B4",m5="\u25C2",y5="\u2996",b5="\u294A",w5="\u2966",x5="\u2268\uFE00",_5="\u2268\uFE00",S5="\xAF",k5="\u2642",C5="\u2720",T5="\u2720",E5="\u21A6",L5="\u21A6",A5="\u21A7",M5="\u21A4",N5="\u21A5",O5="\u25AE",P5="\u2A29",$5="\u041C",D5="\u043C",R5="\u2014",z5="\u223A",I5="\u2221",F5="\u205F",q5="\u2133",H5="\u{1D510}",B5="\u{1D52A}",W5="\u2127",U5="\xB5",j5="*",G5="\u2AF0",V5="\u2223",K5="\xB7",X5="\u229F",Y5="\u2212",J5="\u2238",Z5="\u2A2A",Q5="\u2213",tW="\u2ADB",eW="\u2026",nW="\u2213",rW="\u22A7",iW="\u{1D544}",oW="\u{1D55E}",sW="\u2213",lW="\u{1D4C2}",aW="\u2133",cW="\u223E",uW="\u039C",fW="\u03BC",hW="\u22B8",dW="\u22B8",pW="\u2207",gW="\u0143",vW="\u0144",mW="\u2220\u20D2",yW="\u2249",bW="\u2A70\u0338",wW="\u224B\u0338",xW="\u0149",_W="\u2249",SW="\u266E",kW="\u2115",CW="\u266E",TW="\xA0",EW="\u224E\u0338",LW="\u224F\u0338",AW="\u2A43",MW="\u0147",NW="\u0148",OW="\u0145",PW="\u0146",$W="\u2247",DW="\u2A6D\u0338",RW="\u2A42",zW="\u041D",IW="\u043D",FW="\u2013",qW="\u2924",HW="\u2197",BW="\u21D7",WW="\u2197",UW="\u2260",jW="\u2250\u0338",GW="\u200B",VW="\u200B",KW="\u200B",XW="\u200B",YW="\u2262",JW="\u2928",ZW="\u2242\u0338",QW="\u226B",tU="\u226A",eU=`
|
|
6
|
+
`,nU="\u2204",rU="\u2204",iU="\u{1D511}",oU="\u{1D52B}",sU="\u2267\u0338",lU="\u2271",aU="\u2271",cU="\u2267\u0338",uU="\u2A7E\u0338",fU="\u2A7E\u0338",hU="\u22D9\u0338",dU="\u2275",pU="\u226B\u20D2",gU="\u226F",vU="\u226F",mU="\u226B\u0338",yU="\u21AE",bU="\u21CE",wU="\u2AF2",xU="\u220B",_U="\u22FC",SU="\u22FA",kU="\u220B",CU="\u040A",TU="\u045A",EU="\u219A",LU="\u21CD",AU="\u2025",MU="\u2266\u0338",NU="\u2270",OU="\u219A",PU="\u21CD",$U="\u21AE",DU="\u21CE",RU="\u2270",zU="\u2266\u0338",IU="\u2A7D\u0338",FU="\u2A7D\u0338",qU="\u226E",HU="\u22D8\u0338",BU="\u2274",WU="\u226A\u20D2",UU="\u226E",jU="\u22EA",GU="\u22EC",VU="\u226A\u0338",KU="\u2224",XU="\u2060",YU="\xA0",JU="\u{1D55F}",ZU="\u2115",QU="\u2AEC",t8="\xAC",e8="\u2262",n8="\u226D",r8="\u2226",i8="\u2209",o8="\u2260",s8="\u2242\u0338",l8="\u2204",a8="\u226F",c8="\u2271",u8="\u2267\u0338",f8="\u226B\u0338",h8="\u2279",d8="\u2A7E\u0338",p8="\u2275",g8="\u224E\u0338",v8="\u224F\u0338",m8="\u2209",y8="\u22F5\u0338",b8="\u22F9\u0338",w8="\u2209",x8="\u22F7",_8="\u22F6",S8="\u29CF\u0338",k8="\u22EA",C8="\u22EC",T8="\u226E",E8="\u2270",L8="\u2278",A8="\u226A\u0338",M8="\u2A7D\u0338",N8="\u2274",O8="\u2AA2\u0338",P8="\u2AA1\u0338",$8="\u220C",D8="\u220C",R8="\u22FE",z8="\u22FD",I8="\u2280",F8="\u2AAF\u0338",q8="\u22E0",H8="\u220C",B8="\u29D0\u0338",W8="\u22EB",U8="\u22ED",j8="\u228F\u0338",G8="\u22E2",V8="\u2290\u0338",K8="\u22E3",X8="\u2282\u20D2",Y8="\u2288",J8="\u2281",Z8="\u2AB0\u0338",Q8="\u22E1",t4="\u227F\u0338",e4="\u2283\u20D2",n4="\u2289",r4="\u2241",i4="\u2244",o4="\u2247",s4="\u2249",l4="\u2224",a4="\u2226",c4="\u2226",u4="\u2AFD\u20E5",f4="\u2202\u0338",h4="\u2A14",d4="\u2280",p4="\u22E0",g4="\u2280",v4="\u2AAF\u0338",m4="\u2AAF\u0338",y4="\u2933\u0338",b4="\u219B",w4="\u21CF",x4="\u219D\u0338",_4="\u219B",S4="\u21CF",k4="\u22EB",C4="\u22ED",T4="\u2281",E4="\u22E1",L4="\u2AB0\u0338",A4="\u{1D4A9}",M4="\u{1D4C3}",N4="\u2224",O4="\u2226",P4="\u2241",$4="\u2244",D4="\u2244",R4="\u2224",z4="\u2226",I4="\u22E2",F4="\u22E3",q4="\u2284",H4="\u2AC5\u0338",B4="\u2288",W4="\u2282\u20D2",U4="\u2288",j4="\u2AC5\u0338",G4="\u2281",V4="\u2AB0\u0338",K4="\u2285",X4="\u2AC6\u0338",Y4="\u2289",J4="\u2283\u20D2",Z4="\u2289",Q4="\u2AC6\u0338",t6="\u2279",e6="\xD1",n6="\xF1",r6="\u2278",i6="\u22EA",o6="\u22EC",s6="\u22EB",l6="\u22ED",a6="\u039D",c6="\u03BD",u6="#",f6="\u2116",h6="\u2007",d6="\u224D\u20D2",p6="\u22AC",g6="\u22AD",v6="\u22AE",m6="\u22AF",y6="\u2265\u20D2",b6=">\u20D2",w6="\u2904",x6="\u29DE",_6="\u2902",S6="\u2264\u20D2",k6="<\u20D2",C6="\u22B4\u20D2",T6="\u2903",E6="\u22B5\u20D2",L6="\u223C\u20D2",A6="\u2923",M6="\u2196",N6="\u21D6",O6="\u2196",P6="\u2927",$6="\xD3",D6="\xF3",R6="\u229B",z6="\xD4",I6="\xF4",F6="\u229A",q6="\u041E",H6="\u043E",B6="\u229D",W6="\u0150",U6="\u0151",j6="\u2A38",G6="\u2299",V6="\u29BC",K6="\u0152",X6="\u0153",Y6="\u29BF",J6="\u{1D512}",Z6="\u{1D52C}",Q6="\u02DB",tj="\xD2",ej="\xF2",nj="\u29C1",rj="\u29B5",ij="\u03A9",oj="\u222E",sj="\u21BA",lj="\u29BE",aj="\u29BB",cj="\u203E",uj="\u29C0",fj="\u014C",hj="\u014D",dj="\u03A9",pj="\u03C9",gj="\u039F",vj="\u03BF",mj="\u29B6",yj="\u2296",bj="\u{1D546}",wj="\u{1D560}",xj="\u29B7",_j="\u201C",Sj="\u2018",kj="\u29B9",Cj="\u2295",Tj="\u21BB",Ej="\u2A54",Lj="\u2228",Aj="\u2A5D",Mj="\u2134",Nj="\u2134",Oj="\xAA",Pj="\xBA",$j="\u22B6",Dj="\u2A56",Rj="\u2A57",zj="\u2A5B",Ij="\u24C8",Fj="\u{1D4AA}",qj="\u2134",Hj="\xD8",Bj="\xF8",Wj="\u2298",Uj="\xD5",jj="\xF5",Gj="\u2A36",Vj="\u2A37",Kj="\u2297",Xj="\xD6",Yj="\xF6",Jj="\u233D",Zj="\u203E",Qj="\u23DE",t9="\u23B4",e9="\u23DC",n9="\xB6",r9="\u2225",i9="\u2225",o9="\u2AF3",s9="\u2AFD",l9="\u2202",a9="\u2202",c9="\u041F",u9="\u043F",f9="%",h9=".",d9="\u2030",p9="\u22A5",g9="\u2031",v9="\u{1D513}",m9="\u{1D52D}",y9="\u03A6",b9="\u03C6",w9="\u03D5",x9="\u2133",_9="\u260E",S9="\u03A0",k9="\u03C0",C9="\u22D4",T9="\u03D6",E9="\u210F",L9="\u210E",A9="\u210F",M9="\u2A23",N9="\u229E",O9="\u2A22",P9="+",$9="\u2214",D9="\u2A25",R9="\u2A72",z9="\xB1",I9="\xB1",F9="\u2A26",q9="\u2A27",H9="\xB1",B9="\u210C",W9="\u2A15",U9="\u{1D561}",j9="\u2119",G9="\xA3",V9="\u2AB7",K9="\u2ABB",X9="\u227A",Y9="\u227C",J9="\u2AB7",Z9="\u227A",Q9="\u227C",tG="\u227A",eG="\u2AAF",nG="\u227C",rG="\u227E",iG="\u2AAF",oG="\u2AB9",sG="\u2AB5",lG="\u22E8",aG="\u2AAF",cG="\u2AB3",uG="\u227E",fG="\u2032",hG="\u2033",dG="\u2119",pG="\u2AB9",gG="\u2AB5",vG="\u22E8",mG="\u220F",yG="\u220F",bG="\u232E",wG="\u2312",xG="\u2313",_G="\u221D",SG="\u221D",kG="\u2237",CG="\u221D",TG="\u227E",EG="\u22B0",LG="\u{1D4AB}",AG="\u{1D4C5}",MG="\u03A8",NG="\u03C8",OG="\u2008",PG="\u{1D514}",$G="\u{1D52E}",DG="\u2A0C",RG="\u{1D562}",zG="\u211A",IG="\u2057",FG="\u{1D4AC}",qG="\u{1D4C6}",HG="\u210D",BG="\u2A16",WG="?",UG="\u225F",jG='"',GG='"',VG="\u21DB",KG="\u223D\u0331",XG="\u0154",YG="\u0155",JG="\u221A",ZG="\u29B3",QG="\u27E9",tV="\u27EB",eV="\u2992",nV="\u29A5",rV="\u27E9",iV="\xBB",oV="\u2975",sV="\u21E5",lV="\u2920",aV="\u2933",cV="\u2192",uV="\u21A0",fV="\u21D2",hV="\u291E",dV="\u21AA",pV="\u21AC",gV="\u2945",vV="\u2974",mV="\u2916",yV="\u21A3",bV="\u219D",wV="\u291A",xV="\u291C",_V="\u2236",SV="\u211A",kV="\u290D",CV="\u290F",TV="\u2910",EV="\u2773",LV="}",AV="]",MV="\u298C",NV="\u298E",OV="\u2990",PV="\u0158",$V="\u0159",DV="\u0156",RV="\u0157",zV="\u2309",IV="}",FV="\u0420",qV="\u0440",HV="\u2937",BV="\u2969",WV="\u201D",UV="\u201D",jV="\u21B3",GV="\u211C",VV="\u211B",KV="\u211C",XV="\u211D",YV="\u211C",JV="\u25AD",ZV="\xAE",QV="\xAE",tK="\u220B",eK="\u21CB",nK="\u296F",rK="\u297D",iK="\u230B",oK="\u{1D52F}",sK="\u211C",lK="\u2964",aK="\u21C1",cK="\u21C0",uK="\u296C",fK="\u03A1",hK="\u03C1",dK="\u03F1",pK="\u27E9",gK="\u21E5",vK="\u2192",mK="\u2192",yK="\u21D2",bK="\u21C4",wK="\u21A3",xK="\u2309",_K="\u27E7",SK="\u295D",kK="\u2955",CK="\u21C2",TK="\u230B",EK="\u21C1",LK="\u21C0",AK="\u21C4",MK="\u21CC",NK="\u21C9",OK="\u219D",PK="\u21A6",$K="\u22A2",DK="\u295B",RK="\u22CC",zK="\u29D0",IK="\u22B3",FK="\u22B5",qK="\u294F",HK="\u295C",BK="\u2954",WK="\u21BE",UK="\u2953",jK="\u21C0",GK="\u02DA",VK="\u2253",KK="\u21C4",XK="\u21CC",YK="\u200F",JK="\u23B1",ZK="\u23B1",QK="\u2AEE",t7="\u27ED",e7="\u21FE",n7="\u27E7",r7="\u2986",i7="\u{1D563}",o7="\u211D",s7="\u2A2E",l7="\u2A35",a7="\u2970",c7=")",u7="\u2994",f7="\u2A12",h7="\u21C9",d7="\u21DB",p7="\u203A",g7="\u{1D4C7}",v7="\u211B",m7="\u21B1",y7="\u21B1",b7="]",w7="\u2019",x7="\u2019",_7="\u22CC",S7="\u22CA",k7="\u25B9",C7="\u22B5",T7="\u25B8",E7="\u29CE",L7="\u29F4",A7="\u2968",M7="\u211E",N7="\u015A",O7="\u015B",P7="\u201A",$7="\u2AB8",D7="\u0160",R7="\u0161",z7="\u2ABC",I7="\u227B",F7="\u227D",q7="\u2AB0",H7="\u2AB4",B7="\u015E",W7="\u015F",U7="\u015C",j7="\u015D",G7="\u2ABA",V7="\u2AB6",K7="\u22E9",X7="\u2A13",Y7="\u227F",J7="\u0421",Z7="\u0441",Q7="\u22A1",tX="\u22C5",eX="\u2A66",nX="\u2925",rX="\u2198",iX="\u21D8",oX="\u2198",sX="\xA7",lX=";",aX="\u2929",cX="\u2216",uX="\u2216",fX="\u2736",hX="\u{1D516}",dX="\u{1D530}",pX="\u2322",gX="\u266F",vX="\u0429",mX="\u0449",yX="\u0428",bX="\u0448",wX="\u2193",xX="\u2190",_X="\u2223",SX="\u2225",kX="\u2192",CX="\u2191",TX="\xAD",EX="\u03A3",LX="\u03C3",AX="\u03C2",MX="\u03C2",NX="\u223C",OX="\u2A6A",PX="\u2243",$X="\u2243",DX="\u2A9E",RX="\u2AA0",zX="\u2A9D",IX="\u2A9F",FX="\u2246",qX="\u2A24",HX="\u2972",BX="\u2190",WX="\u2218",UX="\u2216",jX="\u2A33",GX="\u29E4",VX="\u2223",KX="\u2323",XX="\u2AAA",YX="\u2AAC",JX="\u2AAC\uFE00",ZX="\u042C",QX="\u044C",tY="\u233F",eY="\u29C4",nY="/",rY="\u{1D54A}",iY="\u{1D564}",oY="\u2660",sY="\u2660",lY="\u2225",aY="\u2293",cY="\u2293\uFE00",uY="\u2294",fY="\u2294\uFE00",hY="\u221A",dY="\u228F",pY="\u2291",gY="\u228F",vY="\u2291",mY="\u2290",yY="\u2292",bY="\u2290",wY="\u2292",xY="\u25A1",_Y="\u25A1",SY="\u2293",kY="\u228F",CY="\u2291",TY="\u2290",EY="\u2292",LY="\u2294",AY="\u25AA",MY="\u25A1",NY="\u25AA",OY="\u2192",PY="\u{1D4AE}",$Y="\u{1D4C8}",DY="\u2216",RY="\u2323",zY="\u22C6",IY="\u22C6",FY="\u2606",qY="\u2605",HY="\u03F5",BY="\u03D5",WY="\xAF",UY="\u2282",jY="\u22D0",GY="\u2ABD",VY="\u2AC5",KY="\u2286",XY="\u2AC3",YY="\u2AC1",JY="\u2ACB",ZY="\u228A",QY="\u2ABF",tJ="\u2979",eJ="\u2282",nJ="\u22D0",rJ="\u2286",iJ="\u2AC5",oJ="\u2286",sJ="\u228A",lJ="\u2ACB",aJ="\u2AC7",cJ="\u2AD5",uJ="\u2AD3",fJ="\u2AB8",hJ="\u227B",dJ="\u227D",pJ="\u227B",gJ="\u2AB0",vJ="\u227D",mJ="\u227F",yJ="\u2AB0",bJ="\u2ABA",wJ="\u2AB6",xJ="\u22E9",_J="\u227F",SJ="\u220B",kJ="\u2211",CJ="\u2211",TJ="\u266A",EJ="\xB9",LJ="\xB2",AJ="\xB3",MJ="\u2283",NJ="\u22D1",OJ="\u2ABE",PJ="\u2AD8",$J="\u2AC6",DJ="\u2287",RJ="\u2AC4",zJ="\u2283",IJ="\u2287",FJ="\u27C9",qJ="\u2AD7",HJ="\u297B",BJ="\u2AC2",WJ="\u2ACC",UJ="\u228B",jJ="\u2AC0",GJ="\u2283",VJ="\u22D1",KJ="\u2287",XJ="\u2AC6",YJ="\u228B",JJ="\u2ACC",ZJ="\u2AC8",QJ="\u2AD4",tZ="\u2AD6",eZ="\u2926",nZ="\u2199",rZ="\u21D9",iZ="\u2199",oZ="\u292A",sZ="\xDF",lZ=" ",aZ="\u2316",cZ="\u03A4",uZ="\u03C4",fZ="\u23B4",hZ="\u0164",dZ="\u0165",pZ="\u0162",gZ="\u0163",vZ="\u0422",mZ="\u0442",yZ="\u20DB",bZ="\u2315",wZ="\u{1D517}",xZ="\u{1D531}",_Z="\u2234",SZ="\u2234",kZ="\u2234",CZ="\u0398",TZ="\u03B8",EZ="\u03D1",LZ="\u03D1",AZ="\u2248",MZ="\u223C",NZ="\u205F\u200A",OZ="\u2009",PZ="\u2009",$Z="\u2248",DZ="\u223C",RZ="\xDE",zZ="\xFE",IZ="\u02DC",FZ="\u223C",qZ="\u2243",HZ="\u2245",BZ="\u2248",WZ="\u2A31",UZ="\u22A0",jZ="\xD7",GZ="\u2A30",VZ="\u222D",KZ="\u2928",XZ="\u2336",YZ="\u2AF1",JZ="\u22A4",ZZ="\u{1D54B}",QZ="\u{1D565}",tQ="\u2ADA",eQ="\u2929",nQ="\u2034",rQ="\u2122",iQ="\u2122",oQ="\u25B5",sQ="\u25BF",lQ="\u25C3",aQ="\u22B4",cQ="\u225C",uQ="\u25B9",fQ="\u22B5",hQ="\u25EC",dQ="\u225C",pQ="\u2A3A",gQ="\u20DB",vQ="\u2A39",mQ="\u29CD",yQ="\u2A3B",bQ="\u23E2",wQ="\u{1D4AF}",xQ="\u{1D4C9}",_Q="\u0426",SQ="\u0446",kQ="\u040B",CQ="\u045B",TQ="\u0166",EQ="\u0167",LQ="\u226C",AQ="\u219E",MQ="\u21A0",NQ="\xDA",OQ="\xFA",PQ="\u2191",$Q="\u219F",DQ="\u21D1",RQ="\u2949",zQ="\u040E",IQ="\u045E",FQ="\u016C",qQ="\u016D",HQ="\xDB",BQ="\xFB",WQ="\u0423",UQ="\u0443",jQ="\u21C5",GQ="\u0170",VQ="\u0171",KQ="\u296E",XQ="\u297E",YQ="\u{1D518}",JQ="\u{1D532}",ZQ="\xD9",QQ="\xF9",ttt="\u2963",ett="\u21BF",ntt="\u21BE",rtt="\u2580",itt="\u231C",ott="\u231C",stt="\u230F",ltt="\u25F8",att="\u016A",ctt="\u016B",utt="\xA8",ftt="_",htt="\u23DF",dtt="\u23B5",ptt="\u23DD",gtt="\u22C3",vtt="\u228E",mtt="\u0172",ytt="\u0173",btt="\u{1D54C}",wtt="\u{1D566}",xtt="\u2912",_tt="\u2191",Stt="\u2191",ktt="\u21D1",Ctt="\u21C5",Ttt="\u2195",Ett="\u2195",Ltt="\u21D5",Att="\u296E",Mtt="\u21BF",Ntt="\u21BE",Ott="\u228E",Ptt="\u2196",$tt="\u2197",Dtt="\u03C5",Rtt="\u03D2",ztt="\u03D2",Itt="\u03A5",Ftt="\u03C5",qtt="\u21A5",Htt="\u22A5",Btt="\u21C8",Wtt="\u231D",Utt="\u231D",jtt="\u230E",Gtt="\u016E",Vtt="\u016F",Ktt="\u25F9",Xtt="\u{1D4B0}",Ytt="\u{1D4CA}",Jtt="\u22F0",Ztt="\u0168",Qtt="\u0169",tet="\u25B5",eet="\u25B4",net="\u21C8",ret="\xDC",iet="\xFC",oet="\u29A7",set="\u299C",aet="\u03F5",cet="\u03F0",uet="\u2205",fet="\u03D5",het="\u03D6",det="\u221D",pet="\u2195",get="\u21D5",vet="\u03F1",met="\u03C2",yet="\u228A\uFE00",bet="\u2ACB\uFE00",wet="\u228B\uFE00",xet="\u2ACC\uFE00",_et="\u03D1",ket="\u22B2",Cet="\u22B3",Tet="\u2AE8",Eet="\u2AEB",Let="\u2AE9",Aet="\u0412",Met="\u0432",Net="\u22A2",Oet="\u22A8",Pet="\u22A9",$et="\u22AB",Det="\u2AE6",Ret="\u22BB",zet="\u2228",Iet="\u22C1",Fet="\u225A",qet="\u22EE",Het="|",Bet="\u2016",Wet="|",Uet="\u2016",jet="\u2223",Get="|",Vet="\u2758",Ket="\u2240",Xet="\u200A",Yet="\u{1D519}",Jet="\u{1D533}",Zet="\u22B2",Qet="\u2282\u20D2",tnt="\u2283\u20D2",ent="\u{1D54D}",nnt="\u{1D567}",rnt="\u221D",int="\u22B3",ont="\u{1D4B1}",snt="\u{1D4CB}",lnt="\u2ACB\uFE00",ant="\u228A\uFE00",cnt="\u2ACC\uFE00",unt="\u228B\uFE00",fnt="\u22AA",hnt="\u299A",dnt="\u0174",pnt="\u0175",gnt="\u2A5F",vnt="\u2227",mnt="\u22C0",ynt="\u2259",bnt="\u2118",wnt="\u{1D51A}",xnt="\u{1D534}",_nt="\u{1D54E}",Snt="\u{1D568}",knt="\u2118",Cnt="\u2240",Tnt="\u2240",Ent="\u{1D4B2}",Lnt="\u{1D4CC}",Ant="\u22C2",Mnt="\u25EF",Nnt="\u22C3",Ont="\u25BD",Pnt="\u{1D51B}",$nt="\u{1D535}",Dnt="\u27F7",Rnt="\u27FA",znt="\u039E",Int="\u03BE",Fnt="\u27F5",qnt="\u27F8",Hnt="\u27FC",Bnt="\u22FB",Wnt="\u2A00",Unt="\u{1D54F}",jnt="\u{1D569}",Gnt="\u2A01",Vnt="\u2A02",Knt="\u27F6",Xnt="\u27F9",Ynt="\u{1D4B3}",Jnt="\u{1D4CD}",Znt="\u2A06",Qnt="\u2A04",trt="\u25B3",ert="\u22C1",nrt="\u22C0",rrt="\xDD",irt="\xFD",ort="\u042F",srt="\u044F",lrt="\u0176",art="\u0177",crt="\u042B",urt="\u044B",frt="\xA5",hrt="\u{1D51C}",drt="\u{1D536}",prt="\u0407",grt="\u0457",vrt="\u{1D550}",mrt="\u{1D56A}",yrt="\u{1D4B4}",brt="\u{1D4CE}",wrt="\u042E",xrt="\u044E",_rt="\xFF",Srt="\u0178",krt="\u0179",Crt="\u017A",Trt="\u017D",Ert="\u017E",Lrt="\u0417",Art="\u0437",Mrt="\u017B",Nrt="\u017C",Ort="\u2128",Prt="\u200B",$rt="\u0396",Drt="\u03B6",Rrt="\u{1D537}",zrt="\u2128",Irt="\u0416",Frt="\u0436",qrt="\u21DD",Hrt="\u{1D56B}",Brt="\u2124",Wrt="\u{1D4B5}",Urt="\u{1D4CF}",jrt="\u200D",Grt="\u200C",G0={Aacute:LT,aacute:AT,Abreve:MT,abreve:NT,ac:OT,acd:PT,acE:$T,Acirc:DT,acirc:RT,acute:zT,Acy:IT,acy:FT,AElig:qT,aelig:HT,af:BT,Afr:WT,afr:UT,Agrave:jT,agrave:GT,alefsym:VT,aleph:KT,Alpha:XT,alpha:YT,Amacr:JT,amacr:ZT,amalg:QT,amp:tE,AMP:eE,andand:nE,And:rE,and:iE,andd:oE,andslope:sE,andv:lE,ang:aE,ange:cE,angle:uE,angmsdaa:fE,angmsdab:hE,angmsdac:dE,angmsdad:pE,angmsdae:gE,angmsdaf:vE,angmsdag:mE,angmsdah:yE,angmsd:bE,angrt:wE,angrtvb:xE,angrtvbd:_E,angsph:SE,angst:kE,angzarr:CE,Aogon:TE,aogon:EE,Aopf:LE,aopf:AE,apacir:ME,ap:NE,apE:OE,ape:PE,apid:$E,apos:DE,ApplyFunction:RE,approx:zE,approxeq:IE,Aring:FE,aring:qE,Ascr:HE,ascr:BE,Assign:WE,ast:UE,asymp:jE,asympeq:GE,Atilde:VE,atilde:KE,Auml:XE,auml:YE,awconint:JE,awint:ZE,backcong:QE,backepsilon:tL,backprime:eL,backsim:nL,backsimeq:rL,Backslash:iL,Barv:oL,barvee:sL,barwed:lL,Barwed:aL,barwedge:cL,bbrk:uL,bbrktbrk:fL,bcong:hL,Bcy:dL,bcy:pL,bdquo:gL,becaus:vL,because:mL,Because:yL,bemptyv:bL,bepsi:wL,bernou:xL,Bernoullis:_L,Beta:SL,beta:kL,beth:CL,between:TL,Bfr:EL,bfr:LL,bigcap:AL,bigcirc:ML,bigcup:NL,bigodot:OL,bigoplus:PL,bigotimes:$L,bigsqcup:DL,bigstar:RL,bigtriangledown:zL,bigtriangleup:IL,biguplus:FL,bigvee:qL,bigwedge:HL,bkarow:BL,blacklozenge:WL,blacksquare:UL,blacktriangle:jL,blacktriangledown:GL,blacktriangleleft:VL,blacktriangleright:KL,blank:XL,blk12:YL,blk14:JL,blk34:ZL,block:QL,bne:tA,bnequiv:eA,bNot:nA,bnot:rA,Bopf:iA,bopf:oA,bot:sA,bottom:lA,bowtie:aA,boxbox:cA,boxdl:uA,boxdL:fA,boxDl:hA,boxDL:dA,boxdr:pA,boxdR:gA,boxDr:vA,boxDR:mA,boxh:yA,boxH:bA,boxhd:wA,boxHd:xA,boxhD:_A,boxHD:SA,boxhu:kA,boxHu:CA,boxhU:TA,boxHU:EA,boxminus:LA,boxplus:AA,boxtimes:MA,boxul:NA,boxuL:OA,boxUl:PA,boxUL:$A,boxur:DA,boxuR:RA,boxUr:zA,boxUR:IA,boxv:FA,boxV:qA,boxvh:HA,boxvH:BA,boxVh:WA,boxVH:UA,boxvl:jA,boxvL:GA,boxVl:VA,boxVL:KA,boxvr:XA,boxvR:YA,boxVr:JA,boxVR:ZA,bprime:QA,breve:tM,Breve:eM,brvbar:nM,bscr:rM,Bscr:iM,bsemi:oM,bsim:sM,bsime:lM,bsolb:aM,bsol:cM,bsolhsub:uM,bull:fM,bullet:hM,bump:dM,bumpE:pM,bumpe:gM,Bumpeq:vM,bumpeq:mM,Cacute:yM,cacute:bM,capand:wM,capbrcup:xM,capcap:_M,cap:SM,Cap:kM,capcup:CM,capdot:TM,CapitalDifferentialD:EM,caps:LM,caret:AM,caron:MM,Cayleys:NM,ccaps:OM,Ccaron:PM,ccaron:$M,Ccedil:DM,ccedil:RM,Ccirc:zM,ccirc:IM,Cconint:FM,ccups:qM,ccupssm:HM,Cdot:BM,cdot:WM,cedil:UM,Cedilla:jM,cemptyv:GM,cent:VM,centerdot:KM,CenterDot:XM,cfr:YM,Cfr:JM,CHcy:ZM,chcy:QM,check:tN,checkmark:eN,Chi:nN,chi:rN,circ:iN,circeq:oN,circlearrowleft:sN,circlearrowright:lN,circledast:aN,circledcirc:cN,circleddash:uN,CircleDot:fN,circledR:hN,circledS:dN,CircleMinus:pN,CirclePlus:gN,CircleTimes:vN,cir:mN,cirE:yN,cire:bN,cirfnint:wN,cirmid:xN,cirscir:_N,ClockwiseContourIntegral:SN,CloseCurlyDoubleQuote:kN,CloseCurlyQuote:CN,clubs:TN,clubsuit:EN,colon:LN,Colon:AN,Colone:MN,colone:NN,coloneq:ON,comma:PN,commat:$N,comp:DN,compfn:RN,complement:zN,complexes:IN,cong:FN,congdot:qN,Congruent:HN,conint:BN,Conint:WN,ContourIntegral:UN,copf:jN,Copf:GN,coprod:VN,Coproduct:KN,copy:XN,COPY:YN,copysr:JN,CounterClockwiseContourIntegral:ZN,crarr:QN,cross:tO,Cross:eO,Cscr:nO,cscr:rO,csub:iO,csube:oO,csup:sO,csupe:lO,ctdot:aO,cudarrl:cO,cudarrr:uO,cuepr:fO,cuesc:hO,cularr:dO,cularrp:pO,cupbrcap:gO,cupcap:vO,CupCap:mO,cup:yO,Cup:bO,cupcup:wO,cupdot:xO,cupor:_O,cups:SO,curarr:kO,curarrm:CO,curlyeqprec:TO,curlyeqsucc:EO,curlyvee:LO,curlywedge:AO,curren:MO,curvearrowleft:NO,curvearrowright:OO,cuvee:PO,cuwed:$O,cwconint:DO,cwint:RO,cylcty:zO,dagger:IO,Dagger:FO,daleth:qO,darr:HO,Darr:BO,dArr:WO,dash:UO,Dashv:jO,dashv:GO,dbkarow:VO,dblac:KO,Dcaron:XO,dcaron:YO,Dcy:JO,dcy:ZO,ddagger:QO,ddarr:tP,DD:eP,dd:nP,DDotrahd:rP,ddotseq:iP,deg:oP,Del:sP,Delta:lP,delta:aP,demptyv:cP,dfisht:uP,Dfr:fP,dfr:hP,dHar:dP,dharl:pP,dharr:gP,DiacriticalAcute:vP,DiacriticalDot:mP,DiacriticalDoubleAcute:yP,DiacriticalGrave:bP,DiacriticalTilde:wP,diam:xP,diamond:_P,Diamond:SP,diamondsuit:kP,diams:CP,die:TP,DifferentialD:EP,digamma:LP,disin:AP,div:MP,divide:NP,divideontimes:OP,divonx:PP,DJcy:$P,djcy:DP,dlcorn:RP,dlcrop:zP,dollar:IP,Dopf:FP,dopf:qP,Dot:HP,dot:BP,DotDot:WP,doteq:UP,doteqdot:jP,DotEqual:GP,dotminus:VP,dotplus:KP,dotsquare:XP,doublebarwedge:YP,DoubleContourIntegral:JP,DoubleDot:ZP,DoubleDownArrow:QP,DoubleLeftArrow:t$,DoubleLeftRightArrow:e$,DoubleLeftTee:n$,DoubleLongLeftArrow:r$,DoubleLongLeftRightArrow:i$,DoubleLongRightArrow:o$,DoubleRightArrow:s$,DoubleRightTee:l$,DoubleUpArrow:a$,DoubleUpDownArrow:c$,DoubleVerticalBar:u$,DownArrowBar:f$,downarrow:h$,DownArrow:d$,Downarrow:p$,DownArrowUpArrow:g$,DownBreve:v$,downdownarrows:m$,downharpoonleft:y$,downharpoonright:b$,DownLeftRightVector:w$,DownLeftTeeVector:x$,DownLeftVectorBar:_$,DownLeftVector:S$,DownRightTeeVector:k$,DownRightVectorBar:C$,DownRightVector:T$,DownTeeArrow:E$,DownTee:L$,drbkarow:A$,drcorn:M$,drcrop:N$,Dscr:O$,dscr:P$,DScy:$$,dscy:D$,dsol:R$,Dstrok:z$,dstrok:I$,dtdot:F$,dtri:q$,dtrif:H$,duarr:B$,duhar:W$,dwangle:U$,DZcy:j$,dzcy:G$,dzigrarr:V$,Eacute:K$,eacute:X$,easter:Y$,Ecaron:J$,ecaron:Z$,Ecirc:Q$,ecirc:tD,ecir:eD,ecolon:nD,Ecy:rD,ecy:iD,eDDot:oD,Edot:sD,edot:lD,eDot:aD,ee:cD,efDot:uD,Efr:fD,efr:hD,eg:dD,Egrave:pD,egrave:gD,egs:vD,egsdot:mD,el:yD,Element:bD,elinters:wD,ell:xD,els:_D,elsdot:SD,Emacr:kD,emacr:CD,empty:TD,emptyset:ED,EmptySmallSquare:LD,emptyv:AD,EmptyVerySmallSquare:MD,emsp13:ND,emsp14:OD,emsp:PD,ENG:$D,eng:DD,ensp:RD,Eogon:zD,eogon:ID,Eopf:FD,eopf:qD,epar:HD,eparsl:BD,eplus:WD,epsi:UD,Epsilon:jD,epsilon:GD,epsiv:VD,eqcirc:KD,eqcolon:XD,eqsim:YD,eqslantgtr:JD,eqslantless:ZD,Equal:QD,equals:tR,EqualTilde:eR,equest:nR,Equilibrium:rR,equiv:iR,equivDD:oR,eqvparsl:sR,erarr:lR,erDot:aR,escr:cR,Escr:uR,esdot:fR,Esim:hR,esim:dR,Eta:pR,eta:gR,ETH:vR,eth:mR,Euml:yR,euml:bR,euro:wR,excl:xR,exist:_R,Exists:SR,expectation:kR,exponentiale:CR,ExponentialE:TR,fallingdotseq:ER,Fcy:LR,fcy:AR,female:MR,ffilig:NR,fflig:OR,ffllig:PR,Ffr:$R,ffr:DR,filig:RR,FilledSmallSquare:zR,FilledVerySmallSquare:IR,fjlig:FR,flat:qR,fllig:HR,fltns:BR,fnof:WR,Fopf:UR,fopf:jR,forall:GR,ForAll:VR,fork:KR,forkv:XR,Fouriertrf:YR,fpartint:JR,frac12:ZR,frac13:QR,frac14:tz,frac15:ez,frac16:nz,frac18:rz,frac23:iz,frac25:oz,frac34:sz,frac35:lz,frac38:az,frac45:cz,frac56:uz,frac58:fz,frac78:hz,frasl:dz,frown:pz,fscr:gz,Fscr:vz,gacute:mz,Gamma:yz,gamma:bz,Gammad:wz,gammad:xz,gap:_z,Gbreve:Sz,gbreve:kz,Gcedil:Cz,Gcirc:Tz,gcirc:Ez,Gcy:Lz,gcy:Az,Gdot:Mz,gdot:Nz,ge:Oz,gE:Pz,gEl:$z,gel:Dz,geq:Rz,geqq:zz,geqslant:Iz,gescc:Fz,ges:qz,gesdot:Hz,gesdoto:Bz,gesdotol:Wz,gesl:Uz,gesles:jz,Gfr:Gz,gfr:Vz,gg:Kz,Gg:Xz,ggg:Yz,gimel:Jz,GJcy:Zz,gjcy:Qz,gla:tI,gl:eI,glE:nI,glj:rI,gnap:iI,gnapprox:oI,gne:sI,gnE:lI,gneq:aI,gneqq:cI,gnsim:uI,Gopf:fI,gopf:hI,grave:dI,GreaterEqual:pI,GreaterEqualLess:gI,GreaterFullEqual:vI,GreaterGreater:mI,GreaterLess:yI,GreaterSlantEqual:bI,GreaterTilde:wI,Gscr:xI,gscr:_I,gsim:SI,gsime:kI,gsiml:CI,gtcc:TI,gtcir:EI,gt:LI,GT:AI,Gt:MI,gtdot:NI,gtlPar:OI,gtquest:PI,gtrapprox:$I,gtrarr:DI,gtrdot:RI,gtreqless:zI,gtreqqless:II,gtrless:FI,gtrsim:qI,gvertneqq:HI,gvnE:BI,Hacek:WI,hairsp:UI,half:jI,hamilt:GI,HARDcy:VI,hardcy:KI,harrcir:XI,harr:YI,hArr:JI,harrw:ZI,Hat:QI,hbar:tF,Hcirc:eF,hcirc:nF,hearts:rF,heartsuit:iF,hellip:oF,hercon:sF,hfr:lF,Hfr:aF,HilbertSpace:cF,hksearow:uF,hkswarow:fF,hoarr:hF,homtht:dF,hookleftarrow:pF,hookrightarrow:gF,hopf:vF,Hopf:mF,horbar:yF,HorizontalLine:bF,hscr:wF,Hscr:xF,hslash:_F,Hstrok:SF,hstrok:kF,HumpDownHump:CF,HumpEqual:TF,hybull:EF,hyphen:LF,Iacute:AF,iacute:MF,ic:NF,Icirc:OF,icirc:PF,Icy:$F,icy:DF,Idot:RF,IEcy:zF,iecy:IF,iexcl:FF,iff:qF,ifr:HF,Ifr:BF,Igrave:WF,igrave:UF,ii:jF,iiiint:GF,iiint:VF,iinfin:KF,iiota:XF,IJlig:YF,ijlig:JF,Imacr:ZF,imacr:QF,image:tq,ImaginaryI:eq,imagline:nq,imagpart:rq,imath:iq,Im:oq,imof:sq,imped:lq,Implies:aq,incare:cq,in:"\u2208",infin:uq,infintie:fq,inodot:hq,intcal:dq,int:pq,Int:gq,integers:vq,Integral:mq,intercal:yq,Intersection:bq,intlarhk:wq,intprod:xq,InvisibleComma:_q,InvisibleTimes:Sq,IOcy:kq,iocy:Cq,Iogon:Tq,iogon:Eq,Iopf:Lq,iopf:Aq,Iota:Mq,iota:Nq,iprod:Oq,iquest:Pq,iscr:$q,Iscr:Dq,isin:Rq,isindot:zq,isinE:Iq,isins:Fq,isinsv:qq,isinv:Hq,it:Bq,Itilde:Wq,itilde:Uq,Iukcy:jq,iukcy:Gq,Iuml:Vq,iuml:Kq,Jcirc:Xq,jcirc:Yq,Jcy:Jq,jcy:Zq,Jfr:Qq,jfr:t2,jmath:e2,Jopf:n2,jopf:r2,Jscr:i2,jscr:o2,Jsercy:s2,jsercy:l2,Jukcy:a2,jukcy:c2,Kappa:u2,kappa:f2,kappav:h2,Kcedil:d2,kcedil:p2,Kcy:g2,kcy:v2,Kfr:m2,kfr:y2,kgreen:b2,KHcy:w2,khcy:x2,KJcy:_2,kjcy:S2,Kopf:k2,kopf:C2,Kscr:T2,kscr:E2,lAarr:L2,Lacute:A2,lacute:M2,laemptyv:N2,lagran:O2,Lambda:P2,lambda:$2,lang:D2,Lang:R2,langd:z2,langle:I2,lap:F2,Laplacetrf:q2,laquo:H2,larrb:B2,larrbfs:W2,larr:U2,Larr:j2,lArr:G2,larrfs:V2,larrhk:K2,larrlp:X2,larrpl:Y2,larrsim:J2,larrtl:Z2,latail:Q2,lAtail:tH,lat:eH,late:nH,lates:rH,lbarr:iH,lBarr:oH,lbbrk:sH,lbrace:lH,lbrack:aH,lbrke:cH,lbrksld:uH,lbrkslu:fH,Lcaron:hH,lcaron:dH,Lcedil:pH,lcedil:gH,lceil:vH,lcub:mH,Lcy:yH,lcy:bH,ldca:wH,ldquo:xH,ldquor:_H,ldrdhar:SH,ldrushar:kH,ldsh:CH,le:TH,lE:EH,LeftAngleBracket:LH,LeftArrowBar:AH,leftarrow:MH,LeftArrow:NH,Leftarrow:OH,LeftArrowRightArrow:PH,leftarrowtail:$H,LeftCeiling:DH,LeftDoubleBracket:RH,LeftDownTeeVector:zH,LeftDownVectorBar:IH,LeftDownVector:FH,LeftFloor:qH,leftharpoondown:HH,leftharpoonup:BH,leftleftarrows:WH,leftrightarrow:UH,LeftRightArrow:jH,Leftrightarrow:GH,leftrightarrows:VH,leftrightharpoons:KH,leftrightsquigarrow:XH,LeftRightVector:YH,LeftTeeArrow:JH,LeftTee:ZH,LeftTeeVector:QH,leftthreetimes:tB,LeftTriangleBar:eB,LeftTriangle:nB,LeftTriangleEqual:rB,LeftUpDownVector:iB,LeftUpTeeVector:oB,LeftUpVectorBar:sB,LeftUpVector:lB,LeftVectorBar:aB,LeftVector:cB,lEg:uB,leg:fB,leq:hB,leqq:dB,leqslant:pB,lescc:gB,les:vB,lesdot:mB,lesdoto:yB,lesdotor:bB,lesg:wB,lesges:xB,lessapprox:_B,lessdot:SB,lesseqgtr:kB,lesseqqgtr:CB,LessEqualGreater:TB,LessFullEqual:EB,LessGreater:LB,lessgtr:AB,LessLess:MB,lesssim:NB,LessSlantEqual:OB,LessTilde:PB,lfisht:$B,lfloor:DB,Lfr:RB,lfr:zB,lg:IB,lgE:FB,lHar:qB,lhard:HB,lharu:BB,lharul:WB,lhblk:UB,LJcy:jB,ljcy:GB,llarr:VB,ll:KB,Ll:XB,llcorner:YB,Lleftarrow:JB,llhard:ZB,lltri:QB,Lmidot:t3,lmidot:e3,lmoustache:n3,lmoust:r3,lnap:i3,lnapprox:o3,lne:s3,lnE:l3,lneq:a3,lneqq:c3,lnsim:u3,loang:f3,loarr:h3,lobrk:d3,longleftarrow:p3,LongLeftArrow:g3,Longleftarrow:v3,longleftrightarrow:m3,LongLeftRightArrow:y3,Longleftrightarrow:b3,longmapsto:w3,longrightarrow:x3,LongRightArrow:_3,Longrightarrow:S3,looparrowleft:k3,looparrowright:C3,lopar:T3,Lopf:E3,lopf:L3,loplus:A3,lotimes:M3,lowast:N3,lowbar:O3,LowerLeftArrow:P3,LowerRightArrow:$3,loz:D3,lozenge:R3,lozf:z3,lpar:I3,lparlt:F3,lrarr:q3,lrcorner:H3,lrhar:B3,lrhard:W3,lrm:U3,lrtri:j3,lsaquo:G3,lscr:V3,Lscr:K3,lsh:X3,Lsh:Y3,lsim:J3,lsime:Z3,lsimg:Q3,lsqb:t5,lsquo:e5,lsquor:n5,Lstrok:r5,lstrok:i5,ltcc:o5,ltcir:s5,lt:l5,LT:a5,Lt:c5,ltdot:u5,lthree:f5,ltimes:h5,ltlarr:d5,ltquest:p5,ltri:g5,ltrie:v5,ltrif:m5,ltrPar:y5,lurdshar:b5,luruhar:w5,lvertneqq:x5,lvnE:_5,macr:S5,male:k5,malt:C5,maltese:T5,Map:"\u2905",map:E5,mapsto:L5,mapstodown:A5,mapstoleft:M5,mapstoup:N5,marker:O5,mcomma:P5,Mcy:$5,mcy:D5,mdash:R5,mDDot:z5,measuredangle:I5,MediumSpace:F5,Mellintrf:q5,Mfr:H5,mfr:B5,mho:W5,micro:U5,midast:j5,midcir:G5,mid:V5,middot:K5,minusb:X5,minus:Y5,minusd:J5,minusdu:Z5,MinusPlus:Q5,mlcp:tW,mldr:eW,mnplus:nW,models:rW,Mopf:iW,mopf:oW,mp:sW,mscr:lW,Mscr:aW,mstpos:cW,Mu:uW,mu:fW,multimap:hW,mumap:dW,nabla:pW,Nacute:gW,nacute:vW,nang:mW,nap:yW,napE:bW,napid:wW,napos:xW,napprox:_W,natural:SW,naturals:kW,natur:CW,nbsp:TW,nbump:EW,nbumpe:LW,ncap:AW,Ncaron:MW,ncaron:NW,Ncedil:OW,ncedil:PW,ncong:$W,ncongdot:DW,ncup:RW,Ncy:zW,ncy:IW,ndash:FW,nearhk:qW,nearr:HW,neArr:BW,nearrow:WW,ne:UW,nedot:jW,NegativeMediumSpace:GW,NegativeThickSpace:VW,NegativeThinSpace:KW,NegativeVeryThinSpace:XW,nequiv:YW,nesear:JW,nesim:ZW,NestedGreaterGreater:QW,NestedLessLess:tU,NewLine:eU,nexist:nU,nexists:rU,Nfr:iU,nfr:oU,ngE:sU,nge:lU,ngeq:aU,ngeqq:cU,ngeqslant:uU,nges:fU,nGg:hU,ngsim:dU,nGt:pU,ngt:gU,ngtr:vU,nGtv:mU,nharr:yU,nhArr:bU,nhpar:wU,ni:xU,nis:_U,nisd:SU,niv:kU,NJcy:CU,njcy:TU,nlarr:EU,nlArr:LU,nldr:AU,nlE:MU,nle:NU,nleftarrow:OU,nLeftarrow:PU,nleftrightarrow:$U,nLeftrightarrow:DU,nleq:RU,nleqq:zU,nleqslant:IU,nles:FU,nless:qU,nLl:HU,nlsim:BU,nLt:WU,nlt:UU,nltri:jU,nltrie:GU,nLtv:VU,nmid:KU,NoBreak:XU,NonBreakingSpace:YU,nopf:JU,Nopf:ZU,Not:QU,not:t8,NotCongruent:e8,NotCupCap:n8,NotDoubleVerticalBar:r8,NotElement:i8,NotEqual:o8,NotEqualTilde:s8,NotExists:l8,NotGreater:a8,NotGreaterEqual:c8,NotGreaterFullEqual:u8,NotGreaterGreater:f8,NotGreaterLess:h8,NotGreaterSlantEqual:d8,NotGreaterTilde:p8,NotHumpDownHump:g8,NotHumpEqual:v8,notin:m8,notindot:y8,notinE:b8,notinva:w8,notinvb:x8,notinvc:_8,NotLeftTriangleBar:S8,NotLeftTriangle:k8,NotLeftTriangleEqual:C8,NotLess:T8,NotLessEqual:E8,NotLessGreater:L8,NotLessLess:A8,NotLessSlantEqual:M8,NotLessTilde:N8,NotNestedGreaterGreater:O8,NotNestedLessLess:P8,notni:$8,notniva:D8,notnivb:R8,notnivc:z8,NotPrecedes:I8,NotPrecedesEqual:F8,NotPrecedesSlantEqual:q8,NotReverseElement:H8,NotRightTriangleBar:B8,NotRightTriangle:W8,NotRightTriangleEqual:U8,NotSquareSubset:j8,NotSquareSubsetEqual:G8,NotSquareSuperset:V8,NotSquareSupersetEqual:K8,NotSubset:X8,NotSubsetEqual:Y8,NotSucceeds:J8,NotSucceedsEqual:Z8,NotSucceedsSlantEqual:Q8,NotSucceedsTilde:t4,NotSuperset:e4,NotSupersetEqual:n4,NotTilde:r4,NotTildeEqual:i4,NotTildeFullEqual:o4,NotTildeTilde:s4,NotVerticalBar:l4,nparallel:a4,npar:c4,nparsl:u4,npart:f4,npolint:h4,npr:d4,nprcue:p4,nprec:g4,npreceq:v4,npre:m4,nrarrc:y4,nrarr:b4,nrArr:w4,nrarrw:x4,nrightarrow:_4,nRightarrow:S4,nrtri:k4,nrtrie:C4,nsc:T4,nsccue:E4,nsce:L4,Nscr:A4,nscr:M4,nshortmid:N4,nshortparallel:O4,nsim:P4,nsime:$4,nsimeq:D4,nsmid:R4,nspar:z4,nsqsube:I4,nsqsupe:F4,nsub:q4,nsubE:H4,nsube:B4,nsubset:W4,nsubseteq:U4,nsubseteqq:j4,nsucc:G4,nsucceq:V4,nsup:K4,nsupE:X4,nsupe:Y4,nsupset:J4,nsupseteq:Z4,nsupseteqq:Q4,ntgl:t6,Ntilde:e6,ntilde:n6,ntlg:r6,ntriangleleft:i6,ntrianglelefteq:o6,ntriangleright:s6,ntrianglerighteq:l6,Nu:a6,nu:c6,num:u6,numero:f6,numsp:h6,nvap:d6,nvdash:p6,nvDash:g6,nVdash:v6,nVDash:m6,nvge:y6,nvgt:b6,nvHarr:w6,nvinfin:x6,nvlArr:_6,nvle:S6,nvlt:k6,nvltrie:C6,nvrArr:T6,nvrtrie:E6,nvsim:L6,nwarhk:A6,nwarr:M6,nwArr:N6,nwarrow:O6,nwnear:P6,Oacute:$6,oacute:D6,oast:R6,Ocirc:z6,ocirc:I6,ocir:F6,Ocy:q6,ocy:H6,odash:B6,Odblac:W6,odblac:U6,odiv:j6,odot:G6,odsold:V6,OElig:K6,oelig:X6,ofcir:Y6,Ofr:J6,ofr:Z6,ogon:Q6,Ograve:tj,ograve:ej,ogt:nj,ohbar:rj,ohm:ij,oint:oj,olarr:sj,olcir:lj,olcross:aj,oline:cj,olt:uj,Omacr:fj,omacr:hj,Omega:dj,omega:pj,Omicron:gj,omicron:vj,omid:mj,ominus:yj,Oopf:bj,oopf:wj,opar:xj,OpenCurlyDoubleQuote:_j,OpenCurlyQuote:Sj,operp:kj,oplus:Cj,orarr:Tj,Or:Ej,or:Lj,ord:Aj,order:Mj,orderof:Nj,ordf:Oj,ordm:Pj,origof:$j,oror:Dj,orslope:Rj,orv:zj,oS:Ij,Oscr:Fj,oscr:qj,Oslash:Hj,oslash:Bj,osol:Wj,Otilde:Uj,otilde:jj,otimesas:Gj,Otimes:Vj,otimes:Kj,Ouml:Xj,ouml:Yj,ovbar:Jj,OverBar:Zj,OverBrace:Qj,OverBracket:t9,OverParenthesis:e9,para:n9,parallel:r9,par:i9,parsim:o9,parsl:s9,part:l9,PartialD:a9,Pcy:c9,pcy:u9,percnt:f9,period:h9,permil:d9,perp:p9,pertenk:g9,Pfr:v9,pfr:m9,Phi:y9,phi:b9,phiv:w9,phmmat:x9,phone:_9,Pi:S9,pi:k9,pitchfork:C9,piv:T9,planck:E9,planckh:L9,plankv:A9,plusacir:M9,plusb:N9,pluscir:O9,plus:P9,plusdo:$9,plusdu:D9,pluse:R9,PlusMinus:z9,plusmn:I9,plussim:F9,plustwo:q9,pm:H9,Poincareplane:B9,pointint:W9,popf:U9,Popf:j9,pound:G9,prap:V9,Pr:K9,pr:X9,prcue:Y9,precapprox:J9,prec:Z9,preccurlyeq:Q9,Precedes:tG,PrecedesEqual:eG,PrecedesSlantEqual:nG,PrecedesTilde:rG,preceq:iG,precnapprox:oG,precneqq:sG,precnsim:lG,pre:aG,prE:cG,precsim:uG,prime:fG,Prime:hG,primes:dG,prnap:pG,prnE:gG,prnsim:vG,prod:mG,Product:yG,profalar:bG,profline:wG,profsurf:xG,prop:_G,Proportional:SG,Proportion:kG,propto:CG,prsim:TG,prurel:EG,Pscr:LG,pscr:AG,Psi:MG,psi:NG,puncsp:OG,Qfr:PG,qfr:$G,qint:DG,qopf:RG,Qopf:zG,qprime:IG,Qscr:FG,qscr:qG,quaternions:HG,quatint:BG,quest:WG,questeq:UG,quot:jG,QUOT:GG,rAarr:VG,race:KG,Racute:XG,racute:YG,radic:JG,raemptyv:ZG,rang:QG,Rang:tV,rangd:eV,range:nV,rangle:rV,raquo:iV,rarrap:oV,rarrb:sV,rarrbfs:lV,rarrc:aV,rarr:cV,Rarr:uV,rArr:fV,rarrfs:hV,rarrhk:dV,rarrlp:pV,rarrpl:gV,rarrsim:vV,Rarrtl:mV,rarrtl:yV,rarrw:bV,ratail:wV,rAtail:xV,ratio:_V,rationals:SV,rbarr:kV,rBarr:CV,RBarr:TV,rbbrk:EV,rbrace:LV,rbrack:AV,rbrke:MV,rbrksld:NV,rbrkslu:OV,Rcaron:PV,rcaron:$V,Rcedil:DV,rcedil:RV,rceil:zV,rcub:IV,Rcy:FV,rcy:qV,rdca:HV,rdldhar:BV,rdquo:WV,rdquor:UV,rdsh:jV,real:GV,realine:VV,realpart:KV,reals:XV,Re:YV,rect:JV,reg:ZV,REG:QV,ReverseElement:tK,ReverseEquilibrium:eK,ReverseUpEquilibrium:nK,rfisht:rK,rfloor:iK,rfr:oK,Rfr:sK,rHar:lK,rhard:aK,rharu:cK,rharul:uK,Rho:fK,rho:hK,rhov:dK,RightAngleBracket:pK,RightArrowBar:gK,rightarrow:vK,RightArrow:mK,Rightarrow:yK,RightArrowLeftArrow:bK,rightarrowtail:wK,RightCeiling:xK,RightDoubleBracket:_K,RightDownTeeVector:SK,RightDownVectorBar:kK,RightDownVector:CK,RightFloor:TK,rightharpoondown:EK,rightharpoonup:LK,rightleftarrows:AK,rightleftharpoons:MK,rightrightarrows:NK,rightsquigarrow:OK,RightTeeArrow:PK,RightTee:$K,RightTeeVector:DK,rightthreetimes:RK,RightTriangleBar:zK,RightTriangle:IK,RightTriangleEqual:FK,RightUpDownVector:qK,RightUpTeeVector:HK,RightUpVectorBar:BK,RightUpVector:WK,RightVectorBar:UK,RightVector:jK,ring:GK,risingdotseq:VK,rlarr:KK,rlhar:XK,rlm:YK,rmoustache:JK,rmoust:ZK,rnmid:QK,roang:t7,roarr:e7,robrk:n7,ropar:r7,ropf:i7,Ropf:o7,roplus:s7,rotimes:l7,RoundImplies:a7,rpar:c7,rpargt:u7,rppolint:f7,rrarr:h7,Rrightarrow:d7,rsaquo:p7,rscr:g7,Rscr:v7,rsh:m7,Rsh:y7,rsqb:b7,rsquo:w7,rsquor:x7,rthree:_7,rtimes:S7,rtri:k7,rtrie:C7,rtrif:T7,rtriltri:E7,RuleDelayed:L7,ruluhar:A7,rx:M7,Sacute:N7,sacute:O7,sbquo:P7,scap:$7,Scaron:D7,scaron:R7,Sc:z7,sc:I7,sccue:F7,sce:q7,scE:H7,Scedil:B7,scedil:W7,Scirc:U7,scirc:j7,scnap:G7,scnE:V7,scnsim:K7,scpolint:X7,scsim:Y7,Scy:J7,scy:Z7,sdotb:Q7,sdot:tX,sdote:eX,searhk:nX,searr:rX,seArr:iX,searrow:oX,sect:sX,semi:lX,seswar:aX,setminus:cX,setmn:uX,sext:fX,Sfr:hX,sfr:dX,sfrown:pX,sharp:gX,SHCHcy:vX,shchcy:mX,SHcy:yX,shcy:bX,ShortDownArrow:wX,ShortLeftArrow:xX,shortmid:_X,shortparallel:SX,ShortRightArrow:kX,ShortUpArrow:CX,shy:TX,Sigma:EX,sigma:LX,sigmaf:AX,sigmav:MX,sim:NX,simdot:OX,sime:PX,simeq:$X,simg:DX,simgE:RX,siml:zX,simlE:IX,simne:FX,simplus:qX,simrarr:HX,slarr:BX,SmallCircle:WX,smallsetminus:UX,smashp:jX,smeparsl:GX,smid:VX,smile:KX,smt:XX,smte:YX,smtes:JX,SOFTcy:ZX,softcy:QX,solbar:tY,solb:eY,sol:nY,Sopf:rY,sopf:iY,spades:oY,spadesuit:sY,spar:lY,sqcap:aY,sqcaps:cY,sqcup:uY,sqcups:fY,Sqrt:hY,sqsub:dY,sqsube:pY,sqsubset:gY,sqsubseteq:vY,sqsup:mY,sqsupe:yY,sqsupset:bY,sqsupseteq:wY,square:xY,Square:_Y,SquareIntersection:SY,SquareSubset:kY,SquareSubsetEqual:CY,SquareSuperset:TY,SquareSupersetEqual:EY,SquareUnion:LY,squarf:AY,squ:MY,squf:NY,srarr:OY,Sscr:PY,sscr:$Y,ssetmn:DY,ssmile:RY,sstarf:zY,Star:IY,star:FY,starf:qY,straightepsilon:HY,straightphi:BY,strns:WY,sub:UY,Sub:jY,subdot:GY,subE:VY,sube:KY,subedot:XY,submult:YY,subnE:JY,subne:ZY,subplus:QY,subrarr:tJ,subset:eJ,Subset:nJ,subseteq:rJ,subseteqq:iJ,SubsetEqual:oJ,subsetneq:sJ,subsetneqq:lJ,subsim:aJ,subsub:cJ,subsup:uJ,succapprox:fJ,succ:hJ,succcurlyeq:dJ,Succeeds:pJ,SucceedsEqual:gJ,SucceedsSlantEqual:vJ,SucceedsTilde:mJ,succeq:yJ,succnapprox:bJ,succneqq:wJ,succnsim:xJ,succsim:_J,SuchThat:SJ,sum:kJ,Sum:CJ,sung:TJ,sup1:EJ,sup2:LJ,sup3:AJ,sup:MJ,Sup:NJ,supdot:OJ,supdsub:PJ,supE:$J,supe:DJ,supedot:RJ,Superset:zJ,SupersetEqual:IJ,suphsol:FJ,suphsub:qJ,suplarr:HJ,supmult:BJ,supnE:WJ,supne:UJ,supplus:jJ,supset:GJ,Supset:VJ,supseteq:KJ,supseteqq:XJ,supsetneq:YJ,supsetneqq:JJ,supsim:ZJ,supsub:QJ,supsup:tZ,swarhk:eZ,swarr:nZ,swArr:rZ,swarrow:iZ,swnwar:oZ,szlig:sZ,Tab:lZ,target:aZ,Tau:cZ,tau:uZ,tbrk:fZ,Tcaron:hZ,tcaron:dZ,Tcedil:pZ,tcedil:gZ,Tcy:vZ,tcy:mZ,tdot:yZ,telrec:bZ,Tfr:wZ,tfr:xZ,there4:_Z,therefore:SZ,Therefore:kZ,Theta:CZ,theta:TZ,thetasym:EZ,thetav:LZ,thickapprox:AZ,thicksim:MZ,ThickSpace:NZ,ThinSpace:OZ,thinsp:PZ,thkap:$Z,thksim:DZ,THORN:RZ,thorn:zZ,tilde:IZ,Tilde:FZ,TildeEqual:qZ,TildeFullEqual:HZ,TildeTilde:BZ,timesbar:WZ,timesb:UZ,times:jZ,timesd:GZ,tint:VZ,toea:KZ,topbot:XZ,topcir:YZ,top:JZ,Topf:ZZ,topf:QZ,topfork:tQ,tosa:eQ,tprime:nQ,trade:rQ,TRADE:iQ,triangle:oQ,triangledown:sQ,triangleleft:lQ,trianglelefteq:aQ,triangleq:cQ,triangleright:uQ,trianglerighteq:fQ,tridot:hQ,trie:dQ,triminus:pQ,TripleDot:gQ,triplus:vQ,trisb:mQ,tritime:yQ,trpezium:bQ,Tscr:wQ,tscr:xQ,TScy:_Q,tscy:SQ,TSHcy:kQ,tshcy:CQ,Tstrok:TQ,tstrok:EQ,twixt:LQ,twoheadleftarrow:AQ,twoheadrightarrow:MQ,Uacute:NQ,uacute:OQ,uarr:PQ,Uarr:$Q,uArr:DQ,Uarrocir:RQ,Ubrcy:zQ,ubrcy:IQ,Ubreve:FQ,ubreve:qQ,Ucirc:HQ,ucirc:BQ,Ucy:WQ,ucy:UQ,udarr:jQ,Udblac:GQ,udblac:VQ,udhar:KQ,ufisht:XQ,Ufr:YQ,ufr:JQ,Ugrave:ZQ,ugrave:QQ,uHar:ttt,uharl:ett,uharr:ntt,uhblk:rtt,ulcorn:itt,ulcorner:ott,ulcrop:stt,ultri:ltt,Umacr:att,umacr:ctt,uml:utt,UnderBar:ftt,UnderBrace:htt,UnderBracket:dtt,UnderParenthesis:ptt,Union:gtt,UnionPlus:vtt,Uogon:mtt,uogon:ytt,Uopf:btt,uopf:wtt,UpArrowBar:xtt,uparrow:_tt,UpArrow:Stt,Uparrow:ktt,UpArrowDownArrow:Ctt,updownarrow:Ttt,UpDownArrow:Ett,Updownarrow:Ltt,UpEquilibrium:Att,upharpoonleft:Mtt,upharpoonright:Ntt,uplus:Ott,UpperLeftArrow:Ptt,UpperRightArrow:$tt,upsi:Dtt,Upsi:Rtt,upsih:ztt,Upsilon:Itt,upsilon:Ftt,UpTeeArrow:qtt,UpTee:Htt,upuparrows:Btt,urcorn:Wtt,urcorner:Utt,urcrop:jtt,Uring:Gtt,uring:Vtt,urtri:Ktt,Uscr:Xtt,uscr:Ytt,utdot:Jtt,Utilde:Ztt,utilde:Qtt,utri:tet,utrif:eet,uuarr:net,Uuml:ret,uuml:iet,uwangle:oet,vangrt:set,varepsilon:aet,varkappa:cet,varnothing:uet,varphi:fet,varpi:het,varpropto:det,varr:pet,vArr:get,varrho:vet,varsigma:met,varsubsetneq:yet,varsubsetneqq:bet,varsupsetneq:wet,varsupsetneqq:xet,vartheta:_et,vartriangleleft:ket,vartriangleright:Cet,vBar:Tet,Vbar:Eet,vBarv:Let,Vcy:Aet,vcy:Met,vdash:Net,vDash:Oet,Vdash:Pet,VDash:$et,Vdashl:Det,veebar:Ret,vee:zet,Vee:Iet,veeeq:Fet,vellip:qet,verbar:Het,Verbar:Bet,vert:Wet,Vert:Uet,VerticalBar:jet,VerticalLine:Get,VerticalSeparator:Vet,VerticalTilde:Ket,VeryThinSpace:Xet,Vfr:Yet,vfr:Jet,vltri:Zet,vnsub:Qet,vnsup:tnt,Vopf:ent,vopf:nnt,vprop:rnt,vrtri:int,Vscr:ont,vscr:snt,vsubnE:lnt,vsubne:ant,vsupnE:cnt,vsupne:unt,Vvdash:fnt,vzigzag:hnt,Wcirc:dnt,wcirc:pnt,wedbar:gnt,wedge:vnt,Wedge:mnt,wedgeq:ynt,weierp:bnt,Wfr:wnt,wfr:xnt,Wopf:_nt,wopf:Snt,wp:knt,wr:Cnt,wreath:Tnt,Wscr:Ent,wscr:Lnt,xcap:Ant,xcirc:Mnt,xcup:Nnt,xdtri:Ont,Xfr:Pnt,xfr:$nt,xharr:Dnt,xhArr:Rnt,Xi:znt,xi:Int,xlarr:Fnt,xlArr:qnt,xmap:Hnt,xnis:Bnt,xodot:Wnt,Xopf:Unt,xopf:jnt,xoplus:Gnt,xotime:Vnt,xrarr:Knt,xrArr:Xnt,Xscr:Ynt,xscr:Jnt,xsqcup:Znt,xuplus:Qnt,xutri:trt,xvee:ert,xwedge:nrt,Yacute:rrt,yacute:irt,YAcy:ort,yacy:srt,Ycirc:lrt,ycirc:art,Ycy:crt,ycy:urt,yen:frt,Yfr:hrt,yfr:drt,YIcy:prt,yicy:grt,Yopf:vrt,yopf:mrt,Yscr:yrt,yscr:brt,YUcy:wrt,yucy:xrt,yuml:_rt,Yuml:Srt,Zacute:krt,zacute:Crt,Zcaron:Trt,zcaron:Ert,Zcy:Lrt,zcy:Art,Zdot:Mrt,zdot:Nrt,zeetrf:Ort,ZeroWidthSpace:Prt,Zeta:$rt,zeta:Drt,zfr:Rrt,Zfr:zrt,ZHcy:Irt,zhcy:Frt,zigrarr:qrt,zopf:Hrt,Zopf:Brt,Zscr:Wrt,zscr:Urt,zwj:jrt,zwnj:Grt},Vrt="\xC1",Krt="\xE1",Xrt="\xC2",Yrt="\xE2",Jrt="\xB4",Zrt="\xC6",Qrt="\xE6",tit="\xC0",eit="\xE0",nit="&",rit="&",iit="\xC5",oit="\xE5",sit="\xC3",lit="\xE3",ait="\xC4",cit="\xE4",uit="\xA6",fit="\xC7",hit="\xE7",dit="\xB8",pit="\xA2",git="\xA9",vit="\xA9",mit="\xA4",yit="\xB0",bit="\xF7",wit="\xC9",xit="\xE9",_it="\xCA",Sit="\xEA",kit="\xC8",Cit="\xE8",Tit="\xD0",Eit="\xF0",Lit="\xCB",Ait="\xEB",Mit="\xBD",Nit="\xBC",Oit="\xBE",Pit=">",$it=">",Dit="\xCD",Rit="\xED",zit="\xCE",Iit="\xEE",Fit="\xA1",qit="\xCC",Hit="\xEC",Bit="\xBF",Wit="\xCF",Uit="\xEF",jit="\xAB",Git="<",Vit="<",Kit="\xAF",Xit="\xB5",Yit="\xB7",Jit="\xA0",Zit="\xAC",Qit="\xD1",tot="\xF1",eot="\xD3",not="\xF3",rot="\xD4",iot="\xF4",oot="\xD2",sot="\xF2",lot="\xAA",aot="\xBA",cot="\xD8",uot="\xF8",fot="\xD5",hot="\xF5",dot="\xD6",pot="\xF6",got="\xB6",vot="\xB1",mot="\xA3",yot='"',bot='"',wot="\xBB",xot="\xAE",_ot="\xAE",Sot="\xA7",kot="\xAD",Cot="\xB9",Tot="\xB2",Eot="\xB3",Lot="\xDF",Aot="\xDE",Mot="\xFE",Not="\xD7",Oot="\xDA",Pot="\xFA",$ot="\xDB",Dot="\xFB",Rot="\xD9",zot="\xF9",Iot="\xA8",Fot="\xDC",qot="\xFC",Hot="\xDD",Bot="\xFD",Wot="\xA5",Uot="\xFF",jot={Aacute:Vrt,aacute:Krt,Acirc:Xrt,acirc:Yrt,acute:Jrt,AElig:Zrt,aelig:Qrt,Agrave:tit,agrave:eit,amp:nit,AMP:rit,Aring:iit,aring:oit,Atilde:sit,atilde:lit,Auml:ait,auml:cit,brvbar:uit,Ccedil:fit,ccedil:hit,cedil:dit,cent:pit,copy:git,COPY:vit,curren:mit,deg:yit,divide:bit,Eacute:wit,eacute:xit,Ecirc:_it,ecirc:Sit,Egrave:kit,egrave:Cit,ETH:Tit,eth:Eit,Euml:Lit,euml:Ait,frac12:Mit,frac14:Nit,frac34:Oit,gt:Pit,GT:$it,Iacute:Dit,iacute:Rit,Icirc:zit,icirc:Iit,iexcl:Fit,Igrave:qit,igrave:Hit,iquest:Bit,Iuml:Wit,iuml:Uit,laquo:jit,lt:Git,LT:Vit,macr:Kit,micro:Xit,middot:Yit,nbsp:Jit,not:Zit,Ntilde:Qit,ntilde:tot,Oacute:eot,oacute:not,Ocirc:rot,ocirc:iot,Ograve:oot,ograve:sot,ordf:lot,ordm:aot,Oslash:cot,oslash:uot,Otilde:fot,otilde:hot,Ouml:dot,ouml:pot,para:got,plusmn:vot,pound:mot,quot:yot,QUOT:bot,raquo:wot,reg:xot,REG:_ot,sect:Sot,shy:kot,sup1:Cot,sup2:Tot,sup3:Eot,szlig:Lot,THORN:Aot,thorn:Mot,times:Not,Uacute:Oot,uacute:Pot,Ucirc:$ot,ucirc:Dot,Ugrave:Rot,ugrave:zot,uml:Iot,Uuml:Fot,uuml:qot,Yacute:Hot,yacute:Bot,yen:Wot,yuml:Uot},Got="&",Vot="'",Kot=">",Xot="<",Yot='"',V0={amp:Got,apos:Vot,gt:Kot,lt:Xot,quot:Yot};var ih={};const Jot={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 Zot=Ki&&Ki.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ih,"__esModule",{value:!0});var Qg=Zot(Jot),Qot=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 tst(t){return t>=55296&&t<=57343||t>1114111?"\uFFFD":(t in Qg.default&&(t=Qg.default[t]),Qot(t))}ih.default=tst;var gc=Ki&&Ki.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.decodeHTML=Pr.decodeHTMLStrict=Pr.decodeXML=void 0;var af=gc(G0),est=gc(jot),nst=gc(V0),tv=gc(ih),rst=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Pr.decodeXML=K0(nst.default);Pr.decodeHTMLStrict=K0(af.default);function K0(t){var n=X0(t);return function(r){return String(r).replace(rst,n)}}var ev=function(t,n){return t<n?1:-1};Pr.decodeHTML=function(){for(var t=Object.keys(est.default).sort(ev),n=Object.keys(af.default).sort(ev),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=X0(af.default);function f(h){return h.substr(-1)!==";"&&(h+=";"),u(h)}return function(h){return String(h).replace(a,f)}}();function X0(t){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?tv.default(parseInt(r.substr(3),16)):tv.default(parseInt(r.substr(2),10))}return t[r.slice(1,-1)]||r}}var Nn={},Y0=Ki&&Ki.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.escapeUTF8=Nn.escape=Nn.encodeNonAsciiHTML=Nn.encodeHTML=Nn.encodeXML=void 0;var ist=Y0(V0),J0=Q0(ist.default),Z0=ty(J0);Nn.encodeXML=ry(J0);var ost=Y0(G0),oh=Q0(ost.default),sst=ty(oh);Nn.encodeHTML=ast(oh,sst);Nn.encodeNonAsciiHTML=ry(oh);function Q0(t){return Object.keys(t).sort().reduce(function(n,r){return n[t[r]]="&"+r+";",n},{})}function ty(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 ey=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,lst=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function vc(t){return"&#x"+(t.length>1?lst(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function ast(t,n){return function(r){return r.replace(n,function(o){return t[o]}).replace(ey,vc)}}var ny=new RegExp(Z0.source+"|"+ey.source,"g");function cst(t){return t.replace(ny,vc)}Nn.escape=cst;function ust(t){return t.replace(Z0,vc)}Nn.escapeUTF8=ust;function ry(t){return function(n){return n.replace(ny,function(r){return t[r]||vc(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=Pr,r=Nn;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=Nn;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=Pr;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}})})(j0);function fst(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function nv(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 hst(t,n,r){return n&&nv(t.prototype,n),r&&nv(t,r),t}function iy(t,n){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=dst(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 dst(t,n){if(!!t){if(typeof t=="string")return rv(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 rv(t,n)}}function rv(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 pst=j0,iv={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:gst()};function gst(){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 ia(0,5).forEach(function(n){ia(0,5).forEach(function(r){ia(0,5).forEach(function(o){return vst(n,r,o,t)})})}),ia(0,23).forEach(function(n){var r=n+232,o=oy(n*10+8);t[r]="#"+o+o+o}),t}function vst(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]=mst([u,f,h])}function oy(t){for(var n=t.toString(16);n.length<2;)n="0"+n;return n}function mst(t){var n=[],r=iy(t),o;try{for(r.s();!(o=r.n()).done;){var a=o.value;n.push(oy(a))}}catch(u){r.e(u)}finally{r.f()}return"#"+n.join("")}function ov(t,n,r,o){var a;return n==="text"?a=xst(r,o):n==="display"?a=bst(t,r,o):n==="xterm256Foreground"?a=ya(t,o.colors[r]):n==="xterm256Background"?a=ba(t,o.colors[r]):n==="rgb"&&(a=yst(t,r)),a}function yst(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 ma(t,(r===38?"color:#":"background-color:#")+a)}function bst(t,n,r){n=parseInt(n,10);var o={"-1":function(){return"<br/>"},0:function(){return t.length&&sy(t)},1:function(){return si(t,"b")},3:function(){return si(t,"i")},4:function(){return si(t,"u")},8:function(){return ma(t,"display:none")},9:function(){return si(t,"strike")},22:function(){return ma(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return lv(t,"i")},24:function(){return lv(t,"u")},39:function(){return ya(t,r.fg)},49:function(){return ba(t,r.bg)},53:function(){return ma(t,"text-decoration:overline")}},a;return o[n]?a=o[n]():4<n&&n<7?a=si(t,"blink"):29<n&&n<38?a=ya(t,r.colors[n-30]):39<n&&n<48?a=ba(t,r.colors[n-40]):89<n&&n<98?a=ya(t,r.colors[8+(n-90)]):99<n&&n<108&&(a=ba(t,r.colors[8+(n-100)])),a}function sy(t){var n=t.slice(0);return t.length=0,n.reverse().map(function(r){return"</"+r+">"}).join("")}function ia(t,n){for(var r=[],o=t;o<=n;o++)r.push(o);return r}function wst(t){return function(n){return(t===null||n.category!==t)&&t!=="all"}}function sv(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 xst(t,n){return n.escapeXML?pst.encodeXML(t):t}function si(t,n,r){return r||(r=""),t.push(n),"<".concat(n).concat(r?' style="'.concat(r,'"'):"",">")}function ma(t,n){return si(t,"span",n)}function ya(t,n){return si(t,"span","color:"+n)}function ba(t,n){return si(t,"span","background-color:"+n)}function lv(t,n){var r;if(t.slice(-1)[0]===n&&(r=t.pop()),r)return"</"+n+">"}function _st(t,n,r){var o=!1,a=3;function u(){return""}function f(G,j){return r("xterm256Foreground",j),""}function h(G,j){return r("xterm256Background",j),""}function p(G){return n.newline?r("display",-1):r("text",G),""}function g(G,j){o=!0,j.trim().length===0&&(j="0"),j=j.trimRight(";").split(";");var it=iy(j),Q;try{for(it.s();!(Q=it.n()).done;){var dt=Q.value;r("display",dt)}}catch(vt){it.e(vt)}finally{it.f()}return""}function m(G){return r("text",G),""}function b(G){return r("rgb",G),""}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:m}];function S(G,j){j>a&&o||(o=!1,t=t.replace(G.pattern,G.sub))}var M=[],A=t,E=A.length;t:for(;E>0;){for(var C=0,L=0,z=x.length;L<z;C=++L){var D=x[C];if(S(D,C),t.length!==E){E=t.length;continue t}}if(t.length===E)break;M.push(0),E=t.length}return M}function Sst(t,n,r){return n!=="text"&&(t=t.filter(wst(sv(r))),t.push({token:n,data:r,category:sv(r)})),t}var kst=function(){function t(n){fst(this,t),n=n||{},n.colors&&(n.colors=Object.assign({},iv.colors,n.colors)),this.options=Object.assign({},iv,n),this.stack=[],this.stickyStack=[]}return hst(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=ov(a,h.token,h.data,u);p&&f.push(p)}),_st(r.join(""),u,function(h,p){var g=ov(a,h,p,u);g&&f.push(g),u.stream&&(o.stickyStack=Sst(o.stickyStack,h,p))}),a.length&&f.push(sy(a)),f.join("")}}]),t}(),Cst=kst;function Tst(t,n){return n&&t.endsWith(n)}async function ly(t,n,r){const o=encodeURI(`${t}:${n}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function ay(t){return new Cst({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}const mc=GC(),Est=iC(mc),Lst={"h-full":"",class:"scrolls"},Ast={key:0,class:"scrolls scrolls-rounded task-error"},Mst=["innerHTML"],Nst={key:1,class:"scrolls scrolls-rounded task-error"},Ost=["onClickPassive"],Pst={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},$st=oe({__name:"ViewReport",props:{file:null},setup(t){const n=t;function r(g,m){var b;return((b=g.result)==null?void 0:b.state)!=="fail"?[]:g.type==="test"||g.type==="benchmark"?[{...g,level:m}]:[{...g,level:m},...g.tasks.flatMap(x=>r(x,m+1))]}function o(g){return g.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function a(g,m){const b=ay(g);return m.map(x=>{var M,A;const S=x.result;if(S){const E=S.error;if(E){let C="";E.message.includes("\x1B")&&(C=`<b>${E.nameStr||E.name}</b>: ${b.toHtml(o(E.message))}`);const L=(M=E.stackStr)==null?void 0:M.includes("\x1B");(L||((A=E.stack)==null?void 0:A.includes("\x1B")))&&(C.length>0?C+=b.toHtml(o(L?E.stackStr:E.stack)):C=`<b>${E.nameStr||E.name}</b>: ${E.message}${b.toHtml(o(L?E.stackStr:E.stack))}`),C.length>0&&(S.htmlError=C)}}return x})}const u=St(()=>{var S,M;const g=n.file,m=(M=(S=g==null?void 0:g.tasks)==null?void 0:S.flatMap(A=>r(A,0)))!=null?M:[],b=g==null?void 0:g.result;if(b==null?void 0:b.error){const A={id:g.id,name:g.name,level:0,type:"suite",mode:"run",tasks:[],result:b};m.unshift(A)}return m.length>0?a(mc.value,m):m});function f(g){return g.startsWith(lf.value.root)?g.slice(lf.value.root.length):g}function h(g){var m,b;return(b=(m=g.sourcePos)==null?void 0:m.line)!=null?b:g.line}function p(g){var m,b;return(b=(m=g.sourcePos)==null?void 0:m.column)!=null?b:g.column}return(g,m)=>{const b=Ji("tooltip");return ht(),Mt("div",Lst,[J(u).length?(ht(!0),Mt(ue,{key:0},lr(J(u),x=>{var S,M,A;return ht(),Mt("div",{key:x.id},[ut("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:kn({"margin-left":`${(S=x.result)!=null&&S.htmlError?.5:2*x.level+.5}rem`})},[fn(Zt(x.name)+" ",1),(M=x.result)!=null&&M.htmlError?(ht(),Mt("div",Ast,[ut("pre",{innerHTML:x.result.htmlError},null,8,Mst)])):(A=x.result)!=null&&A.error?(ht(),Mt("div",Nst,[ut("pre",null,[ut("b",null,Zt(x.result.error.name||x.result.error.nameStr),1),fn(": "+Zt(x.result.error.message),1)]),(ht(!0),Mt(ue,null,lr(x.result.error.stacks,(E,C)=>{var L;return ht(),Mt("div",{key:C,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ut("pre",null," - "+Zt(f(E.file))+":"+Zt(h(E))+":"+Zt(p(E)),1),J(Tst)(E.file,(L=n.file)==null?void 0:L.name)?pn((ht(),Mt("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:z=>J(ly)(E.file,h(E),p(E))},null,40,Ost)),[[b,"Open in Editor",void 0,{bottom:!0}]]):ye("",!0)])}),128))])):ye("",!0)],4)])}),128)):(ht(),Mt("div",Pst," All tests passed in this file "))])}}});const Dst=Xo($st,[["__scopeId","data-v-cbc93645"]]),Rst={border:"b base","p-4":""},zst=["innerHTML"],Ist=["textContent"],Fst=oe({__name:"ViewConsoleOutputEntry",props:{taskName:null,type:null,time:null,content:null,html:{type:Boolean}},setup(t){const n=t;function r(o){return new Date(o).toLocaleTimeString()}return(o,a)=>(ht(),Mt("div",Rst,[ut("div",{"text-xs":"","mb-1":"",class:ge(n.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Zt(r(n.time))+" | "+Zt(n.taskName)+" | "+Zt(n.type),3),n.html?(ht(),Mt("pre",{key:0,"data-type":"html",innerHTML:n.content},null,8,zst)):(ht(),Mt("pre",{key:1,"data-type":"text",textContent:Zt(n.content)},null,8,Ist))]))}}),qst={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Hst={key:1,p6:""},Bst=ut("pre",{inline:""},"console.log(foo)",-1),Wst=oe({__name:"ViewConsoleOutput",setup(t){const n=St(()=>{const o=W0.value;if(o){const a=ay(mc.value);return o.map(({taskId:u,type:f,time:h,content:p})=>{const g=p.trim(),m=a.toHtml(g);return m!==g?{taskId:u,type:f,time:h,html:!0,content:m}:{taskId:u,type:f,time:h,html:!1,content:p}})}});function r(o){const a=o&&We.state.idMap.get(o);return a?yT(a).slice(1).join(" > "):"-"}return(o,a)=>{var f;const u=Fst;return(f=J(n))!=null&&f.length?(ht(),Mt("div",qst,[(ht(!0),Mt(ue,null,lr(J(n),({taskId:h,type:p,time:g,html:m,content:b})=>(ht(),Mt("div",{key:h,"font-mono":""},[Rt(u,{"task-name":r(h),type:p,time:g,content:b,html:m},null,8,["task-name","type","time","content","html"])]))),128))])):(ht(),Mt("p",Hst,[fn(" Log something in your test and it would print here. (e.g. "),Bst,fn(") ")]))}}});var Lu={exports:{}},av;function Yo(){return av||(av=1,function(t,n){(function(r,o){t.exports=o()})(Ki,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]),m=!h&&/WebKit\//.test(r),b=m&&/Qt\/\d+\.\d+/.test(r),x=!h&&/Chrome\/(\d+)/.exec(r),S=x&&+x[1],M=/Opera\//.test(r),A=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),C=/PhantomJS/.test(r),L=A&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),z=/Android/.test(r),D=L||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),G=L||/Mac/.test(o),j=/\bCrOS\b/.test(r),it=/win/i.test(o),Q=M&&r.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(M=!1,m=!0);var dt=G&&(b||M&&(Q==null||Q<12.11)),vt=a||p&&g>=9;function kt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ft=function(e,i){var l=e.className,s=kt(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 U(e){for(var i=e.childNodes.length;i>0;--i)e.removeChild(e.firstChild);return e}function I(e,i){return U(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 H(e,i,l,s){var c=k(e,i,l,s);return c.setAttribute("role","presentation"),c}var W;document.createRange?W=function(e,i,l,s){var c=document.createRange();return c.setEnd(s||e,l),c.setStart(e,i),c}:W=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 et(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 wt(e){var i;try{i=e.activeElement}catch{i=e.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Lt(e,i){var l=e.className;kt(i).test(l)||(e.className+=(l?" ":"")+i)}function qt(e,i){for(var l=e.split(" "),s=0;s<l.length;s++)l[s]&&!kt(l[s]).test(i)&&(i+=" "+l[s]);return i}var Bt=function(e){e.select()};L?Bt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:p&&(Bt=function(e){try{e.select()}catch{}});function Gt(e){return e.display.wrapper.ownerDocument}function ne(e){return Gt(e).defaultView}function Z(e){var i=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,i)}}function tt(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 V(e,i,l,s,c){i==null&&(i=e.search(/[^\s\u00a0]/),i==-1&&(i=e.length));for(var d=s||0,v=c||0;;){var y=e.indexOf(" ",d);if(y<0||y>=i)return v+(i-d);v+=y-d,v+=l-v%l,d=y+1}}var st=function(){this.id=null,this.f=null,this.time=0,this.handler=Z(this.onTimeout,this)};st.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},st.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 Ct(e,i){for(var l=0;l<e.length;++l)if(e[l]==i)return l;return-1}var de=50,Et={toString:function(){return"CodeMirror.Pass"}},O={scroll:!1},F={origin:"*mouse"},Y={origin:"+move"};function nt(e,i,l){for(var s=0,c=0;;){var d=e.indexOf(" ",s);d==-1&&(d=e.length);var v=d-s;if(d==e.length||c+v>=i)return s+Math.min(v,i-c);if(c+=d-s,c+=l-c%l,s=d+1,c>=i)return s}}var ot=[""];function pt(e){for(;ot.length<=e;)ot.push(lt(ot)+" ");return ot[e]}function lt(e){return e[e.length-1]}function gt(e,i){for(var l=[],s=0;s<e.length;s++)l[s]=i(e[s],s);return l}function xt(e,i,l){for(var s=0,c=l(i);s<e.length&&l(e[s])<=c;)s++;e.splice(s,0,i)}function at(){}function $t(e,i){var l;return Object.create?l=Object.create(e):(at.prototype=e,l=new at),i&&tt(i,l),l}var Nt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Pt(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Nt.test(e))}function zt(e,i){return i?i.source.indexOf("\\w")>-1&&Pt(e)?!0:i.test(e):Pt(e)}function jt(e){for(var i in e)if(e.hasOwnProperty(i)&&e[i])return!1;return!0}var te=/[\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 Qt(e){return e.charCodeAt(0)>=768&&te.test(e)}function se(e,i,l){for(;(l<0?i>0:i<e.length)&&Qt(e.charAt(i));)i+=l;return i}function Xt(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 v=e[d];(v.from<l&&v.to>i||i==l&&v.to==i)&&(s(Math.max(v.from,i),Math.min(v.to,l),v.level==1?"rtl":"ltr",d),c=!0)}c||s(i,l,"ltr")}var En=null;function qe(e,i,l){var s;En=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:En=c),d.from==i&&(d.from!=d.to&&l!="before"?s=c:En=c)}return s!=null?s:En}var Zi=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]/,v=/[Lb1n]/,y=/[1n]/;function w(_,N,P){this.level=_,this.from=N,this.to=P}return function(_,N){var P=N=="ltr"?"L":"R";if(_.length==0||N=="ltr"&&!s.test(_))return!1;for(var B=_.length,q=[],X=0;X<B;++X)q.push(l(_.charCodeAt(X)));for(var rt=0,ct=P;rt<B;++rt){var mt=q[rt];mt=="m"?q[rt]=ct:ct=mt}for(var _t=0,yt=P;_t<B;++_t){var Tt=q[_t];Tt=="1"&&yt=="r"?q[_t]="n":d.test(Tt)&&(yt=Tt,Tt=="r"&&(q[_t]="R"))}for(var Dt=1,Ot=q[0];Dt<B-1;++Dt){var Ut=q[Dt];Ut=="+"&&Ot=="1"&&q[Dt+1]=="1"?q[Dt]="1":Ut==","&&Ot==q[Dt+1]&&(Ot=="1"||Ot=="n")&&(q[Dt]=Ot),Ot=Ut}for(var pe=0;pe<B;++pe){var Re=q[pe];if(Re==",")q[pe]="N";else if(Re=="%"){var _e=void 0;for(_e=pe+1;_e<B&&q[_e]=="%";++_e);for(var wn=pe&&q[pe-1]=="!"||_e<B&&q[_e]=="1"?"1":"N",ln=pe;ln<_e;++ln)q[ln]=wn;pe=_e-1}}for(var Le=0,an=P;Le<B;++Le){var He=q[Le];an=="L"&&He=="1"?q[Le]="L":d.test(He)&&(an=He)}for(var Oe=0;Oe<B;++Oe)if(c.test(q[Oe])){var Ae=void 0;for(Ae=Oe+1;Ae<B&&c.test(q[Ae]);++Ae);for(var Ce=(Oe?q[Oe-1]:P)=="L",cn=(Ae<B?q[Ae]:P)=="L",wo=Ce==cn?Ce?"L":"R":P,Zr=Oe;Zr<Ae;++Zr)q[Zr]=wo;Oe=Ae-1}for(var Ke=[],rr,ze=0;ze<B;)if(v.test(q[ze])){var du=ze;for(++ze;ze<B&&v.test(q[ze]);++ze);Ke.push(new w(0,du,ze))}else{var Cr=ze,Ei=Ke.length,Li=N=="rtl"?1:0;for(++ze;ze<B&&q[ze]!="L";++ze);for(var Qe=Cr;Qe<ze;)if(y.test(q[Qe])){Cr<Qe&&(Ke.splice(Ei,0,new w(1,Cr,Qe)),Ei+=Li);var xo=Qe;for(++Qe;Qe<ze&&y.test(q[Qe]);++Qe);Ke.splice(Ei,0,new w(2,xo,Qe)),Ei+=Li,Cr=Qe}else++Qe;Cr<ze&&Ke.splice(Ei,0,new w(1,Cr,ze))}return N=="ltr"&&(Ke[0].level==1&&(rr=_.match(/^\s+/))&&(Ke[0].from=rr[0].length,Ke.unshift(new w(0,0,rr[0].length))),lt(Ke).level==1&&(rr=_.match(/\s+$/))&&(lt(Ke).to-=rr[0].length,Ke.push(new w(0,B-rr[0].length,B)))),N=="rtl"?Ke.reverse():Ke}}();function be(e,i){var l=e.order;return l==null&&(l=e.order=Zi(e.text,i)),l}var nn=[],bt=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]||nn).concat(l)}};function Zo(e,i){return e._handlers&&e._handlers[i]||nn}function je(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=Ct(c,l);d>-1&&(s[i]=c.slice(0,d).concat(c.slice(d+1)))}}}function ve(e,i){var l=Zo(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 Se(e,i,l){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),ve(e,l||i.type,e,i),Qo(i)||i.codemirrorIgnore}function yl(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)Ct(l,i[s])==-1&&l.push(i[s])}function Ye(e,i){return Zo(e,i).length>0}function Je(e){e.prototype.on=function(i,l){bt(this,i,l)},e.prototype.off=function(i,l){je(this,i,l)}}function Ge(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function yi(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Qo(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function vr(e){Ge(e),yi(e)}function rn(e){return e.target||e.srcElement}function ts(e){var i=e.which;return i==null&&(e.button&1?i=1:e.button&2?i=3:e.button&4&&(i=2)),G&&e.ctrlKey&&i==1&&(i=3),i}var xc=function(){if(p&&g<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),$n;function _c(e){if($n==null){var i=k("span","\u200B");I(e,k("span",[i,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&($n=i.offsetWidth<=1&&i.offsetHeight>2&&!(p&&g<8))}var l=$n?k("span","\u200B"):k("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var Qi;function bl(e){if(Qi!=null)return Qi;var i=I(e,document.createTextNode("A\u062EA")),l=W(i,0,1).getBoundingClientRect(),s=W(i,1,2).getBoundingClientRect();return U(e),!l||l.left==l.right?!1:Qi=s.right-l.right<3}var es=`
|
|
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),v=d.indexOf("\r");v!=-1?(l.push(d.slice(0,v)),i+=v+1):(l.push(d),i=c+1)}return l}:function(e){return e.split(/\r\n?|\n/)},qr=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},Jn=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Zn=null;function wl(e){if(Zn!=null)return Zn;var i=I(e,k("span","x")),l=i.getBoundingClientRect(),s=W(i,0,1).getBoundingClientRect();return Zn=Math.abs(l.left-s.left)>1}var Fn={},Hr={};function xl(e,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Fn[e]=i}function to(e,i){Hr[e]=i}function yn(e){if(typeof e=="string"&&Hr.hasOwnProperty(e))e=Hr[e];else if(e&&typeof e.name=="string"&&Hr.hasOwnProperty(e.name)){var i=Hr[e.name];typeof i=="string"&&(i={name:i}),e=$t(i,e),e.name=i.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return yn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return yn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function mr(e,i){i=yn(i);var l=Fn[i.name];if(!l)return mr(e,"text/plain");var s=l(e,i);if(Br.hasOwnProperty(i.name)){var c=Br[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 v in i.modeProps)s[v]=i.modeProps[v];return s}var Br={};function _l(e,i){var l=Br.hasOwnProperty(e)?Br[e]:Br[e]={};tt(i,l)}function yr(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 Wr(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 ns(e,i,l){return e.startState?e.startState(i,l):!0}var ke=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};ke.prototype.eol=function(){return this.pos>=this.string.length},ke.prototype.sol=function(){return this.pos==this.lineStart},ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ke.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ke.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},ke.prototype.eatWhile=function(e){for(var i=this.pos;this.eat(e););return this.pos>i},ke.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ke.prototype.skipToEnd=function(){this.pos=this.string.length},ke.prototype.skipTo=function(e){var i=this.string.indexOf(e,this.pos);if(i>-1)return this.pos=i,!0},ke.prototype.backUp=function(e){this.pos-=e},ke.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},ke.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},ke.prototype.match=function(e,i,l){if(typeof e=="string"){var s=function(v){return l?v.toLowerCase():v},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)}},ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},ke.prototype.hideFirstChars=function(e,i){this.lineStart+=e;try{return i()}finally{this.lineStart-=e}},ke.prototype.lookAhead=function(e){var i=this.lineOracle;return i&&i.lookAhead(e)},ke.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function At(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 br(e,i,l){var s=[],c=i.line;return e.iter(i.line,l.line+1,function(d){var v=d.text;c==l.line&&(v=v.slice(0,l.ch)),c==i.line&&(v=v.slice(i.ch)),s.push(v),++c}),s}function eo(e,i,l){var s=[];return e.iter(i,l,function(c){s.push(c.text)}),s}function Dn(e,i){var l=i-e.height;if(l)for(var s=e;s;s=s.parent)s.height+=l}function re(e){if(e.parent==null)return null;for(var i=e.parent,l=Ct(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 Qn(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 v=0;v<e.lines.length;++v){var y=e.lines[v],w=y.height;if(i<w)break;i-=w}return l+v}function T(e,i){return i>=e.first&&i<e.first+e.size}function $(e,i){return String(e.lineNumberFormatter(i+e.firstLineNumber))}function R(e,i,l){if(l===void 0&&(l=null),!(this instanceof R))return new R(e,i,l);this.line=e,this.ch=i,this.sticky=l}function K(e,i){return e.line-i.line||e.ch-i.ch}function It(e,i){return e.sticky==i.sticky&&K(e,i)==0}function Vt(e){return R(e.line,e.ch)}function ee(e,i){return K(e,i)<0?i:e}function Ne(e,i){return K(e,i)<0?e:i}function Ln(e,i){return Math.max(e.first,Math.min(i,e.first+e.size-1))}function Ft(e,i){if(i.line<e.first)return R(e.first,0);var l=e.first+e.size-1;return i.line>l?R(l,At(e,l).text.length):nb(i,At(e,i.line).text.length)}function nb(e,i){var l=e.ch;return l==null||l>i?R(e.line,i):l<0?R(e.line,0):e}function xh(e,i){for(var l=[],s=0;s<i.length;s++)l[s]=Ft(e,i[s]);return l}var Sl=function(e,i){this.state=e,this.lookAhead=i},tr=function(e,i,l,s){this.state=i,this.doc=e,this.line=l,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};tr.prototype.lookAhead=function(e){var i=this.doc.getLine(this.line+e);return i!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),i},tr.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}},tr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},tr.fromSaved=function(e,i,l){return i instanceof Sl?new tr(e,yr(e.mode,i.state),l,i.lookAhead):new tr(e,yr(e.mode,i),l)},tr.prototype.save=function(e){var i=e!==!1?yr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Sl(i,this.maxLookAhead):i};function _h(e,i,l,s){var c=[e.state.modeGen],d={};Lh(e,i.text,e.doc.mode,l,function(_,N){return c.push(_,N)},d,s);for(var v=l.state,y=function(_){l.baseTokens=c;var N=e.state.overlays[_],P=1,B=0;l.state=!0,Lh(e,i.text,N.mode,l,function(q,X){for(var rt=P;B<q;){var ct=c[P];ct>q&&c.splice(P,1,q,c[P+1],ct),P+=2,B=Math.min(q,ct)}if(!!X)if(N.opaque)c.splice(rt,P-rt,q,"overlay "+X),P=rt+2;else for(;rt<P;rt+=2){var mt=c[rt+1];c[rt+1]=(mt?mt+" ":"")+"overlay "+X}},d),l.state=v,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 Sh(e,i,l){if(!i.styles||i.styles[0]!=e.state.modeGen){var s=rs(e,re(i)),c=i.text.length>e.options.maxHighlightLength&&yr(e.doc.mode,s.state),d=_h(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 rs(e,i,l){var s=e.doc,c=e.display;if(!s.mode.startState)return new tr(s,!0,i);var d=rb(e,i,l),v=d>s.first&&At(s,d-1).stateAfter,y=v?tr.fromSaved(s,v,d):new tr(s,ns(s.mode),d);return s.iter(d,i,function(w){Sc(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 Sc(e,i,l,s){var c=e.doc.mode,d=new ke(i,e.options.tabSize,l);for(d.start=d.pos=s||0,i==""&&kh(c,l.state);!d.eol();)kc(c,d,l.state),d.start=d.pos}function kh(e,i){if(e.blankLine)return e.blankLine(i);if(!!e.innerMode){var l=Wr(e,i);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function kc(e,i,l,s){for(var c=0;c<10;c++){s&&(s[0]=Wr(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 Ch=function(e,i,l){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=i||null,this.state=l};function Th(e,i,l,s){var c=e.doc,d=c.mode,v;i=Ft(c,i);var y=At(c,i.line),w=rs(e,i.line,l),_=new ke(y.text,e.options.tabSize,w),N;for(s&&(N=[]);(s||_.pos<i.ch)&&!_.eol();)_.start=_.pos,v=kc(d,_,w.state),s&&N.push(new Ch(_,v,yr(c.mode,w.state)));return s?N:new Ch(_,v,w.state)}function Eh(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 Lh(e,i,l,s,c,d,v){var y=l.flattenSpans;y==null&&(y=e.options.flattenSpans);var w=0,_=null,N=new ke(i,e.options.tabSize,s),P,B=e.options.addModeClass&&[null];for(i==""&&Eh(kh(l,s.state),d);!N.eol();){if(N.pos>e.options.maxHighlightLength?(y=!1,v&&Sc(e,i,s,N.pos),N.pos=i.length,P=null):P=Eh(kc(l,N,s.state,B),d),B){var q=B[0].name;q&&(P="m-"+(P?q+" "+P:q))}if(!y||_!=P){for(;w<N.start;)w=Math.min(N.start,w+5e3),c(w,_);_=P}N.start=N.pos}for(;w<N.pos;){var X=Math.min(N.pos,w+5e3);c(X,_),w=X}}function rb(e,i,l){for(var s,c,d=e.doc,v=l?-1:i-(e.doc.mode.innerMode?1e3:100),y=i;y>v;--y){if(y<=d.first)return d.first;var w=At(d,y-1),_=w.stateAfter;if(_&&(!l||y+(_ instanceof Sl?_.lookAhead:0)<=d.modeFrontier))return y;var N=V(w.text,null,e.options.tabSize);(c==null||s>N)&&(c=y-1,s=N)}return c}function ib(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=At(e,s).stateAfter;if(c&&(!(c instanceof Sl)||s+c.lookAhead<i)){l=s+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,l)}}var Ah=!1,wr=!1;function ob(){Ah=!0}function sb(){wr=!0}function kl(e,i,l){this.marker=e,this.from=i,this.to=l}function is(e,i){if(e)for(var l=0;l<e.length;++l){var s=e[l];if(s.marker==i)return s}}function lb(e,i){for(var l,s=0;s<e.length;++s)e[s]!=i&&(l||(l=[])).push(e[s]);return l}function ab(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 cb(e,i,l){var s;if(e)for(var c=0;c<e.length;++c){var d=e[c],v=d.marker,y=d.from==null||(v.inclusiveLeft?d.from<=i:d.from<i);if(y||d.from==i&&v.type=="bookmark"&&(!l||!d.marker.insertLeft)){var w=d.to==null||(v.inclusiveRight?d.to>=i:d.to>i);(s||(s=[])).push(new kl(v,d.from,w?null:d.to))}}return s}function ub(e,i,l){var s;if(e)for(var c=0;c<e.length;++c){var d=e[c],v=d.marker,y=d.to==null||(v.inclusiveRight?d.to>=i:d.to>i);if(y||d.from==i&&v.type=="bookmark"&&(!l||d.marker.insertLeft)){var w=d.from==null||(v.inclusiveLeft?d.from<=i:d.from<i);(s||(s=[])).push(new kl(v,w?null:d.from-i,d.to==null?null:d.to-i))}}return s}function Cc(e,i){if(i.full)return null;var l=T(e,i.from.line)&&At(e,i.from.line).markedSpans,s=T(e,i.to.line)&&At(e,i.to.line).markedSpans;if(!l&&!s)return null;var c=i.from.ch,d=i.to.ch,v=K(i.from,i.to)==0,y=cb(l,c,v),w=ub(s,d,v),_=i.text.length==1,N=lt(i.text).length+(_?c:0);if(y)for(var P=0;P<y.length;++P){var B=y[P];if(B.to==null){var q=is(w,B.marker);q?_&&(B.to=q.to==null?null:q.to+N):B.to=c}}if(w)for(var X=0;X<w.length;++X){var rt=w[X];if(rt.to!=null&&(rt.to+=N),rt.from==null){var ct=is(y,rt.marker);ct||(rt.from=N,_&&(y||(y=[])).push(rt))}else rt.from+=N,_&&(y||(y=[])).push(rt)}y&&(y=Mh(y)),w&&w!=y&&(w=Mh(w));var mt=[y];if(!_){var _t=i.text.length-2,yt;if(_t>0&&y)for(var Tt=0;Tt<y.length;++Tt)y[Tt].to==null&&(yt||(yt=[])).push(new kl(y[Tt].marker,null,null));for(var Dt=0;Dt<_t;++Dt)mt.push(yt);mt.push(w)}return mt}function Mh(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 fb(e,i,l){var s=null;if(e.iter(i.line,l.line+1,function(q){if(q.markedSpans)for(var X=0;X<q.markedSpans.length;++X){var rt=q.markedSpans[X].marker;rt.readOnly&&(!s||Ct(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 v=s[d],y=v.find(0),w=0;w<c.length;++w){var _=c[w];if(!(K(_.to,y.from)<0||K(_.from,y.to)>0)){var N=[w,1],P=K(_.from,y.from),B=K(_.to,y.to);(P<0||!v.inclusiveLeft&&!P)&&N.push({from:_.from,to:y.from}),(B>0||!v.inclusiveRight&&!B)&&N.push({from:y.to,to:_.to}),c.splice.apply(c,N),w+=N.length-3}}return c}function Nh(e){var i=e.markedSpans;if(!!i){for(var l=0;l<i.length;++l)i[l].marker.detachLine(e);e.markedSpans=null}}function Oh(e,i){if(!!i){for(var l=0;l<i.length;++l)i[l].marker.attachLine(e);e.markedSpans=i}}function Cl(e){return e.inclusiveLeft?-1:0}function Tl(e){return e.inclusiveRight?1:0}function Tc(e,i){var l=e.lines.length-i.lines.length;if(l!=0)return l;var s=e.find(),c=i.find(),d=K(s.from,c.from)||Cl(e)-Cl(i);if(d)return-d;var v=K(s.to,c.to)||Tl(e)-Tl(i);return v||i.id-e.id}function Ph(e,i){var l=wr&&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||Tc(s,c.marker)<0)&&(s=c.marker);return s}function $h(e){return Ph(e,!0)}function El(e){return Ph(e,!1)}function hb(e,i){var l=wr&&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||Tc(s,d.marker)<0)&&(s=d.marker)}return s}function Dh(e,i,l,s,c){var d=At(e,i),v=wr&&d.markedSpans;if(v)for(var y=0;y<v.length;++y){var w=v[y];if(!!w.marker.collapsed){var _=w.marker.find(0),N=K(_.from,l)||Cl(w.marker)-Cl(c),P=K(_.to,s)||Tl(w.marker)-Tl(c);if(!(N>=0&&P<=0||N<=0&&P>=0)&&(N<=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?K(_.to,l)>=0:K(_.to,l)>0)||N>=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?K(_.from,s)<=0:K(_.from,s)<0)))return!0}}}function qn(e){for(var i;i=$h(e);)e=i.find(-1,!0).line;return e}function db(e){for(var i;i=El(e);)e=i.find(1,!0).line;return e}function pb(e){for(var i,l;i=El(e);)e=i.find(1,!0).line,(l||(l=[])).push(e);return l}function Ec(e,i){var l=At(e,i),s=qn(l);return l==s?i:re(s)}function Rh(e,i){if(i>e.lastLine())return i;var l=At(e,i),s;if(!Ur(e,l))return i;for(;s=El(l);)l=s.find(1,!0).line;return re(l)+1}function Ur(e,i){var l=wr&&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&&Lc(e,i,s))return!0}}}function Lc(e,i,l){if(l.to==null){var s=l.marker.find(1,!0);return Lc(e,s.line,is(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)&&Lc(e,i,c))return!0}function xr(e){e=qn(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 v=0;v<d.children.length;++v){var y=d.children[v];if(y==l)break;i+=y.height}return i}function Ll(e){if(e.height==0)return 0;for(var i=e.text.length,l,s=e;l=$h(s);){var c=l.find(0,!0);s=c.from.line,i+=c.from.ch-c.to.ch}for(s=e;l=El(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 Ac(e){var i=e.display,l=e.doc;i.maxLine=At(l,l.first),i.maxLineLength=Ll(i.maxLine),i.maxLineChanged=!0,l.iter(function(s){var c=Ll(s);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=s)})}var no=function(e,i,l){this.text=e,Oh(this,i),this.height=l?l(this):1};no.prototype.lineNo=function(){return re(this)},Je(no);function gb(e,i,l,s){e.text=i,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Nh(e),Oh(e,l);var c=s?s(e):1;c!=e.height&&Dn(e,c)}function vb(e){e.parent=null,Nh(e)}var mb={},yb={};function zh(e,i){if(!e||/^\s*$/.test(e))return null;var l=i.addModeClass?yb:mb;return l[e]||(l[e]=e.replace(/\S+/g,"cm-$&"))}function Ih(e,i){var l=H("span",null,null,m?"padding-right: .1px":null),s={pre:H("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,v=void 0;s.pos=0,s.addToken=wb,bl(e.display.measure)&&(v=be(d,e.doc.direction))&&(s.addToken=_b(s.addToken,v)),s.map=[];var y=i!=e.display.externalMeasured&&re(d);Sb(d,s,Sh(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(_c(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(m){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 ve(e,"renderLine",e,i.line,s.pre),s.pre.className&&(s.textClass=qt(s.pre.className,s.textClass||"")),s}function bb(e){var i=k("span","\u2022","cm-invalidchar");return i.title="\\u"+e.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function wb(e,i,l,s,c,d,v){if(!!i){var y=e.splitSpaces?xb(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 P=0;;){w.lastIndex=P;var B=w.exec(i),q=B?B.index-P:i.length-P;if(q){var X=document.createTextNode(y.slice(P,P+q));p&&g<9?N.appendChild(k("span",[X])):N.appendChild(X),e.map.push(e.pos,e.pos+q,X),e.col+=q,e.pos+=q}if(!B)break;P+=q+1;var rt=void 0;if(B[0]==" "){var ct=e.cm.options.tabSize,mt=ct-e.col%ct;rt=N.appendChild(k("span",pt(mt),"cm-tab")),rt.setAttribute("role","presentation"),rt.setAttribute("cm-text"," "),e.col+=mt}else B[0]=="\r"||B[0]==`
|
|
11
|
+
`?(rt=N.appendChild(k("span",B[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),rt.setAttribute("cm-text",B[0]),e.col+=1):(rt=e.cm.options.specialCharPlaceholder(B[0]),rt.setAttribute("cm-text",B[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||v){var _t=l||"";s&&(_t+=s),c&&(_t+=c);var yt=k("span",[N],_t,d);if(v)for(var Tt in v)v.hasOwnProperty(Tt)&&Tt!="style"&&Tt!="class"&&yt.setAttribute(Tt,v[Tt]);return e.content.appendChild(yt)}e.content.appendChild(N)}}function xb(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="\xA0"),s+=d,l=d==" "}return s}function _b(e,i){return function(l,s,c,d,v,y,w){c=c?c+" cm-force-border":"cm-force-border";for(var _=l.pos,N=_+s.length;;){for(var P=void 0,B=0;B<i.length&&(P=i[B],!(P.to>_&&P.from<=_));B++);if(P.to>=N)return e(l,s,c,d,v,y,w);e(l,s.slice(0,P.to-_),c,d,null,y,w),d=null,s=s.slice(P.to-_),_=P.to}}}function Fh(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 Sb(e,i,l){var s=e.markedSpans,c=e.text,d=0;if(!s){for(var v=1;v<l.length;v+=2)i.addToken(i,c.slice(d,d=l[v]),zh(l[v+1],i.cm.options));return}for(var y=c.length,w=0,_=1,N="",P,B,q=0,X,rt,ct,mt,_t;;){if(q==w){X=rt=ct=B="",_t=null,mt=null,q=1/0;for(var yt=[],Tt=void 0,Dt=0;Dt<s.length;++Dt){var Ot=s[Dt],Ut=Ot.marker;if(Ut.type=="bookmark"&&Ot.from==w&&Ut.widgetNode)yt.push(Ut);else if(Ot.from<=w&&(Ot.to==null||Ot.to>w||Ut.collapsed&&Ot.to==w&&Ot.from==w)){if(Ot.to!=null&&Ot.to!=w&&q>Ot.to&&(q=Ot.to,rt=""),Ut.className&&(X+=" "+Ut.className),Ut.css&&(B=(B?B+";":"")+Ut.css),Ut.startStyle&&Ot.from==w&&(ct+=" "+Ut.startStyle),Ut.endStyle&&Ot.to==q&&(Tt||(Tt=[])).push(Ut.endStyle,Ot.to),Ut.title&&((_t||(_t={})).title=Ut.title),Ut.attributes)for(var pe in Ut.attributes)(_t||(_t={}))[pe]=Ut.attributes[pe];Ut.collapsed&&(!mt||Tc(mt.marker,Ut)<0)&&(mt=Ot)}else Ot.from>w&&q>Ot.from&&(q=Ot.from)}if(Tt)for(var Re=0;Re<Tt.length;Re+=2)Tt[Re+1]==q&&(rt+=" "+Tt[Re]);if(!mt||mt.from==w)for(var _e=0;_e<yt.length;++_e)Fh(i,0,yt[_e]);if(mt&&(mt.from||0)==w){if(Fh(i,(mt.to==null?y+1:mt.to)-w,mt.marker,mt.from==null),mt.to==null)return;mt.to==w&&(mt=!1)}}if(w>=y)break;for(var wn=Math.min(y,q);;){if(N){var ln=w+N.length;if(!mt){var Le=ln>wn?N.slice(0,wn-w):N;i.addToken(i,Le,P?P+X:X,ct,w+Le.length==q?rt:"",B,_t)}if(ln>=wn){N=N.slice(wn-w),w=wn;break}w=ln,ct=""}N=c.slice(d,d=l[_++]),P=zh(l[_++],i.cm.options)}}}function qh(e,i,l){this.line=i,this.rest=pb(i),this.size=this.rest?re(lt(this.rest))-l+1:1,this.node=this.text=null,this.hidden=Ur(e,i)}function Al(e,i,l){for(var s=[],c,d=i;d<l;d=c){var v=new qh(e.doc,At(e.doc,d),d);c=d+v.size,s.push(v)}return s}var ro=null;function kb(e){ro?ro.ops.push(e):e.ownsGroup=ro={ops:[e],delayedCallbacks:[]}}function Cb(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 Tb(e,i){var l=e.ownsGroup;if(!!l)try{Cb(l)}finally{ro=null,i(l)}}var os=null;function Pe(e,i){var l=Zo(e,i);if(!!l.length){var s=Array.prototype.slice.call(arguments,2),c;ro?c=ro.delayedCallbacks:os?c=os:(c=os=[],setTimeout(Eb,0));for(var d=function(y){c.push(function(){return l[y].apply(null,s)})},v=0;v<l.length;++v)d(v)}}function Eb(){var e=os;os=null;for(var i=0;i<e.length;++i)e[i]()}function Hh(e,i,l,s){for(var c=0;c<i.changes.length;c++){var d=i.changes[c];d=="text"?Ab(e,i):d=="gutter"?Wh(e,i,l,s):d=="class"?Mc(e,i):d=="widget"&&Mb(e,i,s)}i.changes=null}function ss(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 Lb(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=ss(i);i.background=s.insertBefore(k("div",null,l),s.firstChild),e.display.input.setUneditable(i.background)}}function Bh(e,i){var l=e.display.externalMeasured;return l&&l.line==i.line?(e.display.externalMeasured=null,i.measure=l.measure,l.built):Ih(e,i)}function Ab(e,i){var l=i.text.className,s=Bh(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,Mc(e,i)):l&&(i.text.className=l)}function Mc(e,i){Lb(e,i),i.line.wrapClass?ss(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 Wh(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=ss(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 v=ss(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),v.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",$(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 Mb(e,i,l){i.alignable&&(i.alignable=null);for(var s=kt("CodeMirror-linewidget"),c=i.node.firstChild,d=void 0;c;c=d)d=c.nextSibling,s.test(c.className)&&i.node.removeChild(c);Uh(e,i,l)}function Nb(e,i,l,s){var c=Bh(e,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),Mc(e,i),Wh(e,i,l,s),Uh(e,i,s),i.node}function Uh(e,i,l){if(jh(e,i.line,i,l,!0),i.rest)for(var s=0;s<i.rest.length;s++)jh(e,i.rest[s],i,l,!1)}function jh(e,i,l,s,c){if(!!i.widgets)for(var d=ss(l),v=0,y=i.widgets;v<y.length;++v){var w=y[v],_=k("div",[w.node],"CodeMirror-linewidget"+(w.className?" "+w.className:""));w.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),Ob(w,_,l,s),e.display.input.setUneditable(_),c&&w.above?d.insertBefore(_,l.gutter||l.text):d.appendChild(_),Pe(w,"redraw")}}function Ob(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 ls(e){if(e.height!=null)return e.height;var i=e.doc.cm;if(!i)return 0;if(!et(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;"),I(i.display.measure,k("div",[e.node],null,l))}return e.height=e.node.parentNode.offsetHeight}function _r(e,i){for(var l=rn(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 Ml(e){return e.lineSpace.offsetTop}function Nc(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Gh(e){if(e.cachedPaddingH)return e.cachedPaddingH;var i=I(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 er(e){return de-e.display.nativeBarWidth}function bi(e){return e.display.scroller.clientWidth-er(e)-e.display.barWidth}function Oc(e){return e.display.scroller.clientHeight-er(e)-e.display.barHeight}function Pb(e,i,l){var s=e.options.lineWrapping,c=s&&bi(e);if(!i.measure.heights||s&&i.measure.width!=c){var d=i.measure.heights=[];if(s){i.measure.width=c;for(var v=i.text.firstChild.getClientRects(),y=0;y<v.length-1;y++){var w=v[y],_=v[y+1];Math.abs(w.bottom-_.bottom)>2&&d.push((w.bottom+_.top)/2-l.top)}}d.push(l.bottom-l.top)}}function Vh(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(re(e.rest[c])>l)return{map:e.measure.maps[c],cache:e.measure.caches[c],before:!0}}}function $b(e,i){i=qn(i);var l=re(i),s=e.display.externalMeasured=new qh(e.doc,i,l);s.lineN=l;var c=s.built=Ih(e,s);return s.text=c.pre,I(e.display.lineMeasure,c.pre),s}function Kh(e,i,l,s){return nr(e,io(e,i),l,s)}function Pc(e,i){if(i>=e.display.viewFrom&&i<e.display.viewTo)return e.display.view[_i(e,i)];var l=e.display.externalMeasured;if(l&&i>=l.lineN&&i<l.lineN+l.size)return l}function io(e,i){var l=re(i),s=Pc(e,l);s&&!s.text?s=null:s&&s.changes&&(Hh(e,s,l,Ic(e)),e.curOp.forceUpdate=!0),s||(s=$b(e,i));var c=Vh(s,i,l);return{line:i,view:s,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function nr(e,i,l,s,c){i.before&&(l=-1);var d=l+(s||""),v;return i.cache.hasOwnProperty(d)?v=i.cache[d]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Pb(e,i.view,i.rect),i.hasHeights=!0),v=Rb(e,i,l,s),v.bogus||(i.cache[d]=v)),{left:v.left,right:v.right,top:c?v.rtop:v.top,bottom:c?v.rbottom:v.bottom}}var Xh={left:0,right:0,top:0,bottom:0};function Yh(e,i,l){for(var s,c,d,v,y,w,_=0;_<e.length;_+=3)if(y=e[_],w=e[_+1],i<y?(c=0,d=1,v="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&&(v="right")),c!=null){if(s=e[_+2],y==w&&l==(s.insertLeft?"left":"right")&&(v=l),l=="left"&&c==0)for(;_&&e[_-2]==e[_-3]&&e[_-1].insertLeft;)s=e[(_-=3)+2],v="left";if(l=="right"&&c==w-y)for(;_<e.length-3&&e[_+3]==e[_+4]&&!e[_+5].insertLeft;)s=e[(_+=3)+2],v="right";break}return{node:s,start:c,end:d,collapse:v,coverStart:y,coverEnd:w}}function Db(e,i){var l=Xh;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 Rb(e,i,l,s){var c=Yh(i.map,l,s),d=c.node,v=c.start,y=c.end,w=c.collapse,_;if(d.nodeType==3){for(var N=0;N<4;N++){for(;v&&Qt(i.line.text.charAt(c.coverStart+v));)--v;for(;c.coverStart+y<c.coverEnd&&Qt(i.line.text.charAt(c.coverStart+y));)++y;if(p&&g<9&&v==0&&y==c.coverEnd-c.coverStart?_=d.parentNode.getBoundingClientRect():_=Db(W(d,v,y).getClientRects(),s),_.left||_.right||v==0)break;y=v,v=v-1,w="right"}p&&g<11&&(_=zb(e.display.measure,_))}else{v>0&&(w=s="right");var P;e.options.lineWrapping&&(P=d.getClientRects()).length>1?_=P[s=="right"?P.length-1:0]:_=d.getBoundingClientRect()}if(p&&g<9&&!v&&(!_||!_.left&&!_.right)){var B=d.parentNode.getClientRects()[0];B?_={left:B.left,right:B.left+so(e.display),top:B.top,bottom:B.bottom}:_=Xh}for(var q=_.top-i.rect.top,X=_.bottom-i.rect.top,rt=(q+X)/2,ct=i.view.measure.heights,mt=0;mt<ct.length-1&&!(rt<ct[mt]);mt++);var _t=mt?ct[mt-1]:0,yt=ct[mt],Tt={left:(w=="right"?_.right:_.left)-i.rect.left,right:(w=="left"?_.left:_.right)-i.rect.left,top:_t,bottom:yt};return!_.left&&!_.right&&(Tt.bogus=!0),e.options.singleCursorHeightPerLine||(Tt.rtop=q,Tt.rbottom=X),Tt}function zb(e,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wl(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 Jh(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 Zh(e){e.display.externalMeasure=null,U(e.display.lineMeasure);for(var i=0;i<e.display.view.length;i++)Jh(e.display.view[i])}function as(e){Zh(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Qh(e){return x&&z?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function td(e){return x&&z?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function $c(e){var i=qn(e),l=i.widgets,s=0;if(l)for(var c=0;c<l.length;++c)l[c].above&&(s+=ls(l[c]));return s}function Nl(e,i,l,s,c){if(!c){var d=$c(i);l.top+=d,l.bottom+=d}if(s=="line")return l;s||(s="local");var v=xr(i);if(s=="local"?v+=Ml(e.display):v-=e.display.viewOffset,s=="page"||s=="window"){var y=e.display.lineSpace.getBoundingClientRect();v+=y.top+(s=="window"?0:td(Gt(e)));var w=y.left+(s=="window"?0:Qh(Gt(e)));l.left+=w,l.right+=w}return l.top+=v,l.bottom+=v,l}function ed(e,i,l){if(l=="div")return i;var s=i.left,c=i.top;if(l=="page")s-=Qh(Gt(e)),c-=td(Gt(e));else if(l=="local"||!l){var d=e.display.sizer.getBoundingClientRect();s+=d.left,c+=d.top}var v=e.display.lineSpace.getBoundingClientRect();return{left:s-v.left,top:c-v.top}}function Ol(e,i,l,s,c){return s||(s=At(e.doc,i.line)),Nl(e,s,Kh(e,s,i.ch,c),l)}function Hn(e,i,l,s,c,d){s=s||At(e.doc,i.line),c||(c=io(e,s));function v(X,rt){var ct=nr(e,c,X,rt?"right":"left",d);return rt?ct.left=ct.right:ct.right=ct.left,Nl(e,s,ct,l)}var y=be(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 v(_=="before"?w-1:w,_=="before");function N(X,rt,ct){var mt=y[rt],_t=mt.level==1;return v(ct?X-1:X,_t!=ct)}var P=qe(y,w,_),B=En,q=N(w,P,_=="before");return B!=null&&(q.other=N(w,B,_!="before")),q}function nd(e,i){var l=0;i=Ft(e.doc,i),e.options.lineWrapping||(l=so(e.display)*i.ch);var s=At(e.doc,i.line),c=xr(s)+Ml(e.display);return{left:l,right:l,top:c,bottom:c+s.height}}function Dc(e,i,l,s,c){var d=R(e,i,l);return d.xRel=c,s&&(d.outside=s),d}function Rc(e,i,l){var s=e.doc;if(l+=e.display.viewOffset,l<0)return Dc(s.first,0,null,-1,-1);var c=Qn(s,l),d=s.first+s.size-1;if(c>d)return Dc(s.first+s.size-1,At(s,d).text.length,null,1,1);i<0&&(i=0);for(var v=At(s,c);;){var y=Ib(e,v,c,i,l),w=hb(v,y.ch+(y.xRel>0||y.outside>0?1:0));if(!w)return y;var _=w.find(1);if(_.line==c)return _;v=At(s,c=_.line)}}function rd(e,i,l,s){s-=$c(i);var c=i.text.length,d=Xt(function(v){return nr(e,l,v-1).bottom<=s},c,0);return c=Xt(function(v){return nr(e,l,v).top>s},d,c),{begin:d,end:c}}function id(e,i,l,s){l||(l=io(e,i));var c=Nl(e,i,nr(e,l,s),"line").top;return rd(e,i,l,c)}function zc(e,i,l,s){return e.bottom<=l?!1:e.top>l?!0:(s?e.left:e.right)>i}function Ib(e,i,l,s,c){c-=xr(i);var d=io(e,i),v=$c(i),y=0,w=i.text.length,_=!0,N=be(i,e.doc.direction);if(N){var P=(e.options.lineWrapping?qb:Fb)(e,i,l,d,N,s,c);_=P.level!=1,y=_?P.from:P.to-1,w=_?P.to:P.from-1}var B=null,q=null,X=Xt(function(Dt){var Ot=nr(e,d,Dt);return Ot.top+=v,Ot.bottom+=v,zc(Ot,s,c,!1)?(Ot.top<=c&&Ot.left<=s&&(B=Dt,q=Ot),!0):!1},y,w),rt,ct,mt=!1;if(q){var _t=s-q.left<q.right-s,yt=_t==_;X=B+(yt?0:1),ct=yt?"after":"before",rt=_t?q.left:q.right}else{!_&&(X==w||X==y)&&X++,ct=X==0?"after":X==i.text.length?"before":nr(e,d,X-(_?1:0)).bottom+v<=c==_?"after":"before";var Tt=Hn(e,R(l,X,ct),"line",i,d);rt=Tt.left,mt=c<Tt.top?-1:c>=Tt.bottom?1:0}return X=se(i.text,X,1),Dc(l,X,ct,mt,s-rt)}function Fb(e,i,l,s,c,d,v){var y=Xt(function(P){var B=c[P],q=B.level!=1;return zc(Hn(e,R(l,q?B.to:B.from,q?"before":"after"),"line",i,s),d,v,!0)},0,c.length-1),w=c[y];if(y>0){var _=w.level!=1,N=Hn(e,R(l,_?w.from:w.to,_?"after":"before"),"line",i,s);zc(N,d,v,!0)&&N.top>v&&(w=c[y-1])}return w}function qb(e,i,l,s,c,d,v){var y=rd(e,i,s,v),w=y.begin,_=y.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var N=null,P=null,B=0;B<c.length;B++){var q=c[B];if(!(q.from>=_||q.to<=w)){var X=q.level!=1,rt=nr(e,s,X?Math.min(_,q.to)-1:Math.max(w,q.from)).right,ct=rt<d?d-rt+1e9:rt-d;(!N||P>ct)&&(N=q,P=ct)}}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 wi;function oo(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wi==null){wi=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)wi.appendChild(document.createTextNode("x")),wi.appendChild(k("br"));wi.appendChild(document.createTextNode("x"))}I(e.measure,wi);var l=wi.offsetHeight/50;return l>3&&(e.cachedTextHeight=l),U(e.measure),l||1}function so(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var i=k("span","xxxxxxxxxx"),l=k("pre",[i],"CodeMirror-line-like");I(e.measure,l);var s=i.getBoundingClientRect(),c=(s.right-s.left)/10;return c>2&&(e.cachedCharWidth=c),c||10}function Ic(e){for(var i=e.display,l={},s={},c=i.gutters.clientLeft,d=i.gutters.firstChild,v=0;d;d=d.nextSibling,++v){var y=e.display.gutterSpecs[v].className;l[y]=d.offsetLeft+d.clientLeft+c,s[y]=d.clientWidth}return{fixedPos:Fc(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:l,gutterWidth:s,wrapperWidth:i.wrapper.clientWidth}}function Fc(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function od(e){var i=oo(e.display),l=e.options.lineWrapping,s=l&&Math.max(5,e.display.scroller.clientWidth/so(e.display)-3);return function(c){if(Ur(e.doc,c))return 0;var d=0;if(c.widgets)for(var v=0;v<c.widgets.length;v++)c.widgets[v].height&&(d+=c.widgets[v].height);return l?d+(Math.ceil(c.text.length/s)||1)*i:d+i}}function qc(e){var i=e.doc,l=od(e);i.iter(function(s){var c=l(s);c!=s.height&&Dn(s,c)})}function xi(e,i,l,s){var c=e.display;if(!l&&rn(i).getAttribute("cm-not-content")=="true")return null;var d,v,y=c.lineSpace.getBoundingClientRect();try{d=i.clientX-y.left,v=i.clientY-y.top}catch{return null}var w=Rc(e,d,v),_;if(s&&w.xRel>0&&(_=At(e.doc,w.line).text).length==w.ch){var N=V(_,_.length,e.options.tabSize)-_.length;w=R(w.line,Math.max(0,Math.round((d-Gh(e.display).left)/so(e.display))-N))}return w}function _i(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)wr&&Ec(e.doc,i)<c.viewTo&&Gr(e);else if(l<=c.viewFrom)wr&&Rh(e.doc,l+s)>c.viewFrom?Gr(e):(c.viewFrom+=s,c.viewTo+=s);else if(i<=c.viewFrom&&l>=c.viewTo)Gr(e);else if(i<=c.viewFrom){var d=Pl(e,l,l+s,1);d?(c.view=c.view.slice(d.index),c.viewFrom=d.lineN,c.viewTo+=s):Gr(e)}else if(l>=c.viewTo){var v=Pl(e,i,i,-1);v?(c.view=c.view.slice(0,v.index),c.viewTo=v.lineN):Gr(e)}else{var y=Pl(e,i,i,-1),w=Pl(e,l,l+s,1);y&&w?(c.view=c.view.slice(0,y.index).concat(Al(e,y.lineN,w.lineN)).concat(c.view.slice(w.index)),c.viewTo+=s):Gr(e)}var _=c.externalMeasured;_&&(l<_.lineN?_.lineN+=s:i<_.lineN+_.size&&(c.externalMeasured=null))}function jr(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[_i(e,i)];if(d.node!=null){var v=d.changes||(d.changes=[]);Ct(v,l)==-1&&v.push(l)}}}function Gr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Pl(e,i,l,s){var c=_i(e,i),d,v=e.display.view;if(!wr||l==e.doc.first+e.doc.size)return{index:c,lineN:l};for(var y=e.display.viewFrom,w=0;w<c;w++)y+=v[w].size;if(y!=i){if(s>0){if(c==v.length-1)return null;d=y+v[c].size-i,c++}else d=y-i;i+=d,l+=d}for(;Ec(e.doc,l)!=l;){if(c==(s<0?0:v.length-1))return null;l+=s*v[c-(s<0?1:0)].size,c+=s}return{index:c,lineN:l}}function Hb(e,i,l){var s=e.display,c=s.view;c.length==0||i>=s.viewTo||l<=s.viewFrom?(s.view=Al(e,i,l),s.viewFrom=i):(s.viewFrom>i?s.view=Al(e,i,s.viewFrom).concat(s.view):s.viewFrom<i&&(s.view=s.view.slice(_i(e,i))),s.viewFrom=i,s.viewTo<l?s.view=s.view.concat(Al(e,s.viewTo,l)):s.viewTo>l&&(s.view=s.view.slice(0,_i(e,l)))),s.viewTo=l}function sd(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 cs(e){e.display.input.showSelection(e.display.input.prepareSelection())}function ld(e,i){i===void 0&&(i=!0);var l=e.doc,s={},c=s.cursors=document.createDocumentFragment(),d=s.selection=document.createDocumentFragment(),v=e.options.$customCursor;v&&(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(v){var N=v(e,w);N&&Hc(e,N,c)}else(_||e.options.showCursorWhenSelecting)&&Hc(e,w.head,c);_||Bb(e,w,d)}}return s}function Hc(e,i,l){var s=Hn(e,i,"div",null,null,!e.options.singleCursorHeightPerLine),c=l.appendChild(k("div","\xA0","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=Ol(e,i,"div",null,null),v=d.right-d.left;c.style.width=(v>0?v:e.defaultCharWidth())+"px"}if(s.other){var y=l.appendChild(k("div","\xA0","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 $l(e,i){return e.top-i.top||e.left-i.left}function Bb(e,i,l){var s=e.display,c=e.doc,d=document.createDocumentFragment(),v=Gh(e.display),y=v.left,w=Math.max(s.sizerWidth,bi(e)-s.sizer.offsetLeft)-v.right,_=c.direction=="ltr";function N(yt,Tt,Dt,Ot){Tt<0&&(Tt=0),Tt=Math.round(Tt),Ot=Math.round(Ot),d.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+yt+`px;
|
|
12
|
+
top: `+Tt+"px; width: "+(Dt==null?w-yt:Dt)+`px;
|
|
13
|
+
height: `+(Ot-Tt)+"px"))}function P(yt,Tt,Dt){var Ot=At(c,yt),Ut=Ot.text.length,pe,Re;function _e(Le,an){return Ol(e,R(yt,Le),"div",Ot,an)}function wn(Le,an,He){var Oe=id(e,Ot,null,Le),Ae=an=="ltr"==(He=="after")?"left":"right",Ce=He=="after"?Oe.begin:Oe.end-(/\s/.test(Ot.text.charAt(Oe.end-1))?2:1);return _e(Ce,Ae)[Ae]}var ln=be(Ot,c.direction);return mn(ln,Tt||0,Dt==null?Ut:Dt,function(Le,an,He,Oe){var Ae=He=="ltr",Ce=_e(Le,Ae?"left":"right"),cn=_e(an-1,Ae?"right":"left"),wo=Tt==null&&Le==0,Zr=Dt==null&&an==Ut,Ke=Oe==0,rr=!ln||Oe==ln.length-1;if(cn.top-Ce.top<=3){var ze=(_?wo:Zr)&&Ke,du=(_?Zr:wo)&&rr,Cr=ze?y:(Ae?Ce:cn).left,Ei=du?w:(Ae?cn:Ce).right;N(Cr,Ce.top,Ei-Cr,Ce.bottom)}else{var Li,Qe,xo,pu;Ae?(Li=_&&wo&&Ke?y:Ce.left,Qe=_?w:wn(Le,He,"before"),xo=_?y:wn(an,He,"after"),pu=_&&Zr&&rr?w:cn.right):(Li=_?wn(Le,He,"before"):y,Qe=!_&&wo&&Ke?w:Ce.right,xo=!_&&Zr&&rr?y:cn.left,pu=_?wn(an,He,"after"):w),N(Li,Ce.top,Qe-Li,Ce.bottom),Ce.bottom<cn.top&&N(y,Ce.bottom,null,cn.top),N(xo,cn.top,pu-xo,cn.bottom)}(!pe||$l(Ce,pe)<0)&&(pe=Ce),$l(cn,pe)<0&&(pe=cn),(!Re||$l(Ce,Re)<0)&&(Re=Ce),$l(cn,Re)<0&&(Re=cn)}),{start:pe,end:Re}}var B=i.from(),q=i.to();if(B.line==q.line)P(B.line,B.ch,q.ch);else{var X=At(c,B.line),rt=At(c,q.line),ct=qn(X)==qn(rt),mt=P(B.line,B.ch,ct?X.text.length+1:null).end,_t=P(q.line,ct?0:null,q.ch).start;ct&&(mt.top<_t.top-2?(N(mt.right,mt.top,null,mt.bottom),N(y,_t.top,_t.left,_t.bottom)):N(mt.right,mt.top,_t.left-mt.right,mt.bottom)),mt.bottom<_t.top&&N(y,mt.bottom,null,_t.top)}l.appendChild(d)}function Bc(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()||lo(e),i.cursorDiv.style.visibility=(l=!l)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function ad(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Uc(e))}function Wc(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&lo(e))},100)}function Uc(e,i){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(ve(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(),m&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Bc(e))}function lo(e,i){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,i),e.state.focused=!1,ft(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Dl(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,v=0;v<i.view.length;v++){var y=i.view[v],w=e.options.lineWrapping,_=void 0,N=0;if(!y.hidden){if(c+=y.line.height,p&&g<8){var P=y.node.offsetTop+y.node.offsetHeight;_=P-l,l=P}else{var B=y.node.getBoundingClientRect();_=B.bottom-B.top,!w&&y.text.firstChild&&(N=y.text.firstChild.getBoundingClientRect().right-B.left-1)}var q=y.line.height-_;if((q>.005||q<-.005)&&(c<s&&(d-=q),Dn(y.line,_),cd(y.line),y.rest))for(var X=0;X<y.rest.length;X++)cd(y.rest[X]);if(N>e.display.sizerWidth){var rt=Math.ceil(N/so(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 cd(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 Rl(e,i,l){var s=l&&l.top!=null?Math.max(0,l.top):e.scroller.scrollTop;s=Math.floor(s-Ml(e));var c=l&&l.bottom!=null?l.bottom:s+e.wrapper.clientHeight,d=Qn(i,s),v=Qn(i,c);if(l&&l.ensure){var y=l.ensure.from.line,w=l.ensure.to.line;y<d?(d=y,v=Qn(i,xr(At(i,y))+e.wrapper.clientHeight)):Math.min(w,i.lastLine())>=v&&(d=Qn(i,xr(At(i,w))-e.wrapper.clientHeight),v=w)}return{from:d,to:Math.max(v,d+1)}}function Wb(e,i){if(!Se(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&&!C){var v=k("div","\u200B",null,`position: absolute;
|
|
14
|
+
top: `+(i.top-l.viewOffset-Ml(e.display))+`px;
|
|
15
|
+
height: `+(i.bottom-i.top+er(e)+l.barHeight)+`px;
|
|
16
|
+
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");e.display.lineSpace.appendChild(v),v.scrollIntoView(c),e.display.lineSpace.removeChild(v)}}}function Ub(e,i,l,s){s==null&&(s=0);var c;!e.options.lineWrapping&&i==l&&(l=i.sticky=="before"?R(i.line,i.ch+1,"before"):i,i=i.ch?R(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var d=0;d<5;d++){var v=!1,y=Hn(e,i),w=!l||l==i?y:Hn(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 _=jc(e,c),N=e.doc.scrollTop,P=e.doc.scrollLeft;if(_.scrollTop!=null&&(fs(e,_.scrollTop),Math.abs(e.doc.scrollTop-N)>1&&(v=!0)),_.scrollLeft!=null&&(Si(e,_.scrollLeft),Math.abs(e.doc.scrollLeft-P)>1&&(v=!0)),!v)break}return c}function jb(e,i){var l=jc(e,i);l.scrollTop!=null&&fs(e,l.scrollTop),l.scrollLeft!=null&&Si(e,l.scrollLeft)}function jc(e,i){var l=e.display,s=oo(e.display);i.top<0&&(i.top=0);var c=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:l.scroller.scrollTop,d=Oc(e),v={};i.bottom-i.top>d&&(i.bottom=i.top+d);var y=e.doc.height+Nc(l),w=i.top<s,_=i.bottom>y-s;if(i.top<c)v.scrollTop=w?0:i.top;else if(i.bottom>c+d){var N=Math.min(i.top,(_?y:i.bottom)-d);N!=c&&(v.scrollTop=N)}var P=e.options.fixedGutter?0:l.gutters.offsetWidth,B=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:l.scroller.scrollLeft-P,q=bi(e)-l.gutters.offsetWidth,X=i.right-i.left>q;return X&&(i.right=i.left+q),i.left<10?v.scrollLeft=0:i.left<B?v.scrollLeft=Math.max(0,i.left+P-(X?0:10)):i.right>q+B-3&&(v.scrollLeft=i.right+(X?0:10)-q),v}function Gc(e,i){i!=null&&(zl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+i)}function ao(e){zl(e);var i=e.getCursor();e.curOp.scrollToPos={from:i,to:i,margin:e.options.cursorScrollMargin}}function us(e,i,l){(i!=null||l!=null)&&zl(e),i!=null&&(e.curOp.scrollLeft=i),l!=null&&(e.curOp.scrollTop=l)}function Gb(e,i){zl(e),e.curOp.scrollToPos=i}function zl(e){var i=e.curOp.scrollToPos;if(i){e.curOp.scrollToPos=null;var l=nd(e,i.from),s=nd(e,i.to);ud(e,l,s,i.margin)}}function ud(e,i,l,s){var c=jc(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});us(e,c.scrollLeft,c.scrollTop)}function fs(e,i){Math.abs(e.doc.scrollTop-i)<2||(a||Kc(e,{top:i}),fd(e,i,!0),a&&Kc(e),ps(e,100))}function fd(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 Si(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,vd(e),e.display.scroller.scrollLeft!=i&&(e.display.scroller.scrollLeft=i),e.display.scrollbars.setScrollLeft(i))}function hs(e){var i=e.display,l=i.gutters.offsetWidth,s=Math.round(e.doc.height+Nc(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+er(e)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:l}}var ki=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),bt(s,"scroll",function(){s.clientHeight&&i(s.scrollTop,"vertical")}),bt(c,"scroll",function(){c.clientWidth&&i(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ki.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}},ki.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ki.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ki.prototype.zeroWidthHack=function(){var e=G&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new st,this.disableVert=new st},ki.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)},ki.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ds=function(){};ds.prototype.update=function(){return{bottom:0,right:0}},ds.prototype.setScrollLeft=function(){},ds.prototype.setScrollTop=function(){},ds.prototype.clear=function(){};function co(e,i){i||(i=hs(e));var l=e.display.barWidth,s=e.display.barHeight;hd(e,i);for(var c=0;c<4&&l!=e.display.barWidth||s!=e.display.barHeight;c++)l!=e.display.barWidth&&e.options.lineWrapping&&Dl(e),hd(e,hs(e)),l=e.display.barWidth,s=e.display.barHeight}function hd(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 dd={native:ki,null:ds};function pd(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ft(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new dd[e.options.scrollbarStyle](function(i){e.display.wrapper.insertBefore(i,e.display.scrollbarFiller),bt(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"?Si(e,i):fs(e,i)},e),e.display.scrollbars.addClass&&Lt(e.display.wrapper,e.display.scrollbars.addClass)}var Vb=0;function Ci(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:++Vb,markArrays:null},kb(e.curOp)}function Ti(e){var i=e.curOp;i&&Tb(i,function(l){for(var s=0;s<l.ops.length;s++)l.ops[s].cm.curOp=null;Kb(l)})}function Kb(e){for(var i=e.ops,l=0;l<i.length;l++)Xb(i[l]);for(var s=0;s<i.length;s++)Yb(i[s]);for(var c=0;c<i.length;c++)Jb(i[c]);for(var d=0;d<i.length;d++)Zb(i[d]);for(var v=0;v<i.length;v++)Qb(i[v])}function Xb(e){var i=e.cm,l=i.display;ew(i),e.updateMaxLine&&Ac(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 Il(i,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Yb(e){e.updatedDisplay=e.mustUpdate&&Vc(e.cm,e.update)}function Jb(e){var i=e.cm,l=i.display;e.updatedDisplay&&Dl(i),e.barMeasure=hs(i),l.maxLineChanged&&!i.options.lineWrapping&&(e.adjustWidthTo=Kh(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+er(i)+i.display.barWidth),e.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+e.adjustWidthTo-bi(i))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=l.input.prepareSelection())}function Zb(e){var i=e.cm;e.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<i.doc.scrollLeft&&Si(i,Math.min(i.display.scroller.scrollLeft,e.maxScrollLeft),!0),i.display.maxLineChanged=!1);var l=e.focus&&e.focus==wt(Gt(i));e.preparedSelection&&i.display.input.showSelection(e.preparedSelection,l),(e.updatedDisplay||e.startHeight!=i.doc.height)&&co(i,e.barMeasure),e.updatedDisplay&&Yc(i,e.barMeasure),e.selectionChanged&&Bc(i),i.state.focused&&e.updateInput&&i.display.input.reset(e.typing),l&&ad(e.cm)}function Qb(e){var i=e.cm,l=i.display,s=i.doc;if(e.updatedDisplay&&gd(i,e.update),l.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),e.scrollTop!=null&&fd(i,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Si(i,e.scrollLeft,!0,!0),e.scrollToPos){var c=Ub(i,Ft(s,e.scrollToPos.from),Ft(s,e.scrollToPos.to),e.scrollToPos.margin);Wb(i,c)}var d=e.maybeHiddenMarkers,v=e.maybeUnhiddenMarkers;if(d)for(var y=0;y<d.length;++y)d[y].lines.length||ve(d[y],"hide");if(v)for(var w=0;w<v.length;++w)v[w].lines.length&&ve(v[w],"unhide");l.wrapper.offsetHeight&&(s.scrollTop=i.display.scroller.scrollTop),e.changeObjs&&ve(i,"changes",i,e.changeObjs),e.update&&e.update.finish()}function bn(e,i){if(e.curOp)return i();Ci(e);try{return i()}finally{Ti(e)}}function $e(e,i){return function(){if(e.curOp)return i.apply(e,arguments);Ci(e);try{return i.apply(e,arguments)}finally{Ti(e)}}}function Ze(e){return function(){if(this.curOp)return e.apply(this,arguments);Ci(this);try{return e.apply(this,arguments)}finally{Ti(this)}}}function De(e){return function(){var i=this.cm;if(!i||i.curOp)return e.apply(this,arguments);Ci(i);try{return e.apply(this,arguments)}finally{Ti(i)}}}function ps(e,i){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(i,Z(tw,e))}function tw(e){var i=e.doc;if(!(i.highlightFrontier>=e.display.viewTo)){var l=+new Date+e.options.workTime,s=rs(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 v=d.styles,y=d.text.length>e.options.maxHighlightLength?yr(i.mode,s.state):null,w=_h(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 P=!v||v.length!=d.styles.length||_!=N&&(!_||!N||_.bgClass!=N.bgClass||_.textClass!=N.textClass),B=0;!P&&B<v.length;++B)P=v[B]!=d.styles[B];P&&c.push(s.line),d.stateAfter=s.save(),s.nextLine()}else d.text.length<=e.options.maxHighlightLength&&Sc(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&&bn(e,function(){for(var d=0;d<c.length;d++)jr(e,c[d],"text")})}}var Il=function(e,i,l){var s=e.display;this.viewport=i,this.visible=Rl(s,e.doc,i),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=bi(e),this.force=l,this.dims=Ic(e),this.events=[]};Il.prototype.signal=function(e,i){Ye(e,i)&&this.events.push(arguments)},Il.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ve.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=er(e)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=er(e)+"px",i.scrollbarsClipped=!0)}function nw(e){if(e.hasFocus())return null;var i=wt(Gt(e));if(!i||!et(e.display.lineDiv,i))return null;var l={activeElt:i};if(window.getSelection){var s=ne(e).getSelection();s.anchorNode&&s.extend&&et(e.display.lineDiv,s.anchorNode)&&(l.anchorNode=s.anchorNode,l.anchorOffset=s.anchorOffset,l.focusNode=s.focusNode,l.focusOffset=s.focusOffset)}return l}function rw(e){if(!(!e||!e.activeElt||e.activeElt==wt(e.activeElt.ownerDocument))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&et(document.body,e.anchorNode)&&et(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 Vc(e,i){var l=e.display,s=e.doc;if(i.editorIsHidden)return Gr(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&&sd(e)==0)return!1;md(e)&&(Gr(e),i.dims=Ic(e));var c=s.first+s.size,d=Math.max(i.visible.from-e.options.viewportMargin,s.first),v=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>v&&l.viewTo-v<20&&(v=Math.min(c,l.viewTo)),wr&&(d=Ec(e.doc,d),v=Rh(e.doc,v));var y=d!=l.viewFrom||v!=l.viewTo||l.lastWrapHeight!=i.wrapperHeight||l.lastWrapWidth!=i.wrapperWidth;Hb(e,d,v),l.viewOffset=xr(At(e.doc,l.viewFrom)),e.display.mover.style.top=l.viewOffset+"px";var w=sd(e);if(!y&&w==0&&!i.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var _=nw(e);return w>4&&(l.lineDiv.style.display="none"),iw(e,l.updateLineNumbers,i.dims),w>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,rw(_),U(l.cursorDiv),U(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 gd(e,i){for(var l=i.viewport,s=!0;;s=!1){if(!s||!e.options.lineWrapping||i.oldDisplayWidth==bi(e)){if(l&&l.top!=null&&(l={top:Math.min(e.doc.height+Nc(e.display)-Oc(e),l.top)}),i.visible=Rl(e.display,e.doc,l),i.visible.from>=e.display.viewFrom&&i.visible.to<=e.display.viewTo)break}else s&&(i.visible=Rl(e.display,e.doc,l));if(!Vc(e,i))break;Dl(e);var c=hs(e);cs(e),co(e,c),Yc(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 Kc(e,i){var l=new Il(e,i);if(Vc(e,l)){Dl(e),gd(e,l);var s=hs(e);cs(e),co(e,s),Yc(e,s),l.finish()}}function iw(e,i,l){var s=e.display,c=e.options.lineNumbers,d=s.lineDiv,v=d.firstChild;function y(X){var rt=X.nextSibling;return m&&G&&e.display.currentWheelTarget==X?X.style.display="none":X.parentNode.removeChild(X),rt}for(var w=s.view,_=s.viewFrom,N=0;N<w.length;N++){var P=w[N];if(!P.hidden)if(!P.node||P.node.parentNode!=d){var B=Nb(e,P,_,l);d.insertBefore(B,v)}else{for(;v!=P.node;)v=y(v);var q=c&&i!=null&&i<=_&&P.lineNumber;P.changes&&(Ct(P.changes,"gutter")>-1&&(q=!1),Hh(e,P,_,l)),q&&(U(P.lineNumber),P.lineNumber.appendChild(document.createTextNode($(e.options,_)))),v=P.node.nextSibling}_+=P.size}for(;v;)v=y(v)}function Xc(e){var i=e.gutters.offsetWidth;e.sizer.style.marginLeft=i+"px",Pe(e,"gutterChanged",e)}function Yc(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+er(e)+"px"}function vd(e){var i=e.display,l=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!e.options.fixedGutter))){for(var s=Fc(i)-i.scroller.scrollLeft+e.doc.scrollLeft,c=i.gutters.offsetWidth,d=s+"px",v=0;v<l.length;v++)if(!l[v].hidden){e.options.fixedGutter&&(l[v].gutter&&(l[v].gutter.style.left=d),l[v].gutterBackground&&(l[v].gutterBackground.style.left=d));var y=l[v].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 md(e){if(!e.options.lineNumbers)return!1;var i=e.doc,l=$(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,v=c.offsetWidth-d;return s.lineGutter.style.width="",s.lineNumInnerWidth=Math.max(d,s.lineGutter.offsetWidth-v)+1,s.lineNumWidth=s.lineNumInnerWidth+v,s.lineNumChars=s.lineNumInnerWidth?l.length:-1,s.lineGutter.style.width=s.lineNumWidth+"px",Xc(e.display),!0}return!1}function Jc(e,i){for(var l=[],s=!1,c=0;c<e.length;c++){var d=e[c],v=null;if(typeof d!="string"&&(v=d.style,d=d.className),d=="CodeMirror-linenumbers")if(i)s=!0;else continue;l.push({className:d,style:v})}return i&&!s&&l.push({className:"CodeMirror-linenumbers",style:null}),l}function yd(e){var i=e.gutters,l=e.gutterSpecs;U(i),e.lineGutter=null;for(var s=0;s<l.length;++s){var c=l[s],d=c.className,v=c.style,y=i.appendChild(k("div",null,"CodeMirror-gutter "+d));v&&(y.style.cssText=v),d=="CodeMirror-linenumbers"&&(e.lineGutter=y,y.style.width=(e.lineNumWidth||1)+"px")}i.style.display=l.length?"":"none",Xc(e)}function gs(e){yd(e.display),on(e),vd(e)}function ow(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=H("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=H("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var d=H("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: "+de+"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),!m&&!(a&&D)&&(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=Jc(s.gutters,s.lineNumbers),yd(c),l.init(c)}var Fl=0,Sr=null;p?Sr=-.53:a?Sr=15:x?Sr=-.7:A&&(Sr=-1/3);function bd(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 sw(e){var i=bd(e);return i.x*=Sr,i.y*=Sr,i}function wd(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=bd(i),s=l.x,c=l.y,d=Sr;i.deltaMode===0&&(s=i.deltaX,c=i.deltaY,d=1);var v=e.display,y=v.scroller,w=y.scrollWidth>y.clientWidth,_=y.scrollHeight>y.clientHeight;if(!!(s&&w||c&&_)){if(c&&G&&m){t:for(var N=i.target,P=v.view;N!=y;N=N.parentNode)for(var B=0;B<P.length;B++)if(P[B].node==N){e.display.currentWheelTarget=N;break t}}if(s&&!a&&!M&&d!=null){c&&_&&fs(e,Math.max(0,y.scrollTop+c*d)),Si(e,Math.max(0,y.scrollLeft+s*d)),(!c||c&&_)&&Ge(i),v.wheelStartX=null;return}if(c&&d!=null){var q=c*d,X=e.doc.scrollTop,rt=X+v.wrapper.clientHeight;q<0?X=Math.max(0,X+q-50):rt=Math.min(e.doc.height,rt+q+50),Kc(e,{top:X,bottom:rt})}Fl<20&&i.deltaMode!==0&&(v.wheelStartX==null?(v.wheelStartX=y.scrollLeft,v.wheelStartY=y.scrollTop,v.wheelDX=s,v.wheelDY=c,setTimeout(function(){if(v.wheelStartX!=null){var ct=y.scrollLeft-v.wheelStartX,mt=y.scrollTop-v.wheelStartY,_t=mt&&v.wheelDY&&mt/v.wheelDY||ct&&v.wheelDX&&ct/v.wheelDX;v.wheelStartX=v.wheelStartY=null,_t&&(Sr=(Sr*Fl+_t)/(Fl+1),++Fl)}},200)):(v.wheelDX+=s,v.wheelDY+=c))}}var An=function(e,i){this.ranges=e,this.primIndex=i};An.prototype.primary=function(){return this.ranges[this.primIndex]},An.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(!It(l.anchor,s.anchor)||!It(l.head,s.head))return!1}return!0},An.prototype.deepCopy=function(){for(var e=[],i=0;i<this.ranges.length;i++)e[i]=new ie(Vt(this.ranges[i].anchor),Vt(this.ranges[i].head));return new An(e,this.primIndex)},An.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},An.prototype.contains=function(e,i){i||(i=e);for(var l=0;l<this.ranges.length;l++){var s=this.ranges[l];if(K(i,s.from())>=0&&K(e,s.to())<=0)return l}return-1};var ie=function(e,i){this.anchor=e,this.head=i};ie.prototype.from=function(){return Ne(this.anchor,this.head)},ie.prototype.to=function(){return ee(this.anchor,this.head)},ie.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Bn(e,i,l){var s=e&&e.options.selectionsMayTouch,c=i[l];i.sort(function(B,q){return K(B.from(),q.from())}),l=Ct(i,c);for(var d=1;d<i.length;d++){var v=i[d],y=i[d-1],w=K(y.to(),v.from());if(s&&!v.empty()?w>0:w>=0){var _=Ne(y.from(),v.from()),N=ee(y.to(),v.to()),P=y.empty()?v.from()==v.head:y.from()==y.head;d<=l&&--l,i.splice(--d,2,new ie(P?N:_,P?_:N))}}return new An(i,l)}function Vr(e,i){return new An([new ie(e,i||e)],0)}function Kr(e){return e.text?R(e.from.line+e.text.length-1,lt(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function xd(e,i){if(K(e,i.from)<0)return e;if(K(e,i.to)<=0)return Kr(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+=Kr(i).ch-i.to.ch),R(l,s)}function Zc(e,i){for(var l=[],s=0;s<e.sel.ranges.length;s++){var c=e.sel.ranges[s];l.push(new ie(xd(c.anchor,i),xd(c.head,i)))}return Bn(e.cm,l,e.sel.primIndex)}function _d(e,i,l){return e.line==i.line?R(l.line,e.ch-i.ch+l.ch):R(l.line+(e.line-i.line),e.ch)}function lw(e,i,l){for(var s=[],c=R(e.first,0),d=c,v=0;v<i.length;v++){var y=i[v],w=_d(y.from,c,d),_=_d(Kr(y),c,d);if(c=y.to,d=_,l=="around"){var N=e.sel.ranges[v],P=K(N.head,N.anchor)<0;s[v]=new ie(P?_:w,P?w:_)}else s[v]=new ie(w,w)}return new An(s,e.sel.primIndex)}function Qc(e){e.doc.mode=mr(e.options,e.doc.modeOption),vs(e)}function vs(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 Sd(e,i){return i.from.ch==0&&i.to.ch==0&<(i.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function tu(e,i,l,s){function c(_t){return l?l[_t]:null}function d(_t,yt,Tt){gb(_t,yt,Tt,s),Pe(_t,"change",_t,i)}function v(_t,yt){for(var Tt=[],Dt=_t;Dt<yt;++Dt)Tt.push(new no(_[Dt],c(Dt),s));return Tt}var y=i.from,w=i.to,_=i.text,N=At(e,y.line),P=At(e,w.line),B=lt(_),q=c(_.length-1),X=w.line-y.line;if(i.full)e.insert(0,v(0,_.length)),e.remove(_.length,e.size-_.length);else if(Sd(e,i)){var rt=v(0,_.length-1);d(P,P.text,q),X&&e.remove(y.line,X),rt.length&&e.insert(y.line,rt)}else if(N==P)if(_.length==1)d(N,N.text.slice(0,y.ch)+B+N.text.slice(w.ch),q);else{var ct=v(1,_.length-1);ct.push(new no(B+N.text.slice(w.ch),q,s)),d(N,N.text.slice(0,y.ch)+_[0],c(0)),e.insert(y.line+1,ct)}else if(_.length==1)d(N,N.text.slice(0,y.ch)+_[0]+P.text.slice(w.ch),c(0)),e.remove(y.line+1,X);else{d(N,N.text.slice(0,y.ch)+_[0],c(0)),d(P,B+P.text.slice(w.ch),q);var mt=v(1,_.length-1);X>1&&e.remove(y.line+1,X-1),e.insert(y.line+1,mt)}Pe(e,"change",e,i)}function Xr(e,i,l){function s(c,d,v){if(c.linked)for(var y=0;y<c.linked.length;++y){var w=c.linked[y];if(w.doc!=d){var _=v&&w.sharedHist;l&&!_||(i(w.doc,_),s(w.doc,c,_))}}}s(e,null,!0)}function kd(e,i){if(i.cm)throw new Error("This document is already in use.");e.doc=i,i.cm=e,qc(e),Qc(e),Cd(e),e.options.direction=i.direction,e.options.lineWrapping||Ac(e),e.options.mode=i.modeOption,on(e)}function Cd(e){(e.doc.direction=="rtl"?Lt:ft)(e.display.lineDiv,"CodeMirror-rtl")}function aw(e){bn(e,function(){Cd(e),on(e)})}function ql(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 eu(e,i){var l={from:Vt(i.from),to:Kr(i),text:br(e,i.from,i.to)};return Ld(e,l,i.from.line,i.to.line+1),Xr(e,function(s){return Ld(s,l,i.from.line,i.to.line+1)},!0),l}function Td(e){for(;e.length;){var i=lt(e);if(i.ranges)e.pop();else break}}function cw(e,i){if(i)return Td(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 Ed(e,i,l,s){var c=e.history;c.undone.length=0;var d=+new Date,v,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)=="*"))&&(v=cw(c,c.lastOp==s)))y=lt(v.changes),K(i.from,i.to)==0&&K(i.from,y.to)==0?y.to=Kr(i):v.changes.push(eu(e,i));else{var w=lt(c.done);for((!w||!w.ranges)&&Hl(e.sel,c.done),v={changes:[eu(e,i)],generation:c.generation},c.done.push(v);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||ve(e,"historyAdded")}function uw(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 fw(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||uw(e,d,lt(c.done),i))?c.done[c.done.length-1]=i:Hl(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=d,c.lastSelOp=l,s&&s.clearRedo!==!1&&Td(c.undone)}function Hl(e,i){var l=lt(i);l&&l.ranges&&l.equals(e)||i.push(e)}function Ld(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(v){v.markedSpans&&((c||(c=i["spans_"+e.id]={}))[d]=v.markedSpans),++d})}function hw(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 dw(e,i){var l=i["spans_"+e.id];if(!l)return null;for(var s=[],c=0;c<i.text.length;++c)s.push(hw(l[c]));return s}function Ad(e,i){var l=dw(e,i),s=Cc(e,i);if(!l)return s;if(!s)return l;for(var c=0;c<l.length;++c){var d=l[c],v=s[c];if(d&&v){t:for(var y=0;y<v.length;++y){for(var w=v[y],_=0;_<d.length;++_)if(d[_].marker==w.marker)continue t;d.push(w)}}else v&&(l[c]=v)}return l}function uo(e,i,l){for(var s=[],c=0;c<e.length;++c){var d=e[c];if(d.ranges){s.push(l?An.prototype.deepCopy.call(d):d);continue}var v=d.changes,y=[];s.push({changes:y});for(var w=0;w<v.length;++w){var _=v[w],N=void 0;if(y.push({from:_.from,to:_.to,text:_.text}),i)for(var P in _)(N=P.match(/^spans_(\d+)$/))&&Ct(i,Number(N[1]))>-1&&(lt(y)[P]=_[P],delete _[P])}}return s}function nu(e,i,l,s){if(s){var c=e.anchor;if(l){var d=K(i,c)<0;d!=K(l,c)<0?(c=i,i=l):d!=K(i,l)<0&&(i=l)}return new ie(c,i)}else return new ie(l||i,i)}function Bl(e,i,l,s,c){c==null&&(c=e.cm&&(e.cm.display.shift||e.extend)),Ve(e,new An([nu(e.sel.primary(),i,l,c)],0),s)}function Md(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]=nu(e.sel.ranges[d],i[d],null,c);var v=Bn(e.cm,s,e.sel.primIndex);Ve(e,v,l)}function ru(e,i,l,s){var c=e.sel.ranges.slice(0);c[i]=l,Ve(e,Bn(e.cm,c,e.sel.primIndex),s)}function Nd(e,i,l,s){Ve(e,Vr(i,l),s)}function pw(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 ie(Ft(e,c[d].anchor),Ft(e,c[d].head))},origin:l&&l.origin};return ve(e,"beforeSelectionChange",e,s),e.cm&&ve(e.cm,"beforeSelectionChange",e.cm,s),s.ranges!=i.ranges?Bn(e.cm,s.ranges,s.ranges.length-1):i}function Od(e,i,l){var s=e.history.done,c=lt(s);c&&c.ranges?(s[s.length-1]=i,Wl(e,i,l)):Ve(e,i,l)}function Ve(e,i,l){Wl(e,i,l),fw(e,e.sel,e.cm?e.cm.curOp.id:NaN,l)}function Wl(e,i,l){(Ye(e,"beforeSelectionChange")||e.cm&&Ye(e.cm,"beforeSelectionChange"))&&(i=pw(e,i,l));var s=l&&l.bias||(K(i.primary().head,e.sel.primary().head)<0?-1:1);Pd(e,Dd(e,i,s,!0)),!(l&&l.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&ao(e.cm)}function Pd(e,i){i.equals(e.sel)||(e.sel=i,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,yl(e.cm)),Pe(e,"cursorActivity",e))}function $d(e){Pd(e,Dd(e,e.sel,null,!1))}function Dd(e,i,l,s){for(var c,d=0;d<i.ranges.length;d++){var v=i.ranges[d],y=i.ranges.length==e.sel.ranges.length&&e.sel.ranges[d],w=Ul(e,v.anchor,y&&y.anchor,l,s),_=v.head==v.anchor?w:Ul(e,v.head,y&&y.head,l,s);(c||w!=v.anchor||_!=v.head)&&(c||(c=i.ranges.slice(0,d)),c[d]=new ie(w,_))}return c?Bn(e.cm,c,i.primIndex):i}function fo(e,i,l,s,c){var d=At(e,i.line);if(d.markedSpans)for(var v=0;v<d.markedSpans.length;++v){var y=d.markedSpans[v],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&&(ve(w,"beforeCursorEnter"),w.explicitlyCleared))if(d.markedSpans){--v;continue}else break;if(!w.atomic)continue;if(l){var P=w.find(s<0?1:-1),B=void 0;if((s<0?N:_)&&(P=Rd(e,P,-s,P&&P.line==i.line?d:null)),P&&P.line==i.line&&(B=K(P,l))&&(s<0?B<0:B>0))return fo(e,P,i,s,c)}var q=w.find(s<0?-1:1);return(s<0?_:N)&&(q=Rd(e,q,s,q.line==i.line?d:null)),q?fo(e,q,i,s,c):null}}return i}function Ul(e,i,l,s,c){var d=s||1,v=fo(e,i,l,d,c)||!c&&fo(e,i,l,d,!0)||fo(e,i,l,-d,c)||!c&&fo(e,i,l,-d,!0);return v||(e.cantEdit=!0,R(e.first,0))}function Rd(e,i,l,s){return l<0&&i.ch==0?i.line>e.first?Ft(e,R(i.line-1)):null:l>0&&i.ch==(s||At(e,i.line)).text.length?i.line<e.first+e.size-1?R(i.line+1,0):null:new R(i.line,i.ch+l)}function zd(e){e.setSelection(R(e.firstLine(),0),R(e.lastLine()),O)}function Id(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,v,y){c&&(s.from=Ft(e,c)),d&&(s.to=Ft(e,d)),v&&(s.text=v),y!==void 0&&(s.origin=y)}),ve(e,"beforeChange",e,s),e.cm&&ve(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 ho(e,i,l){if(e.cm){if(!e.cm.curOp)return $e(e.cm,ho)(e,i,l);if(e.cm.state.suppressEdits)return}if(!((Ye(e,"beforeChange")||e.cm&&Ye(e.cm,"beforeChange"))&&(i=Id(e,i,!0),!i))){var s=Ah&&!l&&fb(e,i.from,i.to);if(s)for(var c=s.length-1;c>=0;--c)Fd(e,{from:s[c].from,to:s[c].to,text:c?[""]:i.text,origin:i.origin});else Fd(e,i)}}function Fd(e,i){if(!(i.text.length==1&&i.text[0]==""&&K(i.from,i.to)==0)){var l=Zc(e,i);Ed(e,i,l,e.cm?e.cm.curOp.id:NaN),ms(e,i,l,Cc(e,i));var s=[];Xr(e,function(c,d){!d&&Ct(s,c.history)==-1&&(Wd(c.history,i),s.push(c.history)),ms(c,i,null,Cc(c,i))})}}function jl(e,i,l){var s=e.cm&&e.cm.state.suppressEdits;if(!(s&&!l)){for(var c=e.history,d,v=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(Hl(d,w),l&&!d.equals(e.sel)){Ve(e,d,{clearRedo:!1});return}v=d}else if(s){y.push(d);return}else break;var N=[];Hl(v,w),w.push({changes:N,generation:c.generation}),c.generation=d.generation||++c.maxGeneration;for(var P=Ye(e,"beforeChange")||e.cm&&Ye(e.cm,"beforeChange"),B=function(rt){var ct=d.changes[rt];if(ct.origin=i,P&&!Id(e,ct,!1))return y.length=0,{};N.push(eu(e,ct));var mt=rt?Zc(e,ct):lt(y);ms(e,ct,mt,Ad(e,ct)),!rt&&e.cm&&e.cm.scrollIntoView({from:ct.from,to:Kr(ct)});var _t=[];Xr(e,function(yt,Tt){!Tt&&Ct(_t,yt.history)==-1&&(Wd(yt.history,ct),_t.push(yt.history)),ms(yt,ct,null,Ad(yt,ct))})},q=d.changes.length-1;q>=0;--q){var X=B(q);if(X)return X.v}}}}function qd(e,i){if(i!=0&&(e.first+=i,e.sel=new An(gt(e.sel.ranges,function(c){return new ie(R(c.anchor.line+i,c.anchor.ch),R(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++)jr(e.cm,s,"gutter")}}function ms(e,i,l,s){if(e.cm&&!e.cm.curOp)return $e(e.cm,ms)(e,i,l,s);if(i.to.line<e.first){qd(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);qd(e,c),i={from:R(e.first,0),to:R(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:R(d,At(e,d).text.length),text:[i.text[0]],origin:i.origin}),i.removed=br(e,i.from,i.to),l||(l=Zc(e,i)),e.cm?gw(e.cm,i,s):tu(e,i,s),Wl(e,l,O),e.cantEdit&&Ul(e,R(e.firstLine(),0))&&(e.cantEdit=!1)}}function gw(e,i,l){var s=e.doc,c=e.display,d=i.from,v=i.to,y=!1,w=d.line;e.options.lineWrapping||(w=re(qn(At(s,d.line))),s.iter(w,v.line+1,function(q){if(q==c.maxLine)return y=!0,!0})),s.sel.contains(i.from,i.to)>-1&&yl(e),tu(s,i,l,od(e)),e.options.lineWrapping||(s.iter(w,d.line+i.text.length,function(q){var X=Ll(q);X>c.maxLineLength&&(c.maxLine=q,c.maxLineLength=X,c.maxLineChanged=!0,y=!1)}),y&&(e.curOp.updateMaxLine=!0)),ib(s,d.line),ps(e,400);var _=i.text.length-(v.line-d.line)-1;i.full?on(e):d.line==v.line&&i.text.length==1&&!Sd(e.doc,i)?jr(e,d.line,"text"):on(e,d.line,v.line+1,_);var N=Ye(e,"changes"),P=Ye(e,"change");if(P||N){var B={from:d,to:v,text:i.text,removed:i.removed,origin:i.origin};P&&Pe(e,"change",e,B),N&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(B)}e.display.selForContextMenu=null}function po(e,i,l,s,c){var d;s||(s=l),K(s,l)<0&&(d=[s,l],l=d[0],s=d[1]),typeof i=="string"&&(i=e.splitLines(i)),ho(e,{from:l,to:s,text:i,origin:c})}function Hd(e,i,l,s){l<e.line?e.line+=s:i<e.line&&(e.line=i,e.ch=0)}function Bd(e,i,l,s){for(var c=0;c<e.length;++c){var d=e[c],v=!0;if(d.ranges){d.copied||(d=e[c]=d.deepCopy(),d.copied=!0);for(var y=0;y<d.ranges.length;y++)Hd(d.ranges[y].anchor,i,l,s),Hd(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=R(_.from.line+s,_.from.ch),_.to=R(_.to.line+s,_.to.ch);else if(i<=_.to.line){v=!1;break}}v||(e.splice(0,c+1),c=0)}}function Wd(e,i){var l=i.from.line,s=i.to.line,c=i.text.length-(s-l)-1;Bd(e.done,l,s,c),Bd(e.undone,l,s,c)}function ys(e,i,l,s){var c=i,d=i;return typeof i=="number"?d=At(e,Ln(e,i)):c=re(i),c==null?null:(s(d,c)&&e.cm&&jr(e.cm,c,l),d)}function bs(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}bs.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,vb(c),Pe(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 ws(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}ws.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),v=s.height;if(s.removeInner(e,d),this.height-=v-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 bs))){var y=[];this.collapse(y),this.children=[new bs(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 v=c.lines.length%25+25,y=v;y<c.lines.length;){var w=new bs(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,v),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 ws(i);if(e.parent){e.size-=l.size,e.height-=l.height;var c=Ct(e.parent.children,e);e.parent.children.splice(c+1,0,l)}else{var s=new ws(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 v=Math.min(i,d-e);if(c.iterN(e,v,l))return!0;if((i-=v)==0)break;e=0}else e-=d}}};var xs=function(e,i,l){if(l)for(var s in l)l.hasOwnProperty(s)&&(this[s]=l[s]);this.doc=e,this.node=i};xs.prototype.clear=function(){var e=this.doc.cm,i=this.line.widgets,l=this.line,s=re(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=ls(this);Dn(l,Math.max(0,l.height-d)),e&&(bn(e,function(){Ud(e,l,-d),jr(e,s,"widget")}),Pe(e,"lineWidgetCleared",e,this,s))}},xs.prototype.changed=function(){var e=this,i=this.height,l=this.doc.cm,s=this.line;this.height=null;var c=ls(this)-i;!c||(Ur(this.doc,s)||Dn(s,s.height+c),l&&bn(l,function(){l.curOp.forceUpdate=!0,Ud(l,s,c),Pe(l,"lineWidgetChanged",l,e,re(s))}))},Je(xs);function Ud(e,i,l){xr(i)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Gc(e,l)}function vw(e,i,l,s){var c=new xs(e,l,s),d=e.cm;return d&&c.noHScroll&&(d.display.alignWidgets=!0),ys(e,i,"widget",function(v){var y=v.widgets||(v.widgets=[]);if(c.insertAt==null?y.push(c):y.splice(Math.min(y.length,Math.max(0,c.insertAt)),0,c),c.line=v,d&&!Ur(e,v)){var w=xr(v)<e.scrollTop;Dn(v,v.height+ls(c)),w&&Gc(d,c.height),d.curOp.forceUpdate=!0}return!0}),d&&Pe(d,"lineWidgetAdded",d,c,typeof i=="number"?i:re(i)),c}var jd=0,Yr=function(e,i){this.lines=[],this.type=i,this.doc=e,this.id=++jd};Yr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,i=e&&!e.curOp;if(i&&Ci(e),Ye(this,"clear")){var l=this.find();l&&Pe(this,"clear",l.from,l.to)}for(var s=null,c=null,d=0;d<this.lines.length;++d){var v=this.lines[d],y=is(v.markedSpans,this);e&&!this.collapsed?jr(e,re(v),"text"):e&&(y.to!=null&&(c=re(v)),y.from!=null&&(s=re(v))),v.markedSpans=lb(v.markedSpans,y),y.from==null&&this.collapsed&&!Ur(this.doc,v)&&e&&Dn(v,oo(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var w=0;w<this.lines.length;++w){var _=qn(this.lines[w]),N=Ll(_);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&&$d(e.doc)),e&&Pe(e,"markerCleared",e,this,s,c),i&&Ti(e),this.parent&&this.parent.clear()}},Yr.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],v=is(d.markedSpans,this);if(v.from!=null&&(l=R(i?d:re(d),v.from),e==-1))return l;if(v.to!=null&&(s=R(i?d:re(d),v.to),e==1))return s}return l&&{from:l,to:s}},Yr.prototype.changed=function(){var e=this,i=this.find(-1,!0),l=this,s=this.doc.cm;!i||!s||bn(s,function(){var c=i.line,d=re(i.line),v=Pc(s,d);if(v&&(Jh(v),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!Ur(l.doc,c)&&l.height!=null){var y=l.height;l.height=null;var w=ls(l)-y;w&&Dn(c,c.height+w)}Pe(s,"markerChanged",s,e)})},Yr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ct(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Yr.prototype.detachLine=function(e){if(this.lines.splice(Ct(this.lines,e),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},Je(Yr);function go(e,i,l,s,c){if(s&&s.shared)return mw(e,i,l,s,c);if(e.cm&&!e.cm.curOp)return $e(e.cm,go)(e,i,l,s,c);var d=new Yr(e,c),v=K(i,l);if(s&&tt(s,d,!1),v>0||v==0&&d.clearWhenEmpty!==!1)return d;if(d.replacedWith&&(d.collapsed=!0,d.widgetNode=H("span",[d.replacedWith],"CodeMirror-widget"),s.handleMouseEvents||d.widgetNode.setAttribute("cm-ignore-events","true"),s.insertLeft&&(d.widgetNode.insertLeft=!0)),d.collapsed){if(Dh(e,i.line,i,l,d)||i.line!=l.line&&Dh(e,l.line,i,l,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");sb()}d.addToHistory&&Ed(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(P){w&&d.collapsed&&!w.options.lineWrapping&&qn(P)==w.display.maxLine&&(_=!0),d.collapsed&&y!=i.line&&Dn(P,0),ab(P,new kl(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(P){Ur(e,P)&&Dn(P,0)}),d.clearOnEnter&&bt(d,"beforeCursorEnter",function(){return d.clear()}),d.readOnly&&(ob(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),d.collapsed&&(d.id=++jd,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++)jr(w,N,"text");d.atomic&&$d(w.doc),Pe(w,"markerAdded",w,d)}return d}var _s=function(e,i){this.markers=e,this.primary=i;for(var l=0;l<e.length;++l)e[l].parent=this};_s.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Pe(this,"clear")}},_s.prototype.find=function(e,i){return this.primary.find(e,i)},Je(_s);function mw(e,i,l,s,c){s=tt(s),s.shared=!1;var d=[go(e,i,l,s,c)],v=d[0],y=s.widgetNode;return Xr(e,function(w){y&&(s.widgetNode=y.cloneNode(!0)),d.push(go(w,Ft(w,i),Ft(w,l),s,c));for(var _=0;_<w.linked.length;++_)if(w.linked[_].isParent)return;v=lt(d)}),new _s(d,v)}function Gd(e){return e.findMarks(R(e.first,0),e.clipPos(R(e.lastLine())),function(i){return i.parent})}function yw(e,i){for(var l=0;l<i.length;l++){var s=i[l],c=s.find(),d=e.clipPos(c.from),v=e.clipPos(c.to);if(K(d,v)){var y=go(e,d,v,s.primary,s.primary.type);s.markers.push(y),y.parent=s}}}function bw(e){for(var i=function(s){var c=e[s],d=[c.primary.doc];Xr(c.primary.doc,function(w){return d.push(w)});for(var v=0;v<c.markers.length;v++){var y=c.markers[v];Ct(d,y.doc)==-1&&(y.parent=null,c.markers.splice(v--,1))}},l=0;l<e.length;l++)i(l)}var ww=0,sn=function(e,i,l,s,c){if(!(this instanceof sn))return new sn(e,i,l,s,c);l==null&&(l=0),ws.call(this,[new bs([new no("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var d=R(l,0);this.sel=Vr(d),this.history=new ql(null),this.id=++ww,this.modeOption=i,this.lineSep=s,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),tu(this,{from:d,to:d,text:e}),Ve(this,Vr(d),O)};sn.prototype=$t(ws.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=eo(this,this.first,this.first+this.size);return e===!1?i:i.join(e||this.lineSeparator())},setValue:De(function(e){var i=R(this.first,0),l=this.first+this.size-1;ho(this,{from:i,to:R(l,At(this,l).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&us(this.cm,0,0),Ve(this,Vr(i),O)}),replaceRange:function(e,i,l,s){i=Ft(this,i),l=l?Ft(this,l):i,po(this,e,i,l,s)},getRange:function(e,i,l){var s=br(this,Ft(this,e),Ft(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(T(this,e))return At(this,e)},getLineNumber:function(e){return re(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=At(this,e)),qn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Ft(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:De(function(e,i,l){Nd(this,Ft(this,typeof e=="number"?R(e,i||0):e),null,l)}),setSelection:De(function(e,i,l){Nd(this,Ft(this,e),Ft(this,i||e),l)}),extendSelection:De(function(e,i,l){Bl(this,Ft(this,e),i&&Ft(this,i),l)}),extendSelections:De(function(e,i){Md(this,xh(this,e),i)}),extendSelectionsBy:De(function(e,i){var l=gt(this.sel.ranges,e);Md(this,xh(this,l),i)}),setSelections:De(function(e,i,l){if(!!e.length){for(var s=[],c=0;c<e.length;c++)s[c]=new ie(Ft(this,e[c].anchor),Ft(this,e[c].head||e[c].anchor));i==null&&(i=Math.min(e.length-1,this.sel.primIndex)),Ve(this,Bn(this.cm,s,i),l)}}),addSelection:De(function(e,i,l){var s=this.sel.ranges.slice(0);s.push(new ie(Ft(this,e),Ft(this,i||e))),Ve(this,Bn(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=br(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=br(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:De(function(e,i,l){for(var s=[],c=this.sel,d=0;d<c.ranges.length;d++){var v=c.ranges[d];s[d]={from:v.from(),to:v.to(),text:this.splitLines(e[d]),origin:l}}for(var y=i&&i!="end"&&lw(this,s,i),w=s.length-1;w>=0;w--)ho(this,s[w]);y?Od(this,y):this.cm&&ao(this.cm)}),undo:De(function(){jl(this,"undo")}),redo:De(function(){jl(this,"redo")}),undoSelection:De(function(){jl(this,"undo",!0)}),redoSelection:De(function(){jl(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 ql(this.history),Xr(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:uo(this.history.done),undone:uo(this.history.undone)}},setHistory:function(e){var i=this.history=new ql(this.history);i.done=uo(e.done.slice(0),null,!0),i.undone=uo(e.undone.slice(0),null,!0)},setGutterMarker:De(function(e,i,l){return ys(this,e,"gutter",function(s){var c=s.gutterMarkers||(s.gutterMarkers={});return c[i]=l,!l&&jt(c)&&(s.gutterMarkers=null),!0})}),clearGutter:De(function(e){var i=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[e]&&ys(i,l,"gutter",function(){return l.gutterMarkers[e]=null,jt(l.gutterMarkers)&&(l.gutterMarkers=null),!0})})}),lineInfo:function(e){var i;if(typeof e=="number"){if(!T(this,e)||(i=e,e=At(this,e),!e))return null}else if(i=re(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:De(function(e,i,l){return ys(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(kt(l).test(s[c]))return!1;s[c]+=" "+l}return!0})}),removeLineClass:De(function(e,i,l){return ys(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 v=d.match(kt(l));if(!v)return!1;var y=v.index+v[0].length;s[c]=d.slice(0,v.index)+(!v.index||y==d.length?"":" ")+d.slice(y)||null}else return!1;return!0})}),addLineWidget:De(function(e,i,l){return vw(this,e,i,l)}),removeLineWidget:function(e){e.clear()},markText:function(e,i,l){return go(this,Ft(this,e),Ft(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=Ft(this,e),go(this,e,e,l,"bookmark")},findMarksAt:function(e){e=Ft(this,e);var i=[],l=At(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=Ft(this,e),i=Ft(this,i);var s=[],c=e.line;return this.iter(e.line,i.line+1,function(d){var v=d.markedSpans;if(v)for(var y=0;y<v.length;y++){var w=v[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}),Ft(this,R(l,i))},indexFromPos:function(e){e=Ft(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(eo(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(eo(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}],yw(s,Gd(this)),s},unlinkDoc:function(e){if(e instanceof we&&(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),bw(Gd(this));break}}if(e.history==this.history){var s=[e.id];Xr(e,function(c){return s.push(c.id)},!0),e.history=new ql(null),e.history.done=uo(this.history.done,s),e.history.undone=uo(this.history.undone,s)}},iterLinkedDocs:function(e){Xr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):es(e)},lineSeparator:function(){return this.lineSep||`
|
|
17
|
+
`},setDirection:De(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(i){return i.order=null}),this.cm&&aw(this.cm))})}),sn.prototype.eachLine=sn.prototype.iter;var Vd=0;function xw(e){var i=this;if(Kd(i),!(Se(i,e)||_r(i.display,e))){Ge(e),p&&(Vd=+new Date);var l=xi(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),v=0,y=function(){++v==c&&$e(i,function(){l=Ft(i.doc,l);var q={from:l,to:l,text:i.doc.splitLines(d.filter(function(X){return X!=null}).join(i.doc.lineSeparator())),origin:"paste"};ho(i.doc,q),Od(i.doc,Vr(Ft(i.doc,l),Ft(i.doc,Kr(q))))})()},w=function(q,X){if(i.options.allowDropFileTypes&&Ct(i.options.allowDropFileTypes,q.type)==-1){y();return}var rt=new FileReader;rt.onerror=function(){return y()},rt.onload=function(){var ct=rt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ct)){y();return}d[X]=ct,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 P;if(i.state.draggingText&&!i.state.draggingText.copy&&(P=i.listSelections()),Wl(i.doc,Vr(l,l)),P)for(var B=0;B<P.length;++B)po(i.doc,"",P[B].anchor,P[B].head,"drag");i.replaceSelection(N,"around","paste"),i.display.input.focus()}}catch{}}}}function _w(e,i){if(p&&(!e.state.draggingText||+new Date-Vd<100)){vr(i);return}if(!(Se(e,i)||_r(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==",M&&(l.width=l.height=1,e.display.wrapper.appendChild(l),l._top=l.offsetTop),i.dataTransfer.setDragImage(l,0,0),M&&l.parentNode.removeChild(l)}}function Sw(e,i){var l=xi(e,i);if(!!l){var s=document.createDocumentFragment();Hc(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)),I(e.display.dragCursor,s)}}function Kd(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Xd(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 Yd=!1;function kw(){Yd||(Cw(),Yd=!0)}function Cw(){var e;bt(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Xd(Tw)},100))}),bt(window,"blur",function(){return Xd(lo)})}function Tw(e){var i=e.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,e.setSize()}for(var Jr={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"},Ss=0;Ss<10;Ss++)Jr[Ss+48]=Jr[Ss+96]=String(Ss);for(var Gl=65;Gl<=90;Gl++)Jr[Gl]=String.fromCharCode(Gl);for(var ks=1;ks<=12;ks++)Jr[ks+111]=Jr[ks+63235]="F"+ks;var kr={};kr.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},kr.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},kr.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},kr.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},kr.default=G?kr.macDefault:kr.pcDefault;function Ew(e){var i=e.split(/-(?!$)/);e=i[i.length-1];for(var l,s,c,d,v=0;v<i.length-1;v++){var y=i[v];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 Lw(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=gt(l.split(" "),Ew),d=0;d<c.length;d++){var v=void 0,y=void 0;d==c.length-1?(y=c.join(" "),v=s):(y=c.slice(0,d+1).join(" "),v="...");var w=i[y];if(!w)i[y]=v;else if(w!=v)throw new Error("Inconsistent bindings for "+y)}delete e[l]}for(var _ in i)e[_]=i[_];return e}function vo(e,i,l,s){i=Vl(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 vo(e,i.fallthrough,l,s);for(var d=0;d<i.fallthrough.length;d++){var v=vo(e,i.fallthrough[d],l,s);if(v)return v}}}function Jd(e){var i=typeof e=="string"?e:Jr[e.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Zd(e,i,l){var s=e;return i.altKey&&s!="Alt"&&(e="Alt-"+e),(dt?i.metaKey:i.ctrlKey)&&s!="Ctrl"&&(e="Ctrl-"+e),(dt?i.ctrlKey:i.metaKey)&&s!="Mod"&&(e="Cmd-"+e),!l&&i.shiftKey&&s!="Shift"&&(e="Shift-"+e),e}function Qd(e,i){if(M&&e.keyCode==34&&e.char)return!1;var l=Jr[e.keyCode];return l==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(l=e.code),Zd(l,e,i))}function Vl(e){return typeof e=="string"?kr[e]:e}function mo(e,i){for(var l=e.doc.sel.ranges,s=[],c=0;c<l.length;c++){for(var d=i(l[c]);s.length&&K(d.from,lt(s).to)<=0;){var v=s.pop();if(K(v.from,d.from)<0){d.from=v.from;break}}s.push(d)}bn(e,function(){for(var y=s.length-1;y>=0;y--)po(e.doc,"",s[y].from,s[y].to,"+delete");ao(e)})}function iu(e,i,l){var s=se(e.text,i+l,l);return s<0||s>e.text.length?null:s}function ou(e,i,l){var s=iu(e,i.ch,l);return s==null?null:new R(i.line,s,l<0?"after":"before")}function su(e,i,l,s,c){if(e){i.doc.direction=="rtl"&&(c=-c);var d=be(l,i.doc.direction);if(d){var v=c<0?lt(d):d[0],y=c<0==(v.level==1),w=y?"after":"before",_;if(v.level>0||i.doc.direction=="rtl"){var N=io(i,l);_=c<0?l.text.length-1:0;var P=nr(i,N,_).top;_=Xt(function(B){return nr(i,N,B).top==P},c<0==(v.level==1)?v.from:v.to-1,_),w=="before"&&(_=iu(l,_,1))}else _=c<0?v.to:v.from;return new R(s,_,w)}}return new R(s,c<0?l.text.length:0,c<0?"before":"after")}function Aw(e,i,l,s){var c=be(i,e.doc.direction);if(!c)return ou(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=qe(c,l.ch,l.sticky),v=c[d];if(e.doc.direction=="ltr"&&v.level%2==0&&(s>0?v.to>l.ch:v.from<l.ch))return ou(i,l,s);var y=function(mt,_t){return iu(i,mt instanceof R?mt.ch:mt,_t)},w,_=function(mt){return e.options.lineWrapping?(w=w||io(e,i),id(e,i,w,mt)):{begin:0,end:i.text.length}},N=_(l.sticky=="before"?y(l,-1):l.ch);if(e.doc.direction=="rtl"||v.level==1){var P=v.level==1==s<0,B=y(l,P?1:-1);if(B!=null&&(P?B<=v.to&&B<=N.end:B>=v.from&&B>=N.begin)){var q=P?"before":"after";return new R(l.line,B,q)}}var X=function(mt,_t,yt){for(var Tt=function(pe,Re){return Re?new R(l.line,y(pe,1),"before"):new R(l.line,pe,"after")};mt>=0&&mt<c.length;mt+=_t){var Dt=c[mt],Ot=_t>0==(Dt.level!=1),Ut=Ot?yt.begin:y(yt.end,-1);if(Dt.from<=Ut&&Ut<Dt.to||(Ut=Ot?Dt.from:y(Dt.to,-1),yt.begin<=Ut&&Ut<yt.end))return Tt(Ut,Ot)}},rt=X(d+s,s,N);if(rt)return rt;var ct=s>0?N.end:y(N.begin,-1);return ct!=null&&!(s>0&&ct==i.text.length)&&(rt=X(s>0?0:c.length-1,s,_(ct)),rt)?rt:null}var Cs={selectAll:zd,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),O)},killLine:function(e){return mo(e,function(i){if(i.empty()){var l=At(e.doc,i.head.line).text.length;return i.head.ch==l&&i.head.line<e.lastLine()?{from:i.head,to:R(i.head.line+1,0)}:{from:i.head,to:R(i.head.line,l)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(e){return mo(e,function(i){return{from:R(i.from().line,0),to:Ft(e.doc,R(i.to().line+1,0))}})},delLineLeft:function(e){return mo(e,function(i){return{from:R(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(e){return mo(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 mo(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(R(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(R(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(i){return tp(e,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(i){return ep(e,i.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(i){return Mw(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")},Y)},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")},Y)},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/)?ep(e,i.head):s},Y)},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(),v=V(e.getLine(d.line),d.ch,s);i.push(pt(s-v%s))}e.replaceSelections(i)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return bn(e,function(){for(var i=e.listSelections(),l=[],s=0;s<i.length;s++)if(!!i[s].empty()){var c=i[s].head,d=At(e.doc,c.line).text;if(d){if(c.ch==d.length&&(c=new R(c.line,c.ch-1)),c.ch>0)c=new R(c.line,c.ch+1),e.replaceRange(d.charAt(c.ch-1)+d.charAt(c.ch-2),R(c.line,c.ch-2),c,"+transpose");else if(c.line>e.doc.first){var v=At(e.doc,c.line-1).text;v&&(c=new R(c.line,1),e.replaceRange(d.charAt(0)+e.doc.lineSeparator()+v.charAt(v.length-1),R(c.line-1,v.length-1),c,"+transpose"))}}l.push(new ie(c,c))}e.setSelections(l)})},newlineAndIndent:function(e){return bn(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);ao(e)})},openLine:function(e){return e.replaceSelection(`
|
|
18
|
+
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function tp(e,i){var l=At(e.doc,i),s=qn(l);return s!=l&&(i=re(s)),su(!0,e,s,i,1)}function Mw(e,i){var l=At(e.doc,i),s=db(l);return s!=l&&(i=re(s)),su(!0,e,l,i,-1)}function ep(e,i){var l=tp(e,i.line),s=At(e.doc,l.line),c=be(s,e.doc.direction);if(!c||c[0].level==0){var d=Math.max(l.ch,s.text.search(/\S/)),v=i.line==l.line&&i.ch<=d&&i.ch;return R(l.line,v?0:d,l.sticky)}return l}function Kl(e,i,l){if(typeof i=="string"&&(i=Cs[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)!=Et}finally{e.display.shift=s,e.state.suppressEdits=!1}return c}function Nw(e,i,l){for(var s=0;s<e.state.keyMaps.length;s++){var c=vo(i,e.state.keyMaps[s],l,e);if(c)return c}return e.options.extraKeys&&vo(i,e.options.extraKeys,l,e)||vo(i,e.options.keyMap,l,e)}var Ow=new st;function Ts(e,i,l,s){var c=e.state.keySeq;if(c){if(Jd(i))return"handled";if(/\'$/.test(i)?e.state.keySeq=null:Ow.set(50,function(){e.state.keySeq==c&&(e.state.keySeq=null,e.display.input.reset())}),np(e,c+" "+i,l,s))return!0}return np(e,i,l,s)}function np(e,i,l,s){var c=Nw(e,i,s);return c=="multi"&&(e.state.keySeq=i),c=="handled"&&Pe(e,"keyHandled",e,i,l),(c=="handled"||c=="multi")&&(Ge(l),Bc(e)),!!c}function rp(e,i){var l=Qd(i,!0);return l?i.shiftKey&&!e.state.keySeq?Ts(e,"Shift-"+l,i,function(s){return Kl(e,s,!0)})||Ts(e,l,i,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return Kl(e,s)}):Ts(e,l,i,function(s){return Kl(e,s)}):!1}function Pw(e,i,l){return Ts(e,"'"+l+"'",i,function(s){return Kl(e,s,!0)})}var lu=null;function ip(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&(i.curOp.focus=wt(Gt(i)),!Se(i,e))){p&&g<11&&e.keyCode==27&&(e.returnValue=!1);var l=e.keyCode;i.display.shift=l==16||e.shiftKey;var s=rp(i,e);M&&(lu=s?l:null,!s&&l==88&&!Jn&&(G?e.metaKey:e.ctrlKey)&&i.replaceSelection("",null,"cut")),a&&!G&&!s&&l==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&$w(i)}}function $w(e){var i=e.display.lineDiv;Lt(i,"CodeMirror-crosshair");function l(s){(s.keyCode==18||!s.altKey)&&(ft(i,"CodeMirror-crosshair"),je(document,"keyup",l),je(document,"mouseover",l))}bt(document,"keyup",l),bt(document,"mouseover",l)}function op(e){e.keyCode==16&&(this.doc.sel.shift=!1),Se(this,e)}function sp(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&!(_r(i.display,e)||Se(i,e)||e.ctrlKey&&!e.altKey||G&&e.metaKey)){var l=e.keyCode,s=e.charCode;if(M&&l==lu){lu=null,Ge(e);return}if(!(M&&(!e.which||e.which<10)&&rp(i,e))){var c=String.fromCharCode(s==null?l:s);c!="\b"&&(Pw(i,e,c)||i.display.input.onKeyPress(e))}}}var Dw=400,au=function(e,i,l){this.time=e,this.pos=i,this.button=l};au.prototype.compare=function(e,i,l){return this.time+Dw>e&&K(i,this.pos)==0&&l==this.button};var Es,Ls;function Rw(e,i){var l=+new Date;return Ls&&Ls.compare(l,e,i)?(Es=Ls=null,"triple"):Es&&Es.compare(l,e,i)?(Ls=new au(l,e,i),Es=null,"double"):(Es=new au(l,e,i),Ls=null,"single")}function lp(e){var i=this,l=i.display;if(!(Se(i,e)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=e.shiftKey,_r(l,e)){m||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!cu(i,e)){var s=xi(i,e),c=ts(e),d=s?Rw(s,c):"single";ne(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(e),!(s&&zw(i,c,s,d,e))&&(c==1?s?Fw(i,s,d,e):rn(e)==l.scroller&&Ge(e):c==2?(s&&Bl(i.doc,s),setTimeout(function(){return l.input.focus()},20)):c==3&&(vt?i.display.input.onContextMenu(e):Wc(i)))}}}function zw(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,Ts(e,Zd(d,c),c,function(v){if(typeof v=="string"&&(v=Cs[v]),!v)return!1;var y=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),y=v(e,l)!=Et}finally{e.state.suppressEdits=!1}return y})}function Iw(e,i,l){var s=e.getOption("configureMouse"),c=s?s(e,i,l):{};if(c.unit==null){var d=j?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=G?l.metaKey:l.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(G?l.altKey:l.ctrlKey)),c}function Fw(e,i,l,s){p?setTimeout(Z(ad,e),0):e.curOp.focus=wt(Gt(e));var c=Iw(e,l,s),d=e.doc.sel,v;e.options.dragDrop&&xc&&!e.isReadOnly()&&l=="single"&&(v=d.contains(i))>-1&&(K((v=d.ranges[v]).from(),i)<0||i.xRel>0)&&(K(v.to(),i)>0||i.xRel<0)?qw(e,s,i,c):Hw(e,s,i,c)}function qw(e,i,l,s){var c=e.display,d=!1,v=$e(e,function(_){m&&(c.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Wc(e)),je(c.wrapper.ownerDocument,"mouseup",v),je(c.wrapper.ownerDocument,"mousemove",y),je(c.scroller,"dragstart",w),je(c.scroller,"drop",v),d||(Ge(_),s.addNew||Bl(e.doc,l,null,null,s.extend),m&&!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};m&&(c.scroller.draggable=!0),e.state.draggingText=v,v.copy=!s.moveOnDrag,bt(c.wrapper.ownerDocument,"mouseup",v),bt(c.wrapper.ownerDocument,"mousemove",y),bt(c.scroller,"dragstart",w),bt(c.scroller,"drop",v),e.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function ap(e,i,l){if(l=="char")return new ie(i,i);if(l=="word")return e.findWordAt(i);if(l=="line")return new ie(R(i.line,0),Ft(e.doc,R(i.line+1,0)));var s=l(e,i);return new ie(s.from,s.to)}function Hw(e,i,l,s){p&&Wc(e);var c=e.display,d=e.doc;Ge(i);var v,y,w=d.sel,_=w.ranges;if(s.addNew&&!s.extend?(y=d.sel.contains(l),y>-1?v=_[y]:v=new ie(l,l)):(v=d.sel.primary(),y=d.sel.primIndex),s.unit=="rectangle")s.addNew||(v=new ie(l,l)),l=xi(e,i,!0,!0),y=-1;else{var N=ap(e,l,s.unit);s.extend?v=nu(v,N.anchor,N.head,s.extend):v=N}s.addNew?y==-1?(y=_.length,Ve(d,Bn(e,_.concat([v]),y),{scroll:!1,origin:"*mouse"})):_.length>1&&_[y].empty()&&s.unit=="char"&&!s.extend?(Ve(d,Bn(e,_.slice(0,y).concat(_.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),w=d.sel):ru(d,y,v,F):(y=0,Ve(d,new An([v],0),F),w=d.sel);var P=l;function B(yt){if(K(P,yt)!=0)if(P=yt,s.unit=="rectangle"){for(var Tt=[],Dt=e.options.tabSize,Ot=V(At(d,l.line).text,l.ch,Dt),Ut=V(At(d,yt.line).text,yt.ch,Dt),pe=Math.min(Ot,Ut),Re=Math.max(Ot,Ut),_e=Math.min(l.line,yt.line),wn=Math.min(e.lastLine(),Math.max(l.line,yt.line));_e<=wn;_e++){var ln=At(d,_e).text,Le=nt(ln,pe,Dt);pe==Re?Tt.push(new ie(R(_e,Le),R(_e,Le))):ln.length>Le&&Tt.push(new ie(R(_e,Le),R(_e,nt(ln,Re,Dt))))}Tt.length||Tt.push(new ie(l,l)),Ve(d,Bn(e,w.ranges.slice(0,y).concat(Tt),y),{origin:"*mouse",scroll:!1}),e.scrollIntoView(yt)}else{var an=v,He=ap(e,yt,s.unit),Oe=an.anchor,Ae;K(He.anchor,Oe)>0?(Ae=He.head,Oe=Ne(an.from(),He.anchor)):(Ae=He.anchor,Oe=ee(an.to(),He.head));var Ce=w.ranges.slice(0);Ce[y]=Bw(e,new ie(Ft(d,Oe),Ae)),Ve(d,Bn(e,Ce,y),F)}}var q=c.wrapper.getBoundingClientRect(),X=0;function rt(yt){var Tt=++X,Dt=xi(e,yt,!0,s.unit=="rectangle");if(!!Dt)if(K(Dt,P)!=0){e.curOp.focus=wt(Gt(e)),B(Dt);var Ot=Rl(c,d);(Dt.line>=Ot.to||Dt.line<Ot.from)&&setTimeout($e(e,function(){X==Tt&&rt(yt)}),150)}else{var Ut=yt.clientY<q.top?-20:yt.clientY>q.bottom?20:0;Ut&&setTimeout($e(e,function(){X==Tt&&(c.scroller.scrollTop+=Ut,rt(yt))}),50)}}function ct(yt){e.state.selectingText=!1,X=1/0,yt&&(Ge(yt),c.input.focus()),je(c.wrapper.ownerDocument,"mousemove",mt),je(c.wrapper.ownerDocument,"mouseup",_t),d.history.lastSelOrigin=null}var mt=$e(e,function(yt){yt.buttons===0||!ts(yt)?ct(yt):rt(yt)}),_t=$e(e,ct);e.state.selectingText=_t,bt(c.wrapper.ownerDocument,"mousemove",mt),bt(c.wrapper.ownerDocument,"mouseup",_t)}function Bw(e,i){var l=i.anchor,s=i.head,c=At(e.doc,l.line);if(K(l,s)==0&&l.sticky==s.sticky)return i;var d=be(c);if(!d)return i;var v=qe(d,l.ch,l.sticky),y=d[v];if(y.from!=l.ch&&y.to!=l.ch)return i;var w=v+(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=qe(d,s.ch,s.sticky),P=N-v||(s.ch-l.ch)*(y.level==1?-1:1);N==w-1||N==w?_=P<0:_=P>0}var B=d[w+(_?-1:0)],q=_==(B.level==1),X=q?B.from:B.to,rt=q?"after":"before";return l.ch==X&&l.sticky==rt?i:new ie(new R(l.line,X,rt),s)}function cp(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&&Ge(i);var v=e.display,y=v.lineDiv.getBoundingClientRect();if(d>y.bottom||!Ye(e,l))return Qo(i);d-=y.top-v.viewOffset;for(var w=0;w<e.display.gutterSpecs.length;++w){var _=v.gutters.childNodes[w];if(_&&_.getBoundingClientRect().right>=c){var N=Qn(e.doc,d),P=e.display.gutterSpecs[w];return ve(e,l,e,N,P.className,i),Qo(i)}}}function cu(e,i){return cp(e,i,"gutterClick",!0)}function up(e,i){_r(e.display,i)||Ww(e,i)||Se(e,i,"contextmenu")||vt||e.display.input.onContextMenu(i)}function Ww(e,i){return Ye(e,"gutterContextMenu")?cp(e,i,"gutterContextMenu",!1):!1}function fp(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),as(e)}var yo={toString:function(){return"CodeMirror.Init"}},hp={},Xl={};function Uw(e){var i=e.optionHandlers;function l(s,c,d,v){e.defaults[s]=c,d&&(i[s]=v?function(y,w,_){_!=yo&&d(y,w,_)}:d)}e.defineOption=l,e.Init=yo,l("value","",function(s,c){return s.setValue(c)},!0),l("mode",null,function(s,c){s.doc.modeOption=c,Qc(s)},!0),l("indentUnit",2,Qc,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(s){vs(s),as(s),on(s)},!0),l("lineSeparator",null,function(s,c){if(s.doc.lineSep=c,!!c){var d=[],v=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(R(v,N))}v++});for(var y=d.length-1;y>=0;y--)po(s.doc,c,d[y],R(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!=yo&&s.refresh()}),l("specialCharPlaceholder",bb,function(s){return s.refresh()},!0),l("electricChars",!0),l("inputStyle",D?"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",!it),l("wholeLineUpdateBefore",!0),l("theme","default",function(s){fp(s),gs(s)},!0),l("keyMap","default",function(s,c,d){var v=Vl(c),y=d!=yo&&Vl(d);y&&y.detach&&y.detach(s,v),v.attach&&v.attach(s,y||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,Gw,!0),l("gutters",[],function(s,c){s.display.gutterSpecs=Jc(c,s.options.lineNumbers),gs(s)},!0),l("fixedGutter",!0,function(s,c){s.display.gutters.style.left=c?Fc(s.display)+"px":"0",s.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(s){return co(s)},!0),l("scrollbarStyle","native",function(s){pd(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=Jc(s.options.gutters,c),gs(s)},!0),l("firstLineNumber",1,gs,!0),l("lineNumberFormatter",function(s){return s},gs,!0),l("showCursorWhenSelecting",!1,cs,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(s,c){c=="nocursor"&&(lo(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,jw),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,cs,!0),l("singleCursorHeightPerLine",!0,cs,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,vs,!0),l("addModeClass",!1,vs,!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,vs,!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 jw(e,i,l){var s=l&&l!=yo;if(!i!=!s){var c=e.display.dragFunctions,d=i?bt:je;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 Gw(e){e.options.lineWrapping?(Lt(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ft(e.display.wrapper,"CodeMirror-wrap"),Ac(e)),qc(e),on(e),as(e),setTimeout(function(){return co(e)},100)}function we(e,i){var l=this;if(!(this instanceof we))return new we(e,i);this.options=i=i?tt(i):{},tt(hp,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 we.inputStyles[i.inputStyle](this),d=this.display=new ow(e,s,c,i);d.wrapper.CodeMirror=this,fp(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),pd(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 st,keySeq:null,specialChars:null},i.autofocus&&!D&&d.input.focus(),p&&g<11&&setTimeout(function(){return l.display.input.reset(!0)},20),Vw(this),kw(),Ci(this),this.curOp.forceUpdate=!0,kd(this,s),i.autofocus&&!D||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&Uc(l)},20):lo(this);for(var v in Xl)Xl.hasOwnProperty(v)&&Xl[v](this,i[v],yo);md(this),i.finishInit&&i.finishInit(this);for(var y=0;y<uu.length;++y)uu[y](this);Ti(this),m&&i.lineWrapping&&getComputedStyle(d.lineDiv).textRendering=="optimizelegibility"&&(d.lineDiv.style.textRendering="auto")}we.defaults=hp,we.optionHandlers=Xl;function Vw(e){var i=e.display;bt(i.scroller,"mousedown",$e(e,lp)),p&&g<11?bt(i.scroller,"dblclick",$e(e,function(w){if(!Se(e,w)){var _=xi(e,w);if(!(!_||cu(e,w)||_r(e.display,w))){Ge(w);var N=e.findWordAt(_);Bl(e.doc,N.anchor,N.head)}}})):bt(i.scroller,"dblclick",function(w){return Se(e,w)||Ge(w)}),bt(i.scroller,"contextmenu",function(w){return up(e,w)}),bt(i.input.getField(),"contextmenu",function(w){i.scroller.contains(w.target)||up(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 v(w,_){if(_.left==null)return!0;var N=_.left-w.left,P=_.top-w.top;return N*N+P*P>20*20}bt(i.scroller,"touchstart",function(w){if(!Se(e,w)&&!d(w)&&!cu(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)}}),bt(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),bt(i.scroller,"touchend",function(w){var _=i.activeTouch;if(_&&!_r(i,w)&&_.left!=null&&!_.moved&&new Date-_.start<300){var N=e.coordsChar(i.activeTouch,"page"),P;!_.prev||v(_,_.prev)?P=new ie(N,N):!_.prev.prev||v(_,_.prev.prev)?P=e.findWordAt(N):P=new ie(R(N.line,0),Ft(e.doc,R(N.line+1,0))),e.setSelection(P.anchor,P.head),e.focus(),Ge(w)}c()}),bt(i.scroller,"touchcancel",c),bt(i.scroller,"scroll",function(){i.scroller.clientHeight&&(fs(e,i.scroller.scrollTop),Si(e,i.scroller.scrollLeft,!0),ve(e,"scroll",e))}),bt(i.scroller,"mousewheel",function(w){return wd(e,w)}),bt(i.scroller,"DOMMouseScroll",function(w){return wd(e,w)}),bt(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(w){Se(e,w)||vr(w)},over:function(w){Se(e,w)||(Sw(e,w),vr(w))},start:function(w){return _w(e,w)},drop:$e(e,xw),leave:function(w){Se(e,w)||Kd(e)}};var y=i.input.getField();bt(y,"keyup",function(w){return op.call(e,w)}),bt(y,"keydown",$e(e,ip)),bt(y,"keypress",$e(e,sp)),bt(y,"focus",function(w){return Uc(e,w)}),bt(y,"blur",function(w){return lo(e,w)})}var uu=[];we.defineInitHook=function(e){return uu.push(e)};function As(e,i,l,s){var c=e.doc,d;l==null&&(l="add"),l=="smart"&&(c.mode.indent?d=rs(e,i).state:l="prev");var v=e.options.tabSize,y=At(c,i),w=V(y.text,null,v);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==Et||N>150)){if(!s)return;l="prev"}l=="prev"?i>c.first?N=V(At(c,i-1).text,null,v):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 P="",B=0;if(e.options.indentWithTabs)for(var q=Math.floor(N/v);q;--q)B+=v,P+=" ";if(B<N&&(P+=pt(N-B)),P!=_)return po(c,P,R(i,0),R(i,_.length),"+input"),y.stateAfter=null,!0;for(var X=0;X<c.sel.ranges.length;X++){var rt=c.sel.ranges[X];if(rt.head.line==i&&rt.head.ch<_.length){var ct=R(i,_.length);ru(c,X,new ie(ct,ct));break}}}var Wn=null;function Yl(e){Wn=e}function fu(e,i,l,s,c){var d=e.doc;e.display.shift=!1,s||(s=d.sel);var v=+new Date-200,y=c=="paste"||e.state.pasteIncoming>v,w=es(i),_=null;if(y&&s.ranges.length>1)if(Wn&&Wn.text.join(`
|
|
19
|
+
`)==i){if(s.ranges.length%Wn.text.length==0){_=[];for(var N=0;N<Wn.text.length;N++)_.push(d.splitLines(Wn.text[N]))}}else w.length==s.ranges.length&&e.options.pasteLinesPerSelection&&(_=gt(w,function(mt){return[mt]}));for(var P=e.curOp.updateInput,B=s.ranges.length-1;B>=0;B--){var q=s.ranges[B],X=q.from(),rt=q.to();q.empty()&&(l&&l>0?X=R(X.line,X.ch-l):e.state.overwrite&&!y?rt=R(rt.line,Math.min(At(d,rt.line).text.length,rt.ch+lt(w).length)):y&&Wn&&Wn.lineWise&&Wn.text.join(`
|
|
20
|
+
`)==w.join(`
|
|
21
|
+
`)&&(X=rt=R(X.line,0)));var ct={from:X,to:rt,text:_?_[B%_.length]:w,origin:c||(y?"paste":e.state.cutIncoming>v?"cut":"+input")};ho(e.doc,ct),Pe(e,"inputRead",e,ct)}i&&!y&&pp(e,i),ao(e),e.curOp.updateInput<2&&(e.curOp.updateInput=P),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function dp(e,i){var l=e.clipboardData&&e.clipboardData.getData("Text");if(l)return e.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&bn(i,function(){return fu(i,l,0,null,"paste")}),!0}function pp(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),v=!1;if(d.electricChars){for(var y=0;y<d.electricChars.length;y++)if(i.indexOf(d.electricChars.charAt(y))>-1){v=As(e,c.head.line,"smart");break}}else d.electricInput&&d.electricInput.test(At(e.doc,c.head.line).text.slice(0,c.head.ch))&&(v=As(e,c.head.line,"smart"));v&&Pe(e,"electricInput",e,c.head.line)}}}function gp(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:R(c,0),head:R(c+1,0)};l.push(d),i.push(e.getRange(d.anchor,d.head))}return{text:i,ranges:l}}function vp(e,i,l,s){e.setAttribute("autocorrect",l?"":"off"),e.setAttribute("autocapitalize",s?"":"off"),e.setAttribute("spellcheck",!!i)}function mp(){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 m?e.style.width="1000px":e.setAttribute("wrap","off"),L&&(e.style.border="1px solid black"),vp(e),i}function Kw(e){var i=e.optionHandlers,l=e.helpers={};e.prototype={constructor:e,focus:function(){ne(this).focus(),this.display.input.focus()},setOption:function(s,c){var d=this.options,v=d[s];d[s]==c&&s!="mode"||(d[s]=c,i.hasOwnProperty(s)&&$e(this,i[s])(this,c,v),ve(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"](Vl(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.");xt(this.state.overlays,{mode:d,modeSpec:s,opaque:c&&c.opaque,priority:c&&c.priority||0},function(v){return v.priority}),this.state.modeGen++,on(this)}),removeOverlay:Ze(function(s){for(var c=this.state.overlays,d=0;d<c.length;++d){var v=c[d].modeSpec;if(v==s||typeof s=="string"&&v.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"),T(this.doc,s)&&As(this,s,c,d)}),indentSelection:Ze(function(s){for(var c=this.doc.sel.ranges,d=-1,v=0;v<c.length;v++){var y=c[v];if(y.empty())y.head.line>d&&(As(this,y.head.line,s,!0),d=y.head.line,v==this.doc.sel.primIndex&&ao(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 P=N;P<d;++P)As(this,P,s);var B=this.doc.sel.ranges;w.ch==0&&c.length==B.length&&B[v].from().ch>0&&ru(this.doc,v,new ie(w,B[v].to()),O)}}}),getTokenAt:function(s,c){return Th(this,s,c)},getLineTokens:function(s,c){return Th(this,R(s),c,!0)},getTokenTypeAt:function(s){s=Ft(this.doc,s);var c=Sh(this,At(this.doc,s.line)),d=0,v=(c.length-1)/2,y=s.ch,w;if(y==0)w=c[2];else for(;;){var _=d+v>>1;if((_?c[_*2-1]:0)>=y)v=_;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 v=l[c],y=this.getModeAt(s);if(typeof y[c]=="string")v[y[c]]&&d.push(v[y[c]]);else if(y[c])for(var w=0;w<y[c].length;w++){var _=v[y[c][w]];_&&d.push(_)}else y.helperType&&v[y.helperType]?d.push(v[y.helperType]):v[y.name]&&d.push(v[y.name]);for(var N=0;N<v._global.length;N++){var P=v._global[N];P.pred(y,this)&&Ct(d,P.val)==-1&&d.push(P.val)}return d},getStateAfter:function(s,c){var d=this.doc;return s=Ln(d,s==null?d.first+d.size-1:s),rs(this,s+1,c).state},cursorCoords:function(s,c){var d,v=this.doc.sel.primary();return s==null?d=v.head:typeof s=="object"?d=Ft(this.doc,s):d=s?v.from():v.to(),Hn(this,d,c||"page")},charCoords:function(s,c){return Ol(this,Ft(this.doc,s),c||"page")},coordsChar:function(s,c){return s=ed(this,s,c||"page"),Rc(this,s.left,s.top)},lineAtHeight:function(s,c){return s=ed(this,{top:s,left:0},c||"page").top,Qn(this.doc,s+this.display.viewOffset)},heightAtLine:function(s,c,d){var v=!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,v=!0),y=At(this.doc,s)}else y=s;return Nl(this,y,{top:0,left:0},c||"page",d||v).top+(v?this.doc.height-xr(y):0)},defaultTextHeight:function(){return oo(this.display)},defaultCharWidth:function(){return so(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(s,c,d,v,y){var w=this.display;s=Hn(this,Ft(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),v=="over")_=s.top;else if(v=="above"||v=="near"){var P=Math.max(w.wrapper.clientHeight,this.doc.height),B=Math.max(w.sizer.clientWidth,w.lineSpace.clientWidth);(v=="above"||s.bottom+c.offsetHeight>P)&&s.top>c.offsetHeight?_=s.top-c.offsetHeight:s.bottom+c.offsetHeight<=P&&(_=s.bottom),N+c.offsetWidth>B&&(N=B-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&&jb(this,{left:N,top:_,right:N+c.offsetWidth,bottom:_+c.offsetHeight})},triggerOnKeyDown:Ze(ip),triggerOnKeyPress:Ze(sp),triggerOnKeyUp:op,triggerOnMouseDown:Ze(lp),execCommand:function(s){if(Cs.hasOwnProperty(s))return Cs[s].call(null,this)},triggerElectric:Ze(function(s){pp(this,s)}),findPosH:function(s,c,d,v){var y=1;c<0&&(y=-1,c=-c);for(var w=Ft(this.doc,s),_=0;_<c&&(w=hu(this.doc,w,y,d,v),!w.hitSide);++_);return w},moveH:Ze(function(s,c){var d=this;this.extendSelectionsBy(function(v){return d.display.shift||d.doc.extend||v.empty()?hu(d.doc,v.head,s,c,d.options.rtlMoveVisually):s<0?v.from():v.to()},Y)}),deleteH:Ze(function(s,c){var d=this.doc.sel,v=this.doc;d.somethingSelected()?v.replaceSelection("",null,"+delete"):mo(this,function(y){var w=hu(v,y.head,s,c,!1);return s<0?{from:w,to:y.head}:{from:y.head,to:w}})}),findPosV:function(s,c,d,v){var y=1,w=v;c<0&&(y=-1,c=-c);for(var _=Ft(this.doc,s),N=0;N<c;++N){var P=Hn(this,_,"div");if(w==null?w=P.left:P.left=w,_=yp(this,P,y,d),_.hitSide)break}return _},moveV:Ze(function(s,c){var d=this,v=this.doc,y=[],w=!this.display.shift&&!v.extend&&v.sel.somethingSelected();if(v.extendSelectionsBy(function(N){if(w)return s<0?N.from():N.to();var P=Hn(d,N.head,"div");N.goalColumn!=null&&(P.left=N.goalColumn),y.push(P.left);var B=yp(d,P,s,c);return c=="page"&&N==v.sel.primary()&&Gc(d,Ol(d,B,"div").top-P.top),B},Y),y.length)for(var _=0;_<v.sel.ranges.length;_++)v.sel.ranges[_].goalColumn=y[_]}),findWordAt:function(s){var c=this.doc,d=At(c,s.line).text,v=s.ch,y=s.ch;if(d){var w=this.getHelper(s,"wordChars");(s.sticky=="before"||y==d.length)&&v?--v:++y;for(var _=d.charAt(v),N=zt(_,w)?function(P){return zt(P,w)}:/\s/.test(_)?function(P){return/\s/.test(P)}:function(P){return!/\s/.test(P)&&!zt(P)};v>0&&N(d.charAt(v-1));)--v;for(;y<d.length&&N(d.charAt(y));)++y}return new ie(R(s.line,v),R(s.line,y))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Lt(this.display.cursorDiv,"CodeMirror-overwrite"):ft(this.display.cursorDiv,"CodeMirror-overwrite"),ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==wt(Gt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ze(function(s,c){us(this,s,c)}),getScrollInfo:function(){var s=this.display.scroller;return{left:s.scrollLeft,top:s.scrollTop,height:s.scrollHeight-er(this)-this.display.barHeight,width:s.scrollWidth-er(this)-this.display.barWidth,clientHeight:Oc(this),clientWidth:bi(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:R(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?Gb(this,s):ud(this,s.from,s.to,s.margin)}),setSize:Ze(function(s,c){var d=this,v=function(w){return typeof w=="number"||/^\d+$/.test(String(w))?w+"px":w};s!=null&&(this.display.wrapper.style.width=v(s)),c!=null&&(this.display.wrapper.style.height=v(c)),this.options.lineWrapping&&Zh(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){jr(d,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,ve(this,"refresh",this)}),operation:function(s){return bn(this,s)},startOperation:function(){return Ci(this)},endOperation:function(){return Ti(this)},refresh:Ze(function(){var s=this.display.cachedTextHeight;on(this),this.curOp.forceUpdate=!0,as(this),us(this,this.doc.scrollLeft,this.doc.scrollTop),Xc(this.display),(s==null||Math.abs(s-oo(this.display))>.5||this.options.lineWrapping)&&qc(this),ve(this,"refresh",this)}),swapDoc:Ze(function(s){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),kd(this,s),as(this),this.display.input.reset(),us(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,Pe(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}},Je(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,v){e.registerHelper(s,c,v),l[s]._global.push({pred:d,val:v})}}function hu(e,i,l,s,c){var d=i,v=l,y=At(e,i.line),w=c&&e.direction=="rtl"?-l:l;function _(){var _t=i.line+w;return _t<e.first||_t>=e.first+e.size?!1:(i=new R(_t,i.ch,i.sticky),y=At(e,_t))}function N(_t){var yt;if(s=="codepoint"){var Tt=y.text.charCodeAt(i.ch+(l>0?0:-1));if(isNaN(Tt))yt=null;else{var Dt=l>0?Tt>=55296&&Tt<56320:Tt>=56320&&Tt<57343;yt=new R(i.line,Math.max(0,Math.min(y.text.length,i.ch+l*(Dt?2:1))),-l)}}else c?yt=Aw(e.cm,y,i,l):yt=ou(y,i,l);if(yt==null)if(!_t&&_())i=su(c,e.cm,y,i.line,w);else return!1;else i=yt;return!0}if(s=="char"||s=="codepoint")N();else if(s=="column")N(!0);else if(s=="word"||s=="group")for(var P=null,B=s=="group",q=e.cm&&e.cm.getHelper(i,"wordChars"),X=!0;!(l<0&&!N(!X));X=!1){var rt=y.text.charAt(i.ch)||`
|
|
22
|
+
`,ct=zt(rt,q)?"w":B&&rt==`
|
|
23
|
+
`?"n":!B||/\s/.test(rt)?null:"p";if(B&&!X&&!ct&&(ct="s"),P&&P!=ct){l<0&&(l=1,N(),i.sticky="after");break}if(ct&&(P=ct),l>0&&!N(!X))break}var mt=Ul(e,i,d,v,!0);return It(d,mt)&&(mt.hitSide=!0),mt}function yp(e,i,l,s){var c=e.doc,d=i.left,v;if(s=="page"){var y=Math.min(e.display.wrapper.clientHeight,ne(e).innerHeight||c(e).documentElement.clientHeight),w=Math.max(y-.5*oo(e.display),3);v=(l>0?i.bottom:i.top)+l*w}else s=="line"&&(v=l>0?i.bottom+3:i.top-3);for(var _;_=Rc(e,d,v),!!_.outside;){if(l<0?v<=0:v>=c.height){_.hitSide=!0;break}v+=l*5}return _}var ae=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new st,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ae.prototype.init=function(e){var i=this,l=this,s=l.cm,c=l.div=e.lineDiv;c.contentEditable=!0,vp(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}bt(c,"paste",function(y){!d(y)||Se(s,y)||dp(y,s)||g<=11&&setTimeout($e(s,function(){return i.updateFromDOM()}),20)}),bt(c,"compositionstart",function(y){i.composing={data:y.data,done:!1}}),bt(c,"compositionupdate",function(y){i.composing||(i.composing={data:y.data,done:!1})}),bt(c,"compositionend",function(y){i.composing&&(y.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),bt(c,"touchstart",function(){return l.forceCompositionEnd()}),bt(c,"input",function(){i.composing||i.readFromDOMSoon()});function v(y){if(!(!d(y)||Se(s,y))){if(s.somethingSelected())Yl({lineWise:!1,text:s.getSelections()}),y.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var w=gp(s);Yl({lineWise:!0,text:w.text}),y.type=="cut"&&s.operation(function(){s.setSelections(w.ranges,0,O),s.replaceSelection("",null,"cut")})}else return;if(y.clipboardData){y.clipboardData.clearData();var _=Wn.text.join(`
|
|
24
|
+
`);if(y.clipboardData.setData("Text",_),y.clipboardData.getData("Text")==_){y.preventDefault();return}}var N=mp(),P=N.firstChild;s.display.lineSpace.insertBefore(N,s.display.lineSpace.firstChild),P.value=Wn.text.join(`
|
|
25
|
+
`);var B=wt(c.ownerDocument);Bt(P),setTimeout(function(){s.display.lineSpace.removeChild(N),B.focus(),B==c&&l.showPrimarySelection()},50)}}bt(c,"copy",v),bt(c,"cut",v)},ae.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ae.prototype.prepareSelection=function(){var e=ld(this.cm,!1);return e.focus=wt(this.div.ownerDocument)==this.div,e},ae.prototype.showSelection=function(e,i){!e||!this.cm.display.view.length||((e.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ae.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ae.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=Jl(i,e.anchorNode,e.anchorOffset),v=Jl(i,e.focusNode,e.focusOffset);if(!(d&&!d.bad&&v&&!v.bad&&K(Ne(d,v),s)==0&&K(ee(d,v),c)==0)){var y=i.display.view,w=s.line>=i.display.viewFrom&&bp(i,s)||{node:y[0].measure.map[2],offset:0},_=c.line<i.display.viewTo&&bp(i,c);if(!_){var N=y[y.length-1].measure,P=N.maps?N.maps[N.maps.length-1]:N.map;_={node:P[P.length-1],offset:P[P.length-2]-P[P.length-3]}}if(!w||!_){e.removeAllRanges();return}var B=e.rangeCount&&e.getRangeAt(0),q;try{q=W(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)),B&&e.anchorNode==null?e.addRange(B):a&&this.startGracePeriod()),this.rememberSelection()}},ae.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)},ae.prototype.showMultipleSelections=function(e){I(this.cm.display.cursorDiv,e.cursors),I(this.cm.display.selectionDiv,e.selection)},ae.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},ae.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var i=e.getRangeAt(0).commonAncestorContainer;return et(this.div,i)},ae.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||wt(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ae.prototype.blur=function(){this.div.blur()},ae.prototype.getField=function(){return this.div},ae.prototype.supportsTouch=function(){return!0},ae.prototype.receivedFocus=function(){var e=this,i=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):bn(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)},ae.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},ae.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),i=this.cm;if(z&&x&&this.cm.display.gutterSpecs.length&&Xw(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=Jl(i,e.anchorNode,e.anchorOffset),s=Jl(i,e.focusNode,e.focusOffset);l&&s&&bn(i,function(){Ve(i.doc,Vr(l,s),O),(l.bad||s.bad)&&(i.curOp.selectionChanged=!0)})}}},ae.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=R(s.line-1,At(e.doc,s.line-1).length)),c.ch==At(e.doc,c.line).text.length&&c.line<e.lastLine()&&(c=R(c.line+1,0)),s.line<i.viewFrom||c.line>i.viewTo-1)return!1;var d,v,y;s.line==i.viewFrom||(d=_i(e,s.line))==0?(v=re(i.view[0].line),y=i.view[0].node):(v=re(i.view[d].line),y=i.view[d-1].node.nextSibling);var w=_i(e,c.line),_,N;if(w==i.view.length-1?(_=i.viewTo-1,N=i.lineDiv.lastChild):(_=re(i.view[w+1].line)-1,N=i.view[w+1].node.previousSibling),!y)return!1;for(var P=e.doc.splitLines(Yw(e,y,N,v,_)),B=br(e.doc,R(v,0),R(_,At(e.doc,_).text.length));P.length>1&&B.length>1;)if(lt(P)==lt(B))P.pop(),B.pop(),_--;else if(P[0]==B[0])P.shift(),B.shift(),v++;else break;for(var q=0,X=0,rt=P[0],ct=B[0],mt=Math.min(rt.length,ct.length);q<mt&&rt.charCodeAt(q)==ct.charCodeAt(q);)++q;for(var _t=lt(P),yt=lt(B),Tt=Math.min(_t.length-(P.length==1?q:0),yt.length-(B.length==1?q:0));X<Tt&&_t.charCodeAt(_t.length-X-1)==yt.charCodeAt(yt.length-X-1);)++X;if(P.length==1&&B.length==1&&v==s.line)for(;q&&q>s.ch&&_t.charCodeAt(_t.length-X-1)==yt.charCodeAt(yt.length-X-1);)q--,X++;P[P.length-1]=_t.slice(0,_t.length-X).replace(/^\u200b+/,""),P[0]=P[0].slice(q).replace(/\u200b+$/,"");var Dt=R(v,q),Ot=R(_,B.length?lt(B).length-X:0);if(P.length>1||P[0]||K(Dt,Ot))return po(e.doc,P,Dt,Ot,"+input"),!0},ae.prototype.ensurePolled=function(){this.forceCompositionEnd()},ae.prototype.reset=function(){this.forceCompositionEnd()},ae.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ae.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))},ae.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&bn(this.cm,function(){return on(e.cm)})},ae.prototype.setUneditable=function(e){e.contentEditable="false"},ae.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||$e(this.cm,fu)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},ae.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ae.prototype.onContextMenu=function(){},ae.prototype.resetPosition=function(){},ae.prototype.needsContentAttribute=!0;function bp(e,i){var l=Pc(e,i.line);if(!l||l.hidden)return null;var s=At(e.doc,i.line),c=Vh(l,s,i.line),d=be(s,e.doc.direction),v="left";if(d){var y=qe(d,i.ch);v=y%2?"right":"left"}var w=Yh(c.map,i.ch,v);return w.offset=w.collapse=="right"?w.end:w.start,w}function Xw(e){for(var i=e;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function bo(e,i){return i&&(e.bad=!0),e}function Yw(e,i,l,s,c){var d="",v=!1,y=e.doc.lineSeparator(),w=!1;function _(q){return function(X){return X.id==q}}function N(){v&&(d+=y,w&&(d+=y),v=w=!1)}function P(q){q&&(N(),d+=q)}function B(q){if(q.nodeType==1){var X=q.getAttribute("cm-text");if(X){P(X);return}var rt=q.getAttribute("cm-marker"),ct;if(rt){var mt=e.findMarks(R(s,0),R(c+1,0),_(+rt));mt.length&&(ct=mt[0].find(0))&&P(br(e.doc,ct.from,ct.to).join(y));return}if(q.getAttribute("contenteditable")=="false")return;var _t=/^(pre|div|p|li|table|br)$/i.test(q.nodeName);if(!/^br$/i.test(q.nodeName)&&q.textContent.length==0)return;_t&&N();for(var yt=0;yt<q.childNodes.length;yt++)B(q.childNodes[yt]);/^(pre|p)$/i.test(q.nodeName)&&(w=!0),_t&&(v=!0)}else q.nodeType==3&&P(q.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;B(i),i!=l;)i=i.nextSibling,w=!1;return d}function Jl(e,i,l){var s;if(i==e.display.lineDiv){if(s=e.display.lineDiv.childNodes[l],!s)return bo(e.clipPos(R(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 Jw(d,i,l)}}function Jw(e,i,l){var s=e.text.firstChild,c=!1;if(!i||!et(s,i))return bo(R(re(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 bo(R(re(d),d.text.length),c)}var v=i.nodeType==3?i:null,y=i;for(!v&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(v=i.firstChild,l&&(l=v.nodeValue.length));y.parentNode!=s;)y=y.parentNode;var w=e.measure,_=w.maps;function N(ct,mt,_t){for(var yt=-1;yt<(_?_.length:0);yt++)for(var Tt=yt<0?w.map:_[yt],Dt=0;Dt<Tt.length;Dt+=3){var Ot=Tt[Dt+2];if(Ot==ct||Ot==mt){var Ut=re(yt<0?e.line:e.rest[yt]),pe=Tt[Dt]+_t;return(_t<0||Ot!=ct)&&(pe=Tt[Dt+(_t?1:0)]),R(Ut,pe)}}}var P=N(v,y,l);if(P)return bo(P,c);for(var B=y.nextSibling,q=v?v.nodeValue.length-l:0;B;B=B.nextSibling){if(P=N(B,B.firstChild,0),P)return bo(R(P.line,P.ch-q),c);q+=B.textContent.length}for(var X=y.previousSibling,rt=l;X;X=X.previousSibling){if(P=N(X,X.firstChild,-1),P)return bo(R(P.line,P.ch+rt),c);rt+=X.textContent.length}}var Te=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new st,this.hasSelection=!1,this.composing=null,this.resetting=!1};Te.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),L&&(c.style.width="0px"),bt(c,"input",function(){p&&g>=9&&i.hasSelection&&(i.hasSelection=null),l.poll()}),bt(c,"paste",function(v){Se(s,v)||dp(v,s)||(s.state.pasteIncoming=+new Date,l.fastPoll())});function d(v){if(!Se(s,v)){if(s.somethingSelected())Yl({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var y=gp(s);Yl({lineWise:!0,text:y.text}),v.type=="cut"?s.setSelections(y.ranges,null,O):(l.prevInput="",c.value=y.text.join(`
|
|
26
|
+
`),Bt(c))}else return;v.type=="cut"&&(s.state.cutIncoming=+new Date)}}bt(c,"cut",d),bt(c,"copy",d),bt(e.scroller,"paste",function(v){if(!(_r(e,v)||Se(s,v))){if(!c.dispatchEvent){s.state.pasteIncoming=+new Date,l.focus();return}var y=new Event("paste");y.clipboardData=v.clipboardData,c.dispatchEvent(y)}}),bt(e.lineSpace,"selectstart",function(v){_r(e,v)||Ge(v)}),bt(c,"compositionstart",function(){var v=s.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:v,range:s.markText(v,s.getCursor("to"),{className:"CodeMirror-composing"})}}),bt(c,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},Te.prototype.createField=function(e){this.wrapper=mp(),this.textarea=this.wrapper.firstChild},Te.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Te.prototype.prepareSelection=function(){var e=this.cm,i=e.display,l=e.doc,s=ld(e);if(e.options.moveInputWithCursor){var c=Hn(e,l.sel.primary().head,"div"),d=i.wrapper.getBoundingClientRect(),v=i.lineDiv.getBoundingClientRect();s.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,c.top+v.top-d.top)),s.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,c.left+v.left-d.left))}return s},Te.prototype.showSelection=function(e){var i=this.cm,l=i.display;I(l.cursorDiv,e.cursors),I(l.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Te.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&&Bt(this.textarea),p&&g>=9&&(this.hasSelection=l)}else e||(this.prevInput=this.textarea.value="",p&&g>=9&&(this.hasSelection=null));this.resetting=!1}},Te.prototype.getField=function(){return this.textarea},Te.prototype.supportsTouch=function(){return!1},Te.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!D||wt(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Te.prototype.blur=function(){this.textarea.blur()},Te.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Te.prototype.receivedFocus=function(){this.slowPoll()},Te.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Te.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)},Te.prototype.poll=function(){var e=this,i=this.cm,l=this.textarea,s=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||qr(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||G&&/[\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="\u200B"),d==8666)return this.reset(),this.cm.execCommand("undo")}for(var v=0,y=Math.min(s.length,c.length);v<y&&s.charCodeAt(v)==c.charCodeAt(v);)++v;return bn(i,function(){fu(i,c.slice(v),s.length-v,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},Te.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Te.prototype.onKeyPress=function(){p&&g>=9&&(this.hasSelection=null),this.fastPoll()},Te.prototype.onContextMenu=function(e){var i=this,l=i.cm,s=l.display,c=i.textarea;i.contextMenuPending&&i.contextMenuPending();var d=xi(l,e),v=s.scroller.scrollTop;if(!d||M)return;var y=l.options.resetSelectionOnContextMenu;y&&l.doc.sel.contains(d)==-1&&$e(l,Ve)(l.doc,Vr(d),O);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 P;m&&(P=c.ownerDocument.defaultView.scrollY),s.input.focus(),m&&c.ownerDocument.defaultView.scrollTo(null,P),s.input.reset(),l.somethingSelected()||(c.value=i.prevInput=" "),i.contextMenuPending=q,s.selForContextMenu=l.doc.sel,clearTimeout(s.detectingSelectAll);function B(){if(c.selectionStart!=null){var rt=l.somethingSelected(),ct="\u200B"+(rt?c.value:"");c.value="\u21DA",c.value=ct,i.prevInput=rt?"":"\u200B",c.selectionStart=1,c.selectionEnd=ct.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=v),c.selectionStart!=null)){(!p||p&&g<9)&&B();var rt=0,ct=function(){s.selForContextMenu==l.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput=="\u200B"?$e(l,zd)(l):rt++<10?s.detectingSelectAll=setTimeout(ct,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(ct,200)}}if(p&&g>=9&&B(),vt){vr(e);var X=function(){je(window,"mouseup",X),setTimeout(q,20)};bt(window,"mouseup",X)}else setTimeout(q,50)},Te.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Te.prototype.setUneditable=function(){},Te.prototype.needsContentAttribute=!1;function Zw(e,i){if(i=i?tt(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=wt(e.ownerDocument);i.autofocus=l==e||e.getAttribute("autofocus")!=null&&l==document.body}function s(){e.value=y.getValue()}var c;if(e.form&&(bt(e.form,"submit",s),!i.leaveSubmitMethodAlone)){var d=e.form;c=d.submit;try{var v=d.submit=function(){s(),d.submit=c,d.submit(),d.submit=v}}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&&(je(e.form,"submit",s),!i.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=c))}},e.style.display="none";var y=we(function(w){return e.parentNode.insertBefore(w,e.nextSibling)},i);return y}function Qw(e){e.off=je,e.on=bt,e.wheelEventPixels=sw,e.Doc=sn,e.splitLines=es,e.countColumn=V,e.findColumn=nt,e.isWordChar=Pt,e.Pass=Et,e.signal=ve,e.Line=no,e.changeEnd=Kr,e.scrollbarModel=dd,e.Pos=R,e.cmpPos=K,e.modes=Fn,e.mimeModes=Hr,e.resolveMode=yn,e.getMode=mr,e.modeExtensions=Br,e.extendMode=_l,e.copyState=yr,e.startState=ns,e.innerMode=Wr,e.commands=Cs,e.keyMap=kr,e.keyName=Qd,e.isModifierKey=Jd,e.lookupKey=vo,e.normalizeKeyMap=Lw,e.StringStream=ke,e.SharedTextMarker=_s,e.TextMarker=Yr,e.LineWidget=xs,e.e_preventDefault=Ge,e.e_stopPropagation=yi,e.e_stop=vr,e.addClass=Lt,e.contains=et,e.rmClass=ft,e.keyNames=Jr}Uw(we),Kw(we);var tx="iter insert remove copy getEditor constructor".split(" ");for(var Zl in sn.prototype)sn.prototype.hasOwnProperty(Zl)&&Ct(tx,Zl)<0&&(we.prototype[Zl]=function(e){return function(){return e.apply(this.doc,arguments)}}(sn.prototype[Zl]));return Je(sn),we.inputStyles={textarea:Te,contenteditable:ae},we.defineMode=function(e){!we.defaults.mode&&e!="null"&&(we.defaults.mode=e),xl.apply(this,arguments)},we.defineMIME=to,we.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),we.defineMIME("text/plain","null"),we.defineExtension=function(e,i){we.prototype[e]=i},we.defineDocExtension=function(e,i){sn.prototype[e]=i},we.fromTextArea=Zw,Qw(we),we.version="5.65.9",we})}(Lu)),Lu.exports}var Ust=Yo(),cv={exports:{}},uv;function cy(){return uv||(uv=1,function(t,n){(function(r){r(Yo())})(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,m=a.typescript,b=a.wordCharacters||/[\w$\xa1-\uffff]/,x=function(){function T(Ne){return{type:Ne,style:"keyword"}}var $=T("keyword a"),R=T("keyword b"),K=T("keyword c"),It=T("keyword d"),Vt=T("operator"),ee={type:"atom",style:"atom"};return{if:T("if"),while:$,with:$,else:R,do:R,try:R,finally:R,return:It,break:It,continue:It,new:T("new"),delete:K,void:K,throw:K,debugger:T("debugger"),var:T("var"),const:T("var"),let:T("var"),function:T("function"),catch:T("catch"),for:T("for"),switch:T("switch"),case:T("case"),default:T("default"),in:Vt,typeof:Vt,instanceof:Vt,true:ee,false:ee,null:ee,undefined:ee,NaN:ee,Infinity:ee,this:T("this"),class:T("class"),super:T("atom"),yield:K,export:T("export"),import:T("import"),extends:K,await:K}}(),S=/[+\-*&%=<>!?|~^@]/,M=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(T){for(var $=!1,R,K=!1;(R=T.next())!=null;){if(!$){if(R=="/"&&!K)return;R=="["?K=!0:K&&R=="]"&&(K=!1)}$=!$&&R=="\\"}}var E,C;function L(T,$,R){return E=T,C=R,$}function z(T,$){var R=T.next();if(R=='"'||R=="'")return $.tokenize=D(R),$.tokenize(T,$);if(R=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return L("number","number");if(R=="."&&T.match(".."))return L("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(R))return L(R);if(R=="="&&T.eat(">"))return L("=>","operator");if(R=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return L("number","number");if(/\d/.test(R))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),L("number","number");if(R=="/")return T.eat("*")?($.tokenize=G,G(T,$)):T.eat("/")?(T.skipToEnd(),L("comment","comment")):Qn(T,$,1)?(A(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),L("regexp","string-2")):(T.eat("="),L("operator","operator",T.current()));if(R=="`")return $.tokenize=j,j(T,$);if(R=="#"&&T.peek()=="!")return T.skipToEnd(),L("meta","meta");if(R=="#"&&T.eatWhile(b))return L("variable","property");if(R=="<"&&T.match("!--")||R=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),L("comment","comment");if(S.test(R))return(R!=">"||!$.lexical||$.lexical.type!=">")&&(T.eat("=")?(R=="!"||R=="=")&&T.eat("="):/[<>*+\-|&?]/.test(R)&&(T.eat(R),R==">"&&T.eat(R))),R=="?"&&T.eat(".")?L("."):L("operator","operator",T.current());if(b.test(R)){T.eatWhile(b);var K=T.current();if($.lastType!="."){if(x.propertyIsEnumerable(K)){var It=x[K];return L(It.type,It.style,K)}if(K=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return L("async","keyword",K)}return L("variable","variable",K)}}function D(T){return function($,R){var K=!1,It;if(h&&$.peek()=="@"&&$.match(M))return R.tokenize=z,L("jsonld-keyword","meta");for(;(It=$.next())!=null&&!(It==T&&!K);)K=!K&&It=="\\";return K||(R.tokenize=z),L("string","string")}}function G(T,$){for(var R=!1,K;K=T.next();){if(K=="/"&&R){$.tokenize=z;break}R=K=="*"}return L("comment","comment")}function j(T,$){for(var R=!1,K;(K=T.next())!=null;){if(!R&&(K=="`"||K=="$"&&T.eat("{"))){$.tokenize=z;break}R=!R&&K=="\\"}return L("quasi","string-2",T.current())}var it="([{}])";function Q(T,$){$.fatArrowAt&&($.fatArrowAt=null);var R=T.string.indexOf("=>",T.start);if(!(R<0)){if(m){var K=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,R));K&&(R=K.index)}for(var It=0,Vt=!1,ee=R-1;ee>=0;--ee){var Ne=T.string.charAt(ee),Ln=it.indexOf(Ne);if(Ln>=0&&Ln<3){if(!It){++ee;break}if(--It==0){Ne=="("&&(Vt=!0);break}}else if(Ln>=3&&Ln<6)++It;else if(b.test(Ne))Vt=!0;else if(/["'\/`]/.test(Ne))for(;;--ee){if(ee==0)return;var Ft=T.string.charAt(ee-1);if(Ft==Ne&&T.string.charAt(ee-2)!="\\"){ee--;break}}else if(Vt&&!It){++ee;break}}Vt&&!It&&($.fatArrowAt=ee)}}var dt={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function vt(T,$,R,K,It,Vt){this.indented=T,this.column=$,this.type=R,this.prev=It,this.info=Vt,K!=null&&(this.align=K)}function kt(T,$){if(!g)return!1;for(var R=T.localVars;R;R=R.next)if(R.name==$)return!0;for(var K=T.context;K;K=K.prev)for(var R=K.vars;R;R=R.next)if(R.name==$)return!0}function ft(T,$,R,K,It){var Vt=T.cc;for(U.state=T,U.stream=It,U.marked=null,U.cc=Vt,U.style=$,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var ee=Vt.length?Vt.pop():p?Et:Ct;if(ee(R,K)){for(;Vt.length&&Vt[Vt.length-1].lex;)Vt.pop()();return U.marked?U.marked:R=="variable"&&kt(T,K)?"variable-2":$}}}var U={state:null,column:null,marked:null,cc:null};function I(){for(var T=arguments.length-1;T>=0;T--)U.cc.push(arguments[T])}function k(){return I.apply(null,arguments),!0}function H(T,$){for(var R=$;R;R=R.next)if(R.name==T)return!0;return!1}function W(T){var $=U.state;if(U.marked="def",!!g){if($.context){if($.lexical.info=="var"&&$.context&&$.context.block){var R=et(T,$.context);if(R!=null){$.context=R;return}}else if(!H(T,$.localVars)){$.localVars=new qt(T,$.localVars);return}}a.globalVars&&!H(T,$.globalVars)&&($.globalVars=new qt(T,$.globalVars))}}function et(T,$){if($)if($.block){var R=et(T,$.prev);return R?R==$.prev?$:new Lt(R,$.vars,!0):null}else return H(T,$.vars)?$:new Lt($.prev,new qt(T,$.vars),!1);else return null}function wt(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function Lt(T,$,R){this.prev=T,this.vars=$,this.block=R}function qt(T,$){this.name=T,this.next=$}var Bt=new qt("this",new qt("arguments",null));function Gt(){U.state.context=new Lt(U.state.context,U.state.localVars,!1),U.state.localVars=Bt}function ne(){U.state.context=new Lt(U.state.context,U.state.localVars,!0),U.state.localVars=null}Gt.lex=ne.lex=!0;function Z(){U.state.localVars=U.state.context.vars,U.state.context=U.state.context.prev}Z.lex=!0;function tt(T,$){var R=function(){var K=U.state,It=K.indented;if(K.lexical.type=="stat")It=K.lexical.indented;else for(var Vt=K.lexical;Vt&&Vt.type==")"&&Vt.align;Vt=Vt.prev)It=Vt.indented;K.lexical=new vt(It,U.stream.column(),T,null,K.lexical,$)};return R.lex=!0,R}function V(){var T=U.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}V.lex=!0;function st(T){function $(R){return R==T?k():T==";"||R=="}"||R==")"||R=="]"?I():k($)}return $}function Ct(T,$){return T=="var"?k(tt("vardef",$),vr,st(";"),V):T=="keyword a"?k(tt("form"),F,Ct,V):T=="keyword b"?k(tt("form"),Ct,V):T=="keyword d"?U.stream.match(/^\s*$/,!1)?k():k(tt("stat"),nt,st(";"),V):T=="debugger"?k(st(";")):T=="{"?k(tt("}"),ne,En,V,Z):T==";"?k():T=="if"?(U.state.lexical.info=="else"&&U.state.cc[U.state.cc.length-1]==V&&U.state.cc.pop()(),k(tt("form"),F,Ct,V,Qi)):T=="function"?k(Jn):T=="for"?k(tt("form"),ne,bl,Ct,Z,V):T=="class"||m&&$=="interface"?(U.marked="keyword",k(tt("form",T=="class"?T:$),xl,V)):T=="variable"?m&&$=="declare"?(U.marked="keyword",k(Ct)):m&&($=="module"||$=="enum"||$=="type")&&U.stream.match(/^\s*\w/,!1)?(U.marked="keyword",$=="enum"?k(eo):$=="type"?k(wl,st("operator"),bt,st(";")):k(tt("form"),rn,st("{"),tt("}"),En,V,V)):m&&$=="namespace"?(U.marked="keyword",k(tt("form"),Et,Ct,V)):m&&$=="abstract"?(U.marked="keyword",k(Ct)):k(tt("stat"),zt):T=="switch"?k(tt("form"),F,st("{"),tt("}","switch"),ne,En,V,V,Z):T=="case"?k(Et,st(":")):T=="default"?k(st(":")):T=="catch"?k(tt("form"),Gt,de,Ct,V,Z):T=="export"?k(tt("stat"),Br,V):T=="import"?k(tt("stat"),yr,V):T=="async"?k(Ct):$=="@"?k(Et,Ct):I(tt("stat"),Et,st(";"),V)}function de(T){if(T=="(")return k(Fn,st(")"))}function Et(T,$){return Y(T,$,!1)}function O(T,$){return Y(T,$,!0)}function F(T){return T!="("?I():k(tt(")"),nt,st(")"),V)}function Y(T,$,R){if(U.state.fatArrowAt==U.stream.start){var K=R?at:xt;if(T=="(")return k(Gt,tt(")"),Xt(Fn,")"),V,st("=>"),K,Z);if(T=="variable")return I(Gt,rn,st("=>"),K,Z)}var It=R?pt:ot;return dt.hasOwnProperty(T)?k(It):T=="function"?k(Jn,It):T=="class"||m&&$=="interface"?(U.marked="keyword",k(tt("form"),Hr,V)):T=="keyword c"||T=="async"?k(R?O:Et):T=="("?k(tt(")"),nt,st(")"),V,It):T=="operator"||T=="spread"?k(R?O:Et):T=="["?k(tt("]"),br,V,It):T=="{"?mn(te,"}",null,It):T=="quasi"?I(lt,It):T=="new"?k($t(R)):k()}function nt(T){return T.match(/[;\}\)\],]/)?I():I(Et)}function ot(T,$){return T==","?k(nt):pt(T,$,!1)}function pt(T,$,R){var K=R==!1?ot:pt,It=R==!1?Et:O;if(T=="=>")return k(Gt,R?at:xt,Z);if(T=="operator")return/\+\+|--/.test($)||m&&$=="!"?k(K):m&&$=="<"&&U.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(tt(">"),Xt(bt,">"),V,K):$=="?"?k(Et,st(":"),It):k(It);if(T=="quasi")return I(lt,K);if(T!=";"){if(T=="(")return mn(O,")","call",K);if(T==".")return k(jt,K);if(T=="[")return k(tt("]"),nt,st("]"),V,K);if(m&&$=="as")return U.marked="keyword",k(bt,K);if(T=="regexp")return U.state.lastType=U.marked="operator",U.stream.backUp(U.stream.pos-U.stream.start-1),k(It)}}function lt(T,$){return T!="quasi"?I():$.slice($.length-2)!="${"?k(lt):k(nt,gt)}function gt(T){if(T=="}")return U.marked="string-2",U.state.tokenize=j,k(lt)}function xt(T){return Q(U.stream,U.state),I(T=="{"?Ct:Et)}function at(T){return Q(U.stream,U.state),I(T=="{"?Ct:O)}function $t(T){return function($){return $=="."?k(T?Pt:Nt):$=="variable"&&m?k(Ge,T?pt:ot):I(T?O:Et)}}function Nt(T,$){if($=="target")return U.marked="keyword",k(ot)}function Pt(T,$){if($=="target")return U.marked="keyword",k(pt)}function zt(T){return T==":"?k(V,Ct):I(ot,st(";"),V)}function jt(T){if(T=="variable")return U.marked="property",k()}function te(T,$){if(T=="async")return U.marked="property",k(te);if(T=="variable"||U.style=="keyword"){if(U.marked="property",$=="get"||$=="set")return k(Qt);var R;return m&&U.state.fatArrowAt==U.stream.start&&(R=U.stream.match(/^\s*:\s*/,!1))&&(U.state.fatArrowAt=U.stream.pos+R[0].length),k(se)}else{if(T=="number"||T=="string")return U.marked=h?"property":U.style+" property",k(se);if(T=="jsonld-keyword")return k(se);if(m&&wt($))return U.marked="keyword",k(te);if(T=="[")return k(Et,qe,st("]"),se);if(T=="spread")return k(O,se);if($=="*")return U.marked="keyword",k(te);if(T==":")return I(se)}}function Qt(T){return T!="variable"?I(se):(U.marked="property",k(Jn))}function se(T){if(T==":")return k(O);if(T=="(")return I(Jn)}function Xt(T,$,R){function K(It,Vt){if(R?R.indexOf(It)>-1:It==","){var ee=U.state.lexical;return ee.info=="call"&&(ee.pos=(ee.pos||0)+1),k(function(Ne,Ln){return Ne==$||Ln==$?I():I(T)},K)}return It==$||Vt==$?k():R&&R.indexOf(";")>-1?I(T):k(st($))}return function(It,Vt){return It==$||Vt==$?k():I(T,K)}}function mn(T,$,R){for(var K=3;K<arguments.length;K++)U.cc.push(arguments[K]);return k(tt($,R),Xt(T,$),V)}function En(T){return T=="}"?k():I(Ct,En)}function qe(T,$){if(m){if(T==":")return k(bt);if($=="?")return k(qe)}}function Zi(T,$){if(m&&(T==":"||$=="in"))return k(bt)}function be(T){if(m&&T==":")return U.stream.match(/^\s*\w+\s+is\b/,!1)?k(Et,nn,bt):k(bt)}function nn(T,$){if($=="is")return U.marked="keyword",k()}function bt(T,$){if($=="keyof"||$=="typeof"||$=="infer"||$=="readonly")return U.marked="keyword",k($=="typeof"?O:bt);if(T=="variable"||$=="void")return U.marked="type",k(Je);if($=="|"||$=="&")return k(bt);if(T=="string"||T=="number"||T=="atom")return k(Je);if(T=="[")return k(tt("]"),Xt(bt,"]",","),V,Je);if(T=="{")return k(tt("}"),je,V,Je);if(T=="(")return k(Xt(Ye,")"),Zo,Je);if(T=="<")return k(Xt(bt,">"),bt);if(T=="quasi")return I(Se,Je)}function Zo(T){if(T=="=>")return k(bt)}function je(T){return T.match(/[\}\)\]]/)?k():T==","||T==";"?k(je):I(ve,je)}function ve(T,$){if(T=="variable"||U.style=="keyword")return U.marked="property",k(ve);if($=="?"||T=="number"||T=="string")return k(ve);if(T==":")return k(bt);if(T=="[")return k(st("variable"),Zi,st("]"),ve);if(T=="(")return I(Zn,ve);if(!T.match(/[;\}\)\],]/))return k()}function Se(T,$){return T!="quasi"?I():$.slice($.length-2)!="${"?k(Se):k(bt,yl)}function yl(T){if(T=="}")return U.marked="string-2",U.state.tokenize=j,k(Se)}function Ye(T,$){return T=="variable"&&U.stream.match(/^\s*[?:]/,!1)||$=="?"?k(Ye):T==":"?k(bt):T=="spread"?k(Ye):I(bt)}function Je(T,$){if($=="<")return k(tt(">"),Xt(bt,">"),V,Je);if($=="|"||T=="."||$=="&")return k(bt);if(T=="[")return k(bt,st("]"),Je);if($=="extends"||$=="implements")return U.marked="keyword",k(bt);if($=="?")return k(bt,st(":"),bt)}function Ge(T,$){if($=="<")return k(tt(">"),Xt(bt,">"),V,Je)}function yi(){return I(bt,Qo)}function Qo(T,$){if($=="=")return k(bt)}function vr(T,$){return $=="enum"?(U.marked="keyword",k(eo)):I(rn,qe,$n,_c)}function rn(T,$){if(m&&wt($))return U.marked="keyword",k(rn);if(T=="variable")return W($),k();if(T=="spread")return k(rn);if(T=="[")return mn(xc,"]");if(T=="{")return mn(ts,"}")}function ts(T,$){return T=="variable"&&!U.stream.match(/^\s*:/,!1)?(W($),k($n)):(T=="variable"&&(U.marked="property"),T=="spread"?k(rn):T=="}"?I():T=="["?k(Et,st("]"),st(":"),ts):k(st(":"),rn,$n))}function xc(){return I(rn,$n)}function $n(T,$){if($=="=")return k(O)}function _c(T){if(T==",")return k(vr)}function Qi(T,$){if(T=="keyword b"&&$=="else")return k(tt("form","else"),Ct,V)}function bl(T,$){if($=="await")return k(bl);if(T=="(")return k(tt(")"),es,V)}function es(T){return T=="var"?k(vr,qr):T=="variable"?k(qr):I(qr)}function qr(T,$){return T==")"?k():T==";"?k(qr):$=="in"||$=="of"?(U.marked="keyword",k(Et,qr)):I(Et,qr)}function Jn(T,$){if($=="*")return U.marked="keyword",k(Jn);if(T=="variable")return W($),k(Jn);if(T=="(")return k(Gt,tt(")"),Xt(Fn,")"),V,be,Ct,Z);if(m&&$=="<")return k(tt(">"),Xt(yi,">"),V,Jn)}function Zn(T,$){if($=="*")return U.marked="keyword",k(Zn);if(T=="variable")return W($),k(Zn);if(T=="(")return k(Gt,tt(")"),Xt(Fn,")"),V,be,Z);if(m&&$=="<")return k(tt(">"),Xt(yi,">"),V,Zn)}function wl(T,$){if(T=="keyword"||T=="variable")return U.marked="type",k(wl);if($=="<")return k(tt(">"),Xt(yi,">"),V)}function Fn(T,$){return $=="@"&&k(Et,Fn),T=="spread"?k(Fn):m&&wt($)?(U.marked="keyword",k(Fn)):m&&T=="this"?k(qe,$n):I(rn,qe,$n)}function Hr(T,$){return T=="variable"?xl(T,$):to(T,$)}function xl(T,$){if(T=="variable")return W($),k(to)}function to(T,$){if($=="<")return k(tt(">"),Xt(yi,">"),V,to);if($=="extends"||$=="implements"||m&&T==",")return $=="implements"&&(U.marked="keyword"),k(m?bt:Et,to);if(T=="{")return k(tt("}"),yn,V)}function yn(T,$){if(T=="async"||T=="variable"&&($=="static"||$=="get"||$=="set"||m&&wt($))&&U.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return U.marked="keyword",k(yn);if(T=="variable"||U.style=="keyword")return U.marked="property",k(mr,yn);if(T=="number"||T=="string")return k(mr,yn);if(T=="[")return k(Et,qe,st("]"),mr,yn);if($=="*")return U.marked="keyword",k(yn);if(m&&T=="(")return I(Zn,yn);if(T==";"||T==",")return k(yn);if(T=="}")return k();if($=="@")return k(Et,yn)}function mr(T,$){if($=="!"||$=="?")return k(mr);if(T==":")return k(bt,$n);if($=="=")return k(O);var R=U.state.lexical.prev,K=R&&R.info=="interface";return I(K?Zn:Jn)}function Br(T,$){return $=="*"?(U.marked="keyword",k(At,st(";"))):$=="default"?(U.marked="keyword",k(Et,st(";"))):T=="{"?k(Xt(_l,"}"),At,st(";")):I(Ct)}function _l(T,$){if($=="as")return U.marked="keyword",k(st("variable"));if(T=="variable")return I(O,_l)}function yr(T){return T=="string"?k():T=="("?I(Et):T=="."?I(ot):I(Wr,ns,At)}function Wr(T,$){return T=="{"?mn(Wr,"}"):(T=="variable"&&W($),$=="*"&&(U.marked="keyword"),k(ke))}function ns(T){if(T==",")return k(Wr,ns)}function ke(T,$){if($=="as")return U.marked="keyword",k(Wr)}function At(T,$){if($=="from")return U.marked="keyword",k(Et)}function br(T){return T=="]"?k():I(Xt(O,"]"))}function eo(){return I(tt("form"),rn,st("{"),tt("}"),Xt(Dn,"}"),V,V)}function Dn(){return I(rn,$n)}function re(T,$){return T.lastType=="operator"||T.lastType==","||S.test($.charAt(0))||/[,.]/.test($.charAt(0))}function Qn(T,$,R){return $.tokenize==z&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test($.lastType)||$.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(R||0)))}return{startState:function(T){var $={tokenize:z,lastType:"sof",cc:[],lexical:new vt((T||0)-u,0,"block",!1),localVars:a.localVars,context:a.localVars&&new Lt(null,null,!1),indented:T||0};return a.globalVars&&typeof a.globalVars=="object"&&($.globalVars=a.globalVars),$},token:function(T,$){if(T.sol()&&($.lexical.hasOwnProperty("align")||($.lexical.align=!1),$.indented=T.indentation(),Q(T,$)),$.tokenize!=G&&T.eatSpace())return null;var R=$.tokenize(T,$);return E=="comment"?R:($.lastType=E=="operator"&&(C=="++"||C=="--")?"incdec":E,ft($,R,E,C,T))},indent:function(T,$){if(T.tokenize==G||T.tokenize==j)return r.Pass;if(T.tokenize!=z)return 0;var R=$&&$.charAt(0),K=T.lexical,It;if(!/^\s*else\b/.test($))for(var Vt=T.cc.length-1;Vt>=0;--Vt){var ee=T.cc[Vt];if(ee==V)K=K.prev;else if(ee!=Qi&&ee!=Z)break}for(;(K.type=="stat"||K.type=="form")&&(R=="}"||(It=T.cc[T.cc.length-1])&&(It==ot||It==pt)&&!/^[,\.=+\-*:?[\(]/.test($));)K=K.prev;f&&K.type==")"&&K.prev.type=="stat"&&(K=K.prev);var Ne=K.type,Ln=R==Ne;return Ne=="vardef"?K.indented+(T.lastType=="operator"||T.lastType==","?K.info.length+1:0):Ne=="form"&&R=="{"?K.indented:Ne=="form"?K.indented+u:Ne=="stat"?K.indented+(re(T,$)?f||u:0):K.info=="switch"&&!Ln&&a.doubleIndentSwitch!=!1?K.indented+(/^(?:case|default)\b/.test($)?u:2*u):K.align?K.column+(Ln?0:1):K.indented+(Ln?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:Qn,skipExpression:function(T){ft(T,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),cv.exports}cy();var jst={exports:{}};(function(t,n){(function(r){r(Yo())})(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 m in g)p[m]=g[m];for(var m in f)p[m]=f[m];var b,x;function S(k,H){function W(Lt){return H.tokenize=Lt,Lt(k,H)}var et=k.next();if(et=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?W(E("atom","]]>")):null:k.match("--")?W(E("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),W(C(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),H.tokenize=E("meta","?>"),"meta"):(b=k.eat("/")?"closeTag":"openTag",H.tokenize=M,"tag bracket");if(et=="&"){var wt;return k.eat("#")?k.eat("x")?wt=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):wt=k.eatWhile(/[\d]/)&&k.eat(";"):wt=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),wt?"atom":"error"}else return k.eatWhile(/[^&<]/),null}S.isInText=!0;function M(k,H){var W=k.next();if(W==">"||W=="/"&&k.eat(">"))return H.tokenize=S,b=W==">"?"endTag":"selfcloseTag","tag bracket";if(W=="=")return b="equals",null;if(W=="<"){H.tokenize=S,H.state=j,H.tagName=H.tagStart=null;var et=H.tokenize(k,H);return et?et+" tag error":"tag error"}else return/[\'\"]/.test(W)?(H.tokenize=A(W),H.stringStartCol=k.column(),H.tokenize(k,H)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function A(k){var H=function(W,et){for(;!W.eol();)if(W.next()==k){et.tokenize=M;break}return"string"};return H.isInAttribute=!0,H}function E(k,H){return function(W,et){for(;!W.eol();){if(W.match(H)){et.tokenize=S;break}W.next()}return k}}function C(k){return function(H,W){for(var et;(et=H.next())!=null;){if(et=="<")return W.tokenize=C(k+1),W.tokenize(H,W);if(et==">")if(k==1){W.tokenize=S;break}else return W.tokenize=C(k-1),W.tokenize(H,W)}return"meta"}}function L(k){return k&&k.toLowerCase()}function z(k,H,W){this.prev=k.context,this.tagName=H||"",this.indent=k.indented,this.startOfLine=W,(p.doNotIndent.hasOwnProperty(H)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function D(k){k.context&&(k.context=k.context.prev)}function G(k,H){for(var W;;){if(!k.context||(W=k.context.tagName,!p.contextGrabbers.hasOwnProperty(L(W))||!p.contextGrabbers[L(W)].hasOwnProperty(L(H))))return;D(k)}}function j(k,H,W){return k=="openTag"?(W.tagStart=H.column(),it):k=="closeTag"?Q:j}function it(k,H,W){return k=="word"?(W.tagName=H.current(),x="tag",kt):p.allowMissingTagName&&k=="endTag"?(x="tag bracket",kt(k,H,W)):(x="error",it)}function Q(k,H,W){if(k=="word"){var et=H.current();return W.context&&W.context.tagName!=et&&p.implicitlyClosed.hasOwnProperty(L(W.context.tagName))&&D(W),W.context&&W.context.tagName==et||p.matchClosing===!1?(x="tag",dt):(x="tag error",vt)}else return p.allowMissingTagName&&k=="endTag"?(x="tag bracket",dt(k,H,W)):(x="error",vt)}function dt(k,H,W){return k!="endTag"?(x="error",dt):(D(W),j)}function vt(k,H,W){return x="error",dt(k,H,W)}function kt(k,H,W){if(k=="word")return x="attribute",ft;if(k=="endTag"||k=="selfcloseTag"){var et=W.tagName,wt=W.tagStart;return W.tagName=W.tagStart=null,k=="selfcloseTag"||p.autoSelfClosers.hasOwnProperty(L(et))?G(W,et):(G(W,et),W.context=new z(W,et,wt==W.indented)),j}return x="error",kt}function ft(k,H,W){return k=="equals"?U:(p.allowMissing||(x="error"),kt(k,H,W))}function U(k,H,W){return k=="string"?I:k=="word"&&p.allowUnquoted?(x="string",kt):(x="error",kt(k,H,W))}function I(k,H,W){return k=="string"?I:kt(k,H,W)}return{startState:function(k){var H={tokenize:S,state:j,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(H.baseIndent=k),H},token:function(k,H){if(!H.tagName&&k.sol()&&(H.indented=k.indentation()),k.eatSpace())return null;b=null;var W=H.tokenize(k,H);return(W||b)&&W!="comment"&&(x=null,H.state=H.state(b||W,k,H),x&&(W=x=="error"?W+" error":x)),W},indent:function(k,H,W){var et=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+h;if(et&&et.noIndent)return r.Pass;if(k.tokenize!=M&&k.tokenize!=S)return W?W.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(H))return 0;var wt=H&&/^<(\/)?([\w_:\.-]*)/.exec(H);if(wt&&wt[1])for(;et;)if(et.tagName==wt[2]){et=et.prev;break}else if(p.implicitlyClosed.hasOwnProperty(L(et.tagName)))et=et.prev;else break;else if(wt)for(;et;){var Lt=p.contextGrabbers[L(et.tagName)];if(Lt&&Lt.hasOwnProperty(L(wt[2])))et=et.prev;else break}for(;et&&et.prev&&!et.startOfLine;)et=et.prev;return et?et.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==U&&(k.state=kt)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var H=[],W=k.context;W;W=W.prev)H.push(W.tagName);return H.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();(function(t,n){(function(r){r(Yo(),jst.exports,cy())})(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 M=S.tagName;S.tagName=null;var A=h.indent(S,"","");return S.tagName=M,A}function m(S,M){return M.context.mode==h?b(S,M,M.context):x(S,M,M.context)}function b(S,M,A){if(A.depth==2)return S.match(/^.*?\*\//)?A.depth=1:S.skipToEnd(),"comment";if(S.peek()=="{"){h.skipAttribute(A.state);var E=g(A.state),C=A.state.context;if(C&&S.match(/^[^>]*>\s*$/,!1)){for(;C.prev&&!C.startOfLine;)C=C.prev;C.startOfLine?E-=u.indentUnit:A.prev.state.lexical&&(E=A.prev.state.lexical.indented)}else A.depth==1&&(E+=u.indentUnit);return M.context=new o(r.startState(p,E),p,0,M.context),null}if(A.depth==1){if(S.peek()=="<")return h.skipAttribute(A.state),M.context=new o(r.startState(h,g(A.state)),h,0,M.context),null;if(S.match("//"))return S.skipToEnd(),"comment";if(S.match("/*"))return A.depth=2,m(S,M)}var L=h.token(S,A.state),z=S.current(),D;return/\btag\b/.test(L)?/>$/.test(z)?A.state.context?A.depth=0:M.context=M.context.prev:/^</.test(z)&&(A.depth=1):!L&&(D=z.indexOf("{"))>-1&&S.backUp(z.length-D),L}function x(S,M,A){if(S.peek()=="<"&&p.expressionAllowed(S,A.state))return M.context=new o(r.startState(h,p.indent(A.state,"","")),h,0,M.context),p.skipExpression(A.state),null;var E=p.token(S,A.state);if(!E&&A.depth!=null){var C=S.current();C=="{"?A.depth++:C=="}"&&--A.depth==0&&(M.context=M.context.prev)}return E}return{startState:function(){return{context:new o(r.startState(p),p)}},copyState:function(S){return{context:a(S.context)}},token:m,indent:function(S,M,A){return S.context.mode.indent(S.context.state,M,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(Yo())})(function(r){r.defineOption("placeholder","",function(g,m,b){var x=b&&b!=r.Init;if(m&&!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(!m&&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","")}m&&!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 m=g.state.placeholder=document.createElement("pre");m.style.cssText="height: 0; overflow: visible",m.style.direction=g.getOption("direction"),m.className="CodeMirror-placeholder CodeMirror-line-like";var b=g.getOption("placeholder");typeof b=="string"&&(b=document.createTextNode(b)),m.appendChild(b),g.display.lineSpace.insertBefore(m,g.display.lineSpace.firstChild)}function u(g){setTimeout(function(){var m=!1;if(g.lineCount()==1){var b=g.getInputField();m=b.nodeName=="TEXTAREA"?!g.getLine(0).length:!/[^\u200b]/.test(b.querySelector(".CodeMirror-line").textContent)}m?a(g):o(g)},20)}function f(g){p(g)&&a(g)}function h(g){var m=g.getWrapperElement(),b=p(g);m.className=m.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(Yo())})(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],M=g.pos;function A(){r.off(document,"mousemove",E),r.off(document,"mouseup",A)}function E(C){if(C.which!=1)return A();g.moveTo(M+(C[x]-S)*(g.total/g.size))}r.on(document,"mousemove",E),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 m(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",m),r.on(this.node,"DOMMouseScroll",m)}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 m=this.screen*(this.size/this.total);m<a&&(this.size-=a-m,m=a),this.inner.style[this.orientation=="horizontal"?"width":"height"]=m+"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,m=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=m?"block":"none",this.horiz.node.style.display=g?"block":"none",m&&(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-(m?p:0)-f.barLeft),this.horiz.node.style.right=m?p+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:m?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 Gst(t,n,r={}){const o=Ust.fromTextArea(t.value,{theme:"vars",...r,scrollbarStyle:"simple"});let a=!1;return o.on("change",()=>{if(a){a=!1;return}n.value=o.getValue()}),Fe(n,u=>{if(u!==o.getValue()){a=!0;const f=o.listSelections();o.replaceRange(u,o.posFromIndex(0),o.posFromIndex(1/0)),o.setSelections(f)}},{immediate:!0}),Of(o)}const Vst={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},uy=oe({__name:"CodeMirror",props:{modelValue:null,mode:null,readOnly:{type:Boolean}},emits:["update:modelValue","save"],setup(t,{expose:n,emit:r}){const o=t,a=r_(),u={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=Kt(),h=rT(o,"modelValue",r,{passive:!0}),p=ll();return n({cm:p}),ul(async()=>{p.value=Gst(f,h,{...o,...a,mode:u[o.mode||""]||o.mode,readOnly:o.readOnly?"nocursor":void 0,extraKeys:{"Cmd-S":function(g){r("save",g.getValue())},"Ctrl-S":function(g){r("save",g.getValue())}}}),p.value.setSize("100%","100%"),p.value.clearHistory(),setTimeout(()=>p.value.refresh(),100)}),(g,m)=>(ht(),Mt("div",Vst,[ut("textarea",{ref_key:"el",ref:f},null,512)]))}}),Kst=oe({__name:"ViewEditor",props:{file:null},emits:["draft"],setup(t,{emit:n}){const r=t,o=Kt(""),a=ll(void 0),u=Kt(!1);Fe(()=>r.file,async()=>{var C;if(!r.file||!((C=r.file)!=null&&C.filepath)){o.value="",a.value=o.value,u.value=!1;return}o.value=await We.rpc.readFile(r.file.filepath),a.value=o.value,u.value=!1},{immediate:!0});const f=St(()=>{var C,L;return((L=(C=r.file)==null?void 0:C.filepath)==null?void 0:L.split(/\./g).pop())||"js"}),h=Kt(),p=St(()=>{var C;return(C=h.value)==null?void 0:C.cm}),g=St(()=>{var C;return((C=r.file)==null?void 0:C.tasks.filter(L=>{var z;return((z=L.result)==null?void 0:z.state)==="fail"}))||[]}),m=[],b=[],x=[],S=Kt(!1),M=()=>{x.forEach(([C,L,z])=>{C.removeEventListener("click",L),z()}),x.length=0};YC(h,()=>{var C;(C=p.value)==null||C.refresh()});function A(){u.value=a.value!==p.value.getValue()}Fe(u,C=>{n("draft",C)},{immediate:!0}),Fe([p,g],([C])=>{if(!C){M();return}setTimeout(()=>{M(),m.forEach(L=>L.clear()),b.forEach(L=>{var z;return(z=p.value)==null?void 0:z.removeLineClass(L,"wrap")}),m.length=0,b.length=0,C.on("changes",A),g.value.forEach(L=>{var G;const z=(G=L.result)==null?void 0:G.error,D=((z==null?void 0:z.stacks)||[]).filter(j=>{var it;return j.file&&j.file===((it=r.file)==null?void 0:it.filepath)});if(D.length){const j=D[0].sourcePos||D[0],it=document.createElement("div");it.className="op80 flex gap-x-2 items-center";const Q=document.createElement("pre");Q.className="c-red-600 dark:c-red-400",Q.textContent=`${" ".repeat(j.column)}^ ${z==null?void 0:z.nameStr}: ${z==null?void 0:z.message}`,it.appendChild(Q);const dt=document.createElement("span");dt.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",dt.tabIndex=0,dt.ariaLabel="Open in Editor",v0(dt,{content:"Open in Editor",placement:"bottom"},!1);const vt=async()=>{await ly(D[0].file,j.line,j.column)};it.appendChild(dt),x.push([dt,vt,()=>Qf(dt)]),b.push(p.value.addLineClass(j.line-1,"wrap","bg-red-500/10")),m.push(p.value.addLineWidget(j.line-1,it))}}),S.value||C.clearHistory()},100)},{flush:"post"});async function E(C){S.value=!0,await We.rpc.writeFile(r.file.filepath,C),a.value=C,u.value=!1}return(C,L)=>{const z=uy;return ht(),ce(z,hi({ref_key:"editor",ref:h,modelValue:o.value,"onUpdate:modelValue":L[0]||(L[0]=D=>o.value=D),"h-full":""},{lineNumbers:!0},{mode:J(f),"data-testid":"code-mirror",onSave:E}),null,16,["modelValue","mode"])}}}),Xst=oe({__name:"Modal",props:{modelValue:{type:Boolean,default:!1},direction:{default:"bottom"}},emits:["update:modelValue"],setup(t){const n=t,r=St(()=>{switch(n.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=St(()=>{switch(n.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}});return(a,u)=>(ht(),Mt("div",{class:ge(["fixed inset-0 z-40",t.modelValue?"":"pointer-events-none"])},[ut("div",{class:ge(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.modelValue?"opacity-50":"opacity-0"]),onClick:u[0]||(u[0]=f=>a.$emit("update:modelValue",!1))},null,2),ut("div",{class:ge(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[J(r)]]),style:kn(t.modelValue?{}:{transform:J(o)})},[Kn(a.$slots,"default")],6)],2))}}),Yst=["aria-label","opacity","disabled","hover"],Jo=oe({__name:"IconButton",props:{icon:null,title:null,disabled:{type:Boolean}},setup(t){return(n,r)=>(ht(),Mt("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled?"":"bg-active op100",class:"w-1.4em h-1.4em flex"},[Kn(n.$slots,"default",{},()=>[ut("div",{class:ge(t.icon),ma:""},null,2)])],8,Yst))}}),Jst={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Zst={"p-4":"",relative:""},Qst=ut("p",null,"Module Info",-1),tlt={op50:"","font-mono":"","text-sm":""},elt={key:0,"p-5":""},nlt={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},rlt=ut("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),ilt=ut("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),olt={key:0},slt={p:"x3 y-1","bg-overlay":"",border:"base b t"},llt=oe({__name:"ModuleTransformResultView",props:{id:null},emits:["close"],setup(t,{emit:n}){const r=t,o=_C(()=>We.rpc.getTransformResult(r.id)),a=St(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),u=St(()=>{var p,g;return((g=(p=o.value)==null?void 0:p.source)==null?void 0:g.trim())||""}),f=St(()=>{var p,g;return((g=(p=o.value)==null?void 0:p.code)==null?void 0:g.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=St(()=>{var p,g,m,b,x;return{mappings:(m=(g=(p=o.value)==null?void 0:p.map)==null?void 0:g.mappings)!=null?m:"",version:(x=(b=o.value)==null?void 0:b.map)==null?void 0:x.version}});return kC("Escape",()=>{n("close")}),(p,g)=>{const m=Jo,b=uy;return ht(),Mt("div",Jst,[ut("div",Zst,[Qst,ut("p",tlt,Zt(t.id),1),Rt(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:g[0]||(g[0]=x=>n("close"))})]),J(o)?(ht(),Mt(ue,{key:1},[ut("div",nlt,[rlt,ilt,Rt(b,hi({"h-full":"","model-value":J(u),"read-only":""},{lineNumbers:!0},{mode:J(a)}),null,16,["model-value","mode"]),Rt(b,hi({"h-full":"","model-value":J(f),"read-only":""},{lineNumbers:!0},{mode:J(a)}),null,16,["model-value","mode"])]),J(h).mappings!==""?(ht(),Mt("div",olt,[ut("div",slt," Source map (v"+Zt(J(h).version)+") ",1),Rt(b,hi({"model-value":J(h).mappings,"read-only":""},{lineNumbers:!0},{mode:J(a)}),null,16,["model-value","mode"])])):ye("",!0)],64)):(ht(),Mt("div",elt," No transform result found for this module. "))])}}});var cf="http://www.w3.org/1999/xhtml";const fv={svg:"http://www.w3.org/2000/svg",xhtml:cf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function yc(t){var n=t+="",r=n.indexOf(":");return r>=0&&(n=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),fv.hasOwnProperty(n)?{space:fv[n],local:t}:t}function alt(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===cf&&n.documentElement.namespaceURI===cf?n.createElement(t):n.createElementNS(r,t)}}function clt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function fy(t){var n=yc(t);return(n.local?clt:alt)(n)}function ult(){}function sh(t){return t==null?ult:function(){return this.querySelector(t)}}function flt(t){typeof t!="function"&&(t=sh(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,m=0;m<f;++m)(p=u[m])&&(g=t.call(p,p.__data__,m,u))&&("__data__"in p&&(g.__data__=p.__data__),h[m]=g);return new Pn(o,this._parents)}function hlt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function dlt(){return[]}function hy(t){return t==null?dlt:function(){return this.querySelectorAll(t)}}function plt(t){return function(){return hlt(t.apply(this,arguments))}}function glt(t){typeof t=="function"?t=plt(t):t=hy(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 Pn(o,a)}function dy(t){return function(){return this.matches(t)}}function py(t){return function(n){return n.matches(t)}}var vlt=Array.prototype.find;function mlt(t){return function(){return vlt.call(this.children,t)}}function ylt(){return this.firstElementChild}function blt(t){return this.select(t==null?ylt:mlt(typeof t=="function"?t:py(t)))}var wlt=Array.prototype.filter;function xlt(){return Array.from(this.children)}function _lt(t){return function(){return wlt.call(this.children,t)}}function Slt(t){return this.selectAll(t==null?xlt:_lt(typeof t=="function"?t:py(t)))}function klt(t){typeof t!="function"&&(t=dy(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 Pn(o,this._parents)}function gy(t){return new Array(t.length)}function Clt(){return new Pn(this._enter||this._groups.map(gy),this._parents)}function Fa(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Fa.prototype={constructor:Fa,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 Tlt(t){return function(){return t}}function Elt(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 Fa(t,u[f]);for(;f<p;++f)(h=n[f])&&(a[f]=h)}function Llt(t,n,r,o,a,u,f){var h,p,g=new Map,m=n.length,b=u.length,x=new Array(m),S;for(h=0;h<m;++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 Fa(t,u[h]);for(h=0;h<m;++h)(p=n[h])&&g.get(x[h])===p&&(a[h]=p)}function Alt(t){return t.__data__}function Mlt(t,n){if(!arguments.length)return Array.from(this,Alt);var r=n?Llt:Elt,o=this._parents,a=this._groups;typeof t!="function"&&(t=Tlt(t));for(var u=a.length,f=new Array(u),h=new Array(u),p=new Array(u),g=0;g<u;++g){var m=o[g],b=a[g],x=b.length,S=Nlt(t.call(m,m&&m.__data__,g,o)),M=S.length,A=h[g]=new Array(M),E=f[g]=new Array(M),C=p[g]=new Array(x);r(m,b,A,E,C,S,n);for(var L=0,z=0,D,G;L<M;++L)if(D=A[L]){for(L>=z&&(z=L+1);!(G=E[z])&&++z<M;);D._next=G||null}}return f=new Pn(f,o),f._enter=h,f._exit=p,f}function Nlt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Olt(){return new Pn(this._exit||this._groups.map(gy),this._parents)}function Plt(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 $lt(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],m=o[p],b=g.length,x=h[p]=new Array(b),S,M=0;M<b;++M)(S=g[M]||m[M])&&(x[M]=S);for(;p<a;++p)h[p]=r[p];return new Pn(h,this._parents)}function Dlt(){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 Rlt(t){t||(t=zlt);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,m=0;m<h;++m)(g=f[m])&&(p[m]=g);p.sort(n)}return new Pn(a,this._parents).order()}function zlt(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Ilt(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Flt(){return Array.from(this)}function qlt(){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 Hlt(){let t=0;for(const n of this)++t;return t}function Blt(){return!this.node()}function Wlt(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 Ult(t){return function(){this.removeAttribute(t)}}function jlt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Glt(t,n){return function(){this.setAttribute(t,n)}}function Vlt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Klt(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Xlt(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 Ylt(t,n){var r=yc(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?jlt:Ult:typeof n=="function"?r.local?Xlt:Klt:r.local?Vlt:Glt)(r,n))}function vy(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Jlt(t){return function(){this.style.removeProperty(t)}}function Zlt(t,n,r){return function(){this.style.setProperty(t,n,r)}}function Qlt(t,n,r){return function(){var o=n.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function tat(t,n,r){return arguments.length>1?this.each((n==null?Jlt:typeof n=="function"?Qlt:Zlt)(t,n,r==null?"":r)):Uo(this.node(),t)}function Uo(t,n){return t.style.getPropertyValue(n)||vy(t).getComputedStyle(t,null).getPropertyValue(n)}function eat(t){return function(){delete this[t]}}function nat(t,n){return function(){this[t]=n}}function rat(t,n){return function(){var r=n.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function iat(t,n){return arguments.length>1?this.each((n==null?eat:typeof n=="function"?rat:nat)(t,n)):this.node()[t]}function my(t){return t.trim().split(/^|\s+/)}function lh(t){return t.classList||new yy(t)}function yy(t){this._node=t,this._names=my(t.getAttribute("class")||"")}yy.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 by(t,n){for(var r=lh(t),o=-1,a=n.length;++o<a;)r.add(n[o])}function wy(t,n){for(var r=lh(t),o=-1,a=n.length;++o<a;)r.remove(n[o])}function oat(t){return function(){by(this,t)}}function sat(t){return function(){wy(this,t)}}function lat(t,n){return function(){(n.apply(this,arguments)?by:wy)(this,t)}}function aat(t,n){var r=my(t+"");if(arguments.length<2){for(var o=lh(this.node()),a=-1,u=r.length;++a<u;)if(!o.contains(r[a]))return!1;return!0}return this.each((typeof n=="function"?lat:n?oat:sat)(r,n))}function cat(){this.textContent=""}function uat(t){return function(){this.textContent=t}}function fat(t){return function(){var n=t.apply(this,arguments);this.textContent=n==null?"":n}}function hat(t){return arguments.length?this.each(t==null?cat:(typeof t=="function"?fat:uat)(t)):this.node().textContent}function dat(){this.innerHTML=""}function pat(t){return function(){this.innerHTML=t}}function gat(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n==null?"":n}}function vat(t){return arguments.length?this.each(t==null?dat:(typeof t=="function"?gat:pat)(t)):this.node().innerHTML}function mat(){this.nextSibling&&this.parentNode.appendChild(this)}function yat(){return this.each(mat)}function bat(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wat(){return this.each(bat)}function xat(t){var n=typeof t=="function"?t:fy(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function _at(){return null}function Sat(t,n){var r=typeof t=="function"?t:fy(t),o=n==null?_at:typeof n=="function"?n:sh(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function kat(){var t=this.parentNode;t&&t.removeChild(this)}function Cat(){return this.each(kat)}function Tat(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Eat(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Lat(t){return this.select(t?Eat:Tat)}function Aat(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Mat(t){return function(n){t.call(this,n,this.__data__)}}function Nat(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 Oat(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 Pat(t,n,r){return function(){var o=this.__on,a,u=Mat(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 $at(t,n,r){var o=Nat(t+""),a,u=o.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var p=0,g=h.length,m;p<g;++p)for(a=0,m=h[p];a<u;++a)if((f=o[a]).type===m.type&&f.name===m.name)return m.value}return}for(h=n?Pat:Oat,a=0;a<u;++a)this.each(h(o[a],n,r));return this}function xy(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 Dat(t,n){return function(){return xy(this,t,n)}}function Rat(t,n){return function(){return xy(this,t,n.apply(this,arguments))}}function zat(t,n){return this.each((typeof n=="function"?Rat:Dat)(t,n))}function*Iat(){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 _y=[null];function Pn(t,n){this._groups=t,this._parents=n}function pl(){return new Pn([[document.documentElement]],_y)}function Fat(){return this}Pn.prototype=pl.prototype={constructor:Pn,select:flt,selectAll:glt,selectChild:blt,selectChildren:Slt,filter:klt,data:Mlt,enter:Clt,exit:Olt,join:Plt,merge:$lt,selection:Fat,order:Dlt,sort:Rlt,call:Ilt,nodes:Flt,node:qlt,size:Hlt,empty:Blt,each:Wlt,attr:Ylt,style:tat,property:iat,classed:aat,text:hat,html:vat,raise:yat,lower:wat,append:xat,insert:Sat,remove:Cat,clone:Lat,datum:Aat,on:$at,dispatch:zat,[Symbol.iterator]:Iat};function _n(t){return typeof t=="string"?new Pn([[document.querySelector(t)]],[document.documentElement]):new Pn([[t]],_y)}function qat(t){let n;for(;n=t.sourceEvent;)t=n;return t}function Ar(t,n){if(t=qat(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]}var Hat={value:()=>{}};function gl(){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 wa(r)}function wa(t){this._=t}function Bat(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}})}wa.prototype=gl.prototype={constructor:wa,on:function(t,n){var r=this._,o=Bat(t+"",r),a,u=-1,f=o.length;if(arguments.length<2){for(;++u<f;)if((a=(t=o[u]).type)&&(a=Wat(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 wa(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 Wat(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]=Hat,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:n,value:r}),t}const Uat={passive:!1},nl={capture:!0,passive:!1};function Au(t){t.stopImmediatePropagation()}function Oo(t){t.preventDefault(),t.stopImmediatePropagation()}function Sy(t){var n=t.document.documentElement,r=_n(t).on("dragstart.drag",Oo,nl);"onselectstart"in n?r.on("selectstart.drag",Oo,nl):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function ky(t,n){var r=t.document.documentElement,o=_n(t).on("dragstart.drag",null);n&&(o.on("click.drag",Oo,nl),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 oa=t=>()=>t;function uf(t,{sourceEvent:n,subject:r,target:o,identifier:a,active:u,x:f,y:h,dx:p,dy:g,dispatch:m}){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:m}})}uf.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function jat(t){return!t.ctrlKey&&!t.button}function Gat(){return this.parentNode}function Vat(t,n){return n==null?{x:t.x,y:t.y}:n}function Kat(){return navigator.maxTouchPoints||"ontouchstart"in this}function Xat(){var t=jat,n=Gat,r=Vat,o=Kat,a={},u=gl("start","drag","end"),f=0,h,p,g,m,b=0;function x(D){D.on("mousedown.drag",S).filter(o).on("touchstart.drag",E).on("touchmove.drag",C,Uat).on("touchend.drag touchcancel.drag",L).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(D,G){if(!(m||!t.call(this,D,G))){var j=z(this,n.call(this,D,G),D,G,"mouse");!j||(_n(D.view).on("mousemove.drag",M,nl).on("mouseup.drag",A,nl),Sy(D.view),Au(D),g=!1,h=D.clientX,p=D.clientY,j("start",D))}}function M(D){if(Oo(D),!g){var G=D.clientX-h,j=D.clientY-p;g=G*G+j*j>b}a.mouse("drag",D)}function A(D){_n(D.view).on("mousemove.drag mouseup.drag",null),ky(D.view,g),Oo(D),a.mouse("end",D)}function E(D,G){if(!!t.call(this,D,G)){var j=D.changedTouches,it=n.call(this,D,G),Q=j.length,dt,vt;for(dt=0;dt<Q;++dt)(vt=z(this,it,D,G,j[dt].identifier,j[dt]))&&(Au(D),vt("start",D,j[dt]))}}function C(D){var G=D.changedTouches,j=G.length,it,Q;for(it=0;it<j;++it)(Q=a[G[it].identifier])&&(Oo(D),Q("drag",D,G[it]))}function L(D){var G=D.changedTouches,j=G.length,it,Q;for(m&&clearTimeout(m),m=setTimeout(function(){m=null},500),it=0;it<j;++it)(Q=a[G[it].identifier])&&(Au(D),Q("end",D,G[it]))}function z(D,G,j,it,Q,dt){var vt=u.copy(),kt=Ar(dt||j,G),ft,U,I;if((I=r.call(D,new uf("beforestart",{sourceEvent:j,target:x,identifier:Q,active:f,x:kt[0],y:kt[1],dx:0,dy:0,dispatch:vt}),it))!=null)return ft=I.x-kt[0]||0,U=I.y-kt[1]||0,function k(H,W,et){var wt=kt,Lt;switch(H){case"start":a[Q]=k,Lt=f++;break;case"end":delete a[Q],--f;case"drag":kt=Ar(et||W,G),Lt=f;break}vt.call(H,D,new uf(H,{sourceEvent:W,subject:I,target:x,identifier:Q,active:Lt,x:kt[0]+ft,y:kt[1]+U,dx:kt[0]-wt[0],dy:kt[1]-wt[1],dispatch:vt}),it)}}return x.filter=function(D){return arguments.length?(t=typeof D=="function"?D:oa(!!D),x):t},x.container=function(D){return arguments.length?(n=typeof D=="function"?D:oa(D),x):n},x.subject=function(D){return arguments.length?(r=typeof D=="function"?D:oa(D),x):r},x.touchable=function(D){return arguments.length?(o=typeof D=="function"?D:oa(!!D),x):o},x.on=function(){var D=u.on.apply(u,arguments);return D===u?x:D},x.clickDistance=function(D){return arguments.length?(b=(D=+D)*D,x):Math.sqrt(b)},x}function ah(t,n,r){t.prototype=n.prototype=r,r.constructor=t}function Cy(t,n){var r=Object.create(t.prototype);for(var o in n)r[o]=n[o];return r}function vl(){}var rl=.7,qa=1/rl,Po="\\s*([+-]?\\d+)\\s*",il="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ur="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yat=/^#([0-9a-f]{3,8})$/,Jat=new RegExp(`^rgb\\(${Po},${Po},${Po}\\)$`),Zat=new RegExp(`^rgb\\(${ur},${ur},${ur}\\)$`),Qat=new RegExp(`^rgba\\(${Po},${Po},${Po},${il}\\)$`),tct=new RegExp(`^rgba\\(${ur},${ur},${ur},${il}\\)$`),ect=new RegExp(`^hsl\\(${il},${ur},${ur}\\)$`),nct=new RegExp(`^hsla\\(${il},${ur},${ur},${il}\\)$`),dv={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};ah(vl,ol,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:pv,formatHex:pv,formatHex8:rct,formatHsl:ict,formatRgb:gv,toString:gv});function pv(){return this.rgb().formatHex()}function rct(){return this.rgb().formatHex8()}function ict(){return Ty(this).formatHsl()}function gv(){return this.rgb().formatRgb()}function ol(t){var n,r;return t=(t+"").trim().toLowerCase(),(n=Yat.exec(t))?(r=n[1].length,n=parseInt(n[1],16),r===6?vv(n):r===3?new Sn(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):r===8?sa(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):r===4?sa(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=Jat.exec(t))?new Sn(n[1],n[2],n[3],1):(n=Zat.exec(t))?new Sn(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Qat.exec(t))?sa(n[1],n[2],n[3],n[4]):(n=tct.exec(t))?sa(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=ect.exec(t))?bv(n[1],n[2]/100,n[3]/100,1):(n=nct.exec(t))?bv(n[1],n[2]/100,n[3]/100,n[4]):dv.hasOwnProperty(t)?vv(dv[t]):t==="transparent"?new Sn(NaN,NaN,NaN,0):null}function vv(t){return new Sn(t>>16&255,t>>8&255,t&255,1)}function sa(t,n,r,o){return o<=0&&(t=n=r=NaN),new Sn(t,n,r,o)}function oct(t){return t instanceof vl||(t=ol(t)),t?(t=t.rgb(),new Sn(t.r,t.g,t.b,t.opacity)):new Sn}function ff(t,n,r,o){return arguments.length===1?oct(t):new Sn(t,n,r,o==null?1:o)}function Sn(t,n,r,o){this.r=+t,this.g=+n,this.b=+r,this.opacity=+o}ah(Sn,ff,Cy(vl,{brighter(t){return t=t==null?qa:Math.pow(qa,t),new Sn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?rl:Math.pow(rl,t),new Sn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Sn(ji(this.r),ji(this.g),ji(this.b),Ha(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:mv,formatHex:mv,formatHex8:sct,formatRgb:yv,toString:yv}));function mv(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}`}function sct(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}${Hi((isNaN(this.opacity)?1:this.opacity)*255)}`}function yv(){const t=Ha(this.opacity);return`${t===1?"rgb(":"rgba("}${ji(this.r)}, ${ji(this.g)}, ${ji(this.b)}${t===1?")":`, ${t})`}`}function Ha(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ji(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Hi(t){return t=ji(t),(t<16?"0":"")+t.toString(16)}function bv(t,n,r,o){return o<=0?t=n=r=NaN:r<=0||r>=1?t=n=NaN:n<=0&&(t=NaN),new Gn(t,n,r,o)}function Ty(t){if(t instanceof Gn)return new Gn(t.h,t.s,t.l,t.opacity);if(t instanceof vl||(t=ol(t)),!t)return new Gn;if(t instanceof Gn)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 Gn(f,h,p,t.opacity)}function lct(t,n,r,o){return arguments.length===1?Ty(t):new Gn(t,n,r,o==null?1:o)}function Gn(t,n,r,o){this.h=+t,this.s=+n,this.l=+r,this.opacity=+o}ah(Gn,lct,Cy(vl,{brighter(t){return t=t==null?qa:Math.pow(qa,t),new Gn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?rl:Math.pow(rl,t),new Gn(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 Sn(Mu(t>=240?t-240:t+120,a,o),Mu(t,a,o),Mu(t<120?t+240:t-120,a,o),this.opacity)},clamp(){return new Gn(wv(this.h),la(this.s),la(this.l),Ha(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=Ha(this.opacity);return`${t===1?"hsl(":"hsla("}${wv(this.h)}, ${la(this.s)*100}%, ${la(this.l)*100}%${t===1?")":`, ${t})`}`}}));function wv(t){return t=(t||0)%360,t<0?t+360:t}function la(t){return Math.max(0,Math.min(1,t||0))}function Mu(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 Ey=t=>()=>t;function act(t,n){return function(r){return t+r*n}}function cct(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 uct(t){return(t=+t)==1?Ly:function(n,r){return r-n?cct(n,r,t):Ey(isNaN(n)?r:n)}}function Ly(t,n){var r=n-t;return r?act(t,r):Ey(isNaN(t)?n:t)}const xv=function t(n){var r=uct(n);function o(a,u){var f=r((a=ff(a)).r,(u=ff(u)).r),h=r(a.g,u.g),p=r(a.b,u.b),g=Ly(a.opacity,u.opacity);return function(m){return a.r=f(m),a.g=h(m),a.b=p(m),a.opacity=g(m),a+""}}return o.gamma=t,o}(1);function oi(t,n){return t=+t,n=+n,function(r){return t*(1-r)+n*r}}var hf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nu=new RegExp(hf.source,"g");function fct(t){return function(){return t}}function hct(t){return function(n){return t(n)+""}}function dct(t,n){var r=hf.lastIndex=Nu.lastIndex=0,o,a,u,f=-1,h=[],p=[];for(t=t+"",n=n+"";(o=hf.exec(t))&&(a=Nu.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:oi(o,a)})),r=Nu.lastIndex;return r<n.length&&(u=n.slice(r),h[f]?h[f]+=u:h[++f]=u),h.length<2?p[0]?hct(p[0].x):fct(n):(n=p.length,function(g){for(var m=0,b;m<n;++m)h[(b=p[m]).i]=b.x(g);return h.join("")})}var _v=180/Math.PI,df={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ay(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)*_v,skewX:Math.atan(p)*_v,scaleX:f,scaleY:h}}var aa;function pct(t){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?df:Ay(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()))?df:(t=t.matrix,Ay(t.a,t.b,t.c,t.d,t.e,t.f))}function My(t,n,r,o){function a(g){return g.length?g.pop()+" ":""}function u(g,m,b,x,S,M){if(g!==b||m!==x){var A=S.push("translate(",null,n,null,r);M.push({i:A-4,x:oi(g,b)},{i:A-2,x:oi(m,x)})}else(b||x)&&S.push("translate("+b+n+x+r)}function f(g,m,b,x){g!==m?(g-m>180?m+=360:m-g>180&&(g+=360),x.push({i:b.push(a(b)+"rotate(",null,o)-2,x:oi(g,m)})):m&&b.push(a(b)+"rotate("+m+o)}function h(g,m,b,x){g!==m?x.push({i:b.push(a(b)+"skewX(",null,o)-2,x:oi(g,m)}):m&&b.push(a(b)+"skewX("+m+o)}function p(g,m,b,x,S,M){if(g!==b||m!==x){var A=S.push(a(S)+"scale(",null,",",null,")");M.push({i:A-4,x:oi(g,b)},{i:A-2,x:oi(m,x)})}else(b!==1||x!==1)&&S.push(a(S)+"scale("+b+","+x+")")}return function(g,m){var b=[],x=[];return g=t(g),m=t(m),u(g.translateX,g.translateY,m.translateX,m.translateY,b,x),f(g.rotate,m.rotate,b,x),h(g.skewX,m.skewX,b,x),p(g.scaleX,g.scaleY,m.scaleX,m.scaleY,b,x),g=m=null,function(S){for(var M=-1,A=x.length,E;++M<A;)b[(E=x[M]).i]=E.x(S);return b.join("")}}}var vct=My(pct,"px, ","px)","deg)"),mct=My(gct,", ",")",")"),yct=1e-12;function Sv(t){return((t=Math.exp(t))+1/t)/2}function bct(t){return((t=Math.exp(t))-1/t)/2}function wct(t){return((t=Math.exp(2*t))-1)/(t+1)}const xct=function t(n,r,o){function a(u,f){var h=u[0],p=u[1],g=u[2],m=f[0],b=f[1],x=f[2],S=m-h,M=b-p,A=S*S+M*M,E,C;if(A<yct)C=Math.log(x/g)/n,E=function(it){return[h+it*S,p+it*M,g*Math.exp(n*it*C)]};else{var L=Math.sqrt(A),z=(x*x-g*g+o*A)/(2*g*r*L),D=(x*x-g*g-o*A)/(2*x*r*L),G=Math.log(Math.sqrt(z*z+1)-z),j=Math.log(Math.sqrt(D*D+1)-D);C=(j-G)/n,E=function(it){var Q=it*C,dt=Sv(G),vt=g/(r*L)*(dt*wct(n*Q+G)-bct(G));return[h+vt*S,p+vt*M,g*dt/Sv(n*Q+G)]}}return E.duration=C*1e3*n/Math.SQRT2,E}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 jo=0,Rs=0,Ps=0,Ny=1e3,Ba,zs,Wa=0,Xi=0,bc=0,sl=typeof performance=="object"&&performance.now?performance:Date,Oy=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ch(){return Xi||(Oy(_ct),Xi=sl.now()+bc)}function _ct(){Xi=0}function Ua(){this._call=this._time=this._next=null}Ua.prototype=uh.prototype={constructor:Ua,restart:function(t,n,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?ch():+r)+(n==null?0:+n),!this._next&&zs!==this&&(zs?zs._next=this:Ba=this,zs=this),this._call=t,this._time=r,pf()},stop:function(){this._call&&(this._call=null,this._time=1/0,pf())}};function uh(t,n,r){var o=new Ua;return o.restart(t,n,r),o}function Sct(){ch(),++jo;for(var t=Ba,n;t;)(n=Xi-t._time)>=0&&t._call.call(void 0,n),t=t._next;--jo}function kv(){Xi=(Wa=sl.now())+bc,jo=Rs=0;try{Sct()}finally{jo=0,Cct(),Xi=0}}function kct(){var t=sl.now(),n=t-Wa;n>Ny&&(bc-=n,Wa=t)}function Cct(){for(var t,n=Ba,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:Ba=r);zs=t,pf(o)}function pf(t){if(!jo){Rs&&(Rs=clearTimeout(Rs));var n=t-Xi;n>24?(t<1/0&&(Rs=setTimeout(kv,t-sl.now()-bc)),Ps&&(Ps=clearInterval(Ps))):(Ps||(Wa=sl.now(),Ps=setInterval(kct,Ny)),jo=1,Oy(kv))}}function Cv(t,n,r){var o=new Ua;return n=n==null?0:+n,o.restart(a=>{o.stop(),t(a+n)},n,r),o}var Tct=gl("start","end","cancel","interrupt"),Ect=[],Py=0,Tv=1,gf=2,xa=3,Ev=4,vf=5,_a=6;function wc(t,n,r,o,a,u){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;Lct(t,r,{name:n,index:o,group:a,on:Tct,tween:Ect,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:Py})}function fh(t,n){var r=Yn(t,n);if(r.state>Py)throw new Error("too late; already scheduled");return r}function pr(t,n){var r=Yn(t,n);if(r.state>xa)throw new Error("too late; already running");return r}function Yn(t,n){var r=t.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function Lct(t,n,r){var o=t.__transition,a;o[n]=r,r.timer=uh(u,0,r.time);function u(g){r.state=Tv,r.timer.restart(f,r.delay,r.time),r.delay<=g&&f(g-r.delay)}function f(g){var m,b,x,S;if(r.state!==Tv)return p();for(m in o)if(S=o[m],S.name===r.name){if(S.state===xa)return Cv(f);S.state===Ev?(S.state=_a,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete o[m]):+m<n&&(S.state=_a,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete o[m])}if(Cv(function(){r.state===xa&&(r.state=Ev,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=gf,r.on.call("start",t,t.__data__,r.index,r.group),r.state===gf){for(r.state=xa,a=new Array(x=r.tween.length),m=0,b=-1;m<x;++m)(S=r.tween[m].value.call(t,t.__data__,r.index,r.group))&&(a[++b]=S);a.length=b+1}}function h(g){for(var m=g<r.duration?r.ease.call(null,g/r.duration):(r.timer.restart(p),r.state=vf,1),b=-1,x=a.length;++b<x;)a[b].call(t,m);r.state===vf&&(r.on.call("end",t,t.__data__,r.index,r.group),p())}function p(){r.state=_a,r.timer.stop(),delete o[n];for(var g in o)return;delete t.__transition}}function Sa(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>gf&&o.state<vf,o.state=_a,o.timer.stop(),o.on.call(a?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[f]}u&&delete t.__transition}}function Act(t){return this.each(function(){Sa(this,t)})}function Mct(t,n){var r,o;return function(){var a=pr(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 Nct(t,n,r){var o,a;if(typeof r!="function")throw new Error;return function(){var u=pr(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 Oct(t,n){var r=this._id;if(t+="",arguments.length<2){for(var o=Yn(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?Mct:Nct)(r,t,n))}function hh(t,n,r){var o=t._id;return t.each(function(){var a=pr(this,o);(a.value||(a.value={}))[n]=r.apply(this,arguments)}),function(a){return Yn(a,o).value[n]}}function $y(t,n){var r;return(typeof n=="number"?oi:n instanceof ol?xv:(r=ol(n))?(n=r,xv):dct)(t,n)}function Pct(t){return function(){this.removeAttribute(t)}}function $ct(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Dct(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 Rct(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 zct(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 Ict(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 Fct(t,n){var r=yc(t),o=r==="transform"?mct:$y;return this.attrTween(t,typeof n=="function"?(r.local?Ict:zct)(r,o,hh(this,"attr."+t,n)):n==null?(r.local?$ct:Pct)(r):(r.local?Rct:Dct)(r,o,n))}function qct(t,n){return function(r){this.setAttribute(t,n.call(this,r))}}function Hct(t,n){return function(r){this.setAttributeNS(t.space,t.local,n.call(this,r))}}function Bct(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&Hct(t,u)),r}return a._value=n,a}function Wct(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&qct(t,u)),r}return a._value=n,a}function Uct(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=yc(t);return this.tween(r,(o.local?Bct:Wct)(o,n))}function jct(t,n){return function(){fh(this,t).delay=+n.apply(this,arguments)}}function Gct(t,n){return n=+n,function(){fh(this,t).delay=n}}function Vct(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?jct:Gct)(n,t)):Yn(this.node(),n).delay}function Kct(t,n){return function(){pr(this,t).duration=+n.apply(this,arguments)}}function Xct(t,n){return n=+n,function(){pr(this,t).duration=n}}function Yct(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Kct:Xct)(n,t)):Yn(this.node(),n).duration}function Jct(t,n){if(typeof n!="function")throw new Error;return function(){pr(this,t).ease=n}}function Zct(t){var n=this._id;return arguments.length?this.each(Jct(n,t)):Yn(this.node(),n).ease}function Qct(t,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;pr(this,t).ease=r}}function tut(t){if(typeof t!="function")throw new Error;return this.each(Qct(this._id,t))}function eut(t){typeof t!="function"&&(t=dy(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 zr(o,this._parents,this._name,this._id)}function nut(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],m=p.length,b=f[h]=new Array(m),x,S=0;S<m;++S)(x=p[S]||g[S])&&(b[S]=x);for(;h<o;++h)f[h]=n[h];return new zr(f,this._parents,this._name,this._id)}function rut(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 iut(t,n,r){var o,a,u=rut(n)?fh:pr;return function(){var f=u(this,t),h=f.on;h!==o&&(a=(o=h).copy()).on(n,r),f.on=a}}function out(t,n){var r=this._id;return arguments.length<2?Yn(this.node(),r).on.on(t):this.each(iut(r,t,n))}function sut(t){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==t)return;n&&n.removeChild(this)}}function lut(){return this.on("end.remove",sut(this._id))}function aut(t){var n=this._name,r=this._id;typeof t!="function"&&(t=sh(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),m,b,x=0;x<p;++x)(m=h[x])&&(b=t.call(m,m.__data__,x,h))&&("__data__"in m&&(b.__data__=m.__data__),g[x]=b,wc(g[x],n,r,x,g,Yn(m,r)));return new zr(u,this._parents,n,r)}function cut(t){var n=this._name,r=this._id;typeof t!="function"&&(t=hy(t));for(var o=this._groups,a=o.length,u=[],f=[],h=0;h<a;++h)for(var p=o[h],g=p.length,m,b=0;b<g;++b)if(m=p[b]){for(var x=t.call(m,m.__data__,b,p),S,M=Yn(m,r),A=0,E=x.length;A<E;++A)(S=x[A])&&wc(S,n,r,A,x,M);u.push(x),f.push(m)}return new zr(u,f,n,r)}var uut=pl.prototype.constructor;function fut(){return new uut(this._groups,this._parents)}function hut(t,n){var r,o,a;return function(){var u=Uo(this,t),f=(this.style.removeProperty(t),Uo(this,t));return u===f?null:u===r&&f===o?a:a=n(r=u,o=f)}}function Dy(t){return function(){this.style.removeProperty(t)}}function dut(t,n,r){var o,a=r+"",u;return function(){var f=Uo(this,t);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=Uo(this,t),h=r(this),p=h+"";return h==null&&(p=h=(this.style.removeProperty(t),Uo(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=pr(this,t),g=p.on,m=p.value[u]==null?h||(h=Dy(n)):void 0;(g!==r||a!==m)&&(o=(r=g).copy()).on(f,a=m),p.on=o}}function vut(t,n,r){var o=(t+="")=="transform"?vct:$y;return n==null?this.styleTween(t,hut(t,o)).on("end.style."+t,Dy(t)):typeof n=="function"?this.styleTween(t,put(t,o,hh(this,"style."+t,n))).each(gut(this._id,t)):this.styleTween(t,dut(t,o,n),r).on("end.style."+t,null)}function mut(t,n,r){return function(o){this.style.setProperty(t,n.call(this,o),r)}}function yut(t,n,r){var o,a;function u(){var f=n.apply(this,arguments);return f!==a&&(o=(a=f)&&mut(t,f,r)),o}return u._value=n,u}function but(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,yut(t,n,r==null?"":r))}function wut(t){return function(){this.textContent=t}}function xut(t){return function(){var n=t(this);this.textContent=n==null?"":n}}function _ut(t){return this.tween("text",typeof t=="function"?xut(hh(this,"text",t)):wut(t==null?"":t+""))}function Sut(t){return function(n){this.textContent=t.call(this,n)}}function kut(t){var n,r;function o(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Sut(a)),n}return o._value=t,o}function Cut(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,kut(t))}function Tut(){for(var t=this._name,n=this._id,r=Ry(),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 m=Yn(p,n);wc(p,t,r,g,f,{time:m.time+m.delay+m.duration,delay:0,duration:m.duration,ease:m.ease})}return new zr(o,this._parents,t,r)}function Eut(){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=pr(this,o),m=g.on;m!==t&&(n=(t=m).copy(),n._.cancel.push(h),n._.interrupt.push(h),n._.end.push(p)),g.on=n}),a===0&&u()})}var Lut=0;function zr(t,n,r,o){this._groups=t,this._parents=n,this._name=r,this._id=o}function Ry(){return++Lut}var Er=pl.prototype;zr.prototype={constructor:zr,select:aut,selectAll:cut,selectChild:Er.selectChild,selectChildren:Er.selectChildren,filter:eut,merge:nut,selection:fut,transition:Tut,call:Er.call,nodes:Er.nodes,node:Er.node,size:Er.size,empty:Er.empty,each:Er.each,on:out,attr:Fct,attrTween:Uct,style:vut,styleTween:but,text:_ut,textTween:Cut,remove:lut,tween:Oct,delay:Vct,duration:Yct,ease:Zct,easeVarying:tut,end:Eut,[Symbol.iterator]:Er[Symbol.iterator]};function Aut(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Mut={time:null,delay:0,duration:250,ease:Aut};function Nut(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 Out(t){var n,r;t instanceof zr?(n=t._id,t=t._name):(n=Ry(),(r=Mut).time=ch(),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])&&wc(p,t,n,g,f,r||Nut(p,n));return new zr(o,this._parents,t,n)}pl.prototype.interrupt=Act;pl.prototype.transition=Out;const ca=t=>()=>t;function Put(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 Or(t,n,r){this.k=t,this.x=n,this.y=r}Or.prototype={constructor:Or,scale:function(t){return t===1?this:new Or(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new Or(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 dh=new Or(1,0,0);Or.prototype;function Ou(t){t.stopImmediatePropagation()}function $s(t){t.preventDefault(),t.stopImmediatePropagation()}function $ut(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Dut(){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 Lv(){return this.__zoom||dh}function Rut(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function zut(){return navigator.maxTouchPoints||"ontouchstart"in this}function Iut(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 Fut(){var t=$ut,n=Dut,r=Iut,o=Rut,a=zut,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,p=xct,g=gl("start","zoom","end"),m,b,x,S=500,M=150,A=0,E=10;function C(I){I.property("__zoom",Lv).on("wheel.zoom",Q,{passive:!1}).on("mousedown.zoom",dt).on("dblclick.zoom",vt).filter(a).on("touchstart.zoom",kt).on("touchmove.zoom",ft).on("touchend.zoom touchcancel.zoom",U).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(I,k,H,W){var et=I.selection?I.selection():I;et.property("__zoom",Lv),I!==et?G(I,k,H,W):et.interrupt().each(function(){j(this,arguments).event(W).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},C.scaleBy=function(I,k,H,W){C.scaleTo(I,function(){var et=this.__zoom.k,wt=typeof k=="function"?k.apply(this,arguments):k;return et*wt},H,W)},C.scaleTo=function(I,k,H,W){C.transform(I,function(){var et=n.apply(this,arguments),wt=this.__zoom,Lt=H==null?D(et):typeof H=="function"?H.apply(this,arguments):H,qt=wt.invert(Lt),Bt=typeof k=="function"?k.apply(this,arguments):k;return r(z(L(wt,Bt),Lt,qt),et,f)},H,W)},C.translateBy=function(I,k,H,W){C.transform(I,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof H=="function"?H.apply(this,arguments):H),n.apply(this,arguments),f)},null,W)},C.translateTo=function(I,k,H,W,et){C.transform(I,function(){var wt=n.apply(this,arguments),Lt=this.__zoom,qt=W==null?D(wt):typeof W=="function"?W.apply(this,arguments):W;return r(dh.translate(qt[0],qt[1]).scale(Lt.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof H=="function"?-H.apply(this,arguments):-H),wt,f)},W,et)};function L(I,k){return k=Math.max(u[0],Math.min(u[1],k)),k===I.k?I:new Or(k,I.x,I.y)}function z(I,k,H){var W=k[0]-H[0]*I.k,et=k[1]-H[1]*I.k;return W===I.x&&et===I.y?I:new Or(I.k,W,et)}function D(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function G(I,k,H,W){I.on("start.zoom",function(){j(this,arguments).event(W).start()}).on("interrupt.zoom end.zoom",function(){j(this,arguments).event(W).end()}).tween("zoom",function(){var et=this,wt=arguments,Lt=j(et,wt).event(W),qt=n.apply(et,wt),Bt=H==null?D(qt):typeof H=="function"?H.apply(et,wt):H,Gt=Math.max(qt[1][0]-qt[0][0],qt[1][1]-qt[0][1]),ne=et.__zoom,Z=typeof k=="function"?k.apply(et,wt):k,tt=p(ne.invert(Bt).concat(Gt/ne.k),Z.invert(Bt).concat(Gt/Z.k));return function(V){if(V===1)V=Z;else{var st=tt(V),Ct=Gt/st[2];V=new Or(Ct,Bt[0]-st[0]*Ct,Bt[1]-st[1]*Ct)}Lt.zoom(null,V)}})}function j(I,k,H){return!H&&I.__zooming||new it(I,k)}function it(I,k){this.that=I,this.args=k,this.active=0,this.sourceEvent=null,this.extent=n.apply(I,k),this.taps=0}it.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,k){return this.mouse&&I!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var k=_n(this.that).datum();g.call(I,this.that,new Put(I,{sourceEvent:this.sourceEvent,target:C,type:I,transform:this.that.__zoom,dispatch:g}),k)}};function Q(I,...k){if(!t.apply(this,arguments))return;var H=j(this,k).event(I),W=this.__zoom,et=Math.max(u[0],Math.min(u[1],W.k*Math.pow(2,o.apply(this,arguments)))),wt=Ar(I);if(H.wheel)(H.mouse[0][0]!==wt[0]||H.mouse[0][1]!==wt[1])&&(H.mouse[1]=W.invert(H.mouse[0]=wt)),clearTimeout(H.wheel);else{if(W.k===et)return;H.mouse=[wt,W.invert(wt)],Sa(this),H.start()}$s(I),H.wheel=setTimeout(Lt,M),H.zoom("mouse",r(z(L(W,et),H.mouse[0],H.mouse[1]),H.extent,f));function Lt(){H.wheel=null,H.end()}}function dt(I,...k){if(x||!t.apply(this,arguments))return;var H=I.currentTarget,W=j(this,k,!0).event(I),et=_n(I.view).on("mousemove.zoom",Bt,!0).on("mouseup.zoom",Gt,!0),wt=Ar(I,H),Lt=I.clientX,qt=I.clientY;Sy(I.view),Ou(I),W.mouse=[wt,this.__zoom.invert(wt)],Sa(this),W.start();function Bt(ne){if($s(ne),!W.moved){var Z=ne.clientX-Lt,tt=ne.clientY-qt;W.moved=Z*Z+tt*tt>A}W.event(ne).zoom("mouse",r(z(W.that.__zoom,W.mouse[0]=Ar(ne,H),W.mouse[1]),W.extent,f))}function Gt(ne){et.on("mousemove.zoom mouseup.zoom",null),ky(ne.view,W.moved),$s(ne),W.event(ne).end()}}function vt(I,...k){if(!!t.apply(this,arguments)){var H=this.__zoom,W=Ar(I.changedTouches?I.changedTouches[0]:I,this),et=H.invert(W),wt=H.k*(I.shiftKey?.5:2),Lt=r(z(L(H,wt),W,et),n.apply(this,k),f);$s(I),h>0?_n(this).transition().duration(h).call(G,Lt,W,I):_n(this).call(C.transform,Lt,W,I)}}function kt(I,...k){if(!!t.apply(this,arguments)){var H=I.touches,W=H.length,et=j(this,k,I.changedTouches.length===W).event(I),wt,Lt,qt,Bt;for(Ou(I),Lt=0;Lt<W;++Lt)qt=H[Lt],Bt=Ar(qt,this),Bt=[Bt,this.__zoom.invert(Bt),qt.identifier],et.touch0?!et.touch1&&et.touch0[2]!==Bt[2]&&(et.touch1=Bt,et.taps=0):(et.touch0=Bt,wt=!0,et.taps=1+!!m);m&&(m=clearTimeout(m)),wt&&(et.taps<2&&(b=Bt[0],m=setTimeout(function(){m=null},S)),Sa(this),et.start())}}function ft(I,...k){if(!!this.__zooming){var H=j(this,k).event(I),W=I.changedTouches,et=W.length,wt,Lt,qt,Bt;for($s(I),wt=0;wt<et;++wt)Lt=W[wt],qt=Ar(Lt,this),H.touch0&&H.touch0[2]===Lt.identifier?H.touch0[0]=qt:H.touch1&&H.touch1[2]===Lt.identifier&&(H.touch1[0]=qt);if(Lt=H.that.__zoom,H.touch1){var Gt=H.touch0[0],ne=H.touch0[1],Z=H.touch1[0],tt=H.touch1[1],V=(V=Z[0]-Gt[0])*V+(V=Z[1]-Gt[1])*V,st=(st=tt[0]-ne[0])*st+(st=tt[1]-ne[1])*st;Lt=L(Lt,Math.sqrt(V/st)),qt=[(Gt[0]+Z[0])/2,(Gt[1]+Z[1])/2],Bt=[(ne[0]+tt[0])/2,(ne[1]+tt[1])/2]}else if(H.touch0)qt=H.touch0[0],Bt=H.touch0[1];else return;H.zoom("touch",r(z(Lt,qt,Bt),H.extent,f))}}function U(I,...k){if(!!this.__zooming){var H=j(this,k).event(I),W=I.changedTouches,et=W.length,wt,Lt;for(Ou(I),x&&clearTimeout(x),x=setTimeout(function(){x=null},S),wt=0;wt<et;++wt)Lt=W[wt],H.touch0&&H.touch0[2]===Lt.identifier?delete H.touch0:H.touch1&&H.touch1[2]===Lt.identifier&&delete H.touch1;if(H.touch1&&!H.touch0&&(H.touch0=H.touch1,delete H.touch1),H.touch0)H.touch0[1]=this.__zoom.invert(H.touch0[0]);else if(H.end(),H.taps===2&&(Lt=Ar(Lt,this),Math.hypot(b[0]-Lt[0],b[1]-Lt[1])<E)){var qt=_n(this).on("dblclick.zoom");qt&&qt.apply(this,arguments)}}}return C.wheelDelta=function(I){return arguments.length?(o=typeof I=="function"?I:ca(+I),C):o},C.filter=function(I){return arguments.length?(t=typeof I=="function"?I:ca(!!I),C):t},C.touchable=function(I){return arguments.length?(a=typeof I=="function"?I:ca(!!I),C):a},C.extent=function(I){return arguments.length?(n=typeof I=="function"?I:ca([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),C):n},C.scaleExtent=function(I){return arguments.length?(u[0]=+I[0],u[1]=+I[1],C):[u[0],u[1]]},C.translateExtent=function(I){return arguments.length?(f[0][0]=+I[0][0],f[1][0]=+I[1][0],f[0][1]=+I[0][1],f[1][1]=+I[1][1],C):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},C.constrain=function(I){return arguments.length?(r=I,C):r},C.duration=function(I){return arguments.length?(h=+I,C):h},C.interpolate=function(I){return arguments.length?(p=I,C):p},C.on=function(){var I=g.on.apply(g,arguments);return I===g?C:I},C.clickDistance=function(I){return arguments.length?(A=(I=+I)*I,C):Math.sqrt(A)},C.tapDistance=function(I){return arguments.length?(E=+I,C):E},C}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(Math.pow(this.x,2)+Math.pow(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)}}function qut(t){const n=+this._x.call(null,t),r=+this._y.call(null,t);return zy(this.cover(n,r),n,r,t)}function zy(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,m=t._y1,b,x,S,M,A,E,C,L;if(!u)return t._root=f,t;for(;u.length;)if((A=n>=(b=(h+g)/2))?h=b:g=b,(E=r>=(x=(p+m)/2))?p=x:m=x,a=u,!(u=u[C=E<<1|A]))return a[C]=f,t;if(S=+t._x.call(null,u.data),M=+t._y.call(null,u.data),n===S&&r===M)return f.next=u,a?a[C]=f:t._root=f,t;do a=a?a[C]=new Array(4):t._root=new Array(4),(A=n>=(b=(h+g)/2))?h=b:g=b,(E=r>=(x=(p+m)/2))?p=x:m=x;while((C=E<<1|A)===(L=(M>=x)<<1|S>=b));return a[L]=u,a[C]=f,t}function Hut(t){var n,r,o=t.length,a,u,f=new Array(o),h=new Array(o),p=1/0,g=1/0,m=-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>m&&(m=a),u<g&&(g=u),u>b&&(b=u));if(p>m||g>b)return this;for(this.cover(p,g).cover(m,b),r=0;r<o;++r)zy(this,f[r],h[r],t[r]);return this}function But(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 Wut(){var t=[];return this.visit(function(n){if(!n.length)do t.push(n.data);while(n=n.next)}),t}function Uut(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 jut(t,n,r){var o,a=this._x0,u=this._y0,f,h,p,g,m=this._x1,b=this._y1,x=[],S=this._root,M,A;for(S&&x.push(new dn(S,a,u,m,b)),r==null?r=1/0:(a=t-r,u=n-r,m=t+r,b=n+r,r*=r);M=x.pop();)if(!(!(S=M.node)||(f=M.x0)>m||(h=M.y0)>b||(p=M.x1)<a||(g=M.y1)<u))if(S.length){var E=(f+p)/2,C=(h+g)/2;x.push(new dn(S[3],E,C,p,g),new dn(S[2],f,C,E,g),new dn(S[1],E,h,p,C),new dn(S[0],f,h,E,C)),(A=(n>=C)<<1|t>=E)&&(M=x[x.length-1],x[x.length-1]=x[x.length-1-A],x[x.length-1-A]=M)}else{var L=t-+this._x.call(null,S.data),z=n-+this._y.call(null,S.data),D=L*L+z*z;if(D<r){var G=Math.sqrt(r=D);a=t-G,u=n-G,m=t+G,b=n+G,o=S.data}}return o}function Gut(t){if(isNaN(m=+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,m,b,x,S,M,A,E,C;if(!r)return this;if(r.length)for(;;){if((M=m>=(x=(f+p)/2))?f=x:p=x,(A=b>=(S=(h+g)/2))?h=S:g=S,n=r,!(r=r[E=A<<1|M]))return this;if(!r.length)break;(n[E+1&3]||n[E+2&3]||n[E+3&3])&&(o=n,C=E)}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[E]=u:delete n[E],(r=n[0]||n[1]||n[2]||n[3])&&r===(n[3]||n[2]||n[1]||n[0])&&!r.length&&(o?o[C]=r:this._root=r),this):(this._root=u,this)}function Vut(t){for(var n=0,r=t.length;n<r;++n)this.remove(t[n]);return this}function Kut(){return this._root}function Xut(){var t=0;return this.visit(function(n){if(!n.length)do++t;while(n=n.next)}),t}function Yut(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,m=(f+p)/2;(a=o[3])&&n.push(new dn(a,g,m,h,p)),(a=o[2])&&n.push(new dn(a,u,m,g,p)),(a=o[1])&&n.push(new dn(a,g,f,h,m)),(a=o[0])&&n.push(new dn(a,u,f,g,m))}return this}function Jut(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,m=(f+p)/2,b=(h+g)/2;(u=a[0])&&n.push(new dn(u,f,h,m,b)),(u=a[1])&&n.push(new dn(u,m,h,p,b)),(u=a[2])&&n.push(new dn(u,f,b,m,g)),(u=a[3])&&n.push(new dn(u,m,b,p,g))}r.push(o)}for(;o=r.pop();)t(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Zut(t){return t[0]}function Qut(t){return arguments.length?(this._x=t,this):this._x}function tft(t){return t[1]}function eft(t){return arguments.length?(this._y=t,this):this._y}function ph(t,n,r){var o=new gh(n==null?Zut:n,r==null?tft:r,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function gh(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 Av(t){for(var n={data:t.data},r=n;t=t.next;)r=r.next={data:t.data};return n}var vn=ph.prototype=gh.prototype;vn.copy=function(){var t=new gh(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=Av(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]=Av(o));return t};vn.add=qut;vn.addAll=Hut;vn.cover=But;vn.data=Wut;vn.extent=Uut;vn.find=jut;vn.remove=Gut;vn.removeAll=Vut;vn.root=Kut;vn.size=Xut;vn.visit=Yut;vn.visitAfter=Jut;vn.x=Qut;vn.y=eft;function gn(t){return function(){return t}}function li(t){return(t()-.5)*1e-6}function nft(t){return t.x+t.vx}function rft(t){return t.y+t.vy}function ift(t){var n,r,o,a=1,u=1;typeof t!="function"&&(t=gn(t==null?1:+t));function f(){for(var g,m=n.length,b,x,S,M,A,E,C=0;C<u;++C)for(b=ph(n,nft,rft).visitAfter(h),g=0;g<m;++g)x=n[g],A=r[x.index],E=A*A,S=x.x+x.vx,M=x.y+x.vy,b.visit(L);function L(z,D,G,j,it){var Q=z.data,dt=z.r,vt=A+dt;if(Q){if(Q.index>x.index){var kt=S-Q.x-Q.vx,ft=M-Q.y-Q.vy,U=kt*kt+ft*ft;U<vt*vt&&(kt===0&&(kt=li(o),U+=kt*kt),ft===0&&(ft=li(o),U+=ft*ft),U=(vt-(U=Math.sqrt(U)))/U*a,x.vx+=(kt*=U)*(vt=(dt*=dt)/(E+dt)),x.vy+=(ft*=U)*vt,Q.vx-=kt*(vt=1-vt),Q.vy-=ft*vt)}return}return D>S+vt||j<S-vt||G>M+vt||it<M-vt}}function h(g){if(g.data)return g.r=r[g.data.index];for(var m=g.r=0;m<4;++m)g[m]&&g[m].r>g.r&&(g.r=g[m].r)}function p(){if(!!n){var g,m=n.length,b;for(r=new Array(m),g=0;g<m;++g)b=n[g],r[b.index]=+t(b,g,n)}}return f.initialize=function(g,m){n=g,o=m,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:gn(+g),p(),f):t},f}function oft(t){return t.index}function Mv(t,n){var r=t.get(n);if(!r)throw new Error("node not found: "+n);return r}function sft(t){var n=oft,r=b,o,a=gn(30),u,f,h,p,g,m=1;t==null&&(t=[]);function b(E){return 1/Math.min(h[E.source.index],h[E.target.index])}function x(E){for(var C=0,L=t.length;C<m;++C)for(var z=0,D,G,j,it,Q,dt,vt;z<L;++z)D=t[z],G=D.source,j=D.target,it=j.x+j.vx-G.x-G.vx||li(g),Q=j.y+j.vy-G.y-G.vy||li(g),dt=Math.sqrt(it*it+Q*Q),dt=(dt-u[z])/dt*E*o[z],it*=dt,Q*=dt,j.vx-=it*(vt=p[z]),j.vy-=Q*vt,G.vx+=it*(vt=1-vt),G.vy+=Q*vt}function S(){if(!!f){var E,C=f.length,L=t.length,z=new Map(f.map((G,j)=>[n(G,j,f),G])),D;for(E=0,h=new Array(C);E<L;++E)D=t[E],D.index=E,typeof D.source!="object"&&(D.source=Mv(z,D.source)),typeof D.target!="object"&&(D.target=Mv(z,D.target)),h[D.source.index]=(h[D.source.index]||0)+1,h[D.target.index]=(h[D.target.index]||0)+1;for(E=0,p=new Array(L);E<L;++E)D=t[E],p[E]=h[D.source.index]/(h[D.source.index]+h[D.target.index]);o=new Array(L),M(),u=new Array(L),A()}}function M(){if(!!f)for(var E=0,C=t.length;E<C;++E)o[E]=+r(t[E],E,t)}function A(){if(!!f)for(var E=0,C=t.length;E<C;++E)u[E]=+a(t[E],E,t)}return x.initialize=function(E,C){f=E,g=C,S()},x.links=function(E){return arguments.length?(t=E,S(),x):t},x.id=function(E){return arguments.length?(n=E,x):n},x.iterations=function(E){return arguments.length?(m=+E,x):m},x.strength=function(E){return arguments.length?(r=typeof E=="function"?E:gn(+E),M(),x):r},x.distance=function(E){return arguments.length?(a=typeof E=="function"?E:gn(+E),A(),x):a},x}const lft=1664525,aft=1013904223,Nv=4294967296;function cft(){let t=1;return()=>(t=(lft*t+aft)%Nv)/Nv}function uft(t){return t.x}function fft(t){return t.y}var hft=10,dft=Math.PI*(3-Math.sqrt(5));function pft(t){var n,r=1,o=.001,a=1-Math.pow(o,1/300),u=0,f=.6,h=new Map,p=uh(b),g=gl("tick","end"),m=cft();t==null&&(t=[]);function b(){x(),g.call("tick",n),r<o&&(p.stop(),g.call("end",n))}function x(A){var E,C=t.length,L;A===void 0&&(A=1);for(var z=0;z<A;++z)for(r+=(u-r)*a,h.forEach(function(D){D(r)}),E=0;E<C;++E)L=t[E],L.fx==null?L.x+=L.vx*=f:(L.x=L.fx,L.vx=0),L.fy==null?L.y+=L.vy*=f:(L.y=L.fy,L.vy=0);return n}function S(){for(var A=0,E=t.length,C;A<E;++A){if(C=t[A],C.index=A,C.fx!=null&&(C.x=C.fx),C.fy!=null&&(C.y=C.fy),isNaN(C.x)||isNaN(C.y)){var L=hft*Math.sqrt(.5+A),z=A*dft;C.x=L*Math.cos(z),C.y=L*Math.sin(z)}(isNaN(C.vx)||isNaN(C.vy))&&(C.vx=C.vy=0)}}function M(A){return A.initialize&&A.initialize(t,m),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(M),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?(m=A,h.forEach(M),n):m},force:function(A,E){return arguments.length>1?(E==null?h.delete(A):h.set(A,M(E)),n):h.get(A)},find:function(A,E,C){var L=0,z=t.length,D,G,j,it,Q;for(C==null?C=1/0:C*=C,L=0;L<z;++L)it=t[L],D=A-it.x,G=E-it.y,j=D*D+G*G,j<C&&(Q=it,C=j);return Q},on:function(A,E){return arguments.length>1?(g.on(A,E),n):g.on(A)}}}function gft(){var t,n,r,o,a=gn(-30),u,f=1,h=1/0,p=.81;function g(S){var M,A=t.length,E=ph(t,uft,fft).visitAfter(b);for(o=S,M=0;M<A;++M)n=t[M],E.visit(x)}function m(){if(!!t){var S,M=t.length,A;for(u=new Array(M),S=0;S<M;++S)A=t[S],u[A.index]=+a(A,S,t)}}function b(S){var M=0,A,E,C=0,L,z,D;if(S.length){for(L=z=D=0;D<4;++D)(A=S[D])&&(E=Math.abs(A.value))&&(M+=A.value,C+=E,L+=E*A.x,z+=E*A.y);S.x=L/C,S.y=z/C}else{A=S,A.x=A.data.x,A.y=A.data.y;do M+=u[A.data.index];while(A=A.next)}S.value=M}function x(S,M,A,E){if(!S.value)return!0;var C=S.x-n.x,L=S.y-n.y,z=E-M,D=C*C+L*L;if(z*z/p<D)return D<h&&(C===0&&(C=li(r),D+=C*C),L===0&&(L=li(r),D+=L*L),D<f&&(D=Math.sqrt(f*D)),n.vx+=C*S.value*o/D,n.vy+=L*S.value*o/D),!0;if(S.length||D>=h)return;(S.data!==n||S.next)&&(C===0&&(C=li(r),D+=C*C),L===0&&(L=li(r),D+=L*L),D<f&&(D=Math.sqrt(f*D)));do S.data!==n&&(z=u[S.data.index]*o/D,n.vx+=C*z,n.vy+=L*z);while(S=S.next)}return g.initialize=function(S,M){t=S,r=M,m()},g.strength=function(S){return arguments.length?(a=typeof S=="function"?S:gn(+S),m(),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=gn(.1),r,o,a;typeof t!="function"&&(t=gn(t==null?0:+t));function u(h){for(var p=0,g=r.length,m;p<g;++p)m=r[p],m.vx+=(a[p]-m.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:gn(+h),f(),u):n},u.x=function(h){return arguments.length?(t=typeof h=="function"?h:gn(+h),f(),u):t},u}function mft(t){var n=gn(.1),r,o,a;typeof t!="function"&&(t=gn(t==null?0:+t));function u(h){for(var p=0,g=r.length,m;p<g;++p)m=r[p],m.vy+=(a[p]-m.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:gn(+h),f(),u):n},u.y=function(h){return arguments.length?(t=typeof h=="function"?h:gn(+h),f(),u):t},u}var yft=Object.defineProperty,bft=(t,n,r)=>n in t?yft(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Me=(t,n,r)=>(bft(t,typeof n!="symbol"?n+"":n,r),r);function wft(){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 xft(){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 _ft(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Iy(t){t.preventDefault(),t.stopPropagation()}function Fy(t){return typeof t=="number"}function gi(t,n){return Fy(t.nodeRadius)?t.nodeRadius:t.nodeRadius(n)}function Sft(t){return`${t.source.id}-${t.target.id}`}function qy(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function kft(t){return`url(#${qy(t.color)})`}function Cft(t){return{size:t,padding:(n,r)=>gi(r,n)+2*t,ref:[t/2,t/2],path:[[0,0],[0,t],[t,t/2]],viewBox:[0,0,t,t].join(",")}}const Hy={Arrow:t=>Cft(t)},Tft=(t,n,r)=>[n/2,r/2],Eft=(t,n,r)=>[Ov(0,n),Ov(0,r)];function Ov(t,n){return Math.random()*(n-t)+t}const mf={Centered:Tft,Randomized:Eft};var Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},By={},yf=Go&&Go.__assign||function(){return yf=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},yf.apply(this,arguments)},Lft=Go&&Go.__read||function(t,n){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),a,u=[],f;try{for(;(n===void 0||n-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(h){f={error:h}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(f)throw f.error}}return u},Aft=Go&&Go.__spreadArray||function(t,n,r){if(r||arguments.length===2)for(var o=0,a=n.length,u;o<a;o++)(u||!(o in n))&&(u||(u=Array.prototype.slice.call(n,0,o)),u[o]=n[o]);return t.concat(u||Array.prototype.slice.call(n))};Object.defineProperty(By,"__esModule",{value:!0});var Pv=function(t){if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){var n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1},ai=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.reduce(function(r,o){if(Array.isArray(o))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(o).forEach(function(a){["__proto__","constructor","prototype"].includes(a)||(Array.isArray(r[a])&&Array.isArray(o[a])?r[a]=ai.options.mergeArrays?Array.from(new Set(r[a].concat(o[a]))):o[a]:Pv(r[a])&&Pv(o[a])?r[a]=ai(r[a],o[a]):r[a]=o[a])}),r},{})},Wy={mergeArrays:!0};ai.options=Wy;ai.withOptions=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ai.options=yf({mergeArrays:!0},t);var o=ai.apply(void 0,Aft([],Lft(n),!1));return ai.options=Wy,o};var Mft=By.default=ai;function Nft(){return{autoResize:!1,callbacks:{},initial:_ft(),nodeRadius:16,marker:Hy.Arrow(4),modifiers:{},positionInitializer:mf.Centered,simulation:{alphas:wft(),forces:xft()},zoom:{initial:1,min:.1,max:2}}}function Oft(t={}){return Mft.withOptions({mergeArrays:!1},Nft(),t)}function Pft(t,n){let r;return()=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(),n)}}function $ft({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",m=>Iy(m)).on("dblclick",m=>r==null?void 0:r(m)).on("dblclick.zoom",null).on("pointermove",m=>o==null?void 0:o(m)).on("pointerup",m=>a==null?void 0:a(m)).style("cursor","grab");return t&&g.call(p.transform,dh.translate(u,f).scale(h)),g.append("g")}function Dft({canvas:t,scale:n,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${n})`)}function Rft({config:t,onDragStart:n,onDragEnd:r}){var o,a;const u=Xat().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),_n(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),_n(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 zft({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}:Ift({nodes:h,links:u},r)}function Ift(t,n){const r=[...Fft(t,n),...qft(t,n)],o=r.flatMap(a=>[a.source,a.target]);return{nodes:[...new Set([...o,n])],links:[...new Set(r)]}}function Fft(t,n){return Uy(t,n,(r,o)=>r.target.id===o.id)}function qft(t,n){return Uy(t,n,(r,o)=>r.source.id===o.id)}function Uy(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 bf(t){var n;return(n=t.x)!=null?n:0}function wf(t){var n;return(n=t.y)!=null?n:0}function vh({source:t,target:n}){const r=new hn(bf(t),wf(t)),o=new hn(bf(n),wf(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 jy({center:t,node:n}){const r=new hn(bf(n),wf(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 Gy({config:t,source:n,target:r}){const{s:o,t:a,norm:u}=vh({config:t,source:n,target:r}),f=o.add(u.multiply(gi(t,n)-1)),h=a.subtract(u.multiply(t.marker.padding(r,t)));return{start:f,end:h}}function Hft(t){const{start:n,end:r}=Gy(t);return`M${n.x},${n.y}
|
|
31
|
+
L${r.x},${r.y}`}function Bft(t){const{start:n,end:r}=Gy(t),o=r.subtract(n).multiply(.5),a=n.add(o);return`translate(${a.x-8},${a.y-4})`}function Wft({config:t,source:n,target:r}){const{s:o,t:a,dist:u,norm:f,endNorm:h}=vh({config:t,source:n,target:r}),p=10,g=f.rotateByDegrees(-p).multiply(gi(t,n)-1).add(o),m=h.rotateByDegrees(p).multiply(gi(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,${m.x},${m.y}`}function Uft({center:t,config:n,node:r}){const{n:o,c:a}=jy({center:t,config:n,node:r}),u=gi(n,r),f=o.subtract(a),h=f.multiply(1/f.length()),p=40,g=h.rotateByDegrees(p).multiply(u-1).add(o),m=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,${m.x},${m.y}`}function jft({config:t,source:n,target:r}){const{t:o,dist:a,endNorm:u}=vh({config:t,source:n,target:r}),f=10,h=u.rotateByDegrees(f).multiply(.5*a).add(o);return`translate(${h.x},${h.y})`}function Gft({center:t,config:n,node:r}){const{n:o,c:a}=jy({center:t,config:n,node:r}),u=o.subtract(a),f=u.multiply(1/u.length()).multiply(3*gi(n,r)+8).add(o);return`translate(${f.x},${f.y})`}const $o={line:{labelTransform:Bft,path:Hft},arc:{labelTransform:jft,path:Wft},reflexive:{labelTransform:Gft,path:Uft}};function Vft(t){return t.append("g").classed("links",!0).selectAll("path")}function Kft({config:t,graph:n,selection:r,showLabels:o}){const a=r==null?void 0:r.data(n.links,u=>Sft(u)).join(u=>{var f,h,p,g;const m=u.append("g"),b=m.append("path").classed("link",!0).style("marker-end",S=>kft(S)).style("stroke",S=>S.color);(h=(f=t.modifiers).link)==null||h.call(f,b);const x=m.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),m});return a==null||a.select(".link__label").attr("opacity",u=>u.label&&o?1:0),a}function Xft(t){Yft(t),Jft(t)}function Yft({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?$o.reflexive.path({config:n,node:a.source,center:t}):Vy(r,a.source,a.target)?$o.arc.path({config:n,source:a.source,target:a.target}):$o.line.path({config:n,source:a.source,target:a.target}))}function Jft({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?$o.reflexive.labelTransform({config:t,node:a.source,center:n}):Vy(r,a.source,a.target)?$o.arc.labelTransform({config:t,source:a.source,target:a.target}):$o.line.labelTransform({config:t,source:a.source,target:a.target}))}function Vy(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 Zft(t){return t.append("defs").selectAll("marker")}function Qft({config:t,graph:n,selection:r}){return r==null?void 0:r.data(tht(n),o=>o).join(o=>{const a=o.append("marker").attr("id",u=>qy(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",eht(t.marker.path)),a})}function tht(t){return[...new Set(t.links.map(n=>n.color))]}function eht(t){if(t.length<1)return"M0,0";const[[n,r],...o]=t;return o.reduce((a,[u,f])=>`${a}L${u},${f}`,`M${n},${r}`)}function nht(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function rht({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,m,b,x;const S=p.append("g");n!==void 0&&S.call(n);const M=S.append("circle").classed("node",!0).attr("aria-label",E=>E.label?E.label.text:E.id).attr("r",E=>gi(t,E)).on("contextmenu",(E,C)=>{Iy(E),o(C)}).on("pointerdown",(E,C)=>oht(E,C,a!=null?a:o)).style("fill",E=>E.color);(m=(g=t.modifiers).node)==null||m.call(g,M);const A=S.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",E=>E.label?E.label.color:null).style("font-size",E=>E.label?E.label.fontSize:null).style("stroke","none").text(E=>E.label?E.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 iht=500;function oht(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>iht){n.lastInteractionTimestamp=a;return}n.lastInteractionTimestamp=void 0,r(n)}function sht(t){t==null||t.attr("transform",n=>{var r,o;return`translate(${(r=n.x)!=null?r:0},${(o=n.y)!=null?o:0})`})}function lht({center:t,config:n,graph:r,onTick:o}){var a,u;const f=pft(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",mft(()=>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",ift().radius(b=>g.radiusMultiplier*gi(n,b)));const m=n.simulation.forces.link;return m&&m.enabled&&f.force("link",sft(r.links).id(b=>b.id).distance(n.simulation.forces.link.length).strength(m.strength)),f.on("tick",()=>o()),(u=(a=n.modifiers).simulation)==null||u.call(a,f),f}function aht({canvasContainer:t,config:n,min:r,max:o,onZoom:a}){var u,f;const h=Fut().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 cht{constructor(n,r,o){if(Me(this,"nodeTypes"),Me(this,"_nodeTypeFilter"),Me(this,"_includeUnlinked",!0),Me(this,"_linkFilter",()=>!0),Me(this,"_showLinkLabels",!0),Me(this,"_showNodeLabels",!0),Me(this,"filteredGraph"),Me(this,"width",0),Me(this,"height",0),Me(this,"simulation"),Me(this,"canvas"),Me(this,"linkSelection"),Me(this,"nodeSelection"),Me(this,"markerSelection"),Me(this,"zoom"),Me(this,"drag"),Me(this,"xOffset",0),Me(this,"yOffset",0),Me(this,"scale"),Me(this,"focusedNode"),Me(this,"resizeObserver"),this.container=n,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(a=>{var u,f;const[h,p]=o.positionInitializer(a,this.effectiveWidth,this.effectiveHeight);a.x=(u=a.x)!=null?u:h,a.y=(f=a.y)!=null?f:p}),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!=null?a:this._includeUnlinked,this._showLinkLabels=h!=null?h:this._showLinkLabels,this._showNodeLabels=p!=null?p:this._showNodeLabels,this._nodeTypeFilter=u!=null?u:this._nodeTypeFilter,this._linkFilter=f!=null?f:this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(Pft(()=>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(Fy(h)?h:h({oldWidth:n,oldHeight:r,newWidth:o,newHeight:a}))}restart(n){var r;this.markerSelection=Qft({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Kft({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=rht({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=lht({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=aht({config:this.config,canvasContainer:()=>_n(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:n=>this.onZoom(n)}),this.canvas=$ft({applyZoom:this.scale!==1,container:_n(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Vft(this.canvas),this.nodeSelection=nht(this.canvas),this.markerSelection=Zft(this.canvas),this.drag=Rft({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(){sht(this.nodeSelection),Xft({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var n;(n=this.simulation)==null||n.stop(),_n(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;this.xOffset=n.transform.x,this.yOffset=n.transform.y,this.scale=n.transform.k,this.applyZoom(),(r=this.simulation)==null||r.restart()}applyZoom(){Dft({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=zft({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function $v({nodes:t,links:n}){return{nodes:t!=null?t:[],links:n!=null?n:[]}}function uht(t){return{...t}}function Ky(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const fht={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},hht={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},dht=["id","checked","onChange"],pht=["for"],ght=ut("div",{"flex-auto":""},null,-1),vht=oe({__name:"ViewModuleGraph",props:{graph:null},setup(t){const n=t,{graph:r}=Vx(n),o=Kt(),a=Kt(!1),u=Kt(),f=Kt();Ff(()=>{a.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),ul(()=>{g()}),Hf(()=>{var b;(b=f.value)==null||b.shutdown()}),Fe(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 cht(o.value,r.value,Oft({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:Hy.Arrow(2),modifiers:{node:m},positionInitializer:r.value.nodes.length>1?mf.Randomized:mf.Centered,zoom:{min:.5,max:2}})))}function m(b){const x=E=>E.button===0;let S=0,M=0,A=0;b.on("pointerdown",(E,C)=>{C.type!=="external"&&(!C.x||!C.y||!x(E)||(S=C.x,M=C.y,A=Date.now()))}).on("pointerup",(E,C)=>{if(C.type==="external"||!C.x||!C.y||!x(E)||Date.now()-A>500)return;const L=C.x-S,z=C.y-M;L**2+z**2<100&&p(C.id)})}return(b,x)=>{var C;const S=Jo,M=llt,A=Xst,E=Ji("tooltip");return ht(),Mt("div",fht,[ut("div",null,[ut("div",hht,[(ht(!0),Mt(ue,null,lr((C=f.value)==null?void 0:C.nodeTypes.sort(),L=>{var z;return ht(),Mt("div",{key:L,flex:"~ gap-1","items-center":"","select-none":""},[ut("input",{id:`type-${L}`,type:"checkbox",checked:(z=f.value)==null?void 0:z.nodeTypeFilter.includes(L),onChange:D=>h(L,D.target.checked)},null,40,dht),ut("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${L}`,"border-b-2":"",style:kn({"border-color":`var(--color-node-${L})`})},Zt(L)+" Modules",13,pht)])}),128)),ght,ut("div",null,[pn(Rt(S,{icon:"i-carbon-reset",onClick:g},null,512),[[E,"Reset",void 0,{bottom:!0}]])])])]),ut("div",{ref_key:"el",ref:o},null,512),Rt(A,{modelValue:a.value,"onUpdate:modelValue":x[1]||(x[1]=L=>a.value=L),direction:"right"},{default:Jt(()=>[u.value?(ht(),ce(c1,{key:0},{default:Jt(()=>[Rt(M,{id:u.value,onClose:x[0]||(x[0]=L=>a.value=!1)},null,8,["id"])]),_:1})):ye("",!0)]),_:1},8,["modelValue"])])}}});const mht={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},yht={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},bht={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},wht={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},xht={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},_ht={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},mh=oe({__name:"StatusIcon",props:{task:null},setup(t){return(n,r)=>{var a,u,f;const o=Ji("tooltip");return((a=t.task.result)==null?void 0:a.state)==="pass"?(ht(),Mt("div",mht)):J(pc)(t.task)?pn((ht(),Mt("div",yht,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((u=t.task.result)==null?void 0:u.state)==="fail"?(ht(),Mt("div",bht)):t.task.mode==="todo"?pn((ht(),Mt("div",wht,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.task.mode==="skip"||((f=t.task.result)==null?void 0:f.state)==="skip"?pn((ht(),Mt("div",xht,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ht(),Mt("div",_ht))}}});function Sht(t){const n=new Map,r=new Map,o=[];for(;;){let a=0;if(t.forEach((u,f)=>{var m;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}`,(m=r.get(g))==null||m.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 kht(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 Cht(t){const n=t.map(o=>kht(o)),r=Sht(n);return n.map(({raw:o,id:a})=>{var u;return Ky({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:(u=r.get(o))!=null?u:""},isFocused:!1,id:a,type:"external"})})}function Tht(t,n){return Ky({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 Eht(t,n){var h;if(!t)return $v({});const r=Cht(t.externalized),o=(h=t.inlined.map(p=>Tht(p,p===n)))!=null?h:[],a=[...r,...o],u=Object.fromEntries(a.map(p=>[p.id,p])),f=Object.entries(t.graph).flatMap(([p,g])=>g.map(m=>{const b=u[p],x=u[m];if(!(b===void 0||x===void 0))return uht({source:b,target:x,color:"var(--color-link)",label:!1})}).filter(m=>m!==void 0));return $v({nodes:a,links:f})}const Lht={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":""},Aht={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Mht={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Nht={class:"flex text-lg"},Oht={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Pht={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},$ht={key:0,"flex-1":""},Dht=oe({__name:"FileDetails",setup(t){const n=Kt({externalized:[],graph:{},inlined:[]}),r=Kt({nodes:[],links:[]}),o=Kt(!1),a=Kt(!1);pC(Ee,async(g,m)=>{g&&g.filepath!==(m==null?void 0:m.filepath)&&(n.value=await We.rpc.getModuleGraph(g.filepath),r.value=Eht(n.value,g.filepath))},{debounce:100,immediate:!0});const u=()=>{var m;const g=(m=Ee.value)==null?void 0:m.filepath;g&&fetch(`/__open-in-editor?file=${encodeURIComponent(g)}`)},f=g=>{g==="graph"&&(a.value=!0),or.value=g},h=St(()=>{var g,m;return(m=(g=W0.value)==null?void 0:g.reduce((b,{size:x})=>b+x,0))!=null?m:0});function p(g){o.value=g}return(g,m)=>{var L,z;const b=mh,x=Jo,S=vht,M=Kst,A=Wst,E=Dst,C=Ji("tooltip");return J(Ee)?(ht(),Mt("div",Lht,[ut("div",null,[ut("div",Aht,[Rt(b,{task:J(Ee)},null,8,["task"]),ut("div",Mht,Zt((L=J(Ee))==null?void 0:L.filepath),1),ut("div",Nht,[pn(Rt(x,{title:"Open in editor",icon:"i-carbon-launch",disabled:!((z=J(Ee))!=null&&z.filepath),onClick:u},null,8,["disabled"]),[[C,"Open in editor",void 0,{bottom:!0}]])])]),ut("div",Oht,[ut("button",{"tab-button":"",class:ge({"tab-button-active":J(or)==null}),onClick:m[0]||(m[0]=D=>f(null))}," Report ",2),ut("button",{"tab-button":"",class:ge({"tab-button-active":J(or)==="graph"}),onClick:m[1]||(m[1]=D=>f("graph"))}," Module Graph ",2),ut("button",{"tab-button":"",class:ge({"tab-button-active":J(or)==="editor"}),onClick:m[2]||(m[2]=D=>f("editor"))},Zt(o.value?"*\xA0":"")+"Code ",3),ut("button",{"tab-button":"",class:ge({"tab-button-active":J(or)==="console",op20:J(or)!=="console"&&J(h)===0}),onClick:m[3]||(m[3]=D=>f("console"))}," Console ("+Zt(J(h))+") ",3)])]),ut("div",Pht,[a.value?(ht(),Mt("div",$ht,[pn(Rt(S,{graph:r.value},null,8,["graph"]),[[Hm,J(or)==="graph"]])])):ye("",!0),J(or)==="editor"?(ht(),ce(M,{key:J(Ee).filepath,file:J(Ee),onDraft:p},null,8,["file"])):J(or)==="console"?(ht(),ce(A,{key:2,file:J(Ee)},null,8,["file"])):J(or)?ye("",!0):(ht(),ce(E,{key:3,file:J(Ee)},null,8,["file"]))])])):ye("",!0)}}}),Rht=["open"],zht=ut("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Iht=ut("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Fht=oe({__name:"DetailsPanel",props:{color:null},setup(t){const n=Kt(!0);return(r,o)=>(ht(),Mt("div",{open:n.value,class:"details-panel",onToggle:o[0]||(o[0]=a=>n.value=a.target.open)},[ut("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ge(t.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[zht,Kn(r.$slots,"summary",{open:n.value}),Iht],2),Kn(r.$slots,"default")],40,Rht))}});const qht={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},Hht=["text"],Bht={"text-sm":"",truncate:"","font-light":""},Wht={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},Uht=oe({__name:"TaskItem",props:{task:null},setup(t){const n=t,r=St(()=>{const{result:o}=n.task;return o&&Math.round(o.duration||0)});return(o,a)=>{var f,h;const u=mh;return t.task?(ht(),Mt("div",qht,[Rt(u,{task:t.task,"mr-2":""},null,8,["task"]),ut("div",{flex:"","items-end":"","gap-2":"",text:((h=(f=t.task)==null?void 0:f.result)==null?void 0:h.state)==="fail"?"red-500":""},[ut("span",Bht,Zt(t.task.name),1),typeof J(r)=="number"?(ht(),Mt("span",Wht,Zt(J(r)>0?J(r):"< 1")+"ms ",1)):ye("",!0)],8,Hht)])):ye("",!0)}}});function jht(t){return Object.hasOwnProperty.call(t,"tasks")}function Xy(t,n){return typeof t!="string"||typeof n!="string"?!1:t.toLowerCase().includes(n.toLowerCase())}const Ght={key:1},Vht={inheritAttrs:!1},Kht=oe({...Vht,__name:"TaskTree",props:{task:null,indent:{default:0},nested:{type:Boolean,default:!1},search:null,onItemClick:null},setup(t){return(n,r)=>{const o=Uht,a=Gi("TaskTree",!0);return ht(),Mt(ue,null,[!t.search||J(Xy)(t.task.name,t.search)?(ht(),ce(o,hi({key:0},n.$attrs,{task:t.task,style:{paddingLeft:`${t.indent*.75+1}rem`},onClick:r[0]||(r[0]=u=>t.onItemClick&&t.onItemClick(t.task))}),null,16,["task","style"])):ye("",!0),t.nested&&t.task.type==="suite"&&t.task.tasks.length?(ht(),Mt("div",Ght,[(ht(!0),Mt(ue,null,lr(t.task.tasks,u=>(ht(),ce(a,{key:u.id,task:u,nested:t.nested,indent:t.indent+1,search:t.search,"on-item-click":t.onItemClick},null,8,["task","nested","indent","search","on-item-click"]))),128))])):ye("",!0)],64)}}}),Xht={h:"full",flex:"~ col"},Yht={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Jht={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Zht=ut("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Qht=["op"],tdt={class:"scrolls","flex-auto":"","py-1":""},edt={"text-red5":""},ndt={"text-yellow5":""},rdt={"text-green5":""},idt={class:"text-purple5:50"},odt={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},sdt=ut("div",{op30:""}," No matched test ",-1),ldt={inheritAttrs:!1},Yy=oe({...ldt,__name:"TasksList",props:{tasks:null,indent:{default:0},nested:{type:Boolean,default:!1},groupByType:{type:Boolean,default:!1},onItemClick:null},emits:["run"],setup(t,{emit:n}){const r=t,o=Kt(""),a=Kt(),u=St(()=>o.value.trim()!==""),f=(E,C)=>{let L=!1;for(let z=0;z<E.length;z++){const D=E[z];if(Xy(D.name,C)){L=!0;break}if(jht(D)&&D.tasks&&(L=f(D.tasks,C),L))break}return L},h=St(()=>o.value.trim()?r.tasks.filter(E=>f([E],o.value)):r.tasks),p=St(()=>u.value?h.value.map(E=>Ia(E.id)).filter(Boolean):[]),g=St(()=>h.value.filter(E=>{var C;return((C=E.result)==null?void 0:C.state)==="fail"})),m=St(()=>h.value.filter(E=>{var C;return((C=E.result)==null?void 0:C.state)==="pass"})),b=St(()=>h.value.filter(E=>E.mode==="skip"||E.mode==="todo")),x=St(()=>h.value.filter(E=>!g.value.includes(E)&&!m.value.includes(E)&&!b.value.includes(E))),S=nC(x,250),M=E=>{var C;o.value="",E&&((C=a.value)==null||C.focus())},A=St(()=>o.value==="");return(E,C)=>{const L=Jo,z=Kht,D=Fht,G=Ji("tooltip");return ht(),Mt("div",Xht,[ut("div",null,[ut("div",Yht,[Kn(E.$slots,"header",{filteredTests:J(u)?J(p):void 0})]),ut("div",Jht,[Zht,pn(ut("input",{ref_key:"searchBox",ref:a,"onUpdate:modelValue":C[0]||(C[0]=j=>o.value=j),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:o.value.length?"100":"50",onKeydown:[C[1]||(C[1]=Vu(j=>M(!1),["esc"])),C[2]||(C[2]=Vu(j=>n("run",J(u)?J(p):void 0),["enter"]))]},null,40,Qht),[[L_,o.value]]),pn(Rt(L,{disabled:J(A),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:C[3]||(C[3]=j=>M(!0))},null,8,["disabled"]),[[G,"Clear search",void 0,{bottom:!0}]])])]),ut("div",tdt,[t.groupByType?(ht(),Mt(ue,{key:0},[J(g).length?(ht(),ce(D,{key:0},{summary:Jt(()=>[ut("div",edt," FAIL ("+Zt(J(g).length)+") ",1)]),default:Jt(()=>[(ht(!0),Mt(ue,null,lr(J(g),j=>(ht(),ce(z,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(J(Mr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ye("",!0),J(x).length||J(za)==="running"?(ht(),ce(D,{key:1},{summary:Jt(()=>[ut("div",ndt," RUNNING ("+Zt(J(S).length)+") ",1)]),default:Jt(()=>[(ht(!0),Mt(ue,null,lr(J(S),j=>(ht(),ce(z,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(J(Mr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ye("",!0),J(m).length?(ht(),ce(D,{key:2},{summary:Jt(()=>[ut("div",rdt," PASS ("+Zt(J(m).length)+") ",1)]),default:Jt(()=>[(ht(!0),Mt(ue,null,lr(J(m),j=>(ht(),ce(z,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(J(Mr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ye("",!0),J(b).length?(ht(),ce(D,{key:3},{summary:Jt(()=>[ut("div",idt," SKIP ("+Zt(J(b).length)+") ",1)]),default:Jt(()=>[(ht(!0),Mt(ue,null,lr(J(b),j=>(ht(),ce(z,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(J(Mr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ye("",!0)],64)):(ht(!0),Mt(ue,{key:1},lr(J(h),j=>(ht(),ce(z,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(J(Mr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),J(u)&&J(h).length===0?(ht(),Mt("div",odt,[sdt,ut("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:C[4]||(C[4]=j=>M(!0))}," Clear ",32)])):ye("",!0)])])}}}),adt={key:0,"h-full":""},cdt={"font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},udt={class:"flex text-lg"},fdt=oe({__name:"Suites",setup(t){const n=St(()=>{var a;return(a=Ee.value)==null?void 0:a.name.split(/\//g).pop()}),r=St(()=>{var a,u;return((a=Ee.value)==null?void 0:a.tasks)&&pc((u=Ee.value)==null?void 0:u.tasks)}),o=()=>Ee.value&&We.rpc.updateSnapshot(Ee.value);return(a,u)=>{const f=mh,h=Jo,p=Yy,g=Ji("tooltip");return J(Ee)?(ht(),Mt("div",adt,[Rt(p,{tasks:J(Ee).tasks,nested:!0},{header:Jt(()=>[Rt(f,{"mx-1":"",task:J(Ee)},null,8,["task"]),ut("span",cdt,Zt(J(n)),1),ut("div",udt,[J(r)?pn((ht(),ce(h,{key:0,icon:"i-carbon-result-old",onClick:u[0]||(u[0]=m=>o())},null,512)),[[g,`Update failed snapshot(s) of ${J(Ee).name}`,void 0,{bottom:!0}]]):ye("",!0),pn(Rt(h,{icon:"i-carbon-play",onClick:u[1]||(u[1]=m=>J(kT)())},null,512),[[g,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):ye("",!0)}}}),ja=St(()=>Tn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),Ga=St(()=>Tn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),yh=St(()=>Tn.value.filter(t=>t.mode==="skip"||t.mode==="todo"));St(()=>Tn.value.filter(t=>!ja.value.includes(t)&&!Ga.value.includes(t)&&!yh.value.includes(t)));St(()=>yh.value.filter(t=>t.mode==="skip"));const Dv=St(()=>Tn.value.filter(pc));St(()=>yh.value.filter(t=>t.mode==="todo"));const hdt=St(()=>za.value==="idle"),ml=St(()=>bh(Tn.value)),Jy=St(()=>ml.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),Zy=St(()=>ml.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),Qy=St(()=>ml.value.filter(t=>t.mode==="skip"||t.mode==="todo")),ddt=St(()=>Qy.value.filter(t=>t.mode==="skip")),pdt=St(()=>Qy.value.filter(t=>t.mode==="todo"));St(()=>Jy.value.length+Zy.value.length);const gdt=St(()=>{const t=bh(ml.value).reduce((n,r)=>{var o;return(o=r.result)!=null&&o.duration&&(n+=r.result.duration),n},0);return t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`});function vdt(t){return t=t||[],Array.isArray(t)?t:[t]}function Rv(t){return t.type==="test"||t.type==="benchmark"}function bh(t){return vdt(t).flatMap(n=>Rv(n)?[n]:n.tasks.flatMap(r=>Rv(r)?[r]:bh(r)))}const gr=t=>(gm("data-v-6679a536"),t=t(),vm(),t),mdt={"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:""},ydt=gr(()=>ut("div",{"i-carbon-document":""},null,-1)),bdt=gr(()=>ut("div",null,"Files",-1)),wdt={class:"number","data-testid":"num-files"},xdt=gr(()=>ut("div",{"i-carbon-checkmark":""},null,-1)),_dt=gr(()=>ut("div",null,"Pass",-1)),Sdt={class:"number"},kdt=gr(()=>ut("div",{"i-carbon-close":""},null,-1)),Cdt=gr(()=>ut("div",null," Fail ",-1)),Tdt={class:"number","text-red5":""},Edt=gr(()=>ut("div",{"i-carbon-compare":""},null,-1)),Ldt=gr(()=>ut("div",null," Snapshot Fail ",-1)),Adt={class:"number","text-red5":""},Mdt=gr(()=>ut("div",{"i-carbon-timer":""},null,-1)),Ndt=gr(()=>ut("div",null,"Time",-1)),Odt={class:"number","data-testid":"run-time"},Pdt=oe({__name:"TestFilesEntry",setup(t){return(n,r)=>(ht(),Mt("div",mdt,[ydt,bdt,ut("div",wdt,Zt(J(Tn).length),1),J(Ga).length?(ht(),Mt(ue,{key:0},[xdt,_dt,ut("div",Sdt,Zt(J(Ga).length),1)],64)):ye("",!0),J(ja).length?(ht(),Mt(ue,{key:1},[kdt,Cdt,ut("div",Tdt,Zt(J(ja).length),1)],64)):ye("",!0),J(Dv).length?(ht(),Mt(ue,{key:2},[Edt,Ldt,ut("div",Adt,Zt(J(Dv).length),1)],64)):ye("",!0),Mdt,Ndt,ut("div",Odt,Zt(J(gdt)),1)]))}});const $dt=Xo(Pdt,[["__scopeId","data-v-6679a536"]]),Ddt={"p-2":"","text-center":"",flex:""},Rdt={"text-4xl":"","min-w-2em":""},zdt={"text-md":""},Idt=oe({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(t){return(n,r)=>(ht(),Mt("div",Ddt,[ut("div",null,[ut("div",Rdt,[Kn(n.$slots,"body")]),ut("div",zdt,[Kn(n.$slots,"header")])])]))}}),Fdt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},qdt=oe({__name:"TestsEntry",setup(t){const n=St(()=>ml.value.length),r=St(()=>Zy.value.length),o=St(()=>Jy.value.length),a=St(()=>ddt.value.length),u=St(()=>pdt.value.length);return St(()=>J(n)-o.value-r.value),(f,h)=>{const p=Idt;return ht(),Mt("div",Fdt,[Rt(p,{"text-green5":"","data-testid":"pass-entry"},{header:Jt(()=>[fn(" Pass ")]),body:Jt(()=>[fn(Zt(J(r)),1)]),_:1}),Rt(p,{class:ge({"text-red5":J(o),op50:!J(o)}),"data-testid":"fail-entry"},{header:Jt(()=>[fn(" Fail ")]),body:Jt(()=>[fn(Zt(J(o)),1)]),_:1},8,["class"]),J(a)?(ht(),ce(p,{key:0,op50:"","data-testid":"skipped-entry"},{header:Jt(()=>[fn(" Skip ")]),body:Jt(()=>[fn(Zt(J(a)),1)]),_:1})):ye("",!0),J(u)?(ht(),ce(p,{key:1,op50:"","data-testid":"todo-entry"},{header:Jt(()=>[fn(" Todo ")]),body:Jt(()=>[fn(Zt(J(u)),1)]),_:1})):ye("",!0),Rt(p,{tail:!0,"data-testid":"total-entry"},{header:Jt(()=>[fn(" Total ")]),body:Jt(()=>[fn(Zt(J(n)),1)]),_:1})])}}}),Hdt={},Bdt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Wdt={"aria-labelledby":"tests",m:"y-4 x-2"};function Udt(t,n){const r=qdt,o=$dt;return ht(),Mt("div",Bdt,[ut("section",Wdt,[Rt(r)]),Rt(o)])}const jdt=Xo(Hdt,[["render",Udt]]),Gdt={},Vdt={h:"full",flex:"~ col"},Kdt=ut("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ut("div",{class:"i-carbon-dashboard"}),ut("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),Xdt={class:"scrolls","flex-auto":"","py-1":""};function Ydt(t,n){const r=jdt;return ht(),Mt("div",Vdt,[Kdt,ut("div",Xdt,[Rt(r)])])}const Jdt=Xo(Gdt,[["render",Ydt]]),Zdt="/__vitest__/favicon.svg",Va=Kt(),Ws=Kt(!0);function Qdt(){const t=Mr.value;if(t&&t.length>0){const n=Ia(t);n?(Va.value=n,Ws.value=!1):gC(()=>We.state.getFiles(),()=>{Va.value=Ia(t),Ws.value=!1})}return Ws}function zv(t){Ws.value=t,t&&(Va.value=void 0,Mr.value="")}const tpt=ut("img",{"w-6":"","h-6":"",src:Zdt,alt:"Vitest logo"},null,-1),ept=ut("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),npt={class:"flex text-lg"},rpt=oe({__name:"Navigation",setup(t){const n=St(()=>Tn.value&&pc(Tn.value)),r=()=>We.rpc.updateSnapshot();function o(u){Mr.value=u.id,Va.value=Ia(u.id),zv(!1)}const a=St(()=>mc.value?"light":"dark");return(u,f)=>{const h=Jo,p=Yy,g=Ji("tooltip");return ht(),ce(p,{border:"r base",tasks:J(Tn),"on-item-click":o,"group-by-type":!0,onRun:J(Zg)},{header:Jt(({filteredTests:m})=>[tpt,ept,ut("div",npt,[pn(Rt(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon-dashboard",onClick:f[0]||(f[0]=b=>J(zv)(!0))},null,512),[[Hm,!J(Ws)],[g,"Dashboard",void 0,{bottom:!0}]]),J(n)?pn((ht(),ce(h,{key:0,icon:"i-carbon-result-old",onClick:f[1]||(f[1]=b=>r())},null,512)),[[g,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):ye("",!0),pn(Rt(h,{disabled:(m==null?void 0:m.length)===0,icon:"i-carbon-play",onClick:b=>J(Zg)(m)},null,8,["disabled","onClick"]),[[g,m?m.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),pn(Rt(h,{icon:"dark:i-carbon-moon i-carbon-sun",onClick:f[2]||(f[2]=b=>J(Est)())},null,512),[[g,`Toggle to ${J(a)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks","onRun"])}}}),ipt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},opt=oe({__name:"ProgressBar",setup(t){const{width:n}=iT(),r=St(()=>Tn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":hdt.value?null:"in-progress"),o=St(()=>Tn.value.length),a=St(()=>Ga.value.length),u=St(()=>ja.value.length),f=St(()=>{const m=J(o);return m>0?n.value*a.value/m:0}),h=St(()=>{const m=J(o);return m>0?n.value*u.value/m:0}),p=St(()=>J(o)-u.value-a.value),g=St(()=>{const m=J(o);return m>0?n.value*p.value/m:0});return(m,b)=>(ht(),Mt("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:ge(J(r))},[ut("div",ipt,[ut("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ge(J(r)),style:kn(`width: ${J(h)}px;`)}," \xA0 ",6),ut("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ge(J(r)),style:kn(`left: ${J(h)}px; width: ${J(f)}px;`)}," \xA0 ",6),ut("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ge(J(r)),style:kn(`left: ${J(f)+J(h)}px; width: ${J(g)}px;`)}," \xA0 ",6)])],2))}});const spt=Xo(opt,[["__scopeId","data-v-f967c1fe"]]);var lpt=Object.defineProperty,apt=Object.defineProperties,cpt=Object.getOwnPropertyDescriptors,Ka=Object.getOwnPropertySymbols,tb=Object.prototype.hasOwnProperty,eb=Object.prototype.propertyIsEnumerable,Iv=(t,n,r)=>n in t?lpt(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,upt=(t,n)=>{for(var r in n||(n={}))tb.call(n,r)&&Iv(t,r,n[r]);if(Ka)for(var r of Ka(n))eb.call(n,r)&&Iv(t,r,n[r]);return t},fpt=(t,n)=>apt(t,cpt(n)),hpt=(t,n)=>{var r={};for(var o in t)tb.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ka)for(var o of Ka(t))n.indexOf(o)<0&&eb.call(t,o)&&(r[o]=t[o]);return r};const Fv={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])},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,m=p.max<100&&u<=100-(p.max+this.sumNextPanesSize(n+1));if(g||m){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(r=>r.index<t&&r.size>r.min)||{}},findNextExpandedPane(t){return this.panes.find(r=>r.index>t+1&&r.size>r.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(n=>{const r=n.classList.contains("splitpanes__pane"),o=n.classList.contains("splitpanes__splitter");if(!r&&!o){n.parentNode.removeChild(n),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.");return}})},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(t){var n=t,{target:r}=n,o=hpt(n,["target"]);const a=this.indexedPanes[r._.uid];Object.entries(o).forEach(([u,f])=>a[u]=f)},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:fpt(upt({},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,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(){100/this.panesCount;let t=100,n=[],r=[],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,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);t-=f-a.size,a.size=f}else if(!r.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min);t-=f-a.size,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((r,o)=>{r.ondblclick=t?a=>this.onSplitterDblClick(a,o):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 fl("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}};var dpt=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r};const ppt={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 gpt(t,n,r,o,a,u){return ht(),Mt("div",{class:"splitpanes__pane",onClick:n[0]||(n[0]=f=>u.onPaneClick(f,t._.uid)),style:kn(t.style)},[Kn(t.$slots,"default")],4)}var ua=dpt(ppt,[["render",gpt]]);const vpt={"h-screen":"","w-screen":"",overflow:"hidden"},mpt=oe({__name:"index",setup(t){const n=Qdt(),r=hr([33,67]),o=hr([33,67]),a=Dg(h=>{h.forEach((p,g)=>{r[g]=p.size})},0),u=Dg(h=>{h.forEach((p,g)=>{o[g]=p.size})},0),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=spt,m=rpt,b=Jdt,x=fdt,S=Dht,M=ET;return ht(),Mt(ue,null,[Rt(g),ut("div",vpt,[Rt(J(Fv),{class:"pt-4px",onResized:J(a),onReady:f},{default:Jt(()=>[Rt(J(ua),{size:r[0]},{default:Jt(()=>[Rt(m)]),_:1},8,["size"]),Rt(J(ua),{size:r[1]},{default:Jt(()=>[Rt(Gf,null,{default:Jt(()=>[J(n)?(ht(),ce(b,{key:"summary"})):(ht(),ce(J(Fv),{key:"detail",onResized:J(u)},{default:Jt(()=>[Rt(J(ua),{size:o[0]},{default:Jt(()=>[Rt(x)]),_:1},8,["size"]),Rt(J(ua),{size:o[1]},{default:Jt(()=>[Rt(S)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),Rt(M)],64)}}}),ypt=[{name:"index",path:"/",component:mpt,props:!0}];const bpt={tooltip:Kk};_0.options.instantMove=!0;_0.options.distance=10;const wpt=()=>zS({history:Q_("/__vitest__/"),routes:ypt}),xpt=[wpt],wh=Bm(D_);xpt.forEach(t=>{wh.use(t())});Object.entries(bpt).forEach(([t,n])=>{wh.directive(t,n)});wh.mount("#app");
|