@unocss/inspector 0.27.1 → 0.27.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,34 +0,0 @@
1
- function fa(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 Jg="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",Zg=fa(Jg),Qg="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",qg=fa(Qg);function th(r){return!!r||r===""}function Qo(r){if(He(r)){const n={};for(let l=0;l<r.length;l++){const s=r[l],u=mt(s)?tm(s):Qo(s);if(u)for(const f in u)n[f]=u[f]}return n}else{if(mt(r))return r;if(wt(r))return r}}const _g=/;(?![^(]*\))/g,em=/:(.+)/;function tm(r){const n={};return r.split(_g).forEach(l=>{if(l){const s=l.split(em);s.length>1&&(n[s[0].trim()]=s[1].trim())}}),n}function qo(r){let n="";if(mt(r))n=r;else if(He(r))for(let l=0;l<r.length;l++){const s=qo(r[l]);s&&(n+=s+" ")}else if(wt(r))for(const l in r)r[l]&&(n+=l+" ");return n.trim()}function rm(r){if(!r)return null;let{class:n,style:l}=r;return n&&!mt(n)&&(r.class=qo(n)),l&&(r.style=Qo(l)),r}function nm(r,n){if(r.length!==n.length)return!1;let l=!0;for(let s=0;l&&s<r.length;s++)l=xn(r[s],n[s]);return l}function xn(r,n){if(r===n)return!0;let l=$c(r),s=$c(n);if(l||s)return l&&s?r.getTime()===n.getTime():!1;if(l=He(r),s=He(n),l||s)return l&&s?nm(r,n):!1;if(l=wt(r),s=wt(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||!xn(r[d],n[d]))return!1}}return String(r)===String(n)}function ca(r,n){return r.findIndex(l=>xn(l,n))}const im=r=>mt(r)?r:r==null?"":He(r)||wt(r)&&(r.toString===nh||!Xe(r.toString))?JSON.stringify(r,rh,2):String(r),rh=(r,n)=>n&&n.__v_isRef?rh(r,n.value):Ai(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((l,[s,u])=>(l[`${s} =>`]=u,l),{})}:qn(n)?{[`Set(${n.size})`]:[...n.values()]}:wt(n)&&!He(n)&&!ih(n)?String(n):n,st={},Mi=[],Pr=()=>{},om=()=>!1,sm=/^on[^a-z]/,_o=r=>sm.test(r),ou=r=>r.startsWith("onUpdate:"),xt=Object.assign,su=(r,n)=>{const l=r.indexOf(n);l>-1&&r.splice(l,1)},am=Object.prototype.hasOwnProperty,nt=(r,n)=>am.call(r,n),He=Array.isArray,Ai=r=>da(r)==="[object Map]",qn=r=>da(r)==="[object Set]",$c=r=>r instanceof Date,Xe=r=>typeof r=="function",mt=r=>typeof r=="string",au=r=>typeof r=="symbol",wt=r=>r!==null&&typeof r=="object",lu=r=>wt(r)&&Xe(r.then)&&Xe(r.catch),nh=Object.prototype.toString,da=r=>nh.call(r),lm=r=>da(r).slice(8,-1),ih=r=>da(r)==="[object Object]",uu=r=>mt(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,No=fa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ha=r=>{const n=Object.create(null);return l=>n[l]||(n[l]=r(l))},um=/-(\w)/g,dr=ha(r=>r.replace(um,(n,l)=>l?l.toUpperCase():"")),fm=/\B([A-Z])/g,zr=ha(r=>r.replace(fm,"-$1").toLowerCase()),es=ha(r=>r.charAt(0).toUpperCase()+r.slice(1)),Io=ha(r=>r?`on${es(r)}`:""),Uo=(r,n)=>!Object.is(r,n),Li=(r,n)=>{for(let l=0;l<r.length;l++)r[l](n)},_s=(r,n,l)=>{Object.defineProperty(r,n,{configurable:!0,enumerable:!1,value:l})},wn=r=>{const n=parseFloat(r);return isNaN(n)?r:n};let Yc;const cm=()=>Yc||(Yc=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let gr;class fu{constructor(n=!1){this.active=!0,this.effects=[],this.cleanups=[],!n&&gr&&(this.parent=gr,this.index=(gr.scopes||(gr.scopes=[])).push(this)-1)}run(n){if(this.active)try{return gr=this,n()}finally{gr=this.parent}}on(){gr=this}off(){gr=this.parent}stop(n){if(this.active){let l,s;for(l=0,s=this.effects.length;l<s;l++)this.effects[l].stop();for(l=0,s=this.cleanups.length;l<s;l++)this.cleanups[l]();if(this.scopes)for(l=0,s=this.scopes.length;l<s;l++)this.scopes[l].stop(!0);if(this.parent&&!n){const u=this.parent.scopes.pop();u&&u!==this&&(this.parent.scopes[this.index]=u,u.index=this.index)}this.active=!1}}}function dm(r){return new fu(r)}function oh(r,n=gr){n&&n.active&&n.effects.push(r)}function sh(){return gr}function ah(r){gr&&gr.cleanups.push(r)}const cu=r=>{const n=new Set(r);return n.w=0,n.n=0,n},lh=r=>(r.w&Sn)>0,uh=r=>(r.n&Sn)>0,hm=({deps:r})=>{if(r.length)for(let n=0;n<r.length;n++)r[n].w|=Sn},pm=r=>{const{deps:n}=r;if(n.length){let l=0;for(let s=0;s<n.length;s++){const u=n[s];lh(u)&&!uh(u)?u.delete(r):n[l++]=u,u.w&=~Sn,u.n&=~Sn}n.length=l}},Dl=new WeakMap;let Mo=0,Sn=1;const Fl=30;let Fr;const Vn=Symbol(""),zl=Symbol("");class ts{constructor(n,l=null,s){this.fn=n,this.scheduler=l,this.active=!0,this.deps=[],this.parent=void 0,oh(this,s)}run(){if(!this.active)return this.fn();let n=Fr,l=yn;for(;n;){if(n===this)return;n=n.parent}try{return this.parent=Fr,Fr=this,yn=!0,Sn=1<<++Mo,Mo<=Fl?hm(this):Xc(this),this.fn()}finally{Mo<=Fl&&pm(this),Sn=1<<--Mo,Fr=this.parent,yn=l,this.parent=void 0}}stop(){this.active&&(Xc(this),this.onStop&&this.onStop(),this.active=!1)}}function Xc(r){const{deps:n}=r;if(n.length){for(let l=0;l<n.length;l++)n[l].delete(r);n.length=0}}function vm(r,n){r.effect&&(r=r.effect.fn);const l=new ts(r);n&&(xt(l,n),n.scope&&oh(l,n.scope)),(!n||!n.lazy)&&l.run();const s=l.run.bind(l);return s.effect=l,s}function gm(r){r.effect.stop()}let yn=!0;const fh=[];function _n(){fh.push(yn),yn=!1}function ei(){const r=fh.pop();yn=r===void 0?!0:r}function hr(r,n,l){if(yn&&Fr){let s=Dl.get(r);s||Dl.set(r,s=new Map);let u=s.get(l);u||s.set(l,u=cu()),ch(u)}}function ch(r,n){let l=!1;Mo<=Fl?uh(r)||(r.n|=Sn,l=!lh(r)):l=!r.has(Fr),l&&(r.add(Fr),Fr.deps.push(r))}function Qr(r,n,l,s,u,f){const d=Dl.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)?uu(l)&&v.push(d.get("length")):(v.push(d.get(Vn)),Ai(r)&&v.push(d.get(zl)));break;case"delete":He(r)||(v.push(d.get(Vn)),Ai(r)&&v.push(d.get(zl)));break;case"set":Ai(r)&&v.push(d.get(Vn));break}if(v.length===1)v[0]&&Hl(v[0]);else{const p=[];for(const m of v)m&&p.push(...m);Hl(cu(p))}}function Hl(r,n){for(const l of He(r)?r:[...r])(l!==Fr||l.allowRecurse)&&(l.scheduler?l.scheduler():l.run())}const mm=fa("__proto__,__v_isRef,__isVue"),dh=new Set(Object.getOwnPropertyNames(Symbol).map(r=>Symbol[r]).filter(au)),ym=pa(),bm=pa(!1,!0),xm=pa(!0),wm=pa(!0,!0),Vc=Sm();function Sm(){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++)hr(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){_n();const s=_e(this)[n].apply(this,l);return ei(),s}}),r}function pa(r=!1,n=!1){return function(s,u,f){if(u==="__v_isReactive")return!r;if(u==="__v_isReadonly")return r;if(u==="__v_isShallow")return n;if(u==="__v_raw"&&f===(r?n?bh:yh:n?mh:gh).get(s))return s;const d=He(s);if(!r&&d&&nt(Vc,u))return Reflect.get(Vc,u,f);const v=Reflect.get(s,u,f);return(au(u)?dh.has(u):mm(u))||(r||hr(s,"get",u),n)?v:gt(v)?!d||!uu(u)?v.value:v:wt(v)?r?hu(v):ji(v):v}}const Cm=hh(),Tm=hh(!0);function hh(r=!1){return function(l,s,u,f){let d=l[s];if(Ii(d)&&gt(d)&&!gt(u))return!1;if(!r&&!Ii(u)&&(pu(u)||(u=_e(u),d=_e(d)),!He(l)&&gt(d)&&!gt(u)))return d.value=u,!0;const v=He(l)&&uu(s)?Number(s)<l.length:nt(l,s),p=Reflect.set(l,s,u,f);return l===_e(f)&&(v?Uo(u,d)&&Qr(l,"set",s,u):Qr(l,"add",s,u)),p}}function Pm(r,n){const l=nt(r,n);r[n];const s=Reflect.deleteProperty(r,n);return s&&l&&Qr(r,"delete",n,void 0),s}function Om(r,n){const l=Reflect.has(r,n);return(!au(n)||!dh.has(n))&&hr(r,"has",n),l}function km(r){return hr(r,"iterate",He(r)?"length":Vn),Reflect.ownKeys(r)}const ph={get:ym,set:Cm,deleteProperty:Pm,has:Om,ownKeys:km},vh={get:xm,set(r,n){return!0},deleteProperty(r,n){return!0}},Em=xt({},ph,{get:bm,set:Tm}),Mm=xt({},vh,{get:wm}),du=r=>r,va=r=>Reflect.getPrototypeOf(r);function Ws(r,n,l=!1,s=!1){r=r.__v_raw;const u=_e(r),f=_e(n);n!==f&&!l&&hr(u,"get",n),!l&&hr(u,"get",f);const{has:d}=va(u),v=s?du:l?mu:Go;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&&hr(s,"has",r),!n&&hr(s,"has",u),r===u?l.has(r):l.has(r)||l.has(u)}function Ks(r,n=!1){return r=r.__v_raw,!n&&hr(_e(r),"iterate",Vn),Reflect.get(r,"size",r)}function Jc(r){r=_e(r);const n=_e(this);return va(n).has.call(n,r)||(n.add(r),Qr(n,"add",r,r)),this}function Zc(r,n){n=_e(n);const l=_e(this),{has:s,get:u}=va(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?Uo(n,d)&&Qr(l,"set",r,n):Qr(l,"add",r,n),this}function Qc(r){const n=_e(this),{has:l,get:s}=va(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&&Qr(n,"delete",r,void 0),f}function qc(){const r=_e(this),n=r.size!==0,l=r.clear();return n&&Qr(r,"clear",void 0,void 0),l}function Us(r,n){return function(s,u){const f=this,d=f.__v_raw,v=_e(d),p=n?du:r?mu:Go;return!r&&hr(v,"iterate",Vn),d.forEach((m,y)=>s.call(u,p(m),p(y),f))}}function Gs(r,n,l){return function(...s){const u=this.__v_raw,f=_e(u),d=Ai(f),v=r==="entries"||r===Symbol.iterator&&d,p=r==="keys"&&d,m=u[r](...s),y=l?du:n?mu:Go;return!n&&hr(f,"iterate",p?zl:Vn),{next(){const{value:w,done:C}=m.next();return C?{value:w,done:C}:{value:v?[y(w[0]),y(w[1])]:y(w),done:C}},[Symbol.iterator](){return this}}}}function cn(r){return function(...n){return r==="delete"?!1:this}}function Am(){const r={get(f){return Ws(this,f)},get size(){return Ks(this)},has:js,add:Jc,set:Zc,delete:Qc,clear:qc,forEach:Us(!1,!1)},n={get(f){return Ws(this,f,!1,!0)},get size(){return Ks(this)},has:js,add:Jc,set:Zc,delete:Qc,clear:qc,forEach:Us(!1,!0)},l={get(f){return Ws(this,f,!0)},get size(){return Ks(this,!0)},has(f){return js.call(this,f,!0)},add:cn("add"),set:cn("set"),delete:cn("delete"),clear:cn("clear"),forEach:Us(!0,!1)},s={get(f){return Ws(this,f,!0,!0)},get size(){return Ks(this,!0)},has(f){return js.call(this,f,!0)},add:cn("add"),set:cn("set"),delete:cn("delete"),clear:cn("clear"),forEach:Us(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(f=>{r[f]=Gs(f,!1,!1),l[f]=Gs(f,!0,!1),n[f]=Gs(f,!1,!0),s[f]=Gs(f,!0,!0)}),[r,l,n,s]}const[Lm,Nm,Im,Rm]=Am();function ga(r,n){const l=n?r?Rm:Im:r?Nm:Lm;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 Dm={get:ga(!1,!1)},Fm={get:ga(!1,!0)},zm={get:ga(!0,!1)},Hm={get:ga(!0,!0)},gh=new WeakMap,mh=new WeakMap,yh=new WeakMap,bh=new WeakMap;function Bm(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wm(r){return r.__v_skip||!Object.isExtensible(r)?0:Bm(lm(r))}function ji(r){return Ii(r)?r:ma(r,!1,ph,Dm,gh)}function xh(r){return ma(r,!1,Em,Fm,mh)}function hu(r){return ma(r,!0,vh,zm,yh)}function jm(r){return ma(r,!0,Mm,Hm,bh)}function ma(r,n,l,s,u){if(!wt(r)||r.__v_raw&&!(n&&r.__v_isReactive))return r;const f=u.get(r);if(f)return f;const d=Wm(r);if(d===0)return r;const v=new Proxy(r,d===2?s:l);return u.set(r,v),v}function Jn(r){return Ii(r)?Jn(r.__v_raw):!!(r&&r.__v_isReactive)}function Ii(r){return!!(r&&r.__v_isReadonly)}function pu(r){return!!(r&&r.__v_isShallow)}function vu(r){return Jn(r)||Ii(r)}function _e(r){const n=r&&r.__v_raw;return n?_e(n):r}function gu(r){return _s(r,"__v_skip",!0),r}const Go=r=>wt(r)?ji(r):r,mu=r=>wt(r)?hu(r):r;function yu(r){yn&&Fr&&(r=_e(r),ch(r.dep||(r.dep=cu())))}function ya(r,n){r=_e(r),r.dep&&Hl(r.dep)}function gt(r){return!!(r&&r.__v_isRef===!0)}function Lt(r){return wh(r,!1)}function $o(r){return wh(r,!0)}function wh(r,n){return gt(r)?r:new Km(r,n)}class Km{constructor(n,l){this.__v_isShallow=l,this.dep=void 0,this.__v_isRef=!0,this._rawValue=l?n:_e(n),this._value=l?n:Go(n)}get value(){return yu(this),this._value}set value(n){n=this.__v_isShallow?n:_e(n),Uo(n,this._rawValue)&&(this._rawValue=n,this._value=this.__v_isShallow?n:Go(n),ya(this))}}function Um(r){ya(r)}function ut(r){return gt(r)?r.value:r}const Gm={get:(r,n,l)=>ut(Reflect.get(r,n,l)),set:(r,n,l,s)=>{const u=r[n];return gt(u)&&!gt(l)?(u.value=l,!0):Reflect.set(r,n,l,s)}};function bu(r){return Jn(r)?r:new Proxy(r,Gm)}class $m{constructor(n){this.dep=void 0,this.__v_isRef=!0;const{get:l,set:s}=n(()=>yu(this),()=>ya(this));this._get=l,this._set=s}get value(){return this._get()}set value(n){this._set(n)}}function Ym(r){return new $m(r)}function Xm(r){const n=He(r)?new Array(r.length):{};for(const l in r)n[l]=Sh(r,l);return n}class Vm{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 Sh(r,n,l){const s=r[n];return gt(s)?s:new Vm(r,n,l)}class Jm{constructor(n,l,s,u){this._setter=l,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new ts(n,()=>{this._dirty||(this._dirty=!0,ya(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!u,this.__v_isReadonly=s}get value(){const n=_e(this);return yu(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}function Zm(r,n,l=!1){let s,u;const f=Xe(r);return f?(s=r,u=Pr):(s=r.get,u=r.set),new Jm(s,u,f||!u,l)}Promise.resolve();const Ro=[];function Ch(r,...n){_n();const l=Ro.length?Ro[Ro.length-1].component:null,s=l&&l.appContext.config.warnHandler,u=Qm();if(s)Hr(s,l,11,[r+n.join(""),l&&l.proxy,u.map(({vnode:f})=>`at <${pp(l,f.type)}>`).join(`
2
- `),u]);else{const f=[`[Vue warn]: ${r}`,...n];u.length&&f.push(`
3
- `,...qm(u)),console.warn(...f)}ei()}function Qm(){let r=Ro[Ro.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 qm(r){const n=[];return r.forEach((l,s)=>{n.push(...s===0?[]:[`
4
- `],..._m(l))}),n}function _m({vnode:r,recurseCount:n}){const l=n>0?`... (${n} recursive calls)`:"",s=r.component?r.component.parent==null:!1,u=` at <${pp(r.component,r.type,s)}`,f=">"+l;return r.props?[u,...ey(r.props),f]:[u+f]}function ey(r){const n=[],l=Object.keys(r);return l.slice(0,3).forEach(s=>{n.push(...Th(s,r[s]))}),l.length>3&&n.push(" ..."),n}function Th(r,n,l){return mt(n)?(n=JSON.stringify(n),l?n:[`${r}=${n}`]):typeof n=="number"||typeof n=="boolean"||n==null?l?n:[`${r}=${n}`]:gt(n)?(n=Th(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 Hr(r,n,l,s){let u;try{u=s?r(...s):r()}catch(f){ti(f,n,l)}return u}function cr(r,n,l,s){if(Xe(r)){const f=Hr(r,n,l,s);return f&&lu(f)&&f.catch(d=>{ti(d,n,l)}),f}const u=[];for(let f=0;f<r.length;f++)u.push(cr(r[f],n,l,s));return u}function ti(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 y=0;y<m.length;y++)if(m[y](r,d,v)===!1)return}f=f.parent}const p=n.appContext.config.errorHandler;if(p){Hr(p,null,10,[r,d,v]);return}}ty(r,l,u,s)}function ty(r,n,l,s=!0){console.error(r)}let ea=!1,Bl=!1;const ur=[];let Jr=0;const Do=[];let Ao=null,Pi=0;const Fo=[];let vn=null,Oi=0;const Ph=Promise.resolve();let xu=null,Wl=null;function rs(r){const n=xu||Ph;return r?n.then(this?r.bind(this):r):n}function ry(r){let n=Jr+1,l=ur.length;for(;n<l;){const s=n+l>>>1;Yo(ur[s])<r?n=s+1:l=s}return n}function wu(r){(!ur.length||!ur.includes(r,ea&&r.allowRecurse?Jr+1:Jr))&&r!==Wl&&(r.id==null?ur.push(r):ur.splice(ry(r.id),0,r),Oh())}function Oh(){!ea&&!Bl&&(Bl=!0,xu=Ph.then(Eh))}function ny(r){const n=ur.indexOf(r);n>Jr&&ur.splice(n,1)}function kh(r,n,l,s){He(r)?l.push(...r):(!n||!n.includes(r,r.allowRecurse?s+1:s))&&l.push(r),Oh()}function iy(r){kh(r,Ao,Do,Pi)}function Su(r){kh(r,vn,Fo,Oi)}function Cu(r,n=null){if(Do.length){for(Wl=n,Ao=[...new Set(Do)],Do.length=0,Pi=0;Pi<Ao.length;Pi++)Ao[Pi]();Ao=null,Pi=0,Wl=null,Cu(r,n)}}function ta(r){if(Fo.length){const n=[...new Set(Fo)];if(Fo.length=0,vn){vn.push(...n);return}for(vn=n,vn.sort((l,s)=>Yo(l)-Yo(s)),Oi=0;Oi<vn.length;Oi++)vn[Oi]();vn=null,Oi=0}}const Yo=r=>r.id==null?1/0:r.id;function Eh(r){Bl=!1,ea=!0,Cu(r),ur.sort((l,s)=>Yo(l)-Yo(s));const n=Pr;try{for(Jr=0;Jr<ur.length;Jr++){const l=ur[Jr];l&&l.active!==!1&&Hr(l,null,14)}}finally{Jr=0,ur.length=0,ta(),ea=!1,xu=null,(ur.length||Do.length||Fo.length)&&Eh(r)}}let ki,$s=[];function Mh(r,n){var l,s;ki=r,ki?(ki.enabled=!0,$s.forEach(({event:u,args:f})=>ki.emit(u,...f)),$s=[]):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=>{Mh(f,n)}),setTimeout(()=>{ki||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,$s=[])},3e3)):$s=[]}function oy(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 y=`${d==="modelValue"?"model":d}Modifiers`,{number:w,trim:C}=s[y]||st;C?u=l.map(P=>P.trim()):w&&(u=l.map(wn))}let v,p=s[v=Io(n)]||s[v=Io(dr(n))];!p&&f&&(p=s[v=Io(zr(n))]),p&&cr(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,cr(m,r,6,u)}}function Ah(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 y=Ah(m,n,!0);y&&(v=!0,xt(d,y))};!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):xt(d,f),s.set(r,d),d)}function Tu(r,n){return!r||!_o(n)?!1:(n=n.slice(2).replace(/Once$/,""),nt(r,n[0].toLowerCase()+n.slice(1))||nt(r,zr(n))||nt(r,n))}let fr=null,ba=null;function Xo(r){const n=fr;return fr=r,ba=r&&r.type.__scopeId||null,n}function sy(r){ba=r}function ay(){ba=null}const ly=r=>Pu;function Pu(r,n=fr,l){if(!n||r._n)return r;const s=(...u)=>{s._d&&$l(-1);const f=Xo(n),d=r(...u);return Xo(f),s._d&&$l(1),d};return s._n=!0,s._c=!0,s._d=!0,s}function Zs(r){const{type:n,vnode:l,proxy:s,withProxy:u,props:f,propsOptions:[d],slots:v,attrs:p,emit:m,render:y,renderCache:w,data:C,setupState:P,ctx:E,inheritAttrs:j}=r;let D,H;const A=Xo(r);try{if(l.shapeFlag&4){const B=u||s;D=lr(y.call(B,B,w,f,P,C,E)),H=p}else{const B=n;D=lr(B.length>1?B(f,{attrs:p,slots:v,emit:m}):B(f,null)),H=n.props?p:fy(p)}}catch(B){Bo.length=0,ti(B,r,1),D=ct(Qt)}let L=D;if(H&&j!==!1){const B=Object.keys(H),{shapeFlag:Z}=L;B.length&&Z&(1|6)&&(d&&B.some(ou)&&(H=cy(H,d)),L=Tn(L,H))}return l.dirs&&(L.dirs=L.dirs?L.dirs.concat(l.dirs):l.dirs),l.transition&&(L.transition=l.transition),D=L,Xo(A),D}function uy(r){let n;for(let l=0;l<r.length;l++){const s=r[l];if(Cn(s)){if(s.type!==Qt||s.children==="v-if"){if(n)return;n=s}}else return}return n}const fy=r=>{let n;for(const l in r)(l==="class"||l==="style"||_o(l))&&((n||(n={}))[l]=r[l]);return n},cy=(r,n)=>{const l={};for(const s in r)(!ou(s)||!(s.slice(9)in n))&&(l[s]=r[s]);return l};function dy(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?_c(s,d,m):!!d;if(p&8){const y=n.dynamicProps;for(let w=0;w<y.length;w++){const C=y[w];if(d[C]!==s[C]&&!Tu(m,C))return!0}}}else return(u||v)&&(!v||!v.$stable)?!0:s===d?!1:s?d?_c(s,d,m):!0:!!d;return!1}function _c(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]&&!Tu(l,f))return!0}return!1}function Ou({vnode:r,parent:n},l){for(;n&&n.subTree===r;)(r=n.vnode).el=l,n=n.parent}const hy=r=>r.__isSuspense,py={name:"Suspense",__isSuspense:!0,process(r,n,l,s,u,f,d,v,p,m){r==null?gy(n,l,s,u,f,d,v,p,m):my(r,n,l,s,u,d,v,p,m)},hydrate:yy,create:ku,normalize:by},vy=py;function Vo(r,n){const l=r.props&&r.props[n];Xe(l)&&l()}function gy(r,n,l,s,u,f,d,v,p){const{p:m,o:{createElement:y}}=p,w=y("div"),C=r.suspense=ku(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?(Vo(r,"onPending"),Vo(r,"onFallback"),m(null,r.ssFallback,n,l,s,null,f,d),Ni(C,r.ssFallback)):C.resolve()}function my(r,n,l,s,u,f,d,v,{p,um:m,o:{createElement:y}}){const w=n.suspense=r.suspense;w.vnode=n,n.el=r.el;const C=n.ssContent,P=n.ssFallback,{activeBranch:E,pendingBranch:j,isInFallback:D,isHydrating:H}=w;if(j)w.pendingBranch=C,Dr(C,j)?(p(j,C,w.hiddenContainer,null,u,w,f,d,v),w.deps<=0?w.resolve():D&&(p(E,P,l,s,u,null,f,d,v),Ni(w,P))):(w.pendingId++,H?(w.isHydrating=!1,w.activeBranch=j):m(j,u,w),w.deps=0,w.effects.length=0,w.hiddenContainer=y("div"),D?(p(null,C,w.hiddenContainer,null,u,w,f,d,v),w.deps<=0?w.resolve():(p(E,P,l,s,u,null,f,d,v),Ni(w,P))):E&&Dr(C,E)?(p(E,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(E&&Dr(C,E))p(E,C,l,s,u,w,f,d,v),Ni(w,C);else if(Vo(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:A,pendingId:L}=w;A>0?setTimeout(()=>{w.pendingId===L&&w.fallback(P)},A):A===0&&w.fallback(P)}}function ku(r,n,l,s,u,f,d,v,p,m,y=!1){const{p:w,m:C,um:P,n:E,o:{parentNode:j,remove:D}}=m,H=wn(r.props&&r.props.timeout),A={vnode:r,parent:n,parentComponent:l,isSVG:d,container:s,hiddenContainer:u,anchor:f,deps:0,pendingId:0,timeout:typeof H=="number"?H:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:y,isUnmounted:!1,effects:[],resolve(L=!1){const{vnode:B,activeBranch:Z,pendingBranch:_,pendingId:V,effects:J,parentComponent:te,container:ie}=A;if(A.isHydrating)A.isHydrating=!1;else if(!L){const k=Z&&_.transition&&_.transition.mode==="out-in";k&&(Z.transition.afterLeave=()=>{V===A.pendingId&&C(_,ie,O,0)});let{anchor:O}=A;Z&&(O=E(Z),P(Z,te,A,!0)),k||C(_,ie,O,0)}Ni(A,_),A.pendingBranch=null,A.isInFallback=!1;let Q=A.parent,ee=!1;for(;Q;){if(Q.pendingBranch){Q.effects.push(...J),ee=!0;break}Q=Q.parent}ee||Su(J),A.effects=[],Vo(B,"onResolve")},fallback(L){if(!A.pendingBranch)return;const{vnode:B,activeBranch:Z,parentComponent:_,container:V,isSVG:J}=A;Vo(B,"onFallback");const te=E(Z),ie=()=>{!A.isInFallback||(w(null,L,V,te,_,null,J,v,p),Ni(A,L))},Q=L.transition&&L.transition.mode==="out-in";Q&&(Z.transition.afterLeave=ie),A.isInFallback=!0,P(Z,_,null,!0),Q||ie()},move(L,B,Z){A.activeBranch&&C(A.activeBranch,L,B,Z),A.container=L},next(){return A.activeBranch&&E(A.activeBranch)},registerDep(L,B){const Z=!!A.pendingBranch;Z&&A.deps++;const _=L.vnode.el;L.asyncDep.catch(V=>{ti(V,L,0)}).then(V=>{if(L.isUnmounted||A.isUnmounted||A.pendingId!==L.suspenseId)return;L.asyncResolved=!0;const{vnode:J}=L;Vl(L,V,!1),_&&(J.el=_);const te=!_&&L.subTree.el;B(L,J,j(_||L.subTree.el),_?null:E(L.subTree),A,d,p),te&&D(te),Ou(L,J.el),Z&&--A.deps===0&&A.resolve()})},unmount(L,B){A.isUnmounted=!0,A.activeBranch&&P(A.activeBranch,l,L,B),A.pendingBranch&&P(A.pendingBranch,l,L,B)}};return A}function yy(r,n,l,s,u,f,d,v,p){const m=n.suspense=ku(n,s,l,r.parentNode,document.createElement("div"),null,u,f,d,v,!0),y=p(r,m.pendingBranch=n.ssContent,l,m,f,d);return m.deps===0&&m.resolve(),y}function by(r){const{shapeFlag:n,children:l}=r,s=n&32;r.ssContent=ed(s?l.default:l),r.ssFallback=s?ed(l.fallback):ct(Qt)}function ed(r){let n;if(Xe(r)){const l=Fi&&r._c;l&&(r._d=!1,Pa()),r=r(),l&&(r._d=!0,n=Br,np())}return He(r)&&(r=uy(r)),r=lr(r),n&&!r.dynamicChildren&&(r.dynamicChildren=n.filter(l=>l!==r)),r}function Lh(r,n){n&&n.pendingBranch?He(r)?n.effects.push(...r):n.effects.push(r):Su(r)}function Ni(r,n){r.activeBranch=n;const{vnode:l,parentComponent:s}=r,u=l.el=n.el;s&&s.subTree===l&&(s.vnode.el=u,Ou(s,u))}function zo(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 Or(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 Nh(r,n){return ns(r,null,n)}function Ih(r,n){return ns(r,null,{flush:"post"})}function xy(r,n){return ns(r,null,{flush:"sync"})}const td={};function Ut(r,n,l){return ns(r,n,l)}function ns(r,n,{immediate:l,deep:s,flush:u,onTrack:f,onTrigger:d}=st){const v=Nt;let p,m=!1,y=!1;if(gt(r)?(p=()=>r.value,m=pu(r)):Jn(r)?(p=()=>r,s=!0):He(r)?(y=!0,m=r.some(Jn),p=()=>r.map(H=>{if(gt(H))return H.value;if(Jn(H))return Xn(H);if(Xe(H))return Hr(H,v,2)})):Xe(r)?n?p=()=>Hr(r,v,2):p=()=>{if(!(v&&v.isUnmounted))return w&&w(),cr(r,v,3,[C])}:p=Pr,n&&s){const H=p;p=()=>Xn(H())}let w,C=H=>{w=D.onStop=()=>{Hr(H,v,4)}};if(zi)return C=Pr,n?l&&cr(n,v,3,[p(),y?[]:void 0,C]):p(),Pr;let P=y?[]:td;const E=()=>{if(!!D.active)if(n){const H=D.run();(s||m||(y?H.some((A,L)=>Uo(A,P[L])):Uo(H,P)))&&(w&&w(),cr(n,v,3,[H,P===td?void 0:P,C]),P=H)}else D.run()};E.allowRecurse=!!n;let j;u==="sync"?j=E:u==="post"?j=()=>zt(E,v&&v.suspense):j=()=>{!v||v.isMounted?iy(E):E()};const D=new ts(p,j);return n?l?E():P=D.run():u==="post"?zt(D.run.bind(D),v&&v.suspense):D.run(),()=>{D.stop(),v&&v.scope&&su(v.scope.effects,D)}}function wy(r,n,l){const s=this.proxy,u=mt(r)?r.includes(".")?Rh(s,r):()=>s[r]:r.bind(s,s);let f;Xe(n)?f=n:(f=n.handler,l=n);const d=Nt;Pn(this);const v=ns(u,f.bind(s),l);return d?Pn(d):bn(),v}function Rh(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 Xn(r,n){if(!wt(r)||r.__v_skip||(n=n||new Set,n.has(r)))return r;if(n.add(r),gt(r))Xn(r.value,n);else if(He(r))for(let l=0;l<r.length;l++)Xn(r[l],n);else if(qn(r)||Ai(r))r.forEach(l=>{Xn(l,n)});else if(ih(r))for(const l in r)Xn(r[l],n);return r}function Eu(){const r={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ki(()=>{r.isMounted=!0}),Ca(()=>{r.isUnmounting=!0}),r}const vr=[Function,Array],Sy={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=Wr(),s=Eu();let u;return()=>{const f=n.default&&xa(n.default(),!0);if(!f||!f.length)return;const d=_e(r),{mode:v}=d,p=f[0];if(s.isLeaving)return Cl(p);const m=rd(p);if(!m)return Cl(p);const y=Ri(m,d,s,l);Qn(m,y);const w=l.subTree,C=w&&rd(w);let P=!1;const{getTransitionKey:E}=m.type;if(E){const j=E();u===void 0?u=j:j!==u&&(u=j,P=!0)}if(C&&C.type!==Qt&&(!Dr(m,C)||P)){const j=Ri(C,d,s,l);if(Qn(C,j),v==="out-in")return s.isLeaving=!0,j.afterLeave=()=>{s.isLeaving=!1,l.update()},Cl(p);v==="in-out"&&m.type!==Qt&&(j.delayLeave=(D,H,A)=>{const L=Dh(s,C);L[String(C.key)]=C,D._leaveCb=()=>{H(),D._leaveCb=void 0,delete y.delayedLeave},y.delayedLeave=A})}return p}}},Mu=Sy;function Dh(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 Ri(r,n,l,s){const{appear:u,mode:f,persisted:d=!1,onBeforeEnter:v,onEnter:p,onAfterEnter:m,onEnterCancelled:y,onBeforeLeave:w,onLeave:C,onAfterLeave:P,onLeaveCancelled:E,onBeforeAppear:j,onAppear:D,onAfterAppear:H,onAppearCancelled:A}=n,L=String(r.key),B=Dh(l,r),Z=(V,J)=>{V&&cr(V,s,9,J)},_={mode:f,persisted:d,beforeEnter(V){let J=v;if(!l.isMounted)if(u)J=j||v;else return;V._leaveCb&&V._leaveCb(!0);const te=B[L];te&&Dr(r,te)&&te.el._leaveCb&&te.el._leaveCb(),Z(J,[V])},enter(V){let J=p,te=m,ie=y;if(!l.isMounted)if(u)J=D||p,te=H||m,ie=A||y;else return;let Q=!1;const ee=V._enterCb=k=>{Q||(Q=!0,k?Z(ie,[V]):Z(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();Z(w,[V]);let ie=!1;const Q=V._leaveCb=ee=>{ie||(ie=!0,J(),ee?Z(E,[V]):Z(P,[V]),V._leaveCb=void 0,B[te]===r&&delete B[te])};B[te]=r,C?(C(V,Q),C.length<=1&&Q()):Q()},clone(V){return Ri(V,n,l,s)}};return _}function Cl(r){if(os(r))return r=Tn(r),r.children=null,r}function rd(r){return os(r)?r.children?r.children[0]:void 0:r}function Qn(r,n){r.shapeFlag&6&&r.component?Qn(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 xa(r,n=!1){let l=[],s=0;for(let u=0;u<r.length;u++){const f=r[u];f.type===Ht?(f.patchFlag&128&&s++,l=l.concat(xa(f.children,n))):(n||f.type!==Qt)&&l.push(f)}if(s>1)for(let u=0;u<l.length;u++)l[u].patchFlag=-2;return l}function is(r){return Xe(r)?{setup:r,name:r.name}:r}const Jo=r=>!!r.type.__asyncLoader;function Cy(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,y=0;const w=()=>(y++,p=null,C()),C=()=>{let P;return p||(P=p=n().catch(E=>{if(E=E instanceof Error?E:new Error(String(E)),v)return new Promise((j,D)=>{v(E,()=>j(w()),()=>D(E),y+1)});throw E}).then(E=>P!==p&&p?p:(E&&(E.__esModule||E[Symbol.toStringTag]==="Module")&&(E=E.default),m=E,E)))};return is({name:"AsyncComponentWrapper",__asyncLoader:C,get __asyncResolved(){return m},setup(){const P=Nt;if(m)return()=>Tl(m,P);const E=A=>{p=null,ti(A,P,13,!s)};if(d&&P.suspense||zi)return C().then(A=>()=>Tl(A,P)).catch(A=>(E(A),()=>s?ct(s,{error:A}):null));const j=Lt(!1),D=Lt(),H=Lt(!!u);return u&&setTimeout(()=>{H.value=!1},u),f!=null&&setTimeout(()=>{if(!j.value&&!D.value){const A=new Error(`Async component timed out after ${f}ms.`);E(A),D.value=A}},f),C().then(()=>{j.value=!0,P.parent&&os(P.parent.vnode)&&wu(P.parent.update)}).catch(A=>{E(A),D.value=A}),()=>{if(j.value&&m)return Tl(m,P);if(D.value&&s)return ct(s,{error:D.value});if(l&&!H.value)return ct(l)}}})}function Tl(r,{vnode:{ref:n,props:l,children:s}}){const u=ct(r,l,s);return u.ref=n,u}const os=r=>r.type.__isKeepAlive,Ty={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(r,{slots:n}){const l=Wr(),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:y,o:{createElement:w}}}=s,C=w("div");s.activate=(A,L,B,Z,_)=>{const V=A.component;m(A,L,B,0,v),p(V.vnode,A,L,B,V,v,Z,A.slotScopeIds,_),zt(()=>{V.isDeactivated=!1,V.a&&Li(V.a);const J=A.props&&A.props.onVnodeMounted;J&&rr(J,V.parent,A)},v)},s.deactivate=A=>{const L=A.component;m(A,C,null,1,v),zt(()=>{L.da&&Li(L.da);const B=A.props&&A.props.onVnodeUnmounted;B&&rr(B,L.parent,A),L.isDeactivated=!0},v)};function P(A){Pl(A),y(A,l,v,!0)}function E(A){u.forEach((L,B)=>{const Z=sa(L.type);Z&&(!A||!A(Z))&&j(B)})}function j(A){const L=u.get(A);!d||L.type!==d.type?P(L):d&&Pl(d),u.delete(A),f.delete(A)}Ut(()=>[r.include,r.exclude],([A,L])=>{A&&E(B=>Lo(A,B)),L&&E(B=>!Lo(L,B))},{flush:"post",deep:!0});let D=null;const H=()=>{D!=null&&u.set(D,Ol(l.subTree))};return Ki(H),Sa(H),Ca(()=>{u.forEach(A=>{const{subTree:L,suspense:B}=l,Z=Ol(L);if(A.type===Z.type){Pl(Z);const _=Z.component.da;_&&zt(_,B);return}P(A)})}),()=>{if(D=null,!n.default)return null;const A=n.default(),L=A[0];if(A.length>1)return d=null,A;if(!Cn(L)||!(L.shapeFlag&4)&&!(L.shapeFlag&128))return d=null,L;let B=Ol(L);const Z=B.type,_=sa(Jo(B)?B.type.__asyncResolved||{}:Z),{include:V,exclude:J,max:te}=r;if(V&&(!_||!Lo(V,_))||J&&_&&Lo(J,_))return d=B,L;const ie=B.key==null?Z:B.key,Q=u.get(ie);return B.el&&(B=Tn(B),L.shapeFlag&128&&(L.ssContent=B)),D=ie,Q?(B.el=Q.el,B.component=Q.component,B.transition&&Qn(B,B.transition),B.shapeFlag|=512,f.delete(ie),f.add(ie)):(f.add(ie),te&&f.size>parseInt(te,10)&&j(f.values().next().value)),B.shapeFlag|=256,d=B,L}}},Py=Ty;function Lo(r,n){return He(r)?r.some(l=>Lo(l,n)):mt(r)?r.split(",").includes(n):r.test?r.test(n):!1}function Fh(r,n){Hh(r,"a",n)}function zh(r,n){Hh(r,"da",n)}function Hh(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(wa(n,s,l),l){let u=l.parent;for(;u&&u.parent;)os(u.parent.vnode)&&Oy(s,n,l,u),u=u.parent}}function Oy(r,n,l,s){const u=wa(n,r,s,!0);Ta(()=>{su(s[n],u)},l)}function Pl(r){let n=r.shapeFlag;n&256&&(n-=256),n&512&&(n-=512),r.shapeFlag=n}function Ol(r){return r.shapeFlag&128?r.ssContent:r}function wa(r,n,l=Nt,s=!1){if(l){const u=l[r]||(l[r]=[]),f=n.__weh||(n.__weh=(...d)=>{if(l.isUnmounted)return;_n(),Pn(l);const v=cr(n,l,r,d);return bn(),ei(),v});return s?u.unshift(f):u.push(f),f}}const qr=r=>(n,l=Nt)=>(!zi||r==="sp")&&wa(r,n,l),Bh=qr("bm"),Ki=qr("m"),Wh=qr("bu"),Sa=qr("u"),Ca=qr("bum"),Ta=qr("um"),jh=qr("sp"),Kh=qr("rtg"),Uh=qr("rtc");function Gh(r,n=Nt){wa("ec",r,n)}let jl=!0;function ky(r){const n=Yh(r),l=r.proxy,s=r.ctx;jl=!1,n.beforeCreate&&nd(n.beforeCreate,r,"bc");const{data:u,computed:f,methods:d,watch:v,provide:p,inject:m,created:y,beforeMount:w,mounted:C,beforeUpdate:P,updated:E,activated:j,deactivated:D,beforeDestroy:H,beforeUnmount:A,destroyed:L,unmounted:B,render:Z,renderTracked:_,renderTriggered:V,errorCaptured:J,serverPrefetch:te,expose:ie,inheritAttrs:Q,components:ee,directives:k,filters:O}=n;if(m&&Ey(m,s,null,r.appContext.config.unwrapInjectedRef),d)for(const W in d){const $=d[W];Xe($)&&(s[W]=$.bind(l))}if(u){const W=u.call(l,l);wt(W)&&(r.data=ji(W))}if(jl=!0,f)for(const W in f){const $=f[W],se=Xe($)?$.bind(l,l):Xe($.get)?$.get.bind(l,l):Pr,de=!Xe($)&&Xe($.set)?$.set.bind(l):Pr,Ke=Bt({get:se,set:de});Object.defineProperty(s,W,{enumerable:!0,configurable:!0,get:()=>Ke.value,set:Ve=>Ke.value=Ve})}if(v)for(const W in v)$h(v[W],s,l,W);if(p){const W=Xe(p)?p.call(l):p;Reflect.ownKeys(W).forEach($=>{zo($,W[$])})}y&&nd(y,r,"c");function z(W,$){He($)?$.forEach(se=>W(se.bind(l))):$&&W($.bind(l))}if(z(Bh,w),z(Ki,C),z(Wh,P),z(Sa,E),z(Fh,j),z(zh,D),z(Gh,J),z(Uh,_),z(Kh,V),z(Ca,A),z(Ta,B),z(jh,te),He(ie))if(ie.length){const W=r.exposed||(r.exposed={});ie.forEach($=>{Object.defineProperty(W,$,{get:()=>l[$],set:se=>l[$]=se})})}else r.exposed||(r.exposed={});Z&&r.render===Pr&&(r.render=Z),Q!=null&&(r.inheritAttrs=Q),ee&&(r.components=ee),k&&(r.directives=k)}function Ey(r,n,l=Pr,s=!1){He(r)&&(r=Kl(r));for(const u in r){const f=r[u];let d;wt(f)?"default"in f?d=Or(f.from||u,f.default,!0):d=Or(f.from||u):d=Or(f),gt(d)&&s?Object.defineProperty(n,u,{enumerable:!0,configurable:!0,get:()=>d.value,set:v=>d.value=v}):n[u]=d}}function nd(r,n,l){cr(He(r)?r.map(s=>s.bind(n.proxy)):r.bind(n.proxy),n,l)}function $h(r,n,l,s){const u=s.includes(".")?Rh(l,s):()=>l[s];if(mt(r)){const f=n[r];Xe(f)&&Ut(u,f)}else if(Xe(r))Ut(u,r.bind(l));else if(wt(r))if(He(r))r.forEach(f=>$h(f,n,l,s));else{const f=Xe(r.handler)?r.handler.bind(l):n[r.handler];Xe(f)&&Ut(u,f,r)}}function Yh(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=>ra(p,m,d,!0)),ra(p,n,d)),f.set(n,p),p}function ra(r,n,l,s=!1){const{mixins:u,extends:f}=n;f&&ra(r,f,l,!0),u&&u.forEach(d=>ra(r,d,l,!0));for(const d in n)if(!(s&&d==="expose")){const v=My[d]||l&&l[d];r[d]=v?v(r[d],n[d]):n[d]}return r}const My={data:id,props:Gn,emits:Gn,methods:Gn,computed:Gn,beforeCreate:Zt,created:Zt,beforeMount:Zt,mounted:Zt,beforeUpdate:Zt,updated:Zt,beforeDestroy:Zt,beforeUnmount:Zt,destroyed:Zt,unmounted:Zt,activated:Zt,deactivated:Zt,errorCaptured:Zt,serverPrefetch:Zt,components:Gn,directives:Gn,watch:Ly,provide:id,inject:Ay};function id(r,n){return n?r?function(){return xt(Xe(r)?r.call(this,this):r,Xe(n)?n.call(this,this):n)}:n:r}function Ay(r,n){return Gn(Kl(r),Kl(n))}function Kl(r){if(He(r)){const n={};for(let l=0;l<r.length;l++)n[r[l]]=r[l];return n}return r}function Zt(r,n){return r?[...new Set([].concat(r,n))]:n}function Gn(r,n){return r?xt(xt(Object.create(null),r),n):n}function Ly(r,n){if(!r)return n;if(!n)return r;const l=xt(Object.create(null),r);for(const s in n)l[s]=Zt(r[s],n[s]);return l}function Ny(r,n,l,s=!1){const u={},f={};_s(f,Oa,1),r.propsDefaults=Object.create(null),Xh(r,n,u,f);for(const d in r.propsOptions[0])d in u||(u[d]=void 0);l?r.props=s?u:xh(u):r.type.props?r.props=u:r.props=f,r.attrs=f}function Iy(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 y=r.vnode.dynamicProps;for(let w=0;w<y.length;w++){let C=y[w];const P=n[C];if(p)if(nt(f,C))P!==f[C]&&(f[C]=P,m=!0);else{const E=dr(C);u[E]=Ul(p,v,E,P,r,!1)}else P!==f[C]&&(f[C]=P,m=!0)}}}else{Xh(r,n,u,f)&&(m=!0);let y;for(const w in v)(!n||!nt(n,w)&&((y=zr(w))===w||!nt(n,y)))&&(p?l&&(l[w]!==void 0||l[y]!==void 0)&&(u[w]=Ul(p,v,w,void 0,r,!0)):delete u[w]);if(f!==v)for(const w in f)(!n||!nt(n,w)&&!0)&&(delete f[w],m=!0)}m&&Qr(r,"set","$attrs")}function Xh(r,n,l,s){const[u,f]=r.propsOptions;let d=!1,v;if(n)for(let p in n){if(No(p))continue;const m=n[p];let y;u&&nt(u,y=dr(p))?!f||!f.includes(y)?l[y]=m:(v||(v={}))[y]=m:Tu(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 y=0;y<f.length;y++){const w=f[y];l[w]=Ul(u,p,w,m[w],r,!nt(m,w))}}return d}function Ul(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]:(Pn(u),s=m[l]=p.call(null,n),bn())}else s=p}d[0]&&(f&&!v?s=!1:d[1]&&(s===""||s===zr(l))&&(s=!0))}return s}function Vh(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 y=w=>{p=!0;const[C,P]=Vh(w,n,!0);xt(d,C),P&&v.push(...P)};!l&&n.mixins.length&&n.mixins.forEach(y),r.extends&&y(r.extends),r.mixins&&r.mixins.forEach(y)}if(!f&&!p)return s.set(r,Mi),Mi;if(He(f))for(let y=0;y<f.length;y++){const w=dr(f[y]);od(w)&&(d[w]=st)}else if(f)for(const y in f){const w=dr(y);if(od(w)){const C=f[y],P=d[w]=He(C)||Xe(C)?{type:C}:C;if(P){const E=ld(Boolean,P.type),j=ld(String,P.type);P[0]=E>-1,P[1]=j<0||E<j,(E>-1||nt(P,"default"))&&v.push(w)}}}const m=[d,v];return s.set(r,m),m}function od(r){return r[0]!=="$"}function sd(r){const n=r&&r.toString().match(/^\s*function (\w+)/);return n?n[1]:r===null?"null":""}function ad(r,n){return sd(r)===sd(n)}function ld(r,n){return He(n)?n.findIndex(l=>ad(l,r)):Xe(n)&&ad(n,r)?0:-1}const Jh=r=>r[0]==="_"||r==="$stable",Au=r=>He(r)?r.map(lr):[lr(r)],Ry=(r,n,l)=>{const s=Pu((...u)=>Au(n(...u)),l);return s._c=!1,s},Zh=(r,n,l)=>{const s=r._ctx;for(const u in r){if(Jh(u))continue;const f=r[u];if(Xe(f))n[u]=Ry(u,f,s);else if(f!=null){const d=Au(f);n[u]=()=>d}}},Qh=(r,n)=>{const l=Au(n);r.slots.default=()=>l},Dy=(r,n)=>{if(r.vnode.shapeFlag&32){const l=n._;l?(r.slots=_e(n),_s(n,"_",l)):Zh(n,r.slots={})}else r.slots={},n&&Qh(r,n);_s(r.slots,Oa,1)},Fy=(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:(xt(u,n),!l&&v===1&&delete u._):(f=!n.$stable,Zh(n,u)),d=n}else n&&(Qh(r,n),d={default:1});if(f)for(const v in u)!Jh(v)&&!(v in d)&&delete u[v]};function zy(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&&Xn(v),u.push({dir:d,instance:s,value:v,oldValue:void 0,arg:p,modifiers:m})}return r}function Rr(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&&(_n(),cr(p,l,8,[r.el,v,r,n]),ei())}}function qh(){return{app:null,config:{isNativeTag:om,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 Hy=0;function By(r,n){return function(s,u=null){u!=null&&!wt(u)&&(u=null);const f=qh(),d=new Set;let v=!1;const p=f.app={_uid:Hy++,_component:s,_props:u,_container:null,_context:f,_instance:null,version:yp,get config(){return f.config},set config(m){},use(m,...y){return d.has(m)||(m&&Xe(m.install)?(d.add(m),m.install(p,...y)):Xe(m)&&(d.add(m),m(p,...y))),p},mixin(m){return f.mixins.includes(m)||f.mixins.push(m),p},component(m,y){return y?(f.components[m]=y,p):f.components[m]},directive(m,y){return y?(f.directives[m]=y,p):f.directives[m]},mount(m,y,w){if(!v){const C=ct(s,u);return C.appContext=f,y&&n?n(C,m):r(C,m,w),v=!0,p._container=m,m.__vue_app__=p,Hu(C.component)||C.component.proxy}},unmount(){v&&(r(null,p._container),delete p._container.__vue_app__)},provide(m,y){return f.provides[m]=y,p}};return p}}function na(r,n,l,s,u=!1){if(He(r)){r.forEach((C,P)=>na(C,n&&(He(n)?n[P]:n),l,s,u));return}if(Jo(s)&&!u)return;const f=s.shapeFlag&4?Hu(s.component)||s.component.proxy:s.el,d=u?null:f,{i:v,r:p}=r,m=n&&n.r,y=v.refs===st?v.refs={}:v.refs,w=v.setupState;if(m!=null&&m!==p&&(mt(m)?(y[m]=null,nt(w,m)&&(w[m]=null)):gt(m)&&(m.value=null)),Xe(p))Hr(p,v,12,[d,y]);else{const C=mt(p),P=gt(p);if(C||P){const E=()=>{if(r.f){const j=C?y[p]:p.value;u?He(j)&&su(j,f):He(j)?j.includes(f)||j.push(f):C?y[p]=[f]:(p.value=[f],r.k&&(y[r.k]=p.value))}else C?(y[p]=d,nt(w,p)&&(w[p]=d)):gt(p)&&(p.value=d,r.k&&(y[r.k]=d))};d?(E.id=-1,zt(E,l)):E()}}}let dn=!1;const Ys=r=>/svg/.test(r.namespaceURI)&&r.tagName!=="foreignObject",kl=r=>r.nodeType===8;function Wy(r){const{mt:n,p:l,o:{patchProp:s,nextSibling:u,parentNode:f,remove:d,insert:v,createComment:p}}=r,m=(D,H)=>{if(!H.hasChildNodes()){l(null,D,H),ta();return}dn=!1,y(H.firstChild,D,null,null,null),ta(),dn&&console.error("Hydration completed but contains mismatches.")},y=(D,H,A,L,B,Z=!1)=>{const _=kl(D)&&D.data==="[",V=()=>E(D,H,A,L,B,_),{type:J,ref:te,shapeFlag:ie}=H,Q=D.nodeType;H.el=D;let ee=null;switch(J){case Di:Q!==3?ee=V():(D.data!==H.children&&(dn=!0,D.data=H.children),ee=u(D));break;case Qt:Q!==8||_?ee=V():ee=u(D);break;case Zn:if(Q!==1)ee=V();else{ee=D;const k=!H.children.length;for(let O=0;O<H.staticCount;O++)k&&(H.children+=ee.outerHTML),O===H.staticCount-1&&(H.anchor=ee),ee=u(ee);return ee}break;case Ht:_?ee=P(D,H,A,L,B,Z):ee=V();break;default:if(ie&1)Q!==1||H.type.toLowerCase()!==D.tagName.toLowerCase()?ee=V():ee=w(D,H,A,L,B,Z);else if(ie&6){H.slotScopeIds=B;const k=f(D);if(n(H,k,null,A,L,Ys(k),Z),ee=_?j(D):u(D),Jo(H)){let O;_?(O=ct(Ht),O.anchor=ee?ee.previousSibling:k.lastChild):O=D.nodeType===3?Fu(""):ct("div"),O.el=D,H.component.subTree=O}}else ie&64?Q!==8?ee=V():ee=H.type.hydrate(D,H,A,L,B,Z,r,C):ie&128&&(ee=H.type.hydrate(D,H,A,L,Ys(f(D)),B,Z,r,y))}return te!=null&&na(te,null,L,H),ee},w=(D,H,A,L,B,Z)=>{Z=Z||!!H.dynamicChildren;const{type:_,props:V,patchFlag:J,shapeFlag:te,dirs:ie}=H,Q=_==="input"&&ie||_==="option";if(Q||J!==-1){if(ie&&Rr(H,null,A,"created"),V)if(Q||!Z||J&(16|32))for(const k in V)(Q&&k.endsWith("value")||_o(k)&&!No(k))&&s(D,k,null,V[k],!1,void 0,A);else V.onClick&&s(D,"onClick",null,V.onClick,!1,void 0,A);let ee;if((ee=V&&V.onVnodeBeforeMount)&&rr(ee,A,H),ie&&Rr(H,null,A,"beforeMount"),((ee=V&&V.onVnodeMounted)||ie)&&Lh(()=>{ee&&rr(ee,A,H),ie&&Rr(H,null,A,"mounted")},L),te&16&&!(V&&(V.innerHTML||V.textContent))){let k=C(D.firstChild,H,D,A,L,B,Z);for(;k;){dn=!0;const O=k;k=k.nextSibling,d(O)}}else te&8&&D.textContent!==H.children&&(dn=!0,D.textContent=H.children)}return D.nextSibling},C=(D,H,A,L,B,Z,_)=>{_=_||!!H.dynamicChildren;const V=H.children,J=V.length;for(let te=0;te<J;te++){const ie=_?V[te]:V[te]=lr(V[te]);if(D)D=y(D,ie,L,B,Z,_);else{if(ie.type===Di&&!ie.children)continue;dn=!0,l(null,ie,A,null,L,B,Ys(A),Z)}}return D},P=(D,H,A,L,B,Z)=>{const{slotScopeIds:_}=H;_&&(B=B?B.concat(_):_);const V=f(D),J=C(u(D),H,V,A,L,B,Z);return J&&kl(J)&&J.data==="]"?u(H.anchor=J):(dn=!0,v(H.anchor=p("]"),V,J),J)},E=(D,H,A,L,B,Z)=>{if(dn=!0,H.el=null,Z){const J=j(D);for(;;){const te=u(D);if(te&&te!==J)d(te);else break}}const _=u(D),V=f(D);return d(D),l(null,H,V,_,A,L,Ys(V),B),_},j=D=>{let H=0;for(;D;)if(D=u(D),D&&kl(D)&&(D.data==="["&&H++,D.data==="]")){if(H===0)return u(D);H--}return D};return[m,y]}const zt=Lh;function _h(r){return tp(r)}function ep(r){return tp(r,Wy)}function tp(r,n){const l=cm();l.__VUE__=!0;const{insert:s,remove:u,patchProp:f,createElement:d,createText:v,createComment:p,setText:m,setElementText:y,parentNode:w,nextSibling:C,setScopeId:P=Pr,cloneNode:E,insertStaticContent:j}=r,D=(R,K,X,oe=null,ue=null,ge=null,Ce=!1,we=null,he=!!K.dynamicChildren)=>{if(R===K)return;R&&!Dr(R,K)&&(oe=be(R),Le(R,ue,ge,!0),R=null),K.patchFlag===-2&&(he=!1,K.dynamicChildren=null);const{type:N,ref:q,shapeFlag:G}=K;switch(N){case Di:H(R,K,X,oe);break;case Qt:A(R,K,X,oe);break;case Zn:R==null&&L(K,X,oe,Ce);break;case Ht:k(R,K,X,oe,ue,ge,Ce,we,he);break;default:G&1?_(R,K,X,oe,ue,ge,Ce,we,he):G&6?O(R,K,X,oe,ue,ge,Ce,we,he):(G&64||G&128)&&N.process(R,K,X,oe,ue,ge,Ce,we,he,ke)}q!=null&&ue&&na(q,R&&R.ref,ge,K||R,!K)},H=(R,K,X,oe)=>{if(R==null)s(K.el=v(K.children),X,oe);else{const ue=K.el=R.el;K.children!==R.children&&m(ue,K.children)}},A=(R,K,X,oe)=>{R==null?s(K.el=p(K.children||""),X,oe):K.el=R.el},L=(R,K,X,oe)=>{[R.el,R.anchor]=j(R.children,K,X,oe,R.el,R.anchor)},B=({el:R,anchor:K},X,oe)=>{let ue;for(;R&&R!==K;)ue=C(R),s(R,X,oe),R=ue;s(K,X,oe)},Z=({el:R,anchor:K})=>{let X;for(;R&&R!==K;)X=C(R),u(R),R=X;u(K)},_=(R,K,X,oe,ue,ge,Ce,we,he)=>{Ce=Ce||K.type==="svg",R==null?V(K,X,oe,ue,ge,Ce,we,he):ie(R,K,ue,ge,Ce,we,he)},V=(R,K,X,oe,ue,ge,Ce,we)=>{let he,N;const{type:q,props:G,shapeFlag:Se,transition:De,patchFlag:$e,dirs:it}=R;if(R.el&&E!==void 0&&$e===-1)he=R.el=E(R.el);else{if(he=R.el=d(R.type,ge,G&&G.is,G),Se&8?y(he,R.children):Se&16&&te(R.children,he,null,oe,ue,ge&&q!=="foreignObject",Ce,we),it&&Rr(R,null,oe,"created"),G){for(const je in G)je!=="value"&&!No(je)&&f(he,je,null,G[je],ge,R.children,oe,ue,le);"value"in G&&f(he,"value",null,G.value),(N=G.onVnodeBeforeMount)&&rr(N,oe,R)}J(he,R,R.scopeId,Ce,oe)}it&&Rr(R,null,oe,"beforeMount");const Je=(!ue||ue&&!ue.pendingBranch)&&De&&!De.persisted;Je&&De.beforeEnter(he),s(he,K,X),((N=G&&G.onVnodeMounted)||Je||it)&&zt(()=>{N&&rr(N,oe,R),Je&&De.enter(he),it&&Rr(R,null,oe,"mounted")},ue)},J=(R,K,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(K===ge){const Ce=ue.vnode;J(R,Ce,Ce.scopeId,Ce.slotScopeIds,ue.parent)}}},te=(R,K,X,oe,ue,ge,Ce,we,he=0)=>{for(let N=he;N<R.length;N++){const q=R[N]=we?gn(R[N]):lr(R[N]);D(null,q,K,X,oe,ue,ge,Ce,we)}},ie=(R,K,X,oe,ue,ge,Ce)=>{const we=K.el=R.el;let{patchFlag:he,dynamicChildren:N,dirs:q}=K;he|=R.patchFlag&16;const G=R.props||st,Se=K.props||st;let De;X&&jn(X,!1),(De=Se.onVnodeBeforeUpdate)&&rr(De,X,K,R),q&&Rr(K,R,X,"beforeUpdate"),X&&jn(X,!0);const $e=ue&&K.type!=="foreignObject";if(N?Q(R.dynamicChildren,N,we,X,oe,$e,ge):Ce||se(R,K,we,null,X,oe,$e,ge,!1),he>0){if(he&16)ee(we,K,G,Se,X,oe,ue);else if(he&2&&G.class!==Se.class&&f(we,"class",null,Se.class,ue),he&4&&f(we,"style",G.style,Se.style,ue),he&8){const it=K.dynamicProps;for(let Je=0;Je<it.length;Je++){const je=it[Je],yt=G[je],dt=Se[je];(dt!==yt||je==="value")&&f(we,je,yt,dt,ue,R.children,X,oe,le)}}he&1&&R.children!==K.children&&y(we,K.children)}else!Ce&&N==null&&ee(we,K,G,Se,X,oe,ue);((De=Se.onVnodeUpdated)||q)&&zt(()=>{De&&rr(De,X,K,R),q&&Rr(K,R,X,"updated")},oe)},Q=(R,K,X,oe,ue,ge,Ce)=>{for(let we=0;we<K.length;we++){const he=R[we],N=K[we],q=he.el&&(he.type===Ht||!Dr(he,N)||he.shapeFlag&(6|64))?w(he.el):X;D(he,N,q,null,oe,ue,ge,Ce,!0)}},ee=(R,K,X,oe,ue,ge,Ce)=>{if(X!==oe){for(const we in oe){if(No(we))continue;const he=oe[we],N=X[we];he!==N&&we!=="value"&&f(R,we,N,he,Ce,K.children,ue,ge,le)}if(X!==st)for(const we in X)!No(we)&&!(we in oe)&&f(R,we,X[we],null,Ce,K.children,ue,ge,le);"value"in oe&&f(R,"value",X.value,oe.value)}},k=(R,K,X,oe,ue,ge,Ce,we,he)=>{const N=K.el=R?R.el:v(""),q=K.anchor=R?R.anchor:v("");let{patchFlag:G,dynamicChildren:Se,slotScopeIds:De}=K;De&&(we=we?we.concat(De):De),R==null?(s(N,X,oe),s(q,X,oe),te(K.children,X,q,ue,ge,Ce,we,he)):G>0&&G&64&&Se&&R.dynamicChildren?(Q(R.dynamicChildren,Se,X,ue,ge,Ce,we),(K.key!=null||ue&&K===ue.subTree)&&Lu(R,K,!0)):se(R,K,X,q,ue,ge,Ce,we,he)},O=(R,K,X,oe,ue,ge,Ce,we,he)=>{K.slotScopeIds=we,R==null?K.shapeFlag&512?ue.ctx.activate(K,X,oe,Ce,he):x(K,X,oe,ue,ge,Ce,he):z(R,K,he)},x=(R,K,X,oe,ue,ge,Ce)=>{const we=R.component=up(R,oe,ue);if(os(R)&&(we.ctx.renderer=ke),cp(we),we.asyncDep){if(ue&&ue.registerDep(we,W),!R.el){const he=we.subTree=ct(Qt);A(null,he,K,X)}return}W(we,R,K,X,ue,ge,Ce)},z=(R,K,X)=>{const oe=K.component=R.component;if(dy(R,K,X))if(oe.asyncDep&&!oe.asyncResolved){$(oe,K,X);return}else oe.next=K,ny(oe.update),oe.update();else K.component=R.component,K.el=R.el,oe.vnode=K},W=(R,K,X,oe,ue,ge,Ce)=>{const we=()=>{if(R.isMounted){let{next:q,bu:G,u:Se,parent:De,vnode:$e}=R,it=q,Je;jn(R,!1),q?(q.el=$e.el,$(R,q,Ce)):q=$e,G&&Li(G),(Je=q.props&&q.props.onVnodeBeforeUpdate)&&rr(Je,De,q,$e),jn(R,!0);const je=Zs(R),yt=R.subTree;R.subTree=je,D(yt,je,w(yt.el),be(yt),R,ue,ge),q.el=je.el,it===null&&Ou(R,je.el),Se&&zt(Se,ue),(Je=q.props&&q.props.onVnodeUpdated)&&zt(()=>rr(Je,De,q,$e),ue)}else{let q;const{el:G,props:Se}=K,{bm:De,m:$e,parent:it}=R,Je=Jo(K);if(jn(R,!1),De&&Li(De),!Je&&(q=Se&&Se.onVnodeBeforeMount)&&rr(q,it,K),jn(R,!0),G&&Ne){const je=()=>{R.subTree=Zs(R),Ne(G,R.subTree,R,ue,null)};Je?K.type.__asyncLoader().then(()=>!R.isUnmounted&&je()):je()}else{const je=R.subTree=Zs(R);D(null,je,X,oe,R,ue,ge),K.el=je.el}if($e&&zt($e,ue),!Je&&(q=Se&&Se.onVnodeMounted)){const je=K;zt(()=>rr(q,it,je),ue)}K.shapeFlag&256&&R.a&&zt(R.a,ue),R.isMounted=!0,K=X=oe=null}},he=R.effect=new ts(we,()=>wu(R.update),R.scope),N=R.update=he.run.bind(he);N.id=R.uid,jn(R,!0),N()},$=(R,K,X)=>{K.component=R;const oe=R.vnode.props;R.vnode=K,R.next=null,Iy(R,K.props,oe,X),Fy(R,K.children,X),_n(),Cu(void 0,R.update),ei()},se=(R,K,X,oe,ue,ge,Ce,we,he=!1)=>{const N=R&&R.children,q=R?R.shapeFlag:0,G=K.children,{patchFlag:Se,shapeFlag:De}=K;if(Se>0){if(Se&128){Ke(N,G,X,oe,ue,ge,Ce,we,he);return}else if(Se&256){de(N,G,X,oe,ue,ge,Ce,we,he);return}}De&8?(q&16&&le(N,ue,ge),G!==N&&y(X,G)):q&16?De&16?Ke(N,G,X,oe,ue,ge,Ce,we,he):le(N,ue,ge,!0):(q&8&&y(X,""),De&16&&te(G,X,oe,ue,ge,Ce,we,he))},de=(R,K,X,oe,ue,ge,Ce,we,he)=>{R=R||Mi,K=K||Mi;const N=R.length,q=K.length,G=Math.min(N,q);let Se;for(Se=0;Se<G;Se++){const De=K[Se]=he?gn(K[Se]):lr(K[Se]);D(R[Se],De,X,null,ue,ge,Ce,we,he)}N>q?le(R,ue,ge,!0,!1,G):te(K,X,oe,ue,ge,Ce,we,he,G)},Ke=(R,K,X,oe,ue,ge,Ce,we,he)=>{let N=0;const q=K.length;let G=R.length-1,Se=q-1;for(;N<=G&&N<=Se;){const De=R[N],$e=K[N]=he?gn(K[N]):lr(K[N]);if(Dr(De,$e))D(De,$e,X,null,ue,ge,Ce,we,he);else break;N++}for(;N<=G&&N<=Se;){const De=R[G],$e=K[Se]=he?gn(K[Se]):lr(K[Se]);if(Dr(De,$e))D(De,$e,X,null,ue,ge,Ce,we,he);else break;G--,Se--}if(N>G){if(N<=Se){const De=Se+1,$e=De<q?K[De].el:oe;for(;N<=Se;)D(null,K[N]=he?gn(K[N]):lr(K[N]),X,$e,ue,ge,Ce,we,he),N++}}else if(N>Se)for(;N<=G;)Le(R[N],ue,ge,!0),N++;else{const De=N,$e=N,it=new Map;for(N=$e;N<=Se;N++){const Oe=K[N]=he?gn(K[N]):lr(K[N]);Oe.key!=null&&it.set(Oe.key,N)}let Je,je=0;const yt=Se-$e+1;let dt=!1,Wt=0;const Fe=new Array(yt);for(N=0;N<yt;N++)Fe[N]=0;for(N=De;N<=G;N++){const Oe=R[N];if(je>=yt){Le(Oe,ue,ge,!0);continue}let ve;if(Oe.key!=null)ve=it.get(Oe.key);else for(Je=$e;Je<=Se;Je++)if(Fe[Je-$e]===0&&Dr(Oe,K[Je])){ve=Je;break}ve===void 0?Le(Oe,ue,ge,!0):(Fe[ve-$e]=N+1,ve>=Wt?Wt=ve:dt=!0,D(Oe,K[ve],X,null,ue,ge,Ce,we,he),je++)}const Ye=dt?jy(Fe):Mi;for(Je=Ye.length-1,N=yt-1;N>=0;N--){const Oe=$e+N,ve=K[Oe],Be=Oe+1<q?K[Oe+1].el:oe;Fe[N]===0?D(null,ve,X,Be,ue,ge,Ce,we,he):dt&&(Je<0||N!==Ye[Je]?Ve(ve,X,Be,2):Je--)}}},Ve=(R,K,X,oe,ue=null)=>{const{el:ge,type:Ce,transition:we,children:he,shapeFlag:N}=R;if(N&6){Ve(R.component.subTree,K,X,oe);return}if(N&128){R.suspense.move(K,X,oe);return}if(N&64){Ce.move(R,K,X,ke);return}if(Ce===Ht){s(ge,K,X);for(let G=0;G<he.length;G++)Ve(he[G],K,X,oe);s(R.anchor,K,X);return}if(Ce===Zn){B(R,K,X);return}if(oe!==2&&N&1&&we)if(oe===0)we.beforeEnter(ge),s(ge,K,X),zt(()=>we.enter(ge),ue);else{const{leave:G,delayLeave:Se,afterLeave:De}=we,$e=()=>s(ge,K,X),it=()=>{G(ge,()=>{$e(),De&&De()})};Se?Se(ge,$e,it):it()}else s(ge,K,X)},Le=(R,K,X,oe=!1,ue=!1)=>{const{type:ge,props:Ce,ref:we,children:he,dynamicChildren:N,shapeFlag:q,patchFlag:G,dirs:Se}=R;if(we!=null&&na(we,null,X,R,!0),q&256){K.ctx.deactivate(R);return}const De=q&1&&Se,$e=!Jo(R);let it;if($e&&(it=Ce&&Ce.onVnodeBeforeUnmount)&&rr(it,K,R),q&6)ae(R.component,X,oe);else{if(q&128){R.suspense.unmount(X,oe);return}De&&Rr(R,null,K,"beforeUnmount"),q&64?R.type.remove(R,K,X,ue,ke,oe):N&&(ge!==Ht||G>0&&G&64)?le(N,K,X,!1,!0):(ge===Ht&&G&(128|256)||!ue&&q&16)&&le(he,K,X),oe&&Ge(R)}($e&&(it=Ce&&Ce.onVnodeUnmounted)||De)&&zt(()=>{it&&rr(it,K,R),De&&Rr(R,null,K,"unmounted")},X)},Ge=R=>{const{type:K,el:X,anchor:oe,transition:ue}=R;if(K===Ht){ne(X,oe);return}if(K===Zn){Z(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,K)=>{let X;for(;R!==K;)X=C(R),u(R),R=X;u(K)},ae=(R,K,X)=>{const{bum:oe,scope:ue,update:ge,subTree:Ce,um:we}=R;oe&&Li(oe),ue.stop(),ge&&(ge.active=!1,Le(Ce,R,K,X)),we&&zt(we,K),zt(()=>{R.isUnmounted=!0},K),K&&K.pendingBranch&&!K.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===K.pendingId&&(K.deps--,K.deps===0&&K.resolve())},le=(R,K,X,oe=!1,ue=!1,ge=0)=>{for(let Ce=ge;Ce<R.length;Ce++)Le(R[Ce],K,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,K,X)=>{R==null?K._vnode&&Le(K._vnode,null,null,!0):D(K._vnode||null,R,K,null,null,null,X),ta(),K._vnode=R},ke={p:D,um:Le,m:Ve,r:Ge,mt:x,mc:te,pc:se,pbc:Q,n:be,o:r};let me,Ne;return n&&([me,Ne]=n(ke)),{render:Re,hydrate:me,createApp:By(Re,me)}}function jn({effect:r,update:n},l){r.allowRecurse=n.allowRecurse=l}function Lu(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]=gn(u[f]),v.el=d.el),l||Lu(d,v))}}function jy(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 Ky=r=>r.__isTeleport,Ho=r=>r&&(r.disabled||r.disabled===""),ud=r=>typeof SVGElement!="undefined"&&r instanceof SVGElement,Gl=(r,n)=>{const l=r&&r.to;return mt(l)?n?n(l):null:l},Uy={__isTeleport:!0,process(r,n,l,s,u,f,d,v,p,m){const{mc:y,pc:w,pbc:C,o:{insert:P,querySelector:E,createText:j,createComment:D}}=m,H=Ho(n.props);let{shapeFlag:A,children:L,dynamicChildren:B}=n;if(r==null){const Z=n.el=j(""),_=n.anchor=j("");P(Z,l,s),P(_,l,s);const V=n.target=Gl(n.props,E),J=n.targetAnchor=j("");V&&(P(J,V),d=d||ud(V));const te=(ie,Q)=>{A&16&&y(L,ie,Q,u,f,d,v,p)};H?te(l,_):V&&te(V,J)}else{n.el=r.el;const Z=n.anchor=r.anchor,_=n.target=r.target,V=n.targetAnchor=r.targetAnchor,J=Ho(r.props),te=J?l:_,ie=J?Z:V;if(d=d||ud(_),B?(C(r.dynamicChildren,B,te,u,f,d,v),Lu(r,n,!0)):p||w(r,n,te,ie,u,f,d,v,!1),H)J||Xs(n,l,Z,m,1);else if((n.props&&n.props.to)!==(r.props&&r.props.to)){const Q=n.target=Gl(n.props,E);Q&&Xs(n,Q,null,m,0)}else J&&Xs(n,_,V,m,1)}},remove(r,n,l,s,{um:u,o:{remove:f}},d){const{shapeFlag:v,children:p,anchor:m,targetAnchor:y,target:w,props:C}=r;if(w&&f(y),(d||!Ho(C))&&(f(m),v&16))for(let P=0;P<p.length;P++){const E=p[P];u(E,n,l,!0,!!E.dynamicChildren)}},move:Xs,hydrate:Gy};function Xs(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:y}=r,w=f===2;if(w&&s(d,n,l),(!w||Ho(y))&&p&16)for(let C=0;C<m.length;C++)u(m[C],n,l,2);w&&s(v,n,l)}function Gy(r,n,l,s,u,f,{o:{nextSibling:d,parentNode:v,querySelector:p}},m){const y=n.target=Gl(n.props,p);if(y){const w=y._lpa||y.firstChild;n.shapeFlag&16&&(Ho(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,y,l,s,u,f)),y._lpa=n.targetAnchor&&d(n.targetAnchor))}return n.anchor&&d(n.anchor)}const $y=Uy,Nu="components",Yy="directives";function Xy(r,n){return Iu(Nu,r,!0,n)||r}const rp=Symbol();function Vy(r){return mt(r)?Iu(Nu,r,!1)||r:r||rp}function Jy(r){return Iu(Yy,r)}function Iu(r,n,l=!0,s=!1){const u=fr||Nt;if(u){const f=u.type;if(r===Nu){const v=sa(f);if(v&&(v===n||v===dr(n)||v===es(dr(n))))return f}const d=fd(u[r]||f[r],n)||fd(u.appContext[r],n);return!d&&s?f:d}}function fd(r,n){return r&&(r[n]||r[dr(n)]||r[es(dr(n))])}const Ht=Symbol(void 0),Di=Symbol(void 0),Qt=Symbol(void 0),Zn=Symbol(void 0),Bo=[];let Br=null;function Pa(r=!1){Bo.push(Br=r?null:[])}function np(){Bo.pop(),Br=Bo[Bo.length-1]||null}let Fi=1;function $l(r){Fi+=r}function ip(r){return r.dynamicChildren=Fi>0?Br||Mi:null,np(),Fi>0&&Br&&Br.push(r),r}function Zy(r,n,l,s,u,f){return ip(Du(r,n,l,s,u,f,!0))}function Ru(r,n,l,s,u){return ip(ct(r,n,l,s,u,!0))}function Cn(r){return r?r.__v_isVNode===!0:!1}function Dr(r,n){return r.type===n.type&&r.key===n.key}function Qy(r){}const Oa="__vInternal",op=({key:r})=>r!=null?r:null,Qs=({ref:r,ref_key:n,ref_for:l})=>r!=null?mt(r)||gt(r)||Xe(r)?{i:fr,r,k:n,f:!!l}:r:null;function Du(r,n=null,l=null,s=0,u=null,f=r===Ht?0:1,d=!1,v=!1){const p={__v_isVNode:!0,__v_skip:!0,type:r,props:n,key:n&&op(n),ref:n&&Qs(n),scopeId:ba,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?(zu(p,l),f&128&&r.normalize(p)):l&&(p.shapeFlag|=mt(l)?8:16),Fi>0&&!d&&Br&&(p.patchFlag>0||f&6)&&p.patchFlag!==32&&Br.push(p),p}const ct=qy;function qy(r,n=null,l=null,s=0,u=null,f=!1){if((!r||r===rp)&&(r=Qt),Cn(r)){const v=Tn(r,n,!0);return l&&zu(v,l),v}if(p0(r)&&(r=r.__vccOpts),n){n=sp(n);let{class:v,style:p}=n;v&&!mt(v)&&(n.class=qo(v)),wt(p)&&(vu(p)&&!He(p)&&(p=xt({},p)),n.style=Qo(p))}const d=mt(r)?1:hy(r)?128:Ky(r)?64:wt(r)?4:Xe(r)?2:0;return Du(r,n,l,s,u,d,f,!0)}function sp(r){return r?vu(r)||Oa in r?xt({},r):r:null}function Tn(r,n,l=!1){const{props:s,ref:u,patchFlag:f,children:d}=r,v=n?ap(s||{},n):s;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:v,key:v&&op(v),ref:n&&n.ref?l&&u?He(u)?u.concat(Qs(n)):[u,Qs(n)]:Qs(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!==Ht?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&&Tn(r.ssContent),ssFallback:r.ssFallback&&Tn(r.ssFallback),el:r.el,anchor:r.anchor}}function Fu(r=" ",n=0){return ct(Di,null,r,n)}function _y(r,n){const l=ct(Zn,null,r);return l.staticCount=n,l}function e0(r="",n=!1){return n?(Pa(),Ru(Qt,null,r)):ct(Qt,null,r)}function lr(r){return r==null||typeof r=="boolean"?ct(Qt):He(r)?ct(Ht,null,r.slice()):typeof r=="object"?gn(r):ct(Di,null,String(r))}function gn(r){return r.el===null||r.memo?r:Tn(r)}function zu(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),zu(r,u()),u._c&&(u._d=!0));return}else{l=32;const u=n._;!u&&!(Oa 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=[Fu(n)]):l=8);r.children=n,r.shapeFlag|=l}function ap(...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=qo([n.class,s.class]));else if(u==="style")n.style=Qo([n.style,s.style]);else if(_o(u)){const f=n[u],d=s[u];d&&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){cr(r,n,7,[l,s])}function t0(r,n,l,s){let u;const f=l&&l[s];if(He(r)||mt(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(wt(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 r0(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 n0(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),Pa();const d=f&&lp(f(l)),v=Ru(Ht,{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 lp(r){return r.some(n=>Cn(n)?!(n.type===Qt||n.type===Ht&&!lp(n.children)):!0)?r:null}function i0(r){const n={};for(const l in r)n[Io(l)]=r[l];return n}const Yl=r=>r?fp(r)?Hu(r)||r.proxy:Yl(r.parent):null,ia=xt(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=>Yl(r.parent),$root:r=>Yl(r.root),$emit:r=>r.emit,$options:r=>Yh(r),$forceUpdate:r=>()=>wu(r.update),$nextTick:r=>rs.bind(r.proxy),$watch:r=>wy.bind(r)}),Xl={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];jl&&(d[n]=0)}}const y=ia[n];let w,C;if(y)return n==="$attrs"&&hr(r,"get",n),y(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;return u!==st&&nt(u,n)?(u[n]=l,!0):s!==st&&nt(s,n)?(s[n]=l,!0):nt(r.props,n)||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(ia,d)||nt(u.config.globalProperties,d)},defineProperty(r,n,l){return l.get!=null?this.set(r,n,l.get(),null):l.value!=null&&this.set(r,n,l.value,null),Reflect.defineProperty(r,n,l)}},o0=xt({},Xl,{get(r,n){if(n!==Symbol.unscopables)return Xl.get(r,n,r)},has(r,n){return n[0]!=="_"&&!Zg(n)}}),s0=qh();let a0=0;function up(r,n,l){const s=r.type,u=(n?n.appContext:r.appContext)||s0,f={uid:a0++,vnode:r,type:s,parent:n,appContext:u,root:null,next:null,subTree:null,effect:null,update:null,scope:new fu(!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:Vh(s,u),emitsOptions:Ah(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=oy.bind(null,f),r.ce&&r.ce(f),f}let Nt=null;const Wr=()=>Nt||fr,Pn=r=>{Nt=r,r.scope.on()},bn=()=>{Nt&&Nt.scope.off(),Nt=null};function fp(r){return r.vnode.shapeFlag&4}let zi=!1;function cp(r,n=!1){zi=n;const{props:l,children:s}=r.vnode,u=fp(r);Ny(r,l,u,n),Dy(r,s);const f=u?l0(r,n):void 0;return zi=!1,f}function l0(r,n){const l=r.type;r.accessCache=Object.create(null),r.proxy=gu(new Proxy(r.ctx,Xl));const{setup:s}=l;if(s){const u=r.setupContext=s.length>1?hp(r):null;Pn(r),_n();const f=Hr(s,r,0,[r.props,u]);if(ei(),bn(),lu(f)){if(f.then(bn,bn),n)return f.then(d=>{Vl(r,d,n)}).catch(d=>{ti(d,r,0)});r.asyncDep=f}else Vl(r,f,n)}else dp(r,n)}function Vl(r,n,l){Xe(n)?r.type.__ssrInlineRender?r.ssrRender=n:r.render=n:wt(n)&&(r.setupState=bu(n)),dp(r,l)}let oa,Jl;function u0(r){oa=r,Jl=n=>{n.render._rc&&(n.withProxy=new Proxy(n.ctx,o0))}}const f0=()=>!oa;function dp(r,n,l){const s=r.type;if(!r.render){if(!n&&oa&&!s.render){const u=s.template;if(u){const{isCustomElement:f,compilerOptions:d}=r.appContext.config,{delimiters:v,compilerOptions:p}=s,m=xt(xt({isCustomElement:f,delimiters:v},d),p);s.render=oa(u,m)}}r.render=s.render||Pr,Jl&&Jl(r)}Pn(r),_n(),ky(r),ei(),bn()}function c0(r){return new Proxy(r.attrs,{get(n,l){return hr(r,"get","$attrs"),n[l]}})}function hp(r){const n=s=>{r.exposed=s||{}};let l;return{get attrs(){return l||(l=c0(r))},slots:r.slots,emit:r.emit,expose:n}}function Hu(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(bu(gu(r.exposed)),{get(n,l){if(l in n)return n[l];if(l in ia)return ia[l](r)}}))}const d0=/(?:^|[-_])(\w)/g,h0=r=>r.replace(d0,n=>n.toUpperCase()).replace(/[-_]/g,"");function sa(r){return Xe(r)&&r.displayName||r.name}function pp(r,n,l=!1){let s=sa(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?h0(s):l?"App":"Anonymous"}function p0(r){return Xe(r)&&"__vccOpts"in r}const Bt=(r,n)=>Zm(r,n,zi);function v0(){return null}function g0(){return null}function m0(r){}function y0(r,n){return null}function b0(){return vp().slots}function x0(){return vp().attrs}function vp(){const r=Wr();return r.setupContext||(r.setupContext=hp(r))}function w0(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 S0(r,n){const l={};for(const s in r)n.includes(s)||Object.defineProperty(l,s,{enumerable:!0,get:()=>r[s]});return l}function C0(r){const n=Wr();let l=r();return bn(),lu(l)&&(l=l.catch(s=>{throw Pn(n),s})),[l,()=>Pn(n)]}function ka(r,n,l){const s=arguments.length;return s===2?wt(n)&&!He(n)?Cn(n)?ct(r,null,[n]):ct(r,n):ct(r,null,n):(s>3?l=Array.prototype.slice.call(arguments,2):s===3&&Cn(l)&&(l=[l]),ct(r,n,l))}const gp=Symbol(""),T0=()=>{{const r=Or(gp);return r||Ch("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),r}};function P0(){}function O0(r,n,l,s){const u=l[s];if(u&&mp(u,r))return u;const f=n();return f.memo=r.slice(),l[s]=f}function mp(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 Fi>0&&Br&&Br.push(r),!0}const yp="3.2.31",k0={createComponentInstance:up,setupComponent:cp,renderComponentRoot:Zs,setCurrentRenderingInstance:Xo,isVNode:Cn,normalizeVNode:lr},E0=k0,M0=null,A0=null,L0="http://www.w3.org/2000/svg",Yn=typeof document!="undefined"?document:null,cd=Yn&&Yn.createElement("template"),N0={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?Yn.createElementNS(L0,r):Yn.createElement(r,l?{is:l}:void 0);return r==="select"&&s&&s.multiple!=null&&u.setAttribute("multiple",s.multiple),u},createText:r=>Yn.createTextNode(r),createComment:r=>Yn.createComment(r),setText:(r,n)=>{r.nodeValue=n},setElementText:(r,n)=>{r.textContent=n},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Yn.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,u,f){const d=l?l.previousSibling:n.lastChild;if(u&&(u===f||u.nextSibling))for(;n.insertBefore(u.cloneNode(!0),l),!(u===f||!(u=u.nextSibling)););else{cd.innerHTML=s?`<svg>${r}</svg>`:r;const v=cd.content;if(s){const p=v.firstChild;for(;p.firstChild;)v.appendChild(p.firstChild);v.removeChild(p)}n.insertBefore(v,l)}return[d?d.nextSibling:n.firstChild,l?l.previousSibling:n.lastChild]}};function I0(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 R0(r,n,l){const s=r.style,u=mt(l);if(l&&!u){for(const f in l)Zl(s,f,l[f]);if(n&&!mt(n))for(const f in n)l[f]==null&&Zl(s,f,"")}else{const f=s.display;u?n!==l&&(s.cssText=l):n&&r.removeAttribute("style"),"_vod"in r&&(s.display=f)}}const dd=/\s*!important$/;function Zl(r,n,l){if(He(l))l.forEach(s=>Zl(r,n,s));else if(n.startsWith("--"))r.setProperty(n,l);else{const s=D0(r,n);dd.test(l)?r.setProperty(zr(s),l.replace(dd,""),"important"):r[s]=l}}const hd=["Webkit","Moz","ms"],El={};function D0(r,n){const l=El[n];if(l)return l;let s=dr(n);if(s!=="filter"&&s in r)return El[n]=s;s=es(s);for(let u=0;u<hd.length;u++){const f=hd[u]+s;if(f in r)return El[n]=f}return n}const pd="http://www.w3.org/1999/xlink";function F0(r,n,l,s,u){if(s&&n.startsWith("xlink:"))l==null?r.removeAttributeNS(pd,n.slice(6,n.length)):r.setAttributeNS(pd,n,l);else{const f=qg(n);l==null||f&&!th(l)?r.removeAttribute(n):r.setAttribute(n,f?"":l)}}function z0(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]=th(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 aa=Date.now,bp=!1;if(typeof window!="undefined"){aa()>document.createEvent("Event").timeStamp&&(aa=()=>performance.now());const r=navigator.userAgent.match(/firefox\/(\d+)/i);bp=!!(r&&Number(r[1])<=53)}let Ql=0;const H0=Promise.resolve(),B0=()=>{Ql=0},W0=()=>Ql||(H0.then(B0),Ql=aa());function Zr(r,n,l,s){r.addEventListener(n,l,s)}function j0(r,n,l,s){r.removeEventListener(n,l,s)}function K0(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]=U0(n);if(s){const m=f[n]=G0(s,u);Zr(r,v,m,p)}else d&&(j0(r,v,d,p),f[n]=void 0)}}const vd=/(?:Once|Passive|Capture)$/;function U0(r){let n;if(vd.test(r)){n={};let l;for(;l=r.match(vd);)r=r.slice(0,r.length-l[0].length),n[l[0].toLowerCase()]=!0}return[zr(r.slice(2)),n]}function G0(r,n){const l=s=>{const u=s.timeStamp||aa();(bp||u>=l.attached-1)&&cr($0(s,l.value),n,5,[s])};return l.value=r,l.attached=W0(),l}function $0(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&&s(u))}else return n}const gd=/^on[a-z]/,Y0=(r,n,l,s,u=!1,f,d,v,p)=>{n==="class"?I0(r,s,u):n==="style"?R0(r,l,s):_o(n)?ou(n)||K0(r,n,l,s,d):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):X0(r,n,s,u))?z0(r,n,s,f,d,v,p):(n==="true-value"?r._trueValue=s:n==="false-value"&&(r._falseValue=s),F0(r,n,s,u))};function X0(r,n,l,s){return s?!!(n==="innerHTML"||n==="textContent"||n in r&&gd.test(n)&&Xe(l)):n==="spellcheck"||n==="draggable"||n==="form"||n==="list"&&r.tagName==="INPUT"||n==="type"&&r.tagName==="TEXTAREA"||gd.test(n)&&mt(l)?!1:n in r}function xp(r,n){const l=is(r);class s extends Ea{constructor(f){super(l,f,n)}}return s.def=l,s}const V0=r=>xp(r,Ip),J0=typeof HTMLElement!="undefined"?HTMLElement:class{};class Ea extends J0{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,rs(()=>{this._connected||(_l(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 y=u[m];(y===Number||y&&y.type===Number)&&(this._props[m]=wn(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(dr))Object.defineProperty(this,m,{get(){return this._getProp(m)},set(y){this._setProp(m,y)}});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=wn(l)),this._setProp(dr(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(zr(n),""):typeof l=="string"||typeof l=="number"?this.setAttribute(zr(n),l+""):l||this.removeAttribute(zr(n))))}_update(){_l(this._createVNode(),this.shadowRoot)}_createVNode(){const n=ct(this._def,xt({},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 Ea){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 Z0(r="$style"){{const n=Wr();if(!n)return st;const l=n.type.__cssModules;if(!l)return st;const s=l[r];return s||st}}function Q0(r){const n=Wr();if(!n)return;const l=()=>ql(n.subTree,r(n.proxy));Ih(l),Ki(()=>{const s=new MutationObserver(l);s.observe(n.subTree.el.parentNode,{childList:!0}),Ta(()=>s.disconnect())})}function ql(r,n){if(r.shapeFlag&128){const l=r.suspense;r=l.activeBranch,l.pendingBranch&&!l.isHydrating&&l.effects.push(()=>{ql(l.activeBranch,n)})}for(;r.component;)r=r.component.subTree;if(r.shapeFlag&1&&r.el)md(r.el,n);else if(r.type===Ht)r.children.forEach(l=>ql(l,n));else if(r.type===Zn){let{el:l,anchor:s}=r;for(;l&&(md(l,n),l!==s);)l=l.nextSibling}}function md(r,n){if(r.nodeType===1){const l=r.style;for(const s in n)l.setProperty(`--${s}`,n[s])}}const hn="transition",Oo="animation",Bu=(r,{slots:n})=>ka(Mu,Sp(r),n);Bu.displayName="Transition";const wp={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},q0=Bu.props=xt({},Mu.props,wp),Kn=(r,n=[])=>{He(r)?r.forEach(l=>l(...n)):r&&r(...n)},yd=r=>r?He(r)?r.some(n=>n.length>1):r.length>1:!1;function Sp(r){const n={};for(const ee in r)ee in wp||(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:y=v,leaveFromClass:w=`${l}-leave-from`,leaveActiveClass:C=`${l}-leave-active`,leaveToClass:P=`${l}-leave-to`}=r,E=_0(u),j=E&&E[0],D=E&&E[1],{onBeforeEnter:H,onEnter:A,onEnterCancelled:L,onLeave:B,onLeaveCancelled:Z,onBeforeAppear:_=H,onAppear:V=A,onAppearCancelled:J=L}=n,te=(ee,k,O)=>{$n(ee,k?y:v),$n(ee,k?m:d),O&&O()},ie=(ee,k)=>{$n(ee,P),$n(ee,C),k&&k()},Q=ee=>(k,O)=>{const x=ee?V:A,z=()=>te(k,ee,O);Kn(x,[k,z]),bd(()=>{$n(k,ee?p:f),Vr(k,ee?y:v),yd(x)||xd(k,s,j,z)})};return xt(n,{onBeforeEnter(ee){Kn(H,[ee]),Vr(ee,f),Vr(ee,d)},onBeforeAppear(ee){Kn(_,[ee]),Vr(ee,p),Vr(ee,m)},onEnter:Q(!1),onAppear:Q(!0),onLeave(ee,k){const O=()=>ie(ee,k);Vr(ee,w),Tp(),Vr(ee,C),bd(()=>{$n(ee,w),Vr(ee,P),yd(B)||xd(ee,s,D,O)}),Kn(B,[ee,O])},onEnterCancelled(ee){te(ee,!1),Kn(L,[ee])},onAppearCancelled(ee){te(ee,!0),Kn(J,[ee])},onLeaveCancelled(ee){ie(ee),Kn(Z,[ee])}})}function _0(r){if(r==null)return null;if(wt(r))return[Ml(r.enter),Ml(r.leave)];{const n=Ml(r);return[n,n]}}function Ml(r){return wn(r)}function Vr(r,n){n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),(r._vtc||(r._vtc=new Set)).add(n)}function $n(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 bd(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let eb=0;function xd(r,n,l,s){const u=r._endId=++eb,f=()=>{u===r._endId&&s()};if(l)return setTimeout(f,l);const{type:d,timeout:v,propCount:p}=Cp(r,n);if(!d)return s();const m=d+"end";let y=0;const w=()=>{r.removeEventListener(m,C),f()},C=P=>{P.target===r&&++y>=p&&w()};setTimeout(()=>{y<p&&w()},v+1),r.addEventListener(m,C)}function Cp(r,n){const l=window.getComputedStyle(r),s=E=>(l[E]||"").split(", "),u=s(hn+"Delay"),f=s(hn+"Duration"),d=wd(u,f),v=s(Oo+"Delay"),p=s(Oo+"Duration"),m=wd(v,p);let y=null,w=0,C=0;n===hn?d>0&&(y=hn,w=d,C=f.length):n===Oo?m>0&&(y=Oo,w=m,C=p.length):(w=Math.max(d,m),y=w>0?d>m?hn:Oo:null,C=y?y===hn?f.length:p.length:0);const P=y===hn&&/\b(transform|all)(,|$)/.test(l[hn+"Property"]);return{type:y,timeout:w,propCount:C,hasTransform:P}}function wd(r,n){for(;r.length<n.length;)r=r.concat(r);return Math.max(...n.map((l,s)=>Sd(l)+Sd(r[s])))}function Sd(r){return Number(r.slice(0,-1).replace(",","."))*1e3}function Tp(){return document.body.offsetHeight}const Pp=new WeakMap,Op=new WeakMap,tb={name:"TransitionGroup",props:xt({},q0,{tag:String,moveClass:String}),setup(r,{slots:n}){const l=Wr(),s=Eu();let u,f;return Sa(()=>{if(!u.length)return;const d=r.moveClass||`${r.name||"v"}-move`;if(!sb(u[0].el,l.vnode.el,d))return;u.forEach(nb),u.forEach(ib);const v=u.filter(ob);Tp(),v.forEach(p=>{const m=p.el,y=m.style;Vr(m,d),y.transform=y.webkitTransform=y.transitionDuration="";const w=m._moveCb=C=>{C&&C.target!==m||(!C||/transform$/.test(C.propertyName))&&(m.removeEventListener("transitionend",w),m._moveCb=null,$n(m,d))};m.addEventListener("transitionend",w)})}),()=>{const d=_e(r),v=Sp(d);let p=d.tag||Ht;u=f,f=n.default?xa(n.default()):[];for(let m=0;m<f.length;m++){const y=f[m];y.key!=null&&Qn(y,Ri(y,v,s,l))}if(u)for(let m=0;m<u.length;m++){const y=u[m];Qn(y,Ri(y,v,s,l)),Pp.set(y,y.el.getBoundingClientRect())}return ct(p,null,f)}}},rb=tb;function nb(r){const n=r.el;n._moveCb&&n._moveCb(),n._enterCb&&n._enterCb()}function ib(r){Op.set(r,r.el.getBoundingClientRect())}function ob(r){const n=Pp.get(r),l=Op.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 sb(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}=Cp(s);return u.removeChild(s),f}const On=r=>{const n=r.props["onUpdate:modelValue"];return He(n)?l=>Li(n,l):n};function ab(r){r.target.composing=!0}function Cd(r){const n=r.target;n.composing&&(n.composing=!1,lb(n,"input"))}function lb(r,n){const l=document.createEvent("HTMLEvents");l.initEvent(n,!0,!0),r.dispatchEvent(l)}const la={created(r,{modifiers:{lazy:n,trim:l,number:s}},u){r._assign=On(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=wn(v)),r._assign(v)}),l&&Zr(r,"change",()=>{r.value=r.value.trim()}),n||(Zr(r,"compositionstart",ab),Zr(r,"compositionend",Cd),Zr(r,"change",Cd))},mounted(r,{value:n}){r.value=n==null?"":n},beforeUpdate(r,{value:n,modifiers:{lazy:l,trim:s,number:u}},f){if(r._assign=On(f),r.composing||document.activeElement===r&&(l||s&&r.value.trim()===n||(u||r.type==="number")&&wn(r.value)===n))return;const d=n==null?"":n;r.value!==d&&(r.value=d)}},Wu={deep:!0,created(r,n,l){r._assign=On(l),Zr(r,"change",()=>{const s=r._modelValue,u=Hi(r),f=r.checked,d=r._assign;if(He(s)){const v=ca(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(qn(s)){const v=new Set(s);f?v.add(u):v.delete(u),d(v)}else d(Ep(r,f))})},mounted:Td,beforeUpdate(r,n,l){r._assign=On(l),Td(r,n,l)}};function Td(r,{value:n,oldValue:l},s){r._modelValue=n,He(n)?r.checked=ca(n,s.props.value)>-1:qn(n)?r.checked=n.has(s.props.value):n!==l&&(r.checked=xn(n,Ep(r,!0)))}const ju={created(r,{value:n},l){r.checked=xn(n,l.props.value),r._assign=On(l),Zr(r,"change",()=>{r._assign(Hi(r))})},beforeUpdate(r,{value:n,oldValue:l},s){r._assign=On(s),n!==l&&(r.checked=xn(n,s.props.value))}},kp={deep:!0,created(r,{value:n,modifiers:{number:l}},s){const u=qn(n);Zr(r,"change",()=>{const f=Array.prototype.filter.call(r.options,d=>d.selected).map(d=>l?wn(Hi(d)):Hi(d));r._assign(r.multiple?u?new Set(f):f:f[0])}),r._assign=On(s)},mounted(r,{value:n}){Pd(r,n)},beforeUpdate(r,n,l){r._assign=On(l)},updated(r,{value:n}){Pd(r,n)}};function Pd(r,n){const l=r.multiple;if(!(l&&!He(n)&&!qn(n))){for(let s=0,u=r.options.length;s<u;s++){const f=r.options[s],d=Hi(f);if(l)He(n)?f.selected=ca(n,d)>-1:f.selected=n.has(d);else if(xn(Hi(f),n)){r.selectedIndex!==s&&(r.selectedIndex=s);return}}!l&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function Hi(r){return"_value"in r?r._value:r.value}function Ep(r,n){const l=n?"_trueValue":"_falseValue";return l in r?r[l]:n}const ub={created(r,n,l){Vs(r,n,l,null,"created")},mounted(r,n,l){Vs(r,n,l,null,"mounted")},beforeUpdate(r,n,l,s){Vs(r,n,l,s,"beforeUpdate")},updated(r,n,l,s){Vs(r,n,l,s,"updated")}};function Vs(r,n,l,s,u){let f;switch(r.tagName){case"SELECT":f=kp;break;case"TEXTAREA":f=la;break;default:switch(l.props&&l.props.type){case"checkbox":f=Wu;break;case"radio":f=ju;break;default:f=la}}const d=f[u];d&&d(r,n,l,s)}function fb(){la.getSSRProps=({value:r})=>({value:r}),ju.getSSRProps=({value:r},n)=>{if(n.props&&xn(n.props.value,r))return{checked:!0}},Wu.getSSRProps=({value:r},n)=>{if(He(r)){if(n.props&&ca(r,n.props.value)>-1)return{checked:!0}}else if(qn(r)){if(n.props&&r.has(n.props.value))return{checked:!0}}else if(r)return{checked:!0}}}const cb=["ctrl","shift","alt","meta"],db={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)=>cb.some(l=>r[`${l}Key`]&&!n.includes(l))},hb=(r,n)=>(l,...s)=>{for(let u=0;u<n.length;u++){const f=db[n[u]];if(f&&f(l,n))return}return r(l,...s)},pb={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},vb=(r,n)=>l=>{if(!("key"in l))return;const s=zr(l.key);if(n.some(u=>u===s||pb[u]===s))return r(l)},Mp={beforeMount(r,{value:n},{transition:l}){r._vod=r.style.display==="none"?"":r.style.display,l&&n?l.beforeEnter(r):ko(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),ko(r,!0),s.enter(r)):s.leave(r,()=>{ko(r,!1)}):ko(r,n))},beforeUnmount(r,{value:n}){ko(r,n)}};function ko(r,n){r.style.display=n?r._vod:"none"}function gb(){Mp.getSSRProps=({value:r})=>{if(!r)return{style:{display:"none"}}}}const Ap=xt({patchProp:Y0},N0);let Wo,Od=!1;function Lp(){return Wo||(Wo=_h(Ap))}function Np(){return Wo=Od?Wo:ep(Ap),Od=!0,Wo}const _l=(...r)=>{Lp().render(...r)},Ip=(...r)=>{Np().hydrate(...r)},mb=(...r)=>{const n=Lp().createApp(...r),{mount:l}=n;return n.mount=s=>{const u=Rp(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},yb=(...r)=>{const n=Np().createApp(...r),{mount:l}=n;return n.mount=s=>{const u=Rp(s);if(u)return l(u,!0,u instanceof SVGElement)},n};function Rp(r){return mt(r)?document.querySelector(r):r}let kd=!1;const bb=()=>{kd||(kd=!0,fb(),gb())},xb=()=>{};var wb=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",compile:xb,EffectScope:fu,ReactiveEffect:ts,customRef:Ym,effect:vm,effectScope:dm,getCurrentScope:sh,isProxy:vu,isReactive:Jn,isReadonly:Ii,isRef:gt,isShallow:pu,markRaw:gu,onScopeDispose:ah,proxyRefs:bu,reactive:ji,readonly:hu,ref:Lt,shallowReactive:xh,shallowReadonly:jm,shallowRef:$o,stop:gm,toRaw:_e,toRef:Sh,toRefs:Xm,triggerRef:Um,unref:ut,camelize:dr,capitalize:es,normalizeClass:qo,normalizeProps:rm,normalizeStyle:Qo,toDisplayString:im,toHandlerKey:Io,BaseTransition:Mu,Comment:Qt,Fragment:Ht,KeepAlive:Py,Static:Zn,Suspense:vy,Teleport:$y,Text:Di,callWithAsyncErrorHandling:cr,callWithErrorHandling:Hr,cloneVNode:Tn,compatUtils:A0,computed:Bt,createBlock:Ru,createCommentVNode:e0,createElementBlock:Zy,createElementVNode:Du,createHydrationRenderer:ep,createPropsRestProxy:S0,createRenderer:_h,createSlots:r0,createStaticVNode:_y,createTextVNode:Fu,createVNode:ct,defineAsyncComponent:Cy,defineComponent:is,defineEmits:g0,defineExpose:m0,defineProps:v0,get devtools(){return ki},getCurrentInstance:Wr,getTransitionRawChildren:xa,guardReactiveProps:sp,h:ka,handleError:ti,initCustomFormatter:P0,inject:Or,isMemoSame:mp,isRuntimeOnly:f0,isVNode:Cn,mergeDefaults:w0,mergeProps:ap,nextTick:rs,onActivated:Fh,onBeforeMount:Bh,onBeforeUnmount:Ca,onBeforeUpdate:Wh,onDeactivated:zh,onErrorCaptured:Gh,onMounted:Ki,onRenderTracked:Uh,onRenderTriggered:Kh,onServerPrefetch:jh,onUnmounted:Ta,onUpdated:Sa,openBlock:Pa,popScopeId:ay,provide:zo,pushScopeId:sy,queuePostFlushCb:Su,registerRuntimeCompiler:u0,renderList:t0,renderSlot:n0,resolveComponent:Xy,resolveDirective:Jy,resolveDynamicComponent:Vy,resolveFilter:M0,resolveTransitionHooks:Ri,setBlockTracking:$l,setDevtoolsHook:Mh,setTransitionHooks:Qn,ssrContextKey:gp,ssrUtils:E0,toHandlers:i0,transformVNodeArgs:Qy,useAttrs:x0,useSSRContext:T0,useSlots:b0,useTransitionState:Eu,version:yp,warn:Ch,watch:Ut,watchEffect:Nh,watchPostEffect:Ih,watchSyncEffect:xy,withAsyncContext:C0,withCtx:Pu,withDefaults:y0,withDirectives:zy,withMemo:O0,withScopeId:ly,Transition:Bu,TransitionGroup:rb,VueElement:Ea,createApp:mb,createSSRApp:yb,defineCustomElement:xp,defineSSRCustomElement:V0,hydrate:Ip,initDirectivesForSSR:bb,render:_l,useCssModule:Z0,useCssVars:Q0,vModelCheckbox:Wu,vModelDynamic:ub,vModelRadio:ju,vModelSelect:kp,vModelText:la,vShow:Mp,withKeys:vb,withModifiers:hb});function Al(){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 Ma(r){return sh()?(ah(r),!0):!1}const Ku=typeof window!="undefined",Sb=r=>typeof r=="string",qs=()=>{};function Dp(r,n){function l(...s){r(()=>n.apply(this,s),{fn:n,thisArg:this,args:s})}return l}const Cb=r=>r();function Tb(r,n={}){let l,s;return f=>{const d=ut(r),v=ut(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 Pb(r,n=!1,l="Timeout"){return new Promise((s,u)=>{setTimeout(n?()=>u(l):s,r)})}function Ob(r,...n){return n.some(l=>l in r)}function kb(r,n=200,l={}){return Dp(Tb(n,l),r)}function ww(r,n=200,l={}){if(n<=0)return r;const s=Lt(r.value),u=kb(()=>{s.value=r.value},n,l);return Ut(r,()=>u()),s}var Ed=Object.getOwnPropertySymbols,Eb=Object.prototype.hasOwnProperty,Mb=Object.prototype.propertyIsEnumerable,Ab=(r,n)=>{var l={};for(var s in r)Eb.call(r,s)&&n.indexOf(s)<0&&(l[s]=r[s]);if(r!=null&&Ed)for(var s of Ed(r))n.indexOf(s)<0&&Mb.call(r,s)&&(l[s]=r[s]);return l};function Lb(r,n,l={}){const s=l,{eventFilter:u=Cb}=s,f=Ab(s,["eventFilter"]);return Ut(r,Dp(u,n),f)}function Fp(r,n=!0){Wr()?Ki(r):n?r():rs(r)}function Nb(r){let n=!1;function l(w,{flush:C="sync",deep:P=!1,timeout:E,throwOnTimeout:j}={}){let D=null;const A=[new Promise(L=>{D=Ut(r,B=>{w(B)===!n&&(D==null||D(),L())},{flush:C,deep:P,immediate:!0})})];return E&&A.push(Pb(E,j).finally(()=>{D==null||D()})),Promise.race(A)}function s(w,C){return l(P=>P===ut(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 E=Array.from(P);return E.includes(w)||E.includes(ut(w))},C)}function m(w){return y(1,w)}function y(w=1,C){let P=-1;return l(()=>(P+=1,P>=w),C)}return Array.isArray(ut(r))?{toMatch:l,toContains:p,changed:m,changedTimes:y,get not(){return n=!n,this}}:{toMatch:l,toBe:s,toBeTruthy:u,toBeNull:f,toBeNaN:v,toBeUndefined:d,changed:m,changedTimes:y,get not(){return n=!n,this}}}function Ib(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)},ut(n))}return s&&(u.value=!0,Ku&&p()),Ma(v),{isPending:u,start:p,stop:v}}function Sw(r=!1){if(gt(r))return n=>(r.value=typeof n=="boolean"?n:!r.value,r.value);{const n=Lt(r);return[n,s=>(n.value=typeof s=="boolean"?s:!n.value,n.value)]}}function Cw(r,n,l){let s;gt(l)?s={evaluating:l}:s=l||{};const{lazy:u=!1,evaluating:f=void 0,onError:d=qs}=s,v=Lt(!u),p=Lt(n);let m=0;return Nh(async y=>{if(!v.value)return;m++;const w=m;let C=!1;f&&Promise.resolve().then(()=>{f.value=!0});try{const P=await r(E=>{y(()=>{f&&(f.value=!1),C||E()})});w===m&&(p.value=P)}catch(P){d(P)}finally{f&&(f.value=!1),C=!0}}),u?Bt(()=>(v.value=!0,p.value)):p}function Rb(r){var n;const l=ut(r);return(n=l==null?void 0:l.$el)!=null?n:l}const kn=Ku?window:void 0;function Db(...r){let n,l,s,u;if(Sb(r[0])?([l,s,u]=r,n=kn):[n,l,s,u]=r,!n)return qs;let f=qs;const d=Ut(()=>ut(n),p=>{f(),!!p&&(p.addEventListener(l,s,u),f=()=>{p.removeEventListener(l,s,u),f=qs})},{immediate:!0,flush:"post"}),v=()=>{d(),f()};return Ma(v),v}function Fb(r,n={}){const{window:l=kn}=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),Ma(()=>{"removeEventListener"in f?s.removeEventListener("change",f):s.removeListener(f)}))}),u}const eu=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},tu="__vueuse_ssr_handlers__";eu[tu]=eu[tu]||{};const zb=eu[tu];function zp(r,n){return zb[r]||n}function Hb(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 Bb={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 Wb(r,n,l,s={}){var u;const{flush:f="pre",deep:d=!0,listenToStorageChanges:v=!0,writeDefaults:p=!0,shallow:m,window:y=kn,eventFilter:w,onError:C=A=>{console.error(A)}}=s,P=ut(n),E=Hb(P),j=(m?$o:Lt)(n),D=(u=s.serializer)!=null?u:Bb[E];if(!l)try{l=zp("getDefaultStorage",()=>{var A;return(A=kn)==null?void 0:A.localStorage})()}catch(A){C(A)}function H(A){if(!(!l||A&&A.key!==r))try{const L=A?A.newValue:l.getItem(r);L==null?(j.value=P,p&&P!==null&&l.setItem(r,D.write(P))):typeof L!="string"?j.value=L:j.value=D.read(L)}catch(L){C(L)}}return H(),y&&v&&Db(y,"storage",A=>setTimeout(()=>H(A),0)),l&&Lb(j,()=>{try{j.value==null?l.removeItem(r):l.setItem(r,D.write(j.value))}catch(A){C(A)}},{flush:f,deep:d,eventFilter:w}),j}function Hp(r){return Fb("(prefers-color-scheme: dark)",r)}var jb=Object.defineProperty,Md=Object.getOwnPropertySymbols,Kb=Object.prototype.hasOwnProperty,Ub=Object.prototype.propertyIsEnumerable,Ad=(r,n,l)=>n in r?jb(r,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[n]=l,Gb=(r,n)=>{for(var l in n||(n={}))Kb.call(n,l)&&Ad(r,l,n[l]);if(Md)for(var l of Md(n))Ub.call(n,l)&&Ad(r,l,n[l]);return r};function $b(r={}){const{selector:n="html",attribute:l="class",window:s=kn,storage:u,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:v}=r,p=Gb({auto:"",light:"light",dark:"dark"},r.modes||{}),m=Hp({window:s}),y=Bt(()=>m.value?"dark":"light"),w=v||(f==null?Lt("auto"):Wb(f,"auto",u,{window:s,listenToStorageChanges:d})),C=Bt({get(){return w.value==="auto"?y.value:w.value},set(D){w.value=D}}),P=zp("updateHTMLAttrs",(D,H,A)=>{const L=s==null?void 0:s.document.querySelector(D);if(!!L)if(H==="class"){const B=A.split(/\s/g);Object.values(p).flatMap(Z=>(Z||"").split(/\s/g)).filter(Boolean).forEach(Z=>{B.includes(Z)?L.classList.add(Z):L.classList.remove(Z)})}else L.setAttribute(H,A)});function E(D){var H;P(n,l,(H=p[D])!=null?H:D)}function j(D){r.onChanged?r.onChanged(D,E):E(D)}return Ut(C,j,{flush:"post",immediate:!0}),Fp(()=>j(C.value)),C}var Yb=Object.defineProperty,Xb=Object.defineProperties,Vb=Object.getOwnPropertyDescriptors,Ld=Object.getOwnPropertySymbols,Jb=Object.prototype.hasOwnProperty,Zb=Object.prototype.propertyIsEnumerable,Nd=(r,n,l)=>n in r?Yb(r,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[n]=l,Qb=(r,n)=>{for(var l in n||(n={}))Jb.call(n,l)&&Nd(r,l,n[l]);if(Ld)for(var l of Ld(n))Zb.call(n,l)&&Nd(r,l,n[l]);return r},qb=(r,n)=>Xb(r,Vb(n));function Tw(r={}){const{valueDark:n="dark",valueLight:l="",window:s=kn}=r,u=$b(qb(Qb({},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=Hp({window:s});return Bt({get(){return u.value==="dark"},set(v){v===f.value?u.value="auto":u.value=v?"dark":"light"}})}var Id=Object.getOwnPropertySymbols,_b=Object.prototype.hasOwnProperty,ex=Object.prototype.propertyIsEnumerable,tx=(r,n)=>{var l={};for(var s in r)_b.call(r,s)&&n.indexOf(s)<0&&(l[s]=r[s]);if(r!=null&&Id)for(var s of Id(r))n.indexOf(s)<0&&ex.call(r,s)&&(l[s]=r[s]);return l};function Pw(r,n,l={}){const s=l,{window:u=kn}=s,f=tx(s,["window"]);let d;const v=u&&"ResizeObserver"in u,p=()=>{d&&(d.disconnect(),d=void 0)},m=Ut(()=>Rb(r),w=>{p(),v&&u&&w&&(d=new u.ResizeObserver(n),d.observe(w,f))},{immediate:!0,flush:"post"}),y=()=>{p(),m()};return Ma(y),{isSupported:v,stop:y}}var rx=Object.defineProperty,nx=Object.defineProperties,ix=Object.getOwnPropertyDescriptors,Rd=Object.getOwnPropertySymbols,ox=Object.prototype.hasOwnProperty,sx=Object.prototype.propertyIsEnumerable,Dd=(r,n,l)=>n in r?rx(r,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[n]=l,Tr=(r,n)=>{for(var l in n||(n={}))ox.call(n,l)&&Dd(r,l,n[l]);if(Rd)for(var l of Rd(n))sx.call(n,l)&&Dd(r,l,n[l]);return r},Js=(r,n)=>nx(r,ix(n));const ax={json:"application/json",text:"text/plain",formData:"multipart/form-data"};function Fd(r){return Ob(r,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError")}function Ll(r){return r instanceof Headers?Object.fromEntries([...r.entries()]):r}function Ow(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&&(Fd(n[0])?f=Tr(Tr({},f),n[0]):u=n[0]),n.length>1&&Fd(n[1])&&(f=Tr(Tr({},f),n[1]));const{fetch:v=(l=kn)==null?void 0:l.fetch,initialData:p,timeout:m}=f,y=Al(),w=Al(),C=Al(),P=Lt(!1),E=Lt(!1),j=Lt(!1),D=Lt(null),H=$o(null),A=Lt(null),L=$o(p),B=Bt(()=>s&&E.value);let Z,_;const V=()=>{s&&Z&&Z.abort()},J=O=>{E.value=O,P.value=!O};m&&(_=Ib(V,m,{immediate:!1}));const te=async(O=!1)=>{var x;J(!0),A.value=null,D.value=null,j.value=!1,Z=void 0,s&&(Z=new AbortController,Z.signal.onabort=()=>j.value=!0,u=Js(Tr({},u),{signal:Z.signal}));const z={method:d.method,headers:{}};if(d.payload){const de=Ll(z.headers);d.payloadType&&(de["Content-Type"]=(x=ax[d.payloadType])!=null?x:d.payloadType),z.body=d.payloadType==="json"?JSON.stringify(ut(d.payload)):ut(d.payload)}let W=!1;const $={url:ut(r),options:u,cancel:()=>{W=!0}};if(f.beforeFetch&&Object.assign($,await f.beforeFetch($)),W||!v)return J(!1),Promise.resolve(null);let se=null;return _&&_.start(),new Promise((de,Ke)=>{var Ve;v($.url,Js(Tr(Tr({},z),$.options),{headers:Tr(Tr({},Ll(z.headers)),Ll((Ve=$.options)==null?void 0:Ve.headers))})).then(async Le=>{if(H.value=Le,D.value=Le.status,se=await Le[d.type](),f.afterFetch&&({data:se}=await f.afterFetch({data:se,response:Le})),L.value=se,!Le.ok)throw new Error(Le.statusText);return y.trigger(Le),de(Le)}).catch(async Le=>{let Ge=Le.message||Le.name;return f.onFetchError&&({data:se,error:Ge}=await f.onFetchError({data:se,error:Le})),L.value=se,A.value=Ge,w.trigger(Le),O?Ke(Le):de(null)}).finally(()=>{J(!1),_&&_.stop(),C.trigger(null)})})};Ut(()=>[ut(r),ut(f.refetch)],()=>ut(f.refetch)&&te(),{deep:!0});const ie={isFinished:P,statusCode:D,response:H,error:A,data:L,isFetching:E,canAbort:B,aborted:j,abort:V,execute:te,onFetchResponse:y.on,onFetchError:w.on,onFetchFinally:C.on,get:Q("get"),put:Q("put"),post:Q("post"),delete:Q("delete"),patch:Q("patch"),head:Q("head"),options:Q("options"),json:k("json"),text:k("text"),blob:k("blob"),arrayBuffer:k("arrayBuffer"),formData:k("formData")};function Q(O){return(x,z)=>{if(!E.value)return d.method=O,d.payload=x,d.payloadType=z,gt(d.payload)&&Ut(()=>[ut(d.payload),ut(f.refetch)],()=>ut(f.refetch)&&te(),{deep:!0}),!z&&ut(x)&&Object.getPrototypeOf(ut(x))===Object.prototype&&(d.payloadType="json"),ie}}function ee(){return new Promise((O,x)=>{Nb(P).toBe(!0).then(()=>O(ie)).catch(z=>x(z))})}function k(O){return()=>{if(!E.value)return d.type=O,Js(Tr({},ie),{then(x,z){return ee().then(x,z)}})}}return f.immediate&&setTimeout(te,0),Js(Tr({},ie),{then(O,x){return ee().then(O,x)}})}var zd,Hd;Ku&&(window==null?void 0:window.navigator)&&((zd=window==null?void 0:window.navigator)==null?void 0:zd.platform)&&/iP(ad|hone|od)/.test((Hd=window==null?void 0:window.navigator)==null?void 0:Hd.platform);var lx=Object.defineProperty,Bd=Object.getOwnPropertySymbols,ux=Object.prototype.hasOwnProperty,fx=Object.prototype.propertyIsEnumerable,Wd=(r,n,l)=>n in r?lx(r,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[n]=l,cx=(r,n)=>{for(var l in n||(n={}))ux.call(n,l)&&Wd(r,l,n[l]);if(Bd)for(var l of Bd(n))fx.call(n,l)&&Wd(r,l,n[l]);return r};const dx={top:0,left:0,bottom:0,right:0,height:0,width:0};cx({text:""},dx);function kw(r,n,l,s={}){var u;const{passive:f=!1,eventName:d,deep:v=!1}=s,p=Wr(),m=l||(p==null?void 0:p.emit)||((u=p==null?void 0:p.$emit)==null?void 0:u.bind(p));let y=d;if(n||(n="modelValue"),y=d||y||`update:${n}`,f){const w=Lt(r[n]);return Ut(()=>r[n],C=>w.value=C),Ut(w,C=>{(C!==r[n]||v)&&m(y,C)},{deep:v}),w}else return Bt({get(){return r[n]},set(w){m(y,w)}})}var hx=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function px(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 En={exports:{}};(function(r,n){(function(l,s){r.exports=s()})(hx,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]),y=!v&&/WebKit\//.test(l),w=y&&/Qt\/\d+\.\d+/.test(l),C=!v&&/Chrome\//.test(l),P=/Opera\//.test(l),E=/Apple Computer/.test(navigator.vendor),j=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(l),D=/PhantomJS/.test(l),H=E&&(/Mobile\/\w+/.test(l)||navigator.maxTouchPoints>2),A=/Android/.test(l),L=H||A||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(l),B=H||/Mac/.test(s),Z=/\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,y=!0);var J=B&&(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 W(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()};H?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 Le(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 Ge(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 Ne(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 K(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&&Le(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 N(e,t){return t?t.source.indexOf("\\w")>-1&&he(e)?!0:t.test(e):he(e)}function q(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var G=/[\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&&G.test(e)}function De(e,t,o){for(;(o<0?t>0:t<e.length)&&Se(e.charAt(t));)t+=o;return t}function $e(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 yt=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 b(S,M,I){this.level=S,this.from=M,this.to=I}return function(S,M){var I=M=="ltr"?"L":"R";if(S.length==0||M=="ltr"&&!i.test(S))return!1;for(var Y=S.length,U=[],re=0;re<Y;++re)U.push(o(S.charCodeAt(re)));for(var ce=0,xe=I;ce<Y;++ce){var Te=U[ce];Te=="m"?U[ce]=xe:xe=Te}for(var Ee=0,Pe=I;Ee<Y;++Ee){var Ae=U[Ee];Ae=="1"&&Pe=="r"?U[Ee]="n":c.test(Ae)&&(Pe=Ae,Ae=="r"&&(U[Ee]="R"))}for(var We=1,ze=U[0];We<Y-1;++We){var Ze=U[We];Ze=="+"&&ze=="1"&&U[We+1]=="1"?U[We]="1":Ze==","&&ze==U[We+1]&&(ze=="1"||ze=="n")&&(U[We]=ze),ze=Ze}for(var at=0;at<Y;++at){var Mt=U[at];if(Mt==",")U[at]="N";else if(Mt=="%"){var ht=void 0;for(ht=at+1;ht<Y&&U[ht]=="%";++ht);for(var tr=at&&U[at-1]=="!"||ht<Y&&U[ht]=="1"?"1":"N",Xt=at;Xt<ht;++Xt)U[Xt]=tr;at=ht-1}}for(var St=0,Vt=I;St<Y;++St){var It=U[St];Vt=="L"&&It=="1"?U[St]="L":c.test(It)&&(Vt=It)}for(var Tt=0;Tt<Y;++Tt)if(a.test(U[Tt])){var Ct=void 0;for(Ct=Tt+1;Ct<Y&&a.test(U[Ct]);++Ct);for(var vt=(Tt?U[Tt-1]:I)=="L",Jt=(Ct<Y?U[Ct]:I)=="L",Si=vt==Jt?vt?"L":"R":I,fn=Tt;fn<Ct;++fn)U[fn]=Si;Tt=Ct-1}for(var Ft=[],Ir,At=0;At<Y;)if(h.test(U[At])){var wl=At;for(++At;At<Y&&h.test(U[At]);++At);Ft.push(new b(0,wl,At))}else{var Xr=At,Bn=Ft.length,Wn=M=="rtl"?1:0;for(++At;At<Y&&U[At]!="L";++At);for(var Kt=Xr;Kt<At;)if(g.test(U[Kt])){Xr<Kt&&(Ft.splice(Bn,0,new b(1,Xr,Kt)),Bn+=Wn);var Ci=Kt;for(++Kt;Kt<At&&g.test(U[Kt]);++Kt);Ft.splice(Bn,0,new b(2,Ci,Kt)),Bn+=Wn,Xr=Kt}else++Kt;Xr<At&&Ft.splice(Bn,0,new b(1,Xr,At))}return M=="ltr"&&(Ft[0].level==1&&(Ir=S.match(/^\s+/))&&(Ft[0].from=Ir[0].length,Ft.unshift(new b(0,0,Ir[0].length))),X(Ft).level==1&&(Ir=S.match(/\s+$/))&&(X(Ft).to-=Ir[0].length,Ft.push(new b(0,Y-Ir[0].length,Y)))),M=="rtl"?Ft.reverse():Ft}}();function dt(e,t){var o=e.order;return o==null&&(o=e.order=yt(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 mr(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function nr(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Mn(e){Pt(e),mr(e)}function _r(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)),B&&e.ctrlKey&&t==1&&(t=3),t}var Gi=function(){if(p&&m<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}(),Gt;function as(e){if(Gt==null){var t=O("span","\u200B");k(e,O("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Gt=t.offsetWidth<=1&&t.offsetHeight>2&&!(p&&m<8))}var o=Gt?O("span","\u200B"):O("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return o.setAttribute("cm-text",""),o}var $i;function kr(e){if($i!=null)return $i;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:$i=i.right-o.right<3}var Yi=`
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")}(),Xi=null;function en(e){if(Xi!=null)return Xi;var t=k(e,O("span","x")),o=t.getBoundingClientRect(),i=z(t,0,1).getBoundingClientRect();return Xi=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 jr(e,t){ir[e]=t}function ri(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 ri("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ri("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function ni(e,t){t=ri(t);var o=pr[t.name];if(!o)return ni(e,"text/plain");var i=o(e,t);if(yr.hasOwnProperty(t.name)){var a=yr[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 yr={};function br(e,t){var o=yr.hasOwnProperty(e)?yr[e]:yr[e]={};Le(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 Vi(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 Ji(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=Ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ge(this.string,this.lineStart,this.tabSize):0)},pt.prototype.indentation=function(){return Ge(this.string,null,this.tabSize)-(this.lineStart?Ge(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 Ie(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 Er(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 Zi(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 Mr(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],b=g.height;if(t<b)break;t-=b}return o+h}function An(e,t){return t>=e.first&&t<e.first+e.size}function Qi(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 F(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,Ie(e,o).text.length):Rt(t,Ie(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 ii=function(e,t){this.state=e,this.lookAhead=t},Ar=function(e,t,o,i){this.state=t,this.doc=e,this.line=o,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};Ar.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Ar.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}},Ar.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ar.fromSaved=function(e,t,o){return t instanceof ii?new Ar(e,or(e.mode,t.state),o,t.lookAhead):new Ar(e,or(e.mode,t),o)},Ar.prototype.save=function(e){var t=e!==!1?or(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ii(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,M){return a.push(S,M)},c,i);for(var h=o.state,g=function(S){o.baseTokens=a;var M=e.state.overlays[S],I=1,Y=0;o.state=!0,qu(e,t.text,M.mode,o,function(U,re){for(var ce=I;Y<U;){var xe=a[I];xe>U&&a.splice(I,1,U,a[I+1],xe),I+=2,Y=Math.min(U,xe)}if(!!re)if(M.opaque)a.splice(ce,I-ce,U,"overlay "+re),I=ce+2;else for(;ce<I;ce+=2){var Te=a[ce+1];a[ce+1]=(Te?Te+" ":"")+"overlay "+re}},c),o.state=h,o.baseTokens=null,o.baseTokenPos=1},b=0;b<e.state.overlays.length;++b)g(b);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=qi(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 qi(e,t,o){var i=e.doc,a=e.display;if(!i.mode.startState)return new Ar(i,!0,t);var c=Qp(e,t,o),h=c>i.first&&Ie(i,c-1).stateAfter,g=h?Ar.fromSaved(i,h,c):new Ar(i,Ji(i.mode),c);return i.iter(c,t,function(b){La(e,b.text,g);var S=g.line;b.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 La(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();)Na(a,c,o.state),c.start=c.pos}function Vu(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var o=Vi(e,t);if(o.mode.blankLine)return o.mode.blankLine(o.state)}}function Na(e,t,o,i){for(var a=0;a<10;a++){i&&(i[0]=Vi(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=Ie(a,t.line),b=qi(e,t.line,o),S=new pt(g.text,e.options.tabSize,b),M;for(i&&(M=[]);(i||S.pos<t.ch)&&!S.eol();)S.start=S.pos,h=Na(c,S,b.state),i&&M.push(new Ju(S,h,or(a.mode,b.state)));return i?M:new Ju(S,h,b.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 b=0,S=null,M=new pt(t,e.options.tabSize,i),I,Y=e.options.addModeClass&&[null];for(t==""&&Qu(Vu(o,i.state),c);!M.eol();){if(M.pos>e.options.maxHighlightLength?(g=!1,h&&La(e,t,i,M.pos),M.pos=t.length,I=null):I=Qu(Na(o,M,i.state,Y),c),Y){var U=Y[0].name;U&&(I="m-"+(I?U+" "+I:U))}if(!g||S!=I){for(;b<M.start;)b=Math.min(M.start,b+5e3),a(b,S);S=I}M.start=M.pos}for(;b<M.pos;){var re=Math.min(M.pos,b+5e3);a(re,S),b=re}}function Qp(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 b=Ie(c,g-1),S=b.stateAfter;if(S&&(!o||g+(S instanceof ii?S.lookAhead:0)<=c.modeFrontier))return g;var M=Ge(b.text,null,e.options.tabSize);(a==null||i>M)&&(a=g-1,i=M)}return a}function qp(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=Ie(e,i).stateAfter;if(a&&(!(a instanceof ii)||i+a.lookAhead<t)){o=i+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,o)}}var _u=!1,Kr=!1;function _p(){_u=!0}function ev(){Kr=!0}function cs(e,t,o){this.marker=e,this.from=t,this.to=o}function _i(e,t){if(e)for(var o=0;o<e.length;++o){var i=e[o];if(i.marker==t)return i}}function tv(e,t){for(var o,i=0;i<e.length;++i)e[i]!=t&&(o||(o=[])).push(e[i]);return o}function rv(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 nv(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 b=c.to==null||(h.inclusiveRight?c.to>=t:c.to>t);(i||(i=[])).push(new cs(h,c.from,b?null:c.to))}}return i}function iv(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 b=c.from==null||(h.inclusiveLeft?c.from<=t:c.from<t);(i||(i=[])).push(new cs(h,b?null:c.from-t,c.to==null?null:c.to-t))}}return i}function Ia(e,t){if(t.full)return null;var o=An(e,t.from.line)&&Ie(e,t.from.line).markedSpans,i=An(e,t.to.line)&&Ie(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=nv(o,a,h),b=iv(i,c,h),S=t.text.length==1,M=X(t.text).length+(S?a:0);if(g)for(var I=0;I<g.length;++I){var Y=g[I];if(Y.to==null){var U=_i(b,Y.marker);U?S&&(Y.to=U.to==null?null:U.to+M):Y.to=a}}if(b)for(var re=0;re<b.length;++re){var ce=b[re];if(ce.to!=null&&(ce.to+=M),ce.from==null){var xe=_i(g,ce.marker);xe||(ce.from=M,S&&(g||(g=[])).push(ce))}else ce.from+=M,S&&(g||(g=[])).push(ce)}g&&(g=ef(g)),b&&b!=g&&(b=ef(b));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(b)}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 ov(e,t,o){var i=null;if(e.iter(t.line,o.line+1,function(U){if(U.markedSpans)for(var re=0;re<U.markedSpans.length;++re){var ce=U.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),b=0;b<a.length;++b){var S=a[b];if(!(T(S.to,g.from)<0||T(S.from,g.to)>0)){var M=[b,1],I=T(S.from,g.from),Y=T(S.to,g.to);(I<0||!h.inclusiveLeft&&!I)&&M.push({from:S.from,to:g.from}),(Y>0||!h.inclusiveRight&&!Y)&&M.push({from:g.to,to:S.to}),a.splice.apply(a,M),b+=M.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 Ra(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=Kr&&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||Ra(i,a.marker)<0)&&(i=a.marker);return i}function of(e){return nf(e,!0)}function ps(e){return nf(e,!1)}function sv(e,t){var o=Kr&&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||Ra(i,c.marker)<0)&&(i=c.marker)}return i}function sf(e,t,o,i,a){var c=Ie(e,t),h=Kr&&c.markedSpans;if(h)for(var g=0;g<h.length;++g){var b=h[g];if(!!b.marker.collapsed){var S=b.marker.find(0),M=T(S.from,o)||ds(b.marker)-ds(a),I=T(S.to,i)||hs(b.marker)-hs(a);if(!(M>=0&&I<=0||M<=0&&I>=0)&&(M<=0&&(b.marker.inclusiveRight&&a.inclusiveLeft?T(S.to,o)>=0:T(S.to,o)>0)||M>=0&&(b.marker.inclusiveRight&&a.inclusiveLeft?T(S.from,i)<=0:T(S.from,i)<0)))return!0}}}function xr(e){for(var t;t=of(e);)e=t.find(-1,!0).line;return e}function av(e){for(var t;t=ps(e);)e=t.find(1,!0).line;return e}function lv(e){for(var t,o;t=ps(e);)e=t.find(1,!0).line,(o||(o=[])).push(e);return o}function Da(e,t){var o=Ie(e,t),i=xr(o);return o==i?t:tt(i)}function af(e,t){if(t>e.lastLine())return t;var o=Ie(e,t),i;if(!tn(e,o))return t;for(;i=ps(o);)o=i.find(1,!0).line;return tt(o)+1}function tn(e,t){var o=Kr&&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&&Fa(e,t,i))return!0}}}function Fa(e,t,o){if(o.to==null){var i=o.marker.find(1,!0);return Fa(e,i.line,_i(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)&&Fa(e,t,a))return!0}function Ur(e){e=xr(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 za(e){var t=e.display,o=e.doc;t.maxLine=Ie(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 oi=function(e,t,o){this.text=e,rf(this,t),this.height=o?o(this):1};oi.prototype.lineNo=function(){return tt(this)},qt(oi);function uv(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 fv(e){e.parent=null,tf(e)}var cv={},dv={};function lf(e,t){if(!e||/^\s*$/.test(e))return null;var o=t.addModeClass?dv:cv;return o[e]||(o[e]=e.replace(/\S+/g,"cm-$&"))}function uf(e,t){var o=x("span",null,null,y?"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=pv,kr(e.display.measure)&&(h=dt(c,e.doc.direction))&&(i.addToken=gv(i.addToken,h)),i.map=[];var g=t!=e.display.externalMeasured&&tt(c);mv(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(y){var b=i.content.lastChild;(/\bcm-tab\b/.test(b.className)||b.querySelector&&b.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 hv(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 pv(e,t,o,i,a,c,h){if(!!t){var g=e.splitSpaces?vv(t,e.trailingSpace):t,b=e.cm.state.specialChars,S=!1,M;if(!b.test(t))e.col+=t.length,M=document.createTextNode(g),e.map.push(e.pos,e.pos+t.length,M),p&&m<9&&(S=!0),e.pos+=t.length;else{M=document.createDocumentFragment();for(var I=0;;){b.lastIndex=I;var Y=b.exec(t),U=Y?Y.index-I:t.length-I;if(U){var re=document.createTextNode(g.slice(I,I+U));p&&m<9?M.appendChild(O("span",[re])):M.appendChild(re),e.map.push(e.pos,e.pos+U,re),e.col+=U,e.pos+=U}if(!Y)break;I+=U+1;var ce=void 0;if(Y[0]==" "){var xe=e.cm.options.tabSize,Te=xe-e.col%xe;ce=M.appendChild(O("span",K(Te),"cm-tab")),ce.setAttribute("role","presentation"),ce.setAttribute("cm-text"," "),e.col+=Te}else Y[0]=="\r"||Y[0]==`
8
- `?(ce=M.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?M.appendChild(O("span",[ce])):M.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",[M],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(M)}}function vv(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 gv(e,t){return function(o,i,a,c,h,g,b){a=a?a+" cm-force-border":"cm-force-border";for(var S=o.pos,M=S+i.length;;){for(var I=void 0,Y=0;Y<t.length&&(I=t[Y],!(I.to>S&&I.from<=S));Y++);if(I.to>=M)return e(o,i,a,c,h,g,b);e(o,i.slice(0,I.to-S),a,c,null,g,b),c=null,i=i.slice(I.to-S),S=I.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 mv(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,b=0,S=1,M="",I,Y,U=0,re,ce,xe,Te,Ee;;){if(U==b){re=ce=xe=Y="",Ee=null,Te=null,U=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==b&&Ze.widgetNode)Pe.push(Ze);else if(ze.from<=b&&(ze.to==null||ze.to>b||Ze.collapsed&&ze.to==b&&ze.from==b)){if(ze.to!=null&&ze.to!=b&&U>ze.to&&(U=ze.to,ce=""),Ze.className&&(re+=" "+Ze.className),Ze.css&&(Y=(Y?Y+";":"")+Ze.css),Ze.startStyle&&ze.from==b&&(xe+=" "+Ze.startStyle),Ze.endStyle&&ze.to==U&&(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||Ra(Te.marker,Ze)<0)&&(Te=ze)}else ze.from>b&&U>ze.from&&(U=ze.from)}if(Ae)for(var Mt=0;Mt<Ae.length;Mt+=2)Ae[Mt+1]==U&&(ce+=" "+Ae[Mt]);if(!Te||Te.from==b)for(var ht=0;ht<Pe.length;++ht)ff(t,0,Pe[ht]);if(Te&&(Te.from||0)==b){if(ff(t,(Te.to==null?g+1:Te.to)-b,Te.marker,Te.from==null),Te.to==null)return;Te.to==b&&(Te=!1)}}if(b>=g)break;for(var tr=Math.min(g,U);;){if(M){var Xt=b+M.length;if(!Te){var St=Xt>tr?M.slice(0,tr-b):M;t.addToken(t,St,I?I+re:re,xe,b+St.length==U?ce:"",Y,Ee)}if(Xt>=tr){M=M.slice(tr-b),b=tr;break}b=Xt,xe=""}M=a.slice(c,c=o[S++]),I=lf(o[S++],t.cm.options)}}}function cf(e,t,o){this.line=t,this.rest=lv(t),this.size=this.rest?tt(X(this.rest))-o+1:1,this.node=this.text=null,this.hidden=tn(e,t)}function gs(e,t,o){for(var i=[],a,c=t;c<o;c=a){var h=new cf(e.doc,Ie(e.doc,c),c);a=c+h.size,i.push(h)}return i}var si=null;function yv(e){si?si.ops.push(e):e.ownsGroup=si={ops:[e],delayedCallbacks:[]}}function bv(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 xv(e,t){var o=e.ownsGroup;if(!!o)try{bv(o)}finally{si=null,t(o)}}var eo=null;function Ot(e,t){var o=Ye(e,t);if(!!o.length){var i=Array.prototype.slice.call(arguments,2),a;si?a=si.delayedCallbacks:eo?a=eo:(a=eo=[],setTimeout(wv,0));for(var c=function(g){a.push(function(){return o[g].apply(null,i)})},h=0;h<o.length;++h)c(h)}}function wv(){var e=eo;eo=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"?Cv(e,t):c=="gutter"?pf(e,t,o,i):c=="class"?Ha(e,t):c=="widget"&&Tv(e,t,i)}t.changes=null}function to(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 Sv(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=to(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 Cv(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,Ha(e,t)):o&&(t.text.className=o)}function Ha(e,t){Sv(e,t),t.line.wrapClass?to(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=to(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=to(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",Qi(e.options,o),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),c)for(var b=0;b<e.display.gutterSpecs.length;++b){var S=e.display.gutterSpecs[b].className,M=c.hasOwnProperty(S)&&c[S];M&&g.appendChild(O("div",[M],"CodeMirror-gutter-elt","left: "+i.gutterLeft[S]+"px; width: "+i.gutterWidth[S]+"px"))}}}function Tv(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 Pv(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),Ha(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=to(o),h=0,g=t.widgets;h<g.length;++h){var b=g[h],S=O("div",[b.node],"CodeMirror-linewidget"+(b.className?" "+b.className:""));b.handleMouseEvents||S.setAttribute("cm-ignore-events","true"),Ov(b,S,o,i),e.display.input.setUneditable(S),a&&b.above?c.insertBefore(S,o.gutter||o.text):c.appendChild(S),Ot(b,"redraw")}}function Ov(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 ro(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!W(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 Gr(e,t){for(var o=_r(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 Ba(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 Lr(e){return le-e.display.nativeBarWidth}function Ln(e){return e.display.scroller.clientWidth-Lr(e)-e.display.barWidth}function Wa(e){return e.display.scroller.clientHeight-Lr(e)-e.display.barHeight}function kv(e,t,o){var i=e.options.lineWrapping,a=i&&Ln(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 b=h[g],S=h[g+1];Math.abs(b.bottom-S.bottom)>2&&c.push((b.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 Ev(e,t){t=xr(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 Nr(e,ai(e,t),o,i)}function ja(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Rn(e,t)];var o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size)return o}function ai(e,t){var o=tt(t),i=ja(e,o);i&&!i.text?i=null:i&&i.changes&&(df(e,i,o,Ya(e)),e.curOp.forceUpdate=!0),i||(i=Ev(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 Nr(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||(kv(e,t.view,t.rect),t.hasHeights=!0),h=Av(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,b,S=0;S<e.length;S+=3)if(g=e[S],b=e[S+1],t<g?(a=0,c=1,h="left"):t<b?(a=t-g,c=a+1):(S==e.length-3||t==b&&e[S+3]>t)&&(c=b-g,a=c-1,t>=b&&(h="right")),a!=null){if(i=e[S+2],g==b&&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==b-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:b}}function Mv(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 Av(e,t,o,i){var a=wf(t.map,o,i),c=a.node,h=a.start,g=a.end,b=a.collapse,S;if(c.nodeType==3){for(var M=0;M<4;M++){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=Mv(z(c,h,g).getClientRects(),i),S.left||S.right||h==0)break;g=h,h=h-1,b="right"}p&&m<11&&(S=Lv(e.display.measure,S))}else{h>0&&(b=i="right");var I;e.options.lineWrapping&&(I=c.getClientRects()).length>1?S=I[i=="right"?I.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+ui(e.display),top:Y.top,bottom:Y.bottom}:S=xf}for(var U=S.top-t.rect.top,re=S.bottom-t.rect.top,ce=(U+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:(b=="right"?S.right:S.left)-t.rect.left,right:(b=="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=U,Ae.rbottom=re),Ae}function Lv(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!en(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 no(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&&A?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Pf(){return C&&A?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ka(e){var t=xr(e),o=t.widgets,i=0;if(o)for(var a=0;a<o.length;++a)o[a].above&&(i+=ro(o[a]));return i}function ys(e,t,o,i,a){if(!a){var c=Ka(t);o.top+=c,o.bottom+=c}if(i=="line")return o;i||(i="local");var h=Ur(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 b=g.left+(i=="window"?0:Tf());o.left+=b,o.right+=b}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=Ie(e.doc,t.line)),ys(e,i,bf(e,i,t.ch,a),o)}function wr(e,t,o,i,a,c){i=i||Ie(e.doc,t.line),a||(a=ai(e,i));function h(re,ce){var xe=Nr(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),b=t.ch,S=t.sticky;if(b>=i.text.length?(b=i.text.length,S="before"):b<=0&&(b=0,S="after"),!g)return h(S=="before"?b-1:b,S=="before");function M(re,ce,xe){var Te=g[ce],Ee=Te.level==1;return h(xe?re-1:re,Ee!=xe)}var I=je(g,b,S),Y=Je,U=M(b,I,S=="before");return Y!=null&&(U.other=M(b,Y,S!="before")),U}function kf(e,t){var o=0;t=Me(e.doc,t),e.options.lineWrapping||(o=ui(e.display)*t.ch);var i=Ie(e.doc,t.line),a=Ur(i)+ms(e.display);return{left:o,right:o,top:a,bottom:a+i.height}}function Ua(e,t,o,i,a){var c=pe(e,t,o);return c.xRel=a,i&&(c.outside=i),c}function Ga(e,t,o){var i=e.doc;if(o+=e.display.viewOffset,o<0)return Ua(i.first,0,null,-1,-1);var a=Mr(i,o),c=i.first+i.size-1;if(a>c)return Ua(i.first+i.size-1,Ie(i,c).text.length,null,1,1);t<0&&(t=0);for(var h=Ie(i,a);;){var g=Nv(e,h,a,t,o),b=sv(h,g.ch+(g.xRel>0||g.outside>0?1:0));if(!b)return g;var S=b.find(1);if(S.line==a)return S;h=Ie(i,a=S.line)}}function Ef(e,t,o,i){i-=Ka(t);var a=t.text.length,c=$e(function(h){return Nr(e,o,h-1).bottom<=i},a,0);return a=$e(function(h){return Nr(e,o,h).top>i},c,a),{begin:c,end:a}}function Mf(e,t,o,i){o||(o=ai(e,t));var a=ys(e,t,Nr(e,o,i),"line").top;return Ef(e,t,o,a)}function $a(e,t,o,i){return e.bottom<=o?!1:e.top>o?!0:(i?e.left:e.right)>t}function Nv(e,t,o,i,a){a-=Ur(t);var c=ai(e,t),h=Ka(t),g=0,b=t.text.length,S=!0,M=dt(t,e.doc.direction);if(M){var I=(e.options.lineWrapping?Rv:Iv)(e,t,o,c,M,i,a);S=I.level!=1,g=S?I.from:I.to-1,b=S?I.to:I.from-1}var Y=null,U=null,re=$e(function(We){var ze=Nr(e,c,We);return ze.top+=h,ze.bottom+=h,$a(ze,i,a,!1)?(ze.top<=a&&ze.left<=i&&(Y=We,U=ze),!0):!1},g,b),ce,xe,Te=!1;if(U){var Ee=i-U.left<U.right-i,Pe=Ee==S;re=Y+(Pe?0:1),xe=Pe?"after":"before",ce=Ee?U.left:U.right}else{!S&&(re==b||re==g)&&re++,xe=re==0?"after":re==t.text.length?"before":Nr(e,c,re-(S?1:0)).bottom+h<=a==S?"after":"before";var Ae=wr(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),Ua(o,re,xe,Te,i-ce)}function Iv(e,t,o,i,a,c,h){var g=$e(function(I){var Y=a[I],U=Y.level!=1;return $a(wr(e,pe(o,U?Y.to:Y.from,U?"before":"after"),"line",t,i),c,h,!0)},0,a.length-1),b=a[g];if(g>0){var S=b.level!=1,M=wr(e,pe(o,S?b.from:b.to,S?"after":"before"),"line",t,i);$a(M,c,h,!0)&&M.top>h&&(b=a[g-1])}return b}function Rv(e,t,o,i,a,c,h){var g=Ef(e,t,i,h),b=g.begin,S=g.end;/\s/.test(t.text.charAt(S-1))&&S--;for(var M=null,I=null,Y=0;Y<a.length;Y++){var U=a[Y];if(!(U.from>=S||U.to<=b)){var re=U.level!=1,ce=Nr(e,i,re?Math.min(S,U.to)-1:Math.max(b,U.from)).right,xe=ce<c?c-ce+1e9:ce-c;(!M||I>xe)&&(M=U,I=xe)}}return M||(M=a[a.length-1]),M.from<b&&(M={from:b,to:M.to,level:M.level}),M.to>S&&(M={from:M.from,to:S,level:M.level}),M}var Nn;function li(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Nn==null){Nn=O("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Nn.appendChild(document.createTextNode("x")),Nn.appendChild(O("br"));Nn.appendChild(document.createTextNode("x"))}k(e.measure,Nn);var o=Nn.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),ee(e.measure),o||1}function ui(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 Ya(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:Xa(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:o,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function Xa(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Af(e){var t=li(e.display),o=e.options.lineWrapping,i=o&&Math.max(5,e.display.scroller.clientWidth/ui(e.display)-3);return function(a){if(tn(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 Va(e){var t=e.doc,o=Af(e);t.iter(function(i){var a=o(i);a!=i.height&&_t(i,a)})}function In(e,t,o,i){var a=e.display;if(!o&&_r(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 b=Ga(e,c,h),S;if(i&&b.xRel>0&&(S=Ie(e.doc,b.line).text).length==b.ch){var M=Ge(S,S.length,e.options.tabSize)-S.length;b=pe(b.line,Math.max(0,Math.round((c-mf(e.display).left)/ui(e.display))-M))}return b}function Rn(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 $t(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)Kr&&Da(e.doc,t)<a.viewTo&&nn(e);else if(o<=a.viewFrom)Kr&&af(e.doc,o+i)>a.viewFrom?nn(e):(a.viewFrom+=i,a.viewTo+=i);else if(t<=a.viewFrom&&o>=a.viewTo)nn(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):nn(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):nn(e)}else{var g=xs(e,t,t,-1),b=xs(e,o,o+i,1);g&&b?(a.view=a.view.slice(0,g.index).concat(gs(e,g.lineN,b.lineN)).concat(a.view.slice(b.index)),a.viewTo+=i):nn(e)}var S=a.externalMeasured;S&&(o<S.lineN?S.lineN+=i:t<S.lineN+S.size&&(a.externalMeasured=null))}function rn(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[Rn(e,t)];if(c.node!=null){var h=c.changes||(c.changes=[]);ae(h,o)==-1&&h.push(o)}}}function nn(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=Rn(e,t),c,h=e.display.view;if(!Kr||o==e.doc.first+e.doc.size)return{index:a,lineN:o};for(var g=e.display.viewFrom,b=0;b<a;b++)g+=h[b].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(;Da(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 Dv(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(Rn(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,Rn(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 io(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 b=o.sel.ranges[g];if(!(b.from().line>=e.display.viewTo||b.to().line<e.display.viewFrom)){var S=b.empty();if(h){var M=h(e,b);M&&Ja(e,M,a)}else(S||e.options.showCursorWhenSelecting)&&Ja(e,b.head,a);S||Fv(e,b,c)}}return i}function Ja(e,t,o){var i=wr(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 Fv(e,t,o){var i=e.display,a=e.doc,c=document.createDocumentFragment(),h=mf(e.display),g=h.left,b=Math.max(i.sizerWidth,Ln(e)-i.sizer.offsetLeft)-h.right,S=a.direction=="ltr";function M(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?b-Pe:We)+`px;
10
- height: `+(ze-Ae)+"px"))}function I(Pe,Ae,We){var ze=Ie(a,Pe),Ze=ze.text.length,at,Mt;function ht(St,Vt){return bs(e,pe(Pe,St),"div",ze,Vt)}function tr(St,Vt,It){var Tt=Mf(e,ze,null,St),Ct=Vt=="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,Ct)[Ct]}var Xt=dt(ze,a.direction);return it(Xt,Ae||0,We==null?Ze:We,function(St,Vt,It,Tt){var Ct=It=="ltr",vt=ht(St,Ct?"left":"right"),Jt=ht(Vt-1,Ct?"right":"left"),Si=Ae==null&&St==0,fn=We==null&&Vt==Ze,Ft=Tt==0,Ir=!Xt||Tt==Xt.length-1;if(Jt.top-vt.top<=3){var At=(S?Si:fn)&&Ft,wl=(S?fn:Si)&&Ir,Xr=At?g:(Ct?vt:Jt).left,Bn=wl?b:(Ct?Jt:vt).right;M(Xr,vt.top,Bn-Xr,vt.bottom)}else{var Wn,Kt,Ci,Sl;Ct?(Wn=S&&Si&&Ft?g:vt.left,Kt=S?b:tr(St,It,"before"),Ci=S?g:tr(Vt,It,"after"),Sl=S&&fn&&Ir?b:Jt.right):(Wn=S?tr(St,It,"before"):g,Kt=!S&&Si&&Ft?b:vt.right,Ci=!S&&fn&&Ir?g:Jt.left,Sl=S?tr(Vt,It,"after"):b),M(Wn,vt.top,Kt-Wn,vt.bottom),vt.bottom<Jt.top&&M(g,vt.bottom,null,Jt.top),M(Ci,Jt.top,Sl-Ci,Jt.bottom)}(!at||ws(vt,at)<0)&&(at=vt),ws(Jt,at)<0&&(at=Jt),(!Mt||ws(vt,Mt)<0)&&(Mt=vt),ws(Jt,Mt)<0&&(Mt=Jt)}),{start:at,end:Mt}}var Y=t.from(),U=t.to();if(Y.line==U.line)I(Y.line,Y.ch,U.ch);else{var re=Ie(a,Y.line),ce=Ie(a,U.line),xe=xr(re)==xr(ce),Te=I(Y.line,Y.ch,xe?re.text.length+1:null).end,Ee=I(U.line,xe?0:null,U.ch).start;xe&&(Te.top<Ee.top-2?(M(Te.right,Te.top,null,Te.bottom),M(g,Ee.top,Ee.left,Ee.bottom)):M(Te.right,Te.top,Ee.left-Te.right,Te.bottom)),Te.bottom<Ee.top&&M(g,Te.bottom,null,Ee.top)}o.appendChild(c)}function Za(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()||fi(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||qa(e))}function Qa(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&fi(e))},100)}function qa(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(),y&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Za(e))}function fi(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],b=e.options.lineWrapping,S=void 0,M=0;if(!g.hidden){if(a+=g.line.height,p&&m<8){var I=g.node.offsetTop+g.node.offsetHeight;S=I-o,o=I}else{var Y=g.node.getBoundingClientRect();S=Y.bottom-Y.top,!b&&g.text.firstChild&&(M=g.text.firstChild.getBoundingClientRect().right-Y.left-1)}var U=g.line.height-S;if((U>.005||U<-.005)&&(a<i&&(c-=U),_t(g.line,S),Rf(g.line),g.rest))for(var re=0;re<g.rest.length;re++)Rf(g.rest[re]);if(M>e.display.sizerWidth){var ce=Math.ceil(M/ui(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=Mr(t,i),h=Mr(t,a);if(o&&o.ensure){var g=o.ensure.from.line,b=o.ensure.to.line;g<c?(c=g,h=Mr(t,Ur(Ie(t,g))+e.wrapper.clientHeight)):Math.min(b,t.lastLine())>=h&&(c=Mr(t,Ur(Ie(t,b))-e.wrapper.clientHeight),h=b)}return{from:c,to:Math.max(h,c+1)}}function zv(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&&!D){var c=O("div","\u200B",null,`position: absolute;
11
- top: `+(t.top-o.viewOffset-ms(e.display))+`px;
12
- height: `+(t.bottom-t.top+Lr(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 Hv(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=wr(e,t),b=!o||o==t?g:wr(e,o);a={left:Math.min(g.left,b.left),top:Math.min(g.top,b.top)-i,right:Math.max(g.left,b.left),bottom:Math.max(g.bottom,b.bottom)+i};var S=_a(e,a),M=e.doc.scrollTop,I=e.doc.scrollLeft;if(S.scrollTop!=null&&(so(e,S.scrollTop),Math.abs(e.doc.scrollTop-M)>1&&(h=!0)),S.scrollLeft!=null&&(Dn(e,S.scrollLeft),Math.abs(e.doc.scrollLeft-I)>1&&(h=!0)),!h)break}return a}function Bv(e,t){var o=_a(e,t);o.scrollTop!=null&&so(e,o.scrollTop),o.scrollLeft!=null&&Dn(e,o.scrollLeft)}function _a(e,t){var o=e.display,i=li(e.display);t.top<0&&(t.top=0);var a=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:o.scroller.scrollTop,c=Wa(e),h={};t.bottom-t.top>c&&(t.bottom=t.top+c);var g=e.doc.height+Ba(o),b=t.top<i,S=t.bottom>g-i;if(t.top<a)h.scrollTop=b?0:t.top;else if(t.bottom>a+c){var M=Math.min(t.top,(S?g:t.bottom)-c);M!=a&&(h.scrollTop=M)}var I=e.options.fixedGutter?0:o.gutters.offsetWidth,Y=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:o.scroller.scrollLeft-I,U=Ln(e)-o.gutters.offsetWidth,re=t.right-t.left>U;return re&&(t.right=t.left+U),t.left<10?h.scrollLeft=0:t.left<Y?h.scrollLeft=Math.max(0,t.left+I-(re?0:10)):t.right>U+Y-3&&(h.scrollLeft=t.right+(re?0:10)-U),h}function el(e,t){t!=null&&(Ts(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ci(e){Ts(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function oo(e,t,o){(t!=null||o!=null)&&Ts(e),t!=null&&(e.curOp.scrollLeft=t),o!=null&&(e.curOp.scrollTop=o)}function Wv(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=_a(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});oo(e,a.scrollLeft,a.scrollTop)}function so(e,t){Math.abs(e.doc.scrollTop-t)<2||(u||rl(e,{top:t}),Ff(e,t,!0),u&&rl(e),uo(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 Dn(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 ao(e){var t=e.display,o=t.gutters.offsetWidth,i=Math.round(e.doc.height+Ba(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+Lr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:o}}var Fn=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")};Fn.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}},Fn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Fn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Fn.prototype.zeroWidthHack=function(){var e=B&&!j?"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},Fn.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)},Fn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var lo=function(){};lo.prototype.update=function(){return{bottom:0,right:0}},lo.prototype.setScrollLeft=function(){},lo.prototype.setScrollTop=function(){},lo.prototype.clear=function(){};function di(e,t){t||(t=ao(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,ao(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:Fn,null:lo};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"?Dn(e,t):so(e,t)},e),e.display.scrollbars.addClass&&se(e.display.wrapper,e.display.scrollbars.addClass)}var jv=0;function zn(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:++jv,markArrays:null},yv(e.curOp)}function Hn(e){var t=e.curOp;t&&xv(t,function(o){for(var i=0;i<o.ops.length;i++)o.ops[i].cm.curOp=null;Kv(o)})}function Kv(e){for(var t=e.ops,o=0;o<t.length;o++)Uv(t[o]);for(var i=0;i<t.length;i++)Gv(t[i]);for(var a=0;a<t.length;a++)$v(t[a]);for(var c=0;c<t.length;c++)Yv(t[c]);for(var h=0;h<t.length;h++)Xv(t[h])}function Uv(e){var t=e.cm,o=t.display;Jv(t),e.updateMaxLine&&za(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 Gv(e){e.updatedDisplay=e.mustUpdate&&tl(e.cm,e.update)}function $v(e){var t=e.cm,o=t.display;e.updatedDisplay&&Ss(t),e.barMeasure=ao(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+Lr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,o.sizer.offsetLeft+e.adjustWidthTo-Ln(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=o.input.prepareSelection())}function Yv(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Dn(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)&&di(t,e.barMeasure),e.updatedDisplay&&il(t,e.barMeasure),e.selectionChanged&&Za(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),o&&If(e.cm)}function Xv(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&&Dn(t,e.scrollLeft,!0,!0),e.scrollToPos){var a=Hv(t,Me(i,e.scrollToPos.from),Me(i,e.scrollToPos.to),e.scrollToPos.margin);zv(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 b=0;b<h.length;++b)h[b].lines.length&&ve(h[b],"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();zn(e);try{return t()}finally{Hn(e)}}function kt(e,t){return function(){if(e.curOp)return t.apply(e,arguments);zn(e);try{return t.apply(e,arguments)}finally{Hn(e)}}}function jt(e){return function(){if(this.curOp)return e.apply(this,arguments);zn(this);try{return e.apply(this,arguments)}finally{Hn(this)}}}function Et(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);zn(t);try{return e.apply(this,arguments)}finally{Hn(t)}}}function uo(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,Ve(Vv,e))}function Vv(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var o=+new Date+e.options.workTime,i=qi(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,b=Yu(e,c,i,!0);g&&(i.state=g),c.styles=b.styles;var S=c.styleClasses,M=b.classes;M?c.styleClasses=M:S&&(c.styleClasses=null);for(var I=!h||h.length!=c.styles.length||S!=M&&(!S||!M||S.bgClass!=M.bgClass||S.textClass!=M.textClass),Y=0;!I&&Y<h.length;++Y)I=h[Y]!=c.styles[Y];I&&a.push(i.line),c.stateAfter=i.save(),i.nextLine()}else c.text.length<=e.options.maxHighlightLength&&La(e,c.text,i),c.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>o)return uo(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++)rn(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=Ln(e),this.force=o,this.dims=Ya(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 Jv(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Lr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Lr(e)+"px",t.scrollbarsClipped=!0)}function Zv(e){if(e.hasFocus())return null;var t=$();if(!t||!W(e.display.lineDiv,t))return null;var o={activeElt:t};if(window.getSelection){var i=window.getSelection();i.anchorNode&&i.extend&&W(e.display.lineDiv,i.anchorNode)&&(o.anchorNode=i.anchorNode,o.anchorOffset=i.anchorOffset,o.focusNode=i.focusNode,o.focusOffset=i.focusOffset)}return o}function Qv(e){if(!(!e||!e.activeElt||e.activeElt==$())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&W(document.body,e.anchorNode)&&W(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 tl(e,t){var o=e.display,i=e.doc;if(t.editorIsHidden)return nn(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)&&(nn(e),t.dims=Ya(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)),Kr&&(c=Da(e.doc,c),h=af(e.doc,h));var g=c!=o.viewFrom||h!=o.viewTo||o.lastWrapHeight!=t.wrapperHeight||o.lastWrapWidth!=t.wrapperWidth;Dv(e,c,h),o.viewOffset=Ur(Ie(e.doc,o.viewFrom)),e.display.mover.style.top=o.viewOffset+"px";var b=Lf(e);if(!g&&b==0&&!t.force&&o.renderedView==o.view&&(o.updateLineNumbers==null||o.updateLineNumbers>=o.viewTo))return!1;var S=Zv(e);return b>4&&(o.lineDiv.style.display="none"),qv(e,o.updateLineNumbers,t.dims),b>4&&(o.lineDiv.style.display=""),o.renderedView=o.view,Qv(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,uo(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==Ln(e)){if(o&&o.top!=null&&(o={top:Math.min(e.doc.height+Ba(e.display)-Wa(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(!tl(e,t))break;Ss(e);var a=ao(e);io(e),di(e,a),il(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 rl(e,t){var o=new Ps(e,t);if(tl(e,o)){Ss(e),Wf(e,o);var i=ao(e);io(e),di(e,i),il(e,i),o.finish()}}function qv(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 y&&B&&e.display.currentWheelTarget==re?re.style.display="none":re.parentNode.removeChild(re),ce}for(var b=i.view,S=i.viewFrom,M=0;M<b.length;M++){var I=b[M];if(!I.hidden)if(!I.node||I.node.parentNode!=c){var Y=Pv(e,I,S,o);c.insertBefore(Y,h)}else{for(;h!=I.node;)h=g(h);var U=a&&t!=null&&t<=S&&I.lineNumber;I.changes&&(ae(I.changes,"gutter")>-1&&(U=!1),df(e,I,S,o)),U&&(ee(I.lineNumber),I.lineNumber.appendChild(document.createTextNode(Qi(e.options,S)))),h=I.node.nextSibling}S+=I.size}for(;h;)h=g(h)}function nl(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Ot(e,"gutterChanged",e)}function il(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+Lr(e)+"px"}function jf(e){var t=e.display,o=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var i=Xa(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 b=0;b<g.length;b++)g[b].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=Qi(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",nl(e.display),!0}return!1}function ol(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",nl(e)}function fo(e){Uf(e.display),$t(e),jf(e)}function _v(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),!y&&!(u&&L)&&(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=ol(i.gutters,i.lineNumbers),Uf(a),o.init(a)}var Os=0,$r=null;p?$r=-.53:u?$r=15:C?$r=-.7:E&&($r=-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 eg(e){var t=Gf(e);return t.x*=$r,t.y*=$r,t}function $f(e,t){var o=Gf(t),i=o.x,a=o.y,c=$r;t.deltaMode===0&&(i=t.deltaX,a=t.deltaY,c=1);var h=e.display,g=h.scroller,b=g.scrollWidth>g.clientWidth,S=g.scrollHeight>g.clientHeight;if(!!(i&&b||a&&S)){if(a&&B&&y){e:for(var M=t.target,I=h.view;M!=g;M=M.parentNode)for(var Y=0;Y<I.length;Y++)if(I[Y].node==M){e.display.currentWheelTarget=M;break e}}if(i&&!u&&!P&&c!=null){a&&S&&so(e,Math.max(0,g.scrollTop+a*c)),Dn(e,Math.max(0,g.scrollLeft+i*c)),(!a||a&&S)&&Pt(t),h.wheelStartX=null;return}if(a&&c!=null){var U=a*c,re=e.doc.scrollTop,ce=re+h.wrapper.clientHeight;U<0?re=Math.max(0,re+U-50):ce=Math.min(e.doc.height,ce+U+50),rl(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&&($r=($r*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(!F(o.anchor,i.anchor)||!F(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 Sr(e,t,o){var i=e&&e.options.selectionsMayTouch,a=t[o];t.sort(function(Y,U){return T(Y.from(),U.from())}),o=ae(t,a);for(var c=1;c<t.length;c++){var h=t[c],g=t[c-1],b=T(g.to(),h.from());if(i&&!h.empty()?b>0:b>=0){var S=Ue(g.from(),h.from()),M=ye(g.to(),h.to()),I=g.empty()?h.from()==h.head:g.from()==g.head;c<=o&&--o,t.splice(--c,2,new rt(I?M:S,I?S:M))}}return new ar(t,o)}function on(e,t){return new ar([new rt(e,t||e)],0)}function sn(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 sn(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+=sn(t).ch-t.to.ch),pe(o,i)}function sl(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 Sr(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 tg(e,t,o){for(var i=[],a=pe(e.first,0),c=a,h=0;h<t.length;h++){var g=t[h],b=Xf(g.from,a,c),S=Xf(sn(g),a,c);if(a=g.to,c=S,o=="around"){var M=e.sel.ranges[h],I=T(M.head,M.anchor)<0;i[h]=new rt(I?S:b,I?b:S)}else i[h]=new rt(b,b)}return new ar(i,e.sel.primIndex)}function al(e){e.doc.mode=ni(e.options,e.doc.modeOption),co(e)}function co(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,uo(e,100),e.state.modeGen++,e.curOp&&$t(e)}function Vf(e,t){return t.from.ch==0&&t.to.ch==0&&X(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ll(e,t,o,i){function a(Ee){return o?o[Ee]:null}function c(Ee,Pe,Ae){uv(Ee,Pe,Ae,i),Ot(Ee,"change",Ee,t)}function h(Ee,Pe){for(var Ae=[],We=Ee;We<Pe;++We)Ae.push(new oi(S[We],a(We),i));return Ae}var g=t.from,b=t.to,S=t.text,M=Ie(e,g.line),I=Ie(e,b.line),Y=X(S),U=a(S.length-1),re=b.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(I,I.text,U),re&&e.remove(g.line,re),ce.length&&e.insert(g.line,ce)}else if(M==I)if(S.length==1)c(M,M.text.slice(0,g.ch)+Y+M.text.slice(b.ch),U);else{var xe=h(1,S.length-1);xe.push(new oi(Y+M.text.slice(b.ch),U,i)),c(M,M.text.slice(0,g.ch)+S[0],a(0)),e.insert(g.line+1,xe)}else if(S.length==1)c(M,M.text.slice(0,g.ch)+S[0]+I.text.slice(b.ch),a(0)),e.remove(g.line+1,re);else{c(M,M.text.slice(0,g.ch)+S[0],a(0)),c(I,Y+I.text.slice(b.ch),U);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 an(e,t,o){function i(a,c,h){if(a.linked)for(var g=0;g<a.linked.length;++g){var b=a.linked[g];if(b.doc!=c){var S=h&&b.sharedHist;o&&!S||(t(b.doc,S),i(b.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,Va(e),al(e),Zf(e),e.options.direction=t.direction,e.options.lineWrapping||za(e),e.options.mode=t.modeOption,$t(e)}function Zf(e){(e.doc.direction=="rtl"?se:Q)(e.display.lineDiv,"CodeMirror-rtl")}function rg(e){er(e,function(){Zf(e),$t(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 ul(e,t){var o={from:fe(t.from),to:sn(t),text:Er(e,t.from,t.to)};return _f(e,o,t.from.line,t.to.line+1),an(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 ng(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=ng(a,a.lastOp==i)))g=X(h.changes),T(t.from,t.to)==0&&T(t.from,g.to)==0?g.to=sn(t):h.changes.push(ul(e,t));else{var b=X(a.done);for((!b||!b.ranges)&&Es(e.sel,a.done),h={changes:[ul(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 ig(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 og(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||ig(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 sg(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 ag(e,t){var o=t["spans_"+e.id];if(!o)return null;for(var i=[],a=0;a<t.text.length;++a)i.push(sg(o[a]));return i}function ec(e,t){var o=ag(e,t),i=Ia(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 b=h[g],S=0;S<c.length;++S)if(c[S].marker==b.marker)continue e;c.push(b)}}else h&&(o[a]=h)}return o}function hi(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 b=0;b<h.length;++b){var S=h[b],M=void 0;if(g.push({from:S.from,to:S.to,text:S.text}),t)for(var I in S)(M=I.match(/^spans_(\d+)$/))&&ae(t,Number(M[1]))>-1&&(X(g)[I]=S[I],delete S[I])}}return i}function fl(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([fl(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]=fl(e.sel.ranges[c],t[c],null,a);var h=Sr(e.cm,i,e.sel.primIndex);Dt(e,h,o)}function cl(e,t,o,i){var a=e.sel.ranges.slice(0);a[t]=o,Dt(e,Sr(e.cm,a,e.sel.primIndex),i)}function rc(e,t,o,i){Dt(e,on(t,o),i)}function lg(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?Sr(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),og(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=lg(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"&&ci(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],b=Ls(e,h.anchor,g&&g.anchor,o,i),S=Ls(e,h.head,g&&g.head,o,i);(a||b!=h.anchor||S!=h.head)&&(a||(a=t.ranges.slice(0,c)),a[c]=new rt(b,S))}return a?Sr(e.cm,a,t.primIndex):t}function pi(e,t,o,i,a){var c=Ie(e,t.line);if(c.markedSpans)for(var h=0;h<c.markedSpans.length;++h){var g=c.markedSpans[h],b=g.marker,S="selectLeft"in b?!b.selectLeft:b.inclusiveLeft,M="selectRight"in b?!b.selectRight:b.inclusiveRight;if((g.from==null||(S?g.from<=t.ch:g.from<t.ch))&&(g.to==null||(M?g.to>=t.ch:g.to>t.ch))){if(a&&(ve(b,"beforeCursorEnter"),b.explicitlyCleared))if(c.markedSpans){--h;continue}else break;if(!b.atomic)continue;if(o){var I=b.find(i<0?1:-1),Y=void 0;if((i<0?M:S)&&(I=ac(e,I,-i,I&&I.line==t.line?c:null)),I&&I.line==t.line&&(Y=T(I,o))&&(i<0?Y<0:Y>0))return pi(e,I,t,i,a)}var U=b.find(i<0?-1:1);return(i<0?S:M)&&(U=ac(e,U,i,U.line==t.line?c:null)),U?pi(e,U,t,i,a):null}}return t}function Ls(e,t,o,i,a){var c=i||1,h=pi(e,t,o,c,a)||!a&&pi(e,t,o,c,!0)||pi(e,t,o,-c,a)||!a&&pi(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||Ie(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 vi(e,t,o){if(e.cm){if(!e.cm.curOp)return kt(e.cm,vi)(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&&ov(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=sl(e,t);qf(e,t,o,e.cm?e.cm.curOp.id:NaN),ho(e,t,o,Ia(e,t));var i=[];an(e,function(a,c){!c&&ae(i,a.history)==-1&&(pc(a.history,t),i.push(a.history)),ho(a,t,null,Ia(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,b=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,b),o&&!c.equals(e.sel)){Dt(e,c,{clearRedo:!1});return}h=c}else if(i){g.push(c);return}else break;var M=[];Es(h,b),b.push({changes:M,generation:a.generation}),a.generation=c.generation||++a.maxGeneration;for(var I=et(e,"beforeChange")||e.cm&&et(e.cm,"beforeChange"),Y=function(ce){var xe=c.changes[ce];if(xe.origin=t,I&&!uc(e,xe,!1))return g.length=0,{};M.push(ul(e,xe));var Te=ce?sl(e,xe):X(g);ho(e,xe,Te,ec(e,xe)),!ce&&e.cm&&e.cm.scrollIntoView({from:xe.from,to:sn(xe)});var Ee=[];an(e,function(Pe,Ae){!Ae&&ae(Ee,Pe.history)==-1&&(pc(Pe.history,xe),Ee.push(Pe.history)),ho(Pe,xe,null,ec(Pe,xe))})},U=c.changes.length-1;U>=0;--U){var re=Y(U);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)){$t(e.cm,e.first,e.first-t,t);for(var o=e.cm.display,i=o.viewFrom;i<o.viewTo;i++)rn(e.cm,i,"gutter")}}function ho(e,t,o,i){if(e.cm&&!e.cm.curOp)return kt(e.cm,ho)(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,Ie(e,c).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Er(e,t.from,t.to),o||(o=sl(e,t)),e.cm?ug(e.cm,t,i):ll(e,t,i),As(e,o,Re),e.cantEdit&&Ls(e,pe(e.firstLine(),0))&&(e.cantEdit=!1)}}function ug(e,t,o){var i=e.doc,a=e.display,c=t.from,h=t.to,g=!1,b=c.line;e.options.lineWrapping||(b=tt(xr(Ie(i,c.line))),i.iter(b,h.line+1,function(U){if(U==a.maxLine)return g=!0,!0})),i.sel.contains(t.from,t.to)>-1&&qe(e),ll(i,t,o,Af(e)),e.options.lineWrapping||(i.iter(b,c.line+t.text.length,function(U){var re=vs(U);re>a.maxLineLength&&(a.maxLine=U,a.maxLineLength=re,a.maxLineChanged=!0,g=!1)}),g&&(e.curOp.updateMaxLine=!0)),qp(i,c.line),uo(e,400);var S=t.text.length-(h.line-c.line)-1;t.full?$t(e):c.line==h.line&&t.text.length==1&&!Vf(e.doc,t)?rn(e,c.line,"text"):$t(e,c.line,h.line+1,S);var M=et(e,"changes"),I=et(e,"change");if(I||M){var Y={from:c,to:h,text:t.text,removed:t.removed,origin:t.origin};I&&Ot(e,"change",e,Y),M&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Y)}e.display.selForContextMenu=null}function gi(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)),vi(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 b=0;b<c.changes.length;++b){var S=c.changes[b];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 po(e,t,o,i){var a=t,c=t;return typeof t=="number"?c=Ie(e,Qe(e,t)):a=tt(t),a==null?null:(i(c,a)&&e.cm&&rn(e.cm,a,o),c)}function vo(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}vo.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,fv(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 go(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}go.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 vo))){var g=[];this.collapse(g),this.children=[new vo(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 b=new vo(a.lines.slice(g,g+=25));a.height-=b.height,this.children.splice(++i,0,b),b.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 go(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 go(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 mo=function(e,t,o){if(o)for(var i in o)o.hasOwnProperty(i)&&(this[i]=o[i]);this.doc=e,this.node=t};mo.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=ro(this);_t(o,Math.max(0,o.height-c)),e&&(er(e,function(){vc(e,o,-c),rn(e,i,"widget")}),Ot(e,"lineWidgetCleared",e,this,i))}},mo.prototype.changed=function(){var e=this,t=this.height,o=this.doc.cm,i=this.line;this.height=null;var a=ro(this)-t;!a||(tn(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(mo);function vc(e,t,o){Ur(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&el(e,o)}function fg(e,t,o,i){var a=new mo(e,o,i),c=e.cm;return c&&a.noHScroll&&(c.display.alignWidgets=!0),po(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&&!tn(e,h)){var b=Ur(h)<e.scrollTop;_t(h,h.height+ro(a)),b&&el(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,ln=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++gc};ln.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&zn(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=_i(h.markedSpans,this);e&&!this.collapsed?rn(e,tt(h),"text"):e&&(g.to!=null&&(a=tt(h)),g.from!=null&&(i=tt(h))),h.markedSpans=tv(h.markedSpans,g),g.from==null&&this.collapsed&&!tn(this.doc,h)&&e&&_t(h,li(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var b=0;b<this.lines.length;++b){var S=xr(this.lines[b]),M=vs(S);M>e.display.maxLineLength&&(e.display.maxLine=S,e.display.maxLineLength=M,e.display.maxLineChanged=!0)}i!=null&&e&&this.collapsed&&$t(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&&Hn(e),this.parent&&this.parent.clear()}},ln.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=_i(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}},ln.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=ja(i,c);if(h&&(Sf(h),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!tn(o.doc,a)&&o.height!=null){var g=o.height;o.height=null;var b=ro(o)-g;b&&_t(a,a.height+b)}Ot(i,"markerChanged",i,e)})},ln.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)},ln.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(ln);function mi(e,t,o,i,a){if(i&&i.shared)return cg(e,t,o,i,a);if(e.cm&&!e.cm.curOp)return kt(e.cm,mi)(e,t,o,i,a);var c=new ln(e,a),h=T(t,o);if(i&&Le(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");ev()}c.addToHistory&&qf(e,{from:t,to:o,origin:"markText"},e.sel,NaN);var g=t.line,b=e.cm,S;if(e.iter(g,o.line+1,function(I){b&&c.collapsed&&!b.options.lineWrapping&&xr(I)==b.display.maxLine&&(S=!0),c.collapsed&&g!=t.line&&_t(I,0),rv(I,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(I){tn(e,I)&&_t(I,0)}),c.clearOnEnter&&Fe(c,"beforeCursorEnter",function(){return c.clear()}),c.readOnly&&(_p(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),c.collapsed&&(c.id=++gc,c.atomic=!0),b){if(S&&(b.curOp.updateMaxLine=!0),c.collapsed)$t(b,t.line,o.line+1);else if(c.className||c.startStyle||c.endStyle||c.css||c.attributes||c.title)for(var M=t.line;M<=o.line;M++)rn(b,M,"text");c.atomic&&oc(b.doc),Ot(b,"markerAdded",b,c)}return c}var yo=function(e,t){this.markers=e,this.primary=t;for(var o=0;o<e.length;++o)e[o].parent=this};yo.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")}},yo.prototype.find=function(e,t){return this.primary.find(e,t)},qt(yo);function cg(e,t,o,i,a){i=Le(i),i.shared=!1;var c=[mi(e,t,o,i,a)],h=c[0],g=i.widgetNode;return an(e,function(b){g&&(i.widgetNode=g.cloneNode(!0)),c.push(mi(b,Me(b,t),Me(b,o),i,a));for(var S=0;S<b.linked.length;++S)if(b.linked[S].isParent)return;h=X(c)}),new yo(c,h)}function mc(e){return e.findMarks(pe(e.first,0),e.clipPos(pe(e.lastLine())),function(t){return t.parent})}function dg(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=mi(e,c,h,i.primary,i.primary.type);i.markers.push(g),g.parent=i}}}function hg(e){for(var t=function(i){var a=e[i],c=[a.primary.doc];an(a.primary.doc,function(b){return c.push(b)});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 pg=0,Yt=function(e,t,o,i,a){if(!(this instanceof Yt))return new Yt(e,t,o,i,a);o==null&&(o=0),go.call(this,[new vo([new oi("",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=on(c),this.history=new ks(null),this.id=++pg,this.modeOption=t,this.lineSep=i,this.direction=a=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ll(this,{from:c,to:c,text:e}),Dt(this,on(c),Re)};Yt.prototype=Ce(go.prototype,{constructor:Yt,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=Zi(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;vi(this,{from:t,to:pe(o,Ie(this,o).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&oo(this.cm,0,0),Dt(this,on(t),Re)}),replaceRange:function(e,t,o,i){t=Me(this,t),o=o?Me(this,o):t,gi(this,e,t,o,i)},getRange:function(e,t,o){var i=Er(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(An(this,e))return Ie(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ie(this,e)),xr(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,Sr(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,Sr(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=Er(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=Er(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"&&tg(this,i,t),b=i.length-1;b>=0;b--)vi(this,i[b]);g?nc(this,g):this.cm&&ci(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),an(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:hi(this.history.done),undone:hi(this.history.undone)}},setHistory:function(e){var t=this.history=new ks(this.history);t.done=hi(e.done.slice(0),null,!0),t.undone=hi(e.undone.slice(0),null,!0)},setGutterMarker:Et(function(e,t,o){return po(this,e,"gutter",function(i){var a=i.gutterMarkers||(i.gutterMarkers={});return a[t]=o,!o&&q(a)&&(i.gutterMarkers=null),!0})}),clearGutter:Et(function(e){var t=this;this.iter(function(o){o.gutterMarkers&&o.gutterMarkers[e]&&po(t,o,"gutter",function(){return o.gutterMarkers[e]=null,q(o.gutterMarkers)&&(o.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!An(this,e)||(t=e,e=Ie(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 po(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 po(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 fg(this,e,t,o)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,o){return mi(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),mi(this,e,e,o,"bookmark")},findMarksAt:function(e){e=Me(this,e);var t=[],o=Ie(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 b=h[g];!(b.to!=null&&a==e.line&&e.ch>=b.to||b.from==null&&a!=e.line||b.from!=null&&a==t.line&&b.from>=t.ch)&&(!o||o(b.marker))&&i.push(b.marker.parent||b.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 Yt(Zi(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 Yt(Zi(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}],dg(i,mc(this)),i},unlinkDoc:function(e){if(e instanceof ft&&(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),hg(mc(this));break}}if(e.history==this.history){var i=[e.id];an(e,function(a){return i.push(a.id)},!0),e.history=new ks(null),e.history.done=hi(this.history.done,i),e.history.undone=hi(this.history.undone,i)}},iterLinkedDocs:function(e){an(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Yi(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&&rg(this.cm))})}),Yt.prototype.eachLine=Yt.prototype.iter;var yc=0;function vg(e){var t=this;if(bc(t),!(Be(t,e)||Gr(t.display,e))){Pt(e),p&&(yc=+new Date);var o=In(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 U={from:o,to:o,text:t.doc.splitLines(c.filter(function(re){return re!=null}).join(t.doc.lineSeparator())),origin:"paste"};vi(t.doc,U),nc(t.doc,on(Me(t.doc,o),Me(t.doc,sn(U))))})()},b=function(U,re){if(t.options.allowDropFileTypes&&ae(t.options.allowDropFileTypes,U.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(U)},S=0;S<i.length;S++)b(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 M=e.dataTransfer.getData("Text");if(M){var I;if(t.state.draggingText&&!t.state.draggingText.copy&&(I=t.listSelections()),As(t.doc,on(o,o)),I)for(var Y=0;Y<I.length;++Y)gi(t.doc,"",I[Y].anchor,I[Y].head,"drag");t.replaceSelection(M,"around","paste"),t.display.input.focus()}}catch{}}}}function gg(e,t){if(p&&(!e.state.draggingText||+new Date-yc<100)){Mn(t);return}if(!(Be(e,t)||Gr(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!E)){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 mg(e,t){var o=In(e,t);if(!!o){var i=document.createDocumentFragment();Ja(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 yg(){wc||(bg(),wc=!0)}function bg(){var e;Fe(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,xc(xg)},100))}),Fe(window,"blur",function(){return xc(fi)})}function xg(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var un={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"},bo=0;bo<10;bo++)un[bo+48]=un[bo+96]=String(bo);for(var Is=65;Is<=90;Is++)un[Is]=String.fromCharCode(Is);for(var xo=1;xo<=12;xo++)un[xo+111]=un[xo+63235]="F"+xo;var Yr={};Yr.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"},Yr.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"},Yr.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"},Yr.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"]},Yr.default=B?Yr.macDefault:Yr.pcDefault;function wg(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 Sg(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(" "),wg),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 b=t[g];if(!b)t[g]=h;else if(b!=h)throw new Error("Inconsistent bindings for "+g)}delete e[o]}for(var S in t)e[S]=t[S];return e}function yi(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 yi(e,t.fallthrough,o,i);for(var c=0;c<t.fallthrough.length;c++){var h=yi(e,t.fallthrough[c],o,i);if(h)return h}}}function Sc(e){var t=typeof e=="string"?e:un[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=un[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"?Yr[e]:e}function bi(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--)gi(e.doc,"",i[g].from,i[g].to,"+delete");ci(e)})}function dl(e,t,o){var i=De(e.text,t+o,o);return i<0||i>e.text.length?null:i}function hl(e,t,o){var i=dl(e,t.ch,o);return i==null?null:new pe(t.line,i,o<0?"after":"before")}function pl(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),b=g?"after":"before",S;if(h.level>0||t.doc.direction=="rtl"){var M=ai(t,o);S=a<0?o.text.length-1:0;var I=Nr(t,M,S).top;S=$e(function(Y){return Nr(t,M,Y).top==I},a<0==(h.level==1)?h.from:h.to-1,S),b=="before"&&(S=dl(o,S,1))}else S=a<0?h.to:h.from;return new pe(i,S,b)}}return new pe(i,a<0?o.text.length:0,a<0?"before":"after")}function Cg(e,t,o,i){var a=dt(t,e.doc.direction);if(!a)return hl(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 hl(t,o,i);var g=function(Te,Ee){return dl(t,Te instanceof pe?Te.ch:Te,Ee)},b,S=function(Te){return e.options.lineWrapping?(b=b||ai(e,t),Mf(e,t,b,Te)):{begin:0,end:t.text.length}},M=S(o.sticky=="before"?g(o,-1):o.ch);if(e.doc.direction=="rtl"||h.level==1){var I=h.level==1==i<0,Y=g(o,I?1:-1);if(Y!=null&&(I?Y<=h.to&&Y<=M.end:Y>=h.from&&Y>=M.begin)){var U=I?"before":"after";return new pe(o.line,Y,U)}}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,M);if(ce)return ce;var xe=i>0?M.end:g(M.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 wo={selectAll:lc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Re)},killLine:function(e){return bi(e,function(t){if(t.empty()){var o=Ie(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 bi(e,function(t){return{from:pe(t.from().line,0),to:Me(e.doc,pe(t.to().line+1,0))}})},delLineLeft:function(e){return bi(e,function(t){return{from:pe(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return bi(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 bi(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 Tg(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=Ge(e.getLine(c.line),c.ch,i);t.push(K(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=Ie(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=Ie(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);ci(e)})},openLine:function(e){return e.replaceSelection(`
15
- `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Pc(e,t){var o=Ie(e.doc,t),i=xr(o);return i!=o&&(t=tt(i)),pl(!0,e,i,t,1)}function Tg(e,t){var o=Ie(e.doc,t),i=av(o);return i!=o&&(t=tt(i)),pl(!0,e,o,t,-1)}function Oc(e,t){var o=Pc(e,t.line),i=Ie(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=wo[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 Pg(e,t,o){for(var i=0;i<e.state.keyMaps.length;i++){var a=yi(t,e.state.keyMaps[i],o,e);if(a)return a}return e.options.extraKeys&&yi(t,e.options.extraKeys,o,e)||yi(t,e.options.keyMap,o,e)}var Og=new ne;function So(e,t,o,i){var a=e.state.keySeq;if(a){if(Sc(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Og.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=Pg(e,t,i);return a=="multi"&&(e.state.keySeq=t),a=="handled"&&Ot(e,"keyHandled",e,t,o),(a=="handled"||a=="multi")&&(Pt(o),Za(e)),!!a}function Ec(e,t){var o=Tc(t,!0);return o?t.shiftKey&&!e.state.keySeq?So(e,"Shift-"+o,t,function(i){return Ds(e,i,!0)})||So(e,o,t,function(i){if(typeof i=="string"?/^go[A-Z]/.test(i):i.motion)return Ds(e,i)}):So(e,o,t,function(i){return Ds(e,i)}):!1}function kg(e,t,o){return So(e,"'"+o+"'",t,function(i){return Ds(e,i,!0)})}var vl=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&&(vl=i?o:null,!i&&o==88&&!us&&(B?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),u&&!B&&!i&&o==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),o==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Eg(t)}}function Eg(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())&&!(Gr(t.display,e)||Be(t,e)||e.ctrlKey&&!e.altKey||B&&e.metaKey)){var o=e.keyCode,i=e.charCode;if(P&&o==vl){vl=null,Pt(e);return}if(!(P&&(!e.which||e.which<10)&&Ec(t,e))){var a=String.fromCharCode(i==null?o:i);a!="\b"&&(kg(t,e,a)||t.display.input.onKeyPress(e))}}}var Mg=400,gl=function(e,t,o){this.time=e,this.pos=t,this.button=o};gl.prototype.compare=function(e,t,o){return this.time+Mg>e&&T(t,this.pos)==0&&o==this.button};var Co,To;function Ag(e,t){var o=+new Date;return To&&To.compare(o,e,t)?(Co=To=null,"triple"):Co&&Co.compare(o,e,t)?(To=new gl(o,e,t),Co=null,"double"):(Co=new gl(o,e,t),To=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,Gr(o,e)){y||(o.scroller.draggable=!1,setTimeout(function(){return o.scroller.draggable=!0},100));return}if(!ml(t,e)){var i=In(t,e),a=ss(e),c=i?Ag(i,a):"single";window.focus(),a==1&&t.state.selectingText&&t.state.selectingText(e),!(i&&Lg(t,a,i,c,e))&&(a==1?i?Ig(t,i,c,e):_r(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 Lg(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,So(e,Cc(c,a),a,function(h){if(typeof h=="string"&&(h=wo[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 Ng(e,t,o){var i=e.getOption("configureMouse"),a=i?i(e,t,o):{};if(a.unit==null){var c=Z?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=B?o.metaKey:o.ctrlKey),a.moveOnDrag==null&&(a.moveOnDrag=!(B?o.altKey:o.ctrlKey)),a}function Ig(e,t,o,i){p?setTimeout(Ve(If,e),0):e.curOp.focus=$();var a=Ng(e,o,i),c=e.doc.sel,h;e.options.dragDrop&&Gi&&!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)?Rg(e,i,t,a):Dg(e,i,t,a)}function Rg(e,t,o,i){var a=e.display,c=!1,h=kt(e,function(S){y&&(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",b),Oe(a.scroller,"drop",h),c||(Pt(S),i.addNew||Ms(e.doc,o,null,null,i.extend),y&&!E||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},b=function(){return c=!0};y&&(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",b),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 Dg(e,t,o,i){p&&Qa(e);var a=e.display,c=e.doc;Pt(t);var h,g,b=c.sel,S=b.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=In(e,t,!0,!0),g=-1;else{var M=Ic(e,o,i.unit);i.extend?h=fl(h,M.anchor,M.head,i.extend):h=M}i.addNew?g==-1?(g=S.length,Dt(c,Sr(e,S.concat([h]),g),{scroll:!1,origin:"*mouse"})):S.length>1&&S[g].empty()&&i.unit=="char"&&!i.extend?(Dt(c,Sr(e,S.slice(0,g).concat(S.slice(g+1)),0),{scroll:!1,origin:"*mouse"}),b=c.sel):cl(c,g,h,ke):(g=0,Dt(c,new ar([h],0),ke),b=c.sel);var I=o;function Y(Pe){if(T(I,Pe)!=0)if(I=Pe,i.unit=="rectangle"){for(var Ae=[],We=e.options.tabSize,ze=Ge(Ie(c,o.line).text,o.ch,We),Ze=Ge(Ie(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 Xt=Ie(c,ht).text,St=Ne(Xt,at,We);at==Mt?Ae.push(new rt(pe(ht,St),pe(ht,St))):Xt.length>St&&Ae.push(new rt(pe(ht,St),pe(ht,Ne(Xt,Mt,We))))}Ae.length||Ae.push(new rt(o,o)),Dt(c,Sr(e,b.ranges.slice(0,g).concat(Ae),g),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Pe)}else{var Vt=h,It=Ic(e,Pe,i.unit),Tt=Vt.anchor,Ct;T(It.anchor,Tt)>0?(Ct=It.head,Tt=Ue(Vt.from(),It.anchor)):(Ct=It.anchor,Tt=ye(Vt.to(),It.head));var vt=b.ranges.slice(0);vt[g]=Fg(e,new rt(Me(c,Tt),Ct)),Dt(c,Sr(e,vt,g),ke)}}var U=a.wrapper.getBoundingClientRect(),re=0;function ce(Pe){var Ae=++re,We=In(e,Pe,!0,i.unit=="rectangle");if(!!We)if(T(We,I)!=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<U.top?-20:Pe.clientY>U.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 Fg(e,t){var o=t.anchor,i=t.head,a=Ie(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 b=h+(g.from==o.ch==(g.level!=1)?0:1);if(b==0||b==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 M=je(c,i.ch,i.sticky),I=M-h||(i.ch-o.ch)*(g.level==1?-1:1);M==b-1||M==b?S=I<0:S=I>0}var Y=c[b+(S?-1:0)],U=S==(Y.level==1),re=U?Y.from:Y.to,ce=U?"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 b=0;b<e.display.gutterSpecs.length;++b){var S=h.gutters.childNodes[b];if(S&&S.getBoundingClientRect().right>=a){var M=Mr(e.doc,c),I=e.display.gutterSpecs[b];return ve(e,o,e,M,I.className,t),nr(t)}}}function ml(e,t){return Rc(e,t,"gutterClick",!0)}function Dc(e,t){Gr(e.display,t)||zg(e,t)||Be(e,t,"contextmenu")||te||e.display.input.onContextMenu(t)}function zg(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-"),no(e)}var xi={toString:function(){return"CodeMirror.Init"}},zc={},Fs={};function Hg(e){var t=e.optionHandlers;function o(i,a,c,h){e.defaults[i]=a,c&&(t[i]=h?function(g,b,S){S!=xi&&c(g,b,S)}:c)}e.defineOption=o,e.Init=xi,o("value","",function(i,a){return i.setValue(a)},!0),o("mode",null,function(i,a){i.doc.modeOption=a,al(i)},!0),o("indentUnit",2,al,!0),o("indentWithTabs",!1),o("smartIndent",!0),o("tabSize",4,function(i){co(i),no(i),$t(i)},!0),o("lineSeparator",null,function(i,a){if(i.doc.lineSep=a,!!a){var c=[],h=i.doc.first;i.doc.iter(function(b){for(var S=0;;){var M=b.text.indexOf(a,S);if(M==-1)break;S=M+a.length,c.push(pe(h,M))}h++});for(var g=c.length-1;g>=0;g--)gi(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!=xi&&i.refresh()}),o("specialCharPlaceholder",hv,function(i){return i.refresh()},!0),o("electricChars",!0),o("inputStyle",L?"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),fo(i)},!0),o("keyMap","default",function(i,a,c){var h=Rs(a),g=c!=xi&&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,Wg,!0),o("gutters",[],function(i,a){i.display.gutterSpecs=ol(a,i.options.lineNumbers),fo(i)},!0),o("fixedGutter",!0,function(i,a){i.display.gutters.style.left=a?Xa(i.display)+"px":"0",i.refresh()},!0),o("coverGutterNextToScrollbar",!1,function(i){return di(i)},!0),o("scrollbarStyle","native",function(i){Bf(i),di(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=ol(i.options.gutters,a),fo(i)},!0),o("firstLineNumber",1,fo,!0),o("lineNumberFormatter",function(i){return i},fo,!0),o("showCursorWhenSelecting",!1,io,!0),o("resetSelectionOnContextMenu",!0),o("lineWiseCopyCut",!0),o("pasteLinesPerSelection",!0),o("selectionsMayTouch",!1),o("readOnly",!1,function(i,a){a=="nocursor"&&(fi(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,Bg),o("allowDropFileTypes",null),o("cursorBlinkRate",530),o("cursorScrollMargin",0),o("cursorHeight",1,io,!0),o("singleCursorHeightPerLine",!0,io,!0),o("workTime",100),o("workDelay",100),o("flattenSpans",!0,co,!0),o("addModeClass",!1,co,!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,co,!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 Bg(e,t,o){var i=o&&o!=xi;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 Wg(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"),za(e)),Va(e),$t(e),no(e),setTimeout(function(){return di(e)},100)}function ft(e,t){var o=this;if(!(this instanceof ft))return new ft(e,t);this.options=t=t?Le(t):{},Le(zc,t,!1);var i=t.value;typeof i=="string"?i=new Yt(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var a=new ft.inputStyles[t.inputStyle](this),c=this.display=new _v(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&&!L&&c.input.focus(),p&&m<11&&setTimeout(function(){return o.display.input.reset(!0)},20),jg(this),yg(),zn(this),this.curOp.forceUpdate=!0,Jf(this,i),t.autofocus&&!L||this.hasFocus()?setTimeout(function(){o.hasFocus()&&!o.state.focused&&qa(o)},20):fi(this);for(var h in Fs)Fs.hasOwnProperty(h)&&Fs[h](this,t[h],xi);Kf(this),t.finishInit&&t.finishInit(this);for(var g=0;g<yl.length;++g)yl[g](this);Hn(this),y&&t.lineWrapping&&getComputedStyle(c.lineDiv).textRendering=="optimizelegibility"&&(c.lineDiv.style.textRendering="auto")}ft.defaults=zc,ft.optionHandlers=Fs;function jg(e){var t=e.display;Fe(t.scroller,"mousedown",kt(e,Nc)),p&&m<11?Fe(t.scroller,"dblclick",kt(e,function(b){if(!Be(e,b)){var S=In(e,b);if(!(!S||ml(e,b)||Gr(e.display,b))){Pt(b);var M=e.findWordAt(S);Ms(e.doc,M.anchor,M.head)}}})):Fe(t.scroller,"dblclick",function(b){return Be(e,b)||Pt(b)}),Fe(t.scroller,"contextmenu",function(b){return Dc(e,b)}),Fe(t.input.getField(),"contextmenu",function(b){t.scroller.contains(b.target)||Dc(e,b)});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(b){if(b.touches.length!=1)return!1;var S=b.touches[0];return S.radiusX<=1&&S.radiusY<=1}function h(b,S){if(S.left==null)return!0;var M=S.left-b.left,I=S.top-b.top;return M*M+I*I>20*20}Fe(t.scroller,"touchstart",function(b){if(!Be(e,b)&&!c(b)&&!ml(e,b)){t.input.ensurePolled(),clearTimeout(o);var S=+new Date;t.activeTouch={start:S,moved:!1,prev:S-i.end<=300?i:null},b.touches.length==1&&(t.activeTouch.left=b.touches[0].pageX,t.activeTouch.top=b.touches[0].pageY)}}),Fe(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Fe(t.scroller,"touchend",function(b){var S=t.activeTouch;if(S&&!Gr(t,b)&&S.left!=null&&!S.moved&&new Date-S.start<300){var M=e.coordsChar(t.activeTouch,"page"),I;!S.prev||h(S,S.prev)?I=new rt(M,M):!S.prev.prev||h(S,S.prev.prev)?I=e.findWordAt(M):I=new rt(pe(M.line,0),Me(e.doc,pe(M.line+1,0))),e.setSelection(I.anchor,I.head),e.focus(),Pt(b)}a()}),Fe(t.scroller,"touchcancel",a),Fe(t.scroller,"scroll",function(){t.scroller.clientHeight&&(so(e,t.scroller.scrollTop),Dn(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))}),Fe(t.scroller,"mousewheel",function(b){return $f(e,b)}),Fe(t.scroller,"DOMMouseScroll",function(b){return $f(e,b)}),Fe(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(b){Be(e,b)||Mn(b)},over:function(b){Be(e,b)||(mg(e,b),Mn(b))},start:function(b){return gg(e,b)},drop:kt(e,vg),leave:function(b){Be(e,b)||bc(e)}};var g=t.input.getField();Fe(g,"keyup",function(b){return Ac.call(e,b)}),Fe(g,"keydown",kt(e,Mc)),Fe(g,"keypress",kt(e,Lc)),Fe(g,"focus",function(b){return qa(e,b)}),Fe(g,"blur",function(b){return fi(e,b)})}var yl=[];ft.defineInitHook=function(e){return yl.push(e)};function Po(e,t,o,i){var a=e.doc,c;o==null&&(o="add"),o=="smart"&&(a.mode.indent?c=qi(e,t).state:o="prev");var h=e.options.tabSize,g=Ie(a,t),b=Ge(g.text,null,h);g.stateAfter&&(g.stateAfter=null);var S=g.text.match(/^\s*/)[0],M;if(!i&&!/\S/.test(g.text))M=0,o="not";else if(o=="smart"&&(M=a.mode.indent(c,g.text.slice(S.length),g.text),M==be||M>150)){if(!i)return;o="prev"}o=="prev"?t>a.first?M=Ge(Ie(a,t-1).text,null,h):M=0:o=="add"?M=b+e.options.indentUnit:o=="subtract"?M=b-e.options.indentUnit:typeof o=="number"&&(M=b+o),M=Math.max(0,M);var I="",Y=0;if(e.options.indentWithTabs)for(var U=Math.floor(M/h);U;--U)Y+=h,I+=" ";if(Y<M&&(I+=K(M-Y)),I!=S)return gi(a,I,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);cl(a,re,new rt(xe,xe));break}}}var Cr=null;function zs(e){Cr=e}function bl(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,b=Yi(t),S=null;if(g&&i.ranges.length>1)if(Cr&&Cr.text.join(`
16
- `)==t){if(i.ranges.length%Cr.text.length==0){S=[];for(var M=0;M<Cr.text.length;M++)S.push(c.splitLines(Cr.text[M]))}}else b.length==i.ranges.length&&e.options.pasteLinesPerSelection&&(S=oe(b,function(Te){return[Te]}));for(var I=e.curOp.updateInput,Y=i.ranges.length-1;Y>=0;Y--){var U=i.ranges[Y],re=U.from(),ce=U.to();U.empty()&&(o&&o>0?re=pe(re.line,re.ch-o):e.state.overwrite&&!g?ce=pe(ce.line,Math.min(Ie(c,ce.line).text.length,ce.ch+X(b).length)):g&&Cr&&Cr.lineWise&&Cr.text.join(`
17
- `)==b.join(`
18
- `)&&(re=ce=pe(re.line,0)));var xe={from:re,to:ce,text:S?S[Y%S.length]:b,origin:a||(g?"paste":e.state.cutIncoming>h?"cut":"+input")};vi(e.doc,xe),Ot(e,"inputRead",e,xe)}t&&!g&&Bc(e,t),ci(e),e.curOp.updateInput<2&&(e.curOp.updateInput=I),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 bl(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=Po(e,a.head.line,"smart");break}}else c.electricInput&&c.electricInput.test(Ie(e.doc,a.head.line).text.slice(0,a.head.ch))&&(h=Po(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 y?e.style.width="1000px":e.setAttribute("wrap","off"),H&&(e.style.border="1px solid black"),jc(e),t}function Kg(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++,$t(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++,$t(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"),An(this.doc,i)&&Po(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&&(Po(this,g.head.line,i,!0),c=g.head.line,h==this.doc.sel.primIndex&&ci(this));else{var b=g.from(),S=g.to(),M=Math.max(c,b.line);c=Math.min(this.lastLine(),S.line-(S.ch?0:1))+1;for(var I=M;I<c;++I)Po(this,I,i);var Y=this.doc.sel.ranges;b.ch==0&&a.length==Y.length&&Y[h].from().ch>0&&cl(this.doc,h,new rt(b,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,Ie(this.doc,i.line)),c=0,h=(a.length-1)/2,g=i.ch,b;if(g==0)b=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{b=a[S*2+2];break}}var M=b?b.indexOf("overlay "):-1;return M<0?b:M==0?null:b.slice(0,M-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 b=0;b<g[a].length;b++){var S=h[g[a][b]];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 M=0;M<h._global.length;M++){var I=h._global[M];I.pred(g,this)&&ae(c,I.val)==-1&&c.push(I.val)}return c},getStateAfter:function(i,a){var c=this.doc;return i=Qe(c,i==null?c.first+c.size-1:i),qi(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(),wr(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"),Ga(this,i.left,i.top)},lineAtHeight:function(i,a){return i=Of(this,{top:i,left:0},a||"page").top,Mr(this.doc,i+this.display.viewOffset)},heightAtLine:function(i,a,c){var h=!1,g;if(typeof i=="number"){var b=this.doc.first+this.doc.size-1;i<this.doc.first?i=this.doc.first:i>b&&(i=b,h=!0),g=Ie(this.doc,i)}else g=i;return ys(this,g,{top:0,left:0},a||"page",c||h).top+(h?this.doc.height-Ur(g):0)},defaultTextHeight:function(){return li(this.display)},defaultCharWidth:function(){return ui(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(i,a,c,h,g){var b=this.display;i=wr(this,Me(this.doc,i));var S=i.bottom,M=i.left;if(a.style.position="absolute",a.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(a),b.sizer.appendChild(a),h=="over")S=i.top;else if(h=="above"||h=="near"){var I=Math.max(b.wrapper.clientHeight,this.doc.height),Y=Math.max(b.sizer.clientWidth,b.lineSpace.clientWidth);(h=="above"||i.bottom+a.offsetHeight>I)&&i.top>a.offsetHeight?S=i.top-a.offsetHeight:i.bottom+a.offsetHeight<=I&&(S=i.bottom),M+a.offsetWidth>Y&&(M=Y-a.offsetWidth)}a.style.top=S+"px",a.style.left=a.style.right="",g=="right"?(M=b.sizer.clientWidth-a.offsetWidth,a.style.right="0px"):(g=="left"?M=0:g=="middle"&&(M=(b.sizer.clientWidth-a.offsetWidth)/2),a.style.left=M+"px"),c&&Bv(this,{left:M,top:S,right:M+a.offsetWidth,bottom:S+a.offsetHeight})},triggerOnKeyDown:jt(Mc),triggerOnKeyPress:jt(Lc),triggerOnKeyUp:Ac,triggerOnMouseDown:jt(Nc),execCommand:function(i){if(wo.hasOwnProperty(i))return wo[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 b=Me(this.doc,i),S=0;S<a&&(b=xl(this.doc,b,g,c,h),!b.hitSide);++S);return b},moveH:jt(function(i,a){var c=this;this.extendSelectionsBy(function(h){return c.display.shift||c.doc.extend||h.empty()?xl(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"):bi(this,function(g){var b=xl(h,g.head,i,a,!1);return i<0?{from:b,to:g.head}:{from:g.head,to:b}})}),findPosV:function(i,a,c,h){var g=1,b=h;a<0&&(g=-1,a=-a);for(var S=Me(this.doc,i),M=0;M<a;++M){var I=wr(this,S,"div");if(b==null?b=I.left:I.left=b,S=Uc(this,I,g,c),S.hitSide)break}return S},moveV:jt(function(i,a){var c=this,h=this.doc,g=[],b=!this.display.shift&&!h.extend&&h.sel.somethingSelected();if(h.extendSelectionsBy(function(M){if(b)return i<0?M.from():M.to();var I=wr(c,M.head,"div");M.goalColumn!=null&&(I.left=M.goalColumn),g.push(I.left);var Y=Uc(c,I,i,a);return a=="page"&&M==h.sel.primary()&&el(c,bs(c,Y,"div").top-I.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=Ie(a,i.line).text,h=i.ch,g=i.ch;if(c){var b=this.getHelper(i,"wordChars");(i.sticky=="before"||g==c.length)&&h?--h:++g;for(var S=c.charAt(h),M=N(S,b)?function(I){return N(I,b)}:/\s/.test(S)?function(I){return/\s/.test(I)}:function(I){return!/\s/.test(I)&&!N(I)};h>0&&M(c.charAt(h-1));)--h;for(;g<c.length&&M(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){oo(this,i,a)}),getScrollInfo:function(){var i=this.display.scroller;return{left:i.scrollLeft,top:i.scrollTop,height:i.scrollHeight-Lr(this)-this.display.barHeight,width:i.scrollWidth-Lr(this)-this.display.barWidth,clientHeight:Wa(this),clientWidth:Ln(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?Wv(this,i):Df(this,i.from,i.to,i.margin)}),setSize:jt(function(i,a){var c=this,h=function(b){return typeof b=="number"||/^\d+$/.test(String(b))?b+"px":b};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(b){if(b.widgets){for(var S=0;S<b.widgets.length;S++)if(b.widgets[S].noHScroll){rn(c,g,"widget");break}}++g}),this.curOp.forceUpdate=!0,ve(this,"refresh",this)}),operation:function(i){return er(this,i)},startOperation:function(){return zn(this)},endOperation:function(){return Hn(this)},refresh:jt(function(){var i=this.display.cachedTextHeight;$t(this),this.curOp.forceUpdate=!0,no(this),oo(this,this.doc.scrollLeft,this.doc.scrollTop),nl(this.display),(i==null||Math.abs(i-li(this.display))>.5||this.options.lineWrapping)&&Va(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),no(this),this.display.input.reset(),oo(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 xl(e,t,o,i,a){var c=t,h=o,g=Ie(e,t.line),b=a&&e.direction=="rtl"?-o:o;function S(){var Ee=t.line+b;return Ee<e.first||Ee>=e.first+e.size?!1:(t=new pe(Ee,t.ch,t.sticky),g=Ie(e,Ee))}function M(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=Cg(e.cm,g,t,o):Pe=hl(g,t,o);if(Pe==null)if(!Ee&&S())t=pl(a,e.cm,g,t.line,b);else return!1;else t=Pe;return!0}if(i=="char"||i=="codepoint")M();else if(i=="column")M(!0);else if(i=="word"||i=="group")for(var I=null,Y=i=="group",U=e.cm&&e.cm.getHelper(t,"wordChars"),re=!0;!(o<0&&!M(!re));re=!1){var ce=g.text.charAt(t.ch)||`
19
- `,xe=N(ce,U)?"w":Y&&ce==`
20
- `?"n":!Y||/\s/.test(ce)?null:"p";if(Y&&!re&&!xe&&(xe="s"),I&&I!=xe){o<0&&(o=1,M(),t.sticky="after");break}if(xe&&(I=xe),o>0&&!M(!re))break}var Te=Ls(e,t,c,h,!0);return F(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),b=Math.max(g-.5*li(e.display),3);h=(o>0?t.bottom:t.top)+o*b}else i=="line"&&(h=o>0?t.bottom+3:t.top-3);for(var S;S=Ga(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 b=g.target;b;b=b.parentNode){if(b==a)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(b.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 b=Wc(i);zs({lineWise:!0,text:b.text}),g.type=="cut"&&i.operation(function(){i.setSelections(b.ranges,0,Re),i.replaceSelection("",null,"cut")})}else return;if(g.clipboardData){g.clipboardData.clearData();var S=Cr.text.join(`
21
- `);if(g.clipboardData.setData("Text",S),g.clipboardData.getData("Text")==S){g.preventDefault();return}}var M=Kc(),I=M.firstChild;i.display.lineSpace.insertBefore(M,i.display.lineSpace.firstChild),I.value=Cr.text.join(`
22
- `);var Y=$();Ke(I),setTimeout(function(){i.display.lineSpace.removeChild(M),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,b=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 M=g[g.length-1].measure,I=M.maps?M.maps[M.maps.length-1]:M.map;S={node:I[I.length-1],offset:I[I.length-2]-I[I.length-3]}}if(!b||!S){e.removeAllRanges();return}var Y=e.rangeCount&&e.getRangeAt(0),U;try{U=z(b.node,b.offset,S.offset,S.node)}catch{}U&&(!u&&t.state.focused?(e.collapse(b.node,b.offset),U.collapsed||(e.removeAllRanges(),e.addRange(U))):(e.removeAllRanges(),e.addRange(U)),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 W(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(A&&C&&this.cm.display.gutterSpecs.length&&Ug(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,on(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,Ie(e.doc,i.line-1).length)),a.ch==Ie(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=Rn(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 b=Rn(e,a.line),S,M;if(b==t.view.length-1?(S=t.viewTo-1,M=t.lineDiv.lastChild):(S=tt(t.view[b+1].line)-1,M=t.view[b+1].node.previousSibling),!g)return!1;for(var I=e.doc.splitLines(Gg(e,g,M,h,S)),Y=Er(e.doc,pe(h,0),pe(S,Ie(e.doc,S).text.length));I.length>1&&Y.length>1;)if(X(I)==X(Y))I.pop(),Y.pop(),S--;else if(I[0]==Y[0])I.shift(),Y.shift(),h++;else break;for(var U=0,re=0,ce=I[0],xe=Y[0],Te=Math.min(ce.length,xe.length);U<Te&&ce.charCodeAt(U)==xe.charCodeAt(U);)++U;for(var Ee=X(I),Pe=X(Y),Ae=Math.min(Ee.length-(I.length==1?U:0),Pe.length-(Y.length==1?U:0));re<Ae&&Ee.charCodeAt(Ee.length-re-1)==Pe.charCodeAt(Pe.length-re-1);)++re;if(I.length==1&&Y.length==1&&h==i.line)for(;U&&U>i.ch&&Ee.charCodeAt(Ee.length-re-1)==Pe.charCodeAt(Pe.length-re-1);)U--,re++;I[I.length-1]=Ee.slice(0,Ee.length-re).replace(/^\u200b+/,""),I[0]=I[0].slice(U).replace(/\u200b+$/,"");var We=pe(h,U),ze=pe(S,Y.length?X(Y).length-re:0);if(I.length>1||I[0]||T(We,ze))return gi(e.doc,I,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 $t(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,bl)(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=ja(e,t.line);if(!o||o.hidden)return null;var i=Ie(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 b=wf(a.map,t.ch,h);return b.offset=b.collapse=="right"?b.end:b.start,b}function Ug(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function wi(e,t){return t&&(e.bad=!0),e}function Gg(e,t,o,i,a){var c="",h=!1,g=e.doc.lineSeparator(),b=!1;function S(U){return function(re){return re.id==U}}function M(){h&&(c+=g,b&&(c+=g),h=b=!1)}function I(U){U&&(M(),c+=U)}function Y(U){if(U.nodeType==1){var re=U.getAttribute("cm-text");if(re){I(re);return}var ce=U.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))&&I(Er(e.doc,xe.from,xe.to).join(g));return}if(U.getAttribute("contenteditable")=="false")return;var Ee=/^(pre|div|p|li|table|br)$/i.test(U.nodeName);if(!/^br$/i.test(U.nodeName)&&U.textContent.length==0)return;Ee&&M();for(var Pe=0;Pe<U.childNodes.length;Pe++)Y(U.childNodes[Pe]);/^(pre|p)$/i.test(U.nodeName)&&(b=!0),Ee&&(h=!0)}else U.nodeType==3&&I(U.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Y(t),t!=o;)t=t.nextSibling,b=!1;return c}function Hs(e,t,o){var i;if(t==e.display.lineDiv){if(i=e.display.lineDiv.childNodes[o],!i)return wi(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 $g(c,t,o)}}function $g(e,t,o){var i=e.text.firstChild,a=!1;if(!t||!W(i,t))return wi(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 wi(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 b=e.measure,S=b.maps;function M(xe,Te,Ee){for(var Pe=-1;Pe<(S?S.length:0);Pe++)for(var Ae=Pe<0?b.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 I=M(h,g,o);if(I)return wi(I,a);for(var Y=g.nextSibling,U=h?h.nodeValue.length-o:0;Y;Y=Y.nextSibling){if(I=M(Y,Y.firstChild,0),I)return wi(pe(I.line,I.ch-U),a);U+=Y.textContent.length}for(var re=g.previousSibling,ce=o;re;re=re.previousSibling){if(I=M(re,re.firstChild,-1),I)return wi(pe(I.line,I.ch+ce),a);ce+=re.textContent.length}}var bt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ne,this.hasSelection=!1,this.composing=null};bt.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),H&&(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(!(Gr(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){Gr(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)})},bt.prototype.createField=function(e){this.wrapper=Kc(),this.textarea=this.wrapper.firstChild},bt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},bt.prototype.prepareSelection=function(){var e=this.cm,t=e.display,o=e.doc,i=Nf(e);if(e.options.moveInputWithCursor){var a=wr(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},bt.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")},bt.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))}},bt.prototype.getField=function(){return this.textarea},bt.prototype.supportsTouch=function(){return!1},bt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!L||$()!=this.textarea))try{this.textarea.focus()}catch{}},bt.prototype.blur=function(){this.textarea.blur()},bt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},bt.prototype.receivedFocus=function(){this.slowPoll()},bt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},bt.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)},bt.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||B&&/[\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(){bl(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},bt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},bt.prototype.onKeyPress=function(){p&&m>=9&&(this.hasSelection=null),this.fastPoll()},bt.prototype.onContextMenu=function(e){var t=this,o=t.cm,i=o.display,a=t.textarea;t.contextMenuPending&&t.contextMenuPending();var c=In(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,on(c),Re);var b=a.style.cssText,S=t.wrapper.style.cssText,M=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",a.style.cssText=`position: absolute; width: 30px; height: 30px;
25
- top: `+(e.clientY-M.top-5)+"px; left: "+(e.clientX-M.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 I;y&&(I=window.scrollY),i.input.focus(),y&&window.scrollTo(null,I),i.input.reset(),o.somethingSelected()||(a.value=t.prevInput=" "),t.contextMenuPending=U,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 U(){if(t.contextMenuPending==U&&(t.contextMenuPending=!1,t.wrapper.style.cssText=S,a.style.cssText=b,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){Mn(e);var re=function(){Oe(window,"mouseup",re),setTimeout(U,20)};Fe(window,"mouseup",re)}else setTimeout(U,50)},bt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},bt.prototype.setUneditable=function(){},bt.prototype.needsContentAttribute=!1;function Yg(e,t){if(t=t?Le(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(b){b.save=i,b.getTextArea=function(){return e},b.toTextArea=function(){b.toTextArea=isNaN,i(),e.parentNode.removeChild(b.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=ft(function(b){return e.parentNode.insertBefore(b,e.nextSibling)},t);return g}function Xg(e){e.off=Oe,e.on=Fe,e.wheelEventPixels=eg,e.Doc=Yt,e.splitLines=Yi,e.countColumn=Ge,e.findColumn=Ne,e.isWordChar=he,e.Pass=be,e.signal=ve,e.Line=oi,e.changeEnd=sn,e.scrollbarModel=Hf,e.Pos=pe,e.cmpPos=T,e.modes=pr,e.mimeModes=ir,e.resolveMode=ri,e.getMode=ni,e.modeExtensions=yr,e.extendMode=br,e.copyState=or,e.startState=Ji,e.innerMode=Vi,e.commands=wo,e.keyMap=Yr,e.keyName=Tc,e.isModifierKey=Sc,e.lookupKey=yi,e.normalizeKeyMap=Sg,e.StringStream=pt,e.SharedTextMarker=yo,e.TextMarker=ln,e.LineWidget=mo,e.e_preventDefault=Pt,e.e_stopPropagation=mr,e.e_stop=Mn,e.addClass=se,e.contains=W,e.rmClass=Q,e.keyNames=un}Hg(ft),Kg(ft);var Vg="iter insert remove copy getEditor constructor".split(" ");for(var Bs in Yt.prototype)Yt.prototype.hasOwnProperty(Bs)&&ae(Vg,Bs)<0&&(ft.prototype[Bs]=function(e){return function(){return e.apply(this.doc,arguments)}}(Yt.prototype[Bs]));return qt(Yt),ft.inputStyles={textarea:bt,contenteditable:ot},ft.defineMode=function(e){!ft.defaults.mode&&e!="null"&&(ft.defaults.mode=e),fs.apply(this,arguments)},ft.defineMIME=jr,ft.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ft.defineMIME("text/plain","null"),ft.defineExtension=function(e,t){ft.prototype[e]=t},ft.defineDocExtension=function(e,t){Yt.prototype[e]=t},ft.fromTextArea=Yg,Xg(ft),ft.version="5.65.2",ft})})(En);var Ew=En.exports,Bp={exports:{}};(function(r,n){(function(l){l(En.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,y=u.typescript,w=u.wordCharacters||/[\w$\xa1-\uffff]/,C=function(){function T(Rt){return{type:Rt,style:"keyword"}}var F=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:F,with:F,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=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function j(T){for(var F=!1,fe,ye=!1;(fe=T.next())!=null;){if(!F){if(fe=="/"&&!ye)return;fe=="["?ye=!0:ye&&fe=="]"&&(ye=!1)}F=!F&&fe=="\\"}}var D,H;function A(T,F,fe){return D=T,H=fe,F}function L(T,F){var fe=T.next();if(fe=='"'||fe=="'")return F.tokenize=B(fe),F.tokenize(T,F);if(fe=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return A("number","number");if(fe=="."&&T.match(".."))return A("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(fe))return A(fe);if(fe=="="&&T.eat(">"))return A("=>","operator");if(fe=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return A("number","number");if(/\d/.test(fe))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),A("number","number");if(fe=="/")return T.eat("*")?(F.tokenize=Z,Z(T,F)):T.eat("/")?(T.skipToEnd(),A("comment","comment")):pe(T,F,1)?(j(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),A("regexp","string-2")):(T.eat("="),A("operator","operator",T.current()));if(fe=="`")return F.tokenize=_,_(T,F);if(fe=="#"&&T.peek()=="!")return T.skipToEnd(),A("meta","meta");if(fe=="#"&&T.eatWhile(w))return A("variable","property");if(fe=="<"&&T.match("!--")||fe=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),A("comment","comment");if(P.test(fe))return(fe!=">"||!F.lexical||F.lexical.type!=">")&&(T.eat("=")?(fe=="!"||fe=="=")&&T.eat("="):/[<>*+\-|&?]/.test(fe)&&(T.eat(fe),fe==">"&&T.eat(fe))),fe=="?"&&T.eat(".")?A("."):A("operator","operator",T.current());if(w.test(fe)){T.eatWhile(w);var ye=T.current();if(F.lastType!="."){if(C.propertyIsEnumerable(ye)){var Ue=C[ye];return A(Ue.type,Ue.style,ye)}if(ye=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return A("async","keyword",ye)}return A("variable","variable",ye)}}function B(T){return function(F,fe){var ye=!1,Ue;if(v&&F.peek()=="@"&&F.match(E))return fe.tokenize=L,A("jsonld-keyword","meta");for(;(Ue=F.next())!=null&&!(Ue==T&&!ye);)ye=!ye&&Ue=="\\";return ye||(fe.tokenize=L),A("string","string")}}function Z(T,F){for(var fe=!1,ye;ye=T.next();){if(ye=="/"&&fe){F.tokenize=L;break}fe=ye=="*"}return A("comment","comment")}function _(T,F){for(var fe=!1,ye;(ye=T.next())!=null;){if(!fe&&(ye=="`"||ye=="$"&&T.eat("{"))){F.tokenize=L;break}fe=!fe&&ye=="\\"}return A("quasi","string-2",T.current())}var V="([{}])";function J(T,F){F.fatArrowAt&&(F.fatArrowAt=null);var fe=T.string.indexOf("=>",T.start);if(!(fe<0)){if(y){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 ii=T.string.charAt(Me-1);if(ii==Rt&&T.string.charAt(Me-2)!="\\"){Me--;break}}else if(Qe&&!Ue){++Me;break}}Qe&&!Ue&&(F.fatArrowAt=Me)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(T,F,fe,ye,Ue,Qe){this.indented=T,this.column=F,this.type=fe,this.prev=Ue,this.info=Qe,ye!=null&&(this.align=ye)}function Q(T,F){if(!m)return!1;for(var fe=T.localVars;fe;fe=fe.next)if(fe.name==F)return!0;for(var ye=T.context;ye;ye=ye.prev)for(var fe=ye.vars;fe;fe=fe.next)if(fe.name==F)return!0}function ee(T,F,fe,ye,Ue){var Qe=T.cc;for(k.state=T,k.stream=Ue,k.marked=null,k.cc=Qe,k.style=F,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":F}}}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,F){for(var fe=F;fe;fe=fe.next)if(fe.name==T)return!0;return!1}function W(T){var F=k.state;if(k.marked="def",!!m){if(F.context){if(F.lexical.info=="var"&&F.context&&F.context.block){var fe=$(T,F.context);if(fe!=null){F.context=fe;return}}else if(!z(T,F.localVars)){F.localVars=new Ke(T,F.localVars);return}}u.globalVars&&!z(T,F.globalVars)&&(F.globalVars=new Ke(T,F.globalVars))}}function $(T,F){if(F)if(F.block){var fe=$(T,F.prev);return fe?fe==F.prev?F:new de(fe,F.vars,!0):null}else return z(T,F.vars)?F:new de(F.prev,new Ke(T,F.vars),!1);else return null}function se(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function de(T,F,fe){this.prev=T,this.vars=F,this.block=fe}function Ke(T,F){this.name=T,this.next=F}var Ve=new Ke("this",new Ke("arguments",null));function Le(){k.state.context=new de(k.state.context,k.state.localVars,!1),k.state.localVars=Ve}function Ge(){k.state.context=new de(k.state.context,k.state.localVars,!0),k.state.localVars=null}Le.lex=Ge.lex=!0;function ne(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}ne.lex=!0;function ae(T,F){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,F)};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 F(fe){return fe==T?x():T==";"||fe=="}"||fe==")"||fe=="]"?O():x(F)}return F}function Re(T,F){return T=="var"?x(ae("vardef",F),Gi,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("}"),Ge,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"),Ge,us,Re,ne,le):T=="class"||y&&F=="interface"?(k.marked="keyword",x(ae("form",T=="class"?T:F),ni,le)):T=="variable"?y&&F=="declare"?(k.marked="keyword",x(Re)):y&&(F=="module"||F=="enum"||F=="type")&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword",F=="enum"?x(Mr):F=="type"?x(fs,be("operator"),ve,be(";")):x(ae("form"),Gt,be("{"),ae("}"),dt,le,le)):y&&F=="namespace"?(k.marked="keyword",x(ae("form"),me,Re,le)):y&&F=="abstract"?(k.marked="keyword",x(Re)):x(ae("stat"),Se):T=="switch"?x(ae("form"),R,be("{"),ae("}","switch"),Ge,dt,le,le,ne):T=="case"?x(me,be(":")):T=="default"?x(be(":")):T=="catch"?x(ae("form"),Le,ke,Re,le,ne):T=="export"?x(ae("stat"),Vi,le):T=="import"?x(ae("stat"),pt,le):T=="async"?x(Re):F=="@"?x(me,Re):O(ae("stat"),me,be(";"),le)}function ke(T){if(T=="(")return x(jr,be(")"))}function me(T,F){return K(T,F,!1)}function Ne(T,F){return K(T,F,!0)}function R(T){return T!="("?O():x(ae(")"),X,be(")"),le)}function K(T,F,fe){if(k.state.fatArrowAt==k.stream.start){var ye=fe?he:we;if(T=="(")return x(Le,ae(")"),je(jr,")"),le,be("=>"),ye,ne);if(T=="variable")return O(Le,Gt,be("=>"),ye,ne)}var Ue=fe?ue:oe;return te.hasOwnProperty(T)?x(Ue):T=="function"?x(pr,Ue):T=="class"||y&&F=="interface"?(k.marked="keyword",x(ae("form"),ri,le)):T=="keyword c"||T=="async"?x(fe?Ne:me):T=="("?x(ae(")"),X,be(")"),le,Ue):T=="operator"||T=="spread"?x(fe?Ne:me):T=="["?x(ae("]"),tt,le,Ue):T=="{"?yt($e,"}",null,Ue):T=="quasi"?O(ge,Ue):T=="new"?x(N(fe)):x()}function X(T){return T.match(/[;\}\)\],]/)?O():O(me)}function oe(T,F){return T==","?x(X):ue(T,F,!1)}function ue(T,F,fe){var ye=fe==!1?oe:ue,Ue=fe==!1?me:Ne;if(T=="=>")return x(Le,fe?he:we,ne);if(T=="operator")return/\+\+|--/.test(F)||y&&F=="!"?x(ye):y&&F=="<"&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?x(ae(">"),je(ve,">"),le,ye):F=="?"?x(me,be(":"),Ue):x(Ue);if(T=="quasi")return O(ge,ye);if(T!=";"){if(T=="(")return yt(Ne,")","call",ye);if(T==".")return x(De,ye);if(T=="[")return x(ae("]"),X,be("]"),le,ye);if(y&&F=="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,F){return T!="quasi"?O():F.slice(F.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:Ne)}function N(T){return function(F){return F=="."?x(T?G:q):F=="variable"&&y?x(Mn,T?ue:oe):O(T?Ne:me)}}function q(T,F){if(F=="target")return k.marked="keyword",x(oe)}function G(T,F){if(F=="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 $e(T,F){if(T=="async")return k.marked="property",x($e);if(T=="variable"||k.style=="keyword"){if(k.marked="property",F=="get"||F=="set")return x(it);var fe;return y&&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(y&&se(F))return k.marked="keyword",x($e);if(T=="[")return x(me,Wt,be("]"),Je);if(T=="spread")return x(Ne,Je);if(F=="*")return k.marked="keyword",x($e);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(Ne);if(T=="(")return O(pr)}function je(T,F,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==F||sr==F?O():O(T)},ye)}return Ue==F||Qe==F?x():fe&&fe.indexOf(";")>-1?O(T):x(be(F))}return function(Ue,Qe){return Ue==F||Qe==F?x():O(T,ye)}}function yt(T,F,fe){for(var ye=3;ye<arguments.length;ye++)k.cc.push(arguments[ye]);return x(ae(F,fe),je(T,F),le)}function dt(T){return T=="}"?x():O(Re,dt)}function Wt(T,F){if(y){if(T==":")return x(ve);if(F=="?")return x(Wt)}}function Fe(T,F){if(y&&(T==":"||F=="in"))return x(ve)}function Ye(T){if(y&&T==":")return k.stream.match(/^\s*\w+\s+is\b/,!1)?x(me,Oe,ve):x(ve)}function Oe(T,F){if(F=="is")return k.marked="keyword",x()}function ve(T,F){if(F=="keyof"||F=="typeof"||F=="infer"||F=="readonly")return k.marked="keyword",x(F=="typeof"?Ne:ve);if(T=="variable"||F=="void")return k.marked="type",x(nr);if(F=="|"||F=="&")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(mr,")"),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,F){if(T=="variable"||k.style=="keyword")return k.marked="property",x(et);if(F=="?"||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,F){return T!="quasi"?O():F.slice(F.length-2)!="${"?x(qt):x(ve,Pt)}function Pt(T){if(T=="}")return k.marked="string-2",k.state.tokenize=_,x(qt)}function mr(T,F){return T=="variable"&&k.stream.match(/^\s*[?:]/,!1)||F=="?"?x(mr):T==":"?x(ve):T=="spread"?x(mr):O(ve)}function nr(T,F){if(F=="<")return x(ae(">"),je(ve,">"),le,nr);if(F=="|"||T=="."||F=="&")return x(ve);if(T=="[")return x(ve,be("]"),nr);if(F=="extends"||F=="implements")return k.marked="keyword",x(ve);if(F=="?")return x(ve,be(":"),ve)}function Mn(T,F){if(F=="<")return x(ae(">"),je(ve,">"),le,nr)}function _r(){return O(ve,ss)}function ss(T,F){if(F=="=")return x(ve)}function Gi(T,F){return F=="enum"?(k.marked="keyword",x(Mr)):O(Gt,Wt,kr,Yi)}function Gt(T,F){if(y&&se(F))return k.marked="keyword",x(Gt);if(T=="variable")return W(F),x();if(T=="spread")return x(Gt);if(T=="[")return yt($i,"]");if(T=="{")return yt(as,"}")}function as(T,F){return T=="variable"&&!k.stream.match(/^\s*:/,!1)?(W(F),x(kr)):(T=="variable"&&(k.marked="property"),T=="spread"?x(Gt):T=="}"?O():T=="["?x(me,be("]"),be(":"),as):x(be(":"),Gt,kr))}function $i(){return O(Gt,kr)}function kr(T,F){if(F=="=")return x(Ne)}function Yi(T){if(T==",")return x(Gi)}function ls(T,F){if(T=="keyword b"&&F=="else")return x(ae("form","else"),Re,le)}function us(T,F){if(F=="await")return x(us);if(T=="(")return x(ae(")"),Xi,le)}function Xi(T){return T=="var"?x(Gi,en):T=="variable"?x(en):O(en)}function en(T,F){return T==")"?x():T==";"?x(en):F=="in"||F=="of"?(k.marked="keyword",x(me,en)):O(me,en)}function pr(T,F){if(F=="*")return k.marked="keyword",x(pr);if(T=="variable")return W(F),x(pr);if(T=="(")return x(Le,ae(")"),je(jr,")"),le,Ye,Re,ne);if(y&&F=="<")return x(ae(">"),je(_r,">"),le,pr)}function ir(T,F){if(F=="*")return k.marked="keyword",x(ir);if(T=="variable")return W(F),x(ir);if(T=="(")return x(Le,ae(")"),je(jr,")"),le,Ye,ne);if(y&&F=="<")return x(ae(">"),je(_r,">"),le,ir)}function fs(T,F){if(T=="keyword"||T=="variable")return k.marked="type",x(fs);if(F=="<")return x(ae(">"),je(_r,">"),le)}function jr(T,F){return F=="@"&&x(me,jr),T=="spread"?x(jr):y&&se(F)?(k.marked="keyword",x(jr)):y&&T=="this"?x(Wt,kr):O(Gt,Wt,kr)}function ri(T,F){return T=="variable"?ni(T,F):yr(T,F)}function ni(T,F){if(T=="variable")return W(F),x(yr)}function yr(T,F){if(F=="<")return x(ae(">"),je(_r,">"),le,yr);if(F=="extends"||F=="implements"||y&&T==",")return F=="implements"&&(k.marked="keyword"),x(y?ve:me,yr);if(T=="{")return x(ae("}"),br,le)}function br(T,F){if(T=="async"||T=="variable"&&(F=="static"||F=="get"||F=="set"||y&&se(F))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return k.marked="keyword",x(br);if(T=="variable"||k.style=="keyword")return k.marked="property",x(or,br);if(T=="number"||T=="string")return x(or,br);if(T=="[")return x(me,Wt,be("]"),or,br);if(F=="*")return k.marked="keyword",x(br);if(y&&T=="(")return O(ir,br);if(T==";"||T==",")return x(br);if(T=="}")return x();if(F=="@")return x(me,br)}function or(T,F){if(F=="!"||F=="?")return x(or);if(T==":")return x(ve,kr);if(F=="=")return x(Ne);var fe=k.state.lexical.prev,ye=fe&&fe.info=="interface";return O(ye?ir:pr)}function Vi(T,F){return F=="*"?(k.marked="keyword",x(_t,be(";"))):F=="default"?(k.marked="keyword",x(me,be(";"))):T=="{"?x(je(Ji,"}"),_t,be(";")):O(Re)}function Ji(T,F){if(F=="as")return k.marked="keyword",x(be("variable"));if(T=="variable")return O(Ne,Ji)}function pt(T){return T=="string"?x():T=="("?O(me):T=="."?O(oe):O(Ie,Er,_t)}function Ie(T,F){return T=="{"?yt(Ie,"}"):(T=="variable"&&W(F),F=="*"&&(k.marked="keyword"),x(Zi))}function Er(T){if(T==",")return x(Ie,Er)}function Zi(T,F){if(F=="as")return k.marked="keyword",x(Ie)}function _t(T,F){if(F=="from")return k.marked="keyword",x(me)}function tt(T){return T=="]"?x():O(je(Ne,"]"))}function Mr(){return O(ae("form"),Gt,be("{"),ae("}"),je(An,"}"),le,le)}function An(){return O(Gt,kr)}function Qi(T,F){return T.lastType=="operator"||T.lastType==","||P.test(F.charAt(0))||/[,.]/.test(F.charAt(0))}function pe(T,F,fe){return F.tokenize==L&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(F.lastType)||F.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(fe||0)))}return{startState:function(T){var F={tokenize:L,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"&&(F.globalVars=u.globalVars),F},token:function(T,F){if(T.sol()&&(F.lexical.hasOwnProperty("align")||(F.lexical.align=!1),F.indented=T.indentation(),J(T,F)),F.tokenize!=Z&&T.eatSpace())return null;var fe=F.tokenize(T,F);return D=="comment"?fe:(F.lastType=D=="operator"&&(H=="++"||H=="--")?"incdec":D,ee(F,fe,D,H,T))},indent:function(T,F){if(T.tokenize==Z||T.tokenize==_)return l.Pass;if(T.tokenize!=L)return 0;var fe=F&&F.charAt(0),ye=T.lexical,Ue;if(!/^\s*else\b/.test(F))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(F));)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+(Qi(T,F)?d||f:0):ye.info=="switch"&&!sr&&u.doubleIndentSwitch!=!1?ye.indented+(/^(?:case|default)\b/.test(F)?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 vx={exports:{}};(function(r,n){(function(l){l(En.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||{},W=Q.mediaFeatures||{},$=Q.mediaValueKeywords||{},se=Q.propertyKeywords||{},de=Q.nonStandardPropertyKeywords||{},Ke=Q.fontProperties||{},Ve=Q.counterDescriptors||{},Le=Q.colorKeywords||{},Ge=Q.valueKeywords||{},ne=Q.allowNested,ae=Q.lineComment,le=Q.supportsAtComponent===!0,be=ie.highlightNonStandardPropertyKeywords!==!1,Re,ke;function me(N,q){return Re=q,N}function Ne(N,q){var G=N.next();if(O[G]){var Se=O[G](N,q);if(Se!==!1)return Se}if(G=="@")return N.eatWhile(/[\w\\\-]/),me("def",N.current());if(G=="="||(G=="~"||G=="|")&&N.eat("="))return me(null,"compare");if(G=='"'||G=="'")return q.tokenize=R(G),q.tokenize(N,q);if(G=="#")return N.eatWhile(/[\w\\\-]/),me("atom","hash");if(G=="!")return N.match(/^\s*\w*/),me("keyword","important");if(/\d/.test(G)||G=="."&&N.eat(/\d/))return N.eatWhile(/[\w.%]/),me("number","unit");if(G==="-"){if(/[\d.]/.test(N.peek()))return N.eatWhile(/[\w.%]/),me("number","unit");if(N.match(/^-[\w\\\-]*/))return N.eatWhile(/[\w\\\-]/),N.match(/^\s*:/,!1)?me("variable-2","variable-definition"):me("variable-2","variable");if(N.match(/^\w+-/))return me("meta","meta")}else return/[,+>*\/]/.test(G)?me(null,"select-op"):G=="."&&N.match(/^-?[_a-z][_a-z0-9-]*/i)?me("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(G)?me(null,G):N.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(N.current())&&(q.tokenize=K),me("variable callee","variable")):/[\w\\\-]/.test(G)?(N.eatWhile(/[\w\\\-]/),me("property","word")):me(null,null)}function R(N){return function(q,G){for(var Se=!1,De;(De=q.next())!=null;){if(De==N&&!Se){N==")"&&q.backUp(1);break}Se=!Se&&De=="\\"}return(De==N||!Se&&N!=")")&&(G.tokenize=null),me("string","string")}}function K(N,q){return N.next(),N.match(/^\s*[\"\')]/,!1)?q.tokenize=null:q.tokenize=R(")"),me(null,"(")}function X(N,q,G){this.type=N,this.indent=q,this.prev=G}function oe(N,q,G,Se){return N.context=new X(G,q.indentation()+(Se===!1?0:k),N.context),G}function ue(N){return N.context.prev&&(N.context=N.context.prev),N.context.type}function ge(N,q,G){return he[G.context.type](N,q,G)}function Ce(N,q,G,Se){for(var De=Se||1;De>0;De--)G.context=G.context.prev;return ge(N,q,G)}function we(N){var q=N.current().toLowerCase();Ge.hasOwnProperty(q)?ke="atom":Le.hasOwnProperty(q)?ke="keyword":ke="variable"}var he={};return he.top=function(N,q,G){if(N=="{")return oe(G,q,"block");if(N=="}"&&G.context.prev)return ue(G);if(le&&/@component/i.test(N))return oe(G,q,"atComponentBlock");if(/^@(-moz-)?document$/i.test(N))return oe(G,q,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(N))return oe(G,q,"atBlock");if(/^@(font-face|counter-style)/i.test(N))return G.stateArg=N,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(N))return"keyframes";if(N&&N.charAt(0)=="@")return oe(G,q,"at");if(N=="hash")ke="builtin";else if(N=="word")ke="tag";else{if(N=="variable-definition")return"maybeprop";if(N=="interpolation")return oe(G,q,"interpolation");if(N==":")return"pseudo";if(ne&&N=="(")return oe(G,q,"parens")}return G.context.type},he.block=function(N,q,G){if(N=="word"){var Se=q.current().toLowerCase();return se.hasOwnProperty(Se)?(ke="property","maybeprop"):de.hasOwnProperty(Se)?(ke=be?"string-2":"property","maybeprop"):ne?(ke=q.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ke+=" error","maybeprop")}else return N=="meta"?"block":!ne&&(N=="hash"||N=="qualifier")?(ke="error","block"):he.top(N,q,G)},he.maybeprop=function(N,q,G){return N==":"?oe(G,q,"prop"):ge(N,q,G)},he.prop=function(N,q,G){if(N==";")return ue(G);if(N=="{"&&ne)return oe(G,q,"propBlock");if(N=="}"||N=="{")return Ce(N,q,G);if(N=="(")return oe(G,q,"parens");if(N=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(q.current()))ke+=" error";else if(N=="word")we(q);else if(N=="interpolation")return oe(G,q,"interpolation");return"prop"},he.propBlock=function(N,q,G){return N=="}"?ue(G):N=="word"?(ke="property","maybeprop"):G.context.type},he.parens=function(N,q,G){return N=="{"||N=="}"?Ce(N,q,G):N==")"?ue(G):N=="("?oe(G,q,"parens"):N=="interpolation"?oe(G,q,"interpolation"):(N=="word"&&we(q),"parens")},he.pseudo=function(N,q,G){return N=="meta"?"pseudo":N=="word"?(ke="variable-3",G.context.type):ge(N,q,G)},he.documentTypes=function(N,q,G){return N=="word"&&x.hasOwnProperty(q.current())?(ke="tag",G.context.type):he.atBlock(N,q,G)},he.atBlock=function(N,q,G){if(N=="(")return oe(G,q,"atBlock_parens");if(N=="}"||N==";")return Ce(N,q,G);if(N=="{")return ue(G)&&oe(G,q,ne?"block":"top");if(N=="interpolation")return oe(G,q,"interpolation");if(N=="word"){var Se=q.current().toLowerCase();Se=="only"||Se=="not"||Se=="and"||Se=="or"?ke="keyword":z.hasOwnProperty(Se)?ke="attribute":W.hasOwnProperty(Se)?ke="property":$.hasOwnProperty(Se)?ke="keyword":se.hasOwnProperty(Se)?ke="property":de.hasOwnProperty(Se)?ke=be?"string-2":"property":Ge.hasOwnProperty(Se)?ke="atom":Le.hasOwnProperty(Se)?ke="keyword":ke="error"}return G.context.type},he.atComponentBlock=function(N,q,G){return N=="}"?Ce(N,q,G):N=="{"?ue(G)&&oe(G,q,ne?"block":"top",!1):(N=="word"&&(ke="error"),G.context.type)},he.atBlock_parens=function(N,q,G){return N==")"?ue(G):N=="{"||N=="}"?Ce(N,q,G,2):he.atBlock(N,q,G)},he.restricted_atBlock_before=function(N,q,G){return N=="{"?oe(G,q,"restricted_atBlock"):N=="word"&&G.stateArg=="@counter-style"?(ke="variable","restricted_atBlock_before"):ge(N,q,G)},he.restricted_atBlock=function(N,q,G){return N=="}"?(G.stateArg=null,ue(G)):N=="word"?(G.stateArg=="@font-face"&&!Ke.hasOwnProperty(q.current().toLowerCase())||G.stateArg=="@counter-style"&&!Ve.hasOwnProperty(q.current().toLowerCase())?ke="error":ke="property","maybeprop"):"restricted_atBlock"},he.keyframes=function(N,q,G){return N=="word"?(ke="variable","keyframes"):N=="{"?oe(G,q,"top"):ge(N,q,G)},he.at=function(N,q,G){return N==";"?ue(G):N=="{"||N=="}"?Ce(N,q,G):(N=="word"?ke="tag":N=="hash"&&(ke="builtin"),"at")},he.interpolation=function(N,q,G){return N=="}"?ue(G):N=="{"||N==";"?Ce(N,q,G):(N=="word"?ke="variable":N!="variable"&&N!="("&&N!=")"&&(ke="error"),"interpolation")},{startState:function(N){return{tokenize:null,state:ee?"block":"top",stateArg:null,context:new X(ee?"block":"top",N||0,null)}},token:function(N,q){if(!q.tokenize&&N.eatSpace())return null;var G=(q.tokenize||Ne)(N,q);return G&&typeof G=="object"&&(Re=G[1],G=G[0]),ke=G,Re!="comment"&&(q.state=he[q.state](Re,N,q)),ke},indent:function(N,q){var G=N.context,Se=q&&q.charAt(0),De=G.indent;return G.type=="prop"&&(Se=="}"||Se==")")&&(G=G.prev),G.prev&&(Se=="}"&&(G.type=="block"||G.type=="top"||G.type=="interpolation"||G.type=="restricted_atBlock")?(G=G.prev,De=G.indent):(Se==")"&&(G.type=="parens"||G.type=="atBlock_parens")||Se=="{"&&(G.type=="at"||G.type=="atBlock"))&&(De=Math.max(0,G.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),y=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],w=s(y),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),E=["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"],j=s(E),D=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],H=s(D),A=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],L=s(A),B=["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"],Z=s(B),_=["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","conic-gradient","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","repeating-conic-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(y).concat(C).concat(E).concat(B).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:j,fontProperties:H,counterDescriptors:L,colorKeywords:Z,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:j,colorKeywords:Z,valueKeywords:V,fontProperties:H,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:j,colorKeywords:Z,valueKeywords:V,fontProperties:H,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:j,fontProperties:H,counterDescriptors:L,colorKeywords:Z,valueKeywords:V,supportsAtComponent:!0,tokenHooks:{"/":function(ie,Q){return ie.eat("*")?(Q.tokenize=te,te(ie,Q)):!1}},name:"css",helperType:"gss"})})})();var Wp={exports:{}};(function(r,n){(function(l){l(En.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 y in m)p[y]=m[y];for(var y in d)p[y]=d[y];var w,C;function P(x,z){function W(de){return z.tokenize=de,de(x,z)}var $=x.next();if($=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?W(D("atom","]]>")):null:x.match("--")?W(D("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),W(H(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),z.tokenize=D("meta","?>"),"meta"):(w=x.eat("/")?"closeTag":"openTag",z.tokenize=E,"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 E(x,z){var W=x.next();if(W==">"||W=="/"&&x.eat(">"))return z.tokenize=P,w=W==">"?"endTag":"selfcloseTag","tag bracket";if(W=="=")return w="equals",null;if(W=="<"){z.tokenize=P,z.state=_,z.tagName=z.tagStart=null;var $=z.tokenize(x,z);return $?$+" tag error":"tag error"}else return/[\'\"]/.test(W)?(z.tokenize=j(W),z.stringStartCol=x.column(),z.tokenize(x,z)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function j(x){var z=function(W,$){for(;!W.eol();)if(W.next()==x){$.tokenize=E;break}return"string"};return z.isInAttribute=!0,z}function D(x,z){return function(W,$){for(;!W.eol();){if(W.match(z)){$.tokenize=P;break}W.next()}return x}}function H(x){return function(z,W){for(var $;($=z.next())!=null;){if($=="<")return W.tokenize=H(x+1),W.tokenize(z,W);if($==">")if(x==1){W.tokenize=P;break}else return W.tokenize=H(x-1),W.tokenize(z,W)}return"meta"}}function A(x){return x&&x.toLowerCase()}function L(x,z,W){this.prev=x.context,this.tagName=z||"",this.indent=x.indented,this.startOfLine=W,(p.doNotIndent.hasOwnProperty(z)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function B(x){x.context&&(x.context=x.context.prev)}function Z(x,z){for(var W;;){if(!x.context||(W=x.context.tagName,!p.contextGrabbers.hasOwnProperty(A(W))||!p.contextGrabbers[A(W)].hasOwnProperty(A(z))))return;B(x)}}function _(x,z,W){return x=="openTag"?(W.tagStart=z.column(),V):x=="closeTag"?J:_}function V(x,z,W){return x=="word"?(W.tagName=z.current(),C="tag",Q):p.allowMissingTagName&&x=="endTag"?(C="tag bracket",Q(x,z,W)):(C="error",V)}function J(x,z,W){if(x=="word"){var $=z.current();return W.context&&W.context.tagName!=$&&p.implicitlyClosed.hasOwnProperty(A(W.context.tagName))&&B(W),W.context&&W.context.tagName==$||p.matchClosing===!1?(C="tag",te):(C="tag error",ie)}else return p.allowMissingTagName&&x=="endTag"?(C="tag bracket",te(x,z,W)):(C="error",ie)}function te(x,z,W){return x!="endTag"?(C="error",te):(B(W),_)}function ie(x,z,W){return C="error",te(x,z,W)}function Q(x,z,W){if(x=="word")return C="attribute",ee;if(x=="endTag"||x=="selfcloseTag"){var $=W.tagName,se=W.tagStart;return W.tagName=W.tagStart=null,x=="selfcloseTag"||p.autoSelfClosers.hasOwnProperty(A($))?Z(W,$):(Z(W,$),W.context=new L(W,$,se==W.indented)),_}return C="error",Q}function ee(x,z,W){return x=="equals"?k:(p.allowMissing||(C="error"),Q(x,z,W))}function k(x,z,W){return x=="string"?O:x=="word"&&p.allowUnquoted?(C="string",Q):(C="error",Q(x,z,W))}function O(x,z,W){return x=="string"?O:Q(x,z,W)}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 W=z.tokenize(x,z);return(W||w)&&W!="comment"&&(C=null,z.state=z.state(w||W,x,z),C&&(W=C=="error"?W+" error":C)),W},indent:function(x,z,W){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!=E&&x.tokenize!=P)return W?W.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(A($.tagName)))$=$.prev;else break;else if(se)for(;$;){var de=p.contextGrabbers[A($.tagName)];if(de&&de.hasOwnProperty(A(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=[],W=x.context;W;W=W.prev)z.push(W.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(En.exports,Wp.exports,Bp.exports,vx.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 E=w.current(),j=E.search(C);return j>-1?w.backUp(E.length-j):E.match(/<\/?$/)&&(w.backUp(E.length),w.match(C,!1)||w.match(E)),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 E=C[P]||(C[P]=[]),j=w[P],D=j.length-1;D>=0;D--)E.unshift(j[D])}function y(w,C){for(var P=0;P<w.length;P++){var E=w[P];if(!E[0]||E[1].test(v(C,E[0])))return E[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}),E={},j=C&&C.tags,D=C&&C.scriptTypes;if(m(s,E),j&&m(j,E),D)for(var H=D.length-1;H>=0;H--)E.script.unshift(["type",D[H].matches,D[H].mode]);function A(L,B){var Z=P.token(L,B.htmlState),_=/\btag\b/.test(Z),V;if(_&&!/[<>\s\/]/.test(L.current())&&(V=B.htmlState.tagName&&B.htmlState.tagName.toLowerCase())&&E.hasOwnProperty(V))B.inTag=V+" ";else if(B.inTag&&_&&/>$/.test(L.current())){var J=/^([\S]+) (.*)/.exec(B.inTag);B.inTag=null;var te=L.current()==">"&&y(E[J[1]],J[2]),ie=l.getMode(w,te),Q=p(J[1],!0),ee=p(J[1],!1);B.token=function(k,O){return k.match(Q,!1)?(O.token=A,O.localState=O.localMode=null,null):u(k,ee,O.localMode.token(k,O.localState))},B.localMode=ie,B.localState=l.startState(ie,P.indent(B.htmlState,"",""))}else B.inTag&&(B.inTag+=L.current(),L.eol()&&(B.inTag+=" "));return Z}return{startState:function(){var L=l.startState(P);return{token:A,inTag:null,localMode:null,localState:null,htmlState:L}},copyState:function(L){var B;return L.localState&&(B=l.copyState(L.localMode,L.localState)),{token:L.token,inTag:L.inTag,localMode:L.localMode,localState:B,htmlState:l.copyState(P,L.htmlState)}},token:function(L,B){return B.token(L,B)},indent:function(L,B,Z){return!L.localMode||/^\s*<\//.test(B)?P.indent(L.htmlState,B,Z):L.localMode.indent?L.localMode.indent(L.localState,B,Z):l.Pass},innerMode:function(L){return{state:L.localState||L.htmlState,mode:L.localMode||P}}}},"xml","javascript","css"),l.defineMIME("text/html","htmlmixed")})})();(function(r,n){(function(l){l(En.exports,Wp.exports,Bp.exports)})(function(l){function s(f,d,v,p){this.state=f,this.mode=d,this.depth=v,this.prev=p}function u(f){return new s(l.copyState(f.mode,f.state),f.mode,f.depth,f.prev&&u(f.prev))}l.defineMode("jsx",function(f,d){var v=l.getMode(f,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),p=l.getMode(f,d&&d.base||"javascript");function m(P){var E=P.tagName;P.tagName=null;var j=v.indent(P,"","");return P.tagName=E,j}function y(P,E){return E.context.mode==v?w(P,E,E.context):C(P,E,E.context)}function w(P,E,j){if(j.depth==2)return P.match(/^.*?\*\//)?j.depth=1:P.skipToEnd(),"comment";if(P.peek()=="{"){v.skipAttribute(j.state);var D=m(j.state),H=j.state.context;if(H&&P.match(/^[^>]*>\s*$/,!1)){for(;H.prev&&!H.startOfLine;)H=H.prev;H.startOfLine?D-=f.indentUnit:j.prev.state.lexical&&(D=j.prev.state.lexical.indented)}else j.depth==1&&(D+=f.indentUnit);return E.context=new s(l.startState(p,D),p,0,E.context),null}if(j.depth==1){if(P.peek()=="<")return v.skipAttribute(j.state),E.context=new s(l.startState(v,m(j.state)),v,0,E.context),null;if(P.match("//"))return P.skipToEnd(),"comment";if(P.match("/*"))return j.depth=2,y(P,E)}var A=v.token(P,j.state),L=P.current(),B;return/\btag\b/.test(A)?/>$/.test(L)?j.state.context?j.depth=0:E.context=E.context.prev:/^</.test(L)&&(j.depth=1):!A&&(B=L.indexOf("{"))>-1&&P.backUp(L.length-B),A}function C(P,E,j){if(P.peek()=="<"&&p.expressionAllowed(P,j.state))return E.context=new s(l.startState(v,p.indent(j.state,"","")),v,0,E.context),p.skipExpression(j.state),null;var D=p.token(P,j.state);if(!D&&j.depth!=null){var H=P.current();H=="{"?j.depth++:H=="}"&&--j.depth==0&&(E.context=E.context.prev)}return D}return{startState:function(){return{context:new s(l.startState(p),p)}},copyState:function(P){return{context:u(P.context)}},token:y,indent:function(P,E,j){return P.context.mode.indent(P.context.state,E,j)},innerMode:function(P){return P.context}}},"xml","javascript"),l.defineMIME("text/jsx","jsx"),l.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(r,n){(function(l){l(En.exports)})(function(l){l.defineOption("placeholder","",function(m,y,w){var C=w&&w!=l.Init;if(y&&!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(!y&&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","")}y&&!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 y=m.state.placeholder=document.createElement("pre");y.style.cssText="height: 0; overflow: visible",y.style.direction=m.getOption("direction"),y.className="CodeMirror-placeholder CodeMirror-line-like";var w=m.getOption("placeholder");typeof w=="string"&&(w=document.createTextNode(w)),y.appendChild(w),m.display.lineSpace.insertBefore(y,m.display.lineSpace.firstChild)}function f(m){setTimeout(function(){var y=!1;if(m.lineCount()==1){var w=m.getInputField();y=w.nodeName=="TEXTAREA"?!m.getLine(0).length:!/[^\u200b]/.test(w.querySelector(".CodeMirror-line").textContent)}y?u(m):s(m)},20)}function d(m){p(m)&&u(m)}function v(m){var y=m.getWrapperElement(),w=p(m);y.className=y.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 jp=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ui=r=>jp?Symbol(r):"_vr_"+r,gx=Ui("rvlm"),jd=Ui("rvd"),Uu=Ui("r"),Gu=Ui("rl"),ru=Ui("rvl"),Ei=typeof window!="undefined";function mx(r){return r.__esModule||jp&&r[Symbol.toStringTag]==="Module"}const lt=Object.assign;function Nl(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 jo=()=>{},yx=/\/$/,bx=r=>r.replace(yx,"");function Il(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=Cx(s!=null?s:n,l),{fullPath:s+(f&&"?")+f+d,path:s,query:u,hash:d}}function xx(r,n){const l=n.query?r(n.query):"";return n.path+(l&&"?")+l+(n.hash||"")}function Kd(r,n){return!n||!r.toLowerCase().startsWith(n.toLowerCase())?r:r.slice(n.length)||"/"}function wx(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])&&Kp(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 Kp(r,n){if(Object.keys(r).length!==Object.keys(n).length)return!1;for(const l in r)if(!Sx(r[l],n[l]))return!1;return!0}function Sx(r,n){return Array.isArray(r)?Ud(r,n):Array.isArray(n)?Ud(n,r):r===n}function Ud(r,n){return Array.isArray(n)?r.length===n.length&&r.every((l,s)=>l===n[s]):r.length===1&&r[0]===n}function Cx(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 Zo;(function(r){r.pop="pop",r.push="push"})(Zo||(Zo={}));var Ko;(function(r){r.back="back",r.forward="forward",r.unknown=""})(Ko||(Ko={}));function Tx(r){if(!r)if(Ei){const n=document.querySelector("base");r=n&&n.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),bx(r)}const Px=/^[^#]+#/;function Ox(r,n){return r.replace(Px,"#")+n}function kx(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 Ex(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=kx(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 Gd(r,n){return(history.state?history.state.position-n:-1)+r}const nu=new Map;function Mx(r,n){nu.set(r,n)}function Ax(r){const n=nu.get(r);return nu.delete(r),n}let Lx=()=>location.protocol+"//"+location.host;function Up(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),Kd(p,"")}return Kd(l,r)+s+u}function Nx(r,n,l,s){let u=[],f=[],d=null;const v=({state:C})=>{const P=Up(r,location),E=l.value,j=n.value;let D=0;if(C){if(l.value=P,n.value=C,d&&d===E){d=null;return}D=j?C.position-j.position:0}else s(P);u.forEach(H=>{H(l.value,E,{delta:D,type:Zo.pop,direction:D?D>0?Ko.forward:Ko.back:Ko.unknown})})};function p(){d=l.value}function m(C){u.push(C);const P=()=>{const E=u.indexOf(C);E>-1&&u.splice(E,1)};return f.push(P),P}function y(){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",y)}return window.addEventListener("popstate",v),window.addEventListener("beforeunload",y),{pauseListeners:p,listen:m,destroy:w}}function $d(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 Ix(r){const{history:n,location:l}=window,s={value:Up(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,y){const w=r.indexOf("#"),C=w>-1?(l.host&&document.querySelector("base")?r:r.slice(w))+p:Lx()+r+p;try{n[y?"replaceState":"pushState"](m,"",C),u.value=m}catch(P){console.error(P),l[y?"replace":"assign"](C)}}function d(p,m){const y=lt({},n.state,$d(u.value.back,p,u.value.forward,!0),m,{position:u.value.position});f(p,y,!0),s.value=p}function v(p,m){const y=lt({},u.value,n.state,{forward:p,scroll:Aa()});f(y.current,y,!0);const w=lt({},$d(s.value,p,null),{position:y.position+1},m);f(p,w,!1),s.value=p}return{location:s,state:u,push:v,replace:d}}function Rx(r){r=Tx(r);const n=Ix(r),l=Nx(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:Ox.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 Mw(r){return r=location.host?r||location.pathname+location.search:"",r.includes("#")||(r+="#"),Rx(r)}function Dx(r){return typeof r=="string"||r&&typeof r=="object"}function Gp(r){return typeof r=="string"||typeof r=="symbol"}const pn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},$p=Ui("nf");var Yd;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(Yd||(Yd={}));function Wi(r,n){return lt(new Error,{type:r,[$p]:!0},n)}function Un(r,n){return r instanceof Error&&$p in r&&(n==null||!!(r.type&n))}const Xd="[^/]+?",Fx={sensitive:!1,strict:!1,start:!0,end:!0},zx=/[.+*?^${}()[\]/\\]/g;function Hx(r,n){const l=lt({},Fx,n),s=[];let u=l.start?"^":"";const f=[];for(const m of r){const y=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(zx,"\\$&"),P+=40;else if(C.type===1){const{value:E,repeatable:j,optional:D,regexp:H}=C;f.push({name:E,repeatable:j,optional:D});const A=H||Xd;if(A!==Xd){P+=10;try{new RegExp(`(${A})`)}catch(B){throw new Error(`Invalid custom RegExp for param "${E}" (${A}): `+B.message)}}let L=j?`((?:${A})(?:/(?:${A}))*)`:`(${A})`;w||(L=D&&m.length<2?`(?:/${L})`:"/"+L),D&&(L+="?"),u+=L,P+=20,D&&(P+=-8),j&&(P+=-20),A===".*"&&(P+=-50)}y.push(P)}s.push(y)}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 y=m.match(d),w={};if(!y)return null;for(let C=1;C<y.length;C++){const P=y[C]||"",E=f[C-1];w[E.name]=P&&E.repeatable?P.split("/"):P}return w}function p(m){let y="",w=!1;for(const C of r){(!w||!y.endsWith("/"))&&(y+="/"),w=!1;for(const P of C)if(P.type===0)y+=P.value;else if(P.type===1){const{value:E,repeatable:j,optional:D}=P,H=E in m?m[E]:"";if(Array.isArray(H)&&!j)throw new Error(`Provided param "${E}" is an array but it is not repeatable (* or + modifiers)`);const A=Array.isArray(H)?H.join("/"):H;if(!A)if(D)C.length<2&&(y.endsWith("/")?y=y.slice(0,-1):w=!0);else throw new Error(`Missing required param "${E}"`);y+=A}}return y}return{re:d,score:s,keys:f,parse:v,stringify:p}}function Bx(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 Wx(r,n){let l=0;const s=r.score,u=n.score;for(;l<s.length&&l<u.length;){const f=Bx(s[l],u[l]);if(f)return f;l++}return u.length-s.length}const jx={type:0,value:""},Kx=/[a-zA-Z0-9_]/;function Ux(r){if(!r)return[[]];if(r==="/")return[[jx]];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="",y="";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:y,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:Kx.test(p)?C():(w(),l=0,p!=="*"&&p!=="?"&&p!=="+"&&v--);break;case 2:p===")"?y[y.length-1]=="\\"?y=y.slice(0,-1)+p:l=3:y+=p;break;case 3:w(),l=0,p!=="*"&&p!=="?"&&p!=="+"&&v--,y="";break;default:n("Unknown state");break}}return l===2&&n(`Unfinished custom RegExp for param "${m}"`),w(),d(),u}function Gx(r,n,l){const s=Hx(Ux(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 $x(r,n){const l=[],s=new Map;n=Jd({strict:!1,end:!0,sensitive:!1},n);function u(y){return s.get(y)}function f(y,w,C){const P=!C,E=Xx(y);E.aliasOf=C&&C.record;const j=Jd(n,y),D=[E];if("alias"in y){const L=typeof y.alias=="string"?[y.alias]:y.alias;for(const B of L)D.push(lt({},E,{components:C?C.record.components:E.components,path:B,aliasOf:C?C.record:E}))}let H,A;for(const L of D){const{path:B}=L;if(w&&B[0]!=="/"){const Z=w.record.path,_=Z[Z.length-1]==="/"?"":"/";L.path=w.record.path+(B&&_+B)}if(H=Gx(L,w,j),C?C.alias.push(H):(A=A||H,A!==H&&A.alias.push(H),P&&y.name&&!Vd(H)&&d(y.name)),"children"in E){const Z=E.children;for(let _=0;_<Z.length;_++)f(Z[_],H,C&&C.children[_])}C=C||H,p(H)}return A?()=>{d(A)}:jo}function d(y){if(Gp(y)){const w=s.get(y);w&&(s.delete(y),l.splice(l.indexOf(w),1),w.children.forEach(d),w.alias.forEach(d))}else{const w=l.indexOf(y);w>-1&&(l.splice(w,1),y.record.name&&s.delete(y.record.name),y.children.forEach(d),y.alias.forEach(d))}}function v(){return l}function p(y){let w=0;for(;w<l.length&&Wx(y,l[w])>=0;)w++;l.splice(w,0,y),y.record.name&&!Vd(y)&&s.set(y.record.name,y)}function m(y,w){let C,P={},E,j;if("name"in y&&y.name){if(C=s.get(y.name),!C)throw Wi(1,{location:y});j=C.record.name,P=lt(Yx(w.params,C.keys.filter(A=>!A.optional).map(A=>A.name)),y.params),E=C.stringify(P)}else if("path"in y)E=y.path,C=l.find(A=>A.re.test(E)),C&&(P=C.parse(E),j=C.record.name);else{if(C=w.name?s.get(w.name):l.find(A=>A.re.test(w.path)),!C)throw Wi(1,{location:y,currentLocation:w});j=C.record.name,P=lt({},w.params,y.params),E=C.stringify(P)}const D=[];let H=C;for(;H;)D.unshift(H.record),H=H.parent;return{name:j,path:E,params:P,matched:D,meta:Jx(D)}}return r.forEach(y=>f(y)),{addRoute:f,resolve:m,removeRoute:d,getRoutes:v,getRecordMatcher:u}}function Yx(r,n){const l={};for(const s of n)s in r&&(l[s]=r[s]);return l}function Xx(r){return{path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:void 0,beforeEnter:r.beforeEnter,props:Vx(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||{}:{default:r.component}}}function Vx(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 Vd(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function Jx(r){return r.reduce((n,l)=>lt(n,l.meta),{})}function Jd(r,n){const l={};for(const s in r)l[s]=s in n?n[s]:r[s];return l}const Yp=/#/g,Zx=/&/g,Qx=/\//g,qx=/=/g,_x=/\?/g,Xp=/\+/g,ew=/%5B/g,tw=/%5D/g,Vp=/%5E/g,rw=/%60/g,Jp=/%7B/g,nw=/%7C/g,Zp=/%7D/g,iw=/%20/g;function $u(r){return encodeURI(""+r).replace(nw,"|").replace(ew,"[").replace(tw,"]")}function ow(r){return $u(r).replace(Jp,"{").replace(Zp,"}").replace(Vp,"^")}function iu(r){return $u(r).replace(Xp,"%2B").replace(iw,"+").replace(Yp,"%23").replace(Zx,"%26").replace(rw,"`").replace(Jp,"{").replace(Zp,"}").replace(Vp,"^")}function sw(r){return iu(r).replace(qx,"%3D")}function aw(r){return $u(r).replace(Yp,"%23").replace(_x,"%3F")}function lw(r){return r==null?"":aw(r).replace(Qx,"%2F")}function ua(r){try{return decodeURIComponent(""+r)}catch{}return""+r}function uw(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(Xp," "),d=f.indexOf("="),v=ua(d<0?f:f.slice(0,d)),p=d<0?null:ua(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 Zd(r){let n="";for(let l in r){const s=r[l];if(l=sw(l),s==null){s!==void 0&&(n+=(n.length?"&":"")+l);continue}(Array.isArray(s)?s.map(f=>f&&iu(f)):[s&&iu(s)]).forEach(f=>{f!==void 0&&(n+=(n.length?"&":"")+l,f!=null&&(n+="="+f))})}return n}function fw(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 Eo(){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 mn(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):Dx(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 y=Promise.resolve(m);r.length<3&&(y=y.then(p)),y.catch(w=>v(w))})}function Rl(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(cw(v)){const m=(v.__vccOpts||v)[n];m&&u.push(mn(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 y=mx(m)?m.default:m;f.components[d]=y;const C=(y.__vccOpts||y)[n];return C&&mn(C,l,s,f,d)()}))}}return u}function cw(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function Qd(r){const n=Or(Uu),l=Or(Gu),s=Bt(()=>n.resolve(ut(r.to))),u=Bt(()=>{const{matched:p}=s.value,{length:m}=p,y=p[m-1],w=l.matched;if(!y||!w.length)return-1;const C=w.findIndex(Bi.bind(null,y));if(C>-1)return C;const P=qd(p[m-2]);return m>1&&qd(y)===P&&w[w.length-1].path!==P?w.findIndex(Bi.bind(null,p[m-2])):C}),f=Bt(()=>u.value>-1&&vw(l.params,s.value.params)),d=Bt(()=>u.value>-1&&u.value===l.matched.length-1&&Kp(l.params,s.value.params));function v(p={}){return pw(p)?n[ut(r.replace)?"replace":"push"](ut(r.to)).catch(jo):Promise.resolve()}return{route:s,href:Bt(()=>s.value.href),isActive:f,isExactActive:d,navigate:v}}const dw=is({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Qd,setup(r,{slots:n}){const l=ji(Qd(r)),{options:s}=Or(Uu),u=Bt(()=>({[_d(r.activeClass,s.linkActiveClass,"router-link-active")]:l.isActive,[_d(r.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:l.isExactActive}));return()=>{const f=n.default&&n.default(l);return r.custom?f:ka("a",{"aria-current":l.isExactActive?r.ariaCurrentValue:null,href:l.href,onClick:l.navigate,class:u.value},f)}}}),hw=dw;function pw(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 vw(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 qd(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const _d=(r,n,l)=>r!=null?r:n!=null?n:l,gw=is({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(r,{attrs:n,slots:l}){const s=Or(ru),u=Bt(()=>r.route||s.value),f=Or(jd,0),d=Bt(()=>u.value.matched[f]);zo(jd,f+1),zo(gx,d),zo(ru,u);const v=Lt();return Ut(()=>[v.value,d.value,r.name],([p,m,y],[w,C,P])=>{m&&(m.instances[y]=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[y]||[]).forEach(E=>E(p))},{flush:"post"}),()=>{const p=u.value,m=d.value,y=m&&m.components[r.name],w=r.name;if(!y)return eh(l.default,{Component:y,route:p});const C=m.props[r.name],P=C?C===!0?p.params:typeof C=="function"?C(p):C:null,j=ka(y,lt({},P,n,{onVnodeUnmounted:D=>{D.component.isUnmounted&&(m.instances[w]=null)},ref:v}));return eh(l.default,{Component:j,route:p})||j}}});function eh(r,n){if(!r)return null;const l=r(n);return l.length===1?l[0]:l}const mw=gw;function Aw(r){const n=$x(r.routes,r),l=r.parseQuery||uw,s=r.stringifyQuery||Zd,u=r.history,f=Eo(),d=Eo(),v=Eo(),p=$o(pn);let m=pn;Ei&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const y=Nl.bind(null,ne=>""+ne),w=Nl.bind(null,lw),C=Nl.bind(null,ua);function P(ne,ae){let le,be;return Gp(ne)?(le=n.getRecordMatcher(ne),be=ae):be=ne,n.addRoute(be,le)}function E(ne){const ae=n.getRecordMatcher(ne);ae&&n.removeRoute(ae)}function j(){return n.getRoutes().map(ne=>ne.record)}function D(ne){return!!n.getRecordMatcher(ne)}function H(ne,ae){if(ae=lt({},ae||p.value),typeof ne=="string"){const Ne=Il(l,ne,ae.path),R=n.resolve({path:Ne.path},ae),K=u.createHref(Ne.fullPath);return lt(Ne,R,{params:C(R.params),hash:ua(Ne.hash),redirectedFrom:void 0,href:K})}let le;if("path"in ne)le=lt({},ne,{path:Il(l,ne.path,ae.path).path});else{const Ne=lt({},ne.params);for(const R in Ne)Ne[R]==null&&delete Ne[R];le=lt({},ne,{params:w(ne.params)}),ae.params=w(ae.params)}const be=n.resolve(le,ae),Re=ne.hash||"";be.params=y(C(be.params));const ke=xx(s,lt({},ne,{hash:ow(Re),path:be.path})),me=u.createHref(ke);return lt({fullPath:ke,hash:Re,query:s===Zd?fw(ne.query):ne.query||{}},be,{redirectedFrom:void 0,href:me})}function A(ne){return typeof ne=="string"?Il(l,ne,p.value.path):lt({},ne)}function L(ne,ae){if(m!==ne)return Wi(8,{from:ae,to:ne})}function B(ne){return V(ne)}function Z(ne){return B(lt(A(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=A(be):{path:be},be.params={}),lt({query:ne.query,hash:ne.hash,params:ne.params},be)}}function V(ne,ae){const le=m=H(ne),be=p.value,Re=ne.state,ke=ne.force,me=ne.replace===!0,Ne=_(le);if(Ne)return V(lt(A(Ne),{state:Re,force:ke,replace:me}),ae||le);const R=le;R.redirectedFrom=ae;let K;return!ke&&wx(s,be,le)&&(K=Wi(16,{to:R,from:be}),de(be,be,!0,!1)),(K?Promise.resolve(K):te(R,be)).catch(X=>Un(X)?X:W(X,R,be)).then(X=>{if(X){if(Un(X,2))return V(lt(A(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=L(ne,ae);return le?Promise.reject(le):Promise.resolve()}function te(ne,ae){let le;const[be,Re,ke]=yw(ne,ae);le=Rl(be.reverse(),"beforeRouteLeave",ne,ae);for(const Ne of be)Ne.leaveGuards.forEach(R=>{le.push(mn(R,ne,ae))});const me=J.bind(null,ne,ae);return le.push(me),Ti(le).then(()=>{le=[];for(const Ne of f.list())le.push(mn(Ne,ne,ae));return le.push(me),Ti(le)}).then(()=>{le=Rl(Re,"beforeRouteUpdate",ne,ae);for(const Ne of Re)Ne.updateGuards.forEach(R=>{le.push(mn(R,ne,ae))});return le.push(me),Ti(le)}).then(()=>{le=[];for(const Ne of ne.matched)if(Ne.beforeEnter&&!ae.matched.includes(Ne))if(Array.isArray(Ne.beforeEnter))for(const R of Ne.beforeEnter)le.push(mn(R,ne,ae));else le.push(mn(Ne.beforeEnter,ne,ae));return le.push(me),Ti(le)}).then(()=>(ne.matched.forEach(Ne=>Ne.enterCallbacks={}),le=Rl(ke,"beforeRouteEnter",ne,ae),le.push(me),Ti(le))).then(()=>{le=[];for(const Ne of d.list())le.push(mn(Ne,ne,ae));return le.push(me),Ti(le)}).catch(Ne=>Un(Ne,8)?Ne:Promise.reject(Ne))}function ie(ne,ae,le){for(const be of v.list())be(ne,ae,le)}function Q(ne,ae,le,be,Re){const ke=L(ne,ae);if(ke)return ke;const me=ae===pn,Ne=Ei?history.state:{};le&&(be||me?u.replace(ne.fullPath,lt({scroll:me&&Ne&&Ne.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=H(ne),Re=_(be);if(Re){V(lt(Re,{replace:!0}),be).catch(jo);return}m=be;const ke=p.value;Ei&&Mx(Gd(ke.fullPath,le.delta),Aa()),te(be,ke).catch(me=>Un(me,4|8)?me:Un(me,2)?(V(me.to,be).then(Ne=>{Un(Ne,4|16)&&!le.delta&&le.type===Zo.pop&&u.go(-1,!1)}).catch(jo),Promise.reject()):(le.delta&&u.go(-le.delta,!1),W(me,be,ke))).then(me=>{me=me||Q(be,ke,!1),me&&(le.delta?u.go(-le.delta,!1):le.type===Zo.pop&&Un(me,4|16)&&u.go(-1,!1)),ie(be,ke,me)}).catch(jo)})}let O=Eo(),x=Eo(),z;function W(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(!Ei||!Re)return Promise.resolve();const ke=!le&&Ax(Gd(ne.fullPath,0))||(be||!le)&&history.state&&history.state.scroll||null;return rs().then(()=>Re(ne,ae,ke)).then(me=>me&&Ex(me)).catch(me=>W(me,ne,ae))}const Ke=ne=>u.go(ne);let Ve;const Le=new Set;return{currentRoute:p,addRoute:P,removeRoute:E,hasRoute:D,getRoutes:j,resolve:H,options:r,push:B,replace:Z,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",hw),ne.component("RouterView",mw),ne.config.globalProperties.$router=ae,Object.defineProperty(ne.config.globalProperties,"$route",{enumerable:!0,get:()=>ut(p)}),Ei&&!Ve&&p.value===pn&&(Ve=!0,B(u.location).catch(Re=>{}));const le={};for(const Re in pn)le[Re]=Bt(()=>p.value[Re]);ne.provide(Uu,ae),ne.provide(Gu,ji(le)),ne.provide(ru,p);const be=ne.unmount;Le.add(ne),ne.unmount=function(){Le.delete(ne),Le.size<1&&(m=pn,ee&&ee(),p.value=pn,Ve=!1,z=!1),be()}}}}function Ti(r){return r.reduce((n,l)=>n.then(()=>l()),Promise.resolve())}function yw(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 Lw(){return Or(Gu)}var bw={exports:{}},xw=px(wb);(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,y){return f.call(d,p,m,y)}}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(y){return v&&d.call(y)=="[object Window]"?p(y):f(u(y))}},"06cf":function(n,l,s){var u=s("83ab"),f=s("d1e7"),d=s("5c6c"),v=s("fc6a"),p=s("c04e"),m=s("5135"),y=s("0cfb"),w=Object.getOwnPropertyDescriptor;l.f=u?w:function(P,E){if(P=v(P),E=p(E,!0),y)try{return w(P,E)}catch{}if(m(P,E))return d(!f.f.call(P,E),P[E])}},"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],y=m&&m.prototype;if(y&&y.forEach!==d)try{v(y,"forEach",d)}catch{y.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,y){if(!y&&!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=[],y=m.constructor={};return y[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"),y=s("94ca");n.exports=function(w,C){var P=w.target,E=w.global,j=w.stat,D,H,A,L,B,Z;if(E?H=u:j?H=u[P]||p(P,{}):H=(u[P]||{}).prototype,H)for(A in C){if(B=C[A],w.noTargetGet?(Z=f(H,A),L=Z&&Z.value):L=H[A],D=y(E?A:P+(j?".":"#")+A,w.forced),!D&&L!==void 0){if(typeof B==typeof L)continue;m(B,L)}(w.sham||L&&L.sham)&&d(B,"sham",!0),v(H,A,B,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,y;p?(m=p.split("."),y=m[0]<4?1:m[0]+m[1]):f&&(m=f.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=f.match(/Chrome\/(\d+)/),m&&(y=m[1]))),n.exports=y&&+y},"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,y){d(m);for(var w=v(y),C=w.length,P=0,E;C>P;)f.f(m,E=w[P++],y[E]);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(y){p(this,{type:v,string:String(y),index:0})},function(){var w=m(this),C=w.string,P=w.index,E;return P>=C.length?{value:void 0,done:!0}:(E=u(C,P),w.index+=E.length,{value:E,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,y,w){var C=u(m),P=f(C.length),E=d(w,P),j;if(p&&y!=y){for(;P>E;)if(j=C[E++],j!=j)return!0}else for(;P>E;E++)if((p||E in C)&&C[E]===y)return p||E||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"),y=s("35a1");n.exports=function(C){var P=f(C),E=typeof this=="function"?this:Array,j=arguments.length,D=j>1?arguments[1]:void 0,H=D!==void 0,A=y(P),L=0,B,Z,_,V,J,te;if(H&&(D=u(D,j>2?arguments[2]:void 0,2)),A!=null&&!(E==Array&&v(A)))for(V=A.call(P),J=V.next,Z=new E;!(_=J.call(V)).done;L++)te=H?d(V,D,[_.value,L],!0):_.value,m(Z,L,te);else for(B=p(P.length),Z=new E(B);B>L;L++)te=H?D(P[L],L):P[L],m(Z,L,te);return Z.length=L,Z}},"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 y=f.f(v(m)),w=d.f;return w?y.concat(w(m)):y}},"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(y){return function(w){var C=String(u(w));return y&1&&(C=C.replace(v,"")),y&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 y=String(f(p)),w=u(m),C=y.length,P,E;return w<0||w>=C?v?"":void 0:(P=y.charCodeAt(w),P<55296||P>56319||w+1===C||(E=y.charCodeAt(w+1))<56320||E>57343?v?y.charAt(w):P:v?y.slice(w,w+2):(P-55296<<10)+(E-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 y;return f(p)&&(y=p.constructor,typeof y=="function"&&(y===Array||f(y.prototype))?y=void 0:u(y)&&(y=y[v],y===null&&(y=void 0))),new(y===void 0?Array:y)(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"),y=s("f772"),w=s("d012"),C="Object already initialized",P=f.WeakMap,E,j,D,H=function(J){return D(J)?j(J):E(J,{})},A=function(J){return function(te){var ie;if(!d(te)||(ie=j(te)).type!==J)throw TypeError("Incompatible receiver, "+J+" required");return ie}};if(u||m.state){var L=m.state||(m.state=new P),B=L.get,Z=L.has,_=L.set;E=function(J,te){if(Z.call(L,J))throw new TypeError(C);return te.facade=J,_.call(L,J,te),te},j=function(J){return B.call(L,J)||{}},D=function(J){return Z.call(L,J)}}else{var V=y("state");w[V]=!0,E=function(J,te){if(p(J,V))throw new TypeError(C);return te.facade=J,v(J,V,te),te},j=function(J){return p(J,V)?J[V]:{}},D=function(J){return p(J,V)}}n.exports={set:E,get:j,has:D,enforce:H,getterFor:A}},"6eeb":function(n,l,s){var u=s("da84"),f=s("9112"),d=s("5135"),v=s("ce4e"),p=s("8925"),m=s("69f3"),y=m.get,w=m.enforce,C=String(String).split("String");(n.exports=function(P,E,j,D){var H=D?!!D.unsafe:!1,A=D?!!D.enumerable:!1,L=D?!!D.noTargetGet:!1,B;if(typeof j=="function"&&(typeof E=="string"&&!d(j,"name")&&f(j,"name",E),B=w(j),B.source||(B.source=C.join(typeof E=="string"?E:""))),P===u){A?P[E]=j:v(E,j);return}else H?!L&&P[E]&&(A=!0):delete P[E];A?P[E]=j:f(P,E,j)})(Function.prototype,"toString",function(){return typeof this=="function"&&y(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(y){for(var w=d(y),C=f(w),P=C.length,E=0,j=[],D;P>E;)D=C[E++],(!u||v.call(w,D))&&j.push(m?[D,w[D]]:w[D]);return j}};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,y;return f&&typeof(m=v.constructor)=="function"&&m!==p&&u(y=m.prototype)&&y!==p.prototype&&f(d,y),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"),y=s("f772"),w=">",C="<",P="prototype",E="script",j=y("IE_PROTO"),D=function(){},H=function(_){return C+E+w+_+C+"/"+E+w},A=function(_){_.write(H("")),_.close();var V=_.parentWindow.Object;return _=null,V},L=function(){var _=m("iframe"),V="java"+E+":",J;return _.style.display="none",p.appendChild(_),_.src=String(V),J=_.contentWindow.document,J.open(),J.write(H("document.F=Object")),J.close(),J.F},B,Z=function(){try{B=document.domain&&new ActiveXObject("htmlfile")}catch{}Z=B?A(B):L();for(var _=d.length;_--;)delete Z[P][d[_]];return Z()};v[j]=!0,n.exports=Object.create||function(V,J){var te;return V!==null?(D[P]=u(V),te=new D,D[P]=null,te[j]=V):te=Z(),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(y){return f(this,y,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"),y=s("6eeb"),w=s("b622"),C=s("c430"),P=s("3f8c"),E=s("ae93"),j=E.IteratorPrototype,D=E.BUGGY_SAFARI_ITERATORS,H=w("iterator"),A="keys",L="values",B="entries",Z=function(){return this};n.exports=function(_,V,J,te,ie,Q,ee){f(J,V,te);var k=function(Le){if(Le===ie&&$)return $;if(!D&&Le in z)return z[Le];switch(Le){case A:return function(){return new J(this,Le)};case L:return function(){return new J(this,Le)};case B:return function(){return new J(this,Le)}}return function(){return new J(this)}},O=V+" Iterator",x=!1,z=_.prototype,W=z[H]||z["@@iterator"]||ie&&z[ie],$=!D&&W||k(ie),se=V=="Array"&&z.entries||W,de,Ke,Ve;if(se&&(de=d(se.call(new _)),j!==Object.prototype&&de.next&&(!C&&d(de)!==j&&(v?v(de,j):typeof de[H]!="function"&&m(de,H,Z)),p(de,O,!0,!0),C&&(P[O]=Z))),ie==L&&W&&W.name!==L&&(x=!0,$=function(){return W.call(this)}),(!C||ee)&&z[H]!==$&&m(z,H,$),P[V]=$,ie)if(Ke={values:k(L),keys:Q?$:k(A),entries:k(B)},ee)for(Ve in Ke)(D||x||!(Ve in z))&&y(z,Ve,Ke[Ve]);else u({target:V,proto:!0,forced:D||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 y=u(p);y in v?f.f(v,y,d(0,m)):v[y]=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(B){var m=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,y=/@([^@]*):(\d+):(\d+)\s*$/ig,w=m.exec(B.stack)||y.exec(B.stack),C=w&&w[1]||!1,P=w&&w[2]||!1,E=document.location.href.replace(document.location.hash,""),j,D,H,A=document.getElementsByTagName("script");C===E&&(j=document.documentElement.outerHTML,D=new RegExp("(?:[^\\n]+?\\n){0,"+(P-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),H=j.replace(D,"$1").trim());for(var L=0;L<A.length;L++)if(A[L].readyState==="interactive"||A[L].src===C||C===E&&A[L].innerHTML&&A[L].innerHTML.trim()===H)return A[L];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=xw},"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==y?!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",y=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(y){throw f(d),y}}},"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(y,w,C){if(d(y),w=v(w,!0),d(C),f)try{return p(y,w,C)}catch{}if("get"in C||"set"in C)throw TypeError("Accessors not supported");return"value"in C&&(y[w]=C.value),y}},"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(y,w,C){var P=w+" Iterator";return y.prototype=f(u,{next:d(1,C)}),v(y,P,!1,!0),p[P]=m,y}},a434:function(n,l,s){var u=s("23e7"),f=s("23cb"),d=s("a691"),v=s("50c4"),p=s("7b0b"),m=s("65f0"),y=s("8418"),w=s("1dde"),C=w("splice"),P=Math.max,E=Math.min,j=9007199254740991,D="Maximum allowed length exceeded";u({target:"Array",proto:!0,forced:!C},{splice:function(A,L){var B=p(this),Z=v(B.length),_=f(A,Z),V=arguments.length,J,te,ie,Q,ee,k;if(V===0?J=te=0:V===1?(J=0,te=Z-_):(J=V-2,te=E(P(d(L),0),Z-_)),Z+J-te>j)throw TypeError(D);for(ie=m(B,te),Q=0;Q<te;Q++)ee=_+Q,ee in B&&y(ie,Q,B[ee]);if(ie.length=te,J<te){for(Q=_;Q<Z-te;Q++)ee=Q+te,k=Q+J,ee in B?B[k]=B[ee]:delete B[k];for(Q=Z;Q>Z-te+J;Q--)delete B[Q-1]}else if(J>te)for(Q=Z-te;Q>_;Q--)ee=Q+te-1,k=Q+J-1,ee in B?B[k]=B[ee]:delete B[k];for(Q=0;Q<J;Q++)B[Q+_]=arguments[Q+2];return B.length=Z-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"),y=s("fdbf"),w=s("d039"),C=s("5135"),P=s("e8b5"),E=s("861d"),j=s("825a"),D=s("7b0b"),H=s("fc6a"),A=s("c04e"),L=s("5c6c"),B=s("7c73"),Z=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"),W=s("90e3"),$=s("b622"),se=s("e538"),de=s("746f"),Ke=s("d44e"),Ve=s("69f3"),Le=s("b727").forEach,Ge=x("hidden"),ne="Symbol",ae="prototype",le=$("toPrimitive"),be=Ve.set,Re=Ve.getterFor(ne),ke=Object[ae],me=f.Symbol,Ne=d("JSON","stringify"),R=te.f,K=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"),N=f.QObject,q=!N||!N[ae]||!N[ae].findChild,G=p&&w(function(){return B(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a!=7})?function(Ye,Oe,ve){var Be=R(ke,Oe);Be&&delete ke[Oe],K(Ye,Oe,ve),Be&&Ye!==ke&&K(ke,Oe,Be)}:K,Se=function(Ye,Oe){var ve=ue[Ye]=B(me[ae]);return be(ve,{type:ne,tag:Ye,description:Oe}),p||(ve.description=Oe),ve},De=y?function(Ye){return typeof Ye=="symbol"}:function(Ye){return Object(Ye)instanceof me},$e=function(Oe,ve,Be){Oe===ke&&$e(ge,ve,Be),j(Oe);var qe=A(ve,!0);return j(Be),C(ue,qe)?(Be.enumerable?(C(Oe,Ge)&&Oe[Ge][qe]&&(Oe[Ge][qe]=!1),Be=B(Be,{enumerable:L(0,!1)})):(C(Oe,Ge)||K(Oe,Ge,L(1,{})),Oe[Ge][qe]=!0),G(Oe,qe,Be)):K(Oe,qe,Be)},it=function(Oe,ve){j(Oe);var Be=H(ve),qe=Z(Be).concat(Wt(Be));return Le(qe,function(et){(!p||je.call(Be,et))&&$e(Oe,et,Be[et])}),Oe},Je=function(Oe,ve){return ve===void 0?B(Oe):it(B(Oe),ve)},je=function(Oe){var ve=A(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,Ge)&&this[Ge][ve]?Be:!0},yt=function(Oe,ve){var Be=H(Oe),qe=A(ve,!0);if(!(Be===ke&&C(ue,qe)&&!C(ge,qe))){var et=R(Be,qe);return et&&C(ue,qe)&&!(C(Be,Ge)&&Be[Ge][qe])&&(et.enumerable=!0),et}},dt=function(Oe){var ve=X(H(Oe)),Be=[];return Le(ve,function(qe){!C(ue,qe)&&!C(z,qe)&&Be.push(qe)}),Be},Wt=function(Oe){var ve=Oe===ke,Be=X(ve?ge:H(Oe)),qe=[];return Le(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=W(Oe),Be=function(qe){this===ke&&Be.call(ge,qe),C(this,Ge)&&C(this[Ge],ve)&&(this[Ge][ve]=!1),G(this,ve,L(1,qe))};return p&&q&&G(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(W(Ye),Ye)}),Q.f=je,ie.f=$e,te.f=yt,_.f=V.f=dt,J.f=Wt,se.f=function(Ye){return Se($(Ye),Ye)},p&&(K(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}),Le(Z(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(){q=!0},useSimple:function(){q=!1}}),u({target:"Object",stat:!0,forced:!m,sham:!p},{create:Je,defineProperty:$e,defineProperties:it,getOwnPropertyDescriptor:yt}),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(D(Oe))}}),Ne){var Fe=!m||w(function(){var Ye=me();return Ne([Ye])!="[null]"||Ne({a:Ye})!="{}"||Ne(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,!(!E(ve)&&Oe===void 0||De(Oe)))return P(ve)||(ve=function(Pt,mr){if(typeof qt=="function"&&(mr=qt.call(this,Pt,mr)),!De(mr))return mr}),qe[1]=ve,Ne.apply(null,qe)}})}me[ae][le]||ee(me[ae],le,me[ae].valueOf),Ke(me,ne),z[Ge]=!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"),y=s("7156"),w=s("c04e"),C=s("d039"),P=s("7c73"),E=s("241c").f,j=s("06cf").f,D=s("9bf2").f,H=s("58a8").trim,A="Number",L=f[A],B=L.prototype,Z=m(P(B))==A,_=function(Q){var ee=w(Q,!1),k,O,x,z,W,$,se,de;if(typeof ee=="string"&&ee.length>2){if(ee=H(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(W=ee.slice(2),$=W.length,se=0;se<$;se++)if(de=W.charCodeAt(se),de<48||de>z)return NaN;return parseInt(W,x)}}return+ee};if(d(A,!L(" 0o1")||!L("0b1")||L("+0x1"))){for(var V=function(ee){var k=arguments.length<1?0:ee,O=this;return O instanceof V&&(Z?C(function(){B.valueOf.call(O)}):m(O)!=A)?y(new L(_(k)),O,V):_(k)},J=u?E(L):"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(L,ie=J[te])&&!p(V,ie)&&D(V,ie,j(L,ie));V.prototype=B,B.constructor=V,v(f,A,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"),y=p("iterator"),w=!1,C=function(){return this},P,E,j;[].keys&&(j=[].keys(),"next"in j?(E=f(f(j)),E!==Object.prototype&&(P=E)):w=!0);var D=P==null||u(function(){var H={};return P[y].call(H)!==H});D&&(P={}),(!m||D)&&!v(P,y)&&d(P,y,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"),y=f("wks"),w=u.Symbol,C=m?w:w&&w.withoutSetter||v;n.exports=function(P){return(!d(y,P)||!(p||typeof y[P]=="string"))&&(p&&d(w,P)?y[P]=w[P]:y[P]=C("Symbol."+P)),y[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(y){return d(f(y))}})},b727:function(n,l,s){var u=s("0366"),f=s("44ad"),d=s("7b0b"),v=s("50c4"),p=s("65f0"),m=[].push,y=function(w){var C=w==1,P=w==2,E=w==3,j=w==4,D=w==6,H=w==7,A=w==5||D;return function(L,B,Z,_){for(var V=d(L),J=f(V),te=u(B,Z,3),ie=v(J.length),Q=0,ee=_||p,k=C?ee(L,ie):P||H?ee(L,0):void 0,O,x;ie>Q;Q++)if((A||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 D?-1:E||j?j:k}};n.exports={forEach:y(0),map:y(1),filter:y(2),some:y(3),every:y(4),find:y(5),findIndex:y(6),filterOut:y(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(y){return f(this,y,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 y=f(p),w=0,C=[],P;for(P in y)!u(v,P)&&u(y,P)&&C.push(P);for(;m.length>w;)u(y,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(y,w){return u(y),f(w),d?p.call(y,w):y.__proto__=w,y}}():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,y){p&&!f(p=y?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,E=d(C),j={},D=0,H,A;E.length>D;)A=P(C,H=E[D++]),A!==void 0&&m(j,H,A);return j}})},ddb0:function(n,l,s){var u=s("da84"),f=s("fdbc"),d=s("e260"),v=s("9112"),p=s("b622"),m=p("iterator"),y=p("toStringTag"),w=d.values;for(var C in f){var P=u[C],E=P&&P.prototype;if(E){if(E[m]!==w)try{v(E,m,w)}catch{E[m]=w}if(E[y]||v(E,y,C),f[C]){for(var j in d)if(E[j]!==d[j])try{v(E,j,d[j])}catch{E[j]=d[j]}}}}},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,y=s("e893"),w=d.Symbol;if(f&&typeof w=="function"&&(!("description"in w.prototype)||w().description!==void 0)){var C={},P=function(){var L=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),B=this instanceof P?new w(L):L===void 0?w():w(L);return L===""&&(C[B]=!0),B};y(P,w);var E=P.prototype=w.prototype;E.constructor=P;var j=E.toString,D=String(w("test"))=="Symbol(test)",H=/^Symbol\((.*)\)[^)]+$/;m(E,"description",{configurable:!0,get:function(){var L=p(this)?this.valueOf():this,B=j.call(L);if(v(C,L))return"";var Z=D?B.slice(7,-1):B.replace(H,"$1");return Z===""?void 0:Z}}),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(y){return y=f(y),u(y,p)?y[p]:typeof y.constructor=="function"&&y instanceof y.constructor?y.constructor.prototype:y 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",y=v.set,w=v.getterFor(m);n.exports=p(Array,"Array",function(C,P){y(this,{type:m,target:u(C),index:0,kind:P})},function(){var C=w(this),P=C.target,E=C.kind,j=C.index++;return!P||j>=P.length?(C.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:j,done:!1}:E=="values"?{value:P[j],done:!1}:{value:[j,P[j]],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)}),y=!p||m;u({target:"Object",stat:!0,forced:y,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 y=f(m),w=v.f,C=d.f,P=0;P<y.length;P++){var E=y[P];u(p,E)||w(p,E,C(m,E))}}},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(y,w){try{return y[w]}catch{}};n.exports=u?f:function(y){var w,C,P;return y===void 0?"Undefined":y===null?"Null":typeof(C=m(w=Object(y),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(W){return Object.getOwnPropertyDescriptor(k,W).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 y(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=[],W=!0,$=!1,se,de;try{for(x=x.call(k);!(W=(se=x.next()).done)&&(z.push(se.value),!(O&&z.length===O));W=!0);}catch(Ke){$=!0,de=Ke}finally{try{!W&&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 E(){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 j(k,O){return y(k)||w(k,O)||P(k,O)||E()}function D(k,O){if(k==null)return{};var x={},z=Object.keys(k),W,$;for($=0;$<z.length;$++)W=z[$],!(O.indexOf(W)>=0)&&(x[W]=k[W]);return x}function H(k,O){if(k==null)return{};var x=D(k,O),z,W;if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(k);for(W=0;W<$.length;W++)z=$[W],!(O.indexOf(z)>=0)&&(!Object.prototype.propertyIsEnumerable.call(k,z)||(x[z]=k[z]))}return x}function A(k){if(Array.isArray(k))return C(k)}function L(k){if(typeof Symbol!="undefined"&&k[Symbol.iterator]!=null||k["@@iterator"]!=null)return Array.from(k)}function B(){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 Z(k){return A(k)||L(k)||P(k)||B()}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(W,$){return W.size=$===x?W.max:W.min,$!==x&&(z+=W.min),W}),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,W=z.clientX,$=z.clientY;return{x:W-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},W=0+(this.pushOtherPanes?0:z.prevPanesSize),$=100-(this.pushOtherPanes?0:z.nextPanesSize),se=Math.max(Math.min(this.getCurrentDragPercentage(O),$),W),de=[x,x+1],Ke=this.panes[de[0]]||null,Ve=this.panes[de[1]]||null,Le=Ke.max<100&&se>=Ke.max+z.prevPanesSize,Ge=Ve.max<100&&se<=100-(Ve.max+this.sumNextPanesSize(x+1));if(Le||Ge){Le?(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,W=this.touch.activeSplitter,$=[W,W+1];return x<O.prevPanesSize+this.panes[$[0]].min&&($[0]=this.findPrevExpandedPane(W).index,O.prevReachedMinPanes=0,$[0]<W&&this.panes.forEach(function(se,de){de>$[0]&&de<=W&&(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<=W&&(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(W).index,O.nextReachedMinPanes=0,$[1]>W+1&&this.panes.forEach(function(se,de){de>W&&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>=W+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,W){return x+(W<O?z.size:0)},0)},sumNextPanesSize:function(O){return this.panes.reduce(function(x,z,W){return x+(W>O+1?z.size:0)},0)},findPrevExpandedPane:function(O){var x=Z(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"),W=x.classList.contains("splitpanes__splitter");if(!z&&!W){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,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,$=O-1,se=document.createElement("div");se.classList.add("splitpanes__splitter"),W||(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(W){W.className.includes("splitpanes__splitter")&&O.removeSplitter(W)});var z=0;x.forEach(function(W){W.className.includes("splitpanes__pane")&&(!z&&O.firstSplitter?O.addSplitter(z,W,!0):z&&O.addSplitter(z,W),z++)})},requestUpdate:function(O){var x=O.target,z=H(O,V),W=this.indexedPanes[x._.uid];Object.entries(z).forEach(function($){var se=j($,2),de=se[0],Ke=se[1];return W[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 W=parseFloat(O.minSize),$=parseFloat(O.maxSize);this.panes.splice(z,0,{id:O._.uid,index:z,min:isNaN(W)?0:W,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}),W=this.panes.splice(z,1)[0];this.panes.forEach(function($,se){return $.index=se}),this.$nextTick(function(){x.redoSplitters(),x.resetPaneSizes({removedPane:m(m({},W),{},{index:z})}),x.$emit("pane-remove",{removed:W,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=[],W=[];this.panes.forEach(function($){$.size=Math.max(Math.min(O,$.max),$.min),x-=$.size,$.size>=$.max&&z.push($.id),$.size<=$.min&&W.push($.id)}),x>.1&&this.readjustSizes(x,z,W)},initialPanesSizing:function(){var O=this;100/this.panesCount;var x=100,z=[],W=[],$=0;this.panes.forEach(function(de){x-=de.size,de.size!==null&&$++,de.size>=de.max&&z.push(de.id),de.size<=de.min&&W.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,W))},equalizeAfterAddOrRemove:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=O.addedPane;O.removedPane;var z=100/this.panesCount,W=0,$=[],se=[];x&&x.givenSize!==null&&(z=(100-x.givenSize)/(this.panesCount-1)),this.panes.forEach(function(de){W-=de.size,de.size>=de.max&&$.push(de.id),de.size<=de.min&&se.push(de.id)}),!(Math.abs(W)<.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)),W-=de.size,de.size>=de.max&&$.push(de.id),de.size<=de.min&&se.push(de.id)}),W>.1&&this.readjustSizes(W,$,se))},readjustSizes:function(O,x,z){var W=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 Le=Math.max(Math.min(se.size+$,se.max),se.min),Ge=Le-se.size;O-=Ge,se.size=Le}se.update(v({},W.horizontal?"height":"width","".concat(W.indexedPanes[se.id].size,"%")))}),Math.abs(O)>.1&&this.$nextTick(function(){W.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=Z(this.container.querySelectorAll(".splitpanes__splitter"));z.forEach(function(W,$){W.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,W,$){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"),y=s("8418"),w=s("b622"),C=s("1dde"),P=C("slice"),E=w("species"),j=[].slice,D=Math.max;u({target:"Array",proto:!0,forced:!P},{slice:function(A,L){var B=m(this),Z=p(B.length),_=v(A,Z),V=v(L===void 0?Z:L,Z),J,te,ie;if(d(B)&&(J=B.constructor,typeof J=="function"&&(J===Array||d(J.prototype))?J=void 0:f(J)&&(J=J[E],J===null&&(J=void 0)),J===Array||J===void 0))return j.call(B,_,V);for(te=new(J===void 0?Array:J)(D(V-_,0)),ie=0;_<V;_++,ie++)_ in B&&y(te,ie,B[_]);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"}})})(bw);export{t0 as A,Tw as B,Ew as C,Sw as D,bw as E,Ht as F,mb as G,Aw as H,Mw as I,Wb as J,gt as K,Sh as L,Cw as M,Pa as a,Du as b,Zy as c,is as d,n0 as e,Al as f,Ow as g,Bt as h,ut as i,ww as j,e0 as k,Pw as l,Rb as m,ct as n,Ki as o,Pu as p,Fu as q,Lt as r,Qo as s,im as t,kw as u,Ru as v,Ut as w,qo as x,Lw as y,Xy as z};