@unocss/inspector 0.16.4 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,34 @@
1
+ function Ws(r,n){const l=Object.create(null),s=r.split(",");for(let u=0;u<s.length;u++)l[s[u]]=!0;return n?u=>!!l[u.toLowerCase()]:u=>!!l[u]}const $g="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",Yg=Ws($g),Xg="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Vg=Ws(Xg);function $c(r){return!!r||r===""}function To(r){if(He(r)){const n={};for(let l=0;l<r.length;l++){const s=r[l],u=bt(s)?Qg(s):To(s);if(u)for(const f in u)n[f]=u[f]}return n}else{if(bt(r))return r;if(xt(r))return r}}const Jg=/;(?![^(]*\))/g,Zg=/:(.+)/;function Qg(r){const n={};return r.split(Jg).forEach(l=>{if(l){const s=l.split(Zg);s.length>1&&(n[s[0].trim()]=s[1].trim())}}),n}function Po(r){let n="";if(bt(r))n=r;else if(He(r))for(let l=0;l<r.length;l++){const s=Po(r[l]);s&&(n+=s+" ")}else if(xt(r))for(const l in r)r[l]&&(n+=l+" ");return n.trim()}function qg(r){if(!r)return null;let{class:n,style:l}=r;return n&&!bt(n)&&(r.class=Po(n)),l&&(r.style=To(l)),r}function _g(r,n){if(r.length!==n.length)return!1;let l=!0;for(let s=0;l&&s<r.length;s++)l=fn(r[s],n[s]);return l}function fn(r,n){if(r===n)return!0;let l=Xc(r),s=Xc(n);if(l||s)return l&&s?r.getTime()===n.getTime():!1;if(l=He(r),s=He(n),l||s)return l&&s?_g(r,n):!1;if(l=xt(r),s=xt(n),l||s){if(!l||!s)return!1;const u=Object.keys(r).length,f=Object.keys(n).length;if(u!==f)return!1;for(const d in r){const v=r.hasOwnProperty(d),p=n.hasOwnProperty(d);if(v&&!p||!v&&p||!fn(r[d],n[d]))return!1}}return String(r)===String(n)}function js(r,n){return r.findIndex(l=>fn(l,n))}const em=r=>r==null?"":He(r)||xt(r)&&(r.toString===Vc||!Xe(r.toString))?JSON.stringify(r,Yc,2):String(r),Yc=(r,n)=>n&&n.__v_isRef?Yc(r,n.value):Ci(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((l,[s,u])=>(l[`${s} =>`]=u,l),{})}:Bn(n)?{[`Set(${n.size})`]:[...n.values()]}:xt(n)&&!He(n)&&!Jc(n)?String(n):n,st={},Si=[],Sr=()=>{},tm=()=>!1,rm=/^on[^a-z]/,Oo=r=>rm.test(r),Tl=r=>r.startsWith("onUpdate:"),yt=Object.assign,Pl=(r,n)=>{const l=r.indexOf(n);l>-1&&r.splice(l,1)},nm=Object.prototype.hasOwnProperty,nt=(r,n)=>nm.call(r,n),He=Array.isArray,Ci=r=>Ks(r)==="[object Map]",Bn=r=>Ks(r)==="[object Set]",Xc=r=>r instanceof Date,Xe=r=>typeof r=="function",bt=r=>typeof r=="string",Ol=r=>typeof r=="symbol",xt=r=>r!==null&&typeof r=="object",kl=r=>xt(r)&&Xe(r.then)&&Xe(r.catch),Vc=Object.prototype.toString,Ks=r=>Vc.call(r),im=r=>Ks(r).slice(8,-1),Jc=r=>Ks(r)==="[object Object]",El=r=>bt(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,ko=Ws(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Us=r=>{const n=Object.create(null);return l=>n[l]||(n[l]=r(l))},om=/-(\w)/g,lr=Us(r=>r.replace(om,(n,l)=>l?l.toUpperCase():"")),sm=/\B([A-Z])/g,Ir=Us(r=>r.replace(sm,"-$1").toLowerCase()),Eo=Us(r=>r.charAt(0).toUpperCase()+r.slice(1)),Mo=Us(r=>r?`on${Eo(r)}`:""),Ao=(r,n)=>!Object.is(r,n),Ti=(r,n)=>{for(let l=0;l<r.length;l++)r[l](n)},Gs=(r,n,l)=>{Object.defineProperty(r,n,{configurable:!0,enumerable:!1,value:l})},cn=r=>{const n=parseFloat(r);return isNaN(n)?r:n};let Zc;const am=()=>Zc||(Zc=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Rr;const $s=[];class Ml{constructor(n=!1){this.active=!0,this.effects=[],this.cleanups=[],!n&&Rr&&(this.parent=Rr,this.index=(Rr.scopes||(Rr.scopes=[])).push(this)-1)}run(n){if(this.active)try{return this.on(),n()}finally{this.off()}}on(){this.active&&($s.push(this),Rr=this)}off(){this.active&&($s.pop(),Rr=$s[$s.length-1])}stop(n){if(this.active){if(this.effects.forEach(l=>l.stop()),this.cleanups.forEach(l=>l()),this.scopes&&this.scopes.forEach(l=>l.stop(!0)),this.parent&&!n){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.active=!1}}}function lm(r){return new Ml(r)}function Qc(r,n){n=n||Rr,n&&n.active&&n.effects.push(r)}function qc(){return Rr}function _c(r){Rr&&Rr.cleanups.push(r)}const Al=r=>{const n=new Set(r);return n.w=0,n.n=0,n},ed=r=>(r.w&dn)>0,td=r=>(r.n&dn)>0,um=({deps:r})=>{if(r.length)for(let n=0;n<r.length;n++)r[n].w|=dn},fm=r=>{const{deps:n}=r;if(n.length){let l=0;for(let s=0;s<n.length;s++){const u=n[s];ed(u)&&!td(u)?u.delete(r):n[l++]=u,u.w&=~dn,u.n&=~dn}n.length=l}},Ll=new WeakMap;let Lo=0,dn=1;const Nl=30,No=[];let Wn;const jn=Symbol(""),Il=Symbol("");class Io{constructor(n,l=null,s){this.fn=n,this.scheduler=l,this.active=!0,this.deps=[],Qc(this,s)}run(){if(!this.active)return this.fn();if(!No.includes(this))try{return No.push(Wn=this),hm(),dn=1<<++Lo,Lo<=Nl?um(this):rd(this),this.fn()}finally{Lo<=Nl&&fm(this),dn=1<<--Lo,hn(),No.pop();const n=No.length;Wn=n>0?No[n-1]:void 0}}stop(){this.active&&(rd(this),this.onStop&&this.onStop(),this.active=!1)}}function rd(r){const{deps:n}=r;if(n.length){for(let l=0;l<n.length;l++)n[l].delete(r);n.length=0}}function cm(r,n){r.effect&&(r=r.effect.fn);const l=new Io(r);n&&(yt(l,n),n.scope&&Qc(l,n.scope)),(!n||!n.lazy)&&l.run();const s=l.run.bind(l);return s.effect=l,s}function dm(r){r.effect.stop()}let Pi=!0;const Rl=[];function Kn(){Rl.push(Pi),Pi=!1}function hm(){Rl.push(Pi),Pi=!0}function hn(){const r=Rl.pop();Pi=r===void 0?!0:r}function ur(r,n,l){if(!nd())return;let s=Ll.get(r);s||Ll.set(r,s=new Map);let u=s.get(l);u||s.set(l,u=Al()),id(u)}function nd(){return Pi&&Wn!==void 0}function id(r,n){let l=!1;Lo<=Nl?td(r)||(r.n|=dn,l=!ed(r)):l=!r.has(Wn),l&&(r.add(Wn),Wn.deps.push(r))}function Xr(r,n,l,s,u,f){const d=Ll.get(r);if(!d)return;let v=[];if(n==="clear")v=[...d.values()];else if(l==="length"&&He(r))d.forEach((p,m)=>{(m==="length"||m>=s)&&v.push(p)});else switch(l!==void 0&&v.push(d.get(l)),n){case"add":He(r)?El(l)&&v.push(d.get("length")):(v.push(d.get(jn)),Ci(r)&&v.push(d.get(Il)));break;case"delete":He(r)||(v.push(d.get(jn)),Ci(r)&&v.push(d.get(Il)));break;case"set":Ci(r)&&v.push(d.get(jn));break}if(v.length===1)v[0]&&Dl(v[0]);else{const p=[];for(const m of v)m&&p.push(...m);Dl(Al(p))}}function Dl(r,n){for(const l of He(r)?r:[...r])(l!==Wn||l.allowRecurse)&&(l.scheduler?l.scheduler():l.run())}const pm=Ws("__proto__,__v_isRef,__isVue"),od=new Set(Object.getOwnPropertyNames(Symbol).map(r=>Symbol[r]).filter(Ol)),vm=Ys(),gm=Ys(!1,!0),mm=Ys(!0),ym=Ys(!0,!0),sd=bm();function bm(){const r={};return["includes","indexOf","lastIndexOf"].forEach(n=>{r[n]=function(...l){const s=_e(this);for(let f=0,d=this.length;f<d;f++)ur(s,"get",f+"");const u=s[n](...l);return u===-1||u===!1?s[n](...l.map(_e)):u}}),["push","pop","shift","unshift","splice"].forEach(n=>{r[n]=function(...l){Kn();const s=_e(this)[n].apply(this,l);return hn(),s}}),r}function Ys(r=!1,n=!1){return function(s,u,f){if(u==="__v_isReactive")return!r;if(u==="__v_isReadonly")return r;if(u==="__v_raw"&&f===(r?n?md:gd:n?vd:pd).get(s))return s;const d=He(s);if(!r&&d&&nt(sd,u))return Reflect.get(sd,u,f);const v=Reflect.get(s,u,f);return(Ol(u)?od.has(u):pm(u))||(r||ur(s,"get",u),n)?v:Ct(v)?!d||!El(u)?v.value:v:xt(v)?r?zl(v):Oi(v):v}}const xm=ad(),wm=ad(!0);function ad(r=!1){return function(l,s,u,f){let d=l[s];if(!r&&!ta(u)&&(u=_e(u),d=_e(d),!He(l)&&Ct(d)&&!Ct(u)))return d.value=u,!0;const v=He(l)&&El(s)?Number(s)<l.length:nt(l,s),p=Reflect.set(l,s,u,f);return l===_e(f)&&(v?Ao(u,d)&&Xr(l,"set",s,u):Xr(l,"add",s,u)),p}}function Sm(r,n){const l=nt(r,n);r[n];const s=Reflect.deleteProperty(r,n);return s&&l&&Xr(r,"delete",n,void 0),s}function Cm(r,n){const l=Reflect.has(r,n);return(!Ol(n)||!od.has(n))&&ur(r,"has",n),l}function Tm(r){return ur(r,"iterate",He(r)?"length":jn),Reflect.ownKeys(r)}const ld={get:vm,set:xm,deleteProperty:Sm,has:Cm,ownKeys:Tm},ud={get:mm,set(r,n){return!0},deleteProperty(r,n){return!0}},Pm=yt({},ld,{get:gm,set:wm}),Om=yt({},ud,{get:ym}),Fl=r=>r,Xs=r=>Reflect.getPrototypeOf(r);function Vs(r,n,l=!1,s=!1){r=r.__v_raw;const u=_e(r),f=_e(n);n!==f&&!l&&ur(u,"get",n),!l&&ur(u,"get",f);const{has:d}=Xs(u),v=s?Fl:l?Wl:Ro;if(d.call(u,n))return v(r.get(n));if(d.call(u,f))return v(r.get(f));r!==u&&r.get(n)}function Js(r,n=!1){const l=this.__v_raw,s=_e(l),u=_e(r);return r!==u&&!n&&ur(s,"has",r),!n&&ur(s,"has",u),r===u?l.has(r):l.has(r)||l.has(u)}function Zs(r,n=!1){return r=r.__v_raw,!n&&ur(_e(r),"iterate",jn),Reflect.get(r,"size",r)}function fd(r){r=_e(r);const n=_e(this);return Xs(n).has.call(n,r)||(n.add(r),Xr(n,"add",r,r)),this}function cd(r,n){n=_e(n);const l=_e(this),{has:s,get:u}=Xs(l);let f=s.call(l,r);f||(r=_e(r),f=s.call(l,r));const d=u.call(l,r);return l.set(r,n),f?Ao(n,d)&&Xr(l,"set",r,n):Xr(l,"add",r,n),this}function dd(r){const n=_e(this),{has:l,get:s}=Xs(n);let u=l.call(n,r);u||(r=_e(r),u=l.call(n,r)),s&&s.call(n,r);const f=n.delete(r);return u&&Xr(n,"delete",r,void 0),f}function hd(){const r=_e(this),n=r.size!==0,l=r.clear();return n&&Xr(r,"clear",void 0,void 0),l}function Qs(r,n){return function(s,u){const f=this,d=f.__v_raw,v=_e(d),p=n?Fl:r?Wl:Ro;return!r&&ur(v,"iterate",jn),d.forEach((m,b)=>s.call(u,p(m),p(b),f))}}function qs(r,n,l){return function(...s){const u=this.__v_raw,f=_e(u),d=Ci(f),v=r==="entries"||r===Symbol.iterator&&d,p=r==="keys"&&d,m=u[r](...s),b=l?Fl:n?Wl:Ro;return!n&&ur(f,"iterate",p?Il:jn),{next(){const{value:w,done:C}=m.next();return C?{value:w,done:C}:{value:v?[b(w[0]),b(w[1])]:b(w),done:C}},[Symbol.iterator](){return this}}}}function pn(r){return function(...n){return r==="delete"?!1:this}}function km(){const r={get(f){return Vs(this,f)},get size(){return Zs(this)},has:Js,add:fd,set:cd,delete:dd,clear:hd,forEach:Qs(!1,!1)},n={get(f){return Vs(this,f,!1,!0)},get size(){return Zs(this)},has:Js,add:fd,set:cd,delete:dd,clear:hd,forEach:Qs(!1,!0)},l={get(f){return Vs(this,f,!0)},get size(){return Zs(this,!0)},has(f){return Js.call(this,f,!0)},add:pn("add"),set:pn("set"),delete:pn("delete"),clear:pn("clear"),forEach:Qs(!0,!1)},s={get(f){return Vs(this,f,!0,!0)},get size(){return Zs(this,!0)},has(f){return Js.call(this,f,!0)},add:pn("add"),set:pn("set"),delete:pn("delete"),clear:pn("clear"),forEach:Qs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(f=>{r[f]=qs(f,!1,!1),l[f]=qs(f,!0,!1),n[f]=qs(f,!1,!0),s[f]=qs(f,!0,!0)}),[r,l,n,s]}const[Em,Mm,Am,Lm]=km();function _s(r,n){const l=n?r?Lm:Am:r?Mm:Em;return(s,u,f)=>u==="__v_isReactive"?!r:u==="__v_isReadonly"?r:u==="__v_raw"?s:Reflect.get(nt(l,u)&&u in s?l:s,u,f)}const Nm={get:_s(!1,!1)},Im={get:_s(!1,!0)},Rm={get:_s(!0,!1)},Dm={get:_s(!0,!0)},pd=new WeakMap,vd=new WeakMap,gd=new WeakMap,md=new WeakMap;function Fm(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zm(r){return r.__v_skip||!Object.isExtensible(r)?0:Fm(im(r))}function Oi(r){return r&&r.__v_isReadonly?r:ea(r,!1,ld,Nm,pd)}function yd(r){return ea(r,!1,Pm,Im,vd)}function zl(r){return ea(r,!0,ud,Rm,gd)}function Hm(r){return ea(r,!0,Om,Dm,md)}function ea(r,n,l,s,u){if(!xt(r)||r.__v_raw&&!(n&&r.__v_isReactive))return r;const f=u.get(r);if(f)return f;const d=zm(r);if(d===0)return r;const v=new Proxy(r,d===2?s:l);return u.set(r,v),v}function Un(r){return ta(r)?Un(r.__v_raw):!!(r&&r.__v_isReactive)}function ta(r){return!!(r&&r.__v_isReadonly)}function Hl(r){return Un(r)||ta(r)}function _e(r){const n=r&&r.__v_raw;return n?_e(n):r}function Bl(r){return Gs(r,"__v_skip",!0),r}const Ro=r=>xt(r)?Oi(r):r,Wl=r=>xt(r)?zl(r):r;function jl(r){nd()&&(r=_e(r),r.dep||(r.dep=Al()),id(r.dep))}function ra(r,n){r=_e(r),r.dep&&Dl(r.dep)}function Ct(r){return Boolean(r&&r.__v_isRef===!0)}function Lt(r){return bd(r,!1)}function Do(r){return bd(r,!0)}function bd(r,n){return Ct(r)?r:new Bm(r,n)}class Bm{constructor(n,l){this._shallow=l,this.dep=void 0,this.__v_isRef=!0,this._rawValue=l?n:_e(n),this._value=l?n:Ro(n)}get value(){return jl(this),this._value}set value(n){n=this._shallow?n:_e(n),Ao(n,this._rawValue)&&(this._rawValue=n,this._value=this._shallow?n:Ro(n),ra(this))}}function Wm(r){ra(r)}function ft(r){return Ct(r)?r.value:r}const jm={get:(r,n,l)=>ft(Reflect.get(r,n,l)),set:(r,n,l,s)=>{const u=r[n];return Ct(u)&&!Ct(l)?(u.value=l,!0):Reflect.set(r,n,l,s)}};function Kl(r){return Un(r)?r:new Proxy(r,jm)}class Km{constructor(n){this.dep=void 0,this.__v_isRef=!0;const{get:l,set:s}=n(()=>jl(this),()=>ra(this));this._get=l,this._set=s}get value(){return this._get()}set value(n){this._set(n)}}function Um(r){return new Km(r)}function Gm(r){const n=He(r)?new Array(r.length):{};for(const l in r)n[l]=xd(r,l);return n}class $m{constructor(n,l,s){this._object=n,this._key=l,this._defaultValue=s,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 xd(r,n,l){const s=r[n];return Ct(s)?s:new $m(r,n,l)}class Ym{constructor(n,l,s){this._setter=l,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new Io(n,()=>{this._dirty||(this._dirty=!0,ra(this))}),this.__v_isReadonly=s}get value(){const n=_e(this);return jl(n),n._dirty&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}function zt(r,n){let l,s;const u=Xe(r);return u?(l=r,s=Sr):(l=r.get,s=r.set),new Ym(l,s,u||!s)}Promise.resolve();let ki,na=[];function wd(r,n){var l,s;ki=r,ki?(ki.enabled=!0,na.forEach(({event:u,args:f})=>ki.emit(u,...f)),na=[]):typeof window!="undefined"&&window.HTMLElement&&!((s=(l=window.navigator)===null||l===void 0?void 0:l.userAgent)===null||s===void 0?void 0:s.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(f=>{wd(f,n)}),setTimeout(()=>{ki||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,na=[])},3e3)):na=[]}function Xm(r,n,...l){const s=r.vnode.props||st;let u=l;const f=n.startsWith("update:"),d=f&&n.slice(7);if(d&&d in s){const b=`${d==="modelValue"?"model":d}Modifiers`,{number:w,trim:C}=s[b]||st;C?u=l.map(P=>P.trim()):w&&(u=l.map(cn))}let v,p=s[v=Mo(n)]||s[v=Mo(lr(n))];!p&&f&&(p=s[v=Mo(Ir(n))]),p&&dr(p,r,6,u);const m=s[v+"Once"];if(m){if(!r.emitted)r.emitted={};else if(r.emitted[v])return;r.emitted[v]=!0,dr(m,r,6,u)}}function Sd(r,n,l=!1){const s=n.emitsCache,u=s.get(r);if(u!==void 0)return u;const f=r.emits;let d={},v=!1;if(!Xe(r)){const p=m=>{const b=Sd(m,n,!0);b&&(v=!0,yt(d,b))};!l&&n.mixins.length&&n.mixins.forEach(p),r.extends&&p(r.extends),r.mixins&&r.mixins.forEach(p)}return!f&&!v?(s.set(r,null),null):(He(f)?f.forEach(p=>d[p]=null):yt(d,f),s.set(r,d),d)}function Ul(r,n){return!r||!Oo(n)?!1:(n=n.slice(2).replace(/Once$/,""),nt(r,n[0].toLowerCase()+n.slice(1))||nt(r,Ir(n))||nt(r,n))}let fr=null,ia=null;function Fo(r){const n=fr;return fr=r,ia=r&&r.type.__scopeId||null,n}function Vm(r){ia=r}function Jm(){ia=null}const Zm=r=>Gl;function Gl(r,n=fr,l){if(!n||r._n)return r;const s=(...u)=>{s._d&&lu(-1);const f=Fo(n),d=r(...u);return Fo(f),s._d&&lu(1),d};return s._n=!0,s._c=!0,s._d=!0,s}function oa(r){const{type:n,vnode:l,proxy:s,withProxy:u,props:f,propsOptions:[d],slots:v,attrs:p,emit:m,render:b,renderCache:w,data:C,setupState:P,ctx:A,inheritAttrs:G}=r;let F,W;const M=Fo(r);try{if(l.shapeFlag&4){const H=u||s;F=cr(b.call(H,H,w,f,P,C,A)),W=p}else{const H=n;F=cr(H.length>1?H(f,{attrs:p,slots:v,emit:m}):H(f,null)),W=n.props?p:qm(p)}}catch(H){Go.length=0,Vn(H,r,1),F=ct(Zt)}let I=F;if(W&&G!==!1){const H=Object.keys(W),{shapeFlag:q}=I;H.length&&q&(1|6)&&(d&&H.some(Tl)&&(W=_m(W,d)),I=mn(I,W))}return l.dirs&&(I.dirs=I.dirs?I.dirs.concat(l.dirs):l.dirs),l.transition&&(I.transition=l.transition),F=I,Fo(M),F}function Qm(r){let n;for(let l=0;l<r.length;l++){const s=r[l];if(gn(s)){if(s.type!==Zt||s.children==="v-if"){if(n)return;n=s}}else return}return n}const qm=r=>{let n;for(const l in r)(l==="class"||l==="style"||Oo(l))&&((n||(n={}))[l]=r[l]);return n},_m=(r,n)=>{const l={};for(const s in r)(!Tl(s)||!(s.slice(9)in n))&&(l[s]=r[s]);return l};function ey(r,n,l){const{props:s,children:u,component:f}=r,{props:d,children:v,patchFlag:p}=n,m=f.emitsOptions;if(n.dirs||n.transition)return!0;if(l&&p>=0){if(p&1024)return!0;if(p&16)return s?Cd(s,d,m):!!d;if(p&8){const b=n.dynamicProps;for(let w=0;w<b.length;w++){const C=b[w];if(d[C]!==s[C]&&!Ul(m,C))return!0}}}else return(u||v)&&(!v||!v.$stable)?!0:s===d?!1:s?d?Cd(s,d,m):!0:!!d;return!1}function Cd(r,n,l){const s=Object.keys(n);if(s.length!==Object.keys(r).length)return!0;for(let u=0;u<s.length;u++){const f=s[u];if(n[f]!==r[f]&&!Ul(l,f))return!0}return!1}function $l({vnode:r,parent:n},l){for(;n&&n.subTree===r;)(r=n.vnode).el=l,n=n.parent}const ty=r=>r.__isSuspense,ry={name:"Suspense",__isSuspense:!0,process(r,n,l,s,u,f,d,v,p,m){r==null?iy(n,l,s,u,f,d,v,p,m):oy(r,n,l,s,u,d,v,p,m)},hydrate:sy,create:Yl,normalize:ay},ny=ry;function zo(r,n){const l=r.props&&r.props[n];Xe(l)&&l()}function iy(r,n,l,s,u,f,d,v,p){const{p:m,o:{createElement:b}}=p,w=b("div"),C=r.suspense=Yl(r,u,s,n,w,l,f,d,v,p);m(null,C.pendingBranch=r.ssContent,w,null,s,C,f,d),C.deps>0?(zo(r,"onPending"),zo(r,"onFallback"),m(null,r.ssFallback,n,l,s,null,f,d),Ei(C,r.ssFallback)):C.resolve()}function oy(r,n,l,s,u,f,d,v,{p,um:m,o:{createElement:b}}){const w=n.suspense=r.suspense;w.vnode=n,n.el=r.el;const C=n.ssContent,P=n.ssFallback,{activeBranch:A,pendingBranch:G,isInFallback:F,isHydrating:W}=w;if(G)w.pendingBranch=C,zr(C,G)?(p(G,C,w.hiddenContainer,null,u,w,f,d,v),w.deps<=0?w.resolve():F&&(p(A,P,l,s,u,null,f,d,v),Ei(w,P))):(w.pendingId++,W?(w.isHydrating=!1,w.activeBranch=G):m(G,u,w),w.deps=0,w.effects.length=0,w.hiddenContainer=b("div"),F?(p(null,C,w.hiddenContainer,null,u,w,f,d,v),w.deps<=0?w.resolve():(p(A,P,l,s,u,null,f,d,v),Ei(w,P))):A&&zr(C,A)?(p(A,C,l,s,u,w,f,d,v),w.resolve(!0)):(p(null,C,w.hiddenContainer,null,u,w,f,d,v),w.deps<=0&&w.resolve()));else if(A&&zr(C,A))p(A,C,l,s,u,w,f,d,v),Ei(w,C);else if(zo(n,"onPending"),w.pendingBranch=C,w.pendingId++,p(null,C,w.hiddenContainer,null,u,w,f,d,v),w.deps<=0)w.resolve();else{const{timeout:M,pendingId:I}=w;M>0?setTimeout(()=>{w.pendingId===I&&w.fallback(P)},M):M===0&&w.fallback(P)}}function Yl(r,n,l,s,u,f,d,v,p,m,b=!1){const{p:w,m:C,um:P,n:A,o:{parentNode:G,remove:F}}=m,W=cn(r.props&&r.props.timeout),M={vnode:r,parent:n,parentComponent:l,isSVG:d,container:s,hiddenContainer:u,anchor:f,deps:0,pendingId:0,timeout:typeof W=="number"?W:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:b,isUnmounted:!1,effects:[],resolve(I=!1){const{vnode:H,activeBranch:q,pendingBranch:_,pendingId:V,effects:J,parentComponent:te,container:ie}=M;if(M.isHydrating)M.isHydrating=!1;else if(!I){const k=q&&_.transition&&_.transition.mode==="out-in";k&&(q.transition.afterLeave=()=>{V===M.pendingId&&C(_,ie,O,0)});let{anchor:O}=M;q&&(O=A(q),P(q,te,M,!0)),k||C(_,ie,O,0)}Ei(M,_),M.pendingBranch=null,M.isInFallback=!1;let Q=M.parent,ee=!1;for(;Q;){if(Q.pendingBranch){Q.effects.push(...J),ee=!0;break}Q=Q.parent}ee||Su(J),M.effects=[],zo(H,"onResolve")},fallback(I){if(!M.pendingBranch)return;const{vnode:H,activeBranch:q,parentComponent:_,container:V,isSVG:J}=M;zo(H,"onFallback");const te=A(q),ie=()=>{!M.isInFallback||(w(null,I,V,te,_,null,J,v,p),Ei(M,I))},Q=I.transition&&I.transition.mode==="out-in";Q&&(q.transition.afterLeave=ie),M.isInFallback=!0,P(q,_,null,!0),Q||ie()},move(I,H,q){M.activeBranch&&C(M.activeBranch,I,H,q),M.container=I},next(){return M.activeBranch&&A(M.activeBranch)},registerDep(I,H){const q=!!M.pendingBranch;q&&M.deps++;const _=I.vnode.el;I.asyncDep.catch(V=>{Vn(V,I,0)}).then(V=>{if(I.isUnmounted||M.isUnmounted||M.pendingId!==I.suspenseId)return;I.asyncResolved=!0;const{vnode:J}=I;vu(I,V,!1),_&&(J.el=_);const te=!_&&I.subTree.el;H(I,J,G(_||I.subTree.el),_?null:A(I.subTree),M,d,p),te&&F(te),$l(I,J.el),q&&--M.deps==0&&M.resolve()})},unmount(I,H){M.isUnmounted=!0,M.activeBranch&&P(M.activeBranch,l,I,H),M.pendingBranch&&P(M.pendingBranch,l,I,H)}};return M}function sy(r,n,l,s,u,f,d,v,p){const m=n.suspense=Yl(n,s,l,r.parentNode,document.createElement("div"),null,u,f,d,v,!0),b=p(r,m.pendingBranch=n.ssContent,l,m,f,d);return m.deps===0&&m.resolve(),b}function ay(r){const{shapeFlag:n,children:l}=r,s=n&32;r.ssContent=Td(s?l.default:l),r.ssFallback=s?Td(l.fallback):ct(Zt)}function Td(r){let n;if(Xe(r)){const l=Ni&&r._c;l&&(r._d=!1,va()),r=r(),l&&(r._d=!0,n=Fr,nh())}return He(r)&&(r=Qm(r)),r=cr(r),n&&!r.dynamicChildren&&(r.dynamicChildren=n.filter(l=>l!==r)),r}function Pd(r,n){n&&n.pendingBranch?He(r)?n.effects.push(...r):n.effects.push(r):Su(r)}function Ei(r,n){r.activeBranch=n;const{vnode:l,parentComponent:s}=r,u=l.el=n.el;s&&s.subTree===l&&(s.vnode.el=u,$l(s,u))}function Ho(r,n){if(Nt){let l=Nt.provides;const s=Nt.parent&&Nt.parent.provides;s===l&&(l=Nt.provides=Object.create(s)),l[r]=n}}function Cr(r,n,l=!1){const s=Nt||fr;if(s){const u=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(u&&r in u)return u[r];if(arguments.length>1)return l&&Xe(n)?n.call(s.proxy):n}}function Xl(){const r={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ai(()=>{r.isMounted=!0}),ua(()=>{r.isUnmounting=!0}),r}const vr=[Function,Array],ly={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:vr,onEnter:vr,onAfterEnter:vr,onEnterCancelled:vr,onBeforeLeave:vr,onLeave:vr,onAfterLeave:vr,onLeaveCancelled:vr,onBeforeAppear:vr,onAppear:vr,onAfterAppear:vr,onAppearCancelled:vr},setup(r,{slots:n}){const l=Hr(),s=Xl();let u;return()=>{const f=n.default&&sa(n.default(),!0);if(!f||!f.length)return;const d=_e(r),{mode:v}=d,p=f[0];if(s.isLeaving)return Jl(p);const m=kd(p);if(!m)return Jl(p);const b=Mi(m,d,s,l);Gn(m,b);const w=l.subTree,C=w&&kd(w);let P=!1;const{getTransitionKey:A}=m.type;if(A){const G=A();u===void 0?u=G:G!==u&&(u=G,P=!0)}if(C&&C.type!==Zt&&(!zr(m,C)||P)){const G=Mi(C,d,s,l);if(Gn(C,G),v==="out-in")return s.isLeaving=!0,G.afterLeave=()=>{s.isLeaving=!1,l.update()},Jl(p);v==="in-out"&&m.type!==Zt&&(G.delayLeave=(F,W,M)=>{const I=Od(s,C);I[String(C.key)]=C,F._leaveCb=()=>{W(),F._leaveCb=void 0,delete b.delayedLeave},b.delayedLeave=M})}return p}}},Vl=ly;function Od(r,n){const{leavingVNodes:l}=r;let s=l.get(n.type);return s||(s=Object.create(null),l.set(n.type,s)),s}function Mi(r,n,l,s){const{appear:u,mode:f,persisted:d=!1,onBeforeEnter:v,onEnter:p,onAfterEnter:m,onEnterCancelled:b,onBeforeLeave:w,onLeave:C,onAfterLeave:P,onLeaveCancelled:A,onBeforeAppear:G,onAppear:F,onAfterAppear:W,onAppearCancelled:M}=n,I=String(r.key),H=Od(l,r),q=(V,J)=>{V&&dr(V,s,9,J)},_={mode:f,persisted:d,beforeEnter(V){let J=v;if(!l.isMounted)if(u)J=G||v;else return;V._leaveCb&&V._leaveCb(!0);const te=H[I];te&&zr(r,te)&&te.el._leaveCb&&te.el._leaveCb(),q(J,[V])},enter(V){let J=p,te=m,ie=b;if(!l.isMounted)if(u)J=F||p,te=W||m,ie=M||b;else return;let Q=!1;const ee=V._enterCb=k=>{Q||(Q=!0,k?q(ie,[V]):q(te,[V]),_.delayedLeave&&_.delayedLeave(),V._enterCb=void 0)};J?(J(V,ee),J.length<=1&&ee()):ee()},leave(V,J){const te=String(r.key);if(V._enterCb&&V._enterCb(!0),l.isUnmounting)return J();q(w,[V]);let ie=!1;const Q=V._leaveCb=ee=>{ie||(ie=!0,J(),ee?q(A,[V]):q(P,[V]),V._leaveCb=void 0,H[te]===r&&delete H[te])};H[te]=r,C?(C(V,Q),C.length<=1&&Q()):Q()},clone(V){return Mi(V,n,l,s)}};return _}function Jl(r){if(jo(r))return r=mn(r),r.children=null,r}function kd(r){return jo(r)?r.children?r.children[0]:void 0:r}function Gn(r,n){r.shapeFlag&6&&r.component?Gn(r.component.subTree,n):r.shapeFlag&128?(r.ssContent.transition=n.clone(r.ssContent),r.ssFallback.transition=n.clone(r.ssFallback)):r.transition=n}function sa(r,n=!1){let l=[],s=0;for(let u=0;u<r.length;u++){const f=r[u];f.type===Bt?(f.patchFlag&128&&s++,l=l.concat(sa(f.children,n))):(n||f.type!==Zt)&&l.push(f)}if(s>1)for(let u=0;u<l.length;u++)l[u].patchFlag=-2;return l}function Bo(r){return Xe(r)?{setup:r,name:r.name}:r}const Wo=r=>!!r.type.__asyncLoader;function uy(r){Xe(r)&&(r={loader:r});const{loader:n,loadingComponent:l,errorComponent:s,delay:u=200,timeout:f,suspensible:d=!0,onError:v}=r;let p=null,m,b=0;const w=()=>(b++,p=null,C()),C=()=>{let P;return p||(P=p=n().catch(A=>{if(A=A instanceof Error?A:new Error(String(A)),v)return new Promise((G,F)=>{v(A,()=>G(w()),()=>F(A),b+1)});throw A}).then(A=>P!==p&&p?p:(A&&(A.__esModule||A[Symbol.toStringTag]==="Module")&&(A=A.default),m=A,A)))};return Bo({name:"AsyncComponentWrapper",__asyncLoader:C,get __asyncResolved(){return m},setup(){const P=Nt;if(m)return()=>Zl(m,P);const A=M=>{p=null,Vn(M,P,13,!s)};if(d&&P.suspense||$o)return C().then(M=>()=>Zl(M,P)).catch(M=>(A(M),()=>s?ct(s,{error:M}):null));const G=Lt(!1),F=Lt(),W=Lt(!!u);return u&&setTimeout(()=>{W.value=!1},u),f!=null&&setTimeout(()=>{if(!G.value&&!F.value){const M=new Error(`Async component timed out after ${f}ms.`);A(M),F.value=M}},f),C().then(()=>{G.value=!0,P.parent&&jo(P.parent.vnode)&&wu(P.parent.update)}).catch(M=>{A(M),F.value=M}),()=>{if(G.value&&m)return Zl(m,P);if(F.value&&s)return ct(s,{error:F.value});if(l&&!W.value)return ct(l)}}})}function Zl(r,{vnode:{ref:n,props:l,children:s}}){const u=ct(r,l,s);return u.ref=n,u}const jo=r=>r.type.__isKeepAlive,fy={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(r,{slots:n}){const l=Hr(),s=l.ctx;if(!s.renderer)return n.default;const u=new Map,f=new Set;let d=null;const v=l.suspense,{renderer:{p,m,um:b,o:{createElement:w}}}=s,C=w("div");s.activate=(M,I,H,q,_)=>{const V=M.component;m(M,I,H,0,v),p(V.vnode,M,I,H,V,v,q,M.slotScopeIds,_),Ht(()=>{V.isDeactivated=!1,V.a&&Ti(V.a);const J=M.props&&M.props.onVnodeMounted;J&&rr(J,V.parent,M)},v)},s.deactivate=M=>{const I=M.component;m(M,C,null,1,v),Ht(()=>{I.da&&Ti(I.da);const H=M.props&&M.props.onVnodeUnmounted;H&&rr(H,I.parent,M),I.isDeactivated=!0},v)};function P(M){Ql(M),b(M,l,v)}function A(M){u.forEach((I,H)=>{const q=xa(I.type);q&&(!M||!M(q))&&G(H)})}function G(M){const I=u.get(M);!d||I.type!==d.type?P(I):d&&Ql(d),u.delete(M),f.delete(M)}Qt(()=>[r.include,r.exclude],([M,I])=>{M&&A(H=>Ko(M,H)),I&&A(H=>!Ko(I,H))},{flush:"post",deep:!0});let F=null;const W=()=>{F!=null&&u.set(F,ql(l.subTree))};return Ai(W),la(W),ua(()=>{u.forEach(M=>{const{subTree:I,suspense:H}=l,q=ql(I);if(M.type===q.type){Ql(q);const _=q.component.da;_&&Ht(_,H);return}P(M)})}),()=>{if(F=null,!n.default)return null;const M=n.default(),I=M[0];if(M.length>1)return d=null,M;if(!gn(I)||!(I.shapeFlag&4)&&!(I.shapeFlag&128))return d=null,I;let H=ql(I);const q=H.type,_=xa(Wo(H)?H.type.__asyncResolved||{}:q),{include:V,exclude:J,max:te}=r;if(V&&(!_||!Ko(V,_))||J&&_&&Ko(J,_))return d=H,I;const ie=H.key==null?q:H.key,Q=u.get(ie);return H.el&&(H=mn(H),I.shapeFlag&128&&(I.ssContent=H)),F=ie,Q?(H.el=Q.el,H.component=Q.component,H.transition&&Gn(H,H.transition),H.shapeFlag|=512,f.delete(ie),f.add(ie)):(f.add(ie),te&&f.size>parseInt(te,10)&&G(f.values().next().value)),H.shapeFlag|=256,d=H,I}}},cy=fy;function Ko(r,n){return He(r)?r.some(l=>Ko(l,n)):bt(r)?r.split(",").indexOf(n)>-1:r.test?r.test(n):!1}function Ed(r,n){Ad(r,"a",n)}function Md(r,n){Ad(r,"da",n)}function Ad(r,n,l=Nt){const s=r.__wdc||(r.__wdc=()=>{let u=l;for(;u;){if(u.isDeactivated)return;u=u.parent}return r()});if(aa(n,s,l),l){let u=l.parent;for(;u&&u.parent;)jo(u.parent.vnode)&&dy(s,n,l,u),u=u.parent}}function dy(r,n,l,s){const u=aa(n,r,s,!0);fa(()=>{Pl(s[n],u)},l)}function Ql(r){let n=r.shapeFlag;n&256&&(n-=256),n&512&&(n-=512),r.shapeFlag=n}function ql(r){return r.shapeFlag&128?r.ssContent:r}function aa(r,n,l=Nt,s=!1){if(l){const u=l[r]||(l[r]=[]),f=n.__weh||(n.__weh=(...d)=>{if(l.isUnmounted)return;Kn(),bn(l);const v=dr(n,l,r,d);return xn(),hn(),v});return s?u.unshift(f):u.push(f),f}}const Vr=r=>(n,l=Nt)=>(!$o||r==="sp")&&aa(r,n,l),Ld=Vr("bm"),Ai=Vr("m"),Nd=Vr("bu"),la=Vr("u"),ua=Vr("bum"),fa=Vr("um"),Id=Vr("sp"),Rd=Vr("rtg"),Dd=Vr("rtc");function Fd(r,n=Nt){aa("ec",r,n)}let _l=!0;function hy(r){const n=Bd(r),l=r.proxy,s=r.ctx;_l=!1,n.beforeCreate&&zd(n.beforeCreate,r,"bc");const{data:u,computed:f,methods:d,watch:v,provide:p,inject:m,created:b,beforeMount:w,mounted:C,beforeUpdate:P,updated:A,activated:G,deactivated:F,beforeDestroy:W,beforeUnmount:M,destroyed:I,unmounted:H,render:q,renderTracked:_,renderTriggered:V,errorCaptured:J,serverPrefetch:te,expose:ie,inheritAttrs:Q,components:ee,directives:k,filters:O}=n;if(m&&py(m,s,null,r.appContext.config.unwrapInjectedRef),d)for(const B in d){const $=d[B];Xe($)&&(s[B]=$.bind(l))}if(u){const B=u.call(l,l);xt(B)&&(r.data=Oi(B))}if(_l=!0,f)for(const B in f){const $=f[B],se=Xe($)?$.bind(l,l):Xe($.get)?$.get.bind(l,l):Sr,de=!Xe($)&&Xe($.set)?$.set.bind(l):Sr,Ke=zt({get:se,set:de});Object.defineProperty(s,B,{enumerable:!0,configurable:!0,get:()=>Ke.value,set:Ve=>Ke.value=Ve})}if(v)for(const B in v)Hd(v[B],s,l,B);if(p){const B=Xe(p)?p.call(l):p;Reflect.ownKeys(B).forEach($=>{Ho($,B[$])})}b&&zd(b,r,"c");function z(B,$){He($)?$.forEach(se=>B(se.bind(l))):$&&B($.bind(l))}if(z(Ld,w),z(Ai,C),z(Nd,P),z(la,A),z(Ed,G),z(Md,F),z(Fd,J),z(Dd,_),z(Rd,V),z(ua,M),z(fa,H),z(Id,te),He(ie))if(ie.length){const B=r.exposed||(r.exposed={});ie.forEach($=>{Object.defineProperty(B,$,{get:()=>l[$],set:se=>l[$]=se})})}else r.exposed||(r.exposed={});q&&r.render===Sr&&(r.render=q),Q!=null&&(r.inheritAttrs=Q),ee&&(r.components=ee),k&&(r.directives=k)}function py(r,n,l=Sr,s=!1){He(r)&&(r=eu(r));for(const u in r){const f=r[u];let d;xt(f)?"default"in f?d=Cr(f.from||u,f.default,!0):d=Cr(f.from||u):d=Cr(f),Ct(d)&&s?Object.defineProperty(n,u,{enumerable:!0,configurable:!0,get:()=>d.value,set:v=>d.value=v}):n[u]=d}}function zd(r,n,l){dr(He(r)?r.map(s=>s.bind(n.proxy)):r.bind(n.proxy),n,l)}function Hd(r,n,l,s){const u=s.includes(".")?Th(l,s):()=>l[s];if(bt(r)){const f=n[r];Xe(f)&&Qt(u,f)}else if(Xe(r))Qt(u,r.bind(l));else if(xt(r))if(He(r))r.forEach(f=>Hd(f,n,l,s));else{const f=Xe(r.handler)?r.handler.bind(l):n[r.handler];Xe(f)&&Qt(u,f,r)}}function Bd(r){const n=r.type,{mixins:l,extends:s}=n,{mixins:u,optionsCache:f,config:{optionMergeStrategies:d}}=r.appContext,v=f.get(n);let p;return v?p=v:!u.length&&!l&&!s?p=n:(p={},u.length&&u.forEach(m=>ca(p,m,d,!0)),ca(p,n,d)),f.set(n,p),p}function ca(r,n,l,s=!1){const{mixins:u,extends:f}=n;f&&ca(r,f,l,!0),u&&u.forEach(d=>ca(r,d,l,!0));for(const d in n)if(!(s&&d==="expose")){const v=vy[d]||l&&l[d];r[d]=v?v(r[d],n[d]):n[d]}return r}const vy={data:Wd,props:$n,emits:$n,methods:$n,computed:$n,beforeCreate:Jt,created:Jt,beforeMount:Jt,mounted:Jt,beforeUpdate:Jt,updated:Jt,beforeDestroy:Jt,beforeUnmount:Jt,destroyed:Jt,unmounted:Jt,activated:Jt,deactivated:Jt,errorCaptured:Jt,serverPrefetch:Jt,components:$n,directives:$n,watch:my,provide:Wd,inject:gy};function Wd(r,n){return n?r?function(){return yt(Xe(r)?r.call(this,this):r,Xe(n)?n.call(this,this):n)}:n:r}function gy(r,n){return $n(eu(r),eu(n))}function eu(r){if(He(r)){const n={};for(let l=0;l<r.length;l++)n[r[l]]=r[l];return n}return r}function Jt(r,n){return r?[...new Set([].concat(r,n))]:n}function $n(r,n){return r?yt(yt(Object.create(null),r),n):n}function my(r,n){if(!r)return n;if(!n)return r;const l=yt(Object.create(null),r);for(const s in n)l[s]=Jt(r[s],n[s]);return l}function yy(r,n,l,s=!1){const u={},f={};Gs(f,ga,1),r.propsDefaults=Object.create(null),jd(r,n,u,f);for(const d in r.propsOptions[0])d in u||(u[d]=void 0);l?r.props=s?u:yd(u):r.type.props?r.props=u:r.props=f,r.attrs=f}function by(r,n,l,s){const{props:u,attrs:f,vnode:{patchFlag:d}}=r,v=_e(u),[p]=r.propsOptions;let m=!1;if((s||d>0)&&!(d&16)){if(d&8){const b=r.vnode.dynamicProps;for(let w=0;w<b.length;w++){let C=b[w];const P=n[C];if(p)if(nt(f,C))P!==f[C]&&(f[C]=P,m=!0);else{const A=lr(C);u[A]=tu(p,v,A,P,r,!1)}else P!==f[C]&&(f[C]=P,m=!0)}}}else{jd(r,n,u,f)&&(m=!0);let b;for(const w in v)(!n||!nt(n,w)&&((b=Ir(w))===w||!nt(n,b)))&&(p?l&&(l[w]!==void 0||l[b]!==void 0)&&(u[w]=tu(p,v,w,void 0,r,!0)):delete u[w]);if(f!==v)for(const w in f)(!n||!nt(n,w))&&(delete f[w],m=!0)}m&&Xr(r,"set","$attrs")}function jd(r,n,l,s){const[u,f]=r.propsOptions;let d=!1,v;if(n)for(let p in n){if(ko(p))continue;const m=n[p];let b;u&&nt(u,b=lr(p))?!f||!f.includes(b)?l[b]=m:(v||(v={}))[b]=m:Ul(r.emitsOptions,p)||(!(p in s)||m!==s[p])&&(s[p]=m,d=!0)}if(f){const p=_e(l),m=v||st;for(let b=0;b<f.length;b++){const w=f[b];l[w]=tu(u,p,w,m[w],r,!nt(m,w))}}return d}function tu(r,n,l,s,u,f){const d=r[l];if(d!=null){const v=nt(d,"default");if(v&&s===void 0){const p=d.default;if(d.type!==Function&&Xe(p)){const{propsDefaults:m}=u;l in m?s=m[l]:(bn(u),s=m[l]=p.call(null,n),xn())}else s=p}d[0]&&(f&&!v?s=!1:d[1]&&(s===""||s===Ir(l))&&(s=!0))}return s}function Kd(r,n,l=!1){const s=n.propsCache,u=s.get(r);if(u)return u;const f=r.props,d={},v=[];let p=!1;if(!Xe(r)){const b=w=>{p=!0;const[C,P]=Kd(w,n,!0);yt(d,C),P&&v.push(...P)};!l&&n.mixins.length&&n.mixins.forEach(b),r.extends&&b(r.extends),r.mixins&&r.mixins.forEach(b)}if(!f&&!p)return s.set(r,Si),Si;if(He(f))for(let b=0;b<f.length;b++){const w=lr(f[b]);Ud(w)&&(d[w]=st)}else if(f)for(const b in f){const w=lr(b);if(Ud(w)){const C=f[b],P=d[w]=He(C)||Xe(C)?{type:C}:C;if(P){const A=Yd(Boolean,P.type),G=Yd(String,P.type);P[0]=A>-1,P[1]=G<0||A<G,(A>-1||nt(P,"default"))&&v.push(w)}}}const m=[d,v];return s.set(r,m),m}function Ud(r){return r[0]!=="$"}function Gd(r){const n=r&&r.toString().match(/^\s*function (\w+)/);return n?n[1]:r===null?"null":""}function $d(r,n){return Gd(r)===Gd(n)}function Yd(r,n){return He(n)?n.findIndex(l=>$d(l,r)):Xe(n)&&$d(n,r)?0:-1}const Xd=r=>r[0]==="_"||r==="$stable",ru=r=>He(r)?r.map(cr):[cr(r)],xy=(r,n,l)=>{const s=Gl((...u)=>ru(n(...u)),l);return s._c=!1,s},Vd=(r,n,l)=>{const s=r._ctx;for(const u in r){if(Xd(u))continue;const f=r[u];if(Xe(f))n[u]=xy(u,f,s);else if(f!=null){const d=ru(f);n[u]=()=>d}}},Jd=(r,n)=>{const l=ru(n);r.slots.default=()=>l},wy=(r,n)=>{if(r.vnode.shapeFlag&32){const l=n._;l?(r.slots=_e(n),Gs(n,"_",l)):Vd(n,r.slots={})}else r.slots={},n&&Jd(r,n);Gs(r.slots,ga,1)},Sy=(r,n,l)=>{const{vnode:s,slots:u}=r;let f=!0,d=st;if(s.shapeFlag&32){const v=n._;v?l&&v===1?f=!1:(yt(u,n),!l&&v===1&&delete u._):(f=!n.$stable,Vd(n,u)),d=n}else n&&(Jd(r,n),d={default:1});if(f)for(const v in u)!Xd(v)&&!(v in d)&&delete u[v]};function Cy(r,n){const l=fr;if(l===null)return r;const s=l.proxy,u=r.dirs||(r.dirs=[]);for(let f=0;f<n.length;f++){let[d,v,p,m=st]=n[f];Xe(d)&&(d={mounted:d,updated:d}),d.deep&&Jn(v),u.push({dir:d,instance:s,value:v,oldValue:void 0,arg:p,modifiers:m})}return r}function Dr(r,n,l,s){const u=r.dirs,f=n&&n.dirs;for(let d=0;d<u.length;d++){const v=u[d];f&&(v.oldValue=f[d].value);let p=v.dir[s];p&&(Kn(),dr(p,l,8,[r.el,v,r,n]),hn())}}function Zd(){return{app:null,config:{isNativeTag:tm,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 Ty=0;function Py(r,n){return function(s,u=null){u!=null&&!xt(u)&&(u=null);const f=Zd(),d=new Set;let v=!1;const p=f.app={_uid:Ty++,_component:s,_props:u,_container:null,_context:f,_instance:null,version:Eh,get config(){return f.config},set config(m){},use(m,...b){return d.has(m)||(m&&Xe(m.install)?(d.add(m),m.install(p,...b)):Xe(m)&&(d.add(m),m(p,...b))),p},mixin(m){return f.mixins.includes(m)||f.mixins.push(m),p},component(m,b){return b?(f.components[m]=b,p):f.components[m]},directive(m,b){return b?(f.directives[m]=b,p):f.directives[m]},mount(m,b,w){if(!v){const C=ct(s,u);return C.appContext=f,b&&n?n(C,m):r(C,m,w),v=!0,p._container=m,m.__vue_app__=p,mu(C.component)||C.component.proxy}},unmount(){v&&(r(null,p._container),delete p._container.__vue_app__)},provide(m,b){return f.provides[m]=b,p}};return p}}function da(r,n,l,s,u=!1){if(He(r)){r.forEach((C,P)=>da(C,n&&(He(n)?n[P]:n),l,s,u));return}if(Wo(s)&&!u)return;const f=s.shapeFlag&4?mu(s.component)||s.component.proxy:s.el,d=u?null:f,{i:v,r:p}=r,m=n&&n.r,b=v.refs===st?v.refs={}:v.refs,w=v.setupState;if(m!=null&&m!==p&&(bt(m)?(b[m]=null,nt(w,m)&&(w[m]=null)):Ct(m)&&(m.value=null)),Xe(p))Br(p,v,12,[d,b]);else{const C=bt(p),P=Ct(p);if(C||P){const A=()=>{if(r.f){const G=C?b[p]:p.value;u?He(G)&&Pl(G,f):He(G)?G.includes(f)||G.push(f):C?b[p]=[f]:(p.value=[f],r.k&&(b[r.k]=p.value))}else C?(b[p]=d,nt(w,p)&&(w[p]=d)):Ct(p)&&(p.value=d,r.k&&(b[r.k]=d))};d?(A.id=-1,Ht(A,l)):A()}}}let vn=!1;const ha=r=>/svg/.test(r.namespaceURI)&&r.tagName!=="foreignObject",nu=r=>r.nodeType===8;function Oy(r){const{mt:n,p:l,o:{patchProp:s,nextSibling:u,parentNode:f,remove:d,insert:v,createComment:p}}=r,m=(F,W)=>{if(!W.hasChildNodes()){l(null,F,W),Sa();return}vn=!1,b(W.firstChild,F,null,null,null),Sa(),vn&&console.error("Hydration completed but contains mismatches.")},b=(F,W,M,I,H,q=!1)=>{const _=nu(F)&&F.data==="[",V=()=>A(F,W,M,I,H,_),{type:J,ref:te,shapeFlag:ie}=W,Q=F.nodeType;W.el=F;let ee=null;switch(J){case Li:Q!==3?ee=V():(F.data!==W.children&&(vn=!0,F.data=W.children),ee=u(F));break;case Zt:Q!==8||_?ee=V():ee=u(F);break;case Xn:if(Q!==1)ee=V();else{ee=F;const k=!W.children.length;for(let O=0;O<W.staticCount;O++)k&&(W.children+=ee.outerHTML),O===W.staticCount-1&&(W.anchor=ee),ee=u(ee);return ee}break;case Bt:_?ee=P(F,W,M,I,H,q):ee=V();break;default:if(ie&1)Q!==1||W.type.toLowerCase()!==F.tagName.toLowerCase()?ee=V():ee=w(F,W,M,I,H,q);else if(ie&6){W.slotScopeIds=H;const k=f(F);if(n(W,k,null,M,I,ha(k),q),ee=_?G(F):u(F),Wo(W)){let O;_?(O=ct(Bt),O.anchor=ee?ee.previousSibling:k.lastChild):O=F.nodeType===3?cu(""):ct("div"),O.el=F,W.component.subTree=O}}else ie&64?Q!==8?ee=V():ee=W.type.hydrate(F,W,M,I,H,q,r,C):ie&128&&(ee=W.type.hydrate(F,W,M,I,ha(f(F)),H,q,r,b))}return te!=null&&da(te,null,I,W),ee},w=(F,W,M,I,H,q)=>{q=q||!!W.dynamicChildren;const{type:_,props:V,patchFlag:J,shapeFlag:te,dirs:ie}=W,Q=_==="input"&&ie||_==="option";if(Q||J!==-1){if(ie&&Dr(W,null,M,"created"),V)if(Q||!q||J&(16|32))for(const k in V)(Q&&k.endsWith("value")||Oo(k)&&!ko(k))&&s(F,k,null,V[k],!1,void 0,M);else V.onClick&&s(F,"onClick",null,V.onClick,!1,void 0,M);let ee;if((ee=V&&V.onVnodeBeforeMount)&&rr(ee,M,W),ie&&Dr(W,null,M,"beforeMount"),((ee=V&&V.onVnodeMounted)||ie)&&Pd(()=>{ee&&rr(ee,M,W),ie&&Dr(W,null,M,"mounted")},I),te&16&&!(V&&(V.innerHTML||V.textContent))){let k=C(F.firstChild,W,F,M,I,H,q);for(;k;){vn=!0;const O=k;k=k.nextSibling,d(O)}}else te&8&&F.textContent!==W.children&&(vn=!0,F.textContent=W.children)}return F.nextSibling},C=(F,W,M,I,H,q,_)=>{_=_||!!W.dynamicChildren;const V=W.children,J=V.length;for(let te=0;te<J;te++){const ie=_?V[te]:V[te]=cr(V[te]);if(F)F=b(F,ie,I,H,q,_);else{if(ie.type===Li&&!ie.children)continue;vn=!0,l(null,ie,M,null,I,H,ha(M),q)}}return F},P=(F,W,M,I,H,q)=>{const{slotScopeIds:_}=W;_&&(H=H?H.concat(_):_);const V=f(F),J=C(u(F),W,V,M,I,H,q);return J&&nu(J)&&J.data==="]"?u(W.anchor=J):(vn=!0,v(W.anchor=p("]"),V,J),J)},A=(F,W,M,I,H,q)=>{if(vn=!0,W.el=null,q){const J=G(F);for(;;){const te=u(F);if(te&&te!==J)d(te);else break}}const _=u(F),V=f(F);return d(F),l(null,W,V,_,M,I,ha(V),H),_},G=F=>{let W=0;for(;F;)if(F=u(F),F&&nu(F)&&(F.data==="["&&W++,F.data==="]")){if(W===0)return u(F);W--}return F};return[m,b]}const Ht=Pd;function Qd(r){return _d(r)}function qd(r){return _d(r,Oy)}function _d(r,n){const l=am();l.__VUE__=!0;const{insert:s,remove:u,patchProp:f,createElement:d,createText:v,createComment:p,setText:m,setElementText:b,parentNode:w,nextSibling:C,setScopeId:P=Sr,cloneNode:A,insertStaticContent:G}=r,F=(R,j,X,oe=null,ue=null,ge=null,Ce=!1,we=null,he=!!j.dynamicChildren)=>{if(R===j)return;R&&!zr(R,j)&&(oe=be(R),Ie(R,ue,ge,!0),R=null),j.patchFlag===-2&&(he=!1,j.dynamicChildren=null);const{type:L,ref:Z,shapeFlag:U}=j;switch(L){case Li:W(R,j,X,oe);break;case Zt:M(R,j,X,oe);break;case Xn:R==null&&I(j,X,oe,Ce);break;case Bt:k(R,j,X,oe,ue,ge,Ce,we,he);break;default:U&1?_(R,j,X,oe,ue,ge,Ce,we,he):U&6?O(R,j,X,oe,ue,ge,Ce,we,he):(U&64||U&128)&&L.process(R,j,X,oe,ue,ge,Ce,we,he,ke)}Z!=null&&ue&&da(Z,R&&R.ref,ge,j||R,!j)},W=(R,j,X,oe)=>{if(R==null)s(j.el=v(j.children),X,oe);else{const ue=j.el=R.el;j.children!==R.children&&m(ue,j.children)}},M=(R,j,X,oe)=>{R==null?s(j.el=p(j.children||""),X,oe):j.el=R.el},I=(R,j,X,oe)=>{[R.el,R.anchor]=G(R.children,j,X,oe)},H=({el:R,anchor:j},X,oe)=>{let ue;for(;R&&R!==j;)ue=C(R),s(R,X,oe),R=ue;s(j,X,oe)},q=({el:R,anchor:j})=>{let X;for(;R&&R!==j;)X=C(R),u(R),R=X;u(j)},_=(R,j,X,oe,ue,ge,Ce,we,he)=>{Ce=Ce||j.type==="svg",R==null?V(j,X,oe,ue,ge,Ce,we,he):ie(R,j,ue,ge,Ce,we,he)},V=(R,j,X,oe,ue,ge,Ce,we)=>{let he,L;const{type:Z,props:U,shapeFlag:Se,transition:De,patchFlag:Ge,dirs:it}=R;if(R.el&&A!==void 0&&Ge===-1)he=R.el=A(R.el);else{if(he=R.el=d(R.type,ge,U&&U.is,U),Se&8?b(he,R.children):Se&16&&te(R.children,he,null,oe,ue,ge&&Z!=="foreignObject",Ce,we),it&&Dr(R,null,oe,"created"),U){for(const je in U)je!=="value"&&!ko(je)&&f(he,je,null,U[je],ge,R.children,oe,ue,le);"value"in U&&f(he,"value",null,U.value),(L=U.onVnodeBeforeMount)&&rr(L,oe,R)}J(he,R,R.scopeId,Ce,oe)}it&&Dr(R,null,oe,"beforeMount");const Je=(!ue||ue&&!ue.pendingBranch)&&De&&!De.persisted;Je&&De.beforeEnter(he),s(he,j,X),((L=U&&U.onVnodeMounted)||Je||it)&&Ht(()=>{L&&rr(L,oe,R),Je&&De.enter(he),it&&Dr(R,null,oe,"mounted")},ue)},J=(R,j,X,oe,ue)=>{if(X&&P(R,X),oe)for(let ge=0;ge<oe.length;ge++)P(R,oe[ge]);if(ue){let ge=ue.subTree;if(j===ge){const Ce=ue.vnode;J(R,Ce,Ce.scopeId,Ce.slotScopeIds,ue.parent)}}},te=(R,j,X,oe,ue,ge,Ce,we,he=0)=>{for(let L=he;L<R.length;L++){const Z=R[L]=we?yn(R[L]):cr(R[L]);F(null,Z,j,X,oe,ue,ge,Ce,we)}},ie=(R,j,X,oe,ue,ge,Ce)=>{const we=j.el=R.el;let{patchFlag:he,dynamicChildren:L,dirs:Z}=j;he|=R.patchFlag&16;const U=R.props||st,Se=j.props||st;let De;X&&Yn(X,!1),(De=Se.onVnodeBeforeUpdate)&&rr(De,X,j,R),Z&&Dr(j,R,X,"beforeUpdate"),X&&Yn(X,!0);const Ge=ue&&j.type!=="foreignObject";if(L?Q(R.dynamicChildren,L,we,X,oe,Ge,ge):Ce||se(R,j,we,null,X,oe,Ge,ge,!1),he>0){if(he&16)ee(we,j,U,Se,X,oe,ue);else if(he&2&&U.class!==Se.class&&f(we,"class",null,Se.class,ue),he&4&&f(we,"style",U.style,Se.style,ue),he&8){const it=j.dynamicProps;for(let Je=0;Je<it.length;Je++){const je=it[Je],gt=U[je],dt=Se[je];(dt!==gt||je==="value")&&f(we,je,gt,dt,ue,R.children,X,oe,le)}}he&1&&R.children!==j.children&&b(we,j.children)}else!Ce&&L==null&&ee(we,j,U,Se,X,oe,ue);((De=Se.onVnodeUpdated)||Z)&&Ht(()=>{De&&rr(De,X,j,R),Z&&Dr(j,R,X,"updated")},oe)},Q=(R,j,X,oe,ue,ge,Ce)=>{for(let we=0;we<j.length;we++){const he=R[we],L=j[we],Z=he.el&&(he.type===Bt||!zr(he,L)||he.shapeFlag&(6|64))?w(he.el):X;F(he,L,Z,null,oe,ue,ge,Ce,!0)}},ee=(R,j,X,oe,ue,ge,Ce)=>{if(X!==oe){for(const we in oe){if(ko(we))continue;const he=oe[we],L=X[we];he!==L&&we!=="value"&&f(R,we,L,he,Ce,j.children,ue,ge,le)}if(X!==st)for(const we in X)!ko(we)&&!(we in oe)&&f(R,we,X[we],null,Ce,j.children,ue,ge,le);"value"in oe&&f(R,"value",X.value,oe.value)}},k=(R,j,X,oe,ue,ge,Ce,we,he)=>{const L=j.el=R?R.el:v(""),Z=j.anchor=R?R.anchor:v("");let{patchFlag:U,dynamicChildren:Se,slotScopeIds:De}=j;De&&(we=we?we.concat(De):De),R==null?(s(L,X,oe),s(Z,X,oe),te(j.children,X,Z,ue,ge,Ce,we,he)):U>0&&U&64&&Se&&R.dynamicChildren?(Q(R.dynamicChildren,Se,X,ue,ge,Ce,we),(j.key!=null||ue&&j===ue.subTree)&&iu(R,j,!0)):se(R,j,X,Z,ue,ge,Ce,we,he)},O=(R,j,X,oe,ue,ge,Ce,we,he)=>{j.slotScopeIds=we,R==null?j.shapeFlag&512?ue.ctx.activate(j,X,oe,Ce,he):x(j,X,oe,ue,ge,Ce,he):z(R,j,he)},x=(R,j,X,oe,ue,ge,Ce)=>{const we=R.component=uh(R,oe,ue);if(jo(R)&&(we.ctx.renderer=ke),ch(we),we.asyncDep){if(ue&&ue.registerDep(we,B),!R.el){const he=we.subTree=ct(Zt);M(null,he,j,X)}return}B(we,R,j,X,ue,ge,Ce)},z=(R,j,X)=>{const oe=j.component=R.component;if(ey(R,j,X))if(oe.asyncDep&&!oe.asyncResolved){$(oe,j,X);return}else oe.next=j,a0(oe.update),oe.update();else j.component=R.component,j.el=R.el,oe.vnode=j},B=(R,j,X,oe,ue,ge,Ce)=>{const we=()=>{if(R.isMounted){let{next:Z,bu:U,u:Se,parent:De,vnode:Ge}=R,it=Z,Je;Yn(R,!1),Z?(Z.el=Ge.el,$(R,Z,Ce)):Z=Ge,U&&Ti(U),(Je=Z.props&&Z.props.onVnodeBeforeUpdate)&&rr(Je,De,Z,Ge),Yn(R,!0);const je=oa(R),gt=R.subTree;R.subTree=je,F(gt,je,w(gt.el),be(gt),R,ue,ge),Z.el=je.el,it===null&&$l(R,je.el),Se&&Ht(Se,ue),(Je=Z.props&&Z.props.onVnodeUpdated)&&Ht(()=>rr(Je,De,Z,Ge),ue)}else{let Z;const{el:U,props:Se}=j,{bm:De,m:Ge,parent:it}=R,Je=Wo(j);if(Yn(R,!1),De&&Ti(De),!Je&&(Z=Se&&Se.onVnodeBeforeMount)&&rr(Z,it,j),Yn(R,!0),U&&Le){const je=()=>{R.subTree=oa(R),Le(U,R.subTree,R,ue,null)};Je?j.type.__asyncLoader().then(()=>!R.isUnmounted&&je()):je()}else{const je=R.subTree=oa(R);F(null,je,X,oe,R,ue,ge),j.el=je.el}if(Ge&&Ht(Ge,ue),!Je&&(Z=Se&&Se.onVnodeMounted)){const je=j;Ht(()=>rr(Z,it,je),ue)}j.shapeFlag&256&&R.a&&Ht(R.a,ue),R.isMounted=!0,j=X=oe=null}},he=R.effect=new Io(we,()=>wu(R.update),R.scope),L=R.update=he.run.bind(he);L.id=R.uid,Yn(R,!0),L()},$=(R,j,X)=>{j.component=R;const oe=R.vnode.props;R.vnode=j,R.next=null,by(R,j.props,oe,X),Sy(R,j.children,X),Kn(),Cu(void 0,R.update),hn()},se=(R,j,X,oe,ue,ge,Ce,we,he=!1)=>{const L=R&&R.children,Z=R?R.shapeFlag:0,U=j.children,{patchFlag:Se,shapeFlag:De}=j;if(Se>0){if(Se&128){Ke(L,U,X,oe,ue,ge,Ce,we,he);return}else if(Se&256){de(L,U,X,oe,ue,ge,Ce,we,he);return}}De&8?(Z&16&&le(L,ue,ge),U!==L&&b(X,U)):Z&16?De&16?Ke(L,U,X,oe,ue,ge,Ce,we,he):le(L,ue,ge,!0):(Z&8&&b(X,""),De&16&&te(U,X,oe,ue,ge,Ce,we,he))},de=(R,j,X,oe,ue,ge,Ce,we,he)=>{R=R||Si,j=j||Si;const L=R.length,Z=j.length,U=Math.min(L,Z);let Se;for(Se=0;Se<U;Se++){const De=j[Se]=he?yn(j[Se]):cr(j[Se]);F(R[Se],De,X,null,ue,ge,Ce,we,he)}L>Z?le(R,ue,ge,!0,!1,U):te(j,X,oe,ue,ge,Ce,we,he,U)},Ke=(R,j,X,oe,ue,ge,Ce,we,he)=>{let L=0;const Z=j.length;let U=R.length-1,Se=Z-1;for(;L<=U&&L<=Se;){const De=R[L],Ge=j[L]=he?yn(j[L]):cr(j[L]);if(zr(De,Ge))F(De,Ge,X,null,ue,ge,Ce,we,he);else break;L++}for(;L<=U&&L<=Se;){const De=R[U],Ge=j[Se]=he?yn(j[Se]):cr(j[Se]);if(zr(De,Ge))F(De,Ge,X,null,ue,ge,Ce,we,he);else break;U--,Se--}if(L>U){if(L<=Se){const De=Se+1,Ge=De<Z?j[De].el:oe;for(;L<=Se;)F(null,j[L]=he?yn(j[L]):cr(j[L]),X,Ge,ue,ge,Ce,we,he),L++}}else if(L>Se)for(;L<=U;)Ie(R[L],ue,ge,!0),L++;else{const De=L,Ge=L,it=new Map;for(L=Ge;L<=Se;L++){const Oe=j[L]=he?yn(j[L]):cr(j[L]);Oe.key!=null&&it.set(Oe.key,L)}let Je,je=0;const gt=Se-Ge+1;let dt=!1,Wt=0;const Fe=new Array(gt);for(L=0;L<gt;L++)Fe[L]=0;for(L=De;L<=U;L++){const Oe=R[L];if(je>=gt){Ie(Oe,ue,ge,!0);continue}let ve;if(Oe.key!=null)ve=it.get(Oe.key);else for(Je=Ge;Je<=Se;Je++)if(Fe[Je-Ge]===0&&zr(Oe,j[Je])){ve=Je;break}ve===void 0?Ie(Oe,ue,ge,!0):(Fe[ve-Ge]=L+1,ve>=Wt?Wt=ve:dt=!0,F(Oe,j[ve],X,null,ue,ge,Ce,we,he),je++)}const Ye=dt?ky(Fe):Si;for(Je=Ye.length-1,L=gt-1;L>=0;L--){const Oe=Ge+L,ve=j[Oe],Be=Oe+1<Z?j[Oe+1].el:oe;Fe[L]===0?F(null,ve,X,Be,ue,ge,Ce,we,he):dt&&(Je<0||L!==Ye[Je]?Ve(ve,X,Be,2):Je--)}}},Ve=(R,j,X,oe,ue=null)=>{const{el:ge,type:Ce,transition:we,children:he,shapeFlag:L}=R;if(L&6){Ve(R.component.subTree,j,X,oe);return}if(L&128){R.suspense.move(j,X,oe);return}if(L&64){Ce.move(R,j,X,ke);return}if(Ce===Bt){s(ge,j,X);for(let U=0;U<he.length;U++)Ve(he[U],j,X,oe);s(R.anchor,j,X);return}if(Ce===Xn){H(R,j,X);return}if(oe!==2&&L&1&&we)if(oe===0)we.beforeEnter(ge),s(ge,j,X),Ht(()=>we.enter(ge),ue);else{const{leave:U,delayLeave:Se,afterLeave:De}=we,Ge=()=>s(ge,j,X),it=()=>{U(ge,()=>{Ge(),De&&De()})};Se?Se(ge,Ge,it):it()}else s(ge,j,X)},Ie=(R,j,X,oe=!1,ue=!1)=>{const{type:ge,props:Ce,ref:we,children:he,dynamicChildren:L,shapeFlag:Z,patchFlag:U,dirs:Se}=R;if(we!=null&&da(we,null,X,R,!0),Z&256){j.ctx.deactivate(R);return}const De=Z&1&&Se,Ge=!Wo(R);let it;if(Ge&&(it=Ce&&Ce.onVnodeBeforeUnmount)&&rr(it,j,R),Z&6)ae(R.component,X,oe);else{if(Z&128){R.suspense.unmount(X,oe);return}De&&Dr(R,null,j,"beforeUnmount"),Z&64?R.type.remove(R,j,X,ue,ke,oe):L&&(ge!==Bt||U>0&&U&64)?le(L,j,X,!1,!0):(ge===Bt&&U&(128|256)||!ue&&Z&16)&&le(he,j,X),oe&&$e(R)}(Ge&&(it=Ce&&Ce.onVnodeUnmounted)||De)&&Ht(()=>{it&&rr(it,j,R),De&&Dr(R,null,j,"unmounted")},X)},$e=R=>{const{type:j,el:X,anchor:oe,transition:ue}=R;if(j===Bt){ne(X,oe);return}if(j===Xn){q(R);return}const ge=()=>{u(X),ue&&!ue.persisted&&ue.afterLeave&&ue.afterLeave()};if(R.shapeFlag&1&&ue&&!ue.persisted){const{leave:Ce,delayLeave:we}=ue,he=()=>Ce(X,ge);we?we(R.el,ge,he):he()}else ge()},ne=(R,j)=>{let X;for(;R!==j;)X=C(R),u(R),R=X;u(j)},ae=(R,j,X)=>{const{bum:oe,scope:ue,update:ge,subTree:Ce,um:we}=R;oe&&Ti(oe),ue.stop(),ge&&(ge.active=!1,Ie(Ce,R,j,X)),we&&Ht(we,j),Ht(()=>{R.isUnmounted=!0},j),j&&j.pendingBranch&&!j.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===j.pendingId&&(j.deps--,j.deps===0&&j.resolve())},le=(R,j,X,oe=!1,ue=!1,ge=0)=>{for(let Ce=ge;Ce<R.length;Ce++)Ie(R[Ce],j,X,oe,ue)},be=R=>R.shapeFlag&6?be(R.component.subTree):R.shapeFlag&128?R.suspense.next():C(R.anchor||R.el),Re=(R,j,X)=>{R==null?j._vnode&&Ie(j._vnode,null,null,!0):F(j._vnode||null,R,j,null,null,null,X),Sa(),j._vnode=R},ke={p:F,um:Ie,m:Ve,r:$e,mt:x,mc:te,pc:se,pbc:Q,n:be,o:r};let me,Le;return n&&([me,Le]=n(ke)),{render:Re,hydrate:me,createApp:Py(Re,me)}}function Yn({effect:r,update:n},l){r.allowRecurse=n.allowRecurse=l}function iu(r,n,l=!1){const s=r.children,u=n.children;if(He(s)&&He(u))for(let f=0;f<s.length;f++){const d=s[f];let v=u[f];v.shapeFlag&1&&!v.dynamicChildren&&((v.patchFlag<=0||v.patchFlag===32)&&(v=u[f]=yn(u[f]),v.el=d.el),l||iu(d,v))}}function ky(r){const n=r.slice(),l=[0];let s,u,f,d,v;const p=r.length;for(s=0;s<p;s++){const m=r[s];if(m!==0){if(u=l[l.length-1],r[u]<m){n[s]=u,l.push(s);continue}for(f=0,d=l.length-1;f<d;)v=f+d>>1,r[l[v]]<m?f=v+1:d=v;m<r[l[f]]&&(f>0&&(n[s]=l[f-1]),l[f]=s)}}for(f=l.length,d=l[f-1];f-- >0;)l[f]=d,d=n[d];return l}const Ey=r=>r.__isTeleport,Uo=r=>r&&(r.disabled||r.disabled===""),eh=r=>typeof SVGElement!="undefined"&&r instanceof SVGElement,ou=(r,n)=>{const l=r&&r.to;return bt(l)?n?n(l):null:l},My={__isTeleport:!0,process(r,n,l,s,u,f,d,v,p,m){const{mc:b,pc:w,pbc:C,o:{insert:P,querySelector:A,createText:G,createComment:F}}=m,W=Uo(n.props);let{shapeFlag:M,children:I,dynamicChildren:H}=n;if(r==null){const q=n.el=G(""),_=n.anchor=G("");P(q,l,s),P(_,l,s);const V=n.target=ou(n.props,A),J=n.targetAnchor=G("");V&&(P(J,V),d=d||eh(V));const te=(ie,Q)=>{M&16&&b(I,ie,Q,u,f,d,v,p)};W?te(l,_):V&&te(V,J)}else{n.el=r.el;const q=n.anchor=r.anchor,_=n.target=r.target,V=n.targetAnchor=r.targetAnchor,J=Uo(r.props),te=J?l:_,ie=J?q:V;if(d=d||eh(_),H?(C(r.dynamicChildren,H,te,u,f,d,v),iu(r,n,!0)):p||w(r,n,te,ie,u,f,d,v,!1),W)J||pa(n,l,q,m,1);else if((n.props&&n.props.to)!==(r.props&&r.props.to)){const Q=n.target=ou(n.props,A);Q&&pa(n,Q,null,m,0)}else J&&pa(n,_,V,m,1)}},remove(r,n,l,s,{um:u,o:{remove:f}},d){const{shapeFlag:v,children:p,anchor:m,targetAnchor:b,target:w,props:C}=r;if(w&&f(b),(d||!Uo(C))&&(f(m),v&16))for(let P=0;P<p.length;P++){const A=p[P];u(A,n,l,!0,!!A.dynamicChildren)}},move:pa,hydrate:Ay};function pa(r,n,l,{o:{insert:s},m:u},f=2){f===0&&s(r.targetAnchor,n,l);const{el:d,anchor:v,shapeFlag:p,children:m,props:b}=r,w=f===2;if(w&&s(d,n,l),(!w||Uo(b))&&p&16)for(let C=0;C<m.length;C++)u(m[C],n,l,2);w&&s(v,n,l)}function Ay(r,n,l,s,u,f,{o:{nextSibling:d,parentNode:v,querySelector:p}},m){const b=n.target=ou(n.props,p);if(b){const w=b._lpa||b.firstChild;n.shapeFlag&16&&(Uo(n.props)?(n.anchor=m(d(r),n,v(r),l,s,u,f),n.targetAnchor=w):(n.anchor=d(r),n.targetAnchor=m(w,n,b,l,s,u,f)),b._lpa=n.targetAnchor&&d(n.targetAnchor))}return n.anchor&&d(n.anchor)}const Ly=My,su="components",Ny="directives";function Iy(r,n){return au(su,r,!0,n)||r}const th=Symbol();function Ry(r){return bt(r)?au(su,r,!1)||r:r||th}function Dy(r){return au(Ny,r)}function au(r,n,l=!0,s=!1){const u=fr||Nt;if(u){const f=u.type;if(r===su){const v=xa(f);if(v&&(v===n||v===lr(n)||v===Eo(lr(n))))return f}const d=rh(u[r]||f[r],n)||rh(u.appContext[r],n);return!d&&s?f:d}}function rh(r,n){return r&&(r[n]||r[lr(n)]||r[Eo(lr(n))])}const Bt=Symbol(void 0),Li=Symbol(void 0),Zt=Symbol(void 0),Xn=Symbol(void 0),Go=[];let Fr=null;function va(r=!1){Go.push(Fr=r?null:[])}function nh(){Go.pop(),Fr=Go[Go.length-1]||null}let Ni=1;function lu(r){Ni+=r}function ih(r){return r.dynamicChildren=Ni>0?Fr||Si:null,nh(),Ni>0&&Fr&&Fr.push(r),r}function Fy(r,n,l,s,u,f){return ih(fu(r,n,l,s,u,f,!0))}function uu(r,n,l,s,u){return ih(ct(r,n,l,s,u,!0))}function gn(r){return r?r.__v_isVNode===!0:!1}function zr(r,n){return r.type===n.type&&r.key===n.key}function zy(r){}const ga="__vInternal",oh=({key:r})=>r!=null?r:null,ma=({ref:r,ref_key:n,ref_for:l})=>r!=null?bt(r)||Ct(r)||Xe(r)?{i:fr,r,k:n,f:!!l}:r:null;function fu(r,n=null,l=null,s=0,u=null,f=r===Bt?0:1,d=!1,v=!1){const p={__v_isVNode:!0,__v_skip:!0,type:r,props:n,key:n&&oh(n),ref:n&&ma(n),scopeId:ia,slotScopeIds:null,children:l,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:f,patchFlag:s,dynamicProps:u,dynamicChildren:null,appContext:null};return v?(du(p,l),f&128&&r.normalize(p)):l&&(p.shapeFlag|=bt(l)?8:16),Ni>0&&!d&&Fr&&(p.patchFlag>0||f&6)&&p.patchFlag!==32&&Fr.push(p),p}const ct=Hy;function Hy(r,n=null,l=null,s=0,u=null,f=!1){if((!r||r===th)&&(r=Zt),gn(r)){const v=mn(r,n,!0);return l&&du(v,l),v}if(e0(r)&&(r=r.__vccOpts),n){n=sh(n);let{class:v,style:p}=n;v&&!bt(v)&&(n.class=Po(v)),xt(p)&&(Hl(p)&&!He(p)&&(p=yt({},p)),n.style=To(p))}const d=bt(r)?1:ty(r)?128:Ey(r)?64:xt(r)?4:Xe(r)?2:0;return fu(r,n,l,s,u,d,f,!0)}function sh(r){return r?Hl(r)||ga in r?yt({},r):r:null}function mn(r,n,l=!1){const{props:s,ref:u,patchFlag:f,children:d}=r,v=n?ah(s||{},n):s;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:v,key:v&&oh(v),ref:n&&n.ref?l&&u?He(u)?u.concat(ma(n)):[u,ma(n)]:ma(n):u,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:d,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:n&&r.type!==Bt?f===-1?16:f|16:f,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:r.transition,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&mn(r.ssContent),ssFallback:r.ssFallback&&mn(r.ssFallback),el:r.el,anchor:r.anchor}}function cu(r=" ",n=0){return ct(Li,null,r,n)}function By(r,n){const l=ct(Xn,null,r);return l.staticCount=n,l}function Wy(r="",n=!1){return n?(va(),uu(Zt,null,r)):ct(Zt,null,r)}function cr(r){return r==null||typeof r=="boolean"?ct(Zt):He(r)?ct(Bt,null,r.slice()):typeof r=="object"?yn(r):ct(Li,null,String(r))}function yn(r){return r.el===null||r.memo?r:mn(r)}function du(r,n){let l=0;const{shapeFlag:s}=r;if(n==null)n=null;else if(He(n))l=16;else if(typeof n=="object")if(s&(1|64)){const u=n.default;u&&(u._c&&(u._d=!1),du(r,u()),u._c&&(u._d=!0));return}else{l=32;const u=n._;!u&&!(ga in n)?n._ctx=fr:u===3&&fr&&(fr.slots._===1?n._=1:(n._=2,r.patchFlag|=1024))}else Xe(n)?(n={default:n,_ctx:fr},l=32):(n=String(n),s&64?(l=16,n=[cu(n)]):l=8);r.children=n,r.shapeFlag|=l}function ah(...r){const n={};for(let l=0;l<r.length;l++){const s=r[l];for(const u in s)if(u==="class")n.class!==s.class&&(n.class=Po([n.class,s.class]));else if(u==="style")n.style=To([n.style,s.style]);else if(Oo(u)){const f=n[u],d=s[u];f!==d&&!(He(f)&&f.includes(d))&&(n[u]=f?[].concat(f,d):d)}else u!==""&&(n[u]=s[u])}return n}function rr(r,n,l,s=null){dr(r,n,7,[l,s])}function jy(r,n,l,s){let u;const f=l&&l[s];if(He(r)||bt(r)){u=new Array(r.length);for(let d=0,v=r.length;d<v;d++)u[d]=n(r[d],d,void 0,f&&f[d])}else if(typeof r=="number"){u=new Array(r);for(let d=0;d<r;d++)u[d]=n(d+1,d,void 0,f&&f[d])}else if(xt(r))if(r[Symbol.iterator])u=Array.from(r,(d,v)=>n(d,v,void 0,f&&f[v]));else{const d=Object.keys(r);u=new Array(d.length);for(let v=0,p=d.length;v<p;v++){const m=d[v];u[v]=n(r[m],m,v,f&&f[v])}}else u=[];return l&&(l[s]=u),u}function Ky(r,n){for(let l=0;l<n.length;l++){const s=n[l];if(He(s))for(let u=0;u<s.length;u++)r[s[u].name]=s[u].fn;else s&&(r[s.name]=s.fn)}return r}function Uy(r,n,l={},s,u){if(fr.isCE)return ct("slot",n==="default"?null:{name:n},s&&s());let f=r[n];f&&f._c&&(f._d=!1),va();const d=f&&lh(f(l)),v=uu(Bt,{key:l.key||`_${n}`},d||(s?s():[]),d&&r._===1?64:-2);return!u&&v.scopeId&&(v.slotScopeIds=[v.scopeId+"-s"]),f&&f._c&&(f._d=!0),v}function lh(r){return r.some(n=>gn(n)?!(n.type===Zt||n.type===Bt&&!lh(n.children)):!0)?r:null}function Gy(r){const n={};for(const l in r)n[Mo(l)]=r[l];return n}const hu=r=>r?fh(r)?mu(r)||r.proxy:hu(r.parent):null,ya=yt(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>hu(r.parent),$root:r=>hu(r.root),$emit:r=>r.emit,$options:r=>Bd(r),$forceUpdate:r=>()=>wu(r.update),$nextTick:r=>Zo.bind(r.proxy),$watch:r=>f0.bind(r)}),pu={get({_:r},n){const{ctx:l,setupState:s,data:u,props:f,accessCache:d,type:v,appContext:p}=r;let m;if(n[0]!=="$"){const P=d[n];if(P!==void 0)switch(P){case 1:return s[n];case 2:return u[n];case 4:return l[n];case 3:return f[n]}else{if(s!==st&&nt(s,n))return d[n]=1,s[n];if(u!==st&&nt(u,n))return d[n]=2,u[n];if((m=r.propsOptions[0])&&nt(m,n))return d[n]=3,f[n];if(l!==st&&nt(l,n))return d[n]=4,l[n];_l&&(d[n]=0)}}const b=ya[n];let w,C;if(b)return n==="$attrs"&&ur(r,"get",n),b(r);if((w=v.__cssModules)&&(w=w[n]))return w;if(l!==st&&nt(l,n))return d[n]=4,l[n];if(C=p.config.globalProperties,nt(C,n))return C[n]},set({_:r},n,l){const{data:s,setupState:u,ctx:f}=r;if(u!==st&&nt(u,n))u[n]=l;else if(s!==st&&nt(s,n))s[n]=l;else if(nt(r.props,n))return!1;return n[0]==="$"&&n.slice(1)in r?!1:(f[n]=l,!0)},has({_:{data:r,setupState:n,accessCache:l,ctx:s,appContext:u,propsOptions:f}},d){let v;return!!l[d]||r!==st&&nt(r,d)||n!==st&&nt(n,d)||(v=f[0])&&nt(v,d)||nt(s,d)||nt(ya,d)||nt(u.config.globalProperties,d)}},$y=yt({},pu,{get(r,n){if(n!==Symbol.unscopables)return pu.get(r,n,r)},has(r,n){return n[0]!=="_"&&!Yg(n)}}),Yy=Zd();let Xy=0;function uh(r,n,l){const s=r.type,u=(n?n.appContext:r.appContext)||Yy,f={uid:Xy++,vnode:r,type:s,parent:n,appContext:u,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ml(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(u.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Kd(s,u),emitsOptions:Sd(s,u),emit:null,emitted:null,propsDefaults:st,inheritAttrs:s.inheritAttrs,ctx:st,data:st,props:st,attrs:st,slots:st,refs:st,setupState:st,setupContext:null,suspense:l,suspenseId:l?l.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 f.ctx={_:f},f.root=n?n.root:f,f.emit=Xm.bind(null,f),r.ce&&r.ce(f),f}let Nt=null;const Hr=()=>Nt||fr,bn=r=>{Nt=r,r.scope.on()},xn=()=>{Nt&&Nt.scope.off(),Nt=null};function fh(r){return r.vnode.shapeFlag&4}let $o=!1;function ch(r,n=!1){$o=n;const{props:l,children:s}=r.vnode,u=fh(r);yy(r,l,u,n),wy(r,s);const f=u?Vy(r,n):void 0;return $o=!1,f}function Vy(r,n){const l=r.type;r.accessCache=Object.create(null),r.proxy=Bl(new Proxy(r.ctx,pu));const{setup:s}=l;if(s){const u=r.setupContext=s.length>1?hh(r):null;bn(r),Kn();const f=Br(s,r,0,[r.props,u]);if(hn(),xn(),kl(f)){if(f.then(xn,xn),n)return f.then(d=>{vu(r,d,n)}).catch(d=>{Vn(d,r,0)});r.asyncDep=f}else vu(r,f,n)}else dh(r,n)}function vu(r,n,l){Xe(n)?r.type.__ssrInlineRender?r.ssrRender=n:r.render=n:xt(n)&&(r.setupState=Kl(n)),dh(r,l)}let ba,gu;function Jy(r){ba=r,gu=n=>{n.render._rc&&(n.withProxy=new Proxy(n.ctx,$y))}}const Zy=()=>!ba;function dh(r,n,l){const s=r.type;if(!r.render){if(!n&&ba&&!s.render){const u=s.template;if(u){const{isCustomElement:f,compilerOptions:d}=r.appContext.config,{delimiters:v,compilerOptions:p}=s,m=yt(yt({isCustomElement:f,delimiters:v},d),p);s.render=ba(u,m)}}r.render=s.render||Sr,gu&&gu(r)}bn(r),Kn(),hy(r),hn(),xn()}function Qy(r){return new Proxy(r.attrs,{get(n,l){return ur(r,"get","$attrs"),n[l]}})}function hh(r){const n=s=>{r.exposed=s||{}};let l;return{get attrs(){return l||(l=Qy(r))},slots:r.slots,emit:r.emit,expose:n}}function mu(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(Kl(Bl(r.exposed)),{get(n,l){if(l in n)return n[l];if(l in ya)return ya[l](r)}}))}const qy=/(?:^|[-_])(\w)/g,_y=r=>r.replace(qy,n=>n.toUpperCase()).replace(/[-_]/g,"");function xa(r){return Xe(r)&&r.displayName||r.name}function ph(r,n,l=!1){let s=xa(n);if(!s&&n.__file){const u=n.__file.match(/([^/\\]+)\.\w+$/);u&&(s=u[1])}if(!s&&r&&r.parent){const u=f=>{for(const d in f)if(f[d]===n)return d};s=u(r.components||r.parent.type.components)||u(r.appContext.components)}return s?_y(s):l?"App":"Anonymous"}function e0(r){return Xe(r)&&"__vccOpts"in r}const Yo=[];function vh(r,...n){Kn();const l=Yo.length?Yo[Yo.length-1].component:null,s=l&&l.appContext.config.warnHandler,u=t0();if(s)Br(s,l,11,[r+n.join(""),l&&l.proxy,u.map(({vnode:f})=>`at <${ph(l,f.type)}>`).join(`
2
+ `),u]);else{const f=[`[Vue warn]: ${r}`,...n];u.length&&f.push(`
3
+ `,...r0(u)),console.warn(...f)}hn()}function t0(){let r=Yo[Yo.length-1];if(!r)return[];const n=[];for(;r;){const l=n[0];l&&l.vnode===r?l.recurseCount++:n.push({vnode:r,recurseCount:0});const s=r.component&&r.component.parent;r=s&&s.vnode}return n}function r0(r){const n=[];return r.forEach((l,s)=>{n.push(...s===0?[]:[`
4
+ `],...n0(l))}),n}function n0({vnode:r,recurseCount:n}){const l=n>0?`... (${n} recursive calls)`:"",s=r.component?r.component.parent==null:!1,u=` at <${ph(r.component,r.type,s)}`,f=">"+l;return r.props?[u,...i0(r.props),f]:[u+f]}function i0(r){const n=[],l=Object.keys(r);return l.slice(0,3).forEach(s=>{n.push(...gh(s,r[s]))}),l.length>3&&n.push(" ..."),n}function gh(r,n,l){return bt(n)?(n=JSON.stringify(n),l?n:[`${r}=${n}`]):typeof n=="number"||typeof n=="boolean"||n==null?l?n:[`${r}=${n}`]:Ct(n)?(n=gh(r,_e(n.value),!0),l?n:[`${r}=Ref<`,n,">"]):Xe(n)?[`${r}=fn${n.name?`<${n.name}>`:""}`]:(n=_e(n),l?n:[`${r}=`,n])}function Br(r,n,l,s){let u;try{u=s?r(...s):r()}catch(f){Vn(f,n,l)}return u}function dr(r,n,l,s){if(Xe(r)){const f=Br(r,n,l,s);return f&&kl(f)&&f.catch(d=>{Vn(d,n,l)}),f}const u=[];for(let f=0;f<r.length;f++)u.push(dr(r[f],n,l,s));return u}function Vn(r,n,l,s=!0){const u=n?n.vnode:null;if(n){let f=n.parent;const d=n.proxy,v=l;for(;f;){const m=f.ec;if(m){for(let b=0;b<m.length;b++)if(m[b](r,d,v)===!1)return}f=f.parent}const p=n.appContext.config.errorHandler;if(p){Br(p,null,10,[r,d,v]);return}}o0(r,l,u,s)}function o0(r,n,l,s=!0){console.error(r)}let wa=!1,yu=!1;const hr=[];let Jr=0;const Xo=[];let Vo=null,Ii=0;const Jo=[];let wn=null,Ri=0;const mh=Promise.resolve();let bu=null,xu=null;function Zo(r){const n=bu||mh;return r?n.then(this?r.bind(this):r):n}function s0(r){let n=Jr+1,l=hr.length;for(;n<l;){const s=n+l>>>1;Qo(hr[s])<r?n=s+1:l=s}return n}function wu(r){(!hr.length||!hr.includes(r,wa&&r.allowRecurse?Jr+1:Jr))&&r!==xu&&(r.id==null?hr.push(r):hr.splice(s0(r.id),0,r),yh())}function yh(){!wa&&!yu&&(yu=!0,bu=mh.then(xh))}function a0(r){const n=hr.indexOf(r);n>Jr&&hr.splice(n,1)}function bh(r,n,l,s){He(r)?l.push(...r):(!n||!n.includes(r,r.allowRecurse?s+1:s))&&l.push(r),yh()}function l0(r){bh(r,Vo,Xo,Ii)}function Su(r){bh(r,wn,Jo,Ri)}function Cu(r,n=null){if(Xo.length){for(xu=n,Vo=[...new Set(Xo)],Xo.length=0,Ii=0;Ii<Vo.length;Ii++)Vo[Ii]();Vo=null,Ii=0,xu=null,Cu(r,n)}}function Sa(r){if(Jo.length){const n=[...new Set(Jo)];if(Jo.length=0,wn){wn.push(...n);return}for(wn=n,wn.sort((l,s)=>Qo(l)-Qo(s)),Ri=0;Ri<wn.length;Ri++)wn[Ri]();wn=null,Ri=0}}const Qo=r=>r.id==null?1/0:r.id;function xh(r){yu=!1,wa=!0,Cu(r),hr.sort((l,s)=>Qo(l)-Qo(s));const n=Sr;try{for(Jr=0;Jr<hr.length;Jr++){const l=hr[Jr];l&&l.active!==!1&&Br(l,null,14)}}finally{Jr=0,hr.length=0,Sa(),wa=!1,bu=null,(hr.length||Xo.length||Jo.length)&&xh(r)}}function wh(r,n){return qo(r,null,n)}function Sh(r,n){return qo(r,null,{flush:"post"})}function u0(r,n){return qo(r,null,{flush:"sync"})}const Ch={};function Qt(r,n,l){return qo(r,n,l)}function qo(r,n,{immediate:l,deep:s,flush:u,onTrack:f,onTrigger:d}=st){const v=Nt;let p,m=!1,b=!1;if(Ct(r)?(p=()=>r.value,m=!!r._shallow):Un(r)?(p=()=>r,s=!0):He(r)?(b=!0,m=r.some(Un),p=()=>r.map(W=>{if(Ct(W))return W.value;if(Un(W))return Jn(W);if(Xe(W))return Br(W,v,2)})):Xe(r)?n?p=()=>Br(r,v,2):p=()=>{if(!(v&&v.isUnmounted))return w&&w(),dr(r,v,3,[C])}:p=Sr,n&&s){const W=p;p=()=>Jn(W())}let w,C=W=>{w=F.onStop=()=>{Br(W,v,4)}};if($o)return C=Sr,n?l&&dr(n,v,3,[p(),b?[]:void 0,C]):p(),Sr;let P=b?[]:Ch;const A=()=>{if(!!F.active)if(n){const W=F.run();(s||m||(b?W.some((M,I)=>Ao(M,P[I])):Ao(W,P)))&&(w&&w(),dr(n,v,3,[W,P===Ch?void 0:P,C]),P=W)}else F.run()};A.allowRecurse=!!n;let G;u==="sync"?G=A:u==="post"?G=()=>Ht(A,v&&v.suspense):G=()=>{!v||v.isMounted?l0(A):A()};const F=new Io(p,G);return n?l?A():P=F.run():u==="post"?Ht(F.run.bind(F),v&&v.suspense):F.run(),()=>{F.stop(),v&&v.scope&&Pl(v.scope.effects,F)}}function f0(r,n,l){const s=this.proxy,u=bt(r)?r.includes(".")?Th(s,r):()=>s[r]:r.bind(s,s);let f;Xe(n)?f=n:(f=n.handler,l=n);const d=Nt;bn(this);const v=qo(u,f.bind(s),l);return d?bn(d):xn(),v}function Th(r,n){const l=n.split(".");return()=>{let s=r;for(let u=0;u<l.length&&s;u++)s=s[l[u]];return s}}function Jn(r,n){if(!xt(r)||r.__v_skip||(n=n||new Set,n.has(r)))return r;if(n.add(r),Ct(r))Jn(r.value,n);else if(He(r))for(let l=0;l<r.length;l++)Jn(r[l],n);else if(Bn(r)||Ci(r))r.forEach(l=>{Jn(l,n)});else if(Jc(r))for(const l in r)Jn(r[l],n);return r}function c0(){return null}function d0(){return null}function h0(r){}function p0(r,n){return null}function v0(){return Ph().slots}function g0(){return Ph().attrs}function Ph(){const r=Hr();return r.setupContext||(r.setupContext=hh(r))}function m0(r,n){const l=He(r)?r.reduce((s,u)=>(s[u]={},s),{}):r;for(const s in n){const u=l[s];u?He(u)||Xe(u)?l[s]={type:u,default:n[s]}:u.default=n[s]:u===null&&(l[s]={default:n[s]})}return l}function y0(r,n){const l={};for(const s in r)n.includes(s)||Object.defineProperty(l,s,{enumerable:!0,get:()=>r[s]});return l}function b0(r){const n=Hr();let l=r();return xn(),kl(l)&&(l=l.catch(s=>{throw bn(n),s})),[l,()=>bn(n)]}function Ca(r,n,l){const s=arguments.length;return s===2?xt(n)&&!He(n)?gn(n)?ct(r,null,[n]):ct(r,n):ct(r,null,n):(s>3?l=Array.prototype.slice.call(arguments,2):s===3&&gn(l)&&(l=[l]),ct(r,n,l))}const Oh=Symbol(""),x0=()=>{{const r=Cr(Oh);return r||vh("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),r}};function w0(){}function S0(r,n,l,s){const u=l[s];if(u&&kh(u,r))return u;const f=n();return f.memo=r.slice(),l[s]=f}function kh(r,n){const l=r.memo;if(l.length!=n.length)return!1;for(let s=0;s<l.length;s++)if(l[s]!==n[s])return!1;return Ni>0&&Fr&&Fr.push(r),!0}const Eh="3.2.26",C0={createComponentInstance:uh,setupComponent:ch,renderComponentRoot:oa,setCurrentRenderingInstance:Fo,isVNode:gn,normalizeVNode:cr},T0=C0,P0=null,O0=null,k0="http://www.w3.org/2000/svg",Di=typeof document!="undefined"?document:null,Mh=new Map,E0={insert:(r,n,l)=>{n.insertBefore(r,l||null)},remove:r=>{const n=r.parentNode;n&&n.removeChild(r)},createElement:(r,n,l,s)=>{const u=n?Di.createElementNS(k0,r):Di.createElement(r,l?{is:l}:void 0);return r==="select"&&s&&s.multiple!=null&&u.setAttribute("multiple",s.multiple),u},createText:r=>Di.createTextNode(r),createComment:r=>Di.createComment(r),setText:(r,n)=>{r.nodeValue=n},setElementText:(r,n)=>{r.textContent=n},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Di.querySelector(r),setScopeId(r,n){r.setAttribute(n,"")},cloneNode(r){const n=r.cloneNode(!0);return"_value"in r&&(n._value=r._value),n},insertStaticContent(r,n,l,s){const u=l?l.previousSibling:n.lastChild;let f=Mh.get(r);if(!f){const d=Di.createElement("template");if(d.innerHTML=s?`<svg>${r}</svg>`:r,f=d.content,s){const v=f.firstChild;for(;v.firstChild;)f.appendChild(v.firstChild);f.removeChild(v)}Mh.set(r,f)}return n.insertBefore(f.cloneNode(!0),l),[u?u.nextSibling:n.firstChild,l?l.previousSibling:n.lastChild]}};function M0(r,n,l){const s=r._vtc;s&&(n=(n?[n,...s]:[...s]).join(" ")),n==null?r.removeAttribute("class"):l?r.setAttribute("class",n):r.className=n}function A0(r,n,l){const s=r.style,u=bt(l);if(l&&!u){for(const f in l)Tu(s,f,l[f]);if(n&&!bt(n))for(const f in n)l[f]==null&&Tu(s,f,"")}else{const f=s.display;u?n!==l&&(s.cssText=l):n&&r.removeAttribute("style"),"_vod"in r&&(s.display=f)}}const Ah=/\s*!important$/;function Tu(r,n,l){if(He(l))l.forEach(s=>Tu(r,n,s));else if(n.startsWith("--"))r.setProperty(n,l);else{const s=L0(r,n);Ah.test(l)?r.setProperty(Ir(s),l.replace(Ah,""),"important"):r[s]=l}}const Lh=["Webkit","Moz","ms"],Pu={};function L0(r,n){const l=Pu[n];if(l)return l;let s=lr(n);if(s!=="filter"&&s in r)return Pu[n]=s;s=Eo(s);for(let u=0;u<Lh.length;u++){const f=Lh[u]+s;if(f in r)return Pu[n]=f}return n}const Nh="http://www.w3.org/1999/xlink";function N0(r,n,l,s,u){if(s&&n.startsWith("xlink:"))l==null?r.removeAttributeNS(Nh,n.slice(6,n.length)):r.setAttributeNS(Nh,n,l);else{const f=Vg(n);l==null||f&&!$c(l)?r.removeAttribute(n):r.setAttribute(n,f?"":l)}}function I0(r,n,l,s,u,f,d){if(n==="innerHTML"||n==="textContent"){s&&d(s,u,f),r[n]=l==null?"":l;return}if(n==="value"&&r.tagName!=="PROGRESS"&&!r.tagName.includes("-")){r._value=l;const v=l==null?"":l;(r.value!==v||r.tagName==="OPTION")&&(r.value=v),l==null&&r.removeAttribute(n);return}if(l===""||l==null){const v=typeof r[n];if(v==="boolean"){r[n]=$c(l);return}else if(l==null&&v==="string"){r[n]="",r.removeAttribute(n);return}else if(v==="number"){try{r[n]=0}catch{}r.removeAttribute(n);return}}try{r[n]=l}catch{}}let Ta=Date.now,Ih=!1;if(typeof window!="undefined"){Ta()>document.createEvent("Event").timeStamp&&(Ta=()=>performance.now());const r=navigator.userAgent.match(/firefox\/(\d+)/i);Ih=!!(r&&Number(r[1])<=53)}let Ou=0;const R0=Promise.resolve(),D0=()=>{Ou=0},F0=()=>Ou||(R0.then(D0),Ou=Ta());function Zr(r,n,l,s){r.addEventListener(n,l,s)}function z0(r,n,l,s){r.removeEventListener(n,l,s)}function H0(r,n,l,s,u=null){const f=r._vei||(r._vei={}),d=f[n];if(s&&d)d.value=s;else{const[v,p]=B0(n);if(s){const m=f[n]=W0(s,u);Zr(r,v,m,p)}else d&&(z0(r,v,d,p),f[n]=void 0)}}const Rh=/(?:Once|Passive|Capture)$/;function B0(r){let n;if(Rh.test(r)){n={};let l;for(;l=r.match(Rh);)r=r.slice(0,r.length-l[0].length),n[l[0].toLowerCase()]=!0}return[Ir(r.slice(2)),n]}function W0(r,n){const l=s=>{const u=s.timeStamp||Ta();(Ih||u>=l.attached-1)&&dr(j0(s,l.value),n,5,[s])};return l.value=r,l.attached=F0(),l}function j0(r,n){if(He(n)){const l=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{l.call(r),r._stopped=!0},n.map(s=>u=>!u._stopped&&s(u))}else return n}const Dh=/^on[a-z]/,K0=(r,n,l,s,u=!1,f,d,v,p)=>{n==="class"?M0(r,s,u):n==="style"?A0(r,l,s):Oo(n)?Tl(n)||H0(r,n,l,s,d):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):U0(r,n,s,u))?I0(r,n,s,f,d,v,p):(n==="true-value"?r._trueValue=s:n==="false-value"&&(r._falseValue=s),N0(r,n,s,u))};function U0(r,n,l,s){return s?!!(n==="innerHTML"||n==="textContent"||n in r&&Dh.test(n)&&Xe(l)):n==="spellcheck"||n==="draggable"||n==="form"||n==="list"&&r.tagName==="INPUT"||n==="type"&&r.tagName==="TEXTAREA"||Dh.test(n)&&bt(l)?!1:n in r}function Fh(r,n){const l=Bo(r);class s extends Pa{constructor(f){super(l,f,n)}}return s.def=l,s}const G0=r=>Fh(r,op),$0=typeof HTMLElement!="undefined"?HTMLElement:class{};class Pa extends $0{constructor(n,l={},s){super();this._def=n,this._props=l,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,Zo(()=>{this._connected||(Nu(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);new MutationObserver(s=>{for(const u of s)this._setAttr(u.attributeName)}).observe(this,{attributes:!0});const n=s=>{const{props:u,styles:f}=s,d=!He(u),v=u?d?Object.keys(u):u:[];let p;if(d)for(const m in this._props){const b=u[m];(b===Number||b&&b.type===Number)&&(this._props[m]=cn(this._props[m]),(p||(p=Object.create(null)))[m]=!0)}this._numberProps=p;for(const m of Object.keys(this))m[0]!=="_"&&this._setProp(m,this[m],!0,!1);for(const m of v.map(lr))Object.defineProperty(this,m,{get(){return this._getProp(m)},set(b){this._setProp(m,b)}});this._applyStyles(f),this._update()},l=this._def.__asyncLoader;l?l().then(n):n(this._def)}_setAttr(n){let l=this.getAttribute(n);this._numberProps&&this._numberProps[n]&&(l=cn(l)),this._setProp(lr(n),l,!1)}_getProp(n){return this._props[n]}_setProp(n,l,s=!0,u=!0){l!==this._props[n]&&(this._props[n]=l,u&&this._instance&&this._update(),s&&(l===!0?this.setAttribute(Ir(n),""):typeof l=="string"||typeof l=="number"?this.setAttribute(Ir(n),l+""):l||this.removeAttribute(Ir(n))))}_update(){Nu(this._createVNode(),this.shadowRoot)}_createVNode(){const n=ct(this._def,yt({},this._props));return this._instance||(n.ce=l=>{this._instance=l,l.isCE=!0,l.emit=(u,...f)=>{this.dispatchEvent(new CustomEvent(u,{detail:f}))};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof Pa){l.parent=s._instance;break}}),n}_applyStyles(n){n&&n.forEach(l=>{const s=document.createElement("style");s.textContent=l,this.shadowRoot.appendChild(s)})}}function Y0(r="$style"){{const n=Hr();if(!n)return st;const l=n.type.__cssModules;if(!l)return st;const s=l[r];return s||st}}function X0(r){const n=Hr();if(!n)return;const l=()=>ku(n.subTree,r(n.proxy));Sh(l),Ai(()=>{const s=new MutationObserver(l);s.observe(n.subTree.el.parentNode,{childList:!0}),fa(()=>s.disconnect())})}function ku(r,n){if(r.shapeFlag&128){const l=r.suspense;r=l.activeBranch,l.pendingBranch&&!l.isHydrating&&l.effects.push(()=>{ku(l.activeBranch,n)})}for(;r.component;)r=r.component.subTree;if(r.shapeFlag&1&&r.el)zh(r.el,n);else if(r.type===Bt)r.children.forEach(l=>ku(l,n));else if(r.type===Xn){let{el:l,anchor:s}=r;for(;l&&(zh(l,n),l!==s);)l=l.nextSibling}}function zh(r,n){if(r.nodeType===1){const l=r.style;for(const s in n)l.setProperty(`--${s}`,n[s])}}const Sn="transition",_o="animation",Eu=(r,{slots:n})=>Ca(Vl,Wh(r),n);Eu.displayName="Transition";const Hh={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},V0=Eu.props=yt({},Vl.props,Hh),Zn=(r,n=[])=>{He(r)?r.forEach(l=>l(...n)):r&&r(...n)},Bh=r=>r?He(r)?r.some(n=>n.length>1):r.length>1:!1;function Wh(r){const n={};for(const ee in r)ee in Hh||(n[ee]=r[ee]);if(r.css===!1)return n;const{name:l="v",type:s,duration:u,enterFromClass:f=`${l}-enter-from`,enterActiveClass:d=`${l}-enter-active`,enterToClass:v=`${l}-enter-to`,appearFromClass:p=f,appearActiveClass:m=d,appearToClass:b=v,leaveFromClass:w=`${l}-leave-from`,leaveActiveClass:C=`${l}-leave-active`,leaveToClass:P=`${l}-leave-to`}=r,A=J0(u),G=A&&A[0],F=A&&A[1],{onBeforeEnter:W,onEnter:M,onEnterCancelled:I,onLeave:H,onLeaveCancelled:q,onBeforeAppear:_=W,onAppear:V=M,onAppearCancelled:J=I}=n,te=(ee,k,O)=>{Qn(ee,k?b:v),Qn(ee,k?m:d),O&&O()},ie=(ee,k)=>{Qn(ee,P),Qn(ee,C),k&&k()},Q=ee=>(k,O)=>{const x=ee?V:M,z=()=>te(k,ee,O);Zn(x,[k,z]),jh(()=>{Qn(k,ee?p:f),Qr(k,ee?b:v),Bh(x)||Kh(k,s,G,z)})};return yt(n,{onBeforeEnter(ee){Zn(W,[ee]),Qr(ee,f),Qr(ee,d)},onBeforeAppear(ee){Zn(_,[ee]),Qr(ee,p),Qr(ee,m)},onEnter:Q(!1),onAppear:Q(!0),onLeave(ee,k){const O=()=>ie(ee,k);Qr(ee,w),Yh(),Qr(ee,C),jh(()=>{Qn(ee,w),Qr(ee,P),Bh(H)||Kh(ee,s,F,O)}),Zn(H,[ee,O])},onEnterCancelled(ee){te(ee,!1),Zn(I,[ee])},onAppearCancelled(ee){te(ee,!0),Zn(J,[ee])},onLeaveCancelled(ee){ie(ee),Zn(q,[ee])}})}function J0(r){if(r==null)return null;if(xt(r))return[Mu(r.enter),Mu(r.leave)];{const n=Mu(r);return[n,n]}}function Mu(r){return cn(r)}function Qr(r,n){n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),(r._vtc||(r._vtc=new Set)).add(n)}function Qn(r,n){n.split(/\s+/).forEach(s=>s&&r.classList.remove(s));const{_vtc:l}=r;l&&(l.delete(n),l.size||(r._vtc=void 0))}function jh(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let Z0=0;function Kh(r,n,l,s){const u=r._endId=++Z0,f=()=>{u===r._endId&&s()};if(l)return setTimeout(f,l);const{type:d,timeout:v,propCount:p}=Uh(r,n);if(!d)return s();const m=d+"end";let b=0;const w=()=>{r.removeEventListener(m,C),f()},C=P=>{P.target===r&&++b>=p&&w()};setTimeout(()=>{b<p&&w()},v+1),r.addEventListener(m,C)}function Uh(r,n){const l=window.getComputedStyle(r),s=A=>(l[A]||"").split(", "),u=s(Sn+"Delay"),f=s(Sn+"Duration"),d=Gh(u,f),v=s(_o+"Delay"),p=s(_o+"Duration"),m=Gh(v,p);let b=null,w=0,C=0;n===Sn?d>0&&(b=Sn,w=d,C=f.length):n===_o?m>0&&(b=_o,w=m,C=p.length):(w=Math.max(d,m),b=w>0?d>m?Sn:_o:null,C=b?b===Sn?f.length:p.length:0);const P=b===Sn&&/\b(transform|all)(,|$)/.test(l[Sn+"Property"]);return{type:b,timeout:w,propCount:C,hasTransform:P}}function Gh(r,n){for(;r.length<n.length;)r=r.concat(r);return Math.max(...n.map((l,s)=>$h(l)+$h(r[s])))}function $h(r){return Number(r.slice(0,-1).replace(",","."))*1e3}function Yh(){return document.body.offsetHeight}const Xh=new WeakMap,Vh=new WeakMap,Q0={name:"TransitionGroup",props:yt({},V0,{tag:String,moveClass:String}),setup(r,{slots:n}){const l=Hr(),s=Xl();let u,f;return la(()=>{if(!u.length)return;const d=r.moveClass||`${r.name||"v"}-move`;if(!rb(u[0].el,l.vnode.el,d))return;u.forEach(_0),u.forEach(eb);const v=u.filter(tb);Yh(),v.forEach(p=>{const m=p.el,b=m.style;Qr(m,d),b.transform=b.webkitTransform=b.transitionDuration="";const w=m._moveCb=C=>{C&&C.target!==m||(!C||/transform$/.test(C.propertyName))&&(m.removeEventListener("transitionend",w),m._moveCb=null,Qn(m,d))};m.addEventListener("transitionend",w)})}),()=>{const d=_e(r),v=Wh(d);let p=d.tag||Bt;u=f,f=n.default?sa(n.default()):[];for(let m=0;m<f.length;m++){const b=f[m];b.key!=null&&Gn(b,Mi(b,v,s,l))}if(u)for(let m=0;m<u.length;m++){const b=u[m];Gn(b,Mi(b,v,s,l)),Xh.set(b,b.el.getBoundingClientRect())}return ct(p,null,f)}}},q0=Q0;function _0(r){const n=r.el;n._moveCb&&n._moveCb(),n._enterCb&&n._enterCb()}function eb(r){Vh.set(r,r.el.getBoundingClientRect())}function tb(r){const n=Xh.get(r),l=Vh.get(r),s=n.left-l.left,u=n.top-l.top;if(s||u){const f=r.el.style;return f.transform=f.webkitTransform=`translate(${s}px,${u}px)`,f.transitionDuration="0s",r}}function rb(r,n,l){const s=r.cloneNode();r._vtc&&r._vtc.forEach(d=>{d.split(/\s+/).forEach(v=>v&&s.classList.remove(v))}),l.split(/\s+/).forEach(d=>d&&s.classList.add(d)),s.style.display="none";const u=n.nodeType===1?n:n.parentNode;u.appendChild(s);const{hasTransform:f}=Uh(s);return u.removeChild(s),f}const Cn=r=>{const n=r.props["onUpdate:modelValue"];return He(n)?l=>Ti(n,l):n};function nb(r){r.target.composing=!0}function Jh(r){const n=r.target;n.composing&&(n.composing=!1,ib(n,"input"))}function ib(r,n){const l=document.createEvent("HTMLEvents");l.initEvent(n,!0,!0),r.dispatchEvent(l)}const Oa={created(r,{modifiers:{lazy:n,trim:l,number:s}},u){r._assign=Cn(u);const f=s||u.props&&u.props.type==="number";Zr(r,n?"change":"input",d=>{if(d.target.composing)return;let v=r.value;l?v=v.trim():f&&(v=cn(v)),r._assign(v)}),l&&Zr(r,"change",()=>{r.value=r.value.trim()}),n||(Zr(r,"compositionstart",nb),Zr(r,"compositionend",Jh),Zr(r,"change",Jh))},mounted(r,{value:n}){r.value=n==null?"":n},beforeUpdate(r,{value:n,modifiers:{lazy:l,trim:s,number:u}},f){if(r._assign=Cn(f),r.composing||document.activeElement===r&&(l||s&&r.value.trim()===n||(u||r.type==="number")&&cn(r.value)===n))return;const d=n==null?"":n;r.value!==d&&(r.value=d)}},Au={deep:!0,created(r,n,l){r._assign=Cn(l),Zr(r,"change",()=>{const s=r._modelValue,u=Fi(r),f=r.checked,d=r._assign;if(He(s)){const v=js(s,u),p=v!==-1;if(f&&!p)d(s.concat(u));else if(!f&&p){const m=[...s];m.splice(v,1),d(m)}}else if(Bn(s)){const v=new Set(s);f?v.add(u):v.delete(u),d(v)}else d(_h(r,f))})},mounted:Zh,beforeUpdate(r,n,l){r._assign=Cn(l),Zh(r,n,l)}};function Zh(r,{value:n,oldValue:l},s){r._modelValue=n,He(n)?r.checked=js(n,s.props.value)>-1:Bn(n)?r.checked=n.has(s.props.value):n!==l&&(r.checked=fn(n,_h(r,!0)))}const Lu={created(r,{value:n},l){r.checked=fn(n,l.props.value),r._assign=Cn(l),Zr(r,"change",()=>{r._assign(Fi(r))})},beforeUpdate(r,{value:n,oldValue:l},s){r._assign=Cn(s),n!==l&&(r.checked=fn(n,s.props.value))}},Qh={deep:!0,created(r,{value:n,modifiers:{number:l}},s){const u=Bn(n);Zr(r,"change",()=>{const f=Array.prototype.filter.call(r.options,d=>d.selected).map(d=>l?cn(Fi(d)):Fi(d));r._assign(r.multiple?u?new Set(f):f:f[0])}),r._assign=Cn(s)},mounted(r,{value:n}){qh(r,n)},beforeUpdate(r,n,l){r._assign=Cn(l)},updated(r,{value:n}){qh(r,n)}};function qh(r,n){const l=r.multiple;if(!(l&&!He(n)&&!Bn(n))){for(let s=0,u=r.options.length;s<u;s++){const f=r.options[s],d=Fi(f);if(l)He(n)?f.selected=js(n,d)>-1:f.selected=n.has(d);else if(fn(Fi(f),n)){r.selectedIndex!==s&&(r.selectedIndex=s);return}}!l&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function Fi(r){return"_value"in r?r._value:r.value}function _h(r,n){const l=n?"_trueValue":"_falseValue";return l in r?r[l]:n}const ob={created(r,n,l){ka(r,n,l,null,"created")},mounted(r,n,l){ka(r,n,l,null,"mounted")},beforeUpdate(r,n,l,s){ka(r,n,l,s,"beforeUpdate")},updated(r,n,l,s){ka(r,n,l,s,"updated")}};function ka(r,n,l,s,u){let f;switch(r.tagName){case"SELECT":f=Qh;break;case"TEXTAREA":f=Oa;break;default:switch(l.props&&l.props.type){case"checkbox":f=Au;break;case"radio":f=Lu;break;default:f=Oa}}const d=f[u];d&&d(r,n,l,s)}function sb(){Oa.getSSRProps=({value:r})=>({value:r}),Lu.getSSRProps=({value:r},n)=>{if(n.props&&fn(n.props.value,r))return{checked:!0}},Au.getSSRProps=({value:r},n)=>{if(He(r)){if(n.props&&js(r,n.props.value)>-1)return{checked:!0}}else if(Bn(r)){if(n.props&&r.has(n.props.value))return{checked:!0}}else if(r)return{checked:!0}}}const ab=["ctrl","shift","alt","meta"],lb={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,n)=>ab.some(l=>r[`${l}Key`]&&!n.includes(l))},ub=(r,n)=>(l,...s)=>{for(let u=0;u<n.length;u++){const f=lb[n[u]];if(f&&f(l,n))return}return r(l,...s)},fb={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},cb=(r,n)=>l=>{if(!("key"in l))return;const s=Ir(l.key);if(n.some(u=>u===s||fb[u]===s))return r(l)},ep={beforeMount(r,{value:n},{transition:l}){r._vod=r.style.display==="none"?"":r.style.display,l&&n?l.beforeEnter(r):es(r,n)},mounted(r,{value:n},{transition:l}){l&&n&&l.enter(r)},updated(r,{value:n,oldValue:l},{transition:s}){!n!=!l&&(s?n?(s.beforeEnter(r),es(r,!0),s.enter(r)):s.leave(r,()=>{es(r,!1)}):es(r,n))},beforeUnmount(r,{value:n}){es(r,n)}};function es(r,n){r.style.display=n?r._vod:"none"}function db(){ep.getSSRProps=({value:r})=>{if(!r)return{style:{display:"none"}}}}const tp=yt({patchProp:K0},E0);let ts,rp=!1;function np(){return ts||(ts=Qd(tp))}function ip(){return ts=rp?ts:qd(tp),rp=!0,ts}const Nu=(...r)=>{np().render(...r)},op=(...r)=>{ip().hydrate(...r)},hb=(...r)=>{const n=np().createApp(...r),{mount:l}=n;return n.mount=s=>{const u=sp(s);if(!u)return;const f=n._component;!Xe(f)&&!f.render&&!f.template&&(f.template=u.innerHTML),u.innerHTML="";const d=l(u,!1,u instanceof SVGElement);return u instanceof Element&&(u.removeAttribute("v-cloak"),u.setAttribute("data-v-app","")),d},n},pb=(...r)=>{const n=ip().createApp(...r),{mount:l}=n;return n.mount=s=>{const u=sp(s);if(u)return l(u,!0,u instanceof SVGElement)},n};function sp(r){return bt(r)?document.querySelector(r):r}let ap=!1;const vb=()=>{ap||(ap=!0,sb(),db())},gb=()=>{};var mb=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",compile:gb,EffectScope:Ml,ReactiveEffect:Io,computed:zt,customRef:Um,effect:cm,effectScope:lm,getCurrentScope:qc,isProxy:Hl,isReactive:Un,isReadonly:ta,isRef:Ct,markRaw:Bl,onScopeDispose:_c,proxyRefs:Kl,reactive:Oi,readonly:zl,ref:Lt,shallowReactive:yd,shallowReadonly:Hm,shallowRef:Do,stop:dm,toRaw:_e,toRef:xd,toRefs:Gm,triggerRef:Wm,unref:ft,camelize:lr,capitalize:Eo,normalizeClass:Po,normalizeProps:qg,normalizeStyle:To,toDisplayString:em,toHandlerKey:Mo,BaseTransition:Vl,Comment:Zt,Fragment:Bt,KeepAlive:cy,Static:Xn,Suspense:ny,Teleport:Ly,Text:Li,callWithAsyncErrorHandling:dr,callWithErrorHandling:Br,cloneVNode:mn,compatUtils:O0,createBlock:uu,createCommentVNode:Wy,createElementBlock:Fy,createElementVNode:fu,createHydrationRenderer:qd,createPropsRestProxy:y0,createRenderer:Qd,createSlots:Ky,createStaticVNode:By,createTextVNode:cu,createVNode:ct,defineAsyncComponent:uy,defineComponent:Bo,defineEmits:d0,defineExpose:h0,defineProps:c0,get devtools(){return ki},getCurrentInstance:Hr,getTransitionRawChildren:sa,guardReactiveProps:sh,h:Ca,handleError:Vn,initCustomFormatter:w0,inject:Cr,isMemoSame:kh,isRuntimeOnly:Zy,isVNode:gn,mergeDefaults:m0,mergeProps:ah,nextTick:Zo,onActivated:Ed,onBeforeMount:Ld,onBeforeUnmount:ua,onBeforeUpdate:Nd,onDeactivated:Md,onErrorCaptured:Fd,onMounted:Ai,onRenderTracked:Dd,onRenderTriggered:Rd,onServerPrefetch:Id,onUnmounted:fa,onUpdated:la,openBlock:va,popScopeId:Jm,provide:Ho,pushScopeId:Vm,queuePostFlushCb:Su,registerRuntimeCompiler:Jy,renderList:jy,renderSlot:Uy,resolveComponent:Iy,resolveDirective:Dy,resolveDynamicComponent:Ry,resolveFilter:P0,resolveTransitionHooks:Mi,setBlockTracking:lu,setDevtoolsHook:wd,setTransitionHooks:Gn,ssrContextKey:Oh,ssrUtils:T0,toHandlers:Gy,transformVNodeArgs:zy,useAttrs:g0,useSSRContext:x0,useSlots:v0,useTransitionState:Xl,version:Eh,warn:vh,watch:Qt,watchEffect:wh,watchPostEffect:Sh,watchSyncEffect:u0,withAsyncContext:b0,withCtx:Gl,withDefaults:p0,withDirectives:Cy,withMemo:S0,withScopeId:Zm,Transition:Eu,TransitionGroup:q0,VueElement:Pa,createApp:hb,createSSRApp:pb,defineCustomElement:Fh,defineSSRCustomElement:G0,hydrate:op,initDirectivesForSSR:vb,render:Nu,useCssModule:Y0,useCssVars:X0,vModelCheckbox:Au,vModelDynamic:ob,vModelRadio:Lu,vModelSelect:Qh,vModelText:Oa,vShow:ep,withKeys:cb,withModifiers:ub});function Iu(){const r=[],n=u=>{const f=r.indexOf(u);f!==-1&&r.splice(f,1)};return{on:u=>(r.push(u),{off:()=>n(u)}),off:n,trigger:u=>{r.forEach(f=>f(u))}}}function Ru(r){return qc()?(_c(r),!0):!1}const Du=typeof window!="undefined",yb=r=>typeof r=="string",Ea=()=>{};function lp(r,n){function l(...s){r(()=>n.apply(this,s),{fn:n,thisArg:this,args:s})}return l}const bb=r=>r();function xb(r,n={}){let l,s;return f=>{const d=ft(r),v=ft(n.maxWait);if(l&&clearTimeout(l),d<=0||v!==void 0&&v<=0)return s&&(clearTimeout(s),s=null),f();v&&!s&&(s=setTimeout(()=>{l&&clearTimeout(l),s=null,f()},v)),l=setTimeout(()=>{s&&clearTimeout(s),s=null,f()},d)}}function wb(r,n=!1,l="Timeout"){return new Promise((s,u)=>{setTimeout(n?()=>u(l):s,r)})}function Sb(r,...n){return n.some(l=>l in r)}function Cb(r,n=200,l={}){return lp(xb(n,l),r)}function pw(r,n=200,l={}){if(n<=0)return r;const s=Lt(r.value),u=Cb(()=>{s.value=r.value},n,l);return Qt(r,()=>u()),s}var up=Object.getOwnPropertySymbols,Tb=Object.prototype.hasOwnProperty,Pb=Object.prototype.propertyIsEnumerable,Ob=(r,n)=>{var l={};for(var s in r)Tb.call(r,s)&&n.indexOf(s)<0&&(l[s]=r[s]);if(r!=null&&up)for(var s of up(r))n.indexOf(s)<0&&Pb.call(r,s)&&(l[s]=r[s]);return l};function kb(r,n,l={}){const s=l,{eventFilter:u=bb}=s,f=Ob(s,["eventFilter"]);return Qt(r,lp(u,n),f)}function fp(r,n=!0){Hr()?Ai(r):n?r():Zo(r)}function Eb(r){let n=!1;function l(w,{flush:C="sync",deep:P=!1,timeout:A,throwOnTimeout:G}={}){let F=null;const M=[new Promise(I=>{F=Qt(r,H=>{w(H)===!n&&(F==null||F(),I())},{flush:C,deep:P,immediate:!0})})];return A&&M.push(wb(A,G).finally(()=>{F==null||F()})),Promise.race(M)}function s(w,C){return l(P=>P===ft(w),C)}function u(w){return l(C=>Boolean(C),w)}function f(w){return s(null,w)}function d(w){return s(void 0,w)}function v(w){return l(Number.isNaN,w)}function p(w,C){return l(P=>{const A=Array.from(P);return A.includes(w)||A.includes(ft(w))},C)}function m(w){return b(1,w)}function b(w=1,C){let P=-1;return l(()=>(P+=1,P>=w),C)}return Array.isArray(ft(r))?{toMatch:l,toContains:p,changed:m,changedTimes:b,get not(){return n=!n,this}}:{toMatch:l,toBe:s,toBeTruthy:u,toBeNull:f,toBeNaN:v,toBeUndefined:d,changed:m,changedTimes:b,get not(){return n=!n,this}}}function Mb(r,n,l={}){const{immediate:s=!0}=l,u=Lt(!1);let f=null;function d(){f&&(clearTimeout(f),f=null)}function v(){u.value=!1,d()}function p(...m){d(),u.value=!0,f=setTimeout(()=>{u.value=!1,f=null,r(...m)},ft(n))}return s&&(u.value=!0,Du&&p()),Ru(v),{isPending:u,start:p,stop:v}}function vw(r=!1){if(Ct(r))return n=>{r.value=typeof n=="boolean"?n:!r.value};{const n=Lt(r);return[n,s=>{n.value=typeof s=="boolean"?s:!n.value}]}}function gw(r,n,l){let s;Ct(l)?s={evaluating:l}:s=l||{};const{lazy:u=!1,evaluating:f=void 0,onError:d=Ea}=s,v=Lt(!u),p=Lt(n);let m=0;return wh(async b=>{if(!v.value)return;m++;const w=m;let C=!1;try{f&&Promise.resolve().then(()=>{f.value=!0});const P=await r(A=>{b(()=>{f&&(f.value=!1),C||A()})});w===m&&(p.value=P)}catch(P){d(P)}finally{f&&(f.value=!1),C=!0}}),u?zt(()=>(v.value=!0,p.value)):p}const Tn=Du?window:void 0;function Ab(...r){let n,l,s,u;if(yb(r[0])?([l,s,u]=r,n=Tn):[n,l,s,u]=r,!n)return Ea;let f=Ea;const d=Qt(()=>ft(n),p=>{f(),!!p&&(p.addEventListener(l,s,u),f=()=>{p.removeEventListener(l,s,u),f=Ea})},{immediate:!0,flush:"post"}),v=()=>{d(),f()};return Ru(v),v}function Lb(r,n={}){const{window:l=Tn}=n;let s;const u=Lt(!1),f=()=>{!l||(s||(s=l.matchMedia(r)),u.value=s.matches)};return fp(()=>{f(),!!s&&("addEventListener"in s?s.addEventListener("change",f):s.addListener(f),Ru(()=>{"removeEventListener"in f?s.removeEventListener("change",f):s.removeListener(f)}))}),u}function Nb(r){return r==null?"any":r instanceof Set?"set":r instanceof Map?"map":typeof r=="boolean"?"boolean":typeof r=="string"?"string":typeof r=="object"||Array.isArray(r)?"object":Number.isNaN(r)?"any":"number"}const Ib={boolean:{read:r=>r==="true",write:r=>String(r)},object:{read:r=>JSON.parse(r),write:r=>JSON.stringify(r)},number:{read:r=>Number.parseFloat(r),write:r=>String(r)},any:{read:r=>r,write:r=>String(r)},string:{read:r=>r,write:r=>String(r)},map:{read:r=>new Map(JSON.parse(r)),write:r=>JSON.stringify(Array.from(r.entries()))},set:{read:r=>new Set(JSON.parse(r)),write:r=>JSON.stringify(Array.from(r.entries()))}};function Rb(r,n,l=(u=>(u=Tn)==null?void 0:u.localStorage)(),s={}){var u;const{flush:f="pre",deep:d=!0,listenToStorageChanges:v=!0,writeDefaults:p=!0,shallow:m,window:b=Tn,eventFilter:w,onError:C=M=>{console.error(M)}}=s,P=ft(n),A=Nb(P),G=(m?Do:Lt)(n),F=(u=s.serializer)!=null?u:Ib[A];function W(M){if(!(!l||M&&M.key!==r))try{const I=M?M.newValue:l.getItem(r);I==null?(G.value=P,p&&P!==null&&l.setItem(r,F.write(P))):G.value=F.read(I)}catch(I){C(I)}}return W(),b&&v&&Ab(b,"storage",M=>setTimeout(()=>W(M),0)),l&&kb(G,()=>{try{G.value==null?l.removeItem(r):l.setItem(r,F.write(G.value))}catch(M){C(M)}},{flush:f,deep:d,eventFilter:w}),G}function cp(r){return Lb("(prefers-color-scheme: dark)",r)}var Db=Object.defineProperty,dp=Object.getOwnPropertySymbols,Fb=Object.prototype.hasOwnProperty,zb=Object.prototype.propertyIsEnumerable,hp=(r,n,l)=>n in r?Db(r,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[n]=l,Hb=(r,n)=>{for(var l in n||(n={}))Fb.call(n,l)&&hp(r,l,n[l]);if(dp)for(var l of dp(n))zb.call(n,l)&&hp(r,l,n[l]);return r};function Bb(r={}){var n;const{selector:l="html",attribute:s="class",window:u=Tn,storage:f=(n=Tn)==null?void 0:n.localStorage,storageKey:d="vueuse-color-scheme",listenToStorageChanges:v=!0,storageRef:p}=r,m=Hb({auto:"",light:"light",dark:"dark"},r.modes||{}),b=cp({window:u}),w=zt(()=>b.value?"dark":"light"),C=p||(d==null?Lt("auto"):Rb(d,"auto",f,{window:u,listenToStorageChanges:v})),P=zt({get(){return C.value==="auto"?w.value:C.value},set(F){C.value=F}});function A(F){const W=u==null?void 0:u.document.querySelector(l);if(!!W)if(s==="class"){const M=(m[F]||"").split(/\s/g);Object.values(m).flatMap(I=>(I||"").split(/\s/g)).filter(Boolean).forEach(I=>{M.includes(I)?W.classList.add(I):W.classList.remove(I)})}else W.setAttribute(s,F)}function G(F){r.onChanged?r.onChanged(F,A):A(F)}return Qt(P,G,{flush:"post"}),fp(()=>G(P.value)),P}var Wb=Object.defineProperty,jb=Object.defineProperties,Kb=Object.getOwnPropertyDescriptors,pp=Object.getOwnPropertySymbols,Ub=Object.prototype.hasOwnProperty,Gb=Object.prototype.propertyIsEnumerable,vp=(r,n,l)=>n in r?Wb(r,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[n]=l,$b=(r,n)=>{for(var l in n||(n={}))Ub.call(n,l)&&vp(r,l,n[l]);if(pp)for(var l of pp(n))Gb.call(n,l)&&vp(r,l,n[l]);return r},Yb=(r,n)=>jb(r,Kb(n));function mw(r={}){const{valueDark:n="dark",valueLight:l="",window:s=Tn}=r,u=Bb(Yb($b({},r),{onChanged:(v,p)=>{var m;r.onChanged?(m=r.onChanged)==null||m.call(r,v==="dark"):p(v)},modes:{dark:n,light:l}})),f=cp({window:s});return zt({get(){return u.value==="dark"},set(v){v===f.value?u.value="auto":u.value=v?"dark":"light"}})}var Xb=Object.defineProperty,Vb=Object.defineProperties,Jb=Object.getOwnPropertyDescriptors,gp=Object.getOwnPropertySymbols,Zb=Object.prototype.hasOwnProperty,Qb=Object.prototype.propertyIsEnumerable,mp=(r,n,l)=>n in r?Xb(r,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[n]=l,Tr=(r,n)=>{for(var l in n||(n={}))Zb.call(n,l)&&mp(r,l,n[l]);if(gp)for(var l of gp(n))Qb.call(n,l)&&mp(r,l,n[l]);return r},Ma=(r,n)=>Vb(r,Jb(n));const qb={json:"application/json",text:"text/plain",formData:"multipart/form-data"};function yp(r){return Sb(r,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError")}function Fu(r){return r instanceof Headers?Object.fromEntries([...r.entries()]):r}function yw(r,...n){var l;const s=typeof AbortController=="function";let u={},f={immediate:!0,refetch:!1,timeout:0};const d={method:"get",type:"text",payload:void 0};n.length>0&&(yp(n[0])?f=Tr(Tr({},f),n[0]):u=n[0]),n.length>1&&yp(n[1])&&(f=Tr(Tr({},f),n[1]));const{fetch:v=(l=Tn)==null?void 0:l.fetch,initialData:p,timeout:m}=f,b=Iu(),w=Iu(),C=Iu(),P=Lt(!1),A=Lt(!1),G=Lt(!1),F=Lt(null),W=Do(null),M=Lt(null),I=Do(p),H=zt(()=>s&&A.value);let q,_;const V=()=>{s&&q&&q.abort()},J=O=>{A.value=O,P.value=!O};m&&(_=Mb(V,m,{immediate:!1}));const te=async(O=!1)=>{var x;J(!0),M.value=null,F.value=null,G.value=!1,q=void 0,s&&(q=new AbortController,q.signal.onabort=()=>G.value=!0,u=Ma(Tr({},u),{signal:q.signal}));const z={method:d.method,headers:{}};if(d.payload){const de=Fu(z.headers);d.payloadType&&(de["Content-Type"]=(x=qb[d.payloadType])!=null?x:d.payloadType),z.body=d.payloadType==="json"?JSON.stringify(ft(d.payload)):ft(d.payload)}let B=!1;const $={url:ft(r),options:u,cancel:()=>{B=!0}};if(f.beforeFetch&&Object.assign($,await f.beforeFetch($)),B||!v)return J(!1),Promise.resolve(null);let se=null;return _&&_.start(),new Promise((de,Ke)=>{var Ve;v($.url,Ma(Tr(Tr({},z),$.options),{headers:Tr(Tr({},Fu(z.headers)),Fu((Ve=$.options)==null?void 0:Ve.headers))})).then(async Ie=>{if(W.value=Ie,F.value=Ie.status,se=await Ie[d.type](),f.afterFetch&&({data:se}=await f.afterFetch({data:se,response:Ie})),I.value=se,!Ie.ok)throw new Error(Ie.statusText);return b.trigger(Ie),de(Ie)}).catch(async Ie=>{let $e=Ie.message||Ie.name;return f.onFetchError&&({data:se,error:$e}=await f.onFetchError({data:se,error:Ie})),I.value=se,M.value=$e,w.trigger(Ie),O?Ke(Ie):de(null)}).finally(()=>{J(!1),_&&_.stop(),C.trigger(null)})})};Qt(()=>[ft(r),ft(f.refetch)],()=>ft(f.refetch)&&te(),{deep:!0});const ie={isFinished:P,statusCode:F,response:W,error:M,data:I,isFetching:A,canAbort:H,aborted:G,abort:V,execute:te,onFetchResponse:b.on,onFetchError:w.on,onFetchFinally:C.on,get:Q("get"),put:Q("put"),post:Q("post"),delete:Q("delete"),json:k("json"),text:k("text"),blob:k("blob"),arrayBuffer:k("arrayBuffer"),formData:k("formData")};function Q(O){return(x,z)=>{if(!A.value)return d.method=O,d.payload=x,d.payloadType=z,Ct(d.payload)&&Qt(()=>[ft(d.payload),ft(f.refetch)],()=>ft(f.refetch)&&te(),{deep:!0}),!z&&ft(x)&&Object.getPrototypeOf(ft(x))===Object.prototype&&(d.payloadType="json"),ie}}function ee(){return new Promise((O,x)=>{Eb(P).toBe(!0).then(()=>O(ie)).catch(z=>x(z))})}function k(O){return()=>{if(!A.value)return d.type=O,Ma(Tr({},ie),{then(x,z){return ee().then(x,z)}})}}return f.immediate&&setTimeout(te,0),Ma(Tr({},ie),{then(O,x){return ee().then(O,x)}})}var bp,xp;Du&&(window==null?void 0:window.navigator)&&((bp=window==null?void 0:window.navigator)==null?void 0:bp.platform)&&/iP(ad|hone|od)/.test((xp=window==null?void 0:window.navigator)==null?void 0:xp.platform);var _b=Object.defineProperty,wp=Object.getOwnPropertySymbols,ex=Object.prototype.hasOwnProperty,tx=Object.prototype.propertyIsEnumerable,Sp=(r,n,l)=>n in r?_b(r,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[n]=l,rx=(r,n)=>{for(var l in n||(n={}))ex.call(n,l)&&Sp(r,l,n[l]);if(wp)for(var l of wp(n))tx.call(n,l)&&Sp(r,l,n[l]);return r};const nx={top:0,left:0,bottom:0,right:0,height:0,width:0};rx({text:""},nx);function bw(r,n,l,s={}){var u;const{passive:f=!1,eventName:d,deep:v=!1}=s,p=Hr(),m=l||(p==null?void 0:p.emit)||((u=p==null?void 0:p.$emit)==null?void 0:u.bind(p));let b=d;if(n||(n="modelValue"),b=d||b||`update:${n}`,f){const w=Lt(r[n]);return Qt(()=>r[n],C=>w.value=C),Qt(w,C=>{(C!==r[n]||v)&&m(b,C)},{deep:v}),w}else return zt({get(){return r[n]},set(w){m(b,w)}})}var ix=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ox(r){if(r.__esModule)return r;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(l){var s=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(n,l,s.get?s:{enumerable:!0,get:function(){return r[l]}})}),n}var qn={exports:{}};(function(r,n){(function(l,s){r.exports=s()})(ix,function(){var l=navigator.userAgent,s=navigator.platform,u=/gecko\/\d/i.test(l),f=/MSIE \d/.test(l),d=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(l),v=/Edge\/(\d+)/.exec(l),p=f||d||v,m=p&&(f?document.documentMode||6:+(v||d)[1]),b=!v&&/WebKit\//.test(l),w=b&&/Qt\/\d+\.\d+/.test(l),C=!v&&/Chrome\//.test(l),P=/Opera\//.test(l),A=/Apple Computer/.test(navigator.vendor),G=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(l),F=/PhantomJS/.test(l),W=A&&(/Mobile\/\w+/.test(l)||navigator.maxTouchPoints>2),M=/Android/.test(l),I=W||M||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(l),H=W||/Mac/.test(s),q=/\bCrOS\b/.test(l),_=/win/i.test(s),V=P&&l.match(/Version\/(\d*\.\d*)/);V&&(V=Number(V[1])),V&&V>=15&&(P=!1,b=!0);var J=H&&(w||P&&(V==null||V<12.11)),te=u||p&&m>=9;function ie(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Q=function(e,t){var o=e.className,i=ie(t).exec(o);if(i){var a=o.slice(i.index+i[0].length);e.className=o.slice(0,i.index)+(a?i[1]+a:"")}};function ee(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function k(e,t){return ee(e).appendChild(t)}function O(e,t,o,i){var a=document.createElement(e);if(o&&(a.className=o),i&&(a.style.cssText=i),typeof t=="string")a.appendChild(document.createTextNode(t));else if(t)for(var c=0;c<t.length;++c)a.appendChild(t[c]);return a}function x(e,t,o,i){var a=O(e,t,o,i);return a.setAttribute("role","presentation"),a}var z;document.createRange?z=function(e,t,o,i){var a=document.createRange();return a.setEnd(i||e,o),a.setStart(e,t),a}:z=function(e,t,o){var i=document.body.createTextRange();try{i.moveToElementText(e.parentNode)}catch{return i}return i.collapse(!0),i.moveEnd("character",o),i.moveStart("character",t),i};function B(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function $(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function se(e,t){var o=e.className;ie(t).test(o)||(e.className+=(o?" ":"")+t)}function de(e,t){for(var o=e.split(" "),i=0;i<o.length;i++)o[i]&&!ie(o[i]).test(t)&&(t+=" "+o[i]);return t}var Ke=function(e){e.select()};W?Ke=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:p&&(Ke=function(e){try{e.select()}catch{}});function Ve(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function Ie(e,t,o){t||(t={});for(var i in e)e.hasOwnProperty(i)&&(o!==!1||!t.hasOwnProperty(i))&&(t[i]=e[i]);return t}function $e(e,t,o,i,a){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var c=i||0,h=a||0;;){var g=e.indexOf(" ",c);if(g<0||g>=t)return h+(t-c);h+=g-c,h+=o-h%o,c=g+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=Ve(this.onTimeout,this)};ne.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ne.prototype.set=function(e,t){this.f=t;var o=+new Date+e;(!this.id||o<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=o)};function ae(e,t){for(var o=0;o<e.length;++o)if(e[o]==t)return o;return-1}var le=50,be={toString:function(){return"CodeMirror.Pass"}},Re={scroll:!1},ke={origin:"*mouse"},me={origin:"+move"};function Le(e,t,o){for(var i=0,a=0;;){var c=e.indexOf(" ",i);c==-1&&(c=e.length);var h=c-i;if(c==e.length||a+h>=t)return i+Math.min(h,t-a);if(a+=c-i,a+=o-a%o,i=c+1,a>=t)return i}}var R=[""];function j(e){for(;R.length<=e;)R.push(X(R)+" ");return R[e]}function X(e){return e[e.length-1]}function oe(e,t){for(var o=[],i=0;i<e.length;i++)o[i]=t(e[i],i);return o}function ue(e,t,o){for(var i=0,a=o(t);i<e.length&&o(e[i])<=a;)i++;e.splice(i,0,t)}function ge(){}function Ce(e,t){var o;return Object.create?o=Object.create(e):(ge.prototype=e,o=new ge),t&&Ie(t,o),o}var we=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function he(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||we.test(e))}function L(e,t){return t?t.source.indexOf("\\w")>-1&&he(e)?!0:t.test(e):he(e)}function Z(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var U=/[\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 Se(e){return e.charCodeAt(0)>=768&&U.test(e)}function De(e,t,o){for(;(o<0?t>0:t<e.length)&&Se(e.charAt(t));)t+=o;return t}function Ge(e,t,o){for(var i=t>o?-1:1;;){if(t==o)return t;var a=(t+o)/2,c=i<0?Math.ceil(a):Math.floor(a);if(c==t)return e(c)?t:o;e(c)?o=c:t=c+i}}function it(e,t,o,i){if(!e)return i(t,o,"ltr",0);for(var a=!1,c=0;c<e.length;++c){var h=e[c];(h.from<o&&h.to>t||t==o&&h.to==t)&&(i(Math.max(h.from,t),Math.min(h.to,o),h.level==1?"rtl":"ltr",c),a=!0)}a||i(t,o,"ltr")}var Je=null;function je(e,t,o){var i;Je=null;for(var a=0;a<e.length;++a){var c=e[a];if(c.from<t&&c.to>t)return a;c.to==t&&(c.from!=c.to&&o=="before"?i=a:Je=a),c.from==t&&(c.from!=c.to&&o!="before"?i=a:Je=a)}return i!=null?i:Je}var gt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function o(S){return S<=247?e.charAt(S):1424<=S&&S<=1524?"R":1536<=S&&S<=1785?t.charAt(S-1536):1774<=S&&S<=2220?"r":8192<=S&&S<=8203?"w":S==8204?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,a=/[stwN]/,c=/[LRr]/,h=/[Lb1n]/,g=/[1n]/;function y(S,E,N){this.level=S,this.from=E,this.to=N}return function(S,E){var N=E=="ltr"?"L":"R";if(S.length==0||E=="ltr"&&!i.test(S))return!1;for(var Y=S.length,K=[],re=0;re<Y;++re)K.push(o(S.charCodeAt(re)));for(var ce=0,xe=N;ce<Y;++ce){var Te=K[ce];Te=="m"?K[ce]=xe:xe=Te}for(var Ee=0,Pe=N;Ee<Y;++Ee){var Ae=K[Ee];Ae=="1"&&Pe=="r"?K[Ee]="n":c.test(Ae)&&(Pe=Ae,Ae=="r"&&(K[Ee]="R"))}for(var We=1,ze=K[0];We<Y-1;++We){var Ze=K[We];Ze=="+"&&ze=="1"&&K[We+1]=="1"?K[We]="1":Ze==","&&ze==K[We+1]&&(ze=="1"||ze=="n")&&(K[We]=ze),ze=Ze}for(var at=0;at<Y;++at){var Mt=K[at];if(Mt==",")K[at]="N";else if(Mt=="%"){var ht=void 0;for(ht=at+1;ht<Y&&K[ht]=="%";++ht);for(var tr=at&&K[at-1]=="!"||ht<Y&&K[ht]=="1"?"1":"N",Yt=at;Yt<ht;++Yt)K[Yt]=tr;at=ht-1}}for(var wt=0,Xt=N;wt<Y;++wt){var It=K[wt];Xt=="L"&&It=="1"?K[wt]="L":c.test(It)&&(Xt=It)}for(var Tt=0;Tt<Y;++Tt)if(a.test(K[Tt])){var St=void 0;for(St=Tt+1;St<Y&&a.test(K[St]);++St);for(var vt=(Tt?K[Tt-1]:N)=="L",Vt=(St<Y?K[St]:N)=="L",xi=vt==Vt?vt?"L":"R":N,un=Tt;un<St;++un)K[un]=xi;Tt=St-1}for(var Ft=[],Nr,At=0;At<Y;)if(h.test(K[At])){var Sl=At;for(++At;At<Y&&h.test(K[At]);++At);Ft.push(new y(0,Sl,At))}else{var Yr=At,zn=Ft.length,Hn=E=="rtl"?1:0;for(++At;At<Y&&K[At]!="L";++At);for(var Kt=Yr;Kt<At;)if(g.test(K[Kt])){Yr<Kt&&(Ft.splice(zn,0,new y(1,Yr,Kt)),zn+=Hn);var wi=Kt;for(++Kt;Kt<At&&g.test(K[Kt]);++Kt);Ft.splice(zn,0,new y(2,wi,Kt)),zn+=Hn,Yr=Kt}else++Kt;Yr<At&&Ft.splice(zn,0,new y(1,Yr,At))}return E=="ltr"&&(Ft[0].level==1&&(Nr=S.match(/^\s+/))&&(Ft[0].from=Nr[0].length,Ft.unshift(new y(0,0,Nr[0].length))),X(Ft).level==1&&(Nr=S.match(/\s+$/))&&(X(Ft).to-=Nr[0].length,Ft.push(new y(0,Y-Nr[0].length,Y)))),E=="rtl"?Ft.reverse():Ft}}();function dt(e,t){var o=e.order;return o==null&&(o=e.order=gt(e.text,t)),o}var Wt=[],Fe=function(e,t,o){if(e.addEventListener)e.addEventListener(t,o,!1);else if(e.attachEvent)e.attachEvent("on"+t,o);else{var i=e._handlers||(e._handlers={});i[t]=(i[t]||Wt).concat(o)}};function Ye(e,t){return e._handlers&&e._handlers[t]||Wt}function Oe(e,t,o){if(e.removeEventListener)e.removeEventListener(t,o,!1);else if(e.detachEvent)e.detachEvent("on"+t,o);else{var i=e._handlers,a=i&&i[t];if(a){var c=ae(a,o);c>-1&&(i[t]=a.slice(0,c).concat(a.slice(c+1)))}}}function ve(e,t){var o=Ye(e,t);if(!!o.length)for(var i=Array.prototype.slice.call(arguments,2),a=0;a<o.length;++a)o[a].apply(null,i)}function Be(e,t,o){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ve(e,o||t.type,e,t),nr(t)||t.codemirrorIgnore}function qe(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var o=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),i=0;i<t.length;++i)ae(o,t[i])==-1&&o.push(t[i])}function et(e,t){return Ye(e,t).length>0}function qt(e){e.prototype.on=function(t,o){Fe(this,t,o)},e.prototype.off=function(t,o){Oe(this,t,o)}}function Pt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function gr(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function nr(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function kn(e){Pt(e),gr(e)}function qr(e){return e.target||e.srcElement}function ss(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),H&&e.ctrlKey&&t==1&&(t=3),t}var Ki=function(){if(p&&m<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}(),Ut;function as(e){if(Ut==null){var t=O("span","\u200B");k(e,O("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Ut=t.offsetWidth<=1&&t.offsetHeight>2&&!(p&&m<8))}var o=Ut?O("span","\u200B"):O("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return o.setAttribute("cm-text",""),o}var Ui;function Pr(e){if(Ui!=null)return Ui;var t=k(e,document.createTextNode("A\u062EA")),o=z(t,0,1).getBoundingClientRect(),i=z(t,1,2).getBoundingClientRect();return ee(e),!o||o.left==o.right?!1:Ui=i.right-o.right<3}var Gi=`
5
+
6
+ b`.split(/\n/).length!=3?function(e){for(var t=0,o=[],i=e.length;t<=i;){var a=e.indexOf(`
7
+ `,t);a==-1&&(a=e.length);var c=e.slice(t,e.charAt(a-1)=="\r"?a-1:a),h=c.indexOf("\r");h!=-1?(o.push(c.slice(0,h)),t+=h+1):(o.push(c),t=a+1)}return o}:function(e){return e.split(/\r\n?|\n/)},ls=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},us=function(){var e=O("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),$i=null;function _r(e){if($i!=null)return $i;var t=k(e,O("span","x")),o=t.getBoundingClientRect(),i=z(t,0,1).getBoundingClientRect();return $i=Math.abs(o.left-i.left)>1}var pr={},ir={};function fs(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),pr[e]=t}function Wr(e,t){ir[e]=t}function ei(e){if(typeof e=="string"&&ir.hasOwnProperty(e))e=ir[e];else if(e&&typeof e.name=="string"&&ir.hasOwnProperty(e.name)){var t=ir[e.name];typeof t=="string"&&(t={name:t}),e=Ce(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ei("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ei("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function ti(e,t){t=ei(t);var o=pr[t.name];if(!o)return ti(e,"text/plain");var i=o(e,t);if(mr.hasOwnProperty(t.name)){var a=mr[t.name];for(var c in a)!a.hasOwnProperty(c)||(i.hasOwnProperty(c)&&(i["_"+c]=i[c]),i[c]=a[c])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var h in t.modeProps)i[h]=t.modeProps[h];return i}var mr={};function yr(e,t){var o=mr.hasOwnProperty(e)?mr[e]:mr[e]={};Ie(t,o)}function or(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var o={};for(var i in t){var a=t[i];a instanceof Array&&(a=a.concat([])),o[i]=a}return o}function Yi(e,t){for(var o;e.innerMode&&(o=e.innerMode(t),!(!o||o.mode==e));)t=o.state,e=o.mode;return o||{mode:e,state:t}}function Xi(e,t,o){return e.startState?e.startState(t,o):!0}var pt=function(e,t,o){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=o};pt.prototype.eol=function(){return this.pos>=this.string.length},pt.prototype.sol=function(){return this.pos==this.lineStart},pt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},pt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},pt.prototype.eat=function(e){var t=this.string.charAt(this.pos),o;if(typeof e=="string"?o=t==e:o=t&&(e.test?e.test(t):e(t)),o)return++this.pos,t},pt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},pt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},pt.prototype.skipToEnd=function(){this.pos=this.string.length},pt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},pt.prototype.backUp=function(e){this.pos-=e},pt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=$e(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?$e(this.string,this.lineStart,this.tabSize):0)},pt.prototype.indentation=function(){return $e(this.string,null,this.tabSize)-(this.lineStart?$e(this.string,this.lineStart,this.tabSize):0)},pt.prototype.match=function(e,t,o){if(typeof e=="string"){var i=function(h){return o?h.toLowerCase():h},a=this.string.substr(this.pos,e.length);if(i(a)==i(e))return t!==!1&&(this.pos+=e.length),!0}else{var c=this.string.slice(this.pos).match(e);return c&&c.index>0?null:(c&&t!==!1&&(this.pos+=c[0].length),c)}},pt.prototype.current=function(){return this.string.slice(this.start,this.pos)},pt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},pt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},pt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Ne(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var o=e;!o.lines;)for(var i=0;;++i){var a=o.children[i],c=a.chunkSize();if(t<c){o=a;break}t-=c}return o.lines[t]}function Or(e,t,o){var i=[],a=t.line;return e.iter(t.line,o.line+1,function(c){var h=c.text;a==o.line&&(h=h.slice(0,o.ch)),a==t.line&&(h=h.slice(t.ch)),i.push(h),++a}),i}function Vi(e,t,o){var i=[];return e.iter(t,o,function(a){i.push(a.text)}),i}function _t(e,t){var o=t-e.height;if(o)for(var i=e;i;i=i.parent)i.height+=o}function tt(e){if(e.parent==null)return null;for(var t=e.parent,o=ae(t.lines,e),i=t.parent;i;t=i,i=i.parent)for(var a=0;i.children[a]!=t;++a)o+=i.children[a].chunkSize();return o+t.first}function kr(e,t){var o=e.first;e:do{for(var i=0;i<e.children.length;++i){var a=e.children[i],c=a.height;if(t<c){e=a;continue e}t-=c,o+=a.chunkSize()}return o}while(!e.lines);for(var h=0;h<e.lines.length;++h){var g=e.lines[h],y=g.height;if(t<y)break;t-=y}return o+h}function En(e,t){return t>=e.first&&t<e.first+e.size}function Ji(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function pe(e,t,o){if(o===void 0&&(o=null),!(this instanceof pe))return new pe(e,t,o);this.line=e,this.ch=t,this.sticky=o}function T(e,t){return e.line-t.line||e.ch-t.ch}function D(e,t){return e.sticky==t.sticky&&T(e,t)==0}function fe(e){return pe(e.line,e.ch)}function ye(e,t){return T(e,t)<0?t:e}function Ue(e,t){return T(e,t)<0?e:t}function Qe(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Me(e,t){if(t.line<e.first)return pe(e.first,0);var o=e.first+e.size-1;return t.line>o?pe(o,Ne(e,o).text.length):Rt(t,Ne(e,t.line).text.length)}function Rt(e,t){var o=e.ch;return o==null||o>t?pe(e.line,t):o<0?pe(e.line,0):e}function sr(e,t){for(var o=[],i=0;i<t.length;i++)o[i]=Me(e,t[i]);return o}var ri=function(e,t){this.state=e,this.lookAhead=t},Er=function(e,t,o,i){this.state=t,this.doc=e,this.line=o,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};Er.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Er.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Er.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Er.fromSaved=function(e,t,o){return t instanceof ri?new Er(e,or(e.mode,t.state),o,t.lookAhead):new Er(e,or(e.mode,t),o)},Er.prototype.save=function(e){var t=e!==!1?or(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ri(t,this.maxLookAhead):t};function Yu(e,t,o,i){var a=[e.state.modeGen],c={};qu(e,t.text,e.doc.mode,o,function(S,E){return a.push(S,E)},c,i);for(var h=o.state,g=function(S){o.baseTokens=a;var E=e.state.overlays[S],N=1,Y=0;o.state=!0,qu(e,t.text,E.mode,o,function(K,re){for(var ce=N;Y<K;){var xe=a[N];xe>K&&a.splice(N,1,K,a[N+1],xe),N+=2,Y=Math.min(K,xe)}if(!!re)if(E.opaque)a.splice(ce,N-ce,K,"overlay "+re),N=ce+2;else for(;ce<N;ce+=2){var Te=a[ce+1];a[ce+1]=(Te?Te+" ":"")+"overlay "+re}},c),o.state=h,o.baseTokens=null,o.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)g(y);return{styles:a,classes:c.bgClass||c.textClass?c:null}}function Xu(e,t,o){if(!t.styles||t.styles[0]!=e.state.modeGen){var i=Zi(e,tt(t)),a=t.text.length>e.options.maxHighlightLength&&or(e.doc.mode,i.state),c=Yu(e,t,i);a&&(i.state=a),t.stateAfter=i.save(!a),t.styles=c.styles,c.classes?t.styleClasses=c.classes:t.styleClasses&&(t.styleClasses=null),o===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Zi(e,t,o){var i=e.doc,a=e.display;if(!i.mode.startState)return new Er(i,!0,t);var c=Xp(e,t,o),h=c>i.first&&Ne(i,c-1).stateAfter,g=h?Er.fromSaved(i,h,c):new Er(i,Xi(i.mode),c);return i.iter(c,t,function(y){Na(e,y.text,g);var S=g.line;y.stateAfter=S==t-1||S%5==0||S>=a.viewFrom&&S<a.viewTo?g.save():null,g.nextLine()}),o&&(i.modeFrontier=g.line),g}function Na(e,t,o,i){var a=e.doc.mode,c=new pt(t,e.options.tabSize,o);for(c.start=c.pos=i||0,t==""&&Vu(a,o.state);!c.eol();)Ia(a,c,o.state),c.start=c.pos}function Vu(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var o=Yi(e,t);if(o.mode.blankLine)return o.mode.blankLine(o.state)}}function Ia(e,t,o,i){for(var a=0;a<10;a++){i&&(i[0]=Yi(e,o).mode);var c=e.token(t,o);if(t.pos>t.start)return c}throw new Error("Mode "+e.name+" failed to advance stream.")}var Ju=function(e,t,o){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=o};function Zu(e,t,o,i){var a=e.doc,c=a.mode,h;t=Me(a,t);var g=Ne(a,t.line),y=Zi(e,t.line,o),S=new pt(g.text,e.options.tabSize,y),E;for(i&&(E=[]);(i||S.pos<t.ch)&&!S.eol();)S.start=S.pos,h=Ia(c,S,y.state),i&&E.push(new Ju(S,h,or(a.mode,y.state)));return i?E:new Ju(S,h,y.state)}function Qu(e,t){if(e)for(;;){var o=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!o)break;e=e.slice(0,o.index)+e.slice(o.index+o[0].length);var i=o[1]?"bgClass":"textClass";t[i]==null?t[i]=o[2]:new RegExp("(?:^|\\s)"+o[2]+"(?:$|\\s)").test(t[i])||(t[i]+=" "+o[2])}return e}function qu(e,t,o,i,a,c,h){var g=o.flattenSpans;g==null&&(g=e.options.flattenSpans);var y=0,S=null,E=new pt(t,e.options.tabSize,i),N,Y=e.options.addModeClass&&[null];for(t==""&&Qu(Vu(o,i.state),c);!E.eol();){if(E.pos>e.options.maxHighlightLength?(g=!1,h&&Na(e,t,i,E.pos),E.pos=t.length,N=null):N=Qu(Ia(o,E,i.state,Y),c),Y){var K=Y[0].name;K&&(N="m-"+(N?K+" "+N:K))}if(!g||S!=N){for(;y<E.start;)y=Math.min(E.start,y+5e3),a(y,S);S=N}E.start=E.pos}for(;y<E.pos;){var re=Math.min(E.pos,y+5e3);a(re,S),y=re}}function Xp(e,t,o){for(var i,a,c=e.doc,h=o?-1:t-(e.doc.mode.innerMode?1e3:100),g=t;g>h;--g){if(g<=c.first)return c.first;var y=Ne(c,g-1),S=y.stateAfter;if(S&&(!o||g+(S instanceof ri?S.lookAhead:0)<=c.modeFrontier))return g;var E=$e(y.text,null,e.options.tabSize);(a==null||i>E)&&(a=g-1,i=E)}return a}function Vp(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var o=e.first,i=t-1;i>o;i--){var a=Ne(e,i).stateAfter;if(a&&(!(a instanceof ri)||i+a.lookAhead<t)){o=i+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,o)}}var _u=!1,jr=!1;function Jp(){_u=!0}function Zp(){jr=!0}function cs(e,t,o){this.marker=e,this.from=t,this.to=o}function Qi(e,t){if(e)for(var o=0;o<e.length;++o){var i=e[o];if(i.marker==t)return i}}function Qp(e,t){for(var o,i=0;i<e.length;++i)e[i]!=t&&(o||(o=[])).push(e[i]);return o}function qp(e,t,o){var i=o&&window.WeakSet&&(o.markedSpans||(o.markedSpans=new WeakSet));i&&i.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],i&&i.add(e.markedSpans)),t.marker.attachLine(e)}function _p(e,t,o){var i;if(e)for(var a=0;a<e.length;++a){var c=e[a],h=c.marker,g=c.from==null||(h.inclusiveLeft?c.from<=t:c.from<t);if(g||c.from==t&&h.type=="bookmark"&&(!o||!c.marker.insertLeft)){var y=c.to==null||(h.inclusiveRight?c.to>=t:c.to>t);(i||(i=[])).push(new cs(h,c.from,y?null:c.to))}}return i}function ev(e,t,o){var i;if(e)for(var a=0;a<e.length;++a){var c=e[a],h=c.marker,g=c.to==null||(h.inclusiveRight?c.to>=t:c.to>t);if(g||c.from==t&&h.type=="bookmark"&&(!o||c.marker.insertLeft)){var y=c.from==null||(h.inclusiveLeft?c.from<=t:c.from<t);(i||(i=[])).push(new cs(h,y?null:c.from-t,c.to==null?null:c.to-t))}}return i}function Ra(e,t){if(t.full)return null;var o=En(e,t.from.line)&&Ne(e,t.from.line).markedSpans,i=En(e,t.to.line)&&Ne(e,t.to.line).markedSpans;if(!o&&!i)return null;var a=t.from.ch,c=t.to.ch,h=T(t.from,t.to)==0,g=_p(o,a,h),y=ev(i,c,h),S=t.text.length==1,E=X(t.text).length+(S?a:0);if(g)for(var N=0;N<g.length;++N){var Y=g[N];if(Y.to==null){var K=Qi(y,Y.marker);K?S&&(Y.to=K.to==null?null:K.to+E):Y.to=a}}if(y)for(var re=0;re<y.length;++re){var ce=y[re];if(ce.to!=null&&(ce.to+=E),ce.from==null){var xe=Qi(g,ce.marker);xe||(ce.from=E,S&&(g||(g=[])).push(ce))}else ce.from+=E,S&&(g||(g=[])).push(ce)}g&&(g=ef(g)),y&&y!=g&&(y=ef(y));var Te=[g];if(!S){var Ee=t.text.length-2,Pe;if(Ee>0&&g)for(var Ae=0;Ae<g.length;++Ae)g[Ae].to==null&&(Pe||(Pe=[])).push(new cs(g[Ae].marker,null,null));for(var We=0;We<Ee;++We)Te.push(Pe);Te.push(y)}return Te}function ef(e){for(var t=0;t<e.length;++t){var o=e[t];o.from!=null&&o.from==o.to&&o.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function tv(e,t,o){var i=null;if(e.iter(t.line,o.line+1,function(K){if(K.markedSpans)for(var re=0;re<K.markedSpans.length;++re){var ce=K.markedSpans[re].marker;ce.readOnly&&(!i||ae(i,ce)==-1)&&(i||(i=[])).push(ce)}}),!i)return null;for(var a=[{from:t,to:o}],c=0;c<i.length;++c)for(var h=i[c],g=h.find(0),y=0;y<a.length;++y){var S=a[y];if(!(T(S.to,g.from)<0||T(S.from,g.to)>0)){var E=[y,1],N=T(S.from,g.from),Y=T(S.to,g.to);(N<0||!h.inclusiveLeft&&!N)&&E.push({from:S.from,to:g.from}),(Y>0||!h.inclusiveRight&&!Y)&&E.push({from:g.to,to:S.to}),a.splice.apply(a,E),y+=E.length-3}}return a}function tf(e){var t=e.markedSpans;if(!!t){for(var o=0;o<t.length;++o)t[o].marker.detachLine(e);e.markedSpans=null}}function rf(e,t){if(!!t){for(var o=0;o<t.length;++o)t[o].marker.attachLine(e);e.markedSpans=t}}function ds(e){return e.inclusiveLeft?-1:0}function hs(e){return e.inclusiveRight?1:0}function Da(e,t){var o=e.lines.length-t.lines.length;if(o!=0)return o;var i=e.find(),a=t.find(),c=T(i.from,a.from)||ds(e)-ds(t);if(c)return-c;var h=T(i.to,a.to)||hs(e)-hs(t);return h||t.id-e.id}function nf(e,t){var o=jr&&e.markedSpans,i;if(o)for(var a=void 0,c=0;c<o.length;++c)a=o[c],a.marker.collapsed&&(t?a.from:a.to)==null&&(!i||Da(i,a.marker)<0)&&(i=a.marker);return i}function of(e){return nf(e,!0)}function ps(e){return nf(e,!1)}function rv(e,t){var o=jr&&e.markedSpans,i;if(o)for(var a=0;a<o.length;++a){var c=o[a];c.marker.collapsed&&(c.from==null||c.from<t)&&(c.to==null||c.to>t)&&(!i||Da(i,c.marker)<0)&&(i=c.marker)}return i}function sf(e,t,o,i,a){var c=Ne(e,t),h=jr&&c.markedSpans;if(h)for(var g=0;g<h.length;++g){var y=h[g];if(!!y.marker.collapsed){var S=y.marker.find(0),E=T(S.from,o)||ds(y.marker)-ds(a),N=T(S.to,i)||hs(y.marker)-hs(a);if(!(E>=0&&N<=0||E<=0&&N>=0)&&(E<=0&&(y.marker.inclusiveRight&&a.inclusiveLeft?T(S.to,o)>=0:T(S.to,o)>0)||E>=0&&(y.marker.inclusiveRight&&a.inclusiveLeft?T(S.from,i)<=0:T(S.from,i)<0)))return!0}}}function Mr(e){for(var t;t=of(e);)e=t.find(-1,!0).line;return e}function nv(e){for(var t;t=ps(e);)e=t.find(1,!0).line;return e}function iv(e){for(var t,o;t=ps(e);)e=t.find(1,!0).line,(o||(o=[])).push(e);return o}function Fa(e,t){var o=Ne(e,t),i=Mr(o);return o==i?t:tt(i)}function af(e,t){if(t>e.lastLine())return t;var o=Ne(e,t),i;if(!en(e,o))return t;for(;i=ps(o);)o=i.find(1,!0).line;return tt(o)+1}function en(e,t){var o=jr&&t.markedSpans;if(o){for(var i=void 0,a=0;a<o.length;++a)if(i=o[a],!!i.marker.collapsed){if(i.from==null)return!0;if(!i.marker.widgetNode&&i.from==0&&i.marker.inclusiveLeft&&za(e,t,i))return!0}}}function za(e,t,o){if(o.to==null){var i=o.marker.find(1,!0);return za(e,i.line,Qi(i.line.markedSpans,o.marker))}if(o.marker.inclusiveRight&&o.to==t.text.length)return!0;for(var a=void 0,c=0;c<t.markedSpans.length;++c)if(a=t.markedSpans[c],a.marker.collapsed&&!a.marker.widgetNode&&a.from==o.to&&(a.to==null||a.to!=o.from)&&(a.marker.inclusiveLeft||o.marker.inclusiveRight)&&za(e,t,a))return!0}function Kr(e){e=Mr(e);for(var t=0,o=e.parent,i=0;i<o.lines.length;++i){var a=o.lines[i];if(a==e)break;t+=a.height}for(var c=o.parent;c;o=c,c=o.parent)for(var h=0;h<c.children.length;++h){var g=c.children[h];if(g==o)break;t+=g.height}return t}function vs(e){if(e.height==0)return 0;for(var t=e.text.length,o,i=e;o=of(i);){var a=o.find(0,!0);i=a.from.line,t+=a.from.ch-a.to.ch}for(i=e;o=ps(i);){var c=o.find(0,!0);t-=i.text.length-c.from.ch,i=c.to.line,t+=i.text.length-c.to.ch}return t}function Ha(e){var t=e.display,o=e.doc;t.maxLine=Ne(o,o.first),t.maxLineLength=vs(t.maxLine),t.maxLineChanged=!0,o.iter(function(i){var a=vs(i);a>t.maxLineLength&&(t.maxLineLength=a,t.maxLine=i)})}var ni=function(e,t,o){this.text=e,rf(this,t),this.height=o?o(this):1};ni.prototype.lineNo=function(){return tt(this)},qt(ni);function ov(e,t,o,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),tf(e),rf(e,o);var a=i?i(e):1;a!=e.height&&_t(e,a)}function sv(e){e.parent=null,tf(e)}var av={},lv={};function lf(e,t){if(!e||/^\s*$/.test(e))return null;var o=t.addModeClass?lv:av;return o[e]||(o[e]=e.replace(/\S+/g,"cm-$&"))}function uf(e,t){var o=x("span",null,null,b?"padding-right: .1px":null),i={pre:x("pre",[o],"CodeMirror-line"),content:o,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var a=0;a<=(t.rest?t.rest.length:0);a++){var c=a?t.rest[a-1]:t.line,h=void 0;i.pos=0,i.addToken=fv,Pr(e.display.measure)&&(h=dt(c,e.doc.direction))&&(i.addToken=dv(i.addToken,h)),i.map=[];var g=t!=e.display.externalMeasured&&tt(c);hv(c,i,Xu(e,c,g)),c.styleClasses&&(c.styleClasses.bgClass&&(i.bgClass=de(c.styleClasses.bgClass,i.bgClass||"")),c.styleClasses.textClass&&(i.textClass=de(c.styleClasses.textClass,i.textClass||""))),i.map.length==0&&i.map.push(0,0,i.content.appendChild(as(e.display.measure))),a==0?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(b){var y=i.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=de(i.pre.className,i.textClass||"")),i}function uv(e){var t=O("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function fv(e,t,o,i,a,c,h){if(!!t){var g=e.splitSpaces?cv(t,e.trailingSpace):t,y=e.cm.state.specialChars,S=!1,E;if(!y.test(t))e.col+=t.length,E=document.createTextNode(g),e.map.push(e.pos,e.pos+t.length,E),p&&m<9&&(S=!0),e.pos+=t.length;else{E=document.createDocumentFragment();for(var N=0;;){y.lastIndex=N;var Y=y.exec(t),K=Y?Y.index-N:t.length-N;if(K){var re=document.createTextNode(g.slice(N,N+K));p&&m<9?E.appendChild(O("span",[re])):E.appendChild(re),e.map.push(e.pos,e.pos+K,re),e.col+=K,e.pos+=K}if(!Y)break;N+=K+1;var ce=void 0;if(Y[0]==" "){var xe=e.cm.options.tabSize,Te=xe-e.col%xe;ce=E.appendChild(O("span",j(Te),"cm-tab")),ce.setAttribute("role","presentation"),ce.setAttribute("cm-text"," "),e.col+=Te}else Y[0]=="\r"||Y[0]==`
8
+ `?(ce=E.appendChild(O("span",Y[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ce.setAttribute("cm-text",Y[0]),e.col+=1):(ce=e.cm.options.specialCharPlaceholder(Y[0]),ce.setAttribute("cm-text",Y[0]),p&&m<9?E.appendChild(O("span",[ce])):E.appendChild(ce),e.col+=1);e.map.push(e.pos,e.pos+1,ce),e.pos++}}if(e.trailingSpace=g.charCodeAt(t.length-1)==32,o||i||a||S||c||h){var Ee=o||"";i&&(Ee+=i),a&&(Ee+=a);var Pe=O("span",[E],Ee,c);if(h)for(var Ae in h)h.hasOwnProperty(Ae)&&Ae!="style"&&Ae!="class"&&Pe.setAttribute(Ae,h[Ae]);return e.content.appendChild(Pe)}e.content.appendChild(E)}}function cv(e,t){if(e.length>1&&!/ /.test(e))return e;for(var o=t,i="",a=0;a<e.length;a++){var c=e.charAt(a);c==" "&&o&&(a==e.length-1||e.charCodeAt(a+1)==32)&&(c="\xA0"),i+=c,o=c==" "}return i}function dv(e,t){return function(o,i,a,c,h,g,y){a=a?a+" cm-force-border":"cm-force-border";for(var S=o.pos,E=S+i.length;;){for(var N=void 0,Y=0;Y<t.length&&(N=t[Y],!(N.to>S&&N.from<=S));Y++);if(N.to>=E)return e(o,i,a,c,h,g,y);e(o,i.slice(0,N.to-S),a,c,null,g,y),c=null,i=i.slice(N.to-S),S=N.to}}}function ff(e,t,o,i){var a=!i&&o.widgetNode;a&&e.map.push(e.pos,e.pos+t,a),!i&&e.cm.display.input.needsContentAttribute&&(a||(a=e.content.appendChild(document.createElement("span"))),a.setAttribute("cm-marker",o.id)),a&&(e.cm.display.input.setUneditable(a),e.content.appendChild(a)),e.pos+=t,e.trailingSpace=!1}function hv(e,t,o){var i=e.markedSpans,a=e.text,c=0;if(!i){for(var h=1;h<o.length;h+=2)t.addToken(t,a.slice(c,c=o[h]),lf(o[h+1],t.cm.options));return}for(var g=a.length,y=0,S=1,E="",N,Y,K=0,re,ce,xe,Te,Ee;;){if(K==y){re=ce=xe=Y="",Ee=null,Te=null,K=1/0;for(var Pe=[],Ae=void 0,We=0;We<i.length;++We){var ze=i[We],Ze=ze.marker;if(Ze.type=="bookmark"&&ze.from==y&&Ze.widgetNode)Pe.push(Ze);else if(ze.from<=y&&(ze.to==null||ze.to>y||Ze.collapsed&&ze.to==y&&ze.from==y)){if(ze.to!=null&&ze.to!=y&&K>ze.to&&(K=ze.to,ce=""),Ze.className&&(re+=" "+Ze.className),Ze.css&&(Y=(Y?Y+";":"")+Ze.css),Ze.startStyle&&ze.from==y&&(xe+=" "+Ze.startStyle),Ze.endStyle&&ze.to==K&&(Ae||(Ae=[])).push(Ze.endStyle,ze.to),Ze.title&&((Ee||(Ee={})).title=Ze.title),Ze.attributes)for(var at in Ze.attributes)(Ee||(Ee={}))[at]=Ze.attributes[at];Ze.collapsed&&(!Te||Da(Te.marker,Ze)<0)&&(Te=ze)}else ze.from>y&&K>ze.from&&(K=ze.from)}if(Ae)for(var Mt=0;Mt<Ae.length;Mt+=2)Ae[Mt+1]==K&&(ce+=" "+Ae[Mt]);if(!Te||Te.from==y)for(var ht=0;ht<Pe.length;++ht)ff(t,0,Pe[ht]);if(Te&&(Te.from||0)==y){if(ff(t,(Te.to==null?g+1:Te.to)-y,Te.marker,Te.from==null),Te.to==null)return;Te.to==y&&(Te=!1)}}if(y>=g)break;for(var tr=Math.min(g,K);;){if(E){var Yt=y+E.length;if(!Te){var wt=Yt>tr?E.slice(0,tr-y):E;t.addToken(t,wt,N?N+re:re,xe,y+wt.length==K?ce:"",Y,Ee)}if(Yt>=tr){E=E.slice(tr-y),y=tr;break}y=Yt,xe=""}E=a.slice(c,c=o[S++]),N=lf(o[S++],t.cm.options)}}}function cf(e,t,o){this.line=t,this.rest=iv(t),this.size=this.rest?tt(X(this.rest))-o+1:1,this.node=this.text=null,this.hidden=en(e,t)}function gs(e,t,o){for(var i=[],a,c=t;c<o;c=a){var h=new cf(e.doc,Ne(e.doc,c),c);a=c+h.size,i.push(h)}return i}var ii=null;function pv(e){ii?ii.ops.push(e):e.ownsGroup=ii={ops:[e],delayedCallbacks:[]}}function vv(e){var t=e.delayedCallbacks,o=0;do{for(;o<t.length;o++)t[o].call(null);for(var i=0;i<e.ops.length;i++){var a=e.ops[i];if(a.cursorActivityHandlers)for(;a.cursorActivityCalled<a.cursorActivityHandlers.length;)a.cursorActivityHandlers[a.cursorActivityCalled++].call(null,a.cm)}}while(o<t.length)}function gv(e,t){var o=e.ownsGroup;if(!!o)try{vv(o)}finally{ii=null,t(o)}}var qi=null;function Ot(e,t){var o=Ye(e,t);if(!!o.length){var i=Array.prototype.slice.call(arguments,2),a;ii?a=ii.delayedCallbacks:qi?a=qi:(a=qi=[],setTimeout(mv,0));for(var c=function(g){a.push(function(){return o[g].apply(null,i)})},h=0;h<o.length;++h)c(h)}}function mv(){var e=qi;qi=null;for(var t=0;t<e.length;++t)e[t]()}function df(e,t,o,i){for(var a=0;a<t.changes.length;a++){var c=t.changes[a];c=="text"?bv(e,t):c=="gutter"?pf(e,t,o,i):c=="class"?Ba(e,t):c=="widget"&&xv(e,t,i)}t.changes=null}function _i(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),p&&m<8&&(e.node.style.zIndex=2)),e.node}function yv(e,t){var o=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(o&&(o+=" CodeMirror-linebackground"),t.background)o?t.background.className=o:(t.background.parentNode.removeChild(t.background),t.background=null);else if(o){var i=_i(t);t.background=i.insertBefore(O("div",null,o),i.firstChild),e.display.input.setUneditable(t.background)}}function hf(e,t){var o=e.display.externalMeasured;return o&&o.line==t.line?(e.display.externalMeasured=null,t.measure=o.measure,o.built):uf(e,t)}function bv(e,t){var o=t.text.className,i=hf(e,t);t.text==t.node&&(t.node=i.pre),t.text.parentNode.replaceChild(i.pre,t.text),t.text=i.pre,i.bgClass!=t.bgClass||i.textClass!=t.textClass?(t.bgClass=i.bgClass,t.textClass=i.textClass,Ba(e,t)):o&&(t.text.className=o)}function Ba(e,t){yv(e,t),t.line.wrapClass?_i(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var o=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=o||""}function pf(e,t,o,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var a=_i(t);t.gutterBackground=O("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),a.insertBefore(t.gutterBackground,t.text)}var c=t.line.gutterMarkers;if(e.options.lineNumbers||c){var h=_i(t),g=t.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(g.setAttribute("aria-hidden","true"),e.display.input.setUneditable(g),h.insertBefore(g,t.text),t.line.gutterClass&&(g.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!c||!c["CodeMirror-linenumbers"])&&(t.lineNumber=g.appendChild(O("div",Ji(e.options,o),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),c)for(var y=0;y<e.display.gutterSpecs.length;++y){var S=e.display.gutterSpecs[y].className,E=c.hasOwnProperty(S)&&c[S];E&&g.appendChild(O("div",[E],"CodeMirror-gutter-elt","left: "+i.gutterLeft[S]+"px; width: "+i.gutterWidth[S]+"px"))}}}function xv(e,t,o){t.alignable&&(t.alignable=null);for(var i=ie("CodeMirror-linewidget"),a=t.node.firstChild,c=void 0;a;a=c)c=a.nextSibling,i.test(a.className)&&t.node.removeChild(a);vf(e,t,o)}function wv(e,t,o,i){var a=hf(e,t);return t.text=t.node=a.pre,a.bgClass&&(t.bgClass=a.bgClass),a.textClass&&(t.textClass=a.textClass),Ba(e,t),pf(e,t,o,i),vf(e,t,i),t.node}function vf(e,t,o){if(gf(e,t.line,t,o,!0),t.rest)for(var i=0;i<t.rest.length;i++)gf(e,t.rest[i],t,o,!1)}function gf(e,t,o,i,a){if(!!t.widgets)for(var c=_i(o),h=0,g=t.widgets;h<g.length;++h){var y=g[h],S=O("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||S.setAttribute("cm-ignore-events","true"),Sv(y,S,o,i),e.display.input.setUneditable(S),a&&y.above?c.insertBefore(S,o.gutter||o.text):c.appendChild(S),Ot(y,"redraw")}}function Sv(e,t,o,i){if(e.noHScroll){(o.alignable||(o.alignable=[])).push(t);var a=i.wrapperWidth;t.style.left=i.fixedPos+"px",e.coverGutter||(a-=i.gutterTotalWidth,t.style.paddingLeft=i.gutterTotalWidth+"px"),t.style.width=a+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-i.gutterTotalWidth+"px"))}function eo(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!B(document.body,e.node)){var o="position: relative;";e.coverGutter&&(o+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(o+="width: "+t.display.wrapper.clientWidth+"px;"),k(t.display.measure,O("div",[e.node],null,o))}return e.height=e.node.parentNode.offsetHeight}function Ur(e,t){for(var o=qr(t);o!=e.wrapper;o=o.parentNode)if(!o||o.nodeType==1&&o.getAttribute("cm-ignore-events")=="true"||o.parentNode==e.sizer&&o!=e.mover)return!0}function ms(e){return e.lineSpace.offsetTop}function Wa(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function mf(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=k(e.measure,O("pre","x","CodeMirror-line-like")),o=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,i={left:parseInt(o.paddingLeft),right:parseInt(o.paddingRight)};return!isNaN(i.left)&&!isNaN(i.right)&&(e.cachedPaddingH=i),i}function Ar(e){return le-e.display.nativeBarWidth}function Mn(e){return e.display.scroller.clientWidth-Ar(e)-e.display.barWidth}function ja(e){return e.display.scroller.clientHeight-Ar(e)-e.display.barHeight}function Cv(e,t,o){var i=e.options.lineWrapping,a=i&&Mn(e);if(!t.measure.heights||i&&t.measure.width!=a){var c=t.measure.heights=[];if(i){t.measure.width=a;for(var h=t.text.firstChild.getClientRects(),g=0;g<h.length-1;g++){var y=h[g],S=h[g+1];Math.abs(y.bottom-S.bottom)>2&&c.push((y.bottom+S.top)/2-o.top)}}c.push(o.bottom-o.top)}}function yf(e,t,o){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var i=0;i<e.rest.length;i++)if(e.rest[i]==t)return{map:e.measure.maps[i],cache:e.measure.caches[i]};for(var a=0;a<e.rest.length;a++)if(tt(e.rest[a])>o)return{map:e.measure.maps[a],cache:e.measure.caches[a],before:!0}}}function Tv(e,t){t=Mr(t);var o=tt(t),i=e.display.externalMeasured=new cf(e.doc,t,o);i.lineN=o;var a=i.built=uf(e,i);return i.text=a.pre,k(e.display.lineMeasure,a.pre),i}function bf(e,t,o,i){return Lr(e,oi(e,t),o,i)}function Ka(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Nn(e,t)];var o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size)return o}function oi(e,t){var o=tt(t),i=Ka(e,o);i&&!i.text?i=null:i&&i.changes&&(df(e,i,o,Xa(e)),e.curOp.forceUpdate=!0),i||(i=Tv(e,t));var a=yf(i,t,o);return{line:t,view:i,rect:null,map:a.map,cache:a.cache,before:a.before,hasHeights:!1}}function Lr(e,t,o,i,a){t.before&&(o=-1);var c=o+(i||""),h;return t.cache.hasOwnProperty(c)?h=t.cache[c]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Cv(e,t.view,t.rect),t.hasHeights=!0),h=Ov(e,t,o,i),h.bogus||(t.cache[c]=h)),{left:h.left,right:h.right,top:a?h.rtop:h.top,bottom:a?h.rbottom:h.bottom}}var xf={left:0,right:0,top:0,bottom:0};function wf(e,t,o){for(var i,a,c,h,g,y,S=0;S<e.length;S+=3)if(g=e[S],y=e[S+1],t<g?(a=0,c=1,h="left"):t<y?(a=t-g,c=a+1):(S==e.length-3||t==y&&e[S+3]>t)&&(c=y-g,a=c-1,t>=y&&(h="right")),a!=null){if(i=e[S+2],g==y&&o==(i.insertLeft?"left":"right")&&(h=o),o=="left"&&a==0)for(;S&&e[S-2]==e[S-3]&&e[S-1].insertLeft;)i=e[(S-=3)+2],h="left";if(o=="right"&&a==y-g)for(;S<e.length-3&&e[S+3]==e[S+4]&&!e[S+5].insertLeft;)i=e[(S+=3)+2],h="right";break}return{node:i,start:a,end:c,collapse:h,coverStart:g,coverEnd:y}}function Pv(e,t){var o=xf;if(t=="left")for(var i=0;i<e.length&&(o=e[i]).left==o.right;i++);else for(var a=e.length-1;a>=0&&(o=e[a]).left==o.right;a--);return o}function Ov(e,t,o,i){var a=wf(t.map,o,i),c=a.node,h=a.start,g=a.end,y=a.collapse,S;if(c.nodeType==3){for(var E=0;E<4;E++){for(;h&&Se(t.line.text.charAt(a.coverStart+h));)--h;for(;a.coverStart+g<a.coverEnd&&Se(t.line.text.charAt(a.coverStart+g));)++g;if(p&&m<9&&h==0&&g==a.coverEnd-a.coverStart?S=c.parentNode.getBoundingClientRect():S=Pv(z(c,h,g).getClientRects(),i),S.left||S.right||h==0)break;g=h,h=h-1,y="right"}p&&m<11&&(S=kv(e.display.measure,S))}else{h>0&&(y=i="right");var N;e.options.lineWrapping&&(N=c.getClientRects()).length>1?S=N[i=="right"?N.length-1:0]:S=c.getBoundingClientRect()}if(p&&m<9&&!h&&(!S||!S.left&&!S.right)){var Y=c.parentNode.getClientRects()[0];Y?S={left:Y.left,right:Y.left+ai(e.display),top:Y.top,bottom:Y.bottom}:S=xf}for(var K=S.top-t.rect.top,re=S.bottom-t.rect.top,ce=(K+re)/2,xe=t.view.measure.heights,Te=0;Te<xe.length-1&&!(ce<xe[Te]);Te++);var Ee=Te?xe[Te-1]:0,Pe=xe[Te],Ae={left:(y=="right"?S.right:S.left)-t.rect.left,right:(y=="left"?S.left:S.right)-t.rect.left,top:Ee,bottom:Pe};return!S.left&&!S.right&&(Ae.bogus=!0),e.options.singleCursorHeightPerLine||(Ae.rtop=K,Ae.rbottom=re),Ae}function kv(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!_r(e))return t;var o=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*o,right:t.right*o,top:t.top*i,bottom:t.bottom*i}}function Sf(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Cf(e){e.display.externalMeasure=null,ee(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Sf(e.display.view[t])}function to(e){Cf(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Tf(){return C&&M?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Pf(){return C&&M?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ua(e){var t=0;if(e.widgets)for(var o=0;o<e.widgets.length;++o)e.widgets[o].above&&(t+=eo(e.widgets[o]));return t}function ys(e,t,o,i,a){if(!a){var c=Ua(t);o.top+=c,o.bottom+=c}if(i=="line")return o;i||(i="local");var h=Kr(t);if(i=="local"?h+=ms(e.display):h-=e.display.viewOffset,i=="page"||i=="window"){var g=e.display.lineSpace.getBoundingClientRect();h+=g.top+(i=="window"?0:Pf());var y=g.left+(i=="window"?0:Tf());o.left+=y,o.right+=y}return o.top+=h,o.bottom+=h,o}function Of(e,t,o){if(o=="div")return t;var i=t.left,a=t.top;if(o=="page")i-=Tf(),a-=Pf();else if(o=="local"||!o){var c=e.display.sizer.getBoundingClientRect();i+=c.left,a+=c.top}var h=e.display.lineSpace.getBoundingClientRect();return{left:i-h.left,top:a-h.top}}function bs(e,t,o,i,a){return i||(i=Ne(e.doc,t.line)),ys(e,i,bf(e,i,t.ch,a),o)}function br(e,t,o,i,a,c){i=i||Ne(e.doc,t.line),a||(a=oi(e,i));function h(re,ce){var xe=Lr(e,a,re,ce?"right":"left",c);return ce?xe.left=xe.right:xe.right=xe.left,ys(e,i,xe,o)}var g=dt(i,e.doc.direction),y=t.ch,S=t.sticky;if(y>=i.text.length?(y=i.text.length,S="before"):y<=0&&(y=0,S="after"),!g)return h(S=="before"?y-1:y,S=="before");function E(re,ce,xe){var Te=g[ce],Ee=Te.level==1;return h(xe?re-1:re,Ee!=xe)}var N=je(g,y,S),Y=Je,K=E(y,N,S=="before");return Y!=null&&(K.other=E(y,Y,S!="before")),K}function kf(e,t){var o=0;t=Me(e.doc,t),e.options.lineWrapping||(o=ai(e.display)*t.ch);var i=Ne(e.doc,t.line),a=Kr(i)+ms(e.display);return{left:o,right:o,top:a,bottom:a+i.height}}function Ga(e,t,o,i,a){var c=pe(e,t,o);return c.xRel=a,i&&(c.outside=i),c}function $a(e,t,o){var i=e.doc;if(o+=e.display.viewOffset,o<0)return Ga(i.first,0,null,-1,-1);var a=kr(i,o),c=i.first+i.size-1;if(a>c)return Ga(i.first+i.size-1,Ne(i,c).text.length,null,1,1);t<0&&(t=0);for(var h=Ne(i,a);;){var g=Ev(e,h,a,t,o),y=rv(h,g.ch+(g.xRel>0||g.outside>0?1:0));if(!y)return g;var S=y.find(1);if(S.line==a)return S;h=Ne(i,a=S.line)}}function Ef(e,t,o,i){i-=Ua(t);var a=t.text.length,c=Ge(function(h){return Lr(e,o,h-1).bottom<=i},a,0);return a=Ge(function(h){return Lr(e,o,h).top>i},c,a),{begin:c,end:a}}function Mf(e,t,o,i){o||(o=oi(e,t));var a=ys(e,t,Lr(e,o,i),"line").top;return Ef(e,t,o,a)}function Ya(e,t,o,i){return e.bottom<=o?!1:e.top>o?!0:(i?e.left:e.right)>t}function Ev(e,t,o,i,a){a-=Kr(t);var c=oi(e,t),h=Ua(t),g=0,y=t.text.length,S=!0,E=dt(t,e.doc.direction);if(E){var N=(e.options.lineWrapping?Av:Mv)(e,t,o,c,E,i,a);S=N.level!=1,g=S?N.from:N.to-1,y=S?N.to:N.from-1}var Y=null,K=null,re=Ge(function(We){var ze=Lr(e,c,We);return ze.top+=h,ze.bottom+=h,Ya(ze,i,a,!1)?(ze.top<=a&&ze.left<=i&&(Y=We,K=ze),!0):!1},g,y),ce,xe,Te=!1;if(K){var Ee=i-K.left<K.right-i,Pe=Ee==S;re=Y+(Pe?0:1),xe=Pe?"after":"before",ce=Ee?K.left:K.right}else{!S&&(re==y||re==g)&&re++,xe=re==0?"after":re==t.text.length?"before":Lr(e,c,re-(S?1:0)).bottom+h<=a==S?"after":"before";var Ae=br(e,pe(o,re,xe),"line",t,c);ce=Ae.left,Te=a<Ae.top?-1:a>=Ae.bottom?1:0}return re=De(t.text,re,1),Ga(o,re,xe,Te,i-ce)}function Mv(e,t,o,i,a,c,h){var g=Ge(function(N){var Y=a[N],K=Y.level!=1;return Ya(br(e,pe(o,K?Y.to:Y.from,K?"before":"after"),"line",t,i),c,h,!0)},0,a.length-1),y=a[g];if(g>0){var S=y.level!=1,E=br(e,pe(o,S?y.from:y.to,S?"after":"before"),"line",t,i);Ya(E,c,h,!0)&&E.top>h&&(y=a[g-1])}return y}function Av(e,t,o,i,a,c,h){var g=Ef(e,t,i,h),y=g.begin,S=g.end;/\s/.test(t.text.charAt(S-1))&&S--;for(var E=null,N=null,Y=0;Y<a.length;Y++){var K=a[Y];if(!(K.from>=S||K.to<=y)){var re=K.level!=1,ce=Lr(e,i,re?Math.min(S,K.to)-1:Math.max(y,K.from)).right,xe=ce<c?c-ce+1e9:ce-c;(!E||N>xe)&&(E=K,N=xe)}}return E||(E=a[a.length-1]),E.from<y&&(E={from:y,to:E.to,level:E.level}),E.to>S&&(E={from:E.from,to:S,level:E.level}),E}var An;function si(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(An==null){An=O("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)An.appendChild(document.createTextNode("x")),An.appendChild(O("br"));An.appendChild(document.createTextNode("x"))}k(e.measure,An);var o=An.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),ee(e.measure),o||1}function ai(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),o=O("pre",[t],"CodeMirror-line-like");k(e.measure,o);var i=t.getBoundingClientRect(),a=(i.right-i.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function Xa(e){for(var t=e.display,o={},i={},a=t.gutters.clientLeft,c=t.gutters.firstChild,h=0;c;c=c.nextSibling,++h){var g=e.display.gutterSpecs[h].className;o[g]=c.offsetLeft+c.clientLeft+a,i[g]=c.clientWidth}return{fixedPos:Va(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:o,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function Va(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Af(e){var t=si(e.display),o=e.options.lineWrapping,i=o&&Math.max(5,e.display.scroller.clientWidth/ai(e.display)-3);return function(a){if(en(e.doc,a))return 0;var c=0;if(a.widgets)for(var h=0;h<a.widgets.length;h++)a.widgets[h].height&&(c+=a.widgets[h].height);return o?c+(Math.ceil(a.text.length/i)||1)*t:c+t}}function Ja(e){var t=e.doc,o=Af(e);t.iter(function(i){var a=o(i);a!=i.height&&_t(i,a)})}function Ln(e,t,o,i){var a=e.display;if(!o&&qr(t).getAttribute("cm-not-content")=="true")return null;var c,h,g=a.lineSpace.getBoundingClientRect();try{c=t.clientX-g.left,h=t.clientY-g.top}catch{return null}var y=$a(e,c,h),S;if(i&&y.xRel>0&&(S=Ne(e.doc,y.line).text).length==y.ch){var E=$e(S,S.length,e.options.tabSize)-S.length;y=pe(y.line,Math.max(0,Math.round((c-mf(e.display).left)/ai(e.display))-E))}return y}function Nn(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var o=e.display.view,i=0;i<o.length;i++)if(t-=o[i].size,t<0)return i}function Gt(e,t,o,i){t==null&&(t=e.doc.first),o==null&&(o=e.doc.first+e.doc.size),i||(i=0);var a=e.display;if(i&&o<a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>t)&&(a.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=a.viewTo)jr&&Fa(e.doc,t)<a.viewTo&&rn(e);else if(o<=a.viewFrom)jr&&af(e.doc,o+i)>a.viewFrom?rn(e):(a.viewFrom+=i,a.viewTo+=i);else if(t<=a.viewFrom&&o>=a.viewTo)rn(e);else if(t<=a.viewFrom){var c=xs(e,o,o+i,1);c?(a.view=a.view.slice(c.index),a.viewFrom=c.lineN,a.viewTo+=i):rn(e)}else if(o>=a.viewTo){var h=xs(e,t,t,-1);h?(a.view=a.view.slice(0,h.index),a.viewTo=h.lineN):rn(e)}else{var g=xs(e,t,t,-1),y=xs(e,o,o+i,1);g&&y?(a.view=a.view.slice(0,g.index).concat(gs(e,g.lineN,y.lineN)).concat(a.view.slice(y.index)),a.viewTo+=i):rn(e)}var S=a.externalMeasured;S&&(o<S.lineN?S.lineN+=i:t<S.lineN+S.size&&(a.externalMeasured=null))}function tn(e,t,o){e.curOp.viewChanged=!0;var i=e.display,a=e.display.externalMeasured;if(a&&t>=a.lineN&&t<a.lineN+a.size&&(i.externalMeasured=null),!(t<i.viewFrom||t>=i.viewTo)){var c=i.view[Nn(e,t)];if(c.node!=null){var h=c.changes||(c.changes=[]);ae(h,o)==-1&&h.push(o)}}}function rn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function xs(e,t,o,i){var a=Nn(e,t),c,h=e.display.view;if(!jr||o==e.doc.first+e.doc.size)return{index:a,lineN:o};for(var g=e.display.viewFrom,y=0;y<a;y++)g+=h[y].size;if(g!=t){if(i>0){if(a==h.length-1)return null;c=g+h[a].size-t,a++}else c=g-t;t+=c,o+=c}for(;Fa(e.doc,o)!=o;){if(a==(i<0?0:h.length-1))return null;o+=i*h[a-(i<0?1:0)].size,a+=i}return{index:a,lineN:o}}function Lv(e,t,o){var i=e.display,a=i.view;a.length==0||t>=i.viewTo||o<=i.viewFrom?(i.view=gs(e,t,o),i.viewFrom=t):(i.viewFrom>t?i.view=gs(e,t,i.viewFrom).concat(i.view):i.viewFrom<t&&(i.view=i.view.slice(Nn(e,t))),i.viewFrom=t,i.viewTo<o?i.view=i.view.concat(gs(e,i.viewTo,o)):i.viewTo>o&&(i.view=i.view.slice(0,Nn(e,o)))),i.viewTo=o}function Lf(e){for(var t=e.display.view,o=0,i=0;i<t.length;i++){var a=t[i];!a.hidden&&(!a.node||a.changes)&&++o}return o}function ro(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Nf(e,t){t===void 0&&(t=!0);var o=e.doc,i={},a=i.cursors=document.createDocumentFragment(),c=i.selection=document.createDocumentFragment(),h=e.options.$customCursor;h&&(t=!0);for(var g=0;g<o.sel.ranges.length;g++)if(!(!t&&g==o.sel.primIndex)){var y=o.sel.ranges[g];if(!(y.from().line>=e.display.viewTo||y.to().line<e.display.viewFrom)){var S=y.empty();if(h){var E=h(e,y);E&&Za(e,E,a)}else(S||e.options.showCursorWhenSelecting)&&Za(e,y.head,a);S||Nv(e,y,c)}}return i}function Za(e,t,o){var i=br(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),a=o.appendChild(O("div","\xA0","CodeMirror-cursor"));if(a.style.left=i.left+"px",a.style.top=i.top+"px",a.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var c=bs(e,t,"div",null,null),h=c.right-c.left;a.style.width=(h>0?h:e.defaultCharWidth())+"px"}if(i.other){var g=o.appendChild(O("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));g.style.display="",g.style.left=i.other.left+"px",g.style.top=i.other.top+"px",g.style.height=(i.other.bottom-i.other.top)*.85+"px"}}function ws(e,t){return e.top-t.top||e.left-t.left}function Nv(e,t,o){var i=e.display,a=e.doc,c=document.createDocumentFragment(),h=mf(e.display),g=h.left,y=Math.max(i.sizerWidth,Mn(e)-i.sizer.offsetLeft)-h.right,S=a.direction=="ltr";function E(Pe,Ae,We,ze){Ae<0&&(Ae=0),Ae=Math.round(Ae),ze=Math.round(ze),c.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+Pe+`px;
9
+ top: `+Ae+"px; width: "+(We==null?y-Pe:We)+`px;
10
+ height: `+(ze-Ae)+"px"))}function N(Pe,Ae,We){var ze=Ne(a,Pe),Ze=ze.text.length,at,Mt;function ht(wt,Xt){return bs(e,pe(Pe,wt),"div",ze,Xt)}function tr(wt,Xt,It){var Tt=Mf(e,ze,null,wt),St=Xt=="ltr"==(It=="after")?"left":"right",vt=It=="after"?Tt.begin:Tt.end-(/\s/.test(ze.text.charAt(Tt.end-1))?2:1);return ht(vt,St)[St]}var Yt=dt(ze,a.direction);return it(Yt,Ae||0,We==null?Ze:We,function(wt,Xt,It,Tt){var St=It=="ltr",vt=ht(wt,St?"left":"right"),Vt=ht(Xt-1,St?"right":"left"),xi=Ae==null&&wt==0,un=We==null&&Xt==Ze,Ft=Tt==0,Nr=!Yt||Tt==Yt.length-1;if(Vt.top-vt.top<=3){var At=(S?xi:un)&&Ft,Sl=(S?un:xi)&&Nr,Yr=At?g:(St?vt:Vt).left,zn=Sl?y:(St?Vt:vt).right;E(Yr,vt.top,zn-Yr,vt.bottom)}else{var Hn,Kt,wi,Cl;St?(Hn=S&&xi&&Ft?g:vt.left,Kt=S?y:tr(wt,It,"before"),wi=S?g:tr(Xt,It,"after"),Cl=S&&un&&Nr?y:Vt.right):(Hn=S?tr(wt,It,"before"):g,Kt=!S&&xi&&Ft?y:vt.right,wi=!S&&un&&Nr?g:Vt.left,Cl=S?tr(Xt,It,"after"):y),E(Hn,vt.top,Kt-Hn,vt.bottom),vt.bottom<Vt.top&&E(g,vt.bottom,null,Vt.top),E(wi,Vt.top,Cl-wi,Vt.bottom)}(!at||ws(vt,at)<0)&&(at=vt),ws(Vt,at)<0&&(at=Vt),(!Mt||ws(vt,Mt)<0)&&(Mt=vt),ws(Vt,Mt)<0&&(Mt=Vt)}),{start:at,end:Mt}}var Y=t.from(),K=t.to();if(Y.line==K.line)N(Y.line,Y.ch,K.ch);else{var re=Ne(a,Y.line),ce=Ne(a,K.line),xe=Mr(re)==Mr(ce),Te=N(Y.line,Y.ch,xe?re.text.length+1:null).end,Ee=N(K.line,xe?0:null,K.ch).start;xe&&(Te.top<Ee.top-2?(E(Te.right,Te.top,null,Te.bottom),E(g,Ee.top,Ee.left,Ee.bottom)):E(Te.right,Te.top,Ee.left-Te.right,Te.bottom)),Te.bottom<Ee.top&&E(g,Te.bottom,null,Ee.top)}o.appendChild(c)}function Qa(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var o=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||li(e),t.cursorDiv.style.visibility=(o=!o)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function If(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||_a(e))}function qa(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&li(e))},100)}function _a(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,se(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),b&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Qa(e))}function li(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,Q(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ss(e){for(var t=e.display,o=t.lineDiv.offsetTop,i=Math.max(0,t.scroller.getBoundingClientRect().top),a=t.lineDiv.getBoundingClientRect().top,c=0,h=0;h<t.view.length;h++){var g=t.view[h],y=e.options.lineWrapping,S=void 0,E=0;if(!g.hidden){if(a+=g.line.height,p&&m<8){var N=g.node.offsetTop+g.node.offsetHeight;S=N-o,o=N}else{var Y=g.node.getBoundingClientRect();S=Y.bottom-Y.top,!y&&g.text.firstChild&&(E=g.text.firstChild.getBoundingClientRect().right-Y.left-1)}var K=g.line.height-S;if((K>.005||K<-.005)&&(a<i&&(c-=K),_t(g.line,S),Rf(g.line),g.rest))for(var re=0;re<g.rest.length;re++)Rf(g.rest[re]);if(E>e.display.sizerWidth){var ce=Math.ceil(E/ai(e.display));ce>e.display.maxLineLength&&(e.display.maxLineLength=ce,e.display.maxLine=g.line,e.display.maxLineChanged=!0)}}}Math.abs(c)>2&&(t.scroller.scrollTop+=c)}function Rf(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var o=e.widgets[t],i=o.node.parentNode;i&&(o.height=i.offsetHeight)}}function Cs(e,t,o){var i=o&&o.top!=null?Math.max(0,o.top):e.scroller.scrollTop;i=Math.floor(i-ms(e));var a=o&&o.bottom!=null?o.bottom:i+e.wrapper.clientHeight,c=kr(t,i),h=kr(t,a);if(o&&o.ensure){var g=o.ensure.from.line,y=o.ensure.to.line;g<c?(c=g,h=kr(t,Kr(Ne(t,g))+e.wrapper.clientHeight)):Math.min(y,t.lastLine())>=h&&(c=kr(t,Kr(Ne(t,y))-e.wrapper.clientHeight),h=y)}return{from:c,to:Math.max(h,c+1)}}function Iv(e,t){if(!Be(e,"scrollCursorIntoView")){var o=e.display,i=o.sizer.getBoundingClientRect(),a=null;if(t.top+i.top<0?a=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(a=!1),a!=null&&!F){var c=O("div","\u200B",null,`position: absolute;
11
+ top: `+(t.top-o.viewOffset-ms(e.display))+`px;
12
+ height: `+(t.bottom-t.top+Ar(e)+o.barHeight)+`px;
13
+ left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(c),c.scrollIntoView(a),e.display.lineSpace.removeChild(c)}}}function Rv(e,t,o,i){i==null&&(i=0);var a;!e.options.lineWrapping&&t==o&&(o=t.sticky=="before"?pe(t.line,t.ch+1,"before"):t,t=t.ch?pe(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var c=0;c<5;c++){var h=!1,g=br(e,t),y=!o||o==t?g:br(e,o);a={left:Math.min(g.left,y.left),top:Math.min(g.top,y.top)-i,right:Math.max(g.left,y.left),bottom:Math.max(g.bottom,y.bottom)+i};var S=el(e,a),E=e.doc.scrollTop,N=e.doc.scrollLeft;if(S.scrollTop!=null&&(io(e,S.scrollTop),Math.abs(e.doc.scrollTop-E)>1&&(h=!0)),S.scrollLeft!=null&&(In(e,S.scrollLeft),Math.abs(e.doc.scrollLeft-N)>1&&(h=!0)),!h)break}return a}function Dv(e,t){var o=el(e,t);o.scrollTop!=null&&io(e,o.scrollTop),o.scrollLeft!=null&&In(e,o.scrollLeft)}function el(e,t){var o=e.display,i=si(e.display);t.top<0&&(t.top=0);var a=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:o.scroller.scrollTop,c=ja(e),h={};t.bottom-t.top>c&&(t.bottom=t.top+c);var g=e.doc.height+Wa(o),y=t.top<i,S=t.bottom>g-i;if(t.top<a)h.scrollTop=y?0:t.top;else if(t.bottom>a+c){var E=Math.min(t.top,(S?g:t.bottom)-c);E!=a&&(h.scrollTop=E)}var N=e.options.fixedGutter?0:o.gutters.offsetWidth,Y=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:o.scroller.scrollLeft-N,K=Mn(e)-o.gutters.offsetWidth,re=t.right-t.left>K;return re&&(t.right=t.left+K),t.left<10?h.scrollLeft=0:t.left<Y?h.scrollLeft=Math.max(0,t.left+N-(re?0:10)):t.right>K+Y-3&&(h.scrollLeft=t.right+(re?0:10)-K),h}function tl(e,t){t!=null&&(Ts(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ui(e){Ts(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function no(e,t,o){(t!=null||o!=null)&&Ts(e),t!=null&&(e.curOp.scrollLeft=t),o!=null&&(e.curOp.scrollTop=o)}function Fv(e,t){Ts(e),e.curOp.scrollToPos=t}function Ts(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var o=kf(e,t.from),i=kf(e,t.to);Df(e,o,i,t.margin)}}function Df(e,t,o,i){var a=el(e,{left:Math.min(t.left,o.left),top:Math.min(t.top,o.top)-i,right:Math.max(t.right,o.right),bottom:Math.max(t.bottom,o.bottom)+i});no(e,a.scrollLeft,a.scrollTop)}function io(e,t){Math.abs(e.doc.scrollTop-t)<2||(u||nl(e,{top:t}),Ff(e,t,!0),u&&nl(e),ao(e,100))}function Ff(e,t,o){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!o)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function In(e,t,o,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((o?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i)&&(e.doc.scrollLeft=t,jf(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function oo(e){var t=e.display,o=t.gutters.offsetWidth,i=Math.round(e.doc.height+Wa(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?o:0,docHeight:i,scrollHeight:i+Ar(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:o}}var Rn=function(e,t,o){this.cm=o;var i=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),a=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=a.tabIndex=-1,e(i),e(a),Fe(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),Fe(a,"scroll",function(){a.clientWidth&&t(a.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Rn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,o=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(o){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var a=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+a)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=o?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var c=e.viewWidth-e.barLeft-(o?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+c)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(i==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:o?i:0,bottom:t?i:0}},Rn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Rn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Rn.prototype.zeroWidthHack=function(){var e=H&&!G?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ne,this.disableVert=new ne},Rn.prototype.enableZeroWidthBar=function(e,t,o){e.style.pointerEvents="auto";function i(){var a=e.getBoundingClientRect(),c=o=="vert"?document.elementFromPoint(a.right-1,(a.top+a.bottom)/2):document.elementFromPoint((a.right+a.left)/2,a.bottom-1);c!=e?e.style.pointerEvents="none":t.set(1e3,i)}t.set(1e3,i)},Rn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var so=function(){};so.prototype.update=function(){return{bottom:0,right:0}},so.prototype.setScrollLeft=function(){},so.prototype.setScrollTop=function(){},so.prototype.clear=function(){};function fi(e,t){t||(t=oo(e));var o=e.display.barWidth,i=e.display.barHeight;zf(e,t);for(var a=0;a<4&&o!=e.display.barWidth||i!=e.display.barHeight;a++)o!=e.display.barWidth&&e.options.lineWrapping&&Ss(e),zf(e,oo(e)),o=e.display.barWidth,i=e.display.barHeight}function zf(e,t){var o=e.display,i=o.scrollbars.update(t);o.sizer.style.paddingRight=(o.barWidth=i.right)+"px",o.sizer.style.paddingBottom=(o.barHeight=i.bottom)+"px",o.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(o.scrollbarFiller.style.display="block",o.scrollbarFiller.style.height=i.bottom+"px",o.scrollbarFiller.style.width=i.right+"px"):o.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(o.gutterFiller.style.display="block",o.gutterFiller.style.height=i.bottom+"px",o.gutterFiller.style.width=t.gutterWidth+"px"):o.gutterFiller.style.display=""}var Hf={native:Rn,null:so};function Bf(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Q(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Hf[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Fe(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,o){o=="horizontal"?In(e,t):io(e,t)},e),e.display.scrollbars.addClass&&se(e.display.wrapper,e.display.scrollbars.addClass)}var zv=0;function Dn(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:++zv,markArrays:null},pv(e.curOp)}function Fn(e){var t=e.curOp;t&&gv(t,function(o){for(var i=0;i<o.ops.length;i++)o.ops[i].cm.curOp=null;Hv(o)})}function Hv(e){for(var t=e.ops,o=0;o<t.length;o++)Bv(t[o]);for(var i=0;i<t.length;i++)Wv(t[i]);for(var a=0;a<t.length;a++)jv(t[a]);for(var c=0;c<t.length;c++)Kv(t[c]);for(var h=0;h<t.length;h++)Uv(t[h])}function Bv(e){var t=e.cm,o=t.display;$v(t),e.updateMaxLine&&Ha(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<o.viewFrom||e.scrollToPos.to.line>=o.viewTo)||o.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ps(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Wv(e){e.updatedDisplay=e.mustUpdate&&rl(e.cm,e.update)}function jv(e){var t=e.cm,o=t.display;e.updatedDisplay&&Ss(t),e.barMeasure=oo(t),o.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=bf(t,o.maxLine,o.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(o.scroller.clientWidth,o.sizer.offsetLeft+e.adjustWidthTo+Ar(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,o.sizer.offsetLeft+e.adjustWidthTo-Mn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=o.input.prepareSelection())}function Kv(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&In(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var o=e.focus&&e.focus==$();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,o),(e.updatedDisplay||e.startHeight!=t.doc.height)&&fi(t,e.barMeasure),e.updatedDisplay&&ol(t,e.barMeasure),e.selectionChanged&&Qa(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),o&&If(e.cm)}function Uv(e){var t=e.cm,o=t.display,i=t.doc;if(e.updatedDisplay&&Wf(t,e.update),o.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(o.wheelStartX=o.wheelStartY=null),e.scrollTop!=null&&Ff(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&In(t,e.scrollLeft,!0,!0),e.scrollToPos){var a=Rv(t,Me(i,e.scrollToPos.from),Me(i,e.scrollToPos.to),e.scrollToPos.margin);Iv(t,a)}var c=e.maybeHiddenMarkers,h=e.maybeUnhiddenMarkers;if(c)for(var g=0;g<c.length;++g)c[g].lines.length||ve(c[g],"hide");if(h)for(var y=0;y<h.length;++y)h[y].lines.length&&ve(h[y],"unhide");o.wrapper.offsetHeight&&(i.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ve(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function er(e,t){if(e.curOp)return t();Dn(e);try{return t()}finally{Fn(e)}}function kt(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Dn(e);try{return t.apply(e,arguments)}finally{Fn(e)}}}function jt(e){return function(){if(this.curOp)return e.apply(this,arguments);Dn(this);try{return e.apply(this,arguments)}finally{Fn(this)}}}function Et(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Dn(t);try{return e.apply(this,arguments)}finally{Fn(t)}}}function ao(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,Ve(Gv,e))}function Gv(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var o=+new Date+e.options.workTime,i=Zi(e,t.highlightFrontier),a=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),function(c){if(i.line>=e.display.viewFrom){var h=c.styles,g=c.text.length>e.options.maxHighlightLength?or(t.mode,i.state):null,y=Yu(e,c,i,!0);g&&(i.state=g),c.styles=y.styles;var S=c.styleClasses,E=y.classes;E?c.styleClasses=E:S&&(c.styleClasses=null);for(var N=!h||h.length!=c.styles.length||S!=E&&(!S||!E||S.bgClass!=E.bgClass||S.textClass!=E.textClass),Y=0;!N&&Y<h.length;++Y)N=h[Y]!=c.styles[Y];N&&a.push(i.line),c.stateAfter=i.save(),i.nextLine()}else c.text.length<=e.options.maxHighlightLength&&Na(e,c.text,i),c.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>o)return ao(e,e.options.workDelay),!0}),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),a.length&&er(e,function(){for(var c=0;c<a.length;c++)tn(e,a[c],"text")})}}var Ps=function(e,t,o){var i=e.display;this.viewport=t,this.visible=Cs(i,e.doc,t),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Mn(e),this.force=o,this.dims=Xa(e),this.events=[]};Ps.prototype.signal=function(e,t){et(e,t)&&this.events.push(arguments)},Ps.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ve.apply(null,this.events[e])};function $v(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Ar(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Ar(e)+"px",t.scrollbarsClipped=!0)}function Yv(e){if(e.hasFocus())return null;var t=$();if(!t||!B(e.display.lineDiv,t))return null;var o={activeElt:t};if(window.getSelection){var i=window.getSelection();i.anchorNode&&i.extend&&B(e.display.lineDiv,i.anchorNode)&&(o.anchorNode=i.anchorNode,o.anchorOffset=i.anchorOffset,o.focusNode=i.focusNode,o.focusOffset=i.focusOffset)}return o}function Xv(e){if(!(!e||!e.activeElt||e.activeElt==$())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&B(document.body,e.anchorNode)&&B(document.body,e.focusNode))){var t=window.getSelection(),o=document.createRange();o.setEnd(e.anchorNode,e.anchorOffset),o.collapse(!1),t.removeAllRanges(),t.addRange(o),t.extend(e.focusNode,e.focusOffset)}}function rl(e,t){var o=e.display,i=e.doc;if(t.editorIsHidden)return rn(e),!1;if(!t.force&&t.visible.from>=o.viewFrom&&t.visible.to<=o.viewTo&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo)&&o.renderedView==o.view&&Lf(e)==0)return!1;Kf(e)&&(rn(e),t.dims=Xa(e));var a=i.first+i.size,c=Math.max(t.visible.from-e.options.viewportMargin,i.first),h=Math.min(a,t.visible.to+e.options.viewportMargin);o.viewFrom<c&&c-o.viewFrom<20&&(c=Math.max(i.first,o.viewFrom)),o.viewTo>h&&o.viewTo-h<20&&(h=Math.min(a,o.viewTo)),jr&&(c=Fa(e.doc,c),h=af(e.doc,h));var g=c!=o.viewFrom||h!=o.viewTo||o.lastWrapHeight!=t.wrapperHeight||o.lastWrapWidth!=t.wrapperWidth;Lv(e,c,h),o.viewOffset=Kr(Ne(e.doc,o.viewFrom)),e.display.mover.style.top=o.viewOffset+"px";var y=Lf(e);if(!g&&y==0&&!t.force&&o.renderedView==o.view&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo))return!1;var S=Yv(e);return y>4&&(o.lineDiv.style.display="none"),Vv(e,o.updateLineNumbers,t.dims),y>4&&(o.lineDiv.style.display=""),o.renderedView=o.view,Xv(S),ee(o.cursorDiv),ee(o.selectionDiv),o.gutters.style.height=o.sizer.style.minHeight=0,g&&(o.lastWrapHeight=t.wrapperHeight,o.lastWrapWidth=t.wrapperWidth,ao(e,400)),o.updateLineNumbers=null,!0}function Wf(e,t){for(var o=t.viewport,i=!0;;i=!1){if(!i||!e.options.lineWrapping||t.oldDisplayWidth==Mn(e)){if(o&&o.top!=null&&(o={top:Math.min(e.doc.height+Wa(e.display)-ja(e),o.top)}),t.visible=Cs(e.display,e.doc,o),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else i&&(t.visible=Cs(e.display,e.doc,o));if(!rl(e,t))break;Ss(e);var a=oo(e);ro(e),fi(e,a),ol(e,a),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function nl(e,t){var o=new Ps(e,t);if(rl(e,o)){Ss(e),Wf(e,o);var i=oo(e);ro(e),fi(e,i),ol(e,i),o.finish()}}function Vv(e,t,o){var i=e.display,a=e.options.lineNumbers,c=i.lineDiv,h=c.firstChild;function g(re){var ce=re.nextSibling;return b&&H&&e.display.currentWheelTarget==re?re.style.display="none":re.parentNode.removeChild(re),ce}for(var y=i.view,S=i.viewFrom,E=0;E<y.length;E++){var N=y[E];if(!N.hidden)if(!N.node||N.node.parentNode!=c){var Y=wv(e,N,S,o);c.insertBefore(Y,h)}else{for(;h!=N.node;)h=g(h);var K=a&&t!=null&&t<=S&&N.lineNumber;N.changes&&(ae(N.changes,"gutter")>-1&&(K=!1),df(e,N,S,o)),K&&(ee(N.lineNumber),N.lineNumber.appendChild(document.createTextNode(Ji(e.options,S)))),h=N.node.nextSibling}S+=N.size}for(;h;)h=g(h)}function il(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Ot(e,"gutterChanged",e)}function ol(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Ar(e)+"px"}function jf(e){var t=e.display,o=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var i=Va(t)-t.scroller.scrollLeft+e.doc.scrollLeft,a=t.gutters.offsetWidth,c=i+"px",h=0;h<o.length;h++)if(!o[h].hidden){e.options.fixedGutter&&(o[h].gutter&&(o[h].gutter.style.left=c),o[h].gutterBackground&&(o[h].gutterBackground.style.left=c));var g=o[h].alignable;if(g)for(var y=0;y<g.length;y++)g[y].style.left=c}e.options.fixedGutter&&(t.gutters.style.left=i+a+"px")}}function Kf(e){if(!e.options.lineNumbers)return!1;var t=e.doc,o=Ji(e.options,t.first+t.size-1),i=e.display;if(o.length!=i.lineNumChars){var a=i.measure.appendChild(O("div",[O("div",o)],"CodeMirror-linenumber CodeMirror-gutter-elt")),c=a.firstChild.offsetWidth,h=a.offsetWidth-c;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(c,i.lineGutter.offsetWidth-h)+1,i.lineNumWidth=i.lineNumInnerWidth+h,i.lineNumChars=i.lineNumInnerWidth?o.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",il(e.display),!0}return!1}function sl(e,t){for(var o=[],i=!1,a=0;a<e.length;a++){var c=e[a],h=null;if(typeof c!="string"&&(h=c.style,c=c.className),c=="CodeMirror-linenumbers")if(t)i=!0;else continue;o.push({className:c,style:h})}return t&&!i&&o.push({className:"CodeMirror-linenumbers",style:null}),o}function Uf(e){var t=e.gutters,o=e.gutterSpecs;ee(t),e.lineGutter=null;for(var i=0;i<o.length;++i){var a=o[i],c=a.className,h=a.style,g=t.appendChild(O("div",null,"CodeMirror-gutter "+c));h&&(g.style.cssText=h),c=="CodeMirror-linenumbers"&&(e.lineGutter=g,g.style.width=(e.lineNumWidth||1)+"px")}t.style.display=o.length?"":"none",il(e)}function lo(e){Uf(e.display),Gt(e),jf(e)}function Jv(e,t,o,i){var a=this;this.input=o,a.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),a.scrollbarFiller.setAttribute("cm-not-content","true"),a.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),a.gutterFiller.setAttribute("cm-not-content","true"),a.lineDiv=x("div",null,"CodeMirror-code"),a.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),a.cursorDiv=O("div",null,"CodeMirror-cursors"),a.measure=O("div",null,"CodeMirror-measure"),a.lineMeasure=O("div",null,"CodeMirror-measure"),a.lineSpace=x("div",[a.measure,a.lineMeasure,a.selectionDiv,a.cursorDiv,a.lineDiv],null,"position: relative; outline: none");var c=x("div",[a.lineSpace],"CodeMirror-lines");a.mover=O("div",[c],null,"position: relative"),a.sizer=O("div",[a.mover],"CodeMirror-sizer"),a.sizerWidth=null,a.heightForcer=O("div",null,null,"position: absolute; height: "+le+"px; width: 1px;"),a.gutters=O("div",null,"CodeMirror-gutters"),a.lineGutter=null,a.scroller=O("div",[a.sizer,a.heightForcer,a.gutters],"CodeMirror-scroll"),a.scroller.setAttribute("tabIndex","-1"),a.wrapper=O("div",[a.scrollbarFiller,a.gutterFiller,a.scroller],"CodeMirror"),a.wrapper.setAttribute("translate","no"),p&&m<8&&(a.gutters.style.zIndex=-1,a.scroller.style.paddingRight=0),!b&&!(u&&I)&&(a.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(a.wrapper):e(a.wrapper)),a.viewFrom=a.viewTo=t.first,a.reportedViewFrom=a.reportedViewTo=t.first,a.view=[],a.renderedView=null,a.externalMeasured=null,a.viewOffset=0,a.lastWrapHeight=a.lastWrapWidth=0,a.updateLineNumbers=null,a.nativeBarWidth=a.barHeight=a.barWidth=0,a.scrollbarsClipped=!1,a.lineNumWidth=a.lineNumInnerWidth=a.lineNumChars=null,a.alignWidgets=!1,a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.maxLine=null,a.maxLineLength=0,a.maxLineChanged=!1,a.wheelDX=a.wheelDY=a.wheelStartX=a.wheelStartY=null,a.shift=!1,a.selForContextMenu=null,a.activeTouch=null,a.gutterSpecs=sl(i.gutters,i.lineNumbers),Uf(a),o.init(a)}var Os=0,Gr=null;p?Gr=-.53:u?Gr=15:C?Gr=-.7:A&&(Gr=-1/3);function Gf(e){var t=e.wheelDeltaX,o=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),o==null&&e.detail&&e.axis==e.VERTICAL_AXIS?o=e.detail:o==null&&(o=e.wheelDelta),{x:t,y:o}}function Zv(e){var t=Gf(e);return t.x*=Gr,t.y*=Gr,t}function $f(e,t){var o=Gf(t),i=o.x,a=o.y,c=Gr;t.deltaMode===0&&(i=t.deltaX,a=t.deltaY,c=1);var h=e.display,g=h.scroller,y=g.scrollWidth>g.clientWidth,S=g.scrollHeight>g.clientHeight;if(!!(i&&y||a&&S)){if(a&&H&&b){e:for(var E=t.target,N=h.view;E!=g;E=E.parentNode)for(var Y=0;Y<N.length;Y++)if(N[Y].node==E){e.display.currentWheelTarget=E;break e}}if(i&&!u&&!P&&c!=null){a&&S&&io(e,Math.max(0,g.scrollTop+a*c)),In(e,Math.max(0,g.scrollLeft+i*c)),(!a||a&&S)&&Pt(t),h.wheelStartX=null;return}if(a&&c!=null){var K=a*c,re=e.doc.scrollTop,ce=re+h.wrapper.clientHeight;K<0?re=Math.max(0,re+K-50):ce=Math.min(e.doc.height,ce+K+50),nl(e,{top:re,bottom:ce})}Os<20&&t.deltaMode!==0&&(h.wheelStartX==null?(h.wheelStartX=g.scrollLeft,h.wheelStartY=g.scrollTop,h.wheelDX=i,h.wheelDY=a,setTimeout(function(){if(h.wheelStartX!=null){var xe=g.scrollLeft-h.wheelStartX,Te=g.scrollTop-h.wheelStartY,Ee=Te&&h.wheelDY&&Te/h.wheelDY||xe&&h.wheelDX&&xe/h.wheelDX;h.wheelStartX=h.wheelStartY=null,!!Ee&&(Gr=(Gr*Os+Ee)/(Os+1),++Os)}},200)):(h.wheelDX+=i,h.wheelDY+=a))}}var ar=function(e,t){this.ranges=e,this.primIndex=t};ar.prototype.primary=function(){return this.ranges[this.primIndex]},ar.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var o=this.ranges[t],i=e.ranges[t];if(!D(o.anchor,i.anchor)||!D(o.head,i.head))return!1}return!0},ar.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new rt(fe(this.ranges[t].anchor),fe(this.ranges[t].head));return new ar(e,this.primIndex)},ar.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},ar.prototype.contains=function(e,t){t||(t=e);for(var o=0;o<this.ranges.length;o++){var i=this.ranges[o];if(T(t,i.from())>=0&&T(e,i.to())<=0)return o}return-1};var rt=function(e,t){this.anchor=e,this.head=t};rt.prototype.from=function(){return Ue(this.anchor,this.head)},rt.prototype.to=function(){return ye(this.anchor,this.head)},rt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function xr(e,t,o){var i=e&&e.options.selectionsMayTouch,a=t[o];t.sort(function(Y,K){return T(Y.from(),K.from())}),o=ae(t,a);for(var c=1;c<t.length;c++){var h=t[c],g=t[c-1],y=T(g.to(),h.from());if(i&&!h.empty()?y>0:y>=0){var S=Ue(g.from(),h.from()),E=ye(g.to(),h.to()),N=g.empty()?h.from()==h.head:g.from()==g.head;c<=o&&--o,t.splice(--c,2,new rt(N?E:S,N?S:E))}}return new ar(t,o)}function nn(e,t){return new ar([new rt(e,t||e)],0)}function on(e){return e.text?pe(e.from.line+e.text.length-1,X(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Yf(e,t){if(T(e,t.from)<0)return e;if(T(e,t.to)<=0)return on(t);var o=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=on(t).ch-t.to.ch),pe(o,i)}function al(e,t){for(var o=[],i=0;i<e.sel.ranges.length;i++){var a=e.sel.ranges[i];o.push(new rt(Yf(a.anchor,t),Yf(a.head,t)))}return xr(e.cm,o,e.sel.primIndex)}function Xf(e,t,o){return e.line==t.line?pe(o.line,e.ch-t.ch+o.ch):pe(o.line+(e.line-t.line),e.ch)}function Qv(e,t,o){for(var i=[],a=pe(e.first,0),c=a,h=0;h<t.length;h++){var g=t[h],y=Xf(g.from,a,c),S=Xf(on(g),a,c);if(a=g.to,c=S,o=="around"){var E=e.sel.ranges[h],N=T(E.head,E.anchor)<0;i[h]=new rt(N?S:y,N?y:S)}else i[h]=new rt(y,y)}return new ar(i,e.sel.primIndex)}function ll(e){e.doc.mode=ti(e.options,e.doc.modeOption),uo(e)}function uo(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ao(e,100),e.state.modeGen++,e.curOp&&Gt(e)}function Vf(e,t){return t.from.ch==0&&t.to.ch==0&&X(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ul(e,t,o,i){function a(Ee){return o?o[Ee]:null}function c(Ee,Pe,Ae){ov(Ee,Pe,Ae,i),Ot(Ee,"change",Ee,t)}function h(Ee,Pe){for(var Ae=[],We=Ee;We<Pe;++We)Ae.push(new ni(S[We],a(We),i));return Ae}var g=t.from,y=t.to,S=t.text,E=Ne(e,g.line),N=Ne(e,y.line),Y=X(S),K=a(S.length-1),re=y.line-g.line;if(t.full)e.insert(0,h(0,S.length)),e.remove(S.length,e.size-S.length);else if(Vf(e,t)){var ce=h(0,S.length-1);c(N,N.text,K),re&&e.remove(g.line,re),ce.length&&e.insert(g.line,ce)}else if(E==N)if(S.length==1)c(E,E.text.slice(0,g.ch)+Y+E.text.slice(y.ch),K);else{var xe=h(1,S.length-1);xe.push(new ni(Y+E.text.slice(y.ch),K,i)),c(E,E.text.slice(0,g.ch)+S[0],a(0)),e.insert(g.line+1,xe)}else if(S.length==1)c(E,E.text.slice(0,g.ch)+S[0]+N.text.slice(y.ch),a(0)),e.remove(g.line+1,re);else{c(E,E.text.slice(0,g.ch)+S[0],a(0)),c(N,Y+N.text.slice(y.ch),K);var Te=h(1,S.length-1);re>1&&e.remove(g.line+1,re-1),e.insert(g.line+1,Te)}Ot(e,"change",e,t)}function sn(e,t,o){function i(a,c,h){if(a.linked)for(var g=0;g<a.linked.length;++g){var y=a.linked[g];if(y.doc!=c){var S=h&&y.sharedHist;o&&!S||(t(y.doc,S),i(y.doc,a,S))}}}i(e,null,!0)}function Jf(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Ja(e),ll(e),Zf(e),e.options.direction=t.direction,e.options.lineWrapping||Ha(e),e.options.mode=t.modeOption,Gt(e)}function Zf(e){(e.doc.direction=="rtl"?se:Q)(e.display.lineDiv,"CodeMirror-rtl")}function qv(e){er(e,function(){Zf(e),Gt(e)})}function ks(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 fl(e,t){var o={from:fe(t.from),to:on(t),text:Or(e,t.from,t.to)};return _f(e,o,t.from.line,t.to.line+1),sn(e,function(i){return _f(i,o,t.from.line,t.to.line+1)},!0),o}function Qf(e){for(;e.length;){var t=X(e);if(t.ranges)e.pop();else break}}function _v(e,t){if(t)return Qf(e.done),X(e.done);if(e.done.length&&!X(e.done).ranges)return X(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),X(e.done)}function qf(e,t,o,i){var a=e.history;a.undone.length=0;var c=+new Date,h,g;if((a.lastOp==i||a.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&a.lastModTime>c-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(h=_v(a,a.lastOp==i)))g=X(h.changes),T(t.from,t.to)==0&&T(t.from,g.to)==0?g.to=on(t):h.changes.push(fl(e,t));else{var y=X(a.done);for((!y||!y.ranges)&&Es(e.sel,a.done),h={changes:[fl(e,t)],generation:a.generation},a.done.push(h);a.done.length>a.undoDepth;)a.done.shift(),a.done[0].ranges||a.done.shift()}a.done.push(o),a.generation=++a.maxGeneration,a.lastModTime=a.lastSelTime=c,a.lastOp=a.lastSelOp=i,a.lastOrigin=a.lastSelOrigin=t.origin,g||ve(e,"historyAdded")}function eg(e,t,o,i){var a=t.charAt(0);return a=="*"||a=="+"&&o.ranges.length==i.ranges.length&&o.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function tg(e,t,o,i){var a=e.history,c=i&&i.origin;o==a.lastSelOp||c&&a.lastSelOrigin==c&&(a.lastModTime==a.lastSelTime&&a.lastOrigin==c||eg(e,c,X(a.done),t))?a.done[a.done.length-1]=t:Es(t,a.done),a.lastSelTime=+new Date,a.lastSelOrigin=c,a.lastSelOp=o,i&&i.clearRedo!==!1&&Qf(a.undone)}function Es(e,t){var o=X(t);o&&o.ranges&&o.equals(e)||t.push(e)}function _f(e,t,o,i){var a=t["spans_"+e.id],c=0;e.iter(Math.max(e.first,o),Math.min(e.first+e.size,i),function(h){h.markedSpans&&((a||(a=t["spans_"+e.id]={}))[c]=h.markedSpans),++c})}function rg(e){if(!e)return null;for(var t,o=0;o<e.length;++o)e[o].marker.explicitlyCleared?t||(t=e.slice(0,o)):t&&t.push(e[o]);return t?t.length?t:null:e}function ng(e,t){var o=t["spans_"+e.id];if(!o)return null;for(var i=[],a=0;a<t.text.length;++a)i.push(rg(o[a]));return i}function ec(e,t){var o=ng(e,t),i=Ra(e,t);if(!o)return i;if(!i)return o;for(var a=0;a<o.length;++a){var c=o[a],h=i[a];if(c&&h){e:for(var g=0;g<h.length;++g){for(var y=h[g],S=0;S<c.length;++S)if(c[S].marker==y.marker)continue e;c.push(y)}}else h&&(o[a]=h)}return o}function ci(e,t,o){for(var i=[],a=0;a<e.length;++a){var c=e[a];if(c.ranges){i.push(o?ar.prototype.deepCopy.call(c):c);continue}var h=c.changes,g=[];i.push({changes:g});for(var y=0;y<h.length;++y){var S=h[y],E=void 0;if(g.push({from:S.from,to:S.to,text:S.text}),t)for(var N in S)(E=N.match(/^spans_(\d+)$/))&&ae(t,Number(E[1]))>-1&&(X(g)[N]=S[N],delete S[N])}}return i}function cl(e,t,o,i){if(i){var a=e.anchor;if(o){var c=T(t,a)<0;c!=T(o,a)<0?(a=t,t=o):c!=T(t,o)<0&&(t=o)}return new rt(a,t)}else return new rt(o||t,t)}function Ms(e,t,o,i,a){a==null&&(a=e.cm&&(e.cm.display.shift||e.extend)),Dt(e,new ar([cl(e.sel.primary(),t,o,a)],0),i)}function tc(e,t,o){for(var i=[],a=e.cm&&(e.cm.display.shift||e.extend),c=0;c<e.sel.ranges.length;c++)i[c]=cl(e.sel.ranges[c],t[c],null,a);var h=xr(e.cm,i,e.sel.primIndex);Dt(e,h,o)}function dl(e,t,o,i){var a=e.sel.ranges.slice(0);a[t]=o,Dt(e,xr(e.cm,a,e.sel.primIndex),i)}function rc(e,t,o,i){Dt(e,nn(t,o),i)}function ig(e,t,o){var i={ranges:t.ranges,update:function(a){this.ranges=[];for(var c=0;c<a.length;c++)this.ranges[c]=new rt(Me(e,a[c].anchor),Me(e,a[c].head))},origin:o&&o.origin};return ve(e,"beforeSelectionChange",e,i),e.cm&&ve(e.cm,"beforeSelectionChange",e.cm,i),i.ranges!=t.ranges?xr(e.cm,i.ranges,i.ranges.length-1):t}function nc(e,t,o){var i=e.history.done,a=X(i);a&&a.ranges?(i[i.length-1]=t,As(e,t,o)):Dt(e,t,o)}function Dt(e,t,o){As(e,t,o),tg(e,e.sel,e.cm?e.cm.curOp.id:NaN,o)}function As(e,t,o){(et(e,"beforeSelectionChange")||e.cm&&et(e.cm,"beforeSelectionChange"))&&(t=ig(e,t,o));var i=o&&o.bias||(T(t.primary().head,e.sel.primary().head)<0?-1:1);ic(e,sc(e,t,i,!0)),!(o&&o.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&ui(e.cm)}function ic(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,qe(e.cm)),Ot(e,"cursorActivity",e))}function oc(e){ic(e,sc(e,e.sel,null,!1))}function sc(e,t,o,i){for(var a,c=0;c<t.ranges.length;c++){var h=t.ranges[c],g=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[c],y=Ls(e,h.anchor,g&&g.anchor,o,i),S=Ls(e,h.head,g&&g.head,o,i);(a||y!=h.anchor||S!=h.head)&&(a||(a=t.ranges.slice(0,c)),a[c]=new rt(y,S))}return a?xr(e.cm,a,t.primIndex):t}function di(e,t,o,i,a){var c=Ne(e,t.line);if(c.markedSpans)for(var h=0;h<c.markedSpans.length;++h){var g=c.markedSpans[h],y=g.marker,S="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,E="selectRight"in y?!y.selectRight:y.inclusiveRight;if((g.from==null||(S?g.from<=t.ch:g.from<t.ch))&&(g.to==null||(E?g.to>=t.ch:g.to>t.ch))){if(a&&(ve(y,"beforeCursorEnter"),y.explicitlyCleared))if(c.markedSpans){--h;continue}else break;if(!y.atomic)continue;if(o){var N=y.find(i<0?1:-1),Y=void 0;if((i<0?E:S)&&(N=ac(e,N,-i,N&&N.line==t.line?c:null)),N&&N.line==t.line&&(Y=T(N,o))&&(i<0?Y<0:Y>0))return di(e,N,t,i,a)}var K=y.find(i<0?-1:1);return(i<0?S:E)&&(K=ac(e,K,i,K.line==t.line?c:null)),K?di(e,K,t,i,a):null}}return t}function Ls(e,t,o,i,a){var c=i||1,h=di(e,t,o,c,a)||!a&&di(e,t,o,c,!0)||di(e,t,o,-c,a)||!a&&di(e,t,o,-c,!0);return h||(e.cantEdit=!0,pe(e.first,0))}function ac(e,t,o,i){return o<0&&t.ch==0?t.line>e.first?Me(e,pe(t.line-1)):null:o>0&&t.ch==(i||Ne(e,t.line)).text.length?t.line<e.first+e.size-1?pe(t.line+1,0):null:new pe(t.line,t.ch+o)}function lc(e){e.setSelection(pe(e.firstLine(),0),pe(e.lastLine()),Re)}function uc(e,t,o){var i={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return i.canceled=!0}};return o&&(i.update=function(a,c,h,g){a&&(i.from=Me(e,a)),c&&(i.to=Me(e,c)),h&&(i.text=h),g!==void 0&&(i.origin=g)}),ve(e,"beforeChange",e,i),e.cm&&ve(e.cm,"beforeChange",e.cm,i),i.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:i.from,to:i.to,text:i.text,origin:i.origin}}function hi(e,t,o){if(e.cm){if(!e.cm.curOp)return kt(e.cm,hi)(e,t,o);if(e.cm.state.suppressEdits)return}if(!((et(e,"beforeChange")||e.cm&&et(e.cm,"beforeChange"))&&(t=uc(e,t,!0),!t))){var i=_u&&!o&&tv(e,t.from,t.to);if(i)for(var a=i.length-1;a>=0;--a)fc(e,{from:i[a].from,to:i[a].to,text:a?[""]:t.text,origin:t.origin});else fc(e,t)}}function fc(e,t){if(!(t.text.length==1&&t.text[0]==""&&T(t.from,t.to)==0)){var o=al(e,t);qf(e,t,o,e.cm?e.cm.curOp.id:NaN),fo(e,t,o,Ra(e,t));var i=[];sn(e,function(a,c){!c&&ae(i,a.history)==-1&&(pc(a.history,t),i.push(a.history)),fo(a,t,null,Ra(a,t))})}}function Ns(e,t,o){var i=e.cm&&e.cm.state.suppressEdits;if(!(i&&!o)){for(var a=e.history,c,h=e.sel,g=t=="undo"?a.done:a.undone,y=t=="undo"?a.undone:a.done,S=0;S<g.length&&(c=g[S],!(o?c.ranges&&!c.equals(e.sel):!c.ranges));S++);if(S!=g.length){for(a.lastOrigin=a.lastSelOrigin=null;;)if(c=g.pop(),c.ranges){if(Es(c,y),o&&!c.equals(e.sel)){Dt(e,c,{clearRedo:!1});return}h=c}else if(i){g.push(c);return}else break;var E=[];Es(h,y),y.push({changes:E,generation:a.generation}),a.generation=c.generation||++a.maxGeneration;for(var N=et(e,"beforeChange")||e.cm&&et(e.cm,"beforeChange"),Y=function(ce){var xe=c.changes[ce];if(xe.origin=t,N&&!uc(e,xe,!1))return g.length=0,{};E.push(fl(e,xe));var Te=ce?al(e,xe):X(g);fo(e,xe,Te,ec(e,xe)),!ce&&e.cm&&e.cm.scrollIntoView({from:xe.from,to:on(xe)});var Ee=[];sn(e,function(Pe,Ae){!Ae&&ae(Ee,Pe.history)==-1&&(pc(Pe.history,xe),Ee.push(Pe.history)),fo(Pe,xe,null,ec(Pe,xe))})},K=c.changes.length-1;K>=0;--K){var re=Y(K);if(re)return re.v}}}}function cc(e,t){if(t!=0&&(e.first+=t,e.sel=new ar(oe(e.sel.ranges,function(a){return new rt(pe(a.anchor.line+t,a.anchor.ch),pe(a.head.line+t,a.head.ch))}),e.sel.primIndex),e.cm)){Gt(e.cm,e.first,e.first-t,t);for(var o=e.cm.display,i=o.viewFrom;i<o.viewTo;i++)tn(e.cm,i,"gutter")}}function fo(e,t,o,i){if(e.cm&&!e.cm.curOp)return kt(e.cm,fo)(e,t,o,i);if(t.to.line<e.first){cc(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var a=t.text.length-1-(e.first-t.from.line);cc(e,a),t={from:pe(e.first,0),to:pe(t.to.line+a,t.to.ch),text:[X(t.text)],origin:t.origin}}var c=e.lastLine();t.to.line>c&&(t={from:t.from,to:pe(c,Ne(e,c).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Or(e,t.from,t.to),o||(o=al(e,t)),e.cm?og(e.cm,t,i):ul(e,t,i),As(e,o,Re),e.cantEdit&&Ls(e,pe(e.firstLine(),0))&&(e.cantEdit=!1)}}function og(e,t,o){var i=e.doc,a=e.display,c=t.from,h=t.to,g=!1,y=c.line;e.options.lineWrapping||(y=tt(Mr(Ne(i,c.line))),i.iter(y,h.line+1,function(K){if(K==a.maxLine)return g=!0,!0})),i.sel.contains(t.from,t.to)>-1&&qe(e),ul(i,t,o,Af(e)),e.options.lineWrapping||(i.iter(y,c.line+t.text.length,function(K){var re=vs(K);re>a.maxLineLength&&(a.maxLine=K,a.maxLineLength=re,a.maxLineChanged=!0,g=!1)}),g&&(e.curOp.updateMaxLine=!0)),Vp(i,c.line),ao(e,400);var S=t.text.length-(h.line-c.line)-1;t.full?Gt(e):c.line==h.line&&t.text.length==1&&!Vf(e.doc,t)?tn(e,c.line,"text"):Gt(e,c.line,h.line+1,S);var E=et(e,"changes"),N=et(e,"change");if(N||E){var Y={from:c,to:h,text:t.text,removed:t.removed,origin:t.origin};N&&Ot(e,"change",e,Y),E&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Y)}e.display.selForContextMenu=null}function pi(e,t,o,i,a){var c;i||(i=o),T(i,o)<0&&(c=[i,o],o=c[0],i=c[1]),typeof t=="string"&&(t=e.splitLines(t)),hi(e,{from:o,to:i,text:t,origin:a})}function dc(e,t,o,i){o<e.line?e.line+=i:t<e.line&&(e.line=t,e.ch=0)}function hc(e,t,o,i){for(var a=0;a<e.length;++a){var c=e[a],h=!0;if(c.ranges){c.copied||(c=e[a]=c.deepCopy(),c.copied=!0);for(var g=0;g<c.ranges.length;g++)dc(c.ranges[g].anchor,t,o,i),dc(c.ranges[g].head,t,o,i);continue}for(var y=0;y<c.changes.length;++y){var S=c.changes[y];if(o<S.from.line)S.from=pe(S.from.line+i,S.from.ch),S.to=pe(S.to.line+i,S.to.ch);else if(t<=S.to.line){h=!1;break}}h||(e.splice(0,a+1),a=0)}}function pc(e,t){var o=t.from.line,i=t.to.line,a=t.text.length-(i-o)-1;hc(e.done,o,i,a),hc(e.undone,o,i,a)}function co(e,t,o,i){var a=t,c=t;return typeof t=="number"?c=Ne(e,Qe(e,t)):a=tt(t),a==null?null:(i(c,a)&&e.cm&&tn(e.cm,a,o),c)}function ho(e){this.lines=e,this.parent=null;for(var t=0,o=0;o<e.length;++o)e[o].parent=this,t+=e[o].height;this.height=t}ho.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var o=e,i=e+t;o<i;++o){var a=this.lines[o];this.height-=a.height,sv(a),Ot(a,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,o){this.height+=o,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=this},iterN:function(e,t,o){for(var i=e+t;e<i;++e)if(o(this.lines[e]))return!0}};function po(e){this.children=e;for(var t=0,o=0,i=0;i<e.length;++i){var a=e[i];t+=a.chunkSize(),o+=a.height,a.parent=this}this.size=t,this.height=o,this.parent=null}po.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var o=0;o<this.children.length;++o){var i=this.children[o],a=i.chunkSize();if(e<a){var c=Math.min(t,a-e),h=i.height;if(i.removeInner(e,c),this.height-=h-i.height,a==c&&(this.children.splice(o--,1),i.parent=null),(t-=c)==0)break;e=0}else e-=a}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ho))){var g=[];this.collapse(g),this.children=[new ho(g)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,o){this.size+=t.length,this.height+=o;for(var i=0;i<this.children.length;++i){var a=this.children[i],c=a.chunkSize();if(e<=c){if(a.insertInner(e,t,o),a.lines&&a.lines.length>50){for(var h=a.lines.length%25+25,g=h;g<a.lines.length;){var y=new ho(a.lines.slice(g,g+=25));a.height-=y.height,this.children.splice(++i,0,y),y.parent=this}a.lines=a.lines.slice(0,h),this.maybeSpill()}break}e-=c}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),o=new po(t);if(e.parent){e.size-=o.size,e.height-=o.height;var a=ae(e.parent.children,e);e.parent.children.splice(a+1,0,o)}else{var i=new po(e.children);i.parent=e,e.children=[i,o],e=i}o.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,o){for(var i=0;i<this.children.length;++i){var a=this.children[i],c=a.chunkSize();if(e<c){var h=Math.min(t,c-e);if(a.iterN(e,h,o))return!0;if((t-=h)==0)break;e=0}else e-=c}}};var vo=function(e,t,o){if(o)for(var i in o)o.hasOwnProperty(i)&&(this[i]=o[i]);this.doc=e,this.node=t};vo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,o=this.line,i=tt(o);if(!(i==null||!t)){for(var a=0;a<t.length;++a)t[a]==this&&t.splice(a--,1);t.length||(o.widgets=null);var c=eo(this);_t(o,Math.max(0,o.height-c)),e&&(er(e,function(){vc(e,o,-c),tn(e,i,"widget")}),Ot(e,"lineWidgetCleared",e,this,i))}},vo.prototype.changed=function(){var e=this,t=this.height,o=this.doc.cm,i=this.line;this.height=null;var a=eo(this)-t;!a||(en(this.doc,i)||_t(i,i.height+a),o&&er(o,function(){o.curOp.forceUpdate=!0,vc(o,i,a),Ot(o,"lineWidgetChanged",o,e,tt(i))}))},qt(vo);function vc(e,t,o){Kr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&tl(e,o)}function sg(e,t,o,i){var a=new vo(e,o,i),c=e.cm;return c&&a.noHScroll&&(c.display.alignWidgets=!0),co(e,t,"widget",function(h){var g=h.widgets||(h.widgets=[]);if(a.insertAt==null?g.push(a):g.splice(Math.min(g.length,Math.max(0,a.insertAt)),0,a),a.line=h,c&&!en(e,h)){var y=Kr(h)<e.scrollTop;_t(h,h.height+eo(a)),y&&tl(c,a.height),c.curOp.forceUpdate=!0}return!0}),c&&Ot(c,"lineWidgetAdded",c,a,typeof t=="number"?t:tt(t)),a}var gc=0,an=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++gc};an.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Dn(e),et(this,"clear")){var o=this.find();o&&Ot(this,"clear",o.from,o.to)}for(var i=null,a=null,c=0;c<this.lines.length;++c){var h=this.lines[c],g=Qi(h.markedSpans,this);e&&!this.collapsed?tn(e,tt(h),"text"):e&&(g.to!=null&&(a=tt(h)),g.from!=null&&(i=tt(h))),h.markedSpans=Qp(h.markedSpans,g),g.from==null&&this.collapsed&&!en(this.doc,h)&&e&&_t(h,si(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var S=Mr(this.lines[y]),E=vs(S);E>e.display.maxLineLength&&(e.display.maxLine=S,e.display.maxLineLength=E,e.display.maxLineChanged=!0)}i!=null&&e&&this.collapsed&&Gt(e,i,a+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&oc(e.doc)),e&&Ot(e,"markerCleared",e,this,i,a),t&&Fn(e),this.parent&&this.parent.clear()}},an.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var o,i,a=0;a<this.lines.length;++a){var c=this.lines[a],h=Qi(c.markedSpans,this);if(h.from!=null&&(o=pe(t?c:tt(c),h.from),e==-1))return o;if(h.to!=null&&(i=pe(t?c:tt(c),h.to),e==1))return i}return o&&{from:o,to:i}},an.prototype.changed=function(){var e=this,t=this.find(-1,!0),o=this,i=this.doc.cm;!t||!i||er(i,function(){var a=t.line,c=tt(t.line),h=Ka(i,c);if(h&&(Sf(h),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!en(o.doc,a)&&o.height!=null){var g=o.height;o.height=null;var y=eo(o)-g;y&&_t(a,a.height+y)}Ot(i,"markerChanged",i,e)})},an.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||ae(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},an.prototype.detachLine=function(e){if(this.lines.splice(ae(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},qt(an);function vi(e,t,o,i,a){if(i&&i.shared)return ag(e,t,o,i,a);if(e.cm&&!e.cm.curOp)return kt(e.cm,vi)(e,t,o,i,a);var c=new an(e,a),h=T(t,o);if(i&&Ie(i,c,!1),h>0||h==0&&c.clearWhenEmpty!==!1)return c;if(c.replacedWith&&(c.collapsed=!0,c.widgetNode=x("span",[c.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||c.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(c.widgetNode.insertLeft=!0)),c.collapsed){if(sf(e,t.line,t,o,c)||t.line!=o.line&&sf(e,o.line,t,o,c))throw new Error("Inserting collapsed marker partially overlapping an existing one");Zp()}c.addToHistory&&qf(e,{from:t,to:o,origin:"markText"},e.sel,NaN);var g=t.line,y=e.cm,S;if(e.iter(g,o.line+1,function(N){y&&c.collapsed&&!y.options.lineWrapping&&Mr(N)==y.display.maxLine&&(S=!0),c.collapsed&&g!=t.line&&_t(N,0),qp(N,new cs(c,g==t.line?t.ch:null,g==o.line?o.ch:null),e.cm&&e.cm.curOp),++g}),c.collapsed&&e.iter(t.line,o.line+1,function(N){en(e,N)&&_t(N,0)}),c.clearOnEnter&&Fe(c,"beforeCursorEnter",function(){return c.clear()}),c.readOnly&&(Jp(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),c.collapsed&&(c.id=++gc,c.atomic=!0),y){if(S&&(y.curOp.updateMaxLine=!0),c.collapsed)Gt(y,t.line,o.line+1);else if(c.className||c.startStyle||c.endStyle||c.css||c.attributes||c.title)for(var E=t.line;E<=o.line;E++)tn(y,E,"text");c.atomic&&oc(y.doc),Ot(y,"markerAdded",y,c)}return c}var go=function(e,t){this.markers=e,this.primary=t;for(var o=0;o<e.length;++o)e[o].parent=this};go.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Ot(this,"clear")}},go.prototype.find=function(e,t){return this.primary.find(e,t)},qt(go);function ag(e,t,o,i,a){i=Ie(i),i.shared=!1;var c=[vi(e,t,o,i,a)],h=c[0],g=i.widgetNode;return sn(e,function(y){g&&(i.widgetNode=g.cloneNode(!0)),c.push(vi(y,Me(y,t),Me(y,o),i,a));for(var S=0;S<y.linked.length;++S)if(y.linked[S].isParent)return;h=X(c)}),new go(c,h)}function mc(e){return e.findMarks(pe(e.first,0),e.clipPos(pe(e.lastLine())),function(t){return t.parent})}function lg(e,t){for(var o=0;o<t.length;o++){var i=t[o],a=i.find(),c=e.clipPos(a.from),h=e.clipPos(a.to);if(T(c,h)){var g=vi(e,c,h,i.primary,i.primary.type);i.markers.push(g),g.parent=i}}}function ug(e){for(var t=function(i){var a=e[i],c=[a.primary.doc];sn(a.primary.doc,function(y){return c.push(y)});for(var h=0;h<a.markers.length;h++){var g=a.markers[h];ae(c,g.doc)==-1&&(g.parent=null,a.markers.splice(h--,1))}},o=0;o<e.length;o++)t(o)}var fg=0,$t=function(e,t,o,i,a){if(!(this instanceof $t))return new $t(e,t,o,i,a);o==null&&(o=0),po.call(this,[new ho([new ni("",null)])]),this.first=o,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=o;var c=pe(o,0);this.sel=nn(c),this.history=new ks(null),this.id=++fg,this.modeOption=t,this.lineSep=i,this.direction=a=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ul(this,{from:c,to:c,text:e}),Dt(this,nn(c),Re)};$t.prototype=Ce(po.prototype,{constructor:$t,iter:function(e,t,o){o?this.iterN(e-this.first,t-e,o):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var o=0,i=0;i<t.length;++i)o+=t[i].height;this.insertInner(e-this.first,t,o)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Vi(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:Et(function(e){var t=pe(this.first,0),o=this.first+this.size-1;hi(this,{from:t,to:pe(o,Ne(this,o).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&no(this.cm,0,0),Dt(this,nn(t),Re)}),replaceRange:function(e,t,o,i){t=Me(this,t),o=o?Me(this,o):t,pi(this,e,t,o,i)},getRange:function(e,t,o){var i=Or(this,Me(this,e),Me(this,t));return o===!1?i:o===""?i.join(""):i.join(o||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(En(this,e))return Ne(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ne(this,e)),Mr(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Me(this,e)},getCursor:function(e){var t=this.sel.primary(),o;return e==null||e=="head"?o=t.head:e=="anchor"?o=t.anchor:e=="end"||e=="to"||e===!1?o=t.to():o=t.from(),o},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Et(function(e,t,o){rc(this,Me(this,typeof e=="number"?pe(e,t||0):e),null,o)}),setSelection:Et(function(e,t,o){rc(this,Me(this,e),Me(this,t||e),o)}),extendSelection:Et(function(e,t,o){Ms(this,Me(this,e),t&&Me(this,t),o)}),extendSelections:Et(function(e,t){tc(this,sr(this,e),t)}),extendSelectionsBy:Et(function(e,t){var o=oe(this.sel.ranges,e);tc(this,sr(this,o),t)}),setSelections:Et(function(e,t,o){if(!!e.length){for(var i=[],a=0;a<e.length;a++)i[a]=new rt(Me(this,e[a].anchor),Me(this,e[a].head||e[a].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Dt(this,xr(this.cm,i,t),o)}}),addSelection:Et(function(e,t,o){var i=this.sel.ranges.slice(0);i.push(new rt(Me(this,e),Me(this,t||e))),Dt(this,xr(this.cm,i,i.length-1),o)}),getSelection:function(e){for(var t=this.sel.ranges,o,i=0;i<t.length;i++){var a=Or(this,t[i].from(),t[i].to());o=o?o.concat(a):a}return e===!1?o:o.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],o=this.sel.ranges,i=0;i<o.length;i++){var a=Or(this,o[i].from(),o[i].to());e!==!1&&(a=a.join(e||this.lineSeparator())),t[i]=a}return t},replaceSelection:function(e,t,o){for(var i=[],a=0;a<this.sel.ranges.length;a++)i[a]=e;this.replaceSelections(i,t,o||"+input")},replaceSelections:Et(function(e,t,o){for(var i=[],a=this.sel,c=0;c<a.ranges.length;c++){var h=a.ranges[c];i[c]={from:h.from(),to:h.to(),text:this.splitLines(e[c]),origin:o}}for(var g=t&&t!="end"&&Qv(this,i,t),y=i.length-1;y>=0;y--)hi(this,i[y]);g?nc(this,g):this.cm&&ui(this.cm)}),undo:Et(function(){Ns(this,"undo")}),redo:Et(function(){Ns(this,"redo")}),undoSelection:Et(function(){Ns(this,"undo",!0)}),redoSelection:Et(function(){Ns(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,o=0,i=0;i<e.done.length;i++)e.done[i].ranges||++t;for(var a=0;a<e.undone.length;a++)e.undone[a].ranges||++o;return{undo:t,redo:o}},clearHistory:function(){var e=this;this.history=new ks(this.history),sn(this,function(t){return t.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:ci(this.history.done),undone:ci(this.history.undone)}},setHistory:function(e){var t=this.history=new ks(this.history);t.done=ci(e.done.slice(0),null,!0),t.undone=ci(e.undone.slice(0),null,!0)},setGutterMarker:Et(function(e,t,o){return co(this,e,"gutter",function(i){var a=i.gutterMarkers||(i.gutterMarkers={});return a[t]=o,!o&&Z(a)&&(i.gutterMarkers=null),!0})}),clearGutter:Et(function(e){var t=this;this.iter(function(o){o.gutterMarkers&&o.gutterMarkers[e]&&co(t,o,"gutter",function(){return o.gutterMarkers[e]=null,Z(o.gutterMarkers)&&(o.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!En(this,e)||(t=e,e=Ne(this,e),!e))return null}else if(t=tt(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Et(function(e,t,o){return co(this,e,t=="gutter"?"gutter":"class",function(i){var a=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!i[a])i[a]=o;else{if(ie(o).test(i[a]))return!1;i[a]+=" "+o}return!0})}),removeLineClass:Et(function(e,t,o){return co(this,e,t=="gutter"?"gutter":"class",function(i){var a=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",c=i[a];if(c)if(o==null)i[a]=null;else{var h=c.match(ie(o));if(!h)return!1;var g=h.index+h[0].length;i[a]=c.slice(0,h.index)+(!h.index||g==c.length?"":" ")+c.slice(g)||null}else return!1;return!0})}),addLineWidget:Et(function(e,t,o){return sg(this,e,t,o)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,o){return vi(this,Me(this,e),Me(this,t),o,o&&o.type||"range")},setBookmark:function(e,t){var o={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=Me(this,e),vi(this,e,e,o,"bookmark")},findMarksAt:function(e){e=Me(this,e);var t=[],o=Ne(this,e.line).markedSpans;if(o)for(var i=0;i<o.length;++i){var a=o[i];(a.from==null||a.from<=e.ch)&&(a.to==null||a.to>=e.ch)&&t.push(a.marker.parent||a.marker)}return t},findMarks:function(e,t,o){e=Me(this,e),t=Me(this,t);var i=[],a=e.line;return this.iter(e.line,t.line+1,function(c){var h=c.markedSpans;if(h)for(var g=0;g<h.length;g++){var y=h[g];!(y.to!=null&&a==e.line&&e.ch>=y.to||y.from==null&&a!=e.line||y.from!=null&&a==t.line&&y.from>=t.ch)&&(!o||o(y.marker))&&i.push(y.marker.parent||y.marker)}++a}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var o=t.markedSpans;if(o)for(var i=0;i<o.length;++i)o[i].from!=null&&e.push(o[i].marker)}),e},posFromIndex:function(e){var t,o=this.first,i=this.lineSeparator().length;return this.iter(function(a){var c=a.text.length+i;if(c>e)return t=e,!0;e-=c,++o}),Me(this,pe(o,t))},indexFromPos:function(e){e=Me(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var o=this.lineSeparator().length;return this.iter(this.first,e.line,function(i){t+=i.text.length+o}),t},copy:function(e){var t=new $t(Vi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,o=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<o&&(o=e.to);var i=new $t(Vi(this,t,o),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:e.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],lg(i,mc(this)),i},unlinkDoc:function(e){if(e instanceof ut&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var o=this.linked[t];if(o.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),ug(mc(this));break}}if(e.history==this.history){var i=[e.id];sn(e,function(a){return i.push(a.id)},!0),e.history=new ks(null),e.history.done=ci(this.history.done,i),e.history.undone=ci(this.history.undone,i)}},iterLinkedDocs:function(e){sn(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Gi(e)},lineSeparator:function(){return this.lineSep||`
14
+ `},setDirection:Et(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&qv(this.cm))})}),$t.prototype.eachLine=$t.prototype.iter;var yc=0;function cg(e){var t=this;if(bc(t),!(Be(t,e)||Ur(t.display,e))){Pt(e),p&&(yc=+new Date);var o=Ln(t,e,!0),i=e.dataTransfer.files;if(!(!o||t.isReadOnly()))if(i&&i.length&&window.FileReader&&window.File)for(var a=i.length,c=Array(a),h=0,g=function(){++h==a&&kt(t,function(){o=Me(t.doc,o);var K={from:o,to:o,text:t.doc.splitLines(c.filter(function(re){return re!=null}).join(t.doc.lineSeparator())),origin:"paste"};hi(t.doc,K),nc(t.doc,nn(Me(t.doc,o),Me(t.doc,on(K))))})()},y=function(K,re){if(t.options.allowDropFileTypes&&ae(t.options.allowDropFileTypes,K.type)==-1){g();return}var ce=new FileReader;ce.onerror=function(){return g()},ce.onload=function(){var xe=ce.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(xe)){g();return}c[re]=xe,g()},ce.readAsText(K)},S=0;S<i.length;S++)y(i[S],S);else{if(t.state.draggingText&&t.doc.sel.contains(o)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var E=e.dataTransfer.getData("Text");if(E){var N;if(t.state.draggingText&&!t.state.draggingText.copy&&(N=t.listSelections()),As(t.doc,nn(o,o)),N)for(var Y=0;Y<N.length;++Y)pi(t.doc,"",N[Y].anchor,N[Y].head,"drag");t.replaceSelection(E,"around","paste"),t.display.input.focus()}}catch{}}}}function dg(e,t){if(p&&(!e.state.draggingText||+new Date-yc<100)){kn(t);return}if(!(Be(e,t)||Ur(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!A)){var o=O("img",null,null,"position: fixed; left: 0; top: 0;");o.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",P&&(o.width=o.height=1,e.display.wrapper.appendChild(o),o._top=o.offsetTop),t.dataTransfer.setDragImage(o,0,0),P&&o.parentNode.removeChild(o)}}function hg(e,t){var o=Ln(e,t);if(!!o){var i=document.createDocumentFragment();Za(e,o,i),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),k(e.display.dragCursor,i)}}function bc(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function xc(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),o=[],i=0;i<t.length;i++){var a=t[i].CodeMirror;a&&o.push(a)}o.length&&o[0].operation(function(){for(var c=0;c<o.length;c++)e(o[c])})}}var wc=!1;function pg(){wc||(vg(),wc=!0)}function vg(){var e;Fe(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,xc(gg)},100))}),Fe(window,"blur",function(){return xc(li)})}function gg(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var ln={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"},mo=0;mo<10;mo++)ln[mo+48]=ln[mo+96]=String(mo);for(var Is=65;Is<=90;Is++)ln[Is]=String.fromCharCode(Is);for(var yo=1;yo<=12;yo++)ln[yo+111]=ln[yo+63235]="F"+yo;var $r={};$r.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"},$r.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"},$r.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"},$r.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"]},$r.default=H?$r.macDefault:$r.pcDefault;function mg(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var o,i,a,c,h=0;h<t.length-1;h++){var g=t[h];if(/^(cmd|meta|m)$/i.test(g))c=!0;else if(/^a(lt)?$/i.test(g))o=!0;else if(/^(c|ctrl|control)$/i.test(g))i=!0;else if(/^s(hift)?$/i.test(g))a=!0;else throw new Error("Unrecognized modifier name: "+g)}return o&&(e="Alt-"+e),i&&(e="Ctrl-"+e),c&&(e="Cmd-"+e),a&&(e="Shift-"+e),e}function yg(e){var t={};for(var o in e)if(e.hasOwnProperty(o)){var i=e[o];if(/^(name|fallthrough|(de|at)tach)$/.test(o))continue;if(i=="..."){delete e[o];continue}for(var a=oe(o.split(" "),mg),c=0;c<a.length;c++){var h=void 0,g=void 0;c==a.length-1?(g=a.join(" "),h=i):(g=a.slice(0,c+1).join(" "),h="...");var y=t[g];if(!y)t[g]=h;else if(y!=h)throw new Error("Inconsistent bindings for "+g)}delete e[o]}for(var S in t)e[S]=t[S];return e}function gi(e,t,o,i){t=Rs(t);var a=t.call?t.call(e,i):t[e];if(a===!1)return"nothing";if(a==="...")return"multi";if(a!=null&&o(a))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return gi(e,t.fallthrough,o,i);for(var c=0;c<t.fallthrough.length;c++){var h=gi(e,t.fallthrough[c],o,i);if(h)return h}}}function Sc(e){var t=typeof e=="string"?e:ln[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Cc(e,t,o){var i=e;return t.altKey&&i!="Alt"&&(e="Alt-"+e),(J?t.metaKey:t.ctrlKey)&&i!="Ctrl"&&(e="Ctrl-"+e),(J?t.ctrlKey:t.metaKey)&&i!="Mod"&&(e="Cmd-"+e),!o&&t.shiftKey&&i!="Shift"&&(e="Shift-"+e),e}function Tc(e,t){if(P&&e.keyCode==34&&e.char)return!1;var o=ln[e.keyCode];return o==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(o=e.code),Cc(o,e,t))}function Rs(e){return typeof e=="string"?$r[e]:e}function mi(e,t){for(var o=e.doc.sel.ranges,i=[],a=0;a<o.length;a++){for(var c=t(o[a]);i.length&&T(c.from,X(i).to)<=0;){var h=i.pop();if(T(h.from,c.from)<0){c.from=h.from;break}}i.push(c)}er(e,function(){for(var g=i.length-1;g>=0;g--)pi(e.doc,"",i[g].from,i[g].to,"+delete");ui(e)})}function hl(e,t,o){var i=De(e.text,t+o,o);return i<0||i>e.text.length?null:i}function pl(e,t,o){var i=hl(e,t.ch,o);return i==null?null:new pe(t.line,i,o<0?"after":"before")}function vl(e,t,o,i,a){if(e){t.doc.direction=="rtl"&&(a=-a);var c=dt(o,t.doc.direction);if(c){var h=a<0?X(c):c[0],g=a<0==(h.level==1),y=g?"after":"before",S;if(h.level>0||t.doc.direction=="rtl"){var E=oi(t,o);S=a<0?o.text.length-1:0;var N=Lr(t,E,S).top;S=Ge(function(Y){return Lr(t,E,Y).top==N},a<0==(h.level==1)?h.from:h.to-1,S),y=="before"&&(S=hl(o,S,1))}else S=a<0?h.to:h.from;return new pe(i,S,y)}}return new pe(i,a<0?o.text.length:0,a<0?"before":"after")}function bg(e,t,o,i){var a=dt(t,e.doc.direction);if(!a)return pl(t,o,i);o.ch>=t.text.length?(o.ch=t.text.length,o.sticky="before"):o.ch<=0&&(o.ch=0,o.sticky="after");var c=je(a,o.ch,o.sticky),h=a[c];if(e.doc.direction=="ltr"&&h.level%2==0&&(i>0?h.to>o.ch:h.from<o.ch))return pl(t,o,i);var g=function(Te,Ee){return hl(t,Te instanceof pe?Te.ch:Te,Ee)},y,S=function(Te){return e.options.lineWrapping?(y=y||oi(e,t),Mf(e,t,y,Te)):{begin:0,end:t.text.length}},E=S(o.sticky=="before"?g(o,-1):o.ch);if(e.doc.direction=="rtl"||h.level==1){var N=h.level==1==i<0,Y=g(o,N?1:-1);if(Y!=null&&(N?Y<=h.to&&Y<=E.end:Y>=h.from&&Y>=E.begin)){var K=N?"before":"after";return new pe(o.line,Y,K)}}var re=function(Te,Ee,Pe){for(var Ae=function(at,Mt){return Mt?new pe(o.line,g(at,1),"before"):new pe(o.line,at,"after")};Te>=0&&Te<a.length;Te+=Ee){var We=a[Te],ze=Ee>0==(We.level!=1),Ze=ze?Pe.begin:g(Pe.end,-1);if(We.from<=Ze&&Ze<We.to||(Ze=ze?We.from:g(We.to,-1),Pe.begin<=Ze&&Ze<Pe.end))return Ae(Ze,ze)}},ce=re(c+i,i,E);if(ce)return ce;var xe=i>0?E.end:g(E.begin,-1);return xe!=null&&!(i>0&&xe==t.text.length)&&(ce=re(i>0?0:a.length-1,i,S(xe)),ce)?ce:null}var bo={selectAll:lc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Re)},killLine:function(e){return mi(e,function(t){if(t.empty()){var o=Ne(e.doc,t.head.line).text.length;return t.head.ch==o&&t.head.line<e.lastLine()?{from:t.head,to:pe(t.head.line+1,0)}:{from:t.head,to:pe(t.head.line,o)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return mi(e,function(t){return{from:pe(t.from().line,0),to:Me(e.doc,pe(t.to().line+1,0))}})},delLineLeft:function(e){return mi(e,function(t){return{from:pe(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return mi(e,function(t){var o=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:o},"div");return{from:i,to:t.from()}})},delWrappedLineRight:function(e){return mi(e,function(t){var o=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:o},"div");return{from:t.from(),to:i}})},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(pe(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(pe(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Pc(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Oc(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return xg(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:o},"div")},me)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:o},"div")},me)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var o=e.cursorCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:o},"div");return i.ch<e.getLine(i.line).search(/\S/)?Oc(e,t.head):i},me)},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 t=[],o=e.listSelections(),i=e.options.tabSize,a=0;a<o.length;a++){var c=o[a].from(),h=$e(e.getLine(c.line),c.ch,i);t.push(j(i-h%i))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return er(e,function(){for(var t=e.listSelections(),o=[],i=0;i<t.length;i++)if(!!t[i].empty()){var a=t[i].head,c=Ne(e.doc,a.line).text;if(c){if(a.ch==c.length&&(a=new pe(a.line,a.ch-1)),a.ch>0)a=new pe(a.line,a.ch+1),e.replaceRange(c.charAt(a.ch-1)+c.charAt(a.ch-2),pe(a.line,a.ch-2),a,"+transpose");else if(a.line>e.doc.first){var h=Ne(e.doc,a.line-1).text;h&&(a=new pe(a.line,1),e.replaceRange(c.charAt(0)+e.doc.lineSeparator()+h.charAt(h.length-1),pe(a.line-1,h.length-1),a,"+transpose"))}}o.push(new rt(a,a))}e.setSelections(o)})},newlineAndIndent:function(e){return er(e,function(){for(var t=e.listSelections(),o=t.length-1;o>=0;o--)e.replaceRange(e.doc.lineSeparator(),t[o].anchor,t[o].head,"+input");t=e.listSelections();for(var i=0;i<t.length;i++)e.indentLine(t[i].from().line,null,!0);ui(e)})},openLine:function(e){return e.replaceSelection(`
15
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Pc(e,t){var o=Ne(e.doc,t),i=Mr(o);return i!=o&&(t=tt(i)),vl(!0,e,i,t,1)}function xg(e,t){var o=Ne(e.doc,t),i=nv(o);return i!=o&&(t=tt(i)),vl(!0,e,o,t,-1)}function Oc(e,t){var o=Pc(e,t.line),i=Ne(e.doc,o.line),a=dt(i,e.doc.direction);if(!a||a[0].level==0){var c=Math.max(o.ch,i.text.search(/\S/)),h=t.line==o.line&&t.ch<=c&&t.ch;return pe(o.line,h?0:c,o.sticky)}return o}function Ds(e,t,o){if(typeof t=="string"&&(t=bo[t],!t))return!1;e.display.input.ensurePolled();var i=e.display.shift,a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),o&&(e.display.shift=!1),a=t(e)!=be}finally{e.display.shift=i,e.state.suppressEdits=!1}return a}function wg(e,t,o){for(var i=0;i<e.state.keyMaps.length;i++){var a=gi(t,e.state.keyMaps[i],o,e);if(a)return a}return e.options.extraKeys&&gi(t,e.options.extraKeys,o,e)||gi(t,e.options.keyMap,o,e)}var Sg=new ne;function xo(e,t,o,i){var a=e.state.keySeq;if(a){if(Sc(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Sg.set(50,function(){e.state.keySeq==a&&(e.state.keySeq=null,e.display.input.reset())}),kc(e,a+" "+t,o,i))return!0}return kc(e,t,o,i)}function kc(e,t,o,i){var a=wg(e,t,i);return a=="multi"&&(e.state.keySeq=t),a=="handled"&&Ot(e,"keyHandled",e,t,o),(a=="handled"||a=="multi")&&(Pt(o),Qa(e)),!!a}function Ec(e,t){var o=Tc(t,!0);return o?t.shiftKey&&!e.state.keySeq?xo(e,"Shift-"+o,t,function(i){return Ds(e,i,!0)})||xo(e,o,t,function(i){if(typeof i=="string"?/^go[A-Z]/.test(i):i.motion)return Ds(e,i)}):xo(e,o,t,function(i){return Ds(e,i)}):!1}function Cg(e,t,o){return xo(e,"'"+o+"'",t,function(i){return Ds(e,i,!0)})}var gl=null;function Mc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=$(),!Be(t,e))){p&&m<11&&e.keyCode==27&&(e.returnValue=!1);var o=e.keyCode;t.display.shift=o==16||e.shiftKey;var i=Ec(t,e);P&&(gl=i?o:null,!i&&o==88&&!us&&(H?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),u&&!H&&!i&&o==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),o==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Tg(t)}}function Tg(e){var t=e.display.lineDiv;se(t,"CodeMirror-crosshair");function o(i){(i.keyCode==18||!i.altKey)&&(Q(t,"CodeMirror-crosshair"),Oe(document,"keyup",o),Oe(document,"mouseover",o))}Fe(document,"keyup",o),Fe(document,"mouseover",o)}function Ac(e){e.keyCode==16&&(this.doc.sel.shift=!1),Be(this,e)}function Lc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Ur(t.display,e)||Be(t,e)||e.ctrlKey&&!e.altKey||H&&e.metaKey)){var o=e.keyCode,i=e.charCode;if(P&&o==gl){gl=null,Pt(e);return}if(!(P&&(!e.which||e.which<10)&&Ec(t,e))){var a=String.fromCharCode(i==null?o:i);a!="\b"&&(Cg(t,e,a)||t.display.input.onKeyPress(e))}}}var Pg=400,ml=function(e,t,o){this.time=e,this.pos=t,this.button=o};ml.prototype.compare=function(e,t,o){return this.time+Pg>e&&T(t,this.pos)==0&&o==this.button};var wo,So;function Og(e,t){var o=+new Date;return So&&So.compare(o,e,t)?(wo=So=null,"triple"):wo&&wo.compare(o,e,t)?(So=new ml(o,e,t),wo=null,"double"):(wo=new ml(o,e,t),So=null,"single")}function Nc(e){var t=this,o=t.display;if(!(Be(t,e)||o.activeTouch&&o.input.supportsTouch())){if(o.input.ensurePolled(),o.shift=e.shiftKey,Ur(o,e)){b||(o.scroller.draggable=!1,setTimeout(function(){return o.scroller.draggable=!0},100));return}if(!yl(t,e)){var i=Ln(t,e),a=ss(e),c=i?Og(i,a):"single";window.focus(),a==1&&t.state.selectingText&&t.state.selectingText(e),!(i&&kg(t,a,i,c,e))&&(a==1?i?Mg(t,i,c,e):qr(e)==o.scroller&&Pt(e):a==2?(i&&Ms(t.doc,i),setTimeout(function(){return o.input.focus()},20)):a==3&&(te?t.display.input.onContextMenu(e):qa(t)))}}}function kg(e,t,o,i,a){var c="Click";return i=="double"?c="Double"+c:i=="triple"&&(c="Triple"+c),c=(t==1?"Left":t==2?"Middle":"Right")+c,xo(e,Cc(c,a),a,function(h){if(typeof h=="string"&&(h=bo[h]),!h)return!1;var g=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),g=h(e,o)!=be}finally{e.state.suppressEdits=!1}return g})}function Eg(e,t,o){var i=e.getOption("configureMouse"),a=i?i(e,t,o):{};if(a.unit==null){var c=q?o.shiftKey&&o.metaKey:o.altKey;a.unit=c?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(a.extend==null||e.doc.extend)&&(a.extend=e.doc.extend||o.shiftKey),a.addNew==null&&(a.addNew=H?o.metaKey:o.ctrlKey),a.moveOnDrag==null&&(a.moveOnDrag=!(H?o.altKey:o.ctrlKey)),a}function Mg(e,t,o,i){p?setTimeout(Ve(If,e),0):e.curOp.focus=$();var a=Eg(e,o,i),c=e.doc.sel,h;e.options.dragDrop&&Ki&&!e.isReadOnly()&&o=="single"&&(h=c.contains(t))>-1&&(T((h=c.ranges[h]).from(),t)<0||t.xRel>0)&&(T(h.to(),t)>0||t.xRel<0)?Ag(e,i,t,a):Lg(e,i,t,a)}function Ag(e,t,o,i){var a=e.display,c=!1,h=kt(e,function(S){b&&(a.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:qa(e)),Oe(a.wrapper.ownerDocument,"mouseup",h),Oe(a.wrapper.ownerDocument,"mousemove",g),Oe(a.scroller,"dragstart",y),Oe(a.scroller,"drop",h),c||(Pt(S),i.addNew||Ms(e.doc,o,null,null,i.extend),b&&!A||p&&m==9?setTimeout(function(){a.wrapper.ownerDocument.body.focus({preventScroll:!0}),a.input.focus()},20):a.input.focus())}),g=function(S){c=c||Math.abs(t.clientX-S.clientX)+Math.abs(t.clientY-S.clientY)>=10},y=function(){return c=!0};b&&(a.scroller.draggable=!0),e.state.draggingText=h,h.copy=!i.moveOnDrag,Fe(a.wrapper.ownerDocument,"mouseup",h),Fe(a.wrapper.ownerDocument,"mousemove",g),Fe(a.scroller,"dragstart",y),Fe(a.scroller,"drop",h),e.state.delayingBlurEvent=!0,setTimeout(function(){return a.input.focus()},20),a.scroller.dragDrop&&a.scroller.dragDrop()}function Ic(e,t,o){if(o=="char")return new rt(t,t);if(o=="word")return e.findWordAt(t);if(o=="line")return new rt(pe(t.line,0),Me(e.doc,pe(t.line+1,0)));var i=o(e,t);return new rt(i.from,i.to)}function Lg(e,t,o,i){p&&qa(e);var a=e.display,c=e.doc;Pt(t);var h,g,y=c.sel,S=y.ranges;if(i.addNew&&!i.extend?(g=c.sel.contains(o),g>-1?h=S[g]:h=new rt(o,o)):(h=c.sel.primary(),g=c.sel.primIndex),i.unit=="rectangle")i.addNew||(h=new rt(o,o)),o=Ln(e,t,!0,!0),g=-1;else{var E=Ic(e,o,i.unit);i.extend?h=cl(h,E.anchor,E.head,i.extend):h=E}i.addNew?g==-1?(g=S.length,Dt(c,xr(e,S.concat([h]),g),{scroll:!1,origin:"*mouse"})):S.length>1&&S[g].empty()&&i.unit=="char"&&!i.extend?(Dt(c,xr(e,S.slice(0,g).concat(S.slice(g+1)),0),{scroll:!1,origin:"*mouse"}),y=c.sel):dl(c,g,h,ke):(g=0,Dt(c,new ar([h],0),ke),y=c.sel);var N=o;function Y(Pe){if(T(N,Pe)!=0)if(N=Pe,i.unit=="rectangle"){for(var Ae=[],We=e.options.tabSize,ze=$e(Ne(c,o.line).text,o.ch,We),Ze=$e(Ne(c,Pe.line).text,Pe.ch,We),at=Math.min(ze,Ze),Mt=Math.max(ze,Ze),ht=Math.min(o.line,Pe.line),tr=Math.min(e.lastLine(),Math.max(o.line,Pe.line));ht<=tr;ht++){var Yt=Ne(c,ht).text,wt=Le(Yt,at,We);at==Mt?Ae.push(new rt(pe(ht,wt),pe(ht,wt))):Yt.length>wt&&Ae.push(new rt(pe(ht,wt),pe(ht,Le(Yt,Mt,We))))}Ae.length||Ae.push(new rt(o,o)),Dt(c,xr(e,y.ranges.slice(0,g).concat(Ae),g),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Pe)}else{var Xt=h,It=Ic(e,Pe,i.unit),Tt=Xt.anchor,St;T(It.anchor,Tt)>0?(St=It.head,Tt=Ue(Xt.from(),It.anchor)):(St=It.anchor,Tt=ye(Xt.to(),It.head));var vt=y.ranges.slice(0);vt[g]=Ng(e,new rt(Me(c,Tt),St)),Dt(c,xr(e,vt,g),ke)}}var K=a.wrapper.getBoundingClientRect(),re=0;function ce(Pe){var Ae=++re,We=Ln(e,Pe,!0,i.unit=="rectangle");if(!!We)if(T(We,N)!=0){e.curOp.focus=$(),Y(We);var ze=Cs(a,c);(We.line>=ze.to||We.line<ze.from)&&setTimeout(kt(e,function(){re==Ae&&ce(Pe)}),150)}else{var Ze=Pe.clientY<K.top?-20:Pe.clientY>K.bottom?20:0;Ze&&setTimeout(kt(e,function(){re==Ae&&(a.scroller.scrollTop+=Ze,ce(Pe))}),50)}}function xe(Pe){e.state.selectingText=!1,re=1/0,Pe&&(Pt(Pe),a.input.focus()),Oe(a.wrapper.ownerDocument,"mousemove",Te),Oe(a.wrapper.ownerDocument,"mouseup",Ee),c.history.lastSelOrigin=null}var Te=kt(e,function(Pe){Pe.buttons===0||!ss(Pe)?xe(Pe):ce(Pe)}),Ee=kt(e,xe);e.state.selectingText=Ee,Fe(a.wrapper.ownerDocument,"mousemove",Te),Fe(a.wrapper.ownerDocument,"mouseup",Ee)}function Ng(e,t){var o=t.anchor,i=t.head,a=Ne(e.doc,o.line);if(T(o,i)==0&&o.sticky==i.sticky)return t;var c=dt(a);if(!c)return t;var h=je(c,o.ch,o.sticky),g=c[h];if(g.from!=o.ch&&g.to!=o.ch)return t;var y=h+(g.from==o.ch==(g.level!=1)?0:1);if(y==0||y==c.length)return t;var S;if(i.line!=o.line)S=(i.line-o.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var E=je(c,i.ch,i.sticky),N=E-h||(i.ch-o.ch)*(g.level==1?-1:1);E==y-1||E==y?S=N<0:S=N>0}var Y=c[y+(S?-1:0)],K=S==(Y.level==1),re=K?Y.from:Y.to,ce=K?"after":"before";return o.ch==re&&o.sticky==ce?t:new rt(new pe(o.line,re,ce),i)}function Rc(e,t,o,i){var a,c;if(t.touches)a=t.touches[0].clientX,c=t.touches[0].clientY;else try{a=t.clientX,c=t.clientY}catch{return!1}if(a>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&Pt(t);var h=e.display,g=h.lineDiv.getBoundingClientRect();if(c>g.bottom||!et(e,o))return nr(t);c-=g.top-h.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var S=h.gutters.childNodes[y];if(S&&S.getBoundingClientRect().right>=a){var E=kr(e.doc,c),N=e.display.gutterSpecs[y];return ve(e,o,e,E,N.className,t),nr(t)}}}function yl(e,t){return Rc(e,t,"gutterClick",!0)}function Dc(e,t){Ur(e.display,t)||Ig(e,t)||Be(e,t,"contextmenu")||te||e.display.input.onContextMenu(t)}function Ig(e,t){return et(e,"gutterContextMenu")?Rc(e,t,"gutterContextMenu",!1):!1}function Fc(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),to(e)}var yi={toString:function(){return"CodeMirror.Init"}},zc={},Fs={};function Rg(e){var t=e.optionHandlers;function o(i,a,c,h){e.defaults[i]=a,c&&(t[i]=h?function(g,y,S){S!=yi&&c(g,y,S)}:c)}e.defineOption=o,e.Init=yi,o("value","",function(i,a){return i.setValue(a)},!0),o("mode",null,function(i,a){i.doc.modeOption=a,ll(i)},!0),o("indentUnit",2,ll,!0),o("indentWithTabs",!1),o("smartIndent",!0),o("tabSize",4,function(i){uo(i),to(i),Gt(i)},!0),o("lineSeparator",null,function(i,a){if(i.doc.lineSep=a,!!a){var c=[],h=i.doc.first;i.doc.iter(function(y){for(var S=0;;){var E=y.text.indexOf(a,S);if(E==-1)break;S=E+a.length,c.push(pe(h,E))}h++});for(var g=c.length-1;g>=0;g--)pi(i.doc,a,c[g],pe(c[g].line,c[g].ch+a.length))}}),o("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(i,a,c){i.state.specialChars=new RegExp(a.source+(a.test(" ")?"":"| "),"g"),c!=yi&&i.refresh()}),o("specialCharPlaceholder",uv,function(i){return i.refresh()},!0),o("electricChars",!0),o("inputStyle",I?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),o("spellcheck",!1,function(i,a){return i.getInputField().spellcheck=a},!0),o("autocorrect",!1,function(i,a){return i.getInputField().autocorrect=a},!0),o("autocapitalize",!1,function(i,a){return i.getInputField().autocapitalize=a},!0),o("rtlMoveVisually",!_),o("wholeLineUpdateBefore",!0),o("theme","default",function(i){Fc(i),lo(i)},!0),o("keyMap","default",function(i,a,c){var h=Rs(a),g=c!=yi&&Rs(c);g&&g.detach&&g.detach(i,h),h.attach&&h.attach(i,g||null)}),o("extraKeys",null),o("configureMouse",null),o("lineWrapping",!1,Fg,!0),o("gutters",[],function(i,a){i.display.gutterSpecs=sl(a,i.options.lineNumbers),lo(i)},!0),o("fixedGutter",!0,function(i,a){i.display.gutters.style.left=a?Va(i.display)+"px":"0",i.refresh()},!0),o("coverGutterNextToScrollbar",!1,function(i){return fi(i)},!0),o("scrollbarStyle","native",function(i){Bf(i),fi(i),i.display.scrollbars.setScrollTop(i.doc.scrollTop),i.display.scrollbars.setScrollLeft(i.doc.scrollLeft)},!0),o("lineNumbers",!1,function(i,a){i.display.gutterSpecs=sl(i.options.gutters,a),lo(i)},!0),o("firstLineNumber",1,lo,!0),o("lineNumberFormatter",function(i){return i},lo,!0),o("showCursorWhenSelecting",!1,ro,!0),o("resetSelectionOnContextMenu",!0),o("lineWiseCopyCut",!0),o("pasteLinesPerSelection",!0),o("selectionsMayTouch",!1),o("readOnly",!1,function(i,a){a=="nocursor"&&(li(i),i.display.input.blur()),i.display.input.readOnlyChanged(a)}),o("screenReaderLabel",null,function(i,a){a=a===""?null:a,i.display.input.screenReaderLabelChanged(a)}),o("disableInput",!1,function(i,a){a||i.display.input.reset()},!0),o("dragDrop",!0,Dg),o("allowDropFileTypes",null),o("cursorBlinkRate",530),o("cursorScrollMargin",0),o("cursorHeight",1,ro,!0),o("singleCursorHeightPerLine",!0,ro,!0),o("workTime",100),o("workDelay",100),o("flattenSpans",!0,uo,!0),o("addModeClass",!1,uo,!0),o("pollInterval",100),o("undoDepth",200,function(i,a){return i.doc.history.undoDepth=a}),o("historyEventDelay",1250),o("viewportMargin",10,function(i){return i.refresh()},!0),o("maxHighlightLength",1e4,uo,!0),o("moveInputWithCursor",!0,function(i,a){a||i.display.input.resetPosition()}),o("tabindex",null,function(i,a){return i.display.input.getField().tabIndex=a||""}),o("autofocus",null),o("direction","ltr",function(i,a){return i.doc.setDirection(a)},!0),o("phrases",null)}function Dg(e,t,o){var i=o&&o!=yi;if(!t!=!i){var a=e.display.dragFunctions,c=t?Fe:Oe;c(e.display.scroller,"dragstart",a.start),c(e.display.scroller,"dragenter",a.enter),c(e.display.scroller,"dragover",a.over),c(e.display.scroller,"dragleave",a.leave),c(e.display.scroller,"drop",a.drop)}}function Fg(e){e.options.lineWrapping?(se(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Q(e.display.wrapper,"CodeMirror-wrap"),Ha(e)),Ja(e),Gt(e),to(e),setTimeout(function(){return fi(e)},100)}function ut(e,t){var o=this;if(!(this instanceof ut))return new ut(e,t);this.options=t=t?Ie(t):{},Ie(zc,t,!1);var i=t.value;typeof i=="string"?i=new $t(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var a=new ut.inputStyles[t.inputStyle](this),c=this.display=new Jv(e,i,a,t);c.wrapper.CodeMirror=this,Fc(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Bf(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 ne,keySeq:null,specialChars:null},t.autofocus&&!I&&c.input.focus(),p&&m<11&&setTimeout(function(){return o.display.input.reset(!0)},20),zg(this),pg(),Dn(this),this.curOp.forceUpdate=!0,Jf(this,i),t.autofocus&&!I||this.hasFocus()?setTimeout(function(){o.hasFocus()&&!o.state.focused&&_a(o)},20):li(this);for(var h in Fs)Fs.hasOwnProperty(h)&&Fs[h](this,t[h],yi);Kf(this),t.finishInit&&t.finishInit(this);for(var g=0;g<bl.length;++g)bl[g](this);Fn(this),b&&t.lineWrapping&&getComputedStyle(c.lineDiv).textRendering=="optimizelegibility"&&(c.lineDiv.style.textRendering="auto")}ut.defaults=zc,ut.optionHandlers=Fs;function zg(e){var t=e.display;Fe(t.scroller,"mousedown",kt(e,Nc)),p&&m<11?Fe(t.scroller,"dblclick",kt(e,function(y){if(!Be(e,y)){var S=Ln(e,y);if(!(!S||yl(e,y)||Ur(e.display,y))){Pt(y);var E=e.findWordAt(S);Ms(e.doc,E.anchor,E.head)}}})):Fe(t.scroller,"dblclick",function(y){return Be(e,y)||Pt(y)}),Fe(t.scroller,"contextmenu",function(y){return Dc(e,y)}),Fe(t.input.getField(),"contextmenu",function(y){t.scroller.contains(y.target)||Dc(e,y)});var o,i={end:0};function a(){t.activeTouch&&(o=setTimeout(function(){return t.activeTouch=null},1e3),i=t.activeTouch,i.end=+new Date)}function c(y){if(y.touches.length!=1)return!1;var S=y.touches[0];return S.radiusX<=1&&S.radiusY<=1}function h(y,S){if(S.left==null)return!0;var E=S.left-y.left,N=S.top-y.top;return E*E+N*N>20*20}Fe(t.scroller,"touchstart",function(y){if(!Be(e,y)&&!c(y)&&!yl(e,y)){t.input.ensurePolled(),clearTimeout(o);var S=+new Date;t.activeTouch={start:S,moved:!1,prev:S-i.end<=300?i:null},y.touches.length==1&&(t.activeTouch.left=y.touches[0].pageX,t.activeTouch.top=y.touches[0].pageY)}}),Fe(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Fe(t.scroller,"touchend",function(y){var S=t.activeTouch;if(S&&!Ur(t,y)&&S.left!=null&&!S.moved&&new Date-S.start<300){var E=e.coordsChar(t.activeTouch,"page"),N;!S.prev||h(S,S.prev)?N=new rt(E,E):!S.prev.prev||h(S,S.prev.prev)?N=e.findWordAt(E):N=new rt(pe(E.line,0),Me(e.doc,pe(E.line+1,0))),e.setSelection(N.anchor,N.head),e.focus(),Pt(y)}a()}),Fe(t.scroller,"touchcancel",a),Fe(t.scroller,"scroll",function(){t.scroller.clientHeight&&(io(e,t.scroller.scrollTop),In(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))}),Fe(t.scroller,"mousewheel",function(y){return $f(e,y)}),Fe(t.scroller,"DOMMouseScroll",function(y){return $f(e,y)}),Fe(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(y){Be(e,y)||kn(y)},over:function(y){Be(e,y)||(hg(e,y),kn(y))},start:function(y){return dg(e,y)},drop:kt(e,cg),leave:function(y){Be(e,y)||bc(e)}};var g=t.input.getField();Fe(g,"keyup",function(y){return Ac.call(e,y)}),Fe(g,"keydown",kt(e,Mc)),Fe(g,"keypress",kt(e,Lc)),Fe(g,"focus",function(y){return _a(e,y)}),Fe(g,"blur",function(y){return li(e,y)})}var bl=[];ut.defineInitHook=function(e){return bl.push(e)};function Co(e,t,o,i){var a=e.doc,c;o==null&&(o="add"),o=="smart"&&(a.mode.indent?c=Zi(e,t).state:o="prev");var h=e.options.tabSize,g=Ne(a,t),y=$e(g.text,null,h);g.stateAfter&&(g.stateAfter=null);var S=g.text.match(/^\s*/)[0],E;if(!i&&!/\S/.test(g.text))E=0,o="not";else if(o=="smart"&&(E=a.mode.indent(c,g.text.slice(S.length),g.text),E==be||E>150)){if(!i)return;o="prev"}o=="prev"?t>a.first?E=$e(Ne(a,t-1).text,null,h):E=0:o=="add"?E=y+e.options.indentUnit:o=="subtract"?E=y-e.options.indentUnit:typeof o=="number"&&(E=y+o),E=Math.max(0,E);var N="",Y=0;if(e.options.indentWithTabs)for(var K=Math.floor(E/h);K;--K)Y+=h,N+=" ";if(Y<E&&(N+=j(E-Y)),N!=S)return pi(a,N,pe(t,0),pe(t,S.length),"+input"),g.stateAfter=null,!0;for(var re=0;re<a.sel.ranges.length;re++){var ce=a.sel.ranges[re];if(ce.head.line==t&&ce.head.ch<S.length){var xe=pe(t,S.length);dl(a,re,new rt(xe,xe));break}}}var wr=null;function zs(e){wr=e}function xl(e,t,o,i,a){var c=e.doc;e.display.shift=!1,i||(i=c.sel);var h=+new Date-200,g=a=="paste"||e.state.pasteIncoming>h,y=Gi(t),S=null;if(g&&i.ranges.length>1)if(wr&&wr.text.join(`
16
+ `)==t){if(i.ranges.length%wr.text.length==0){S=[];for(var E=0;E<wr.text.length;E++)S.push(c.splitLines(wr.text[E]))}}else y.length==i.ranges.length&&e.options.pasteLinesPerSelection&&(S=oe(y,function(Te){return[Te]}));for(var N=e.curOp.updateInput,Y=i.ranges.length-1;Y>=0;Y--){var K=i.ranges[Y],re=K.from(),ce=K.to();K.empty()&&(o&&o>0?re=pe(re.line,re.ch-o):e.state.overwrite&&!g?ce=pe(ce.line,Math.min(Ne(c,ce.line).text.length,ce.ch+X(y).length)):g&&wr&&wr.lineWise&&wr.text.join(`
17
+ `)==y.join(`
18
+ `)&&(re=ce=pe(re.line,0)));var xe={from:re,to:ce,text:S?S[Y%S.length]:y,origin:a||(g?"paste":e.state.cutIncoming>h?"cut":"+input")};hi(e.doc,xe),Ot(e,"inputRead",e,xe)}t&&!g&&Bc(e,t),ui(e),e.curOp.updateInput<2&&(e.curOp.updateInput=N),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Hc(e,t){var o=e.clipboardData&&e.clipboardData.getData("Text");if(o)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&er(t,function(){return xl(t,o,0,null,"paste")}),!0}function Bc(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var o=e.doc.sel,i=o.ranges.length-1;i>=0;i--){var a=o.ranges[i];if(!(a.head.ch>100||i&&o.ranges[i-1].head.line==a.head.line)){var c=e.getModeAt(a.head),h=!1;if(c.electricChars){for(var g=0;g<c.electricChars.length;g++)if(t.indexOf(c.electricChars.charAt(g))>-1){h=Co(e,a.head.line,"smart");break}}else c.electricInput&&c.electricInput.test(Ne(e.doc,a.head.line).text.slice(0,a.head.ch))&&(h=Co(e,a.head.line,"smart"));h&&Ot(e,"electricInput",e,a.head.line)}}}function Wc(e){for(var t=[],o=[],i=0;i<e.doc.sel.ranges.length;i++){var a=e.doc.sel.ranges[i].head.line,c={anchor:pe(a,0),head:pe(a+1,0)};o.push(c),t.push(e.getRange(c.anchor,c.head))}return{text:t,ranges:o}}function jc(e,t,o,i){e.setAttribute("autocorrect",o?"":"off"),e.setAttribute("autocapitalize",i?"":"off"),e.setAttribute("spellcheck",!!t)}function Kc(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return b?e.style.width="1000px":e.setAttribute("wrap","off"),W&&(e.style.border="1px solid black"),jc(e),t}function Hg(e){var t=e.optionHandlers,o=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(i,a){var c=this.options,h=c[i];c[i]==a&&i!="mode"||(c[i]=a,t.hasOwnProperty(i)&&kt(this,t[i])(this,a,h),ve(this,"optionChange",this,i))},getOption:function(i){return this.options[i]},getDoc:function(){return this.doc},addKeyMap:function(i,a){this.state.keyMaps[a?"push":"unshift"](Rs(i))},removeKeyMap:function(i){for(var a=this.state.keyMaps,c=0;c<a.length;++c)if(a[c]==i||a[c].name==i)return a.splice(c,1),!0},addOverlay:jt(function(i,a){var c=i.token?i:e.getMode(this.options,i);if(c.startState)throw new Error("Overlays may not be stateful.");ue(this.state.overlays,{mode:c,modeSpec:i,opaque:a&&a.opaque,priority:a&&a.priority||0},function(h){return h.priority}),this.state.modeGen++,Gt(this)}),removeOverlay:jt(function(i){for(var a=this.state.overlays,c=0;c<a.length;++c){var h=a[c].modeSpec;if(h==i||typeof i=="string"&&h.name==i){a.splice(c,1),this.state.modeGen++,Gt(this);return}}}),indentLine:jt(function(i,a,c){typeof a!="string"&&typeof a!="number"&&(a==null?a=this.options.smartIndent?"smart":"prev":a=a?"add":"subtract"),En(this.doc,i)&&Co(this,i,a,c)}),indentSelection:jt(function(i){for(var a=this.doc.sel.ranges,c=-1,h=0;h<a.length;h++){var g=a[h];if(g.empty())g.head.line>c&&(Co(this,g.head.line,i,!0),c=g.head.line,h==this.doc.sel.primIndex&&ui(this));else{var y=g.from(),S=g.to(),E=Math.max(c,y.line);c=Math.min(this.lastLine(),S.line-(S.ch?0:1))+1;for(var N=E;N<c;++N)Co(this,N,i);var Y=this.doc.sel.ranges;y.ch==0&&a.length==Y.length&&Y[h].from().ch>0&&dl(this.doc,h,new rt(y,Y[h].to()),Re)}}}),getTokenAt:function(i,a){return Zu(this,i,a)},getLineTokens:function(i,a){return Zu(this,pe(i),a,!0)},getTokenTypeAt:function(i){i=Me(this.doc,i);var a=Xu(this,Ne(this.doc,i.line)),c=0,h=(a.length-1)/2,g=i.ch,y;if(g==0)y=a[2];else for(;;){var S=c+h>>1;if((S?a[S*2-1]:0)>=g)h=S;else if(a[S*2+1]<g)c=S+1;else{y=a[S*2+2];break}}var E=y?y.indexOf("overlay "):-1;return E<0?y:E==0?null:y.slice(0,E-1)},getModeAt:function(i){var a=this.doc.mode;return a.innerMode?e.innerMode(a,this.getTokenAt(i).state).mode:a},getHelper:function(i,a){return this.getHelpers(i,a)[0]},getHelpers:function(i,a){var c=[];if(!o.hasOwnProperty(a))return c;var h=o[a],g=this.getModeAt(i);if(typeof g[a]=="string")h[g[a]]&&c.push(h[g[a]]);else if(g[a])for(var y=0;y<g[a].length;y++){var S=h[g[a][y]];S&&c.push(S)}else g.helperType&&h[g.helperType]?c.push(h[g.helperType]):h[g.name]&&c.push(h[g.name]);for(var E=0;E<h._global.length;E++){var N=h._global[E];N.pred(g,this)&&ae(c,N.val)==-1&&c.push(N.val)}return c},getStateAfter:function(i,a){var c=this.doc;return i=Qe(c,i==null?c.first+c.size-1:i),Zi(this,i+1,a).state},cursorCoords:function(i,a){var c,h=this.doc.sel.primary();return i==null?c=h.head:typeof i=="object"?c=Me(this.doc,i):c=i?h.from():h.to(),br(this,c,a||"page")},charCoords:function(i,a){return bs(this,Me(this.doc,i),a||"page")},coordsChar:function(i,a){return i=Of(this,i,a||"page"),$a(this,i.left,i.top)},lineAtHeight:function(i,a){return i=Of(this,{top:i,left:0},a||"page").top,kr(this.doc,i+this.display.viewOffset)},heightAtLine:function(i,a,c){var h=!1,g;if(typeof i=="number"){var y=this.doc.first+this.doc.size-1;i<this.doc.first?i=this.doc.first:i>y&&(i=y,h=!0),g=Ne(this.doc,i)}else g=i;return ys(this,g,{top:0,left:0},a||"page",c||h).top+(h?this.doc.height-Kr(g):0)},defaultTextHeight:function(){return si(this.display)},defaultCharWidth:function(){return ai(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(i,a,c,h,g){var y=this.display;i=br(this,Me(this.doc,i));var S=i.bottom,E=i.left;if(a.style.position="absolute",a.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(a),y.sizer.appendChild(a),h=="over")S=i.top;else if(h=="above"||h=="near"){var N=Math.max(y.wrapper.clientHeight,this.doc.height),Y=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(h=="above"||i.bottom+a.offsetHeight>N)&&i.top>a.offsetHeight?S=i.top-a.offsetHeight:i.bottom+a.offsetHeight<=N&&(S=i.bottom),E+a.offsetWidth>Y&&(E=Y-a.offsetWidth)}a.style.top=S+"px",a.style.left=a.style.right="",g=="right"?(E=y.sizer.clientWidth-a.offsetWidth,a.style.right="0px"):(g=="left"?E=0:g=="middle"&&(E=(y.sizer.clientWidth-a.offsetWidth)/2),a.style.left=E+"px"),c&&Dv(this,{left:E,top:S,right:E+a.offsetWidth,bottom:S+a.offsetHeight})},triggerOnKeyDown:jt(Mc),triggerOnKeyPress:jt(Lc),triggerOnKeyUp:Ac,triggerOnMouseDown:jt(Nc),execCommand:function(i){if(bo.hasOwnProperty(i))return bo[i].call(null,this)},triggerElectric:jt(function(i){Bc(this,i)}),findPosH:function(i,a,c,h){var g=1;a<0&&(g=-1,a=-a);for(var y=Me(this.doc,i),S=0;S<a&&(y=wl(this.doc,y,g,c,h),!y.hitSide);++S);return y},moveH:jt(function(i,a){var c=this;this.extendSelectionsBy(function(h){return c.display.shift||c.doc.extend||h.empty()?wl(c.doc,h.head,i,a,c.options.rtlMoveVisually):i<0?h.from():h.to()},me)}),deleteH:jt(function(i,a){var c=this.doc.sel,h=this.doc;c.somethingSelected()?h.replaceSelection("",null,"+delete"):mi(this,function(g){var y=wl(h,g.head,i,a,!1);return i<0?{from:y,to:g.head}:{from:g.head,to:y}})}),findPosV:function(i,a,c,h){var g=1,y=h;a<0&&(g=-1,a=-a);for(var S=Me(this.doc,i),E=0;E<a;++E){var N=br(this,S,"div");if(y==null?y=N.left:N.left=y,S=Uc(this,N,g,c),S.hitSide)break}return S},moveV:jt(function(i,a){var c=this,h=this.doc,g=[],y=!this.display.shift&&!h.extend&&h.sel.somethingSelected();if(h.extendSelectionsBy(function(E){if(y)return i<0?E.from():E.to();var N=br(c,E.head,"div");E.goalColumn!=null&&(N.left=E.goalColumn),g.push(N.left);var Y=Uc(c,N,i,a);return a=="page"&&E==h.sel.primary()&&tl(c,bs(c,Y,"div").top-N.top),Y},me),g.length)for(var S=0;S<h.sel.ranges.length;S++)h.sel.ranges[S].goalColumn=g[S]}),findWordAt:function(i){var a=this.doc,c=Ne(a,i.line).text,h=i.ch,g=i.ch;if(c){var y=this.getHelper(i,"wordChars");(i.sticky=="before"||g==c.length)&&h?--h:++g;for(var S=c.charAt(h),E=L(S,y)?function(N){return L(N,y)}:/\s/.test(S)?function(N){return/\s/.test(N)}:function(N){return!/\s/.test(N)&&!L(N)};h>0&&E(c.charAt(h-1));)--h;for(;g<c.length&&E(c.charAt(g));)++g}return new rt(pe(i.line,h),pe(i.line,g))},toggleOverwrite:function(i){i!=null&&i==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?se(this.display.cursorDiv,"CodeMirror-overwrite"):Q(this.display.cursorDiv,"CodeMirror-overwrite"),ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==$()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:jt(function(i,a){no(this,i,a)}),getScrollInfo:function(){var i=this.display.scroller;return{left:i.scrollLeft,top:i.scrollTop,height:i.scrollHeight-Ar(this)-this.display.barHeight,width:i.scrollWidth-Ar(this)-this.display.barWidth,clientHeight:ja(this),clientWidth:Mn(this)}},scrollIntoView:jt(function(i,a){i==null?(i={from:this.doc.sel.primary().head,to:null},a==null&&(a=this.options.cursorScrollMargin)):typeof i=="number"?i={from:pe(i,0),to:null}:i.from==null&&(i={from:i,to:null}),i.to||(i.to=i.from),i.margin=a||0,i.from.line!=null?Fv(this,i):Df(this,i.from,i.to,i.margin)}),setSize:jt(function(i,a){var c=this,h=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};i!=null&&(this.display.wrapper.style.width=h(i)),a!=null&&(this.display.wrapper.style.height=h(a)),this.options.lineWrapping&&Cf(this);var g=this.display.viewFrom;this.doc.iter(g,this.display.viewTo,function(y){if(y.widgets){for(var S=0;S<y.widgets.length;S++)if(y.widgets[S].noHScroll){tn(c,g,"widget");break}}++g}),this.curOp.forceUpdate=!0,ve(this,"refresh",this)}),operation:function(i){return er(this,i)},startOperation:function(){return Dn(this)},endOperation:function(){return Fn(this)},refresh:jt(function(){var i=this.display.cachedTextHeight;Gt(this),this.curOp.forceUpdate=!0,to(this),no(this,this.doc.scrollLeft,this.doc.scrollTop),il(this.display),(i==null||Math.abs(i-si(this.display))>.5||this.options.lineWrapping)&&Ja(this),ve(this,"refresh",this)}),swapDoc:jt(function(i){var a=this.doc;return a.cm=null,this.state.selectingText&&this.state.selectingText(),Jf(this,i),to(this),this.display.input.reset(),no(this,i.scrollLeft,i.scrollTop),this.curOp.forceScroll=!0,Ot(this,"swapDoc",this,a),a}),phrase:function(i){var a=this.options.phrases;return a&&Object.prototype.hasOwnProperty.call(a,i)?a[i]:i},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}},qt(e),e.registerHelper=function(i,a,c){o.hasOwnProperty(i)||(o[i]=e[i]={_global:[]}),o[i][a]=c},e.registerGlobalHelper=function(i,a,c,h){e.registerHelper(i,a,h),o[i]._global.push({pred:c,val:h})}}function wl(e,t,o,i,a){var c=t,h=o,g=Ne(e,t.line),y=a&&e.direction=="rtl"?-o:o;function S(){var Ee=t.line+y;return Ee<e.first||Ee>=e.first+e.size?!1:(t=new pe(Ee,t.ch,t.sticky),g=Ne(e,Ee))}function E(Ee){var Pe;if(i=="codepoint"){var Ae=g.text.charCodeAt(t.ch+(o>0?0:-1));if(isNaN(Ae))Pe=null;else{var We=o>0?Ae>=55296&&Ae<56320:Ae>=56320&&Ae<57343;Pe=new pe(t.line,Math.max(0,Math.min(g.text.length,t.ch+o*(We?2:1))),-o)}}else a?Pe=bg(e.cm,g,t,o):Pe=pl(g,t,o);if(Pe==null)if(!Ee&&S())t=vl(a,e.cm,g,t.line,y);else return!1;else t=Pe;return!0}if(i=="char"||i=="codepoint")E();else if(i=="column")E(!0);else if(i=="word"||i=="group")for(var N=null,Y=i=="group",K=e.cm&&e.cm.getHelper(t,"wordChars"),re=!0;!(o<0&&!E(!re));re=!1){var ce=g.text.charAt(t.ch)||`
19
+ `,xe=L(ce,K)?"w":Y&&ce==`
20
+ `?"n":!Y||/\s/.test(ce)?null:"p";if(Y&&!re&&!xe&&(xe="s"),N&&N!=xe){o<0&&(o=1,E(),t.sticky="after");break}if(xe&&(N=xe),o>0&&!E(!re))break}var Te=Ls(e,t,c,h,!0);return D(c,Te)&&(Te.hitSide=!0),Te}function Uc(e,t,o,i){var a=e.doc,c=t.left,h;if(i=="page"){var g=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(g-.5*si(e.display),3);h=(o>0?t.bottom:t.top)+o*y}else i=="line"&&(h=o>0?t.bottom+3:t.top-3);for(var S;S=$a(e,c,h),!!S.outside;){if(o<0?h<=0:h>=a.height){S.hitSide=!0;break}h+=o*5}return S}var ot=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ne,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ot.prototype.init=function(e){var t=this,o=this,i=o.cm,a=o.div=e.lineDiv;a.contentEditable=!0,jc(a,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize);function c(g){for(var y=g.target;y;y=y.parentNode){if(y==a)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(y.className))break}return!1}Fe(a,"paste",function(g){!c(g)||Be(i,g)||Hc(g,i)||m<=11&&setTimeout(kt(i,function(){return t.updateFromDOM()}),20)}),Fe(a,"compositionstart",function(g){t.composing={data:g.data,done:!1}}),Fe(a,"compositionupdate",function(g){t.composing||(t.composing={data:g.data,done:!1})}),Fe(a,"compositionend",function(g){t.composing&&(g.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Fe(a,"touchstart",function(){return o.forceCompositionEnd()}),Fe(a,"input",function(){t.composing||t.readFromDOMSoon()});function h(g){if(!(!c(g)||Be(i,g))){if(i.somethingSelected())zs({lineWise:!1,text:i.getSelections()}),g.type=="cut"&&i.replaceSelection("",null,"cut");else if(i.options.lineWiseCopyCut){var y=Wc(i);zs({lineWise:!0,text:y.text}),g.type=="cut"&&i.operation(function(){i.setSelections(y.ranges,0,Re),i.replaceSelection("",null,"cut")})}else return;if(g.clipboardData){g.clipboardData.clearData();var S=wr.text.join(`
21
+ `);if(g.clipboardData.setData("Text",S),g.clipboardData.getData("Text")==S){g.preventDefault();return}}var E=Kc(),N=E.firstChild;i.display.lineSpace.insertBefore(E,i.display.lineSpace.firstChild),N.value=wr.text.join(`
22
+ `);var Y=$();Ke(N),setTimeout(function(){i.display.lineSpace.removeChild(E),Y.focus(),Y==a&&o.showPrimarySelection()},50)}}Fe(a,"copy",h),Fe(a,"cut",h)},ot.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ot.prototype.prepareSelection=function(){var e=Nf(this.cm,!1);return e.focus=$()==this.div,e},ot.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ot.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ot.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,o=t.doc.sel.primary(),i=o.from(),a=o.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||a.line<t.display.viewFrom){e.removeAllRanges();return}var c=Hs(t,e.anchorNode,e.anchorOffset),h=Hs(t,e.focusNode,e.focusOffset);if(!(c&&!c.bad&&h&&!h.bad&&T(Ue(c,h),i)==0&&T(ye(c,h),a)==0)){var g=t.display.view,y=i.line>=t.display.viewFrom&&Gc(t,i)||{node:g[0].measure.map[2],offset:0},S=a.line<t.display.viewTo&&Gc(t,a);if(!S){var E=g[g.length-1].measure,N=E.maps?E.maps[E.maps.length-1]:E.map;S={node:N[N.length-1],offset:N[N.length-2]-N[N.length-3]}}if(!y||!S){e.removeAllRanges();return}var Y=e.rangeCount&&e.getRangeAt(0),K;try{K=z(y.node,y.offset,S.offset,S.node)}catch{}K&&(!u&&t.state.focused?(e.collapse(y.node,y.offset),K.collapsed||(e.removeAllRanges(),e.addRange(K))):(e.removeAllRanges(),e.addRange(K)),Y&&e.anchorNode==null?e.addRange(Y):u&&this.startGracePeriod()),this.rememberSelection()}},ot.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)},ot.prototype.showMultipleSelections=function(e){k(this.cm.display.cursorDiv,e.cursors),k(this.cm.display.selectionDiv,e.selection)},ot.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},ot.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return B(this.div,t)},ot.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||$()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ot.prototype.blur=function(){this.div.blur()},ot.prototype.getField=function(){return this.div},ot.prototype.supportsTouch=function(){return!0},ot.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):er(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function o(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,o))}this.polling.set(this.cm.options.pollInterval,o)},ot.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},ot.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(M&&C&&this.cm.display.gutterSpecs.length&&Bg(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var o=Hs(t,e.anchorNode,e.anchorOffset),i=Hs(t,e.focusNode,e.focusOffset);o&&i&&er(t,function(){Dt(t.doc,nn(o,i),Re),(o.bad||i.bad)&&(t.curOp.selectionChanged=!0)})}}},ot.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,o=e.doc.sel.primary(),i=o.from(),a=o.to();if(i.ch==0&&i.line>e.firstLine()&&(i=pe(i.line-1,Ne(e.doc,i.line-1).length)),a.ch==Ne(e.doc,a.line).text.length&&a.line<e.lastLine()&&(a=pe(a.line+1,0)),i.line<t.viewFrom||a.line>t.viewTo-1)return!1;var c,h,g;i.line==t.viewFrom||(c=Nn(e,i.line))==0?(h=tt(t.view[0].line),g=t.view[0].node):(h=tt(t.view[c].line),g=t.view[c-1].node.nextSibling);var y=Nn(e,a.line),S,E;if(y==t.view.length-1?(S=t.viewTo-1,E=t.lineDiv.lastChild):(S=tt(t.view[y+1].line)-1,E=t.view[y+1].node.previousSibling),!g)return!1;for(var N=e.doc.splitLines(Wg(e,g,E,h,S)),Y=Or(e.doc,pe(h,0),pe(S,Ne(e.doc,S).text.length));N.length>1&&Y.length>1;)if(X(N)==X(Y))N.pop(),Y.pop(),S--;else if(N[0]==Y[0])N.shift(),Y.shift(),h++;else break;for(var K=0,re=0,ce=N[0],xe=Y[0],Te=Math.min(ce.length,xe.length);K<Te&&ce.charCodeAt(K)==xe.charCodeAt(K);)++K;for(var Ee=X(N),Pe=X(Y),Ae=Math.min(Ee.length-(N.length==1?K:0),Pe.length-(Y.length==1?K:0));re<Ae&&Ee.charCodeAt(Ee.length-re-1)==Pe.charCodeAt(Pe.length-re-1);)++re;if(N.length==1&&Y.length==1&&h==i.line)for(;K&&K>i.ch&&Ee.charCodeAt(Ee.length-re-1)==Pe.charCodeAt(Pe.length-re-1);)K--,re++;N[N.length-1]=Ee.slice(0,Ee.length-re).replace(/^\u200b+/,""),N[0]=N[0].slice(K).replace(/\u200b+$/,"");var We=pe(h,K),ze=pe(S,Y.length?X(Y).length-re:0);if(N.length>1||N[0]||T(We,ze))return pi(e.doc,N,We,ze,"+input"),!0},ot.prototype.ensurePolled=function(){this.forceCompositionEnd()},ot.prototype.reset=function(){this.forceCompositionEnd()},ot.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ot.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))},ot.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&er(this.cm,function(){return Gt(e.cm)})},ot.prototype.setUneditable=function(e){e.contentEditable="false"},ot.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||kt(this.cm,xl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},ot.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ot.prototype.onContextMenu=function(){},ot.prototype.resetPosition=function(){},ot.prototype.needsContentAttribute=!0;function Gc(e,t){var o=Ka(e,t.line);if(!o||o.hidden)return null;var i=Ne(e.doc,t.line),a=yf(o,i,t.line),c=dt(i,e.doc.direction),h="left";if(c){var g=je(c,t.ch);h=g%2?"right":"left"}var y=wf(a.map,t.ch,h);return y.offset=y.collapse=="right"?y.end:y.start,y}function Bg(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function bi(e,t){return t&&(e.bad=!0),e}function Wg(e,t,o,i,a){var c="",h=!1,g=e.doc.lineSeparator(),y=!1;function S(K){return function(re){return re.id==K}}function E(){h&&(c+=g,y&&(c+=g),h=y=!1)}function N(K){K&&(E(),c+=K)}function Y(K){if(K.nodeType==1){var re=K.getAttribute("cm-text");if(re){N(re);return}var ce=K.getAttribute("cm-marker"),xe;if(ce){var Te=e.findMarks(pe(i,0),pe(a+1,0),S(+ce));Te.length&&(xe=Te[0].find(0))&&N(Or(e.doc,xe.from,xe.to).join(g));return}if(K.getAttribute("contenteditable")=="false")return;var Ee=/^(pre|div|p|li|table|br)$/i.test(K.nodeName);if(!/^br$/i.test(K.nodeName)&&K.textContent.length==0)return;Ee&&E();for(var Pe=0;Pe<K.childNodes.length;Pe++)Y(K.childNodes[Pe]);/^(pre|p)$/i.test(K.nodeName)&&(y=!0),Ee&&(h=!0)}else K.nodeType==3&&N(K.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Y(t),t!=o;)t=t.nextSibling,y=!1;return c}function Hs(e,t,o){var i;if(t==e.display.lineDiv){if(i=e.display.lineDiv.childNodes[o],!i)return bi(e.clipPos(pe(e.display.viewTo-1)),!0);t=null,o=0}else for(i=t;;i=i.parentNode){if(!i||i==e.display.lineDiv)return null;if(i.parentNode&&i.parentNode==e.display.lineDiv)break}for(var a=0;a<e.display.view.length;a++){var c=e.display.view[a];if(c.node==i)return jg(c,t,o)}}function jg(e,t,o){var i=e.text.firstChild,a=!1;if(!t||!B(i,t))return bi(pe(tt(e.line),0),!0);if(t==i&&(a=!0,t=i.childNodes[o],o=0,!t)){var c=e.rest?X(e.rest):e.line;return bi(pe(tt(c),c.text.length),a)}var h=t.nodeType==3?t:null,g=t;for(!h&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(h=t.firstChild,o&&(o=h.nodeValue.length));g.parentNode!=i;)g=g.parentNode;var y=e.measure,S=y.maps;function E(xe,Te,Ee){for(var Pe=-1;Pe<(S?S.length:0);Pe++)for(var Ae=Pe<0?y.map:S[Pe],We=0;We<Ae.length;We+=3){var ze=Ae[We+2];if(ze==xe||ze==Te){var Ze=tt(Pe<0?e.line:e.rest[Pe]),at=Ae[We]+Ee;return(Ee<0||ze!=xe)&&(at=Ae[We+(Ee?1:0)]),pe(Ze,at)}}}var N=E(h,g,o);if(N)return bi(N,a);for(var Y=g.nextSibling,K=h?h.nodeValue.length-o:0;Y;Y=Y.nextSibling){if(N=E(Y,Y.firstChild,0),N)return bi(pe(N.line,N.ch-K),a);K+=Y.textContent.length}for(var re=g.previousSibling,ce=o;re;re=re.previousSibling){if(N=E(re,re.firstChild,-1),N)return bi(pe(N.line,N.ch+ce),a);ce+=re.textContent.length}}var mt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ne,this.hasSelection=!1,this.composing=null};mt.prototype.init=function(e){var t=this,o=this,i=this.cm;this.createField(e);var a=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),W&&(a.style.width="0px"),Fe(a,"input",function(){p&&m>=9&&t.hasSelection&&(t.hasSelection=null),o.poll()}),Fe(a,"paste",function(h){Be(i,h)||Hc(h,i)||(i.state.pasteIncoming=+new Date,o.fastPoll())});function c(h){if(!Be(i,h)){if(i.somethingSelected())zs({lineWise:!1,text:i.getSelections()});else if(i.options.lineWiseCopyCut){var g=Wc(i);zs({lineWise:!0,text:g.text}),h.type=="cut"?i.setSelections(g.ranges,null,Re):(o.prevInput="",a.value=g.text.join(`
23
+ `),Ke(a))}else return;h.type=="cut"&&(i.state.cutIncoming=+new Date)}}Fe(a,"cut",c),Fe(a,"copy",c),Fe(e.scroller,"paste",function(h){if(!(Ur(e,h)||Be(i,h))){if(!a.dispatchEvent){i.state.pasteIncoming=+new Date,o.focus();return}var g=new Event("paste");g.clipboardData=h.clipboardData,a.dispatchEvent(g)}}),Fe(e.lineSpace,"selectstart",function(h){Ur(e,h)||Pt(h)}),Fe(a,"compositionstart",function(){var h=i.getCursor("from");o.composing&&o.composing.range.clear(),o.composing={start:h,range:i.markText(h,i.getCursor("to"),{className:"CodeMirror-composing"})}}),Fe(a,"compositionend",function(){o.composing&&(o.poll(),o.composing.range.clear(),o.composing=null)})},mt.prototype.createField=function(e){this.wrapper=Kc(),this.textarea=this.wrapper.firstChild},mt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},mt.prototype.prepareSelection=function(){var e=this.cm,t=e.display,o=e.doc,i=Nf(e);if(e.options.moveInputWithCursor){var a=br(e,o.sel.primary().head,"div"),c=t.wrapper.getBoundingClientRect(),h=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,a.top+h.top-c.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,a.left+h.left-c.left))}return i},mt.prototype.showSelection=function(e){var t=this.cm,o=t.display;k(o.cursorDiv,e.cursors),k(o.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},mt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var o=t.getSelection();this.textarea.value=o,t.state.focused&&Ke(this.textarea),p&&m>=9&&(this.hasSelection=o)}else e||(this.prevInput=this.textarea.value="",p&&m>=9&&(this.hasSelection=null))}},mt.prototype.getField=function(){return this.textarea},mt.prototype.supportsTouch=function(){return!1},mt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!I||$()!=this.textarea))try{this.textarea.focus()}catch{}},mt.prototype.blur=function(){this.textarea.blur()},mt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},mt.prototype.receivedFocus=function(){this.slowPoll()},mt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},mt.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function o(){var i=t.poll();!i&&!e?(e=!0,t.polling.set(60,o)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,o)},mt.prototype.poll=function(){var e=this,t=this.cm,o=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||ls(o)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var a=o.value;if(a==i&&!t.somethingSelected())return!1;if(p&&m>=9&&this.hasSelection===a||H&&/[\uf700-\uf7ff]/.test(a))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var c=a.charCodeAt(0);if(c==8203&&!i&&(i="\u200B"),c==8666)return this.reset(),this.cm.execCommand("undo")}for(var h=0,g=Math.min(i.length,a.length);h<g&&i.charCodeAt(h)==a.charCodeAt(h);)++h;return er(t,function(){xl(t,a.slice(h),i.length-h,null,e.composing?"*compose":null),a.length>1e3||a.indexOf(`
24
+ `)>-1?o.value=e.prevInput="":e.prevInput=a,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},mt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},mt.prototype.onKeyPress=function(){p&&m>=9&&(this.hasSelection=null),this.fastPoll()},mt.prototype.onContextMenu=function(e){var t=this,o=t.cm,i=o.display,a=t.textarea;t.contextMenuPending&&t.contextMenuPending();var c=Ln(o,e),h=i.scroller.scrollTop;if(!c||P)return;var g=o.options.resetSelectionOnContextMenu;g&&o.doc.sel.contains(c)==-1&&kt(o,Dt)(o.doc,nn(c),Re);var y=a.style.cssText,S=t.wrapper.style.cssText,E=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",a.style.cssText=`position: absolute; width: 30px; height: 30px;
25
+ top: `+(e.clientY-E.top-5)+"px; left: "+(e.clientX-E.left-5)+`px;
26
+ z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`;
27
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var N;b&&(N=window.scrollY),i.input.focus(),b&&window.scrollTo(null,N),i.input.reset(),o.somethingSelected()||(a.value=t.prevInput=" "),t.contextMenuPending=K,i.selForContextMenu=o.doc.sel,clearTimeout(i.detectingSelectAll);function Y(){if(a.selectionStart!=null){var ce=o.somethingSelected(),xe="\u200B"+(ce?a.value:"");a.value="\u21DA",a.value=xe,t.prevInput=ce?"":"\u200B",a.selectionStart=1,a.selectionEnd=xe.length,i.selForContextMenu=o.doc.sel}}function K(){if(t.contextMenuPending==K&&(t.contextMenuPending=!1,t.wrapper.style.cssText=S,a.style.cssText=y,p&&m<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=h),a.selectionStart!=null)){(!p||p&&m<9)&&Y();var ce=0,xe=function(){i.selForContextMenu==o.doc.sel&&a.selectionStart==0&&a.selectionEnd>0&&t.prevInput=="\u200B"?kt(o,lc)(o):ce++<10?i.detectingSelectAll=setTimeout(xe,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(xe,200)}}if(p&&m>=9&&Y(),te){kn(e);var re=function(){Oe(window,"mouseup",re),setTimeout(K,20)};Fe(window,"mouseup",re)}else setTimeout(K,50)},mt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},mt.prototype.setUneditable=function(){},mt.prototype.needsContentAttribute=!1;function Kg(e,t){if(t=t?Ie(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var o=$();t.autofocus=o==e||e.getAttribute("autofocus")!=null&&o==document.body}function i(){e.value=g.getValue()}var a;if(e.form&&(Fe(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var c=e.form;a=c.submit;try{var h=c.submit=function(){i(),c.submit=a,c.submit(),c.submit=h}}catch{}}t.finishInit=function(y){y.save=i,y.getTextArea=function(){return e},y.toTextArea=function(){y.toTextArea=isNaN,i(),e.parentNode.removeChild(y.getWrapperElement()),e.style.display="",e.form&&(Oe(e.form,"submit",i),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=a))}},e.style.display="none";var g=ut(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},t);return g}function Ug(e){e.off=Oe,e.on=Fe,e.wheelEventPixels=Zv,e.Doc=$t,e.splitLines=Gi,e.countColumn=$e,e.findColumn=Le,e.isWordChar=he,e.Pass=be,e.signal=ve,e.Line=ni,e.changeEnd=on,e.scrollbarModel=Hf,e.Pos=pe,e.cmpPos=T,e.modes=pr,e.mimeModes=ir,e.resolveMode=ei,e.getMode=ti,e.modeExtensions=mr,e.extendMode=yr,e.copyState=or,e.startState=Xi,e.innerMode=Yi,e.commands=bo,e.keyMap=$r,e.keyName=Tc,e.isModifierKey=Sc,e.lookupKey=gi,e.normalizeKeyMap=yg,e.StringStream=pt,e.SharedTextMarker=go,e.TextMarker=an,e.LineWidget=vo,e.e_preventDefault=Pt,e.e_stopPropagation=gr,e.e_stop=kn,e.addClass=se,e.contains=B,e.rmClass=Q,e.keyNames=ln}Rg(ut),Hg(ut);var Gg="iter insert remove copy getEditor constructor".split(" ");for(var Bs in $t.prototype)$t.prototype.hasOwnProperty(Bs)&&ae(Gg,Bs)<0&&(ut.prototype[Bs]=function(e){return function(){return e.apply(this.doc,arguments)}}($t.prototype[Bs]));return qt($t),ut.inputStyles={textarea:mt,contenteditable:ot},ut.defineMode=function(e){!ut.defaults.mode&&e!="null"&&(ut.defaults.mode=e),fs.apply(this,arguments)},ut.defineMIME=Wr,ut.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ut.defineMIME("text/plain","null"),ut.defineExtension=function(e,t){ut.prototype[e]=t},ut.defineDocExtension=function(e,t){$t.prototype[e]=t},ut.fromTextArea=Kg,Ug(ut),ut.version="5.65.0",ut})})(qn);var xw=qn.exports,sx={exports:{}};(function(r,n){(function(l){l(qn.exports)})(function(l){l.defineMode("javascript",function(s,u){var f=s.indentUnit,d=u.statementIndent,v=u.jsonld,p=u.json||v,m=u.trackScope!==!1,b=u.typescript,w=u.wordCharacters||/[\w$\xa1-\uffff]/,C=function(){function T(Rt){return{type:Rt,style:"keyword"}}var D=T("keyword a"),fe=T("keyword b"),ye=T("keyword c"),Ue=T("keyword d"),Qe=T("operator"),Me={type:"atom",style:"atom"};return{if:T("if"),while:D,with:D,else:fe,do:fe,try:fe,finally:fe,return:Ue,break:Ue,continue:Ue,new:T("new"),delete:ye,void:ye,throw:ye,debugger:T("debugger"),var:T("var"),const:T("var"),let:T("var"),function:T("function"),catch:T("catch"),for:T("for"),switch:T("switch"),case:T("case"),default:T("default"),in:Qe,typeof:Qe,instanceof:Qe,true:Me,false:Me,null:Me,undefined:Me,NaN:Me,Infinity:Me,this:T("this"),class:T("class"),super:T("atom"),yield:ye,export:T("export"),import:T("import"),extends:ye,await:ye}}(),P=/[+\-*&%=<>!?|~^@]/,A=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function G(T){for(var D=!1,fe,ye=!1;(fe=T.next())!=null;){if(!D){if(fe=="/"&&!ye)return;fe=="["?ye=!0:ye&&fe=="]"&&(ye=!1)}D=!D&&fe=="\\"}}var F,W;function M(T,D,fe){return F=T,W=fe,D}function I(T,D){var fe=T.next();if(fe=='"'||fe=="'")return D.tokenize=H(fe),D.tokenize(T,D);if(fe=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return M("number","number");if(fe=="."&&T.match(".."))return M("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(fe))return M(fe);if(fe=="="&&T.eat(">"))return M("=>","operator");if(fe=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return M("number","number");if(/\d/.test(fe))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),M("number","number");if(fe=="/")return T.eat("*")?(D.tokenize=q,q(T,D)):T.eat("/")?(T.skipToEnd(),M("comment","comment")):pe(T,D,1)?(G(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),M("regexp","string-2")):(T.eat("="),M("operator","operator",T.current()));if(fe=="`")return D.tokenize=_,_(T,D);if(fe=="#"&&T.peek()=="!")return T.skipToEnd(),M("meta","meta");if(fe=="#"&&T.eatWhile(w))return M("variable","property");if(fe=="<"&&T.match("!--")||fe=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),M("comment","comment");if(P.test(fe))return(fe!=">"||!D.lexical||D.lexical.type!=">")&&(T.eat("=")?(fe=="!"||fe=="=")&&T.eat("="):/[<>*+\-|&?]/.test(fe)&&(T.eat(fe),fe==">"&&T.eat(fe))),fe=="?"&&T.eat(".")?M("."):M("operator","operator",T.current());if(w.test(fe)){T.eatWhile(w);var ye=T.current();if(D.lastType!="."){if(C.propertyIsEnumerable(ye)){var Ue=C[ye];return M(Ue.type,Ue.style,ye)}if(ye=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return M("async","keyword",ye)}return M("variable","variable",ye)}}function H(T){return function(D,fe){var ye=!1,Ue;if(v&&D.peek()=="@"&&D.match(A))return fe.tokenize=I,M("jsonld-keyword","meta");for(;(Ue=D.next())!=null&&!(Ue==T&&!ye);)ye=!ye&&Ue=="\\";return ye||(fe.tokenize=I),M("string","string")}}function q(T,D){for(var fe=!1,ye;ye=T.next();){if(ye=="/"&&fe){D.tokenize=I;break}fe=ye=="*"}return M("comment","comment")}function _(T,D){for(var fe=!1,ye;(ye=T.next())!=null;){if(!fe&&(ye=="`"||ye=="$"&&T.eat("{"))){D.tokenize=I;break}fe=!fe&&ye=="\\"}return M("quasi","string-2",T.current())}var V="([{}])";function J(T,D){D.fatArrowAt&&(D.fatArrowAt=null);var fe=T.string.indexOf("=>",T.start);if(!(fe<0)){if(b){var ye=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,fe));ye&&(fe=ye.index)}for(var Ue=0,Qe=!1,Me=fe-1;Me>=0;--Me){var Rt=T.string.charAt(Me),sr=V.indexOf(Rt);if(sr>=0&&sr<3){if(!Ue){++Me;break}if(--Ue==0){Rt=="("&&(Qe=!0);break}}else if(sr>=3&&sr<6)++Ue;else if(w.test(Rt))Qe=!0;else if(/["'\/`]/.test(Rt))for(;;--Me){if(Me==0)return;var ri=T.string.charAt(Me-1);if(ri==Rt&&T.string.charAt(Me-2)!="\\"){Me--;break}}else if(Qe&&!Ue){++Me;break}}Qe&&!Ue&&(D.fatArrowAt=Me)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(T,D,fe,ye,Ue,Qe){this.indented=T,this.column=D,this.type=fe,this.prev=Ue,this.info=Qe,ye!=null&&(this.align=ye)}function Q(T,D){if(!m)return!1;for(var fe=T.localVars;fe;fe=fe.next)if(fe.name==D)return!0;for(var ye=T.context;ye;ye=ye.prev)for(var fe=ye.vars;fe;fe=fe.next)if(fe.name==D)return!0}function ee(T,D,fe,ye,Ue){var Qe=T.cc;for(k.state=T,k.stream=Ue,k.marked=null,k.cc=Qe,k.style=D,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var Me=Qe.length?Qe.pop():p?me:Re;if(Me(fe,ye)){for(;Qe.length&&Qe[Qe.length-1].lex;)Qe.pop()();return k.marked?k.marked:fe=="variable"&&Q(T,ye)?"variable-2":D}}}var k={state:null,column:null,marked:null,cc:null};function O(){for(var T=arguments.length-1;T>=0;T--)k.cc.push(arguments[T])}function x(){return O.apply(null,arguments),!0}function z(T,D){for(var fe=D;fe;fe=fe.next)if(fe.name==T)return!0;return!1}function B(T){var D=k.state;if(k.marked="def",!!m){if(D.context){if(D.lexical.info=="var"&&D.context&&D.context.block){var fe=$(T,D.context);if(fe!=null){D.context=fe;return}}else if(!z(T,D.localVars)){D.localVars=new Ke(T,D.localVars);return}}u.globalVars&&!z(T,D.globalVars)&&(D.globalVars=new Ke(T,D.globalVars))}}function $(T,D){if(D)if(D.block){var fe=$(T,D.prev);return fe?fe==D.prev?D:new de(fe,D.vars,!0):null}else return z(T,D.vars)?D:new de(D.prev,new Ke(T,D.vars),!1);else return null}function se(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function de(T,D,fe){this.prev=T,this.vars=D,this.block=fe}function Ke(T,D){this.name=T,this.next=D}var Ve=new Ke("this",new Ke("arguments",null));function Ie(){k.state.context=new de(k.state.context,k.state.localVars,!1),k.state.localVars=Ve}function $e(){k.state.context=new de(k.state.context,k.state.localVars,!0),k.state.localVars=null}function ne(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}ne.lex=!0;function ae(T,D){var fe=function(){var ye=k.state,Ue=ye.indented;if(ye.lexical.type=="stat")Ue=ye.lexical.indented;else for(var Qe=ye.lexical;Qe&&Qe.type==")"&&Qe.align;Qe=Qe.prev)Ue=Qe.indented;ye.lexical=new ie(Ue,k.stream.column(),T,null,ye.lexical,D)};return fe.lex=!0,fe}function le(){var T=k.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}le.lex=!0;function be(T){function D(fe){return fe==T?x():T==";"||fe=="}"||fe==")"||fe=="]"?O():x(D)}return D}function Re(T,D){return T=="var"?x(ae("vardef",D),Ki,be(";"),le):T=="keyword a"?x(ae("form"),R,Re,le):T=="keyword b"?x(ae("form"),Re,le):T=="keyword d"?k.stream.match(/^\s*$/,!1)?x():x(ae("stat"),X,be(";"),le):T=="debugger"?x(be(";")):T=="{"?x(ae("}"),$e,dt,le,ne):T==";"?x():T=="if"?(k.state.lexical.info=="else"&&k.state.cc[k.state.cc.length-1]==le&&k.state.cc.pop()(),x(ae("form"),R,Re,le,ls)):T=="function"?x(pr):T=="for"?x(ae("form"),$e,us,Re,ne,le):T=="class"||b&&D=="interface"?(k.marked="keyword",x(ae("form",T=="class"?T:D),ti,le)):T=="variable"?b&&D=="declare"?(k.marked="keyword",x(Re)):b&&(D=="module"||D=="enum"||D=="type")&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword",D=="enum"?x(kr):D=="type"?x(fs,be("operator"),ve,be(";")):x(ae("form"),Ut,be("{"),ae("}"),dt,le,le)):b&&D=="namespace"?(k.marked="keyword",x(ae("form"),me,Re,le)):b&&D=="abstract"?(k.marked="keyword",x(Re)):x(ae("stat"),Se):T=="switch"?x(ae("form"),R,be("{"),ae("}","switch"),$e,dt,le,le,ne):T=="case"?x(me,be(":")):T=="default"?x(be(":")):T=="catch"?x(ae("form"),Ie,ke,Re,le,ne):T=="export"?x(ae("stat"),Yi,le):T=="import"?x(ae("stat"),pt,le):T=="async"?x(Re):D=="@"?x(me,Re):O(ae("stat"),me,be(";"),le)}function ke(T){if(T=="(")return x(Wr,be(")"))}function me(T,D){return j(T,D,!1)}function Le(T,D){return j(T,D,!0)}function R(T){return T!="("?O():x(ae(")"),X,be(")"),le)}function j(T,D,fe){if(k.state.fatArrowAt==k.stream.start){var ye=fe?he:we;if(T=="(")return x(Ie,ae(")"),je(Wr,")"),le,be("=>"),ye,ne);if(T=="variable")return O(Ie,Ut,be("=>"),ye,ne)}var Ue=fe?ue:oe;return te.hasOwnProperty(T)?x(Ue):T=="function"?x(pr,Ue):T=="class"||b&&D=="interface"?(k.marked="keyword",x(ae("form"),ei,le)):T=="keyword c"||T=="async"?x(fe?Le:me):T=="("?x(ae(")"),X,be(")"),le,Ue):T=="operator"||T=="spread"?x(fe?Le:me):T=="["?x(ae("]"),tt,le,Ue):T=="{"?gt(Ge,"}",null,Ue):T=="quasi"?O(ge,Ue):T=="new"?x(L(fe)):x()}function X(T){return T.match(/[;\}\)\],]/)?O():O(me)}function oe(T,D){return T==","?x(X):ue(T,D,!1)}function ue(T,D,fe){var ye=fe==!1?oe:ue,Ue=fe==!1?me:Le;if(T=="=>")return x(Ie,fe?he:we,ne);if(T=="operator")return/\+\+|--/.test(D)||b&&D=="!"?x(ye):b&&D=="<"&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?x(ae(">"),je(ve,">"),le,ye):D=="?"?x(me,be(":"),Ue):x(Ue);if(T=="quasi")return O(ge,ye);if(T!=";"){if(T=="(")return gt(Le,")","call",ye);if(T==".")return x(De,ye);if(T=="[")return x(ae("]"),X,be("]"),le,ye);if(b&&D=="as")return k.marked="keyword",x(ve,ye);if(T=="regexp")return k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),x(Ue)}}function ge(T,D){return T!="quasi"?O():D.slice(D.length-2)!="${"?x(ge):x(X,Ce)}function Ce(T){if(T=="}")return k.marked="string-2",k.state.tokenize=_,x(ge)}function we(T){return J(k.stream,k.state),O(T=="{"?Re:me)}function he(T){return J(k.stream,k.state),O(T=="{"?Re:Le)}function L(T){return function(D){return D=="."?x(T?U:Z):D=="variable"&&b?x(kn,T?ue:oe):O(T?Le:me)}}function Z(T,D){if(D=="target")return k.marked="keyword",x(oe)}function U(T,D){if(D=="target")return k.marked="keyword",x(ue)}function Se(T){return T==":"?x(le,Re):O(oe,be(";"),le)}function De(T){if(T=="variable")return k.marked="property",x()}function Ge(T,D){if(T=="async")return k.marked="property",x(Ge);if(T=="variable"||k.style=="keyword"){if(k.marked="property",D=="get"||D=="set")return x(it);var fe;return b&&k.state.fatArrowAt==k.stream.start&&(fe=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+fe[0].length),x(Je)}else{if(T=="number"||T=="string")return k.marked=v?"property":k.style+" property",x(Je);if(T=="jsonld-keyword")return x(Je);if(b&&se(D))return k.marked="keyword",x(Ge);if(T=="[")return x(me,Wt,be("]"),Je);if(T=="spread")return x(Le,Je);if(D=="*")return k.marked="keyword",x(Ge);if(T==":")return O(Je)}}function it(T){return T!="variable"?O(Je):(k.marked="property",x(pr))}function Je(T){if(T==":")return x(Le);if(T=="(")return O(pr)}function je(T,D,fe){function ye(Ue,Qe){if(fe?fe.indexOf(Ue)>-1:Ue==","){var Me=k.state.lexical;return Me.info=="call"&&(Me.pos=(Me.pos||0)+1),x(function(Rt,sr){return Rt==D||sr==D?O():O(T)},ye)}return Ue==D||Qe==D?x():fe&&fe.indexOf(";")>-1?O(T):x(be(D))}return function(Ue,Qe){return Ue==D||Qe==D?x():O(T,ye)}}function gt(T,D,fe){for(var ye=3;ye<arguments.length;ye++)k.cc.push(arguments[ye]);return x(ae(D,fe),je(T,D),le)}function dt(T){return T=="}"?x():O(Re,dt)}function Wt(T,D){if(b){if(T==":")return x(ve);if(D=="?")return x(Wt)}}function Fe(T,D){if(b&&(T==":"||D=="in"))return x(ve)}function Ye(T){if(b&&T==":")return k.stream.match(/^\s*\w+\s+is\b/,!1)?x(me,Oe,ve):x(ve)}function Oe(T,D){if(D=="is")return k.marked="keyword",x()}function ve(T,D){if(D=="keyof"||D=="typeof"||D=="infer"||D=="readonly")return k.marked="keyword",x(D=="typeof"?Le:ve);if(T=="variable"||D=="void")return k.marked="type",x(nr);if(D=="|"||D=="&")return x(ve);if(T=="string"||T=="number"||T=="atom")return x(nr);if(T=="[")return x(ae("]"),je(ve,"]",","),le,nr);if(T=="{")return x(ae("}"),qe,le,nr);if(T=="(")return x(je(gr,")"),Be,nr);if(T=="<")return x(je(ve,">"),ve);if(T=="quasi")return O(qt,nr)}function Be(T){if(T=="=>")return x(ve)}function qe(T){return T.match(/[\}\)\]]/)?x():T==","||T==";"?x(qe):O(et,qe)}function et(T,D){if(T=="variable"||k.style=="keyword")return k.marked="property",x(et);if(D=="?"||T=="number"||T=="string")return x(et);if(T==":")return x(ve);if(T=="[")return x(be("variable"),Fe,be("]"),et);if(T=="(")return O(ir,et);if(!T.match(/[;\}\)\],]/))return x()}function qt(T,D){return T!="quasi"?O():D.slice(D.length-2)!="${"?x(qt):x(ve,Pt)}function Pt(T){if(T=="}")return k.marked="string-2",k.state.tokenize=_,x(qt)}function gr(T,D){return T=="variable"&&k.stream.match(/^\s*[?:]/,!1)||D=="?"?x(gr):T==":"?x(ve):T=="spread"?x(gr):O(ve)}function nr(T,D){if(D=="<")return x(ae(">"),je(ve,">"),le,nr);if(D=="|"||T=="."||D=="&")return x(ve);if(T=="[")return x(ve,be("]"),nr);if(D=="extends"||D=="implements")return k.marked="keyword",x(ve);if(D=="?")return x(ve,be(":"),ve)}function kn(T,D){if(D=="<")return x(ae(">"),je(ve,">"),le,nr)}function qr(){return O(ve,ss)}function ss(T,D){if(D=="=")return x(ve)}function Ki(T,D){return D=="enum"?(k.marked="keyword",x(kr)):O(Ut,Wt,Pr,Gi)}function Ut(T,D){if(b&&se(D))return k.marked="keyword",x(Ut);if(T=="variable")return B(D),x();if(T=="spread")return x(Ut);if(T=="[")return gt(Ui,"]");if(T=="{")return gt(as,"}")}function as(T,D){return T=="variable"&&!k.stream.match(/^\s*:/,!1)?(B(D),x(Pr)):(T=="variable"&&(k.marked="property"),T=="spread"?x(Ut):T=="}"?O():T=="["?x(me,be("]"),be(":"),as):x(be(":"),Ut,Pr))}function Ui(){return O(Ut,Pr)}function Pr(T,D){if(D=="=")return x(Le)}function Gi(T){if(T==",")return x(Ki)}function ls(T,D){if(T=="keyword b"&&D=="else")return x(ae("form","else"),Re,le)}function us(T,D){if(D=="await")return x(us);if(T=="(")return x(ae(")"),$i,le)}function $i(T){return T=="var"?x(Ki,_r):T=="variable"?x(_r):O(_r)}function _r(T,D){return T==")"?x():T==";"?x(_r):D=="in"||D=="of"?(k.marked="keyword",x(me,_r)):O(me,_r)}function pr(T,D){if(D=="*")return k.marked="keyword",x(pr);if(T=="variable")return B(D),x(pr);if(T=="(")return x(Ie,ae(")"),je(Wr,")"),le,Ye,Re,ne);if(b&&D=="<")return x(ae(">"),je(qr,">"),le,pr)}function ir(T,D){if(D=="*")return k.marked="keyword",x(ir);if(T=="variable")return B(D),x(ir);if(T=="(")return x(Ie,ae(")"),je(Wr,")"),le,Ye,ne);if(b&&D=="<")return x(ae(">"),je(qr,">"),le,ir)}function fs(T,D){if(T=="keyword"||T=="variable")return k.marked="type",x(fs);if(D=="<")return x(ae(">"),je(qr,">"),le)}function Wr(T,D){return D=="@"&&x(me,Wr),T=="spread"?x(Wr):b&&se(D)?(k.marked="keyword",x(Wr)):b&&T=="this"?x(Wt,Pr):O(Ut,Wt,Pr)}function ei(T,D){return T=="variable"?ti(T,D):mr(T,D)}function ti(T,D){if(T=="variable")return B(D),x(mr)}function mr(T,D){if(D=="<")return x(ae(">"),je(qr,">"),le,mr);if(D=="extends"||D=="implements"||b&&T==",")return D=="implements"&&(k.marked="keyword"),x(b?ve:me,mr);if(T=="{")return x(ae("}"),yr,le)}function yr(T,D){if(T=="async"||T=="variable"&&(D=="static"||D=="get"||D=="set"||b&&se(D))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return k.marked="keyword",x(yr);if(T=="variable"||k.style=="keyword")return k.marked="property",x(or,yr);if(T=="number"||T=="string")return x(or,yr);if(T=="[")return x(me,Wt,be("]"),or,yr);if(D=="*")return k.marked="keyword",x(yr);if(b&&T=="(")return O(ir,yr);if(T==";"||T==",")return x(yr);if(T=="}")return x();if(D=="@")return x(me,yr)}function or(T,D){if(D=="!"||D=="?")return x(or);if(T==":")return x(ve,Pr);if(D=="=")return x(Le);var fe=k.state.lexical.prev,ye=fe&&fe.info=="interface";return O(ye?ir:pr)}function Yi(T,D){return D=="*"?(k.marked="keyword",x(_t,be(";"))):D=="default"?(k.marked="keyword",x(me,be(";"))):T=="{"?x(je(Xi,"}"),_t,be(";")):O(Re)}function Xi(T,D){if(D=="as")return k.marked="keyword",x(be("variable"));if(T=="variable")return O(Le,Xi)}function pt(T){return T=="string"?x():T=="("?O(me):T=="."?O(oe):O(Ne,Or,_t)}function Ne(T,D){return T=="{"?gt(Ne,"}"):(T=="variable"&&B(D),D=="*"&&(k.marked="keyword"),x(Vi))}function Or(T){if(T==",")return x(Ne,Or)}function Vi(T,D){if(D=="as")return k.marked="keyword",x(Ne)}function _t(T,D){if(D=="from")return k.marked="keyword",x(me)}function tt(T){return T=="]"?x():O(je(Le,"]"))}function kr(){return O(ae("form"),Ut,be("{"),ae("}"),je(En,"}"),le,le)}function En(){return O(Ut,Pr)}function Ji(T,D){return T.lastType=="operator"||T.lastType==","||P.test(D.charAt(0))||/[,.]/.test(D.charAt(0))}function pe(T,D,fe){return D.tokenize==I&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(D.lastType)||D.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(fe||0)))}return{startState:function(T){var D={tokenize:I,lastType:"sof",cc:[],lexical:new ie((T||0)-f,0,"block",!1),localVars:u.localVars,context:u.localVars&&new de(null,null,!1),indented:T||0};return u.globalVars&&typeof u.globalVars=="object"&&(D.globalVars=u.globalVars),D},token:function(T,D){if(T.sol()&&(D.lexical.hasOwnProperty("align")||(D.lexical.align=!1),D.indented=T.indentation(),J(T,D)),D.tokenize!=q&&T.eatSpace())return null;var fe=D.tokenize(T,D);return F=="comment"?fe:(D.lastType=F=="operator"&&(W=="++"||W=="--")?"incdec":F,ee(D,fe,F,W,T))},indent:function(T,D){if(T.tokenize==q||T.tokenize==_)return l.Pass;if(T.tokenize!=I)return 0;var fe=D&&D.charAt(0),ye=T.lexical,Ue;if(!/^\s*else\b/.test(D))for(var Qe=T.cc.length-1;Qe>=0;--Qe){var Me=T.cc[Qe];if(Me==le)ye=ye.prev;else if(Me!=ls&&Me!=ne)break}for(;(ye.type=="stat"||ye.type=="form")&&(fe=="}"||(Ue=T.cc[T.cc.length-1])&&(Ue==oe||Ue==ue)&&!/^[,\.=+\-*:?[\(]/.test(D));)ye=ye.prev;d&&ye.type==")"&&ye.prev.type=="stat"&&(ye=ye.prev);var Rt=ye.type,sr=fe==Rt;return Rt=="vardef"?ye.indented+(T.lastType=="operator"||T.lastType==","?ye.info.length+1:0):Rt=="form"&&fe=="{"?ye.indented:Rt=="form"?ye.indented+f:Rt=="stat"?ye.indented+(Ji(T,D)?d||f:0):ye.info=="switch"&&!sr&&u.doubleIndentSwitch!=!1?ye.indented+(/^(?:case|default)\b/.test(D)?f:2*f):ye.align?ye.column+(sr?0:1):ye.indented+(sr?0:f)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:p?null:"/*",blockCommentEnd:p?null:"*/",blockCommentContinue:p?null:" * ",lineComment:p?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:p?"json":"javascript",jsonldMode:v,jsonMode:p,expressionAllowed:pe,skipExpression:function(T){ee(T,"atom","atom","true",new l.StringStream("",2,null))}}}),l.registerHelper("wordChars","javascript",/[\w$]/),l.defineMIME("text/javascript","javascript"),l.defineMIME("text/ecmascript","javascript"),l.defineMIME("application/javascript","javascript"),l.defineMIME("application/x-javascript","javascript"),l.defineMIME("application/ecmascript","javascript"),l.defineMIME("application/json",{name:"javascript",json:!0}),l.defineMIME("application/x-json",{name:"javascript",json:!0}),l.defineMIME("application/manifest+json",{name:"javascript",json:!0}),l.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),l.defineMIME("text/typescript",{name:"javascript",typescript:!0}),l.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var ax={exports:{}};(function(r,n){(function(l){l(qn.exports)})(function(l){l.defineMode("css",function(ie,Q){var ee=Q.inline;Q.propertyKeywords||(Q=l.resolveMode("text/css"));var k=ie.indentUnit,O=Q.tokenHooks,x=Q.documentTypes||{},z=Q.mediaTypes||{},B=Q.mediaFeatures||{},$=Q.mediaValueKeywords||{},se=Q.propertyKeywords||{},de=Q.nonStandardPropertyKeywords||{},Ke=Q.fontProperties||{},Ve=Q.counterDescriptors||{},Ie=Q.colorKeywords||{},$e=Q.valueKeywords||{},ne=Q.allowNested,ae=Q.lineComment,le=Q.supportsAtComponent===!0,be=ie.highlightNonStandardPropertyKeywords!==!1,Re,ke;function me(L,Z){return Re=Z,L}function Le(L,Z){var U=L.next();if(O[U]){var Se=O[U](L,Z);if(Se!==!1)return Se}if(U=="@")return L.eatWhile(/[\w\\\-]/),me("def",L.current());if(U=="="||(U=="~"||U=="|")&&L.eat("="))return me(null,"compare");if(U=='"'||U=="'")return Z.tokenize=R(U),Z.tokenize(L,Z);if(U=="#")return L.eatWhile(/[\w\\\-]/),me("atom","hash");if(U=="!")return L.match(/^\s*\w*/),me("keyword","important");if(/\d/.test(U)||U=="."&&L.eat(/\d/))return L.eatWhile(/[\w.%]/),me("number","unit");if(U==="-"){if(/[\d.]/.test(L.peek()))return L.eatWhile(/[\w.%]/),me("number","unit");if(L.match(/^-[\w\\\-]*/))return L.eatWhile(/[\w\\\-]/),L.match(/^\s*:/,!1)?me("variable-2","variable-definition"):me("variable-2","variable");if(L.match(/^\w+-/))return me("meta","meta")}else return/[,+>*\/]/.test(U)?me(null,"select-op"):U=="."&&L.match(/^-?[_a-z][_a-z0-9-]*/i)?me("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(U)?me(null,U):L.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(L.current())&&(Z.tokenize=j),me("variable callee","variable")):/[\w\\\-]/.test(U)?(L.eatWhile(/[\w\\\-]/),me("property","word")):me(null,null)}function R(L){return function(Z,U){for(var Se=!1,De;(De=Z.next())!=null;){if(De==L&&!Se){L==")"&&Z.backUp(1);break}Se=!Se&&De=="\\"}return(De==L||!Se&&L!=")")&&(U.tokenize=null),me("string","string")}}function j(L,Z){return L.next(),L.match(/^\s*[\"\')]/,!1)?Z.tokenize=null:Z.tokenize=R(")"),me(null,"(")}function X(L,Z,U){this.type=L,this.indent=Z,this.prev=U}function oe(L,Z,U,Se){return L.context=new X(U,Z.indentation()+(Se===!1?0:k),L.context),U}function ue(L){return L.context.prev&&(L.context=L.context.prev),L.context.type}function ge(L,Z,U){return he[U.context.type](L,Z,U)}function Ce(L,Z,U,Se){for(var De=Se||1;De>0;De--)U.context=U.context.prev;return ge(L,Z,U)}function we(L){var Z=L.current().toLowerCase();$e.hasOwnProperty(Z)?ke="atom":Ie.hasOwnProperty(Z)?ke="keyword":ke="variable"}var he={};return he.top=function(L,Z,U){if(L=="{")return oe(U,Z,"block");if(L=="}"&&U.context.prev)return ue(U);if(le&&/@component/i.test(L))return oe(U,Z,"atComponentBlock");if(/^@(-moz-)?document$/i.test(L))return oe(U,Z,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(L))return oe(U,Z,"atBlock");if(/^@(font-face|counter-style)/i.test(L))return U.stateArg=L,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(L))return"keyframes";if(L&&L.charAt(0)=="@")return oe(U,Z,"at");if(L=="hash")ke="builtin";else if(L=="word")ke="tag";else{if(L=="variable-definition")return"maybeprop";if(L=="interpolation")return oe(U,Z,"interpolation");if(L==":")return"pseudo";if(ne&&L=="(")return oe(U,Z,"parens")}return U.context.type},he.block=function(L,Z,U){if(L=="word"){var Se=Z.current().toLowerCase();return se.hasOwnProperty(Se)?(ke="property","maybeprop"):de.hasOwnProperty(Se)?(ke=be?"string-2":"property","maybeprop"):ne?(ke=Z.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ke+=" error","maybeprop")}else return L=="meta"?"block":!ne&&(L=="hash"||L=="qualifier")?(ke="error","block"):he.top(L,Z,U)},he.maybeprop=function(L,Z,U){return L==":"?oe(U,Z,"prop"):ge(L,Z,U)},he.prop=function(L,Z,U){if(L==";")return ue(U);if(L=="{"&&ne)return oe(U,Z,"propBlock");if(L=="}"||L=="{")return Ce(L,Z,U);if(L=="(")return oe(U,Z,"parens");if(L=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(Z.current()))ke+=" error";else if(L=="word")we(Z);else if(L=="interpolation")return oe(U,Z,"interpolation");return"prop"},he.propBlock=function(L,Z,U){return L=="}"?ue(U):L=="word"?(ke="property","maybeprop"):U.context.type},he.parens=function(L,Z,U){return L=="{"||L=="}"?Ce(L,Z,U):L==")"?ue(U):L=="("?oe(U,Z,"parens"):L=="interpolation"?oe(U,Z,"interpolation"):(L=="word"&&we(Z),"parens")},he.pseudo=function(L,Z,U){return L=="meta"?"pseudo":L=="word"?(ke="variable-3",U.context.type):ge(L,Z,U)},he.documentTypes=function(L,Z,U){return L=="word"&&x.hasOwnProperty(Z.current())?(ke="tag",U.context.type):he.atBlock(L,Z,U)},he.atBlock=function(L,Z,U){if(L=="(")return oe(U,Z,"atBlock_parens");if(L=="}"||L==";")return Ce(L,Z,U);if(L=="{")return ue(U)&&oe(U,Z,ne?"block":"top");if(L=="interpolation")return oe(U,Z,"interpolation");if(L=="word"){var Se=Z.current().toLowerCase();Se=="only"||Se=="not"||Se=="and"||Se=="or"?ke="keyword":z.hasOwnProperty(Se)?ke="attribute":B.hasOwnProperty(Se)?ke="property":$.hasOwnProperty(Se)?ke="keyword":se.hasOwnProperty(Se)?ke="property":de.hasOwnProperty(Se)?ke=be?"string-2":"property":$e.hasOwnProperty(Se)?ke="atom":Ie.hasOwnProperty(Se)?ke="keyword":ke="error"}return U.context.type},he.atComponentBlock=function(L,Z,U){return L=="}"?Ce(L,Z,U):L=="{"?ue(U)&&oe(U,Z,ne?"block":"top",!1):(L=="word"&&(ke="error"),U.context.type)},he.atBlock_parens=function(L,Z,U){return L==")"?ue(U):L=="{"||L=="}"?Ce(L,Z,U,2):he.atBlock(L,Z,U)},he.restricted_atBlock_before=function(L,Z,U){return L=="{"?oe(U,Z,"restricted_atBlock"):L=="word"&&U.stateArg=="@counter-style"?(ke="variable","restricted_atBlock_before"):ge(L,Z,U)},he.restricted_atBlock=function(L,Z,U){return L=="}"?(U.stateArg=null,ue(U)):L=="word"?(U.stateArg=="@font-face"&&!Ke.hasOwnProperty(Z.current().toLowerCase())||U.stateArg=="@counter-style"&&!Ve.hasOwnProperty(Z.current().toLowerCase())?ke="error":ke="property","maybeprop"):"restricted_atBlock"},he.keyframes=function(L,Z,U){return L=="word"?(ke="variable","keyframes"):L=="{"?oe(U,Z,"top"):ge(L,Z,U)},he.at=function(L,Z,U){return L==";"?ue(U):L=="{"||L=="}"?Ce(L,Z,U):(L=="word"?ke="tag":L=="hash"&&(ke="builtin"),"at")},he.interpolation=function(L,Z,U){return L=="}"?ue(U):L=="{"||L==";"?Ce(L,Z,U):(L=="word"?ke="variable":L!="variable"&&L!="("&&L!=")"&&(ke="error"),"interpolation")},{startState:function(L){return{tokenize:null,state:ee?"block":"top",stateArg:null,context:new X(ee?"block":"top",L||0,null)}},token:function(L,Z){if(!Z.tokenize&&L.eatSpace())return null;var U=(Z.tokenize||Le)(L,Z);return U&&typeof U=="object"&&(Re=U[1],U=U[0]),ke=U,Re!="comment"&&(Z.state=he[Z.state](Re,L,Z)),ke},indent:function(L,Z){var U=L.context,Se=Z&&Z.charAt(0),De=U.indent;return U.type=="prop"&&(Se=="}"||Se==")")&&(U=U.prev),U.prev&&(Se=="}"&&(U.type=="block"||U.type=="top"||U.type=="interpolation"||U.type=="restricted_atBlock")?(U=U.prev,De=U.indent):(Se==")"&&(U.type=="parens"||U.type=="atBlock_parens")||Se=="{"&&(U.type=="at"||U.type=="atBlock"))&&(De=Math.max(0,U.indent-k))),De},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ae,fold:"brace"}});function s(ie){for(var Q={},ee=0;ee<ie.length;++ee)Q[ie[ee].toLowerCase()]=!0;return Q}var u=["domain","regexp","url","url-prefix"],f=s(u),d=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=s(d),p=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],m=s(p),b=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],w=s(b),C=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],P=s(C),A=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],G=s(A),F=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],W=s(F),M=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],I=s(M),H=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],q=s(H),_=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],V=s(_),J=u.concat(d).concat(p).concat(b).concat(C).concat(A).concat(H).concat(_);l.registerHelper("hintWords","css",J);function te(ie,Q){for(var ee=!1,k;(k=ie.next())!=null;){if(ee&&k=="/"){Q.tokenize=null;break}ee=k=="*"}return["comment","comment"]}l.defineMIME("text/css",{documentTypes:f,mediaTypes:v,mediaFeatures:m,mediaValueKeywords:w,propertyKeywords:P,nonStandardPropertyKeywords:G,fontProperties:W,counterDescriptors:I,colorKeywords:q,valueKeywords:V,tokenHooks:{"/":function(ie,Q){return ie.eat("*")?(Q.tokenize=te,te(ie,Q)):!1}},name:"css"}),l.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:m,mediaValueKeywords:w,propertyKeywords:P,nonStandardPropertyKeywords:G,colorKeywords:q,valueKeywords:V,fontProperties:W,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ie,Q){return ie.eat("/")?(ie.skipToEnd(),["comment","comment"]):ie.eat("*")?(Q.tokenize=te,te(ie,Q)):["operator","operator"]},":":function(ie){return ie.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ie){return ie.match(/^[\w-]+/),ie.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ie){return ie.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),l.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:m,mediaValueKeywords:w,propertyKeywords:P,nonStandardPropertyKeywords:G,colorKeywords:q,valueKeywords:V,fontProperties:W,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ie,Q){return ie.eat("/")?(ie.skipToEnd(),["comment","comment"]):ie.eat("*")?(Q.tokenize=te,te(ie,Q)):["operator","operator"]},"@":function(ie){return ie.eat("{")?[null,"interpolation"]:ie.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ie.eatWhile(/[\w\\\-]/),ie.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),l.defineMIME("text/x-gss",{documentTypes:f,mediaTypes:v,mediaFeatures:m,propertyKeywords:P,nonStandardPropertyKeywords:G,fontProperties:W,counterDescriptors:I,colorKeywords:q,valueKeywords:V,supportsAtComponent:!0,tokenHooks:{"/":function(ie,Q){return ie.eat("*")?(Q.tokenize=te,te(ie,Q)):!1}},name:"css",helperType:"gss"})})})();var lx={exports:{}};(function(r,n){(function(l){l(qn.exports)})(function(l){var s={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},u={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};l.defineMode("xml",function(f,d){var v=f.indentUnit,p={},m=d.htmlMode?s:u;for(var b in m)p[b]=m[b];for(var b in d)p[b]=d[b];var w,C;function P(x,z){function B(de){return z.tokenize=de,de(x,z)}var $=x.next();if($=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?B(F("atom","]]>")):null:x.match("--")?B(F("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),B(W(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),z.tokenize=F("meta","?>"),"meta"):(w=x.eat("/")?"closeTag":"openTag",z.tokenize=A,"tag bracket");if($=="&"){var se;return x.eat("#")?x.eat("x")?se=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):se=x.eatWhile(/[\d]/)&&x.eat(";"):se=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),se?"atom":"error"}else return x.eatWhile(/[^&<]/),null}P.isInText=!0;function A(x,z){var B=x.next();if(B==">"||B=="/"&&x.eat(">"))return z.tokenize=P,w=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return w="equals",null;if(B=="<"){z.tokenize=P,z.state=_,z.tagName=z.tagStart=null;var $=z.tokenize(x,z);return $?$+" tag error":"tag error"}else return/[\'\"]/.test(B)?(z.tokenize=G(B),z.stringStartCol=x.column(),z.tokenize(x,z)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function G(x){var z=function(B,$){for(;!B.eol();)if(B.next()==x){$.tokenize=A;break}return"string"};return z.isInAttribute=!0,z}function F(x,z){return function(B,$){for(;!B.eol();){if(B.match(z)){$.tokenize=P;break}B.next()}return x}}function W(x){return function(z,B){for(var $;($=z.next())!=null;){if($=="<")return B.tokenize=W(x+1),B.tokenize(z,B);if($==">")if(x==1){B.tokenize=P;break}else return B.tokenize=W(x-1),B.tokenize(z,B)}return"meta"}}function M(x){return x&&x.toLowerCase()}function I(x,z,B){this.prev=x.context,this.tagName=z||"",this.indent=x.indented,this.startOfLine=B,(p.doNotIndent.hasOwnProperty(z)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function H(x){x.context&&(x.context=x.context.prev)}function q(x,z){for(var B;;){if(!x.context||(B=x.context.tagName,!p.contextGrabbers.hasOwnProperty(M(B))||!p.contextGrabbers[M(B)].hasOwnProperty(M(z))))return;H(x)}}function _(x,z,B){return x=="openTag"?(B.tagStart=z.column(),V):x=="closeTag"?J:_}function V(x,z,B){return x=="word"?(B.tagName=z.current(),C="tag",Q):p.allowMissingTagName&&x=="endTag"?(C="tag bracket",Q(x,z,B)):(C="error",V)}function J(x,z,B){if(x=="word"){var $=z.current();return B.context&&B.context.tagName!=$&&p.implicitlyClosed.hasOwnProperty(M(B.context.tagName))&&H(B),B.context&&B.context.tagName==$||p.matchClosing===!1?(C="tag",te):(C="tag error",ie)}else return p.allowMissingTagName&&x=="endTag"?(C="tag bracket",te(x,z,B)):(C="error",ie)}function te(x,z,B){return x!="endTag"?(C="error",te):(H(B),_)}function ie(x,z,B){return C="error",te(x,z,B)}function Q(x,z,B){if(x=="word")return C="attribute",ee;if(x=="endTag"||x=="selfcloseTag"){var $=B.tagName,se=B.tagStart;return B.tagName=B.tagStart=null,x=="selfcloseTag"||p.autoSelfClosers.hasOwnProperty(M($))?q(B,$):(q(B,$),B.context=new I(B,$,se==B.indented)),_}return C="error",Q}function ee(x,z,B){return x=="equals"?k:(p.allowMissing||(C="error"),Q(x,z,B))}function k(x,z,B){return x=="string"?O:x=="word"&&p.allowUnquoted?(C="string",Q):(C="error",Q(x,z,B))}function O(x,z,B){return x=="string"?O:Q(x,z,B)}return{startState:function(x){var z={tokenize:P,state:_,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(z.baseIndent=x),z},token:function(x,z){if(!z.tagName&&x.sol()&&(z.indented=x.indentation()),x.eatSpace())return null;w=null;var B=z.tokenize(x,z);return(B||w)&&B!="comment"&&(C=null,z.state=z.state(w||B,x,z),C&&(B=C=="error"?B+" error":C)),B},indent:function(x,z,B){var $=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+v;if($&&$.noIndent)return l.Pass;if(x.tokenize!=A&&x.tokenize!=P)return B?B.match(/^(\s*)/)[0].length:0;if(x.tagName)return p.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+v*(p.multilineTagIndentFactor||1);if(p.alignCDATA&&/<!\[CDATA\[/.test(z))return 0;var se=z&&/^<(\/)?([\w_:\.-]*)/.exec(z);if(se&&se[1])for(;$;)if($.tagName==se[2]){$=$.prev;break}else if(p.implicitlyClosed.hasOwnProperty(M($.tagName)))$=$.prev;else break;else if(se)for(;$;){var de=p.contextGrabbers[M($.tagName)];if(de&&de.hasOwnProperty(M(se[2])))$=$.prev;else break}for(;$&&$.prev&&!$.startOfLine;)$=$.prev;return $?$.indent+v:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:p.htmlMode?"html":"xml",helperType:p.htmlMode?"html":"xml",skipAttribute:function(x){x.state==k&&(x.state=Q)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var z=[],B=x.context;B;B=B.prev)z.push(B.tagName);return z.reverse()}}}),l.defineMIME("text/xml","xml"),l.defineMIME("application/xml","xml"),l.mimeModes.hasOwnProperty("text/html")||l.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();(function(r,n){(function(l){l(qn.exports,lx.exports,sx.exports,ax.exports)})(function(l){var s={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function u(w,C,P){var A=w.current(),G=A.search(C);return G>-1?w.backUp(A.length-G):A.match(/<\/?$/)&&(w.backUp(A.length),w.match(C,!1)||w.match(A)),P}var f={};function d(w){var C=f[w];return C||(f[w]=new RegExp("\\s+"+w+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function v(w,C){var P=w.match(d(C));return P?/^\s*(.*?)\s*$/.exec(P[2])[1]:""}function p(w,C){return new RegExp((C?"^":"")+"</s*"+w+"s*>","i")}function m(w,C){for(var P in w)for(var A=C[P]||(C[P]=[]),G=w[P],F=G.length-1;F>=0;F--)A.unshift(G[F])}function b(w,C){for(var P=0;P<w.length;P++){var A=w[P];if(!A[0]||A[1].test(v(C,A[0])))return A[2]}}l.defineMode("htmlmixed",function(w,C){var P=l.getMode(w,{name:"xml",htmlMode:!0,multilineTagIndentFactor:C.multilineTagIndentFactor,multilineTagIndentPastTag:C.multilineTagIndentPastTag,allowMissingTagName:C.allowMissingTagName}),A={},G=C&&C.tags,F=C&&C.scriptTypes;if(m(s,A),G&&m(G,A),F)for(var W=F.length-1;W>=0;W--)A.script.unshift(["type",F[W].matches,F[W].mode]);function M(I,H){var q=P.token(I,H.htmlState),_=/\btag\b/.test(q),V;if(_&&!/[<>\s\/]/.test(I.current())&&(V=H.htmlState.tagName&&H.htmlState.tagName.toLowerCase())&&A.hasOwnProperty(V))H.inTag=V+" ";else if(H.inTag&&_&&/>$/.test(I.current())){var J=/^([\S]+) (.*)/.exec(H.inTag);H.inTag=null;var te=I.current()==">"&&b(A[J[1]],J[2]),ie=l.getMode(w,te),Q=p(J[1],!0),ee=p(J[1],!1);H.token=function(k,O){return k.match(Q,!1)?(O.token=M,O.localState=O.localMode=null,null):u(k,ee,O.localMode.token(k,O.localState))},H.localMode=ie,H.localState=l.startState(ie,P.indent(H.htmlState,"",""))}else H.inTag&&(H.inTag+=I.current(),I.eol()&&(H.inTag+=" "));return q}return{startState:function(){var I=l.startState(P);return{token:M,inTag:null,localMode:null,localState:null,htmlState:I}},copyState:function(I){var H;return I.localState&&(H=l.copyState(I.localMode,I.localState)),{token:I.token,inTag:I.inTag,localMode:I.localMode,localState:H,htmlState:l.copyState(P,I.htmlState)}},token:function(I,H){return H.token(I,H)},indent:function(I,H,q){return!I.localMode||/^\s*<\//.test(H)?P.indent(I.htmlState,H,q):I.localMode.indent?I.localMode.indent(I.localState,H,q):l.Pass},innerMode:function(I){return{state:I.localState||I.htmlState,mode:I.localMode||P}}}},"xml","javascript","css"),l.defineMIME("text/html","htmlmixed")})})();(function(r,n){(function(l){l(qn.exports)})(function(l){l.defineOption("placeholder","",function(m,b,w){var C=w&&w!=l.Init;if(b&&!C)m.on("blur",d),m.on("change",v),m.on("swapDoc",v),l.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){f(m)}),v(m);else if(!b&&C){m.off("blur",d),m.off("change",v),m.off("swapDoc",v),l.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),s(m);var P=m.getWrapperElement();P.className=P.className.replace(" CodeMirror-empty","")}b&&!m.hasFocus()&&d(m)});function s(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function u(m){s(m);var b=m.state.placeholder=document.createElement("pre");b.style.cssText="height: 0; overflow: visible",b.style.direction=m.getOption("direction"),b.className="CodeMirror-placeholder CodeMirror-line-like";var w=m.getOption("placeholder");typeof w=="string"&&(w=document.createTextNode(w)),b.appendChild(w),m.display.lineSpace.insertBefore(b,m.display.lineSpace.firstChild)}function f(m){setTimeout(function(){var b=!1;if(m.lineCount()==1){var w=m.getInputField();b=w.nodeName=="TEXTAREA"?!m.getLine(0).length:!/[^\u200b]/.test(w.querySelector(".CodeMirror-line").textContent)}b?u(m):s(m)},20)}function d(m){p(m)&&u(m)}function v(m){var b=m.getWrapperElement(),w=p(m);b.className=b.className.replace(" CodeMirror-empty","")+(w?" CodeMirror-empty":""),w?u(m):s(m)}function p(m){return m.lineCount()===1&&m.getLine(0)===""}})})();/*!
28
+ * vue-router v4.0.12
29
+ * (c) 2021 Eduardo San Martin Morote
30
+ * @license MIT
31
+ */const Cp=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",zi=r=>Cp?Symbol(r):"_vr_"+r,ux=zi("rvlm"),Tp=zi("rvd"),zu=zi("r"),Hu=zi("rl"),Bu=zi("rvl"),Hi=typeof window!="undefined";function fx(r){return r.__esModule||Cp&&r[Symbol.toStringTag]==="Module"}const lt=Object.assign;function Wu(r,n){const l={};for(const s in n){const u=n[s];l[s]=Array.isArray(u)?u.map(r):r(u)}return l}const rs=()=>{},cx=/\/$/,dx=r=>r.replace(cx,"");function ju(r,n,l="/"){let s,u={},f="",d="";const v=n.indexOf("?"),p=n.indexOf("#",v>-1?v:0);return v>-1&&(s=n.slice(0,v),f=n.slice(v+1,p>-1?p:n.length),u=r(f)),p>-1&&(s=s||n.slice(0,p),d=n.slice(p,n.length)),s=gx(s!=null?s:n,l),{fullPath:s+(f&&"?")+f+d,path:s,query:u,hash:d}}function hx(r,n){const l=n.query?r(n.query):"";return n.path+(l&&"?")+l+(n.hash||"")}function Pp(r,n){return!n||!r.toLowerCase().startsWith(n.toLowerCase())?r:r.slice(n.length)||"/"}function px(r,n,l){const s=n.matched.length-1,u=l.matched.length-1;return s>-1&&s===u&&Bi(n.matched[s],l.matched[u])&&Op(n.params,l.params)&&r(n.query)===r(l.query)&&n.hash===l.hash}function Bi(r,n){return(r.aliasOf||r)===(n.aliasOf||n)}function Op(r,n){if(Object.keys(r).length!==Object.keys(n).length)return!1;for(const l in r)if(!vx(r[l],n[l]))return!1;return!0}function vx(r,n){return Array.isArray(r)?kp(r,n):Array.isArray(n)?kp(n,r):r===n}function kp(r,n){return Array.isArray(n)?r.length===n.length&&r.every((l,s)=>l===n[s]):r.length===1&&r[0]===n}function gx(r,n){if(r.startsWith("/"))return r;if(!r)return n;const l=n.split("/"),s=r.split("/");let u=l.length-1,f,d;for(f=0;f<s.length;f++)if(d=s[f],!(u===1||d==="."))if(d==="..")u--;else break;return l.slice(0,u).join("/")+"/"+s.slice(f-(f===s.length?1:0)).join("/")}var ns;(function(r){r.pop="pop",r.push="push"})(ns||(ns={}));var is;(function(r){r.back="back",r.forward="forward",r.unknown=""})(is||(is={}));function mx(r){if(!r)if(Hi){const n=document.querySelector("base");r=n&&n.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),dx(r)}const yx=/^[^#]+#/;function bx(r,n){return r.replace(yx,"#")+n}function xx(r,n){const l=document.documentElement.getBoundingClientRect(),s=r.getBoundingClientRect();return{behavior:n.behavior,left:s.left-l.left-(n.left||0),top:s.top-l.top-(n.top||0)}}const Aa=()=>({left:window.pageXOffset,top:window.pageYOffset});function wx(r){let n;if("el"in r){const l=r.el,s=typeof l=="string"&&l.startsWith("#"),u=typeof l=="string"?s?document.getElementById(l.slice(1)):document.querySelector(l):l;if(!u)return;n=xx(u,r)}else n=r;"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 Ep(r,n){return(history.state?history.state.position-n:-1)+r}const Ku=new Map;function Sx(r,n){Ku.set(r,n)}function Cx(r){const n=Ku.get(r);return Ku.delete(r),n}let Tx=()=>location.protocol+"//"+location.host;function Mp(r,n){const{pathname:l,search:s,hash:u}=n,f=r.indexOf("#");if(f>-1){let v=u.includes(r.slice(f))?r.slice(f).length:1,p=u.slice(v);return p[0]!=="/"&&(p="/"+p),Pp(p,"")}return Pp(l,r)+s+u}function Px(r,n,l,s){let u=[],f=[],d=null;const v=({state:C})=>{const P=Mp(r,location),A=l.value,G=n.value;let F=0;if(C){if(l.value=P,n.value=C,d&&d===A){d=null;return}F=G?C.position-G.position:0}else s(P);u.forEach(W=>{W(l.value,A,{delta:F,type:ns.pop,direction:F?F>0?is.forward:is.back:is.unknown})})};function p(){d=l.value}function m(C){u.push(C);const P=()=>{const A=u.indexOf(C);A>-1&&u.splice(A,1)};return f.push(P),P}function b(){const{history:C}=window;!C.state||C.replaceState(lt({},C.state,{scroll:Aa()}),"")}function w(){for(const C of f)C();f=[],window.removeEventListener("popstate",v),window.removeEventListener("beforeunload",b)}return window.addEventListener("popstate",v),window.addEventListener("beforeunload",b),{pauseListeners:p,listen:m,destroy:w}}function Ap(r,n,l,s=!1,u=!1){return{back:r,current:n,forward:l,replaced:s,position:window.history.length,scroll:u?Aa():null}}function Ox(r){const{history:n,location:l}=window,s={value:Mp(r,l)},u={value:n.state};u.value||f(s.value,{back:null,current:s.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function f(p,m,b){const w=r.indexOf("#"),C=w>-1?(l.host&&document.querySelector("base")?r:r.slice(w))+p:Tx()+r+p;try{n[b?"replaceState":"pushState"](m,"",C),u.value=m}catch(P){console.error(P),l[b?"replace":"assign"](C)}}function d(p,m){const b=lt({},n.state,Ap(u.value.back,p,u.value.forward,!0),m,{position:u.value.position});f(p,b,!0),s.value=p}function v(p,m){const b=lt({},u.value,n.state,{forward:p,scroll:Aa()});f(b.current,b,!0);const w=lt({},Ap(s.value,p,null),{position:b.position+1},m);f(p,w,!1),s.value=p}return{location:s,state:u,push:v,replace:d}}function kx(r){r=mx(r);const n=Ox(r),l=Px(r,n.state,n.location,n.replace);function s(f,d=!0){d||l.pauseListeners(),history.go(f)}const u=lt({location:"",base:r,go:s,createHref:bx.bind(null,r)},n,l);return Object.defineProperty(u,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(u,"state",{enumerable:!0,get:()=>n.state.value}),u}function ww(r){return r=location.host?r||location.pathname+location.search:"",r.includes("#")||(r+="#"),kx(r)}function Ex(r){return typeof r=="string"||r&&typeof r=="object"}function Lp(r){return typeof r=="string"||typeof r=="symbol"}const Pn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Np=zi("nf");var Ip;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(Ip||(Ip={}));function Wi(r,n){return lt(new Error,{type:r,[Np]:!0},n)}function _n(r,n){return r instanceof Error&&Np in r&&(n==null||!!(r.type&n))}const Rp="[^/]+?",Mx={sensitive:!1,strict:!1,start:!0,end:!0},Ax=/[.+*?^${}()[\]/\\]/g;function Lx(r,n){const l=lt({},Mx,n),s=[];let u=l.start?"^":"";const f=[];for(const m of r){const b=m.length?[]:[90];l.strict&&!m.length&&(u+="/");for(let w=0;w<m.length;w++){const C=m[w];let P=40+(l.sensitive?.25:0);if(C.type===0)w||(u+="/"),u+=C.value.replace(Ax,"\\$&"),P+=40;else if(C.type===1){const{value:A,repeatable:G,optional:F,regexp:W}=C;f.push({name:A,repeatable:G,optional:F});const M=W||Rp;if(M!==Rp){P+=10;try{new RegExp(`(${M})`)}catch(H){throw new Error(`Invalid custom RegExp for param "${A}" (${M}): `+H.message)}}let I=G?`((?:${M})(?:/(?:${M}))*)`:`(${M})`;w||(I=F&&m.length<2?`(?:/${I})`:"/"+I),F&&(I+="?"),u+=I,P+=20,F&&(P+=-8),G&&(P+=-20),M===".*"&&(P+=-50)}b.push(P)}s.push(b)}if(l.strict&&l.end){const m=s.length-1;s[m][s[m].length-1]+=.7000000000000001}l.strict||(u+="/?"),l.end?u+="$":l.strict&&(u+="(?:/|$)");const d=new RegExp(u,l.sensitive?"":"i");function v(m){const b=m.match(d),w={};if(!b)return null;for(let C=1;C<b.length;C++){const P=b[C]||"",A=f[C-1];w[A.name]=P&&A.repeatable?P.split("/"):P}return w}function p(m){let b="",w=!1;for(const C of r){(!w||!b.endsWith("/"))&&(b+="/"),w=!1;for(const P of C)if(P.type===0)b+=P.value;else if(P.type===1){const{value:A,repeatable:G,optional:F}=P,W=A in m?m[A]:"";if(Array.isArray(W)&&!G)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const M=Array.isArray(W)?W.join("/"):W;if(!M)if(F)C.length<2&&(b.endsWith("/")?b=b.slice(0,-1):w=!0);else throw new Error(`Missing required param "${A}"`);b+=M}}return b}return{re:d,score:s,keys:f,parse:v,stringify:p}}function Nx(r,n){let l=0;for(;l<r.length&&l<n.length;){const s=n[l]-r[l];if(s)return s;l++}return r.length<n.length?r.length===1&&r[0]===40+40?-1:1:r.length>n.length?n.length===1&&n[0]===40+40?1:-1:0}function Ix(r,n){let l=0;const s=r.score,u=n.score;for(;l<s.length&&l<u.length;){const f=Nx(s[l],u[l]);if(f)return f;l++}return u.length-s.length}const Rx={type:0,value:""},Dx=/[a-zA-Z0-9_]/;function Fx(r){if(!r)return[[]];if(r==="/")return[[Rx]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function n(P){throw new Error(`ERR (${l})/"${m}": ${P}`)}let l=0,s=l;const u=[];let f;function d(){f&&u.push(f),f=[]}let v=0,p,m="",b="";function w(){!m||(l===0?f.push({type:0,value:m}):l===1||l===2||l===3?(f.length>1&&(p==="*"||p==="+")&&n(`A repeatable param (${m}) must be alone in its segment. eg: '/:ids+.`),f.push({type:1,value:m,regexp:b,repeatable:p==="*"||p==="+",optional:p==="*"||p==="?"})):n("Invalid state to consume buffer"),m="")}function C(){m+=p}for(;v<r.length;){if(p=r[v++],p==="\\"&&l!==2){s=l,l=4;continue}switch(l){case 0:p==="/"?(m&&w(),d()):p===":"?(w(),l=1):C();break;case 4:C(),l=s;break;case 1:p==="("?l=2:Dx.test(p)?C():(w(),l=0,p!=="*"&&p!=="?"&&p!=="+"&&v--);break;case 2:p===")"?b[b.length-1]=="\\"?b=b.slice(0,-1)+p:l=3:b+=p;break;case 3:w(),l=0,p!=="*"&&p!=="?"&&p!=="+"&&v--,b="";break;default:n("Unknown state");break}}return l===2&&n(`Unfinished custom RegExp for param "${m}"`),w(),d(),u}function zx(r,n,l){const s=Lx(Fx(r.path),l),u=lt(s,{record:r,parent:n,children:[],alias:[]});return n&&!u.record.aliasOf==!n.record.aliasOf&&n.children.push(u),u}function Hx(r,n){const l=[],s=new Map;n=Fp({strict:!1,end:!0,sensitive:!1},n);function u(b){return s.get(b)}function f(b,w,C){const P=!C,A=Wx(b);A.aliasOf=C&&C.record;const G=Fp(n,b),F=[A];if("alias"in b){const I=typeof b.alias=="string"?[b.alias]:b.alias;for(const H of I)F.push(lt({},A,{components:C?C.record.components:A.components,path:H,aliasOf:C?C.record:A}))}let W,M;for(const I of F){const{path:H}=I;if(w&&H[0]!=="/"){const q=w.record.path,_=q[q.length-1]==="/"?"":"/";I.path=w.record.path+(H&&_+H)}if(W=zx(I,w,G),C?C.alias.push(W):(M=M||W,M!==W&&M.alias.push(W),P&&b.name&&!Dp(W)&&d(b.name)),"children"in A){const q=A.children;for(let _=0;_<q.length;_++)f(q[_],W,C&&C.children[_])}C=C||W,p(W)}return M?()=>{d(M)}:rs}function d(b){if(Lp(b)){const w=s.get(b);w&&(s.delete(b),l.splice(l.indexOf(w),1),w.children.forEach(d),w.alias.forEach(d))}else{const w=l.indexOf(b);w>-1&&(l.splice(w,1),b.record.name&&s.delete(b.record.name),b.children.forEach(d),b.alias.forEach(d))}}function v(){return l}function p(b){let w=0;for(;w<l.length&&Ix(b,l[w])>=0;)w++;l.splice(w,0,b),b.record.name&&!Dp(b)&&s.set(b.record.name,b)}function m(b,w){let C,P={},A,G;if("name"in b&&b.name){if(C=s.get(b.name),!C)throw Wi(1,{location:b});G=C.record.name,P=lt(Bx(w.params,C.keys.filter(M=>!M.optional).map(M=>M.name)),b.params),A=C.stringify(P)}else if("path"in b)A=b.path,C=l.find(M=>M.re.test(A)),C&&(P=C.parse(A),G=C.record.name);else{if(C=w.name?s.get(w.name):l.find(M=>M.re.test(w.path)),!C)throw Wi(1,{location:b,currentLocation:w});G=C.record.name,P=lt({},w.params,b.params),A=C.stringify(P)}const F=[];let W=C;for(;W;)F.unshift(W.record),W=W.parent;return{name:G,path:A,params:P,matched:F,meta:Kx(F)}}return r.forEach(b=>f(b)),{addRoute:f,resolve:m,removeRoute:d,getRoutes:v,getRecordMatcher:u}}function Bx(r,n){const l={};for(const s of n)s in r&&(l[s]=r[s]);return l}function Wx(r){return{path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:void 0,beforeEnter:r.beforeEnter,props:jx(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||{}:{default:r.component}}}function jx(r){const n={},l=r.props||!1;if("component"in r)n.default=l;else for(const s in r.components)n[s]=typeof l=="boolean"?l:l[s];return n}function Dp(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function Kx(r){return r.reduce((n,l)=>lt(n,l.meta),{})}function Fp(r,n){const l={};for(const s in r)l[s]=s in n?n[s]:r[s];return l}const zp=/#/g,Ux=/&/g,Gx=/\//g,$x=/=/g,Yx=/\?/g,Hp=/\+/g,Xx=/%5B/g,Vx=/%5D/g,Bp=/%5E/g,Jx=/%60/g,Wp=/%7B/g,Zx=/%7C/g,jp=/%7D/g,Qx=/%20/g;function Uu(r){return encodeURI(""+r).replace(Zx,"|").replace(Xx,"[").replace(Vx,"]")}function qx(r){return Uu(r).replace(Wp,"{").replace(jp,"}").replace(Bp,"^")}function Gu(r){return Uu(r).replace(Hp,"%2B").replace(Qx,"+").replace(zp,"%23").replace(Ux,"%26").replace(Jx,"`").replace(Wp,"{").replace(jp,"}").replace(Bp,"^")}function _x(r){return Gu(r).replace($x,"%3D")}function ew(r){return Uu(r).replace(zp,"%23").replace(Yx,"%3F")}function tw(r){return r==null?"":ew(r).replace(Gx,"%2F")}function La(r){try{return decodeURIComponent(""+r)}catch{}return""+r}function rw(r){const n={};if(r===""||r==="?")return n;const s=(r[0]==="?"?r.slice(1):r).split("&");for(let u=0;u<s.length;++u){const f=s[u].replace(Hp," "),d=f.indexOf("="),v=La(d<0?f:f.slice(0,d)),p=d<0?null:La(f.slice(d+1));if(v in n){let m=n[v];Array.isArray(m)||(m=n[v]=[m]),m.push(p)}else n[v]=p}return n}function Kp(r){let n="";for(let l in r){const s=r[l];if(l=_x(l),s==null){s!==void 0&&(n+=(n.length?"&":"")+l);continue}(Array.isArray(s)?s.map(f=>f&&Gu(f)):[s&&Gu(s)]).forEach(f=>{f!==void 0&&(n+=(n.length?"&":"")+l,f!=null&&(n+="="+f))})}return n}function nw(r){const n={};for(const l in r){const s=r[l];s!==void 0&&(n[l]=Array.isArray(s)?s.map(u=>u==null?null:""+u):s==null?s:""+s)}return n}function os(){let r=[];function n(s){return r.push(s),()=>{const u=r.indexOf(s);u>-1&&r.splice(u,1)}}function l(){r=[]}return{add:n,list:()=>r,reset:l}}function On(r,n,l,s,u){const f=s&&(s.enterCallbacks[u]=s.enterCallbacks[u]||[]);return()=>new Promise((d,v)=>{const p=w=>{w===!1?v(Wi(4,{from:l,to:n})):w instanceof Error?v(w):Ex(w)?v(Wi(2,{from:n,to:w})):(f&&s.enterCallbacks[u]===f&&typeof w=="function"&&f.push(w),d())},m=r.call(s&&s.instances[u],n,l,p);let b=Promise.resolve(m);r.length<3&&(b=b.then(p)),b.catch(w=>v(w))})}function $u(r,n,l,s){const u=[];for(const f of r)for(const d in f.components){let v=f.components[d];if(!(n!=="beforeRouteEnter"&&!f.instances[d]))if(iw(v)){const m=(v.__vccOpts||v)[n];m&&u.push(On(m,l,s,f,d))}else{let p=v();u.push(()=>p.then(m=>{if(!m)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${f.path}"`));const b=fx(m)?m.default:m;f.components[d]=b;const C=(b.__vccOpts||b)[n];return C&&On(C,l,s,f,d)()}))}}return u}function iw(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function Up(r){const n=Cr(zu),l=Cr(Hu),s=zt(()=>n.resolve(ft(r.to))),u=zt(()=>{const{matched:p}=s.value,{length:m}=p,b=p[m-1],w=l.matched;if(!b||!w.length)return-1;const C=w.findIndex(Bi.bind(null,b));if(C>-1)return C;const P=Gp(p[m-2]);return m>1&&Gp(b)===P&&w[w.length-1].path!==P?w.findIndex(Bi.bind(null,p[m-2])):C}),f=zt(()=>u.value>-1&&lw(l.params,s.value.params)),d=zt(()=>u.value>-1&&u.value===l.matched.length-1&&Op(l.params,s.value.params));function v(p={}){return aw(p)?n[ft(r.replace)?"replace":"push"](ft(r.to)).catch(rs):Promise.resolve()}return{route:s,href:zt(()=>s.value.href),isActive:f,isExactActive:d,navigate:v}}const ow=Bo({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Up,setup(r,{slots:n}){const l=Oi(Up(r)),{options:s}=Cr(zu),u=zt(()=>({[$p(r.activeClass,s.linkActiveClass,"router-link-active")]:l.isActive,[$p(r.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:l.isExactActive}));return()=>{const f=n.default&&n.default(l);return r.custom?f:Ca("a",{"aria-current":l.isExactActive?r.ariaCurrentValue:null,href:l.href,onClick:l.navigate,class:u.value},f)}}}),sw=ow;function aw(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const n=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return r.preventDefault&&r.preventDefault(),!0}}function lw(r,n){for(const l in n){const s=n[l],u=r[l];if(typeof s=="string"){if(s!==u)return!1}else if(!Array.isArray(u)||u.length!==s.length||s.some((f,d)=>f!==u[d]))return!1}return!0}function Gp(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const $p=(r,n,l)=>r!=null?r:n!=null?n:l,uw=Bo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(r,{attrs:n,slots:l}){const s=Cr(Bu),u=zt(()=>r.route||s.value),f=Cr(Tp,0),d=zt(()=>u.value.matched[f]);Ho(Tp,f+1),Ho(ux,d),Ho(Bu,u);const v=Lt();return Qt(()=>[v.value,d.value,r.name],([p,m,b],[w,C,P])=>{m&&(m.instances[b]=p,C&&C!==m&&p&&p===w&&(m.leaveGuards.size||(m.leaveGuards=C.leaveGuards),m.updateGuards.size||(m.updateGuards=C.updateGuards))),p&&m&&(!C||!Bi(m,C)||!w)&&(m.enterCallbacks[b]||[]).forEach(A=>A(p))},{flush:"post"}),()=>{const p=u.value,m=d.value,b=m&&m.components[r.name],w=r.name;if(!b)return Yp(l.default,{Component:b,route:p});const C=m.props[r.name],P=C?C===!0?p.params:typeof C=="function"?C(p):C:null,G=Ca(b,lt({},P,n,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(m.instances[w]=null)},ref:v}));return Yp(l.default,{Component:G,route:p})||G}}});function Yp(r,n){if(!r)return null;const l=r(n);return l.length===1?l[0]:l}const fw=uw;function Sw(r){const n=Hx(r.routes,r),l=r.parseQuery||rw,s=r.stringifyQuery||Kp,u=r.history,f=os(),d=os(),v=os(),p=Do(Pn);let m=Pn;Hi&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const b=Wu.bind(null,ne=>""+ne),w=Wu.bind(null,tw),C=Wu.bind(null,La);function P(ne,ae){let le,be;return Lp(ne)?(le=n.getRecordMatcher(ne),be=ae):be=ne,n.addRoute(be,le)}function A(ne){const ae=n.getRecordMatcher(ne);ae&&n.removeRoute(ae)}function G(){return n.getRoutes().map(ne=>ne.record)}function F(ne){return!!n.getRecordMatcher(ne)}function W(ne,ae){if(ae=lt({},ae||p.value),typeof ne=="string"){const Le=ju(l,ne,ae.path),R=n.resolve({path:Le.path},ae),j=u.createHref(Le.fullPath);return lt(Le,R,{params:C(R.params),hash:La(Le.hash),redirectedFrom:void 0,href:j})}let le;if("path"in ne)le=lt({},ne,{path:ju(l,ne.path,ae.path).path});else{const Le=lt({},ne.params);for(const R in Le)Le[R]==null&&delete Le[R];le=lt({},ne,{params:w(ne.params)}),ae.params=w(ae.params)}const be=n.resolve(le,ae),Re=ne.hash||"";be.params=b(C(be.params));const ke=hx(s,lt({},ne,{hash:qx(Re),path:be.path})),me=u.createHref(ke);return lt({fullPath:ke,hash:Re,query:s===Kp?nw(ne.query):ne.query||{}},be,{redirectedFrom:void 0,href:me})}function M(ne){return typeof ne=="string"?ju(l,ne,p.value.path):lt({},ne)}function I(ne,ae){if(m!==ne)return Wi(8,{from:ae,to:ne})}function H(ne){return V(ne)}function q(ne){return H(lt(M(ne),{replace:!0}))}function _(ne){const ae=ne.matched[ne.matched.length-1];if(ae&&ae.redirect){const{redirect:le}=ae;let be=typeof le=="function"?le(ne):le;return typeof be=="string"&&(be=be.includes("?")||be.includes("#")?be=M(be):{path:be},be.params={}),lt({query:ne.query,hash:ne.hash,params:ne.params},be)}}function V(ne,ae){const le=m=W(ne),be=p.value,Re=ne.state,ke=ne.force,me=ne.replace===!0,Le=_(le);if(Le)return V(lt(M(Le),{state:Re,force:ke,replace:me}),ae||le);const R=le;R.redirectedFrom=ae;let j;return!ke&&px(s,be,le)&&(j=Wi(16,{to:R,from:be}),de(be,be,!0,!1)),(j?Promise.resolve(j):te(R,be)).catch(X=>_n(X)?X:B(X,R,be)).then(X=>{if(X){if(_n(X,2))return V(lt(M(X.to),{state:Re,force:ke,replace:me}),ae||R)}else X=Q(R,be,!0,me,Re);return ie(R,be,X),X})}function J(ne,ae){const le=I(ne,ae);return le?Promise.reject(le):Promise.resolve()}function te(ne,ae){let le;const[be,Re,ke]=cw(ne,ae);le=$u(be.reverse(),"beforeRouteLeave",ne,ae);for(const Le of be)Le.leaveGuards.forEach(R=>{le.push(On(R,ne,ae))});const me=J.bind(null,ne,ae);return le.push(me),ji(le).then(()=>{le=[];for(const Le of f.list())le.push(On(Le,ne,ae));return le.push(me),ji(le)}).then(()=>{le=$u(Re,"beforeRouteUpdate",ne,ae);for(const Le of Re)Le.updateGuards.forEach(R=>{le.push(On(R,ne,ae))});return le.push(me),ji(le)}).then(()=>{le=[];for(const Le of ne.matched)if(Le.beforeEnter&&!ae.matched.includes(Le))if(Array.isArray(Le.beforeEnter))for(const R of Le.beforeEnter)le.push(On(R,ne,ae));else le.push(On(Le.beforeEnter,ne,ae));return le.push(me),ji(le)}).then(()=>(ne.matched.forEach(Le=>Le.enterCallbacks={}),le=$u(ke,"beforeRouteEnter",ne,ae),le.push(me),ji(le))).then(()=>{le=[];for(const Le of d.list())le.push(On(Le,ne,ae));return le.push(me),ji(le)}).catch(Le=>_n(Le,8)?Le:Promise.reject(Le))}function ie(ne,ae,le){for(const be of v.list())be(ne,ae,le)}function Q(ne,ae,le,be,Re){const ke=I(ne,ae);if(ke)return ke;const me=ae===Pn,Le=Hi?history.state:{};le&&(be||me?u.replace(ne.fullPath,lt({scroll:me&&Le&&Le.scroll},Re)):u.push(ne.fullPath,Re)),p.value=ne,de(ne,ae,le,me),se()}let ee;function k(){ee=u.listen((ne,ae,le)=>{const be=W(ne),Re=_(be);if(Re){V(lt(Re,{replace:!0}),be).catch(rs);return}m=be;const ke=p.value;Hi&&Sx(Ep(ke.fullPath,le.delta),Aa()),te(be,ke).catch(me=>_n(me,4|8)?me:_n(me,2)?(V(me.to,be).then(Le=>{_n(Le,4|16)&&!le.delta&&le.type===ns.pop&&u.go(-1,!1)}).catch(rs),Promise.reject()):(le.delta&&u.go(-le.delta,!1),B(me,be,ke))).then(me=>{me=me||Q(be,ke,!1),me&&(le.delta?u.go(-le.delta,!1):le.type===ns.pop&&_n(me,4|16)&&u.go(-1,!1)),ie(be,ke,me)}).catch(rs)})}let O=os(),x=os(),z;function B(ne,ae,le){se(ne);const be=x.list();return be.length?be.forEach(Re=>Re(ne,ae,le)):console.error(ne),Promise.reject(ne)}function $(){return z&&p.value!==Pn?Promise.resolve():new Promise((ne,ae)=>{O.add([ne,ae])})}function se(ne){z||(z=!0,k(),O.list().forEach(([ae,le])=>ne?le(ne):ae()),O.reset())}function de(ne,ae,le,be){const{scrollBehavior:Re}=r;if(!Hi||!Re)return Promise.resolve();const ke=!le&&Cx(Ep(ne.fullPath,0))||(be||!le)&&history.state&&history.state.scroll||null;return Zo().then(()=>Re(ne,ae,ke)).then(me=>me&&wx(me)).catch(me=>B(me,ne,ae))}const Ke=ne=>u.go(ne);let Ve;const Ie=new Set;return{currentRoute:p,addRoute:P,removeRoute:A,hasRoute:F,getRoutes:G,resolve:W,options:r,push:H,replace:q,go:Ke,back:()=>Ke(-1),forward:()=>Ke(1),beforeEach:f.add,beforeResolve:d.add,afterEach:v.add,onError:x.add,isReady:$,install(ne){const ae=this;ne.component("RouterLink",sw),ne.component("RouterView",fw),ne.config.globalProperties.$router=ae,Object.defineProperty(ne.config.globalProperties,"$route",{enumerable:!0,get:()=>ft(p)}),Hi&&!Ve&&p.value===Pn&&(Ve=!0,H(u.location).catch(Re=>{}));const le={};for(const Re in Pn)le[Re]=zt(()=>p.value[Re]);ne.provide(zu,ae),ne.provide(Hu,Oi(le)),ne.provide(Bu,p);const be=ne.unmount;Ie.add(ne),ne.unmount=function(){Ie.delete(ne),Ie.size<1&&(m=Pn,ee&&ee(),p.value=Pn,Ve=!1,z=!1),be()}}}}function ji(r){return r.reduce((n,l)=>n.then(()=>l()),Promise.resolve())}function cw(r,n){const l=[],s=[],u=[],f=Math.max(n.matched.length,r.matched.length);for(let d=0;d<f;d++){const v=n.matched[d];v&&(r.matched.find(m=>Bi(m,v))?s.push(v):l.push(v));const p=r.matched[d];p&&(n.matched.find(m=>Bi(m,p))||u.push(p))}return[l,s,u]}function Cw(){return Cr(Hu)}var dw={exports:{}},hw=ox(mb);(function(r){r.exports=function(n){var l={};function s(u){if(l[u])return l[u].exports;var f=l[u]={i:u,l:!1,exports:{}};return n[u].call(f.exports,f,f.exports,s),f.l=!0,f.exports}return s.m=n,s.c=l,s.d=function(u,f,d){s.o(u,f)||Object.defineProperty(u,f,{enumerable:!0,get:d})},s.r=function(u){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},s.t=function(u,f){if(f&1&&(u=s(u)),f&8||f&4&&typeof u=="object"&&u&&u.__esModule)return u;var d=Object.create(null);if(s.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:u}),f&2&&typeof u!="string")for(var v in u)s.d(d,v,function(p){return u[p]}.bind(null,v));return d},s.n=function(u){var f=u&&u.__esModule?function(){return u.default}:function(){return u};return s.d(f,"a",f),f},s.o=function(u,f){return Object.prototype.hasOwnProperty.call(u,f)},s.p="",s(s.s="fae3")}({"00ee":function(n,l,s){var u=s("b622"),f=u("toStringTag"),d={};d[f]="z",n.exports=String(d)==="[object z]"},"0366":function(n,l,s){var u=s("1c0b");n.exports=function(f,d,v){if(u(f),d===void 0)return f;switch(v){case 0:return function(){return f.call(d)};case 1:return function(p){return f.call(d,p)};case 2:return function(p,m){return f.call(d,p,m)};case 3:return function(p,m,b){return f.call(d,p,m,b)}}return function(){return f.apply(d,arguments)}}},"057f":function(n,l,s){var u=s("fc6a"),f=s("241c").f,d={}.toString,v=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(m){try{return f(m)}catch{return v.slice()}};n.exports.f=function(b){return v&&d.call(b)=="[object Window]"?p(b):f(u(b))}},"06cf":function(n,l,s){var u=s("83ab"),f=s("d1e7"),d=s("5c6c"),v=s("fc6a"),p=s("c04e"),m=s("5135"),b=s("0cfb"),w=Object.getOwnPropertyDescriptor;l.f=u?w:function(P,A){if(P=v(P),A=p(A,!0),b)try{return w(P,A)}catch{}if(m(P,A))return d(!f.f.call(P,A),P[A])}},"0cfb":function(n,l,s){var u=s("83ab"),f=s("d039"),d=s("cc12");n.exports=!u&&!f(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},"159b":function(n,l,s){var u=s("da84"),f=s("fdbc"),d=s("17c2"),v=s("9112");for(var p in f){var m=u[p],b=m&&m.prototype;if(b&&b.forEach!==d)try{v(b,"forEach",d)}catch{b.forEach=d}}},"17c2":function(n,l,s){var u=s("b727").forEach,f=s("a640"),d=f("forEach");n.exports=d?[].forEach:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}},"1be4":function(n,l,s){var u=s("d066");n.exports=u("document","documentElement")},"1c0b":function(n,l){n.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},"1c7e":function(n,l,s){var u=s("b622"),f=u("iterator"),d=!1;try{var v=0,p={next:function(){return{done:!!v++}},return:function(){d=!0}};p[f]=function(){return this},Array.from(p,function(){throw 2})}catch{}n.exports=function(m,b){if(!b&&!d)return!1;var w=!1;try{var C={};C[f]=function(){return{next:function(){return{done:w=!0}}}},m(C)}catch{}return w}},"1d80":function(n,l){n.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"1dde":function(n,l,s){var u=s("d039"),f=s("b622"),d=s("2d00"),v=f("species");n.exports=function(p){return d>=51||!u(function(){var m=[],b=m.constructor={};return b[v]=function(){return{foo:1}},m[p](Boolean).foo!==1})}},"23cb":function(n,l,s){var u=s("a691"),f=Math.max,d=Math.min;n.exports=function(v,p){var m=u(v);return m<0?f(m+p,0):d(m,p)}},"23e7":function(n,l,s){var u=s("da84"),f=s("06cf").f,d=s("9112"),v=s("6eeb"),p=s("ce4e"),m=s("e893"),b=s("94ca");n.exports=function(w,C){var P=w.target,A=w.global,G=w.stat,F,W,M,I,H,q;if(A?W=u:G?W=u[P]||p(P,{}):W=(u[P]||{}).prototype,W)for(M in C){if(H=C[M],w.noTargetGet?(q=f(W,M),I=q&&q.value):I=W[M],F=b(A?M:P+(G?".":"#")+M,w.forced),!F&&I!==void 0){if(typeof H==typeof I)continue;m(H,I)}(w.sham||I&&I.sham)&&d(H,"sham",!0),v(W,M,H,w)}}},"241c":function(n,l,s){var u=s("ca84"),f=s("7839"),d=f.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(p){return u(p,d)}},"2532":function(n,l,s){var u=s("23e7"),f=s("5a34"),d=s("1d80"),v=s("ab13");u({target:"String",proto:!0,forced:!v("includes")},{includes:function(m){return!!~String(d(this)).indexOf(f(m),arguments.length>1?arguments[1]:void 0)}})},"2a62":function(n,l,s){var u=s("825a");n.exports=function(f){var d=f.return;if(d!==void 0)return u(d.call(f)).value}},"2d00":function(n,l,s){var u=s("da84"),f=s("342f"),d=u.process,v=d&&d.versions,p=v&&v.v8,m,b;p?(m=p.split("."),b=m[0]<4?1:m[0]+m[1]):f&&(m=f.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=f.match(/Chrome\/(\d+)/),m&&(b=m[1]))),n.exports=b&&+b},"342f":function(n,l,s){var u=s("d066");n.exports=u("navigator","userAgent")||""},"35a1":function(n,l,s){var u=s("f5df"),f=s("3f8c"),d=s("b622"),v=d("iterator");n.exports=function(p){if(p!=null)return p[v]||p["@@iterator"]||f[u(p)]}},"37e8":function(n,l,s){var u=s("83ab"),f=s("9bf2"),d=s("825a"),v=s("df75");n.exports=u?Object.defineProperties:function(m,b){d(m);for(var w=v(b),C=w.length,P=0,A;C>P;)f.f(m,A=w[P++],b[A]);return m}},"3bbe":function(n,l,s){var u=s("861d");n.exports=function(f){if(!u(f)&&f!==null)throw TypeError("Can't set "+String(f)+" as a prototype");return f}},"3ca3":function(n,l,s){var u=s("6547").charAt,f=s("69f3"),d=s("7dd0"),v="String Iterator",p=f.set,m=f.getterFor(v);d(String,"String",function(b){p(this,{type:v,string:String(b),index:0})},function(){var w=m(this),C=w.string,P=w.index,A;return P>=C.length?{value:void 0,done:!0}:(A=u(C,P),w.index+=A.length,{value:A,done:!1})})},"3f8c":function(n,l){n.exports={}},"428f":function(n,l,s){var u=s("da84");n.exports=u},"44ad":function(n,l,s){var u=s("d039"),f=s("c6b6"),d="".split;n.exports=u(function(){return!Object("z").propertyIsEnumerable(0)})?function(v){return f(v)=="String"?d.call(v,""):Object(v)}:Object},"44d2":function(n,l,s){var u=s("b622"),f=s("7c73"),d=s("9bf2"),v=u("unscopables"),p=Array.prototype;p[v]==null&&d.f(p,v,{configurable:!0,value:f(null)}),n.exports=function(m){p[v][m]=!0}},"44e7":function(n,l,s){var u=s("861d"),f=s("c6b6"),d=s("b622"),v=d("match");n.exports=function(p){var m;return u(p)&&((m=p[v])!==void 0?!!m:f(p)=="RegExp")}},"4930":function(n,l,s){var u=s("2d00"),f=s("d039");n.exports=!!Object.getOwnPropertySymbols&&!f(function(){var d=Symbol();return!String(d)||!(Object(d)instanceof Symbol)||!Symbol.sham&&u&&u<41})},"4d64":function(n,l,s){var u=s("fc6a"),f=s("50c4"),d=s("23cb"),v=function(p){return function(m,b,w){var C=u(m),P=f(C.length),A=d(w,P),G;if(p&&b!=b){for(;P>A;)if(G=C[A++],G!=G)return!0}else for(;P>A;A++)if((p||A in C)&&C[A]===b)return p||A||0;return!p&&-1}};n.exports={includes:v(!0),indexOf:v(!1)}},"4de4":function(n,l,s){var u=s("23e7"),f=s("b727").filter,d=s("1dde"),v=d("filter");u({target:"Array",proto:!0,forced:!v},{filter:function(m){return f(this,m,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(n,l,s){var u=s("0366"),f=s("7b0b"),d=s("9bdd"),v=s("e95a"),p=s("50c4"),m=s("8418"),b=s("35a1");n.exports=function(C){var P=f(C),A=typeof this=="function"?this:Array,G=arguments.length,F=G>1?arguments[1]:void 0,W=F!==void 0,M=b(P),I=0,H,q,_,V,J,te;if(W&&(F=u(F,G>2?arguments[2]:void 0,2)),M!=null&&!(A==Array&&v(M)))for(V=M.call(P),J=V.next,q=new A;!(_=J.call(V)).done;I++)te=W?d(V,F,[_.value,I],!0):_.value,m(q,I,te);else for(H=p(P.length),q=new A(H);H>I;I++)te=W?F(P[I],I):P[I],m(q,I,te);return q.length=I,q}},"4fad":function(n,l,s){var u=s("23e7"),f=s("6f53").entries;u({target:"Object",stat:!0},{entries:function(v){return f(v)}})},"50c4":function(n,l,s){var u=s("a691"),f=Math.min;n.exports=function(d){return d>0?f(u(d),9007199254740991):0}},"5135":function(n,l,s){var u=s("7b0b"),f={}.hasOwnProperty;n.exports=Object.hasOwn||function(v,p){return f.call(u(v),p)}},"5692":function(n,l,s){var u=s("c430"),f=s("c6cd");(n.exports=function(d,v){return f[d]||(f[d]=v!==void 0?v:{})})("versions",[]).push({version:"3.15.2",mode:u?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(n,l,s){var u=s("d066"),f=s("241c"),d=s("7418"),v=s("825a");n.exports=u("Reflect","ownKeys")||function(m){var b=f.f(v(m)),w=d.f;return w?b.concat(w(m)):b}},"5899":function(n,l){n.exports=`
32
+ \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"58a8":function(n,l,s){var u=s("1d80"),f=s("5899"),d="["+f+"]",v=RegExp("^"+d+d+"*"),p=RegExp(d+d+"*$"),m=function(b){return function(w){var C=String(u(w));return b&1&&(C=C.replace(v,"")),b&2&&(C=C.replace(p,"")),C}};n.exports={start:m(1),end:m(2),trim:m(3)}},"5a34":function(n,l,s){var u=s("44e7");n.exports=function(f){if(u(f))throw TypeError("The method doesn't accept regular expressions");return f}},"5c6c":function(n,l){n.exports=function(s,u){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:u}}},"6547":function(n,l,s){var u=s("a691"),f=s("1d80"),d=function(v){return function(p,m){var b=String(f(p)),w=u(m),C=b.length,P,A;return w<0||w>=C?v?"":void 0:(P=b.charCodeAt(w),P<55296||P>56319||w+1===C||(A=b.charCodeAt(w+1))<56320||A>57343?v?b.charAt(w):P:v?b.slice(w,w+2):(P-55296<<10)+(A-56320)+65536)}};n.exports={codeAt:d(!1),charAt:d(!0)}},"65f0":function(n,l,s){var u=s("861d"),f=s("e8b5"),d=s("b622"),v=d("species");n.exports=function(p,m){var b;return f(p)&&(b=p.constructor,typeof b=="function"&&(b===Array||f(b.prototype))?b=void 0:u(b)&&(b=b[v],b===null&&(b=void 0))),new(b===void 0?Array:b)(m===0?0:m)}},"69f3":function(n,l,s){var u=s("7f9a"),f=s("da84"),d=s("861d"),v=s("9112"),p=s("5135"),m=s("c6cd"),b=s("f772"),w=s("d012"),C="Object already initialized",P=f.WeakMap,A,G,F,W=function(J){return F(J)?G(J):A(J,{})},M=function(J){return function(te){var ie;if(!d(te)||(ie=G(te)).type!==J)throw TypeError("Incompatible receiver, "+J+" required");return ie}};if(u||m.state){var I=m.state||(m.state=new P),H=I.get,q=I.has,_=I.set;A=function(J,te){if(q.call(I,J))throw new TypeError(C);return te.facade=J,_.call(I,J,te),te},G=function(J){return H.call(I,J)||{}},F=function(J){return q.call(I,J)}}else{var V=b("state");w[V]=!0,A=function(J,te){if(p(J,V))throw new TypeError(C);return te.facade=J,v(J,V,te),te},G=function(J){return p(J,V)?J[V]:{}},F=function(J){return p(J,V)}}n.exports={set:A,get:G,has:F,enforce:W,getterFor:M}},"6eeb":function(n,l,s){var u=s("da84"),f=s("9112"),d=s("5135"),v=s("ce4e"),p=s("8925"),m=s("69f3"),b=m.get,w=m.enforce,C=String(String).split("String");(n.exports=function(P,A,G,F){var W=F?!!F.unsafe:!1,M=F?!!F.enumerable:!1,I=F?!!F.noTargetGet:!1,H;if(typeof G=="function"&&(typeof A=="string"&&!d(G,"name")&&f(G,"name",A),H=w(G),H.source||(H.source=C.join(typeof A=="string"?A:""))),P===u){M?P[A]=G:v(A,G);return}else W?!I&&P[A]&&(M=!0):delete P[A];M?P[A]=G:f(P,A,G)})(Function.prototype,"toString",function(){return typeof this=="function"&&b(this).source||p(this)})},"6f53":function(n,l,s){var u=s("83ab"),f=s("df75"),d=s("fc6a"),v=s("d1e7").f,p=function(m){return function(b){for(var w=d(b),C=f(w),P=C.length,A=0,G=[],F;P>A;)F=C[A++],(!u||v.call(w,F))&&G.push(m?[F,w[F]]:w[F]);return G}};n.exports={entries:p(!0),values:p(!1)}},"7156":function(n,l,s){var u=s("861d"),f=s("d2bb");n.exports=function(d,v,p){var m,b;return f&&typeof(m=v.constructor)=="function"&&m!==p&&u(b=m.prototype)&&b!==p.prototype&&f(d,b),d}},"7418":function(n,l){l.f=Object.getOwnPropertySymbols},"746f":function(n,l,s){var u=s("428f"),f=s("5135"),d=s("e538"),v=s("9bf2").f;n.exports=function(p){var m=u.Symbol||(u.Symbol={});f(m,p)||v(m,p,{value:d.f(p)})}},"7839":function(n,l){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(n,l,s){var u=s("1d80");n.exports=function(f){return Object(u(f))}},"7c73":function(n,l,s){var u=s("825a"),f=s("37e8"),d=s("7839"),v=s("d012"),p=s("1be4"),m=s("cc12"),b=s("f772"),w=">",C="<",P="prototype",A="script",G=b("IE_PROTO"),F=function(){},W=function(_){return C+A+w+_+C+"/"+A+w},M=function(_){_.write(W("")),_.close();var V=_.parentWindow.Object;return _=null,V},I=function(){var _=m("iframe"),V="java"+A+":",J;return _.style.display="none",p.appendChild(_),_.src=String(V),J=_.contentWindow.document,J.open(),J.write(W("document.F=Object")),J.close(),J.F},H,q=function(){try{H=document.domain&&new ActiveXObject("htmlfile")}catch{}q=H?M(H):I();for(var _=d.length;_--;)delete q[P][d[_]];return q()};v[G]=!0,n.exports=Object.create||function(V,J){var te;return V!==null?(F[P]=u(V),te=new F,F[P]=null,te[G]=V):te=q(),J===void 0?te:f(te,J)}},"7db0":function(n,l,s){var u=s("23e7"),f=s("b727").find,d=s("44d2"),v="find",p=!0;v in[]&&Array(1)[v](function(){p=!1}),u({target:"Array",proto:!0,forced:p},{find:function(b){return f(this,b,arguments.length>1?arguments[1]:void 0)}}),d(v)},"7dd0":function(n,l,s){var u=s("23e7"),f=s("9ed3"),d=s("e163"),v=s("d2bb"),p=s("d44e"),m=s("9112"),b=s("6eeb"),w=s("b622"),C=s("c430"),P=s("3f8c"),A=s("ae93"),G=A.IteratorPrototype,F=A.BUGGY_SAFARI_ITERATORS,W=w("iterator"),M="keys",I="values",H="entries",q=function(){return this};n.exports=function(_,V,J,te,ie,Q,ee){f(J,V,te);var k=function(Ie){if(Ie===ie&&$)return $;if(!F&&Ie in z)return z[Ie];switch(Ie){case M:return function(){return new J(this,Ie)};case I:return function(){return new J(this,Ie)};case H:return function(){return new J(this,Ie)}}return function(){return new J(this)}},O=V+" Iterator",x=!1,z=_.prototype,B=z[W]||z["@@iterator"]||ie&&z[ie],$=!F&&B||k(ie),se=V=="Array"&&z.entries||B,de,Ke,Ve;if(se&&(de=d(se.call(new _)),G!==Object.prototype&&de.next&&(!C&&d(de)!==G&&(v?v(de,G):typeof de[W]!="function"&&m(de,W,q)),p(de,O,!0,!0),C&&(P[O]=q))),ie==I&&B&&B.name!==I&&(x=!0,$=function(){return B.call(this)}),(!C||ee)&&z[W]!==$&&m(z,W,$),P[V]=$,ie)if(Ke={values:k(I),keys:Q?$:k(M),entries:k(H)},ee)for(Ve in Ke)(F||x||!(Ve in z))&&b(z,Ve,Ke[Ve]);else u({target:V,proto:!0,forced:F||x},Ke);return Ke}},"7f9a":function(n,l,s){var u=s("da84"),f=s("8925"),d=u.WeakMap;n.exports=typeof d=="function"&&/native code/.test(f(d))},"825a":function(n,l,s){var u=s("861d");n.exports=function(f){if(!u(f))throw TypeError(String(f)+" is not an object");return f}},"83ab":function(n,l,s){var u=s("d039");n.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"8418":function(n,l,s){var u=s("c04e"),f=s("9bf2"),d=s("5c6c");n.exports=function(v,p,m){var b=u(p);b in v?f.f(v,b,d(0,m)):v[b]=m}},"861d":function(n,l){n.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},"8875":function(n,l,s){var u,f,d;(function(v,p){f=[],u=p,d=typeof u=="function"?u.apply(l,f):u,d!==void 0&&(n.exports=d)})(typeof self!="undefined"?self:this,function(){function v(){var p=Object.getOwnPropertyDescriptor(document,"currentScript");if(!p&&"currentScript"in document&&document.currentScript||p&&p.get!==v&&document.currentScript)return document.currentScript;try{throw new Error}catch(H){var m=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,b=/@([^@]*):(\d+):(\d+)\s*$/ig,w=m.exec(H.stack)||b.exec(H.stack),C=w&&w[1]||!1,P=w&&w[2]||!1,A=document.location.href.replace(document.location.hash,""),G,F,W,M=document.getElementsByTagName("script");C===A&&(G=document.documentElement.outerHTML,F=new RegExp("(?:[^\\n]+?\\n){0,"+(P-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),W=G.replace(F,"$1").trim());for(var I=0;I<M.length;I++)if(M[I].readyState==="interactive"||M[I].src===C||C===A&&M[I].innerHTML&&M[I].innerHTML.trim()===W)return M[I];return null}}return v})},"8925":function(n,l,s){var u=s("c6cd"),f=Function.toString;typeof u.inspectSource!="function"&&(u.inspectSource=function(d){return f.call(d)}),n.exports=u.inspectSource},"8bbf":function(n,l){n.exports=hw},"90e3":function(n,l){var s=0,u=Math.random();n.exports=function(f){return"Symbol("+String(f===void 0?"":f)+")_"+(++s+u).toString(36)}},"9112":function(n,l,s){var u=s("83ab"),f=s("9bf2"),d=s("5c6c");n.exports=u?function(v,p,m){return f.f(v,p,d(1,m))}:function(v,p,m){return v[p]=m,v}},"94ca":function(n,l,s){var u=s("d039"),f=/#|\.prototype\./,d=function(w,C){var P=p[v(w)];return P==b?!0:P==m?!1:typeof C=="function"?u(C):!!C},v=d.normalize=function(w){return String(w).replace(f,".").toLowerCase()},p=d.data={},m=d.NATIVE="N",b=d.POLYFILL="P";n.exports=d},"9bdd":function(n,l,s){var u=s("825a"),f=s("2a62");n.exports=function(d,v,p,m){try{return m?v(u(p)[0],p[1]):v(p)}catch(b){throw f(d),b}}},"9bf2":function(n,l,s){var u=s("83ab"),f=s("0cfb"),d=s("825a"),v=s("c04e"),p=Object.defineProperty;l.f=u?p:function(b,w,C){if(d(b),w=v(w,!0),d(C),f)try{return p(b,w,C)}catch{}if("get"in C||"set"in C)throw TypeError("Accessors not supported");return"value"in C&&(b[w]=C.value),b}},"9ed3":function(n,l,s){var u=s("ae93").IteratorPrototype,f=s("7c73"),d=s("5c6c"),v=s("d44e"),p=s("3f8c"),m=function(){return this};n.exports=function(b,w,C){var P=w+" Iterator";return b.prototype=f(u,{next:d(1,C)}),v(b,P,!1,!0),p[P]=m,b}},a434:function(n,l,s){var u=s("23e7"),f=s("23cb"),d=s("a691"),v=s("50c4"),p=s("7b0b"),m=s("65f0"),b=s("8418"),w=s("1dde"),C=w("splice"),P=Math.max,A=Math.min,G=9007199254740991,F="Maximum allowed length exceeded";u({target:"Array",proto:!0,forced:!C},{splice:function(M,I){var H=p(this),q=v(H.length),_=f(M,q),V=arguments.length,J,te,ie,Q,ee,k;if(V===0?J=te=0:V===1?(J=0,te=q-_):(J=V-2,te=A(P(d(I),0),q-_)),q+J-te>G)throw TypeError(F);for(ie=m(H,te),Q=0;Q<te;Q++)ee=_+Q,ee in H&&b(ie,Q,H[ee]);if(ie.length=te,J<te){for(Q=_;Q<q-te;Q++)ee=Q+te,k=Q+J,ee in H?H[k]=H[ee]:delete H[k];for(Q=q;Q>q-te+J;Q--)delete H[Q-1]}else if(J>te)for(Q=q-te;Q>_;Q--)ee=Q+te-1,k=Q+J-1,ee in H?H[k]=H[ee]:delete H[k];for(Q=0;Q<J;Q++)H[Q+_]=arguments[Q+2];return H.length=q-te+J,ie}})},a4d3:function(n,l,s){var u=s("23e7"),f=s("da84"),d=s("d066"),v=s("c430"),p=s("83ab"),m=s("4930"),b=s("fdbf"),w=s("d039"),C=s("5135"),P=s("e8b5"),A=s("861d"),G=s("825a"),F=s("7b0b"),W=s("fc6a"),M=s("c04e"),I=s("5c6c"),H=s("7c73"),q=s("df75"),_=s("241c"),V=s("057f"),J=s("7418"),te=s("06cf"),ie=s("9bf2"),Q=s("d1e7"),ee=s("9112"),k=s("6eeb"),O=s("5692"),x=s("f772"),z=s("d012"),B=s("90e3"),$=s("b622"),se=s("e538"),de=s("746f"),Ke=s("d44e"),Ve=s("69f3"),Ie=s("b727").forEach,$e=x("hidden"),ne="Symbol",ae="prototype",le=$("toPrimitive"),be=Ve.set,Re=Ve.getterFor(ne),ke=Object[ae],me=f.Symbol,Le=d("JSON","stringify"),R=te.f,j=ie.f,X=V.f,oe=Q.f,ue=O("symbols"),ge=O("op-symbols"),Ce=O("string-to-symbol-registry"),we=O("symbol-to-string-registry"),he=O("wks"),L=f.QObject,Z=!L||!L[ae]||!L[ae].findChild,U=p&&w(function(){return H(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a!=7})?function(Ye,Oe,ve){var Be=R(ke,Oe);Be&&delete ke[Oe],j(Ye,Oe,ve),Be&&Ye!==ke&&j(ke,Oe,Be)}:j,Se=function(Ye,Oe){var ve=ue[Ye]=H(me[ae]);return be(ve,{type:ne,tag:Ye,description:Oe}),p||(ve.description=Oe),ve},De=b?function(Ye){return typeof Ye=="symbol"}:function(Ye){return Object(Ye)instanceof me},Ge=function(Oe,ve,Be){Oe===ke&&Ge(ge,ve,Be),G(Oe);var qe=M(ve,!0);return G(Be),C(ue,qe)?(Be.enumerable?(C(Oe,$e)&&Oe[$e][qe]&&(Oe[$e][qe]=!1),Be=H(Be,{enumerable:I(0,!1)})):(C(Oe,$e)||j(Oe,$e,I(1,{})),Oe[$e][qe]=!0),U(Oe,qe,Be)):j(Oe,qe,Be)},it=function(Oe,ve){G(Oe);var Be=W(ve),qe=q(Be).concat(Wt(Be));return Ie(qe,function(et){(!p||je.call(Be,et))&&Ge(Oe,et,Be[et])}),Oe},Je=function(Oe,ve){return ve===void 0?H(Oe):it(H(Oe),ve)},je=function(Oe){var ve=M(Oe,!0),Be=oe.call(this,ve);return this===ke&&C(ue,ve)&&!C(ge,ve)?!1:Be||!C(this,ve)||!C(ue,ve)||C(this,$e)&&this[$e][ve]?Be:!0},gt=function(Oe,ve){var Be=W(Oe),qe=M(ve,!0);if(!(Be===ke&&C(ue,qe)&&!C(ge,qe))){var et=R(Be,qe);return et&&C(ue,qe)&&!(C(Be,$e)&&Be[$e][qe])&&(et.enumerable=!0),et}},dt=function(Oe){var ve=X(W(Oe)),Be=[];return Ie(ve,function(qe){!C(ue,qe)&&!C(z,qe)&&Be.push(qe)}),Be},Wt=function(Oe){var ve=Oe===ke,Be=X(ve?ge:W(Oe)),qe=[];return Ie(Be,function(et){C(ue,et)&&(!ve||C(ke,et))&&qe.push(ue[et])}),qe};if(m||(me=function(){if(this instanceof me)throw TypeError("Symbol is not a constructor");var Oe=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ve=B(Oe),Be=function(qe){this===ke&&Be.call(ge,qe),C(this,$e)&&C(this[$e],ve)&&(this[$e][ve]=!1),U(this,ve,I(1,qe))};return p&&Z&&U(ke,ve,{configurable:!0,set:Be}),Se(ve,Oe)},k(me[ae],"toString",function(){return Re(this).tag}),k(me,"withoutSetter",function(Ye){return Se(B(Ye),Ye)}),Q.f=je,ie.f=Ge,te.f=gt,_.f=V.f=dt,J.f=Wt,se.f=function(Ye){return Se($(Ye),Ye)},p&&(j(me[ae],"description",{configurable:!0,get:function(){return Re(this).description}}),v||k(ke,"propertyIsEnumerable",je,{unsafe:!0}))),u({global:!0,wrap:!0,forced:!m,sham:!m},{Symbol:me}),Ie(q(he),function(Ye){de(Ye)}),u({target:ne,stat:!0,forced:!m},{for:function(Ye){var Oe=String(Ye);if(C(Ce,Oe))return Ce[Oe];var ve=me(Oe);return Ce[Oe]=ve,we[ve]=Oe,ve},keyFor:function(Oe){if(!De(Oe))throw TypeError(Oe+" is not a symbol");if(C(we,Oe))return we[Oe]},useSetter:function(){Z=!0},useSimple:function(){Z=!1}}),u({target:"Object",stat:!0,forced:!m,sham:!p},{create:Je,defineProperty:Ge,defineProperties:it,getOwnPropertyDescriptor:gt}),u({target:"Object",stat:!0,forced:!m},{getOwnPropertyNames:dt,getOwnPropertySymbols:Wt}),u({target:"Object",stat:!0,forced:w(function(){J.f(1)})},{getOwnPropertySymbols:function(Oe){return J.f(F(Oe))}}),Le){var Fe=!m||w(function(){var Ye=me();return Le([Ye])!="[null]"||Le({a:Ye})!="{}"||Le(Object(Ye))!="{}"});u({target:"JSON",stat:!0,forced:Fe},{stringify:function(Oe,ve,Be){for(var qe=[Oe],et=1,qt;arguments.length>et;)qe.push(arguments[et++]);if(qt=ve,!(!A(ve)&&Oe===void 0||De(Oe)))return P(ve)||(ve=function(Pt,gr){if(typeof qt=="function"&&(gr=qt.call(this,Pt,gr)),!De(gr))return gr}),qe[1]=ve,Le.apply(null,qe)}})}me[ae][le]||ee(me[ae],le,me[ae].valueOf),Ke(me,ne),z[$e]=!0},a630:function(n,l,s){var u=s("23e7"),f=s("4df4"),d=s("1c7e"),v=!d(function(p){Array.from(p)});u({target:"Array",stat:!0,forced:v},{from:f})},a640:function(n,l,s){var u=s("d039");n.exports=function(f,d){var v=[][f];return!!v&&u(function(){v.call(null,d||function(){throw 1},1)})}},a691:function(n,l){var s=Math.ceil,u=Math.floor;n.exports=function(f){return isNaN(f=+f)?0:(f>0?u:s)(f)}},a9e3:function(n,l,s){var u=s("83ab"),f=s("da84"),d=s("94ca"),v=s("6eeb"),p=s("5135"),m=s("c6b6"),b=s("7156"),w=s("c04e"),C=s("d039"),P=s("7c73"),A=s("241c").f,G=s("06cf").f,F=s("9bf2").f,W=s("58a8").trim,M="Number",I=f[M],H=I.prototype,q=m(P(H))==M,_=function(Q){var ee=w(Q,!1),k,O,x,z,B,$,se,de;if(typeof ee=="string"&&ee.length>2){if(ee=W(ee),k=ee.charCodeAt(0),k===43||k===45){if(O=ee.charCodeAt(2),O===88||O===120)return NaN}else if(k===48){switch(ee.charCodeAt(1)){case 66:case 98:x=2,z=49;break;case 79:case 111:x=8,z=55;break;default:return+ee}for(B=ee.slice(2),$=B.length,se=0;se<$;se++)if(de=B.charCodeAt(se),de<48||de>z)return NaN;return parseInt(B,x)}}return+ee};if(d(M,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var V=function(ee){var k=arguments.length<1?0:ee,O=this;return O instanceof V&&(q?C(function(){H.valueOf.call(O)}):m(O)!=M)?b(new I(_(k)),O,V):_(k)},J=u?A(I):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),te=0,ie;J.length>te;te++)p(I,ie=J[te])&&!p(V,ie)&&F(V,ie,G(I,ie));V.prototype=H,H.constructor=V,v(f,M,V)}},ab13:function(n,l,s){var u=s("b622"),f=u("match");n.exports=function(d){var v=/./;try{"/./"[d](v)}catch{try{return v[f]=!1,"/./"[d](v)}catch{}}return!1}},ae93:function(n,l,s){var u=s("d039"),f=s("e163"),d=s("9112"),v=s("5135"),p=s("b622"),m=s("c430"),b=p("iterator"),w=!1,C=function(){return this},P,A,G;[].keys&&(G=[].keys(),"next"in G?(A=f(f(G)),A!==Object.prototype&&(P=A)):w=!0);var F=P==null||u(function(){var W={};return P[b].call(W)!==W});F&&(P={}),(!m||F)&&!v(P,b)&&d(P,b,C),n.exports={IteratorPrototype:P,BUGGY_SAFARI_ITERATORS:w}},b041:function(n,l,s){var u=s("00ee"),f=s("f5df");n.exports=u?{}.toString:function(){return"[object "+f(this)+"]"}},b0c0:function(n,l,s){var u=s("83ab"),f=s("9bf2").f,d=Function.prototype,v=d.toString,p=/^\s*function ([^ (]*)/,m="name";u&&!(m in d)&&f(d,m,{configurable:!0,get:function(){try{return v.call(this).match(p)[1]}catch{return""}}})},b622:function(n,l,s){var u=s("da84"),f=s("5692"),d=s("5135"),v=s("90e3"),p=s("4930"),m=s("fdbf"),b=f("wks"),w=u.Symbol,C=m?w:w&&w.withoutSetter||v;n.exports=function(P){return(!d(b,P)||!(p||typeof b[P]=="string"))&&(p&&d(w,P)?b[P]=w[P]:b[P]=C("Symbol."+P)),b[P]}},b64b:function(n,l,s){var u=s("23e7"),f=s("7b0b"),d=s("df75"),v=s("d039"),p=v(function(){d(1)});u({target:"Object",stat:!0,forced:p},{keys:function(b){return d(f(b))}})},b727:function(n,l,s){var u=s("0366"),f=s("44ad"),d=s("7b0b"),v=s("50c4"),p=s("65f0"),m=[].push,b=function(w){var C=w==1,P=w==2,A=w==3,G=w==4,F=w==6,W=w==7,M=w==5||F;return function(I,H,q,_){for(var V=d(I),J=f(V),te=u(H,q,3),ie=v(J.length),Q=0,ee=_||p,k=C?ee(I,ie):P||W?ee(I,0):void 0,O,x;ie>Q;Q++)if((M||Q in J)&&(O=J[Q],x=te(O,Q,V),w))if(C)k[Q]=x;else if(x)switch(w){case 3:return!0;case 5:return O;case 6:return Q;case 2:m.call(k,O)}else switch(w){case 4:return!1;case 7:m.call(k,O)}return F?-1:A||G?G:k}};n.exports={forEach:b(0),map:b(1),filter:b(2),some:b(3),every:b(4),find:b(5),findIndex:b(6),filterOut:b(7)}},c04e:function(n,l,s){var u=s("861d");n.exports=function(f,d){if(!u(f))return f;var v,p;if(d&&typeof(v=f.toString)=="function"&&!u(p=v.call(f))||typeof(v=f.valueOf)=="function"&&!u(p=v.call(f))||!d&&typeof(v=f.toString)=="function"&&!u(p=v.call(f)))return p;throw TypeError("Can't convert object to primitive value")}},c14f:function(n,l,s){s("ce77")},c430:function(n,l){n.exports=!1},c6b6:function(n,l){var s={}.toString;n.exports=function(u){return s.call(u).slice(8,-1)}},c6cd:function(n,l,s){var u=s("da84"),f=s("ce4e"),d="__core-js_shared__",v=u[d]||f(d,{});n.exports=v},c740:function(n,l,s){var u=s("23e7"),f=s("b727").findIndex,d=s("44d2"),v="findIndex",p=!0;v in[]&&Array(1)[v](function(){p=!1}),u({target:"Array",proto:!0,forced:p},{findIndex:function(b){return f(this,b,arguments.length>1?arguments[1]:void 0)}}),d(v)},c8ba:function(n,l){var s;s=function(){return this}();try{s=s||new Function("return this")()}catch{typeof window=="object"&&(s=window)}n.exports=s},ca84:function(n,l,s){var u=s("5135"),f=s("fc6a"),d=s("4d64").indexOf,v=s("d012");n.exports=function(p,m){var b=f(p),w=0,C=[],P;for(P in b)!u(v,P)&&u(b,P)&&C.push(P);for(;m.length>w;)u(b,P=m[w++])&&(~d(C,P)||C.push(P));return C}},caad:function(n,l,s){var u=s("23e7"),f=s("4d64").includes,d=s("44d2");u({target:"Array",proto:!0},{includes:function(p){return f(this,p,arguments.length>1?arguments[1]:void 0)}}),d("includes")},cc12:function(n,l,s){var u=s("da84"),f=s("861d"),d=u.document,v=f(d)&&f(d.createElement);n.exports=function(p){return v?d.createElement(p):{}}},ce4e:function(n,l,s){var u=s("da84"),f=s("9112");n.exports=function(d,v){try{f(u,d,v)}catch{u[d]=v}return v}},ce77:function(n,l,s){},d012:function(n,l){n.exports={}},d039:function(n,l){n.exports=function(s){try{return!!s()}catch{return!0}}},d066:function(n,l,s){var u=s("428f"),f=s("da84"),d=function(v){return typeof v=="function"?v:void 0};n.exports=function(v,p){return arguments.length<2?d(u[v])||d(f[v]):u[v]&&u[v][p]||f[v]&&f[v][p]}},d1e7:function(n,l,s){var u={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,d=f&&!u.call({1:2},1);l.f=d?function(p){var m=f(this,p);return!!m&&m.enumerable}:u},d28b:function(n,l,s){var u=s("746f");u("iterator")},d2bb:function(n,l,s){var u=s("825a"),f=s("3bbe");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var d=!1,v={},p;try{p=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,p.call(v,[]),d=v instanceof Array}catch{}return function(b,w){return u(b),f(w),d?p.call(b,w):b.__proto__=w,b}}():void 0)},d3b7:function(n,l,s){var u=s("00ee"),f=s("6eeb"),d=s("b041");u||f(Object.prototype,"toString",d,{unsafe:!0})},d44e:function(n,l,s){var u=s("9bf2").f,f=s("5135"),d=s("b622"),v=d("toStringTag");n.exports=function(p,m,b){p&&!f(p=b?p:p.prototype,v)&&u(p,v,{configurable:!0,value:m})}},d81d:function(n,l,s){var u=s("23e7"),f=s("b727").map,d=s("1dde"),v=d("map");u({target:"Array",proto:!0,forced:!v},{map:function(m){return f(this,m,arguments.length>1?arguments[1]:void 0)}})},da84:function(n,l,s){(function(u){var f=function(d){return d&&d.Math==Math&&d};n.exports=f(typeof globalThis=="object"&&globalThis)||f(typeof window=="object"&&window)||f(typeof self=="object"&&self)||f(typeof u=="object"&&u)||function(){return this}()||Function("return this")()}).call(this,s("c8ba"))},dbb4:function(n,l,s){var u=s("23e7"),f=s("83ab"),d=s("56ef"),v=s("fc6a"),p=s("06cf"),m=s("8418");u({target:"Object",stat:!0,sham:!f},{getOwnPropertyDescriptors:function(w){for(var C=v(w),P=p.f,A=d(C),G={},F=0,W,M;A.length>F;)M=P(C,W=A[F++]),M!==void 0&&m(G,W,M);return G}})},ddb0:function(n,l,s){var u=s("da84"),f=s("fdbc"),d=s("e260"),v=s("9112"),p=s("b622"),m=p("iterator"),b=p("toStringTag"),w=d.values;for(var C in f){var P=u[C],A=P&&P.prototype;if(A){if(A[m]!==w)try{v(A,m,w)}catch{A[m]=w}if(A[b]||v(A,b,C),f[C]){for(var G in d)if(A[G]!==d[G])try{v(A,G,d[G])}catch{A[G]=d[G]}}}}},df75:function(n,l,s){var u=s("ca84"),f=s("7839");n.exports=Object.keys||function(v){return u(v,f)}},e01a:function(n,l,s){var u=s("23e7"),f=s("83ab"),d=s("da84"),v=s("5135"),p=s("861d"),m=s("9bf2").f,b=s("e893"),w=d.Symbol;if(f&&typeof w=="function"&&(!("description"in w.prototype)||w().description!==void 0)){var C={},P=function(){var I=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),H=this instanceof P?new w(I):I===void 0?w():w(I);return I===""&&(C[H]=!0),H};b(P,w);var A=P.prototype=w.prototype;A.constructor=P;var G=A.toString,F=String(w("test"))=="Symbol(test)",W=/^Symbol\((.*)\)[^)]+$/;m(A,"description",{configurable:!0,get:function(){var I=p(this)?this.valueOf():this,H=G.call(I);if(v(C,I))return"";var q=F?H.slice(7,-1):H.replace(W,"$1");return q===""?void 0:q}}),u({global:!0,forced:!0},{Symbol:P})}},e163:function(n,l,s){var u=s("5135"),f=s("7b0b"),d=s("f772"),v=s("e177"),p=d("IE_PROTO"),m=Object.prototype;n.exports=v?Object.getPrototypeOf:function(b){return b=f(b),u(b,p)?b[p]:typeof b.constructor=="function"&&b instanceof b.constructor?b.constructor.prototype:b instanceof Object?m:null}},e177:function(n,l,s){var u=s("d039");n.exports=!u(function(){function f(){}return f.prototype.constructor=null,Object.getPrototypeOf(new f)!==f.prototype})},e260:function(n,l,s){var u=s("fc6a"),f=s("44d2"),d=s("3f8c"),v=s("69f3"),p=s("7dd0"),m="Array Iterator",b=v.set,w=v.getterFor(m);n.exports=p(Array,"Array",function(C,P){b(this,{type:m,target:u(C),index:0,kind:P})},function(){var C=w(this),P=C.target,A=C.kind,G=C.index++;return!P||G>=P.length?(C.target=void 0,{value:void 0,done:!0}):A=="keys"?{value:G,done:!1}:A=="values"?{value:P[G],done:!1}:{value:[G,P[G]],done:!1}},"values"),d.Arguments=d.Array,f("keys"),f("values"),f("entries")},e439:function(n,l,s){var u=s("23e7"),f=s("d039"),d=s("fc6a"),v=s("06cf").f,p=s("83ab"),m=f(function(){v(1)}),b=!p||m;u({target:"Object",stat:!0,forced:b,sham:!p},{getOwnPropertyDescriptor:function(C,P){return v(d(C),P)}})},e538:function(n,l,s){var u=s("b622");l.f=u},e893:function(n,l,s){var u=s("5135"),f=s("56ef"),d=s("06cf"),v=s("9bf2");n.exports=function(p,m){for(var b=f(m),w=v.f,C=d.f,P=0;P<b.length;P++){var A=b[P];u(p,A)||w(p,A,C(m,A))}}},e8b5:function(n,l,s){var u=s("c6b6");n.exports=Array.isArray||function(d){return u(d)=="Array"}},e95a:function(n,l,s){var u=s("b622"),f=s("3f8c"),d=u("iterator"),v=Array.prototype;n.exports=function(p){return p!==void 0&&(f.Array===p||v[d]===p)}},f5df:function(n,l,s){var u=s("00ee"),f=s("c6b6"),d=s("b622"),v=d("toStringTag"),p=f(function(){return arguments}())=="Arguments",m=function(b,w){try{return b[w]}catch{}};n.exports=u?f:function(b){var w,C,P;return b===void 0?"Undefined":b===null?"Null":typeof(C=m(w=Object(b),v))=="string"?C:p?f(w):(P=f(w))=="Object"&&typeof w.callee=="function"?"Arguments":P}},f772:function(n,l,s){var u=s("5692"),f=s("90e3"),d=u("keys");n.exports=function(v){return d[v]||(d[v]=f(v))}},fae3:function(n,l,s){if(s.r(l),s.d(l,"Splitpanes",function(){return te}),s.d(l,"Pane",function(){return ee}),typeof window!="undefined"){var u=window.document.currentScript;{var f=s("8875");u=f(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:f})}var d=u&&u.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);d&&(s.p=d[1])}s("b64b"),s("a4d3"),s("4de4"),s("e439"),s("159b"),s("dbb4");function v(k,O,x){return O in k?Object.defineProperty(k,O,{value:x,enumerable:!0,configurable:!0,writable:!0}):k[O]=x,k}function p(k,O){var x=Object.keys(k);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(k);O&&(z=z.filter(function(B){return Object.getOwnPropertyDescriptor(k,B).enumerable})),x.push.apply(x,z)}return x}function m(k){for(var O=1;O<arguments.length;O++){var x=arguments[O]!=null?arguments[O]:{};O%2?p(Object(x),!0).forEach(function(z){v(k,z,x[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(x)):p(Object(x)).forEach(function(z){Object.defineProperty(k,z,Object.getOwnPropertyDescriptor(x,z))})}return k}function b(k){if(Array.isArray(k))return k}s("e01a"),s("d3b7"),s("d28b"),s("e260"),s("3ca3"),s("ddb0");function w(k,O){var x=k==null?null:typeof Symbol!="undefined"&&k[Symbol.iterator]||k["@@iterator"];if(x!=null){var z=[],B=!0,$=!1,se,de;try{for(x=x.call(k);!(B=(se=x.next()).done)&&(z.push(se.value),!(O&&z.length===O));B=!0);}catch(Ke){$=!0,de=Ke}finally{try{!B&&x.return!=null&&x.return()}finally{if($)throw de}}return z}}s("fb6a"),s("b0c0"),s("a630");function C(k,O){(O==null||O>k.length)&&(O=k.length);for(var x=0,z=new Array(O);x<O;x++)z[x]=k[x];return z}function P(k,O){if(!!k){if(typeof k=="string")return C(k,O);var x=Object.prototype.toString.call(k).slice(8,-1);if(x==="Object"&&k.constructor&&(x=k.constructor.name),x==="Map"||x==="Set")return Array.from(k);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return C(k,O)}}function A(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(k,O){return b(k)||w(k,O)||P(k,O)||A()}function F(k,O){if(k==null)return{};var x={},z=Object.keys(k),B,$;for($=0;$<z.length;$++)B=z[$],!(O.indexOf(B)>=0)&&(x[B]=k[B]);return x}function W(k,O){if(k==null)return{};var x=F(k,O),z,B;if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(k);for(B=0;B<$.length;B++)z=$[B],!(O.indexOf(z)>=0)&&(!Object.prototype.propertyIsEnumerable.call(k,z)||(x[z]=k[z]))}return x}function M(k){if(Array.isArray(k))return C(k)}function I(k){if(typeof Symbol!="undefined"&&k[Symbol.iterator]!=null||k["@@iterator"]!=null)return Array.from(k)}function H(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
34
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q(k){return M(k)||I(k)||P(k)||H()}s("d81d"),s("7db0"),s("caad"),s("2532"),s("4fad"),s("a434"),s("c740");var _=s("8bbf"),V=["target"],J={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:function(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:function(){return{container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}},computed:{panesCount:function(){return this.panes.length},indexedPanes:function(){return this.panes.reduce(function(O,x){return(O[x.id]=x)&&O},{})}},methods:{updatePaneComponents:function(){var O=this;this.panes.forEach(function(x){x.update&&x.update(v({},O.horizontal?"height":"width","".concat(O.indexedPanes[x.id].size,"%")))})},bindEvents:function(){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:function(){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:function(O,x){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=x},onMouseMove:function(O){this.touch.mouseDown&&(O.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(O)),this.$emit("resize",this.panes.map(function(x){return{min:x.min,max:x.max,size:x.size}})))},onMouseUp:function(){var O=this;this.touch.dragging&&this.$emit("resized",this.panes.map(function(x){return{min:x.min,max:x.max,size:x.size}})),this.touch.mouseDown=!1,setTimeout(function(){O.touch.dragging=!1,O.unbindEvents()},100)},onSplitterClick:function(O,x){var z=this;"ontouchstart"in window&&(O.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===x?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(O,x),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=x,this.splitterTaps.timeoutId=setTimeout(function(){z.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[x])},onSplitterDblClick:function(O,x){var z=0;this.panes=this.panes.map(function(B,$){return B.size=$===x?B.max:B.min,$!==x&&(z+=B.min),B}),this.panes[x].size-=z,this.$emit("pane-maximize",this.panes[x])},onPaneClick:function(O,x){this.$emit("pane-click",this.indexedPanes[x])},getCurrentMouseDrag:function(O){var x=this.container.getBoundingClientRect(),z="ontouchstart"in window&&O.touches?O.touches[0]:O,B=z.clientX,$=z.clientY;return{x:B-x.left,y:$-x.top}},getCurrentDragPercentage:function(O){O=O[this.horizontal?"y":"x"];var x=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(O=x-O),O*100/x},calculatePanesSize:function(O){var x=this.touch.activeSplitter,z={prevPanesSize:this.sumPrevPanesSize(x),nextPanesSize:this.sumNextPanesSize(x),prevReachedMinPanes:0,nextReachedMinPanes:0},B=0+(this.pushOtherPanes?0:z.prevPanesSize),$=100-(this.pushOtherPanes?0:z.nextPanesSize),se=Math.max(Math.min(this.getCurrentDragPercentage(O),$),B),de=[x,x+1],Ke=this.panes[de[0]]||null,Ve=this.panes[de[1]]||null,Ie=Ke.max<100&&se>=Ke.max+z.prevPanesSize,$e=Ve.max<100&&se<=100-(Ve.max+this.sumNextPanesSize(x+1));if(Ie||$e){Ie?(Ke.size=Ke.max,Ve.size=Math.max(100-Ke.max-z.prevPanesSize-z.nextPanesSize,0)):(Ke.size=Math.max(100-Ve.max-z.prevPanesSize-this.sumNextPanesSize(x+1),0),Ve.size=Ve.max);return}if(this.pushOtherPanes){var ne=this.doPushOtherPanes(z,se);if(!ne)return;z=ne.sums,de=ne.panesToResize,Ke=this.panes[de[0]]||null,Ve=this.panes[de[1]]||null}Ke!==null&&(Ke.size=Math.min(Math.max(se-z.prevPanesSize-z.prevReachedMinPanes,Ke.min),Ke.max)),Ve!==null&&(Ve.size=Math.min(Math.max(100-se-z.nextPanesSize-z.nextReachedMinPanes,Ve.min),Ve.max))},doPushOtherPanes:function(O,x){var z=this,B=this.touch.activeSplitter,$=[B,B+1];return x<O.prevPanesSize+this.panes[$[0]].min&&($[0]=this.findPrevExpandedPane(B).index,O.prevReachedMinPanes=0,$[0]<B&&this.panes.forEach(function(se,de){de>$[0]&&de<=B&&(se.size=se.min,O.prevReachedMinPanes+=se.min)}),O.prevPanesSize=this.sumPrevPanesSize($[0]),$[0]===void 0)?(O.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach(function(se,de){de>0&&de<=B&&(se.size=se.min,O.prevReachedMinPanes+=se.min)}),this.panes[$[1]].size=100-O.prevReachedMinPanes-this.panes[0].min-O.prevPanesSize-O.nextPanesSize,null):x>100-O.nextPanesSize-this.panes[$[1]].min&&($[1]=this.findNextExpandedPane(B).index,O.nextReachedMinPanes=0,$[1]>B+1&&this.panes.forEach(function(se,de){de>B&&de<$[1]&&(se.size=se.min,O.nextReachedMinPanes+=se.min)}),O.nextPanesSize=this.sumNextPanesSize($[1]-1),$[1]===void 0)?(O.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach(function(se,de){de<z.panesCount-1&&de>=B+1&&(se.size=se.min,O.nextReachedMinPanes+=se.min)}),this.panes[$[0]].size=100-O.prevPanesSize-O.nextReachedMinPanes-this.panes[this.panesCount-1].min-O.nextPanesSize,null):{sums:O,panesToResize:$}},sumPrevPanesSize:function(O){return this.panes.reduce(function(x,z,B){return x+(B<O?z.size:0)},0)},sumNextPanesSize:function(O){return this.panes.reduce(function(x,z,B){return x+(B>O+1?z.size:0)},0)},findPrevExpandedPane:function(O){var x=q(this.panes).reverse().find(function(z){return z.index<O&&z.size>z.min});return x||{}},findNextExpandedPane:function(O){var x=this.panes.find(function(z){return z.index>O+1&&z.size>z.min});return x||{}},checkSplitpanesNodes:function(){var O=Array.from(this.container.children);O.forEach(function(x){var z=x.classList.contains("splitpanes__pane"),B=x.classList.contains("splitpanes__splitter");if(!z&&!B){x.parentNode.removeChild(x),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.");return}})},addSplitter:function(O,x){var z=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,$=O-1,se=document.createElement("div");se.classList.add("splitpanes__splitter"),B||(se.onmousedown=function(de){return z.onMouseDown(de,$)},typeof window!="undefined"&&"ontouchstart"in window&&(se.ontouchstart=function(de){return z.onMouseDown(de,$)}),se.onclick=function(de){return z.onSplitterClick(de,$+1)}),this.dblClickSplitter&&(se.ondblclick=function(de){return z.onSplitterDblClick(de,$+1)}),x.parentNode.insertBefore(se,x)},removeSplitter:function(O){O.onmousedown=void 0,O.onclick=void 0,O.ondblclick=void 0,O.parentNode.removeChild(O)},redoSplitters:function(){var O=this,x=Array.from(this.container.children);x.forEach(function(B){B.className.includes("splitpanes__splitter")&&O.removeSplitter(B)});var z=0;x.forEach(function(B){B.className.includes("splitpanes__pane")&&(!z&&O.firstSplitter?O.addSplitter(z,B,!0):z&&O.addSplitter(z,B),z++)})},requestUpdate:function(O){var x=O.target,z=W(O,V),B=this.indexedPanes[x._.uid];Object.entries(z).forEach(function($){var se=G($,2),de=se[0],Ke=se[1];return B[de]=Ke})},onPaneAdd:function(O){var x=this,z=-1;Array.from(O.$el.parentNode.children).some(function(se){return se.className.includes("splitpanes__pane")&&z++,se===O.$el});var B=parseFloat(O.minSize),$=parseFloat(O.maxSize);this.panes.splice(z,0,{id:O._.uid,index:z,min:isNaN(B)?0:B,max:isNaN($)?100:$,size:O.size===null?null:parseFloat(O.size),givenSize:O.size,update:O.update}),this.panes.forEach(function(se,de){return se.index=de}),this.ready&&this.$nextTick(function(){x.redoSplitters(),x.resetPaneSizes({addedPane:x.panes[z]}),x.$emit("pane-add",{index:z,panes:x.panes.map(function(se){return{min:se.min,max:se.max,size:se.size}})})})},onPaneRemove:function(O){var x=this,z=this.panes.findIndex(function($){return $.id===O._.uid}),B=this.panes.splice(z,1)[0];this.panes.forEach(function($,se){return $.index=se}),this.$nextTick(function(){x.redoSplitters(),x.resetPaneSizes({removedPane:m(m({},B),{},{index:z})}),x.$emit("pane-remove",{removed:B,panes:x.panes.map(function($){return{min:$.min,max:$.max,size:$.size}})})})},resetPaneSizes:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};!O.addedPane&&!O.removedPane?this.initialPanesSizing():this.panes.some(function(x){return x.givenSize!==null||x.min||x.max<100})?this.equalizeAfterAddOrRemove(O):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(function(x){return{min:x.min,max:x.max,size:x.size}}))},equalize:function(){var O=100/this.panesCount,x=0,z=[],B=[];this.panes.forEach(function($){$.size=Math.max(Math.min(O,$.max),$.min),x-=$.size,$.size>=$.max&&z.push($.id),$.size<=$.min&&B.push($.id)}),x>.1&&this.readjustSizes(x,z,B)},initialPanesSizing:function(){var O=this;100/this.panesCount;var x=100,z=[],B=[],$=0;this.panes.forEach(function(de){x-=de.size,de.size!==null&&$++,de.size>=de.max&&z.push(de.id),de.size<=de.min&&B.push(de.id)});var se=100;x>.1&&(this.panes.forEach(function(de){de.size===null&&(de.size=Math.max(Math.min(x/(O.panesCount-$),de.max),de.min)),se-=de.size}),se>.1&&this.readjustSizes(x,z,B))},equalizeAfterAddOrRemove:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=O.addedPane;O.removedPane;var z=100/this.panesCount,B=0,$=[],se=[];x&&x.givenSize!==null&&(z=(100-x.givenSize)/(this.panesCount-1)),this.panes.forEach(function(de){B-=de.size,de.size>=de.max&&$.push(de.id),de.size<=de.min&&se.push(de.id)}),!(Math.abs(B)<.1)&&(this.panes.forEach(function(de){x&&x.givenSize!==null&&x.id===de.id||(de.size=Math.max(Math.min(z,de.max),de.min)),B-=de.size,de.size>=de.max&&$.push(de.id),de.size<=de.min&&se.push(de.id)}),B>.1&&this.readjustSizes(B,$,se))},readjustSizes:function(O,x,z){var B=this,$;O>0?$=O/(this.panesCount-x.length):$=O/(this.panesCount-z.length),this.panes.forEach(function(se,de){if(O>0&&!x.includes(se.id)){var Ke=Math.max(Math.min(se.size+$,se.max),se.min),Ve=Ke-se.size;O-=Ve,se.size=Ke}else if(!z.includes(se.id)){var Ie=Math.max(Math.min(se.size+$,se.max),se.min),$e=Ie-se.size;O-=$e,se.size=Ie}se.update(v({},B.horizontal?"height":"width","".concat(B.indexedPanes[se.id].size,"%")))}),Math.abs(O)>.1&&this.$nextTick(function(){B.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler:function(){this.updatePaneComponents()}},horizontal:function(){this.updatePaneComponents()},firstSplitter:function(){this.redoSplitters()},dblClickSplitter:function(O){var x=this,z=q(this.container.querySelectorAll(".splitpanes__splitter"));z.forEach(function(B,$){B.ondblclick=O?function(se){return x.onSplitterDblClick(se,$)}:void 0})}},beforeUnmount:function(){this.ready=!1},mounted:function(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render:function(){return Object(_.h)("div",{ref:"container",class:["splitpanes","splitpanes--".concat(this.horizontal?"horizontal":"vertical"),{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}};s("c14f");var te=J;function ie(k,O,x,z,B,$){return Object(_.openBlock)(),Object(_.createBlock)("div",{class:"splitpanes__pane",onClick:O[1]||(O[1]=function(se){return $.onPaneClick(se,k._.uid)}),style:k.style},[Object(_.renderSlot)(k.$slots,"default")],4)}s("a9e3");var Q={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:function(){return{style:{}}},mounted:function(){this.onPaneAdd(this)},beforeUnmount:function(){this.onPaneRemove(this)},methods:{update:function(O){this.style=O}},computed:{sizeNumber:function(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber:function(){return parseFloat(this.minSize)},maxSizeNumber:function(){return parseFloat(this.maxSize)}},watch:{sizeNumber:function(O){this.requestUpdate({target:this,size:O})},minSizeNumber:function(O){this.requestUpdate({target:this,min:O})},maxSizeNumber:function(O){this.requestUpdate({target:this,max:O})}}};Q.render=ie;var ee=Q},fb6a:function(n,l,s){var u=s("23e7"),f=s("861d"),d=s("e8b5"),v=s("23cb"),p=s("50c4"),m=s("fc6a"),b=s("8418"),w=s("b622"),C=s("1dde"),P=C("slice"),A=w("species"),G=[].slice,F=Math.max;u({target:"Array",proto:!0,forced:!P},{slice:function(M,I){var H=m(this),q=p(H.length),_=v(M,q),V=v(I===void 0?q:I,q),J,te,ie;if(d(H)&&(J=H.constructor,typeof J=="function"&&(J===Array||d(J.prototype))?J=void 0:f(J)&&(J=J[A],J===null&&(J=void 0)),J===Array||J===void 0))return G.call(H,_,V);for(te=new(J===void 0?Array:J)(F(V-_,0)),ie=0;_<V;_++,ie++)_ in H&&b(te,ie,H[_]);return te.length=ie,te}})},fc6a:function(n,l,s){var u=s("44ad"),f=s("1d80");n.exports=function(d){return u(f(d))}},fdbc:function(n,l){n.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(n,l,s){var u=s("4930");n.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}})})(dw);export{dw as A,hb as B,xw as C,Sw as D,ww as E,Bt as F,Rb as G,Ct as H,xd as I,gw as J,va as a,fu as b,Fy as c,Bo as d,Uy as e,Iu as f,yw as g,zt as h,ft as i,pw as j,Wy as k,ct as l,Gl as m,cu as n,Ai as o,uu as p,Po as q,Lt as r,Cw as s,em as t,bw as u,Iy as v,Qt as w,jy as x,mw as y,vw as z};