From 89a52963fc22e2288efca2d58a6e9b7bbb23ebaf Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Mon, 17 Jul 2023 13:03:42 +0200 Subject: [PATCH] enhanced --- app.py | 67 +++++++++++++- assets/default_user.svg | 32 +++++++ .../{index-ad06c29f.js => index-5eee0659.js} | 90 +++++++++---------- ...{index-7a82d60e.css => index-bec8b3bc.css} | 2 +- web/dist/index.html | 4 +- web/src/views/SettingsView.vue | 48 +++++++--- 6 files changed, 182 insertions(+), 61 deletions(-) create mode 100644 assets/default_user.svg rename web/dist/assets/{index-ad06c29f.js => index-5eee0659.js} (64%) rename web/dist/assets/{index-7a82d60e.css => index-bec8b3bc.css} (99%) diff --git a/app.py b/app.py index 3c2c2e0d..0860ba56 100644 --- a/app.py +++ b/app.py @@ -123,6 +123,7 @@ class LoLLMsWebUI(LoLLMsAPPI): self.add_endpoint("/reload_binding", "reload_binding", self.reload_binding, methods=["POST"]) self.add_endpoint("/update_software", "update_software", self.update_software, methods=["GET"]) + self.add_endpoint("/clear_uploads", "clear_uploads", self.clear_uploads, methods=["GET"]) self.add_endpoint("/selectdb", "selectdb", self.selectdb, methods=["GET"]) self.add_endpoint("/restart_program", "restart_program", self.restart_program, methods=["GET"]) @@ -198,6 +199,7 @@ class LoLLMsWebUI(LoLLMsAPPI): self.add_endpoint("/", "", self.index, methods=["GET"]) self.add_endpoint("/", "serve_static", self.serve_static, methods=["GET"]) + self.add_endpoint("/user_infos/", "serve_user_infos", self.serve_user_infos, methods=["GET"]) self.add_endpoint("/images/", "serve_images", self.serve_images, methods=["GET"]) self.add_endpoint("/bindings/", "serve_bindings", self.serve_bindings, methods=["GET"]) @@ -765,6 +767,14 @@ class LoLLMsWebUI(LoLLMsAPPI): fn = filename.split("/")[-1] return send_from_directory(path, fn) + def serve_user_infos(self, filename): + path = str(self.lollms_paths.personal_user_infos_path/("/".join(filename.split("/")[:-1]))) + + fn = filename.split("/")[-1] + return send_from_directory(path, fn) + + + def serve_personalities(self, filename): path = str(self.lollms_paths.personalities_zoo_path/("/".join(filename.split("/")[:-1]))) @@ -946,7 +956,44 @@ class LoLLMsWebUI(LoLLMsAPPI): print(f"Couldn't build binding: [{ex}]") return jsonify({"status":False, 'error':str(ex)}) + + def clear_uploads(self): + ASCIIColors.info("") + ASCIIColors.info("") + ASCIIColors.info("") + ASCIIColors.info(" ╔══════════════════════════════════════════════════╗") + ASCIIColors.info(" ║ Removing all uploads ║") + ASCIIColors.info(" ╚══════════════════════════════════════════════════╝") + ASCIIColors.info("") + ASCIIColors.info("") + ASCIIColors.info("") + try: + folder_path = self.lollms_paths.personal_uploads_path + # Iterate over all files and directories in the folder + for entry in folder_path.iterdir(): + if entry.is_file(): + # Remove file + entry.unlink() + elif entry.is_dir(): + # Remove directory (recursively) + shutil.rmtree(entry) + print(f"All files and directories inside '{folder_path}' have been removed successfully.") + return {"status": True} + except OSError as e: + ASCIIColors.error(f"Couldn't clear the upload folder.\nMaybe some files are opened somewhere else.\Try doing it manually") + return {"status": False, 'error': "Couldn't clear the upload folder.\nMaybe some files are opened somewhere else.\Try doing it manually"} + + def update_software(self): + ASCIIColors.info("") + ASCIIColors.info("") + ASCIIColors.info("") + ASCIIColors.info(" ╔══════════════════════════════════════════════════╗") + ASCIIColors.info(" ║ Upgrading backend ║") + ASCIIColors.info(" ╚══════════════════════════════════════════════════╝") + ASCIIColors.info("") + ASCIIColors.info("") + ASCIIColors.info("") # Perform a 'git pull' to check for updates try: # Execute 'git pull' and redirect the output to the console @@ -981,10 +1028,17 @@ class LoLLMsWebUI(LoLLMsAPPI): # Show file selection dialog file_path = filedialog.askopenfilename() + def restart_program(self): - ASCIIColors.info("Restarting backen ") ASCIIColors.info("") - ASCIIColors.info("Restarting backen ") + ASCIIColors.info("") + ASCIIColors.info("") + ASCIIColors.info(" ╔══════════════════════════════════════════════════╗") + ASCIIColors.info(" ║ Restarting backend ║") + ASCIIColors.info(" ╚══════════════════════════════════════════════════╝") + ASCIIColors.info("") + ASCIIColors.info("") + ASCIIColors.info("") python = sys.executable os.execl(python, python, *sys.argv) @@ -1573,6 +1627,15 @@ if __name__ == "__main__": if arg_value is not None: config[arg_name] = arg_value + # Copy user + # Assuming the current file's directory contains the 'assets' subfolder + current_file_dir = Path(__file__).parent + assets_dir = current_file_dir / "assets" + default_user_avatar = assets_dir / "default_user.svg" + user_avatar_path = lollms_paths.personal_user_infos_path / "default_user.svg" + if not user_avatar_path.exists(): + # If the user avatar doesn't exist, copy the default avatar from the assets folder + shutil.copy(default_user_avatar, user_avatar_path) # executor = ThreadPoolExecutor(max_workers=1) # app.config['executor'] = executor bot = LoLLMsWebUI(app, socketio, config, config.file_path, lollms_paths) diff --git a/assets/default_user.svg b/assets/default_user.svg new file mode 100644 index 00000000..3d0248bb --- /dev/null +++ b/assets/default_user.svg @@ -0,0 +1,32 @@ + + + + diff --git a/web/dist/assets/index-ad06c29f.js b/web/dist/assets/index-5eee0659.js similarity index 64% rename from web/dist/assets/index-ad06c29f.js rename to web/dist/assets/index-5eee0659.js index 1dcc12e1..a2c94124 100644 --- a/web/dist/assets/index-ad06c29f.js +++ b/web/dist/assets/index-5eee0659.js @@ -1,36 +1,36 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function yl(t,e){const n=Object.create(null),s=t.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function jt(t){if(ke(t)){const e={};for(let n=0;n{if(n){const s=n.split(ym);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Te(t){let e="";if(We(t))e=t;else if(ke(t))for(let n=0;nRo(n,e))}const Y=t=>We(t)?t:t==null?"":ke(t)||He(t)&&(t.toString===$f||!Me(t.toString))?JSON.stringify(t,Ff,2):String(t),Ff=(t,e)=>e&&e.__v_isRef?Ff(t,e.value):_s(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:Ps(e)?{[`Set(${e.size})`]:[...e.values()]}:He(e)&&!ke(e)&&!zf(e)?String(e):e,Ve={},ms=[],Lt=()=>{},Cm=()=>!1,Am=/^on[^a-z]/,zr=t=>Am.test(t),wl=t=>t.startsWith("onUpdate:"),nt=Object.assign,xl=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Sm=Object.prototype.hasOwnProperty,Fe=(t,e)=>Sm.call(t,e),ke=Array.isArray,_s=t=>Fs(t)==="[object Map]",Ps=t=>Fs(t)==="[object Set]",Ac=t=>Fs(t)==="[object Date]",Tm=t=>Fs(t)==="[object RegExp]",Me=t=>typeof t=="function",We=t=>typeof t=="string",ho=t=>typeof t=="symbol",He=t=>t!==null&&typeof t=="object",Bf=t=>He(t)&&Me(t.then)&&Me(t.catch),$f=Object.prototype.toString,Fs=t=>$f.call(t),Mm=t=>Fs(t).slice(8,-1),zf=t=>Fs(t)==="[object Object]",kl=t=>We(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,sr=yl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jr=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Om=/-(\w)/g,Zt=jr(t=>t.replace(Om,(e,n)=>n?n.toUpperCase():"")),Rm=/\B([A-Z])/g,ts=jr(t=>t.replace(Rm,"-$1").toLowerCase()),Ur=jr(t=>t.charAt(0).toUpperCase()+t.slice(1)),wi=jr(t=>t?`on${Ur(t)}`:""),po=(t,e)=>!Object.is(t,e),bs=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},_r=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Nm=t=>{const e=We(t)?Number(t):NaN;return isNaN(e)?t:e};let Sc;const Dm=()=>Sc||(Sc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Ot;class Lm{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ot,!e&&Ot&&(this.index=(Ot.scopes||(Ot.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Ot;try{return Ot=this,e()}finally{Ot=n}}}on(){Ot=this}off(){Ot=this.parent}stop(e){if(this._active){let n,s;for(n=0,s=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},jf=t=>(t.w&Mn)>0,Uf=t=>(t.n&Mn)>0,Fm=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let s=0;s{(d==="length"||d>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),e){case"add":ke(t)?kl(n)&&a.push(i.get("length")):(a.push(i.get(Kn)),_s(t)&&a.push(i.get(Ba)));break;case"delete":ke(t)||(a.push(i.get(Kn)),_s(t)&&a.push(i.get(Ba)));break;case"set":_s(t)&&a.push(i.get(Kn));break}if(a.length===1)a[0]&&$a(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);$a(El(l))}}function $a(t,e){const n=ke(t)?t:[...t];for(const s of n)s.computed&&Mc(s);for(const s of n)s.computed||Mc(s)}function Mc(t,e){(t!==Nt||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const $m=yl("__proto__,__v_isRef,__isVue"),Vf=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(ho)),zm=Al(),jm=Al(!1,!0),Um=Al(!0),Oc=qm();function qm(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const s=$e(this);for(let r=0,i=this.length;r{t[e]=function(...n){Bs();const s=$e(this)[e].apply(this,n);return $s(),s}}),t}function Hm(t){const e=$e(this);return gt(e,"has",t),e.hasOwnProperty(t)}function Al(t=!1,e=!1){return function(s,o,r){if(o==="__v_isReactive")return!t;if(o==="__v_isReadonly")return t;if(o==="__v_isShallow")return e;if(o==="__v_raw"&&r===(t?e?i_:Yf:e?Zf:Wf).get(s))return s;const i=ke(s);if(!t){if(i&&Fe(Oc,o))return Reflect.get(Oc,o,r);if(o==="hasOwnProperty")return Hm}const a=Reflect.get(s,o,r);return(ho(o)?Vf.has(o):$m(o))||(t||gt(s,"get",o),e)?a:dt(a)?i&&kl(o)?a:a.value:He(a)?t?Qf(a):zs(a):a}}const Vm=Gf(),Gm=Gf(!0);function Gf(t=!1){return function(n,s,o,r){let i=n[s];if(ks(i)&&dt(i)&&!dt(o))return!1;if(!t&&(!br(o)&&!ks(o)&&(i=$e(i),o=$e(o)),!ke(n)&&dt(i)&&!dt(o)))return i.value=o,!0;const a=ke(n)&&kl(s)?Number(s)t,qr=t=>Reflect.getPrototypeOf(t);function $o(t,e,n=!1,s=!1){t=t.__v_raw;const o=$e(t),r=$e(e);n||(e!==r&>(o,"get",e),gt(o,"get",r));const{has:i}=qr(o),a=s?Sl:n?Ol:go;if(i.call(o,e))return a(t.get(e));if(i.call(o,r))return a(t.get(r));t!==o&&t.get(e)}function zo(t,e=!1){const n=this.__v_raw,s=$e(n),o=$e(t);return e||(t!==o&>(s,"has",t),gt(s,"has",o)),t===o?n.has(t):n.has(t)||n.has(o)}function jo(t,e=!1){return t=t.__v_raw,!e&>($e(t),"iterate",Kn),Reflect.get(t,"size",t)}function Rc(t){t=$e(t);const e=$e(this);return qr(e).has.call(e,t)||(e.add(t),rn(e,"add",t,t)),this}function Nc(t,e){e=$e(e);const n=$e(this),{has:s,get:o}=qr(n);let r=s.call(n,t);r||(t=$e(t),r=s.call(n,t));const i=o.call(n,t);return n.set(t,e),r?po(e,i)&&rn(n,"set",t,e):rn(n,"add",t,e),this}function Dc(t){const e=$e(this),{has:n,get:s}=qr(e);let o=n.call(e,t);o||(t=$e(t),o=n.call(e,t)),s&&s.call(e,t);const r=e.delete(t);return o&&rn(e,"delete",t,void 0),r}function Lc(){const t=$e(this),e=t.size!==0,n=t.clear();return e&&rn(t,"clear",void 0,void 0),n}function Uo(t,e){return function(s,o){const r=this,i=r.__v_raw,a=$e(i),l=e?Sl:t?Ol:go;return!t&>(a,"iterate",Kn),i.forEach((c,d)=>s.call(o,l(c),l(d),r))}}function qo(t,e,n){return function(...s){const o=this.__v_raw,r=$e(o),i=_s(r),a=t==="entries"||t===Symbol.iterator&&i,l=t==="keys"&&i,c=o[t](...s),d=n?Sl:e?Ol:go;return!e&>(r,"iterate",l?Ba:Kn),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:a?[d(f[0]),d(f[1])]:d(f),done:p}},[Symbol.iterator](){return this}}}}function fn(t){return function(...e){return t==="delete"?!1:this}}function Jm(){const t={get(r){return $o(this,r)},get size(){return jo(this)},has:zo,add:Rc,set:Nc,delete:Dc,clear:Lc,forEach:Uo(!1,!1)},e={get(r){return $o(this,r,!1,!0)},get size(){return jo(this)},has:zo,add:Rc,set:Nc,delete:Dc,clear:Lc,forEach:Uo(!1,!0)},n={get(r){return $o(this,r,!0)},get size(){return jo(this,!0)},has(r){return zo.call(this,r,!0)},add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear"),forEach:Uo(!0,!1)},s={get(r){return $o(this,r,!0,!0)},get size(){return jo(this,!0)},has(r){return zo.call(this,r,!0)},add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear"),forEach:Uo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{t[r]=qo(r,!1,!1),n[r]=qo(r,!0,!1),e[r]=qo(r,!1,!0),s[r]=qo(r,!0,!0)}),[t,n,e,s]}const[Xm,e_,t_,n_]=Jm();function Tl(t,e){const n=e?t?n_:t_:t?e_:Xm;return(s,o,r)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?s:Reflect.get(Fe(n,o)&&o in s?n:s,o,r)}const s_={get:Tl(!1,!1)},o_={get:Tl(!1,!0)},r_={get:Tl(!0,!1)},Wf=new WeakMap,Zf=new WeakMap,Yf=new WeakMap,i_=new WeakMap;function a_(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function l_(t){return t.__v_skip||!Object.isExtensible(t)?0:a_(Mm(t))}function zs(t){return ks(t)?t:Ml(t,!1,Kf,s_,Wf)}function c_(t){return Ml(t,!1,Qm,o_,Zf)}function Qf(t){return Ml(t,!0,Ym,r_,Yf)}function Ml(t,e,n,s,o){if(!He(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=o.get(t);if(r)return r;const i=l_(t);if(i===0)return t;const a=new Proxy(t,i===2?s:n);return o.set(t,a),a}function ys(t){return ks(t)?ys(t.__v_raw):!!(t&&t.__v_isReactive)}function ks(t){return!!(t&&t.__v_isReadonly)}function br(t){return!!(t&&t.__v_isShallow)}function Jf(t){return ys(t)||ks(t)}function $e(t){const e=t&&t.__v_raw;return e?$e(e):t}function Xf(t){return mr(t,"__v_skip",!0),t}const go=t=>He(t)?zs(t):t,Ol=t=>He(t)?Qf(t):t;function eh(t){Sn&&Nt&&(t=$e(t),Hf(t.dep||(t.dep=El())))}function th(t,e){t=$e(t);const n=t.dep;n&&$a(n)}function dt(t){return!!(t&&t.__v_isRef===!0)}function d_(t){return nh(t,!1)}function u_(t){return nh(t,!0)}function nh(t,e){return dt(t)?t:new f_(t,e)}class f_{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:$e(e),this._value=n?e:go(e)}get value(){return eh(this),this._value}set value(e){const n=this.__v_isShallow||br(e)||ks(e);e=n?e:$e(e),po(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:go(e),th(this))}}function ft(t){return dt(t)?t.value:t}const h_={get:(t,e,n)=>ft(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const o=t[e];return dt(o)&&!dt(n)?(o.value=n,!0):Reflect.set(t,e,n,s)}};function sh(t){return ys(t)?t:new Proxy(t,h_)}var oh;class p_{constructor(e,n,s,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[oh]=!1,this._dirty=!0,this.effect=new Cl(e,()=>{this._dirty||(this._dirty=!0,th(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const e=$e(this);return eh(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}oh="__v_isReadonly";function g_(t,e,n=!1){let s,o;const r=Me(t);return r?(s=t,o=Lt):(s=t.get,o=t.set),new p_(s,o,r||!o,n)}function Tn(t,e,n,s){let o;try{o=s?t(...s):t()}catch(r){Hr(r,e,n)}return o}function kt(t,e,n,s){if(Me(t)){const r=Tn(t,e,n,s);return r&&Bf(r)&&r.catch(i=>{Hr(i,e,n)}),r}const o=[];for(let r=0;r>>1;_o(ct[s])zt&&ct.splice(e,1)}function y_(t){ke(t)?vs.push(...t):(!nn||!nn.includes(t,t.allowRecurse?zn+1:zn))&&vs.push(t),ih()}function Ic(t,e=mo?zt+1:0){for(;e_o(n)-_o(s)),zn=0;znt.id==null?1/0:t.id,v_=(t,e)=>{const n=_o(t)-_o(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function lh(t){za=!1,mo=!0,ct.sort(v_);const e=Lt;try{for(zt=0;ztWe(g)?g.trim():g)),f&&(o=n.map(_r))}let a,l=s[a=wi(e)]||s[a=wi(Zt(e))];!l&&r&&(l=s[a=wi(ts(e))]),l&&kt(l,t,6,o);const c=s[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,kt(c,t,6,o)}}function ch(t,e,n=!1){const s=e.emitsCache,o=s.get(t);if(o!==void 0)return o;const r=t.emits;let i={},a=!1;if(!Me(t)){const l=c=>{const d=ch(c,e,!0);d&&(a=!0,nt(i,d))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!r&&!a?(He(t)&&s.set(t,null),null):(ke(r)?r.forEach(l=>i[l]=null):nt(i,r),He(t)&&s.set(t,i),i)}function Vr(t,e){return!t||!zr(e)?!1:(e=e.slice(2).replace(/Once$/,""),Fe(t,e[0].toLowerCase()+e.slice(1))||Fe(t,ts(e))||Fe(t,e))}let rt=null,Gr=null;function yr(t){const e=rt;return rt=t,Gr=t&&t.type.__scopeId||null,e}function ns(t){Gr=t}function ss(){Gr=null}function Ke(t,e=rt,n){if(!e||t._n)return t;const s=(...o)=>{s._d&&Vc(-1);const r=yr(e);let i;try{i=t(...o)}finally{yr(r),s._d&&Vc(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function xi(t){const{type:e,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:a,attrs:l,emit:c,render:d,renderCache:f,data:p,setupState:g,ctx:h,inheritAttrs:m}=t;let v,_;const b=yr(t);try{if(n.shapeFlag&4){const C=o||s;v=Bt(d.call(C,C,f,r,g,p,h)),_=l}else{const C=e;v=Bt(C.length>1?C(r,{attrs:l,slots:a,emit:c}):C(r,null)),_=e.props?l:x_(l)}}catch(C){oo.length=0,Hr(C,t,1),v=Ae(Et)}let x=v;if(_&&m!==!1){const C=Object.keys(_),{shapeFlag:R}=x;C.length&&R&7&&(i&&C.some(wl)&&(_=k_(_,i)),x=an(x,_))}return n.dirs&&(x=an(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),v=x,yr(b),v}const x_=t=>{let e;for(const n in t)(n==="class"||n==="style"||zr(n))&&((e||(e={}))[n]=t[n]);return e},k_=(t,e)=>{const n={};for(const s in t)(!wl(s)||!(s.slice(9)in e))&&(n[s]=t[s]);return n};function E_(t,e,n){const{props:s,children:o,component:r}=t,{props:i,children:a,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Pc(s,i,c):!!i;if(l&8){const d=e.dynamicProps;for(let f=0;ft.__isSuspense;function A_(t,e){e&&e.pendingBranch?ke(t)?e.effects.push(...t):e.effects.push(t):y_(t)}function or(t,e){if(Ze){let n=Ze.provides;const s=Ze.parent&&Ze.parent.provides;s===n&&(n=Ze.provides=Object.create(s)),n[t]=e}}function sn(t,e,n=!1){const s=Ze||rt;if(s){const o=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(o&&t in o)return o[t];if(arguments.length>1)return n&&Me(e)?e.call(s.proxy):e}}const Ho={};function Wn(t,e,n){return uh(t,e,n)}function uh(t,e,{immediate:n,deep:s,flush:o,onTrack:r,onTrigger:i}=Ve){const a=Pm()===(Ze==null?void 0:Ze.scope)?Ze:null;let l,c=!1,d=!1;if(dt(t)?(l=()=>t.value,c=br(t)):ys(t)?(l=()=>t,s=!0):ke(t)?(d=!0,c=t.some(x=>ys(x)||br(x)),l=()=>t.map(x=>{if(dt(x))return x.value;if(ys(x))return Vn(x);if(Me(x))return Tn(x,a,2)})):Me(t)?e?l=()=>Tn(t,a,2):l=()=>{if(!(a&&a.isUnmounted))return f&&f(),kt(t,a,3,[p])}:l=Lt,e&&s){const x=l;l=()=>Vn(x())}let f,p=x=>{f=_.onStop=()=>{Tn(x,a,4)}},g;if(wo)if(p=Lt,e?n&&kt(e,a,3,[l(),d?[]:void 0,p]):l(),o==="sync"){const x=_1();g=x.__watcherHandles||(x.__watcherHandles=[])}else return Lt;let h=d?new Array(t.length).fill(Ho):Ho;const m=()=>{if(_.active)if(e){const x=_.run();(s||c||(d?x.some((C,R)=>po(C,h[R])):po(x,h)))&&(f&&f(),kt(e,a,3,[x,h===Ho?void 0:d&&h[0]===Ho?[]:h,p]),h=x)}else _.run()};m.allowRecurse=!!e;let v;o==="sync"?v=m:o==="post"?v=()=>st(m,a&&a.suspense):(m.pre=!0,a&&(m.id=a.uid),v=()=>Nl(m));const _=new Cl(l,v);e?n?m():h=_.run():o==="post"?st(_.run.bind(_),a&&a.suspense):_.run();const b=()=>{_.stop(),a&&a.scope&&xl(a.scope.effects,_)};return g&&g.push(b),b}function S_(t,e,n){const s=this.proxy,o=We(t)?t.includes(".")?fh(s,t):()=>s[t]:t.bind(s,s);let r;Me(e)?r=e:(r=e.handler,n=e);const i=Ze;Cs(this);const a=uh(o,r.bind(s),n);return i?Cs(i):Zn(),a}function fh(t,e){const n=e.split(".");return()=>{let s=t;for(let o=0;o{Vn(n,e)});else if(zf(t))for(const n in t)Vn(t[n],e);return t}function hh(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Zr(()=>{t.isMounted=!0}),Il(()=>{t.isUnmounting=!0}),t}const yt=[Function,Array],T_={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:yt,onEnter:yt,onAfterEnter:yt,onEnterCancelled:yt,onBeforeLeave:yt,onLeave:yt,onAfterLeave:yt,onLeaveCancelled:yt,onBeforeAppear:yt,onAppear:yt,onAfterAppear:yt,onAppearCancelled:yt},setup(t,{slots:e}){const n=zl(),s=hh();let o;return()=>{const r=e.default&&Dl(e.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const m of r)if(m.type!==Et){i=m;break}}const a=$e(t),{mode:l}=a;if(s.isLeaving)return ki(i);const c=Fc(i);if(!c)return ki(i);const d=bo(c,a,s,n);Es(c,d);const f=n.subTree,p=f&&Fc(f);let g=!1;const{getTransitionKey:h}=c.type;if(h){const m=h();o===void 0?o=m:m!==o&&(o=m,g=!0)}if(p&&p.type!==Et&&(!En(c,p)||g)){const m=bo(p,a,s,n);if(Es(p,m),l==="out-in")return s.isLeaving=!0,m.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},ki(i);l==="in-out"&&c.type!==Et&&(m.delayLeave=(v,_,b)=>{const x=gh(s,p);x[String(p.key)]=p,v._leaveCb=()=>{_(),v._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=b})}return i}}},ph=T_;function gh(t,e){const{leavingVNodes:n}=t;let s=n.get(e.type);return s||(s=Object.create(null),n.set(e.type,s)),s}function bo(t,e,n,s){const{appear:o,mode:r,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:g,onLeaveCancelled:h,onBeforeAppear:m,onAppear:v,onAfterAppear:_,onAppearCancelled:b}=e,x=String(t.key),C=gh(n,t),R=(y,k)=>{y&&kt(y,s,9,k)},O=(y,k)=>{const T=k[1];R(y,k),ke(y)?y.every(L=>L.length<=1)&&T():y.length<=1&&T()},D={mode:r,persisted:i,beforeEnter(y){let k=a;if(!n.isMounted)if(o)k=m||a;else return;y._leaveCb&&y._leaveCb(!0);const T=C[x];T&&En(t,T)&&T.el._leaveCb&&T.el._leaveCb(),R(k,[y])},enter(y){let k=l,T=c,L=d;if(!n.isMounted)if(o)k=v||l,T=_||c,L=b||d;else return;let F=!1;const Q=y._enterCb=I=>{F||(F=!0,I?R(L,[y]):R(T,[y]),D.delayedLeave&&D.delayedLeave(),y._enterCb=void 0)};k?O(k,[y,Q]):Q()},leave(y,k){const T=String(t.key);if(y._enterCb&&y._enterCb(!0),n.isUnmounting)return k();R(f,[y]);let L=!1;const F=y._leaveCb=Q=>{L||(L=!0,k(),Q?R(h,[y]):R(g,[y]),y._leaveCb=void 0,C[T]===t&&delete C[T])};C[T]=t,p?O(p,[y,F]):F()},clone(y){return bo(y,e,n,s)}};return D}function ki(t){if(Kr(t))return t=an(t),t.children=null,t}function Fc(t){return Kr(t)?t.children?t.children[0]:void 0:t}function Es(t,e){t.shapeFlag&6&&t.component?Es(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Dl(t,e=!1,n){let s=[],o=0;for(let r=0;r1)for(let r=0;r!!t.type.__asyncLoader,Kr=t=>t.type.__isKeepAlive,M_={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=zl(),s=n.ctx;if(!s.renderer)return()=>{const b=e.default&&e.default();return b&&b.length===1?b[0]:b};const o=new Map,r=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:f}}}=s,p=f("div");s.activate=(b,x,C,R,O)=>{const D=b.component;c(b,x,C,0,a),l(D.vnode,b,x,C,D,a,R,b.slotScopeIds,O),st(()=>{D.isDeactivated=!1,D.a&&bs(D.a);const y=b.props&&b.props.onVnodeMounted;y&&vt(y,D.parent,b)},a)},s.deactivate=b=>{const x=b.component;c(b,p,null,1,a),st(()=>{x.da&&bs(x.da);const C=b.props&&b.props.onVnodeUnmounted;C&&vt(C,x.parent,b),x.isDeactivated=!0},a)};function g(b){Ei(b),d(b,n,a,!0)}function h(b){o.forEach((x,C)=>{const R=Ga(x.type);R&&(!b||!b(R))&&m(C)})}function m(b){const x=o.get(b);!i||!En(x,i)?g(x):i&&Ei(i),o.delete(b),r.delete(b)}Wn(()=>[t.include,t.exclude],([b,x])=>{b&&h(C=>to(b,C)),x&&h(C=>!to(x,C))},{flush:"post",deep:!0});let v=null;const _=()=>{v!=null&&o.set(v,Ci(n.subTree))};return Zr(_),Ll(_),Il(()=>{o.forEach(b=>{const{subTree:x,suspense:C}=n,R=Ci(x);if(b.type===R.type&&b.key===R.key){Ei(R);const O=R.component.da;O&&st(O,C);return}g(b)})}),()=>{if(v=null,!e.default)return null;const b=e.default(),x=b[0];if(b.length>1)return i=null,b;if(!vo(x)||!(x.shapeFlag&4)&&!(x.shapeFlag&128))return i=null,x;let C=Ci(x);const R=C.type,O=Ga(ws(C)?C.type.__asyncResolved||{}:R),{include:D,exclude:y,max:k}=t;if(D&&(!O||!to(D,O))||y&&O&&to(y,O))return i=C,x;const T=C.key==null?R:C.key,L=o.get(T);return C.el&&(C=an(C),x.shapeFlag&128&&(x.ssContent=C)),v=T,L?(C.el=L.el,C.component=L.component,C.transition&&Es(C,C.transition),C.shapeFlag|=512,r.delete(T),r.add(T)):(r.add(T),k&&r.size>parseInt(k,10)&&m(r.values().next().value)),C.shapeFlag|=256,i=C,dh(x.type)?x:C}}},O_=M_;function to(t,e){return ke(t)?t.some(n=>to(n,e)):We(t)?t.split(",").includes(e):Tm(t)?t.test(e):!1}function R_(t,e){_h(t,"a",e)}function N_(t,e){_h(t,"da",e)}function _h(t,e,n=Ze){const s=t.__wdc||(t.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(Wr(e,s,n),n){let o=n.parent;for(;o&&o.parent;)Kr(o.parent.vnode)&&D_(s,e,n,o),o=o.parent}}function D_(t,e,n,s){const o=Wr(e,t,s,!0);bh(()=>{xl(s[e],o)},n)}function Ei(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Ci(t){return t.shapeFlag&128?t.ssContent:t}function Wr(t,e,n=Ze,s=!1){if(n){const o=n[t]||(n[t]=[]),r=e.__weh||(e.__weh=(...i)=>{if(n.isUnmounted)return;Bs(),Cs(n);const a=kt(e,n,t,i);return Zn(),$s(),a});return s?o.unshift(r):o.push(r),r}}const dn=t=>(e,n=Ze)=>(!wo||t==="sp")&&Wr(t,(...s)=>e(...s),n),L_=dn("bm"),Zr=dn("m"),I_=dn("bu"),Ll=dn("u"),Il=dn("bum"),bh=dn("um"),P_=dn("sp"),F_=dn("rtg"),B_=dn("rtc");function $_(t,e=Ze){Wr("ec",t,e)}function me(t,e){const n=rt;if(n===null)return t;const s=Jr(n)||n.proxy,o=t.dirs||(t.dirs=[]);for(let r=0;re(i,a,void 0,r&&r[a]));else{const i=Object.keys(t);o=new Array(i.length);for(let a=0,l=i.length;avo(e)?!(e.type===Et||e.type===Le&&!xh(e.children)):!0)?t:null}const ja=t=>t?Dh(t)?Jr(t)||t.proxy:ja(t.parent):null,so=nt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>ja(t.parent),$root:t=>ja(t.root),$emit:t=>t.emit,$options:t=>Fl(t),$forceUpdate:t=>t.f||(t.f=()=>Nl(t.update)),$nextTick:t=>t.n||(t.n=_e.bind(t.proxy)),$watch:t=>S_.bind(t)}),Ai=(t,e)=>t!==Ve&&!t.__isScriptSetup&&Fe(t,e),j_={get({_:t},e){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const g=i[e];if(g!==void 0)switch(g){case 1:return s[e];case 2:return o[e];case 4:return n[e];case 3:return r[e]}else{if(Ai(s,e))return i[e]=1,s[e];if(o!==Ve&&Fe(o,e))return i[e]=2,o[e];if((c=t.propsOptions[0])&&Fe(c,e))return i[e]=3,r[e];if(n!==Ve&&Fe(n,e))return i[e]=4,n[e];Ua&&(i[e]=0)}}const d=so[e];let f,p;if(d)return e==="$attrs"&>(t,"get",e),d(t);if((f=a.__cssModules)&&(f=f[e]))return f;if(n!==Ve&&Fe(n,e))return i[e]=4,n[e];if(p=l.config.globalProperties,Fe(p,e))return p[e]},set({_:t},e,n){const{data:s,setupState:o,ctx:r}=t;return Ai(o,e)?(o[e]=n,!0):s!==Ve&&Fe(s,e)?(s[e]=n,!0):Fe(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let a;return!!n[i]||t!==Ve&&Fe(t,i)||Ai(e,i)||(a=r[0])&&Fe(a,i)||Fe(s,i)||Fe(so,i)||Fe(o.config.globalProperties,i)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Fe(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};let Ua=!0;function U_(t){const e=Fl(t),n=t.proxy,s=t.ctx;Ua=!1,e.beforeCreate&&$c(e.beforeCreate,t,"bc");const{data:o,computed:r,methods:i,watch:a,provide:l,inject:c,created:d,beforeMount:f,mounted:p,beforeUpdate:g,updated:h,activated:m,deactivated:v,beforeDestroy:_,beforeUnmount:b,destroyed:x,unmounted:C,render:R,renderTracked:O,renderTriggered:D,errorCaptured:y,serverPrefetch:k,expose:T,inheritAttrs:L,components:F,directives:Q,filters:I}=e;if(c&&q_(c,s,null,t.appContext.config.unwrapInjectedRef),i)for(const S in i){const q=i[S];Me(q)&&(s[S]=q.bind(n))}if(o){const S=o.call(n,n);He(S)&&(t.data=zs(S))}if(Ua=!0,r)for(const S in r){const q=r[S],V=Me(q)?q.bind(n,n):Me(q.get)?q.get.bind(n,n):Lt,be=!Me(q)&&Me(q.set)?q.set.bind(n):Lt,ge=xt({get:V,set:be});Object.defineProperty(s,S,{enumerable:!0,configurable:!0,get:()=>ge.value,set:ee=>ge.value=ee})}if(a)for(const S in a)kh(a[S],s,n,S);if(l){const S=Me(l)?l.call(n):l;Reflect.ownKeys(S).forEach(q=>{or(q,S[q])})}d&&$c(d,t,"c");function W(S,q){ke(q)?q.forEach(V=>S(V.bind(n))):q&&S(q.bind(n))}if(W(L_,f),W(Zr,p),W(I_,g),W(Ll,h),W(R_,m),W(N_,v),W($_,y),W(B_,O),W(F_,D),W(Il,b),W(bh,C),W(P_,k),ke(T))if(T.length){const S=t.exposed||(t.exposed={});T.forEach(q=>{Object.defineProperty(S,q,{get:()=>n[q],set:V=>n[q]=V})})}else t.exposed||(t.exposed={});R&&t.render===Lt&&(t.render=R),L!=null&&(t.inheritAttrs=L),F&&(t.components=F),Q&&(t.directives=Q)}function q_(t,e,n=Lt,s=!1){ke(t)&&(t=qa(t));for(const o in t){const r=t[o];let i;He(r)?"default"in r?i=sn(r.from||o,r.default,!0):i=sn(r.from||o):i=sn(r),dt(i)&&s?Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):e[o]=i}}function $c(t,e,n){kt(ke(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,n)}function kh(t,e,n,s){const o=s.includes(".")?fh(n,s):()=>n[s];if(We(t)){const r=e[t];Me(r)&&Wn(o,r)}else if(Me(t))Wn(o,t.bind(n));else if(He(t))if(ke(t))t.forEach(r=>kh(r,e,n,s));else{const r=Me(t.handler)?t.handler.bind(n):e[t.handler];Me(r)&&Wn(o,r,t)}}function Fl(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=t.appContext,a=r.get(e);let l;return a?l=a:!o.length&&!n&&!s?l=e:(l={},o.length&&o.forEach(c=>vr(l,c,i,!0)),vr(l,e,i)),He(e)&&r.set(e,l),l}function vr(t,e,n,s=!1){const{mixins:o,extends:r}=e;r&&vr(t,r,n,!0),o&&o.forEach(i=>vr(t,i,n,!0));for(const i in e)if(!(s&&i==="expose")){const a=H_[i]||n&&n[i];t[i]=a?a(t[i],e[i]):e[i]}return t}const H_={data:zc,props:Bn,emits:Bn,methods:Bn,computed:Bn,beforeCreate:ut,created:ut,beforeMount:ut,mounted:ut,beforeUpdate:ut,updated:ut,beforeDestroy:ut,beforeUnmount:ut,destroyed:ut,unmounted:ut,activated:ut,deactivated:ut,errorCaptured:ut,serverPrefetch:ut,components:Bn,directives:Bn,watch:G_,provide:zc,inject:V_};function zc(t,e){return e?t?function(){return nt(Me(t)?t.call(this,this):t,Me(e)?e.call(this,this):e)}:e:t}function V_(t,e){return Bn(qa(t),qa(e))}function qa(t){if(ke(t)){const e={};for(let n=0;n0)&&!(i&16)){if(i&8){const d=t.vnode.dynamicProps;for(let f=0;f{l=!0;const[p,g]=Ch(f,e,!0);nt(i,p),g&&a.push(...g)};!n&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!r&&!l)return He(t)&&s.set(t,ms),ms;if(ke(r))for(let d=0;d-1,g[1]=m<0||h-1||Fe(g,"default"))&&a.push(f)}}}const c=[i,a];return He(t)&&s.set(t,c),c}function jc(t){return t[0]!=="$"}function Uc(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function qc(t,e){return Uc(t)===Uc(e)}function Hc(t,e){return ke(e)?e.findIndex(n=>qc(n,t)):Me(e)&&qc(e,t)?0:-1}const Ah=t=>t[0]==="_"||t==="$stable",Bl=t=>ke(t)?t.map(Bt):[Bt(t)],Z_=(t,e,n)=>{if(e._n)return e;const s=Ke((...o)=>Bl(e(...o)),n);return s._c=!1,s},Sh=(t,e,n)=>{const s=t._ctx;for(const o in t){if(Ah(o))continue;const r=t[o];if(Me(r))e[o]=Z_(o,r,s);else if(r!=null){const i=Bl(r);e[o]=()=>i}}},Th=(t,e)=>{const n=Bl(e);t.slots.default=()=>n},Y_=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=$e(e),mr(e,"_",n)):Sh(e,t.slots={})}else t.slots={},e&&Th(t,e);mr(t.slots,Qr,1)},Q_=(t,e,n)=>{const{vnode:s,slots:o}=t;let r=!0,i=Ve;if(s.shapeFlag&32){const a=e._;a?n&&a===1?r=!1:(nt(o,e),!n&&a===1&&delete o._):(r=!e.$stable,Sh(e,o)),i=e}else e&&(Th(t,e),i={default:1});if(r)for(const a in o)!Ah(a)&&!(a in i)&&delete o[a]};function Mh(){return{app:null,config:{isNativeTag:Cm,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 J_=0;function X_(t,e){return function(s,o=null){Me(s)||(s=Object.assign({},s)),o!=null&&!He(o)&&(o=null);const r=Mh(),i=new Set;let a=!1;const l=r.app={_uid:J_++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:b1,get config(){return r.config},set config(c){},use(c,...d){return i.has(c)||(c&&Me(c.install)?(i.add(c),c.install(l,...d)):Me(c)&&(i.add(c),c(l,...d))),l},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),l},component(c,d){return d?(r.components[c]=d,l):r.components[c]},directive(c,d){return d?(r.directives[c]=d,l):r.directives[c]},mount(c,d,f){if(!a){const p=Ae(s,o);return p.appContext=r,d&&e?e(p,c):t(p,c,f),a=!0,l._container=c,c.__vue_app__=l,Jr(p.component)||p.component.proxy}},unmount(){a&&(t(null,l._container),delete l._container.__vue_app__)},provide(c,d){return r.provides[c]=d,l}};return l}}function Va(t,e,n,s,o=!1){if(ke(t)){t.forEach((p,g)=>Va(p,e&&(ke(e)?e[g]:e),n,s,o));return}if(ws(s)&&!o)return;const r=s.shapeFlag&4?Jr(s.component)||s.component.proxy:s.el,i=o?null:r,{i:a,r:l}=t,c=e&&e.r,d=a.refs===Ve?a.refs={}:a.refs,f=a.setupState;if(c!=null&&c!==l&&(We(c)?(d[c]=null,Fe(f,c)&&(f[c]=null)):dt(c)&&(c.value=null)),Me(l))Tn(l,a,12,[i,d]);else{const p=We(l),g=dt(l);if(p||g){const h=()=>{if(t.f){const m=p?Fe(f,l)?f[l]:d[l]:l.value;o?ke(m)&&xl(m,r):ke(m)?m.includes(r)||m.push(r):p?(d[l]=[r],Fe(f,l)&&(f[l]=d[l])):(l.value=[r],t.k&&(d[t.k]=l.value))}else p?(d[l]=i,Fe(f,l)&&(f[l]=i)):g&&(l.value=i,t.k&&(d[t.k]=i))};i?(h.id=-1,st(h,n)):h()}}}const st=A_;function e1(t){return t1(t)}function t1(t,e){const n=Dm();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:a,createComment:l,setText:c,setElementText:d,parentNode:f,nextSibling:p,setScopeId:g=Lt,insertStaticContent:h}=t,m=(w,E,P,B=null,$=null,ne=null,re=!1,z=null,se=!!E.dynamicChildren)=>{if(w===E)return;w&&!En(w,E)&&(B=H(w),ee(w,$,ne,!0),w=null),E.patchFlag===-2&&(se=!1,E.dynamicChildren=null);const{type:U,ref:Z,shapeFlag:ie}=E;switch(U){case Yr:v(w,E,P,B);break;case Et:_(w,E,P,B);break;case rr:w==null&&b(E,P,B,re);break;case Le:F(w,E,P,B,$,ne,re,z,se);break;default:ie&1?R(w,E,P,B,$,ne,re,z,se):ie&6?Q(w,E,P,B,$,ne,re,z,se):(ie&64||ie&128)&&U.process(w,E,P,B,$,ne,re,z,se,X)}Z!=null&&$&&Va(Z,w&&w.ref,ne,E||w,!E)},v=(w,E,P,B)=>{if(w==null)s(E.el=a(E.children),P,B);else{const $=E.el=w.el;E.children!==w.children&&c($,E.children)}},_=(w,E,P,B)=>{w==null?s(E.el=l(E.children||""),P,B):E.el=w.el},b=(w,E,P,B)=>{[w.el,w.anchor]=h(w.children,E,P,B,w.el,w.anchor)},x=({el:w,anchor:E},P,B)=>{let $;for(;w&&w!==E;)$=p(w),s(w,P,B),w=$;s(E,P,B)},C=({el:w,anchor:E})=>{let P;for(;w&&w!==E;)P=p(w),o(w),w=P;o(E)},R=(w,E,P,B,$,ne,re,z,se)=>{re=re||E.type==="svg",w==null?O(E,P,B,$,ne,re,z,se):k(w,E,$,ne,re,z,se)},O=(w,E,P,B,$,ne,re,z)=>{let se,U;const{type:Z,props:ie,shapeFlag:ue,transition:de,dirs:xe}=w;if(se=w.el=i(w.type,ne,ie&&ie.is,ie),ue&8?d(se,w.children):ue&16&&y(w.children,se,null,B,$,ne&&Z!=="foreignObject",re,z),xe&&Dn(w,null,B,"created"),D(se,w,w.scopeId,re,B),ie){for(const oe in ie)oe!=="value"&&!sr(oe)&&r(se,oe,null,ie[oe],ne,w.children,B,$,J);"value"in ie&&r(se,"value",null,ie.value),(U=ie.onVnodeBeforeMount)&&vt(U,B,w)}xe&&Dn(w,null,B,"beforeMount");const K=(!$||$&&!$.pendingBranch)&&de&&!de.persisted;K&&de.beforeEnter(se),s(se,E,P),((U=ie&&ie.onVnodeMounted)||K||xe)&&st(()=>{U&&vt(U,B,w),K&&de.enter(se),xe&&Dn(w,null,B,"mounted")},$)},D=(w,E,P,B,$)=>{if(P&&g(w,P),B)for(let ne=0;ne{for(let U=se;U{const z=E.el=w.el;let{patchFlag:se,dynamicChildren:U,dirs:Z}=E;se|=w.patchFlag&16;const ie=w.props||Ve,ue=E.props||Ve;let de;P&&Ln(P,!1),(de=ue.onVnodeBeforeUpdate)&&vt(de,P,E,w),Z&&Dn(E,w,P,"beforeUpdate"),P&&Ln(P,!0);const xe=$&&E.type!=="foreignObject";if(U?T(w.dynamicChildren,U,z,P,B,xe,ne):re||q(w,E,z,null,P,B,xe,ne,!1),se>0){if(se&16)L(z,E,ie,ue,P,B,$);else if(se&2&&ie.class!==ue.class&&r(z,"class",null,ue.class,$),se&4&&r(z,"style",ie.style,ue.style,$),se&8){const K=E.dynamicProps;for(let oe=0;oe{de&&vt(de,P,E,w),Z&&Dn(E,w,P,"updated")},B)},T=(w,E,P,B,$,ne,re)=>{for(let z=0;z{if(P!==B){if(P!==Ve)for(const z in P)!sr(z)&&!(z in B)&&r(w,z,P[z],null,re,E.children,$,ne,J);for(const z in B){if(sr(z))continue;const se=B[z],U=P[z];se!==U&&z!=="value"&&r(w,z,U,se,re,E.children,$,ne,J)}"value"in B&&r(w,"value",P.value,B.value)}},F=(w,E,P,B,$,ne,re,z,se)=>{const U=E.el=w?w.el:a(""),Z=E.anchor=w?w.anchor:a("");let{patchFlag:ie,dynamicChildren:ue,slotScopeIds:de}=E;de&&(z=z?z.concat(de):de),w==null?(s(U,P,B),s(Z,P,B),y(E.children,P,Z,$,ne,re,z,se)):ie>0&&ie&64&&ue&&w.dynamicChildren?(T(w.dynamicChildren,ue,P,$,ne,re,z),(E.key!=null||$&&E===$.subTree)&&Oh(w,E,!0)):q(w,E,P,Z,$,ne,re,z,se)},Q=(w,E,P,B,$,ne,re,z,se)=>{E.slotScopeIds=z,w==null?E.shapeFlag&512?$.ctx.activate(E,P,B,re,se):I(E,P,B,$,ne,re,se):ae(w,E,se)},I=(w,E,P,B,$,ne,re)=>{const z=w.component=d1(w,B,$);if(Kr(w)&&(z.ctx.renderer=X),u1(z),z.asyncDep){if($&&$.registerDep(z,W),!w.el){const se=z.subTree=Ae(Et);_(null,se,E,P)}return}W(z,w,E,P,$,ne,re)},ae=(w,E,P)=>{const B=E.component=w.component;if(E_(w,E,P))if(B.asyncDep&&!B.asyncResolved){S(B,E,P);return}else B.next=E,b_(B.update),B.update();else E.el=w.el,B.vnode=E},W=(w,E,P,B,$,ne,re)=>{const z=()=>{if(w.isMounted){let{next:Z,bu:ie,u:ue,parent:de,vnode:xe}=w,K=Z,oe;Ln(w,!1),Z?(Z.el=xe.el,S(w,Z,re)):Z=xe,ie&&bs(ie),(oe=Z.props&&Z.props.onVnodeBeforeUpdate)&&vt(oe,de,Z,xe),Ln(w,!0);const pe=xi(w),Ce=w.subTree;w.subTree=pe,m(Ce,pe,f(Ce.el),H(Ce),w,$,ne),Z.el=pe.el,K===null&&C_(w,pe.el),ue&&st(ue,$),(oe=Z.props&&Z.props.onVnodeUpdated)&&st(()=>vt(oe,de,Z,xe),$)}else{let Z;const{el:ie,props:ue}=E,{bm:de,m:xe,parent:K}=w,oe=ws(E);if(Ln(w,!1),de&&bs(de),!oe&&(Z=ue&&ue.onVnodeBeforeMount)&&vt(Z,K,E),Ln(w,!0),ie&&ce){const pe=()=>{w.subTree=xi(w),ce(ie,w.subTree,w,$,null)};oe?E.type.__asyncLoader().then(()=>!w.isUnmounted&&pe()):pe()}else{const pe=w.subTree=xi(w);m(null,pe,P,B,w,$,ne),E.el=pe.el}if(xe&&st(xe,$),!oe&&(Z=ue&&ue.onVnodeMounted)){const pe=E;st(()=>vt(Z,K,pe),$)}(E.shapeFlag&256||K&&ws(K.vnode)&&K.vnode.shapeFlag&256)&&w.a&&st(w.a,$),w.isMounted=!0,E=P=B=null}},se=w.effect=new Cl(z,()=>Nl(U),w.scope),U=w.update=()=>se.run();U.id=w.uid,Ln(w,!0),U()},S=(w,E,P)=>{E.component=w;const B=w.vnode.props;w.vnode=E,w.next=null,W_(w,E.props,B,P),Q_(w,E.children,P),Bs(),Ic(),$s()},q=(w,E,P,B,$,ne,re,z,se=!1)=>{const U=w&&w.children,Z=w?w.shapeFlag:0,ie=E.children,{patchFlag:ue,shapeFlag:de}=E;if(ue>0){if(ue&128){be(U,ie,P,B,$,ne,re,z,se);return}else if(ue&256){V(U,ie,P,B,$,ne,re,z,se);return}}de&8?(Z&16&&J(U,$,ne),ie!==U&&d(P,ie)):Z&16?de&16?be(U,ie,P,B,$,ne,re,z,se):J(U,$,ne,!0):(Z&8&&d(P,""),de&16&&y(ie,P,B,$,ne,re,z,se))},V=(w,E,P,B,$,ne,re,z,se)=>{w=w||ms,E=E||ms;const U=w.length,Z=E.length,ie=Math.min(U,Z);let ue;for(ue=0;ueZ?J(w,$,ne,!0,!1,ie):y(E,P,B,$,ne,re,z,se,ie)},be=(w,E,P,B,$,ne,re,z,se)=>{let U=0;const Z=E.length;let ie=w.length-1,ue=Z-1;for(;U<=ie&&U<=ue;){const de=w[U],xe=E[U]=se?_n(E[U]):Bt(E[U]);if(En(de,xe))m(de,xe,P,null,$,ne,re,z,se);else break;U++}for(;U<=ie&&U<=ue;){const de=w[ie],xe=E[ue]=se?_n(E[ue]):Bt(E[ue]);if(En(de,xe))m(de,xe,P,null,$,ne,re,z,se);else break;ie--,ue--}if(U>ie){if(U<=ue){const de=ue+1,xe=deue)for(;U<=ie;)ee(w[U],$,ne,!0),U++;else{const de=U,xe=U,K=new Map;for(U=xe;U<=ue;U++){const et=E[U]=se?_n(E[U]):Bt(E[U]);et.key!=null&&K.set(et.key,U)}let oe,pe=0;const Ce=ue-xe+1;let Pe=!1,qe=0;const De=new Array(Ce);for(U=0;U=Ce){ee(et,$,ne,!0);continue}let it;if(et.key!=null)it=K.get(et.key);else for(oe=xe;oe<=ue;oe++)if(De[oe-xe]===0&&En(et,E[oe])){it=oe;break}it===void 0?ee(et,$,ne,!0):(De[it-xe]=U+1,it>=qe?qe=it:Pe=!0,m(et,E[it],P,null,$,ne,re,z,se),pe++)}const Ye=Pe?n1(De):ms;for(oe=Ye.length-1,U=Ce-1;U>=0;U--){const et=xe+U,it=E[et],Cc=et+1{const{el:ne,type:re,transition:z,children:se,shapeFlag:U}=w;if(U&6){ge(w.component.subTree,E,P,B);return}if(U&128){w.suspense.move(E,P,B);return}if(U&64){re.move(w,E,P,X);return}if(re===Le){s(ne,E,P);for(let ie=0;iez.enter(ne),$);else{const{leave:ie,delayLeave:ue,afterLeave:de}=z,xe=()=>s(ne,E,P),K=()=>{ie(ne,()=>{xe(),de&&de()})};ue?ue(ne,xe,K):K()}else s(ne,E,P)},ee=(w,E,P,B=!1,$=!1)=>{const{type:ne,props:re,ref:z,children:se,dynamicChildren:U,shapeFlag:Z,patchFlag:ie,dirs:ue}=w;if(z!=null&&Va(z,null,P,w,!0),Z&256){E.ctx.deactivate(w);return}const de=Z&1&&ue,xe=!ws(w);let K;if(xe&&(K=re&&re.onVnodeBeforeUnmount)&&vt(K,E,w),Z&6)N(w.component,P,B);else{if(Z&128){w.suspense.unmount(P,B);return}de&&Dn(w,null,E,"beforeUnmount"),Z&64?w.type.remove(w,E,P,$,X,B):U&&(ne!==Le||ie>0&&ie&64)?J(U,E,P,!1,!0):(ne===Le&&ie&384||!$&&Z&16)&&J(se,E,P),B&&ve(w)}(xe&&(K=re&&re.onVnodeUnmounted)||de)&&st(()=>{K&&vt(K,E,w),de&&Dn(w,null,E,"unmounted")},P)},ve=w=>{const{type:E,el:P,anchor:B,transition:$}=w;if(E===Le){Ee(P,B);return}if(E===rr){C(w);return}const ne=()=>{o(P),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(w.shapeFlag&1&&$&&!$.persisted){const{leave:re,delayLeave:z}=$,se=()=>re(P,ne);z?z(w.el,ne,se):se()}else ne()},Ee=(w,E)=>{let P;for(;w!==E;)P=p(w),o(w),w=P;o(E)},N=(w,E,P)=>{const{bum:B,scope:$,update:ne,subTree:re,um:z}=w;B&&bs(B),$.stop(),ne&&(ne.active=!1,ee(re,w,E,P)),z&&st(z,E),st(()=>{w.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},J=(w,E,P,B=!1,$=!1,ne=0)=>{for(let re=ne;rew.shapeFlag&6?H(w.component.subTree):w.shapeFlag&128?w.suspense.next():p(w.anchor||w.el),te=(w,E,P)=>{w==null?E._vnode&&ee(E._vnode,null,null,!0):m(E._vnode||null,w,E,null,null,null,P),Ic(),ah(),E._vnode=w},X={p:m,um:ee,m:ge,r:ve,mt:I,mc:y,pc:q,pbc:T,n:H,o:t};let he,ce;return e&&([he,ce]=e(X)),{render:te,hydrate:he,createApp:X_(te,he)}}function Ln({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Oh(t,e,n=!1){const s=t.children,o=e.children;if(ke(s)&&ke(o))for(let r=0;r>1,t[n[a]]0&&(e[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=e[i];return n}const s1=t=>t.__isTeleport,Le=Symbol(void 0),Yr=Symbol(void 0),Et=Symbol(void 0),rr=Symbol(void 0),oo=[];let Dt=null;function A(t=!1){oo.push(Dt=t?null:[])}function o1(){oo.pop(),Dt=oo[oo.length-1]||null}let yo=1;function Vc(t){yo+=t}function Rh(t){return t.dynamicChildren=yo>0?Dt||ms:null,o1(),yo>0&&Dt&&Dt.push(t),t}function M(t,e,n,s,o,r){return Rh(u(t,e,n,s,o,r,!0))}function ot(t,e,n,s,o){return Rh(Ae(t,e,n,s,o,!0))}function vo(t){return t?t.__v_isVNode===!0:!1}function En(t,e){return t.type===e.type&&t.key===e.key}const Qr="__vInternal",Nh=({key:t})=>t??null,ir=({ref:t,ref_key:e,ref_for:n})=>t!=null?We(t)||dt(t)||Me(t)?{i:rt,r:t,k:e,f:!!n}:t:null;function u(t,e=null,n=null,s=0,o=null,r=t===Le?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Nh(e),ref:e&&ir(e),scopeId:Gr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:rt};return a?($l(l,n),r&128&&t.normalize(l)):n&&(l.shapeFlag|=We(n)?8:16),yo>0&&!i&&Dt&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Dt.push(l),l}const Ae=r1;function r1(t,e=null,n=null,s=0,o=null,r=!1){if((!t||t===yh)&&(t=Et),vo(t)){const a=an(t,e,!0);return n&&$l(a,n),yo>0&&!r&&Dt&&(a.shapeFlag&6?Dt[Dt.indexOf(t)]=a:Dt.push(a)),a.patchFlag|=-2,a}if(g1(t)&&(t=t.__vccOpts),e){e=i1(e);let{class:a,style:l}=e;a&&!We(a)&&(e.class=Te(a)),He(l)&&(Jf(l)&&!ke(l)&&(l=nt({},l)),e.style=jt(l))}const i=We(t)?1:dh(t)?128:s1(t)?64:He(t)?4:Me(t)?2:0;return u(t,e,n,s,o,i,r,!0)}function i1(t){return t?Jf(t)||Qr in t?nt({},t):t:null}function an(t,e,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=t,a=e?a1(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&Nh(a),ref:e&&e.ref?n&&o?ke(o)?o.concat(ir(e)):[o,ir(e)]:ir(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:i,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Le?r===-1?16:r|16:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&an(t.ssContent),ssFallback:t.ssFallback&&an(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function we(t=" ",e=0){return Ae(Yr,null,t,e)}function js(t,e){const n=Ae(rr,null,t);return n.staticCount=e,n}function j(t="",e=!1){return e?(A(),ot(Et,null,t)):Ae(Et,null,t)}function Bt(t){return t==null||typeof t=="boolean"?Ae(Et):ke(t)?Ae(Le,null,t.slice()):typeof t=="object"?_n(t):Ae(Yr,null,String(t))}function _n(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:an(t)}function $l(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(ke(e))n=16;else if(typeof e=="object")if(s&65){const o=e.default;o&&(o._c&&(o._d=!1),$l(t,o()),o._c&&(o._d=!0));return}else{n=32;const o=e._;!o&&!(Qr in e)?e._ctx=rt:o===3&&rt&&(rt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Me(e)?(e={default:e,_ctx:rt},n=32):(e=String(e),s&64?(n=16,e=[we(e)]):n=8);t.children=e,t.shapeFlag|=n}function a1(...t){const e={};for(let n=0;nZe||rt,Cs=t=>{Ze=t,t.scope.on()},Zn=()=>{Ze&&Ze.scope.off(),Ze=null};function Dh(t){return t.vnode.shapeFlag&4}let wo=!1;function u1(t,e=!1){wo=e;const{props:n,children:s}=t.vnode,o=Dh(t);K_(t,n,o,e),Y_(t,s);const r=o?f1(t,e):void 0;return wo=!1,r}function f1(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=Xf(new Proxy(t.ctx,j_));const{setup:s}=n;if(s){const o=t.setupContext=s.length>1?p1(t):null;Cs(t),Bs();const r=Tn(s,t,0,[t.props,o]);if($s(),Zn(),Bf(r)){if(r.then(Zn,Zn),e)return r.then(i=>{Gc(t,i,e)}).catch(i=>{Hr(i,t,0)});t.asyncDep=r}else Gc(t,r,e)}else Lh(t,e)}function Gc(t,e,n){Me(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:He(e)&&(t.setupState=sh(e)),Lh(t,n)}let Kc;function Lh(t,e,n){const s=t.type;if(!t.render){if(!e&&Kc&&!s.render){const o=s.template||Fl(t).template;if(o){const{isCustomElement:r,compilerOptions:i}=t.appContext.config,{delimiters:a,compilerOptions:l}=s,c=nt(nt({isCustomElement:r,delimiters:a},i),l);s.render=Kc(o,c)}}t.render=s.render||Lt}Cs(t),Bs(),U_(t),$s(),Zn()}function h1(t){return new Proxy(t.attrs,{get(e,n){return gt(t,"get","$attrs"),e[n]}})}function p1(t){const e=s=>{t.exposed=s||{}};let n;return{get attrs(){return n||(n=h1(t))},slots:t.slots,emit:t.emit,expose:e}}function Jr(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(sh(Xf(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in so)return so[n](t)},has(e,n){return n in e||n in so}}))}function Ga(t,e=!0){return Me(t)?t.displayName||t.name:t.name||e&&t.__name}function g1(t){return Me(t)&&"__vccOpts"in t}const xt=(t,e)=>g_(t,e,wo);function jl(t,e,n){const s=arguments.length;return s===2?He(e)&&!ke(e)?vo(e)?Ae(t,null,[e]):Ae(t,e):Ae(t,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&vo(n)&&(n=[n]),Ae(t,e,n))}const m1=Symbol(""),_1=()=>sn(m1),b1="3.2.47",y1="http://www.w3.org/2000/svg",jn=typeof document<"u"?document:null,Wc=jn&&jn.createElement("template"),v1={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const o=e?jn.createElementNS(y1,t):jn.createElement(t,n?{is:n}:void 0);return t==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:t=>jn.createTextNode(t),createComment:t=>jn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>jn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,o,r){const i=n?n.previousSibling:e.lastChild;if(o&&(o===r||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{Wc.innerHTML=s?`${t}`:t;const a=Wc.content;if(s){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[i?i.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function w1(t,e,n){const s=t._vtc;s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function x1(t,e,n){const s=t.style,o=We(n);if(n&&!o){if(e&&!We(e))for(const r in e)n[r]==null&&Ka(s,r,"");for(const r in n)Ka(s,r,n[r])}else{const r=s.display;o?e!==n&&(s.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(s.display=r)}}const Zc=/\s*!important$/;function Ka(t,e,n){if(ke(n))n.forEach(s=>Ka(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=k1(t,e);Zc.test(n)?t.setProperty(ts(s),n.replace(Zc,""),"important"):t[s]=n}}const Yc=["Webkit","Moz","ms"],Si={};function k1(t,e){const n=Si[e];if(n)return n;let s=Zt(e);if(s!=="filter"&&s in t)return Si[e]=s;s=Ur(s);for(let o=0;oTi||(M1.then(()=>Ti=0),Ti=Date.now());function R1(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;kt(N1(s,n.value),e,5,[s])};return n.value=t,n.attached=O1(),n}function N1(t,e){if(ke(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>o=>!o._stopped&&s&&s(o))}else return e}const Xc=/^on[a-z]/,D1=(t,e,n,s,o=!1,r,i,a,l)=>{e==="class"?w1(t,s,o):e==="style"?x1(t,n,s):zr(e)?wl(e)||S1(t,e,n,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):L1(t,e,s,o))?C1(t,e,s,r,i,a,l):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),E1(t,e,s,o))};function L1(t,e,n,s){return s?!!(e==="innerHTML"||e==="textContent"||e in t&&Xc.test(e)&&Me(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Xc.test(e)&&We(n)?!1:e in t}const hn="transition",Ws="animation",wr=(t,{slots:e})=>jl(ph,Ph(t),e);wr.displayName="Transition";const Ih={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},I1=wr.props=nt({},ph.props,Ih),In=(t,e=[])=>{ke(t)?t.forEach(n=>n(...e)):t&&t(...e)},ed=t=>t?ke(t)?t.some(e=>e.length>1):t.length>1:!1;function Ph(t){const e={};for(const F in t)F in Ih||(e[F]=t[F]);if(t.css===!1)return e;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:c=i,appearToClass:d=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=t,h=P1(o),m=h&&h[0],v=h&&h[1],{onBeforeEnter:_,onEnter:b,onEnterCancelled:x,onLeave:C,onLeaveCancelled:R,onBeforeAppear:O=_,onAppear:D=b,onAppearCancelled:y=x}=e,k=(F,Q,I)=>{mn(F,Q?d:a),mn(F,Q?c:i),I&&I()},T=(F,Q)=>{F._isLeaving=!1,mn(F,f),mn(F,g),mn(F,p),Q&&Q()},L=F=>(Q,I)=>{const ae=F?D:b,W=()=>k(Q,F,I);In(ae,[Q,W]),td(()=>{mn(Q,F?l:r),tn(Q,F?d:a),ed(ae)||nd(Q,s,m,W)})};return nt(e,{onBeforeEnter(F){In(_,[F]),tn(F,r),tn(F,i)},onBeforeAppear(F){In(O,[F]),tn(F,l),tn(F,c)},onEnter:L(!1),onAppear:L(!0),onLeave(F,Q){F._isLeaving=!0;const I=()=>T(F,Q);tn(F,f),Bh(),tn(F,p),td(()=>{F._isLeaving&&(mn(F,f),tn(F,g),ed(C)||nd(F,s,v,I))}),In(C,[F,I])},onEnterCancelled(F){k(F,!1),In(x,[F])},onAppearCancelled(F){k(F,!0),In(y,[F])},onLeaveCancelled(F){T(F),In(R,[F])}})}function P1(t){if(t==null)return null;if(He(t))return[Mi(t.enter),Mi(t.leave)];{const e=Mi(t);return[e,e]}}function Mi(t){return Nm(t)}function tn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function mn(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function td(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let F1=0;function nd(t,e,n,s){const o=t._endId=++F1,r=()=>{o===t._endId&&s()};if(n)return setTimeout(r,n);const{type:i,timeout:a,propCount:l}=Fh(t,e);if(!i)return s();const c=i+"end";let d=0;const f=()=>{t.removeEventListener(c,p),r()},p=g=>{g.target===t&&++d>=l&&f()};setTimeout(()=>{d(n[h]||"").split(", "),o=s(`${hn}Delay`),r=s(`${hn}Duration`),i=sd(o,r),a=s(`${Ws}Delay`),l=s(`${Ws}Duration`),c=sd(a,l);let d=null,f=0,p=0;e===hn?i>0&&(d=hn,f=i,p=r.length):e===Ws?c>0&&(d=Ws,f=c,p=l.length):(f=Math.max(i,c),d=f>0?i>c?hn:Ws:null,p=d?d===hn?r.length:l.length:0);const g=d===hn&&/\b(transform|all)(,|$)/.test(s(`${hn}Property`).toString());return{type:d,timeout:f,propCount:p,hasTransform:g}}function sd(t,e){for(;t.lengthod(n)+od(t[s])))}function od(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function Bh(){return document.body.offsetHeight}const $h=new WeakMap,zh=new WeakMap,jh={name:"TransitionGroup",props:nt({},I1,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=zl(),s=hh();let o,r;return Ll(()=>{if(!o.length)return;const i=t.moveClass||`${t.name||"v"}-move`;if(!U1(o[0].el,n.vnode.el,i))return;o.forEach($1),o.forEach(z1);const a=o.filter(j1);Bh(),a.forEach(l=>{const c=l.el,d=c.style;tn(c,i),d.transform=d.webkitTransform=d.transitionDuration="";const f=c._moveCb=p=>{p&&p.target!==c||(!p||/transform$/.test(p.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,mn(c,i))};c.addEventListener("transitionend",f)})}),()=>{const i=$e(t),a=Ph(i);let l=i.tag||Le;o=r,r=e.default?Dl(e.default()):[];for(let c=0;cdelete t.mode;jh.props;const Ut=jh;function $1(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function z1(t){zh.set(t,t.el.getBoundingClientRect())}function j1(t){const e=$h.get(t),n=zh.get(t),s=e.left-n.left,o=e.top-n.top;if(s||o){const r=t.el.style;return r.transform=r.webkitTransform=`translate(${s}px,${o}px)`,r.transitionDuration="0s",t}}function U1(t,e,n){const s=t.cloneNode();t._vtc&&t._vtc.forEach(i=>{i.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(i=>i&&s.classList.add(i)),s.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(s);const{hasTransform:r}=Fh(s);return o.removeChild(s),r}const As=t=>{const e=t.props["onUpdate:modelValue"]||!1;return ke(e)?n=>bs(e,n):e};function q1(t){t.target.composing=!0}function rd(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Re={created(t,{modifiers:{lazy:e,trim:n,number:s}},o){t._assign=As(o);const r=s||o.props&&o.props.type==="number";Cn(t,e?"change":"input",i=>{if(i.target.composing)return;let a=t.value;n&&(a=a.trim()),r&&(a=_r(a)),t._assign(a)}),n&&Cn(t,"change",()=>{t.value=t.value.trim()}),e||(Cn(t,"compositionstart",q1),Cn(t,"compositionend",rd),Cn(t,"change",rd))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:s,number:o}},r){if(t._assign=As(r),t.composing||document.activeElement===t&&t.type!=="range"&&(n||s&&t.value.trim()===e||(o||t.type==="number")&&_r(t.value)===e))return;const i=e??"";t.value!==i&&(t.value=i)}},$t={deep:!0,created(t,e,n){t._assign=As(n),Cn(t,"change",()=>{const s=t._modelValue,o=xo(t),r=t.checked,i=t._assign;if(ke(s)){const a=vl(s,o),l=a!==-1;if(r&&!l)i(s.concat(o));else if(!r&&l){const c=[...s];c.splice(a,1),i(c)}}else if(Ps(s)){const a=new Set(s);r?a.add(o):a.delete(o),i(a)}else i(Uh(t,r))})},mounted:id,beforeUpdate(t,e,n){t._assign=As(n),id(t,e,n)}};function id(t,{value:e,oldValue:n},s){t._modelValue=e,ke(e)?t.checked=vl(e,s.props.value)>-1:Ps(e)?t.checked=e.has(s.props.value):e!==n&&(t.checked=Ro(e,Uh(t,!0)))}const H1={deep:!0,created(t,{value:e,modifiers:{number:n}},s){const o=Ps(e);Cn(t,"change",()=>{const r=Array.prototype.filter.call(t.options,i=>i.selected).map(i=>n?_r(xo(i)):xo(i));t._assign(t.multiple?o?new Set(r):r:r[0])}),t._assign=As(s)},mounted(t,{value:e}){ad(t,e)},beforeUpdate(t,e,n){t._assign=As(n)},updated(t,{value:e}){ad(t,e)}};function ad(t,e){const n=t.multiple;if(!(n&&!ke(e)&&!Ps(e))){for(let s=0,o=t.options.length;s-1:r.selected=e.has(i);else if(Ro(xo(r),e)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function xo(t){return"_value"in t?t._value:t.value}function Uh(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const V1=["ctrl","shift","alt","meta"],G1={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>V1.some(n=>t[`${n}Key`]&&!e.includes(n))},le=(t,e)=>(n,...s)=>{for(let o=0;on=>{if(!("key"in n))return;const s=ts(n.key);if(e.some(o=>o===s||K1[o]===s))return t(n)},at={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Zs(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),Zs(t,!0),s.enter(t)):s.leave(t,()=>{Zs(t,!1)}):Zs(t,e))},beforeUnmount(t,{value:e}){Zs(t,e)}};function Zs(t,e){t.style.display=e?t._vod:"none"}const W1=nt({patchProp:D1},v1);let ld;function Z1(){return ld||(ld=e1(W1))}const Y1=(...t)=>{const e=Z1().createApp(...t),{mount:n}=e;return e.mount=s=>{const o=Q1(s);if(!o)return;const r=e._component;!Me(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},e};function Q1(t){return We(t)?document.querySelector(t):t}function J1(){return qh().__VUE_DEVTOOLS_GLOBAL_HOOK__}function qh(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const X1=typeof Proxy=="function",e0="devtools-plugin:setup",t0="plugin:settings:set";let as,Za;function n0(){var t;return as!==void 0||(typeof window<"u"&&window.performance?(as=!0,Za=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?(as=!0,Za=global.perf_hooks.performance):as=!1),as}function s0(){return n0()?Za.now():Date.now()}class o0{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const s={};if(e.settings)for(const i in e.settings){const a=e.settings[i];s[i]=a.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let r=Object.assign({},s);try{const i=localStorage.getItem(o),a=JSON.parse(i);Object.assign(r,a)}catch{}this.fallbacks={getSettings(){return r},setSettings(i){try{localStorage.setItem(o,JSON.stringify(i))}catch{}r=i},now(){return s0()}},n&&n.on(t0,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function r0(t,e){const n=t,s=qh(),o=J1(),r=X1&&n.enableEarlyProxy;if(o&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))o.emit(e0,t,e);else{const i=r?new o0(n,o):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:i}),i&&e(i.proxiedTarget)}}/*! +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function yl(t,e){const n=Object.create(null),s=t.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function zt(t){if(ke(t)){const e={};for(let n=0;n{if(n){const s=n.split(ym);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Te(t){let e="";if(We(t))e=t;else if(ke(t))for(let n=0;nRo(n,e))}const Y=t=>We(t)?t:t==null?"":ke(t)||He(t)&&(t.toString===Bh||!Me(t.toString))?JSON.stringify(t,Ph,2):String(t),Ph=(t,e)=>e&&e.__v_isRef?Ph(t,e.value):_s(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:Ps(e)?{[`Set(${e.size})`]:[...e.values()]}:He(e)&&!ke(e)&&!$h(e)?String(e):e,Ve={},ms=[],Lt=()=>{},Cm=()=>!1,Am=/^on[^a-z]/,jr=t=>Am.test(t),wl=t=>t.startsWith("onUpdate:"),nt=Object.assign,xl=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Sm=Object.prototype.hasOwnProperty,Fe=(t,e)=>Sm.call(t,e),ke=Array.isArray,_s=t=>Fs(t)==="[object Map]",Ps=t=>Fs(t)==="[object Set]",Ac=t=>Fs(t)==="[object Date]",Tm=t=>Fs(t)==="[object RegExp]",Me=t=>typeof t=="function",We=t=>typeof t=="string",fo=t=>typeof t=="symbol",He=t=>t!==null&&typeof t=="object",Fh=t=>He(t)&&Me(t.then)&&Me(t.catch),Bh=Object.prototype.toString,Fs=t=>Bh.call(t),Mm=t=>Fs(t).slice(8,-1),$h=t=>Fs(t)==="[object Object]",kl=t=>We(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,sr=yl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zr=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Om=/-(\w)/g,Zt=zr(t=>t.replace(Om,(e,n)=>n?n.toUpperCase():"")),Rm=/\B([A-Z])/g,ts=zr(t=>t.replace(Rm,"-$1").toLowerCase()),Ur=zr(t=>t.charAt(0).toUpperCase()+t.slice(1)),wi=zr(t=>t?`on${Ur(t)}`:""),po=(t,e)=>!Object.is(t,e),bs=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},_r=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Nm=t=>{const e=We(t)?Number(t):NaN;return isNaN(e)?t:e};let Sc;const Dm=()=>Sc||(Sc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Ot;class Lm{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ot,!e&&Ot&&(this.index=(Ot.scopes||(Ot.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Ot;try{return Ot=this,e()}finally{Ot=n}}}on(){Ot=this}off(){Ot=this.parent}stop(e){if(this._active){let n,s;for(n=0,s=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},jh=t=>(t.w&Mn)>0,zh=t=>(t.n&Mn)>0,Fm=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let s=0;s{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),e){case"add":ke(t)?kl(n)&&a.push(i.get("length")):(a.push(i.get(Kn)),_s(t)&&a.push(i.get(Ba)));break;case"delete":ke(t)||(a.push(i.get(Kn)),_s(t)&&a.push(i.get(Ba)));break;case"set":_s(t)&&a.push(i.get(Kn));break}if(a.length===1)a[0]&&$a(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);$a(El(l))}}function $a(t,e){const n=ke(t)?t:[...t];for(const s of n)s.computed&&Mc(s);for(const s of n)s.computed||Mc(s)}function Mc(t,e){(t!==Nt||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const $m=yl("__proto__,__v_isRef,__isVue"),Hh=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(fo)),jm=Al(),zm=Al(!1,!0),Um=Al(!0),Oc=qm();function qm(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const s=$e(this);for(let r=0,i=this.length;r{t[e]=function(...n){Bs();const s=$e(this)[e].apply(this,n);return $s(),s}}),t}function Hm(t){const e=$e(this);return gt(e,"has",t),e.hasOwnProperty(t)}function Al(t=!1,e=!1){return function(s,o,r){if(o==="__v_isReactive")return!t;if(o==="__v_isReadonly")return t;if(o==="__v_isShallow")return e;if(o==="__v_raw"&&r===(t?e?i_:Zh:e?Wh:Kh).get(s))return s;const i=ke(s);if(!t){if(i&&Fe(Oc,o))return Reflect.get(Oc,o,r);if(o==="hasOwnProperty")return Hm}const a=Reflect.get(s,o,r);return(fo(o)?Hh.has(o):$m(o))||(t||gt(s,"get",o),e)?a:ut(a)?i&&kl(o)?a:a.value:He(a)?t?Yh(a):js(a):a}}const Vm=Vh(),Gm=Vh(!0);function Vh(t=!1){return function(n,s,o,r){let i=n[s];if(ks(i)&&ut(i)&&!ut(o))return!1;if(!t&&(!br(o)&&!ks(o)&&(i=$e(i),o=$e(o)),!ke(n)&&ut(i)&&!ut(o)))return i.value=o,!0;const a=ke(n)&&kl(s)?Number(s)t,qr=t=>Reflect.getPrototypeOf(t);function $o(t,e,n=!1,s=!1){t=t.__v_raw;const o=$e(t),r=$e(e);n||(e!==r&>(o,"get",e),gt(o,"get",r));const{has:i}=qr(o),a=s?Sl:n?Ol:go;if(i.call(o,e))return a(t.get(e));if(i.call(o,r))return a(t.get(r));t!==o&&t.get(e)}function jo(t,e=!1){const n=this.__v_raw,s=$e(n),o=$e(t);return e||(t!==o&>(s,"has",t),gt(s,"has",o)),t===o?n.has(t):n.has(t)||n.has(o)}function zo(t,e=!1){return t=t.__v_raw,!e&>($e(t),"iterate",Kn),Reflect.get(t,"size",t)}function Rc(t){t=$e(t);const e=$e(this);return qr(e).has.call(e,t)||(e.add(t),rn(e,"add",t,t)),this}function Nc(t,e){e=$e(e);const n=$e(this),{has:s,get:o}=qr(n);let r=s.call(n,t);r||(t=$e(t),r=s.call(n,t));const i=o.call(n,t);return n.set(t,e),r?po(e,i)&&rn(n,"set",t,e):rn(n,"add",t,e),this}function Dc(t){const e=$e(this),{has:n,get:s}=qr(e);let o=n.call(e,t);o||(t=$e(t),o=n.call(e,t)),s&&s.call(e,t);const r=e.delete(t);return o&&rn(e,"delete",t,void 0),r}function Lc(){const t=$e(this),e=t.size!==0,n=t.clear();return e&&rn(t,"clear",void 0,void 0),n}function Uo(t,e){return function(s,o){const r=this,i=r.__v_raw,a=$e(i),l=e?Sl:t?Ol:go;return!t&>(a,"iterate",Kn),i.forEach((c,u)=>s.call(o,l(c),l(u),r))}}function qo(t,e,n){return function(...s){const o=this.__v_raw,r=$e(o),i=_s(r),a=t==="entries"||t===Symbol.iterator&&i,l=t==="keys"&&i,c=o[t](...s),u=n?Sl:e?Ol:go;return!e&>(r,"iterate",l?Ba:Kn),{next(){const{value:h,done:p}=c.next();return p?{value:h,done:p}:{value:a?[u(h[0]),u(h[1])]:u(h),done:p}},[Symbol.iterator](){return this}}}}function hn(t){return function(...e){return t==="delete"?!1:this}}function Jm(){const t={get(r){return $o(this,r)},get size(){return zo(this)},has:jo,add:Rc,set:Nc,delete:Dc,clear:Lc,forEach:Uo(!1,!1)},e={get(r){return $o(this,r,!1,!0)},get size(){return zo(this)},has:jo,add:Rc,set:Nc,delete:Dc,clear:Lc,forEach:Uo(!1,!0)},n={get(r){return $o(this,r,!0)},get size(){return zo(this,!0)},has(r){return jo.call(this,r,!0)},add:hn("add"),set:hn("set"),delete:hn("delete"),clear:hn("clear"),forEach:Uo(!0,!1)},s={get(r){return $o(this,r,!0,!0)},get size(){return zo(this,!0)},has(r){return jo.call(this,r,!0)},add:hn("add"),set:hn("set"),delete:hn("delete"),clear:hn("clear"),forEach:Uo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{t[r]=qo(r,!1,!1),n[r]=qo(r,!0,!1),e[r]=qo(r,!1,!0),s[r]=qo(r,!0,!0)}),[t,n,e,s]}const[Xm,e_,t_,n_]=Jm();function Tl(t,e){const n=e?t?n_:t_:t?e_:Xm;return(s,o,r)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?s:Reflect.get(Fe(n,o)&&o in s?n:s,o,r)}const s_={get:Tl(!1,!1)},o_={get:Tl(!1,!0)},r_={get:Tl(!0,!1)},Kh=new WeakMap,Wh=new WeakMap,Zh=new WeakMap,i_=new WeakMap;function a_(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function l_(t){return t.__v_skip||!Object.isExtensible(t)?0:a_(Mm(t))}function js(t){return ks(t)?t:Ml(t,!1,Gh,s_,Kh)}function c_(t){return Ml(t,!1,Qm,o_,Wh)}function Yh(t){return Ml(t,!0,Ym,r_,Zh)}function Ml(t,e,n,s,o){if(!He(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=o.get(t);if(r)return r;const i=l_(t);if(i===0)return t;const a=new Proxy(t,i===2?s:n);return o.set(t,a),a}function ys(t){return ks(t)?ys(t.__v_raw):!!(t&&t.__v_isReactive)}function ks(t){return!!(t&&t.__v_isReadonly)}function br(t){return!!(t&&t.__v_isShallow)}function Qh(t){return ys(t)||ks(t)}function $e(t){const e=t&&t.__v_raw;return e?$e(e):t}function Jh(t){return mr(t,"__v_skip",!0),t}const go=t=>He(t)?js(t):t,Ol=t=>He(t)?Yh(t):t;function Xh(t){Sn&&Nt&&(t=$e(t),qh(t.dep||(t.dep=El())))}function ef(t,e){t=$e(t);const n=t.dep;n&&$a(n)}function ut(t){return!!(t&&t.__v_isRef===!0)}function u_(t){return tf(t,!1)}function d_(t){return tf(t,!0)}function tf(t,e){return ut(t)?t:new h_(t,e)}class h_{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:$e(e),this._value=n?e:go(e)}get value(){return Xh(this),this._value}set value(e){const n=this.__v_isShallow||br(e)||ks(e);e=n?e:$e(e),po(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:go(e),ef(this))}}function ht(t){return ut(t)?t.value:t}const f_={get:(t,e,n)=>ht(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const o=t[e];return ut(o)&&!ut(n)?(o.value=n,!0):Reflect.set(t,e,n,s)}};function nf(t){return ys(t)?t:new Proxy(t,f_)}var sf;class p_{constructor(e,n,s,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[sf]=!1,this._dirty=!0,this.effect=new Cl(e,()=>{this._dirty||(this._dirty=!0,ef(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const e=$e(this);return Xh(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}sf="__v_isReadonly";function g_(t,e,n=!1){let s,o;const r=Me(t);return r?(s=t,o=Lt):(s=t.get,o=t.set),new p_(s,o,r||!o,n)}function Tn(t,e,n,s){let o;try{o=s?t(...s):t()}catch(r){Hr(r,e,n)}return o}function kt(t,e,n,s){if(Me(t)){const r=Tn(t,e,n,s);return r&&Fh(r)&&r.catch(i=>{Hr(i,e,n)}),r}const o=[];for(let r=0;r>>1;_o(ct[s])jt&&ct.splice(e,1)}function y_(t){ke(t)?vs.push(...t):(!nn||!nn.includes(t,t.allowRecurse?jn+1:jn))&&vs.push(t),rf()}function Ic(t,e=mo?jt+1:0){for(;e_o(n)-_o(s)),jn=0;jnt.id==null?1/0:t.id,v_=(t,e)=>{const n=_o(t)-_o(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function lf(t){ja=!1,mo=!0,ct.sort(v_);const e=Lt;try{for(jt=0;jtWe(g)?g.trim():g)),h&&(o=n.map(_r))}let a,l=s[a=wi(e)]||s[a=wi(Zt(e))];!l&&r&&(l=s[a=wi(ts(e))]),l&&kt(l,t,6,o);const c=s[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,kt(c,t,6,o)}}function cf(t,e,n=!1){const s=e.emitsCache,o=s.get(t);if(o!==void 0)return o;const r=t.emits;let i={},a=!1;if(!Me(t)){const l=c=>{const u=cf(c,e,!0);u&&(a=!0,nt(i,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!r&&!a?(He(t)&&s.set(t,null),null):(ke(r)?r.forEach(l=>i[l]=null):nt(i,r),He(t)&&s.set(t,i),i)}function Vr(t,e){return!t||!jr(e)?!1:(e=e.slice(2).replace(/Once$/,""),Fe(t,e[0].toLowerCase()+e.slice(1))||Fe(t,ts(e))||Fe(t,e))}let rt=null,Gr=null;function yr(t){const e=rt;return rt=t,Gr=t&&t.type.__scopeId||null,e}function ns(t){Gr=t}function ss(){Gr=null}function Ke(t,e=rt,n){if(!e||t._n)return t;const s=(...o)=>{s._d&&Vc(-1);const r=yr(e);let i;try{i=t(...o)}finally{yr(r),s._d&&Vc(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function xi(t){const{type:e,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:a,attrs:l,emit:c,render:u,renderCache:h,data:p,setupState:g,ctx:f,inheritAttrs:m}=t;let v,_;const b=yr(t);try{if(n.shapeFlag&4){const C=o||s;v=Bt(u.call(C,C,h,r,g,p,f)),_=l}else{const C=e;v=Bt(C.length>1?C(r,{attrs:l,slots:a,emit:c}):C(r,null)),_=e.props?l:x_(l)}}catch(C){oo.length=0,Hr(C,t,1),v=Ae(Et)}let x=v;if(_&&m!==!1){const C=Object.keys(_),{shapeFlag:R}=x;C.length&&R&7&&(i&&C.some(wl)&&(_=k_(_,i)),x=an(x,_))}return n.dirs&&(x=an(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),v=x,yr(b),v}const x_=t=>{let e;for(const n in t)(n==="class"||n==="style"||jr(n))&&((e||(e={}))[n]=t[n]);return e},k_=(t,e)=>{const n={};for(const s in t)(!wl(s)||!(s.slice(9)in e))&&(n[s]=t[s]);return n};function E_(t,e,n){const{props:s,children:o,component:r}=t,{props:i,children:a,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Pc(s,i,c):!!i;if(l&8){const u=e.dynamicProps;for(let h=0;ht.__isSuspense;function A_(t,e){e&&e.pendingBranch?ke(t)?e.effects.push(...t):e.effects.push(t):y_(t)}function or(t,e){if(Ze){let n=Ze.provides;const s=Ze.parent&&Ze.parent.provides;s===n&&(n=Ze.provides=Object.create(s)),n[t]=e}}function sn(t,e,n=!1){const s=Ze||rt;if(s){const o=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(o&&t in o)return o[t];if(arguments.length>1)return n&&Me(e)?e.call(s.proxy):e}}const Ho={};function Wn(t,e,n){return df(t,e,n)}function df(t,e,{immediate:n,deep:s,flush:o,onTrack:r,onTrigger:i}=Ve){const a=Pm()===(Ze==null?void 0:Ze.scope)?Ze:null;let l,c=!1,u=!1;if(ut(t)?(l=()=>t.value,c=br(t)):ys(t)?(l=()=>t,s=!0):ke(t)?(u=!0,c=t.some(x=>ys(x)||br(x)),l=()=>t.map(x=>{if(ut(x))return x.value;if(ys(x))return Vn(x);if(Me(x))return Tn(x,a,2)})):Me(t)?e?l=()=>Tn(t,a,2):l=()=>{if(!(a&&a.isUnmounted))return h&&h(),kt(t,a,3,[p])}:l=Lt,e&&s){const x=l;l=()=>Vn(x())}let h,p=x=>{h=_.onStop=()=>{Tn(x,a,4)}},g;if(wo)if(p=Lt,e?n&&kt(e,a,3,[l(),u?[]:void 0,p]):l(),o==="sync"){const x=_1();g=x.__watcherHandles||(x.__watcherHandles=[])}else return Lt;let f=u?new Array(t.length).fill(Ho):Ho;const m=()=>{if(_.active)if(e){const x=_.run();(s||c||(u?x.some((C,R)=>po(C,f[R])):po(x,f)))&&(h&&h(),kt(e,a,3,[x,f===Ho?void 0:u&&f[0]===Ho?[]:f,p]),f=x)}else _.run()};m.allowRecurse=!!e;let v;o==="sync"?v=m:o==="post"?v=()=>st(m,a&&a.suspense):(m.pre=!0,a&&(m.id=a.uid),v=()=>Nl(m));const _=new Cl(l,v);e?n?m():f=_.run():o==="post"?st(_.run.bind(_),a&&a.suspense):_.run();const b=()=>{_.stop(),a&&a.scope&&xl(a.scope.effects,_)};return g&&g.push(b),b}function S_(t,e,n){const s=this.proxy,o=We(t)?t.includes(".")?hf(s,t):()=>s[t]:t.bind(s,s);let r;Me(e)?r=e:(r=e.handler,n=e);const i=Ze;Cs(this);const a=df(o,r.bind(s),n);return i?Cs(i):Zn(),a}function hf(t,e){const n=e.split(".");return()=>{let s=t;for(let o=0;o{Vn(n,e)});else if($h(t))for(const n in t)Vn(t[n],e);return t}function ff(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Zr(()=>{t.isMounted=!0}),Il(()=>{t.isUnmounting=!0}),t}const yt=[Function,Array],T_={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:yt,onEnter:yt,onAfterEnter:yt,onEnterCancelled:yt,onBeforeLeave:yt,onLeave:yt,onAfterLeave:yt,onLeaveCancelled:yt,onBeforeAppear:yt,onAppear:yt,onAfterAppear:yt,onAppearCancelled:yt},setup(t,{slots:e}){const n=jl(),s=ff();let o;return()=>{const r=e.default&&Dl(e.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const m of r)if(m.type!==Et){i=m;break}}const a=$e(t),{mode:l}=a;if(s.isLeaving)return ki(i);const c=Fc(i);if(!c)return ki(i);const u=bo(c,a,s,n);Es(c,u);const h=n.subTree,p=h&&Fc(h);let g=!1;const{getTransitionKey:f}=c.type;if(f){const m=f();o===void 0?o=m:m!==o&&(o=m,g=!0)}if(p&&p.type!==Et&&(!En(c,p)||g)){const m=bo(p,a,s,n);if(Es(p,m),l==="out-in")return s.isLeaving=!0,m.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},ki(i);l==="in-out"&&c.type!==Et&&(m.delayLeave=(v,_,b)=>{const x=gf(s,p);x[String(p.key)]=p,v._leaveCb=()=>{_(),v._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=b})}return i}}},pf=T_;function gf(t,e){const{leavingVNodes:n}=t;let s=n.get(e.type);return s||(s=Object.create(null),n.set(e.type,s)),s}function bo(t,e,n,s){const{appear:o,mode:r,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:h,onLeave:p,onAfterLeave:g,onLeaveCancelled:f,onBeforeAppear:m,onAppear:v,onAfterAppear:_,onAppearCancelled:b}=e,x=String(t.key),C=gf(n,t),R=(y,k)=>{y&&kt(y,s,9,k)},O=(y,k)=>{const T=k[1];R(y,k),ke(y)?y.every(L=>L.length<=1)&&T():y.length<=1&&T()},D={mode:r,persisted:i,beforeEnter(y){let k=a;if(!n.isMounted)if(o)k=m||a;else return;y._leaveCb&&y._leaveCb(!0);const T=C[x];T&&En(t,T)&&T.el._leaveCb&&T.el._leaveCb(),R(k,[y])},enter(y){let k=l,T=c,L=u;if(!n.isMounted)if(o)k=v||l,T=_||c,L=b||u;else return;let F=!1;const Q=y._enterCb=I=>{F||(F=!0,I?R(L,[y]):R(T,[y]),D.delayedLeave&&D.delayedLeave(),y._enterCb=void 0)};k?O(k,[y,Q]):Q()},leave(y,k){const T=String(t.key);if(y._enterCb&&y._enterCb(!0),n.isUnmounting)return k();R(h,[y]);let L=!1;const F=y._leaveCb=Q=>{L||(L=!0,k(),Q?R(f,[y]):R(g,[y]),y._leaveCb=void 0,C[T]===t&&delete C[T])};C[T]=t,p?O(p,[y,F]):F()},clone(y){return bo(y,e,n,s)}};return D}function ki(t){if(Kr(t))return t=an(t),t.children=null,t}function Fc(t){return Kr(t)?t.children?t.children[0]:void 0:t}function Es(t,e){t.shapeFlag&6&&t.component?Es(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Dl(t,e=!1,n){let s=[],o=0;for(let r=0;r1)for(let r=0;r!!t.type.__asyncLoader,Kr=t=>t.type.__isKeepAlive,M_={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=jl(),s=n.ctx;if(!s.renderer)return()=>{const b=e.default&&e.default();return b&&b.length===1?b[0]:b};const o=new Map,r=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:h}}}=s,p=h("div");s.activate=(b,x,C,R,O)=>{const D=b.component;c(b,x,C,0,a),l(D.vnode,b,x,C,D,a,R,b.slotScopeIds,O),st(()=>{D.isDeactivated=!1,D.a&&bs(D.a);const y=b.props&&b.props.onVnodeMounted;y&&vt(y,D.parent,b)},a)},s.deactivate=b=>{const x=b.component;c(b,p,null,1,a),st(()=>{x.da&&bs(x.da);const C=b.props&&b.props.onVnodeUnmounted;C&&vt(C,x.parent,b),x.isDeactivated=!0},a)};function g(b){Ei(b),u(b,n,a,!0)}function f(b){o.forEach((x,C)=>{const R=Ga(x.type);R&&(!b||!b(R))&&m(C)})}function m(b){const x=o.get(b);!i||!En(x,i)?g(x):i&&Ei(i),o.delete(b),r.delete(b)}Wn(()=>[t.include,t.exclude],([b,x])=>{b&&f(C=>to(b,C)),x&&f(C=>!to(x,C))},{flush:"post",deep:!0});let v=null;const _=()=>{v!=null&&o.set(v,Ci(n.subTree))};return Zr(_),Ll(_),Il(()=>{o.forEach(b=>{const{subTree:x,suspense:C}=n,R=Ci(x);if(b.type===R.type&&b.key===R.key){Ei(R);const O=R.component.da;O&&st(O,C);return}g(b)})}),()=>{if(v=null,!e.default)return null;const b=e.default(),x=b[0];if(b.length>1)return i=null,b;if(!vo(x)||!(x.shapeFlag&4)&&!(x.shapeFlag&128))return i=null,x;let C=Ci(x);const R=C.type,O=Ga(ws(C)?C.type.__asyncResolved||{}:R),{include:D,exclude:y,max:k}=t;if(D&&(!O||!to(D,O))||y&&O&&to(y,O))return i=C,x;const T=C.key==null?R:C.key,L=o.get(T);return C.el&&(C=an(C),x.shapeFlag&128&&(x.ssContent=C)),v=T,L?(C.el=L.el,C.component=L.component,C.transition&&Es(C,C.transition),C.shapeFlag|=512,r.delete(T),r.add(T)):(r.add(T),k&&r.size>parseInt(k,10)&&m(r.values().next().value)),C.shapeFlag|=256,i=C,uf(x.type)?x:C}}},O_=M_;function to(t,e){return ke(t)?t.some(n=>to(n,e)):We(t)?t.split(",").includes(e):Tm(t)?t.test(e):!1}function R_(t,e){_f(t,"a",e)}function N_(t,e){_f(t,"da",e)}function _f(t,e,n=Ze){const s=t.__wdc||(t.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(Wr(e,s,n),n){let o=n.parent;for(;o&&o.parent;)Kr(o.parent.vnode)&&D_(s,e,n,o),o=o.parent}}function D_(t,e,n,s){const o=Wr(e,t,s,!0);bf(()=>{xl(s[e],o)},n)}function Ei(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Ci(t){return t.shapeFlag&128?t.ssContent:t}function Wr(t,e,n=Ze,s=!1){if(n){const o=n[t]||(n[t]=[]),r=e.__weh||(e.__weh=(...i)=>{if(n.isUnmounted)return;Bs(),Cs(n);const a=kt(e,n,t,i);return Zn(),$s(),a});return s?o.unshift(r):o.push(r),r}}const un=t=>(e,n=Ze)=>(!wo||t==="sp")&&Wr(t,(...s)=>e(...s),n),L_=un("bm"),Zr=un("m"),I_=un("bu"),Ll=un("u"),Il=un("bum"),bf=un("um"),P_=un("sp"),F_=un("rtg"),B_=un("rtc");function $_(t,e=Ze){Wr("ec",t,e)}function me(t,e){const n=rt;if(n===null)return t;const s=Jr(n)||n.proxy,o=t.dirs||(t.dirs=[]);for(let r=0;re(i,a,void 0,r&&r[a]));else{const i=Object.keys(t);o=new Array(i.length);for(let a=0,l=i.length;avo(e)?!(e.type===Et||e.type===Le&&!xf(e.children)):!0)?t:null}const za=t=>t?Df(t)?Jr(t)||t.proxy:za(t.parent):null,so=nt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>za(t.parent),$root:t=>za(t.root),$emit:t=>t.emit,$options:t=>Fl(t),$forceUpdate:t=>t.f||(t.f=()=>Nl(t.update)),$nextTick:t=>t.n||(t.n=_e.bind(t.proxy)),$watch:t=>S_.bind(t)}),Ai=(t,e)=>t!==Ve&&!t.__isScriptSetup&&Fe(t,e),z_={get({_:t},e){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const g=i[e];if(g!==void 0)switch(g){case 1:return s[e];case 2:return o[e];case 4:return n[e];case 3:return r[e]}else{if(Ai(s,e))return i[e]=1,s[e];if(o!==Ve&&Fe(o,e))return i[e]=2,o[e];if((c=t.propsOptions[0])&&Fe(c,e))return i[e]=3,r[e];if(n!==Ve&&Fe(n,e))return i[e]=4,n[e];Ua&&(i[e]=0)}}const u=so[e];let h,p;if(u)return e==="$attrs"&>(t,"get",e),u(t);if((h=a.__cssModules)&&(h=h[e]))return h;if(n!==Ve&&Fe(n,e))return i[e]=4,n[e];if(p=l.config.globalProperties,Fe(p,e))return p[e]},set({_:t},e,n){const{data:s,setupState:o,ctx:r}=t;return Ai(o,e)?(o[e]=n,!0):s!==Ve&&Fe(s,e)?(s[e]=n,!0):Fe(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let a;return!!n[i]||t!==Ve&&Fe(t,i)||Ai(e,i)||(a=r[0])&&Fe(a,i)||Fe(s,i)||Fe(so,i)||Fe(o.config.globalProperties,i)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Fe(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};let Ua=!0;function U_(t){const e=Fl(t),n=t.proxy,s=t.ctx;Ua=!1,e.beforeCreate&&$c(e.beforeCreate,t,"bc");const{data:o,computed:r,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:p,beforeUpdate:g,updated:f,activated:m,deactivated:v,beforeDestroy:_,beforeUnmount:b,destroyed:x,unmounted:C,render:R,renderTracked:O,renderTriggered:D,errorCaptured:y,serverPrefetch:k,expose:T,inheritAttrs:L,components:F,directives:Q,filters:I}=e;if(c&&q_(c,s,null,t.appContext.config.unwrapInjectedRef),i)for(const S in i){const q=i[S];Me(q)&&(s[S]=q.bind(n))}if(o){const S=o.call(n,n);He(S)&&(t.data=js(S))}if(Ua=!0,r)for(const S in r){const q=r[S],V=Me(q)?q.bind(n,n):Me(q.get)?q.get.bind(n,n):Lt,be=!Me(q)&&Me(q.set)?q.set.bind(n):Lt,ge=xt({get:V,set:be});Object.defineProperty(s,S,{enumerable:!0,configurable:!0,get:()=>ge.value,set:ee=>ge.value=ee})}if(a)for(const S in a)kf(a[S],s,n,S);if(l){const S=Me(l)?l.call(n):l;Reflect.ownKeys(S).forEach(q=>{or(q,S[q])})}u&&$c(u,t,"c");function W(S,q){ke(q)?q.forEach(V=>S(V.bind(n))):q&&S(q.bind(n))}if(W(L_,h),W(Zr,p),W(I_,g),W(Ll,f),W(R_,m),W(N_,v),W($_,y),W(B_,O),W(F_,D),W(Il,b),W(bf,C),W(P_,k),ke(T))if(T.length){const S=t.exposed||(t.exposed={});T.forEach(q=>{Object.defineProperty(S,q,{get:()=>n[q],set:V=>n[q]=V})})}else t.exposed||(t.exposed={});R&&t.render===Lt&&(t.render=R),L!=null&&(t.inheritAttrs=L),F&&(t.components=F),Q&&(t.directives=Q)}function q_(t,e,n=Lt,s=!1){ke(t)&&(t=qa(t));for(const o in t){const r=t[o];let i;He(r)?"default"in r?i=sn(r.from||o,r.default,!0):i=sn(r.from||o):i=sn(r),ut(i)&&s?Object.defineProperty(e,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):e[o]=i}}function $c(t,e,n){kt(ke(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,n)}function kf(t,e,n,s){const o=s.includes(".")?hf(n,s):()=>n[s];if(We(t)){const r=e[t];Me(r)&&Wn(o,r)}else if(Me(t))Wn(o,t.bind(n));else if(He(t))if(ke(t))t.forEach(r=>kf(r,e,n,s));else{const r=Me(t.handler)?t.handler.bind(n):e[t.handler];Me(r)&&Wn(o,r,t)}}function Fl(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=t.appContext,a=r.get(e);let l;return a?l=a:!o.length&&!n&&!s?l=e:(l={},o.length&&o.forEach(c=>vr(l,c,i,!0)),vr(l,e,i)),He(e)&&r.set(e,l),l}function vr(t,e,n,s=!1){const{mixins:o,extends:r}=e;r&&vr(t,r,n,!0),o&&o.forEach(i=>vr(t,i,n,!0));for(const i in e)if(!(s&&i==="expose")){const a=H_[i]||n&&n[i];t[i]=a?a(t[i],e[i]):e[i]}return t}const H_={data:jc,props:Bn,emits:Bn,methods:Bn,computed:Bn,beforeCreate:dt,created:dt,beforeMount:dt,mounted:dt,beforeUpdate:dt,updated:dt,beforeDestroy:dt,beforeUnmount:dt,destroyed:dt,unmounted:dt,activated:dt,deactivated:dt,errorCaptured:dt,serverPrefetch:dt,components:Bn,directives:Bn,watch:G_,provide:jc,inject:V_};function jc(t,e){return e?t?function(){return nt(Me(t)?t.call(this,this):t,Me(e)?e.call(this,this):e)}:e:t}function V_(t,e){return Bn(qa(t),qa(e))}function qa(t){if(ke(t)){const e={};for(let n=0;n0)&&!(i&16)){if(i&8){const u=t.vnode.dynamicProps;for(let h=0;h{l=!0;const[p,g]=Cf(h,e,!0);nt(i,p),g&&a.push(...g)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!r&&!l)return He(t)&&s.set(t,ms),ms;if(ke(r))for(let u=0;u-1,g[1]=m<0||f-1||Fe(g,"default"))&&a.push(h)}}}const c=[i,a];return He(t)&&s.set(t,c),c}function zc(t){return t[0]!=="$"}function Uc(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function qc(t,e){return Uc(t)===Uc(e)}function Hc(t,e){return ke(e)?e.findIndex(n=>qc(n,t)):Me(e)&&qc(e,t)?0:-1}const Af=t=>t[0]==="_"||t==="$stable",Bl=t=>ke(t)?t.map(Bt):[Bt(t)],Z_=(t,e,n)=>{if(e._n)return e;const s=Ke((...o)=>Bl(e(...o)),n);return s._c=!1,s},Sf=(t,e,n)=>{const s=t._ctx;for(const o in t){if(Af(o))continue;const r=t[o];if(Me(r))e[o]=Z_(o,r,s);else if(r!=null){const i=Bl(r);e[o]=()=>i}}},Tf=(t,e)=>{const n=Bl(e);t.slots.default=()=>n},Y_=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=$e(e),mr(e,"_",n)):Sf(e,t.slots={})}else t.slots={},e&&Tf(t,e);mr(t.slots,Qr,1)},Q_=(t,e,n)=>{const{vnode:s,slots:o}=t;let r=!0,i=Ve;if(s.shapeFlag&32){const a=e._;a?n&&a===1?r=!1:(nt(o,e),!n&&a===1&&delete o._):(r=!e.$stable,Sf(e,o)),i=e}else e&&(Tf(t,e),i={default:1});if(r)for(const a in o)!Af(a)&&!(a in i)&&delete o[a]};function Mf(){return{app:null,config:{isNativeTag:Cm,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 J_=0;function X_(t,e){return function(s,o=null){Me(s)||(s=Object.assign({},s)),o!=null&&!He(o)&&(o=null);const r=Mf(),i=new Set;let a=!1;const l=r.app={_uid:J_++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:b1,get config(){return r.config},set config(c){},use(c,...u){return i.has(c)||(c&&Me(c.install)?(i.add(c),c.install(l,...u)):Me(c)&&(i.add(c),c(l,...u))),l},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),l},component(c,u){return u?(r.components[c]=u,l):r.components[c]},directive(c,u){return u?(r.directives[c]=u,l):r.directives[c]},mount(c,u,h){if(!a){const p=Ae(s,o);return p.appContext=r,u&&e?e(p,c):t(p,c,h),a=!0,l._container=c,c.__vue_app__=l,Jr(p.component)||p.component.proxy}},unmount(){a&&(t(null,l._container),delete l._container.__vue_app__)},provide(c,u){return r.provides[c]=u,l}};return l}}function Va(t,e,n,s,o=!1){if(ke(t)){t.forEach((p,g)=>Va(p,e&&(ke(e)?e[g]:e),n,s,o));return}if(ws(s)&&!o)return;const r=s.shapeFlag&4?Jr(s.component)||s.component.proxy:s.el,i=o?null:r,{i:a,r:l}=t,c=e&&e.r,u=a.refs===Ve?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(We(c)?(u[c]=null,Fe(h,c)&&(h[c]=null)):ut(c)&&(c.value=null)),Me(l))Tn(l,a,12,[i,u]);else{const p=We(l),g=ut(l);if(p||g){const f=()=>{if(t.f){const m=p?Fe(h,l)?h[l]:u[l]:l.value;o?ke(m)&&xl(m,r):ke(m)?m.includes(r)||m.push(r):p?(u[l]=[r],Fe(h,l)&&(h[l]=u[l])):(l.value=[r],t.k&&(u[t.k]=l.value))}else p?(u[l]=i,Fe(h,l)&&(h[l]=i)):g&&(l.value=i,t.k&&(u[t.k]=i))};i?(f.id=-1,st(f,n)):f()}}}const st=A_;function e1(t){return t1(t)}function t1(t,e){const n=Dm();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:p,setScopeId:g=Lt,insertStaticContent:f}=t,m=(w,E,P,B=null,$=null,ne=null,re=!1,j=null,se=!!E.dynamicChildren)=>{if(w===E)return;w&&!En(w,E)&&(B=H(w),ee(w,$,ne,!0),w=null),E.patchFlag===-2&&(se=!1,E.dynamicChildren=null);const{type:U,ref:Z,shapeFlag:ie}=E;switch(U){case Yr:v(w,E,P,B);break;case Et:_(w,E,P,B);break;case rr:w==null&&b(E,P,B,re);break;case Le:F(w,E,P,B,$,ne,re,j,se);break;default:ie&1?R(w,E,P,B,$,ne,re,j,se):ie&6?Q(w,E,P,B,$,ne,re,j,se):(ie&64||ie&128)&&U.process(w,E,P,B,$,ne,re,j,se,X)}Z!=null&&$&&Va(Z,w&&w.ref,ne,E||w,!E)},v=(w,E,P,B)=>{if(w==null)s(E.el=a(E.children),P,B);else{const $=E.el=w.el;E.children!==w.children&&c($,E.children)}},_=(w,E,P,B)=>{w==null?s(E.el=l(E.children||""),P,B):E.el=w.el},b=(w,E,P,B)=>{[w.el,w.anchor]=f(w.children,E,P,B,w.el,w.anchor)},x=({el:w,anchor:E},P,B)=>{let $;for(;w&&w!==E;)$=p(w),s(w,P,B),w=$;s(E,P,B)},C=({el:w,anchor:E})=>{let P;for(;w&&w!==E;)P=p(w),o(w),w=P;o(E)},R=(w,E,P,B,$,ne,re,j,se)=>{re=re||E.type==="svg",w==null?O(E,P,B,$,ne,re,j,se):k(w,E,$,ne,re,j,se)},O=(w,E,P,B,$,ne,re,j)=>{let se,U;const{type:Z,props:ie,shapeFlag:de,transition:ue,dirs:xe}=w;if(se=w.el=i(w.type,ne,ie&&ie.is,ie),de&8?u(se,w.children):de&16&&y(w.children,se,null,B,$,ne&&Z!=="foreignObject",re,j),xe&&Dn(w,null,B,"created"),D(se,w,w.scopeId,re,B),ie){for(const oe in ie)oe!=="value"&&!sr(oe)&&r(se,oe,null,ie[oe],ne,w.children,B,$,J);"value"in ie&&r(se,"value",null,ie.value),(U=ie.onVnodeBeforeMount)&&vt(U,B,w)}xe&&Dn(w,null,B,"beforeMount");const K=(!$||$&&!$.pendingBranch)&&ue&&!ue.persisted;K&&ue.beforeEnter(se),s(se,E,P),((U=ie&&ie.onVnodeMounted)||K||xe)&&st(()=>{U&&vt(U,B,w),K&&ue.enter(se),xe&&Dn(w,null,B,"mounted")},$)},D=(w,E,P,B,$)=>{if(P&&g(w,P),B)for(let ne=0;ne{for(let U=se;U{const j=E.el=w.el;let{patchFlag:se,dynamicChildren:U,dirs:Z}=E;se|=w.patchFlag&16;const ie=w.props||Ve,de=E.props||Ve;let ue;P&&Ln(P,!1),(ue=de.onVnodeBeforeUpdate)&&vt(ue,P,E,w),Z&&Dn(E,w,P,"beforeUpdate"),P&&Ln(P,!0);const xe=$&&E.type!=="foreignObject";if(U?T(w.dynamicChildren,U,j,P,B,xe,ne):re||q(w,E,j,null,P,B,xe,ne,!1),se>0){if(se&16)L(j,E,ie,de,P,B,$);else if(se&2&&ie.class!==de.class&&r(j,"class",null,de.class,$),se&4&&r(j,"style",ie.style,de.style,$),se&8){const K=E.dynamicProps;for(let oe=0;oe{ue&&vt(ue,P,E,w),Z&&Dn(E,w,P,"updated")},B)},T=(w,E,P,B,$,ne,re)=>{for(let j=0;j{if(P!==B){if(P!==Ve)for(const j in P)!sr(j)&&!(j in B)&&r(w,j,P[j],null,re,E.children,$,ne,J);for(const j in B){if(sr(j))continue;const se=B[j],U=P[j];se!==U&&j!=="value"&&r(w,j,U,se,re,E.children,$,ne,J)}"value"in B&&r(w,"value",P.value,B.value)}},F=(w,E,P,B,$,ne,re,j,se)=>{const U=E.el=w?w.el:a(""),Z=E.anchor=w?w.anchor:a("");let{patchFlag:ie,dynamicChildren:de,slotScopeIds:ue}=E;ue&&(j=j?j.concat(ue):ue),w==null?(s(U,P,B),s(Z,P,B),y(E.children,P,Z,$,ne,re,j,se)):ie>0&&ie&64&&de&&w.dynamicChildren?(T(w.dynamicChildren,de,P,$,ne,re,j),(E.key!=null||$&&E===$.subTree)&&Of(w,E,!0)):q(w,E,P,Z,$,ne,re,j,se)},Q=(w,E,P,B,$,ne,re,j,se)=>{E.slotScopeIds=j,w==null?E.shapeFlag&512?$.ctx.activate(E,P,B,re,se):I(E,P,B,$,ne,re,se):ae(w,E,se)},I=(w,E,P,B,$,ne,re)=>{const j=w.component=u1(w,B,$);if(Kr(w)&&(j.ctx.renderer=X),d1(j),j.asyncDep){if($&&$.registerDep(j,W),!w.el){const se=j.subTree=Ae(Et);_(null,se,E,P)}return}W(j,w,E,P,$,ne,re)},ae=(w,E,P)=>{const B=E.component=w.component;if(E_(w,E,P))if(B.asyncDep&&!B.asyncResolved){S(B,E,P);return}else B.next=E,b_(B.update),B.update();else E.el=w.el,B.vnode=E},W=(w,E,P,B,$,ne,re)=>{const j=()=>{if(w.isMounted){let{next:Z,bu:ie,u:de,parent:ue,vnode:xe}=w,K=Z,oe;Ln(w,!1),Z?(Z.el=xe.el,S(w,Z,re)):Z=xe,ie&&bs(ie),(oe=Z.props&&Z.props.onVnodeBeforeUpdate)&&vt(oe,ue,Z,xe),Ln(w,!0);const pe=xi(w),Ce=w.subTree;w.subTree=pe,m(Ce,pe,h(Ce.el),H(Ce),w,$,ne),Z.el=pe.el,K===null&&C_(w,pe.el),de&&st(de,$),(oe=Z.props&&Z.props.onVnodeUpdated)&&st(()=>vt(oe,ue,Z,xe),$)}else{let Z;const{el:ie,props:de}=E,{bm:ue,m:xe,parent:K}=w,oe=ws(E);if(Ln(w,!1),ue&&bs(ue),!oe&&(Z=de&&de.onVnodeBeforeMount)&&vt(Z,K,E),Ln(w,!0),ie&&ce){const pe=()=>{w.subTree=xi(w),ce(ie,w.subTree,w,$,null)};oe?E.type.__asyncLoader().then(()=>!w.isUnmounted&&pe()):pe()}else{const pe=w.subTree=xi(w);m(null,pe,P,B,w,$,ne),E.el=pe.el}if(xe&&st(xe,$),!oe&&(Z=de&&de.onVnodeMounted)){const pe=E;st(()=>vt(Z,K,pe),$)}(E.shapeFlag&256||K&&ws(K.vnode)&&K.vnode.shapeFlag&256)&&w.a&&st(w.a,$),w.isMounted=!0,E=P=B=null}},se=w.effect=new Cl(j,()=>Nl(U),w.scope),U=w.update=()=>se.run();U.id=w.uid,Ln(w,!0),U()},S=(w,E,P)=>{E.component=w;const B=w.vnode.props;w.vnode=E,w.next=null,W_(w,E.props,B,P),Q_(w,E.children,P),Bs(),Ic(),$s()},q=(w,E,P,B,$,ne,re,j,se=!1)=>{const U=w&&w.children,Z=w?w.shapeFlag:0,ie=E.children,{patchFlag:de,shapeFlag:ue}=E;if(de>0){if(de&128){be(U,ie,P,B,$,ne,re,j,se);return}else if(de&256){V(U,ie,P,B,$,ne,re,j,se);return}}ue&8?(Z&16&&J(U,$,ne),ie!==U&&u(P,ie)):Z&16?ue&16?be(U,ie,P,B,$,ne,re,j,se):J(U,$,ne,!0):(Z&8&&u(P,""),ue&16&&y(ie,P,B,$,ne,re,j,se))},V=(w,E,P,B,$,ne,re,j,se)=>{w=w||ms,E=E||ms;const U=w.length,Z=E.length,ie=Math.min(U,Z);let de;for(de=0;deZ?J(w,$,ne,!0,!1,ie):y(E,P,B,$,ne,re,j,se,ie)},be=(w,E,P,B,$,ne,re,j,se)=>{let U=0;const Z=E.length;let ie=w.length-1,de=Z-1;for(;U<=ie&&U<=de;){const ue=w[U],xe=E[U]=se?_n(E[U]):Bt(E[U]);if(En(ue,xe))m(ue,xe,P,null,$,ne,re,j,se);else break;U++}for(;U<=ie&&U<=de;){const ue=w[ie],xe=E[de]=se?_n(E[de]):Bt(E[de]);if(En(ue,xe))m(ue,xe,P,null,$,ne,re,j,se);else break;ie--,de--}if(U>ie){if(U<=de){const ue=de+1,xe=uede)for(;U<=ie;)ee(w[U],$,ne,!0),U++;else{const ue=U,xe=U,K=new Map;for(U=xe;U<=de;U++){const et=E[U]=se?_n(E[U]):Bt(E[U]);et.key!=null&&K.set(et.key,U)}let oe,pe=0;const Ce=de-xe+1;let Pe=!1,qe=0;const De=new Array(Ce);for(U=0;U=Ce){ee(et,$,ne,!0);continue}let it;if(et.key!=null)it=K.get(et.key);else for(oe=xe;oe<=de;oe++)if(De[oe-xe]===0&&En(et,E[oe])){it=oe;break}it===void 0?ee(et,$,ne,!0):(De[it-xe]=U+1,it>=qe?qe=it:Pe=!0,m(et,E[it],P,null,$,ne,re,j,se),pe++)}const Ye=Pe?n1(De):ms;for(oe=Ye.length-1,U=Ce-1;U>=0;U--){const et=xe+U,it=E[et],Cc=et+1{const{el:ne,type:re,transition:j,children:se,shapeFlag:U}=w;if(U&6){ge(w.component.subTree,E,P,B);return}if(U&128){w.suspense.move(E,P,B);return}if(U&64){re.move(w,E,P,X);return}if(re===Le){s(ne,E,P);for(let ie=0;iej.enter(ne),$);else{const{leave:ie,delayLeave:de,afterLeave:ue}=j,xe=()=>s(ne,E,P),K=()=>{ie(ne,()=>{xe(),ue&&ue()})};de?de(ne,xe,K):K()}else s(ne,E,P)},ee=(w,E,P,B=!1,$=!1)=>{const{type:ne,props:re,ref:j,children:se,dynamicChildren:U,shapeFlag:Z,patchFlag:ie,dirs:de}=w;if(j!=null&&Va(j,null,P,w,!0),Z&256){E.ctx.deactivate(w);return}const ue=Z&1&&de,xe=!ws(w);let K;if(xe&&(K=re&&re.onVnodeBeforeUnmount)&&vt(K,E,w),Z&6)N(w.component,P,B);else{if(Z&128){w.suspense.unmount(P,B);return}ue&&Dn(w,null,E,"beforeUnmount"),Z&64?w.type.remove(w,E,P,$,X,B):U&&(ne!==Le||ie>0&&ie&64)?J(U,E,P,!1,!0):(ne===Le&&ie&384||!$&&Z&16)&&J(se,E,P),B&&ve(w)}(xe&&(K=re&&re.onVnodeUnmounted)||ue)&&st(()=>{K&&vt(K,E,w),ue&&Dn(w,null,E,"unmounted")},P)},ve=w=>{const{type:E,el:P,anchor:B,transition:$}=w;if(E===Le){Ee(P,B);return}if(E===rr){C(w);return}const ne=()=>{o(P),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(w.shapeFlag&1&&$&&!$.persisted){const{leave:re,delayLeave:j}=$,se=()=>re(P,ne);j?j(w.el,ne,se):se()}else ne()},Ee=(w,E)=>{let P;for(;w!==E;)P=p(w),o(w),w=P;o(E)},N=(w,E,P)=>{const{bum:B,scope:$,update:ne,subTree:re,um:j}=w;B&&bs(B),$.stop(),ne&&(ne.active=!1,ee(re,w,E,P)),j&&st(j,E),st(()=>{w.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},J=(w,E,P,B=!1,$=!1,ne=0)=>{for(let re=ne;rew.shapeFlag&6?H(w.component.subTree):w.shapeFlag&128?w.suspense.next():p(w.anchor||w.el),te=(w,E,P)=>{w==null?E._vnode&&ee(E._vnode,null,null,!0):m(E._vnode||null,w,E,null,null,null,P),Ic(),af(),E._vnode=w},X={p:m,um:ee,m:ge,r:ve,mt:I,mc:y,pc:q,pbc:T,n:H,o:t};let fe,ce;return e&&([fe,ce]=e(X)),{render:te,hydrate:fe,createApp:X_(te,fe)}}function Ln({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Of(t,e,n=!1){const s=t.children,o=e.children;if(ke(s)&&ke(o))for(let r=0;r>1,t[n[a]]0&&(e[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=e[i];return n}const s1=t=>t.__isTeleport,Le=Symbol(void 0),Yr=Symbol(void 0),Et=Symbol(void 0),rr=Symbol(void 0),oo=[];let Dt=null;function A(t=!1){oo.push(Dt=t?null:[])}function o1(){oo.pop(),Dt=oo[oo.length-1]||null}let yo=1;function Vc(t){yo+=t}function Rf(t){return t.dynamicChildren=yo>0?Dt||ms:null,o1(),yo>0&&Dt&&Dt.push(t),t}function M(t,e,n,s,o,r){return Rf(d(t,e,n,s,o,r,!0))}function ot(t,e,n,s,o){return Rf(Ae(t,e,n,s,o,!0))}function vo(t){return t?t.__v_isVNode===!0:!1}function En(t,e){return t.type===e.type&&t.key===e.key}const Qr="__vInternal",Nf=({key:t})=>t??null,ir=({ref:t,ref_key:e,ref_for:n})=>t!=null?We(t)||ut(t)||Me(t)?{i:rt,r:t,k:e,f:!!n}:t:null;function d(t,e=null,n=null,s=0,o=null,r=t===Le?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Nf(e),ref:e&&ir(e),scopeId:Gr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:rt};return a?($l(l,n),r&128&&t.normalize(l)):n&&(l.shapeFlag|=We(n)?8:16),yo>0&&!i&&Dt&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Dt.push(l),l}const Ae=r1;function r1(t,e=null,n=null,s=0,o=null,r=!1){if((!t||t===yf)&&(t=Et),vo(t)){const a=an(t,e,!0);return n&&$l(a,n),yo>0&&!r&&Dt&&(a.shapeFlag&6?Dt[Dt.indexOf(t)]=a:Dt.push(a)),a.patchFlag|=-2,a}if(g1(t)&&(t=t.__vccOpts),e){e=i1(e);let{class:a,style:l}=e;a&&!We(a)&&(e.class=Te(a)),He(l)&&(Qh(l)&&!ke(l)&&(l=nt({},l)),e.style=zt(l))}const i=We(t)?1:uf(t)?128:s1(t)?64:He(t)?4:Me(t)?2:0;return d(t,e,n,s,o,i,r,!0)}function i1(t){return t?Qh(t)||Qr in t?nt({},t):t:null}function an(t,e,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=t,a=e?a1(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&Nf(a),ref:e&&e.ref?n&&o?ke(o)?o.concat(ir(e)):[o,ir(e)]:ir(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:i,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Le?r===-1?16:r|16:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&an(t.ssContent),ssFallback:t.ssFallback&&an(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function we(t=" ",e=0){return Ae(Yr,null,t,e)}function zs(t,e){const n=Ae(rr,null,t);return n.staticCount=e,n}function z(t="",e=!1){return e?(A(),ot(Et,null,t)):Ae(Et,null,t)}function Bt(t){return t==null||typeof t=="boolean"?Ae(Et):ke(t)?Ae(Le,null,t.slice()):typeof t=="object"?_n(t):Ae(Yr,null,String(t))}function _n(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:an(t)}function $l(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(ke(e))n=16;else if(typeof e=="object")if(s&65){const o=e.default;o&&(o._c&&(o._d=!1),$l(t,o()),o._c&&(o._d=!0));return}else{n=32;const o=e._;!o&&!(Qr in e)?e._ctx=rt:o===3&&rt&&(rt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Me(e)?(e={default:e,_ctx:rt},n=32):(e=String(e),s&64?(n=16,e=[we(e)]):n=8);t.children=e,t.shapeFlag|=n}function a1(...t){const e={};for(let n=0;nZe||rt,Cs=t=>{Ze=t,t.scope.on()},Zn=()=>{Ze&&Ze.scope.off(),Ze=null};function Df(t){return t.vnode.shapeFlag&4}let wo=!1;function d1(t,e=!1){wo=e;const{props:n,children:s}=t.vnode,o=Df(t);K_(t,n,o,e),Y_(t,s);const r=o?h1(t,e):void 0;return wo=!1,r}function h1(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=Jh(new Proxy(t.ctx,z_));const{setup:s}=n;if(s){const o=t.setupContext=s.length>1?p1(t):null;Cs(t),Bs();const r=Tn(s,t,0,[t.props,o]);if($s(),Zn(),Fh(r)){if(r.then(Zn,Zn),e)return r.then(i=>{Gc(t,i,e)}).catch(i=>{Hr(i,t,0)});t.asyncDep=r}else Gc(t,r,e)}else Lf(t,e)}function Gc(t,e,n){Me(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:He(e)&&(t.setupState=nf(e)),Lf(t,n)}let Kc;function Lf(t,e,n){const s=t.type;if(!t.render){if(!e&&Kc&&!s.render){const o=s.template||Fl(t).template;if(o){const{isCustomElement:r,compilerOptions:i}=t.appContext.config,{delimiters:a,compilerOptions:l}=s,c=nt(nt({isCustomElement:r,delimiters:a},i),l);s.render=Kc(o,c)}}t.render=s.render||Lt}Cs(t),Bs(),U_(t),$s(),Zn()}function f1(t){return new Proxy(t.attrs,{get(e,n){return gt(t,"get","$attrs"),e[n]}})}function p1(t){const e=s=>{t.exposed=s||{}};let n;return{get attrs(){return n||(n=f1(t))},slots:t.slots,emit:t.emit,expose:e}}function Jr(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(nf(Jh(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in so)return so[n](t)},has(e,n){return n in e||n in so}}))}function Ga(t,e=!0){return Me(t)?t.displayName||t.name:t.name||e&&t.__name}function g1(t){return Me(t)&&"__vccOpts"in t}const xt=(t,e)=>g_(t,e,wo);function zl(t,e,n){const s=arguments.length;return s===2?He(e)&&!ke(e)?vo(e)?Ae(t,null,[e]):Ae(t,e):Ae(t,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&vo(n)&&(n=[n]),Ae(t,e,n))}const m1=Symbol(""),_1=()=>sn(m1),b1="3.2.47",y1="http://www.w3.org/2000/svg",zn=typeof document<"u"?document:null,Wc=zn&&zn.createElement("template"),v1={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const o=e?zn.createElementNS(y1,t):zn.createElement(t,n?{is:n}:void 0);return t==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:t=>zn.createTextNode(t),createComment:t=>zn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>zn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,o,r){const i=n?n.previousSibling:e.lastChild;if(o&&(o===r||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{Wc.innerHTML=s?`${t}`:t;const a=Wc.content;if(s){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[i?i.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function w1(t,e,n){const s=t._vtc;s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function x1(t,e,n){const s=t.style,o=We(n);if(n&&!o){if(e&&!We(e))for(const r in e)n[r]==null&&Ka(s,r,"");for(const r in n)Ka(s,r,n[r])}else{const r=s.display;o?e!==n&&(s.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(s.display=r)}}const Zc=/\s*!important$/;function Ka(t,e,n){if(ke(n))n.forEach(s=>Ka(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=k1(t,e);Zc.test(n)?t.setProperty(ts(s),n.replace(Zc,""),"important"):t[s]=n}}const Yc=["Webkit","Moz","ms"],Si={};function k1(t,e){const n=Si[e];if(n)return n;let s=Zt(e);if(s!=="filter"&&s in t)return Si[e]=s;s=Ur(s);for(let o=0;oTi||(M1.then(()=>Ti=0),Ti=Date.now());function R1(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;kt(N1(s,n.value),e,5,[s])};return n.value=t,n.attached=O1(),n}function N1(t,e){if(ke(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>o=>!o._stopped&&s&&s(o))}else return e}const Xc=/^on[a-z]/,D1=(t,e,n,s,o=!1,r,i,a,l)=>{e==="class"?w1(t,s,o):e==="style"?x1(t,n,s):jr(e)?wl(e)||S1(t,e,n,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):L1(t,e,s,o))?C1(t,e,s,r,i,a,l):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),E1(t,e,s,o))};function L1(t,e,n,s){return s?!!(e==="innerHTML"||e==="textContent"||e in t&&Xc.test(e)&&Me(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Xc.test(e)&&We(n)?!1:e in t}const fn="transition",Ws="animation",wr=(t,{slots:e})=>zl(pf,Pf(t),e);wr.displayName="Transition";const If={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},I1=wr.props=nt({},pf.props,If),In=(t,e=[])=>{ke(t)?t.forEach(n=>n(...e)):t&&t(...e)},eu=t=>t?ke(t)?t.some(e=>e.length>1):t.length>1:!1;function Pf(t){const e={};for(const F in t)F in If||(e[F]=t[F]);if(t.css===!1)return e;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=t,f=P1(o),m=f&&f[0],v=f&&f[1],{onBeforeEnter:_,onEnter:b,onEnterCancelled:x,onLeave:C,onLeaveCancelled:R,onBeforeAppear:O=_,onAppear:D=b,onAppearCancelled:y=x}=e,k=(F,Q,I)=>{mn(F,Q?u:a),mn(F,Q?c:i),I&&I()},T=(F,Q)=>{F._isLeaving=!1,mn(F,h),mn(F,g),mn(F,p),Q&&Q()},L=F=>(Q,I)=>{const ae=F?D:b,W=()=>k(Q,F,I);In(ae,[Q,W]),tu(()=>{mn(Q,F?l:r),tn(Q,F?u:a),eu(ae)||nu(Q,s,m,W)})};return nt(e,{onBeforeEnter(F){In(_,[F]),tn(F,r),tn(F,i)},onBeforeAppear(F){In(O,[F]),tn(F,l),tn(F,c)},onEnter:L(!1),onAppear:L(!0),onLeave(F,Q){F._isLeaving=!0;const I=()=>T(F,Q);tn(F,h),Bf(),tn(F,p),tu(()=>{F._isLeaving&&(mn(F,h),tn(F,g),eu(C)||nu(F,s,v,I))}),In(C,[F,I])},onEnterCancelled(F){k(F,!1),In(x,[F])},onAppearCancelled(F){k(F,!0),In(y,[F])},onLeaveCancelled(F){T(F),In(R,[F])}})}function P1(t){if(t==null)return null;if(He(t))return[Mi(t.enter),Mi(t.leave)];{const e=Mi(t);return[e,e]}}function Mi(t){return Nm(t)}function tn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function mn(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function tu(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let F1=0;function nu(t,e,n,s){const o=t._endId=++F1,r=()=>{o===t._endId&&s()};if(n)return setTimeout(r,n);const{type:i,timeout:a,propCount:l}=Ff(t,e);if(!i)return s();const c=i+"end";let u=0;const h=()=>{t.removeEventListener(c,p),r()},p=g=>{g.target===t&&++u>=l&&h()};setTimeout(()=>{u(n[f]||"").split(", "),o=s(`${fn}Delay`),r=s(`${fn}Duration`),i=su(o,r),a=s(`${Ws}Delay`),l=s(`${Ws}Duration`),c=su(a,l);let u=null,h=0,p=0;e===fn?i>0&&(u=fn,h=i,p=r.length):e===Ws?c>0&&(u=Ws,h=c,p=l.length):(h=Math.max(i,c),u=h>0?i>c?fn:Ws:null,p=u?u===fn?r.length:l.length:0);const g=u===fn&&/\b(transform|all)(,|$)/.test(s(`${fn}Property`).toString());return{type:u,timeout:h,propCount:p,hasTransform:g}}function su(t,e){for(;t.lengthou(n)+ou(t[s])))}function ou(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function Bf(){return document.body.offsetHeight}const $f=new WeakMap,jf=new WeakMap,zf={name:"TransitionGroup",props:nt({},I1,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=jl(),s=ff();let o,r;return Ll(()=>{if(!o.length)return;const i=t.moveClass||`${t.name||"v"}-move`;if(!U1(o[0].el,n.vnode.el,i))return;o.forEach($1),o.forEach(j1);const a=o.filter(z1);Bf(),a.forEach(l=>{const c=l.el,u=c.style;tn(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const h=c._moveCb=p=>{p&&p.target!==c||(!p||/transform$/.test(p.propertyName))&&(c.removeEventListener("transitionend",h),c._moveCb=null,mn(c,i))};c.addEventListener("transitionend",h)})}),()=>{const i=$e(t),a=Pf(i);let l=i.tag||Le;o=r,r=e.default?Dl(e.default()):[];for(let c=0;cdelete t.mode;zf.props;const Ut=zf;function $1(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function j1(t){jf.set(t,t.el.getBoundingClientRect())}function z1(t){const e=$f.get(t),n=jf.get(t),s=e.left-n.left,o=e.top-n.top;if(s||o){const r=t.el.style;return r.transform=r.webkitTransform=`translate(${s}px,${o}px)`,r.transitionDuration="0s",t}}function U1(t,e,n){const s=t.cloneNode();t._vtc&&t._vtc.forEach(i=>{i.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(i=>i&&s.classList.add(i)),s.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(s);const{hasTransform:r}=Ff(s);return o.removeChild(s),r}const As=t=>{const e=t.props["onUpdate:modelValue"]||!1;return ke(e)?n=>bs(e,n):e};function q1(t){t.target.composing=!0}function ru(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Re={created(t,{modifiers:{lazy:e,trim:n,number:s}},o){t._assign=As(o);const r=s||o.props&&o.props.type==="number";Cn(t,e?"change":"input",i=>{if(i.target.composing)return;let a=t.value;n&&(a=a.trim()),r&&(a=_r(a)),t._assign(a)}),n&&Cn(t,"change",()=>{t.value=t.value.trim()}),e||(Cn(t,"compositionstart",q1),Cn(t,"compositionend",ru),Cn(t,"change",ru))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:s,number:o}},r){if(t._assign=As(r),t.composing||document.activeElement===t&&t.type!=="range"&&(n||s&&t.value.trim()===e||(o||t.type==="number")&&_r(t.value)===e))return;const i=e??"";t.value!==i&&(t.value=i)}},$t={deep:!0,created(t,e,n){t._assign=As(n),Cn(t,"change",()=>{const s=t._modelValue,o=xo(t),r=t.checked,i=t._assign;if(ke(s)){const a=vl(s,o),l=a!==-1;if(r&&!l)i(s.concat(o));else if(!r&&l){const c=[...s];c.splice(a,1),i(c)}}else if(Ps(s)){const a=new Set(s);r?a.add(o):a.delete(o),i(a)}else i(Uf(t,r))})},mounted:iu,beforeUpdate(t,e,n){t._assign=As(n),iu(t,e,n)}};function iu(t,{value:e,oldValue:n},s){t._modelValue=e,ke(e)?t.checked=vl(e,s.props.value)>-1:Ps(e)?t.checked=e.has(s.props.value):e!==n&&(t.checked=Ro(e,Uf(t,!0)))}const H1={deep:!0,created(t,{value:e,modifiers:{number:n}},s){const o=Ps(e);Cn(t,"change",()=>{const r=Array.prototype.filter.call(t.options,i=>i.selected).map(i=>n?_r(xo(i)):xo(i));t._assign(t.multiple?o?new Set(r):r:r[0])}),t._assign=As(s)},mounted(t,{value:e}){au(t,e)},beforeUpdate(t,e,n){t._assign=As(n)},updated(t,{value:e}){au(t,e)}};function au(t,e){const n=t.multiple;if(!(n&&!ke(e)&&!Ps(e))){for(let s=0,o=t.options.length;s-1:r.selected=e.has(i);else if(Ro(xo(r),e)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function xo(t){return"_value"in t?t._value:t.value}function Uf(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const V1=["ctrl","shift","alt","meta"],G1={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>V1.some(n=>t[`${n}Key`]&&!e.includes(n))},le=(t,e)=>(n,...s)=>{for(let o=0;on=>{if(!("key"in n))return;const s=ts(n.key);if(e.some(o=>o===s||K1[o]===s))return t(n)},at={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Zs(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),Zs(t,!0),s.enter(t)):s.leave(t,()=>{Zs(t,!1)}):Zs(t,e))},beforeUnmount(t,{value:e}){Zs(t,e)}};function Zs(t,e){t.style.display=e?t._vod:"none"}const W1=nt({patchProp:D1},v1);let lu;function Z1(){return lu||(lu=e1(W1))}const Y1=(...t)=>{const e=Z1().createApp(...t),{mount:n}=e;return e.mount=s=>{const o=Q1(s);if(!o)return;const r=e._component;!Me(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},e};function Q1(t){return We(t)?document.querySelector(t):t}function J1(){return qf().__VUE_DEVTOOLS_GLOBAL_HOOK__}function qf(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const X1=typeof Proxy=="function",e0="devtools-plugin:setup",t0="plugin:settings:set";let as,Za;function n0(){var t;return as!==void 0||(typeof window<"u"&&window.performance?(as=!0,Za=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?(as=!0,Za=global.perf_hooks.performance):as=!1),as}function s0(){return n0()?Za.now():Date.now()}class o0{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const s={};if(e.settings)for(const i in e.settings){const a=e.settings[i];s[i]=a.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let r=Object.assign({},s);try{const i=localStorage.getItem(o),a=JSON.parse(i);Object.assign(r,a)}catch{}this.fallbacks={getSettings(){return r},setSettings(i){try{localStorage.setItem(o,JSON.stringify(i))}catch{}r=i},now(){return s0()}},n&&n.on(t0,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function r0(t,e){const n=t,s=qf(),o=J1(),r=X1&&n.enableEarlyProxy;if(o&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))o.emit(e0,t,e);else{const i=r?new o0(n,o):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:i}),i&&e(i.proxiedTarget)}}/*! * vuex v4.0.2 * (c) 2021 Evan You * @license MIT - */var i0="store";function Us(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function Hh(t){return t!==null&&typeof t=="object"}function a0(t){return t&&typeof t.then=="function"}function l0(t,e){return function(){return t(e)}}function Vh(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var s=e.indexOf(t);s>-1&&e.splice(s,1)}}function Gh(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;Xr(t,n,[],t._modules.root,!0),Ul(t,n,e)}function Ul(t,e,n){var s=t._state;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,r={};Us(o,function(i,a){r[a]=l0(i,t),Object.defineProperty(t.getters,a,{get:function(){return r[a]()},enumerable:!0})}),t._state=zs({data:e}),t.strict&&h0(t),s&&n&&t._withCommit(function(){s.data=null})}function Xr(t,e,n,s,o){var r=!n.length,i=t._modules.getNamespace(n);if(s.namespaced&&(t._modulesNamespaceMap[i],t._modulesNamespaceMap[i]=s),!r&&!o){var a=ql(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit(function(){a[l]=s.state})}var c=s.context=c0(t,i,n);s.forEachMutation(function(d,f){var p=i+f;d0(t,p,d,c)}),s.forEachAction(function(d,f){var p=d.root?f:i+f,g=d.handler||d;u0(t,p,g,c)}),s.forEachGetter(function(d,f){var p=i+f;f0(t,p,d,c)}),s.forEachChild(function(d,f){Xr(t,e,n.concat(f),d,o)})}function c0(t,e,n){var s=e==="",o={dispatch:s?t.dispatch:function(r,i,a){var l=xr(r,i,a),c=l.payload,d=l.options,f=l.type;return(!d||!d.root)&&(f=e+f),t.dispatch(f,c)},commit:s?t.commit:function(r,i,a){var l=xr(r,i,a),c=l.payload,d=l.options,f=l.type;(!d||!d.root)&&(f=e+f),t.commit(f,c,d)}};return Object.defineProperties(o,{getters:{get:s?function(){return t.getters}:function(){return Kh(t,e)}},state:{get:function(){return ql(t.state,n)}}}),o}function Kh(t,e){if(!t._makeLocalGettersCache[e]){var n={},s=e.length;Object.keys(t.getters).forEach(function(o){if(o.slice(0,s)===e){var r=o.slice(s);Object.defineProperty(n,r,{get:function(){return t.getters[o]},enumerable:!0})}}),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function d0(t,e,n,s){var o=t._mutations[e]||(t._mutations[e]=[]);o.push(function(i){n.call(t,s.state,i)})}function u0(t,e,n,s){var o=t._actions[e]||(t._actions[e]=[]);o.push(function(i){var a=n.call(t,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:t.getters,rootState:t.state},i);return a0(a)||(a=Promise.resolve(a)),t._devtoolHook?a.catch(function(l){throw t._devtoolHook.emit("vuex:error",l),l}):a})}function f0(t,e,n,s){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(r){return n(s.state,s.getters,r.state,r.getters)})}function h0(t){Wn(function(){return t._state.data},function(){},{deep:!0,flush:"sync"})}function ql(t,e){return e.reduce(function(n,s){return n[s]},t)}function xr(t,e,n){return Hh(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}var p0="vuex bindings",cd="vuex:mutations",Oi="vuex:actions",ls="vuex",g0=0;function m0(t,e){r0({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[p0]},function(n){n.addTimelineLayer({id:cd,label:"Vuex Mutations",color:dd}),n.addTimelineLayer({id:Oi,label:"Vuex Actions",color:dd}),n.addInspector({id:ls,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(s){if(s.app===t&&s.inspectorId===ls)if(s.filter){var o=[];Qh(o,e._modules.root,s.filter,""),s.rootNodes=o}else s.rootNodes=[Yh(e._modules.root,"")]}),n.on.getInspectorState(function(s){if(s.app===t&&s.inspectorId===ls){var o=s.nodeId;Kh(e,o),s.state=y0(w0(e._modules,o),o==="root"?e.getters:e._makeLocalGettersCache,o)}}),n.on.editInspectorState(function(s){if(s.app===t&&s.inspectorId===ls){var o=s.nodeId,r=s.path;o!=="root"&&(r=o.split("/").filter(Boolean).concat(r)),e._withCommit(function(){s.set(e._state.data,r,s.state.value)})}}),e.subscribe(function(s,o){var r={};s.payload&&(r.payload=s.payload),r.state=o,n.notifyComponentUpdate(),n.sendInspectorTree(ls),n.sendInspectorState(ls),n.addTimelineEvent({layerId:cd,event:{time:Date.now(),title:s.type,data:r}})}),e.subscribeAction({before:function(s,o){var r={};s.payload&&(r.payload=s.payload),s._id=g0++,s._time=Date.now(),r.state=o,n.addTimelineEvent({layerId:Oi,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:r}})},after:function(s,o){var r={},i=Date.now()-s._time;r.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},s.payload&&(r.payload=s.payload),r.state=o,n.addTimelineEvent({layerId:Oi,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:r}})}})})}var dd=8702998,_0=6710886,b0=16777215,Wh={label:"namespaced",textColor:b0,backgroundColor:_0};function Zh(t){return t&&t!=="root"?t.split("/").slice(-2,-1)[0]:"Root"}function Yh(t,e){return{id:e||"root",label:Zh(e),tags:t.namespaced?[Wh]:[],children:Object.keys(t._children).map(function(n){return Yh(t._children[n],e+n+"/")})}}function Qh(t,e,n,s){s.includes(n)&&t.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:e.namespaced?[Wh]:[]}),Object.keys(e._children).forEach(function(o){Qh(t,e._children[o],n,s+o+"/")})}function y0(t,e,n){e=n==="root"?e:e[n];var s=Object.keys(e),o={state:Object.keys(t.state).map(function(i){return{key:i,editable:!0,value:t.state[i]}})};if(s.length){var r=v0(e);o.getters=Object.keys(r).map(function(i){return{key:i.endsWith("/")?Zh(i):i,editable:!1,value:Ya(function(){return r[i]})}})}return o}function v0(t){var e={};return Object.keys(t).forEach(function(n){var s=n.split("/");if(s.length>1){var o=e,r=s.pop();s.forEach(function(i){o[i]||(o[i]={_custom:{value:{},display:i,tooltip:"Module",abstract:!0}}),o=o[i]._custom.value}),o[r]=Ya(function(){return t[n]})}else e[n]=Ya(function(){return t[n]})}),e}function w0(t,e){var n=e.split("/").filter(function(s){return s});return n.reduce(function(s,o,r){var i=s[o];if(!i)throw new Error('Missing module "'+o+'" for path "'+e+'".');return r===n.length-1?i:i._children},e==="root"?t:t.root._children)}function Ya(t){try{return t()}catch(e){return e}}var Pt=function(e,n){this.runtime=n,this._children=Object.create(null),this._rawModule=e;var s=e.state;this.state=(typeof s=="function"?s():s)||{}},Jh={namespaced:{configurable:!0}};Jh.namespaced.get=function(){return!!this._rawModule.namespaced};Pt.prototype.addChild=function(e,n){this._children[e]=n};Pt.prototype.removeChild=function(e){delete this._children[e]};Pt.prototype.getChild=function(e){return this._children[e]};Pt.prototype.hasChild=function(e){return e in this._children};Pt.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)};Pt.prototype.forEachChild=function(e){Us(this._children,e)};Pt.prototype.forEachGetter=function(e){this._rawModule.getters&&Us(this._rawModule.getters,e)};Pt.prototype.forEachAction=function(e){this._rawModule.actions&&Us(this._rawModule.actions,e)};Pt.prototype.forEachMutation=function(e){this._rawModule.mutations&&Us(this._rawModule.mutations,e)};Object.defineProperties(Pt.prototype,Jh);var os=function(e){this.register([],e,!1)};os.prototype.get=function(e){return e.reduce(function(n,s){return n.getChild(s)},this.root)};os.prototype.getNamespace=function(e){var n=this.root;return e.reduce(function(s,o){return n=n.getChild(o),s+(n.namespaced?o+"/":"")},"")};os.prototype.update=function(e){Xh([],this.root,e)};os.prototype.register=function(e,n,s){var o=this;s===void 0&&(s=!0);var r=new Pt(n,s);if(e.length===0)this.root=r;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],r)}n.modules&&Us(n.modules,function(a,l){o.register(e.concat(l),a,s)})};os.prototype.unregister=function(e){var n=this.get(e.slice(0,-1)),s=e[e.length-1],o=n.getChild(s);o&&o.runtime&&n.removeChild(s)};os.prototype.isRegistered=function(e){var n=this.get(e.slice(0,-1)),s=e[e.length-1];return n?n.hasChild(s):!1};function Xh(t,e,n){if(e.update(n),n.modules)for(var s in n.modules){if(!e.getChild(s))return;Xh(t.concat(s),e.getChild(s),n.modules[s])}}function x0(t){return new mt(t)}var mt=function(e){var n=this;e===void 0&&(e={});var s=e.plugins;s===void 0&&(s=[]);var o=e.strict;o===void 0&&(o=!1);var r=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new os(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=r;var i=this,a=this,l=a.dispatch,c=a.commit;this.dispatch=function(p,g){return l.call(i,p,g)},this.commit=function(p,g,h){return c.call(i,p,g,h)},this.strict=o;var d=this._modules.root.state;Xr(this,d,[],this._modules.root),Ul(this,d),s.forEach(function(f){return f(n)})},Hl={state:{configurable:!0}};mt.prototype.install=function(e,n){e.provide(n||i0,this),e.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:!1;s&&m0(e,this)};Hl.state.get=function(){return this._state.data};Hl.state.set=function(t){};mt.prototype.commit=function(e,n,s){var o=this,r=xr(e,n,s),i=r.type,a=r.payload,l={type:i,payload:a},c=this._mutations[i];c&&(this._withCommit(function(){c.forEach(function(f){f(a)})}),this._subscribers.slice().forEach(function(d){return d(l,o.state)}))};mt.prototype.dispatch=function(e,n){var s=this,o=xr(e,n),r=o.type,i=o.payload,a={type:r,payload:i},l=this._actions[r];if(l){try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(a,s.state)})}catch{}var c=l.length>1?Promise.all(l.map(function(d){return d(i)})):l[0](i);return new Promise(function(d,f){c.then(function(p){try{s._actionSubscribers.filter(function(g){return g.after}).forEach(function(g){return g.after(a,s.state)})}catch{}d(p)},function(p){try{s._actionSubscribers.filter(function(g){return g.error}).forEach(function(g){return g.error(a,s.state,p)})}catch{}f(p)})})}};mt.prototype.subscribe=function(e,n){return Vh(e,this._subscribers,n)};mt.prototype.subscribeAction=function(e,n){var s=typeof e=="function"?{before:e}:e;return Vh(s,this._actionSubscribers,n)};mt.prototype.watch=function(e,n,s){var o=this;return Wn(function(){return e(o.state,o.getters)},n,Object.assign({},s))};mt.prototype.replaceState=function(e){var n=this;this._withCommit(function(){n._state.data=e})};mt.prototype.registerModule=function(e,n,s){s===void 0&&(s={}),typeof e=="string"&&(e=[e]),this._modules.register(e,n),Xr(this,this.state,e,this._modules.get(e),s.preserveState),Ul(this,this.state)};mt.prototype.unregisterModule=function(e){var n=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var s=ql(n.state,e.slice(0,-1));delete s[e[e.length-1]]}),Gh(this)};mt.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)};mt.prototype.hotUpdate=function(e){this._modules.update(e),Gh(this,!0)};mt.prototype._withCommit=function(e){var n=this._committing;this._committing=!0,e(),this._committing=n};Object.defineProperties(mt.prototype,Hl);var k0=A0(function(t,e){var n={};return E0(e).forEach(function(s){var o=s.key,r=s.val;n[o]=function(){var a=this.$store.state,l=this.$store.getters;if(t){var c=S0(this.$store,"mapState",t);if(!c)return;a=c.context.state,l=c.context.getters}return typeof r=="function"?r.call(this,a,l):a[r]},n[o].vuex=!0}),n});function E0(t){return C0(t)?Array.isArray(t)?t.map(function(e){return{key:e,val:e}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function C0(t){return Array.isArray(t)||Hh(t)}function A0(t){return function(e,n){return typeof e!="string"?(n=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),t(e,n)}}function S0(t,e,n){var s=t._modulesNamespaceMap[n];return s}function ep(t,e){return function(){return t.apply(e,arguments)}}const{toString:T0}=Object.prototype,{getPrototypeOf:Vl}=Object,ei=(t=>e=>{const n=T0.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),un=t=>(t=t.toLowerCase(),e=>ei(e)===t),ti=t=>e=>typeof e===t,{isArray:qs}=Array,ko=ti("undefined");function M0(t){return t!==null&&!ko(t)&&t.constructor!==null&&!ko(t.constructor)&&ln(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const tp=un("ArrayBuffer");function O0(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&tp(t.buffer),e}const R0=ti("string"),ln=ti("function"),np=ti("number"),Gl=t=>t!==null&&typeof t=="object",N0=t=>t===!0||t===!1,ar=t=>{if(ei(t)!=="object")return!1;const e=Vl(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},D0=un("Date"),L0=un("File"),I0=un("Blob"),P0=un("FileList"),F0=t=>Gl(t)&&ln(t.pipe),B0=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ln(t.append)&&((e=ei(t))==="formdata"||e==="object"&&ln(t.toString)&&t.toString()==="[object FormData]"))},$0=un("URLSearchParams"),z0=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function No(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let s,o;if(typeof t!="object"&&(t=[t]),qs(t))for(s=0,o=t.length;s0;)if(o=n[s],e===o.toLowerCase())return o;return null}const op=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),rp=t=>!ko(t)&&t!==op;function Qa(){const{caseless:t}=rp(this)&&this||{},e={},n=(s,o)=>{const r=t&&sp(e,o)||o;ar(e[r])&&ar(s)?e[r]=Qa(e[r],s):ar(s)?e[r]=Qa({},s):qs(s)?e[r]=s.slice():e[r]=s};for(let s=0,o=arguments.length;s(No(e,(o,r)=>{n&&ln(o)?t[r]=ep(o,n):t[r]=o},{allOwnKeys:s}),t),U0=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),q0=(t,e,n,s)=>{t.prototype=Object.create(e.prototype,s),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},H0=(t,e,n,s)=>{let o,r,i;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),r=o.length;r-- >0;)i=o[r],(!s||s(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&Vl(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},V0=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const s=t.indexOf(e,n);return s!==-1&&s===n},G0=t=>{if(!t)return null;if(qs(t))return t;let e=t.length;if(!np(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},K0=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Vl(Uint8Array)),W0=(t,e)=>{const s=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=s.next())&&!o.done;){const r=o.value;e.call(t,r[0],r[1])}},Z0=(t,e)=>{let n;const s=[];for(;(n=t.exec(e))!==null;)s.push(n);return s},Y0=un("HTMLFormElement"),Q0=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),ud=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),J0=un("RegExp"),ip=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),s={};No(n,(o,r)=>{e(o,r,t)!==!1&&(s[r]=o)}),Object.defineProperties(t,s)},X0=t=>{ip(t,(e,n)=>{if(ln(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=t[n];if(ln(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},eb=(t,e)=>{const n={},s=o=>{o.forEach(r=>{n[r]=!0})};return qs(t)?s(t):s(String(t).split(e)),n},tb=()=>{},nb=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Ri="abcdefghijklmnopqrstuvwxyz",fd="0123456789",ap={DIGIT:fd,ALPHA:Ri,ALPHA_DIGIT:Ri+Ri.toUpperCase()+fd},sb=(t=16,e=ap.ALPHA_DIGIT)=>{let n="";const{length:s}=e;for(;t--;)n+=e[Math.random()*s|0];return n};function ob(t){return!!(t&&ln(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const rb=t=>{const e=new Array(10),n=(s,o)=>{if(Gl(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[o]=s;const r=qs(s)?[]:{};return No(s,(i,a)=>{const l=n(i,o+1);!ko(l)&&(r[a]=l)}),e[o]=void 0,r}}return s};return n(t,0)},G={isArray:qs,isArrayBuffer:tp,isBuffer:M0,isFormData:B0,isArrayBufferView:O0,isString:R0,isNumber:np,isBoolean:N0,isObject:Gl,isPlainObject:ar,isUndefined:ko,isDate:D0,isFile:L0,isBlob:I0,isRegExp:J0,isFunction:ln,isStream:F0,isURLSearchParams:$0,isTypedArray:K0,isFileList:P0,forEach:No,merge:Qa,extend:j0,trim:z0,stripBOM:U0,inherits:q0,toFlatObject:H0,kindOf:ei,kindOfTest:un,endsWith:V0,toArray:G0,forEachEntry:W0,matchAll:Z0,isHTMLForm:Y0,hasOwnProperty:ud,hasOwnProp:ud,reduceDescriptors:ip,freezeMethods:X0,toObjectSet:eb,toCamelCase:Q0,noop:tb,toFiniteNumber:nb,findKey:sp,global:op,isContextDefined:rp,ALPHABET:ap,generateString:sb,isSpecCompliantForm:ob,toJSONObject:rb};function Be(t,e,n,s,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),s&&(this.request=s),o&&(this.response=o)}G.inherits(Be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const lp=Be.prototype,cp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{cp[t]={value:t}});Object.defineProperties(Be,cp);Object.defineProperty(lp,"isAxiosError",{value:!0});Be.from=(t,e,n,s,o,r)=>{const i=Object.create(lp);return G.toFlatObject(t,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Be.call(i,t.message,e,n,s,o),i.cause=t,i.name=t.name,r&&Object.assign(i,r),i};const ib=null;function Ja(t){return G.isPlainObject(t)||G.isArray(t)}function dp(t){return G.endsWith(t,"[]")?t.slice(0,-2):t}function hd(t,e,n){return t?t.concat(e).map(function(o,r){return o=dp(o),!n&&r?"["+o+"]":o}).join(n?".":""):e}function ab(t){return G.isArray(t)&&!t.some(Ja)}const lb=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)});function ni(t,e,n){if(!G.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!G.isUndefined(v[m])});const s=n.metaTokens,o=n.visitor||d,r=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(e);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(G.isDate(h))return h.toISOString();if(!l&&G.isBlob(h))throw new Be("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(h)||G.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,m,v){let _=h;if(h&&!v&&typeof h=="object"){if(G.endsWith(m,"{}"))m=s?m:m.slice(0,-2),h=JSON.stringify(h);else if(G.isArray(h)&&ab(h)||(G.isFileList(h)||G.endsWith(m,"[]"))&&(_=G.toArray(h)))return m=dp(m),_.forEach(function(x,C){!(G.isUndefined(x)||x===null)&&e.append(i===!0?hd([m],C,r):i===null?m:m+"[]",c(x))}),!1}return Ja(h)?!0:(e.append(hd(v,m,r),c(h)),!1)}const f=[],p=Object.assign(lb,{defaultVisitor:d,convertValue:c,isVisitable:Ja});function g(h,m){if(!G.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(h),G.forEach(h,function(_,b){(!(G.isUndefined(_)||_===null)&&o.call(e,_,G.isString(b)?b.trim():b,m,p))===!0&&g(_,m?m.concat(b):[b])}),f.pop()}}if(!G.isObject(t))throw new TypeError("data must be an object");return g(t),e}function pd(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function Kl(t,e){this._pairs=[],t&&ni(t,this,e)}const up=Kl.prototype;up.append=function(e,n){this._pairs.push([e,n])};up.toString=function(e){const n=e?function(s){return e.call(this,s,pd)}:pd;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function cb(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fp(t,e,n){if(!e)return t;const s=n&&n.encode||cb,o=n&&n.serialize;let r;if(o?r=o(e,n):r=G.isURLSearchParams(e)?e.toString():new Kl(e,n).toString(s),r){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}class db{constructor(){this.handlers=[]}use(e,n,s){return this.handlers.push({fulfilled:e,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,function(s){s!==null&&e(s)})}}const gd=db,hp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ub=typeof URLSearchParams<"u"?URLSearchParams:Kl,fb=typeof FormData<"u"?FormData:null,hb=typeof Blob<"u"?Blob:null,pb=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),gb=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),qt={isBrowser:!0,classes:{URLSearchParams:ub,FormData:fb,Blob:hb},isStandardBrowserEnv:pb,isStandardBrowserWebWorkerEnv:gb,protocols:["http","https","file","blob","url","data"]};function mb(t,e){return ni(t,new qt.classes.URLSearchParams,Object.assign({visitor:function(n,s,o,r){return qt.isNode&&G.isBuffer(n)?(this.append(s,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}function _b(t){return G.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function bb(t){const e={},n=Object.keys(t);let s;const o=n.length;let r;for(s=0;s=n.length;return i=!i&&G.isArray(o)?o.length:i,l?(G.hasOwnProp(o,i)?o[i]=[o[i],s]:o[i]=s,!a):((!o[i]||!G.isObject(o[i]))&&(o[i]=[]),e(n,s,o[i],r)&&G.isArray(o[i])&&(o[i]=bb(o[i])),!a)}if(G.isFormData(t)&&G.isFunction(t.entries)){const n={};return G.forEachEntry(t,(s,o)=>{e(_b(s),o,n,0)}),n}return null}const yb={"Content-Type":void 0};function vb(t,e,n){if(G.isString(t))try{return(e||JSON.parse)(t),G.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(t)}const si={transitional:hp,adapter:["xhr","http"],transformRequest:[function(e,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,r=G.isObject(e);if(r&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return o&&o?JSON.stringify(pp(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){if(s.indexOf("application/x-www-form-urlencoded")>-1)return mb(e,this.formSerializer).toString();if((a=G.isFileList(e))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ni(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return r||o?(n.setContentType("application/json",!1),vb(e)):e}],transformResponse:[function(e){const n=this.transitional||si.transitional,s=n&&n.forcedJSONParsing,o=this.responseType==="json";if(e&&G.isString(e)&&(s&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(i)throw a.name==="SyntaxError"?Be.from(a,Be.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qt.classes.FormData,Blob:qt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};G.forEach(["delete","get","head"],function(e){si.headers[e]={}});G.forEach(["post","put","patch"],function(e){si.headers[e]=G.merge(yb)});const Wl=si,wb=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xb=t=>{const e={};let n,s,o;return t&&t.split(` -`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),s=i.substring(o+1).trim(),!(!n||e[n]&&wb[n])&&(n==="set-cookie"?e[n]?e[n].push(s):e[n]=[s]:e[n]=e[n]?e[n]+", "+s:s)}),e},md=Symbol("internals");function Ys(t){return t&&String(t).trim().toLowerCase()}function lr(t){return t===!1||t==null?t:G.isArray(t)?t.map(lr):String(t)}function kb(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(t);)e[s[1]]=s[2];return e}const Eb=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ni(t,e,n,s,o){if(G.isFunction(s))return s.call(this,e,n);if(o&&(e=n),!!G.isString(e)){if(G.isString(s))return e.indexOf(s)!==-1;if(G.isRegExp(s))return s.test(e)}}function Cb(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,s)=>n.toUpperCase()+s)}function Ab(t,e){const n=G.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(t,s+n,{value:function(o,r,i){return this[s].call(this,e,o,r,i)},configurable:!0})})}class oi{constructor(e){e&&this.set(e)}set(e,n,s){const o=this;function r(a,l,c){const d=Ys(l);if(!d)throw new Error("header name must be a non-empty string");const f=G.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=lr(a))}const i=(a,l)=>G.forEach(a,(c,d)=>r(c,d,l));return G.isPlainObject(e)||e instanceof this.constructor?i(e,n):G.isString(e)&&(e=e.trim())&&!Eb(e)?i(xb(e),n):e!=null&&r(n,e,s),this}get(e,n){if(e=Ys(e),e){const s=G.findKey(this,e);if(s){const o=this[s];if(!n)return o;if(n===!0)return kb(o);if(G.isFunction(n))return n.call(this,o,s);if(G.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Ys(e),e){const s=G.findKey(this,e);return!!(s&&this[s]!==void 0&&(!n||Ni(this,this[s],s,n)))}return!1}delete(e,n){const s=this;let o=!1;function r(i){if(i=Ys(i),i){const a=G.findKey(s,i);a&&(!n||Ni(s,s[a],a,n))&&(delete s[a],o=!0)}}return G.isArray(e)?e.forEach(r):r(e),o}clear(e){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const r=n[s];(!e||Ni(this,this[r],r,e,!0))&&(delete this[r],o=!0)}return o}normalize(e){const n=this,s={};return G.forEach(this,(o,r)=>{const i=G.findKey(s,r);if(i){n[i]=lr(o),delete n[r];return}const a=e?Cb(r):String(r).trim();a!==r&&delete n[r],n[a]=lr(o),s[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return G.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=e&&G.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const s=new this(e);return n.forEach(o=>s.set(o)),s}static accessor(e){const s=(this[md]=this[md]={accessors:{}}).accessors,o=this.prototype;function r(i){const a=Ys(i);s[a]||(Ab(o,i),s[a]=!0)}return G.isArray(e)?e.forEach(r):r(e),this}}oi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.freezeMethods(oi.prototype);G.freezeMethods(oi);const on=oi;function Di(t,e){const n=this||Wl,s=e||n,o=on.from(s.headers);let r=s.data;return G.forEach(t,function(a){r=a.call(n,r,o.normalize(),e?e.status:void 0)}),o.normalize(),r}function gp(t){return!!(t&&t.__CANCEL__)}function Do(t,e,n){Be.call(this,t??"canceled",Be.ERR_CANCELED,e,n),this.name="CanceledError"}G.inherits(Do,Be,{__CANCEL__:!0});function Sb(t,e,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?t(n):e(new Be("Request failed with status code "+n.status,[Be.ERR_BAD_REQUEST,Be.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Tb=qt.isStandardBrowserEnv?function(){return{write:function(n,s,o,r,i,a){const l=[];l.push(n+"="+encodeURIComponent(s)),G.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),G.isString(r)&&l.push("path="+r),G.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Mb(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ob(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function mp(t,e){return t&&!Mb(e)?Ob(t,e):e}const Rb=qt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function o(r){let i=r;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=o(window.location.href),function(i){const a=G.isString(i)?o(i):i;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function Nb(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Db(t,e){t=t||10;const n=new Array(t),s=new Array(t);let o=0,r=0,i;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),d=s[r];i||(i=c),n[o]=l,s[o]=c;let f=r,p=0;for(;f!==o;)p+=n[f++],f=f%t;if(o=(o+1)%t,o===r&&(r=(r+1)%t),c-i{const r=o.loaded,i=o.lengthComputable?o.total:void 0,a=r-n,l=s(a),c=r<=i;n=r;const d={loaded:r,total:i,progress:i?r/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&c?(i-r)/l:void 0,event:o};d[e?"download":"upload"]=!0,t(d)}}const Lb=typeof XMLHttpRequest<"u",Ib=Lb&&function(t){return new Promise(function(n,s){let o=t.data;const r=on.from(t.headers).normalize(),i=t.responseType;let a;function l(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}G.isFormData(o)&&(qt.isStandardBrowserEnv||qt.isStandardBrowserWebWorkerEnv)&&r.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const g=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";r.set("Authorization","Basic "+btoa(g+":"+h))}const d=mp(t.baseURL,t.url);c.open(t.method.toUpperCase(),fp(d,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function f(){if(!c)return;const g=on.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),m={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:t,request:c};Sb(function(_){n(_),l()},function(_){s(_),l()},m),c=null}if("onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(s(new Be("Request aborted",Be.ECONNABORTED,t,c)),c=null)},c.onerror=function(){s(new Be("Network Error",Be.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let h=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const m=t.transitional||hp;t.timeoutErrorMessage&&(h=t.timeoutErrorMessage),s(new Be(h,m.clarifyTimeoutError?Be.ETIMEDOUT:Be.ECONNABORTED,t,c)),c=null},qt.isStandardBrowserEnv){const g=(t.withCredentials||Rb(d))&&t.xsrfCookieName&&Tb.read(t.xsrfCookieName);g&&r.set(t.xsrfHeaderName,g)}o===void 0&&r.setContentType(null),"setRequestHeader"in c&&G.forEach(r.toJSON(),function(h,m){c.setRequestHeader(m,h)}),G.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),i&&i!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",_d(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",_d(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=g=>{c&&(s(!g||g.type?new Do(null,t,c):g),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const p=Nb(d);if(p&&qt.protocols.indexOf(p)===-1){s(new Be("Unsupported protocol "+p+":",Be.ERR_BAD_REQUEST,t));return}c.send(o||null)})},cr={http:ib,xhr:Ib};G.forEach(cr,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Pb={getAdapter:t=>{t=G.isArray(t)?t:[t];const{length:e}=t;let n,s;for(let o=0;ot instanceof on?t.toJSON():t;function Ss(t,e){e=e||{};const n={};function s(c,d,f){return G.isPlainObject(c)&&G.isPlainObject(d)?G.merge.call({caseless:f},c,d):G.isPlainObject(d)?G.merge({},d):G.isArray(d)?d.slice():d}function o(c,d,f){if(G.isUndefined(d)){if(!G.isUndefined(c))return s(void 0,c,f)}else return s(c,d,f)}function r(c,d){if(!G.isUndefined(d))return s(void 0,d)}function i(c,d){if(G.isUndefined(d)){if(!G.isUndefined(c))return s(void 0,c)}else return s(void 0,d)}function a(c,d,f){if(f in e)return s(c,d);if(f in t)return s(void 0,c)}const l={url:r,method:r,data:r,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,d)=>o(yd(c),yd(d),!0)};return G.forEach(Object.keys(t).concat(Object.keys(e)),function(d){const f=l[d]||o,p=f(t[d],e[d],d);G.isUndefined(p)&&f!==a||(n[d]=p)}),n}const _p="1.3.6",Zl={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Zl[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});const vd={};Zl.transitional=function(e,n,s){function o(r,i){return"[Axios v"+_p+"] Transitional option '"+r+"'"+i+(s?". "+s:"")}return(r,i,a)=>{if(e===!1)throw new Be(o(i," has been removed"+(n?" in "+n:"")),Be.ERR_DEPRECATED);return n&&!vd[i]&&(vd[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(r,i,a):!0}};function Fb(t,e,n){if(typeof t!="object")throw new Be("options must be an object",Be.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let o=s.length;for(;o-- >0;){const r=s[o],i=e[r];if(i){const a=t[r],l=a===void 0||i(a,r,t);if(l!==!0)throw new Be("option "+r+" must be "+l,Be.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Be("Unknown option "+r,Be.ERR_BAD_OPTION)}}const Xa={assertOptions:Fb,validators:Zl},pn=Xa.validators;class kr{constructor(e){this.defaults=e,this.interceptors={request:new gd,response:new gd}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Ss(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:r}=n;s!==void 0&&Xa.assertOptions(s,{silentJSONParsing:pn.transitional(pn.boolean),forcedJSONParsing:pn.transitional(pn.boolean),clarifyTimeoutError:pn.transitional(pn.boolean)},!1),o!=null&&(G.isFunction(o)?n.paramsSerializer={serialize:o}:Xa.assertOptions(o,{encode:pn.function,serialize:pn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=r&&G.merge(r.common,r[n.method]),i&&G.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),n.headers=on.concat(i,r);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let d,f=0,p;if(!l){const h=[bd.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,c),p=h.length,d=Promise.resolve(n);f{if(!s._listeners)return;let r=s._listeners.length;for(;r-- >0;)s._listeners[r](o);s._listeners=null}),this.promise.then=o=>{let r;const i=new Promise(a=>{s.subscribe(a),r=a}).then(o);return i.cancel=function(){s.unsubscribe(r)},i},e(function(r,i,a){s.reason||(s.reason=new Do(r,i,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Yl(function(o){e=o}),cancel:e}}}const Bb=Yl;function $b(t){return function(n){return t.apply(null,n)}}function zb(t){return G.isObject(t)&&t.isAxiosError===!0}const el={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(el).forEach(([t,e])=>{el[e]=t});const jb=el;function bp(t){const e=new dr(t),n=ep(dr.prototype.request,e);return G.extend(n,dr.prototype,e,{allOwnKeys:!0}),G.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return bp(Ss(t,o))},n}const tt=bp(Wl);tt.Axios=dr;tt.CanceledError=Do;tt.CancelToken=Bb;tt.isCancel=gp;tt.VERSION=_p;tt.toFormData=ni;tt.AxiosError=Be;tt.Cancel=tt.CanceledError;tt.all=function(e){return Promise.all(e)};tt.spread=$b;tt.isAxiosError=zb;tt.mergeConfig=Ss;tt.AxiosHeaders=on;tt.formToJSON=t=>pp(G.isHTMLForm(t)?new FormData(t):t);tt.HttpStatusCode=jb;tt.default=tt;const Se=tt;/*! + */var i0="store";function Us(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function Hf(t){return t!==null&&typeof t=="object"}function a0(t){return t&&typeof t.then=="function"}function l0(t,e){return function(){return t(e)}}function Vf(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var s=e.indexOf(t);s>-1&&e.splice(s,1)}}function Gf(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;Xr(t,n,[],t._modules.root,!0),Ul(t,n,e)}function Ul(t,e,n){var s=t._state;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,r={};Us(o,function(i,a){r[a]=l0(i,t),Object.defineProperty(t.getters,a,{get:function(){return r[a]()},enumerable:!0})}),t._state=js({data:e}),t.strict&&f0(t),s&&n&&t._withCommit(function(){s.data=null})}function Xr(t,e,n,s,o){var r=!n.length,i=t._modules.getNamespace(n);if(s.namespaced&&(t._modulesNamespaceMap[i],t._modulesNamespaceMap[i]=s),!r&&!o){var a=ql(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit(function(){a[l]=s.state})}var c=s.context=c0(t,i,n);s.forEachMutation(function(u,h){var p=i+h;u0(t,p,u,c)}),s.forEachAction(function(u,h){var p=u.root?h:i+h,g=u.handler||u;d0(t,p,g,c)}),s.forEachGetter(function(u,h){var p=i+h;h0(t,p,u,c)}),s.forEachChild(function(u,h){Xr(t,e,n.concat(h),u,o)})}function c0(t,e,n){var s=e==="",o={dispatch:s?t.dispatch:function(r,i,a){var l=xr(r,i,a),c=l.payload,u=l.options,h=l.type;return(!u||!u.root)&&(h=e+h),t.dispatch(h,c)},commit:s?t.commit:function(r,i,a){var l=xr(r,i,a),c=l.payload,u=l.options,h=l.type;(!u||!u.root)&&(h=e+h),t.commit(h,c,u)}};return Object.defineProperties(o,{getters:{get:s?function(){return t.getters}:function(){return Kf(t,e)}},state:{get:function(){return ql(t.state,n)}}}),o}function Kf(t,e){if(!t._makeLocalGettersCache[e]){var n={},s=e.length;Object.keys(t.getters).forEach(function(o){if(o.slice(0,s)===e){var r=o.slice(s);Object.defineProperty(n,r,{get:function(){return t.getters[o]},enumerable:!0})}}),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function u0(t,e,n,s){var o=t._mutations[e]||(t._mutations[e]=[]);o.push(function(i){n.call(t,s.state,i)})}function d0(t,e,n,s){var o=t._actions[e]||(t._actions[e]=[]);o.push(function(i){var a=n.call(t,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:t.getters,rootState:t.state},i);return a0(a)||(a=Promise.resolve(a)),t._devtoolHook?a.catch(function(l){throw t._devtoolHook.emit("vuex:error",l),l}):a})}function h0(t,e,n,s){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(r){return n(s.state,s.getters,r.state,r.getters)})}function f0(t){Wn(function(){return t._state.data},function(){},{deep:!0,flush:"sync"})}function ql(t,e){return e.reduce(function(n,s){return n[s]},t)}function xr(t,e,n){return Hf(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}var p0="vuex bindings",cu="vuex:mutations",Oi="vuex:actions",ls="vuex",g0=0;function m0(t,e){r0({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[p0]},function(n){n.addTimelineLayer({id:cu,label:"Vuex Mutations",color:uu}),n.addTimelineLayer({id:Oi,label:"Vuex Actions",color:uu}),n.addInspector({id:ls,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(s){if(s.app===t&&s.inspectorId===ls)if(s.filter){var o=[];Qf(o,e._modules.root,s.filter,""),s.rootNodes=o}else s.rootNodes=[Yf(e._modules.root,"")]}),n.on.getInspectorState(function(s){if(s.app===t&&s.inspectorId===ls){var o=s.nodeId;Kf(e,o),s.state=y0(w0(e._modules,o),o==="root"?e.getters:e._makeLocalGettersCache,o)}}),n.on.editInspectorState(function(s){if(s.app===t&&s.inspectorId===ls){var o=s.nodeId,r=s.path;o!=="root"&&(r=o.split("/").filter(Boolean).concat(r)),e._withCommit(function(){s.set(e._state.data,r,s.state.value)})}}),e.subscribe(function(s,o){var r={};s.payload&&(r.payload=s.payload),r.state=o,n.notifyComponentUpdate(),n.sendInspectorTree(ls),n.sendInspectorState(ls),n.addTimelineEvent({layerId:cu,event:{time:Date.now(),title:s.type,data:r}})}),e.subscribeAction({before:function(s,o){var r={};s.payload&&(r.payload=s.payload),s._id=g0++,s._time=Date.now(),r.state=o,n.addTimelineEvent({layerId:Oi,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:r}})},after:function(s,o){var r={},i=Date.now()-s._time;r.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},s.payload&&(r.payload=s.payload),r.state=o,n.addTimelineEvent({layerId:Oi,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:r}})}})})}var uu=8702998,_0=6710886,b0=16777215,Wf={label:"namespaced",textColor:b0,backgroundColor:_0};function Zf(t){return t&&t!=="root"?t.split("/").slice(-2,-1)[0]:"Root"}function Yf(t,e){return{id:e||"root",label:Zf(e),tags:t.namespaced?[Wf]:[],children:Object.keys(t._children).map(function(n){return Yf(t._children[n],e+n+"/")})}}function Qf(t,e,n,s){s.includes(n)&&t.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:e.namespaced?[Wf]:[]}),Object.keys(e._children).forEach(function(o){Qf(t,e._children[o],n,s+o+"/")})}function y0(t,e,n){e=n==="root"?e:e[n];var s=Object.keys(e),o={state:Object.keys(t.state).map(function(i){return{key:i,editable:!0,value:t.state[i]}})};if(s.length){var r=v0(e);o.getters=Object.keys(r).map(function(i){return{key:i.endsWith("/")?Zf(i):i,editable:!1,value:Ya(function(){return r[i]})}})}return o}function v0(t){var e={};return Object.keys(t).forEach(function(n){var s=n.split("/");if(s.length>1){var o=e,r=s.pop();s.forEach(function(i){o[i]||(o[i]={_custom:{value:{},display:i,tooltip:"Module",abstract:!0}}),o=o[i]._custom.value}),o[r]=Ya(function(){return t[n]})}else e[n]=Ya(function(){return t[n]})}),e}function w0(t,e){var n=e.split("/").filter(function(s){return s});return n.reduce(function(s,o,r){var i=s[o];if(!i)throw new Error('Missing module "'+o+'" for path "'+e+'".');return r===n.length-1?i:i._children},e==="root"?t:t.root._children)}function Ya(t){try{return t()}catch(e){return e}}var Pt=function(e,n){this.runtime=n,this._children=Object.create(null),this._rawModule=e;var s=e.state;this.state=(typeof s=="function"?s():s)||{}},Jf={namespaced:{configurable:!0}};Jf.namespaced.get=function(){return!!this._rawModule.namespaced};Pt.prototype.addChild=function(e,n){this._children[e]=n};Pt.prototype.removeChild=function(e){delete this._children[e]};Pt.prototype.getChild=function(e){return this._children[e]};Pt.prototype.hasChild=function(e){return e in this._children};Pt.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)};Pt.prototype.forEachChild=function(e){Us(this._children,e)};Pt.prototype.forEachGetter=function(e){this._rawModule.getters&&Us(this._rawModule.getters,e)};Pt.prototype.forEachAction=function(e){this._rawModule.actions&&Us(this._rawModule.actions,e)};Pt.prototype.forEachMutation=function(e){this._rawModule.mutations&&Us(this._rawModule.mutations,e)};Object.defineProperties(Pt.prototype,Jf);var os=function(e){this.register([],e,!1)};os.prototype.get=function(e){return e.reduce(function(n,s){return n.getChild(s)},this.root)};os.prototype.getNamespace=function(e){var n=this.root;return e.reduce(function(s,o){return n=n.getChild(o),s+(n.namespaced?o+"/":"")},"")};os.prototype.update=function(e){Xf([],this.root,e)};os.prototype.register=function(e,n,s){var o=this;s===void 0&&(s=!0);var r=new Pt(n,s);if(e.length===0)this.root=r;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],r)}n.modules&&Us(n.modules,function(a,l){o.register(e.concat(l),a,s)})};os.prototype.unregister=function(e){var n=this.get(e.slice(0,-1)),s=e[e.length-1],o=n.getChild(s);o&&o.runtime&&n.removeChild(s)};os.prototype.isRegistered=function(e){var n=this.get(e.slice(0,-1)),s=e[e.length-1];return n?n.hasChild(s):!1};function Xf(t,e,n){if(e.update(n),n.modules)for(var s in n.modules){if(!e.getChild(s))return;Xf(t.concat(s),e.getChild(s),n.modules[s])}}function x0(t){return new mt(t)}var mt=function(e){var n=this;e===void 0&&(e={});var s=e.plugins;s===void 0&&(s=[]);var o=e.strict;o===void 0&&(o=!1);var r=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new os(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=r;var i=this,a=this,l=a.dispatch,c=a.commit;this.dispatch=function(p,g){return l.call(i,p,g)},this.commit=function(p,g,f){return c.call(i,p,g,f)},this.strict=o;var u=this._modules.root.state;Xr(this,u,[],this._modules.root),Ul(this,u),s.forEach(function(h){return h(n)})},Hl={state:{configurable:!0}};mt.prototype.install=function(e,n){e.provide(n||i0,this),e.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:!1;s&&m0(e,this)};Hl.state.get=function(){return this._state.data};Hl.state.set=function(t){};mt.prototype.commit=function(e,n,s){var o=this,r=xr(e,n,s),i=r.type,a=r.payload,l={type:i,payload:a},c=this._mutations[i];c&&(this._withCommit(function(){c.forEach(function(h){h(a)})}),this._subscribers.slice().forEach(function(u){return u(l,o.state)}))};mt.prototype.dispatch=function(e,n){var s=this,o=xr(e,n),r=o.type,i=o.payload,a={type:r,payload:i},l=this._actions[r];if(l){try{this._actionSubscribers.slice().filter(function(u){return u.before}).forEach(function(u){return u.before(a,s.state)})}catch{}var c=l.length>1?Promise.all(l.map(function(u){return u(i)})):l[0](i);return new Promise(function(u,h){c.then(function(p){try{s._actionSubscribers.filter(function(g){return g.after}).forEach(function(g){return g.after(a,s.state)})}catch{}u(p)},function(p){try{s._actionSubscribers.filter(function(g){return g.error}).forEach(function(g){return g.error(a,s.state,p)})}catch{}h(p)})})}};mt.prototype.subscribe=function(e,n){return Vf(e,this._subscribers,n)};mt.prototype.subscribeAction=function(e,n){var s=typeof e=="function"?{before:e}:e;return Vf(s,this._actionSubscribers,n)};mt.prototype.watch=function(e,n,s){var o=this;return Wn(function(){return e(o.state,o.getters)},n,Object.assign({},s))};mt.prototype.replaceState=function(e){var n=this;this._withCommit(function(){n._state.data=e})};mt.prototype.registerModule=function(e,n,s){s===void 0&&(s={}),typeof e=="string"&&(e=[e]),this._modules.register(e,n),Xr(this,this.state,e,this._modules.get(e),s.preserveState),Ul(this,this.state)};mt.prototype.unregisterModule=function(e){var n=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var s=ql(n.state,e.slice(0,-1));delete s[e[e.length-1]]}),Gf(this)};mt.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)};mt.prototype.hotUpdate=function(e){this._modules.update(e),Gf(this,!0)};mt.prototype._withCommit=function(e){var n=this._committing;this._committing=!0,e(),this._committing=n};Object.defineProperties(mt.prototype,Hl);var k0=A0(function(t,e){var n={};return E0(e).forEach(function(s){var o=s.key,r=s.val;n[o]=function(){var a=this.$store.state,l=this.$store.getters;if(t){var c=S0(this.$store,"mapState",t);if(!c)return;a=c.context.state,l=c.context.getters}return typeof r=="function"?r.call(this,a,l):a[r]},n[o].vuex=!0}),n});function E0(t){return C0(t)?Array.isArray(t)?t.map(function(e){return{key:e,val:e}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function C0(t){return Array.isArray(t)||Hf(t)}function A0(t){return function(e,n){return typeof e!="string"?(n=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),t(e,n)}}function S0(t,e,n){var s=t._modulesNamespaceMap[n];return s}function ep(t,e){return function(){return t.apply(e,arguments)}}const{toString:T0}=Object.prototype,{getPrototypeOf:Vl}=Object,ei=(t=>e=>{const n=T0.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),dn=t=>(t=t.toLowerCase(),e=>ei(e)===t),ti=t=>e=>typeof e===t,{isArray:qs}=Array,ko=ti("undefined");function M0(t){return t!==null&&!ko(t)&&t.constructor!==null&&!ko(t.constructor)&&ln(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const tp=dn("ArrayBuffer");function O0(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&tp(t.buffer),e}const R0=ti("string"),ln=ti("function"),np=ti("number"),Gl=t=>t!==null&&typeof t=="object",N0=t=>t===!0||t===!1,ar=t=>{if(ei(t)!=="object")return!1;const e=Vl(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},D0=dn("Date"),L0=dn("File"),I0=dn("Blob"),P0=dn("FileList"),F0=t=>Gl(t)&&ln(t.pipe),B0=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ln(t.append)&&((e=ei(t))==="formdata"||e==="object"&&ln(t.toString)&&t.toString()==="[object FormData]"))},$0=dn("URLSearchParams"),j0=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function No(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let s,o;if(typeof t!="object"&&(t=[t]),qs(t))for(s=0,o=t.length;s0;)if(o=n[s],e===o.toLowerCase())return o;return null}const op=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),rp=t=>!ko(t)&&t!==op;function Qa(){const{caseless:t}=rp(this)&&this||{},e={},n=(s,o)=>{const r=t&&sp(e,o)||o;ar(e[r])&&ar(s)?e[r]=Qa(e[r],s):ar(s)?e[r]=Qa({},s):qs(s)?e[r]=s.slice():e[r]=s};for(let s=0,o=arguments.length;s(No(e,(o,r)=>{n&&ln(o)?t[r]=ep(o,n):t[r]=o},{allOwnKeys:s}),t),U0=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),q0=(t,e,n,s)=>{t.prototype=Object.create(e.prototype,s),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},H0=(t,e,n,s)=>{let o,r,i;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),r=o.length;r-- >0;)i=o[r],(!s||s(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&Vl(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},V0=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const s=t.indexOf(e,n);return s!==-1&&s===n},G0=t=>{if(!t)return null;if(qs(t))return t;let e=t.length;if(!np(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},K0=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Vl(Uint8Array)),W0=(t,e)=>{const s=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=s.next())&&!o.done;){const r=o.value;e.call(t,r[0],r[1])}},Z0=(t,e)=>{let n;const s=[];for(;(n=t.exec(e))!==null;)s.push(n);return s},Y0=dn("HTMLFormElement"),Q0=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),du=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),J0=dn("RegExp"),ip=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),s={};No(n,(o,r)=>{e(o,r,t)!==!1&&(s[r]=o)}),Object.defineProperties(t,s)},X0=t=>{ip(t,(e,n)=>{if(ln(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=t[n];if(ln(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},eb=(t,e)=>{const n={},s=o=>{o.forEach(r=>{n[r]=!0})};return qs(t)?s(t):s(String(t).split(e)),n},tb=()=>{},nb=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Ri="abcdefghijklmnopqrstuvwxyz",hu="0123456789",ap={DIGIT:hu,ALPHA:Ri,ALPHA_DIGIT:Ri+Ri.toUpperCase()+hu},sb=(t=16,e=ap.ALPHA_DIGIT)=>{let n="";const{length:s}=e;for(;t--;)n+=e[Math.random()*s|0];return n};function ob(t){return!!(t&&ln(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const rb=t=>{const e=new Array(10),n=(s,o)=>{if(Gl(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[o]=s;const r=qs(s)?[]:{};return No(s,(i,a)=>{const l=n(i,o+1);!ko(l)&&(r[a]=l)}),e[o]=void 0,r}}return s};return n(t,0)},G={isArray:qs,isArrayBuffer:tp,isBuffer:M0,isFormData:B0,isArrayBufferView:O0,isString:R0,isNumber:np,isBoolean:N0,isObject:Gl,isPlainObject:ar,isUndefined:ko,isDate:D0,isFile:L0,isBlob:I0,isRegExp:J0,isFunction:ln,isStream:F0,isURLSearchParams:$0,isTypedArray:K0,isFileList:P0,forEach:No,merge:Qa,extend:z0,trim:j0,stripBOM:U0,inherits:q0,toFlatObject:H0,kindOf:ei,kindOfTest:dn,endsWith:V0,toArray:G0,forEachEntry:W0,matchAll:Z0,isHTMLForm:Y0,hasOwnProperty:du,hasOwnProp:du,reduceDescriptors:ip,freezeMethods:X0,toObjectSet:eb,toCamelCase:Q0,noop:tb,toFiniteNumber:nb,findKey:sp,global:op,isContextDefined:rp,ALPHABET:ap,generateString:sb,isSpecCompliantForm:ob,toJSONObject:rb};function Be(t,e,n,s,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),s&&(this.request=s),o&&(this.response=o)}G.inherits(Be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const lp=Be.prototype,cp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{cp[t]={value:t}});Object.defineProperties(Be,cp);Object.defineProperty(lp,"isAxiosError",{value:!0});Be.from=(t,e,n,s,o,r)=>{const i=Object.create(lp);return G.toFlatObject(t,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Be.call(i,t.message,e,n,s,o),i.cause=t,i.name=t.name,r&&Object.assign(i,r),i};const ib=null;function Ja(t){return G.isPlainObject(t)||G.isArray(t)}function up(t){return G.endsWith(t,"[]")?t.slice(0,-2):t}function fu(t,e,n){return t?t.concat(e).map(function(o,r){return o=up(o),!n&&r?"["+o+"]":o}).join(n?".":""):e}function ab(t){return G.isArray(t)&&!t.some(Ja)}const lb=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)});function ni(t,e,n){if(!G.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!G.isUndefined(v[m])});const s=n.metaTokens,o=n.visitor||u,r=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(e);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(G.isDate(f))return f.toISOString();if(!l&&G.isBlob(f))throw new Be("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(f)||G.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,m,v){let _=f;if(f&&!v&&typeof f=="object"){if(G.endsWith(m,"{}"))m=s?m:m.slice(0,-2),f=JSON.stringify(f);else if(G.isArray(f)&&ab(f)||(G.isFileList(f)||G.endsWith(m,"[]"))&&(_=G.toArray(f)))return m=up(m),_.forEach(function(x,C){!(G.isUndefined(x)||x===null)&&e.append(i===!0?fu([m],C,r):i===null?m:m+"[]",c(x))}),!1}return Ja(f)?!0:(e.append(fu(v,m,r),c(f)),!1)}const h=[],p=Object.assign(lb,{defaultVisitor:u,convertValue:c,isVisitable:Ja});function g(f,m){if(!G.isUndefined(f)){if(h.indexOf(f)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(f),G.forEach(f,function(_,b){(!(G.isUndefined(_)||_===null)&&o.call(e,_,G.isString(b)?b.trim():b,m,p))===!0&&g(_,m?m.concat(b):[b])}),h.pop()}}if(!G.isObject(t))throw new TypeError("data must be an object");return g(t),e}function pu(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function Kl(t,e){this._pairs=[],t&&ni(t,this,e)}const dp=Kl.prototype;dp.append=function(e,n){this._pairs.push([e,n])};dp.toString=function(e){const n=e?function(s){return e.call(this,s,pu)}:pu;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function cb(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hp(t,e,n){if(!e)return t;const s=n&&n.encode||cb,o=n&&n.serialize;let r;if(o?r=o(e,n):r=G.isURLSearchParams(e)?e.toString():new Kl(e,n).toString(s),r){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}class ub{constructor(){this.handlers=[]}use(e,n,s){return this.handlers.push({fulfilled:e,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,function(s){s!==null&&e(s)})}}const gu=ub,fp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},db=typeof URLSearchParams<"u"?URLSearchParams:Kl,hb=typeof FormData<"u"?FormData:null,fb=typeof Blob<"u"?Blob:null,pb=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),gb=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),qt={isBrowser:!0,classes:{URLSearchParams:db,FormData:hb,Blob:fb},isStandardBrowserEnv:pb,isStandardBrowserWebWorkerEnv:gb,protocols:["http","https","file","blob","url","data"]};function mb(t,e){return ni(t,new qt.classes.URLSearchParams,Object.assign({visitor:function(n,s,o,r){return qt.isNode&&G.isBuffer(n)?(this.append(s,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}function _b(t){return G.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function bb(t){const e={},n=Object.keys(t);let s;const o=n.length;let r;for(s=0;s=n.length;return i=!i&&G.isArray(o)?o.length:i,l?(G.hasOwnProp(o,i)?o[i]=[o[i],s]:o[i]=s,!a):((!o[i]||!G.isObject(o[i]))&&(o[i]=[]),e(n,s,o[i],r)&&G.isArray(o[i])&&(o[i]=bb(o[i])),!a)}if(G.isFormData(t)&&G.isFunction(t.entries)){const n={};return G.forEachEntry(t,(s,o)=>{e(_b(s),o,n,0)}),n}return null}const yb={"Content-Type":void 0};function vb(t,e,n){if(G.isString(t))try{return(e||JSON.parse)(t),G.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(t)}const si={transitional:fp,adapter:["xhr","http"],transformRequest:[function(e,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,r=G.isObject(e);if(r&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return o&&o?JSON.stringify(pp(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){if(s.indexOf("application/x-www-form-urlencoded")>-1)return mb(e,this.formSerializer).toString();if((a=G.isFileList(e))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ni(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return r||o?(n.setContentType("application/json",!1),vb(e)):e}],transformResponse:[function(e){const n=this.transitional||si.transitional,s=n&&n.forcedJSONParsing,o=this.responseType==="json";if(e&&G.isString(e)&&(s&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(i)throw a.name==="SyntaxError"?Be.from(a,Be.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qt.classes.FormData,Blob:qt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};G.forEach(["delete","get","head"],function(e){si.headers[e]={}});G.forEach(["post","put","patch"],function(e){si.headers[e]=G.merge(yb)});const Wl=si,wb=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xb=t=>{const e={};let n,s,o;return t&&t.split(` +`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),s=i.substring(o+1).trim(),!(!n||e[n]&&wb[n])&&(n==="set-cookie"?e[n]?e[n].push(s):e[n]=[s]:e[n]=e[n]?e[n]+", "+s:s)}),e},mu=Symbol("internals");function Ys(t){return t&&String(t).trim().toLowerCase()}function lr(t){return t===!1||t==null?t:G.isArray(t)?t.map(lr):String(t)}function kb(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(t);)e[s[1]]=s[2];return e}const Eb=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ni(t,e,n,s,o){if(G.isFunction(s))return s.call(this,e,n);if(o&&(e=n),!!G.isString(e)){if(G.isString(s))return e.indexOf(s)!==-1;if(G.isRegExp(s))return s.test(e)}}function Cb(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,s)=>n.toUpperCase()+s)}function Ab(t,e){const n=G.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(t,s+n,{value:function(o,r,i){return this[s].call(this,e,o,r,i)},configurable:!0})})}class oi{constructor(e){e&&this.set(e)}set(e,n,s){const o=this;function r(a,l,c){const u=Ys(l);if(!u)throw new Error("header name must be a non-empty string");const h=G.findKey(o,u);(!h||o[h]===void 0||c===!0||c===void 0&&o[h]!==!1)&&(o[h||l]=lr(a))}const i=(a,l)=>G.forEach(a,(c,u)=>r(c,u,l));return G.isPlainObject(e)||e instanceof this.constructor?i(e,n):G.isString(e)&&(e=e.trim())&&!Eb(e)?i(xb(e),n):e!=null&&r(n,e,s),this}get(e,n){if(e=Ys(e),e){const s=G.findKey(this,e);if(s){const o=this[s];if(!n)return o;if(n===!0)return kb(o);if(G.isFunction(n))return n.call(this,o,s);if(G.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Ys(e),e){const s=G.findKey(this,e);return!!(s&&this[s]!==void 0&&(!n||Ni(this,this[s],s,n)))}return!1}delete(e,n){const s=this;let o=!1;function r(i){if(i=Ys(i),i){const a=G.findKey(s,i);a&&(!n||Ni(s,s[a],a,n))&&(delete s[a],o=!0)}}return G.isArray(e)?e.forEach(r):r(e),o}clear(e){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const r=n[s];(!e||Ni(this,this[r],r,e,!0))&&(delete this[r],o=!0)}return o}normalize(e){const n=this,s={};return G.forEach(this,(o,r)=>{const i=G.findKey(s,r);if(i){n[i]=lr(o),delete n[r];return}const a=e?Cb(r):String(r).trim();a!==r&&delete n[r],n[a]=lr(o),s[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return G.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=e&&G.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const s=new this(e);return n.forEach(o=>s.set(o)),s}static accessor(e){const s=(this[mu]=this[mu]={accessors:{}}).accessors,o=this.prototype;function r(i){const a=Ys(i);s[a]||(Ab(o,i),s[a]=!0)}return G.isArray(e)?e.forEach(r):r(e),this}}oi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.freezeMethods(oi.prototype);G.freezeMethods(oi);const on=oi;function Di(t,e){const n=this||Wl,s=e||n,o=on.from(s.headers);let r=s.data;return G.forEach(t,function(a){r=a.call(n,r,o.normalize(),e?e.status:void 0)}),o.normalize(),r}function gp(t){return!!(t&&t.__CANCEL__)}function Do(t,e,n){Be.call(this,t??"canceled",Be.ERR_CANCELED,e,n),this.name="CanceledError"}G.inherits(Do,Be,{__CANCEL__:!0});function Sb(t,e,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?t(n):e(new Be("Request failed with status code "+n.status,[Be.ERR_BAD_REQUEST,Be.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Tb=qt.isStandardBrowserEnv?function(){return{write:function(n,s,o,r,i,a){const l=[];l.push(n+"="+encodeURIComponent(s)),G.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),G.isString(r)&&l.push("path="+r),G.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Mb(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ob(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function mp(t,e){return t&&!Mb(e)?Ob(t,e):e}const Rb=qt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function o(r){let i=r;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=o(window.location.href),function(i){const a=G.isString(i)?o(i):i;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function Nb(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Db(t,e){t=t||10;const n=new Array(t),s=new Array(t);let o=0,r=0,i;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=s[r];i||(i=c),n[o]=l,s[o]=c;let h=r,p=0;for(;h!==o;)p+=n[h++],h=h%t;if(o=(o+1)%t,o===r&&(r=(r+1)%t),c-i{const r=o.loaded,i=o.lengthComputable?o.total:void 0,a=r-n,l=s(a),c=r<=i;n=r;const u={loaded:r,total:i,progress:i?r/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&c?(i-r)/l:void 0,event:o};u[e?"download":"upload"]=!0,t(u)}}const Lb=typeof XMLHttpRequest<"u",Ib=Lb&&function(t){return new Promise(function(n,s){let o=t.data;const r=on.from(t.headers).normalize(),i=t.responseType;let a;function l(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}G.isFormData(o)&&(qt.isStandardBrowserEnv||qt.isStandardBrowserWebWorkerEnv)&&r.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const g=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";r.set("Authorization","Basic "+btoa(g+":"+f))}const u=mp(t.baseURL,t.url);c.open(t.method.toUpperCase(),hp(u,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function h(){if(!c)return;const g=on.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),m={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:t,request:c};Sb(function(_){n(_),l()},function(_){s(_),l()},m),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(s(new Be("Request aborted",Be.ECONNABORTED,t,c)),c=null)},c.onerror=function(){s(new Be("Network Error",Be.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let f=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const m=t.transitional||fp;t.timeoutErrorMessage&&(f=t.timeoutErrorMessage),s(new Be(f,m.clarifyTimeoutError?Be.ETIMEDOUT:Be.ECONNABORTED,t,c)),c=null},qt.isStandardBrowserEnv){const g=(t.withCredentials||Rb(u))&&t.xsrfCookieName&&Tb.read(t.xsrfCookieName);g&&r.set(t.xsrfHeaderName,g)}o===void 0&&r.setContentType(null),"setRequestHeader"in c&&G.forEach(r.toJSON(),function(f,m){c.setRequestHeader(m,f)}),G.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),i&&i!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",_u(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",_u(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=g=>{c&&(s(!g||g.type?new Do(null,t,c):g),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const p=Nb(u);if(p&&qt.protocols.indexOf(p)===-1){s(new Be("Unsupported protocol "+p+":",Be.ERR_BAD_REQUEST,t));return}c.send(o||null)})},cr={http:ib,xhr:Ib};G.forEach(cr,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Pb={getAdapter:t=>{t=G.isArray(t)?t:[t];const{length:e}=t;let n,s;for(let o=0;ot instanceof on?t.toJSON():t;function Ss(t,e){e=e||{};const n={};function s(c,u,h){return G.isPlainObject(c)&&G.isPlainObject(u)?G.merge.call({caseless:h},c,u):G.isPlainObject(u)?G.merge({},u):G.isArray(u)?u.slice():u}function o(c,u,h){if(G.isUndefined(u)){if(!G.isUndefined(c))return s(void 0,c,h)}else return s(c,u,h)}function r(c,u){if(!G.isUndefined(u))return s(void 0,u)}function i(c,u){if(G.isUndefined(u)){if(!G.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function a(c,u,h){if(h in e)return s(c,u);if(h in t)return s(void 0,c)}const l={url:r,method:r,data:r,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,u)=>o(yu(c),yu(u),!0)};return G.forEach(Object.keys(t).concat(Object.keys(e)),function(u){const h=l[u]||o,p=h(t[u],e[u],u);G.isUndefined(p)&&h!==a||(n[u]=p)}),n}const _p="1.3.6",Zl={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Zl[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});const vu={};Zl.transitional=function(e,n,s){function o(r,i){return"[Axios v"+_p+"] Transitional option '"+r+"'"+i+(s?". "+s:"")}return(r,i,a)=>{if(e===!1)throw new Be(o(i," has been removed"+(n?" in "+n:"")),Be.ERR_DEPRECATED);return n&&!vu[i]&&(vu[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(r,i,a):!0}};function Fb(t,e,n){if(typeof t!="object")throw new Be("options must be an object",Be.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let o=s.length;for(;o-- >0;){const r=s[o],i=e[r];if(i){const a=t[r],l=a===void 0||i(a,r,t);if(l!==!0)throw new Be("option "+r+" must be "+l,Be.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Be("Unknown option "+r,Be.ERR_BAD_OPTION)}}const Xa={assertOptions:Fb,validators:Zl},pn=Xa.validators;class kr{constructor(e){this.defaults=e,this.interceptors={request:new gu,response:new gu}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Ss(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:r}=n;s!==void 0&&Xa.assertOptions(s,{silentJSONParsing:pn.transitional(pn.boolean),forcedJSONParsing:pn.transitional(pn.boolean),clarifyTimeoutError:pn.transitional(pn.boolean)},!1),o!=null&&(G.isFunction(o)?n.paramsSerializer={serialize:o}:Xa.assertOptions(o,{encode:pn.function,serialize:pn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=r&&G.merge(r.common,r[n.method]),i&&G.forEach(["delete","get","head","post","put","patch","common"],f=>{delete r[f]}),n.headers=on.concat(i,r);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,h=0,p;if(!l){const f=[bu.bind(this),void 0];for(f.unshift.apply(f,a),f.push.apply(f,c),p=f.length,u=Promise.resolve(n);h{if(!s._listeners)return;let r=s._listeners.length;for(;r-- >0;)s._listeners[r](o);s._listeners=null}),this.promise.then=o=>{let r;const i=new Promise(a=>{s.subscribe(a),r=a}).then(o);return i.cancel=function(){s.unsubscribe(r)},i},e(function(r,i,a){s.reason||(s.reason=new Do(r,i,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Yl(function(o){e=o}),cancel:e}}}const Bb=Yl;function $b(t){return function(n){return t.apply(null,n)}}function jb(t){return G.isObject(t)&&t.isAxiosError===!0}const el={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(el).forEach(([t,e])=>{el[e]=t});const zb=el;function bp(t){const e=new ur(t),n=ep(ur.prototype.request,e);return G.extend(n,ur.prototype,e,{allOwnKeys:!0}),G.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return bp(Ss(t,o))},n}const tt=bp(Wl);tt.Axios=ur;tt.CanceledError=Do;tt.CancelToken=Bb;tt.isCancel=gp;tt.VERSION=_p;tt.toFormData=ni;tt.AxiosError=Be;tt.Cancel=tt.CanceledError;tt.all=function(e){return Promise.all(e)};tt.spread=$b;tt.isAxiosError=jb;tt.mergeConfig=Ss;tt.AxiosHeaders=on;tt.formToJSON=t=>pp(G.isHTMLForm(t)?new FormData(t):t);tt.HttpStatusCode=zb;tt.default=tt;const Se=tt;/*! * vue-router v4.1.6 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const fs=typeof window<"u";function Ub(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Ue=Object.assign;function Ii(t,e){const n={};for(const s in e){const o=e[s];n[s]=It(o)?o.map(t):t(o)}return n}const ro=()=>{},It=Array.isArray,qb=/\/$/,Hb=t=>t.replace(qb,"");function Pi(t,e,n="/"){let s,o={},r="",i="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(s=e.slice(0,l),r=e.slice(l+1,a>-1?a:e.length),o=t(r)),a>-1&&(s=s||e.slice(0,a),i=e.slice(a,e.length)),s=Wb(s??e,n),{fullPath:s+(r&&"?")+r+i,path:s,query:o,hash:i}}function Vb(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function wd(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function Gb(t,e,n){const s=e.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&Ts(e.matched[s],n.matched[o])&&yp(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Ts(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function yp(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!Kb(t[n],e[n]))return!1;return!0}function Kb(t,e){return It(t)?xd(t,e):It(e)?xd(e,t):t===e}function xd(t,e){return It(e)?t.length===e.length&&t.every((n,s)=>n===e[s]):t.length===1&&t[0]===e}function Wb(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),s=t.split("/");let o=n.length-1,r,i;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r-(r===s.length?1:0)).join("/")}var Eo;(function(t){t.pop="pop",t.push="push"})(Eo||(Eo={}));var io;(function(t){t.back="back",t.forward="forward",t.unknown=""})(io||(io={}));function Zb(t){if(!t)if(fs){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Hb(t)}const Yb=/^[^#]+#/;function Qb(t,e){return t.replace(Yb,"#")+e}function Jb(t,e){const n=document.documentElement.getBoundingClientRect(),s=t.getBoundingClientRect();return{behavior:e.behavior,left:s.left-n.left-(e.left||0),top:s.top-n.top-(e.top||0)}}const ri=()=>({left:window.pageXOffset,top:window.pageYOffset});function Xb(t){let e;if("el"in t){const n=t.el,s=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;e=Jb(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function kd(t,e){return(history.state?history.state.position-e:-1)+t}const tl=new Map;function ey(t,e){tl.set(t,e)}function ty(t){const e=tl.get(t);return tl.delete(t),e}let ny=()=>location.protocol+"//"+location.host;function vp(t,e){const{pathname:n,search:s,hash:o}=e,r=t.indexOf("#");if(r>-1){let a=o.includes(t.slice(r))?t.slice(r).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),wd(l,"")}return wd(n,t)+s+o}function sy(t,e,n,s){let o=[],r=[],i=null;const a=({state:p})=>{const g=vp(t,location),h=n.value,m=e.value;let v=0;if(p){if(n.value=g,e.value=p,i&&i===h){i=null;return}v=m?p.position-m.position:0}else s(g);o.forEach(_=>{_(n.value,h,{delta:v,type:Eo.pop,direction:v?v>0?io.forward:io.back:io.unknown})})};function l(){i=n.value}function c(p){o.push(p);const g=()=>{const h=o.indexOf(p);h>-1&&o.splice(h,1)};return r.push(g),g}function d(){const{history:p}=window;p.state&&p.replaceState(Ue({},p.state,{scroll:ri()}),"")}function f(){for(const p of r)p();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:l,listen:c,destroy:f}}function Ed(t,e,n,s=!1,o=!1){return{back:t,current:e,forward:n,replaced:s,position:window.history.length,scroll:o?ri():null}}function oy(t){const{history:e,location:n}=window,s={value:vp(t,n)},o={value:e.state};o.value||r(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function r(l,c,d){const f=t.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?t:t.slice(f))+l:ny()+t+l;try{e[d?"replaceState":"pushState"](c,"",p),o.value=c}catch(g){console.error(g),n[d?"replace":"assign"](p)}}function i(l,c){const d=Ue({},e.state,Ed(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});r(l,d,!0),s.value=l}function a(l,c){const d=Ue({},o.value,e.state,{forward:l,scroll:ri()});r(d.current,d,!0);const f=Ue({},Ed(s.value,l,null),{position:d.position+1},c);r(l,f,!1),s.value=l}return{location:s,state:o,push:a,replace:i}}function ry(t){t=Zb(t);const e=oy(t),n=sy(t,e.state,e.location,e.replace);function s(r,i=!0){i||n.pauseListeners(),history.go(r)}const o=Ue({location:"",base:t,go:s,createHref:Qb.bind(null,t)},e,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function iy(t){return typeof t=="string"||t&&typeof t=="object"}function wp(t){return typeof t=="string"||typeof t=="symbol"}const gn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},xp=Symbol("");var Cd;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Cd||(Cd={}));function Ms(t,e){return Ue(new Error,{type:t,[xp]:!0},e)}function en(t,e){return t instanceof Error&&xp in t&&(e==null||!!(t.type&e))}const Ad="[^/]+?",ay={sensitive:!1,strict:!1,start:!0,end:!0},ly=/[.+*?^${}()[\]/\\]/g;function cy(t,e){const n=Ue({},ay,e),s=[];let o=n.start?"^":"";const r=[];for(const c of t){const d=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;fe.length?e.length===1&&e[0]===40+40?1:-1:0}function uy(t,e){let n=0;const s=t.score,o=e.score;for(;n0&&e[e.length-1]<0}const fy={type:0,value:""},hy=/[a-zA-Z0-9_]/;function py(t){if(!t)return[[]];if(t==="/")return[[fy]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=0,s=n;const o=[];let r;function i(){r&&o.push(r),r=[]}let a=0,l,c="",d="";function f(){c&&(n===0?r.push({type:0,value:c}):n===1||n===2||n===3?(r.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function p(){c+=l}for(;a{i(b)}:ro}function i(d){if(wp(d)){const f=s.get(d);f&&(s.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return n}function l(d){let f=0;for(;f=0&&(d.record.path!==n[f].record.path||!kp(d,n[f]));)f++;n.splice(f,0,d),d.record.name&&!Md(d)&&s.set(d.record.name,d)}function c(d,f){let p,g={},h,m;if("name"in d&&d.name){if(p=s.get(d.name),!p)throw Ms(1,{location:d});m=p.record.name,g=Ue(Td(f.params,p.keys.filter(b=>!b.optional).map(b=>b.name)),d.params&&Td(d.params,p.keys.map(b=>b.name))),h=p.stringify(g)}else if("path"in d)h=d.path,p=n.find(b=>b.re.test(h)),p&&(g=p.parse(h),m=p.record.name);else{if(p=f.name?s.get(f.name):n.find(b=>b.re.test(f.path)),!p)throw Ms(1,{location:d,currentLocation:f});m=p.record.name,g=Ue({},f.params,d.params),h=p.stringify(g)}const v=[];let _=p;for(;_;)v.unshift(_.record),_=_.parent;return{name:m,path:h,params:g,matched:v,meta:yy(v)}}return t.forEach(d=>r(d)),{addRoute:r,resolve:c,removeRoute:i,getRoutes:a,getRecordMatcher:o}}function Td(t,e){const n={};for(const s of e)s in t&&(n[s]=t[s]);return n}function _y(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:by(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function by(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const s in t.components)e[s]=typeof n=="boolean"?n:n[s];return e}function Md(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function yy(t){return t.reduce((e,n)=>Ue(e,n.meta),{})}function Od(t,e){const n={};for(const s in t)n[s]=s in e?e[s]:t[s];return n}function kp(t,e){return e.children.some(n=>n===t||kp(t,n))}const Ep=/#/g,vy=/&/g,wy=/\//g,xy=/=/g,ky=/\?/g,Cp=/\+/g,Ey=/%5B/g,Cy=/%5D/g,Ap=/%5E/g,Ay=/%60/g,Sp=/%7B/g,Sy=/%7C/g,Tp=/%7D/g,Ty=/%20/g;function Ql(t){return encodeURI(""+t).replace(Sy,"|").replace(Ey,"[").replace(Cy,"]")}function My(t){return Ql(t).replace(Sp,"{").replace(Tp,"}").replace(Ap,"^")}function nl(t){return Ql(t).replace(Cp,"%2B").replace(Ty,"+").replace(Ep,"%23").replace(vy,"%26").replace(Ay,"`").replace(Sp,"{").replace(Tp,"}").replace(Ap,"^")}function Oy(t){return nl(t).replace(xy,"%3D")}function Ry(t){return Ql(t).replace(Ep,"%23").replace(ky,"%3F")}function Ny(t){return t==null?"":Ry(t).replace(wy,"%2F")}function Er(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function Dy(t){const e={};if(t===""||t==="?")return e;const s=(t[0]==="?"?t.slice(1):t).split("&");for(let o=0;or&&nl(r)):[s&&nl(s)]).forEach(r=>{r!==void 0&&(e+=(e.length?"&":"")+n,r!=null&&(e+="="+r))})}return e}function Ly(t){const e={};for(const n in t){const s=t[n];s!==void 0&&(e[n]=It(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return e}const Iy=Symbol(""),Nd=Symbol(""),Jl=Symbol(""),Mp=Symbol(""),sl=Symbol("");function Qs(){let t=[];function e(s){return t.push(s),()=>{const o=t.indexOf(s);o>-1&&t.splice(o,1)}}function n(){t=[]}return{add:e,list:()=>t,reset:n}}function bn(t,e,n,s,o){const r=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((i,a)=>{const l=f=>{f===!1?a(Ms(4,{from:n,to:e})):f instanceof Error?a(f):iy(f)?a(Ms(2,{from:e,to:f})):(r&&s.enterCallbacks[o]===r&&typeof f=="function"&&r.push(f),i())},c=t.call(s&&s.instances[o],e,n,l);let d=Promise.resolve(c);t.length<3&&(d=d.then(l)),d.catch(f=>a(f))})}function Fi(t,e,n,s){const o=[];for(const r of t)for(const i in r.components){let a=r.components[i];if(!(e!=="beforeRouteEnter"&&!r.instances[i]))if(Py(a)){const c=(a.__vccOpts||a)[e];c&&o.push(bn(c,n,s,r,i))}else{let l=a();o.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${r.path}"`));const d=Ub(c)?c.default:c;r.components[i]=d;const p=(d.__vccOpts||d)[e];return p&&bn(p,n,s,r,i)()}))}}return o}function Py(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Dd(t){const e=sn(Jl),n=sn(Mp),s=xt(()=>e.resolve(ft(t.to))),o=xt(()=>{const{matched:l}=s.value,{length:c}=l,d=l[c-1],f=n.matched;if(!d||!f.length)return-1;const p=f.findIndex(Ts.bind(null,d));if(p>-1)return p;const g=Ld(l[c-2]);return c>1&&Ld(d)===g&&f[f.length-1].path!==g?f.findIndex(Ts.bind(null,l[c-2])):p}),r=xt(()=>o.value>-1&&$y(n.params,s.value.params)),i=xt(()=>o.value>-1&&o.value===n.matched.length-1&&yp(n.params,s.value.params));function a(l={}){return By(l)?e[ft(t.replace)?"replace":"push"](ft(t.to)).catch(ro):Promise.resolve()}return{route:s,href:xt(()=>s.value.href),isActive:r,isExactActive:i,navigate:a}}const Fy=mh({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Dd,setup(t,{slots:e}){const n=zs(Dd(t)),{options:s}=sn(Jl),o=xt(()=>({[Id(t.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Id(t.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=e.default&&e.default(n);return t.custom?r:jl("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),yn=Fy;function By(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function $y(t,e){for(const n in e){const s=e[n],o=t[n];if(typeof s=="string"){if(s!==o)return!1}else if(!It(o)||o.length!==s.length||s.some((r,i)=>r!==o[i]))return!1}return!0}function Ld(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Id=(t,e,n)=>t??e??n,zy=mh({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const s=sn(sl),o=xt(()=>t.route||s.value),r=sn(Nd,0),i=xt(()=>{let c=ft(r);const{matched:d}=o.value;let f;for(;(f=d[c])&&!f.components;)c++;return c}),a=xt(()=>o.value.matched[i.value]);or(Nd,xt(()=>i.value+1)),or(Iy,a),or(sl,o);const l=d_();return Wn(()=>[l.value,a.value,t.name],([c,d,f],[p,g,h])=>{d&&(d.instances[f]=c,g&&g!==d&&c&&c===p&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),c&&d&&(!g||!Ts(d,g)||!p)&&(d.enterCallbacks[f]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=o.value,d=t.name,f=a.value,p=f&&f.components[d];if(!p)return Pd(n.default,{Component:p,route:c});const g=f.props[d],h=g?g===!0?c.params:typeof g=="function"?g(c):g:null,v=jl(p,Ue({},h,e,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[d]=null)},ref:l}));return Pd(n.default,{Component:v,route:c})||v}}});function Pd(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const Op=zy;function jy(t){const e=my(t.routes,t),n=t.parseQuery||Dy,s=t.stringifyQuery||Rd,o=t.history,r=Qs(),i=Qs(),a=Qs(),l=u_(gn);let c=gn;fs&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Ii.bind(null,N=>""+N),f=Ii.bind(null,Ny),p=Ii.bind(null,Er);function g(N,J){let H,te;return wp(N)?(H=e.getRecordMatcher(N),te=J):te=N,e.addRoute(te,H)}function h(N){const J=e.getRecordMatcher(N);J&&e.removeRoute(J)}function m(){return e.getRoutes().map(N=>N.record)}function v(N){return!!e.getRecordMatcher(N)}function _(N,J){if(J=Ue({},J||l.value),typeof N=="string"){const w=Pi(n,N,J.path),E=e.resolve({path:w.path},J),P=o.createHref(w.fullPath);return Ue(w,E,{params:p(E.params),hash:Er(w.hash),redirectedFrom:void 0,href:P})}let H;if("path"in N)H=Ue({},N,{path:Pi(n,N.path,J.path).path});else{const w=Ue({},N.params);for(const E in w)w[E]==null&&delete w[E];H=Ue({},N,{params:f(N.params)}),J.params=f(J.params)}const te=e.resolve(H,J),X=N.hash||"";te.params=d(p(te.params));const he=Vb(s,Ue({},N,{hash:My(X),path:te.path})),ce=o.createHref(he);return Ue({fullPath:he,hash:X,query:s===Rd?Ly(N.query):N.query||{}},te,{redirectedFrom:void 0,href:ce})}function b(N){return typeof N=="string"?Pi(n,N,l.value.path):Ue({},N)}function x(N,J){if(c!==N)return Ms(8,{from:J,to:N})}function C(N){return D(N)}function R(N){return C(Ue(b(N),{replace:!0}))}function O(N){const J=N.matched[N.matched.length-1];if(J&&J.redirect){const{redirect:H}=J;let te=typeof H=="function"?H(N):H;return typeof te=="string"&&(te=te.includes("?")||te.includes("#")?te=b(te):{path:te},te.params={}),Ue({query:N.query,hash:N.hash,params:"path"in te?{}:N.params},te)}}function D(N,J){const H=c=_(N),te=l.value,X=N.state,he=N.force,ce=N.replace===!0,w=O(H);if(w)return D(Ue(b(w),{state:typeof w=="object"?Ue({},X,w.state):X,force:he,replace:ce}),J||H);const E=H;E.redirectedFrom=J;let P;return!he&&Gb(s,te,H)&&(P=Ms(16,{to:E,from:te}),be(te,te,!0,!1)),(P?Promise.resolve(P):k(E,te)).catch(B=>en(B)?en(B,2)?B:V(B):S(B,E,te)).then(B=>{if(B){if(en(B,2))return D(Ue({replace:ce},b(B.to),{state:typeof B.to=="object"?Ue({},X,B.to.state):X,force:he}),J||E)}else B=L(E,te,!0,ce,X);return T(E,te,B),B})}function y(N,J){const H=x(N,J);return H?Promise.reject(H):Promise.resolve()}function k(N,J){let H;const[te,X,he]=Uy(N,J);H=Fi(te.reverse(),"beforeRouteLeave",N,J);for(const w of te)w.leaveGuards.forEach(E=>{H.push(bn(E,N,J))});const ce=y.bind(null,N,J);return H.push(ce),cs(H).then(()=>{H=[];for(const w of r.list())H.push(bn(w,N,J));return H.push(ce),cs(H)}).then(()=>{H=Fi(X,"beforeRouteUpdate",N,J);for(const w of X)w.updateGuards.forEach(E=>{H.push(bn(E,N,J))});return H.push(ce),cs(H)}).then(()=>{H=[];for(const w of N.matched)if(w.beforeEnter&&!J.matched.includes(w))if(It(w.beforeEnter))for(const E of w.beforeEnter)H.push(bn(E,N,J));else H.push(bn(w.beforeEnter,N,J));return H.push(ce),cs(H)}).then(()=>(N.matched.forEach(w=>w.enterCallbacks={}),H=Fi(he,"beforeRouteEnter",N,J),H.push(ce),cs(H))).then(()=>{H=[];for(const w of i.list())H.push(bn(w,N,J));return H.push(ce),cs(H)}).catch(w=>en(w,8)?w:Promise.reject(w))}function T(N,J,H){for(const te of a.list())te(N,J,H)}function L(N,J,H,te,X){const he=x(N,J);if(he)return he;const ce=J===gn,w=fs?history.state:{};H&&(te||ce?o.replace(N.fullPath,Ue({scroll:ce&&w&&w.scroll},X)):o.push(N.fullPath,X)),l.value=N,be(N,J,H,ce),V()}let F;function Q(){F||(F=o.listen((N,J,H)=>{if(!Ee.listening)return;const te=_(N),X=O(te);if(X){D(Ue(X,{replace:!0}),te).catch(ro);return}c=te;const he=l.value;fs&&ey(kd(he.fullPath,H.delta),ri()),k(te,he).catch(ce=>en(ce,12)?ce:en(ce,2)?(D(ce.to,te).then(w=>{en(w,20)&&!H.delta&&H.type===Eo.pop&&o.go(-1,!1)}).catch(ro),Promise.reject()):(H.delta&&o.go(-H.delta,!1),S(ce,te,he))).then(ce=>{ce=ce||L(te,he,!1),ce&&(H.delta&&!en(ce,8)?o.go(-H.delta,!1):H.type===Eo.pop&&en(ce,20)&&o.go(-1,!1)),T(te,he,ce)}).catch(ro)}))}let I=Qs(),ae=Qs(),W;function S(N,J,H){V(N);const te=ae.list();return te.length?te.forEach(X=>X(N,J,H)):console.error(N),Promise.reject(N)}function q(){return W&&l.value!==gn?Promise.resolve():new Promise((N,J)=>{I.add([N,J])})}function V(N){return W||(W=!N,Q(),I.list().forEach(([J,H])=>N?H(N):J()),I.reset()),N}function be(N,J,H,te){const{scrollBehavior:X}=t;if(!fs||!X)return Promise.resolve();const he=!H&&ty(kd(N.fullPath,0))||(te||!H)&&history.state&&history.state.scroll||null;return _e().then(()=>X(N,J,he)).then(ce=>ce&&Xb(ce)).catch(ce=>S(ce,N,J))}const ge=N=>o.go(N);let ee;const ve=new Set,Ee={currentRoute:l,listening:!0,addRoute:g,removeRoute:h,hasRoute:v,getRoutes:m,resolve:_,options:t,push:C,replace:R,go:ge,back:()=>ge(-1),forward:()=>ge(1),beforeEach:r.add,beforeResolve:i.add,afterEach:a.add,onError:ae.add,isReady:q,install(N){const J=this;N.component("RouterLink",yn),N.component("RouterView",Op),N.config.globalProperties.$router=J,Object.defineProperty(N.config.globalProperties,"$route",{enumerable:!0,get:()=>ft(l)}),fs&&!ee&&l.value===gn&&(ee=!0,C(o.location).catch(X=>{}));const H={};for(const X in gn)H[X]=xt(()=>l.value[X]);N.provide(Jl,J),N.provide(Mp,zs(H)),N.provide(sl,l);const te=N.unmount;ve.add(N),N.unmount=function(){ve.delete(N),ve.size<1&&(c=gn,F&&F(),F=null,l.value=gn,ee=!1,W=!1),te()}}};return Ee}function cs(t){return t.reduce((e,n)=>e.then(()=>n()),Promise.resolve())}function Uy(t,e){const n=[],s=[],o=[],r=Math.max(e.matched.length,t.matched.length);for(let i=0;iTs(c,a))?s.push(a):n.push(a));const l=t.matched[i];l&&(e.matched.find(c=>Ts(c,l))||o.push(l))}return[n,s,o]}const qy="modulepreload",Hy=function(t){return"/"+t},Fd={},Bi=function(e,n,s){if(!n||n.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=Hy(r),r in Fd)return;Fd[r]=!0;const i=r.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(!!s)for(let d=o.length-1;d>=0;d--){const f=o[d];if(f.href===r&&(!i||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":qy,i||(c.as="script",c.crossOrigin=""),c.href=r,document.head.appendChild(c),i)return new Promise((d,f)=>{c.addEventListener("load",d),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>e())},Xl="/assets/logo-023c77a1.png";var Rp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Vy(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function s(){if(this instanceof s){var o=[null];o.push.apply(o,arguments);var r=Function.bind.apply(e,o);return new r}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,o.get?o:{enumerable:!0,get:function(){return t[s]}})}),n}var Np={exports:{}};(function(t,e){(function(s,o){t.exports=o()})(typeof self<"u"?self:Rp,function(){return function(n){var s={};function o(r){if(s[r])return s[r].exports;var i=s[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=n,o.c=s,o.d=function(r,i,a){o.o(r,i)||Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:a})},o.r=function(r){Object.defineProperty(r,"__esModule",{value:!0})},o.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(i,"a",i),i},o.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},o.p="",o(o.s=0)}({"./dist/icons.json":function(n){n.exports={activity:'',airplay:'',"alert-circle":'',"alert-octagon":'',"alert-triangle":'',"align-center":'',"align-justify":'',"align-left":'',"align-right":'',anchor:'',aperture:'',archive:'',"arrow-down-circle":'',"arrow-down-left":'',"arrow-down-right":'',"arrow-down":'',"arrow-left-circle":'',"arrow-left":'',"arrow-right-circle":'',"arrow-right":'',"arrow-up-circle":'',"arrow-up-left":'',"arrow-up-right":'',"arrow-up":'',"at-sign":'',award:'',"bar-chart-2":'',"bar-chart":'',"battery-charging":'',battery:'',"bell-off":'',bell:'',bluetooth:'',bold:'',"book-open":'',book:'',bookmark:'',box:'',briefcase:'',calendar:'',"camera-off":'',camera:'',cast:'',"check-circle":'',"check-square":'',check:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',"chevrons-down":'',"chevrons-left":'',"chevrons-right":'',"chevrons-up":'',chrome:'',circle:'',clipboard:'',clock:'',"cloud-drizzle":'',"cloud-lightning":'',"cloud-off":'',"cloud-rain":'',"cloud-snow":'',cloud:'',code:'',codepen:'',codesandbox:'',coffee:'',columns:'',command:'',compass:'',copy:'',"corner-down-left":'',"corner-down-right":'',"corner-left-down":'',"corner-left-up":'',"corner-right-down":'',"corner-right-up":'',"corner-up-left":'',"corner-up-right":'',cpu:'',"credit-card":'',crop:'',crosshair:'',database:'',delete:'',disc:'',"divide-circle":'',"divide-square":'',divide:'',"dollar-sign":'',"download-cloud":'',download:'',dribbble:'',droplet:'',"edit-2":'',"edit-3":'',edit:'',"external-link":'',"eye-off":'',eye:'',facebook:'',"fast-forward":'',feather:'',figma:'',"file-minus":'',"file-plus":'',"file-text":'',file:'',film:'',filter:'',flag:'',"folder-minus":'',"folder-plus":'',folder:'',framer:'',frown:'',gift:'',"git-branch":'',"git-commit":'',"git-merge":'',"git-pull-request":'',github:'',gitlab:'',globe:'',grid:'',"hard-drive":'',hash:'',headphones:'',heart:'',"help-circle":'',hexagon:'',home:'',image:'',inbox:'',info:'',instagram:'',italic:'',key:'',layers:'',layout:'',"life-buoy":'',"link-2":'',link:'',linkedin:'',list:'',loader:'',lock:'',"log-in":'',"log-out":'',mail:'',"map-pin":'',map:'',"maximize-2":'',maximize:'',meh:'',menu:'',"message-circle":'',"message-square":'',"mic-off":'',mic:'',"minimize-2":'',minimize:'',"minus-circle":'',"minus-square":'',minus:'',monitor:'',moon:'',"more-horizontal":'',"more-vertical":'',"mouse-pointer":'',move:'',music:'',"navigation-2":'',navigation:'',octagon:'',package:'',paperclip:'',"pause-circle":'',pause:'',"pen-tool":'',percent:'',"phone-call":'',"phone-forwarded":'',"phone-incoming":'',"phone-missed":'',"phone-off":'',"phone-outgoing":'',phone:'',"pie-chart":'',"play-circle":'',play:'',"plus-circle":'',"plus-square":'',plus:'',pocket:'',power:'',printer:'',radio:'',"refresh-ccw":'',"refresh-cw":'',repeat:'',rewind:'',"rotate-ccw":'',"rotate-cw":'',rss:'',save:'',scissors:'',search:'',send:'',server:'',settings:'',"share-2":'',share:'',"shield-off":'',shield:'',"shopping-bag":'',"shopping-cart":'',shuffle:'',sidebar:'',"skip-back":'',"skip-forward":'',slack:'',slash:'',sliders:'',smartphone:'',smile:'',speaker:'',square:'',star:'',"stop-circle":'',sun:'',sunrise:'',sunset:'',table:'',tablet:'',tag:'',target:'',terminal:'',thermometer:'',"thumbs-down":'',"thumbs-up":'',"toggle-left":'',"toggle-right":'',tool:'',"trash-2":'',trash:'',trello:'',"trending-down":'',"trending-up":'',triangle:'',truck:'',tv:'',twitch:'',twitter:'',type:'',umbrella:'',underline:'',unlock:'',"upload-cloud":'',upload:'',"user-check":'',"user-minus":'',"user-plus":'',"user-x":'',user:'',users:'',"video-off":'',video:'',voicemail:'',"volume-1":'',"volume-2":'',"volume-x":'',volume:'',watch:'',"wifi-off":'',wifi:'',wind:'',"x-circle":'',"x-octagon":'',"x-square":'',x:'',youtube:'',"zap-off":'',zap:'',"zoom-in":'',"zoom-out":''}},"./node_modules/classnames/dedupe.js":function(n,s,o){var r,i;/*! + */const hs=typeof window<"u";function Ub(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Ue=Object.assign;function Ii(t,e){const n={};for(const s in e){const o=e[s];n[s]=It(o)?o.map(t):t(o)}return n}const ro=()=>{},It=Array.isArray,qb=/\/$/,Hb=t=>t.replace(qb,"");function Pi(t,e,n="/"){let s,o={},r="",i="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(s=e.slice(0,l),r=e.slice(l+1,a>-1?a:e.length),o=t(r)),a>-1&&(s=s||e.slice(0,a),i=e.slice(a,e.length)),s=Wb(s??e,n),{fullPath:s+(r&&"?")+r+i,path:s,query:o,hash:i}}function Vb(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function wu(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function Gb(t,e,n){const s=e.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&Ts(e.matched[s],n.matched[o])&&yp(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Ts(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function yp(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!Kb(t[n],e[n]))return!1;return!0}function Kb(t,e){return It(t)?xu(t,e):It(e)?xu(e,t):t===e}function xu(t,e){return It(e)?t.length===e.length&&t.every((n,s)=>n===e[s]):t.length===1&&t[0]===e}function Wb(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),s=t.split("/");let o=n.length-1,r,i;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r-(r===s.length?1:0)).join("/")}var Eo;(function(t){t.pop="pop",t.push="push"})(Eo||(Eo={}));var io;(function(t){t.back="back",t.forward="forward",t.unknown=""})(io||(io={}));function Zb(t){if(!t)if(hs){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Hb(t)}const Yb=/^[^#]+#/;function Qb(t,e){return t.replace(Yb,"#")+e}function Jb(t,e){const n=document.documentElement.getBoundingClientRect(),s=t.getBoundingClientRect();return{behavior:e.behavior,left:s.left-n.left-(e.left||0),top:s.top-n.top-(e.top||0)}}const ri=()=>({left:window.pageXOffset,top:window.pageYOffset});function Xb(t){let e;if("el"in t){const n=t.el,s=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;e=Jb(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function ku(t,e){return(history.state?history.state.position-e:-1)+t}const tl=new Map;function ey(t,e){tl.set(t,e)}function ty(t){const e=tl.get(t);return tl.delete(t),e}let ny=()=>location.protocol+"//"+location.host;function vp(t,e){const{pathname:n,search:s,hash:o}=e,r=t.indexOf("#");if(r>-1){let a=o.includes(t.slice(r))?t.slice(r).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),wu(l,"")}return wu(n,t)+s+o}function sy(t,e,n,s){let o=[],r=[],i=null;const a=({state:p})=>{const g=vp(t,location),f=n.value,m=e.value;let v=0;if(p){if(n.value=g,e.value=p,i&&i===f){i=null;return}v=m?p.position-m.position:0}else s(g);o.forEach(_=>{_(n.value,f,{delta:v,type:Eo.pop,direction:v?v>0?io.forward:io.back:io.unknown})})};function l(){i=n.value}function c(p){o.push(p);const g=()=>{const f=o.indexOf(p);f>-1&&o.splice(f,1)};return r.push(g),g}function u(){const{history:p}=window;p.state&&p.replaceState(Ue({},p.state,{scroll:ri()}),"")}function h(){for(const p of r)p();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:c,destroy:h}}function Eu(t,e,n,s=!1,o=!1){return{back:t,current:e,forward:n,replaced:s,position:window.history.length,scroll:o?ri():null}}function oy(t){const{history:e,location:n}=window,s={value:vp(t,n)},o={value:e.state};o.value||r(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function r(l,c,u){const h=t.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?t:t.slice(h))+l:ny()+t+l;try{e[u?"replaceState":"pushState"](c,"",p),o.value=c}catch(g){console.error(g),n[u?"replace":"assign"](p)}}function i(l,c){const u=Ue({},e.state,Eu(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});r(l,u,!0),s.value=l}function a(l,c){const u=Ue({},o.value,e.state,{forward:l,scroll:ri()});r(u.current,u,!0);const h=Ue({},Eu(s.value,l,null),{position:u.position+1},c);r(l,h,!1),s.value=l}return{location:s,state:o,push:a,replace:i}}function ry(t){t=Zb(t);const e=oy(t),n=sy(t,e.state,e.location,e.replace);function s(r,i=!0){i||n.pauseListeners(),history.go(r)}const o=Ue({location:"",base:t,go:s,createHref:Qb.bind(null,t)},e,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function iy(t){return typeof t=="string"||t&&typeof t=="object"}function wp(t){return typeof t=="string"||typeof t=="symbol"}const gn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},xp=Symbol("");var Cu;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Cu||(Cu={}));function Ms(t,e){return Ue(new Error,{type:t,[xp]:!0},e)}function en(t,e){return t instanceof Error&&xp in t&&(e==null||!!(t.type&e))}const Au="[^/]+?",ay={sensitive:!1,strict:!1,start:!0,end:!0},ly=/[.+*?^${}()[\]/\\]/g;function cy(t,e){const n=Ue({},ay,e),s=[];let o=n.start?"^":"";const r=[];for(const c of t){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let h=0;he.length?e.length===1&&e[0]===40+40?1:-1:0}function dy(t,e){let n=0;const s=t.score,o=e.score;for(;n0&&e[e.length-1]<0}const hy={type:0,value:""},fy=/[a-zA-Z0-9_]/;function py(t){if(!t)return[[]];if(t==="/")return[[hy]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=0,s=n;const o=[];let r;function i(){r&&o.push(r),r=[]}let a=0,l,c="",u="";function h(){c&&(n===0?r.push({type:0,value:c}):n===1||n===2||n===3?(r.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function p(){c+=l}for(;a{i(b)}:ro}function i(u){if(wp(u)){const h=s.get(u);h&&(s.delete(u),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(u);h>-1&&(n.splice(h,1),u.record.name&&s.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function a(){return n}function l(u){let h=0;for(;h=0&&(u.record.path!==n[h].record.path||!kp(u,n[h]));)h++;n.splice(h,0,u),u.record.name&&!Mu(u)&&s.set(u.record.name,u)}function c(u,h){let p,g={},f,m;if("name"in u&&u.name){if(p=s.get(u.name),!p)throw Ms(1,{location:u});m=p.record.name,g=Ue(Tu(h.params,p.keys.filter(b=>!b.optional).map(b=>b.name)),u.params&&Tu(u.params,p.keys.map(b=>b.name))),f=p.stringify(g)}else if("path"in u)f=u.path,p=n.find(b=>b.re.test(f)),p&&(g=p.parse(f),m=p.record.name);else{if(p=h.name?s.get(h.name):n.find(b=>b.re.test(h.path)),!p)throw Ms(1,{location:u,currentLocation:h});m=p.record.name,g=Ue({},h.params,u.params),f=p.stringify(g)}const v=[];let _=p;for(;_;)v.unshift(_.record),_=_.parent;return{name:m,path:f,params:g,matched:v,meta:yy(v)}}return t.forEach(u=>r(u)),{addRoute:r,resolve:c,removeRoute:i,getRoutes:a,getRecordMatcher:o}}function Tu(t,e){const n={};for(const s of e)s in t&&(n[s]=t[s]);return n}function _y(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:by(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function by(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const s in t.components)e[s]=typeof n=="boolean"?n:n[s];return e}function Mu(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function yy(t){return t.reduce((e,n)=>Ue(e,n.meta),{})}function Ou(t,e){const n={};for(const s in t)n[s]=s in e?e[s]:t[s];return n}function kp(t,e){return e.children.some(n=>n===t||kp(t,n))}const Ep=/#/g,vy=/&/g,wy=/\//g,xy=/=/g,ky=/\?/g,Cp=/\+/g,Ey=/%5B/g,Cy=/%5D/g,Ap=/%5E/g,Ay=/%60/g,Sp=/%7B/g,Sy=/%7C/g,Tp=/%7D/g,Ty=/%20/g;function Ql(t){return encodeURI(""+t).replace(Sy,"|").replace(Ey,"[").replace(Cy,"]")}function My(t){return Ql(t).replace(Sp,"{").replace(Tp,"}").replace(Ap,"^")}function nl(t){return Ql(t).replace(Cp,"%2B").replace(Ty,"+").replace(Ep,"%23").replace(vy,"%26").replace(Ay,"`").replace(Sp,"{").replace(Tp,"}").replace(Ap,"^")}function Oy(t){return nl(t).replace(xy,"%3D")}function Ry(t){return Ql(t).replace(Ep,"%23").replace(ky,"%3F")}function Ny(t){return t==null?"":Ry(t).replace(wy,"%2F")}function Er(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function Dy(t){const e={};if(t===""||t==="?")return e;const s=(t[0]==="?"?t.slice(1):t).split("&");for(let o=0;or&&nl(r)):[s&&nl(s)]).forEach(r=>{r!==void 0&&(e+=(e.length?"&":"")+n,r!=null&&(e+="="+r))})}return e}function Ly(t){const e={};for(const n in t){const s=t[n];s!==void 0&&(e[n]=It(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return e}const Iy=Symbol(""),Nu=Symbol(""),Jl=Symbol(""),Mp=Symbol(""),sl=Symbol("");function Qs(){let t=[];function e(s){return t.push(s),()=>{const o=t.indexOf(s);o>-1&&t.splice(o,1)}}function n(){t=[]}return{add:e,list:()=>t,reset:n}}function bn(t,e,n,s,o){const r=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((i,a)=>{const l=h=>{h===!1?a(Ms(4,{from:n,to:e})):h instanceof Error?a(h):iy(h)?a(Ms(2,{from:e,to:h})):(r&&s.enterCallbacks[o]===r&&typeof h=="function"&&r.push(h),i())},c=t.call(s&&s.instances[o],e,n,l);let u=Promise.resolve(c);t.length<3&&(u=u.then(l)),u.catch(h=>a(h))})}function Fi(t,e,n,s){const o=[];for(const r of t)for(const i in r.components){let a=r.components[i];if(!(e!=="beforeRouteEnter"&&!r.instances[i]))if(Py(a)){const c=(a.__vccOpts||a)[e];c&&o.push(bn(c,n,s,r,i))}else{let l=a();o.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${r.path}"`));const u=Ub(c)?c.default:c;r.components[i]=u;const p=(u.__vccOpts||u)[e];return p&&bn(p,n,s,r,i)()}))}}return o}function Py(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Du(t){const e=sn(Jl),n=sn(Mp),s=xt(()=>e.resolve(ht(t.to))),o=xt(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],h=n.matched;if(!u||!h.length)return-1;const p=h.findIndex(Ts.bind(null,u));if(p>-1)return p;const g=Lu(l[c-2]);return c>1&&Lu(u)===g&&h[h.length-1].path!==g?h.findIndex(Ts.bind(null,l[c-2])):p}),r=xt(()=>o.value>-1&&$y(n.params,s.value.params)),i=xt(()=>o.value>-1&&o.value===n.matched.length-1&&yp(n.params,s.value.params));function a(l={}){return By(l)?e[ht(t.replace)?"replace":"push"](ht(t.to)).catch(ro):Promise.resolve()}return{route:s,href:xt(()=>s.value.href),isActive:r,isExactActive:i,navigate:a}}const Fy=mf({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Du,setup(t,{slots:e}){const n=js(Du(t)),{options:s}=sn(Jl),o=xt(()=>({[Iu(t.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Iu(t.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=e.default&&e.default(n);return t.custom?r:zl("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),yn=Fy;function By(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function $y(t,e){for(const n in e){const s=e[n],o=t[n];if(typeof s=="string"){if(s!==o)return!1}else if(!It(o)||o.length!==s.length||s.some((r,i)=>r!==o[i]))return!1}return!0}function Lu(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Iu=(t,e,n)=>t??e??n,jy=mf({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const s=sn(sl),o=xt(()=>t.route||s.value),r=sn(Nu,0),i=xt(()=>{let c=ht(r);const{matched:u}=o.value;let h;for(;(h=u[c])&&!h.components;)c++;return c}),a=xt(()=>o.value.matched[i.value]);or(Nu,xt(()=>i.value+1)),or(Iy,a),or(sl,o);const l=u_();return Wn(()=>[l.value,a.value,t.name],([c,u,h],[p,g,f])=>{u&&(u.instances[h]=c,g&&g!==u&&c&&c===p&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),c&&u&&(!g||!Ts(u,g)||!p)&&(u.enterCallbacks[h]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=o.value,u=t.name,h=a.value,p=h&&h.components[u];if(!p)return Pu(n.default,{Component:p,route:c});const g=h.props[u],f=g?g===!0?c.params:typeof g=="function"?g(c):g:null,v=zl(p,Ue({},f,e,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(h.instances[u]=null)},ref:l}));return Pu(n.default,{Component:v,route:c})||v}}});function Pu(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const Op=jy;function zy(t){const e=my(t.routes,t),n=t.parseQuery||Dy,s=t.stringifyQuery||Ru,o=t.history,r=Qs(),i=Qs(),a=Qs(),l=d_(gn);let c=gn;hs&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ii.bind(null,N=>""+N),h=Ii.bind(null,Ny),p=Ii.bind(null,Er);function g(N,J){let H,te;return wp(N)?(H=e.getRecordMatcher(N),te=J):te=N,e.addRoute(te,H)}function f(N){const J=e.getRecordMatcher(N);J&&e.removeRoute(J)}function m(){return e.getRoutes().map(N=>N.record)}function v(N){return!!e.getRecordMatcher(N)}function _(N,J){if(J=Ue({},J||l.value),typeof N=="string"){const w=Pi(n,N,J.path),E=e.resolve({path:w.path},J),P=o.createHref(w.fullPath);return Ue(w,E,{params:p(E.params),hash:Er(w.hash),redirectedFrom:void 0,href:P})}let H;if("path"in N)H=Ue({},N,{path:Pi(n,N.path,J.path).path});else{const w=Ue({},N.params);for(const E in w)w[E]==null&&delete w[E];H=Ue({},N,{params:h(N.params)}),J.params=h(J.params)}const te=e.resolve(H,J),X=N.hash||"";te.params=u(p(te.params));const fe=Vb(s,Ue({},N,{hash:My(X),path:te.path})),ce=o.createHref(fe);return Ue({fullPath:fe,hash:X,query:s===Ru?Ly(N.query):N.query||{}},te,{redirectedFrom:void 0,href:ce})}function b(N){return typeof N=="string"?Pi(n,N,l.value.path):Ue({},N)}function x(N,J){if(c!==N)return Ms(8,{from:J,to:N})}function C(N){return D(N)}function R(N){return C(Ue(b(N),{replace:!0}))}function O(N){const J=N.matched[N.matched.length-1];if(J&&J.redirect){const{redirect:H}=J;let te=typeof H=="function"?H(N):H;return typeof te=="string"&&(te=te.includes("?")||te.includes("#")?te=b(te):{path:te},te.params={}),Ue({query:N.query,hash:N.hash,params:"path"in te?{}:N.params},te)}}function D(N,J){const H=c=_(N),te=l.value,X=N.state,fe=N.force,ce=N.replace===!0,w=O(H);if(w)return D(Ue(b(w),{state:typeof w=="object"?Ue({},X,w.state):X,force:fe,replace:ce}),J||H);const E=H;E.redirectedFrom=J;let P;return!fe&&Gb(s,te,H)&&(P=Ms(16,{to:E,from:te}),be(te,te,!0,!1)),(P?Promise.resolve(P):k(E,te)).catch(B=>en(B)?en(B,2)?B:V(B):S(B,E,te)).then(B=>{if(B){if(en(B,2))return D(Ue({replace:ce},b(B.to),{state:typeof B.to=="object"?Ue({},X,B.to.state):X,force:fe}),J||E)}else B=L(E,te,!0,ce,X);return T(E,te,B),B})}function y(N,J){const H=x(N,J);return H?Promise.reject(H):Promise.resolve()}function k(N,J){let H;const[te,X,fe]=Uy(N,J);H=Fi(te.reverse(),"beforeRouteLeave",N,J);for(const w of te)w.leaveGuards.forEach(E=>{H.push(bn(E,N,J))});const ce=y.bind(null,N,J);return H.push(ce),cs(H).then(()=>{H=[];for(const w of r.list())H.push(bn(w,N,J));return H.push(ce),cs(H)}).then(()=>{H=Fi(X,"beforeRouteUpdate",N,J);for(const w of X)w.updateGuards.forEach(E=>{H.push(bn(E,N,J))});return H.push(ce),cs(H)}).then(()=>{H=[];for(const w of N.matched)if(w.beforeEnter&&!J.matched.includes(w))if(It(w.beforeEnter))for(const E of w.beforeEnter)H.push(bn(E,N,J));else H.push(bn(w.beforeEnter,N,J));return H.push(ce),cs(H)}).then(()=>(N.matched.forEach(w=>w.enterCallbacks={}),H=Fi(fe,"beforeRouteEnter",N,J),H.push(ce),cs(H))).then(()=>{H=[];for(const w of i.list())H.push(bn(w,N,J));return H.push(ce),cs(H)}).catch(w=>en(w,8)?w:Promise.reject(w))}function T(N,J,H){for(const te of a.list())te(N,J,H)}function L(N,J,H,te,X){const fe=x(N,J);if(fe)return fe;const ce=J===gn,w=hs?history.state:{};H&&(te||ce?o.replace(N.fullPath,Ue({scroll:ce&&w&&w.scroll},X)):o.push(N.fullPath,X)),l.value=N,be(N,J,H,ce),V()}let F;function Q(){F||(F=o.listen((N,J,H)=>{if(!Ee.listening)return;const te=_(N),X=O(te);if(X){D(Ue(X,{replace:!0}),te).catch(ro);return}c=te;const fe=l.value;hs&&ey(ku(fe.fullPath,H.delta),ri()),k(te,fe).catch(ce=>en(ce,12)?ce:en(ce,2)?(D(ce.to,te).then(w=>{en(w,20)&&!H.delta&&H.type===Eo.pop&&o.go(-1,!1)}).catch(ro),Promise.reject()):(H.delta&&o.go(-H.delta,!1),S(ce,te,fe))).then(ce=>{ce=ce||L(te,fe,!1),ce&&(H.delta&&!en(ce,8)?o.go(-H.delta,!1):H.type===Eo.pop&&en(ce,20)&&o.go(-1,!1)),T(te,fe,ce)}).catch(ro)}))}let I=Qs(),ae=Qs(),W;function S(N,J,H){V(N);const te=ae.list();return te.length?te.forEach(X=>X(N,J,H)):console.error(N),Promise.reject(N)}function q(){return W&&l.value!==gn?Promise.resolve():new Promise((N,J)=>{I.add([N,J])})}function V(N){return W||(W=!N,Q(),I.list().forEach(([J,H])=>N?H(N):J()),I.reset()),N}function be(N,J,H,te){const{scrollBehavior:X}=t;if(!hs||!X)return Promise.resolve();const fe=!H&&ty(ku(N.fullPath,0))||(te||!H)&&history.state&&history.state.scroll||null;return _e().then(()=>X(N,J,fe)).then(ce=>ce&&Xb(ce)).catch(ce=>S(ce,N,J))}const ge=N=>o.go(N);let ee;const ve=new Set,Ee={currentRoute:l,listening:!0,addRoute:g,removeRoute:f,hasRoute:v,getRoutes:m,resolve:_,options:t,push:C,replace:R,go:ge,back:()=>ge(-1),forward:()=>ge(1),beforeEach:r.add,beforeResolve:i.add,afterEach:a.add,onError:ae.add,isReady:q,install(N){const J=this;N.component("RouterLink",yn),N.component("RouterView",Op),N.config.globalProperties.$router=J,Object.defineProperty(N.config.globalProperties,"$route",{enumerable:!0,get:()=>ht(l)}),hs&&!ee&&l.value===gn&&(ee=!0,C(o.location).catch(X=>{}));const H={};for(const X in gn)H[X]=xt(()=>l.value[X]);N.provide(Jl,J),N.provide(Mp,js(H)),N.provide(sl,l);const te=N.unmount;ve.add(N),N.unmount=function(){ve.delete(N),ve.size<1&&(c=gn,F&&F(),F=null,l.value=gn,ee=!1,W=!1),te()}}};return Ee}function cs(t){return t.reduce((e,n)=>e.then(()=>n()),Promise.resolve())}function Uy(t,e){const n=[],s=[],o=[],r=Math.max(e.matched.length,t.matched.length);for(let i=0;iTs(c,a))?s.push(a):n.push(a));const l=t.matched[i];l&&(e.matched.find(c=>Ts(c,l))||o.push(l))}return[n,s,o]}const qy="modulepreload",Hy=function(t){return"/"+t},Fu={},Bi=function(e,n,s){if(!n||n.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=Hy(r),r in Fu)return;Fu[r]=!0;const i=r.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(!!s)for(let u=o.length-1;u>=0;u--){const h=o[u];if(h.href===r&&(!i||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":qy,i||(c.as="script",c.crossOrigin=""),c.href=r,document.head.appendChild(c),i)return new Promise((u,h)=>{c.addEventListener("load",u),c.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>e())},Xl="/assets/logo-023c77a1.png";var Rp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Vy(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function s(){if(this instanceof s){var o=[null];o.push.apply(o,arguments);var r=Function.bind.apply(e,o);return new r}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,o.get?o:{enumerable:!0,get:function(){return t[s]}})}),n}var Np={exports:{}};(function(t,e){(function(s,o){t.exports=o()})(typeof self<"u"?self:Rp,function(){return function(n){var s={};function o(r){if(s[r])return s[r].exports;var i=s[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=n,o.c=s,o.d=function(r,i,a){o.o(r,i)||Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:a})},o.r=function(r){Object.defineProperty(r,"__esModule",{value:!0})},o.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(i,"a",i),i},o.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},o.p="",o(o.s=0)}({"./dist/icons.json":function(n){n.exports={activity:'',airplay:'',"alert-circle":'',"alert-octagon":'',"alert-triangle":'',"align-center":'',"align-justify":'',"align-left":'',"align-right":'',anchor:'',aperture:'',archive:'',"arrow-down-circle":'',"arrow-down-left":'',"arrow-down-right":'',"arrow-down":'',"arrow-left-circle":'',"arrow-left":'',"arrow-right-circle":'',"arrow-right":'',"arrow-up-circle":'',"arrow-up-left":'',"arrow-up-right":'',"arrow-up":'',"at-sign":'',award:'',"bar-chart-2":'',"bar-chart":'',"battery-charging":'',battery:'',"bell-off":'',bell:'',bluetooth:'',bold:'',"book-open":'',book:'',bookmark:'',box:'',briefcase:'',calendar:'',"camera-off":'',camera:'',cast:'',"check-circle":'',"check-square":'',check:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',"chevrons-down":'',"chevrons-left":'',"chevrons-right":'',"chevrons-up":'',chrome:'',circle:'',clipboard:'',clock:'',"cloud-drizzle":'',"cloud-lightning":'',"cloud-off":'',"cloud-rain":'',"cloud-snow":'',cloud:'',code:'',codepen:'',codesandbox:'',coffee:'',columns:'',command:'',compass:'',copy:'',"corner-down-left":'',"corner-down-right":'',"corner-left-down":'',"corner-left-up":'',"corner-right-down":'',"corner-right-up":'',"corner-up-left":'',"corner-up-right":'',cpu:'',"credit-card":'',crop:'',crosshair:'',database:'',delete:'',disc:'',"divide-circle":'',"divide-square":'',divide:'',"dollar-sign":'',"download-cloud":'',download:'',dribbble:'',droplet:'',"edit-2":'',"edit-3":'',edit:'',"external-link":'',"eye-off":'',eye:'',facebook:'',"fast-forward":'',feather:'',figma:'',"file-minus":'',"file-plus":'',"file-text":'',file:'',film:'',filter:'',flag:'',"folder-minus":'',"folder-plus":'',folder:'',framer:'',frown:'',gift:'',"git-branch":'',"git-commit":'',"git-merge":'',"git-pull-request":'',github:'',gitlab:'',globe:'',grid:'',"hard-drive":'',hash:'',headphones:'',heart:'',"help-circle":'',hexagon:'',home:'',image:'',inbox:'',info:'',instagram:'',italic:'',key:'',layers:'',layout:'',"life-buoy":'',"link-2":'',link:'',linkedin:'',list:'',loader:'',lock:'',"log-in":'',"log-out":'',mail:'',"map-pin":'',map:'',"maximize-2":'',maximize:'',meh:'',menu:'',"message-circle":'',"message-square":'',"mic-off":'',mic:'',"minimize-2":'',minimize:'',"minus-circle":'',"minus-square":'',minus:'',monitor:'',moon:'',"more-horizontal":'',"more-vertical":'',"mouse-pointer":'',move:'',music:'',"navigation-2":'',navigation:'',octagon:'',package:'',paperclip:'',"pause-circle":'',pause:'',"pen-tool":'',percent:'',"phone-call":'',"phone-forwarded":'',"phone-incoming":'',"phone-missed":'',"phone-off":'',"phone-outgoing":'',phone:'',"pie-chart":'',"play-circle":'',play:'',"plus-circle":'',"plus-square":'',plus:'',pocket:'',power:'',printer:'',radio:'',"refresh-ccw":'',"refresh-cw":'',repeat:'',rewind:'',"rotate-ccw":'',"rotate-cw":'',rss:'',save:'',scissors:'',search:'',send:'',server:'',settings:'',"share-2":'',share:'',"shield-off":'',shield:'',"shopping-bag":'',"shopping-cart":'',shuffle:'',sidebar:'',"skip-back":'',"skip-forward":'',slack:'',slash:'',sliders:'',smartphone:'',smile:'',speaker:'',square:'',star:'',"stop-circle":'',sun:'',sunrise:'',sunset:'',table:'',tablet:'',tag:'',target:'',terminal:'',thermometer:'',"thumbs-down":'',"thumbs-up":'',"toggle-left":'',"toggle-right":'',tool:'',"trash-2":'',trash:'',trello:'',"trending-down":'',"trending-up":'',triangle:'',truck:'',tv:'',twitch:'',twitter:'',type:'',umbrella:'',underline:'',unlock:'',"upload-cloud":'',upload:'',"user-check":'',"user-minus":'',"user-plus":'',"user-x":'',user:'',users:'',"video-off":'',video:'',voicemail:'',"volume-1":'',"volume-2":'',"volume-x":'',volume:'',watch:'',"wifi-off":'',wifi:'',wind:'',"x-circle":'',"x-octagon":'',"x-square":'',x:'',youtube:'',"zap-off":'',zap:'',"zoom-in":'',"zoom-out":''}},"./node_modules/classnames/dedupe.js":function(n,s,o){var r,i;/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(){var a=function(){function l(){}l.prototype=Object.create(null);function c(_,b){for(var x=b.length,C=0;C1?arguments[1]:void 0,b=_!==void 0,x=0,C=f(h),R,O,D,y;if(b&&(_=r(_,v>2?arguments[2]:void 0,2)),C!=null&&!(m==Array&&l(C)))for(y=C.call(h),O=new m;!(D=y.next()).done;x++)d(O,x,b?a(y,_,[D.value,x],!0):D.value);else for(R=c(h.length),O=new m(R);R>x;x++)d(O,x,b?_(h[x],x):h[x]);return O.length=x,O}},"./node_modules/core-js/internals/array-includes.js":function(n,s,o){var r=o("./node_modules/core-js/internals/to-indexed-object.js"),i=o("./node_modules/core-js/internals/to-length.js"),a=o("./node_modules/core-js/internals/to-absolute-index.js");n.exports=function(l){return function(c,d,f){var p=r(c),g=i(p.length),h=a(f,g),m;if(l&&d!=d){for(;g>h;)if(m=p[h++],m!=m)return!0}else for(;g>h;h++)if((l||h in p)&&p[h]===d)return l||h||0;return!l&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(n,s,o){var r=o("./node_modules/core-js/internals/a-function.js");n.exports=function(i,a,l){if(r(i),a===void 0)return i;switch(l){case 0:return function(){return i.call(a)};case 1:return function(c){return i.call(a,c)};case 2:return function(c,d){return i.call(a,c,d)};case 3:return function(c,d,f){return i.call(a,c,d,f)}}return function(){return i.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(n,s,o){var r=o("./node_modules/core-js/internals/an-object.js");n.exports=function(i,a,l,c){try{return c?a(r(l)[0],l[1]):a(l)}catch(f){var d=i.return;throw d!==void 0&&r(d.call(i)),f}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(n,s,o){var r=o("./node_modules/core-js/internals/well-known-symbol.js"),i=r("iterator"),a=!1;try{var l=0,c={next:function(){return{done:!!l++}},return:function(){a=!0}};c[i]=function(){return this},Array.from(c,function(){throw 2})}catch{}n.exports=function(d,f){if(!f&&!a)return!1;var p=!1;try{var g={};g[i]=function(){return{next:function(){return{done:p=!0}}}},d(g)}catch{}return p}},"./node_modules/core-js/internals/classof-raw.js":function(n,s){var o={}.toString;n.exports=function(r){return o.call(r).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(n,s,o){var r=o("./node_modules/core-js/internals/classof-raw.js"),i=o("./node_modules/core-js/internals/well-known-symbol.js"),a=i("toStringTag"),l=r(function(){return arguments}())=="Arguments",c=function(d,f){try{return d[f]}catch{}};n.exports=function(d){var f,p,g;return d===void 0?"Undefined":d===null?"Null":typeof(p=c(f=Object(d),a))=="string"?p:l?r(f):(g=r(f))=="Object"&&typeof f.callee=="function"?"Arguments":g}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(n,s,o){var r=o("./node_modules/core-js/internals/has.js"),i=o("./node_modules/core-js/internals/own-keys.js"),a=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),l=o("./node_modules/core-js/internals/object-define-property.js");n.exports=function(c,d){for(var f=i(d),p=l.f,g=a.f,h=0;h",R="java"+x+":",O;for(v.style.display="none",c.appendChild(v),v.src=String(R),O=v.contentWindow.document,O.open(),O.write(b+x+C+"document.F=Object"+b+"/"+x+C),O.close(),m=O.F;_--;)delete m[g][a[_]];return m()};n.exports=Object.create||function(_,b){var x;return _!==null?(h[g]=r(_),x=new h,h[g]=null,x[p]=_):x=m(),b===void 0?x:i(x,b)},l[p]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(n,s,o){var r=o("./node_modules/core-js/internals/descriptors.js"),i=o("./node_modules/core-js/internals/object-define-property.js"),a=o("./node_modules/core-js/internals/an-object.js"),l=o("./node_modules/core-js/internals/object-keys.js");n.exports=r?Object.defineProperties:function(d,f){a(d);for(var p=l(f),g=p.length,h=0,m;g>h;)i.f(d,m=p[h++],f[m]);return d}},"./node_modules/core-js/internals/object-define-property.js":function(n,s,o){var r=o("./node_modules/core-js/internals/descriptors.js"),i=o("./node_modules/core-js/internals/ie8-dom-define.js"),a=o("./node_modules/core-js/internals/an-object.js"),l=o("./node_modules/core-js/internals/to-primitive.js"),c=Object.defineProperty;s.f=r?c:function(f,p,g){if(a(f),p=l(p,!0),a(g),i)try{return c(f,p,g)}catch{}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(f[p]=g.value),f}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(n,s,o){var r=o("./node_modules/core-js/internals/descriptors.js"),i=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js"),l=o("./node_modules/core-js/internals/to-indexed-object.js"),c=o("./node_modules/core-js/internals/to-primitive.js"),d=o("./node_modules/core-js/internals/has.js"),f=o("./node_modules/core-js/internals/ie8-dom-define.js"),p=Object.getOwnPropertyDescriptor;s.f=r?p:function(h,m){if(h=l(h),m=c(m,!0),f)try{return p(h,m)}catch{}if(d(h,m))return a(!i.f.call(h,m),h[m])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(n,s,o){var r=o("./node_modules/core-js/internals/object-keys-internal.js"),i=o("./node_modules/core-js/internals/enum-bug-keys.js"),a=i.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(c){return r(c,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(n,s){s.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(n,s,o){var r=o("./node_modules/core-js/internals/has.js"),i=o("./node_modules/core-js/internals/to-object.js"),a=o("./node_modules/core-js/internals/shared-key.js"),l=o("./node_modules/core-js/internals/correct-prototype-getter.js"),c=a("IE_PROTO"),d=Object.prototype;n.exports=l?Object.getPrototypeOf:function(f){return f=i(f),r(f,c)?f[c]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?d:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(n,s,o){var r=o("./node_modules/core-js/internals/has.js"),i=o("./node_modules/core-js/internals/to-indexed-object.js"),a=o("./node_modules/core-js/internals/array-includes.js"),l=o("./node_modules/core-js/internals/hidden-keys.js"),c=a(!1);n.exports=function(d,f){var p=i(d),g=0,h=[],m;for(m in p)!r(l,m)&&r(p,m)&&h.push(m);for(;f.length>g;)r(p,m=f[g++])&&(~c(h,m)||h.push(m));return h}},"./node_modules/core-js/internals/object-keys.js":function(n,s,o){var r=o("./node_modules/core-js/internals/object-keys-internal.js"),i=o("./node_modules/core-js/internals/enum-bug-keys.js");n.exports=Object.keys||function(l){return r(l,i)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(n,s,o){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);s.f=a?function(c){var d=i(this,c);return!!d&&d.enumerable}:r},"./node_modules/core-js/internals/object-set-prototype-of.js":function(n,s,o){var r=o("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,a={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(a,[]),i=a instanceof Array}catch{}return function(d,f){return r(d,f),i?l.call(d,f):d.__proto__=f,d}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(n,s,o){var r=o("./node_modules/core-js/internals/global.js"),i=o("./node_modules/core-js/internals/object-get-own-property-names.js"),a=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=o("./node_modules/core-js/internals/an-object.js"),c=r.Reflect;n.exports=c&&c.ownKeys||function(f){var p=i.f(l(f)),g=a.f;return g?p.concat(g(f)):p}},"./node_modules/core-js/internals/path.js":function(n,s,o){n.exports=o("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(n,s,o){var r=o("./node_modules/core-js/internals/global.js"),i=o("./node_modules/core-js/internals/shared.js"),a=o("./node_modules/core-js/internals/hide.js"),l=o("./node_modules/core-js/internals/has.js"),c=o("./node_modules/core-js/internals/set-global.js"),d=o("./node_modules/core-js/internals/function-to-string.js"),f=o("./node_modules/core-js/internals/internal-state.js"),p=f.get,g=f.enforce,h=String(d).split("toString");i("inspectSource",function(m){return d.call(m)}),(n.exports=function(m,v,_,b){var x=b?!!b.unsafe:!1,C=b?!!b.enumerable:!1,R=b?!!b.noTargetGet:!1;if(typeof _=="function"&&(typeof v=="string"&&!l(_,"name")&&a(_,"name",v),g(_).source=h.join(typeof v=="string"?v:"")),m===r){C?m[v]=_:c(v,_);return}else x?!R&&m[v]&&(C=!0):delete m[v];C?m[v]=_:a(m,v,_)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||d.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(n,s){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"./node_modules/core-js/internals/set-global.js":function(n,s,o){var r=o("./node_modules/core-js/internals/global.js"),i=o("./node_modules/core-js/internals/hide.js");n.exports=function(a,l){try{i(r,a,l)}catch{r[a]=l}return l}},"./node_modules/core-js/internals/set-to-string-tag.js":function(n,s,o){var r=o("./node_modules/core-js/internals/object-define-property.js").f,i=o("./node_modules/core-js/internals/has.js"),a=o("./node_modules/core-js/internals/well-known-symbol.js"),l=a("toStringTag");n.exports=function(c,d,f){c&&!i(c=f?c:c.prototype,l)&&r(c,l,{configurable:!0,value:d})}},"./node_modules/core-js/internals/shared-key.js":function(n,s,o){var r=o("./node_modules/core-js/internals/shared.js"),i=o("./node_modules/core-js/internals/uid.js"),a=r("keys");n.exports=function(l){return a[l]||(a[l]=i(l))}},"./node_modules/core-js/internals/shared.js":function(n,s,o){var r=o("./node_modules/core-js/internals/global.js"),i=o("./node_modules/core-js/internals/set-global.js"),a=o("./node_modules/core-js/internals/is-pure.js"),l="__core-js_shared__",c=r[l]||i(l,{});(n.exports=function(d,f){return c[d]||(c[d]=f!==void 0?f:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(n,s,o){var r=o("./node_modules/core-js/internals/to-integer.js"),i=o("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a,l,c){var d=String(i(a)),f=r(l),p=d.length,g,h;return f<0||f>=p?c?"":void 0:(g=d.charCodeAt(f),g<55296||g>56319||f+1===p||(h=d.charCodeAt(f+1))<56320||h>57343?c?d.charAt(f):g:c?d.slice(f,f+2):(g-55296<<10)+(h-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(n,s,o){var r=o("./node_modules/core-js/internals/to-integer.js"),i=Math.max,a=Math.min;n.exports=function(l,c){var d=r(l);return d<0?i(d+c,0):a(d,c)}},"./node_modules/core-js/internals/to-indexed-object.js":function(n,s,o){var r=o("./node_modules/core-js/internals/indexed-object.js"),i=o("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a){return r(i(a))}},"./node_modules/core-js/internals/to-integer.js":function(n,s){var o=Math.ceil,r=Math.floor;n.exports=function(i){return isNaN(i=+i)?0:(i>0?r:o)(i)}},"./node_modules/core-js/internals/to-length.js":function(n,s,o){var r=o("./node_modules/core-js/internals/to-integer.js"),i=Math.min;n.exports=function(a){return a>0?i(r(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(n,s,o){var r=o("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(i){return Object(r(i))}},"./node_modules/core-js/internals/to-primitive.js":function(n,s,o){var r=o("./node_modules/core-js/internals/is-object.js");n.exports=function(i,a){if(!r(i))return i;var l,c;if(a&&typeof(l=i.toString)=="function"&&!r(c=l.call(i))||typeof(l=i.valueOf)=="function"&&!r(c=l.call(i))||!a&&typeof(l=i.toString)=="function"&&!r(c=l.call(i)))return c;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(n,s){var o=0,r=Math.random();n.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++o+r).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(n,s,o){var r=o("./node_modules/core-js/internals/is-object.js"),i=o("./node_modules/core-js/internals/an-object.js");n.exports=function(a,l){if(i(a),!r(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(n,s,o){var r=o("./node_modules/core-js/internals/global.js"),i=o("./node_modules/core-js/internals/shared.js"),a=o("./node_modules/core-js/internals/uid.js"),l=o("./node_modules/core-js/internals/native-symbol.js"),c=r.Symbol,d=i("wks");n.exports=function(f){return d[f]||(d[f]=l&&c[f]||(l?c:a)("Symbol."+f))}},"./node_modules/core-js/modules/es.array.from.js":function(n,s,o){var r=o("./node_modules/core-js/internals/export.js"),i=o("./node_modules/core-js/internals/array-from.js"),a=o("./node_modules/core-js/internals/check-correctness-of-iteration.js"),l=!a(function(c){Array.from(c)});r({target:"Array",stat:!0,forced:l},{from:i})},"./node_modules/core-js/modules/es.string.iterator.js":function(n,s,o){var r=o("./node_modules/core-js/internals/string-at.js"),i=o("./node_modules/core-js/internals/internal-state.js"),a=o("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",c=i.set,d=i.getterFor(l);a(String,"String",function(f){c(this,{type:l,string:String(f),index:0})},function(){var p=d(this),g=p.string,h=p.index,m;return h>=g.length?{value:void 0,done:!0}:(m=r(g,h,!0),p.index+=m.length,{value:m,done:!1})})},"./node_modules/webpack/buildin/global.js":function(n,s){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(o=window)}n.exports=o},"./src/default-attrs.json":function(n){n.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(n,s,o){Object.defineProperty(s,"__esModule",{value:!0});var r=Object.assign||function(m){for(var v=1;v2&&arguments[2]!==void 0?arguments[2]:[];p(this,m),this.name=v,this.contents=_,this.tags=b,this.attrs=r({},d.default,{class:"feather feather-"+v})}return i(m,[{key:"toSvg",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=r({},this.attrs,_,{class:(0,l.default)(this.attrs.class,_.class)});return""+this.contents+""}},{key:"toString",value:function(){return this.contents}}]),m}();function h(m){return Object.keys(m).map(function(v){return v+'="'+m[v]+'"'}).join(" ")}s.default=g},"./src/icons.js":function(n,s,o){Object.defineProperty(s,"__esModule",{value:!0});var r=o("./src/icon.js"),i=f(r),a=o("./dist/icons.json"),l=f(a),c=o("./src/tags.json"),d=f(c);function f(p){return p&&p.__esModule?p:{default:p}}s.default=Object.keys(l.default).map(function(p){return new i.default(p,l.default[p],d.default[p])}).reduce(function(p,g){return p[g.name]=g,p},{})},"./src/index.js":function(n,s,o){var r=o("./src/icons.js"),i=f(r),a=o("./src/to-svg.js"),l=f(a),c=o("./src/replace.js"),d=f(c);function f(p){return p&&p.__esModule?p:{default:p}}n.exports={icons:i.default,toSvg:l.default,replace:d.default}},"./src/replace.js":function(n,s,o){Object.defineProperty(s,"__esModule",{value:!0});var r=Object.assign||function(h){for(var m=1;m0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var m=document.querySelectorAll("[data-feather]");Array.from(m).forEach(function(v){return p(v,h)})}function p(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=g(h),_=v["data-feather"];delete v["data-feather"];var b=c.default[_].toSvg(r({},m,v,{class:(0,a.default)(m.class,v.class)})),x=new DOMParser().parseFromString(b,"image/svg+xml"),C=x.querySelector("svg");h.parentNode.replaceChild(C,h)}function g(h){return Array.from(h.attributes).reduce(function(m,v){return m[v.name]=v.value,m},{})}s.default=f},"./src/tags.json":function(n){n.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-bouy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(n,s,o){Object.defineProperty(s,"__esModule",{value:!0});var r=o("./src/icons.js"),i=a(r);function a(c){return c&&c.__esModule?c:{default:c}}function l(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!c)throw new Error("The required `key` (icon name) parameter is missing.");if(!i.default[c])throw new Error("No icon matching '"+c+"'. See the complete list of icons at https://feathericons.com");return i.default[c].toSvg(d)}s.default=l},0:function(n,s,o){o("./node_modules/core-js/es/array/from.js"),n.exports=o("./src/index.js")}})})})(Np);var Gy=Np.exports;const ye=rs(Gy),Ky={key:0,class:"container flex flex-col sm:flex-row item-center gap-2 py-1"},Wy={class:"items-center justify-between w-full flex-row md:w-auto md:order-1"},Zy={class:"flex flex-row font-medium p-0 mt-4 space-x-8"},Yy=u("a",{href:"#",class:"hover:text-primary duration-150"},"Discussions",-1),Qy=u("a",{href:"#",class:"hover:text-primary duration-150"},"Settings",-1),Jy=u("a",{href:"#",class:"hover:text-primary duration-150"},"Extensions",-1),Xy=u("a",{href:"#",class:"hover:text-primary duration-150"},"Training",-1),e2=u("a",{href:"#",class:"hover:text-primary duration-150"},"Quantizing",-1),t2=u("a",{href:"#",class:"hover:text-primary duration-150"},"Help",-1),n2={data(){return{}},activated(){},methods:{}},Dp=Object.assign(n2,{__name:"Navigation",setup(t){return(e,n)=>e.$store.state.ready?(A(),M("div",Ky,[u("div",Wy,[u("ul",Zy,[u("li",null,[Ae(ft(yn),{to:{name:"discussions"},class:"p-2","active-class":"p-2 bg-bg-light-tone dark:bg-bg-dark-tone rounded-t-lg "},{default:Ke(()=>[Yy]),_:1})]),u("li",null,[Ae(ft(yn),{to:{name:"settings"},class:"p-2","active-class":"p-2 bg-bg-light-tone dark:bg-bg-dark-tone rounded-t-lg "},{default:Ke(()=>[Qy]),_:1})]),u("li",null,[Ae(ft(yn),{to:{name:"extensions"},class:"p-2","active-class":"p-2 bg-bg-light-tone dark:bg-bg-dark-tone rounded-t-lg "},{default:Ke(()=>[Jy]),_:1})]),u("li",null,[Ae(ft(yn),{to:{name:"training"},class:"p-2","active-class":"p-2 bg-bg-light-tone dark:bg-bg-dark-tone rounded-t-lg "},{default:Ke(()=>[Xy]),_:1})]),u("li",null,[Ae(ft(yn),{to:{name:"quantizing"},class:"p-2","active-class":"p-2 bg-bg-light-tone dark:bg-bg-dark-tone rounded-t-lg "},{default:Ke(()=>[e2]),_:1})]),u("li",null,[Ae(ft(yn),{to:{name:"help"},class:"p-2","active-class":"p-2 bg-bg-light-tone dark:bg-bg-dark-tone rounded-t-lg "},{default:Ke(()=>[t2]),_:1})])])])])):j("",!0)}});const s2={class:"top-0 shadow-lg"},o2={class:"container flex flex-col lg:flex-row item-center gap-2 py-2"},r2=u("div",{class:"flex items-center gap-3 flex-1"},[u("img",{class:"w-12 hover:scale-95 duration-150",title:"LoLLMS WebUI",src:Xl,alt:"Logo"}),u("div",{class:"flex flex-col"},[u("p",{class:"text-2xl"},"Lord of Large Language Models"),u("p",{class:"text-gray-400"},"One tool to rule them all")])],-1),i2={class:"flex gap-3 flex-1 items-center justify-end"},a2=u("a",{href:"https://github.com/ParisNeo/lollms-webui",target:"_blank"},[u("div",{class:"text-2xl hover:text-primary duration-150",title:"Visit repository page"},[u("i",{"data-feather":"github"})])],-1),l2=u("i",{"data-feather":"sun"},null,-1),c2=[l2],d2=u("i",{"data-feather":"moon"},null,-1),u2=[d2],f2=u("body",null,null,-1),h2={name:"TopBar",computed:{...k0(["isConnected"])},data(){return{codeBlockStylesheet:"",sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches}},mounted(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),_e(()=>{ye.replace()})},created(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches},methods:{themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),_e(()=>{Bi(()=>Promise.resolve({}),["assets/stackoverflow-dark-7e41bf22.css"])});return}_e(()=>{Bi(()=>Promise.resolve({}),["assets/stackoverflow-light-b5b5e2eb.css"])}),this.sunIcon.classList.add("display-none")},themeSwitch(){if(document.documentElement.classList.contains("dark")){document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"),this.userTheme=="light",this.iconToggle();return}Bi(()=>Promise.resolve({}),["assets/tokyo-night-dark-a847eb67.css"]),document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.userTheme=="dark",this.iconToggle()},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")}},components:{Navigation:Dp}},p2=Object.assign(h2,{setup(t){return(e,n)=>(A(),M(Le,null,[u("header",s2,[u("nav",o2,[Ae(ft(yn),{to:{name:"discussions"}},{default:Ke(()=>[r2]),_:1}),u("div",i2,[u("div",{title:"Connection status",class:Te(["dot",{"dot-green":e.isConnected,"dot-red":!e.isConnected}])},null,2),a2,u("div",{class:"sun text-2xl w-6 hover:text-primary duration-150",title:"Swith to Light theme",onClick:n[0]||(n[0]=s=>e.themeSwitch())},c2),u("div",{class:"moon text-2xl w-6 hover:text-primary duration-150",title:"Swith to Dark theme",onClick:n[1]||(n[1]=s=>e.themeSwitch())},u2)])]),Ae(Dp)]),f2],64))}}),g2={class:"flex flex-col h-screen font-sans bg-bg-light text-slate-950 dark:bg-bg-dark dark:text-slate-50"},m2={class:"flex overflow-hidden flex-grow"},_2={__name:"App",setup(t){return(e,n)=>(A(),M("div",g2,[Ae(p2),u("div",m2,[Ae(ft(Op),null,{default:Ke(({Component:s})=>[(A(),ot(O_,null,[(A(),ot(z_(s)))],1024))]),_:1})])]))}},Ge=(t,e)=>{const n=t.__vccOpts||t;for(const[s,o]of e)n[s]=o;return n},b2={setup(){return{}}};function y2(t,e,n,s,o,r){return A(),M("div",null," Extensions ")}const v2=Ge(b2,[["render",y2]]);var Lp={exports:{}};/* @license +*/(function(){var a=function(){function l(){}l.prototype=Object.create(null);function c(_,b){for(var x=b.length,C=0;C1?arguments[1]:void 0,b=_!==void 0,x=0,C=h(f),R,O,D,y;if(b&&(_=r(_,v>2?arguments[2]:void 0,2)),C!=null&&!(m==Array&&l(C)))for(y=C.call(f),O=new m;!(D=y.next()).done;x++)u(O,x,b?a(y,_,[D.value,x],!0):D.value);else for(R=c(f.length),O=new m(R);R>x;x++)u(O,x,b?_(f[x],x):f[x]);return O.length=x,O}},"./node_modules/core-js/internals/array-includes.js":function(n,s,o){var r=o("./node_modules/core-js/internals/to-indexed-object.js"),i=o("./node_modules/core-js/internals/to-length.js"),a=o("./node_modules/core-js/internals/to-absolute-index.js");n.exports=function(l){return function(c,u,h){var p=r(c),g=i(p.length),f=a(h,g),m;if(l&&u!=u){for(;g>f;)if(m=p[f++],m!=m)return!0}else for(;g>f;f++)if((l||f in p)&&p[f]===u)return l||f||0;return!l&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(n,s,o){var r=o("./node_modules/core-js/internals/a-function.js");n.exports=function(i,a,l){if(r(i),a===void 0)return i;switch(l){case 0:return function(){return i.call(a)};case 1:return function(c){return i.call(a,c)};case 2:return function(c,u){return i.call(a,c,u)};case 3:return function(c,u,h){return i.call(a,c,u,h)}}return function(){return i.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(n,s,o){var r=o("./node_modules/core-js/internals/an-object.js");n.exports=function(i,a,l,c){try{return c?a(r(l)[0],l[1]):a(l)}catch(h){var u=i.return;throw u!==void 0&&r(u.call(i)),h}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(n,s,o){var r=o("./node_modules/core-js/internals/well-known-symbol.js"),i=r("iterator"),a=!1;try{var l=0,c={next:function(){return{done:!!l++}},return:function(){a=!0}};c[i]=function(){return this},Array.from(c,function(){throw 2})}catch{}n.exports=function(u,h){if(!h&&!a)return!1;var p=!1;try{var g={};g[i]=function(){return{next:function(){return{done:p=!0}}}},u(g)}catch{}return p}},"./node_modules/core-js/internals/classof-raw.js":function(n,s){var o={}.toString;n.exports=function(r){return o.call(r).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(n,s,o){var r=o("./node_modules/core-js/internals/classof-raw.js"),i=o("./node_modules/core-js/internals/well-known-symbol.js"),a=i("toStringTag"),l=r(function(){return arguments}())=="Arguments",c=function(u,h){try{return u[h]}catch{}};n.exports=function(u){var h,p,g;return u===void 0?"Undefined":u===null?"Null":typeof(p=c(h=Object(u),a))=="string"?p:l?r(h):(g=r(h))=="Object"&&typeof h.callee=="function"?"Arguments":g}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(n,s,o){var r=o("./node_modules/core-js/internals/has.js"),i=o("./node_modules/core-js/internals/own-keys.js"),a=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),l=o("./node_modules/core-js/internals/object-define-property.js");n.exports=function(c,u){for(var h=i(u),p=l.f,g=a.f,f=0;f",R="java"+x+":",O;for(v.style.display="none",c.appendChild(v),v.src=String(R),O=v.contentWindow.document,O.open(),O.write(b+x+C+"document.F=Object"+b+"/"+x+C),O.close(),m=O.F;_--;)delete m[g][a[_]];return m()};n.exports=Object.create||function(_,b){var x;return _!==null?(f[g]=r(_),x=new f,f[g]=null,x[p]=_):x=m(),b===void 0?x:i(x,b)},l[p]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(n,s,o){var r=o("./node_modules/core-js/internals/descriptors.js"),i=o("./node_modules/core-js/internals/object-define-property.js"),a=o("./node_modules/core-js/internals/an-object.js"),l=o("./node_modules/core-js/internals/object-keys.js");n.exports=r?Object.defineProperties:function(u,h){a(u);for(var p=l(h),g=p.length,f=0,m;g>f;)i.f(u,m=p[f++],h[m]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(n,s,o){var r=o("./node_modules/core-js/internals/descriptors.js"),i=o("./node_modules/core-js/internals/ie8-dom-define.js"),a=o("./node_modules/core-js/internals/an-object.js"),l=o("./node_modules/core-js/internals/to-primitive.js"),c=Object.defineProperty;s.f=r?c:function(h,p,g){if(a(h),p=l(p,!0),a(g),i)try{return c(h,p,g)}catch{}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(h[p]=g.value),h}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(n,s,o){var r=o("./node_modules/core-js/internals/descriptors.js"),i=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js"),l=o("./node_modules/core-js/internals/to-indexed-object.js"),c=o("./node_modules/core-js/internals/to-primitive.js"),u=o("./node_modules/core-js/internals/has.js"),h=o("./node_modules/core-js/internals/ie8-dom-define.js"),p=Object.getOwnPropertyDescriptor;s.f=r?p:function(f,m){if(f=l(f),m=c(m,!0),h)try{return p(f,m)}catch{}if(u(f,m))return a(!i.f.call(f,m),f[m])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(n,s,o){var r=o("./node_modules/core-js/internals/object-keys-internal.js"),i=o("./node_modules/core-js/internals/enum-bug-keys.js"),a=i.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(c){return r(c,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(n,s){s.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(n,s,o){var r=o("./node_modules/core-js/internals/has.js"),i=o("./node_modules/core-js/internals/to-object.js"),a=o("./node_modules/core-js/internals/shared-key.js"),l=o("./node_modules/core-js/internals/correct-prototype-getter.js"),c=a("IE_PROTO"),u=Object.prototype;n.exports=l?Object.getPrototypeOf:function(h){return h=i(h),r(h,c)?h[c]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?u:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(n,s,o){var r=o("./node_modules/core-js/internals/has.js"),i=o("./node_modules/core-js/internals/to-indexed-object.js"),a=o("./node_modules/core-js/internals/array-includes.js"),l=o("./node_modules/core-js/internals/hidden-keys.js"),c=a(!1);n.exports=function(u,h){var p=i(u),g=0,f=[],m;for(m in p)!r(l,m)&&r(p,m)&&f.push(m);for(;h.length>g;)r(p,m=h[g++])&&(~c(f,m)||f.push(m));return f}},"./node_modules/core-js/internals/object-keys.js":function(n,s,o){var r=o("./node_modules/core-js/internals/object-keys-internal.js"),i=o("./node_modules/core-js/internals/enum-bug-keys.js");n.exports=Object.keys||function(l){return r(l,i)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(n,s,o){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);s.f=a?function(c){var u=i(this,c);return!!u&&u.enumerable}:r},"./node_modules/core-js/internals/object-set-prototype-of.js":function(n,s,o){var r=o("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,a={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(a,[]),i=a instanceof Array}catch{}return function(u,h){return r(u,h),i?l.call(u,h):u.__proto__=h,u}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(n,s,o){var r=o("./node_modules/core-js/internals/global.js"),i=o("./node_modules/core-js/internals/object-get-own-property-names.js"),a=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=o("./node_modules/core-js/internals/an-object.js"),c=r.Reflect;n.exports=c&&c.ownKeys||function(h){var p=i.f(l(h)),g=a.f;return g?p.concat(g(h)):p}},"./node_modules/core-js/internals/path.js":function(n,s,o){n.exports=o("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(n,s,o){var r=o("./node_modules/core-js/internals/global.js"),i=o("./node_modules/core-js/internals/shared.js"),a=o("./node_modules/core-js/internals/hide.js"),l=o("./node_modules/core-js/internals/has.js"),c=o("./node_modules/core-js/internals/set-global.js"),u=o("./node_modules/core-js/internals/function-to-string.js"),h=o("./node_modules/core-js/internals/internal-state.js"),p=h.get,g=h.enforce,f=String(u).split("toString");i("inspectSource",function(m){return u.call(m)}),(n.exports=function(m,v,_,b){var x=b?!!b.unsafe:!1,C=b?!!b.enumerable:!1,R=b?!!b.noTargetGet:!1;if(typeof _=="function"&&(typeof v=="string"&&!l(_,"name")&&a(_,"name",v),g(_).source=f.join(typeof v=="string"?v:"")),m===r){C?m[v]=_:c(v,_);return}else x?!R&&m[v]&&(C=!0):delete m[v];C?m[v]=_:a(m,v,_)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||u.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(n,s){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"./node_modules/core-js/internals/set-global.js":function(n,s,o){var r=o("./node_modules/core-js/internals/global.js"),i=o("./node_modules/core-js/internals/hide.js");n.exports=function(a,l){try{i(r,a,l)}catch{r[a]=l}return l}},"./node_modules/core-js/internals/set-to-string-tag.js":function(n,s,o){var r=o("./node_modules/core-js/internals/object-define-property.js").f,i=o("./node_modules/core-js/internals/has.js"),a=o("./node_modules/core-js/internals/well-known-symbol.js"),l=a("toStringTag");n.exports=function(c,u,h){c&&!i(c=h?c:c.prototype,l)&&r(c,l,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(n,s,o){var r=o("./node_modules/core-js/internals/shared.js"),i=o("./node_modules/core-js/internals/uid.js"),a=r("keys");n.exports=function(l){return a[l]||(a[l]=i(l))}},"./node_modules/core-js/internals/shared.js":function(n,s,o){var r=o("./node_modules/core-js/internals/global.js"),i=o("./node_modules/core-js/internals/set-global.js"),a=o("./node_modules/core-js/internals/is-pure.js"),l="__core-js_shared__",c=r[l]||i(l,{});(n.exports=function(u,h){return c[u]||(c[u]=h!==void 0?h:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(n,s,o){var r=o("./node_modules/core-js/internals/to-integer.js"),i=o("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a,l,c){var u=String(i(a)),h=r(l),p=u.length,g,f;return h<0||h>=p?c?"":void 0:(g=u.charCodeAt(h),g<55296||g>56319||h+1===p||(f=u.charCodeAt(h+1))<56320||f>57343?c?u.charAt(h):g:c?u.slice(h,h+2):(g-55296<<10)+(f-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(n,s,o){var r=o("./node_modules/core-js/internals/to-integer.js"),i=Math.max,a=Math.min;n.exports=function(l,c){var u=r(l);return u<0?i(u+c,0):a(u,c)}},"./node_modules/core-js/internals/to-indexed-object.js":function(n,s,o){var r=o("./node_modules/core-js/internals/indexed-object.js"),i=o("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a){return r(i(a))}},"./node_modules/core-js/internals/to-integer.js":function(n,s){var o=Math.ceil,r=Math.floor;n.exports=function(i){return isNaN(i=+i)?0:(i>0?r:o)(i)}},"./node_modules/core-js/internals/to-length.js":function(n,s,o){var r=o("./node_modules/core-js/internals/to-integer.js"),i=Math.min;n.exports=function(a){return a>0?i(r(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(n,s,o){var r=o("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(i){return Object(r(i))}},"./node_modules/core-js/internals/to-primitive.js":function(n,s,o){var r=o("./node_modules/core-js/internals/is-object.js");n.exports=function(i,a){if(!r(i))return i;var l,c;if(a&&typeof(l=i.toString)=="function"&&!r(c=l.call(i))||typeof(l=i.valueOf)=="function"&&!r(c=l.call(i))||!a&&typeof(l=i.toString)=="function"&&!r(c=l.call(i)))return c;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(n,s){var o=0,r=Math.random();n.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++o+r).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(n,s,o){var r=o("./node_modules/core-js/internals/is-object.js"),i=o("./node_modules/core-js/internals/an-object.js");n.exports=function(a,l){if(i(a),!r(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(n,s,o){var r=o("./node_modules/core-js/internals/global.js"),i=o("./node_modules/core-js/internals/shared.js"),a=o("./node_modules/core-js/internals/uid.js"),l=o("./node_modules/core-js/internals/native-symbol.js"),c=r.Symbol,u=i("wks");n.exports=function(h){return u[h]||(u[h]=l&&c[h]||(l?c:a)("Symbol."+h))}},"./node_modules/core-js/modules/es.array.from.js":function(n,s,o){var r=o("./node_modules/core-js/internals/export.js"),i=o("./node_modules/core-js/internals/array-from.js"),a=o("./node_modules/core-js/internals/check-correctness-of-iteration.js"),l=!a(function(c){Array.from(c)});r({target:"Array",stat:!0,forced:l},{from:i})},"./node_modules/core-js/modules/es.string.iterator.js":function(n,s,o){var r=o("./node_modules/core-js/internals/string-at.js"),i=o("./node_modules/core-js/internals/internal-state.js"),a=o("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",c=i.set,u=i.getterFor(l);a(String,"String",function(h){c(this,{type:l,string:String(h),index:0})},function(){var p=u(this),g=p.string,f=p.index,m;return f>=g.length?{value:void 0,done:!0}:(m=r(g,f,!0),p.index+=m.length,{value:m,done:!1})})},"./node_modules/webpack/buildin/global.js":function(n,s){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(o=window)}n.exports=o},"./src/default-attrs.json":function(n){n.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(n,s,o){Object.defineProperty(s,"__esModule",{value:!0});var r=Object.assign||function(m){for(var v=1;v2&&arguments[2]!==void 0?arguments[2]:[];p(this,m),this.name=v,this.contents=_,this.tags=b,this.attrs=r({},u.default,{class:"feather feather-"+v})}return i(m,[{key:"toSvg",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=r({},this.attrs,_,{class:(0,l.default)(this.attrs.class,_.class)});return""+this.contents+""}},{key:"toString",value:function(){return this.contents}}]),m}();function f(m){return Object.keys(m).map(function(v){return v+'="'+m[v]+'"'}).join(" ")}s.default=g},"./src/icons.js":function(n,s,o){Object.defineProperty(s,"__esModule",{value:!0});var r=o("./src/icon.js"),i=h(r),a=o("./dist/icons.json"),l=h(a),c=o("./src/tags.json"),u=h(c);function h(p){return p&&p.__esModule?p:{default:p}}s.default=Object.keys(l.default).map(function(p){return new i.default(p,l.default[p],u.default[p])}).reduce(function(p,g){return p[g.name]=g,p},{})},"./src/index.js":function(n,s,o){var r=o("./src/icons.js"),i=h(r),a=o("./src/to-svg.js"),l=h(a),c=o("./src/replace.js"),u=h(c);function h(p){return p&&p.__esModule?p:{default:p}}n.exports={icons:i.default,toSvg:l.default,replace:u.default}},"./src/replace.js":function(n,s,o){Object.defineProperty(s,"__esModule",{value:!0});var r=Object.assign||function(f){for(var m=1;m0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var m=document.querySelectorAll("[data-feather]");Array.from(m).forEach(function(v){return p(v,f)})}function p(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=g(f),_=v["data-feather"];delete v["data-feather"];var b=c.default[_].toSvg(r({},m,v,{class:(0,a.default)(m.class,v.class)})),x=new DOMParser().parseFromString(b,"image/svg+xml"),C=x.querySelector("svg");f.parentNode.replaceChild(C,f)}function g(f){return Array.from(f.attributes).reduce(function(m,v){return m[v.name]=v.value,m},{})}s.default=h},"./src/tags.json":function(n){n.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-bouy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(n,s,o){Object.defineProperty(s,"__esModule",{value:!0});var r=o("./src/icons.js"),i=a(r);function a(c){return c&&c.__esModule?c:{default:c}}function l(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!c)throw new Error("The required `key` (icon name) parameter is missing.");if(!i.default[c])throw new Error("No icon matching '"+c+"'. See the complete list of icons at https://feathericons.com");return i.default[c].toSvg(u)}s.default=l},0:function(n,s,o){o("./node_modules/core-js/es/array/from.js"),n.exports=o("./src/index.js")}})})})(Np);var Gy=Np.exports;const ye=rs(Gy),Ky={key:0,class:"container flex flex-col sm:flex-row item-center gap-2 py-1"},Wy={class:"items-center justify-between w-full flex-row md:w-auto md:order-1"},Zy={class:"flex flex-row font-medium p-0 mt-4 space-x-8"},Yy=d("a",{href:"#",class:"hover:text-primary duration-150"},"Discussions",-1),Qy=d("a",{href:"#",class:"hover:text-primary duration-150"},"Settings",-1),Jy=d("a",{href:"#",class:"hover:text-primary duration-150"},"Extensions",-1),Xy=d("a",{href:"#",class:"hover:text-primary duration-150"},"Training",-1),e2=d("a",{href:"#",class:"hover:text-primary duration-150"},"Quantizing",-1),t2=d("a",{href:"#",class:"hover:text-primary duration-150"},"Help",-1),n2={data(){return{}},activated(){},methods:{}},Dp=Object.assign(n2,{__name:"Navigation",setup(t){return(e,n)=>e.$store.state.ready?(A(),M("div",Ky,[d("div",Wy,[d("ul",Zy,[d("li",null,[Ae(ht(yn),{to:{name:"discussions"},class:"p-2","active-class":"p-2 bg-bg-light-tone dark:bg-bg-dark-tone rounded-t-lg "},{default:Ke(()=>[Yy]),_:1})]),d("li",null,[Ae(ht(yn),{to:{name:"settings"},class:"p-2","active-class":"p-2 bg-bg-light-tone dark:bg-bg-dark-tone rounded-t-lg "},{default:Ke(()=>[Qy]),_:1})]),d("li",null,[Ae(ht(yn),{to:{name:"extensions"},class:"p-2","active-class":"p-2 bg-bg-light-tone dark:bg-bg-dark-tone rounded-t-lg "},{default:Ke(()=>[Jy]),_:1})]),d("li",null,[Ae(ht(yn),{to:{name:"training"},class:"p-2","active-class":"p-2 bg-bg-light-tone dark:bg-bg-dark-tone rounded-t-lg "},{default:Ke(()=>[Xy]),_:1})]),d("li",null,[Ae(ht(yn),{to:{name:"quantizing"},class:"p-2","active-class":"p-2 bg-bg-light-tone dark:bg-bg-dark-tone rounded-t-lg "},{default:Ke(()=>[e2]),_:1})]),d("li",null,[Ae(ht(yn),{to:{name:"help"},class:"p-2","active-class":"p-2 bg-bg-light-tone dark:bg-bg-dark-tone rounded-t-lg "},{default:Ke(()=>[t2]),_:1})])])])])):z("",!0)}});const s2={class:"top-0 shadow-lg"},o2={class:"container flex flex-col lg:flex-row item-center gap-2 py-2"},r2=d("div",{class:"flex items-center gap-3 flex-1"},[d("img",{class:"w-12 hover:scale-95 duration-150",title:"LoLLMS WebUI",src:Xl,alt:"Logo"}),d("div",{class:"flex flex-col"},[d("p",{class:"text-2xl"},"Lord of Large Language Models"),d("p",{class:"text-gray-400"},"One tool to rule them all")])],-1),i2={class:"flex gap-3 flex-1 items-center justify-end"},a2=d("a",{href:"https://github.com/ParisNeo/lollms-webui",target:"_blank"},[d("div",{class:"text-2xl hover:text-primary duration-150",title:"Visit repository page"},[d("i",{"data-feather":"github"})])],-1),l2=d("i",{"data-feather":"sun"},null,-1),c2=[l2],u2=d("i",{"data-feather":"moon"},null,-1),d2=[u2],h2=d("body",null,null,-1),f2={name:"TopBar",computed:{...k0(["isConnected"])},data(){return{codeBlockStylesheet:"",sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches}},mounted(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),_e(()=>{ye.replace()})},created(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches},methods:{themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),_e(()=>{Bi(()=>Promise.resolve({}),["assets/stackoverflow-dark-7e41bf22.css"])});return}_e(()=>{Bi(()=>Promise.resolve({}),["assets/stackoverflow-light-b5b5e2eb.css"])}),this.sunIcon.classList.add("display-none")},themeSwitch(){if(document.documentElement.classList.contains("dark")){document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"),this.userTheme=="light",this.iconToggle();return}Bi(()=>Promise.resolve({}),["assets/tokyo-night-dark-a847eb67.css"]),document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.userTheme=="dark",this.iconToggle()},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")}},components:{Navigation:Dp}},p2=Object.assign(f2,{setup(t){return(e,n)=>(A(),M(Le,null,[d("header",s2,[d("nav",o2,[Ae(ht(yn),{to:{name:"discussions"}},{default:Ke(()=>[r2]),_:1}),d("div",i2,[d("div",{title:"Connection status",class:Te(["dot",{"dot-green":e.isConnected,"dot-red":!e.isConnected}])},null,2),a2,d("div",{class:"sun text-2xl w-6 hover:text-primary duration-150",title:"Swith to Light theme",onClick:n[0]||(n[0]=s=>e.themeSwitch())},c2),d("div",{class:"moon text-2xl w-6 hover:text-primary duration-150",title:"Swith to Dark theme",onClick:n[1]||(n[1]=s=>e.themeSwitch())},d2)])]),Ae(Dp)]),h2],64))}}),g2={class:"flex flex-col h-screen font-sans bg-bg-light text-slate-950 dark:bg-bg-dark dark:text-slate-50"},m2={class:"flex overflow-hidden flex-grow"},_2={__name:"App",setup(t){return(e,n)=>(A(),M("div",g2,[Ae(p2),d("div",m2,[Ae(ht(Op),null,{default:Ke(({Component:s})=>[(A(),ot(O_,null,[(A(),ot(j_(s)))],1024))]),_:1})])]))}},Ge=(t,e)=>{const n=t.__vccOpts||t;for(const[s,o]of e)n[s]=o;return n},b2={setup(){return{}}};function y2(t,e,n,s,o,r){return A(),M("div",null," Extensions ")}const v2=Ge(b2,[["render",y2]]);var Lp={exports:{}};/* @license Papa Parse v5.4.1 https://github.com/mholt/PapaParse License: MIT -*/(function(t,e){(function(n,s){t.exports=s()})(Rp,function n(){var s=typeof self<"u"?self:typeof window<"u"?window:s!==void 0?s:{},o=!s.document&&!!s.postMessage,r=s.IS_PAPA_WORKER||!1,i={},a=0,l={parse:function(y,k){var T=(k=k||{}).dynamicTyping||!1;if(D(T)&&(k.dynamicTypingFunction=T,T={}),k.dynamicTyping=T,k.transform=!!D(k.transform)&&k.transform,k.worker&&l.WORKERS_SUPPORTED){var L=function(){if(!l.WORKERS_SUPPORTED)return!1;var Q=(ae=s.URL||s.webkitURL||null,W=n.toString(),l.BLOB_URL||(l.BLOB_URL=ae.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",W,")();"],{type:"text/javascript"})))),I=new s.Worker(Q),ae,W;return I.onmessage=b,I.id=a++,i[I.id]=I}();return L.userStep=k.step,L.userChunk=k.chunk,L.userComplete=k.complete,L.userError=k.error,k.step=D(k.step),k.chunk=D(k.chunk),k.complete=D(k.complete),k.error=D(k.error),delete k.worker,void L.postMessage({input:y,config:k,workerId:L.id})}var F=null;return l.NODE_STREAM_INPUT,typeof y=="string"?(y=function(Q){return Q.charCodeAt(0)===65279?Q.slice(1):Q}(y),F=k.download?new f(k):new g(k)):y.readable===!0&&D(y.read)&&D(y.on)?F=new h(k):(s.File&&y instanceof File||y instanceof Object)&&(F=new p(k)),F.stream(y)},unparse:function(y,k){var T=!1,L=!0,F=",",Q=`\r -`,I='"',ae=I+I,W=!1,S=null,q=!1;(function(){if(typeof k=="object"){if(typeof k.delimiter!="string"||l.BAD_DELIMITERS.filter(function(ee){return k.delimiter.indexOf(ee)!==-1}).length||(F=k.delimiter),(typeof k.quotes=="boolean"||typeof k.quotes=="function"||Array.isArray(k.quotes))&&(T=k.quotes),typeof k.skipEmptyLines!="boolean"&&typeof k.skipEmptyLines!="string"||(W=k.skipEmptyLines),typeof k.newline=="string"&&(Q=k.newline),typeof k.quoteChar=="string"&&(I=k.quoteChar),typeof k.header=="boolean"&&(L=k.header),Array.isArray(k.columns)){if(k.columns.length===0)throw new Error("Option columns is empty");S=k.columns}k.escapeChar!==void 0&&(ae=k.escapeChar+I),(typeof k.escapeFormulae=="boolean"||k.escapeFormulae instanceof RegExp)&&(q=k.escapeFormulae instanceof RegExp?k.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var V=new RegExp(v(I),"g");if(typeof y=="string"&&(y=JSON.parse(y)),Array.isArray(y)){if(!y.length||Array.isArray(y[0]))return be(null,y,W);if(typeof y[0]=="object")return be(S||Object.keys(y[0]),y,W)}else if(typeof y=="object")return typeof y.data=="string"&&(y.data=JSON.parse(y.data)),Array.isArray(y.data)&&(y.fields||(y.fields=y.meta&&y.meta.fields||S),y.fields||(y.fields=Array.isArray(y.data[0])?y.fields:typeof y.data[0]=="object"?Object.keys(y.data[0]):[]),Array.isArray(y.data[0])||typeof y.data[0]=="object"||(y.data=[y.data])),be(y.fields||[],y.data||[],W);throw new Error("Unable to serialize unrecognized input");function be(ee,ve,Ee){var N="";typeof ee=="string"&&(ee=JSON.parse(ee)),typeof ve=="string"&&(ve=JSON.parse(ve));var J=Array.isArray(ee)&&0=this._config.preview;if(r)s.postMessage({results:Q,workerId:l.WORKER_ID,finished:ae});else if(D(this._config.chunk)&&!T){if(this._config.chunk(Q,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);Q=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(Q.data),this._completeResults.errors=this._completeResults.errors.concat(Q.errors),this._completeResults.meta=Q.meta),this._completed||!ae||!D(this._config.complete)||Q&&Q.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),ae||Q&&Q.meta.paused||this._nextChunk(),Q}this._halted=!0},this._sendError=function(k){D(this._config.error)?this._config.error(k):r&&this._config.error&&s.postMessage({workerId:l.WORKER_ID,error:k,finished:!1})}}function f(y){var k;(y=y||{}).chunkSize||(y.chunkSize=l.RemoteChunkSize),d.call(this,y),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(T){this._input=T,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(k=new XMLHttpRequest,this._config.withCredentials&&(k.withCredentials=this._config.withCredentials),o||(k.onload=O(this._chunkLoaded,this),k.onerror=O(this._chunkError,this)),k.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var T=this._config.downloadRequestHeaders;for(var L in T)k.setRequestHeader(L,T[L])}if(this._config.chunkSize){var F=this._start+this._config.chunkSize-1;k.setRequestHeader("Range","bytes="+this._start+"-"+F)}try{k.send(this._config.downloadRequestBody)}catch(Q){this._chunkError(Q.message)}o&&k.status===0&&this._chunkError()}},this._chunkLoaded=function(){k.readyState===4&&(k.status<200||400<=k.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:k.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(T){var L=T.getResponseHeader("Content-Range");return L===null?-1:parseInt(L.substring(L.lastIndexOf("/")+1))}(k),this.parseChunk(k.responseText)))},this._chunkError=function(T){var L=k.statusText||T;this._sendError(new Error(L))}}function p(y){var k,T;(y=y||{}).chunkSize||(y.chunkSize=l.LocalChunkSize),d.call(this,y);var L=typeof FileReader<"u";this.stream=function(F){this._input=F,T=F.slice||F.webkitSlice||F.mozSlice,L?((k=new FileReader).onload=O(this._chunkLoaded,this),k.onerror=O(this._chunkError,this)):k=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(F.target.result)},this._chunkError=function(){this._sendError(k.error)}}function g(y){var k;d.call(this,y=y||{}),this.stream=function(T){return k=T,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var T,L=this._config.chunkSize;return L?(T=k.substring(0,L),k=k.substring(L)):(T=k,k=""),this._finished=!k,this.parseChunk(T)}}}function h(y){d.call(this,y=y||{});var k=[],T=!0,L=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(F){this._input=F,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){L&&k.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),k.length?this.parseChunk(k.shift()):T=!0},this._streamData=O(function(F){try{k.push(typeof F=="string"?F:F.toString(this._config.encoding)),T&&(T=!1,this._checkIsFinished(),this.parseChunk(k.shift()))}catch(Q){this._streamError(Q)}},this),this._streamError=O(function(F){this._streamCleanUp(),this._sendError(F)},this),this._streamEnd=O(function(){this._streamCleanUp(),L=!0,this._streamData("")},this),this._streamCleanUp=O(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function m(y){var k,T,L,F=Math.pow(2,53),Q=-F,I=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,ae=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,W=this,S=0,q=0,V=!1,be=!1,ge=[],ee={data:[],errors:[],meta:{}};if(D(y.step)){var ve=y.step;y.step=function(X){if(ee=X,J())N();else{if(N(),ee.data.length===0)return;S+=X.data.length,y.preview&&S>y.preview?T.abort():(ee.data=ee.data[0],ve(ee,W))}}}function Ee(X){return y.skipEmptyLines==="greedy"?X.join("").trim()==="":X.length===1&&X[0].length===0}function N(){return ee&&L&&(te("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),L=!1),y.skipEmptyLines&&(ee.data=ee.data.filter(function(X){return!Ee(X)})),J()&&function(){if(!ee)return;function X(ce,w){D(y.transformHeader)&&(ce=y.transformHeader(ce,w)),ge.push(ce)}if(Array.isArray(ee.data[0])){for(var he=0;J()&&he=ge.length?"__parsed_extra":ge[E]),y.transform&&($=y.transform($,B)),$=H(B,$),B==="__parsed_extra"?(P[B]=P[B]||[],P[B].push($)):P[B]=$}return y.header&&(E>ge.length?te("FieldMismatch","TooManyFields","Too many fields: expected "+ge.length+" fields but parsed "+E,q+w):E=this._config.preview;if(r)s.postMessage({results:Q,workerId:l.WORKER_ID,finished:ae});else if(D(this._config.chunk)&&!T){if(this._config.chunk(Q,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);Q=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(Q.data),this._completeResults.errors=this._completeResults.errors.concat(Q.errors),this._completeResults.meta=Q.meta),this._completed||!ae||!D(this._config.complete)||Q&&Q.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),ae||Q&&Q.meta.paused||this._nextChunk(),Q}this._halted=!0},this._sendError=function(k){D(this._config.error)?this._config.error(k):r&&this._config.error&&s.postMessage({workerId:l.WORKER_ID,error:k,finished:!1})}}function h(y){var k;(y=y||{}).chunkSize||(y.chunkSize=l.RemoteChunkSize),u.call(this,y),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(T){this._input=T,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(k=new XMLHttpRequest,this._config.withCredentials&&(k.withCredentials=this._config.withCredentials),o||(k.onload=O(this._chunkLoaded,this),k.onerror=O(this._chunkError,this)),k.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var T=this._config.downloadRequestHeaders;for(var L in T)k.setRequestHeader(L,T[L])}if(this._config.chunkSize){var F=this._start+this._config.chunkSize-1;k.setRequestHeader("Range","bytes="+this._start+"-"+F)}try{k.send(this._config.downloadRequestBody)}catch(Q){this._chunkError(Q.message)}o&&k.status===0&&this._chunkError()}},this._chunkLoaded=function(){k.readyState===4&&(k.status<200||400<=k.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:k.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(T){var L=T.getResponseHeader("Content-Range");return L===null?-1:parseInt(L.substring(L.lastIndexOf("/")+1))}(k),this.parseChunk(k.responseText)))},this._chunkError=function(T){var L=k.statusText||T;this._sendError(new Error(L))}}function p(y){var k,T;(y=y||{}).chunkSize||(y.chunkSize=l.LocalChunkSize),u.call(this,y);var L=typeof FileReader<"u";this.stream=function(F){this._input=F,T=F.slice||F.webkitSlice||F.mozSlice,L?((k=new FileReader).onload=O(this._chunkLoaded,this),k.onerror=O(this._chunkError,this)):k=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(F.target.result)},this._chunkError=function(){this._sendError(k.error)}}function g(y){var k;u.call(this,y=y||{}),this.stream=function(T){return k=T,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var T,L=this._config.chunkSize;return L?(T=k.substring(0,L),k=k.substring(L)):(T=k,k=""),this._finished=!k,this.parseChunk(T)}}}function f(y){u.call(this,y=y||{});var k=[],T=!0,L=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(F){this._input=F,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){L&&k.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),k.length?this.parseChunk(k.shift()):T=!0},this._streamData=O(function(F){try{k.push(typeof F=="string"?F:F.toString(this._config.encoding)),T&&(T=!1,this._checkIsFinished(),this.parseChunk(k.shift()))}catch(Q){this._streamError(Q)}},this),this._streamError=O(function(F){this._streamCleanUp(),this._sendError(F)},this),this._streamEnd=O(function(){this._streamCleanUp(),L=!0,this._streamData("")},this),this._streamCleanUp=O(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function m(y){var k,T,L,F=Math.pow(2,53),Q=-F,I=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,ae=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,W=this,S=0,q=0,V=!1,be=!1,ge=[],ee={data:[],errors:[],meta:{}};if(D(y.step)){var ve=y.step;y.step=function(X){if(ee=X,J())N();else{if(N(),ee.data.length===0)return;S+=X.data.length,y.preview&&S>y.preview?T.abort():(ee.data=ee.data[0],ve(ee,W))}}}function Ee(X){return y.skipEmptyLines==="greedy"?X.join("").trim()==="":X.length===1&&X[0].length===0}function N(){return ee&&L&&(te("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),L=!1),y.skipEmptyLines&&(ee.data=ee.data.filter(function(X){return!Ee(X)})),J()&&function(){if(!ee)return;function X(ce,w){D(y.transformHeader)&&(ce=y.transformHeader(ce,w)),ge.push(ce)}if(Array.isArray(ee.data[0])){for(var fe=0;J()&&fe=ge.length?"__parsed_extra":ge[E]),y.transform&&($=y.transform($,B)),$=H(B,$),B==="__parsed_extra"?(P[B]=P[B]||[],P[B].push($)):P[B]=$}return y.header&&(E>ge.length?te("FieldMismatch","TooManyFields","Too many fields: expected "+ge.length+" fields but parsed "+E,q+w):E=re.length/2?`\r -`:"\r"}(X,w)),L=!1,y.delimiter)D(y.delimiter)&&(y.delimiter=y.delimiter(X),ee.meta.delimiter=y.delimiter);else{var E=function(B,$,ne,re,z){var se,U,Z,ie;z=z||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var ue=0;ue=I)return qe(!0)}else for(de=S,S++;;){if((de=V.indexOf(k,de+1))===-1)return ge||te.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:H.length,index:S}),Ce();if(de===ee-1)return Ce(V.substring(S,de).replace(ue,k));if(k!==W||V[de+1]!==W){if(k===W||de===0||V[de-1]!==W){Z!==-1&&Z=I)return qe(!0);break}te.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:H.length,index:S}),de++}}else de++}return Ce();function oe(Ye){H.push(Ye),he=S}function pe(Ye){var et=0;if(Ye!==-1){var it=V.substring(de+1,Ye);it&&it.trim()===""&&(et=it.length)}return et}function Ce(Ye){return ge||(Ye===void 0&&(Ye=V.substring(S)),X.push(Ye),S=ee,oe(X),J&&De()),qe()}function Pe(Ye){S=Ye,oe(X),X=[],ie=V.indexOf(L,S)}function qe(Ye){return{data:H,errors:te,meta:{delimiter:T,linebreak:L,aborted:q,truncated:!!Ye,cursor:he+(be||0)}}}function De(){Q(qe()),H=[],te=[]}},this.abort=function(){q=!0},this.getCharIndex=function(){return S}}function b(y){var k=y.data,T=i[k.workerId],L=!1;if(k.error)T.userError(k.error,k.file);else if(k.results&&k.results.data){var F={abort:function(){L=!0,x(k.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:C,resume:C};if(D(T.userStep)){for(var Q=0;Qt.text()).then(t=>{const{data:e}=x2.parse(t,{header:!0});console.log("Recovered data"),console.log(e),this.faqs=e}).catch(t=>{console.error("Error loading FAQs:",t)})},parseMultiline(t){return t.replace(/\n/g,"
")}}},Ip=t=>(ns("data-v-3cb88319"),t=t(),ss(),t),E2={class:"container mx-auto p-4 bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg"},C2={class:"mb-8 overflow-y-auto max-h-96 scrollbar"},A2=Ip(()=>u("h2",{class:"text-2xl font-bold mb-2"},"Frequently Asked Questions",-1)),S2={class:"list-disc pl-4"},T2={class:"text-xl font-bold mb-1"},M2=["innerHTML"],O2=Ip(()=>u("div",null,[u("h2",{class:"text-2xl font-bold mb-2"},"Contact Us"),u("p",{class:"mb-4"},"If you have any further questions or need assistance, feel free to reach out to us."),u("p",null,[we("Discord link: "),u("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:"https://discord.gg/C73K7hjy"},"https://discord.gg/C73K7hjy")])],-1)),R2={class:"mt-8"},N2=js('

Credits

This project is developed by ParisNeo With help from the community.

Check out the full list of developers here and show them some love.

',3),D2=["href"];function L2(t,e,n,s,o,r){return A(),M("div",E2,[u("div",C2,[A2,u("ul",S2,[(A(!0),M(Le,null,Qe(o.faqs,(i,a)=>(A(),M("li",{key:a},[u("h3",T2,Y(i.question),1),u("p",{class:"mb-4",innerHTML:r.parseMultiline(i.answer)},null,8,M2)]))),128))])]),O2,u("div",R2,[N2,u("p",null,[we("Check out the project on "),u("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:o.githubLink,target:"_blank",rel:"noopener noreferrer"},"GitHub",8,D2),we(".")])])])}const I2=Ge(k2,[["render",L2],["__scopeId","data-v-3cb88319"]]);function Ht(t,e=!0,n=1){const s=e?1e3:1024;if(Math.abs(t)=s&&rr.hide&&r.hide(...i)),class:"bg-primary hover:bg-primary-light active:scale-95 duration-150 text-white px-4 py-2 rounded-lg shadow-lg hover:bg-secondary-dark"}," OK ")])])])):j("",!0)}const U2=Ge(P2,[["render",j2]]),q2={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},askQuestion(t,e,n){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=n||this.DenyButtonText,new Promise(s=>{this.message=t,this.show=!0,this.resolve=s})}}},H2={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},V2={class:"relative w-full max-w-md max-h-full"},G2={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},K2=u("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[u("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),W2=u("span",{class:"sr-only"},"Close modal",-1),Z2=[K2,W2],Y2={class:"p-4 text-center"},Q2=u("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[u("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1),J2={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function X2(t,e,n,s,o,r){return o.show?(A(),M("div",H2,[u("div",V2,[u("div",G2,[u("button",{type:"button",onClick:e[0]||(e[0]=i=>r.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},Z2),u("div",Y2,[Q2,u("h3",J2,Y(o.message),1),u("button",{onClick:e[1]||(e[1]=i=>r.hide(!0)),type:"button",class:"text-white bg-red-600 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"},Y(o.ConfirmButtonText),1),u("button",{onClick:e[2]||(e[2]=i=>r.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},Y(o.DenyButtonText),1)])])])])):j("",!0)}const ev=Ge(q2,[["render",X2]]);const tv={name:"Toast",props:{},data(){return{show:!1,success:!0,message:"",toastArr:[]}},methods:{close(t){this.toastArr=this.toastArr.filter(e=>e.id!=t)},copyToClipBoard(t){navigator.clipboard.writeText(t),_e(()=>{ye.replace()})},showToast(t,e=3,n=!0){const s=parseInt((new Date().getTime()*Math.random()).toString()).toString(),o={id:s,success:n,message:t,show:!0};this.toastArr.push(o),_e(()=>{ye.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(r=>r.id!=s)},e*1e3)}},watch:{}},On=t=>(ns("data-v-3ffdabf3"),t=t(),ss(),t),nv={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},sv={class:"flex flex-row items-center w-full max-w-xs p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",role:"alert"},ov={class:"flex flex-row flex-grow items-center"},rv={key:0,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},iv=On(()=>u("i",{"data-feather":"check"},null,-1)),av=On(()=>u("span",{class:"sr-only"},"Check icon",-1)),lv=[iv,av],cv={key:1,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},dv=On(()=>u("i",{"data-feather":"x"},null,-1)),uv=On(()=>u("span",{class:"sr-only"},"Cross icon",-1)),fv=[dv,uv],hv=["title"],pv={class:"flex"},gv=["onClick"],mv=On(()=>u("span",{class:"sr-only"},"Copy message",-1)),_v=On(()=>u("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)),bv=[mv,_v],yv=["onClick"],vv=On(()=>u("span",{class:"sr-only"},"Close",-1)),wv=On(()=>u("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[u("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)),xv=[vv,wv];function kv(t,e,n,s,o,r){return A(),M("div",nv,[Ae(Ut,{name:"toastItem",tag:"div"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(o.toastArr,i=>(A(),M("div",{key:i.id,class:"relative"},[u("div",sv,[u("div",ov,[wh(t.$slots,"default",{},()=>[i.success?(A(),M("div",rv,lv)):j("",!0),i.success?j("",!0):(A(),M("div",cv,fv)),u("div",{class:"ml-3 text-sm font-normal whitespace-pre-wrap line-clamp-3",title:i.message},Y(i.message),9,hv)],!0)]),u("div",pv,[u("button",{type:"button",onClick:le(a=>r.copyToClipBoard(i.message),["stop"]),title:"Copy message",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},bv,8,gv),u("button",{type:"button",onClick:a=>r.close(i.id),title:"Close",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},xv,8,yv)])])]))),128))]),_:3})])}const ii=Ge(tv,[["render",kv],["__scopeId","data-v-3ffdabf3"]]),Cr="/assets/default_model-9e24e852.png",Ev={props:{title:String,icon:String,path:String,owner:String,owner_link:String,license:String,description:String,isInstalled:Boolean,onInstall:Function,onCancelInstall:Function,onUninstall:Function,onSelected:Function,onCopy:Function,onCopyLink:Function,selected:Boolean,model:Object,model_type:String},data(){return{progress:0,speed:0,total_size:0,downloaded_size:0,start_time:"",installing:!1,uninstalling:!1,failedToLoad:!1,fileSize:"",linkNotValid:!1}},async mounted(){_e(()=>{ye.replace()})},methods:{computedFileSize(t){return Ht(t)},async getFileSize(t){if(this.model_type!="api")try{const e=await Se.head(t);return e?e.headers["content-length"]?this.computedFileSize(e.headers["content-length"]):this.model.filesize?this.computedFileSize(this.model.filesize):"Could not be determined":this.model.filesize?this.computedFileSize(this.model.filesize):"Could not be determined"}catch(e){return console.log(e.message,"getFileSize"),this.linkNotValid=!0,"Could not be determined"}},getImgUrl(){return this.icon==="/images/default_model.png"?Cr:this.icon},defaultImg(t){t.target.src=Cr},toggleInstall(){this.getFileSize(this.model.path).then(t=>{this.fileSize=t}),this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):(this.installing=!0,this.onInstall(this))},toggleSelected(){this.getFileSize(this.model.path).then(t=>{this.fileSize=t}),this.onSelected(this)},toggleCopy(){this.onCopy(this)},toggleCopyLink(){this.onCopyLink(this)},toggleCancelInstall(){this.onCancelInstall(this)},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)},copyContentToClipboard(){console.log("asdasdas"),this.$emit("copy","this.message.content")}},computed:{speed_computed(){return Ht(this.speed)},total_size_computed(){return Ht(this.total_size)},downloaded_size_computed(){return Ht(this.downloaded_size)}},watch:{linkNotValid(){_e(()=>{ye.replace()})}}},Cv=["title"],Av={key:0,class:"flex flex-row"},Sv={class:"flex gap-3 items-center grow"},Tv=["src"],Mv={class:"font-bold font-large text-lg truncate"},Ov={key:1,class:"flex items-center flex-row gap-2 my-1"},Rv={class:"flex grow items-center"},Nv=u("i",{"data-feather":"box",class:"w-5"},null,-1),Dv=u("span",{class:"sr-only"},"Custom model / local model",-1),Lv=[Nv,Dv],Iv=u("span",{class:"sr-only"},"Remove",-1),Pv={key:2,class:"absolute z-10 -m-4 p-5 shadow-md text-center rounded-lg w-full h-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel bg-opacity-70 dark:bg-opacity-70 flex justify-center items-center"},Fv={class:"relative flex flex-col items-center justify-center flex-grow h-full"},Bv=u("div",{role:"status",class:"justify-center"},[u("svg",{"aria-hidden":"true",class:"w-24 h-24 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),u("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),u("span",{class:"sr-only"},"Loading...")],-1),$v={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},zv={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},jv={class:"flex justify-between mb-1"},Uv=u("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1),qv={class:"text-sm font-medium text-blue-700 dark:text-white"},Hv={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Vv={class:"flex justify-between mb-1"},Gv={class:"text-base font-medium text-blue-700 dark:text-white"},Kv={class:"text-sm font-medium text-blue-700 dark:text-white"},Wv={class:"flex flex-grow"},Zv={class:"flex flex-row flex-grow gap-3"},Yv={class:"p-2 text-center grow"},Qv={key:3},Jv={class:"flex flex-row items-center gap-3"},Xv=["src"],ew={class:"font-bold font-large text-lg truncate"},tw=u("div",{class:"grow"},null,-1),nw=u("div",{class:"flex-none gap-1"},null,-1),sw={class:"flex items-center flex-row-reverse gap-2 my-1"},ow=u("span",{class:"sr-only"},"Copy info",-1),rw={class:"flex flex-row items-center"},iw={key:0,class:"text-base text-red-600 flex items-center mt-1"},aw=u("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),lw=u("span",{class:"sr-only"},"Click to install",-1),cw=u("span",{class:"sr-only"},"Remove",-1),dw=["title"],uw={class:""},fw={class:"flex flex-row items-center"},hw=u("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1),pw=u("b",null,"Manual download: ",-1),gw=["href","title"],mw=u("div",{class:"grow"},null,-1),_w=u("i",{"data-feather":"clipboard",class:"w-5"},null,-1),bw=[_w],yw={class:"flex items-center"},vw=u("i",{"data-feather":"file",class:"w-5 m-1"},null,-1),ww=u("b",null,"File size: ",-1),xw={class:"flex items-center"},kw=u("i",{"data-feather":"key",class:"w-5 m-1"},null,-1),Ew=u("b",null,"License: ",-1),Cw={class:"flex items-center"},Aw=u("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),Sw=u("b",null,"Owner: ",-1),Tw=["href"],Mw=u("div",{class:"flex items-center"},[u("i",{"data-feather":"info",class:"w-5 m-1"}),u("b",null,"Description: "),u("br")],-1),Ow=["title"];function Rw(t,e,n,s,o,r){return A(),M("div",{class:Te(["relative items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",n.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[11]||(e[11]=le((...i)=>r.toggleSelected&&r.toggleSelected(...i),["stop"])),title:n.title},[n.model.isCustomModel?(A(),M("div",Av,[u("div",Sv,[u("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=i=>r.defaultImg(i)),class:"w-10 h-10 rounded-lg object-fill"},null,40,Tv),u("h3",Mv,Y(n.title),1)])])):j("",!0),n.model.isCustomModel?(A(),M("div",Ov,[u("div",Rv,[u("button",{type:"button",title:"Custom model / local model",class:"font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",onClick:e[1]||(e[1]=le(()=>{},["stop"]))},Lv),we(" Custom model ")]),u("div",null,[n.model.isInstalled?(A(),M("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=le((...i)=>r.toggleInstall&&r.toggleInstall(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[we(" Uninstall "),Iv])):j("",!0)])])):j("",!0),o.installing?(A(),M("div",Pv,[u("div",Fv,[Bv,u("div",$v,[u("div",zv,[u("div",jv,[Uv,u("span",qv,Y(Math.floor(o.progress))+"%",1)]),u("div",Hv,[u("div",{class:"bg-blue-600 h-2.5 rounded-full",style:jt({width:o.progress+"%"})},null,4)]),u("div",Vv,[u("span",Gv,"Download speed: "+Y(r.speed_computed)+"/s",1),u("span",Kv,Y(r.downloaded_size_computed)+"/"+Y(r.total_size_computed),1)])])]),u("div",Wv,[u("div",Zv,[u("div",Yv,[u("button",{onClick:e[3]||(e[3]=le((...i)=>r.toggleCancelInstall&&r.toggleCancelInstall(...i),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])])):j("",!0),n.model.isCustomModel?j("",!0):(A(),M("div",Qv,[u("div",Jv,[u("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[4]||(e[4]=i=>r.defaultImg(i)),class:Te(["w-10 h-10 rounded-lg object-fill",o.linkNotValid?"grayscale":""])},null,42,Xv),u("h3",ew,Y(n.title),1),tw,nw]),u("div",sw,[u("button",{type:"button",title:"Copy model info to clipboard",onClick:e[5]||(e[5]=le(i=>r.toggleCopy(),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[we(" Copy info "),ow]),u("div",rw,[o.linkNotValid?(A(),M("div",iw,[aw,we(" Link is not valid ")])):j("",!0)]),!n.model.isInstalled&&!o.linkNotValid?(A(),M("button",{key:0,title:"Click to install",type:"button",onClick:e[6]||(e[6]=le((...i)=>r.toggleInstall&&r.toggleInstall(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[we(" Install "),lw])):j("",!0),n.model.isInstalled?(A(),M("button",{key:1,title:"Delete file from disk",type:"button",onClick:e[7]||(e[7]=le((...i)=>r.toggleInstall&&r.toggleInstall(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[we(" Uninstall "),cw])):j("",!0)]),u("div",{class:"",title:n.model.isInstalled?n.title:"Not installed"},[u("div",uw,[u("div",fw,[hw,pw,u("a",{href:n.path,onClick:e[8]||(e[8]=le(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:o.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/ folder then refresh"}," Click here to download ",8,gw),mw,u("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[9]||(e[9]=le(i=>r.toggleCopyLink(),["stop"]))},bw)]),u("div",yw,[u("div",{class:Te(["flex flex-shrink-0 items-center",o.linkNotValid?"text-red-600":""])},[vw,ww,we(" "+Y(o.fileSize),1)],2)]),u("div",xw,[kw,Ew,we(" "+Y(n.license),1)]),u("div",Cw,[Aw,Sw,u("a",{href:n.owner_link,target:"_blank",rel:"noopener noreferrer",onClick:e[10]||(e[10]=le(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"Owner's profile"},Y(n.owner),9,Tw)])]),Mw,u("p",{class:"mx-1 opacity-80 line-clamp-3",title:n.description},Y(n.description.replace(/<\/?[^>]+>/ig," ")),9,Ow)],8,dw)]))],10,Cv)}const Nw=Ge(Ev,[["render",Rw]]),Dw={data(){return{editMode:!1,avatar:"path/to/avatar.jpg",personalityName:"Personality Name",personalityAuthor:"Author Name",personalityDescription:"Personality Description",personalityLanguage:"English",personalityCategory:"Category",disclaimer:"Disclaimer text",conditioningText:"Conditioning Text",aiPrefix:"AI Prefix",userPrefix:"User Prefix",antipromptsList:[{id:1,text:"Antiprompt 1"},{id:2,text:"Antiprompt 2"},{id:3,text:"Antiprompt 3"}]}},methods:{commitChanges(){console.log("Personality changes committed"),this.editMode=!1}}},Lw={class:"p-4"},Iw={class:"flex items-center mb-4"},Pw=["src"],Fw={class:"text-lg font-semibold"},Bw=u("strong",null,"Author:",-1),$w=u("strong",null,"Description:",-1),zw=u("strong",null,"Language:",-1),jw=u("strong",null,"Category:",-1),Uw={key:0},qw=u("strong",null,"Disclaimer:",-1),Hw=u("strong",null,"Conditioning Text:",-1),Vw=u("strong",null,"AI Prefix:",-1),Gw=u("strong",null,"User Prefix:",-1),Kw=u("strong",null,"Antiprompts:",-1);function Ww(t,e,n,s,o,r){return A(),M("div",Lw,[u("div",Iw,[u("img",{src:o.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,Pw),u("h2",Fw,Y(o.personalityName),1)]),u("p",null,[Bw,we(" "+Y(o.personalityAuthor),1)]),u("p",null,[$w,we(" "+Y(o.personalityDescription),1)]),u("p",null,[zw,we(" "+Y(o.personalityLanguage),1)]),u("p",null,[jw,we(" "+Y(o.personalityCategory),1)]),o.disclaimer?(A(),M("p",Uw,[qw,we(" "+Y(o.disclaimer),1)])):j("",!0),u("p",null,[Hw,we(" "+Y(o.conditioningText),1)]),u("p",null,[Vw,we(" "+Y(o.aiPrefix),1)]),u("p",null,[Gw,we(" "+Y(o.userPrefix),1)]),u("div",null,[Kw,u("ul",null,[(A(!0),M(Le,null,Qe(o.antipromptsList,i=>(A(),M("li",{key:i.id},Y(i.text),1))),128))])]),u("button",{onClick:e[0]||(e[0]=i=>o.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),o.editMode?(A(),M("button",{key:1,onClick:e[1]||(e[1]=(...i)=>r.commitChanges&&r.commitChanges(...i)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):j("",!0)])}const Zw=Ge(Dw,[["render",Ww]]),Jn="/assets/logo-9d653710.svg",Yw="/assets/default_user-17642e5a.svg",Qw="/",Jw={props:{personality:{},selected:Boolean,full_path:String,onTalk:Function,onSelected:Function,onMounted:Function,onReinstall:Function,onSettings:Function},data(){return{isMounted:!1,name:this.personality.name}},mounted(){this.isMounted=this.personality.isMounted,_e(()=>{ye.replace()})},computed:{selected_computed(){return this.selected}},methods:{getImgUrl(){return Qw+this.personality.avatar},defaultImg(t){t.target.src=Jn},toggleTalk(){this.onTalk(this)},toggleSelected(){this.onSelected(this)},toggleMounted(){this.onMounted(this)},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){_e(()=>{ye.replace()})}}},Xw=["title"],ex={class:"flex flex-row items-center flex-shrink-0 gap-3"},tx=["src"],nx={class:"font-bold font-large text-lg line-clamp-3"},sx=u("i",{"data-feather":"send",class:"w-5"},null,-1),ox=u("span",{class:"sr-only"},"Talk",-1),rx=[sx,ox],ix={class:"flex items-center flex-row-reverse gap-2 my-1"},ax=u("span",{class:"sr-only"},"Settings",-1),lx=u("span",{class:"sr-only"},"Reinstall personality",-1),cx=u("span",{class:"sr-only"},"Click to install",-1),dx=u("span",{class:"sr-only"},"Remove",-1),ux={class:""},fx={class:""},hx={class:"flex items-center"},px=u("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),gx=u("b",null,"Author: ",-1),mx={class:"flex items-center"},_x=u("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),bx=u("b",null,"Language: ",-1),yx={class:"flex items-center"},vx=u("i",{"data-feather":"bookmark",class:"w-5 m-1"},null,-1),wx=u("b",null,"Category: ",-1),xx=u("div",{class:"flex items-center"},[u("i",{"data-feather":"info",class:"w-5 m-1"}),u("b",null,"Description: "),u("br")],-1),kx=["title"];function Ex(t,e,n,s,o,r){return A(),M("div",{class:Te(["min-w-96 items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer active:scale-95 duration-75 select-none",r.selected_computed?"border-primary-light":"border-transparent"]),onClick:e[7]||(e[7]=le((...i)=>r.toggleSelected&&r.toggleSelected(...i),["stop"])),title:n.personality.installed?"":"Not installed"},[u("div",{class:Te(n.personality.installed?"":"opacity-50")},[u("div",ex,[u("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[0]||(e[0]=i=>r.defaultImg(i)),class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,tx),u("h3",nx,Y(n.personality.name),1),u("button",{type:"button",title:"Talk",onClick:[e[1]||(e[1]=(...i)=>r.toggleTalk&&r.toggleTalk(...i)),e[2]||(e[2]=le(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},rx)]),u("div",ix,[r.selected_computed?(A(),M("button",{key:0,type:"button",title:"Settings",onClick:e[3]||(e[3]=le((...i)=>r.toggleSettings&&r.toggleSettings(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[we(" Settings "),ax])):j("",!0),r.selected_computed?(A(),M("button",{key:1,title:"Click to Reinstall personality",type:"button",onClick:e[4]||(e[4]=le((...i)=>r.toggleReinstall&&r.toggleReinstall(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[we(" Reinstall personality "),lx])):j("",!0),o.isMounted?j("",!0):(A(),M("button",{key:2,title:"Mount personality",type:"button",onClick:e[5]||(e[5]=le((...i)=>r.toggleMounted&&r.toggleMounted(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[we(" Mount "),cx])),o.isMounted?(A(),M("button",{key:3,title:"Unmount personality",type:"button",onClick:e[6]||(e[6]=le((...i)=>r.toggleMounted&&r.toggleMounted(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[we(" Unmount "),dx])):j("",!0)]),u("div",ux,[u("div",fx,[u("div",hx,[px,gx,we(" "+Y(n.personality.author),1)]),u("div",mx,[_x,bx,we(" "+Y(n.personality.language),1)]),u("div",yx,[vx,wx,we(" "+Y(n.personality.category),1)])]),xx,u("p",{class:"mx-1 opacity-80 line-clamp-3",title:n.personality.description},Y(n.personality.description),9,kx)])],2)],10,Xw)}const Pp=Ge(Jw,[["render",Ex]]),Cx="/",Ax={props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){_e(()=>{ye.replace()})},methods:{getImgUrl(){return Cx+this.binding.icon},defaultImg(t){t.target.src=Jn},toggleSelected(){this.onSelected(this)},toggleInstall(){this.onInstall(this)},toggleReinstall(){this.onReinstall(this)},toggleReloadBinding(){this.onReloadBinding(this)},toggleSettings(){this.onSettings(this)},getStatus(){(this.binding.folder==="backend_template"||this.binding.folder==="binding_template")&&(this.isTemplate=!0)}},watch:{selected(){_e(()=>{ye.replace()})}}},Sx=["title"],Tx={class:"flex flex-row items-center gap-3"},Mx=["src"],Ox={class:"font-bold font-large text-lg truncate"},Rx=u("div",{class:"grow"},null,-1),Nx={class:"flex-none gap-1"},Dx=u("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),Lx=u("span",{class:"sr-only"},"Help",-1),Ix=[Dx,Lx],Px={class:"flex items-center flex-row-reverse gap-2 my-1"},Fx=u("span",{class:"sr-only"},"Click to install",-1),Bx=u("span",{class:"sr-only"},"Reinstall binding",-1),$x=u("span",{class:"sr-only"},"Settings",-1),zx={class:""},jx={class:""},Ux={class:"flex items-center"},qx=u("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),Hx=u("b",null,"Author: ",-1),Vx={class:"flex items-center"},Gx=u("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1),Kx=u("b",null,"Folder: ",-1),Wx={class:"flex items-center"},Zx=u("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1),Yx=u("b",null,"Version: ",-1),Qx={class:"flex items-center"},Jx=u("i",{"data-feather":"github",class:"w-5 m-1"},null,-1),Xx=u("b",null,"Link: ",-1),ek=["href"],tk=u("div",{class:"flex items-center"},[u("i",{"data-feather":"info",class:"w-5 m-1"}),u("b",null,"Description: "),u("br")],-1),nk=["title"];function sk(t,e,n,s,o,r){return A(),M("div",{class:Te(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",n.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[6]||(e[6]=le((...i)=>r.toggleSelected&&r.toggleSelected(...i),["stop"])),title:n.binding.installed?n.binding.name:"Not installed"},[u("div",null,[u("div",Tx,[u("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[0]||(e[0]=i=>r.defaultImg(i)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,Mx),u("h3",Ox,Y(n.binding.name),1),Rx,u("div",Nx,[n.selected?(A(),M("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...i)=>r.toggleReloadBinding&&r.toggleReloadBinding(...i)),e[2]||(e[2]=le(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},Ix)):j("",!0)])]),u("div",Px,[n.binding.installed?j("",!0):(A(),M("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=le((...i)=>r.toggleInstall&&r.toggleInstall(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[we(" Install "),Fx])),n.binding.installed?(A(),M("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=le((...i)=>r.toggleReinstall&&r.toggleReinstall(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[we(" Reinstall binding "),Bx])):j("",!0),n.selected?(A(),M("button",{key:2,title:"Click to open Settings",type:"button",onClick:e[5]||(e[5]=le((...i)=>r.toggleSettings&&r.toggleSettings(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[we(" Settings "),$x])):j("",!0)]),u("div",zx,[u("div",jx,[u("div",Ux,[qx,Hx,we(" "+Y(n.binding.author),1)]),u("div",Vx,[Gx,Kx,we(" "+Y(n.binding.folder),1)]),u("div",Wx,[Zx,Yx,we(" "+Y(n.binding.version),1)]),u("div",Qx,[Jx,Xx,u("a",{href:n.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},Y(n.binding.link),9,ek)])]),tk,u("p",{class:"mx-1 opacity-80 line-clamp-3",title:n.binding.description},Y(n.binding.description),9,nk)])])],10,Sx)}const ok=Ge(Ax,[["render",sk]]),Yt=Object.create(null);Yt.open="0";Yt.close="1";Yt.ping="2";Yt.pong="3";Yt.message="4";Yt.upgrade="5";Yt.noop="6";const ur=Object.create(null);Object.keys(Yt).forEach(t=>{ur[Yt[t]]=t});const rk={type:"error",data:"parser error"},ik=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ak=typeof ArrayBuffer=="function",lk=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Fp=({type:t,data:e},n,s)=>ik&&e instanceof Blob?n?s(e):Bd(e,s):ak&&(e instanceof ArrayBuffer||lk(e))?n?s(e):Bd(new Blob([e]),s):s(Yt[t]+(e||"")),Bd=(t,e)=>{const n=new FileReader;return n.onload=function(){const s=n.result.split(",")[1];e("b"+(s||""))},n.readAsDataURL(t)},$d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",no=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<$d.length;t++)no[$d.charCodeAt(t)]=t;const ck=t=>{let e=t.length*.75,n=t.length,s,o=0,r,i,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const c=new ArrayBuffer(e),d=new Uint8Array(c);for(s=0;s>4,d[o++]=(i&15)<<4|a>>2,d[o++]=(a&3)<<6|l&63;return c},dk=typeof ArrayBuffer=="function",Bp=(t,e)=>{if(typeof t!="string")return{type:"message",data:$p(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:uk(t.substring(1),e)}:ur[n]?t.length>1?{type:ur[n],data:t.substring(1)}:{type:ur[n]}:rk},uk=(t,e)=>{if(dk){const n=ck(t);return $p(n,e)}else return{base64:!0,data:t}},$p=(t,e)=>{switch(e){case"blob":return t instanceof ArrayBuffer?new Blob([t]):t;case"arraybuffer":default:return t}},zp=String.fromCharCode(30),fk=(t,e)=>{const n=t.length,s=new Array(n);let o=0;t.forEach((r,i)=>{Fp(r,!1,a=>{s[i]=a,++o===n&&e(s.join(zp))})})},hk=(t,e)=>{const n=t.split(zp),s=[];for(let o=0;otypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function Up(t,...e){return e.reduce((n,s)=>(t.hasOwnProperty(s)&&(n[s]=t[s]),n),{})}const gk=wt.setTimeout,mk=wt.clearTimeout;function ai(t,e){e.useNativeTimers?(t.setTimeoutFn=gk.bind(wt),t.clearTimeoutFn=mk.bind(wt)):(t.setTimeoutFn=wt.setTimeout.bind(wt),t.clearTimeoutFn=wt.clearTimeout.bind(wt))}const _k=1.33;function bk(t){return typeof t=="string"?yk(t):Math.ceil((t.byteLength||t.size)*_k)}function yk(t){let e=0,n=0;for(let s=0,o=t.length;s=57344?n+=3:(s++,n+=4);return n}class vk extends Error{constructor(e,n,s){super(e),this.description=n,this.context=s,this.type="TransportError"}}class qp extends Je{constructor(e){super(),this.writable=!1,ai(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,n,s){return super.emitReserved("error",new vk(e,n,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=Bp(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}}const Hp="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),ol=64,wk={};let zd=0,Vo=0,jd;function Ud(t){let e="";do e=Hp[t%ol]+e,t=Math.floor(t/ol);while(t>0);return e}function Vp(){const t=Ud(+new Date);return t!==jd?(zd=0,jd=t):t+"."+Ud(zd++)}for(;Vo{this.readyState="paused",e()};if(this.polling||!this.writable){let s=0;this.polling&&(s++,this.once("pollComplete",function(){--s||n()})),this.writable||(s++,this.once("drain",function(){--s||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};hk(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,fk(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.query||{};const n=this.opts.secure?"https":"http";let s="";this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=Vp()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(s=":"+this.opts.port);const o=Gp(e),r=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(r?"["+this.opts.hostname+"]":this.opts.hostname)+s+this.opts.path+(o.length?"?"+o:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new Kt(this.uri(),e)}doWrite(e,n){const s=this.request({method:"POST",data:e});s.on("success",n),s.on("error",(o,r)=>{this.onError("xhr post error",o,r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,s)=>{this.onError("xhr poll error",n,s)}),this.pollXhr=e}}class Kt extends Je{constructor(e,n){super(),ai(this,n),this.opts=n,this.method=n.method||"GET",this.uri=e,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const e=Up(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const n=this.xhr=new Wp(e);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let s in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(s)&&n.setRequestHeader(s,this.opts.extraHeaders[s])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(s){this.setTimeoutFn(()=>{this.onError(s)},0);return}typeof document<"u"&&(this.index=Kt.requestsCount++,Kt.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Ek,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Kt.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Kt.requestsCount=0;Kt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",qd);else if(typeof addEventListener=="function"){const t="onpagehide"in wt?"pagehide":"unload";addEventListener(t,qd,!1)}}function qd(){for(let t in Kt.requests)Kt.requests.hasOwnProperty(t)&&Kt.requests[t].abort()}const Zp=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0))(),Go=wt.WebSocket||wt.MozWebSocket,Hd=!0,Sk="arraybuffer",Vd=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Tk extends qp{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),n=this.opts.protocols,s=Vd?{}:Up(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=Hd&&!Vd?n?new Go(e,n):new Go(e):new Go(e,n,s)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||Sk,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n{const i={};try{Hd&&this.ws.send(r)}catch{}o&&Zp(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const n=this.opts.secure?"wss":"ws";let s="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(s=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=Vp()),this.supportsBinary||(e.b64=1);const o=Gp(e),r=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(r?"["+this.opts.hostname+"]":this.opts.hostname)+s+this.opts.path+(o.length?"?"+o:"")}check(){return!!Go}}const Mk={websocket:Tk,polling:Ak},Ok=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Rk=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function rl(t){const e=t,n=t.indexOf("["),s=t.indexOf("]");n!=-1&&s!=-1&&(t=t.substring(0,n)+t.substring(n,s).replace(/:/g,";")+t.substring(s,t.length));let o=Ok.exec(t||""),r={},i=14;for(;i--;)r[Rk[i]]=o[i]||"";return n!=-1&&s!=-1&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=Nk(r,r.path),r.queryKey=Dk(r,r.query),r}function Nk(t,e){const n=/\/{2,9}/g,s=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function Dk(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,o,r){o&&(n[o]=r)}),n}let Yp=class hs extends Je{constructor(e,n={}){super(),this.writeBuffer=[],e&&typeof e=="object"&&(n=e,e=null),e?(e=rl(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=rl(n.host).host),ai(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=xk(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=jp,n.transport=e,this.id&&(n.sid=this.id);const s=Object.assign({},this.opts.transportOptions[e],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new Mk[e](s)}open(){let e;if(this.opts.rememberUpgrade&&hs.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(e){let n=this.createTransport(e),s=!1;hs.priorWebsocketSuccess=!1;const o=()=>{s||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!s)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;hs.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function r(){s||(s=!0,d(),n.close(),n=null)}const i=f=>{const p=new Error("probe error: "+f);p.transport=n.name,r(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function l(){i("socket closed")}function c(f){n&&f.name!==n.name&&r()}const d=()=>{n.removeListener("open",o),n.removeListener("error",i),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",o),n.once("error",i),n.once("close",a),this.once("close",l),this.once("upgrading",c),n.open()}onOpen(){if(this.readyState="open",hs.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const n=this.upgrades.length;for(;e{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let s=0;s0&&n>this.maxPayload)return this.writeBuffer.slice(0,s);n+=2}return this.writeBuffer}write(e,n,s){return this.sendPacket("message",e,n,s),this}send(e,n,s){return this.sendPacket("message",e,n,s),this}sendPacket(e,n,s,o){if(typeof n=="function"&&(o=n,n=void 0),typeof s=="function"&&(o=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const r={type:e,data:n,options:s};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),o&&this.once("flush",o),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},s=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}onError(e){hs.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const n=[];let s=0;const o=e.length;for(;stypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Qp=Object.prototype.toString,Fk=typeof Blob=="function"||typeof Blob<"u"&&Qp.call(Blob)==="[object BlobConstructor]",Bk=typeof File=="function"||typeof File<"u"&&Qp.call(File)==="[object FileConstructor]";function ec(t){return Ik&&(t instanceof ArrayBuffer||Pk(t))||Fk&&t instanceof Blob||Bk&&t instanceof File}function fr(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,s=t.length;n=0&&t.num{delete this.acks[e];for(let i=0;i{this.io.clearTimeoutFn(r),n.apply(this,[null,...i])}}emitWithAck(e,...n){const s=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((o,r)=>{n.push((i,a)=>s?i?r(i):o(a):o(i)),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((o,...r)=>s!==this._queue[0]?void 0:(o!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...r)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Ie.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Ie.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ie.EVENT:case Ie.BINARY_EVENT:this.onevent(e);break;case Ie.ACK:case Ie.BINARY_ACK:this.onack(e);break;case Ie.DISCONNECT:this.ondisconnect();break;case Ie.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const s of n)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let s=!1;return function(...o){s||(s=!0,n.packet({type:Ie.ACK,id:e,data:o}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(n.apply(this,e.data),delete this.acks[e.id])}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ie.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let s=0;s0&&t.jitter<=1?t.jitter:0,this.attempts=0}Hs.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0};Hs.prototype.reset=function(){this.attempts=0};Hs.prototype.setMin=function(t){this.ms=t};Hs.prototype.setMax=function(t){this.max=t};Hs.prototype.setJitter=function(t){this.jitter=t};class ll extends Je{constructor(e,n){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,ai(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((s=n.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Hs({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const o=n.parser||Hk;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Yp(this.uri,this.opts);const n=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const o=Rt(n,"open",function(){s.onopen(),e&&e()}),r=Rt(n,"error",i=>{s.cleanup(),s._readyState="closed",this.emitReserved("error",i),e?e(i):s.maybeReconnectOnOpen()});if(this._timeout!==!1){const i=this._timeout;i===0&&o();const a=this.setTimeoutFn(()=>{o(),n.close(),n.emit("error",new Error("timeout"))},i);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(o),this.subs.push(r),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Rt(e,"ping",this.onping.bind(this)),Rt(e,"data",this.ondata.bind(this)),Rt(e,"error",this.onerror.bind(this)),Rt(e,"close",this.onclose.bind(this)),Rt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){Zp(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new Jp(this,e,n),this.nsps[e]=s),s}_destroy(e){const n=Object.keys(this.nsps);for(const s of n)if(this.nsps[s].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let s=0;se()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},n);this.opts.autoUnref&&s.unref(),this.subs.push(function(){clearTimeout(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Js={};function hr(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=Lk(t,e.path||"/socket.io"),s=n.source,o=n.id,r=n.path,i=Js[o]&&r in Js[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i;let l;return a?l=new ll(s,e):(Js[o]||(Js[o]=new ll(s,e)),l=Js[o]),n.query&&!e.query&&(e.query=n.queryKey),l.socket(n.path,e)}Object.assign(hr,{Manager:ll,Socket:Jp,io:hr,connect:hr});const Gk=void 0,ze=new hr(Gk);ze.onopen=()=>{console.log("WebSocket connection established.")};ze.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason)};ze.onerror=t=>{console.error("WebSocket error:",t),ze.disconnect()};const Kk={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(t=>{this.resolve=t})},hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},showDialog(t){return new Promise(e=>{this.model_path=t,this.show=!0,this.resolve=e})}}},Wk={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},Zk={class:"relative w-full max-w-md max-h-full"},Yk={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},Qk=u("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[u("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),Jk=u("span",{class:"sr-only"},"Close modal",-1),Xk=[Qk,Jk],eE={class:"p-4 text-center"},tE=u("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[u("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1),nE={class:"p-4 text-center mx-auto mb-4"},sE=u("label",{class:"mr-2"},"Model path",-1);function oE(t,e,n,s,o,r){return o.show?(A(),M("div",Wk,[u("div",Zk,[u("div",Yk,[u("button",{type:"button",onClick:e[0]||(e[0]=i=>r.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},Xk),u("div",eE,[tE,u("div",nE,[sE,me(u("input",{"onUpdate:modelValue":e[1]||(e[1]=i=>o.model_path=i),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[Re,o.model_path]])]),u("button",{onClick:e[2]||(e[2]=i=>r.hide(!0)),type:"button",class:"text-white bg-green-600 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"}," Add "),u("button",{onClick:e[3]||(e[3]=i=>r.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},"No, cancel")])])])])):j("",!0)}const rE=Ge(Kk,[["render",oE]]),iE={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){_e(()=>{ye.replace()})},methods:{hide(t){this.show=!1,this.resolve&&t&&(this.resolve(this.controls_array),this.resolve=null)},showForm(t,e,n,s){this.ConfirmButtonText=n||this.ConfirmButtonText,this.DenyButtonText=s||this.DenyButtonText;for(let o=0;o{this.controls_array=t,this.show=!0,this.title=e||this.title,this.resolve=o,console.log("show foam",this.controls_array)})}},watch:{show(){_e(()=>{ye.replace()})}}},aE={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4"},lE={class:"relative w-full max-w-md"},cE={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel duration-150 shadow-lg max-h-screen"},dE={class:"flex flex-row flex-grow items-center m-2 p-1"},uE={class:"grow flex items-center"},fE=u("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1),hE={class:"text-lg font-semibold select-none mr-2"},pE={class:"items-end"},gE=u("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[u("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),mE=u("span",{class:"sr-only"},"Close form modal",-1),_E=[gE,mE],bE={class:"flex flex-col relative no-scrollbar overflow-y-scroll p-2"},yE={class:"px-2"},vE={key:0},wE={key:0},xE={class:"text-base font-semibold"},kE={key:0,class:"relative inline-flex"},EE=["onUpdate:modelValue"],CE=u("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[u("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),AE={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},SE=["onUpdate:modelValue"],TE={key:1},ME={class:"text-base font-semibold"},OE={key:0,class:"relative inline-flex"},RE=["onUpdate:modelValue"],NE=u("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[u("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),DE={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},LE=["onUpdate:modelValue"],IE=["value","selected"],PE={key:1},FE={class:"text-base font-semibold"},BE={key:0,class:"relative inline-flex"},$E=["onUpdate:modelValue"],zE=u("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[u("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),jE={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},UE=["onUpdate:modelValue"],qE=["onUpdate:modelValue","min","max"],HE={key:2},VE={class:"mb-2 relative flex items-center gap-2"},GE={for:"default-checkbox",class:"text-base font-semibold"},KE=["onUpdate:modelValue"],WE={key:0,class:"relative inline-flex"},ZE=["onUpdate:modelValue"],YE=u("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[u("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),QE={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},JE={key:3},XE={class:"text-base font-semibold"},e5={key:0,class:"relative inline-flex"},t5=["onUpdate:modelValue"],n5=u("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[u("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),s5={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},o5=["onUpdate:modelValue"],r5=u("hr",{class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),i5={class:"flex flex-row flex-grow gap-3"},a5={class:"p-2 text-center grow"};function l5(t,e,n,s,o,r){return o.show?(A(),M("div",aE,[u("div",lE,[u("div",cE,[u("div",dE,[u("div",uE,[fE,u("h3",hE,Y(o.title),1)]),u("div",pE,[u("button",{type:"button",onClick:e[0]||(e[0]=le(i=>r.hide(!1),["stop"])),title:"Close",class:"bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},_E)])]),u("div",bE,[(A(!0),M(Le,null,Qe(o.controls_array,(i,a)=>(A(),M("div",yE,[i.type=="str"?(A(),M("div",vE,[i.options?j("",!0):(A(),M("div",wE,[u("label",{class:Te(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[u("div",xE,Y(i.name)+": ",1),i.help?(A(),M("label",kE,[me(u("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,EE),[[$t,i.isHelp]]),CE])):j("",!0)],2),i.isHelp?(A(),M("p",AE,Y(i.help),1)):j("",!0),me(u("input",{type:"text","onUpdate:modelValue":l=>i.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,SE),[[Re,i.value]])])),i.options?(A(),M("div",TE,[u("label",{class:Te(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[u("div",ME,Y(i.name)+": ",1),i.help?(A(),M("label",OE,[me(u("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,RE),[[$t,i.isHelp]]),NE])):j("",!0)],2),i.isHelp?(A(),M("p",DE,Y(i.help),1)):j("",!0),me(u("select",{"onUpdate:modelValue":l=>i.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(A(!0),M(Le,null,Qe(i.options,l=>(A(),M("option",{value:l,selected:i.value===l},Y(l),9,IE))),256))],8,LE),[[H1,i.value]])])):j("",!0)])):j("",!0),i.type=="int"||i.type=="float"?(A(),M("div",PE,[u("label",{class:Te(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[u("div",FE,Y(i.name)+": ",1),i.help?(A(),M("label",BE,[me(u("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,$E),[[$t,i.isHelp]]),zE])):j("",!0)],2),i.isHelp?(A(),M("p",jE,Y(i.help),1)):j("",!0),me(u("input",{type:"number","onUpdate:modelValue":l=>i.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,UE),[[Re,i.value]]),i.min!=null&&i.max!=null?me((A(),M("input",{key:1,type:"range","onUpdate:modelValue":l=>i.value=l,min:i.min,max:i.max,step:"0.1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,qE)),[[Re,i.value]]):j("",!0)])):j("",!0),i.type=="bool"?(A(),M("div",HE,[u("div",VE,[u("label",GE,Y(i.name)+": ",1),me(u("input",{type:"checkbox","onUpdate:modelValue":l=>i.value=l,class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"},null,8,KE),[[$t,i.value]]),i.help?(A(),M("label",WE,[me(u("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,ZE),[[$t,i.isHelp]]),YE])):j("",!0)]),i.isHelp?(A(),M("p",QE,Y(i.help),1)):j("",!0)])):j("",!0),i.type=="list"?(A(),M("div",JE,[u("label",{class:Te(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[u("div",XE,Y(i.name)+": ",1),i.help?(A(),M("label",e5,[me(u("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,t5),[[$t,i.isHelp]]),n5])):j("",!0)],2),i.isHelp?(A(),M("p",s5,Y(i.help),1)):j("",!0),me(u("input",{type:"text","onUpdate:modelValue":l=>i.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter comma separated values"},null,8,o5),[[Re,i.value]])])):j("",!0),r5]))),256)),u("div",i5,[u("div",a5,[u("button",{onClick:e[1]||(e[1]=le(i=>r.hide(!0),["stop"])),type:"button",class:"mr-2 text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},Y(o.ConfirmButtonText),1),u("button",{onClick:e[2]||(e[2]=le(i=>r.hide(!1),["stop"])),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},Y(o.DenyButtonText),1)])])])])])])):j("",!0)}const Xp=Ge(iE,[["render",l5]]);const c5="/";Se.defaults.baseURL="/";const d5={components:{AddModelDialog:rE,MessageBox:U2,YesNoDialog:ev,ModelEntry:Nw,PersonalityViewer:Zw,Toast:ii,PersonalityEntry:Pp,BindingEntry:ok,UniversalForm:Xp},data(){return{loading_text:"",personality_language:null,personality_category:null,addModelDialogVisibility:!1,modelPath:"",personalitiesFiltered:[],modelsFiltered:[],collapsedArr:[],all_collapsed:!0,minconf_collapsed:!0,bec_collapsed:!0,mzc_collapsed:!0,mzdc_collapsed:!0,pzc_collapsed:!0,bzc_collapsed:!0,pc_collapsed:!0,mc_collapsed:!0,sc_collapsed:!0,mzl_collapsed:!1,pzl_collapsed:!1,bzl_collapsed:!1,persLangArr:[],persCatgArr:[],persArr:[],langArr:[],showConfirmation:!1,showToast:!1,isLoading:!1,settingsChanged:!1,isModelSelected:!1,isMounted:!1,bUrl:c5,searchPersonality:"",searchModel:"",searchPersonalityTimer:{},searchPersonalityTimerInterval:1500,searchModelTimerInterval:1500,searchPersonalityInProgress:!1,searchModelInProgress:!1,addModel:{},modelDownlaodInProgress:!1,uploadData:[]}},async created(){ze.on("loading_text",this.on_loading_text)},methods:{async update_software(){console.log("Posting");const t=await this.api_get_req("update_software");console.log("Posting done"),t.status?this.$refs.toast.showToast("Success!",4,!0):this.$refs.toast.showToast("Failure!",4,!1)},on_loading_text(t){console.log("Loading text",t),this.loading_text=t},async constructor(){for(this.isLoading=!0,_e(()=>{ye.replace()});this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));this.configFile.model_name&&(this.isModelSelected=!0),this.persLangArr=await this.api_get_req("list_personalities_languages"),this.persCatgArr=await this.api_get_req("list_personalities_categories"),this.persArr=await this.api_get_req("list_personalities"),this.langArr=await this.api_get_req("list_languages"),this.bindingsArr.sort((t,e)=>t.name.localeCompare(e.name)),this.modelsArr.sort(),this.persLangArr.sort(),this.persCatgArr.sort(),this.persArr.sort(),this.langArr.sort(),this.personality_language=this.configFile.personality_language,this.personality_category=this.configFile.personality_category,this.personalitiesFiltered=this.personalities.filter(t=>t.category===this.configFile.personality_category&&t.language===this.configFile.personality_language),this.personalitiesFiltered.sort(),this.modelsFiltered=this.models,this.bindingsArr.sort((t,e)=>t.name.localeCompare(e.name)),this.isLoading=!1,this.isMounted=!0},async open_mzl(){this.mzl_collapsed=!this.mzl_collapsed,console.log("Fetching models")},async getVramUsage(){await this.api_get_req("vram_usage")},async progressListener(t){if(console.log("received something"),t.status==="progress"){if(this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(s=>s.model.path==t.model_url&&s.model.title==t.model_name&&this.configFile.binding_name==t.binding_folder),n=this.models[e];n&&(console.log("model entry",n),n.installing=!0,n.progress=t.progress,console.log(`Progress = ${t.progress}`),t.progress>=100&&(n.installing=!1,n.isInstalled=!0))}}else if(t.status==="succeeded"){if(console.log("Received succeeded"),console.log("Installed successfully"),this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(s=>s.model.path==t.model_url&&s.model.title==t.model_name&&this.configFile.binding_name==t.binding_folder),n=this.models[e];n&&(n.installing=!1,n.isInstalled=!0)}this.$refs.toast.showToast(`Model: +`);var S=0,q=!1;this.parse=function(V,be,ge){if(typeof V!="string")throw new Error("Input must be a string");var ee=V.length,ve=T.length,Ee=L.length,N=F.length,J=D(Q),H=[],te=[],X=[],fe=S=0;if(!V)return qe();if(y.header&&!be){var ce=V.split(L)[0].split(T),w=[],E={},P=!1;for(var B in ce){var $=ce[B];D(y.transformHeader)&&($=y.transformHeader($,B));var ne=$,re=E[$]||0;for(0=I)return qe(!0)}else for(ue=S,S++;;){if((ue=V.indexOf(k,ue+1))===-1)return ge||te.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:H.length,index:S}),Ce();if(ue===ee-1)return Ce(V.substring(S,ue).replace(de,k));if(k!==W||V[ue+1]!==W){if(k===W||ue===0||V[ue-1]!==W){Z!==-1&&Z=I)return qe(!0);break}te.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:H.length,index:S}),ue++}}else ue++}return Ce();function oe(Ye){H.push(Ye),fe=S}function pe(Ye){var et=0;if(Ye!==-1){var it=V.substring(ue+1,Ye);it&&it.trim()===""&&(et=it.length)}return et}function Ce(Ye){return ge||(Ye===void 0&&(Ye=V.substring(S)),X.push(Ye),S=ee,oe(X),J&&De()),qe()}function Pe(Ye){S=Ye,oe(X),X=[],ie=V.indexOf(L,S)}function qe(Ye){return{data:H,errors:te,meta:{delimiter:T,linebreak:L,aborted:q,truncated:!!Ye,cursor:fe+(be||0)}}}function De(){Q(qe()),H=[],te=[]}},this.abort=function(){q=!0},this.getCharIndex=function(){return S}}function b(y){var k=y.data,T=i[k.workerId],L=!1;if(k.error)T.userError(k.error,k.file);else if(k.results&&k.results.data){var F={abort:function(){L=!0,x(k.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:C,resume:C};if(D(T.userStep)){for(var Q=0;Qt.text()).then(t=>{const{data:e}=x2.parse(t,{header:!0});console.log("Recovered data"),console.log(e),this.faqs=e}).catch(t=>{console.error("Error loading FAQs:",t)})},parseMultiline(t){return t.replace(/\n/g,"
")}}},Ip=t=>(ns("data-v-3cb88319"),t=t(),ss(),t),E2={class:"container mx-auto p-4 bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg"},C2={class:"mb-8 overflow-y-auto max-h-96 scrollbar"},A2=Ip(()=>d("h2",{class:"text-2xl font-bold mb-2"},"Frequently Asked Questions",-1)),S2={class:"list-disc pl-4"},T2={class:"text-xl font-bold mb-1"},M2=["innerHTML"],O2=Ip(()=>d("div",null,[d("h2",{class:"text-2xl font-bold mb-2"},"Contact Us"),d("p",{class:"mb-4"},"If you have any further questions or need assistance, feel free to reach out to us."),d("p",null,[we("Discord link: "),d("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:"https://discord.gg/C73K7hjy"},"https://discord.gg/C73K7hjy")])],-1)),R2={class:"mt-8"},N2=zs('

Credits

This project is developed by ParisNeo With help from the community.

Check out the full list of developers here and show them some love.

',3),D2=["href"];function L2(t,e,n,s,o,r){return A(),M("div",E2,[d("div",C2,[A2,d("ul",S2,[(A(!0),M(Le,null,Qe(o.faqs,(i,a)=>(A(),M("li",{key:a},[d("h3",T2,Y(i.question),1),d("p",{class:"mb-4",innerHTML:r.parseMultiline(i.answer)},null,8,M2)]))),128))])]),O2,d("div",R2,[N2,d("p",null,[we("Check out the project on "),d("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:o.githubLink,target:"_blank",rel:"noopener noreferrer"},"GitHub",8,D2),we(".")])])])}const I2=Ge(k2,[["render",L2],["__scopeId","data-v-3cb88319"]]);function Ht(t,e=!0,n=1){const s=e?1e3:1024;if(Math.abs(t)=s&&rr.hide&&r.hide(...i)),class:"bg-primary hover:bg-primary-light active:scale-95 duration-150 text-white px-4 py-2 rounded-lg shadow-lg hover:bg-secondary-dark"}," OK ")])])])):z("",!0)}const U2=Ge(P2,[["render",z2]]),q2={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},askQuestion(t,e,n){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=n||this.DenyButtonText,new Promise(s=>{this.message=t,this.show=!0,this.resolve=s})}}},H2={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},V2={class:"relative w-full max-w-md max-h-full"},G2={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},K2=d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[d("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),W2=d("span",{class:"sr-only"},"Close modal",-1),Z2=[K2,W2],Y2={class:"p-4 text-center"},Q2=d("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[d("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1),J2={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function X2(t,e,n,s,o,r){return o.show?(A(),M("div",H2,[d("div",V2,[d("div",G2,[d("button",{type:"button",onClick:e[0]||(e[0]=i=>r.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},Z2),d("div",Y2,[Q2,d("h3",J2,Y(o.message),1),d("button",{onClick:e[1]||(e[1]=i=>r.hide(!0)),type:"button",class:"text-white bg-red-600 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"},Y(o.ConfirmButtonText),1),d("button",{onClick:e[2]||(e[2]=i=>r.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},Y(o.DenyButtonText),1)])])])])):z("",!0)}const ev=Ge(q2,[["render",X2]]);const tv={name:"Toast",props:{},data(){return{show:!1,success:!0,message:"",toastArr:[]}},methods:{close(t){this.toastArr=this.toastArr.filter(e=>e.id!=t)},copyToClipBoard(t){navigator.clipboard.writeText(t),_e(()=>{ye.replace()})},showToast(t,e=3,n=!0){const s=parseInt((new Date().getTime()*Math.random()).toString()).toString(),o={id:s,success:n,message:t,show:!0};this.toastArr.push(o),_e(()=>{ye.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(r=>r.id!=s)},e*1e3)}},watch:{}},On=t=>(ns("data-v-3ffdabf3"),t=t(),ss(),t),nv={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},sv={class:"flex flex-row items-center w-full max-w-xs p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",role:"alert"},ov={class:"flex flex-row flex-grow items-center"},rv={key:0,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},iv=On(()=>d("i",{"data-feather":"check"},null,-1)),av=On(()=>d("span",{class:"sr-only"},"Check icon",-1)),lv=[iv,av],cv={key:1,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},uv=On(()=>d("i",{"data-feather":"x"},null,-1)),dv=On(()=>d("span",{class:"sr-only"},"Cross icon",-1)),hv=[uv,dv],fv=["title"],pv={class:"flex"},gv=["onClick"],mv=On(()=>d("span",{class:"sr-only"},"Copy message",-1)),_v=On(()=>d("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)),bv=[mv,_v],yv=["onClick"],vv=On(()=>d("span",{class:"sr-only"},"Close",-1)),wv=On(()=>d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[d("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)),xv=[vv,wv];function kv(t,e,n,s,o,r){return A(),M("div",nv,[Ae(Ut,{name:"toastItem",tag:"div"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(o.toastArr,i=>(A(),M("div",{key:i.id,class:"relative"},[d("div",sv,[d("div",ov,[wf(t.$slots,"default",{},()=>[i.success?(A(),M("div",rv,lv)):z("",!0),i.success?z("",!0):(A(),M("div",cv,hv)),d("div",{class:"ml-3 text-sm font-normal whitespace-pre-wrap line-clamp-3",title:i.message},Y(i.message),9,fv)],!0)]),d("div",pv,[d("button",{type:"button",onClick:le(a=>r.copyToClipBoard(i.message),["stop"]),title:"Copy message",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},bv,8,gv),d("button",{type:"button",onClick:a=>r.close(i.id),title:"Close",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},xv,8,yv)])])]))),128))]),_:3})])}const ii=Ge(tv,[["render",kv],["__scopeId","data-v-3ffdabf3"]]),Cr="/assets/default_model-9e24e852.png",Ev={props:{title:String,icon:String,path:String,owner:String,owner_link:String,license:String,description:String,isInstalled:Boolean,onInstall:Function,onCancelInstall:Function,onUninstall:Function,onSelected:Function,onCopy:Function,onCopyLink:Function,selected:Boolean,model:Object,model_type:String},data(){return{progress:0,speed:0,total_size:0,downloaded_size:0,start_time:"",installing:!1,uninstalling:!1,failedToLoad:!1,fileSize:"",linkNotValid:!1}},async mounted(){_e(()=>{ye.replace()})},methods:{computedFileSize(t){return Ht(t)},async getFileSize(t){if(this.model_type!="api")try{const e=await Se.head(t);return e?e.headers["content-length"]?this.computedFileSize(e.headers["content-length"]):this.model.filesize?this.computedFileSize(this.model.filesize):"Could not be determined":this.model.filesize?this.computedFileSize(this.model.filesize):"Could not be determined"}catch(e){return console.log(e.message,"getFileSize"),this.linkNotValid=!0,"Could not be determined"}},getImgUrl(){return this.icon==="/images/default_model.png"?Cr:this.icon},defaultImg(t){t.target.src=Cr},toggleInstall(){this.getFileSize(this.model.path).then(t=>{this.fileSize=t}),this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):(this.installing=!0,this.onInstall(this))},toggleSelected(){this.getFileSize(this.model.path).then(t=>{this.fileSize=t}),this.onSelected(this)},toggleCopy(){this.onCopy(this)},toggleCopyLink(){this.onCopyLink(this)},toggleCancelInstall(){this.onCancelInstall(this)},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)},copyContentToClipboard(){console.log("asdasdas"),this.$emit("copy","this.message.content")}},computed:{speed_computed(){return Ht(this.speed)},total_size_computed(){return Ht(this.total_size)},downloaded_size_computed(){return Ht(this.downloaded_size)}},watch:{linkNotValid(){_e(()=>{ye.replace()})}}},Cv=["title"],Av={key:0,class:"flex flex-row"},Sv={class:"flex gap-3 items-center grow"},Tv=["src"],Mv={class:"font-bold font-large text-lg truncate"},Ov={key:1,class:"flex items-center flex-row gap-2 my-1"},Rv={class:"flex grow items-center"},Nv=d("i",{"data-feather":"box",class:"w-5"},null,-1),Dv=d("span",{class:"sr-only"},"Custom model / local model",-1),Lv=[Nv,Dv],Iv=d("span",{class:"sr-only"},"Remove",-1),Pv={key:2,class:"absolute z-10 -m-4 p-5 shadow-md text-center rounded-lg w-full h-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel bg-opacity-70 dark:bg-opacity-70 flex justify-center items-center"},Fv={class:"relative flex flex-col items-center justify-center flex-grow h-full"},Bv=d("div",{role:"status",class:"justify-center"},[d("svg",{"aria-hidden":"true",class:"w-24 h-24 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[d("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),d("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),d("span",{class:"sr-only"},"Loading...")],-1),$v={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},jv={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},zv={class:"flex justify-between mb-1"},Uv=d("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1),qv={class:"text-sm font-medium text-blue-700 dark:text-white"},Hv={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Vv={class:"flex justify-between mb-1"},Gv={class:"text-base font-medium text-blue-700 dark:text-white"},Kv={class:"text-sm font-medium text-blue-700 dark:text-white"},Wv={class:"flex flex-grow"},Zv={class:"flex flex-row flex-grow gap-3"},Yv={class:"p-2 text-center grow"},Qv={key:3},Jv={class:"flex flex-row items-center gap-3"},Xv=["src"],ew={class:"font-bold font-large text-lg truncate"},tw=d("div",{class:"grow"},null,-1),nw=d("div",{class:"flex-none gap-1"},null,-1),sw={class:"flex items-center flex-row-reverse gap-2 my-1"},ow=d("span",{class:"sr-only"},"Copy info",-1),rw={class:"flex flex-row items-center"},iw={key:0,class:"text-base text-red-600 flex items-center mt-1"},aw=d("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),lw=d("span",{class:"sr-only"},"Click to install",-1),cw=d("span",{class:"sr-only"},"Remove",-1),uw=["title"],dw={class:""},hw={class:"flex flex-row items-center"},fw=d("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1),pw=d("b",null,"Manual download: ",-1),gw=["href","title"],mw=d("div",{class:"grow"},null,-1),_w=d("i",{"data-feather":"clipboard",class:"w-5"},null,-1),bw=[_w],yw={class:"flex items-center"},vw=d("i",{"data-feather":"file",class:"w-5 m-1"},null,-1),ww=d("b",null,"File size: ",-1),xw={class:"flex items-center"},kw=d("i",{"data-feather":"key",class:"w-5 m-1"},null,-1),Ew=d("b",null,"License: ",-1),Cw={class:"flex items-center"},Aw=d("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),Sw=d("b",null,"Owner: ",-1),Tw=["href"],Mw=d("div",{class:"flex items-center"},[d("i",{"data-feather":"info",class:"w-5 m-1"}),d("b",null,"Description: "),d("br")],-1),Ow=["title"];function Rw(t,e,n,s,o,r){return A(),M("div",{class:Te(["relative items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",n.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[11]||(e[11]=le((...i)=>r.toggleSelected&&r.toggleSelected(...i),["stop"])),title:n.title},[n.model.isCustomModel?(A(),M("div",Av,[d("div",Sv,[d("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=i=>r.defaultImg(i)),class:"w-10 h-10 rounded-lg object-fill"},null,40,Tv),d("h3",Mv,Y(n.title),1)])])):z("",!0),n.model.isCustomModel?(A(),M("div",Ov,[d("div",Rv,[d("button",{type:"button",title:"Custom model / local model",class:"font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",onClick:e[1]||(e[1]=le(()=>{},["stop"]))},Lv),we(" Custom model ")]),d("div",null,[n.model.isInstalled?(A(),M("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=le((...i)=>r.toggleInstall&&r.toggleInstall(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[we(" Uninstall "),Iv])):z("",!0)])])):z("",!0),o.installing?(A(),M("div",Pv,[d("div",Fv,[Bv,d("div",$v,[d("div",jv,[d("div",zv,[Uv,d("span",qv,Y(Math.floor(o.progress))+"%",1)]),d("div",Hv,[d("div",{class:"bg-blue-600 h-2.5 rounded-full",style:zt({width:o.progress+"%"})},null,4)]),d("div",Vv,[d("span",Gv,"Download speed: "+Y(r.speed_computed)+"/s",1),d("span",Kv,Y(r.downloaded_size_computed)+"/"+Y(r.total_size_computed),1)])])]),d("div",Wv,[d("div",Zv,[d("div",Yv,[d("button",{onClick:e[3]||(e[3]=le((...i)=>r.toggleCancelInstall&&r.toggleCancelInstall(...i),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])])):z("",!0),n.model.isCustomModel?z("",!0):(A(),M("div",Qv,[d("div",Jv,[d("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[4]||(e[4]=i=>r.defaultImg(i)),class:Te(["w-10 h-10 rounded-lg object-fill",o.linkNotValid?"grayscale":""])},null,42,Xv),d("h3",ew,Y(n.title),1),tw,nw]),d("div",sw,[d("button",{type:"button",title:"Copy model info to clipboard",onClick:e[5]||(e[5]=le(i=>r.toggleCopy(),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[we(" Copy info "),ow]),d("div",rw,[o.linkNotValid?(A(),M("div",iw,[aw,we(" Link is not valid ")])):z("",!0)]),!n.model.isInstalled&&!o.linkNotValid?(A(),M("button",{key:0,title:"Click to install",type:"button",onClick:e[6]||(e[6]=le((...i)=>r.toggleInstall&&r.toggleInstall(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[we(" Install "),lw])):z("",!0),n.model.isInstalled?(A(),M("button",{key:1,title:"Delete file from disk",type:"button",onClick:e[7]||(e[7]=le((...i)=>r.toggleInstall&&r.toggleInstall(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[we(" Uninstall "),cw])):z("",!0)]),d("div",{class:"",title:n.model.isInstalled?n.title:"Not installed"},[d("div",dw,[d("div",hw,[fw,pw,d("a",{href:n.path,onClick:e[8]||(e[8]=le(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:o.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/ folder then refresh"}," Click here to download ",8,gw),mw,d("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[9]||(e[9]=le(i=>r.toggleCopyLink(),["stop"]))},bw)]),d("div",yw,[d("div",{class:Te(["flex flex-shrink-0 items-center",o.linkNotValid?"text-red-600":""])},[vw,ww,we(" "+Y(o.fileSize),1)],2)]),d("div",xw,[kw,Ew,we(" "+Y(n.license),1)]),d("div",Cw,[Aw,Sw,d("a",{href:n.owner_link,target:"_blank",rel:"noopener noreferrer",onClick:e[10]||(e[10]=le(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"Owner's profile"},Y(n.owner),9,Tw)])]),Mw,d("p",{class:"mx-1 opacity-80 line-clamp-3",title:n.description},Y(n.description.replace(/<\/?[^>]+>/ig," ")),9,Ow)],8,uw)]))],10,Cv)}const Nw=Ge(Ev,[["render",Rw]]),Dw={data(){return{editMode:!1,avatar:"path/to/avatar.jpg",personalityName:"Personality Name",personalityAuthor:"Author Name",personalityDescription:"Personality Description",personalityLanguage:"English",personalityCategory:"Category",disclaimer:"Disclaimer text",conditioningText:"Conditioning Text",aiPrefix:"AI Prefix",userPrefix:"User Prefix",antipromptsList:[{id:1,text:"Antiprompt 1"},{id:2,text:"Antiprompt 2"},{id:3,text:"Antiprompt 3"}]}},methods:{commitChanges(){console.log("Personality changes committed"),this.editMode=!1}}},Lw={class:"p-4"},Iw={class:"flex items-center mb-4"},Pw=["src"],Fw={class:"text-lg font-semibold"},Bw=d("strong",null,"Author:",-1),$w=d("strong",null,"Description:",-1),jw=d("strong",null,"Language:",-1),zw=d("strong",null,"Category:",-1),Uw={key:0},qw=d("strong",null,"Disclaimer:",-1),Hw=d("strong",null,"Conditioning Text:",-1),Vw=d("strong",null,"AI Prefix:",-1),Gw=d("strong",null,"User Prefix:",-1),Kw=d("strong",null,"Antiprompts:",-1);function Ww(t,e,n,s,o,r){return A(),M("div",Lw,[d("div",Iw,[d("img",{src:o.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,Pw),d("h2",Fw,Y(o.personalityName),1)]),d("p",null,[Bw,we(" "+Y(o.personalityAuthor),1)]),d("p",null,[$w,we(" "+Y(o.personalityDescription),1)]),d("p",null,[jw,we(" "+Y(o.personalityLanguage),1)]),d("p",null,[zw,we(" "+Y(o.personalityCategory),1)]),o.disclaimer?(A(),M("p",Uw,[qw,we(" "+Y(o.disclaimer),1)])):z("",!0),d("p",null,[Hw,we(" "+Y(o.conditioningText),1)]),d("p",null,[Vw,we(" "+Y(o.aiPrefix),1)]),d("p",null,[Gw,we(" "+Y(o.userPrefix),1)]),d("div",null,[Kw,d("ul",null,[(A(!0),M(Le,null,Qe(o.antipromptsList,i=>(A(),M("li",{key:i.id},Y(i.text),1))),128))])]),d("button",{onClick:e[0]||(e[0]=i=>o.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),o.editMode?(A(),M("button",{key:1,onClick:e[1]||(e[1]=(...i)=>r.commitChanges&&r.commitChanges(...i)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):z("",!0)])}const Zw=Ge(Dw,[["render",Ww]]),Jn="/assets/logo-9d653710.svg",Yw="/assets/default_user-17642e5a.svg",Qw="/",Jw={props:{personality:{},selected:Boolean,full_path:String,onTalk:Function,onSelected:Function,onMounted:Function,onReinstall:Function,onSettings:Function},data(){return{isMounted:!1,name:this.personality.name}},mounted(){this.isMounted=this.personality.isMounted,_e(()=>{ye.replace()})},computed:{selected_computed(){return this.selected}},methods:{getImgUrl(){return Qw+this.personality.avatar},defaultImg(t){t.target.src=Jn},toggleTalk(){this.onTalk(this)},toggleSelected(){this.onSelected(this)},toggleMounted(){this.onMounted(this)},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){_e(()=>{ye.replace()})}}},Xw=["title"],ex={class:"flex flex-row items-center flex-shrink-0 gap-3"},tx=["src"],nx={class:"font-bold font-large text-lg line-clamp-3"},sx=d("i",{"data-feather":"send",class:"w-5"},null,-1),ox=d("span",{class:"sr-only"},"Talk",-1),rx=[sx,ox],ix={class:"flex items-center flex-row-reverse gap-2 my-1"},ax=d("span",{class:"sr-only"},"Settings",-1),lx=d("span",{class:"sr-only"},"Reinstall personality",-1),cx=d("span",{class:"sr-only"},"Click to install",-1),ux=d("span",{class:"sr-only"},"Remove",-1),dx={class:""},hx={class:""},fx={class:"flex items-center"},px=d("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),gx=d("b",null,"Author: ",-1),mx={class:"flex items-center"},_x=d("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),bx=d("b",null,"Language: ",-1),yx={class:"flex items-center"},vx=d("i",{"data-feather":"bookmark",class:"w-5 m-1"},null,-1),wx=d("b",null,"Category: ",-1),xx=d("div",{class:"flex items-center"},[d("i",{"data-feather":"info",class:"w-5 m-1"}),d("b",null,"Description: "),d("br")],-1),kx=["title"];function Ex(t,e,n,s,o,r){return A(),M("div",{class:Te(["min-w-96 items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer active:scale-95 duration-75 select-none",r.selected_computed?"border-primary-light":"border-transparent"]),onClick:e[7]||(e[7]=le((...i)=>r.toggleSelected&&r.toggleSelected(...i),["stop"])),title:n.personality.installed?"":"Not installed"},[d("div",{class:Te(n.personality.installed?"":"opacity-50")},[d("div",ex,[d("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[0]||(e[0]=i=>r.defaultImg(i)),class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,tx),d("h3",nx,Y(n.personality.name),1),d("button",{type:"button",title:"Talk",onClick:[e[1]||(e[1]=(...i)=>r.toggleTalk&&r.toggleTalk(...i)),e[2]||(e[2]=le(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},rx)]),d("div",ix,[r.selected_computed?(A(),M("button",{key:0,type:"button",title:"Settings",onClick:e[3]||(e[3]=le((...i)=>r.toggleSettings&&r.toggleSettings(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[we(" Settings "),ax])):z("",!0),r.selected_computed?(A(),M("button",{key:1,title:"Click to Reinstall personality",type:"button",onClick:e[4]||(e[4]=le((...i)=>r.toggleReinstall&&r.toggleReinstall(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[we(" Reinstall personality "),lx])):z("",!0),o.isMounted?z("",!0):(A(),M("button",{key:2,title:"Mount personality",type:"button",onClick:e[5]||(e[5]=le((...i)=>r.toggleMounted&&r.toggleMounted(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[we(" Mount "),cx])),o.isMounted?(A(),M("button",{key:3,title:"Unmount personality",type:"button",onClick:e[6]||(e[6]=le((...i)=>r.toggleMounted&&r.toggleMounted(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[we(" Unmount "),ux])):z("",!0)]),d("div",dx,[d("div",hx,[d("div",fx,[px,gx,we(" "+Y(n.personality.author),1)]),d("div",mx,[_x,bx,we(" "+Y(n.personality.language),1)]),d("div",yx,[vx,wx,we(" "+Y(n.personality.category),1)])]),xx,d("p",{class:"mx-1 opacity-80 line-clamp-3",title:n.personality.description},Y(n.personality.description),9,kx)])],2)],10,Xw)}const Pp=Ge(Jw,[["render",Ex]]),Cx="/",Ax={props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){_e(()=>{ye.replace()})},methods:{getImgUrl(){return Cx+this.binding.icon},defaultImg(t){t.target.src=Jn},toggleSelected(){this.onSelected(this)},toggleInstall(){this.onInstall(this)},toggleReinstall(){this.onReinstall(this)},toggleReloadBinding(){this.onReloadBinding(this)},toggleSettings(){this.onSettings(this)},getStatus(){(this.binding.folder==="backend_template"||this.binding.folder==="binding_template")&&(this.isTemplate=!0)}},watch:{selected(){_e(()=>{ye.replace()})}}},Sx=["title"],Tx={class:"flex flex-row items-center gap-3"},Mx=["src"],Ox={class:"font-bold font-large text-lg truncate"},Rx=d("div",{class:"grow"},null,-1),Nx={class:"flex-none gap-1"},Dx=d("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),Lx=d("span",{class:"sr-only"},"Help",-1),Ix=[Dx,Lx],Px={class:"flex items-center flex-row-reverse gap-2 my-1"},Fx=d("span",{class:"sr-only"},"Click to install",-1),Bx=d("span",{class:"sr-only"},"Reinstall binding",-1),$x=d("span",{class:"sr-only"},"Settings",-1),jx={class:""},zx={class:""},Ux={class:"flex items-center"},qx=d("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),Hx=d("b",null,"Author: ",-1),Vx={class:"flex items-center"},Gx=d("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1),Kx=d("b",null,"Folder: ",-1),Wx={class:"flex items-center"},Zx=d("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1),Yx=d("b",null,"Version: ",-1),Qx={class:"flex items-center"},Jx=d("i",{"data-feather":"github",class:"w-5 m-1"},null,-1),Xx=d("b",null,"Link: ",-1),ek=["href"],tk=d("div",{class:"flex items-center"},[d("i",{"data-feather":"info",class:"w-5 m-1"}),d("b",null,"Description: "),d("br")],-1),nk=["title"];function sk(t,e,n,s,o,r){return A(),M("div",{class:Te(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",n.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[6]||(e[6]=le((...i)=>r.toggleSelected&&r.toggleSelected(...i),["stop"])),title:n.binding.installed?n.binding.name:"Not installed"},[d("div",null,[d("div",Tx,[d("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[0]||(e[0]=i=>r.defaultImg(i)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,Mx),d("h3",Ox,Y(n.binding.name),1),Rx,d("div",Nx,[n.selected?(A(),M("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...i)=>r.toggleReloadBinding&&r.toggleReloadBinding(...i)),e[2]||(e[2]=le(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},Ix)):z("",!0)])]),d("div",Px,[n.binding.installed?z("",!0):(A(),M("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=le((...i)=>r.toggleInstall&&r.toggleInstall(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[we(" Install "),Fx])),n.binding.installed?(A(),M("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=le((...i)=>r.toggleReinstall&&r.toggleReinstall(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[we(" Reinstall binding "),Bx])):z("",!0),n.selected?(A(),M("button",{key:2,title:"Click to open Settings",type:"button",onClick:e[5]||(e[5]=le((...i)=>r.toggleSettings&&r.toggleSettings(...i),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[we(" Settings "),$x])):z("",!0)]),d("div",jx,[d("div",zx,[d("div",Ux,[qx,Hx,we(" "+Y(n.binding.author),1)]),d("div",Vx,[Gx,Kx,we(" "+Y(n.binding.folder),1)]),d("div",Wx,[Zx,Yx,we(" "+Y(n.binding.version),1)]),d("div",Qx,[Jx,Xx,d("a",{href:n.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},Y(n.binding.link),9,ek)])]),tk,d("p",{class:"mx-1 opacity-80 line-clamp-3",title:n.binding.description},Y(n.binding.description),9,nk)])])],10,Sx)}const ok=Ge(Ax,[["render",sk]]),Yt=Object.create(null);Yt.open="0";Yt.close="1";Yt.ping="2";Yt.pong="3";Yt.message="4";Yt.upgrade="5";Yt.noop="6";const dr=Object.create(null);Object.keys(Yt).forEach(t=>{dr[Yt[t]]=t});const rk={type:"error",data:"parser error"},ik=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ak=typeof ArrayBuffer=="function",lk=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Fp=({type:t,data:e},n,s)=>ik&&e instanceof Blob?n?s(e):Bu(e,s):ak&&(e instanceof ArrayBuffer||lk(e))?n?s(e):Bu(new Blob([e]),s):s(Yt[t]+(e||"")),Bu=(t,e)=>{const n=new FileReader;return n.onload=function(){const s=n.result.split(",")[1];e("b"+(s||""))},n.readAsDataURL(t)},$u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",no=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<$u.length;t++)no[$u.charCodeAt(t)]=t;const ck=t=>{let e=t.length*.75,n=t.length,s,o=0,r,i,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const c=new ArrayBuffer(e),u=new Uint8Array(c);for(s=0;s>4,u[o++]=(i&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c},uk=typeof ArrayBuffer=="function",Bp=(t,e)=>{if(typeof t!="string")return{type:"message",data:$p(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:dk(t.substring(1),e)}:dr[n]?t.length>1?{type:dr[n],data:t.substring(1)}:{type:dr[n]}:rk},dk=(t,e)=>{if(uk){const n=ck(t);return $p(n,e)}else return{base64:!0,data:t}},$p=(t,e)=>{switch(e){case"blob":return t instanceof ArrayBuffer?new Blob([t]):t;case"arraybuffer":default:return t}},jp=String.fromCharCode(30),hk=(t,e)=>{const n=t.length,s=new Array(n);let o=0;t.forEach((r,i)=>{Fp(r,!1,a=>{s[i]=a,++o===n&&e(s.join(jp))})})},fk=(t,e)=>{const n=t.split(jp),s=[];for(let o=0;otypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function Up(t,...e){return e.reduce((n,s)=>(t.hasOwnProperty(s)&&(n[s]=t[s]),n),{})}const gk=wt.setTimeout,mk=wt.clearTimeout;function ai(t,e){e.useNativeTimers?(t.setTimeoutFn=gk.bind(wt),t.clearTimeoutFn=mk.bind(wt)):(t.setTimeoutFn=wt.setTimeout.bind(wt),t.clearTimeoutFn=wt.clearTimeout.bind(wt))}const _k=1.33;function bk(t){return typeof t=="string"?yk(t):Math.ceil((t.byteLength||t.size)*_k)}function yk(t){let e=0,n=0;for(let s=0,o=t.length;s=57344?n+=3:(s++,n+=4);return n}class vk extends Error{constructor(e,n,s){super(e),this.description=n,this.context=s,this.type="TransportError"}}class qp extends Je{constructor(e){super(),this.writable=!1,ai(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,n,s){return super.emitReserved("error",new vk(e,n,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=Bp(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}}const Hp="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),ol=64,wk={};let ju=0,Vo=0,zu;function Uu(t){let e="";do e=Hp[t%ol]+e,t=Math.floor(t/ol);while(t>0);return e}function Vp(){const t=Uu(+new Date);return t!==zu?(ju=0,zu=t):t+"."+Uu(ju++)}for(;Vo{this.readyState="paused",e()};if(this.polling||!this.writable){let s=0;this.polling&&(s++,this.once("pollComplete",function(){--s||n()})),this.writable||(s++,this.once("drain",function(){--s||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};fk(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,hk(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.query||{};const n=this.opts.secure?"https":"http";let s="";this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=Vp()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(s=":"+this.opts.port);const o=Gp(e),r=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(r?"["+this.opts.hostname+"]":this.opts.hostname)+s+this.opts.path+(o.length?"?"+o:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new Kt(this.uri(),e)}doWrite(e,n){const s=this.request({method:"POST",data:e});s.on("success",n),s.on("error",(o,r)=>{this.onError("xhr post error",o,r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,s)=>{this.onError("xhr poll error",n,s)}),this.pollXhr=e}}class Kt extends Je{constructor(e,n){super(),ai(this,n),this.opts=n,this.method=n.method||"GET",this.uri=e,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const e=Up(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const n=this.xhr=new Wp(e);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let s in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(s)&&n.setRequestHeader(s,this.opts.extraHeaders[s])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(s){this.setTimeoutFn(()=>{this.onError(s)},0);return}typeof document<"u"&&(this.index=Kt.requestsCount++,Kt.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Ek,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Kt.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Kt.requestsCount=0;Kt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",qu);else if(typeof addEventListener=="function"){const t="onpagehide"in wt?"pagehide":"unload";addEventListener(t,qu,!1)}}function qu(){for(let t in Kt.requests)Kt.requests.hasOwnProperty(t)&&Kt.requests[t].abort()}const Zp=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0))(),Go=wt.WebSocket||wt.MozWebSocket,Hu=!0,Sk="arraybuffer",Vu=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Tk extends qp{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),n=this.opts.protocols,s=Vu?{}:Up(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=Hu&&!Vu?n?new Go(e,n):new Go(e):new Go(e,n,s)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||Sk,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n{const i={};try{Hu&&this.ws.send(r)}catch{}o&&Zp(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const n=this.opts.secure?"wss":"ws";let s="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(s=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=Vp()),this.supportsBinary||(e.b64=1);const o=Gp(e),r=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(r?"["+this.opts.hostname+"]":this.opts.hostname)+s+this.opts.path+(o.length?"?"+o:"")}check(){return!!Go}}const Mk={websocket:Tk,polling:Ak},Ok=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Rk=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function rl(t){const e=t,n=t.indexOf("["),s=t.indexOf("]");n!=-1&&s!=-1&&(t=t.substring(0,n)+t.substring(n,s).replace(/:/g,";")+t.substring(s,t.length));let o=Ok.exec(t||""),r={},i=14;for(;i--;)r[Rk[i]]=o[i]||"";return n!=-1&&s!=-1&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=Nk(r,r.path),r.queryKey=Dk(r,r.query),r}function Nk(t,e){const n=/\/{2,9}/g,s=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function Dk(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,o,r){o&&(n[o]=r)}),n}let Yp=class fs extends Je{constructor(e,n={}){super(),this.writeBuffer=[],e&&typeof e=="object"&&(n=e,e=null),e?(e=rl(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=rl(n.host).host),ai(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=xk(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=zp,n.transport=e,this.id&&(n.sid=this.id);const s=Object.assign({},this.opts.transportOptions[e],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new Mk[e](s)}open(){let e;if(this.opts.rememberUpgrade&&fs.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(e){let n=this.createTransport(e),s=!1;fs.priorWebsocketSuccess=!1;const o=()=>{s||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!s)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;fs.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(u(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function r(){s||(s=!0,u(),n.close(),n=null)}const i=h=>{const p=new Error("probe error: "+h);p.transport=n.name,r(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function l(){i("socket closed")}function c(h){n&&h.name!==n.name&&r()}const u=()=>{n.removeListener("open",o),n.removeListener("error",i),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",o),n.once("error",i),n.once("close",a),this.once("close",l),this.once("upgrading",c),n.open()}onOpen(){if(this.readyState="open",fs.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const n=this.upgrades.length;for(;e{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let s=0;s0&&n>this.maxPayload)return this.writeBuffer.slice(0,s);n+=2}return this.writeBuffer}write(e,n,s){return this.sendPacket("message",e,n,s),this}send(e,n,s){return this.sendPacket("message",e,n,s),this}sendPacket(e,n,s,o){if(typeof n=="function"&&(o=n,n=void 0),typeof s=="function"&&(o=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const r={type:e,data:n,options:s};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),o&&this.once("flush",o),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},s=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}onError(e){fs.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const n=[];let s=0;const o=e.length;for(;stypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Qp=Object.prototype.toString,Fk=typeof Blob=="function"||typeof Blob<"u"&&Qp.call(Blob)==="[object BlobConstructor]",Bk=typeof File=="function"||typeof File<"u"&&Qp.call(File)==="[object FileConstructor]";function ec(t){return Ik&&(t instanceof ArrayBuffer||Pk(t))||Fk&&t instanceof Blob||Bk&&t instanceof File}function hr(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,s=t.length;n=0&&t.num{delete this.acks[e];for(let i=0;i{this.io.clearTimeoutFn(r),n.apply(this,[null,...i])}}emitWithAck(e,...n){const s=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((o,r)=>{n.push((i,a)=>s?i?r(i):o(a):o(i)),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((o,...r)=>s!==this._queue[0]?void 0:(o!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...r)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Ie.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Ie.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ie.EVENT:case Ie.BINARY_EVENT:this.onevent(e);break;case Ie.ACK:case Ie.BINARY_ACK:this.onack(e);break;case Ie.DISCONNECT:this.ondisconnect();break;case Ie.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const s of n)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let s=!1;return function(...o){s||(s=!0,n.packet({type:Ie.ACK,id:e,data:o}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(n.apply(this,e.data),delete this.acks[e.id])}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ie.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let s=0;s0&&t.jitter<=1?t.jitter:0,this.attempts=0}Hs.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0};Hs.prototype.reset=function(){this.attempts=0};Hs.prototype.setMin=function(t){this.ms=t};Hs.prototype.setMax=function(t){this.max=t};Hs.prototype.setJitter=function(t){this.jitter=t};class ll extends Je{constructor(e,n){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,ai(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((s=n.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Hs({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const o=n.parser||Hk;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Yp(this.uri,this.opts);const n=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const o=Rt(n,"open",function(){s.onopen(),e&&e()}),r=Rt(n,"error",i=>{s.cleanup(),s._readyState="closed",this.emitReserved("error",i),e?e(i):s.maybeReconnectOnOpen()});if(this._timeout!==!1){const i=this._timeout;i===0&&o();const a=this.setTimeoutFn(()=>{o(),n.close(),n.emit("error",new Error("timeout"))},i);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(o),this.subs.push(r),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Rt(e,"ping",this.onping.bind(this)),Rt(e,"data",this.ondata.bind(this)),Rt(e,"error",this.onerror.bind(this)),Rt(e,"close",this.onclose.bind(this)),Rt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){Zp(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new Jp(this,e,n),this.nsps[e]=s),s}_destroy(e){const n=Object.keys(this.nsps);for(const s of n)if(this.nsps[s].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let s=0;se()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},n);this.opts.autoUnref&&s.unref(),this.subs.push(function(){clearTimeout(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Js={};function fr(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=Lk(t,e.path||"/socket.io"),s=n.source,o=n.id,r=n.path,i=Js[o]&&r in Js[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i;let l;return a?l=new ll(s,e):(Js[o]||(Js[o]=new ll(s,e)),l=Js[o]),n.query&&!e.query&&(e.query=n.queryKey),l.socket(n.path,e)}Object.assign(fr,{Manager:ll,Socket:Jp,io:fr,connect:fr});const Gk=void 0,je=new fr(Gk);je.onopen=()=>{console.log("WebSocket connection established.")};je.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason)};je.onerror=t=>{console.error("WebSocket error:",t),je.disconnect()};const Kk={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(t=>{this.resolve=t})},hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},showDialog(t){return new Promise(e=>{this.model_path=t,this.show=!0,this.resolve=e})}}},Wk={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},Zk={class:"relative w-full max-w-md max-h-full"},Yk={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},Qk=d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[d("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),Jk=d("span",{class:"sr-only"},"Close modal",-1),Xk=[Qk,Jk],eE={class:"p-4 text-center"},tE=d("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[d("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1),nE={class:"p-4 text-center mx-auto mb-4"},sE=d("label",{class:"mr-2"},"Model path",-1);function oE(t,e,n,s,o,r){return o.show?(A(),M("div",Wk,[d("div",Zk,[d("div",Yk,[d("button",{type:"button",onClick:e[0]||(e[0]=i=>r.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},Xk),d("div",eE,[tE,d("div",nE,[sE,me(d("input",{"onUpdate:modelValue":e[1]||(e[1]=i=>o.model_path=i),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[Re,o.model_path]])]),d("button",{onClick:e[2]||(e[2]=i=>r.hide(!0)),type:"button",class:"text-white bg-green-600 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"}," Add "),d("button",{onClick:e[3]||(e[3]=i=>r.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},"No, cancel")])])])])):z("",!0)}const rE=Ge(Kk,[["render",oE]]),iE={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){_e(()=>{ye.replace()})},methods:{hide(t){this.show=!1,this.resolve&&t&&(this.resolve(this.controls_array),this.resolve=null)},showForm(t,e,n,s){this.ConfirmButtonText=n||this.ConfirmButtonText,this.DenyButtonText=s||this.DenyButtonText;for(let o=0;o{this.controls_array=t,this.show=!0,this.title=e||this.title,this.resolve=o,console.log("show foam",this.controls_array)})}},watch:{show(){_e(()=>{ye.replace()})}}},aE={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4"},lE={class:"relative w-full max-w-md"},cE={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel duration-150 shadow-lg max-h-screen"},uE={class:"flex flex-row flex-grow items-center m-2 p-1"},dE={class:"grow flex items-center"},hE=d("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1),fE={class:"text-lg font-semibold select-none mr-2"},pE={class:"items-end"},gE=d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[d("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),mE=d("span",{class:"sr-only"},"Close form modal",-1),_E=[gE,mE],bE={class:"flex flex-col relative no-scrollbar overflow-y-scroll p-2"},yE={class:"px-2"},vE={key:0},wE={key:0},xE={class:"text-base font-semibold"},kE={key:0,class:"relative inline-flex"},EE=["onUpdate:modelValue"],CE=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),AE={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},SE=["onUpdate:modelValue"],TE={key:1},ME={class:"text-base font-semibold"},OE={key:0,class:"relative inline-flex"},RE=["onUpdate:modelValue"],NE=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),DE={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},LE=["onUpdate:modelValue"],IE=["value","selected"],PE={key:1},FE={class:"text-base font-semibold"},BE={key:0,class:"relative inline-flex"},$E=["onUpdate:modelValue"],jE=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),zE={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},UE=["onUpdate:modelValue"],qE=["onUpdate:modelValue","min","max"],HE={key:2},VE={class:"mb-2 relative flex items-center gap-2"},GE={for:"default-checkbox",class:"text-base font-semibold"},KE=["onUpdate:modelValue"],WE={key:0,class:"relative inline-flex"},ZE=["onUpdate:modelValue"],YE=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),QE={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},JE={key:3},XE={class:"text-base font-semibold"},e5={key:0,class:"relative inline-flex"},t5=["onUpdate:modelValue"],n5=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),s5={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},o5=["onUpdate:modelValue"],r5=d("hr",{class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),i5={class:"flex flex-row flex-grow gap-3"},a5={class:"p-2 text-center grow"};function l5(t,e,n,s,o,r){return o.show?(A(),M("div",aE,[d("div",lE,[d("div",cE,[d("div",uE,[d("div",dE,[hE,d("h3",fE,Y(o.title),1)]),d("div",pE,[d("button",{type:"button",onClick:e[0]||(e[0]=le(i=>r.hide(!1),["stop"])),title:"Close",class:"bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},_E)])]),d("div",bE,[(A(!0),M(Le,null,Qe(o.controls_array,(i,a)=>(A(),M("div",yE,[i.type=="str"?(A(),M("div",vE,[i.options?z("",!0):(A(),M("div",wE,[d("label",{class:Te(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[d("div",xE,Y(i.name)+": ",1),i.help?(A(),M("label",kE,[me(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,EE),[[$t,i.isHelp]]),CE])):z("",!0)],2),i.isHelp?(A(),M("p",AE,Y(i.help),1)):z("",!0),me(d("input",{type:"text","onUpdate:modelValue":l=>i.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,SE),[[Re,i.value]])])),i.options?(A(),M("div",TE,[d("label",{class:Te(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[d("div",ME,Y(i.name)+": ",1),i.help?(A(),M("label",OE,[me(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,RE),[[$t,i.isHelp]]),NE])):z("",!0)],2),i.isHelp?(A(),M("p",DE,Y(i.help),1)):z("",!0),me(d("select",{"onUpdate:modelValue":l=>i.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(A(!0),M(Le,null,Qe(i.options,l=>(A(),M("option",{value:l,selected:i.value===l},Y(l),9,IE))),256))],8,LE),[[H1,i.value]])])):z("",!0)])):z("",!0),i.type=="int"||i.type=="float"?(A(),M("div",PE,[d("label",{class:Te(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[d("div",FE,Y(i.name)+": ",1),i.help?(A(),M("label",BE,[me(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,$E),[[$t,i.isHelp]]),jE])):z("",!0)],2),i.isHelp?(A(),M("p",zE,Y(i.help),1)):z("",!0),me(d("input",{type:"number","onUpdate:modelValue":l=>i.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,UE),[[Re,i.value]]),i.min!=null&&i.max!=null?me((A(),M("input",{key:1,type:"range","onUpdate:modelValue":l=>i.value=l,min:i.min,max:i.max,step:"0.1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,qE)),[[Re,i.value]]):z("",!0)])):z("",!0),i.type=="bool"?(A(),M("div",HE,[d("div",VE,[d("label",GE,Y(i.name)+": ",1),me(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.value=l,class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"},null,8,KE),[[$t,i.value]]),i.help?(A(),M("label",WE,[me(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,ZE),[[$t,i.isHelp]]),YE])):z("",!0)]),i.isHelp?(A(),M("p",QE,Y(i.help),1)):z("",!0)])):z("",!0),i.type=="list"?(A(),M("div",JE,[d("label",{class:Te(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[d("div",XE,Y(i.name)+": ",1),i.help?(A(),M("label",e5,[me(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,t5),[[$t,i.isHelp]]),n5])):z("",!0)],2),i.isHelp?(A(),M("p",s5,Y(i.help),1)):z("",!0),me(d("input",{type:"text","onUpdate:modelValue":l=>i.value=l,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter comma separated values"},null,8,o5),[[Re,i.value]])])):z("",!0),r5]))),256)),d("div",i5,[d("div",a5,[d("button",{onClick:e[1]||(e[1]=le(i=>r.hide(!0),["stop"])),type:"button",class:"mr-2 text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},Y(o.ConfirmButtonText),1),d("button",{onClick:e[2]||(e[2]=le(i=>r.hide(!1),["stop"])),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},Y(o.DenyButtonText),1)])])])])])])):z("",!0)}const Xp=Ge(iE,[["render",l5]]);const c5="/";Se.defaults.baseURL="/";const u5={components:{AddModelDialog:rE,MessageBox:U2,YesNoDialog:ev,ModelEntry:Nw,PersonalityViewer:Zw,Toast:ii,PersonalityEntry:Pp,BindingEntry:ok,UniversalForm:Xp},data(){return{loading_text:"",personality_language:null,personality_category:null,addModelDialogVisibility:!1,modelPath:"",personalitiesFiltered:[],modelsFiltered:[],collapsedArr:[],all_collapsed:!0,minconf_collapsed:!0,bec_collapsed:!0,mzc_collapsed:!0,mzdc_collapsed:!0,pzc_collapsed:!0,bzc_collapsed:!0,pc_collapsed:!0,mc_collapsed:!0,sc_collapsed:!0,mzl_collapsed:!1,pzl_collapsed:!1,bzl_collapsed:!1,persLangArr:[],persCatgArr:[],persArr:[],langArr:[],showConfirmation:!1,showToast:!1,isLoading:!1,settingsChanged:!1,isModelSelected:!1,isMounted:!1,bUrl:c5,searchPersonality:"",searchModel:"",searchPersonalityTimer:{},searchPersonalityTimerInterval:1500,searchModelTimerInterval:1500,searchPersonalityInProgress:!1,searchModelInProgress:!1,addModel:{},modelDownlaodInProgress:!1,uploadData:[]}},async created(){je.on("loading_text",this.on_loading_text)},methods:{async update_software(){console.log("Posting");const t=await this.api_get_req("update_software");console.log("Posting done"),t.status?this.$refs.toast.showToast("Success!",4,!0):this.$refs.toast.showToast("Failure!",4,!1)},on_loading_text(t){console.log("Loading text",t),this.loading_text=t},async constructor(){for(this.isLoading=!0,_e(()=>{ye.replace()});this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));this.configFile.model_name&&(this.isModelSelected=!0),this.persLangArr=await this.api_get_req("list_personalities_languages"),this.persCatgArr=await this.api_get_req("list_personalities_categories"),this.persArr=await this.api_get_req("list_personalities"),this.langArr=await this.api_get_req("list_languages"),this.bindingsArr.sort((t,e)=>t.name.localeCompare(e.name)),this.modelsArr.sort(),this.persLangArr.sort(),this.persCatgArr.sort(),this.persArr.sort(),this.langArr.sort(),this.personality_language=this.configFile.personality_language,this.personality_category=this.configFile.personality_category,this.personalitiesFiltered=this.personalities.filter(t=>t.category===this.configFile.personality_category&&t.language===this.configFile.personality_language),this.personalitiesFiltered.sort(),this.modelsFiltered=this.models,this.bindingsArr.sort((t,e)=>t.name.localeCompare(e.name)),this.isLoading=!1,this.isMounted=!0},async open_mzl(){this.mzl_collapsed=!this.mzl_collapsed,console.log("Fetching models")},async getVramUsage(){await this.api_get_req("vram_usage")},async progressListener(t){if(console.log("received something"),t.status==="progress"){if(this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(s=>s.model.path==t.model_url&&s.model.title==t.model_name&&this.configFile.binding_name==t.binding_folder),n=this.models[e];n&&(console.log("model entry",n),n.installing=!0,n.progress=t.progress,console.log(`Progress = ${t.progress}`),t.progress>=100&&(n.installing=!1,n.isInstalled=!0))}}else if(t.status==="succeeded"){if(console.log("Received succeeded"),console.log("Installed successfully"),this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(s=>s.model.path==t.model_url&&s.model.title==t.model_name&&this.configFile.binding_name==t.binding_folder),n=this.models[e];n&&(n.installing=!1,n.isInstalled=!0)}this.$refs.toast.showToast(`Model: `+model_object.title+` installed!`,4,!0),this.$store.dispatch("refreshDiskUsage")}else if(t.status==="failed"&&(console.log("Install failed"),this.$refs.modelZoo)){const e=this.$refs.modelZoo.findIndex(s=>s.model.path==t.model_url&&s.model.title==t.model_name&&this.configFile.binding_name==t.binding_folder),n=this.models[e];n&&(n.installing=!1,n.isInstalled=!1),console.error("Installation failed:",t.error),this.$refs.toast.showToast(`Model: `+model_object.title+` -failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage")}},showAddModelDialog(){this.$refs.addmodeldialog.showDialog("").then(()=>{console.log(this.$refs.addmodeldialog.model_path);const t=this.$refs.addmodeldialog.model_path;ze.emit("install_model",{path:t},e=>{console.log("Model installation successful:",e)}),console.log(this.$refs.addmodeldialog.model_path)})},closeAddModelDialog(){this.addModelDialogVisibility=!1},collapseAll(t){this.minconf_collapsed=t,this.bec_collapsed=t,this.mzc_collapsed=t,this.pzc_collapsed=t,this.bzc_collapsed=t,this.pc_collapsed=t,this.mc_collapsed=t,this.sc_collapsed=t,this.mzdc_collapsed=t},fetchPersonalities(){this.api_get_req("list_personalities_categories").then(t=>{this.persCatgArr=t,this.persCatgArr.sort()}),this.api_get_req("list_personalities").then(t=>{this.persArr=t,this.persArr.sort(),console.log(`Listed personalities: +failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage")}},showAddModelDialog(){this.$refs.addmodeldialog.showDialog("").then(()=>{console.log(this.$refs.addmodeldialog.model_path);const t=this.$refs.addmodeldialog.model_path;je.emit("install_model",{path:t},e=>{console.log("Model installation successful:",e)}),console.log(this.$refs.addmodeldialog.model_path)})},closeAddModelDialog(){this.addModelDialogVisibility=!1},collapseAll(t){this.minconf_collapsed=t,this.bec_collapsed=t,this.mzc_collapsed=t,this.pzc_collapsed=t,this.bzc_collapsed=t,this.pc_collapsed=t,this.mc_collapsed=t,this.sc_collapsed=t,this.mzdc_collapsed=t},fetchPersonalities(){this.api_get_req("list_personalities_categories").then(t=>{this.persCatgArr=t,this.persCatgArr.sort()}),this.api_get_req("list_personalities").then(t=>{this.persArr=t,this.persArr.sort(),console.log(`Listed personalities: ${t}`)})},fetchHardwareInfos(){this.$store.dispatch("refreshDiskUsage"),this.$store.dispatch("refreshRamUsage")},async onPersonalitySelected(t){if(console.log("on pers",t),this.isLoading&&this.$refs.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("ppa",t),t){if(t.selected){this.$refs.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}if(t.isMounted&&this.configFile.personalities.includes(t.full_path)){const e=await this.select_personality(t);console.log("pers is mounted",e),e&&e.status&&e.active_personality_id>-1?this.$refs.toast.showToast(`Selected personality: `+t.name,4,!0):this.$refs.toast.showToast(`Error on select personality: `+t.name,4,!1),this.isLoading=!1}else console.log("mounting pers"),this.onPersonalityMounted(t);_e(()=>{ye.replace()})}},onSelected(t){this.isLoading&&this.$refs.toast.showToast("Loading... please wait",4,!1),t&&(t.isInstalled?this.configFile.model_name!=t.title&&this.update_model(t.title).then(e=>{console.log("update_model",e),this.configFile.model_name=t.title,this.$refs.toast.showToast(`Selected model: @@ -44,24 +44,24 @@ Download: ${t.path} License: ${t.license} Owner: ${t.owner} Website: ${t.owner_link} -Description: ${t.description}`,this.$refs.toast.showToast("Copied model info to clipboard!",4,!0),navigator.clipboard.writeText(e.trim())},onCopyLink(t){this.$refs.toast.showToast("Copied link to clipboard!",4,!0),navigator.clipboard.writeText(t.path)},onCancelInstall(){const t=this.addModel;console.log("cancel install",t),this.modelDownlaodInProgress=!1,this.addModel={},this.$refs.toast.showToast("Model installation aborted",4,!1),ze.emit("cancel_install",{model_name:t.model_name,binding_folder:t.binding_folder,model_url:t.model_url})},onInstall(t){if(t.linkNotValid){t.installing=!1,this.$refs.toast.showToast("Link is not valid, file does not exist",4,!1);return}let e=t.path;this.showProgress=!0,this.progress=0,this.addModel={model_name:t.model.title,binding_folder:this.configFile.binding_name,model_url:t.path},console.log("installing...",this.addModel);const n=s=>{if(console.log("received something"),s.status&&s.progress<=100){if(this.addModel=s,console.log("Progress",s),t.progress=s.progress,t.speed=s.speed,t.total_size=s.total_size,t.downloaded_size=s.downloaded_size,t.start_time=s.start_time,t.installing=!0,t.progress==100){const o=this.models.findIndex(r=>r.path===e);this.models[o].isInstalled=!0,this.showProgress=!1,t.installing=!1,console.log("Received succeeded"),ze.off("install_progress",n),console.log("Installed successfully"),this.$refs.toast.showToast(`Model: +Description: ${t.description}`,this.$refs.toast.showToast("Copied model info to clipboard!",4,!0),navigator.clipboard.writeText(e.trim())},onCopyLink(t){this.$refs.toast.showToast("Copied link to clipboard!",4,!0),navigator.clipboard.writeText(t.path)},onCancelInstall(){const t=this.addModel;console.log("cancel install",t),this.modelDownlaodInProgress=!1,this.addModel={},this.$refs.toast.showToast("Model installation aborted",4,!1),je.emit("cancel_install",{model_name:t.model_name,binding_folder:t.binding_folder,model_url:t.model_url})},onInstall(t){if(t.linkNotValid){t.installing=!1,this.$refs.toast.showToast("Link is not valid, file does not exist",4,!1);return}let e=t.path;this.showProgress=!0,this.progress=0,this.addModel={model_name:t.model.title,binding_folder:this.configFile.binding_name,model_url:t.path},console.log("installing...",this.addModel);const n=s=>{if(console.log("received something"),s.status&&s.progress<=100){if(this.addModel=s,console.log("Progress",s),t.progress=s.progress,t.speed=s.speed,t.total_size=s.total_size,t.downloaded_size=s.downloaded_size,t.start_time=s.start_time,t.installing=!0,t.progress==100){const o=this.models.findIndex(r=>r.path===e);this.models[o].isInstalled=!0,this.showProgress=!1,t.installing=!1,console.log("Received succeeded"),je.off("install_progress",n),console.log("Installed successfully"),this.$refs.toast.showToast(`Model: `+t.title+` -installed!`,4,!0),this.$store.dispatch("refreshDiskUsage")}}else ze.off("install_progress",n),console.log("Install failed"),t.installing=!1,this.showProgress=!1,console.error("Installation failed:",s.error),this.$refs.toast.showToast(`Model: +installed!`,4,!0),this.$store.dispatch("refreshDiskUsage")}}else je.off("install_progress",n),console.log("Install failed"),t.installing=!1,this.showProgress=!1,console.error("Installation failed:",s.error),this.$refs.toast.showToast(`Model: `+t.title+` -failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage")};ze.on("install_progress",n),ze.emit("install_model",{path:e}),console.log("Started installation, please wait")},onInstallAddModel(){if(!this.addModel.url){this.$refs.toast.showToast("Link is empty",4,!1);return}let t=this.addModel.url;this.addModel.progress=0,console.log("installing..."),console.log("value ",this.addModel.url),this.modelDownlaodInProgress=!0;const e=n=>{console.log("received something"),n.status&&n.progress<=100?(console.log("Progress",n),this.addModel=n,this.addModel.url=t,this.modelDownlaodInProgress=!0,this.addModel.progress==100&&(this.modelDownlaodInProgress=!1,console.log("Received succeeded"),ze.off("install_progress",e),console.log("Installed successfully"),this.addModel={},this.$refs.toast.showToast(`Model: +failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage")};je.on("install_progress",n),je.emit("install_model",{path:e}),console.log("Started installation, please wait")},onInstallAddModel(){if(!this.addModel.url){this.$refs.toast.showToast("Link is empty",4,!1);return}let t=this.addModel.url;this.addModel.progress=0,console.log("installing..."),console.log("value ",this.addModel.url),this.modelDownlaodInProgress=!0;const e=n=>{console.log("received something"),n.status&&n.progress<=100?(console.log("Progress",n),this.addModel=n,this.addModel.url=t,this.modelDownlaodInProgress=!0,this.addModel.progress==100&&(this.modelDownlaodInProgress=!1,console.log("Received succeeded"),je.off("install_progress",e),console.log("Installed successfully"),this.addModel={},this.$refs.toast.showToast(`Model: `+this.addModel.model_name+` -installed!`,4,!0),this.$store.dispatch("refreshDiskUsage"))):(ze.off("install_progress",e),console.log("Install failed"),this.modelDownlaodInProgress=!1,console.error("Installation failed:",n.error),this.$refs.toast.showToast(`Model: +installed!`,4,!0),this.$store.dispatch("refreshDiskUsage"))):(je.off("install_progress",e),console.log("Install failed"),this.modelDownlaodInProgress=!1,console.error("Installation failed:",n.error),this.$refs.toast.showToast(`Model: `+this.addModel.model_name+` -failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};ze.on("install_progress",e),ze.emit("install_model",{path:t}),console.log("Started installation, please wait")},uploadLocalModel(){if(this.uploadData.length==0){this.$refs.toast.showToast("No files to upload",4,!1);return}let t=this.addModel.url;this.addModel.progress=0,console.log("installing..."),console.log("value ",this.addModel.url),this.modelDownlaodInProgress=!0;const e=n=>{console.log("received something"),n.status&&n.progress<=100?(console.log("Progress",n),this.addModel=n,this.addModel.url=t,this.modelDownlaodInProgress=!0,this.addModel.progress==100&&(this.modelDownlaodInProgress=!1,console.log("Received succeeded"),ze.off("progress",e),console.log("Installed successfully"),this.addModel={},this.$refs.toast.showToast(`Model: +failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};je.on("install_progress",e),je.emit("install_model",{path:t}),console.log("Started installation, please wait")},uploadLocalModel(){if(this.uploadData.length==0){this.$refs.toast.showToast("No files to upload",4,!1);return}let t=this.addModel.url;this.addModel.progress=0,console.log("installing..."),console.log("value ",this.addModel.url),this.modelDownlaodInProgress=!0;const e=n=>{console.log("received something"),n.status&&n.progress<=100?(console.log("Progress",n),this.addModel=n,this.addModel.url=t,this.modelDownlaodInProgress=!0,this.addModel.progress==100&&(this.modelDownlaodInProgress=!1,console.log("Received succeeded"),je.off("progress",e),console.log("Installed successfully"),this.addModel={},this.$refs.toast.showToast(`Model: `+this.addModel.model_name+` -installed!`,4,!0),this.$store.dispatch("refreshDiskUsage"))):(ze.off("progress",e),console.log("Install failed"),this.modelDownlaodInProgress=!1,console.error("Installation failed:",n.error),this.$refs.toast.showToast(`Model: +installed!`,4,!0),this.$store.dispatch("refreshDiskUsage"))):(je.off("progress",e),console.log("Install failed"),this.modelDownlaodInProgress=!1,console.error("Installation failed:",n.error),this.$refs.toast.showToast(`Model: `+this.addModel.model_name+` -failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};ze.on("progress",e),console.log("Started installation, please wait")},setFileList(t){this.uploadData=t.target.files,console.log("set file list",this.uploadData)},onUninstall(t){this.$refs.yesNoDialog.askQuestion(`Are you sure you want to delete this model? - [`+t.title+"]","Yes","Cancel").then(e=>{if(e){console.log("uninstalling model...");const n=s=>{if(console.log("uninstalling res",s),s.status){console.log("uninstalling success",s),t.uninstalling=!1,ze.off("install_progress",n),this.showProgress=!1;const o=this.models.findIndex(r=>r.path===t.path);this.models[o].isInstalled=!1,t.model.isCustomModel&&(this.models=this.models.filter(r=>r.title!==t.title)),this.$refs.toast.showToast(`Model: +failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};je.on("progress",e),console.log("Started installation, please wait")},setFileList(t){this.uploadData=t.target.files,console.log("set file list",this.uploadData)},onUninstall(t){this.$refs.yesNoDialog.askQuestion(`Are you sure you want to delete this model? + [`+t.title+"]","Yes","Cancel").then(e=>{if(e){console.log("uninstalling model...");const n=s=>{if(console.log("uninstalling res",s),s.status){console.log("uninstalling success",s),t.uninstalling=!1,je.off("install_progress",n),this.showProgress=!1;const o=this.models.findIndex(r=>r.path===t.path);this.models[o].isInstalled=!1,t.model.isCustomModel&&(this.models=this.models.filter(r=>r.title!==t.title)),this.$refs.toast.showToast(`Model: `+t.title+` -was uninstalled!`,4,!0),this.$store.dispatch("refreshDiskUsage")}else console.log("uninstalling failed",s),t.uninstalling=!1,this.showProgress=!1,ze.off("install_progress",n),console.error("Uninstallation failed:",message.error),this.$refs.toast.showToast(`Model: +was uninstalled!`,4,!0),this.$store.dispatch("refreshDiskUsage")}else console.log("uninstalling failed",s),t.uninstalling=!1,this.showProgress=!1,je.off("install_progress",n),console.error("Uninstallation failed:",message.error),this.$refs.toast.showToast(`Model: `+t.title+` -failed to uninstall!`,4,!1),this.$store.dispatch("refreshDiskUsage")};ze.on("install_progress",n),ze.emit("uninstall_model",{path:t.path})}})},onSelectedBinding(t){if(console.log("Binding selected"),!t.binding.installed){this.$refs.toast.showToast(`Binding is not installed: +failed to uninstall!`,4,!1),this.$store.dispatch("refreshDiskUsage")};je.on("install_progress",n),je.emit("uninstall_model",{path:t.path})}})},onSelectedBinding(t){if(console.log("Binding selected"),!t.binding.installed){this.$refs.toast.showToast(`Binding is not installed: `+t.binding.name,4,!1);return}this.configFile.binding_name!=t.binding.folder&&this.update_binding(t.binding.folder)},onInstallBinding(t){this.configFile.binding_name!=t.binding.folder&&this.update_binding(t.binding.folder)},onReinstallBinding(t){this.isLoading=!0,Se.post("/reinstall_binding",{name:t.binding.folder}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_binding",e),e.data.status?this.$refs.toast.showToast("Reinstalled binding successfully!",4,!0):this.$refs.toast.showToast("Could not reinstall binding",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$refs.toast.showToast(`Could not reinstall binding `+e.message,4,!1),{status:!1}))},onSettingsBinding(t){try{this.isLoading=!0,Se.get("/get_active_binding_settings").then(e=>{this.isLoading=!1,e&&(console.log("binding sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Binding settings - "+t.binding.name,"Save changes","Cancel").then(n=>{try{Se.post("/set_active_binding_settings",n).then(s=>{s&&s.data?(console.log("binding set with new settings",s.data),this.$refs.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$refs.toast.showToast(`Did not get binding settings responses. `+s,4,!1),this.isLoading=!1)})}catch(s){this.$refs.toast.showToast(`Did not get binding settings responses. @@ -69,38 +69,38 @@ failed to uninstall!`,4,!1),this.$store.dispatch("refreshDiskUsage")};ze.on("ins `+e.message,4,!1),{status:!1}))},onSettingsPersonality(t){try{this.isLoading=!0,Se.get("/get_active_personality_settings").then(e=>{this.isLoading=!1,e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+t.personality.name,"Save changes","Cancel").then(n=>{try{Se.post("/set_active_personality_settings",n).then(s=>{s&&s.data?(console.log("personality set with new settings",s.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):(this.$refs.toast.showToast(`Did not get Personality settings responses. `+s,4,!1),this.isLoading=!1)})}catch(s){this.$refs.toast.showToast(`Did not get Personality settings responses. Endpoint error: `+s.message,4,!1),this.isLoading=!1}}):(this.$refs.toast.showToast("Personality has no settings",4,!1),this.isLoading=!1))})}catch(e){this.isLoading=!1,this.$refs.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},onMessageBoxOk(){console.log("OK button clicked")},update_personality_language(t,e){this.personality_language=t,e()},update_personality_category(t,e){this.personality_category=t,e()},refresh(){console.log("Refreshing"),this.$store.dispatch("refreshConfig").then(()=>{console.log(this.personality_language),console.log(this.personality_category),this.personalitiesFiltered=this.personalities.filter(t=>t.category===this.personality_category&&t.language===this.personality_language),this.personalitiesFiltered.sort()})},toggleAccordion(){this.showAccordion=!this.showAccordion},async update_setting(t,e,n){console.log("Updating setting",t,":",e),this.isLoading=!0;const s={setting_name:t,setting_value:e};let o=await Se.post("/update_setting",s);if(o)return this.isLoading=!1,console.log("update_setting",o),n!==void 0&&n(o),o.data;this.isLoading=!1},update_binding(t){this.isLoading=!0,console.log("updating binding_name"),this.update_setting("binding_name",t,e=>{console.log("updated binding_name");const n=this.bindingsArr.findIndex(o=>o.folder==t),s=this.bindingsArr[n];s&&(s.installed=!0),this.settingsChanged=!0,this.isLoading=!1,console.log("updating model"),this.update_model(null).then(()=>{console.log("updated model"),this.configFile.model_name=null,this.$store.dispatch("refreshConfig"),this.$store.dispatch("refreshModelsZoo"),this.$refs.toast.showToast("Binding changed.",4,!0),this.$forceUpdate()}),_e(()=>{ye.replace()})})},async update_model(t){console.log("hjsdfhksdjufkdshf"),t||(this.isModelSelected=!1),this.isLoading=!0;let e=await this.update_setting("model_name",t);return this.isLoading=!1,e},applyConfiguration(){this.isLoading=!0,Se.post("/apply_settings").then(t=>{this.isLoading=!1,t.data.status?(this.$refs.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$refs.toast.showToast("Configuration change failed.",4,!1),_e(()=>{ye.replace()})})},save_configuration(){this.showConfirmation=!1,Se.post("/save_settings",{}).then(t=>{if(t)return t.status||this.$refs.messageBox.showMessage("Error: Couldn't save settings!"),t.data}).catch(t=>(console.log(t.message,"save_configuration"),this.$refs.messageBox.showMessage("Couldn't save settings!"),{status:!1}))},reset_configuration(){this.$refs.yesNoDialog.askQuestion(`Are you sure? -This will delete all your configurations and get back to default configuration.`).then(t=>{t&&Se.post("/reset_settings",{}).then(e=>{if(e)return e.status?this.$refs.messageBox.showMessage("Settings have been reset correctly"):this.$refs.messageBox.showMessage("Couldn't reset settings!"),e.data}).catch(e=>(console.log(e.message,"reset_configuration"),this.$refs.messageBox.showMessage("Couldn't reset settings!"),{status:!1}))})},async api_get_req(t){try{const e=await Se.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - settings");return}},closeToast(){this.showToast=!1},async getPersonalitiesArr(){this.isLoading=!0,this.personalities=[];const t=await this.api_get_req("get_all_personalities"),e=this.$store.config,n=Object.keys(t);for(let s=0;s{const p=e.personalities.includes(o+"/"+l+"/"+f.folder);let g={};return g=f,g.category=l,g.language=o,g.full_path=o+"/"+l+"/"+f.folder,g.isMounted=p,g});this.personalities.length==0?this.personalities=d:this.personalities=this.personalities.concat(d)}}this.personalities.sort((s,o)=>s.name.localeCompare(o.name)),this.personalitiesFiltered=this.personalities.filter(s=>s.category===this.configFile.personality_category&&s.language===this.configFile.personality_language),this.personalitiesFiltered.sort(),console.log("per filtered",this.personalitiesFiltered),this.isLoading=!1},async filterPersonalities(){if(!this.searchPersonality){this.personalitiesFiltered=this.personalities.filter(n=>n.category===this.configFile.personality_category&&n.language===this.configFile.personality_language),this.personalitiesFiltered.sort(),this.searchPersonalityInProgress=!1;return}const t=this.searchPersonality.toLowerCase(),e=this.personalities.filter(n=>{if(n.name&&n.name.toLowerCase().includes(t)||n.description&&n.description.toLowerCase().includes(t)||n.full_path&&n.full_path.toLowerCase().includes(t))return n});e.length>0?this.personalitiesFiltered=e.sort():(this.personalitiesFiltered=this.personalities.filter(n=>n.category===this.configFile.personality_category&&n.language===this.configFile.personality_language),this.personalitiesFiltered.sort()),this.searchPersonalityInProgress=!1},async filterModels(){if(!this.searchModel){console.log("Searching model"),this.modelsFiltered=this.models,this.modelsFiltered.sort(),this.searchModelInProgress=!1;return}const t=this.searchModel.toLowerCase(),e=this.models.filter(n=>{if(n.title&&n.title.toLowerCase().includes(t)||n.description&&n.description.toLowerCase().includes(t)||n.path&&n.path.toLowerCase().includes(t))return n});e.length>0?this.modelsFiltered=e.sort():(this.modelsFiltered=this.models,this.modelsFiltered.sort()),this.searchModelInProgress=!1},computedFileSize(t){return Ht(t)},async mount_personality(t){if(!t)return{status:!1,error:"no personality - mount_personality"};try{const e={language:t.language,category:t.category,folder:t.folder},n=await Se.post("/mount_personality",e);if(n)return n.data}catch(e){console.log(e.message,"mount_personality - settings");return}},async unmount_personality(t){if(!t)return{status:!1,error:"no personality - unmount_personality"};const e={language:t.language,category:t.category,folder:t.folder};try{const n=await Se.post("/unmount_personality",e);if(n)return n.data}catch(n){console.log(n.message,"unmount_personality - settings");return}},async select_personality(t){if(!t)return{status:!1,error:"no personality - select_personality"};console.log("select pers",t);const n={id:this.configFile.personalities.findIndex(s=>s===t.full_path)};try{const s=await Se.post("/select_personality",n);if(s)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesArr").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),s.data}catch(s){console.log(s.message,"select_personality - settings");return}},async mountPersonality(t){if(this.isLoading=!0,console.log("mount pers",t),!t)return;if(this.configFile.personalities.includes(t.personality.full_path)){this.isLoading=!1,this.$refs.toast.showToast("Personality already mounted",4,!1);return}const e=await this.mount_personality(t.personality);console.log("mount_personality res",e),e&&e.status&&e.active_personality_id>-1&&e.personalities.includes(t.personality.full_path)?(this.configFile.personalities=e.personalities,this.$refs.toast.showToast("Personality mounted",4,!0),t.isMounted=!0,(await this.select_personality(t.personality)).status&&this.$refs.toast.showToast(`Selected personality: +This will delete all your configurations and get back to default configuration.`).then(t=>{t&&Se.post("/reset_settings",{}).then(e=>{if(e)return e.status?this.$refs.messageBox.showMessage("Settings have been reset correctly"):this.$refs.messageBox.showMessage("Couldn't reset settings!"),e.data}).catch(e=>(console.log(e.message,"reset_configuration"),this.$refs.messageBox.showMessage("Couldn't reset settings!"),{status:!1}))})},async api_get_req(t){try{const e=await Se.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - settings");return}},closeToast(){this.showToast=!1},async getPersonalitiesArr(){this.isLoading=!0,this.personalities=[];const t=await this.api_get_req("get_all_personalities"),e=this.$store.config,n=Object.keys(t);for(let s=0;s{const p=e.personalities.includes(o+"/"+l+"/"+h.folder);let g={};return g=h,g.category=l,g.language=o,g.full_path=o+"/"+l+"/"+h.folder,g.isMounted=p,g});this.personalities.length==0?this.personalities=u:this.personalities=this.personalities.concat(u)}}this.personalities.sort((s,o)=>s.name.localeCompare(o.name)),this.personalitiesFiltered=this.personalities.filter(s=>s.category===this.configFile.personality_category&&s.language===this.configFile.personality_language),this.personalitiesFiltered.sort(),console.log("per filtered",this.personalitiesFiltered),this.isLoading=!1},async filterPersonalities(){if(!this.searchPersonality){this.personalitiesFiltered=this.personalities.filter(n=>n.category===this.configFile.personality_category&&n.language===this.configFile.personality_language),this.personalitiesFiltered.sort(),this.searchPersonalityInProgress=!1;return}const t=this.searchPersonality.toLowerCase(),e=this.personalities.filter(n=>{if(n.name&&n.name.toLowerCase().includes(t)||n.description&&n.description.toLowerCase().includes(t)||n.full_path&&n.full_path.toLowerCase().includes(t))return n});e.length>0?this.personalitiesFiltered=e.sort():(this.personalitiesFiltered=this.personalities.filter(n=>n.category===this.configFile.personality_category&&n.language===this.configFile.personality_language),this.personalitiesFiltered.sort()),this.searchPersonalityInProgress=!1},async filterModels(){if(!this.searchModel){console.log("Searching model"),this.modelsFiltered=this.models,this.modelsFiltered.sort(),this.searchModelInProgress=!1;return}const t=this.searchModel.toLowerCase(),e=this.models.filter(n=>{if(n.title&&n.title.toLowerCase().includes(t)||n.description&&n.description.toLowerCase().includes(t)||n.path&&n.path.toLowerCase().includes(t))return n});e.length>0?this.modelsFiltered=e.sort():(this.modelsFiltered=this.models,this.modelsFiltered.sort()),this.searchModelInProgress=!1},computedFileSize(t){return Ht(t)},async mount_personality(t){if(!t)return{status:!1,error:"no personality - mount_personality"};try{const e={language:t.language,category:t.category,folder:t.folder},n=await Se.post("/mount_personality",e);if(n)return n.data}catch(e){console.log(e.message,"mount_personality - settings");return}},async unmount_personality(t){if(!t)return{status:!1,error:"no personality - unmount_personality"};const e={language:t.language,category:t.category,folder:t.folder};try{const n=await Se.post("/unmount_personality",e);if(n)return n.data}catch(n){console.log(n.message,"unmount_personality - settings");return}},async select_personality(t){if(!t)return{status:!1,error:"no personality - select_personality"};console.log("select pers",t);const n={id:this.configFile.personalities.findIndex(s=>s===t.full_path)};try{const s=await Se.post("/select_personality",n);if(s)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesArr").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),s.data}catch(s){console.log(s.message,"select_personality - settings");return}},async mountPersonality(t){if(this.isLoading=!0,console.log("mount pers",t),!t)return;if(this.configFile.personalities.includes(t.personality.full_path)){this.isLoading=!1,this.$refs.toast.showToast("Personality already mounted",4,!1);return}const e=await this.mount_personality(t.personality);console.log("mount_personality res",e),e&&e.status&&e.active_personality_id>-1&&e.personalities.includes(t.personality.full_path)?(this.configFile.personalities=e.personalities,this.$refs.toast.showToast("Personality mounted",4,!0),t.isMounted=!0,(await this.select_personality(t.personality)).status&&this.$refs.toast.showToast(`Selected personality: `+t.personality.name,4,!0),this.$store.dispatch("refreshMountedPersonalities")):(t.isMounted=!1,this.$refs.toast.showToast(`Could not mount personality Error: `+e.error+` Response: `+e,4,!1)),this.isLoading=!1},async unmountPersonality(t){if(this.isLoading=!0,!t)return;const e=await this.unmount_personality(t.personality||t);if(e.status){this.configFile.personalities=e.personalities,this.$refs.toast.showToast("Personality unmounted",4,!0);const n=this.personalities.findIndex(a=>a.full_path==t.full_path),s=this.personalitiesFiltered.findIndex(a=>a.full_path==t.full_path),o=this.$refs.personalitiesZoo.findIndex(a=>a.full_path==t.full_path);console.log("ppp",this.personalities[n]),this.personalities[n].isMounted=!1,s>-1&&(this.personalitiesFiltered[s].isMounted=!1),o>-1&&(this.$refs.personalitiesZoo[o].isMounted=!1),this.$store.dispatch("refreshMountedPersonalities");const r=this.mountedPersArr[this.mountedPersArr.length-1];console.log(r,this.mountedPersArr.length),(await this.select_personality(t.personality)).status&&this.$refs.toast.showToast(`Selected personality: `+r.name,4,!0)}else this.$refs.toast.showToast(`Could not unmount personality Error: `+e.error,4,!1);this.isLoading=!1},onPersonalityReinstall(t){console.log("on reinstall ",t),this.isLoading=!0,Se.post("/reinstall_personality",{name:t.personality.path}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$refs.toast.showToast("Personality reinstalled successfully!",4,!0):this.$refs.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$refs.toast.showToast(`Could not reinstall personality -`+e.message,4,!1),{status:!1}))},onPersonalityMounted(t){console.log("on sel ",t),this.configFile.personalities.includes(t.full_path)?this.configFile.personalities.length==1?this.$refs.toast.showToast("Can't unmount last personality",4,!1):this.unmountPersonality(t):this.mountPersonality(t)},personalityImgPlacehodler(t){t.target.src=Jn},searchPersonality_func(){clearTimeout(this.searchPersonalityTimer),this.searchPersonality&&(this.searchPersonalityInProgress=!0,setTimeout(this.filterPersonalities,this.searchPersonalityTimerInterval))},searchModel_func(){clearTimeout(this.searchModelTimer),this.searchModel&&(this.searchModelInProgress=!0,setTimeout(this.filterModels,this.searchModelTimer))}},async mounted(){this.constructor()},activated(){this.isMounted&&this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(t){this.$store.commit("setConfig",t)}},userName:{get(){return this.$store.state.config.user_name},set(t){this.$store.state.config.user_name=t}},auto_update:{get(){return this.$store.state.config.auto_update},set(t){this.$store.state.config.auto_update=t}},use_user_name_in_discussions:{get(){return this.$store.state.config.use_user_name_in_discussions},set(t){this.$store.state.config.use_user_name_in_discussions=t}},db_path:{get(){return this.$store.state.config.db_path},set(t){this.$store.state.config.db_path=t}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}},bindingsArr:{get(){return this.$store.state.bindingsArr},set(t){this.$store.commit("setBindingsArr",t)}},modelsArr:{get(){return this.$store.state.modelsArr},set(t){this.$store.commit("setModelsArr",t)}},models:{get(){return this.$store.state.models_zoo},set(t){this.$store.commit("setModelsZoo",t)}},diskUsage:{get(){return this.$store.state.diskUsage},set(t){this.$store.commit("setDiskUsage",t)}},ramUsage:{get(){return this.$store.state.ramUsage},set(t){this.$store.commit("setRamUsage",t)}},vramUsage:{get(){return this.$store.state.vramUsage},set(t){this.$store.commit("setVramUsage",t)}},disk_available_space(){return this.computedFileSize(this.diskUsage.available_space)},disk_binding_models_usage(){return console.log(`this.diskUsage : ${this.diskUsage}`),this.computedFileSize(this.diskUsage.binding_models_usage)},disk_percent_usage(){return this.diskUsage.percent_usage},disk_total_space(){return this.computedFileSize(this.diskUsage.total_space)},ram_available_space(){return this.computedFileSize(this.ramUsage.available_space)},ram_usage(){return this.computedFileSize(this.ramUsage.ram_usage)},ram_percent_usage(){return this.ramUsage.percent_usage},ram_total_space(){return this.computedFileSize(this.ramUsage.total_space)},imgBinding(){if(this.isMounted)try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(t=>t.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return Cr}},imgModel(){if(this.isMounted)try{return this.$refs.modelZoo[this.$refs.modelZoo.findIndex(t=>t.title==this.configFile.model_name)].$refs.imgElement.src}catch{return Cr}},model_name(){if(this.isMounted)return this.configFile.model_name},binding_name(){if(!this.isMounted)return;const t=this.bindingsArr.findIndex(e=>e.folder===this.configFile.binding_name);if(t>-1)return this.bindingsArr[t].name},active_pesonality(){if(!this.isMounted)return;const t=this.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);if(t>-1)return this.personalities[t].name},speed_computed(){return Ht(this.addModel.speed)},total_size_computed(){return Ht(this.addModel.total_size)},downloaded_size_computed(){return Ht(this.addModel.downloaded_size)}},watch:{bec_collapsed(){_e(()=>{ye.replace()})},pc_collapsed(){_e(()=>{ye.replace()})},mc_collapsed(){_e(()=>{ye.replace()})},sc_collapsed(){_e(()=>{ye.replace()})},showConfirmation(){_e(()=>{ye.replace()})},mzl_collapsed(){_e(()=>{ye.replace()})},pzl_collapsed(){_e(()=>{ye.replace()})},bzl_collapsed(){_e(()=>{ye.replace()})},all_collapsed(t){this.collapseAll(t),_e(()=>{ye.replace()})},settingsChanged(t){this.$store.state.settingsChanged=t,_e(()=>{ye.replace()})},isLoading(){_e(()=>{ye.replace()})},searchPersonality(t){t==""&&this.filterPersonalities()},searchModel(t){t==""&&this.filterModels()},mzdc_collapsed(){_e(()=>{ye.replace()})}},async beforeRouteLeave(t){if(await this.$router.isReady(),this.settingsChanged)return await this.$refs.yesNoDialog.askQuestion(`Did You forgot to apply changes? +`+e.message,4,!1),{status:!1}))},onPersonalityMounted(t){console.log("on sel ",t),this.configFile.personalities.includes(t.full_path)?this.configFile.personalities.length==1?this.$refs.toast.showToast("Can't unmount last personality",4,!1):this.unmountPersonality(t):this.mountPersonality(t)},personalityImgPlacehodler(t){t.target.src=Jn},searchPersonality_func(){clearTimeout(this.searchPersonalityTimer),this.searchPersonality&&(this.searchPersonalityInProgress=!0,setTimeout(this.filterPersonalities,this.searchPersonalityTimerInterval))},searchModel_func(){clearTimeout(this.searchModelTimer),this.searchModel&&(this.searchModelInProgress=!0,setTimeout(this.filterModels,this.searchModelTimer))}},async mounted(){this.constructor()},activated(){this.isMounted&&this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(t){this.$store.commit("setConfig",t)}},userName:{get(){return this.$store.state.config.user_name},set(t){this.$store.state.config.user_name=t}},user_avatar:{get(){return"/user_infos/"+this.$store.state.config.user_avatar},set(t){this.$store.state.config.user_avatar=t}},auto_update:{get(){return this.$store.state.config.auto_update},set(t){this.$store.state.config.auto_update=t}},use_user_name_in_discussions:{get(){return this.$store.state.config.use_user_name_in_discussions},set(t){this.$store.state.config.use_user_name_in_discussions=t}},db_path:{get(){return this.$store.state.config.db_path},set(t){this.$store.state.config.db_path=t}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}},bindingsArr:{get(){return this.$store.state.bindingsArr},set(t){this.$store.commit("setBindingsArr",t)}},modelsArr:{get(){return this.$store.state.modelsArr},set(t){this.$store.commit("setModelsArr",t)}},models:{get(){return this.$store.state.models_zoo},set(t){this.$store.commit("setModelsZoo",t)}},diskUsage:{get(){return this.$store.state.diskUsage},set(t){this.$store.commit("setDiskUsage",t)}},ramUsage:{get(){return this.$store.state.ramUsage},set(t){this.$store.commit("setRamUsage",t)}},vramUsage:{get(){return this.$store.state.vramUsage},set(t){this.$store.commit("setVramUsage",t)}},disk_available_space(){return this.computedFileSize(this.diskUsage.available_space)},disk_binding_models_usage(){return console.log(`this.diskUsage : ${this.diskUsage}`),this.computedFileSize(this.diskUsage.binding_models_usage)},disk_percent_usage(){return this.diskUsage.percent_usage},disk_total_space(){return this.computedFileSize(this.diskUsage.total_space)},ram_available_space(){return this.computedFileSize(this.ramUsage.available_space)},ram_usage(){return this.computedFileSize(this.ramUsage.ram_usage)},ram_percent_usage(){return this.ramUsage.percent_usage},ram_total_space(){return this.computedFileSize(this.ramUsage.total_space)},imgBinding(){if(this.isMounted)try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(t=>t.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return Cr}},imgModel(){if(this.isMounted)try{return this.$refs.modelZoo[this.$refs.modelZoo.findIndex(t=>t.title==this.configFile.model_name)].$refs.imgElement.src}catch{return Cr}},model_name(){if(this.isMounted)return this.configFile.model_name},binding_name(){if(!this.isMounted)return;const t=this.bindingsArr.findIndex(e=>e.folder===this.configFile.binding_name);if(t>-1)return this.bindingsArr[t].name},active_pesonality(){if(!this.isMounted)return;const t=this.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);if(t>-1)return this.personalities[t].name},speed_computed(){return Ht(this.addModel.speed)},total_size_computed(){return Ht(this.addModel.total_size)},downloaded_size_computed(){return Ht(this.addModel.downloaded_size)}},watch:{bec_collapsed(){_e(()=>{ye.replace()})},pc_collapsed(){_e(()=>{ye.replace()})},mc_collapsed(){_e(()=>{ye.replace()})},sc_collapsed(){_e(()=>{ye.replace()})},showConfirmation(){_e(()=>{ye.replace()})},mzl_collapsed(){_e(()=>{ye.replace()})},pzl_collapsed(){_e(()=>{ye.replace()})},bzl_collapsed(){_e(()=>{ye.replace()})},all_collapsed(t){this.collapseAll(t),_e(()=>{ye.replace()})},settingsChanged(t){this.$store.state.settingsChanged=t,_e(()=>{ye.replace()})},isLoading(){_e(()=>{ye.replace()})},searchPersonality(t){t==""&&this.filterPersonalities()},searchModel(t){t==""&&this.filterModels()},mzdc_collapsed(){_e(()=>{ye.replace()})}},async beforeRouteLeave(t){if(await this.$router.isReady(),this.settingsChanged)return await this.$refs.yesNoDialog.askQuestion(`Did You forgot to apply changes? You need to apply changes before you leave, or else.`,"Apply configuration","Cancel")&&this.applyConfiguration(),!1;if(!this.isModelSelected)return await this.$refs.yesNoDialog.askQuestion(`Did You forgot to select model? -You need to select model before you leave, or else.`,"Ok","Cancel"),!1}},fe=t=>(ns("data-v-cdb9dcf7"),t=t(),ss(),t),u5={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-0"},f5={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg"},h5={key:0,class:"flex gap-3 flex-1 items-center duration-75"},p5=fe(()=>u("i",{"data-feather":"x"},null,-1)),g5=[p5],m5=fe(()=>u("i",{"data-feather":"check"},null,-1)),_5=[m5],b5={key:1,class:"flex gap-3 flex-1 items-center"},y5=fe(()=>u("i",{"data-feather":"save"},null,-1)),v5=[y5],w5=fe(()=>u("i",{"data-feather":"refresh-ccw"},null,-1)),x5=[w5],k5=fe(()=>u("i",{"data-feather":"list"},null,-1)),E5=[k5],C5={class:"flex gap-3 flex-1 items-center justify-end"},A5={class:"flex gap-3 items-center"},S5={key:0,class:"flex gap-3 items-center"},T5=fe(()=>u("i",{"data-feather":"check"},null,-1)),M5=[T5],O5={key:1,role:"status"},R5=fe(()=>u("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),u("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),N5=fe(()=>u("span",{class:"sr-only"},"Loading...",-1)),D5={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},L5={class:"flex flex-row p-3"},I5=fe(()=>u("i",{"data-feather":"chevron-right"},null,-1)),P5=[I5],F5=fe(()=>u("i",{"data-feather":"chevron-down"},null,-1)),B5=[F5],$5=fe(()=>u("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),z5=fe(()=>u("div",{class:"mr-2"},"|",-1)),j5={class:"text-base font-semibold cursor-pointer select-none items-center"},U5={class:"flex gap-2 items-center"},q5={key:0},H5={class:"flex gap-2 items-center"},V5=["title"],G5=js('',34),K5=[G5],W5={class:"font-bold font-large text-lg"},Z5={key:1},Y5={class:"flex gap-2 items-center"},Q5=js('',1),J5={class:"font-bold font-large text-lg"},X5=fe(()=>u("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),e4={class:"font-bold font-large text-lg"},t4=fe(()=>u("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),n4={class:"font-bold font-large text-lg"},s4={class:"mb-2"},o4=fe(()=>u("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[u("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[u("path",{fill:"currentColor",d:"M17 17H7V7h10m4 4V9h-2V7a2 2 0 0 0-2-2h-2V3h-2v2h-2V3H9v2H7c-1.11 0-2 .89-2 2v2H3v2h2v2H3v2h2v2a2 2 0 0 0 2 2h2v2h2v-2h2v2h2v-2h2a2 2 0 0 0 2-2v-2h2v-2h-2v-2m-6 2h-2v-2h2m2-2H9v6h6V9Z"})]),we(" CPU Ram usage: ")],-1)),r4={class:"flex flex-col mx-2"},i4=fe(()=>u("b",null,"Avaliable ram: ",-1)),a4=fe(()=>u("b",null,"Ram usage: ",-1)),l4={class:"p-2"},c4={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},d4={class:"mb-2"},u4=fe(()=>u("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[u("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),we(" Disk usage: ")],-1)),f4={class:"flex flex-col mx-2"},h4=fe(()=>u("b",null,"Avaliable disk space: ",-1)),p4=fe(()=>u("b",null,"Disk usage: ",-1)),g4={class:"p-2"},m4={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},_4={class:"mb-2"},b4=js('',1),y4={class:"flex flex-col mx-2"},v4=fe(()=>u("b",null,"Model: ",-1)),w4=fe(()=>u("b",null,"Avaliable vram: ",-1)),x4=fe(()=>u("b",null,"GPU usage: ",-1)),k4={class:"p-2"},E4={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},C4={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},A4={class:"flex flex-row p-3"},S4=fe(()=>u("i",{"data-feather":"chevron-right"},null,-1)),T4=[S4],M4=fe(()=>u("i",{"data-feather":"chevron-down"},null,-1)),O4=[M4],R4=fe(()=>u("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1)),N4={style:{width:"100%"}},D4=fe(()=>u("td",{style:{"min-width":"200px"}},[u("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),L4={style:{"min-width":"300px"}},I4=fe(()=>u("td",{style:{"min-width":"200px"}},[u("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),P4={style:{width:"100%"}},F4={style:{"min-width":"300px"}},B4=fe(()=>u("td",{style:{"min-width":"200px"}},[u("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),$4={style:{width:"100%"}},z4={style:{"min-width":"300px"}},j4=fe(()=>u("td",{style:{"min-width":"200px"}},[u("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),U4={style:{width:"100%"}},q4=["src"],H4={style:{"min-width":"300px"}},V4=fe(()=>u("td",{style:{"min-width":"200px"}},[u("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),G4={style:{"min-width":"300px"}},K4={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},W4={class:"flex flex-row p-3"},Z4=fe(()=>u("i",{"data-feather":"chevron-right"},null,-1)),Y4=[Z4],Q4=fe(()=>u("i",{"data-feather":"chevron-down"},null,-1)),J4=[Q4],X4=fe(()=>u("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),eC={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},tC=fe(()=>u("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),nC={key:1,class:"mr-2"},sC={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},oC={class:"flex gap-1 items-center"},rC=["src"],iC={class:"font-bold font-large text-lg line-clamp-1"},aC={key:0,class:"mb-2"},lC={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},cC=fe(()=>u("i",{"data-feather":"chevron-up"},null,-1)),dC=[cC],uC=fe(()=>u("i",{"data-feather":"chevron-down"},null,-1)),fC=[uC],hC={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},pC={class:"flex flex-row p-3"},gC=fe(()=>u("i",{"data-feather":"chevron-right"},null,-1)),mC=[gC],_C=fe(()=>u("i",{"data-feather":"chevron-down"},null,-1)),bC=[_C],yC=fe(()=>u("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),vC={class:"flex flex-row items-center"},wC={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},xC=fe(()=>u("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),kC={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},EC=fe(()=>u("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),CC={key:2,class:"mr-2"},AC={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},SC={class:"flex gap-1 items-center"},TC=["src"],MC={class:"font-bold font-large text-lg line-clamp-1"},OC={class:"mx-2 mb-4"},RC={class:"relative"},NC={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},DC={key:0},LC=fe(()=>u("div",{role:"status"},[u("svg",{"aria-hidden":"true",class:"inline w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),u("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),u("span",{class:"sr-only"},"Loading...")],-1)),IC=[LC],PC={key:1},FC=fe(()=>u("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[u("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)),BC=[FC],$C={key:0},zC={key:0,class:"mb-2"},jC={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},UC={key:1},qC={key:0,class:"mb-2"},HC={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},VC=fe(()=>u("i",{"data-feather":"chevron-up"},null,-1)),GC=[VC],KC=fe(()=>u("i",{"data-feather":"chevron-down"},null,-1)),WC=[KC],ZC={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},YC={class:"flex flex-row p-3"},QC=fe(()=>u("i",{"data-feather":"chevron-right"},null,-1)),JC=[QC],XC=fe(()=>u("i",{"data-feather":"chevron-down"},null,-1)),e3=[XC],t3=fe(()=>u("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Add models for binding",-1)),n3={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},s3=fe(()=>u("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),o3={key:1,class:"mr-2"},r3={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},i3={class:"flex gap-1 items-center"},a3=["src"],l3={class:"font-bold font-large text-lg line-clamp-1"},c3={class:"mb-2"},d3={class:"p-2"},u3={key:0},f3={class:"mb-3"},h3=fe(()=>u("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),p3={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},g3=fe(()=>u("div",{role:"status",class:"justify-center"},null,-1)),m3={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},_3={class:"w-full p-2"},b3={class:"flex justify-between mb-1"},y3=js(' Downloading Loading...',1),v3={class:"text-sm font-medium text-blue-700 dark:text-white"},w3=["title"],x3={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},k3={class:"flex justify-between mb-1"},E3={class:"text-base font-medium text-blue-700 dark:text-white"},C3={class:"text-sm font-medium text-blue-700 dark:text-white"},A3={class:"flex flex-grow"},S3={class:"flex flex-row flex-grow gap-3"},T3={class:"p-2 text-center grow"},M3={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},O3={class:"flex flex-row p-3 items-center"},R3=fe(()=>u("i",{"data-feather":"chevron-right"},null,-1)),N3=[R3],D3=fe(()=>u("i",{"data-feather":"chevron-down"},null,-1)),L3=[D3],I3=fe(()=>u("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),P3={key:0,class:"mr-2"},F3={class:"mr-2 font-bold font-large text-lg line-clamp-1"},B3={key:1,class:"mr-2"},$3={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},z3={key:0,class:"flex -space-x-4 items-center"},j3={class:"group items-center flex flex-row"},U3=["onClick"],q3=["src","title"],H3=["onClick"],V3=fe(()=>u("span",{class:"hidden group-hover:block top-0 left-7 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[u("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[u("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})])],-1)),G3=[V3],K3={class:"mx-2 mb-4"},W3=fe(()=>u("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),Z3={class:"relative"},Y3={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Q3={key:0},J3=fe(()=>u("div",{role:"status"},[u("svg",{"aria-hidden":"true",class:"inline w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),u("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),u("span",{class:"sr-only"},"Loading...")],-1)),X3=[J3],e9={key:1},t9=fe(()=>u("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[u("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)),n9=[t9],s9={key:0,class:"mx-2 mb-4"},o9={for:"persLang",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},r9=["selected"],i9={key:1,class:"mx-2 mb-4"},a9={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},l9=["selected"],c9={key:0,class:"mb-2"},d9={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},u9=fe(()=>u("i",{"data-feather":"chevron-up"},null,-1)),f9=[u9],h9=fe(()=>u("i",{"data-feather":"chevron-down"},null,-1)),p9=[h9],g9={class:"flex flex-col mb-2 p-3 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},m9={class:"flex flex-row"},_9=fe(()=>u("i",{"data-feather":"chevron-right"},null,-1)),b9=[_9],y9=fe(()=>u("i",{"data-feather":"chevron-down"},null,-1)),v9=[y9],w9=fe(()=>u("h3",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1)),x9={class:"m-2"},k9={class:"flex flex-row gap-2 items-center"},E9=fe(()=>u("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1)),C9={class:"m-2"},A9=fe(()=>u("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),S9={class:"m-2"},T9={class:"flex flex-col align-bottom"},M9={class:"relative"},O9=fe(()=>u("p",{class:"absolute left-0 mt-6"},[u("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),R9={class:"absolute right-0"},N9={class:"m-2"},D9={class:"flex flex-col align-bottom"},L9={class:"relative"},I9=fe(()=>u("p",{class:"absolute left-0 mt-6"},[u("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),P9={class:"absolute right-0"},F9={class:"m-2"},B9={class:"flex flex-col align-bottom"},$9={class:"relative"},z9=fe(()=>u("p",{class:"absolute left-0 mt-6"},[u("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),j9={class:"absolute right-0"},U9={class:"m-2"},q9={class:"flex flex-col align-bottom"},H9={class:"relative"},V9=fe(()=>u("p",{class:"absolute left-0 mt-6"},[u("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),G9={class:"absolute right-0"},K9={class:"m-2"},W9={class:"flex flex-col align-bottom"},Z9={class:"relative"},Y9=fe(()=>u("p",{class:"absolute left-0 mt-6"},[u("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),Q9={class:"absolute right-0"},J9={class:"m-2"},X9={class:"flex flex-col align-bottom"},e8={class:"relative"},t8=fe(()=>u("p",{class:"absolute left-0 mt-6"},[u("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),n8={class:"absolute right-0"};function s8(t,e,n,s,o,r){const i=lt("BindingEntry"),a=lt("model-entry"),l=lt("personality-entry"),c=lt("YesNoDialog"),d=lt("AddModelDialog"),f=lt("MessageBox"),p=lt("Toast"),g=lt("UniversalForm");return A(),M(Le,null,[u("div",u5,[u("div",f5,[o.showConfirmation?(A(),M("div",h5,[u("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=le(h=>o.showConfirmation=!1,["stop"]))},g5),u("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=le(h=>r.save_configuration(),["stop"]))},_5)])):j("",!0),o.showConfirmation?j("",!0):(A(),M("div",b5,[u("button",{title:"Save configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=h=>o.showConfirmation=!0)},v5),u("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[3]||(e[3]=h=>r.reset_configuration())},x5),u("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[4]||(e[4]=le(h=>o.all_collapsed=!o.all_collapsed,["stop"]))},E5)])),u("div",C5,[u("div",A5,[o.settingsChanged?(A(),M("div",S5,[we(" Apply changes: "),o.isLoading?j("",!0):(A(),M("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[5]||(e[5]=le(h=>r.applyConfiguration(),["stop"]))},M5))])):j("",!0),o.isLoading?(A(),M("div",O5,[u("p",null,Y(o.loading_text),1),R5,N5])):j("",!0)])])]),u("div",{class:Te(o.isLoading?"pointer-events-none opacity-30":"")},[u("div",D5,[u("div",L5,[u("button",{onClick:e[6]||(e[6]=le(h=>o.sc_collapsed=!o.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[me(u("div",null,P5,512),[[at,o.sc_collapsed]]),me(u("div",null,B5,512),[[at,!o.sc_collapsed]]),$5,z5,u("div",j5,[u("div",U5,[u("div",null,[r.vramUsage.gpus&&r.vramUsage.gpus.length==1?(A(),M("div",q5,[(A(!0),M(Le,null,Qe(r.vramUsage.gpus,h=>(A(),M("div",H5,[(A(),M("svg",{title:h.gpu_model,"aria-hidden":"true",class:"w-10 h-10 fill-secondary",viewBox:"0 -3 82 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},K5,8,V5)),u("h3",W5,[u("div",null,Y(r.computedFileSize(h.used_vram))+" / "+Y(r.computedFileSize(h.total_vram))+" ("+Y(h.percentage)+"%) ",1)])]))),256))])):j("",!0),r.vramUsage.gpus&&r.vramUsage.gpus.length>1?(A(),M("div",Z5,[u("div",Y5,[Q5,u("h3",J5,[u("div",null,Y(r.vramUsage.gpus.length)+"x ",1)])])])):j("",!0)]),X5,u("h3",e4,[u("div",null,Y(r.ram_usage)+" / "+Y(r.ram_total_space)+" ("+Y(r.ram_percent_usage)+"%)",1)]),t4,u("h3",n4,[u("div",null,Y(r.disk_binding_models_usage)+" / "+Y(r.disk_total_space)+" ("+Y(r.disk_percent_usage)+"%)",1)])])])])]),u("div",{class:Te([{hidden:o.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[u("div",s4,[o4,u("div",r4,[u("div",null,[i4,we(Y(r.ram_available_space),1)]),u("div",null,[a4,we(" "+Y(r.ram_usage)+" / "+Y(r.ram_total_space)+" ("+Y(r.ram_percent_usage)+")% ",1)])]),u("div",l4,[u("div",c4,[u("div",{class:"bg-blue-600 h-2.5 rounded-full",style:jt("width: "+r.ram_percent_usage+"%;")},null,4)])])]),u("div",d4,[u4,u("div",f4,[u("div",null,[h4,we(Y(r.disk_available_space),1)]),u("div",null,[p4,we(" "+Y(r.disk_binding_models_usage)+" / "+Y(r.disk_total_space)+" ("+Y(r.disk_percent_usage)+"%)",1)])]),u("div",g4,[u("div",m4,[u("div",{class:"bg-blue-600 h-2.5 rounded-full",style:jt("width: "+r.disk_percent_usage+"%;")},null,4)])])]),(A(!0),M(Le,null,Qe(r.vramUsage.gpus,h=>(A(),M("div",_4,[b4,u("div",y4,[u("div",null,[v4,we(Y(h.gpu_model),1)]),u("div",null,[w4,we(Y(this.computedFileSize(h.available_space)),1)]),u("div",null,[x4,we(" "+Y(this.computedFileSize(h.used_vram))+" / "+Y(this.computedFileSize(h.total_vram))+" ("+Y(h.percentage)+"%)",1)])]),u("div",k4,[u("div",E4,[u("div",{class:"bg-blue-600 h-2.5 rounded-full",style:jt("width: "+h.percentage+"%;")},null,4)])])]))),256))],2)]),u("div",C4,[u("div",A4,[u("button",{onClick:e[7]||(e[7]=le(h=>o.minconf_collapsed=!o.minconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[me(u("div",null,T4,512),[[at,o.minconf_collapsed]]),me(u("div",null,O4,512),[[at,!o.minconf_collapsed]]),R4])]),u("div",{class:Te([{hidden:o.minconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[u("table",N4,[u("tr",null,[D4,u("td",null,[me(u("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[8]||(e[8]=h=>r.auto_update=h),class:"mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[$t,r.auto_update]])]),u("td",L4,[u("button",{class:"hover:text-secondary bg-blue-100 m-2 p-2 duration-75 flex justify-center w-full hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",onClick:e[9]||(e[9]=h=>r.update_setting("auto_update",r.auto_update))}," Validate ")])]),u("tr",null,[I4,u("td",P4,[me(u("input",{type:"text",id:"db_path",required:"","onUpdate:modelValue":e[10]||(e[10]=h=>r.db_path=h),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,r.db_path]])]),u("td",F4,[u("button",{class:"hover:text-secondary bg-blue-100 m-2 p-2 duration-75 flex justify-center w-full hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",onClick:e[11]||(e[11]=h=>r.update_setting("db_path",r.db_path))}," Select Database ")])]),u("tr",null,[B4,u("td",$4,[me(u("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[12]||(e[12]=h=>r.userName=h),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,r.userName]])]),u("td",z4,[u("button",{class:"hover:text-secondary bg-blue-100 m-2 p-2 duration-75 flex justify-center w-full hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",onClick:e[13]||(e[13]=h=>r.update_setting("user_name",r.userName))}," Validate ")])]),u("tr",null,[j4,u("td",U4,[u("img",{src:t.avatar},null,8,q4)]),u("td",H4,[u("button",{class:"hover:text-secondary bg-blue-100 m-2 p-2 duration-75 flex justify-center w-full hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",onClick:e[14]||(e[14]=h=>r.update_setting("user_name",r.userName))}," Validate ")])]),u("tr",null,[V4,u("td",null,[me(u("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[15]||(e[15]=h=>r.use_user_name_in_discussions=h),class:"mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[$t,r.use_user_name_in_discussions]])]),u("td",G4,[u("button",{class:"hover:text-secondary bg-blue-100 m-2 p-2 duration-75 flex justify-center w-full hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",onClick:e[16]||(e[16]=h=>r.update_setting("use_user_name_in_discussions",r.use_user_name_in_discussions))}," Validate ")])])])],2)]),u("div",K4,[u("div",W4,[u("button",{onClick:e[17]||(e[17]=le(h=>o.bzc_collapsed=!o.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[me(u("div",null,Y4,512),[[at,o.bzc_collapsed]]),me(u("div",null,J4,512),[[at,!o.bzc_collapsed]]),X4,r.configFile.binding_name?j("",!0):(A(),M("div",eC,[tC,we(" No binding selected! ")])),r.configFile.binding_name?(A(),M("div",nC,"|")):j("",!0),r.configFile.binding_name?(A(),M("div",sC,[u("div",oC,[u("img",{src:r.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,rC),u("h3",iC,Y(r.binding_name),1)])])):j("",!0)])]),u("div",{class:Te([{hidden:o.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[r.bindingsArr.length>0?(A(),M("div",aC,[u("label",lC," Bindings: ("+Y(r.bindingsArr.length)+") ",1),u("div",{class:Te(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",o.bzl_collapsed?"":"max-h-96"])},[Ae(Ut,{name:"list"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(r.bindingsArr,(h,m)=>(A(),ot(i,{ref_for:!0,ref:"bindingZoo",key:"index-"+m+"-"+h.folder,binding:h,"on-selected":r.onSelectedBinding,"on-reinstall":r.onReinstallBinding,"on-install":r.onInstallBinding,"on-settings":r.onSettingsBinding,"on-reload-binding":r.onReloadBinding,selected:h.folder===r.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):j("",!0),o.bzl_collapsed?(A(),M("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[18]||(e[18]=h=>o.bzl_collapsed=!o.bzl_collapsed)},dC)):(A(),M("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[19]||(e[19]=h=>o.bzl_collapsed=!o.bzl_collapsed)},fC))],2)]),u("div",hC,[u("div",pC,[u("button",{onClick:e[20]||(e[20]=le(h=>o.mzc_collapsed=!o.mzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[me(u("div",null,mC,512),[[at,o.mzc_collapsed]]),me(u("div",null,bC,512),[[at,!o.mzc_collapsed]]),yC,u("div",vC,[r.configFile.binding_name?j("",!0):(A(),M("div",wC,[xC,we(" Select binding first! ")])),!o.isModelSelected&&r.configFile.binding_name?(A(),M("div",kC,[EC,we(" No model selected! ")])):j("",!0),r.configFile.model_name?(A(),M("div",CC,"|")):j("",!0),r.configFile.model_name?(A(),M("div",AC,[u("div",SC,[u("img",{src:r.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,TC),u("h3",MC,Y(r.model_name),1)])])):j("",!0)])])]),u("div",{class:Te([{hidden:o.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[u("div",OC,[u("form",null,[u("div",RC,[u("div",NC,[o.searchModelInProgress?(A(),M("div",DC,IC)):j("",!0),o.searchModelInProgress?j("",!0):(A(),M("div",PC,BC))]),me(u("input",{type:"search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search models...",required:"","onUpdate:modelValue":e[21]||(e[21]=h=>o.searchModel=h),onKeyup:e[22]||(e[22]=le((...h)=>r.searchModel_func&&r.searchModel_func(...h),["stop"]))},null,544),[[Re,o.searchModel]]),o.searchModel?(A(),M("button",{key:0,onClick:e[23]||(e[23]=le(h=>o.searchModel="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):j("",!0)])])]),o.searchModel?(A(),M("div",$C,[o.modelsFiltered.length>0?(A(),M("div",zC,[u("label",jC," Search results: ("+Y(o.modelsFiltered.length)+") ",1),u("div",{class:Te(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",o.mzl_collapsed?"":"max-h-96"])},[Ae(Ut,{name:"list"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(o.modelsFiltered,(h,m)=>(A(),ot(a,{ref_for:!0,ref:"modelZoo",key:"index-"+m+"-"+h.title,title:h.title,icon:h.icon,path:h.path,owner:h.owner,owner_link:h.owner_link,license:h.license,description:h.description,"is-installed":h.isInstalled,"on-install":r.onInstall,"on-uninstall":r.onUninstall,"on-selected":r.onSelected,selected:h.title===r.configFile.model_name,model:h,model_type:h.model_type,"on-copy":r.onCopy,"on-copy-link":r.onCopyLink,"on-cancel-install":r.onCancelInstall},null,8,["title","icon","path","owner","owner_link","license","description","is-installed","on-install","on-uninstall","on-selected","selected","model","model_type","on-copy","on-copy-link","on-cancel-install"]))),128))]),_:1})],2)])):j("",!0)])):j("",!0),o.searchModel?j("",!0):(A(),M("div",UC,[r.models.length>0?(A(),M("div",qC,[u("label",HC," Models: ("+Y(r.models.length)+") ",1),u("div",{class:Te(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",o.mzl_collapsed?"":"max-h-96"])},[Ae(Ut,{name:"list"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(r.models,(h,m)=>(A(),ot(a,{ref_for:!0,ref:"modelZoo",key:"index-"+m+"-"+h.title,title:h.title,icon:h.icon,path:h.path,owner:h.owner,owner_link:h.owner_link,license:h.license,description:h.description,"is-installed":h.isInstalled,"on-install":r.onInstall,"on-uninstall":r.onUninstall,"on-selected":r.onSelected,selected:h.title===r.configFile.model_name,model:h,model_type:h.model_type,"on-copy":r.onCopy,"on-copy-link":r.onCopyLink,"on-cancel-install":r.onCancelInstall},null,8,["title","icon","path","owner","owner_link","license","description","is-installed","on-install","on-uninstall","on-selected","selected","model","model_type","on-copy","on-copy-link","on-cancel-install"]))),128))]),_:1})],2)])):j("",!0)])),o.mzl_collapsed?(A(),M("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[24]||(e[24]=(...h)=>r.open_mzl&&r.open_mzl(...h))},GC)):(A(),M("button",{key:3,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[25]||(e[25]=(...h)=>r.open_mzl&&r.open_mzl(...h))},WC))],2)]),u("div",ZC,[u("div",YC,[u("button",{onClick:e[26]||(e[26]=le(h=>o.mzdc_collapsed=!o.mzdc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[me(u("div",null,JC,512),[[at,o.mzdc_collapsed]]),me(u("div",null,e3,512),[[at,!o.mzdc_collapsed]]),t3,r.binding_name?j("",!0):(A(),M("div",n3,[s3,we(" No binding selected! ")])),r.configFile.binding_name?(A(),M("div",o3,"|")):j("",!0),r.configFile.binding_name?(A(),M("div",r3,[u("div",i3,[u("img",{src:r.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,a3),u("h3",l3,Y(r.binding_name),1)])])):j("",!0)])]),u("div",{class:Te([{hidden:o.mzdc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[u("div",c3,[u("div",d3,[o.modelDownlaodInProgress?j("",!0):(A(),M("div",u3,[u("div",f3,[h3,me(u("input",{type:"text","onUpdate:modelValue":e[27]||(e[27]=h=>o.addModel.url=h),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter URL ...",required:""},null,512),[[Re,o.addModel.url]])]),u("button",{type:"button",onClick:e[28]||(e[28]=le(h=>r.onInstallAddModel(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Download")])),o.modelDownlaodInProgress?(A(),M("div",p3,[g3,u("div",m3,[u("div",_3,[u("div",b3,[y3,u("span",v3,Y(Math.floor(o.addModel.progress))+"%",1)]),u("div",{class:"mx-1 opacity-80 line-clamp-1",title:o.addModel.url},Y(o.addModel.url),9,w3),u("div",x3,[u("div",{class:"bg-blue-600 h-2.5 rounded-full",style:jt({width:o.addModel.progress+"%"})},null,4)]),u("div",k3,[u("span",E3,"Download speed: "+Y(r.speed_computed)+"/s",1),u("span",C3,Y(r.downloaded_size_computed)+"/"+Y(r.total_size_computed),1)])])]),u("div",A3,[u("div",S3,[u("div",T3,[u("button",{onClick:e[29]||(e[29]=le((...h)=>r.onCancelInstall&&r.onCancelInstall(...h),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])):j("",!0)])])],2)]),u("div",M3,[u("div",O3,[u("button",{onClick:e[31]||(e[31]=le(h=>o.pzc_collapsed=!o.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[me(u("div",null,N3,512),[[at,o.pzc_collapsed]]),me(u("div",null,L3,512),[[at,!o.pzc_collapsed]]),I3,r.configFile.personalities?(A(),M("div",P3,"|")):j("",!0),u("div",F3,Y(r.active_pesonality),1),r.configFile.personalities?(A(),M("div",B3,"|")):j("",!0),r.configFile.personalities?(A(),M("div",$3,[r.mountedPersArr.length>0?(A(),M("div",z3,[(A(!0),M(Le,null,Qe(r.mountedPersArr,(h,m)=>(A(),M("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:m+"-"+h.name,ref_for:!0,ref:"mountedPersonalities"},[u("div",j3,[u("button",{onClick:le(v=>r.onPersonalitySelected(h),["stop"])},[u("img",{src:o.bUrl+h.avatar,onError:e[30]||(e[30]=(...v)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...v)),class:Te(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",r.configFile.active_personality_id==r.configFile.personalities.indexOf(h.full_path)?"border-secondary":"border-transparent z-0"]),title:h.name},null,42,q3)],8,U3),u("button",{onClick:le(v=>r.onPersonalityMounted(h),["stop"])},G3,8,H3)])]))),128))])):j("",!0)])):j("",!0)])]),u("div",{class:Te([{hidden:o.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[u("div",K3,[u("form",null,[W3,u("div",Z3,[u("div",Y3,[o.searchPersonalityInProgress?(A(),M("div",Q3,X3)):j("",!0),o.searchPersonalityInProgress?j("",!0):(A(),M("div",e9,n9))]),me(u("input",{type:"search",id:"personality-search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search personality...",required:"","onUpdate:modelValue":e[32]||(e[32]=h=>o.searchPersonality=h),onKeyup:e[33]||(e[33]=le((...h)=>r.searchPersonality_func&&r.searchPersonality_func(...h),["stop"]))},null,544),[[Re,o.searchPersonality]]),o.searchPersonality?(A(),M("button",{key:0,onClick:e[34]||(e[34]=le(h=>o.searchPersonality="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):j("",!0)])])]),o.searchPersonality?j("",!0):(A(),M("div",s9,[u("label",o9," Personalities Languages: ("+Y(o.persLangArr.length)+") ",1),u("select",{id:"persLang",onChange:e[35]||(e[35]=h=>r.update_personality_language(h.target.value,r.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(A(!0),M(Le,null,Qe(o.persLangArr,h=>(A(),M("option",{selected:h===this.configFile.personality_language},Y(h),9,r9))),256))],32)])),o.searchPersonality?j("",!0):(A(),M("div",i9,[u("label",a9," Personalities Category: ("+Y(o.persCatgArr.length)+") ",1),u("select",{id:"persCat",onChange:e[36]||(e[36]=h=>r.update_personality_category(h.target.value,r.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(A(!0),M(Le,null,Qe(o.persCatgArr,(h,m)=>(A(),M("option",{key:m,selected:h==this.configFile.personality_category},Y(h),9,l9))),128))],32)])),u("div",null,[o.personalitiesFiltered.length>0?(A(),M("div",c9,[u("label",d9,Y(o.searchPersonality?"Search results":"Personalities")+": ("+Y(o.personalitiesFiltered.length)+") ",1),u("div",{class:Te(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",o.pzl_collapsed?"":"max-h-96"])},[Ae(Ut,{name:"bounce"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(o.personalitiesFiltered,(h,m)=>(A(),ot(l,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+m+"-"+h.name,personality:h,full_path:h.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(v=>v===h.full_path),"on-selected":r.onPersonalitySelected,"on-mounted":r.onPersonalityMounted,"on-reinstall":r.onPersonalityReinstall,"on-settings":r.onSettingsPersonality},null,8,["personality","full_path","selected","on-selected","on-mounted","on-reinstall","on-settings"]))),128))]),_:1})],2)])):j("",!0)]),o.pzl_collapsed?(A(),M("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[37]||(e[37]=h=>o.pzl_collapsed=!o.pzl_collapsed)},f9)):(A(),M("button",{key:3,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[38]||(e[38]=h=>o.pzl_collapsed=!o.pzl_collapsed)},p9))],2)]),u("div",g9,[u("div",m9,[u("button",{onClick:e[39]||(e[39]=le(h=>o.mc_collapsed=!o.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[me(u("div",null,b9,512),[[at,o.mc_collapsed]]),me(u("div",null,v9,512),[[at,!o.mc_collapsed]]),w9])]),u("div",{class:Te([{hidden:o.mc_collapsed},"flex flex-col mb-2 p-2"])},[u("div",x9,[u("div",k9,[me(u("input",{id:"override-model-parameters",type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[40]||(e[40]=le(()=>{},["stop"])),"onUpdate:modelValue":e[41]||(e[41]=h=>r.configFile.override_personality_model_parameters=h),onChange:e[42]||(e[42]=h=>r.update_setting("override_personality_model_parameters",r.configFile.override_personality_model_parameters))},null,544),[[$t,r.configFile.override_personality_model_parameters]]),E9])]),u("div",{class:Te(r.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[u("div",C9,[A9,me(u("input",{type:"text",id:"seed","onUpdate:modelValue":e[43]||(e[43]=h=>r.configFile.seed=h),class:"bg-gray-50 border border-gray-300 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Re,r.configFile.seed]])]),u("div",S9,[u("div",T9,[u("div",M9,[O9,u("p",R9,[me(u("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[44]||(e[44]=h=>r.configFile.temperature=h),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Re,r.configFile.temperature]])])]),me(u("input",{id:"temperature",onChange:e[45]||(e[45]=h=>r.update_setting("temperature",h.target.value)),type:"range","onUpdate:modelValue":e[46]||(e[46]=h=>r.configFile.temperature=h),min:"0",max:"5",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Re,r.configFile.temperature]])])]),u("div",N9,[u("div",D9,[u("div",L9,[I9,u("p",P9,[me(u("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[47]||(e[47]=h=>r.configFile.n_predict=h),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Re,r.configFile.n_predict]])])]),me(u("input",{id:"predict",onChange:e[48]||(e[48]=h=>r.update_setting("n_predict",h.target.value)),type:"range","onUpdate:modelValue":e[49]||(e[49]=h=>r.configFile.n_predict=h),min:"0",max:"2048",step:"32",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Re,r.configFile.n_predict]])])]),u("div",F9,[u("div",B9,[u("div",$9,[z9,u("p",j9,[me(u("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[50]||(e[50]=h=>r.configFile.top_k=h),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Re,r.configFile.top_k]])])]),me(u("input",{id:"top_k",onChange:e[51]||(e[51]=h=>r.update_setting("top_k",h.target.value)),type:"range","onUpdate:modelValue":e[52]||(e[52]=h=>r.configFile.top_k=h),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Re,r.configFile.top_k]])])]),u("div",U9,[u("div",q9,[u("div",H9,[V9,u("p",G9,[me(u("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[53]||(e[53]=h=>r.configFile.top_p=h),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Re,r.configFile.top_p]])])]),me(u("input",{id:"top_p",onChange:e[54]||(e[54]=h=>r.update_setting("top_p",h.target.value)),type:"range","onUpdate:modelValue":e[55]||(e[55]=h=>r.configFile.top_p=h),min:"0",max:"1",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Re,r.configFile.top_p]])])]),u("div",K9,[u("div",W9,[u("div",Z9,[Y9,u("p",Q9,[me(u("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[56]||(e[56]=h=>r.configFile.repeat_penalty=h),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Re,r.configFile.repeat_penalty]])])]),me(u("input",{id:"repeat_penalty",onChange:e[57]||(e[57]=h=>r.update_setting("repeat_penalty",h.target.value)),type:"range","onUpdate:modelValue":e[58]||(e[58]=h=>r.configFile.repeat_penalty=h),min:"0",max:"2",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Re,r.configFile.repeat_penalty]])])]),u("div",J9,[u("div",X9,[u("div",e8,[t8,u("p",n8,[me(u("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[59]||(e[59]=h=>r.configFile.repeat_last_n=h),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Re,r.configFile.repeat_last_n]])])]),me(u("input",{id:"repeat_last_n",onChange:e[60]||(e[60]=h=>r.update_setting("repeat_last_n",h.target.value)),type:"range","onUpdate:modelValue":e[61]||(e[61]=h=>r.configFile.repeat_last_n=h),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Re,r.configFile.repeat_last_n]])])])],2)],2)])],2)]),Ae(c,{ref:"yesNoDialog",class:"z-20"},null,512),Ae(d,{ref:"addmodeldialog"},null,512),Ae(f,{ref:"messageBox"},null,512),Ae(p,{ref:"toast"},null,512),Ae(g,{ref:"universalForm",class:"z-20"},null,512)],64)}const o8=Ge(d5,[["render",s8],["__scopeId","data-v-cdb9dcf7"]]),r8={data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(t){const e=t.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},i8={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},a8={class:"mb-4"},l8=u("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),c8={class:"mb-4"},d8=u("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),u8={class:"mb-4"},f8=u("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),h8={class:"mt-2 text-xs"},p8={class:"mb-4"},g8=u("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),m8={class:"mb-4"},_8=u("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),b8={class:"mb-4"},y8=u("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),v8={class:"mb-4"},w8=u("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),x8={class:"mb-4"},k8=u("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),E8=u("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Train LLM",-1);function C8(t,e,n,s,o,r){return A(),M("div",i8,[u("form",{onSubmit:e[10]||(e[10]=le((...i)=>r.submitForm&&r.submitForm(...i),["prevent"])),class:"max-w-md mx-auto"},[u("div",a8,[l8,me(u("input",{type:"text",id:"model_name","onUpdate:modelValue":e[0]||(e[0]=i=>o.model_name=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.model_name]])]),u("div",c8,[d8,me(u("input",{type:"text",id:"tokenizer_name","onUpdate:modelValue":e[1]||(e[1]=i=>o.tokenizer_name=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.tokenizer_name]])]),u("div",u8,[f8,u("input",{type:"file",id:"dataset_path",ref:"dataset_path",accept:".parquet",onChange:e[2]||(e[2]=(...i)=>r.selectDatasetPath&&r.selectDatasetPath(...i)),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,544),u("p",h8,"Selected File: "+Y(o.selectedDatasetPath),1)]),u("div",p8,[g8,me(u("input",{type:"number",id:"max_length","onUpdate:modelValue":e[3]||(e[3]=i=>o.max_length=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.max_length,void 0,{number:!0}]])]),u("div",m8,[_8,me(u("input",{type:"number",id:"batch_size","onUpdate:modelValue":e[4]||(e[4]=i=>o.batch_size=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.batch_size,void 0,{number:!0}]])]),u("div",b8,[y8,me(u("input",{type:"number",id:"lr","onUpdate:modelValue":e[5]||(e[5]=i=>o.lr=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.lr,void 0,{number:!0}]])]),u("div",v8,[w8,me(u("input",{type:"number",id:"num_epochs","onUpdate:modelValue":e[6]||(e[6]=i=>o.num_epochs=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.num_epochs,void 0,{number:!0}]])]),u("div",x8,[k8,me(u("input",{type:"text",id:"output_dir","onUpdate:modelValue":e[7]||(e[7]=i=>o.selectedFolder=i),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded",placeholder:"Enter or select the output folder"},null,512),[[Re,o.selectedFolder]]),u("input",{type:"file",id:"folder_selector",ref:"folder_selector",style:{display:"none"},webkitdirectory:"",onChange:e[8]||(e[8]=(...i)=>r.selectOutputDirectory&&r.selectOutputDirectory(...i))},null,544),u("button",{type:"button",onClick:e[9]||(e[9]=(...i)=>r.openFolderSelector&&r.openFolderSelector(...i)),class:"bg-blue-500 text-white px-4 py-2 rounded"},"Select Folder")]),E8],32)])}const A8=Ge(r8,[["render",C8]]),S8={data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(t){const e=t.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},T8={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},M8={class:"mb-4"},O8=u("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),R8={class:"mb-4"},N8=u("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),D8={class:"mb-4"},L8=u("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),I8={class:"mt-2 text-xs"},P8={class:"mb-4"},F8=u("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),B8={class:"mb-4"},$8=u("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),z8={class:"mb-4"},j8=u("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),U8={class:"mb-4"},q8=u("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),H8={class:"mb-4"},V8=u("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),G8=u("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Train LLM",-1);function K8(t,e,n,s,o,r){return A(),M("div",T8,[u("form",{onSubmit:e[10]||(e[10]=le((...i)=>r.submitForm&&r.submitForm(...i),["prevent"])),class:"max-w-md mx-auto"},[u("div",M8,[O8,me(u("input",{type:"text",id:"model_name","onUpdate:modelValue":e[0]||(e[0]=i=>o.model_name=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.model_name]])]),u("div",R8,[N8,me(u("input",{type:"text",id:"tokenizer_name","onUpdate:modelValue":e[1]||(e[1]=i=>o.tokenizer_name=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.tokenizer_name]])]),u("div",D8,[L8,u("input",{type:"file",id:"dataset_path",ref:"dataset_path",accept:".parquet",onChange:e[2]||(e[2]=(...i)=>r.selectDatasetPath&&r.selectDatasetPath(...i)),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,544),u("p",I8,"Selected File: "+Y(o.selectedDatasetPath),1)]),u("div",P8,[F8,me(u("input",{type:"number",id:"max_length","onUpdate:modelValue":e[3]||(e[3]=i=>o.max_length=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.max_length,void 0,{number:!0}]])]),u("div",B8,[$8,me(u("input",{type:"number",id:"batch_size","onUpdate:modelValue":e[4]||(e[4]=i=>o.batch_size=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.batch_size,void 0,{number:!0}]])]),u("div",z8,[j8,me(u("input",{type:"number",id:"lr","onUpdate:modelValue":e[5]||(e[5]=i=>o.lr=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.lr,void 0,{number:!0}]])]),u("div",U8,[q8,me(u("input",{type:"number",id:"num_epochs","onUpdate:modelValue":e[6]||(e[6]=i=>o.num_epochs=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.num_epochs,void 0,{number:!0}]])]),u("div",H8,[V8,me(u("input",{type:"text",id:"output_dir","onUpdate:modelValue":e[7]||(e[7]=i=>o.selectedFolder=i),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded",placeholder:"Enter or select the output folder"},null,512),[[Re,o.selectedFolder]]),u("input",{type:"file",id:"folder_selector",ref:"folder_selector",style:{display:"none"},webkitdirectory:"",onChange:e[8]||(e[8]=(...i)=>r.selectOutputDirectory&&r.selectOutputDirectory(...i))},null,544),u("button",{type:"button",onClick:e[9]||(e[9]=(...i)=>r.openFolderSelector&&r.openFolderSelector(...i)),class:"bg-blue-500 text-white px-4 py-2 rounded"},"Select Folder")]),G8],32)])}const W8=Ge(S8,[["render",K8]]),Z8={name:"Discussion",emits:["delete","select","editTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},chnageTitle(t){this.newTitle=t},checkedChangeEvent(t,e){this.$emit("checked",t,e)}},mounted(){this.newTitle=this.title,_e(()=>{ye.replace()})},watch:{showConfirmation(){_e(()=>{ye.replace()})},editTitleMode(t){this.showConfirmation=t,this.editTitle=t,t&&_e(()=>{this.$refs.titleBox.focus()})},checkBoxValue(t,e){this.checkBoxValue_local=t}}},Y8=["id"],Q8={class:"flex flex-row items-center gap-2"},J8={key:0},X8=["title"],eA=["value"],tA={class:"flex items-center flex-1 max-h-6"},nA={key:0,class:"flex gap-3 flex-1 items-center justify-end duration-75"},sA=u("i",{"data-feather":"check"},null,-1),oA=[sA],rA=u("i",{"data-feather":"x"},null,-1),iA=[rA],aA={key:1,class:"flex gap-3 flex-1 items-center justify-end duration-75"},lA=u("i",{"data-feather":"x"},null,-1),cA=[lA],dA=u("i",{"data-feather":"check"},null,-1),uA=[dA],fA={key:2,class:"flex gap-3 flex-1 items-center justify-end invisible group-hover:visible duration-75"},hA=u("i",{"data-feather":"edit-2"},null,-1),pA=[hA],gA=u("i",{"data-feather":"trash"},null,-1),mA=[gA];function _A(t,e,n,s,o,r){return A(),M("div",{class:Te([n.selected?"bg-bg-light-discussion dark:bg-bg-dark-discussion shadow-md":"","flex flex-row sm:flex-row flex-wrap flex-shrink: 0 item-center shadow-sm gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"]),id:"dis-"+n.id,onClick:e[13]||(e[13]=le(i=>r.selectEvent(),["stop"]))},[u("div",Q8,[n.isCheckbox?(A(),M("div",J8,[me(u("input",{type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[0]||(e[0]=le(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=i=>o.checkBoxValue_local=i),onInput:e[2]||(e[2]=i=>r.checkedChangeEvent(i,n.id))},null,544),[[$t,o.checkBoxValue_local]])])):j("",!0),n.selected?(A(),M("div",{key:1,class:Te(["min-h-full w-2 rounded-xl self-stretch",n.loading?"animate-bounce bg-accent ":" bg-secondary "])},null,2)):j("",!0),n.selected?j("",!0):(A(),M("div",{key:2,class:Te(["w-2",n.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent ":" "])},null,2))]),o.editTitle?j("",!0):(A(),M("p",{key:0,title:n.title,class:"line-clamp-1 w-4/6 ml-1 -mx-5"},Y(n.title?n.title==="untitled"?"New discussion":n.title:"New discussion"),9,X8)),o.editTitle?(A(),M("input",{key:1,type:"text",id:"title-box",ref:"titleBox",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:n.title,required:"",onKeydown:[e[3]||(e[3]=Wa(le(i=>r.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=Wa(le(i=>o.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=i=>r.chnageTitle(i.target.value)),onClick:e[6]||(e[6]=le(()=>{},["stop"]))},null,40,eA)):j("",!0),u("div",tA,[o.showConfirmation&&!o.editTitleMode?(A(),M("div",nA,[u("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:e[7]||(e[7]=le(i=>r.deleteEvent(),["stop"]))},oA),u("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:e[8]||(e[8]=le(i=>o.showConfirmation=!1,["stop"]))},iA)])):j("",!0),o.showConfirmation&&o.editTitleMode?(A(),M("div",aA,[u("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[9]||(e[9]=le(i=>o.editTitleMode=!1,["stop"]))},cA),u("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[10]||(e[10]=le(i=>r.editTitleEvent(),["stop"]))},uA)])):j("",!0),o.showConfirmation?j("",!0):(A(),M("div",fA,[u("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=le(i=>o.editTitleMode=!0,["stop"]))},pA),u("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=le(i=>o.showConfirmation=!0,["stop"]))},mA)]))])],10,Y8)}const eg=Ge(Z8,[["render",_A]]);var je={};const bA="Á",yA="á",vA="Ă",wA="ă",xA="∾",kA="∿",EA="∾̳",CA="Â",AA="â",SA="´",TA="А",MA="а",OA="Æ",RA="æ",NA="⁡",DA="𝔄",LA="𝔞",IA="À",PA="à",FA="ℵ",BA="ℵ",$A="Α",zA="α",jA="Ā",UA="ā",qA="⨿",HA="&",VA="&",GA="⩕",KA="⩓",WA="∧",ZA="⩜",YA="⩘",QA="⩚",JA="∠",XA="⦤",e6="∠",t6="⦨",n6="⦩",s6="⦪",o6="⦫",r6="⦬",i6="⦭",a6="⦮",l6="⦯",c6="∡",d6="∟",u6="⊾",f6="⦝",h6="∢",p6="Å",g6="⍼",m6="Ą",_6="ą",b6="𝔸",y6="𝕒",v6="⩯",w6="≈",x6="⩰",k6="≊",E6="≋",C6="'",A6="⁡",S6="≈",T6="≊",M6="Å",O6="å",R6="𝒜",N6="𝒶",D6="≔",L6="*",I6="≈",P6="≍",F6="Ã",B6="ã",$6="Ä",z6="ä",j6="∳",U6="⨑",q6="≌",H6="϶",V6="‵",G6="∽",K6="⋍",W6="∖",Z6="⫧",Y6="⊽",Q6="⌅",J6="⌆",X6="⌅",eS="⎵",tS="⎶",nS="≌",sS="Б",oS="б",rS="„",iS="∵",aS="∵",lS="∵",cS="⦰",dS="϶",uS="ℬ",fS="ℬ",hS="Β",pS="β",gS="ℶ",mS="≬",_S="𝔅",bS="𝔟",yS="⋂",vS="◯",wS="⋃",xS="⨀",kS="⨁",ES="⨂",CS="⨆",AS="★",SS="▽",TS="△",MS="⨄",OS="⋁",RS="⋀",NS="⤍",DS="⧫",LS="▪",IS="▴",PS="▾",FS="◂",BS="▸",$S="␣",zS="▒",jS="░",US="▓",qS="█",HS="=⃥",VS="≡⃥",GS="⫭",KS="⌐",WS="𝔹",ZS="𝕓",YS="⊥",QS="⊥",JS="⋈",XS="⧉",eT="┐",tT="╕",nT="╖",sT="╗",oT="┌",rT="╒",iT="╓",aT="╔",lT="─",cT="═",dT="┬",uT="╤",fT="╥",hT="╦",pT="┴",gT="╧",mT="╨",_T="╩",bT="⊟",yT="⊞",vT="⊠",wT="┘",xT="╛",kT="╜",ET="╝",CT="└",AT="╘",ST="╙",TT="╚",MT="│",OT="║",RT="┼",NT="╪",DT="╫",LT="╬",IT="┤",PT="╡",FT="╢",BT="╣",$T="├",zT="╞",jT="╟",UT="╠",qT="‵",HT="˘",VT="˘",GT="¦",KT="𝒷",WT="ℬ",ZT="⁏",YT="∽",QT="⋍",JT="⧅",XT="\\",e7="⟈",t7="•",n7="•",s7="≎",o7="⪮",r7="≏",i7="≎",a7="≏",l7="Ć",c7="ć",d7="⩄",u7="⩉",f7="⩋",h7="∩",p7="⋒",g7="⩇",m7="⩀",_7="ⅅ",b7="∩︀",y7="⁁",v7="ˇ",w7="ℭ",x7="⩍",k7="Č",E7="č",C7="Ç",A7="ç",S7="Ĉ",T7="ĉ",M7="∰",O7="⩌",R7="⩐",N7="Ċ",D7="ċ",L7="¸",I7="¸",P7="⦲",F7="¢",B7="·",$7="·",z7="𝔠",j7="ℭ",U7="Ч",q7="ч",H7="✓",V7="✓",G7="Χ",K7="χ",W7="ˆ",Z7="≗",Y7="↺",Q7="↻",J7="⊛",X7="⊚",eM="⊝",tM="⊙",nM="®",sM="Ⓢ",oM="⊖",rM="⊕",iM="⊗",aM="○",lM="⧃",cM="≗",dM="⨐",uM="⫯",fM="⧂",hM="∲",pM="”",gM="’",mM="♣",_M="♣",bM=":",yM="∷",vM="⩴",wM="≔",xM="≔",kM=",",EM="@",CM="∁",AM="∘",SM="∁",TM="ℂ",MM="≅",OM="⩭",RM="≡",NM="∮",DM="∯",LM="∮",IM="𝕔",PM="ℂ",FM="∐",BM="∐",$M="©",zM="©",jM="℗",UM="∳",qM="↵",HM="✗",VM="⨯",GM="𝒞",KM="𝒸",WM="⫏",ZM="⫑",YM="⫐",QM="⫒",JM="⋯",XM="⤸",eO="⤵",tO="⋞",nO="⋟",sO="↶",oO="⤽",rO="⩈",iO="⩆",aO="≍",lO="∪",cO="⋓",dO="⩊",uO="⊍",fO="⩅",hO="∪︀",pO="↷",gO="⤼",mO="⋞",_O="⋟",bO="⋎",yO="⋏",vO="¤",wO="↶",xO="↷",kO="⋎",EO="⋏",CO="∲",AO="∱",SO="⌭",TO="†",MO="‡",OO="ℸ",RO="↓",NO="↡",DO="⇓",LO="‐",IO="⫤",PO="⊣",FO="⤏",BO="˝",$O="Ď",zO="ď",jO="Д",UO="д",qO="‡",HO="⇊",VO="ⅅ",GO="ⅆ",KO="⤑",WO="⩷",ZO="°",YO="∇",QO="Δ",JO="δ",XO="⦱",eR="⥿",tR="𝔇",nR="𝔡",sR="⥥",oR="⇃",rR="⇂",iR="´",aR="˙",lR="˝",cR="`",dR="˜",uR="⋄",fR="⋄",hR="⋄",pR="♦",gR="♦",mR="¨",_R="ⅆ",bR="ϝ",yR="⋲",vR="÷",wR="÷",xR="⋇",kR="⋇",ER="Ђ",CR="ђ",AR="⌞",SR="⌍",TR="$",MR="𝔻",OR="𝕕",RR="¨",NR="˙",DR="⃜",LR="≐",IR="≑",PR="≐",FR="∸",BR="∔",$R="⊡",zR="⌆",jR="∯",UR="¨",qR="⇓",HR="⇐",VR="⇔",GR="⫤",KR="⟸",WR="⟺",ZR="⟹",YR="⇒",QR="⊨",JR="⇑",XR="⇕",eN="∥",tN="⤓",nN="↓",sN="↓",oN="⇓",rN="⇵",iN="̑",aN="⇊",lN="⇃",cN="⇂",dN="⥐",uN="⥞",fN="⥖",hN="↽",pN="⥟",gN="⥗",mN="⇁",_N="↧",bN="⊤",yN="⤐",vN="⌟",wN="⌌",xN="𝒟",kN="𝒹",EN="Ѕ",CN="ѕ",AN="⧶",SN="Đ",TN="đ",MN="⋱",ON="▿",RN="▾",NN="⇵",DN="⥯",LN="⦦",IN="Џ",PN="џ",FN="⟿",BN="É",$N="é",zN="⩮",jN="Ě",UN="ě",qN="Ê",HN="ê",VN="≖",GN="≕",KN="Э",WN="э",ZN="⩷",YN="Ė",QN="ė",JN="≑",XN="ⅇ",eD="≒",tD="𝔈",nD="𝔢",sD="⪚",oD="È",rD="è",iD="⪖",aD="⪘",lD="⪙",cD="∈",dD="⏧",uD="ℓ",fD="⪕",hD="⪗",pD="Ē",gD="ē",mD="∅",_D="∅",bD="◻",yD="∅",vD="▫",wD=" ",xD=" ",kD=" ",ED="Ŋ",CD="ŋ",AD=" ",SD="Ę",TD="ę",MD="𝔼",OD="𝕖",RD="⋕",ND="⧣",DD="⩱",LD="ε",ID="Ε",PD="ε",FD="ϵ",BD="≖",$D="≕",zD="≂",jD="⪖",UD="⪕",qD="⩵",HD="=",VD="≂",GD="≟",KD="⇌",WD="≡",ZD="⩸",YD="⧥",QD="⥱",JD="≓",XD="ℯ",eL="ℰ",tL="≐",nL="⩳",sL="≂",oL="Η",rL="η",iL="Ð",aL="ð",lL="Ë",cL="ë",dL="€",uL="!",fL="∃",hL="∃",pL="ℰ",gL="ⅇ",mL="ⅇ",_L="≒",bL="Ф",yL="ф",vL="♀",wL="ffi",xL="ff",kL="ffl",EL="𝔉",CL="𝔣",AL="fi",SL="◼",TL="▪",ML="fj",OL="♭",RL="fl",NL="▱",DL="ƒ",LL="𝔽",IL="𝕗",PL="∀",FL="∀",BL="⋔",$L="⫙",zL="ℱ",jL="⨍",UL="½",qL="⅓",HL="¼",VL="⅕",GL="⅙",KL="⅛",WL="⅔",ZL="⅖",YL="¾",QL="⅗",JL="⅜",XL="⅘",eI="⅚",tI="⅝",nI="⅞",sI="⁄",oI="⌢",rI="𝒻",iI="ℱ",aI="ǵ",lI="Γ",cI="γ",dI="Ϝ",uI="ϝ",fI="⪆",hI="Ğ",pI="ğ",gI="Ģ",mI="Ĝ",_I="ĝ",bI="Г",yI="г",vI="Ġ",wI="ġ",xI="≥",kI="≧",EI="⪌",CI="⋛",AI="≥",SI="≧",TI="⩾",MI="⪩",OI="⩾",RI="⪀",NI="⪂",DI="⪄",LI="⋛︀",II="⪔",PI="𝔊",FI="𝔤",BI="≫",$I="⋙",zI="⋙",jI="ℷ",UI="Ѓ",qI="ѓ",HI="⪥",VI="≷",GI="⪒",KI="⪤",WI="⪊",ZI="⪊",YI="⪈",QI="≩",JI="⪈",XI="≩",eP="⋧",tP="𝔾",nP="𝕘",sP="`",oP="≥",rP="⋛",iP="≧",aP="⪢",lP="≷",cP="⩾",dP="≳",uP="𝒢",fP="ℊ",hP="≳",pP="⪎",gP="⪐",mP="⪧",_P="⩺",bP=">",yP=">",vP="≫",wP="⋗",xP="⦕",kP="⩼",EP="⪆",CP="⥸",AP="⋗",SP="⋛",TP="⪌",MP="≷",OP="≳",RP="≩︀",NP="≩︀",DP="ˇ",LP=" ",IP="½",PP="ℋ",FP="Ъ",BP="ъ",$P="⥈",zP="↔",jP="⇔",UP="↭",qP="^",HP="ℏ",VP="Ĥ",GP="ĥ",KP="♥",WP="♥",ZP="…",YP="⊹",QP="𝔥",JP="ℌ",XP="ℋ",eF="⤥",tF="⤦",nF="⇿",sF="∻",oF="↩",rF="↪",iF="𝕙",aF="ℍ",lF="―",cF="─",dF="𝒽",uF="ℋ",fF="ℏ",hF="Ħ",pF="ħ",gF="≎",mF="≏",_F="⁃",bF="‐",yF="Í",vF="í",wF="⁣",xF="Î",kF="î",EF="И",CF="и",AF="İ",SF="Е",TF="е",MF="¡",OF="⇔",RF="𝔦",NF="ℑ",DF="Ì",LF="ì",IF="ⅈ",PF="⨌",FF="∭",BF="⧜",$F="℩",zF="IJ",jF="ij",UF="Ī",qF="ī",HF="ℑ",VF="ⅈ",GF="ℐ",KF="ℑ",WF="ı",ZF="ℑ",YF="⊷",QF="Ƶ",JF="⇒",XF="℅",eB="∞",tB="⧝",nB="ı",sB="⊺",oB="∫",rB="∬",iB="ℤ",aB="∫",lB="⊺",cB="⋂",dB="⨗",uB="⨼",fB="⁣",hB="⁢",pB="Ё",gB="ё",mB="Į",_B="į",bB="𝕀",yB="𝕚",vB="Ι",wB="ι",xB="⨼",kB="¿",EB="𝒾",CB="ℐ",AB="∈",SB="⋵",TB="⋹",MB="⋴",OB="⋳",RB="∈",NB="⁢",DB="Ĩ",LB="ĩ",IB="І",PB="і",FB="Ï",BB="ï",$B="Ĵ",zB="ĵ",jB="Й",UB="й",qB="𝔍",HB="𝔧",VB="ȷ",GB="𝕁",KB="𝕛",WB="𝒥",ZB="𝒿",YB="Ј",QB="ј",JB="Є",XB="є",e$="Κ",t$="κ",n$="ϰ",s$="Ķ",o$="ķ",r$="К",i$="к",a$="𝔎",l$="𝔨",c$="ĸ",d$="Х",u$="х",f$="Ќ",h$="ќ",p$="𝕂",g$="𝕜",m$="𝒦",_$="𝓀",b$="⇚",y$="Ĺ",v$="ĺ",w$="⦴",x$="ℒ",k$="Λ",E$="λ",C$="⟨",A$="⟪",S$="⦑",T$="⟨",M$="⪅",O$="ℒ",R$="«",N$="⇤",D$="⤟",L$="←",I$="↞",P$="⇐",F$="⤝",B$="↩",$$="↫",z$="⤹",j$="⥳",U$="↢",q$="⤙",H$="⤛",V$="⪫",G$="⪭",K$="⪭︀",W$="⤌",Z$="⤎",Y$="❲",Q$="{",J$="[",X$="⦋",ez="⦏",tz="⦍",nz="Ľ",sz="ľ",oz="Ļ",rz="ļ",iz="⌈",az="{",lz="Л",cz="л",dz="⤶",uz="“",fz="„",hz="⥧",pz="⥋",gz="↲",mz="≤",_z="≦",bz="⟨",yz="⇤",vz="←",wz="←",xz="⇐",kz="⇆",Ez="↢",Cz="⌈",Az="⟦",Sz="⥡",Tz="⥙",Mz="⇃",Oz="⌊",Rz="↽",Nz="↼",Dz="⇇",Lz="↔",Iz="↔",Pz="⇔",Fz="⇆",Bz="⇋",$z="↭",zz="⥎",jz="↤",Uz="⊣",qz="⥚",Hz="⋋",Vz="⧏",Gz="⊲",Kz="⊴",Wz="⥑",Zz="⥠",Yz="⥘",Qz="↿",Jz="⥒",Xz="↼",ej="⪋",tj="⋚",nj="≤",sj="≦",oj="⩽",rj="⪨",ij="⩽",aj="⩿",lj="⪁",cj="⪃",dj="⋚︀",uj="⪓",fj="⪅",hj="⋖",pj="⋚",gj="⪋",mj="⋚",_j="≦",bj="≶",yj="≶",vj="⪡",wj="≲",xj="⩽",kj="≲",Ej="⥼",Cj="⌊",Aj="𝔏",Sj="𝔩",Tj="≶",Mj="⪑",Oj="⥢",Rj="↽",Nj="↼",Dj="⥪",Lj="▄",Ij="Љ",Pj="љ",Fj="⇇",Bj="≪",$j="⋘",zj="⌞",jj="⇚",Uj="⥫",qj="◺",Hj="Ŀ",Vj="ŀ",Gj="⎰",Kj="⎰",Wj="⪉",Zj="⪉",Yj="⪇",Qj="≨",Jj="⪇",Xj="≨",eU="⋦",tU="⟬",nU="⇽",sU="⟦",oU="⟵",rU="⟵",iU="⟸",aU="⟷",lU="⟷",cU="⟺",dU="⟼",uU="⟶",fU="⟶",hU="⟹",pU="↫",gU="↬",mU="⦅",_U="𝕃",bU="𝕝",yU="⨭",vU="⨴",wU="∗",xU="_",kU="↙",EU="↘",CU="◊",AU="◊",SU="⧫",TU="(",MU="⦓",OU="⇆",RU="⌟",NU="⇋",DU="⥭",LU="‎",IU="⊿",PU="‹",FU="𝓁",BU="ℒ",$U="↰",zU="↰",jU="≲",UU="⪍",qU="⪏",HU="[",VU="‘",GU="‚",KU="Ł",WU="ł",ZU="⪦",YU="⩹",QU="<",JU="<",XU="≪",eq="⋖",tq="⋋",nq="⋉",sq="⥶",oq="⩻",rq="◃",iq="⊴",aq="◂",lq="⦖",cq="⥊",dq="⥦",uq="≨︀",fq="≨︀",hq="¯",pq="♂",gq="✠",mq="✠",_q="↦",bq="↦",yq="↧",vq="↤",wq="↥",xq="▮",kq="⨩",Eq="М",Cq="м",Aq="—",Sq="∺",Tq="∡",Mq=" ",Oq="ℳ",Rq="𝔐",Nq="𝔪",Dq="℧",Lq="µ",Iq="*",Pq="⫰",Fq="∣",Bq="·",$q="⊟",zq="−",jq="∸",Uq="⨪",qq="∓",Hq="⫛",Vq="…",Gq="∓",Kq="⊧",Wq="𝕄",Zq="𝕞",Yq="∓",Qq="𝓂",Jq="ℳ",Xq="∾",eH="Μ",tH="μ",nH="⊸",sH="⊸",oH="∇",rH="Ń",iH="ń",aH="∠⃒",lH="≉",cH="⩰̸",dH="≋̸",uH="ʼn",fH="≉",hH="♮",pH="ℕ",gH="♮",mH=" ",_H="≎̸",bH="≏̸",yH="⩃",vH="Ň",wH="ň",xH="Ņ",kH="ņ",EH="≇",CH="⩭̸",AH="⩂",SH="Н",TH="н",MH="–",OH="⤤",RH="↗",NH="⇗",DH="↗",LH="≠",IH="≐̸",PH="​",FH="​",BH="​",$H="​",zH="≢",jH="⤨",UH="≂̸",qH="≫",HH="≪",VH=` -`,GH="∄",KH="∄",WH="𝔑",ZH="𝔫",YH="≧̸",QH="≱",JH="≱",XH="≧̸",eV="⩾̸",tV="⩾̸",nV="⋙̸",sV="≵",oV="≫⃒",rV="≯",iV="≯",aV="≫̸",lV="↮",cV="⇎",dV="⫲",uV="∋",fV="⋼",hV="⋺",pV="∋",gV="Њ",mV="њ",_V="↚",bV="⇍",yV="‥",vV="≦̸",wV="≰",xV="↚",kV="⇍",EV="↮",CV="⇎",AV="≰",SV="≦̸",TV="⩽̸",MV="⩽̸",OV="≮",RV="⋘̸",NV="≴",DV="≪⃒",LV="≮",IV="⋪",PV="⋬",FV="≪̸",BV="∤",$V="⁠",zV=" ",jV="𝕟",UV="ℕ",qV="⫬",HV="¬",VV="≢",GV="≭",KV="∦",WV="∉",ZV="≠",YV="≂̸",QV="∄",JV="≯",XV="≱",eG="≧̸",tG="≫̸",nG="≹",sG="⩾̸",oG="≵",rG="≎̸",iG="≏̸",aG="∉",lG="⋵̸",cG="⋹̸",dG="∉",uG="⋷",fG="⋶",hG="⧏̸",pG="⋪",gG="⋬",mG="≮",_G="≰",bG="≸",yG="≪̸",vG="⩽̸",wG="≴",xG="⪢̸",kG="⪡̸",EG="∌",CG="∌",AG="⋾",SG="⋽",TG="⊀",MG="⪯̸",OG="⋠",RG="∌",NG="⧐̸",DG="⋫",LG="⋭",IG="⊏̸",PG="⋢",FG="⊐̸",BG="⋣",$G="⊂⃒",zG="⊈",jG="⊁",UG="⪰̸",qG="⋡",HG="≿̸",VG="⊃⃒",GG="⊉",KG="≁",WG="≄",ZG="≇",YG="≉",QG="∤",JG="∦",XG="∦",eK="⫽⃥",tK="∂̸",nK="⨔",sK="⊀",oK="⋠",rK="⊀",iK="⪯̸",aK="⪯̸",lK="⤳̸",cK="↛",dK="⇏",uK="↝̸",fK="↛",hK="⇏",pK="⋫",gK="⋭",mK="⊁",_K="⋡",bK="⪰̸",yK="𝒩",vK="𝓃",wK="∤",xK="∦",kK="≁",EK="≄",CK="≄",AK="∤",SK="∦",TK="⋢",MK="⋣",OK="⊄",RK="⫅̸",NK="⊈",DK="⊂⃒",LK="⊈",IK="⫅̸",PK="⊁",FK="⪰̸",BK="⊅",$K="⫆̸",zK="⊉",jK="⊃⃒",UK="⊉",qK="⫆̸",HK="≹",VK="Ñ",GK="ñ",KK="≸",WK="⋪",ZK="⋬",YK="⋫",QK="⋭",JK="Ν",XK="ν",eW="#",tW="№",nW=" ",sW="≍⃒",oW="⊬",rW="⊭",iW="⊮",aW="⊯",lW="≥⃒",cW=">⃒",dW="⤄",uW="⧞",fW="⤂",hW="≤⃒",pW="<⃒",gW="⊴⃒",mW="⤃",_W="⊵⃒",bW="∼⃒",yW="⤣",vW="↖",wW="⇖",xW="↖",kW="⤧",EW="Ó",CW="ó",AW="⊛",SW="Ô",TW="ô",MW="⊚",OW="О",RW="о",NW="⊝",DW="Ő",LW="ő",IW="⨸",PW="⊙",FW="⦼",BW="Œ",$W="œ",zW="⦿",jW="𝔒",UW="𝔬",qW="˛",HW="Ò",VW="ò",GW="⧁",KW="⦵",WW="Ω",ZW="∮",YW="↺",QW="⦾",JW="⦻",XW="‾",eZ="⧀",tZ="Ō",nZ="ō",sZ="Ω",oZ="ω",rZ="Ο",iZ="ο",aZ="⦶",lZ="⊖",cZ="𝕆",dZ="𝕠",uZ="⦷",fZ="“",hZ="‘",pZ="⦹",gZ="⊕",mZ="↻",_Z="⩔",bZ="∨",yZ="⩝",vZ="ℴ",wZ="ℴ",xZ="ª",kZ="º",EZ="⊶",CZ="⩖",AZ="⩗",SZ="⩛",TZ="Ⓢ",MZ="𝒪",OZ="ℴ",RZ="Ø",NZ="ø",DZ="⊘",LZ="Õ",IZ="õ",PZ="⨶",FZ="⨷",BZ="⊗",$Z="Ö",zZ="ö",jZ="⌽",UZ="‾",qZ="⏞",HZ="⎴",VZ="⏜",GZ="¶",KZ="∥",WZ="∥",ZZ="⫳",YZ="⫽",QZ="∂",JZ="∂",XZ="П",eY="п",tY="%",nY=".",sY="‰",oY="⊥",rY="‱",iY="𝔓",aY="𝔭",lY="Φ",cY="φ",dY="ϕ",uY="ℳ",fY="☎",hY="Π",pY="π",gY="⋔",mY="ϖ",_Y="ℏ",bY="ℎ",yY="ℏ",vY="⨣",wY="⊞",xY="⨢",kY="+",EY="∔",CY="⨥",AY="⩲",SY="±",TY="±",MY="⨦",OY="⨧",RY="±",NY="ℌ",DY="⨕",LY="𝕡",IY="ℙ",PY="£",FY="⪷",BY="⪻",$Y="≺",zY="≼",jY="⪷",UY="≺",qY="≼",HY="≺",VY="⪯",GY="≼",KY="≾",WY="⪯",ZY="⪹",YY="⪵",QY="⋨",JY="⪯",XY="⪳",eQ="≾",tQ="′",nQ="″",sQ="ℙ",oQ="⪹",rQ="⪵",iQ="⋨",aQ="∏",lQ="∏",cQ="⌮",dQ="⌒",uQ="⌓",fQ="∝",hQ="∝",pQ="∷",gQ="∝",mQ="≾",_Q="⊰",bQ="𝒫",yQ="𝓅",vQ="Ψ",wQ="ψ",xQ=" ",kQ="𝔔",EQ="𝔮",CQ="⨌",AQ="𝕢",SQ="ℚ",TQ="⁗",MQ="𝒬",OQ="𝓆",RQ="ℍ",NQ="⨖",DQ="?",LQ="≟",IQ='"',PQ='"',FQ="⇛",BQ="∽̱",$Q="Ŕ",zQ="ŕ",jQ="√",UQ="⦳",qQ="⟩",HQ="⟫",VQ="⦒",GQ="⦥",KQ="⟩",WQ="»",ZQ="⥵",YQ="⇥",QQ="⤠",JQ="⤳",XQ="→",eJ="↠",tJ="⇒",nJ="⤞",sJ="↪",oJ="↬",rJ="⥅",iJ="⥴",aJ="⤖",lJ="↣",cJ="↝",dJ="⤚",uJ="⤜",fJ="∶",hJ="ℚ",pJ="⤍",gJ="⤏",mJ="⤐",_J="❳",bJ="}",yJ="]",vJ="⦌",wJ="⦎",xJ="⦐",kJ="Ř",EJ="ř",CJ="Ŗ",AJ="ŗ",SJ="⌉",TJ="}",MJ="Р",OJ="р",RJ="⤷",NJ="⥩",DJ="”",LJ="”",IJ="↳",PJ="ℜ",FJ="ℛ",BJ="ℜ",$J="ℝ",zJ="ℜ",jJ="▭",UJ="®",qJ="®",HJ="∋",VJ="⇋",GJ="⥯",KJ="⥽",WJ="⌋",ZJ="𝔯",YJ="ℜ",QJ="⥤",JJ="⇁",XJ="⇀",eX="⥬",tX="Ρ",nX="ρ",sX="ϱ",oX="⟩",rX="⇥",iX="→",aX="→",lX="⇒",cX="⇄",dX="↣",uX="⌉",fX="⟧",hX="⥝",pX="⥕",gX="⇂",mX="⌋",_X="⇁",bX="⇀",yX="⇄",vX="⇌",wX="⇉",xX="↝",kX="↦",EX="⊢",CX="⥛",AX="⋌",SX="⧐",TX="⊳",MX="⊵",OX="⥏",RX="⥜",NX="⥔",DX="↾",LX="⥓",IX="⇀",PX="˚",FX="≓",BX="⇄",$X="⇌",zX="‏",jX="⎱",UX="⎱",qX="⫮",HX="⟭",VX="⇾",GX="⟧",KX="⦆",WX="𝕣",ZX="ℝ",YX="⨮",QX="⨵",JX="⥰",XX=")",eee="⦔",tee="⨒",nee="⇉",see="⇛",oee="›",ree="𝓇",iee="ℛ",aee="↱",lee="↱",cee="]",dee="’",uee="’",fee="⋌",hee="⋊",pee="▹",gee="⊵",mee="▸",_ee="⧎",bee="⧴",yee="⥨",vee="℞",wee="Ś",xee="ś",kee="‚",Eee="⪸",Cee="Š",Aee="š",See="⪼",Tee="≻",Mee="≽",Oee="⪰",Ree="⪴",Nee="Ş",Dee="ş",Lee="Ŝ",Iee="ŝ",Pee="⪺",Fee="⪶",Bee="⋩",$ee="⨓",zee="≿",jee="С",Uee="с",qee="⊡",Hee="⋅",Vee="⩦",Gee="⤥",Kee="↘",Wee="⇘",Zee="↘",Yee="§",Qee=";",Jee="⤩",Xee="∖",ete="∖",tte="✶",nte="𝔖",ste="𝔰",ote="⌢",rte="♯",ite="Щ",ate="щ",lte="Ш",cte="ш",dte="↓",ute="←",fte="∣",hte="∥",pte="→",gte="↑",mte="­",_te="Σ",bte="σ",yte="ς",vte="ς",wte="∼",xte="⩪",kte="≃",Ete="≃",Cte="⪞",Ate="⪠",Ste="⪝",Tte="⪟",Mte="≆",Ote="⨤",Rte="⥲",Nte="←",Dte="∘",Lte="∖",Ite="⨳",Pte="⧤",Fte="∣",Bte="⌣",$te="⪪",zte="⪬",jte="⪬︀",Ute="Ь",qte="ь",Hte="⌿",Vte="⧄",Gte="/",Kte="𝕊",Wte="𝕤",Zte="♠",Yte="♠",Qte="∥",Jte="⊓",Xte="⊓︀",ene="⊔",tne="⊔︀",nne="√",sne="⊏",one="⊑",rne="⊏",ine="⊑",ane="⊐",lne="⊒",cne="⊐",dne="⊒",une="□",fne="□",hne="⊓",pne="⊏",gne="⊑",mne="⊐",_ne="⊒",bne="⊔",yne="▪",vne="□",wne="▪",xne="→",kne="𝒮",Ene="𝓈",Cne="∖",Ane="⌣",Sne="⋆",Tne="⋆",Mne="☆",One="★",Rne="ϵ",Nne="ϕ",Dne="¯",Lne="⊂",Ine="⋐",Pne="⪽",Fne="⫅",Bne="⊆",$ne="⫃",zne="⫁",jne="⫋",Une="⊊",qne="⪿",Hne="⥹",Vne="⊂",Gne="⋐",Kne="⊆",Wne="⫅",Zne="⊆",Yne="⊊",Qne="⫋",Jne="⫇",Xne="⫕",ese="⫓",tse="⪸",nse="≻",sse="≽",ose="≻",rse="⪰",ise="≽",ase="≿",lse="⪰",cse="⪺",dse="⪶",use="⋩",fse="≿",hse="∋",pse="∑",gse="∑",mse="♪",_se="¹",bse="²",yse="³",vse="⊃",wse="⋑",xse="⪾",kse="⫘",Ese="⫆",Cse="⊇",Ase="⫄",Sse="⊃",Tse="⊇",Mse="⟉",Ose="⫗",Rse="⥻",Nse="⫂",Dse="⫌",Lse="⊋",Ise="⫀",Pse="⊃",Fse="⋑",Bse="⊇",$se="⫆",zse="⊋",jse="⫌",Use="⫈",qse="⫔",Hse="⫖",Vse="⤦",Gse="↙",Kse="⇙",Wse="↙",Zse="⤪",Yse="ß",Qse=" ",Jse="⌖",Xse="Τ",eoe="τ",toe="⎴",noe="Ť",soe="ť",ooe="Ţ",roe="ţ",ioe="Т",aoe="т",loe="⃛",coe="⌕",doe="𝔗",uoe="𝔱",foe="∴",hoe="∴",poe="∴",goe="Θ",moe="θ",_oe="ϑ",boe="ϑ",yoe="≈",voe="∼",woe="  ",xoe=" ",koe=" ",Eoe="≈",Coe="∼",Aoe="Þ",Soe="þ",Toe="˜",Moe="∼",Ooe="≃",Roe="≅",Noe="≈",Doe="⨱",Loe="⊠",Ioe="×",Poe="⨰",Foe="∭",Boe="⤨",$oe="⌶",zoe="⫱",joe="⊤",Uoe="𝕋",qoe="𝕥",Hoe="⫚",Voe="⤩",Goe="‴",Koe="™",Woe="™",Zoe="▵",Yoe="▿",Qoe="◃",Joe="⊴",Xoe="≜",ere="▹",tre="⊵",nre="◬",sre="≜",ore="⨺",rre="⃛",ire="⨹",are="⧍",lre="⨻",cre="⏢",dre="𝒯",ure="𝓉",fre="Ц",hre="ц",pre="Ћ",gre="ћ",mre="Ŧ",_re="ŧ",bre="≬",yre="↞",vre="↠",wre="Ú",xre="ú",kre="↑",Ere="↟",Cre="⇑",Are="⥉",Sre="Ў",Tre="ў",Mre="Ŭ",Ore="ŭ",Rre="Û",Nre="û",Dre="У",Lre="у",Ire="⇅",Pre="Ű",Fre="ű",Bre="⥮",$re="⥾",zre="𝔘",jre="𝔲",Ure="Ù",qre="ù",Hre="⥣",Vre="↿",Gre="↾",Kre="▀",Wre="⌜",Zre="⌜",Yre="⌏",Qre="◸",Jre="Ū",Xre="ū",eie="¨",tie="_",nie="⏟",sie="⎵",oie="⏝",rie="⋃",iie="⊎",aie="Ų",lie="ų",cie="𝕌",die="𝕦",uie="⤒",fie="↑",hie="↑",pie="⇑",gie="⇅",mie="↕",_ie="↕",bie="⇕",yie="⥮",vie="↿",wie="↾",xie="⊎",kie="↖",Eie="↗",Cie="υ",Aie="ϒ",Sie="ϒ",Tie="Υ",Mie="υ",Oie="↥",Rie="⊥",Nie="⇈",Die="⌝",Lie="⌝",Iie="⌎",Pie="Ů",Fie="ů",Bie="◹",$ie="𝒰",zie="𝓊",jie="⋰",Uie="Ũ",qie="ũ",Hie="▵",Vie="▴",Gie="⇈",Kie="Ü",Wie="ü",Zie="⦧",Yie="⦜",Qie="ϵ",Jie="ϰ",Xie="∅",eae="ϕ",tae="ϖ",nae="∝",sae="↕",oae="⇕",rae="ϱ",iae="ς",aae="⊊︀",lae="⫋︀",cae="⊋︀",dae="⫌︀",uae="ϑ",fae="⊲",hae="⊳",pae="⫨",gae="⫫",mae="⫩",_ae="В",bae="в",yae="⊢",vae="⊨",wae="⊩",xae="⊫",kae="⫦",Eae="⊻",Cae="∨",Aae="⋁",Sae="≚",Tae="⋮",Mae="|",Oae="‖",Rae="|",Nae="‖",Dae="∣",Lae="|",Iae="❘",Pae="≀",Fae=" ",Bae="𝔙",$ae="𝔳",zae="⊲",jae="⊂⃒",Uae="⊃⃒",qae="𝕍",Hae="𝕧",Vae="∝",Gae="⊳",Kae="𝒱",Wae="𝓋",Zae="⫋︀",Yae="⊊︀",Qae="⫌︀",Jae="⊋︀",Xae="⊪",ele="⦚",tle="Ŵ",nle="ŵ",sle="⩟",ole="∧",rle="⋀",ile="≙",ale="℘",lle="𝔚",cle="𝔴",dle="𝕎",ule="𝕨",fle="℘",hle="≀",ple="≀",gle="𝒲",mle="𝓌",_le="⋂",ble="◯",yle="⋃",vle="▽",wle="𝔛",xle="𝔵",kle="⟷",Ele="⟺",Cle="Ξ",Ale="ξ",Sle="⟵",Tle="⟸",Mle="⟼",Ole="⋻",Rle="⨀",Nle="𝕏",Dle="𝕩",Lle="⨁",Ile="⨂",Ple="⟶",Fle="⟹",Ble="𝒳",$le="𝓍",zle="⨆",jle="⨄",Ule="△",qle="⋁",Hle="⋀",Vle="Ý",Gle="ý",Kle="Я",Wle="я",Zle="Ŷ",Yle="ŷ",Qle="Ы",Jle="ы",Xle="¥",ece="𝔜",tce="𝔶",nce="Ї",sce="ї",oce="𝕐",rce="𝕪",ice="𝒴",ace="𝓎",lce="Ю",cce="ю",dce="ÿ",uce="Ÿ",fce="Ź",hce="ź",pce="Ž",gce="ž",mce="З",_ce="з",bce="Ż",yce="ż",vce="ℨ",wce="​",xce="Ζ",kce="ζ",Ece="𝔷",Cce="ℨ",Ace="Ж",Sce="ж",Tce="⇝",Mce="𝕫",Oce="ℤ",Rce="𝒵",Nce="𝓏",Dce="‍",Lce="‌",Ice={Aacute:bA,aacute:yA,Abreve:vA,abreve:wA,ac:xA,acd:kA,acE:EA,Acirc:CA,acirc:AA,acute:SA,Acy:TA,acy:MA,AElig:OA,aelig:RA,af:NA,Afr:DA,afr:LA,Agrave:IA,agrave:PA,alefsym:FA,aleph:BA,Alpha:$A,alpha:zA,Amacr:jA,amacr:UA,amalg:qA,amp:HA,AMP:VA,andand:GA,And:KA,and:WA,andd:ZA,andslope:YA,andv:QA,ang:JA,ange:XA,angle:e6,angmsdaa:t6,angmsdab:n6,angmsdac:s6,angmsdad:o6,angmsdae:r6,angmsdaf:i6,angmsdag:a6,angmsdah:l6,angmsd:c6,angrt:d6,angrtvb:u6,angrtvbd:f6,angsph:h6,angst:p6,angzarr:g6,Aogon:m6,aogon:_6,Aopf:b6,aopf:y6,apacir:v6,ap:w6,apE:x6,ape:k6,apid:E6,apos:C6,ApplyFunction:A6,approx:S6,approxeq:T6,Aring:M6,aring:O6,Ascr:R6,ascr:N6,Assign:D6,ast:L6,asymp:I6,asympeq:P6,Atilde:F6,atilde:B6,Auml:$6,auml:z6,awconint:j6,awint:U6,backcong:q6,backepsilon:H6,backprime:V6,backsim:G6,backsimeq:K6,Backslash:W6,Barv:Z6,barvee:Y6,barwed:Q6,Barwed:J6,barwedge:X6,bbrk:eS,bbrktbrk:tS,bcong:nS,Bcy:sS,bcy:oS,bdquo:rS,becaus:iS,because:aS,Because:lS,bemptyv:cS,bepsi:dS,bernou:uS,Bernoullis:fS,Beta:hS,beta:pS,beth:gS,between:mS,Bfr:_S,bfr:bS,bigcap:yS,bigcirc:vS,bigcup:wS,bigodot:xS,bigoplus:kS,bigotimes:ES,bigsqcup:CS,bigstar:AS,bigtriangledown:SS,bigtriangleup:TS,biguplus:MS,bigvee:OS,bigwedge:RS,bkarow:NS,blacklozenge:DS,blacksquare:LS,blacktriangle:IS,blacktriangledown:PS,blacktriangleleft:FS,blacktriangleright:BS,blank:$S,blk12:zS,blk14:jS,blk34:US,block:qS,bne:HS,bnequiv:VS,bNot:GS,bnot:KS,Bopf:WS,bopf:ZS,bot:YS,bottom:QS,bowtie:JS,boxbox:XS,boxdl:eT,boxdL:tT,boxDl:nT,boxDL:sT,boxdr:oT,boxdR:rT,boxDr:iT,boxDR:aT,boxh:lT,boxH:cT,boxhd:dT,boxHd:uT,boxhD:fT,boxHD:hT,boxhu:pT,boxHu:gT,boxhU:mT,boxHU:_T,boxminus:bT,boxplus:yT,boxtimes:vT,boxul:wT,boxuL:xT,boxUl:kT,boxUL:ET,boxur:CT,boxuR:AT,boxUr:ST,boxUR:TT,boxv:MT,boxV:OT,boxvh:RT,boxvH:NT,boxVh:DT,boxVH:LT,boxvl:IT,boxvL:PT,boxVl:FT,boxVL:BT,boxvr:$T,boxvR:zT,boxVr:jT,boxVR:UT,bprime:qT,breve:HT,Breve:VT,brvbar:GT,bscr:KT,Bscr:WT,bsemi:ZT,bsim:YT,bsime:QT,bsolb:JT,bsol:XT,bsolhsub:e7,bull:t7,bullet:n7,bump:s7,bumpE:o7,bumpe:r7,Bumpeq:i7,bumpeq:a7,Cacute:l7,cacute:c7,capand:d7,capbrcup:u7,capcap:f7,cap:h7,Cap:p7,capcup:g7,capdot:m7,CapitalDifferentialD:_7,caps:b7,caret:y7,caron:v7,Cayleys:w7,ccaps:x7,Ccaron:k7,ccaron:E7,Ccedil:C7,ccedil:A7,Ccirc:S7,ccirc:T7,Cconint:M7,ccups:O7,ccupssm:R7,Cdot:N7,cdot:D7,cedil:L7,Cedilla:I7,cemptyv:P7,cent:F7,centerdot:B7,CenterDot:$7,cfr:z7,Cfr:j7,CHcy:U7,chcy:q7,check:H7,checkmark:V7,Chi:G7,chi:K7,circ:W7,circeq:Z7,circlearrowleft:Y7,circlearrowright:Q7,circledast:J7,circledcirc:X7,circleddash:eM,CircleDot:tM,circledR:nM,circledS:sM,CircleMinus:oM,CirclePlus:rM,CircleTimes:iM,cir:aM,cirE:lM,cire:cM,cirfnint:dM,cirmid:uM,cirscir:fM,ClockwiseContourIntegral:hM,CloseCurlyDoubleQuote:pM,CloseCurlyQuote:gM,clubs:mM,clubsuit:_M,colon:bM,Colon:yM,Colone:vM,colone:wM,coloneq:xM,comma:kM,commat:EM,comp:CM,compfn:AM,complement:SM,complexes:TM,cong:MM,congdot:OM,Congruent:RM,conint:NM,Conint:DM,ContourIntegral:LM,copf:IM,Copf:PM,coprod:FM,Coproduct:BM,copy:$M,COPY:zM,copysr:jM,CounterClockwiseContourIntegral:UM,crarr:qM,cross:HM,Cross:VM,Cscr:GM,cscr:KM,csub:WM,csube:ZM,csup:YM,csupe:QM,ctdot:JM,cudarrl:XM,cudarrr:eO,cuepr:tO,cuesc:nO,cularr:sO,cularrp:oO,cupbrcap:rO,cupcap:iO,CupCap:aO,cup:lO,Cup:cO,cupcup:dO,cupdot:uO,cupor:fO,cups:hO,curarr:pO,curarrm:gO,curlyeqprec:mO,curlyeqsucc:_O,curlyvee:bO,curlywedge:yO,curren:vO,curvearrowleft:wO,curvearrowright:xO,cuvee:kO,cuwed:EO,cwconint:CO,cwint:AO,cylcty:SO,dagger:TO,Dagger:MO,daleth:OO,darr:RO,Darr:NO,dArr:DO,dash:LO,Dashv:IO,dashv:PO,dbkarow:FO,dblac:BO,Dcaron:$O,dcaron:zO,Dcy:jO,dcy:UO,ddagger:qO,ddarr:HO,DD:VO,dd:GO,DDotrahd:KO,ddotseq:WO,deg:ZO,Del:YO,Delta:QO,delta:JO,demptyv:XO,dfisht:eR,Dfr:tR,dfr:nR,dHar:sR,dharl:oR,dharr:rR,DiacriticalAcute:iR,DiacriticalDot:aR,DiacriticalDoubleAcute:lR,DiacriticalGrave:cR,DiacriticalTilde:dR,diam:uR,diamond:fR,Diamond:hR,diamondsuit:pR,diams:gR,die:mR,DifferentialD:_R,digamma:bR,disin:yR,div:vR,divide:wR,divideontimes:xR,divonx:kR,DJcy:ER,djcy:CR,dlcorn:AR,dlcrop:SR,dollar:TR,Dopf:MR,dopf:OR,Dot:RR,dot:NR,DotDot:DR,doteq:LR,doteqdot:IR,DotEqual:PR,dotminus:FR,dotplus:BR,dotsquare:$R,doublebarwedge:zR,DoubleContourIntegral:jR,DoubleDot:UR,DoubleDownArrow:qR,DoubleLeftArrow:HR,DoubleLeftRightArrow:VR,DoubleLeftTee:GR,DoubleLongLeftArrow:KR,DoubleLongLeftRightArrow:WR,DoubleLongRightArrow:ZR,DoubleRightArrow:YR,DoubleRightTee:QR,DoubleUpArrow:JR,DoubleUpDownArrow:XR,DoubleVerticalBar:eN,DownArrowBar:tN,downarrow:nN,DownArrow:sN,Downarrow:oN,DownArrowUpArrow:rN,DownBreve:iN,downdownarrows:aN,downharpoonleft:lN,downharpoonright:cN,DownLeftRightVector:dN,DownLeftTeeVector:uN,DownLeftVectorBar:fN,DownLeftVector:hN,DownRightTeeVector:pN,DownRightVectorBar:gN,DownRightVector:mN,DownTeeArrow:_N,DownTee:bN,drbkarow:yN,drcorn:vN,drcrop:wN,Dscr:xN,dscr:kN,DScy:EN,dscy:CN,dsol:AN,Dstrok:SN,dstrok:TN,dtdot:MN,dtri:ON,dtrif:RN,duarr:NN,duhar:DN,dwangle:LN,DZcy:IN,dzcy:PN,dzigrarr:FN,Eacute:BN,eacute:$N,easter:zN,Ecaron:jN,ecaron:UN,Ecirc:qN,ecirc:HN,ecir:VN,ecolon:GN,Ecy:KN,ecy:WN,eDDot:ZN,Edot:YN,edot:QN,eDot:JN,ee:XN,efDot:eD,Efr:tD,efr:nD,eg:sD,Egrave:oD,egrave:rD,egs:iD,egsdot:aD,el:lD,Element:cD,elinters:dD,ell:uD,els:fD,elsdot:hD,Emacr:pD,emacr:gD,empty:mD,emptyset:_D,EmptySmallSquare:bD,emptyv:yD,EmptyVerySmallSquare:vD,emsp13:wD,emsp14:xD,emsp:kD,ENG:ED,eng:CD,ensp:AD,Eogon:SD,eogon:TD,Eopf:MD,eopf:OD,epar:RD,eparsl:ND,eplus:DD,epsi:LD,Epsilon:ID,epsilon:PD,epsiv:FD,eqcirc:BD,eqcolon:$D,eqsim:zD,eqslantgtr:jD,eqslantless:UD,Equal:qD,equals:HD,EqualTilde:VD,equest:GD,Equilibrium:KD,equiv:WD,equivDD:ZD,eqvparsl:YD,erarr:QD,erDot:JD,escr:XD,Escr:eL,esdot:tL,Esim:nL,esim:sL,Eta:oL,eta:rL,ETH:iL,eth:aL,Euml:lL,euml:cL,euro:dL,excl:uL,exist:fL,Exists:hL,expectation:pL,exponentiale:gL,ExponentialE:mL,fallingdotseq:_L,Fcy:bL,fcy:yL,female:vL,ffilig:wL,fflig:xL,ffllig:kL,Ffr:EL,ffr:CL,filig:AL,FilledSmallSquare:SL,FilledVerySmallSquare:TL,fjlig:ML,flat:OL,fllig:RL,fltns:NL,fnof:DL,Fopf:LL,fopf:IL,forall:PL,ForAll:FL,fork:BL,forkv:$L,Fouriertrf:zL,fpartint:jL,frac12:UL,frac13:qL,frac14:HL,frac15:VL,frac16:GL,frac18:KL,frac23:WL,frac25:ZL,frac34:YL,frac35:QL,frac38:JL,frac45:XL,frac56:eI,frac58:tI,frac78:nI,frasl:sI,frown:oI,fscr:rI,Fscr:iI,gacute:aI,Gamma:lI,gamma:cI,Gammad:dI,gammad:uI,gap:fI,Gbreve:hI,gbreve:pI,Gcedil:gI,Gcirc:mI,gcirc:_I,Gcy:bI,gcy:yI,Gdot:vI,gdot:wI,ge:xI,gE:kI,gEl:EI,gel:CI,geq:AI,geqq:SI,geqslant:TI,gescc:MI,ges:OI,gesdot:RI,gesdoto:NI,gesdotol:DI,gesl:LI,gesles:II,Gfr:PI,gfr:FI,gg:BI,Gg:$I,ggg:zI,gimel:jI,GJcy:UI,gjcy:qI,gla:HI,gl:VI,glE:GI,glj:KI,gnap:WI,gnapprox:ZI,gne:YI,gnE:QI,gneq:JI,gneqq:XI,gnsim:eP,Gopf:tP,gopf:nP,grave:sP,GreaterEqual:oP,GreaterEqualLess:rP,GreaterFullEqual:iP,GreaterGreater:aP,GreaterLess:lP,GreaterSlantEqual:cP,GreaterTilde:dP,Gscr:uP,gscr:fP,gsim:hP,gsime:pP,gsiml:gP,gtcc:mP,gtcir:_P,gt:bP,GT:yP,Gt:vP,gtdot:wP,gtlPar:xP,gtquest:kP,gtrapprox:EP,gtrarr:CP,gtrdot:AP,gtreqless:SP,gtreqqless:TP,gtrless:MP,gtrsim:OP,gvertneqq:RP,gvnE:NP,Hacek:DP,hairsp:LP,half:IP,hamilt:PP,HARDcy:FP,hardcy:BP,harrcir:$P,harr:zP,hArr:jP,harrw:UP,Hat:qP,hbar:HP,Hcirc:VP,hcirc:GP,hearts:KP,heartsuit:WP,hellip:ZP,hercon:YP,hfr:QP,Hfr:JP,HilbertSpace:XP,hksearow:eF,hkswarow:tF,hoarr:nF,homtht:sF,hookleftarrow:oF,hookrightarrow:rF,hopf:iF,Hopf:aF,horbar:lF,HorizontalLine:cF,hscr:dF,Hscr:uF,hslash:fF,Hstrok:hF,hstrok:pF,HumpDownHump:gF,HumpEqual:mF,hybull:_F,hyphen:bF,Iacute:yF,iacute:vF,ic:wF,Icirc:xF,icirc:kF,Icy:EF,icy:CF,Idot:AF,IEcy:SF,iecy:TF,iexcl:MF,iff:OF,ifr:RF,Ifr:NF,Igrave:DF,igrave:LF,ii:IF,iiiint:PF,iiint:FF,iinfin:BF,iiota:$F,IJlig:zF,ijlig:jF,Imacr:UF,imacr:qF,image:HF,ImaginaryI:VF,imagline:GF,imagpart:KF,imath:WF,Im:ZF,imof:YF,imped:QF,Implies:JF,incare:XF,in:"∈",infin:eB,infintie:tB,inodot:nB,intcal:sB,int:oB,Int:rB,integers:iB,Integral:aB,intercal:lB,Intersection:cB,intlarhk:dB,intprod:uB,InvisibleComma:fB,InvisibleTimes:hB,IOcy:pB,iocy:gB,Iogon:mB,iogon:_B,Iopf:bB,iopf:yB,Iota:vB,iota:wB,iprod:xB,iquest:kB,iscr:EB,Iscr:CB,isin:AB,isindot:SB,isinE:TB,isins:MB,isinsv:OB,isinv:RB,it:NB,Itilde:DB,itilde:LB,Iukcy:IB,iukcy:PB,Iuml:FB,iuml:BB,Jcirc:$B,jcirc:zB,Jcy:jB,jcy:UB,Jfr:qB,jfr:HB,jmath:VB,Jopf:GB,jopf:KB,Jscr:WB,jscr:ZB,Jsercy:YB,jsercy:QB,Jukcy:JB,jukcy:XB,Kappa:e$,kappa:t$,kappav:n$,Kcedil:s$,kcedil:o$,Kcy:r$,kcy:i$,Kfr:a$,kfr:l$,kgreen:c$,KHcy:d$,khcy:u$,KJcy:f$,kjcy:h$,Kopf:p$,kopf:g$,Kscr:m$,kscr:_$,lAarr:b$,Lacute:y$,lacute:v$,laemptyv:w$,lagran:x$,Lambda:k$,lambda:E$,lang:C$,Lang:A$,langd:S$,langle:T$,lap:M$,Laplacetrf:O$,laquo:R$,larrb:N$,larrbfs:D$,larr:L$,Larr:I$,lArr:P$,larrfs:F$,larrhk:B$,larrlp:$$,larrpl:z$,larrsim:j$,larrtl:U$,latail:q$,lAtail:H$,lat:V$,late:G$,lates:K$,lbarr:W$,lBarr:Z$,lbbrk:Y$,lbrace:Q$,lbrack:J$,lbrke:X$,lbrksld:ez,lbrkslu:tz,Lcaron:nz,lcaron:sz,Lcedil:oz,lcedil:rz,lceil:iz,lcub:az,Lcy:lz,lcy:cz,ldca:dz,ldquo:uz,ldquor:fz,ldrdhar:hz,ldrushar:pz,ldsh:gz,le:mz,lE:_z,LeftAngleBracket:bz,LeftArrowBar:yz,leftarrow:vz,LeftArrow:wz,Leftarrow:xz,LeftArrowRightArrow:kz,leftarrowtail:Ez,LeftCeiling:Cz,LeftDoubleBracket:Az,LeftDownTeeVector:Sz,LeftDownVectorBar:Tz,LeftDownVector:Mz,LeftFloor:Oz,leftharpoondown:Rz,leftharpoonup:Nz,leftleftarrows:Dz,leftrightarrow:Lz,LeftRightArrow:Iz,Leftrightarrow:Pz,leftrightarrows:Fz,leftrightharpoons:Bz,leftrightsquigarrow:$z,LeftRightVector:zz,LeftTeeArrow:jz,LeftTee:Uz,LeftTeeVector:qz,leftthreetimes:Hz,LeftTriangleBar:Vz,LeftTriangle:Gz,LeftTriangleEqual:Kz,LeftUpDownVector:Wz,LeftUpTeeVector:Zz,LeftUpVectorBar:Yz,LeftUpVector:Qz,LeftVectorBar:Jz,LeftVector:Xz,lEg:ej,leg:tj,leq:nj,leqq:sj,leqslant:oj,lescc:rj,les:ij,lesdot:aj,lesdoto:lj,lesdotor:cj,lesg:dj,lesges:uj,lessapprox:fj,lessdot:hj,lesseqgtr:pj,lesseqqgtr:gj,LessEqualGreater:mj,LessFullEqual:_j,LessGreater:bj,lessgtr:yj,LessLess:vj,lesssim:wj,LessSlantEqual:xj,LessTilde:kj,lfisht:Ej,lfloor:Cj,Lfr:Aj,lfr:Sj,lg:Tj,lgE:Mj,lHar:Oj,lhard:Rj,lharu:Nj,lharul:Dj,lhblk:Lj,LJcy:Ij,ljcy:Pj,llarr:Fj,ll:Bj,Ll:$j,llcorner:zj,Lleftarrow:jj,llhard:Uj,lltri:qj,Lmidot:Hj,lmidot:Vj,lmoustache:Gj,lmoust:Kj,lnap:Wj,lnapprox:Zj,lne:Yj,lnE:Qj,lneq:Jj,lneqq:Xj,lnsim:eU,loang:tU,loarr:nU,lobrk:sU,longleftarrow:oU,LongLeftArrow:rU,Longleftarrow:iU,longleftrightarrow:aU,LongLeftRightArrow:lU,Longleftrightarrow:cU,longmapsto:dU,longrightarrow:uU,LongRightArrow:fU,Longrightarrow:hU,looparrowleft:pU,looparrowright:gU,lopar:mU,Lopf:_U,lopf:bU,loplus:yU,lotimes:vU,lowast:wU,lowbar:xU,LowerLeftArrow:kU,LowerRightArrow:EU,loz:CU,lozenge:AU,lozf:SU,lpar:TU,lparlt:MU,lrarr:OU,lrcorner:RU,lrhar:NU,lrhard:DU,lrm:LU,lrtri:IU,lsaquo:PU,lscr:FU,Lscr:BU,lsh:$U,Lsh:zU,lsim:jU,lsime:UU,lsimg:qU,lsqb:HU,lsquo:VU,lsquor:GU,Lstrok:KU,lstrok:WU,ltcc:ZU,ltcir:YU,lt:QU,LT:JU,Lt:XU,ltdot:eq,lthree:tq,ltimes:nq,ltlarr:sq,ltquest:oq,ltri:rq,ltrie:iq,ltrif:aq,ltrPar:lq,lurdshar:cq,luruhar:dq,lvertneqq:uq,lvnE:fq,macr:hq,male:pq,malt:gq,maltese:mq,Map:"⤅",map:_q,mapsto:bq,mapstodown:yq,mapstoleft:vq,mapstoup:wq,marker:xq,mcomma:kq,Mcy:Eq,mcy:Cq,mdash:Aq,mDDot:Sq,measuredangle:Tq,MediumSpace:Mq,Mellintrf:Oq,Mfr:Rq,mfr:Nq,mho:Dq,micro:Lq,midast:Iq,midcir:Pq,mid:Fq,middot:Bq,minusb:$q,minus:zq,minusd:jq,minusdu:Uq,MinusPlus:qq,mlcp:Hq,mldr:Vq,mnplus:Gq,models:Kq,Mopf:Wq,mopf:Zq,mp:Yq,mscr:Qq,Mscr:Jq,mstpos:Xq,Mu:eH,mu:tH,multimap:nH,mumap:sH,nabla:oH,Nacute:rH,nacute:iH,nang:aH,nap:lH,napE:cH,napid:dH,napos:uH,napprox:fH,natural:hH,naturals:pH,natur:gH,nbsp:mH,nbump:_H,nbumpe:bH,ncap:yH,Ncaron:vH,ncaron:wH,Ncedil:xH,ncedil:kH,ncong:EH,ncongdot:CH,ncup:AH,Ncy:SH,ncy:TH,ndash:MH,nearhk:OH,nearr:RH,neArr:NH,nearrow:DH,ne:LH,nedot:IH,NegativeMediumSpace:PH,NegativeThickSpace:FH,NegativeThinSpace:BH,NegativeVeryThinSpace:$H,nequiv:zH,nesear:jH,nesim:UH,NestedGreaterGreater:qH,NestedLessLess:HH,NewLine:VH,nexist:GH,nexists:KH,Nfr:WH,nfr:ZH,ngE:YH,nge:QH,ngeq:JH,ngeqq:XH,ngeqslant:eV,nges:tV,nGg:nV,ngsim:sV,nGt:oV,ngt:rV,ngtr:iV,nGtv:aV,nharr:lV,nhArr:cV,nhpar:dV,ni:uV,nis:fV,nisd:hV,niv:pV,NJcy:gV,njcy:mV,nlarr:_V,nlArr:bV,nldr:yV,nlE:vV,nle:wV,nleftarrow:xV,nLeftarrow:kV,nleftrightarrow:EV,nLeftrightarrow:CV,nleq:AV,nleqq:SV,nleqslant:TV,nles:MV,nless:OV,nLl:RV,nlsim:NV,nLt:DV,nlt:LV,nltri:IV,nltrie:PV,nLtv:FV,nmid:BV,NoBreak:$V,NonBreakingSpace:zV,nopf:jV,Nopf:UV,Not:qV,not:HV,NotCongruent:VV,NotCupCap:GV,NotDoubleVerticalBar:KV,NotElement:WV,NotEqual:ZV,NotEqualTilde:YV,NotExists:QV,NotGreater:JV,NotGreaterEqual:XV,NotGreaterFullEqual:eG,NotGreaterGreater:tG,NotGreaterLess:nG,NotGreaterSlantEqual:sG,NotGreaterTilde:oG,NotHumpDownHump:rG,NotHumpEqual:iG,notin:aG,notindot:lG,notinE:cG,notinva:dG,notinvb:uG,notinvc:fG,NotLeftTriangleBar:hG,NotLeftTriangle:pG,NotLeftTriangleEqual:gG,NotLess:mG,NotLessEqual:_G,NotLessGreater:bG,NotLessLess:yG,NotLessSlantEqual:vG,NotLessTilde:wG,NotNestedGreaterGreater:xG,NotNestedLessLess:kG,notni:EG,notniva:CG,notnivb:AG,notnivc:SG,NotPrecedes:TG,NotPrecedesEqual:MG,NotPrecedesSlantEqual:OG,NotReverseElement:RG,NotRightTriangleBar:NG,NotRightTriangle:DG,NotRightTriangleEqual:LG,NotSquareSubset:IG,NotSquareSubsetEqual:PG,NotSquareSuperset:FG,NotSquareSupersetEqual:BG,NotSubset:$G,NotSubsetEqual:zG,NotSucceeds:jG,NotSucceedsEqual:UG,NotSucceedsSlantEqual:qG,NotSucceedsTilde:HG,NotSuperset:VG,NotSupersetEqual:GG,NotTilde:KG,NotTildeEqual:WG,NotTildeFullEqual:ZG,NotTildeTilde:YG,NotVerticalBar:QG,nparallel:JG,npar:XG,nparsl:eK,npart:tK,npolint:nK,npr:sK,nprcue:oK,nprec:rK,npreceq:iK,npre:aK,nrarrc:lK,nrarr:cK,nrArr:dK,nrarrw:uK,nrightarrow:fK,nRightarrow:hK,nrtri:pK,nrtrie:gK,nsc:mK,nsccue:_K,nsce:bK,Nscr:yK,nscr:vK,nshortmid:wK,nshortparallel:xK,nsim:kK,nsime:EK,nsimeq:CK,nsmid:AK,nspar:SK,nsqsube:TK,nsqsupe:MK,nsub:OK,nsubE:RK,nsube:NK,nsubset:DK,nsubseteq:LK,nsubseteqq:IK,nsucc:PK,nsucceq:FK,nsup:BK,nsupE:$K,nsupe:zK,nsupset:jK,nsupseteq:UK,nsupseteqq:qK,ntgl:HK,Ntilde:VK,ntilde:GK,ntlg:KK,ntriangleleft:WK,ntrianglelefteq:ZK,ntriangleright:YK,ntrianglerighteq:QK,Nu:JK,nu:XK,num:eW,numero:tW,numsp:nW,nvap:sW,nvdash:oW,nvDash:rW,nVdash:iW,nVDash:aW,nvge:lW,nvgt:cW,nvHarr:dW,nvinfin:uW,nvlArr:fW,nvle:hW,nvlt:pW,nvltrie:gW,nvrArr:mW,nvrtrie:_W,nvsim:bW,nwarhk:yW,nwarr:vW,nwArr:wW,nwarrow:xW,nwnear:kW,Oacute:EW,oacute:CW,oast:AW,Ocirc:SW,ocirc:TW,ocir:MW,Ocy:OW,ocy:RW,odash:NW,Odblac:DW,odblac:LW,odiv:IW,odot:PW,odsold:FW,OElig:BW,oelig:$W,ofcir:zW,Ofr:jW,ofr:UW,ogon:qW,Ograve:HW,ograve:VW,ogt:GW,ohbar:KW,ohm:WW,oint:ZW,olarr:YW,olcir:QW,olcross:JW,oline:XW,olt:eZ,Omacr:tZ,omacr:nZ,Omega:sZ,omega:oZ,Omicron:rZ,omicron:iZ,omid:aZ,ominus:lZ,Oopf:cZ,oopf:dZ,opar:uZ,OpenCurlyDoubleQuote:fZ,OpenCurlyQuote:hZ,operp:pZ,oplus:gZ,orarr:mZ,Or:_Z,or:bZ,ord:yZ,order:vZ,orderof:wZ,ordf:xZ,ordm:kZ,origof:EZ,oror:CZ,orslope:AZ,orv:SZ,oS:TZ,Oscr:MZ,oscr:OZ,Oslash:RZ,oslash:NZ,osol:DZ,Otilde:LZ,otilde:IZ,otimesas:PZ,Otimes:FZ,otimes:BZ,Ouml:$Z,ouml:zZ,ovbar:jZ,OverBar:UZ,OverBrace:qZ,OverBracket:HZ,OverParenthesis:VZ,para:GZ,parallel:KZ,par:WZ,parsim:ZZ,parsl:YZ,part:QZ,PartialD:JZ,Pcy:XZ,pcy:eY,percnt:tY,period:nY,permil:sY,perp:oY,pertenk:rY,Pfr:iY,pfr:aY,Phi:lY,phi:cY,phiv:dY,phmmat:uY,phone:fY,Pi:hY,pi:pY,pitchfork:gY,piv:mY,planck:_Y,planckh:bY,plankv:yY,plusacir:vY,plusb:wY,pluscir:xY,plus:kY,plusdo:EY,plusdu:CY,pluse:AY,PlusMinus:SY,plusmn:TY,plussim:MY,plustwo:OY,pm:RY,Poincareplane:NY,pointint:DY,popf:LY,Popf:IY,pound:PY,prap:FY,Pr:BY,pr:$Y,prcue:zY,precapprox:jY,prec:UY,preccurlyeq:qY,Precedes:HY,PrecedesEqual:VY,PrecedesSlantEqual:GY,PrecedesTilde:KY,preceq:WY,precnapprox:ZY,precneqq:YY,precnsim:QY,pre:JY,prE:XY,precsim:eQ,prime:tQ,Prime:nQ,primes:sQ,prnap:oQ,prnE:rQ,prnsim:iQ,prod:aQ,Product:lQ,profalar:cQ,profline:dQ,profsurf:uQ,prop:fQ,Proportional:hQ,Proportion:pQ,propto:gQ,prsim:mQ,prurel:_Q,Pscr:bQ,pscr:yQ,Psi:vQ,psi:wQ,puncsp:xQ,Qfr:kQ,qfr:EQ,qint:CQ,qopf:AQ,Qopf:SQ,qprime:TQ,Qscr:MQ,qscr:OQ,quaternions:RQ,quatint:NQ,quest:DQ,questeq:LQ,quot:IQ,QUOT:PQ,rAarr:FQ,race:BQ,Racute:$Q,racute:zQ,radic:jQ,raemptyv:UQ,rang:qQ,Rang:HQ,rangd:VQ,range:GQ,rangle:KQ,raquo:WQ,rarrap:ZQ,rarrb:YQ,rarrbfs:QQ,rarrc:JQ,rarr:XQ,Rarr:eJ,rArr:tJ,rarrfs:nJ,rarrhk:sJ,rarrlp:oJ,rarrpl:rJ,rarrsim:iJ,Rarrtl:aJ,rarrtl:lJ,rarrw:cJ,ratail:dJ,rAtail:uJ,ratio:fJ,rationals:hJ,rbarr:pJ,rBarr:gJ,RBarr:mJ,rbbrk:_J,rbrace:bJ,rbrack:yJ,rbrke:vJ,rbrksld:wJ,rbrkslu:xJ,Rcaron:kJ,rcaron:EJ,Rcedil:CJ,rcedil:AJ,rceil:SJ,rcub:TJ,Rcy:MJ,rcy:OJ,rdca:RJ,rdldhar:NJ,rdquo:DJ,rdquor:LJ,rdsh:IJ,real:PJ,realine:FJ,realpart:BJ,reals:$J,Re:zJ,rect:jJ,reg:UJ,REG:qJ,ReverseElement:HJ,ReverseEquilibrium:VJ,ReverseUpEquilibrium:GJ,rfisht:KJ,rfloor:WJ,rfr:ZJ,Rfr:YJ,rHar:QJ,rhard:JJ,rharu:XJ,rharul:eX,Rho:tX,rho:nX,rhov:sX,RightAngleBracket:oX,RightArrowBar:rX,rightarrow:iX,RightArrow:aX,Rightarrow:lX,RightArrowLeftArrow:cX,rightarrowtail:dX,RightCeiling:uX,RightDoubleBracket:fX,RightDownTeeVector:hX,RightDownVectorBar:pX,RightDownVector:gX,RightFloor:mX,rightharpoondown:_X,rightharpoonup:bX,rightleftarrows:yX,rightleftharpoons:vX,rightrightarrows:wX,rightsquigarrow:xX,RightTeeArrow:kX,RightTee:EX,RightTeeVector:CX,rightthreetimes:AX,RightTriangleBar:SX,RightTriangle:TX,RightTriangleEqual:MX,RightUpDownVector:OX,RightUpTeeVector:RX,RightUpVectorBar:NX,RightUpVector:DX,RightVectorBar:LX,RightVector:IX,ring:PX,risingdotseq:FX,rlarr:BX,rlhar:$X,rlm:zX,rmoustache:jX,rmoust:UX,rnmid:qX,roang:HX,roarr:VX,robrk:GX,ropar:KX,ropf:WX,Ropf:ZX,roplus:YX,rotimes:QX,RoundImplies:JX,rpar:XX,rpargt:eee,rppolint:tee,rrarr:nee,Rrightarrow:see,rsaquo:oee,rscr:ree,Rscr:iee,rsh:aee,Rsh:lee,rsqb:cee,rsquo:dee,rsquor:uee,rthree:fee,rtimes:hee,rtri:pee,rtrie:gee,rtrif:mee,rtriltri:_ee,RuleDelayed:bee,ruluhar:yee,rx:vee,Sacute:wee,sacute:xee,sbquo:kee,scap:Eee,Scaron:Cee,scaron:Aee,Sc:See,sc:Tee,sccue:Mee,sce:Oee,scE:Ree,Scedil:Nee,scedil:Dee,Scirc:Lee,scirc:Iee,scnap:Pee,scnE:Fee,scnsim:Bee,scpolint:$ee,scsim:zee,Scy:jee,scy:Uee,sdotb:qee,sdot:Hee,sdote:Vee,searhk:Gee,searr:Kee,seArr:Wee,searrow:Zee,sect:Yee,semi:Qee,seswar:Jee,setminus:Xee,setmn:ete,sext:tte,Sfr:nte,sfr:ste,sfrown:ote,sharp:rte,SHCHcy:ite,shchcy:ate,SHcy:lte,shcy:cte,ShortDownArrow:dte,ShortLeftArrow:ute,shortmid:fte,shortparallel:hte,ShortRightArrow:pte,ShortUpArrow:gte,shy:mte,Sigma:_te,sigma:bte,sigmaf:yte,sigmav:vte,sim:wte,simdot:xte,sime:kte,simeq:Ete,simg:Cte,simgE:Ate,siml:Ste,simlE:Tte,simne:Mte,simplus:Ote,simrarr:Rte,slarr:Nte,SmallCircle:Dte,smallsetminus:Lte,smashp:Ite,smeparsl:Pte,smid:Fte,smile:Bte,smt:$te,smte:zte,smtes:jte,SOFTcy:Ute,softcy:qte,solbar:Hte,solb:Vte,sol:Gte,Sopf:Kte,sopf:Wte,spades:Zte,spadesuit:Yte,spar:Qte,sqcap:Jte,sqcaps:Xte,sqcup:ene,sqcups:tne,Sqrt:nne,sqsub:sne,sqsube:one,sqsubset:rne,sqsubseteq:ine,sqsup:ane,sqsupe:lne,sqsupset:cne,sqsupseteq:dne,square:une,Square:fne,SquareIntersection:hne,SquareSubset:pne,SquareSubsetEqual:gne,SquareSuperset:mne,SquareSupersetEqual:_ne,SquareUnion:bne,squarf:yne,squ:vne,squf:wne,srarr:xne,Sscr:kne,sscr:Ene,ssetmn:Cne,ssmile:Ane,sstarf:Sne,Star:Tne,star:Mne,starf:One,straightepsilon:Rne,straightphi:Nne,strns:Dne,sub:Lne,Sub:Ine,subdot:Pne,subE:Fne,sube:Bne,subedot:$ne,submult:zne,subnE:jne,subne:Une,subplus:qne,subrarr:Hne,subset:Vne,Subset:Gne,subseteq:Kne,subseteqq:Wne,SubsetEqual:Zne,subsetneq:Yne,subsetneqq:Qne,subsim:Jne,subsub:Xne,subsup:ese,succapprox:tse,succ:nse,succcurlyeq:sse,Succeeds:ose,SucceedsEqual:rse,SucceedsSlantEqual:ise,SucceedsTilde:ase,succeq:lse,succnapprox:cse,succneqq:dse,succnsim:use,succsim:fse,SuchThat:hse,sum:pse,Sum:gse,sung:mse,sup1:_se,sup2:bse,sup3:yse,sup:vse,Sup:wse,supdot:xse,supdsub:kse,supE:Ese,supe:Cse,supedot:Ase,Superset:Sse,SupersetEqual:Tse,suphsol:Mse,suphsub:Ose,suplarr:Rse,supmult:Nse,supnE:Dse,supne:Lse,supplus:Ise,supset:Pse,Supset:Fse,supseteq:Bse,supseteqq:$se,supsetneq:zse,supsetneqq:jse,supsim:Use,supsub:qse,supsup:Hse,swarhk:Vse,swarr:Gse,swArr:Kse,swarrow:Wse,swnwar:Zse,szlig:Yse,Tab:Qse,target:Jse,Tau:Xse,tau:eoe,tbrk:toe,Tcaron:noe,tcaron:soe,Tcedil:ooe,tcedil:roe,Tcy:ioe,tcy:aoe,tdot:loe,telrec:coe,Tfr:doe,tfr:uoe,there4:foe,therefore:hoe,Therefore:poe,Theta:goe,theta:moe,thetasym:_oe,thetav:boe,thickapprox:yoe,thicksim:voe,ThickSpace:woe,ThinSpace:xoe,thinsp:koe,thkap:Eoe,thksim:Coe,THORN:Aoe,thorn:Soe,tilde:Toe,Tilde:Moe,TildeEqual:Ooe,TildeFullEqual:Roe,TildeTilde:Noe,timesbar:Doe,timesb:Loe,times:Ioe,timesd:Poe,tint:Foe,toea:Boe,topbot:$oe,topcir:zoe,top:joe,Topf:Uoe,topf:qoe,topfork:Hoe,tosa:Voe,tprime:Goe,trade:Koe,TRADE:Woe,triangle:Zoe,triangledown:Yoe,triangleleft:Qoe,trianglelefteq:Joe,triangleq:Xoe,triangleright:ere,trianglerighteq:tre,tridot:nre,trie:sre,triminus:ore,TripleDot:rre,triplus:ire,trisb:are,tritime:lre,trpezium:cre,Tscr:dre,tscr:ure,TScy:fre,tscy:hre,TSHcy:pre,tshcy:gre,Tstrok:mre,tstrok:_re,twixt:bre,twoheadleftarrow:yre,twoheadrightarrow:vre,Uacute:wre,uacute:xre,uarr:kre,Uarr:Ere,uArr:Cre,Uarrocir:Are,Ubrcy:Sre,ubrcy:Tre,Ubreve:Mre,ubreve:Ore,Ucirc:Rre,ucirc:Nre,Ucy:Dre,ucy:Lre,udarr:Ire,Udblac:Pre,udblac:Fre,udhar:Bre,ufisht:$re,Ufr:zre,ufr:jre,Ugrave:Ure,ugrave:qre,uHar:Hre,uharl:Vre,uharr:Gre,uhblk:Kre,ulcorn:Wre,ulcorner:Zre,ulcrop:Yre,ultri:Qre,Umacr:Jre,umacr:Xre,uml:eie,UnderBar:tie,UnderBrace:nie,UnderBracket:sie,UnderParenthesis:oie,Union:rie,UnionPlus:iie,Uogon:aie,uogon:lie,Uopf:cie,uopf:die,UpArrowBar:uie,uparrow:fie,UpArrow:hie,Uparrow:pie,UpArrowDownArrow:gie,updownarrow:mie,UpDownArrow:_ie,Updownarrow:bie,UpEquilibrium:yie,upharpoonleft:vie,upharpoonright:wie,uplus:xie,UpperLeftArrow:kie,UpperRightArrow:Eie,upsi:Cie,Upsi:Aie,upsih:Sie,Upsilon:Tie,upsilon:Mie,UpTeeArrow:Oie,UpTee:Rie,upuparrows:Nie,urcorn:Die,urcorner:Lie,urcrop:Iie,Uring:Pie,uring:Fie,urtri:Bie,Uscr:$ie,uscr:zie,utdot:jie,Utilde:Uie,utilde:qie,utri:Hie,utrif:Vie,uuarr:Gie,Uuml:Kie,uuml:Wie,uwangle:Zie,vangrt:Yie,varepsilon:Qie,varkappa:Jie,varnothing:Xie,varphi:eae,varpi:tae,varpropto:nae,varr:sae,vArr:oae,varrho:rae,varsigma:iae,varsubsetneq:aae,varsubsetneqq:lae,varsupsetneq:cae,varsupsetneqq:dae,vartheta:uae,vartriangleleft:fae,vartriangleright:hae,vBar:pae,Vbar:gae,vBarv:mae,Vcy:_ae,vcy:bae,vdash:yae,vDash:vae,Vdash:wae,VDash:xae,Vdashl:kae,veebar:Eae,vee:Cae,Vee:Aae,veeeq:Sae,vellip:Tae,verbar:Mae,Verbar:Oae,vert:Rae,Vert:Nae,VerticalBar:Dae,VerticalLine:Lae,VerticalSeparator:Iae,VerticalTilde:Pae,VeryThinSpace:Fae,Vfr:Bae,vfr:$ae,vltri:zae,vnsub:jae,vnsup:Uae,Vopf:qae,vopf:Hae,vprop:Vae,vrtri:Gae,Vscr:Kae,vscr:Wae,vsubnE:Zae,vsubne:Yae,vsupnE:Qae,vsupne:Jae,Vvdash:Xae,vzigzag:ele,Wcirc:tle,wcirc:nle,wedbar:sle,wedge:ole,Wedge:rle,wedgeq:ile,weierp:ale,Wfr:lle,wfr:cle,Wopf:dle,wopf:ule,wp:fle,wr:hle,wreath:ple,Wscr:gle,wscr:mle,xcap:_le,xcirc:ble,xcup:yle,xdtri:vle,Xfr:wle,xfr:xle,xharr:kle,xhArr:Ele,Xi:Cle,xi:Ale,xlarr:Sle,xlArr:Tle,xmap:Mle,xnis:Ole,xodot:Rle,Xopf:Nle,xopf:Dle,xoplus:Lle,xotime:Ile,xrarr:Ple,xrArr:Fle,Xscr:Ble,xscr:$le,xsqcup:zle,xuplus:jle,xutri:Ule,xvee:qle,xwedge:Hle,Yacute:Vle,yacute:Gle,YAcy:Kle,yacy:Wle,Ycirc:Zle,ycirc:Yle,Ycy:Qle,ycy:Jle,yen:Xle,Yfr:ece,yfr:tce,YIcy:nce,yicy:sce,Yopf:oce,yopf:rce,Yscr:ice,yscr:ace,YUcy:lce,yucy:cce,yuml:dce,Yuml:uce,Zacute:fce,zacute:hce,Zcaron:pce,zcaron:gce,Zcy:mce,zcy:_ce,Zdot:bce,zdot:yce,zeetrf:vce,ZeroWidthSpace:wce,Zeta:xce,zeta:kce,zfr:Ece,Zfr:Cce,ZHcy:Ace,zhcy:Sce,zigrarr:Tce,zopf:Mce,Zopf:Oce,Zscr:Rce,zscr:Nce,zwj:Dce,zwnj:Lce};var tg=Ice,nc=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Vs={},Gd={};function Pce(t){var e,n,s=Gd[t];if(s)return s;for(s=Gd[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?s.push(n):s.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e"u"&&(n=!0),a=Pce(e),s=0,o=t.length;s=55296&&r<=57343){if(r>=55296&&r<=56319&&s+1=56320&&i<=57343)){l+=encodeURIComponent(t[s]+t[s+1]),s++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(t[s])}return l}li.defaultChars=";/?:@&=+$,-_.!~*'()#";li.componentChars="-_.!~*'()";var Fce=li,Kd={};function Bce(t){var e,n,s=Kd[t];if(s)return s;for(s=Kd[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),s.push(n);for(e=0;e=55296&&d<=57343?f+="���":f+=String.fromCharCode(d),o+=6;continue}if((i&248)===240&&o+91114111?f+="����":(d-=65536,f+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}f+="�"}return f})}ci.defaultChars=";/?:@&=+$,#";ci.componentChars="";var $ce=ci,zce=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function Ar(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var jce=/^([a-z0-9.+-]+:)/i,Uce=/:[0-9]*$/,qce=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Hce=["<",">",'"',"`"," ","\r",` -`," "],Vce=["{","}","|","\\","^","`"].concat(Hce),Gce=["'"].concat(Vce),Wd=["%","/","?",";","#"].concat(Gce),Zd=["/","?","#"],Kce=255,Yd=/^[+a-z0-9A-Z_-]{0,63}$/,Wce=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Qd={javascript:!0,"javascript:":!0},Jd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Zce(t,e){if(t&&t instanceof Ar)return t;var n=new Ar;return n.parse(t,e),n}Ar.prototype.parse=function(t,e){var n,s,o,r,i,a=t;if(a=a.trim(),!e&&t.split("#").length===1){var l=qce.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=jce.exec(a);if(c&&(c=c[0],o=c.toLowerCase(),this.protocol=c,a=a.substr(c.length)),(e||c||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)==="//",i&&!(c&&Qd[c])&&(a=a.substr(2),this.slashes=!0)),!Qd[c]&&(i||c&&!Jd[c])){var d=-1;for(n=0;n127?_+="x":_+=v[b];if(!_.match(Yd)){var C=m.slice(0,n),R=m.slice(n+1),O=v.match(Wce);O&&(C.push(O[1]),R.unshift(O[2])),R.length&&(a=R.join(".")+a),this.hostname=C.join(".");break}}}}this.hostname.length>Kce&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=a.indexOf("#");D!==-1&&(this.hash=a.substr(D),a=a.slice(0,D));var y=a.indexOf("?");return y!==-1&&(this.search=a.substr(y),a=a.slice(0,y)),a&&(this.pathname=a),Jd[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Ar.prototype.parseHost=function(t){var e=Uce.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Yce=Zce;Vs.encode=Fce;Vs.decode=$ce;Vs.format=zce;Vs.parse=Yce;var Pn={},$i,Xd;function ng(){return Xd||(Xd=1,$i=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),$i}var zi,eu;function sg(){return eu||(eu=1,zi=/[\0-\x1F\x7F-\x9F]/),zi}var ji,tu;function Qce(){return tu||(tu=1,ji=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),ji}var Ui,nu;function og(){return nu||(nu=1,Ui=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Ui}var su;function Jce(){return su||(su=1,Pn.Any=ng(),Pn.Cc=sg(),Pn.Cf=Qce(),Pn.P=nc,Pn.Z=og()),Pn}(function(t){function e(I){return Object.prototype.toString.call(I)}function n(I){return e(I)==="[object String]"}var s=Object.prototype.hasOwnProperty;function o(I,ae){return s.call(I,ae)}function r(I){var ae=Array.prototype.slice.call(arguments,1);return ae.forEach(function(W){if(W){if(typeof W!="object")throw new TypeError(W+"must be object");Object.keys(W).forEach(function(S){I[S]=W[S]})}}),I}function i(I,ae,W){return[].concat(I.slice(0,ae),W,I.slice(ae+1))}function a(I){return!(I>=55296&&I<=57343||I>=64976&&I<=65007||(I&65535)===65535||(I&65535)===65534||I>=0&&I<=8||I===11||I>=14&&I<=31||I>=127&&I<=159||I>1114111)}function l(I){if(I>65535){I-=65536;var ae=55296+(I>>10),W=56320+(I&1023);return String.fromCharCode(ae,W)}return String.fromCharCode(I)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(c.source+"|"+d.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,g=tg;function h(I,ae){var W=0;return o(g,ae)?g[ae]:ae.charCodeAt(0)===35&&p.test(ae)&&(W=ae[1].toLowerCase()==="x"?parseInt(ae.slice(2),16):parseInt(ae.slice(1),10),a(W))?l(W):I}function m(I){return I.indexOf("\\")<0?I:I.replace(c,"$1")}function v(I){return I.indexOf("\\")<0&&I.indexOf("&")<0?I:I.replace(f,function(ae,W,S){return W||h(ae,S)})}var _=/[&<>"]/,b=/[&<>"]/g,x={"&":"&","<":"<",">":">",'"':"""};function C(I){return x[I]}function R(I){return _.test(I)?I.replace(b,C):I}var O=/[.?*+^$[\]\\(){}|-]/g;function D(I){return I.replace(O,"\\$&")}function y(I){switch(I){case 9:case 32:return!0}return!1}function k(I){if(I>=8192&&I<=8202)return!0;switch(I){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var T=nc;function L(I){return T.test(I)}function F(I){switch(I){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Q(I){return I=I.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(I=I.replace(/ẞ/g,"ß")),I.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=Vs,t.lib.ucmicro=Jce(),t.assign=r,t.isString=n,t.has=o,t.unescapeMd=m,t.unescapeAll=v,t.isValidEntityCode=a,t.fromCodePoint=l,t.escapeHtml=R,t.arrayReplaceAt=i,t.isSpace=y,t.isWhiteSpace=k,t.isMdAsciiPunct=F,t.isPunctChar=L,t.escapeRE=D,t.normalizeReference=Q})(je);var di={},Xce=function(e,n,s){var o,r,i,a,l=-1,c=e.posMax,d=e.pos;for(e.pos=n+1,o=1;e.pos32))return l;if(o===41){if(r===0)break;r--}n++}return a===n||r!==0||(l.str=ou(e.slice(a,n)),l.lines=i,l.pos=n,l.ok=!0),l},tde=je.unescapeAll,nde=function(e,n,s){var o,r,i=0,a=n,l={ok:!1,pos:0,lines:0,str:""};if(n>=s||(r=e.charCodeAt(n),r!==34&&r!==39&&r!==40))return l;for(n++,r===40&&(r=41);n"+Xn(t[e].content)+""};Jt.code_block=function(t,e,n,s,o){var r=t[e];return""+Xn(t[e].content)+` -`};Jt.fence=function(t,e,n,s,o){var r=t[e],i=r.info?ode(r.info).trim():"",a="",l="",c,d,f,p,g;return i&&(f=i.split(/(\s+)/g),a=f[0],l=f.slice(2).join("")),n.highlight?c=n.highlight(r.content,a,l)||Xn(r.content):c=Xn(r.content),c.indexOf(""+c+` +You need to select model before you leave, or else.`,"Ok","Cancel"),!1}},he=t=>(ns("data-v-ec3927a6"),t=t(),ss(),t),d5={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-0"},h5={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg"},f5={key:0,class:"flex gap-3 flex-1 items-center duration-75"},p5=he(()=>d("i",{"data-feather":"x"},null,-1)),g5=[p5],m5=he(()=>d("i",{"data-feather":"check"},null,-1)),_5=[m5],b5={key:1,class:"flex gap-3 flex-1 items-center"},y5=he(()=>d("i",{"data-feather":"save"},null,-1)),v5=[y5],w5=he(()=>d("i",{"data-feather":"refresh-ccw"},null,-1)),x5=[w5],k5=he(()=>d("i",{"data-feather":"list"},null,-1)),E5=[k5],C5={class:"flex gap-3 flex-1 items-center justify-end"},A5={class:"flex gap-3 items-center"},S5={key:0,class:"flex gap-3 items-center"},T5=he(()=>d("i",{"data-feather":"check"},null,-1)),M5=[T5],O5={key:1,role:"status"},R5=he(()=>d("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[d("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),d("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),N5=he(()=>d("span",{class:"sr-only"},"Loading...",-1)),D5={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},L5={class:"flex flex-row p-3"},I5=he(()=>d("i",{"data-feather":"chevron-right"},null,-1)),P5=[I5],F5=he(()=>d("i",{"data-feather":"chevron-down"},null,-1)),B5=[F5],$5=he(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),j5=he(()=>d("div",{class:"mr-2"},"|",-1)),z5={class:"text-base font-semibold cursor-pointer select-none items-center"},U5={class:"flex gap-2 items-center"},q5={key:0},H5={class:"flex gap-2 items-center"},V5=["title"],G5=zs('',34),K5=[G5],W5={class:"font-bold font-large text-lg"},Z5={key:1},Y5={class:"flex gap-2 items-center"},Q5=zs('',1),J5={class:"font-bold font-large text-lg"},X5=he(()=>d("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),e4={class:"font-bold font-large text-lg"},t4=he(()=>d("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),n4={class:"font-bold font-large text-lg"},s4={class:"mb-2"},o4=he(()=>d("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[d("path",{fill:"currentColor",d:"M17 17H7V7h10m4 4V9h-2V7a2 2 0 0 0-2-2h-2V3h-2v2h-2V3H9v2H7c-1.11 0-2 .89-2 2v2H3v2h2v2H3v2h2v2a2 2 0 0 0 2 2h2v2h2v-2h2v2h2v-2h2a2 2 0 0 0 2-2v-2h2v-2h-2v-2m-6 2h-2v-2h2m2-2H9v6h6V9Z"})]),we(" CPU Ram usage: ")],-1)),r4={class:"flex flex-col mx-2"},i4=he(()=>d("b",null,"Avaliable ram: ",-1)),a4=he(()=>d("b",null,"Ram usage: ",-1)),l4={class:"p-2"},c4={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},u4={class:"mb-2"},d4=he(()=>d("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[d("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),we(" Disk usage: ")],-1)),h4={class:"flex flex-col mx-2"},f4=he(()=>d("b",null,"Avaliable disk space: ",-1)),p4=he(()=>d("b",null,"Disk usage: ",-1)),g4={class:"p-2"},m4={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},_4={class:"mb-2"},b4=zs('',1),y4={class:"flex flex-col mx-2"},v4=he(()=>d("b",null,"Model: ",-1)),w4=he(()=>d("b",null,"Avaliable vram: ",-1)),x4=he(()=>d("b",null,"GPU usage: ",-1)),k4={class:"p-2"},E4={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},C4={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},A4={class:"flex flex-row p-3"},S4=he(()=>d("i",{"data-feather":"chevron-right"},null,-1)),T4=[S4],M4=he(()=>d("i",{"data-feather":"chevron-down"},null,-1)),O4=[M4],R4=he(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1)),N4={style:{width:"100%"}},D4=he(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),L4={style:{"min-width":"300px"}},I4=he(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),P4={style:{width:"100%"}},F4={style:{"min-width":"300px"}},B4=he(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),$4={style:{width:"100%"}},j4={style:{"min-width":"300px"}},z4=he(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),U4={style:{width:"100%"}},q4=["src"],H4={style:{"min-width":"300px"}},V4=he(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),G4={style:{"min-width":"300px"}},K4={class:"w-full"},W4={class:"w-full"},Z4={class:"w-full"},Y4={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Q4={class:"flex flex-row p-3"},J4=he(()=>d("i",{"data-feather":"chevron-right"},null,-1)),X4=[J4],e3=he(()=>d("i",{"data-feather":"chevron-down"},null,-1)),t3=[e3],n3=he(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),s3={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},o3=he(()=>d("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),r3={key:1,class:"mr-2"},i3={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},a3={class:"flex gap-1 items-center"},l3=["src"],c3={class:"font-bold font-large text-lg line-clamp-1"},u3={key:0,class:"mb-2"},d3={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},h3=he(()=>d("i",{"data-feather":"chevron-up"},null,-1)),f3=[h3],p3=he(()=>d("i",{"data-feather":"chevron-down"},null,-1)),g3=[p3],m3={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},_3={class:"flex flex-row p-3"},b3=he(()=>d("i",{"data-feather":"chevron-right"},null,-1)),y3=[b3],v3=he(()=>d("i",{"data-feather":"chevron-down"},null,-1)),w3=[v3],x3=he(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),k3={class:"flex flex-row items-center"},E3={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},C3=he(()=>d("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),A3={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},S3=he(()=>d("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),T3={key:2,class:"mr-2"},M3={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},O3={class:"flex gap-1 items-center"},R3=["src"],N3={class:"font-bold font-large text-lg line-clamp-1"},D3={class:"mx-2 mb-4"},L3={class:"relative"},I3={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},P3={key:0},F3=he(()=>d("div",{role:"status"},[d("svg",{"aria-hidden":"true",class:"inline w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[d("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),d("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),d("span",{class:"sr-only"},"Loading...")],-1)),B3=[F3],$3={key:1},j3=he(()=>d("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[d("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)),z3=[j3],U3={key:0},q3={key:0,class:"mb-2"},H3={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},V3={key:1},G3={key:0,class:"mb-2"},K3={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},W3=he(()=>d("i",{"data-feather":"chevron-up"},null,-1)),Z3=[W3],Y3=he(()=>d("i",{"data-feather":"chevron-down"},null,-1)),Q3=[Y3],J3={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},X3={class:"flex flex-row p-3"},eC=he(()=>d("i",{"data-feather":"chevron-right"},null,-1)),tC=[eC],nC=he(()=>d("i",{"data-feather":"chevron-down"},null,-1)),sC=[nC],oC=he(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Add models for binding",-1)),rC={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},iC=he(()=>d("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),aC={key:1,class:"mr-2"},lC={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},cC={class:"flex gap-1 items-center"},uC=["src"],dC={class:"font-bold font-large text-lg line-clamp-1"},hC={class:"mb-2"},fC={class:"p-2"},pC={key:0},gC={class:"mb-3"},mC=he(()=>d("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),_C={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},bC=he(()=>d("div",{role:"status",class:"justify-center"},null,-1)),yC={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},vC={class:"w-full p-2"},wC={class:"flex justify-between mb-1"},xC=zs(' Downloading Loading...',1),kC={class:"text-sm font-medium text-blue-700 dark:text-white"},EC=["title"],CC={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},AC={class:"flex justify-between mb-1"},SC={class:"text-base font-medium text-blue-700 dark:text-white"},TC={class:"text-sm font-medium text-blue-700 dark:text-white"},MC={class:"flex flex-grow"},OC={class:"flex flex-row flex-grow gap-3"},RC={class:"p-2 text-center grow"},NC={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},DC={class:"flex flex-row p-3 items-center"},LC=he(()=>d("i",{"data-feather":"chevron-right"},null,-1)),IC=[LC],PC=he(()=>d("i",{"data-feather":"chevron-down"},null,-1)),FC=[PC],BC=he(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),$C={key:0,class:"mr-2"},jC={class:"mr-2 font-bold font-large text-lg line-clamp-1"},zC={key:1,class:"mr-2"},UC={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},qC={key:0,class:"flex -space-x-4 items-center"},HC={class:"group items-center flex flex-row"},VC=["onClick"],GC=["src","title"],KC=["onClick"],WC=he(()=>d("span",{class:"hidden group-hover:block top-0 left-7 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[d("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[d("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})])],-1)),ZC=[WC],YC={class:"mx-2 mb-4"},QC=he(()=>d("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),JC={class:"relative"},XC={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},e9={key:0},t9=he(()=>d("div",{role:"status"},[d("svg",{"aria-hidden":"true",class:"inline w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[d("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),d("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),d("span",{class:"sr-only"},"Loading...")],-1)),n9=[t9],s9={key:1},o9=he(()=>d("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[d("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)),r9=[o9],i9={key:0,class:"mx-2 mb-4"},a9={for:"persLang",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},l9=["selected"],c9={key:1,class:"mx-2 mb-4"},u9={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},d9=["selected"],h9={key:0,class:"mb-2"},f9={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},p9=he(()=>d("i",{"data-feather":"chevron-up"},null,-1)),g9=[p9],m9=he(()=>d("i",{"data-feather":"chevron-down"},null,-1)),_9=[m9],b9={class:"flex flex-col mb-2 p-3 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},y9={class:"flex flex-row"},v9=he(()=>d("i",{"data-feather":"chevron-right"},null,-1)),w9=[v9],x9=he(()=>d("i",{"data-feather":"chevron-down"},null,-1)),k9=[x9],E9=he(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1)),C9={class:"m-2"},A9={class:"flex flex-row gap-2 items-center"},S9=he(()=>d("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1)),T9={class:"m-2"},M9=he(()=>d("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),O9={class:"m-2"},R9={class:"flex flex-col align-bottom"},N9={class:"relative"},D9=he(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),L9={class:"absolute right-0"},I9={class:"m-2"},P9={class:"flex flex-col align-bottom"},F9={class:"relative"},B9=he(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),$9={class:"absolute right-0"},j9={class:"m-2"},z9={class:"flex flex-col align-bottom"},U9={class:"relative"},q9=he(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),H9={class:"absolute right-0"},V9={class:"m-2"},G9={class:"flex flex-col align-bottom"},K9={class:"relative"},W9=he(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),Z9={class:"absolute right-0"},Y9={class:"m-2"},Q9={class:"flex flex-col align-bottom"},J9={class:"relative"},X9=he(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),e8={class:"absolute right-0"},t8={class:"m-2"},n8={class:"flex flex-col align-bottom"},s8={class:"relative"},o8=he(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),r8={class:"absolute right-0"};function i8(t,e,n,s,o,r){const i=lt("BindingEntry"),a=lt("model-entry"),l=lt("personality-entry"),c=lt("YesNoDialog"),u=lt("AddModelDialog"),h=lt("MessageBox"),p=lt("Toast"),g=lt("UniversalForm");return A(),M(Le,null,[d("div",d5,[d("div",h5,[o.showConfirmation?(A(),M("div",f5,[d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=le(f=>o.showConfirmation=!1,["stop"]))},g5),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=le(f=>r.save_configuration(),["stop"]))},_5)])):z("",!0),o.showConfirmation?z("",!0):(A(),M("div",b5,[d("button",{title:"Save configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=f=>o.showConfirmation=!0)},v5),d("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[3]||(e[3]=f=>r.reset_configuration())},x5),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[4]||(e[4]=le(f=>o.all_collapsed=!o.all_collapsed,["stop"]))},E5)])),d("div",C5,[d("div",A5,[o.settingsChanged?(A(),M("div",S5,[we(" Apply changes: "),o.isLoading?z("",!0):(A(),M("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[5]||(e[5]=le(f=>r.applyConfiguration(),["stop"]))},M5))])):z("",!0),o.isLoading?(A(),M("div",O5,[d("p",null,Y(o.loading_text),1),R5,N5])):z("",!0)])])]),d("div",{class:Te(o.isLoading?"pointer-events-none opacity-30":"")},[d("div",D5,[d("div",L5,[d("button",{onClick:e[6]||(e[6]=le(f=>o.sc_collapsed=!o.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[me(d("div",null,P5,512),[[at,o.sc_collapsed]]),me(d("div",null,B5,512),[[at,!o.sc_collapsed]]),$5,j5,d("div",z5,[d("div",U5,[d("div",null,[r.vramUsage.gpus&&r.vramUsage.gpus.length==1?(A(),M("div",q5,[(A(!0),M(Le,null,Qe(r.vramUsage.gpus,f=>(A(),M("div",H5,[(A(),M("svg",{title:f.gpu_model,"aria-hidden":"true",class:"w-10 h-10 fill-secondary",viewBox:"0 -3 82 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},K5,8,V5)),d("h3",W5,[d("div",null,Y(r.computedFileSize(f.used_vram))+" / "+Y(r.computedFileSize(f.total_vram))+" ("+Y(f.percentage)+"%) ",1)])]))),256))])):z("",!0),r.vramUsage.gpus&&r.vramUsage.gpus.length>1?(A(),M("div",Z5,[d("div",Y5,[Q5,d("h3",J5,[d("div",null,Y(r.vramUsage.gpus.length)+"x ",1)])])])):z("",!0)]),X5,d("h3",e4,[d("div",null,Y(r.ram_usage)+" / "+Y(r.ram_total_space)+" ("+Y(r.ram_percent_usage)+"%)",1)]),t4,d("h3",n4,[d("div",null,Y(r.disk_binding_models_usage)+" / "+Y(r.disk_total_space)+" ("+Y(r.disk_percent_usage)+"%)",1)])])])])]),d("div",{class:Te([{hidden:o.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",s4,[o4,d("div",r4,[d("div",null,[i4,we(Y(r.ram_available_space),1)]),d("div",null,[a4,we(" "+Y(r.ram_usage)+" / "+Y(r.ram_total_space)+" ("+Y(r.ram_percent_usage)+")% ",1)])]),d("div",l4,[d("div",c4,[d("div",{class:"bg-blue-600 h-2.5 rounded-full",style:zt("width: "+r.ram_percent_usage+"%;")},null,4)])])]),d("div",u4,[d4,d("div",h4,[d("div",null,[f4,we(Y(r.disk_available_space),1)]),d("div",null,[p4,we(" "+Y(r.disk_binding_models_usage)+" / "+Y(r.disk_total_space)+" ("+Y(r.disk_percent_usage)+"%)",1)])]),d("div",g4,[d("div",m4,[d("div",{class:"bg-blue-600 h-2.5 rounded-full",style:zt("width: "+r.disk_percent_usage+"%;")},null,4)])])]),(A(!0),M(Le,null,Qe(r.vramUsage.gpus,f=>(A(),M("div",_4,[b4,d("div",y4,[d("div",null,[v4,we(Y(f.gpu_model),1)]),d("div",null,[w4,we(Y(this.computedFileSize(f.available_space)),1)]),d("div",null,[x4,we(" "+Y(this.computedFileSize(f.used_vram))+" / "+Y(this.computedFileSize(f.total_vram))+" ("+Y(f.percentage)+"%)",1)])]),d("div",k4,[d("div",E4,[d("div",{class:"bg-blue-600 h-2.5 rounded-full",style:zt("width: "+f.percentage+"%;")},null,4)])])]))),256))],2)]),d("div",C4,[d("div",A4,[d("button",{onClick:e[7]||(e[7]=le(f=>o.minconf_collapsed=!o.minconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[me(d("div",null,T4,512),[[at,o.minconf_collapsed]]),me(d("div",null,O4,512),[[at,!o.minconf_collapsed]]),R4])]),d("div",{class:Te([{hidden:o.minconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("table",N4,[d("tr",null,[D4,d("td",null,[me(d("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[8]||(e[8]=f=>r.auto_update=f),class:"mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[$t,r.auto_update]])]),d("td",L4,[d("button",{class:"hover:text-secondary bg-blue-100 m-2 p-2 duration-75 flex justify-center w-full hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",onClick:e[9]||(e[9]=f=>r.update_setting("auto_update",r.auto_update))}," Validate ")])]),d("tr",null,[I4,d("td",P4,[me(d("input",{type:"text",id:"db_path",required:"","onUpdate:modelValue":e[10]||(e[10]=f=>r.db_path=f),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,r.db_path]])]),d("td",F4,[d("button",{class:"hover:text-secondary bg-blue-100 m-2 p-2 duration-75 flex justify-center w-full hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",onClick:e[11]||(e[11]=f=>r.update_setting("db_path",r.db_path))}," Select Database ")])]),d("tr",null,[B4,d("td",$4,[me(d("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[12]||(e[12]=f=>r.userName=f),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,r.userName]])]),d("td",j4,[d("button",{class:"hover:text-secondary bg-blue-100 m-2 p-2 duration-75 flex justify-center w-full hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",onClick:e[13]||(e[13]=f=>r.update_setting("user_name",r.userName))}," Validate ")])]),d("tr",null,[z4,d("td",U4,[d("img",{src:r.user_avatar},null,8,q4)]),d("td",H4,[d("button",{class:"hover:text-secondary bg-blue-100 m-2 p-2 duration-75 flex justify-center w-full hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",onClick:e[14]||(e[14]=f=>r.update_setting("user_name",r.userName))}," Validate ")])]),d("tr",null,[V4,d("td",null,[me(d("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[15]||(e[15]=f=>r.use_user_name_in_discussions=f),class:"mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[$t,r.use_user_name_in_discussions]])]),d("td",G4,[d("button",{class:"hover:text-secondary bg-blue-100 m-2 p-2 duration-75 flex justify-center w-full hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",onClick:e[16]||(e[16]=f=>r.update_setting("use_user_name_in_discussions",r.use_user_name_in_discussions))}," Validate ")])])]),d("div",K4,[d("button",{class:"hover:text-secondary w-full bg-red-100 m-2 p-2 duration-75 flex justify-center w-full hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",onClick:e[17]||(e[17]=f=>r.api_get_req("clear_uploads").then(m=>{m.status?this.$refs.toast.showToast("Success!",4,!0):this.$refs.toast.showToast(["failed!"],4,!1)}))}," Clear uploads ")]),d("div",W4,[d("button",{class:"hover:text-secondary w-full bg-red-100 m-2 p-2 duration-75 flex justify-center w-full hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",onClick:e[18]||(e[18]=f=>r.api_get_req("restart_program").then(m=>{m.status?this.$refs.toast.showToast("Success!",4,!0):this.$refs.toast.showToast(["failed!"],4,!1)}))}," Restart program ")]),d("div",Z4,[d("button",{class:"hover:text-secondary w-full bg-red-100 m-2 p-2 duration-75 flex justify-center w-full hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",onClick:e[19]||(e[19]=f=>r.api_get_req("update_software").then(m=>{m.status?this.$refs.toast.showToast("Success!",4,!0):this.$refs.toast.showToast("Success!",4,!0)}))}," Upgrade program ")])],2)]),d("div",Y4,[d("div",Q4,[d("button",{onClick:e[20]||(e[20]=le(f=>o.bzc_collapsed=!o.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[me(d("div",null,X4,512),[[at,o.bzc_collapsed]]),me(d("div",null,t3,512),[[at,!o.bzc_collapsed]]),n3,r.configFile.binding_name?z("",!0):(A(),M("div",s3,[o3,we(" No binding selected! ")])),r.configFile.binding_name?(A(),M("div",r3,"|")):z("",!0),r.configFile.binding_name?(A(),M("div",i3,[d("div",a3,[d("img",{src:r.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,l3),d("h3",c3,Y(r.binding_name),1)])])):z("",!0)])]),d("div",{class:Te([{hidden:o.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[r.bindingsArr.length>0?(A(),M("div",u3,[d("label",d3," Bindings: ("+Y(r.bindingsArr.length)+") ",1),d("div",{class:Te(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",o.bzl_collapsed?"":"max-h-96"])},[Ae(Ut,{name:"list"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(r.bindingsArr,(f,m)=>(A(),ot(i,{ref_for:!0,ref:"bindingZoo",key:"index-"+m+"-"+f.folder,binding:f,"on-selected":r.onSelectedBinding,"on-reinstall":r.onReinstallBinding,"on-install":r.onInstallBinding,"on-settings":r.onSettingsBinding,"on-reload-binding":r.onReloadBinding,selected:f.folder===r.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):z("",!0),o.bzl_collapsed?(A(),M("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[21]||(e[21]=f=>o.bzl_collapsed=!o.bzl_collapsed)},f3)):(A(),M("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[22]||(e[22]=f=>o.bzl_collapsed=!o.bzl_collapsed)},g3))],2)]),d("div",m3,[d("div",_3,[d("button",{onClick:e[23]||(e[23]=le(f=>o.mzc_collapsed=!o.mzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[me(d("div",null,y3,512),[[at,o.mzc_collapsed]]),me(d("div",null,w3,512),[[at,!o.mzc_collapsed]]),x3,d("div",k3,[r.configFile.binding_name?z("",!0):(A(),M("div",E3,[C3,we(" Select binding first! ")])),!o.isModelSelected&&r.configFile.binding_name?(A(),M("div",A3,[S3,we(" No model selected! ")])):z("",!0),r.configFile.model_name?(A(),M("div",T3,"|")):z("",!0),r.configFile.model_name?(A(),M("div",M3,[d("div",O3,[d("img",{src:r.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,R3),d("h3",N3,Y(r.model_name),1)])])):z("",!0)])])]),d("div",{class:Te([{hidden:o.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",D3,[d("form",null,[d("div",L3,[d("div",I3,[o.searchModelInProgress?(A(),M("div",P3,B3)):z("",!0),o.searchModelInProgress?z("",!0):(A(),M("div",$3,z3))]),me(d("input",{type:"search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search models...",required:"","onUpdate:modelValue":e[24]||(e[24]=f=>o.searchModel=f),onKeyup:e[25]||(e[25]=le((...f)=>r.searchModel_func&&r.searchModel_func(...f),["stop"]))},null,544),[[Re,o.searchModel]]),o.searchModel?(A(),M("button",{key:0,onClick:e[26]||(e[26]=le(f=>o.searchModel="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):z("",!0)])])]),o.searchModel?(A(),M("div",U3,[o.modelsFiltered.length>0?(A(),M("div",q3,[d("label",H3," Search results: ("+Y(o.modelsFiltered.length)+") ",1),d("div",{class:Te(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",o.mzl_collapsed?"":"max-h-96"])},[Ae(Ut,{name:"list"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(o.modelsFiltered,(f,m)=>(A(),ot(a,{ref_for:!0,ref:"modelZoo",key:"index-"+m+"-"+f.title,title:f.title,icon:f.icon,path:f.path,owner:f.owner,owner_link:f.owner_link,license:f.license,description:f.description,"is-installed":f.isInstalled,"on-install":r.onInstall,"on-uninstall":r.onUninstall,"on-selected":r.onSelected,selected:f.title===r.configFile.model_name,model:f,model_type:f.model_type,"on-copy":r.onCopy,"on-copy-link":r.onCopyLink,"on-cancel-install":r.onCancelInstall},null,8,["title","icon","path","owner","owner_link","license","description","is-installed","on-install","on-uninstall","on-selected","selected","model","model_type","on-copy","on-copy-link","on-cancel-install"]))),128))]),_:1})],2)])):z("",!0)])):z("",!0),o.searchModel?z("",!0):(A(),M("div",V3,[r.models.length>0?(A(),M("div",G3,[d("label",K3," Models: ("+Y(r.models.length)+") ",1),d("div",{class:Te(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",o.mzl_collapsed?"":"max-h-96"])},[Ae(Ut,{name:"list"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(r.models,(f,m)=>(A(),ot(a,{ref_for:!0,ref:"modelZoo",key:"index-"+m+"-"+f.title,title:f.title,icon:f.icon,path:f.path,owner:f.owner,owner_link:f.owner_link,license:f.license,description:f.description,"is-installed":f.isInstalled,"on-install":r.onInstall,"on-uninstall":r.onUninstall,"on-selected":r.onSelected,selected:f.title===r.configFile.model_name,model:f,model_type:f.model_type,"on-copy":r.onCopy,"on-copy-link":r.onCopyLink,"on-cancel-install":r.onCancelInstall},null,8,["title","icon","path","owner","owner_link","license","description","is-installed","on-install","on-uninstall","on-selected","selected","model","model_type","on-copy","on-copy-link","on-cancel-install"]))),128))]),_:1})],2)])):z("",!0)])),o.mzl_collapsed?(A(),M("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[27]||(e[27]=(...f)=>r.open_mzl&&r.open_mzl(...f))},Z3)):(A(),M("button",{key:3,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[28]||(e[28]=(...f)=>r.open_mzl&&r.open_mzl(...f))},Q3))],2)]),d("div",J3,[d("div",X3,[d("button",{onClick:e[29]||(e[29]=le(f=>o.mzdc_collapsed=!o.mzdc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[me(d("div",null,tC,512),[[at,o.mzdc_collapsed]]),me(d("div",null,sC,512),[[at,!o.mzdc_collapsed]]),oC,r.binding_name?z("",!0):(A(),M("div",rC,[iC,we(" No binding selected! ")])),r.configFile.binding_name?(A(),M("div",aC,"|")):z("",!0),r.configFile.binding_name?(A(),M("div",lC,[d("div",cC,[d("img",{src:r.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,uC),d("h3",dC,Y(r.binding_name),1)])])):z("",!0)])]),d("div",{class:Te([{hidden:o.mzdc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",hC,[d("div",fC,[o.modelDownlaodInProgress?z("",!0):(A(),M("div",pC,[d("div",gC,[mC,me(d("input",{type:"text","onUpdate:modelValue":e[30]||(e[30]=f=>o.addModel.url=f),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter URL ...",required:""},null,512),[[Re,o.addModel.url]])]),d("button",{type:"button",onClick:e[31]||(e[31]=le(f=>r.onInstallAddModel(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Download")])),o.modelDownlaodInProgress?(A(),M("div",_C,[bC,d("div",yC,[d("div",vC,[d("div",wC,[xC,d("span",kC,Y(Math.floor(o.addModel.progress))+"%",1)]),d("div",{class:"mx-1 opacity-80 line-clamp-1",title:o.addModel.url},Y(o.addModel.url),9,EC),d("div",CC,[d("div",{class:"bg-blue-600 h-2.5 rounded-full",style:zt({width:o.addModel.progress+"%"})},null,4)]),d("div",AC,[d("span",SC,"Download speed: "+Y(r.speed_computed)+"/s",1),d("span",TC,Y(r.downloaded_size_computed)+"/"+Y(r.total_size_computed),1)])])]),d("div",MC,[d("div",OC,[d("div",RC,[d("button",{onClick:e[32]||(e[32]=le((...f)=>r.onCancelInstall&&r.onCancelInstall(...f),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])):z("",!0)])])],2)]),d("div",NC,[d("div",DC,[d("button",{onClick:e[34]||(e[34]=le(f=>o.pzc_collapsed=!o.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[me(d("div",null,IC,512),[[at,o.pzc_collapsed]]),me(d("div",null,FC,512),[[at,!o.pzc_collapsed]]),BC,r.configFile.personalities?(A(),M("div",$C,"|")):z("",!0),d("div",jC,Y(r.active_pesonality),1),r.configFile.personalities?(A(),M("div",zC,"|")):z("",!0),r.configFile.personalities?(A(),M("div",UC,[r.mountedPersArr.length>0?(A(),M("div",qC,[(A(!0),M(Le,null,Qe(r.mountedPersArr,(f,m)=>(A(),M("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:m+"-"+f.name,ref_for:!0,ref:"mountedPersonalities"},[d("div",HC,[d("button",{onClick:le(v=>r.onPersonalitySelected(f),["stop"])},[d("img",{src:o.bUrl+f.avatar,onError:e[33]||(e[33]=(...v)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...v)),class:Te(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",r.configFile.active_personality_id==r.configFile.personalities.indexOf(f.full_path)?"border-secondary":"border-transparent z-0"]),title:f.name},null,42,GC)],8,VC),d("button",{onClick:le(v=>r.onPersonalityMounted(f),["stop"])},ZC,8,KC)])]))),128))])):z("",!0)])):z("",!0)])]),d("div",{class:Te([{hidden:o.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",YC,[d("form",null,[QC,d("div",JC,[d("div",XC,[o.searchPersonalityInProgress?(A(),M("div",e9,n9)):z("",!0),o.searchPersonalityInProgress?z("",!0):(A(),M("div",s9,r9))]),me(d("input",{type:"search",id:"personality-search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search personality...",required:"","onUpdate:modelValue":e[35]||(e[35]=f=>o.searchPersonality=f),onKeyup:e[36]||(e[36]=le((...f)=>r.searchPersonality_func&&r.searchPersonality_func(...f),["stop"]))},null,544),[[Re,o.searchPersonality]]),o.searchPersonality?(A(),M("button",{key:0,onClick:e[37]||(e[37]=le(f=>o.searchPersonality="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):z("",!0)])])]),o.searchPersonality?z("",!0):(A(),M("div",i9,[d("label",a9," Personalities Languages: ("+Y(o.persLangArr.length)+") ",1),d("select",{id:"persLang",onChange:e[38]||(e[38]=f=>r.update_personality_language(f.target.value,r.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(A(!0),M(Le,null,Qe(o.persLangArr,f=>(A(),M("option",{selected:f===this.configFile.personality_language},Y(f),9,l9))),256))],32)])),o.searchPersonality?z("",!0):(A(),M("div",c9,[d("label",u9," Personalities Category: ("+Y(o.persCatgArr.length)+") ",1),d("select",{id:"persCat",onChange:e[39]||(e[39]=f=>r.update_personality_category(f.target.value,r.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(A(!0),M(Le,null,Qe(o.persCatgArr,(f,m)=>(A(),M("option",{key:m,selected:f==this.configFile.personality_category},Y(f),9,d9))),128))],32)])),d("div",null,[o.personalitiesFiltered.length>0?(A(),M("div",h9,[d("label",f9,Y(o.searchPersonality?"Search results":"Personalities")+": ("+Y(o.personalitiesFiltered.length)+") ",1),d("div",{class:Te(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",o.pzl_collapsed?"":"max-h-96"])},[Ae(Ut,{name:"bounce"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(o.personalitiesFiltered,(f,m)=>(A(),ot(l,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+m+"-"+f.name,personality:f,full_path:f.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(v=>v===f.full_path),"on-selected":r.onPersonalitySelected,"on-mounted":r.onPersonalityMounted,"on-reinstall":r.onPersonalityReinstall,"on-settings":r.onSettingsPersonality},null,8,["personality","full_path","selected","on-selected","on-mounted","on-reinstall","on-settings"]))),128))]),_:1})],2)])):z("",!0)]),o.pzl_collapsed?(A(),M("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[40]||(e[40]=f=>o.pzl_collapsed=!o.pzl_collapsed)},g9)):(A(),M("button",{key:3,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[41]||(e[41]=f=>o.pzl_collapsed=!o.pzl_collapsed)},_9))],2)]),d("div",b9,[d("div",y9,[d("button",{onClick:e[42]||(e[42]=le(f=>o.mc_collapsed=!o.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[me(d("div",null,w9,512),[[at,o.mc_collapsed]]),me(d("div",null,k9,512),[[at,!o.mc_collapsed]]),E9])]),d("div",{class:Te([{hidden:o.mc_collapsed},"flex flex-col mb-2 p-2"])},[d("div",C9,[d("div",A9,[me(d("input",{id:"override-model-parameters",type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[43]||(e[43]=le(()=>{},["stop"])),"onUpdate:modelValue":e[44]||(e[44]=f=>r.configFile.override_personality_model_parameters=f),onChange:e[45]||(e[45]=f=>r.update_setting("override_personality_model_parameters",r.configFile.override_personality_model_parameters))},null,544),[[$t,r.configFile.override_personality_model_parameters]]),S9])]),d("div",{class:Te(r.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[d("div",T9,[M9,me(d("input",{type:"text",id:"seed","onUpdate:modelValue":e[46]||(e[46]=f=>r.configFile.seed=f),class:"bg-gray-50 border border-gray-300 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Re,r.configFile.seed]])]),d("div",O9,[d("div",R9,[d("div",N9,[D9,d("p",L9,[me(d("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[47]||(e[47]=f=>r.configFile.temperature=f),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Re,r.configFile.temperature]])])]),me(d("input",{id:"temperature",onChange:e[48]||(e[48]=f=>r.update_setting("temperature",f.target.value)),type:"range","onUpdate:modelValue":e[49]||(e[49]=f=>r.configFile.temperature=f),min:"0",max:"5",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Re,r.configFile.temperature]])])]),d("div",I9,[d("div",P9,[d("div",F9,[B9,d("p",$9,[me(d("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[50]||(e[50]=f=>r.configFile.n_predict=f),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Re,r.configFile.n_predict]])])]),me(d("input",{id:"predict",onChange:e[51]||(e[51]=f=>r.update_setting("n_predict",f.target.value)),type:"range","onUpdate:modelValue":e[52]||(e[52]=f=>r.configFile.n_predict=f),min:"0",max:"2048",step:"32",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Re,r.configFile.n_predict]])])]),d("div",j9,[d("div",z9,[d("div",U9,[q9,d("p",H9,[me(d("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[53]||(e[53]=f=>r.configFile.top_k=f),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Re,r.configFile.top_k]])])]),me(d("input",{id:"top_k",onChange:e[54]||(e[54]=f=>r.update_setting("top_k",f.target.value)),type:"range","onUpdate:modelValue":e[55]||(e[55]=f=>r.configFile.top_k=f),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Re,r.configFile.top_k]])])]),d("div",V9,[d("div",G9,[d("div",K9,[W9,d("p",Z9,[me(d("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[56]||(e[56]=f=>r.configFile.top_p=f),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Re,r.configFile.top_p]])])]),me(d("input",{id:"top_p",onChange:e[57]||(e[57]=f=>r.update_setting("top_p",f.target.value)),type:"range","onUpdate:modelValue":e[58]||(e[58]=f=>r.configFile.top_p=f),min:"0",max:"1",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Re,r.configFile.top_p]])])]),d("div",Y9,[d("div",Q9,[d("div",J9,[X9,d("p",e8,[me(d("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[59]||(e[59]=f=>r.configFile.repeat_penalty=f),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Re,r.configFile.repeat_penalty]])])]),me(d("input",{id:"repeat_penalty",onChange:e[60]||(e[60]=f=>r.update_setting("repeat_penalty",f.target.value)),type:"range","onUpdate:modelValue":e[61]||(e[61]=f=>r.configFile.repeat_penalty=f),min:"0",max:"2",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Re,r.configFile.repeat_penalty]])])]),d("div",t8,[d("div",n8,[d("div",s8,[o8,d("p",r8,[me(d("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[62]||(e[62]=f=>r.configFile.repeat_last_n=f),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[Re,r.configFile.repeat_last_n]])])]),me(d("input",{id:"repeat_last_n",onChange:e[63]||(e[63]=f=>r.update_setting("repeat_last_n",f.target.value)),type:"range","onUpdate:modelValue":e[64]||(e[64]=f=>r.configFile.repeat_last_n=f),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[Re,r.configFile.repeat_last_n]])])])],2)],2)])],2)]),Ae(c,{ref:"yesNoDialog",class:"z-20"},null,512),Ae(u,{ref:"addmodeldialog"},null,512),Ae(h,{ref:"messageBox"},null,512),Ae(p,{ref:"toast"},null,512),Ae(g,{ref:"universalForm",class:"z-20"},null,512)],64)}const a8=Ge(u5,[["render",i8],["__scopeId","data-v-ec3927a6"]]),l8={data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(t){const e=t.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},c8={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},u8={class:"mb-4"},d8=d("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),h8={class:"mb-4"},f8=d("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),p8={class:"mb-4"},g8=d("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),m8={class:"mt-2 text-xs"},_8={class:"mb-4"},b8=d("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),y8={class:"mb-4"},v8=d("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),w8={class:"mb-4"},x8=d("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),k8={class:"mb-4"},E8=d("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),C8={class:"mb-4"},A8=d("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),S8=d("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Train LLM",-1);function T8(t,e,n,s,o,r){return A(),M("div",c8,[d("form",{onSubmit:e[10]||(e[10]=le((...i)=>r.submitForm&&r.submitForm(...i),["prevent"])),class:"max-w-md mx-auto"},[d("div",u8,[d8,me(d("input",{type:"text",id:"model_name","onUpdate:modelValue":e[0]||(e[0]=i=>o.model_name=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.model_name]])]),d("div",h8,[f8,me(d("input",{type:"text",id:"tokenizer_name","onUpdate:modelValue":e[1]||(e[1]=i=>o.tokenizer_name=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.tokenizer_name]])]),d("div",p8,[g8,d("input",{type:"file",id:"dataset_path",ref:"dataset_path",accept:".parquet",onChange:e[2]||(e[2]=(...i)=>r.selectDatasetPath&&r.selectDatasetPath(...i)),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,544),d("p",m8,"Selected File: "+Y(o.selectedDatasetPath),1)]),d("div",_8,[b8,me(d("input",{type:"number",id:"max_length","onUpdate:modelValue":e[3]||(e[3]=i=>o.max_length=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.max_length,void 0,{number:!0}]])]),d("div",y8,[v8,me(d("input",{type:"number",id:"batch_size","onUpdate:modelValue":e[4]||(e[4]=i=>o.batch_size=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.batch_size,void 0,{number:!0}]])]),d("div",w8,[x8,me(d("input",{type:"number",id:"lr","onUpdate:modelValue":e[5]||(e[5]=i=>o.lr=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.lr,void 0,{number:!0}]])]),d("div",k8,[E8,me(d("input",{type:"number",id:"num_epochs","onUpdate:modelValue":e[6]||(e[6]=i=>o.num_epochs=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.num_epochs,void 0,{number:!0}]])]),d("div",C8,[A8,me(d("input",{type:"text",id:"output_dir","onUpdate:modelValue":e[7]||(e[7]=i=>o.selectedFolder=i),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded",placeholder:"Enter or select the output folder"},null,512),[[Re,o.selectedFolder]]),d("input",{type:"file",id:"folder_selector",ref:"folder_selector",style:{display:"none"},webkitdirectory:"",onChange:e[8]||(e[8]=(...i)=>r.selectOutputDirectory&&r.selectOutputDirectory(...i))},null,544),d("button",{type:"button",onClick:e[9]||(e[9]=(...i)=>r.openFolderSelector&&r.openFolderSelector(...i)),class:"bg-blue-500 text-white px-4 py-2 rounded"},"Select Folder")]),S8],32)])}const M8=Ge(l8,[["render",T8]]),O8={data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(t){const e=t.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},R8={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},N8={class:"mb-4"},D8=d("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),L8={class:"mb-4"},I8=d("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),P8={class:"mb-4"},F8=d("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),B8={class:"mt-2 text-xs"},$8={class:"mb-4"},j8=d("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),z8={class:"mb-4"},U8=d("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),q8={class:"mb-4"},H8=d("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),V8={class:"mb-4"},G8=d("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),K8={class:"mb-4"},W8=d("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),Z8=d("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Train LLM",-1);function Y8(t,e,n,s,o,r){return A(),M("div",R8,[d("form",{onSubmit:e[10]||(e[10]=le((...i)=>r.submitForm&&r.submitForm(...i),["prevent"])),class:"max-w-md mx-auto"},[d("div",N8,[D8,me(d("input",{type:"text",id:"model_name","onUpdate:modelValue":e[0]||(e[0]=i=>o.model_name=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.model_name]])]),d("div",L8,[I8,me(d("input",{type:"text",id:"tokenizer_name","onUpdate:modelValue":e[1]||(e[1]=i=>o.tokenizer_name=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.tokenizer_name]])]),d("div",P8,[F8,d("input",{type:"file",id:"dataset_path",ref:"dataset_path",accept:".parquet",onChange:e[2]||(e[2]=(...i)=>r.selectDatasetPath&&r.selectDatasetPath(...i)),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,544),d("p",B8,"Selected File: "+Y(o.selectedDatasetPath),1)]),d("div",$8,[j8,me(d("input",{type:"number",id:"max_length","onUpdate:modelValue":e[3]||(e[3]=i=>o.max_length=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.max_length,void 0,{number:!0}]])]),d("div",z8,[U8,me(d("input",{type:"number",id:"batch_size","onUpdate:modelValue":e[4]||(e[4]=i=>o.batch_size=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.batch_size,void 0,{number:!0}]])]),d("div",q8,[H8,me(d("input",{type:"number",id:"lr","onUpdate:modelValue":e[5]||(e[5]=i=>o.lr=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.lr,void 0,{number:!0}]])]),d("div",V8,[G8,me(d("input",{type:"number",id:"num_epochs","onUpdate:modelValue":e[6]||(e[6]=i=>o.num_epochs=i),required:"",class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded"},null,512),[[Re,o.num_epochs,void 0,{number:!0}]])]),d("div",K8,[W8,me(d("input",{type:"text",id:"output_dir","onUpdate:modelValue":e[7]||(e[7]=i=>o.selectedFolder=i),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded",placeholder:"Enter or select the output folder"},null,512),[[Re,o.selectedFolder]]),d("input",{type:"file",id:"folder_selector",ref:"folder_selector",style:{display:"none"},webkitdirectory:"",onChange:e[8]||(e[8]=(...i)=>r.selectOutputDirectory&&r.selectOutputDirectory(...i))},null,544),d("button",{type:"button",onClick:e[9]||(e[9]=(...i)=>r.openFolderSelector&&r.openFolderSelector(...i)),class:"bg-blue-500 text-white px-4 py-2 rounded"},"Select Folder")]),Z8],32)])}const Q8=Ge(O8,[["render",Y8]]),J8={name:"Discussion",emits:["delete","select","editTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},chnageTitle(t){this.newTitle=t},checkedChangeEvent(t,e){this.$emit("checked",t,e)}},mounted(){this.newTitle=this.title,_e(()=>{ye.replace()})},watch:{showConfirmation(){_e(()=>{ye.replace()})},editTitleMode(t){this.showConfirmation=t,this.editTitle=t,t&&_e(()=>{this.$refs.titleBox.focus()})},checkBoxValue(t,e){this.checkBoxValue_local=t}}},X8=["id"],eA={class:"flex flex-row items-center gap-2"},tA={key:0},nA=["title"],sA=["value"],oA={class:"flex items-center flex-1 max-h-6"},rA={key:0,class:"flex gap-3 flex-1 items-center justify-end duration-75"},iA=d("i",{"data-feather":"check"},null,-1),aA=[iA],lA=d("i",{"data-feather":"x"},null,-1),cA=[lA],uA={key:1,class:"flex gap-3 flex-1 items-center justify-end duration-75"},dA=d("i",{"data-feather":"x"},null,-1),hA=[dA],fA=d("i",{"data-feather":"check"},null,-1),pA=[fA],gA={key:2,class:"flex gap-3 flex-1 items-center justify-end invisible group-hover:visible duration-75"},mA=d("i",{"data-feather":"edit-2"},null,-1),_A=[mA],bA=d("i",{"data-feather":"trash"},null,-1),yA=[bA];function vA(t,e,n,s,o,r){return A(),M("div",{class:Te([n.selected?"bg-bg-light-discussion dark:bg-bg-dark-discussion shadow-md":"","flex flex-row sm:flex-row flex-wrap flex-shrink: 0 item-center shadow-sm gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"]),id:"dis-"+n.id,onClick:e[13]||(e[13]=le(i=>r.selectEvent(),["stop"]))},[d("div",eA,[n.isCheckbox?(A(),M("div",tA,[me(d("input",{type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[0]||(e[0]=le(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=i=>o.checkBoxValue_local=i),onInput:e[2]||(e[2]=i=>r.checkedChangeEvent(i,n.id))},null,544),[[$t,o.checkBoxValue_local]])])):z("",!0),n.selected?(A(),M("div",{key:1,class:Te(["min-h-full w-2 rounded-xl self-stretch",n.loading?"animate-bounce bg-accent ":" bg-secondary "])},null,2)):z("",!0),n.selected?z("",!0):(A(),M("div",{key:2,class:Te(["w-2",n.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent ":" "])},null,2))]),o.editTitle?z("",!0):(A(),M("p",{key:0,title:n.title,class:"line-clamp-1 w-4/6 ml-1 -mx-5"},Y(n.title?n.title==="untitled"?"New discussion":n.title:"New discussion"),9,nA)),o.editTitle?(A(),M("input",{key:1,type:"text",id:"title-box",ref:"titleBox",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:n.title,required:"",onKeydown:[e[3]||(e[3]=Wa(le(i=>r.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=Wa(le(i=>o.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=i=>r.chnageTitle(i.target.value)),onClick:e[6]||(e[6]=le(()=>{},["stop"]))},null,40,sA)):z("",!0),d("div",oA,[o.showConfirmation&&!o.editTitleMode?(A(),M("div",rA,[d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:e[7]||(e[7]=le(i=>r.deleteEvent(),["stop"]))},aA),d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:e[8]||(e[8]=le(i=>o.showConfirmation=!1,["stop"]))},cA)])):z("",!0),o.showConfirmation&&o.editTitleMode?(A(),M("div",uA,[d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[9]||(e[9]=le(i=>o.editTitleMode=!1,["stop"]))},hA),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[10]||(e[10]=le(i=>r.editTitleEvent(),["stop"]))},pA)])):z("",!0),o.showConfirmation?z("",!0):(A(),M("div",gA,[d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=le(i=>o.editTitleMode=!0,["stop"]))},_A),d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=le(i=>o.showConfirmation=!0,["stop"]))},yA)]))])],10,X8)}const eg=Ge(J8,[["render",vA]]);var ze={};const wA="Á",xA="á",kA="Ă",EA="ă",CA="∾",AA="∿",SA="∾̳",TA="Â",MA="â",OA="´",RA="А",NA="а",DA="Æ",LA="æ",IA="⁡",PA="𝔄",FA="𝔞",BA="À",$A="à",jA="ℵ",zA="ℵ",UA="Α",qA="α",HA="Ā",VA="ā",GA="⨿",KA="&",WA="&",ZA="⩕",YA="⩓",QA="∧",JA="⩜",XA="⩘",e6="⩚",t6="∠",n6="⦤",s6="∠",o6="⦨",r6="⦩",i6="⦪",a6="⦫",l6="⦬",c6="⦭",u6="⦮",d6="⦯",h6="∡",f6="∟",p6="⊾",g6="⦝",m6="∢",_6="Å",b6="⍼",y6="Ą",v6="ą",w6="𝔸",x6="𝕒",k6="⩯",E6="≈",C6="⩰",A6="≊",S6="≋",T6="'",M6="⁡",O6="≈",R6="≊",N6="Å",D6="å",L6="𝒜",I6="𝒶",P6="≔",F6="*",B6="≈",$6="≍",j6="Ã",z6="ã",U6="Ä",q6="ä",H6="∳",V6="⨑",G6="≌",K6="϶",W6="‵",Z6="∽",Y6="⋍",Q6="∖",J6="⫧",X6="⊽",eS="⌅",tS="⌆",nS="⌅",sS="⎵",oS="⎶",rS="≌",iS="Б",aS="б",lS="„",cS="∵",uS="∵",dS="∵",hS="⦰",fS="϶",pS="ℬ",gS="ℬ",mS="Β",_S="β",bS="ℶ",yS="≬",vS="𝔅",wS="𝔟",xS="⋂",kS="◯",ES="⋃",CS="⨀",AS="⨁",SS="⨂",TS="⨆",MS="★",OS="▽",RS="△",NS="⨄",DS="⋁",LS="⋀",IS="⤍",PS="⧫",FS="▪",BS="▴",$S="▾",jS="◂",zS="▸",US="␣",qS="▒",HS="░",VS="▓",GS="█",KS="=⃥",WS="≡⃥",ZS="⫭",YS="⌐",QS="𝔹",JS="𝕓",XS="⊥",eT="⊥",tT="⋈",nT="⧉",sT="┐",oT="╕",rT="╖",iT="╗",aT="┌",lT="╒",cT="╓",uT="╔",dT="─",hT="═",fT="┬",pT="╤",gT="╥",mT="╦",_T="┴",bT="╧",yT="╨",vT="╩",wT="⊟",xT="⊞",kT="⊠",ET="┘",CT="╛",AT="╜",ST="╝",TT="└",MT="╘",OT="╙",RT="╚",NT="│",DT="║",LT="┼",IT="╪",PT="╫",FT="╬",BT="┤",$T="╡",jT="╢",zT="╣",UT="├",qT="╞",HT="╟",VT="╠",GT="‵",KT="˘",WT="˘",ZT="¦",YT="𝒷",QT="ℬ",JT="⁏",XT="∽",e7="⋍",t7="⧅",n7="\\",s7="⟈",o7="•",r7="•",i7="≎",a7="⪮",l7="≏",c7="≎",u7="≏",d7="Ć",h7="ć",f7="⩄",p7="⩉",g7="⩋",m7="∩",_7="⋒",b7="⩇",y7="⩀",v7="ⅅ",w7="∩︀",x7="⁁",k7="ˇ",E7="ℭ",C7="⩍",A7="Č",S7="č",T7="Ç",M7="ç",O7="Ĉ",R7="ĉ",N7="∰",D7="⩌",L7="⩐",I7="Ċ",P7="ċ",F7="¸",B7="¸",$7="⦲",j7="¢",z7="·",U7="·",q7="𝔠",H7="ℭ",V7="Ч",G7="ч",K7="✓",W7="✓",Z7="Χ",Y7="χ",Q7="ˆ",J7="≗",X7="↺",eM="↻",tM="⊛",nM="⊚",sM="⊝",oM="⊙",rM="®",iM="Ⓢ",aM="⊖",lM="⊕",cM="⊗",uM="○",dM="⧃",hM="≗",fM="⨐",pM="⫯",gM="⧂",mM="∲",_M="”",bM="’",yM="♣",vM="♣",wM=":",xM="∷",kM="⩴",EM="≔",CM="≔",AM=",",SM="@",TM="∁",MM="∘",OM="∁",RM="ℂ",NM="≅",DM="⩭",LM="≡",IM="∮",PM="∯",FM="∮",BM="𝕔",$M="ℂ",jM="∐",zM="∐",UM="©",qM="©",HM="℗",VM="∳",GM="↵",KM="✗",WM="⨯",ZM="𝒞",YM="𝒸",QM="⫏",JM="⫑",XM="⫐",eO="⫒",tO="⋯",nO="⤸",sO="⤵",oO="⋞",rO="⋟",iO="↶",aO="⤽",lO="⩈",cO="⩆",uO="≍",dO="∪",hO="⋓",fO="⩊",pO="⊍",gO="⩅",mO="∪︀",_O="↷",bO="⤼",yO="⋞",vO="⋟",wO="⋎",xO="⋏",kO="¤",EO="↶",CO="↷",AO="⋎",SO="⋏",TO="∲",MO="∱",OO="⌭",RO="†",NO="‡",DO="ℸ",LO="↓",IO="↡",PO="⇓",FO="‐",BO="⫤",$O="⊣",jO="⤏",zO="˝",UO="Ď",qO="ď",HO="Д",VO="д",GO="‡",KO="⇊",WO="ⅅ",ZO="ⅆ",YO="⤑",QO="⩷",JO="°",XO="∇",eR="Δ",tR="δ",nR="⦱",sR="⥿",oR="𝔇",rR="𝔡",iR="⥥",aR="⇃",lR="⇂",cR="´",uR="˙",dR="˝",hR="`",fR="˜",pR="⋄",gR="⋄",mR="⋄",_R="♦",bR="♦",yR="¨",vR="ⅆ",wR="ϝ",xR="⋲",kR="÷",ER="÷",CR="⋇",AR="⋇",SR="Ђ",TR="ђ",MR="⌞",OR="⌍",RR="$",NR="𝔻",DR="𝕕",LR="¨",IR="˙",PR="⃜",FR="≐",BR="≑",$R="≐",jR="∸",zR="∔",UR="⊡",qR="⌆",HR="∯",VR="¨",GR="⇓",KR="⇐",WR="⇔",ZR="⫤",YR="⟸",QR="⟺",JR="⟹",XR="⇒",eN="⊨",tN="⇑",nN="⇕",sN="∥",oN="⤓",rN="↓",iN="↓",aN="⇓",lN="⇵",cN="̑",uN="⇊",dN="⇃",hN="⇂",fN="⥐",pN="⥞",gN="⥖",mN="↽",_N="⥟",bN="⥗",yN="⇁",vN="↧",wN="⊤",xN="⤐",kN="⌟",EN="⌌",CN="𝒟",AN="𝒹",SN="Ѕ",TN="ѕ",MN="⧶",ON="Đ",RN="đ",NN="⋱",DN="▿",LN="▾",IN="⇵",PN="⥯",FN="⦦",BN="Џ",$N="џ",jN="⟿",zN="É",UN="é",qN="⩮",HN="Ě",VN="ě",GN="Ê",KN="ê",WN="≖",ZN="≕",YN="Э",QN="э",JN="⩷",XN="Ė",eD="ė",tD="≑",nD="ⅇ",sD="≒",oD="𝔈",rD="𝔢",iD="⪚",aD="È",lD="è",cD="⪖",uD="⪘",dD="⪙",hD="∈",fD="⏧",pD="ℓ",gD="⪕",mD="⪗",_D="Ē",bD="ē",yD="∅",vD="∅",wD="◻",xD="∅",kD="▫",ED=" ",CD=" ",AD=" ",SD="Ŋ",TD="ŋ",MD=" ",OD="Ę",RD="ę",ND="𝔼",DD="𝕖",LD="⋕",ID="⧣",PD="⩱",FD="ε",BD="Ε",$D="ε",jD="ϵ",zD="≖",UD="≕",qD="≂",HD="⪖",VD="⪕",GD="⩵",KD="=",WD="≂",ZD="≟",YD="⇌",QD="≡",JD="⩸",XD="⧥",eL="⥱",tL="≓",nL="ℯ",sL="ℰ",oL="≐",rL="⩳",iL="≂",aL="Η",lL="η",cL="Ð",uL="ð",dL="Ë",hL="ë",fL="€",pL="!",gL="∃",mL="∃",_L="ℰ",bL="ⅇ",yL="ⅇ",vL="≒",wL="Ф",xL="ф",kL="♀",EL="ffi",CL="ff",AL="ffl",SL="𝔉",TL="𝔣",ML="fi",OL="◼",RL="▪",NL="fj",DL="♭",LL="fl",IL="▱",PL="ƒ",FL="𝔽",BL="𝕗",$L="∀",jL="∀",zL="⋔",UL="⫙",qL="ℱ",HL="⨍",VL="½",GL="⅓",KL="¼",WL="⅕",ZL="⅙",YL="⅛",QL="⅔",JL="⅖",XL="¾",eI="⅗",tI="⅜",nI="⅘",sI="⅚",oI="⅝",rI="⅞",iI="⁄",aI="⌢",lI="𝒻",cI="ℱ",uI="ǵ",dI="Γ",hI="γ",fI="Ϝ",pI="ϝ",gI="⪆",mI="Ğ",_I="ğ",bI="Ģ",yI="Ĝ",vI="ĝ",wI="Г",xI="г",kI="Ġ",EI="ġ",CI="≥",AI="≧",SI="⪌",TI="⋛",MI="≥",OI="≧",RI="⩾",NI="⪩",DI="⩾",LI="⪀",II="⪂",PI="⪄",FI="⋛︀",BI="⪔",$I="𝔊",jI="𝔤",zI="≫",UI="⋙",qI="⋙",HI="ℷ",VI="Ѓ",GI="ѓ",KI="⪥",WI="≷",ZI="⪒",YI="⪤",QI="⪊",JI="⪊",XI="⪈",eP="≩",tP="⪈",nP="≩",sP="⋧",oP="𝔾",rP="𝕘",iP="`",aP="≥",lP="⋛",cP="≧",uP="⪢",dP="≷",hP="⩾",fP="≳",pP="𝒢",gP="ℊ",mP="≳",_P="⪎",bP="⪐",yP="⪧",vP="⩺",wP=">",xP=">",kP="≫",EP="⋗",CP="⦕",AP="⩼",SP="⪆",TP="⥸",MP="⋗",OP="⋛",RP="⪌",NP="≷",DP="≳",LP="≩︀",IP="≩︀",PP="ˇ",FP=" ",BP="½",$P="ℋ",jP="Ъ",zP="ъ",UP="⥈",qP="↔",HP="⇔",VP="↭",GP="^",KP="ℏ",WP="Ĥ",ZP="ĥ",YP="♥",QP="♥",JP="…",XP="⊹",eF="𝔥",tF="ℌ",nF="ℋ",sF="⤥",oF="⤦",rF="⇿",iF="∻",aF="↩",lF="↪",cF="𝕙",uF="ℍ",dF="―",hF="─",fF="𝒽",pF="ℋ",gF="ℏ",mF="Ħ",_F="ħ",bF="≎",yF="≏",vF="⁃",wF="‐",xF="Í",kF="í",EF="⁣",CF="Î",AF="î",SF="И",TF="и",MF="İ",OF="Е",RF="е",NF="¡",DF="⇔",LF="𝔦",IF="ℑ",PF="Ì",FF="ì",BF="ⅈ",$F="⨌",jF="∭",zF="⧜",UF="℩",qF="IJ",HF="ij",VF="Ī",GF="ī",KF="ℑ",WF="ⅈ",ZF="ℐ",YF="ℑ",QF="ı",JF="ℑ",XF="⊷",eB="Ƶ",tB="⇒",nB="℅",sB="∞",oB="⧝",rB="ı",iB="⊺",aB="∫",lB="∬",cB="ℤ",uB="∫",dB="⊺",hB="⋂",fB="⨗",pB="⨼",gB="⁣",mB="⁢",_B="Ё",bB="ё",yB="Į",vB="į",wB="𝕀",xB="𝕚",kB="Ι",EB="ι",CB="⨼",AB="¿",SB="𝒾",TB="ℐ",MB="∈",OB="⋵",RB="⋹",NB="⋴",DB="⋳",LB="∈",IB="⁢",PB="Ĩ",FB="ĩ",BB="І",$B="і",jB="Ï",zB="ï",UB="Ĵ",qB="ĵ",HB="Й",VB="й",GB="𝔍",KB="𝔧",WB="ȷ",ZB="𝕁",YB="𝕛",QB="𝒥",JB="𝒿",XB="Ј",e$="ј",t$="Є",n$="є",s$="Κ",o$="κ",r$="ϰ",i$="Ķ",a$="ķ",l$="К",c$="к",u$="𝔎",d$="𝔨",h$="ĸ",f$="Х",p$="х",g$="Ќ",m$="ќ",_$="𝕂",b$="𝕜",y$="𝒦",v$="𝓀",w$="⇚",x$="Ĺ",k$="ĺ",E$="⦴",C$="ℒ",A$="Λ",S$="λ",T$="⟨",M$="⟪",O$="⦑",R$="⟨",N$="⪅",D$="ℒ",L$="«",I$="⇤",P$="⤟",F$="←",B$="↞",$$="⇐",j$="⤝",z$="↩",U$="↫",q$="⤹",H$="⥳",V$="↢",G$="⤙",K$="⤛",W$="⪫",Z$="⪭",Y$="⪭︀",Q$="⤌",J$="⤎",X$="❲",ej="{",tj="[",nj="⦋",sj="⦏",oj="⦍",rj="Ľ",ij="ľ",aj="Ļ",lj="ļ",cj="⌈",uj="{",dj="Л",hj="л",fj="⤶",pj="“",gj="„",mj="⥧",_j="⥋",bj="↲",yj="≤",vj="≦",wj="⟨",xj="⇤",kj="←",Ej="←",Cj="⇐",Aj="⇆",Sj="↢",Tj="⌈",Mj="⟦",Oj="⥡",Rj="⥙",Nj="⇃",Dj="⌊",Lj="↽",Ij="↼",Pj="⇇",Fj="↔",Bj="↔",$j="⇔",jj="⇆",zj="⇋",Uj="↭",qj="⥎",Hj="↤",Vj="⊣",Gj="⥚",Kj="⋋",Wj="⧏",Zj="⊲",Yj="⊴",Qj="⥑",Jj="⥠",Xj="⥘",ez="↿",tz="⥒",nz="↼",sz="⪋",oz="⋚",rz="≤",iz="≦",az="⩽",lz="⪨",cz="⩽",uz="⩿",dz="⪁",hz="⪃",fz="⋚︀",pz="⪓",gz="⪅",mz="⋖",_z="⋚",bz="⪋",yz="⋚",vz="≦",wz="≶",xz="≶",kz="⪡",Ez="≲",Cz="⩽",Az="≲",Sz="⥼",Tz="⌊",Mz="𝔏",Oz="𝔩",Rz="≶",Nz="⪑",Dz="⥢",Lz="↽",Iz="↼",Pz="⥪",Fz="▄",Bz="Љ",$z="љ",jz="⇇",zz="≪",Uz="⋘",qz="⌞",Hz="⇚",Vz="⥫",Gz="◺",Kz="Ŀ",Wz="ŀ",Zz="⎰",Yz="⎰",Qz="⪉",Jz="⪉",Xz="⪇",eU="≨",tU="⪇",nU="≨",sU="⋦",oU="⟬",rU="⇽",iU="⟦",aU="⟵",lU="⟵",cU="⟸",uU="⟷",dU="⟷",hU="⟺",fU="⟼",pU="⟶",gU="⟶",mU="⟹",_U="↫",bU="↬",yU="⦅",vU="𝕃",wU="𝕝",xU="⨭",kU="⨴",EU="∗",CU="_",AU="↙",SU="↘",TU="◊",MU="◊",OU="⧫",RU="(",NU="⦓",DU="⇆",LU="⌟",IU="⇋",PU="⥭",FU="‎",BU="⊿",$U="‹",jU="𝓁",zU="ℒ",UU="↰",qU="↰",HU="≲",VU="⪍",GU="⪏",KU="[",WU="‘",ZU="‚",YU="Ł",QU="ł",JU="⪦",XU="⩹",eq="<",tq="<",nq="≪",sq="⋖",oq="⋋",rq="⋉",iq="⥶",aq="⩻",lq="◃",cq="⊴",uq="◂",dq="⦖",hq="⥊",fq="⥦",pq="≨︀",gq="≨︀",mq="¯",_q="♂",bq="✠",yq="✠",vq="↦",wq="↦",xq="↧",kq="↤",Eq="↥",Cq="▮",Aq="⨩",Sq="М",Tq="м",Mq="—",Oq="∺",Rq="∡",Nq=" ",Dq="ℳ",Lq="𝔐",Iq="𝔪",Pq="℧",Fq="µ",Bq="*",$q="⫰",jq="∣",zq="·",Uq="⊟",qq="−",Hq="∸",Vq="⨪",Gq="∓",Kq="⫛",Wq="…",Zq="∓",Yq="⊧",Qq="𝕄",Jq="𝕞",Xq="∓",eH="𝓂",tH="ℳ",nH="∾",sH="Μ",oH="μ",rH="⊸",iH="⊸",aH="∇",lH="Ń",cH="ń",uH="∠⃒",dH="≉",hH="⩰̸",fH="≋̸",pH="ʼn",gH="≉",mH="♮",_H="ℕ",bH="♮",yH=" ",vH="≎̸",wH="≏̸",xH="⩃",kH="Ň",EH="ň",CH="Ņ",AH="ņ",SH="≇",TH="⩭̸",MH="⩂",OH="Н",RH="н",NH="–",DH="⤤",LH="↗",IH="⇗",PH="↗",FH="≠",BH="≐̸",$H="​",jH="​",zH="​",UH="​",qH="≢",HH="⤨",VH="≂̸",GH="≫",KH="≪",WH=` +`,ZH="∄",YH="∄",QH="𝔑",JH="𝔫",XH="≧̸",eV="≱",tV="≱",nV="≧̸",sV="⩾̸",oV="⩾̸",rV="⋙̸",iV="≵",aV="≫⃒",lV="≯",cV="≯",uV="≫̸",dV="↮",hV="⇎",fV="⫲",pV="∋",gV="⋼",mV="⋺",_V="∋",bV="Њ",yV="њ",vV="↚",wV="⇍",xV="‥",kV="≦̸",EV="≰",CV="↚",AV="⇍",SV="↮",TV="⇎",MV="≰",OV="≦̸",RV="⩽̸",NV="⩽̸",DV="≮",LV="⋘̸",IV="≴",PV="≪⃒",FV="≮",BV="⋪",$V="⋬",jV="≪̸",zV="∤",UV="⁠",qV=" ",HV="𝕟",VV="ℕ",GV="⫬",KV="¬",WV="≢",ZV="≭",YV="∦",QV="∉",JV="≠",XV="≂̸",eG="∄",tG="≯",nG="≱",sG="≧̸",oG="≫̸",rG="≹",iG="⩾̸",aG="≵",lG="≎̸",cG="≏̸",uG="∉",dG="⋵̸",hG="⋹̸",fG="∉",pG="⋷",gG="⋶",mG="⧏̸",_G="⋪",bG="⋬",yG="≮",vG="≰",wG="≸",xG="≪̸",kG="⩽̸",EG="≴",CG="⪢̸",AG="⪡̸",SG="∌",TG="∌",MG="⋾",OG="⋽",RG="⊀",NG="⪯̸",DG="⋠",LG="∌",IG="⧐̸",PG="⋫",FG="⋭",BG="⊏̸",$G="⋢",jG="⊐̸",zG="⋣",UG="⊂⃒",qG="⊈",HG="⊁",VG="⪰̸",GG="⋡",KG="≿̸",WG="⊃⃒",ZG="⊉",YG="≁",QG="≄",JG="≇",XG="≉",eK="∤",tK="∦",nK="∦",sK="⫽⃥",oK="∂̸",rK="⨔",iK="⊀",aK="⋠",lK="⊀",cK="⪯̸",uK="⪯̸",dK="⤳̸",hK="↛",fK="⇏",pK="↝̸",gK="↛",mK="⇏",_K="⋫",bK="⋭",yK="⊁",vK="⋡",wK="⪰̸",xK="𝒩",kK="𝓃",EK="∤",CK="∦",AK="≁",SK="≄",TK="≄",MK="∤",OK="∦",RK="⋢",NK="⋣",DK="⊄",LK="⫅̸",IK="⊈",PK="⊂⃒",FK="⊈",BK="⫅̸",$K="⊁",jK="⪰̸",zK="⊅",UK="⫆̸",qK="⊉",HK="⊃⃒",VK="⊉",GK="⫆̸",KK="≹",WK="Ñ",ZK="ñ",YK="≸",QK="⋪",JK="⋬",XK="⋫",eW="⋭",tW="Ν",nW="ν",sW="#",oW="№",rW=" ",iW="≍⃒",aW="⊬",lW="⊭",cW="⊮",uW="⊯",dW="≥⃒",hW=">⃒",fW="⤄",pW="⧞",gW="⤂",mW="≤⃒",_W="<⃒",bW="⊴⃒",yW="⤃",vW="⊵⃒",wW="∼⃒",xW="⤣",kW="↖",EW="⇖",CW="↖",AW="⤧",SW="Ó",TW="ó",MW="⊛",OW="Ô",RW="ô",NW="⊚",DW="О",LW="о",IW="⊝",PW="Ő",FW="ő",BW="⨸",$W="⊙",jW="⦼",zW="Œ",UW="œ",qW="⦿",HW="𝔒",VW="𝔬",GW="˛",KW="Ò",WW="ò",ZW="⧁",YW="⦵",QW="Ω",JW="∮",XW="↺",eZ="⦾",tZ="⦻",nZ="‾",sZ="⧀",oZ="Ō",rZ="ō",iZ="Ω",aZ="ω",lZ="Ο",cZ="ο",uZ="⦶",dZ="⊖",hZ="𝕆",fZ="𝕠",pZ="⦷",gZ="“",mZ="‘",_Z="⦹",bZ="⊕",yZ="↻",vZ="⩔",wZ="∨",xZ="⩝",kZ="ℴ",EZ="ℴ",CZ="ª",AZ="º",SZ="⊶",TZ="⩖",MZ="⩗",OZ="⩛",RZ="Ⓢ",NZ="𝒪",DZ="ℴ",LZ="Ø",IZ="ø",PZ="⊘",FZ="Õ",BZ="õ",$Z="⨶",jZ="⨷",zZ="⊗",UZ="Ö",qZ="ö",HZ="⌽",VZ="‾",GZ="⏞",KZ="⎴",WZ="⏜",ZZ="¶",YZ="∥",QZ="∥",JZ="⫳",XZ="⫽",eY="∂",tY="∂",nY="П",sY="п",oY="%",rY=".",iY="‰",aY="⊥",lY="‱",cY="𝔓",uY="𝔭",dY="Φ",hY="φ",fY="ϕ",pY="ℳ",gY="☎",mY="Π",_Y="π",bY="⋔",yY="ϖ",vY="ℏ",wY="ℎ",xY="ℏ",kY="⨣",EY="⊞",CY="⨢",AY="+",SY="∔",TY="⨥",MY="⩲",OY="±",RY="±",NY="⨦",DY="⨧",LY="±",IY="ℌ",PY="⨕",FY="𝕡",BY="ℙ",$Y="£",jY="⪷",zY="⪻",UY="≺",qY="≼",HY="⪷",VY="≺",GY="≼",KY="≺",WY="⪯",ZY="≼",YY="≾",QY="⪯",JY="⪹",XY="⪵",eQ="⋨",tQ="⪯",nQ="⪳",sQ="≾",oQ="′",rQ="″",iQ="ℙ",aQ="⪹",lQ="⪵",cQ="⋨",uQ="∏",dQ="∏",hQ="⌮",fQ="⌒",pQ="⌓",gQ="∝",mQ="∝",_Q="∷",bQ="∝",yQ="≾",vQ="⊰",wQ="𝒫",xQ="𝓅",kQ="Ψ",EQ="ψ",CQ=" ",AQ="𝔔",SQ="𝔮",TQ="⨌",MQ="𝕢",OQ="ℚ",RQ="⁗",NQ="𝒬",DQ="𝓆",LQ="ℍ",IQ="⨖",PQ="?",FQ="≟",BQ='"',$Q='"',jQ="⇛",zQ="∽̱",UQ="Ŕ",qQ="ŕ",HQ="√",VQ="⦳",GQ="⟩",KQ="⟫",WQ="⦒",ZQ="⦥",YQ="⟩",QQ="»",JQ="⥵",XQ="⇥",eJ="⤠",tJ="⤳",nJ="→",sJ="↠",oJ="⇒",rJ="⤞",iJ="↪",aJ="↬",lJ="⥅",cJ="⥴",uJ="⤖",dJ="↣",hJ="↝",fJ="⤚",pJ="⤜",gJ="∶",mJ="ℚ",_J="⤍",bJ="⤏",yJ="⤐",vJ="❳",wJ="}",xJ="]",kJ="⦌",EJ="⦎",CJ="⦐",AJ="Ř",SJ="ř",TJ="Ŗ",MJ="ŗ",OJ="⌉",RJ="}",NJ="Р",DJ="р",LJ="⤷",IJ="⥩",PJ="”",FJ="”",BJ="↳",$J="ℜ",jJ="ℛ",zJ="ℜ",UJ="ℝ",qJ="ℜ",HJ="▭",VJ="®",GJ="®",KJ="∋",WJ="⇋",ZJ="⥯",YJ="⥽",QJ="⌋",JJ="𝔯",XJ="ℜ",eX="⥤",tX="⇁",nX="⇀",sX="⥬",oX="Ρ",rX="ρ",iX="ϱ",aX="⟩",lX="⇥",cX="→",uX="→",dX="⇒",hX="⇄",fX="↣",pX="⌉",gX="⟧",mX="⥝",_X="⥕",bX="⇂",yX="⌋",vX="⇁",wX="⇀",xX="⇄",kX="⇌",EX="⇉",CX="↝",AX="↦",SX="⊢",TX="⥛",MX="⋌",OX="⧐",RX="⊳",NX="⊵",DX="⥏",LX="⥜",IX="⥔",PX="↾",FX="⥓",BX="⇀",$X="˚",jX="≓",zX="⇄",UX="⇌",qX="‏",HX="⎱",VX="⎱",GX="⫮",KX="⟭",WX="⇾",ZX="⟧",YX="⦆",QX="𝕣",JX="ℝ",XX="⨮",eee="⨵",tee="⥰",nee=")",see="⦔",oee="⨒",ree="⇉",iee="⇛",aee="›",lee="𝓇",cee="ℛ",uee="↱",dee="↱",hee="]",fee="’",pee="’",gee="⋌",mee="⋊",_ee="▹",bee="⊵",yee="▸",vee="⧎",wee="⧴",xee="⥨",kee="℞",Eee="Ś",Cee="ś",Aee="‚",See="⪸",Tee="Š",Mee="š",Oee="⪼",Ree="≻",Nee="≽",Dee="⪰",Lee="⪴",Iee="Ş",Pee="ş",Fee="Ŝ",Bee="ŝ",$ee="⪺",jee="⪶",zee="⋩",Uee="⨓",qee="≿",Hee="С",Vee="с",Gee="⊡",Kee="⋅",Wee="⩦",Zee="⤥",Yee="↘",Qee="⇘",Jee="↘",Xee="§",ete=";",tte="⤩",nte="∖",ste="∖",ote="✶",rte="𝔖",ite="𝔰",ate="⌢",lte="♯",cte="Щ",ute="щ",dte="Ш",hte="ш",fte="↓",pte="←",gte="∣",mte="∥",_te="→",bte="↑",yte="­",vte="Σ",wte="σ",xte="ς",kte="ς",Ete="∼",Cte="⩪",Ate="≃",Ste="≃",Tte="⪞",Mte="⪠",Ote="⪝",Rte="⪟",Nte="≆",Dte="⨤",Lte="⥲",Ite="←",Pte="∘",Fte="∖",Bte="⨳",$te="⧤",jte="∣",zte="⌣",Ute="⪪",qte="⪬",Hte="⪬︀",Vte="Ь",Gte="ь",Kte="⌿",Wte="⧄",Zte="/",Yte="𝕊",Qte="𝕤",Jte="♠",Xte="♠",ene="∥",tne="⊓",nne="⊓︀",sne="⊔",one="⊔︀",rne="√",ine="⊏",ane="⊑",lne="⊏",cne="⊑",une="⊐",dne="⊒",hne="⊐",fne="⊒",pne="□",gne="□",mne="⊓",_ne="⊏",bne="⊑",yne="⊐",vne="⊒",wne="⊔",xne="▪",kne="□",Ene="▪",Cne="→",Ane="𝒮",Sne="𝓈",Tne="∖",Mne="⌣",One="⋆",Rne="⋆",Nne="☆",Dne="★",Lne="ϵ",Ine="ϕ",Pne="¯",Fne="⊂",Bne="⋐",$ne="⪽",jne="⫅",zne="⊆",Une="⫃",qne="⫁",Hne="⫋",Vne="⊊",Gne="⪿",Kne="⥹",Wne="⊂",Zne="⋐",Yne="⊆",Qne="⫅",Jne="⊆",Xne="⊊",ese="⫋",tse="⫇",nse="⫕",sse="⫓",ose="⪸",rse="≻",ise="≽",ase="≻",lse="⪰",cse="≽",use="≿",dse="⪰",hse="⪺",fse="⪶",pse="⋩",gse="≿",mse="∋",_se="∑",bse="∑",yse="♪",vse="¹",wse="²",xse="³",kse="⊃",Ese="⋑",Cse="⪾",Ase="⫘",Sse="⫆",Tse="⊇",Mse="⫄",Ose="⊃",Rse="⊇",Nse="⟉",Dse="⫗",Lse="⥻",Ise="⫂",Pse="⫌",Fse="⊋",Bse="⫀",$se="⊃",jse="⋑",zse="⊇",Use="⫆",qse="⊋",Hse="⫌",Vse="⫈",Gse="⫔",Kse="⫖",Wse="⤦",Zse="↙",Yse="⇙",Qse="↙",Jse="⤪",Xse="ß",eoe=" ",toe="⌖",noe="Τ",soe="τ",ooe="⎴",roe="Ť",ioe="ť",aoe="Ţ",loe="ţ",coe="Т",uoe="т",doe="⃛",hoe="⌕",foe="𝔗",poe="𝔱",goe="∴",moe="∴",_oe="∴",boe="Θ",yoe="θ",voe="ϑ",woe="ϑ",xoe="≈",koe="∼",Eoe="  ",Coe=" ",Aoe=" ",Soe="≈",Toe="∼",Moe="Þ",Ooe="þ",Roe="˜",Noe="∼",Doe="≃",Loe="≅",Ioe="≈",Poe="⨱",Foe="⊠",Boe="×",$oe="⨰",joe="∭",zoe="⤨",Uoe="⌶",qoe="⫱",Hoe="⊤",Voe="𝕋",Goe="𝕥",Koe="⫚",Woe="⤩",Zoe="‴",Yoe="™",Qoe="™",Joe="▵",Xoe="▿",ere="◃",tre="⊴",nre="≜",sre="▹",ore="⊵",rre="◬",ire="≜",are="⨺",lre="⃛",cre="⨹",ure="⧍",dre="⨻",hre="⏢",fre="𝒯",pre="𝓉",gre="Ц",mre="ц",_re="Ћ",bre="ћ",yre="Ŧ",vre="ŧ",wre="≬",xre="↞",kre="↠",Ere="Ú",Cre="ú",Are="↑",Sre="↟",Tre="⇑",Mre="⥉",Ore="Ў",Rre="ў",Nre="Ŭ",Dre="ŭ",Lre="Û",Ire="û",Pre="У",Fre="у",Bre="⇅",$re="Ű",jre="ű",zre="⥮",Ure="⥾",qre="𝔘",Hre="𝔲",Vre="Ù",Gre="ù",Kre="⥣",Wre="↿",Zre="↾",Yre="▀",Qre="⌜",Jre="⌜",Xre="⌏",eie="◸",tie="Ū",nie="ū",sie="¨",oie="_",rie="⏟",iie="⎵",aie="⏝",lie="⋃",cie="⊎",uie="Ų",die="ų",hie="𝕌",fie="𝕦",pie="⤒",gie="↑",mie="↑",_ie="⇑",bie="⇅",yie="↕",vie="↕",wie="⇕",xie="⥮",kie="↿",Eie="↾",Cie="⊎",Aie="↖",Sie="↗",Tie="υ",Mie="ϒ",Oie="ϒ",Rie="Υ",Nie="υ",Die="↥",Lie="⊥",Iie="⇈",Pie="⌝",Fie="⌝",Bie="⌎",$ie="Ů",jie="ů",zie="◹",Uie="𝒰",qie="𝓊",Hie="⋰",Vie="Ũ",Gie="ũ",Kie="▵",Wie="▴",Zie="⇈",Yie="Ü",Qie="ü",Jie="⦧",Xie="⦜",eae="ϵ",tae="ϰ",nae="∅",sae="ϕ",oae="ϖ",rae="∝",iae="↕",aae="⇕",lae="ϱ",cae="ς",uae="⊊︀",dae="⫋︀",hae="⊋︀",fae="⫌︀",pae="ϑ",gae="⊲",mae="⊳",_ae="⫨",bae="⫫",yae="⫩",vae="В",wae="в",xae="⊢",kae="⊨",Eae="⊩",Cae="⊫",Aae="⫦",Sae="⊻",Tae="∨",Mae="⋁",Oae="≚",Rae="⋮",Nae="|",Dae="‖",Lae="|",Iae="‖",Pae="∣",Fae="|",Bae="❘",$ae="≀",jae=" ",zae="𝔙",Uae="𝔳",qae="⊲",Hae="⊂⃒",Vae="⊃⃒",Gae="𝕍",Kae="𝕧",Wae="∝",Zae="⊳",Yae="𝒱",Qae="𝓋",Jae="⫋︀",Xae="⊊︀",ele="⫌︀",tle="⊋︀",nle="⊪",sle="⦚",ole="Ŵ",rle="ŵ",ile="⩟",ale="∧",lle="⋀",cle="≙",ule="℘",dle="𝔚",hle="𝔴",fle="𝕎",ple="𝕨",gle="℘",mle="≀",_le="≀",ble="𝒲",yle="𝓌",vle="⋂",wle="◯",xle="⋃",kle="▽",Ele="𝔛",Cle="𝔵",Ale="⟷",Sle="⟺",Tle="Ξ",Mle="ξ",Ole="⟵",Rle="⟸",Nle="⟼",Dle="⋻",Lle="⨀",Ile="𝕏",Ple="𝕩",Fle="⨁",Ble="⨂",$le="⟶",jle="⟹",zle="𝒳",Ule="𝓍",qle="⨆",Hle="⨄",Vle="△",Gle="⋁",Kle="⋀",Wle="Ý",Zle="ý",Yle="Я",Qle="я",Jle="Ŷ",Xle="ŷ",ece="Ы",tce="ы",nce="¥",sce="𝔜",oce="𝔶",rce="Ї",ice="ї",ace="𝕐",lce="𝕪",cce="𝒴",uce="𝓎",dce="Ю",hce="ю",fce="ÿ",pce="Ÿ",gce="Ź",mce="ź",_ce="Ž",bce="ž",yce="З",vce="з",wce="Ż",xce="ż",kce="ℨ",Ece="​",Cce="Ζ",Ace="ζ",Sce="𝔷",Tce="ℨ",Mce="Ж",Oce="ж",Rce="⇝",Nce="𝕫",Dce="ℤ",Lce="𝒵",Ice="𝓏",Pce="‍",Fce="‌",Bce={Aacute:wA,aacute:xA,Abreve:kA,abreve:EA,ac:CA,acd:AA,acE:SA,Acirc:TA,acirc:MA,acute:OA,Acy:RA,acy:NA,AElig:DA,aelig:LA,af:IA,Afr:PA,afr:FA,Agrave:BA,agrave:$A,alefsym:jA,aleph:zA,Alpha:UA,alpha:qA,Amacr:HA,amacr:VA,amalg:GA,amp:KA,AMP:WA,andand:ZA,And:YA,and:QA,andd:JA,andslope:XA,andv:e6,ang:t6,ange:n6,angle:s6,angmsdaa:o6,angmsdab:r6,angmsdac:i6,angmsdad:a6,angmsdae:l6,angmsdaf:c6,angmsdag:u6,angmsdah:d6,angmsd:h6,angrt:f6,angrtvb:p6,angrtvbd:g6,angsph:m6,angst:_6,angzarr:b6,Aogon:y6,aogon:v6,Aopf:w6,aopf:x6,apacir:k6,ap:E6,apE:C6,ape:A6,apid:S6,apos:T6,ApplyFunction:M6,approx:O6,approxeq:R6,Aring:N6,aring:D6,Ascr:L6,ascr:I6,Assign:P6,ast:F6,asymp:B6,asympeq:$6,Atilde:j6,atilde:z6,Auml:U6,auml:q6,awconint:H6,awint:V6,backcong:G6,backepsilon:K6,backprime:W6,backsim:Z6,backsimeq:Y6,Backslash:Q6,Barv:J6,barvee:X6,barwed:eS,Barwed:tS,barwedge:nS,bbrk:sS,bbrktbrk:oS,bcong:rS,Bcy:iS,bcy:aS,bdquo:lS,becaus:cS,because:uS,Because:dS,bemptyv:hS,bepsi:fS,bernou:pS,Bernoullis:gS,Beta:mS,beta:_S,beth:bS,between:yS,Bfr:vS,bfr:wS,bigcap:xS,bigcirc:kS,bigcup:ES,bigodot:CS,bigoplus:AS,bigotimes:SS,bigsqcup:TS,bigstar:MS,bigtriangledown:OS,bigtriangleup:RS,biguplus:NS,bigvee:DS,bigwedge:LS,bkarow:IS,blacklozenge:PS,blacksquare:FS,blacktriangle:BS,blacktriangledown:$S,blacktriangleleft:jS,blacktriangleright:zS,blank:US,blk12:qS,blk14:HS,blk34:VS,block:GS,bne:KS,bnequiv:WS,bNot:ZS,bnot:YS,Bopf:QS,bopf:JS,bot:XS,bottom:eT,bowtie:tT,boxbox:nT,boxdl:sT,boxdL:oT,boxDl:rT,boxDL:iT,boxdr:aT,boxdR:lT,boxDr:cT,boxDR:uT,boxh:dT,boxH:hT,boxhd:fT,boxHd:pT,boxhD:gT,boxHD:mT,boxhu:_T,boxHu:bT,boxhU:yT,boxHU:vT,boxminus:wT,boxplus:xT,boxtimes:kT,boxul:ET,boxuL:CT,boxUl:AT,boxUL:ST,boxur:TT,boxuR:MT,boxUr:OT,boxUR:RT,boxv:NT,boxV:DT,boxvh:LT,boxvH:IT,boxVh:PT,boxVH:FT,boxvl:BT,boxvL:$T,boxVl:jT,boxVL:zT,boxvr:UT,boxvR:qT,boxVr:HT,boxVR:VT,bprime:GT,breve:KT,Breve:WT,brvbar:ZT,bscr:YT,Bscr:QT,bsemi:JT,bsim:XT,bsime:e7,bsolb:t7,bsol:n7,bsolhsub:s7,bull:o7,bullet:r7,bump:i7,bumpE:a7,bumpe:l7,Bumpeq:c7,bumpeq:u7,Cacute:d7,cacute:h7,capand:f7,capbrcup:p7,capcap:g7,cap:m7,Cap:_7,capcup:b7,capdot:y7,CapitalDifferentialD:v7,caps:w7,caret:x7,caron:k7,Cayleys:E7,ccaps:C7,Ccaron:A7,ccaron:S7,Ccedil:T7,ccedil:M7,Ccirc:O7,ccirc:R7,Cconint:N7,ccups:D7,ccupssm:L7,Cdot:I7,cdot:P7,cedil:F7,Cedilla:B7,cemptyv:$7,cent:j7,centerdot:z7,CenterDot:U7,cfr:q7,Cfr:H7,CHcy:V7,chcy:G7,check:K7,checkmark:W7,Chi:Z7,chi:Y7,circ:Q7,circeq:J7,circlearrowleft:X7,circlearrowright:eM,circledast:tM,circledcirc:nM,circleddash:sM,CircleDot:oM,circledR:rM,circledS:iM,CircleMinus:aM,CirclePlus:lM,CircleTimes:cM,cir:uM,cirE:dM,cire:hM,cirfnint:fM,cirmid:pM,cirscir:gM,ClockwiseContourIntegral:mM,CloseCurlyDoubleQuote:_M,CloseCurlyQuote:bM,clubs:yM,clubsuit:vM,colon:wM,Colon:xM,Colone:kM,colone:EM,coloneq:CM,comma:AM,commat:SM,comp:TM,compfn:MM,complement:OM,complexes:RM,cong:NM,congdot:DM,Congruent:LM,conint:IM,Conint:PM,ContourIntegral:FM,copf:BM,Copf:$M,coprod:jM,Coproduct:zM,copy:UM,COPY:qM,copysr:HM,CounterClockwiseContourIntegral:VM,crarr:GM,cross:KM,Cross:WM,Cscr:ZM,cscr:YM,csub:QM,csube:JM,csup:XM,csupe:eO,ctdot:tO,cudarrl:nO,cudarrr:sO,cuepr:oO,cuesc:rO,cularr:iO,cularrp:aO,cupbrcap:lO,cupcap:cO,CupCap:uO,cup:dO,Cup:hO,cupcup:fO,cupdot:pO,cupor:gO,cups:mO,curarr:_O,curarrm:bO,curlyeqprec:yO,curlyeqsucc:vO,curlyvee:wO,curlywedge:xO,curren:kO,curvearrowleft:EO,curvearrowright:CO,cuvee:AO,cuwed:SO,cwconint:TO,cwint:MO,cylcty:OO,dagger:RO,Dagger:NO,daleth:DO,darr:LO,Darr:IO,dArr:PO,dash:FO,Dashv:BO,dashv:$O,dbkarow:jO,dblac:zO,Dcaron:UO,dcaron:qO,Dcy:HO,dcy:VO,ddagger:GO,ddarr:KO,DD:WO,dd:ZO,DDotrahd:YO,ddotseq:QO,deg:JO,Del:XO,Delta:eR,delta:tR,demptyv:nR,dfisht:sR,Dfr:oR,dfr:rR,dHar:iR,dharl:aR,dharr:lR,DiacriticalAcute:cR,DiacriticalDot:uR,DiacriticalDoubleAcute:dR,DiacriticalGrave:hR,DiacriticalTilde:fR,diam:pR,diamond:gR,Diamond:mR,diamondsuit:_R,diams:bR,die:yR,DifferentialD:vR,digamma:wR,disin:xR,div:kR,divide:ER,divideontimes:CR,divonx:AR,DJcy:SR,djcy:TR,dlcorn:MR,dlcrop:OR,dollar:RR,Dopf:NR,dopf:DR,Dot:LR,dot:IR,DotDot:PR,doteq:FR,doteqdot:BR,DotEqual:$R,dotminus:jR,dotplus:zR,dotsquare:UR,doublebarwedge:qR,DoubleContourIntegral:HR,DoubleDot:VR,DoubleDownArrow:GR,DoubleLeftArrow:KR,DoubleLeftRightArrow:WR,DoubleLeftTee:ZR,DoubleLongLeftArrow:YR,DoubleLongLeftRightArrow:QR,DoubleLongRightArrow:JR,DoubleRightArrow:XR,DoubleRightTee:eN,DoubleUpArrow:tN,DoubleUpDownArrow:nN,DoubleVerticalBar:sN,DownArrowBar:oN,downarrow:rN,DownArrow:iN,Downarrow:aN,DownArrowUpArrow:lN,DownBreve:cN,downdownarrows:uN,downharpoonleft:dN,downharpoonright:hN,DownLeftRightVector:fN,DownLeftTeeVector:pN,DownLeftVectorBar:gN,DownLeftVector:mN,DownRightTeeVector:_N,DownRightVectorBar:bN,DownRightVector:yN,DownTeeArrow:vN,DownTee:wN,drbkarow:xN,drcorn:kN,drcrop:EN,Dscr:CN,dscr:AN,DScy:SN,dscy:TN,dsol:MN,Dstrok:ON,dstrok:RN,dtdot:NN,dtri:DN,dtrif:LN,duarr:IN,duhar:PN,dwangle:FN,DZcy:BN,dzcy:$N,dzigrarr:jN,Eacute:zN,eacute:UN,easter:qN,Ecaron:HN,ecaron:VN,Ecirc:GN,ecirc:KN,ecir:WN,ecolon:ZN,Ecy:YN,ecy:QN,eDDot:JN,Edot:XN,edot:eD,eDot:tD,ee:nD,efDot:sD,Efr:oD,efr:rD,eg:iD,Egrave:aD,egrave:lD,egs:cD,egsdot:uD,el:dD,Element:hD,elinters:fD,ell:pD,els:gD,elsdot:mD,Emacr:_D,emacr:bD,empty:yD,emptyset:vD,EmptySmallSquare:wD,emptyv:xD,EmptyVerySmallSquare:kD,emsp13:ED,emsp14:CD,emsp:AD,ENG:SD,eng:TD,ensp:MD,Eogon:OD,eogon:RD,Eopf:ND,eopf:DD,epar:LD,eparsl:ID,eplus:PD,epsi:FD,Epsilon:BD,epsilon:$D,epsiv:jD,eqcirc:zD,eqcolon:UD,eqsim:qD,eqslantgtr:HD,eqslantless:VD,Equal:GD,equals:KD,EqualTilde:WD,equest:ZD,Equilibrium:YD,equiv:QD,equivDD:JD,eqvparsl:XD,erarr:eL,erDot:tL,escr:nL,Escr:sL,esdot:oL,Esim:rL,esim:iL,Eta:aL,eta:lL,ETH:cL,eth:uL,Euml:dL,euml:hL,euro:fL,excl:pL,exist:gL,Exists:mL,expectation:_L,exponentiale:bL,ExponentialE:yL,fallingdotseq:vL,Fcy:wL,fcy:xL,female:kL,ffilig:EL,fflig:CL,ffllig:AL,Ffr:SL,ffr:TL,filig:ML,FilledSmallSquare:OL,FilledVerySmallSquare:RL,fjlig:NL,flat:DL,fllig:LL,fltns:IL,fnof:PL,Fopf:FL,fopf:BL,forall:$L,ForAll:jL,fork:zL,forkv:UL,Fouriertrf:qL,fpartint:HL,frac12:VL,frac13:GL,frac14:KL,frac15:WL,frac16:ZL,frac18:YL,frac23:QL,frac25:JL,frac34:XL,frac35:eI,frac38:tI,frac45:nI,frac56:sI,frac58:oI,frac78:rI,frasl:iI,frown:aI,fscr:lI,Fscr:cI,gacute:uI,Gamma:dI,gamma:hI,Gammad:fI,gammad:pI,gap:gI,Gbreve:mI,gbreve:_I,Gcedil:bI,Gcirc:yI,gcirc:vI,Gcy:wI,gcy:xI,Gdot:kI,gdot:EI,ge:CI,gE:AI,gEl:SI,gel:TI,geq:MI,geqq:OI,geqslant:RI,gescc:NI,ges:DI,gesdot:LI,gesdoto:II,gesdotol:PI,gesl:FI,gesles:BI,Gfr:$I,gfr:jI,gg:zI,Gg:UI,ggg:qI,gimel:HI,GJcy:VI,gjcy:GI,gla:KI,gl:WI,glE:ZI,glj:YI,gnap:QI,gnapprox:JI,gne:XI,gnE:eP,gneq:tP,gneqq:nP,gnsim:sP,Gopf:oP,gopf:rP,grave:iP,GreaterEqual:aP,GreaterEqualLess:lP,GreaterFullEqual:cP,GreaterGreater:uP,GreaterLess:dP,GreaterSlantEqual:hP,GreaterTilde:fP,Gscr:pP,gscr:gP,gsim:mP,gsime:_P,gsiml:bP,gtcc:yP,gtcir:vP,gt:wP,GT:xP,Gt:kP,gtdot:EP,gtlPar:CP,gtquest:AP,gtrapprox:SP,gtrarr:TP,gtrdot:MP,gtreqless:OP,gtreqqless:RP,gtrless:NP,gtrsim:DP,gvertneqq:LP,gvnE:IP,Hacek:PP,hairsp:FP,half:BP,hamilt:$P,HARDcy:jP,hardcy:zP,harrcir:UP,harr:qP,hArr:HP,harrw:VP,Hat:GP,hbar:KP,Hcirc:WP,hcirc:ZP,hearts:YP,heartsuit:QP,hellip:JP,hercon:XP,hfr:eF,Hfr:tF,HilbertSpace:nF,hksearow:sF,hkswarow:oF,hoarr:rF,homtht:iF,hookleftarrow:aF,hookrightarrow:lF,hopf:cF,Hopf:uF,horbar:dF,HorizontalLine:hF,hscr:fF,Hscr:pF,hslash:gF,Hstrok:mF,hstrok:_F,HumpDownHump:bF,HumpEqual:yF,hybull:vF,hyphen:wF,Iacute:xF,iacute:kF,ic:EF,Icirc:CF,icirc:AF,Icy:SF,icy:TF,Idot:MF,IEcy:OF,iecy:RF,iexcl:NF,iff:DF,ifr:LF,Ifr:IF,Igrave:PF,igrave:FF,ii:BF,iiiint:$F,iiint:jF,iinfin:zF,iiota:UF,IJlig:qF,ijlig:HF,Imacr:VF,imacr:GF,image:KF,ImaginaryI:WF,imagline:ZF,imagpart:YF,imath:QF,Im:JF,imof:XF,imped:eB,Implies:tB,incare:nB,in:"∈",infin:sB,infintie:oB,inodot:rB,intcal:iB,int:aB,Int:lB,integers:cB,Integral:uB,intercal:dB,Intersection:hB,intlarhk:fB,intprod:pB,InvisibleComma:gB,InvisibleTimes:mB,IOcy:_B,iocy:bB,Iogon:yB,iogon:vB,Iopf:wB,iopf:xB,Iota:kB,iota:EB,iprod:CB,iquest:AB,iscr:SB,Iscr:TB,isin:MB,isindot:OB,isinE:RB,isins:NB,isinsv:DB,isinv:LB,it:IB,Itilde:PB,itilde:FB,Iukcy:BB,iukcy:$B,Iuml:jB,iuml:zB,Jcirc:UB,jcirc:qB,Jcy:HB,jcy:VB,Jfr:GB,jfr:KB,jmath:WB,Jopf:ZB,jopf:YB,Jscr:QB,jscr:JB,Jsercy:XB,jsercy:e$,Jukcy:t$,jukcy:n$,Kappa:s$,kappa:o$,kappav:r$,Kcedil:i$,kcedil:a$,Kcy:l$,kcy:c$,Kfr:u$,kfr:d$,kgreen:h$,KHcy:f$,khcy:p$,KJcy:g$,kjcy:m$,Kopf:_$,kopf:b$,Kscr:y$,kscr:v$,lAarr:w$,Lacute:x$,lacute:k$,laemptyv:E$,lagran:C$,Lambda:A$,lambda:S$,lang:T$,Lang:M$,langd:O$,langle:R$,lap:N$,Laplacetrf:D$,laquo:L$,larrb:I$,larrbfs:P$,larr:F$,Larr:B$,lArr:$$,larrfs:j$,larrhk:z$,larrlp:U$,larrpl:q$,larrsim:H$,larrtl:V$,latail:G$,lAtail:K$,lat:W$,late:Z$,lates:Y$,lbarr:Q$,lBarr:J$,lbbrk:X$,lbrace:ej,lbrack:tj,lbrke:nj,lbrksld:sj,lbrkslu:oj,Lcaron:rj,lcaron:ij,Lcedil:aj,lcedil:lj,lceil:cj,lcub:uj,Lcy:dj,lcy:hj,ldca:fj,ldquo:pj,ldquor:gj,ldrdhar:mj,ldrushar:_j,ldsh:bj,le:yj,lE:vj,LeftAngleBracket:wj,LeftArrowBar:xj,leftarrow:kj,LeftArrow:Ej,Leftarrow:Cj,LeftArrowRightArrow:Aj,leftarrowtail:Sj,LeftCeiling:Tj,LeftDoubleBracket:Mj,LeftDownTeeVector:Oj,LeftDownVectorBar:Rj,LeftDownVector:Nj,LeftFloor:Dj,leftharpoondown:Lj,leftharpoonup:Ij,leftleftarrows:Pj,leftrightarrow:Fj,LeftRightArrow:Bj,Leftrightarrow:$j,leftrightarrows:jj,leftrightharpoons:zj,leftrightsquigarrow:Uj,LeftRightVector:qj,LeftTeeArrow:Hj,LeftTee:Vj,LeftTeeVector:Gj,leftthreetimes:Kj,LeftTriangleBar:Wj,LeftTriangle:Zj,LeftTriangleEqual:Yj,LeftUpDownVector:Qj,LeftUpTeeVector:Jj,LeftUpVectorBar:Xj,LeftUpVector:ez,LeftVectorBar:tz,LeftVector:nz,lEg:sz,leg:oz,leq:rz,leqq:iz,leqslant:az,lescc:lz,les:cz,lesdot:uz,lesdoto:dz,lesdotor:hz,lesg:fz,lesges:pz,lessapprox:gz,lessdot:mz,lesseqgtr:_z,lesseqqgtr:bz,LessEqualGreater:yz,LessFullEqual:vz,LessGreater:wz,lessgtr:xz,LessLess:kz,lesssim:Ez,LessSlantEqual:Cz,LessTilde:Az,lfisht:Sz,lfloor:Tz,Lfr:Mz,lfr:Oz,lg:Rz,lgE:Nz,lHar:Dz,lhard:Lz,lharu:Iz,lharul:Pz,lhblk:Fz,LJcy:Bz,ljcy:$z,llarr:jz,ll:zz,Ll:Uz,llcorner:qz,Lleftarrow:Hz,llhard:Vz,lltri:Gz,Lmidot:Kz,lmidot:Wz,lmoustache:Zz,lmoust:Yz,lnap:Qz,lnapprox:Jz,lne:Xz,lnE:eU,lneq:tU,lneqq:nU,lnsim:sU,loang:oU,loarr:rU,lobrk:iU,longleftarrow:aU,LongLeftArrow:lU,Longleftarrow:cU,longleftrightarrow:uU,LongLeftRightArrow:dU,Longleftrightarrow:hU,longmapsto:fU,longrightarrow:pU,LongRightArrow:gU,Longrightarrow:mU,looparrowleft:_U,looparrowright:bU,lopar:yU,Lopf:vU,lopf:wU,loplus:xU,lotimes:kU,lowast:EU,lowbar:CU,LowerLeftArrow:AU,LowerRightArrow:SU,loz:TU,lozenge:MU,lozf:OU,lpar:RU,lparlt:NU,lrarr:DU,lrcorner:LU,lrhar:IU,lrhard:PU,lrm:FU,lrtri:BU,lsaquo:$U,lscr:jU,Lscr:zU,lsh:UU,Lsh:qU,lsim:HU,lsime:VU,lsimg:GU,lsqb:KU,lsquo:WU,lsquor:ZU,Lstrok:YU,lstrok:QU,ltcc:JU,ltcir:XU,lt:eq,LT:tq,Lt:nq,ltdot:sq,lthree:oq,ltimes:rq,ltlarr:iq,ltquest:aq,ltri:lq,ltrie:cq,ltrif:uq,ltrPar:dq,lurdshar:hq,luruhar:fq,lvertneqq:pq,lvnE:gq,macr:mq,male:_q,malt:bq,maltese:yq,Map:"⤅",map:vq,mapsto:wq,mapstodown:xq,mapstoleft:kq,mapstoup:Eq,marker:Cq,mcomma:Aq,Mcy:Sq,mcy:Tq,mdash:Mq,mDDot:Oq,measuredangle:Rq,MediumSpace:Nq,Mellintrf:Dq,Mfr:Lq,mfr:Iq,mho:Pq,micro:Fq,midast:Bq,midcir:$q,mid:jq,middot:zq,minusb:Uq,minus:qq,minusd:Hq,minusdu:Vq,MinusPlus:Gq,mlcp:Kq,mldr:Wq,mnplus:Zq,models:Yq,Mopf:Qq,mopf:Jq,mp:Xq,mscr:eH,Mscr:tH,mstpos:nH,Mu:sH,mu:oH,multimap:rH,mumap:iH,nabla:aH,Nacute:lH,nacute:cH,nang:uH,nap:dH,napE:hH,napid:fH,napos:pH,napprox:gH,natural:mH,naturals:_H,natur:bH,nbsp:yH,nbump:vH,nbumpe:wH,ncap:xH,Ncaron:kH,ncaron:EH,Ncedil:CH,ncedil:AH,ncong:SH,ncongdot:TH,ncup:MH,Ncy:OH,ncy:RH,ndash:NH,nearhk:DH,nearr:LH,neArr:IH,nearrow:PH,ne:FH,nedot:BH,NegativeMediumSpace:$H,NegativeThickSpace:jH,NegativeThinSpace:zH,NegativeVeryThinSpace:UH,nequiv:qH,nesear:HH,nesim:VH,NestedGreaterGreater:GH,NestedLessLess:KH,NewLine:WH,nexist:ZH,nexists:YH,Nfr:QH,nfr:JH,ngE:XH,nge:eV,ngeq:tV,ngeqq:nV,ngeqslant:sV,nges:oV,nGg:rV,ngsim:iV,nGt:aV,ngt:lV,ngtr:cV,nGtv:uV,nharr:dV,nhArr:hV,nhpar:fV,ni:pV,nis:gV,nisd:mV,niv:_V,NJcy:bV,njcy:yV,nlarr:vV,nlArr:wV,nldr:xV,nlE:kV,nle:EV,nleftarrow:CV,nLeftarrow:AV,nleftrightarrow:SV,nLeftrightarrow:TV,nleq:MV,nleqq:OV,nleqslant:RV,nles:NV,nless:DV,nLl:LV,nlsim:IV,nLt:PV,nlt:FV,nltri:BV,nltrie:$V,nLtv:jV,nmid:zV,NoBreak:UV,NonBreakingSpace:qV,nopf:HV,Nopf:VV,Not:GV,not:KV,NotCongruent:WV,NotCupCap:ZV,NotDoubleVerticalBar:YV,NotElement:QV,NotEqual:JV,NotEqualTilde:XV,NotExists:eG,NotGreater:tG,NotGreaterEqual:nG,NotGreaterFullEqual:sG,NotGreaterGreater:oG,NotGreaterLess:rG,NotGreaterSlantEqual:iG,NotGreaterTilde:aG,NotHumpDownHump:lG,NotHumpEqual:cG,notin:uG,notindot:dG,notinE:hG,notinva:fG,notinvb:pG,notinvc:gG,NotLeftTriangleBar:mG,NotLeftTriangle:_G,NotLeftTriangleEqual:bG,NotLess:yG,NotLessEqual:vG,NotLessGreater:wG,NotLessLess:xG,NotLessSlantEqual:kG,NotLessTilde:EG,NotNestedGreaterGreater:CG,NotNestedLessLess:AG,notni:SG,notniva:TG,notnivb:MG,notnivc:OG,NotPrecedes:RG,NotPrecedesEqual:NG,NotPrecedesSlantEqual:DG,NotReverseElement:LG,NotRightTriangleBar:IG,NotRightTriangle:PG,NotRightTriangleEqual:FG,NotSquareSubset:BG,NotSquareSubsetEqual:$G,NotSquareSuperset:jG,NotSquareSupersetEqual:zG,NotSubset:UG,NotSubsetEqual:qG,NotSucceeds:HG,NotSucceedsEqual:VG,NotSucceedsSlantEqual:GG,NotSucceedsTilde:KG,NotSuperset:WG,NotSupersetEqual:ZG,NotTilde:YG,NotTildeEqual:QG,NotTildeFullEqual:JG,NotTildeTilde:XG,NotVerticalBar:eK,nparallel:tK,npar:nK,nparsl:sK,npart:oK,npolint:rK,npr:iK,nprcue:aK,nprec:lK,npreceq:cK,npre:uK,nrarrc:dK,nrarr:hK,nrArr:fK,nrarrw:pK,nrightarrow:gK,nRightarrow:mK,nrtri:_K,nrtrie:bK,nsc:yK,nsccue:vK,nsce:wK,Nscr:xK,nscr:kK,nshortmid:EK,nshortparallel:CK,nsim:AK,nsime:SK,nsimeq:TK,nsmid:MK,nspar:OK,nsqsube:RK,nsqsupe:NK,nsub:DK,nsubE:LK,nsube:IK,nsubset:PK,nsubseteq:FK,nsubseteqq:BK,nsucc:$K,nsucceq:jK,nsup:zK,nsupE:UK,nsupe:qK,nsupset:HK,nsupseteq:VK,nsupseteqq:GK,ntgl:KK,Ntilde:WK,ntilde:ZK,ntlg:YK,ntriangleleft:QK,ntrianglelefteq:JK,ntriangleright:XK,ntrianglerighteq:eW,Nu:tW,nu:nW,num:sW,numero:oW,numsp:rW,nvap:iW,nvdash:aW,nvDash:lW,nVdash:cW,nVDash:uW,nvge:dW,nvgt:hW,nvHarr:fW,nvinfin:pW,nvlArr:gW,nvle:mW,nvlt:_W,nvltrie:bW,nvrArr:yW,nvrtrie:vW,nvsim:wW,nwarhk:xW,nwarr:kW,nwArr:EW,nwarrow:CW,nwnear:AW,Oacute:SW,oacute:TW,oast:MW,Ocirc:OW,ocirc:RW,ocir:NW,Ocy:DW,ocy:LW,odash:IW,Odblac:PW,odblac:FW,odiv:BW,odot:$W,odsold:jW,OElig:zW,oelig:UW,ofcir:qW,Ofr:HW,ofr:VW,ogon:GW,Ograve:KW,ograve:WW,ogt:ZW,ohbar:YW,ohm:QW,oint:JW,olarr:XW,olcir:eZ,olcross:tZ,oline:nZ,olt:sZ,Omacr:oZ,omacr:rZ,Omega:iZ,omega:aZ,Omicron:lZ,omicron:cZ,omid:uZ,ominus:dZ,Oopf:hZ,oopf:fZ,opar:pZ,OpenCurlyDoubleQuote:gZ,OpenCurlyQuote:mZ,operp:_Z,oplus:bZ,orarr:yZ,Or:vZ,or:wZ,ord:xZ,order:kZ,orderof:EZ,ordf:CZ,ordm:AZ,origof:SZ,oror:TZ,orslope:MZ,orv:OZ,oS:RZ,Oscr:NZ,oscr:DZ,Oslash:LZ,oslash:IZ,osol:PZ,Otilde:FZ,otilde:BZ,otimesas:$Z,Otimes:jZ,otimes:zZ,Ouml:UZ,ouml:qZ,ovbar:HZ,OverBar:VZ,OverBrace:GZ,OverBracket:KZ,OverParenthesis:WZ,para:ZZ,parallel:YZ,par:QZ,parsim:JZ,parsl:XZ,part:eY,PartialD:tY,Pcy:nY,pcy:sY,percnt:oY,period:rY,permil:iY,perp:aY,pertenk:lY,Pfr:cY,pfr:uY,Phi:dY,phi:hY,phiv:fY,phmmat:pY,phone:gY,Pi:mY,pi:_Y,pitchfork:bY,piv:yY,planck:vY,planckh:wY,plankv:xY,plusacir:kY,plusb:EY,pluscir:CY,plus:AY,plusdo:SY,plusdu:TY,pluse:MY,PlusMinus:OY,plusmn:RY,plussim:NY,plustwo:DY,pm:LY,Poincareplane:IY,pointint:PY,popf:FY,Popf:BY,pound:$Y,prap:jY,Pr:zY,pr:UY,prcue:qY,precapprox:HY,prec:VY,preccurlyeq:GY,Precedes:KY,PrecedesEqual:WY,PrecedesSlantEqual:ZY,PrecedesTilde:YY,preceq:QY,precnapprox:JY,precneqq:XY,precnsim:eQ,pre:tQ,prE:nQ,precsim:sQ,prime:oQ,Prime:rQ,primes:iQ,prnap:aQ,prnE:lQ,prnsim:cQ,prod:uQ,Product:dQ,profalar:hQ,profline:fQ,profsurf:pQ,prop:gQ,Proportional:mQ,Proportion:_Q,propto:bQ,prsim:yQ,prurel:vQ,Pscr:wQ,pscr:xQ,Psi:kQ,psi:EQ,puncsp:CQ,Qfr:AQ,qfr:SQ,qint:TQ,qopf:MQ,Qopf:OQ,qprime:RQ,Qscr:NQ,qscr:DQ,quaternions:LQ,quatint:IQ,quest:PQ,questeq:FQ,quot:BQ,QUOT:$Q,rAarr:jQ,race:zQ,Racute:UQ,racute:qQ,radic:HQ,raemptyv:VQ,rang:GQ,Rang:KQ,rangd:WQ,range:ZQ,rangle:YQ,raquo:QQ,rarrap:JQ,rarrb:XQ,rarrbfs:eJ,rarrc:tJ,rarr:nJ,Rarr:sJ,rArr:oJ,rarrfs:rJ,rarrhk:iJ,rarrlp:aJ,rarrpl:lJ,rarrsim:cJ,Rarrtl:uJ,rarrtl:dJ,rarrw:hJ,ratail:fJ,rAtail:pJ,ratio:gJ,rationals:mJ,rbarr:_J,rBarr:bJ,RBarr:yJ,rbbrk:vJ,rbrace:wJ,rbrack:xJ,rbrke:kJ,rbrksld:EJ,rbrkslu:CJ,Rcaron:AJ,rcaron:SJ,Rcedil:TJ,rcedil:MJ,rceil:OJ,rcub:RJ,Rcy:NJ,rcy:DJ,rdca:LJ,rdldhar:IJ,rdquo:PJ,rdquor:FJ,rdsh:BJ,real:$J,realine:jJ,realpart:zJ,reals:UJ,Re:qJ,rect:HJ,reg:VJ,REG:GJ,ReverseElement:KJ,ReverseEquilibrium:WJ,ReverseUpEquilibrium:ZJ,rfisht:YJ,rfloor:QJ,rfr:JJ,Rfr:XJ,rHar:eX,rhard:tX,rharu:nX,rharul:sX,Rho:oX,rho:rX,rhov:iX,RightAngleBracket:aX,RightArrowBar:lX,rightarrow:cX,RightArrow:uX,Rightarrow:dX,RightArrowLeftArrow:hX,rightarrowtail:fX,RightCeiling:pX,RightDoubleBracket:gX,RightDownTeeVector:mX,RightDownVectorBar:_X,RightDownVector:bX,RightFloor:yX,rightharpoondown:vX,rightharpoonup:wX,rightleftarrows:xX,rightleftharpoons:kX,rightrightarrows:EX,rightsquigarrow:CX,RightTeeArrow:AX,RightTee:SX,RightTeeVector:TX,rightthreetimes:MX,RightTriangleBar:OX,RightTriangle:RX,RightTriangleEqual:NX,RightUpDownVector:DX,RightUpTeeVector:LX,RightUpVectorBar:IX,RightUpVector:PX,RightVectorBar:FX,RightVector:BX,ring:$X,risingdotseq:jX,rlarr:zX,rlhar:UX,rlm:qX,rmoustache:HX,rmoust:VX,rnmid:GX,roang:KX,roarr:WX,robrk:ZX,ropar:YX,ropf:QX,Ropf:JX,roplus:XX,rotimes:eee,RoundImplies:tee,rpar:nee,rpargt:see,rppolint:oee,rrarr:ree,Rrightarrow:iee,rsaquo:aee,rscr:lee,Rscr:cee,rsh:uee,Rsh:dee,rsqb:hee,rsquo:fee,rsquor:pee,rthree:gee,rtimes:mee,rtri:_ee,rtrie:bee,rtrif:yee,rtriltri:vee,RuleDelayed:wee,ruluhar:xee,rx:kee,Sacute:Eee,sacute:Cee,sbquo:Aee,scap:See,Scaron:Tee,scaron:Mee,Sc:Oee,sc:Ree,sccue:Nee,sce:Dee,scE:Lee,Scedil:Iee,scedil:Pee,Scirc:Fee,scirc:Bee,scnap:$ee,scnE:jee,scnsim:zee,scpolint:Uee,scsim:qee,Scy:Hee,scy:Vee,sdotb:Gee,sdot:Kee,sdote:Wee,searhk:Zee,searr:Yee,seArr:Qee,searrow:Jee,sect:Xee,semi:ete,seswar:tte,setminus:nte,setmn:ste,sext:ote,Sfr:rte,sfr:ite,sfrown:ate,sharp:lte,SHCHcy:cte,shchcy:ute,SHcy:dte,shcy:hte,ShortDownArrow:fte,ShortLeftArrow:pte,shortmid:gte,shortparallel:mte,ShortRightArrow:_te,ShortUpArrow:bte,shy:yte,Sigma:vte,sigma:wte,sigmaf:xte,sigmav:kte,sim:Ete,simdot:Cte,sime:Ate,simeq:Ste,simg:Tte,simgE:Mte,siml:Ote,simlE:Rte,simne:Nte,simplus:Dte,simrarr:Lte,slarr:Ite,SmallCircle:Pte,smallsetminus:Fte,smashp:Bte,smeparsl:$te,smid:jte,smile:zte,smt:Ute,smte:qte,smtes:Hte,SOFTcy:Vte,softcy:Gte,solbar:Kte,solb:Wte,sol:Zte,Sopf:Yte,sopf:Qte,spades:Jte,spadesuit:Xte,spar:ene,sqcap:tne,sqcaps:nne,sqcup:sne,sqcups:one,Sqrt:rne,sqsub:ine,sqsube:ane,sqsubset:lne,sqsubseteq:cne,sqsup:une,sqsupe:dne,sqsupset:hne,sqsupseteq:fne,square:pne,Square:gne,SquareIntersection:mne,SquareSubset:_ne,SquareSubsetEqual:bne,SquareSuperset:yne,SquareSupersetEqual:vne,SquareUnion:wne,squarf:xne,squ:kne,squf:Ene,srarr:Cne,Sscr:Ane,sscr:Sne,ssetmn:Tne,ssmile:Mne,sstarf:One,Star:Rne,star:Nne,starf:Dne,straightepsilon:Lne,straightphi:Ine,strns:Pne,sub:Fne,Sub:Bne,subdot:$ne,subE:jne,sube:zne,subedot:Une,submult:qne,subnE:Hne,subne:Vne,subplus:Gne,subrarr:Kne,subset:Wne,Subset:Zne,subseteq:Yne,subseteqq:Qne,SubsetEqual:Jne,subsetneq:Xne,subsetneqq:ese,subsim:tse,subsub:nse,subsup:sse,succapprox:ose,succ:rse,succcurlyeq:ise,Succeeds:ase,SucceedsEqual:lse,SucceedsSlantEqual:cse,SucceedsTilde:use,succeq:dse,succnapprox:hse,succneqq:fse,succnsim:pse,succsim:gse,SuchThat:mse,sum:_se,Sum:bse,sung:yse,sup1:vse,sup2:wse,sup3:xse,sup:kse,Sup:Ese,supdot:Cse,supdsub:Ase,supE:Sse,supe:Tse,supedot:Mse,Superset:Ose,SupersetEqual:Rse,suphsol:Nse,suphsub:Dse,suplarr:Lse,supmult:Ise,supnE:Pse,supne:Fse,supplus:Bse,supset:$se,Supset:jse,supseteq:zse,supseteqq:Use,supsetneq:qse,supsetneqq:Hse,supsim:Vse,supsub:Gse,supsup:Kse,swarhk:Wse,swarr:Zse,swArr:Yse,swarrow:Qse,swnwar:Jse,szlig:Xse,Tab:eoe,target:toe,Tau:noe,tau:soe,tbrk:ooe,Tcaron:roe,tcaron:ioe,Tcedil:aoe,tcedil:loe,Tcy:coe,tcy:uoe,tdot:doe,telrec:hoe,Tfr:foe,tfr:poe,there4:goe,therefore:moe,Therefore:_oe,Theta:boe,theta:yoe,thetasym:voe,thetav:woe,thickapprox:xoe,thicksim:koe,ThickSpace:Eoe,ThinSpace:Coe,thinsp:Aoe,thkap:Soe,thksim:Toe,THORN:Moe,thorn:Ooe,tilde:Roe,Tilde:Noe,TildeEqual:Doe,TildeFullEqual:Loe,TildeTilde:Ioe,timesbar:Poe,timesb:Foe,times:Boe,timesd:$oe,tint:joe,toea:zoe,topbot:Uoe,topcir:qoe,top:Hoe,Topf:Voe,topf:Goe,topfork:Koe,tosa:Woe,tprime:Zoe,trade:Yoe,TRADE:Qoe,triangle:Joe,triangledown:Xoe,triangleleft:ere,trianglelefteq:tre,triangleq:nre,triangleright:sre,trianglerighteq:ore,tridot:rre,trie:ire,triminus:are,TripleDot:lre,triplus:cre,trisb:ure,tritime:dre,trpezium:hre,Tscr:fre,tscr:pre,TScy:gre,tscy:mre,TSHcy:_re,tshcy:bre,Tstrok:yre,tstrok:vre,twixt:wre,twoheadleftarrow:xre,twoheadrightarrow:kre,Uacute:Ere,uacute:Cre,uarr:Are,Uarr:Sre,uArr:Tre,Uarrocir:Mre,Ubrcy:Ore,ubrcy:Rre,Ubreve:Nre,ubreve:Dre,Ucirc:Lre,ucirc:Ire,Ucy:Pre,ucy:Fre,udarr:Bre,Udblac:$re,udblac:jre,udhar:zre,ufisht:Ure,Ufr:qre,ufr:Hre,Ugrave:Vre,ugrave:Gre,uHar:Kre,uharl:Wre,uharr:Zre,uhblk:Yre,ulcorn:Qre,ulcorner:Jre,ulcrop:Xre,ultri:eie,Umacr:tie,umacr:nie,uml:sie,UnderBar:oie,UnderBrace:rie,UnderBracket:iie,UnderParenthesis:aie,Union:lie,UnionPlus:cie,Uogon:uie,uogon:die,Uopf:hie,uopf:fie,UpArrowBar:pie,uparrow:gie,UpArrow:mie,Uparrow:_ie,UpArrowDownArrow:bie,updownarrow:yie,UpDownArrow:vie,Updownarrow:wie,UpEquilibrium:xie,upharpoonleft:kie,upharpoonright:Eie,uplus:Cie,UpperLeftArrow:Aie,UpperRightArrow:Sie,upsi:Tie,Upsi:Mie,upsih:Oie,Upsilon:Rie,upsilon:Nie,UpTeeArrow:Die,UpTee:Lie,upuparrows:Iie,urcorn:Pie,urcorner:Fie,urcrop:Bie,Uring:$ie,uring:jie,urtri:zie,Uscr:Uie,uscr:qie,utdot:Hie,Utilde:Vie,utilde:Gie,utri:Kie,utrif:Wie,uuarr:Zie,Uuml:Yie,uuml:Qie,uwangle:Jie,vangrt:Xie,varepsilon:eae,varkappa:tae,varnothing:nae,varphi:sae,varpi:oae,varpropto:rae,varr:iae,vArr:aae,varrho:lae,varsigma:cae,varsubsetneq:uae,varsubsetneqq:dae,varsupsetneq:hae,varsupsetneqq:fae,vartheta:pae,vartriangleleft:gae,vartriangleright:mae,vBar:_ae,Vbar:bae,vBarv:yae,Vcy:vae,vcy:wae,vdash:xae,vDash:kae,Vdash:Eae,VDash:Cae,Vdashl:Aae,veebar:Sae,vee:Tae,Vee:Mae,veeeq:Oae,vellip:Rae,verbar:Nae,Verbar:Dae,vert:Lae,Vert:Iae,VerticalBar:Pae,VerticalLine:Fae,VerticalSeparator:Bae,VerticalTilde:$ae,VeryThinSpace:jae,Vfr:zae,vfr:Uae,vltri:qae,vnsub:Hae,vnsup:Vae,Vopf:Gae,vopf:Kae,vprop:Wae,vrtri:Zae,Vscr:Yae,vscr:Qae,vsubnE:Jae,vsubne:Xae,vsupnE:ele,vsupne:tle,Vvdash:nle,vzigzag:sle,Wcirc:ole,wcirc:rle,wedbar:ile,wedge:ale,Wedge:lle,wedgeq:cle,weierp:ule,Wfr:dle,wfr:hle,Wopf:fle,wopf:ple,wp:gle,wr:mle,wreath:_le,Wscr:ble,wscr:yle,xcap:vle,xcirc:wle,xcup:xle,xdtri:kle,Xfr:Ele,xfr:Cle,xharr:Ale,xhArr:Sle,Xi:Tle,xi:Mle,xlarr:Ole,xlArr:Rle,xmap:Nle,xnis:Dle,xodot:Lle,Xopf:Ile,xopf:Ple,xoplus:Fle,xotime:Ble,xrarr:$le,xrArr:jle,Xscr:zle,xscr:Ule,xsqcup:qle,xuplus:Hle,xutri:Vle,xvee:Gle,xwedge:Kle,Yacute:Wle,yacute:Zle,YAcy:Yle,yacy:Qle,Ycirc:Jle,ycirc:Xle,Ycy:ece,ycy:tce,yen:nce,Yfr:sce,yfr:oce,YIcy:rce,yicy:ice,Yopf:ace,yopf:lce,Yscr:cce,yscr:uce,YUcy:dce,yucy:hce,yuml:fce,Yuml:pce,Zacute:gce,zacute:mce,Zcaron:_ce,zcaron:bce,Zcy:yce,zcy:vce,Zdot:wce,zdot:xce,zeetrf:kce,ZeroWidthSpace:Ece,Zeta:Cce,zeta:Ace,zfr:Sce,Zfr:Tce,ZHcy:Mce,zhcy:Oce,zigrarr:Rce,zopf:Nce,Zopf:Dce,Zscr:Lce,zscr:Ice,zwj:Pce,zwnj:Fce};var tg=Bce,nc=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Vs={},Gu={};function $ce(t){var e,n,s=Gu[t];if(s)return s;for(s=Gu[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?s.push(n):s.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e"u"&&(n=!0),a=$ce(e),s=0,o=t.length;s=55296&&r<=57343){if(r>=55296&&r<=56319&&s+1=56320&&i<=57343)){l+=encodeURIComponent(t[s]+t[s+1]),s++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(t[s])}return l}li.defaultChars=";/?:@&=+$,-_.!~*'()#";li.componentChars="-_.!~*'()";var jce=li,Ku={};function zce(t){var e,n,s=Ku[t];if(s)return s;for(s=Ku[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),s.push(n);for(e=0;e=55296&&u<=57343?h+="���":h+=String.fromCharCode(u),o+=6;continue}if((i&248)===240&&o+91114111?h+="����":(u-=65536,h+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),o+=9;continue}h+="�"}return h})}ci.defaultChars=";/?:@&=+$,#";ci.componentChars="";var Uce=ci,qce=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function Ar(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Hce=/^([a-z0-9.+-]+:)/i,Vce=/:[0-9]*$/,Gce=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Kce=["<",">",'"',"`"," ","\r",` +`," "],Wce=["{","}","|","\\","^","`"].concat(Kce),Zce=["'"].concat(Wce),Wu=["%","/","?",";","#"].concat(Zce),Zu=["/","?","#"],Yce=255,Yu=/^[+a-z0-9A-Z_-]{0,63}$/,Qce=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Qu={javascript:!0,"javascript:":!0},Ju={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Jce(t,e){if(t&&t instanceof Ar)return t;var n=new Ar;return n.parse(t,e),n}Ar.prototype.parse=function(t,e){var n,s,o,r,i,a=t;if(a=a.trim(),!e&&t.split("#").length===1){var l=Gce.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=Hce.exec(a);if(c&&(c=c[0],o=c.toLowerCase(),this.protocol=c,a=a.substr(c.length)),(e||c||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)==="//",i&&!(c&&Qu[c])&&(a=a.substr(2),this.slashes=!0)),!Qu[c]&&(i||c&&!Ju[c])){var u=-1;for(n=0;n127?_+="x":_+=v[b];if(!_.match(Yu)){var C=m.slice(0,n),R=m.slice(n+1),O=v.match(Qce);O&&(C.push(O[1]),R.unshift(O[2])),R.length&&(a=R.join(".")+a),this.hostname=C.join(".");break}}}}this.hostname.length>Yce&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=a.indexOf("#");D!==-1&&(this.hash=a.substr(D),a=a.slice(0,D));var y=a.indexOf("?");return y!==-1&&(this.search=a.substr(y),a=a.slice(0,y)),a&&(this.pathname=a),Ju[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Ar.prototype.parseHost=function(t){var e=Vce.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Xce=Jce;Vs.encode=jce;Vs.decode=Uce;Vs.format=qce;Vs.parse=Xce;var Pn={},$i,Xu;function ng(){return Xu||(Xu=1,$i=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),$i}var ji,ed;function sg(){return ed||(ed=1,ji=/[\0-\x1F\x7F-\x9F]/),ji}var zi,td;function eue(){return td||(td=1,zi=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),zi}var Ui,nd;function og(){return nd||(nd=1,Ui=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Ui}var sd;function tue(){return sd||(sd=1,Pn.Any=ng(),Pn.Cc=sg(),Pn.Cf=eue(),Pn.P=nc,Pn.Z=og()),Pn}(function(t){function e(I){return Object.prototype.toString.call(I)}function n(I){return e(I)==="[object String]"}var s=Object.prototype.hasOwnProperty;function o(I,ae){return s.call(I,ae)}function r(I){var ae=Array.prototype.slice.call(arguments,1);return ae.forEach(function(W){if(W){if(typeof W!="object")throw new TypeError(W+"must be object");Object.keys(W).forEach(function(S){I[S]=W[S]})}}),I}function i(I,ae,W){return[].concat(I.slice(0,ae),W,I.slice(ae+1))}function a(I){return!(I>=55296&&I<=57343||I>=64976&&I<=65007||(I&65535)===65535||(I&65535)===65534||I>=0&&I<=8||I===11||I>=14&&I<=31||I>=127&&I<=159||I>1114111)}function l(I){if(I>65535){I-=65536;var ae=55296+(I>>10),W=56320+(I&1023);return String.fromCharCode(ae,W)}return String.fromCharCode(I)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,h=new RegExp(c.source+"|"+u.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,g=tg;function f(I,ae){var W=0;return o(g,ae)?g[ae]:ae.charCodeAt(0)===35&&p.test(ae)&&(W=ae[1].toLowerCase()==="x"?parseInt(ae.slice(2),16):parseInt(ae.slice(1),10),a(W))?l(W):I}function m(I){return I.indexOf("\\")<0?I:I.replace(c,"$1")}function v(I){return I.indexOf("\\")<0&&I.indexOf("&")<0?I:I.replace(h,function(ae,W,S){return W||f(ae,S)})}var _=/[&<>"]/,b=/[&<>"]/g,x={"&":"&","<":"<",">":">",'"':"""};function C(I){return x[I]}function R(I){return _.test(I)?I.replace(b,C):I}var O=/[.?*+^$[\]\\(){}|-]/g;function D(I){return I.replace(O,"\\$&")}function y(I){switch(I){case 9:case 32:return!0}return!1}function k(I){if(I>=8192&&I<=8202)return!0;switch(I){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var T=nc;function L(I){return T.test(I)}function F(I){switch(I){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Q(I){return I=I.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(I=I.replace(/ẞ/g,"ß")),I.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=Vs,t.lib.ucmicro=tue(),t.assign=r,t.isString=n,t.has=o,t.unescapeMd=m,t.unescapeAll=v,t.isValidEntityCode=a,t.fromCodePoint=l,t.escapeHtml=R,t.arrayReplaceAt=i,t.isSpace=y,t.isWhiteSpace=k,t.isMdAsciiPunct=F,t.isPunctChar=L,t.escapeRE=D,t.normalizeReference=Q})(ze);var ui={},nue=function(e,n,s){var o,r,i,a,l=-1,c=e.posMax,u=e.pos;for(e.pos=n+1,o=1;e.pos32))return l;if(o===41){if(r===0)break;r--}n++}return a===n||r!==0||(l.str=od(e.slice(a,n)),l.lines=i,l.pos=n,l.ok=!0),l},oue=ze.unescapeAll,rue=function(e,n,s){var o,r,i=0,a=n,l={ok:!1,pos:0,lines:0,str:""};if(n>=s||(r=e.charCodeAt(n),r!==34&&r!==39&&r!==40))return l;for(n++,r===40&&(r=41);n"+Xn(t[e].content)+""};Jt.code_block=function(t,e,n,s,o){var r=t[e];return""+Xn(t[e].content)+` +`};Jt.fence=function(t,e,n,s,o){var r=t[e],i=r.info?aue(r.info).trim():"",a="",l="",c,u,h,p,g;return i&&(h=i.split(/(\s+)/g),a=h[0],l=h.slice(2).join("")),n.highlight?c=n.highlight(r.content,a,l)||Xn(r.content):c=Xn(r.content),c.indexOf(""+c+` `):"
"+c+`
`};Jt.image=function(t,e,n,s,o){var r=t[e];return r.attrs[r.attrIndex("alt")][1]=o.renderInlineAsText(r.children,n,s),o.renderToken(t,e,n)};Jt.hardbreak=function(t,e,n){return n.xhtmlOut?`
`:`
`};Jt.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`
`:`
`:` -`};Jt.text=function(t,e){return Xn(t[e].content)};Jt.html_block=function(t,e){return t[e].content};Jt.html_inline=function(t,e){return t[e].content};function Gs(){this.rules=sde({},Jt)}Gs.prototype.renderAttrs=function(e){var n,s,o;if(!e.attrs)return"";for(o="",n=0,s=e.attrs.length;n `:">",r)};Gs.prototype.renderInline=function(t,e,n){for(var s,o="",r=this.rules,i=0,a=t.length;i\s]/i.test(t)}function hde(t){return/^<\/a\s*>/i.test(t)}var pde=function(e){var n,s,o,r,i,a,l,c,d,f,p,g,h,m,v,_,b=e.tokens,x;if(e.md.options.linkify){for(s=0,o=b.length;s=0;n--){if(a=r[n],a.type==="link_close"){for(n--;r[n].level!==a.level&&r[n].type!=="link_open";)n--;continue}if(a.type==="html_inline"&&(fde(a.content)&&h>0&&h--,hde(a.content)&&h++),!(h>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(d=a.content,x=e.md.linkify.match(d),l=[],g=a.level,p=0,x.length>0&&x[0].index===0&&n>0&&r[n-1].type==="text_special"&&(x=x.slice(1)),c=0;cp&&(i=new e.Token("text","",0),i.content=d.slice(p,f),i.level=g,l.push(i)),i=new e.Token("link_open","a",1),i.attrs=[["href",v]],i.level=g++,i.markup="linkify",i.info="auto",l.push(i),i=new e.Token("text","",0),i.content=_,i.level=g,l.push(i),i=new e.Token("link_close","a",-1),i.level=--g,i.markup="linkify",i.info="auto",l.push(i),p=x[c].lastIndex);p=0;e--)n=t[e],n.type==="text"&&!s&&(n.content=n.content.replace(mde,bde)),n.type==="link_open"&&n.info==="auto"&&s--,n.type==="link_close"&&n.info==="auto"&&s++}function vde(t){var e,n,s=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!s&&rg.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&s--,n.type==="link_close"&&n.info==="auto"&&s++}var wde=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(gde.test(e.tokens[n].content)&&yde(e.tokens[n].children),rg.test(e.tokens[n].content)&&vde(e.tokens[n].children))},ru=je.isWhiteSpace,iu=je.isPunctChar,au=je.isMdAsciiPunct,xde=/['"]/,lu=/['"]/g,cu="’";function Ko(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function kde(t,e){var n,s,o,r,i,a,l,c,d,f,p,g,h,m,v,_,b,x,C,R,O;for(C=[],n=0;n=0&&!(C[b].level<=l);b--);if(C.length=b+1,s.type==="text"){o=s.content,i=0,a=o.length;e:for(;i=0)d=o.charCodeAt(r.index-1);else for(b=n-1;b>=0&&!(t[b].type==="softbreak"||t[b].type==="hardbreak");b--)if(t[b].content){d=t[b].content.charCodeAt(t[b].content.length-1);break}if(f=32,i=48&&d<=57&&(_=v=!1),v&&_&&(v=p,_=g),!v&&!_){x&&(s.content=Ko(s.content,r.index,cu));continue}if(_){for(b=C.length-1;b>=0&&(c=C[b],!(C[b].level=0;n--)e.tokens[n].type!=="inline"||!xde.test(e.tokens[n].content)||kde(e.tokens[n].children,e)},Cde=function(e){var n,s,o,r,i,a,l=e.tokens;for(n=0,s=l.length;n=0&&(s=this.attrs[n][1]),s};Ks.prototype.attrJoin=function(e,n){var s=this.attrIndex(e);s<0?this.attrPush([e,n]):this.attrs[s][1]=this.attrs[s][1]+" "+n};var oc=Ks,Ade=oc;function ig(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}ig.prototype.Token=Ade;var Sde=ig,Tde=sc,qi=[["normalize",lde],["block",cde],["inline",dde],["linkify",pde],["replacements",wde],["smartquotes",Ede],["text_join",Cde]];function rc(){this.ruler=new Tde;for(var t=0;ts||(d=n+1,e.sCount[d]=4||(a=e.bMarks[d]+e.tShift[d],a>=e.eMarks[d])||(R=e.src.charCodeAt(a++),R!==124&&R!==45&&R!==58)||a>=e.eMarks[d]||(O=e.src.charCodeAt(a++),O!==124&&O!==45&&O!==58&&!Hi(O))||R===45&&Hi(O))return!1;for(;a=4||(f=du(i),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),p=f.length,p===0||p!==h.length))return!1;if(o)return!0;for(b=e.parentType,e.parentType="table",C=e.md.block.ruler.getRules("blockquote"),g=e.push("table_open","table",1),g.map=v=[n,0],g=e.push("thead_open","thead",1),g.map=[n,n+1],g=e.push("tr_open","tr",1),g.map=[n,n+1],l=0;l=4)break;for(f=du(i),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),d===n+2&&(g=e.push("tbody_open","tbody",1),g.map=_=[n+2,0]),g=e.push("tr_open","tr",1),g.map=[d,d+1],l=0;l=4){o++,r=o;continue}break}return e.line=r,i=e.push("code_block","code",0),i.content=e.getLines(n,r,4+e.blkIndent,!1)+` -`,i.map=[n,e.line],!0},Nde=function(e,n,s,o){var r,i,a,l,c,d,f,p=!1,g=e.bMarks[n]+e.tShift[n],h=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||g+3>h||(r=e.src.charCodeAt(g),r!==126&&r!==96)||(c=g,g=e.skipChars(g,r),i=g-c,i<3)||(f=e.src.slice(c,g),a=e.src.slice(g,h),r===96&&a.indexOf(String.fromCharCode(r))>=0))return!1;if(o)return!0;for(l=n;l++,!(l>=s||(g=c=e.bMarks[l]+e.tShift[l],h=e.eMarks[l],g=4)&&(g=e.skipChars(g,r),!(g-c=4||e.src.charCodeAt(T++)!==62)return!1;if(o)return!0;for(l=g=e.sCount[n]+1,e.src.charCodeAt(T)===32?(T++,l++,g++,r=!1,C=!0):e.src.charCodeAt(T)===9?(C=!0,(e.bsCount[n]+g)%4===3?(T++,l++,g++,r=!1):r=!0):C=!1,h=[e.bMarks[n]],e.bMarks[n]=T;T=L,b=[e.sCount[n]],e.sCount[n]=g-l,x=[e.tShift[n]],e.tShift[n]=T-e.bMarks[n],O=e.md.block.ruler.getRules("blockquote"),_=e.parentType,e.parentType="blockquote",p=n+1;p=L));p++){if(e.src.charCodeAt(T++)===62&&!y){for(l=g=e.sCount[p]+1,e.src.charCodeAt(T)===32?(T++,l++,g++,r=!1,C=!0):e.src.charCodeAt(T)===9?(C=!0,(e.bsCount[p]+g)%4===3?(T++,l++,g++,r=!1):r=!0):C=!1,h.push(e.bMarks[p]),e.bMarks[p]=T;T=L,m.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(C?1:0),b.push(e.sCount[p]),e.sCount[p]=g-l,x.push(e.tShift[p]),e.tShift[p]=T-e.bMarks[p];continue}if(d)break;for(R=!1,a=0,c=O.length;a",D.map=f=[n,0],e.md.block.tokenize(e,n,p),D=e.push("blockquote_close","blockquote",-1),D.markup=">",e.lineMax=k,e.parentType=_,f[1]=e.line,a=0;a=4||(r=e.src.charCodeAt(c++),r!==42&&r!==45&&r!==95))return!1;for(i=1;c=r||(n=t.src.charCodeAt(o++),n<48||n>57))return-1;for(;;){if(o>=r)return-1;if(n=t.src.charCodeAt(o++),n>=48&&n<=57){if(o-s>=10)return-1;continue}if(n===41||n===46)break;return-1}return o=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]=e.blkIndent&&(S=!0),(L=hu(e,n))>=0){if(f=!0,Q=e.bMarks[n]+e.tShift[n],_=Number(e.src.slice(Q,L-1)),S&&_!==1)return!1}else if((L=fu(e,n))>=0)f=!1;else return!1;if(S&&e.skipSpaces(L)>=e.eMarks[n])return!1;if(v=e.src.charCodeAt(L-1),o)return!0;for(m=e.tokens.length,f?(W=e.push("ordered_list_open","ol",1),_!==1&&(W.attrs=[["start",_]])):W=e.push("bullet_list_open","ul",1),W.map=h=[n,0],W.markup=String.fromCharCode(v),x=n,F=!1,ae=e.md.block.ruler.getRules("list"),O=e.parentType,e.parentType="list";x=b?c=1:c=C-d,c>4&&(c=1),l=d+c,W=e.push("list_item_open","li",1),W.markup=String.fromCharCode(v),W.map=p=[n,0],f&&(W.info=e.src.slice(Q,L-1)),k=e.tight,y=e.tShift[n],D=e.sCount[n],R=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[n]=i-e.bMarks[n],e.sCount[n]=C,i>=b&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,s):e.md.block.tokenize(e,n,s,!0),(!e.tight||F)&&(q=!1),F=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=R,e.tShift[n]=y,e.sCount[n]=D,e.tight=k,W=e.push("list_item_close","li",-1),W.markup=String.fromCharCode(v),x=n=e.line,p[1]=x,i=e.bMarks[n],x>=s||e.sCount[x]=4)break;for(I=!1,a=0,g=ae.length;a=4||e.src.charCodeAt(O)!==91)return!1;for(;++O3)&&!(e.sCount[y]<0)){for(b=!1,d=0,f=x.length;d"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:C,href:c}),e.parentType=h,e.line=n+R+1),!0)},zde=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ui={},jde="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ude="[^\"'=<>`\\x00-\\x20]+",qde="'[^']*'",Hde='"[^"]*"',Vde="(?:"+Ude+"|"+qde+"|"+Hde+")",Gde="(?:\\s+"+jde+"(?:\\s*=\\s*"+Vde+")?)",lg="<[A-Za-z][A-Za-z0-9\\-]*"+Gde+"*\\s*\\/?>",cg="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Kde="|",Wde="<[?][\\s\\S]*?[?]>",Zde="]*>",Yde="",Qde=new RegExp("^(?:"+lg+"|"+cg+"|"+Kde+"|"+Wde+"|"+Zde+"|"+Yde+")"),Jde=new RegExp("^(?:"+lg+"|"+cg+")");ui.HTML_TAG_RE=Qde;ui.HTML_OPEN_CLOSE_TAG_RE=Jde;var Xde=zde,eue=ui.HTML_OPEN_CLOSE_TAG_RE,ds=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(eue.source+"\\s*$"),/^$/,!1]],tue=function(e,n,s,o){var r,i,a,l,c=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(c)!==60)return!1;for(l=e.src.slice(c,d),r=0;r=4||(r=e.src.charCodeAt(c),r!==35||c>=d))return!1;for(i=1,r=e.src.charCodeAt(++c);r===35&&c6||cc&&pu(e.src.charCodeAt(a-1))&&(d=a),e.line=n+1,l=e.push("heading_open","h"+String(i),1),l.markup="########".slice(0,i),l.map=[n,e.line],l=e.push("inline","",0),l.content=e.src.slice(c,d).trim(),l.map=[n,e.line],l.children=[],l=e.push("heading_close","h"+String(i),-1),l.markup="########".slice(0,i)),!0)},sue=function(e,n,s){var o,r,i,a,l,c,d,f,p,g=n+1,h,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";g3)){if(e.sCount[g]>=e.blkIndent&&(c=e.bMarks[g]+e.tShift[g],d=e.eMarks[g],c=d)))){f=p===61?1:2;break}if(!(e.sCount[g]<0)){for(r=!1,i=0,a=m.length;i3)&&!(e.sCount[c]<0)){for(o=!1,r=0,i=d.length;r0&&this.level++,this.tokens.push(s),s};Xt.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Xt.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;en;)if(!fi(this.src.charCodeAt(--e)))return e+1;return e};Xt.prototype.skipChars=function(e,n){for(var s=this.src.length;es;)if(n!==this.src.charCodeAt(--e))return e+1;return e};Xt.prototype.getLines=function(e,n,s,o){var r,i,a,l,c,d,f,p=e;if(e>=n)return"";for(d=new Array(n-e),r=0;ps?d[r]=new Array(i-s+1).join(" ")+this.src.slice(l,c):d[r]=this.src.slice(l,c)}return d.join("")};Xt.prototype.Token=dg;var rue=Xt,iue=sc,Zo=[["table",Ode,["paragraph","reference"]],["code",Rde],["fence",Nde,["paragraph","reference","blockquote","list"]],["blockquote",Dde,["paragraph","reference","blockquote","list"]],["hr",Ide,["paragraph","reference","blockquote","list"]],["list",Fde,["paragraph","reference","blockquote"]],["reference",$de],["html_block",tue,["paragraph","reference","blockquote"]],["heading",nue,["paragraph","reference","blockquote"]],["lheading",sue],["paragraph",oue]];function hi(){this.ruler=new iue;for(var t=0;t=n||t.sCount[a]=c){t.line=n;break}for(o=0;o0||(s=e.pos,o=e.posMax,s+3>o)||e.src.charCodeAt(s)!==58||e.src.charCodeAt(s+1)!==47||e.src.charCodeAt(s+2)!==47||(r=e.pending.match(due),!r)||(i=r[1],a=e.md.linkify.matchAtStart(e.src.slice(s-i.length)),!a)||(l=a.url,l=l.replace(/\*+$/,""),c=e.md.normalizeLink(l),!e.md.validateLink(c))?!1:(n||(e.pending=e.pending.slice(0,-i.length),d=e.push("link_open","a",1),d.attrs=[["href",c]],d.markup="linkify",d.info="auto",d=e.push("text","",0),d.content=e.md.normalizeLinkText(l),d=e.push("link_close","a",-1),d.markup="linkify",d.info="auto"),e.pos+=l.length-i.length,!0)},fue=je.isSpace,hue=function(e,n){var s,o,r,i=e.pos;if(e.src.charCodeAt(i)!==10)return!1;if(s=e.pending.length-1,o=e.posMax,!n)if(s>=0&&e.pending.charCodeAt(s)===32)if(s>=1&&e.pending.charCodeAt(s-1)===32){for(r=s-1;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(i++;i?@[]^_`{|}~-".split("").forEach(function(t){ic[t.charCodeAt(0)]=1});var gue=function(e,n){var s,o,r,i,a,l=e.pos,c=e.posMax;if(e.src.charCodeAt(l)!==92||(l++,l>=c))return!1;if(s=e.src.charCodeAt(l),s===10){for(n||e.push("hardbreak","br",0),l++;l=55296&&s<=56319&&l+1=56320&&o<=57343&&(i+=e.src[l+1],l++)),r="\\"+i,n||(a=e.push("text_special","",0),s<256&&ic[s]!==0?a.content=i:a.content=r,a.markup=r,a.info="escape"),e.pos=l+1,!0},mue=function(e,n){var s,o,r,i,a,l,c,d,f=e.pos,p=e.src.charCodeAt(f);if(p!==96)return!1;for(s=f,f++,o=e.posMax;f=0;n--)s=e[n],!(s.marker!==95&&s.marker!==42)&&s.end!==-1&&(o=e[s.end],a=n>0&&e[n-1].end===s.end+1&&e[n-1].marker===s.marker&&e[n-1].token===s.token-1&&e[s.end+1].token===o.token+1,i=String.fromCharCode(s.marker),r=t.tokens[s.token],r.type=a?"strong_open":"em_open",r.tag=a?"strong":"em",r.nesting=1,r.markup=a?i+i:i,r.content="",r=t.tokens[o.token],r.type=a?"strong_close":"em_close",r.tag=a?"strong":"em",r.nesting=-1,r.markup=a?i+i:i,r.content="",a&&(t.tokens[e[n-1].token].content="",t.tokens[e[s.end+1].token].content="",n--))}gi.postProcess=function(e){var n,s=e.tokens_meta,o=e.tokens_meta.length;for(_u(e,e.delimiters),n=0;n=m)return!1;if(v=l,c=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),c.ok){for(p=e.md.normalizeLink(c.str),e.md.validateLink(p)?l=c.pos:p="",v=l;l=m||e.src.charCodeAt(l)!==41)&&(_=!0),l++}if(_){if(typeof e.env.references>"u")return!1;if(l=0?r=e.src.slice(v,l++):l=i+1):l=i+1,r||(r=e.src.slice(a,i)),d=e.env.references[_ue(r)],!d)return e.pos=h,!1;p=d.href,g=d.title}return n||(e.pos=a,e.posMax=i,f=e.push("link_open","a",1),f.attrs=s=[["href",p]],g&&s.push(["title",g]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,f=e.push("link_close","a",-1)),e.pos=l,e.posMax=m,!0},yue=je.normalizeReference,Ki=je.isSpace,vue=function(e,n){var s,o,r,i,a,l,c,d,f,p,g,h,m,v="",_=e.pos,b=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(l=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(c=a+1,c=b)return!1;for(m=c,f=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),f.ok&&(v=e.md.normalizeLink(f.str),e.md.validateLink(v)?c=f.pos:v=""),m=c;c=b||e.src.charCodeAt(c)!==41)return e.pos=_,!1;c++}else{if(typeof e.env.references>"u")return!1;if(c=0?i=e.src.slice(m,c++):c=a+1):c=a+1,i||(i=e.src.slice(l,a)),d=e.env.references[yue(i)],!d)return e.pos=_,!1;v=d.href,p=d.title}return n||(r=e.src.slice(l,a),e.md.inline.parse(r,e.md,e.env,h=[]),g=e.push("image","img",0),g.attrs=s=[["src",v],["alt",""]],g.children=h,g.content=r,p&&s.push(["title",p])),e.pos=c,e.posMax=b,!0},wue=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,xue=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,kue=function(e,n){var s,o,r,i,a,l,c=e.pos;if(e.src.charCodeAt(c)!==60)return!1;for(a=e.pos,l=e.posMax;;){if(++c>=l||(i=e.src.charCodeAt(c),i===60))return!1;if(i===62)break}return s=e.src.slice(a+1,c),xue.test(s)?(o=e.md.normalizeLink(s),e.md.validateLink(o)?(n||(r=e.push("link_open","a",1),r.attrs=[["href",o]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(s),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=s.length+2,!0):!1):wue.test(s)?(o=e.md.normalizeLink("mailto:"+s),e.md.validateLink(o)?(n||(r=e.push("link_open","a",1),r.attrs=[["href",o]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(s),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=s.length+2,!0):!1):!1},Eue=ui.HTML_TAG_RE;function Cue(t){return/^\s]/i.test(t)}function Aue(t){return/^<\/a\s*>/i.test(t)}function Sue(t){var e=t|32;return e>=97&&e<=122}var Tue=function(e,n){var s,o,r,i,a=e.pos;return!e.md.options.html||(r=e.posMax,e.src.charCodeAt(a)!==60||a+2>=r)||(s=e.src.charCodeAt(a+1),s!==33&&s!==63&&s!==47&&!Sue(s))||(o=e.src.slice(a).match(Eue),!o)?!1:(n||(i=e.push("html_inline","",0),i.content=e.src.slice(a,a+o[0].length),Cue(i.content)&&e.linkLevel++,Aue(i.content)&&e.linkLevel--),e.pos+=o[0].length,!0)},bu=tg,Mue=je.has,Oue=je.isValidEntityCode,yu=je.fromCodePoint,Rue=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Nue=/^&([a-z][a-z0-9]{1,31});/i,Due=function(e,n){var s,o,r,i,a=e.pos,l=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=l)return!1;if(s=e.src.charCodeAt(a+1),s===35){if(r=e.src.slice(a).match(Rue),r)return n||(o=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),i=e.push("text_special","",0),i.content=Oue(o)?yu(o):yu(65533),i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0}else if(r=e.src.slice(a).match(Nue),r&&Mue(bu,r[1]))return n||(i=e.push("text_special","",0),i.content=bu[r[1]],i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0;return!1};function vu(t,e){var n,s,o,r,i,a,l,c,d={},f=e.length;if(f){var p=0,g=-2,h=[];for(n=0;ni;s-=h[s]+1)if(r=e[s],r.marker===o.marker&&r.open&&r.end<0&&(l=!1,(r.close||o.open)&&(r.length+o.length)%3===0&&(r.length%3!==0||o.length%3!==0)&&(l=!0),!l)){c=s>0&&!e[s-1].open?h[s-1]+1:0,h[n]=n-s+c,h[s]=c,o.open=!1,r.end=n,r.close=!1,a=-1,g=-2;break}a!==-1&&(d[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var Lue=function(e){var n,s=e.tokens_meta,o=e.tokens_meta.length;for(vu(e,e.delimiters),n=0;n0&&o++,r[n].type==="text"&&n+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(s),this.tokens_meta.push(o),s};Lo.prototype.scanDelims=function(t,e){var n=t,s,o,r,i,a,l,c,d,f,p=!0,g=!0,h=this.posMax,m=this.src.charCodeAt(t);for(s=t>0?this.src.charCodeAt(t-1):32;n=r)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Io.prototype.parse=function(t,e,n,s){var o,r,i,a=new this.State(t,e,n,s);for(this.tokenize(a),r=this.ruler2.getRules(""),i=r.length,o=0;o|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Yi}function cl(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(s){t[s]=n[s]})}),t}function mi(t){return Object.prototype.toString.call(t)}function $ue(t){return mi(t)==="[object String]"}function zue(t){return mi(t)==="[object Object]"}function jue(t){return mi(t)==="[object RegExp]"}function Au(t){return mi(t)==="[object Function]"}function Uue(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var ug={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function que(t){return Object.keys(t||{}).reduce(function(e,n){return e||ug.hasOwnProperty(n)},!1)}var Hue={"http:":{validate:function(t,e,n){var s=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(s)?s.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var s=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(s)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:s.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var s=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(s)?s.match(n.re.mailto)[0].length:0}}},Vue="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Gue="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Kue(t){t.__index__=-1,t.__text_cache__=""}function Wue(t){return function(e,n){var s=e.slice(n);return t.test(s)?s.match(t)[0].length:0}}function Su(){return function(t,e){e.normalize(t)}}function Sr(t){var e=t.re=Bue()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Vue),n.push(e.src_xn),e.src_tlds=n.join("|");function s(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(s(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(s(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(s(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(s(e.tpl_host_fuzzy_test),"i");var o=[];t.__compiled__={};function r(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(t.__schemas__).forEach(function(a){var l=t.__schemas__[a];if(l!==null){var c={validate:null,link:null};if(t.__compiled__[a]=c,zue(l)){jue(l.validate)?c.validate=Wue(l.validate):Au(l.validate)?c.validate=l.validate:r(a,l),Au(l.normalize)?c.normalize=l.normalize:l.normalize?r(a,l):c.normalize=Su();return}if($ue(l)){o.push(a);return}r(a,l)}}),o.forEach(function(a){t.__compiled__[t.__schemas__[a]]&&(t.__compiled__[a].validate=t.__compiled__[t.__schemas__[a]].validate,t.__compiled__[a].normalize=t.__compiled__[t.__schemas__[a]].normalize)}),t.__compiled__[""]={validate:null,normalize:Su()};var i=Object.keys(t.__compiled__).filter(function(a){return a.length>0&&t.__compiled__[a]}).map(Uue).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+i+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+i+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),Kue(t)}function Zue(t,e){var n=t.__index__,s=t.__last_index__,o=t.__text_cache__.slice(n,s);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=s+e,this.raw=o,this.text=o,this.url=o}function dl(t,e){var n=new Zue(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function _t(t,e){if(!(this instanceof _t))return new _t(t,e);e||que(t)&&(e=t,t={}),this.__opts__=cl({},ug,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=cl({},Hue,t),this.__compiled__={},this.__tlds__=Gue,this.__tlds_replaced__=!1,this.re={},Sr(this)}_t.prototype.add=function(e,n){return this.__schemas__[e]=n,Sr(this),this};_t.prototype.set=function(e){return this.__opts__=cl(this.__opts__,e),this};_t.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,s,o,r,i,a,l,c,d;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(e))!==null;)if(r=this.testSchemaAt(e,n[2],l.lastIndex),r){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c=0&&(o=e.match(this.re.email_fuzzy))!==null&&(i=o.index+o[1].length,a=o.index+o[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a))),this.__index__>=0};_t.prototype.pretest=function(e){return this.re.pretest.test(e)};_t.prototype.testSchemaAt=function(e,n,s){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,s,this):0};_t.prototype.match=function(e){var n=0,s=[];this.__index__>=0&&this.__text_cache__===e&&(s.push(dl(this,n)),n=this.__last_index__);for(var o=n?e.slice(n):e;this.test(o);)s.push(dl(this,n)),o=o.slice(this.__last_index__),n+=this.__last_index__;return s.length?s:null};_t.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var s=this.testSchemaAt(e,n[2],n[0].length);return s?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s,dl(this,0)):null};_t.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(s,o,r){return s!==r[o-1]}).reverse(),Sr(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Sr(this),this)};_t.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};_t.prototype.onCompile=function(){};var Yue=_t;const xs=2147483647,Vt=36,lc=1,Co=26,Que=38,Jue=700,fg=72,hg=128,pg="-",Xue=/^xn--/,efe=/[^\0-\x7F]/,tfe=/[\x2E\u3002\uFF0E\uFF61]/g,nfe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Qi=Vt-lc,Gt=Math.floor,Ji=String.fromCharCode;function vn(t){throw new RangeError(nfe[t])}function sfe(t,e){const n=[];let s=t.length;for(;s--;)n[s]=e(t[s]);return n}function gg(t,e){const n=t.split("@");let s="";n.length>1&&(s=n[0]+"@",t=n[1]),t=t.replace(tfe,".");const o=t.split("."),r=sfe(o,e).join(".");return s+r}function cc(t){const e=[];let n=0;const s=t.length;for(;n=55296&&o<=56319&&nString.fromCodePoint(...t),ofe=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Vt},Tu=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},_g=function(t,e,n){let s=0;for(t=n?Gt(t/Jue):t>>1,t+=Gt(t/e);t>Qi*Co>>1;s+=Vt)t=Gt(t/Qi);return Gt(s+(Qi+1)*t/(t+Que))},dc=function(t){const e=[],n=t.length;let s=0,o=hg,r=fg,i=t.lastIndexOf(pg);i<0&&(i=0);for(let a=0;a=128&&vn("not-basic"),e.push(t.charCodeAt(a));for(let a=i>0?i+1:0;a=n&&vn("invalid-input");const p=ofe(t.charCodeAt(a++));p>=Vt&&vn("invalid-input"),p>Gt((xs-s)/d)&&vn("overflow"),s+=p*d;const g=f<=r?lc:f>=r+Co?Co:f-r;if(pGt(xs/h)&&vn("overflow"),d*=h}const c=e.length+1;r=_g(s-l,c,l==0),Gt(s/c)>xs-o&&vn("overflow"),o+=Gt(s/c),s%=c,e.splice(s++,0,o)}return String.fromCodePoint(...e)},uc=function(t){const e=[];t=cc(t);const n=t.length;let s=hg,o=0,r=fg;for(const l of t)l<128&&e.push(Ji(l));const i=e.length;let a=i;for(i&&e.push(pg);a=s&&dGt((xs-o)/c)&&vn("overflow"),o+=(l-s)*c,s=l;for(const d of t)if(dxs&&vn("overflow"),d===s){let f=o;for(let p=Vt;;p+=Vt){const g=p<=r?lc:p>=r+Co?Co:p-r;if(f=0))try{e.hostname=vg.toASCII(e.hostname)}catch{}return Gn.encode(Gn.format(e))}function xfe(t){var e=Gn.parse(t,!0);if(e.hostname&&(!e.protocol||wg.indexOf(e.protocol)>=0))try{e.hostname=vg.toUnicode(e.hostname)}catch{}return Gn.decode(Gn.format(e),Gn.decode.defaultChars+"%")}function At(t,e){if(!(this instanceof At))return new At(t,e);e||ao.isString(t)||(e=t||{},t="default"),this.inline=new gfe,this.block=new pfe,this.core=new hfe,this.renderer=new ffe,this.linkify=new mfe,this.validateLink=vfe,this.normalizeLink=wfe,this.normalizeLinkText=xfe,this.utils=ao,this.helpers=ao.assign({},ufe),this.options={},this.configure(t),e&&this.set(e)}At.prototype.set=function(t){return ao.assign(this.options,t),this};At.prototype.configure=function(t){var e=this,n;if(ao.isString(t)&&(n=t,t=_fe[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(s){t.components[s].rules&&e[s].ruler.enableOnly(t.components[s].rules),t.components[s].rules2&&e[s].ruler2.enableOnly(t.components[s].rules2)}),this};At.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var s=t.filter(function(o){return n.indexOf(o)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+s);return this};At.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var s=t.filter(function(o){return n.indexOf(o)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+s);return this};At.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};At.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};At.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};At.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};At.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var kfe=At,Efe=kfe;const Cfe=rs(Efe),Afe="😀",Sfe="😃",Tfe="😄",Mfe="😁",Ofe="😆",Rfe="😆",Nfe="😅",Dfe="🤣",Lfe="😂",Ife="🙂",Pfe="🙃",Ffe="😉",Bfe="😊",$fe="😇",zfe="🥰",jfe="😍",Ufe="🤩",qfe="😘",Hfe="😗",Vfe="☺️",Gfe="😚",Kfe="😙",Wfe="🥲",Zfe="😋",Yfe="😛",Qfe="😜",Jfe="🤪",Xfe="😝",ehe="🤑",the="🤗",nhe="🤭",she="🤫",ohe="🤔",rhe="🤐",ihe="🤨",ahe="😐",lhe="😑",che="😶",dhe="😏",uhe="😒",fhe="🙄",hhe="😬",phe="🤥",ghe="😌",mhe="😔",_he="😪",bhe="🤤",yhe="😴",vhe="😷",whe="🤒",xhe="🤕",khe="🤢",Ehe="🤮",Che="🤧",Ahe="🥵",She="🥶",The="🥴",Mhe="😵",Ohe="🤯",Rhe="🤠",Nhe="🥳",Dhe="🥸",Lhe="😎",Ihe="🤓",Phe="🧐",Fhe="😕",Bhe="😟",$he="🙁",zhe="☹️",jhe="😮",Uhe="😯",qhe="😲",Hhe="😳",Vhe="🥺",Ghe="😦",Khe="😧",Whe="😨",Zhe="😰",Yhe="😥",Qhe="😢",Jhe="😭",Xhe="😱",epe="😖",tpe="😣",npe="😞",spe="😓",ope="😩",rpe="😫",ipe="🥱",ape="😤",lpe="😡",cpe="😡",dpe="😠",upe="🤬",fpe="😈",hpe="👿",ppe="💀",gpe="☠️",mpe="💩",_pe="💩",bpe="💩",ype="🤡",vpe="👹",wpe="👺",xpe="👻",kpe="👽",Epe="👾",Cpe="🤖",Ape="😺",Spe="😸",Tpe="😹",Mpe="😻",Ope="😼",Rpe="😽",Npe="🙀",Dpe="😿",Lpe="😾",Ipe="🙈",Ppe="🙉",Fpe="🙊",Bpe="💋",$pe="💌",zpe="💘",jpe="💝",Upe="💖",qpe="💗",Hpe="💓",Vpe="💞",Gpe="💕",Kpe="💟",Wpe="❣️",Zpe="💔",Ype="❤️",Qpe="🧡",Jpe="💛",Xpe="💚",ege="💙",tge="💜",nge="🤎",sge="🖤",oge="🤍",rge="💢",ige="💥",age="💥",lge="💫",cge="💦",dge="💨",uge="🕳️",fge="💣",hge="💬",pge="👁️‍🗨️",gge="🗨️",mge="🗯️",_ge="💭",bge="💤",yge="👋",vge="🤚",wge="🖐️",xge="✋",kge="✋",Ege="🖖",Cge="👌",Age="🤌",Sge="🤏",Tge="✌️",Mge="🤞",Oge="🤟",Rge="🤘",Nge="🤙",Dge="👈",Lge="👉",Ige="👆",Pge="🖕",Fge="🖕",Bge="👇",$ge="☝️",zge="👍",jge="👎",Uge="✊",qge="✊",Hge="👊",Vge="👊",Gge="👊",Kge="🤛",Wge="🤜",Zge="👏",Yge="🙌",Qge="👐",Jge="🤲",Xge="🤝",eme="🙏",tme="✍️",nme="💅",sme="🤳",ome="💪",rme="🦾",ime="🦿",ame="🦵",lme="🦶",cme="👂",dme="🦻",ume="👃",fme="🧠",hme="🫀",pme="🫁",gme="🦷",mme="🦴",_me="👀",bme="👁️",yme="👅",vme="👄",wme="👶",xme="🧒",kme="👦",Eme="👧",Cme="🧑",Ame="👱",Sme="👨",Tme="🧔",Mme="👨‍🦰",Ome="👨‍🦱",Rme="👨‍🦳",Nme="👨‍🦲",Dme="👩",Lme="👩‍🦰",Ime="🧑‍🦰",Pme="👩‍🦱",Fme="🧑‍🦱",Bme="👩‍🦳",$me="🧑‍🦳",zme="👩‍🦲",jme="🧑‍🦲",Ume="👱‍♀️",qme="👱‍♀️",Hme="👱‍♂️",Vme="🧓",Gme="👴",Kme="👵",Wme="🙍",Zme="🙍‍♂️",Yme="🙍‍♀️",Qme="🙎",Jme="🙎‍♂️",Xme="🙎‍♀️",e_e="🙅",t_e="🙅‍♂️",n_e="🙅‍♂️",s_e="🙅‍♀️",o_e="🙅‍♀️",r_e="🙆",i_e="🙆‍♂️",a_e="🙆‍♀️",l_e="💁",c_e="💁",d_e="💁‍♂️",u_e="💁‍♂️",f_e="💁‍♀️",h_e="💁‍♀️",p_e="🙋",g_e="🙋‍♂️",m_e="🙋‍♀️",__e="🧏",b_e="🧏‍♂️",y_e="🧏‍♀️",v_e="🙇",w_e="🙇‍♂️",x_e="🙇‍♀️",k_e="🤦",E_e="🤦‍♂️",C_e="🤦‍♀️",A_e="🤷",S_e="🤷‍♂️",T_e="🤷‍♀️",M_e="🧑‍⚕️",O_e="👨‍⚕️",R_e="👩‍⚕️",N_e="🧑‍🎓",D_e="👨‍🎓",L_e="👩‍🎓",I_e="🧑‍🏫",P_e="👨‍🏫",F_e="👩‍🏫",B_e="🧑‍⚖️",$_e="👨‍⚖️",z_e="👩‍⚖️",j_e="🧑‍🌾",U_e="👨‍🌾",q_e="👩‍🌾",H_e="🧑‍🍳",V_e="👨‍🍳",G_e="👩‍🍳",K_e="🧑‍🔧",W_e="👨‍🔧",Z_e="👩‍🔧",Y_e="🧑‍🏭",Q_e="👨‍🏭",J_e="👩‍🏭",X_e="🧑‍💼",e1e="👨‍💼",t1e="👩‍💼",n1e="🧑‍🔬",s1e="👨‍🔬",o1e="👩‍🔬",r1e="🧑‍💻",i1e="👨‍💻",a1e="👩‍💻",l1e="🧑‍🎤",c1e="👨‍🎤",d1e="👩‍🎤",u1e="🧑‍🎨",f1e="👨‍🎨",h1e="👩‍🎨",p1e="🧑‍✈️",g1e="👨‍✈️",m1e="👩‍✈️",_1e="🧑‍🚀",b1e="👨‍🚀",y1e="👩‍🚀",v1e="🧑‍🚒",w1e="👨‍🚒",x1e="👩‍🚒",k1e="👮",E1e="👮",C1e="👮‍♂️",A1e="👮‍♀️",S1e="🕵️",T1e="🕵️‍♂️",M1e="🕵️‍♀️",O1e="💂",R1e="💂‍♂️",N1e="💂‍♀️",D1e="🥷",L1e="👷",I1e="👷‍♂️",P1e="👷‍♀️",F1e="🤴",B1e="👸",$1e="👳",z1e="👳‍♂️",j1e="👳‍♀️",U1e="👲",q1e="🧕",H1e="🤵",V1e="🤵‍♂️",G1e="🤵‍♀️",K1e="👰",W1e="👰‍♂️",Z1e="👰‍♀️",Y1e="👰‍♀️",Q1e="🤰",J1e="🤱",X1e="👩‍🍼",e0e="👨‍🍼",t0e="🧑‍🍼",n0e="👼",s0e="🎅",o0e="🤶",r0e="🧑‍🎄",i0e="🦸",a0e="🦸‍♂️",l0e="🦸‍♀️",c0e="🦹",d0e="🦹‍♂️",u0e="🦹‍♀️",f0e="🧙",h0e="🧙‍♂️",p0e="🧙‍♀️",g0e="🧚",m0e="🧚‍♂️",_0e="🧚‍♀️",b0e="🧛",y0e="🧛‍♂️",v0e="🧛‍♀️",w0e="🧜",x0e="🧜‍♂️",k0e="🧜‍♀️",E0e="🧝",C0e="🧝‍♂️",A0e="🧝‍♀️",S0e="🧞",T0e="🧞‍♂️",M0e="🧞‍♀️",O0e="🧟",R0e="🧟‍♂️",N0e="🧟‍♀️",D0e="💆",L0e="💆‍♂️",I0e="💆‍♀️",P0e="💇",F0e="💇‍♂️",B0e="💇‍♀️",$0e="🚶",z0e="🚶‍♂️",j0e="🚶‍♀️",U0e="🧍",q0e="🧍‍♂️",H0e="🧍‍♀️",V0e="🧎",G0e="🧎‍♂️",K0e="🧎‍♀️",W0e="🧑‍🦯",Z0e="👨‍🦯",Y0e="👩‍🦯",Q0e="🧑‍🦼",J0e="👨‍🦼",X0e="👩‍🦼",ebe="🧑‍🦽",tbe="👨‍🦽",nbe="👩‍🦽",sbe="🏃",obe="🏃",rbe="🏃‍♂️",ibe="🏃‍♀️",abe="💃",lbe="💃",cbe="🕺",dbe="🕴️",ube="👯",fbe="👯‍♂️",hbe="👯‍♀️",pbe="🧖",gbe="🧖‍♂️",mbe="🧖‍♀️",_be="🧗",bbe="🧗‍♂️",ybe="🧗‍♀️",vbe="🤺",wbe="🏇",xbe="⛷️",kbe="🏂",Ebe="🏌️",Cbe="🏌️‍♂️",Abe="🏌️‍♀️",Sbe="🏄",Tbe="🏄‍♂️",Mbe="🏄‍♀️",Obe="🚣",Rbe="🚣‍♂️",Nbe="🚣‍♀️",Dbe="🏊",Lbe="🏊‍♂️",Ibe="🏊‍♀️",Pbe="⛹️",Fbe="⛹️‍♂️",Bbe="⛹️‍♂️",$be="⛹️‍♀️",zbe="⛹️‍♀️",jbe="🏋️",Ube="🏋️‍♂️",qbe="🏋️‍♀️",Hbe="🚴",Vbe="🚴‍♂️",Gbe="🚴‍♀️",Kbe="🚵",Wbe="🚵‍♂️",Zbe="🚵‍♀️",Ybe="🤸",Qbe="🤸‍♂️",Jbe="🤸‍♀️",Xbe="🤼",eye="🤼‍♂️",tye="🤼‍♀️",nye="🤽",sye="🤽‍♂️",oye="🤽‍♀️",rye="🤾",iye="🤾‍♂️",aye="🤾‍♀️",lye="🤹",cye="🤹‍♂️",dye="🤹‍♀️",uye="🧘",fye="🧘‍♂️",hye="🧘‍♀️",pye="🛀",gye="🛌",mye="🧑‍🤝‍🧑",_ye="👭",bye="👫",yye="👬",vye="💏",wye="👩‍❤️‍💋‍👨",xye="👨‍❤️‍💋‍👨",kye="👩‍❤️‍💋‍👩",Eye="💑",Cye="👩‍❤️‍👨",Aye="👨‍❤️‍👨",Sye="👩‍❤️‍👩",Tye="👪",Mye="👨‍👩‍👦",Oye="👨‍👩‍👧",Rye="👨‍👩‍👧‍👦",Nye="👨‍👩‍👦‍👦",Dye="👨‍👩‍👧‍👧",Lye="👨‍👨‍👦",Iye="👨‍👨‍👧",Pye="👨‍👨‍👧‍👦",Fye="👨‍👨‍👦‍👦",Bye="👨‍👨‍👧‍👧",$ye="👩‍👩‍👦",zye="👩‍👩‍👧",jye="👩‍👩‍👧‍👦",Uye="👩‍👩‍👦‍👦",qye="👩‍👩‍👧‍👧",Hye="👨‍👦",Vye="👨‍👦‍👦",Gye="👨‍👧",Kye="👨‍👧‍👦",Wye="👨‍👧‍👧",Zye="👩‍👦",Yye="👩‍👦‍👦",Qye="👩‍👧",Jye="👩‍👧‍👦",Xye="👩‍👧‍👧",e2e="🗣️",t2e="👤",n2e="👥",s2e="🫂",o2e="👣",r2e="🐵",i2e="🐒",a2e="🦍",l2e="🦧",c2e="🐶",d2e="🐕",u2e="🦮",f2e="🐕‍🦺",h2e="🐩",p2e="🐺",g2e="🦊",m2e="🦝",_2e="🐱",b2e="🐈",y2e="🐈‍⬛",v2e="🦁",w2e="🐯",x2e="🐅",k2e="🐆",E2e="🐴",C2e="🐎",A2e="🦄",S2e="🦓",T2e="🦌",M2e="🦬",O2e="🐮",R2e="🐂",N2e="🐃",D2e="🐄",L2e="🐷",I2e="🐖",P2e="🐗",F2e="🐽",B2e="🐏",$2e="🐑",z2e="🐐",j2e="🐪",U2e="🐫",q2e="🦙",H2e="🦒",V2e="🐘",G2e="🦣",K2e="🦏",W2e="🦛",Z2e="🐭",Y2e="🐁",Q2e="🐀",J2e="🐹",X2e="🐰",eve="🐇",tve="🐿️",nve="🦫",sve="🦔",ove="🦇",rve="🐻",ive="🐻‍❄️",ave="🐨",lve="🐼",cve="🦥",dve="🦦",uve="🦨",fve="🦘",hve="🦡",pve="🐾",gve="🐾",mve="🦃",_ve="🐔",bve="🐓",yve="🐣",vve="🐤",wve="🐥",xve="🐦",kve="🐧",Eve="🕊️",Cve="🦅",Ave="🦆",Sve="🦢",Tve="🦉",Mve="🦤",Ove="🪶",Rve="🦩",Nve="🦚",Dve="🦜",Lve="🐸",Ive="🐊",Pve="🐢",Fve="🦎",Bve="🐍",$ve="🐲",zve="🐉",jve="🦕",Uve="🐳",qve="🐋",Hve="🐬",Vve="🐬",Gve="🦭",Kve="🐟",Wve="🐠",Zve="🐡",Yve="🦈",Qve="🐙",Jve="🐚",Xve="🐌",ewe="🦋",twe="🐛",nwe="🐜",swe="🐝",owe="🐝",rwe="🪲",iwe="🐞",awe="🦗",lwe="🪳",cwe="🕷️",dwe="🕸️",uwe="🦂",fwe="🦟",hwe="🪰",pwe="🪱",gwe="🦠",mwe="💐",_we="🌸",bwe="💮",ywe="🏵️",vwe="🌹",wwe="🥀",xwe="🌺",kwe="🌻",Ewe="🌼",Cwe="🌷",Awe="🌱",Swe="🪴",Twe="🌲",Mwe="🌳",Owe="🌴",Rwe="🌵",Nwe="🌾",Dwe="🌿",Lwe="☘️",Iwe="🍀",Pwe="🍁",Fwe="🍂",Bwe="🍃",$we="🍇",zwe="🍈",jwe="🍉",Uwe="🍊",qwe="🍊",Hwe="🍊",Vwe="🍋",Gwe="🍌",Kwe="🍍",Wwe="🥭",Zwe="🍎",Ywe="🍏",Qwe="🍐",Jwe="🍑",Xwe="🍒",exe="🍓",txe="🫐",nxe="🥝",sxe="🍅",oxe="🫒",rxe="🥥",ixe="🥑",axe="🍆",lxe="🥔",cxe="🥕",dxe="🌽",uxe="🌶️",fxe="🫑",hxe="🥒",pxe="🥬",gxe="🥦",mxe="🧄",_xe="🧅",bxe="🍄",yxe="🥜",vxe="🌰",wxe="🍞",xxe="🥐",kxe="🥖",Exe="🫓",Cxe="🥨",Axe="🥯",Sxe="🥞",Txe="🧇",Mxe="🧀",Oxe="🍖",Rxe="🍗",Nxe="🥩",Dxe="🥓",Lxe="🍔",Ixe="🍟",Pxe="🍕",Fxe="🌭",Bxe="🥪",$xe="🌮",zxe="🌯",jxe="🫔",Uxe="🥙",qxe="🧆",Hxe="🥚",Vxe="🍳",Gxe="🥘",Kxe="🍲",Wxe="🫕",Zxe="🥣",Yxe="🥗",Qxe="🍿",Jxe="🧈",Xxe="🧂",eke="🥫",tke="🍱",nke="🍘",ske="🍙",oke="🍚",rke="🍛",ike="🍜",ake="🍝",lke="🍠",cke="🍢",dke="🍣",uke="🍤",fke="🍥",hke="🥮",pke="🍡",gke="🥟",mke="🥠",_ke="🥡",bke="🦀",yke="🦞",vke="🦐",wke="🦑",xke="🦪",kke="🍦",Eke="🍧",Cke="🍨",Ake="🍩",Ske="🍪",Tke="🎂",Mke="🍰",Oke="🧁",Rke="🥧",Nke="🍫",Dke="🍬",Lke="🍭",Ike="🍮",Pke="🍯",Fke="🍼",Bke="🥛",$ke="☕",zke="🫖",jke="🍵",Uke="🍶",qke="🍾",Hke="🍷",Vke="🍸",Gke="🍹",Kke="🍺",Wke="🍻",Zke="🥂",Yke="🥃",Qke="🥤",Jke="🧋",Xke="🧃",eEe="🧉",tEe="🧊",nEe="🥢",sEe="🍽️",oEe="🍴",rEe="🥄",iEe="🔪",aEe="🔪",lEe="🏺",cEe="🌍",dEe="🌎",uEe="🌏",fEe="🌐",hEe="🗺️",pEe="🗾",gEe="🧭",mEe="🏔️",_Ee="⛰️",bEe="🌋",yEe="🗻",vEe="🏕️",wEe="🏖️",xEe="🏜️",kEe="🏝️",EEe="🏞️",CEe="🏟️",AEe="🏛️",SEe="🏗️",TEe="🧱",MEe="🪨",OEe="🪵",REe="🛖",NEe="🏘️",DEe="🏚️",LEe="🏠",IEe="🏡",PEe="🏢",FEe="🏣",BEe="🏤",$Ee="🏥",zEe="🏦",jEe="🏨",UEe="🏩",qEe="🏪",HEe="🏫",VEe="🏬",GEe="🏭",KEe="🏯",WEe="🏰",ZEe="💒",YEe="🗼",QEe="🗽",JEe="⛪",XEe="🕌",e5e="🛕",t5e="🕍",n5e="⛩️",s5e="🕋",o5e="⛲",r5e="⛺",i5e="🌁",a5e="🌃",l5e="🏙️",c5e="🌄",d5e="🌅",u5e="🌆",f5e="🌇",h5e="🌉",p5e="♨️",g5e="🎠",m5e="🎡",_5e="🎢",b5e="💈",y5e="🎪",v5e="🚂",w5e="🚃",x5e="🚄",k5e="🚅",E5e="🚆",C5e="🚇",A5e="🚈",S5e="🚉",T5e="🚊",M5e="🚝",O5e="🚞",R5e="🚋",N5e="🚌",D5e="🚍",L5e="🚎",I5e="🚐",P5e="🚑",F5e="🚒",B5e="🚓",$5e="🚔",z5e="🚕",j5e="🚖",U5e="🚗",q5e="🚗",H5e="🚘",V5e="🚙",G5e="🛻",K5e="🚚",W5e="🚛",Z5e="🚜",Y5e="🏎️",Q5e="🏍️",J5e="🛵",X5e="🦽",e4e="🦼",t4e="🛺",n4e="🚲",s4e="🛴",o4e="🛹",r4e="🛼",i4e="🚏",a4e="🛣️",l4e="🛤️",c4e="🛢️",d4e="⛽",u4e="🚨",f4e="🚥",h4e="🚦",p4e="🛑",g4e="🚧",m4e="⚓",_4e="⛵",b4e="⛵",y4e="🛶",v4e="🚤",w4e="🛳️",x4e="⛴️",k4e="🛥️",E4e="🚢",C4e="✈️",A4e="🛩️",S4e="🛫",T4e="🛬",M4e="🪂",O4e="💺",R4e="🚁",N4e="🚟",D4e="🚠",L4e="🚡",I4e="🛰️",P4e="🚀",F4e="🛸",B4e="🛎️",$4e="🧳",z4e="⌛",j4e="⏳",U4e="⌚",q4e="⏰",H4e="⏱️",V4e="⏲️",G4e="🕰️",K4e="🕛",W4e="🕧",Z4e="🕐",Y4e="🕜",Q4e="🕑",J4e="🕝",X4e="🕒",eCe="🕞",tCe="🕓",nCe="🕟",sCe="🕔",oCe="🕠",rCe="🕕",iCe="🕡",aCe="🕖",lCe="🕢",cCe="🕗",dCe="🕣",uCe="🕘",fCe="🕤",hCe="🕙",pCe="🕥",gCe="🕚",mCe="🕦",_Ce="🌑",bCe="🌒",yCe="🌓",vCe="🌔",wCe="🌔",xCe="🌕",kCe="🌖",ECe="🌗",CCe="🌘",ACe="🌙",SCe="🌚",TCe="🌛",MCe="🌜",OCe="🌡️",RCe="☀️",NCe="🌝",DCe="🌞",LCe="🪐",ICe="⭐",PCe="🌟",FCe="🌠",BCe="🌌",$Ce="☁️",zCe="⛅",jCe="⛈️",UCe="🌤️",qCe="🌥️",HCe="🌦️",VCe="🌧️",GCe="🌨️",KCe="🌩️",WCe="🌪️",ZCe="🌫️",YCe="🌬️",QCe="🌀",JCe="🌈",XCe="🌂",e3e="☂️",t3e="☔",n3e="⛱️",s3e="⚡",o3e="❄️",r3e="☃️",i3e="⛄",a3e="☄️",l3e="🔥",c3e="💧",d3e="🌊",u3e="🎃",f3e="🎄",h3e="🎆",p3e="🎇",g3e="🧨",m3e="✨",_3e="🎈",b3e="🎉",y3e="🎊",v3e="🎋",w3e="🎍",x3e="🎎",k3e="🎏",E3e="🎐",C3e="🎑",A3e="🧧",S3e="🎀",T3e="🎁",M3e="🎗️",O3e="🎟️",R3e="🎫",N3e="🎖️",D3e="🏆",L3e="🏅",I3e="⚽",P3e="⚾",F3e="🥎",B3e="🏀",$3e="🏐",z3e="🏈",j3e="🏉",U3e="🎾",q3e="🥏",H3e="🎳",V3e="🏏",G3e="🏑",K3e="🏒",W3e="🥍",Z3e="🏓",Y3e="🏸",Q3e="🥊",J3e="🥋",X3e="🥅",e9e="⛳",t9e="⛸️",n9e="🎣",s9e="🤿",o9e="🎽",r9e="🎿",i9e="🛷",a9e="🥌",l9e="🎯",c9e="🪀",d9e="🪁",u9e="🔮",f9e="🪄",h9e="🧿",p9e="🎮",g9e="🕹️",m9e="🎰",_9e="🎲",b9e="🧩",y9e="🧸",v9e="🪅",w9e="🪆",x9e="♠️",k9e="♥️",E9e="♦️",C9e="♣️",A9e="♟️",S9e="🃏",T9e="🀄",M9e="🎴",O9e="🎭",R9e="🖼️",N9e="🎨",D9e="🧵",L9e="🪡",I9e="🧶",P9e="🪢",F9e="👓",B9e="🕶️",$9e="🥽",z9e="🥼",j9e="🦺",U9e="👔",q9e="👕",H9e="👕",V9e="👖",G9e="🧣",K9e="🧤",W9e="🧥",Z9e="🧦",Y9e="👗",Q9e="👘",J9e="🥻",X9e="🩱",e8e="🩲",t8e="🩳",n8e="👙",s8e="👚",o8e="👛",r8e="👜",i8e="👝",a8e="🛍️",l8e="🎒",c8e="🩴",d8e="👞",u8e="👞",f8e="👟",h8e="🥾",p8e="🥿",g8e="👠",m8e="👡",_8e="🩰",b8e="👢",y8e="👑",v8e="👒",w8e="🎩",x8e="🎓",k8e="🧢",E8e="🪖",C8e="⛑️",A8e="📿",S8e="💄",T8e="💍",M8e="💎",O8e="🔇",R8e="🔈",N8e="🔉",D8e="🔊",L8e="📢",I8e="📣",P8e="📯",F8e="🔔",B8e="🔕",$8e="🎼",z8e="🎵",j8e="🎶",U8e="🎙️",q8e="🎚️",H8e="🎛️",V8e="🎤",G8e="🎧",K8e="📻",W8e="🎷",Z8e="🪗",Y8e="🎸",Q8e="🎹",J8e="🎺",X8e="🎻",eAe="🪕",tAe="🥁",nAe="🪘",sAe="📱",oAe="📲",rAe="☎️",iAe="☎️",aAe="📞",lAe="📟",cAe="📠",dAe="🔋",uAe="🔌",fAe="💻",hAe="🖥️",pAe="🖨️",gAe="⌨️",mAe="🖱️",_Ae="🖲️",bAe="💽",yAe="💾",vAe="💿",wAe="📀",xAe="🧮",kAe="🎥",EAe="🎞️",CAe="📽️",AAe="🎬",SAe="📺",TAe="📷",MAe="📸",OAe="📹",RAe="📼",NAe="🔍",DAe="🔎",LAe="🕯️",IAe="💡",PAe="🔦",FAe="🏮",BAe="🏮",$Ae="🪔",zAe="📔",jAe="📕",UAe="📖",qAe="📖",HAe="📗",VAe="📘",GAe="📙",KAe="📚",WAe="📓",ZAe="📒",YAe="📃",QAe="📜",JAe="📄",XAe="📰",e6e="🗞️",t6e="📑",n6e="🔖",s6e="🏷️",o6e="💰",r6e="🪙",i6e="💴",a6e="💵",l6e="💶",c6e="💷",d6e="💸",u6e="💳",f6e="🧾",h6e="💹",p6e="✉️",g6e="📧",m6e="📨",_6e="📩",b6e="📤",y6e="📥",v6e="📫",w6e="📪",x6e="📬",k6e="📭",E6e="📮",C6e="🗳️",A6e="✏️",S6e="✒️",T6e="🖋️",M6e="🖊️",O6e="🖌️",R6e="🖍️",N6e="📝",D6e="📝",L6e="💼",I6e="📁",P6e="📂",F6e="🗂️",B6e="📅",$6e="📆",z6e="🗒️",j6e="🗓️",U6e="📇",q6e="📈",H6e="📉",V6e="📊",G6e="📋",K6e="📌",W6e="📍",Z6e="📎",Y6e="🖇️",Q6e="📏",J6e="📐",X6e="✂️",eSe="🗃️",tSe="🗄️",nSe="🗑️",sSe="🔒",oSe="🔓",rSe="🔏",iSe="🔐",aSe="🔑",lSe="🗝️",cSe="🔨",dSe="🪓",uSe="⛏️",fSe="⚒️",hSe="🛠️",pSe="🗡️",gSe="⚔️",mSe="🔫",_Se="🪃",bSe="🏹",ySe="🛡️",vSe="🪚",wSe="🔧",xSe="🪛",kSe="🔩",ESe="⚙️",CSe="🗜️",ASe="⚖️",SSe="🦯",TSe="🔗",MSe="⛓️",OSe="🪝",RSe="🧰",NSe="🧲",DSe="🪜",LSe="⚗️",ISe="🧪",PSe="🧫",FSe="🧬",BSe="🔬",$Se="🔭",zSe="📡",jSe="💉",USe="🩸",qSe="💊",HSe="🩹",VSe="🩺",GSe="🚪",KSe="🛗",WSe="🪞",ZSe="🪟",YSe="🛏️",QSe="🛋️",JSe="🪑",XSe="🚽",eTe="🪠",tTe="🚿",nTe="🛁",sTe="🪤",oTe="🪒",rTe="🧴",iTe="🧷",aTe="🧹",lTe="🧺",cTe="🧻",dTe="🪣",uTe="🧼",fTe="🪥",hTe="🧽",pTe="🧯",gTe="🛒",mTe="🚬",_Te="⚰️",bTe="🪦",yTe="⚱️",vTe="🗿",wTe="🪧",xTe="🏧",kTe="🚮",ETe="🚰",CTe="♿",ATe="🚹",STe="🚺",TTe="🚻",MTe="🚼",OTe="🚾",RTe="🛂",NTe="🛃",DTe="🛄",LTe="🛅",ITe="⚠️",PTe="🚸",FTe="⛔",BTe="🚫",$Te="🚳",zTe="🚭",jTe="🚯",UTe="🚷",qTe="📵",HTe="🔞",VTe="☢️",GTe="☣️",KTe="⬆️",WTe="↗️",ZTe="➡️",YTe="↘️",QTe="⬇️",JTe="↙️",XTe="⬅️",e7e="↖️",t7e="↕️",n7e="↔️",s7e="↩️",o7e="↪️",r7e="⤴️",i7e="⤵️",a7e="🔃",l7e="🔄",c7e="🔙",d7e="🔚",u7e="🔛",f7e="🔜",h7e="🔝",p7e="🛐",g7e="⚛️",m7e="🕉️",_7e="✡️",b7e="☸️",y7e="☯️",v7e="✝️",w7e="☦️",x7e="☪️",k7e="☮️",E7e="🕎",C7e="🔯",A7e="♈",S7e="♉",T7e="♊",M7e="♋",O7e="♌",R7e="♍",N7e="♎",D7e="♏",L7e="♐",I7e="♑",P7e="♒",F7e="♓",B7e="⛎",$7e="🔀",z7e="🔁",j7e="🔂",U7e="▶️",q7e="⏩",H7e="⏭️",V7e="⏯️",G7e="◀️",K7e="⏪",W7e="⏮️",Z7e="🔼",Y7e="⏫",Q7e="🔽",J7e="⏬",X7e="⏸️",eMe="⏹️",tMe="⏺️",nMe="⏏️",sMe="🎦",oMe="🔅",rMe="🔆",iMe="📶",aMe="📳",lMe="📴",cMe="♀️",dMe="♂️",uMe="⚧️",fMe="✖️",hMe="➕",pMe="➖",gMe="➗",mMe="♾️",_Me="‼️",bMe="⁉️",yMe="❓",vMe="❔",wMe="❕",xMe="❗",kMe="❗",EMe="〰️",CMe="💱",AMe="💲",SMe="⚕️",TMe="♻️",MMe="⚜️",OMe="🔱",RMe="📛",NMe="🔰",DMe="⭕",LMe="✅",IMe="☑️",PMe="✔️",FMe="❌",BMe="❎",$Me="➰",zMe="➿",jMe="〽️",UMe="✳️",qMe="✴️",HMe="❇️",VMe="©️",GMe="®️",KMe="™️",WMe="#️⃣",ZMe="*️⃣",YMe="0️⃣",QMe="1️⃣",JMe="2️⃣",XMe="3️⃣",eOe="4️⃣",tOe="5️⃣",nOe="6️⃣",sOe="7️⃣",oOe="8️⃣",rOe="9️⃣",iOe="🔟",aOe="🔠",lOe="🔡",cOe="🔣",dOe="🔤",uOe="🅰️",fOe="🆎",hOe="🅱️",pOe="🆑",gOe="🆒",mOe="🆓",_Oe="ℹ️",bOe="🆔",yOe="Ⓜ️",vOe="🆖",wOe="🅾️",xOe="🆗",kOe="🅿️",EOe="🆘",COe="🆙",AOe="🆚",SOe="🈁",TOe="🈂️",MOe="🉐",OOe="🉑",ROe="㊗️",NOe="㊙️",DOe="🈵",LOe="🔴",IOe="🟠",POe="🟡",FOe="🟢",BOe="🔵",$Oe="🟣",zOe="🟤",jOe="⚫",UOe="⚪",qOe="🟥",HOe="🟧",VOe="🟨",GOe="🟩",KOe="🟦",WOe="🟪",ZOe="🟫",YOe="⬛",QOe="⬜",JOe="◼️",XOe="◻️",eRe="◾",tRe="◽",nRe="▪️",sRe="▫️",oRe="🔶",rRe="🔷",iRe="🔸",aRe="🔹",lRe="🔺",cRe="🔻",dRe="💠",uRe="🔘",fRe="🔳",hRe="🔲",pRe="🏁",gRe="🚩",mRe="🎌",_Re="🏴",bRe="🏳️",yRe="🏳️‍🌈",vRe="🏳️‍⚧️",wRe="🏴‍☠️",xRe="🇦🇨",kRe="🇦🇩",ERe="🇦🇪",CRe="🇦🇫",ARe="🇦🇬",SRe="🇦🇮",TRe="🇦🇱",MRe="🇦🇲",ORe="🇦🇴",RRe="🇦🇶",NRe="🇦🇷",DRe="🇦🇸",LRe="🇦🇹",IRe="🇦🇺",PRe="🇦🇼",FRe="🇦🇽",BRe="🇦🇿",$Re="🇧🇦",zRe="🇧🇧",jRe="🇧🇩",URe="🇧🇪",qRe="🇧🇫",HRe="🇧🇬",VRe="🇧🇭",GRe="🇧🇮",KRe="🇧🇯",WRe="🇧🇱",ZRe="🇧🇲",YRe="🇧🇳",QRe="🇧🇴",JRe="🇧🇶",XRe="🇧🇷",eNe="🇧🇸",tNe="🇧🇹",nNe="🇧🇻",sNe="🇧🇼",oNe="🇧🇾",rNe="🇧🇿",iNe="🇨🇦",aNe="🇨🇨",lNe="🇨🇩",cNe="🇨🇫",dNe="🇨🇬",uNe="🇨🇭",fNe="🇨🇮",hNe="🇨🇰",pNe="🇨🇱",gNe="🇨🇲",mNe="🇨🇳",_Ne="🇨🇴",bNe="🇨🇵",yNe="🇨🇷",vNe="🇨🇺",wNe="🇨🇻",xNe="🇨🇼",kNe="🇨🇽",ENe="🇨🇾",CNe="🇨🇿",ANe="🇩🇪",SNe="🇩🇬",TNe="🇩🇯",MNe="🇩🇰",ONe="🇩🇲",RNe="🇩🇴",NNe="🇩🇿",DNe="🇪🇦",LNe="🇪🇨",INe="🇪🇪",PNe="🇪🇬",FNe="🇪🇭",BNe="🇪🇷",$Ne="🇪🇸",zNe="🇪🇹",jNe="🇪🇺",UNe="🇪🇺",qNe="🇫🇮",HNe="🇫🇯",VNe="🇫🇰",GNe="🇫🇲",KNe="🇫🇴",WNe="🇫🇷",ZNe="🇬🇦",YNe="🇬🇧",QNe="🇬🇧",JNe="🇬🇩",XNe="🇬🇪",eDe="🇬🇫",tDe="🇬🇬",nDe="🇬🇭",sDe="🇬🇮",oDe="🇬🇱",rDe="🇬🇲",iDe="🇬🇳",aDe="🇬🇵",lDe="🇬🇶",cDe="🇬🇷",dDe="🇬🇸",uDe="🇬🇹",fDe="🇬🇺",hDe="🇬🇼",pDe="🇬🇾",gDe="🇭🇰",mDe="🇭🇲",_De="🇭🇳",bDe="🇭🇷",yDe="🇭🇹",vDe="🇭🇺",wDe="🇮🇨",xDe="🇮🇩",kDe="🇮🇪",EDe="🇮🇱",CDe="🇮🇲",ADe="🇮🇳",SDe="🇮🇴",TDe="🇮🇶",MDe="🇮🇷",ODe="🇮🇸",RDe="🇮🇹",NDe="🇯🇪",DDe="🇯🇲",LDe="🇯🇴",IDe="🇯🇵",PDe="🇰🇪",FDe="🇰🇬",BDe="🇰🇭",$De="🇰🇮",zDe="🇰🇲",jDe="🇰🇳",UDe="🇰🇵",qDe="🇰🇷",HDe="🇰🇼",VDe="🇰🇾",GDe="🇰🇿",KDe="🇱🇦",WDe="🇱🇧",ZDe="🇱🇨",YDe="🇱🇮",QDe="🇱🇰",JDe="🇱🇷",XDe="🇱🇸",eLe="🇱🇹",tLe="🇱🇺",nLe="🇱🇻",sLe="🇱🇾",oLe="🇲🇦",rLe="🇲🇨",iLe="🇲🇩",aLe="🇲🇪",lLe="🇲🇫",cLe="🇲🇬",dLe="🇲🇭",uLe="🇲🇰",fLe="🇲🇱",hLe="🇲🇲",pLe="🇲🇳",gLe="🇲🇴",mLe="🇲🇵",_Le="🇲🇶",bLe="🇲🇷",yLe="🇲🇸",vLe="🇲🇹",wLe="🇲🇺",xLe="🇲🇻",kLe="🇲🇼",ELe="🇲🇽",CLe="🇲🇾",ALe="🇲🇿",SLe="🇳🇦",TLe="🇳🇨",MLe="🇳🇪",OLe="🇳🇫",RLe="🇳🇬",NLe="🇳🇮",DLe="🇳🇱",LLe="🇳🇴",ILe="🇳🇵",PLe="🇳🇷",FLe="🇳🇺",BLe="🇳🇿",$Le="🇴🇲",zLe="🇵🇦",jLe="🇵🇪",ULe="🇵🇫",qLe="🇵🇬",HLe="🇵🇭",VLe="🇵🇰",GLe="🇵🇱",KLe="🇵🇲",WLe="🇵🇳",ZLe="🇵🇷",YLe="🇵🇸",QLe="🇵🇹",JLe="🇵🇼",XLe="🇵🇾",eIe="🇶🇦",tIe="🇷🇪",nIe="🇷🇴",sIe="🇷🇸",oIe="🇷🇺",rIe="🇷🇼",iIe="🇸🇦",aIe="🇸🇧",lIe="🇸🇨",cIe="🇸🇩",dIe="🇸🇪",uIe="🇸🇬",fIe="🇸🇭",hIe="🇸🇮",pIe="🇸🇯",gIe="🇸🇰",mIe="🇸🇱",_Ie="🇸🇲",bIe="🇸🇳",yIe="🇸🇴",vIe="🇸🇷",wIe="🇸🇸",xIe="🇸🇹",kIe="🇸🇻",EIe="🇸🇽",CIe="🇸🇾",AIe="🇸🇿",SIe="🇹🇦",TIe="🇹🇨",MIe="🇹🇩",OIe="🇹🇫",RIe="🇹🇬",NIe="🇹🇭",DIe="🇹🇯",LIe="🇹🇰",IIe="🇹🇱",PIe="🇹🇲",FIe="🇹🇳",BIe="🇹🇴",$Ie="🇹🇷",zIe="🇹🇹",jIe="🇹🇻",UIe="🇹🇼",qIe="🇹🇿",HIe="🇺🇦",VIe="🇺🇬",GIe="🇺🇲",KIe="🇺🇳",WIe="🇺🇸",ZIe="🇺🇾",YIe="🇺🇿",QIe="🇻🇦",JIe="🇻🇨",XIe="🇻🇪",ePe="🇻🇬",tPe="🇻🇮",nPe="🇻🇳",sPe="🇻🇺",oPe="🇼🇫",rPe="🇼🇸",iPe="🇽🇰",aPe="🇾🇪",lPe="🇾🇹",cPe="🇿🇦",dPe="🇿🇲",uPe="🇿🇼",fPe="🏴󠁧󠁢󠁥󠁮󠁧󠁿",hPe="🏴󠁧󠁢󠁳󠁣󠁴󠁿",pPe="🏴󠁧󠁢󠁷󠁬󠁳󠁿",gPe={100:"💯",1234:"🔢",grinning:Afe,smiley:Sfe,smile:Tfe,grin:Mfe,laughing:Ofe,satisfied:Rfe,sweat_smile:Nfe,rofl:Dfe,joy:Lfe,slightly_smiling_face:Ife,upside_down_face:Pfe,wink:Ffe,blush:Bfe,innocent:$fe,smiling_face_with_three_hearts:zfe,heart_eyes:jfe,star_struck:Ufe,kissing_heart:qfe,kissing:Hfe,relaxed:Vfe,kissing_closed_eyes:Gfe,kissing_smiling_eyes:Kfe,smiling_face_with_tear:Wfe,yum:Zfe,stuck_out_tongue:Yfe,stuck_out_tongue_winking_eye:Qfe,zany_face:Jfe,stuck_out_tongue_closed_eyes:Xfe,money_mouth_face:ehe,hugs:the,hand_over_mouth:nhe,shushing_face:she,thinking:ohe,zipper_mouth_face:rhe,raised_eyebrow:ihe,neutral_face:ahe,expressionless:lhe,no_mouth:che,smirk:dhe,unamused:uhe,roll_eyes:fhe,grimacing:hhe,lying_face:phe,relieved:ghe,pensive:mhe,sleepy:_he,drooling_face:bhe,sleeping:yhe,mask:vhe,face_with_thermometer:whe,face_with_head_bandage:xhe,nauseated_face:khe,vomiting_face:Ehe,sneezing_face:Che,hot_face:Ahe,cold_face:She,woozy_face:The,dizzy_face:Mhe,exploding_head:Ohe,cowboy_hat_face:Rhe,partying_face:Nhe,disguised_face:Dhe,sunglasses:Lhe,nerd_face:Ihe,monocle_face:Phe,confused:Fhe,worried:Bhe,slightly_frowning_face:$he,frowning_face:zhe,open_mouth:jhe,hushed:Uhe,astonished:qhe,flushed:Hhe,pleading_face:Vhe,frowning:Ghe,anguished:Khe,fearful:Whe,cold_sweat:Zhe,disappointed_relieved:Yhe,cry:Qhe,sob:Jhe,scream:Xhe,confounded:epe,persevere:tpe,disappointed:npe,sweat:spe,weary:ope,tired_face:rpe,yawning_face:ipe,triumph:ape,rage:lpe,pout:cpe,angry:dpe,cursing_face:upe,smiling_imp:fpe,imp:hpe,skull:ppe,skull_and_crossbones:gpe,hankey:mpe,poop:_pe,shit:bpe,clown_face:ype,japanese_ogre:vpe,japanese_goblin:wpe,ghost:xpe,alien:kpe,space_invader:Epe,robot:Cpe,smiley_cat:Ape,smile_cat:Spe,joy_cat:Tpe,heart_eyes_cat:Mpe,smirk_cat:Ope,kissing_cat:Rpe,scream_cat:Npe,crying_cat_face:Dpe,pouting_cat:Lpe,see_no_evil:Ipe,hear_no_evil:Ppe,speak_no_evil:Fpe,kiss:Bpe,love_letter:$pe,cupid:zpe,gift_heart:jpe,sparkling_heart:Upe,heartpulse:qpe,heartbeat:Hpe,revolving_hearts:Vpe,two_hearts:Gpe,heart_decoration:Kpe,heavy_heart_exclamation:Wpe,broken_heart:Zpe,heart:Ype,orange_heart:Qpe,yellow_heart:Jpe,green_heart:Xpe,blue_heart:ege,purple_heart:tge,brown_heart:nge,black_heart:sge,white_heart:oge,anger:rge,boom:ige,collision:age,dizzy:lge,sweat_drops:cge,dash:dge,hole:uge,bomb:fge,speech_balloon:hge,eye_speech_bubble:pge,left_speech_bubble:gge,right_anger_bubble:mge,thought_balloon:_ge,zzz:bge,wave:yge,raised_back_of_hand:vge,raised_hand_with_fingers_splayed:wge,hand:xge,raised_hand:kge,vulcan_salute:Ege,ok_hand:Cge,pinched_fingers:Age,pinching_hand:Sge,v:Tge,crossed_fingers:Mge,love_you_gesture:Oge,metal:Rge,call_me_hand:Nge,point_left:Dge,point_right:Lge,point_up_2:Ige,middle_finger:Pge,fu:Fge,point_down:Bge,point_up:$ge,"+1":"👍",thumbsup:zge,"-1":"👎",thumbsdown:jge,fist_raised:Uge,fist:qge,fist_oncoming:Hge,facepunch:Vge,punch:Gge,fist_left:Kge,fist_right:Wge,clap:Zge,raised_hands:Yge,open_hands:Qge,palms_up_together:Jge,handshake:Xge,pray:eme,writing_hand:tme,nail_care:nme,selfie:sme,muscle:ome,mechanical_arm:rme,mechanical_leg:ime,leg:ame,foot:lme,ear:cme,ear_with_hearing_aid:dme,nose:ume,brain:fme,anatomical_heart:hme,lungs:pme,tooth:gme,bone:mme,eyes:_me,eye:bme,tongue:yme,lips:vme,baby:wme,child:xme,boy:kme,girl:Eme,adult:Cme,blond_haired_person:Ame,man:Sme,bearded_person:Tme,red_haired_man:Mme,curly_haired_man:Ome,white_haired_man:Rme,bald_man:Nme,woman:Dme,red_haired_woman:Lme,person_red_hair:Ime,curly_haired_woman:Pme,person_curly_hair:Fme,white_haired_woman:Bme,person_white_hair:$me,bald_woman:zme,person_bald:jme,blond_haired_woman:Ume,blonde_woman:qme,blond_haired_man:Hme,older_adult:Vme,older_man:Gme,older_woman:Kme,frowning_person:Wme,frowning_man:Zme,frowning_woman:Yme,pouting_face:Qme,pouting_man:Jme,pouting_woman:Xme,no_good:e_e,no_good_man:t_e,ng_man:n_e,no_good_woman:s_e,ng_woman:o_e,ok_person:r_e,ok_man:i_e,ok_woman:a_e,tipping_hand_person:l_e,information_desk_person:c_e,tipping_hand_man:d_e,sassy_man:u_e,tipping_hand_woman:f_e,sassy_woman:h_e,raising_hand:p_e,raising_hand_man:g_e,raising_hand_woman:m_e,deaf_person:__e,deaf_man:b_e,deaf_woman:y_e,bow:v_e,bowing_man:w_e,bowing_woman:x_e,facepalm:k_e,man_facepalming:E_e,woman_facepalming:C_e,shrug:A_e,man_shrugging:S_e,woman_shrugging:T_e,health_worker:M_e,man_health_worker:O_e,woman_health_worker:R_e,student:N_e,man_student:D_e,woman_student:L_e,teacher:I_e,man_teacher:P_e,woman_teacher:F_e,judge:B_e,man_judge:$_e,woman_judge:z_e,farmer:j_e,man_farmer:U_e,woman_farmer:q_e,cook:H_e,man_cook:V_e,woman_cook:G_e,mechanic:K_e,man_mechanic:W_e,woman_mechanic:Z_e,factory_worker:Y_e,man_factory_worker:Q_e,woman_factory_worker:J_e,office_worker:X_e,man_office_worker:e1e,woman_office_worker:t1e,scientist:n1e,man_scientist:s1e,woman_scientist:o1e,technologist:r1e,man_technologist:i1e,woman_technologist:a1e,singer:l1e,man_singer:c1e,woman_singer:d1e,artist:u1e,man_artist:f1e,woman_artist:h1e,pilot:p1e,man_pilot:g1e,woman_pilot:m1e,astronaut:_1e,man_astronaut:b1e,woman_astronaut:y1e,firefighter:v1e,man_firefighter:w1e,woman_firefighter:x1e,police_officer:k1e,cop:E1e,policeman:C1e,policewoman:A1e,detective:S1e,male_detective:T1e,female_detective:M1e,guard:O1e,guardsman:R1e,guardswoman:N1e,ninja:D1e,construction_worker:L1e,construction_worker_man:I1e,construction_worker_woman:P1e,prince:F1e,princess:B1e,person_with_turban:$1e,man_with_turban:z1e,woman_with_turban:j1e,man_with_gua_pi_mao:U1e,woman_with_headscarf:q1e,person_in_tuxedo:H1e,man_in_tuxedo:V1e,woman_in_tuxedo:G1e,person_with_veil:K1e,man_with_veil:W1e,woman_with_veil:Z1e,bride_with_veil:Y1e,pregnant_woman:Q1e,breast_feeding:J1e,woman_feeding_baby:X1e,man_feeding_baby:e0e,person_feeding_baby:t0e,angel:n0e,santa:s0e,mrs_claus:o0e,mx_claus:r0e,superhero:i0e,superhero_man:a0e,superhero_woman:l0e,supervillain:c0e,supervillain_man:d0e,supervillain_woman:u0e,mage:f0e,mage_man:h0e,mage_woman:p0e,fairy:g0e,fairy_man:m0e,fairy_woman:_0e,vampire:b0e,vampire_man:y0e,vampire_woman:v0e,merperson:w0e,merman:x0e,mermaid:k0e,elf:E0e,elf_man:C0e,elf_woman:A0e,genie:S0e,genie_man:T0e,genie_woman:M0e,zombie:O0e,zombie_man:R0e,zombie_woman:N0e,massage:D0e,massage_man:L0e,massage_woman:I0e,haircut:P0e,haircut_man:F0e,haircut_woman:B0e,walking:$0e,walking_man:z0e,walking_woman:j0e,standing_person:U0e,standing_man:q0e,standing_woman:H0e,kneeling_person:V0e,kneeling_man:G0e,kneeling_woman:K0e,person_with_probing_cane:W0e,man_with_probing_cane:Z0e,woman_with_probing_cane:Y0e,person_in_motorized_wheelchair:Q0e,man_in_motorized_wheelchair:J0e,woman_in_motorized_wheelchair:X0e,person_in_manual_wheelchair:ebe,man_in_manual_wheelchair:tbe,woman_in_manual_wheelchair:nbe,runner:sbe,running:obe,running_man:rbe,running_woman:ibe,woman_dancing:abe,dancer:lbe,man_dancing:cbe,business_suit_levitating:dbe,dancers:ube,dancing_men:fbe,dancing_women:hbe,sauna_person:pbe,sauna_man:gbe,sauna_woman:mbe,climbing:_be,climbing_man:bbe,climbing_woman:ybe,person_fencing:vbe,horse_racing:wbe,skier:xbe,snowboarder:kbe,golfing:Ebe,golfing_man:Cbe,golfing_woman:Abe,surfer:Sbe,surfing_man:Tbe,surfing_woman:Mbe,rowboat:Obe,rowing_man:Rbe,rowing_woman:Nbe,swimmer:Dbe,swimming_man:Lbe,swimming_woman:Ibe,bouncing_ball_person:Pbe,bouncing_ball_man:Fbe,basketball_man:Bbe,bouncing_ball_woman:$be,basketball_woman:zbe,weight_lifting:jbe,weight_lifting_man:Ube,weight_lifting_woman:qbe,bicyclist:Hbe,biking_man:Vbe,biking_woman:Gbe,mountain_bicyclist:Kbe,mountain_biking_man:Wbe,mountain_biking_woman:Zbe,cartwheeling:Ybe,man_cartwheeling:Qbe,woman_cartwheeling:Jbe,wrestling:Xbe,men_wrestling:eye,women_wrestling:tye,water_polo:nye,man_playing_water_polo:sye,woman_playing_water_polo:oye,handball_person:rye,man_playing_handball:iye,woman_playing_handball:aye,juggling_person:lye,man_juggling:cye,woman_juggling:dye,lotus_position:uye,lotus_position_man:fye,lotus_position_woman:hye,bath:pye,sleeping_bed:gye,people_holding_hands:mye,two_women_holding_hands:_ye,couple:bye,two_men_holding_hands:yye,couplekiss:vye,couplekiss_man_woman:wye,couplekiss_man_man:xye,couplekiss_woman_woman:kye,couple_with_heart:Eye,couple_with_heart_woman_man:Cye,couple_with_heart_man_man:Aye,couple_with_heart_woman_woman:Sye,family:Tye,family_man_woman_boy:Mye,family_man_woman_girl:Oye,family_man_woman_girl_boy:Rye,family_man_woman_boy_boy:Nye,family_man_woman_girl_girl:Dye,family_man_man_boy:Lye,family_man_man_girl:Iye,family_man_man_girl_boy:Pye,family_man_man_boy_boy:Fye,family_man_man_girl_girl:Bye,family_woman_woman_boy:$ye,family_woman_woman_girl:zye,family_woman_woman_girl_boy:jye,family_woman_woman_boy_boy:Uye,family_woman_woman_girl_girl:qye,family_man_boy:Hye,family_man_boy_boy:Vye,family_man_girl:Gye,family_man_girl_boy:Kye,family_man_girl_girl:Wye,family_woman_boy:Zye,family_woman_boy_boy:Yye,family_woman_girl:Qye,family_woman_girl_boy:Jye,family_woman_girl_girl:Xye,speaking_head:e2e,bust_in_silhouette:t2e,busts_in_silhouette:n2e,people_hugging:s2e,footprints:o2e,monkey_face:r2e,monkey:i2e,gorilla:a2e,orangutan:l2e,dog:c2e,dog2:d2e,guide_dog:u2e,service_dog:f2e,poodle:h2e,wolf:p2e,fox_face:g2e,raccoon:m2e,cat:_2e,cat2:b2e,black_cat:y2e,lion:v2e,tiger:w2e,tiger2:x2e,leopard:k2e,horse:E2e,racehorse:C2e,unicorn:A2e,zebra:S2e,deer:T2e,bison:M2e,cow:O2e,ox:R2e,water_buffalo:N2e,cow2:D2e,pig:L2e,pig2:I2e,boar:P2e,pig_nose:F2e,ram:B2e,sheep:$2e,goat:z2e,dromedary_camel:j2e,camel:U2e,llama:q2e,giraffe:H2e,elephant:V2e,mammoth:G2e,rhinoceros:K2e,hippopotamus:W2e,mouse:Z2e,mouse2:Y2e,rat:Q2e,hamster:J2e,rabbit:X2e,rabbit2:eve,chipmunk:tve,beaver:nve,hedgehog:sve,bat:ove,bear:rve,polar_bear:ive,koala:ave,panda_face:lve,sloth:cve,otter:dve,skunk:uve,kangaroo:fve,badger:hve,feet:pve,paw_prints:gve,turkey:mve,chicken:_ve,rooster:bve,hatching_chick:yve,baby_chick:vve,hatched_chick:wve,bird:xve,penguin:kve,dove:Eve,eagle:Cve,duck:Ave,swan:Sve,owl:Tve,dodo:Mve,feather:Ove,flamingo:Rve,peacock:Nve,parrot:Dve,frog:Lve,crocodile:Ive,turtle:Pve,lizard:Fve,snake:Bve,dragon_face:$ve,dragon:zve,sauropod:jve,"t-rex":"🦖",whale:Uve,whale2:qve,dolphin:Hve,flipper:Vve,seal:Gve,fish:Kve,tropical_fish:Wve,blowfish:Zve,shark:Yve,octopus:Qve,shell:Jve,snail:Xve,butterfly:ewe,bug:twe,ant:nwe,bee:swe,honeybee:owe,beetle:rwe,lady_beetle:iwe,cricket:awe,cockroach:lwe,spider:cwe,spider_web:dwe,scorpion:uwe,mosquito:fwe,fly:hwe,worm:pwe,microbe:gwe,bouquet:mwe,cherry_blossom:_we,white_flower:bwe,rosette:ywe,rose:vwe,wilted_flower:wwe,hibiscus:xwe,sunflower:kwe,blossom:Ewe,tulip:Cwe,seedling:Awe,potted_plant:Swe,evergreen_tree:Twe,deciduous_tree:Mwe,palm_tree:Owe,cactus:Rwe,ear_of_rice:Nwe,herb:Dwe,shamrock:Lwe,four_leaf_clover:Iwe,maple_leaf:Pwe,fallen_leaf:Fwe,leaves:Bwe,grapes:$we,melon:zwe,watermelon:jwe,tangerine:Uwe,orange:qwe,mandarin:Hwe,lemon:Vwe,banana:Gwe,pineapple:Kwe,mango:Wwe,apple:Zwe,green_apple:Ywe,pear:Qwe,peach:Jwe,cherries:Xwe,strawberry:exe,blueberries:txe,kiwi_fruit:nxe,tomato:sxe,olive:oxe,coconut:rxe,avocado:ixe,eggplant:axe,potato:lxe,carrot:cxe,corn:dxe,hot_pepper:uxe,bell_pepper:fxe,cucumber:hxe,leafy_green:pxe,broccoli:gxe,garlic:mxe,onion:_xe,mushroom:bxe,peanuts:yxe,chestnut:vxe,bread:wxe,croissant:xxe,baguette_bread:kxe,flatbread:Exe,pretzel:Cxe,bagel:Axe,pancakes:Sxe,waffle:Txe,cheese:Mxe,meat_on_bone:Oxe,poultry_leg:Rxe,cut_of_meat:Nxe,bacon:Dxe,hamburger:Lxe,fries:Ixe,pizza:Pxe,hotdog:Fxe,sandwich:Bxe,taco:$xe,burrito:zxe,tamale:jxe,stuffed_flatbread:Uxe,falafel:qxe,egg:Hxe,fried_egg:Vxe,shallow_pan_of_food:Gxe,stew:Kxe,fondue:Wxe,bowl_with_spoon:Zxe,green_salad:Yxe,popcorn:Qxe,butter:Jxe,salt:Xxe,canned_food:eke,bento:tke,rice_cracker:nke,rice_ball:ske,rice:oke,curry:rke,ramen:ike,spaghetti:ake,sweet_potato:lke,oden:cke,sushi:dke,fried_shrimp:uke,fish_cake:fke,moon_cake:hke,dango:pke,dumpling:gke,fortune_cookie:mke,takeout_box:_ke,crab:bke,lobster:yke,shrimp:vke,squid:wke,oyster:xke,icecream:kke,shaved_ice:Eke,ice_cream:Cke,doughnut:Ake,cookie:Ske,birthday:Tke,cake:Mke,cupcake:Oke,pie:Rke,chocolate_bar:Nke,candy:Dke,lollipop:Lke,custard:Ike,honey_pot:Pke,baby_bottle:Fke,milk_glass:Bke,coffee:$ke,teapot:zke,tea:jke,sake:Uke,champagne:qke,wine_glass:Hke,cocktail:Vke,tropical_drink:Gke,beer:Kke,beers:Wke,clinking_glasses:Zke,tumbler_glass:Yke,cup_with_straw:Qke,bubble_tea:Jke,beverage_box:Xke,mate:eEe,ice_cube:tEe,chopsticks:nEe,plate_with_cutlery:sEe,fork_and_knife:oEe,spoon:rEe,hocho:iEe,knife:aEe,amphora:lEe,earth_africa:cEe,earth_americas:dEe,earth_asia:uEe,globe_with_meridians:fEe,world_map:hEe,japan:pEe,compass:gEe,mountain_snow:mEe,mountain:_Ee,volcano:bEe,mount_fuji:yEe,camping:vEe,beach_umbrella:wEe,desert:xEe,desert_island:kEe,national_park:EEe,stadium:CEe,classical_building:AEe,building_construction:SEe,bricks:TEe,rock:MEe,wood:OEe,hut:REe,houses:NEe,derelict_house:DEe,house:LEe,house_with_garden:IEe,office:PEe,post_office:FEe,european_post_office:BEe,hospital:$Ee,bank:zEe,hotel:jEe,love_hotel:UEe,convenience_store:qEe,school:HEe,department_store:VEe,factory:GEe,japanese_castle:KEe,european_castle:WEe,wedding:ZEe,tokyo_tower:YEe,statue_of_liberty:QEe,church:JEe,mosque:XEe,hindu_temple:e5e,synagogue:t5e,shinto_shrine:n5e,kaaba:s5e,fountain:o5e,tent:r5e,foggy:i5e,night_with_stars:a5e,cityscape:l5e,sunrise_over_mountains:c5e,sunrise:d5e,city_sunset:u5e,city_sunrise:f5e,bridge_at_night:h5e,hotsprings:p5e,carousel_horse:g5e,ferris_wheel:m5e,roller_coaster:_5e,barber:b5e,circus_tent:y5e,steam_locomotive:v5e,railway_car:w5e,bullettrain_side:x5e,bullettrain_front:k5e,train2:E5e,metro:C5e,light_rail:A5e,station:S5e,tram:T5e,monorail:M5e,mountain_railway:O5e,train:R5e,bus:N5e,oncoming_bus:D5e,trolleybus:L5e,minibus:I5e,ambulance:P5e,fire_engine:F5e,police_car:B5e,oncoming_police_car:$5e,taxi:z5e,oncoming_taxi:j5e,car:U5e,red_car:q5e,oncoming_automobile:H5e,blue_car:V5e,pickup_truck:G5e,truck:K5e,articulated_lorry:W5e,tractor:Z5e,racing_car:Y5e,motorcycle:Q5e,motor_scooter:J5e,manual_wheelchair:X5e,motorized_wheelchair:e4e,auto_rickshaw:t4e,bike:n4e,kick_scooter:s4e,skateboard:o4e,roller_skate:r4e,busstop:i4e,motorway:a4e,railway_track:l4e,oil_drum:c4e,fuelpump:d4e,rotating_light:u4e,traffic_light:f4e,vertical_traffic_light:h4e,stop_sign:p4e,construction:g4e,anchor:m4e,boat:_4e,sailboat:b4e,canoe:y4e,speedboat:v4e,passenger_ship:w4e,ferry:x4e,motor_boat:k4e,ship:E4e,airplane:C4e,small_airplane:A4e,flight_departure:S4e,flight_arrival:T4e,parachute:M4e,seat:O4e,helicopter:R4e,suspension_railway:N4e,mountain_cableway:D4e,aerial_tramway:L4e,artificial_satellite:I4e,rocket:P4e,flying_saucer:F4e,bellhop_bell:B4e,luggage:$4e,hourglass:z4e,hourglass_flowing_sand:j4e,watch:U4e,alarm_clock:q4e,stopwatch:H4e,timer_clock:V4e,mantelpiece_clock:G4e,clock12:K4e,clock1230:W4e,clock1:Z4e,clock130:Y4e,clock2:Q4e,clock230:J4e,clock3:X4e,clock330:eCe,clock4:tCe,clock430:nCe,clock5:sCe,clock530:oCe,clock6:rCe,clock630:iCe,clock7:aCe,clock730:lCe,clock8:cCe,clock830:dCe,clock9:uCe,clock930:fCe,clock10:hCe,clock1030:pCe,clock11:gCe,clock1130:mCe,new_moon:_Ce,waxing_crescent_moon:bCe,first_quarter_moon:yCe,moon:vCe,waxing_gibbous_moon:wCe,full_moon:xCe,waning_gibbous_moon:kCe,last_quarter_moon:ECe,waning_crescent_moon:CCe,crescent_moon:ACe,new_moon_with_face:SCe,first_quarter_moon_with_face:TCe,last_quarter_moon_with_face:MCe,thermometer:OCe,sunny:RCe,full_moon_with_face:NCe,sun_with_face:DCe,ringed_planet:LCe,star:ICe,star2:PCe,stars:FCe,milky_way:BCe,cloud:$Ce,partly_sunny:zCe,cloud_with_lightning_and_rain:jCe,sun_behind_small_cloud:UCe,sun_behind_large_cloud:qCe,sun_behind_rain_cloud:HCe,cloud_with_rain:VCe,cloud_with_snow:GCe,cloud_with_lightning:KCe,tornado:WCe,fog:ZCe,wind_face:YCe,cyclone:QCe,rainbow:JCe,closed_umbrella:XCe,open_umbrella:e3e,umbrella:t3e,parasol_on_ground:n3e,zap:s3e,snowflake:o3e,snowman_with_snow:r3e,snowman:i3e,comet:a3e,fire:l3e,droplet:c3e,ocean:d3e,jack_o_lantern:u3e,christmas_tree:f3e,fireworks:h3e,sparkler:p3e,firecracker:g3e,sparkles:m3e,balloon:_3e,tada:b3e,confetti_ball:y3e,tanabata_tree:v3e,bamboo:w3e,dolls:x3e,flags:k3e,wind_chime:E3e,rice_scene:C3e,red_envelope:A3e,ribbon:S3e,gift:T3e,reminder_ribbon:M3e,tickets:O3e,ticket:R3e,medal_military:N3e,trophy:D3e,medal_sports:L3e,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:I3e,baseball:P3e,softball:F3e,basketball:B3e,volleyball:$3e,football:z3e,rugby_football:j3e,tennis:U3e,flying_disc:q3e,bowling:H3e,cricket_game:V3e,field_hockey:G3e,ice_hockey:K3e,lacrosse:W3e,ping_pong:Z3e,badminton:Y3e,boxing_glove:Q3e,martial_arts_uniform:J3e,goal_net:X3e,golf:e9e,ice_skate:t9e,fishing_pole_and_fish:n9e,diving_mask:s9e,running_shirt_with_sash:o9e,ski:r9e,sled:i9e,curling_stone:a9e,dart:l9e,yo_yo:c9e,kite:d9e,"8ball":"🎱",crystal_ball:u9e,magic_wand:f9e,nazar_amulet:h9e,video_game:p9e,joystick:g9e,slot_machine:m9e,game_die:_9e,jigsaw:b9e,teddy_bear:y9e,pinata:v9e,nesting_dolls:w9e,spades:x9e,hearts:k9e,diamonds:E9e,clubs:C9e,chess_pawn:A9e,black_joker:S9e,mahjong:T9e,flower_playing_cards:M9e,performing_arts:O9e,framed_picture:R9e,art:N9e,thread:D9e,sewing_needle:L9e,yarn:I9e,knot:P9e,eyeglasses:F9e,dark_sunglasses:B9e,goggles:$9e,lab_coat:z9e,safety_vest:j9e,necktie:U9e,shirt:q9e,tshirt:H9e,jeans:V9e,scarf:G9e,gloves:K9e,coat:W9e,socks:Z9e,dress:Y9e,kimono:Q9e,sari:J9e,one_piece_swimsuit:X9e,swim_brief:e8e,shorts:t8e,bikini:n8e,womans_clothes:s8e,purse:o8e,handbag:r8e,pouch:i8e,shopping:a8e,school_satchel:l8e,thong_sandal:c8e,mans_shoe:d8e,shoe:u8e,athletic_shoe:f8e,hiking_boot:h8e,flat_shoe:p8e,high_heel:g8e,sandal:m8e,ballet_shoes:_8e,boot:b8e,crown:y8e,womans_hat:v8e,tophat:w8e,mortar_board:x8e,billed_cap:k8e,military_helmet:E8e,rescue_worker_helmet:C8e,prayer_beads:A8e,lipstick:S8e,ring:T8e,gem:M8e,mute:O8e,speaker:R8e,sound:N8e,loud_sound:D8e,loudspeaker:L8e,mega:I8e,postal_horn:P8e,bell:F8e,no_bell:B8e,musical_score:$8e,musical_note:z8e,notes:j8e,studio_microphone:U8e,level_slider:q8e,control_knobs:H8e,microphone:V8e,headphones:G8e,radio:K8e,saxophone:W8e,accordion:Z8e,guitar:Y8e,musical_keyboard:Q8e,trumpet:J8e,violin:X8e,banjo:eAe,drum:tAe,long_drum:nAe,iphone:sAe,calling:oAe,phone:rAe,telephone:iAe,telephone_receiver:aAe,pager:lAe,fax:cAe,battery:dAe,electric_plug:uAe,computer:fAe,desktop_computer:hAe,printer:pAe,keyboard:gAe,computer_mouse:mAe,trackball:_Ae,minidisc:bAe,floppy_disk:yAe,cd:vAe,dvd:wAe,abacus:xAe,movie_camera:kAe,film_strip:EAe,film_projector:CAe,clapper:AAe,tv:SAe,camera:TAe,camera_flash:MAe,video_camera:OAe,vhs:RAe,mag:NAe,mag_right:DAe,candle:LAe,bulb:IAe,flashlight:PAe,izakaya_lantern:FAe,lantern:BAe,diya_lamp:$Ae,notebook_with_decorative_cover:zAe,closed_book:jAe,book:UAe,open_book:qAe,green_book:HAe,blue_book:VAe,orange_book:GAe,books:KAe,notebook:WAe,ledger:ZAe,page_with_curl:YAe,scroll:QAe,page_facing_up:JAe,newspaper:XAe,newspaper_roll:e6e,bookmark_tabs:t6e,bookmark:n6e,label:s6e,moneybag:o6e,coin:r6e,yen:i6e,dollar:a6e,euro:l6e,pound:c6e,money_with_wings:d6e,credit_card:u6e,receipt:f6e,chart:h6e,envelope:p6e,email:g6e,"e-mail":"📧",incoming_envelope:m6e,envelope_with_arrow:_6e,outbox_tray:b6e,inbox_tray:y6e,package:"📦",mailbox:v6e,mailbox_closed:w6e,mailbox_with_mail:x6e,mailbox_with_no_mail:k6e,postbox:E6e,ballot_box:C6e,pencil2:A6e,black_nib:S6e,fountain_pen:T6e,pen:M6e,paintbrush:O6e,crayon:R6e,memo:N6e,pencil:D6e,briefcase:L6e,file_folder:I6e,open_file_folder:P6e,card_index_dividers:F6e,date:B6e,calendar:$6e,spiral_notepad:z6e,spiral_calendar:j6e,card_index:U6e,chart_with_upwards_trend:q6e,chart_with_downwards_trend:H6e,bar_chart:V6e,clipboard:G6e,pushpin:K6e,round_pushpin:W6e,paperclip:Z6e,paperclips:Y6e,straight_ruler:Q6e,triangular_ruler:J6e,scissors:X6e,card_file_box:eSe,file_cabinet:tSe,wastebasket:nSe,lock:sSe,unlock:oSe,lock_with_ink_pen:rSe,closed_lock_with_key:iSe,key:aSe,old_key:lSe,hammer:cSe,axe:dSe,pick:uSe,hammer_and_pick:fSe,hammer_and_wrench:hSe,dagger:pSe,crossed_swords:gSe,gun:mSe,boomerang:_Se,bow_and_arrow:bSe,shield:ySe,carpentry_saw:vSe,wrench:wSe,screwdriver:xSe,nut_and_bolt:kSe,gear:ESe,clamp:CSe,balance_scale:ASe,probing_cane:SSe,link:TSe,chains:MSe,hook:OSe,toolbox:RSe,magnet:NSe,ladder:DSe,alembic:LSe,test_tube:ISe,petri_dish:PSe,dna:FSe,microscope:BSe,telescope:$Se,satellite:zSe,syringe:jSe,drop_of_blood:USe,pill:qSe,adhesive_bandage:HSe,stethoscope:VSe,door:GSe,elevator:KSe,mirror:WSe,window:ZSe,bed:YSe,couch_and_lamp:QSe,chair:JSe,toilet:XSe,plunger:eTe,shower:tTe,bathtub:nTe,mouse_trap:sTe,razor:oTe,lotion_bottle:rTe,safety_pin:iTe,broom:aTe,basket:lTe,roll_of_paper:cTe,bucket:dTe,soap:uTe,toothbrush:fTe,sponge:hTe,fire_extinguisher:pTe,shopping_cart:gTe,smoking:mTe,coffin:_Te,headstone:bTe,funeral_urn:yTe,moyai:vTe,placard:wTe,atm:xTe,put_litter_in_its_place:kTe,potable_water:ETe,wheelchair:CTe,mens:ATe,womens:STe,restroom:TTe,baby_symbol:MTe,wc:OTe,passport_control:RTe,customs:NTe,baggage_claim:DTe,left_luggage:LTe,warning:ITe,children_crossing:PTe,no_entry:FTe,no_entry_sign:BTe,no_bicycles:$Te,no_smoking:zTe,do_not_litter:jTe,"non-potable_water":"🚱",no_pedestrians:UTe,no_mobile_phones:qTe,underage:HTe,radioactive:VTe,biohazard:GTe,arrow_up:KTe,arrow_upper_right:WTe,arrow_right:ZTe,arrow_lower_right:YTe,arrow_down:QTe,arrow_lower_left:JTe,arrow_left:XTe,arrow_upper_left:e7e,arrow_up_down:t7e,left_right_arrow:n7e,leftwards_arrow_with_hook:s7e,arrow_right_hook:o7e,arrow_heading_up:r7e,arrow_heading_down:i7e,arrows_clockwise:a7e,arrows_counterclockwise:l7e,back:c7e,end:d7e,on:u7e,soon:f7e,top:h7e,place_of_worship:p7e,atom_symbol:g7e,om:m7e,star_of_david:_7e,wheel_of_dharma:b7e,yin_yang:y7e,latin_cross:v7e,orthodox_cross:w7e,star_and_crescent:x7e,peace_symbol:k7e,menorah:E7e,six_pointed_star:C7e,aries:A7e,taurus:S7e,gemini:T7e,cancer:M7e,leo:O7e,virgo:R7e,libra:N7e,scorpius:D7e,sagittarius:L7e,capricorn:I7e,aquarius:P7e,pisces:F7e,ophiuchus:B7e,twisted_rightwards_arrows:$7e,repeat:z7e,repeat_one:j7e,arrow_forward:U7e,fast_forward:q7e,next_track_button:H7e,play_or_pause_button:V7e,arrow_backward:G7e,rewind:K7e,previous_track_button:W7e,arrow_up_small:Z7e,arrow_double_up:Y7e,arrow_down_small:Q7e,arrow_double_down:J7e,pause_button:X7e,stop_button:eMe,record_button:tMe,eject_button:nMe,cinema:sMe,low_brightness:oMe,high_brightness:rMe,signal_strength:iMe,vibration_mode:aMe,mobile_phone_off:lMe,female_sign:cMe,male_sign:dMe,transgender_symbol:uMe,heavy_multiplication_x:fMe,heavy_plus_sign:hMe,heavy_minus_sign:pMe,heavy_division_sign:gMe,infinity:mMe,bangbang:_Me,interrobang:bMe,question:yMe,grey_question:vMe,grey_exclamation:wMe,exclamation:xMe,heavy_exclamation_mark:kMe,wavy_dash:EMe,currency_exchange:CMe,heavy_dollar_sign:AMe,medical_symbol:SMe,recycle:TMe,fleur_de_lis:MMe,trident:OMe,name_badge:RMe,beginner:NMe,o:DMe,white_check_mark:LMe,ballot_box_with_check:IMe,heavy_check_mark:PMe,x:FMe,negative_squared_cross_mark:BMe,curly_loop:$Me,loop:zMe,part_alternation_mark:jMe,eight_spoked_asterisk:UMe,eight_pointed_black_star:qMe,sparkle:HMe,copyright:VMe,registered:GMe,tm:KMe,hash:WMe,asterisk:ZMe,zero:YMe,one:QMe,two:JMe,three:XMe,four:eOe,five:tOe,six:nOe,seven:sOe,eight:oOe,nine:rOe,keycap_ten:iOe,capital_abcd:aOe,abcd:lOe,symbols:cOe,abc:dOe,a:uOe,ab:fOe,b:hOe,cl:pOe,cool:gOe,free:mOe,information_source:_Oe,id:bOe,m:yOe,new:"🆕",ng:vOe,o2:wOe,ok:xOe,parking:kOe,sos:EOe,up:COe,vs:AOe,koko:SOe,sa:TOe,ideograph_advantage:MOe,accept:OOe,congratulations:ROe,secret:NOe,u6e80:DOe,red_circle:LOe,orange_circle:IOe,yellow_circle:POe,green_circle:FOe,large_blue_circle:BOe,purple_circle:$Oe,brown_circle:zOe,black_circle:jOe,white_circle:UOe,red_square:qOe,orange_square:HOe,yellow_square:VOe,green_square:GOe,blue_square:KOe,purple_square:WOe,brown_square:ZOe,black_large_square:YOe,white_large_square:QOe,black_medium_square:JOe,white_medium_square:XOe,black_medium_small_square:eRe,white_medium_small_square:tRe,black_small_square:nRe,white_small_square:sRe,large_orange_diamond:oRe,large_blue_diamond:rRe,small_orange_diamond:iRe,small_blue_diamond:aRe,small_red_triangle:lRe,small_red_triangle_down:cRe,diamond_shape_with_a_dot_inside:dRe,radio_button:uRe,white_square_button:fRe,black_square_button:hRe,checkered_flag:pRe,triangular_flag_on_post:gRe,crossed_flags:mRe,black_flag:_Re,white_flag:bRe,rainbow_flag:yRe,transgender_flag:vRe,pirate_flag:wRe,ascension_island:xRe,andorra:kRe,united_arab_emirates:ERe,afghanistan:CRe,antigua_barbuda:ARe,anguilla:SRe,albania:TRe,armenia:MRe,angola:ORe,antarctica:RRe,argentina:NRe,american_samoa:DRe,austria:LRe,australia:IRe,aruba:PRe,aland_islands:FRe,azerbaijan:BRe,bosnia_herzegovina:$Re,barbados:zRe,bangladesh:jRe,belgium:URe,burkina_faso:qRe,bulgaria:HRe,bahrain:VRe,burundi:GRe,benin:KRe,st_barthelemy:WRe,bermuda:ZRe,brunei:YRe,bolivia:QRe,caribbean_netherlands:JRe,brazil:XRe,bahamas:eNe,bhutan:tNe,bouvet_island:nNe,botswana:sNe,belarus:oNe,belize:rNe,canada:iNe,cocos_islands:aNe,congo_kinshasa:lNe,central_african_republic:cNe,congo_brazzaville:dNe,switzerland:uNe,cote_divoire:fNe,cook_islands:hNe,chile:pNe,cameroon:gNe,cn:mNe,colombia:_Ne,clipperton_island:bNe,costa_rica:yNe,cuba:vNe,cape_verde:wNe,curacao:xNe,christmas_island:kNe,cyprus:ENe,czech_republic:CNe,de:ANe,diego_garcia:SNe,djibouti:TNe,denmark:MNe,dominica:ONe,dominican_republic:RNe,algeria:NNe,ceuta_melilla:DNe,ecuador:LNe,estonia:INe,egypt:PNe,western_sahara:FNe,eritrea:BNe,es:$Ne,ethiopia:zNe,eu:jNe,european_union:UNe,finland:qNe,fiji:HNe,falkland_islands:VNe,micronesia:GNe,faroe_islands:KNe,fr:WNe,gabon:ZNe,gb:YNe,uk:QNe,grenada:JNe,georgia:XNe,french_guiana:eDe,guernsey:tDe,ghana:nDe,gibraltar:sDe,greenland:oDe,gambia:rDe,guinea:iDe,guadeloupe:aDe,equatorial_guinea:lDe,greece:cDe,south_georgia_south_sandwich_islands:dDe,guatemala:uDe,guam:fDe,guinea_bissau:hDe,guyana:pDe,hong_kong:gDe,heard_mcdonald_islands:mDe,honduras:_De,croatia:bDe,haiti:yDe,hungary:vDe,canary_islands:wDe,indonesia:xDe,ireland:kDe,israel:EDe,isle_of_man:CDe,india:ADe,british_indian_ocean_territory:SDe,iraq:TDe,iran:MDe,iceland:ODe,it:RDe,jersey:NDe,jamaica:DDe,jordan:LDe,jp:IDe,kenya:PDe,kyrgyzstan:FDe,cambodia:BDe,kiribati:$De,comoros:zDe,st_kitts_nevis:jDe,north_korea:UDe,kr:qDe,kuwait:HDe,cayman_islands:VDe,kazakhstan:GDe,laos:KDe,lebanon:WDe,st_lucia:ZDe,liechtenstein:YDe,sri_lanka:QDe,liberia:JDe,lesotho:XDe,lithuania:eLe,luxembourg:tLe,latvia:nLe,libya:sLe,morocco:oLe,monaco:rLe,moldova:iLe,montenegro:aLe,st_martin:lLe,madagascar:cLe,marshall_islands:dLe,macedonia:uLe,mali:fLe,myanmar:hLe,mongolia:pLe,macau:gLe,northern_mariana_islands:mLe,martinique:_Le,mauritania:bLe,montserrat:yLe,malta:vLe,mauritius:wLe,maldives:xLe,malawi:kLe,mexico:ELe,malaysia:CLe,mozambique:ALe,namibia:SLe,new_caledonia:TLe,niger:MLe,norfolk_island:OLe,nigeria:RLe,nicaragua:NLe,netherlands:DLe,norway:LLe,nepal:ILe,nauru:PLe,niue:FLe,new_zealand:BLe,oman:$Le,panama:zLe,peru:jLe,french_polynesia:ULe,papua_new_guinea:qLe,philippines:HLe,pakistan:VLe,poland:GLe,st_pierre_miquelon:KLe,pitcairn_islands:WLe,puerto_rico:ZLe,palestinian_territories:YLe,portugal:QLe,palau:JLe,paraguay:XLe,qatar:eIe,reunion:tIe,romania:nIe,serbia:sIe,ru:oIe,rwanda:rIe,saudi_arabia:iIe,solomon_islands:aIe,seychelles:lIe,sudan:cIe,sweden:dIe,singapore:uIe,st_helena:fIe,slovenia:hIe,svalbard_jan_mayen:pIe,slovakia:gIe,sierra_leone:mIe,san_marino:_Ie,senegal:bIe,somalia:yIe,suriname:vIe,south_sudan:wIe,sao_tome_principe:xIe,el_salvador:kIe,sint_maarten:EIe,syria:CIe,swaziland:AIe,tristan_da_cunha:SIe,turks_caicos_islands:TIe,chad:MIe,french_southern_territories:OIe,togo:RIe,thailand:NIe,tajikistan:DIe,tokelau:LIe,timor_leste:IIe,turkmenistan:PIe,tunisia:FIe,tonga:BIe,tr:$Ie,trinidad_tobago:zIe,tuvalu:jIe,taiwan:UIe,tanzania:qIe,ukraine:HIe,uganda:VIe,us_outlying_islands:GIe,united_nations:KIe,us:WIe,uruguay:ZIe,uzbekistan:YIe,vatican_city:QIe,st_vincent_grenadines:JIe,venezuela:XIe,british_virgin_islands:ePe,us_virgin_islands:tPe,vietnam:nPe,vanuatu:sPe,wallis_futuna:oPe,samoa:rPe,kosovo:iPe,yemen:aPe,mayotte:lPe,south_africa:cPe,zambia:dPe,zimbabwe:uPe,england:fPe,scotland:hPe,wales:pPe};var mPe={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["0&&!l.test(b[_-1])||_+v.lengthh&&(g=new p("text","",0),g.content=d.slice(h,_),m.push(g)),g=new p("emoji","",0),g.markup=x,g.content=n[x],m.push(g),h=_+v.length}),h=0;p--)v=m[p],(v.type==="link_open"||v.type==="link_close")&&v.info==="auto"&&(b-=v.nesting),v.type==="text"&&b===0&&o.test(v.content)&&(_[g].children=m=i(m,p,c(v.content,v.level,f.Token)))}};function yPe(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var vPe=function(e){var n=e.defs,s;e.enabled.length&&(n=Object.keys(n).reduce(function(l,c){return e.enabled.indexOf(c)>=0&&(l[c]=n[c]),l},{})),s=Object.keys(e.shortcuts).reduce(function(l,c){return n[c]?Array.isArray(e.shortcuts[c])?(e.shortcuts[c].forEach(function(d){l[d]=c}),l):(l[e.shortcuts[c]]=c,l):l},{});var o=Object.keys(n),r;o.length===0?r="^$":r=o.map(function(l){return":"+l+":"}).concat(Object.keys(s)).sort().reverse().map(function(l){return yPe(l)}).join("|");var i=RegExp(r),a=RegExp(r,"g");return{defs:n,shortcuts:s,scanRE:i,replaceRE:a}},wPe=_Pe,xPe=bPe,kPe=vPe,EPe=function(e,n){var s={defs:{},shortcuts:{},enabled:[]},o=kPe(e.utils.assign({},s,n||{}));e.renderer.rules.emoji=wPe,e.core.ruler.after("linkify","emoji",xPe(e,o.defs,o.shortcuts,o.scanRE,o.replaceRE))},CPe=gPe,APe=mPe,SPe=EPe,TPe=function(e,n){var s={defs:CPe,shortcuts:APe,enabled:[]},o=e.utils.assign({},s,n||{});SPe(e,o)};const MPe=rs(TPe);var Mu=!1,Os={false:"push",true:"unshift",after:"push",before:"unshift"},Tr={isPermalinkSymbol:!0};function ul(t,e,n,s){var o;if(!Mu){var r="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(r):console.warn(r),Mu=!0}var i=[Object.assign(new n.Token("link_open","a",1),{attrs:[].concat(e.permalinkClass?[["class",e.permalinkClass]]:[],[["href",e.permalinkHref(t,n)]],Object.entries(e.permalinkAttrs(t,n)))}),Object.assign(new n.Token("html_block","",0),{content:e.permalinkSymbol,meta:Tr}),new n.Token("link_close","a",-1)];e.permalinkSpace&&n.tokens[s+1].children[Os[e.permalinkBefore]](Object.assign(new n.Token("text","",0),{content:" "})),(o=n.tokens[s+1].children)[Os[e.permalinkBefore]].apply(o,i)}function xg(t){return"#"+t}function kg(t){return{}}var OPe={class:"header-anchor",symbol:"#",renderHref:xg,renderAttrs:kg};function Po(t){function e(n){return n=Object.assign({},e.defaults,n),function(s,o,r,i){return t(s,n,o,r,i)}}return e.defaults=Object.assign({},OPe),e.renderPermalinkImpl=t,e}var _i=Po(function(t,e,n,s,o){var r,i=[Object.assign(new s.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(t,s)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(t,s)))}),Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:Tr}),new s.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";s.tokens[o+1].children[Os[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(r=s.tokens[o+1].children)[Os[e.placement]].apply(r,i)});Object.assign(_i.defaults,{space:!0,placement:"after",ariaHidden:!1});var $n=Po(_i.renderPermalinkImpl);$n.defaults=Object.assign({},_i.defaults,{ariaHidden:!0});var Eg=Po(function(t,e,n,s,o){var r=[Object.assign(new s.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(t,s)]],Object.entries(e.renderAttrs(t,s)))})].concat(e.safariReaderFix?[new s.Token("span_open","span",1)]:[],s.tokens[o+1].children,e.safariReaderFix?[new s.Token("span_close","span",-1)]:[],[new s.Token("link_close","a",-1)]);s.tokens[o+1]=Object.assign(new s.Token("inline","",0),{children:r})});Object.assign(Eg.defaults,{safariReaderFix:!1});var Ou=Po(function(t,e,n,s,o){var r;if(!["visually-hidden","aria-label","aria-describedby","aria-labelledby"].includes(e.style))throw new Error("`permalink.linkAfterHeader` called with unknown style option `"+e.style+"`");if(!["aria-describedby","aria-labelledby"].includes(e.style)&&!e.assistiveText)throw new Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+e.style+"` style");if(e.style==="visually-hidden"&&!e.visuallyHiddenClass)throw new Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var i=s.tokens[o+1].children.filter(function(f){return f.type==="text"||f.type==="code_inline"}).reduce(function(f,p){return f+p.content},""),a=[],l=[];if(e.class&&l.push(["class",e.class]),l.push(["href",e.renderHref(t,s)]),l.push.apply(l,Object.entries(e.renderAttrs(t,s))),e.style==="visually-hidden"){if(a.push(Object.assign(new s.Token("span_open","span",1),{attrs:[["class",e.visuallyHiddenClass]]}),Object.assign(new s.Token("text","",0),{content:e.assistiveText(i)}),new s.Token("span_close","span",-1)),e.space){var c=typeof e.space=="string"?e.space:" ";a[Os[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:c}))}a[Os[e.placement]](Object.assign(new s.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:Tr}),new s.Token("span_close","span",-1))}else a.push(Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:Tr}));e.style==="aria-label"?l.push(["aria-label",e.assistiveText(i)]):["aria-describedby","aria-labelledby"].includes(e.style)&&l.push([e.style,t]);var d=[Object.assign(new s.Token("link_open","a",1),{attrs:l})].concat(a,[new s.Token("link_close","a",-1)]);(r=s.tokens).splice.apply(r,[o+3,0].concat(d)),e.wrapper&&(s.tokens.splice(o,0,Object.assign(new s.Token("html_block","",0),{content:e.wrapper[0]+` -`})),s.tokens.splice(o+3+d.length+1,0,Object.assign(new s.Token("html_block","",0),{content:e.wrapper[1]+` -`})))});function Ru(t,e,n,s){var o=t,r=s;if(n&&Object.prototype.hasOwnProperty.call(e,o))throw new Error("User defined `id` attribute `"+t+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(e,o);)o=t+"-"+r,r+=1;return e[o]=!0,o}function ps(t,e){e=Object.assign({},ps.defaults,e),t.core.ruler.push("anchor",function(n){for(var s,o={},r=n.tokens,i=Array.isArray(e.level)?(s=e.level,function(f){return s.includes(f)}):function(f){return function(p){return p>=f}}(e.level),a=0;ap.match(f))}n.tabindex==!0&&(o.tokens[i-1].attrPush(["tabindex",r]),r++),n.lazyLoading==!0&&d.attrPush(["loading","lazy"])}}}e.core.ruler.before("linkify","implicit_figures",s)};const NPe=rs(RPe);function Cg(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],s=typeof n;(s==="object"||s==="function")&&!Object.isFrozen(n)&&Cg(n)}),t}class Nu{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Ag(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function An(t,...e){const n=Object.create(null);for(const s in t)n[s]=t[s];return e.forEach(function(s){for(const o in s)n[o]=s[o]}),n}const DPe="",Du=t=>!!t.scope,LPe=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((s,o)=>`${s}${"_".repeat(o+1)}`)].join(" ")}return`${e}${t}`};class IPe{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Ag(e)}openNode(e){if(!Du(e))return;const n=LPe(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){Du(e)&&(this.buffer+=DPe)}value(){return this.buffer}span(e){this.buffer+=``}}const Lu=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class fc{constructor(){this.rootNode=Lu(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=Lu({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(s=>this._walk(e,s)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{fc._collapse(n)}))}}class PPe extends fc{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const s=e.root;n&&(s.scope=`language:${n}`),this.add(s)}toHTML(){return new IPe(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Ao(t){return t?typeof t=="string"?t:t.source:null}function Sg(t){return is("(?=",t,")")}function FPe(t){return is("(?:",t,")*")}function BPe(t){return is("(?:",t,")?")}function is(...t){return t.map(n=>Ao(n)).join("")}function $Pe(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function hc(...t){return"("+($Pe(t).capture?"":"?:")+t.map(s=>Ao(s)).join("|")+")"}function Tg(t){return new RegExp(t.toString()+"|").exec("").length-1}function zPe(t,e){const n=t&&t.exec(e);return n&&n.index===0}const jPe=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function pc(t,{joinWith:e}){let n=0;return t.map(s=>{n+=1;const o=n;let r=Ao(s),i="";for(;r.length>0;){const a=jPe.exec(r);if(!a){i+=r;break}i+=r.substring(0,a.index),r=r.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?i+="\\"+String(Number(a[1])+o):(i+=a[0],a[0]==="("&&n++)}return i}).map(s=>`(${s})`).join(e)}const UPe=/\b\B/,Mg="[a-zA-Z]\\w*",gc="[a-zA-Z_]\\w*",Og="\\b\\d+(\\.\\d+)?",Rg="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ng="\\b(0b[01]+)",qPe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",HPe=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=is(e,/.*\b/,t.binary,/\b.*/)),An({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,s)=>{n.index!==0&&s.ignoreMatch()}},t)},So={begin:"\\\\[\\s\\S]",relevance:0},VPe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[So]},GPe={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[So]},KPe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},bi=function(t,e,n={}){const s=An({scope:"comment",begin:t,end:e,contains:[]},n);s.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=hc("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return s.contains.push({begin:is(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s},WPe=bi("//","$"),ZPe=bi("/\\*","\\*/"),YPe=bi("#","$"),QPe={scope:"number",begin:Og,relevance:0},JPe={scope:"number",begin:Rg,relevance:0},XPe={scope:"number",begin:Ng,relevance:0},eFe={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[So,{begin:/\[/,end:/\]/,relevance:0,contains:[So]}]}]},tFe={scope:"title",begin:Mg,relevance:0},nFe={scope:"title",begin:gc,relevance:0},sFe={begin:"\\.\\s*"+gc,relevance:0},oFe=function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})};var Yo=Object.freeze({__proto__:null,MATCH_NOTHING_RE:UPe,IDENT_RE:Mg,UNDERSCORE_IDENT_RE:gc,NUMBER_RE:Og,C_NUMBER_RE:Rg,BINARY_NUMBER_RE:Ng,RE_STARTERS_RE:qPe,SHEBANG:HPe,BACKSLASH_ESCAPE:So,APOS_STRING_MODE:VPe,QUOTE_STRING_MODE:GPe,PHRASAL_WORDS_MODE:KPe,COMMENT:bi,C_LINE_COMMENT_MODE:WPe,C_BLOCK_COMMENT_MODE:ZPe,HASH_COMMENT_MODE:YPe,NUMBER_MODE:QPe,C_NUMBER_MODE:JPe,BINARY_NUMBER_MODE:XPe,REGEXP_MODE:eFe,TITLE_MODE:tFe,UNDERSCORE_TITLE_MODE:nFe,METHOD_GUARD:sFe,END_SAME_AS_BEGIN:oFe});function rFe(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function iFe(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function aFe(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=rFe,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function lFe(t,e){Array.isArray(t.illegal)&&(t.illegal=hc(...t.illegal))}function cFe(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function dFe(t,e){t.relevance===void 0&&(t.relevance=1)}const uFe=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(s=>{delete t[s]}),t.keywords=n.keywords,t.begin=is(n.beforeMatch,Sg(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},fFe=["of","and","for","in","not","or","if","then","parent","list","value"],hFe="keyword";function Dg(t,e,n=hFe){const s=Object.create(null);return typeof t=="string"?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach(function(r){Object.assign(s,Dg(t[r],e,r))}),s;function o(r,i){e&&(i=i.map(a=>a.toLowerCase())),i.forEach(function(a){const l=a.split("|");s[l[0]]=[r,pFe(l[0],l[1])]})}}function pFe(t,e){return e?Number(e):gFe(t)?0:1}function gFe(t){return fFe.includes(t.toLowerCase())}const Iu={},Yn=t=>{console.error(t)},Pu=(t,...e)=>{console.log(`WARN: ${t}`,...e)},us=(t,e)=>{Iu[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),Iu[`${t}/${e}`]=!0)},Mr=new Error;function Lg(t,e,{key:n}){let s=0;const o=t[n],r={},i={};for(let a=1;a<=e.length;a++)i[a+s]=o[a],r[a+s]=!0,s+=Tg(e[a-1]);t[n]=i,t[n]._emit=r,t[n]._multi=!0}function mFe(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Yn("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Mr;if(typeof t.beginScope!="object"||t.beginScope===null)throw Yn("beginScope must be object"),Mr;Lg(t,t.begin,{key:"beginScope"}),t.begin=pc(t.begin,{joinWith:""})}}function _Fe(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Yn("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Mr;if(typeof t.endScope!="object"||t.endScope===null)throw Yn("endScope must be object"),Mr;Lg(t,t.end,{key:"endScope"}),t.end=pc(t.end,{joinWith:""})}}function bFe(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function yFe(t){bFe(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),mFe(t),_Fe(t)}function vFe(t){function e(i,a){return new RegExp(Ao(i),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(a?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=Tg(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(pc(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const c=l.findIndex((f,p)=>p>0&&f!==void 0),d=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,d)}}class s{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new n;return this.rules.slice(a).forEach(([c,d])=>l.addRule(c,d)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const d=this.getMatcher(0);d.lastIndex=this.lastIndex+1,c=d.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function o(i){const a=new s;return i.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),i.terminatorEnd&&a.addRule(i.terminatorEnd,{type:"end"}),i.illegal&&a.addRule(i.illegal,{type:"illegal"}),a}function r(i,a){const l=i;if(i.isCompiled)return l;[iFe,cFe,yFe,uFe].forEach(d=>d(i,a)),t.compilerExtensions.forEach(d=>d(i,a)),i.__beforeBegin=null,[aFe,lFe,dFe].forEach(d=>d(i,a)),i.isCompiled=!0;let c=null;return typeof i.keywords=="object"&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),c=i.keywords.$pattern,delete i.keywords.$pattern),c=c||/\w+/,i.keywords&&(i.keywords=Dg(i.keywords,t.case_insensitive)),l.keywordPatternRe=e(c,!0),a&&(i.begin||(i.begin=/\B|\b/),l.beginRe=e(l.begin),!i.end&&!i.endsWithParent&&(i.end=/\B|\b/),i.end&&(l.endRe=e(l.end)),l.terminatorEnd=Ao(l.end)||"",i.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(i.end?"|":"")+a.terminatorEnd)),i.illegal&&(l.illegalRe=e(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map(function(d){return wFe(d==="self"?i:d)})),i.contains.forEach(function(d){r(d,l)}),i.starts&&r(i.starts,a),l.matcher=o(l),l}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=An(t.classNameAliases||{}),r(t)}function Ig(t){return t?t.endsWithParent||Ig(t.starts):!1}function wFe(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return An(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:Ig(t)?An(t,{starts:t.starts?An(t.starts):null}):Object.isFrozen(t)?An(t):t}var xFe="11.8.0";class kFe extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const Xi=Ag,Fu=An,Bu=Symbol("nomatch"),EFe=7,Pg=function(t){const e=Object.create(null),n=Object.create(null),s=[];let o=!0;const r="Could not find the language '{}', did you forget to load/include a language module?",i={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:PPe};function l(S){return a.noHighlightRe.test(S)}function c(S){let q=S.className+" ";q+=S.parentNode?S.parentNode.className:"";const V=a.languageDetectRe.exec(q);if(V){const be=k(V[1]);return be||(Pu(r.replace("{}",V[1])),Pu("Falling back to no-highlight mode for this block.",S)),be?V[1]:"no-highlight"}return q.split(/\s+/).find(be=>l(be)||k(be))}function d(S,q,V){let be="",ge="";typeof q=="object"?(be=S,V=q.ignoreIllegals,ge=q.language):(us("10.7.0","highlight(lang, code, ...args) has been deprecated."),us("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),ge=S,be=q),V===void 0&&(V=!0);const ee={code:be,language:ge};ae("before:highlight",ee);const ve=ee.result?ee.result:f(ee.language,ee.code,V);return ve.code=ee.code,ae("after:highlight",ve),ve}function f(S,q,V,be){const ge=Object.create(null);function ee(K,oe){return K.keywords[oe]}function ve(){if(!z.keywords){U.addText(Z);return}let K=0;z.keywordPatternRe.lastIndex=0;let oe=z.keywordPatternRe.exec(Z),pe="";for(;oe;){pe+=Z.substring(K,oe.index);const Ce=$.case_insensitive?oe[0].toLowerCase():oe[0],Pe=ee(z,Ce);if(Pe){const[qe,De]=Pe;if(U.addText(pe),pe="",ge[Ce]=(ge[Ce]||0)+1,ge[Ce]<=EFe&&(ie+=De),qe.startsWith("_"))pe+=oe[0];else{const Ye=$.classNameAliases[qe]||qe;J(oe[0],Ye)}}else pe+=oe[0];K=z.keywordPatternRe.lastIndex,oe=z.keywordPatternRe.exec(Z)}pe+=Z.substring(K),U.addText(pe)}function Ee(){if(Z==="")return;let K=null;if(typeof z.subLanguage=="string"){if(!e[z.subLanguage]){U.addText(Z);return}K=f(z.subLanguage,Z,!0,se[z.subLanguage]),se[z.subLanguage]=K._top}else K=g(Z,z.subLanguage.length?z.subLanguage:null);z.relevance>0&&(ie+=K.relevance),U.__addSublanguage(K._emitter,K.language)}function N(){z.subLanguage!=null?Ee():ve(),Z=""}function J(K,oe){K!==""&&(U.startScope(oe),U.addText(K),U.endScope())}function H(K,oe){let pe=1;const Ce=oe.length-1;for(;pe<=Ce;){if(!K._emit[pe]){pe++;continue}const Pe=$.classNameAliases[K[pe]]||K[pe],qe=oe[pe];Pe?J(qe,Pe):(Z=qe,ve(),Z=""),pe++}}function te(K,oe){return K.scope&&typeof K.scope=="string"&&U.openNode($.classNameAliases[K.scope]||K.scope),K.beginScope&&(K.beginScope._wrap?(J(Z,$.classNameAliases[K.beginScope._wrap]||K.beginScope._wrap),Z=""):K.beginScope._multi&&(H(K.beginScope,oe),Z="")),z=Object.create(K,{parent:{value:z}}),z}function X(K,oe,pe){let Ce=zPe(K.endRe,pe);if(Ce){if(K["on:end"]){const Pe=new Nu(K);K["on:end"](oe,Pe),Pe.isMatchIgnored&&(Ce=!1)}if(Ce){for(;K.endsParent&&K.parent;)K=K.parent;return K}}if(K.endsWithParent)return X(K.parent,oe,pe)}function he(K){return z.matcher.regexIndex===0?(Z+=K[0],1):(xe=!0,0)}function ce(K){const oe=K[0],pe=K.rule,Ce=new Nu(pe),Pe=[pe.__beforeBegin,pe["on:begin"]];for(const qe of Pe)if(qe&&(qe(K,Ce),Ce.isMatchIgnored))return he(oe);return pe.skip?Z+=oe:(pe.excludeBegin&&(Z+=oe),N(),!pe.returnBegin&&!pe.excludeBegin&&(Z=oe)),te(pe,K),pe.returnBegin?0:oe.length}function w(K){const oe=K[0],pe=q.substring(K.index),Ce=X(z,K,pe);if(!Ce)return Bu;const Pe=z;z.endScope&&z.endScope._wrap?(N(),J(oe,z.endScope._wrap)):z.endScope&&z.endScope._multi?(N(),H(z.endScope,K)):Pe.skip?Z+=oe:(Pe.returnEnd||Pe.excludeEnd||(Z+=oe),N(),Pe.excludeEnd&&(Z=oe));do z.scope&&U.closeNode(),!z.skip&&!z.subLanguage&&(ie+=z.relevance),z=z.parent;while(z!==Ce.parent);return Ce.starts&&te(Ce.starts,K),Pe.returnEnd?0:oe.length}function E(){const K=[];for(let oe=z;oe!==$;oe=oe.parent)oe.scope&&K.unshift(oe.scope);K.forEach(oe=>U.openNode(oe))}let P={};function B(K,oe){const pe=oe&&oe[0];if(Z+=K,pe==null)return N(),0;if(P.type==="begin"&&oe.type==="end"&&P.index===oe.index&&pe===""){if(Z+=q.slice(oe.index,oe.index+1),!o){const Ce=new Error(`0 width match regex (${S})`);throw Ce.languageName=S,Ce.badRule=P.rule,Ce}return 1}if(P=oe,oe.type==="begin")return ce(oe);if(oe.type==="illegal"&&!V){const Ce=new Error('Illegal lexeme "'+pe+'" for mode "'+(z.scope||"")+'"');throw Ce.mode=z,Ce}else if(oe.type==="end"){const Ce=w(oe);if(Ce!==Bu)return Ce}if(oe.type==="illegal"&&pe==="")return 1;if(de>1e5&&de>oe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=pe,pe.length}const $=k(S);if(!$)throw Yn(r.replace("{}",S)),new Error('Unknown language: "'+S+'"');const ne=vFe($);let re="",z=be||ne;const se={},U=new a.__emitter(a);E();let Z="",ie=0,ue=0,de=0,xe=!1;try{if($.__emitTokens)$.__emitTokens(q,U);else{for(z.matcher.considerAll();;){de++,xe?xe=!1:z.matcher.considerAll(),z.matcher.lastIndex=ue;const K=z.matcher.exec(q);if(!K)break;const oe=q.substring(ue,K.index),pe=B(oe,K);ue=K.index+pe}B(q.substring(ue))}return U.finalize(),re=U.toHTML(),{language:S,value:re,relevance:ie,illegal:!1,_emitter:U,_top:z}}catch(K){if(K.message&&K.message.includes("Illegal"))return{language:S,value:Xi(q),illegal:!0,relevance:0,_illegalBy:{message:K.message,index:ue,context:q.slice(ue-100,ue+100),mode:K.mode,resultSoFar:re},_emitter:U};if(o)return{language:S,value:Xi(q),illegal:!1,relevance:0,errorRaised:K,_emitter:U,_top:z};throw K}}function p(S){const q={value:Xi(S),illegal:!1,relevance:0,_top:i,_emitter:new a.__emitter(a)};return q._emitter.addText(S),q}function g(S,q){q=q||a.languages||Object.keys(e);const V=p(S),be=q.filter(k).filter(L).map(N=>f(N,S,!1));be.unshift(V);const ge=be.sort((N,J)=>{if(N.relevance!==J.relevance)return J.relevance-N.relevance;if(N.language&&J.language){if(k(N.language).supersetOf===J.language)return 1;if(k(J.language).supersetOf===N.language)return-1}return 0}),[ee,ve]=ge,Ee=ee;return Ee.secondBest=ve,Ee}function h(S,q,V){const be=q&&n[q]||V;S.classList.add("hljs"),S.classList.add(`language-${be}`)}function m(S){let q=null;const V=c(S);if(l(V))return;if(ae("before:highlightElement",{el:S,language:V}),S.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(S)),a.throwUnescapedHTML))throw new kFe("One of your code blocks includes unescaped HTML.",S.innerHTML);q=S;const be=q.textContent,ge=V?d(be,{language:V,ignoreIllegals:!0}):g(be);S.innerHTML=ge.value,h(S,V,ge.language),S.result={language:ge.language,re:ge.relevance,relevance:ge.relevance},ge.secondBest&&(S.secondBest={language:ge.secondBest.language,relevance:ge.secondBest.relevance}),ae("after:highlightElement",{el:S,result:ge,text:be})}function v(S){a=Fu(a,S)}const _=()=>{C(),us("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function b(){C(),us("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let x=!1;function C(){if(document.readyState==="loading"){x=!0;return}document.querySelectorAll(a.cssSelector).forEach(m)}function R(){x&&C()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",R,!1);function O(S,q){let V=null;try{V=q(t)}catch(be){if(Yn("Language definition for '{}' could not be registered.".replace("{}",S)),o)Yn(be);else throw be;V=i}V.name||(V.name=S),e[S]=V,V.rawDefinition=q.bind(null,t),V.aliases&&T(V.aliases,{languageName:S})}function D(S){delete e[S];for(const q of Object.keys(n))n[q]===S&&delete n[q]}function y(){return Object.keys(e)}function k(S){return S=(S||"").toLowerCase(),e[S]||e[n[S]]}function T(S,{languageName:q}){typeof S=="string"&&(S=[S]),S.forEach(V=>{n[V.toLowerCase()]=q})}function L(S){const q=k(S);return q&&!q.disableAutodetect}function F(S){S["before:highlightBlock"]&&!S["before:highlightElement"]&&(S["before:highlightElement"]=q=>{S["before:highlightBlock"](Object.assign({block:q.el},q))}),S["after:highlightBlock"]&&!S["after:highlightElement"]&&(S["after:highlightElement"]=q=>{S["after:highlightBlock"](Object.assign({block:q.el},q))})}function Q(S){F(S),s.push(S)}function I(S){const q=s.indexOf(S);q!==-1&&s.splice(q,1)}function ae(S,q){const V=S;s.forEach(function(be){be[V]&&be[V](q)})}function W(S){return us("10.7.0","highlightBlock will be removed entirely in v12.0"),us("10.7.0","Please use highlightElement now."),m(S)}Object.assign(t,{highlight:d,highlightAuto:g,highlightAll:C,highlightElement:m,highlightBlock:W,configure:v,initHighlighting:_,initHighlightingOnLoad:b,registerLanguage:O,unregisterLanguage:D,listLanguages:y,getLanguage:k,registerAliases:T,autoDetection:L,inherit:Fu,addPlugin:Q,removePlugin:I}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString=xFe,t.regex={concat:is,lookahead:Sg,either:hc,optional:BPe,anyNumberOfTimes:FPe};for(const S in Yo)typeof Yo[S]=="object"&&Cg(Yo[S]);return Object.assign(t,Yo),t},Rs=Pg({});Rs.newInstance=()=>Pg({});var CFe=Rs;Rs.HighlightJS=Rs;Rs.default=Rs;var ea,$u;function AFe(){if($u)return ea;$u=1;function t(e){const n=e.regex,s=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(i,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),d={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[i,c,l,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[i,a,c,l]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:s,relevance:0,starts:d}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(s,/>/))),contains:[{className:"name",begin:s,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return ea=t,ea}var ta,zu;function SFe(){if(zu)return ta;zu=1;function t(e){const n=e.regex,s={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[s]}]};Object.assign(s,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,r]};r.contains.push(a);const l={className:"",begin:/\\"/},c={className:"string",begin:/'/,end:/'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,s]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=e.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},h=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],m=["true","false"],v={match:/(\/[a-z._-]+)+/},_=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],b=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],x=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],C=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:m,built_in:[..._,...b,"set","shopt",...x,...C]},contains:[p,e.SHEBANG(),g,d,e.HASH_COMMENT_MODE,i,v,a,l,c,s]}}return ta=t,ta}var na,ju;function TFe(){if(ju)return na;ju=1;function t(e){const n=e.regex,s=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",i="<[^<>]+>",a="("+o+"|"+n.optional(r)+"[a-zA-Z_]\\w*"+n.optional(i)+")",l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+c+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},f={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},s,e.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(r)+e.IDENT_RE,relevance:0},h=n.optional(r)+e.IDENT_RE+"\\s*\\(",_={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},b=[p,l,s,e.C_BLOCK_COMMENT_MODE,f,d],x={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:_,contains:b.concat([{begin:/\(/,end:/\)/,keywords:_,contains:b.concat(["self"]),relevance:0}]),relevance:0},C={begin:"("+a+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:_,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:_,relevance:0},{begin:h,returnBegin:!0,contains:[e.inherit(g,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[s,e.C_BLOCK_COMMENT_MODE,d,f,l,{begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:["self",s,e.C_BLOCK_COMMENT_MODE,d,f,l]}]},l,s,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C",aliases:["h"],keywords:_,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:p,strings:d,keywords:_}}}return na=t,na}var sa,Uu;function MFe(){if(Uu)return sa;Uu=1;function t(e){const n=e.regex,s=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",i="<[^<>]+>",a="(?!struct)("+o+"|"+n.optional(r)+"[a-zA-Z_]\\w*"+n.optional(i)+")",l={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",d={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+c+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},f={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(d,{className:"string"}),{className:"string",begin:/<.*?>/},s,e.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(r)+e.IDENT_RE,relevance:0},h=n.optional(r)+e.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],v=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],_=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],R={type:v,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:_},O={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},D=[O,p,l,s,e.C_BLOCK_COMMENT_MODE,f,d],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:R,contains:D.concat([{begin:/\(/,end:/\)/,keywords:R,contains:D.concat(["self"]),relevance:0}]),relevance:0},k={className:"function",begin:"("+a+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:R,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:R,relevance:0},{begin:h,returnBegin:!0,contains:[g],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[d,f]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:[s,e.C_BLOCK_COMMENT_MODE,d,f,l,{begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:["self",s,e.C_BLOCK_COMMENT_MODE,d,f,l]}]},l,s,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:R,illegal:"",keywords:R,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:R},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return sa=t,sa}var oa,qu;function OFe(){if(qu)return oa;qu=1;function t(e){const n=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],s=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],o=["default","false","null","true"],r=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],i=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:r.concat(i),built_in:n,literal:o},l=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},f=e.inherit(d,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:a},g=e.inherit(p,{illegal:/\n/}),h={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,g]},m={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},v=e.inherit(m,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]});p.contains=[m,h,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,c,e.C_BLOCK_COMMENT_MODE],g.contains=[v,h,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,c,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const _={variants:[m,h,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},b={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},x=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},_,c,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+x+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:s.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,b],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[_,c,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},C]}}return oa=t,oa}var ra,Hu;function RFe(){if(Hu)return ra;Hu=1;const t=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],r=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","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-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-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","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","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","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","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","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","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","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-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function i(a){const l=a.regex,c=t(a),d={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},f="and or not only",p=/@-?\w[\w]*(-\w+)*/,g="[a-zA-Z-][a-zA-Z0-9_-]*",h=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[c.BLOCK_COMMENT,d,c.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+g,relevance:0},c.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+s.join("|")+")"},{begin:":(:)?("+o.join("|")+")"}]},c.CSS_VARIABLE,{className:"attribute",begin:"\\b("+r.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[c.BLOCK_COMMENT,c.HEXCOLOR,c.IMPORTANT,c.CSS_NUMBER_MODE,...h,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...h,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},c.FUNCTION_DISPATCH]},{begin:l.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:p},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:f,attribute:n.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...h,c.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b"}]}}return ra=i,ra}var ia,Vu;function NFe(){if(Vu)return ia;Vu=1;function t(e){const n=e.regex,s={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={begin:"^[-\\*]{3,}",end:"$"},r={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},i={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},l=/[A-Za-z][A-Za-z0-9+.-]*/,c={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n.concat(/\[.+?\]\(/,l,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},d={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},f={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=e.inherit(d,{contains:[]}),g=e.inherit(f,{contains:[]});d.contains.push(g),f.contains.push(p);let h=[s,c];return[d,f,p,g].forEach(_=>{_.contains=_.contains.concat(h)}),h=h.concat(d,f),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:h},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:h}]}]},s,i,d,f,{className:"quote",begin:"^>\\s+",contains:h,end:"$"},r,o,c,a]}}return ia=t,ia}var aa,Gu;function DFe(){if(Gu)return aa;Gu=1;function t(e){const n=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return aa=t,aa}var la,Ku;function LFe(){if(Ku)return la;Ku=1;function t(e){const n=e.regex,s="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",o=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),r=n.concat(o,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},l={className:"doctag",begin:"@[A-Za-z]+"},c={begin:"#<",end:">"},d=[e.COMMENT("#","$",{contains:[l]}),e.COMMENT("^=begin","^=end",{contains:[l],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],f={className:"subst",begin:/#\{/,end:/\}/,keywords:a},p={className:"string",contains:[e.BACKSLASH_ESCAPE,f],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:n.concat(/<<[-~]?'?/,n.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,f]})]}]},g="[1-9](_?[0-9])*|0",h="[0-9](_?[0-9])*",m={className:"number",relevance:0,variants:[{begin:`\\b(${g})(\\.(${h}))?([eE][+-]?(${h})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},v={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},D=[p,{variants:[{match:[/class\s+/,r,/\s+<\s+/,r]},{match:[/\b(class|module)\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,r],scope:{2:"title.class"},keywords:a},{relevance:0,match:[r,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:o,scope:"title.class"},{match:[/def/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[v]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[p,{begin:s}],relevance:0},m,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,f],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(c,d),relevance:0}].concat(c,d);f.contains=D,v.contains=D;const y="[>?]>",k="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",T="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",L=[{begin:/^\s*=>/,starts:{end:"$",contains:D}},{className:"meta.prompt",begin:"^("+y+"|"+k+"|"+T+")(?=[ ])",starts:{end:"$",keywords:a,contains:D}}];return d.unshift(c),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(L).concat(d).concat(D)}}return la=t,la}var ca,Wu;function IFe(){if(Wu)return ca;Wu=1;function t(e){const i={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:i,illegal:"o(i,a,l-1))}function r(i){const a=i.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",c=l+o("(?:<"+l+"~~~(?:\\s*,\\s*"+l+"~~~)*>)?",/~~~/g,2),h={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},m={className:"meta",begin:"@"+l,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},v={className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[i.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:h,illegal:/<\/|#/,contains:[i.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[i.BACKSLASH_ESCAPE]},i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,l),/\s+/,l,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,l],className:{1:"keyword",3:"title.class"},contains:[v,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+c+"\\s+)",i.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:h,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[m,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,s,i.C_BLOCK_COMMENT_MODE]},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},s,m]}}return fa=r,fa}var ha,Ju;function $Fe(){if(Ju)return ha;Ju=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],o=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(r,s,o);function l(c){const d=c.regex,f=(H,{after:te})=>{const X="",end:""},h=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(H,te)=>{const X=H[0].length+H.index,he=H.input[X];if(he==="<"||he===","){te.ignoreMatch();return}he===">"&&(f(H,{after:X})||te.ignoreMatch());let ce;const w=H.input.substring(X);if(ce=w.match(/^\s*=/)){te.ignoreMatch();return}if((ce=w.match(/^\s+extends\s+/))&&ce.index===0){te.ignoreMatch();return}}},v={$pattern:t,keyword:e,literal:n,built_in:a,"variable.language":i},_="[0-9](_?[0-9])*",b=`\\.(${_})`,x="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",C={className:"number",variants:[{begin:`(\\b(${x})((${b})|\\.)?|(${b}))[eE][+-]?(${_})\\b`},{begin:`\\b(${x})\\b((${b})\\b|\\.)?|(${b})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},R={className:"subst",begin:"\\$\\{",end:"\\}",keywords:v,contains:[]},O={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,R],subLanguage:"xml"}},D={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,R],subLanguage:"css"}},y={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,R],subLanguage:"graphql"}},k={className:"string",begin:"`",end:"`",contains:[c.BACKSLASH_ESCAPE,R]},L={className:"comment",variants:[c.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:p+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),c.C_BLOCK_COMMENT_MODE,c.C_LINE_COMMENT_MODE]},F=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,O,D,y,k,{match:/\$\d+/},C];R.contains=F.concat({begin:/\{/,end:/\}/,keywords:v,contains:["self"].concat(F)});const Q=[].concat(L,R.contains),I=Q.concat([{begin:/\(/,end:/\)/,keywords:v,contains:["self"].concat(Q)}]),ae={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,contains:I},W={variants:[{match:[/class/,/\s+/,p,/\s+/,/extends/,/\s+/,d.concat(p,"(",d.concat(/\./,p),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,p],scope:{1:"keyword",3:"title.class"}}]},S={relevance:0,match:d.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...o]}},q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},V={variants:[{match:[/function/,/\s+/,p,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[ae],illegal:/%/},be={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ge(H){return d.concat("(?!",H.join("|"),")")}const ee={match:d.concat(/\b/,ge([...r,"super","import"]),p,d.lookahead(/\(/)),className:"title.function",relevance:0},ve={begin:d.concat(/\./,d.lookahead(d.concat(p,/(?![0-9A-Za-z$_(])/))),end:p,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ee={match:[/get|set/,/\s+/,p,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},ae]},N="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+c.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,d.lookahead(N)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[ae]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:v,exports:{PARAMS_CONTAINS:I,CLASS_REFERENCE:S},illegal:/#(?![$_A-z])/,contains:[c.SHEBANG({label:"shebang",binary:"node",relevance:5}),q,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,O,D,y,k,L,{match:/\$\d+/},C,S,{className:"attr",begin:p+d.lookahead(":"),relevance:0},J,{begin:"("+c.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[L,c.REGEXP_MODE,{className:"function",begin:N,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:c.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,contains:I}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:h},{begin:m.begin,"on:begin":m.isTrulyOpeningTag,end:m.end}],subLanguage:"xml",contains:[{begin:m.begin,end:m.end,skip:!0,contains:["self"]}]}]},V,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+c.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[ae,c.inherit(c.TITLE_MODE,{begin:p,className:"title.function"})]},{match:/\.\.\./,relevance:0},ve,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[ae]},ee,be,W,Ee,{match:/\$[(.]/}]}}return ha=l,ha}var pa,Xu;function zFe(){if(Xu)return pa;Xu=1;function t(e){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},s={match:/[{}[\],:]/,className:"punctuation",relevance:0},o=["true","false","null"],r={scope:"literal",beginKeywords:o.join(" ")};return{name:"JSON",keywords:{literal:o},contains:[n,s,e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return pa=t,pa}var ga,ef;function jFe(){if(ef)return ga;ef=1;var t="[0-9](_*[0-9])*",e=`\\.(${t})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${t})((${e})|\\.)?|(${e}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function o(r){const i={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},l={className:"symbol",begin:r.UNDERSCORE_IDENT_RE+"@"},c={className:"subst",begin:/\$\{/,end:/\}/,contains:[r.C_NUMBER_MODE]},d={className:"variable",begin:"\\$"+r.UNDERSCORE_IDENT_RE},f={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[d,c]},{begin:"'",end:"'",illegal:/\n/,contains:[r.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[r.BACKSLASH_ESCAPE,d,c]}]};c.contains.push(f);const p={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+r.UNDERSCORE_IDENT_RE+")?"},g={className:"meta",begin:"@"+r.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[r.inherit(f,{className:"string"}),"self"]}]},h=s,m=r.COMMENT("/\\*","\\*/",{contains:[r.C_BLOCK_COMMENT_MODE]}),v={variants:[{className:"type",begin:r.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},_=v;return _.variants[1].contains=[v],v.variants[1].contains=[_],{name:"Kotlin",aliases:["kt","kts"],keywords:i,contains:[r.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),r.C_LINE_COMMENT_MODE,m,a,l,p,g,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:i,relevance:5,contains:[{begin:r.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[r.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:i,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[v,r.C_LINE_COMMENT_MODE,m],relevance:0},r.C_LINE_COMMENT_MODE,m,p,g,f,r.C_NUMBER_MODE]},m]},{begin:[/class|interface|trait/,/\s+/,r.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},r.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},p,g]},f,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` -`},h]}}return ga=o,ga}var ma,tf;function UFe(){if(tf)return ma;tf=1;const t=l=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:l.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:l.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],r=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","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-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-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","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","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","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","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","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","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","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-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),i=s.concat(o);function a(l){const c=t(l),d=i,f="and or not only",p="[\\w-]+",g="("+p+"|@\\{"+p+"\\})",h=[],m=[],v=function(L){return{className:"string",begin:"~?"+L+".*?"+L}},_=function(L,F,Q){return{className:L,begin:F,relevance:Q}},b={$pattern:/[a-z-]+/,keyword:f,attribute:n.join(" ")},x={begin:"\\(",end:"\\)",contains:m,keywords:b,relevance:0};m.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,v("'"),v('"'),c.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},c.HEXCOLOR,x,_("variable","@@?"+p,10),_("variable","@\\{"+p+"\\}"),_("built_in","~?`[^`]*?`"),{className:"attribute",begin:p+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},c.IMPORTANT,{beginKeywords:"and not"},c.FUNCTION_DISPATCH);const C=m.concat({begin:/\{/,end:/\}/,contains:h}),R={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(m)},O={begin:g+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},c.CSS_VARIABLE,{className:"attribute",begin:"\\b("+r.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:m}}]},D={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:b,returnEnd:!0,contains:m,relevance:0}},y={className:"variable",variants:[{begin:"@"+p+"\\s*:",relevance:15},{begin:"@"+p}],starts:{end:"[;}]",returnEnd:!0,contains:C}},k={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:g,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,R,_("keyword","all\\b"),_("variable","@\\{"+p+"\\}"),{begin:"\\b("+e.join("|")+")\\b",className:"selector-tag"},c.CSS_NUMBER_MODE,_("selector-tag",g,0),_("selector-id","#"+g),_("selector-class","\\."+g,0),_("selector-tag","&",0),c.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+s.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+o.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:C},{begin:"!important"},c.FUNCTION_DISPATCH]},T={begin:p+`:(:)?(${d.join("|")})`,returnBegin:!0,contains:[k]};return h.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,D,y,T,O,k,R,c.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:h}}return ma=a,ma}var _a,nf;function qFe(){if(nf)return _a;nf=1;function t(e){const n="\\[=*\\[",s="\\]=*\\]",o={begin:n,end:s,contains:["self"]},r=[e.COMMENT("--(?!"+n+")","$"),e.COMMENT("--"+n,s,{contains:[o],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:r.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:r}].concat(r)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:n,end:s,contains:[o],relevance:5}])}}return _a=t,_a}var ba,sf;function HFe(){if(sf)return ba;sf=1;function t(e){const n={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%\{/,end:/\}/},l={variants:[{begin:/\$\d/},{begin:n.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},c=[e.BACKSLASH_ESCAPE,i,l],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(h,m,v="\\1")=>{const _=v==="\\1"?v:n.concat(v,m);return n.concat(n.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,_,/(?:\\.|[^\\\/])*?/,v,o)},p=(h,m,v)=>n.concat(n.concat("(?:",h,")"),m,/(?:\\.|[^\\\/])*?/,v,o),g=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:c,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:f("s|tr|y",n.either(...d,{capture:!0}))},{begin:f("s|tr|y","\\(","\\)")},{begin:f("s|tr|y","\\[","\\]")},{begin:f("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",n.either(...d,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return i.contains=g,a.contains=g,{name:"Perl",aliases:["pl","pm"],keywords:r,contains:g}}return ya=t,ya}var va,rf;function GFe(){if(rf)return va;rf=1;function t(e){const n={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},s=/[a-zA-Z@][a-zA-Z0-9_]*/,l={"variable.language":["this","super"],$pattern:s,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},c={$pattern:s,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:l,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+c.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:c,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return va=t,va}var wa,af;function KFe(){if(af)return wa;af=1;function t(e){const n=e.regex,s=/(?![A-Za-z0-9])(?![$])/,o=n.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,s),r=n.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,s),i={scope:"variable",match:"\\$+"+o},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(I,ae)=>{ae.data._beginMatch=I[1]||I[2]},"on:end":(I,ae)=>{ae.data._beginMatch!==I[1]&&ae.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),g=`[ -]`,h={scope:"string",variants:[d,c,f,p]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},v=["false","null","true"],_=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],b=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],C={keyword:_,literal:(I=>{const ae=[];return I.forEach(W=>{ae.push(W),W.toLowerCase()===W?ae.push(W.toUpperCase()):ae.push(W.toLowerCase())}),ae})(v),built_in:b},R=I=>I.map(ae=>ae.replace(/\|\d+$/,"")),O={variants:[{match:[/new/,n.concat(g,"+"),n.concat("(?!",R(b).join("\\b|"),"\\b)"),r],scope:{1:"keyword",4:"title.class"}}]},D=n.concat(o,"\\b(?!\\()"),y={variants:[{match:[n.concat(/::/,n.lookahead(/(?!class\b)/)),D],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[r,n.concat(/::/,n.lookahead(/(?!class\b)/)),D],scope:{1:"title.class",3:"variable.constant"}},{match:[r,n.concat("::",n.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[r,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},k={scope:"attr",match:n.concat(o,n.lookahead(":"),n.lookahead(/(?!::)/))},T={relevance:0,begin:/\(/,end:/\)/,keywords:C,contains:[k,i,y,e.C_BLOCK_COMMENT_MODE,h,m,O]},L={relevance:0,match:[/\b/,n.concat("(?!fn\\b|function\\b|",R(_).join("\\b|"),"|",R(b).join("\\b|"),"\\b)"),o,n.concat(g,"*"),n.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[T]};T.contains.push(L);const F=[k,y,e.C_BLOCK_COMMENT_MODE,h,m,O],Q={begin:n.concat(/#\[\s*/,r),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:v,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:v,keyword:["new","array"]},contains:["self",...F]},...F,{scope:"meta",match:r}]};return{case_insensitive:!1,keywords:C,contains:[Q,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},a,{scope:"variable.language",match:/\$this\b/},i,L,y,{match:[/const/,/\s/,o],scope:{1:"keyword",3:"variable.constant"}},O,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:C,contains:["self",i,y,e.C_BLOCK_COMMENT_MODE,h,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},h,m]}}return wa=t,wa}var xa,lf;function WFe(){if(lf)return xa;lf=1;function t(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return xa=t,xa}var ka,cf;function ZFe(){if(cf)return ka;cf=1;function t(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return ka=t,ka}var Ea,df;function YFe(){if(df)return Ea;df=1;function t(e){const n=e.regex,s=/[\p{XID_Start}_]\p{XID_Continue}*/u,o=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],l={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:o,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},d={className:"subst",begin:/\{/,end:/\}/,keywords:l,illegal:/#/},f={begin:/\{\{/,relevance:0},p={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c,f,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c,f,d]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,f,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,f,d]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g="[0-9](_?[0-9])*",h=`(\\b(${g}))?\\.(${g})|\\b(${g})\\.`,m=`\\b|${o.join("|")}`,v={className:"number",relevance:0,variants:[{begin:`(\\b(${g})|(${h}))[eE][+-]?(${g})[jJ]?(?=${m})`},{begin:`(${h})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${m})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${m})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${m})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${m})`},{begin:`\\b(${g})[jJ](?=${m})`}]},_={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:l,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},b={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",c,v,p,e.HASH_COMMENT_MODE]}]};return d.contains=[p,v,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:l,illegal:/(<\/|\?)|=>/,contains:[c,v,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},p,_,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[b]},{variants:[{match:[/\bclass/,/\s+/,s,/\s*/,/\(\s*/,s,/\s*\)/]},{match:[/\bclass/,/\s+/,s]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[v,b,p]}]}}return Ea=t,Ea}var Ca,uf;function QFe(){if(uf)return Ca;uf=1;function t(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Ca=t,Ca}var Aa,ff;function JFe(){if(ff)return Aa;ff=1;function t(e){const n=e.regex,s=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,o=n.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),r=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,i=n.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:s,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:n.lookahead(n.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:s},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[r,o]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,o]},{scope:{1:"punctuation",2:"number"},match:[i,o]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,o]}]},{scope:{3:"operator"},match:[s,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:r},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:i},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return Aa=t,Aa}var Sa,hf;function XFe(){if(hf)return Sa;hf=1;function t(e){const n=e.regex,s={className:"title.function.invoke",relevance:0,begin:n.concat(/\b/,/(?!let\b)/,e.IDENT_RE,n.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",r=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],i=["true","false","Some","None","Ok","Err"],a=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],l=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:l,keyword:r,literal:i,built_in:a},illegal:""},s]}}return Sa=t,Sa}var Ta,pf;function eBe(){if(pf)return Ta;pf=1;const t=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],r=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","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-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-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","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","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","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","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","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","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","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-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function i(a){const l=t(a),c=o,d=s,f="@[a-z-]+",p="and or not only",h={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,l.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+d.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+c.join("|")+")"},h,{begin:/\(/,end:/\)/,contains:[l.CSS_NUMBER_MODE]},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+r.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[l.BLOCK_COMMENT,h,l.HEXCOLOR,l.CSS_NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,l.IMPORTANT,l.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:f,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:p,attribute:n.join(" ")},contains:[{begin:f,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},h,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,l.HEXCOLOR,l.CSS_NUMBER_MODE]},l.FUNCTION_DISPATCH]}}return Ta=i,Ta}var Ma,gf;function tBe(){if(gf)return Ma;gf=1;function t(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return Ma=t,Ma}var Oa,mf;function nBe(){if(mf)return Oa;mf=1;function t(e){const n=e.regex,s=e.COMMENT("--","$"),o={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},r={begin:/"/,end:/"/,contains:[{begin:/""/}]},i=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],l=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],d=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],f=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],p=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],g=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],h=f,m=[...d,...c].filter(C=>!f.includes(C)),v={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},_={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},b={begin:n.concat(/\b/,n.either(...h),/\s*\(/),relevance:0,keywords:{built_in:h}};function x(C,{exceptions:R,when:O}={}){const D=O;return R=R||[],C.map(y=>y.match(/\|\d+$/)||R.includes(y)?y:D(y)?`${y}|0`:y)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(m,{when:C=>C.length<3}),literal:i,type:l,built_in:p},contains:[{begin:n.either(...g),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:m.concat(g),literal:i,type:l}},{className:"type",begin:n.either(...a)},b,v,o,r,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,s,_]}}return Oa=t,Oa}var Ra,_f;function sBe(){if(_f)return Ra;_f=1;function t(y){return y?typeof y=="string"?y:y.source:null}function e(y){return n("(?=",y,")")}function n(...y){return y.map(T=>t(T)).join("")}function s(y){const k=y[y.length-1];return typeof k=="object"&&k.constructor===Object?(y.splice(y.length-1,1),k):{}}function o(...y){return"("+(s(y).capture?"":"?:")+y.map(L=>t(L)).join("|")+")"}const r=y=>n(/\b/,y,/\w$/.test(y)?/\b/:/\B/),i=["Protocol","Type"].map(r),a=["init","self"].map(r),l=["Any","Self"],c=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],d=["false","nil","true"],f=["assignment","associativity","higherThan","left","lowerThan","none","right"],p=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],g=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],h=o(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),m=o(h,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),v=n(h,m,"*"),_=o(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),b=o(_,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),x=n(_,b,"*"),C=n(/[A-Z]/,b,"*"),R=["autoclosure",n(/convention\(/,o("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",n(/objc\(/,x,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],O=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function D(y){const k={match:/\s+/,relevance:0},T=y.COMMENT("/\\*","\\*/",{contains:["self"]}),L=[y.C_LINE_COMMENT_MODE,T],F={match:[/\./,o(...i,...a)],className:{2:"keyword"}},Q={match:n(/\./,o(...c)),relevance:0},I=c.filter(De=>typeof De=="string").concat(["_|0"]),ae=c.filter(De=>typeof De!="string").concat(l).map(r),W={variants:[{className:"keyword",match:o(...ae,...a)}]},S={$pattern:o(/\b\w+/,/#\w+/),keyword:I.concat(p),literal:d},q=[F,Q,W],V={match:n(/\./,o(...g)),relevance:0},be={className:"built_in",match:n(/\b/,o(...g),/(?=\()/)},ge=[V,be],ee={match:/->/,relevance:0},ve={className:"operator",relevance:0,variants:[{match:v},{match:`\\.(\\.|${m})+`}]},Ee=[ee,ve],N="([0-9]_*)+",J="([0-9a-fA-F]_*)+",H={className:"number",relevance:0,variants:[{match:`\\b(${N})(\\.(${N}))?([eE][+-]?(${N}))?\\b`},{match:`\\b0x(${J})(\\.(${J}))?([pP][+-]?(${N}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},te=(De="")=>({className:"subst",variants:[{match:n(/\\/,De,/[0\\tnr"']/)},{match:n(/\\/,De,/u\{[0-9a-fA-F]{1,8}\}/)}]}),X=(De="")=>({className:"subst",match:n(/\\/,De,/[\t ]*(?:[\r\n]|\r\n)/)}),he=(De="")=>({className:"subst",label:"interpol",begin:n(/\\/,De,/\(/),end:/\)/}),ce=(De="")=>({begin:n(De,/"""/),end:n(/"""/,De),contains:[te(De),X(De),he(De)]}),w=(De="")=>({begin:n(De,/"/),end:n(/"/,De),contains:[te(De),he(De)]}),E={className:"string",variants:[ce(),ce("#"),ce("##"),ce("###"),w(),w("#"),w("##"),w("###")]},P={match:n(/`/,x,/`/)},B={className:"variable",match:/\$\d+/},$={className:"variable",match:`\\$${b}+`},ne=[P,B,$],re={match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:O,contains:[...Ee,H,E]}]}},z={className:"keyword",match:n(/@/,o(...R))},se={className:"meta",match:n(/@/,x)},U=[re,z,se],Z={match:e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:n(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,b,"+")},{className:"type",match:C,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:n(/\s+&\s+/,e(C)),relevance:0}]},ie={begin://,keywords:S,contains:[...L,...q,...U,ee,Z]};Z.contains.push(ie);const ue={match:n(x,/\s*:/),keywords:"_|0",relevance:0},de={begin:/\(/,end:/\)/,relevance:0,keywords:S,contains:["self",ue,...L,...q,...ge,...Ee,H,E,...ne,...U,Z]},xe={begin://,contains:[...L,Z]},K={begin:o(e(n(x,/\s*:/)),e(n(x,/\s+/,x,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:x}]},oe={begin:/\(/,end:/\)/,keywords:S,contains:[K,...L,...q,...Ee,H,E,...U,Z,de],endsParent:!0,illegal:/["']/},pe={match:[/func/,/\s+/,o(P.match,x,v)],className:{1:"keyword",3:"title.function"},contains:[xe,oe,k],illegal:[/\[/,/%/]},Ce={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[xe,oe,k],illegal:/\[|%/},Pe={match:[/operator/,/\s+/,v],className:{1:"keyword",3:"title"}},qe={begin:[/precedencegroup/,/\s+/,C],className:{1:"keyword",3:"title"},contains:[Z],keywords:[...f,...d],end:/}/};for(const De of E.variants){const Ye=De.contains.find(it=>it.label==="interpol");Ye.keywords=S;const et=[...q,...ge,...Ee,H,E,...ne];Ye.contains=[...et,{begin:/\(/,end:/\)/,contains:["self",...et]}]}return{name:"Swift",keywords:S,contains:[...L,pe,Ce,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:S,contains:[y.inherit(y.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...q]},Pe,qe,{beginKeywords:"import",end:/$/,contains:[...L],relevance:0},...q,...ge,...Ee,H,E,...ne,...U,Z,de]}}return Ra=D,Ra}var Na,bf;function oBe(){if(bf)return Na;bf=1;function t(e){const n="true false yes no null",s="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},i={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]},a=e.inherit(i,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l="[0-9]{4}(-[0-9][0-9]){0,2}",c="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",d="(\\.[0-9]*)?",f="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",p={className:"number",begin:"\\b"+l+c+d+f+"\\b"},g={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},h={begin:/\{/,end:/\}/,contains:[g],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[g],illegal:"\\n",relevance:0},v=[o,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+s},{className:"type",begin:"!<"+s+">"},{className:"type",begin:"!"+s},{className:"type",begin:"!!"+s},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},p,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},h,m,i],_=[...v];return _.pop(),_.push(a),g.contains=_,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}return Na=t,Na}var Da,yf;function rBe(){if(yf)return Da;yf=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],o=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(r,s,o);function l(d){const f=d.regex,p=(te,{after:X})=>{const he="",end:""},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,v={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(te,X)=>{const he=te[0].length+te.index,ce=te.input[he];if(ce==="<"||ce===","){X.ignoreMatch();return}ce===">"&&(p(te,{after:he})||X.ignoreMatch());let w;const E=te.input.substring(he);if(w=E.match(/^\s*=/)){X.ignoreMatch();return}if((w=E.match(/^\s+extends\s+/))&&w.index===0){X.ignoreMatch();return}}},_={$pattern:t,keyword:e,literal:n,built_in:a,"variable.language":i},b="[0-9](_?[0-9])*",x=`\\.(${b})`,C="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",R={className:"number",variants:[{begin:`(\\b(${C})((${x})|\\.)?|(${x}))[eE][+-]?(${b})\\b`},{begin:`\\b(${C})\\b((${x})\\b|\\.)?|(${x})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},O={className:"subst",begin:"\\$\\{",end:"\\}",keywords:_,contains:[]},D={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,O],subLanguage:"xml"}},y={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,O],subLanguage:"css"}},k={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,O],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[d.BACKSLASH_ESCAPE,O]},F={className:"comment",variants:[d.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:g+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),d.C_BLOCK_COMMENT_MODE,d.C_LINE_COMMENT_MODE]},Q=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,D,y,k,T,{match:/\$\d+/},R];O.contains=Q.concat({begin:/\{/,end:/\}/,keywords:_,contains:["self"].concat(Q)});const I=[].concat(F,O.contains),ae=I.concat([{begin:/\(/,end:/\)/,keywords:_,contains:["self"].concat(I)}]),W={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:ae},S={variants:[{match:[/class/,/\s+/,g,/\s+/,/extends/,/\s+/,f.concat(g,"(",f.concat(/\./,g),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,g],scope:{1:"keyword",3:"title.class"}}]},q={relevance:0,match:f.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...o]}},V={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},be={variants:[{match:[/function/,/\s+/,g,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[W],illegal:/%/},ge={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ee(te){return f.concat("(?!",te.join("|"),")")}const ve={match:f.concat(/\b/,ee([...r,"super","import"]),g,f.lookahead(/\(/)),className:"title.function",relevance:0},Ee={begin:f.concat(/\./,f.lookahead(f.concat(g,/(?![0-9A-Za-z$_(])/))),end:g,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},N={match:[/get|set/,/\s+/,g,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},W]},J="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+d.UNDERSCORE_IDENT_RE+")\\s*=>",H={match:[/const|var|let/,/\s+/,g,/\s*/,/=\s*/,/(async\s*)?/,f.lookahead(J)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[W]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:_,exports:{PARAMS_CONTAINS:ae,CLASS_REFERENCE:q},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),V,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,D,y,k,T,F,{match:/\$\d+/},R,q,{className:"attr",begin:g+f.lookahead(":"),relevance:0},H,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[F,d.REGEXP_MODE,{className:"function",begin:J,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:d.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:ae}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:h.begin,end:h.end},{match:m},{begin:v.begin,"on:begin":v.isTrulyOpeningTag,end:v.end}],subLanguage:"xml",contains:[{begin:v.begin,end:v.end,skip:!0,contains:["self"]}]}]},be,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+d.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[W,d.inherit(d.TITLE_MODE,{begin:g,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ee,{match:"\\$"+g,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[W]},ve,ge,S,N,{match:/\$[(.]/}]}}function c(d){const f=l(d),p=t,g=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],h={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[f.exports.CLASS_REFERENCE]},m={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:g},contains:[f.exports.CLASS_REFERENCE]},v={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},_=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],b={$pattern:t,keyword:e.concat(_),literal:n,built_in:a.concat(g),"variable.language":i},x={className:"meta",begin:"@"+p},C=(O,D,y)=>{const k=O.contains.findIndex(T=>T.label===D);if(k===-1)throw new Error("can not find mode to replace");O.contains.splice(k,1,y)};Object.assign(f.keywords,b),f.exports.PARAMS_CONTAINS.push(x),f.contains=f.contains.concat([x,h,m]),C(f,"shebang",d.SHEBANG()),C(f,"use_strict",v);const R=f.contains.find(O=>O.label==="func.def");return R.relevance=0,Object.assign(f,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),f}return Da=c,Da}var La,vf;function iBe(){if(vf)return La;vf=1;function t(e){const n=e.regex,s={className:"string",begin:/"(""|[^/n])"C\b/},o={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},r=/\d{1,2}\/\d{1,2}\/\d{4}/,i=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,l=/\d{1,2}(:\d{1,2}){1,2}/,c={className:"literal",variants:[{begin:n.concat(/# */,n.either(i,r),/ *#/)},{begin:n.concat(/# */,l,/ *#/)},{begin:n.concat(/# */,a,/ *#/)},{begin:n.concat(/# */,n.either(i,r),/ +/,n.either(a,l),/ *#/)}]},d={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},f={className:"label",begin:/^\w+:/},p=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),g=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[s,o,c,d,f,p,g,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[g]}]}}return La=t,La}var Ia,wf;function aBe(){if(wf)return Ia;wf=1;function t(e){e.regex;const n=e.COMMENT(/\(;/,/;\)/);n.contains.push("self");const s=e.COMMENT(/;;/,/$/),o=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],r={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},i={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},l={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},c={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},d={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:o},contains:[s,n,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},i,a,r,e.QUOTE_STRING_MODE,c,d,l]}}return Ia=t,Ia}var Oe=CFe;Oe.registerLanguage("xml",AFe());Oe.registerLanguage("bash",SFe());Oe.registerLanguage("c",TFe());Oe.registerLanguage("cpp",MFe());Oe.registerLanguage("csharp",OFe());Oe.registerLanguage("css",RFe());Oe.registerLanguage("markdown",NFe());Oe.registerLanguage("diff",DFe());Oe.registerLanguage("ruby",LFe());Oe.registerLanguage("go",IFe());Oe.registerLanguage("graphql",PFe());Oe.registerLanguage("ini",FFe());Oe.registerLanguage("java",BFe());Oe.registerLanguage("javascript",$Fe());Oe.registerLanguage("json",zFe());Oe.registerLanguage("kotlin",jFe());Oe.registerLanguage("less",UFe());Oe.registerLanguage("lua",qFe());Oe.registerLanguage("makefile",HFe());Oe.registerLanguage("perl",VFe());Oe.registerLanguage("objectivec",GFe());Oe.registerLanguage("php",KFe());Oe.registerLanguage("php-template",WFe());Oe.registerLanguage("plaintext",ZFe());Oe.registerLanguage("python",YFe());Oe.registerLanguage("python-repl",QFe());Oe.registerLanguage("r",JFe());Oe.registerLanguage("rust",XFe());Oe.registerLanguage("scss",eBe());Oe.registerLanguage("shell",tBe());Oe.registerLanguage("sql",nBe());Oe.registerLanguage("swift",sBe());Oe.registerLanguage("yaml",oBe());Oe.registerLanguage("typescript",rBe());Oe.registerLanguage("vbnet",iBe());Oe.registerLanguage("wasm",aBe());Oe.HighlightJS=Oe;Oe.default=Oe;var lBe=Oe;const lo=rs(lBe);var Rn={};Rn.getAttrs=function(t,e,n){const s=/[^\t\n\f />"'=]/,o=" ",r="=",i=".",a="#",l=[];let c="",d="",f=!0,p=!1;for(let g=e+n.leftDelimiter.length;g=s+1:d.length>=s}let r,i,a,l;const c=s-e.rightDelimiter.length;switch(t){case"start":a=n.slice(0,e.leftDelimiter.length),r=a===e.leftDelimiter?0:-1,i=r===-1?-1:n.indexOf(e.rightDelimiter,c),l=n.charAt(i+e.rightDelimiter.length),l&&e.rightDelimiter.indexOf(l)!==-1&&(i=-1);break;case"end":r=n.lastIndexOf(e.leftDelimiter),i=r===-1?-1:n.indexOf(e.rightDelimiter,r+c),i=i===n.length-e.rightDelimiter.length?i:-1;break;case"only":a=n.slice(0,e.leftDelimiter.length),r=a===e.leftDelimiter?0:-1,a=n.slice(n.length-e.rightDelimiter.length),i=a===e.rightDelimiter?n.length-e.rightDelimiter.length:-1;break;default:throw new Error(`Unexpected case ${t}, expected 'start', 'end' or 'only'`)}return r!==-1&&i!==-1&&o(n.substring(r,i+e.rightDelimiter.length))}};Rn.removeDelimiter=function(t,e){const n=fl(e.leftDelimiter),s=fl(e.rightDelimiter),o=new RegExp("[ \\n]?"+n+"[^"+n+s+"]+"+s+"$"),r=t.search(o);return r!==-1?t.slice(0,r):t};function fl(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}Rn.escapeRegExp=fl;Rn.getMatchingOpeningToken=function(t,e){if(t[e].type==="softbreak")return!1;if(t[e].nesting===0)return t[e];const n=t[e].level,s=t[e].type.replace("_close","_open");for(;e>=0;--e)if(t[e].type===s&&t[e].level===n)return t[e];return!1};const cBe=/[&<>"]/,dBe=/[&<>"]/g,uBe={"&":"&","<":"<",">":">",'"':"""};function fBe(t){return uBe[t]}Rn.escapeHtml=function(t){return cBe.test(t)?t.replace(dBe,fBe):t};const Ne=Rn;var hBe=t=>{const e=new RegExp("^ {0,3}[-*_]{3,} ?"+Ne.escapeRegExp(t.leftDelimiter)+"[^"+Ne.escapeRegExp(t.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:Ne.hasDelimiters("end",t)}],transform:(n,s)=>{const o=n[s],r=o.info.lastIndexOf(t.leftDelimiter),i=Ne.getAttrs(o.info,r,t);Ne.addAttrs(i,o),o.info=Ne.removeDelimiter(o.info,t)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:n=>n==="image"||n==="code_inline"},{shift:0,type:"text",content:Ne.hasDelimiters("start",t)}]}],transform:(n,s,o)=>{const r=n[s].children[o],i=r.content.indexOf(t.rightDelimiter),a=n[s].children[o-1],l=Ne.getAttrs(r.content,0,t);Ne.addAttrs(l,a),r.content.length===i+t.rightDelimiter.length?n[s].children.splice(o,1):r.content=r.content.slice(i+t.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Ne.hasDelimiters("only",t)}],transform:(n,s)=>{const o=n[s+2],r=Ne.getMatchingOpeningToken(n,s),i=Ne.getAttrs(o.content,0,t);Ne.addAttrs(i,r),n.splice(s+1,3)}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:Ne.hasDelimiters("start",t)}]}],transform:(n,s,o)=>{const r=n[s].children[o],i=r.content,a=Ne.getAttrs(i,0,t),l=Ne.getMatchingOpeningToken(n[s].children,o-1);Ne.addAttrs(a,l),r.content=i.slice(i.indexOf(t.rightDelimiter)+t.rightDelimiter.length)}},{name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:Ne.hasDelimiters("only",t)}]}],transform:(n,s,o)=>{const i=n[s].children[o].content,a=Ne.getAttrs(i,0,t);let l=s-2;for(;n[l-1]&&n[l-1].type!=="ordered_list_open"&&n[l-1].type!=="bullet_list_open";)l--;Ne.addAttrs(a,n[l-1]),n[s].children=n[s].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:n=>n==="bullet_list_close"||n==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Ne.hasDelimiters("only",t),children:n=>n.length===1},{shift:3,type:"paragraph_close"}],transform:(n,s)=>{const r=n[s+2].content,i=Ne.getAttrs(r,0,t),a=Ne.getMatchingOpeningToken(n,s);Ne.addAttrs(i,a),n.splice(s+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:Ne.hasDelimiters("end",t)}]}],transform:(n,s,o)=>{const r=n[s].children[o],i=r.content,a=Ne.getAttrs(i,i.lastIndexOf(t.leftDelimiter),t);Ne.addAttrs(a,n[s-2]);const l=i.slice(0,i.lastIndexOf(t.leftDelimiter));r.content=xf(l)!==" "?l:l.slice(0,-1)}},{name:` -{.a} softbreak then curly in start`,tests:[{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:Ne.hasDelimiters("only",t)}]}],transform:(n,s,o)=>{const r=n[s].children[o],i=Ne.getAttrs(r.content,0,t);let a=s+1;for(;n[a+1]&&n[a+1].nesting===-1;)a++;const l=Ne.getMatchingOpeningToken(n,a);Ne.addAttrs(i,l),n[s].children=n[s].children.slice(0,-2)}},{name:"horizontal rule",tests:[{shift:0,type:"paragraph_open"},{shift:1,type:"inline",children:n=>n.length===1,content:n=>n.match(e)!==null},{shift:2,type:"paragraph_close"}],transform:(n,s)=>{const o=n[s];o.type="hr",o.tag="hr",o.nesting=0;const r=n[s+1].content,i=r.lastIndexOf(t.leftDelimiter),a=Ne.getAttrs(r,i,t);Ne.addAttrs(a,o),o.markup=r,n.splice(s+1,2)}},{name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:Ne.hasDelimiters("end",t),type:n=>n!=="code_inline"&&n!=="math_inline"}]}],transform:(n,s,o)=>{const r=n[s].children[o],i=r.content,a=Ne.getAttrs(i,i.lastIndexOf(t.leftDelimiter),t);let l=s+1;for(;n[l+1]&&n[l+1].nesting===-1;)l++;const c=Ne.getMatchingOpeningToken(n,l);Ne.addAttrs(a,c);const d=i.slice(0,i.lastIndexOf(t.leftDelimiter));r.content=xf(d)!==" "?d:d.slice(0,-1)}}]};function xf(t){return t.slice(-1)[0]}const pBe=hBe,gBe={leftDelimiter:"{",rightDelimiter:"}",allowedAttributes:[]};var mBe=function(e,n){let s=Object.assign({},gBe);s=Object.assign(s,n);const o=pBe(s);function r(i){const a=i.tokens;for(let l=0;l{const h=hl(a,l,g);return h.j!==null&&(f=h.j),h.match})&&(d.transform(a,l,f),(d.name==="inline attributes"||d.name==="inline nesting 0")&&c--)}}e.core.ruler.before("linkify","curly_attributes",r)};function hl(t,e,n){const s={match:!1,j:null},o=n.shift!==void 0?e+n.shift:n.position;if(n.shift!==void 0&&o<0)return s;const r=yBe(t,o);if(r===void 0)return s;for(const i of Object.keys(n))if(!(i==="shift"||i==="position")){if(r[i]===void 0)return s;if(i==="children"&&_Be(n.children)){if(r.children.length===0)return s;let a;const l=n.children,c=r.children;if(l.every(d=>d.position!==void 0)){if(a=l.every(d=>hl(c,d.position,d).match),a){const d=vBe(l).position;s.j=d>=0?d:c.length+d}}else for(let d=0;dhl(c,d,f).match),a){s.j=d;break}if(a===!1)return s;continue}switch(typeof n[i]){case"boolean":case"number":case"string":if(r[i]!==n[i])return s;break;case"function":if(!n[i](r[i]))return s;break;case"object":if(bBe(n[i])){if(n[i].every(l=>l(r[i]))===!1)return s;break}default:throw new Error(`Unknown type of pattern test (key: ${i}). Test should be of type boolean, number, string, function or array of functions.`)}}return s.match=!0,s}function _Be(t){return Array.isArray(t)&&t.length&&t.every(e=>typeof e=="object")}function bBe(t){return Array.isArray(t)&&t.length&&t.every(e=>typeof e=="function")}function yBe(t,e){return e>=0?t[e]:t[t.length+e]}function vBe(t){return t.slice(-1)[0]||{}}const wBe=rs(mBe);function xBe(){const t=Date.now().toString(),e=Math.floor(Math.random()*1e3).toString();return t+e}const To=new Cfe("commonmark",{html:!0,xhtmlOut:!0,breaks:!0,linkify:!0,typographer:!0,highlight:(t,e)=>{let n=xBe();if(e&&lo.getLanguage(e))try{const o=lo.highlight(e,t).value;return'
'+e+'
'+o+"
"}catch(o){console.error(`Syntax highlighting failed for language '${e}':`,o)}return'
'+e+'
'+lo.highlightAuto(t).value+"
"},bulletListMarker:"•"}).use(wBe).use(ps).use(NPe).use(MPe);lo.configure({languages:[]});lo.configure({languages:["javascript"]});To.renderer.rules.link_open=(t,e,n,s,o)=>{const r=t[e],i=r.attrIndex("href");if(i>=0){const a=r.attrs[i][1];r.attrs[i][1]=a,r.attrPush(["style","color: blue; font-weight: bold; text-decoration: underline;"])}return o.renderToken(t,e,n)};const Fg=(t,e,n,s,o)=>{const i=t[e].attrGet("type")||"ul";return i==="ul"?'
    '+o.renderToken(t,e,n)+"
":i==="ol"?'
    '+o.renderToken(t,e,n)+"
":o.renderToken(t,e,n)};To.renderer.rules.bullet_list_open=Fg;To.renderer.rules.ordered_list_open=Fg;const kBe={name:"MarkdownRenderer",props:{markdownText:{type:String,required:!0}},data(){return{renderedMarkdown:"",isCopied:!1}},mounted(){const t=document.createElement("script");t.textContent=` +`);return s};Gs.prototype.render=function(t,e,n){var s,o,r,i="",a=this.rules;for(s=0,o=t.length;s\s]/i.test(t)}function mue(t){return/^<\/a\s*>/i.test(t)}var _ue=function(e){var n,s,o,r,i,a,l,c,u,h,p,g,f,m,v,_,b=e.tokens,x;if(e.md.options.linkify){for(s=0,o=b.length;s=0;n--){if(a=r[n],a.type==="link_close"){for(n--;r[n].level!==a.level&&r[n].type!=="link_open";)n--;continue}if(a.type==="html_inline"&&(gue(a.content)&&f>0&&f--,mue(a.content)&&f++),!(f>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(u=a.content,x=e.md.linkify.match(u),l=[],g=a.level,p=0,x.length>0&&x[0].index===0&&n>0&&r[n-1].type==="text_special"&&(x=x.slice(1)),c=0;cp&&(i=new e.Token("text","",0),i.content=u.slice(p,h),i.level=g,l.push(i)),i=new e.Token("link_open","a",1),i.attrs=[["href",v]],i.level=g++,i.markup="linkify",i.info="auto",l.push(i),i=new e.Token("text","",0),i.content=_,i.level=g,l.push(i),i=new e.Token("link_close","a",-1),i.level=--g,i.markup="linkify",i.info="auto",l.push(i),p=x[c].lastIndex);p=0;e--)n=t[e],n.type==="text"&&!s&&(n.content=n.content.replace(yue,wue)),n.type==="link_open"&&n.info==="auto"&&s--,n.type==="link_close"&&n.info==="auto"&&s++}function kue(t){var e,n,s=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!s&&rg.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&s--,n.type==="link_close"&&n.info==="auto"&&s++}var Eue=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(bue.test(e.tokens[n].content)&&xue(e.tokens[n].children),rg.test(e.tokens[n].content)&&kue(e.tokens[n].children))},rd=ze.isWhiteSpace,id=ze.isPunctChar,ad=ze.isMdAsciiPunct,Cue=/['"]/,ld=/['"]/g,cd="’";function Ko(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Aue(t,e){var n,s,o,r,i,a,l,c,u,h,p,g,f,m,v,_,b,x,C,R,O;for(C=[],n=0;n=0&&!(C[b].level<=l);b--);if(C.length=b+1,s.type==="text"){o=s.content,i=0,a=o.length;e:for(;i=0)u=o.charCodeAt(r.index-1);else for(b=n-1;b>=0&&!(t[b].type==="softbreak"||t[b].type==="hardbreak");b--)if(t[b].content){u=t[b].content.charCodeAt(t[b].content.length-1);break}if(h=32,i=48&&u<=57&&(_=v=!1),v&&_&&(v=p,_=g),!v&&!_){x&&(s.content=Ko(s.content,r.index,cd));continue}if(_){for(b=C.length-1;b>=0&&(c=C[b],!(C[b].level=0;n--)e.tokens[n].type!=="inline"||!Cue.test(e.tokens[n].content)||Aue(e.tokens[n].children,e)},Tue=function(e){var n,s,o,r,i,a,l=e.tokens;for(n=0,s=l.length;n=0&&(s=this.attrs[n][1]),s};Ks.prototype.attrJoin=function(e,n){var s=this.attrIndex(e);s<0?this.attrPush([e,n]):this.attrs[s][1]=this.attrs[s][1]+" "+n};var oc=Ks,Mue=oc;function ig(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}ig.prototype.Token=Mue;var Oue=ig,Rue=sc,qi=[["normalize",due],["block",hue],["inline",fue],["linkify",_ue],["replacements",Eue],["smartquotes",Sue],["text_join",Tue]];function rc(){this.ruler=new Rue;for(var t=0;ts||(u=n+1,e.sCount[u]=4||(a=e.bMarks[u]+e.tShift[u],a>=e.eMarks[u])||(R=e.src.charCodeAt(a++),R!==124&&R!==45&&R!==58)||a>=e.eMarks[u]||(O=e.src.charCodeAt(a++),O!==124&&O!==45&&O!==58&&!Hi(O))||R===45&&Hi(O))return!1;for(;a=4||(h=ud(i),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),p=h.length,p===0||p!==f.length))return!1;if(o)return!0;for(b=e.parentType,e.parentType="table",C=e.md.block.ruler.getRules("blockquote"),g=e.push("table_open","table",1),g.map=v=[n,0],g=e.push("thead_open","thead",1),g.map=[n,n+1],g=e.push("tr_open","tr",1),g.map=[n,n+1],l=0;l=4)break;for(h=ud(i),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),u===n+2&&(g=e.push("tbody_open","tbody",1),g.map=_=[n+2,0]),g=e.push("tr_open","tr",1),g.map=[u,u+1],l=0;l=4){o++,r=o;continue}break}return e.line=r,i=e.push("code_block","code",0),i.content=e.getLines(n,r,4+e.blkIndent,!1)+` +`,i.map=[n,e.line],!0},Iue=function(e,n,s,o){var r,i,a,l,c,u,h,p=!1,g=e.bMarks[n]+e.tShift[n],f=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||g+3>f||(r=e.src.charCodeAt(g),r!==126&&r!==96)||(c=g,g=e.skipChars(g,r),i=g-c,i<3)||(h=e.src.slice(c,g),a=e.src.slice(g,f),r===96&&a.indexOf(String.fromCharCode(r))>=0))return!1;if(o)return!0;for(l=n;l++,!(l>=s||(g=c=e.bMarks[l]+e.tShift[l],f=e.eMarks[l],g=4)&&(g=e.skipChars(g,r),!(g-c=4||e.src.charCodeAt(T++)!==62)return!1;if(o)return!0;for(l=g=e.sCount[n]+1,e.src.charCodeAt(T)===32?(T++,l++,g++,r=!1,C=!0):e.src.charCodeAt(T)===9?(C=!0,(e.bsCount[n]+g)%4===3?(T++,l++,g++,r=!1):r=!0):C=!1,f=[e.bMarks[n]],e.bMarks[n]=T;T=L,b=[e.sCount[n]],e.sCount[n]=g-l,x=[e.tShift[n]],e.tShift[n]=T-e.bMarks[n],O=e.md.block.ruler.getRules("blockquote"),_=e.parentType,e.parentType="blockquote",p=n+1;p=L));p++){if(e.src.charCodeAt(T++)===62&&!y){for(l=g=e.sCount[p]+1,e.src.charCodeAt(T)===32?(T++,l++,g++,r=!1,C=!0):e.src.charCodeAt(T)===9?(C=!0,(e.bsCount[p]+g)%4===3?(T++,l++,g++,r=!1):r=!0):C=!1,f.push(e.bMarks[p]),e.bMarks[p]=T;T=L,m.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(C?1:0),b.push(e.sCount[p]),e.sCount[p]=g-l,x.push(e.tShift[p]),e.tShift[p]=T-e.bMarks[p];continue}if(u)break;for(R=!1,a=0,c=O.length;a",D.map=h=[n,0],e.md.block.tokenize(e,n,p),D=e.push("blockquote_close","blockquote",-1),D.markup=">",e.lineMax=k,e.parentType=_,h[1]=e.line,a=0;a=4||(r=e.src.charCodeAt(c++),r!==42&&r!==45&&r!==95))return!1;for(i=1;c=r||(n=t.src.charCodeAt(o++),n<48||n>57))return-1;for(;;){if(o>=r)return-1;if(n=t.src.charCodeAt(o++),n>=48&&n<=57){if(o-s>=10)return-1;continue}if(n===41||n===46)break;return-1}return o=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]=e.blkIndent&&(S=!0),(L=fd(e,n))>=0){if(h=!0,Q=e.bMarks[n]+e.tShift[n],_=Number(e.src.slice(Q,L-1)),S&&_!==1)return!1}else if((L=hd(e,n))>=0)h=!1;else return!1;if(S&&e.skipSpaces(L)>=e.eMarks[n])return!1;if(v=e.src.charCodeAt(L-1),o)return!0;for(m=e.tokens.length,h?(W=e.push("ordered_list_open","ol",1),_!==1&&(W.attrs=[["start",_]])):W=e.push("bullet_list_open","ul",1),W.map=f=[n,0],W.markup=String.fromCharCode(v),x=n,F=!1,ae=e.md.block.ruler.getRules("list"),O=e.parentType,e.parentType="list";x=b?c=1:c=C-u,c>4&&(c=1),l=u+c,W=e.push("list_item_open","li",1),W.markup=String.fromCharCode(v),W.map=p=[n,0],h&&(W.info=e.src.slice(Q,L-1)),k=e.tight,y=e.tShift[n],D=e.sCount[n],R=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[n]=i-e.bMarks[n],e.sCount[n]=C,i>=b&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,s):e.md.block.tokenize(e,n,s,!0),(!e.tight||F)&&(q=!1),F=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=R,e.tShift[n]=y,e.sCount[n]=D,e.tight=k,W=e.push("list_item_close","li",-1),W.markup=String.fromCharCode(v),x=n=e.line,p[1]=x,i=e.bMarks[n],x>=s||e.sCount[x]=4)break;for(I=!1,a=0,g=ae.length;a=4||e.src.charCodeAt(O)!==91)return!1;for(;++O3)&&!(e.sCount[y]<0)){for(b=!1,u=0,h=x.length;u"u"&&(e.env.references={}),typeof e.env.references[p]>"u"&&(e.env.references[p]={title:C,href:c}),e.parentType=f,e.line=n+R+1),!0)},que=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],di={},Hue="[a-zA-Z_:][a-zA-Z0-9:._-]*",Vue="[^\"'=<>`\\x00-\\x20]+",Gue="'[^']*'",Kue='"[^"]*"',Wue="(?:"+Vue+"|"+Gue+"|"+Kue+")",Zue="(?:\\s+"+Hue+"(?:\\s*=\\s*"+Wue+")?)",lg="<[A-Za-z][A-Za-z0-9\\-]*"+Zue+"*\\s*\\/?>",cg="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Yue="|",Que="<[?][\\s\\S]*?[?]>",Jue="]*>",Xue="",ede=new RegExp("^(?:"+lg+"|"+cg+"|"+Yue+"|"+Que+"|"+Jue+"|"+Xue+")"),tde=new RegExp("^(?:"+lg+"|"+cg+")");di.HTML_TAG_RE=ede;di.HTML_OPEN_CLOSE_TAG_RE=tde;var nde=que,sde=di.HTML_OPEN_CLOSE_TAG_RE,us=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(sde.source+"\\s*$"),/^$/,!1]],ode=function(e,n,s,o){var r,i,a,l,c=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(c)!==60)return!1;for(l=e.src.slice(c,u),r=0;r=4||(r=e.src.charCodeAt(c),r!==35||c>=u))return!1;for(i=1,r=e.src.charCodeAt(++c);r===35&&c6||cc&&pd(e.src.charCodeAt(a-1))&&(u=a),e.line=n+1,l=e.push("heading_open","h"+String(i),1),l.markup="########".slice(0,i),l.map=[n,e.line],l=e.push("inline","",0),l.content=e.src.slice(c,u).trim(),l.map=[n,e.line],l.children=[],l=e.push("heading_close","h"+String(i),-1),l.markup="########".slice(0,i)),!0)},ide=function(e,n,s){var o,r,i,a,l,c,u,h,p,g=n+1,f,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(f=e.parentType,e.parentType="paragraph";g3)){if(e.sCount[g]>=e.blkIndent&&(c=e.bMarks[g]+e.tShift[g],u=e.eMarks[g],c=u)))){h=p===61?1:2;break}if(!(e.sCount[g]<0)){for(r=!1,i=0,a=m.length;i3)&&!(e.sCount[c]<0)){for(o=!1,r=0,i=u.length;r0&&this.level++,this.tokens.push(s),s};Xt.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Xt.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;en;)if(!hi(this.src.charCodeAt(--e)))return e+1;return e};Xt.prototype.skipChars=function(e,n){for(var s=this.src.length;es;)if(n!==this.src.charCodeAt(--e))return e+1;return e};Xt.prototype.getLines=function(e,n,s,o){var r,i,a,l,c,u,h,p=e;if(e>=n)return"";for(u=new Array(n-e),r=0;ps?u[r]=new Array(i-s+1).join(" ")+this.src.slice(l,c):u[r]=this.src.slice(l,c)}return u.join("")};Xt.prototype.Token=ug;var lde=Xt,cde=sc,Zo=[["table",Due,["paragraph","reference"]],["code",Lue],["fence",Iue,["paragraph","reference","blockquote","list"]],["blockquote",Pue,["paragraph","reference","blockquote","list"]],["hr",Bue,["paragraph","reference","blockquote","list"]],["list",jue,["paragraph","reference","blockquote"]],["reference",Uue],["html_block",ode,["paragraph","reference","blockquote"]],["heading",rde,["paragraph","reference","blockquote"]],["lheading",ide],["paragraph",ade]];function fi(){this.ruler=new cde;for(var t=0;t=n||t.sCount[a]=c){t.line=n;break}for(o=0;o0||(s=e.pos,o=e.posMax,s+3>o)||e.src.charCodeAt(s)!==58||e.src.charCodeAt(s+1)!==47||e.src.charCodeAt(s+2)!==47||(r=e.pending.match(fde),!r)||(i=r[1],a=e.md.linkify.matchAtStart(e.src.slice(s-i.length)),!a)||(l=a.url,l=l.replace(/\*+$/,""),c=e.md.normalizeLink(l),!e.md.validateLink(c))?!1:(n||(e.pending=e.pending.slice(0,-i.length),u=e.push("link_open","a",1),u.attrs=[["href",c]],u.markup="linkify",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(l),u=e.push("link_close","a",-1),u.markup="linkify",u.info="auto"),e.pos+=l.length-i.length,!0)},gde=ze.isSpace,mde=function(e,n){var s,o,r,i=e.pos;if(e.src.charCodeAt(i)!==10)return!1;if(s=e.pending.length-1,o=e.posMax,!n)if(s>=0&&e.pending.charCodeAt(s)===32)if(s>=1&&e.pending.charCodeAt(s-1)===32){for(r=s-1;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(i++;i?@[]^_`{|}~-".split("").forEach(function(t){ic[t.charCodeAt(0)]=1});var bde=function(e,n){var s,o,r,i,a,l=e.pos,c=e.posMax;if(e.src.charCodeAt(l)!==92||(l++,l>=c))return!1;if(s=e.src.charCodeAt(l),s===10){for(n||e.push("hardbreak","br",0),l++;l=55296&&s<=56319&&l+1=56320&&o<=57343&&(i+=e.src[l+1],l++)),r="\\"+i,n||(a=e.push("text_special","",0),s<256&&ic[s]!==0?a.content=i:a.content=r,a.markup=r,a.info="escape"),e.pos=l+1,!0},yde=function(e,n){var s,o,r,i,a,l,c,u,h=e.pos,p=e.src.charCodeAt(h);if(p!==96)return!1;for(s=h,h++,o=e.posMax;h=0;n--)s=e[n],!(s.marker!==95&&s.marker!==42)&&s.end!==-1&&(o=e[s.end],a=n>0&&e[n-1].end===s.end+1&&e[n-1].marker===s.marker&&e[n-1].token===s.token-1&&e[s.end+1].token===o.token+1,i=String.fromCharCode(s.marker),r=t.tokens[s.token],r.type=a?"strong_open":"em_open",r.tag=a?"strong":"em",r.nesting=1,r.markup=a?i+i:i,r.content="",r=t.tokens[o.token],r.type=a?"strong_close":"em_close",r.tag=a?"strong":"em",r.nesting=-1,r.markup=a?i+i:i,r.content="",a&&(t.tokens[e[n-1].token].content="",t.tokens[e[s.end+1].token].content="",n--))}gi.postProcess=function(e){var n,s=e.tokens_meta,o=e.tokens_meta.length;for(_d(e,e.delimiters),n=0;n=m)return!1;if(v=l,c=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),c.ok){for(p=e.md.normalizeLink(c.str),e.md.validateLink(p)?l=c.pos:p="",v=l;l=m||e.src.charCodeAt(l)!==41)&&(_=!0),l++}if(_){if(typeof e.env.references>"u")return!1;if(l=0?r=e.src.slice(v,l++):l=i+1):l=i+1,r||(r=e.src.slice(a,i)),u=e.env.references[vde(r)],!u)return e.pos=f,!1;p=u.href,g=u.title}return n||(e.pos=a,e.posMax=i,h=e.push("link_open","a",1),h.attrs=s=[["href",p]],g&&s.push(["title",g]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,h=e.push("link_close","a",-1)),e.pos=l,e.posMax=m,!0},xde=ze.normalizeReference,Ki=ze.isSpace,kde=function(e,n){var s,o,r,i,a,l,c,u,h,p,g,f,m,v="",_=e.pos,b=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(l=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(c=a+1,c=b)return!1;for(m=c,h=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),h.ok&&(v=e.md.normalizeLink(h.str),e.md.validateLink(v)?c=h.pos:v=""),m=c;c=b||e.src.charCodeAt(c)!==41)return e.pos=_,!1;c++}else{if(typeof e.env.references>"u")return!1;if(c=0?i=e.src.slice(m,c++):c=a+1):c=a+1,i||(i=e.src.slice(l,a)),u=e.env.references[xde(i)],!u)return e.pos=_,!1;v=u.href,p=u.title}return n||(r=e.src.slice(l,a),e.md.inline.parse(r,e.md,e.env,f=[]),g=e.push("image","img",0),g.attrs=s=[["src",v],["alt",""]],g.children=f,g.content=r,p&&s.push(["title",p])),e.pos=c,e.posMax=b,!0},Ede=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Cde=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Ade=function(e,n){var s,o,r,i,a,l,c=e.pos;if(e.src.charCodeAt(c)!==60)return!1;for(a=e.pos,l=e.posMax;;){if(++c>=l||(i=e.src.charCodeAt(c),i===60))return!1;if(i===62)break}return s=e.src.slice(a+1,c),Cde.test(s)?(o=e.md.normalizeLink(s),e.md.validateLink(o)?(n||(r=e.push("link_open","a",1),r.attrs=[["href",o]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(s),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=s.length+2,!0):!1):Ede.test(s)?(o=e.md.normalizeLink("mailto:"+s),e.md.validateLink(o)?(n||(r=e.push("link_open","a",1),r.attrs=[["href",o]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(s),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=s.length+2,!0):!1):!1},Sde=di.HTML_TAG_RE;function Tde(t){return/^\s]/i.test(t)}function Mde(t){return/^<\/a\s*>/i.test(t)}function Ode(t){var e=t|32;return e>=97&&e<=122}var Rde=function(e,n){var s,o,r,i,a=e.pos;return!e.md.options.html||(r=e.posMax,e.src.charCodeAt(a)!==60||a+2>=r)||(s=e.src.charCodeAt(a+1),s!==33&&s!==63&&s!==47&&!Ode(s))||(o=e.src.slice(a).match(Sde),!o)?!1:(n||(i=e.push("html_inline","",0),i.content=e.src.slice(a,a+o[0].length),Tde(i.content)&&e.linkLevel++,Mde(i.content)&&e.linkLevel--),e.pos+=o[0].length,!0)},bd=tg,Nde=ze.has,Dde=ze.isValidEntityCode,yd=ze.fromCodePoint,Lde=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Ide=/^&([a-z][a-z0-9]{1,31});/i,Pde=function(e,n){var s,o,r,i,a=e.pos,l=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=l)return!1;if(s=e.src.charCodeAt(a+1),s===35){if(r=e.src.slice(a).match(Lde),r)return n||(o=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),i=e.push("text_special","",0),i.content=Dde(o)?yd(o):yd(65533),i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0}else if(r=e.src.slice(a).match(Ide),r&&Nde(bd,r[1]))return n||(i=e.push("text_special","",0),i.content=bd[r[1]],i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0;return!1};function vd(t,e){var n,s,o,r,i,a,l,c,u={},h=e.length;if(h){var p=0,g=-2,f=[];for(n=0;ni;s-=f[s]+1)if(r=e[s],r.marker===o.marker&&r.open&&r.end<0&&(l=!1,(r.close||o.open)&&(r.length+o.length)%3===0&&(r.length%3!==0||o.length%3!==0)&&(l=!0),!l)){c=s>0&&!e[s-1].open?f[s-1]+1:0,f[n]=n-s+c,f[s]=c,o.open=!1,r.end=n,r.close=!1,a=-1,g=-2;break}a!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var Fde=function(e){var n,s=e.tokens_meta,o=e.tokens_meta.length;for(vd(e,e.delimiters),n=0;n0&&o++,r[n].type==="text"&&n+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(s),this.tokens_meta.push(o),s};Lo.prototype.scanDelims=function(t,e){var n=t,s,o,r,i,a,l,c,u,h,p=!0,g=!0,f=this.posMax,m=this.src.charCodeAt(t);for(s=t>0?this.src.charCodeAt(t-1):32;n=r)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Io.prototype.parse=function(t,e,n,s){var o,r,i,a=new this.State(t,e,n,s);for(this.tokenize(a),r=this.ruler2.getRules(""),i=r.length,o=0;o|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Yi}function cl(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(s){t[s]=n[s]})}),t}function mi(t){return Object.prototype.toString.call(t)}function Ude(t){return mi(t)==="[object String]"}function qde(t){return mi(t)==="[object Object]"}function Hde(t){return mi(t)==="[object RegExp]"}function Ad(t){return mi(t)==="[object Function]"}function Vde(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var dg={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Gde(t){return Object.keys(t||{}).reduce(function(e,n){return e||dg.hasOwnProperty(n)},!1)}var Kde={"http:":{validate:function(t,e,n){var s=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(s)?s.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var s=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(s)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:s.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var s=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(s)?s.match(n.re.mailto)[0].length:0}}},Wde="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Zde="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Yde(t){t.__index__=-1,t.__text_cache__=""}function Qde(t){return function(e,n){var s=e.slice(n);return t.test(s)?s.match(t)[0].length:0}}function Sd(){return function(t,e){e.normalize(t)}}function Sr(t){var e=t.re=zde()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Wde),n.push(e.src_xn),e.src_tlds=n.join("|");function s(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(s(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(s(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(s(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(s(e.tpl_host_fuzzy_test),"i");var o=[];t.__compiled__={};function r(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(t.__schemas__).forEach(function(a){var l=t.__schemas__[a];if(l!==null){var c={validate:null,link:null};if(t.__compiled__[a]=c,qde(l)){Hde(l.validate)?c.validate=Qde(l.validate):Ad(l.validate)?c.validate=l.validate:r(a,l),Ad(l.normalize)?c.normalize=l.normalize:l.normalize?r(a,l):c.normalize=Sd();return}if(Ude(l)){o.push(a);return}r(a,l)}}),o.forEach(function(a){t.__compiled__[t.__schemas__[a]]&&(t.__compiled__[a].validate=t.__compiled__[t.__schemas__[a]].validate,t.__compiled__[a].normalize=t.__compiled__[t.__schemas__[a]].normalize)}),t.__compiled__[""]={validate:null,normalize:Sd()};var i=Object.keys(t.__compiled__).filter(function(a){return a.length>0&&t.__compiled__[a]}).map(Vde).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+i+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+i+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),Yde(t)}function Jde(t,e){var n=t.__index__,s=t.__last_index__,o=t.__text_cache__.slice(n,s);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=s+e,this.raw=o,this.text=o,this.url=o}function ul(t,e){var n=new Jde(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function _t(t,e){if(!(this instanceof _t))return new _t(t,e);e||Gde(t)&&(e=t,t={}),this.__opts__=cl({},dg,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=cl({},Kde,t),this.__compiled__={},this.__tlds__=Zde,this.__tlds_replaced__=!1,this.re={},Sr(this)}_t.prototype.add=function(e,n){return this.__schemas__[e]=n,Sr(this),this};_t.prototype.set=function(e){return this.__opts__=cl(this.__opts__,e),this};_t.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,s,o,r,i,a,l,c,u;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(e))!==null;)if(r=this.testSchemaAt(e,n[2],l.lastIndex),r){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c=0&&(o=e.match(this.re.email_fuzzy))!==null&&(i=o.index+o[1].length,a=o.index+o[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a))),this.__index__>=0};_t.prototype.pretest=function(e){return this.re.pretest.test(e)};_t.prototype.testSchemaAt=function(e,n,s){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,s,this):0};_t.prototype.match=function(e){var n=0,s=[];this.__index__>=0&&this.__text_cache__===e&&(s.push(ul(this,n)),n=this.__last_index__);for(var o=n?e.slice(n):e;this.test(o);)s.push(ul(this,n)),o=o.slice(this.__last_index__),n+=this.__last_index__;return s.length?s:null};_t.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var s=this.testSchemaAt(e,n[2],n[0].length);return s?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s,ul(this,0)):null};_t.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(s,o,r){return s!==r[o-1]}).reverse(),Sr(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Sr(this),this)};_t.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};_t.prototype.onCompile=function(){};var Xde=_t;const xs=2147483647,Vt=36,lc=1,Co=26,ehe=38,the=700,hg=72,fg=128,pg="-",nhe=/^xn--/,she=/[^\0-\x7F]/,ohe=/[\x2E\u3002\uFF0E\uFF61]/g,rhe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Qi=Vt-lc,Gt=Math.floor,Ji=String.fromCharCode;function vn(t){throw new RangeError(rhe[t])}function ihe(t,e){const n=[];let s=t.length;for(;s--;)n[s]=e(t[s]);return n}function gg(t,e){const n=t.split("@");let s="";n.length>1&&(s=n[0]+"@",t=n[1]),t=t.replace(ohe,".");const o=t.split("."),r=ihe(o,e).join(".");return s+r}function cc(t){const e=[];let n=0;const s=t.length;for(;n=55296&&o<=56319&&nString.fromCodePoint(...t),ahe=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Vt},Td=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},_g=function(t,e,n){let s=0;for(t=n?Gt(t/the):t>>1,t+=Gt(t/e);t>Qi*Co>>1;s+=Vt)t=Gt(t/Qi);return Gt(s+(Qi+1)*t/(t+ehe))},uc=function(t){const e=[],n=t.length;let s=0,o=fg,r=hg,i=t.lastIndexOf(pg);i<0&&(i=0);for(let a=0;a=128&&vn("not-basic"),e.push(t.charCodeAt(a));for(let a=i>0?i+1:0;a=n&&vn("invalid-input");const p=ahe(t.charCodeAt(a++));p>=Vt&&vn("invalid-input"),p>Gt((xs-s)/u)&&vn("overflow"),s+=p*u;const g=h<=r?lc:h>=r+Co?Co:h-r;if(pGt(xs/f)&&vn("overflow"),u*=f}const c=e.length+1;r=_g(s-l,c,l==0),Gt(s/c)>xs-o&&vn("overflow"),o+=Gt(s/c),s%=c,e.splice(s++,0,o)}return String.fromCodePoint(...e)},dc=function(t){const e=[];t=cc(t);const n=t.length;let s=fg,o=0,r=hg;for(const l of t)l<128&&e.push(Ji(l));const i=e.length;let a=i;for(i&&e.push(pg);a=s&&uGt((xs-o)/c)&&vn("overflow"),o+=(l-s)*c,s=l;for(const u of t)if(uxs&&vn("overflow"),u===s){let h=o;for(let p=Vt;;p+=Vt){const g=p<=r?lc:p>=r+Co?Co:p-r;if(h=0))try{e.hostname=vg.toASCII(e.hostname)}catch{}return Gn.encode(Gn.format(e))}function Che(t){var e=Gn.parse(t,!0);if(e.hostname&&(!e.protocol||wg.indexOf(e.protocol)>=0))try{e.hostname=vg.toUnicode(e.hostname)}catch{}return Gn.decode(Gn.format(e),Gn.decode.defaultChars+"%")}function At(t,e){if(!(this instanceof At))return new At(t,e);e||ao.isString(t)||(e=t||{},t="default"),this.inline=new bhe,this.block=new _he,this.core=new mhe,this.renderer=new ghe,this.linkify=new yhe,this.validateLink=khe,this.normalizeLink=Ehe,this.normalizeLinkText=Che,this.utils=ao,this.helpers=ao.assign({},phe),this.options={},this.configure(t),e&&this.set(e)}At.prototype.set=function(t){return ao.assign(this.options,t),this};At.prototype.configure=function(t){var e=this,n;if(ao.isString(t)&&(n=t,t=vhe[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(s){t.components[s].rules&&e[s].ruler.enableOnly(t.components[s].rules),t.components[s].rules2&&e[s].ruler2.enableOnly(t.components[s].rules2)}),this};At.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var s=t.filter(function(o){return n.indexOf(o)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+s);return this};At.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var s=t.filter(function(o){return n.indexOf(o)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+s);return this};At.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};At.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};At.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};At.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};At.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Ahe=At,She=Ahe;const The=rs(She),Mhe="😀",Ohe="😃",Rhe="😄",Nhe="😁",Dhe="😆",Lhe="😆",Ihe="😅",Phe="🤣",Fhe="😂",Bhe="🙂",$he="🙃",jhe="😉",zhe="😊",Uhe="😇",qhe="🥰",Hhe="😍",Vhe="🤩",Ghe="😘",Khe="😗",Whe="☺️",Zhe="😚",Yhe="😙",Qhe="🥲",Jhe="😋",Xhe="😛",efe="😜",tfe="🤪",nfe="😝",sfe="🤑",ofe="🤗",rfe="🤭",ife="🤫",afe="🤔",lfe="🤐",cfe="🤨",ufe="😐",dfe="😑",hfe="😶",ffe="😏",pfe="😒",gfe="🙄",mfe="😬",_fe="🤥",bfe="😌",yfe="😔",vfe="😪",wfe="🤤",xfe="😴",kfe="😷",Efe="🤒",Cfe="🤕",Afe="🤢",Sfe="🤮",Tfe="🤧",Mfe="🥵",Ofe="🥶",Rfe="🥴",Nfe="😵",Dfe="🤯",Lfe="🤠",Ife="🥳",Pfe="🥸",Ffe="😎",Bfe="🤓",$fe="🧐",jfe="😕",zfe="😟",Ufe="🙁",qfe="☹️",Hfe="😮",Vfe="😯",Gfe="😲",Kfe="😳",Wfe="🥺",Zfe="😦",Yfe="😧",Qfe="😨",Jfe="😰",Xfe="😥",epe="😢",tpe="😭",npe="😱",spe="😖",ope="😣",rpe="😞",ipe="😓",ape="😩",lpe="😫",cpe="🥱",upe="😤",dpe="😡",hpe="😡",fpe="😠",ppe="🤬",gpe="😈",mpe="👿",_pe="💀",bpe="☠️",ype="💩",vpe="💩",wpe="💩",xpe="🤡",kpe="👹",Epe="👺",Cpe="👻",Ape="👽",Spe="👾",Tpe="🤖",Mpe="😺",Ope="😸",Rpe="😹",Npe="😻",Dpe="😼",Lpe="😽",Ipe="🙀",Ppe="😿",Fpe="😾",Bpe="🙈",$pe="🙉",jpe="🙊",zpe="💋",Upe="💌",qpe="💘",Hpe="💝",Vpe="💖",Gpe="💗",Kpe="💓",Wpe="💞",Zpe="💕",Ype="💟",Qpe="❣️",Jpe="💔",Xpe="❤️",ege="🧡",tge="💛",nge="💚",sge="💙",oge="💜",rge="🤎",ige="🖤",age="🤍",lge="💢",cge="💥",uge="💥",dge="💫",hge="💦",fge="💨",pge="🕳️",gge="💣",mge="💬",_ge="👁️‍🗨️",bge="🗨️",yge="🗯️",vge="💭",wge="💤",xge="👋",kge="🤚",Ege="🖐️",Cge="✋",Age="✋",Sge="🖖",Tge="👌",Mge="🤌",Oge="🤏",Rge="✌️",Nge="🤞",Dge="🤟",Lge="🤘",Ige="🤙",Pge="👈",Fge="👉",Bge="👆",$ge="🖕",jge="🖕",zge="👇",Uge="☝️",qge="👍",Hge="👎",Vge="✊",Gge="✊",Kge="👊",Wge="👊",Zge="👊",Yge="🤛",Qge="🤜",Jge="👏",Xge="🙌",eme="👐",tme="🤲",nme="🤝",sme="🙏",ome="✍️",rme="💅",ime="🤳",ame="💪",lme="🦾",cme="🦿",ume="🦵",dme="🦶",hme="👂",fme="🦻",pme="👃",gme="🧠",mme="🫀",_me="🫁",bme="🦷",yme="🦴",vme="👀",wme="👁️",xme="👅",kme="👄",Eme="👶",Cme="🧒",Ame="👦",Sme="👧",Tme="🧑",Mme="👱",Ome="👨",Rme="🧔",Nme="👨‍🦰",Dme="👨‍🦱",Lme="👨‍🦳",Ime="👨‍🦲",Pme="👩",Fme="👩‍🦰",Bme="🧑‍🦰",$me="👩‍🦱",jme="🧑‍🦱",zme="👩‍🦳",Ume="🧑‍🦳",qme="👩‍🦲",Hme="🧑‍🦲",Vme="👱‍♀️",Gme="👱‍♀️",Kme="👱‍♂️",Wme="🧓",Zme="👴",Yme="👵",Qme="🙍",Jme="🙍‍♂️",Xme="🙍‍♀️",e_e="🙎",t_e="🙎‍♂️",n_e="🙎‍♀️",s_e="🙅",o_e="🙅‍♂️",r_e="🙅‍♂️",i_e="🙅‍♀️",a_e="🙅‍♀️",l_e="🙆",c_e="🙆‍♂️",u_e="🙆‍♀️",d_e="💁",h_e="💁",f_e="💁‍♂️",p_e="💁‍♂️",g_e="💁‍♀️",m_e="💁‍♀️",__e="🙋",b_e="🙋‍♂️",y_e="🙋‍♀️",v_e="🧏",w_e="🧏‍♂️",x_e="🧏‍♀️",k_e="🙇",E_e="🙇‍♂️",C_e="🙇‍♀️",A_e="🤦",S_e="🤦‍♂️",T_e="🤦‍♀️",M_e="🤷",O_e="🤷‍♂️",R_e="🤷‍♀️",N_e="🧑‍⚕️",D_e="👨‍⚕️",L_e="👩‍⚕️",I_e="🧑‍🎓",P_e="👨‍🎓",F_e="👩‍🎓",B_e="🧑‍🏫",$_e="👨‍🏫",j_e="👩‍🏫",z_e="🧑‍⚖️",U_e="👨‍⚖️",q_e="👩‍⚖️",H_e="🧑‍🌾",V_e="👨‍🌾",G_e="👩‍🌾",K_e="🧑‍🍳",W_e="👨‍🍳",Z_e="👩‍🍳",Y_e="🧑‍🔧",Q_e="👨‍🔧",J_e="👩‍🔧",X_e="🧑‍🏭",e1e="👨‍🏭",t1e="👩‍🏭",n1e="🧑‍💼",s1e="👨‍💼",o1e="👩‍💼",r1e="🧑‍🔬",i1e="👨‍🔬",a1e="👩‍🔬",l1e="🧑‍💻",c1e="👨‍💻",u1e="👩‍💻",d1e="🧑‍🎤",h1e="👨‍🎤",f1e="👩‍🎤",p1e="🧑‍🎨",g1e="👨‍🎨",m1e="👩‍🎨",_1e="🧑‍✈️",b1e="👨‍✈️",y1e="👩‍✈️",v1e="🧑‍🚀",w1e="👨‍🚀",x1e="👩‍🚀",k1e="🧑‍🚒",E1e="👨‍🚒",C1e="👩‍🚒",A1e="👮",S1e="👮",T1e="👮‍♂️",M1e="👮‍♀️",O1e="🕵️",R1e="🕵️‍♂️",N1e="🕵️‍♀️",D1e="💂",L1e="💂‍♂️",I1e="💂‍♀️",P1e="🥷",F1e="👷",B1e="👷‍♂️",$1e="👷‍♀️",j1e="🤴",z1e="👸",U1e="👳",q1e="👳‍♂️",H1e="👳‍♀️",V1e="👲",G1e="🧕",K1e="🤵",W1e="🤵‍♂️",Z1e="🤵‍♀️",Y1e="👰",Q1e="👰‍♂️",J1e="👰‍♀️",X1e="👰‍♀️",e0e="🤰",t0e="🤱",n0e="👩‍🍼",s0e="👨‍🍼",o0e="🧑‍🍼",r0e="👼",i0e="🎅",a0e="🤶",l0e="🧑‍🎄",c0e="🦸",u0e="🦸‍♂️",d0e="🦸‍♀️",h0e="🦹",f0e="🦹‍♂️",p0e="🦹‍♀️",g0e="🧙",m0e="🧙‍♂️",_0e="🧙‍♀️",b0e="🧚",y0e="🧚‍♂️",v0e="🧚‍♀️",w0e="🧛",x0e="🧛‍♂️",k0e="🧛‍♀️",E0e="🧜",C0e="🧜‍♂️",A0e="🧜‍♀️",S0e="🧝",T0e="🧝‍♂️",M0e="🧝‍♀️",O0e="🧞",R0e="🧞‍♂️",N0e="🧞‍♀️",D0e="🧟",L0e="🧟‍♂️",I0e="🧟‍♀️",P0e="💆",F0e="💆‍♂️",B0e="💆‍♀️",$0e="💇",j0e="💇‍♂️",z0e="💇‍♀️",U0e="🚶",q0e="🚶‍♂️",H0e="🚶‍♀️",V0e="🧍",G0e="🧍‍♂️",K0e="🧍‍♀️",W0e="🧎",Z0e="🧎‍♂️",Y0e="🧎‍♀️",Q0e="🧑‍🦯",J0e="👨‍🦯",X0e="👩‍🦯",ebe="🧑‍🦼",tbe="👨‍🦼",nbe="👩‍🦼",sbe="🧑‍🦽",obe="👨‍🦽",rbe="👩‍🦽",ibe="🏃",abe="🏃",lbe="🏃‍♂️",cbe="🏃‍♀️",ube="💃",dbe="💃",hbe="🕺",fbe="🕴️",pbe="👯",gbe="👯‍♂️",mbe="👯‍♀️",_be="🧖",bbe="🧖‍♂️",ybe="🧖‍♀️",vbe="🧗",wbe="🧗‍♂️",xbe="🧗‍♀️",kbe="🤺",Ebe="🏇",Cbe="⛷️",Abe="🏂",Sbe="🏌️",Tbe="🏌️‍♂️",Mbe="🏌️‍♀️",Obe="🏄",Rbe="🏄‍♂️",Nbe="🏄‍♀️",Dbe="🚣",Lbe="🚣‍♂️",Ibe="🚣‍♀️",Pbe="🏊",Fbe="🏊‍♂️",Bbe="🏊‍♀️",$be="⛹️",jbe="⛹️‍♂️",zbe="⛹️‍♂️",Ube="⛹️‍♀️",qbe="⛹️‍♀️",Hbe="🏋️",Vbe="🏋️‍♂️",Gbe="🏋️‍♀️",Kbe="🚴",Wbe="🚴‍♂️",Zbe="🚴‍♀️",Ybe="🚵",Qbe="🚵‍♂️",Jbe="🚵‍♀️",Xbe="🤸",eye="🤸‍♂️",tye="🤸‍♀️",nye="🤼",sye="🤼‍♂️",oye="🤼‍♀️",rye="🤽",iye="🤽‍♂️",aye="🤽‍♀️",lye="🤾",cye="🤾‍♂️",uye="🤾‍♀️",dye="🤹",hye="🤹‍♂️",fye="🤹‍♀️",pye="🧘",gye="🧘‍♂️",mye="🧘‍♀️",_ye="🛀",bye="🛌",yye="🧑‍🤝‍🧑",vye="👭",wye="👫",xye="👬",kye="💏",Eye="👩‍❤️‍💋‍👨",Cye="👨‍❤️‍💋‍👨",Aye="👩‍❤️‍💋‍👩",Sye="💑",Tye="👩‍❤️‍👨",Mye="👨‍❤️‍👨",Oye="👩‍❤️‍👩",Rye="👪",Nye="👨‍👩‍👦",Dye="👨‍👩‍👧",Lye="👨‍👩‍👧‍👦",Iye="👨‍👩‍👦‍👦",Pye="👨‍👩‍👧‍👧",Fye="👨‍👨‍👦",Bye="👨‍👨‍👧",$ye="👨‍👨‍👧‍👦",jye="👨‍👨‍👦‍👦",zye="👨‍👨‍👧‍👧",Uye="👩‍👩‍👦",qye="👩‍👩‍👧",Hye="👩‍👩‍👧‍👦",Vye="👩‍👩‍👦‍👦",Gye="👩‍👩‍👧‍👧",Kye="👨‍👦",Wye="👨‍👦‍👦",Zye="👨‍👧",Yye="👨‍👧‍👦",Qye="👨‍👧‍👧",Jye="👩‍👦",Xye="👩‍👦‍👦",e2e="👩‍👧",t2e="👩‍👧‍👦",n2e="👩‍👧‍👧",s2e="🗣️",o2e="👤",r2e="👥",i2e="🫂",a2e="👣",l2e="🐵",c2e="🐒",u2e="🦍",d2e="🦧",h2e="🐶",f2e="🐕",p2e="🦮",g2e="🐕‍🦺",m2e="🐩",_2e="🐺",b2e="🦊",y2e="🦝",v2e="🐱",w2e="🐈",x2e="🐈‍⬛",k2e="🦁",E2e="🐯",C2e="🐅",A2e="🐆",S2e="🐴",T2e="🐎",M2e="🦄",O2e="🦓",R2e="🦌",N2e="🦬",D2e="🐮",L2e="🐂",I2e="🐃",P2e="🐄",F2e="🐷",B2e="🐖",$2e="🐗",j2e="🐽",z2e="🐏",U2e="🐑",q2e="🐐",H2e="🐪",V2e="🐫",G2e="🦙",K2e="🦒",W2e="🐘",Z2e="🦣",Y2e="🦏",Q2e="🦛",J2e="🐭",X2e="🐁",eve="🐀",tve="🐹",nve="🐰",sve="🐇",ove="🐿️",rve="🦫",ive="🦔",ave="🦇",lve="🐻",cve="🐻‍❄️",uve="🐨",dve="🐼",hve="🦥",fve="🦦",pve="🦨",gve="🦘",mve="🦡",_ve="🐾",bve="🐾",yve="🦃",vve="🐔",wve="🐓",xve="🐣",kve="🐤",Eve="🐥",Cve="🐦",Ave="🐧",Sve="🕊️",Tve="🦅",Mve="🦆",Ove="🦢",Rve="🦉",Nve="🦤",Dve="🪶",Lve="🦩",Ive="🦚",Pve="🦜",Fve="🐸",Bve="🐊",$ve="🐢",jve="🦎",zve="🐍",Uve="🐲",qve="🐉",Hve="🦕",Vve="🐳",Gve="🐋",Kve="🐬",Wve="🐬",Zve="🦭",Yve="🐟",Qve="🐠",Jve="🐡",Xve="🦈",ewe="🐙",twe="🐚",nwe="🐌",swe="🦋",owe="🐛",rwe="🐜",iwe="🐝",awe="🐝",lwe="🪲",cwe="🐞",uwe="🦗",dwe="🪳",hwe="🕷️",fwe="🕸️",pwe="🦂",gwe="🦟",mwe="🪰",_we="🪱",bwe="🦠",ywe="💐",vwe="🌸",wwe="💮",xwe="🏵️",kwe="🌹",Ewe="🥀",Cwe="🌺",Awe="🌻",Swe="🌼",Twe="🌷",Mwe="🌱",Owe="🪴",Rwe="🌲",Nwe="🌳",Dwe="🌴",Lwe="🌵",Iwe="🌾",Pwe="🌿",Fwe="☘️",Bwe="🍀",$we="🍁",jwe="🍂",zwe="🍃",Uwe="🍇",qwe="🍈",Hwe="🍉",Vwe="🍊",Gwe="🍊",Kwe="🍊",Wwe="🍋",Zwe="🍌",Ywe="🍍",Qwe="🥭",Jwe="🍎",Xwe="🍏",exe="🍐",txe="🍑",nxe="🍒",sxe="🍓",oxe="🫐",rxe="🥝",ixe="🍅",axe="🫒",lxe="🥥",cxe="🥑",uxe="🍆",dxe="🥔",hxe="🥕",fxe="🌽",pxe="🌶️",gxe="🫑",mxe="🥒",_xe="🥬",bxe="🥦",yxe="🧄",vxe="🧅",wxe="🍄",xxe="🥜",kxe="🌰",Exe="🍞",Cxe="🥐",Axe="🥖",Sxe="🫓",Txe="🥨",Mxe="🥯",Oxe="🥞",Rxe="🧇",Nxe="🧀",Dxe="🍖",Lxe="🍗",Ixe="🥩",Pxe="🥓",Fxe="🍔",Bxe="🍟",$xe="🍕",jxe="🌭",zxe="🥪",Uxe="🌮",qxe="🌯",Hxe="🫔",Vxe="🥙",Gxe="🧆",Kxe="🥚",Wxe="🍳",Zxe="🥘",Yxe="🍲",Qxe="🫕",Jxe="🥣",Xxe="🥗",eke="🍿",tke="🧈",nke="🧂",ske="🥫",oke="🍱",rke="🍘",ike="🍙",ake="🍚",lke="🍛",cke="🍜",uke="🍝",dke="🍠",hke="🍢",fke="🍣",pke="🍤",gke="🍥",mke="🥮",_ke="🍡",bke="🥟",yke="🥠",vke="🥡",wke="🦀",xke="🦞",kke="🦐",Eke="🦑",Cke="🦪",Ake="🍦",Ske="🍧",Tke="🍨",Mke="🍩",Oke="🍪",Rke="🎂",Nke="🍰",Dke="🧁",Lke="🥧",Ike="🍫",Pke="🍬",Fke="🍭",Bke="🍮",$ke="🍯",jke="🍼",zke="🥛",Uke="☕",qke="🫖",Hke="🍵",Vke="🍶",Gke="🍾",Kke="🍷",Wke="🍸",Zke="🍹",Yke="🍺",Qke="🍻",Jke="🥂",Xke="🥃",eEe="🥤",tEe="🧋",nEe="🧃",sEe="🧉",oEe="🧊",rEe="🥢",iEe="🍽️",aEe="🍴",lEe="🥄",cEe="🔪",uEe="🔪",dEe="🏺",hEe="🌍",fEe="🌎",pEe="🌏",gEe="🌐",mEe="🗺️",_Ee="🗾",bEe="🧭",yEe="🏔️",vEe="⛰️",wEe="🌋",xEe="🗻",kEe="🏕️",EEe="🏖️",CEe="🏜️",AEe="🏝️",SEe="🏞️",TEe="🏟️",MEe="🏛️",OEe="🏗️",REe="🧱",NEe="🪨",DEe="🪵",LEe="🛖",IEe="🏘️",PEe="🏚️",FEe="🏠",BEe="🏡",$Ee="🏢",jEe="🏣",zEe="🏤",UEe="🏥",qEe="🏦",HEe="🏨",VEe="🏩",GEe="🏪",KEe="🏫",WEe="🏬",ZEe="🏭",YEe="🏯",QEe="🏰",JEe="💒",XEe="🗼",e5e="🗽",t5e="⛪",n5e="🕌",s5e="🛕",o5e="🕍",r5e="⛩️",i5e="🕋",a5e="⛲",l5e="⛺",c5e="🌁",u5e="🌃",d5e="🏙️",h5e="🌄",f5e="🌅",p5e="🌆",g5e="🌇",m5e="🌉",_5e="♨️",b5e="🎠",y5e="🎡",v5e="🎢",w5e="💈",x5e="🎪",k5e="🚂",E5e="🚃",C5e="🚄",A5e="🚅",S5e="🚆",T5e="🚇",M5e="🚈",O5e="🚉",R5e="🚊",N5e="🚝",D5e="🚞",L5e="🚋",I5e="🚌",P5e="🚍",F5e="🚎",B5e="🚐",$5e="🚑",j5e="🚒",z5e="🚓",U5e="🚔",q5e="🚕",H5e="🚖",V5e="🚗",G5e="🚗",K5e="🚘",W5e="🚙",Z5e="🛻",Y5e="🚚",Q5e="🚛",J5e="🚜",X5e="🏎️",e4e="🏍️",t4e="🛵",n4e="🦽",s4e="🦼",o4e="🛺",r4e="🚲",i4e="🛴",a4e="🛹",l4e="🛼",c4e="🚏",u4e="🛣️",d4e="🛤️",h4e="🛢️",f4e="⛽",p4e="🚨",g4e="🚥",m4e="🚦",_4e="🛑",b4e="🚧",y4e="⚓",v4e="⛵",w4e="⛵",x4e="🛶",k4e="🚤",E4e="🛳️",C4e="⛴️",A4e="🛥️",S4e="🚢",T4e="✈️",M4e="🛩️",O4e="🛫",R4e="🛬",N4e="🪂",D4e="💺",L4e="🚁",I4e="🚟",P4e="🚠",F4e="🚡",B4e="🛰️",$4e="🚀",j4e="🛸",z4e="🛎️",U4e="🧳",q4e="⌛",H4e="⏳",V4e="⌚",G4e="⏰",K4e="⏱️",W4e="⏲️",Z4e="🕰️",Y4e="🕛",Q4e="🕧",J4e="🕐",X4e="🕜",e3e="🕑",t3e="🕝",n3e="🕒",s3e="🕞",o3e="🕓",r3e="🕟",i3e="🕔",a3e="🕠",l3e="🕕",c3e="🕡",u3e="🕖",d3e="🕢",h3e="🕗",f3e="🕣",p3e="🕘",g3e="🕤",m3e="🕙",_3e="🕥",b3e="🕚",y3e="🕦",v3e="🌑",w3e="🌒",x3e="🌓",k3e="🌔",E3e="🌔",C3e="🌕",A3e="🌖",S3e="🌗",T3e="🌘",M3e="🌙",O3e="🌚",R3e="🌛",N3e="🌜",D3e="🌡️",L3e="☀️",I3e="🌝",P3e="🌞",F3e="🪐",B3e="⭐",$3e="🌟",j3e="🌠",z3e="🌌",U3e="☁️",q3e="⛅",H3e="⛈️",V3e="🌤️",G3e="🌥️",K3e="🌦️",W3e="🌧️",Z3e="🌨️",Y3e="🌩️",Q3e="🌪️",J3e="🌫️",X3e="🌬️",eCe="🌀",tCe="🌈",nCe="🌂",sCe="☂️",oCe="☔",rCe="⛱️",iCe="⚡",aCe="❄️",lCe="☃️",cCe="⛄",uCe="☄️",dCe="🔥",hCe="💧",fCe="🌊",pCe="🎃",gCe="🎄",mCe="🎆",_Ce="🎇",bCe="🧨",yCe="✨",vCe="🎈",wCe="🎉",xCe="🎊",kCe="🎋",ECe="🎍",CCe="🎎",ACe="🎏",SCe="🎐",TCe="🎑",MCe="🧧",OCe="🎀",RCe="🎁",NCe="🎗️",DCe="🎟️",LCe="🎫",ICe="🎖️",PCe="🏆",FCe="🏅",BCe="⚽",$Ce="⚾",jCe="🥎",zCe="🏀",UCe="🏐",qCe="🏈",HCe="🏉",VCe="🎾",GCe="🥏",KCe="🎳",WCe="🏏",ZCe="🏑",YCe="🏒",QCe="🥍",JCe="🏓",XCe="🏸",e9e="🥊",t9e="🥋",n9e="🥅",s9e="⛳",o9e="⛸️",r9e="🎣",i9e="🤿",a9e="🎽",l9e="🎿",c9e="🛷",u9e="🥌",d9e="🎯",h9e="🪀",f9e="🪁",p9e="🔮",g9e="🪄",m9e="🧿",_9e="🎮",b9e="🕹️",y9e="🎰",v9e="🎲",w9e="🧩",x9e="🧸",k9e="🪅",E9e="🪆",C9e="♠️",A9e="♥️",S9e="♦️",T9e="♣️",M9e="♟️",O9e="🃏",R9e="🀄",N9e="🎴",D9e="🎭",L9e="🖼️",I9e="🎨",P9e="🧵",F9e="🪡",B9e="🧶",$9e="🪢",j9e="👓",z9e="🕶️",U9e="🥽",q9e="🥼",H9e="🦺",V9e="👔",G9e="👕",K9e="👕",W9e="👖",Z9e="🧣",Y9e="🧤",Q9e="🧥",J9e="🧦",X9e="👗",e8e="👘",t8e="🥻",n8e="🩱",s8e="🩲",o8e="🩳",r8e="👙",i8e="👚",a8e="👛",l8e="👜",c8e="👝",u8e="🛍️",d8e="🎒",h8e="🩴",f8e="👞",p8e="👞",g8e="👟",m8e="🥾",_8e="🥿",b8e="👠",y8e="👡",v8e="🩰",w8e="👢",x8e="👑",k8e="👒",E8e="🎩",C8e="🎓",A8e="🧢",S8e="🪖",T8e="⛑️",M8e="📿",O8e="💄",R8e="💍",N8e="💎",D8e="🔇",L8e="🔈",I8e="🔉",P8e="🔊",F8e="📢",B8e="📣",$8e="📯",j8e="🔔",z8e="🔕",U8e="🎼",q8e="🎵",H8e="🎶",V8e="🎙️",G8e="🎚️",K8e="🎛️",W8e="🎤",Z8e="🎧",Y8e="📻",Q8e="🎷",J8e="🪗",X8e="🎸",eAe="🎹",tAe="🎺",nAe="🎻",sAe="🪕",oAe="🥁",rAe="🪘",iAe="📱",aAe="📲",lAe="☎️",cAe="☎️",uAe="📞",dAe="📟",hAe="📠",fAe="🔋",pAe="🔌",gAe="💻",mAe="🖥️",_Ae="🖨️",bAe="⌨️",yAe="🖱️",vAe="🖲️",wAe="💽",xAe="💾",kAe="💿",EAe="📀",CAe="🧮",AAe="🎥",SAe="🎞️",TAe="📽️",MAe="🎬",OAe="📺",RAe="📷",NAe="📸",DAe="📹",LAe="📼",IAe="🔍",PAe="🔎",FAe="🕯️",BAe="💡",$Ae="🔦",jAe="🏮",zAe="🏮",UAe="🪔",qAe="📔",HAe="📕",VAe="📖",GAe="📖",KAe="📗",WAe="📘",ZAe="📙",YAe="📚",QAe="📓",JAe="📒",XAe="📃",e6e="📜",t6e="📄",n6e="📰",s6e="🗞️",o6e="📑",r6e="🔖",i6e="🏷️",a6e="💰",l6e="🪙",c6e="💴",u6e="💵",d6e="💶",h6e="💷",f6e="💸",p6e="💳",g6e="🧾",m6e="💹",_6e="✉️",b6e="📧",y6e="📨",v6e="📩",w6e="📤",x6e="📥",k6e="📫",E6e="📪",C6e="📬",A6e="📭",S6e="📮",T6e="🗳️",M6e="✏️",O6e="✒️",R6e="🖋️",N6e="🖊️",D6e="🖌️",L6e="🖍️",I6e="📝",P6e="📝",F6e="💼",B6e="📁",$6e="📂",j6e="🗂️",z6e="📅",U6e="📆",q6e="🗒️",H6e="🗓️",V6e="📇",G6e="📈",K6e="📉",W6e="📊",Z6e="📋",Y6e="📌",Q6e="📍",J6e="📎",X6e="🖇️",eSe="📏",tSe="📐",nSe="✂️",sSe="🗃️",oSe="🗄️",rSe="🗑️",iSe="🔒",aSe="🔓",lSe="🔏",cSe="🔐",uSe="🔑",dSe="🗝️",hSe="🔨",fSe="🪓",pSe="⛏️",gSe="⚒️",mSe="🛠️",_Se="🗡️",bSe="⚔️",ySe="🔫",vSe="🪃",wSe="🏹",xSe="🛡️",kSe="🪚",ESe="🔧",CSe="🪛",ASe="🔩",SSe="⚙️",TSe="🗜️",MSe="⚖️",OSe="🦯",RSe="🔗",NSe="⛓️",DSe="🪝",LSe="🧰",ISe="🧲",PSe="🪜",FSe="⚗️",BSe="🧪",$Se="🧫",jSe="🧬",zSe="🔬",USe="🔭",qSe="📡",HSe="💉",VSe="🩸",GSe="💊",KSe="🩹",WSe="🩺",ZSe="🚪",YSe="🛗",QSe="🪞",JSe="🪟",XSe="🛏️",eTe="🛋️",tTe="🪑",nTe="🚽",sTe="🪠",oTe="🚿",rTe="🛁",iTe="🪤",aTe="🪒",lTe="🧴",cTe="🧷",uTe="🧹",dTe="🧺",hTe="🧻",fTe="🪣",pTe="🧼",gTe="🪥",mTe="🧽",_Te="🧯",bTe="🛒",yTe="🚬",vTe="⚰️",wTe="🪦",xTe="⚱️",kTe="🗿",ETe="🪧",CTe="🏧",ATe="🚮",STe="🚰",TTe="♿",MTe="🚹",OTe="🚺",RTe="🚻",NTe="🚼",DTe="🚾",LTe="🛂",ITe="🛃",PTe="🛄",FTe="🛅",BTe="⚠️",$Te="🚸",jTe="⛔",zTe="🚫",UTe="🚳",qTe="🚭",HTe="🚯",VTe="🚷",GTe="📵",KTe="🔞",WTe="☢️",ZTe="☣️",YTe="⬆️",QTe="↗️",JTe="➡️",XTe="↘️",e7e="⬇️",t7e="↙️",n7e="⬅️",s7e="↖️",o7e="↕️",r7e="↔️",i7e="↩️",a7e="↪️",l7e="⤴️",c7e="⤵️",u7e="🔃",d7e="🔄",h7e="🔙",f7e="🔚",p7e="🔛",g7e="🔜",m7e="🔝",_7e="🛐",b7e="⚛️",y7e="🕉️",v7e="✡️",w7e="☸️",x7e="☯️",k7e="✝️",E7e="☦️",C7e="☪️",A7e="☮️",S7e="🕎",T7e="🔯",M7e="♈",O7e="♉",R7e="♊",N7e="♋",D7e="♌",L7e="♍",I7e="♎",P7e="♏",F7e="♐",B7e="♑",$7e="♒",j7e="♓",z7e="⛎",U7e="🔀",q7e="🔁",H7e="🔂",V7e="▶️",G7e="⏩",K7e="⏭️",W7e="⏯️",Z7e="◀️",Y7e="⏪",Q7e="⏮️",J7e="🔼",X7e="⏫",eMe="🔽",tMe="⏬",nMe="⏸️",sMe="⏹️",oMe="⏺️",rMe="⏏️",iMe="🎦",aMe="🔅",lMe="🔆",cMe="📶",uMe="📳",dMe="📴",hMe="♀️",fMe="♂️",pMe="⚧️",gMe="✖️",mMe="➕",_Me="➖",bMe="➗",yMe="♾️",vMe="‼️",wMe="⁉️",xMe="❓",kMe="❔",EMe="❕",CMe="❗",AMe="❗",SMe="〰️",TMe="💱",MMe="💲",OMe="⚕️",RMe="♻️",NMe="⚜️",DMe="🔱",LMe="📛",IMe="🔰",PMe="⭕",FMe="✅",BMe="☑️",$Me="✔️",jMe="❌",zMe="❎",UMe="➰",qMe="➿",HMe="〽️",VMe="✳️",GMe="✴️",KMe="❇️",WMe="©️",ZMe="®️",YMe="™️",QMe="#️⃣",JMe="*️⃣",XMe="0️⃣",eOe="1️⃣",tOe="2️⃣",nOe="3️⃣",sOe="4️⃣",oOe="5️⃣",rOe="6️⃣",iOe="7️⃣",aOe="8️⃣",lOe="9️⃣",cOe="🔟",uOe="🔠",dOe="🔡",hOe="🔣",fOe="🔤",pOe="🅰️",gOe="🆎",mOe="🅱️",_Oe="🆑",bOe="🆒",yOe="🆓",vOe="ℹ️",wOe="🆔",xOe="Ⓜ️",kOe="🆖",EOe="🅾️",COe="🆗",AOe="🅿️",SOe="🆘",TOe="🆙",MOe="🆚",OOe="🈁",ROe="🈂️",NOe="🉐",DOe="🉑",LOe="㊗️",IOe="㊙️",POe="🈵",FOe="🔴",BOe="🟠",$Oe="🟡",jOe="🟢",zOe="🔵",UOe="🟣",qOe="🟤",HOe="⚫",VOe="⚪",GOe="🟥",KOe="🟧",WOe="🟨",ZOe="🟩",YOe="🟦",QOe="🟪",JOe="🟫",XOe="⬛",eRe="⬜",tRe="◼️",nRe="◻️",sRe="◾",oRe="◽",rRe="▪️",iRe="▫️",aRe="🔶",lRe="🔷",cRe="🔸",uRe="🔹",dRe="🔺",hRe="🔻",fRe="💠",pRe="🔘",gRe="🔳",mRe="🔲",_Re="🏁",bRe="🚩",yRe="🎌",vRe="🏴",wRe="🏳️",xRe="🏳️‍🌈",kRe="🏳️‍⚧️",ERe="🏴‍☠️",CRe="🇦🇨",ARe="🇦🇩",SRe="🇦🇪",TRe="🇦🇫",MRe="🇦🇬",ORe="🇦🇮",RRe="🇦🇱",NRe="🇦🇲",DRe="🇦🇴",LRe="🇦🇶",IRe="🇦🇷",PRe="🇦🇸",FRe="🇦🇹",BRe="🇦🇺",$Re="🇦🇼",jRe="🇦🇽",zRe="🇦🇿",URe="🇧🇦",qRe="🇧🇧",HRe="🇧🇩",VRe="🇧🇪",GRe="🇧🇫",KRe="🇧🇬",WRe="🇧🇭",ZRe="🇧🇮",YRe="🇧🇯",QRe="🇧🇱",JRe="🇧🇲",XRe="🇧🇳",eNe="🇧🇴",tNe="🇧🇶",nNe="🇧🇷",sNe="🇧🇸",oNe="🇧🇹",rNe="🇧🇻",iNe="🇧🇼",aNe="🇧🇾",lNe="🇧🇿",cNe="🇨🇦",uNe="🇨🇨",dNe="🇨🇩",hNe="🇨🇫",fNe="🇨🇬",pNe="🇨🇭",gNe="🇨🇮",mNe="🇨🇰",_Ne="🇨🇱",bNe="🇨🇲",yNe="🇨🇳",vNe="🇨🇴",wNe="🇨🇵",xNe="🇨🇷",kNe="🇨🇺",ENe="🇨🇻",CNe="🇨🇼",ANe="🇨🇽",SNe="🇨🇾",TNe="🇨🇿",MNe="🇩🇪",ONe="🇩🇬",RNe="🇩🇯",NNe="🇩🇰",DNe="🇩🇲",LNe="🇩🇴",INe="🇩🇿",PNe="🇪🇦",FNe="🇪🇨",BNe="🇪🇪",$Ne="🇪🇬",jNe="🇪🇭",zNe="🇪🇷",UNe="🇪🇸",qNe="🇪🇹",HNe="🇪🇺",VNe="🇪🇺",GNe="🇫🇮",KNe="🇫🇯",WNe="🇫🇰",ZNe="🇫🇲",YNe="🇫🇴",QNe="🇫🇷",JNe="🇬🇦",XNe="🇬🇧",eDe="🇬🇧",tDe="🇬🇩",nDe="🇬🇪",sDe="🇬🇫",oDe="🇬🇬",rDe="🇬🇭",iDe="🇬🇮",aDe="🇬🇱",lDe="🇬🇲",cDe="🇬🇳",uDe="🇬🇵",dDe="🇬🇶",hDe="🇬🇷",fDe="🇬🇸",pDe="🇬🇹",gDe="🇬🇺",mDe="🇬🇼",_De="🇬🇾",bDe="🇭🇰",yDe="🇭🇲",vDe="🇭🇳",wDe="🇭🇷",xDe="🇭🇹",kDe="🇭🇺",EDe="🇮🇨",CDe="🇮🇩",ADe="🇮🇪",SDe="🇮🇱",TDe="🇮🇲",MDe="🇮🇳",ODe="🇮🇴",RDe="🇮🇶",NDe="🇮🇷",DDe="🇮🇸",LDe="🇮🇹",IDe="🇯🇪",PDe="🇯🇲",FDe="🇯🇴",BDe="🇯🇵",$De="🇰🇪",jDe="🇰🇬",zDe="🇰🇭",UDe="🇰🇮",qDe="🇰🇲",HDe="🇰🇳",VDe="🇰🇵",GDe="🇰🇷",KDe="🇰🇼",WDe="🇰🇾",ZDe="🇰🇿",YDe="🇱🇦",QDe="🇱🇧",JDe="🇱🇨",XDe="🇱🇮",eLe="🇱🇰",tLe="🇱🇷",nLe="🇱🇸",sLe="🇱🇹",oLe="🇱🇺",rLe="🇱🇻",iLe="🇱🇾",aLe="🇲🇦",lLe="🇲🇨",cLe="🇲🇩",uLe="🇲🇪",dLe="🇲🇫",hLe="🇲🇬",fLe="🇲🇭",pLe="🇲🇰",gLe="🇲🇱",mLe="🇲🇲",_Le="🇲🇳",bLe="🇲🇴",yLe="🇲🇵",vLe="🇲🇶",wLe="🇲🇷",xLe="🇲🇸",kLe="🇲🇹",ELe="🇲🇺",CLe="🇲🇻",ALe="🇲🇼",SLe="🇲🇽",TLe="🇲🇾",MLe="🇲🇿",OLe="🇳🇦",RLe="🇳🇨",NLe="🇳🇪",DLe="🇳🇫",LLe="🇳🇬",ILe="🇳🇮",PLe="🇳🇱",FLe="🇳🇴",BLe="🇳🇵",$Le="🇳🇷",jLe="🇳🇺",zLe="🇳🇿",ULe="🇴🇲",qLe="🇵🇦",HLe="🇵🇪",VLe="🇵🇫",GLe="🇵🇬",KLe="🇵🇭",WLe="🇵🇰",ZLe="🇵🇱",YLe="🇵🇲",QLe="🇵🇳",JLe="🇵🇷",XLe="🇵🇸",eIe="🇵🇹",tIe="🇵🇼",nIe="🇵🇾",sIe="🇶🇦",oIe="🇷🇪",rIe="🇷🇴",iIe="🇷🇸",aIe="🇷🇺",lIe="🇷🇼",cIe="🇸🇦",uIe="🇸🇧",dIe="🇸🇨",hIe="🇸🇩",fIe="🇸🇪",pIe="🇸🇬",gIe="🇸🇭",mIe="🇸🇮",_Ie="🇸🇯",bIe="🇸🇰",yIe="🇸🇱",vIe="🇸🇲",wIe="🇸🇳",xIe="🇸🇴",kIe="🇸🇷",EIe="🇸🇸",CIe="🇸🇹",AIe="🇸🇻",SIe="🇸🇽",TIe="🇸🇾",MIe="🇸🇿",OIe="🇹🇦",RIe="🇹🇨",NIe="🇹🇩",DIe="🇹🇫",LIe="🇹🇬",IIe="🇹🇭",PIe="🇹🇯",FIe="🇹🇰",BIe="🇹🇱",$Ie="🇹🇲",jIe="🇹🇳",zIe="🇹🇴",UIe="🇹🇷",qIe="🇹🇹",HIe="🇹🇻",VIe="🇹🇼",GIe="🇹🇿",KIe="🇺🇦",WIe="🇺🇬",ZIe="🇺🇲",YIe="🇺🇳",QIe="🇺🇸",JIe="🇺🇾",XIe="🇺🇿",ePe="🇻🇦",tPe="🇻🇨",nPe="🇻🇪",sPe="🇻🇬",oPe="🇻🇮",rPe="🇻🇳",iPe="🇻🇺",aPe="🇼🇫",lPe="🇼🇸",cPe="🇽🇰",uPe="🇾🇪",dPe="🇾🇹",hPe="🇿🇦",fPe="🇿🇲",pPe="🇿🇼",gPe="🏴󠁧󠁢󠁥󠁮󠁧󠁿",mPe="🏴󠁧󠁢󠁳󠁣󠁴󠁿",_Pe="🏴󠁧󠁢󠁷󠁬󠁳󠁿",bPe={100:"💯",1234:"🔢",grinning:Mhe,smiley:Ohe,smile:Rhe,grin:Nhe,laughing:Dhe,satisfied:Lhe,sweat_smile:Ihe,rofl:Phe,joy:Fhe,slightly_smiling_face:Bhe,upside_down_face:$he,wink:jhe,blush:zhe,innocent:Uhe,smiling_face_with_three_hearts:qhe,heart_eyes:Hhe,star_struck:Vhe,kissing_heart:Ghe,kissing:Khe,relaxed:Whe,kissing_closed_eyes:Zhe,kissing_smiling_eyes:Yhe,smiling_face_with_tear:Qhe,yum:Jhe,stuck_out_tongue:Xhe,stuck_out_tongue_winking_eye:efe,zany_face:tfe,stuck_out_tongue_closed_eyes:nfe,money_mouth_face:sfe,hugs:ofe,hand_over_mouth:rfe,shushing_face:ife,thinking:afe,zipper_mouth_face:lfe,raised_eyebrow:cfe,neutral_face:ufe,expressionless:dfe,no_mouth:hfe,smirk:ffe,unamused:pfe,roll_eyes:gfe,grimacing:mfe,lying_face:_fe,relieved:bfe,pensive:yfe,sleepy:vfe,drooling_face:wfe,sleeping:xfe,mask:kfe,face_with_thermometer:Efe,face_with_head_bandage:Cfe,nauseated_face:Afe,vomiting_face:Sfe,sneezing_face:Tfe,hot_face:Mfe,cold_face:Ofe,woozy_face:Rfe,dizzy_face:Nfe,exploding_head:Dfe,cowboy_hat_face:Lfe,partying_face:Ife,disguised_face:Pfe,sunglasses:Ffe,nerd_face:Bfe,monocle_face:$fe,confused:jfe,worried:zfe,slightly_frowning_face:Ufe,frowning_face:qfe,open_mouth:Hfe,hushed:Vfe,astonished:Gfe,flushed:Kfe,pleading_face:Wfe,frowning:Zfe,anguished:Yfe,fearful:Qfe,cold_sweat:Jfe,disappointed_relieved:Xfe,cry:epe,sob:tpe,scream:npe,confounded:spe,persevere:ope,disappointed:rpe,sweat:ipe,weary:ape,tired_face:lpe,yawning_face:cpe,triumph:upe,rage:dpe,pout:hpe,angry:fpe,cursing_face:ppe,smiling_imp:gpe,imp:mpe,skull:_pe,skull_and_crossbones:bpe,hankey:ype,poop:vpe,shit:wpe,clown_face:xpe,japanese_ogre:kpe,japanese_goblin:Epe,ghost:Cpe,alien:Ape,space_invader:Spe,robot:Tpe,smiley_cat:Mpe,smile_cat:Ope,joy_cat:Rpe,heart_eyes_cat:Npe,smirk_cat:Dpe,kissing_cat:Lpe,scream_cat:Ipe,crying_cat_face:Ppe,pouting_cat:Fpe,see_no_evil:Bpe,hear_no_evil:$pe,speak_no_evil:jpe,kiss:zpe,love_letter:Upe,cupid:qpe,gift_heart:Hpe,sparkling_heart:Vpe,heartpulse:Gpe,heartbeat:Kpe,revolving_hearts:Wpe,two_hearts:Zpe,heart_decoration:Ype,heavy_heart_exclamation:Qpe,broken_heart:Jpe,heart:Xpe,orange_heart:ege,yellow_heart:tge,green_heart:nge,blue_heart:sge,purple_heart:oge,brown_heart:rge,black_heart:ige,white_heart:age,anger:lge,boom:cge,collision:uge,dizzy:dge,sweat_drops:hge,dash:fge,hole:pge,bomb:gge,speech_balloon:mge,eye_speech_bubble:_ge,left_speech_bubble:bge,right_anger_bubble:yge,thought_balloon:vge,zzz:wge,wave:xge,raised_back_of_hand:kge,raised_hand_with_fingers_splayed:Ege,hand:Cge,raised_hand:Age,vulcan_salute:Sge,ok_hand:Tge,pinched_fingers:Mge,pinching_hand:Oge,v:Rge,crossed_fingers:Nge,love_you_gesture:Dge,metal:Lge,call_me_hand:Ige,point_left:Pge,point_right:Fge,point_up_2:Bge,middle_finger:$ge,fu:jge,point_down:zge,point_up:Uge,"+1":"👍",thumbsup:qge,"-1":"👎",thumbsdown:Hge,fist_raised:Vge,fist:Gge,fist_oncoming:Kge,facepunch:Wge,punch:Zge,fist_left:Yge,fist_right:Qge,clap:Jge,raised_hands:Xge,open_hands:eme,palms_up_together:tme,handshake:nme,pray:sme,writing_hand:ome,nail_care:rme,selfie:ime,muscle:ame,mechanical_arm:lme,mechanical_leg:cme,leg:ume,foot:dme,ear:hme,ear_with_hearing_aid:fme,nose:pme,brain:gme,anatomical_heart:mme,lungs:_me,tooth:bme,bone:yme,eyes:vme,eye:wme,tongue:xme,lips:kme,baby:Eme,child:Cme,boy:Ame,girl:Sme,adult:Tme,blond_haired_person:Mme,man:Ome,bearded_person:Rme,red_haired_man:Nme,curly_haired_man:Dme,white_haired_man:Lme,bald_man:Ime,woman:Pme,red_haired_woman:Fme,person_red_hair:Bme,curly_haired_woman:$me,person_curly_hair:jme,white_haired_woman:zme,person_white_hair:Ume,bald_woman:qme,person_bald:Hme,blond_haired_woman:Vme,blonde_woman:Gme,blond_haired_man:Kme,older_adult:Wme,older_man:Zme,older_woman:Yme,frowning_person:Qme,frowning_man:Jme,frowning_woman:Xme,pouting_face:e_e,pouting_man:t_e,pouting_woman:n_e,no_good:s_e,no_good_man:o_e,ng_man:r_e,no_good_woman:i_e,ng_woman:a_e,ok_person:l_e,ok_man:c_e,ok_woman:u_e,tipping_hand_person:d_e,information_desk_person:h_e,tipping_hand_man:f_e,sassy_man:p_e,tipping_hand_woman:g_e,sassy_woman:m_e,raising_hand:__e,raising_hand_man:b_e,raising_hand_woman:y_e,deaf_person:v_e,deaf_man:w_e,deaf_woman:x_e,bow:k_e,bowing_man:E_e,bowing_woman:C_e,facepalm:A_e,man_facepalming:S_e,woman_facepalming:T_e,shrug:M_e,man_shrugging:O_e,woman_shrugging:R_e,health_worker:N_e,man_health_worker:D_e,woman_health_worker:L_e,student:I_e,man_student:P_e,woman_student:F_e,teacher:B_e,man_teacher:$_e,woman_teacher:j_e,judge:z_e,man_judge:U_e,woman_judge:q_e,farmer:H_e,man_farmer:V_e,woman_farmer:G_e,cook:K_e,man_cook:W_e,woman_cook:Z_e,mechanic:Y_e,man_mechanic:Q_e,woman_mechanic:J_e,factory_worker:X_e,man_factory_worker:e1e,woman_factory_worker:t1e,office_worker:n1e,man_office_worker:s1e,woman_office_worker:o1e,scientist:r1e,man_scientist:i1e,woman_scientist:a1e,technologist:l1e,man_technologist:c1e,woman_technologist:u1e,singer:d1e,man_singer:h1e,woman_singer:f1e,artist:p1e,man_artist:g1e,woman_artist:m1e,pilot:_1e,man_pilot:b1e,woman_pilot:y1e,astronaut:v1e,man_astronaut:w1e,woman_astronaut:x1e,firefighter:k1e,man_firefighter:E1e,woman_firefighter:C1e,police_officer:A1e,cop:S1e,policeman:T1e,policewoman:M1e,detective:O1e,male_detective:R1e,female_detective:N1e,guard:D1e,guardsman:L1e,guardswoman:I1e,ninja:P1e,construction_worker:F1e,construction_worker_man:B1e,construction_worker_woman:$1e,prince:j1e,princess:z1e,person_with_turban:U1e,man_with_turban:q1e,woman_with_turban:H1e,man_with_gua_pi_mao:V1e,woman_with_headscarf:G1e,person_in_tuxedo:K1e,man_in_tuxedo:W1e,woman_in_tuxedo:Z1e,person_with_veil:Y1e,man_with_veil:Q1e,woman_with_veil:J1e,bride_with_veil:X1e,pregnant_woman:e0e,breast_feeding:t0e,woman_feeding_baby:n0e,man_feeding_baby:s0e,person_feeding_baby:o0e,angel:r0e,santa:i0e,mrs_claus:a0e,mx_claus:l0e,superhero:c0e,superhero_man:u0e,superhero_woman:d0e,supervillain:h0e,supervillain_man:f0e,supervillain_woman:p0e,mage:g0e,mage_man:m0e,mage_woman:_0e,fairy:b0e,fairy_man:y0e,fairy_woman:v0e,vampire:w0e,vampire_man:x0e,vampire_woman:k0e,merperson:E0e,merman:C0e,mermaid:A0e,elf:S0e,elf_man:T0e,elf_woman:M0e,genie:O0e,genie_man:R0e,genie_woman:N0e,zombie:D0e,zombie_man:L0e,zombie_woman:I0e,massage:P0e,massage_man:F0e,massage_woman:B0e,haircut:$0e,haircut_man:j0e,haircut_woman:z0e,walking:U0e,walking_man:q0e,walking_woman:H0e,standing_person:V0e,standing_man:G0e,standing_woman:K0e,kneeling_person:W0e,kneeling_man:Z0e,kneeling_woman:Y0e,person_with_probing_cane:Q0e,man_with_probing_cane:J0e,woman_with_probing_cane:X0e,person_in_motorized_wheelchair:ebe,man_in_motorized_wheelchair:tbe,woman_in_motorized_wheelchair:nbe,person_in_manual_wheelchair:sbe,man_in_manual_wheelchair:obe,woman_in_manual_wheelchair:rbe,runner:ibe,running:abe,running_man:lbe,running_woman:cbe,woman_dancing:ube,dancer:dbe,man_dancing:hbe,business_suit_levitating:fbe,dancers:pbe,dancing_men:gbe,dancing_women:mbe,sauna_person:_be,sauna_man:bbe,sauna_woman:ybe,climbing:vbe,climbing_man:wbe,climbing_woman:xbe,person_fencing:kbe,horse_racing:Ebe,skier:Cbe,snowboarder:Abe,golfing:Sbe,golfing_man:Tbe,golfing_woman:Mbe,surfer:Obe,surfing_man:Rbe,surfing_woman:Nbe,rowboat:Dbe,rowing_man:Lbe,rowing_woman:Ibe,swimmer:Pbe,swimming_man:Fbe,swimming_woman:Bbe,bouncing_ball_person:$be,bouncing_ball_man:jbe,basketball_man:zbe,bouncing_ball_woman:Ube,basketball_woman:qbe,weight_lifting:Hbe,weight_lifting_man:Vbe,weight_lifting_woman:Gbe,bicyclist:Kbe,biking_man:Wbe,biking_woman:Zbe,mountain_bicyclist:Ybe,mountain_biking_man:Qbe,mountain_biking_woman:Jbe,cartwheeling:Xbe,man_cartwheeling:eye,woman_cartwheeling:tye,wrestling:nye,men_wrestling:sye,women_wrestling:oye,water_polo:rye,man_playing_water_polo:iye,woman_playing_water_polo:aye,handball_person:lye,man_playing_handball:cye,woman_playing_handball:uye,juggling_person:dye,man_juggling:hye,woman_juggling:fye,lotus_position:pye,lotus_position_man:gye,lotus_position_woman:mye,bath:_ye,sleeping_bed:bye,people_holding_hands:yye,two_women_holding_hands:vye,couple:wye,two_men_holding_hands:xye,couplekiss:kye,couplekiss_man_woman:Eye,couplekiss_man_man:Cye,couplekiss_woman_woman:Aye,couple_with_heart:Sye,couple_with_heart_woman_man:Tye,couple_with_heart_man_man:Mye,couple_with_heart_woman_woman:Oye,family:Rye,family_man_woman_boy:Nye,family_man_woman_girl:Dye,family_man_woman_girl_boy:Lye,family_man_woman_boy_boy:Iye,family_man_woman_girl_girl:Pye,family_man_man_boy:Fye,family_man_man_girl:Bye,family_man_man_girl_boy:$ye,family_man_man_boy_boy:jye,family_man_man_girl_girl:zye,family_woman_woman_boy:Uye,family_woman_woman_girl:qye,family_woman_woman_girl_boy:Hye,family_woman_woman_boy_boy:Vye,family_woman_woman_girl_girl:Gye,family_man_boy:Kye,family_man_boy_boy:Wye,family_man_girl:Zye,family_man_girl_boy:Yye,family_man_girl_girl:Qye,family_woman_boy:Jye,family_woman_boy_boy:Xye,family_woman_girl:e2e,family_woman_girl_boy:t2e,family_woman_girl_girl:n2e,speaking_head:s2e,bust_in_silhouette:o2e,busts_in_silhouette:r2e,people_hugging:i2e,footprints:a2e,monkey_face:l2e,monkey:c2e,gorilla:u2e,orangutan:d2e,dog:h2e,dog2:f2e,guide_dog:p2e,service_dog:g2e,poodle:m2e,wolf:_2e,fox_face:b2e,raccoon:y2e,cat:v2e,cat2:w2e,black_cat:x2e,lion:k2e,tiger:E2e,tiger2:C2e,leopard:A2e,horse:S2e,racehorse:T2e,unicorn:M2e,zebra:O2e,deer:R2e,bison:N2e,cow:D2e,ox:L2e,water_buffalo:I2e,cow2:P2e,pig:F2e,pig2:B2e,boar:$2e,pig_nose:j2e,ram:z2e,sheep:U2e,goat:q2e,dromedary_camel:H2e,camel:V2e,llama:G2e,giraffe:K2e,elephant:W2e,mammoth:Z2e,rhinoceros:Y2e,hippopotamus:Q2e,mouse:J2e,mouse2:X2e,rat:eve,hamster:tve,rabbit:nve,rabbit2:sve,chipmunk:ove,beaver:rve,hedgehog:ive,bat:ave,bear:lve,polar_bear:cve,koala:uve,panda_face:dve,sloth:hve,otter:fve,skunk:pve,kangaroo:gve,badger:mve,feet:_ve,paw_prints:bve,turkey:yve,chicken:vve,rooster:wve,hatching_chick:xve,baby_chick:kve,hatched_chick:Eve,bird:Cve,penguin:Ave,dove:Sve,eagle:Tve,duck:Mve,swan:Ove,owl:Rve,dodo:Nve,feather:Dve,flamingo:Lve,peacock:Ive,parrot:Pve,frog:Fve,crocodile:Bve,turtle:$ve,lizard:jve,snake:zve,dragon_face:Uve,dragon:qve,sauropod:Hve,"t-rex":"🦖",whale:Vve,whale2:Gve,dolphin:Kve,flipper:Wve,seal:Zve,fish:Yve,tropical_fish:Qve,blowfish:Jve,shark:Xve,octopus:ewe,shell:twe,snail:nwe,butterfly:swe,bug:owe,ant:rwe,bee:iwe,honeybee:awe,beetle:lwe,lady_beetle:cwe,cricket:uwe,cockroach:dwe,spider:hwe,spider_web:fwe,scorpion:pwe,mosquito:gwe,fly:mwe,worm:_we,microbe:bwe,bouquet:ywe,cherry_blossom:vwe,white_flower:wwe,rosette:xwe,rose:kwe,wilted_flower:Ewe,hibiscus:Cwe,sunflower:Awe,blossom:Swe,tulip:Twe,seedling:Mwe,potted_plant:Owe,evergreen_tree:Rwe,deciduous_tree:Nwe,palm_tree:Dwe,cactus:Lwe,ear_of_rice:Iwe,herb:Pwe,shamrock:Fwe,four_leaf_clover:Bwe,maple_leaf:$we,fallen_leaf:jwe,leaves:zwe,grapes:Uwe,melon:qwe,watermelon:Hwe,tangerine:Vwe,orange:Gwe,mandarin:Kwe,lemon:Wwe,banana:Zwe,pineapple:Ywe,mango:Qwe,apple:Jwe,green_apple:Xwe,pear:exe,peach:txe,cherries:nxe,strawberry:sxe,blueberries:oxe,kiwi_fruit:rxe,tomato:ixe,olive:axe,coconut:lxe,avocado:cxe,eggplant:uxe,potato:dxe,carrot:hxe,corn:fxe,hot_pepper:pxe,bell_pepper:gxe,cucumber:mxe,leafy_green:_xe,broccoli:bxe,garlic:yxe,onion:vxe,mushroom:wxe,peanuts:xxe,chestnut:kxe,bread:Exe,croissant:Cxe,baguette_bread:Axe,flatbread:Sxe,pretzel:Txe,bagel:Mxe,pancakes:Oxe,waffle:Rxe,cheese:Nxe,meat_on_bone:Dxe,poultry_leg:Lxe,cut_of_meat:Ixe,bacon:Pxe,hamburger:Fxe,fries:Bxe,pizza:$xe,hotdog:jxe,sandwich:zxe,taco:Uxe,burrito:qxe,tamale:Hxe,stuffed_flatbread:Vxe,falafel:Gxe,egg:Kxe,fried_egg:Wxe,shallow_pan_of_food:Zxe,stew:Yxe,fondue:Qxe,bowl_with_spoon:Jxe,green_salad:Xxe,popcorn:eke,butter:tke,salt:nke,canned_food:ske,bento:oke,rice_cracker:rke,rice_ball:ike,rice:ake,curry:lke,ramen:cke,spaghetti:uke,sweet_potato:dke,oden:hke,sushi:fke,fried_shrimp:pke,fish_cake:gke,moon_cake:mke,dango:_ke,dumpling:bke,fortune_cookie:yke,takeout_box:vke,crab:wke,lobster:xke,shrimp:kke,squid:Eke,oyster:Cke,icecream:Ake,shaved_ice:Ske,ice_cream:Tke,doughnut:Mke,cookie:Oke,birthday:Rke,cake:Nke,cupcake:Dke,pie:Lke,chocolate_bar:Ike,candy:Pke,lollipop:Fke,custard:Bke,honey_pot:$ke,baby_bottle:jke,milk_glass:zke,coffee:Uke,teapot:qke,tea:Hke,sake:Vke,champagne:Gke,wine_glass:Kke,cocktail:Wke,tropical_drink:Zke,beer:Yke,beers:Qke,clinking_glasses:Jke,tumbler_glass:Xke,cup_with_straw:eEe,bubble_tea:tEe,beverage_box:nEe,mate:sEe,ice_cube:oEe,chopsticks:rEe,plate_with_cutlery:iEe,fork_and_knife:aEe,spoon:lEe,hocho:cEe,knife:uEe,amphora:dEe,earth_africa:hEe,earth_americas:fEe,earth_asia:pEe,globe_with_meridians:gEe,world_map:mEe,japan:_Ee,compass:bEe,mountain_snow:yEe,mountain:vEe,volcano:wEe,mount_fuji:xEe,camping:kEe,beach_umbrella:EEe,desert:CEe,desert_island:AEe,national_park:SEe,stadium:TEe,classical_building:MEe,building_construction:OEe,bricks:REe,rock:NEe,wood:DEe,hut:LEe,houses:IEe,derelict_house:PEe,house:FEe,house_with_garden:BEe,office:$Ee,post_office:jEe,european_post_office:zEe,hospital:UEe,bank:qEe,hotel:HEe,love_hotel:VEe,convenience_store:GEe,school:KEe,department_store:WEe,factory:ZEe,japanese_castle:YEe,european_castle:QEe,wedding:JEe,tokyo_tower:XEe,statue_of_liberty:e5e,church:t5e,mosque:n5e,hindu_temple:s5e,synagogue:o5e,shinto_shrine:r5e,kaaba:i5e,fountain:a5e,tent:l5e,foggy:c5e,night_with_stars:u5e,cityscape:d5e,sunrise_over_mountains:h5e,sunrise:f5e,city_sunset:p5e,city_sunrise:g5e,bridge_at_night:m5e,hotsprings:_5e,carousel_horse:b5e,ferris_wheel:y5e,roller_coaster:v5e,barber:w5e,circus_tent:x5e,steam_locomotive:k5e,railway_car:E5e,bullettrain_side:C5e,bullettrain_front:A5e,train2:S5e,metro:T5e,light_rail:M5e,station:O5e,tram:R5e,monorail:N5e,mountain_railway:D5e,train:L5e,bus:I5e,oncoming_bus:P5e,trolleybus:F5e,minibus:B5e,ambulance:$5e,fire_engine:j5e,police_car:z5e,oncoming_police_car:U5e,taxi:q5e,oncoming_taxi:H5e,car:V5e,red_car:G5e,oncoming_automobile:K5e,blue_car:W5e,pickup_truck:Z5e,truck:Y5e,articulated_lorry:Q5e,tractor:J5e,racing_car:X5e,motorcycle:e4e,motor_scooter:t4e,manual_wheelchair:n4e,motorized_wheelchair:s4e,auto_rickshaw:o4e,bike:r4e,kick_scooter:i4e,skateboard:a4e,roller_skate:l4e,busstop:c4e,motorway:u4e,railway_track:d4e,oil_drum:h4e,fuelpump:f4e,rotating_light:p4e,traffic_light:g4e,vertical_traffic_light:m4e,stop_sign:_4e,construction:b4e,anchor:y4e,boat:v4e,sailboat:w4e,canoe:x4e,speedboat:k4e,passenger_ship:E4e,ferry:C4e,motor_boat:A4e,ship:S4e,airplane:T4e,small_airplane:M4e,flight_departure:O4e,flight_arrival:R4e,parachute:N4e,seat:D4e,helicopter:L4e,suspension_railway:I4e,mountain_cableway:P4e,aerial_tramway:F4e,artificial_satellite:B4e,rocket:$4e,flying_saucer:j4e,bellhop_bell:z4e,luggage:U4e,hourglass:q4e,hourglass_flowing_sand:H4e,watch:V4e,alarm_clock:G4e,stopwatch:K4e,timer_clock:W4e,mantelpiece_clock:Z4e,clock12:Y4e,clock1230:Q4e,clock1:J4e,clock130:X4e,clock2:e3e,clock230:t3e,clock3:n3e,clock330:s3e,clock4:o3e,clock430:r3e,clock5:i3e,clock530:a3e,clock6:l3e,clock630:c3e,clock7:u3e,clock730:d3e,clock8:h3e,clock830:f3e,clock9:p3e,clock930:g3e,clock10:m3e,clock1030:_3e,clock11:b3e,clock1130:y3e,new_moon:v3e,waxing_crescent_moon:w3e,first_quarter_moon:x3e,moon:k3e,waxing_gibbous_moon:E3e,full_moon:C3e,waning_gibbous_moon:A3e,last_quarter_moon:S3e,waning_crescent_moon:T3e,crescent_moon:M3e,new_moon_with_face:O3e,first_quarter_moon_with_face:R3e,last_quarter_moon_with_face:N3e,thermometer:D3e,sunny:L3e,full_moon_with_face:I3e,sun_with_face:P3e,ringed_planet:F3e,star:B3e,star2:$3e,stars:j3e,milky_way:z3e,cloud:U3e,partly_sunny:q3e,cloud_with_lightning_and_rain:H3e,sun_behind_small_cloud:V3e,sun_behind_large_cloud:G3e,sun_behind_rain_cloud:K3e,cloud_with_rain:W3e,cloud_with_snow:Z3e,cloud_with_lightning:Y3e,tornado:Q3e,fog:J3e,wind_face:X3e,cyclone:eCe,rainbow:tCe,closed_umbrella:nCe,open_umbrella:sCe,umbrella:oCe,parasol_on_ground:rCe,zap:iCe,snowflake:aCe,snowman_with_snow:lCe,snowman:cCe,comet:uCe,fire:dCe,droplet:hCe,ocean:fCe,jack_o_lantern:pCe,christmas_tree:gCe,fireworks:mCe,sparkler:_Ce,firecracker:bCe,sparkles:yCe,balloon:vCe,tada:wCe,confetti_ball:xCe,tanabata_tree:kCe,bamboo:ECe,dolls:CCe,flags:ACe,wind_chime:SCe,rice_scene:TCe,red_envelope:MCe,ribbon:OCe,gift:RCe,reminder_ribbon:NCe,tickets:DCe,ticket:LCe,medal_military:ICe,trophy:PCe,medal_sports:FCe,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:BCe,baseball:$Ce,softball:jCe,basketball:zCe,volleyball:UCe,football:qCe,rugby_football:HCe,tennis:VCe,flying_disc:GCe,bowling:KCe,cricket_game:WCe,field_hockey:ZCe,ice_hockey:YCe,lacrosse:QCe,ping_pong:JCe,badminton:XCe,boxing_glove:e9e,martial_arts_uniform:t9e,goal_net:n9e,golf:s9e,ice_skate:o9e,fishing_pole_and_fish:r9e,diving_mask:i9e,running_shirt_with_sash:a9e,ski:l9e,sled:c9e,curling_stone:u9e,dart:d9e,yo_yo:h9e,kite:f9e,"8ball":"🎱",crystal_ball:p9e,magic_wand:g9e,nazar_amulet:m9e,video_game:_9e,joystick:b9e,slot_machine:y9e,game_die:v9e,jigsaw:w9e,teddy_bear:x9e,pinata:k9e,nesting_dolls:E9e,spades:C9e,hearts:A9e,diamonds:S9e,clubs:T9e,chess_pawn:M9e,black_joker:O9e,mahjong:R9e,flower_playing_cards:N9e,performing_arts:D9e,framed_picture:L9e,art:I9e,thread:P9e,sewing_needle:F9e,yarn:B9e,knot:$9e,eyeglasses:j9e,dark_sunglasses:z9e,goggles:U9e,lab_coat:q9e,safety_vest:H9e,necktie:V9e,shirt:G9e,tshirt:K9e,jeans:W9e,scarf:Z9e,gloves:Y9e,coat:Q9e,socks:J9e,dress:X9e,kimono:e8e,sari:t8e,one_piece_swimsuit:n8e,swim_brief:s8e,shorts:o8e,bikini:r8e,womans_clothes:i8e,purse:a8e,handbag:l8e,pouch:c8e,shopping:u8e,school_satchel:d8e,thong_sandal:h8e,mans_shoe:f8e,shoe:p8e,athletic_shoe:g8e,hiking_boot:m8e,flat_shoe:_8e,high_heel:b8e,sandal:y8e,ballet_shoes:v8e,boot:w8e,crown:x8e,womans_hat:k8e,tophat:E8e,mortar_board:C8e,billed_cap:A8e,military_helmet:S8e,rescue_worker_helmet:T8e,prayer_beads:M8e,lipstick:O8e,ring:R8e,gem:N8e,mute:D8e,speaker:L8e,sound:I8e,loud_sound:P8e,loudspeaker:F8e,mega:B8e,postal_horn:$8e,bell:j8e,no_bell:z8e,musical_score:U8e,musical_note:q8e,notes:H8e,studio_microphone:V8e,level_slider:G8e,control_knobs:K8e,microphone:W8e,headphones:Z8e,radio:Y8e,saxophone:Q8e,accordion:J8e,guitar:X8e,musical_keyboard:eAe,trumpet:tAe,violin:nAe,banjo:sAe,drum:oAe,long_drum:rAe,iphone:iAe,calling:aAe,phone:lAe,telephone:cAe,telephone_receiver:uAe,pager:dAe,fax:hAe,battery:fAe,electric_plug:pAe,computer:gAe,desktop_computer:mAe,printer:_Ae,keyboard:bAe,computer_mouse:yAe,trackball:vAe,minidisc:wAe,floppy_disk:xAe,cd:kAe,dvd:EAe,abacus:CAe,movie_camera:AAe,film_strip:SAe,film_projector:TAe,clapper:MAe,tv:OAe,camera:RAe,camera_flash:NAe,video_camera:DAe,vhs:LAe,mag:IAe,mag_right:PAe,candle:FAe,bulb:BAe,flashlight:$Ae,izakaya_lantern:jAe,lantern:zAe,diya_lamp:UAe,notebook_with_decorative_cover:qAe,closed_book:HAe,book:VAe,open_book:GAe,green_book:KAe,blue_book:WAe,orange_book:ZAe,books:YAe,notebook:QAe,ledger:JAe,page_with_curl:XAe,scroll:e6e,page_facing_up:t6e,newspaper:n6e,newspaper_roll:s6e,bookmark_tabs:o6e,bookmark:r6e,label:i6e,moneybag:a6e,coin:l6e,yen:c6e,dollar:u6e,euro:d6e,pound:h6e,money_with_wings:f6e,credit_card:p6e,receipt:g6e,chart:m6e,envelope:_6e,email:b6e,"e-mail":"📧",incoming_envelope:y6e,envelope_with_arrow:v6e,outbox_tray:w6e,inbox_tray:x6e,package:"📦",mailbox:k6e,mailbox_closed:E6e,mailbox_with_mail:C6e,mailbox_with_no_mail:A6e,postbox:S6e,ballot_box:T6e,pencil2:M6e,black_nib:O6e,fountain_pen:R6e,pen:N6e,paintbrush:D6e,crayon:L6e,memo:I6e,pencil:P6e,briefcase:F6e,file_folder:B6e,open_file_folder:$6e,card_index_dividers:j6e,date:z6e,calendar:U6e,spiral_notepad:q6e,spiral_calendar:H6e,card_index:V6e,chart_with_upwards_trend:G6e,chart_with_downwards_trend:K6e,bar_chart:W6e,clipboard:Z6e,pushpin:Y6e,round_pushpin:Q6e,paperclip:J6e,paperclips:X6e,straight_ruler:eSe,triangular_ruler:tSe,scissors:nSe,card_file_box:sSe,file_cabinet:oSe,wastebasket:rSe,lock:iSe,unlock:aSe,lock_with_ink_pen:lSe,closed_lock_with_key:cSe,key:uSe,old_key:dSe,hammer:hSe,axe:fSe,pick:pSe,hammer_and_pick:gSe,hammer_and_wrench:mSe,dagger:_Se,crossed_swords:bSe,gun:ySe,boomerang:vSe,bow_and_arrow:wSe,shield:xSe,carpentry_saw:kSe,wrench:ESe,screwdriver:CSe,nut_and_bolt:ASe,gear:SSe,clamp:TSe,balance_scale:MSe,probing_cane:OSe,link:RSe,chains:NSe,hook:DSe,toolbox:LSe,magnet:ISe,ladder:PSe,alembic:FSe,test_tube:BSe,petri_dish:$Se,dna:jSe,microscope:zSe,telescope:USe,satellite:qSe,syringe:HSe,drop_of_blood:VSe,pill:GSe,adhesive_bandage:KSe,stethoscope:WSe,door:ZSe,elevator:YSe,mirror:QSe,window:JSe,bed:XSe,couch_and_lamp:eTe,chair:tTe,toilet:nTe,plunger:sTe,shower:oTe,bathtub:rTe,mouse_trap:iTe,razor:aTe,lotion_bottle:lTe,safety_pin:cTe,broom:uTe,basket:dTe,roll_of_paper:hTe,bucket:fTe,soap:pTe,toothbrush:gTe,sponge:mTe,fire_extinguisher:_Te,shopping_cart:bTe,smoking:yTe,coffin:vTe,headstone:wTe,funeral_urn:xTe,moyai:kTe,placard:ETe,atm:CTe,put_litter_in_its_place:ATe,potable_water:STe,wheelchair:TTe,mens:MTe,womens:OTe,restroom:RTe,baby_symbol:NTe,wc:DTe,passport_control:LTe,customs:ITe,baggage_claim:PTe,left_luggage:FTe,warning:BTe,children_crossing:$Te,no_entry:jTe,no_entry_sign:zTe,no_bicycles:UTe,no_smoking:qTe,do_not_litter:HTe,"non-potable_water":"🚱",no_pedestrians:VTe,no_mobile_phones:GTe,underage:KTe,radioactive:WTe,biohazard:ZTe,arrow_up:YTe,arrow_upper_right:QTe,arrow_right:JTe,arrow_lower_right:XTe,arrow_down:e7e,arrow_lower_left:t7e,arrow_left:n7e,arrow_upper_left:s7e,arrow_up_down:o7e,left_right_arrow:r7e,leftwards_arrow_with_hook:i7e,arrow_right_hook:a7e,arrow_heading_up:l7e,arrow_heading_down:c7e,arrows_clockwise:u7e,arrows_counterclockwise:d7e,back:h7e,end:f7e,on:p7e,soon:g7e,top:m7e,place_of_worship:_7e,atom_symbol:b7e,om:y7e,star_of_david:v7e,wheel_of_dharma:w7e,yin_yang:x7e,latin_cross:k7e,orthodox_cross:E7e,star_and_crescent:C7e,peace_symbol:A7e,menorah:S7e,six_pointed_star:T7e,aries:M7e,taurus:O7e,gemini:R7e,cancer:N7e,leo:D7e,virgo:L7e,libra:I7e,scorpius:P7e,sagittarius:F7e,capricorn:B7e,aquarius:$7e,pisces:j7e,ophiuchus:z7e,twisted_rightwards_arrows:U7e,repeat:q7e,repeat_one:H7e,arrow_forward:V7e,fast_forward:G7e,next_track_button:K7e,play_or_pause_button:W7e,arrow_backward:Z7e,rewind:Y7e,previous_track_button:Q7e,arrow_up_small:J7e,arrow_double_up:X7e,arrow_down_small:eMe,arrow_double_down:tMe,pause_button:nMe,stop_button:sMe,record_button:oMe,eject_button:rMe,cinema:iMe,low_brightness:aMe,high_brightness:lMe,signal_strength:cMe,vibration_mode:uMe,mobile_phone_off:dMe,female_sign:hMe,male_sign:fMe,transgender_symbol:pMe,heavy_multiplication_x:gMe,heavy_plus_sign:mMe,heavy_minus_sign:_Me,heavy_division_sign:bMe,infinity:yMe,bangbang:vMe,interrobang:wMe,question:xMe,grey_question:kMe,grey_exclamation:EMe,exclamation:CMe,heavy_exclamation_mark:AMe,wavy_dash:SMe,currency_exchange:TMe,heavy_dollar_sign:MMe,medical_symbol:OMe,recycle:RMe,fleur_de_lis:NMe,trident:DMe,name_badge:LMe,beginner:IMe,o:PMe,white_check_mark:FMe,ballot_box_with_check:BMe,heavy_check_mark:$Me,x:jMe,negative_squared_cross_mark:zMe,curly_loop:UMe,loop:qMe,part_alternation_mark:HMe,eight_spoked_asterisk:VMe,eight_pointed_black_star:GMe,sparkle:KMe,copyright:WMe,registered:ZMe,tm:YMe,hash:QMe,asterisk:JMe,zero:XMe,one:eOe,two:tOe,three:nOe,four:sOe,five:oOe,six:rOe,seven:iOe,eight:aOe,nine:lOe,keycap_ten:cOe,capital_abcd:uOe,abcd:dOe,symbols:hOe,abc:fOe,a:pOe,ab:gOe,b:mOe,cl:_Oe,cool:bOe,free:yOe,information_source:vOe,id:wOe,m:xOe,new:"🆕",ng:kOe,o2:EOe,ok:COe,parking:AOe,sos:SOe,up:TOe,vs:MOe,koko:OOe,sa:ROe,ideograph_advantage:NOe,accept:DOe,congratulations:LOe,secret:IOe,u6e80:POe,red_circle:FOe,orange_circle:BOe,yellow_circle:$Oe,green_circle:jOe,large_blue_circle:zOe,purple_circle:UOe,brown_circle:qOe,black_circle:HOe,white_circle:VOe,red_square:GOe,orange_square:KOe,yellow_square:WOe,green_square:ZOe,blue_square:YOe,purple_square:QOe,brown_square:JOe,black_large_square:XOe,white_large_square:eRe,black_medium_square:tRe,white_medium_square:nRe,black_medium_small_square:sRe,white_medium_small_square:oRe,black_small_square:rRe,white_small_square:iRe,large_orange_diamond:aRe,large_blue_diamond:lRe,small_orange_diamond:cRe,small_blue_diamond:uRe,small_red_triangle:dRe,small_red_triangle_down:hRe,diamond_shape_with_a_dot_inside:fRe,radio_button:pRe,white_square_button:gRe,black_square_button:mRe,checkered_flag:_Re,triangular_flag_on_post:bRe,crossed_flags:yRe,black_flag:vRe,white_flag:wRe,rainbow_flag:xRe,transgender_flag:kRe,pirate_flag:ERe,ascension_island:CRe,andorra:ARe,united_arab_emirates:SRe,afghanistan:TRe,antigua_barbuda:MRe,anguilla:ORe,albania:RRe,armenia:NRe,angola:DRe,antarctica:LRe,argentina:IRe,american_samoa:PRe,austria:FRe,australia:BRe,aruba:$Re,aland_islands:jRe,azerbaijan:zRe,bosnia_herzegovina:URe,barbados:qRe,bangladesh:HRe,belgium:VRe,burkina_faso:GRe,bulgaria:KRe,bahrain:WRe,burundi:ZRe,benin:YRe,st_barthelemy:QRe,bermuda:JRe,brunei:XRe,bolivia:eNe,caribbean_netherlands:tNe,brazil:nNe,bahamas:sNe,bhutan:oNe,bouvet_island:rNe,botswana:iNe,belarus:aNe,belize:lNe,canada:cNe,cocos_islands:uNe,congo_kinshasa:dNe,central_african_republic:hNe,congo_brazzaville:fNe,switzerland:pNe,cote_divoire:gNe,cook_islands:mNe,chile:_Ne,cameroon:bNe,cn:yNe,colombia:vNe,clipperton_island:wNe,costa_rica:xNe,cuba:kNe,cape_verde:ENe,curacao:CNe,christmas_island:ANe,cyprus:SNe,czech_republic:TNe,de:MNe,diego_garcia:ONe,djibouti:RNe,denmark:NNe,dominica:DNe,dominican_republic:LNe,algeria:INe,ceuta_melilla:PNe,ecuador:FNe,estonia:BNe,egypt:$Ne,western_sahara:jNe,eritrea:zNe,es:UNe,ethiopia:qNe,eu:HNe,european_union:VNe,finland:GNe,fiji:KNe,falkland_islands:WNe,micronesia:ZNe,faroe_islands:YNe,fr:QNe,gabon:JNe,gb:XNe,uk:eDe,grenada:tDe,georgia:nDe,french_guiana:sDe,guernsey:oDe,ghana:rDe,gibraltar:iDe,greenland:aDe,gambia:lDe,guinea:cDe,guadeloupe:uDe,equatorial_guinea:dDe,greece:hDe,south_georgia_south_sandwich_islands:fDe,guatemala:pDe,guam:gDe,guinea_bissau:mDe,guyana:_De,hong_kong:bDe,heard_mcdonald_islands:yDe,honduras:vDe,croatia:wDe,haiti:xDe,hungary:kDe,canary_islands:EDe,indonesia:CDe,ireland:ADe,israel:SDe,isle_of_man:TDe,india:MDe,british_indian_ocean_territory:ODe,iraq:RDe,iran:NDe,iceland:DDe,it:LDe,jersey:IDe,jamaica:PDe,jordan:FDe,jp:BDe,kenya:$De,kyrgyzstan:jDe,cambodia:zDe,kiribati:UDe,comoros:qDe,st_kitts_nevis:HDe,north_korea:VDe,kr:GDe,kuwait:KDe,cayman_islands:WDe,kazakhstan:ZDe,laos:YDe,lebanon:QDe,st_lucia:JDe,liechtenstein:XDe,sri_lanka:eLe,liberia:tLe,lesotho:nLe,lithuania:sLe,luxembourg:oLe,latvia:rLe,libya:iLe,morocco:aLe,monaco:lLe,moldova:cLe,montenegro:uLe,st_martin:dLe,madagascar:hLe,marshall_islands:fLe,macedonia:pLe,mali:gLe,myanmar:mLe,mongolia:_Le,macau:bLe,northern_mariana_islands:yLe,martinique:vLe,mauritania:wLe,montserrat:xLe,malta:kLe,mauritius:ELe,maldives:CLe,malawi:ALe,mexico:SLe,malaysia:TLe,mozambique:MLe,namibia:OLe,new_caledonia:RLe,niger:NLe,norfolk_island:DLe,nigeria:LLe,nicaragua:ILe,netherlands:PLe,norway:FLe,nepal:BLe,nauru:$Le,niue:jLe,new_zealand:zLe,oman:ULe,panama:qLe,peru:HLe,french_polynesia:VLe,papua_new_guinea:GLe,philippines:KLe,pakistan:WLe,poland:ZLe,st_pierre_miquelon:YLe,pitcairn_islands:QLe,puerto_rico:JLe,palestinian_territories:XLe,portugal:eIe,palau:tIe,paraguay:nIe,qatar:sIe,reunion:oIe,romania:rIe,serbia:iIe,ru:aIe,rwanda:lIe,saudi_arabia:cIe,solomon_islands:uIe,seychelles:dIe,sudan:hIe,sweden:fIe,singapore:pIe,st_helena:gIe,slovenia:mIe,svalbard_jan_mayen:_Ie,slovakia:bIe,sierra_leone:yIe,san_marino:vIe,senegal:wIe,somalia:xIe,suriname:kIe,south_sudan:EIe,sao_tome_principe:CIe,el_salvador:AIe,sint_maarten:SIe,syria:TIe,swaziland:MIe,tristan_da_cunha:OIe,turks_caicos_islands:RIe,chad:NIe,french_southern_territories:DIe,togo:LIe,thailand:IIe,tajikistan:PIe,tokelau:FIe,timor_leste:BIe,turkmenistan:$Ie,tunisia:jIe,tonga:zIe,tr:UIe,trinidad_tobago:qIe,tuvalu:HIe,taiwan:VIe,tanzania:GIe,ukraine:KIe,uganda:WIe,us_outlying_islands:ZIe,united_nations:YIe,us:QIe,uruguay:JIe,uzbekistan:XIe,vatican_city:ePe,st_vincent_grenadines:tPe,venezuela:nPe,british_virgin_islands:sPe,us_virgin_islands:oPe,vietnam:rPe,vanuatu:iPe,wallis_futuna:aPe,samoa:lPe,kosovo:cPe,yemen:uPe,mayotte:dPe,south_africa:hPe,zambia:fPe,zimbabwe:pPe,england:gPe,scotland:mPe,wales:_Pe};var yPe={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["0&&!l.test(b[_-1])||_+v.lengthf&&(g=new p("text","",0),g.content=u.slice(f,_),m.push(g)),g=new p("emoji","",0),g.markup=x,g.content=n[x],m.push(g),f=_+v.length}),f=0;p--)v=m[p],(v.type==="link_open"||v.type==="link_close")&&v.info==="auto"&&(b-=v.nesting),v.type==="text"&&b===0&&o.test(v.content)&&(_[g].children=m=i(m,p,c(v.content,v.level,h.Token)))}};function xPe(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var kPe=function(e){var n=e.defs,s;e.enabled.length&&(n=Object.keys(n).reduce(function(l,c){return e.enabled.indexOf(c)>=0&&(l[c]=n[c]),l},{})),s=Object.keys(e.shortcuts).reduce(function(l,c){return n[c]?Array.isArray(e.shortcuts[c])?(e.shortcuts[c].forEach(function(u){l[u]=c}),l):(l[e.shortcuts[c]]=c,l):l},{});var o=Object.keys(n),r;o.length===0?r="^$":r=o.map(function(l){return":"+l+":"}).concat(Object.keys(s)).sort().reverse().map(function(l){return xPe(l)}).join("|");var i=RegExp(r),a=RegExp(r,"g");return{defs:n,shortcuts:s,scanRE:i,replaceRE:a}},EPe=vPe,CPe=wPe,APe=kPe,SPe=function(e,n){var s={defs:{},shortcuts:{},enabled:[]},o=APe(e.utils.assign({},s,n||{}));e.renderer.rules.emoji=EPe,e.core.ruler.after("linkify","emoji",CPe(e,o.defs,o.shortcuts,o.scanRE,o.replaceRE))},TPe=bPe,MPe=yPe,OPe=SPe,RPe=function(e,n){var s={defs:TPe,shortcuts:MPe,enabled:[]},o=e.utils.assign({},s,n||{});OPe(e,o)};const NPe=rs(RPe);var Md=!1,Os={false:"push",true:"unshift",after:"push",before:"unshift"},Tr={isPermalinkSymbol:!0};function dl(t,e,n,s){var o;if(!Md){var r="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(r):console.warn(r),Md=!0}var i=[Object.assign(new n.Token("link_open","a",1),{attrs:[].concat(e.permalinkClass?[["class",e.permalinkClass]]:[],[["href",e.permalinkHref(t,n)]],Object.entries(e.permalinkAttrs(t,n)))}),Object.assign(new n.Token("html_block","",0),{content:e.permalinkSymbol,meta:Tr}),new n.Token("link_close","a",-1)];e.permalinkSpace&&n.tokens[s+1].children[Os[e.permalinkBefore]](Object.assign(new n.Token("text","",0),{content:" "})),(o=n.tokens[s+1].children)[Os[e.permalinkBefore]].apply(o,i)}function xg(t){return"#"+t}function kg(t){return{}}var DPe={class:"header-anchor",symbol:"#",renderHref:xg,renderAttrs:kg};function Po(t){function e(n){return n=Object.assign({},e.defaults,n),function(s,o,r,i){return t(s,n,o,r,i)}}return e.defaults=Object.assign({},DPe),e.renderPermalinkImpl=t,e}var _i=Po(function(t,e,n,s,o){var r,i=[Object.assign(new s.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(t,s)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(t,s)))}),Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:Tr}),new s.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";s.tokens[o+1].children[Os[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(r=s.tokens[o+1].children)[Os[e.placement]].apply(r,i)});Object.assign(_i.defaults,{space:!0,placement:"after",ariaHidden:!1});var $n=Po(_i.renderPermalinkImpl);$n.defaults=Object.assign({},_i.defaults,{ariaHidden:!0});var Eg=Po(function(t,e,n,s,o){var r=[Object.assign(new s.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(t,s)]],Object.entries(e.renderAttrs(t,s)))})].concat(e.safariReaderFix?[new s.Token("span_open","span",1)]:[],s.tokens[o+1].children,e.safariReaderFix?[new s.Token("span_close","span",-1)]:[],[new s.Token("link_close","a",-1)]);s.tokens[o+1]=Object.assign(new s.Token("inline","",0),{children:r})});Object.assign(Eg.defaults,{safariReaderFix:!1});var Od=Po(function(t,e,n,s,o){var r;if(!["visually-hidden","aria-label","aria-describedby","aria-labelledby"].includes(e.style))throw new Error("`permalink.linkAfterHeader` called with unknown style option `"+e.style+"`");if(!["aria-describedby","aria-labelledby"].includes(e.style)&&!e.assistiveText)throw new Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+e.style+"` style");if(e.style==="visually-hidden"&&!e.visuallyHiddenClass)throw new Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var i=s.tokens[o+1].children.filter(function(h){return h.type==="text"||h.type==="code_inline"}).reduce(function(h,p){return h+p.content},""),a=[],l=[];if(e.class&&l.push(["class",e.class]),l.push(["href",e.renderHref(t,s)]),l.push.apply(l,Object.entries(e.renderAttrs(t,s))),e.style==="visually-hidden"){if(a.push(Object.assign(new s.Token("span_open","span",1),{attrs:[["class",e.visuallyHiddenClass]]}),Object.assign(new s.Token("text","",0),{content:e.assistiveText(i)}),new s.Token("span_close","span",-1)),e.space){var c=typeof e.space=="string"?e.space:" ";a[Os[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:c}))}a[Os[e.placement]](Object.assign(new s.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:Tr}),new s.Token("span_close","span",-1))}else a.push(Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:Tr}));e.style==="aria-label"?l.push(["aria-label",e.assistiveText(i)]):["aria-describedby","aria-labelledby"].includes(e.style)&&l.push([e.style,t]);var u=[Object.assign(new s.Token("link_open","a",1),{attrs:l})].concat(a,[new s.Token("link_close","a",-1)]);(r=s.tokens).splice.apply(r,[o+3,0].concat(u)),e.wrapper&&(s.tokens.splice(o,0,Object.assign(new s.Token("html_block","",0),{content:e.wrapper[0]+` +`})),s.tokens.splice(o+3+u.length+1,0,Object.assign(new s.Token("html_block","",0),{content:e.wrapper[1]+` +`})))});function Rd(t,e,n,s){var o=t,r=s;if(n&&Object.prototype.hasOwnProperty.call(e,o))throw new Error("User defined `id` attribute `"+t+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(e,o);)o=t+"-"+r,r+=1;return e[o]=!0,o}function ps(t,e){e=Object.assign({},ps.defaults,e),t.core.ruler.push("anchor",function(n){for(var s,o={},r=n.tokens,i=Array.isArray(e.level)?(s=e.level,function(h){return s.includes(h)}):function(h){return function(p){return p>=h}}(e.level),a=0;ap.match(h))}n.tabindex==!0&&(o.tokens[i-1].attrPush(["tabindex",r]),r++),n.lazyLoading==!0&&u.attrPush(["loading","lazy"])}}}e.core.ruler.before("linkify","implicit_figures",s)};const IPe=rs(LPe);function Cg(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],s=typeof n;(s==="object"||s==="function")&&!Object.isFrozen(n)&&Cg(n)}),t}class Nd{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Ag(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function An(t,...e){const n=Object.create(null);for(const s in t)n[s]=t[s];return e.forEach(function(s){for(const o in s)n[o]=s[o]}),n}const PPe="
",Dd=t=>!!t.scope,FPe=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((s,o)=>`${s}${"_".repeat(o+1)}`)].join(" ")}return`${e}${t}`};class BPe{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Ag(e)}openNode(e){if(!Dd(e))return;const n=FPe(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){Dd(e)&&(this.buffer+=PPe)}value(){return this.buffer}span(e){this.buffer+=``}}const Ld=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class hc{constructor(){this.rootNode=Ld(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=Ld({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(s=>this._walk(e,s)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{hc._collapse(n)}))}}class $Pe extends hc{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const s=e.root;n&&(s.scope=`language:${n}`),this.add(s)}toHTML(){return new BPe(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Ao(t){return t?typeof t=="string"?t:t.source:null}function Sg(t){return is("(?=",t,")")}function jPe(t){return is("(?:",t,")*")}function zPe(t){return is("(?:",t,")?")}function is(...t){return t.map(n=>Ao(n)).join("")}function UPe(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function fc(...t){return"("+(UPe(t).capture?"":"?:")+t.map(s=>Ao(s)).join("|")+")"}function Tg(t){return new RegExp(t.toString()+"|").exec("").length-1}function qPe(t,e){const n=t&&t.exec(e);return n&&n.index===0}const HPe=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function pc(t,{joinWith:e}){let n=0;return t.map(s=>{n+=1;const o=n;let r=Ao(s),i="";for(;r.length>0;){const a=HPe.exec(r);if(!a){i+=r;break}i+=r.substring(0,a.index),r=r.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?i+="\\"+String(Number(a[1])+o):(i+=a[0],a[0]==="("&&n++)}return i}).map(s=>`(${s})`).join(e)}const VPe=/\b\B/,Mg="[a-zA-Z]\\w*",gc="[a-zA-Z_]\\w*",Og="\\b\\d+(\\.\\d+)?",Rg="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ng="\\b(0b[01]+)",GPe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",KPe=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=is(e,/.*\b/,t.binary,/\b.*/)),An({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,s)=>{n.index!==0&&s.ignoreMatch()}},t)},So={begin:"\\\\[\\s\\S]",relevance:0},WPe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[So]},ZPe={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[So]},YPe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},bi=function(t,e,n={}){const s=An({scope:"comment",begin:t,end:e,contains:[]},n);s.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=fc("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return s.contains.push({begin:is(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s},QPe=bi("//","$"),JPe=bi("/\\*","\\*/"),XPe=bi("#","$"),eFe={scope:"number",begin:Og,relevance:0},tFe={scope:"number",begin:Rg,relevance:0},nFe={scope:"number",begin:Ng,relevance:0},sFe={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[So,{begin:/\[/,end:/\]/,relevance:0,contains:[So]}]}]},oFe={scope:"title",begin:Mg,relevance:0},rFe={scope:"title",begin:gc,relevance:0},iFe={begin:"\\.\\s*"+gc,relevance:0},aFe=function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})};var Yo=Object.freeze({__proto__:null,MATCH_NOTHING_RE:VPe,IDENT_RE:Mg,UNDERSCORE_IDENT_RE:gc,NUMBER_RE:Og,C_NUMBER_RE:Rg,BINARY_NUMBER_RE:Ng,RE_STARTERS_RE:GPe,SHEBANG:KPe,BACKSLASH_ESCAPE:So,APOS_STRING_MODE:WPe,QUOTE_STRING_MODE:ZPe,PHRASAL_WORDS_MODE:YPe,COMMENT:bi,C_LINE_COMMENT_MODE:QPe,C_BLOCK_COMMENT_MODE:JPe,HASH_COMMENT_MODE:XPe,NUMBER_MODE:eFe,C_NUMBER_MODE:tFe,BINARY_NUMBER_MODE:nFe,REGEXP_MODE:sFe,TITLE_MODE:oFe,UNDERSCORE_TITLE_MODE:rFe,METHOD_GUARD:iFe,END_SAME_AS_BEGIN:aFe});function lFe(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function cFe(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function uFe(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=lFe,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function dFe(t,e){Array.isArray(t.illegal)&&(t.illegal=fc(...t.illegal))}function hFe(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function fFe(t,e){t.relevance===void 0&&(t.relevance=1)}const pFe=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(s=>{delete t[s]}),t.keywords=n.keywords,t.begin=is(n.beforeMatch,Sg(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},gFe=["of","and","for","in","not","or","if","then","parent","list","value"],mFe="keyword";function Dg(t,e,n=mFe){const s=Object.create(null);return typeof t=="string"?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach(function(r){Object.assign(s,Dg(t[r],e,r))}),s;function o(r,i){e&&(i=i.map(a=>a.toLowerCase())),i.forEach(function(a){const l=a.split("|");s[l[0]]=[r,_Fe(l[0],l[1])]})}}function _Fe(t,e){return e?Number(e):bFe(t)?0:1}function bFe(t){return gFe.includes(t.toLowerCase())}const Id={},Yn=t=>{console.error(t)},Pd=(t,...e)=>{console.log(`WARN: ${t}`,...e)},ds=(t,e)=>{Id[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),Id[`${t}/${e}`]=!0)},Mr=new Error;function Lg(t,e,{key:n}){let s=0;const o=t[n],r={},i={};for(let a=1;a<=e.length;a++)i[a+s]=o[a],r[a+s]=!0,s+=Tg(e[a-1]);t[n]=i,t[n]._emit=r,t[n]._multi=!0}function yFe(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Yn("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Mr;if(typeof t.beginScope!="object"||t.beginScope===null)throw Yn("beginScope must be object"),Mr;Lg(t,t.begin,{key:"beginScope"}),t.begin=pc(t.begin,{joinWith:""})}}function vFe(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Yn("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Mr;if(typeof t.endScope!="object"||t.endScope===null)throw Yn("endScope must be object"),Mr;Lg(t,t.end,{key:"endScope"}),t.end=pc(t.end,{joinWith:""})}}function wFe(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function xFe(t){wFe(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),yFe(t),vFe(t)}function kFe(t){function e(i,a){return new RegExp(Ao(i),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(a?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=Tg(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(pc(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const c=l.findIndex((h,p)=>p>0&&h!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class s{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new n;return this.rules.slice(a).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function o(i){const a=new s;return i.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),i.terminatorEnd&&a.addRule(i.terminatorEnd,{type:"end"}),i.illegal&&a.addRule(i.illegal,{type:"illegal"}),a}function r(i,a){const l=i;if(i.isCompiled)return l;[cFe,hFe,xFe,pFe].forEach(u=>u(i,a)),t.compilerExtensions.forEach(u=>u(i,a)),i.__beforeBegin=null,[uFe,dFe,fFe].forEach(u=>u(i,a)),i.isCompiled=!0;let c=null;return typeof i.keywords=="object"&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),c=i.keywords.$pattern,delete i.keywords.$pattern),c=c||/\w+/,i.keywords&&(i.keywords=Dg(i.keywords,t.case_insensitive)),l.keywordPatternRe=e(c,!0),a&&(i.begin||(i.begin=/\B|\b/),l.beginRe=e(l.begin),!i.end&&!i.endsWithParent&&(i.end=/\B|\b/),i.end&&(l.endRe=e(l.end)),l.terminatorEnd=Ao(l.end)||"",i.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(i.end?"|":"")+a.terminatorEnd)),i.illegal&&(l.illegalRe=e(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map(function(u){return EFe(u==="self"?i:u)})),i.contains.forEach(function(u){r(u,l)}),i.starts&&r(i.starts,a),l.matcher=o(l),l}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=An(t.classNameAliases||{}),r(t)}function Ig(t){return t?t.endsWithParent||Ig(t.starts):!1}function EFe(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return An(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:Ig(t)?An(t,{starts:t.starts?An(t.starts):null}):Object.isFrozen(t)?An(t):t}var CFe="11.8.0";class AFe extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const Xi=Ag,Fd=An,Bd=Symbol("nomatch"),SFe=7,Pg=function(t){const e=Object.create(null),n=Object.create(null),s=[];let o=!0;const r="Could not find the language '{}', did you forget to load/include a language module?",i={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:$Pe};function l(S){return a.noHighlightRe.test(S)}function c(S){let q=S.className+" ";q+=S.parentNode?S.parentNode.className:"";const V=a.languageDetectRe.exec(q);if(V){const be=k(V[1]);return be||(Pd(r.replace("{}",V[1])),Pd("Falling back to no-highlight mode for this block.",S)),be?V[1]:"no-highlight"}return q.split(/\s+/).find(be=>l(be)||k(be))}function u(S,q,V){let be="",ge="";typeof q=="object"?(be=S,V=q.ignoreIllegals,ge=q.language):(ds("10.7.0","highlight(lang, code, ...args) has been deprecated."),ds("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),ge=S,be=q),V===void 0&&(V=!0);const ee={code:be,language:ge};ae("before:highlight",ee);const ve=ee.result?ee.result:h(ee.language,ee.code,V);return ve.code=ee.code,ae("after:highlight",ve),ve}function h(S,q,V,be){const ge=Object.create(null);function ee(K,oe){return K.keywords[oe]}function ve(){if(!j.keywords){U.addText(Z);return}let K=0;j.keywordPatternRe.lastIndex=0;let oe=j.keywordPatternRe.exec(Z),pe="";for(;oe;){pe+=Z.substring(K,oe.index);const Ce=$.case_insensitive?oe[0].toLowerCase():oe[0],Pe=ee(j,Ce);if(Pe){const[qe,De]=Pe;if(U.addText(pe),pe="",ge[Ce]=(ge[Ce]||0)+1,ge[Ce]<=SFe&&(ie+=De),qe.startsWith("_"))pe+=oe[0];else{const Ye=$.classNameAliases[qe]||qe;J(oe[0],Ye)}}else pe+=oe[0];K=j.keywordPatternRe.lastIndex,oe=j.keywordPatternRe.exec(Z)}pe+=Z.substring(K),U.addText(pe)}function Ee(){if(Z==="")return;let K=null;if(typeof j.subLanguage=="string"){if(!e[j.subLanguage]){U.addText(Z);return}K=h(j.subLanguage,Z,!0,se[j.subLanguage]),se[j.subLanguage]=K._top}else K=g(Z,j.subLanguage.length?j.subLanguage:null);j.relevance>0&&(ie+=K.relevance),U.__addSublanguage(K._emitter,K.language)}function N(){j.subLanguage!=null?Ee():ve(),Z=""}function J(K,oe){K!==""&&(U.startScope(oe),U.addText(K),U.endScope())}function H(K,oe){let pe=1;const Ce=oe.length-1;for(;pe<=Ce;){if(!K._emit[pe]){pe++;continue}const Pe=$.classNameAliases[K[pe]]||K[pe],qe=oe[pe];Pe?J(qe,Pe):(Z=qe,ve(),Z=""),pe++}}function te(K,oe){return K.scope&&typeof K.scope=="string"&&U.openNode($.classNameAliases[K.scope]||K.scope),K.beginScope&&(K.beginScope._wrap?(J(Z,$.classNameAliases[K.beginScope._wrap]||K.beginScope._wrap),Z=""):K.beginScope._multi&&(H(K.beginScope,oe),Z="")),j=Object.create(K,{parent:{value:j}}),j}function X(K,oe,pe){let Ce=qPe(K.endRe,pe);if(Ce){if(K["on:end"]){const Pe=new Nd(K);K["on:end"](oe,Pe),Pe.isMatchIgnored&&(Ce=!1)}if(Ce){for(;K.endsParent&&K.parent;)K=K.parent;return K}}if(K.endsWithParent)return X(K.parent,oe,pe)}function fe(K){return j.matcher.regexIndex===0?(Z+=K[0],1):(xe=!0,0)}function ce(K){const oe=K[0],pe=K.rule,Ce=new Nd(pe),Pe=[pe.__beforeBegin,pe["on:begin"]];for(const qe of Pe)if(qe&&(qe(K,Ce),Ce.isMatchIgnored))return fe(oe);return pe.skip?Z+=oe:(pe.excludeBegin&&(Z+=oe),N(),!pe.returnBegin&&!pe.excludeBegin&&(Z=oe)),te(pe,K),pe.returnBegin?0:oe.length}function w(K){const oe=K[0],pe=q.substring(K.index),Ce=X(j,K,pe);if(!Ce)return Bd;const Pe=j;j.endScope&&j.endScope._wrap?(N(),J(oe,j.endScope._wrap)):j.endScope&&j.endScope._multi?(N(),H(j.endScope,K)):Pe.skip?Z+=oe:(Pe.returnEnd||Pe.excludeEnd||(Z+=oe),N(),Pe.excludeEnd&&(Z=oe));do j.scope&&U.closeNode(),!j.skip&&!j.subLanguage&&(ie+=j.relevance),j=j.parent;while(j!==Ce.parent);return Ce.starts&&te(Ce.starts,K),Pe.returnEnd?0:oe.length}function E(){const K=[];for(let oe=j;oe!==$;oe=oe.parent)oe.scope&&K.unshift(oe.scope);K.forEach(oe=>U.openNode(oe))}let P={};function B(K,oe){const pe=oe&&oe[0];if(Z+=K,pe==null)return N(),0;if(P.type==="begin"&&oe.type==="end"&&P.index===oe.index&&pe===""){if(Z+=q.slice(oe.index,oe.index+1),!o){const Ce=new Error(`0 width match regex (${S})`);throw Ce.languageName=S,Ce.badRule=P.rule,Ce}return 1}if(P=oe,oe.type==="begin")return ce(oe);if(oe.type==="illegal"&&!V){const Ce=new Error('Illegal lexeme "'+pe+'" for mode "'+(j.scope||"")+'"');throw Ce.mode=j,Ce}else if(oe.type==="end"){const Ce=w(oe);if(Ce!==Bd)return Ce}if(oe.type==="illegal"&&pe==="")return 1;if(ue>1e5&&ue>oe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=pe,pe.length}const $=k(S);if(!$)throw Yn(r.replace("{}",S)),new Error('Unknown language: "'+S+'"');const ne=kFe($);let re="",j=be||ne;const se={},U=new a.__emitter(a);E();let Z="",ie=0,de=0,ue=0,xe=!1;try{if($.__emitTokens)$.__emitTokens(q,U);else{for(j.matcher.considerAll();;){ue++,xe?xe=!1:j.matcher.considerAll(),j.matcher.lastIndex=de;const K=j.matcher.exec(q);if(!K)break;const oe=q.substring(de,K.index),pe=B(oe,K);de=K.index+pe}B(q.substring(de))}return U.finalize(),re=U.toHTML(),{language:S,value:re,relevance:ie,illegal:!1,_emitter:U,_top:j}}catch(K){if(K.message&&K.message.includes("Illegal"))return{language:S,value:Xi(q),illegal:!0,relevance:0,_illegalBy:{message:K.message,index:de,context:q.slice(de-100,de+100),mode:K.mode,resultSoFar:re},_emitter:U};if(o)return{language:S,value:Xi(q),illegal:!1,relevance:0,errorRaised:K,_emitter:U,_top:j};throw K}}function p(S){const q={value:Xi(S),illegal:!1,relevance:0,_top:i,_emitter:new a.__emitter(a)};return q._emitter.addText(S),q}function g(S,q){q=q||a.languages||Object.keys(e);const V=p(S),be=q.filter(k).filter(L).map(N=>h(N,S,!1));be.unshift(V);const ge=be.sort((N,J)=>{if(N.relevance!==J.relevance)return J.relevance-N.relevance;if(N.language&&J.language){if(k(N.language).supersetOf===J.language)return 1;if(k(J.language).supersetOf===N.language)return-1}return 0}),[ee,ve]=ge,Ee=ee;return Ee.secondBest=ve,Ee}function f(S,q,V){const be=q&&n[q]||V;S.classList.add("hljs"),S.classList.add(`language-${be}`)}function m(S){let q=null;const V=c(S);if(l(V))return;if(ae("before:highlightElement",{el:S,language:V}),S.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(S)),a.throwUnescapedHTML))throw new AFe("One of your code blocks includes unescaped HTML.",S.innerHTML);q=S;const be=q.textContent,ge=V?u(be,{language:V,ignoreIllegals:!0}):g(be);S.innerHTML=ge.value,f(S,V,ge.language),S.result={language:ge.language,re:ge.relevance,relevance:ge.relevance},ge.secondBest&&(S.secondBest={language:ge.secondBest.language,relevance:ge.secondBest.relevance}),ae("after:highlightElement",{el:S,result:ge,text:be})}function v(S){a=Fd(a,S)}const _=()=>{C(),ds("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function b(){C(),ds("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let x=!1;function C(){if(document.readyState==="loading"){x=!0;return}document.querySelectorAll(a.cssSelector).forEach(m)}function R(){x&&C()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",R,!1);function O(S,q){let V=null;try{V=q(t)}catch(be){if(Yn("Language definition for '{}' could not be registered.".replace("{}",S)),o)Yn(be);else throw be;V=i}V.name||(V.name=S),e[S]=V,V.rawDefinition=q.bind(null,t),V.aliases&&T(V.aliases,{languageName:S})}function D(S){delete e[S];for(const q of Object.keys(n))n[q]===S&&delete n[q]}function y(){return Object.keys(e)}function k(S){return S=(S||"").toLowerCase(),e[S]||e[n[S]]}function T(S,{languageName:q}){typeof S=="string"&&(S=[S]),S.forEach(V=>{n[V.toLowerCase()]=q})}function L(S){const q=k(S);return q&&!q.disableAutodetect}function F(S){S["before:highlightBlock"]&&!S["before:highlightElement"]&&(S["before:highlightElement"]=q=>{S["before:highlightBlock"](Object.assign({block:q.el},q))}),S["after:highlightBlock"]&&!S["after:highlightElement"]&&(S["after:highlightElement"]=q=>{S["after:highlightBlock"](Object.assign({block:q.el},q))})}function Q(S){F(S),s.push(S)}function I(S){const q=s.indexOf(S);q!==-1&&s.splice(q,1)}function ae(S,q){const V=S;s.forEach(function(be){be[V]&&be[V](q)})}function W(S){return ds("10.7.0","highlightBlock will be removed entirely in v12.0"),ds("10.7.0","Please use highlightElement now."),m(S)}Object.assign(t,{highlight:u,highlightAuto:g,highlightAll:C,highlightElement:m,highlightBlock:W,configure:v,initHighlighting:_,initHighlightingOnLoad:b,registerLanguage:O,unregisterLanguage:D,listLanguages:y,getLanguage:k,registerAliases:T,autoDetection:L,inherit:Fd,addPlugin:Q,removePlugin:I}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString=CFe,t.regex={concat:is,lookahead:Sg,either:fc,optional:zPe,anyNumberOfTimes:jPe};for(const S in Yo)typeof Yo[S]=="object"&&Cg(Yo[S]);return Object.assign(t,Yo),t},Rs=Pg({});Rs.newInstance=()=>Pg({});var TFe=Rs;Rs.HighlightJS=Rs;Rs.default=Rs;var ea,$d;function MFe(){if($d)return ea;$d=1;function t(e){const n=e.regex,s=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(i,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[i,c,l,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[i,a,c,l]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:s,relevance:0,starts:u}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(s,/>/))),contains:[{className:"name",begin:s,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return ea=t,ea}var ta,jd;function OFe(){if(jd)return ta;jd=1;function t(e){const n=e.regex,s={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[s]}]};Object.assign(s,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,r]};r.contains.push(a);const l={className:"",begin:/\\"/},c={className:"string",begin:/'/,end:/'/},u={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,s]},h=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=e.SHEBANG({binary:`(${h.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},f=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],m=["true","false"],v={match:/(\/[a-z._-]+)+/},_=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],b=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],x=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],C=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:f,literal:m,built_in:[..._,...b,"set","shopt",...x,...C]},contains:[p,e.SHEBANG(),g,u,e.HASH_COMMENT_MODE,i,v,a,l,c,s]}}return ta=t,ta}var na,zd;function RFe(){if(zd)return na;zd=1;function t(e){const n=e.regex,s=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",i="<[^<>]+>",a="("+o+"|"+n.optional(r)+"[a-zA-Z_]\\w*"+n.optional(i)+")",l={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+c+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},h={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},s,e.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(r)+e.IDENT_RE,relevance:0},f=n.optional(r)+e.IDENT_RE+"\\s*\\(",_={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},b=[p,l,s,e.C_BLOCK_COMMENT_MODE,h,u],x={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:_,contains:b.concat([{begin:/\(/,end:/\)/,keywords:_,contains:b.concat(["self"]),relevance:0}]),relevance:0},C={begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:_,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:_,relevance:0},{begin:f,returnBegin:!0,contains:[e.inherit(g,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[s,e.C_BLOCK_COMMENT_MODE,u,h,l,{begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:["self",s,e.C_BLOCK_COMMENT_MODE,u,h,l]}]},l,s,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C",aliases:["h"],keywords:_,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:p,strings:u,keywords:_}}}return na=t,na}var sa,Ud;function NFe(){if(Ud)return sa;Ud=1;function t(e){const n=e.regex,s=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",i="<[^<>]+>",a="(?!struct)("+o+"|"+n.optional(r)+"[a-zA-Z_]\\w*"+n.optional(i)+")",l={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+c+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},h={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},s,e.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:n.optional(r)+e.IDENT_RE,relevance:0},f=n.optional(r)+e.IDENT_RE+"\\s*\\(",m=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],v=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],_=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],R={type:v,keyword:m,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:_},O={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},D=[O,p,l,s,e.C_BLOCK_COMMENT_MODE,h,u],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:R,contains:D.concat([{begin:/\(/,end:/\)/,keywords:R,contains:D.concat(["self"]),relevance:0}]),relevance:0},k={className:"function",begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:R,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:R,relevance:0},{begin:f,returnBegin:!0,contains:[g],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,h]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:[s,e.C_BLOCK_COMMENT_MODE,u,h,l,{begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:["self",s,e.C_BLOCK_COMMENT_MODE,u,h,l]}]},l,s,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:R,illegal:"",keywords:R,contains:["self",l]},{begin:e.IDENT_RE+"::",keywords:R},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return sa=t,sa}var oa,qd;function DFe(){if(qd)return oa;qd=1;function t(e){const n=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],s=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],o=["default","false","null","true"],r=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],i=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:r.concat(i),built_in:n,literal:o},l=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},h=e.inherit(u,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:a},g=e.inherit(p,{illegal:/\n/}),f={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,g]},m={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},v=e.inherit(m,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]});p.contains=[m,f,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,c,e.C_BLOCK_COMMENT_MODE],g.contains=[v,f,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,c,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const _={variants:[m,f,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},b={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},x=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},_,c,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,b,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+x+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:s.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,b],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[_,c,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},C]}}return oa=t,oa}var ra,Hd;function LFe(){if(Hd)return ra;Hd=1;const t=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],r=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","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-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-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","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","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","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","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","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","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","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-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function i(a){const l=a.regex,c=t(a),u={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},h="and or not only",p=/@-?\w[\w]*(-\w+)*/,g="[a-zA-Z-][a-zA-Z0-9_-]*",f=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[c.BLOCK_COMMENT,u,c.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+g,relevance:0},c.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+s.join("|")+")"},{begin:":(:)?("+o.join("|")+")"}]},c.CSS_VARIABLE,{className:"attribute",begin:"\\b("+r.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[c.BLOCK_COMMENT,c.HEXCOLOR,c.IMPORTANT,c.CSS_NUMBER_MODE,...f,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...f,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},c.FUNCTION_DISPATCH]},{begin:l.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:p},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:h,attribute:n.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...f,c.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b"}]}}return ra=i,ra}var ia,Vd;function IFe(){if(Vd)return ia;Vd=1;function t(e){const n=e.regex,s={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={begin:"^[-\\*]{3,}",end:"$"},r={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},i={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},l=/[A-Za-z][A-Za-z0-9+.-]*/,c={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n.concat(/\[.+?\]\(/,l,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},h={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=e.inherit(u,{contains:[]}),g=e.inherit(h,{contains:[]});u.contains.push(g),h.contains.push(p);let f=[s,c];return[u,h,p,g].forEach(_=>{_.contains=_.contains.concat(f)}),f=f.concat(u,h),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:f},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:f}]}]},s,i,u,h,{className:"quote",begin:"^>\\s+",contains:f,end:"$"},r,o,c,a]}}return ia=t,ia}var aa,Gd;function PFe(){if(Gd)return aa;Gd=1;function t(e){const n=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return aa=t,aa}var la,Kd;function FFe(){if(Kd)return la;Kd=1;function t(e){const n=e.regex,s="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",o=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),r=n.concat(o,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},l={className:"doctag",begin:"@[A-Za-z]+"},c={begin:"#<",end:">"},u=[e.COMMENT("#","$",{contains:[l]}),e.COMMENT("^=begin","^=end",{contains:[l],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],h={className:"subst",begin:/#\{/,end:/\}/,keywords:a},p={className:"string",contains:[e.BACKSLASH_ESCAPE,h],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:n.concat(/<<[-~]?'?/,n.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,h]})]}]},g="[1-9](_?[0-9])*|0",f="[0-9](_?[0-9])*",m={className:"number",relevance:0,variants:[{begin:`\\b(${g})(\\.(${f}))?([eE][+-]?(${f})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},v={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},D=[p,{variants:[{match:[/class\s+/,r,/\s+<\s+/,r]},{match:[/\b(class|module)\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,r],scope:{2:"title.class"},keywords:a},{relevance:0,match:[r,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:o,scope:"title.class"},{match:[/def/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[v]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[p,{begin:s}],relevance:0},m,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,h],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(c,u),relevance:0}].concat(c,u);h.contains=D,v.contains=D;const y="[>?]>",k="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",T="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",L=[{begin:/^\s*=>/,starts:{end:"$",contains:D}},{className:"meta.prompt",begin:"^("+y+"|"+k+"|"+T+")(?=[ ])",starts:{end:"$",keywords:a,contains:D}}];return u.unshift(c),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(L).concat(u).concat(D)}}return la=t,la}var ca,Wd;function BFe(){if(Wd)return ca;Wd=1;function t(e){const i={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:i,illegal:"o(i,a,l-1))}function r(i){const a=i.regex,l="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",c=l+o("(?:<"+l+"~~~(?:\\s*,\\s*"+l+"~~~)*>)?",/~~~/g,2),f={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},m={className:"meta",begin:"@"+l,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},v={className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[i.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:f,illegal:/<\/|#/,contains:[i.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[i.BACKSLASH_ESCAPE]},i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,l],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,l),/\s+/,l,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,l],className:{1:"keyword",3:"title.class"},contains:[v,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+c+"\\s+)",i.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:f,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[m,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,s,i.C_BLOCK_COMMENT_MODE]},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},s,m]}}return ha=r,ha}var fa,Jd;function UFe(){if(Jd)return fa;Jd=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],o=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(r,s,o);function l(c){const u=c.regex,h=(H,{after:te})=>{const X="",end:""},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(H,te)=>{const X=H[0].length+H.index,fe=H.input[X];if(fe==="<"||fe===","){te.ignoreMatch();return}fe===">"&&(h(H,{after:X})||te.ignoreMatch());let ce;const w=H.input.substring(X);if(ce=w.match(/^\s*=/)){te.ignoreMatch();return}if((ce=w.match(/^\s+extends\s+/))&&ce.index===0){te.ignoreMatch();return}}},v={$pattern:t,keyword:e,literal:n,built_in:a,"variable.language":i},_="[0-9](_?[0-9])*",b=`\\.(${_})`,x="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",C={className:"number",variants:[{begin:`(\\b(${x})((${b})|\\.)?|(${b}))[eE][+-]?(${_})\\b`},{begin:`\\b(${x})\\b((${b})\\b|\\.)?|(${b})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},R={className:"subst",begin:"\\$\\{",end:"\\}",keywords:v,contains:[]},O={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,R],subLanguage:"xml"}},D={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,R],subLanguage:"css"}},y={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,R],subLanguage:"graphql"}},k={className:"string",begin:"`",end:"`",contains:[c.BACKSLASH_ESCAPE,R]},L={className:"comment",variants:[c.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:p+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),c.C_BLOCK_COMMENT_MODE,c.C_LINE_COMMENT_MODE]},F=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,O,D,y,k,{match:/\$\d+/},C];R.contains=F.concat({begin:/\{/,end:/\}/,keywords:v,contains:["self"].concat(F)});const Q=[].concat(L,R.contains),I=Q.concat([{begin:/\(/,end:/\)/,keywords:v,contains:["self"].concat(Q)}]),ae={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,contains:I},W={variants:[{match:[/class/,/\s+/,p,/\s+/,/extends/,/\s+/,u.concat(p,"(",u.concat(/\./,p),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,p],scope:{1:"keyword",3:"title.class"}}]},S={relevance:0,match:u.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...o]}},q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},V={variants:[{match:[/function/,/\s+/,p,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[ae],illegal:/%/},be={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ge(H){return u.concat("(?!",H.join("|"),")")}const ee={match:u.concat(/\b/,ge([...r,"super","import"]),p,u.lookahead(/\(/)),className:"title.function",relevance:0},ve={begin:u.concat(/\./,u.lookahead(u.concat(p,/(?![0-9A-Za-z$_(])/))),end:p,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ee={match:[/get|set/,/\s+/,p,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},ae]},N="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+c.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,u.lookahead(N)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[ae]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:v,exports:{PARAMS_CONTAINS:I,CLASS_REFERENCE:S},illegal:/#(?![$_A-z])/,contains:[c.SHEBANG({label:"shebang",binary:"node",relevance:5}),q,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,O,D,y,k,L,{match:/\$\d+/},C,S,{className:"attr",begin:p+u.lookahead(":"),relevance:0},J,{begin:"("+c.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[L,c.REGEXP_MODE,{className:"function",begin:N,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:c.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,contains:I}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:f},{begin:m.begin,"on:begin":m.isTrulyOpeningTag,end:m.end}],subLanguage:"xml",contains:[{begin:m.begin,end:m.end,skip:!0,contains:["self"]}]}]},V,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+c.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[ae,c.inherit(c.TITLE_MODE,{begin:p,className:"title.function"})]},{match:/\.\.\./,relevance:0},ve,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[ae]},ee,be,W,Ee,{match:/\$[(.]/}]}}return fa=l,fa}var pa,Xd;function qFe(){if(Xd)return pa;Xd=1;function t(e){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},s={match:/[{}[\],:]/,className:"punctuation",relevance:0},o=["true","false","null"],r={scope:"literal",beginKeywords:o.join(" ")};return{name:"JSON",keywords:{literal:o},contains:[n,s,e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return pa=t,pa}var ga,eh;function HFe(){if(eh)return ga;eh=1;var t="[0-9](_*[0-9])*",e=`\\.(${t})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",s={className:"number",variants:[{begin:`(\\b(${t})((${e})|\\.)?|(${e}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function o(r){const i={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},l={className:"symbol",begin:r.UNDERSCORE_IDENT_RE+"@"},c={className:"subst",begin:/\$\{/,end:/\}/,contains:[r.C_NUMBER_MODE]},u={className:"variable",begin:"\\$"+r.UNDERSCORE_IDENT_RE},h={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[u,c]},{begin:"'",end:"'",illegal:/\n/,contains:[r.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[r.BACKSLASH_ESCAPE,u,c]}]};c.contains.push(h);const p={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+r.UNDERSCORE_IDENT_RE+")?"},g={className:"meta",begin:"@"+r.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[r.inherit(h,{className:"string"}),"self"]}]},f=s,m=r.COMMENT("/\\*","\\*/",{contains:[r.C_BLOCK_COMMENT_MODE]}),v={variants:[{className:"type",begin:r.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},_=v;return _.variants[1].contains=[v],v.variants[1].contains=[_],{name:"Kotlin",aliases:["kt","kts"],keywords:i,contains:[r.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),r.C_LINE_COMMENT_MODE,m,a,l,p,g,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:i,relevance:5,contains:[{begin:r.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[r.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:i,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[v,r.C_LINE_COMMENT_MODE,m],relevance:0},r.C_LINE_COMMENT_MODE,m,p,g,h,r.C_NUMBER_MODE]},m]},{begin:[/class|interface|trait/,/\s+/,r.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},r.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},p,g]},h,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` +`},f]}}return ga=o,ga}var ma,th;function VFe(){if(th)return ma;th=1;const t=l=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:l.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:l.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],r=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","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-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-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","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","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","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","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","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","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","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-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),i=s.concat(o);function a(l){const c=t(l),u=i,h="and or not only",p="[\\w-]+",g="("+p+"|@\\{"+p+"\\})",f=[],m=[],v=function(L){return{className:"string",begin:"~?"+L+".*?"+L}},_=function(L,F,Q){return{className:L,begin:F,relevance:Q}},b={$pattern:/[a-z-]+/,keyword:h,attribute:n.join(" ")},x={begin:"\\(",end:"\\)",contains:m,keywords:b,relevance:0};m.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,v("'"),v('"'),c.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},c.HEXCOLOR,x,_("variable","@@?"+p,10),_("variable","@\\{"+p+"\\}"),_("built_in","~?`[^`]*?`"),{className:"attribute",begin:p+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},c.IMPORTANT,{beginKeywords:"and not"},c.FUNCTION_DISPATCH);const C=m.concat({begin:/\{/,end:/\}/,contains:f}),R={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(m)},O={begin:g+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},c.CSS_VARIABLE,{className:"attribute",begin:"\\b("+r.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:m}}]},D={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:b,returnEnd:!0,contains:m,relevance:0}},y={className:"variable",variants:[{begin:"@"+p+"\\s*:",relevance:15},{begin:"@"+p}],starts:{end:"[;}]",returnEnd:!0,contains:C}},k={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:g,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,R,_("keyword","all\\b"),_("variable","@\\{"+p+"\\}"),{begin:"\\b("+e.join("|")+")\\b",className:"selector-tag"},c.CSS_NUMBER_MODE,_("selector-tag",g,0),_("selector-id","#"+g),_("selector-class","\\."+g,0),_("selector-tag","&",0),c.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+s.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+o.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:C},{begin:"!important"},c.FUNCTION_DISPATCH]},T={begin:p+`:(:)?(${u.join("|")})`,returnBegin:!0,contains:[k]};return f.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,D,y,T,O,k,R,c.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:f}}return ma=a,ma}var _a,nh;function GFe(){if(nh)return _a;nh=1;function t(e){const n="\\[=*\\[",s="\\]=*\\]",o={begin:n,end:s,contains:["self"]},r=[e.COMMENT("--(?!"+n+")","$"),e.COMMENT("--"+n,s,{contains:[o],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:r.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:r}].concat(r)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:n,end:s,contains:[o],relevance:5}])}}return _a=t,_a}var ba,sh;function KFe(){if(sh)return ba;sh=1;function t(e){const n={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%\{/,end:/\}/},l={variants:[{begin:/\$\d/},{begin:n.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},c=[e.BACKSLASH_ESCAPE,i,l],u=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],h=(f,m,v="\\1")=>{const _=v==="\\1"?v:n.concat(v,m);return n.concat(n.concat("(?:",f,")"),m,/(?:\\.|[^\\\/])*?/,_,/(?:\\.|[^\\\/])*?/,v,o)},p=(f,m,v)=>n.concat(n.concat("(?:",f,")"),m,/(?:\\.|[^\\\/])*?/,v,o),g=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:c,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:h("s|tr|y",n.either(...u,{capture:!0}))},{begin:h("s|tr|y","\\(","\\)")},{begin:h("s|tr|y","\\[","\\]")},{begin:h("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",n.either(...u,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return i.contains=g,a.contains=g,{name:"Perl",aliases:["pl","pm"],keywords:r,contains:g}}return ya=t,ya}var va,rh;function ZFe(){if(rh)return va;rh=1;function t(e){const n={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},s=/[a-zA-Z@][a-zA-Z0-9_]*/,l={"variable.language":["this","super"],$pattern:s,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},c={$pattern:s,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:l,illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+c.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:c,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return va=t,va}var wa,ih;function YFe(){if(ih)return wa;ih=1;function t(e){const n=e.regex,s=/(?![A-Za-z0-9])(?![$])/,o=n.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,s),r=n.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,s),i={scope:"variable",match:"\\$+"+o},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),h={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(I,ae)=>{ae.data._beginMatch=I[1]||I[2]},"on:end":(I,ae)=>{ae.data._beginMatch!==I[1]&&ae.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),g=`[ +]`,f={scope:"string",variants:[u,c,h,p]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},v=["false","null","true"],_=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],b=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],C={keyword:_,literal:(I=>{const ae=[];return I.forEach(W=>{ae.push(W),W.toLowerCase()===W?ae.push(W.toUpperCase()):ae.push(W.toLowerCase())}),ae})(v),built_in:b},R=I=>I.map(ae=>ae.replace(/\|\d+$/,"")),O={variants:[{match:[/new/,n.concat(g,"+"),n.concat("(?!",R(b).join("\\b|"),"\\b)"),r],scope:{1:"keyword",4:"title.class"}}]},D=n.concat(o,"\\b(?!\\()"),y={variants:[{match:[n.concat(/::/,n.lookahead(/(?!class\b)/)),D],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[r,n.concat(/::/,n.lookahead(/(?!class\b)/)),D],scope:{1:"title.class",3:"variable.constant"}},{match:[r,n.concat("::",n.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[r,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},k={scope:"attr",match:n.concat(o,n.lookahead(":"),n.lookahead(/(?!::)/))},T={relevance:0,begin:/\(/,end:/\)/,keywords:C,contains:[k,i,y,e.C_BLOCK_COMMENT_MODE,f,m,O]},L={relevance:0,match:[/\b/,n.concat("(?!fn\\b|function\\b|",R(_).join("\\b|"),"|",R(b).join("\\b|"),"\\b)"),o,n.concat(g,"*"),n.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[T]};T.contains.push(L);const F=[k,y,e.C_BLOCK_COMMENT_MODE,f,m,O],Q={begin:n.concat(/#\[\s*/,r),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:v,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:v,keyword:["new","array"]},contains:["self",...F]},...F,{scope:"meta",match:r}]};return{case_insensitive:!1,keywords:C,contains:[Q,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},a,{scope:"variable.language",match:/\$this\b/},i,L,y,{match:[/const/,/\s/,o],scope:{1:"keyword",3:"variable.constant"}},O,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:C,contains:["self",i,y,e.C_BLOCK_COMMENT_MODE,f,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},f,m]}}return wa=t,wa}var xa,ah;function QFe(){if(ah)return xa;ah=1;function t(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return xa=t,xa}var ka,lh;function JFe(){if(lh)return ka;lh=1;function t(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return ka=t,ka}var Ea,ch;function XFe(){if(ch)return Ea;ch=1;function t(e){const n=e.regex,s=/[\p{XID_Start}_]\p{XID_Continue}*/u,o=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],l={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:o,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:l,illegal:/#/},h={begin:/\{\{/,relevance:0},p={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c,h,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c,h,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,h,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,h,u]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g="[0-9](_?[0-9])*",f=`(\\b(${g}))?\\.(${g})|\\b(${g})\\.`,m=`\\b|${o.join("|")}`,v={className:"number",relevance:0,variants:[{begin:`(\\b(${g})|(${f}))[eE][+-]?(${g})[jJ]?(?=${m})`},{begin:`(${f})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${m})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${m})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${m})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${m})`},{begin:`\\b(${g})[jJ](?=${m})`}]},_={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:l,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},b={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",c,v,p,e.HASH_COMMENT_MODE]}]};return u.contains=[p,v,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:l,illegal:/(<\/|\?)|=>/,contains:[c,v,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},p,_,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[b]},{variants:[{match:[/\bclass/,/\s+/,s,/\s*/,/\(\s*/,s,/\s*\)/]},{match:[/\bclass/,/\s+/,s]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[v,b,p]}]}}return Ea=t,Ea}var Ca,uh;function eBe(){if(uh)return Ca;uh=1;function t(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Ca=t,Ca}var Aa,dh;function tBe(){if(dh)return Aa;dh=1;function t(e){const n=e.regex,s=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,o=n.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),r=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,i=n.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:s,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:n.lookahead(n.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:s},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[r,o]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,o]},{scope:{1:"punctuation",2:"number"},match:[i,o]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,o]}]},{scope:{3:"operator"},match:[s,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:r},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:i},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return Aa=t,Aa}var Sa,hh;function nBe(){if(hh)return Sa;hh=1;function t(e){const n=e.regex,s={className:"title.function.invoke",relevance:0,begin:n.concat(/\b/,/(?!let\b)/,e.IDENT_RE,n.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",r=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],i=["true","false","Some","None","Ok","Err"],a=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],l=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:l,keyword:r,literal:i,built_in:a},illegal:""},s]}}return Sa=t,Sa}var Ta,fh;function sBe(){if(fh)return Ta;fh=1;const t=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],r=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","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-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-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","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","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","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","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","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","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","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-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function i(a){const l=t(a),c=o,u=s,h="@[a-z-]+",p="and or not only",f={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,l.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+u.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+c.join("|")+")"},f,{begin:/\(/,end:/\)/,contains:[l.CSS_NUMBER_MODE]},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+r.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[l.BLOCK_COMMENT,f,l.HEXCOLOR,l.CSS_NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,l.IMPORTANT,l.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:h,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:p,attribute:n.join(" ")},contains:[{begin:h,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},f,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,l.HEXCOLOR,l.CSS_NUMBER_MODE]},l.FUNCTION_DISPATCH]}}return Ta=i,Ta}var Ma,ph;function oBe(){if(ph)return Ma;ph=1;function t(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return Ma=t,Ma}var Oa,gh;function rBe(){if(gh)return Oa;gh=1;function t(e){const n=e.regex,s=e.COMMENT("--","$"),o={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},r={begin:/"/,end:/"/,contains:[{begin:/""/}]},i=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],l=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],u=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],h=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],p=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],g=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],f=h,m=[...u,...c].filter(C=>!h.includes(C)),v={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},_={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},b={begin:n.concat(/\b/,n.either(...f),/\s*\(/),relevance:0,keywords:{built_in:f}};function x(C,{exceptions:R,when:O}={}){const D=O;return R=R||[],C.map(y=>y.match(/\|\d+$/)||R.includes(y)?y:D(y)?`${y}|0`:y)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(m,{when:C=>C.length<3}),literal:i,type:l,built_in:p},contains:[{begin:n.either(...g),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:m.concat(g),literal:i,type:l}},{className:"type",begin:n.either(...a)},b,v,o,r,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,s,_]}}return Oa=t,Oa}var Ra,mh;function iBe(){if(mh)return Ra;mh=1;function t(y){return y?typeof y=="string"?y:y.source:null}function e(y){return n("(?=",y,")")}function n(...y){return y.map(T=>t(T)).join("")}function s(y){const k=y[y.length-1];return typeof k=="object"&&k.constructor===Object?(y.splice(y.length-1,1),k):{}}function o(...y){return"("+(s(y).capture?"":"?:")+y.map(L=>t(L)).join("|")+")"}const r=y=>n(/\b/,y,/\w$/.test(y)?/\b/:/\B/),i=["Protocol","Type"].map(r),a=["init","self"].map(r),l=["Any","Self"],c=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],u=["false","nil","true"],h=["assignment","associativity","higherThan","left","lowerThan","none","right"],p=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],g=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],f=o(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),m=o(f,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),v=n(f,m,"*"),_=o(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),b=o(_,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),x=n(_,b,"*"),C=n(/[A-Z]/,b,"*"),R=["autoclosure",n(/convention\(/,o("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",n(/objc\(/,x,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],O=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function D(y){const k={match:/\s+/,relevance:0},T=y.COMMENT("/\\*","\\*/",{contains:["self"]}),L=[y.C_LINE_COMMENT_MODE,T],F={match:[/\./,o(...i,...a)],className:{2:"keyword"}},Q={match:n(/\./,o(...c)),relevance:0},I=c.filter(De=>typeof De=="string").concat(["_|0"]),ae=c.filter(De=>typeof De!="string").concat(l).map(r),W={variants:[{className:"keyword",match:o(...ae,...a)}]},S={$pattern:o(/\b\w+/,/#\w+/),keyword:I.concat(p),literal:u},q=[F,Q,W],V={match:n(/\./,o(...g)),relevance:0},be={className:"built_in",match:n(/\b/,o(...g),/(?=\()/)},ge=[V,be],ee={match:/->/,relevance:0},ve={className:"operator",relevance:0,variants:[{match:v},{match:`\\.(\\.|${m})+`}]},Ee=[ee,ve],N="([0-9]_*)+",J="([0-9a-fA-F]_*)+",H={className:"number",relevance:0,variants:[{match:`\\b(${N})(\\.(${N}))?([eE][+-]?(${N}))?\\b`},{match:`\\b0x(${J})(\\.(${J}))?([pP][+-]?(${N}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},te=(De="")=>({className:"subst",variants:[{match:n(/\\/,De,/[0\\tnr"']/)},{match:n(/\\/,De,/u\{[0-9a-fA-F]{1,8}\}/)}]}),X=(De="")=>({className:"subst",match:n(/\\/,De,/[\t ]*(?:[\r\n]|\r\n)/)}),fe=(De="")=>({className:"subst",label:"interpol",begin:n(/\\/,De,/\(/),end:/\)/}),ce=(De="")=>({begin:n(De,/"""/),end:n(/"""/,De),contains:[te(De),X(De),fe(De)]}),w=(De="")=>({begin:n(De,/"/),end:n(/"/,De),contains:[te(De),fe(De)]}),E={className:"string",variants:[ce(),ce("#"),ce("##"),ce("###"),w(),w("#"),w("##"),w("###")]},P={match:n(/`/,x,/`/)},B={className:"variable",match:/\$\d+/},$={className:"variable",match:`\\$${b}+`},ne=[P,B,$],re={match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:O,contains:[...Ee,H,E]}]}},j={className:"keyword",match:n(/@/,o(...R))},se={className:"meta",match:n(/@/,x)},U=[re,j,se],Z={match:e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:n(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,b,"+")},{className:"type",match:C,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:n(/\s+&\s+/,e(C)),relevance:0}]},ie={begin://,keywords:S,contains:[...L,...q,...U,ee,Z]};Z.contains.push(ie);const de={match:n(x,/\s*:/),keywords:"_|0",relevance:0},ue={begin:/\(/,end:/\)/,relevance:0,keywords:S,contains:["self",de,...L,...q,...ge,...Ee,H,E,...ne,...U,Z]},xe={begin://,contains:[...L,Z]},K={begin:o(e(n(x,/\s*:/)),e(n(x,/\s+/,x,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:x}]},oe={begin:/\(/,end:/\)/,keywords:S,contains:[K,...L,...q,...Ee,H,E,...U,Z,ue],endsParent:!0,illegal:/["']/},pe={match:[/func/,/\s+/,o(P.match,x,v)],className:{1:"keyword",3:"title.function"},contains:[xe,oe,k],illegal:[/\[/,/%/]},Ce={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[xe,oe,k],illegal:/\[|%/},Pe={match:[/operator/,/\s+/,v],className:{1:"keyword",3:"title"}},qe={begin:[/precedencegroup/,/\s+/,C],className:{1:"keyword",3:"title"},contains:[Z],keywords:[...h,...u],end:/}/};for(const De of E.variants){const Ye=De.contains.find(it=>it.label==="interpol");Ye.keywords=S;const et=[...q,...ge,...Ee,H,E,...ne];Ye.contains=[...et,{begin:/\(/,end:/\)/,contains:["self",...et]}]}return{name:"Swift",keywords:S,contains:[...L,pe,Ce,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:S,contains:[y.inherit(y.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...q]},Pe,qe,{beginKeywords:"import",end:/$/,contains:[...L],relevance:0},...q,...ge,...Ee,H,E,...ne,...U,Z,ue]}}return Ra=D,Ra}var Na,_h;function aBe(){if(_h)return Na;_h=1;function t(e){const n="true false yes no null",s="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},i={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]},a=e.inherit(i,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l="[0-9]{4}(-[0-9][0-9]){0,2}",c="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",u="(\\.[0-9]*)?",h="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",p={className:"number",begin:"\\b"+l+c+u+h+"\\b"},g={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},f={begin:/\{/,end:/\}/,contains:[g],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[g],illegal:"\\n",relevance:0},v=[o,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+s},{className:"type",begin:"!<"+s+">"},{className:"type",begin:"!"+s},{className:"type",begin:"!!"+s},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},p,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},f,m,i],_=[...v];return _.pop(),_.push(a),g.contains=_,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}return Na=t,Na}var Da,bh;function lBe(){if(bh)return Da;bh=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],s=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],o=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],i=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(r,s,o);function l(u){const h=u.regex,p=(te,{after:X})=>{const fe="",end:""},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,v={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(te,X)=>{const fe=te[0].length+te.index,ce=te.input[fe];if(ce==="<"||ce===","){X.ignoreMatch();return}ce===">"&&(p(te,{after:fe})||X.ignoreMatch());let w;const E=te.input.substring(fe);if(w=E.match(/^\s*=/)){X.ignoreMatch();return}if((w=E.match(/^\s+extends\s+/))&&w.index===0){X.ignoreMatch();return}}},_={$pattern:t,keyword:e,literal:n,built_in:a,"variable.language":i},b="[0-9](_?[0-9])*",x=`\\.(${b})`,C="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",R={className:"number",variants:[{begin:`(\\b(${C})((${x})|\\.)?|(${x}))[eE][+-]?(${b})\\b`},{begin:`\\b(${C})\\b((${x})\\b|\\.)?|(${x})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},O={className:"subst",begin:"\\$\\{",end:"\\}",keywords:_,contains:[]},D={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,O],subLanguage:"xml"}},y={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,O],subLanguage:"css"}},k={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,O],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[u.BACKSLASH_ESCAPE,O]},F={className:"comment",variants:[u.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:g+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),u.C_BLOCK_COMMENT_MODE,u.C_LINE_COMMENT_MODE]},Q=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,D,y,k,T,{match:/\$\d+/},R];O.contains=Q.concat({begin:/\{/,end:/\}/,keywords:_,contains:["self"].concat(Q)});const I=[].concat(F,O.contains),ae=I.concat([{begin:/\(/,end:/\)/,keywords:_,contains:["self"].concat(I)}]),W={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:ae},S={variants:[{match:[/class/,/\s+/,g,/\s+/,/extends/,/\s+/,h.concat(g,"(",h.concat(/\./,g),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,g],scope:{1:"keyword",3:"title.class"}}]},q={relevance:0,match:h.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...s,...o]}},V={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},be={variants:[{match:[/function/,/\s+/,g,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[W],illegal:/%/},ge={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ee(te){return h.concat("(?!",te.join("|"),")")}const ve={match:h.concat(/\b/,ee([...r,"super","import"]),g,h.lookahead(/\(/)),className:"title.function",relevance:0},Ee={begin:h.concat(/\./,h.lookahead(h.concat(g,/(?![0-9A-Za-z$_(])/))),end:g,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},N={match:[/get|set/,/\s+/,g,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},W]},J="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",H={match:[/const|var|let/,/\s+/,g,/\s*/,/=\s*/,/(async\s*)?/,h.lookahead(J)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[W]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:_,exports:{PARAMS_CONTAINS:ae,CLASS_REFERENCE:q},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),V,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,D,y,k,T,F,{match:/\$\d+/},R,q,{className:"attr",begin:g+h.lookahead(":"),relevance:0},H,{begin:"("+u.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[F,u.REGEXP_MODE,{className:"function",begin:J,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:u.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:ae}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:f.begin,end:f.end},{match:m},{begin:v.begin,"on:begin":v.isTrulyOpeningTag,end:v.end}],subLanguage:"xml",contains:[{begin:v.begin,end:v.end,skip:!0,contains:["self"]}]}]},be,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+u.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[W,u.inherit(u.TITLE_MODE,{begin:g,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ee,{match:"\\$"+g,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[W]},ve,ge,S,N,{match:/\$[(.]/}]}}function c(u){const h=l(u),p=t,g=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],f={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[h.exports.CLASS_REFERENCE]},m={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:g},contains:[h.exports.CLASS_REFERENCE]},v={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},_=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],b={$pattern:t,keyword:e.concat(_),literal:n,built_in:a.concat(g),"variable.language":i},x={className:"meta",begin:"@"+p},C=(O,D,y)=>{const k=O.contains.findIndex(T=>T.label===D);if(k===-1)throw new Error("can not find mode to replace");O.contains.splice(k,1,y)};Object.assign(h.keywords,b),h.exports.PARAMS_CONTAINS.push(x),h.contains=h.contains.concat([x,f,m]),C(h,"shebang",u.SHEBANG()),C(h,"use_strict",v);const R=h.contains.find(O=>O.label==="func.def");return R.relevance=0,Object.assign(h,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),h}return Da=c,Da}var La,yh;function cBe(){if(yh)return La;yh=1;function t(e){const n=e.regex,s={className:"string",begin:/"(""|[^/n])"C\b/},o={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},r=/\d{1,2}\/\d{1,2}\/\d{4}/,i=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,l=/\d{1,2}(:\d{1,2}){1,2}/,c={className:"literal",variants:[{begin:n.concat(/# */,n.either(i,r),/ *#/)},{begin:n.concat(/# */,l,/ *#/)},{begin:n.concat(/# */,a,/ *#/)},{begin:n.concat(/# */,n.either(i,r),/ +/,n.either(a,l),/ *#/)}]},u={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},h={className:"label",begin:/^\w+:/},p=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),g=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[s,o,c,u,h,p,g,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[g]}]}}return La=t,La}var Ia,vh;function uBe(){if(vh)return Ia;vh=1;function t(e){e.regex;const n=e.COMMENT(/\(;/,/;\)/);n.contains.push("self");const s=e.COMMENT(/;;/,/$/),o=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],r={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},i={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},l={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},c={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},u={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:o},contains:[s,n,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},i,a,r,e.QUOTE_STRING_MODE,c,u,l]}}return Ia=t,Ia}var Oe=TFe;Oe.registerLanguage("xml",MFe());Oe.registerLanguage("bash",OFe());Oe.registerLanguage("c",RFe());Oe.registerLanguage("cpp",NFe());Oe.registerLanguage("csharp",DFe());Oe.registerLanguage("css",LFe());Oe.registerLanguage("markdown",IFe());Oe.registerLanguage("diff",PFe());Oe.registerLanguage("ruby",FFe());Oe.registerLanguage("go",BFe());Oe.registerLanguage("graphql",$Fe());Oe.registerLanguage("ini",jFe());Oe.registerLanguage("java",zFe());Oe.registerLanguage("javascript",UFe());Oe.registerLanguage("json",qFe());Oe.registerLanguage("kotlin",HFe());Oe.registerLanguage("less",VFe());Oe.registerLanguage("lua",GFe());Oe.registerLanguage("makefile",KFe());Oe.registerLanguage("perl",WFe());Oe.registerLanguage("objectivec",ZFe());Oe.registerLanguage("php",YFe());Oe.registerLanguage("php-template",QFe());Oe.registerLanguage("plaintext",JFe());Oe.registerLanguage("python",XFe());Oe.registerLanguage("python-repl",eBe());Oe.registerLanguage("r",tBe());Oe.registerLanguage("rust",nBe());Oe.registerLanguage("scss",sBe());Oe.registerLanguage("shell",oBe());Oe.registerLanguage("sql",rBe());Oe.registerLanguage("swift",iBe());Oe.registerLanguage("yaml",aBe());Oe.registerLanguage("typescript",lBe());Oe.registerLanguage("vbnet",cBe());Oe.registerLanguage("wasm",uBe());Oe.HighlightJS=Oe;Oe.default=Oe;var dBe=Oe;const lo=rs(dBe);var Rn={};Rn.getAttrs=function(t,e,n){const s=/[^\t\n\f />"'=]/,o=" ",r="=",i=".",a="#",l=[];let c="",u="",h=!0,p=!1;for(let g=e+n.leftDelimiter.length;g=s+1:u.length>=s}let r,i,a,l;const c=s-e.rightDelimiter.length;switch(t){case"start":a=n.slice(0,e.leftDelimiter.length),r=a===e.leftDelimiter?0:-1,i=r===-1?-1:n.indexOf(e.rightDelimiter,c),l=n.charAt(i+e.rightDelimiter.length),l&&e.rightDelimiter.indexOf(l)!==-1&&(i=-1);break;case"end":r=n.lastIndexOf(e.leftDelimiter),i=r===-1?-1:n.indexOf(e.rightDelimiter,r+c),i=i===n.length-e.rightDelimiter.length?i:-1;break;case"only":a=n.slice(0,e.leftDelimiter.length),r=a===e.leftDelimiter?0:-1,a=n.slice(n.length-e.rightDelimiter.length),i=a===e.rightDelimiter?n.length-e.rightDelimiter.length:-1;break;default:throw new Error(`Unexpected case ${t}, expected 'start', 'end' or 'only'`)}return r!==-1&&i!==-1&&o(n.substring(r,i+e.rightDelimiter.length))}};Rn.removeDelimiter=function(t,e){const n=hl(e.leftDelimiter),s=hl(e.rightDelimiter),o=new RegExp("[ \\n]?"+n+"[^"+n+s+"]+"+s+"$"),r=t.search(o);return r!==-1?t.slice(0,r):t};function hl(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}Rn.escapeRegExp=hl;Rn.getMatchingOpeningToken=function(t,e){if(t[e].type==="softbreak")return!1;if(t[e].nesting===0)return t[e];const n=t[e].level,s=t[e].type.replace("_close","_open");for(;e>=0;--e)if(t[e].type===s&&t[e].level===n)return t[e];return!1};const hBe=/[&<>"]/,fBe=/[&<>"]/g,pBe={"&":"&","<":"<",">":">",'"':"""};function gBe(t){return pBe[t]}Rn.escapeHtml=function(t){return hBe.test(t)?t.replace(fBe,gBe):t};const Ne=Rn;var mBe=t=>{const e=new RegExp("^ {0,3}[-*_]{3,} ?"+Ne.escapeRegExp(t.leftDelimiter)+"[^"+Ne.escapeRegExp(t.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:Ne.hasDelimiters("end",t)}],transform:(n,s)=>{const o=n[s],r=o.info.lastIndexOf(t.leftDelimiter),i=Ne.getAttrs(o.info,r,t);Ne.addAttrs(i,o),o.info=Ne.removeDelimiter(o.info,t)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:n=>n==="image"||n==="code_inline"},{shift:0,type:"text",content:Ne.hasDelimiters("start",t)}]}],transform:(n,s,o)=>{const r=n[s].children[o],i=r.content.indexOf(t.rightDelimiter),a=n[s].children[o-1],l=Ne.getAttrs(r.content,0,t);Ne.addAttrs(l,a),r.content.length===i+t.rightDelimiter.length?n[s].children.splice(o,1):r.content=r.content.slice(i+t.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Ne.hasDelimiters("only",t)}],transform:(n,s)=>{const o=n[s+2],r=Ne.getMatchingOpeningToken(n,s),i=Ne.getAttrs(o.content,0,t);Ne.addAttrs(i,r),n.splice(s+1,3)}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:Ne.hasDelimiters("start",t)}]}],transform:(n,s,o)=>{const r=n[s].children[o],i=r.content,a=Ne.getAttrs(i,0,t),l=Ne.getMatchingOpeningToken(n[s].children,o-1);Ne.addAttrs(a,l),r.content=i.slice(i.indexOf(t.rightDelimiter)+t.rightDelimiter.length)}},{name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:Ne.hasDelimiters("only",t)}]}],transform:(n,s,o)=>{const i=n[s].children[o].content,a=Ne.getAttrs(i,0,t);let l=s-2;for(;n[l-1]&&n[l-1].type!=="ordered_list_open"&&n[l-1].type!=="bullet_list_open";)l--;Ne.addAttrs(a,n[l-1]),n[s].children=n[s].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:n=>n==="bullet_list_close"||n==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Ne.hasDelimiters("only",t),children:n=>n.length===1},{shift:3,type:"paragraph_close"}],transform:(n,s)=>{const r=n[s+2].content,i=Ne.getAttrs(r,0,t),a=Ne.getMatchingOpeningToken(n,s);Ne.addAttrs(i,a),n.splice(s+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:Ne.hasDelimiters("end",t)}]}],transform:(n,s,o)=>{const r=n[s].children[o],i=r.content,a=Ne.getAttrs(i,i.lastIndexOf(t.leftDelimiter),t);Ne.addAttrs(a,n[s-2]);const l=i.slice(0,i.lastIndexOf(t.leftDelimiter));r.content=wh(l)!==" "?l:l.slice(0,-1)}},{name:` +{.a} softbreak then curly in start`,tests:[{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:Ne.hasDelimiters("only",t)}]}],transform:(n,s,o)=>{const r=n[s].children[o],i=Ne.getAttrs(r.content,0,t);let a=s+1;for(;n[a+1]&&n[a+1].nesting===-1;)a++;const l=Ne.getMatchingOpeningToken(n,a);Ne.addAttrs(i,l),n[s].children=n[s].children.slice(0,-2)}},{name:"horizontal rule",tests:[{shift:0,type:"paragraph_open"},{shift:1,type:"inline",children:n=>n.length===1,content:n=>n.match(e)!==null},{shift:2,type:"paragraph_close"}],transform:(n,s)=>{const o=n[s];o.type="hr",o.tag="hr",o.nesting=0;const r=n[s+1].content,i=r.lastIndexOf(t.leftDelimiter),a=Ne.getAttrs(r,i,t);Ne.addAttrs(a,o),o.markup=r,n.splice(s+1,2)}},{name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:Ne.hasDelimiters("end",t),type:n=>n!=="code_inline"&&n!=="math_inline"}]}],transform:(n,s,o)=>{const r=n[s].children[o],i=r.content,a=Ne.getAttrs(i,i.lastIndexOf(t.leftDelimiter),t);let l=s+1;for(;n[l+1]&&n[l+1].nesting===-1;)l++;const c=Ne.getMatchingOpeningToken(n,l);Ne.addAttrs(a,c);const u=i.slice(0,i.lastIndexOf(t.leftDelimiter));r.content=wh(u)!==" "?u:u.slice(0,-1)}}]};function wh(t){return t.slice(-1)[0]}const _Be=mBe,bBe={leftDelimiter:"{",rightDelimiter:"}",allowedAttributes:[]};var yBe=function(e,n){let s=Object.assign({},bBe);s=Object.assign(s,n);const o=_Be(s);function r(i){const a=i.tokens;for(let l=0;l{const f=fl(a,l,g);return f.j!==null&&(h=f.j),f.match})&&(u.transform(a,l,h),(u.name==="inline attributes"||u.name==="inline nesting 0")&&c--)}}e.core.ruler.before("linkify","curly_attributes",r)};function fl(t,e,n){const s={match:!1,j:null},o=n.shift!==void 0?e+n.shift:n.position;if(n.shift!==void 0&&o<0)return s;const r=xBe(t,o);if(r===void 0)return s;for(const i of Object.keys(n))if(!(i==="shift"||i==="position")){if(r[i]===void 0)return s;if(i==="children"&&vBe(n.children)){if(r.children.length===0)return s;let a;const l=n.children,c=r.children;if(l.every(u=>u.position!==void 0)){if(a=l.every(u=>fl(c,u.position,u).match),a){const u=kBe(l).position;s.j=u>=0?u:c.length+u}}else for(let u=0;ufl(c,u,h).match),a){s.j=u;break}if(a===!1)return s;continue}switch(typeof n[i]){case"boolean":case"number":case"string":if(r[i]!==n[i])return s;break;case"function":if(!n[i](r[i]))return s;break;case"object":if(wBe(n[i])){if(n[i].every(l=>l(r[i]))===!1)return s;break}default:throw new Error(`Unknown type of pattern test (key: ${i}). Test should be of type boolean, number, string, function or array of functions.`)}}return s.match=!0,s}function vBe(t){return Array.isArray(t)&&t.length&&t.every(e=>typeof e=="object")}function wBe(t){return Array.isArray(t)&&t.length&&t.every(e=>typeof e=="function")}function xBe(t,e){return e>=0?t[e]:t[t.length+e]}function kBe(t){return t.slice(-1)[0]||{}}const EBe=rs(yBe);function CBe(){const t=Date.now().toString(),e=Math.floor(Math.random()*1e3).toString();return t+e}const To=new The("commonmark",{html:!0,xhtmlOut:!0,breaks:!0,linkify:!0,typographer:!0,highlight:(t,e)=>{let n=CBe();if(e&&lo.getLanguage(e))try{const o=lo.highlight(e,t).value;return'
'+e+'
'+o+"
"}catch(o){console.error(`Syntax highlighting failed for language '${e}':`,o)}return'
'+e+'
'+lo.highlightAuto(t).value+"
"},bulletListMarker:"•"}).use(EBe).use(ps).use(IPe).use(NPe);lo.configure({languages:[]});lo.configure({languages:["javascript"]});To.renderer.rules.link_open=(t,e,n,s,o)=>{const r=t[e],i=r.attrIndex("href");if(i>=0){const a=r.attrs[i][1];r.attrs[i][1]=a,r.attrPush(["style","color: blue; font-weight: bold; text-decoration: underline;"])}return o.renderToken(t,e,n)};const Fg=(t,e,n,s,o)=>{const i=t[e].attrGet("type")||"ul";return i==="ul"?'
    '+o.renderToken(t,e,n)+"
":i==="ol"?'
    '+o.renderToken(t,e,n)+"
":o.renderToken(t,e,n)};To.renderer.rules.bullet_list_open=Fg;To.renderer.rules.ordered_list_open=Fg;const ABe={name:"MarkdownRenderer",props:{markdownText:{type:String,required:!0}},data(){return{renderedMarkdown:"",isCopied:!1}},mounted(){const t=document.createElement("script");t.textContent=` // Your inline script code here console.log('Inline script executed!'); @@ -118,7 +118,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ge=S,be=q),V===void 0& document.execCommand('copy'); window.getSelection().removeAllRanges(); } - `,t.async=!0,document.body.appendChild(t),this.renderedMarkdown=To.render(this.markdownText),_e(()=>{ye.replace()})},methods:{},watch:{markdownText(t){this.renderedMarkdown=To.render(t),_e(()=>{ye.replace()})}}},EBe={class:"break-all"},CBe=["innerHTML"];function ABe(t,e,n,s,o,r){return A(),M("div",EBe,[u("div",{innerHTML:o.renderedMarkdown,class:"markdown-content"},null,8,CBe)])}const SBe=Ge(kBe,[["render",ABe]]),TBe={props:{done:{type:Boolean,required:!0},message:{type:String,required:!0}}},MBe={class:"step flex items-center mb-4"},OBe={class:"flex items-center justify-center w-6 h-6 rounded border border-gray-300 mr-2"},RBe={key:0},NBe=u("i",{"data-feather":"square",class:"text-gray-400 w-4 h-4"},null,-1),DBe=[NBe],LBe={key:1},IBe=u("i",{"data-feather":"check-square",class:"text-green-500 w-4 h-4"},null,-1),PBe=[IBe],FBe={key:0,class:"loader w-6 h-6 border-t-4 border-b-4 border-blue-500 rounded-full animate-spin ml-2"};function BBe(t,e,n,s,o,r){return A(),M("div",MBe,[u("div",OBe,[n.done?j("",!0):(A(),M("div",RBe,DBe)),n.done?(A(),M("div",LBe,PBe)):j("",!0)]),u("div",{class:Te(["content flex-1",{"text-green-500":n.done,"text-yellow-500":!n.done}])},Y(n.message),3),n.done?j("",!0):(A(),M("div",FBe))])}const $Be=Ge(TBe,[["render",BBe]]);const zBe="/",jBe={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:SBe,Step:$Be},props:{message:Object,avatar:""},data(){return{expanded:!1,new_message_content:"",showConfirmation:!1,editMsgMode:!1,deleteMsgMode:!1,mdRenderHeight:Number}},mounted(){console.log("Mounted message"),console.log(this.message),this.new_message_content=this.message.content,_e(()=>{ye.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight})},methods:{toggleModel(){this.expanded=!this.expanded},copyContentToClipboard(){this.$emit("copy",this)},deleteMsg(){this.$emit("delete",this.message.id),this.deleteMsgMode=!1},rankUp(){this.$emit("rankUp",this.message.id)},rankDown(){this.$emit("rankDown",this.message.id)},updateMessage(){this.$emit("updateMessage",this.message.id,this.new_message_content),this.editMsgMode=!1},resendMessage(){this.$emit("resendMessage",this.message.id,this.new_message_content)},continueMessage(){this.$emit("continueMessage",this.message.id,this.new_message_content)},getImgUrl(){return this.message.sender=="user"?this.avatar?this.avatar:Yw:this.avatar?zBe+this.avatar:Jn},defaultImg(t){t.target.src=Jn},parseDate(t){let e=new Date(Date.parse(t)),s=Math.floor((new Date-e)/1e3);return s<=1?"just now":s<20?s+" seconds ago":s<40?"half a minute ago":s<60?"less than a minute ago":s<=90?"one minute ago":s<=3540?Math.round(s/60)+" minutes ago":s<=5400?"1 hour ago":s<=86400?Math.round(s/3600)+" hours ago":s<=129600?"1 day ago":s<604800?Math.round(s/86400)+" days ago":s<=777600?"1 week ago":t},prettyDate(t){let e=new Date((t||"").replace(/-/g,"/").replace(/[TZ]/g," ")),n=(new Date().getTime()-e.getTime())/1e3,s=Math.floor(n/86400);if(!(isNaN(s)||s<0||s>=31))return s==0&&(n<60&&"just now"||n<120&&"1 minute ago"||n<3600&&Math.floor(n/60)+" minutes ago"||n<7200&&"1 hour ago"||n<86400&&Math.floor(n/3600)+" hours ago")||s==1&&"Yesterday"||s<7&&s+" days ago"||s<31&&Math.ceil(s/7)+" weeks ago"}},watch:{showConfirmation(){_e(()=>{ye.replace()})},editMsgMode(t){t||(this.new_message_content=this.message.content),_e(()=>{ye.replace()})},deleteMsgMode(){_e(()=>{ye.replace()})}},computed:{created_at(){return this.prettyDate(this.message.created_at)},created_at_parsed(){return new Date(Date.parse(this.message.created_at)).toLocaleString()},finished_generating_at_parsed(){return new Date(Date.parse(this.message.finished_generating_at)).toLocaleString()},time_spent(){const t=new Date(Date.parse(this.message.created_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===t.getTime()||!e.getTime())return;let s=e.getTime()-t.getTime();const o=Math.floor(s/(1e3*60*60));s-=o*(1e3*60*60);const r=Math.floor(s/(1e3*60));s-=r*(1e3*60);const i=Math.floor(s/1e3);s-=i*1e3;function a(c){return c<10&&(c="0"+c),c}return a(o)+"h:"+a(r)+"m:"+a(i)+"s"}}},UBe={class:"relative group rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex flex-col flex-grow flex-wrap overflow-visible p-4 pb-2"},qBe={class:"flex flex-row gap-2"},HBe={class:"flex-shrink-0"},VBe={class:"group/avatar"},GBe=["src","data-popover-target"],KBe={class:"flex flex-col w-full flex-grow-0"},WBe={class:"flex flex-row flex-grow items-start"},ZBe={class:"flex flex-col mb-2"},YBe={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},QBe=["title"],JBe=u("div",{class:"flex-grow"},null,-1),XBe={class:"flex-row justify-end mx-2"},e$e={class:"invisible group-hover:visible flex flex-row"},t$e={key:0,class:"flex items-center duration-75"},n$e=u("i",{"data-feather":"x"},null,-1),s$e=[n$e],o$e=u("i",{"data-feather":"check"},null,-1),r$e=[o$e],i$e=u("i",{"data-feather":"edit"},null,-1),a$e=[i$e],l$e=u("i",{"data-feather":"copy"},null,-1),c$e=[l$e],d$e=u("i",{"data-feather":"refresh-cw"},null,-1),u$e=[d$e],f$e=u("i",{"data-feather":"fast-forward"},null,-1),h$e=[f$e],p$e={key:4,class:"flex items-center duration-75"},g$e=u("i",{"data-feather":"x"},null,-1),m$e=[g$e],_$e=u("i",{"data-feather":"check"},null,-1),b$e=[_$e],y$e=u("i",{"data-feather":"trash"},null,-1),v$e=[y$e],w$e=u("i",{"data-feather":"thumbs-up"},null,-1),x$e=[w$e],k$e={class:"flex flex-row items-center"},E$e=u("i",{"data-feather":"thumbs-down"},null,-1),C$e=[E$e],A$e={class:"overflow-x-auto w-full"},S$e={class:"flex flex-col items-start w-full"},T$e={class:"text-sm text-gray-400 mt-2"},M$e={class:"flex flex-row items-center gap-2"},O$e={key:0},R$e={class:"font-thin"},N$e={key:1},D$e={class:"font-thin"},L$e={key:2},I$e={class:"font-thin"},P$e={key:3},F$e=["title"];function B$e(t,e,n,s,o,r){const i=lt("Step"),a=lt("MarkdownRenderer");return A(),M("div",UBe,[u("div",qBe,[u("div",HBe,[u("div",VBe,[u("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=l=>r.defaultImg(l)),"data-popover-target":"avatar"+n.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,GBe)])]),u("div",KBe,[u("div",WBe,[u("div",ZBe,[u("div",YBe,Y(n.message.sender)+" ",1),n.message.created_at?(A(),M("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+r.created_at_parsed},Y(r.created_at),9,QBe)):j("",!0)]),JBe,u("div",XBe,[u("div",e$e,[o.editMsgMode?(A(),M("div",t$e,[u("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2",title:"Cancel edit",type:"button",onClick:e[1]||(e[1]=le(l=>o.editMsgMode=!1,["stop"]))},s$e),u("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2",title:"Update message",type:"button",onClick:e[2]||(e[2]=le((...l)=>r.updateMessage&&r.updateMessage(...l),["stop"]))},r$e)])):j("",!0),o.editMsgMode?j("",!0):(A(),M("div",{key:1,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Edit message",onClick:e[3]||(e[3]=le(l=>o.editMsgMode=!0,["stop"]))},a$e)),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Copy message to clipboard",onClick:e[4]||(e[4]=le(l=>r.copyContentToClipboard(),["stop"]))},c$e),n.message.sender!=this.$store.state.mountedPers.name?(A(),M("div",{key:2,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Resend message",onClick:e[5]||(e[5]=le(l=>r.resendMessage(),["stop"]))},u$e)):j("",!0),n.message.sender==this.$store.state.mountedPers.name?(A(),M("div",{key:3,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Resend message",onClick:e[6]||(e[6]=le(l=>r.continueMessage(),["stop"]))},h$e)):j("",!0),o.deleteMsgMode?(A(),M("div",p$e,[u("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2",title:"Cancel removal",type:"button",onClick:e[7]||(e[7]=le(l=>o.deleteMsgMode=!1,["stop"]))},m$e),u("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2",title:"Confirm removal",type:"button",onClick:e[8]||(e[8]=le(l=>r.deleteMsg(),["stop"]))},b$e)])):j("",!0),o.deleteMsgMode?j("",!0):(A(),M("div",{key:5,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2",title:"Remove message",onClick:e[9]||(e[9]=l=>o.deleteMsgMode=!0)},v$e)),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Upvote",onClick:e[10]||(e[10]=le(l=>r.rankUp(),["stop"]))},x$e),u("div",k$e,[u("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2",title:"Downvote",onClick:e[11]||(e[11]=le(l=>r.rankDown(),["stop"]))},C$e),n.message.rank!=0?(A(),M("div",{key:0,class:Te(["rounded-full px-2 text-sm flex items-center justify-center font-bold",n.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},Y(n.message.rank),3)):j("",!0)])])])]),u("div",A$e,[u("div",S$e,[(A(!0),M(Le,null,Qe(n.message.steps,(l,c)=>(A(),M("div",{key:"step-"+n.message.id+"-"+c,class:"step font-bold",style:jt({backgroundColor:l.done?"transparent":"inherit"})},[Ae(i,{done:l.done,message:l.message},null,8,["done","message"])],4))),128))]),o.editMsgMode?j("",!0):(A(),ot(a,{key:0,ref:"mdRender","markdown-text":n.message.content},null,8,["markdown-text"])),o.editMsgMode?me((A(),M("textarea",{key:1,ref:"mdTextarea",rows:4,class:"block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",style:jt({minHeight:o.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[12]||(e[12]=l=>o.new_message_content=l)},null,4)),[[Re,o.new_message_content]]):j("",!0)]),u("div",T$e,[u("div",M$e,[n.message.binding?(A(),M("p",O$e,[we("Binding: "),u("span",R$e,Y(n.message.binding),1)])):j("",!0),n.message.model?(A(),M("p",N$e,[we("Model: "),u("span",D$e,Y(n.message.model),1)])):j("",!0),n.message.seed?(A(),M("p",L$e,[we("Seed: "),u("span",I$e,Y(n.message.seed),1)])):j("",!0),r.time_spent?(A(),M("p",P$e,[we("Time spent: "),u("span",{class:"font-thin",title:"Finished generating: "+r.finished_generating_at_parsed},Y(r.time_spent),9,F$e)])):j("",!0)])])])])])}const Bg=Ge(jBe,[["render",B$e]]),$$e="/";Se.defaults.baseURL="/";const z$e={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},data(){return{bUrl:$$e,isMounted:!1,show:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(t){this.$store.commit("setConfig",t)}},mountedPers:{get(){return this.$store.state.mountedPers},set(t){this.$store.commit("setMountedPers",t)}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}}},methods:{toggleShowPersList(){this.onShowPersList()},async constructor(){for(_e(()=>{ye.replace()});this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));this.onReady()},async api_get_req(t){try{const e=await Se.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=Jn}}},j$e={class:"w-fit select-none"},U$e={key:0,class:"flex -space-x-4"},q$e=["src","title"],H$e={key:1,class:"flex -space-x-4"},V$e=["src","title"],G$e={key:2,title:"Loading personalities"},K$e=u("div",{role:"status"},[u("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),u("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),u("span",{class:"sr-only"},"Loading...")],-1),W$e=[K$e];function Z$e(t,e,n,s,o,r){return A(),M("div",j$e,[r.mountedPersArr.length>1?(A(),M("div",U$e,[u("img",{src:o.bUrl+r.mountedPers.avatar,onError:e[0]||(e[0]=(...i)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...i)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-secondary cursor-pointer",title:"Active personality: "+r.mountedPers.name},null,40,q$e),u("div",{class:"flex items-center justify-center w-8 h-8 cursor-pointer text-xs font-medium bg-bg-light dark:bg-bg-dark border-2 hover:border-secondary rounded-full hover:bg-bg-light-tone dark:hover:bg-bg-dark-tone dark:border-gray-800 hover:z-20 hover:-translate-y-2 duration-150 active:scale-90",onClick:e[1]||(e[1]=le((...i)=>r.toggleShowPersList&&r.toggleShowPersList(...i),["stop"])),title:"Click to show more"},"+"+Y(r.mountedPersArr.length-1),1)])):j("",!0),r.mountedPersArr.length==1?(A(),M("div",H$e,[u("img",{src:o.bUrl+this.$store.state.mountedPers.avatar,onError:e[2]||(e[2]=(...i)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...i)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:z-20 cursor-pointer border-secondary",title:"Active personality: "+this.$store.state.mountedPers.name,onClick:e[3]||(e[3]=le((...i)=>r.toggleShowPersList&&r.toggleShowPersList(...i),["stop"]))},null,40,V$e)])):j("",!0),r.mountedPersArr.length==0?(A(),M("div",G$e,W$e)):j("",!0)])}const Y$e=Ge(z$e,[["render",Z$e]]);const Q$e="/";Se.defaults.baseURL="/";const J$e={props:{onTalk:Function,onMountUnmount:Function,discussionPersonalities:Array,onShowPersList:Function},components:{PersonalityEntry:Pp,Toast:ii,UniversalForm:Xp},name:"MountedPersonalitiesList",data(){return{bUrl:Q$e,isMounted:!1,isLoading:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(t){this.$store.commit("setConfig",t)}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}}},methods:{toggleShowPersList(){this.onShowPersList()},toggleMountUnmount(){this.onMountUnmount(this)},async constructor(){},async api_get_req(t){try{const e=await Se.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=Jn},onPersonalityReinstall(t){console.log("on reinstall ",t),this.isLoading=!0,Se.post("/reinstall_personality",{name:t.personality.full_path}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$refs.toast.showToast("Personality reinstalled successfully!",4,!0):this.$refs.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$refs.toast.showToast(`Could not reinstall personality + `,t.async=!0,document.body.appendChild(t),this.renderedMarkdown=To.render(this.markdownText),_e(()=>{ye.replace()})},methods:{},watch:{markdownText(t){this.renderedMarkdown=To.render(t),_e(()=>{ye.replace()})}}},SBe={class:"break-all"},TBe=["innerHTML"];function MBe(t,e,n,s,o,r){return A(),M("div",SBe,[d("div",{innerHTML:o.renderedMarkdown,class:"markdown-content"},null,8,TBe)])}const OBe=Ge(ABe,[["render",MBe]]),RBe={props:{done:{type:Boolean,required:!0},message:{type:String,required:!0}}},NBe={class:"step flex items-center mb-4"},DBe={class:"flex items-center justify-center w-6 h-6 rounded border border-gray-300 mr-2"},LBe={key:0},IBe=d("i",{"data-feather":"square",class:"text-gray-400 w-4 h-4"},null,-1),PBe=[IBe],FBe={key:1},BBe=d("i",{"data-feather":"check-square",class:"text-green-500 w-4 h-4"},null,-1),$Be=[BBe],jBe={key:0,class:"loader w-6 h-6 border-t-4 border-b-4 border-blue-500 rounded-full animate-spin ml-2"};function zBe(t,e,n,s,o,r){return A(),M("div",NBe,[d("div",DBe,[n.done?z("",!0):(A(),M("div",LBe,PBe)),n.done?(A(),M("div",FBe,$Be)):z("",!0)]),d("div",{class:Te(["content flex-1",{"text-green-500":n.done,"text-yellow-500":!n.done}])},Y(n.message),3),n.done?z("",!0):(A(),M("div",jBe))])}const UBe=Ge(RBe,[["render",zBe]]);const qBe="/",HBe={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:OBe,Step:UBe},props:{message:Object,avatar:""},data(){return{expanded:!1,new_message_content:"",showConfirmation:!1,editMsgMode:!1,deleteMsgMode:!1,mdRenderHeight:Number}},mounted(){console.log("Mounted message"),console.log(this.message),this.new_message_content=this.message.content,_e(()=>{ye.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight})},methods:{toggleModel(){this.expanded=!this.expanded},copyContentToClipboard(){this.$emit("copy",this)},deleteMsg(){this.$emit("delete",this.message.id),this.deleteMsgMode=!1},rankUp(){this.$emit("rankUp",this.message.id)},rankDown(){this.$emit("rankDown",this.message.id)},updateMessage(){this.$emit("updateMessage",this.message.id,this.new_message_content),this.editMsgMode=!1},resendMessage(){this.$emit("resendMessage",this.message.id,this.new_message_content)},continueMessage(){this.$emit("continueMessage",this.message.id,this.new_message_content)},getImgUrl(){return this.message.sender=="user"?this.avatar?this.avatar:Yw:this.avatar?qBe+this.avatar:Jn},defaultImg(t){t.target.src=Jn},parseDate(t){let e=new Date(Date.parse(t)),s=Math.floor((new Date-e)/1e3);return s<=1?"just now":s<20?s+" seconds ago":s<40?"half a minute ago":s<60?"less than a minute ago":s<=90?"one minute ago":s<=3540?Math.round(s/60)+" minutes ago":s<=5400?"1 hour ago":s<=86400?Math.round(s/3600)+" hours ago":s<=129600?"1 day ago":s<604800?Math.round(s/86400)+" days ago":s<=777600?"1 week ago":t},prettyDate(t){let e=new Date((t||"").replace(/-/g,"/").replace(/[TZ]/g," ")),n=(new Date().getTime()-e.getTime())/1e3,s=Math.floor(n/86400);if(!(isNaN(s)||s<0||s>=31))return s==0&&(n<60&&"just now"||n<120&&"1 minute ago"||n<3600&&Math.floor(n/60)+" minutes ago"||n<7200&&"1 hour ago"||n<86400&&Math.floor(n/3600)+" hours ago")||s==1&&"Yesterday"||s<7&&s+" days ago"||s<31&&Math.ceil(s/7)+" weeks ago"}},watch:{showConfirmation(){_e(()=>{ye.replace()})},editMsgMode(t){t||(this.new_message_content=this.message.content),_e(()=>{ye.replace()})},deleteMsgMode(){_e(()=>{ye.replace()})}},computed:{created_at(){return this.prettyDate(this.message.created_at)},created_at_parsed(){return new Date(Date.parse(this.message.created_at)).toLocaleString()},finished_generating_at_parsed(){return new Date(Date.parse(this.message.finished_generating_at)).toLocaleString()},time_spent(){const t=new Date(Date.parse(this.message.created_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===t.getTime()||!e.getTime())return;let s=e.getTime()-t.getTime();const o=Math.floor(s/(1e3*60*60));s-=o*(1e3*60*60);const r=Math.floor(s/(1e3*60));s-=r*(1e3*60);const i=Math.floor(s/1e3);s-=i*1e3;function a(c){return c<10&&(c="0"+c),c}return a(o)+"h:"+a(r)+"m:"+a(i)+"s"}}},VBe={class:"relative group rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex flex-col flex-grow flex-wrap overflow-visible p-4 pb-2"},GBe={class:"flex flex-row gap-2"},KBe={class:"flex-shrink-0"},WBe={class:"group/avatar"},ZBe=["src","data-popover-target"],YBe={class:"flex flex-col w-full flex-grow-0"},QBe={class:"flex flex-row flex-grow items-start"},JBe={class:"flex flex-col mb-2"},XBe={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},e$e=["title"],t$e=d("div",{class:"flex-grow"},null,-1),n$e={class:"flex-row justify-end mx-2"},s$e={class:"invisible group-hover:visible flex flex-row"},o$e={key:0,class:"flex items-center duration-75"},r$e=d("i",{"data-feather":"x"},null,-1),i$e=[r$e],a$e=d("i",{"data-feather":"check"},null,-1),l$e=[a$e],c$e=d("i",{"data-feather":"edit"},null,-1),u$e=[c$e],d$e=d("i",{"data-feather":"copy"},null,-1),h$e=[d$e],f$e=d("i",{"data-feather":"refresh-cw"},null,-1),p$e=[f$e],g$e=d("i",{"data-feather":"fast-forward"},null,-1),m$e=[g$e],_$e={key:4,class:"flex items-center duration-75"},b$e=d("i",{"data-feather":"x"},null,-1),y$e=[b$e],v$e=d("i",{"data-feather":"check"},null,-1),w$e=[v$e],x$e=d("i",{"data-feather":"trash"},null,-1),k$e=[x$e],E$e=d("i",{"data-feather":"thumbs-up"},null,-1),C$e=[E$e],A$e={class:"flex flex-row items-center"},S$e=d("i",{"data-feather":"thumbs-down"},null,-1),T$e=[S$e],M$e={class:"overflow-x-auto w-full"},O$e={class:"flex flex-col items-start w-full"},R$e={class:"text-sm text-gray-400 mt-2"},N$e={class:"flex flex-row items-center gap-2"},D$e={key:0},L$e={class:"font-thin"},I$e={key:1},P$e={class:"font-thin"},F$e={key:2},B$e={class:"font-thin"},$$e={key:3},j$e=["title"];function z$e(t,e,n,s,o,r){const i=lt("Step"),a=lt("MarkdownRenderer");return A(),M("div",VBe,[d("div",GBe,[d("div",KBe,[d("div",WBe,[d("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=l=>r.defaultImg(l)),"data-popover-target":"avatar"+n.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,ZBe)])]),d("div",YBe,[d("div",QBe,[d("div",JBe,[d("div",XBe,Y(n.message.sender)+" ",1),n.message.created_at?(A(),M("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+r.created_at_parsed},Y(r.created_at),9,e$e)):z("",!0)]),t$e,d("div",n$e,[d("div",s$e,[o.editMsgMode?(A(),M("div",o$e,[d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2",title:"Cancel edit",type:"button",onClick:e[1]||(e[1]=le(l=>o.editMsgMode=!1,["stop"]))},i$e),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2",title:"Update message",type:"button",onClick:e[2]||(e[2]=le((...l)=>r.updateMessage&&r.updateMessage(...l),["stop"]))},l$e)])):z("",!0),o.editMsgMode?z("",!0):(A(),M("div",{key:1,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Edit message",onClick:e[3]||(e[3]=le(l=>o.editMsgMode=!0,["stop"]))},u$e)),d("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Copy message to clipboard",onClick:e[4]||(e[4]=le(l=>r.copyContentToClipboard(),["stop"]))},h$e),n.message.sender!=this.$store.state.mountedPers.name?(A(),M("div",{key:2,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Resend message",onClick:e[5]||(e[5]=le(l=>r.resendMessage(),["stop"]))},p$e)):z("",!0),n.message.sender==this.$store.state.mountedPers.name?(A(),M("div",{key:3,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Resend message",onClick:e[6]||(e[6]=le(l=>r.continueMessage(),["stop"]))},m$e)):z("",!0),o.deleteMsgMode?(A(),M("div",_$e,[d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2",title:"Cancel removal",type:"button",onClick:e[7]||(e[7]=le(l=>o.deleteMsgMode=!1,["stop"]))},y$e),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2",title:"Confirm removal",type:"button",onClick:e[8]||(e[8]=le(l=>r.deleteMsg(),["stop"]))},w$e)])):z("",!0),o.deleteMsgMode?z("",!0):(A(),M("div",{key:5,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2",title:"Remove message",onClick:e[9]||(e[9]=l=>o.deleteMsgMode=!0)},k$e)),d("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Upvote",onClick:e[10]||(e[10]=le(l=>r.rankUp(),["stop"]))},C$e),d("div",A$e,[d("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2",title:"Downvote",onClick:e[11]||(e[11]=le(l=>r.rankDown(),["stop"]))},T$e),n.message.rank!=0?(A(),M("div",{key:0,class:Te(["rounded-full px-2 text-sm flex items-center justify-center font-bold",n.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},Y(n.message.rank),3)):z("",!0)])])])]),d("div",M$e,[d("div",O$e,[(A(!0),M(Le,null,Qe(n.message.steps,(l,c)=>(A(),M("div",{key:"step-"+n.message.id+"-"+c,class:"step font-bold",style:zt({backgroundColor:l.done?"transparent":"inherit"})},[Ae(i,{done:l.done,message:l.message},null,8,["done","message"])],4))),128))]),o.editMsgMode?z("",!0):(A(),ot(a,{key:0,ref:"mdRender","markdown-text":n.message.content},null,8,["markdown-text"])),o.editMsgMode?me((A(),M("textarea",{key:1,ref:"mdTextarea",rows:4,class:"block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",style:zt({minHeight:o.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[12]||(e[12]=l=>o.new_message_content=l)},null,4)),[[Re,o.new_message_content]]):z("",!0)]),d("div",R$e,[d("div",N$e,[n.message.binding?(A(),M("p",D$e,[we("Binding: "),d("span",L$e,Y(n.message.binding),1)])):z("",!0),n.message.model?(A(),M("p",I$e,[we("Model: "),d("span",P$e,Y(n.message.model),1)])):z("",!0),n.message.seed?(A(),M("p",F$e,[we("Seed: "),d("span",B$e,Y(n.message.seed),1)])):z("",!0),r.time_spent?(A(),M("p",$$e,[we("Time spent: "),d("span",{class:"font-thin",title:"Finished generating: "+r.finished_generating_at_parsed},Y(r.time_spent),9,j$e)])):z("",!0)])])])])])}const Bg=Ge(HBe,[["render",z$e]]),U$e="/";Se.defaults.baseURL="/";const q$e={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},data(){return{bUrl:U$e,isMounted:!1,show:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(t){this.$store.commit("setConfig",t)}},mountedPers:{get(){return this.$store.state.mountedPers},set(t){this.$store.commit("setMountedPers",t)}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}}},methods:{toggleShowPersList(){this.onShowPersList()},async constructor(){for(_e(()=>{ye.replace()});this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));this.onReady()},async api_get_req(t){try{const e=await Se.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=Jn}}},H$e={class:"w-fit select-none"},V$e={key:0,class:"flex -space-x-4"},G$e=["src","title"],K$e={key:1,class:"flex -space-x-4"},W$e=["src","title"],Z$e={key:2,title:"Loading personalities"},Y$e=d("div",{role:"status"},[d("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[d("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),d("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),d("span",{class:"sr-only"},"Loading...")],-1),Q$e=[Y$e];function J$e(t,e,n,s,o,r){return A(),M("div",H$e,[r.mountedPersArr.length>1?(A(),M("div",V$e,[d("img",{src:o.bUrl+r.mountedPers.avatar,onError:e[0]||(e[0]=(...i)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...i)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-secondary cursor-pointer",title:"Active personality: "+r.mountedPers.name},null,40,G$e),d("div",{class:"flex items-center justify-center w-8 h-8 cursor-pointer text-xs font-medium bg-bg-light dark:bg-bg-dark border-2 hover:border-secondary rounded-full hover:bg-bg-light-tone dark:hover:bg-bg-dark-tone dark:border-gray-800 hover:z-20 hover:-translate-y-2 duration-150 active:scale-90",onClick:e[1]||(e[1]=le((...i)=>r.toggleShowPersList&&r.toggleShowPersList(...i),["stop"])),title:"Click to show more"},"+"+Y(r.mountedPersArr.length-1),1)])):z("",!0),r.mountedPersArr.length==1?(A(),M("div",K$e,[d("img",{src:o.bUrl+this.$store.state.mountedPers.avatar,onError:e[2]||(e[2]=(...i)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...i)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:z-20 cursor-pointer border-secondary",title:"Active personality: "+this.$store.state.mountedPers.name,onClick:e[3]||(e[3]=le((...i)=>r.toggleShowPersList&&r.toggleShowPersList(...i),["stop"]))},null,40,W$e)])):z("",!0),r.mountedPersArr.length==0?(A(),M("div",Z$e,Q$e)):z("",!0)])}const X$e=Ge(q$e,[["render",J$e]]);const eje="/";Se.defaults.baseURL="/";const tje={props:{onTalk:Function,onMountUnmount:Function,discussionPersonalities:Array,onShowPersList:Function},components:{PersonalityEntry:Pp,Toast:ii,UniversalForm:Xp},name:"MountedPersonalitiesList",data(){return{bUrl:eje,isMounted:!1,isLoading:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(t){this.$store.commit("setConfig",t)}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}}},methods:{toggleShowPersList(){this.onShowPersList()},toggleMountUnmount(){this.onMountUnmount(this)},async constructor(){},async api_get_req(t){try{const e=await Se.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=Jn},onPersonalityReinstall(t){console.log("on reinstall ",t),this.isLoading=!0,Se.post("/reinstall_personality",{name:t.personality.full_path}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$refs.toast.showToast("Personality reinstalled successfully!",4,!0):this.$refs.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$refs.toast.showToast(`Could not reinstall personality `+e.message,4,!1),{status:!1}))},onPersonalityMounted(t){this.configFile.personalities.includes(t.full_path)?this.configFile.personalities.length==1?this.$refs.toast.showToast("Can't unmount last personality",4,!1):this.unmountPersonality(t):this.mountPersonality(t)},async handleOnTalk(t){if(ye.replace(),console.log("ppa",t),t){if(t.isMounted){const e=await this.select_personality(t);e&&e.status&&(await this.constructor(),this.$refs.toast.showToast(`Selected personality: `+t.name,4,!0))}else this.onPersonalityMounted(t);this.onTalk(t)}},async onPersonalitySelected(t){if(ye.replace(),console.log("ppa",t),t){if(t.selected){this.$refs.toast.showToast("Personality already selected",4,!0);return}if(t.isMounted){const e=await this.select_personality(t);e&&e.status&&(await this.constructor(),this.$refs.toast.showToast(`Selected personality: `+t.name,4,!0))}else this.onPersonalityMounted(t)}},onSettingsPersonality(t){try{Se.get("/get_active_personality_settings").then(e=>{e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+t.personality.name,"Save changes","Cancel").then(n=>{try{Se.post("/set_active_personality_settings",n).then(s=>{s&&s.data?(console.log("personality set with new settings",s.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses. @@ -127,10 +127,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ge=S,be=q),V===void 0& `+t.personality.name,4,!0),this.getMountedPersonalities()):(t.isMounted=!1,this.$refs.toast.showToast(`Could not mount personality Error: `+e.error,4,!1))},async unmountPersonality(t){if(!t)return;const e=await this.unmount_personality(t.personality||t);if(e.status){this.toggleMountUnmount(),console.log("unmount response",e),this.configFile.active_personality_id=e.active_personality_id,this.configFile.personalities=e.personalities,this.$refs.toast.showToast("Personality unmounted",4,!0);const n=this.configFile.personalities[this.configFile.active_personality_id];console.log();const s=this.personalities.findIndex(a=>a.full_path==n),o=this.$refs.personalitiesZoo.findIndex(a=>a.full_path==t.full_path);console.log("ppp",this.personalities[s]);const r=this.personalities[s];r.isMounted=!1,r.selected=!0,this.$refs.personalitiesZoo[o].isMounted=!1,this.getMountedPersonalities(),(await this.select_personality(r)).status&&this.$refs.toast.showToast(`Selected personality: `+r.name,4,!0)}else this.$refs.toast.showToast(`Could not unmount personality -Error: `+e.error,4,!1)},getMountedPersonalities(){this.isLoading=!0;let t=[];console.log(this.configFile.personalities.length);for(let e=0;er.full_path==n),o=this.personalities[s];if(o)console.log("adding from config"),t.push(o);else{console.log("adding default");const r=this.personalities.findIndex(a=>a.full_path=="english/generic/lollms"),i=this.personalities[r];t.push(i)}}if(this.mountedPersArr=[],this.mountedPersArr=t,console.log("discussionPersonalities",this.discussionPersonalities),this.discussionPersonalities!=null&&this.discussionPersonalities.length>0)for(let e=0;eo.full_path==n);if(console.log("discussionPersonalities -includes",s),console.log("discussionPersonalities -mounted list",this.mountedPersArr),s==-1){const o=this.personalities.findIndex(i=>i.full_path==n),r=this.personalities[o];console.log("adding discucc121",r,n),r&&(this.mountedPersArr.push(r),console.log("adding discucc",r))}}this.isLoading=!1,console.log("getMountedPersonalities",this.mountedPersArr),console.log("fig",this.configFile)}}},mc=t=>(ns("data-v-e36401c9"),t=t(),ss(),t),X$e={class:"text-left overflow-visible text-base font-semibold cursor-pointer select-none items-center flex flex-col flex-grow w-full overflow-x-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},eze={key:0,role:"status",class:"flex justify-center overflow-y-hidden"},tze=mc(()=>u("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),u("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),nze=mc(()=>u("span",{class:"sr-only"},"Loading...",-1)),sze=[tze,nze],oze=mc(()=>u("i",{"data-feather":"chevron-down"},null,-1)),rze=[oze],ize={class:"block my-2 text-sm font-medium text-gray-900 dark:text-white"},aze={class:"overflow-y-auto no-scrollbar pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 max-h-96"};function lze(t,e,n,s,o,r){const i=lt("personality-entry"),a=lt("Toast"),l=lt("UniversalForm");return A(),M("div",X$e,[o.isLoading?(A(),M("div",eze,sze)):j("",!0),u("div",null,[r.mountedPersArr.length>0?(A(),M("div",{key:0,class:Te(o.isLoading?"pointer-events-none opacity-30 cursor-default":"")},[u("button",{class:"mt-0 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Close personality list",type:"button",onClick:e[0]||(e[0]=le((...c)=>r.toggleShowPersList&&r.toggleShowPersList(...c),["stop"]))},rze),u("label",ize," Mounted Personalities: ("+Y(r.mountedPersArr.length)+") ",1),u("div",aze,[Ae(Ut,{name:"bounce"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(this.$store.state.mountedPersArr,(c,d)=>(A(),ot(i,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+d+"-"+c.name,personality:c,full_path:c.full_path,selected:r.configFile.personalities[r.configFile.active_personality_id]===c.full_path,"on-selected":r.onPersonalitySelected,"on-mounted":r.onPersonalityMounted,"on-settings":r.onSettingsPersonality,"on-reinstall":r.onPersonalityReinstall,"on-talk":r.handleOnTalk},null,8,["personality","full_path","selected","on-selected","on-mounted","on-settings","on-reinstall","on-talk"]))),128))]),_:1})])],2)):j("",!0)]),Ae(a,{ref:"toast"},null,512),Ae(l,{ref:"universalForm",class:"z-20"},null,512)])}const cze=Ge(J$e,[["render",lze],["__scopeId","data-v-e36401c9"]]);const dze={props:{commandsList:{type:Array,required:!0},sendCommand:Function,onShowToastMessage:Function},data(){return{loading:!1,selectedFile:null,showMenu:!1,showHelpText:!1,helpText:"",commands:[]}},async mounted(){nextTick(()=>{ye.replace()})},methods:{selectFile(t){const e=document.createElement("input");e.type="file",e.accept="application/pdf",e.onchange=n=>{this.selectedFile=n.target.files[0],console.log("File selected"),t()},e.click()},uploadFile(){const t=new FormData;t.append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0,Se.post("/send_file",t).then(e=>{this.loading=!1,console.log(e.data),this.onShowToastMessage("File uploaded successfully")}).catch(e=>{console.error(e)})},async constructor(){nextTick(()=>{ye.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(t){this.showMenu=!this.showMenu,t.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(t.value)},handleClickOutside(t){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(t.target)&&(this.showMenu=!1)}},mounted(){this.commands=this.commandsList,document.addEventListener("click",this.handleClickOutside)},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},$g=t=>(ns("data-v-cc26f52a"),t=t(),ss(),t),uze={class:"menu relative"},fze={class:"commands-menu-items-wrapper"},hze=$g(()=>u("i",{"data-feather":"command",class:"w-5 h-5"},null,-1)),pze=[hze],gze={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"},mze=$g(()=>u("div",{role:"status"},[u("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),u("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),u("span",{class:"sr-only"},"Loading...")],-1)),_ze=[mze],bze={key:1,id:"commands-menu-items",class:"absolute left-0 mt-4 bg-white border border-gray-300 z-10 w-48 overflow-y-auto custom-scrollbar",style:{top:"-200px",maxHeight:"200px"}},yze=["onClick","title","onMouseover"],vze={class:"flex items-center"},wze=["src"],xze={class:"flex-grow"};function kze(t,e,n,s,o,r){return A(),M("div",uze,[u("div",fze,[u("button",{id:"commands-menu",onClick:e[0]||(e[0]=le((...i)=>r.toggleMenu&&r.toggleMenu(...i),["prevent"])),class:"menu-button bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 rounded-full flex items-center justify-center w-6 h-6 border-none cursor-pointer hover:bg-blue-400 w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-gray-300 border-secondary cursor-pointer"},pze),o.loading?(A(),M("div",gze,_ze)):j("",!0),o.showMenu?(A(),M("div",bze,[(A(!0),M(Le,null,Qe(o.commands,i=>(A(),M("button",{key:i.value,onClick:le(a=>r.execute_cmd(i),["prevent"]),class:Te(["menu-button py-2 px-4 w-full text-left cursor-pointer bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 hover:bg-blue-400",{"bg-blue-400 text-white":t.hoveredCommand===i.value}]),title:i.help,onMouseover:a=>t.hoveredCommand=i.value,onMouseout:e[1]||(e[1]=a=>t.hoveredCommand=null)},[u("div",vze,[i.icon?(A(),M("img",{key:0,src:i.icon,alt:"Command Icon",class:"w-4 h-4 mr-2",style:{width:"25px",height:"25px"}},null,8,wze)):j("",!0),u("div",xze,Y(i.name),1)])],42,yze))),128))])):j("",!0)])])}const Eze=Ge(dze,[["render",kze],["__scopeId","data-v-cc26f52a"]]);const Cze={name:"ChatBox",emits:["messageSentEvent","stopGenerating"],props:{onTalk:Function,discussionList:Array,loading:!1,onShowToastMessage:Function},components:{MountedPersonalities:Y$e,MountedPersonalitiesList:cze,PersonalitiesCommands:Eze},setup(){},data(){return{message:"",fileList:[],totalSize:0,showFileList:!0,showPersonalities:!1,personalities_ready:!1}},computed:{config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},allDiscussionPersonalities(){if(this.discussionList.length>0){let t=[];for(let e=0;e{ye.replace()}),Ht(t)},removeItem(t){this.fileList=this.fileList.filter(e=>e!=t)},sendMessageEvent(t){this.fileList=[],this.$emit("messageSentEvent",t)},submitOnEnter(t){t.which===13&&(t.preventDefault(),t.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(t){this.fileList=this.fileList.concat([...t.target.files])}},watch:{showFileList(){_e(()=>{ye.replace()})},loading(t,e){_e(()=>{ye.replace()})},fileList:{handler(t,e){let n=0;if(t.length>0)for(let s=0;s{ye.replace()})},activated(){_e(()=>{ye.replace()})}},Mt=t=>(ns("data-v-7bd685fe"),t=t(),ss(),t),Aze={class:"absolute bottom-0 min-w-96 w-full justify-center text-center p-4"},Sze={key:0,class:"flex items-center justify-center w-full"},Tze={class:"flex flex-row p-2 rounded-t-lg"},Mze=Mt(()=>u("label",{for:"chat",class:"sr-only"},"Send message",-1)),Oze={class:"px-3 py-3 rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},Rze={class:"flex flex-col gap-2"},Nze=["title"],Dze=Mt(()=>u("i",{"data-feather":"list"},null,-1)),Lze=[Dze],Ize={key:1},Pze={key:0,class:"flex flex-col max-h-64"},Fze=["title"],Bze={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium bg-bg-dark-tone-panel dark:bg-bg-dark-tone rounded-lg hover:bg-primary dark:hover:bg-primary"},$ze=Mt(()=>u("div",null,[u("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),zze={class:"line-clamp-1 w-3/5"},jze=Mt(()=>u("div",{class:"grow"},null,-1)),Uze={class:"flex flex-row items-center"},qze={class:"whitespace-nowrap"},Hze=["onClick"],Vze=Mt(()=>u("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)),Gze=[Vze],Kze={key:2,class:"flex items-center mx-1"},Wze={class:"whitespace-nowrap flex flex-row gap-2"},Zze=Mt(()=>u("p",{class:"font-bold"}," Total size: ",-1)),Yze=Mt(()=>u("div",{class:"grow"},null,-1)),Qze=Mt(()=>u("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)),Jze=[Qze],Xze={key:3,class:"mx-1"},eje={class:"flex flex-row flex-grow items-center gap-2 overflow-visible"},tje={class:"w-fit"},nje={class:"w-fit"},sje={class:"relative grow"},oje=Mt(()=>u("i",{"data-feather":"file-plus"},null,-1)),rje=[oje],ije={class:"inline-flex justify-center rounded-full"},aje=Mt(()=>u("i",{"data-feather":"send"},null,-1)),lje=Mt(()=>u("span",{class:"sr-only"},"Send message",-1)),cje=[aje,lje],dje={key:1,title:"Waiting for reply"},uje=Mt(()=>u("div",{role:"status"},[u("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),u("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),u("span",{class:"sr-only"},"Loading...")],-1)),fje=[uje];function hje(t,e,n,s,o,r){const i=lt("MountedPersonalitiesList"),a=lt("MountedPersonalities"),l=lt("PersonalitiesCommands");return A(),M("div",Aze,[n.loading?(A(),M("div",Sze,[u("div",Tze,[u("button",{type:"button",class:"bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel hover:bg-bg-light-tone focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:hover:bg-bg-dark-tone focus:outline-none dark:focus:ring-blue-800",onClick:e[0]||(e[0]=le((...c)=>r.stopGenerating&&r.stopGenerating(...c),["stop"]))}," Stop generating ")])])):j("",!0),u("form",null,[Mze,u("div",Oze,[u("div",Rze,[o.fileList.length>0?(A(),M("button",{key:0,class:"mx-1 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:o.showFileList?"Hide file list":"Show file list",type:"button",onClick:e[1]||(e[1]=le(c=>o.showFileList=!o.showFileList,["stop"]))},Lze,8,Nze)):j("",!0),o.fileList.length>0&&o.showFileList==!0?(A(),M("div",Ize,[o.fileList.length>0?(A(),M("div",Pze,[Ae(Ut,{name:"list",tag:"div",class:"flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(o.fileList,(c,d)=>(A(),M("div",{key:d+"-"+c.name},[u("div",{class:"m-1",title:c.name},[u("div",Bze,[$ze,u("div",zze,Y(c.name),1),jze,u("div",Uze,[u("p",qze,Y(r.computedFileSize(c.size)),1),u("button",{type:"button",title:"Remove item",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:f=>r.removeItem(c)},Gze,8,Hze)])])],8,Fze)]))),128))]),_:1})])):j("",!0)])):j("",!0),o.fileList.length>0?(A(),M("div",Kze,[u("div",Wze,[Zze,we(" "+Y(o.totalSize)+" ("+Y(o.fileList.length)+") ",1)]),Yze,u("button",{type:"button",title:"Clear all",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[2]||(e[2]=c=>o.fileList=[])},Jze)])):j("",!0),o.showPersonalities?(A(),M("div",Xze,[Ae(i,{ref:"mountedPersList",onShowPersList:r.onShowPersListFun,"on-mount-unmount":r.onMountUnmountFun,"on-talk":r.handleOnTalk,discussionPersonalities:r.allDiscussionPersonalities},null,8,["onShowPersList","on-mount-unmount","on-talk","discussionPersonalities"])])):j("",!0),u("div",eje,[u("div",tje,[Ae(a,{ref:"mountedPers",onShowPersList:r.onShowPersListFun,onReady:r.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])]),u("div",nje,[o.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(A(),ot(l,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:r.sendMessageEvent,"on-show-toast-message":n.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):j("",!0)]),u("div",sje,[me(u("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[3]||(e[3]=c=>o.message=c),title:"Hold SHIFT + ENTER to add new line",class:"inline-block no-scrollbar p-2.5 w-full text-sm text-gray-900 bg-bg-light rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Send message...",onKeydown:e[4]||(e[4]=Wa(le(c=>r.submitOnEnter(c),["exact"]),["enter"]))},`\r +Error: `+e.error,4,!1)},getMountedPersonalities(){this.isLoading=!0;let t=[];console.log(this.configFile.personalities.length);for(let e=0;er.full_path==n),o=this.personalities[s];if(o)console.log("adding from config"),t.push(o);else{console.log("adding default");const r=this.personalities.findIndex(a=>a.full_path=="english/generic/lollms"),i=this.personalities[r];t.push(i)}}if(this.mountedPersArr=[],this.mountedPersArr=t,console.log("discussionPersonalities",this.discussionPersonalities),this.discussionPersonalities!=null&&this.discussionPersonalities.length>0)for(let e=0;eo.full_path==n);if(console.log("discussionPersonalities -includes",s),console.log("discussionPersonalities -mounted list",this.mountedPersArr),s==-1){const o=this.personalities.findIndex(i=>i.full_path==n),r=this.personalities[o];console.log("adding discucc121",r,n),r&&(this.mountedPersArr.push(r),console.log("adding discucc",r))}}this.isLoading=!1,console.log("getMountedPersonalities",this.mountedPersArr),console.log("fig",this.configFile)}}},mc=t=>(ns("data-v-e36401c9"),t=t(),ss(),t),nje={class:"text-left overflow-visible text-base font-semibold cursor-pointer select-none items-center flex flex-col flex-grow w-full overflow-x-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},sje={key:0,role:"status",class:"flex justify-center overflow-y-hidden"},oje=mc(()=>d("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[d("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),d("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),rje=mc(()=>d("span",{class:"sr-only"},"Loading...",-1)),ije=[oje,rje],aje=mc(()=>d("i",{"data-feather":"chevron-down"},null,-1)),lje=[aje],cje={class:"block my-2 text-sm font-medium text-gray-900 dark:text-white"},uje={class:"overflow-y-auto no-scrollbar pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 max-h-96"};function dje(t,e,n,s,o,r){const i=lt("personality-entry"),a=lt("Toast"),l=lt("UniversalForm");return A(),M("div",nje,[o.isLoading?(A(),M("div",sje,ije)):z("",!0),d("div",null,[r.mountedPersArr.length>0?(A(),M("div",{key:0,class:Te(o.isLoading?"pointer-events-none opacity-30 cursor-default":"")},[d("button",{class:"mt-0 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Close personality list",type:"button",onClick:e[0]||(e[0]=le((...c)=>r.toggleShowPersList&&r.toggleShowPersList(...c),["stop"]))},lje),d("label",cje," Mounted Personalities: ("+Y(r.mountedPersArr.length)+") ",1),d("div",uje,[Ae(Ut,{name:"bounce"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(this.$store.state.mountedPersArr,(c,u)=>(A(),ot(i,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+u+"-"+c.name,personality:c,full_path:c.full_path,selected:r.configFile.personalities[r.configFile.active_personality_id]===c.full_path,"on-selected":r.onPersonalitySelected,"on-mounted":r.onPersonalityMounted,"on-settings":r.onSettingsPersonality,"on-reinstall":r.onPersonalityReinstall,"on-talk":r.handleOnTalk},null,8,["personality","full_path","selected","on-selected","on-mounted","on-settings","on-reinstall","on-talk"]))),128))]),_:1})])],2)):z("",!0)]),Ae(a,{ref:"toast"},null,512),Ae(l,{ref:"universalForm",class:"z-20"},null,512)])}const hje=Ge(tje,[["render",dje],["__scopeId","data-v-e36401c9"]]);const fje={props:{commandsList:{type:Array,required:!0},sendCommand:Function,onShowToastMessage:Function},data(){return{loading:!1,selectedFile:null,showMenu:!1,showHelpText:!1,helpText:"",commands:[]}},async mounted(){nextTick(()=>{ye.replace()})},methods:{selectFile(t){const e=document.createElement("input");e.type="file",e.accept="application/pdf",e.onchange=n=>{this.selectedFile=n.target.files[0],console.log("File selected"),t()},e.click()},uploadFile(){const t=new FormData;t.append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0,Se.post("/send_file",t).then(e=>{this.loading=!1,console.log(e.data),this.onShowToastMessage("File uploaded successfully")}).catch(e=>{console.error(e)})},async constructor(){nextTick(()=>{ye.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(t){this.showMenu=!this.showMenu,t.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(t.value)},handleClickOutside(t){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(t.target)&&(this.showMenu=!1)}},mounted(){this.commands=this.commandsList,document.addEventListener("click",this.handleClickOutside)},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},$g=t=>(ns("data-v-cc26f52a"),t=t(),ss(),t),pje={class:"menu relative"},gje={class:"commands-menu-items-wrapper"},mje=$g(()=>d("i",{"data-feather":"command",class:"w-5 h-5"},null,-1)),_je=[mje],bje={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"},yje=$g(()=>d("div",{role:"status"},[d("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[d("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),d("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),d("span",{class:"sr-only"},"Loading...")],-1)),vje=[yje],wje={key:1,id:"commands-menu-items",class:"absolute left-0 mt-4 bg-white border border-gray-300 z-10 w-48 overflow-y-auto custom-scrollbar",style:{top:"-200px",maxHeight:"200px"}},xje=["onClick","title","onMouseover"],kje={class:"flex items-center"},Eje=["src"],Cje={class:"flex-grow"};function Aje(t,e,n,s,o,r){return A(),M("div",pje,[d("div",gje,[d("button",{id:"commands-menu",onClick:e[0]||(e[0]=le((...i)=>r.toggleMenu&&r.toggleMenu(...i),["prevent"])),class:"menu-button bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 rounded-full flex items-center justify-center w-6 h-6 border-none cursor-pointer hover:bg-blue-400 w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-gray-300 border-secondary cursor-pointer"},_je),o.loading?(A(),M("div",bje,vje)):z("",!0),o.showMenu?(A(),M("div",wje,[(A(!0),M(Le,null,Qe(o.commands,i=>(A(),M("button",{key:i.value,onClick:le(a=>r.execute_cmd(i),["prevent"]),class:Te(["menu-button py-2 px-4 w-full text-left cursor-pointer bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 hover:bg-blue-400",{"bg-blue-400 text-white":t.hoveredCommand===i.value}]),title:i.help,onMouseover:a=>t.hoveredCommand=i.value,onMouseout:e[1]||(e[1]=a=>t.hoveredCommand=null)},[d("div",kje,[i.icon?(A(),M("img",{key:0,src:i.icon,alt:"Command Icon",class:"w-4 h-4 mr-2",style:{width:"25px",height:"25px"}},null,8,Eje)):z("",!0),d("div",Cje,Y(i.name),1)])],42,xje))),128))])):z("",!0)])])}const Sje=Ge(fje,[["render",Aje],["__scopeId","data-v-cc26f52a"]]);const Tje={name:"ChatBox",emits:["messageSentEvent","stopGenerating"],props:{onTalk:Function,discussionList:Array,loading:!1,onShowToastMessage:Function},components:{MountedPersonalities:X$e,MountedPersonalitiesList:hje,PersonalitiesCommands:Sje},setup(){},data(){return{message:"",fileList:[],totalSize:0,showFileList:!0,showPersonalities:!1,personalities_ready:!1}},computed:{config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},allDiscussionPersonalities(){if(this.discussionList.length>0){let t=[];for(let e=0;e{ye.replace()}),Ht(t)},removeItem(t){this.fileList=this.fileList.filter(e=>e!=t)},sendMessageEvent(t){this.fileList=[],this.$emit("messageSentEvent",t)},submitOnEnter(t){t.which===13&&(t.preventDefault(),t.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(t){this.fileList=this.fileList.concat([...t.target.files])}},watch:{showFileList(){_e(()=>{ye.replace()})},loading(t,e){_e(()=>{ye.replace()})},fileList:{handler(t,e){let n=0;if(t.length>0)for(let s=0;s{ye.replace()})},activated(){_e(()=>{ye.replace()})}},Mt=t=>(ns("data-v-7bd685fe"),t=t(),ss(),t),Mje={class:"absolute bottom-0 min-w-96 w-full justify-center text-center p-4"},Oje={key:0,class:"flex items-center justify-center w-full"},Rje={class:"flex flex-row p-2 rounded-t-lg"},Nje=Mt(()=>d("label",{for:"chat",class:"sr-only"},"Send message",-1)),Dje={class:"px-3 py-3 rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},Lje={class:"flex flex-col gap-2"},Ije=["title"],Pje=Mt(()=>d("i",{"data-feather":"list"},null,-1)),Fje=[Pje],Bje={key:1},$je={key:0,class:"flex flex-col max-h-64"},jje=["title"],zje={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium bg-bg-dark-tone-panel dark:bg-bg-dark-tone rounded-lg hover:bg-primary dark:hover:bg-primary"},Uje=Mt(()=>d("div",null,[d("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),qje={class:"line-clamp-1 w-3/5"},Hje=Mt(()=>d("div",{class:"grow"},null,-1)),Vje={class:"flex flex-row items-center"},Gje={class:"whitespace-nowrap"},Kje=["onClick"],Wje=Mt(()=>d("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)),Zje=[Wje],Yje={key:2,class:"flex items-center mx-1"},Qje={class:"whitespace-nowrap flex flex-row gap-2"},Jje=Mt(()=>d("p",{class:"font-bold"}," Total size: ",-1)),Xje=Mt(()=>d("div",{class:"grow"},null,-1)),eze=Mt(()=>d("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)),tze=[eze],nze={key:3,class:"mx-1"},sze={class:"flex flex-row flex-grow items-center gap-2 overflow-visible"},oze={class:"w-fit"},rze={class:"w-fit"},ize={class:"relative grow"},aze=Mt(()=>d("i",{"data-feather":"file-plus"},null,-1)),lze=[aze],cze={class:"inline-flex justify-center rounded-full"},uze=Mt(()=>d("i",{"data-feather":"send"},null,-1)),dze=Mt(()=>d("span",{class:"sr-only"},"Send message",-1)),hze=[uze,dze],fze={key:1,title:"Waiting for reply"},pze=Mt(()=>d("div",{role:"status"},[d("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[d("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),d("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),d("span",{class:"sr-only"},"Loading...")],-1)),gze=[pze];function mze(t,e,n,s,o,r){const i=lt("MountedPersonalitiesList"),a=lt("MountedPersonalities"),l=lt("PersonalitiesCommands");return A(),M("div",Mje,[n.loading?(A(),M("div",Oje,[d("div",Rje,[d("button",{type:"button",class:"bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel hover:bg-bg-light-tone focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:hover:bg-bg-dark-tone focus:outline-none dark:focus:ring-blue-800",onClick:e[0]||(e[0]=le((...c)=>r.stopGenerating&&r.stopGenerating(...c),["stop"]))}," Stop generating ")])])):z("",!0),d("form",null,[Nje,d("div",Dje,[d("div",Lje,[o.fileList.length>0?(A(),M("button",{key:0,class:"mx-1 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:o.showFileList?"Hide file list":"Show file list",type:"button",onClick:e[1]||(e[1]=le(c=>o.showFileList=!o.showFileList,["stop"]))},Fje,8,Ije)):z("",!0),o.fileList.length>0&&o.showFileList==!0?(A(),M("div",Bje,[o.fileList.length>0?(A(),M("div",$je,[Ae(Ut,{name:"list",tag:"div",class:"flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(o.fileList,(c,u)=>(A(),M("div",{key:u+"-"+c.name},[d("div",{class:"m-1",title:c.name},[d("div",zje,[Uje,d("div",qje,Y(c.name),1),Hje,d("div",Vje,[d("p",Gje,Y(r.computedFileSize(c.size)),1),d("button",{type:"button",title:"Remove item",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:h=>r.removeItem(c)},Zje,8,Kje)])])],8,jje)]))),128))]),_:1})])):z("",!0)])):z("",!0),o.fileList.length>0?(A(),M("div",Yje,[d("div",Qje,[Jje,we(" "+Y(o.totalSize)+" ("+Y(o.fileList.length)+") ",1)]),Xje,d("button",{type:"button",title:"Clear all",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[2]||(e[2]=c=>o.fileList=[])},tze)])):z("",!0),o.showPersonalities?(A(),M("div",nze,[Ae(i,{ref:"mountedPersList",onShowPersList:r.onShowPersListFun,"on-mount-unmount":r.onMountUnmountFun,"on-talk":r.handleOnTalk,discussionPersonalities:r.allDiscussionPersonalities},null,8,["onShowPersList","on-mount-unmount","on-talk","discussionPersonalities"])])):z("",!0),d("div",sze,[d("div",oze,[Ae(a,{ref:"mountedPers",onShowPersList:r.onShowPersListFun,onReady:r.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])]),d("div",rze,[o.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(A(),ot(l,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:r.sendMessageEvent,"on-show-toast-message":n.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):z("",!0)]),d("div",ize,[me(d("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[3]||(e[3]=c=>o.message=c),title:"Hold SHIFT + ENTER to add new line",class:"inline-block no-scrollbar p-2.5 w-full text-sm text-gray-900 bg-bg-light rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Send message...",onKeydown:e[4]||(e[4]=Wa(le(c=>r.submitOnEnter(c),["exact"]),["enter"]))},`\r \r \r - `,544),[[Re,o.message]]),u("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:e[5]||(e[5]=(...c)=>r.addFiles&&r.addFiles(...c)),multiple:""},null,544),u("button",{type:"button",onClick:e[6]||(e[6]=le(c=>t.$refs.fileDialog.click(),["stop"])),title:"Add files",class:"absolute inset-y-0 right-0 flex items-center mr-2 w-6 hover:text-secondary duration-75 active:scale-90"},rje)]),u("div",ije,[n.loading?j("",!0):(A(),M("button",{key:0,type:"button",onClick:e[7]||(e[7]=(...c)=>r.submit&&r.submit(...c)),class:"w-6 hover:text-secondary duration-75 active:scale-90"},cje)),n.loading?(A(),M("div",dje,fje)):j("",!0)])])])])])])}const zg=Ge(Cze,[["render",hje],["__scopeId","data-v-7bd685fe"]]),pje={name:"WelcomeComponent",setup(){return{}}},gje={class:"flex flex-col text-center"},mje=js('
Logo

Lord of Large Language Models

One tool to rule them all


Welcome

Please create a new discussion or select existing one to start

',1),_je=[mje];function bje(t,e,n,s,o,r){return A(),M("div",gje,_je)}const jg=Ge(pje,[["render",bje]]);const yje={setup(){return{}},name:"DragDrop",emits:["panelLeave","panelDrop"],data(){return{fileList:[],show:!1,dropRelease:!1}},mounted(){_e(()=>{ye.replace()})},methods:{async panelDrop(t){const e="getAsFileSystemHandle"in DataTransferItem.prototype,n="webkitGetAsEntry"in DataTransferItem.prototype;if(!e&&!n)return;const s=[...t.dataTransfer.items].filter(r=>r.kind==="file").map(r=>e?r.getAsFileSystemHandle():r.webkitGetAsEntry());let o=[];for await(const r of s)(r.kind==="directory"||r.isDirectory)&&o.push(r.name);this.dropRelease=!0,t.dataTransfer.files.length>0&&[...t.dataTransfer.files].forEach(r=>{o.includes(r.name)||this.fileList.push(r)}),_e(()=>{ye.replace()}),this.$emit("panelDrop",this.fileList),this.fileList=[],this.show=!1},panelLeave(){this.$emit("panelLeave"),console.log("exit/leave"),this.dropRelease=!1,this.show=!1,_e(()=>{ye.replace()})}}},vje={class:"text-4xl text-center"};function wje(t,e,n,s,o,r){return A(),ot(Ut,{name:"list",tag:"div"},{default:Ke(()=>[o.show?(A(),M("div",{key:"dropmenu",class:"select-none text-slate-50 absolute top-0 left-0 right-0 bottom-0 flex flex-col items-center justify-center bg-black bg-opacity-50 duration-200 backdrop-blur-sm",onDragleave:e[0]||(e[0]=le(i=>r.panelLeave(i),["prevent"])),onDrop:e[1]||(e[1]=le(i=>r.panelDrop(i),["stop","prevent"]))},[u("div",{class:Te(["flex flex-col items-center justify-center p-8 rounded-lg shadow-lg border-dashed border-4 border-secondary w-4/5 h-4/5",o.dropRelease?"":"pointer-events-none"])},[u("div",vje,[wh(t.$slots,"default",{},()=>[we(" Drop your files here ")])])],2)],32)):j("",!0)]),_:3})}const pl=Ge(yje,[["render",wje]]);var xje=function(){function t(e,n){n===void 0&&(n=[]),this._eventType=e,this._eventFunctions=n}return t.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(n){typeof window<"u"&&window.addEventListener(e._eventType,n)})},t}(),Or=globalThis&&globalThis.__assign||function(){return Or=Object.assign||function(t){for(var e,n=1,s=arguments.length;n"u")return!1;var e=bt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Ije(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var s=e.styles[n]||{},o=e.attributes[n]||{},r=e.elements[n];!Ct(r)||!Qt(r)||(Object.assign(r.style,s),Object.keys(o).forEach(function(i){var a=o[i];a===!1?r.removeAttribute(i):r.setAttribute(i,a===!0?"":a)}))})}function Pje(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(s){var o=e.elements[s],r=e.attributes[s]||{},i=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:n[s]),a=i.reduce(function(l,c){return l[c]="",l},{});!Ct(o)||!Qt(o)||(Object.assign(o.style,a),Object.keys(r).forEach(function(l){o.removeAttribute(l)}))})}}const Fje={name:"applyStyles",enabled:!0,phase:"write",fn:Ije,effect:Pje,requires:["computeStyles"]};function Wt(t){return t.split("-")[0]}var Qn=Math.max,Lr=Math.min,Ds=Math.round;function gl(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Jg(){return!/^((?!chrome|android).)*safari/i.test(gl())}function Ls(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var s=t.getBoundingClientRect(),o=1,r=1;e&&Ct(t)&&(o=t.offsetWidth>0&&Ds(s.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Ds(s.height)/t.offsetHeight||1);var i=es(t)?bt(t):window,a=i.visualViewport,l=!Jg()&&n,c=(s.left+(l&&a?a.offsetLeft:0))/o,d=(s.top+(l&&a?a.offsetTop:0))/r,f=s.width/o,p=s.height/r;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function yc(t){var e=Ls(t),n=t.offsetWidth,s=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:s}}function Xg(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&bc(n)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function cn(t){return bt(t).getComputedStyle(t)}function Bje(t){return["table","td","th"].indexOf(Qt(t))>=0}function Nn(t){return((es(t)?t.ownerDocument:t.document)||window.document).documentElement}function yi(t){return Qt(t)==="html"?t:t.assignedSlot||t.parentNode||(bc(t)?t.host:null)||Nn(t)}function Af(t){return!Ct(t)||cn(t).position==="fixed"?null:t.offsetParent}function $je(t){var e=/firefox/i.test(gl()),n=/Trident/i.test(gl());if(n&&Ct(t)){var s=cn(t);if(s.position==="fixed")return null}var o=yi(t);for(bc(o)&&(o=o.host);Ct(o)&&["html","body"].indexOf(Qt(o))<0;){var r=cn(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}function Bo(t){for(var e=bt(t),n=Af(t);n&&Bje(n)&&cn(n).position==="static";)n=Af(n);return n&&(Qt(n)==="html"||Qt(n)==="body"&&cn(n).position==="static")?e:n||$je(t)||e}function vc(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function co(t,e,n){return Qn(t,Lr(e,n))}function zje(t,e,n){var s=co(t,e,n);return s>n?n:s}function em(){return{top:0,right:0,bottom:0,left:0}}function tm(t){return Object.assign({},em(),t)}function nm(t,e){return e.reduce(function(n,s){return n[s]=t,n},{})}var jje=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,tm(typeof e!="number"?e:nm(e,Fo))};function Uje(t){var e,n=t.state,s=t.name,o=t.options,r=n.elements.arrow,i=n.modifiersData.popperOffsets,a=Wt(n.placement),l=vc(a),c=[pt,Tt].indexOf(a)>=0,d=c?"height":"width";if(!(!r||!i)){var f=jje(o.padding,n),p=yc(r),g=l==="y"?ht:pt,h=l==="y"?St:Tt,m=n.rects.reference[d]+n.rects.reference[l]-i[l]-n.rects.popper[d],v=i[l]-n.rects.reference[l],_=Bo(r),b=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,x=m/2-v/2,C=f[g],R=b-p[d]-f[h],O=b/2-p[d]/2+x,D=co(C,O,R),y=l;n.modifiersData[s]=(e={},e[y]=D,e.centerOffset=D-O,e)}}function qje(t){var e=t.state,n=t.options,s=n.element,o=s===void 0?"[data-popper-arrow]":s;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||Xg(e.elements.popper,o)&&(e.elements.arrow=o))}const Hje={name:"arrow",enabled:!0,phase:"main",fn:Uje,effect:qje,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Is(t){return t.split("-")[1]}var Vje={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gje(t,e){var n=t.x,s=t.y,o=e.devicePixelRatio||1;return{x:Ds(n*o)/o||0,y:Ds(s*o)/o||0}}function Sf(t){var e,n=t.popper,s=t.popperRect,o=t.placement,r=t.variation,i=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,f=t.isFixed,p=i.x,g=p===void 0?0:p,h=i.y,m=h===void 0?0:h,v=typeof d=="function"?d({x:g,y:m}):{x:g,y:m};g=v.x,m=v.y;var _=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),x=pt,C=ht,R=window;if(c){var O=Bo(n),D="clientHeight",y="clientWidth";if(O===bt(n)&&(O=Nn(n),cn(O).position!=="static"&&a==="absolute"&&(D="scrollHeight",y="scrollWidth")),O=O,o===ht||(o===pt||o===Tt)&&r===Mo){C=St;var k=f&&O===R&&R.visualViewport?R.visualViewport.height:O[D];m-=k-s.height,m*=l?1:-1}if(o===pt||(o===ht||o===St)&&r===Mo){x=Tt;var T=f&&O===R&&R.visualViewport?R.visualViewport.width:O[y];g-=T-s.width,g*=l?1:-1}}var L=Object.assign({position:a},c&&Vje),F=d===!0?Gje({x:g,y:m},bt(n)):{x:g,y:m};if(g=F.x,m=F.y,l){var Q;return Object.assign({},L,(Q={},Q[C]=b?"0":"",Q[x]=_?"0":"",Q.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",Q))}return Object.assign({},L,(e={},e[C]=b?m+"px":"",e[x]=_?g+"px":"",e.transform="",e))}function Kje(t){var e=t.state,n=t.options,s=n.gpuAcceleration,o=s===void 0?!0:s,r=n.adaptive,i=r===void 0?!0:r,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Wt(e.placement),variation:Is(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Sf(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Sf(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Wje={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Kje,data:{}};var Qo={passive:!0};function Zje(t){var e=t.state,n=t.instance,s=t.options,o=s.scroll,r=o===void 0?!0:o,i=s.resize,a=i===void 0?!0:i,l=bt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(d){d.addEventListener("scroll",n.update,Qo)}),a&&l.addEventListener("resize",n.update,Qo),function(){r&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Qo)}),a&&l.removeEventListener("resize",n.update,Qo)}}const Yje={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Zje,data:{}};var Qje={left:"right",right:"left",bottom:"top",top:"bottom"};function gr(t){return t.replace(/left|right|bottom|top/g,function(e){return Qje[e]})}var Jje={start:"end",end:"start"};function Tf(t){return t.replace(/start|end/g,function(e){return Jje[e]})}function wc(t){var e=bt(t),n=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:n,scrollTop:s}}function xc(t){return Ls(Nn(t)).left+wc(t).scrollLeft}function Xje(t,e){var n=bt(t),s=Nn(t),o=n.visualViewport,r=s.clientWidth,i=s.clientHeight,a=0,l=0;if(o){r=o.width,i=o.height;var c=Jg();(c||!c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:i,x:a+xc(t),y:l}}function eUe(t){var e,n=Nn(t),s=wc(t),o=(e=t.ownerDocument)==null?void 0:e.body,r=Qn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Qn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-s.scrollLeft+xc(t),l=-s.scrollTop;return cn(o||n).direction==="rtl"&&(a+=Qn(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:i,x:a,y:l}}function kc(t){var e=cn(t),n=e.overflow,s=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+s)}function sm(t){return["html","body","#document"].indexOf(Qt(t))>=0?t.ownerDocument.body:Ct(t)&&kc(t)?t:sm(yi(t))}function uo(t,e){var n;e===void 0&&(e=[]);var s=sm(t),o=s===((n=t.ownerDocument)==null?void 0:n.body),r=bt(s),i=o?[r].concat(r.visualViewport||[],kc(s)?s:[]):s,a=e.concat(i);return o?a:a.concat(uo(yi(i)))}function ml(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function tUe(t,e){var n=Ls(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Mf(t,e,n){return e===Yg?ml(Xje(t,n)):es(e)?tUe(e,n):ml(eUe(Nn(t)))}function nUe(t){var e=uo(yi(t)),n=["absolute","fixed"].indexOf(cn(t).position)>=0,s=n&&Ct(t)?Bo(t):t;return es(s)?e.filter(function(o){return es(o)&&Xg(o,s)&&Qt(o)!=="body"}):[]}function sUe(t,e,n,s){var o=e==="clippingParents"?nUe(t):[].concat(e),r=[].concat(o,[n]),i=r[0],a=r.reduce(function(l,c){var d=Mf(t,c,s);return l.top=Qn(d.top,l.top),l.right=Lr(d.right,l.right),l.bottom=Lr(d.bottom,l.bottom),l.left=Qn(d.left,l.left),l},Mf(t,i,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function om(t){var e=t.reference,n=t.element,s=t.placement,o=s?Wt(s):null,r=s?Is(s):null,i=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(o){case ht:l={x:i,y:e.y-n.height};break;case St:l={x:i,y:e.y+e.height};break;case Tt:l={x:e.x+e.width,y:a};break;case pt:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var c=o?vc(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(r){case Ns:l[c]=l[c]-(e[d]/2-n[d]/2);break;case Mo:l[c]=l[c]+(e[d]/2-n[d]/2);break}}return l}function Oo(t,e){e===void 0&&(e={});var n=e,s=n.placement,o=s===void 0?t.placement:s,r=n.strategy,i=r===void 0?t.strategy:r,a=n.boundary,l=a===void 0?kje:a,c=n.rootBoundary,d=c===void 0?Yg:c,f=n.elementContext,p=f===void 0?Xs:f,g=n.altBoundary,h=g===void 0?!1:g,m=n.padding,v=m===void 0?0:m,_=tm(typeof v!="number"?v:nm(v,Fo)),b=p===Xs?Eje:Xs,x=t.rects.popper,C=t.elements[h?b:p],R=sUe(es(C)?C:C.contextElement||Nn(t.elements.popper),l,d,i),O=Ls(t.elements.reference),D=om({reference:O,element:x,strategy:"absolute",placement:o}),y=ml(Object.assign({},x,D)),k=p===Xs?y:O,T={top:R.top-k.top+_.top,bottom:k.bottom-R.bottom+_.bottom,left:R.left-k.left+_.left,right:k.right-R.right+_.right},L=t.modifiersData.offset;if(p===Xs&&L){var F=L[o];Object.keys(T).forEach(function(Q){var I=[Tt,St].indexOf(Q)>=0?1:-1,ae=[ht,St].indexOf(Q)>=0?"y":"x";T[Q]+=F[ae]*I})}return T}function oUe(t,e){e===void 0&&(e={});var n=e,s=n.placement,o=n.boundary,r=n.rootBoundary,i=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Qg:l,d=Is(s),f=d?a?Cf:Cf.filter(function(h){return Is(h)===d}):Fo,p=f.filter(function(h){return c.indexOf(h)>=0});p.length===0&&(p=f);var g=p.reduce(function(h,m){return h[m]=Oo(t,{placement:m,boundary:o,rootBoundary:r,padding:i})[Wt(m)],h},{});return Object.keys(g).sort(function(h,m){return g[h]-g[m]})}function rUe(t){if(Wt(t)===_c)return[];var e=gr(t);return[Tf(t),e,Tf(e)]}function iUe(t){var e=t.state,n=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var o=n.mainAxis,r=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,h=g===void 0?!0:g,m=n.allowedAutoPlacements,v=e.options.placement,_=Wt(v),b=_===v,x=l||(b||!h?[gr(v)]:rUe(v)),C=[v].concat(x).reduce(function(Ee,N){return Ee.concat(Wt(N)===_c?oUe(e,{placement:N,boundary:d,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:m}):N)},[]),R=e.rects.reference,O=e.rects.popper,D=new Map,y=!0,k=C[0],T=0;T=0,ae=I?"width":"height",W=Oo(e,{placement:L,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),S=I?Q?Tt:pt:Q?St:ht;R[ae]>O[ae]&&(S=gr(S));var q=gr(S),V=[];if(r&&V.push(W[F]<=0),a&&V.push(W[S]<=0,W[q]<=0),V.every(function(Ee){return Ee})){k=L,y=!1;break}D.set(L,V)}if(y)for(var be=h?3:1,ge=function(N){var J=C.find(function(H){var te=D.get(H);if(te)return te.slice(0,N).every(function(X){return X})});if(J)return k=J,"break"},ee=be;ee>0;ee--){var ve=ge(ee);if(ve==="break")break}e.placement!==k&&(e.modifiersData[s]._skip=!0,e.placement=k,e.reset=!0)}}const aUe={name:"flip",enabled:!0,phase:"main",fn:iUe,requiresIfExists:["offset"],data:{_skip:!1}};function Of(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Rf(t){return[ht,Tt,St,pt].some(function(e){return t[e]>=0})}function lUe(t){var e=t.state,n=t.name,s=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,i=Oo(e,{elementContext:"reference"}),a=Oo(e,{altBoundary:!0}),l=Of(i,s),c=Of(a,o,r),d=Rf(l),f=Rf(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const cUe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lUe};function dUe(t,e,n){var s=Wt(t),o=[pt,ht].indexOf(s)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,i=r[0],a=r[1];return i=i||0,a=(a||0)*o,[pt,Tt].indexOf(s)>=0?{x:a,y:i}:{x:i,y:a}}function uUe(t){var e=t.state,n=t.options,s=t.name,o=n.offset,r=o===void 0?[0,0]:o,i=Qg.reduce(function(d,f){return d[f]=dUe(f,e.rects,r),d},{}),a=i[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[s]=i}const fUe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uUe};function hUe(t){var e=t.state,n=t.name;e.modifiersData[n]=om({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const pUe={name:"popperOffsets",enabled:!0,phase:"read",fn:hUe,data:{}};function gUe(t){return t==="x"?"y":"x"}function mUe(t){var e=t.state,n=t.options,s=t.name,o=n.mainAxis,r=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,g=p===void 0?!0:p,h=n.tetherOffset,m=h===void 0?0:h,v=Oo(e,{boundary:l,rootBoundary:c,padding:f,altBoundary:d}),_=Wt(e.placement),b=Is(e.placement),x=!b,C=vc(_),R=gUe(C),O=e.modifiersData.popperOffsets,D=e.rects.reference,y=e.rects.popper,k=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,T=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,F={x:0,y:0};if(O){if(r){var Q,I=C==="y"?ht:pt,ae=C==="y"?St:Tt,W=C==="y"?"height":"width",S=O[C],q=S+v[I],V=S-v[ae],be=g?-y[W]/2:0,ge=b===Ns?D[W]:y[W],ee=b===Ns?-y[W]:-D[W],ve=e.elements.arrow,Ee=g&&ve?yc(ve):{width:0,height:0},N=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:em(),J=N[I],H=N[ae],te=co(0,D[W],Ee[W]),X=x?D[W]/2-be-te-J-T.mainAxis:ge-te-J-T.mainAxis,he=x?-D[W]/2+be+te+H+T.mainAxis:ee+te+H+T.mainAxis,ce=e.elements.arrow&&Bo(e.elements.arrow),w=ce?C==="y"?ce.clientTop||0:ce.clientLeft||0:0,E=(Q=L==null?void 0:L[C])!=null?Q:0,P=S+X-E-w,B=S+he-E,$=co(g?Lr(q,P):q,S,g?Qn(V,B):V);O[C]=$,F[C]=$-S}if(a){var ne,re=C==="x"?ht:pt,z=C==="x"?St:Tt,se=O[R],U=R==="y"?"height":"width",Z=se+v[re],ie=se-v[z],ue=[ht,pt].indexOf(_)!==-1,de=(ne=L==null?void 0:L[R])!=null?ne:0,xe=ue?Z:se-D[U]-y[U]-de+T.altAxis,K=ue?se+D[U]+y[U]-de-T.altAxis:ie,oe=g&&ue?zje(xe,se,K):co(g?xe:Z,se,g?K:ie);O[R]=oe,F[R]=oe-se}e.modifiersData[s]=F}}const _Ue={name:"preventOverflow",enabled:!0,phase:"main",fn:mUe,requiresIfExists:["offset"]};function bUe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function yUe(t){return t===bt(t)||!Ct(t)?wc(t):bUe(t)}function vUe(t){var e=t.getBoundingClientRect(),n=Ds(e.width)/t.offsetWidth||1,s=Ds(e.height)/t.offsetHeight||1;return n!==1||s!==1}function wUe(t,e,n){n===void 0&&(n=!1);var s=Ct(e),o=Ct(e)&&vUe(e),r=Nn(e),i=Ls(t,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((Qt(e)!=="body"||kc(r))&&(a=yUe(e)),Ct(e)?(l=Ls(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=xc(r))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function xUe(t){var e=new Map,n=new Set,s=[];t.forEach(function(r){e.set(r.name,r)});function o(r){n.add(r.name);var i=[].concat(r.requires||[],r.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&o(l)}}),s.push(r)}return t.forEach(function(r){n.has(r.name)||o(r)}),s}function kUe(t){var e=xUe(t);return Lje.reduce(function(n,s){return n.concat(e.filter(function(o){return o.phase===s}))},[])}function EUe(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function CUe(t){var e=t.reduce(function(n,s){var o=n[s.name];return n[s.name]=o?Object.assign({},o,s,{options:Object.assign({},o.options,s.options),data:Object.assign({},o.data,s.data)}):s,n},{});return Object.keys(e).map(function(n){return e[n]})}var Nf={placement:"bottom",modifiers:[],strategy:"absolute"};function Df(){for(var t=arguments.length,e=new Array(t),n=0;n(ns("data-v-2c119a50"),t=t(),ss(),t),OUe={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center"},RUe=Xe(()=>u("div",{class:"flex flex-col text-center"},[u("div",{class:"flex flex-col text-center items-center"},[u("div",{class:"flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"},[u("img",{class:"w-24 animate-bounce",title:"LoLLMS WebUI",src:Xl,alt:"Logo"}),u("div",{class:"flex flex-col items-start"},[u("p",{class:"text-2xl"},"Lord of Large Language Models"),u("p",{class:"text-gray-400 text-base"},"One tool to rule them all")])]),u("hr",{class:"mt-1 w-96 h-1 mx-auto my-2 md:my-2 dark:bg-bg-dark-tone-panel bg-bg-light-tone-panel border-0 rounded"}),u("p",{class:"text-2xl"},"Welcome"),u("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),u("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),u("span",{class:"text-2xl font-bold ml-4"},"Loading ...")])],-1)),NUe=[RUe],DUe=Xe(()=>u("i",{"data-feather":"chevron-right"},null,-1)),LUe=[DUe],IUe=Xe(()=>u("i",{"data-feather":"chevron-left"},null,-1)),PUe=[IUe],FUe={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone"},BUe={class:"sticky z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md"},$Ue={class:"flex-row p-4 flex items-center gap-3 flex-0"},zUe=Xe(()=>u("i",{"data-feather":"plus"},null,-1)),jUe=[zUe],UUe=Xe(()=>u("i",{"data-feather":"check-square"},null,-1)),qUe=[UUe],HUe=Xe(()=>u("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},[u("i",{"data-feather":"refresh-ccw"})],-1)),VUe=Xe(()=>u("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Export database",type:"button"},[u("i",{"data-feather":"database"})],-1)),GUe=Xe(()=>u("i",{"data-feather":"log-in"},null,-1)),KUe=[GUe],WUe={key:0,class:"dropdown"},ZUe=Xe(()=>u("i",{"data-feather":"search"},null,-1)),YUe=[ZUe],QUe={key:1,title:"Loading..",class:"flex flex-row flex-grow justify-end"},JUe=Xe(()=>u("div",{role:"status"},[u("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),u("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),u("span",{class:"sr-only"},"Loading...")],-1)),XUe=[JUe],eqe={key:0,class:"flex-row items-center gap-3 flex-0 w-full"},tqe={class:"p-4 pt-2"},nqe={class:"relative"},sqe=Xe(()=>u("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[u("div",{class:"scale-75"},[u("i",{"data-feather":"search"})])],-1)),oqe={class:"absolute inset-y-0 right-0 flex items-center pr-3"},rqe=Xe(()=>u("i",{"data-feather":"x"},null,-1)),iqe=[rqe],aqe={key:1,class:"h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark"},lqe={key:2,class:"flex flex-row flex-grow p-4 pt-0 items-center"},cqe={class:"flex flex-row flex-grow"},dqe={key:0},uqe={class:"flex flex-row"},fqe={key:0,class:"flex gap-3"},hqe=Xe(()=>u("i",{"data-feather":"trash"},null,-1)),pqe=[hqe],gqe={key:1,class:"flex gap-3 mx-3 flex-1 items-center justify-end group-hover:visible duration-75"},mqe=Xe(()=>u("i",{"data-feather":"check"},null,-1)),_qe=[mqe],bqe=Xe(()=>u("i",{"data-feather":"x"},null,-1)),yqe=[bqe],vqe={class:"flex gap-3"},wqe=Xe(()=>u("i",{"data-feather":"log-out"},null,-1)),xqe=[wqe],kqe=Xe(()=>u("i",{"data-feather":"list"},null,-1)),Eqe=[kqe],Cqe={class:"z-20"},Aqe={class:"relative flex flex-row flex-grow mb-10"},Sqe={key:1,class:"gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"},Tqe=Xe(()=>u("p",{class:"px-3"},"No discussions are found",-1)),Mqe=[Tqe],Oqe=Xe(()=>u("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1)),Rqe={class:"z-20 h-max"},Nqe={class:"container pt-4 pb-10 mb-28"},Dqe=Xe(()=>u("div",{class:"absolute w-full bottom-0 bg-transparent p-10 pt-16 bg-gradient-to-t from-bg-light dark:from-bg-dark from-5% via-bg-light dark:via-bg-dark via-10% to-transparent to-100%"},null,-1)),Lqe={key:0,class:"bottom-0 container flex flex-row items-center justify-center"},Iqe={setup(){},data(){return{msgTypes:{MSG_TYPE_CHUNK:0,MSG_TYPE_FULL:1,MSG_TYPE_FULL_INVISIBLE_TO_AI:2,MSG_TYPE_FULL_INVISIBLE_TO_USER:3,MSG_TYPE_EXCEPTION:4,MSG_TYPE_WARNING:5,MSG_TYPE_INFO:6,MSG_TYPE_STEP:7,MSG_TYPE_STEP_START:8,MSG_TYPE_STEP_PROGRESS:9,MSG_TYPE_STEP_END:10,MSG_TYPE_JSON_INFOS:11,MSG_TYPE_REF:12,MSG_TYPE_CODE:13,MSG_TYPE_UI:14},list:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isGenerating:!1,isCheckbox:!1,isSelectAll:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav"),showToast:!1,isSearch:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],isDragOverDiscussion:!1,isDragOverChat:!1,panelCollapsed:!1,isOpen:!1}},methods:{showToastMessage(t){console.log("sending",t),this.$refs.toast.showToast(t,4,!0)},togglePanel(){this.panelCollapsed=!this.panelCollapsed},toggleDropdown(){this.isOpen=!this.isOpen},importChatGPT(){},async api_get_req(t){try{const e=await Se.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req");return}},async list_discussions(){try{const t=await Se.get("/list_discussions");if(t)return this.createDiscussionList(t.data),t.data}catch(t){return console.log("Error: Could not list discussions",t.message),[]}},async load_discussion(t){try{if(t){console.log("Loading discussion",t),this.loading=!0,this.discussionArr=[],this.setDiscussionLoading(t,this.loading);const e=await Se.post("/load_discussion",{id:t});this.loading=!1,this.setDiscussionLoading(t,this.loading),e&&(this.discussionArr=e.data.filter(n=>n.type==this.msgTypes.MSG_TYPE_CHUNK||n.type==this.msgTypes.MSG_TYPE_FULL),console.log("this.discussionArr"),console.log(this.discussionArr))}}catch(e){console.log(e.message,"load_discussion"),this.loading=!1,this.setDiscussionLoading(t,this.loading)}},async new_discussion(t){try{const e=await Se.get("/new_discussion",{params:{title:t}});if(e)return e.data}catch(e){return console.log("Error: Could not create new discussion",e.message),{}}},async delete_discussion(t){try{t&&(this.loading=!0,this.setDiscussionLoading(t,this.loading),await Se.post("/delete_discussion",{id:t}),this.loading=!1,this.setDiscussionLoading(t,this.loading))}catch(e){console.log("Error: Could not delete discussion",e.message),this.loading=!1,this.setDiscussionLoading(t,this.loading)}},async edit_title(t,e){try{if(t){this.loading=!0,this.setDiscussionLoading(t,this.loading);const n=await Se.post("/edit_title",{id:t,title:e});if(this.loading=!1,this.setDiscussionLoading(t,this.loading),n.status==200){const s=this.list.findIndex(r=>r.id==t),o=this.list[s];o.title=e,this.tempList=this.list}}}catch(n){console.log("Error: Could not edit title",n.message),this.loading=!1,this.setDiscussionLoading(t,this.loading)}},async delete_message(t){try{const e=await Se.get("/delete_message",{params:{id:t}});if(e)return e.data}catch(e){return console.log("Error: Could delete message",e.message),{}}},async stop_gen(){try{if(ze.emit("cancel_generation"),res)return res.data}catch(t){return console.log("Error: Could not stop generating",t.message),{}}},async message_rank_up(t){try{const e=await Se.get("/message_rank_up",{params:{id:t}});if(e)return e.data}catch(e){return console.log("Error: Could not rank up message",e.message),{}}},async message_rank_down(t){try{const e=await Se.get("/message_rank_down",{params:{id:t}});if(e)return e.data}catch(e){return console.log("Error: Could not rank down message",e.message),{}}},async update_message(t,e){try{const n=await Se.get("/update_message",{params:{id:t,message:e}});if(n)return n.data}catch(n){return console.log("Error: Could not update message",n.message),{}}},async export_multiple_discussions(t){try{if(t.length>0){const e=await Se.post("/export_multiple_discussions",{discussion_ids:t});if(e)return e.data}}catch(e){return console.log("Error: Could not export multiple discussions",e.message),{}}},async import_multiple_discussions(t){try{if(t.length>0){console.log("sending import",t);const e=await Se.post("/import_multiple_discussions",{jArray:t});if(e)return console.log("import response",e.data),e.data}}catch(e){console.log("Error: Could not import multiple discussions",e.message);return}},filterDiscussions(){this.filterInProgress||(this.filterInProgress=!0,setTimeout(()=>{this.filterTitle?this.list=this.tempList.filter(t=>t.title&&t.title.includes(this.filterTitle)):this.list=this.tempList,this.filterInProgress=!1},100))},async selectDiscussion(t){t&&(console.log("this.currentDiscussion",this.currentDiscussion),this.currentDiscussion===void 0?(this.currentDiscussion=t,this.setPageTitle(t),localStorage.setItem("selected_discussion",this.currentDiscussion.id),await this.load_discussion(t.id),this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)):this.currentDiscussion.id!=t.id&&(this.currentDiscussion=t,this.setPageTitle(t),localStorage.setItem("selected_discussion",this.currentDiscussion.id),await this.load_discussion(t.id),this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)),_e(()=>{const e=document.getElementById("dis-"+this.currentDiscussion.id);this.scrollToElementInContainer(e,"leftPanel");const n=document.getElementById("messages-list");this.scrollBottom(n)}))},scrollToElement(t){t?t.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}):console.log("Error: scrollToElement")},scrollToElementInContainer(t,e){try{const n=t.offsetTop;document.getElementById(e).scrollTo({top:n,behavior:"smooth"})}catch{}},scrollBottom(t){t?t.scrollTo({top:t.scrollHeight,behavior:"smooth"}):console.log("Error: scrollBottom")},scrollTop(t){t?t.scrollTo({top:0,behavior:"smooth"}):console.log("Error: scrollTop")},createUserMsg(t){let e={content:t.message,id:t.id,rank:0,sender:t.user,created_at:t.created_at,steps:[]};this.discussionArr.push(e),_e(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)})},updateLastUserMsg(t){const e=this.discussionArr.indexOf(s=>s.id=t.user_message_id),n={binding:t.binding,content:t.message,created_at:t.created_at,type:t.type,finished_generating_at:t.finished_generating_at,id:t.user_message_id,model:t.model,personality:t.personality,sender:t.user,steps:[]};e!==-1&&(this.discussionArr[e]=n)},socketIOConnected(){return console.log("socketIOConnected"),this.$store.dispatch("setIsConnected",!0),!0},socketIODisonnected(){return console.log("socketIOConnected"),this.$store.dispatch("setIsConnected",!1),!0},createBotMsg(t){if(console.log("create bot",t),t.status=="generation_started"){this.updateLastUserMsg(t);let e={content:"✍ please stand by ...",id:t.ai_message_id,parent:t.user_message_id,rank:0,sender:t.bot,created_at:t.created_at,steps:[]};this.discussionArr.push(e),(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&t.type=="input_message_infos"&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,t.message),console.log("infos",t)}else this.$refs.toast.showToast("It seems that no model has been loaded. Please download and install a model first, then try again.",4,!1),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),this.chime.play()},talk(t){this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Se.get("/get_generation_status",{}).then(e=>{e&&(e.data.status?console.log("Already generating"):(console.log("Generating message from ",e.data.status),ze.emit("generate_msg_from",{id:-1}),this.discussionArr.length>0&&Number(this.discussionArr[this.discussionArr.length-1].id)+1))}).catch(e=>{console.log("Error: Could not get generation status",e)})},sendMsg(t){if(!t){this.$refs.toast.showToast("Message contains no content!",4,!1);return}this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Se.get("/get_generation_status",{}).then(e=>{if(e)if(e.data.status)console.log("Already generating");else{ze.emit("generate_msg",{prompt:t});let n=0;this.discussionArr.length>0&&(n=Number(this.discussionArr[this.discussionArr.length-1].id)+1);let s={message:t,id:n,rank:0,user:"user",created_at:new Date().toLocaleString()};this.createUserMsg(s)}}).catch(e=>{console.log("Error: Could not get generation status",e)})},streamMessageContent(t){console.log("Received message",t);const e=t.user_message_id,n=t.discussion_id;if(this.setDiscussionLoading(n,!0),this.currentDiscussion.id==n){this.isGenerating=!0;const s=this.discussionArr.findIndex(r=>r.parent==e&&r.id==t.ai_message_id),o=this.discussionArr[s];if(o&&t.message_typei.message===t.data);r&&(r.done=!0)}else t.message_type==this.msgTypes.MSG_TYPE_EXCEPTION&&this.$refs.toast.showToast(t.data,4,!0)}this.$nextTick(()=>{ye.replace()})},async changeTitleUsingUserMSG(t,e){const n=this.list.findIndex(o=>o.id==t),s=this.list[n];e&&(s.title=e,this.tempList=this.list,await this.edit_title(t,e))},async createNewDiscussion(){this.loading=!0;const t=await this.new_discussion();this.loading=!1,await this.list_discussions();const e=this.list.findIndex(s=>s.id==t.id),n=this.list[e];this.selectDiscussion(n),_e(()=>{const s=document.getElementById("dis-"+t.id);this.scrollToElement(s)})},loadLastUsedDiscussion(){console.log("Loading last discussion");const t=localStorage.getItem("selected_discussion");if(console.log("Last discussion id: ",t),t){const e=this.list.findIndex(s=>s.id==t),n=this.list[e];n&&this.selectDiscussion(n)}},async deleteDiscussion(t){await this.delete_discussion(t),this.currentDiscussion.id==t&&(this.currentDiscussion={},this.discussionArr=[],this.setPageTitle()),this.list.splice(this.list.findIndex(e=>e.id==t),1),this.createDiscussionList(this.list)},async deleteDiscussionMulti(){const t=this.selectedDiscussions;for(let e=0;es.id==n.id),1)}this.tempList=this.list,this.isCheckbox=!1,this.$refs.toast.showToast("Removed ("+t.length+") items",4,!0),this.showConfirmation=!1,console.log("Multi delete done")},async deleteMessage(t){await this.delete_message(t).then(()=>{this.discussionArr.splice(this.discussionArr.findIndex(e=>e.id==t),1)}).catch(()=>{this.$refs.toast.showToast("Could not remove message",4,!1),console.log("Error: Could not delete message")})},async editTitle(t){const e=this.list.findIndex(s=>s.id==t.id),n=this.list[e];n.title=t.title,n.loading=!0,await this.edit_title(t.id,t.title),n.loading=!1},checkUncheckDiscussion(t,e){const n=this.list.findIndex(o=>o.id==e),s=this.list[n];s.checkBoxValue=t.target.checked,this.tempList=this.list},selectAllDiscussions(){this.isSelectAll=!this.tempList.filter(t=>t.checkBoxValue==!1).length>0;for(let t=0;t({id:n.id,title:n.title,selected:!1,loading:!1,checkBoxValue:!1})).sort(function(n,s){return s.id-n.id});this.list=e,this.tempList=e,console.log("List created")}},setDiscussionLoading(t,e){const n=this.list.findIndex(o=>o.id==t),s=this.list[n];s.loading=e},setPageTitle(t){if(t)if(t.id){const e=t.title?t.title==="untitled"?"New discussion":t.title:"New discussion";document.title="LoLLMS WebUI - "+e}else{const e=t||"Welcome";document.title="LoLLMS WebUI - "+e}else{const e=t||"Welcome";document.title="LoLLMS WebUI - "+e}},async rankUpMessage(t){await this.message_rank_up(t).then(e=>{const n=this.discussionArr[this.discussionArr.findIndex(s=>s.id==t)];n.rank=e.new_rank}).catch(()=>{this.$refs.toast.showToast("Could not rank up message",4,!1),console.log("Error: Could not rank up message")})},async rankDownMessage(t){await this.message_rank_down(t).then(e=>{const n=this.discussionArr[this.discussionArr.findIndex(s=>s.id==t)];n.rank=e.new_rank}).catch(()=>{this.$refs.toast.showToast("Could not rank down message",4,!1),console.log("Error: Could not rank down message")})},async updateMessage(t,e){await this.update_message(t,e).then(()=>{const n=this.discussionArr[this.discussionArr.findIndex(s=>s.id==t)];n.content=e}).catch(()=>{this.$refs.toast.showToast("Could not update message",4,!1),console.log("Error: Could not update message")})},resendMessage(t,e){_e(()=>{ye.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Se.get("/get_generation_status",{}).then(n=>{n&&(console.log(n),n.data.status?console.log("Already generating"):ze.emit("generate_msg_from",{prompt:e,id:t}))}).catch(n=>{console.log("Error: Could not get generation status",n)})},continueMessage(t,e){_e(()=>{ye.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Se.get("/get_generation_status",{}).then(n=>{n&&(console.log(n),n.data.status?console.log("Already generating"):ze.emit("continue_generate_msg_from",{prompt:e,id:t}))}).catch(n=>{console.log("Error: Could not get generation status",n)})},stopGenerating(){this.stop_gen(),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),console.log("Stopped generating"),_e(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)})},finalMsgEvent(t){console.log("final",t);const e=t.parent,n=t.discussion_id;if(this.currentDiscussion.id==n){const s=this.discussionArr.findIndex(r=>r.parent==e&&r.id==t.ai_message_id),o={binding:t.binding,content:t.data,created_at:t.created_at,finished_generating_at:t.finished_generating_at,id:t.ai_message_id,model:t.model,parent:t.user_message_id,personality:t.personality,rank:0,steps:t.steps,sender:t.bot,type:t.type};this.discussionArr[s]=o}_e(()=>{const s=document.getElementById("messages-list");this.scrollBottom(s)}),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),this.chime.play()},copyToClipBoard(t){this.$refs.toast.showToast("Copied to clipboard successfully",4,!0);let e="";t.message.binding&&(e=`Binding: ${t.message.binding}`);let n="";t.message.personality&&(n=` + `,544),[[Re,o.message]]),d("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:e[5]||(e[5]=(...c)=>r.addFiles&&r.addFiles(...c)),multiple:""},null,544),d("button",{type:"button",onClick:e[6]||(e[6]=le(c=>t.$refs.fileDialog.click(),["stop"])),title:"Add files",class:"absolute inset-y-0 right-0 flex items-center mr-2 w-6 hover:text-secondary duration-75 active:scale-90"},lze)]),d("div",cze,[n.loading?z("",!0):(A(),M("button",{key:0,type:"button",onClick:e[7]||(e[7]=(...c)=>r.submit&&r.submit(...c)),class:"w-6 hover:text-secondary duration-75 active:scale-90"},hze)),n.loading?(A(),M("div",fze,gze)):z("",!0)])])])])])])}const jg=Ge(Tje,[["render",mze],["__scopeId","data-v-7bd685fe"]]),_ze={name:"WelcomeComponent",setup(){return{}}},bze={class:"flex flex-col text-center"},yze=zs('
Logo

Lord of Large Language Models

One tool to rule them all


Welcome

Please create a new discussion or select existing one to start

',1),vze=[yze];function wze(t,e,n,s,o,r){return A(),M("div",bze,vze)}const zg=Ge(_ze,[["render",wze]]);const xze={setup(){return{}},name:"DragDrop",emits:["panelLeave","panelDrop"],data(){return{fileList:[],show:!1,dropRelease:!1}},mounted(){_e(()=>{ye.replace()})},methods:{async panelDrop(t){const e="getAsFileSystemHandle"in DataTransferItem.prototype,n="webkitGetAsEntry"in DataTransferItem.prototype;if(!e&&!n)return;const s=[...t.dataTransfer.items].filter(r=>r.kind==="file").map(r=>e?r.getAsFileSystemHandle():r.webkitGetAsEntry());let o=[];for await(const r of s)(r.kind==="directory"||r.isDirectory)&&o.push(r.name);this.dropRelease=!0,t.dataTransfer.files.length>0&&[...t.dataTransfer.files].forEach(r=>{o.includes(r.name)||this.fileList.push(r)}),_e(()=>{ye.replace()}),this.$emit("panelDrop",this.fileList),this.fileList=[],this.show=!1},panelLeave(){this.$emit("panelLeave"),console.log("exit/leave"),this.dropRelease=!1,this.show=!1,_e(()=>{ye.replace()})}}},kze={class:"text-4xl text-center"};function Eze(t,e,n,s,o,r){return A(),ot(Ut,{name:"list",tag:"div"},{default:Ke(()=>[o.show?(A(),M("div",{key:"dropmenu",class:"select-none text-slate-50 absolute top-0 left-0 right-0 bottom-0 flex flex-col items-center justify-center bg-black bg-opacity-50 duration-200 backdrop-blur-sm",onDragleave:e[0]||(e[0]=le(i=>r.panelLeave(i),["prevent"])),onDrop:e[1]||(e[1]=le(i=>r.panelDrop(i),["stop","prevent"]))},[d("div",{class:Te(["flex flex-col items-center justify-center p-8 rounded-lg shadow-lg border-dashed border-4 border-secondary w-4/5 h-4/5",o.dropRelease?"":"pointer-events-none"])},[d("div",kze,[wf(t.$slots,"default",{},()=>[we(" Drop your files here ")])])],2)],32)):z("",!0)]),_:3})}const pl=Ge(xze,[["render",Eze]]);var Cze=function(){function t(e,n){n===void 0&&(n=[]),this._eventType=e,this._eventFunctions=n}return t.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(n){typeof window<"u"&&window.addEventListener(e._eventType,n)})},t}(),Or=globalThis&&globalThis.__assign||function(){return Or=Object.assign||function(t){for(var e,n=1,s=arguments.length;n"u")return!1;var e=bt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Bze(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var s=e.styles[n]||{},o=e.attributes[n]||{},r=e.elements[n];!Ct(r)||!Qt(r)||(Object.assign(r.style,s),Object.keys(o).forEach(function(i){var a=o[i];a===!1?r.removeAttribute(i):r.setAttribute(i,a===!0?"":a)}))})}function $ze(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(s){var o=e.elements[s],r=e.attributes[s]||{},i=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:n[s]),a=i.reduce(function(l,c){return l[c]="",l},{});!Ct(o)||!Qt(o)||(Object.assign(o.style,a),Object.keys(r).forEach(function(l){o.removeAttribute(l)}))})}}const jze={name:"applyStyles",enabled:!0,phase:"write",fn:Bze,effect:$ze,requires:["computeStyles"]};function Wt(t){return t.split("-")[0]}var Qn=Math.max,Lr=Math.min,Ds=Math.round;function gl(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Jg(){return!/^((?!chrome|android).)*safari/i.test(gl())}function Ls(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var s=t.getBoundingClientRect(),o=1,r=1;e&&Ct(t)&&(o=t.offsetWidth>0&&Ds(s.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Ds(s.height)/t.offsetHeight||1);var i=es(t)?bt(t):window,a=i.visualViewport,l=!Jg()&&n,c=(s.left+(l&&a?a.offsetLeft:0))/o,u=(s.top+(l&&a?a.offsetTop:0))/r,h=s.width/o,p=s.height/r;return{width:h,height:p,top:u,right:c+h,bottom:u+p,left:c,x:c,y:u}}function yc(t){var e=Ls(t),n=t.offsetWidth,s=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:s}}function Xg(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&bc(n)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function cn(t){return bt(t).getComputedStyle(t)}function zze(t){return["table","td","th"].indexOf(Qt(t))>=0}function Nn(t){return((es(t)?t.ownerDocument:t.document)||window.document).documentElement}function yi(t){return Qt(t)==="html"?t:t.assignedSlot||t.parentNode||(bc(t)?t.host:null)||Nn(t)}function Ch(t){return!Ct(t)||cn(t).position==="fixed"?null:t.offsetParent}function Uze(t){var e=/firefox/i.test(gl()),n=/Trident/i.test(gl());if(n&&Ct(t)){var s=cn(t);if(s.position==="fixed")return null}var o=yi(t);for(bc(o)&&(o=o.host);Ct(o)&&["html","body"].indexOf(Qt(o))<0;){var r=cn(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}function Bo(t){for(var e=bt(t),n=Ch(t);n&&zze(n)&&cn(n).position==="static";)n=Ch(n);return n&&(Qt(n)==="html"||Qt(n)==="body"&&cn(n).position==="static")?e:n||Uze(t)||e}function vc(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function co(t,e,n){return Qn(t,Lr(e,n))}function qze(t,e,n){var s=co(t,e,n);return s>n?n:s}function em(){return{top:0,right:0,bottom:0,left:0}}function tm(t){return Object.assign({},em(),t)}function nm(t,e){return e.reduce(function(n,s){return n[s]=t,n},{})}var Hze=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,tm(typeof e!="number"?e:nm(e,Fo))};function Vze(t){var e,n=t.state,s=t.name,o=t.options,r=n.elements.arrow,i=n.modifiersData.popperOffsets,a=Wt(n.placement),l=vc(a),c=[pt,Tt].indexOf(a)>=0,u=c?"height":"width";if(!(!r||!i)){var h=Hze(o.padding,n),p=yc(r),g=l==="y"?ft:pt,f=l==="y"?St:Tt,m=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],v=i[l]-n.rects.reference[l],_=Bo(r),b=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,x=m/2-v/2,C=h[g],R=b-p[u]-h[f],O=b/2-p[u]/2+x,D=co(C,O,R),y=l;n.modifiersData[s]=(e={},e[y]=D,e.centerOffset=D-O,e)}}function Gze(t){var e=t.state,n=t.options,s=n.element,o=s===void 0?"[data-popper-arrow]":s;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||Xg(e.elements.popper,o)&&(e.elements.arrow=o))}const Kze={name:"arrow",enabled:!0,phase:"main",fn:Vze,effect:Gze,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Is(t){return t.split("-")[1]}var Wze={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zze(t,e){var n=t.x,s=t.y,o=e.devicePixelRatio||1;return{x:Ds(n*o)/o||0,y:Ds(s*o)/o||0}}function Ah(t){var e,n=t.popper,s=t.popperRect,o=t.placement,r=t.variation,i=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,h=t.isFixed,p=i.x,g=p===void 0?0:p,f=i.y,m=f===void 0?0:f,v=typeof u=="function"?u({x:g,y:m}):{x:g,y:m};g=v.x,m=v.y;var _=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),x=pt,C=ft,R=window;if(c){var O=Bo(n),D="clientHeight",y="clientWidth";if(O===bt(n)&&(O=Nn(n),cn(O).position!=="static"&&a==="absolute"&&(D="scrollHeight",y="scrollWidth")),O=O,o===ft||(o===pt||o===Tt)&&r===Mo){C=St;var k=h&&O===R&&R.visualViewport?R.visualViewport.height:O[D];m-=k-s.height,m*=l?1:-1}if(o===pt||(o===ft||o===St)&&r===Mo){x=Tt;var T=h&&O===R&&R.visualViewport?R.visualViewport.width:O[y];g-=T-s.width,g*=l?1:-1}}var L=Object.assign({position:a},c&&Wze),F=u===!0?Zze({x:g,y:m},bt(n)):{x:g,y:m};if(g=F.x,m=F.y,l){var Q;return Object.assign({},L,(Q={},Q[C]=b?"0":"",Q[x]=_?"0":"",Q.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",Q))}return Object.assign({},L,(e={},e[C]=b?m+"px":"",e[x]=_?g+"px":"",e.transform="",e))}function Yze(t){var e=t.state,n=t.options,s=n.gpuAcceleration,o=s===void 0?!0:s,r=n.adaptive,i=r===void 0?!0:r,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Wt(e.placement),variation:Is(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ah(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ah(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Qze={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Yze,data:{}};var Qo={passive:!0};function Jze(t){var e=t.state,n=t.instance,s=t.options,o=s.scroll,r=o===void 0?!0:o,i=s.resize,a=i===void 0?!0:i,l=bt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(u){u.addEventListener("scroll",n.update,Qo)}),a&&l.addEventListener("resize",n.update,Qo),function(){r&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Qo)}),a&&l.removeEventListener("resize",n.update,Qo)}}const Xze={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Jze,data:{}};var eUe={left:"right",right:"left",bottom:"top",top:"bottom"};function gr(t){return t.replace(/left|right|bottom|top/g,function(e){return eUe[e]})}var tUe={start:"end",end:"start"};function Sh(t){return t.replace(/start|end/g,function(e){return tUe[e]})}function wc(t){var e=bt(t),n=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:n,scrollTop:s}}function xc(t){return Ls(Nn(t)).left+wc(t).scrollLeft}function nUe(t,e){var n=bt(t),s=Nn(t),o=n.visualViewport,r=s.clientWidth,i=s.clientHeight,a=0,l=0;if(o){r=o.width,i=o.height;var c=Jg();(c||!c&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:i,x:a+xc(t),y:l}}function sUe(t){var e,n=Nn(t),s=wc(t),o=(e=t.ownerDocument)==null?void 0:e.body,r=Qn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Qn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-s.scrollLeft+xc(t),l=-s.scrollTop;return cn(o||n).direction==="rtl"&&(a+=Qn(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:i,x:a,y:l}}function kc(t){var e=cn(t),n=e.overflow,s=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+s)}function sm(t){return["html","body","#document"].indexOf(Qt(t))>=0?t.ownerDocument.body:Ct(t)&&kc(t)?t:sm(yi(t))}function uo(t,e){var n;e===void 0&&(e=[]);var s=sm(t),o=s===((n=t.ownerDocument)==null?void 0:n.body),r=bt(s),i=o?[r].concat(r.visualViewport||[],kc(s)?s:[]):s,a=e.concat(i);return o?a:a.concat(uo(yi(i)))}function ml(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function oUe(t,e){var n=Ls(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Th(t,e,n){return e===Yg?ml(nUe(t,n)):es(e)?oUe(e,n):ml(sUe(Nn(t)))}function rUe(t){var e=uo(yi(t)),n=["absolute","fixed"].indexOf(cn(t).position)>=0,s=n&&Ct(t)?Bo(t):t;return es(s)?e.filter(function(o){return es(o)&&Xg(o,s)&&Qt(o)!=="body"}):[]}function iUe(t,e,n,s){var o=e==="clippingParents"?rUe(t):[].concat(e),r=[].concat(o,[n]),i=r[0],a=r.reduce(function(l,c){var u=Th(t,c,s);return l.top=Qn(u.top,l.top),l.right=Lr(u.right,l.right),l.bottom=Lr(u.bottom,l.bottom),l.left=Qn(u.left,l.left),l},Th(t,i,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function om(t){var e=t.reference,n=t.element,s=t.placement,o=s?Wt(s):null,r=s?Is(s):null,i=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(o){case ft:l={x:i,y:e.y-n.height};break;case St:l={x:i,y:e.y+e.height};break;case Tt:l={x:e.x+e.width,y:a};break;case pt:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var c=o?vc(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(r){case Ns:l[c]=l[c]-(e[u]/2-n[u]/2);break;case Mo:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function Oo(t,e){e===void 0&&(e={});var n=e,s=n.placement,o=s===void 0?t.placement:s,r=n.strategy,i=r===void 0?t.strategy:r,a=n.boundary,l=a===void 0?Aze:a,c=n.rootBoundary,u=c===void 0?Yg:c,h=n.elementContext,p=h===void 0?Xs:h,g=n.altBoundary,f=g===void 0?!1:g,m=n.padding,v=m===void 0?0:m,_=tm(typeof v!="number"?v:nm(v,Fo)),b=p===Xs?Sze:Xs,x=t.rects.popper,C=t.elements[f?b:p],R=iUe(es(C)?C:C.contextElement||Nn(t.elements.popper),l,u,i),O=Ls(t.elements.reference),D=om({reference:O,element:x,strategy:"absolute",placement:o}),y=ml(Object.assign({},x,D)),k=p===Xs?y:O,T={top:R.top-k.top+_.top,bottom:k.bottom-R.bottom+_.bottom,left:R.left-k.left+_.left,right:k.right-R.right+_.right},L=t.modifiersData.offset;if(p===Xs&&L){var F=L[o];Object.keys(T).forEach(function(Q){var I=[Tt,St].indexOf(Q)>=0?1:-1,ae=[ft,St].indexOf(Q)>=0?"y":"x";T[Q]+=F[ae]*I})}return T}function aUe(t,e){e===void 0&&(e={});var n=e,s=n.placement,o=n.boundary,r=n.rootBoundary,i=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Qg:l,u=Is(s),h=u?a?Eh:Eh.filter(function(f){return Is(f)===u}):Fo,p=h.filter(function(f){return c.indexOf(f)>=0});p.length===0&&(p=h);var g=p.reduce(function(f,m){return f[m]=Oo(t,{placement:m,boundary:o,rootBoundary:r,padding:i})[Wt(m)],f},{});return Object.keys(g).sort(function(f,m){return g[f]-g[m]})}function lUe(t){if(Wt(t)===_c)return[];var e=gr(t);return[Sh(t),e,Sh(e)]}function cUe(t){var e=t.state,n=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var o=n.mainAxis,r=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,h=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,f=g===void 0?!0:g,m=n.allowedAutoPlacements,v=e.options.placement,_=Wt(v),b=_===v,x=l||(b||!f?[gr(v)]:lUe(v)),C=[v].concat(x).reduce(function(Ee,N){return Ee.concat(Wt(N)===_c?aUe(e,{placement:N,boundary:u,rootBoundary:h,padding:c,flipVariations:f,allowedAutoPlacements:m}):N)},[]),R=e.rects.reference,O=e.rects.popper,D=new Map,y=!0,k=C[0],T=0;T=0,ae=I?"width":"height",W=Oo(e,{placement:L,boundary:u,rootBoundary:h,altBoundary:p,padding:c}),S=I?Q?Tt:pt:Q?St:ft;R[ae]>O[ae]&&(S=gr(S));var q=gr(S),V=[];if(r&&V.push(W[F]<=0),a&&V.push(W[S]<=0,W[q]<=0),V.every(function(Ee){return Ee})){k=L,y=!1;break}D.set(L,V)}if(y)for(var be=f?3:1,ge=function(N){var J=C.find(function(H){var te=D.get(H);if(te)return te.slice(0,N).every(function(X){return X})});if(J)return k=J,"break"},ee=be;ee>0;ee--){var ve=ge(ee);if(ve==="break")break}e.placement!==k&&(e.modifiersData[s]._skip=!0,e.placement=k,e.reset=!0)}}const uUe={name:"flip",enabled:!0,phase:"main",fn:cUe,requiresIfExists:["offset"],data:{_skip:!1}};function Mh(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Oh(t){return[ft,Tt,St,pt].some(function(e){return t[e]>=0})}function dUe(t){var e=t.state,n=t.name,s=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,i=Oo(e,{elementContext:"reference"}),a=Oo(e,{altBoundary:!0}),l=Mh(i,s),c=Mh(a,o,r),u=Oh(l),h=Oh(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const hUe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:dUe};function fUe(t,e,n){var s=Wt(t),o=[pt,ft].indexOf(s)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,i=r[0],a=r[1];return i=i||0,a=(a||0)*o,[pt,Tt].indexOf(s)>=0?{x:a,y:i}:{x:i,y:a}}function pUe(t){var e=t.state,n=t.options,s=t.name,o=n.offset,r=o===void 0?[0,0]:o,i=Qg.reduce(function(u,h){return u[h]=fUe(h,e.rects,r),u},{}),a=i[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[s]=i}const gUe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pUe};function mUe(t){var e=t.state,n=t.name;e.modifiersData[n]=om({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const _Ue={name:"popperOffsets",enabled:!0,phase:"read",fn:mUe,data:{}};function bUe(t){return t==="x"?"y":"x"}function yUe(t){var e=t.state,n=t.options,s=t.name,o=n.mainAxis,r=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,h=n.padding,p=n.tether,g=p===void 0?!0:p,f=n.tetherOffset,m=f===void 0?0:f,v=Oo(e,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),_=Wt(e.placement),b=Is(e.placement),x=!b,C=vc(_),R=bUe(C),O=e.modifiersData.popperOffsets,D=e.rects.reference,y=e.rects.popper,k=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,T=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,F={x:0,y:0};if(O){if(r){var Q,I=C==="y"?ft:pt,ae=C==="y"?St:Tt,W=C==="y"?"height":"width",S=O[C],q=S+v[I],V=S-v[ae],be=g?-y[W]/2:0,ge=b===Ns?D[W]:y[W],ee=b===Ns?-y[W]:-D[W],ve=e.elements.arrow,Ee=g&&ve?yc(ve):{width:0,height:0},N=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:em(),J=N[I],H=N[ae],te=co(0,D[W],Ee[W]),X=x?D[W]/2-be-te-J-T.mainAxis:ge-te-J-T.mainAxis,fe=x?-D[W]/2+be+te+H+T.mainAxis:ee+te+H+T.mainAxis,ce=e.elements.arrow&&Bo(e.elements.arrow),w=ce?C==="y"?ce.clientTop||0:ce.clientLeft||0:0,E=(Q=L==null?void 0:L[C])!=null?Q:0,P=S+X-E-w,B=S+fe-E,$=co(g?Lr(q,P):q,S,g?Qn(V,B):V);O[C]=$,F[C]=$-S}if(a){var ne,re=C==="x"?ft:pt,j=C==="x"?St:Tt,se=O[R],U=R==="y"?"height":"width",Z=se+v[re],ie=se-v[j],de=[ft,pt].indexOf(_)!==-1,ue=(ne=L==null?void 0:L[R])!=null?ne:0,xe=de?Z:se-D[U]-y[U]-ue+T.altAxis,K=de?se+D[U]+y[U]-ue-T.altAxis:ie,oe=g&&de?qze(xe,se,K):co(g?xe:Z,se,g?K:ie);O[R]=oe,F[R]=oe-se}e.modifiersData[s]=F}}const vUe={name:"preventOverflow",enabled:!0,phase:"main",fn:yUe,requiresIfExists:["offset"]};function wUe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function xUe(t){return t===bt(t)||!Ct(t)?wc(t):wUe(t)}function kUe(t){var e=t.getBoundingClientRect(),n=Ds(e.width)/t.offsetWidth||1,s=Ds(e.height)/t.offsetHeight||1;return n!==1||s!==1}function EUe(t,e,n){n===void 0&&(n=!1);var s=Ct(e),o=Ct(e)&&kUe(e),r=Nn(e),i=Ls(t,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((Qt(e)!=="body"||kc(r))&&(a=xUe(e)),Ct(e)?(l=Ls(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=xc(r))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function CUe(t){var e=new Map,n=new Set,s=[];t.forEach(function(r){e.set(r.name,r)});function o(r){n.add(r.name);var i=[].concat(r.requires||[],r.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&o(l)}}),s.push(r)}return t.forEach(function(r){n.has(r.name)||o(r)}),s}function AUe(t){var e=CUe(t);return Fze.reduce(function(n,s){return n.concat(e.filter(function(o){return o.phase===s}))},[])}function SUe(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function TUe(t){var e=t.reduce(function(n,s){var o=n[s.name];return n[s.name]=o?Object.assign({},o,s,{options:Object.assign({},o.options,s.options),data:Object.assign({},o.data,s.data)}):s,n},{});return Object.keys(e).map(function(n){return e[n]})}var Rh={placement:"bottom",modifiers:[],strategy:"absolute"};function Nh(){for(var t=arguments.length,e=new Array(t),n=0;n(ns("data-v-2c119a50"),t=t(),ss(),t),DUe={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center"},LUe=Xe(()=>d("div",{class:"flex flex-col text-center"},[d("div",{class:"flex flex-col text-center items-center"},[d("div",{class:"flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"},[d("img",{class:"w-24 animate-bounce",title:"LoLLMS WebUI",src:Xl,alt:"Logo"}),d("div",{class:"flex flex-col items-start"},[d("p",{class:"text-2xl"},"Lord of Large Language Models"),d("p",{class:"text-gray-400 text-base"},"One tool to rule them all")])]),d("hr",{class:"mt-1 w-96 h-1 mx-auto my-2 md:my-2 dark:bg-bg-dark-tone-panel bg-bg-light-tone-panel border-0 rounded"}),d("p",{class:"text-2xl"},"Welcome"),d("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[d("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),d("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),d("span",{class:"text-2xl font-bold ml-4"},"Loading ...")])],-1)),IUe=[LUe],PUe=Xe(()=>d("i",{"data-feather":"chevron-right"},null,-1)),FUe=[PUe],BUe=Xe(()=>d("i",{"data-feather":"chevron-left"},null,-1)),$Ue=[BUe],jUe={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone"},zUe={class:"sticky z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md"},UUe={class:"flex-row p-4 flex items-center gap-3 flex-0"},qUe=Xe(()=>d("i",{"data-feather":"plus"},null,-1)),HUe=[qUe],VUe=Xe(()=>d("i",{"data-feather":"check-square"},null,-1)),GUe=[VUe],KUe=Xe(()=>d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},[d("i",{"data-feather":"refresh-ccw"})],-1)),WUe=Xe(()=>d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Export database",type:"button"},[d("i",{"data-feather":"database"})],-1)),ZUe=Xe(()=>d("i",{"data-feather":"log-in"},null,-1)),YUe=[ZUe],QUe={key:0,class:"dropdown"},JUe=Xe(()=>d("i",{"data-feather":"search"},null,-1)),XUe=[JUe],eqe={key:1,title:"Loading..",class:"flex flex-row flex-grow justify-end"},tqe=Xe(()=>d("div",{role:"status"},[d("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[d("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),d("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),d("span",{class:"sr-only"},"Loading...")],-1)),nqe=[tqe],sqe={key:0,class:"flex-row items-center gap-3 flex-0 w-full"},oqe={class:"p-4 pt-2"},rqe={class:"relative"},iqe=Xe(()=>d("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[d("div",{class:"scale-75"},[d("i",{"data-feather":"search"})])],-1)),aqe={class:"absolute inset-y-0 right-0 flex items-center pr-3"},lqe=Xe(()=>d("i",{"data-feather":"x"},null,-1)),cqe=[lqe],uqe={key:1,class:"h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark"},dqe={key:2,class:"flex flex-row flex-grow p-4 pt-0 items-center"},hqe={class:"flex flex-row flex-grow"},fqe={key:0},pqe={class:"flex flex-row"},gqe={key:0,class:"flex gap-3"},mqe=Xe(()=>d("i",{"data-feather":"trash"},null,-1)),_qe=[mqe],bqe={key:1,class:"flex gap-3 mx-3 flex-1 items-center justify-end group-hover:visible duration-75"},yqe=Xe(()=>d("i",{"data-feather":"check"},null,-1)),vqe=[yqe],wqe=Xe(()=>d("i",{"data-feather":"x"},null,-1)),xqe=[wqe],kqe={class:"flex gap-3"},Eqe=Xe(()=>d("i",{"data-feather":"log-out"},null,-1)),Cqe=[Eqe],Aqe=Xe(()=>d("i",{"data-feather":"list"},null,-1)),Sqe=[Aqe],Tqe={class:"z-20"},Mqe={class:"relative flex flex-row flex-grow mb-10"},Oqe={key:1,class:"gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"},Rqe=Xe(()=>d("p",{class:"px-3"},"No discussions are found",-1)),Nqe=[Rqe],Dqe=Xe(()=>d("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1)),Lqe={class:"z-20 h-max"},Iqe={class:"container pt-4 pb-10 mb-28"},Pqe=Xe(()=>d("div",{class:"absolute w-full bottom-0 bg-transparent p-10 pt-16 bg-gradient-to-t from-bg-light dark:from-bg-dark from-5% via-bg-light dark:via-bg-dark via-10% to-transparent to-100%"},null,-1)),Fqe={key:0,class:"bottom-0 container flex flex-row items-center justify-center"},Bqe={setup(){},data(){return{msgTypes:{MSG_TYPE_CHUNK:0,MSG_TYPE_FULL:1,MSG_TYPE_FULL_INVISIBLE_TO_AI:2,MSG_TYPE_FULL_INVISIBLE_TO_USER:3,MSG_TYPE_EXCEPTION:4,MSG_TYPE_WARNING:5,MSG_TYPE_INFO:6,MSG_TYPE_STEP:7,MSG_TYPE_STEP_START:8,MSG_TYPE_STEP_PROGRESS:9,MSG_TYPE_STEP_END:10,MSG_TYPE_JSON_INFOS:11,MSG_TYPE_REF:12,MSG_TYPE_CODE:13,MSG_TYPE_UI:14},list:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isGenerating:!1,isCheckbox:!1,isSelectAll:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav"),showToast:!1,isSearch:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],isDragOverDiscussion:!1,isDragOverChat:!1,panelCollapsed:!1,isOpen:!1}},methods:{showToastMessage(t){console.log("sending",t),this.$refs.toast.showToast(t,4,!0)},togglePanel(){this.panelCollapsed=!this.panelCollapsed},toggleDropdown(){this.isOpen=!this.isOpen},importChatGPT(){},async api_get_req(t){try{const e=await Se.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req");return}},async list_discussions(){try{const t=await Se.get("/list_discussions");if(t)return this.createDiscussionList(t.data),t.data}catch(t){return console.log("Error: Could not list discussions",t.message),[]}},async load_discussion(t){try{if(t){console.log("Loading discussion",t),this.loading=!0,this.discussionArr=[],this.setDiscussionLoading(t,this.loading);const e=await Se.post("/load_discussion",{id:t});this.loading=!1,this.setDiscussionLoading(t,this.loading),e&&(this.discussionArr=e.data.filter(n=>n.type==this.msgTypes.MSG_TYPE_CHUNK||n.type==this.msgTypes.MSG_TYPE_FULL),console.log("this.discussionArr"),console.log(this.discussionArr))}}catch(e){console.log(e.message,"load_discussion"),this.loading=!1,this.setDiscussionLoading(t,this.loading)}},async new_discussion(t){try{const e=await Se.get("/new_discussion",{params:{title:t}});if(e)return e.data}catch(e){return console.log("Error: Could not create new discussion",e.message),{}}},async delete_discussion(t){try{t&&(this.loading=!0,this.setDiscussionLoading(t,this.loading),await Se.post("/delete_discussion",{id:t}),this.loading=!1,this.setDiscussionLoading(t,this.loading))}catch(e){console.log("Error: Could not delete discussion",e.message),this.loading=!1,this.setDiscussionLoading(t,this.loading)}},async edit_title(t,e){try{if(t){this.loading=!0,this.setDiscussionLoading(t,this.loading);const n=await Se.post("/edit_title",{id:t,title:e});if(this.loading=!1,this.setDiscussionLoading(t,this.loading),n.status==200){const s=this.list.findIndex(r=>r.id==t),o=this.list[s];o.title=e,this.tempList=this.list}}}catch(n){console.log("Error: Could not edit title",n.message),this.loading=!1,this.setDiscussionLoading(t,this.loading)}},async delete_message(t){try{const e=await Se.get("/delete_message",{params:{id:t}});if(e)return e.data}catch(e){return console.log("Error: Could delete message",e.message),{}}},async stop_gen(){try{if(je.emit("cancel_generation"),res)return res.data}catch(t){return console.log("Error: Could not stop generating",t.message),{}}},async message_rank_up(t){try{const e=await Se.get("/message_rank_up",{params:{id:t}});if(e)return e.data}catch(e){return console.log("Error: Could not rank up message",e.message),{}}},async message_rank_down(t){try{const e=await Se.get("/message_rank_down",{params:{id:t}});if(e)return e.data}catch(e){return console.log("Error: Could not rank down message",e.message),{}}},async update_message(t,e){try{const n=await Se.get("/update_message",{params:{id:t,message:e}});if(n)return n.data}catch(n){return console.log("Error: Could not update message",n.message),{}}},async export_multiple_discussions(t){try{if(t.length>0){const e=await Se.post("/export_multiple_discussions",{discussion_ids:t});if(e)return e.data}}catch(e){return console.log("Error: Could not export multiple discussions",e.message),{}}},async import_multiple_discussions(t){try{if(t.length>0){console.log("sending import",t);const e=await Se.post("/import_multiple_discussions",{jArray:t});if(e)return console.log("import response",e.data),e.data}}catch(e){console.log("Error: Could not import multiple discussions",e.message);return}},filterDiscussions(){this.filterInProgress||(this.filterInProgress=!0,setTimeout(()=>{this.filterTitle?this.list=this.tempList.filter(t=>t.title&&t.title.includes(this.filterTitle)):this.list=this.tempList,this.filterInProgress=!1},100))},async selectDiscussion(t){t&&(console.log("this.currentDiscussion",this.currentDiscussion),this.currentDiscussion===void 0?(this.currentDiscussion=t,this.setPageTitle(t),localStorage.setItem("selected_discussion",this.currentDiscussion.id),await this.load_discussion(t.id),this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)):this.currentDiscussion.id!=t.id&&(this.currentDiscussion=t,this.setPageTitle(t),localStorage.setItem("selected_discussion",this.currentDiscussion.id),await this.load_discussion(t.id),this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)),_e(()=>{const e=document.getElementById("dis-"+this.currentDiscussion.id);this.scrollToElementInContainer(e,"leftPanel");const n=document.getElementById("messages-list");this.scrollBottom(n)}))},scrollToElement(t){t?t.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}):console.log("Error: scrollToElement")},scrollToElementInContainer(t,e){try{const n=t.offsetTop;document.getElementById(e).scrollTo({top:n,behavior:"smooth"})}catch{}},scrollBottom(t){t?t.scrollTo({top:t.scrollHeight,behavior:"smooth"}):console.log("Error: scrollBottom")},scrollTop(t){t?t.scrollTo({top:0,behavior:"smooth"}):console.log("Error: scrollTop")},createUserMsg(t){let e={content:t.message,id:t.id,rank:0,sender:t.user,created_at:t.created_at,steps:[]};this.discussionArr.push(e),_e(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)})},updateLastUserMsg(t){const e=this.discussionArr.indexOf(s=>s.id=t.user_message_id),n={binding:t.binding,content:t.message,created_at:t.created_at,type:t.type,finished_generating_at:t.finished_generating_at,id:t.user_message_id,model:t.model,personality:t.personality,sender:t.user,steps:[]};e!==-1&&(this.discussionArr[e]=n)},socketIOConnected(){return console.log("socketIOConnected"),this.$store.dispatch("setIsConnected",!0),!0},socketIODisonnected(){return console.log("socketIOConnected"),this.$store.dispatch("setIsConnected",!1),!0},createBotMsg(t){if(console.log("create bot",t),t.status=="generation_started"){this.updateLastUserMsg(t);let e={content:"✍ please stand by ...",id:t.ai_message_id,parent:t.user_message_id,rank:0,sender:t.bot,created_at:t.created_at,steps:[]};this.discussionArr.push(e),(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&t.type=="input_message_infos"&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,t.message),console.log("infos",t)}else this.$refs.toast.showToast("It seems that no model has been loaded. Please download and install a model first, then try again.",4,!1),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),this.chime.play()},talk(t){this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Se.get("/get_generation_status",{}).then(e=>{e&&(e.data.status?console.log("Already generating"):(console.log("Generating message from ",e.data.status),je.emit("generate_msg_from",{id:-1}),this.discussionArr.length>0&&Number(this.discussionArr[this.discussionArr.length-1].id)+1))}).catch(e=>{console.log("Error: Could not get generation status",e)})},sendMsg(t){if(!t){this.$refs.toast.showToast("Message contains no content!",4,!1);return}this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Se.get("/get_generation_status",{}).then(e=>{if(e)if(e.data.status)console.log("Already generating");else{je.emit("generate_msg",{prompt:t});let n=0;this.discussionArr.length>0&&(n=Number(this.discussionArr[this.discussionArr.length-1].id)+1);let s={message:t,id:n,rank:0,user:"user",created_at:new Date().toLocaleString()};this.createUserMsg(s)}}).catch(e=>{console.log("Error: Could not get generation status",e)})},streamMessageContent(t){console.log("Received message",t);const e=t.user_message_id,n=t.discussion_id;if(this.setDiscussionLoading(n,!0),this.currentDiscussion.id==n){this.isGenerating=!0;const s=this.discussionArr.findIndex(r=>r.parent==e&&r.id==t.ai_message_id),o=this.discussionArr[s];if(o&&t.message_typei.message===t.data);r&&(r.done=!0)}else t.message_type==this.msgTypes.MSG_TYPE_EXCEPTION&&this.$refs.toast.showToast(t.data,4,!0)}this.$nextTick(()=>{ye.replace()})},async changeTitleUsingUserMSG(t,e){const n=this.list.findIndex(o=>o.id==t),s=this.list[n];e&&(s.title=e,this.tempList=this.list,await this.edit_title(t,e))},async createNewDiscussion(){this.loading=!0;const t=await this.new_discussion();this.loading=!1,await this.list_discussions();const e=this.list.findIndex(s=>s.id==t.id),n=this.list[e];this.selectDiscussion(n),_e(()=>{const s=document.getElementById("dis-"+t.id);this.scrollToElement(s)})},loadLastUsedDiscussion(){console.log("Loading last discussion");const t=localStorage.getItem("selected_discussion");if(console.log("Last discussion id: ",t),t){const e=this.list.findIndex(s=>s.id==t),n=this.list[e];n&&this.selectDiscussion(n)}},async deleteDiscussion(t){await this.delete_discussion(t),this.currentDiscussion.id==t&&(this.currentDiscussion={},this.discussionArr=[],this.setPageTitle()),this.list.splice(this.list.findIndex(e=>e.id==t),1),this.createDiscussionList(this.list)},async deleteDiscussionMulti(){const t=this.selectedDiscussions;for(let e=0;es.id==n.id),1)}this.tempList=this.list,this.isCheckbox=!1,this.$refs.toast.showToast("Removed ("+t.length+") items",4,!0),this.showConfirmation=!1,console.log("Multi delete done")},async deleteMessage(t){await this.delete_message(t).then(()=>{this.discussionArr.splice(this.discussionArr.findIndex(e=>e.id==t),1)}).catch(()=>{this.$refs.toast.showToast("Could not remove message",4,!1),console.log("Error: Could not delete message")})},async editTitle(t){const e=this.list.findIndex(s=>s.id==t.id),n=this.list[e];n.title=t.title,n.loading=!0,await this.edit_title(t.id,t.title),n.loading=!1},checkUncheckDiscussion(t,e){const n=this.list.findIndex(o=>o.id==e),s=this.list[n];s.checkBoxValue=t.target.checked,this.tempList=this.list},selectAllDiscussions(){this.isSelectAll=!this.tempList.filter(t=>t.checkBoxValue==!1).length>0;for(let t=0;t({id:n.id,title:n.title,selected:!1,loading:!1,checkBoxValue:!1})).sort(function(n,s){return s.id-n.id});this.list=e,this.tempList=e,console.log("List created")}},setDiscussionLoading(t,e){const n=this.list.findIndex(o=>o.id==t),s=this.list[n];s.loading=e},setPageTitle(t){if(t)if(t.id){const e=t.title?t.title==="untitled"?"New discussion":t.title:"New discussion";document.title="LoLLMS WebUI - "+e}else{const e=t||"Welcome";document.title="LoLLMS WebUI - "+e}else{const e=t||"Welcome";document.title="LoLLMS WebUI - "+e}},async rankUpMessage(t){await this.message_rank_up(t).then(e=>{const n=this.discussionArr[this.discussionArr.findIndex(s=>s.id==t)];n.rank=e.new_rank}).catch(()=>{this.$refs.toast.showToast("Could not rank up message",4,!1),console.log("Error: Could not rank up message")})},async rankDownMessage(t){await this.message_rank_down(t).then(e=>{const n=this.discussionArr[this.discussionArr.findIndex(s=>s.id==t)];n.rank=e.new_rank}).catch(()=>{this.$refs.toast.showToast("Could not rank down message",4,!1),console.log("Error: Could not rank down message")})},async updateMessage(t,e){await this.update_message(t,e).then(()=>{const n=this.discussionArr[this.discussionArr.findIndex(s=>s.id==t)];n.content=e}).catch(()=>{this.$refs.toast.showToast("Could not update message",4,!1),console.log("Error: Could not update message")})},resendMessage(t,e){_e(()=>{ye.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Se.get("/get_generation_status",{}).then(n=>{n&&(console.log(n),n.data.status?console.log("Already generating"):je.emit("generate_msg_from",{prompt:e,id:t}))}).catch(n=>{console.log("Error: Could not get generation status",n)})},continueMessage(t,e){_e(()=>{ye.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Se.get("/get_generation_status",{}).then(n=>{n&&(console.log(n),n.data.status?console.log("Already generating"):je.emit("continue_generate_msg_from",{prompt:e,id:t}))}).catch(n=>{console.log("Error: Could not get generation status",n)})},stopGenerating(){this.stop_gen(),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),console.log("Stopped generating"),_e(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)})},finalMsgEvent(t){console.log("final",t);const e=t.parent,n=t.discussion_id;if(this.currentDiscussion.id==n){const s=this.discussionArr.findIndex(r=>r.parent==e&&r.id==t.ai_message_id),o={binding:t.binding,content:t.data,created_at:t.created_at,finished_generating_at:t.finished_generating_at,id:t.ai_message_id,model:t.model,parent:t.user_message_id,personality:t.personality,rank:0,steps:t.steps,sender:t.bot,type:t.type};this.discussionArr[s]=o}_e(()=>{const s=document.getElementById("messages-list");this.scrollBottom(s)}),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),this.chime.play()},copyToClipBoard(t){this.$refs.toast.showToast("Copied to clipboard successfully",4,!0);let e="";t.message.binding&&(e=`Binding: ${t.message.binding}`);let n="";t.message.personality&&(n=` Personality: ${t.message.personality}`);let s="";t.created_at_parsed&&(s=` Created: ${t.created_at_parsed}`);let o="";t.message.content&&(o=t.message.content);let r="";t.message.model&&(r=`Model: ${t.message.model}`);let i="";t.message.seed&&(i=`Seed: ${t.message.seed}`);let a="";t.time_spent&&(a=` Time spent: ${t.time_spent}`);let l="";l=`${e} ${r} ${i} ${a}`.trim();const c=`${t.message.sender}${n}${s} @@ -138,5 +138,5 @@ Time spent: ${t.time_spent}`);let l="";l=`${e} ${r} ${i} ${a}`.trim();const c=`$ ${o} ${l}`;navigator.clipboard.writeText(c),_e(()=>{ye.replace()})},closeToast(){this.showToast=!1},saveJSONtoFile(t,e){e=e||"data.json";const n=document.createElement("a");n.href=URL.createObjectURL(new Blob([JSON.stringify(t,null,2)],{type:"text/plain"})),n.setAttribute("download",e),document.body.appendChild(n),n.click(),document.body.removeChild(n)},parseJsonObj(t){try{return JSON.parse(t)}catch(e){return this.$refs.toast.showToast(`Could not parse JSON. -`+e.message,4,!1),null}},async parseJsonFile(t){return new Promise((e,n)=>{const s=new FileReader;s.onload=o=>e(this.parseJsonObj(o.target.result)),s.onerror=o=>n(o),s.readAsText(t)})},async exportDiscussions(){const t=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(t.length>0){console.log("export",t);let e=new Date;const n=e.getFullYear(),s=(e.getMonth()+1).toString().padStart(2,"0"),o=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),i=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),c="discussions_export_"+(n+"."+s+"."+o+"."+r+i+a)+".json";this.loading=!0;const d=await this.export_multiple_discussions(t);d?(this.saveJSONtoFile(d,c),this.$refs.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$refs.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async importDiscussions(t){const e=await this.parseJsonFile(t.target.files[0]);await this.import_multiple_discussions(e)?(this.$refs.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$refs.toast.showToast("Failed to import discussions",4,!1)},async getPersonalityAvatars(){for(;this.$store.state.personalities===null;)await new Promise(e=>setTimeout(e,100));let t=this.$store.state.personalities;this.personalityAvatars=t.map(e=>({name:e.name,avatar:e.avatar}))},getAvatar(t){const e=this.personalityAvatars.findIndex(s=>s.name===t),n=this.personalityAvatars[e];if(n)return n.avatar},setFileListChat(t){try{this.$refs.chatBox.fileList=this.$refs.chatBox.fileList.concat(t)}catch(e){this.$refs.toast.showToast(`Failed to set filelist in chatbox -`+e.message,4,!1)}this.isDragOverChat=!1},setDropZoneChat(){this.isDragOverChat=!0,this.$refs.dragdropChat.show=!0},async setFileListDiscussion(t){if(t.length>1){this.$refs.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(t[0]);await this.import_multiple_discussions(e)?(this.$refs.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$refs.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1},setDropZoneDiscussion(){this.isDragOverDiscussion=!0,this.$refs.dragdropDiscussion.show=!0}},async created(){for(this.$nextTick(()=>{ye.replace()}),console.log("Waiting to be ready");this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));console.log("Setting title"),this.setPageTitle(),console.log("listing discussions"),await this.list_discussions(),console.log("loading last discussion"),this.loadLastUsedDiscussion(),console.log("Discussions view is ready"),ze.on("infos",this.createBotMsg),ze.on("message",this.streamMessageContent),ze.on("final",this.finalMsgEvent),ze.on("connected",this.socketIOConnected),ze.on("disconnected",this.socketIODisconnected),console.log("Added events"),this.isCreated=!0},mounted(){this.$nextTick(()=>{ye.replace()})},async activated(){await this.getPersonalityAvatars(),this.isCreated&&_e(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)})},components:{Discussion:eg,Message:Bg,ChatBox:zg,WelcomeComponent:jg,Toast:ii,DragDrop:pl},watch:{filterTitle(t){t==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(t){_e(()=>{ye.replace()}),t||(this.isSelectAll=!1)},socketConnected(t){console.log("Websocket connected (watch)",t)},showConfirmation(){_e(()=>{ye.replace()})},isSearch(){_e(()=>{ye.replace()})}},computed:{isReady(){return console.log("verify ready",this.isCreated),this.isCreated},showPanel(){return this.$store.state.ready&&!this.panelCollapsed},socketConnected(){return console.log(" --- > Websocket connected"),this.$store.commit("setIsConnected",!0),!0},socketDisconnected(){return this.$store.commit("setIsConnected",!1),console.log(" --- > Websocket disconnected"),!0},selectedDiscussions(){return _e(()=>{ye.replace()}),this.list.filter(t=>t.checkBoxValue==!0)}}},Pqe=Object.assign(Iqe,{__name:"DiscussionsView",setup(t){return Zr(()=>{TUe()}),Se.defaults.baseURL="/",(e,n)=>(A(),M(Le,null,[Ae(wr,{name:"fade-and-fly"},{default:Ke(()=>[e.isReady?j("",!0):(A(),M("div",OUe,NUe))]),_:1}),e.isReady?(A(),M("button",{key:0,onClick:n[0]||(n[0]=(...s)=>e.togglePanel&&e.togglePanel(...s)),class:"absolute top-0 left-0 z-50 p-2 m-2 bg-white rounded-full shadow-md bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-primary-light dark:hover:bg-primary"},[me(u("div",null,LUe,512),[[at,e.panelCollapsed]]),me(u("div",null,PUe,512),[[at,!e.panelCollapsed]])])):j("",!0),Ae(wr,{name:"slide-right"},{default:Ke(()=>[e.showPanel?(A(),M("div",FUe,[u("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:n[16]||(n[16]=le(s=>e.setDropZoneDiscussion(),["stop","prevent"]))},[u("div",BUe,[u("div",$Ue,[u("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:n[1]||(n[1]=s=>e.createNewDiscussion())},jUe),u("button",{class:Te(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isCheckbox?"text-secondary":""]),title:"Edit discussion list",type:"button",onClick:n[2]||(n[2]=s=>e.isCheckbox=!e.isCheckbox)},qUe,2),HUe,VUe,u("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:n[3]||(n[3]=(...s)=>e.importDiscussions&&e.importDiscussions(...s))},null,544),u("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Import discussions",type:"button",onClick:n[4]||(n[4]=le(s=>e.$refs.fileDialog.click(),["stop"]))},KUe),e.isOpen?(A(),M("div",WUe,[u("button",{onClick:n[5]||(n[5]=(...s)=>e.importDiscussions&&e.importDiscussions(...s))},"LOLLMS"),u("button",{onClick:n[6]||(n[6]=(...s)=>e.importChatGPT&&e.importChatGPT(...s))},"ChatGPT")])):j("",!0),u("button",{class:Te(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isSearch?"text-secondary":""]),title:"Filter discussions",type:"button",onClick:n[7]||(n[7]=s=>e.isSearch=!e.isSearch)},YUe,2),e.loading?(A(),M("div",QUe,XUe)):j("",!0)]),e.isSearch?(A(),M("div",eqe,[u("div",tqe,[u("div",nqe,[sqe,u("div",oqe,[u("div",{class:Te(["hover:text-secondary duration-75 active:scale-90",e.filterTitle?"visible":"invisible"]),title:"Clear",onClick:n[8]||(n[8]=s=>e.filterTitle="")},iqe,2)]),me(u("input",{type:"search",id:"default-search",class:"block w-full p-2 pl-10 pr-10 text-sm border border-gray-300 rounded-lg bg-bg-light focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary",placeholder:"Search...",title:"Filter discussions by title","onUpdate:modelValue":n[9]||(n[9]=s=>e.filterTitle=s),onInput:n[10]||(n[10]=s=>e.filterDiscussions())},null,544),[[Re,e.filterTitle]])])])])):j("",!0),e.isCheckbox?(A(),M("hr",aqe)):j("",!0),e.isCheckbox?(A(),M("div",lqe,[u("div",cqe,[e.selectedDiscussions.length>0?(A(),M("p",dqe,"Selected: "+Y(e.selectedDiscussions.length),1)):j("",!0)]),u("div",uqe,[e.selectedDiscussions.length>0?(A(),M("div",fqe,[e.showConfirmation?j("",!0):(A(),M("button",{key:0,class:"flex mx-3 flex-1 text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:n[11]||(n[11]=le(s=>e.showConfirmation=!0,["stop"]))},pqe)),e.showConfirmation?(A(),M("div",gqe,[u("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:n[12]||(n[12]=le((...s)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...s),["stop"]))},_qe),u("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:n[13]||(n[13]=le(s=>e.showConfirmation=!1,["stop"]))},yqe)])):j("",!0)])):j("",!0),u("div",vqe,[u("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a file",type:"button",onClick:n[14]||(n[14]=le((...s)=>e.exportDiscussions&&e.exportDiscussions(...s),["stop"]))},xqe),u("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:n[15]||(n[15]=le((...s)=>e.selectAllDiscussions&&e.selectAllDiscussions(...s),["stop"]))},Eqe)])])])):j("",!0)]),u("div",Cqe,[Ae(pl,{ref:"dragdropDiscussion",onPanelDrop:e.setFileListDiscussion},{default:Ke(()=>[we("Drop your discussion file here ")]),_:1},8,["onPanelDrop"])]),u("div",Aqe,[u("div",{class:Te(["mx-4 flex flex-col flex-grow",e.isDragOverDiscussion?"pointer-events-none":""])},[u("div",{id:"dis-list",class:Te([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow"])},[e.list.length>0?(A(),ot(Ut,{key:0,name:"list"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(e.list,(s,o)=>(A(),ot(eg,{key:s.id,id:s.id,title:s.title,selected:e.currentDiscussion.id==s.id,loading:s.loading,isCheckbox:e.isCheckbox,checkBoxValue:s.checkBoxValue,onSelect:r=>e.selectDiscussion(s),onDelete:r=>e.deleteDiscussion(s.id),onEditTitle:e.editTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onEditTitle","onChecked"]))),128))]),_:1})):j("",!0),e.list.length<1?(A(),M("div",Sqe,Mqe)):j("",!0),Oqe],2)],2)])],32)])):j("",!0)]),_:1}),e.isReady?(A(),M("div",{key:1,class:"relative flex flex-col flex-grow",onDragover:n[17]||(n[17]=le(s=>e.setDropZoneChat(),["stop","prevent"]))},[u("div",Rqe,[Ae(pl,{ref:"dragdropChat",onPanelDrop:e.setFileListChat},null,8,["onPanelDrop"])]),u("div",{id:"messages-list",class:Te(["z-0 flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",e.isDragOverChat?"pointer-events-none":""])},[u("div",Nqe,[e.discussionArr.length>0?(A(),ot(Ut,{key:0,name:"list"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(e.discussionArr,(s,o)=>(A(),ot(Bg,{key:s.id,message:s,id:"msg-"+s.id,ref_for:!0,ref:"messages",onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(s.sender)},null,8,["message","id","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128))]),_:1})):j("",!0),e.currentDiscussion.id?j("",!0):(A(),ot(jg,{key:1}))]),Dqe,e.currentDiscussion.id?(A(),M("div",Lqe,[Ae(zg,{ref:"chatBox",onMessageSentEvent:e.sendMsg,loading:e.isGenerating,discussionList:e.discussionArr,onStopGenerating:e.stopGenerating,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk},null,8,["onMessageSentEvent","loading","discussionList","onStopGenerating","on-show-toast-message","on-talk"])])):j("",!0)],2)],32)):j("",!0),Ae(ii,{ref:"toast"},null,512)],64))}}),Fqe=Ge(Pqe,[["__scopeId","data-v-2c119a50"]]),Bqe=jy({history:ry("/"),routes:[{path:"/extensions/",name:"extensions",component:v2},{path:"/help/",name:"help",component:I2},{path:"/settings/",name:"settings",component:o8},{path:"/training/",name:"training",component:A8},{path:"/quantizing/",name:"quantizing",component:W8},{path:"/",name:"discussions",component:Fqe}]});const vi=Y1(_2);console.log("Loaded main.js");const $qe=x0({state(){return{ready:!1,settingsChanged:!1,isConnected:!1,config:null,mountedPers:null,mountedPersArr:null,bindingsArr:null,modelsArr:null,models_zoo:null,personalities:null,diskUsage:null,ramUsage:null,vramUsage:null}},mutations:{setIsConnected(t,e){t.isConnected=e},setConfig(t,e){t.config=e},setPersonalities(t,e){t.personalities=e},setMountedPers(t,e){t.mountedPers=e},setMountedPersArr(t,e){t.mountedPersArr=e},setBindingsArr(t,e){t.bindingsArr=e},setModelsArr(t,e){t.modelsArr=e},setDiskUsage(t,e){t.diskUsage=e},setRamUsage(t,e){t.ramUsage=e},setVramUsage(t,e){t.vramUsage=e},setModelsZoo(t,e){t.models_zoo=e}},getters:{getIsConnected(t){return t.isConnected},getConfig(t){return t.config},getPersonalities(t){return t.personalities},getMountedPersArr(t){return t.mountedPersArr},getMountedPers(t){return t.mountedPers},getbindingsArr(t){return t.bindingsArr},getModelsArr(t){return t.modelsArr},getDiskUsage(t){return t.diskUsage},getRamUsage(t){return t.ramUsage},getVramUsage(t){return t.vramUsage},getModelsZoo(t){return t.models_zoo}},actions:{async refreshConfig({commit:t}){console.log("Fetching configuration");try{const e=await Fn("get_config");let n=e.personalities[e.active_personality_id].split("/");e.personality_language=n[0],e.personality_category=n[1],e.personality_folder=n[2],t("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshPersonalitiesArr({commit:t}){let e=[];const n=await Fn("get_all_personalities"),s=Object.keys(n);for(let o=0;o{const g=this.state.config.personalities.includes(r+"/"+c+"/"+p.folder);let h={};return h=p,h.category=c,h.language=r,h.full_path=r+"/"+c+"/"+p.folder,h.isMounted=g,h});e.length==0?e=f:e=e.concat(f)}}e.sort((o,r)=>o.name.localeCompare(r.name)),t("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:t}){let e=[];for(let n=0;ni.full_path==s),r=this.state.personalities[o];r?e.push(r):e.push(this.state.personalities[this.state.personalities.findIndex(i=>i.full_path=="english/generic/lollms")])}t("setMountedPersArr",e),this.state.mountedPers=this.state.personalities[this.state.personalities.findIndex(n=>n.full_path==this.state.config.personalities[this.state.config.active_personality_id])]},async refreshBindings({commit:t}){let e=await Fn("list_bindings");t("setBindingsArr",e)},async refreshModels({commit:t}){let e=await Fn("list_models");t("setModelsArr",e)},async refreshDiskUsage({commit:t}){this.state.diskUsage=await Fn("disk_usage")},async refreshRamUsage({commit:t}){this.state.ramUsage=await Fn("ram_usage")},async refreshVramUsage({commit:t}){console.log("getting gpu data");const e=await Fn("vram_usage"),n=[];if(e.nb_gpus>0){for(let o=0;o{console.log("found models");let n=e.data;n.sort((s,o)=>s.title.localeCompare(o.title));for(let s=0;si.title==o)==-1){let i={};i.title=o,i.path=o,i.icon="",i.isCustomModel=!0,i.isInstalled=!0,n.push(i)}}n.sort((s,o)=>s.isInstalled&&!o.isInstalled?-1:!s.isInstalled&&o.isInstalled?1:0),n.forEach(s=>{s.title==this.state.config.model_name?s.selected=!0:s.selected=!1}),t("setModelsZoo",n),console.log("Models zoo loaded successfully")}).catch(e=>{console.log(e.message,"fetchModels")})},fetchCustomModels({commit:t}){Se.get("/list_models").then(e=>{}).catch(e=>{console.log(e.message,"fetchCustomModels")})}}});async function Fn(t){try{const e=await Se.get("/"+t);if(e)return e.data}catch(e){throw console.log(e.message,"api_get_req"),e}}let If=!1;vi.mixin({created(){If||(If=!0,console.log("Calling"),this.$store.dispatch("refreshConfig").then(()=>{console.log("recovered config"),this.$store.dispatch("refreshPersonalitiesArr").then(()=>{this.$store.dispatch("refreshMountedPersonalities"),this.$store.dispatch("refreshBindings"),this.$store.dispatch("refreshModels"),this.$store.dispatch("refreshDiskUsage"),this.$store.dispatch("refreshRamUsage"),this.$store.dispatch("refreshVramUsage"),this.$store.dispatch("refreshModelsZoo"),this.$store.state.ready=!0,console.log("done loading data")})}))},beforeMount(){}});vi.use(Bqe);vi.use($qe);vi.mount("#app"); +`+e.message,4,!1),null}},async parseJsonFile(t){return new Promise((e,n)=>{const s=new FileReader;s.onload=o=>e(this.parseJsonObj(o.target.result)),s.onerror=o=>n(o),s.readAsText(t)})},async exportDiscussions(){const t=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(t.length>0){console.log("export",t);let e=new Date;const n=e.getFullYear(),s=(e.getMonth()+1).toString().padStart(2,"0"),o=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),i=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),c="discussions_export_"+(n+"."+s+"."+o+"."+r+i+a)+".json";this.loading=!0;const u=await this.export_multiple_discussions(t);u?(this.saveJSONtoFile(u,c),this.$refs.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$refs.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async importDiscussions(t){const e=await this.parseJsonFile(t.target.files[0]);await this.import_multiple_discussions(e)?(this.$refs.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$refs.toast.showToast("Failed to import discussions",4,!1)},async getPersonalityAvatars(){for(;this.$store.state.personalities===null;)await new Promise(e=>setTimeout(e,100));let t=this.$store.state.personalities;this.personalityAvatars=t.map(e=>({name:e.name,avatar:e.avatar}))},getAvatar(t){const e=this.personalityAvatars.findIndex(s=>s.name===t),n=this.personalityAvatars[e];if(n)return n.avatar},setFileListChat(t){try{this.$refs.chatBox.fileList=this.$refs.chatBox.fileList.concat(t)}catch(e){this.$refs.toast.showToast(`Failed to set filelist in chatbox +`+e.message,4,!1)}this.isDragOverChat=!1},setDropZoneChat(){this.isDragOverChat=!0,this.$refs.dragdropChat.show=!0},async setFileListDiscussion(t){if(t.length>1){this.$refs.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(t[0]);await this.import_multiple_discussions(e)?(this.$refs.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$refs.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1},setDropZoneDiscussion(){this.isDragOverDiscussion=!0,this.$refs.dragdropDiscussion.show=!0}},async created(){for(this.$nextTick(()=>{ye.replace()}),console.log("Waiting to be ready");this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));console.log("Setting title"),this.setPageTitle(),console.log("listing discussions"),await this.list_discussions(),console.log("loading last discussion"),this.loadLastUsedDiscussion(),console.log("Discussions view is ready"),je.on("infos",this.createBotMsg),je.on("message",this.streamMessageContent),je.on("final",this.finalMsgEvent),je.on("connected",this.socketIOConnected),je.on("disconnected",this.socketIODisconnected),console.log("Added events"),this.isCreated=!0},mounted(){this.$nextTick(()=>{ye.replace()})},async activated(){await this.getPersonalityAvatars(),this.isCreated&&_e(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)})},components:{Discussion:eg,Message:Bg,ChatBox:jg,WelcomeComponent:zg,Toast:ii,DragDrop:pl},watch:{filterTitle(t){t==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(t){_e(()=>{ye.replace()}),t||(this.isSelectAll=!1)},socketConnected(t){console.log("Websocket connected (watch)",t)},showConfirmation(){_e(()=>{ye.replace()})},isSearch(){_e(()=>{ye.replace()})}},computed:{isReady(){return console.log("verify ready",this.isCreated),this.isCreated},showPanel(){return this.$store.state.ready&&!this.panelCollapsed},socketConnected(){return console.log(" --- > Websocket connected"),this.$store.commit("setIsConnected",!0),!0},socketDisconnected(){return this.$store.commit("setIsConnected",!1),console.log(" --- > Websocket disconnected"),!0},selectedDiscussions(){return _e(()=>{ye.replace()}),this.list.filter(t=>t.checkBoxValue==!0)}}},$qe=Object.assign(Bqe,{__name:"DiscussionsView",setup(t){return Zr(()=>{RUe()}),Se.defaults.baseURL="/",(e,n)=>(A(),M(Le,null,[Ae(wr,{name:"fade-and-fly"},{default:Ke(()=>[e.isReady?z("",!0):(A(),M("div",DUe,IUe))]),_:1}),e.isReady?(A(),M("button",{key:0,onClick:n[0]||(n[0]=(...s)=>e.togglePanel&&e.togglePanel(...s)),class:"absolute top-0 left-0 z-50 p-2 m-2 bg-white rounded-full shadow-md bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-primary-light dark:hover:bg-primary"},[me(d("div",null,FUe,512),[[at,e.panelCollapsed]]),me(d("div",null,$Ue,512),[[at,!e.panelCollapsed]])])):z("",!0),Ae(wr,{name:"slide-right"},{default:Ke(()=>[e.showPanel?(A(),M("div",jUe,[d("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:n[16]||(n[16]=le(s=>e.setDropZoneDiscussion(),["stop","prevent"]))},[d("div",zUe,[d("div",UUe,[d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:n[1]||(n[1]=s=>e.createNewDiscussion())},HUe),d("button",{class:Te(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isCheckbox?"text-secondary":""]),title:"Edit discussion list",type:"button",onClick:n[2]||(n[2]=s=>e.isCheckbox=!e.isCheckbox)},GUe,2),KUe,WUe,d("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:n[3]||(n[3]=(...s)=>e.importDiscussions&&e.importDiscussions(...s))},null,544),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Import discussions",type:"button",onClick:n[4]||(n[4]=le(s=>e.$refs.fileDialog.click(),["stop"]))},YUe),e.isOpen?(A(),M("div",QUe,[d("button",{onClick:n[5]||(n[5]=(...s)=>e.importDiscussions&&e.importDiscussions(...s))},"LOLLMS"),d("button",{onClick:n[6]||(n[6]=(...s)=>e.importChatGPT&&e.importChatGPT(...s))},"ChatGPT")])):z("",!0),d("button",{class:Te(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isSearch?"text-secondary":""]),title:"Filter discussions",type:"button",onClick:n[7]||(n[7]=s=>e.isSearch=!e.isSearch)},XUe,2),e.loading?(A(),M("div",eqe,nqe)):z("",!0)]),e.isSearch?(A(),M("div",sqe,[d("div",oqe,[d("div",rqe,[iqe,d("div",aqe,[d("div",{class:Te(["hover:text-secondary duration-75 active:scale-90",e.filterTitle?"visible":"invisible"]),title:"Clear",onClick:n[8]||(n[8]=s=>e.filterTitle="")},cqe,2)]),me(d("input",{type:"search",id:"default-search",class:"block w-full p-2 pl-10 pr-10 text-sm border border-gray-300 rounded-lg bg-bg-light focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary",placeholder:"Search...",title:"Filter discussions by title","onUpdate:modelValue":n[9]||(n[9]=s=>e.filterTitle=s),onInput:n[10]||(n[10]=s=>e.filterDiscussions())},null,544),[[Re,e.filterTitle]])])])])):z("",!0),e.isCheckbox?(A(),M("hr",uqe)):z("",!0),e.isCheckbox?(A(),M("div",dqe,[d("div",hqe,[e.selectedDiscussions.length>0?(A(),M("p",fqe,"Selected: "+Y(e.selectedDiscussions.length),1)):z("",!0)]),d("div",pqe,[e.selectedDiscussions.length>0?(A(),M("div",gqe,[e.showConfirmation?z("",!0):(A(),M("button",{key:0,class:"flex mx-3 flex-1 text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:n[11]||(n[11]=le(s=>e.showConfirmation=!0,["stop"]))},_qe)),e.showConfirmation?(A(),M("div",bqe,[d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:n[12]||(n[12]=le((...s)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...s),["stop"]))},vqe),d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:n[13]||(n[13]=le(s=>e.showConfirmation=!1,["stop"]))},xqe)])):z("",!0)])):z("",!0),d("div",kqe,[d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a file",type:"button",onClick:n[14]||(n[14]=le((...s)=>e.exportDiscussions&&e.exportDiscussions(...s),["stop"]))},Cqe),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:n[15]||(n[15]=le((...s)=>e.selectAllDiscussions&&e.selectAllDiscussions(...s),["stop"]))},Sqe)])])])):z("",!0)]),d("div",Tqe,[Ae(pl,{ref:"dragdropDiscussion",onPanelDrop:e.setFileListDiscussion},{default:Ke(()=>[we("Drop your discussion file here ")]),_:1},8,["onPanelDrop"])]),d("div",Mqe,[d("div",{class:Te(["mx-4 flex flex-col flex-grow",e.isDragOverDiscussion?"pointer-events-none":""])},[d("div",{id:"dis-list",class:Te([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow"])},[e.list.length>0?(A(),ot(Ut,{key:0,name:"list"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(e.list,(s,o)=>(A(),ot(eg,{key:s.id,id:s.id,title:s.title,selected:e.currentDiscussion.id==s.id,loading:s.loading,isCheckbox:e.isCheckbox,checkBoxValue:s.checkBoxValue,onSelect:r=>e.selectDiscussion(s),onDelete:r=>e.deleteDiscussion(s.id),onEditTitle:e.editTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onEditTitle","onChecked"]))),128))]),_:1})):z("",!0),e.list.length<1?(A(),M("div",Oqe,Nqe)):z("",!0),Dqe],2)],2)])],32)])):z("",!0)]),_:1}),e.isReady?(A(),M("div",{key:1,class:"relative flex flex-col flex-grow",onDragover:n[17]||(n[17]=le(s=>e.setDropZoneChat(),["stop","prevent"]))},[d("div",Lqe,[Ae(pl,{ref:"dragdropChat",onPanelDrop:e.setFileListChat},null,8,["onPanelDrop"])]),d("div",{id:"messages-list",class:Te(["z-0 flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",e.isDragOverChat?"pointer-events-none":""])},[d("div",Iqe,[e.discussionArr.length>0?(A(),ot(Ut,{key:0,name:"list"},{default:Ke(()=>[(A(!0),M(Le,null,Qe(e.discussionArr,(s,o)=>(A(),ot(Bg,{key:s.id,message:s,id:"msg-"+s.id,ref_for:!0,ref:"messages",onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(s.sender)},null,8,["message","id","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128))]),_:1})):z("",!0),e.currentDiscussion.id?z("",!0):(A(),ot(zg,{key:1}))]),Pqe,e.currentDiscussion.id?(A(),M("div",Fqe,[Ae(jg,{ref:"chatBox",onMessageSentEvent:e.sendMsg,loading:e.isGenerating,discussionList:e.discussionArr,onStopGenerating:e.stopGenerating,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk},null,8,["onMessageSentEvent","loading","discussionList","onStopGenerating","on-show-toast-message","on-talk"])])):z("",!0)],2)],32)):z("",!0),Ae(ii,{ref:"toast"},null,512)],64))}}),jqe=Ge($qe,[["__scopeId","data-v-2c119a50"]]),zqe=zy({history:ry("/"),routes:[{path:"/extensions/",name:"extensions",component:v2},{path:"/help/",name:"help",component:I2},{path:"/settings/",name:"settings",component:a8},{path:"/training/",name:"training",component:M8},{path:"/quantizing/",name:"quantizing",component:Q8},{path:"/",name:"discussions",component:jqe}]});const vi=Y1(_2);console.log("Loaded main.js");const Uqe=x0({state(){return{ready:!1,settingsChanged:!1,isConnected:!1,config:null,mountedPers:null,mountedPersArr:null,bindingsArr:null,modelsArr:null,models_zoo:null,personalities:null,diskUsage:null,ramUsage:null,vramUsage:null}},mutations:{setIsConnected(t,e){t.isConnected=e},setConfig(t,e){t.config=e},setPersonalities(t,e){t.personalities=e},setMountedPers(t,e){t.mountedPers=e},setMountedPersArr(t,e){t.mountedPersArr=e},setBindingsArr(t,e){t.bindingsArr=e},setModelsArr(t,e){t.modelsArr=e},setDiskUsage(t,e){t.diskUsage=e},setRamUsage(t,e){t.ramUsage=e},setVramUsage(t,e){t.vramUsage=e},setModelsZoo(t,e){t.models_zoo=e}},getters:{getIsConnected(t){return t.isConnected},getConfig(t){return t.config},getPersonalities(t){return t.personalities},getMountedPersArr(t){return t.mountedPersArr},getMountedPers(t){return t.mountedPers},getbindingsArr(t){return t.bindingsArr},getModelsArr(t){return t.modelsArr},getDiskUsage(t){return t.diskUsage},getRamUsage(t){return t.ramUsage},getVramUsage(t){return t.vramUsage},getModelsZoo(t){return t.models_zoo}},actions:{async refreshConfig({commit:t}){console.log("Fetching configuration");try{const e=await Fn("get_config");let n=e.personalities[e.active_personality_id].split("/");e.personality_language=n[0],e.personality_category=n[1],e.personality_folder=n[2],t("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshPersonalitiesArr({commit:t}){let e=[];const n=await Fn("get_all_personalities"),s=Object.keys(n);for(let o=0;o{const g=this.state.config.personalities.includes(r+"/"+c+"/"+p.folder);let f={};return f=p,f.category=c,f.language=r,f.full_path=r+"/"+c+"/"+p.folder,f.isMounted=g,f});e.length==0?e=h:e=e.concat(h)}}e.sort((o,r)=>o.name.localeCompare(r.name)),t("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:t}){let e=[];for(let n=0;ni.full_path==s),r=this.state.personalities[o];r?e.push(r):e.push(this.state.personalities[this.state.personalities.findIndex(i=>i.full_path=="english/generic/lollms")])}t("setMountedPersArr",e),this.state.mountedPers=this.state.personalities[this.state.personalities.findIndex(n=>n.full_path==this.state.config.personalities[this.state.config.active_personality_id])]},async refreshBindings({commit:t}){let e=await Fn("list_bindings");t("setBindingsArr",e)},async refreshModels({commit:t}){let e=await Fn("list_models");t("setModelsArr",e)},async refreshDiskUsage({commit:t}){this.state.diskUsage=await Fn("disk_usage")},async refreshRamUsage({commit:t}){this.state.ramUsage=await Fn("ram_usage")},async refreshVramUsage({commit:t}){console.log("getting gpu data");const e=await Fn("vram_usage"),n=[];if(e.nb_gpus>0){for(let o=0;o{console.log("found models");let n=e.data;n.sort((s,o)=>s.title.localeCompare(o.title));for(let s=0;si.title==o)==-1){let i={};i.title=o,i.path=o,i.icon="",i.isCustomModel=!0,i.isInstalled=!0,n.push(i)}}n.sort((s,o)=>s.isInstalled&&!o.isInstalled?-1:!s.isInstalled&&o.isInstalled?1:0),n.forEach(s=>{s.title==this.state.config.model_name?s.selected=!0:s.selected=!1}),t("setModelsZoo",n),console.log("Models zoo loaded successfully")}).catch(e=>{console.log(e.message,"fetchModels")})},fetchCustomModels({commit:t}){Se.get("/list_models").then(e=>{}).catch(e=>{console.log(e.message,"fetchCustomModels")})}}});async function Fn(t){try{const e=await Se.get("/"+t);if(e)return e.data}catch(e){throw console.log(e.message,"api_get_req"),e}}let Lh=!1;vi.mixin({created(){Lh||(Lh=!0,console.log("Calling"),this.$store.dispatch("refreshConfig").then(()=>{console.log("recovered config"),this.$store.dispatch("refreshPersonalitiesArr").then(()=>{this.$store.dispatch("refreshMountedPersonalities"),this.$store.dispatch("refreshBindings"),this.$store.dispatch("refreshModels"),this.$store.dispatch("refreshDiskUsage"),this.$store.dispatch("refreshRamUsage"),this.$store.dispatch("refreshVramUsage"),this.$store.dispatch("refreshModelsZoo"),this.$store.state.ready=!0,console.log("done loading data")})}))},beforeMount(){}});vi.use(zqe);vi.use(Uqe);vi.mount("#app"); diff --git a/web/dist/assets/index-7a82d60e.css b/web/dist/assets/index-bec8b3bc.css similarity index 99% rename from web/dist/assets/index-7a82d60e.css rename to web/dist/assets/index-bec8b3bc.css index 7ebdc789..a65e4702 100644 --- a/web/dist/assets/index-7a82d60e.css +++ b/web/dist/assets/index-bec8b3bc.css @@ -1,4 +1,4 @@ -.dot{width:10px;height:10px;border-radius:50%}.dot-green{background-color:green}.dot-red{background-color:red}.scrollbar[data-v-3cb88319]{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);white-space:pre-wrap;overflow-wrap:break-word}.scrollbar[data-v-3cb88319]::-webkit-scrollbar{width:8px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-track{background-color:var(--scrollbar-track-color)}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:4px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover-color)}.toastItem-enter-active[data-v-3ffdabf3],.toastItem-leave-active[data-v-3ffdabf3]{transition:all .5s ease}.toastItem-enter-from[data-v-3ffdabf3],.toastItem-leave-to[data-v-3ffdabf3]{opacity:0;transform:translate(-30px)}.list-move[data-v-cdb9dcf7],.list-enter-active[data-v-cdb9dcf7],.list-leave-active[data-v-cdb9dcf7]{transition:all .5s ease}.list-enter-from[data-v-cdb9dcf7]{transform:translatey(-30px)}.list-leave-to[data-v-cdb9dcf7]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-cdb9dcf7]{position:absolute}.bounce-enter-active[data-v-cdb9dcf7]{animation:bounce-in-cdb9dcf7 .5s}.bounce-leave-active[data-v-cdb9dcf7]{animation:bounce-in-cdb9dcf7 .5s reverse}@keyframes bounce-in-cdb9dcf7{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-cdb9dcf7]{background-color:#0ff}.hover[data-v-cdb9dcf7]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-cdb9dcf7]{font-weight:700}.hljs-comment,.hljs-quote{color:#7285b7}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ff9da4}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#ffc58f}.hljs-attribute{color:#ffeead}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#d1f1a9}.hljs-section,.hljs-title{color:#bbdaff}.hljs-keyword,.hljs-selector-tag{color:#ebbbff}.hljs{background:#002451;color:#fff}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! +.dot{width:10px;height:10px;border-radius:50%}.dot-green{background-color:green}.dot-red{background-color:red}.scrollbar[data-v-3cb88319]{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);white-space:pre-wrap;overflow-wrap:break-word}.scrollbar[data-v-3cb88319]::-webkit-scrollbar{width:8px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-track{background-color:var(--scrollbar-track-color)}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:4px}.scrollbar[data-v-3cb88319]::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover-color)}.toastItem-enter-active[data-v-3ffdabf3],.toastItem-leave-active[data-v-3ffdabf3]{transition:all .5s ease}.toastItem-enter-from[data-v-3ffdabf3],.toastItem-leave-to[data-v-3ffdabf3]{opacity:0;transform:translate(-30px)}.list-move[data-v-ec3927a6],.list-enter-active[data-v-ec3927a6],.list-leave-active[data-v-ec3927a6]{transition:all .5s ease}.list-enter-from[data-v-ec3927a6]{transform:translatey(-30px)}.list-leave-to[data-v-ec3927a6]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-ec3927a6]{position:absolute}.bounce-enter-active[data-v-ec3927a6]{animation:bounce-in-ec3927a6 .5s}.bounce-leave-active[data-v-ec3927a6]{animation:bounce-in-ec3927a6 .5s reverse}@keyframes bounce-in-ec3927a6{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-ec3927a6]{background-color:#0ff}.hover[data-v-ec3927a6]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-ec3927a6]{font-weight:700}.hljs-comment,.hljs-quote{color:#7285b7}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ff9da4}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#ffc58f}.hljs-attribute{color:#ffeead}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#d1f1a9}.hljs-section,.hljs-title{color:#bbdaff}.hljs-keyword,.hljs-selector-tag{color:#ebbbff}.hljs{background:#002451;color:#fff}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! Theme: Tokyo-night-Dark origin: https://github.com/enkia/tokyo-night-vscode-theme Description: Original highlight.js style diff --git a/web/dist/index.html b/web/dist/index.html index 57d101af..f58929b9 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -6,8 +6,8 @@ LoLLMS WebUI - Welcome - - + +
diff --git a/web/src/views/SettingsView.vue b/web/src/views/SettingsView.vue index b060a381..0971434a 100644 --- a/web/src/views/SettingsView.vue +++ b/web/src/views/SettingsView.vue @@ -610,7 +610,7 @@ - + - + + +
+ +
+
+ +
+ +
+ +
@@ -2785,6 +2802,15 @@ export default { this.$store.state.config.user_name = value }, }, + user_avatar:{ + get() { + return "/user_infos/"+this.$store.state.config.user_avatar; + }, + set(value) { + // You should not set the value directly here; use the updateSetting method instead + this.$store.state.config.user_avatar = value + }, + }, auto_update:{ get() { return this.$store.state.config.auto_update;