@vitest/browser 0.29.7 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/client/__vitest__/assets/index-561b5dad.css +1 -0
- package/dist/client/__vitest__/assets/index-d949d382.js +43 -0
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/assets/{index-ca7a263d.js → index-b8629a79.js} +258 -51
- package/dist/client/index.html +1 -1
- package/dist/index.js +13 -11
- package/package.json +8 -13
- package/dist/client/__vitest__/assets/index-57d38fc4.css +0 -1
- package/dist/client/__vitest__/assets/index-d8f092a0.js +0 -37
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var fx=Object.defineProperty;var hx=(t,n,r)=>n in t?fx(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;var ei=(t,n,r)=>(hx(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 Af(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]}function kn(t){if(Ht(t)){const n={};for(let r=0;r<t.length;r++){const o=t[r],a=qe(o)?vx(o):kn(o);if(a)for(const u in a)n[u]=a[u]}return n}else{if(qe(t))return t;if(xe(t))return t}}const dx=/;(?![^(]*\))/g,px=/:([^]+)/,gx=/\/\*.*?\*\//gs;function vx(t){const n={};return t.replace(gx,"").split(dx).forEach(r=>{if(r){const o=r.split(px);o.length>1&&(n[o[0].trim()]=o[1].trim())}}),n}function ve(t){let n="";if(qe(t))n=t;else if(Ht(t))for(let r=0;r<t.length;r++){const o=ve(t[r]);o&&(n+=o+" ")}else if(xe(t))for(const r in t)t[r]&&(n+=r+" ");return n.trim()}const mx="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",yx=Af(mx);function Kv(t){return!!t||t===""}const Xt=t=>qe(t)?t:t==null?"":Ht(t)||xe(t)&&(t.toString===Jv||!Wt(t.toString))?JSON.stringify(t,Xv,2):String(t),Xv=(t,n)=>n&&n.__v_isRef?Xv(t,n.value):Mo(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((r,[o,a])=>(r[`${o} =>`]=a,r),{})}:Yv(n)?{[`Set(${n.size})`]:[...n.values()]}:xe(n)&&!Ht(n)&&!Qv(n)?String(n):n,we={},Ao=[],Xn=()=>{},bx=()=>!1,wx=/^on[^a-z]/,Ja=t=>wx.test(t),Mf=t=>t.startsWith("onUpdate:"),Ye=Object.assign,Nf=(t,n)=>{const r=t.indexOf(n);r>-1&&t.splice(r,1)},xx=Object.prototype.hasOwnProperty,ne=(t,n)=>xx.call(t,n),Ht=Array.isArray,Mo=t=>Qa(t)==="[object Map]",Yv=t=>Qa(t)==="[object Set]",Wt=t=>typeof t=="function",qe=t=>typeof t=="string",Pf=t=>typeof t=="symbol",xe=t=>t!==null&&typeof t=="object",Zv=t=>xe(t)&&Wt(t.then)&&Wt(t.catch),Jv=Object.prototype.toString,Qa=t=>Jv.call(t),_x=t=>Qa(t).slice(8,-1),Qv=t=>Qa(t)==="[object Object]",Of=t=>qe(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,va=Af(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),tc=t=>{const n=Object.create(null);return r=>n[r]||(n[r]=t(r))},Sx=/-(\w)/g,hr=tc(t=>t.replace(Sx,(n,r)=>r?r.toUpperCase():"")),kx=/\B([A-Z])/g,Ji=tc(t=>t.replace(kx,"-$1").toLowerCase()),ec=tc(t=>t.charAt(0).toUpperCase()+t.slice(1)),wu=tc(t=>t?`on${ec(t)}`:""),Xs=(t,n)=>!Object.is(t,n),ma=(t,n)=>{for(let r=0;r<t.length;r++)t[r](n)},Aa=(t,n,r)=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value:r})},Io=t=>{const n=parseFloat(t);return isNaN(n)?t:n};let Lp;const Cx=()=>Lp||(Lp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Mn;class Tx{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 Lx(t,n=Mn){n&&n.active&&n.effects.push(t)}function Ex(){return Mn}function Ax(t){Mn&&Mn.cleanups.push(t)}const $f=t=>{const n=new Set(t);return n.w=0,n.n=0,n},tm=t=>(t.w&vi)>0,em=t=>(t.n&vi)>0,Mx=({deps:t})=>{if(t.length)for(let n=0;n<t.length;n++)t[n].w|=vi},Nx=t=>{const{deps:n}=t;if(n.length){let r=0;for(let o=0;o<n.length;o++){const a=n[o];tm(a)&&!em(a)?a.delete(t):n[r++]=a,a.w&=~vi,a.n&=~vi}n.length=r}},qu=new WeakMap;let Fs=0,vi=1;const Hu=30;let Gn;const Ui=Symbol(""),Bu=Symbol("");class Df{constructor(n,r=null,o){this.fn=n,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,Lx(this,o)}run(){if(!this.active)return this.fn();let n=Gn,r=di;for(;n;){if(n===this)return;n=n.parent}try{return this.parent=Gn,Gn=this,di=!0,vi=1<<++Fs,Fs<=Hu?Mx(this):Ep(this),this.fn()}finally{Fs<=Hu&&Nx(this),vi=1<<--Fs,Gn=this.parent,di=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Gn===this?this.deferStop=!0:this.active&&(Ep(this),this.onStop&&this.onStop(),this.active=!1)}}function Ep(t){const{deps:n}=t;if(n.length){for(let r=0;r<n.length;r++)n[r].delete(t);n.length=0}}let di=!0;const nm=[];function Zo(){nm.push(di),di=!1}function Jo(){const t=nm.pop();di=t===void 0?!0:t}function On(t,n,r){if(di&&Gn){let o=qu.get(t);o||qu.set(t,o=new Map);let a=o.get(r);a||o.set(r,a=$f()),rm(a)}}function rm(t,n){let r=!1;Fs<=Hu?em(t)||(t.n|=vi,r=!tm(t)):r=!t.has(Gn),r&&(t.add(Gn),Gn.deps.push(t))}function Rr(t,n,r,o,a,u){const f=qu.get(t);if(!f)return;let h=[];if(n==="clear")h=[...f.values()];else if(r==="length"&&Ht(t)){const d=Io(o);f.forEach((g,v)=>{(v==="length"||v>=d)&&h.push(g)})}else switch(r!==void 0&&h.push(f.get(r)),n){case"add":Ht(t)?Of(r)&&h.push(f.get("length")):(h.push(f.get(Ui)),Mo(t)&&h.push(f.get(Bu)));break;case"delete":Ht(t)||(h.push(f.get(Ui)),Mo(t)&&h.push(f.get(Bu)));break;case"set":Mo(t)&&h.push(f.get(Ui));break}if(h.length===1)h[0]&&Wu(h[0]);else{const d=[];for(const g of h)g&&d.push(...g);Wu($f(d))}}function Wu(t,n){const r=Ht(t)?t:[...t];for(const o of r)o.computed&&Ap(o);for(const o of r)o.computed||Ap(o)}function Ap(t,n){(t!==Gn||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const Px=Af("__proto__,__v_isRef,__isVue"),im=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Pf)),Ox=Rf(),$x=Rf(!1,!0),Dx=Rf(!0),Mp=Rx();function Rx(){const t={};return["includes","indexOf","lastIndexOf"].forEach(n=>{t[n]=function(...r){const o=ue(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(ue)):a}}),["push","pop","shift","unshift","splice"].forEach(n=>{t[n]=function(...r){Zo();const o=ue(this)[n].apply(this,r);return Jo(),o}}),t}function Rf(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?Jx:cm:n?am:lm).get(o))return o;const f=Ht(o);if(!t&&f&&ne(Mp,a))return Reflect.get(Mp,a,u);const h=Reflect.get(o,a,u);return(Pf(a)?im.has(a):Px(a))||(t||On(o,"get",a),n)?h:Ee(h)?f&&Of(a)?h:h.value:xe(h)?t?um(h):Pn(h):h}}const zx=om(),Ix=om(!0);function om(t=!1){return function(r,o,a,u){let f=r[o];if(Fo(f)&&Ee(f)&&!Ee(a))return!1;if(!t&&(!Ma(a)&&!Fo(a)&&(f=ue(f),a=ue(a)),!Ht(r)&&Ee(f)&&!Ee(a)))return f.value=a,!0;const h=Ht(r)&&Of(o)?Number(o)<r.length:ne(r,o),d=Reflect.set(r,o,a,u);return r===ue(u)&&(h?Xs(a,f)&&Rr(r,"set",o,a):Rr(r,"add",o,a)),d}}function Fx(t,n){const r=ne(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&Rr(t,"delete",n,void 0),o}function qx(t,n){const r=Reflect.has(t,n);return(!Pf(n)||!im.has(n))&&On(t,"has",n),r}function Hx(t){return On(t,"iterate",Ht(t)?"length":Ui),Reflect.ownKeys(t)}const sm={get:Ox,set:zx,deleteProperty:Fx,has:qx,ownKeys:Hx},Bx={get:Dx,set(t,n){return!0},deleteProperty(t,n){return!0}},Wx=Ye({},sm,{get:$x,set:Ix}),zf=t=>t,nc=t=>Reflect.getPrototypeOf(t);function na(t,n,r=!1,o=!1){t=t.__v_raw;const a=ue(t),u=ue(n);r||(n!==u&&On(a,"get",n),On(a,"get",u));const{has:f}=nc(a),h=o?zf:r?Hf:Ys;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 ra(t,n=!1){const r=this.__v_raw,o=ue(r),a=ue(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 ia(t,n=!1){return t=t.__v_raw,!n&&On(ue(t),"iterate",Ui),Reflect.get(t,"size",t)}function Np(t){t=ue(t);const n=ue(this);return nc(n).has.call(n,t)||(n.add(t),Rr(n,"add",t,t)),this}function Pp(t,n){n=ue(n);const r=ue(this),{has:o,get:a}=nc(r);let u=o.call(r,t);u||(t=ue(t),u=o.call(r,t));const f=a.call(r,t);return r.set(t,n),u?Xs(n,f)&&Rr(r,"set",t,n):Rr(r,"add",t,n),this}function Op(t){const n=ue(this),{has:r,get:o}=nc(n);let a=r.call(n,t);a||(t=ue(t),a=r.call(n,t)),o&&o.call(n,t);const u=n.delete(t);return a&&Rr(n,"delete",t,void 0),u}function $p(){const t=ue(this),n=t.size!==0,r=t.clear();return n&&Rr(t,"clear",void 0,void 0),r}function oa(t,n){return function(o,a){const u=this,f=u.__v_raw,h=ue(f),d=n?zf:t?Hf:Ys;return!t&&On(h,"iterate",Ui),f.forEach((g,v)=>o.call(a,d(g),d(v),u))}}function sa(t,n,r){return function(...o){const a=this.__v_raw,u=ue(a),f=Mo(u),h=t==="entries"||t===Symbol.iterator&&f,d=t==="keys"&&f,g=a[t](...o),v=r?zf:n?Hf:Ys;return!n&&On(u,"iterate",d?Bu:Ui),{next(){const{value:b,done:w}=g.next();return w?{value:b,done:w}:{value:h?[v(b[0]),v(b[1])]:v(b),done:w}},[Symbol.iterator](){return this}}}}function ni(t){return function(...n){return t==="delete"?!1:this}}function Ux(){const t={get(u){return na(this,u)},get size(){return ia(this)},has:ra,add:Np,set:Pp,delete:Op,clear:$p,forEach:oa(!1,!1)},n={get(u){return na(this,u,!1,!0)},get size(){return ia(this)},has:ra,add:Np,set:Pp,delete:Op,clear:$p,forEach:oa(!1,!0)},r={get(u){return na(this,u,!0)},get size(){return ia(this,!0)},has(u){return ra.call(this,u,!0)},add:ni("add"),set:ni("set"),delete:ni("delete"),clear:ni("clear"),forEach:oa(!0,!1)},o={get(u){return na(this,u,!0,!0)},get size(){return ia(this,!0)},has(u){return ra.call(this,u,!0)},add:ni("add"),set:ni("set"),delete:ni("delete"),clear:ni("clear"),forEach:oa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=sa(u,!1,!1),r[u]=sa(u,!0,!1),n[u]=sa(u,!1,!0),o[u]=sa(u,!0,!0)}),[t,r,n,o]}const[jx,Gx,Vx,Kx]=Ux();function If(t,n){const r=n?t?Kx:Vx:t?Gx:jx;return(o,a,u)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?o:Reflect.get(ne(r,a)&&a in o?r:o,a,u)}const Xx={get:If(!1,!1)},Yx={get:If(!1,!0)},Zx={get:If(!0,!1)},lm=new WeakMap,am=new WeakMap,cm=new WeakMap,Jx=new WeakMap;function Qx(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function t1(t){return t.__v_skip||!Object.isExtensible(t)?0:Qx(_x(t))}function Pn(t){return Fo(t)?t:Ff(t,!1,sm,Xx,lm)}function e1(t){return Ff(t,!1,Wx,Yx,am)}function um(t){return Ff(t,!0,Bx,Zx,cm)}function Ff(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=t1(t);if(f===0)return t;const h=new Proxy(t,f===2?o:r);return a.set(t,h),h}function No(t){return Fo(t)?No(t.__v_raw):!!(t&&t.__v_isReactive)}function Fo(t){return!!(t&&t.__v_isReadonly)}function Ma(t){return!!(t&&t.__v_isShallow)}function fm(t){return No(t)||Fo(t)}function ue(t){const n=t&&t.__v_raw;return n?ue(n):t}function qf(t){return Aa(t,"__v_skip",!0),t}const Ys=t=>xe(t)?Pn(t):t,Hf=t=>xe(t)?um(t):t;function hm(t){di&&Gn&&(t=ue(t),rm(t.dep||(t.dep=$f())))}function dm(t,n){t=ue(t),t.dep&&Wu(t.dep)}function Ee(t){return!!(t&&t.__v_isRef===!0)}function Kt(t){return pm(t,!1)}function fl(t){return pm(t,!0)}function pm(t,n){return Ee(t)?t:new n1(t,n)}class n1{constructor(n,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?n:ue(n),this._value=r?n:Ys(n)}get value(){return hm(this),this._value}set value(n){const r=this.__v_isShallow||Ma(n)||Fo(n);n=r?n:ue(n),Xs(n,this._rawValue)&&(this._rawValue=n,this._value=r?n:Ys(n),dm(this))}}function j(t){return Ee(t)?t.value:t}const r1={get:(t,n,r)=>j(Reflect.get(t,n,r)),set:(t,n,r,o)=>{const a=t[n];return Ee(a)&&!Ee(r)?(a.value=r,!0):Reflect.set(t,n,r,o)}};function gm(t){return No(t)?t:new Proxy(t,r1)}function i1(t){const n=Ht(t)?new Array(t.length):{};for(const r in t)n[r]=Bf(t,r);return n}class o1{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 Bf(t,n,r){const o=t[n];return Ee(o)?o:new o1(t,n,r)}var vm;class s1{constructor(n,r,o,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[vm]=!1,this._dirty=!0,this.effect=new Df(n,()=>{this._dirty||(this._dirty=!0,dm(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const n=ue(this);return hm(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}vm="__v_isReadonly";function l1(t,n,r=!1){let o,a;const u=Wt(t);return u?(o=t,a=Xn):(o=t.get,a=t.set),new s1(o,a,u||!a,r)}function pi(t,n,r,o){let a;try{a=o?t(...o):t()}catch(u){hl(u,n,r)}return a}function Fn(t,n,r,o){if(Wt(t)){const u=pi(t,n,r,o);return u&&Zv(u)&&u.catch(f=>{hl(f,n,r)}),u}const a=[];for(let u=0;u<t.length;u++)a.push(Fn(t[u],n,r,o));return a}function hl(t,n,r,o=!0){const a=n?n.vnode:null;if(n){let u=n.parent;const f=n.proxy,h=r;for(;u;){const g=u.ec;if(g){for(let v=0;v<g.length;v++)if(g[v](t,f,h)===!1)return}u=u.parent}const d=n.appContext.config.errorHandler;if(d){pi(d,null,10,[t,f,h]);return}}a1(t,r,a,o)}function a1(t,n,r,o=!0){console.error(t)}let Zs=!1,Uu=!1;const en=[];let ar=0;const Po=[];let Ar=null,Fi=0;const mm=Promise.resolve();let Wf=null;function Qo(t){const n=Wf||mm;return t?n.then(this?t.bind(this):t):n}function c1(t){let n=ar+1,r=en.length;for(;n<r;){const o=n+r>>>1;Js(en[o])<t?n=o+1:r=o}return n}function Uf(t){(!en.length||!en.includes(t,Zs&&t.allowRecurse?ar+1:ar))&&(t.id==null?en.push(t):en.splice(c1(t.id),0,t),ym())}function ym(){!Zs&&!Uu&&(Uu=!0,Wf=mm.then(xm))}function u1(t){const n=en.indexOf(t);n>ar&&en.splice(n,1)}function bm(t){Ht(t)?Po.push(...t):(!Ar||!Ar.includes(t,t.allowRecurse?Fi+1:Fi))&&Po.push(t),ym()}function Dp(t,n=Zs?ar+1:0){for(;n<en.length;n++){const r=en[n];r&&r.pre&&(en.splice(n,1),n--,r())}}function wm(t){if(Po.length){const n=[...new Set(Po)];if(Po.length=0,Ar){Ar.push(...n);return}for(Ar=n,Ar.sort((r,o)=>Js(r)-Js(o)),Fi=0;Fi<Ar.length;Fi++)Ar[Fi]();Ar=null,Fi=0}}const Js=t=>t.id==null?1/0:t.id,f1=(t,n)=>{const r=Js(t)-Js(n);if(r===0){if(t.pre&&!n.pre)return-1;if(n.pre&&!t.pre)return 1}return r};function xm(t){Uu=!1,Zs=!0,en.sort(f1);const n=Xn;try{for(ar=0;ar<en.length;ar++){const r=en[ar];r&&r.active!==!1&&pi(r,null,14)}}finally{ar=0,en.length=0,wm(),Zs=!1,Wf=null,(en.length||Po.length)&&xm()}}function h1(t,n,...r){if(t.isUnmounted)return;const o=t.vnode.props||we;let a=r;const u=n.startsWith("update:"),f=u&&n.slice(7);if(f&&f in o){const v=`${f==="modelValue"?"model":f}Modifiers`,{number:b,trim:w}=o[v]||we;w&&(a=r.map(S=>qe(S)?S.trim():S)),b&&(a=r.map(Io))}let h,d=o[h=wu(n)]||o[h=wu(hr(n))];!d&&u&&(d=o[h=wu(Ji(n))]),d&&Fn(d,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,Fn(g,t,6,a)}}function _m(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 d=g=>{const v=_m(g,n,!0);v&&(h=!0,Ye(f,v))};!r&&n.mixins.length&&n.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!u&&!h?(xe(t)&&o.set(t,null),null):(Ht(u)?u.forEach(d=>f[d]=null):Ye(f,u),xe(t)&&o.set(t,f),f)}function rc(t,n){return!t||!Ja(n)?!1:(n=n.slice(2).replace(/Once$/,""),ne(t,n[0].toLowerCase()+n.slice(1))||ne(t,Ji(n))||ne(t,n))}let Xe=null,ic=null;function Na(t){const n=Xe;return Xe=t,ic=t&&t.type.__scopeId||null,n}function Sm(t){ic=t}function km(){ic=null}const d1=t=>Zt;function Zt(t,n=Xe,r){if(!n||t._n)return t;const o=(...a)=>{o._d&&Gp(-1);const u=Na(n);let f;try{f=t(...a)}finally{Na(u),o._d&&Gp(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function xu(t){const{type:n,vnode:r,proxy:o,withProxy:a,props:u,propsOptions:[f],slots:h,attrs:d,emit:g,render:v,renderCache:b,data:w,setupState:S,ctx:M,inheritAttrs:A}=t;let E,T;const L=Na(t);try{if(r.shapeFlag&4){const O=a||o;E=jn(v.call(O,O,b,u,S,w,M)),T=d}else{const O=n;E=jn(O.length>1?O(u,{attrs:d,slots:h,emit:g}):O(u,null)),T=n.props?d:g1(d)}}catch(O){Us.length=0,hl(O,t,1),E=zt(Cn)}let $=E;if(T&&A!==!1){const O=Object.keys(T),{shapeFlag:G}=$;O.length&&G&7&&(f&&O.some(Mf)&&(T=v1(T,f)),$=mi($,T))}return r.dirs&&($=mi($),$.dirs=$.dirs?$.dirs.concat(r.dirs):r.dirs),r.transition&&($.transition=r.transition),E=$,Na(L),E}function p1(t){let n;for(let r=0;r<t.length;r++){const o=t[r];if(tl(o)){if(o.type!==Cn||o.children==="v-if"){if(n)return;n=o}}else return}return n}const g1=t=>{let n;for(const r in t)(r==="class"||r==="style"||Ja(r))&&((n||(n={}))[r]=t[r]);return n},v1=(t,n)=>{const r={};for(const o in t)(!Mf(o)||!(o.slice(9)in n))&&(r[o]=t[o]);return r};function m1(t,n,r){const{props:o,children:a,component:u}=t,{props:f,children:h,patchFlag:d}=n,g=u.emitsOptions;if(n.dirs||n.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return o?Rp(o,f,g):!!f;if(d&8){const v=n.dynamicProps;for(let b=0;b<v.length;b++){const w=v[b];if(f[w]!==o[w]&&!rc(g,w))return!0}}}else return(a||h)&&(!h||!h.$stable)?!0:o===f?!1:o?f?Rp(o,f,g):!0:!!f;return!1}function Rp(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]&&!rc(r,u))return!0}return!1}function jf({vnode:t,parent:n},r){for(;n&&n.subTree===t;)(t=n.vnode).el=r,n=n.parent}const y1=t=>t.__isSuspense,b1={name:"Suspense",__isSuspense:!0,process(t,n,r,o,a,u,f,h,d,g){t==null?x1(n,r,o,a,u,f,h,d,g):_1(t,n,r,o,a,f,h,d,g)},hydrate:S1,create:Gf,normalize:k1},w1=b1;function Qs(t,n){const r=t.props&&t.props[n];Wt(r)&&r()}function x1(t,n,r,o,a,u,f,h,d){const{p:g,o:{createElement:v}}=d,b=v("div"),w=t.suspense=Gf(t,a,o,n,b,r,u,f,h,d);g(null,w.pendingBranch=t.ssContent,b,null,o,w,u,f),w.deps>0?(Qs(t,"onPending"),Qs(t,"onFallback"),g(null,t.ssFallback,n,r,o,null,u,f),Oo(w,t.ssFallback)):w.resolve()}function _1(t,n,r,o,a,u,f,h,{p:d,um:g,o:{createElement:v}}){const b=n.suspense=t.suspense;b.vnode=n,n.el=t.el;const w=n.ssContent,S=n.ssFallback,{activeBranch:M,pendingBranch:A,isInFallback:E,isHydrating:T}=b;if(A)b.pendingBranch=w,cr(w,A)?(d(A,w,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():E&&(d(M,S,r,o,a,null,u,f,h),Oo(b,S))):(b.pendingId++,T?(b.isHydrating=!1,b.activeBranch=A):g(A,a,b),b.deps=0,b.effects.length=0,b.hiddenContainer=v("div"),E?(d(null,w,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():(d(M,S,r,o,a,null,u,f,h),Oo(b,S))):M&&cr(w,M)?(d(M,w,r,o,a,b,u,f,h),b.resolve(!0)):(d(null,w,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0&&b.resolve()));else if(M&&cr(w,M))d(M,w,r,o,a,b,u,f,h),Oo(b,w);else if(Qs(n,"onPending"),b.pendingBranch=w,b.pendingId++,d(null,w,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0)b.resolve();else{const{timeout:L,pendingId:$}=b;L>0?setTimeout(()=>{b.pendingId===$&&b.fallback(S)},L):L===0&&b.fallback(S)}}function Gf(t,n,r,o,a,u,f,h,d,g,v=!1){const{p:b,m:w,um:S,n:M,o:{parentNode:A,remove:E}}=g,T=Io(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 T=="number"?T:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:v,isUnmounted:!1,effects:[],resolve($=!1){const{vnode:O,activeBranch:G,pendingBranch:V,pendingId:rt,effects:J,parentComponent:dt,container:gt}=L;if(L.isHydrating)L.isHydrating=!1;else if(!$){const U=G&&V.transition&&V.transition.mode==="out-in";U&&(G.transition.afterLeave=()=>{rt===L.pendingId&&w(V,gt,z,0)});let{anchor:z}=L;G&&(z=M(G),S(G,dt,L,!0)),U||w(V,gt,z,0)}Oo(L,V),L.pendingBranch=null,L.isInFallback=!1;let kt=L.parent,ut=!1;for(;kt;){if(kt.pendingBranch){kt.effects.push(...J),ut=!0;break}kt=kt.parent}ut||bm(J),L.effects=[],Qs(O,"onResolve")},fallback($){if(!L.pendingBranch)return;const{vnode:O,activeBranch:G,parentComponent:V,container:rt,isSVG:J}=L;Qs(O,"onFallback");const dt=M(G),gt=()=>{!L.isInFallback||(b(null,$,rt,dt,V,null,J,h,d),Oo(L,$))},kt=$.transition&&$.transition.mode==="out-in";kt&&(G.transition.afterLeave=gt),L.isInFallback=!0,S(G,V,null,!0),kt||gt()},move($,O,G){L.activeBranch&&w(L.activeBranch,$,O,G),L.container=$},next(){return L.activeBranch&&M(L.activeBranch)},registerDep($,O){const G=!!L.pendingBranch;G&&L.deps++;const V=$.vnode.el;$.asyncDep.catch(rt=>{hl(rt,$,0)}).then(rt=>{if($.isUnmounted||L.isUnmounted||L.pendingId!==$.suspenseId)return;$.asyncResolved=!0;const{vnode:J}=$;Ju($,rt,!1),V&&(J.el=V);const dt=!V&&$.subTree.el;O($,J,A(V||$.subTree.el),V?null:M($.subTree),L,f,d),dt&&E(dt),jf($,J.el),G&&--L.deps===0&&L.resolve()})},unmount($,O){L.isUnmounted=!0,L.activeBranch&&S(L.activeBranch,r,$,O),L.pendingBranch&&S(L.pendingBranch,r,$,O)}};return L}function S1(t,n,r,o,a,u,f,h,d){const g=n.suspense=Gf(n,o,r,t.parentNode,document.createElement("div"),null,a,u,f,h,!0),v=d(t,g.pendingBranch=n.ssContent,r,g,u,f);return g.deps===0&&g.resolve(),v}function k1(t){const{shapeFlag:n,children:r}=t,o=n&32;t.ssContent=zp(o?r.default:r),t.ssFallback=o?zp(r.fallback):zt(Cn)}function zp(t){let n;if(Wt(t)){const r=qo&&t._c;r&&(t._d=!1,at()),t=t(),r&&(t._d=!0,n=In,Bm())}return Ht(t)&&(t=p1(t)),t=jn(t),n&&!t.dynamicChildren&&(t.dynamicChildren=n.filter(r=>r!==t)),t}function C1(t,n){n&&n.pendingBranch?Ht(t)?n.effects.push(...t):n.effects.push(t):bm(t)}function Oo(t,n){t.activeBranch=n;const{vnode:r,parentComponent:o}=t,a=r.el=n.el;o&&o.subTree===r&&(o.vnode.el=a,jf(o,a))}function ya(t,n){if(We){let r=We.provides;const o=We.parent&&We.parent.provides;o===r&&(r=We.provides=Object.create(o)),r[t]=n}}function $r(t,n,r=!1){const o=We||Xe;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 Vf(t,n){return Kf(t,null,n)}const la={};function Fe(t,n,r){return Kf(t,n,r)}function Kf(t,n,{immediate:r,deep:o,flush:a,onTrack:u,onTrigger:f}=we){const h=We;let d,g=!1,v=!1;if(Ee(t)?(d=()=>t.value,g=Ma(t)):No(t)?(d=()=>t,o=!0):Ht(t)?(v=!0,g=t.some($=>No($)||Ma($)),d=()=>t.map($=>{if(Ee($))return $.value;if(No($))return Hi($);if(Wt($))return pi($,h,2)})):Wt(t)?n?d=()=>pi(t,h,2):d=()=>{if(!(h&&h.isUnmounted))return b&&b(),Fn(t,h,3,[w])}:d=Xn,n&&o){const $=d;d=()=>Hi($())}let b,w=$=>{b=T.onStop=()=>{pi($,h,4)}},S;if(el)if(w=Xn,n?r&&Fn(n,h,3,[d(),v?[]:void 0,w]):d(),a==="sync"){const $=m_();S=$.__watcherHandles||($.__watcherHandles=[])}else return Xn;let M=v?new Array(t.length).fill(la):la;const A=()=>{if(!!T.active)if(n){const $=T.run();(o||g||(v?$.some((O,G)=>Xs(O,M[G])):Xs($,M)))&&(b&&b(),Fn(n,h,3,[$,M===la?void 0:v&&M[0]===la?[]:M,w]),M=$)}else T.run()};A.allowRecurse=!!n;let E;a==="sync"?E=A:a==="post"?E=()=>xn(A,h&&h.suspense):(A.pre=!0,h&&(A.id=h.uid),E=()=>Uf(A));const T=new Df(d,E);n?r?A():M=T.run():a==="post"?xn(T.run.bind(T),h&&h.suspense):T.run();const L=()=>{T.stop(),h&&h.scope&&Nf(h.scope.effects,T)};return S&&S.push(L),L}function T1(t,n,r){const o=this.proxy,a=qe(t)?t.includes(".")?Cm(o,t):()=>o[t]:t.bind(o,o);let u;Wt(n)?u=n:(u=n.handler,r=n);const f=We;Ho(this);const h=Kf(a,u.bind(o),r);return f?Ho(f):ji(),h}function Cm(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 Hi(t,n){if(!xe(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),Ee(t))Hi(t.value,n);else if(Ht(t))for(let r=0;r<t.length;r++)Hi(t[r],n);else if(Yv(t)||Mo(t))t.forEach(r=>{Hi(r,n)});else if(Qv(t))for(const r in t)Hi(t[r],n);return t}function L1(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return dl(()=>{t.isMounted=!0}),Mm(()=>{t.isUnmounting=!0}),t}const zn=[Function,Array],E1={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:zn,onEnter:zn,onAfterEnter:zn,onEnterCancelled:zn,onBeforeLeave:zn,onLeave:zn,onAfterLeave:zn,onLeaveCancelled:zn,onBeforeAppear:zn,onAppear:zn,onAfterAppear:zn,onAppearCancelled:zn},setup(t,{slots:n}){const r=cc(),o=L1();let a;return()=>{const u=n.default&&Em(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=ue(t),{mode:d}=h;if(o.isLeaving)return _u(f);const g=Ip(f);if(!g)return _u(f);const v=ju(g,h,o,r);Gu(g,v);const b=r.subTree,w=b&&Ip(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(w&&w.type!==Cn&&(!cr(g,w)||S)){const A=ju(w,h,o,r);if(Gu(w,A),d==="out-in")return o.isLeaving=!0,A.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&r.update()},_u(f);d==="in-out"&&g.type!==Cn&&(A.delayLeave=(E,T,L)=>{const $=Lm(o,w);$[String(w.key)]=w,E._leaveCb=()=>{T(),E._leaveCb=void 0,delete v.delayedLeave},v.delayedLeave=L})}return f}}},Tm=E1;function Lm(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 ju(t,n,r,o){const{appear:a,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:d,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:b,onLeave:w,onAfterLeave:S,onLeaveCancelled:M,onBeforeAppear:A,onAppear:E,onAfterAppear:T,onAppearCancelled:L}=n,$=String(t.key),O=Lm(r,t),G=(J,dt)=>{J&&Fn(J,o,9,dt)},V=(J,dt)=>{const gt=dt[1];G(J,dt),Ht(J)?J.every(kt=>kt.length<=1)&>():J.length<=1&>()},rt={mode:u,persisted:f,beforeEnter(J){let dt=h;if(!r.isMounted)if(a)dt=A||h;else return;J._leaveCb&&J._leaveCb(!0);const gt=O[$];gt&&cr(t,gt)&>.el._leaveCb&>.el._leaveCb(),G(dt,[J])},enter(J){let dt=d,gt=g,kt=v;if(!r.isMounted)if(a)dt=E||d,gt=T||g,kt=L||v;else return;let ut=!1;const U=J._enterCb=z=>{ut||(ut=!0,z?G(kt,[J]):G(gt,[J]),rt.delayedLeave&&rt.delayedLeave(),J._enterCb=void 0)};dt?V(dt,[J,U]):U()},leave(J,dt){const gt=String(t.key);if(J._enterCb&&J._enterCb(!0),r.isUnmounting)return dt();G(b,[J]);let kt=!1;const ut=J._leaveCb=U=>{kt||(kt=!0,dt(),U?G(M,[J]):G(S,[J]),J._leaveCb=void 0,O[gt]===t&&delete O[gt])};O[gt]=t,w?V(w,[J,ut]):ut()},clone(J){return ju(J,n,r,o)}};return rt}function _u(t){if(oc(t))return t=mi(t),t.children=null,t}function Ip(t){return oc(t)?t.children?t.children[0]:void 0:t}function Gu(t,n){t.shapeFlag&6&&t.component?Gu(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 Em(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===ce?(f.patchFlag&128&&a++,o=o.concat(Em(f.children,n,h))):(n||f.type!==Cn)&&o.push(h!=null?mi(f,{key:h}):f)}if(a>1)for(let u=0;u<o.length;u++)o[u].patchFlag=-2;return o}function re(t){return Wt(t)?{setup:t,name:t.name}:t}const Bs=t=>!!t.type.__asyncLoader,oc=t=>t.type.__isKeepAlive;function A1(t,n){Am(t,"a",n)}function M1(t,n){Am(t,"da",n)}function Am(t,n,r=We){const o=t.__wdc||(t.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(sc(n,o,r),r){let a=r.parent;for(;a&&a.parent;)oc(a.parent.vnode)&&N1(o,n,r,a),a=a.parent}}function N1(t,n,r,o){const a=sc(n,t,o,!0);Xf(()=>{Nf(o[n],a)},r)}function sc(t,n,r=We,o=!1){if(r){const a=r[t]||(r[t]=[]),u=n.__weh||(n.__weh=(...f)=>{if(r.isUnmounted)return;Zo(),Ho(r);const h=Fn(n,r,t,f);return ji(),Jo(),h});return o?a.unshift(u):a.push(u),u}}const qr=t=>(n,r=We)=>(!el||t==="sp")&&sc(t,(...o)=>n(...o),r),P1=qr("bm"),dl=qr("m"),O1=qr("bu"),$1=qr("u"),Mm=qr("bum"),Xf=qr("um"),D1=qr("sp"),R1=qr("rtg"),z1=qr("rtc");function I1(t,n=We){sc("ec",t,n)}function pn(t,n){const r=Xe;if(r===null)return t;const o=uc(r)||r.proxy,a=t.dirs||(t.dirs=[]);for(let u=0;u<n.length;u++){let[f,h,d,g=we]=n[u];f&&(Wt(f)&&(f={mounted:f,updated:f}),f.deep&&Hi(h),a.push({dir:f,instance:o,value:h,oldValue:void 0,arg:d,modifiers:g}))}return t}function Oi(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 d=h.dir[o];d&&(Zo(),Fn(d,r,8,[t.el,h,t,n]),Jo())}}const Nm="components",F1="directives";function Ki(t,n){return Pm(Nm,t,!0,n)||t}const q1=Symbol();function Qi(t){return Pm(F1,t)}function Pm(t,n,r=!0,o=!1){const a=Xe||We;if(a){const u=a.type;if(t===Nm){const h=h_(u,!1);if(h&&(h===n||h===hr(n)||h===ec(hr(n))))return u}const f=Fp(a[t]||u[t],n)||Fp(a.appContext[t],n);return!f&&o?u:f}}function Fp(t,n){return t&&(t[n]||t[hr(n)]||t[ec(hr(n))])}function Vn(t,n,r,o){let a;const u=r&&r[o];if(Ht(t)||qe(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,d=f.length;h<d;h++){const g=f[h];a[h]=n(t[g],g,h,u&&u[h])}}else a=[];return r&&(r[o]=a),a}function Yn(t,n,r={},o,a){if(Xe.isCE||Xe.parent&&Bs(Xe.parent)&&Xe.parent.isCE)return n!=="default"&&(r.name=n),zt("slot",r,o&&o());let u=t[n];u&&u._c&&(u._d=!1),at();const f=u&&Om(u(r)),h=Qt(ce,{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 Om(t){return t.some(n=>tl(n)?!(n.type===Cn||n.type===ce&&!Om(n.children)):!0)?t:null}const Vu=t=>t?jm(t)?uc(t)||t.proxy:Vu(t.parent):null,Ws=Ye(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=>Vu(t.parent),$root:t=>Vu(t.root),$emit:t=>t.emit,$options:t=>Yf(t),$forceUpdate:t=>t.f||(t.f=()=>Uf(t.update)),$nextTick:t=>t.n||(t.n=Qo.bind(t.proxy)),$watch:t=>T1.bind(t)}),Su=(t,n)=>t!==we&&!t.__isScriptSetup&&ne(t,n),H1={get({_:t},n){const{ctx:r,setupState:o,data:a,props:u,accessCache:f,type:h,appContext:d}=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(Su(o,n))return f[n]=1,o[n];if(a!==we&&ne(a,n))return f[n]=2,a[n];if((g=t.propsOptions[0])&&ne(g,n))return f[n]=3,u[n];if(r!==we&&ne(r,n))return f[n]=4,r[n];Ku&&(f[n]=0)}}const v=Ws[n];let b,w;if(v)return n==="$attrs"&&On(t,"get",n),v(t);if((b=h.__cssModules)&&(b=b[n]))return b;if(r!==we&&ne(r,n))return f[n]=4,r[n];if(w=d.config.globalProperties,ne(w,n))return w[n]},set({_:t},n,r){const{data:o,setupState:a,ctx:u}=t;return Su(a,n)?(a[n]=r,!0):o!==we&&ne(o,n)?(o[n]=r,!0):ne(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!==we&&ne(t,f)||Su(n,f)||(h=u[0])&&ne(h,f)||ne(o,f)||ne(Ws,f)||ne(a.config.globalProperties,f)},defineProperty(t,n,r){return r.get!=null?t._.accessCache[n]=0:ne(r,"value")&&this.set(t,n,r.value,null),Reflect.defineProperty(t,n,r)}};let Ku=!0;function B1(t){const n=Yf(t),r=t.proxy,o=t.ctx;Ku=!1,n.beforeCreate&&qp(n.beforeCreate,t,"bc");const{data:a,computed:u,methods:f,watch:h,provide:d,inject:g,created:v,beforeMount:b,mounted:w,beforeUpdate:S,updated:M,activated:A,deactivated:E,beforeDestroy:T,beforeUnmount:L,destroyed:$,unmounted:O,render:G,renderTracked:V,renderTriggered:rt,errorCaptured:J,serverPrefetch:dt,expose:gt,inheritAttrs:kt,components:ut,directives:U,filters:z}=n;if(g&&W1(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=Pn(W))}if(Ku=!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):Xn,At=!Wt(et)&&Wt(et.set)?et.set.bind(r):Xn,qt=_t({get:wt,set:At});Object.defineProperty(o,W,{enumerable:!0,configurable:!0,get:()=>qt.value,set:Bt=>qt.value=Bt})}if(h)for(const W in h)$m(h[W],o,r,W);if(d){const W=Wt(d)?d.call(r):d;Reflect.ownKeys(W).forEach(et=>{ya(et,W[et])})}v&&qp(v,t,"c");function H(W,et){Ht(et)?et.forEach(wt=>W(wt.bind(r))):et&&W(et.bind(r))}if(H(P1,b),H(dl,w),H(O1,S),H($1,M),H(A1,A),H(M1,E),H(I1,J),H(z1,V),H(R1,rt),H(Mm,L),H(Xf,O),H(D1,dt),Ht(gt))if(gt.length){const W=t.exposed||(t.exposed={});gt.forEach(et=>{Object.defineProperty(W,et,{get:()=>r[et],set:wt=>r[et]=wt})})}else t.exposed||(t.exposed={});G&&t.render===Xn&&(t.render=G),kt!=null&&(t.inheritAttrs=kt),ut&&(t.components=ut),U&&(t.directives=U)}function W1(t,n,r=Xn,o=!1){Ht(t)&&(t=Xu(t));for(const a in t){const u=t[a];let f;xe(u)?"default"in u?f=$r(u.from||a,u.default,!0):f=$r(u.from||a):f=$r(u),Ee(f)&&o?Object.defineProperty(n,a,{enumerable:!0,configurable:!0,get:()=>f.value,set:h=>f.value=h}):n[a]=f}}function qp(t,n,r){Fn(Ht(t)?t.map(o=>o.bind(n.proxy)):t.bind(n.proxy),n,r)}function $m(t,n,r,o){const a=o.includes(".")?Cm(r,o):()=>r[o];if(qe(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=>$m(u,n,r,o));else{const u=Wt(t.handler)?t.handler.bind(r):n[t.handler];Wt(u)&&Fe(a,u,t)}}function Yf(t){const n=t.type,{mixins:r,extends:o}=n,{mixins:a,optionsCache:u,config:{optionMergeStrategies:f}}=t.appContext,h=u.get(n);let d;return h?d=h:!a.length&&!r&&!o?d=n:(d={},a.length&&a.forEach(g=>Pa(d,g,f,!0)),Pa(d,n,f)),xe(n)&&u.set(n,d),d}function Pa(t,n,r,o=!1){const{mixins:a,extends:u}=n;u&&Pa(t,u,r,!0),a&&a.forEach(f=>Pa(t,f,r,!0));for(const f in n)if(!(o&&f==="expose")){const h=U1[f]||r&&r[f];t[f]=h?h(t[f],n[f]):n[f]}return t}const U1={data:Hp,props:zi,emits:zi,methods:zi,computed:zi,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:zi,directives:zi,watch:G1,provide:Hp,inject:j1};function Hp(t,n){return n?t?function(){return Ye(Wt(t)?t.call(this,this):t,Wt(n)?n.call(this,this):n)}:n:t}function j1(t,n){return zi(Xu(t),Xu(n))}function Xu(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 zi(t,n){return t?Ye(Ye(Object.create(null),t),n):n}function G1(t,n){if(!t)return n;if(!n)return t;const r=Ye(Object.create(null),t);for(const o in n)r[o]=un(t[o],n[o]);return r}function V1(t,n,r,o=!1){const a={},u={};Aa(u,ac,1),t.propsDefaults=Object.create(null),Dm(t,n,a,u);for(const f in t.propsOptions[0])f in a||(a[f]=void 0);r?t.props=o?a:e1(a):t.type.props?t.props=a:t.props=u,t.attrs=u}function K1(t,n,r,o){const{props:a,attrs:u,vnode:{patchFlag:f}}=t,h=ue(a),[d]=t.propsOptions;let g=!1;if((o||f>0)&&!(f&16)){if(f&8){const v=t.vnode.dynamicProps;for(let b=0;b<v.length;b++){let w=v[b];if(rc(t.emitsOptions,w))continue;const S=n[w];if(d)if(ne(u,w))S!==u[w]&&(u[w]=S,g=!0);else{const M=hr(w);a[M]=Yu(d,h,M,S,t,!1)}else S!==u[w]&&(u[w]=S,g=!0)}}}else{Dm(t,n,a,u)&&(g=!0);let v;for(const b in h)(!n||!ne(n,b)&&((v=Ji(b))===b||!ne(n,v)))&&(d?r&&(r[b]!==void 0||r[v]!==void 0)&&(a[b]=Yu(d,h,b,void 0,t,!0)):delete a[b]);if(u!==h)for(const b in u)(!n||!ne(n,b)&&!0)&&(delete u[b],g=!0)}g&&Rr(t,"set","$attrs")}function Dm(t,n,r,o){const[a,u]=t.propsOptions;let f=!1,h;if(n)for(let d in n){if(va(d))continue;const g=n[d];let v;a&&ne(a,v=hr(d))?!u||!u.includes(v)?r[v]=g:(h||(h={}))[v]=g:rc(t.emitsOptions,d)||(!(d in o)||g!==o[d])&&(o[d]=g,f=!0)}if(u){const d=ue(r),g=h||we;for(let v=0;v<u.length;v++){const b=u[v];r[b]=Yu(a,d,b,g[b],t,!ne(g,b))}}return f}function Yu(t,n,r,o,a,u){const f=t[r];if(f!=null){const h=ne(f,"default");if(h&&o===void 0){const d=f.default;if(f.type!==Function&&Wt(d)){const{propsDefaults:g}=a;r in g?o=g[r]:(Ho(a),o=g[r]=d.call(null,n),ji())}else o=d}f[0]&&(u&&!h?o=!1:f[1]&&(o===""||o===Ji(r))&&(o=!0))}return o}function Rm(t,n,r=!1){const o=n.propsCache,a=o.get(t);if(a)return a;const u=t.props,f={},h=[];let d=!1;if(!Wt(t)){const v=b=>{d=!0;const[w,S]=Rm(b,n,!0);Ye(f,w),S&&h.push(...S)};!r&&n.mixins.length&&n.mixins.forEach(v),t.extends&&v(t.extends),t.mixins&&t.mixins.forEach(v)}if(!u&&!d)return xe(t)&&o.set(t,Ao),Ao;if(Ht(u))for(let v=0;v<u.length;v++){const b=hr(u[v]);Bp(b)&&(f[b]=we)}else if(u)for(const v in u){const b=hr(v);if(Bp(b)){const w=u[v],S=f[b]=Ht(w)||Wt(w)?{type:w}:Object.assign({},w);if(S){const M=jp(Boolean,S.type),A=jp(String,S.type);S[0]=M>-1,S[1]=A<0||M<A,(M>-1||ne(S,"default"))&&h.push(b)}}}const g=[f,h];return xe(t)&&o.set(t,g),g}function Bp(t){return t[0]!=="$"}function Wp(t){const n=t&&t.toString().match(/^\s*function (\w+)/);return n?n[1]:t===null?"null":""}function Up(t,n){return Wp(t)===Wp(n)}function jp(t,n){return Ht(n)?n.findIndex(r=>Up(r,t)):Wt(n)&&Up(n,t)?0:-1}const zm=t=>t[0]==="_"||t==="$stable",Zf=t=>Ht(t)?t.map(jn):[jn(t)],X1=(t,n,r)=>{if(n._n)return n;const o=Zt((...a)=>Zf(n(...a)),r);return o._c=!1,o},Im=(t,n,r)=>{const o=t._ctx;for(const a in t){if(zm(a))continue;const u=t[a];if(Wt(u))n[a]=X1(a,u,o);else if(u!=null){const f=Zf(u);n[a]=()=>f}}},Fm=(t,n)=>{const r=Zf(n);t.slots.default=()=>r},Y1=(t,n)=>{if(t.vnode.shapeFlag&32){const r=n._;r?(t.slots=ue(n),Aa(n,"_",r)):Im(n,t.slots={})}else t.slots={},n&&Fm(t,n);Aa(t.slots,ac,1)},Z1=(t,n,r)=>{const{vnode:o,slots:a}=t;let u=!0,f=we;if(o.shapeFlag&32){const h=n._;h?r&&h===1?u=!1:(Ye(a,n),!r&&h===1&&delete a._):(u=!n.$stable,Im(n,a)),f=n}else n&&(Fm(t,n),f={default:1});if(u)for(const h in a)!zm(h)&&!(h in f)&&delete a[h]};function qm(){return{app:null,config:{isNativeTag:bx,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 J1=0;function Q1(t,n){return function(o,a=null){Wt(o)||(o=Object.assign({},o)),a!=null&&!xe(a)&&(a=null);const u=qm(),f=new Set;let h=!1;const d=u.app={_uid:J1++,_component:o,_props:a,_container:null,_context:u,_instance:null,version:y_,get config(){return u.config},set config(g){},use(g,...v){return f.has(g)||(g&&Wt(g.install)?(f.add(g),g.install(d,...v)):Wt(g)&&(f.add(g),g(d,...v))),d},mixin(g){return u.mixins.includes(g)||u.mixins.push(g),d},component(g,v){return v?(u.components[g]=v,d):u.components[g]},directive(g,v){return v?(u.directives[g]=v,d):u.directives[g]},mount(g,v,b){if(!h){const w=zt(o,a);return w.appContext=u,v&&n?n(w,g):t(w,g,b),h=!0,d._container=g,g.__vue_app__=d,uc(w.component)||w.component.proxy}},unmount(){h&&(t(null,d._container),delete d._container.__vue_app__)},provide(g,v){return u.provides[g]=v,d}};return d}}function Zu(t,n,r,o,a=!1){if(Ht(t)){t.forEach((w,S)=>Zu(w,n&&(Ht(n)?n[S]:n),r,o,a));return}if(Bs(o)&&!a)return;const u=o.shapeFlag&4?uc(o.component)||o.component.proxy:o.el,f=a?null:u,{i:h,r:d}=t,g=n&&n.r,v=h.refs===we?h.refs={}:h.refs,b=h.setupState;if(g!=null&&g!==d&&(qe(g)?(v[g]=null,ne(b,g)&&(b[g]=null)):Ee(g)&&(g.value=null)),Wt(d))pi(d,h,12,[f,v]);else{const w=qe(d),S=Ee(d);if(w||S){const M=()=>{if(t.f){const A=w?ne(b,d)?b[d]:v[d]:d.value;a?Ht(A)&&Nf(A,u):Ht(A)?A.includes(u)||A.push(u):w?(v[d]=[u],ne(b,d)&&(b[d]=v[d])):(d.value=[u],t.k&&(v[t.k]=d.value))}else w?(v[d]=f,ne(b,d)&&(b[d]=f)):S&&(d.value=f,t.k&&(v[t.k]=f))};f?(M.id=-1,xn(M,r)):M()}}}const xn=C1;function t_(t){return e_(t)}function e_(t,n){const r=Cx();r.__VUE__=!0;const{insert:o,remove:a,patchProp:u,createElement:f,createText:h,createComment:d,setText:g,setElementText:v,parentNode:b,nextSibling:w,setScopeId:S=Xn,insertStaticContent:M}=t,A=(P,F,Z,nt=null,ot=null,pt=null,lt=!1,vt=null,xt=!!F.dynamicChildren)=>{if(P===F)return;P&&!cr(P,F)&&(nt=K(P),Bt(P,ot,pt,!0),P=null),F.patchFlag===-2&&(xt=!1,F.dynamicChildren=null);const{type:ct,ref:$t,shapeFlag:Nt}=F;switch(ct){case lc:E(P,F,Z,nt);break;case Cn:T(P,F,Z,nt);break;case ku:P==null&&L(F,Z,nt,lt);break;case ce:ut(P,F,Z,nt,ot,pt,lt,vt,xt);break;default:Nt&1?G(P,F,Z,nt,ot,pt,lt,vt,xt):Nt&6?U(P,F,Z,nt,ot,pt,lt,vt,xt):(Nt&64||Nt&128)&&ct.process(P,F,Z,nt,ot,pt,lt,vt,xt,Ct)}$t!=null&&ot&&Zu($t,P&&P.ref,pt,F||P,!F)},E=(P,F,Z,nt)=>{if(P==null)o(F.el=h(F.children),Z,nt);else{const ot=F.el=P.el;F.children!==P.children&&g(ot,F.children)}},T=(P,F,Z,nt)=>{P==null?o(F.el=d(F.children||""),Z,nt):F.el=P.el},L=(P,F,Z,nt)=>{[P.el,P.anchor]=M(P.children,F,Z,nt,P.el,P.anchor)},$=({el:P,anchor:F},Z,nt)=>{let ot;for(;P&&P!==F;)ot=w(P),o(P,Z,nt),P=ot;o(F,Z,nt)},O=({el:P,anchor:F})=>{let Z;for(;P&&P!==F;)Z=w(P),a(P),P=Z;a(F)},G=(P,F,Z,nt,ot,pt,lt,vt,xt)=>{lt=lt||F.type==="svg",P==null?V(F,Z,nt,ot,pt,lt,vt,xt):dt(P,F,ot,pt,lt,vt,xt)},V=(P,F,Z,nt,ot,pt,lt,vt)=>{let xt,ct;const{type:$t,props:Nt,shapeFlag:Ot,transition:Rt,dirs:jt}=P;if(xt=P.el=f(P.type,pt,Nt&&Nt.is,Nt),Ot&8?v(xt,P.children):Ot&16&&J(P.children,xt,null,nt,ot,pt&&$t!=="foreignObject",lt,vt),jt&&Oi(P,null,nt,"created"),Nt){for(const Jt in Nt)Jt!=="value"&&!va(Jt)&&u(xt,Jt,null,Nt[Jt],pt,P.children,nt,ot,tt);"value"in Nt&&u(xt,"value",null,Nt.value),(ct=Nt.onVnodeBeforeMount)&&sr(ct,nt,P)}rt(xt,P,P.scopeId,lt,nt),jt&&Oi(P,null,nt,"beforeMount");const te=(!ot||ot&&!ot.pendingBranch)&&Rt&&!Rt.persisted;te&&Rt.beforeEnter(xt),o(xt,F,Z),((ct=Nt&&Nt.onVnodeMounted)||te||jt)&&xn(()=>{ct&&sr(ct,nt,P),te&&Rt.enter(xt),jt&&Oi(P,null,nt,"mounted")},ot)},rt=(P,F,Z,nt,ot)=>{if(Z&&S(P,Z),nt)for(let pt=0;pt<nt.length;pt++)S(P,nt[pt]);if(ot){let pt=ot.subTree;if(F===pt){const lt=ot.vnode;rt(P,lt,lt.scopeId,lt.slotScopeIds,ot.parent)}}},J=(P,F,Z,nt,ot,pt,lt,vt,xt=0)=>{for(let ct=xt;ct<P.length;ct++){const $t=P[ct]=vt?li(P[ct]):jn(P[ct]);A(null,$t,F,Z,nt,ot,pt,lt,vt)}},dt=(P,F,Z,nt,ot,pt,lt)=>{const vt=F.el=P.el;let{patchFlag:xt,dynamicChildren:ct,dirs:$t}=F;xt|=P.patchFlag&16;const Nt=P.props||we,Ot=F.props||we;let Rt;Z&&$i(Z,!1),(Rt=Ot.onVnodeBeforeUpdate)&&sr(Rt,Z,F,P),$t&&Oi(F,P,Z,"beforeUpdate"),Z&&$i(Z,!0);const jt=ot&&F.type!=="foreignObject";if(ct?gt(P.dynamicChildren,ct,vt,Z,nt,jt,pt):lt||et(P,F,vt,null,Z,nt,jt,pt,!1),xt>0){if(xt&16)kt(vt,F,Nt,Ot,Z,nt,ot);else if(xt&2&&Nt.class!==Ot.class&&u(vt,"class",null,Ot.class,ot),xt&4&&u(vt,"style",Nt.style,Ot.style,ot),xt&8){const te=F.dynamicProps;for(let Jt=0;Jt<te.length;Jt++){const ae=te[Jt],Yt=Nt[ae],mn=Ot[ae];(mn!==Yt||ae==="value")&&u(vt,ae,Yt,mn,ot,P.children,Z,nt,tt)}}xt&1&&P.children!==F.children&&v(vt,F.children)}else!lt&&ct==null&&kt(vt,F,Nt,Ot,Z,nt,ot);((Rt=Ot.onVnodeUpdated)||$t)&&xn(()=>{Rt&&sr(Rt,Z,F,P),$t&&Oi(F,P,Z,"updated")},nt)},gt=(P,F,Z,nt,ot,pt,lt)=>{for(let vt=0;vt<F.length;vt++){const xt=P[vt],ct=F[vt],$t=xt.el&&(xt.type===ce||!cr(xt,ct)||xt.shapeFlag&70)?b(xt.el):Z;A(xt,ct,$t,null,nt,ot,pt,lt,!0)}},kt=(P,F,Z,nt,ot,pt,lt)=>{if(Z!==nt){if(Z!==we)for(const vt in Z)!va(vt)&&!(vt in nt)&&u(P,vt,Z[vt],null,lt,F.children,ot,pt,tt);for(const vt in nt){if(va(vt))continue;const xt=nt[vt],ct=Z[vt];xt!==ct&&vt!=="value"&&u(P,vt,ct,xt,lt,F.children,ot,pt,tt)}"value"in nt&&u(P,"value",Z.value,nt.value)}},ut=(P,F,Z,nt,ot,pt,lt,vt,xt)=>{const ct=F.el=P?P.el:h(""),$t=F.anchor=P?P.anchor:h("");let{patchFlag:Nt,dynamicChildren:Ot,slotScopeIds:Rt}=F;Rt&&(vt=vt?vt.concat(Rt):Rt),P==null?(o(ct,Z,nt),o($t,Z,nt),J(F.children,Z,$t,ot,pt,lt,vt,xt)):Nt>0&&Nt&64&&Ot&&P.dynamicChildren?(gt(P.dynamicChildren,Ot,Z,ot,pt,lt,vt),(F.key!=null||ot&&F===ot.subTree)&&Hm(P,F,!0)):et(P,F,Z,$t,ot,pt,lt,vt,xt)},U=(P,F,Z,nt,ot,pt,lt,vt,xt)=>{F.slotScopeIds=vt,P==null?F.shapeFlag&512?ot.ctx.activate(F,Z,nt,lt,xt):z(F,Z,nt,ot,pt,lt,xt):k(P,F,xt)},z=(P,F,Z,nt,ot,pt,lt)=>{const vt=P.component=a_(P,nt,ot);if(oc(P)&&(vt.ctx.renderer=Ct),c_(vt),vt.asyncDep){if(ot&&ot.registerDep(vt,H),!P.el){const xt=vt.subTree=zt(Cn);T(null,xt,F,Z)}return}H(vt,P,F,Z,ot,pt,lt)},k=(P,F,Z)=>{const nt=F.component=P.component;if(m1(P,F,Z))if(nt.asyncDep&&!nt.asyncResolved){W(nt,F,Z);return}else nt.next=F,u1(nt.update),nt.update();else F.el=P.el,nt.vnode=F},H=(P,F,Z,nt,ot,pt,lt)=>{const vt=()=>{if(P.isMounted){let{next:$t,bu:Nt,u:Ot,parent:Rt,vnode:jt}=P,te=$t,Jt;$i(P,!1),$t?($t.el=jt.el,W(P,$t,lt)):$t=jt,Nt&&ma(Nt),(Jt=$t.props&&$t.props.onVnodeBeforeUpdate)&&sr(Jt,Rt,$t,jt),$i(P,!0);const ae=xu(P),Yt=P.subTree;P.subTree=ae,A(Yt,ae,b(Yt.el),K(Yt),P,ot,pt),$t.el=ae.el,te===null&&jf(P,ae.el),Ot&&xn(Ot,ot),(Jt=$t.props&&$t.props.onVnodeUpdated)&&xn(()=>sr(Jt,Rt,$t,jt),ot)}else{let $t;const{el:Nt,props:Ot}=F,{bm:Rt,m:jt,parent:te}=P,Jt=Bs(F);if($i(P,!1),Rt&&ma(Rt),!Jt&&($t=Ot&&Ot.onVnodeBeforeMount)&&sr($t,te,F),$i(P,!0),Nt&&Lt){const ae=()=>{P.subTree=xu(P),Lt(Nt,P.subTree,P,ot,null)};Jt?F.type.__asyncLoader().then(()=>!P.isUnmounted&&ae()):ae()}else{const ae=P.subTree=xu(P);A(null,ae,Z,nt,P,ot,pt),F.el=ae.el}if(jt&&xn(jt,ot),!Jt&&($t=Ot&&Ot.onVnodeMounted)){const ae=F;xn(()=>sr($t,te,ae),ot)}(F.shapeFlag&256||te&&Bs(te.vnode)&&te.vnode.shapeFlag&256)&&P.a&&xn(P.a,ot),P.isMounted=!0,F=Z=nt=null}},xt=P.effect=new Df(vt,()=>Uf(ct),P.scope),ct=P.update=()=>xt.run();ct.id=P.uid,$i(P,!0),ct()},W=(P,F,Z)=>{F.component=P;const nt=P.vnode.props;P.vnode=F,P.next=null,K1(P,F.props,nt,Z),Z1(P,F.children,Z),Zo(),Dp(),Jo()},et=(P,F,Z,nt,ot,pt,lt,vt,xt=!1)=>{const ct=P&&P.children,$t=P?P.shapeFlag:0,Nt=F.children,{patchFlag:Ot,shapeFlag:Rt}=F;if(Ot>0){if(Ot&128){At(ct,Nt,Z,nt,ot,pt,lt,vt,xt);return}else if(Ot&256){wt(ct,Nt,Z,nt,ot,pt,lt,vt,xt);return}}Rt&8?($t&16&&tt(ct,ot,pt),Nt!==ct&&v(Z,Nt)):$t&16?Rt&16?At(ct,Nt,Z,nt,ot,pt,lt,vt,xt):tt(ct,ot,pt,!0):($t&8&&v(Z,""),Rt&16&&J(Nt,Z,nt,ot,pt,lt,vt,xt))},wt=(P,F,Z,nt,ot,pt,lt,vt,xt)=>{P=P||Ao,F=F||Ao;const ct=P.length,$t=F.length,Nt=Math.min(ct,$t);let Ot;for(Ot=0;Ot<Nt;Ot++){const Rt=F[Ot]=xt?li(F[Ot]):jn(F[Ot]);A(P[Ot],Rt,Z,null,ot,pt,lt,vt,xt)}ct>$t?tt(P,ot,pt,!0,!1,Nt):J(F,Z,nt,ot,pt,lt,vt,xt,Nt)},At=(P,F,Z,nt,ot,pt,lt,vt,xt)=>{let ct=0;const $t=F.length;let Nt=P.length-1,Ot=$t-1;for(;ct<=Nt&&ct<=Ot;){const Rt=P[ct],jt=F[ct]=xt?li(F[ct]):jn(F[ct]);if(cr(Rt,jt))A(Rt,jt,Z,null,ot,pt,lt,vt,xt);else break;ct++}for(;ct<=Nt&&ct<=Ot;){const Rt=P[Nt],jt=F[Ot]=xt?li(F[Ot]):jn(F[Ot]);if(cr(Rt,jt))A(Rt,jt,Z,null,ot,pt,lt,vt,xt);else break;Nt--,Ot--}if(ct>Nt){if(ct<=Ot){const Rt=Ot+1,jt=Rt<$t?F[Rt].el:nt;for(;ct<=Ot;)A(null,F[ct]=xt?li(F[ct]):jn(F[ct]),Z,jt,ot,pt,lt,vt,xt),ct++}}else if(ct>Ot)for(;ct<=Nt;)Bt(P[ct],ot,pt,!0),ct++;else{const Rt=ct,jt=ct,te=new Map;for(ct=jt;ct<=Ot;ct++){const ye=F[ct]=xt?li(F[ct]):jn(F[ct]);ye.key!=null&&te.set(ye.key,ct)}let Jt,ae=0;const Yt=Ot-jt+1;let mn=!1,Ln=0;const He=new Array(Yt);for(ct=0;ct<Yt;ct++)He[ct]=0;for(ct=Rt;ct<=Nt;ct++){const ye=P[ct];if(ae>=Yt){Bt(ye,ot,pt,!0);continue}let nn;if(ye.key!=null)nn=te.get(ye.key);else for(Jt=jt;Jt<=Ot;Jt++)if(He[Jt-jt]===0&&cr(ye,F[Jt])){nn=Jt;break}nn===void 0?Bt(ye,ot,pt,!0):(He[nn-jt]=ct+1,nn>=Ln?Ln=nn:mn=!0,A(ye,F[nn],Z,null,ot,pt,lt,vt,xt),ae++)}const eo=mn?n_(He):Ao;for(Jt=eo.length-1,ct=Yt-1;ct>=0;ct--){const ye=jt+ct,nn=F[ye],bt=ye+1<$t?F[ye+1].el:nt;He[ct]===0?A(null,nn,Z,bt,ot,pt,lt,vt,xt):mn&&(Jt<0||ct!==eo[Jt]?qt(nn,Z,bt,2):Jt--)}}},qt=(P,F,Z,nt,ot=null)=>{const{el:pt,type:lt,transition:vt,children:xt,shapeFlag:ct}=P;if(ct&6){qt(P.component.subTree,F,Z,nt);return}if(ct&128){P.suspense.move(F,Z,nt);return}if(ct&64){lt.move(P,F,Z,Ct);return}if(lt===ce){o(pt,F,Z);for(let Nt=0;Nt<xt.length;Nt++)qt(xt[Nt],F,Z,nt);o(P.anchor,F,Z);return}if(lt===ku){$(P,F,Z);return}if(nt!==2&&ct&1&&vt)if(nt===0)vt.beforeEnter(pt),o(pt,F,Z),xn(()=>vt.enter(pt),ot);else{const{leave:Nt,delayLeave:Ot,afterLeave:Rt}=vt,jt=()=>o(pt,F,Z),te=()=>{Nt(pt,()=>{jt(),Rt&&Rt()})};Ot?Ot(pt,jt,te):te()}else o(pt,F,Z)},Bt=(P,F,Z,nt=!1,ot=!1)=>{const{type:pt,props:lt,ref:vt,children:xt,dynamicChildren:ct,shapeFlag:$t,patchFlag:Nt,dirs:Ot}=P;if(vt!=null&&Zu(vt,null,Z,P,!0),$t&256){F.ctx.deactivate(P);return}const Rt=$t&1&&Ot,jt=!Bs(P);let te;if(jt&&(te=lt&<.onVnodeBeforeUnmount)&&sr(te,F,P),$t&6)Q(P.component,Z,nt);else{if($t&128){P.suspense.unmount(Z,nt);return}Rt&&Oi(P,null,F,"beforeUnmount"),$t&64?P.type.remove(P,F,Z,ot,Ct,nt):ct&&(pt!==ce||Nt>0&&Nt&64)?tt(ct,F,Z,!1,!0):(pt===ce&&Nt&384||!ot&&$t&16)&&tt(xt,F,Z),nt&&Gt(P)}(jt&&(te=lt&<.onVnodeUnmounted)||Rt)&&xn(()=>{te&&sr(te,F,P),Rt&&Oi(P,null,F,"unmounted")},Z)},Gt=P=>{const{type:F,el:Z,anchor:nt,transition:ot}=P;if(F===ce){ie(Z,nt);return}if(F===ku){O(P);return}const pt=()=>{a(Z),ot&&!ot.persisted&&ot.afterLeave&&ot.afterLeave()};if(P.shapeFlag&1&&ot&&!ot.persisted){const{leave:lt,delayLeave:vt}=ot,xt=()=>lt(Z,pt);vt?vt(P.el,pt,xt):xt()}else pt()},ie=(P,F)=>{let Z;for(;P!==F;)Z=w(P),a(P),P=Z;a(F)},Q=(P,F,Z)=>{const{bum:nt,scope:ot,update:pt,subTree:lt,um:vt}=P;nt&&ma(nt),ot.stop(),pt&&(pt.active=!1,Bt(lt,P,F,Z)),vt&&xn(vt,F),xn(()=>{P.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve())},tt=(P,F,Z,nt=!1,ot=!1,pt=0)=>{for(let lt=pt;lt<P.length;lt++)Bt(P[lt],F,Z,nt,ot)},K=P=>P.shapeFlag&6?K(P.component.subTree):P.shapeFlag&128?P.suspense.next():w(P.anchor||P.el),st=(P,F,Z)=>{P==null?F._vnode&&Bt(F._vnode,null,null,!0):A(F._vnode||null,P,F,null,null,null,Z),Dp(),wm(),F._vnode=P},Ct={p:A,um:Bt,m:qt,r:Gt,mt:z,mc:J,pc:et,pbc:gt,n:K,o:t};let pe,Lt;return n&&([pe,Lt]=n(Ct)),{render:st,hydrate:pe,createApp:Q1(st,pe)}}function $i({effect:t,update:n},r){t.allowRecurse=n.allowRecurse=r}function Hm(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]=li(a[u]),h.el=f.el),r||Hm(f,h)),h.type===lc&&(h.el=f.el)}}function n_(t){const n=t.slice(),r=[0];let o,a,u,f,h;const d=t.length;for(o=0;o<d;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 r_=t=>t.__isTeleport,ce=Symbol(void 0),lc=Symbol(void 0),Cn=Symbol(void 0),ku=Symbol(void 0),Us=[];let In=null;function at(t=!1){Us.push(In=t?null:[])}function Bm(){Us.pop(),In=Us[Us.length-1]||null}let qo=1;function Gp(t){qo+=t}function Wm(t){return t.dynamicChildren=qo>0?In||Ao:null,Bm(),qo>0&&In&&In.push(t),t}function Et(t,n,r,o,a,u){return Wm(ht(t,n,r,o,a,u,!0))}function Qt(t,n,r,o,a){return Wm(zt(t,n,r,o,a,!0))}function tl(t){return t?t.__v_isVNode===!0:!1}function cr(t,n){return t.type===n.type&&t.key===n.key}const ac="__vInternal",Um=({key:t})=>t??null,ba=({ref:t,ref_key:n,ref_for:r})=>t!=null?qe(t)||Ee(t)||Wt(t)?{i:Xe,r:t,k:n,f:!!r}:t:null;function ht(t,n=null,r=null,o=0,a=null,u=t===ce?0:1,f=!1,h=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:n,key:n&&Um(n),ref:n&&ba(n),scopeId:ic,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Xe};return h?(Jf(d,r),u&128&&t.normalize(d)):r&&(d.shapeFlag|=qe(r)?8:16),qo>0&&!f&&In&&(d.patchFlag>0||u&6)&&d.patchFlag!==32&&In.push(d),d}const zt=i_;function i_(t,n=null,r=null,o=0,a=null,u=!1){if((!t||t===q1)&&(t=Cn),tl(t)){const h=mi(t,n,!0);return r&&Jf(h,r),qo>0&&!u&&In&&(h.shapeFlag&6?In[In.indexOf(t)]=h:In.push(h)),h.patchFlag|=-2,h}if(d_(t)&&(t=t.__vccOpts),n){n=o_(n);let{class:h,style:d}=n;h&&!qe(h)&&(n.class=ve(h)),xe(d)&&(fm(d)&&!Ht(d)&&(d=Ye({},d)),n.style=kn(d))}const f=qe(t)?1:y1(t)?128:r_(t)?64:xe(t)?4:Wt(t)?2:0;return ht(t,n,r,o,a,f,u,!0)}function o_(t){return t?fm(t)||ac in t?Ye({},t):t:null}function mi(t,n,r=!1){const{props:o,ref:a,patchFlag:u,children:f}=t,h=n?gi(o||{},n):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&Um(h),ref:n&&n.ref?r&&a?Ht(a)?a.concat(ba(n)):[a,ba(n)]:ba(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!==ce?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&&mi(t.ssContent),ssFallback:t.ssFallback&&mi(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx}}function fn(t=" ",n=0){return zt(lc,null,t,n)}function le(t="",n=!1){return n?(at(),Qt(Cn,null,t)):zt(Cn,null,t)}function jn(t){return t==null||typeof t=="boolean"?zt(Cn):Ht(t)?zt(ce,null,t.slice()):typeof t=="object"?li(t):zt(lc,null,String(t))}function li(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:mi(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&&!(ac in n)?n._ctx=Xe:a===3&&Xe&&(Xe.slots._===1?n._=1:(n._=2,t.patchFlag|=1024))}else Wt(n)?(n={default:n,_ctx:Xe},r=32):(n=String(n),o&64?(r=16,n=[fn(n)]):r=8);t.children=n,t.shapeFlag|=r}function gi(...t){const n={};for(let r=0;r<t.length;r++){const o=t[r];for(const a in o)if(a==="class")n.class!==o.class&&(n.class=ve([n.class,o.class]));else if(a==="style")n.style=kn([n.style,o.style]);else if(Ja(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 sr(t,n,r,o=null){Fn(t,n,7,[r,o])}const s_=qm();let l_=0;function a_(t,n,r){const o=t.type,a=(n?n.appContext:t.appContext)||s_,u={uid:l_++,vnode:t,type:o,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new Tx(!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:Rm(o,a),emitsOptions:_m(o,a),emit:null,emitted:null,propsDefaults:we,inheritAttrs:o.inheritAttrs,ctx:we,data:we,props:we,attrs:we,slots:we,refs:we,setupState:we,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=h1.bind(null,u),t.ce&&t.ce(u),u}let We=null;const cc=()=>We||Xe,Ho=t=>{We=t,t.scope.on()},ji=()=>{We&&We.scope.off(),We=null};function jm(t){return t.vnode.shapeFlag&4}let el=!1;function c_(t,n=!1){el=n;const{props:r,children:o}=t.vnode,a=jm(t);V1(t,r,a,n),Y1(t,o);const u=a?u_(t,n):void 0;return el=!1,u}function u_(t,n){const r=t.type;t.accessCache=Object.create(null),t.proxy=qf(new Proxy(t.ctx,H1));const{setup:o}=r;if(o){const a=t.setupContext=o.length>1?Vm(t):null;Ho(t),Zo();const u=pi(o,t,0,[t.props,a]);if(Jo(),ji(),Zv(u)){if(u.then(ji,ji),n)return u.then(f=>{Ju(t,f,n)}).catch(f=>{hl(f,t,0)});t.asyncDep=u}else Ju(t,u,n)}else Gm(t,n)}function Ju(t,n,r){Wt(n)?t.type.__ssrInlineRender?t.ssrRender=n:t.render=n:xe(n)&&(t.setupState=gm(n)),Gm(t,r)}let Vp;function Gm(t,n,r){const o=t.type;if(!t.render){if(!n&&Vp&&!o.render){const a=o.template||Yf(t).template;if(a){const{isCustomElement:u,compilerOptions:f}=t.appContext.config,{delimiters:h,compilerOptions:d}=o,g=Ye(Ye({isCustomElement:u,delimiters:h},f),d);o.render=Vp(a,g)}}t.render=o.render||Xn}Ho(t),Zo(),B1(t),Jo(),ji()}function f_(t){return new Proxy(t.attrs,{get(n,r){return On(t,"get","$attrs"),n[r]}})}function Vm(t){const n=o=>{t.exposed=o||{}};let r;return{get attrs(){return r||(r=f_(t))},slots:t.slots,emit:t.emit,expose:n}}function uc(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(gm(qf(t.exposed)),{get(n,r){if(r in n)return n[r];if(r in Ws)return Ws[r](t)},has(n,r){return r in n||r in Ws}}))}function h_(t,n=!0){return Wt(t)?t.displayName||t.name:t.name||n&&t.__name}function d_(t){return Wt(t)&&"__vccOpts"in t}const _t=(t,n)=>l1(t,n,el);function p_(){return g_().attrs}function g_(){const t=cc();return t.setupContext||(t.setupContext=Vm(t))}function pl(t,n,r){const o=arguments.length;return o===2?xe(n)&&!Ht(n)?tl(n)?zt(t,null,[n]):zt(t,n):zt(t,null,n):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&tl(r)&&(r=[r]),zt(t,n,r))}const v_=Symbol(""),m_=()=>$r(v_),y_="3.2.45",b_="http://www.w3.org/2000/svg",qi=typeof document<"u"?document:null,Kp=qi&&qi.createElement("template"),w_={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?qi.createElementNS(b_,t):qi.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&a.setAttribute("multiple",o.multiple),a},createText:t=>qi.createTextNode(t),createComment:t=>qi.createComment(t),setText:(t,n)=>{t.nodeValue=n},setElementText:(t,n)=>{t.textContent=n},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>qi.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{Kp.innerHTML=o?`<svg>${t}</svg>`:t;const h=Kp.content;if(o){const d=h.firstChild;for(;d.firstChild;)h.appendChild(d.firstChild);h.removeChild(d)}n.insertBefore(h,r)}return[f?f.nextSibling:n.firstChild,r?r.previousSibling:n.lastChild]}};function x_(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 __(t,n,r){const o=t.style,a=qe(r);if(r&&!a){for(const u in r)Qu(o,u,r[u]);if(n&&!qe(n))for(const u in n)r[u]==null&&Qu(o,u,"")}else{const u=o.display;a?n!==r&&(o.cssText=r):n&&t.removeAttribute("style"),"_vod"in t&&(o.display=u)}}const Xp=/\s*!important$/;function Qu(t,n,r){if(Ht(r))r.forEach(o=>Qu(t,n,o));else if(r==null&&(r=""),n.startsWith("--"))t.setProperty(n,r);else{const o=S_(t,n);Xp.test(r)?t.setProperty(Ji(o),r.replace(Xp,""),"important"):t[o]=r}}const Yp=["Webkit","Moz","ms"],Cu={};function S_(t,n){const r=Cu[n];if(r)return r;let o=hr(n);if(o!=="filter"&&o in t)return Cu[n]=o;o=ec(o);for(let a=0;a<Yp.length;a++){const u=Yp[a]+o;if(u in t)return Cu[n]=u}return n}const Zp="http://www.w3.org/1999/xlink";function k_(t,n,r,o,a){if(o&&n.startsWith("xlink:"))r==null?t.removeAttributeNS(Zp,n.slice(6,n.length)):t.setAttributeNS(Zp,n,r);else{const u=yx(n);r==null||u&&!Kv(r)?t.removeAttribute(n):t.setAttribute(n,u?"":r)}}function C_(t,n,r,o,a,u,f){if(n==="innerHTML"||n==="textContent"){o&&f(o,a,u),t[n]=r??"";return}if(n==="value"&&t.tagName!=="PROGRESS"&&!t.tagName.includes("-")){t._value=r;const d=r??"";(t.value!==d||t.tagName==="OPTION")&&(t.value=d),r==null&&t.removeAttribute(n);return}let h=!1;if(r===""||r==null){const d=typeof t[n];d==="boolean"?r=Kv(r):r==null&&d==="string"?(r="",h=!0):d==="number"&&(r=0,h=!0)}try{t[n]=r}catch{}h&&t.removeAttribute(n)}function Lo(t,n,r,o){t.addEventListener(n,r,o)}function T_(t,n,r,o){t.removeEventListener(n,r,o)}function L_(t,n,r,o,a=null){const u=t._vei||(t._vei={}),f=u[n];if(o&&f)f.value=o;else{const[h,d]=E_(n);if(o){const g=u[n]=N_(o,a);Lo(t,h,g,d)}else f&&(T_(t,h,f,d),u[n]=void 0)}}const Jp=/(?:Once|Passive|Capture)$/;function E_(t){let n;if(Jp.test(t)){n={};let o;for(;o=t.match(Jp);)t=t.slice(0,t.length-o[0].length),n[o[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Ji(t.slice(2)),n]}let Tu=0;const A_=Promise.resolve(),M_=()=>Tu||(A_.then(()=>Tu=0),Tu=Date.now());function N_(t,n){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Fn(P_(o,r.value),n,5,[o])};return r.value=t,r.attached=M_(),r}function P_(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 Qp=/^on[a-z]/,O_=(t,n,r,o,a=!1,u,f,h,d)=>{n==="class"?x_(t,o,a):n==="style"?__(t,r,o):Ja(n)?Mf(n)||L_(t,n,r,o,f):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):$_(t,n,o,a))?C_(t,n,o,u,f,h,d):(n==="true-value"?t._trueValue=o:n==="false-value"&&(t._falseValue=o),k_(t,n,o,a))};function $_(t,n,r,o){return o?!!(n==="innerHTML"||n==="textContent"||n in t&&Qp.test(n)&&Wt(r)):n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&t.tagName==="INPUT"||n==="type"&&t.tagName==="TEXTAREA"||Qp.test(n)&&qe(r)?!1:n in t}const ri="transition",$s="animation",Qf=(t,{slots:n})=>pl(Tm,D_(t),n);Qf.displayName="Transition";const Km={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};Qf.props=Ye({},Tm.props,Km);const Di=(t,n=[])=>{Ht(t)?t.forEach(r=>r(...n)):t&&t(...n)},tg=t=>t?Ht(t)?t.some(n=>n.length>1):t.length>1:!1;function D_(t){const n={};for(const ut in t)ut in Km||(n[ut]=t[ut]);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:d=u,appearActiveClass:g=f,appearToClass:v=h,leaveFromClass:b=`${r}-leave-from`,leaveActiveClass:w=`${r}-leave-active`,leaveToClass:S=`${r}-leave-to`}=t,M=R_(a),A=M&&M[0],E=M&&M[1],{onBeforeEnter:T,onEnter:L,onEnterCancelled:$,onLeave:O,onLeaveCancelled:G,onBeforeAppear:V=T,onAppear:rt=L,onAppearCancelled:J=$}=n,dt=(ut,U,z)=>{Ri(ut,U?v:h),Ri(ut,U?g:f),z&&z()},gt=(ut,U)=>{ut._isLeaving=!1,Ri(ut,b),Ri(ut,S),Ri(ut,w),U&&U()},kt=ut=>(U,z)=>{const k=ut?rt:L,H=()=>dt(U,ut,z);Di(k,[U,H]),eg(()=>{Ri(U,ut?d:u),ii(U,ut?v:h),tg(k)||ng(U,o,A,H)})};return Ye(n,{onBeforeEnter(ut){Di(T,[ut]),ii(ut,u),ii(ut,f)},onBeforeAppear(ut){Di(V,[ut]),ii(ut,d),ii(ut,g)},onEnter:kt(!1),onAppear:kt(!0),onLeave(ut,U){ut._isLeaving=!0;const z=()=>gt(ut,U);ii(ut,b),F_(),ii(ut,w),eg(()=>{!ut._isLeaving||(Ri(ut,b),ii(ut,S),tg(O)||ng(ut,o,E,z))}),Di(O,[ut,z])},onEnterCancelled(ut){dt(ut,!1),Di($,[ut])},onAppearCancelled(ut){dt(ut,!0),Di(J,[ut])},onLeaveCancelled(ut){gt(ut),Di(G,[ut])}})}function R_(t){if(t==null)return null;if(xe(t))return[Lu(t.enter),Lu(t.leave)];{const n=Lu(t);return[n,n]}}function Lu(t){return Io(t)}function ii(t,n){n.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(n)}function Ri(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 eg(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let z_=0;function ng(t,n,r,o){const a=t._endId=++z_,u=()=>{a===t._endId&&o()};if(r)return setTimeout(u,r);const{type:f,timeout:h,propCount:d}=I_(t,n);if(!f)return o();const g=f+"end";let v=0;const b=()=>{t.removeEventListener(g,w),u()},w=S=>{S.target===t&&++v>=d&&b()};setTimeout(()=>{v<d&&b()},h+1),t.addEventListener(g,w)}function I_(t,n){const r=window.getComputedStyle(t),o=M=>(r[M]||"").split(", "),a=o(`${ri}Delay`),u=o(`${ri}Duration`),f=rg(a,u),h=o(`${$s}Delay`),d=o(`${$s}Duration`),g=rg(h,d);let v=null,b=0,w=0;n===ri?f>0&&(v=ri,b=f,w=u.length):n===$s?g>0&&(v=$s,b=g,w=d.length):(b=Math.max(f,g),v=b>0?f>g?ri:$s:null,w=v?v===ri?u.length:d.length:0);const S=v===ri&&/\b(transform|all)(,|$)/.test(o(`${ri}Property`).toString());return{type:v,timeout:b,propCount:w,hasTransform:S}}function rg(t,n){for(;t.length<n.length;)t=t.concat(t);return Math.max(...n.map((r,o)=>ig(r)+ig(t[o])))}function ig(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function F_(){return document.body.offsetHeight}const og=t=>{const n=t.props["onUpdate:modelValue"]||!1;return Ht(n)?r=>ma(n,r):n};function q_(t){t.target.composing=!0}function sg(t){const n=t.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const H_={created(t,{modifiers:{lazy:n,trim:r,number:o}},a){t._assign=og(a);const u=o||a.props&&a.props.type==="number";Lo(t,n?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),u&&(h=Io(h)),t._assign(h)}),r&&Lo(t,"change",()=>{t.value=t.value.trim()}),n||(Lo(t,"compositionstart",q_),Lo(t,"compositionend",sg),Lo(t,"change",sg))},mounted(t,{value:n}){t.value=n??""},beforeUpdate(t,{value:n,modifiers:{lazy:r,trim:o,number:a}},u){if(t._assign=og(u),t.composing||document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===n||(a||t.type==="number")&&Io(t.value)===n))return;const f=n??"";t.value!==f&&(t.value=f)}},B_={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},tf=(t,n)=>r=>{if(!("key"in r))return;const o=Ji(r.key);if(n.some(a=>a===o||B_[a]===o))return t(r)},Xm={beforeMount(t,{value:n},{transition:r}){t._vod=t.style.display==="none"?"":t.style.display,r&&n?r.beforeEnter(t):Ds(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),Ds(t,!0),o.enter(t)):o.leave(t,()=>{Ds(t,!1)}):Ds(t,n))},beforeUnmount(t,{value:n}){Ds(t,n)}};function Ds(t,n){t.style.display=n?t._vod:"none"}const W_=Ye({patchProp:O_},w_);let lg;function U_(){return lg||(lg=t_(W_))}const Ym=(...t)=>{const n=U_().createApp(...t),{mount:r}=n;return n.mount=o=>{const a=j_(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 j_(t){return qe(t)?document.querySelector(t):t}const to=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r},G_={};function V_(t,n){const r=Ki("RouterView");return at(),Qt(r)}const K_=to(G_,[["render",V_]]);const Eo=typeof window<"u";function X_(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const de=Object.assign;function Eu(t,n){const r={};for(const o in n){const a=n[o];r[o]=Zn(a)?a.map(t):t(a)}return r}const js=()=>{},Zn=Array.isArray,Y_=/\/$/,Z_=t=>t.replace(Y_,"");function Au(t,n,r="/"){let o,a={},u="",f="";const h=n.indexOf("#");let d=n.indexOf("?");return h<d&&h>=0&&(d=-1),d>-1&&(o=n.slice(0,d),u=n.slice(d+1,h>-1?h:n.length),a=t(u)),h>-1&&(o=o||n.slice(0,h),f=n.slice(h,n.length)),o=eS(o??n,r),{fullPath:o+(u&&"?")+u+f,path:o,query:a,hash:f}}function J_(t,n){const r=n.query?t(n.query):"";return n.path+(r&&"?")+r+(n.hash||"")}function ag(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&&Bo(n.matched[o],r.matched[a])&&Zm(n.params,r.params)&&t(n.query)===t(r.query)&&n.hash===r.hash}function Bo(t,n){return(t.aliasOf||t)===(n.aliasOf||n)}function Zm(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(!tS(t[r],n[r]))return!1;return!0}function tS(t,n){return Zn(t)?cg(t,n):Zn(n)?cg(n,t):t===n}function cg(t,n){return Zn(n)?t.length===n.length&&t.every((r,o)=>r===n[o]):t.length===1&&t[0]===n}function eS(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 nl;(function(t){t.pop="pop",t.push="push"})(nl||(nl={}));var Gs;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Gs||(Gs={}));function nS(t){if(!t)if(Eo){const n=document.querySelector("base");t=n&&n.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Z_(t)}const rS=/^[^#]+#/;function iS(t,n){return t.replace(rS,"#")+n}function oS(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 fc=()=>({left:window.pageXOffset,top:window.pageYOffset});function sS(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=oS(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 ug(t,n){return(history.state?history.state.position-n:-1)+t}const ef=new Map;function lS(t,n){ef.set(t,n)}function aS(t){const n=ef.get(t);return ef.delete(t),n}let cS=()=>location.protocol+"//"+location.host;function Jm(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,d=a.slice(h);return d[0]!=="/"&&(d="/"+d),ag(d,"")}return ag(r,t)+o+a}function uS(t,n,r,o){let a=[],u=[],f=null;const h=({state:w})=>{const S=Jm(t,location),M=r.value,A=n.value;let E=0;if(w){if(r.value=S,n.value=w,f&&f===M){f=null;return}E=A?w.position-A.position:0}else o(S);a.forEach(T=>{T(r.value,M,{delta:E,type:nl.pop,direction:E?E>0?Gs.forward:Gs.back:Gs.unknown})})};function d(){f=r.value}function g(w){a.push(w);const S=()=>{const M=a.indexOf(w);M>-1&&a.splice(M,1)};return u.push(S),S}function v(){const{history:w}=window;!w.state||w.replaceState(de({},w.state,{scroll:fc()}),"")}function b(){for(const w of u)w();u=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",v),{pauseListeners:d,listen:g,destroy:b}}function fg(t,n,r,o=!1,a=!1){return{back:t,current:n,forward:r,replaced:o,position:window.history.length,scroll:a?fc():null}}function fS(t){const{history:n,location:r}=window,o={value:Jm(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(d,g,v){const b=t.indexOf("#"),w=b>-1?(r.host&&document.querySelector("base")?t:t.slice(b))+d:cS()+t+d;try{n[v?"replaceState":"pushState"](g,"",w),a.value=g}catch(S){console.error(S),r[v?"replace":"assign"](w)}}function f(d,g){const v=de({},n.state,fg(a.value.back,d,a.value.forward,!0),g,{position:a.value.position});u(d,v,!0),o.value=d}function h(d,g){const v=de({},a.value,n.state,{forward:d,scroll:fc()});u(v.current,v,!0);const b=de({},fg(o.value,d,null),{position:v.position+1},g);u(d,b,!1),o.value=d}return{location:o,state:a,push:h,replace:f}}function hS(t){t=nS(t);const n=fS(t),r=uS(t,n.state,n.location,n.replace);function o(u,f=!0){f||r.pauseListeners(),history.go(u)}const a=de({location:"",base:t,go:o,createHref:iS.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 dS(t){return typeof t=="string"||t&&typeof t=="object"}function Qm(t){return typeof t=="string"||typeof t=="symbol"}const oi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},t0=Symbol("");var hg;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(hg||(hg={}));function Wo(t,n){return de(new Error,{type:t,[t0]:!0},n)}function Lr(t,n){return t instanceof Error&&t0 in t&&(n==null||!!(t.type&n))}const dg="[^/]+?",pS={sensitive:!1,strict:!1,start:!0,end:!0},gS=/[.+*?^${}()[\]/\\]/g;function vS(t,n){const r=de({},pS,n),o=[];let a=r.start?"^":"";const u=[];for(const g of t){const v=g.length?[]:[90];r.strict&&!g.length&&(a+="/");for(let b=0;b<g.length;b++){const w=g[b];let S=40+(r.sensitive?.25:0);if(w.type===0)b||(a+="/"),a+=w.value.replace(gS,"\\$&"),S+=40;else if(w.type===1){const{value:M,repeatable:A,optional:E,regexp:T}=w;u.push({name:M,repeatable:A,optional:E});const L=T||dg;if(L!==dg){S+=10;try{new RegExp(`(${L})`)}catch(O){throw new Error(`Invalid custom RegExp for param "${M}" (${L}): `+O.message)}}let $=A?`((?:${L})(?:/(?:${L}))*)`:`(${L})`;b||($=E&&g.length<2?`(?:/${$})`:"/"+$),E&&($+="?"),a+=$,S+=20,E&&(S+=-8),A&&(S+=-20),L===".*"&&(S+=-50)}v.push(S)}o.push(v)}if(r.strict&&r.end){const g=o.length-1;o[g][o[g].length-1]+=.7000000000000001}r.strict||(a+="/?"),r.end?a+="$":r.strict&&(a+="(?:/|$)");const f=new RegExp(a,r.sensitive?"":"i");function h(g){const v=g.match(f),b={};if(!v)return null;for(let w=1;w<v.length;w++){const S=v[w]||"",M=u[w-1];b[M.name]=S&&M.repeatable?S.split("/"):S}return b}function d(g){let v="",b=!1;for(const w of t){(!b||!v.endsWith("/"))&&(v+="/"),b=!1;for(const S of w)if(S.type===0)v+=S.value;else if(S.type===1){const{value:M,repeatable:A,optional:E}=S,T=M in g?g[M]:"";if(Zn(T)&&!A)throw new Error(`Provided param "${M}" is an array but it is not repeatable (* or + modifiers)`);const L=Zn(T)?T.join("/"):T;if(!L)if(E)w.length<2&&(v.endsWith("/")?v=v.slice(0,-1):b=!0);else throw new Error(`Missing required param "${M}"`);v+=L}}return v||"/"}return{re:f,score:o,keys:u,parse:h,stringify:d}}function mS(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 yS(t,n){let r=0;const o=t.score,a=n.score;for(;r<o.length&&r<a.length;){const u=mS(o[r],a[r]);if(u)return u;r++}if(Math.abs(a.length-o.length)===1){if(pg(o))return 1;if(pg(a))return-1}return a.length-o.length}function pg(t){const n=t[t.length-1];return t.length>0&&n[n.length-1]<0}const bS={type:0,value:""},wS=/[a-zA-Z0-9_]/;function xS(t){if(!t)return[[]];if(t==="/")return[[bS]];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,d,g="",v="";function b(){!g||(r===0?u.push({type:0,value:g}):r===1||r===2||r===3?(u.length>1&&(d==="*"||d==="+")&&n(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:g,regexp:v,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):n("Invalid state to consume buffer"),g="")}function w(){g+=d}for(;h<t.length;){if(d=t[h++],d==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:d==="/"?(g&&b(),f()):d===":"?(b(),r=1):w();break;case 4:w(),r=o;break;case 1:d==="("?r=2:wS.test(d)?w():(b(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&h--);break;case 2:d===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+d:r=3:v+=d;break;case 3:b(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&h--,v="";break;default:n("Unknown state");break}}return r===2&&n(`Unfinished custom RegExp for param "${g}"`),b(),f(),a}function _S(t,n,r){const o=vS(xS(t.path),r),a=de(o,{record:t,parent:n,children:[],alias:[]});return n&&!a.record.aliasOf==!n.record.aliasOf&&n.children.push(a),a}function SS(t,n){const r=[],o=new Map;n=mg({strict:!1,end:!0,sensitive:!1},n);function a(v){return o.get(v)}function u(v,b,w){const S=!w,M=kS(v);M.aliasOf=w&&w.record;const A=mg(n,v),E=[M];if("alias"in v){const $=typeof v.alias=="string"?[v.alias]:v.alias;for(const O of $)E.push(de({},M,{components:w?w.record.components:M.components,path:O,aliasOf:w?w.record:M}))}let T,L;for(const $ of E){const{path:O}=$;if(b&&O[0]!=="/"){const G=b.record.path,V=G[G.length-1]==="/"?"":"/";$.path=b.record.path+(O&&V+O)}if(T=_S($,b,A),w?w.alias.push(T):(L=L||T,L!==T&&L.alias.push(T),S&&v.name&&!vg(T)&&f(v.name)),M.children){const G=M.children;for(let V=0;V<G.length;V++)u(G[V],T,w&&w.children[V])}w=w||T,(T.record.components&&Object.keys(T.record.components).length||T.record.name||T.record.redirect)&&d(T)}return L?()=>{f(L)}:js}function f(v){if(Qm(v)){const b=o.get(v);b&&(o.delete(v),r.splice(r.indexOf(b),1),b.children.forEach(f),b.alias.forEach(f))}else{const b=r.indexOf(v);b>-1&&(r.splice(b,1),v.record.name&&o.delete(v.record.name),v.children.forEach(f),v.alias.forEach(f))}}function h(){return r}function d(v){let b=0;for(;b<r.length&&yS(v,r[b])>=0&&(v.record.path!==r[b].record.path||!e0(v,r[b]));)b++;r.splice(b,0,v),v.record.name&&!vg(v)&&o.set(v.record.name,v)}function g(v,b){let w,S={},M,A;if("name"in v&&v.name){if(w=o.get(v.name),!w)throw Wo(1,{location:v});A=w.record.name,S=de(gg(b.params,w.keys.filter(L=>!L.optional).map(L=>L.name)),v.params&&gg(v.params,w.keys.map(L=>L.name))),M=w.stringify(S)}else if("path"in v)M=v.path,w=r.find(L=>L.re.test(M)),w&&(S=w.parse(M),A=w.record.name);else{if(w=b.name?o.get(b.name):r.find(L=>L.re.test(b.path)),!w)throw Wo(1,{location:v,currentLocation:b});A=w.record.name,S=de({},b.params,v.params),M=w.stringify(S)}const E=[];let T=w;for(;T;)E.unshift(T.record),T=T.parent;return{name:A,path:M,params:S,matched:E,meta:TS(E)}}return t.forEach(v=>u(v)),{addRoute:u,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:a}}function gg(t,n){const r={};for(const o of n)o in t&&(r[o]=t[o]);return r}function kS(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:CS(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 CS(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 vg(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function TS(t){return t.reduce((n,r)=>de(n,r.meta),{})}function mg(t,n){const r={};for(const o in t)r[o]=o in n?n[o]:t[o];return r}function e0(t,n){return n.children.some(r=>r===t||e0(t,r))}const n0=/#/g,LS=/&/g,ES=/\//g,AS=/=/g,MS=/\?/g,r0=/\+/g,NS=/%5B/g,PS=/%5D/g,i0=/%5E/g,OS=/%60/g,o0=/%7B/g,$S=/%7C/g,s0=/%7D/g,DS=/%20/g;function th(t){return encodeURI(""+t).replace($S,"|").replace(NS,"[").replace(PS,"]")}function RS(t){return th(t).replace(o0,"{").replace(s0,"}").replace(i0,"^")}function nf(t){return th(t).replace(r0,"%2B").replace(DS,"+").replace(n0,"%23").replace(LS,"%26").replace(OS,"`").replace(o0,"{").replace(s0,"}").replace(i0,"^")}function zS(t){return nf(t).replace(AS,"%3D")}function IS(t){return th(t).replace(n0,"%23").replace(MS,"%3F")}function FS(t){return t==null?"":IS(t).replace(ES,"%2F")}function Oa(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function qS(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(r0," "),f=u.indexOf("="),h=Oa(f<0?u:u.slice(0,f)),d=f<0?null:Oa(u.slice(f+1));if(h in n){let g=n[h];Zn(g)||(g=n[h]=[g]),g.push(d)}else n[h]=d}return n}function yg(t){let n="";for(let r in t){const o=t[r];if(r=zS(r),o==null){o!==void 0&&(n+=(n.length?"&":"")+r);continue}(Zn(o)?o.map(u=>u&&nf(u)):[o&&nf(o)]).forEach(u=>{u!==void 0&&(n+=(n.length?"&":"")+r,u!=null&&(n+="="+u))})}return n}function HS(t){const n={};for(const r in t){const o=t[r];o!==void 0&&(n[r]=Zn(o)?o.map(a=>a==null?null:""+a):o==null?o:""+o)}return n}const BS=Symbol(""),bg=Symbol(""),eh=Symbol(""),l0=Symbol(""),rf=Symbol("");function Rs(){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 ai(t,n,r,o,a){const u=o&&(o.enterCallbacks[a]=o.enterCallbacks[a]||[]);return()=>new Promise((f,h)=>{const d=b=>{b===!1?h(Wo(4,{from:r,to:n})):b instanceof Error?h(b):dS(b)?h(Wo(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,d);let v=Promise.resolve(g);t.length<3&&(v=v.then(d)),v.catch(b=>h(b))})}function Mu(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(WS(h)){const g=(h.__vccOpts||h)[n];g&&a.push(ai(g,r,o,u,f))}else{let d=h();a.push(()=>d.then(g=>{if(!g)return Promise.reject(new Error(`Couldn't resolve component "${f}" at "${u.path}"`));const v=X_(g)?g.default:g;u.components[f]=v;const w=(v.__vccOpts||v)[n];return w&&ai(w,r,o,u,f)()}))}}return a}function WS(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function wg(t){const n=$r(eh),r=$r(l0),o=_t(()=>n.resolve(j(t.to))),a=_t(()=>{const{matched:d}=o.value,{length:g}=d,v=d[g-1],b=r.matched;if(!v||!b.length)return-1;const w=b.findIndex(Bo.bind(null,v));if(w>-1)return w;const S=xg(d[g-2]);return g>1&&xg(v)===S&&b[b.length-1].path!==S?b.findIndex(Bo.bind(null,d[g-2])):w}),u=_t(()=>a.value>-1&&VS(r.params,o.value.params)),f=_t(()=>a.value>-1&&a.value===r.matched.length-1&&Zm(r.params,o.value.params));function h(d={}){return GS(d)?n[j(t.replace)?"replace":"push"](j(t.to)).catch(js):Promise.resolve()}return{route:o,href:_t(()=>o.value.href),isActive:u,isExactActive:f,navigate:h}}const US=re({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:wg,setup(t,{slots:n}){const r=Pn(wg(t)),{options:o}=$r(eh),a=_t(()=>({[_g(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[_g(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const u=n.default&&n.default(r);return t.custom?u:pl("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},u)}}}),jS=US;function GS(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 VS(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(!Zn(a)||a.length!==o.length||o.some((u,f)=>u!==a[f]))return!1}return!0}function xg(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const _g=(t,n,r)=>t??n??r,KS=re({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:n,slots:r}){const o=$r(rf),a=_t(()=>t.route||o.value),u=$r(bg,0),f=_t(()=>{let g=j(u);const{matched:v}=a.value;let b;for(;(b=v[g])&&!b.components;)g++;return g}),h=_t(()=>a.value.matched[f.value]);ya(bg,_t(()=>f.value+1)),ya(BS,h),ya(rf,a);const d=Kt();return Fe(()=>[d.value,h.value,t.name],([g,v,b],[w,S,M])=>{v&&(v.instances[b]=g,S&&S!==v&&g&&g===w&&(v.leaveGuards.size||(v.leaveGuards=S.leaveGuards),v.updateGuards.size||(v.updateGuards=S.updateGuards))),g&&v&&(!S||!Bo(v,S)||!w)&&(v.enterCallbacks[b]||[]).forEach(A=>A(g))},{flush:"post"}),()=>{const g=a.value,v=t.name,b=h.value,w=b&&b.components[v];if(!w)return Sg(r.default,{Component:w,route:g});const S=b.props[v],M=S?S===!0?g.params:typeof S=="function"?S(g):S:null,E=pl(w,de({},M,n,{onVnodeUnmounted:T=>{T.component.isUnmounted&&(b.instances[v]=null)},ref:d}));return Sg(r.default,{Component:E,route:g})||E}}});function Sg(t,n){if(!t)return null;const r=t(n);return r.length===1?r[0]:r}const XS=KS;function YS(t){const n=SS(t.routes,t),r=t.parseQuery||qS,o=t.stringifyQuery||yg,a=t.history,u=Rs(),f=Rs(),h=Rs(),d=fl(oi);let g=oi;Eo&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Eu.bind(null,Q=>""+Q),b=Eu.bind(null,FS),w=Eu.bind(null,Oa);function S(Q,tt){let K,st;return Qm(Q)?(K=n.getRecordMatcher(Q),st=tt):st=Q,n.addRoute(st,K)}function M(Q){const tt=n.getRecordMatcher(Q);tt&&n.removeRoute(tt)}function A(){return n.getRoutes().map(Q=>Q.record)}function E(Q){return!!n.getRecordMatcher(Q)}function T(Q,tt){if(tt=de({},tt||d.value),typeof Q=="string"){const P=Au(r,Q,tt.path),F=n.resolve({path:P.path},tt),Z=a.createHref(P.fullPath);return de(P,F,{params:w(F.params),hash:Oa(P.hash),redirectedFrom:void 0,href:Z})}let K;if("path"in Q)K=de({},Q,{path:Au(r,Q.path,tt.path).path});else{const P=de({},Q.params);for(const F in P)P[F]==null&&delete P[F];K=de({},Q,{params:b(Q.params)}),tt.params=b(tt.params)}const st=n.resolve(K,tt),Ct=Q.hash||"";st.params=v(w(st.params));const pe=J_(o,de({},Q,{hash:RS(Ct),path:st.path})),Lt=a.createHref(pe);return de({fullPath:pe,hash:Ct,query:o===yg?HS(Q.query):Q.query||{}},st,{redirectedFrom:void 0,href:Lt})}function L(Q){return typeof Q=="string"?Au(r,Q,d.value.path):de({},Q)}function $(Q,tt){if(g!==Q)return Wo(8,{from:tt,to:Q})}function O(Q){return rt(Q)}function G(Q){return O(de(L(Q),{replace:!0}))}function V(Q){const tt=Q.matched[Q.matched.length-1];if(tt&&tt.redirect){const{redirect:K}=tt;let st=typeof K=="function"?K(Q):K;return typeof st=="string"&&(st=st.includes("?")||st.includes("#")?st=L(st):{path:st},st.params={}),de({query:Q.query,hash:Q.hash,params:"path"in st?{}:Q.params},st)}}function rt(Q,tt){const K=g=T(Q),st=d.value,Ct=Q.state,pe=Q.force,Lt=Q.replace===!0,P=V(K);if(P)return rt(de(L(P),{state:typeof P=="object"?de({},Ct,P.state):Ct,force:pe,replace:Lt}),tt||K);const F=K;F.redirectedFrom=tt;let Z;return!pe&&Q_(o,st,K)&&(Z=Wo(16,{to:F,from:st}),At(st,st,!0,!1)),(Z?Promise.resolve(Z):dt(F,st)).catch(nt=>Lr(nt)?Lr(nt,2)?nt:wt(nt):W(nt,F,st)).then(nt=>{if(nt){if(Lr(nt,2))return rt(de({replace:Lt},L(nt.to),{state:typeof nt.to=="object"?de({},Ct,nt.to.state):Ct,force:pe}),tt||F)}else nt=kt(F,st,!0,Lt,Ct);return gt(F,st,nt),nt})}function J(Q,tt){const K=$(Q,tt);return K?Promise.reject(K):Promise.resolve()}function dt(Q,tt){let K;const[st,Ct,pe]=ZS(Q,tt);K=Mu(st.reverse(),"beforeRouteLeave",Q,tt);for(const P of st)P.leaveGuards.forEach(F=>{K.push(ai(F,Q,tt))});const Lt=J.bind(null,Q,tt);return K.push(Lt),Co(K).then(()=>{K=[];for(const P of u.list())K.push(ai(P,Q,tt));return K.push(Lt),Co(K)}).then(()=>{K=Mu(Ct,"beforeRouteUpdate",Q,tt);for(const P of Ct)P.updateGuards.forEach(F=>{K.push(ai(F,Q,tt))});return K.push(Lt),Co(K)}).then(()=>{K=[];for(const P of Q.matched)if(P.beforeEnter&&!tt.matched.includes(P))if(Zn(P.beforeEnter))for(const F of P.beforeEnter)K.push(ai(F,Q,tt));else K.push(ai(P.beforeEnter,Q,tt));return K.push(Lt),Co(K)}).then(()=>(Q.matched.forEach(P=>P.enterCallbacks={}),K=Mu(pe,"beforeRouteEnter",Q,tt),K.push(Lt),Co(K))).then(()=>{K=[];for(const P of f.list())K.push(ai(P,Q,tt));return K.push(Lt),Co(K)}).catch(P=>Lr(P,8)?P:Promise.reject(P))}function gt(Q,tt,K){for(const st of h.list())st(Q,tt,K)}function kt(Q,tt,K,st,Ct){const pe=$(Q,tt);if(pe)return pe;const Lt=tt===oi,P=Eo?history.state:{};K&&(st||Lt?a.replace(Q.fullPath,de({scroll:Lt&&P&&P.scroll},Ct)):a.push(Q.fullPath,Ct)),d.value=Q,At(Q,tt,K,Lt),wt()}let ut;function U(){ut||(ut=a.listen((Q,tt,K)=>{if(!ie.listening)return;const st=T(Q),Ct=V(st);if(Ct){rt(de(Ct,{replace:!0}),st).catch(js);return}g=st;const pe=d.value;Eo&&lS(ug(pe.fullPath,K.delta),fc()),dt(st,pe).catch(Lt=>Lr(Lt,12)?Lt:Lr(Lt,2)?(rt(Lt.to,st).then(P=>{Lr(P,20)&&!K.delta&&K.type===nl.pop&&a.go(-1,!1)}).catch(js),Promise.reject()):(K.delta&&a.go(-K.delta,!1),W(Lt,st,pe))).then(Lt=>{Lt=Lt||kt(st,pe,!1),Lt&&(K.delta&&!Lr(Lt,8)?a.go(-K.delta,!1):K.type===nl.pop&&Lr(Lt,20)&&a.go(-1,!1)),gt(st,pe,Lt)}).catch(js)}))}let z=Rs(),k=Rs(),H;function W(Q,tt,K){wt(Q);const st=k.list();return st.length?st.forEach(Ct=>Ct(Q,tt,K)):console.error(Q),Promise.reject(Q)}function et(){return H&&d.value!==oi?Promise.resolve():new Promise((Q,tt)=>{z.add([Q,tt])})}function wt(Q){return H||(H=!Q,U(),z.list().forEach(([tt,K])=>Q?K(Q):tt()),z.reset()),Q}function At(Q,tt,K,st){const{scrollBehavior:Ct}=t;if(!Eo||!Ct)return Promise.resolve();const pe=!K&&aS(ug(Q.fullPath,0))||(st||!K)&&history.state&&history.state.scroll||null;return Qo().then(()=>Ct(Q,tt,pe)).then(Lt=>Lt&&sS(Lt)).catch(Lt=>W(Lt,Q,tt))}const qt=Q=>a.go(Q);let Bt;const Gt=new Set,ie={currentRoute:d,listening:!0,addRoute:S,removeRoute:M,hasRoute:E,getRoutes:A,resolve:T,options:t,push:O,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(Q){const tt=this;Q.component("RouterLink",jS),Q.component("RouterView",XS),Q.config.globalProperties.$router=tt,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>j(d)}),Eo&&!Bt&&d.value===oi&&(Bt=!0,O(a.location).catch(Ct=>{}));const K={};for(const Ct in oi)K[Ct]=_t(()=>d.value[Ct]);Q.provide(eh,tt),Q.provide(l0,Pn(K)),Q.provide(rf,d);const st=Q.unmount;Gt.add(Q),Q.unmount=function(){Gt.delete(Q),Gt.size<1&&(g=oi,ut&&ut(),ut=null,d.value=oi,Bt=!1,H=!1),st()}}};return ie}function Co(t){return t.reduce((n,r)=>n.then(()=>r()),Promise.resolve())}function ZS(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=>Bo(g,h))?o.push(h):r.push(h));const d=t.matched[f];d&&(n.matched.find(g=>Bo(g,d))||a.push(d))}return[r,o,a]}function Hr(t){return t.split("-")[0]}function $o(t){return t.split("-")[1]}function gl(t){return["top","bottom"].includes(Hr(t))?"x":"y"}function nh(t){return t==="y"?"height":"width"}function kg(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(Hr(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=gl(o),d=nh(h);switch($o(o)){case"start":f[h]=f[h]-(n[d]/2-r[d]/2);break;case"end":f[h]=f[h]+(n[d]/2-r[d]/2);break}return f}const JS=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:d,y:g}=kg({...h,placement:o}),v=o,b={};for(let w=0;w<u.length;w++){const{name:S,fn:M}=u[w],{x:A,y:E,data:T,reset:L}=await M({x:d,y:g,initialPlacement:o,placement:v,strategy:a,middlewareData:b,rects:h,platform:f,elements:{reference:t,floating:n}});if(d=A??d,g=E??g,b={...b,[S]:T??{}},L){typeof L=="object"&&(L.placement&&(v=L.placement),L.rects&&(h=L.rects===!0?await f.getElementRects({reference:t,floating:n,strategy:a}):L.rects),{x:d,y:g}=kg({...h,placement:v})),w=-1;continue}}return{x:d,y:g,placement:v,strategy:a,middlewareData:b}};function QS(t){return{top:0,right:0,bottom:0,left:0,...t}}function a0(t){return typeof t!="number"?QS(t):{top:t,right:t,bottom:t,left:t}}function of(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function hc(t,n){n===void 0&&(n={});const{x:r,y:o,platform:a,rects:u,elements:f,strategy:h}=t,{boundary:d="clippingParents",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:w=0}=n,S=a0(w),A=f[b?v==="floating"?"reference":"floating":v],E=await a.getClippingClientRect({element:await a.isElement(A)?A:A.contextElement||await a.getDocumentElement({element:f.floating}),boundary:d,rootBoundary:g}),T=of(await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v==="floating"?{...u.floating,x:r,y:o}:u.reference,offsetParent:await a.getOffsetParent({element:f.floating}),strategy:h}));return{top:E.top-T.top+S.top,bottom:T.bottom-E.bottom+S.bottom,left:E.left-T.left+S.left,right:T.right-E.right+S.right}}const tk=Math.min,Ii=Math.max;function sf(t,n,r){return Ii(t,tk(n,r))}const ek=t=>({name:"arrow",options:t,async fn(n){const{element:r,padding:o=0}=t??{},{x:a,y:u,placement:f,rects:h,platform:d}=n;if(r==null)return{};const g=a0(o),v={x:a,y:u},b=Hr(f),w=gl(b),S=nh(w),M=await d.getDimensions({element:r}),A=w==="y"?"top":"left",E=w==="y"?"bottom":"right",T=h.reference[S]+h.reference[w]-v[w]-h.floating[S],L=v[w]-h.reference[w],$=await d.getOffsetParent({element:r}),O=$?w==="y"?$.clientHeight||0:$.clientWidth||0:0,G=T/2-L/2,V=g[A],rt=O-M[S]-g[E],J=O/2-M[S]/2+G,dt=sf(V,J,rt);return{data:{[w]:dt,centerOffset:J-dt}}}}),nk={left:"right",right:"left",bottom:"top",top:"bottom"};function $a(t){return t.replace(/left|right|bottom|top/g,n=>nk[n])}function c0(t,n){const r=$o(t)==="start",o=gl(t),a=nh(o);let u=o==="x"?r?"right":"left":r?"bottom":"top";return n.reference[a]>n.floating[a]&&(u=$a(u)),{main:u,cross:$a(u)}}const rk={start:"end",end:"start"};function lf(t){return t.replace(/start|end/g,n=>rk[n])}const ik=["top","right","bottom","left"],ok=ik.reduce((t,n)=>t.concat(n,n+"-start",n+"-end"),[]);function sk(t,n,r){return(t?[...r.filter(a=>$o(a)===t),...r.filter(a=>$o(a)!==t)]:r.filter(a=>Hr(a)===a)).filter(a=>t?$o(a)===t||(n?lf(a)!==a:!1):!0)}const lk=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(n){var r,o,a,u,f,h;const{x:d,y:g,rects:v,middlewareData:b,placement:w}=n,{alignment:S=null,allowedPlacements:M=ok,autoAlignment:A=!0,...E}=t;if((r=b.autoPlacement)!=null&&r.skip)return{};const T=sk(S,A,M),L=await hc(n,E),$=(o=(a=b.autoPlacement)==null?void 0:a.index)!=null?o:0,O=T[$],{main:G,cross:V}=c0(O,v);if(w!==O)return{x:d,y:g,reset:{placement:T[0]}};const rt=[L[Hr(O)],L[G],L[V]],J=[...(u=(f=b.autoPlacement)==null?void 0:f.overflows)!=null?u:[],{placement:O,overflows:rt}],dt=T[$+1];if(dt)return{data:{index:$+1,overflows:J},reset:{placement:dt}};const gt=J.slice().sort((ut,U)=>ut.overflows[0]-U.overflows[0]),kt=(h=gt.find(ut=>{let{overflows:U}=ut;return U.every(z=>z<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:kt??gt[0].placement}}}}};function ak(t){const n=$a(t);return[lf(t),n,lf(n)]}const ck=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var r,o;const{placement:a,middlewareData:u,rects:f,initialPlacement:h}=n;if((r=u.flip)!=null&&r.skip)return{};const{mainAxis:d=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",flipAlignment:w=!0,...S}=t,M=Hr(a),E=v||(M===h||!w?[$a(h)]:ak(h)),T=[h,...E],L=await hc(n,S),$=[];let O=((o=u.flip)==null?void 0:o.overflows)||[];if(d&&$.push(L[M]),g){const{main:J,cross:dt}=c0(a,f);$.push(L[J],L[dt])}if(O=[...O,{placement:a,overflows:$}],!$.every(J=>J<=0)){var G,V;const J=((G=(V=u.flip)==null?void 0:V.index)!=null?G:0)+1,dt=T[J];if(dt)return{data:{index:J,overflows:O},reset:{placement:dt}};let gt="bottom";switch(b){case"bestFit":{var rt;const kt=(rt=O.slice().sort((ut,U)=>ut.overflows.filter(z=>z>0).reduce((z,k)=>z+k,0)-U.overflows.filter(z=>z>0).reduce((z,k)=>z+k,0))[0])==null?void 0:rt.placement;kt&&(gt=kt);break}case"initialPlacement":gt=h;break}return{data:{skip:!0},reset:{placement:gt}}}return{}}}};function uk(t){let{placement:n,rects:r,value:o}=t;const a=Hr(n),u=["left","top"].includes(a)?-1:1,f=typeof o=="function"?o({...r,placement:n}):o,{mainAxis:h,crossAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};return gl(a)==="x"?{x:d,y:h*u}:{x:h*u,y:d}}const fk=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=uk({placement:a,rects:u,value:t});return{x:r+f.x,y:o+f.y,data:f}}}};function hk(t){return t==="x"?"y":"x"}const dk=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:T,y:L}=E;return{x:T,y:L}}},...d}=t,g={x:r,y:o},v=await hc(n,d),b=gl(Hr(a)),w=hk(b);let S=g[b],M=g[w];if(u){const E=b==="y"?"top":"left",T=b==="y"?"bottom":"right",L=S+v[E],$=S-v[T];S=sf(L,S,$)}if(f){const E=w==="y"?"top":"left",T=w==="y"?"bottom":"right",L=M+v[E],$=M-v[T];M=sf(L,M,$)}const A=h.fn({...n,[b]:S,[w]:M});return{...A,data:{x:A.x-r,y:A.y-o}}}}},pk=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 d=await hc(n,h),g=Hr(o),v=$o(o)==="end";let b,w;g==="top"||g==="bottom"?(b=g,w=v?"left":"right"):(w=g,b=v?"top":"bottom");const S=Ii(d.left,0),M=Ii(d.right,0),A=Ii(d.top,0),E=Ii(d.bottom,0),T={height:a.floating.height-(["left","right"].includes(o)?2*(A!==0||E!==0?A+E:Ii(d.top,d.bottom)):d[b]),width:a.floating.width-(["top","bottom"].includes(o)?2*(S!==0||M!==0?S+M:Ii(d.left,d.right)):d[w])};return f==null||f({...T,...a}),{data:{skip:!0},reset:{rects:!0}}}}};function rh(t){return(t==null?void 0:t.toString())==="[object Window]"}function bi(t){if(t==null)return window;if(!rh(t)){const n=t.ownerDocument;return n&&n.defaultView||window}return t}function dc(t){return bi(t).getComputedStyle(t)}function zr(t){return rh(t)?"":t?(t.nodeName||"").toLowerCase():""}function Ir(t){return t instanceof bi(t).HTMLElement}function Da(t){return t instanceof bi(t).Element}function gk(t){return t instanceof bi(t).Node}function u0(t){const n=bi(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function pc(t){const{overflow:n,overflowX:r,overflowY:o}=dc(t);return/auto|scroll|overlay|hidden/.test(n+o+r)}function vk(t){return["table","td","th"].includes(zr(t))}function f0(t){const n=navigator.userAgent.toLowerCase().includes("firefox"),r=dc(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 Cg=Math.min,Vs=Math.max,Ra=Math.round;function Uo(t,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect();let o=1,a=1;return n&&Ir(t)&&(o=t.offsetWidth>0&&Ra(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Ra(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 wi(t){return((gk(t)?t.ownerDocument:t.document)||window.document).documentElement}function gc(t){return rh(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function h0(t){return Uo(wi(t)).left+gc(t).scrollLeft}function mk(t){const n=Uo(t);return Ra(n.width)!==t.offsetWidth||Ra(n.height)!==t.offsetHeight}function yk(t,n,r){const o=Ir(n),a=wi(n),u=Uo(t,o&&mk(n));let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if((zr(n)!=="body"||pc(a))&&(f=gc(n)),Ir(n)){const d=Uo(n,!0);h.x=d.x+n.clientLeft,h.y=d.y+n.clientTop}else a&&(h.x=h0(a));return{x:u.left+f.scrollLeft-h.x,y:u.top+f.scrollTop-h.y,width:u.width,height:u.height}}function vc(t){return zr(t)==="html"?t:t.assignedSlot||t.parentNode||(u0(t)?t.host:null)||wi(t)}function Tg(t){return!Ir(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function bk(t){let n=vc(t);for(;Ir(n)&&!["html","body"].includes(zr(n));){if(f0(n))return n;n=n.parentNode}return null}function af(t){const n=bi(t);let r=Tg(t);for(;r&&vk(r)&&getComputedStyle(r).position==="static";)r=Tg(r);return r&&(zr(r)==="html"||zr(r)==="body"&&getComputedStyle(r).position==="static"&&!f0(r))?n:r||bk(t)||n}function Lg(t){return{width:t.offsetWidth,height:t.offsetHeight}}function wk(t){let{rect:n,offsetParent:r,strategy:o}=t;const a=Ir(r),u=wi(r);if(r===u)return n;let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((a||!a&&o!=="fixed")&&((zr(r)!=="body"||pc(u))&&(f=gc(r)),Ir(r))){const d=Uo(r,!0);h.x=d.x+r.clientLeft,h.y=d.y+r.clientTop}return{...n,x:n.x-f.scrollLeft+h.x,y:n.y-f.scrollTop+h.y}}function xk(t){const n=bi(t),r=wi(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 _k(t){var n;const r=wi(t),o=gc(t),a=(n=t.ownerDocument)==null?void 0:n.body,u=Vs(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),f=Vs(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let h=-o.scrollLeft+h0(t);const d=-o.scrollTop;return dc(a||r).direction==="rtl"&&(h+=Vs(r.clientWidth,a?a.clientWidth:0)-u),{width:u,height:f,x:h,y:d}}function d0(t){return["html","body","#document"].includes(zr(t))?t.ownerDocument.body:Ir(t)&&pc(t)?t:d0(vc(t))}function za(t,n){var r;n===void 0&&(n=[]);const o=d0(t),a=o===((r=t.ownerDocument)==null?void 0:r.body),u=bi(o),f=a?[u].concat(u.visualViewport||[],pc(o)?o:[]):o,h=n.concat(f);return a?h:h.concat(za(vc(f)))}function Sk(t,n){const r=n.getRootNode==null?void 0:n.getRootNode();if(t.contains(n))return!0;if(r&&u0(r)){let o=n;do{if(o&&t===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function kk(t){const n=Uo(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 Eg(t,n){return n==="viewport"?of(xk(t)):Da(n)?kk(n):of(_k(wi(t)))}function Ck(t){const n=za(vc(t)),o=["absolute","fixed"].includes(dc(t).position)&&Ir(t)?af(t):t;return Da(o)?n.filter(a=>Da(a)&&Sk(a,o)&&zr(a)!=="body"):[]}function Tk(t){let{element:n,boundary:r,rootBoundary:o}=t;const u=[...r==="clippingParents"?Ck(n):[].concat(r),o],f=u[0],h=u.reduce((d,g)=>{const v=Eg(n,g);return d.top=Vs(v.top,d.top),d.right=Cg(v.right,d.right),d.bottom=Cg(v.bottom,d.bottom),d.left=Vs(v.left,d.left),d},Eg(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 Lk={getElementRects:t=>{let{reference:n,floating:r,strategy:o}=t;return{reference:yk(n,af(r),o),floating:{...Lg(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>wk(t),getOffsetParent:t=>{let{element:n}=t;return af(n)},isElement:t=>Da(t),getDocumentElement:t=>{let{element:n}=t;return wi(n)},getClippingClientRect:t=>Tk(t),getDimensions:t=>{let{element:n}=t;return Lg(n)},getClientRects:t=>{let{element:n}=t;return n.getClientRects()}},Ek=(t,n,r)=>JS(t,n,{platform:Lk,...r});var Ak=Object.defineProperty,Mk=Object.defineProperties,Nk=Object.getOwnPropertyDescriptors,Ag=Object.getOwnPropertySymbols,Pk=Object.prototype.hasOwnProperty,Ok=Object.prototype.propertyIsEnumerable,Mg=(t,n,r)=>n in t?Ak(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Pr=(t,n)=>{for(var r in n||(n={}))Pk.call(n,r)&&Mg(t,r,n[r]);if(Ag)for(var r of Ag(n))Ok.call(n,r)&&Mg(t,r,n[r]);return t},vl=(t,n)=>Mk(t,Nk(n));function p0(t,n){for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(typeof n[r]=="object"&&t[r]?p0(t[r],n[r]):t[r]=n[r])}const Gi={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 jo(t,n){let r=Gi.themes[t]||{},o;do o=r[n],typeof o>"u"?r.$extend?r=Gi.themes[r.$extend]||{}:(r=null,o=Gi[n]):r=null;while(r);return o}function $k(t){const n=[t];let r=Gi.themes[t]||{};do r.$extend&&!r.$resetCss?(n.push(r.$extend),r=Gi.themes[r.$extend]||{}):r=null;while(r);return n.map(o=>`v-popper--theme-${o}`)}let Go=!1;if(typeof window<"u"){Go=!1;try{const t=Object.defineProperty({},"passive",{get(){Go=!0}});window.addEventListener("test",null,t)}catch{}}let g0=!1;typeof window<"u"&&typeof navigator<"u"&&(g0=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const v0=["auto","top","bottom","left","right"].reduce((t,n)=>t.concat([n,`${n}-start`,`${n}-end`]),[]),Ng={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Pg={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function Dk(t,n){const r=t.indexOf(n);r!==-1&&t.splice(r,1)}function Nu(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const ur=[];let To=null,cf=function(){};typeof window<"u"&&(cf=window.Element);function he(t){return function(n){return jo(n.theme,t)}}var m0=()=>re({name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:he("disabled")},placement:{type:String,default:he("placement"),validator:t=>v0.includes(t)},delay:{type:[String,Number,Object],default:he("delay")},distance:{type:[Number,String],default:he("distance")},skidding:{type:[Number,String],default:he("skidding")},triggers:{type:Array,default:he("triggers")},showTriggers:{type:[Array,Function],default:he("showTriggers")},hideTriggers:{type:[Array,Function],default:he("hideTriggers")},popperTriggers:{type:Array,default:he("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:he("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:he("popperHideTriggers")},container:{type:[String,Object,cf,Boolean],default:he("container")},boundary:{type:[String,cf],default:he("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:he("strategy")},autoHide:{type:Boolean,default:he("autoHide")},handleResize:{type:Boolean,default:he("handleResize")},instantMove:{type:Boolean,default:he("instantMove")},eagerMount:{type:Boolean,default:he("eagerMount")},popperClass:{type:[String,Array,Object],default:he("popperClass")},computeTransformOrigin:{type:Boolean,default:he("computeTransformOrigin")},autoMinSize:{type:Boolean,default:he("autoMinSize")},autoMaxSize:{type:Boolean,default:he("autoMaxSize")},preventOverflow:{type:Boolean,default:he("preventOverflow")},overflowPadding:{type:[Number,String],default:he("overflowPadding")},arrowPadding:{type:[Number,String],default:he("arrowPadding")},arrowOverflow:{type:Boolean,default:he("arrowOverflow")},flip:{type:Boolean,default:he("flip")},shift:{type:Boolean,default:he("shift")},shiftCrossAxis:{type:Boolean,default:he("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:vl(Pr({},this.classes),{popperClass:this.popperClass}),result:this.result}}},watch:Pr({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(fk({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");r?n.middleware.push(lk({alignment:(t=this.placement.split("-")[1])!=null?t:""})):n.placement=this.placement,this.preventOverflow&&(this.shift&&n.middleware.push(dk({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&n.middleware.push(ck({padding:this.overflowPadding,boundary:this.boundary}))),n.middleware.push(ek({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&n.middleware.push({name:"arrowOverflow",fn:({placement:a,rects:u,middlewareData:f})=>{let h;const{centerOffset:d}=f.arrow;return a.startsWith("top")||a.startsWith("bottom")?h=Math.abs(d)>u.reference.width/2:h=Math.abs(d)>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 d,g;return u.startsWith("top")||u.startsWith("bottom")?d=a.reference.width:g=a.reference.height,this.$_innerNode.style.minWidth=d!=null?`${d}px`:null,this.$_innerNode.style.minHeight=g!=null?`${g}px`:null,{data:{skip:!0},reset:{rects:!0}}}}),this.autoMaxSize&&n.middleware.push(pk({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 Ek(this.$_referenceNode,this.$_popperNode,n);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:Pr(Pr({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(t=null,n=!1){if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),To&&this.instantMove&&To.instantMove){To.$_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&&(To=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 Nu(),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<ur.length;r++)n=ur[r],n.showGroup!==t&&(n.hide(),n.$emit("close-group"))}ur.push(this),this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Nu(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(t=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,Dk(ur,this),To===this&&(To=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const n=jo(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 Nu(),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,Go?{passive:!0}:void 0))},n=(a,u,f,h,d)=>{let g=f;h!=null&&(g=typeof h=="function"?h(g):h),g.forEach(v=>{const b=u[v];b&&t(a,b,d)})},r=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};n(this.$_targetNodes,Ng,this.triggers,this.showTriggers,r),n([this.$_popperNode],Ng,this.popperTriggers,this.popperShowTriggers,r);const o=a=>{a.usedByTooltip||this.hide({event:a})};n(this.$_targetNodes,Pg,this.triggers,this.hideTriggers,o),n([this.$_popperNode],Pg,this.popperTriggers,this.popperHideTriggers,o),t([...za(this.$_referenceNode),...za(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"&&(g0?(document.addEventListener("touchstart",Og,Go?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",zk,Go?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Og,!0),window.addEventListener("click",Rk,!0)),window.addEventListener("resize",Ik));function Og(t){for(let n=0;n<ur.length;n++){const r=ur[n],o=r.popperNode();r.$_mouseDownContains=o.contains(t.target)}}function Rk(t){y0(t)}function zk(t){y0(t,!0)}function y0(t,n=!1){for(let r=0;r<ur.length;r++){const o=ur[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 Ik(t){for(let n=0;n<ur.length;n++)ur[n].$_computePosition(t)}function Fk(){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 wa;function uf(){uf.init||(uf.init=!0,wa=Fk()!==-1)}var mc={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){uf(),Qo(()=>{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",wa&&this.$el.appendChild(t),t.data="about:blank",wa||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&&(!wa&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const qk=d1();Sm("data-v-b329ee4c");const Hk={class:"resize-observer",tabindex:"-1"};km();const Bk=qk((t,n,r,o,a,u)=>(at(),Qt("div",Hk)));mc.render=Bk;mc.__scopeId="data-v-b329ee4c";mc.__file="src/components/ResizeObserver.vue";var b0={computed:{themeClass(){return $k(this.theme)}}},ih=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r};const Wk=re({name:"VPopperContent",components:{ResizeObserver:mc},mixins:[b0],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}}}),Uk=["id","aria-hidden","tabindex","data-popper-placement"],jk={ref:"inner",class:"v-popper__inner"},Gk=ht("div",{class:"v-popper__arrow-outer"},null,-1),Vk=ht("div",{class:"v-popper__arrow-inner"},null,-1),Kk=[Gk,Vk];function Xk(t,n,r,o,a,u){const f=Ki("ResizeObserver");return at(),Et("div",{id:t.popperId,ref:"popover",class:ve(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result.arrow.overflow}]]),style: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]=tf(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[ht("div",{class:"v-popper__wrapper",style:kn({transformOrigin:t.result.transformOrigin})},[ht("div",jk,[t.mounted?(at(),Et(ce,{key:0},[ht("div",null,[Yn(t.$slots,"default")]),t.handleResize?(at(),Qt(f,{key:0,onNotify:n[0]||(n[0]=h=>t.$emit("resize",h))})):le("",!0)],64)):le("",!0)],512),ht("div",{ref:"arrow",class:"v-popper__arrow-container",style:kn({left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)})},Kk,4)],4)],46,Uk)}var w0=ih(Wk,[["render",Xk]]),x0={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 Yk=re({name:"VPopperWrapper",components:{Popper:m0(),PopperContent:w0},mixins:[x0,b0],inheritAttrs:!1,props:{theme:{type:String,default:null}},computed:{finalTheme(){var t;return(t=this.theme)!=null?t:this.$options.vPopperTheme},popperAttrs(){const t=Pr({},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 Zk(t,n,r,o,a,u){const f=Ki("PopperContent"),h=Ki("Popper");return at(),Qt(h,gi({ref:"popper"},t.popperAttrs,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"reference-node":()=>t.$refs.reference,"popper-node":()=>t.$refs.popperContent.$el}),{default:Zt(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:w,show:S,hide:M,handleResize:A,onResize:E,classes:T,result:L})=>[ht("div",{ref:"reference",class:ve(["v-popper",[t.$attrs.class,t.themeClass,{"v-popper--shown":g}]]),style:kn(t.$attrs.style)},[Yn(t.$slots,"default",{shown:g,show:S,hide:M}),zt(f,{ref:"popperContent","popper-id":d,theme:t.finalTheme,shown:g,mounted:v,"skip-transition":b,"auto-hide":w,"handle-resize":A,classes:T,result:L,onHide:M,onResize:E},{default:Zt(()=>[Yn(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 oh=ih(Yk,[["render",Zk]]);const $g=re(vl(Pr({},oh),{name:"VDropdown",vPopperTheme:"dropdown"})),Dg=re(vl(Pr({},oh),{name:"VMenu",vPopperTheme:"menu"})),Rg=re(vl(Pr({},oh),{name:"VTooltip",vPopperTheme:"tooltip"})),Jk=re({name:"VTooltipDirective",components:{Popper:m0(),PopperContent:w0},mixins:[x0],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>jo(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>jo(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"],tC=["textContent"];function eC(t,n,r,o,a,u){const f=Ki("PopperContent"),h=Ki("Popper");return at(),Qt(h,gi({ref:"popper"},t.$attrs,{theme:t.theme,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:Zt(({popperId:d,isShown:g,shouldMountContent:v,skipTransition:b,autoHide:w,hide:S,handleResize:M,onResize:A,classes:E,result:T})=>[zt(f,{ref:"popperContent",class:ve({"v-popper--tooltip-loading":t.loading}),"popper-id":d,theme:t.theme,shown:g,mounted:v,"skip-transition":b,"auto-hide":w,"handle-resize":M,classes:E,result:T,onHide:S,onResize:A},{default:Zt(()=>[t.html?(at(),Et("div",{key:0,innerHTML:t.finalContent},null,8,Qk)):(at(),Et("div",{key:1,textContent:Xt(t.finalContent)},null,8,tC))]),_: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 nC=ih(Jk,[["render",eC]]);const _0="v-popper--has-tooltip";function rC(t,n){let r=t.placement;if(!r&&n)for(const o of v0)n[o]&&(r=o);return r||(r=jo(t.theme||"tooltip","placement")),r}function S0(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=rC(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let Pu,rl,iC=0;function oC(){if(Pu)return;rl=Kt([]),Pu=Ym({name:"VTooltipDirectiveApp",setup(){return{directives:rl}},render(){return this.directives.map(n=>pl(nC,vl(Pr({},n.options),{shown:n.shown.value||n.options.shown,key:n.id})))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),Pu.mount(t)}function k0(t,n,r){oC();const o=Kt(S0(t,n,r)),a=Kt(!1),u={id:iC++,options:o,shown:a};return rl.value.push(u),t.classList&&t.classList.add(_0),t.$_popper={options:o,item:u,show(){a.value=!0},hide(){a.value=!1}}}function sh(t){if(t.$_popper){const n=rl.value.indexOf(t.$_popper.item);n!==-1&&rl.value.splice(n,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(_0)}function zg(t,{value:n,oldValue:r,modifiers:o}){const a=S0(t,n,o);if(!a.content||jo(a.theme||"tooltip","disabled"))sh(t);else{let u;t.$_popper?(u=t.$_popper,u.options.value=a):u=k0(t,n,o),typeof n.shown<"u"&&n.shown!==t.$_popperOldShown&&(t.$_popperOldShown=n.shown,n.shown?u.show():u.hide())}}var C0={beforeMount:zg,updated:zg,beforeUnmount(t){sh(t)}};function Ig(t){t.addEventListener("click",T0),t.addEventListener("touchstart",L0,Go?{passive:!0}:!1)}function Fg(t){t.removeEventListener("click",T0),t.removeEventListener("touchstart",L0),t.removeEventListener("touchend",E0),t.removeEventListener("touchcancel",A0)}function T0(t){const n=t.currentTarget;t.closePopover=!n.$_vclosepopover_touch,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}function L0(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",E0),n.addEventListener("touchcancel",A0)}}function E0(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 A0(t){const n=t.currentTarget;n.$_vclosepopover_touch=!1}var sC={beforeMount(t,{value:n,modifiers:r}){t.$_closePopoverModifiers=r,(typeof n>"u"||n)&&Ig(t)},updated(t,{value:n,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,n!==r&&(typeof n>"u"||n?Ig(t):Fg(t))},beforeUnmount(t){Fg(t)}};const lC=C0;function aC(t,n={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,p0(Gi,n),t.directive("tooltip",C0),t.directive("close-popper",sC),t.component("v-tooltip",Rg),t.component("VTooltip",Rg),t.component("v-dropdown",$g),t.component("VDropdown",$g),t.component("v-menu",Dg),t.component("VMenu",Dg))}const M0={version:"2.0.0-y.0",install:aC,options:Gi};var qg;const N0=typeof window<"u",cC=t=>typeof t<"u",P0=t=>typeof t=="function",uC=t=>typeof t=="string",Vo=()=>{};N0&&((qg=window==null?void 0:window.navigator)==null?void 0:qg.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Xi(t){return typeof t=="function"?t():j(t)}function lh(t,n){function r(...o){return new Promise((a,u)=>{Promise.resolve(t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(a).catch(u)})}return r}const O0=t=>t();function $0(t,n={}){let r,o,a=Vo;const u=h=>{clearTimeout(h),a(),a=Vo};return h=>{const d=Xi(t),g=Xi(n.maxWait);return r&&u(r),d<=0||g!==void 0&&g<=0?(o&&(u(o),o=null),Promise.resolve(h())):new Promise((v,b)=>{a=n.rejectOnCancel?b:v,g&&!o&&(o=setTimeout(()=>{r&&u(r),o=null,v(h())},g)),r=setTimeout(()=>{o&&u(o),o=null,v(h())},d)})}}function fC(t,n=!0,r=!0,o=!1){let a=0,u,f=!0,h=Vo,d;const g=()=>{u&&(clearTimeout(u),u=void 0,h(),h=Vo)};return b=>{const w=Xi(t),S=Date.now()-a,M=()=>d=b();if(g(),w<=0)return a=Date.now(),M();if(S>w&&(r||!f))a=Date.now(),M();else if(n)return new Promise((A,E)=>{h=o?E:A,u=setTimeout(()=>{a=Date.now(),f=!0,A(M()),g()},w-S)});return!r&&!u&&(u=setTimeout(()=>f=!0,w)),f=!1,d}}function hC(t=O0){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 dC(t){return t}function ah(t){return Ex()?(Ax(t),!0):!1}function Hg(t,n=200,r={}){return lh($0(n,r),t)}function pC(t,n=200,r=!1,o=!0,a=!1){return lh(fC(n,r,o,a),t)}function gC(t,n=200,r=!0,o=!0){if(n<=0)return t;const a=Kt(t.value),u=pC(()=>{a.value=t.value},n,r,o);return Fe(t,()=>u()),a}function vC(t){return typeof t=="function"?_t(t):Kt(t)}function ch(t,n=!0){cc()?dl(t):n?t():Qo(t)}function mC(t=!1,n={}){const{truthyValue:r=!0,falsyValue:o=!1}=n,a=Ee(t),u=Kt(t);function f(h){if(arguments.length)return u.value=h,u.value;{const d=Xi(r);return u.value=u.value===d?Xi(o):d,u.value}}return a?f:[u,f]}var Bg=Object.getOwnPropertySymbols,yC=Object.prototype.hasOwnProperty,bC=Object.prototype.propertyIsEnumerable,wC=(t,n)=>{var r={};for(var o in t)yC.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Bg)for(var o of Bg(t))n.indexOf(o)<0&&bC.call(t,o)&&(r[o]=t[o]);return r};function D0(t,n,r={}){const o=r,{eventFilter:a=O0}=o,u=wC(o,["eventFilter"]);return Fe(t,lh(a,n),u)}var xC=Object.defineProperty,_C=Object.defineProperties,SC=Object.getOwnPropertyDescriptors,Ia=Object.getOwnPropertySymbols,R0=Object.prototype.hasOwnProperty,z0=Object.prototype.propertyIsEnumerable,Wg=(t,n,r)=>n in t?xC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,kC=(t,n)=>{for(var r in n||(n={}))R0.call(n,r)&&Wg(t,r,n[r]);if(Ia)for(var r of Ia(n))z0.call(n,r)&&Wg(t,r,n[r]);return t},CC=(t,n)=>_C(t,SC(n)),TC=(t,n)=>{var r={};for(var o in t)R0.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ia)for(var o of Ia(t))n.indexOf(o)<0&&z0.call(t,o)&&(r[o]=t[o]);return r};function LC(t,n,r={}){const o=r,{debounce:a=0,maxWait:u=void 0}=o,f=TC(o,["debounce","maxWait"]);return D0(t,n,CC(kC({},f),{eventFilter:$0(a,{maxWait:u})}))}function EC(t,n,r){const o=Fe(t,(...a)=>(Qo(()=>o()),n(...a)),r)}var AC=Object.defineProperty,MC=Object.defineProperties,NC=Object.getOwnPropertyDescriptors,Fa=Object.getOwnPropertySymbols,I0=Object.prototype.hasOwnProperty,F0=Object.prototype.propertyIsEnumerable,Ug=(t,n,r)=>n in t?AC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,PC=(t,n)=>{for(var r in n||(n={}))I0.call(n,r)&&Ug(t,r,n[r]);if(Fa)for(var r of Fa(n))F0.call(n,r)&&Ug(t,r,n[r]);return t},OC=(t,n)=>MC(t,NC(n)),$C=(t,n)=>{var r={};for(var o in t)I0.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Fa)for(var o of Fa(t))n.indexOf(o)<0&&F0.call(t,o)&&(r[o]=t[o]);return r};function q0(t,n,r={}){const o=r,{eventFilter:a}=o,u=$C(o,["eventFilter"]),{eventFilter:f,pause:h,resume:d,isActive:g}=hC(a);return{stop:D0(t,n,OC(PC({},u),{eventFilter:f})),pause:h,resume:d,isActive:g}}function DC(t,n,r){let o;Ee(r)?o={evaluating:r}:o=r||{};const{lazy:a=!1,evaluating:u=void 0,onError:f=Vo}=o,h=Kt(!a),d=Kt(n);let g=0;return Vf(async v=>{if(!h.value)return;g++;const b=g;let w=!1;u&&Promise.resolve().then(()=>{u.value=!0});try{const S=await t(M=>{v(()=>{u&&(u.value=!1),w||M()})});b===g&&(d.value=S)}catch(S){f(S)}finally{u&&b===g&&(u.value=!1),w=!0}}),a?_t(()=>(h.value=!0,d.value)):d}function H0(t){var n;const r=Xi(t);return(n=r==null?void 0:r.$el)!=null?n:r}const dr=N0?window:void 0;function Ko(...t){let n,r,o,a;if(uC(t[0])||Array.isArray(t[0])?([r,o,a]=t,n=dr):[n,r,o,a]=t,!n)return Vo;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const u=[],f=()=>{u.forEach(v=>v()),u.length=0},h=(v,b,w)=>(v.addEventListener(b,w,a),()=>v.removeEventListener(b,w,a)),d=Fe(()=>H0(n),v=>{f(),v&&u.push(...r.flatMap(b=>o.map(w=>h(v,b,w))))},{immediate:!0,flush:"post"}),g=()=>{d(),f()};return ah(g),g}const RC=t=>typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0;function zC(...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=RC(n);return Ko(a,u,g=>{h(g)&&r(g)},f)}function B0(t,n=!1){const r=Kt(),o=()=>r.value=Boolean(t());return o(),ch(o,n),r}function IC(t,n={}){const{window:r=dr}=n,o=B0(()=>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(vC(t).value),u.value=a.matches,"addEventListener"in a?a.addEventListener("change",h):a.addListener(h))};return Vf(h),ah(()=>f()),u}function FC(t){return JSON.parse(JSON.stringify(t))}const ff=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},hf="__vueuse_ssr_handlers__";ff[hf]=ff[hf]||{};const qC=ff[hf];function W0(t,n){return qC[t]||n}function HC(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}var BC=Object.defineProperty,jg=Object.getOwnPropertySymbols,WC=Object.prototype.hasOwnProperty,UC=Object.prototype.propertyIsEnumerable,Gg=(t,n,r)=>n in t?BC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Vg=(t,n)=>{for(var r in n||(n={}))WC.call(n,r)&&Gg(t,r,n[r]);if(jg)for(var r of jg(n))UC.call(n,r)&&Gg(t,r,n[r]);return t};const jC={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 GC(t,n,r,o={}){var a;const{flush:u="pre",deep:f=!0,listenToStorageChanges:h=!0,writeDefaults:d=!0,mergeDefaults:g=!1,shallow:v,window:b=dr,eventFilter:w,onError:S=rt=>{console.error(rt)}}=o,M=(v?fl:Kt)(n);if(!r)try{r=W0("getDefaultStorage",()=>{var rt;return(rt=dr)==null?void 0:rt.localStorage})()}catch(rt){S(rt)}if(!r)return M;const A=Xi(n),E=HC(A),T=(a=o.serializer)!=null?a:jC[E],{pause:L,resume:$}=q0(M,()=>O(M.value),{flush:u,deep:f,eventFilter:w});return b&&h&&Ko(b,"storage",V),V(),M;function O(rt){try{if(rt==null)r.removeItem(t);else{const J=T.write(rt),dt=r.getItem(t);dt!==J&&(r.setItem(t,J),b&&(b==null||b.dispatchEvent(new StorageEvent("storage",{key:t,oldValue:dt,newValue:J,storageArea:r}))))}}catch(J){S(J)}}function G(rt){const J=rt?rt.newValue:r.getItem(t);if(J==null)return d&&A!==null&&r.setItem(t,T.write(A)),A;if(!rt&&g){const dt=T.read(J);return P0(g)?g(dt,A):E==="object"&&!Array.isArray(dt)?Vg(Vg({},A),dt):dt}else return typeof J!="string"?J:T.read(J)}function V(rt){if(!(rt&&rt.storageArea!==r)){if(rt&&rt.key==null){M.value=A;return}if(!(rt&&rt.key!==t)){L();try{M.value=G(rt)}catch(J){S(J)}finally{rt?Qo($):$()}}}}}function U0(t){return IC("(prefers-color-scheme: dark)",t)}var VC=Object.defineProperty,Kg=Object.getOwnPropertySymbols,KC=Object.prototype.hasOwnProperty,XC=Object.prototype.propertyIsEnumerable,Xg=(t,n,r)=>n in t?VC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,YC=(t,n)=>{for(var r in n||(n={}))KC.call(n,r)&&Xg(t,r,n[r]);if(Kg)for(var r of Kg(n))XC.call(n,r)&&Xg(t,r,n[r]);return t};function ZC(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:d,emitAuto:g}=t,v=YC({auto:"",light:"light",dark:"dark"},t.modes||{}),b=U0({window:a}),w=_t(()=>b.value?"dark":"light"),S=d||(f==null?Kt(o):GC(f,o,u,{window:a,listenToStorageChanges:h})),M=_t({get(){return S.value==="auto"&&!g?w.value:S.value},set(L){S.value=L}}),A=W0("updateHTMLAttrs",(L,$,O)=>{const G=a==null?void 0:a.document.querySelector(L);if(!!G)if($==="class"){const V=O.split(/\s/g);Object.values(v).flatMap(rt=>(rt||"").split(/\s/g)).filter(Boolean).forEach(rt=>{V.includes(rt)?G.classList.add(rt):G.classList.remove(rt)})}else G.setAttribute($,O)});function E(L){var $;const O=L==="auto"?w.value:L;A(n,r,($=v[O])!=null?$:O)}function T(L){t.onChanged?t.onChanged(L,E):E(L)}return Fe(M,T,{flush:"post",immediate:!0}),g&&Fe(w,()=>T(M.value),{flush:"post"}),ch(()=>T(M.value)),M}var JC=Object.defineProperty,QC=Object.defineProperties,tT=Object.getOwnPropertyDescriptors,Yg=Object.getOwnPropertySymbols,eT=Object.prototype.hasOwnProperty,nT=Object.prototype.propertyIsEnumerable,Zg=(t,n,r)=>n in t?JC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,rT=(t,n)=>{for(var r in n||(n={}))eT.call(n,r)&&Zg(t,r,n[r]);if(Yg)for(var r of Yg(n))nT.call(n,r)&&Zg(t,r,n[r]);return t},iT=(t,n)=>QC(t,tT(n));function oT(t={}){const{valueDark:n="dark",valueLight:r="",window:o=dr}=t,a=ZC(iT(rT({},t),{onChanged:(h,d)=>{var g;t.onChanged?(g=t.onChanged)==null||g.call(t,h==="dark"):d(h)},modes:{dark:n,light:r}})),u=U0({window:o});return _t({get(){return a.value==="dark"},set(h){h===u.value?a.value="auto":a.value=h?"dark":"light"}})}var Jg=Object.getOwnPropertySymbols,sT=Object.prototype.hasOwnProperty,lT=Object.prototype.propertyIsEnumerable,aT=(t,n)=>{var r={};for(var o in t)sT.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Jg)for(var o of Jg(t))n.indexOf(o)<0&&lT.call(t,o)&&(r[o]=t[o]);return r};function cT(t,n,r={}){const o=r,{window:a=dr}=o,u=aT(o,["window"]);let f;const h=B0(()=>a&&"ResizeObserver"in a),d=()=>{f&&(f.disconnect(),f=void 0)},g=Fe(()=>H0(t),b=>{d(),h.value&&a&&b&&(f=new ResizeObserver(n),f.observe(b,u))},{immediate:!0,flush:"post"}),v=()=>{d(),g()};return ah(v),{isSupported:h,stop:v}}var Qg;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(Qg||(Qg={}));var uT=Object.defineProperty,tv=Object.getOwnPropertySymbols,fT=Object.prototype.hasOwnProperty,hT=Object.prototype.propertyIsEnumerable,ev=(t,n,r)=>n in t?uT(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,dT=(t,n)=>{for(var r in n||(n={}))fT.call(n,r)&&ev(t,r,n[r]);if(tv)for(var r of tv(n))hT.call(n,r)&&ev(t,r,n[r]);return t};const pT={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]};dT({linear:dC},pT);function gT(t="history",n={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:a=!1,write:u=!0,window:f=dr}=n;if(!f)return Pn(r);const h=Pn({});function d(){if(t==="history")return f.location.search||"";if(t==="hash"){const T=f.location.hash||"",L=T.indexOf("?");return L>0?T.slice(L):""}else return(f.location.hash||"").replace(/^#/,"")}function g(T){const L=T.toString();if(t==="history")return`${L?`?${L}`:""}${f.location.hash||""}`;if(t==="hash-params")return`${f.location.search||""}${L?`#${L}`:""}`;const $=f.location.hash||"#",O=$.indexOf("?");return O>0?`${$.slice(0,O)}${L?`?${L}`:""}`:`${$}${L?`?${L}`:""}`}function v(){return new URLSearchParams(d())}function b(T){const L=new Set(Object.keys(h));for(const $ of T.keys()){const O=T.getAll($);h[$]=O.length>1?O:T.get($)||"",L.delete($)}Array.from(L).forEach($=>delete h[$])}const{pause:w,resume:S}=q0(h,()=>{const T=new URLSearchParams("");Object.keys(h).forEach(L=>{const $=h[L];Array.isArray($)?$.forEach(O=>T.append(L,O)):o&&$==null||a&&!$?T.delete(L):T.set(L,$)}),M(T)},{deep:!0});function M(T,L){w(),L&&b(T),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(T)),S()}function A(){!u||M(v(),!0)}Ko(f,"popstate",A,!1),t!=="history"&&Ko(f,"hashchange",A,!1);const E=v();return E.keys().next().value?b(E):Object.assign(h,r),h}function vT(t,n,r,o={}){var a,u,f;const{clone:h=!1,passive:d=!1,eventName:g,deep:v=!1,defaultValue:b}=o,w=cc(),S=r||(w==null?void 0:w.emit)||((a=w==null?void 0:w.$emit)==null?void 0:a.bind(w))||((f=(u=w==null?void 0:w.proxy)==null?void 0:u.$emit)==null?void 0:f.bind(w==null?void 0:w.proxy));let M=g;n||(n="modelValue"),M=g||M||`update:${n.toString()}`;const A=T=>h?P0(h)?h(T):FC(T):T,E=()=>cC(t[n])?A(t[n]):b;if(d){const T=E(),L=Kt(T);return Fe(()=>t[n],$=>L.value=A($)),Fe(L,$=>{($!==t[n]||v)&&S(M,$)},{deep:v}),L}else return _t({get(){return E()},set(T){S(M,T)}})}function mT(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),d=()=>{n&&(u?(f.value=n.innerWidth,h.value=n.innerHeight):(f.value=n.document.documentElement.clientWidth,h.value=n.document.documentElement.clientHeight))};return d(),ch(d),Ko("resize",d,{passive:!0}),a&&Ko("orientationchange",d,{passive:!0}),{width:f,height:h}}const yT=6e4;function bT(t,n){const{post:r,on:o,eventNames:a=[],serialize:u=v=>v,deserialize:f=v=>v,timeout:h=yT}=n,d=new Map,g=new Proxy({},{get(v,b){const w=(...M)=>{r(u({m:b,a:M,t:"q"}))};if(a.includes(b))return w.asEvent=w,w;const S=(...M)=>new Promise((A,E)=>{const T=xT();d.set(T,{resolve:A,reject:E}),r(u({m:b,a:M,i:T,t:"q"})),h>=0&&setTimeout(()=>{E(new Error(`[birpc] timeout on calling "${b}"`)),d.delete(T)},h)});return S.asEvent=w,S}});return o(async(v,...b)=>{const w=f(v);if(w.t==="q"){const{m:S,a:M}=w;let A,E;try{A=await t[S].apply(g,M)}catch(T){E=T}w.i&&r(u({t:"s",i:w.i,r:A,e:E}),...b)}else{const{i:S,r:M,e:A}=w,E=d.get(S);A?E==null||E.reject(A):E==null||E.resolve(M),d.delete(S)}}),g}const wT="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function xT(t=21){let n="",r=t;for(;r--;)n+=wT[Math.random()*64|0];return n}const{parse:_T,stringify:ST}=JSON,{keys:kT}=Object,il=String,j0="string",nv={},qa="object",G0=(t,n)=>n,CT=t=>t instanceof il?il(t):t,TT=(t,n)=>typeof n===j0?new il(n):n,V0=(t,n,r,o)=>{const a=[];for(let u=kT(r),{length:f}=u,h=0;h<f;h++){const d=u[h],g=r[d];if(g instanceof il){const v=t[g];typeof v===qa&&!n.has(v)?(n.add(v),r[d]=nv,a.push({k:d,a:[t,n,v,o]})):r[d]=o.call(r,d,v)}else r[d]!==nv&&(r[d]=o.call(r,d,g))}for(let{length:u}=a,f=0;f<u;f++){const{k:h,a:d}=a[f];r[h]=o.call(r,h,V0.apply(null,d))}return r},rv=(t,n,r)=>{const o=il(n.push(r)-1);return t.set(r,o),o},K0=(t,n)=>{const r=_T(t,TT).map(CT),o=r[0],a=n||G0,u=typeof o===qa&&o?V0(r,new Set,o,a):o;return a.call({"":u},"",u)},LT=(t,n,r)=>{const o=n&&typeof n===qa?(v,b)=>v===""||-1<n.indexOf(v)?b:void 0:n||G0,a=new Map,u=[],f=[];let h=+rv(a,u,o.call({"":t},"",t)),d=!h;for(;h<u.length;)d=!0,f[h]=ST(u[h++],g,r);return"["+f.join(",")+"]";function g(v,b){if(d)return d=!d,b;const w=o.call(this,v,b);switch(typeof w){case qa:if(w===null)return w;case j0:return a.get(w)||rv(a,u,w)}return w}},ET=t=>typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t;class X0{constructor(){ei(this,"filesMap",new Map);ei(this,"pathsSet",new Set);ei(this,"collectingPromise");ei(this,"idMap",new Map);ei(this,"taskFileMap",new WeakMap);ei(this,"errorsSet",new Set);ei(this,"processTimeoutCauses",new Set)}catchError(n,r){if(ET(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())}addProcessTimeoutCause(n){this.processTimeoutCauses.add(n)}getProcessTimeoutCauses(){return Array.from(this.processTimeoutCauses.values())}getPaths(){return Array.from(this.pathsSet)}getFiles(n){return n?n.map(r=>this.filesMap.get(r)).filter(Boolean):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))}}function Y0(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}var Yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function df(t){return t.type==="test"||t.type==="custom"}function Z0(t){return Y0(t).flatMap(n=>df(n)?[n]:n.tasks.flatMap(r=>df(r)?[r]:Z0(r)))}function uh(t=[]){return Y0(t).flatMap(n=>df(n)?[n]:[n,...uh(n.tasks)])}function AT(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 yc(t){return Z0(t).some(n=>{var r,o;return(o=(r=n.result)==null?void 0:r.errors)==null?void 0:o.some(a=>a&&a.message&&a.message.match(/Snapshot .* mismatched/))})}function MT(t,n={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:a=2e3,reconnectTries:u=10,reactive:f=T=>T,WebSocketConstructor:h=globalThis.WebSocket}=n;let d=u;const g=f({ws:new h(t),state:new X0,waitForConnection:E,reconnect:M});g.state.filesMap=f(g.state.filesMap),g.state.idMap=f(g.state.idMap);let v;const b={onPathsCollected(T){var L;g.state.collectPaths(T),(L=r.onPathsCollected)==null||L.call(r,T)},onCollected(T){var L;g.state.collectFiles(T),(L=r.onCollected)==null||L.call(r,T)},onTaskUpdate(T){var L;g.state.updateTasks(T),(L=r.onTaskUpdate)==null||L.call(r,T)},onUserConsoleLog(T){g.state.updateUserLog(T)},onFinished(T){var L;(L=r.onFinished)==null||L.call(r,T)}},w={post:T=>g.ws.send(T),on:T=>v=T,serialize:LT,deserialize:K0};g.rpc=bT(b,w);let S;function M(T=!1){T&&(d=u),g.ws=new h(t),A()}function A(){S=new Promise(T=>{g.ws.addEventListener("open",()=>{d=u,T()})}),g.ws.addEventListener("message",T=>{v(T.data)}),g.ws.addEventListener("close",()=>{d-=1,o&&d>0&&setTimeout(M,a)})}A();function E(){return S}return g}const NT=location.port,PT=[location.hostname,NT].filter(Boolean).join(":"),OT=`${location.protocol==="https:"?"wss:":"ws:"}//${PT}/__vitest_api__`,pr=!!window.METADATA_PATH,$T=pr?"./":"/__vitest__/",J0=gT("hash-params",{initialValue:{file:"",view:null}}),Nr=Bf(J0,"file"),lr=Bf(J0,"view"),iv=()=>{},si=()=>Promise.resolve();function DT(){const t=Pn({state:new X0,waitForConnection:f,reconnect:a,ws:new EventTarget});t.state.filesMap=Pn(t.state.filesMap),t.state.idMap=Pn(t.state.idMap);let n;const r={getFiles:()=>n.files,getPaths:()=>n.paths,getConfig:()=>n.config,getModuleGraph:async h=>n.moduleGraph[h],getTransformResult:async h=>({code:h,source:""}),readFile:async h=>Promise.resolve(h),onDone:iv,onCollected:si,onTaskUpdate:iv,writeFile:si,rerun:si,updateSnapshot:si,removeFile:si,createDirectory:si,resolveSnapshotPath:si,snapshotSaved:si};t.rpc=r;let o;function a(){u()}async function u(){const h=await fetch(window.METADATA_PATH);n=K0(await h.text());const d=new Event("open");t.ws.dispatchEvent(d)}u();function f(){return o}return t}const Ha=Kt("idle"),Ue=function(){return pr?DT():MT(OT,{reactive:Pn,handlers:{onTaskUpdate(){Ha.value="running"},onFinished(){Ha.value="idle"}}})}(),Q0=fl({}),Bi=Kt("CONNECTING"),Tn=_t(()=>Ue.state.getFiles()),Le=_t(()=>Tn.value.find(t=>t.id===Nr.value)),ty=_t(()=>uh(Le.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]),Ba=t=>Tn.value.find(n=>n.id===t),RT=_t(()=>Bi.value==="OPEN"),Ou=_t(()=>Bi.value==="CONNECTING");_t(()=>Bi.value==="CLOSED");function ov(t=Ue.state.getFiles()){return ey(t)}function ey(t){return t.forEach(n=>{delete n.result,uh(n).forEach(r=>delete r.result)}),Ue.rpc.rerun(t.map(n=>n.filepath))}function zT(){if(Le.value)return ey([Le.value])}Fe(()=>Ue.ws,t=>{Bi.value=pr?"OPEN":"CONNECTING",t.addEventListener("open",async()=>{Bi.value="OPEN",Ue.state.filesMap.clear();const[n,r]=await Promise.all([Ue.rpc.getFiles(),Ue.rpc.getConfig()]);Ue.state.collectFiles(n),Q0.value=r}),t.addEventListener("close",()=>{setTimeout(()=>{Bi.value==="CONNECTING"&&(Bi.value="CLOSED")},1e3)})},{immediate:!0});const IT={"text-2xl":""},FT=ht("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),qT=re({__name:"ConnectionOverlay",setup(t){return(n,r)=>j(RT)?le("",!0):(at(),Et("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(Ue).reconnect&&j(Ue).reconnect(...o))},[ht("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ve(j(Ou)?"animate-pulse":"")},[ht("div",{text:"5xl",class:ve(j(Ou)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ht("div",IT,Xt(j(Ou)?"Connecting...":"Disconnected"),1),FT],2)]))}});function xi(){}xi.prototype={diff:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.callback;typeof o=="function"&&(a=o,o={}),this.options=o;var u=this;function f(A){return a?(setTimeout(function(){a(void 0,A)},0),!0):A}n=this.castInput(n),r=this.castInput(r),n=this.removeEmpty(this.tokenize(n)),r=this.removeEmpty(this.tokenize(r));var h=r.length,d=n.length,g=1,v=h+d;o.maxEditLength&&(v=Math.min(v,o.maxEditLength));var b=[{newPos:-1,components:[]}],w=this.extractCommon(b[0],r,n,0);if(b[0].newPos+1>=h&&w+1>=d)return f([{value:this.join(r),count:r.length}]);function S(){for(var A=-1*g;A<=g;A+=2){var E=void 0,T=b[A-1],L=b[A+1],$=(L?L.newPos:0)-A;T&&(b[A-1]=void 0);var O=T&&T.newPos+1<h,G=L&&0<=$&&$<d;if(!O&&!G){b[A]=void 0;continue}if(!O||G&&T.newPos<L.newPos?(E=BT(L),u.pushComponent(E.components,void 0,!0)):(E=T,E.newPos++,u.pushComponent(E.components,!0,void 0)),$=u.extractCommon(E,r,n,A),E.newPos+1>=h&&$+1>=d)return f(HT(u,E.components,r,n,u.useLongestToken));b[A]=E}g++}if(a)(function A(){setTimeout(function(){if(g>v)return a();S()||A()},0)})();else for(;g<=v;){var M=S();if(M)return M}},pushComponent:function(n,r,o){var a=n[n.length-1];a&&a.added===r&&a.removed===o?n[n.length-1]={count:a.count+1,added:r,removed:o}:n.push({count:1,added:r,removed:o})},extractCommon:function(n,r,o,a){for(var u=r.length,f=o.length,h=n.newPos,d=h-a,g=0;h+1<u&&d+1<f&&this.equals(r[h+1],o[d+1]);)h++,d++,g++;return g&&n.components.push({count:g}),n.newPos=h,d},equals:function(n,r){return this.options.comparator?this.options.comparator(n,r):n===r||this.options.ignoreCase&&n.toLowerCase()===r.toLowerCase()},removeEmpty:function(n){for(var r=[],o=0;o<n.length;o++)n[o]&&r.push(n[o]);return r},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function HT(t,n,r,o,a){for(var u=0,f=n.length,h=0,d=0;u<f;u++){var g=n[u];if(g.removed){if(g.value=t.join(o.slice(d,d+g.count)),d+=g.count,u&&n[u-1].added){var b=n[u-1];n[u-1]=n[u],n[u]=b}}else{if(!g.added&&a){var v=r.slice(h,h+g.count);v=v.map(function(S,M){var A=o[d+M];return A.length>S.length?A:S}),g.value=t.join(v)}else g.value=t.join(r.slice(h,h+g.count));h+=g.count,g.added||(d+=g.count)}}var w=n[f-1];return f>1&&typeof w.value=="string"&&(w.added||w.removed)&&t.equals("",w.value)&&(n[f-2].value+=w.value,n.pop()),n}function BT(t){return{newPos:t.newPos,components:t.components.slice(0)}}var sv=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,lv=/\S/,ny=new xi;ny.equals=function(t,n){return this.options.ignoreCase&&(t=t.toLowerCase(),n=n.toLowerCase()),t===n||this.options.ignoreWhitespace&&!lv.test(t)&&!lv.test(n)};ny.tokenize=function(t){for(var n=t.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<n.length-1;r++)!n[r+1]&&n[r+2]&&sv.test(n[r])&&sv.test(n[r+2])&&(n[r]+=n[r+2],n.splice(r+1,2),r--);return n};var fh=new xi;fh.tokenize=function(t){var n=[],r=t.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var o=0;o<r.length;o++){var a=r[o];o%2&&!this.options.newlineIsToken?n[n.length-1]+=a:(this.options.ignoreWhitespace&&(a=a.trim()),n.push(a))}return n};function WT(t,n,r){return fh.diff(t,n,r)}var UT=new xi;UT.tokenize=function(t){return t.split(/(\S.+?[.!?])(?=\s+|$)/)};var jT=new xi;jT.tokenize=function(t){return t.split(/([{}:;,]|\s+)/)};function xa(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xa=function(n){return typeof n}:xa=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xa(t)}function $u(t){return GT(t)||VT(t)||KT(t)||XT()}function GT(t){if(Array.isArray(t))return pf(t)}function VT(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function KT(t,n){if(!!t){if(typeof t=="string")return pf(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 pf(t,n)}}function pf(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}function XT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var YT=Object.prototype.toString,ol=new xi;ol.useLongestToken=!0;ol.tokenize=fh.tokenize;ol.castInput=function(t){var n=this.options,r=n.undefinedReplacement,o=n.stringifyReplacer,a=o===void 0?function(u,f){return typeof f>"u"?r:f}:o;return typeof t=="string"?t:JSON.stringify(gf(t,null,null,a),a," ")};ol.equals=function(t,n){return xi.prototype.equals.call(ol,t.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function gf(t,n,r,o,a){n=n||[],r=r||[],o&&(t=o(a,t));var u;for(u=0;u<n.length;u+=1)if(n[u]===t)return r[u];var f;if(YT.call(t)==="[object Array]"){for(n.push(t),f=new Array(t.length),r.push(f),u=0;u<t.length;u+=1)f[u]=gf(t[u],n,r,o,a);return n.pop(),r.pop(),f}if(t&&t.toJSON&&(t=t.toJSON()),xa(t)==="object"&&t!==null){n.push(t),f={},r.push(f);var h=[],d;for(d in t)t.hasOwnProperty(d)&&h.push(d);for(h.sort(),u=0;u<h.length;u+=1)d=h[u],f[d]=gf(t[d],n,r,o,d);n.pop(),r.pop()}else f=t;return f}var vf=new xi;vf.tokenize=function(t){return t.slice()};vf.join=vf.removeEmpty=function(t){return t};function ZT(t,n,r,o,a,u,f){f||(f={}),typeof f.context>"u"&&(f.context=4);var h=WT(r,o,f);if(!h)return;h.push({value:"",lines:[]});function d(T){return T.map(function(L){return" "+L})}for(var g=[],v=0,b=0,w=[],S=1,M=1,A=function(L){var $=h[L],O=$.lines||$.value.replace(/\n$/,"").split(`
|
|
3
|
-
`);if($.lines=O,$.added||$.removed){var G;if(!v){var V=h[L-1];v=S,b=M,V&&(w=f.context>0?d(V.lines.slice(-f.context)):[],v-=w.length,b-=w.length)}(G=w).push.apply(G,$u(O.map(function(z){return($.added?"+":"-")+z}))),$.added?M+=O.length:S+=O.length}else{if(v)if(O.length<=f.context*2&&L<h.length-2){var rt;(rt=w).push.apply(rt,$u(d(O)))}else{var J,dt=Math.min(O.length,f.context);(J=w).push.apply(J,$u(d(O.slice(0,dt))));var gt={oldStart:v,oldLines:S-v+dt,newStart:b,newLines:M-b+dt,lines:w};if(L>=h.length-2&&O.length<=f.context){var kt=/\n$/.test(r),ut=/\n$/.test(o),U=O.length==0&&w.length>gt.oldLines;!kt&&U&&r.length>0&&w.splice(gt.oldLines,0,"\"),(!kt&&!U||!ut)&&w.push("\")}g.push(gt),v=0,b=0,w=[]}S+=O.length,M+=O.length}},E=0;E<h.length;E++)A(E);return{oldFileName:t,newFileName:n,oldHeader:a,newHeader:u,hunks:g}}function JT(t){var n=[];t.oldFileName==t.newFileName&&n.push("Index: "+t.oldFileName),n.push("==================================================================="),n.push("--- "+t.oldFileName+(typeof t.oldHeader>"u"?"":" "+t.oldHeader)),n.push("+++ "+t.newFileName+(typeof t.newHeader>"u"?"":" "+t.newHeader));for(var r=0;r<t.hunks.length;r++){var o=t.hunks[r];o.oldLines===0&&(o.oldStart-=1),o.newLines===0&&(o.newStart-=1),n.push("@@ -"+o.oldStart+","+o.oldLines+" +"+o.newStart+","+o.newLines+" @@"),n.push.apply(n,o.lines)}return n.join(`
|
|
4
|
-
`)+`
|
|
5
|
-
`}function QT(t,n,r,o,a,u,f){return JT(ZT(t,n,r,o,a,u,f))}function tL(t,n,r,o,a,u){return QT(t,t,n,r,o,a,u)}function aa(t,n){return t.slice(0,n)+(t.length>n?"…":"")}function eL(t,n,r={}){if(t===n)return"";const{outputTruncateLength:o=80,outputDiffLines:a,showLegend:u=!0}=r,f=" ",h=a||15,d={"+":0,"-":0};let g=null,v=0;function b(E){if(!E||E.match(/\\ No newline/))return;const T=E[0];if("-+".includes(T)){if(g!==T&&(g=T,v=0),v++,d[T]++,v===h)return`${T} ...`;if(v>h)return}return E}const S=tL("string",n,t).split(`
|
|
6
|
-
`).slice(5).map(b).filter(Boolean),M=d["+"]===1&&d["-"]===1&&S.length===2;let A=S.map(E=>(E=E.replace(/\\"/g,'"'),E[0]==="-"?(E=aa(E.slice(1),o),M?E:`- ${aa(E,o)}`):E[0]==="+"?(E=aa(E.slice(1),o),M?E:`+ ${aa(E,o)}`):E.match(/@@/)?"--":` ${E}`));if(u)if(M)A=[`- Expected ${A[0]}`,`+ Received ${A[1]}`];else{A[0].includes('"')&&(A[0]=A[0].replace('"',""));const E=A.length-1;A[E].endsWith('"')&&(A[E]=A[E].slice(0,A[E].length-1)),A.unshift(`- Expected - ${d["-"]}`,`+ Received + ${d["+"]}`,"")}return A.map(E=>f+E).join(`
|
|
7
|
-
`)}var ry={},Dr={};const nL="Á",rL="á",iL="Ă",oL="ă",sL="∾",lL="∿",aL="∾̳",cL="Â",uL="â",fL="´",hL="А",dL="а",pL="Æ",gL="æ",vL="",mL="𝔄",yL="𝔞",bL="À",wL="à",xL="ℵ",_L="ℵ",SL="Α",kL="α",CL="Ā",TL="ā",LL="⨿",EL="&",AL="&",ML="⩕",NL="⩓",PL="∧",OL="⩜",$L="⩘",DL="⩚",RL="∠",zL="⦤",IL="∠",FL="⦨",qL="⦩",HL="⦪",BL="⦫",WL="⦬",UL="⦭",jL="⦮",GL="⦯",VL="∡",KL="∟",XL="⊾",YL="⦝",ZL="∢",JL="Å",QL="⍼",tE="Ą",eE="ą",nE="𝔸",rE="𝕒",iE="⩯",oE="≈",sE="⩰",lE="≊",aE="≋",cE="'",uE="",fE="≈",hE="≊",dE="Å",pE="å",gE="𝒜",vE="𝒶",mE="≔",yE="*",bE="≈",wE="≍",xE="Ã",_E="ã",SE="Ä",kE="ä",CE="∳",TE="⨑",LE="≌",EE="϶",AE="‵",ME="∽",NE="⋍",PE="∖",OE="⫧",$E="⊽",DE="⌅",RE="⌆",zE="⌅",IE="⎵",FE="⎶",qE="≌",HE="Б",BE="б",WE="„",UE="∵",jE="∵",GE="∵",VE="⦰",KE="϶",XE="ℬ",YE="ℬ",ZE="Β",JE="β",QE="ℶ",tA="≬",eA="𝔅",nA="𝔟",rA="⋂",iA="◯",oA="⋃",sA="⨀",lA="⨁",aA="⨂",cA="⨆",uA="★",fA="▽",hA="△",dA="⨄",pA="⋁",gA="⋀",vA="⤍",mA="⧫",yA="▪",bA="▴",wA="▾",xA="◂",_A="▸",SA="␣",kA="▒",CA="░",TA="▓",LA="█",EA="=⃥",AA="≡⃥",MA="⫭",NA="⌐",PA="𝔹",OA="𝕓",$A="⊥",DA="⊥",RA="⋈",zA="⧉",IA="┐",FA="╕",qA="╖",HA="╗",BA="┌",WA="╒",UA="╓",jA="╔",GA="─",VA="═",KA="┬",XA="╤",YA="╥",ZA="╦",JA="┴",QA="╧",tM="╨",eM="╩",nM="⊟",rM="⊞",iM="⊠",oM="┘",sM="╛",lM="╜",aM="╝",cM="└",uM="╘",fM="╙",hM="╚",dM="│",pM="║",gM="┼",vM="╪",mM="╫",yM="╬",bM="┤",wM="╡",xM="╢",_M="╣",SM="├",kM="╞",CM="╟",TM="╠",LM="‵",EM="˘",AM="˘",MM="¦",NM="𝒷",PM="ℬ",OM="⁏",$M="∽",DM="⋍",RM="⧅",zM="\\",IM="⟈",FM="•",qM="•",HM="≎",BM="⪮",WM="≏",UM="≎",jM="≏",GM="Ć",VM="ć",KM="⩄",XM="⩉",YM="⩋",ZM="∩",JM="⋒",QM="⩇",tN="⩀",eN="ⅅ",nN="∩︀",rN="⁁",iN="ˇ",oN="ℭ",sN="⩍",lN="Č",aN="č",cN="Ç",uN="ç",fN="Ĉ",hN="ĉ",dN="∰",pN="⩌",gN="⩐",vN="Ċ",mN="ċ",yN="¸",bN="¸",wN="⦲",xN="¢",_N="·",SN="·",kN="𝔠",CN="ℭ",TN="Ч",LN="ч",EN="✓",AN="✓",MN="Χ",NN="χ",PN="ˆ",ON="≗",$N="↺",DN="↻",RN="⊛",zN="⊚",IN="⊝",FN="⊙",qN="®",HN="Ⓢ",BN="⊖",WN="⊕",UN="⊗",jN="○",GN="⧃",VN="≗",KN="⨐",XN="⫯",YN="⧂",ZN="∲",JN="”",QN="’",tP="♣",eP="♣",nP=":",rP="∷",iP="⩴",oP="≔",sP="≔",lP=",",aP="@",cP="∁",uP="∘",fP="∁",hP="ℂ",dP="≅",pP="⩭",gP="≡",vP="∮",mP="∯",yP="∮",bP="𝕔",wP="ℂ",xP="∐",_P="∐",SP="©",kP="©",CP="℗",TP="∳",LP="↵",EP="✗",AP="⨯",MP="𝒞",NP="𝒸",PP="⫏",OP="⫑",$P="⫐",DP="⫒",RP="⋯",zP="⤸",IP="⤵",FP="⋞",qP="⋟",HP="↶",BP="⤽",WP="⩈",UP="⩆",jP="≍",GP="∪",VP="⋓",KP="⩊",XP="⊍",YP="⩅",ZP="∪︀",JP="↷",QP="⤼",tO="⋞",eO="⋟",nO="⋎",rO="⋏",iO="¤",oO="↶",sO="↷",lO="⋎",aO="⋏",cO="∲",uO="∱",fO="⌭",hO="†",dO="‡",pO="ℸ",gO="↓",vO="↡",mO="⇓",yO="‐",bO="⫤",wO="⊣",xO="⤏",_O="˝",SO="Ď",kO="ď",CO="Д",TO="д",LO="‡",EO="⇊",AO="ⅅ",MO="ⅆ",NO="⤑",PO="⩷",OO="°",$O="∇",DO="Δ",RO="δ",zO="⦱",IO="⥿",FO="𝔇",qO="𝔡",HO="⥥",BO="⇃",WO="⇂",UO="´",jO="˙",GO="˝",VO="`",KO="˜",XO="⋄",YO="⋄",ZO="⋄",JO="♦",QO="♦",t$="¨",e$="ⅆ",n$="ϝ",r$="⋲",i$="÷",o$="÷",s$="⋇",l$="⋇",a$="Ђ",c$="ђ",u$="⌞",f$="⌍",h$="$",d$="𝔻",p$="𝕕",g$="¨",v$="˙",m$="⃜",y$="≐",b$="≑",w$="≐",x$="∸",_$="∔",S$="⊡",k$="⌆",C$="∯",T$="¨",L$="⇓",E$="⇐",A$="⇔",M$="⫤",N$="⟸",P$="⟺",O$="⟹",$$="⇒",D$="⊨",R$="⇑",z$="⇕",I$="∥",F$="⤓",q$="↓",H$="↓",B$="⇓",W$="⇵",U$="̑",j$="⇊",G$="⇃",V$="⇂",K$="⥐",X$="⥞",Y$="⥖",Z$="↽",J$="⥟",Q$="⥗",tD="⇁",eD="↧",nD="⊤",rD="⤐",iD="⌟",oD="⌌",sD="𝒟",lD="𝒹",aD="Ѕ",cD="ѕ",uD="⧶",fD="Đ",hD="đ",dD="⋱",pD="▿",gD="▾",vD="⇵",mD="⥯",yD="⦦",bD="Џ",wD="џ",xD="⟿",_D="É",SD="é",kD="⩮",CD="Ě",TD="ě",LD="Ê",ED="ê",AD="≖",MD="≕",ND="Э",PD="э",OD="⩷",$D="Ė",DD="ė",RD="≑",zD="ⅇ",ID="≒",FD="𝔈",qD="𝔢",HD="⪚",BD="È",WD="è",UD="⪖",jD="⪘",GD="⪙",VD="∈",KD="⏧",XD="ℓ",YD="⪕",ZD="⪗",JD="Ē",QD="ē",tR="∅",eR="∅",nR="◻",rR="∅",iR="▫",oR=" ",sR=" ",lR=" ",aR="Ŋ",cR="ŋ",uR=" ",fR="Ę",hR="ę",dR="𝔼",pR="𝕖",gR="⋕",vR="⧣",mR="⩱",yR="ε",bR="Ε",wR="ε",xR="ϵ",_R="≖",SR="≕",kR="≂",CR="⪖",TR="⪕",LR="⩵",ER="=",AR="≂",MR="≟",NR="⇌",PR="≡",OR="⩸",$R="⧥",DR="⥱",RR="≓",zR="ℯ",IR="ℰ",FR="≐",qR="⩳",HR="≂",BR="Η",WR="η",UR="Ð",jR="ð",GR="Ë",VR="ë",KR="€",XR="!",YR="∃",ZR="∃",JR="ℰ",QR="ⅇ",t2="ⅇ",e2="≒",n2="Ф",r2="ф",i2="♀",o2="ffi",s2="ff",l2="ffl",a2="𝔉",c2="𝔣",u2="fi",f2="◼",h2="▪",d2="fj",p2="♭",g2="fl",v2="▱",m2="ƒ",y2="𝔽",b2="𝕗",w2="∀",x2="∀",_2="⋔",S2="⫙",k2="ℱ",C2="⨍",T2="½",L2="⅓",E2="¼",A2="⅕",M2="⅙",N2="⅛",P2="⅔",O2="⅖",$2="¾",D2="⅗",R2="⅜",z2="⅘",I2="⅚",F2="⅝",q2="⅞",H2="⁄",B2="⌢",W2="𝒻",U2="ℱ",j2="ǵ",G2="Γ",V2="γ",K2="Ϝ",X2="ϝ",Y2="⪆",Z2="Ğ",J2="ğ",Q2="Ģ",tz="Ĝ",ez="ĝ",nz="Г",rz="г",iz="Ġ",oz="ġ",sz="≥",lz="≧",az="⪌",cz="⋛",uz="≥",fz="≧",hz="⩾",dz="⪩",pz="⩾",gz="⪀",vz="⪂",mz="⪄",yz="⋛︀",bz="⪔",wz="𝔊",xz="𝔤",_z="≫",Sz="⋙",kz="⋙",Cz="ℷ",Tz="Ѓ",Lz="ѓ",Ez="⪥",Az="≷",Mz="⪒",Nz="⪤",Pz="⪊",Oz="⪊",$z="⪈",Dz="≩",Rz="⪈",zz="≩",Iz="⋧",Fz="𝔾",qz="𝕘",Hz="`",Bz="≥",Wz="⋛",Uz="≧",jz="⪢",Gz="≷",Vz="⩾",Kz="≳",Xz="𝒢",Yz="ℊ",Zz="≳",Jz="⪎",Qz="⪐",tI="⪧",eI="⩺",nI=">",rI=">",iI="≫",oI="⋗",sI="⦕",lI="⩼",aI="⪆",cI="⥸",uI="⋗",fI="⋛",hI="⪌",dI="≷",pI="≳",gI="≩︀",vI="≩︀",mI="ˇ",yI=" ",bI="½",wI="ℋ",xI="Ъ",_I="ъ",SI="⥈",kI="↔",CI="⇔",TI="↭",LI="^",EI="ℏ",AI="Ĥ",MI="ĥ",NI="♥",PI="♥",OI="…",$I="⊹",DI="𝔥",RI="ℌ",zI="ℋ",II="⤥",FI="⤦",qI="⇿",HI="∻",BI="↩",WI="↪",UI="𝕙",jI="ℍ",GI="―",VI="─",KI="𝒽",XI="ℋ",YI="ℏ",ZI="Ħ",JI="ħ",QI="≎",tF="≏",eF="⁃",nF="‐",rF="Í",iF="í",oF="",sF="Î",lF="î",aF="И",cF="и",uF="İ",fF="Е",hF="е",dF="¡",pF="⇔",gF="𝔦",vF="ℑ",mF="Ì",yF="ì",bF="ⅈ",wF="⨌",xF="∭",_F="⧜",SF="℩",kF="IJ",CF="ij",TF="Ī",LF="ī",EF="ℑ",AF="ⅈ",MF="ℐ",NF="ℑ",PF="ı",OF="ℑ",$F="⊷",DF="Ƶ",RF="⇒",zF="℅",IF="∞",FF="⧝",qF="ı",HF="⊺",BF="∫",WF="∬",UF="ℤ",jF="∫",GF="⊺",VF="⋂",KF="⨗",XF="⨼",YF="",ZF="",JF="Ё",QF="ё",tq="Į",eq="į",nq="𝕀",rq="𝕚",iq="Ι",oq="ι",sq="⨼",lq="¿",aq="𝒾",cq="ℐ",uq="∈",fq="⋵",hq="⋹",dq="⋴",pq="⋳",gq="∈",vq="",mq="Ĩ",yq="ĩ",bq="І",wq="і",xq="Ï",_q="ï",Sq="Ĵ",kq="ĵ",Cq="Й",Tq="й",Lq="𝔍",Eq="𝔧",Aq="ȷ",Mq="𝕁",Nq="𝕛",Pq="𝒥",Oq="𝒿",$q="Ј",Dq="ј",Rq="Є",zq="є",Iq="Κ",Fq="κ",qq="ϰ",Hq="Ķ",Bq="ķ",Wq="К",Uq="к",jq="𝔎",Gq="𝔨",Vq="ĸ",Kq="Х",Xq="х",Yq="Ќ",Zq="ќ",Jq="𝕂",Qq="𝕜",tH="𝒦",eH="𝓀",nH="⇚",rH="Ĺ",iH="ĺ",oH="⦴",sH="ℒ",lH="Λ",aH="λ",cH="⟨",uH="⟪",fH="⦑",hH="⟨",dH="⪅",pH="ℒ",gH="«",vH="⇤",mH="⤟",yH="←",bH="↞",wH="⇐",xH="⤝",_H="↩",SH="↫",kH="⤹",CH="⥳",TH="↢",LH="⤙",EH="⤛",AH="⪫",MH="⪭",NH="⪭︀",PH="⤌",OH="⤎",$H="❲",DH="{",RH="[",zH="⦋",IH="⦏",FH="⦍",qH="Ľ",HH="ľ",BH="Ļ",WH="ļ",UH="⌈",jH="{",GH="Л",VH="л",KH="⤶",XH="“",YH="„",ZH="⥧",JH="⥋",QH="↲",tB="≤",eB="≦",nB="⟨",rB="⇤",iB="←",oB="←",sB="⇐",lB="⇆",aB="↢",cB="⌈",uB="⟦",fB="⥡",hB="⥙",dB="⇃",pB="⌊",gB="↽",vB="↼",mB="⇇",yB="↔",bB="↔",wB="⇔",xB="⇆",_B="⇋",SB="↭",kB="⥎",CB="↤",TB="⊣",LB="⥚",EB="⋋",AB="⧏",MB="⊲",NB="⊴",PB="⥑",OB="⥠",$B="⥘",DB="↿",RB="⥒",zB="↼",IB="⪋",FB="⋚",qB="≤",HB="≦",BB="⩽",WB="⪨",UB="⩽",jB="⩿",GB="⪁",VB="⪃",KB="⋚︀",XB="⪓",YB="⪅",ZB="⋖",JB="⋚",QB="⪋",t3="⋚",e3="≦",n3="≶",r3="≶",i3="⪡",o3="≲",s3="⩽",l3="≲",a3="⥼",c3="⌊",u3="𝔏",f3="𝔩",h3="≶",d3="⪑",p3="⥢",g3="↽",v3="↼",m3="⥪",y3="▄",b3="Љ",w3="љ",x3="⇇",_3="≪",S3="⋘",k3="⌞",C3="⇚",T3="⥫",L3="◺",E3="Ŀ",A3="ŀ",M3="⎰",N3="⎰",P3="⪉",O3="⪉",$3="⪇",D3="≨",R3="⪇",z3="≨",I3="⋦",F3="⟬",q3="⇽",H3="⟦",B3="⟵",W3="⟵",U3="⟸",j3="⟷",G3="⟷",V3="⟺",K3="⟼",X3="⟶",Y3="⟶",Z3="⟹",J3="↫",Q3="↬",t5="⦅",e5="𝕃",n5="𝕝",r5="⨭",i5="⨴",o5="∗",s5="_",l5="↙",a5="↘",c5="◊",u5="◊",f5="⧫",h5="(",d5="⦓",p5="⇆",g5="⌟",v5="⇋",m5="⥭",y5="",b5="⊿",w5="‹",x5="𝓁",_5="ℒ",S5="↰",k5="↰",C5="≲",T5="⪍",L5="⪏",E5="[",A5="‘",M5="‚",N5="Ł",P5="ł",O5="⪦",$5="⩹",D5="<",R5="<",z5="≪",I5="⋖",F5="⋋",q5="⋉",H5="⥶",B5="⩻",W5="◃",U5="⊴",j5="◂",G5="⦖",V5="⥊",K5="⥦",X5="≨︀",Y5="≨︀",Z5="¯",J5="♂",Q5="✠",tW="✠",eW="↦",nW="↦",rW="↧",iW="↤",oW="↥",sW="▮",lW="⨩",aW="М",cW="м",uW="—",fW="∺",hW="∡",dW=" ",pW="ℳ",gW="𝔐",vW="𝔪",mW="℧",yW="µ",bW="*",wW="⫰",xW="∣",_W="·",SW="⊟",kW="−",CW="∸",TW="⨪",LW="∓",EW="⫛",AW="…",MW="∓",NW="⊧",PW="𝕄",OW="𝕞",$W="∓",DW="𝓂",RW="ℳ",zW="∾",IW="Μ",FW="μ",qW="⊸",HW="⊸",BW="∇",WW="Ń",UW="ń",jW="∠⃒",GW="≉",VW="⩰̸",KW="≋̸",XW="ʼn",YW="≉",ZW="♮",JW="ℕ",QW="♮",t8=" ",e8="≎̸",n8="≏̸",r8="⩃",i8="Ň",o8="ň",s8="Ņ",l8="ņ",a8="≇",c8="⩭̸",u8="⩂",f8="Н",h8="н",d8="–",p8="⤤",g8="↗",v8="⇗",m8="↗",y8="≠",b8="≐̸",w8="",x8="",_8="",S8="",k8="≢",C8="⤨",T8="≂̸",L8="≫",E8="≪",A8=`
|
|
8
|
-
`,M8="∄",N8="∄",P8="𝔑",O8="𝔫",$8="≧̸",D8="≱",R8="≱",z8="≧̸",I8="⩾̸",F8="⩾̸",q8="⋙̸",H8="≵",B8="≫⃒",W8="≯",U8="≯",j8="≫̸",G8="↮",V8="⇎",K8="⫲",X8="∋",Y8="⋼",Z8="⋺",J8="∋",Q8="Њ",tU="њ",eU="↚",nU="⇍",rU="‥",iU="≦̸",oU="≰",sU="↚",lU="⇍",aU="↮",cU="⇎",uU="≰",fU="≦̸",hU="⩽̸",dU="⩽̸",pU="≮",gU="⋘̸",vU="≴",mU="≪⃒",yU="≮",bU="⋪",wU="⋬",xU="≪̸",_U="∤",SU="",kU=" ",CU="𝕟",TU="ℕ",LU="⫬",EU="¬",AU="≢",MU="≭",NU="∦",PU="∉",OU="≠",$U="≂̸",DU="∄",RU="≯",zU="≱",IU="≧̸",FU="≫̸",qU="≹",HU="⩾̸",BU="≵",WU="≎̸",UU="≏̸",jU="∉",GU="⋵̸",VU="⋹̸",KU="∉",XU="⋷",YU="⋶",ZU="⧏̸",JU="⋪",QU="⋬",t4="≮",e4="≰",n4="≸",r4="≪̸",i4="⩽̸",o4="≴",s4="⪢̸",l4="⪡̸",a4="∌",c4="∌",u4="⋾",f4="⋽",h4="⊀",d4="⪯̸",p4="⋠",g4="∌",v4="⧐̸",m4="⋫",y4="⋭",b4="⊏̸",w4="⋢",x4="⊐̸",_4="⋣",S4="⊂⃒",k4="⊈",C4="⊁",T4="⪰̸",L4="⋡",E4="≿̸",A4="⊃⃒",M4="⊉",N4="≁",P4="≄",O4="≇",$4="≉",D4="∤",R4="∦",z4="∦",I4="⫽⃥",F4="∂̸",q4="⨔",H4="⊀",B4="⋠",W4="⊀",U4="⪯̸",j4="⪯̸",G4="⤳̸",V4="↛",K4="⇏",X4="↝̸",Y4="↛",Z4="⇏",J4="⋫",Q4="⋭",t6="⊁",e6="⋡",n6="⪰̸",r6="𝒩",i6="𝓃",o6="∤",s6="∦",l6="≁",a6="≄",c6="≄",u6="∤",f6="∦",h6="⋢",d6="⋣",p6="⊄",g6="⫅̸",v6="⊈",m6="⊂⃒",y6="⊈",b6="⫅̸",w6="⊁",x6="⪰̸",_6="⊅",S6="⫆̸",k6="⊉",C6="⊃⃒",T6="⊉",L6="⫆̸",E6="≹",A6="Ñ",M6="ñ",N6="≸",P6="⋪",O6="⋬",$6="⋫",D6="⋭",R6="Ν",z6="ν",I6="#",F6="№",q6=" ",H6="≍⃒",B6="⊬",W6="⊭",U6="⊮",j6="⊯",G6="≥⃒",V6=">⃒",K6="⤄",X6="⧞",Y6="⤂",Z6="≤⃒",J6="<⃒",Q6="⊴⃒",tj="⤃",ej="⊵⃒",nj="∼⃒",rj="⤣",ij="↖",oj="⇖",sj="↖",lj="⤧",aj="Ó",cj="ó",uj="⊛",fj="Ô",hj="ô",dj="⊚",pj="О",gj="о",vj="⊝",mj="Ő",yj="ő",bj="⨸",wj="⊙",xj="⦼",_j="Œ",Sj="œ",kj="⦿",Cj="𝔒",Tj="𝔬",Lj="˛",Ej="Ò",Aj="ò",Mj="⧁",Nj="⦵",Pj="Ω",Oj="∮",$j="↺",Dj="⦾",Rj="⦻",zj="‾",Ij="⧀",Fj="Ō",qj="ō",Hj="Ω",Bj="ω",Wj="Ο",Uj="ο",jj="⦶",Gj="⊖",Vj="𝕆",Kj="𝕠",Xj="⦷",Yj="“",Zj="‘",Jj="⦹",Qj="⊕",t9="↻",e9="⩔",n9="∨",r9="⩝",i9="ℴ",o9="ℴ",s9="ª",l9="º",a9="⊶",c9="⩖",u9="⩗",f9="⩛",h9="Ⓢ",d9="𝒪",p9="ℴ",g9="Ø",v9="ø",m9="⊘",y9="Õ",b9="õ",w9="⨶",x9="⨷",_9="⊗",S9="Ö",k9="ö",C9="⌽",T9="‾",L9="⏞",E9="⎴",A9="⏜",M9="¶",N9="∥",P9="∥",O9="⫳",$9="⫽",D9="∂",R9="∂",z9="П",I9="п",F9="%",q9=".",H9="‰",B9="⊥",W9="‱",U9="𝔓",j9="𝔭",G9="Φ",V9="φ",K9="ϕ",X9="ℳ",Y9="☎",Z9="Π",J9="π",Q9="⋔",tG="ϖ",eG="ℏ",nG="ℎ",rG="ℏ",iG="⨣",oG="⊞",sG="⨢",lG="+",aG="∔",cG="⨥",uG="⩲",fG="±",hG="±",dG="⨦",pG="⨧",gG="±",vG="ℌ",mG="⨕",yG="𝕡",bG="ℙ",wG="£",xG="⪷",_G="⪻",SG="≺",kG="≼",CG="⪷",TG="≺",LG="≼",EG="≺",AG="⪯",MG="≼",NG="≾",PG="⪯",OG="⪹",$G="⪵",DG="⋨",RG="⪯",zG="⪳",IG="≾",FG="′",qG="″",HG="ℙ",BG="⪹",WG="⪵",UG="⋨",jG="∏",GG="∏",VG="⌮",KG="⌒",XG="⌓",YG="∝",ZG="∝",JG="∷",QG="∝",tV="≾",eV="⊰",nV="𝒫",rV="𝓅",iV="Ψ",oV="ψ",sV=" ",lV="𝔔",aV="𝔮",cV="⨌",uV="𝕢",fV="ℚ",hV="⁗",dV="𝒬",pV="𝓆",gV="ℍ",vV="⨖",mV="?",yV="≟",bV='"',wV='"',xV="⇛",_V="∽̱",SV="Ŕ",kV="ŕ",CV="√",TV="⦳",LV="⟩",EV="⟫",AV="⦒",MV="⦥",NV="⟩",PV="»",OV="⥵",$V="⇥",DV="⤠",RV="⤳",zV="→",IV="↠",FV="⇒",qV="⤞",HV="↪",BV="↬",WV="⥅",UV="⥴",jV="⤖",GV="↣",VV="↝",KV="⤚",XV="⤜",YV="∶",ZV="ℚ",JV="⤍",QV="⤏",t7="⤐",e7="❳",n7="}",r7="]",i7="⦌",o7="⦎",s7="⦐",l7="Ř",a7="ř",c7="Ŗ",u7="ŗ",f7="⌉",h7="}",d7="Р",p7="р",g7="⤷",v7="⥩",m7="”",y7="”",b7="↳",w7="ℜ",x7="ℛ",_7="ℜ",S7="ℝ",k7="ℜ",C7="▭",T7="®",L7="®",E7="∋",A7="⇋",M7="⥯",N7="⥽",P7="⌋",O7="𝔯",$7="ℜ",D7="⥤",R7="⇁",z7="⇀",I7="⥬",F7="Ρ",q7="ρ",H7="ϱ",B7="⟩",W7="⇥",U7="→",j7="→",G7="⇒",V7="⇄",K7="↣",X7="⌉",Y7="⟧",Z7="⥝",J7="⥕",Q7="⇂",tK="⌋",eK="⇁",nK="⇀",rK="⇄",iK="⇌",oK="⇉",sK="↝",lK="↦",aK="⊢",cK="⥛",uK="⋌",fK="⧐",hK="⊳",dK="⊵",pK="⥏",gK="⥜",vK="⥔",mK="↾",yK="⥓",bK="⇀",wK="˚",xK="≓",_K="⇄",SK="⇌",kK="",CK="⎱",TK="⎱",LK="⫮",EK="⟭",AK="⇾",MK="⟧",NK="⦆",PK="𝕣",OK="ℝ",$K="⨮",DK="⨵",RK="⥰",zK=")",IK="⦔",FK="⨒",qK="⇉",HK="⇛",BK="›",WK="𝓇",UK="ℛ",jK="↱",GK="↱",VK="]",KK="’",XK="’",YK="⋌",ZK="⋊",JK="▹",QK="⊵",tX="▸",eX="⧎",nX="⧴",rX="⥨",iX="℞",oX="Ś",sX="ś",lX="‚",aX="⪸",cX="Š",uX="š",fX="⪼",hX="≻",dX="≽",pX="⪰",gX="⪴",vX="Ş",mX="ş",yX="Ŝ",bX="ŝ",wX="⪺",xX="⪶",_X="⋩",SX="⨓",kX="≿",CX="С",TX="с",LX="⊡",EX="⋅",AX="⩦",MX="⤥",NX="↘",PX="⇘",OX="↘",$X="§",DX=";",RX="⤩",zX="∖",IX="∖",FX="✶",qX="𝔖",HX="𝔰",BX="⌢",WX="♯",UX="Щ",jX="щ",GX="Ш",VX="ш",KX="↓",XX="←",YX="∣",ZX="∥",JX="→",QX="↑",tY="",eY="Σ",nY="σ",rY="ς",iY="ς",oY="∼",sY="⩪",lY="≃",aY="≃",cY="⪞",uY="⪠",fY="⪝",hY="⪟",dY="≆",pY="⨤",gY="⥲",vY="←",mY="∘",yY="∖",bY="⨳",wY="⧤",xY="∣",_Y="⌣",SY="⪪",kY="⪬",CY="⪬︀",TY="Ь",LY="ь",EY="⌿",AY="⧄",MY="/",NY="𝕊",PY="𝕤",OY="♠",$Y="♠",DY="∥",RY="⊓",zY="⊓︀",IY="⊔",FY="⊔︀",qY="√",HY="⊏",BY="⊑",WY="⊏",UY="⊑",jY="⊐",GY="⊒",VY="⊐",KY="⊒",XY="□",YY="□",ZY="⊓",JY="⊏",QY="⊑",tZ="⊐",eZ="⊒",nZ="⊔",rZ="▪",iZ="□",oZ="▪",sZ="→",lZ="𝒮",aZ="𝓈",cZ="∖",uZ="⌣",fZ="⋆",hZ="⋆",dZ="☆",pZ="★",gZ="ϵ",vZ="ϕ",mZ="¯",yZ="⊂",bZ="⋐",wZ="⪽",xZ="⫅",_Z="⊆",SZ="⫃",kZ="⫁",CZ="⫋",TZ="⊊",LZ="⪿",EZ="⥹",AZ="⊂",MZ="⋐",NZ="⊆",PZ="⫅",OZ="⊆",$Z="⊊",DZ="⫋",RZ="⫇",zZ="⫕",IZ="⫓",FZ="⪸",qZ="≻",HZ="≽",BZ="≻",WZ="⪰",UZ="≽",jZ="≿",GZ="⪰",VZ="⪺",KZ="⪶",XZ="⋩",YZ="≿",ZZ="∋",JZ="∑",QZ="∑",tJ="♪",eJ="¹",nJ="²",rJ="³",iJ="⊃",oJ="⋑",sJ="⪾",lJ="⫘",aJ="⫆",cJ="⊇",uJ="⫄",fJ="⊃",hJ="⊇",dJ="⟉",pJ="⫗",gJ="⥻",vJ="⫂",mJ="⫌",yJ="⊋",bJ="⫀",wJ="⊃",xJ="⋑",_J="⊇",SJ="⫆",kJ="⊋",CJ="⫌",TJ="⫈",LJ="⫔",EJ="⫖",AJ="⤦",MJ="↙",NJ="⇙",PJ="↙",OJ="⤪",$J="ß",DJ=" ",RJ="⌖",zJ="Τ",IJ="τ",FJ="⎴",qJ="Ť",HJ="ť",BJ="Ţ",WJ="ţ",UJ="Т",jJ="т",GJ="⃛",VJ="⌕",KJ="𝔗",XJ="𝔱",YJ="∴",ZJ="∴",JJ="∴",QJ="Θ",tQ="θ",eQ="ϑ",nQ="ϑ",rQ="≈",iQ="∼",oQ=" ",sQ=" ",lQ=" ",aQ="≈",cQ="∼",uQ="Þ",fQ="þ",hQ="˜",dQ="∼",pQ="≃",gQ="≅",vQ="≈",mQ="⨱",yQ="⊠",bQ="×",wQ="⨰",xQ="∭",_Q="⤨",SQ="⌶",kQ="⫱",CQ="⊤",TQ="𝕋",LQ="𝕥",EQ="⫚",AQ="⤩",MQ="‴",NQ="™",PQ="™",OQ="▵",$Q="▿",DQ="◃",RQ="⊴",zQ="≜",IQ="▹",FQ="⊵",qQ="◬",HQ="≜",BQ="⨺",WQ="⃛",UQ="⨹",jQ="⧍",GQ="⨻",VQ="⏢",KQ="𝒯",XQ="𝓉",YQ="Ц",ZQ="ц",JQ="Ћ",QQ="ћ",ttt="Ŧ",ett="ŧ",ntt="≬",rtt="↞",itt="↠",ott="Ú",stt="ú",ltt="↑",att="↟",ctt="⇑",utt="⥉",ftt="Ў",htt="ў",dtt="Ŭ",ptt="ŭ",gtt="Û",vtt="û",mtt="У",ytt="у",btt="⇅",wtt="Ű",xtt="ű",_tt="⥮",Stt="⥾",ktt="𝔘",Ctt="𝔲",Ttt="Ù",Ltt="ù",Ett="⥣",Att="↿",Mtt="↾",Ntt="▀",Ptt="⌜",Ott="⌜",$tt="⌏",Dtt="◸",Rtt="Ū",ztt="ū",Itt="¨",Ftt="_",qtt="⏟",Htt="⎵",Btt="⏝",Wtt="⋃",Utt="⊎",jtt="Ų",Gtt="ų",Vtt="𝕌",Ktt="𝕦",Xtt="⤒",Ytt="↑",Ztt="↑",Jtt="⇑",Qtt="⇅",tet="↕",eet="↕",net="⇕",ret="⥮",iet="↿",oet="↾",set="⊎",aet="↖",cet="↗",uet="υ",fet="ϒ",het="ϒ",det="Υ",pet="υ",get="↥",vet="⊥",met="⇈",yet="⌝",bet="⌝",wet="⌎",xet="Ů",_et="ů",ket="◹",Cet="𝒰",Tet="𝓊",Let="⋰",Eet="Ũ",Aet="ũ",Met="▵",Net="▴",Pet="⇈",Oet="Ü",$et="ü",Det="⦧",Ret="⦜",zet="ϵ",Iet="ϰ",Fet="∅",qet="ϕ",Het="ϖ",Bet="∝",Wet="↕",Uet="⇕",jet="ϱ",Get="ς",Vet="⊊︀",Ket="⫋︀",Xet="⊋︀",Yet="⫌︀",Zet="ϑ",Jet="⊲",Qet="⊳",tnt="⫨",ent="⫫",nnt="⫩",rnt="В",int="в",ont="⊢",snt="⊨",lnt="⊩",ant="⊫",cnt="⫦",unt="⊻",fnt="∨",hnt="⋁",dnt="≚",pnt="⋮",gnt="|",vnt="‖",mnt="|",ynt="‖",bnt="∣",wnt="|",xnt="❘",_nt="≀",Snt=" ",knt="𝔙",Cnt="𝔳",Tnt="⊲",Lnt="⊂⃒",Ent="⊃⃒",Ant="𝕍",Mnt="𝕧",Nnt="∝",Pnt="⊳",Ont="𝒱",$nt="𝓋",Dnt="⫋︀",Rnt="⊊︀",znt="⫌︀",Int="⊋︀",Fnt="⊪",qnt="⦚",Hnt="Ŵ",Bnt="ŵ",Wnt="⩟",Unt="∧",jnt="⋀",Gnt="≙",Vnt="℘",Knt="𝔚",Xnt="𝔴",Ynt="𝕎",Znt="𝕨",Jnt="℘",Qnt="≀",trt="≀",ert="𝒲",nrt="𝓌",rrt="⋂",irt="◯",ort="⋃",srt="▽",lrt="𝔛",art="𝔵",crt="⟷",urt="⟺",frt="Ξ",hrt="ξ",drt="⟵",prt="⟸",grt="⟼",vrt="⋻",mrt="⨀",yrt="𝕏",brt="𝕩",wrt="⨁",xrt="⨂",_rt="⟶",Srt="⟹",krt="𝒳",Crt="𝓍",Trt="⨆",Lrt="⨄",Ert="△",Art="⋁",Mrt="⋀",Nrt="Ý",Prt="ý",Ort="Я",$rt="я",Drt="Ŷ",Rrt="ŷ",zrt="Ы",Irt="ы",Frt="¥",qrt="𝔜",Hrt="𝔶",Brt="Ї",Wrt="ї",Urt="𝕐",jrt="𝕪",Grt="𝒴",Vrt="𝓎",Krt="Ю",Xrt="ю",Yrt="ÿ",Zrt="Ÿ",Jrt="Ź",Qrt="ź",tit="Ž",eit="ž",nit="З",rit="з",iit="Ż",oit="ż",sit="ℨ",lit="",ait="Ζ",cit="ζ",uit="𝔷",fit="ℨ",hit="Ж",dit="ж",pit="⇝",git="𝕫",vit="ℤ",mit="𝒵",yit="𝓏",bit="",wit="",iy={Aacute:nL,aacute:rL,Abreve:iL,abreve:oL,ac:sL,acd:lL,acE:aL,Acirc:cL,acirc:uL,acute:fL,Acy:hL,acy:dL,AElig:pL,aelig:gL,af:vL,Afr:mL,afr:yL,Agrave:bL,agrave:wL,alefsym:xL,aleph:_L,Alpha:SL,alpha:kL,Amacr:CL,amacr:TL,amalg:LL,amp:EL,AMP:AL,andand:ML,And:NL,and:PL,andd:OL,andslope:$L,andv:DL,ang:RL,ange:zL,angle:IL,angmsdaa:FL,angmsdab:qL,angmsdac:HL,angmsdad:BL,angmsdae:WL,angmsdaf:UL,angmsdag:jL,angmsdah:GL,angmsd:VL,angrt:KL,angrtvb:XL,angrtvbd:YL,angsph:ZL,angst:JL,angzarr:QL,Aogon:tE,aogon:eE,Aopf:nE,aopf:rE,apacir:iE,ap:oE,apE:sE,ape:lE,apid:aE,apos:cE,ApplyFunction:uE,approx:fE,approxeq:hE,Aring:dE,aring:pE,Ascr:gE,ascr:vE,Assign:mE,ast:yE,asymp:bE,asympeq:wE,Atilde:xE,atilde:_E,Auml:SE,auml:kE,awconint:CE,awint:TE,backcong:LE,backepsilon:EE,backprime:AE,backsim:ME,backsimeq:NE,Backslash:PE,Barv:OE,barvee:$E,barwed:DE,Barwed:RE,barwedge:zE,bbrk:IE,bbrktbrk:FE,bcong:qE,Bcy:HE,bcy:BE,bdquo:WE,becaus:UE,because:jE,Because:GE,bemptyv:VE,bepsi:KE,bernou:XE,Bernoullis:YE,Beta:ZE,beta:JE,beth:QE,between:tA,Bfr:eA,bfr:nA,bigcap:rA,bigcirc:iA,bigcup:oA,bigodot:sA,bigoplus:lA,bigotimes:aA,bigsqcup:cA,bigstar:uA,bigtriangledown:fA,bigtriangleup:hA,biguplus:dA,bigvee:pA,bigwedge:gA,bkarow:vA,blacklozenge:mA,blacksquare:yA,blacktriangle:bA,blacktriangledown:wA,blacktriangleleft:xA,blacktriangleright:_A,blank:SA,blk12:kA,blk14:CA,blk34:TA,block:LA,bne:EA,bnequiv:AA,bNot:MA,bnot:NA,Bopf:PA,bopf:OA,bot:$A,bottom:DA,bowtie:RA,boxbox:zA,boxdl:IA,boxdL:FA,boxDl:qA,boxDL:HA,boxdr:BA,boxdR:WA,boxDr:UA,boxDR:jA,boxh:GA,boxH:VA,boxhd:KA,boxHd:XA,boxhD:YA,boxHD:ZA,boxhu:JA,boxHu:QA,boxhU:tM,boxHU:eM,boxminus:nM,boxplus:rM,boxtimes:iM,boxul:oM,boxuL:sM,boxUl:lM,boxUL:aM,boxur:cM,boxuR:uM,boxUr:fM,boxUR:hM,boxv:dM,boxV:pM,boxvh:gM,boxvH:vM,boxVh:mM,boxVH:yM,boxvl:bM,boxvL:wM,boxVl:xM,boxVL:_M,boxvr:SM,boxvR:kM,boxVr:CM,boxVR:TM,bprime:LM,breve:EM,Breve:AM,brvbar:MM,bscr:NM,Bscr:PM,bsemi:OM,bsim:$M,bsime:DM,bsolb:RM,bsol:zM,bsolhsub:IM,bull:FM,bullet:qM,bump:HM,bumpE:BM,bumpe:WM,Bumpeq:UM,bumpeq:jM,Cacute:GM,cacute:VM,capand:KM,capbrcup:XM,capcap:YM,cap:ZM,Cap:JM,capcup:QM,capdot:tN,CapitalDifferentialD:eN,caps:nN,caret:rN,caron:iN,Cayleys:oN,ccaps:sN,Ccaron:lN,ccaron:aN,Ccedil:cN,ccedil:uN,Ccirc:fN,ccirc:hN,Cconint:dN,ccups:pN,ccupssm:gN,Cdot:vN,cdot:mN,cedil:yN,Cedilla:bN,cemptyv:wN,cent:xN,centerdot:_N,CenterDot:SN,cfr:kN,Cfr:CN,CHcy:TN,chcy:LN,check:EN,checkmark:AN,Chi:MN,chi:NN,circ:PN,circeq:ON,circlearrowleft:$N,circlearrowright:DN,circledast:RN,circledcirc:zN,circleddash:IN,CircleDot:FN,circledR:qN,circledS:HN,CircleMinus:BN,CirclePlus:WN,CircleTimes:UN,cir:jN,cirE:GN,cire:VN,cirfnint:KN,cirmid:XN,cirscir:YN,ClockwiseContourIntegral:ZN,CloseCurlyDoubleQuote:JN,CloseCurlyQuote:QN,clubs:tP,clubsuit:eP,colon:nP,Colon:rP,Colone:iP,colone:oP,coloneq:sP,comma:lP,commat:aP,comp:cP,compfn:uP,complement:fP,complexes:hP,cong:dP,congdot:pP,Congruent:gP,conint:vP,Conint:mP,ContourIntegral:yP,copf:bP,Copf:wP,coprod:xP,Coproduct:_P,copy:SP,COPY:kP,copysr:CP,CounterClockwiseContourIntegral:TP,crarr:LP,cross:EP,Cross:AP,Cscr:MP,cscr:NP,csub:PP,csube:OP,csup:$P,csupe:DP,ctdot:RP,cudarrl:zP,cudarrr:IP,cuepr:FP,cuesc:qP,cularr:HP,cularrp:BP,cupbrcap:WP,cupcap:UP,CupCap:jP,cup:GP,Cup:VP,cupcup:KP,cupdot:XP,cupor:YP,cups:ZP,curarr:JP,curarrm:QP,curlyeqprec:tO,curlyeqsucc:eO,curlyvee:nO,curlywedge:rO,curren:iO,curvearrowleft:oO,curvearrowright:sO,cuvee:lO,cuwed:aO,cwconint:cO,cwint:uO,cylcty:fO,dagger:hO,Dagger:dO,daleth:pO,darr:gO,Darr:vO,dArr:mO,dash:yO,Dashv:bO,dashv:wO,dbkarow:xO,dblac:_O,Dcaron:SO,dcaron:kO,Dcy:CO,dcy:TO,ddagger:LO,ddarr:EO,DD:AO,dd:MO,DDotrahd:NO,ddotseq:PO,deg:OO,Del:$O,Delta:DO,delta:RO,demptyv:zO,dfisht:IO,Dfr:FO,dfr:qO,dHar:HO,dharl:BO,dharr:WO,DiacriticalAcute:UO,DiacriticalDot:jO,DiacriticalDoubleAcute:GO,DiacriticalGrave:VO,DiacriticalTilde:KO,diam:XO,diamond:YO,Diamond:ZO,diamondsuit:JO,diams:QO,die:t$,DifferentialD:e$,digamma:n$,disin:r$,div:i$,divide:o$,divideontimes:s$,divonx:l$,DJcy:a$,djcy:c$,dlcorn:u$,dlcrop:f$,dollar:h$,Dopf:d$,dopf:p$,Dot:g$,dot:v$,DotDot:m$,doteq:y$,doteqdot:b$,DotEqual:w$,dotminus:x$,dotplus:_$,dotsquare:S$,doublebarwedge:k$,DoubleContourIntegral:C$,DoubleDot:T$,DoubleDownArrow:L$,DoubleLeftArrow:E$,DoubleLeftRightArrow:A$,DoubleLeftTee:M$,DoubleLongLeftArrow:N$,DoubleLongLeftRightArrow:P$,DoubleLongRightArrow:O$,DoubleRightArrow:$$,DoubleRightTee:D$,DoubleUpArrow:R$,DoubleUpDownArrow:z$,DoubleVerticalBar:I$,DownArrowBar:F$,downarrow:q$,DownArrow:H$,Downarrow:B$,DownArrowUpArrow:W$,DownBreve:U$,downdownarrows:j$,downharpoonleft:G$,downharpoonright:V$,DownLeftRightVector:K$,DownLeftTeeVector:X$,DownLeftVectorBar:Y$,DownLeftVector:Z$,DownRightTeeVector:J$,DownRightVectorBar:Q$,DownRightVector:tD,DownTeeArrow:eD,DownTee:nD,drbkarow:rD,drcorn:iD,drcrop:oD,Dscr:sD,dscr:lD,DScy:aD,dscy:cD,dsol:uD,Dstrok:fD,dstrok:hD,dtdot:dD,dtri:pD,dtrif:gD,duarr:vD,duhar:mD,dwangle:yD,DZcy:bD,dzcy:wD,dzigrarr:xD,Eacute:_D,eacute:SD,easter:kD,Ecaron:CD,ecaron:TD,Ecirc:LD,ecirc:ED,ecir:AD,ecolon:MD,Ecy:ND,ecy:PD,eDDot:OD,Edot:$D,edot:DD,eDot:RD,ee:zD,efDot:ID,Efr:FD,efr:qD,eg:HD,Egrave:BD,egrave:WD,egs:UD,egsdot:jD,el:GD,Element:VD,elinters:KD,ell:XD,els:YD,elsdot:ZD,Emacr:JD,emacr:QD,empty:tR,emptyset:eR,EmptySmallSquare:nR,emptyv:rR,EmptyVerySmallSquare:iR,emsp13:oR,emsp14:sR,emsp:lR,ENG:aR,eng:cR,ensp:uR,Eogon:fR,eogon:hR,Eopf:dR,eopf:pR,epar:gR,eparsl:vR,eplus:mR,epsi:yR,Epsilon:bR,epsilon:wR,epsiv:xR,eqcirc:_R,eqcolon:SR,eqsim:kR,eqslantgtr:CR,eqslantless:TR,Equal:LR,equals:ER,EqualTilde:AR,equest:MR,Equilibrium:NR,equiv:PR,equivDD:OR,eqvparsl:$R,erarr:DR,erDot:RR,escr:zR,Escr:IR,esdot:FR,Esim:qR,esim:HR,Eta:BR,eta:WR,ETH:UR,eth:jR,Euml:GR,euml:VR,euro:KR,excl:XR,exist:YR,Exists:ZR,expectation:JR,exponentiale:QR,ExponentialE:t2,fallingdotseq:e2,Fcy:n2,fcy:r2,female:i2,ffilig:o2,fflig:s2,ffllig:l2,Ffr:a2,ffr:c2,filig:u2,FilledSmallSquare:f2,FilledVerySmallSquare:h2,fjlig:d2,flat:p2,fllig:g2,fltns:v2,fnof:m2,Fopf:y2,fopf:b2,forall:w2,ForAll:x2,fork:_2,forkv:S2,Fouriertrf:k2,fpartint:C2,frac12:T2,frac13:L2,frac14:E2,frac15:A2,frac16:M2,frac18:N2,frac23:P2,frac25:O2,frac34:$2,frac35:D2,frac38:R2,frac45:z2,frac56:I2,frac58:F2,frac78:q2,frasl:H2,frown:B2,fscr:W2,Fscr:U2,gacute:j2,Gamma:G2,gamma:V2,Gammad:K2,gammad:X2,gap:Y2,Gbreve:Z2,gbreve:J2,Gcedil:Q2,Gcirc:tz,gcirc:ez,Gcy:nz,gcy:rz,Gdot:iz,gdot:oz,ge:sz,gE:lz,gEl:az,gel:cz,geq:uz,geqq:fz,geqslant:hz,gescc:dz,ges:pz,gesdot:gz,gesdoto:vz,gesdotol:mz,gesl:yz,gesles:bz,Gfr:wz,gfr:xz,gg:_z,Gg:Sz,ggg:kz,gimel:Cz,GJcy:Tz,gjcy:Lz,gla:Ez,gl:Az,glE:Mz,glj:Nz,gnap:Pz,gnapprox:Oz,gne:$z,gnE:Dz,gneq:Rz,gneqq:zz,gnsim:Iz,Gopf:Fz,gopf:qz,grave:Hz,GreaterEqual:Bz,GreaterEqualLess:Wz,GreaterFullEqual:Uz,GreaterGreater:jz,GreaterLess:Gz,GreaterSlantEqual:Vz,GreaterTilde:Kz,Gscr:Xz,gscr:Yz,gsim:Zz,gsime:Jz,gsiml:Qz,gtcc:tI,gtcir:eI,gt:nI,GT:rI,Gt:iI,gtdot:oI,gtlPar:sI,gtquest:lI,gtrapprox:aI,gtrarr:cI,gtrdot:uI,gtreqless:fI,gtreqqless:hI,gtrless:dI,gtrsim:pI,gvertneqq:gI,gvnE:vI,Hacek:mI,hairsp:yI,half:bI,hamilt:wI,HARDcy:xI,hardcy:_I,harrcir:SI,harr:kI,hArr:CI,harrw:TI,Hat:LI,hbar:EI,Hcirc:AI,hcirc:MI,hearts:NI,heartsuit:PI,hellip:OI,hercon:$I,hfr:DI,Hfr:RI,HilbertSpace:zI,hksearow:II,hkswarow:FI,hoarr:qI,homtht:HI,hookleftarrow:BI,hookrightarrow:WI,hopf:UI,Hopf:jI,horbar:GI,HorizontalLine:VI,hscr:KI,Hscr:XI,hslash:YI,Hstrok:ZI,hstrok:JI,HumpDownHump:QI,HumpEqual:tF,hybull:eF,hyphen:nF,Iacute:rF,iacute:iF,ic:oF,Icirc:sF,icirc:lF,Icy:aF,icy:cF,Idot:uF,IEcy:fF,iecy:hF,iexcl:dF,iff:pF,ifr:gF,Ifr:vF,Igrave:mF,igrave:yF,ii:bF,iiiint:wF,iiint:xF,iinfin:_F,iiota:SF,IJlig:kF,ijlig:CF,Imacr:TF,imacr:LF,image:EF,ImaginaryI:AF,imagline:MF,imagpart:NF,imath:PF,Im:OF,imof:$F,imped:DF,Implies:RF,incare:zF,in:"∈",infin:IF,infintie:FF,inodot:qF,intcal:HF,int:BF,Int:WF,integers:UF,Integral:jF,intercal:GF,Intersection:VF,intlarhk:KF,intprod:XF,InvisibleComma:YF,InvisibleTimes:ZF,IOcy:JF,iocy:QF,Iogon:tq,iogon:eq,Iopf:nq,iopf:rq,Iota:iq,iota:oq,iprod:sq,iquest:lq,iscr:aq,Iscr:cq,isin:uq,isindot:fq,isinE:hq,isins:dq,isinsv:pq,isinv:gq,it:vq,Itilde:mq,itilde:yq,Iukcy:bq,iukcy:wq,Iuml:xq,iuml:_q,Jcirc:Sq,jcirc:kq,Jcy:Cq,jcy:Tq,Jfr:Lq,jfr:Eq,jmath:Aq,Jopf:Mq,jopf:Nq,Jscr:Pq,jscr:Oq,Jsercy:$q,jsercy:Dq,Jukcy:Rq,jukcy:zq,Kappa:Iq,kappa:Fq,kappav:qq,Kcedil:Hq,kcedil:Bq,Kcy:Wq,kcy:Uq,Kfr:jq,kfr:Gq,kgreen:Vq,KHcy:Kq,khcy:Xq,KJcy:Yq,kjcy:Zq,Kopf:Jq,kopf:Qq,Kscr:tH,kscr:eH,lAarr:nH,Lacute:rH,lacute:iH,laemptyv:oH,lagran:sH,Lambda:lH,lambda:aH,lang:cH,Lang:uH,langd:fH,langle:hH,lap:dH,Laplacetrf:pH,laquo:gH,larrb:vH,larrbfs:mH,larr:yH,Larr:bH,lArr:wH,larrfs:xH,larrhk:_H,larrlp:SH,larrpl:kH,larrsim:CH,larrtl:TH,latail:LH,lAtail:EH,lat:AH,late:MH,lates:NH,lbarr:PH,lBarr:OH,lbbrk:$H,lbrace:DH,lbrack:RH,lbrke:zH,lbrksld:IH,lbrkslu:FH,Lcaron:qH,lcaron:HH,Lcedil:BH,lcedil:WH,lceil:UH,lcub:jH,Lcy:GH,lcy:VH,ldca:KH,ldquo:XH,ldquor:YH,ldrdhar:ZH,ldrushar:JH,ldsh:QH,le:tB,lE:eB,LeftAngleBracket:nB,LeftArrowBar:rB,leftarrow:iB,LeftArrow:oB,Leftarrow:sB,LeftArrowRightArrow:lB,leftarrowtail:aB,LeftCeiling:cB,LeftDoubleBracket:uB,LeftDownTeeVector:fB,LeftDownVectorBar:hB,LeftDownVector:dB,LeftFloor:pB,leftharpoondown:gB,leftharpoonup:vB,leftleftarrows:mB,leftrightarrow:yB,LeftRightArrow:bB,Leftrightarrow:wB,leftrightarrows:xB,leftrightharpoons:_B,leftrightsquigarrow:SB,LeftRightVector:kB,LeftTeeArrow:CB,LeftTee:TB,LeftTeeVector:LB,leftthreetimes:EB,LeftTriangleBar:AB,LeftTriangle:MB,LeftTriangleEqual:NB,LeftUpDownVector:PB,LeftUpTeeVector:OB,LeftUpVectorBar:$B,LeftUpVector:DB,LeftVectorBar:RB,LeftVector:zB,lEg:IB,leg:FB,leq:qB,leqq:HB,leqslant:BB,lescc:WB,les:UB,lesdot:jB,lesdoto:GB,lesdotor:VB,lesg:KB,lesges:XB,lessapprox:YB,lessdot:ZB,lesseqgtr:JB,lesseqqgtr:QB,LessEqualGreater:t3,LessFullEqual:e3,LessGreater:n3,lessgtr:r3,LessLess:i3,lesssim:o3,LessSlantEqual:s3,LessTilde:l3,lfisht:a3,lfloor:c3,Lfr:u3,lfr:f3,lg:h3,lgE:d3,lHar:p3,lhard:g3,lharu:v3,lharul:m3,lhblk:y3,LJcy:b3,ljcy:w3,llarr:x3,ll:_3,Ll:S3,llcorner:k3,Lleftarrow:C3,llhard:T3,lltri:L3,Lmidot:E3,lmidot:A3,lmoustache:M3,lmoust:N3,lnap:P3,lnapprox:O3,lne:$3,lnE:D3,lneq:R3,lneqq:z3,lnsim:I3,loang:F3,loarr:q3,lobrk:H3,longleftarrow:B3,LongLeftArrow:W3,Longleftarrow:U3,longleftrightarrow:j3,LongLeftRightArrow:G3,Longleftrightarrow:V3,longmapsto:K3,longrightarrow:X3,LongRightArrow:Y3,Longrightarrow:Z3,looparrowleft:J3,looparrowright:Q3,lopar:t5,Lopf:e5,lopf:n5,loplus:r5,lotimes:i5,lowast:o5,lowbar:s5,LowerLeftArrow:l5,LowerRightArrow:a5,loz:c5,lozenge:u5,lozf:f5,lpar:h5,lparlt:d5,lrarr:p5,lrcorner:g5,lrhar:v5,lrhard:m5,lrm:y5,lrtri:b5,lsaquo:w5,lscr:x5,Lscr:_5,lsh:S5,Lsh:k5,lsim:C5,lsime:T5,lsimg:L5,lsqb:E5,lsquo:A5,lsquor:M5,Lstrok:N5,lstrok:P5,ltcc:O5,ltcir:$5,lt:D5,LT:R5,Lt:z5,ltdot:I5,lthree:F5,ltimes:q5,ltlarr:H5,ltquest:B5,ltri:W5,ltrie:U5,ltrif:j5,ltrPar:G5,lurdshar:V5,luruhar:K5,lvertneqq:X5,lvnE:Y5,macr:Z5,male:J5,malt:Q5,maltese:tW,Map:"⤅",map:eW,mapsto:nW,mapstodown:rW,mapstoleft:iW,mapstoup:oW,marker:sW,mcomma:lW,Mcy:aW,mcy:cW,mdash:uW,mDDot:fW,measuredangle:hW,MediumSpace:dW,Mellintrf:pW,Mfr:gW,mfr:vW,mho:mW,micro:yW,midast:bW,midcir:wW,mid:xW,middot:_W,minusb:SW,minus:kW,minusd:CW,minusdu:TW,MinusPlus:LW,mlcp:EW,mldr:AW,mnplus:MW,models:NW,Mopf:PW,mopf:OW,mp:$W,mscr:DW,Mscr:RW,mstpos:zW,Mu:IW,mu:FW,multimap:qW,mumap:HW,nabla:BW,Nacute:WW,nacute:UW,nang:jW,nap:GW,napE:VW,napid:KW,napos:XW,napprox:YW,natural:ZW,naturals:JW,natur:QW,nbsp:t8,nbump:e8,nbumpe:n8,ncap:r8,Ncaron:i8,ncaron:o8,Ncedil:s8,ncedil:l8,ncong:a8,ncongdot:c8,ncup:u8,Ncy:f8,ncy:h8,ndash:d8,nearhk:p8,nearr:g8,neArr:v8,nearrow:m8,ne:y8,nedot:b8,NegativeMediumSpace:w8,NegativeThickSpace:x8,NegativeThinSpace:_8,NegativeVeryThinSpace:S8,nequiv:k8,nesear:C8,nesim:T8,NestedGreaterGreater:L8,NestedLessLess:E8,NewLine:A8,nexist:M8,nexists:N8,Nfr:P8,nfr:O8,ngE:$8,nge:D8,ngeq:R8,ngeqq:z8,ngeqslant:I8,nges:F8,nGg:q8,ngsim:H8,nGt:B8,ngt:W8,ngtr:U8,nGtv:j8,nharr:G8,nhArr:V8,nhpar:K8,ni:X8,nis:Y8,nisd:Z8,niv:J8,NJcy:Q8,njcy:tU,nlarr:eU,nlArr:nU,nldr:rU,nlE:iU,nle:oU,nleftarrow:sU,nLeftarrow:lU,nleftrightarrow:aU,nLeftrightarrow:cU,nleq:uU,nleqq:fU,nleqslant:hU,nles:dU,nless:pU,nLl:gU,nlsim:vU,nLt:mU,nlt:yU,nltri:bU,nltrie:wU,nLtv:xU,nmid:_U,NoBreak:SU,NonBreakingSpace:kU,nopf:CU,Nopf:TU,Not:LU,not:EU,NotCongruent:AU,NotCupCap:MU,NotDoubleVerticalBar:NU,NotElement:PU,NotEqual:OU,NotEqualTilde:$U,NotExists:DU,NotGreater:RU,NotGreaterEqual:zU,NotGreaterFullEqual:IU,NotGreaterGreater:FU,NotGreaterLess:qU,NotGreaterSlantEqual:HU,NotGreaterTilde:BU,NotHumpDownHump:WU,NotHumpEqual:UU,notin:jU,notindot:GU,notinE:VU,notinva:KU,notinvb:XU,notinvc:YU,NotLeftTriangleBar:ZU,NotLeftTriangle:JU,NotLeftTriangleEqual:QU,NotLess:t4,NotLessEqual:e4,NotLessGreater:n4,NotLessLess:r4,NotLessSlantEqual:i4,NotLessTilde:o4,NotNestedGreaterGreater:s4,NotNestedLessLess:l4,notni:a4,notniva:c4,notnivb:u4,notnivc:f4,NotPrecedes:h4,NotPrecedesEqual:d4,NotPrecedesSlantEqual:p4,NotReverseElement:g4,NotRightTriangleBar:v4,NotRightTriangle:m4,NotRightTriangleEqual:y4,NotSquareSubset:b4,NotSquareSubsetEqual:w4,NotSquareSuperset:x4,NotSquareSupersetEqual:_4,NotSubset:S4,NotSubsetEqual:k4,NotSucceeds:C4,NotSucceedsEqual:T4,NotSucceedsSlantEqual:L4,NotSucceedsTilde:E4,NotSuperset:A4,NotSupersetEqual:M4,NotTilde:N4,NotTildeEqual:P4,NotTildeFullEqual:O4,NotTildeTilde:$4,NotVerticalBar:D4,nparallel:R4,npar:z4,nparsl:I4,npart:F4,npolint:q4,npr:H4,nprcue:B4,nprec:W4,npreceq:U4,npre:j4,nrarrc:G4,nrarr:V4,nrArr:K4,nrarrw:X4,nrightarrow:Y4,nRightarrow:Z4,nrtri:J4,nrtrie:Q4,nsc:t6,nsccue:e6,nsce:n6,Nscr:r6,nscr:i6,nshortmid:o6,nshortparallel:s6,nsim:l6,nsime:a6,nsimeq:c6,nsmid:u6,nspar:f6,nsqsube:h6,nsqsupe:d6,nsub:p6,nsubE:g6,nsube:v6,nsubset:m6,nsubseteq:y6,nsubseteqq:b6,nsucc:w6,nsucceq:x6,nsup:_6,nsupE:S6,nsupe:k6,nsupset:C6,nsupseteq:T6,nsupseteqq:L6,ntgl:E6,Ntilde:A6,ntilde:M6,ntlg:N6,ntriangleleft:P6,ntrianglelefteq:O6,ntriangleright:$6,ntrianglerighteq:D6,Nu:R6,nu:z6,num:I6,numero:F6,numsp:q6,nvap:H6,nvdash:B6,nvDash:W6,nVdash:U6,nVDash:j6,nvge:G6,nvgt:V6,nvHarr:K6,nvinfin:X6,nvlArr:Y6,nvle:Z6,nvlt:J6,nvltrie:Q6,nvrArr:tj,nvrtrie:ej,nvsim:nj,nwarhk:rj,nwarr:ij,nwArr:oj,nwarrow:sj,nwnear:lj,Oacute:aj,oacute:cj,oast:uj,Ocirc:fj,ocirc:hj,ocir:dj,Ocy:pj,ocy:gj,odash:vj,Odblac:mj,odblac:yj,odiv:bj,odot:wj,odsold:xj,OElig:_j,oelig:Sj,ofcir:kj,Ofr:Cj,ofr:Tj,ogon:Lj,Ograve:Ej,ograve:Aj,ogt:Mj,ohbar:Nj,ohm:Pj,oint:Oj,olarr:$j,olcir:Dj,olcross:Rj,oline:zj,olt:Ij,Omacr:Fj,omacr:qj,Omega:Hj,omega:Bj,Omicron:Wj,omicron:Uj,omid:jj,ominus:Gj,Oopf:Vj,oopf:Kj,opar:Xj,OpenCurlyDoubleQuote:Yj,OpenCurlyQuote:Zj,operp:Jj,oplus:Qj,orarr:t9,Or:e9,or:n9,ord:r9,order:i9,orderof:o9,ordf:s9,ordm:l9,origof:a9,oror:c9,orslope:u9,orv:f9,oS:h9,Oscr:d9,oscr:p9,Oslash:g9,oslash:v9,osol:m9,Otilde:y9,otilde:b9,otimesas:w9,Otimes:x9,otimes:_9,Ouml:S9,ouml:k9,ovbar:C9,OverBar:T9,OverBrace:L9,OverBracket:E9,OverParenthesis:A9,para:M9,parallel:N9,par:P9,parsim:O9,parsl:$9,part:D9,PartialD:R9,Pcy:z9,pcy:I9,percnt:F9,period:q9,permil:H9,perp:B9,pertenk:W9,Pfr:U9,pfr:j9,Phi:G9,phi:V9,phiv:K9,phmmat:X9,phone:Y9,Pi:Z9,pi:J9,pitchfork:Q9,piv:tG,planck:eG,planckh:nG,plankv:rG,plusacir:iG,plusb:oG,pluscir:sG,plus:lG,plusdo:aG,plusdu:cG,pluse:uG,PlusMinus:fG,plusmn:hG,plussim:dG,plustwo:pG,pm:gG,Poincareplane:vG,pointint:mG,popf:yG,Popf:bG,pound:wG,prap:xG,Pr:_G,pr:SG,prcue:kG,precapprox:CG,prec:TG,preccurlyeq:LG,Precedes:EG,PrecedesEqual:AG,PrecedesSlantEqual:MG,PrecedesTilde:NG,preceq:PG,precnapprox:OG,precneqq:$G,precnsim:DG,pre:RG,prE:zG,precsim:IG,prime:FG,Prime:qG,primes:HG,prnap:BG,prnE:WG,prnsim:UG,prod:jG,Product:GG,profalar:VG,profline:KG,profsurf:XG,prop:YG,Proportional:ZG,Proportion:JG,propto:QG,prsim:tV,prurel:eV,Pscr:nV,pscr:rV,Psi:iV,psi:oV,puncsp:sV,Qfr:lV,qfr:aV,qint:cV,qopf:uV,Qopf:fV,qprime:hV,Qscr:dV,qscr:pV,quaternions:gV,quatint:vV,quest:mV,questeq:yV,quot:bV,QUOT:wV,rAarr:xV,race:_V,Racute:SV,racute:kV,radic:CV,raemptyv:TV,rang:LV,Rang:EV,rangd:AV,range:MV,rangle:NV,raquo:PV,rarrap:OV,rarrb:$V,rarrbfs:DV,rarrc:RV,rarr:zV,Rarr:IV,rArr:FV,rarrfs:qV,rarrhk:HV,rarrlp:BV,rarrpl:WV,rarrsim:UV,Rarrtl:jV,rarrtl:GV,rarrw:VV,ratail:KV,rAtail:XV,ratio:YV,rationals:ZV,rbarr:JV,rBarr:QV,RBarr:t7,rbbrk:e7,rbrace:n7,rbrack:r7,rbrke:i7,rbrksld:o7,rbrkslu:s7,Rcaron:l7,rcaron:a7,Rcedil:c7,rcedil:u7,rceil:f7,rcub:h7,Rcy:d7,rcy:p7,rdca:g7,rdldhar:v7,rdquo:m7,rdquor:y7,rdsh:b7,real:w7,realine:x7,realpart:_7,reals:S7,Re:k7,rect:C7,reg:T7,REG:L7,ReverseElement:E7,ReverseEquilibrium:A7,ReverseUpEquilibrium:M7,rfisht:N7,rfloor:P7,rfr:O7,Rfr:$7,rHar:D7,rhard:R7,rharu:z7,rharul:I7,Rho:F7,rho:q7,rhov:H7,RightAngleBracket:B7,RightArrowBar:W7,rightarrow:U7,RightArrow:j7,Rightarrow:G7,RightArrowLeftArrow:V7,rightarrowtail:K7,RightCeiling:X7,RightDoubleBracket:Y7,RightDownTeeVector:Z7,RightDownVectorBar:J7,RightDownVector:Q7,RightFloor:tK,rightharpoondown:eK,rightharpoonup:nK,rightleftarrows:rK,rightleftharpoons:iK,rightrightarrows:oK,rightsquigarrow:sK,RightTeeArrow:lK,RightTee:aK,RightTeeVector:cK,rightthreetimes:uK,RightTriangleBar:fK,RightTriangle:hK,RightTriangleEqual:dK,RightUpDownVector:pK,RightUpTeeVector:gK,RightUpVectorBar:vK,RightUpVector:mK,RightVectorBar:yK,RightVector:bK,ring:wK,risingdotseq:xK,rlarr:_K,rlhar:SK,rlm:kK,rmoustache:CK,rmoust:TK,rnmid:LK,roang:EK,roarr:AK,robrk:MK,ropar:NK,ropf:PK,Ropf:OK,roplus:$K,rotimes:DK,RoundImplies:RK,rpar:zK,rpargt:IK,rppolint:FK,rrarr:qK,Rrightarrow:HK,rsaquo:BK,rscr:WK,Rscr:UK,rsh:jK,Rsh:GK,rsqb:VK,rsquo:KK,rsquor:XK,rthree:YK,rtimes:ZK,rtri:JK,rtrie:QK,rtrif:tX,rtriltri:eX,RuleDelayed:nX,ruluhar:rX,rx:iX,Sacute:oX,sacute:sX,sbquo:lX,scap:aX,Scaron:cX,scaron:uX,Sc:fX,sc:hX,sccue:dX,sce:pX,scE:gX,Scedil:vX,scedil:mX,Scirc:yX,scirc:bX,scnap:wX,scnE:xX,scnsim:_X,scpolint:SX,scsim:kX,Scy:CX,scy:TX,sdotb:LX,sdot:EX,sdote:AX,searhk:MX,searr:NX,seArr:PX,searrow:OX,sect:$X,semi:DX,seswar:RX,setminus:zX,setmn:IX,sext:FX,Sfr:qX,sfr:HX,sfrown:BX,sharp:WX,SHCHcy:UX,shchcy:jX,SHcy:GX,shcy:VX,ShortDownArrow:KX,ShortLeftArrow:XX,shortmid:YX,shortparallel:ZX,ShortRightArrow:JX,ShortUpArrow:QX,shy:tY,Sigma:eY,sigma:nY,sigmaf:rY,sigmav:iY,sim:oY,simdot:sY,sime:lY,simeq:aY,simg:cY,simgE:uY,siml:fY,simlE:hY,simne:dY,simplus:pY,simrarr:gY,slarr:vY,SmallCircle:mY,smallsetminus:yY,smashp:bY,smeparsl:wY,smid:xY,smile:_Y,smt:SY,smte:kY,smtes:CY,SOFTcy:TY,softcy:LY,solbar:EY,solb:AY,sol:MY,Sopf:NY,sopf:PY,spades:OY,spadesuit:$Y,spar:DY,sqcap:RY,sqcaps:zY,sqcup:IY,sqcups:FY,Sqrt:qY,sqsub:HY,sqsube:BY,sqsubset:WY,sqsubseteq:UY,sqsup:jY,sqsupe:GY,sqsupset:VY,sqsupseteq:KY,square:XY,Square:YY,SquareIntersection:ZY,SquareSubset:JY,SquareSubsetEqual:QY,SquareSuperset:tZ,SquareSupersetEqual:eZ,SquareUnion:nZ,squarf:rZ,squ:iZ,squf:oZ,srarr:sZ,Sscr:lZ,sscr:aZ,ssetmn:cZ,ssmile:uZ,sstarf:fZ,Star:hZ,star:dZ,starf:pZ,straightepsilon:gZ,straightphi:vZ,strns:mZ,sub:yZ,Sub:bZ,subdot:wZ,subE:xZ,sube:_Z,subedot:SZ,submult:kZ,subnE:CZ,subne:TZ,subplus:LZ,subrarr:EZ,subset:AZ,Subset:MZ,subseteq:NZ,subseteqq:PZ,SubsetEqual:OZ,subsetneq:$Z,subsetneqq:DZ,subsim:RZ,subsub:zZ,subsup:IZ,succapprox:FZ,succ:qZ,succcurlyeq:HZ,Succeeds:BZ,SucceedsEqual:WZ,SucceedsSlantEqual:UZ,SucceedsTilde:jZ,succeq:GZ,succnapprox:VZ,succneqq:KZ,succnsim:XZ,succsim:YZ,SuchThat:ZZ,sum:JZ,Sum:QZ,sung:tJ,sup1:eJ,sup2:nJ,sup3:rJ,sup:iJ,Sup:oJ,supdot:sJ,supdsub:lJ,supE:aJ,supe:cJ,supedot:uJ,Superset:fJ,SupersetEqual:hJ,suphsol:dJ,suphsub:pJ,suplarr:gJ,supmult:vJ,supnE:mJ,supne:yJ,supplus:bJ,supset:wJ,Supset:xJ,supseteq:_J,supseteqq:SJ,supsetneq:kJ,supsetneqq:CJ,supsim:TJ,supsub:LJ,supsup:EJ,swarhk:AJ,swarr:MJ,swArr:NJ,swarrow:PJ,swnwar:OJ,szlig:$J,Tab:DJ,target:RJ,Tau:zJ,tau:IJ,tbrk:FJ,Tcaron:qJ,tcaron:HJ,Tcedil:BJ,tcedil:WJ,Tcy:UJ,tcy:jJ,tdot:GJ,telrec:VJ,Tfr:KJ,tfr:XJ,there4:YJ,therefore:ZJ,Therefore:JJ,Theta:QJ,theta:tQ,thetasym:eQ,thetav:nQ,thickapprox:rQ,thicksim:iQ,ThickSpace:oQ,ThinSpace:sQ,thinsp:lQ,thkap:aQ,thksim:cQ,THORN:uQ,thorn:fQ,tilde:hQ,Tilde:dQ,TildeEqual:pQ,TildeFullEqual:gQ,TildeTilde:vQ,timesbar:mQ,timesb:yQ,times:bQ,timesd:wQ,tint:xQ,toea:_Q,topbot:SQ,topcir:kQ,top:CQ,Topf:TQ,topf:LQ,topfork:EQ,tosa:AQ,tprime:MQ,trade:NQ,TRADE:PQ,triangle:OQ,triangledown:$Q,triangleleft:DQ,trianglelefteq:RQ,triangleq:zQ,triangleright:IQ,trianglerighteq:FQ,tridot:qQ,trie:HQ,triminus:BQ,TripleDot:WQ,triplus:UQ,trisb:jQ,tritime:GQ,trpezium:VQ,Tscr:KQ,tscr:XQ,TScy:YQ,tscy:ZQ,TSHcy:JQ,tshcy:QQ,Tstrok:ttt,tstrok:ett,twixt:ntt,twoheadleftarrow:rtt,twoheadrightarrow:itt,Uacute:ott,uacute:stt,uarr:ltt,Uarr:att,uArr:ctt,Uarrocir:utt,Ubrcy:ftt,ubrcy:htt,Ubreve:dtt,ubreve:ptt,Ucirc:gtt,ucirc:vtt,Ucy:mtt,ucy:ytt,udarr:btt,Udblac:wtt,udblac:xtt,udhar:_tt,ufisht:Stt,Ufr:ktt,ufr:Ctt,Ugrave:Ttt,ugrave:Ltt,uHar:Ett,uharl:Att,uharr:Mtt,uhblk:Ntt,ulcorn:Ptt,ulcorner:Ott,ulcrop:$tt,ultri:Dtt,Umacr:Rtt,umacr:ztt,uml:Itt,UnderBar:Ftt,UnderBrace:qtt,UnderBracket:Htt,UnderParenthesis:Btt,Union:Wtt,UnionPlus:Utt,Uogon:jtt,uogon:Gtt,Uopf:Vtt,uopf:Ktt,UpArrowBar:Xtt,uparrow:Ytt,UpArrow:Ztt,Uparrow:Jtt,UpArrowDownArrow:Qtt,updownarrow:tet,UpDownArrow:eet,Updownarrow:net,UpEquilibrium:ret,upharpoonleft:iet,upharpoonright:oet,uplus:set,UpperLeftArrow:aet,UpperRightArrow:cet,upsi:uet,Upsi:fet,upsih:het,Upsilon:det,upsilon:pet,UpTeeArrow:get,UpTee:vet,upuparrows:met,urcorn:yet,urcorner:bet,urcrop:wet,Uring:xet,uring:_et,urtri:ket,Uscr:Cet,uscr:Tet,utdot:Let,Utilde:Eet,utilde:Aet,utri:Met,utrif:Net,uuarr:Pet,Uuml:Oet,uuml:$et,uwangle:Det,vangrt:Ret,varepsilon:zet,varkappa:Iet,varnothing:Fet,varphi:qet,varpi:Het,varpropto:Bet,varr:Wet,vArr:Uet,varrho:jet,varsigma:Get,varsubsetneq:Vet,varsubsetneqq:Ket,varsupsetneq:Xet,varsupsetneqq:Yet,vartheta:Zet,vartriangleleft:Jet,vartriangleright:Qet,vBar:tnt,Vbar:ent,vBarv:nnt,Vcy:rnt,vcy:int,vdash:ont,vDash:snt,Vdash:lnt,VDash:ant,Vdashl:cnt,veebar:unt,vee:fnt,Vee:hnt,veeeq:dnt,vellip:pnt,verbar:gnt,Verbar:vnt,vert:mnt,Vert:ynt,VerticalBar:bnt,VerticalLine:wnt,VerticalSeparator:xnt,VerticalTilde:_nt,VeryThinSpace:Snt,Vfr:knt,vfr:Cnt,vltri:Tnt,vnsub:Lnt,vnsup:Ent,Vopf:Ant,vopf:Mnt,vprop:Nnt,vrtri:Pnt,Vscr:Ont,vscr:$nt,vsubnE:Dnt,vsubne:Rnt,vsupnE:znt,vsupne:Int,Vvdash:Fnt,vzigzag:qnt,Wcirc:Hnt,wcirc:Bnt,wedbar:Wnt,wedge:Unt,Wedge:jnt,wedgeq:Gnt,weierp:Vnt,Wfr:Knt,wfr:Xnt,Wopf:Ynt,wopf:Znt,wp:Jnt,wr:Qnt,wreath:trt,Wscr:ert,wscr:nrt,xcap:rrt,xcirc:irt,xcup:ort,xdtri:srt,Xfr:lrt,xfr:art,xharr:crt,xhArr:urt,Xi:frt,xi:hrt,xlarr:drt,xlArr:prt,xmap:grt,xnis:vrt,xodot:mrt,Xopf:yrt,xopf:brt,xoplus:wrt,xotime:xrt,xrarr:_rt,xrArr:Srt,Xscr:krt,xscr:Crt,xsqcup:Trt,xuplus:Lrt,xutri:Ert,xvee:Art,xwedge:Mrt,Yacute:Nrt,yacute:Prt,YAcy:Ort,yacy:$rt,Ycirc:Drt,ycirc:Rrt,Ycy:zrt,ycy:Irt,yen:Frt,Yfr:qrt,yfr:Hrt,YIcy:Brt,yicy:Wrt,Yopf:Urt,yopf:jrt,Yscr:Grt,yscr:Vrt,YUcy:Krt,yucy:Xrt,yuml:Yrt,Yuml:Zrt,Zacute:Jrt,zacute:Qrt,Zcaron:tit,zcaron:eit,Zcy:nit,zcy:rit,Zdot:iit,zdot:oit,zeetrf:sit,ZeroWidthSpace:lit,Zeta:ait,zeta:cit,zfr:uit,Zfr:fit,ZHcy:hit,zhcy:dit,zigrarr:pit,zopf:git,Zopf:vit,Zscr:mit,zscr:yit,zwj:bit,zwnj:wit},xit="Á",_it="á",Sit="Â",kit="â",Cit="´",Tit="Æ",Lit="æ",Eit="À",Ait="à",Mit="&",Nit="&",Pit="Å",Oit="å",$it="Ã",Dit="ã",Rit="Ä",zit="ä",Iit="¦",Fit="Ç",qit="ç",Hit="¸",Bit="¢",Wit="©",Uit="©",jit="¤",Git="°",Vit="÷",Kit="É",Xit="é",Yit="Ê",Zit="ê",Jit="È",Qit="è",tot="Ð",eot="ð",not="Ë",rot="ë",iot="½",oot="¼",sot="¾",lot=">",aot=">",cot="Í",uot="í",fot="Î",hot="î",dot="¡",pot="Ì",got="ì",vot="¿",mot="Ï",yot="ï",bot="«",wot="<",xot="<",_ot="¯",Sot="µ",kot="·",Cot=" ",Tot="¬",Lot="Ñ",Eot="ñ",Aot="Ó",Mot="ó",Not="Ô",Pot="ô",Oot="Ò",$ot="ò",Dot="ª",Rot="º",zot="Ø",Iot="ø",Fot="Õ",qot="õ",Hot="Ö",Bot="ö",Wot="¶",Uot="±",jot="£",Got='"',Vot='"',Kot="»",Xot="®",Yot="®",Zot="§",Jot="",Qot="¹",tst="²",est="³",nst="ß",rst="Þ",ist="þ",ost="×",sst="Ú",lst="ú",ast="Û",cst="û",ust="Ù",fst="ù",hst="¨",dst="Ü",pst="ü",gst="Ý",vst="ý",mst="¥",yst="ÿ",bst={Aacute:xit,aacute:_it,Acirc:Sit,acirc:kit,acute:Cit,AElig:Tit,aelig:Lit,Agrave:Eit,agrave:Ait,amp:Mit,AMP:Nit,Aring:Pit,aring:Oit,Atilde:$it,atilde:Dit,Auml:Rit,auml:zit,brvbar:Iit,Ccedil:Fit,ccedil:qit,cedil:Hit,cent:Bit,copy:Wit,COPY:Uit,curren:jit,deg:Git,divide:Vit,Eacute:Kit,eacute:Xit,Ecirc:Yit,ecirc:Zit,Egrave:Jit,egrave:Qit,ETH:tot,eth:eot,Euml:not,euml:rot,frac12:iot,frac14:oot,frac34:sot,gt:lot,GT:aot,Iacute:cot,iacute:uot,Icirc:fot,icirc:hot,iexcl:dot,Igrave:pot,igrave:got,iquest:vot,Iuml:mot,iuml:yot,laquo:bot,lt:wot,LT:xot,macr:_ot,micro:Sot,middot:kot,nbsp:Cot,not:Tot,Ntilde:Lot,ntilde:Eot,Oacute:Aot,oacute:Mot,Ocirc:Not,ocirc:Pot,Ograve:Oot,ograve:$ot,ordf:Dot,ordm:Rot,Oslash:zot,oslash:Iot,Otilde:Fot,otilde:qot,Ouml:Hot,ouml:Bot,para:Wot,plusmn:Uot,pound:jot,quot:Got,QUOT:Vot,raquo:Kot,reg:Xot,REG:Yot,sect:Zot,shy:Jot,sup1:Qot,sup2:tst,sup3:est,szlig:nst,THORN:rst,thorn:ist,times:ost,Uacute:sst,uacute:lst,Ucirc:ast,ucirc:cst,Ugrave:ust,ugrave:fst,uml:hst,Uuml:dst,uuml:pst,Yacute:gst,yacute:vst,yen:mst,yuml:yst},wst="&",xst="'",_st=">",Sst="<",kst='"',oy={amp:wst,apos:xst,gt:_st,lt:Sst,quot:kst};var hh={};const Cst={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 Tst=Yi&&Yi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hh,"__esModule",{value:!0});var av=Tst(Cst),Lst=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 Est(t){return t>=55296&&t<=57343||t>1114111?"�":(t in av.default&&(t=av.default[t]),Lst(t))}hh.default=Est;var bc=Yi&&Yi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.decodeHTML=Dr.decodeHTMLStrict=Dr.decodeXML=void 0;var mf=bc(iy),Ast=bc(bst),Mst=bc(oy),cv=bc(hh),Nst=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Dr.decodeXML=sy(Mst.default);Dr.decodeHTMLStrict=sy(mf.default);function sy(t){var n=ly(t);return function(r){return String(r).replace(Nst,n)}}var uv=function(t,n){return t<n?1:-1};Dr.decodeHTML=function(){for(var t=Object.keys(Ast.default).sort(uv),n=Object.keys(mf.default).sort(uv),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=ly(mf.default);function f(h){return h.substr(-1)!==";"&&(h+=";"),u(h)}return function(h){return String(h).replace(a,f)}}();function ly(t){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?cv.default(parseInt(r.substr(3),16)):cv.default(parseInt(r.substr(2),10))}return t[r.slice(1,-1)]||r}}var Nn={},ay=Yi&&Yi.__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 Pst=ay(oy),cy=fy(Pst.default),uy=hy(cy);Nn.encodeXML=gy(cy);var Ost=ay(iy),dh=fy(Ost.default),$st=hy(dh);Nn.encodeHTML=Rst(dh,$st);Nn.encodeNonAsciiHTML=gy(dh);function fy(t){return Object.keys(t).sort().reduce(function(n,r){return n[t[r]]="&"+r+";",n},{})}function hy(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 d=1+h-f;d<3||n.splice(f,d,n[f]+"-"+n[h])}return r.unshift("["+n.join("")+"]"),new RegExp(r.join("|"),"g")}var dy=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,Dst=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function wc(t){return"&#x"+(t.length>1?Dst(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function Rst(t,n){return function(r){return r.replace(n,function(o){return t[o]}).replace(dy,wc)}}var py=new RegExp(uy.source+"|"+dy.source,"g");function zst(t){return t.replace(py,wc)}Nn.escape=zst;function Ist(t){return t.replace(uy,wc)}Nn.escapeUTF8=Ist;function gy(t){return function(n){return n.replace(py,function(r){return t[r]||wc(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=Dr,r=Nn;function o(d,g){return(!g||g<=0?n.decodeXML:n.decodeHTML)(d)}t.decode=o;function a(d,g){return(!g||g<=0?n.decodeXML:n.decodeHTMLStrict)(d)}t.decodeStrict=a;function u(d,g){return(!g||g<=0?r.encodeXML:r.encodeHTML)(d)}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=Dr;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}})})(ry);function Fst(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function fv(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 qst(t,n,r){return n&&fv(t.prototype,n),r&&fv(t,r),t}function vy(t,n){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Hst(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.
|
|
9
|
-
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 Hst(t,n){if(!!t){if(typeof t=="string")return hv(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 hv(t,n)}}function hv(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 Bst=ry,dv={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:Wst()};function Wst(){var t={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return ca(0,5).forEach(function(n){ca(0,5).forEach(function(r){ca(0,5).forEach(function(o){return Ust(n,r,o,t)})})}),ca(0,23).forEach(function(n){var r=n+232,o=my(n*10+8);t[r]="#"+o+o+o}),t}function Ust(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]=jst([u,f,h])}function my(t){for(var n=t.toString(16);n.length<2;)n="0"+n;return n}function jst(t){var n=[],r=vy(t),o;try{for(r.s();!(o=r.n()).done;){var a=o.value;n.push(my(a))}}catch(u){r.e(u)}finally{r.f()}return"#"+n.join("")}function pv(t,n,r,o){var a;return n==="text"?a=Xst(r,o):n==="display"?a=Vst(t,r,o):n==="xterm256Foreground"?a=Sa(t,o.colors[r]):n==="xterm256Background"?a=ka(t,o.colors[r]):n==="rgb"&&(a=Gst(t,r)),a}function Gst(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 _a(t,(r===38?"color:#":"background-color:#")+a)}function Vst(t,n,r){n=parseInt(n,10);var o={"-1":function(){return"<br/>"},0:function(){return t.length&&yy(t)},1:function(){return ui(t,"b")},3:function(){return ui(t,"i")},4:function(){return ui(t,"u")},8:function(){return _a(t,"display:none")},9:function(){return ui(t,"strike")},22:function(){return _a(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return vv(t,"i")},24:function(){return vv(t,"u")},39:function(){return Sa(t,r.fg)},49:function(){return ka(t,r.bg)},53:function(){return _a(t,"text-decoration:overline")}},a;return o[n]?a=o[n]():4<n&&n<7?a=ui(t,"blink"):29<n&&n<38?a=Sa(t,r.colors[n-30]):39<n&&n<48?a=ka(t,r.colors[n-40]):89<n&&n<98?a=Sa(t,r.colors[8+(n-90)]):99<n&&n<108&&(a=ka(t,r.colors[8+(n-100)])),a}function yy(t){var n=t.slice(0);return t.length=0,n.reverse().map(function(r){return"</"+r+">"}).join("")}function ca(t,n){for(var r=[],o=t;o<=n;o++)r.push(o);return r}function Kst(t){return function(n){return(t===null||n.category!==t)&&t!=="all"}}function gv(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?Bst.encodeXML(t):t}function ui(t,n,r){return r||(r=""),t.push(n),"<".concat(n).concat(r?' style="'.concat(r,'"'):"",">")}function _a(t,n){return ui(t,"span",n)}function Sa(t,n){return ui(t,"span","color:"+n)}function ka(t,n){return ui(t,"span","background-color:"+n)}function vv(t,n){var r;if(t.slice(-1)[0]===n&&(r=t.pop()),r)return"</"+n+">"}function Yst(t,n,r){var o=!1,a=3;function u(){return""}function f(G,V){return r("xterm256Foreground",V),""}function h(G,V){return r("xterm256Background",V),""}function d(G){return n.newline?r("display",-1):r("text",G),""}function g(G,V){o=!0,V.trim().length===0&&(V="0"),V=V.trimRight(";").split(";");var rt=vy(V),J;try{for(rt.s();!(J=rt.n()).done;){var dt=J.value;r("display",dt)}}catch(gt){rt.e(gt)}finally{rt.f()}return""}function v(G){return r("text",G),""}function b(G){return r("rgb",G),""}var w=[{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:d},{pattern:/^\r+\n/,sub:d},{pattern:/^\r/,sub:d},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:g},{pattern:/^\x1b\[\d?J/,sub:u},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:u},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:u},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:v}];function S(G,V){V>a&&o||(o=!1,t=t.replace(G.pattern,G.sub))}var M=[],A=t,E=A.length;t:for(;E>0;){for(var T=0,L=0,$=w.length;L<$;T=++L){var O=w[T];if(S(O,T),t.length!==E){E=t.length;continue t}}if(t.length===E)break;M.push(0),E=t.length}return M}function Zst(t,n,r){return n!=="text"&&(t=t.filter(Kst(gv(r))),t.push({token:n,data:r,category:gv(r)})),t}var Jst=function(){function t(n){Fst(this,t),n=n||{},n.colors&&(n.colors=Object.assign({},dv.colors,n.colors)),this.options=Object.assign({},dv,n),this.stack=[],this.stickyStack=[]}return qst(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 d=pv(a,h.token,h.data,u);d&&f.push(d)}),Yst(r.join(""),u,function(h,d){var g=pv(a,h,d,u);g&&f.push(g),u.stream&&(o.stickyStack=Zst(o.stickyStack,h,d))}),a.length&&f.push(yy(a)),f.join("")}}]),t}(),Qst=Jst;function tlt(t,n){return n&&t.endsWith(n)}async function by(t,n,r){const o=encodeURI(`${t}:${n}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function wy(t){return new Qst({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}const elt={class:"scrolls scrolls-rounded task-error"},nlt=["onClickPassive"],rlt={key:0},ilt=re({__name:"ViewReportError",props:{root:null,filename:null,error:null},setup(t){const n=t;function r(u){return u.startsWith(n.root)?u.slice(n.root.length):u}const o=_t(()=>{var u,f;return((u=n.error)==null?void 0:u.expected)&&((f=n.error)==null?void 0:f.actual)});function a(){return eL(n.error.actual,n.error.expected,{outputTruncateLength:80})}return(u,f)=>{const h=Qi("tooltip");return at(),Et("div",elt,[ht("pre",null,[ht("b",null,Xt(t.error.name||t.error.nameStr),1),fn(": "+Xt(t.error.message),1)]),(at(!0),Et(ce,null,Vn(t.error.stacks,(d,g)=>(at(),Et("div",{key:g,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ht("pre",null," - "+Xt(r(d.file))+":"+Xt(d.line)+":"+Xt(d.column),1),j(tlt)(d.file,t.filename)?pn((at(),Et("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:v=>j(by)(d.file,d.line,d.column)},null,40,nlt)),[[h,"Open in Editor",void 0,{bottom:!0}]]):le("",!0)]))),128)),j(o)?(at(),Et("pre",rlt," "+Xt(`
|
|
10
|
-
${a()}`)+`
|
|
11
|
-
`,1)):le("",!0)])}}});const olt=to(ilt,[["__scopeId","data-v-58f340bc"]]),xc=oT(),slt=mC(xc),llt={"h-full":"",class:"scrolls"},alt={key:0,class:"scrolls scrolls-rounded task-error"},clt=["innerHTML"],ult={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},flt=re({__name:"ViewReport",props:{file:null},setup(t){const n=t;function r(h,d){var g;return((g=h.result)==null?void 0:g.state)!=="fail"?[]:h.type==="test"||h.type==="custom"?[{...h,level:d}]:[{...h,level:d},...h.tasks.flatMap(v=>r(v,d+1))]}function o(h){return h.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function a(h,d){var b,w;let g="";d.message.includes("\x1B")&&(g=`<b>${d.nameStr||d.name}</b>: ${h.toHtml(o(d.message))}`);const v=(b=d.stackStr)==null?void 0:b.includes("\x1B");return(v||((w=d.stack)==null?void 0:w.includes("\x1B")))&&(g.length>0?g+=h.toHtml(o(v?d.stackStr:d.stack)):g=`<b>${d.nameStr||d.name}</b>: ${d.message}${h.toHtml(o(v?d.stackStr:d.stack))}`),g.length>0?g:null}function u(h,d){const g=wy(h);return d.map(v=>{var S;const b=v.result;if(!b)return v;const w=(S=b.errors)==null?void 0:S.map(M=>a(g,M)).filter(M=>M!=null).join("<br><br>");return w!=null&&w.length&&(b.htmlError=w),v})}const f=_t(()=>{var b,w;const h=n.file,d=((b=h==null?void 0:h.tasks)==null?void 0:b.flatMap(S=>r(S,0)))??[],g=h==null?void 0:h.result;if((w=g==null?void 0:g.errors)==null?void 0:w[0]){const S={id:h.id,name:h.name,level:0,type:"suite",mode:"run",tasks:[],result:g};d.unshift(S)}return d.length>0?u(xc.value,d):d});return(h,d)=>(at(),Et("div",llt,[j(f).length?(at(!0),Et(ce,{key:0},Vn(j(f),g=>{var v,b,w;return at(),Et("div",{key:g.id},[ht("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:kn({"margin-left":`${(v=g.result)!=null&&v.htmlError?.5:2*g.level+.5}rem`})},[fn(Xt(g.name)+" ",1),(b=g.result)!=null&&b.htmlError?(at(),Et("div",alt,[ht("pre",{innerHTML:g.result.htmlError},null,8,clt)])):(w=g.result)!=null&&w.errors?(at(!0),Et(ce,{key:1},Vn(g.result.errors,(S,M)=>{var A;return at(),Qt(olt,{key:M,error:S,filename:(A=t.file)==null?void 0:A.name,root:j(Q0).root},null,8,["error","filename","root"])}),128)):le("",!0)],4)])}),128)):(at(),Et("div",ult," All tests passed in this file "))]))}});const hlt=to(flt,[["__scopeId","data-v-1988b97e"]]),dlt={border:"b base","p-4":""},plt=["innerHTML"],glt=["textContent"],vlt=re({__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)=>(at(),Et("div",dlt,[ht("div",{"text-xs":"","mb-1":"",class:ve(n.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Xt(r(n.time))+" | "+Xt(n.taskName)+" | "+Xt(n.type),3),n.html?(at(),Et("pre",{key:0,"data-type":"html",innerHTML:n.content},null,8,plt)):(at(),Et("pre",{key:1,"data-type":"text",textContent:Xt(n.content)},null,8,glt))]))}}),mlt={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},ylt={key:1,p6:""},blt=ht("pre",{inline:""},"console.log(foo)",-1),wlt=re({__name:"ViewConsoleOutput",setup(t){const n=_t(()=>{const o=ty.value;if(o){const a=wy(xc.value);return o.map(({taskId:u,type:f,time:h,content:d})=>{const g=d.trim(),v=a.toHtml(g);return v!==g?{taskId:u,type:f,time:h,html:!0,content:v}:{taskId:u,type:f,time:h,html:!1,content:d}})}});function r(o){const a=o&&Ue.state.idMap.get(o);return a?AT(a).slice(1).join(" > "):"-"}return(o,a)=>{var f;const u=vlt;return(f=j(n))!=null&&f.length?(at(),Et("div",mlt,[(at(!0),Et(ce,null,Vn(j(n),({taskId:h,type:d,time:g,html:v,content:b})=>(at(),Et("div",{key:h,"font-mono":""},[zt(u,{"task-name":r(h),type:d,time:g,content:b,html:v},null,8,["task-name","type","time","content","html"])]))),128))])):(at(),Et("p",ylt,[fn(" Log something in your test and it would print here. (e.g. "),blt,fn(") ")]))}}});var Du={exports:{}},mv;function ts(){return mv||(mv=1,function(t,n){(function(r,o){t.exports=o()})(Yi,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),d=u||f||h,g=d&&(u?document.documentMode||6:+(h||f)[1]),v=!h&&/WebKit\//.test(r),b=v&&/Qt\/\d+\.\d+/.test(r),w=!h&&/Chrome\/(\d+)/.exec(r),S=w&&+w[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),T=/PhantomJS/.test(r),L=A&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),$=/Android/.test(r),O=L||$||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),G=L||/Mac/.test(o),V=/\bCrOS\b/.test(r),rt=/win/i.test(o),J=M&&r.match(/Version\/(\d*\.\d*)/);J&&(J=Number(J[1])),J&&J>=15&&(M=!1,v=!0);var dt=G&&(b||M&&(J==null||J<12.11)),gt=a||d&&g>=9;function kt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ut=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 z(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 p=0;p<i.length;++p)c.appendChild(i[p]);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 At(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}:d&&(Bt=function(e){try{e.select()}catch{}});function Gt(e){return e.display.wrapper.ownerDocument}function ie(e){return Gt(e).defaultView}function Q(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 K(e,i,l,s,c){i==null&&(i=e.search(/[^\s\u00a0]/),i==-1&&(i=e.length));for(var p=s||0,m=c||0;;){var y=e.indexOf(" ",p);if(y<0||y>=i)return m+(i-p);m+=y-p,m+=l-m%l,p=y+1}}var st=function(){this.id=null,this.f=null,this.time=0,this.handler=Q(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 pe=50,Lt={toString:function(){return"CodeMirror.Pass"}},P={scroll:!1},F={origin:"*mouse"},Z={origin:"+move"};function nt(e,i,l){for(var s=0,c=0;;){var p=e.indexOf(" ",s);p==-1&&(p=e.length);var m=p-s;if(p==e.length||c+m>=i)return s+Math.min(m,i-c);if(c+=p-s,c+=l-c%l,s=p+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 vt(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 ct(){}function $t(e,i){var l;return Object.create?l=Object.create(e):(ct.prototype=e,l=new ct),i&&tt(i,l),l}var Nt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ot(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Nt.test(e))}function Rt(e,i){return i?i.source.indexOf("\\w")>-1&&Ot(e)?!0:i.test(e):Ot(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 Jt(e){return e.charCodeAt(0)>=768&&te.test(e)}function ae(e,i,l){for(;(l<0?i>0:i<e.length)&&Jt(e.charAt(i));)i+=l;return i}function Yt(e,i,l){for(var s=i>l?-1:1;;){if(i==l)return i;var c=(i+l)/2,p=s<0?Math.ceil(c):Math.floor(c);if(p==i)return e(p)?i:l;e(p)?l=p:i=p+s}}function mn(e,i,l,s){if(!e)return s(i,l,"ltr",0);for(var c=!1,p=0;p<e.length;++p){var m=e[p];(m.from<l&&m.to>i||i==l&&m.to==i)&&(s(Math.max(m.from,i),Math.min(m.to,l),m.level==1?"rtl":"ltr",p),c=!0)}c||s(i,l,"ltr")}var Ln=null;function He(e,i,l){var s;Ln=null;for(var c=0;c<e.length;++c){var p=e[c];if(p.from<i&&p.to>i)return c;p.to==i&&(p.from!=p.to&&l=="before"?s=c:Ln=c),p.from==i&&(p.from!=p.to&&l!="before"?s=c:Ln=c)}return s??Ln}var eo=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]/,p=/[LRr]/,m=/[Lb1n]/,y=/[1n]/;function x(_,N,D){this.level=_,this.from=N,this.to=D}return function(_,N){var D=N=="ltr"?"L":"R";if(_.length==0||N=="ltr"&&!s.test(_))return!1;for(var B=_.length,q=[],Y=0;Y<B;++Y)q.push(l(_.charCodeAt(Y)));for(var it=0,ft=D;it<B;++it){var mt=q[it];mt=="m"?q[it]=ft:ft=mt}for(var St=0,yt=D;St<B;++St){var Tt=q[St];Tt=="1"&&yt=="r"?q[St]="n":p.test(Tt)&&(yt=Tt,Tt=="r"&&(q[St]="R"))}for(var Dt=1,Pt=q[0];Dt<B-1;++Dt){var Ut=q[Dt];Ut=="+"&&Pt=="1"&&q[Dt+1]=="1"?q[Dt]="1":Ut==","&&Pt==q[Dt+1]&&(Pt=="1"||Pt=="n")&&(q[Dt]=Pt),Pt=Ut}for(var ge=0;ge<B;++ge){var ze=q[ge];if(ze==",")q[ge]="N";else if(ze=="%"){var _e=void 0;for(_e=ge+1;_e<B&&q[_e]=="%";++_e);for(var wn=ge&&q[ge-1]=="!"||_e<B&&q[_e]=="1"?"1":"N",ln=ge;ln<_e;++ln)q[ln]=wn;ge=_e-1}}for(var Ae=0,an=D;Ae<B;++Ae){var Be=q[Ae];an=="L"&&Be=="1"?q[Ae]="L":p.test(Be)&&(an=Be)}for(var Oe=0;Oe<B;++Oe)if(c.test(q[Oe])){var Me=void 0;for(Me=Oe+1;Me<B&&c.test(q[Me]);++Me);for(var Ce=(Oe?q[Oe-1]:D)=="L",cn=(Me<B?q[Me]:D)=="L",So=Ce==cn?Ce?"L":"R":D,ti=Oe;ti<Me;++ti)q[ti]=So;Oe=Me-1}for(var Ke=[],or,Ie=0;Ie<B;)if(m.test(q[Ie])){var yu=Ie;for(++Ie;Ie<B&&m.test(q[Ie]);++Ie);Ke.push(new x(0,yu,Ie))}else{var Tr=Ie,Ni=Ke.length,Pi=N=="rtl"?1:0;for(++Ie;Ie<B&&q[Ie]!="L";++Ie);for(var tn=Tr;tn<Ie;)if(y.test(q[tn])){Tr<tn&&(Ke.splice(Ni,0,new x(1,Tr,tn)),Ni+=Pi);var ko=tn;for(++tn;tn<Ie&&y.test(q[tn]);++tn);Ke.splice(Ni,0,new x(2,ko,tn)),Ni+=Pi,Tr=tn}else++tn;Tr<Ie&&Ke.splice(Ni,0,new x(1,Tr,Ie))}return N=="ltr"&&(Ke[0].level==1&&(or=_.match(/^\s+/))&&(Ke[0].from=or[0].length,Ke.unshift(new x(0,0,or[0].length))),lt(Ke).level==1&&(or=_.match(/\s+$/))&&(lt(Ke).to-=or[0].length,Ke.push(new x(0,B-or[0].length,B)))),N=="rtl"?Ke.reverse():Ke}}();function ye(e,i){var l=e.order;return l==null&&(l=e.order=eo(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 ns(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 p=Ct(c,l);p>-1&&(s[i]=c.slice(0,p).concat(c.slice(p+1)))}}}function me(e,i){var l=ns(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}}),me(e,l||i.type,e,i),rs(i)||i.codemirrorIgnore}function xl(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 Ze(e,i){return ns(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 _i(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function rs(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function mr(e){Ge(e),_i(e)}function rn(e){return e.target||e.srcElement}function is(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 Cc=function(){if(d&&g<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),Dn;function Tc(e){if(Dn==null){var i=k("span","");z(e,k("span",[i,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Dn=i.offsetWidth<=1&&i.offsetHeight>2&&!(d&&g<8))}var l=Dn?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var no;function _l(e){if(no!=null)return no;var i=z(e,document.createTextNode("AخA")),l=W(i,0,1).getBoundingClientRect(),s=W(i,1,2).getBoundingClientRect();return U(e),!l||l.left==l.right?!1:no=s.right-l.right<3}var os=`
|
|
12
|
-
|
|
13
|
-
b`.split(/\n/).length!=3?function(e){for(var i=0,l=[],s=e.length;i<=s;){var c=e.indexOf(`
|
|
14
|
-
`,i);c==-1&&(c=e.length);var p=e.slice(i,e.charAt(c-1)=="\r"?c-1:c),m=p.indexOf("\r");m!=-1?(l.push(p.slice(0,m)),i+=m+1):(l.push(p),i=c+1)}return l}:function(e){return e.split(/\r\n?|\n/)},Br=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},Qn=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),tr=null;function Sl(e){if(tr!=null)return tr;var i=z(e,k("span","x")),l=i.getBoundingClientRect(),s=W(i,0,1).getBoundingClientRect();return tr=Math.abs(l.left-s.left)>1}var qn={},Wr={};function kl(e,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),qn[e]=i}function ro(e,i){Wr[e]=i}function yn(e){if(typeof e=="string"&&Wr.hasOwnProperty(e))e=Wr[e];else if(e&&typeof e.name=="string"&&Wr.hasOwnProperty(e.name)){var i=Wr[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 yr(e,i){i=yn(i);var l=qn[i.name];if(!l)return yr(e,"text/plain");var s=l(e,i);if(Ur.hasOwnProperty(i.name)){var c=Ur[i.name];for(var p in c)!c.hasOwnProperty(p)||(s.hasOwnProperty(p)&&(s["_"+p]=s[p]),s[p]=c[p])}if(s.name=i.name,i.helperType&&(s.helperType=i.helperType),i.modeProps)for(var m in i.modeProps)s[m]=i.modeProps[m];return s}var Ur={};function Cl(e,i){var l=Ur.hasOwnProperty(e)?Ur[e]:Ur[e]={};tt(i,l)}function br(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 jr(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 ss(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=K(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},ke.prototype.indentation=function(){return K(this.string,null,this.tabSize)-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},ke.prototype.match=function(e,i,l){if(typeof e=="string"){var s=function(m){return l?m.toLowerCase():m},c=this.string.substr(this.pos,e.length);if(s(c)==s(e))return i!==!1&&(this.pos+=e.length),!0}else{var p=this.string.slice(this.pos).match(e);return p&&p.index>0?null:(p&&i!==!1&&(this.pos+=p[0].length),p)}},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 Mt(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],p=c.chunkSize();if(i<p){l=c;break}i-=p}return l.lines[i]}function wr(e,i,l){var s=[],c=i.line;return e.iter(i.line,l.line+1,function(p){var m=p.text;c==l.line&&(m=m.slice(0,l.ch)),c==i.line&&(m=m.slice(i.ch)),s.push(m),++c}),s}function io(e,i,l){var s=[];return e.iter(i,l,function(c){s.push(c.text)}),s}function Rn(e,i){var l=i-e.height;if(l)for(var s=e;s;s=s.parent)s.height+=l}function oe(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 er(e,i){var l=e.first;t:do{for(var s=0;s<e.children.length;++s){var c=e.children[s],p=c.height;if(i<p){e=c;continue t}i-=p,l+=c.chunkSize()}return l}while(!e.lines);for(var m=0;m<e.lines.length;++m){var y=e.lines[m],x=y.height;if(i<x)break;i-=x}return l+m}function C(e,i){return i>=e.first&&i<e.first+e.size}function R(e,i){return String(e.lineNumberFormatter(i+e.firstLineNumber))}function I(e,i,l){if(l===void 0&&(l=null),!(this instanceof I))return new I(e,i,l);this.line=e,this.ch=i,this.sticky=l}function X(e,i){return e.line-i.line||e.ch-i.ch}function It(e,i){return e.sticky==i.sticky&&X(e,i)==0}function Vt(e){return I(e.line,e.ch)}function ee(e,i){return X(e,i)<0?i:e}function Pe(e,i){return X(e,i)<0?e:i}function En(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 I(e.first,0);var l=e.first+e.size-1;return i.line>l?I(l,Mt(e,l).text.length):hb(i,Mt(e,i.line).text.length)}function hb(e,i){var l=e.ch;return l==null||l>i?I(e.line,i):l<0?I(e.line,0):e}function Ah(e,i){for(var l=[],s=0;s<i.length;s++)l[s]=Ft(e,i[s]);return l}var Tl=function(e,i){this.state=e,this.lookAhead=i},nr=function(e,i,l,s){this.state=i,this.doc=e,this.line=l,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};nr.prototype.lookAhead=function(e){var i=this.doc.getLine(this.line+e);return i!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),i},nr.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}},nr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},nr.fromSaved=function(e,i,l){return i instanceof Tl?new nr(e,br(e.mode,i.state),l,i.lookAhead):new nr(e,br(e.mode,i),l)},nr.prototype.save=function(e){var i=e!==!1?br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Tl(i,this.maxLookAhead):i};function Mh(e,i,l,s){var c=[e.state.modeGen],p={};Rh(e,i.text,e.doc.mode,l,function(_,N){return c.push(_,N)},p,s);for(var m=l.state,y=function(_){l.baseTokens=c;var N=e.state.overlays[_],D=1,B=0;l.state=!0,Rh(e,i.text,N.mode,l,function(q,Y){for(var it=D;B<q;){var ft=c[D];ft>q&&c.splice(D,1,q,c[D+1],ft),D+=2,B=Math.min(q,ft)}if(!!Y)if(N.opaque)c.splice(it,D-it,q,"overlay "+Y),D=it+2;else for(;it<D;it+=2){var mt=c[it+1];c[it+1]=(mt?mt+" ":"")+"overlay "+Y}},p),l.state=m,l.baseTokens=null,l.baseTokenPos=1},x=0;x<e.state.overlays.length;++x)y(x);return{styles:c,classes:p.bgClass||p.textClass?p:null}}function Nh(e,i,l){if(!i.styles||i.styles[0]!=e.state.modeGen){var s=ls(e,oe(i)),c=i.text.length>e.options.maxHighlightLength&&br(e.doc.mode,s.state),p=Mh(e,i,s);c&&(s.state=c),i.stateAfter=s.save(!c),i.styles=p.styles,p.classes?i.styleClasses=p.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 ls(e,i,l){var s=e.doc,c=e.display;if(!s.mode.startState)return new nr(s,!0,i);var p=db(e,i,l),m=p>s.first&&Mt(s,p-1).stateAfter,y=m?nr.fromSaved(s,m,p):new nr(s,ss(s.mode),p);return s.iter(p,i,function(x){Lc(e,x.text,y);var _=y.line;x.stateAfter=_==i-1||_%5==0||_>=c.viewFrom&&_<c.viewTo?y.save():null,y.nextLine()}),l&&(s.modeFrontier=y.line),y}function Lc(e,i,l,s){var c=e.doc.mode,p=new ke(i,e.options.tabSize,l);for(p.start=p.pos=s||0,i==""&&Ph(c,l.state);!p.eol();)Ec(c,p,l.state),p.start=p.pos}function Ph(e,i){if(e.blankLine)return e.blankLine(i);if(!!e.innerMode){var l=jr(e,i);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function Ec(e,i,l,s){for(var c=0;c<10;c++){s&&(s[0]=jr(e,l).mode);var p=e.token(i,l);if(i.pos>i.start)return p}throw new Error("Mode "+e.name+" failed to advance stream.")}var Oh=function(e,i,l){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=i||null,this.state=l};function $h(e,i,l,s){var c=e.doc,p=c.mode,m;i=Ft(c,i);var y=Mt(c,i.line),x=ls(e,i.line,l),_=new ke(y.text,e.options.tabSize,x),N;for(s&&(N=[]);(s||_.pos<i.ch)&&!_.eol();)_.start=_.pos,m=Ec(p,_,x.state),s&&N.push(new Oh(_,m,br(c.mode,x.state)));return s?N:new Oh(_,m,x.state)}function Dh(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 Rh(e,i,l,s,c,p,m){var y=l.flattenSpans;y==null&&(y=e.options.flattenSpans);var x=0,_=null,N=new ke(i,e.options.tabSize,s),D,B=e.options.addModeClass&&[null];for(i==""&&Dh(Ph(l,s.state),p);!N.eol();){if(N.pos>e.options.maxHighlightLength?(y=!1,m&&Lc(e,i,s,N.pos),N.pos=i.length,D=null):D=Dh(Ec(l,N,s.state,B),p),B){var q=B[0].name;q&&(D="m-"+(D?q+" "+D:q))}if(!y||_!=D){for(;x<N.start;)x=Math.min(N.start,x+5e3),c(x,_);_=D}N.start=N.pos}for(;x<N.pos;){var Y=Math.min(N.pos,x+5e3);c(Y,_),x=Y}}function db(e,i,l){for(var s,c,p=e.doc,m=l?-1:i-(e.doc.mode.innerMode?1e3:100),y=i;y>m;--y){if(y<=p.first)return p.first;var x=Mt(p,y-1),_=x.stateAfter;if(_&&(!l||y+(_ instanceof Tl?_.lookAhead:0)<=p.modeFrontier))return y;var N=K(x.text,null,e.options.tabSize);(c==null||s>N)&&(c=y-1,s=N)}return c}function pb(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=Mt(e,s).stateAfter;if(c&&(!(c instanceof Tl)||s+c.lookAhead<i)){l=s+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,l)}}var zh=!1,xr=!1;function gb(){zh=!0}function vb(){xr=!0}function Ll(e,i,l){this.marker=e,this.from=i,this.to=l}function as(e,i){if(e)for(var l=0;l<e.length;++l){var s=e[l];if(s.marker==i)return s}}function mb(e,i){for(var l,s=0;s<e.length;++s)e[s]!=i&&(l||(l=[])).push(e[s]);return l}function yb(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 bb(e,i,l){var s;if(e)for(var c=0;c<e.length;++c){var p=e[c],m=p.marker,y=p.from==null||(m.inclusiveLeft?p.from<=i:p.from<i);if(y||p.from==i&&m.type=="bookmark"&&(!l||!p.marker.insertLeft)){var x=p.to==null||(m.inclusiveRight?p.to>=i:p.to>i);(s||(s=[])).push(new Ll(m,p.from,x?null:p.to))}}return s}function wb(e,i,l){var s;if(e)for(var c=0;c<e.length;++c){var p=e[c],m=p.marker,y=p.to==null||(m.inclusiveRight?p.to>=i:p.to>i);if(y||p.from==i&&m.type=="bookmark"&&(!l||p.marker.insertLeft)){var x=p.from==null||(m.inclusiveLeft?p.from<=i:p.from<i);(s||(s=[])).push(new Ll(m,x?null:p.from-i,p.to==null?null:p.to-i))}}return s}function Ac(e,i){if(i.full)return null;var l=C(e,i.from.line)&&Mt(e,i.from.line).markedSpans,s=C(e,i.to.line)&&Mt(e,i.to.line).markedSpans;if(!l&&!s)return null;var c=i.from.ch,p=i.to.ch,m=X(i.from,i.to)==0,y=bb(l,c,m),x=wb(s,p,m),_=i.text.length==1,N=lt(i.text).length+(_?c:0);if(y)for(var D=0;D<y.length;++D){var B=y[D];if(B.to==null){var q=as(x,B.marker);q?_&&(B.to=q.to==null?null:q.to+N):B.to=c}}if(x)for(var Y=0;Y<x.length;++Y){var it=x[Y];if(it.to!=null&&(it.to+=N),it.from==null){var ft=as(y,it.marker);ft||(it.from=N,_&&(y||(y=[])).push(it))}else it.from+=N,_&&(y||(y=[])).push(it)}y&&(y=Ih(y)),x&&x!=y&&(x=Ih(x));var mt=[y];if(!_){var St=i.text.length-2,yt;if(St>0&&y)for(var Tt=0;Tt<y.length;++Tt)y[Tt].to==null&&(yt||(yt=[])).push(new Ll(y[Tt].marker,null,null));for(var Dt=0;Dt<St;++Dt)mt.push(yt);mt.push(x)}return mt}function Ih(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 xb(e,i,l){var s=null;if(e.iter(i.line,l.line+1,function(q){if(q.markedSpans)for(var Y=0;Y<q.markedSpans.length;++Y){var it=q.markedSpans[Y].marker;it.readOnly&&(!s||Ct(s,it)==-1)&&(s||(s=[])).push(it)}}),!s)return null;for(var c=[{from:i,to:l}],p=0;p<s.length;++p)for(var m=s[p],y=m.find(0),x=0;x<c.length;++x){var _=c[x];if(!(X(_.to,y.from)<0||X(_.from,y.to)>0)){var N=[x,1],D=X(_.from,y.from),B=X(_.to,y.to);(D<0||!m.inclusiveLeft&&!D)&&N.push({from:_.from,to:y.from}),(B>0||!m.inclusiveRight&&!B)&&N.push({from:y.to,to:_.to}),c.splice.apply(c,N),x+=N.length-3}}return c}function Fh(e){var i=e.markedSpans;if(!!i){for(var l=0;l<i.length;++l)i[l].marker.detachLine(e);e.markedSpans=null}}function qh(e,i){if(!!i){for(var l=0;l<i.length;++l)i[l].marker.attachLine(e);e.markedSpans=i}}function El(e){return e.inclusiveLeft?-1:0}function Al(e){return e.inclusiveRight?1:0}function Mc(e,i){var l=e.lines.length-i.lines.length;if(l!=0)return l;var s=e.find(),c=i.find(),p=X(s.from,c.from)||El(e)-El(i);if(p)return-p;var m=X(s.to,c.to)||Al(e)-Al(i);return m||i.id-e.id}function Hh(e,i){var l=xr&&e.markedSpans,s;if(l)for(var c=void 0,p=0;p<l.length;++p)c=l[p],c.marker.collapsed&&(i?c.from:c.to)==null&&(!s||Mc(s,c.marker)<0)&&(s=c.marker);return s}function Bh(e){return Hh(e,!0)}function Ml(e){return Hh(e,!1)}function _b(e,i){var l=xr&&e.markedSpans,s;if(l)for(var c=0;c<l.length;++c){var p=l[c];p.marker.collapsed&&(p.from==null||p.from<i)&&(p.to==null||p.to>i)&&(!s||Mc(s,p.marker)<0)&&(s=p.marker)}return s}function Wh(e,i,l,s,c){var p=Mt(e,i),m=xr&&p.markedSpans;if(m)for(var y=0;y<m.length;++y){var x=m[y];if(!!x.marker.collapsed){var _=x.marker.find(0),N=X(_.from,l)||El(x.marker)-El(c),D=X(_.to,s)||Al(x.marker)-Al(c);if(!(N>=0&&D<=0||N<=0&&D>=0)&&(N<=0&&(x.marker.inclusiveRight&&c.inclusiveLeft?X(_.to,l)>=0:X(_.to,l)>0)||N>=0&&(x.marker.inclusiveRight&&c.inclusiveLeft?X(_.from,s)<=0:X(_.from,s)<0)))return!0}}}function Hn(e){for(var i;i=Bh(e);)e=i.find(-1,!0).line;return e}function Sb(e){for(var i;i=Ml(e);)e=i.find(1,!0).line;return e}function kb(e){for(var i,l;i=Ml(e);)e=i.find(1,!0).line,(l||(l=[])).push(e);return l}function Nc(e,i){var l=Mt(e,i),s=Hn(l);return l==s?i:oe(s)}function Uh(e,i){if(i>e.lastLine())return i;var l=Mt(e,i),s;if(!Gr(e,l))return i;for(;s=Ml(l);)l=s.find(1,!0).line;return oe(l)+1}function Gr(e,i){var l=xr&&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&&Pc(e,i,s))return!0}}}function Pc(e,i,l){if(l.to==null){var s=l.marker.find(1,!0);return Pc(e,s.line,as(s.line.markedSpans,l.marker))}if(l.marker.inclusiveRight&&l.to==i.text.length)return!0;for(var c=void 0,p=0;p<i.markedSpans.length;++p)if(c=i.markedSpans[p],c.marker.collapsed&&!c.marker.widgetNode&&c.from==l.to&&(c.to==null||c.to!=l.from)&&(c.marker.inclusiveLeft||l.marker.inclusiveRight)&&Pc(e,i,c))return!0}function _r(e){e=Hn(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 p=l.parent;p;l=p,p=l.parent)for(var m=0;m<p.children.length;++m){var y=p.children[m];if(y==l)break;i+=y.height}return i}function Nl(e){if(e.height==0)return 0;for(var i=e.text.length,l,s=e;l=Bh(s);){var c=l.find(0,!0);s=c.from.line,i+=c.from.ch-c.to.ch}for(s=e;l=Ml(s);){var p=l.find(0,!0);i-=s.text.length-p.from.ch,s=p.to.line,i+=s.text.length-p.to.ch}return i}function Oc(e){var i=e.display,l=e.doc;i.maxLine=Mt(l,l.first),i.maxLineLength=Nl(i.maxLine),i.maxLineChanged=!0,l.iter(function(s){var c=Nl(s);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=s)})}var oo=function(e,i,l){this.text=e,qh(this,i),this.height=l?l(this):1};oo.prototype.lineNo=function(){return oe(this)},Je(oo);function Cb(e,i,l,s){e.text=i,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Fh(e),qh(e,l);var c=s?s(e):1;c!=e.height&&Rn(e,c)}function Tb(e){e.parent=null,Fh(e)}var Lb={},Eb={};function jh(e,i){if(!e||/^\s*$/.test(e))return null;var l=i.addModeClass?Eb:Lb;return l[e]||(l[e]=e.replace(/\S+/g,"cm-$&"))}function Gh(e,i){var l=H("span",null,null,v?"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 p=c?i.rest[c-1]:i.line,m=void 0;s.pos=0,s.addToken=Mb,_l(e.display.measure)&&(m=ye(p,e.doc.direction))&&(s.addToken=Pb(s.addToken,m)),s.map=[];var y=i!=e.display.externalMeasured&&oe(p);Ob(p,s,Nh(e,p,y)),p.styleClasses&&(p.styleClasses.bgClass&&(s.bgClass=qt(p.styleClasses.bgClass,s.bgClass||"")),p.styleClasses.textClass&&(s.textClass=qt(p.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(Tc(e.display.measure))),c==0?(i.measure.map=s.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(s.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var x=s.content.lastChild;(/\bcm-tab\b/.test(x.className)||x.querySelector&&x.querySelector(".cm-tab"))&&(s.content.className="cm-tab-wrap-hack")}return me(e,"renderLine",e,i.line,s.pre),s.pre.className&&(s.textClass=qt(s.pre.className,s.textClass||"")),s}function Ab(e){var i=k("span","•","cm-invalidchar");return i.title="\\u"+e.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Mb(e,i,l,s,c,p,m){if(!!i){var y=e.splitSpaces?Nb(i,e.trailingSpace):i,x=e.cm.state.specialChars,_=!1,N;if(!x.test(i))e.col+=i.length,N=document.createTextNode(y),e.map.push(e.pos,e.pos+i.length,N),d&&g<9&&(_=!0),e.pos+=i.length;else{N=document.createDocumentFragment();for(var D=0;;){x.lastIndex=D;var B=x.exec(i),q=B?B.index-D:i.length-D;if(q){var Y=document.createTextNode(y.slice(D,D+q));d&&g<9?N.appendChild(k("span",[Y])):N.appendChild(Y),e.map.push(e.pos,e.pos+q,Y),e.col+=q,e.pos+=q}if(!B)break;D+=q+1;var it=void 0;if(B[0]==" "){var ft=e.cm.options.tabSize,mt=ft-e.col%ft;it=N.appendChild(k("span",pt(mt),"cm-tab")),it.setAttribute("role","presentation"),it.setAttribute("cm-text"," "),e.col+=mt}else B[0]=="\r"||B[0]==`
|
|
15
|
-
`?(it=N.appendChild(k("span",B[0]=="\r"?"␍":"","cm-invalidchar")),it.setAttribute("cm-text",B[0]),e.col+=1):(it=e.cm.options.specialCharPlaceholder(B[0]),it.setAttribute("cm-text",B[0]),d&&g<9?N.appendChild(k("span",[it])):N.appendChild(it),e.col+=1);e.map.push(e.pos,e.pos+1,it),e.pos++}}if(e.trailingSpace=y.charCodeAt(i.length-1)==32,l||s||c||_||p||m){var St=l||"";s&&(St+=s),c&&(St+=c);var yt=k("span",[N],St,p);if(m)for(var Tt in m)m.hasOwnProperty(Tt)&&Tt!="style"&&Tt!="class"&&yt.setAttribute(Tt,m[Tt]);return e.content.appendChild(yt)}e.content.appendChild(N)}}function Nb(e,i){if(e.length>1&&!/ /.test(e))return e;for(var l=i,s="",c=0;c<e.length;c++){var p=e.charAt(c);p==" "&&l&&(c==e.length-1||e.charCodeAt(c+1)==32)&&(p=" "),s+=p,l=p==" "}return s}function Pb(e,i){return function(l,s,c,p,m,y,x){c=c?c+" cm-force-border":"cm-force-border";for(var _=l.pos,N=_+s.length;;){for(var D=void 0,B=0;B<i.length&&(D=i[B],!(D.to>_&&D.from<=_));B++);if(D.to>=N)return e(l,s,c,p,m,y,x);e(l,s.slice(0,D.to-_),c,p,null,y,x),p=null,s=s.slice(D.to-_),_=D.to}}}function Vh(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 Ob(e,i,l){var s=e.markedSpans,c=e.text,p=0;if(!s){for(var m=1;m<l.length;m+=2)i.addToken(i,c.slice(p,p=l[m]),jh(l[m+1],i.cm.options));return}for(var y=c.length,x=0,_=1,N="",D,B,q=0,Y,it,ft,mt,St;;){if(q==x){Y=it=ft=B="",St=null,mt=null,q=1/0;for(var yt=[],Tt=void 0,Dt=0;Dt<s.length;++Dt){var Pt=s[Dt],Ut=Pt.marker;if(Ut.type=="bookmark"&&Pt.from==x&&Ut.widgetNode)yt.push(Ut);else if(Pt.from<=x&&(Pt.to==null||Pt.to>x||Ut.collapsed&&Pt.to==x&&Pt.from==x)){if(Pt.to!=null&&Pt.to!=x&&q>Pt.to&&(q=Pt.to,it=""),Ut.className&&(Y+=" "+Ut.className),Ut.css&&(B=(B?B+";":"")+Ut.css),Ut.startStyle&&Pt.from==x&&(ft+=" "+Ut.startStyle),Ut.endStyle&&Pt.to==q&&(Tt||(Tt=[])).push(Ut.endStyle,Pt.to),Ut.title&&((St||(St={})).title=Ut.title),Ut.attributes)for(var ge in Ut.attributes)(St||(St={}))[ge]=Ut.attributes[ge];Ut.collapsed&&(!mt||Mc(mt.marker,Ut)<0)&&(mt=Pt)}else Pt.from>x&&q>Pt.from&&(q=Pt.from)}if(Tt)for(var ze=0;ze<Tt.length;ze+=2)Tt[ze+1]==q&&(it+=" "+Tt[ze]);if(!mt||mt.from==x)for(var _e=0;_e<yt.length;++_e)Vh(i,0,yt[_e]);if(mt&&(mt.from||0)==x){if(Vh(i,(mt.to==null?y+1:mt.to)-x,mt.marker,mt.from==null),mt.to==null)return;mt.to==x&&(mt=!1)}}if(x>=y)break;for(var wn=Math.min(y,q);;){if(N){var ln=x+N.length;if(!mt){var Ae=ln>wn?N.slice(0,wn-x):N;i.addToken(i,Ae,D?D+Y:Y,ft,x+Ae.length==q?it:"",B,St)}if(ln>=wn){N=N.slice(wn-x),x=wn;break}x=ln,ft=""}N=c.slice(p,p=l[_++]),D=jh(l[_++],i.cm.options)}}}function Kh(e,i,l){this.line=i,this.rest=kb(i),this.size=this.rest?oe(lt(this.rest))-l+1:1,this.node=this.text=null,this.hidden=Gr(e,i)}function Pl(e,i,l){for(var s=[],c,p=i;p<l;p=c){var m=new Kh(e.doc,Mt(e.doc,p),p);c=p+m.size,s.push(m)}return s}var so=null;function $b(e){so?so.ops.push(e):e.ownsGroup=so={ops:[e],delayedCallbacks:[]}}function Db(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 Rb(e,i){var l=e.ownsGroup;if(!!l)try{Db(l)}finally{so=null,i(l)}}var cs=null;function $e(e,i){var l=ns(e,i);if(!!l.length){var s=Array.prototype.slice.call(arguments,2),c;so?c=so.delayedCallbacks:cs?c=cs:(c=cs=[],setTimeout(zb,0));for(var p=function(y){c.push(function(){return l[y].apply(null,s)})},m=0;m<l.length;++m)p(m)}}function zb(){var e=cs;cs=null;for(var i=0;i<e.length;++i)e[i]()}function Xh(e,i,l,s){for(var c=0;c<i.changes.length;c++){var p=i.changes[c];p=="text"?Fb(e,i):p=="gutter"?Zh(e,i,l,s):p=="class"?$c(e,i):p=="widget"&&qb(e,i,s)}i.changes=null}function us(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),d&&g<8&&(e.node.style.zIndex=2)),e.node}function Ib(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=us(i);i.background=s.insertBefore(k("div",null,l),s.firstChild),e.display.input.setUneditable(i.background)}}function Yh(e,i){var l=e.display.externalMeasured;return l&&l.line==i.line?(e.display.externalMeasured=null,i.measure=l.measure,l.built):Gh(e,i)}function Fb(e,i){var l=i.text.className,s=Yh(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,$c(e,i)):l&&(i.text.className=l)}function $c(e,i){Ib(e,i),i.line.wrapClass?us(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 Zh(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=us(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 p=i.line.gutterMarkers;if(e.options.lineNumbers||p){var m=us(i),y=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px");if(y.setAttribute("aria-hidden","true"),e.display.input.setUneditable(y),m.insertBefore(y,i.text),i.line.gutterClass&&(y.className+=" "+i.line.gutterClass),e.options.lineNumbers&&(!p||!p["CodeMirror-linenumbers"])&&(i.lineNumber=y.appendChild(k("div",R(e.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+s.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),p)for(var x=0;x<e.display.gutterSpecs.length;++x){var _=e.display.gutterSpecs[x].className,N=p.hasOwnProperty(_)&&p[_];N&&y.appendChild(k("div",[N],"CodeMirror-gutter-elt","left: "+s.gutterLeft[_]+"px; width: "+s.gutterWidth[_]+"px"))}}}function qb(e,i,l){i.alignable&&(i.alignable=null);for(var s=kt("CodeMirror-linewidget"),c=i.node.firstChild,p=void 0;c;c=p)p=c.nextSibling,s.test(c.className)&&i.node.removeChild(c);Jh(e,i,l)}function Hb(e,i,l,s){var c=Yh(e,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),$c(e,i),Zh(e,i,l,s),Jh(e,i,s),i.node}function Jh(e,i,l){if(Qh(e,i.line,i,l,!0),i.rest)for(var s=0;s<i.rest.length;s++)Qh(e,i.rest[s],i,l,!1)}function Qh(e,i,l,s,c){if(!!i.widgets)for(var p=us(l),m=0,y=i.widgets;m<y.length;++m){var x=y[m],_=k("div",[x.node],"CodeMirror-linewidget"+(x.className?" "+x.className:""));x.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),Bb(x,_,l,s),e.display.input.setUneditable(_),c&&x.above?p.insertBefore(_,l.gutter||l.text):p.appendChild(_),$e(x,"redraw")}}function Bb(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 fs(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;"),z(i.display.measure,k("div",[e.node],null,l))}return e.height=e.node.parentNode.offsetHeight}function Sr(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 Ol(e){return e.lineSpace.offsetTop}function Dc(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function td(e){if(e.cachedPaddingH)return e.cachedPaddingH;var i=z(e.measure,k("pre","x","CodeMirror-line-like")),l=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,s={left:parseInt(l.paddingLeft),right:parseInt(l.paddingRight)};return!isNaN(s.left)&&!isNaN(s.right)&&(e.cachedPaddingH=s),s}function rr(e){return pe-e.display.nativeBarWidth}function Si(e){return e.display.scroller.clientWidth-rr(e)-e.display.barWidth}function Rc(e){return e.display.scroller.clientHeight-rr(e)-e.display.barHeight}function Wb(e,i,l){var s=e.options.lineWrapping,c=s&&Si(e);if(!i.measure.heights||s&&i.measure.width!=c){var p=i.measure.heights=[];if(s){i.measure.width=c;for(var m=i.text.firstChild.getClientRects(),y=0;y<m.length-1;y++){var x=m[y],_=m[y+1];Math.abs(x.bottom-_.bottom)>2&&p.push((x.bottom+_.top)/2-l.top)}}p.push(l.bottom-l.top)}}function ed(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(oe(e.rest[c])>l)return{map:e.measure.maps[c],cache:e.measure.caches[c],before:!0}}}function Ub(e,i){i=Hn(i);var l=oe(i),s=e.display.externalMeasured=new Kh(e.doc,i,l);s.lineN=l;var c=s.built=Gh(e,s);return s.text=c.pre,z(e.display.lineMeasure,c.pre),s}function nd(e,i,l,s){return ir(e,lo(e,i),l,s)}function zc(e,i){if(i>=e.display.viewFrom&&i<e.display.viewTo)return e.display.view[Ti(e,i)];var l=e.display.externalMeasured;if(l&&i>=l.lineN&&i<l.lineN+l.size)return l}function lo(e,i){var l=oe(i),s=zc(e,l);s&&!s.text?s=null:s&&s.changes&&(Xh(e,s,l,Bc(e)),e.curOp.forceUpdate=!0),s||(s=Ub(e,i));var c=ed(s,i,l);return{line:i,view:s,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function ir(e,i,l,s,c){i.before&&(l=-1);var p=l+(s||""),m;return i.cache.hasOwnProperty(p)?m=i.cache[p]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Wb(e,i.view,i.rect),i.hasHeights=!0),m=Gb(e,i,l,s),m.bogus||(i.cache[p]=m)),{left:m.left,right:m.right,top:c?m.rtop:m.top,bottom:c?m.rbottom:m.bottom}}var rd={left:0,right:0,top:0,bottom:0};function id(e,i,l){for(var s,c,p,m,y,x,_=0;_<e.length;_+=3)if(y=e[_],x=e[_+1],i<y?(c=0,p=1,m="left"):i<x?(c=i-y,p=c+1):(_==e.length-3||i==x&&e[_+3]>i)&&(p=x-y,c=p-1,i>=x&&(m="right")),c!=null){if(s=e[_+2],y==x&&l==(s.insertLeft?"left":"right")&&(m=l),l=="left"&&c==0)for(;_&&e[_-2]==e[_-3]&&e[_-1].insertLeft;)s=e[(_-=3)+2],m="left";if(l=="right"&&c==x-y)for(;_<e.length-3&&e[_+3]==e[_+4]&&!e[_+5].insertLeft;)s=e[(_+=3)+2],m="right";break}return{node:s,start:c,end:p,collapse:m,coverStart:y,coverEnd:x}}function jb(e,i){var l=rd;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 Gb(e,i,l,s){var c=id(i.map,l,s),p=c.node,m=c.start,y=c.end,x=c.collapse,_;if(p.nodeType==3){for(var N=0;N<4;N++){for(;m&&Jt(i.line.text.charAt(c.coverStart+m));)--m;for(;c.coverStart+y<c.coverEnd&&Jt(i.line.text.charAt(c.coverStart+y));)++y;if(d&&g<9&&m==0&&y==c.coverEnd-c.coverStart?_=p.parentNode.getBoundingClientRect():_=jb(W(p,m,y).getClientRects(),s),_.left||_.right||m==0)break;y=m,m=m-1,x="right"}d&&g<11&&(_=Vb(e.display.measure,_))}else{m>0&&(x=s="right");var D;e.options.lineWrapping&&(D=p.getClientRects()).length>1?_=D[s=="right"?D.length-1:0]:_=p.getBoundingClientRect()}if(d&&g<9&&!m&&(!_||!_.left&&!_.right)){var B=p.parentNode.getClientRects()[0];B?_={left:B.left,right:B.left+co(e.display),top:B.top,bottom:B.bottom}:_=rd}for(var q=_.top-i.rect.top,Y=_.bottom-i.rect.top,it=(q+Y)/2,ft=i.view.measure.heights,mt=0;mt<ft.length-1&&!(it<ft[mt]);mt++);var St=mt?ft[mt-1]:0,yt=ft[mt],Tt={left:(x=="right"?_.right:_.left)-i.rect.left,right:(x=="left"?_.left:_.right)-i.rect.left,top:St,bottom:yt};return!_.left&&!_.right&&(Tt.bogus=!0),e.options.singleCursorHeightPerLine||(Tt.rtop=q,Tt.rbottom=Y),Tt}function Vb(e,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Sl(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 od(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 sd(e){e.display.externalMeasure=null,U(e.display.lineMeasure);for(var i=0;i<e.display.view.length;i++)od(e.display.view[i])}function hs(e){sd(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ld(e){return w&&$?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function ad(e){return w&&$?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Ic(e){var i=Hn(e),l=i.widgets,s=0;if(l)for(var c=0;c<l.length;++c)l[c].above&&(s+=fs(l[c]));return s}function $l(e,i,l,s,c){if(!c){var p=Ic(i);l.top+=p,l.bottom+=p}if(s=="line")return l;s||(s="local");var m=_r(i);if(s=="local"?m+=Ol(e.display):m-=e.display.viewOffset,s=="page"||s=="window"){var y=e.display.lineSpace.getBoundingClientRect();m+=y.top+(s=="window"?0:ad(Gt(e)));var x=y.left+(s=="window"?0:ld(Gt(e)));l.left+=x,l.right+=x}return l.top+=m,l.bottom+=m,l}function cd(e,i,l){if(l=="div")return i;var s=i.left,c=i.top;if(l=="page")s-=ld(Gt(e)),c-=ad(Gt(e));else if(l=="local"||!l){var p=e.display.sizer.getBoundingClientRect();s+=p.left,c+=p.top}var m=e.display.lineSpace.getBoundingClientRect();return{left:s-m.left,top:c-m.top}}function Dl(e,i,l,s,c){return s||(s=Mt(e.doc,i.line)),$l(e,s,nd(e,s,i.ch,c),l)}function Bn(e,i,l,s,c,p){s=s||Mt(e.doc,i.line),c||(c=lo(e,s));function m(Y,it){var ft=ir(e,c,Y,it?"right":"left",p);return it?ft.left=ft.right:ft.right=ft.left,$l(e,s,ft,l)}var y=ye(s,e.doc.direction),x=i.ch,_=i.sticky;if(x>=s.text.length?(x=s.text.length,_="before"):x<=0&&(x=0,_="after"),!y)return m(_=="before"?x-1:x,_=="before");function N(Y,it,ft){var mt=y[it],St=mt.level==1;return m(ft?Y-1:Y,St!=ft)}var D=He(y,x,_),B=Ln,q=N(x,D,_=="before");return B!=null&&(q.other=N(x,B,_!="before")),q}function ud(e,i){var l=0;i=Ft(e.doc,i),e.options.lineWrapping||(l=co(e.display)*i.ch);var s=Mt(e.doc,i.line),c=_r(s)+Ol(e.display);return{left:l,right:l,top:c,bottom:c+s.height}}function Fc(e,i,l,s,c){var p=I(e,i,l);return p.xRel=c,s&&(p.outside=s),p}function qc(e,i,l){var s=e.doc;if(l+=e.display.viewOffset,l<0)return Fc(s.first,0,null,-1,-1);var c=er(s,l),p=s.first+s.size-1;if(c>p)return Fc(s.first+s.size-1,Mt(s,p).text.length,null,1,1);i<0&&(i=0);for(var m=Mt(s,c);;){var y=Kb(e,m,c,i,l),x=_b(m,y.ch+(y.xRel>0||y.outside>0?1:0));if(!x)return y;var _=x.find(1);if(_.line==c)return _;m=Mt(s,c=_.line)}}function fd(e,i,l,s){s-=Ic(i);var c=i.text.length,p=Yt(function(m){return ir(e,l,m-1).bottom<=s},c,0);return c=Yt(function(m){return ir(e,l,m).top>s},p,c),{begin:p,end:c}}function hd(e,i,l,s){l||(l=lo(e,i));var c=$l(e,i,ir(e,l,s),"line").top;return fd(e,i,l,c)}function Hc(e,i,l,s){return e.bottom<=l?!1:e.top>l?!0:(s?e.left:e.right)>i}function Kb(e,i,l,s,c){c-=_r(i);var p=lo(e,i),m=Ic(i),y=0,x=i.text.length,_=!0,N=ye(i,e.doc.direction);if(N){var D=(e.options.lineWrapping?Yb:Xb)(e,i,l,p,N,s,c);_=D.level!=1,y=_?D.from:D.to-1,x=_?D.to:D.from-1}var B=null,q=null,Y=Yt(function(Dt){var Pt=ir(e,p,Dt);return Pt.top+=m,Pt.bottom+=m,Hc(Pt,s,c,!1)?(Pt.top<=c&&Pt.left<=s&&(B=Dt,q=Pt),!0):!1},y,x),it,ft,mt=!1;if(q){var St=s-q.left<q.right-s,yt=St==_;Y=B+(yt?0:1),ft=yt?"after":"before",it=St?q.left:q.right}else{!_&&(Y==x||Y==y)&&Y++,ft=Y==0?"after":Y==i.text.length?"before":ir(e,p,Y-(_?1:0)).bottom+m<=c==_?"after":"before";var Tt=Bn(e,I(l,Y,ft),"line",i,p);it=Tt.left,mt=c<Tt.top?-1:c>=Tt.bottom?1:0}return Y=ae(i.text,Y,1),Fc(l,Y,ft,mt,s-it)}function Xb(e,i,l,s,c,p,m){var y=Yt(function(D){var B=c[D],q=B.level!=1;return Hc(Bn(e,I(l,q?B.to:B.from,q?"before":"after"),"line",i,s),p,m,!0)},0,c.length-1),x=c[y];if(y>0){var _=x.level!=1,N=Bn(e,I(l,_?x.from:x.to,_?"after":"before"),"line",i,s);Hc(N,p,m,!0)&&N.top>m&&(x=c[y-1])}return x}function Yb(e,i,l,s,c,p,m){var y=fd(e,i,s,m),x=y.begin,_=y.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var N=null,D=null,B=0;B<c.length;B++){var q=c[B];if(!(q.from>=_||q.to<=x)){var Y=q.level!=1,it=ir(e,s,Y?Math.min(_,q.to)-1:Math.max(x,q.from)).right,ft=it<p?p-it+1e9:it-p;(!N||D>ft)&&(N=q,D=ft)}}return N||(N=c[c.length-1]),N.from<x&&(N={from:x,to:N.to,level:N.level}),N.to>_&&(N={from:N.from,to:_,level:N.level}),N}var ki;function ao(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(ki==null){ki=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)ki.appendChild(document.createTextNode("x")),ki.appendChild(k("br"));ki.appendChild(document.createTextNode("x"))}z(e.measure,ki);var l=ki.offsetHeight/50;return l>3&&(e.cachedTextHeight=l),U(e.measure),l||1}function co(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var i=k("span","xxxxxxxxxx"),l=k("pre",[i],"CodeMirror-line-like");z(e.measure,l);var s=i.getBoundingClientRect(),c=(s.right-s.left)/10;return c>2&&(e.cachedCharWidth=c),c||10}function Bc(e){for(var i=e.display,l={},s={},c=i.gutters.clientLeft,p=i.gutters.firstChild,m=0;p;p=p.nextSibling,++m){var y=e.display.gutterSpecs[m].className;l[y]=p.offsetLeft+p.clientLeft+c,s[y]=p.clientWidth}return{fixedPos:Wc(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:l,gutterWidth:s,wrapperWidth:i.wrapper.clientWidth}}function Wc(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function dd(e){var i=ao(e.display),l=e.options.lineWrapping,s=l&&Math.max(5,e.display.scroller.clientWidth/co(e.display)-3);return function(c){if(Gr(e.doc,c))return 0;var p=0;if(c.widgets)for(var m=0;m<c.widgets.length;m++)c.widgets[m].height&&(p+=c.widgets[m].height);return l?p+(Math.ceil(c.text.length/s)||1)*i:p+i}}function Uc(e){var i=e.doc,l=dd(e);i.iter(function(s){var c=l(s);c!=s.height&&Rn(s,c)})}function Ci(e,i,l,s){var c=e.display;if(!l&&rn(i).getAttribute("cm-not-content")=="true")return null;var p,m,y=c.lineSpace.getBoundingClientRect();try{p=i.clientX-y.left,m=i.clientY-y.top}catch{return null}var x=qc(e,p,m),_;if(s&&x.xRel>0&&(_=Mt(e.doc,x.line).text).length==x.ch){var N=K(_,_.length,e.options.tabSize)-_.length;x=I(x.line,Math.max(0,Math.round((p-td(e.display).left)/co(e.display))-N))}return x}function Ti(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)xr&&Nc(e.doc,i)<c.viewTo&&Kr(e);else if(l<=c.viewFrom)xr&&Uh(e.doc,l+s)>c.viewFrom?Kr(e):(c.viewFrom+=s,c.viewTo+=s);else if(i<=c.viewFrom&&l>=c.viewTo)Kr(e);else if(i<=c.viewFrom){var p=Rl(e,l,l+s,1);p?(c.view=c.view.slice(p.index),c.viewFrom=p.lineN,c.viewTo+=s):Kr(e)}else if(l>=c.viewTo){var m=Rl(e,i,i,-1);m?(c.view=c.view.slice(0,m.index),c.viewTo=m.lineN):Kr(e)}else{var y=Rl(e,i,i,-1),x=Rl(e,l,l+s,1);y&&x?(c.view=c.view.slice(0,y.index).concat(Pl(e,y.lineN,x.lineN)).concat(c.view.slice(x.index)),c.viewTo+=s):Kr(e)}var _=c.externalMeasured;_&&(l<_.lineN?_.lineN+=s:i<_.lineN+_.size&&(c.externalMeasured=null))}function Vr(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 p=s.view[Ti(e,i)];if(p.node!=null){var m=p.changes||(p.changes=[]);Ct(m,l)==-1&&m.push(l)}}}function Kr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Rl(e,i,l,s){var c=Ti(e,i),p,m=e.display.view;if(!xr||l==e.doc.first+e.doc.size)return{index:c,lineN:l};for(var y=e.display.viewFrom,x=0;x<c;x++)y+=m[x].size;if(y!=i){if(s>0){if(c==m.length-1)return null;p=y+m[c].size-i,c++}else p=y-i;i+=p,l+=p}for(;Nc(e.doc,l)!=l;){if(c==(s<0?0:m.length-1))return null;l+=s*m[c-(s<0?1:0)].size,c+=s}return{index:c,lineN:l}}function Zb(e,i,l){var s=e.display,c=s.view;c.length==0||i>=s.viewTo||l<=s.viewFrom?(s.view=Pl(e,i,l),s.viewFrom=i):(s.viewFrom>i?s.view=Pl(e,i,s.viewFrom).concat(s.view):s.viewFrom<i&&(s.view=s.view.slice(Ti(e,i))),s.viewFrom=i,s.viewTo<l?s.view=s.view.concat(Pl(e,s.viewTo,l)):s.viewTo>l&&(s.view=s.view.slice(0,Ti(e,l)))),s.viewTo=l}function pd(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 ds(e){e.display.input.showSelection(e.display.input.prepareSelection())}function gd(e,i){i===void 0&&(i=!0);var l=e.doc,s={},c=s.cursors=document.createDocumentFragment(),p=s.selection=document.createDocumentFragment(),m=e.options.$customCursor;m&&(i=!0);for(var y=0;y<l.sel.ranges.length;y++)if(!(!i&&y==l.sel.primIndex)){var x=l.sel.ranges[y];if(!(x.from().line>=e.display.viewTo||x.to().line<e.display.viewFrom)){var _=x.empty();if(m){var N=m(e,x);N&&jc(e,N,c)}else(_||e.options.showCursorWhenSelecting)&&jc(e,x.head,c);_||Jb(e,x,p)}}return s}function jc(e,i,l){var s=Bn(e,i,"div",null,null,!e.options.singleCursorHeightPerLine),c=l.appendChild(k("div"," ","CodeMirror-cursor"));if(c.style.left=s.left+"px",c.style.top=s.top+"px",c.style.height=Math.max(0,s.bottom-s.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var p=Dl(e,i,"div",null,null),m=p.right-p.left;c.style.width=(m>0?m:e.defaultCharWidth())+"px"}if(s.other){var y=l.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));y.style.display="",y.style.left=s.other.left+"px",y.style.top=s.other.top+"px",y.style.height=(s.other.bottom-s.other.top)*.85+"px"}}function zl(e,i){return e.top-i.top||e.left-i.left}function Jb(e,i,l){var s=e.display,c=e.doc,p=document.createDocumentFragment(),m=td(e.display),y=m.left,x=Math.max(s.sizerWidth,Si(e)-s.sizer.offsetLeft)-m.right,_=c.direction=="ltr";function N(yt,Tt,Dt,Pt){Tt<0&&(Tt=0),Tt=Math.round(Tt),Pt=Math.round(Pt),p.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+yt+`px;
|
|
16
|
-
top: `+Tt+"px; width: "+(Dt??x-yt)+`px;
|
|
17
|
-
height: `+(Pt-Tt)+"px"))}function D(yt,Tt,Dt){var Pt=Mt(c,yt),Ut=Pt.text.length,ge,ze;function _e(Ae,an){return Dl(e,I(yt,Ae),"div",Pt,an)}function wn(Ae,an,Be){var Oe=hd(e,Pt,null,Ae),Me=an=="ltr"==(Be=="after")?"left":"right",Ce=Be=="after"?Oe.begin:Oe.end-(/\s/.test(Pt.text.charAt(Oe.end-1))?2:1);return _e(Ce,Me)[Me]}var ln=ye(Pt,c.direction);return mn(ln,Tt||0,Dt??Ut,function(Ae,an,Be,Oe){var Me=Be=="ltr",Ce=_e(Ae,Me?"left":"right"),cn=_e(an-1,Me?"right":"left"),So=Tt==null&&Ae==0,ti=Dt==null&&an==Ut,Ke=Oe==0,or=!ln||Oe==ln.length-1;if(cn.top-Ce.top<=3){var Ie=(_?So:ti)&&Ke,yu=(_?ti:So)&&or,Tr=Ie?y:(Me?Ce:cn).left,Ni=yu?x:(Me?cn:Ce).right;N(Tr,Ce.top,Ni-Tr,Ce.bottom)}else{var Pi,tn,ko,bu;Me?(Pi=_&&So&&Ke?y:Ce.left,tn=_?x:wn(Ae,Be,"before"),ko=_?y:wn(an,Be,"after"),bu=_&&ti&&or?x:cn.right):(Pi=_?wn(Ae,Be,"before"):y,tn=!_&&So&&Ke?x:Ce.right,ko=!_&&ti&&or?y:cn.left,bu=_?wn(an,Be,"after"):x),N(Pi,Ce.top,tn-Pi,Ce.bottom),Ce.bottom<cn.top&&N(y,Ce.bottom,null,cn.top),N(ko,cn.top,bu-ko,cn.bottom)}(!ge||zl(Ce,ge)<0)&&(ge=Ce),zl(cn,ge)<0&&(ge=cn),(!ze||zl(Ce,ze)<0)&&(ze=Ce),zl(cn,ze)<0&&(ze=cn)}),{start:ge,end:ze}}var B=i.from(),q=i.to();if(B.line==q.line)D(B.line,B.ch,q.ch);else{var Y=Mt(c,B.line),it=Mt(c,q.line),ft=Hn(Y)==Hn(it),mt=D(B.line,B.ch,ft?Y.text.length+1:null).end,St=D(q.line,ft?0:null,q.ch).start;ft&&(mt.top<St.top-2?(N(mt.right,mt.top,null,mt.bottom),N(y,St.top,St.left,St.bottom)):N(mt.right,mt.top,St.left-mt.right,mt.bottom)),mt.bottom<St.top&&N(y,mt.bottom,null,St.top)}l.appendChild(p)}function Gc(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()||uo(e),i.cursorDiv.style.visibility=(l=!l)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function vd(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Kc(e))}function Vc(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&uo(e))},100)}function Kc(e,i){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(me(e,"focus",e,i),e.state.focused=!0,At(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),v&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Gc(e))}function uo(e,i){e.state.delayingBlurEvent||(e.state.focused&&(me(e,"blur",e,i),e.state.focused=!1,ut(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Il(e){for(var i=e.display,l=i.lineDiv.offsetTop,s=Math.max(0,i.scroller.getBoundingClientRect().top),c=i.lineDiv.getBoundingClientRect().top,p=0,m=0;m<i.view.length;m++){var y=i.view[m],x=e.options.lineWrapping,_=void 0,N=0;if(!y.hidden){if(c+=y.line.height,d&&g<8){var D=y.node.offsetTop+y.node.offsetHeight;_=D-l,l=D}else{var B=y.node.getBoundingClientRect();_=B.bottom-B.top,!x&&y.text.firstChild&&(N=y.text.firstChild.getBoundingClientRect().right-B.left-1)}var q=y.line.height-_;if((q>.005||q<-.005)&&(c<s&&(p-=q),Rn(y.line,_),md(y.line),y.rest))for(var Y=0;Y<y.rest.length;Y++)md(y.rest[Y]);if(N>e.display.sizerWidth){var it=Math.ceil(N/co(e.display));it>e.display.maxLineLength&&(e.display.maxLineLength=it,e.display.maxLine=y.line,e.display.maxLineChanged=!0)}}}Math.abs(p)>2&&(i.scroller.scrollTop+=p)}function md(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 Fl(e,i,l){var s=l&&l.top!=null?Math.max(0,l.top):e.scroller.scrollTop;s=Math.floor(s-Ol(e));var c=l&&l.bottom!=null?l.bottom:s+e.wrapper.clientHeight,p=er(i,s),m=er(i,c);if(l&&l.ensure){var y=l.ensure.from.line,x=l.ensure.to.line;y<p?(p=y,m=er(i,_r(Mt(i,y))+e.wrapper.clientHeight)):Math.min(x,i.lastLine())>=m&&(p=er(i,_r(Mt(i,x))-e.wrapper.clientHeight),m=x)}return{from:p,to:Math.max(m,p+1)}}function Qb(e,i){if(!Se(e,"scrollCursorIntoView")){var l=e.display,s=l.sizer.getBoundingClientRect(),c=null,p=l.wrapper.ownerDocument;if(i.top+s.top<0?c=!0:i.bottom+s.top>(p.defaultView.innerHeight||p.documentElement.clientHeight)&&(c=!1),c!=null&&!T){var m=k("div","",null,`position: absolute;
|
|
18
|
-
top: `+(i.top-l.viewOffset-Ol(e.display))+`px;
|
|
19
|
-
height: `+(i.bottom-i.top+rr(e)+l.barHeight)+`px;
|
|
20
|
-
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(c),e.display.lineSpace.removeChild(m)}}}function tw(e,i,l,s){s==null&&(s=0);var c;!e.options.lineWrapping&&i==l&&(l=i.sticky=="before"?I(i.line,i.ch+1,"before"):i,i=i.ch?I(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var p=0;p<5;p++){var m=!1,y=Bn(e,i),x=!l||l==i?y:Bn(e,l);c={left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-s,right:Math.max(y.left,x.left),bottom:Math.max(y.bottom,x.bottom)+s};var _=Xc(e,c),N=e.doc.scrollTop,D=e.doc.scrollLeft;if(_.scrollTop!=null&&(gs(e,_.scrollTop),Math.abs(e.doc.scrollTop-N)>1&&(m=!0)),_.scrollLeft!=null&&(Li(e,_.scrollLeft),Math.abs(e.doc.scrollLeft-D)>1&&(m=!0)),!m)break}return c}function ew(e,i){var l=Xc(e,i);l.scrollTop!=null&&gs(e,l.scrollTop),l.scrollLeft!=null&&Li(e,l.scrollLeft)}function Xc(e,i){var l=e.display,s=ao(e.display);i.top<0&&(i.top=0);var c=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:l.scroller.scrollTop,p=Rc(e),m={};i.bottom-i.top>p&&(i.bottom=i.top+p);var y=e.doc.height+Dc(l),x=i.top<s,_=i.bottom>y-s;if(i.top<c)m.scrollTop=x?0:i.top;else if(i.bottom>c+p){var N=Math.min(i.top,(_?y:i.bottom)-p);N!=c&&(m.scrollTop=N)}var D=e.options.fixedGutter?0:l.gutters.offsetWidth,B=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:l.scroller.scrollLeft-D,q=Si(e)-l.gutters.offsetWidth,Y=i.right-i.left>q;return Y&&(i.right=i.left+q),i.left<10?m.scrollLeft=0:i.left<B?m.scrollLeft=Math.max(0,i.left+D-(Y?0:10)):i.right>q+B-3&&(m.scrollLeft=i.right+(Y?0:10)-q),m}function Yc(e,i){i!=null&&(ql(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+i)}function fo(e){ql(e);var i=e.getCursor();e.curOp.scrollToPos={from:i,to:i,margin:e.options.cursorScrollMargin}}function ps(e,i,l){(i!=null||l!=null)&&ql(e),i!=null&&(e.curOp.scrollLeft=i),l!=null&&(e.curOp.scrollTop=l)}function nw(e,i){ql(e),e.curOp.scrollToPos=i}function ql(e){var i=e.curOp.scrollToPos;if(i){e.curOp.scrollToPos=null;var l=ud(e,i.from),s=ud(e,i.to);yd(e,l,s,i.margin)}}function yd(e,i,l,s){var c=Xc(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});ps(e,c.scrollLeft,c.scrollTop)}function gs(e,i){Math.abs(e.doc.scrollTop-i)<2||(a||Jc(e,{top:i}),bd(e,i,!0),a&&Jc(e),ys(e,100))}function bd(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 Li(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,kd(e),e.display.scroller.scrollLeft!=i&&(e.display.scroller.scrollLeft=i),e.display.scrollbars.setScrollLeft(i))}function vs(e){var i=e.display,l=i.gutters.offsetWidth,s=Math.round(e.doc.height+Dc(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+rr(e)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:l}}var Ei=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,d&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ei.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 p=e.viewWidth-e.barLeft-(l?s:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+p)+"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}},Ei.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ei.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ei.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},Ei.prototype.enableZeroWidthBar=function(e,i,l){e.style.visibility="";function s(){var c=e.getBoundingClientRect(),p=l=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);p!=e?e.style.visibility="hidden":i.set(1e3,s)}i.set(1e3,s)},Ei.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ms=function(){};ms.prototype.update=function(){return{bottom:0,right:0}},ms.prototype.setScrollLeft=function(){},ms.prototype.setScrollTop=function(){},ms.prototype.clear=function(){};function ho(e,i){i||(i=vs(e));var l=e.display.barWidth,s=e.display.barHeight;wd(e,i);for(var c=0;c<4&&l!=e.display.barWidth||s!=e.display.barHeight;c++)l!=e.display.barWidth&&e.options.lineWrapping&&Il(e),wd(e,vs(e)),l=e.display.barWidth,s=e.display.barHeight}function wd(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 xd={native:Ei,null:ms};function _d(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ut(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new xd[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"?Li(e,i):gs(e,i)},e),e.display.scrollbars.addClass&&At(e.display.wrapper,e.display.scrollbars.addClass)}var rw=0;function Ai(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:++rw,markArrays:null},$b(e.curOp)}function Mi(e){var i=e.curOp;i&&Rb(i,function(l){for(var s=0;s<l.ops.length;s++)l.ops[s].cm.curOp=null;iw(l)})}function iw(e){for(var i=e.ops,l=0;l<i.length;l++)ow(i[l]);for(var s=0;s<i.length;s++)sw(i[s]);for(var c=0;c<i.length;c++)lw(i[c]);for(var p=0;p<i.length;p++)aw(i[p]);for(var m=0;m<i.length;m++)cw(i[m])}function ow(e){var i=e.cm,l=i.display;fw(i),e.updateMaxLine&&Oc(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 Hl(i,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function sw(e){e.updatedDisplay=e.mustUpdate&&Zc(e.cm,e.update)}function lw(e){var i=e.cm,l=i.display;e.updatedDisplay&&Il(i),e.barMeasure=vs(i),l.maxLineChanged&&!i.options.lineWrapping&&(e.adjustWidthTo=nd(i,l.maxLine,l.maxLine.text.length).left+3,i.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+e.adjustWidthTo+rr(i)+i.display.barWidth),e.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+e.adjustWidthTo-Si(i))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=l.input.prepareSelection())}function aw(e){var i=e.cm;e.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<i.doc.scrollLeft&&Li(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)&&ho(i,e.barMeasure),e.updatedDisplay&&tu(i,e.barMeasure),e.selectionChanged&&Gc(i),i.state.focused&&e.updateInput&&i.display.input.reset(e.typing),l&&vd(e.cm)}function cw(e){var i=e.cm,l=i.display,s=i.doc;if(e.updatedDisplay&&Sd(i,e.update),l.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),e.scrollTop!=null&&bd(i,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Li(i,e.scrollLeft,!0,!0),e.scrollToPos){var c=tw(i,Ft(s,e.scrollToPos.from),Ft(s,e.scrollToPos.to),e.scrollToPos.margin);Qb(i,c)}var p=e.maybeHiddenMarkers,m=e.maybeUnhiddenMarkers;if(p)for(var y=0;y<p.length;++y)p[y].lines.length||me(p[y],"hide");if(m)for(var x=0;x<m.length;++x)m[x].lines.length&&me(m[x],"unhide");l.wrapper.offsetHeight&&(s.scrollTop=i.display.scroller.scrollTop),e.changeObjs&&me(i,"changes",i,e.changeObjs),e.update&&e.update.finish()}function bn(e,i){if(e.curOp)return i();Ai(e);try{return i()}finally{Mi(e)}}function De(e,i){return function(){if(e.curOp)return i.apply(e,arguments);Ai(e);try{return i.apply(e,arguments)}finally{Mi(e)}}}function Qe(e){return function(){if(this.curOp)return e.apply(this,arguments);Ai(this);try{return e.apply(this,arguments)}finally{Mi(this)}}}function Re(e){return function(){var i=this.cm;if(!i||i.curOp)return e.apply(this,arguments);Ai(i);try{return e.apply(this,arguments)}finally{Mi(i)}}}function ys(e,i){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(i,Q(uw,e))}function uw(e){var i=e.doc;if(!(i.highlightFrontier>=e.display.viewTo)){var l=+new Date+e.options.workTime,s=ls(e,i.highlightFrontier),c=[];i.iter(s.line,Math.min(i.first+i.size,e.display.viewTo+500),function(p){if(s.line>=e.display.viewFrom){var m=p.styles,y=p.text.length>e.options.maxHighlightLength?br(i.mode,s.state):null,x=Mh(e,p,s,!0);y&&(s.state=y),p.styles=x.styles;var _=p.styleClasses,N=x.classes;N?p.styleClasses=N:_&&(p.styleClasses=null);for(var D=!m||m.length!=p.styles.length||_!=N&&(!_||!N||_.bgClass!=N.bgClass||_.textClass!=N.textClass),B=0;!D&&B<m.length;++B)D=m[B]!=p.styles[B];D&&c.push(s.line),p.stateAfter=s.save(),s.nextLine()}else p.text.length<=e.options.maxHighlightLength&&Lc(e,p.text,s),p.stateAfter=s.line%5==0?s.save():null,s.nextLine();if(+new Date>l)return ys(e,e.options.workDelay),!0}),i.highlightFrontier=s.line,i.modeFrontier=Math.max(i.modeFrontier,s.line),c.length&&bn(e,function(){for(var p=0;p<c.length;p++)Vr(e,c[p],"text")})}}var Hl=function(e,i,l){var s=e.display;this.viewport=i,this.visible=Fl(s,e.doc,i),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=Si(e),this.force=l,this.dims=Bc(e),this.events=[]};Hl.prototype.signal=function(e,i){Ze(e,i)&&this.events.push(arguments)},Hl.prototype.finish=function(){for(var e=0;e<this.events.length;e++)me.apply(null,this.events[e])};function fw(e){var i=e.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=rr(e)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=rr(e)+"px",i.scrollbarsClipped=!0)}function hw(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=ie(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 dw(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 Zc(e,i){var l=e.display,s=e.doc;if(i.editorIsHidden)return Kr(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&&pd(e)==0)return!1;Cd(e)&&(Kr(e),i.dims=Bc(e));var c=s.first+s.size,p=Math.max(i.visible.from-e.options.viewportMargin,s.first),m=Math.min(c,i.visible.to+e.options.viewportMargin);l.viewFrom<p&&p-l.viewFrom<20&&(p=Math.max(s.first,l.viewFrom)),l.viewTo>m&&l.viewTo-m<20&&(m=Math.min(c,l.viewTo)),xr&&(p=Nc(e.doc,p),m=Uh(e.doc,m));var y=p!=l.viewFrom||m!=l.viewTo||l.lastWrapHeight!=i.wrapperHeight||l.lastWrapWidth!=i.wrapperWidth;Zb(e,p,m),l.viewOffset=_r(Mt(e.doc,l.viewFrom)),e.display.mover.style.top=l.viewOffset+"px";var x=pd(e);if(!y&&x==0&&!i.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var _=hw(e);return x>4&&(l.lineDiv.style.display="none"),pw(e,l.updateLineNumbers,i.dims),x>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,dw(_),U(l.cursorDiv),U(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,y&&(l.lastWrapHeight=i.wrapperHeight,l.lastWrapWidth=i.wrapperWidth,ys(e,400)),l.updateLineNumbers=null,!0}function Sd(e,i){for(var l=i.viewport,s=!0;;s=!1){if(!s||!e.options.lineWrapping||i.oldDisplayWidth==Si(e)){if(l&&l.top!=null&&(l={top:Math.min(e.doc.height+Dc(e.display)-Rc(e),l.top)}),i.visible=Fl(e.display,e.doc,l),i.visible.from>=e.display.viewFrom&&i.visible.to<=e.display.viewTo)break}else s&&(i.visible=Fl(e.display,e.doc,l));if(!Zc(e,i))break;Il(e);var c=vs(e);ds(e),ho(e,c),tu(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 Jc(e,i){var l=new Hl(e,i);if(Zc(e,l)){Il(e),Sd(e,l);var s=vs(e);ds(e),ho(e,s),tu(e,s),l.finish()}}function pw(e,i,l){var s=e.display,c=e.options.lineNumbers,p=s.lineDiv,m=p.firstChild;function y(Y){var it=Y.nextSibling;return v&&G&&e.display.currentWheelTarget==Y?Y.style.display="none":Y.parentNode.removeChild(Y),it}for(var x=s.view,_=s.viewFrom,N=0;N<x.length;N++){var D=x[N];if(!D.hidden)if(!D.node||D.node.parentNode!=p){var B=Hb(e,D,_,l);p.insertBefore(B,m)}else{for(;m!=D.node;)m=y(m);var q=c&&i!=null&&i<=_&&D.lineNumber;D.changes&&(Ct(D.changes,"gutter")>-1&&(q=!1),Xh(e,D,_,l)),q&&(U(D.lineNumber),D.lineNumber.appendChild(document.createTextNode(R(e.options,_)))),m=D.node.nextSibling}_+=D.size}for(;m;)m=y(m)}function Qc(e){var i=e.gutters.offsetWidth;e.sizer.style.marginLeft=i+"px",$e(e,"gutterChanged",e)}function tu(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+rr(e)+"px"}function kd(e){var i=e.display,l=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!e.options.fixedGutter))){for(var s=Wc(i)-i.scroller.scrollLeft+e.doc.scrollLeft,c=i.gutters.offsetWidth,p=s+"px",m=0;m<l.length;m++)if(!l[m].hidden){e.options.fixedGutter&&(l[m].gutter&&(l[m].gutter.style.left=p),l[m].gutterBackground&&(l[m].gutterBackground.style.left=p));var y=l[m].alignable;if(y)for(var x=0;x<y.length;x++)y[x].style.left=p}e.options.fixedGutter&&(i.gutters.style.left=s+c+"px")}}function Cd(e){if(!e.options.lineNumbers)return!1;var i=e.doc,l=R(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")),p=c.firstChild.offsetWidth,m=c.offsetWidth-p;return s.lineGutter.style.width="",s.lineNumInnerWidth=Math.max(p,s.lineGutter.offsetWidth-m)+1,s.lineNumWidth=s.lineNumInnerWidth+m,s.lineNumChars=s.lineNumInnerWidth?l.length:-1,s.lineGutter.style.width=s.lineNumWidth+"px",Qc(e.display),!0}return!1}function eu(e,i){for(var l=[],s=!1,c=0;c<e.length;c++){var p=e[c],m=null;if(typeof p!="string"&&(m=p.style,p=p.className),p=="CodeMirror-linenumbers")if(i)s=!0;else continue;l.push({className:p,style:m})}return i&&!s&&l.push({className:"CodeMirror-linenumbers",style:null}),l}function Td(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],p=c.className,m=c.style,y=i.appendChild(k("div",null,"CodeMirror-gutter "+p));m&&(y.style.cssText=m),p=="CodeMirror-linenumbers"&&(e.lineGutter=y,y.style.width=(e.lineNumWidth||1)+"px")}i.style.display=l.length?"":"none",Qc(e)}function bs(e){Td(e.display),on(e),kd(e)}function gw(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 p=H("div",[c.lineSpace],"CodeMirror-lines");c.mover=k("div",[p],null,"position: relative"),c.sizer=k("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=k("div",null,null,"position: absolute; height: "+pe+"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"),w&&S>=105&&(c.wrapper.style.clipPath="inset(0px)"),c.wrapper.setAttribute("translate","no"),d&&g<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!v&&!(a&&O)&&(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=eu(s.gutters,s.lineNumbers),Td(c),l.init(c)}var Bl=0,kr=null;d?kr=-.53:a?kr=15:w?kr=-.7:A&&(kr=-1/3);function Ld(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 vw(e){var i=Ld(e);return i.x*=kr,i.y*=kr,i}function Ed(e,i){w&&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=Ld(i),s=l.x,c=l.y,p=kr;i.deltaMode===0&&(s=i.deltaX,c=i.deltaY,p=1);var m=e.display,y=m.scroller,x=y.scrollWidth>y.clientWidth,_=y.scrollHeight>y.clientHeight;if(!!(s&&x||c&&_)){if(c&&G&&v){t:for(var N=i.target,D=m.view;N!=y;N=N.parentNode)for(var B=0;B<D.length;B++)if(D[B].node==N){e.display.currentWheelTarget=N;break t}}if(s&&!a&&!M&&p!=null){c&&_&&gs(e,Math.max(0,y.scrollTop+c*p)),Li(e,Math.max(0,y.scrollLeft+s*p)),(!c||c&&_)&&Ge(i),m.wheelStartX=null;return}if(c&&p!=null){var q=c*p,Y=e.doc.scrollTop,it=Y+m.wrapper.clientHeight;q<0?Y=Math.max(0,Y+q-50):it=Math.min(e.doc.height,it+q+50),Jc(e,{top:Y,bottom:it})}Bl<20&&i.deltaMode!==0&&(m.wheelStartX==null?(m.wheelStartX=y.scrollLeft,m.wheelStartY=y.scrollTop,m.wheelDX=s,m.wheelDY=c,setTimeout(function(){if(m.wheelStartX!=null){var ft=y.scrollLeft-m.wheelStartX,mt=y.scrollTop-m.wheelStartY,St=mt&&m.wheelDY&&mt/m.wheelDY||ft&&m.wheelDX&&ft/m.wheelDX;m.wheelStartX=m.wheelStartY=null,St&&(kr=(kr*Bl+St)/(Bl+1),++Bl)}},200)):(m.wheelDX+=s,m.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 se(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(X(i,s.from())>=0&&X(e,s.to())<=0)return l}return-1};var se=function(e,i){this.anchor=e,this.head=i};se.prototype.from=function(){return Pe(this.anchor,this.head)},se.prototype.to=function(){return ee(this.anchor,this.head)},se.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Wn(e,i,l){var s=e&&e.options.selectionsMayTouch,c=i[l];i.sort(function(B,q){return X(B.from(),q.from())}),l=Ct(i,c);for(var p=1;p<i.length;p++){var m=i[p],y=i[p-1],x=X(y.to(),m.from());if(s&&!m.empty()?x>0:x>=0){var _=Pe(y.from(),m.from()),N=ee(y.to(),m.to()),D=y.empty()?m.from()==m.head:y.from()==y.head;p<=l&&--l,i.splice(--p,2,new se(D?N:_,D?_:N))}}return new An(i,l)}function Xr(e,i){return new An([new se(e,i||e)],0)}function Yr(e){return e.text?I(e.from.line+e.text.length-1,lt(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ad(e,i){if(X(e,i.from)<0)return e;if(X(e,i.to)<=0)return Yr(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+=Yr(i).ch-i.to.ch),I(l,s)}function nu(e,i){for(var l=[],s=0;s<e.sel.ranges.length;s++){var c=e.sel.ranges[s];l.push(new se(Ad(c.anchor,i),Ad(c.head,i)))}return Wn(e.cm,l,e.sel.primIndex)}function Md(e,i,l){return e.line==i.line?I(l.line,e.ch-i.ch+l.ch):I(l.line+(e.line-i.line),e.ch)}function mw(e,i,l){for(var s=[],c=I(e.first,0),p=c,m=0;m<i.length;m++){var y=i[m],x=Md(y.from,c,p),_=Md(Yr(y),c,p);if(c=y.to,p=_,l=="around"){var N=e.sel.ranges[m],D=X(N.head,N.anchor)<0;s[m]=new se(D?_:x,D?x:_)}else s[m]=new se(x,x)}return new An(s,e.sel.primIndex)}function ru(e){e.doc.mode=yr(e.options,e.doc.modeOption),ws(e)}function ws(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,ys(e,100),e.state.modeGen++,e.curOp&&on(e)}function Nd(e,i){return i.from.ch==0&&i.to.ch==0&<(i.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function iu(e,i,l,s){function c(St){return l?l[St]:null}function p(St,yt,Tt){Cb(St,yt,Tt,s),$e(St,"change",St,i)}function m(St,yt){for(var Tt=[],Dt=St;Dt<yt;++Dt)Tt.push(new oo(_[Dt],c(Dt),s));return Tt}var y=i.from,x=i.to,_=i.text,N=Mt(e,y.line),D=Mt(e,x.line),B=lt(_),q=c(_.length-1),Y=x.line-y.line;if(i.full)e.insert(0,m(0,_.length)),e.remove(_.length,e.size-_.length);else if(Nd(e,i)){var it=m(0,_.length-1);p(D,D.text,q),Y&&e.remove(y.line,Y),it.length&&e.insert(y.line,it)}else if(N==D)if(_.length==1)p(N,N.text.slice(0,y.ch)+B+N.text.slice(x.ch),q);else{var ft=m(1,_.length-1);ft.push(new oo(B+N.text.slice(x.ch),q,s)),p(N,N.text.slice(0,y.ch)+_[0],c(0)),e.insert(y.line+1,ft)}else if(_.length==1)p(N,N.text.slice(0,y.ch)+_[0]+D.text.slice(x.ch),c(0)),e.remove(y.line+1,Y);else{p(N,N.text.slice(0,y.ch)+_[0],c(0)),p(D,B+D.text.slice(x.ch),q);var mt=m(1,_.length-1);Y>1&&e.remove(y.line+1,Y-1),e.insert(y.line+1,mt)}$e(e,"change",e,i)}function Zr(e,i,l){function s(c,p,m){if(c.linked)for(var y=0;y<c.linked.length;++y){var x=c.linked[y];if(x.doc!=p){var _=m&&x.sharedHist;l&&!_||(i(x.doc,_),s(x.doc,c,_))}}}s(e,null,!0)}function Pd(e,i){if(i.cm)throw new Error("This document is already in use.");e.doc=i,i.cm=e,Uc(e),ru(e),Od(e),e.options.direction=i.direction,e.options.lineWrapping||Oc(e),e.options.mode=i.modeOption,on(e)}function Od(e){(e.doc.direction=="rtl"?At:ut)(e.display.lineDiv,"CodeMirror-rtl")}function yw(e){bn(e,function(){Od(e),on(e)})}function Wl(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 ou(e,i){var l={from:Vt(i.from),to:Yr(i),text:wr(e,i.from,i.to)};return Rd(e,l,i.from.line,i.to.line+1),Zr(e,function(s){return Rd(s,l,i.from.line,i.to.line+1)},!0),l}function $d(e){for(;e.length;){var i=lt(e);if(i.ranges)e.pop();else break}}function bw(e,i){if(i)return $d(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 Dd(e,i,l,s){var c=e.history;c.undone.length=0;var p=+new Date,m,y;if((c.lastOp==s||c.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&c.lastModTime>p-(e.cm?e.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(m=bw(c,c.lastOp==s)))y=lt(m.changes),X(i.from,i.to)==0&&X(i.from,y.to)==0?y.to=Yr(i):m.changes.push(ou(e,i));else{var x=lt(c.done);for((!x||!x.ranges)&&Ul(e.sel,c.done),m={changes:[ou(e,i)],generation:c.generation},c.done.push(m);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(l),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=p,c.lastOp=c.lastSelOp=s,c.lastOrigin=c.lastSelOrigin=i.origin,y||me(e,"historyAdded")}function ww(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 xw(e,i,l,s){var c=e.history,p=s&&s.origin;l==c.lastSelOp||p&&c.lastSelOrigin==p&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==p||ww(e,p,lt(c.done),i))?c.done[c.done.length-1]=i:Ul(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=p,c.lastSelOp=l,s&&s.clearRedo!==!1&&$d(c.undone)}function Ul(e,i){var l=lt(i);l&&l.ranges&&l.equals(e)||i.push(e)}function Rd(e,i,l,s){var c=i["spans_"+e.id],p=0;e.iter(Math.max(e.first,l),Math.min(e.first+e.size,s),function(m){m.markedSpans&&((c||(c=i["spans_"+e.id]={}))[p]=m.markedSpans),++p})}function _w(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 Sw(e,i){var l=i["spans_"+e.id];if(!l)return null;for(var s=[],c=0;c<i.text.length;++c)s.push(_w(l[c]));return s}function zd(e,i){var l=Sw(e,i),s=Ac(e,i);if(!l)return s;if(!s)return l;for(var c=0;c<l.length;++c){var p=l[c],m=s[c];if(p&&m){t:for(var y=0;y<m.length;++y){for(var x=m[y],_=0;_<p.length;++_)if(p[_].marker==x.marker)continue t;p.push(x)}}else m&&(l[c]=m)}return l}function po(e,i,l){for(var s=[],c=0;c<e.length;++c){var p=e[c];if(p.ranges){s.push(l?An.prototype.deepCopy.call(p):p);continue}var m=p.changes,y=[];s.push({changes:y});for(var x=0;x<m.length;++x){var _=m[x],N=void 0;if(y.push({from:_.from,to:_.to,text:_.text}),i)for(var D in _)(N=D.match(/^spans_(\d+)$/))&&Ct(i,Number(N[1]))>-1&&(lt(y)[D]=_[D],delete _[D])}}return s}function su(e,i,l,s){if(s){var c=e.anchor;if(l){var p=X(i,c)<0;p!=X(l,c)<0?(c=i,i=l):p!=X(i,l)<0&&(i=l)}return new se(c,i)}else return new se(l||i,i)}function jl(e,i,l,s,c){c==null&&(c=e.cm&&(e.cm.display.shift||e.extend)),Ve(e,new An([su(e.sel.primary(),i,l,c)],0),s)}function Id(e,i,l){for(var s=[],c=e.cm&&(e.cm.display.shift||e.extend),p=0;p<e.sel.ranges.length;p++)s[p]=su(e.sel.ranges[p],i[p],null,c);var m=Wn(e.cm,s,e.sel.primIndex);Ve(e,m,l)}function lu(e,i,l,s){var c=e.sel.ranges.slice(0);c[i]=l,Ve(e,Wn(e.cm,c,e.sel.primIndex),s)}function Fd(e,i,l,s){Ve(e,Xr(i,l),s)}function kw(e,i,l){var s={ranges:i.ranges,update:function(c){this.ranges=[];for(var p=0;p<c.length;p++)this.ranges[p]=new se(Ft(e,c[p].anchor),Ft(e,c[p].head))},origin:l&&l.origin};return me(e,"beforeSelectionChange",e,s),e.cm&&me(e.cm,"beforeSelectionChange",e.cm,s),s.ranges!=i.ranges?Wn(e.cm,s.ranges,s.ranges.length-1):i}function qd(e,i,l){var s=e.history.done,c=lt(s);c&&c.ranges?(s[s.length-1]=i,Gl(e,i,l)):Ve(e,i,l)}function Ve(e,i,l){Gl(e,i,l),xw(e,e.sel,e.cm?e.cm.curOp.id:NaN,l)}function Gl(e,i,l){(Ze(e,"beforeSelectionChange")||e.cm&&Ze(e.cm,"beforeSelectionChange"))&&(i=kw(e,i,l));var s=l&&l.bias||(X(i.primary().head,e.sel.primary().head)<0?-1:1);Hd(e,Wd(e,i,s,!0)),!(l&&l.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&fo(e.cm)}function Hd(e,i){i.equals(e.sel)||(e.sel=i,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,xl(e.cm)),$e(e,"cursorActivity",e))}function Bd(e){Hd(e,Wd(e,e.sel,null,!1))}function Wd(e,i,l,s){for(var c,p=0;p<i.ranges.length;p++){var m=i.ranges[p],y=i.ranges.length==e.sel.ranges.length&&e.sel.ranges[p],x=Vl(e,m.anchor,y&&y.anchor,l,s),_=m.head==m.anchor?x:Vl(e,m.head,y&&y.head,l,s);(c||x!=m.anchor||_!=m.head)&&(c||(c=i.ranges.slice(0,p)),c[p]=new se(x,_))}return c?Wn(e.cm,c,i.primIndex):i}function go(e,i,l,s,c){var p=Mt(e,i.line);if(p.markedSpans)for(var m=0;m<p.markedSpans.length;++m){var y=p.markedSpans[m],x=y.marker,_="selectLeft"in x?!x.selectLeft:x.inclusiveLeft,N="selectRight"in x?!x.selectRight:x.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&&(me(x,"beforeCursorEnter"),x.explicitlyCleared))if(p.markedSpans){--m;continue}else break;if(!x.atomic)continue;if(l){var D=x.find(s<0?1:-1),B=void 0;if((s<0?N:_)&&(D=Ud(e,D,-s,D&&D.line==i.line?p:null)),D&&D.line==i.line&&(B=X(D,l))&&(s<0?B<0:B>0))return go(e,D,i,s,c)}var q=x.find(s<0?-1:1);return(s<0?_:N)&&(q=Ud(e,q,s,q.line==i.line?p:null)),q?go(e,q,i,s,c):null}}return i}function Vl(e,i,l,s,c){var p=s||1,m=go(e,i,l,p,c)||!c&&go(e,i,l,p,!0)||go(e,i,l,-p,c)||!c&&go(e,i,l,-p,!0);return m||(e.cantEdit=!0,I(e.first,0))}function Ud(e,i,l,s){return l<0&&i.ch==0?i.line>e.first?Ft(e,I(i.line-1)):null:l>0&&i.ch==(s||Mt(e,i.line)).text.length?i.line<e.first+e.size-1?I(i.line+1,0):null:new I(i.line,i.ch+l)}function jd(e){e.setSelection(I(e.firstLine(),0),I(e.lastLine()),P)}function Gd(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,p,m,y){c&&(s.from=Ft(e,c)),p&&(s.to=Ft(e,p)),m&&(s.text=m),y!==void 0&&(s.origin=y)}),me(e,"beforeChange",e,s),e.cm&&me(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 vo(e,i,l){if(e.cm){if(!e.cm.curOp)return De(e.cm,vo)(e,i,l);if(e.cm.state.suppressEdits)return}if(!((Ze(e,"beforeChange")||e.cm&&Ze(e.cm,"beforeChange"))&&(i=Gd(e,i,!0),!i))){var s=zh&&!l&&xb(e,i.from,i.to);if(s)for(var c=s.length-1;c>=0;--c)Vd(e,{from:s[c].from,to:s[c].to,text:c?[""]:i.text,origin:i.origin});else Vd(e,i)}}function Vd(e,i){if(!(i.text.length==1&&i.text[0]==""&&X(i.from,i.to)==0)){var l=nu(e,i);Dd(e,i,l,e.cm?e.cm.curOp.id:NaN),xs(e,i,l,Ac(e,i));var s=[];Zr(e,function(c,p){!p&&Ct(s,c.history)==-1&&(Zd(c.history,i),s.push(c.history)),xs(c,i,null,Ac(c,i))})}}function Kl(e,i,l){var s=e.cm&&e.cm.state.suppressEdits;if(!(s&&!l)){for(var c=e.history,p,m=e.sel,y=i=="undo"?c.done:c.undone,x=i=="undo"?c.undone:c.done,_=0;_<y.length&&(p=y[_],!(l?p.ranges&&!p.equals(e.sel):!p.ranges));_++);if(_!=y.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(p=y.pop(),p.ranges){if(Ul(p,x),l&&!p.equals(e.sel)){Ve(e,p,{clearRedo:!1});return}m=p}else if(s){y.push(p);return}else break;var N=[];Ul(m,x),x.push({changes:N,generation:c.generation}),c.generation=p.generation||++c.maxGeneration;for(var D=Ze(e,"beforeChange")||e.cm&&Ze(e.cm,"beforeChange"),B=function(it){var ft=p.changes[it];if(ft.origin=i,D&&!Gd(e,ft,!1))return y.length=0,{};N.push(ou(e,ft));var mt=it?nu(e,ft):lt(y);xs(e,ft,mt,zd(e,ft)),!it&&e.cm&&e.cm.scrollIntoView({from:ft.from,to:Yr(ft)});var St=[];Zr(e,function(yt,Tt){!Tt&&Ct(St,yt.history)==-1&&(Zd(yt.history,ft),St.push(yt.history)),xs(yt,ft,null,zd(yt,ft))})},q=p.changes.length-1;q>=0;--q){var Y=B(q);if(Y)return Y.v}}}}function Kd(e,i){if(i!=0&&(e.first+=i,e.sel=new An(vt(e.sel.ranges,function(c){return new se(I(c.anchor.line+i,c.anchor.ch),I(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++)Vr(e.cm,s,"gutter")}}function xs(e,i,l,s){if(e.cm&&!e.cm.curOp)return De(e.cm,xs)(e,i,l,s);if(i.to.line<e.first){Kd(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);Kd(e,c),i={from:I(e.first,0),to:I(i.to.line+c,i.to.ch),text:[lt(i.text)],origin:i.origin}}var p=e.lastLine();i.to.line>p&&(i={from:i.from,to:I(p,Mt(e,p).text.length),text:[i.text[0]],origin:i.origin}),i.removed=wr(e,i.from,i.to),l||(l=nu(e,i)),e.cm?Cw(e.cm,i,s):iu(e,i,s),Gl(e,l,P),e.cantEdit&&Vl(e,I(e.firstLine(),0))&&(e.cantEdit=!1)}}function Cw(e,i,l){var s=e.doc,c=e.display,p=i.from,m=i.to,y=!1,x=p.line;e.options.lineWrapping||(x=oe(Hn(Mt(s,p.line))),s.iter(x,m.line+1,function(q){if(q==c.maxLine)return y=!0,!0})),s.sel.contains(i.from,i.to)>-1&&xl(e),iu(s,i,l,dd(e)),e.options.lineWrapping||(s.iter(x,p.line+i.text.length,function(q){var Y=Nl(q);Y>c.maxLineLength&&(c.maxLine=q,c.maxLineLength=Y,c.maxLineChanged=!0,y=!1)}),y&&(e.curOp.updateMaxLine=!0)),pb(s,p.line),ys(e,400);var _=i.text.length-(m.line-p.line)-1;i.full?on(e):p.line==m.line&&i.text.length==1&&!Nd(e.doc,i)?Vr(e,p.line,"text"):on(e,p.line,m.line+1,_);var N=Ze(e,"changes"),D=Ze(e,"change");if(D||N){var B={from:p,to:m,text:i.text,removed:i.removed,origin:i.origin};D&&$e(e,"change",e,B),N&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(B)}e.display.selForContextMenu=null}function mo(e,i,l,s,c){var p;s||(s=l),X(s,l)<0&&(p=[s,l],l=p[0],s=p[1]),typeof i=="string"&&(i=e.splitLines(i)),vo(e,{from:l,to:s,text:i,origin:c})}function Xd(e,i,l,s){l<e.line?e.line+=s:i<e.line&&(e.line=i,e.ch=0)}function Yd(e,i,l,s){for(var c=0;c<e.length;++c){var p=e[c],m=!0;if(p.ranges){p.copied||(p=e[c]=p.deepCopy(),p.copied=!0);for(var y=0;y<p.ranges.length;y++)Xd(p.ranges[y].anchor,i,l,s),Xd(p.ranges[y].head,i,l,s);continue}for(var x=0;x<p.changes.length;++x){var _=p.changes[x];if(l<_.from.line)_.from=I(_.from.line+s,_.from.ch),_.to=I(_.to.line+s,_.to.ch);else if(i<=_.to.line){m=!1;break}}m||(e.splice(0,c+1),c=0)}}function Zd(e,i){var l=i.from.line,s=i.to.line,c=i.text.length-(s-l)-1;Yd(e.done,l,s,c),Yd(e.undone,l,s,c)}function _s(e,i,l,s){var c=i,p=i;return typeof i=="number"?p=Mt(e,En(e,i)):c=oe(i),c==null?null:(s(p,c)&&e.cm&&Vr(e.cm,c,l),p)}function Ss(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}Ss.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,Tb(c),$e(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 ks(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}ks.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 p=Math.min(i,c-e),m=s.height;if(s.removeInner(e,p),this.height-=m-s.height,c==p&&(this.children.splice(l--,1),s.parent=null),(i-=p)==0)break;e=0}else e-=c}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Ss))){var y=[];this.collapse(y),this.children=[new Ss(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],p=c.chunkSize();if(e<=p){if(c.insertInner(e,i,l),c.lines&&c.lines.length>50){for(var m=c.lines.length%25+25,y=m;y<c.lines.length;){var x=new Ss(c.lines.slice(y,y+=25));c.height-=x.height,this.children.splice(++s,0,x),x.parent=this}c.lines=c.lines.slice(0,m),this.maybeSpill()}break}e-=p}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var i=e.children.splice(e.children.length-5,5),l=new ks(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 ks(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],p=c.chunkSize();if(e<p){var m=Math.min(i,p-e);if(c.iterN(e,m,l))return!0;if((i-=m)==0)break;e=0}else e-=p}}};var Cs=function(e,i,l){if(l)for(var s in l)l.hasOwnProperty(s)&&(this[s]=l[s]);this.doc=e,this.node=i};Cs.prototype.clear=function(){var e=this.doc.cm,i=this.line.widgets,l=this.line,s=oe(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 p=fs(this);Rn(l,Math.max(0,l.height-p)),e&&(bn(e,function(){Jd(e,l,-p),Vr(e,s,"widget")}),$e(e,"lineWidgetCleared",e,this,s))}},Cs.prototype.changed=function(){var e=this,i=this.height,l=this.doc.cm,s=this.line;this.height=null;var c=fs(this)-i;!c||(Gr(this.doc,s)||Rn(s,s.height+c),l&&bn(l,function(){l.curOp.forceUpdate=!0,Jd(l,s,c),$e(l,"lineWidgetChanged",l,e,oe(s))}))},Je(Cs);function Jd(e,i,l){_r(i)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Yc(e,l)}function Tw(e,i,l,s){var c=new Cs(e,l,s),p=e.cm;return p&&c.noHScroll&&(p.display.alignWidgets=!0),_s(e,i,"widget",function(m){var y=m.widgets||(m.widgets=[]);if(c.insertAt==null?y.push(c):y.splice(Math.min(y.length,Math.max(0,c.insertAt)),0,c),c.line=m,p&&!Gr(e,m)){var x=_r(m)<e.scrollTop;Rn(m,m.height+fs(c)),x&&Yc(p,c.height),p.curOp.forceUpdate=!0}return!0}),p&&$e(p,"lineWidgetAdded",p,c,typeof i=="number"?i:oe(i)),c}var Qd=0,Jr=function(e,i){this.lines=[],this.type=i,this.doc=e,this.id=++Qd};Jr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,i=e&&!e.curOp;if(i&&Ai(e),Ze(this,"clear")){var l=this.find();l&&$e(this,"clear",l.from,l.to)}for(var s=null,c=null,p=0;p<this.lines.length;++p){var m=this.lines[p],y=as(m.markedSpans,this);e&&!this.collapsed?Vr(e,oe(m),"text"):e&&(y.to!=null&&(c=oe(m)),y.from!=null&&(s=oe(m))),m.markedSpans=mb(m.markedSpans,y),y.from==null&&this.collapsed&&!Gr(this.doc,m)&&e&&Rn(m,ao(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var x=0;x<this.lines.length;++x){var _=Hn(this.lines[x]),N=Nl(_);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&&Bd(e.doc)),e&&$e(e,"markerCleared",e,this,s,c),i&&Mi(e),this.parent&&this.parent.clear()}},Jr.prototype.find=function(e,i){e==null&&this.type=="bookmark"&&(e=1);for(var l,s,c=0;c<this.lines.length;++c){var p=this.lines[c],m=as(p.markedSpans,this);if(m.from!=null&&(l=I(i?p:oe(p),m.from),e==-1))return l;if(m.to!=null&&(s=I(i?p:oe(p),m.to),e==1))return s}return l&&{from:l,to:s}},Jr.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,p=oe(i.line),m=zc(s,p);if(m&&(od(m),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!Gr(l.doc,c)&&l.height!=null){var y=l.height;l.height=null;var x=fs(l)-y;x&&Rn(c,c.height+x)}$e(s,"markerChanged",s,e)})},Jr.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)},Jr.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(Jr);function yo(e,i,l,s,c){if(s&&s.shared)return Lw(e,i,l,s,c);if(e.cm&&!e.cm.curOp)return De(e.cm,yo)(e,i,l,s,c);var p=new Jr(e,c),m=X(i,l);if(s&&tt(s,p,!1),m>0||m==0&&p.clearWhenEmpty!==!1)return p;if(p.replacedWith&&(p.collapsed=!0,p.widgetNode=H("span",[p.replacedWith],"CodeMirror-widget"),s.handleMouseEvents||p.widgetNode.setAttribute("cm-ignore-events","true"),s.insertLeft&&(p.widgetNode.insertLeft=!0)),p.collapsed){if(Wh(e,i.line,i,l,p)||i.line!=l.line&&Wh(e,l.line,i,l,p))throw new Error("Inserting collapsed marker partially overlapping an existing one");vb()}p.addToHistory&&Dd(e,{from:i,to:l,origin:"markText"},e.sel,NaN);var y=i.line,x=e.cm,_;if(e.iter(y,l.line+1,function(D){x&&p.collapsed&&!x.options.lineWrapping&&Hn(D)==x.display.maxLine&&(_=!0),p.collapsed&&y!=i.line&&Rn(D,0),yb(D,new Ll(p,y==i.line?i.ch:null,y==l.line?l.ch:null),e.cm&&e.cm.curOp),++y}),p.collapsed&&e.iter(i.line,l.line+1,function(D){Gr(e,D)&&Rn(D,0)}),p.clearOnEnter&&bt(p,"beforeCursorEnter",function(){return p.clear()}),p.readOnly&&(gb(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),p.collapsed&&(p.id=++Qd,p.atomic=!0),x){if(_&&(x.curOp.updateMaxLine=!0),p.collapsed)on(x,i.line,l.line+1);else if(p.className||p.startStyle||p.endStyle||p.css||p.attributes||p.title)for(var N=i.line;N<=l.line;N++)Vr(x,N,"text");p.atomic&&Bd(x.doc),$e(x,"markerAdded",x,p)}return p}var Ts=function(e,i){this.markers=e,this.primary=i;for(var l=0;l<e.length;++l)e[l].parent=this};Ts.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();$e(this,"clear")}},Ts.prototype.find=function(e,i){return this.primary.find(e,i)},Je(Ts);function Lw(e,i,l,s,c){s=tt(s),s.shared=!1;var p=[yo(e,i,l,s,c)],m=p[0],y=s.widgetNode;return Zr(e,function(x){y&&(s.widgetNode=y.cloneNode(!0)),p.push(yo(x,Ft(x,i),Ft(x,l),s,c));for(var _=0;_<x.linked.length;++_)if(x.linked[_].isParent)return;m=lt(p)}),new Ts(p,m)}function tp(e){return e.findMarks(I(e.first,0),e.clipPos(I(e.lastLine())),function(i){return i.parent})}function Ew(e,i){for(var l=0;l<i.length;l++){var s=i[l],c=s.find(),p=e.clipPos(c.from),m=e.clipPos(c.to);if(X(p,m)){var y=yo(e,p,m,s.primary,s.primary.type);s.markers.push(y),y.parent=s}}}function Aw(e){for(var i=function(s){var c=e[s],p=[c.primary.doc];Zr(c.primary.doc,function(x){return p.push(x)});for(var m=0;m<c.markers.length;m++){var y=c.markers[m];Ct(p,y.doc)==-1&&(y.parent=null,c.markers.splice(m--,1))}},l=0;l<e.length;l++)i(l)}var Mw=0,sn=function(e,i,l,s,c){if(!(this instanceof sn))return new sn(e,i,l,s,c);l==null&&(l=0),ks.call(this,[new Ss([new oo("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var p=I(l,0);this.sel=Xr(p),this.history=new Wl(null),this.id=++Mw,this.modeOption=i,this.lineSep=s,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),iu(this,{from:p,to:p,text:e}),Ve(this,Xr(p),P)};sn.prototype=$t(ks.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=io(this,this.first,this.first+this.size);return e===!1?i:i.join(e||this.lineSeparator())},setValue:Re(function(e){var i=I(this.first,0),l=this.first+this.size-1;vo(this,{from:i,to:I(l,Mt(this,l).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ps(this.cm,0,0),Ve(this,Xr(i),P)}),replaceRange:function(e,i,l,s){i=Ft(this,i),l=l?Ft(this,l):i,mo(this,e,i,l,s)},getRange:function(e,i,l){var s=wr(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(C(this,e))return Mt(this,e)},getLineNumber:function(e){return oe(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Mt(this,e)),Hn(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:Re(function(e,i,l){Fd(this,Ft(this,typeof e=="number"?I(e,i||0):e),null,l)}),setSelection:Re(function(e,i,l){Fd(this,Ft(this,e),Ft(this,i||e),l)}),extendSelection:Re(function(e,i,l){jl(this,Ft(this,e),i&&Ft(this,i),l)}),extendSelections:Re(function(e,i){Id(this,Ah(this,e),i)}),extendSelectionsBy:Re(function(e,i){var l=vt(this.sel.ranges,e);Id(this,Ah(this,l),i)}),setSelections:Re(function(e,i,l){if(!!e.length){for(var s=[],c=0;c<e.length;c++)s[c]=new se(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,Wn(this.cm,s,i),l)}}),addSelection:Re(function(e,i,l){var s=this.sel.ranges.slice(0);s.push(new se(Ft(this,e),Ft(this,i||e))),Ve(this,Wn(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=wr(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=wr(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:Re(function(e,i,l){for(var s=[],c=this.sel,p=0;p<c.ranges.length;p++){var m=c.ranges[p];s[p]={from:m.from(),to:m.to(),text:this.splitLines(e[p]),origin:l}}for(var y=i&&i!="end"&&mw(this,s,i),x=s.length-1;x>=0;x--)vo(this,s[x]);y?qd(this,y):this.cm&&fo(this.cm)}),undo:Re(function(){Kl(this,"undo")}),redo:Re(function(){Kl(this,"redo")}),undoSelection:Re(function(){Kl(this,"undo",!0)}),redoSelection:Re(function(){Kl(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 Wl(this.history),Zr(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:po(this.history.done),undone:po(this.history.undone)}},setHistory:function(e){var i=this.history=new Wl(this.history);i.done=po(e.done.slice(0),null,!0),i.undone=po(e.undone.slice(0),null,!0)},setGutterMarker:Re(function(e,i,l){return _s(this,e,"gutter",function(s){var c=s.gutterMarkers||(s.gutterMarkers={});return c[i]=l,!l&&jt(c)&&(s.gutterMarkers=null),!0})}),clearGutter:Re(function(e){var i=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[e]&&_s(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(!C(this,e)||(i=e,e=Mt(this,e),!e))return null}else if(i=oe(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:Re(function(e,i,l){return _s(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:Re(function(e,i,l){return _s(this,e,i=="gutter"?"gutter":"class",function(s){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",p=s[c];if(p)if(l==null)s[c]=null;else{var m=p.match(kt(l));if(!m)return!1;var y=m.index+m[0].length;s[c]=p.slice(0,m.index)+(!m.index||y==p.length?"":" ")+p.slice(y)||null}else return!1;return!0})}),addLineWidget:Re(function(e,i,l){return Tw(this,e,i,l)}),removeLineWidget:function(e){e.clear()},markText:function(e,i,l){return yo(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),yo(this,e,e,l,"bookmark")},findMarksAt:function(e){e=Ft(this,e);var i=[],l=Mt(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(p){var m=p.markedSpans;if(m)for(var y=0;y<m.length;y++){var x=m[y];!(x.to!=null&&c==e.line&&e.ch>=x.to||x.from==null&&c!=e.line||x.from!=null&&c==i.line&&x.from>=i.ch)&&(!l||l(x.marker))&&s.push(x.marker.parent||x.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 p=c.text.length+s;if(p>e)return i=e,!0;e-=p,++l}),Ft(this,I(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(io(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(io(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}],Ew(s,tp(this)),s},unlinkDoc:function(e){if(e instanceof be&&(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),Aw(tp(this));break}}if(e.history==this.history){var s=[e.id];Zr(e,function(c){return s.push(c.id)},!0),e.history=new Wl(null),e.history.done=po(this.history.done,s),e.history.undone=po(this.history.undone,s)}},iterLinkedDocs:function(e){Zr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):os(e)},lineSeparator:function(){return this.lineSep||`
|
|
21
|
-
`},setDirection:Re(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(i){return i.order=null}),this.cm&&yw(this.cm))})}),sn.prototype.eachLine=sn.prototype.iter;var ep=0;function Nw(e){var i=this;if(np(i),!(Se(i,e)||Sr(i.display,e))){Ge(e),d&&(ep=+new Date);var l=Ci(i,e,!0),s=e.dataTransfer.files;if(!(!l||i.isReadOnly()))if(s&&s.length&&window.FileReader&&window.File)for(var c=s.length,p=Array(c),m=0,y=function(){++m==c&&De(i,function(){l=Ft(i.doc,l);var q={from:l,to:l,text:i.doc.splitLines(p.filter(function(Y){return Y!=null}).join(i.doc.lineSeparator())),origin:"paste"};vo(i.doc,q),qd(i.doc,Xr(Ft(i.doc,l),Ft(i.doc,Yr(q))))})()},x=function(q,Y){if(i.options.allowDropFileTypes&&Ct(i.options.allowDropFileTypes,q.type)==-1){y();return}var it=new FileReader;it.onerror=function(){return y()},it.onload=function(){var ft=it.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ft)){y();return}p[Y]=ft,y()},it.readAsText(q)},_=0;_<s.length;_++)x(s[_],_);else{if(i.state.draggingText&&i.doc.sel.contains(l)>-1){i.state.draggingText(e),setTimeout(function(){return i.display.input.focus()},20);return}try{var N=e.dataTransfer.getData("Text");if(N){var D;if(i.state.draggingText&&!i.state.draggingText.copy&&(D=i.listSelections()),Gl(i.doc,Xr(l,l)),D)for(var B=0;B<D.length;++B)mo(i.doc,"",D[B].anchor,D[B].head,"drag");i.replaceSelection(N,"around","paste"),i.display.input.focus()}}catch{}}}}function Pw(e,i){if(d&&(!e.state.draggingText||+new Date-ep<100)){mr(i);return}if(!(Se(e,i)||Sr(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 Ow(e,i){var l=Ci(e,i);if(!!l){var s=document.createDocumentFragment();jc(e,l,s),e.display.dragCursor||(e.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),z(e.display.dragCursor,s)}}function np(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function rp(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 p=0;p<l.length;p++)e(l[p])})}}var ip=!1;function $w(){ip||(Dw(),ip=!0)}function Dw(){var e;bt(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,rp(Rw)},100))}),bt(window,"blur",function(){return rp(uo)})}function Rw(e){var i=e.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,e.setSize()}for(var Qr={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"},Ls=0;Ls<10;Ls++)Qr[Ls+48]=Qr[Ls+96]=String(Ls);for(var Xl=65;Xl<=90;Xl++)Qr[Xl]=String.fromCharCode(Xl);for(var Es=1;Es<=12;Es++)Qr[Es+111]=Qr[Es+63235]="F"+Es;var Cr={};Cr.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"},Cr.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"},Cr.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"},Cr.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"]},Cr.default=G?Cr.macDefault:Cr.pcDefault;function zw(e){var i=e.split(/-(?!$)/);e=i[i.length-1];for(var l,s,c,p,m=0;m<i.length-1;m++){var y=i[m];if(/^(cmd|meta|m)$/i.test(y))p=!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),p&&(e="Cmd-"+e),c&&(e="Shift-"+e),e}function Iw(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=vt(l.split(" "),zw),p=0;p<c.length;p++){var m=void 0,y=void 0;p==c.length-1?(y=c.join(" "),m=s):(y=c.slice(0,p+1).join(" "),m="...");var x=i[y];if(!x)i[y]=m;else if(x!=m)throw new Error("Inconsistent bindings for "+y)}delete e[l]}for(var _ in i)e[_]=i[_];return e}function bo(e,i,l,s){i=Yl(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 bo(e,i.fallthrough,l,s);for(var p=0;p<i.fallthrough.length;p++){var m=bo(e,i.fallthrough[p],l,s);if(m)return m}}}function op(e){var i=typeof e=="string"?e:Qr[e.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function sp(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 lp(e,i){if(M&&e.keyCode==34&&e.char)return!1;var l=Qr[e.keyCode];return l==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(l=e.code),sp(l,e,i))}function Yl(e){return typeof e=="string"?Cr[e]:e}function wo(e,i){for(var l=e.doc.sel.ranges,s=[],c=0;c<l.length;c++){for(var p=i(l[c]);s.length&&X(p.from,lt(s).to)<=0;){var m=s.pop();if(X(m.from,p.from)<0){p.from=m.from;break}}s.push(p)}bn(e,function(){for(var y=s.length-1;y>=0;y--)mo(e.doc,"",s[y].from,s[y].to,"+delete");fo(e)})}function au(e,i,l){var s=ae(e.text,i+l,l);return s<0||s>e.text.length?null:s}function cu(e,i,l){var s=au(e,i.ch,l);return s==null?null:new I(i.line,s,l<0?"after":"before")}function uu(e,i,l,s,c){if(e){i.doc.direction=="rtl"&&(c=-c);var p=ye(l,i.doc.direction);if(p){var m=c<0?lt(p):p[0],y=c<0==(m.level==1),x=y?"after":"before",_;if(m.level>0||i.doc.direction=="rtl"){var N=lo(i,l);_=c<0?l.text.length-1:0;var D=ir(i,N,_).top;_=Yt(function(B){return ir(i,N,B).top==D},c<0==(m.level==1)?m.from:m.to-1,_),x=="before"&&(_=au(l,_,1))}else _=c<0?m.to:m.from;return new I(s,_,x)}}return new I(s,c<0?l.text.length:0,c<0?"before":"after")}function Fw(e,i,l,s){var c=ye(i,e.doc.direction);if(!c)return cu(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 p=He(c,l.ch,l.sticky),m=c[p];if(e.doc.direction=="ltr"&&m.level%2==0&&(s>0?m.to>l.ch:m.from<l.ch))return cu(i,l,s);var y=function(mt,St){return au(i,mt instanceof I?mt.ch:mt,St)},x,_=function(mt){return e.options.lineWrapping?(x=x||lo(e,i),hd(e,i,x,mt)):{begin:0,end:i.text.length}},N=_(l.sticky=="before"?y(l,-1):l.ch);if(e.doc.direction=="rtl"||m.level==1){var D=m.level==1==s<0,B=y(l,D?1:-1);if(B!=null&&(D?B<=m.to&&B<=N.end:B>=m.from&&B>=N.begin)){var q=D?"before":"after";return new I(l.line,B,q)}}var Y=function(mt,St,yt){for(var Tt=function(ge,ze){return ze?new I(l.line,y(ge,1),"before"):new I(l.line,ge,"after")};mt>=0&&mt<c.length;mt+=St){var Dt=c[mt],Pt=St>0==(Dt.level!=1),Ut=Pt?yt.begin:y(yt.end,-1);if(Dt.from<=Ut&&Ut<Dt.to||(Ut=Pt?Dt.from:y(Dt.to,-1),yt.begin<=Ut&&Ut<yt.end))return Tt(Ut,Pt)}},it=Y(p+s,s,N);if(it)return it;var ft=s>0?N.end:y(N.begin,-1);return ft!=null&&!(s>0&&ft==i.text.length)&&(it=Y(s>0?0:c.length-1,s,_(ft)),it)?it:null}var As={selectAll:jd,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),P)},killLine:function(e){return wo(e,function(i){if(i.empty()){var l=Mt(e.doc,i.head.line).text.length;return i.head.ch==l&&i.head.line<e.lastLine()?{from:i.head,to:I(i.head.line+1,0)}:{from:i.head,to:I(i.head.line,l)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(e){return wo(e,function(i){return{from:I(i.from().line,0),to:Ft(e.doc,I(i.to().line+1,0))}})},delLineLeft:function(e){return wo(e,function(i){return{from:I(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(e){return wo(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 wo(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(I(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(I(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(i){return ap(e,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(i){return cp(e,i.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(i){return qw(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")},Z)},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")},Z)},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/)?cp(e,i.head):s},Z)},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 p=l[c].from(),m=K(e.getLine(p.line),p.ch,s);i.push(pt(s-m%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,p=Mt(e.doc,c.line).text;if(p){if(c.ch==p.length&&(c=new I(c.line,c.ch-1)),c.ch>0)c=new I(c.line,c.ch+1),e.replaceRange(p.charAt(c.ch-1)+p.charAt(c.ch-2),I(c.line,c.ch-2),c,"+transpose");else if(c.line>e.doc.first){var m=Mt(e.doc,c.line-1).text;m&&(c=new I(c.line,1),e.replaceRange(p.charAt(0)+e.doc.lineSeparator()+m.charAt(m.length-1),I(c.line-1,m.length-1),c,"+transpose"))}}l.push(new se(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);fo(e)})},openLine:function(e){return e.replaceSelection(`
|
|
22
|
-
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ap(e,i){var l=Mt(e.doc,i),s=Hn(l);return s!=l&&(i=oe(s)),uu(!0,e,s,i,1)}function qw(e,i){var l=Mt(e.doc,i),s=Sb(l);return s!=l&&(i=oe(s)),uu(!0,e,l,i,-1)}function cp(e,i){var l=ap(e,i.line),s=Mt(e.doc,l.line),c=ye(s,e.doc.direction);if(!c||c[0].level==0){var p=Math.max(l.ch,s.text.search(/\S/)),m=i.line==l.line&&i.ch<=p&&i.ch;return I(l.line,m?0:p,l.sticky)}return l}function Zl(e,i,l){if(typeof i=="string"&&(i=As[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)!=Lt}finally{e.display.shift=s,e.state.suppressEdits=!1}return c}function Hw(e,i,l){for(var s=0;s<e.state.keyMaps.length;s++){var c=bo(i,e.state.keyMaps[s],l,e);if(c)return c}return e.options.extraKeys&&bo(i,e.options.extraKeys,l,e)||bo(i,e.options.keyMap,l,e)}var Bw=new st;function Ms(e,i,l,s){var c=e.state.keySeq;if(c){if(op(i))return"handled";if(/\'$/.test(i)?e.state.keySeq=null:Bw.set(50,function(){e.state.keySeq==c&&(e.state.keySeq=null,e.display.input.reset())}),up(e,c+" "+i,l,s))return!0}return up(e,i,l,s)}function up(e,i,l,s){var c=Hw(e,i,s);return c=="multi"&&(e.state.keySeq=i),c=="handled"&&$e(e,"keyHandled",e,i,l),(c=="handled"||c=="multi")&&(Ge(l),Gc(e)),!!c}function fp(e,i){var l=lp(i,!0);return l?i.shiftKey&&!e.state.keySeq?Ms(e,"Shift-"+l,i,function(s){return Zl(e,s,!0)})||Ms(e,l,i,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return Zl(e,s)}):Ms(e,l,i,function(s){return Zl(e,s)}):!1}function Ww(e,i,l){return Ms(e,"'"+l+"'",i,function(s){return Zl(e,s,!0)})}var fu=null;function hp(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&(i.curOp.focus=wt(Gt(i)),!Se(i,e))){d&&g<11&&e.keyCode==27&&(e.returnValue=!1);var l=e.keyCode;i.display.shift=l==16||e.shiftKey;var s=fp(i,e);M&&(fu=s?l:null,!s&&l==88&&!Qn&&(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)&&Uw(i)}}function Uw(e){var i=e.display.lineDiv;At(i,"CodeMirror-crosshair");function l(s){(s.keyCode==18||!s.altKey)&&(ut(i,"CodeMirror-crosshair"),je(document,"keyup",l),je(document,"mouseover",l))}bt(document,"keyup",l),bt(document,"mouseover",l)}function dp(e){e.keyCode==16&&(this.doc.sel.shift=!1),Se(this,e)}function pp(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&!(Sr(i.display,e)||Se(i,e)||e.ctrlKey&&!e.altKey||G&&e.metaKey)){var l=e.keyCode,s=e.charCode;if(M&&l==fu){fu=null,Ge(e);return}if(!(M&&(!e.which||e.which<10)&&fp(i,e))){var c=String.fromCharCode(s??l);c!="\b"&&(Ww(i,e,c)||i.display.input.onKeyPress(e))}}}var jw=400,hu=function(e,i,l){this.time=e,this.pos=i,this.button=l};hu.prototype.compare=function(e,i,l){return this.time+jw>e&&X(i,this.pos)==0&&l==this.button};var Ns,Ps;function Gw(e,i){var l=+new Date;return Ps&&Ps.compare(l,e,i)?(Ns=Ps=null,"triple"):Ns&&Ns.compare(l,e,i)?(Ps=new hu(l,e,i),Ns=null,"double"):(Ns=new hu(l,e,i),Ps=null,"single")}function gp(e){var i=this,l=i.display;if(!(Se(i,e)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=e.shiftKey,Sr(l,e)){v||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!du(i,e)){var s=Ci(i,e),c=is(e),p=s?Gw(s,c):"single";ie(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(e),!(s&&Vw(i,c,s,p,e))&&(c==1?s?Xw(i,s,p,e):rn(e)==l.scroller&&Ge(e):c==2?(s&&jl(i.doc,s),setTimeout(function(){return l.input.focus()},20)):c==3&&(gt?i.display.input.onContextMenu(e):Vc(i)))}}}function Vw(e,i,l,s,c){var p="Click";return s=="double"?p="Double"+p:s=="triple"&&(p="Triple"+p),p=(i==1?"Left":i==2?"Middle":"Right")+p,Ms(e,sp(p,c),c,function(m){if(typeof m=="string"&&(m=As[m]),!m)return!1;var y=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),y=m(e,l)!=Lt}finally{e.state.suppressEdits=!1}return y})}function Kw(e,i,l){var s=e.getOption("configureMouse"),c=s?s(e,i,l):{};if(c.unit==null){var p=V?l.shiftKey&&l.metaKey:l.altKey;c.unit=p?"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 Xw(e,i,l,s){d?setTimeout(Q(vd,e),0):e.curOp.focus=wt(Gt(e));var c=Kw(e,l,s),p=e.doc.sel,m;e.options.dragDrop&&Cc&&!e.isReadOnly()&&l=="single"&&(m=p.contains(i))>-1&&(X((m=p.ranges[m]).from(),i)<0||i.xRel>0)&&(X(m.to(),i)>0||i.xRel<0)?Yw(e,s,i,c):Zw(e,s,i,c)}function Yw(e,i,l,s){var c=e.display,p=!1,m=De(e,function(_){v&&(c.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Vc(e)),je(c.wrapper.ownerDocument,"mouseup",m),je(c.wrapper.ownerDocument,"mousemove",y),je(c.scroller,"dragstart",x),je(c.scroller,"drop",m),p||(Ge(_),s.addNew||jl(e.doc,l,null,null,s.extend),v&&!A||d&&g==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),y=function(_){p=p||Math.abs(i.clientX-_.clientX)+Math.abs(i.clientY-_.clientY)>=10},x=function(){return p=!0};v&&(c.scroller.draggable=!0),e.state.draggingText=m,m.copy=!s.moveOnDrag,bt(c.wrapper.ownerDocument,"mouseup",m),bt(c.wrapper.ownerDocument,"mousemove",y),bt(c.scroller,"dragstart",x),bt(c.scroller,"drop",m),e.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function vp(e,i,l){if(l=="char")return new se(i,i);if(l=="word")return e.findWordAt(i);if(l=="line")return new se(I(i.line,0),Ft(e.doc,I(i.line+1,0)));var s=l(e,i);return new se(s.from,s.to)}function Zw(e,i,l,s){d&&Vc(e);var c=e.display,p=e.doc;Ge(i);var m,y,x=p.sel,_=x.ranges;if(s.addNew&&!s.extend?(y=p.sel.contains(l),y>-1?m=_[y]:m=new se(l,l)):(m=p.sel.primary(),y=p.sel.primIndex),s.unit=="rectangle")s.addNew||(m=new se(l,l)),l=Ci(e,i,!0,!0),y=-1;else{var N=vp(e,l,s.unit);s.extend?m=su(m,N.anchor,N.head,s.extend):m=N}s.addNew?y==-1?(y=_.length,Ve(p,Wn(e,_.concat([m]),y),{scroll:!1,origin:"*mouse"})):_.length>1&&_[y].empty()&&s.unit=="char"&&!s.extend?(Ve(p,Wn(e,_.slice(0,y).concat(_.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),x=p.sel):lu(p,y,m,F):(y=0,Ve(p,new An([m],0),F),x=p.sel);var D=l;function B(yt){if(X(D,yt)!=0)if(D=yt,s.unit=="rectangle"){for(var Tt=[],Dt=e.options.tabSize,Pt=K(Mt(p,l.line).text,l.ch,Dt),Ut=K(Mt(p,yt.line).text,yt.ch,Dt),ge=Math.min(Pt,Ut),ze=Math.max(Pt,Ut),_e=Math.min(l.line,yt.line),wn=Math.min(e.lastLine(),Math.max(l.line,yt.line));_e<=wn;_e++){var ln=Mt(p,_e).text,Ae=nt(ln,ge,Dt);ge==ze?Tt.push(new se(I(_e,Ae),I(_e,Ae))):ln.length>Ae&&Tt.push(new se(I(_e,Ae),I(_e,nt(ln,ze,Dt))))}Tt.length||Tt.push(new se(l,l)),Ve(p,Wn(e,x.ranges.slice(0,y).concat(Tt),y),{origin:"*mouse",scroll:!1}),e.scrollIntoView(yt)}else{var an=m,Be=vp(e,yt,s.unit),Oe=an.anchor,Me;X(Be.anchor,Oe)>0?(Me=Be.head,Oe=Pe(an.from(),Be.anchor)):(Me=Be.anchor,Oe=ee(an.to(),Be.head));var Ce=x.ranges.slice(0);Ce[y]=Jw(e,new se(Ft(p,Oe),Me)),Ve(p,Wn(e,Ce,y),F)}}var q=c.wrapper.getBoundingClientRect(),Y=0;function it(yt){var Tt=++Y,Dt=Ci(e,yt,!0,s.unit=="rectangle");if(!!Dt)if(X(Dt,D)!=0){e.curOp.focus=wt(Gt(e)),B(Dt);var Pt=Fl(c,p);(Dt.line>=Pt.to||Dt.line<Pt.from)&&setTimeout(De(e,function(){Y==Tt&&it(yt)}),150)}else{var Ut=yt.clientY<q.top?-20:yt.clientY>q.bottom?20:0;Ut&&setTimeout(De(e,function(){Y==Tt&&(c.scroller.scrollTop+=Ut,it(yt))}),50)}}function ft(yt){e.state.selectingText=!1,Y=1/0,yt&&(Ge(yt),c.input.focus()),je(c.wrapper.ownerDocument,"mousemove",mt),je(c.wrapper.ownerDocument,"mouseup",St),p.history.lastSelOrigin=null}var mt=De(e,function(yt){yt.buttons===0||!is(yt)?ft(yt):it(yt)}),St=De(e,ft);e.state.selectingText=St,bt(c.wrapper.ownerDocument,"mousemove",mt),bt(c.wrapper.ownerDocument,"mouseup",St)}function Jw(e,i){var l=i.anchor,s=i.head,c=Mt(e.doc,l.line);if(X(l,s)==0&&l.sticky==s.sticky)return i;var p=ye(c);if(!p)return i;var m=He(p,l.ch,l.sticky),y=p[m];if(y.from!=l.ch&&y.to!=l.ch)return i;var x=m+(y.from==l.ch==(y.level!=1)?0:1);if(x==0||x==p.length)return i;var _;if(s.line!=l.line)_=(s.line-l.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var N=He(p,s.ch,s.sticky),D=N-m||(s.ch-l.ch)*(y.level==1?-1:1);N==x-1||N==x?_=D<0:_=D>0}var B=p[x+(_?-1:0)],q=_==(B.level==1),Y=q?B.from:B.to,it=q?"after":"before";return l.ch==Y&&l.sticky==it?i:new se(new I(l.line,Y,it),s)}function mp(e,i,l,s){var c,p;if(i.touches)c=i.touches[0].clientX,p=i.touches[0].clientY;else try{c=i.clientX,p=i.clientY}catch{return!1}if(c>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;s&&Ge(i);var m=e.display,y=m.lineDiv.getBoundingClientRect();if(p>y.bottom||!Ze(e,l))return rs(i);p-=y.top-m.viewOffset;for(var x=0;x<e.display.gutterSpecs.length;++x){var _=m.gutters.childNodes[x];if(_&&_.getBoundingClientRect().right>=c){var N=er(e.doc,p),D=e.display.gutterSpecs[x];return me(e,l,e,N,D.className,i),rs(i)}}}function du(e,i){return mp(e,i,"gutterClick",!0)}function yp(e,i){Sr(e.display,i)||Qw(e,i)||Se(e,i,"contextmenu")||gt||e.display.input.onContextMenu(i)}function Qw(e,i){return Ze(e,"gutterContextMenu")?mp(e,i,"gutterContextMenu",!1):!1}function bp(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hs(e)}var xo={toString:function(){return"CodeMirror.Init"}},wp={},Jl={};function tx(e){var i=e.optionHandlers;function l(s,c,p,m){e.defaults[s]=c,p&&(i[s]=m?function(y,x,_){_!=xo&&p(y,x,_)}:p)}e.defineOption=l,e.Init=xo,l("value","",function(s,c){return s.setValue(c)},!0),l("mode",null,function(s,c){s.doc.modeOption=c,ru(s)},!0),l("indentUnit",2,ru,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(s){ws(s),hs(s),on(s)},!0),l("lineSeparator",null,function(s,c){if(s.doc.lineSep=c,!!c){var p=[],m=s.doc.first;s.doc.iter(function(x){for(var _=0;;){var N=x.text.indexOf(c,_);if(N==-1)break;_=N+c.length,p.push(I(m,N))}m++});for(var y=p.length-1;y>=0;y--)mo(s.doc,c,p[y],I(p[y].line,p[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,p){s.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),p!=xo&&s.refresh()}),l("specialCharPlaceholder",Ab,function(s){return s.refresh()},!0),l("electricChars",!0),l("inputStyle",O?"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",!rt),l("wholeLineUpdateBefore",!0),l("theme","default",function(s){bp(s),bs(s)},!0),l("keyMap","default",function(s,c,p){var m=Yl(c),y=p!=xo&&Yl(p);y&&y.detach&&y.detach(s,m),m.attach&&m.attach(s,y||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,nx,!0),l("gutters",[],function(s,c){s.display.gutterSpecs=eu(c,s.options.lineNumbers),bs(s)},!0),l("fixedGutter",!0,function(s,c){s.display.gutters.style.left=c?Wc(s.display)+"px":"0",s.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(s){return ho(s)},!0),l("scrollbarStyle","native",function(s){_d(s),ho(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=eu(s.options.gutters,c),bs(s)},!0),l("firstLineNumber",1,bs,!0),l("lineNumberFormatter",function(s){return s},bs,!0),l("showCursorWhenSelecting",!1,ds,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(s,c){c=="nocursor"&&(uo(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,ex),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,ds,!0),l("singleCursorHeightPerLine",!0,ds,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,ws,!0),l("addModeClass",!1,ws,!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,ws,!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 ex(e,i,l){var s=l&&l!=xo;if(!i!=!s){var c=e.display.dragFunctions,p=i?bt:je;p(e.display.scroller,"dragstart",c.start),p(e.display.scroller,"dragenter",c.enter),p(e.display.scroller,"dragover",c.over),p(e.display.scroller,"dragleave",c.leave),p(e.display.scroller,"drop",c.drop)}}function nx(e){e.options.lineWrapping?(At(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ut(e.display.wrapper,"CodeMirror-wrap"),Oc(e)),Uc(e),on(e),hs(e),setTimeout(function(){return ho(e)},100)}function be(e,i){var l=this;if(!(this instanceof be))return new be(e,i);this.options=i=i?tt(i):{},tt(wp,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 be.inputStyles[i.inputStyle](this),p=this.display=new gw(e,s,c,i);p.wrapper.CodeMirror=this,bp(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_d(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&&!O&&p.input.focus(),d&&g<11&&setTimeout(function(){return l.display.input.reset(!0)},20),rx(this),$w(),Ai(this),this.curOp.forceUpdate=!0,Pd(this,s),i.autofocus&&!O||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&Kc(l)},20):uo(this);for(var m in Jl)Jl.hasOwnProperty(m)&&Jl[m](this,i[m],xo);Cd(this),i.finishInit&&i.finishInit(this);for(var y=0;y<pu.length;++y)pu[y](this);Mi(this),v&&i.lineWrapping&&getComputedStyle(p.lineDiv).textRendering=="optimizelegibility"&&(p.lineDiv.style.textRendering="auto")}be.defaults=wp,be.optionHandlers=Jl;function rx(e){var i=e.display;bt(i.scroller,"mousedown",De(e,gp)),d&&g<11?bt(i.scroller,"dblclick",De(e,function(x){if(!Se(e,x)){var _=Ci(e,x);if(!(!_||du(e,x)||Sr(e.display,x))){Ge(x);var N=e.findWordAt(_);jl(e.doc,N.anchor,N.head)}}})):bt(i.scroller,"dblclick",function(x){return Se(e,x)||Ge(x)}),bt(i.scroller,"contextmenu",function(x){return yp(e,x)}),bt(i.input.getField(),"contextmenu",function(x){i.scroller.contains(x.target)||yp(e,x)});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 p(x){if(x.touches.length!=1)return!1;var _=x.touches[0];return _.radiusX<=1&&_.radiusY<=1}function m(x,_){if(_.left==null)return!0;var N=_.left-x.left,D=_.top-x.top;return N*N+D*D>20*20}bt(i.scroller,"touchstart",function(x){if(!Se(e,x)&&!p(x)&&!du(e,x)){i.input.ensurePolled(),clearTimeout(l);var _=+new Date;i.activeTouch={start:_,moved:!1,prev:_-s.end<=300?s:null},x.touches.length==1&&(i.activeTouch.left=x.touches[0].pageX,i.activeTouch.top=x.touches[0].pageY)}}),bt(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),bt(i.scroller,"touchend",function(x){var _=i.activeTouch;if(_&&!Sr(i,x)&&_.left!=null&&!_.moved&&new Date-_.start<300){var N=e.coordsChar(i.activeTouch,"page"),D;!_.prev||m(_,_.prev)?D=new se(N,N):!_.prev.prev||m(_,_.prev.prev)?D=e.findWordAt(N):D=new se(I(N.line,0),Ft(e.doc,I(N.line+1,0))),e.setSelection(D.anchor,D.head),e.focus(),Ge(x)}c()}),bt(i.scroller,"touchcancel",c),bt(i.scroller,"scroll",function(){i.scroller.clientHeight&&(gs(e,i.scroller.scrollTop),Li(e,i.scroller.scrollLeft,!0),me(e,"scroll",e))}),bt(i.scroller,"mousewheel",function(x){return Ed(e,x)}),bt(i.scroller,"DOMMouseScroll",function(x){return Ed(e,x)}),bt(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(x){Se(e,x)||mr(x)},over:function(x){Se(e,x)||(Ow(e,x),mr(x))},start:function(x){return Pw(e,x)},drop:De(e,Nw),leave:function(x){Se(e,x)||np(e)}};var y=i.input.getField();bt(y,"keyup",function(x){return dp.call(e,x)}),bt(y,"keydown",De(e,hp)),bt(y,"keypress",De(e,pp)),bt(y,"focus",function(x){return Kc(e,x)}),bt(y,"blur",function(x){return uo(e,x)})}var pu=[];be.defineInitHook=function(e){return pu.push(e)};function Os(e,i,l,s){var c=e.doc,p;l==null&&(l="add"),l=="smart"&&(c.mode.indent?p=ls(e,i).state:l="prev");var m=e.options.tabSize,y=Mt(c,i),x=K(y.text,null,m);y.stateAfter&&(y.stateAfter=null);var _=y.text.match(/^\s*/)[0],N;if(!s&&!/\S/.test(y.text))N=0,l="not";else if(l=="smart"&&(N=c.mode.indent(p,y.text.slice(_.length),y.text),N==Lt||N>150)){if(!s)return;l="prev"}l=="prev"?i>c.first?N=K(Mt(c,i-1).text,null,m):N=0:l=="add"?N=x+e.options.indentUnit:l=="subtract"?N=x-e.options.indentUnit:typeof l=="number"&&(N=x+l),N=Math.max(0,N);var D="",B=0;if(e.options.indentWithTabs)for(var q=Math.floor(N/m);q;--q)B+=m,D+=" ";if(B<N&&(D+=pt(N-B)),D!=_)return mo(c,D,I(i,0),I(i,_.length),"+input"),y.stateAfter=null,!0;for(var Y=0;Y<c.sel.ranges.length;Y++){var it=c.sel.ranges[Y];if(it.head.line==i&&it.head.ch<_.length){var ft=I(i,_.length);lu(c,Y,new se(ft,ft));break}}}var Un=null;function Ql(e){Un=e}function gu(e,i,l,s,c){var p=e.doc;e.display.shift=!1,s||(s=p.sel);var m=+new Date-200,y=c=="paste"||e.state.pasteIncoming>m,x=os(i),_=null;if(y&&s.ranges.length>1)if(Un&&Un.text.join(`
|
|
23
|
-
`)==i){if(s.ranges.length%Un.text.length==0){_=[];for(var N=0;N<Un.text.length;N++)_.push(p.splitLines(Un.text[N]))}}else x.length==s.ranges.length&&e.options.pasteLinesPerSelection&&(_=vt(x,function(mt){return[mt]}));for(var D=e.curOp.updateInput,B=s.ranges.length-1;B>=0;B--){var q=s.ranges[B],Y=q.from(),it=q.to();q.empty()&&(l&&l>0?Y=I(Y.line,Y.ch-l):e.state.overwrite&&!y?it=I(it.line,Math.min(Mt(p,it.line).text.length,it.ch+lt(x).length)):y&&Un&&Un.lineWise&&Un.text.join(`
|
|
24
|
-
`)==x.join(`
|
|
25
|
-
`)&&(Y=it=I(Y.line,0)));var ft={from:Y,to:it,text:_?_[B%_.length]:x,origin:c||(y?"paste":e.state.cutIncoming>m?"cut":"+input")};vo(e.doc,ft),$e(e,"inputRead",e,ft)}i&&!y&&_p(e,i),fo(e),e.curOp.updateInput<2&&(e.curOp.updateInput=D),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function xp(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 gu(i,l,0,null,"paste")}),!0}function _p(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 p=e.getModeAt(c.head),m=!1;if(p.electricChars){for(var y=0;y<p.electricChars.length;y++)if(i.indexOf(p.electricChars.charAt(y))>-1){m=Os(e,c.head.line,"smart");break}}else p.electricInput&&p.electricInput.test(Mt(e.doc,c.head.line).text.slice(0,c.head.ch))&&(m=Os(e,c.head.line,"smart"));m&&$e(e,"electricInput",e,c.head.line)}}}function Sp(e){for(var i=[],l=[],s=0;s<e.doc.sel.ranges.length;s++){var c=e.doc.sel.ranges[s].head.line,p={anchor:I(c,0),head:I(c+1,0)};l.push(p),i.push(e.getRange(p.anchor,p.head))}return{text:i,ranges:l}}function vu(e,i,l,s){e.setAttribute("autocorrect",l?"on":"off"),e.setAttribute("autocapitalize",s?"on":"off"),e.setAttribute("spellcheck",!!i)}function kp(){var e=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?e.style.width="1000px":e.setAttribute("wrap","off"),L&&(e.style.border="1px solid black"),i}function ix(e){var i=e.optionHandlers,l=e.helpers={};e.prototype={constructor:e,focus:function(){ie(this).focus(),this.display.input.focus()},setOption:function(s,c){var p=this.options,m=p[s];p[s]==c&&s!="mode"||(p[s]=c,i.hasOwnProperty(s)&&De(this,i[s])(this,c,m),me(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"](Yl(s))},removeKeyMap:function(s){for(var c=this.state.keyMaps,p=0;p<c.length;++p)if(c[p]==s||c[p].name==s)return c.splice(p,1),!0},addOverlay:Qe(function(s,c){var p=s.token?s:e.getMode(this.options,s);if(p.startState)throw new Error("Overlays may not be stateful.");xt(this.state.overlays,{mode:p,modeSpec:s,opaque:c&&c.opaque,priority:c&&c.priority||0},function(m){return m.priority}),this.state.modeGen++,on(this)}),removeOverlay:Qe(function(s){for(var c=this.state.overlays,p=0;p<c.length;++p){var m=c[p].modeSpec;if(m==s||typeof s=="string"&&m.name==s){c.splice(p,1),this.state.modeGen++,on(this);return}}}),indentLine:Qe(function(s,c,p){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),C(this.doc,s)&&Os(this,s,c,p)}),indentSelection:Qe(function(s){for(var c=this.doc.sel.ranges,p=-1,m=0;m<c.length;m++){var y=c[m];if(y.empty())y.head.line>p&&(Os(this,y.head.line,s,!0),p=y.head.line,m==this.doc.sel.primIndex&&fo(this));else{var x=y.from(),_=y.to(),N=Math.max(p,x.line);p=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var D=N;D<p;++D)Os(this,D,s);var B=this.doc.sel.ranges;x.ch==0&&c.length==B.length&&B[m].from().ch>0&&lu(this.doc,m,new se(x,B[m].to()),P)}}}),getTokenAt:function(s,c){return $h(this,s,c)},getLineTokens:function(s,c){return $h(this,I(s),c,!0)},getTokenTypeAt:function(s){s=Ft(this.doc,s);var c=Nh(this,Mt(this.doc,s.line)),p=0,m=(c.length-1)/2,y=s.ch,x;if(y==0)x=c[2];else for(;;){var _=p+m>>1;if((_?c[_*2-1]:0)>=y)m=_;else if(c[_*2+1]<y)p=_+1;else{x=c[_*2+2];break}}var N=x?x.indexOf("overlay "):-1;return N<0?x:N==0?null:x.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 p=[];if(!l.hasOwnProperty(c))return p;var m=l[c],y=this.getModeAt(s);if(typeof y[c]=="string")m[y[c]]&&p.push(m[y[c]]);else if(y[c])for(var x=0;x<y[c].length;x++){var _=m[y[c][x]];_&&p.push(_)}else y.helperType&&m[y.helperType]?p.push(m[y.helperType]):m[y.name]&&p.push(m[y.name]);for(var N=0;N<m._global.length;N++){var D=m._global[N];D.pred(y,this)&&Ct(p,D.val)==-1&&p.push(D.val)}return p},getStateAfter:function(s,c){var p=this.doc;return s=En(p,s??p.first+p.size-1),ls(this,s+1,c).state},cursorCoords:function(s,c){var p,m=this.doc.sel.primary();return s==null?p=m.head:typeof s=="object"?p=Ft(this.doc,s):p=s?m.from():m.to(),Bn(this,p,c||"page")},charCoords:function(s,c){return Dl(this,Ft(this.doc,s),c||"page")},coordsChar:function(s,c){return s=cd(this,s,c||"page"),qc(this,s.left,s.top)},lineAtHeight:function(s,c){return s=cd(this,{top:s,left:0},c||"page").top,er(this.doc,s+this.display.viewOffset)},heightAtLine:function(s,c,p){var m=!1,y;if(typeof s=="number"){var x=this.doc.first+this.doc.size-1;s<this.doc.first?s=this.doc.first:s>x&&(s=x,m=!0),y=Mt(this.doc,s)}else y=s;return $l(this,y,{top:0,left:0},c||"page",p||m).top+(m?this.doc.height-_r(y):0)},defaultTextHeight:function(){return ao(this.display)},defaultCharWidth:function(){return co(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(s,c,p,m,y){var x=this.display;s=Bn(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),x.sizer.appendChild(c),m=="over")_=s.top;else if(m=="above"||m=="near"){var D=Math.max(x.wrapper.clientHeight,this.doc.height),B=Math.max(x.sizer.clientWidth,x.lineSpace.clientWidth);(m=="above"||s.bottom+c.offsetHeight>D)&&s.top>c.offsetHeight?_=s.top-c.offsetHeight:s.bottom+c.offsetHeight<=D&&(_=s.bottom),N+c.offsetWidth>B&&(N=B-c.offsetWidth)}c.style.top=_+"px",c.style.left=c.style.right="",y=="right"?(N=x.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(y=="left"?N=0:y=="middle"&&(N=(x.sizer.clientWidth-c.offsetWidth)/2),c.style.left=N+"px"),p&&ew(this,{left:N,top:_,right:N+c.offsetWidth,bottom:_+c.offsetHeight})},triggerOnKeyDown:Qe(hp),triggerOnKeyPress:Qe(pp),triggerOnKeyUp:dp,triggerOnMouseDown:Qe(gp),execCommand:function(s){if(As.hasOwnProperty(s))return As[s].call(null,this)},triggerElectric:Qe(function(s){_p(this,s)}),findPosH:function(s,c,p,m){var y=1;c<0&&(y=-1,c=-c);for(var x=Ft(this.doc,s),_=0;_<c&&(x=mu(this.doc,x,y,p,m),!x.hitSide);++_);return x},moveH:Qe(function(s,c){var p=this;this.extendSelectionsBy(function(m){return p.display.shift||p.doc.extend||m.empty()?mu(p.doc,m.head,s,c,p.options.rtlMoveVisually):s<0?m.from():m.to()},Z)}),deleteH:Qe(function(s,c){var p=this.doc.sel,m=this.doc;p.somethingSelected()?m.replaceSelection("",null,"+delete"):wo(this,function(y){var x=mu(m,y.head,s,c,!1);return s<0?{from:x,to:y.head}:{from:y.head,to:x}})}),findPosV:function(s,c,p,m){var y=1,x=m;c<0&&(y=-1,c=-c);for(var _=Ft(this.doc,s),N=0;N<c;++N){var D=Bn(this,_,"div");if(x==null?x=D.left:D.left=x,_=Cp(this,D,y,p),_.hitSide)break}return _},moveV:Qe(function(s,c){var p=this,m=this.doc,y=[],x=!this.display.shift&&!m.extend&&m.sel.somethingSelected();if(m.extendSelectionsBy(function(N){if(x)return s<0?N.from():N.to();var D=Bn(p,N.head,"div");N.goalColumn!=null&&(D.left=N.goalColumn),y.push(D.left);var B=Cp(p,D,s,c);return c=="page"&&N==m.sel.primary()&&Yc(p,Dl(p,B,"div").top-D.top),B},Z),y.length)for(var _=0;_<m.sel.ranges.length;_++)m.sel.ranges[_].goalColumn=y[_]}),findWordAt:function(s){var c=this.doc,p=Mt(c,s.line).text,m=s.ch,y=s.ch;if(p){var x=this.getHelper(s,"wordChars");(s.sticky=="before"||y==p.length)&&m?--m:++y;for(var _=p.charAt(m),N=Rt(_,x)?function(D){return Rt(D,x)}:/\s/.test(_)?function(D){return/\s/.test(D)}:function(D){return!/\s/.test(D)&&!Rt(D)};m>0&&N(p.charAt(m-1));)--m;for(;y<p.length&&N(p.charAt(y));)++y}return new se(I(s.line,m),I(s.line,y))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?At(this.display.cursorDiv,"CodeMirror-overwrite"):ut(this.display.cursorDiv,"CodeMirror-overwrite"),me(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:Qe(function(s,c){ps(this,s,c)}),getScrollInfo:function(){var s=this.display.scroller;return{left:s.scrollLeft,top:s.scrollTop,height:s.scrollHeight-rr(this)-this.display.barHeight,width:s.scrollWidth-rr(this)-this.display.barWidth,clientHeight:Rc(this),clientWidth:Si(this)}},scrollIntoView:Qe(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:I(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?nw(this,s):yd(this,s.from,s.to,s.margin)}),setSize:Qe(function(s,c){var p=this,m=function(x){return typeof x=="number"||/^\d+$/.test(String(x))?x+"px":x};s!=null&&(this.display.wrapper.style.width=m(s)),c!=null&&(this.display.wrapper.style.height=m(c)),this.options.lineWrapping&&sd(this);var y=this.display.viewFrom;this.doc.iter(y,this.display.viewTo,function(x){if(x.widgets){for(var _=0;_<x.widgets.length;_++)if(x.widgets[_].noHScroll){Vr(p,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,me(this,"refresh",this)}),operation:function(s){return bn(this,s)},startOperation:function(){return Ai(this)},endOperation:function(){return Mi(this)},refresh:Qe(function(){var s=this.display.cachedTextHeight;on(this),this.curOp.forceUpdate=!0,hs(this),ps(this,this.doc.scrollLeft,this.doc.scrollTop),Qc(this.display),(s==null||Math.abs(s-ao(this.display))>.5||this.options.lineWrapping)&&Uc(this),me(this,"refresh",this)}),swapDoc:Qe(function(s){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),Pd(this,s),hs(this),this.display.input.reset(),ps(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,$e(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,p){l.hasOwnProperty(s)||(l[s]=e[s]={_global:[]}),l[s][c]=p},e.registerGlobalHelper=function(s,c,p,m){e.registerHelper(s,c,m),l[s]._global.push({pred:p,val:m})}}function mu(e,i,l,s,c){var p=i,m=l,y=Mt(e,i.line),x=c&&e.direction=="rtl"?-l:l;function _(){var St=i.line+x;return St<e.first||St>=e.first+e.size?!1:(i=new I(St,i.ch,i.sticky),y=Mt(e,St))}function N(St){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 I(i.line,Math.max(0,Math.min(y.text.length,i.ch+l*(Dt?2:1))),-l)}}else c?yt=Fw(e.cm,y,i,l):yt=cu(y,i,l);if(yt==null)if(!St&&_())i=uu(c,e.cm,y,i.line,x);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 D=null,B=s=="group",q=e.cm&&e.cm.getHelper(i,"wordChars"),Y=!0;!(l<0&&!N(!Y));Y=!1){var it=y.text.charAt(i.ch)||`
|
|
26
|
-
`,ft=Rt(it,q)?"w":B&&it==`
|
|
27
|
-
`?"n":!B||/\s/.test(it)?null:"p";if(B&&!Y&&!ft&&(ft="s"),D&&D!=ft){l<0&&(l=1,N(),i.sticky="after");break}if(ft&&(D=ft),l>0&&!N(!Y))break}var mt=Vl(e,i,p,m,!0);return It(p,mt)&&(mt.hitSide=!0),mt}function Cp(e,i,l,s){var c=e.doc,p=i.left,m;if(s=="page"){var y=Math.min(e.display.wrapper.clientHeight,ie(e).innerHeight||c(e).documentElement.clientHeight),x=Math.max(y-.5*ao(e.display),3);m=(l>0?i.bottom:i.top)+l*x}else s=="line"&&(m=l>0?i.bottom+3:i.top-3);for(var _;_=qc(e,p,m),!!_.outside;){if(l<0?m<=0:m>=c.height){_.hitSide=!0;break}m+=l*5}return _}var fe=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};fe.prototype.init=function(e){var i=this,l=this,s=l.cm,c=l.div=e.lineDiv;c.contentEditable=!0,vu(c,s.options.spellcheck,s.options.autocorrect,s.options.autocapitalize);function p(y){for(var x=y.target;x;x=x.parentNode){if(x==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(x.className))break}return!1}bt(c,"paste",function(y){!p(y)||Se(s,y)||xp(y,s)||g<=11&&setTimeout(De(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 m(y){if(!(!p(y)||Se(s,y))){if(s.somethingSelected())Ql({lineWise:!1,text:s.getSelections()}),y.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var x=Sp(s);Ql({lineWise:!0,text:x.text}),y.type=="cut"&&s.operation(function(){s.setSelections(x.ranges,0,P),s.replaceSelection("",null,"cut")})}else return;if(y.clipboardData){y.clipboardData.clearData();var _=Un.text.join(`
|
|
28
|
-
`);if(y.clipboardData.setData("Text",_),y.clipboardData.getData("Text")==_){y.preventDefault();return}}var N=kp(),D=N.firstChild;vu(D),s.display.lineSpace.insertBefore(N,s.display.lineSpace.firstChild),D.value=Un.text.join(`
|
|
29
|
-
`);var B=wt(c.ownerDocument);Bt(D),setTimeout(function(){s.display.lineSpace.removeChild(N),B.focus(),B==c&&l.showPrimarySelection()},50)}}bt(c,"copy",m),bt(c,"cut",m)},fe.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},fe.prototype.prepareSelection=function(){var e=gd(this.cm,!1);return e.focus=wt(this.div.ownerDocument)==this.div,e},fe.prototype.showSelection=function(e,i){!e||!this.cm.display.view.length||((e.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(e))},fe.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},fe.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 p=ta(i,e.anchorNode,e.anchorOffset),m=ta(i,e.focusNode,e.focusOffset);if(!(p&&!p.bad&&m&&!m.bad&&X(Pe(p,m),s)==0&&X(ee(p,m),c)==0)){var y=i.display.view,x=s.line>=i.display.viewFrom&&Tp(i,s)||{node:y[0].measure.map[2],offset:0},_=c.line<i.display.viewTo&&Tp(i,c);if(!_){var N=y[y.length-1].measure,D=N.maps?N.maps[N.maps.length-1]:N.map;_={node:D[D.length-1],offset:D[D.length-2]-D[D.length-3]}}if(!x||!_){e.removeAllRanges();return}var B=e.rangeCount&&e.getRangeAt(0),q;try{q=W(x.node,x.offset,_.offset,_.node)}catch{}q&&(!a&&i.state.focused?(e.collapse(x.node,x.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()}},fe.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)},fe.prototype.showMultipleSelections=function(e){z(this.cm.display.cursorDiv,e.cursors),z(this.cm.display.selectionDiv,e.selection)},fe.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},fe.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var i=e.getRangeAt(0).commonAncestorContainer;return et(this.div,i)},fe.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||wt(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},fe.prototype.blur=function(){this.div.blur()},fe.prototype.getField=function(){return this.div},fe.prototype.supportsTouch=function(){return!0},fe.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)},fe.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},fe.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),i=this.cm;if($&&w&&this.cm.display.gutterSpecs.length&&ox(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=ta(i,e.anchorNode,e.anchorOffset),s=ta(i,e.focusNode,e.focusOffset);l&&s&&bn(i,function(){Ve(i.doc,Xr(l,s),P),(l.bad||s.bad)&&(i.curOp.selectionChanged=!0)})}}},fe.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=I(s.line-1,Mt(e.doc,s.line-1).length)),c.ch==Mt(e.doc,c.line).text.length&&c.line<e.lastLine()&&(c=I(c.line+1,0)),s.line<i.viewFrom||c.line>i.viewTo-1)return!1;var p,m,y;s.line==i.viewFrom||(p=Ti(e,s.line))==0?(m=oe(i.view[0].line),y=i.view[0].node):(m=oe(i.view[p].line),y=i.view[p-1].node.nextSibling);var x=Ti(e,c.line),_,N;if(x==i.view.length-1?(_=i.viewTo-1,N=i.lineDiv.lastChild):(_=oe(i.view[x+1].line)-1,N=i.view[x+1].node.previousSibling),!y)return!1;for(var D=e.doc.splitLines(sx(e,y,N,m,_)),B=wr(e.doc,I(m,0),I(_,Mt(e.doc,_).text.length));D.length>1&&B.length>1;)if(lt(D)==lt(B))D.pop(),B.pop(),_--;else if(D[0]==B[0])D.shift(),B.shift(),m++;else break;for(var q=0,Y=0,it=D[0],ft=B[0],mt=Math.min(it.length,ft.length);q<mt&&it.charCodeAt(q)==ft.charCodeAt(q);)++q;for(var St=lt(D),yt=lt(B),Tt=Math.min(St.length-(D.length==1?q:0),yt.length-(B.length==1?q:0));Y<Tt&&St.charCodeAt(St.length-Y-1)==yt.charCodeAt(yt.length-Y-1);)++Y;if(D.length==1&&B.length==1&&m==s.line)for(;q&&q>s.ch&&St.charCodeAt(St.length-Y-1)==yt.charCodeAt(yt.length-Y-1);)q--,Y++;D[D.length-1]=St.slice(0,St.length-Y).replace(/^\u200b+/,""),D[0]=D[0].slice(q).replace(/\u200b+$/,"");var Dt=I(m,q),Pt=I(_,B.length?lt(B).length-Y:0);if(D.length>1||D[0]||X(Dt,Pt))return mo(e.doc,D,Dt,Pt,"+input"),!0},fe.prototype.ensurePolled=function(){this.forceCompositionEnd()},fe.prototype.reset=function(){this.forceCompositionEnd()},fe.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},fe.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))},fe.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&bn(this.cm,function(){return on(e.cm)})},fe.prototype.setUneditable=function(e){e.contentEditable="false"},fe.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||De(this.cm,gu)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},fe.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},fe.prototype.onContextMenu=function(){},fe.prototype.resetPosition=function(){},fe.prototype.needsContentAttribute=!0;function Tp(e,i){var l=zc(e,i.line);if(!l||l.hidden)return null;var s=Mt(e.doc,i.line),c=ed(l,s,i.line),p=ye(s,e.doc.direction),m="left";if(p){var y=He(p,i.ch);m=y%2?"right":"left"}var x=id(c.map,i.ch,m);return x.offset=x.collapse=="right"?x.end:x.start,x}function ox(e){for(var i=e;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function _o(e,i){return i&&(e.bad=!0),e}function sx(e,i,l,s,c){var p="",m=!1,y=e.doc.lineSeparator(),x=!1;function _(q){return function(Y){return Y.id==q}}function N(){m&&(p+=y,x&&(p+=y),m=x=!1)}function D(q){q&&(N(),p+=q)}function B(q){if(q.nodeType==1){var Y=q.getAttribute("cm-text");if(Y){D(Y);return}var it=q.getAttribute("cm-marker"),ft;if(it){var mt=e.findMarks(I(s,0),I(c+1,0),_(+it));mt.length&&(ft=mt[0].find(0))&&D(wr(e.doc,ft.from,ft.to).join(y));return}if(q.getAttribute("contenteditable")=="false")return;var St=/^(pre|div|p|li|table|br)$/i.test(q.nodeName);if(!/^br$/i.test(q.nodeName)&&q.textContent.length==0)return;St&&N();for(var yt=0;yt<q.childNodes.length;yt++)B(q.childNodes[yt]);/^(pre|p)$/i.test(q.nodeName)&&(x=!0),St&&(m=!0)}else q.nodeType==3&&D(q.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;B(i),i!=l;)i=i.nextSibling,x=!1;return p}function ta(e,i,l){var s;if(i==e.display.lineDiv){if(s=e.display.lineDiv.childNodes[l],!s)return _o(e.clipPos(I(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 p=e.display.view[c];if(p.node==s)return lx(p,i,l)}}function lx(e,i,l){var s=e.text.firstChild,c=!1;if(!i||!et(s,i))return _o(I(oe(e.line),0),!0);if(i==s&&(c=!0,i=s.childNodes[l],l=0,!i)){var p=e.rest?lt(e.rest):e.line;return _o(I(oe(p),p.text.length),c)}var m=i.nodeType==3?i:null,y=i;for(!m&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(m=i.firstChild,l&&(l=m.nodeValue.length));y.parentNode!=s;)y=y.parentNode;var x=e.measure,_=x.maps;function N(ft,mt,St){for(var yt=-1;yt<(_?_.length:0);yt++)for(var Tt=yt<0?x.map:_[yt],Dt=0;Dt<Tt.length;Dt+=3){var Pt=Tt[Dt+2];if(Pt==ft||Pt==mt){var Ut=oe(yt<0?e.line:e.rest[yt]),ge=Tt[Dt]+St;return(St<0||Pt!=ft)&&(ge=Tt[Dt+(St?1:0)]),I(Ut,ge)}}}var D=N(m,y,l);if(D)return _o(D,c);for(var B=y.nextSibling,q=m?m.nodeValue.length-l:0;B;B=B.nextSibling){if(D=N(B,B.firstChild,0),D)return _o(I(D.line,D.ch-q),c);q+=B.textContent.length}for(var Y=y.previousSibling,it=l;Y;Y=Y.previousSibling){if(D=N(Y,Y.firstChild,-1),D)return _o(I(D.line,D.ch+it),c);it+=Y.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(){d&&g>=9&&i.hasSelection&&(i.hasSelection=null),l.poll()}),bt(c,"paste",function(m){Se(s,m)||xp(m,s)||(s.state.pasteIncoming=+new Date,l.fastPoll())});function p(m){if(!Se(s,m)){if(s.somethingSelected())Ql({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var y=Sp(s);Ql({lineWise:!0,text:y.text}),m.type=="cut"?s.setSelections(y.ranges,null,P):(l.prevInput="",c.value=y.text.join(`
|
|
30
|
-
`),Bt(c))}else return;m.type=="cut"&&(s.state.cutIncoming=+new Date)}}bt(c,"cut",p),bt(c,"copy",p),bt(e.scroller,"paste",function(m){if(!(Sr(e,m)||Se(s,m))){if(!c.dispatchEvent){s.state.pasteIncoming=+new Date,l.focus();return}var y=new Event("paste");y.clipboardData=m.clipboardData,c.dispatchEvent(y)}}),bt(e.lineSpace,"selectstart",function(m){Sr(e,m)||Ge(m)}),bt(c,"compositionstart",function(){var m=s.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:m,range:s.markText(m,s.getCursor("to"),{className:"CodeMirror-composing"})}}),bt(c,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},Te.prototype.createField=function(e){this.wrapper=kp(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;vu(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},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=gd(e);if(e.options.moveInputWithCursor){var c=Bn(e,l.sel.primary().head,"div"),p=i.wrapper.getBoundingClientRect(),m=i.lineDiv.getBoundingClientRect();s.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,c.top+m.top-p.top)),s.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,c.left+m.left-p.left))}return s},Te.prototype.showSelection=function(e){var i=this.cm,l=i.display;z(l.cursorDiv,e.cursors),z(l.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},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),d&&g>=9&&(this.hasSelection=l)}else e||(this.prevInput=this.textarea.value="",d&&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"&&(!O||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||Br(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(d&&g>=9&&this.hasSelection===c||G&&/[\uf700-\uf7ff]/.test(c))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var p=c.charCodeAt(0);if(p==8203&&!s&&(s=""),p==8666)return this.reset(),this.cm.execCommand("undo")}for(var m=0,y=Math.min(s.length,c.length);m<y&&s.charCodeAt(m)==c.charCodeAt(m);)++m;return bn(i,function(){gu(i,c.slice(m),s.length-m,null,e.composing?"*compose":null),c.length>1e3||c.indexOf(`
|
|
31
|
-
`)>-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(){d&&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 p=Ci(l,e),m=s.scroller.scrollTop;if(!p||M)return;var y=l.options.resetSelectionOnContextMenu;y&&l.doc.sel.contains(p)==-1&&De(l,Ve)(l.doc,Xr(p),P);var x=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;
|
|
32
|
-
top: `+(e.clientY-N.top-5)+"px; left: "+(e.clientX-N.left-5)+`px;
|
|
33
|
-
z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
34
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var D;v&&(D=c.ownerDocument.defaultView.scrollY),s.input.focus(),v&&c.ownerDocument.defaultView.scrollTo(null,D),s.input.reset(),l.somethingSelected()||(c.value=i.prevInput=" "),i.contextMenuPending=q,s.selForContextMenu=l.doc.sel,clearTimeout(s.detectingSelectAll);function B(){if(c.selectionStart!=null){var it=l.somethingSelected(),ft=""+(it?c.value:"");c.value="⇚",c.value=ft,i.prevInput=it?"":"",c.selectionStart=1,c.selectionEnd=ft.length,s.selForContextMenu=l.doc.sel}}function q(){if(i.contextMenuPending==q&&(i.contextMenuPending=!1,i.wrapper.style.cssText=_,c.style.cssText=x,d&&g<9&&s.scrollbars.setScrollTop(s.scroller.scrollTop=m),c.selectionStart!=null)){(!d||d&&g<9)&&B();var it=0,ft=function(){s.selForContextMenu==l.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput==""?De(l,jd)(l):it++<10?s.detectingSelectAll=setTimeout(ft,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(ft,200)}}if(d&&g>=9&&B(),gt){mr(e);var Y=function(){je(window,"mouseup",Y),setTimeout(q,20)};bt(window,"mouseup",Y)}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 ax(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 p=e.form;c=p.submit;try{var m=p.submit=function(){s(),p.submit=c,p.submit(),p.submit=m}}catch{}}i.finishInit=function(x){x.save=s,x.getTextArea=function(){return e},x.toTextArea=function(){x.toTextArea=isNaN,s(),e.parentNode.removeChild(x.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=be(function(x){return e.parentNode.insertBefore(x,e.nextSibling)},i);return y}function cx(e){e.off=je,e.on=bt,e.wheelEventPixels=vw,e.Doc=sn,e.splitLines=os,e.countColumn=K,e.findColumn=nt,e.isWordChar=Ot,e.Pass=Lt,e.signal=me,e.Line=oo,e.changeEnd=Yr,e.scrollbarModel=xd,e.Pos=I,e.cmpPos=X,e.modes=qn,e.mimeModes=Wr,e.resolveMode=yn,e.getMode=yr,e.modeExtensions=Ur,e.extendMode=Cl,e.copyState=br,e.startState=ss,e.innerMode=jr,e.commands=As,e.keyMap=Cr,e.keyName=lp,e.isModifierKey=op,e.lookupKey=bo,e.normalizeKeyMap=Iw,e.StringStream=ke,e.SharedTextMarker=Ts,e.TextMarker=Jr,e.LineWidget=Cs,e.e_preventDefault=Ge,e.e_stopPropagation=_i,e.e_stop=mr,e.addClass=At,e.contains=et,e.rmClass=ut,e.keyNames=Qr}tx(be),ix(be);var ux="iter insert remove copy getEditor constructor".split(" ");for(var ea in sn.prototype)sn.prototype.hasOwnProperty(ea)&&Ct(ux,ea)<0&&(be.prototype[ea]=function(e){return function(){return e.apply(this.doc,arguments)}}(sn.prototype[ea]));return Je(sn),be.inputStyles={textarea:Te,contenteditable:fe},be.defineMode=function(e){!be.defaults.mode&&e!="null"&&(be.defaults.mode=e),kl.apply(this,arguments)},be.defineMIME=ro,be.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),be.defineMIME("text/plain","null"),be.defineExtension=function(e,i){be.prototype[e]=i},be.defineDocExtension=function(e,i){sn.prototype[e]=i},be.fromTextArea=ax,cx(be),be.version="5.65.11",be})}(Du)),Du.exports}var xlt=ts(),_lt={exports:{}};(function(t,n){(function(r){r(ts())})(function(r){r.defineMode("javascript",function(o,a){var u=o.indentUnit,f=a.statementIndent,h=a.jsonld,d=a.json||h,g=a.trackScope!==!1,v=a.typescript,b=a.wordCharacters||/[\w$\xa1-\uffff]/,w=function(){function C(Pe){return{type:Pe,style:"keyword"}}var R=C("keyword a"),I=C("keyword b"),X=C("keyword c"),It=C("keyword d"),Vt=C("operator"),ee={type:"atom",style:"atom"};return{if:C("if"),while:R,with:R,else:I,do:I,try:I,finally:I,return:It,break:It,continue:It,new:C("new"),delete:X,void:X,throw:X,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:Vt,typeof:Vt,instanceof:Vt,true:ee,false:ee,null:ee,undefined:ee,NaN:ee,Infinity:ee,this:C("this"),class:C("class"),super:C("atom"),yield:X,export:C("export"),import:C("import"),extends:X,await:X}}(),S=/[+\-*&%=<>!?|~^@]/,M=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(C){for(var R=!1,I,X=!1;(I=C.next())!=null;){if(!R){if(I=="/"&&!X)return;I=="["?X=!0:X&&I=="]"&&(X=!1)}R=!R&&I=="\\"}}var E,T;function L(C,R,I){return E=C,T=I,R}function $(C,R){var I=C.next();if(I=='"'||I=="'")return R.tokenize=O(I),R.tokenize(C,R);if(I=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return L("number","number");if(I=="."&&C.match(".."))return L("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(I))return L(I);if(I=="="&&C.eat(">"))return L("=>","operator");if(I=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return L("number","number");if(/\d/.test(I))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),L("number","number");if(I=="/")return C.eat("*")?(R.tokenize=G,G(C,R)):C.eat("/")?(C.skipToEnd(),L("comment","comment")):er(C,R,1)?(A(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),L("regexp","string-2")):(C.eat("="),L("operator","operator",C.current()));if(I=="`")return R.tokenize=V,V(C,R);if(I=="#"&&C.peek()=="!")return C.skipToEnd(),L("meta","meta");if(I=="#"&&C.eatWhile(b))return L("variable","property");if(I=="<"&&C.match("!--")||I=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),L("comment","comment");if(S.test(I))return(I!=">"||!R.lexical||R.lexical.type!=">")&&(C.eat("=")?(I=="!"||I=="=")&&C.eat("="):/[<>*+\-|&?]/.test(I)&&(C.eat(I),I==">"&&C.eat(I))),I=="?"&&C.eat(".")?L("."):L("operator","operator",C.current());if(b.test(I)){C.eatWhile(b);var X=C.current();if(R.lastType!="."){if(w.propertyIsEnumerable(X)){var It=w[X];return L(It.type,It.style,X)}if(X=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return L("async","keyword",X)}return L("variable","variable",X)}}function O(C){return function(R,I){var X=!1,It;if(h&&R.peek()=="@"&&R.match(M))return I.tokenize=$,L("jsonld-keyword","meta");for(;(It=R.next())!=null&&!(It==C&&!X);)X=!X&&It=="\\";return X||(I.tokenize=$),L("string","string")}}function G(C,R){for(var I=!1,X;X=C.next();){if(X=="/"&&I){R.tokenize=$;break}I=X=="*"}return L("comment","comment")}function V(C,R){for(var I=!1,X;(X=C.next())!=null;){if(!I&&(X=="`"||X=="$"&&C.eat("{"))){R.tokenize=$;break}I=!I&&X=="\\"}return L("quasi","string-2",C.current())}var rt="([{}])";function J(C,R){R.fatArrowAt&&(R.fatArrowAt=null);var I=C.string.indexOf("=>",C.start);if(!(I<0)){if(v){var X=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,I));X&&(I=X.index)}for(var It=0,Vt=!1,ee=I-1;ee>=0;--ee){var Pe=C.string.charAt(ee),En=rt.indexOf(Pe);if(En>=0&&En<3){if(!It){++ee;break}if(--It==0){Pe=="("&&(Vt=!0);break}}else if(En>=3&&En<6)++It;else if(b.test(Pe))Vt=!0;else if(/["'\/`]/.test(Pe))for(;;--ee){if(ee==0)return;var Ft=C.string.charAt(ee-1);if(Ft==Pe&&C.string.charAt(ee-2)!="\\"){ee--;break}}else if(Vt&&!It){++ee;break}}Vt&&!It&&(R.fatArrowAt=ee)}}var dt={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function gt(C,R,I,X,It,Vt){this.indented=C,this.column=R,this.type=I,this.prev=It,this.info=Vt,X!=null&&(this.align=X)}function kt(C,R){if(!g)return!1;for(var I=C.localVars;I;I=I.next)if(I.name==R)return!0;for(var X=C.context;X;X=X.prev)for(var I=X.vars;I;I=I.next)if(I.name==R)return!0}function ut(C,R,I,X,It){var Vt=C.cc;for(U.state=C,U.stream=It,U.marked=null,U.cc=Vt,U.style=R,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var ee=Vt.length?Vt.pop():d?Lt:Ct;if(ee(I,X)){for(;Vt.length&&Vt[Vt.length-1].lex;)Vt.pop()();return U.marked?U.marked:I=="variable"&&kt(C,X)?"variable-2":R}}}var U={state:null,column:null,marked:null,cc:null};function z(){for(var C=arguments.length-1;C>=0;C--)U.cc.push(arguments[C])}function k(){return z.apply(null,arguments),!0}function H(C,R){for(var I=R;I;I=I.next)if(I.name==C)return!0;return!1}function W(C){var R=U.state;if(U.marked="def",!!g){if(R.context){if(R.lexical.info=="var"&&R.context&&R.context.block){var I=et(C,R.context);if(I!=null){R.context=I;return}}else if(!H(C,R.localVars)){R.localVars=new qt(C,R.localVars);return}}a.globalVars&&!H(C,R.globalVars)&&(R.globalVars=new qt(C,R.globalVars))}}function et(C,R){if(R)if(R.block){var I=et(C,R.prev);return I?I==R.prev?R:new At(I,R.vars,!0):null}else return H(C,R.vars)?R:new At(R.prev,new qt(C,R.vars),!1);else return null}function wt(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function At(C,R,I){this.prev=C,this.vars=R,this.block=I}function qt(C,R){this.name=C,this.next=R}var Bt=new qt("this",new qt("arguments",null));function Gt(){U.state.context=new At(U.state.context,U.state.localVars,!1),U.state.localVars=Bt}function ie(){U.state.context=new At(U.state.context,U.state.localVars,!0),U.state.localVars=null}Gt.lex=ie.lex=!0;function Q(){U.state.localVars=U.state.context.vars,U.state.context=U.state.context.prev}Q.lex=!0;function tt(C,R){var I=function(){var X=U.state,It=X.indented;if(X.lexical.type=="stat")It=X.lexical.indented;else for(var Vt=X.lexical;Vt&&Vt.type==")"&&Vt.align;Vt=Vt.prev)It=Vt.indented;X.lexical=new gt(It,U.stream.column(),C,null,X.lexical,R)};return I.lex=!0,I}function K(){var C=U.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}K.lex=!0;function st(C){function R(I){return I==C?k():C==";"||I=="}"||I==")"||I=="]"?z():k(R)}return R}function Ct(C,R){return C=="var"?k(tt("vardef",R),mr,st(";"),K):C=="keyword a"?k(tt("form"),F,Ct,K):C=="keyword b"?k(tt("form"),Ct,K):C=="keyword d"?U.stream.match(/^\s*$/,!1)?k():k(tt("stat"),nt,st(";"),K):C=="debugger"?k(st(";")):C=="{"?k(tt("}"),ie,Ln,K,Q):C==";"?k():C=="if"?(U.state.lexical.info=="else"&&U.state.cc[U.state.cc.length-1]==K&&U.state.cc.pop()(),k(tt("form"),F,Ct,K,no)):C=="function"?k(Qn):C=="for"?k(tt("form"),ie,_l,Ct,Q,K):C=="class"||v&&R=="interface"?(U.marked="keyword",k(tt("form",C=="class"?C:R),kl,K)):C=="variable"?v&&R=="declare"?(U.marked="keyword",k(Ct)):v&&(R=="module"||R=="enum"||R=="type")&&U.stream.match(/^\s*\w/,!1)?(U.marked="keyword",R=="enum"?k(io):R=="type"?k(Sl,st("operator"),bt,st(";")):k(tt("form"),rn,st("{"),tt("}"),Ln,K,K)):v&&R=="namespace"?(U.marked="keyword",k(tt("form"),Lt,Ct,K)):v&&R=="abstract"?(U.marked="keyword",k(Ct)):k(tt("stat"),Rt):C=="switch"?k(tt("form"),F,st("{"),tt("}","switch"),ie,Ln,K,K,Q):C=="case"?k(Lt,st(":")):C=="default"?k(st(":")):C=="catch"?k(tt("form"),Gt,pe,Ct,K,Q):C=="export"?k(tt("stat"),Ur,K):C=="import"?k(tt("stat"),br,K):C=="async"?k(Ct):R=="@"?k(Lt,Ct):z(tt("stat"),Lt,st(";"),K)}function pe(C){if(C=="(")return k(qn,st(")"))}function Lt(C,R){return Z(C,R,!1)}function P(C,R){return Z(C,R,!0)}function F(C){return C!="("?z():k(tt(")"),nt,st(")"),K)}function Z(C,R,I){if(U.state.fatArrowAt==U.stream.start){var X=I?ct:xt;if(C=="(")return k(Gt,tt(")"),Yt(qn,")"),K,st("=>"),X,Q);if(C=="variable")return z(Gt,rn,st("=>"),X,Q)}var It=I?pt:ot;return dt.hasOwnProperty(C)?k(It):C=="function"?k(Qn,It):C=="class"||v&&R=="interface"?(U.marked="keyword",k(tt("form"),Wr,K)):C=="keyword c"||C=="async"?k(I?P:Lt):C=="("?k(tt(")"),nt,st(")"),K,It):C=="operator"||C=="spread"?k(I?P:Lt):C=="["?k(tt("]"),wr,K,It):C=="{"?mn(te,"}",null,It):C=="quasi"?z(lt,It):C=="new"?k($t(I)):k()}function nt(C){return C.match(/[;\}\)\],]/)?z():z(Lt)}function ot(C,R){return C==","?k(nt):pt(C,R,!1)}function pt(C,R,I){var X=I==!1?ot:pt,It=I==!1?Lt:P;if(C=="=>")return k(Gt,I?ct:xt,Q);if(C=="operator")return/\+\+|--/.test(R)||v&&R=="!"?k(X):v&&R=="<"&&U.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(tt(">"),Yt(bt,">"),K,X):R=="?"?k(Lt,st(":"),It):k(It);if(C=="quasi")return z(lt,X);if(C!=";"){if(C=="(")return mn(P,")","call",X);if(C==".")return k(jt,X);if(C=="[")return k(tt("]"),nt,st("]"),K,X);if(v&&R=="as")return U.marked="keyword",k(bt,X);if(C=="regexp")return U.state.lastType=U.marked="operator",U.stream.backUp(U.stream.pos-U.stream.start-1),k(It)}}function lt(C,R){return C!="quasi"?z():R.slice(R.length-2)!="${"?k(lt):k(nt,vt)}function vt(C){if(C=="}")return U.marked="string-2",U.state.tokenize=V,k(lt)}function xt(C){return J(U.stream,U.state),z(C=="{"?Ct:Lt)}function ct(C){return J(U.stream,U.state),z(C=="{"?Ct:P)}function $t(C){return function(R){return R=="."?k(C?Ot:Nt):R=="variable"&&v?k(Ge,C?pt:ot):z(C?P:Lt)}}function Nt(C,R){if(R=="target")return U.marked="keyword",k(ot)}function Ot(C,R){if(R=="target")return U.marked="keyword",k(pt)}function Rt(C){return C==":"?k(K,Ct):z(ot,st(";"),K)}function jt(C){if(C=="variable")return U.marked="property",k()}function te(C,R){if(C=="async")return U.marked="property",k(te);if(C=="variable"||U.style=="keyword"){if(U.marked="property",R=="get"||R=="set")return k(Jt);var I;return v&&U.state.fatArrowAt==U.stream.start&&(I=U.stream.match(/^\s*:\s*/,!1))&&(U.state.fatArrowAt=U.stream.pos+I[0].length),k(ae)}else{if(C=="number"||C=="string")return U.marked=h?"property":U.style+" property",k(ae);if(C=="jsonld-keyword")return k(ae);if(v&&wt(R))return U.marked="keyword",k(te);if(C=="[")return k(Lt,He,st("]"),ae);if(C=="spread")return k(P,ae);if(R=="*")return U.marked="keyword",k(te);if(C==":")return z(ae)}}function Jt(C){return C!="variable"?z(ae):(U.marked="property",k(Qn))}function ae(C){if(C==":")return k(P);if(C=="(")return z(Qn)}function Yt(C,R,I){function X(It,Vt){if(I?I.indexOf(It)>-1:It==","){var ee=U.state.lexical;return ee.info=="call"&&(ee.pos=(ee.pos||0)+1),k(function(Pe,En){return Pe==R||En==R?z():z(C)},X)}return It==R||Vt==R?k():I&&I.indexOf(";")>-1?z(C):k(st(R))}return function(It,Vt){return It==R||Vt==R?k():z(C,X)}}function mn(C,R,I){for(var X=3;X<arguments.length;X++)U.cc.push(arguments[X]);return k(tt(R,I),Yt(C,R),K)}function Ln(C){return C=="}"?k():z(Ct,Ln)}function He(C,R){if(v){if(C==":")return k(bt);if(R=="?")return k(He)}}function eo(C,R){if(v&&(C==":"||R=="in"))return k(bt)}function ye(C){if(v&&C==":")return U.stream.match(/^\s*\w+\s+is\b/,!1)?k(Lt,nn,bt):k(bt)}function nn(C,R){if(R=="is")return U.marked="keyword",k()}function bt(C,R){if(R=="keyof"||R=="typeof"||R=="infer"||R=="readonly")return U.marked="keyword",k(R=="typeof"?P:bt);if(C=="variable"||R=="void")return U.marked="type",k(Je);if(R=="|"||R=="&")return k(bt);if(C=="string"||C=="number"||C=="atom")return k(Je);if(C=="[")return k(tt("]"),Yt(bt,"]",","),K,Je);if(C=="{")return k(tt("}"),je,K,Je);if(C=="(")return k(Yt(Ze,")"),ns,Je);if(C=="<")return k(Yt(bt,">"),bt);if(C=="quasi")return z(Se,Je)}function ns(C){if(C=="=>")return k(bt)}function je(C){return C.match(/[\}\)\]]/)?k():C==","||C==";"?k(je):z(me,je)}function me(C,R){if(C=="variable"||U.style=="keyword")return U.marked="property",k(me);if(R=="?"||C=="number"||C=="string")return k(me);if(C==":")return k(bt);if(C=="[")return k(st("variable"),eo,st("]"),me);if(C=="(")return z(tr,me);if(!C.match(/[;\}\)\],]/))return k()}function Se(C,R){return C!="quasi"?z():R.slice(R.length-2)!="${"?k(Se):k(bt,xl)}function xl(C){if(C=="}")return U.marked="string-2",U.state.tokenize=V,k(Se)}function Ze(C,R){return C=="variable"&&U.stream.match(/^\s*[?:]/,!1)||R=="?"?k(Ze):C==":"?k(bt):C=="spread"?k(Ze):z(bt)}function Je(C,R){if(R=="<")return k(tt(">"),Yt(bt,">"),K,Je);if(R=="|"||C=="."||R=="&")return k(bt);if(C=="[")return k(bt,st("]"),Je);if(R=="extends"||R=="implements")return U.marked="keyword",k(bt);if(R=="?")return k(bt,st(":"),bt)}function Ge(C,R){if(R=="<")return k(tt(">"),Yt(bt,">"),K,Je)}function _i(){return z(bt,rs)}function rs(C,R){if(R=="=")return k(bt)}function mr(C,R){return R=="enum"?(U.marked="keyword",k(io)):z(rn,He,Dn,Tc)}function rn(C,R){if(v&&wt(R))return U.marked="keyword",k(rn);if(C=="variable")return W(R),k();if(C=="spread")return k(rn);if(C=="[")return mn(Cc,"]");if(C=="{")return mn(is,"}")}function is(C,R){return C=="variable"&&!U.stream.match(/^\s*:/,!1)?(W(R),k(Dn)):(C=="variable"&&(U.marked="property"),C=="spread"?k(rn):C=="}"?z():C=="["?k(Lt,st("]"),st(":"),is):k(st(":"),rn,Dn))}function Cc(){return z(rn,Dn)}function Dn(C,R){if(R=="=")return k(P)}function Tc(C){if(C==",")return k(mr)}function no(C,R){if(C=="keyword b"&&R=="else")return k(tt("form","else"),Ct,K)}function _l(C,R){if(R=="await")return k(_l);if(C=="(")return k(tt(")"),os,K)}function os(C){return C=="var"?k(mr,Br):C=="variable"?k(Br):z(Br)}function Br(C,R){return C==")"?k():C==";"?k(Br):R=="in"||R=="of"?(U.marked="keyword",k(Lt,Br)):z(Lt,Br)}function Qn(C,R){if(R=="*")return U.marked="keyword",k(Qn);if(C=="variable")return W(R),k(Qn);if(C=="(")return k(Gt,tt(")"),Yt(qn,")"),K,ye,Ct,Q);if(v&&R=="<")return k(tt(">"),Yt(_i,">"),K,Qn)}function tr(C,R){if(R=="*")return U.marked="keyword",k(tr);if(C=="variable")return W(R),k(tr);if(C=="(")return k(Gt,tt(")"),Yt(qn,")"),K,ye,Q);if(v&&R=="<")return k(tt(">"),Yt(_i,">"),K,tr)}function Sl(C,R){if(C=="keyword"||C=="variable")return U.marked="type",k(Sl);if(R=="<")return k(tt(">"),Yt(_i,">"),K)}function qn(C,R){return R=="@"&&k(Lt,qn),C=="spread"?k(qn):v&&wt(R)?(U.marked="keyword",k(qn)):v&&C=="this"?k(He,Dn):z(rn,He,Dn)}function Wr(C,R){return C=="variable"?kl(C,R):ro(C,R)}function kl(C,R){if(C=="variable")return W(R),k(ro)}function ro(C,R){if(R=="<")return k(tt(">"),Yt(_i,">"),K,ro);if(R=="extends"||R=="implements"||v&&C==",")return R=="implements"&&(U.marked="keyword"),k(v?bt:Lt,ro);if(C=="{")return k(tt("}"),yn,K)}function yn(C,R){if(C=="async"||C=="variable"&&(R=="static"||R=="get"||R=="set"||v&&wt(R))&&U.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return U.marked="keyword",k(yn);if(C=="variable"||U.style=="keyword")return U.marked="property",k(yr,yn);if(C=="number"||C=="string")return k(yr,yn);if(C=="[")return k(Lt,He,st("]"),yr,yn);if(R=="*")return U.marked="keyword",k(yn);if(v&&C=="(")return z(tr,yn);if(C==";"||C==",")return k(yn);if(C=="}")return k();if(R=="@")return k(Lt,yn)}function yr(C,R){if(R=="!"||R=="?")return k(yr);if(C==":")return k(bt,Dn);if(R=="=")return k(P);var I=U.state.lexical.prev,X=I&&I.info=="interface";return z(X?tr:Qn)}function Ur(C,R){return R=="*"?(U.marked="keyword",k(Mt,st(";"))):R=="default"?(U.marked="keyword",k(Lt,st(";"))):C=="{"?k(Yt(Cl,"}"),Mt,st(";")):z(Ct)}function Cl(C,R){if(R=="as")return U.marked="keyword",k(st("variable"));if(C=="variable")return z(P,Cl)}function br(C){return C=="string"?k():C=="("?z(Lt):C=="."?z(ot):z(jr,ss,Mt)}function jr(C,R){return C=="{"?mn(jr,"}"):(C=="variable"&&W(R),R=="*"&&(U.marked="keyword"),k(ke))}function ss(C){if(C==",")return k(jr,ss)}function ke(C,R){if(R=="as")return U.marked="keyword",k(jr)}function Mt(C,R){if(R=="from")return U.marked="keyword",k(Lt)}function wr(C){return C=="]"?k():z(Yt(P,"]"))}function io(){return z(tt("form"),rn,st("{"),tt("}"),Yt(Rn,"}"),K,K)}function Rn(){return z(rn,Dn)}function oe(C,R){return C.lastType=="operator"||C.lastType==","||S.test(R.charAt(0))||/[,.]/.test(R.charAt(0))}function er(C,R,I){return R.tokenize==$&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(R.lastType)||R.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(I||0)))}return{startState:function(C){var R={tokenize:$,lastType:"sof",cc:[],lexical:new gt((C||0)-u,0,"block",!1),localVars:a.localVars,context:a.localVars&&new At(null,null,!1),indented:C||0};return a.globalVars&&typeof a.globalVars=="object"&&(R.globalVars=a.globalVars),R},token:function(C,R){if(C.sol()&&(R.lexical.hasOwnProperty("align")||(R.lexical.align=!1),R.indented=C.indentation(),J(C,R)),R.tokenize!=G&&C.eatSpace())return null;var I=R.tokenize(C,R);return E=="comment"?I:(R.lastType=E=="operator"&&(T=="++"||T=="--")?"incdec":E,ut(R,I,E,T,C))},indent:function(C,R){if(C.tokenize==G||C.tokenize==V)return r.Pass;if(C.tokenize!=$)return 0;var I=R&&R.charAt(0),X=C.lexical,It;if(!/^\s*else\b/.test(R))for(var Vt=C.cc.length-1;Vt>=0;--Vt){var ee=C.cc[Vt];if(ee==K)X=X.prev;else if(ee!=no&&ee!=Q)break}for(;(X.type=="stat"||X.type=="form")&&(I=="}"||(It=C.cc[C.cc.length-1])&&(It==ot||It==pt)&&!/^[,\.=+\-*:?[\(]/.test(R));)X=X.prev;f&&X.type==")"&&X.prev.type=="stat"&&(X=X.prev);var Pe=X.type,En=I==Pe;return Pe=="vardef"?X.indented+(C.lastType=="operator"||C.lastType==","?X.info.length+1:0):Pe=="form"&&I=="{"?X.indented:Pe=="form"?X.indented+u:Pe=="stat"?X.indented+(oe(C,R)?f||u:0):X.info=="switch"&&!En&&a.doubleIndentSwitch!=!1?X.indented+(/^(?:case|default)\b/.test(R)?u:2*u):X.align?X.column+(En?0:1):X.indented+(En?0:u)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:h,jsonMode:d,expressionAllowed:er,skipExpression:function(C){ut(C,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var yv={exports:{}},bv;function xy(){return bv||(bv=1,function(t,n){(function(r){r(ts())})(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,d={},g=f.htmlMode?o:a;for(var v in g)d[v]=g[v];for(var v in f)d[v]=f[v];var b,w;function S(k,H){function W(At){return H.tokenize=At,At(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(T(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=V,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 T(k){return function(H,W){for(var et;(et=H.next())!=null;){if(et=="<")return W.tokenize=T(k+1),W.tokenize(H,W);if(et==">")if(k==1){W.tokenize=S;break}else return W.tokenize=T(k-1),W.tokenize(H,W)}return"meta"}}function L(k){return k&&k.toLowerCase()}function $(k,H,W){this.prev=k.context,this.tagName=H||"",this.indent=k.indented,this.startOfLine=W,(d.doNotIndent.hasOwnProperty(H)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function O(k){k.context&&(k.context=k.context.prev)}function G(k,H){for(var W;;){if(!k.context||(W=k.context.tagName,!d.contextGrabbers.hasOwnProperty(L(W))||!d.contextGrabbers[L(W)].hasOwnProperty(L(H))))return;O(k)}}function V(k,H,W){return k=="openTag"?(W.tagStart=H.column(),rt):k=="closeTag"?J:V}function rt(k,H,W){return k=="word"?(W.tagName=H.current(),w="tag",kt):d.allowMissingTagName&&k=="endTag"?(w="tag bracket",kt(k,H,W)):(w="error",rt)}function J(k,H,W){if(k=="word"){var et=H.current();return W.context&&W.context.tagName!=et&&d.implicitlyClosed.hasOwnProperty(L(W.context.tagName))&&O(W),W.context&&W.context.tagName==et||d.matchClosing===!1?(w="tag",dt):(w="tag error",gt)}else return d.allowMissingTagName&&k=="endTag"?(w="tag bracket",dt(k,H,W)):(w="error",gt)}function dt(k,H,W){return k!="endTag"?(w="error",dt):(O(W),V)}function gt(k,H,W){return w="error",dt(k,H,W)}function kt(k,H,W){if(k=="word")return w="attribute",ut;if(k=="endTag"||k=="selfcloseTag"){var et=W.tagName,wt=W.tagStart;return W.tagName=W.tagStart=null,k=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(L(et))?G(W,et):(G(W,et),W.context=new $(W,et,wt==W.indented)),V}return w="error",kt}function ut(k,H,W){return k=="equals"?U:(d.allowMissing||(w="error"),kt(k,H,W))}function U(k,H,W){return k=="string"?z:k=="word"&&d.allowUnquoted?(w="string",kt):(w="error",kt(k,H,W))}function z(k,H,W){return k=="string"?z:kt(k,H,W)}return{startState:function(k){var H={tokenize:S,state:V,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"&&(w=null,H.state=H.state(b||W,k,H),w&&(W=w=="error"?W+" error":w)),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 d.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+h*(d.multilineTagIndentFactor||1);if(d.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(d.implicitlyClosed.hasOwnProperty(L(et.tagName)))et=et.prev;else break;else if(wt)for(;et;){var At=d.contextGrabbers[L(et.tagName)];if(At&&At.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:d.htmlMode?"html":"xml",helperType:d.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})})}()),yv.exports}xy();(function(t,n){(function(r){r(ts(),xy(),_lt.exports)})(function(r){function o(u,f,h,d){this.state=u,this.mode=f,this.depth=h,this.prev=d}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}),d=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 v(S,M){return M.context.mode==h?b(S,M,M.context):w(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),T=A.state.context;if(T&&S.match(/^[^>]*>\s*$/,!1)){for(;T.prev&&!T.startOfLine;)T=T.prev;T.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(d,E),d,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,v(S,M)}var L=h.token(S,A.state),$=S.current(),O;return/\btag\b/.test(L)?/>$/.test($)?A.state.context?A.depth=0:M.context=M.context.prev:/^</.test($)&&(A.depth=1):!L&&(O=$.indexOf("{"))>-1&&S.backUp($.length-O),L}function w(S,M,A){if(S.peek()=="<"&&d.expressionAllowed(S,A.state))return M.context=new o(r.startState(h,d.indent(A.state,"","")),h,0,M.context),d.skipExpression(A.state),null;var E=d.token(S,A.state);if(!E&&A.depth!=null){var T=S.current();T=="{"?A.depth++:T=="}"&&--A.depth==0&&(M.context=M.context.prev)}return E}return{startState:function(){return{context:new o(r.startState(d),d)}},copyState:function(S){return{context:a(S.context)}},token:v,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(ts())})(function(r){r.defineOption("placeholder","",function(g,v,b){var w=b&&b!=r.Init;if(v&&!w)g.on("blur",f),g.on("change",h),g.on("swapDoc",h),r.on(g.getInputField(),"compositionupdate",g.state.placeholderCompose=function(){u(g)}),h(g);else if(!v&&w){g.off("blur",f),g.off("change",h),g.off("swapDoc",h),r.off(g.getInputField(),"compositionupdate",g.state.placeholderCompose),o(g);var S=g.getWrapperElement();S.className=S.className.replace(" CodeMirror-empty","")}v&&!g.hasFocus()&&f(g)});function o(g){g.state.placeholder&&(g.state.placeholder.parentNode.removeChild(g.state.placeholder),g.state.placeholder=null)}function a(g){o(g);var v=g.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=g.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var b=g.getOption("placeholder");typeof b=="string"&&(b=document.createTextNode(b)),v.appendChild(b),g.display.lineSpace.insertBefore(v,g.display.lineSpace.firstChild)}function u(g){setTimeout(function(){var v=!1;if(g.lineCount()==1){var b=g.getInputField();v=b.nodeName=="TEXTAREA"?!g.getLine(0).length:!/[^\u200b]/.test(b.querySelector(".CodeMirror-line").textContent)}v?a(g):o(g)},20)}function f(g){d(g)&&a(g)}function h(g){var v=g.getWrapperElement(),b=d(g);v.className=v.className.replace(" CodeMirror-empty","")+(b?" CodeMirror-empty":""),b?a(g):o(g)}function d(g){return g.lineCount()===1&&g.getLine(0)===""}})})();(function(t,n){(function(r){r(ts())})(function(r){function o(f,h,d){this.orientation=h,this.scroll=d,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 w=g.orientation=="horizontal"?"pageX":"pageY",S=b[w],M=g.pos;function A(){r.off(document,"mousemove",E),r.off(document,"mouseup",A)}function E(T){if(T.which!=1)return A();g.moveTo(M+(T[w]-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 w=g.inner.getBoundingClientRect(),S;g.orientation=="horizontal"?S=b.clientX<w.left?-1:b.clientX>w.right?1:0:S=b.clientY<w.top?-1:b.clientY>w.bottom?1:0,g.moveTo(g.pos+S*g.screen)});function v(b){var w=r.wheelEventPixels(b)[g.orientation=="horizontal"?"x":"y"],S=g.pos;g.moveTo(g.pos+w),g.pos!=S&&r.e_preventDefault(b)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,h){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!h&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var a=10;o.prototype.update=function(f,h,d){var g=this.screen!=h||this.total!=f||this.size!=d;g&&(this.screen=h,this.total=f,this.size=d);var v=this.screen*(this.size/this.total);v<a&&(this.size-=a-v,v=a),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,g)};function u(f,h,d){this.addClass=f,this.horiz=new o(f,"horizontal",d),h(this.horiz.node),this.vert=new o(f,"vertical",d),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 d=this.width||0,g=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=g?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(g?d:0)),this.vert.node.style.bottom=g?d+"px":"0"),g&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?d:0)-f.barLeft),this.horiz.node.style.right=v?d+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?d:0,bottom:g?d: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 Slt(t,n,r={}){const o=xlt.fromTextArea(t.value,{theme:"vars",...r,scrollbarStyle:"simple"});let a=!1;return o.on("change",()=>{if(a){a=!1;return}n.value=o.getValue()}),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}),qf(o)}const klt={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},_y=re({__name:"CodeMirror",props:{modelValue:null,mode:null,readOnly:{type:Boolean}},emits:["update:modelValue","save"],setup(t,{expose:n,emit:r}){const o=t,a=p_(),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=vT(o,"modelValue",r,{passive:!0}),d=fl();return n({cm:d}),dl(async()=>{d.value=Slt(f,h,{...o,...a,mode:u[o.mode||""]||o.mode,readOnly:o.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(g){r("save",g.getValue())},"Ctrl-S":function(g){r("save",g.getValue())}}}),d.value.setSize("100%","100%"),d.value.clearHistory(),setTimeout(()=>d.value.refresh(),100)}),(g,v)=>(at(),Et("div",klt,[ht("textarea",{ref_key:"el",ref:f},null,512)]))}}),Clt=re({__name:"ViewEditor",props:{file:null},emits:["draft"],setup(t,{emit:n}){const r=t,o=Kt(""),a=fl(void 0),u=Kt(!1);Fe(()=>r.file,async()=>{var L;if(!r.file||!((L=r.file)!=null&&L.filepath)){o.value="",a.value=o.value,u.value=!1;return}o.value=await Ue.rpc.readFile(r.file.filepath),a.value=o.value,u.value=!1},{immediate:!0});const f=_t(()=>{var L,$;return(($=(L=r.file)==null?void 0:L.filepath)==null?void 0:$.split(/\./g).pop())||"js"}),h=Kt(),d=_t(()=>{var L;return(L=h.value)==null?void 0:L.cm}),g=_t(()=>{var L;return((L=r.file)==null?void 0:L.tasks.filter($=>{var O;return((O=$.result)==null?void 0:O.state)==="fail"}))||[]}),v=[],b=[],w=[],S=Kt(!1),M=()=>{w.forEach(([L,$,O])=>{L.removeEventListener("click",$),O()}),w.length=0};cT(h,()=>{var L;(L=d.value)==null||L.refresh()});function A(){u.value=a.value!==d.value.getValue()}Fe(u,L=>{n("draft",L)},{immediate:!0});function E(L){const $=((L==null?void 0:L.stacks)||[]).filter(dt=>{var gt;return dt.file&&dt.file===((gt=r.file)==null?void 0:gt.filepath)}),O=$==null?void 0:$[0];if(!O)return;const G=document.createElement("div");G.className="op80 flex gap-x-2 items-center";const V=document.createElement("pre");V.className="c-red-600 dark:c-red-400",V.textContent=`${" ".repeat(O.column)}^ ${L==null?void 0:L.nameStr}: ${L==null?void 0:L.message}`,G.appendChild(V);const rt=document.createElement("span");rt.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",rt.tabIndex=0,rt.ariaLabel="Open in Editor",k0(rt,{content:"Open in Editor",placement:"bottom"},!1);const J=async()=>{await by(O.file,O.line,O.column)};G.appendChild(rt),w.push([rt,J,()=>sh(rt)]),b.push(d.value.addLineClass(O.line-1,"wrap","bg-red-500/10")),v.push(d.value.addLineWidget(O.line-1,G))}Fe([d,g],([L])=>{if(!L){M();return}setTimeout(()=>{M(),v.forEach($=>$.clear()),b.forEach($=>{var O;return(O=d.value)==null?void 0:O.removeLineClass($,"wrap")}),v.length=0,b.length=0,L.on("changes",A),g.value.forEach($=>{var O,G;(G=(O=$.result)==null?void 0:O.errors)==null||G.forEach(E)}),S.value||L.clearHistory()},100)},{flush:"post"});async function T(L){S.value=!0,await Ue.rpc.writeFile(r.file.filepath,L),a.value=L,u.value=!1}return(L,$)=>{const O=_y;return at(),Qt(O,gi({ref_key:"editor",ref:h,modelValue:j(o),"onUpdate:modelValue":$[0]||($[0]=G=>Ee(o)?o.value=G:null),"h-full":""},{lineNumbers:!0},{mode:j(f),"data-testid":"code-mirror",onSave:T}),null,16,["modelValue","mode"])}}}),Tlt=re({__name:"Modal",props:{modelValue:{type:Boolean,default:!1},direction:{default:"bottom"}},emits:["update:modelValue"],setup(t){const n=t,r=_t(()=>{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=_t(()=>{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)=>(at(),Et("div",{class:ve(["fixed inset-0 z-40",t.modelValue?"":"pointer-events-none"])},[ht("div",{class:ve(["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),ht("div",{class:ve(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[j(r)]]),style:kn(t.modelValue?{}:{transform:j(o)})},[Yn(a.$slots,"default")],6)],2))}}),Llt=["aria-label","opacity","disabled","hover"],es=re({__name:"IconButton",props:{icon:null,title:null,disabled:{type:Boolean}},setup(t){return(n,r)=>(at(),Et("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"},[Yn(n.$slots,"default",{},()=>[ht("div",{class:ve(t.icon),ma:""},null,2)])],8,Llt))}}),Elt={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Alt={"p-4":"",relative:""},Mlt=ht("p",null,"Module Info",-1),Nlt={op50:"","font-mono":"","text-sm":""},Plt={key:0,"p-5":""},Olt={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},$lt=ht("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Dlt=ht("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),Rlt={key:0},zlt={p:"x3 y-1","bg-overlay":"",border:"base b t"},Ilt=re({__name:"ModuleTransformResultView",props:{id:null},emits:["close"],setup(t,{emit:n}){const r=t,o=DC(()=>Ue.rpc.getTransformResult(r.id)),a=_t(()=>{var d;return((d=r.id)==null?void 0:d.split(/\./g).pop())||"js"}),u=_t(()=>{var d,g;return((g=(d=o.value)==null?void 0:d.source)==null?void 0:g.trim())||""}),f=_t(()=>{var d,g;return((g=(d=o.value)==null?void 0:d.code)==null?void 0:g.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=_t(()=>{var d,g,v,b;return{mappings:((g=(d=o.value)==null?void 0:d.map)==null?void 0:g.mappings)??"",version:(b=(v=o.value)==null?void 0:v.map)==null?void 0:b.version}});return zC("Escape",()=>{n("close")}),(d,g)=>{const v=es,b=_y;return at(),Et("div",Elt,[ht("div",Alt,[Mlt,ht("p",Nlt,Xt(t.id),1),zt(v,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:g[0]||(g[0]=w=>n("close"))})]),j(o)?(at(),Et(ce,{key:1},[ht("div",Olt,[$lt,Dlt,zt(b,gi({"h-full":"","model-value":j(u),"read-only":""},{lineNumbers:!0},{mode:j(a)}),null,16,["model-value","mode"]),zt(b,gi({"h-full":"","model-value":j(f),"read-only":""},{lineNumbers:!0},{mode:j(a)}),null,16,["model-value","mode"])]),j(h).mappings!==""?(at(),Et("div",Rlt,[ht("div",zlt," Source map (v"+Xt(j(h).version)+") ",1),zt(b,gi({"model-value":j(h).mappings,"read-only":""},{lineNumbers:!0},{mode:j(a)}),null,16,["model-value","mode"])])):le("",!0)],64)):(at(),Et("div",Plt," No transform result found for this module. "))])}}});var yf="http://www.w3.org/1999/xhtml";const wv={svg:"http://www.w3.org/2000/svg",xhtml:yf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function _c(t){var n=t+="",r=n.indexOf(":");return r>=0&&(n=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),wv.hasOwnProperty(n)?{space:wv[n],local:t}:t}function Flt(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===yf&&n.documentElement.namespaceURI===yf?n.createElement(t):n.createElementNS(r,t)}}function qlt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Sy(t){var n=_c(t);return(n.local?qlt:Flt)(n)}function Hlt(){}function ph(t){return t==null?Hlt:function(){return this.querySelector(t)}}function Blt(t){typeof t!="function"&&(t=ph(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),d,g,v=0;v<f;++v)(d=u[v])&&(g=t.call(d,d.__data__,v,u))&&("__data__"in d&&(g.__data__=d.__data__),h[v]=g);return new $n(o,this._parents)}function Wlt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Ult(){return[]}function ky(t){return t==null?Ult:function(){return this.querySelectorAll(t)}}function jlt(t){return function(){return Wlt(t.apply(this,arguments))}}function Glt(t){typeof t=="function"?t=jlt(t):t=ky(t);for(var n=this._groups,r=n.length,o=[],a=[],u=0;u<r;++u)for(var f=n[u],h=f.length,d,g=0;g<h;++g)(d=f[g])&&(o.push(t.call(d,d.__data__,g,f)),a.push(d));return new $n(o,a)}function Cy(t){return function(){return this.matches(t)}}function Ty(t){return function(n){return n.matches(t)}}var Vlt=Array.prototype.find;function Klt(t){return function(){return Vlt.call(this.children,t)}}function Xlt(){return this.firstElementChild}function Ylt(t){return this.select(t==null?Xlt:Klt(typeof t=="function"?t:Ty(t)))}var Zlt=Array.prototype.filter;function Jlt(){return Array.from(this.children)}function Qlt(t){return function(){return Zlt.call(this.children,t)}}function tat(t){return this.selectAll(t==null?Jlt:Qlt(typeof t=="function"?t:Ty(t)))}function eat(t){typeof t!="function"&&(t=Cy(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]=[],d,g=0;g<f;++g)(d=u[g])&&t.call(d,d.__data__,g,u)&&h.push(d);return new $n(o,this._parents)}function Ly(t){return new Array(t.length)}function nat(){return new $n(this._enter||this._groups.map(Ly),this._parents)}function Wa(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Wa.prototype={constructor:Wa,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function rat(t){return function(){return t}}function iat(t,n,r,o,a,u){for(var f=0,h,d=n.length,g=u.length;f<g;++f)(h=n[f])?(h.__data__=u[f],o[f]=h):r[f]=new Wa(t,u[f]);for(;f<d;++f)(h=n[f])&&(a[f]=h)}function oat(t,n,r,o,a,u,f){var h,d,g=new Map,v=n.length,b=u.length,w=new Array(v),S;for(h=0;h<v;++h)(d=n[h])&&(w[h]=S=f.call(d,d.__data__,h,n)+"",g.has(S)?a[h]=d:g.set(S,d));for(h=0;h<b;++h)S=f.call(t,u[h],h,u)+"",(d=g.get(S))?(o[h]=d,d.__data__=u[h],g.delete(S)):r[h]=new Wa(t,u[h]);for(h=0;h<v;++h)(d=n[h])&&g.get(w[h])===d&&(a[h]=d)}function sat(t){return t.__data__}function lat(t,n){if(!arguments.length)return Array.from(this,sat);var r=n?oat:iat,o=this._parents,a=this._groups;typeof t!="function"&&(t=rat(t));for(var u=a.length,f=new Array(u),h=new Array(u),d=new Array(u),g=0;g<u;++g){var v=o[g],b=a[g],w=b.length,S=aat(t.call(v,v&&v.__data__,g,o)),M=S.length,A=h[g]=new Array(M),E=f[g]=new Array(M),T=d[g]=new Array(w);r(v,b,A,E,T,S,n);for(var L=0,$=0,O,G;L<M;++L)if(O=A[L]){for(L>=$&&($=L+1);!(G=E[$])&&++$<M;);O._next=G||null}}return f=new $n(f,o),f._enter=h,f._exit=d,f}function aat(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function cat(){return new $n(this._exit||this._groups.map(Ly),this._parents)}function uat(t,n,r){var o=this.enter(),a=this,u=this.exit();return typeof t=="function"?(o=t(o),o&&(o=o.selection())):o=o.append(t+""),n!=null&&(a=n(a),a&&(a=a.selection())),r==null?u.remove():r(u),o&&a?o.merge(a).order():a}function fat(t){for(var n=t.selection?t.selection():t,r=this._groups,o=n._groups,a=r.length,u=o.length,f=Math.min(a,u),h=new Array(a),d=0;d<f;++d)for(var g=r[d],v=o[d],b=g.length,w=h[d]=new Array(b),S,M=0;M<b;++M)(S=g[M]||v[M])&&(w[M]=S);for(;d<a;++d)h[d]=r[d];return new $n(h,this._parents)}function hat(){for(var t=this._groups,n=-1,r=t.length;++n<r;)for(var o=t[n],a=o.length-1,u=o[a],f;--a>=0;)(f=o[a])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function dat(t){t||(t=pat);function n(b,w){return b&&w?t(b.__data__,w.__data__):!b-!w}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,d=a[u]=new Array(h),g,v=0;v<h;++v)(g=f[v])&&(d[v]=g);d.sort(n)}return new $n(a,this._parents).order()}function pat(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function gat(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function vat(){return Array.from(this)}function mat(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],a=0,u=o.length;a<u;++a){var f=o[a];if(f)return f}return null}function yat(){let t=0;for(const n of this)++t;return t}function bat(){return!this.node()}function wat(t){for(var n=this._groups,r=0,o=n.length;r<o;++r)for(var a=n[r],u=0,f=a.length,h;u<f;++u)(h=a[u])&&t.call(h,h.__data__,u,a);return this}function xat(t){return function(){this.removeAttribute(t)}}function _at(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Sat(t,n){return function(){this.setAttribute(t,n)}}function kat(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Cat(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Tat(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Lat(t,n){var r=_c(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((n==null?r.local?_at:xat:typeof n=="function"?r.local?Tat:Cat:r.local?kat:Sat)(r,n))}function Ey(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Eat(t){return function(){this.style.removeProperty(t)}}function Aat(t,n,r){return function(){this.style.setProperty(t,n,r)}}function Mat(t,n,r){return function(){var o=n.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Nat(t,n,r){return arguments.length>1?this.each((n==null?Eat:typeof n=="function"?Mat:Aat)(t,n,r??"")):Xo(this.node(),t)}function Xo(t,n){return t.style.getPropertyValue(n)||Ey(t).getComputedStyle(t,null).getPropertyValue(n)}function Pat(t){return function(){delete this[t]}}function Oat(t,n){return function(){this[t]=n}}function $at(t,n){return function(){var r=n.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Dat(t,n){return arguments.length>1?this.each((n==null?Pat:typeof n=="function"?$at:Oat)(t,n)):this.node()[t]}function Ay(t){return t.trim().split(/^|\s+/)}function gh(t){return t.classList||new My(t)}function My(t){this._node=t,this._names=Ay(t.getAttribute("class")||"")}My.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 Ny(t,n){for(var r=gh(t),o=-1,a=n.length;++o<a;)r.add(n[o])}function Py(t,n){for(var r=gh(t),o=-1,a=n.length;++o<a;)r.remove(n[o])}function Rat(t){return function(){Ny(this,t)}}function zat(t){return function(){Py(this,t)}}function Iat(t,n){return function(){(n.apply(this,arguments)?Ny:Py)(this,t)}}function Fat(t,n){var r=Ay(t+"");if(arguments.length<2){for(var o=gh(this.node()),a=-1,u=r.length;++a<u;)if(!o.contains(r[a]))return!1;return!0}return this.each((typeof n=="function"?Iat:n?Rat:zat)(r,n))}function qat(){this.textContent=""}function Hat(t){return function(){this.textContent=t}}function Bat(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function Wat(t){return arguments.length?this.each(t==null?qat:(typeof t=="function"?Bat:Hat)(t)):this.node().textContent}function Uat(){this.innerHTML=""}function jat(t){return function(){this.innerHTML=t}}function Gat(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function Vat(t){return arguments.length?this.each(t==null?Uat:(typeof t=="function"?Gat:jat)(t)):this.node().innerHTML}function Kat(){this.nextSibling&&this.parentNode.appendChild(this)}function Xat(){return this.each(Kat)}function Yat(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zat(){return this.each(Yat)}function Jat(t){var n=typeof t=="function"?t:Sy(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function Qat(){return null}function tct(t,n){var r=typeof t=="function"?t:Sy(t),o=n==null?Qat:typeof n=="function"?n:ph(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function ect(){var t=this.parentNode;t&&t.removeChild(this)}function nct(){return this.each(ect)}function rct(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ict(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function oct(t){return this.select(t?ict:rct)}function sct(t){return arguments.length?this.property("__data__",t):this.node().__data__}function lct(t){return function(n){t.call(this,n,this.__data__)}}function act(t){return t.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");return o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),{type:n,name:r}})}function cct(t){return function(){var n=this.__on;if(!!n){for(var r=0,o=-1,a=n.length,u;r<a;++r)u=n[r],(!t.type||u.type===t.type)&&u.name===t.name?this.removeEventListener(u.type,u.listener,u.options):n[++o]=u;++o?n.length=o:delete this.__on}}}function uct(t,n,r){return function(){var o=this.__on,a,u=lct(n);if(o){for(var f=0,h=o.length;f<h;++f)if((a=o[f]).type===t.type&&a.name===t.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=r),a.value=n;return}}this.addEventListener(t.type,u,r),a={type:t.type,name:t.name,value:n,listener:u,options:r},o?o.push(a):this.__on=[a]}}function fct(t,n,r){var o=act(t+""),a,u=o.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var d=0,g=h.length,v;d<g;++d)for(a=0,v=h[d];a<u;++a)if((f=o[a]).type===v.type&&f.name===v.name)return v.value}return}for(h=n?uct:cct,a=0;a<u;++a)this.each(h(o[a],n,r));return this}function Oy(t,n,r){var o=Ey(t),a=o.CustomEvent;typeof a=="function"?a=new a(n,r):(a=o.document.createEvent("Event"),r?(a.initEvent(n,r.bubbles,r.cancelable),a.detail=r.detail):a.initEvent(n,!1,!1)),t.dispatchEvent(a)}function hct(t,n){return function(){return Oy(this,t,n)}}function dct(t,n){return function(){return Oy(this,t,n.apply(this,arguments))}}function pct(t,n){return this.each((typeof n=="function"?dct:hct)(t,n))}function*gct(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],a=0,u=o.length,f;a<u;++a)(f=o[a])&&(yield f)}var $y=[null];function $n(t,n){this._groups=t,this._parents=n}function ml(){return new $n([[document.documentElement]],$y)}function vct(){return this}$n.prototype=ml.prototype={constructor:$n,select:Blt,selectAll:Glt,selectChild:Ylt,selectChildren:tat,filter:eat,data:lat,enter:nat,exit:cat,join:uat,merge:fat,selection:vct,order:hat,sort:dat,call:gat,nodes:vat,node:mat,size:yat,empty:bat,each:wat,attr:Lat,style:Nat,property:Dat,classed:Fat,text:Wat,html:Vat,raise:Xat,lower:Zat,append:Jat,insert:tct,remove:nct,clone:oct,datum:sct,on:fct,dispatch:pct,[Symbol.iterator]:gct};function _n(t){return typeof t=="string"?new $n([[document.querySelector(t)]],[document.documentElement]):new $n([[t]],$y)}function mct(t){let n;for(;n=t.sourceEvent;)t=n;return t}function Mr(t,n){if(t=mct(t),n===void 0&&(n=t.currentTarget),n){var r=n.ownerSVGElement||n;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=t.clientX,o.y=t.clientY,o=o.matrixTransform(n.getScreenCTM().inverse()),[o.x,o.y]}if(n.getBoundingClientRect){var a=n.getBoundingClientRect();return[t.clientX-a.left-n.clientLeft,t.clientY-a.top-n.clientTop]}}return[t.pageX,t.pageY]}class hn{constructor(n,r){this.x=n,this.y=r}static of([n,r]){return new hn(n,r)}add(n){return new hn(this.x+n.x,this.y+n.y)}subtract(n){return new hn(this.x-n.x,this.y-n.y)}multiply(n){return new hn(this.x*n,this.y*n)}divide(n){return new hn(this.x/n,this.y/n)}dot(n){return this.x*n.x+this.y*n.y}cross(n){return this.x*n.y-n.x*this.y}hadamard(n){return new hn(this.x*n.x,this.y*n.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const n=this.length();return new hn(this.x/n,this.y/n)}rotateByRadians(n){const r=Math.cos(n),o=Math.sin(n);return new hn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(n){return this.rotateByRadians(n*Math.PI/180)}}var yct={value:()=>{}};function yl(){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 Ca(r)}function Ca(t){this._=t}function bct(t,n){return t.trim().split(/^|\s+/).map(function(r){var o="",a=r.indexOf(".");if(a>=0&&(o=r.slice(a+1),r=r.slice(0,a)),r&&!n.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Ca.prototype=yl.prototype={constructor:Ca,on:function(t,n){var r=this._,o=bct(t+"",r),a,u=-1,f=o.length;if(arguments.length<2){for(;++u<f;)if((a=(t=o[u]).type)&&(a=wct(r[a],t.name)))return a;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++u<f;)if(a=(t=o[u]).type)r[a]=xv(r[a],t.name,n);else if(n==null)for(a in r)r[a]=xv(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 Ca(t)},call:function(t,n){if((a=arguments.length-2)>0)for(var r=new Array(a),o=0,a,u;o<a;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=this._[t],o=0,a=u.length;o<a;++o)u[o].value.apply(n,r)},apply:function(t,n,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],a=0,u=o.length;a<u;++a)o[a].value.apply(n,r)}};function wct(t,n){for(var r=0,o=t.length,a;r<o;++r)if((a=t[r]).name===n)return a.value}function xv(t,n,r){for(var o=0,a=t.length;o<a;++o)if(t[o].name===n){t[o]=yct,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:n,value:r}),t}const xct={passive:!1},sl={capture:!0,passive:!1};function Ru(t){t.stopImmediatePropagation()}function Do(t){t.preventDefault(),t.stopImmediatePropagation()}function Dy(t){var n=t.document.documentElement,r=_n(t).on("dragstart.drag",Do,sl);"onselectstart"in n?r.on("selectstart.drag",Do,sl):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function Ry(t,n){var r=t.document.documentElement,o=_n(t).on("dragstart.drag",null);n&&(o.on("click.drag",Do,sl),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 ua=t=>()=>t;function bf(t,{sourceEvent:n,subject:r,target:o,identifier:a,active:u,x:f,y:h,dx:d,dy:g,dispatch:v}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:u,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:d,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:v}})}bf.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function _ct(t){return!t.ctrlKey&&!t.button}function Sct(){return this.parentNode}function kct(t,n){return n??{x:t.x,y:t.y}}function Cct(){return navigator.maxTouchPoints||"ontouchstart"in this}function Tct(){var t=_ct,n=Sct,r=kct,o=Cct,a={},u=yl("start","drag","end"),f=0,h,d,g,v,b=0;function w(O){O.on("mousedown.drag",S).filter(o).on("touchstart.drag",E).on("touchmove.drag",T,xct).on("touchend.drag touchcancel.drag",L).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(O,G){if(!(v||!t.call(this,O,G))){var V=$(this,n.call(this,O,G),O,G,"mouse");!V||(_n(O.view).on("mousemove.drag",M,sl).on("mouseup.drag",A,sl),Dy(O.view),Ru(O),g=!1,h=O.clientX,d=O.clientY,V("start",O))}}function M(O){if(Do(O),!g){var G=O.clientX-h,V=O.clientY-d;g=G*G+V*V>b}a.mouse("drag",O)}function A(O){_n(O.view).on("mousemove.drag mouseup.drag",null),Ry(O.view,g),Do(O),a.mouse("end",O)}function E(O,G){if(!!t.call(this,O,G)){var V=O.changedTouches,rt=n.call(this,O,G),J=V.length,dt,gt;for(dt=0;dt<J;++dt)(gt=$(this,rt,O,G,V[dt].identifier,V[dt]))&&(Ru(O),gt("start",O,V[dt]))}}function T(O){var G=O.changedTouches,V=G.length,rt,J;for(rt=0;rt<V;++rt)(J=a[G[rt].identifier])&&(Do(O),J("drag",O,G[rt]))}function L(O){var G=O.changedTouches,V=G.length,rt,J;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),rt=0;rt<V;++rt)(J=a[G[rt].identifier])&&(Ru(O),J("end",O,G[rt]))}function $(O,G,V,rt,J,dt){var gt=u.copy(),kt=Mr(dt||V,G),ut,U,z;if((z=r.call(O,new bf("beforestart",{sourceEvent:V,target:w,identifier:J,active:f,x:kt[0],y:kt[1],dx:0,dy:0,dispatch:gt}),rt))!=null)return ut=z.x-kt[0]||0,U=z.y-kt[1]||0,function k(H,W,et){var wt=kt,At;switch(H){case"start":a[J]=k,At=f++;break;case"end":delete a[J],--f;case"drag":kt=Mr(et||W,G),At=f;break}gt.call(H,O,new bf(H,{sourceEvent:W,subject:z,target:w,identifier:J,active:At,x:kt[0]+ut,y:kt[1]+U,dx:kt[0]-wt[0],dy:kt[1]-wt[1],dispatch:gt}),rt)}}return w.filter=function(O){return arguments.length?(t=typeof O=="function"?O:ua(!!O),w):t},w.container=function(O){return arguments.length?(n=typeof O=="function"?O:ua(O),w):n},w.subject=function(O){return arguments.length?(r=typeof O=="function"?O:ua(O),w):r},w.touchable=function(O){return arguments.length?(o=typeof O=="function"?O:ua(!!O),w):o},w.on=function(){var O=u.on.apply(u,arguments);return O===u?w:O},w.clickDistance=function(O){return arguments.length?(b=(O=+O)*O,w):Math.sqrt(b)},w}function vh(t,n,r){t.prototype=n.prototype=r,r.constructor=t}function zy(t,n){var r=Object.create(t.prototype);for(var o in n)r[o]=n[o];return r}function bl(){}var ll=.7,Ua=1/ll,Ro="\\s*([+-]?\\d+)\\s*",al="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Lct=/^#([0-9a-f]{3,8})$/,Ect=new RegExp(`^rgb\\(${Ro},${Ro},${Ro}\\)$`),Act=new RegExp(`^rgb\\(${fr},${fr},${fr}\\)$`),Mct=new RegExp(`^rgba\\(${Ro},${Ro},${Ro},${al}\\)$`),Nct=new RegExp(`^rgba\\(${fr},${fr},${fr},${al}\\)$`),Pct=new RegExp(`^hsl\\(${al},${fr},${fr}\\)$`),Oct=new RegExp(`^hsla\\(${al},${fr},${fr},${al}\\)$`),_v={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};vh(bl,cl,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Sv,formatHex:Sv,formatHex8:$ct,formatHsl:Dct,formatRgb:kv,toString:kv});function Sv(){return this.rgb().formatHex()}function $ct(){return this.rgb().formatHex8()}function Dct(){return Iy(this).formatHsl()}function kv(){return this.rgb().formatRgb()}function cl(t){var n,r;return t=(t+"").trim().toLowerCase(),(n=Lct.exec(t))?(r=n[1].length,n=parseInt(n[1],16),r===6?Cv(n):r===3?new Sn(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):r===8?fa(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):r===4?fa(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=Ect.exec(t))?new Sn(n[1],n[2],n[3],1):(n=Act.exec(t))?new Sn(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Mct.exec(t))?fa(n[1],n[2],n[3],n[4]):(n=Nct.exec(t))?fa(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Pct.exec(t))?Ev(n[1],n[2]/100,n[3]/100,1):(n=Oct.exec(t))?Ev(n[1],n[2]/100,n[3]/100,n[4]):_v.hasOwnProperty(t)?Cv(_v[t]):t==="transparent"?new Sn(NaN,NaN,NaN,0):null}function Cv(t){return new Sn(t>>16&255,t>>8&255,t&255,1)}function fa(t,n,r,o){return o<=0&&(t=n=r=NaN),new Sn(t,n,r,o)}function Rct(t){return t instanceof bl||(t=cl(t)),t?(t=t.rgb(),new Sn(t.r,t.g,t.b,t.opacity)):new Sn}function wf(t,n,r,o){return arguments.length===1?Rct(t):new Sn(t,n,r,o??1)}function Sn(t,n,r,o){this.r=+t,this.g=+n,this.b=+r,this.opacity=+o}vh(Sn,wf,zy(bl,{brighter(t){return t=t==null?Ua:Math.pow(Ua,t),new Sn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?ll:Math.pow(ll,t),new Sn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Sn(Vi(this.r),Vi(this.g),Vi(this.b),ja(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:Tv,formatHex:Tv,formatHex8:zct,formatRgb:Lv,toString:Lv}));function Tv(){return`#${Wi(this.r)}${Wi(this.g)}${Wi(this.b)}`}function zct(){return`#${Wi(this.r)}${Wi(this.g)}${Wi(this.b)}${Wi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Lv(){const t=ja(this.opacity);return`${t===1?"rgb(":"rgba("}${Vi(this.r)}, ${Vi(this.g)}, ${Vi(this.b)}${t===1?")":`, ${t})`}`}function ja(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Vi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Wi(t){return t=Vi(t),(t<16?"0":"")+t.toString(16)}function Ev(t,n,r,o){return o<=0?t=n=r=NaN:r<=0||r>=1?t=n=NaN:n<=0&&(t=NaN),new Kn(t,n,r,o)}function Iy(t){if(t instanceof Kn)return new Kn(t.h,t.s,t.l,t.opacity);if(t instanceof bl||(t=cl(t)),!t)return new Kn;if(t instanceof Kn)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,d=(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/=d<.5?u+a:2-u-a,f*=60):h=d>0&&d<1?0:f,new Kn(f,h,d,t.opacity)}function Ict(t,n,r,o){return arguments.length===1?Iy(t):new Kn(t,n,r,o??1)}function Kn(t,n,r,o){this.h=+t,this.s=+n,this.l=+r,this.opacity=+o}vh(Kn,Ict,zy(bl,{brighter(t){return t=t==null?Ua:Math.pow(Ua,t),new Kn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ll:Math.pow(ll,t),new Kn(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(zu(t>=240?t-240:t+120,a,o),zu(t,a,o),zu(t<120?t+240:t-120,a,o),this.opacity)},clamp(){return new Kn(Av(this.h),ha(this.s),ha(this.l),ja(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=ja(this.opacity);return`${t===1?"hsl(":"hsla("}${Av(this.h)}, ${ha(this.s)*100}%, ${ha(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Av(t){return t=(t||0)%360,t<0?t+360:t}function ha(t){return Math.max(0,Math.min(1,t||0))}function zu(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 Fy=t=>()=>t;function Fct(t,n){return function(r){return t+r*n}}function qct(t,n,r){return t=Math.pow(t,r),n=Math.pow(n,r)-t,r=1/r,function(o){return Math.pow(t+o*n,r)}}function Hct(t){return(t=+t)==1?qy:function(n,r){return r-n?qct(n,r,t):Fy(isNaN(n)?r:n)}}function qy(t,n){var r=n-t;return r?Fct(t,r):Fy(isNaN(t)?n:t)}const Mv=function t(n){var r=Hct(n);function o(a,u){var f=r((a=wf(a)).r,(u=wf(u)).r),h=r(a.g,u.g),d=r(a.b,u.b),g=qy(a.opacity,u.opacity);return function(v){return a.r=f(v),a.g=h(v),a.b=d(v),a.opacity=g(v),a+""}}return o.gamma=t,o}(1);function ci(t,n){return t=+t,n=+n,function(r){return t*(1-r)+n*r}}var xf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Iu=new RegExp(xf.source,"g");function Bct(t){return function(){return t}}function Wct(t){return function(n){return t(n)+""}}function Uct(t,n){var r=xf.lastIndex=Iu.lastIndex=0,o,a,u,f=-1,h=[],d=[];for(t=t+"",n=n+"";(o=xf.exec(t))&&(a=Iu.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,d.push({i:f,x:ci(o,a)})),r=Iu.lastIndex;return r<n.length&&(u=n.slice(r),h[f]?h[f]+=u:h[++f]=u),h.length<2?d[0]?Wct(d[0].x):Bct(n):(n=d.length,function(g){for(var v=0,b;v<n;++v)h[(b=d[v]).i]=b.x(g);return h.join("")})}var Nv=180/Math.PI,_f={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Hy(t,n,r,o,a,u){var f,h,d;return(f=Math.sqrt(t*t+n*n))&&(t/=f,n/=f),(d=t*r+n*o)&&(r-=t*d,o-=n*d),(h=Math.sqrt(r*r+o*o))&&(r/=h,o/=h,d/=h),t*o<n*r&&(t=-t,n=-n,d=-d,f=-f),{translateX:a,translateY:u,rotate:Math.atan2(n,t)*Nv,skewX:Math.atan(d)*Nv,scaleX:f,scaleY:h}}var da;function jct(t){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?_f:Hy(n.a,n.b,n.c,n.d,n.e,n.f)}function Gct(t){return t==null||(da||(da=document.createElementNS("http://www.w3.org/2000/svg","g")),da.setAttribute("transform",t),!(t=da.transform.baseVal.consolidate()))?_f:(t=t.matrix,Hy(t.a,t.b,t.c,t.d,t.e,t.f))}function By(t,n,r,o){function a(g){return g.length?g.pop()+" ":""}function u(g,v,b,w,S,M){if(g!==b||v!==w){var A=S.push("translate(",null,n,null,r);M.push({i:A-4,x:ci(g,b)},{i:A-2,x:ci(v,w)})}else(b||w)&&S.push("translate("+b+n+w+r)}function f(g,v,b,w){g!==v?(g-v>180?v+=360:v-g>180&&(g+=360),w.push({i:b.push(a(b)+"rotate(",null,o)-2,x:ci(g,v)})):v&&b.push(a(b)+"rotate("+v+o)}function h(g,v,b,w){g!==v?w.push({i:b.push(a(b)+"skewX(",null,o)-2,x:ci(g,v)}):v&&b.push(a(b)+"skewX("+v+o)}function d(g,v,b,w,S,M){if(g!==b||v!==w){var A=S.push(a(S)+"scale(",null,",",null,")");M.push({i:A-4,x:ci(g,b)},{i:A-2,x:ci(v,w)})}else(b!==1||w!==1)&&S.push(a(S)+"scale("+b+","+w+")")}return function(g,v){var b=[],w=[];return g=t(g),v=t(v),u(g.translateX,g.translateY,v.translateX,v.translateY,b,w),f(g.rotate,v.rotate,b,w),h(g.skewX,v.skewX,b,w),d(g.scaleX,g.scaleY,v.scaleX,v.scaleY,b,w),g=v=null,function(S){for(var M=-1,A=w.length,E;++M<A;)b[(E=w[M]).i]=E.x(S);return b.join("")}}}var Vct=By(jct,"px, ","px)","deg)"),Kct=By(Gct,", ",")",")"),Xct=1e-12;function Pv(t){return((t=Math.exp(t))+1/t)/2}function Yct(t){return((t=Math.exp(t))-1/t)/2}function Zct(t){return((t=Math.exp(2*t))-1)/(t+1)}const Jct=function t(n,r,o){function a(u,f){var h=u[0],d=u[1],g=u[2],v=f[0],b=f[1],w=f[2],S=v-h,M=b-d,A=S*S+M*M,E,T;if(A<Xct)T=Math.log(w/g)/n,E=function(rt){return[h+rt*S,d+rt*M,g*Math.exp(n*rt*T)]};else{var L=Math.sqrt(A),$=(w*w-g*g+o*A)/(2*g*r*L),O=(w*w-g*g-o*A)/(2*w*r*L),G=Math.log(Math.sqrt($*$+1)-$),V=Math.log(Math.sqrt(O*O+1)-O);T=(V-G)/n,E=function(rt){var J=rt*T,dt=Pv(G),gt=g/(r*L)*(dt*Zct(n*J+G)-Yct(G));return[h+gt*S,d+gt*M,g*dt/Pv(n*J+G)]}}return E.duration=T*1e3*n/Math.SQRT2,E}return a.rho=function(u){var f=Math.max(.001,+u),h=f*f,d=h*h;return t(f,h,d)},a}(Math.SQRT2,2,4);var Yo=0,qs=0,zs=0,Wy=1e3,Ga,Hs,Va=0,Zi=0,Sc=0,ul=typeof performance=="object"&&performance.now?performance:Date,Uy=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function mh(){return Zi||(Uy(Qct),Zi=ul.now()+Sc)}function Qct(){Zi=0}function Ka(){this._call=this._time=this._next=null}Ka.prototype=yh.prototype={constructor:Ka,restart:function(t,n,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?mh():+r)+(n==null?0:+n),!this._next&&Hs!==this&&(Hs?Hs._next=this:Ga=this,Hs=this),this._call=t,this._time=r,Sf()},stop:function(){this._call&&(this._call=null,this._time=1/0,Sf())}};function yh(t,n,r){var o=new Ka;return o.restart(t,n,r),o}function tut(){mh(),++Yo;for(var t=Ga,n;t;)(n=Zi-t._time)>=0&&t._call.call(void 0,n),t=t._next;--Yo}function Ov(){Zi=(Va=ul.now())+Sc,Yo=qs=0;try{tut()}finally{Yo=0,nut(),Zi=0}}function eut(){var t=ul.now(),n=t-Va;n>Wy&&(Sc-=n,Va=t)}function nut(){for(var t,n=Ga,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:Ga=r);Hs=t,Sf(o)}function Sf(t){if(!Yo){qs&&(qs=clearTimeout(qs));var n=t-Zi;n>24?(t<1/0&&(qs=setTimeout(Ov,t-ul.now()-Sc)),zs&&(zs=clearInterval(zs))):(zs||(Va=ul.now(),zs=setInterval(eut,Wy)),Yo=1,Uy(Ov))}}function $v(t,n,r){var o=new Ka;return n=n==null?0:+n,o.restart(a=>{o.stop(),t(a+n)},n,r),o}var rut=yl("start","end","cancel","interrupt"),iut=[],jy=0,Dv=1,kf=2,Ta=3,Rv=4,Cf=5,La=6;function kc(t,n,r,o,a,u){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;out(t,r,{name:n,index:o,group:a,on:rut,tween:iut,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:jy})}function bh(t,n){var r=Jn(t,n);if(r.state>jy)throw new Error("too late; already scheduled");return r}function gr(t,n){var r=Jn(t,n);if(r.state>Ta)throw new Error("too late; already running");return r}function Jn(t,n){var r=t.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function out(t,n,r){var o=t.__transition,a;o[n]=r,r.timer=yh(u,0,r.time);function u(g){r.state=Dv,r.timer.restart(f,r.delay,r.time),r.delay<=g&&f(g-r.delay)}function f(g){var v,b,w,S;if(r.state!==Dv)return d();for(v in o)if(S=o[v],S.name===r.name){if(S.state===Ta)return $v(f);S.state===Rv?(S.state=La,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete o[v]):+v<n&&(S.state=La,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete o[v])}if($v(function(){r.state===Ta&&(r.state=Rv,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=kf,r.on.call("start",t,t.__data__,r.index,r.group),r.state===kf){for(r.state=Ta,a=new Array(w=r.tween.length),v=0,b=-1;v<w;++v)(S=r.tween[v].value.call(t,t.__data__,r.index,r.group))&&(a[++b]=S);a.length=b+1}}function h(g){for(var v=g<r.duration?r.ease.call(null,g/r.duration):(r.timer.restart(d),r.state=Cf,1),b=-1,w=a.length;++b<w;)a[b].call(t,v);r.state===Cf&&(r.on.call("end",t,t.__data__,r.index,r.group),d())}function d(){r.state=La,r.timer.stop(),delete o[n];for(var g in o)return;delete t.__transition}}function Ea(t,n){var r=t.__transition,o,a,u=!0,f;if(!!r){n=n==null?null:n+"";for(f in r){if((o=r[f]).name!==n){u=!1;continue}a=o.state>kf&&o.state<Cf,o.state=La,o.timer.stop(),o.on.call(a?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[f]}u&&delete t.__transition}}function sut(t){return this.each(function(){Ea(this,t)})}function lut(t,n){var r,o;return function(){var a=gr(this,t),u=a.tween;if(u!==r){o=r=u;for(var f=0,h=o.length;f<h;++f)if(o[f].name===n){o=o.slice(),o.splice(f,1);break}}a.tween=o}}function aut(t,n,r){var o,a;if(typeof r!="function")throw new Error;return function(){var u=gr(this,t),f=u.tween;if(f!==o){a=(o=f).slice();for(var h={name:n,value:r},d=0,g=a.length;d<g;++d)if(a[d].name===n){a[d]=h;break}d===g&&a.push(h)}u.tween=a}}function cut(t,n){var r=this._id;if(t+="",arguments.length<2){for(var o=Jn(this.node(),r).tween,a=0,u=o.length,f;a<u;++a)if((f=o[a]).name===t)return f.value;return null}return this.each((n==null?lut:aut)(r,t,n))}function wh(t,n,r){var o=t._id;return t.each(function(){var a=gr(this,o);(a.value||(a.value={}))[n]=r.apply(this,arguments)}),function(a){return Jn(a,o).value[n]}}function Gy(t,n){var r;return(typeof n=="number"?ci:n instanceof cl?Mv:(r=cl(n))?(n=r,Mv):Uct)(t,n)}function uut(t){return function(){this.removeAttribute(t)}}function fut(t){return function(){this.removeAttributeNS(t.space,t.local)}}function hut(t,n,r){var o,a=r+"",u;return function(){var f=this.getAttribute(t);return f===a?null:f===o?u:u=n(o=f,r)}}function dut(t,n,r){var o,a=r+"",u;return function(){var f=this.getAttributeNS(t.space,t.local);return f===a?null:f===o?u:u=n(o=f,r)}}function put(t,n,r){var o,a,u;return function(){var f,h=r(this),d;return h==null?void this.removeAttribute(t):(f=this.getAttribute(t),d=h+"",f===d?null:f===o&&d===a?u:(a=d,u=n(o=f,h)))}}function gut(t,n,r){var o,a,u;return function(){var f,h=r(this),d;return h==null?void this.removeAttributeNS(t.space,t.local):(f=this.getAttributeNS(t.space,t.local),d=h+"",f===d?null:f===o&&d===a?u:(a=d,u=n(o=f,h)))}}function vut(t,n){var r=_c(t),o=r==="transform"?Kct:Gy;return this.attrTween(t,typeof n=="function"?(r.local?gut:put)(r,o,wh(this,"attr."+t,n)):n==null?(r.local?fut:uut)(r):(r.local?dut:hut)(r,o,n))}function mut(t,n){return function(r){this.setAttribute(t,n.call(this,r))}}function yut(t,n){return function(r){this.setAttributeNS(t.space,t.local,n.call(this,r))}}function but(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&yut(t,u)),r}return a._value=n,a}function wut(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&mut(t,u)),r}return a._value=n,a}function xut(t,n){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;var o=_c(t);return this.tween(r,(o.local?but:wut)(o,n))}function _ut(t,n){return function(){bh(this,t).delay=+n.apply(this,arguments)}}function Sut(t,n){return n=+n,function(){bh(this,t).delay=n}}function kut(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?_ut:Sut)(n,t)):Jn(this.node(),n).delay}function Cut(t,n){return function(){gr(this,t).duration=+n.apply(this,arguments)}}function Tut(t,n){return n=+n,function(){gr(this,t).duration=n}}function Lut(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Cut:Tut)(n,t)):Jn(this.node(),n).duration}function Eut(t,n){if(typeof n!="function")throw new Error;return function(){gr(this,t).ease=n}}function Aut(t){var n=this._id;return arguments.length?this.each(Eut(n,t)):Jn(this.node(),n).ease}function Mut(t,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;gr(this,t).ease=r}}function Nut(t){if(typeof t!="function")throw new Error;return this.each(Mut(this._id,t))}function Put(t){typeof t!="function"&&(t=Cy(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]=[],d,g=0;g<f;++g)(d=u[g])&&t.call(d,d.__data__,g,u)&&h.push(d);return new Fr(o,this._parents,this._name,this._id)}function Out(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,r=t._groups,o=n.length,a=r.length,u=Math.min(o,a),f=new Array(o),h=0;h<u;++h)for(var d=n[h],g=r[h],v=d.length,b=f[h]=new Array(v),w,S=0;S<v;++S)(w=d[S]||g[S])&&(b[S]=w);for(;h<o;++h)f[h]=n[h];return new Fr(f,this._parents,this._name,this._id)}function $ut(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 Dut(t,n,r){var o,a,u=$ut(n)?bh:gr;return function(){var f=u(this,t),h=f.on;h!==o&&(a=(o=h).copy()).on(n,r),f.on=a}}function Rut(t,n){var r=this._id;return arguments.length<2?Jn(this.node(),r).on.on(t):this.each(Dut(r,t,n))}function zut(t){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==t)return;n&&n.removeChild(this)}}function Iut(){return this.on("end.remove",zut(this._id))}function Fut(t){var n=this._name,r=this._id;typeof t!="function"&&(t=ph(t));for(var o=this._groups,a=o.length,u=new Array(a),f=0;f<a;++f)for(var h=o[f],d=h.length,g=u[f]=new Array(d),v,b,w=0;w<d;++w)(v=h[w])&&(b=t.call(v,v.__data__,w,h))&&("__data__"in v&&(b.__data__=v.__data__),g[w]=b,kc(g[w],n,r,w,g,Jn(v,r)));return new Fr(u,this._parents,n,r)}function qut(t){var n=this._name,r=this._id;typeof t!="function"&&(t=ky(t));for(var o=this._groups,a=o.length,u=[],f=[],h=0;h<a;++h)for(var d=o[h],g=d.length,v,b=0;b<g;++b)if(v=d[b]){for(var w=t.call(v,v.__data__,b,d),S,M=Jn(v,r),A=0,E=w.length;A<E;++A)(S=w[A])&&kc(S,n,r,A,w,M);u.push(w),f.push(v)}return new Fr(u,f,n,r)}var Hut=ml.prototype.constructor;function But(){return new Hut(this._groups,this._parents)}function Wut(t,n){var r,o,a;return function(){var u=Xo(this,t),f=(this.style.removeProperty(t),Xo(this,t));return u===f?null:u===r&&f===o?a:a=n(r=u,o=f)}}function Vy(t){return function(){this.style.removeProperty(t)}}function Uut(t,n,r){var o,a=r+"",u;return function(){var f=Xo(this,t);return f===a?null:f===o?u:u=n(o=f,r)}}function jut(t,n,r){var o,a,u;return function(){var f=Xo(this,t),h=r(this),d=h+"";return h==null&&(d=h=(this.style.removeProperty(t),Xo(this,t))),f===d?null:f===o&&d===a?u:(a=d,u=n(o=f,h))}}function Gut(t,n){var r,o,a,u="style."+n,f="end."+u,h;return function(){var d=gr(this,t),g=d.on,v=d.value[u]==null?h||(h=Vy(n)):void 0;(g!==r||a!==v)&&(o=(r=g).copy()).on(f,a=v),d.on=o}}function Vut(t,n,r){var o=(t+="")=="transform"?Vct:Gy;return n==null?this.styleTween(t,Wut(t,o)).on("end.style."+t,Vy(t)):typeof n=="function"?this.styleTween(t,jut(t,o,wh(this,"style."+t,n))).each(Gut(this._id,t)):this.styleTween(t,Uut(t,o,n),r).on("end.style."+t,null)}function Kut(t,n,r){return function(o){this.style.setProperty(t,n.call(this,o),r)}}function Xut(t,n,r){var o,a;function u(){var f=n.apply(this,arguments);return f!==a&&(o=(a=f)&&Kut(t,f,r)),o}return u._value=n,u}function Yut(t,n,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(n==null)return this.tween(o,null);if(typeof n!="function")throw new Error;return this.tween(o,Xut(t,n,r??""))}function Zut(t){return function(){this.textContent=t}}function Jut(t){return function(){var n=t(this);this.textContent=n??""}}function Qut(t){return this.tween("text",typeof t=="function"?Jut(wh(this,"text",t)):Zut(t==null?"":t+""))}function tft(t){return function(n){this.textContent=t.call(this,n)}}function eft(t){var n,r;function o(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&tft(a)),n}return o._value=t,o}function nft(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,eft(t))}function rft(){for(var t=this._name,n=this._id,r=Ky(),o=this._groups,a=o.length,u=0;u<a;++u)for(var f=o[u],h=f.length,d,g=0;g<h;++g)if(d=f[g]){var v=Jn(d,n);kc(d,t,r,g,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Fr(o,this._parents,t,r)}function ift(){var t,n,r=this,o=r._id,a=r.size();return new Promise(function(u,f){var h={value:f},d={value:function(){--a===0&&u()}};r.each(function(){var g=gr(this,o),v=g.on;v!==t&&(n=(t=v).copy(),n._.cancel.push(h),n._.interrupt.push(h),n._.end.push(d)),g.on=n}),a===0&&u()})}var oft=0;function Fr(t,n,r,o){this._groups=t,this._parents=n,this._name=r,this._id=o}function Ky(){return++oft}var Er=ml.prototype;Fr.prototype={constructor:Fr,select:Fut,selectAll:qut,selectChild:Er.selectChild,selectChildren:Er.selectChildren,filter:Put,merge:Out,selection:But,transition:rft,call:Er.call,nodes:Er.nodes,node:Er.node,size:Er.size,empty:Er.empty,each:Er.each,on:Rut,attr:vut,attrTween:xut,style:Vut,styleTween:Yut,text:Qut,textTween:nft,remove:Iut,tween:cut,delay:kut,duration:Lut,ease:Aut,easeVarying:Nut,end:ift,[Symbol.iterator]:Er[Symbol.iterator]};function sft(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var lft={time:null,delay:0,duration:250,ease:sft};function aft(t,n){for(var r;!(r=t.__transition)||!(r=r[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return r}function cft(t){var n,r;t instanceof Fr?(n=t._id,t=t._name):(n=Ky(),(r=lft).time=mh(),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,d,g=0;g<h;++g)(d=f[g])&&kc(d,t,n,g,f,r||aft(d,n));return new Fr(o,this._parents,t,n)}ml.prototype.interrupt=sut;ml.prototype.transition=cft;const pa=t=>()=>t;function uft(t,{sourceEvent:n,target:r,transform:o,dispatch:a}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function 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 xh=new Or(1,0,0);Or.prototype;function Fu(t){t.stopImmediatePropagation()}function Is(t){t.preventDefault(),t.stopImmediatePropagation()}function fft(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function hft(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function zv(){return this.__zoom||xh}function dft(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function pft(){return navigator.maxTouchPoints||"ontouchstart"in this}function gft(t,n,r){var o=t.invertX(n[0][0])-r[0][0],a=t.invertX(n[1][0])-r[1][0],u=t.invertY(n[0][1])-r[0][1],f=t.invertY(n[1][1])-r[1][1];return t.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function vft(){var t=fft,n=hft,r=gft,o=dft,a=pft,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,d=Jct,g=yl("start","zoom","end"),v,b,w,S=500,M=150,A=0,E=10;function T(z){z.property("__zoom",zv).on("wheel.zoom",J,{passive:!1}).on("mousedown.zoom",dt).on("dblclick.zoom",gt).filter(a).on("touchstart.zoom",kt).on("touchmove.zoom",ut).on("touchend.zoom touchcancel.zoom",U).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}T.transform=function(z,k,H,W){var et=z.selection?z.selection():z;et.property("__zoom",zv),z!==et?G(z,k,H,W):et.interrupt().each(function(){V(this,arguments).event(W).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},T.scaleBy=function(z,k,H,W){T.scaleTo(z,function(){var et=this.__zoom.k,wt=typeof k=="function"?k.apply(this,arguments):k;return et*wt},H,W)},T.scaleTo=function(z,k,H,W){T.transform(z,function(){var et=n.apply(this,arguments),wt=this.__zoom,At=H==null?O(et):typeof H=="function"?H.apply(this,arguments):H,qt=wt.invert(At),Bt=typeof k=="function"?k.apply(this,arguments):k;return r($(L(wt,Bt),At,qt),et,f)},H,W)},T.translateBy=function(z,k,H,W){T.transform(z,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)},T.translateTo=function(z,k,H,W,et){T.transform(z,function(){var wt=n.apply(this,arguments),At=this.__zoom,qt=W==null?O(wt):typeof W=="function"?W.apply(this,arguments):W;return r(xh.translate(qt[0],qt[1]).scale(At.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof H=="function"?-H.apply(this,arguments):-H),wt,f)},W,et)};function L(z,k){return k=Math.max(u[0],Math.min(u[1],k)),k===z.k?z:new Or(k,z.x,z.y)}function $(z,k,H){var W=k[0]-H[0]*z.k,et=k[1]-H[1]*z.k;return W===z.x&&et===z.y?z:new Or(z.k,W,et)}function O(z){return[(+z[0][0]+ +z[1][0])/2,(+z[0][1]+ +z[1][1])/2]}function G(z,k,H,W){z.on("start.zoom",function(){V(this,arguments).event(W).start()}).on("interrupt.zoom end.zoom",function(){V(this,arguments).event(W).end()}).tween("zoom",function(){var et=this,wt=arguments,At=V(et,wt).event(W),qt=n.apply(et,wt),Bt=H==null?O(qt):typeof H=="function"?H.apply(et,wt):H,Gt=Math.max(qt[1][0]-qt[0][0],qt[1][1]-qt[0][1]),ie=et.__zoom,Q=typeof k=="function"?k.apply(et,wt):k,tt=d(ie.invert(Bt).concat(Gt/ie.k),Q.invert(Bt).concat(Gt/Q.k));return function(K){if(K===1)K=Q;else{var st=tt(K),Ct=Gt/st[2];K=new Or(Ct,Bt[0]-st[0]*Ct,Bt[1]-st[1]*Ct)}At.zoom(null,K)}})}function V(z,k,H){return!H&&z.__zooming||new rt(z,k)}function rt(z,k){this.that=z,this.args=k,this.active=0,this.sourceEvent=null,this.extent=n.apply(z,k),this.taps=0}rt.prototype={event:function(z){return z&&(this.sourceEvent=z),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(z,k){return this.mouse&&z!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&z!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&z!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(z){var k=_n(this.that).datum();g.call(z,this.that,new uft(z,{sourceEvent:this.sourceEvent,target:T,type:z,transform:this.that.__zoom,dispatch:g}),k)}};function J(z,...k){if(!t.apply(this,arguments))return;var H=V(this,k).event(z),W=this.__zoom,et=Math.max(u[0],Math.min(u[1],W.k*Math.pow(2,o.apply(this,arguments)))),wt=Mr(z);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)],Ea(this),H.start()}Is(z),H.wheel=setTimeout(At,M),H.zoom("mouse",r($(L(W,et),H.mouse[0],H.mouse[1]),H.extent,f));function At(){H.wheel=null,H.end()}}function dt(z,...k){if(w||!t.apply(this,arguments))return;var H=z.currentTarget,W=V(this,k,!0).event(z),et=_n(z.view).on("mousemove.zoom",Bt,!0).on("mouseup.zoom",Gt,!0),wt=Mr(z,H),At=z.clientX,qt=z.clientY;Dy(z.view),Fu(z),W.mouse=[wt,this.__zoom.invert(wt)],Ea(this),W.start();function Bt(ie){if(Is(ie),!W.moved){var Q=ie.clientX-At,tt=ie.clientY-qt;W.moved=Q*Q+tt*tt>A}W.event(ie).zoom("mouse",r($(W.that.__zoom,W.mouse[0]=Mr(ie,H),W.mouse[1]),W.extent,f))}function Gt(ie){et.on("mousemove.zoom mouseup.zoom",null),Ry(ie.view,W.moved),Is(ie),W.event(ie).end()}}function gt(z,...k){if(!!t.apply(this,arguments)){var H=this.__zoom,W=Mr(z.changedTouches?z.changedTouches[0]:z,this),et=H.invert(W),wt=H.k*(z.shiftKey?.5:2),At=r($(L(H,wt),W,et),n.apply(this,k),f);Is(z),h>0?_n(this).transition().duration(h).call(G,At,W,z):_n(this).call(T.transform,At,W,z)}}function kt(z,...k){if(!!t.apply(this,arguments)){var H=z.touches,W=H.length,et=V(this,k,z.changedTouches.length===W).event(z),wt,At,qt,Bt;for(Fu(z),At=0;At<W;++At)qt=H[At],Bt=Mr(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+!!v);v&&(v=clearTimeout(v)),wt&&(et.taps<2&&(b=Bt[0],v=setTimeout(function(){v=null},S)),Ea(this),et.start())}}function ut(z,...k){if(!!this.__zooming){var H=V(this,k).event(z),W=z.changedTouches,et=W.length,wt,At,qt,Bt;for(Is(z),wt=0;wt<et;++wt)At=W[wt],qt=Mr(At,this),H.touch0&&H.touch0[2]===At.identifier?H.touch0[0]=qt:H.touch1&&H.touch1[2]===At.identifier&&(H.touch1[0]=qt);if(At=H.that.__zoom,H.touch1){var Gt=H.touch0[0],ie=H.touch0[1],Q=H.touch1[0],tt=H.touch1[1],K=(K=Q[0]-Gt[0])*K+(K=Q[1]-Gt[1])*K,st=(st=tt[0]-ie[0])*st+(st=tt[1]-ie[1])*st;At=L(At,Math.sqrt(K/st)),qt=[(Gt[0]+Q[0])/2,(Gt[1]+Q[1])/2],Bt=[(ie[0]+tt[0])/2,(ie[1]+tt[1])/2]}else if(H.touch0)qt=H.touch0[0],Bt=H.touch0[1];else return;H.zoom("touch",r($(At,qt,Bt),H.extent,f))}}function U(z,...k){if(!!this.__zooming){var H=V(this,k).event(z),W=z.changedTouches,et=W.length,wt,At;for(Fu(z),w&&clearTimeout(w),w=setTimeout(function(){w=null},S),wt=0;wt<et;++wt)At=W[wt],H.touch0&&H.touch0[2]===At.identifier?delete H.touch0:H.touch1&&H.touch1[2]===At.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&&(At=Mr(At,this),Math.hypot(b[0]-At[0],b[1]-At[1])<E)){var qt=_n(this).on("dblclick.zoom");qt&&qt.apply(this,arguments)}}}return T.wheelDelta=function(z){return arguments.length?(o=typeof z=="function"?z:pa(+z),T):o},T.filter=function(z){return arguments.length?(t=typeof z=="function"?z:pa(!!z),T):t},T.touchable=function(z){return arguments.length?(a=typeof z=="function"?z:pa(!!z),T):a},T.extent=function(z){return arguments.length?(n=typeof z=="function"?z:pa([[+z[0][0],+z[0][1]],[+z[1][0],+z[1][1]]]),T):n},T.scaleExtent=function(z){return arguments.length?(u[0]=+z[0],u[1]=+z[1],T):[u[0],u[1]]},T.translateExtent=function(z){return arguments.length?(f[0][0]=+z[0][0],f[1][0]=+z[1][0],f[0][1]=+z[0][1],f[1][1]=+z[1][1],T):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},T.constrain=function(z){return arguments.length?(r=z,T):r},T.duration=function(z){return arguments.length?(h=+z,T):h},T.interpolate=function(z){return arguments.length?(d=z,T):d},T.on=function(){var z=g.on.apply(g,arguments);return z===g?T:z},T.clickDistance=function(z){return arguments.length?(A=(z=+z)*z,T):Math.sqrt(A)},T.tapDistance=function(z){return arguments.length?(E=+z,T):E},T}function mft(t){const n=+this._x.call(null,t),r=+this._y.call(null,t);return Xy(this.cover(n,r),n,r,t)}function Xy(t,n,r,o){if(isNaN(n)||isNaN(r))return t;var a,u=t._root,f={data:o},h=t._x0,d=t._y0,g=t._x1,v=t._y1,b,w,S,M,A,E,T,L;if(!u)return t._root=f,t;for(;u.length;)if((A=n>=(b=(h+g)/2))?h=b:g=b,(E=r>=(w=(d+v)/2))?d=w:v=w,a=u,!(u=u[T=E<<1|A]))return a[T]=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[T]=f:t._root=f,t;do a=a?a[T]=new Array(4):t._root=new Array(4),(A=n>=(b=(h+g)/2))?h=b:g=b,(E=r>=(w=(d+v)/2))?d=w:v=w;while((T=E<<1|A)===(L=(M>=w)<<1|S>=b));return a[L]=u,a[T]=f,t}function yft(t){var n,r,o=t.length,a,u,f=new Array(o),h=new Array(o),d=1/0,g=1/0,v=-1/0,b=-1/0;for(r=0;r<o;++r)isNaN(a=+this._x.call(null,n=t[r]))||isNaN(u=+this._y.call(null,n))||(f[r]=a,h[r]=u,a<d&&(d=a),a>v&&(v=a),u<g&&(g=u),u>b&&(b=u));if(d>v||g>b)return this;for(this.cover(d,g).cover(v,b),r=0;r<o;++r)Xy(this,f[r],h[r],t[r]);return this}function bft(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var r=this._x0,o=this._y0,a=this._x1,u=this._y1;if(isNaN(r))a=(r=Math.floor(t))+1,u=(o=Math.floor(n))+1;else{for(var f=a-r||1,h=this._root,d,g;r>t||t>=a||o>n||n>=u;)switch(g=(n<o)<<1|t<r,d=new Array(4),d[g]=h,h=d,f*=2,g){case 0:a=r+f,u=o+f;break;case 1:r=a-f,u=o+f;break;case 2:a=r+f,o=u-f;break;case 3:r=a-f,o=u-f;break}this._root&&this._root.length&&(this._root=h)}return this._x0=r,this._y0=o,this._x1=a,this._y1=u,this}function wft(){var t=[];return this.visit(function(n){if(!n.length)do t.push(n.data);while(n=n.next)}),t}function xft(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function dn(t,n,r,o,a){this.node=t,this.x0=n,this.y0=r,this.x1=o,this.y1=a}function _ft(t,n,r){var o,a=this._x0,u=this._y0,f,h,d,g,v=this._x1,b=this._y1,w=[],S=this._root,M,A;for(S&&w.push(new dn(S,a,u,v,b)),r==null?r=1/0:(a=t-r,u=n-r,v=t+r,b=n+r,r*=r);M=w.pop();)if(!(!(S=M.node)||(f=M.x0)>v||(h=M.y0)>b||(d=M.x1)<a||(g=M.y1)<u))if(S.length){var E=(f+d)/2,T=(h+g)/2;w.push(new dn(S[3],E,T,d,g),new dn(S[2],f,T,E,g),new dn(S[1],E,h,d,T),new dn(S[0],f,h,E,T)),(A=(n>=T)<<1|t>=E)&&(M=w[w.length-1],w[w.length-1]=w[w.length-1-A],w[w.length-1-A]=M)}else{var L=t-+this._x.call(null,S.data),$=n-+this._y.call(null,S.data),O=L*L+$*$;if(O<r){var G=Math.sqrt(r=O);a=t-G,u=n-G,v=t+G,b=n+G,o=S.data}}return o}function Sft(t){if(isNaN(v=+this._x.call(null,t))||isNaN(b=+this._y.call(null,t)))return this;var n,r=this._root,o,a,u,f=this._x0,h=this._y0,d=this._x1,g=this._y1,v,b,w,S,M,A,E,T;if(!r)return this;if(r.length)for(;;){if((M=v>=(w=(f+d)/2))?f=w:d=w,(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,T=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[T]=r:this._root=r),this):(this._root=u,this)}function kft(t){for(var n=0,r=t.length;n<r;++n)this.remove(t[n]);return this}function Cft(){return this._root}function Tft(){var t=0;return this.visit(function(n){if(!n.length)do++t;while(n=n.next)}),t}function Lft(t){var n=[],r,o=this._root,a,u,f,h,d;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,d=r.y1)&&o.length){var g=(u+h)/2,v=(f+d)/2;(a=o[3])&&n.push(new dn(a,g,v,h,d)),(a=o[2])&&n.push(new dn(a,u,v,g,d)),(a=o[1])&&n.push(new dn(a,g,f,h,v)),(a=o[0])&&n.push(new dn(a,u,f,g,v))}return this}function Eft(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,d=o.x1,g=o.y1,v=(f+d)/2,b=(h+g)/2;(u=a[0])&&n.push(new dn(u,f,h,v,b)),(u=a[1])&&n.push(new dn(u,v,h,d,b)),(u=a[2])&&n.push(new dn(u,f,b,v,g)),(u=a[3])&&n.push(new dn(u,v,b,d,g))}r.push(o)}for(;o=r.pop();)t(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Aft(t){return t[0]}function Mft(t){return arguments.length?(this._x=t,this):this._x}function Nft(t){return t[1]}function Pft(t){return arguments.length?(this._y=t,this):this._y}function _h(t,n,r){var o=new Sh(n??Aft,r??Nft,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function Sh(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 Iv(t){for(var n={data:t.data},r=n;t=t.next;)r=r.next={data:t.data};return n}var vn=_h.prototype=Sh.prototype;vn.copy=function(){var t=new Sh(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=Iv(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]=Iv(o));return t};vn.add=mft;vn.addAll=yft;vn.cover=bft;vn.data=wft;vn.extent=xft;vn.find=_ft;vn.remove=Sft;vn.removeAll=kft;vn.root=Cft;vn.size=Tft;vn.visit=Lft;vn.visitAfter=Eft;vn.x=Mft;vn.y=Pft;function gn(t){return function(){return t}}function fi(t){return(t()-.5)*1e-6}function Oft(t){return t.x+t.vx}function $ft(t){return t.y+t.vy}function Dft(t){var n,r,o,a=1,u=1;typeof t!="function"&&(t=gn(t==null?1:+t));function f(){for(var g,v=n.length,b,w,S,M,A,E,T=0;T<u;++T)for(b=_h(n,Oft,$ft).visitAfter(h),g=0;g<v;++g)w=n[g],A=r[w.index],E=A*A,S=w.x+w.vx,M=w.y+w.vy,b.visit(L);function L($,O,G,V,rt){var J=$.data,dt=$.r,gt=A+dt;if(J){if(J.index>w.index){var kt=S-J.x-J.vx,ut=M-J.y-J.vy,U=kt*kt+ut*ut;U<gt*gt&&(kt===0&&(kt=fi(o),U+=kt*kt),ut===0&&(ut=fi(o),U+=ut*ut),U=(gt-(U=Math.sqrt(U)))/U*a,w.vx+=(kt*=U)*(gt=(dt*=dt)/(E+dt)),w.vy+=(ut*=U)*gt,J.vx-=kt*(gt=1-gt),J.vy-=ut*gt)}return}return O>S+gt||V<S-gt||G>M+gt||rt<M-gt}}function h(g){if(g.data)return g.r=r[g.data.index];for(var v=g.r=0;v<4;++v)g[v]&&g[v].r>g.r&&(g.r=g[v].r)}function d(){if(!!n){var g,v=n.length,b;for(r=new Array(v),g=0;g<v;++g)b=n[g],r[b.index]=+t(b,g,n)}}return f.initialize=function(g,v){n=g,o=v,d()},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),d(),f):t},f}function Rft(t){return t.index}function Fv(t,n){var r=t.get(n);if(!r)throw new Error("node not found: "+n);return r}function zft(t){var n=Rft,r=b,o,a=gn(30),u,f,h,d,g,v=1;t==null&&(t=[]);function b(E){return 1/Math.min(h[E.source.index],h[E.target.index])}function w(E){for(var T=0,L=t.length;T<v;++T)for(var $=0,O,G,V,rt,J,dt,gt;$<L;++$)O=t[$],G=O.source,V=O.target,rt=V.x+V.vx-G.x-G.vx||fi(g),J=V.y+V.vy-G.y-G.vy||fi(g),dt=Math.sqrt(rt*rt+J*J),dt=(dt-u[$])/dt*E*o[$],rt*=dt,J*=dt,V.vx-=rt*(gt=d[$]),V.vy-=J*gt,G.vx+=rt*(gt=1-gt),G.vy+=J*gt}function S(){if(!!f){var E,T=f.length,L=t.length,$=new Map(f.map((G,V)=>[n(G,V,f),G])),O;for(E=0,h=new Array(T);E<L;++E)O=t[E],O.index=E,typeof O.source!="object"&&(O.source=Fv($,O.source)),typeof O.target!="object"&&(O.target=Fv($,O.target)),h[O.source.index]=(h[O.source.index]||0)+1,h[O.target.index]=(h[O.target.index]||0)+1;for(E=0,d=new Array(L);E<L;++E)O=t[E],d[E]=h[O.source.index]/(h[O.source.index]+h[O.target.index]);o=new Array(L),M(),u=new Array(L),A()}}function M(){if(!!f)for(var E=0,T=t.length;E<T;++E)o[E]=+r(t[E],E,t)}function A(){if(!!f)for(var E=0,T=t.length;E<T;++E)u[E]=+a(t[E],E,t)}return w.initialize=function(E,T){f=E,g=T,S()},w.links=function(E){return arguments.length?(t=E,S(),w):t},w.id=function(E){return arguments.length?(n=E,w):n},w.iterations=function(E){return arguments.length?(v=+E,w):v},w.strength=function(E){return arguments.length?(r=typeof E=="function"?E:gn(+E),M(),w):r},w.distance=function(E){return arguments.length?(a=typeof E=="function"?E:gn(+E),A(),w):a},w}const Ift=1664525,Fft=1013904223,qv=4294967296;function qft(){let t=1;return()=>(t=(Ift*t+Fft)%qv)/qv}function Hft(t){return t.x}function Bft(t){return t.y}var Wft=10,Uft=Math.PI*(3-Math.sqrt(5));function jft(t){var n,r=1,o=.001,a=1-Math.pow(o,1/300),u=0,f=.6,h=new Map,d=yh(b),g=yl("tick","end"),v=qft();t==null&&(t=[]);function b(){w(),g.call("tick",n),r<o&&(d.stop(),g.call("end",n))}function w(A){var E,T=t.length,L;A===void 0&&(A=1);for(var $=0;$<A;++$)for(r+=(u-r)*a,h.forEach(function(O){O(r)}),E=0;E<T;++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,T;A<E;++A){if(T=t[A],T.index=A,T.fx!=null&&(T.x=T.fx),T.fy!=null&&(T.y=T.fy),isNaN(T.x)||isNaN(T.y)){var L=Wft*Math.sqrt(.5+A),$=A*Uft;T.x=L*Math.cos($),T.y=L*Math.sin($)}(isNaN(T.vx)||isNaN(T.vy))&&(T.vx=T.vy=0)}}function M(A){return A.initialize&&A.initialize(t,v),A}return S(),n={tick:w,restart:function(){return d.restart(b),n},stop:function(){return d.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?(v=A,h.forEach(M),n):v},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,T){var L=0,$=t.length,O,G,V,rt,J;for(T==null?T=1/0:T*=T,L=0;L<$;++L)rt=t[L],O=A-rt.x,G=E-rt.y,V=O*O+G*G,V<T&&(J=rt,T=V);return J},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,d=.81;function g(S){var M,A=t.length,E=_h(t,Hft,Bft).visitAfter(b);for(o=S,M=0;M<A;++M)n=t[M],E.visit(w)}function v(){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,T=0,L,$,O;if(S.length){for(L=$=O=0;O<4;++O)(A=S[O])&&(E=Math.abs(A.value))&&(M+=A.value,T+=E,L+=E*A.x,$+=E*A.y);S.x=L/T,S.y=$/T}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 w(S,M,A,E){if(!S.value)return!0;var T=S.x-n.x,L=S.y-n.y,$=E-M,O=T*T+L*L;if($*$/d<O)return O<h&&(T===0&&(T=fi(r),O+=T*T),L===0&&(L=fi(r),O+=L*L),O<f&&(O=Math.sqrt(f*O)),n.vx+=T*S.value*o/O,n.vy+=L*S.value*o/O),!0;if(S.length||O>=h)return;(S.data!==n||S.next)&&(T===0&&(T=fi(r),O+=T*T),L===0&&(L=fi(r),O+=L*L),O<f&&(O=Math.sqrt(f*O)));do S.data!==n&&($=u[S.data.index]*o/O,n.vx+=T*$,n.vy+=L*$);while(S=S.next)}return g.initialize=function(S,M){t=S,r=M,v()},g.strength=function(S){return arguments.length?(a=typeof S=="function"?S:gn(+S),v(),g):a},g.distanceMin=function(S){return arguments.length?(f=S*S,g):Math.sqrt(f)},g.distanceMax=function(S){return arguments.length?(h=S*S,g):Math.sqrt(h)},g.theta=function(S){return arguments.length?(d=S*S,g):Math.sqrt(d)},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 d=0,g=r.length,v;d<g;++d)v=r[d],v.vx+=(a[d]-v.x)*o[d]*h}function f(){if(!!r){var h,d=r.length;for(o=new Array(d),a=new Array(d),h=0;h<d;++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 Kft(t){var n=gn(.1),r,o,a;typeof t!="function"&&(t=gn(t==null?0:+t));function u(h){for(var d=0,g=r.length,v;d<g;++d)v=r[d],v.vy+=(a[d]-v.y)*o[d]*h}function f(){if(!!r){var h,d=r.length;for(o=new Array(d),a=new Array(d),h=0;h<d;++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 Xft=Object.defineProperty,Yft=(t,n,r)=>n in t?Xft(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Ne=(t,n,r)=>(Yft(t,typeof n!="symbol"?n+"":n,r),r);function Zft(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}const Hv=t=>{if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){const n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1},hi=(...t)=>t.reduce((n,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(n[o])&&Array.isArray(r[o])?n[o]=hi.options.mergeArrays?Array.from(new Set(n[o].concat(r[o]))):r[o]:Hv(n[o])&&Hv(r[o])?n[o]=hi(n[o],r[o]):n[o]=r[o])}),n},{}),Yy={mergeArrays:!0};hi.options=Yy;hi.withOptions=(t,...n)=>{hi.options={mergeArrays:!0,...t};const r=hi(...n);return hi.options=Yy,r};function Jft(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function Qft(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Zy(t){t.preventDefault(),t.stopPropagation()}function Jy(t){return typeof t=="number"}function yi(t,n){return Jy(t.nodeRadius)?t.nodeRadius:t.nodeRadius(n)}function tht(t){return`${t.source.id}-${t.target.id}`}function Qy(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function eht(t){return`url(#${Qy(t.color)})`}function nht(t){return{size:t,padding:(n,r)=>yi(r,n)+2*t,ref:[t/2,t/2],path:[[0,0],[0,t],[t,t/2]],viewBox:[0,0,t,t].join(",")}}const tb={Arrow:t=>nht(t)},rht=(t,n,r)=>[n/2,r/2],eb=(t,n,r)=>[Bv(0,n),Bv(0,r)];function Bv(t,n){return Math.random()*(n-t)+t}function iht(t){const n=Object.fromEntries(t.nodes.map(r=>[r.id,[r.x,r.y]]));return(r,o,a)=>{const[u,f]=n[r.id]??[];return!u||!f?eb(r,o,a):[u,f]}}const Tf={Centered:rht,Randomized:eb,Stable:iht};function oht(){return{autoResize:!1,callbacks:{},hooks:{},initial:Qft(),nodeRadius:16,marker:tb.Arrow(4),modifiers:{},positionInitializer:Tf.Centered,simulation:{alphas:Zft(),forces:Jft()},zoom:{initial:1,min:.1,max:2}}}function sht(t={}){return hi.withOptions({mergeArrays:!1},oht(),t)}function lht(t,n){let r;return()=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(),n)}}function aht({applyZoom:t,container:n,onDoubleClick:r,onPointerMoved:o,onPointerUp:a,offset:[u,f],scale:h,zoom:d}){const g=n.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(d).on("contextmenu",v=>Zy(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>a==null?void 0:a(v)).style("cursor","grab");return t&&g.call(d.transform,xh.translate(u,f).scale(h)),g.append("g")}function cht({canvas:t,scale:n,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${n})`)}function uht({config:t,onDragStart:n,onDragEnd:r}){var o,a;const u=Tct().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,h)=>{f.active===0&&n(f,h),_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 fht({graph:t,filter:n,focusedNode:r,includeUnlinked:o,linkFilter:a}){const u=t.links.filter(d=>n.includes(d.source.type)&&n.includes(d.target.type)&&a(d)),f=d=>u.find(g=>g.source.id===d.id||g.target.id===d.id)!==void 0,h=t.nodes.filter(d=>n.includes(d.type)&&(o||f(d)));return r===void 0||!n.includes(r.type)?{nodes:h,links:u}:hht({nodes:h,links:u},r)}function hht(t,n){const r=[...dht(t,n),...pht(t,n)],o=r.flatMap(a=>[a.source,a.target]);return{nodes:[...new Set([...o,n])],links:[...new Set(r)]}}function dht(t,n){return nb(t,n,(r,o)=>r.target.id===o.id)}function pht(t,n){return nb(t,n,(r,o)=>r.source.id===o.id)}function nb(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(d=>r(h,d)));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 Lf(t){return t.x??0}function Ef(t){return t.y??0}function kh({source:t,target:n}){const r=new hn(Lf(t),Ef(t)),o=new hn(Lf(n),Ef(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 rb({center:t,node:n}){const r=new hn(Lf(n),Ef(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 ib({config:t,source:n,target:r}){const{s:o,t:a,norm:u}=kh({config:t,source:n,target:r}),f=o.add(u.multiply(yi(t,n)-1)),h=a.subtract(u.multiply(t.marker.padding(r,t)));return{start:f,end:h}}function ght(t){const{start:n,end:r}=ib(t);return`M${n.x},${n.y}
|
|
35
|
-
L${r.x},${r.y}`}function vht(t){const{start:n,end:r}=ib(t),o=r.subtract(n).multiply(.5),a=n.add(o);return`translate(${a.x-8},${a.y-4})`}function mht({config:t,source:n,target:r}){const{s:o,t:a,dist:u,norm:f,endNorm:h}=kh({config:t,source:n,target:r}),d=10,g=f.rotateByDegrees(-d).multiply(yi(t,n)-1).add(o),v=h.rotateByDegrees(d).multiply(yi(t,r)).add(a).add(h.rotateByDegrees(d).multiply(2*t.marker.size)),b=1.2*u;return`M${g.x},${g.y}
|
|
36
|
-
A${b},${b},0,0,1,${v.x},${v.y}`}function yht({center:t,config:n,node:r}){const{n:o,c:a}=rb({center:t,config:n,node:r}),u=yi(n,r),f=o.subtract(a),h=f.multiply(1/f.length()),d=40,g=h.rotateByDegrees(d).multiply(u-1).add(o),v=h.rotateByDegrees(-d).multiply(u).add(o).add(h.rotateByDegrees(-d).multiply(2*n.marker.size));return`M${g.x},${g.y}
|
|
37
|
-
A${u},${u},0,1,0,${v.x},${v.y}`}function bht({config:t,source:n,target:r}){const{t:o,dist:a,endNorm:u}=kh({config:t,source:n,target:r}),f=10,h=u.rotateByDegrees(f).multiply(.5*a).add(o);return`translate(${h.x},${h.y})`}function wht({center:t,config:n,node:r}){const{n:o,c:a}=rb({center:t,config:n,node:r}),u=o.subtract(a),f=u.multiply(1/u.length()).multiply(3*yi(n,r)+8).add(o);return`translate(${f.x},${f.y})`}const zo={line:{labelTransform:vht,path:ght},arc:{labelTransform:bht,path:mht},reflexive:{labelTransform:wht,path:yht}};function xht(t){return t.append("g").classed("links",!0).selectAll("path")}function _ht({config:t,graph:n,selection:r,showLabels:o}){const a=r==null?void 0:r.data(n.links,u=>tht(u)).join(u=>{var f,h,d,g;const v=u.append("g"),b=v.append("path").classed("link",!0).style("marker-end",S=>eht(S)).style("stroke",S=>S.color);(h=(f=t.modifiers).link)==null||h.call(f,b);const w=v.append("text").classed("link__label",!0).style("fill",S=>S.label?S.label.color:null).style("font-size",S=>S.label?S.label.fontSize:null).text(S=>S.label?S.label.text:null);return(g=(d=t.modifiers).linkLabel)==null||g.call(d,w),v});return a==null||a.select(".link__label").attr("opacity",u=>u.label&&o?1:0),a}function Sht(t){kht(t),Cht(t)}function kht({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?zo.reflexive.path({config:n,node:a.source,center:t}):ob(r,a.source,a.target)?zo.arc.path({config:n,source:a.source,target:a.target}):zo.line.path({config:n,source:a.source,target:a.target}))}function Cht({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?zo.reflexive.labelTransform({config:t,node:a.source,center:n}):ob(r,a.source,a.target)?zo.arc.labelTransform({config:t,source:a.source,target:a.target}):zo.line.labelTransform({config:t,source:a.source,target:a.target}))}function ob(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 Tht(t){return t.append("defs").selectAll("marker")}function Lht({config:t,graph:n,selection:r}){return r==null?void 0:r.data(Eht(n),o=>o).join(o=>{const a=o.append("marker").attr("id",u=>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",Aht(t.marker.path)),a})}function Eht(t){return[...new Set(t.links.map(n=>n.color))]}function Aht(t){const[n,...r]=t;if(!n)return"M0,0";const[o,a]=n;return r.reduce((u,[f,h])=>`${u}L${f},${h}`,`M${o},${a}`)}function Mht(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function Nht({config:t,drag:n,graph:r,onNodeContext:o,onNodeSelected:a,selection:u,showLabels:f}){const h=u==null?void 0:u.data(r.nodes,d=>d.id).join(d=>{var g,v,b,w;const S=d.append("g");n!==void 0&&S.call(n);const M=S.append("circle").classed("node",!0).attr("r",E=>yi(t,E)).on("contextmenu",(E,T)=>{Zy(E),o(T)}).on("pointerdown",(E,T)=>Oht(E,T,a??o)).style("fill",E=>E.color);(v=(g=t.modifiers).node)==null||v.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(w=(b=t.modifiers).nodeLabel)==null||w.call(b,A),S});return h==null||h.select(".node").classed("focused",d=>d.isFocused),h==null||h.select(".node__label").attr("opacity",f?1:0),h}const Pht=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>Pht){n.lastInteractionTimestamp=a;return}n.lastInteractionTimestamp=void 0,r(n)}function $ht(t){t==null||t.attr("transform",n=>`translate(${n.x??0},${n.y??0})`)}function Dht({center:t,config:n,graph:r,onTick:o}){var a,u;const f=jft(r.nodes),h=n.simulation.forces.centering;if(h&&h.enabled){const b=h.strength;f.force("x",Vft(()=>t().x).strength(b)).force("y",Kft(()=>t().y).strength(b))}const d=n.simulation.forces.charge;d&&d.enabled&&f.force("charge",Gft().strength(d.strength));const g=n.simulation.forces.collision;g&&g.enabled&&f.force("collision",Dft().radius(b=>g.radiusMultiplier*yi(n,b)));const v=n.simulation.forces.link;return v&&v.enabled&&f.force("link",zft(r.links).id(b=>b.id).distance(n.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(u=(a=n.modifiers).simulation)==null||u.call(a,f),f}function Rht({canvasContainer:t,config:n,min:r,max:o,onZoom:a}){var u,f;const h=vft().scaleExtent([r,o]).filter(d=>{var g;return d.button===0||((g=d.touches)==null?void 0:g.length)>=2}).on("start",()=>t().classed("grabbed",!0)).on("zoom",d=>a(d)).on("end",()=>t().classed("grabbed",!1));return(f=(u=n.modifiers).zoom)==null||f.call(u,h),h}class zht{constructor(n,r,o){if(Ne(this,"nodeTypes"),Ne(this,"_nodeTypeFilter"),Ne(this,"_includeUnlinked",!0),Ne(this,"_linkFilter",()=>!0),Ne(this,"_showLinkLabels",!0),Ne(this,"_showNodeLabels",!0),Ne(this,"filteredGraph"),Ne(this,"width",0),Ne(this,"height",0),Ne(this,"simulation"),Ne(this,"canvas"),Ne(this,"linkSelection"),Ne(this,"nodeSelection"),Ne(this,"markerSelection"),Ne(this,"zoom"),Ne(this,"drag"),Ne(this,"xOffset",0),Ne(this,"yOffset",0),Ne(this,"scale"),Ne(this,"focusedNode"),Ne(this,"resizeObserver"),this.container=n,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(a=>{const[u,f]=o.positionInitializer(a,this.effectiveWidth,this.effectiveHeight);a.x=a.x??u,a.y=a.y??f}),this.nodeTypes=[...new Set(r.nodes.map(a=>a.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:a,nodeTypeFilter:u,linkFilter:f,showLinkLabels:h,showNodeLabels:d}=o.initial;this._includeUnlinked=a??this._includeUnlinked,this._showLinkLabels=h??this._showLinkLabels,this._showNodeLabels=d??this._showNodeLabels,this._nodeTypeFilter=u??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(lht(()=>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(Jy(h)?h:h({oldWidth:n,oldHeight:r,newWidth:o,newHeight:a}))}restart(n){var r;this.markerSelection=Lht({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=_ht({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Nht({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=Dht({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(n).restart()}filterNodesByType(n,r){n?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var n,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(n=this.resizeObserver)==null||n.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=Rht({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=aht({applyZoom:this.scale!==1,container:_n(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=xht(this.canvas),this.nodeSelection=Mht(this.canvas),this.markerSelection=Tht(this.canvas),this.drag=uht({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(){$ht(this.nodeSelection),Sht({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,o,a;this.xOffset=n.transform.x,this.yOffset=n.transform.y,this.scale=n.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(a=this.simulation)==null||a.restart()}applyZoom(){cht({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=fht({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function Wv({nodes:t,links:n}){return{nodes:t??[],links:n??[]}}function Iht(t){return{...t}}function sb(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const Fht={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},qht={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Hht=["id","checked","onChange"],Bht=["for"],Wht=ht("div",{"flex-auto":""},null,-1),Uht=re({__name:"ViewModuleGraph",props:{graph:null},setup(t){const n=t,{graph:r}=i1(n),o=Kt(),a=Kt(!1),u=Kt(),f=Kt();Vf(()=>{a.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),dl(()=>{g()}),Xf(()=>{var b;(b=f.value)==null||b.shutdown()}),Fe(r,g);function h(b,w){var S;(S=f.value)==null||S.filterNodesByType(w,b)}function d(b){u.value=b,a.value=!0}function g(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new zht(o.value,r.value,sht({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:w,newWidth:S})=>w===0&&S===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:tb.Arrow(2),modifiers:{node:v},positionInitializer:r.value.nodes.length>1?Tf.Randomized:Tf.Centered,zoom:{min:.5,max:2}})))}function v(b){if(pr)return;const w=E=>E.button===0;let S=0,M=0,A=0;b.on("pointerdown",(E,T)=>{T.type!=="external"&&(!T.x||!T.y||!w(E)||(S=T.x,M=T.y,A=Date.now()))}).on("pointerup",(E,T)=>{if(T.type==="external"||!T.x||!T.y||!w(E)||Date.now()-A>500)return;const L=T.x-S,$=T.y-M;L**2+$**2<100&&d(T.id)})}return(b,w)=>{var T;const S=es,M=Ilt,A=Tlt,E=Qi("tooltip");return at(),Et("div",Fht,[ht("div",null,[ht("div",qht,[(at(!0),Et(ce,null,Vn((T=j(f))==null?void 0:T.nodeTypes.sort(),L=>{var $;return at(),Et("div",{key:L,flex:"~ gap-1","items-center":"","select-none":""},[ht("input",{id:`type-${L}`,type:"checkbox",checked:($=j(f))==null?void 0:$.nodeTypeFilter.includes(L),onChange:O=>h(L,O.target.checked)},null,40,Hht),ht("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})`})},Xt(L)+" Modules",13,Bht)])}),128)),Wht,ht("div",null,[pn(zt(S,{icon:"i-carbon-reset",onClick:g},null,512),[[E,"Reset",void 0,{bottom:!0}]])])])]),ht("div",{ref_key:"el",ref:o},null,512),zt(A,{modelValue:j(a),"onUpdate:modelValue":w[1]||(w[1]=L=>Ee(a)?a.value=L:null),direction:"right"},{default:Zt(()=>[j(u)?(at(),Qt(w1,{key:0},{default:Zt(()=>[zt(M,{id:j(u),onClose:w[0]||(w[0]=L=>a.value=!1)},null,8,["id"])]),_:1})):le("",!0)]),_:1},8,["modelValue"])])}}});const jht={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Ght={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Vht={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Kht={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":""},Yht={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Ch=re({__name:"StatusIcon",props:{task:null},setup(t){return(n,r)=>{var a,u,f;const o=Qi("tooltip");return((a=t.task.result)==null?void 0:a.state)==="pass"?(at(),Et("div",jht)):j(yc)(t.task)?pn((at(),Et("div",Ght,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((u=t.task.result)==null?void 0:u.state)==="fail"?(at(),Et("div",Vht)):t.task.mode==="todo"?pn((at(),Et("div",Kht,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.task.mode==="skip"||((f=t.task.result)==null?void 0:f.state)==="skip"?pn((at(),Et("div",Xht,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(at(),Et("div",Yht))}}});function Zht(t){const n=new Map,r=new Map,o=[];for(;;){let a=0;if(t.forEach((u,f)=>{var v;const{splits:h,finished:d}=u;if(d){a++;const{raw:b,candidate:w}=u;n.set(b,w);return}if(h.length===0){u.finished=!0;return}const g=h[0];r.has(g)?(u.candidate+=u.candidate===""?g:`/${g}`,(v=r.get(g))==null||v.push(f),h.shift()):(r.set(g,[f]),o.push(f))}),o.forEach(u=>{const f=t[u],h=f.splits.shift();f.candidate+=f.candidate===""?h:`/${h}`}),r.forEach(u=>{if(u.length===1){const f=u[0];t[f].finished=!0}}),r.clear(),o.length=0,a===t.length)break}return n}function Jht(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 Qht(t){const n=t.map(o=>Jht(o)),r=Zht(n);return n.map(({raw:o,id:a})=>sb({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:a,type:"external"}))}function tdt(t,n){return sb({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 edt(t,n){if(!t)return Wv({});const r=Qht(t.externalized),o=t.inlined.map(h=>tdt(h,h===n))??[],a=[...r,...o],u=Object.fromEntries(a.map(h=>[h.id,h])),f=Object.entries(t.graph).flatMap(([h,d])=>d.map(g=>{const v=u[h],b=u[g];if(!(v===void 0||b===void 0))return Iht({source:v,target:b,color:"var(--color-link)",label:!1})}).filter(g=>g!==void 0));return Wv({nodes:a,links:f})}const ndt={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},rdt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},idt={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},odt={class:"flex text-lg"},sdt={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},ldt={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},adt={key:0,"flex-1":""},cdt=re({__name:"FileDetails",setup(t){const n=Kt({externalized:[],graph:{},inlined:[]}),r=Kt({nodes:[],links:[]}),o=Kt(!1),a=Kt(!1);LC(Le,async(g,v)=>{g&&g.filepath!==(v==null?void 0:v.filepath)&&(n.value=await Ue.rpc.getModuleGraph(g.filepath),r.value=edt(n.value,g.filepath))},{debounce:100,immediate:!0});const u=()=>{var v;const g=(v=Le.value)==null?void 0:v.filepath;g&&fetch(`/__open-in-editor?file=${encodeURIComponent(g)}`)},f=g=>{g==="graph"&&(a.value=!0),lr.value=g},h=_t(()=>{var g;return((g=ty.value)==null?void 0:g.reduce((v,{size:b})=>v+b,0))??0});function d(g){o.value=g}return(g,v)=>{var L,$;const b=Ch,w=es,S=Uht,M=Clt,A=wlt,E=hlt,T=Qi("tooltip");return j(Le)?(at(),Et("div",ndt,[ht("div",null,[ht("div",rdt,[zt(b,{task:j(Le)},null,8,["task"]),ht("div",idt,Xt((L=j(Le))==null?void 0:L.filepath),1),ht("div",odt,[j(pr)?le("",!0):pn((at(),Qt(w,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!(($=j(Le))!=null&&$.filepath),onClick:u},null,8,["disabled"])),[[T,"Open in editor",void 0,{bottom:!0}]])])]),ht("div",sdt,[ht("button",{"tab-button":"",class:ve({"tab-button-active":j(lr)==null}),"data-testid":"btn-report",onClick:v[0]||(v[0]=O=>f(null))}," Report ",2),ht("button",{"tab-button":"","data-testid":"btn-graph",class:ve({"tab-button-active":j(lr)==="graph"}),onClick:v[1]||(v[1]=O=>f("graph"))}," Module Graph ",2),j(pr)?le("",!0):(at(),Et("button",{key:0,"tab-button":"","data-testid":"btn-code",class:ve({"tab-button-active":j(lr)==="editor"}),onClick:v[2]||(v[2]=O=>f("editor"))},Xt(j(o)?"* ":"")+"Code ",3)),ht("button",{"tab-button":"","data-testid":"btn-console",class:ve({"tab-button-active":j(lr)==="console",op20:j(lr)!=="console"&&j(h)===0}),onClick:v[3]||(v[3]=O=>f("console"))}," Console ("+Xt(j(h))+") ",3)])]),ht("div",ldt,[j(a)?(at(),Et("div",adt,[pn(zt(S,{graph:j(r),"data-testid":"graph"},null,8,["graph"]),[[Xm,j(lr)==="graph"]])])):le("",!0),j(lr)==="editor"?(at(),Qt(M,{key:j(Le).filepath,file:j(Le),"data-testid":"editor",onDraft:d},null,8,["file"])):j(lr)==="console"?(at(),Qt(A,{key:2,file:j(Le),"data-testid":"console"},null,8,["file"])):j(lr)?le("",!0):(at(),Qt(E,{key:3,file:j(Le),"data-testid":"report"},null,8,["file"]))])])):le("",!0)}}}),udt=["open"],fdt=ht("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),hdt=ht("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),ddt=re({__name:"DetailsPanel",props:{color:null},setup(t){const n=Kt(!0);return(r,o)=>(at(),Et("div",{open:j(n),class:"details-panel",onToggle:o[0]||(o[0]=a=>n.value=a.target.open)},[ht("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ve(t.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[fdt,Yn(r.$slots,"summary",{open:j(n)}),hdt],2),Yn(r.$slots,"default")],40,udt))}});const pdt={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},gdt=["text"],vdt={"text-sm":"",truncate:"","font-light":""},mdt={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},ydt=re({__name:"TaskItem",props:{task:null},setup(t){const n=t,r=_t(()=>{const{result:o}=n.task;return o&&Math.round(o.duration||0)});return(o,a)=>{var f,h;const u=Ch;return t.task?(at(),Et("div",pdt,[zt(u,{task:t.task,"mr-2":""},null,8,["task"]),ht("div",{flex:"","items-end":"","gap-2":"",text:((h=(f=t.task)==null?void 0:f.result)==null?void 0:h.state)==="fail"?"red-500":""},[ht("span",vdt,Xt(t.task.name),1),typeof j(r)=="number"?(at(),Et("span",mdt,Xt(j(r)>0?j(r):"< 1")+"ms ",1)):le("",!0)],8,gdt)])):le("",!0)}}});function bdt(t){return Object.hasOwnProperty.call(t,"tasks")}function lb(t,n){return typeof t!="string"||typeof n!="string"?!1:t.toLowerCase().includes(n.toLowerCase())}const wdt={key:1},xdt={inheritAttrs:!1},_dt=re({...xdt,__name:"TaskTree",props:{task:null,indent:{default:0},nested:{type:Boolean,default:!1},search:null,onItemClick:null},setup(t){return(n,r)=>{const o=ydt,a=Ki("TaskTree",!0);return at(),Et(ce,null,[!t.search||j(lb)(t.task.name,t.search)?(at(),Qt(o,gi({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"])):le("",!0),t.nested&&t.task.type==="suite"&&t.task.tasks.length?(at(),Et("div",wdt,[(at(!0),Et(ce,null,Vn(t.task.tasks,u=>(at(),Qt(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))])):le("",!0)],64)}}}),Sdt={h:"full",flex:"~ col"},kdt={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Cdt={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Tdt=ht("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Ldt=["op"],Edt={class:"scrolls","flex-auto":"","py-1":""},Adt={"text-red5":""},Mdt={"text-yellow5":""},Ndt={"text-green5":""},Pdt={class:"text-purple5:50"},Odt={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},$dt=ht("div",{op30:""}," No matched test ",-1),Ddt={inheritAttrs:!1},ab=re({...Ddt,__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=_t(()=>o.value.trim()!==""),f=(E,T)=>{let L=!1;for(let $=0;$<E.length;$++){const O=E[$];if(lb(O.name,T)){L=!0;break}if(bdt(O)&&O.tasks&&(L=f(O.tasks,T),L))break}return L},h=_t(()=>o.value.trim()?r.tasks.filter(E=>f([E],o.value)):r.tasks),d=_t(()=>u.value?h.value.map(E=>Ba(E.id)).filter(Boolean):[]),g=_t(()=>h.value.filter(E=>{var T;return((T=E.result)==null?void 0:T.state)==="fail"})),v=_t(()=>h.value.filter(E=>{var T;return((T=E.result)==null?void 0:T.state)==="pass"})),b=_t(()=>h.value.filter(E=>E.mode==="skip"||E.mode==="todo")),w=_t(()=>h.value.filter(E=>!g.value.includes(E)&&!v.value.includes(E)&&!b.value.includes(E))),S=gC(w,250),M=E=>{var T;o.value="",E&&((T=a.value)==null||T.focus())},A=_t(()=>o.value==="");return(E,T)=>{const L=es,$=_dt,O=ddt,G=Qi("tooltip");return at(),Et("div",Sdt,[ht("div",null,[ht("div",kdt,[Yn(E.$slots,"header",{filteredTests:j(u)?j(d):void 0})]),ht("div",Cdt,[Tdt,pn(ht("input",{ref_key:"searchBox",ref:a,"onUpdate:modelValue":T[0]||(T[0]=V=>Ee(o)?o.value=V:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:j(o).length?"100":"50",onKeydown:[T[1]||(T[1]=tf(V=>M(!1),["esc"])),T[2]||(T[2]=tf(V=>n("run",j(u)?j(d):void 0),["enter"]))]},null,40,Ldt),[[H_,j(o)]]),pn(zt(L,{disabled:j(A),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:T[3]||(T[3]=V=>M(!0))},null,8,["disabled"]),[[G,"Clear search",void 0,{bottom:!0}]])])]),ht("div",Edt,[t.groupByType?(at(),Et(ce,{key:0},[j(g).length?(at(),Qt(O,{key:0},{summary:Zt(()=>[ht("div",Adt," FAIL ("+Xt(j(g).length)+") ",1)]),default:Zt(()=>[(at(!0),Et(ce,null,Vn(j(g),V=>(at(),Qt($,{key:V.id,task:V,nested:t.nested,search:j(o),class:ve(j(Nr)===V.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):le("",!0),j(w).length||j(Ha)==="running"?(at(),Qt(O,{key:1},{summary:Zt(()=>[ht("div",Mdt," RUNNING ("+Xt(j(S).length)+") ",1)]),default:Zt(()=>[(at(!0),Et(ce,null,Vn(j(S),V=>(at(),Qt($,{key:V.id,task:V,nested:t.nested,search:j(o),class:ve(j(Nr)===V.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):le("",!0),j(v).length?(at(),Qt(O,{key:2},{summary:Zt(()=>[ht("div",Ndt," PASS ("+Xt(j(v).length)+") ",1)]),default:Zt(()=>[(at(!0),Et(ce,null,Vn(j(v),V=>(at(),Qt($,{key:V.id,task:V,nested:t.nested,search:j(o),class:ve(j(Nr)===V.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):le("",!0),j(b).length?(at(),Qt(O,{key:3},{summary:Zt(()=>[ht("div",Pdt," SKIP ("+Xt(j(b).length)+") ",1)]),default:Zt(()=>[(at(!0),Et(ce,null,Vn(j(b),V=>(at(),Qt($,{key:V.id,task:V,nested:t.nested,search:j(o),class:ve(j(Nr)===V.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):le("",!0)],64)):(at(!0),Et(ce,{key:1},Vn(j(h),V=>(at(),Qt($,{key:V.id,task:V,nested:t.nested,search:j(o),class:ve(j(Nr)===V.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),j(u)&&j(h).length===0?(at(),Et("div",Odt,[$dt,ht("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:T[4]||(T[4]=V=>M(!0))}," Clear ",32)])):le("",!0)])])}}}),Rdt={key:0,"h-full":""},zdt={"data-testid":"filenames","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},Idt={class:"flex text-lg"},Fdt=re({__name:"Suites",setup(t){const n=_t(()=>{var a;return(a=Le.value)==null?void 0:a.name.split(/\//g).pop()}),r=_t(()=>{var a,u;return((a=Le.value)==null?void 0:a.tasks)&&yc((u=Le.value)==null?void 0:u.tasks)}),o=()=>Le.value&&Ue.rpc.updateSnapshot(Le.value);return(a,u)=>{const f=Ch,h=es,d=ab,g=Qi("tooltip");return j(Le)?(at(),Et("div",Rdt,[zt(d,{tasks:j(Le).tasks,nested:!0},{header:Zt(()=>[zt(f,{"mx-1":"",task:j(Le)},null,8,["task"]),ht("span",zdt,Xt(j(n)),1),ht("div",Idt,[j(r)&&!j(pr)?pn((at(),Qt(h,{key:0,icon:"i-carbon-result-old",onClick:u[0]||(u[0]=v=>o())},null,512)),[[g,`Update failed snapshot(s) of ${j(Le).name}`,void 0,{bottom:!0}]]):le("",!0),j(pr)?le("",!0):pn((at(),Qt(h,{key:1,icon:"i-carbon-play",onClick:u[1]||(u[1]=v=>j(zT)())},null,512)),[[g,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):le("",!0)}}}),Xa=_t(()=>Tn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),Ya=_t(()=>Tn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),Th=_t(()=>Tn.value.filter(t=>t.mode==="skip"||t.mode==="todo"));_t(()=>Tn.value.filter(t=>!Xa.value.includes(t)&&!Ya.value.includes(t)&&!Th.value.includes(t)));_t(()=>Th.value.filter(t=>t.mode==="skip"));const Uv=_t(()=>Tn.value.filter(yc));_t(()=>Th.value.filter(t=>t.mode==="todo"));const qdt=_t(()=>Ha.value==="idle"),wl=_t(()=>Lh(Tn.value)),cb=_t(()=>wl.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),ub=_t(()=>wl.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),fb=_t(()=>wl.value.filter(t=>t.mode==="skip"||t.mode==="todo")),Hdt=_t(()=>fb.value.filter(t=>t.mode==="skip")),Bdt=_t(()=>fb.value.filter(t=>t.mode==="todo"));_t(()=>cb.value.length+ub.value.length);const Wdt=_t(()=>{const t=Lh(wl.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 Udt(t){return t=t||[],Array.isArray(t)?t:[t]}function jv(t){return t.type==="test"||t.type==="benchmark"||t.type==="typecheck"}function Lh(t){return Udt(t).flatMap(n=>jv(n)?[n]:n.tasks.flatMap(r=>jv(r)?[r]:Lh(r)))}const vr=t=>(Sm("data-v-6679a536"),t=t(),km(),t),jdt={"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:""},Gdt=vr(()=>ht("div",{"i-carbon-document":""},null,-1)),Vdt=vr(()=>ht("div",null,"Files",-1)),Kdt={class:"number","data-testid":"num-files"},Xdt=vr(()=>ht("div",{"i-carbon-checkmark":""},null,-1)),Ydt=vr(()=>ht("div",null,"Pass",-1)),Zdt={class:"number"},Jdt=vr(()=>ht("div",{"i-carbon-close":""},null,-1)),Qdt=vr(()=>ht("div",null," Fail ",-1)),tpt={class:"number","text-red5":""},ept=vr(()=>ht("div",{"i-carbon-compare":""},null,-1)),npt=vr(()=>ht("div",null," Snapshot Fail ",-1)),rpt={class:"number","text-red5":""},ipt=vr(()=>ht("div",{"i-carbon-timer":""},null,-1)),opt=vr(()=>ht("div",null,"Time",-1)),spt={class:"number","data-testid":"run-time"},lpt=re({__name:"TestFilesEntry",setup(t){return(n,r)=>(at(),Et("div",jdt,[Gdt,Vdt,ht("div",Kdt,Xt(j(Tn).length),1),j(Ya).length?(at(),Et(ce,{key:0},[Xdt,Ydt,ht("div",Zdt,Xt(j(Ya).length),1)],64)):le("",!0),j(Xa).length?(at(),Et(ce,{key:1},[Jdt,Qdt,ht("div",tpt,Xt(j(Xa).length),1)],64)):le("",!0),j(Uv).length?(at(),Et(ce,{key:2},[ept,npt,ht("div",rpt,Xt(j(Uv).length),1)],64)):le("",!0),ipt,opt,ht("div",spt,Xt(j(Wdt)),1)]))}});const apt=to(lpt,[["__scopeId","data-v-6679a536"]]),cpt={"p-2":"","text-center":"",flex:""},upt={"text-4xl":"","min-w-2em":""},fpt={"text-md":""},hpt=re({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(t){return(n,r)=>(at(),Et("div",cpt,[ht("div",null,[ht("div",upt,[Yn(n.$slots,"body")]),ht("div",fpt,[Yn(n.$slots,"header")])])]))}}),dpt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},ppt=re({__name:"TestsEntry",setup(t){const n=_t(()=>wl.value.length),r=_t(()=>ub.value.length),o=_t(()=>cb.value.length),a=_t(()=>Hdt.value.length),u=_t(()=>Bdt.value.length);return _t(()=>j(n)-o.value-r.value),(f,h)=>{const d=hpt;return at(),Et("div",dpt,[zt(d,{"text-green5":"","data-testid":"pass-entry"},{header:Zt(()=>[fn(" Pass ")]),body:Zt(()=>[fn(Xt(j(r)),1)]),_:1}),zt(d,{class:ve({"text-red5":j(o),op50:!j(o)}),"data-testid":"fail-entry"},{header:Zt(()=>[fn(" Fail ")]),body:Zt(()=>[fn(Xt(j(o)),1)]),_:1},8,["class"]),j(a)?(at(),Qt(d,{key:0,op50:"","data-testid":"skipped-entry"},{header:Zt(()=>[fn(" Skip ")]),body:Zt(()=>[fn(Xt(j(a)),1)]),_:1})):le("",!0),j(u)?(at(),Qt(d,{key:1,op50:"","data-testid":"todo-entry"},{header:Zt(()=>[fn(" Todo ")]),body:Zt(()=>[fn(Xt(j(u)),1)]),_:1})):le("",!0),zt(d,{tail:!0,"data-testid":"total-entry"},{header:Zt(()=>[fn(" Total ")]),body:Zt(()=>[fn(Xt(j(n)),1)]),_:1})])}}}),gpt={},vpt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},mpt={"aria-labelledby":"tests",m:"y-4 x-2"};function ypt(t,n){const r=ppt,o=apt;return at(),Et("div",vpt,[ht("section",mpt,[zt(r)]),zt(o)])}const bpt=to(gpt,[["render",ypt]]),wpt={},xpt={h:"full",flex:"~ col"},_pt=ht("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ht("div",{class:"i-carbon-dashboard"}),ht("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),Spt={class:"scrolls","flex-auto":"","py-1":""};function kpt(t,n){const r=bpt;return at(),Et("div",xpt,[_pt,ht("div",Spt,[zt(r)])])}const Cpt=to(wpt,[["render",kpt]]),Tpt=""+new URL("../favicon.svg",import.meta.url).href,Za=Kt(),Ks=Kt(!0);function Lpt(){const t=Nr.value;if(t&&t.length>0){const n=Ba(t);n?(Za.value=n,Ks.value=!1):EC(()=>Ue.state.getFiles(),()=>{Za.value=Ba(t),Ks.value=!1})}return Ks}function Gv(t){Ks.value=t,t&&(Za.value=void 0,Nr.value="")}const Ept=ht("img",{"w-6":"","h-6":"",src:Tpt,alt:"Vitest logo"},null,-1),Apt=ht("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Mpt={class:"flex text-lg"},Npt=re({__name:"Navigation",setup(t){const n=_t(()=>Tn.value&&yc(Tn.value)),r=()=>Ue.rpc.updateSnapshot();function o(u){Nr.value=u.id,Za.value=Ba(u.id),Gv(!1)}const a=_t(()=>xc.value?"light":"dark");return(u,f)=>{const h=es,d=ab,g=Qi("tooltip");return at(),Qt(d,{border:"r base",tasks:j(Tn),"on-item-click":o,"group-by-type":!0,onRun:j(ov)},{header:Zt(({filteredTests:v})=>[Ept,Apt,ht("div",Mpt,[pn(zt(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon-dashboard",onClick:f[0]||(f[0]=b=>j(Gv)(!0))},null,512),[[Xm,!j(Ks)],[g,"Dashboard",void 0,{bottom:!0}]]),j(n)&&!j(pr)?pn((at(),Qt(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}]]):le("",!0),j(pr)?le("",!0):pn((at(),Qt(h,{key:1,disabled:(v==null?void 0:v.length)===0,icon:"i-carbon-play",onClick:b=>j(ov)(v)},null,8,["disabled","onClick"])),[[g,v?v.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),pn(zt(h,{icon:"dark:i-carbon-moon i-carbon-sun",onClick:f[2]||(f[2]=b=>j(slt)())},null,512),[[g,`Toggle to ${j(a)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks","onRun"])}}}),Ppt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Opt=re({__name:"ProgressBar",setup(t){const{width:n}=mT(),r=_t(()=>Tn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":qdt.value?null:"in-progress"),o=_t(()=>Tn.value.length),a=_t(()=>Ya.value.length),u=_t(()=>Xa.value.length),f=_t(()=>{const v=j(o);return v>0?n.value*a.value/v:0}),h=_t(()=>{const v=j(o);return v>0?n.value*u.value/v:0}),d=_t(()=>j(o)-u.value-a.value),g=_t(()=>{const v=j(o);return v>0?n.value*d.value/v:0});return(v,b)=>(at(),Et("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:ve(j(r))},[ht("div",Ppt,[ht("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ve(j(r)),style:kn(`width: ${j(h)}px;`)}," ",6),ht("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ve(j(r)),style:kn(`left: ${j(h)}px; width: ${j(f)}px;`)}," ",6),ht("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ve(j(r)),style:kn(`left: ${j(f)+j(h)}px; width: ${j(g)}px;`)}," ",6)])],2))}});const $pt=to(Opt,[["__scopeId","data-v-f967c1fe"]]),Vv={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,n)=>(t[n.id]=n)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,n){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=n},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,n){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===n?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,n),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=n,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[n])},onSplitterDblClick(t,n){let r=0;this.panes=this.panes.map((o,a)=>(o.size=a===n?o.max:o.min,a!==n&&(r+=o.min),o)),this.panes[n].size-=r,this.$emit("pane-maximize",this.panes[n]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(t,n){this.$emit("pane-click",this.indexedPanes[n])},getCurrentMouseDrag(t){const n=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:r-n.left,y:o-n.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const n=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=n-t),t*100/n},calculatePanesSize(t){const n=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(n),nextPanesSize:this.sumNextPanesSize(n),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),a=100-(this.pushOtherPanes?0:r.nextPanesSize),u=Math.max(Math.min(this.getCurrentDragPercentage(t),a),o);let f=[n,n+1],h=this.panes[f[0]]||null,d=this.panes[f[1]]||null;const g=h.max<100&&u>=h.max+r.prevPanesSize,v=d.max<100&&u<=100-(d.max+this.sumNextPanesSize(n+1));if(g||v){g?(h.size=h.max,d.size=Math.max(100-h.max-r.prevPanesSize-r.nextPanesSize,0)):(h.size=Math.max(100-d.max-r.prevPanesSize-this.sumNextPanesSize(n+1),0),d.size=d.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,d=this.panes[f[1]]||null}h!==null&&(h.size=Math.min(Math.max(u-r.prevPanesSize-r.prevReachedMinPanes,h.min),h.max)),d!==null&&(d.size=Math.min(Math.max(100-u-r.nextPanesSize-r.nextReachedMinPanes,d.min),d.max))},doPushOtherPanes(t,n){const r=this.touch.activeSplitter,o=[r,r+1];return n<t.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,t.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((a,u)=>{u>o[0]&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,u)=>{u>0&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[o[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):n>100-t.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,t.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((a,u)=>{u>r&&u<o[1]&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),t.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((a,u)=>{u<this.panesCount-1&&u>=r+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[o[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:o}},sumPrevPanesSize(t){return this.panes.reduce((n,r,o)=>n+(o<t?r.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((n,r,o)=>n+(o>t+1?r.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(n=>n.index<t&&n.size>n.min)||{}},findNextExpandedPane(t){return this.panes.find(n=>n.index>t+1&&n.size>n.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const n=t.classList.contains("splitpanes__pane"),r=t.classList.contains("splitpanes__splitter");!n&&!r&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(t,n,r=!1){const o=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),r||(a.onmousedown=u=>this.onMouseDown(u,o),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=u=>this.onMouseDown(u,o)),a.onclick=u=>this.onSplitterClick(u,o+1)),this.dblClickSplitter&&(a.ondblclick=u=>this.onSplitterDblClick(u,o+1)),n.parentNode.insertBefore(a,n)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let n=0;t.forEach(r=>{r.className.includes("splitpanes__pane")&&(!n&&this.firstSplitter?this.addSplitter(n,r,!0):n&&this.addSplitter(n,r),n++)})},requestUpdate({target:t,...n}){const r=this.indexedPanes[t._.uid];Object.entries(n).forEach(([o,a])=>r[o]=a)},onPaneAdd(t){let n=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&n++,a===t.$el));const r=parseFloat(t.minSize),o=parseFloat(t.maxSize);this.panes.splice(n,0,{id:t._.uid,index:n,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,u)=>a.index=u),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[n]}),this.$emit("pane-add",{index:n,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const n=this.panes.findIndex(o=>o.id===t._.uid),r=this.panes.splice(n,1)[0];this.panes.forEach((o,a)=>o.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:n}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(n=>n.givenSize!==null||n.min||n.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},equalize(){const t=100/this.panesCount;let n=0;const r=[],o=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),n-=a.size,a.size>=a.max&&r.push(a.id),a.size<=a.min&&o.push(a.id)}),n>.1&&this.readjustSizes(n,r,o)},initialPanesSizing(){let t=100;const n=[],r=[];let o=0;this.panes.forEach(u=>{t-=u.size,u.size!==null&&o++,u.size>=u.max&&n.push(u.id),u.size<=u.min&&r.push(u.id)});let a=100;t>.1&&(this.panes.forEach(u=>{u.size===null&&(u.size=Math.max(Math.min(t/(this.panesCount-o),u.max),u.min)),a-=u.size}),a>.1&&this.readjustSizes(t,n,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:n}={}){let r=100/this.panesCount,o=0;const a=[],u=[];t&&t.givenSize!==null&&(r=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{t&&t.givenSize!==null&&t.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),o>.1&&this.readjustSizes(o,a,u))},readjustSizes(t,n,r){let o;t>0?o=t/(this.panesCount-n.length):o=t/(this.panesCount-r.length),this.panes.forEach((a,u)=>{if(t>0&&!n.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min),h=f-a.size;t-=h,a.size=f}else if(!r.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min),h=f-a.size;t-=h,a.size=f}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((n,r)=>{n.ondblclick=t?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return pl("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Dpt=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r},Rpt={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 zpt(t,n,r,o,a,u){return at(),Et("div",{class:"splitpanes__pane",onClick:n[0]||(n[0]=f=>u.onPaneClick(f,t._.uid)),style:kn(t.style)},[Yn(t.$slots,"default")],4)}const ga=Dpt(Rpt,[["render",zpt]]),Ipt={"h-screen":"","w-screen":"",overflow:"hidden"},Fpt=re({__name:"index",setup(t){const n=Lpt(),r=Pn([33,67]),o=Pn([33,67]),a=Hg(h=>{h.forEach((d,g)=>{r[g]=d.size})},0),u=Hg(h=>{h.forEach((d,g)=>{o[g]=d.size})},0),f=()=>{const h=window.innerWidth,d=Math.min(h/3,300);r[0]=100*d/h,r[1]=100-r[0],o[0]=100*d/(h-d),o[1]=100-o[0]};return(h,d)=>{const g=$pt,v=Npt,b=Cpt,w=Fdt,S=cdt,M=qT;return at(),Et(ce,null,[zt(g),ht("div",Ipt,[zt(j(Vv),{class:"pt-4px",onResized:j(a),onReady:f},{default:Zt(()=>[zt(j(ga),{size:j(r)[0]},{default:Zt(()=>[zt(v)]),_:1},8,["size"]),zt(j(ga),{size:j(r)[1]},{default:Zt(()=>[zt(Qf,null,{default:Zt(()=>[j(n)?(at(),Qt(b,{key:"summary"})):(at(),Qt(j(Vv),{key:"detail",onResized:j(u)},{default:Zt(()=>[zt(j(ga),{size:j(o)[0]},{default:Zt(()=>[zt(w)]),_:1},8,["size"]),zt(j(ga),{size:j(o)[1]},{default:Zt(()=>[zt(S)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),zt(M)],64)}}}),qpt=[{name:"index",path:"/",component:Fpt,props:!0}];const Hpt={tooltip:lC};M0.options.instantMove=!0;M0.options.distance=10;const Bpt=()=>YS({history:hS($T),routes:qpt}),Wpt=[Bpt],Eh=Ym(K_);Wpt.forEach(t=>{Eh.use(t())});Object.entries(Hpt).forEach(([t,n])=>{Eh.directive(t,n)});Eh.mount("#app");
|